@builder.io/sdk-react 2.0.1 → 2.0.3
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 +29 -29
- package/lib/browser/blocks-exports.mjs +302 -294
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/server-entry-02cecfb7.cjs +2 -0
- package/lib/browser/server-entry-0687830a.js +688 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4a70912d.js → accordion-0eca9b08.js} +1 -1
- package/lib/edge/{accordion-6ad2cec7.cjs → accordion-368a2cf8.cjs} +1 -1
- package/lib/edge/{blocks-fedde8d2.js → blocks-db3cfcac.js} +130 -129
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-0bd38a83.cjs → blocks-f524a758.cjs} +13 -13
- package/lib/edge/{button-f6426eff.cjs → button-3ed29654.cjs} +1 -1
- package/lib/edge/{button-af35e8de.js → button-e852700f.js} +2 -2
- package/lib/edge/columns-1f84e26e.cjs +28 -0
- package/lib/edge/{columns-1065c0ae.js → columns-ee464f6c.js} +49 -48
- package/lib/edge/{content-variants-773afb9f.cjs → content-variants-42f2495b.cjs} +8 -8
- package/lib/edge/{content-variants-3d57a82f.js → content-variants-c0257a99.js} +241 -236
- package/lib/edge/{form-5762c22a.cjs → form-4444faf2.cjs} +1 -1
- package/lib/edge/{form-0a58d0e4.js → form-8191004e.js} +3 -3
- package/lib/edge/{get-class-prop-name-3061c329.cjs → get-class-prop-name-5fc98fcc.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-268b0f61.js → get-class-prop-name-d18337d2.js} +1 -1
- package/lib/edge/image-344ddbb0.cjs +17 -0
- package/lib/edge/{image-68451fc8.js → image-e3fcd611.js} +24 -22
- package/lib/edge/{img-59bb70c7.cjs → img-10ef20a5.cjs} +1 -1
- package/lib/edge/{img-252c9967.js → img-a24ed75f.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-7ae243e2.js → input-3876429d.js} +1 -1
- package/lib/edge/{input-2163d4dc.cjs → input-6325bfc0.cjs} +1 -1
- package/lib/edge/{select-39231177.cjs → select-3f0f00f3.cjs} +1 -1
- package/lib/edge/{select-cfa0eb8e.js → select-5dc1c7d1.js} +1 -1
- package/lib/edge/server-entry-805b9266.cjs +2 -0
- package/lib/edge/server-entry-ff728468.js +689 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7c61542f.js → slot-20fe5e4f.js} +3 -3
- package/lib/edge/{slot-69da8c56.cjs → slot-a64b535f.cjs} +1 -1
- package/lib/edge/{symbol-bd999a19.cjs → symbol-5012ed02.cjs} +1 -1
- package/lib/edge/{symbol-4a8a6cda.js → symbol-e95082e1.js} +2 -2
- package/lib/edge/{tabs-c3ff0c70.js → tabs-261e8cd4.js} +3 -3
- package/lib/edge/{tabs-3d0e242e.cjs → tabs-d672f816.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +16 -16
- package/lib/node/blocks-exports.mjs +259 -251
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-3bfd8465.cjs → node-runtime-160b6846.cjs} +2 -2
- package/lib/node/{node-runtime-78262e65.js → node-runtime-405effc5.js} +3 -2
- package/lib/node/server-entry-02cecfb7.cjs +2 -0
- package/lib/node/server-entry-0687830a.js +688 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/register-component.d.ts +2 -2
- package/lib/browser/server-entry-29c5c31c.cjs +0 -2
- package/lib/browser/server-entry-f9067095.js +0 -695
- package/lib/edge/columns-f607250b.cjs +0 -28
- package/lib/edge/image-ea37781b.cjs +0 -17
- package/lib/edge/server-entry-4750de9c.cjs +0 -2
- package/lib/edge/server-entry-681e8e79.js +0 -695
- package/lib/node/server-entry-5f9f100f.js +0 -695
- package/lib/node/server-entry-63058f3f.cjs +0 -2
|
@@ -3,10 +3,10 @@ var qe = Object.defineProperty;
|
|
|
3
3
|
var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as z, isEditing as
|
|
7
|
-
import { createContext as Re, useState as
|
|
6
|
+
import { TARGET as z, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-0687830a.js";
|
|
7
|
+
import { createContext as Re, useState as T, useEffect as V, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
8
|
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
|
-
function
|
|
9
|
+
function de(e) {
|
|
10
10
|
return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
12
|
const q = () => {
|
|
@@ -38,7 +38,7 @@ function nt(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ s(
|
|
41
|
-
|
|
41
|
+
de,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function nt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const ue = Re({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -82,7 +82,7 @@ const ot = ({
|
|
|
82
82
|
context: t,
|
|
83
83
|
event: n
|
|
84
84
|
}), at = () => ({
|
|
85
|
-
isEditing:
|
|
85
|
+
isEditing: F(),
|
|
86
86
|
isBrowser: M(),
|
|
87
87
|
isServer: !M(),
|
|
88
88
|
getUserAttributes: () => ze()
|
|
@@ -206,7 +206,7 @@ function K({
|
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const Ve = (e, t, n) => {
|
|
209
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Ve = (e, t, n) => {
|
|
210
210
|
if (Object(e) !== e)
|
|
211
211
|
return e;
|
|
212
212
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -221,7 +221,7 @@ const dt = ({
|
|
|
221
221
|
}) => {
|
|
222
222
|
if (!e.bindings)
|
|
223
223
|
return e;
|
|
224
|
-
const r =
|
|
224
|
+
const r = me(e), a = {
|
|
225
225
|
...r,
|
|
226
226
|
properties: {
|
|
227
227
|
...r.properties
|
|
@@ -344,8 +344,8 @@ function ht(e) {
|
|
|
344
344
|
leading: !1
|
|
345
345
|
});
|
|
346
346
|
function l(f) {
|
|
347
|
-
const d = f.getBoundingClientRect(), m = window.innerHeight,
|
|
348
|
-
return d.bottom >
|
|
347
|
+
const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
|
|
348
|
+
return d.bottom > y && d.top < m - y;
|
|
349
349
|
}
|
|
350
350
|
const c = e.steps[0].styles;
|
|
351
351
|
function u() {
|
|
@@ -359,10 +359,10 @@ function ht(e) {
|
|
|
359
359
|
}), r();
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
363
363
|
if (typeof i == "string")
|
|
364
364
|
return `${te(n)}: ${i};`;
|
|
365
|
-
}).filter(G), gt = (e) =>
|
|
365
|
+
}).filter(G), gt = (e) => $e(e).join(`
|
|
366
366
|
`), J = ({
|
|
367
367
|
mediaQuery: e,
|
|
368
368
|
className: t,
|
|
@@ -383,18 +383,18 @@ function bt({
|
|
|
383
383
|
const pt = ({
|
|
384
384
|
block: e,
|
|
385
385
|
context: t
|
|
386
|
-
}) =>
|
|
386
|
+
}) => Fe(bt({
|
|
387
387
|
style: e.style || {},
|
|
388
388
|
context: t,
|
|
389
389
|
block: e
|
|
390
390
|
}));
|
|
391
|
-
function
|
|
391
|
+
function Fe(e) {
|
|
392
392
|
switch (z) {
|
|
393
393
|
case "svelte":
|
|
394
394
|
case "vue":
|
|
395
395
|
case "solid":
|
|
396
396
|
case "angular":
|
|
397
|
-
return
|
|
397
|
+
return $e(e).join(" ");
|
|
398
398
|
case "qwik":
|
|
399
399
|
case "reactNative":
|
|
400
400
|
case "react":
|
|
@@ -498,7 +498,7 @@ const yt = ({
|
|
|
498
498
|
small: e,
|
|
499
499
|
medium: t
|
|
500
500
|
}) => {
|
|
501
|
-
const n =
|
|
501
|
+
const n = me(De);
|
|
502
502
|
if (!e || !t)
|
|
503
503
|
return n;
|
|
504
504
|
const i = Math.floor(e / 2);
|
|
@@ -544,7 +544,7 @@ function Tt(e) {
|
|
|
544
544
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
545
545
|
}
|
|
546
546
|
function n() {
|
|
547
|
-
var
|
|
547
|
+
var p, B, E;
|
|
548
548
|
const i = X({
|
|
549
549
|
block: e.block,
|
|
550
550
|
localState: e.context.localState,
|
|
@@ -553,7 +553,7 @@ function Tt(e) {
|
|
|
553
553
|
context: e.context.context,
|
|
554
554
|
shouldEvaluateBindings: !0
|
|
555
555
|
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
556
|
-
((
|
|
556
|
+
((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
|
|
557
557
|
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
558
558
|
if (!f)
|
|
559
559
|
return "";
|
|
@@ -574,18 +574,18 @@ function Tt(e) {
|
|
|
574
574
|
"small",
|
|
575
575
|
a
|
|
576
576
|
)
|
|
577
|
-
}) : "",
|
|
578
|
-
let
|
|
579
|
-
if (
|
|
580
|
-
const A = ((
|
|
581
|
-
|
|
577
|
+
}) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
578
|
+
let C = "";
|
|
579
|
+
if (y) {
|
|
580
|
+
const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
|
|
581
|
+
C = J({
|
|
582
582
|
className: `${f}:hover`,
|
|
583
583
|
styles: {
|
|
584
584
|
...A,
|
|
585
|
-
transition: `all ${
|
|
586
|
-
|
|
585
|
+
transition: `all ${y.duration}s ${te(
|
|
586
|
+
y.easing
|
|
587
587
|
)}`,
|
|
588
|
-
transitionDelay:
|
|
588
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
589
589
|
}
|
|
590
590
|
}) || "";
|
|
591
591
|
}
|
|
@@ -593,7 +593,7 @@ function Tt(e) {
|
|
|
593
593
|
d,
|
|
594
594
|
m,
|
|
595
595
|
g,
|
|
596
|
-
|
|
596
|
+
C
|
|
597
597
|
].join(" ");
|
|
598
598
|
}
|
|
599
599
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -670,7 +670,7 @@ function fe({
|
|
|
670
670
|
}
|
|
671
671
|
function Pt(e) {
|
|
672
672
|
return /* @__PURE__ */ s(
|
|
673
|
-
|
|
673
|
+
de,
|
|
674
674
|
{
|
|
675
675
|
TagName: e.Wrapper,
|
|
676
676
|
attributes: fe({
|
|
@@ -739,7 +739,7 @@ const At = ({
|
|
|
739
739
|
};
|
|
740
740
|
function xe(e) {
|
|
741
741
|
var i;
|
|
742
|
-
const [t, n] =
|
|
742
|
+
const [t, n] = T(
|
|
743
743
|
() => e.isInteractive ? Vt : e.componentRef
|
|
744
744
|
);
|
|
745
745
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -769,8 +769,8 @@ function xe(e) {
|
|
|
769
769
|
) }) : null });
|
|
770
770
|
}
|
|
771
771
|
function Nt(e) {
|
|
772
|
-
const [t, n] =
|
|
773
|
-
return /* @__PURE__ */ s(
|
|
772
|
+
const [t, n] = T(() => e.repeatContext);
|
|
773
|
+
return /* @__PURE__ */ s(ue.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
774
774
|
_,
|
|
775
775
|
{
|
|
776
776
|
block: e.block,
|
|
@@ -811,9 +811,9 @@ function _(e) {
|
|
|
811
811
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
812
812
|
}
|
|
813
813
|
function r() {
|
|
814
|
-
var g,
|
|
814
|
+
var g, y;
|
|
815
815
|
if ((g = e.block.repeat) != null && g.collection)
|
|
816
|
-
return !!((
|
|
816
|
+
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
817
817
|
const d = "hide" in i() ? i().hide : !1;
|
|
818
818
|
return ("show" in i() ? i().show : !0) && !d;
|
|
819
819
|
}
|
|
@@ -822,7 +822,7 @@ function _(e) {
|
|
|
822
822
|
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
823
823
|
}
|
|
824
824
|
function l() {
|
|
825
|
-
var d, m, g,
|
|
825
|
+
var d, m, g, y;
|
|
826
826
|
return {
|
|
827
827
|
blockChildren: (d = i().children) != null ? d : [],
|
|
828
828
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
@@ -841,10 +841,10 @@ function _(e) {
|
|
|
841
841
|
registeredComponents: e.registeredComponents,
|
|
842
842
|
builderBlock: i(),
|
|
843
843
|
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
844
|
-
isInteractive: !((
|
|
844
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
return
|
|
847
|
+
return V(() => {
|
|
848
848
|
const d = i().id, m = i().animations;
|
|
849
849
|
m && d && mt(
|
|
850
850
|
m.map((g) => ({
|
|
@@ -919,7 +919,7 @@ function Wt(e) {
|
|
|
919
919
|
}
|
|
920
920
|
function n() {
|
|
921
921
|
var o, r;
|
|
922
|
-
|
|
922
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
923
923
|
{
|
|
924
924
|
type: "builder.clickEmptyBlocks",
|
|
925
925
|
data: {
|
|
@@ -932,7 +932,7 @@ function Wt(e) {
|
|
|
932
932
|
}
|
|
933
933
|
function i() {
|
|
934
934
|
var o, r;
|
|
935
|
-
|
|
935
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
936
936
|
{
|
|
937
937
|
type: "builder.hoverEmptyBlocks",
|
|
938
938
|
data: {
|
|
@@ -967,7 +967,7 @@ function Wt(e) {
|
|
|
967
967
|
}
|
|
968
968
|
function D(e) {
|
|
969
969
|
var i, o, r;
|
|
970
|
-
const t = be(
|
|
970
|
+
const t = be(ue), n = be(Be);
|
|
971
971
|
return /* @__PURE__ */ s(
|
|
972
972
|
Wt,
|
|
973
973
|
{
|
|
@@ -990,41 +990,41 @@ function D(e) {
|
|
|
990
990
|
}
|
|
991
991
|
);
|
|
992
992
|
}
|
|
993
|
-
const
|
|
994
|
-
function
|
|
993
|
+
const $t = (e) => `builder-columns ${e}-breakpoints`;
|
|
994
|
+
function Ft(e) {
|
|
995
995
|
var A, O;
|
|
996
|
-
const [t, n] =
|
|
996
|
+
const [t, n] = T(
|
|
997
997
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
998
|
-
), [i, o] =
|
|
998
|
+
), [i, o] = T(() => e.columns || []), [r, a] = T(
|
|
999
999
|
() => e.stackColumnsAt || "tablet"
|
|
1000
1000
|
);
|
|
1001
|
-
function l(
|
|
1002
|
-
return
|
|
1001
|
+
function l(x) {
|
|
1002
|
+
return x.link ? e.builderLinkComponent || "a" : "div";
|
|
1003
1003
|
}
|
|
1004
|
-
function c(
|
|
1004
|
+
function c(x) {
|
|
1005
1005
|
var w;
|
|
1006
|
-
return ((w = i[
|
|
1006
|
+
return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
|
|
1007
1007
|
}
|
|
1008
|
-
function u(
|
|
1009
|
-
const w = c(
|
|
1008
|
+
function u(x) {
|
|
1009
|
+
const w = c(x), N = t * (i.length - 1) * (w / 100);
|
|
1010
1010
|
return `calc(${w}% - ${N}px)`;
|
|
1011
1011
|
}
|
|
1012
1012
|
function f({
|
|
1013
|
-
stackedStyle:
|
|
1013
|
+
stackedStyle: x,
|
|
1014
1014
|
desktopStyle: w
|
|
1015
1015
|
}) {
|
|
1016
|
-
return r === "tablet" ?
|
|
1016
|
+
return r === "tablet" ? x : w;
|
|
1017
1017
|
}
|
|
1018
1018
|
function d({
|
|
1019
|
-
stackedStyle:
|
|
1019
|
+
stackedStyle: x,
|
|
1020
1020
|
desktopStyle: w
|
|
1021
1021
|
}) {
|
|
1022
|
-
return r === "never" ? w :
|
|
1022
|
+
return r === "never" ? w : x;
|
|
1023
1023
|
}
|
|
1024
|
-
const [m, g] =
|
|
1024
|
+
const [m, g] = T(
|
|
1025
1025
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1026
1026
|
);
|
|
1027
|
-
function
|
|
1027
|
+
function y() {
|
|
1028
1028
|
return {
|
|
1029
1029
|
"--flex-dir": m,
|
|
1030
1030
|
"--flex-dir-tablet": f({
|
|
@@ -1033,8 +1033,8 @@ function $t(e) {
|
|
|
1033
1033
|
})
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const w =
|
|
1036
|
+
function C(x) {
|
|
1037
|
+
const w = x === 0 ? 0 : t, N = u(x), b = `${w}px`, h = "100%", v = 0;
|
|
1038
1038
|
return {
|
|
1039
1039
|
...{
|
|
1040
1040
|
display: "flex",
|
|
@@ -1048,7 +1048,7 @@ function $t(e) {
|
|
|
1048
1048
|
desktopStyle: N
|
|
1049
1049
|
}),
|
|
1050
1050
|
"--column-margin-left-mobile": d({
|
|
1051
|
-
stackedStyle:
|
|
1051
|
+
stackedStyle: v,
|
|
1052
1052
|
desktopStyle: b
|
|
1053
1053
|
}),
|
|
1054
1054
|
"--column-width-tablet": f({
|
|
@@ -1056,74 +1056,75 @@ function $t(e) {
|
|
|
1056
1056
|
desktopStyle: N
|
|
1057
1057
|
}),
|
|
1058
1058
|
"--column-margin-left-tablet": f({
|
|
1059
|
-
stackedStyle:
|
|
1059
|
+
stackedStyle: v,
|
|
1060
1060
|
desktopStyle: b
|
|
1061
1061
|
})
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function x
|
|
1064
|
+
function p(x) {
|
|
1065
1065
|
var N, b;
|
|
1066
1066
|
return Le(
|
|
1067
1067
|
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1068
|
-
)[
|
|
1068
|
+
)[x].max;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function B() {
|
|
1071
|
+
const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1071
1072
|
return `
|
|
1072
|
-
@media (max-width: ${
|
|
1073
|
+
@media (max-width: ${p("medium")}px) {
|
|
1073
1074
|
.${e.builderBlock.id}-breakpoints {
|
|
1074
1075
|
flex-direction: var(--flex-dir-tablet);
|
|
1075
1076
|
align-items: stretch;
|
|
1076
1077
|
}
|
|
1077
1078
|
|
|
1078
|
-
|
|
1079
|
+
${x} {
|
|
1079
1080
|
width: var(--column-width-tablet) !important;
|
|
1080
1081
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1081
1082
|
}
|
|
1082
1083
|
}
|
|
1083
1084
|
|
|
1084
|
-
@media (max-width: ${
|
|
1085
|
+
@media (max-width: ${p("small")}px) {
|
|
1085
1086
|
.${e.builderBlock.id}-breakpoints {
|
|
1086
1087
|
flex-direction: var(--flex-dir);
|
|
1087
1088
|
align-items: stretch;
|
|
1088
1089
|
}
|
|
1089
1090
|
|
|
1090
|
-
|
|
1091
|
+
${x} {
|
|
1091
1092
|
width: var(--column-width-mobile) !important;
|
|
1092
1093
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1093
1094
|
}
|
|
1094
1095
|
},
|
|
1095
1096
|
`;
|
|
1096
1097
|
}
|
|
1097
|
-
function
|
|
1098
|
+
function E(x, w) {
|
|
1098
1099
|
return {
|
|
1099
|
-
...
|
|
1100
|
-
href:
|
|
1100
|
+
...x.link ? {
|
|
1101
|
+
href: x.link
|
|
1101
1102
|
} : {},
|
|
1102
1103
|
[q()]: "builder-column",
|
|
1103
|
-
style:
|
|
1104
|
+
style: Fe(C(w))
|
|
1104
1105
|
};
|
|
1105
1106
|
}
|
|
1106
1107
|
return /* @__PURE__ */ P(R, { children: [
|
|
1107
1108
|
/* @__PURE__ */ P(
|
|
1108
1109
|
"div",
|
|
1109
1110
|
{
|
|
1110
|
-
className:
|
|
1111
|
-
style:
|
|
1111
|
+
className: $t((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1112
|
+
style: y(),
|
|
1112
1113
|
children: [
|
|
1113
1114
|
/* @__PURE__ */ s(
|
|
1114
1115
|
ne,
|
|
1115
1116
|
{
|
|
1116
1117
|
id: "builderio-columns",
|
|
1117
|
-
styles:
|
|
1118
|
+
styles: B(),
|
|
1118
1119
|
nonce: e.builderContext.nonce
|
|
1119
1120
|
}
|
|
1120
1121
|
),
|
|
1121
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
1122
|
-
|
|
1122
|
+
(O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
|
|
1123
|
+
de,
|
|
1123
1124
|
{
|
|
1124
|
-
TagName: l(
|
|
1125
|
+
TagName: l(x),
|
|
1125
1126
|
actionAttributes: {},
|
|
1126
|
-
attributes:
|
|
1127
|
+
attributes: E(x, w),
|
|
1127
1128
|
children: /* @__PURE__ */ s(
|
|
1128
1129
|
D,
|
|
1129
1130
|
{
|
|
@@ -1135,7 +1136,7 @@ function $t(e) {
|
|
|
1135
1136
|
context: e.builderContext,
|
|
1136
1137
|
registeredComponents: e.builderComponents,
|
|
1137
1138
|
linkComponent: e.builderLinkComponent,
|
|
1138
|
-
blocks:
|
|
1139
|
+
blocks: x.blocks
|
|
1139
1140
|
}
|
|
1140
1141
|
)
|
|
1141
1142
|
},
|
|
@@ -1144,7 +1145,7 @@ function $t(e) {
|
|
|
1144
1145
|
]
|
|
1145
1146
|
}
|
|
1146
1147
|
),
|
|
1147
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1148
|
+
/* @__PURE__ */ s("style", { children: `.div-34f576bb {
|
|
1148
1149
|
display: flex;
|
|
1149
1150
|
line-height: normal;
|
|
1150
1151
|
}` })
|
|
@@ -1192,12 +1193,14 @@ function jt(e) {
|
|
|
1192
1193
|
// images, otherwise you can supply this prop manually
|
|
1193
1194
|
!(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
|
|
1194
1195
|
return e.srcset;
|
|
1195
|
-
if (e.
|
|
1196
|
-
if (
|
|
1197
|
-
|
|
1198
|
-
|
|
1196
|
+
if (!e.noWebp) {
|
|
1197
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1198
|
+
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1199
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1200
|
+
} else if (e.image && !e.srcset)
|
|
1201
|
+
return oe(d);
|
|
1199
1202
|
return oe(d);
|
|
1200
|
-
|
|
1203
|
+
}
|
|
1201
1204
|
}
|
|
1202
1205
|
function n() {
|
|
1203
1206
|
var f;
|
|
@@ -1229,7 +1232,7 @@ function jt(e) {
|
|
|
1229
1232
|
objectFit: e.backgroundSize || "cover",
|
|
1230
1233
|
...i()
|
|
1231
1234
|
},
|
|
1232
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1235
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
|
|
1233
1236
|
src: e.image,
|
|
1234
1237
|
srcSet: t(),
|
|
1235
1238
|
sizes: e.sizes
|
|
@@ -1239,23 +1242,23 @@ function jt(e) {
|
|
|
1239
1242
|
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1240
1243
|
"div",
|
|
1241
1244
|
{
|
|
1242
|
-
className: "builder-image-sizer div-
|
|
1245
|
+
className: "builder-image-sizer div-56bbd606",
|
|
1243
1246
|
style: {
|
|
1244
1247
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1245
1248
|
}
|
|
1246
1249
|
}
|
|
1247
1250
|
) : null,
|
|
1248
1251
|
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1249
|
-
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-
|
|
1252
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-56bbd606-2", children: e.children }) : null
|
|
1250
1253
|
] }),
|
|
1251
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1254
|
+
/* @__PURE__ */ s("style", { children: `.img-56bbd606 {
|
|
1252
1255
|
opacity: 1;
|
|
1253
1256
|
transition: opacity 0.2s ease-in-out;
|
|
1254
|
-
}.div-
|
|
1257
|
+
}.div-56bbd606 {
|
|
1255
1258
|
width: 100%;
|
|
1256
1259
|
pointer-events: none;
|
|
1257
1260
|
font-size: 0;
|
|
1258
|
-
}.div-
|
|
1261
|
+
}.div-56bbd606-2 {
|
|
1259
1262
|
display: flex;
|
|
1260
1263
|
flex-direction: column;
|
|
1261
1264
|
align-items: stretch;
|
|
@@ -1415,7 +1418,7 @@ const ae = {
|
|
|
1415
1418
|
}, Se = (e) => e.toString();
|
|
1416
1419
|
function Ht(e) {
|
|
1417
1420
|
var d;
|
|
1418
|
-
const [t, n] =
|
|
1421
|
+
const [t, n] = T(() => []);
|
|
1419
1422
|
function i() {
|
|
1420
1423
|
return !!(e.grid || e.oneAtATime);
|
|
1421
1424
|
}
|
|
@@ -1441,7 +1444,7 @@ function Ht(e) {
|
|
|
1441
1444
|
cursor: "pointer"
|
|
1442
1445
|
};
|
|
1443
1446
|
return Object.fromEntries(
|
|
1444
|
-
Object.entries(g).filter(([
|
|
1447
|
+
Object.entries(g).filter(([y, C]) => C !== void 0)
|
|
1445
1448
|
);
|
|
1446
1449
|
}
|
|
1447
1450
|
function a(m) {
|
|
@@ -1453,23 +1456,23 @@ function Ht(e) {
|
|
|
1453
1456
|
function c() {
|
|
1454
1457
|
let m = null;
|
|
1455
1458
|
if (e.grid && t.length && document) {
|
|
1456
|
-
const
|
|
1457
|
-
let
|
|
1458
|
-
`.builder-accordion-title[data-index="${
|
|
1459
|
+
const y = t[0];
|
|
1460
|
+
let p = document.querySelector(
|
|
1461
|
+
`.builder-accordion-title[data-index="${y}"]`
|
|
1459
1462
|
);
|
|
1460
|
-
if (m =
|
|
1461
|
-
let
|
|
1462
|
-
for (;
|
|
1463
|
-
if (
|
|
1464
|
-
if (
|
|
1463
|
+
if (m = y, p) {
|
|
1464
|
+
let B = p.getBoundingClientRect();
|
|
1465
|
+
for (; p = p && p.nextElementSibling; )
|
|
1466
|
+
if (p) {
|
|
1467
|
+
if (p.classList.contains("builder-accordion-detail"))
|
|
1465
1468
|
continue;
|
|
1466
|
-
const
|
|
1467
|
-
if (
|
|
1469
|
+
const E = p.getBoundingClientRect();
|
|
1470
|
+
if (E.left > B.left) {
|
|
1468
1471
|
const A = parseInt(
|
|
1469
|
-
|
|
1472
|
+
p.getAttribute("data-index") || "",
|
|
1470
1473
|
10
|
|
1471
1474
|
);
|
|
1472
|
-
isNaN(A) || (
|
|
1475
|
+
isNaN(A) || (B = E, m = A);
|
|
1473
1476
|
} else
|
|
1474
1477
|
break;
|
|
1475
1478
|
}
|
|
@@ -1485,7 +1488,7 @@ function Ht(e) {
|
|
|
1485
1488
|
}
|
|
1486
1489
|
};
|
|
1487
1490
|
return Object.fromEntries(
|
|
1488
|
-
Object.entries(m).filter(([g,
|
|
1491
|
+
Object.entries(m).filter(([g, y]) => y !== void 0)
|
|
1489
1492
|
);
|
|
1490
1493
|
}
|
|
1491
1494
|
function f(m) {
|
|
@@ -1502,7 +1505,7 @@ function Ht(e) {
|
|
|
1502
1505
|
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1503
1506
|
},
|
|
1504
1507
|
"data-index": g,
|
|
1505
|
-
onClick: (
|
|
1508
|
+
onClick: (y) => f(g),
|
|
1506
1509
|
children: /* @__PURE__ */ s(
|
|
1507
1510
|
D,
|
|
1508
1511
|
{
|
|
@@ -2155,7 +2158,7 @@ const Qt = {
|
|
|
2155
2158
|
};
|
|
2156
2159
|
function Zt(e) {
|
|
2157
2160
|
var r;
|
|
2158
|
-
const [t, n] =
|
|
2161
|
+
const [t, n] = T(
|
|
2159
2162
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2160
2163
|
);
|
|
2161
2164
|
function i(a) {
|
|
@@ -2271,8 +2274,8 @@ const nn = {
|
|
|
2271
2274
|
}]
|
|
2272
2275
|
};
|
|
2273
2276
|
function on(e) {
|
|
2274
|
-
const t = ee(null), [n, i] =
|
|
2275
|
-
return
|
|
2277
|
+
const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
|
|
2278
|
+
return V(() => {
|
|
2276
2279
|
var l;
|
|
2277
2280
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2278
2281
|
return;
|
|
@@ -2325,7 +2328,7 @@ const an = {
|
|
|
2325
2328
|
}]
|
|
2326
2329
|
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2327
2330
|
function sn(e) {
|
|
2328
|
-
const t = ee(null), [n, i] =
|
|
2331
|
+
const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []), [a, l] = T(() => !1);
|
|
2329
2332
|
function c() {
|
|
2330
2333
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2331
2334
|
return;
|
|
@@ -2344,7 +2347,7 @@ function sn(e) {
|
|
|
2344
2347
|
}
|
|
2345
2348
|
}
|
|
2346
2349
|
}
|
|
2347
|
-
return
|
|
2350
|
+
return V(() => {
|
|
2348
2351
|
t.current && !a && (l(!0), c());
|
|
2349
2352
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2350
2353
|
"div",
|
|
@@ -2601,68 +2604,68 @@ const cn = {
|
|
|
2601
2604
|
};
|
|
2602
2605
|
function fn(e) {
|
|
2603
2606
|
var d, m;
|
|
2604
|
-
const t = ee(null), [n, i] =
|
|
2607
|
+
const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
|
|
2605
2608
|
function c(g) {
|
|
2606
|
-
var
|
|
2607
|
-
const
|
|
2609
|
+
var C, p;
|
|
2610
|
+
const y = {
|
|
2608
2611
|
...e.builderContext.rootState,
|
|
2609
2612
|
...g
|
|
2610
2613
|
};
|
|
2611
|
-
e.builderContext.rootSetState ? (
|
|
2614
|
+
e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
|
|
2612
2615
|
}
|
|
2613
2616
|
function u() {
|
|
2614
|
-
return
|
|
2617
|
+
return F() && e.previewState || n;
|
|
2615
2618
|
}
|
|
2616
2619
|
function f(g) {
|
|
2617
|
-
var
|
|
2618
|
-
const
|
|
2620
|
+
var C;
|
|
2621
|
+
const y = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2619
2622
|
if (e.sendSubmissionsTo === "zapier")
|
|
2620
2623
|
g.preventDefault();
|
|
2621
|
-
else if (
|
|
2624
|
+
else if (y) {
|
|
2622
2625
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2623
2626
|
g.preventDefault();
|
|
2624
2627
|
return;
|
|
2625
2628
|
}
|
|
2626
2629
|
g.preventDefault();
|
|
2627
|
-
const
|
|
2628
|
-
let
|
|
2629
|
-
const A = new FormData(
|
|
2630
|
+
const p = g.currentTarget || g.target, B = e.customHeaders || {};
|
|
2631
|
+
let E;
|
|
2632
|
+
const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2630
2633
|
let h;
|
|
2631
|
-
const
|
|
2634
|
+
const v = b.name;
|
|
2632
2635
|
if (b instanceof HTMLInputElement)
|
|
2633
2636
|
if (b.type === "radio") {
|
|
2634
2637
|
if (b.checked)
|
|
2635
2638
|
return h = b.name, {
|
|
2636
|
-
key:
|
|
2639
|
+
key: v,
|
|
2637
2640
|
value: h
|
|
2638
2641
|
};
|
|
2639
2642
|
} else if (b.type === "checkbox")
|
|
2640
2643
|
h = b.checked;
|
|
2641
2644
|
else if (b.type === "number" || b.type === "range") {
|
|
2642
|
-
const
|
|
2643
|
-
isNaN(
|
|
2645
|
+
const S = b.valueAsNumber;
|
|
2646
|
+
isNaN(S) || (h = S);
|
|
2644
2647
|
} else
|
|
2645
2648
|
b.type === "file" ? h = b.files : h = b.value;
|
|
2646
2649
|
else
|
|
2647
2650
|
h = b.value;
|
|
2648
2651
|
return {
|
|
2649
|
-
key:
|
|
2652
|
+
key: v,
|
|
2650
2653
|
value: h
|
|
2651
2654
|
};
|
|
2652
2655
|
});
|
|
2653
|
-
let
|
|
2654
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2655
|
-
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (
|
|
2656
|
-
}),
|
|
2657
|
-
|
|
2656
|
+
let x = e.contentType;
|
|
2657
|
+
if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2658
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
|
|
2659
|
+
}), x !== "application/json")
|
|
2660
|
+
E = A;
|
|
2658
2661
|
else {
|
|
2659
2662
|
const b = {};
|
|
2660
|
-
Array.from(O).forEach(({ value: h, key:
|
|
2661
|
-
Ve(b,
|
|
2662
|
-
}),
|
|
2663
|
+
Array.from(O).forEach(({ value: h, key: v }) => {
|
|
2664
|
+
Ve(b, v, h);
|
|
2665
|
+
}), E = JSON.stringify(b);
|
|
2663
2666
|
}
|
|
2664
|
-
|
|
2665
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2667
|
+
x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
|
|
2668
|
+
const w = new CustomEvent("presubmit", { detail: { body: E } });
|
|
2666
2669
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2667
2670
|
return;
|
|
2668
2671
|
i("sending");
|
|
@@ -2671,21 +2674,21 @@ function fn(e) {
|
|
|
2671
2674
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2672
2675
|
fetch(
|
|
2673
2676
|
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2674
|
-
{ body:
|
|
2677
|
+
{ body: E, headers: B, method: e.method || "post" }
|
|
2675
2678
|
).then(
|
|
2676
2679
|
async (b) => {
|
|
2677
2680
|
let h;
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
let
|
|
2681
|
-
|
|
2681
|
+
const v = b.headers.get("content-type");
|
|
2682
|
+
if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2683
|
+
let S = mn(h, e.errorMessagePath);
|
|
2684
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
|
|
2682
2685
|
}
|
|
2683
2686
|
if (r(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2684
|
-
const
|
|
2687
|
+
const S = new CustomEvent("submit:success", {
|
|
2685
2688
|
detail: { res: b, body: h }
|
|
2686
2689
|
});
|
|
2687
2690
|
if (t.current) {
|
|
2688
|
-
if (t.current.dispatchEvent(
|
|
2691
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2689
2692
|
return;
|
|
2690
2693
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2691
2694
|
}
|
|
@@ -2721,7 +2724,7 @@ function fn(e) {
|
|
|
2721
2724
|
onSubmit: (g) => f(g),
|
|
2722
2725
|
...e.attributes,
|
|
2723
2726
|
children: [
|
|
2724
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g,
|
|
2727
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
|
|
2725
2728
|
_,
|
|
2726
2729
|
{
|
|
2727
2730
|
block: g,
|
|
@@ -2729,7 +2732,7 @@ function fn(e) {
|
|
|
2729
2732
|
registeredComponents: e.builderComponents,
|
|
2730
2733
|
linkComponent: e.builderLinkComponent
|
|
2731
2734
|
},
|
|
2732
|
-
`form-block-${
|
|
2735
|
+
`form-block-${y}`
|
|
2733
2736
|
)) }) : null,
|
|
2734
2737
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2735
2738
|
D,
|
|
@@ -2821,7 +2824,7 @@ function gn(e) {
|
|
|
2821
2824
|
"input",
|
|
2822
2825
|
{
|
|
2823
2826
|
...e.attributes,
|
|
2824
|
-
key:
|
|
2827
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2825
2828
|
placeholder: e.placeholder,
|
|
2826
2829
|
type: e.type,
|
|
2827
2830
|
name: e.name,
|
|
@@ -2881,7 +2884,7 @@ function pn(e) {
|
|
|
2881
2884
|
{
|
|
2882
2885
|
...e.attributes,
|
|
2883
2886
|
value: e.value,
|
|
2884
|
-
key:
|
|
2887
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2885
2888
|
defaultValue: e.defaultValue,
|
|
2886
2889
|
name: e.name,
|
|
2887
2890
|
required: e.required
|
|
@@ -2995,7 +2998,7 @@ function Cn(e) {
|
|
|
2995
2998
|
src: e.imgSrc || e.image,
|
|
2996
2999
|
...e.attributes
|
|
2997
3000
|
},
|
|
2998
|
-
|
|
3001
|
+
F() && e.imgSrc || "default-key"
|
|
2999
3002
|
);
|
|
3000
3003
|
}
|
|
3001
3004
|
const Tn = {
|
|
@@ -3215,7 +3218,7 @@ const wn = () => [{
|
|
|
3215
3218
|
component: nt,
|
|
3216
3219
|
...qt
|
|
3217
3220
|
}, {
|
|
3218
|
-
component:
|
|
3221
|
+
component: Ft,
|
|
3219
3222
|
...Kt
|
|
3220
3223
|
}, {
|
|
3221
3224
|
component: Dt,
|
|
@@ -3374,7 +3377,7 @@ const Wn = (e, t, n = !0) => {
|
|
|
3374
3377
|
return i;
|
|
3375
3378
|
} while (i = i.parentElement);
|
|
3376
3379
|
return null;
|
|
3377
|
-
},
|
|
3380
|
+
}, $n = (e) => Wn(e, (t) => {
|
|
3378
3381
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3379
3382
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3380
3383
|
}), Te = ({
|
|
@@ -3386,8 +3389,8 @@ const Wn = (e, t, n = !0) => {
|
|
|
3386
3389
|
x: r,
|
|
3387
3390
|
y: a
|
|
3388
3391
|
};
|
|
3389
|
-
},
|
|
3390
|
-
const t = e.target, n = t &&
|
|
3392
|
+
}, Fn = (e) => {
|
|
3393
|
+
const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3391
3394
|
return {
|
|
3392
3395
|
targetBuilderElement: i || void 0,
|
|
3393
3396
|
metadata: {
|
|
@@ -3455,37 +3458,37 @@ font-weight: ${l};
|
|
|
3455
3458
|
}
|
|
3456
3459
|
`, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
|
|
3457
3460
|
function Hn(e) {
|
|
3458
|
-
var
|
|
3461
|
+
var E, A, O, x, w, N, b;
|
|
3459
3462
|
const t = ee(null);
|
|
3460
3463
|
function n(h) {
|
|
3461
|
-
var
|
|
3462
|
-
const
|
|
3464
|
+
var S, k;
|
|
3465
|
+
const v = {
|
|
3463
3466
|
...e.builderContextSignal.rootState,
|
|
3464
3467
|
...h
|
|
3465
3468
|
};
|
|
3466
|
-
e.builderContextSignal.rootSetState ? (k = (
|
|
3467
|
-
...
|
|
3468
|
-
rootState:
|
|
3469
|
+
e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
|
|
3470
|
+
...I,
|
|
3471
|
+
rootState: v
|
|
3469
3472
|
}));
|
|
3470
3473
|
}
|
|
3471
3474
|
function i(h) {
|
|
3472
|
-
var
|
|
3473
|
-
const
|
|
3475
|
+
var S, k, I, W, j;
|
|
3476
|
+
const v = {
|
|
3474
3477
|
...e.builderContextSignal.content,
|
|
3475
3478
|
...h,
|
|
3476
3479
|
data: {
|
|
3477
|
-
...(
|
|
3480
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3478
3481
|
...h == null ? void 0 : h.data
|
|
3479
3482
|
},
|
|
3480
3483
|
meta: {
|
|
3481
3484
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3482
3485
|
...h == null ? void 0 : h.meta,
|
|
3483
|
-
breakpoints: ((
|
|
3486
|
+
breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3484
3487
|
}
|
|
3485
3488
|
};
|
|
3486
|
-
e.setBuilderContextSignal((
|
|
3487
|
-
|
|
3488
|
-
content:
|
|
3489
|
+
e.setBuilderContextSignal(($) => ({
|
|
3490
|
+
...$,
|
|
3491
|
+
content: v
|
|
3489
3492
|
}));
|
|
3490
3493
|
}
|
|
3491
3494
|
function o() {
|
|
@@ -3494,7 +3497,7 @@ function Hn(e) {
|
|
|
3494
3497
|
"aria-hidden": !0
|
|
3495
3498
|
};
|
|
3496
3499
|
}
|
|
3497
|
-
const [r, a] =
|
|
3500
|
+
const [r, a] = T(
|
|
3498
3501
|
() => e.contentWrapper || "div"
|
|
3499
3502
|
);
|
|
3500
3503
|
function l(h) {
|
|
@@ -3502,27 +3505,27 @@ function Hn(e) {
|
|
|
3502
3505
|
model: e.model,
|
|
3503
3506
|
trustedHosts: e.trustedHosts,
|
|
3504
3507
|
callbacks: {
|
|
3505
|
-
configureSdk: (
|
|
3506
|
-
var
|
|
3507
|
-
const { breakpoints:
|
|
3508
|
-
!k || k !== ((
|
|
3508
|
+
configureSdk: (v) => {
|
|
3509
|
+
var I;
|
|
3510
|
+
const { breakpoints: S, contentId: k } = v;
|
|
3511
|
+
!k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
|
|
3509
3512
|
meta: {
|
|
3510
|
-
breakpoints:
|
|
3513
|
+
breakpoints: S
|
|
3511
3514
|
}
|
|
3512
3515
|
});
|
|
3513
3516
|
},
|
|
3514
|
-
animation: (
|
|
3515
|
-
We(
|
|
3517
|
+
animation: (v) => {
|
|
3518
|
+
We(v);
|
|
3516
3519
|
},
|
|
3517
|
-
contentUpdate: (
|
|
3518
|
-
i(
|
|
3520
|
+
contentUpdate: (v) => {
|
|
3521
|
+
i(v);
|
|
3519
3522
|
}
|
|
3520
3523
|
}
|
|
3521
3524
|
})(h);
|
|
3522
3525
|
}
|
|
3523
3526
|
function c() {
|
|
3524
|
-
var
|
|
3525
|
-
const h = (
|
|
3527
|
+
var v, S;
|
|
3528
|
+
const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
|
|
3526
3529
|
h && K({
|
|
3527
3530
|
code: h,
|
|
3528
3531
|
context: e.context || {},
|
|
@@ -3535,33 +3538,33 @@ function Hn(e) {
|
|
|
3535
3538
|
enableCache: !1
|
|
3536
3539
|
});
|
|
3537
3540
|
}
|
|
3538
|
-
const [u, f] =
|
|
3539
|
-
function
|
|
3540
|
-
var
|
|
3541
|
+
const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
|
|
3542
|
+
function C(h) {
|
|
3543
|
+
var v, S;
|
|
3541
3544
|
if (e.builderContextSignal.content) {
|
|
3542
|
-
const k = (
|
|
3545
|
+
const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3543
3546
|
he({
|
|
3544
3547
|
type: "click",
|
|
3545
3548
|
canTrack: Q(e.canTrack),
|
|
3546
|
-
contentId:
|
|
3549
|
+
contentId: I,
|
|
3547
3550
|
apiKey: e.apiKey,
|
|
3548
|
-
variationId: k !==
|
|
3549
|
-
|
|
3551
|
+
variationId: k !== I ? k : void 0,
|
|
3552
|
+
...Fn(h),
|
|
3550
3553
|
unique: !g
|
|
3551
3554
|
});
|
|
3552
3555
|
}
|
|
3553
|
-
g ||
|
|
3556
|
+
g || y(!0);
|
|
3554
3557
|
}
|
|
3555
|
-
function
|
|
3556
|
-
var
|
|
3557
|
-
const h = (k = (
|
|
3558
|
-
Object.entries(h).forEach(([
|
|
3559
|
-
if (!W || d[
|
|
3558
|
+
function p() {
|
|
3559
|
+
var v, S, k;
|
|
3560
|
+
const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3561
|
+
Object.entries(h).forEach(([I, W]) => {
|
|
3562
|
+
if (!W || d[I] || u[I] && !F())
|
|
3560
3563
|
return;
|
|
3561
|
-
d[
|
|
3564
|
+
d[I] = !0;
|
|
3562
3565
|
const j = W.replace(
|
|
3563
3566
|
/{{([^}]+)}}/g,
|
|
3564
|
-
(
|
|
3567
|
+
($, He) => String(
|
|
3565
3568
|
K({
|
|
3566
3569
|
code: He,
|
|
3567
3570
|
context: e.context || {},
|
|
@@ -3572,24 +3575,24 @@ function Hn(e) {
|
|
|
3572
3575
|
})
|
|
3573
3576
|
)
|
|
3574
3577
|
);
|
|
3575
|
-
Xe(j).then((
|
|
3578
|
+
Xe(j).then(($) => $.json()).then(($) => {
|
|
3576
3579
|
n({
|
|
3577
|
-
[
|
|
3578
|
-
}), u[
|
|
3579
|
-
}).catch((
|
|
3580
|
-
console.error("error fetching dynamic data", W,
|
|
3580
|
+
[I]: $
|
|
3581
|
+
}), u[I] = !0;
|
|
3582
|
+
}).catch(($) => {
|
|
3583
|
+
console.error("error fetching dynamic data", W, $);
|
|
3581
3584
|
}).finally(() => {
|
|
3582
|
-
d[
|
|
3585
|
+
d[I] = !1;
|
|
3583
3586
|
});
|
|
3584
3587
|
});
|
|
3585
3588
|
}
|
|
3586
|
-
function
|
|
3587
|
-
|
|
3589
|
+
function B() {
|
|
3590
|
+
F() && window.dispatchEvent(
|
|
3588
3591
|
new CustomEvent(
|
|
3589
3592
|
"builder:component:stateChange",
|
|
3590
3593
|
{
|
|
3591
3594
|
detail: {
|
|
3592
|
-
state:
|
|
3595
|
+
state: me(e.builderContextSignal.rootState),
|
|
3593
3596
|
ref: {
|
|
3594
3597
|
name: e.model
|
|
3595
3598
|
}
|
|
@@ -3598,10 +3601,10 @@ function Hn(e) {
|
|
|
3598
3601
|
)
|
|
3599
3602
|
);
|
|
3600
3603
|
}
|
|
3601
|
-
return
|
|
3602
|
-
var h,
|
|
3604
|
+
return V(() => {
|
|
3605
|
+
var h, v;
|
|
3603
3606
|
if (M()) {
|
|
3604
|
-
if (
|
|
3607
|
+
if (F() && (window.addEventListener("message", l), _e(), Je({
|
|
3605
3608
|
...e.locale ? {
|
|
3606
3609
|
locale: e.locale
|
|
3607
3610
|
} : {},
|
|
@@ -3615,62 +3618,62 @@ function Hn(e) {
|
|
|
3615
3618
|
e.builderContextSignal.componentInfos
|
|
3616
3619
|
).forEach((k) => {
|
|
3617
3620
|
var W;
|
|
3618
|
-
const
|
|
3619
|
-
(W = window.parent) == null || W.postMessage(
|
|
3621
|
+
const I = Ye(k);
|
|
3622
|
+
(W = window.parent) == null || W.postMessage(I, "*");
|
|
3620
3623
|
}), window.addEventListener(
|
|
3621
3624
|
"builder:component:stateChangeListenerActivated",
|
|
3622
|
-
|
|
3625
|
+
B
|
|
3623
3626
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3624
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId,
|
|
3627
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
|
|
3625
3628
|
he({
|
|
3626
3629
|
type: "impression",
|
|
3627
3630
|
canTrack: !0,
|
|
3628
|
-
contentId:
|
|
3631
|
+
contentId: I,
|
|
3629
3632
|
apiKey: W,
|
|
3630
|
-
variationId: k !==
|
|
3633
|
+
variationId: k !== I ? k : void 0
|
|
3631
3634
|
});
|
|
3632
3635
|
}
|
|
3633
|
-
if (Ge() &&
|
|
3634
|
-
const k = new URL(location.href).searchParams,
|
|
3635
|
-
`builder.overrides.${
|
|
3636
|
+
if (Ge() && !F()) {
|
|
3637
|
+
const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
|
|
3638
|
+
`builder.overrides.${I}`
|
|
3636
3639
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3637
|
-
|
|
3640
|
+
I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
|
|
3638
3641
|
model: e.model,
|
|
3639
3642
|
apiKey: e.apiKey,
|
|
3640
3643
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3641
|
-
}).then((
|
|
3642
|
-
|
|
3644
|
+
}).then(($) => {
|
|
3645
|
+
$ && i($);
|
|
3643
3646
|
});
|
|
3644
3647
|
}
|
|
3645
3648
|
}
|
|
3646
|
-
}, []),
|
|
3649
|
+
}, []), V(() => {
|
|
3647
3650
|
e.apiKey || Z.error(
|
|
3648
3651
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3649
|
-
), c(),
|
|
3650
|
-
}, []),
|
|
3652
|
+
), c(), p(), B();
|
|
3653
|
+
}, []), V(() => {
|
|
3651
3654
|
e.content && i(e.content);
|
|
3652
|
-
}, [e.content]),
|
|
3655
|
+
}, [e.content]), V(() => {
|
|
3653
3656
|
c();
|
|
3654
|
-
}, [(A = (
|
|
3655
|
-
|
|
3656
|
-
}, [(
|
|
3657
|
-
|
|
3658
|
-
}, [e.builderContextSignal.rootState]),
|
|
3657
|
+
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
|
|
3658
|
+
p();
|
|
3659
|
+
}, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), V(() => {
|
|
3660
|
+
B();
|
|
3661
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3659
3662
|
e.data && n(e.data);
|
|
3660
|
-
}, [e.data]),
|
|
3663
|
+
}, [e.data]), V(() => {
|
|
3661
3664
|
e.locale && n({
|
|
3662
3665
|
locale: e.locale
|
|
3663
3666
|
});
|
|
3664
|
-
}, [e.locale]),
|
|
3667
|
+
}, [e.locale]), V(() => () => {
|
|
3665
3668
|
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3666
3669
|
"builder:component:stateChangeListenerActivated",
|
|
3667
|
-
|
|
3670
|
+
B
|
|
3668
3671
|
));
|
|
3669
|
-
}, []), /* @__PURE__ */ s(
|
|
3672
|
+
}, []), /* @__PURE__ */ s(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3670
3673
|
r,
|
|
3671
3674
|
{
|
|
3672
3675
|
ref: t,
|
|
3673
|
-
onClick: (h) =>
|
|
3676
|
+
onClick: (h) => C(h),
|
|
3674
3677
|
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3675
3678
|
"builder-model": e.model,
|
|
3676
3679
|
...o(),
|
|
@@ -3683,7 +3686,7 @@ function Hn(e) {
|
|
|
3683
3686
|
) : null });
|
|
3684
3687
|
}
|
|
3685
3688
|
function qn(e) {
|
|
3686
|
-
const [t, n] =
|
|
3689
|
+
const [t, n] = T(
|
|
3687
3690
|
() => `
|
|
3688
3691
|
${On({
|
|
3689
3692
|
cssCode: e.cssCode,
|
|
@@ -3733,69 +3736,75 @@ const Kn = ({
|
|
|
3733
3736
|
meta: e == null ? void 0 : e.meta
|
|
3734
3737
|
} : void 0;
|
|
3735
3738
|
function Ie(e) {
|
|
3736
|
-
var c, u, f, d, m, g,
|
|
3737
|
-
const [t, n] =
|
|
3739
|
+
var c, u, f, d, m, g, y;
|
|
3740
|
+
const [t, n] = T(
|
|
3738
3741
|
() => {
|
|
3739
|
-
var
|
|
3742
|
+
var C, p;
|
|
3740
3743
|
return Nn({
|
|
3741
3744
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3742
|
-
variationId: (
|
|
3745
|
+
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3743
3746
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3744
|
-
contentId: (
|
|
3747
|
+
contentId: (p = e.content) == null ? void 0 : p.id
|
|
3745
3748
|
});
|
|
3746
3749
|
}
|
|
3747
3750
|
);
|
|
3748
|
-
function i(
|
|
3749
|
-
l((
|
|
3750
|
-
...
|
|
3751
|
-
rootState:
|
|
3751
|
+
function i(C) {
|
|
3752
|
+
l((p) => ({
|
|
3753
|
+
...p,
|
|
3754
|
+
rootState: C
|
|
3752
3755
|
}));
|
|
3753
3756
|
}
|
|
3754
|
-
const [o, r] =
|
|
3755
|
-
() =>
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3757
|
+
const [o, r] = T(
|
|
3758
|
+
() => {
|
|
3759
|
+
var C;
|
|
3760
|
+
return [
|
|
3761
|
+
...ke(),
|
|
3762
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
|
|
3763
|
+
].reduce(
|
|
3764
|
+
(p, { component: B, ...E }) => ({
|
|
3765
|
+
...p,
|
|
3766
|
+
[E.name]: {
|
|
3767
|
+
component: B,
|
|
3768
|
+
...ge(E)
|
|
3769
|
+
}
|
|
3770
|
+
}),
|
|
3771
|
+
{}
|
|
3772
|
+
);
|
|
3773
|
+
}
|
|
3774
|
+
), [a, l] = T(() => {
|
|
3775
|
+
var C;
|
|
3776
|
+
return {
|
|
3777
|
+
content: zn({
|
|
3778
|
+
content: e.content,
|
|
3779
|
+
data: e.data
|
|
3765
3780
|
}),
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
data: e.data
|
|
3772
|
-
}),
|
|
3773
|
-
localState: void 0,
|
|
3774
|
-
rootState: Kn({
|
|
3775
|
-
content: e.content,
|
|
3776
|
-
data: e.data,
|
|
3777
|
-
locale: e.locale
|
|
3778
|
-
}),
|
|
3779
|
-
rootSetState: i,
|
|
3780
|
-
context: e.context || {},
|
|
3781
|
-
canTrack: e.canTrack,
|
|
3782
|
-
apiKey: e.apiKey,
|
|
3783
|
-
apiVersion: e.apiVersion,
|
|
3784
|
-
componentInfos: [
|
|
3785
|
-
...ke(),
|
|
3786
|
-
...e.customComponents || []
|
|
3787
|
-
].reduce(
|
|
3788
|
-
(I, { component: x, ...E }) => ({
|
|
3789
|
-
...I,
|
|
3790
|
-
[E.name]: ge(E)
|
|
3781
|
+
localState: void 0,
|
|
3782
|
+
rootState: Kn({
|
|
3783
|
+
content: e.content,
|
|
3784
|
+
data: e.data,
|
|
3785
|
+
locale: e.locale
|
|
3791
3786
|
}),
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3787
|
+
rootSetState: i,
|
|
3788
|
+
context: e.context || {},
|
|
3789
|
+
canTrack: e.canTrack,
|
|
3790
|
+
apiKey: e.apiKey,
|
|
3791
|
+
apiVersion: e.apiVersion,
|
|
3792
|
+
componentInfos: [
|
|
3793
|
+
...ke(),
|
|
3794
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
|
|
3795
|
+
].reduce(
|
|
3796
|
+
(p, { component: B, ...E }) => ({
|
|
3797
|
+
...p,
|
|
3798
|
+
[E.name]: ge(E)
|
|
3799
|
+
}),
|
|
3800
|
+
{}
|
|
3801
|
+
),
|
|
3802
|
+
inheritedStyles: {},
|
|
3803
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
3804
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3805
|
+
nonce: e.nonce || ""
|
|
3806
|
+
};
|
|
3807
|
+
});
|
|
3799
3808
|
return /* @__PURE__ */ s(
|
|
3800
3809
|
Be.Provider,
|
|
3801
3810
|
{
|
|
@@ -3842,7 +3851,7 @@ function Ie(e) {
|
|
|
3842
3851
|
/* @__PURE__ */ s(
|
|
3843
3852
|
D,
|
|
3844
3853
|
{
|
|
3845
|
-
blocks: (
|
|
3854
|
+
blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
|
|
3846
3855
|
context: a,
|
|
3847
3856
|
registeredComponents: o,
|
|
3848
3857
|
linkComponent: e.linkComponent
|
|
@@ -3856,7 +3865,7 @@ function Ie(e) {
|
|
|
3856
3865
|
}
|
|
3857
3866
|
function _n(e) {
|
|
3858
3867
|
var a;
|
|
3859
|
-
const [t, n] =
|
|
3868
|
+
const [t, n] = T(
|
|
3860
3869
|
() => Bn({
|
|
3861
3870
|
canTrack: Q(e.canTrack),
|
|
3862
3871
|
content: e.content
|
|
@@ -3885,9 +3894,8 @@ function _n(e) {
|
|
|
3885
3894
|
canTrack: Q(e.canTrack)
|
|
3886
3895
|
});
|
|
3887
3896
|
}
|
|
3888
|
-
return
|
|
3889
|
-
}, []),
|
|
3890
|
-
}), /* @__PURE__ */ P(R, { children: [
|
|
3897
|
+
return V(() => {
|
|
3898
|
+
}, []), /* @__PURE__ */ P(R, { children: [
|
|
3891
3899
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
|
|
3892
3900
|
ce,
|
|
3893
3901
|
{
|
|
@@ -4003,7 +4011,7 @@ function Yn(e) {
|
|
|
4003
4011
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4004
4012
|
].filter(Boolean).join(" ");
|
|
4005
4013
|
}
|
|
4006
|
-
const [o, r] =
|
|
4014
|
+
const [o, r] = T(() => {
|
|
4007
4015
|
var d;
|
|
4008
4016
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4009
4017
|
});
|
|
@@ -4015,8 +4023,8 @@ function Yn(e) {
|
|
|
4015
4023
|
d && r(d);
|
|
4016
4024
|
});
|
|
4017
4025
|
}
|
|
4018
|
-
return
|
|
4019
|
-
}, []),
|
|
4026
|
+
return V(() => {
|
|
4027
|
+
}, []), V(() => {
|
|
4020
4028
|
a();
|
|
4021
4029
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4022
4030
|
_n,
|
|
@@ -4046,9 +4054,9 @@ function Yn(e) {
|
|
|
4046
4054
|
}
|
|
4047
4055
|
export {
|
|
4048
4056
|
D as Blocks,
|
|
4049
|
-
|
|
4057
|
+
ue as BuilderContext,
|
|
4050
4058
|
nt as Button,
|
|
4051
|
-
|
|
4059
|
+
Ft as Columns,
|
|
4052
4060
|
_n as Content,
|
|
4053
4061
|
Dt as Fragment,
|
|
4054
4062
|
jt as Image,
|