@builder.io/sdk-react 1.0.17 → 1.0.19-dev-0
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/lib/browser/blocks-exports.cjs +14 -14
- package/lib/browser/blocks-exports.mjs +350 -339
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{server-entry-a7b75909.cjs → server-entry-1a86f409.cjs} +1 -1
- package/lib/browser/{server-entry-064a8b7f.js → server-entry-cfff49d1.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-fe027bf7.js → blocks-03aafa4f.js} +196 -209
- package/lib/edge/{blocks-1f59d1c0.cjs → blocks-87a3568e.cjs} +9 -9
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +27 -13
- package/lib/edge/{button-8fdd068a.js → button-14d13356.js} +3 -3
- package/lib/edge/{button-36ac5d97.cjs → button-58695538.cjs} +1 -1
- package/lib/edge/{columns-4f789807.js → columns-d2f7e212.js} +48 -47
- package/lib/edge/columns-f98bd830.cjs +28 -0
- package/lib/edge/{content-variants-87f99284.cjs → content-variants-7e661199.cjs} +5 -5
- package/lib/edge/{content-variants-a26825d5.js → content-variants-ad9f707f.js} +75 -75
- package/lib/edge/dynamic-blocks-exports.cjs +2 -0
- package/lib/edge/dynamic-blocks-exports.mjs +4 -1
- package/lib/edge/{dynamic-renderer-b29b45ca.cjs → dynamic-renderer-1c9f24c0.cjs} +1 -1
- package/lib/edge/dynamic-renderer-96ba4e48.js +8 -0
- package/lib/edge/{form-004ab04e.js → form-04cf10db.js} +69 -58
- package/lib/edge/form-e83f7b7a.cjs +1 -0
- package/lib/edge/{get-class-prop-name-ee5eac9d.js → get-class-prop-name-859a7f60.js} +1 -1
- package/lib/edge/{get-class-prop-name-522545c4.cjs → get-class-prop-name-f1301669.cjs} +1 -1
- package/lib/edge/{image-0008c792.js → image-2cc909d9.js} +25 -25
- package/lib/edge/image-7e1361ce.cjs +17 -0
- package/lib/edge/{img-d311451e.cjs → img-0c1e53c0.cjs} +1 -1
- package/lib/edge/{img-5d36c59d.js → img-b4ff1bef.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +22 -21
- package/lib/edge/{input-34a4e538.cjs → input-2103da14.cjs} +1 -1
- package/lib/edge/{input-211240f4.js → input-c6fee09c.js} +1 -1
- package/lib/edge/{select-a425b313.cjs → select-b8ad0a4c.cjs} +1 -1
- package/lib/edge/{select-e592f42a.js → select-f260d051.js} +1 -1
- package/lib/edge/{server-entry-04a076eb.cjs → server-entry-00891f33.cjs} +1 -1
- package/lib/edge/{server-entry-633c4fab.js → server-entry-d46a218d.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-20e9bd0c.js → slot-8fa7f242.js} +7 -6
- package/lib/edge/slot-bb84f342.cjs +1 -0
- package/lib/edge/{symbol-8aa6a69b.js → symbol-324dadc8.js} +2 -2
- package/lib/edge/{symbol-441a42f8.cjs → symbol-636383eb.cjs} +1 -1
- package/lib/edge/video-64014cc4.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-d02ff89b.js} +15 -15
- package/lib/node/blocks-exports.cjs +32 -72
- package/lib/node/blocks-exports.mjs +902 -1017
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +24 -22
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +8 -0
- package/lib/node/node-runtime-1ca09d03.js +137 -0
- package/lib/node/node-runtime-56212f7c.cjs +41 -0
- package/lib/node/{server-entry-a2617044.js → server-entry-8c84ddbd.js} +1 -1
- package/lib/node/{server-entry-e66a06c7.cjs → server-entry-ff6fc2b4.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +6 -1
- package/types/blocks/form/component-info.d.ts +2 -0
- package/types/blocks/form/form.d.ts +3 -0
- package/types/blocks/input/component-info.d.ts +2 -0
- package/types/blocks/input/input.d.ts +15 -0
- package/types/blocks/select/component-info.d.ts +2 -0
- package/types/blocks/select/select.d.ts +16 -0
- package/types/blocks/submit-button/component-info.d.ts +2 -0
- package/types/blocks/submit-button/submit-button.d.ts +10 -0
- package/types/components/content/components/context-updater.d.ts +5 -0
- package/types/components/dynamic-renderer.d.ts +3 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/index.d.ts +1 -0
- package/types/functions/evaluate/node-runtime/init.d.ts +2 -0
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +1 -0
- package/types/functions/get-react-native-block-styles.d.ts +15 -0
- package/types/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/functions/sanitize-rn-allowed-css.d.ts +8 -0
- package/types/index-helpers/blocks-exports.d.ts +4 -0
- package/types/node-runtime/index.d.ts +1 -0
- package/types/node-runtime/node-runtime.d.ts +9 -0
- package/types/node-runtime.d.ts +1 -0
- package/lib/edge/columns-36bdc015.cjs +0 -28
- package/lib/edge/dynamic-renderer-8b343325.js +0 -8
- package/lib/edge/form-6b599bb9.cjs +0 -1
- package/lib/edge/image-ee3dd857.cjs +0 -17
- package/lib/edge/slot-1547b467.cjs +0 -1
- package/lib/edge/video-e20dcbbc.cjs +0 -1
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
var De = Object.defineProperty;
|
|
3
3
|
var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ee = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-
|
|
7
|
-
import { createContext as Ce, useState as
|
|
5
|
+
import { jsx as l, Fragment as g, jsxs as B } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-cfff49d1.js";
|
|
7
|
+
import { createContext as Ce, useState as C, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
|
|
8
8
|
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
9
9
|
function ae(e) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ l(g, { children: Ye(e.TagName) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(g, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
11
11
|
}
|
|
12
12
|
const K = () => {
|
|
13
13
|
switch (z) {
|
|
@@ -23,7 +23,7 @@ const K = () => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
function Ge(e) {
|
|
26
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ l(
|
|
27
27
|
ae,
|
|
28
28
|
{
|
|
29
29
|
attributes: {
|
|
@@ -96,7 +96,7 @@ const Xe = ({
|
|
|
96
96
|
rootSetState: a,
|
|
97
97
|
rootState: r
|
|
98
98
|
}) => {
|
|
99
|
-
const
|
|
99
|
+
const s = Xe({
|
|
100
100
|
builder: t,
|
|
101
101
|
context: n,
|
|
102
102
|
event: i,
|
|
@@ -106,7 +106,7 @@ const Xe = ({
|
|
|
106
106
|
rootSetState: a
|
|
107
107
|
})
|
|
108
108
|
});
|
|
109
|
-
return new Function(...
|
|
109
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
110
110
|
};
|
|
111
111
|
function Te({
|
|
112
112
|
rootState: e,
|
|
@@ -171,7 +171,7 @@ function q({
|
|
|
171
171
|
rootSetState: o,
|
|
172
172
|
event: a,
|
|
173
173
|
isExpression: r = !0,
|
|
174
|
-
enableCache:
|
|
174
|
+
enableCache: s
|
|
175
175
|
}) {
|
|
176
176
|
if (e === "") {
|
|
177
177
|
H.warn("Skipping evaluation of empty code block.");
|
|
@@ -188,14 +188,14 @@ function q({
|
|
|
188
188
|
rootState: i,
|
|
189
189
|
localState: n
|
|
190
190
|
};
|
|
191
|
-
if (
|
|
191
|
+
if (s) {
|
|
192
192
|
const c = O.getCacheKey(d), m = O.getCachedValue(c);
|
|
193
193
|
if (m)
|
|
194
194
|
return m.value;
|
|
195
195
|
}
|
|
196
196
|
try {
|
|
197
197
|
const c = it(d);
|
|
198
|
-
if (
|
|
198
|
+
if (s) {
|
|
199
199
|
const m = O.getCacheKey(d);
|
|
200
200
|
O.setCachedValue(m, c);
|
|
201
201
|
}
|
|
@@ -231,8 +231,8 @@ const ot = ({
|
|
|
231
231
|
...a.actions
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
for (const
|
|
235
|
-
const d = e.bindings[
|
|
234
|
+
for (const s in e.bindings) {
|
|
235
|
+
const d = e.bindings[s], c = q({
|
|
236
236
|
code: d,
|
|
237
237
|
localState: n,
|
|
238
238
|
rootState: i,
|
|
@@ -240,7 +240,7 @@ const ot = ({
|
|
|
240
240
|
context: t,
|
|
241
241
|
enableCache: !0
|
|
242
242
|
});
|
|
243
|
-
Ee(r,
|
|
243
|
+
Ee(r, s, c);
|
|
244
244
|
}
|
|
245
245
|
return r;
|
|
246
246
|
};
|
|
@@ -262,15 +262,15 @@ function Q({
|
|
|
262
262
|
}) : r;
|
|
263
263
|
}
|
|
264
264
|
function at(e, t, n = {}) {
|
|
265
|
-
let i, o, a, r = null,
|
|
265
|
+
let i, o, a, r = null, s = 0;
|
|
266
266
|
const d = function() {
|
|
267
|
-
|
|
267
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
268
268
|
};
|
|
269
269
|
return function() {
|
|
270
270
|
const c = Date.now();
|
|
271
|
-
!
|
|
272
|
-
const m = t - (c -
|
|
273
|
-
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null),
|
|
271
|
+
!s && n.leading === !1 && (s = c);
|
|
272
|
+
const m = t - (c - s);
|
|
273
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
function D(e, ...t) {
|
|
@@ -303,9 +303,9 @@ function se(e) {
|
|
|
303
303
|
}
|
|
304
304
|
function ce(e, t) {
|
|
305
305
|
const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
306
|
-
for (const
|
|
306
|
+
for (const s of r)
|
|
307
307
|
for (const d of n)
|
|
308
|
-
d in
|
|
308
|
+
d in s || (s[d] = i[d]);
|
|
309
309
|
}
|
|
310
310
|
function lt(e) {
|
|
311
311
|
const t = [];
|
|
@@ -358,18 +358,18 @@ function ct(e) {
|
|
|
358
358
|
ce(e, n);
|
|
359
359
|
let i = !1, o = !1;
|
|
360
360
|
function a() {
|
|
361
|
-
!i &&
|
|
361
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
362
362
|
D(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
363
363
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
364
364
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
365
|
-
})) : e.repeat && i && !o && !
|
|
365
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, D(n.style, e.steps[0].styles));
|
|
366
366
|
}
|
|
367
367
|
const r = at(a, 200, {
|
|
368
368
|
leading: !1
|
|
369
369
|
});
|
|
370
|
-
function
|
|
371
|
-
const f = m.getBoundingClientRect(),
|
|
372
|
-
return f.bottom >
|
|
370
|
+
function s(m) {
|
|
371
|
+
const f = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
|
|
372
|
+
return f.bottom > v && f.top < b - v;
|
|
373
373
|
}
|
|
374
374
|
const d = e.steps[0].styles;
|
|
375
375
|
function c() {
|
|
@@ -525,7 +525,7 @@ const ht = ({
|
|
|
525
525
|
}, n;
|
|
526
526
|
};
|
|
527
527
|
function Z(e) {
|
|
528
|
-
return /* @__PURE__ */
|
|
528
|
+
return /* @__PURE__ */ l(
|
|
529
529
|
"style",
|
|
530
530
|
{
|
|
531
531
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -546,7 +546,7 @@ function bt(e) {
|
|
|
546
546
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
547
547
|
}
|
|
548
548
|
function n() {
|
|
549
|
-
var
|
|
549
|
+
var v;
|
|
550
550
|
const i = Q({
|
|
551
551
|
block: e.block,
|
|
552
552
|
localState: e.context.localState,
|
|
@@ -555,21 +555,21 @@ function bt(e) {
|
|
|
555
555
|
context: e.context.context,
|
|
556
556
|
shouldEvaluateBindings: !0
|
|
557
557
|
}), o = i.responsiveStyles, a = e.context.content, r = Ae(
|
|
558
|
-
((
|
|
559
|
-
),
|
|
558
|
+
((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
|
|
559
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
560
560
|
if (!m)
|
|
561
561
|
return "";
|
|
562
|
-
const f =
|
|
562
|
+
const f = s ? te({
|
|
563
563
|
className: m,
|
|
564
|
-
styles:
|
|
565
|
-
}) : "",
|
|
564
|
+
styles: s
|
|
565
|
+
}) : "", b = d ? te({
|
|
566
566
|
className: m,
|
|
567
567
|
styles: d,
|
|
568
568
|
mediaQuery: ge(
|
|
569
569
|
"medium",
|
|
570
570
|
r
|
|
571
571
|
)
|
|
572
|
-
}) : "",
|
|
572
|
+
}) : "", p = c ? te({
|
|
573
573
|
className: m,
|
|
574
574
|
styles: c,
|
|
575
575
|
mediaQuery: ge(
|
|
@@ -577,9 +577,9 @@ function bt(e) {
|
|
|
577
577
|
r
|
|
578
578
|
)
|
|
579
579
|
}) : "";
|
|
580
|
-
return [f,
|
|
580
|
+
return [f, b, p].join(" ");
|
|
581
581
|
}
|
|
582
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ l(g, { children: n() && t() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-block", styles: n() }) }) : null });
|
|
583
583
|
}
|
|
584
584
|
function yt(e) {
|
|
585
585
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -645,7 +645,7 @@ function de({
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
function kt(e) {
|
|
648
|
-
return /* @__PURE__ */
|
|
648
|
+
return /* @__PURE__ */ l(
|
|
649
649
|
ae,
|
|
650
650
|
{
|
|
651
651
|
TagName: e.Wrapper,
|
|
@@ -666,7 +666,7 @@ function kt(e) {
|
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
668
|
function Ct(e) {
|
|
669
|
-
return /* @__PURE__ */
|
|
669
|
+
return /* @__PURE__ */ l(
|
|
670
670
|
e.Wrapper,
|
|
671
671
|
{
|
|
672
672
|
...e.wrapperProps,
|
|
@@ -696,7 +696,7 @@ const wt = ({
|
|
|
696
696
|
isInteractive: a,
|
|
697
697
|
contextValue: r
|
|
698
698
|
}) => {
|
|
699
|
-
const
|
|
699
|
+
const s = {
|
|
700
700
|
...e,
|
|
701
701
|
/**
|
|
702
702
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -715,14 +715,14 @@ const wt = ({
|
|
|
715
715
|
context: n,
|
|
716
716
|
wrapperProps: e,
|
|
717
717
|
includeBlockProps: o
|
|
718
|
-
} :
|
|
718
|
+
} : s;
|
|
719
719
|
};
|
|
720
720
|
function be(e) {
|
|
721
721
|
var i;
|
|
722
|
-
const [t, n] =
|
|
722
|
+
const [t, n] = C(
|
|
723
723
|
() => e.isInteractive ? Ct : e.componentRef
|
|
724
724
|
);
|
|
725
|
-
return /* @__PURE__ */
|
|
725
|
+
return /* @__PURE__ */ l(g, { children: e.componentRef ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
726
726
|
t,
|
|
727
727
|
{
|
|
728
728
|
...wt({
|
|
@@ -735,7 +735,7 @@ function be(e) {
|
|
|
735
735
|
isInteractive: e.isInteractive,
|
|
736
736
|
contextValue: e.context
|
|
737
737
|
}),
|
|
738
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
738
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
739
739
|
_,
|
|
740
740
|
{
|
|
741
741
|
block: o,
|
|
@@ -749,8 +749,8 @@ function be(e) {
|
|
|
749
749
|
) }) : null });
|
|
750
750
|
}
|
|
751
751
|
function It(e) {
|
|
752
|
-
const [t, n] =
|
|
753
|
-
return /* @__PURE__ */
|
|
752
|
+
const [t, n] = C(() => e.repeatContext);
|
|
753
|
+
return /* @__PURE__ */ l(re.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
754
754
|
_,
|
|
755
755
|
{
|
|
756
756
|
block: e.block,
|
|
@@ -787,32 +787,32 @@ function _(e) {
|
|
|
787
787
|
});
|
|
788
788
|
}
|
|
789
789
|
function o() {
|
|
790
|
-
var
|
|
791
|
-
return e.block.tagName === "a" || ((
|
|
790
|
+
var b;
|
|
791
|
+
return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
792
792
|
}
|
|
793
793
|
function a() {
|
|
794
|
-
var
|
|
795
|
-
if ((
|
|
796
|
-
return !!((
|
|
794
|
+
var p, v;
|
|
795
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
796
|
+
return !!((v = n == null ? void 0 : n()) != null && v.length);
|
|
797
797
|
const f = "hide" in i() ? i().hide : !1;
|
|
798
798
|
return ("show" in i() ? i().show : !0) && !f;
|
|
799
799
|
}
|
|
800
800
|
function r() {
|
|
801
|
-
var
|
|
802
|
-
return !((
|
|
801
|
+
var b, p;
|
|
802
|
+
return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (p = i().children) != null ? p : [] : [];
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
var f,
|
|
804
|
+
function s() {
|
|
805
|
+
var f, b, p, v, w, T, R, x, I, P, E;
|
|
806
806
|
return {
|
|
807
807
|
blockChildren: (f = i().children) != null ? f : [],
|
|
808
|
-
componentRef: (
|
|
808
|
+
componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
|
|
809
809
|
componentOptions: {
|
|
810
810
|
...Qe(i()),
|
|
811
811
|
builderContext: e.context,
|
|
812
|
-
...((
|
|
812
|
+
...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Columns" || ((T = t == null ? void 0 : t()) == null ? void 0 : T.name) === "Form:Form" ? {
|
|
813
813
|
builderLinkComponent: e.linkComponent
|
|
814
814
|
} : {},
|
|
815
|
-
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((
|
|
815
|
+
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
|
|
816
816
|
builderComponents: e.registeredComponents
|
|
817
817
|
} : {}
|
|
818
818
|
},
|
|
@@ -825,29 +825,29 @@ function _(e) {
|
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
return V(() => {
|
|
828
|
-
const f = i().id,
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
...
|
|
828
|
+
const f = i().id, b = i().animations;
|
|
829
|
+
b && f && rt(
|
|
830
|
+
b.filter((p) => p.trigger !== "hover").map((p) => ({
|
|
831
|
+
...p,
|
|
832
832
|
elementId: f
|
|
833
833
|
}))
|
|
834
834
|
);
|
|
835
|
-
}, []), /* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */
|
|
835
|
+
}, []), /* @__PURE__ */ l(g, { children: a() ? /* @__PURE__ */ B(g, { children: [
|
|
836
|
+
/* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
|
|
837
|
+
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
838
838
|
be,
|
|
839
839
|
{
|
|
840
|
-
componentRef:
|
|
841
|
-
componentOptions:
|
|
842
|
-
blockChildren:
|
|
843
|
-
context:
|
|
844
|
-
registeredComponents:
|
|
845
|
-
linkComponent:
|
|
846
|
-
builderBlock:
|
|
847
|
-
includeBlockProps:
|
|
848
|
-
isInteractive:
|
|
840
|
+
componentRef: s().componentRef,
|
|
841
|
+
componentOptions: s().componentOptions,
|
|
842
|
+
blockChildren: s().blockChildren,
|
|
843
|
+
context: s().context,
|
|
844
|
+
registeredComponents: s().registeredComponents,
|
|
845
|
+
linkComponent: s().linkComponent,
|
|
846
|
+
builderBlock: s().builderBlock,
|
|
847
|
+
includeBlockProps: s().includeBlockProps,
|
|
848
|
+
isInteractive: s().isInteractive
|
|
849
849
|
}
|
|
850
|
-
) }) : /* @__PURE__ */
|
|
850
|
+
) }) : /* @__PURE__ */ l(g, { children: n() ? /* @__PURE__ */ l(g, { children: (m = n()) == null ? void 0 : m.map((f, b) => /* @__PURE__ */ l(
|
|
851
851
|
It,
|
|
852
852
|
{
|
|
853
853
|
repeatContext: f.context,
|
|
@@ -855,8 +855,8 @@ function _(e) {
|
|
|
855
855
|
registeredComponents: e.registeredComponents,
|
|
856
856
|
linkComponent: e.linkComponent
|
|
857
857
|
},
|
|
858
|
-
|
|
859
|
-
)) }) : /* @__PURE__ */ B(
|
|
858
|
+
b
|
|
859
|
+
)) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B(
|
|
860
860
|
kt,
|
|
861
861
|
{
|
|
862
862
|
Wrapper: o(),
|
|
@@ -864,21 +864,21 @@ function _(e) {
|
|
|
864
864
|
context: e.context,
|
|
865
865
|
linkComponent: e.linkComponent,
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ l(
|
|
868
868
|
be,
|
|
869
869
|
{
|
|
870
|
-
componentRef:
|
|
871
|
-
componentOptions:
|
|
872
|
-
blockChildren:
|
|
873
|
-
context:
|
|
874
|
-
registeredComponents:
|
|
875
|
-
linkComponent:
|
|
876
|
-
builderBlock:
|
|
877
|
-
includeBlockProps:
|
|
878
|
-
isInteractive:
|
|
870
|
+
componentRef: s().componentRef,
|
|
871
|
+
componentOptions: s().componentOptions,
|
|
872
|
+
blockChildren: s().blockChildren,
|
|
873
|
+
context: s().context,
|
|
874
|
+
registeredComponents: s().registeredComponents,
|
|
875
|
+
linkComponent: s().linkComponent,
|
|
876
|
+
builderBlock: s().builderBlock,
|
|
877
|
+
includeBlockProps: s().includeBlockProps,
|
|
878
|
+
isInteractive: s().isInteractive
|
|
879
879
|
}
|
|
880
880
|
),
|
|
881
|
-
(c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */
|
|
881
|
+
(c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ l(
|
|
882
882
|
_,
|
|
883
883
|
{
|
|
884
884
|
block: f,
|
|
@@ -890,7 +890,7 @@ function _(e) {
|
|
|
890
890
|
))
|
|
891
891
|
]
|
|
892
892
|
}
|
|
893
|
-
) })
|
|
893
|
+
) }) })
|
|
894
894
|
] }) : null });
|
|
895
895
|
}
|
|
896
896
|
function Tt(e) {
|
|
@@ -924,11 +924,11 @@ function Tt(e) {
|
|
|
924
924
|
"*"
|
|
925
925
|
));
|
|
926
926
|
}
|
|
927
|
-
return /* @__PURE__ */ B(
|
|
928
|
-
/* @__PURE__ */
|
|
927
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
928
|
+
/* @__PURE__ */ l(
|
|
929
929
|
e.BlocksWrapper,
|
|
930
930
|
{
|
|
931
|
-
className: t() + " props-blocks-wrapper-
|
|
931
|
+
className: t() + " props-blocks-wrapper-7354e098",
|
|
932
932
|
"builder-path": e.path,
|
|
933
933
|
"builder-parent-id": e.parent,
|
|
934
934
|
style: e.styleProp,
|
|
@@ -939,7 +939,7 @@ function Tt(e) {
|
|
|
939
939
|
children: e.children
|
|
940
940
|
}
|
|
941
941
|
),
|
|
942
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7354e098 {
|
|
943
943
|
display: flex;
|
|
944
944
|
flex-direction: column;
|
|
945
945
|
align-items: stretch;
|
|
@@ -949,7 +949,7 @@ function Tt(e) {
|
|
|
949
949
|
function U(e) {
|
|
950
950
|
var i, o, a;
|
|
951
951
|
const t = fe(re), n = fe(Ie);
|
|
952
|
-
return /* @__PURE__ */
|
|
952
|
+
return /* @__PURE__ */ l(
|
|
953
953
|
Tt,
|
|
954
954
|
{
|
|
955
955
|
blocks: e.blocks,
|
|
@@ -958,7 +958,7 @@ function U(e) {
|
|
|
958
958
|
styleProp: e.styleProp,
|
|
959
959
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
960
960
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
961
|
-
children: e.blocks ? /* @__PURE__ */
|
|
961
|
+
children: e.blocks ? /* @__PURE__ */ l(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
962
962
|
_,
|
|
963
963
|
{
|
|
964
964
|
block: r,
|
|
@@ -973,35 +973,35 @@ function U(e) {
|
|
|
973
973
|
}
|
|
974
974
|
function Et(e) {
|
|
975
975
|
var R;
|
|
976
|
-
const [t, n] =
|
|
976
|
+
const [t, n] = C(
|
|
977
977
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
978
|
-
), [i, o] =
|
|
978
|
+
), [i, o] = C(() => e.columns || []), [a, r] = C(
|
|
979
979
|
() => e.stackColumnsAt || "tablet"
|
|
980
980
|
);
|
|
981
|
-
function
|
|
982
|
-
var
|
|
983
|
-
return ((
|
|
981
|
+
function s(x) {
|
|
982
|
+
var I;
|
|
983
|
+
return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
|
|
984
984
|
}
|
|
985
|
-
function d(
|
|
986
|
-
const
|
|
987
|
-
return `calc(${
|
|
985
|
+
function d(x) {
|
|
986
|
+
const I = t * (i.length - 1) / i.length;
|
|
987
|
+
return `calc(${s(x)}% - ${I}px)`;
|
|
988
988
|
}
|
|
989
989
|
function c({
|
|
990
|
-
stackedStyle:
|
|
991
|
-
desktopStyle:
|
|
990
|
+
stackedStyle: x,
|
|
991
|
+
desktopStyle: I
|
|
992
992
|
}) {
|
|
993
|
-
return a === "tablet" ?
|
|
993
|
+
return a === "tablet" ? x : I;
|
|
994
994
|
}
|
|
995
995
|
function m({
|
|
996
|
-
stackedStyle:
|
|
997
|
-
desktopStyle:
|
|
996
|
+
stackedStyle: x,
|
|
997
|
+
desktopStyle: I
|
|
998
998
|
}) {
|
|
999
|
-
return a === "never" ?
|
|
999
|
+
return a === "never" ? I : x;
|
|
1000
1000
|
}
|
|
1001
|
-
const [f,
|
|
1001
|
+
const [f, b] = C(
|
|
1002
1002
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1003
1003
|
);
|
|
1004
|
-
function
|
|
1004
|
+
function p() {
|
|
1005
1005
|
return {
|
|
1006
1006
|
"--flex-dir": f,
|
|
1007
1007
|
"--flex-dir-tablet": c({
|
|
@@ -1010,8 +1010,8 @@ function Et(e) {
|
|
|
1010
1010
|
})
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1014
|
-
const
|
|
1013
|
+
function v(x) {
|
|
1014
|
+
const I = x === 0 ? 0 : t, P = d(x), E = `${I}px`, $ = "100%", L = 0;
|
|
1015
1015
|
return {
|
|
1016
1016
|
...{
|
|
1017
1017
|
display: "flex",
|
|
@@ -1038,15 +1038,15 @@ function Et(e) {
|
|
|
1038
1038
|
})
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function w(x) {
|
|
1042
1042
|
var P, E;
|
|
1043
1043
|
return Ae(
|
|
1044
1044
|
((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1045
|
-
)[
|
|
1045
|
+
)[x].max;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function T() {
|
|
1048
1048
|
return `
|
|
1049
|
-
@media (max-width: ${
|
|
1049
|
+
@media (max-width: ${w("medium")}px) {
|
|
1050
1050
|
.${e.builderBlock.id}-breakpoints {
|
|
1051
1051
|
flex-direction: var(--flex-dir-tablet);
|
|
1052
1052
|
align-items: stretch;
|
|
@@ -1058,7 +1058,7 @@ function Et(e) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
@media (max-width: ${
|
|
1061
|
+
@media (max-width: ${w("small")}px) {
|
|
1062
1062
|
.${e.builderBlock.id}-breakpoints {
|
|
1063
1063
|
flex-direction: var(--flex-dir);
|
|
1064
1064
|
align-items: stretch;
|
|
@@ -1071,30 +1071,30 @@ function Et(e) {
|
|
|
1071
1071
|
},
|
|
1072
1072
|
`;
|
|
1073
1073
|
}
|
|
1074
|
-
return /* @__PURE__ */ B(
|
|
1074
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
1075
1075
|
/* @__PURE__ */ B(
|
|
1076
1076
|
"div",
|
|
1077
1077
|
{
|
|
1078
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
1079
|
-
style:
|
|
1078
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-7a098ce6`,
|
|
1079
|
+
style: p(),
|
|
1080
1080
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
(R = e.columns) == null ? void 0 : R.map((
|
|
1081
|
+
/* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-columns", styles: T() }) }),
|
|
1082
|
+
(R = e.columns) == null ? void 0 : R.map((x, I) => /* @__PURE__ */ l(
|
|
1083
1083
|
ae,
|
|
1084
1084
|
{
|
|
1085
|
-
TagName:
|
|
1085
|
+
TagName: x.link ? e.builderLinkComponent || "a" : "div",
|
|
1086
1086
|
actionAttributes: {},
|
|
1087
1087
|
attributes: {
|
|
1088
|
-
...
|
|
1089
|
-
href:
|
|
1088
|
+
...x.link ? {
|
|
1089
|
+
href: x.link
|
|
1090
1090
|
} : {},
|
|
1091
1091
|
[K()]: "builder-column",
|
|
1092
|
-
style: Ve(
|
|
1092
|
+
style: Ve(v(I))
|
|
1093
1093
|
},
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1094
|
+
children: /* @__PURE__ */ l(
|
|
1095
1095
|
U,
|
|
1096
1096
|
{
|
|
1097
|
-
path: `component.options.columns.${
|
|
1097
|
+
path: `component.options.columns.${I}.blocks`,
|
|
1098
1098
|
parent: e.builderBlock.id,
|
|
1099
1099
|
styleProp: {
|
|
1100
1100
|
flexGrow: "1"
|
|
@@ -1102,23 +1102,23 @@ function Et(e) {
|
|
|
1102
1102
|
context: e.builderContext,
|
|
1103
1103
|
registeredComponents: e.builderComponents,
|
|
1104
1104
|
linkComponent: e.builderLinkComponent,
|
|
1105
|
-
blocks:
|
|
1105
|
+
blocks: x.blocks
|
|
1106
1106
|
}
|
|
1107
1107
|
)
|
|
1108
1108
|
},
|
|
1109
|
-
|
|
1109
|
+
I
|
|
1110
1110
|
))
|
|
1111
1111
|
]
|
|
1112
1112
|
}
|
|
1113
1113
|
),
|
|
1114
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ l("style", { children: `.div-7a098ce6 {
|
|
1115
1115
|
display: flex;
|
|
1116
1116
|
line-height: normal;
|
|
1117
1117
|
}` })
|
|
1118
1118
|
] });
|
|
1119
1119
|
}
|
|
1120
1120
|
function Rt(e) {
|
|
1121
|
-
return /* @__PURE__ */
|
|
1121
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1122
1122
|
}
|
|
1123
1123
|
function ye(e) {
|
|
1124
1124
|
return e.replace(/http(s)?:/, "");
|
|
@@ -1151,7 +1151,7 @@ function ne(e) {
|
|
|
1151
1151
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1152
1152
|
}
|
|
1153
1153
|
function Bt(e) {
|
|
1154
|
-
var o, a, r,
|
|
1154
|
+
var o, a, r, s;
|
|
1155
1155
|
function t() {
|
|
1156
1156
|
var m;
|
|
1157
1157
|
const c = e.image || e.src;
|
|
@@ -1180,11 +1180,11 @@ function Bt(e) {
|
|
|
1180
1180
|
};
|
|
1181
1181
|
return e.aspectRatio ? d : void 0;
|
|
1182
1182
|
}
|
|
1183
|
-
return /* @__PURE__ */ B(
|
|
1184
|
-
/* @__PURE__ */ B(
|
|
1183
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
1184
|
+
/* @__PURE__ */ B(g, { children: [
|
|
1185
1185
|
/* @__PURE__ */ B("picture", { children: [
|
|
1186
|
-
n() ? /* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1186
|
+
n() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
1187
|
+
/* @__PURE__ */ l(
|
|
1188
1188
|
"img",
|
|
1189
1189
|
{
|
|
1190
1190
|
loading: "lazy",
|
|
@@ -1195,33 +1195,33 @@ function Bt(e) {
|
|
|
1195
1195
|
objectFit: e.backgroundSize || "cover",
|
|
1196
1196
|
...i()
|
|
1197
1197
|
},
|
|
1198
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1198
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-0614da04",
|
|
1199
1199
|
src: e.image,
|
|
1200
1200
|
srcSet: t(),
|
|
1201
1201
|
sizes: e.sizes
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
1204
1204
|
] }),
|
|
1205
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1205
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
|
-
className: "builder-image-sizer div-
|
|
1208
|
+
className: "builder-image-sizer div-0614da04",
|
|
1209
1209
|
style: {
|
|
1210
1210
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
|
-
) : null,
|
|
1214
|
-
(
|
|
1215
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1213
|
+
) }) : null,
|
|
1214
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: e.children }) : null,
|
|
1215
|
+
!e.fitContent && e.children ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("div", { className: "div-0614da04-2", children: e.children }) }) : null
|
|
1216
1216
|
] }),
|
|
1217
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ l("style", { children: `.img-0614da04 {
|
|
1218
1218
|
opacity: 1;
|
|
1219
1219
|
transition: opacity 0.2s ease-in-out;
|
|
1220
|
-
}.div-
|
|
1220
|
+
}.div-0614da04 {
|
|
1221
1221
|
width: 100%;
|
|
1222
1222
|
pointer-events: none;
|
|
1223
1223
|
font-size: 0;
|
|
1224
|
-
}.div-
|
|
1224
|
+
}.div-0614da04-2 {
|
|
1225
1225
|
display: flex;
|
|
1226
1226
|
flex-direction: column;
|
|
1227
1227
|
align-items: stretch;
|
|
@@ -1234,7 +1234,7 @@ function Bt(e) {
|
|
|
1234
1234
|
] });
|
|
1235
1235
|
}
|
|
1236
1236
|
function At(e) {
|
|
1237
|
-
return /* @__PURE__ */
|
|
1237
|
+
return /* @__PURE__ */ l(
|
|
1238
1238
|
"section",
|
|
1239
1239
|
{
|
|
1240
1240
|
...e.attributes,
|
|
@@ -1466,7 +1466,7 @@ const Wt = {
|
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
const n = e.get("columns");
|
|
1469
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1469
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1470
1470
|
}
|
|
1471
1471
|
}, {
|
|
1472
1472
|
name: "space",
|
|
@@ -1514,17 +1514,17 @@ const Wt = {
|
|
|
1514
1514
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1515
1515
|
onChange: (e) => {
|
|
1516
1516
|
e.delete("srcset"), e.delete("noWebp");
|
|
1517
|
-
function n(r,
|
|
1517
|
+
function n(r, s = 6e4) {
|
|
1518
1518
|
return new Promise((d, c) => {
|
|
1519
1519
|
const m = document.createElement("img");
|
|
1520
1520
|
let f = !1;
|
|
1521
1521
|
m.onload = () => {
|
|
1522
1522
|
f = !0, d(m);
|
|
1523
|
-
}, m.addEventListener("error", (
|
|
1524
|
-
console.warn("Image load failed",
|
|
1523
|
+
}, m.addEventListener("error", (b) => {
|
|
1524
|
+
console.warn("Image load failed", b.error), c(b.error);
|
|
1525
1525
|
}), m.src = r, setTimeout(() => {
|
|
1526
1526
|
f || c(new Error("Image load timed out"));
|
|
1527
|
-
},
|
|
1527
|
+
}, s);
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
function i(r) {
|
|
@@ -1535,8 +1535,8 @@ const Wt = {
|
|
|
1535
1535
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1536
1536
|
}), o && (!a || a === 0.7041))
|
|
1537
1537
|
return n(o).then((r) => {
|
|
1538
|
-
const
|
|
1539
|
-
e.get("image") === o && (!
|
|
1538
|
+
const s = e.get("aspectRatio");
|
|
1539
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
1542
|
}, {
|
|
@@ -1649,7 +1649,7 @@ const Wt = {
|
|
|
1649
1649
|
};
|
|
1650
1650
|
function Mt(e) {
|
|
1651
1651
|
var t, n, i;
|
|
1652
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ l(
|
|
1653
1653
|
"div",
|
|
1654
1654
|
{
|
|
1655
1655
|
style: {
|
|
@@ -1658,7 +1658,7 @@ function Mt(e) {
|
|
|
1658
1658
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1659
1659
|
"builder-slot": e.name
|
|
1660
1660
|
},
|
|
1661
|
-
children: /* @__PURE__ */
|
|
1661
|
+
children: /* @__PURE__ */ l(
|
|
1662
1662
|
U,
|
|
1663
1663
|
{
|
|
1664
1664
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -1724,7 +1724,7 @@ const Ot = {
|
|
|
1724
1724
|
};
|
|
1725
1725
|
function jt(e) {
|
|
1726
1726
|
var t;
|
|
1727
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ l(
|
|
1728
1728
|
"div",
|
|
1729
1729
|
{
|
|
1730
1730
|
className: "builder-text",
|
|
@@ -1759,10 +1759,10 @@ const Ht = {
|
|
|
1759
1759
|
}]
|
|
1760
1760
|
};
|
|
1761
1761
|
function Kt(e) {
|
|
1762
|
-
const t = X(null), [n, i] =
|
|
1762
|
+
const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []);
|
|
1763
1763
|
return V(() => {
|
|
1764
|
-
var
|
|
1765
|
-
if (!((
|
|
1764
|
+
var s;
|
|
1765
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1766
1766
|
return;
|
|
1767
1767
|
const r = t.current.getElementsByTagName("script");
|
|
1768
1768
|
for (let d = 0; d < r.length; d++) {
|
|
@@ -1787,7 +1787,7 @@ function Kt(e) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
|
-
}, []), /* @__PURE__ */
|
|
1790
|
+
}, []), /* @__PURE__ */ l(
|
|
1791
1791
|
"div",
|
|
1792
1792
|
{
|
|
1793
1793
|
ref: t,
|
|
@@ -1823,7 +1823,7 @@ const qt = {
|
|
|
1823
1823
|
}]
|
|
1824
1824
|
}, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
|
|
1825
1825
|
function Jt(e) {
|
|
1826
|
-
const t = X(null), [n, i] =
|
|
1826
|
+
const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, s] = C(() => !1);
|
|
1827
1827
|
function d() {
|
|
1828
1828
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1829
1829
|
return;
|
|
@@ -1832,19 +1832,19 @@ function Jt(e) {
|
|
|
1832
1832
|
const f = c[m];
|
|
1833
1833
|
if (f.src && !n.includes(f.src)) {
|
|
1834
1834
|
n.push(f.src);
|
|
1835
|
-
const
|
|
1836
|
-
|
|
1835
|
+
const b = document.createElement("script");
|
|
1836
|
+
b.async = !0, b.src = f.src, document.head.appendChild(b);
|
|
1837
1837
|
} else if (_t(f) && !o.includes(f.innerText))
|
|
1838
1838
|
try {
|
|
1839
1839
|
o.push(f.innerText), new Function(f.innerText)();
|
|
1840
|
-
} catch (
|
|
1841
|
-
console.warn("`Embed`: Error running script:",
|
|
1840
|
+
} catch (b) {
|
|
1841
|
+
console.warn("`Embed`: Error running script:", b);
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
1845
|
return V(() => {
|
|
1846
|
-
t.current && !r && (
|
|
1847
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
1846
|
+
t.current && !r && (s(!0), d());
|
|
1847
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1848
1848
|
"div",
|
|
1849
1849
|
{
|
|
1850
1850
|
className: "builder-embed",
|
|
@@ -2092,55 +2092,55 @@ const Yt = {
|
|
|
2092
2092
|
return i === void 0 || i === e ? n : i;
|
|
2093
2093
|
};
|
|
2094
2094
|
function Zt(e) {
|
|
2095
|
-
var f,
|
|
2096
|
-
const t = X(null), [n, i] =
|
|
2097
|
-
function d(
|
|
2098
|
-
var
|
|
2099
|
-
const
|
|
2095
|
+
var f, b;
|
|
2096
|
+
const t = X(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, s] = C(() => "");
|
|
2097
|
+
function d(p) {
|
|
2098
|
+
var w, T;
|
|
2099
|
+
const v = {
|
|
2100
2100
|
...e.builderContext.rootState,
|
|
2101
|
-
...
|
|
2101
|
+
...p
|
|
2102
2102
|
};
|
|
2103
|
-
e.builderContext.rootSetState ? (
|
|
2103
|
+
e.builderContext.rootSetState ? (T = (w = e.builderContext).rootSetState) == null || T.call(w, v) : e.builderContext.rootState = v;
|
|
2104
2104
|
}
|
|
2105
2105
|
function c() {
|
|
2106
2106
|
return N() && e.previewState || n;
|
|
2107
2107
|
}
|
|
2108
|
-
function m(
|
|
2109
|
-
var
|
|
2110
|
-
const
|
|
2108
|
+
function m(p) {
|
|
2109
|
+
var w;
|
|
2110
|
+
const v = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2111
2111
|
if (e.sendSubmissionsTo === "zapier")
|
|
2112
|
-
|
|
2113
|
-
else if (
|
|
2112
|
+
p.preventDefault();
|
|
2113
|
+
else if (v) {
|
|
2114
2114
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2115
|
-
|
|
2115
|
+
p.preventDefault();
|
|
2116
2116
|
return;
|
|
2117
2117
|
}
|
|
2118
|
-
|
|
2119
|
-
const
|
|
2120
|
-
let
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2118
|
+
p.preventDefault();
|
|
2119
|
+
const T = p.currentTarget, R = e.customHeaders || {};
|
|
2120
|
+
let x;
|
|
2121
|
+
const I = new FormData(T), P = Array.from(
|
|
2122
|
+
p.currentTarget.querySelectorAll("input,select,textarea")
|
|
2123
2123
|
).filter((u) => !!u.name).map((u) => {
|
|
2124
2124
|
let h;
|
|
2125
|
-
const
|
|
2125
|
+
const k = u.name;
|
|
2126
2126
|
if (u instanceof HTMLInputElement)
|
|
2127
2127
|
if (u.type === "radio") {
|
|
2128
2128
|
if (u.checked)
|
|
2129
2129
|
return h = u.name, {
|
|
2130
|
-
key:
|
|
2130
|
+
key: k,
|
|
2131
2131
|
value: h
|
|
2132
2132
|
};
|
|
2133
2133
|
} else if (u.type === "checkbox")
|
|
2134
2134
|
h = u.checked;
|
|
2135
2135
|
else if (u.type === "number" || u.type === "range") {
|
|
2136
|
-
const
|
|
2137
|
-
isNaN(
|
|
2136
|
+
const y = u.valueAsNumber;
|
|
2137
|
+
isNaN(y) || (h = y);
|
|
2138
2138
|
} else
|
|
2139
2139
|
u.type === "file" ? h = u.files : h = u.value;
|
|
2140
2140
|
else
|
|
2141
2141
|
h = u.value;
|
|
2142
2142
|
return {
|
|
2143
|
-
key:
|
|
2143
|
+
key: k,
|
|
2144
2144
|
value: h
|
|
2145
2145
|
};
|
|
2146
2146
|
});
|
|
@@ -2148,15 +2148,15 @@ function Zt(e) {
|
|
|
2148
2148
|
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
|
|
2149
2149
|
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
|
|
2150
2150
|
}), E !== "application/json")
|
|
2151
|
-
|
|
2151
|
+
x = I;
|
|
2152
2152
|
else {
|
|
2153
2153
|
const u = {};
|
|
2154
|
-
Array.from(P).forEach(({ value: h, key:
|
|
2155
|
-
Ee(u,
|
|
2156
|
-
}),
|
|
2154
|
+
Array.from(P).forEach(({ value: h, key: k }) => {
|
|
2155
|
+
Ee(u, k, h);
|
|
2156
|
+
}), x = JSON.stringify(u);
|
|
2157
2157
|
}
|
|
2158
|
-
E && E !== "multipart/form-data" && (
|
|
2159
|
-
const $ = new CustomEvent("presubmit", { detail: { body:
|
|
2158
|
+
E && E !== "multipart/form-data" && (v && ((w = e.action) != null && w.includes("zapier.com")) || (R["content-type"] = E));
|
|
2159
|
+
const $ = new CustomEvent("presubmit", { detail: { body: x } });
|
|
2160
2160
|
if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
|
|
2161
2161
|
return;
|
|
2162
2162
|
i("sending");
|
|
@@ -2165,30 +2165,30 @@ function Zt(e) {
|
|
|
2165
2165
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2166
2166
|
fetch(
|
|
2167
2167
|
e.sendSubmissionsTo === "email" ? L : e.action,
|
|
2168
|
-
{ body:
|
|
2168
|
+
{ body: x, headers: R, method: e.method || "post" }
|
|
2169
2169
|
).then(
|
|
2170
2170
|
async (u) => {
|
|
2171
2171
|
let h;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2174
|
-
let
|
|
2175
|
-
|
|
2172
|
+
const k = u.headers.get("content-type");
|
|
2173
|
+
if (k && k.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2174
|
+
let y = Xt(h, e.errorMessagePath);
|
|
2175
|
+
y && (typeof y != "string" && (y = JSON.stringify(y)), s(y), d({ formErrorMessage: y }));
|
|
2176
2176
|
}
|
|
2177
2177
|
if (a(h), i(u.ok ? "success" : "error"), u.ok) {
|
|
2178
|
-
const
|
|
2178
|
+
const y = new CustomEvent("submit:success", {
|
|
2179
2179
|
detail: { res: u, body: h }
|
|
2180
2180
|
});
|
|
2181
2181
|
if (t.current) {
|
|
2182
|
-
if (t.current.dispatchEvent(
|
|
2182
|
+
if (t.current.dispatchEvent(y), y.defaultPrevented)
|
|
2183
2183
|
return;
|
|
2184
2184
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2185
2185
|
}
|
|
2186
2186
|
if (e.successUrl)
|
|
2187
2187
|
if (t.current) {
|
|
2188
|
-
const
|
|
2188
|
+
const S = new CustomEvent("route", {
|
|
2189
2189
|
detail: { url: e.successUrl }
|
|
2190
2190
|
});
|
|
2191
|
-
t.current.dispatchEvent(
|
|
2191
|
+
t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
|
|
2192
2192
|
} else
|
|
2193
2193
|
location.href = e.successUrl;
|
|
2194
2194
|
}
|
|
@@ -2202,7 +2202,7 @@ function Zt(e) {
|
|
|
2202
2202
|
);
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
return /* @__PURE__ */ B(
|
|
2205
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
2206
2206
|
" ",
|
|
2207
2207
|
/* @__PURE__ */ B(
|
|
2208
2208
|
"form",
|
|
@@ -2212,49 +2212,59 @@ function Zt(e) {
|
|
|
2212
2212
|
action: !e.sendWithJs && e.action,
|
|
2213
2213
|
method: e.method,
|
|
2214
2214
|
name: e.name,
|
|
2215
|
-
onSubmit: (
|
|
2215
|
+
onSubmit: (p) => m(p),
|
|
2216
2216
|
...e.attributes,
|
|
2217
2217
|
children: [
|
|
2218
|
-
|
|
2218
|
+
" ",
|
|
2219
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(g, { children: (b = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : b.map((p, v) => /* @__PURE__ */ l(
|
|
2219
2220
|
_,
|
|
2220
2221
|
{
|
|
2221
|
-
block:
|
|
2222
|
+
block: p,
|
|
2222
2223
|
context: e.builderContext,
|
|
2223
2224
|
registeredComponents: e.builderComponents,
|
|
2224
2225
|
linkComponent: e.builderLinkComponent
|
|
2225
2226
|
},
|
|
2226
|
-
`form-block-${
|
|
2227
|
+
`form-block-${v}`
|
|
2227
2228
|
)) }) : null,
|
|
2228
|
-
|
|
2229
|
+
" ",
|
|
2230
|
+
c() === "error" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2229
2231
|
U,
|
|
2230
2232
|
{
|
|
2231
2233
|
path: "errorMessage",
|
|
2232
2234
|
blocks: e.errorMessage,
|
|
2233
2235
|
context: e.builderContext
|
|
2234
2236
|
}
|
|
2235
|
-
) : null,
|
|
2236
|
-
|
|
2237
|
+
) }) : null,
|
|
2238
|
+
" ",
|
|
2239
|
+
c() === "sending" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2237
2240
|
U,
|
|
2238
2241
|
{
|
|
2239
2242
|
path: "sendingMessage",
|
|
2240
2243
|
blocks: e.sendingMessage,
|
|
2241
2244
|
context: e.builderContext
|
|
2242
2245
|
}
|
|
2243
|
-
) : null,
|
|
2244
|
-
|
|
2245
|
-
c() === "
|
|
2246
|
+
) }) : null,
|
|
2247
|
+
" ",
|
|
2248
|
+
c() === "error" && o ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B("pre", { className: "builder-form-error-text pre-25b9edf0", children: [
|
|
2249
|
+
" ",
|
|
2250
|
+
JSON.stringify(o, null, 2),
|
|
2251
|
+
" "
|
|
2252
|
+
] }) }) : null,
|
|
2253
|
+
" ",
|
|
2254
|
+
c() === "success" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2246
2255
|
U,
|
|
2247
2256
|
{
|
|
2248
2257
|
path: "successMessage",
|
|
2249
2258
|
blocks: e.successMessage,
|
|
2250
2259
|
context: e.builderContext
|
|
2251
2260
|
}
|
|
2252
|
-
) : null
|
|
2261
|
+
) }) : null,
|
|
2262
|
+
" "
|
|
2253
2263
|
]
|
|
2254
2264
|
}
|
|
2255
2265
|
),
|
|
2256
2266
|
" ",
|
|
2257
|
-
/* @__PURE__ */
|
|
2267
|
+
/* @__PURE__ */ l("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
|
|
2258
2268
|
" "
|
|
2259
2269
|
] });
|
|
2260
2270
|
}
|
|
@@ -2379,7 +2389,7 @@ function on(e) {
|
|
|
2379
2389
|
defaultValue: e.defaultValue,
|
|
2380
2390
|
name: e.name
|
|
2381
2391
|
},
|
|
2382
|
-
(t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */
|
|
2392
|
+
(t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }))
|
|
2383
2393
|
);
|
|
2384
2394
|
}
|
|
2385
2395
|
const an = {
|
|
@@ -2409,7 +2419,7 @@ const an = {
|
|
|
2409
2419
|
// canHaveChildren: true,
|
|
2410
2420
|
};
|
|
2411
2421
|
function rn(e) {
|
|
2412
|
-
return /* @__PURE__ */
|
|
2422
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2413
2423
|
}
|
|
2414
2424
|
const ln = {
|
|
2415
2425
|
// friendlyName?
|
|
@@ -2427,7 +2437,7 @@ const ln = {
|
|
|
2427
2437
|
static: !0
|
|
2428
2438
|
};
|
|
2429
2439
|
function sn(e) {
|
|
2430
|
-
return /* @__PURE__ */
|
|
2440
|
+
return /* @__PURE__ */ l(
|
|
2431
2441
|
"img",
|
|
2432
2442
|
{
|
|
2433
2443
|
style: {
|
|
@@ -2524,7 +2534,7 @@ const cn = {
|
|
|
2524
2534
|
}]
|
|
2525
2535
|
};
|
|
2526
2536
|
function dn(e) {
|
|
2527
|
-
var i, o, a, r,
|
|
2537
|
+
var i, o, a, r, s, d, c;
|
|
2528
2538
|
function t() {
|
|
2529
2539
|
return {
|
|
2530
2540
|
...e.autoPlay === !0 ? {
|
|
@@ -2556,7 +2566,7 @@ function dn(e) {
|
|
|
2556
2566
|
position: "relative"
|
|
2557
2567
|
},
|
|
2558
2568
|
children: [
|
|
2559
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ l(
|
|
2560
2570
|
"video",
|
|
2561
2571
|
{
|
|
2562
2572
|
className: "builder-video",
|
|
@@ -2578,10 +2588,10 @@ function dn(e) {
|
|
|
2578
2588
|
},
|
|
2579
2589
|
src: e.video || "no-src",
|
|
2580
2590
|
poster: e.posterImage,
|
|
2581
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
2591
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
2582
2592
|
}
|
|
2583
2593
|
),
|
|
2584
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
2594
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2585
2595
|
"div",
|
|
2586
2596
|
{
|
|
2587
2597
|
style: {
|
|
@@ -2591,8 +2601,8 @@ function dn(e) {
|
|
|
2591
2601
|
fontSize: "0px"
|
|
2592
2602
|
}
|
|
2593
2603
|
}
|
|
2594
|
-
) : null,
|
|
2595
|
-
(
|
|
2604
|
+
) }) : null,
|
|
2605
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2596
2606
|
"div",
|
|
2597
2607
|
{
|
|
2598
2608
|
style: {
|
|
@@ -2602,8 +2612,8 @@ function dn(e) {
|
|
|
2602
2612
|
},
|
|
2603
2613
|
children: e.children
|
|
2604
2614
|
}
|
|
2605
|
-
) : null,
|
|
2606
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
2615
|
+
) }) : null,
|
|
2616
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2607
2617
|
"div",
|
|
2608
2618
|
{
|
|
2609
2619
|
style: {
|
|
@@ -2619,7 +2629,7 @@ function dn(e) {
|
|
|
2619
2629
|
},
|
|
2620
2630
|
children: e.children
|
|
2621
2631
|
}
|
|
2622
|
-
) : null
|
|
2632
|
+
) }) : null
|
|
2623
2633
|
]
|
|
2624
2634
|
}
|
|
2625
2635
|
);
|
|
@@ -2782,7 +2792,7 @@ const un = () => [{
|
|
|
2782
2792
|
"${t}", "${e}", ${$e}
|
|
2783
2793
|
)`;
|
|
2784
2794
|
function ie(e) {
|
|
2785
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ l(
|
|
2786
2796
|
"script",
|
|
2787
2797
|
{
|
|
2788
2798
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -2834,32 +2844,32 @@ const xn = (e, t, n = !0) => {
|
|
|
2834
2844
|
};
|
|
2835
2845
|
};
|
|
2836
2846
|
function kn(e) {
|
|
2837
|
-
var R,
|
|
2847
|
+
var R, x, I, P, E, $, L;
|
|
2838
2848
|
const t = X(null);
|
|
2839
2849
|
function n(u) {
|
|
2840
|
-
var
|
|
2850
|
+
var k, y;
|
|
2841
2851
|
const h = {
|
|
2842
2852
|
...e.builderContextSignal.rootState,
|
|
2843
2853
|
...u
|
|
2844
2854
|
};
|
|
2845
|
-
e.builderContextSignal.rootSetState ? (
|
|
2846
|
-
...
|
|
2855
|
+
e.builderContextSignal.rootSetState ? (y = (k = e.builderContextSignal).rootSetState) == null || y.call(k, h) : e.setBuilderContextSignal((S) => ({
|
|
2856
|
+
...S,
|
|
2847
2857
|
rootState: h
|
|
2848
2858
|
}));
|
|
2849
2859
|
}
|
|
2850
2860
|
function i(u) {
|
|
2851
|
-
var
|
|
2861
|
+
var k, y, S, A, M;
|
|
2852
2862
|
const h = {
|
|
2853
2863
|
...e.builderContextSignal.content,
|
|
2854
2864
|
...u,
|
|
2855
2865
|
data: {
|
|
2856
|
-
...(
|
|
2866
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
|
|
2857
2867
|
...u == null ? void 0 : u.data
|
|
2858
2868
|
},
|
|
2859
2869
|
meta: {
|
|
2860
|
-
...(
|
|
2870
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
2861
2871
|
...u == null ? void 0 : u.meta,
|
|
2862
|
-
breakpoints: ((
|
|
2872
|
+
breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
|
|
2863
2873
|
}
|
|
2864
2874
|
};
|
|
2865
2875
|
e.setBuilderContextSignal((W) => ({
|
|
@@ -2867,7 +2877,7 @@ function kn(e) {
|
|
|
2867
2877
|
content: h
|
|
2868
2878
|
}));
|
|
2869
2879
|
}
|
|
2870
|
-
const [o, a] =
|
|
2880
|
+
const [o, a] = C(
|
|
2871
2881
|
() => e.contentWrapper || "div"
|
|
2872
2882
|
);
|
|
2873
2883
|
function r(u) {
|
|
@@ -2876,11 +2886,11 @@ function kn(e) {
|
|
|
2876
2886
|
trustedHosts: e.trustedHosts,
|
|
2877
2887
|
callbacks: {
|
|
2878
2888
|
configureSdk: (h) => {
|
|
2879
|
-
var
|
|
2880
|
-
const { breakpoints:
|
|
2881
|
-
!
|
|
2889
|
+
var S;
|
|
2890
|
+
const { breakpoints: k, contentId: y } = h;
|
|
2891
|
+
!y || y !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || k && i({
|
|
2882
2892
|
meta: {
|
|
2883
|
-
breakpoints:
|
|
2893
|
+
breakpoints: k
|
|
2884
2894
|
}
|
|
2885
2895
|
});
|
|
2886
2896
|
},
|
|
@@ -2893,9 +2903,9 @@ function kn(e) {
|
|
|
2893
2903
|
}
|
|
2894
2904
|
})(u);
|
|
2895
2905
|
}
|
|
2896
|
-
function
|
|
2897
|
-
var h,
|
|
2898
|
-
const u = (
|
|
2906
|
+
function s() {
|
|
2907
|
+
var h, k;
|
|
2908
|
+
const u = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.jsCode;
|
|
2899
2909
|
u && q({
|
|
2900
2910
|
code: u,
|
|
2901
2911
|
context: e.context || {},
|
|
@@ -2908,30 +2918,30 @@ function kn(e) {
|
|
|
2908
2918
|
enableCache: !1
|
|
2909
2919
|
});
|
|
2910
2920
|
}
|
|
2911
|
-
const [d, c] =
|
|
2912
|
-
function
|
|
2913
|
-
var h,
|
|
2921
|
+
const [d, c] = C(() => ({})), [m, f] = C(() => ({})), [b, p] = C(() => !1);
|
|
2922
|
+
function v(u) {
|
|
2923
|
+
var h, k;
|
|
2914
2924
|
if (e.builderContextSignal.content) {
|
|
2915
|
-
const
|
|
2925
|
+
const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
2916
2926
|
ue({
|
|
2917
2927
|
type: "click",
|
|
2918
2928
|
canTrack: G(e.canTrack),
|
|
2919
|
-
contentId:
|
|
2929
|
+
contentId: S,
|
|
2920
2930
|
apiKey: e.apiKey,
|
|
2921
|
-
variationId:
|
|
2931
|
+
variationId: y !== S ? y : void 0,
|
|
2922
2932
|
...vn(u),
|
|
2923
|
-
unique: !
|
|
2933
|
+
unique: !b
|
|
2924
2934
|
});
|
|
2925
2935
|
}
|
|
2926
|
-
|
|
2936
|
+
b || p(!0);
|
|
2927
2937
|
}
|
|
2928
|
-
function
|
|
2929
|
-
var h,
|
|
2930
|
-
const u = (
|
|
2931
|
-
Object.entries(u).forEach(([
|
|
2932
|
-
if (!A || m[
|
|
2938
|
+
function w() {
|
|
2939
|
+
var h, k, y;
|
|
2940
|
+
const u = (y = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.httpRequests) != null ? y : {};
|
|
2941
|
+
Object.entries(u).forEach(([S, A]) => {
|
|
2942
|
+
if (!A || m[S] || d[S] && !N())
|
|
2933
2943
|
return;
|
|
2934
|
-
m[
|
|
2944
|
+
m[S] = !0;
|
|
2935
2945
|
const M = A.replace(
|
|
2936
2946
|
/{{([^}]+)}}/g,
|
|
2937
2947
|
(W, Le) => String(
|
|
@@ -2947,16 +2957,16 @@ function kn(e) {
|
|
|
2947
2957
|
);
|
|
2948
2958
|
ze(M).then((W) => W.json()).then((W) => {
|
|
2949
2959
|
n({
|
|
2950
|
-
[
|
|
2951
|
-
}), d[
|
|
2960
|
+
[S]: W
|
|
2961
|
+
}), d[S] = !0;
|
|
2952
2962
|
}).catch((W) => {
|
|
2953
2963
|
console.error("error fetching dynamic data", A, W);
|
|
2954
2964
|
}).finally(() => {
|
|
2955
|
-
m[
|
|
2965
|
+
m[S] = !1;
|
|
2956
2966
|
});
|
|
2957
2967
|
});
|
|
2958
2968
|
}
|
|
2959
|
-
function
|
|
2969
|
+
function T() {
|
|
2960
2970
|
N() && window.dispatchEvent(
|
|
2961
2971
|
new CustomEvent(
|
|
2962
2972
|
"builder:component:stateChange",
|
|
@@ -2986,28 +2996,28 @@ function kn(e) {
|
|
|
2986
2996
|
} : {}
|
|
2987
2997
|
}), Object.values(
|
|
2988
2998
|
e.builderContextSignal.componentInfos
|
|
2989
|
-
).forEach((
|
|
2999
|
+
).forEach((y) => {
|
|
2990
3000
|
var A;
|
|
2991
|
-
const
|
|
2992
|
-
(A = window.parent) == null || A.postMessage(
|
|
3001
|
+
const S = He(y);
|
|
3002
|
+
(A = window.parent) == null || A.postMessage(S, "*");
|
|
2993
3003
|
}), window.addEventListener(
|
|
2994
3004
|
"builder:component:stateChangeListenerActivated",
|
|
2995
|
-
|
|
3005
|
+
T
|
|
2996
3006
|
)), e.builderContextSignal.content && G(e.canTrack)) {
|
|
2997
|
-
const
|
|
3007
|
+
const y = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
|
|
2998
3008
|
ue({
|
|
2999
3009
|
type: "impression",
|
|
3000
3010
|
canTrack: !0,
|
|
3001
|
-
contentId:
|
|
3011
|
+
contentId: S,
|
|
3002
3012
|
apiKey: A,
|
|
3003
|
-
variationId:
|
|
3013
|
+
variationId: y !== S ? y : void 0
|
|
3004
3014
|
});
|
|
3005
3015
|
}
|
|
3006
3016
|
if (Ke()) {
|
|
3007
|
-
const
|
|
3008
|
-
`builder.preview.${
|
|
3009
|
-
), M =
|
|
3010
|
-
|
|
3017
|
+
const y = new URL(location.href).searchParams, S = y.get("builder.preview"), A = y.get(
|
|
3018
|
+
`builder.preview.${S}`
|
|
3019
|
+
), M = y.get("apiKey") || y.get("builder.space");
|
|
3020
|
+
S === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
|
|
3011
3021
|
model: e.model,
|
|
3012
3022
|
apiKey: e.apiKey,
|
|
3013
3023
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3019,15 +3029,15 @@ function kn(e) {
|
|
|
3019
3029
|
}, []), V(() => {
|
|
3020
3030
|
e.apiKey || H.error(
|
|
3021
3031
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3022
|
-
),
|
|
3032
|
+
), s(), w(), T();
|
|
3023
3033
|
}, []), V(() => {
|
|
3024
3034
|
e.content && i(e.content);
|
|
3025
3035
|
}, [e.content]), V(() => {
|
|
3026
|
-
|
|
3027
|
-
}, [(
|
|
3028
|
-
|
|
3029
|
-
}, [(P = (
|
|
3030
|
-
|
|
3036
|
+
s();
|
|
3037
|
+
}, [(x = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : x.jsCode]), V(() => {
|
|
3038
|
+
w();
|
|
3039
|
+
}, [(P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests]), V(() => {
|
|
3040
|
+
T();
|
|
3031
3041
|
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3032
3042
|
e.data && n(e.data);
|
|
3033
3043
|
}, [e.data]), V(() => {
|
|
@@ -3037,13 +3047,13 @@ function kn(e) {
|
|
|
3037
3047
|
}, [e.locale]), V(() => () => {
|
|
3038
3048
|
j() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3039
3049
|
"builder:component:stateChangeListenerActivated",
|
|
3040
|
-
|
|
3050
|
+
T
|
|
3041
3051
|
));
|
|
3042
|
-
}, []), /* @__PURE__ */
|
|
3052
|
+
}, []), /* @__PURE__ */ l(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3043
3053
|
o,
|
|
3044
3054
|
{
|
|
3045
3055
|
ref: t,
|
|
3046
|
-
onClick: (u) =>
|
|
3056
|
+
onClick: (u) => v(u),
|
|
3047
3057
|
"builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
|
|
3048
3058
|
"builder-model": e.model,
|
|
3049
3059
|
...e.showContent ? {} : {
|
|
@@ -3054,7 +3064,7 @@ function kn(e) {
|
|
|
3054
3064
|
className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
|
|
3055
3065
|
children: e.children
|
|
3056
3066
|
}
|
|
3057
|
-
) : null });
|
|
3067
|
+
) }) : null });
|
|
3058
3068
|
}
|
|
3059
3069
|
const Cn = (e) => {
|
|
3060
3070
|
var a, r;
|
|
@@ -3068,16 +3078,16 @@ font-display: fallback;
|
|
|
3068
3078
|
font-weight: 400;
|
|
3069
3079
|
}
|
|
3070
3080
|
`.trim()), e.files)
|
|
3071
|
-
for (const
|
|
3072
|
-
if (!(String(Number(
|
|
3081
|
+
for (const s in e.files) {
|
|
3082
|
+
if (!(String(Number(s)) === s))
|
|
3073
3083
|
continue;
|
|
3074
|
-
const c = e.files[
|
|
3084
|
+
const c = e.files[s];
|
|
3075
3085
|
c && c !== i && (o += `
|
|
3076
3086
|
@font-face {
|
|
3077
3087
|
font-family: "${t}";
|
|
3078
3088
|
src: url('${c}') format('woff2');
|
|
3079
3089
|
font-display: fallback;
|
|
3080
|
-
font-weight: ${
|
|
3090
|
+
font-weight: ${s};
|
|
3081
3091
|
}
|
|
3082
3092
|
`.trim());
|
|
3083
3093
|
}
|
|
@@ -3109,7 +3119,7 @@ font-weight: ${l};
|
|
|
3109
3119
|
}
|
|
3110
3120
|
`, En = (e) => e ? "" : Tn;
|
|
3111
3121
|
function Rn(e) {
|
|
3112
|
-
const [t, n] =
|
|
3122
|
+
const [t, n] = C(
|
|
3113
3123
|
() => `
|
|
3114
3124
|
${In({
|
|
3115
3125
|
cssCode: e.cssCode,
|
|
@@ -3121,16 +3131,16 @@ ${wn({
|
|
|
3121
3131
|
${En(e.isNestedRender)}
|
|
3122
3132
|
`.trim()
|
|
3123
3133
|
);
|
|
3124
|
-
return /* @__PURE__ */
|
|
3134
|
+
return /* @__PURE__ */ l(Z, { id: "builderio-content", styles: t });
|
|
3125
3135
|
}
|
|
3126
3136
|
const Pn = ({
|
|
3127
3137
|
content: e,
|
|
3128
3138
|
data: t,
|
|
3129
3139
|
locale: n
|
|
3130
3140
|
}) => {
|
|
3131
|
-
var a, r,
|
|
3141
|
+
var a, r, s;
|
|
3132
3142
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3133
|
-
return (
|
|
3143
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3134
3144
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3135
3145
|
}), {
|
|
3136
3146
|
...i,
|
|
@@ -3152,39 +3162,39 @@ const Pn = ({
|
|
|
3152
3162
|
meta: e == null ? void 0 : e.meta
|
|
3153
3163
|
} : void 0;
|
|
3154
3164
|
function ve(e) {
|
|
3155
|
-
var d, c, m, f,
|
|
3156
|
-
const [t, n] =
|
|
3165
|
+
var d, c, m, f, b, p, v;
|
|
3166
|
+
const [t, n] = C(
|
|
3157
3167
|
() => {
|
|
3158
|
-
var
|
|
3168
|
+
var w, T;
|
|
3159
3169
|
return pn({
|
|
3160
3170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3161
|
-
variationId: (
|
|
3171
|
+
variationId: (w = e.content) == null ? void 0 : w.testVariationId,
|
|
3162
3172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3163
|
-
contentId: (
|
|
3173
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
3164
3174
|
});
|
|
3165
3175
|
}
|
|
3166
3176
|
);
|
|
3167
|
-
function i(
|
|
3168
|
-
|
|
3169
|
-
...
|
|
3170
|
-
rootState:
|
|
3177
|
+
function i(w) {
|
|
3178
|
+
s((T) => ({
|
|
3179
|
+
...T,
|
|
3180
|
+
rootState: w
|
|
3171
3181
|
}));
|
|
3172
3182
|
}
|
|
3173
|
-
const [o, a] =
|
|
3183
|
+
const [o, a] = C(
|
|
3174
3184
|
() => [
|
|
3175
3185
|
...pe(),
|
|
3176
3186
|
...e.customComponents || []
|
|
3177
3187
|
].reduce(
|
|
3178
|
-
(
|
|
3179
|
-
...
|
|
3188
|
+
(w, { component: T, ...R }) => ({
|
|
3189
|
+
...w,
|
|
3180
3190
|
[R.name]: {
|
|
3181
|
-
component:
|
|
3191
|
+
component: T,
|
|
3182
3192
|
...me(R)
|
|
3183
3193
|
}
|
|
3184
3194
|
}),
|
|
3185
3195
|
{}
|
|
3186
3196
|
)
|
|
3187
|
-
), [r,
|
|
3197
|
+
), [r, s] = C(() => ({
|
|
3188
3198
|
content: Vn({
|
|
3189
3199
|
content: e.content,
|
|
3190
3200
|
data: e.data
|
|
@@ -3203,8 +3213,8 @@ function ve(e) {
|
|
|
3203
3213
|
...pe(),
|
|
3204
3214
|
...e.customComponents || []
|
|
3205
3215
|
].reduce(
|
|
3206
|
-
(
|
|
3207
|
-
...
|
|
3216
|
+
(w, { component: T, ...R }) => ({
|
|
3217
|
+
...w,
|
|
3208
3218
|
[R.name]: me(R)
|
|
3209
3219
|
}),
|
|
3210
3220
|
{}
|
|
@@ -3213,7 +3223,7 @@ function ve(e) {
|
|
|
3213
3223
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
3214
3224
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3215
3225
|
}));
|
|
3216
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ l(
|
|
3217
3227
|
Ie.Provider,
|
|
3218
3228
|
{
|
|
3219
3229
|
value: {
|
|
@@ -3236,28 +3246,28 @@ function ve(e) {
|
|
|
3236
3246
|
contentWrapperProps: e.contentWrapperProps,
|
|
3237
3247
|
linkComponent: e.linkComponent,
|
|
3238
3248
|
trustedHosts: e.trustedHosts,
|
|
3239
|
-
setBuilderContextSignal:
|
|
3249
|
+
setBuilderContextSignal: s,
|
|
3240
3250
|
children: [
|
|
3241
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3251
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3242
3252
|
ie,
|
|
3243
3253
|
{
|
|
3244
3254
|
id: "builderio-variant-visibility",
|
|
3245
3255
|
scriptStr: t
|
|
3246
3256
|
}
|
|
3247
|
-
) : null,
|
|
3248
|
-
/* @__PURE__ */
|
|
3257
|
+
) }) : null,
|
|
3258
|
+
/* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3249
3259
|
Rn,
|
|
3250
3260
|
{
|
|
3251
3261
|
isNestedRender: e.isNestedRender,
|
|
3252
3262
|
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
3253
3263
|
cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3254
|
-
customFonts: (
|
|
3264
|
+
customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
3255
3265
|
}
|
|
3256
|
-
),
|
|
3257
|
-
/* @__PURE__ */
|
|
3266
|
+
) }),
|
|
3267
|
+
/* @__PURE__ */ l(
|
|
3258
3268
|
U,
|
|
3259
3269
|
{
|
|
3260
|
-
blocks: (
|
|
3270
|
+
blocks: (v = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : v.blocks,
|
|
3261
3271
|
context: r,
|
|
3262
3272
|
registeredComponents: o,
|
|
3263
3273
|
linkComponent: e.linkComponent
|
|
@@ -3271,64 +3281,64 @@ function ve(e) {
|
|
|
3271
3281
|
}
|
|
3272
3282
|
function Bn(e) {
|
|
3273
3283
|
var r;
|
|
3274
|
-
const [t, n] =
|
|
3284
|
+
const [t, n] = C(
|
|
3275
3285
|
() => hn({
|
|
3276
3286
|
canTrack: G(e.canTrack),
|
|
3277
3287
|
content: e.content
|
|
3278
3288
|
})
|
|
3279
3289
|
);
|
|
3280
3290
|
function i() {
|
|
3281
|
-
var
|
|
3291
|
+
var s;
|
|
3282
3292
|
return yn(
|
|
3283
3293
|
J(e.content).map((d) => ({
|
|
3284
3294
|
id: d.testVariationId,
|
|
3285
3295
|
testRatio: d.testRatio
|
|
3286
3296
|
})),
|
|
3287
|
-
((
|
|
3297
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3288
3298
|
);
|
|
3289
3299
|
}
|
|
3290
3300
|
function o() {
|
|
3291
|
-
return J(e.content).map((
|
|
3301
|
+
return J(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3292
3302
|
}
|
|
3293
3303
|
function a() {
|
|
3294
|
-
var
|
|
3304
|
+
var s;
|
|
3295
3305
|
return t ? {
|
|
3296
3306
|
...e.content,
|
|
3297
|
-
testVariationId: (
|
|
3307
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3298
3308
|
} : _e({
|
|
3299
3309
|
item: e.content,
|
|
3300
3310
|
canTrack: G(e.canTrack)
|
|
3301
3311
|
});
|
|
3302
3312
|
}
|
|
3303
3313
|
return V(() => {
|
|
3304
|
-
}, []), /* @__PURE__ */ B(
|
|
3305
|
-
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */
|
|
3314
|
+
}, []), /* @__PURE__ */ B(g, { children: [
|
|
3315
|
+
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3306
3316
|
ie,
|
|
3307
3317
|
{
|
|
3308
3318
|
id: "builderio-init-variants-fns",
|
|
3309
3319
|
scriptStr: bn()
|
|
3310
3320
|
}
|
|
3311
|
-
) : null,
|
|
3312
|
-
t ? /* @__PURE__ */ B(
|
|
3313
|
-
/* @__PURE__ */
|
|
3321
|
+
) }) : null,
|
|
3322
|
+
t ? /* @__PURE__ */ B(g, { children: [
|
|
3323
|
+
/* @__PURE__ */ l(
|
|
3314
3324
|
Z,
|
|
3315
3325
|
{
|
|
3316
3326
|
id: "builderio-variants",
|
|
3317
3327
|
styles: o()
|
|
3318
3328
|
}
|
|
3319
3329
|
),
|
|
3320
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ l(
|
|
3321
3331
|
ie,
|
|
3322
3332
|
{
|
|
3323
3333
|
id: "builderio-variants-visibility",
|
|
3324
3334
|
scriptStr: i()
|
|
3325
3335
|
}
|
|
3326
3336
|
),
|
|
3327
|
-
(r = J(e.content)) == null ? void 0 : r.map((
|
|
3337
|
+
(r = J(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3328
3338
|
ve,
|
|
3329
3339
|
{
|
|
3330
3340
|
isNestedRender: e.isNestedRender,
|
|
3331
|
-
content:
|
|
3341
|
+
content: s,
|
|
3332
3342
|
showContent: !1,
|
|
3333
3343
|
model: e.model,
|
|
3334
3344
|
data: e.data,
|
|
@@ -3347,10 +3357,10 @@ function Bn(e) {
|
|
|
3347
3357
|
contentWrapperProps: e.contentWrapperProps,
|
|
3348
3358
|
trustedHosts: e.trustedHosts
|
|
3349
3359
|
},
|
|
3350
|
-
|
|
3360
|
+
s.testVariationId
|
|
3351
3361
|
))
|
|
3352
3362
|
] }) : null,
|
|
3353
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ l(
|
|
3354
3364
|
ve,
|
|
3355
3365
|
{
|
|
3356
3366
|
isNestedRender: e.isNestedRender,
|
|
@@ -3396,7 +3406,7 @@ const An = async ({
|
|
|
3396
3406
|
});
|
|
3397
3407
|
};
|
|
3398
3408
|
function Wn(e) {
|
|
3399
|
-
var a, r,
|
|
3409
|
+
var a, r, s, d;
|
|
3400
3410
|
function t() {
|
|
3401
3411
|
var c, m;
|
|
3402
3412
|
return [
|
|
@@ -3406,7 +3416,7 @@ function Wn(e) {
|
|
|
3406
3416
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3407
3417
|
].filter(Boolean).join(" ");
|
|
3408
3418
|
}
|
|
3409
|
-
const [n, i] =
|
|
3419
|
+
const [n, i] = C(() => {
|
|
3410
3420
|
var c;
|
|
3411
3421
|
return (c = e.symbol) == null ? void 0 : c.content;
|
|
3412
3422
|
});
|
|
@@ -3421,7 +3431,7 @@ function Wn(e) {
|
|
|
3421
3431
|
return V(() => {
|
|
3422
3432
|
}, []), V(() => {
|
|
3423
3433
|
o();
|
|
3424
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
3434
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
3425
3435
|
Bn,
|
|
3426
3436
|
{
|
|
3427
3437
|
isNestedRender: !0,
|
|
@@ -3435,7 +3445,7 @@ function Wn(e) {
|
|
|
3435
3445
|
data: {
|
|
3436
3446
|
...(r = e.symbol) == null ? void 0 : r.data,
|
|
3437
3447
|
...e.builderContext.localState,
|
|
3438
|
-
...(
|
|
3448
|
+
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
3439
3449
|
},
|
|
3440
3450
|
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
3441
3451
|
content: n,
|
|
@@ -3447,6 +3457,7 @@ function Wn(e) {
|
|
|
3447
3457
|
}
|
|
3448
3458
|
export {
|
|
3449
3459
|
U as Blocks,
|
|
3460
|
+
re as BuilderContext,
|
|
3450
3461
|
Ge as Button,
|
|
3451
3462
|
Et as Columns,
|
|
3452
3463
|
Bn as Content,
|