@builder.io/sdk-react 4.1.3 → 4.2.1
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 +8 -8
- package/lib/browser/blocks-exports.mjs +289 -265
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +6 -5
- package/lib/browser/server-entry-4cf669a1.cjs +2 -0
- package/lib/browser/{server-entry-4da1a296.js → server-entry-5e98a993.js} +24 -13
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +7 -6
- package/lib/edge/{accordion-78ee648e.cjs → accordion-4bab42b1.cjs} +1 -1
- package/lib/edge/{accordion-1784524c.js → accordion-a8a363e4.js} +1 -1
- package/lib/edge/{blocks-14702bfa.cjs → blocks-d07d0261.cjs} +1 -1
- package/lib/edge/{blocks-f5fb0ce5.js → blocks-e1f5b0d0.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-290c53b5.cjs → button-6734c0bb.cjs} +1 -1
- package/lib/edge/{button-21ceeedc.js → button-bbcadacf.js} +2 -2
- package/lib/edge/{columns-b7aced60.cjs → columns-821cba14.cjs} +1 -1
- package/lib/edge/{columns-1068516d.js → columns-cf3081c6.js} +3 -3
- package/lib/edge/{content-variants-90878d85.js → content-variants-a704e35c.js} +172 -150
- package/lib/edge/{content-variants-a264ddef.cjs → content-variants-ec180883.cjs} +6 -6
- package/lib/edge/{custom-code-2c87d654.cjs → custom-code-8fcaa31e.cjs} +1 -1
- package/lib/edge/{custom-code-4fa9e701.js → custom-code-f6c30129.js} +1 -1
- package/lib/edge/{embed-80b047e6.js → embed-3c0b5564.js} +1 -1
- package/lib/edge/{embed-d5d20b9d.cjs → embed-666d3cc4.cjs} +1 -1
- package/lib/edge/form-51f639ab.cjs +1 -0
- package/lib/edge/{form-539b46dc.js → form-8b068721.js} +9 -7
- package/lib/edge/{get-class-prop-name-57633f13.cjs → get-class-prop-name-2869a960.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7e842f9c.js → get-class-prop-name-d6d821d6.js} +1 -1
- package/lib/edge/{img-36b77f7e.cjs → img-b04b9b6d.cjs} +1 -1
- package/lib/edge/{img-e2d845d3.js → img-dfbd4080.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -3
- package/lib/edge/{input-4b7d5309.js → input-665ef328.js} +1 -1
- package/lib/edge/{input-ad09fe4d.cjs → input-d31d6451.cjs} +1 -1
- package/lib/edge/{personalization-container-8dcdbc56.cjs → personalization-container-d12566e8.cjs} +1 -1
- package/lib/edge/{personalization-container-6a8723bf.js → personalization-container-e784836e.js} +4 -4
- package/lib/edge/{select-2c39366d.js → select-5fe49bd4.js} +1 -1
- package/lib/edge/{select-427609f7.cjs → select-c3085265.cjs} +1 -1
- package/lib/edge/server-entry-acf5ce7d.cjs +2 -0
- package/lib/edge/{server-entry-6e9f2e70.js → server-entry-c9d5300f.js} +22 -11
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +7 -6
- package/lib/edge/{slot-74827ed2.js → slot-a17ee2d7.js} +3 -3
- package/lib/edge/{slot-780e168e.cjs → slot-cbbbb02e.cjs} +1 -1
- package/lib/edge/{symbol-8573a705.js → symbol-9f960685.js} +2 -2
- package/lib/edge/{symbol-c79c9cb2.cjs → symbol-b56b5675.cjs} +1 -1
- package/lib/edge/{tabs-90d614d8.js → tabs-26ac5b2f.js} +3 -3
- package/lib/edge/{tabs-706f56bf.cjs → tabs-bf6643d7.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +14 -14
- package/lib/node/blocks-exports.mjs +292 -268
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -5
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-6d89489d.js → server-entry-48724189.js} +24 -13
- package/lib/node/server-entry-562c0663.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +7 -6
- package/lib/node/{setIvm-4d2ae811.cjs → setIvm-3b6199a0.cjs} +1 -1
- package/lib/node/{setIvm-96d70b3f.js → setIvm-a7aba6d2.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-f668d799.cjs → should-force-browser-runtime-in-node-cbe0ef14.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-4d8646f7.js → should-force-browser-runtime-in-node-fdc70f22.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/register.d.ts +18 -0
- package/types/server-index.d.ts +1 -1
- package/lib/browser/server-entry-2443e405.cjs +0 -2
- package/lib/edge/form-3e4c4ae4.cjs +0 -1
- package/lib/edge/server-entry-9c867b01.cjs +0 -2
- package/lib/node/server-entry-dd2d010e.cjs +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as le, isEditing as
|
|
3
|
-
import { setClientUserAttributes as Mi } from "./server-entry-
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
2
|
+
import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as le, isEditing as _, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, setupBrowserForEditing as lt, createRegisterComponentMessage as st, getCookieSync as ct, _track as Te, fetchOneEntry as Oe, createEditorListener as ut, serializeIncludingFunctions as Ie, handleABTestingSync as dt } from "./server-entry-48724189.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-48724189.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as W } from "react/jsx-runtime";
|
|
5
5
|
import * as mt from "react";
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as ft, flattenState as ht, runInNode as gt, parseCode as bt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-
|
|
6
|
+
import { createContext as Le, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ft, flattenState as ht, runInNode as gt, parseCode as bt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-a7aba6d2.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-fdc70f22.js";
|
|
9
9
|
const vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && vt.has(e.toLowerCase());
|
|
10
10
|
function pe(e) {
|
|
11
11
|
return /* @__PURE__ */ s(R, { children: xt(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 }) }) });
|
|
@@ -48,7 +48,7 @@ function St(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const ve =
|
|
51
|
+
const ve = Le({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,7 +63,7 @@ const ve = Oe({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}), He =
|
|
66
|
+
}), He = Le({ registeredComponents: {} }), Me = (e, t, n) => {
|
|
67
67
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
69
|
}, kt = ({
|
|
@@ -297,7 +297,7 @@ function Y(e, ...t) {
|
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ot(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
@@ -312,12 +312,12 @@ function je(e) {
|
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
314
|
function ze(e, t) {
|
|
315
|
-
const n =
|
|
315
|
+
const n = Lt(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
|
|
316
316
|
for (const l of a)
|
|
317
317
|
for (const c of n)
|
|
318
318
|
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Lt(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
@@ -562,7 +562,7 @@ function Qt(e) {
|
|
|
562
562
|
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var k, A, T,
|
|
565
|
+
var k, A, T, w, h;
|
|
566
566
|
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = Xe(
|
|
567
567
|
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
568
568
|
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
|
|
@@ -578,7 +578,7 @@ function Qt(e) {
|
|
|
578
578
|
"medium",
|
|
579
579
|
a
|
|
580
580
|
)
|
|
581
|
-
}) : "",
|
|
581
|
+
}) : "", g = f ? Q({
|
|
582
582
|
className: m,
|
|
583
583
|
styles: f,
|
|
584
584
|
mediaQuery: ue(
|
|
@@ -595,7 +595,7 @@ function Qt(e) {
|
|
|
595
595
|
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
596
596
|
let S = "";
|
|
597
597
|
if (y) {
|
|
598
|
-
const x = ((
|
|
598
|
+
const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
|
|
599
599
|
S = Q({
|
|
600
600
|
className: `${m}:hover`,
|
|
601
601
|
styles: {
|
|
@@ -610,7 +610,7 @@ function Qt(e) {
|
|
|
610
610
|
return [
|
|
611
611
|
v,
|
|
612
612
|
d,
|
|
613
|
-
|
|
613
|
+
g,
|
|
614
614
|
p,
|
|
615
615
|
S
|
|
616
616
|
].join(" ");
|
|
@@ -834,10 +834,10 @@ function ce(e) {
|
|
|
834
834
|
update: !1
|
|
835
835
|
}));
|
|
836
836
|
function r() {
|
|
837
|
-
var
|
|
837
|
+
var g;
|
|
838
838
|
if (n.value && !n.update && !le())
|
|
839
839
|
return n.value;
|
|
840
|
-
const d = (
|
|
840
|
+
const d = (g = e.block.repeat) != null && g.collection ? e.block : Dt({
|
|
841
841
|
block: e.block,
|
|
842
842
|
localState: e.context.localState,
|
|
843
843
|
rootState: e.context.rootState,
|
|
@@ -854,8 +854,8 @@ function ce(e) {
|
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
856
|
function a() {
|
|
857
|
-
var
|
|
858
|
-
return e.block.tagName === "a" || ((
|
|
857
|
+
var g;
|
|
858
|
+
return e.block.tagName === "a" || ((g = r().properties) == null ? void 0 : g.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
859
|
}
|
|
860
860
|
function l() {
|
|
861
861
|
var p, y;
|
|
@@ -865,14 +865,14 @@ function ce(e) {
|
|
|
865
865
|
return ("show" in r() ? r().show : !0) && !d;
|
|
866
866
|
}
|
|
867
867
|
function c() {
|
|
868
|
-
var
|
|
869
|
-
return !((
|
|
868
|
+
var g, p;
|
|
869
|
+
return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (p = r().children) != null ? p : [] : [];
|
|
870
870
|
}
|
|
871
871
|
function u() {
|
|
872
|
-
var d,
|
|
872
|
+
var d, g, p, y;
|
|
873
873
|
return {
|
|
874
874
|
blockChildren: (d = r().children) != null ? d : [],
|
|
875
|
-
componentRef: (
|
|
875
|
+
componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
|
|
876
876
|
componentOptions: {
|
|
877
877
|
...Et(r(), e.context),
|
|
878
878
|
...Jt(o(), r()),
|
|
@@ -893,18 +893,18 @@ function ce(e) {
|
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
return V(() => {
|
|
896
|
-
const d = r().id,
|
|
897
|
-
|
|
898
|
-
|
|
896
|
+
const d = r().id, g = r().animations;
|
|
897
|
+
g && d && Ot(
|
|
898
|
+
g.map((p) => ({
|
|
899
899
|
...p,
|
|
900
900
|
elementId: d
|
|
901
901
|
}))
|
|
902
902
|
);
|
|
903
903
|
}, []), V(() => {
|
|
904
904
|
n.update = !0;
|
|
905
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
905
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ W(R, { children: [
|
|
906
906
|
/* @__PURE__ */ s(Qt, { block: r(), context: e.context }),
|
|
907
|
-
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d,
|
|
907
|
+
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, g) => /* @__PURE__ */ s(
|
|
908
908
|
Pe,
|
|
909
909
|
{
|
|
910
910
|
repeatContext: d.context,
|
|
@@ -912,7 +912,7 @@ function ce(e) {
|
|
|
912
912
|
registeredComponents: e.registeredComponents,
|
|
913
913
|
linkComponent: e.linkComponent
|
|
914
914
|
},
|
|
915
|
-
Ee(
|
|
915
|
+
Ee(g)
|
|
916
916
|
)) }) : /* @__PURE__ */ s(
|
|
917
917
|
Re,
|
|
918
918
|
{
|
|
@@ -926,7 +926,7 @@ function ce(e) {
|
|
|
926
926
|
includeBlockProps: u().includeBlockProps,
|
|
927
927
|
isInteractive: u().isInteractive
|
|
928
928
|
}
|
|
929
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d,
|
|
929
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, g) => /* @__PURE__ */ s(
|
|
930
930
|
Pe,
|
|
931
931
|
{
|
|
932
932
|
repeatContext: d.context,
|
|
@@ -934,8 +934,8 @@ function ce(e) {
|
|
|
934
934
|
registeredComponents: e.registeredComponents,
|
|
935
935
|
linkComponent: e.linkComponent
|
|
936
936
|
},
|
|
937
|
-
Ee(
|
|
938
|
-
)) }) : /* @__PURE__ */
|
|
937
|
+
Ee(g)
|
|
938
|
+
)) }) : /* @__PURE__ */ W(
|
|
939
939
|
nn,
|
|
940
940
|
{
|
|
941
941
|
Wrapper: a(),
|
|
@@ -990,7 +990,7 @@ function ln(e) {
|
|
|
990
990
|
}
|
|
991
991
|
function r() {
|
|
992
992
|
var a, l;
|
|
993
|
-
|
|
993
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
994
|
{
|
|
995
995
|
type: "builder.clickEmptyBlocks",
|
|
996
996
|
data: {
|
|
@@ -1003,7 +1003,7 @@ function ln(e) {
|
|
|
1003
1003
|
}
|
|
1004
1004
|
function o() {
|
|
1005
1005
|
var a, l;
|
|
1006
|
-
|
|
1006
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1007
|
{
|
|
1008
1008
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1009
|
data: {
|
|
@@ -1016,7 +1016,7 @@ function ln(e) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
return V(() => {
|
|
1018
1018
|
}, []), V(() => {
|
|
1019
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1019
|
+
}, [e.blocks]), /* @__PURE__ */ W(R, { children: [
|
|
1020
1020
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
|
|
1021
1021
|
display: flex;
|
|
1022
1022
|
flex-direction: column;
|
|
@@ -1039,10 +1039,10 @@ function ln(e) {
|
|
|
1039
1039
|
)
|
|
1040
1040
|
] });
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function U(e) {
|
|
1043
1043
|
var i, r, o;
|
|
1044
1044
|
const t = we(ve), n = we(He);
|
|
1045
|
-
return /* @__PURE__ */
|
|
1045
|
+
return /* @__PURE__ */ W(
|
|
1046
1046
|
ln,
|
|
1047
1047
|
{
|
|
1048
1048
|
blocks: e.blocks,
|
|
@@ -1070,7 +1070,7 @@ function _(e) {
|
|
|
1070
1070
|
}
|
|
1071
1071
|
const sn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1072
1072
|
function cn(e) {
|
|
1073
|
-
var
|
|
1073
|
+
var g, p;
|
|
1074
1074
|
function t() {
|
|
1075
1075
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1076
1076
|
}
|
|
@@ -1116,7 +1116,7 @@ function cn(e) {
|
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
1118
|
function b(y) {
|
|
1119
|
-
const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%",
|
|
1119
|
+
const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", w = 0;
|
|
1120
1120
|
return {
|
|
1121
1121
|
...{
|
|
1122
1122
|
display: "flex",
|
|
@@ -1130,7 +1130,7 @@ function cn(e) {
|
|
|
1130
1130
|
desktopStyle: k
|
|
1131
1131
|
}),
|
|
1132
1132
|
"--column-margin-left-mobile": c({
|
|
1133
|
-
stackedStyle:
|
|
1133
|
+
stackedStyle: w,
|
|
1134
1134
|
desktopStyle: A
|
|
1135
1135
|
}),
|
|
1136
1136
|
"--column-width-tablet": l({
|
|
@@ -1138,7 +1138,7 @@ function cn(e) {
|
|
|
1138
1138
|
desktopStyle: k
|
|
1139
1139
|
}),
|
|
1140
1140
|
"--column-margin-left-tablet": l({
|
|
1141
|
-
stackedStyle:
|
|
1141
|
+
stackedStyle: w,
|
|
1142
1142
|
desktopStyle: A
|
|
1143
1143
|
})
|
|
1144
1144
|
};
|
|
@@ -1186,16 +1186,16 @@ function cn(e) {
|
|
|
1186
1186
|
style: Ge(b(S))
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
|
-
return /* @__PURE__ */
|
|
1189
|
+
return /* @__PURE__ */ W(R, { children: [
|
|
1190
1190
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1191
1191
|
display: flex;
|
|
1192
1192
|
line-height: normal;
|
|
1193
1193
|
height: 100%;
|
|
1194
1194
|
}` }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1195
|
+
/* @__PURE__ */ W(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
|
-
className: sn((
|
|
1198
|
+
className: sn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
|
|
1199
1199
|
style: f(),
|
|
1200
1200
|
children: [
|
|
1201
1201
|
/* @__PURE__ */ s(
|
|
@@ -1213,7 +1213,7 @@ function cn(e) {
|
|
|
1213
1213
|
actionAttributes: {},
|
|
1214
1214
|
attributes: d(y, S),
|
|
1215
1215
|
children: /* @__PURE__ */ s(
|
|
1216
|
-
|
|
1216
|
+
U,
|
|
1217
1217
|
{
|
|
1218
1218
|
path: `columns.${S}.blocks`,
|
|
1219
1219
|
parent: e.builderBlock.id,
|
|
@@ -1300,7 +1300,7 @@ function fn(e) {
|
|
|
1300
1300
|
return e.aspectRatio ? f : void 0;
|
|
1301
1301
|
}
|
|
1302
1302
|
return V(() => {
|
|
1303
|
-
}, []), /* @__PURE__ */
|
|
1303
|
+
}, []), /* @__PURE__ */ W(R, { children: [
|
|
1304
1304
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1305
|
opacity: 1;
|
|
1306
1306
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1318,8 +1318,8 @@ function fn(e) {
|
|
|
1318
1318
|
width: 100%;
|
|
1319
1319
|
height: 100%;
|
|
1320
1320
|
}` }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1321
|
+
/* @__PURE__ */ W(R, { children: [
|
|
1322
|
+
/* @__PURE__ */ W("picture", { children: [
|
|
1323
1323
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1324
1324
|
/* @__PURE__ */ s(
|
|
1325
1325
|
"img",
|
|
@@ -1399,28 +1399,28 @@ function gn(e, t, n, i) {
|
|
|
1399
1399
|
operator: v,
|
|
1400
1400
|
value: p
|
|
1401
1401
|
}));
|
|
1402
|
-
const
|
|
1403
|
-
if (Array.isArray(
|
|
1404
|
-
return
|
|
1402
|
+
const g = u[m];
|
|
1403
|
+
if (Array.isArray(g))
|
|
1404
|
+
return g.includes(d);
|
|
1405
1405
|
switch (v) {
|
|
1406
1406
|
case "is":
|
|
1407
|
-
return
|
|
1407
|
+
return g === d;
|
|
1408
1408
|
case "isNot":
|
|
1409
|
-
return
|
|
1409
|
+
return g !== d;
|
|
1410
1410
|
case "contains":
|
|
1411
|
-
return (r(
|
|
1411
|
+
return (r(g) || Array.isArray(g)) && g.includes(String(d));
|
|
1412
1412
|
case "startsWith":
|
|
1413
|
-
return r(
|
|
1413
|
+
return r(g) && g.startsWith(String(d));
|
|
1414
1414
|
case "endsWith":
|
|
1415
|
-
return r(
|
|
1415
|
+
return r(g) && g.endsWith(String(d));
|
|
1416
1416
|
case "greaterThan":
|
|
1417
|
-
return o(
|
|
1417
|
+
return o(g) && o(d) && g > d;
|
|
1418
1418
|
case "lessThan":
|
|
1419
|
-
return o(
|
|
1419
|
+
return o(g) && o(d) && g < d;
|
|
1420
1420
|
case "greaterThanOrEqualTo":
|
|
1421
|
-
return o(
|
|
1421
|
+
return o(g) && o(d) && g >= d;
|
|
1422
1422
|
case "lessThanOrEqualTo":
|
|
1423
|
-
return o(
|
|
1423
|
+
return o(g) && o(d) && g <= d;
|
|
1424
1424
|
default:
|
|
1425
1425
|
return !1;
|
|
1426
1426
|
}
|
|
@@ -1611,7 +1611,7 @@ function Sn({
|
|
|
1611
1611
|
path: "this.children",
|
|
1612
1612
|
index: ie
|
|
1613
1613
|
};
|
|
1614
|
-
if (n &&
|
|
1614
|
+
if (n && _()) {
|
|
1615
1615
|
if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
|
|
1616
1616
|
const l = e == null ? void 0 : e[t];
|
|
1617
1617
|
if (l)
|
|
@@ -1794,7 +1794,7 @@ function wn(e) {
|
|
|
1794
1794
|
cursor: "pointer"
|
|
1795
1795
|
};
|
|
1796
1796
|
return Object.fromEntries(
|
|
1797
|
-
Object.entries(v).filter(([d,
|
|
1797
|
+
Object.entries(v).filter(([d, g]) => g !== void 0)
|
|
1798
1798
|
);
|
|
1799
1799
|
}
|
|
1800
1800
|
function a(m) {
|
|
@@ -1844,7 +1844,7 @@ function wn(e) {
|
|
|
1844
1844
|
function f(m) {
|
|
1845
1845
|
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1846
1846
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */
|
|
1847
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ W(mt.Fragment, { children: [
|
|
1848
1848
|
/* @__PURE__ */ s(
|
|
1849
1849
|
"div",
|
|
1850
1850
|
{
|
|
@@ -1859,7 +1859,7 @@ function wn(e) {
|
|
|
1859
1859
|
"data-index": v,
|
|
1860
1860
|
onClick: (d) => f(v),
|
|
1861
1861
|
children: /* @__PURE__ */ s(
|
|
1862
|
-
|
|
1862
|
+
U,
|
|
1863
1863
|
{
|
|
1864
1864
|
blocks: m.title,
|
|
1865
1865
|
path: `items.${v}.title`,
|
|
@@ -1877,7 +1877,7 @@ function wn(e) {
|
|
|
1877
1877
|
className: l(v),
|
|
1878
1878
|
style: u(),
|
|
1879
1879
|
children: /* @__PURE__ */ s(
|
|
1880
|
-
|
|
1880
|
+
U,
|
|
1881
1881
|
{
|
|
1882
1882
|
blocks: m.detail,
|
|
1883
1883
|
path: `items.${v}.detail`,
|
|
@@ -2300,33 +2300,33 @@ function q(e) {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
}
|
|
2302
2302
|
function Nn(e) {
|
|
2303
|
-
var S, k, A, T,
|
|
2303
|
+
var S, k, A, T, w, h, x, E, N, O, L, P, D;
|
|
2304
2304
|
const t = H(null), [n, i] = C(
|
|
2305
2305
|
() => Ce.getUserAttributes()
|
|
2306
2306
|
), [r, o] = C(
|
|
2307
2307
|
() => {
|
|
2308
|
-
var
|
|
2308
|
+
var I, B, $;
|
|
2309
2309
|
return Cn(
|
|
2310
2310
|
e.variants,
|
|
2311
|
-
((
|
|
2312
|
-
(
|
|
2311
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2312
|
+
($ = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : $.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
2315
|
), [a, l] = C(
|
|
2316
2316
|
() => {
|
|
2317
|
-
var
|
|
2317
|
+
var I, B, $;
|
|
2318
2318
|
return Tn(
|
|
2319
2319
|
e.variants,
|
|
2320
|
-
((
|
|
2321
|
-
(
|
|
2320
|
+
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2321
|
+
($ = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : $.locale
|
|
2322
2322
|
);
|
|
2323
2323
|
}
|
|
2324
2324
|
), [c, u] = C(() => []), [f, b] = C(
|
|
2325
2325
|
() => {
|
|
2326
|
-
var
|
|
2326
|
+
var I;
|
|
2327
2327
|
return xn(
|
|
2328
2328
|
e.variants,
|
|
2329
|
-
X((
|
|
2329
|
+
X((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2330
2330
|
);
|
|
2331
2331
|
}
|
|
2332
2332
|
), [m, v] = C(() => !1);
|
|
@@ -2336,57 +2336,57 @@ function Nn(e) {
|
|
|
2336
2336
|
[j()]: `builder-personalization-container ${e.attributes[j()] || ""}`
|
|
2337
2337
|
};
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return (e.variants || []).filter((
|
|
2341
|
-
var B,
|
|
2339
|
+
function g() {
|
|
2340
|
+
return (e.variants || []).filter((I) => {
|
|
2341
|
+
var B, $, z, M;
|
|
2342
2342
|
return gn(
|
|
2343
2343
|
{
|
|
2344
|
-
...(
|
|
2344
|
+
...($ = (B = e.builderContext) == null ? void 0 : B.rootState) != null && $.locale ? {
|
|
2345
2345
|
locale: (M = (z = e.builderContext) == null ? void 0 : z.rootState) == null ? void 0 : M.locale
|
|
2346
2346
|
} : {},
|
|
2347
2347
|
...n
|
|
2348
2348
|
},
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2349
|
+
I.query,
|
|
2350
|
+
I.startDate,
|
|
2351
|
+
I.endDate
|
|
2352
2352
|
);
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
2355
|
function p() {
|
|
2356
|
-
var
|
|
2356
|
+
var I;
|
|
2357
2357
|
return Sn({
|
|
2358
2358
|
variants: e.variants,
|
|
2359
|
-
fallbackBlocks: (
|
|
2359
|
+
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2360
2360
|
isHydrated: m,
|
|
2361
|
-
filteredVariants:
|
|
2361
|
+
filteredVariants: g(),
|
|
2362
2362
|
previewingIndex: e.previewingIndex
|
|
2363
2363
|
});
|
|
2364
2364
|
}
|
|
2365
2365
|
function y() {
|
|
2366
2366
|
return (e.variants || []).map(
|
|
2367
|
-
(
|
|
2368
|
-
var
|
|
2369
|
-
return `div[data-variant-id="${(
|
|
2367
|
+
(I, B) => {
|
|
2368
|
+
var $;
|
|
2369
|
+
return `div[data-variant-id="${($ = e.builderBlock) == null ? void 0 : $.id}-${B}"] { display: none !important; } `;
|
|
2370
2370
|
}
|
|
2371
2371
|
).join("");
|
|
2372
2372
|
}
|
|
2373
2373
|
return V(() => {
|
|
2374
2374
|
var B;
|
|
2375
2375
|
v(!0);
|
|
2376
|
-
const
|
|
2377
|
-
(
|
|
2378
|
-
i(
|
|
2376
|
+
const I = Ce.subscribeOnUserAttributesChange(
|
|
2377
|
+
($) => {
|
|
2378
|
+
i($);
|
|
2379
2379
|
},
|
|
2380
2380
|
{
|
|
2381
2381
|
fireImmediately: F === "qwik"
|
|
2382
2382
|
}
|
|
2383
2383
|
);
|
|
2384
|
-
if (!(
|
|
2385
|
-
const
|
|
2384
|
+
if (!(_() || le())) {
|
|
2385
|
+
const $ = g()[0];
|
|
2386
2386
|
t.current && (t.current.dispatchEvent(
|
|
2387
2387
|
new CustomEvent("builder.variantLoaded", {
|
|
2388
2388
|
detail: {
|
|
2389
|
-
variant:
|
|
2389
|
+
variant: $ || ie,
|
|
2390
2390
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2391
2391
|
},
|
|
2392
2392
|
bubbles: !0
|
|
@@ -2397,7 +2397,7 @@ function Nn(e) {
|
|
|
2397
2397
|
te.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2398
2398
|
new CustomEvent("builder.variantDisplayed", {
|
|
2399
2399
|
detail: {
|
|
2400
|
-
variant:
|
|
2400
|
+
variant: $ || ie,
|
|
2401
2401
|
content: (G = e.builderContext) == null ? void 0 : G.content
|
|
2402
2402
|
},
|
|
2403
2403
|
bubbles: !0
|
|
@@ -2406,12 +2406,12 @@ function Nn(e) {
|
|
|
2406
2406
|
});
|
|
2407
2407
|
}).observe(t.current));
|
|
2408
2408
|
}
|
|
2409
|
-
c.push(
|
|
2409
|
+
c.push(I);
|
|
2410
2410
|
}, []), V(() => () => {
|
|
2411
|
-
c.forEach((
|
|
2412
|
-
}, []), /* @__PURE__ */
|
|
2411
|
+
c.forEach((I) => I());
|
|
2412
|
+
}, []), /* @__PURE__ */ W("div", { ref: t, ...d(), children: [
|
|
2413
2413
|
m && re.includes(F) ? /* @__PURE__ */ s(
|
|
2414
|
-
|
|
2414
|
+
U,
|
|
2415
2415
|
{
|
|
2416
2416
|
blocks: p().blocks,
|
|
2417
2417
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
@@ -2424,36 +2424,36 @@ function Nn(e) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
) : null,
|
|
2427
|
-
!m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */
|
|
2428
|
-
f ? /* @__PURE__ */
|
|
2427
|
+
!m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ W(R, { children: [
|
|
2428
|
+
f ? /* @__PURE__ */ W(R, { children: [
|
|
2429
2429
|
/* @__PURE__ */ s(
|
|
2430
2430
|
ee,
|
|
2431
2431
|
{
|
|
2432
2432
|
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2433
2433
|
styles: y(),
|
|
2434
|
-
id: `variants-styles-${(
|
|
2434
|
+
id: `variants-styles-${(w = e.builderBlock) == null ? void 0 : w.id}`
|
|
2435
2435
|
}
|
|
2436
2436
|
),
|
|
2437
2437
|
/* @__PURE__ */ s(
|
|
2438
2438
|
q,
|
|
2439
2439
|
{
|
|
2440
|
-
nonce: ((
|
|
2440
|
+
nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
|
|
2441
2441
|
scriptStr: a,
|
|
2442
2442
|
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2443
2443
|
}
|
|
2444
2444
|
),
|
|
2445
|
-
(
|
|
2446
|
-
var
|
|
2445
|
+
(E = e.variants) == null ? void 0 : E.map((I, B) => {
|
|
2446
|
+
var $, z, M, te, G, ke;
|
|
2447
2447
|
return /* @__PURE__ */ s(
|
|
2448
|
-
|
|
2448
|
+
U,
|
|
2449
2449
|
{
|
|
2450
2450
|
BlocksWrapperProps: {
|
|
2451
|
-
...(
|
|
2451
|
+
...($ = e.builderContext) == null ? void 0 : $.BlocksWrapperProps,
|
|
2452
2452
|
"aria-hidden": !0,
|
|
2453
2453
|
hidden: !0,
|
|
2454
2454
|
"data-variant-id": `${(z = e.builderBlock) == null ? void 0 : z.id}-${B}`
|
|
2455
2455
|
},
|
|
2456
|
-
blocks:
|
|
2456
|
+
blocks: I.blocks,
|
|
2457
2457
|
parent: (M = e.builderBlock) == null ? void 0 : M.id,
|
|
2458
2458
|
path: `component.options.variants.${B}.blocks`,
|
|
2459
2459
|
context: e.builderContext,
|
|
@@ -2472,23 +2472,23 @@ function Nn(e) {
|
|
|
2472
2472
|
})
|
|
2473
2473
|
] }) : null,
|
|
2474
2474
|
/* @__PURE__ */ s(
|
|
2475
|
-
|
|
2475
|
+
U,
|
|
2476
2476
|
{
|
|
2477
2477
|
blocks: p().blocks,
|
|
2478
|
-
parent: (
|
|
2478
|
+
parent: (N = e.builderBlock) == null ? void 0 : N.id,
|
|
2479
2479
|
path: p().path,
|
|
2480
2480
|
context: e.builderContext,
|
|
2481
2481
|
registeredComponents: e.builderComponents,
|
|
2482
2482
|
BlocksWrapperProps: {
|
|
2483
|
-
...(
|
|
2484
|
-
"data-variant-id": `${(
|
|
2483
|
+
...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
|
|
2484
|
+
"data-variant-id": `${(L = e.builderBlock) == null ? void 0 : L.id}-${p().index}`
|
|
2485
2485
|
},
|
|
2486
2486
|
children: f ? /* @__PURE__ */ s(
|
|
2487
2487
|
q,
|
|
2488
2488
|
{
|
|
2489
2489
|
nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
|
|
2490
2490
|
scriptStr: r,
|
|
2491
|
-
id: `variants-script-${(
|
|
2491
|
+
id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${ie}`
|
|
2492
2492
|
}
|
|
2493
2493
|
) : null
|
|
2494
2494
|
}
|
|
@@ -2565,7 +2565,7 @@ function Dn(e) {
|
|
|
2565
2565
|
"builder-slot": e.name
|
|
2566
2566
|
},
|
|
2567
2567
|
children: /* @__PURE__ */ s(
|
|
2568
|
-
|
|
2568
|
+
U,
|
|
2569
2569
|
{
|
|
2570
2570
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2571
2571
|
path: `symbol.data.${e.name}`,
|
|
@@ -2654,7 +2654,7 @@ const Fn = {
|
|
|
2654
2654
|
text: "New tab content "
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
},
|
|
2657
|
+
}, On = {
|
|
2658
2658
|
name: "Builder: Tabs",
|
|
2659
2659
|
inputs: [{
|
|
2660
2660
|
name: "tabs",
|
|
@@ -2758,7 +2758,7 @@ const Fn = {
|
|
|
2758
2758
|
builderLinkComponent: !0
|
|
2759
2759
|
}
|
|
2760
2760
|
};
|
|
2761
|
-
function
|
|
2761
|
+
function Ln(e) {
|
|
2762
2762
|
var o;
|
|
2763
2763
|
const [t, n] = C(
|
|
2764
2764
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2769,7 +2769,7 @@ function On(e) {
|
|
|
2769
2769
|
function r(a) {
|
|
2770
2770
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2771
2771
|
}
|
|
2772
|
-
return /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ W("div", { children: [
|
|
2773
2773
|
/* @__PURE__ */ s(
|
|
2774
2774
|
"div",
|
|
2775
2775
|
{
|
|
@@ -2789,7 +2789,7 @@ function On(e) {
|
|
|
2789
2789
|
},
|
|
2790
2790
|
onClick: (c) => r(l),
|
|
2791
2791
|
children: /* @__PURE__ */ s(
|
|
2792
|
-
|
|
2792
|
+
U,
|
|
2793
2793
|
{
|
|
2794
2794
|
parent: e.builderBlock.id,
|
|
2795
2795
|
path: `tabs.${l}.label`,
|
|
@@ -2805,7 +2805,7 @@ function On(e) {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
),
|
|
2807
2807
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2808
|
-
|
|
2808
|
+
U,
|
|
2809
2809
|
{
|
|
2810
2810
|
parent: e.builderBlock.id,
|
|
2811
2811
|
path: `tabs.${t}.content`,
|
|
@@ -2909,7 +2909,7 @@ function Mn(e) {
|
|
|
2909
2909
|
return V(() => {
|
|
2910
2910
|
a();
|
|
2911
2911
|
}, []), V(() => {
|
|
2912
|
-
|
|
2912
|
+
_() && a();
|
|
2913
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2914
2914
|
"div",
|
|
2915
2915
|
{
|
|
@@ -3218,7 +3218,7 @@ function Yn(e) {
|
|
|
3218
3218
|
e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
|
|
3219
3219
|
}
|
|
3220
3220
|
function u() {
|
|
3221
|
-
return
|
|
3221
|
+
return _() && e.previewState || n;
|
|
3222
3222
|
}
|
|
3223
3223
|
function f(b) {
|
|
3224
3224
|
var v;
|
|
@@ -3231,77 +3231,79 @@ function Yn(e) {
|
|
|
3231
3231
|
return;
|
|
3232
3232
|
}
|
|
3233
3233
|
b.preventDefault();
|
|
3234
|
-
const d = b.currentTarget || b.target,
|
|
3234
|
+
const d = b.currentTarget || b.target, g = e.customHeaders || {};
|
|
3235
3235
|
let p;
|
|
3236
|
-
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((
|
|
3236
|
+
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
|
|
3237
|
+
(h) => !!h.name && (h.type !== "radio" || h.checked)
|
|
3238
|
+
).map((h) => {
|
|
3237
3239
|
let x;
|
|
3238
|
-
const
|
|
3239
|
-
if (
|
|
3240
|
-
if (
|
|
3241
|
-
if (
|
|
3242
|
-
return x =
|
|
3243
|
-
key:
|
|
3240
|
+
const E = h.name;
|
|
3241
|
+
if (h instanceof HTMLInputElement)
|
|
3242
|
+
if (h.type === "radio") {
|
|
3243
|
+
if (h.checked)
|
|
3244
|
+
return x = h.value, {
|
|
3245
|
+
key: E,
|
|
3244
3246
|
value: x
|
|
3245
3247
|
};
|
|
3246
|
-
} else if (
|
|
3247
|
-
x =
|
|
3248
|
-
else if (
|
|
3249
|
-
const
|
|
3250
|
-
isNaN(
|
|
3248
|
+
} else if (h.type === "checkbox")
|
|
3249
|
+
x = h.checked;
|
|
3250
|
+
else if (h.type === "number" || h.type === "range") {
|
|
3251
|
+
const N = h.valueAsNumber;
|
|
3252
|
+
isNaN(N) || (x = N);
|
|
3251
3253
|
} else
|
|
3252
|
-
|
|
3254
|
+
h.type === "file" ? x = h.files : x = h.value;
|
|
3253
3255
|
else
|
|
3254
|
-
x =
|
|
3256
|
+
x = h.value;
|
|
3255
3257
|
return {
|
|
3256
|
-
key:
|
|
3258
|
+
key: E,
|
|
3257
3259
|
value: x
|
|
3258
3260
|
};
|
|
3259
3261
|
});
|
|
3260
3262
|
let k = e.contentType;
|
|
3261
|
-
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value:
|
|
3262
|
-
(
|
|
3263
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: h }) => {
|
|
3264
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (k = "multipart/form-data");
|
|
3263
3265
|
}), k !== "application/json")
|
|
3264
3266
|
p = y;
|
|
3265
3267
|
else {
|
|
3266
|
-
const
|
|
3267
|
-
Array.from(S).forEach(({ value: x, key:
|
|
3268
|
-
Ue(
|
|
3269
|
-
}), p = JSON.stringify(
|
|
3268
|
+
const h = {};
|
|
3269
|
+
Array.from(S).forEach(({ value: x, key: E }) => {
|
|
3270
|
+
Ue(h, E, x);
|
|
3271
|
+
}), p = JSON.stringify(h);
|
|
3270
3272
|
}
|
|
3271
|
-
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (
|
|
3273
|
+
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = k));
|
|
3272
3274
|
const A = new CustomEvent("presubmit", { detail: { body: p } });
|
|
3273
3275
|
if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
|
|
3274
3276
|
return;
|
|
3275
3277
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3276
|
-
const
|
|
3277
|
-
console.error(
|
|
3278
|
+
const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3279
|
+
console.error(h), i("error"), c({ formErrorMessage: h });
|
|
3278
3280
|
return;
|
|
3279
3281
|
}
|
|
3280
3282
|
const T = `${Qn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3281
3283
|
e.sendSubmissionsToEmail || ""
|
|
3282
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3283
|
-
Fe(
|
|
3284
|
-
async (
|
|
3285
|
-
var
|
|
3284
|
+
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3285
|
+
Fe(w), fetch(w, { body: p, headers: g, method: e.method || "post" }).then(
|
|
3286
|
+
async (h) => {
|
|
3287
|
+
var N, O;
|
|
3286
3288
|
let x;
|
|
3287
|
-
const
|
|
3288
|
-
if (
|
|
3289
|
-
const
|
|
3290
|
-
detail: { error: x, status:
|
|
3289
|
+
const E = h.headers.get("content-type");
|
|
3290
|
+
if (E && E.indexOf("application/json") !== -1 ? x = await h.json() : x = await h.text(), !h.ok) {
|
|
3291
|
+
const L = new CustomEvent("submit:error", {
|
|
3292
|
+
detail: { error: x, status: h.status }
|
|
3291
3293
|
});
|
|
3292
|
-
if ((
|
|
3294
|
+
if ((N = t.current) != null && N.nativeElement && ((O = t.current) == null || O.nativeElement.dispatchEvent(L), L.defaultPrevented))
|
|
3293
3295
|
return;
|
|
3294
3296
|
o(x), i("error");
|
|
3295
3297
|
let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3296
3298
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3297
3299
|
return;
|
|
3298
3300
|
}
|
|
3299
|
-
if (o(x), i(
|
|
3300
|
-
const
|
|
3301
|
-
detail: { res:
|
|
3301
|
+
if (o(x), i(h.ok ? "success" : "error"), h.ok) {
|
|
3302
|
+
const L = new CustomEvent("submit:success", {
|
|
3303
|
+
detail: { res: h, body: x }
|
|
3302
3304
|
});
|
|
3303
3305
|
if (t.current) {
|
|
3304
|
-
if (t.current.dispatchEvent(
|
|
3306
|
+
if (t.current.dispatchEvent(L), L.defaultPrevented)
|
|
3305
3307
|
return;
|
|
3306
3308
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3307
3309
|
}
|
|
@@ -3315,20 +3317,20 @@ function Yn(e) {
|
|
|
3315
3317
|
location.href = e.successUrl;
|
|
3316
3318
|
}
|
|
3317
3319
|
},
|
|
3318
|
-
(
|
|
3320
|
+
(h) => {
|
|
3319
3321
|
const x = new CustomEvent("submit:error", {
|
|
3320
|
-
detail: { error:
|
|
3322
|
+
detail: { error: h }
|
|
3321
3323
|
});
|
|
3322
|
-
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(
|
|
3324
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(h), i("error"));
|
|
3323
3325
|
}
|
|
3324
3326
|
);
|
|
3325
3327
|
}
|
|
3326
3328
|
}
|
|
3327
|
-
return /* @__PURE__ */
|
|
3329
|
+
return /* @__PURE__ */ W(R, { children: [
|
|
3328
3330
|
" ",
|
|
3329
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3331
|
+
/* @__PURE__ */ s("style", { children: ".pre-26f6d56a { padding: 10px; color: red; text-align: center; }" }),
|
|
3330
3332
|
" ",
|
|
3331
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ W(
|
|
3332
3334
|
"form",
|
|
3333
3335
|
{
|
|
3334
3336
|
validate: e.validate,
|
|
@@ -3341,7 +3343,7 @@ function Yn(e) {
|
|
|
3341
3343
|
children: [
|
|
3342
3344
|
e.children,
|
|
3343
3345
|
u() === "error" ? /* @__PURE__ */ s(
|
|
3344
|
-
|
|
3346
|
+
U,
|
|
3345
3347
|
{
|
|
3346
3348
|
path: "errorMessage",
|
|
3347
3349
|
blocks: e.errorMessage,
|
|
@@ -3349,16 +3351,16 @@ function Yn(e) {
|
|
|
3349
3351
|
}
|
|
3350
3352
|
) : null,
|
|
3351
3353
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
3352
|
-
|
|
3354
|
+
U,
|
|
3353
3355
|
{
|
|
3354
3356
|
path: "sendingMessage",
|
|
3355
3357
|
blocks: e.sendingMessage,
|
|
3356
3358
|
context: e.builderContext
|
|
3357
3359
|
}
|
|
3358
3360
|
) : null,
|
|
3359
|
-
u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
3361
|
+
u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-26f6d56a", children: JSON.stringify(r, null, 2) }) : null,
|
|
3360
3362
|
u() === "success" ? /* @__PURE__ */ s(
|
|
3361
|
-
|
|
3363
|
+
U,
|
|
3362
3364
|
{
|
|
3363
3365
|
path: "successMessage",
|
|
3364
3366
|
blocks: e.successMessage,
|
|
@@ -3428,7 +3430,7 @@ function Zn(e) {
|
|
|
3428
3430
|
"input",
|
|
3429
3431
|
{
|
|
3430
3432
|
...e.attributes,
|
|
3431
|
-
key:
|
|
3433
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3432
3434
|
placeholder: e.placeholder,
|
|
3433
3435
|
type: e.type,
|
|
3434
3436
|
name: e.name,
|
|
@@ -3488,7 +3490,7 @@ function ti(e) {
|
|
|
3488
3490
|
{
|
|
3489
3491
|
...e.attributes,
|
|
3490
3492
|
value: e.value,
|
|
3491
|
-
key:
|
|
3493
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3492
3494
|
defaultValue: e.defaultValue,
|
|
3493
3495
|
name: e.name,
|
|
3494
3496
|
required: e.required
|
|
@@ -3609,7 +3611,7 @@ function li(e) {
|
|
|
3609
3611
|
srcSet: t(),
|
|
3610
3612
|
...e.attributes
|
|
3611
3613
|
},
|
|
3612
|
-
|
|
3614
|
+
_() && e.imgSrc || "default-key"
|
|
3613
3615
|
);
|
|
3614
3616
|
}
|
|
3615
3617
|
const si = {
|
|
@@ -3729,10 +3731,10 @@ function ci(e) {
|
|
|
3729
3731
|
return V(() => {
|
|
3730
3732
|
if (e.lazyLoad) {
|
|
3731
3733
|
const v = new IntersectionObserver(function(d) {
|
|
3732
|
-
d.forEach(function(
|
|
3733
|
-
if (!
|
|
3734
|
+
d.forEach(function(g) {
|
|
3735
|
+
if (!g.isIntersecting)
|
|
3734
3736
|
return;
|
|
3735
|
-
const p =
|
|
3737
|
+
const p = g.target;
|
|
3736
3738
|
try {
|
|
3737
3739
|
Array.from(p.children).filter(
|
|
3738
3740
|
(y) => y instanceof HTMLElement && y.tagName === "SOURCE"
|
|
@@ -3749,7 +3751,7 @@ function ci(e) {
|
|
|
3749
3751
|
}
|
|
3750
3752
|
}, []), V(() => () => {
|
|
3751
3753
|
r && r.disconnect();
|
|
3752
|
-
}, []), /* @__PURE__ */
|
|
3754
|
+
}, []), /* @__PURE__ */ W(
|
|
3753
3755
|
"div",
|
|
3754
3756
|
{
|
|
3755
3757
|
style: {
|
|
@@ -3888,8 +3890,8 @@ const ui = () => [{
|
|
|
3888
3890
|
component: Nn,
|
|
3889
3891
|
...Bn
|
|
3890
3892
|
}] : [], {
|
|
3891
|
-
component:
|
|
3892
|
-
...
|
|
3893
|
+
component: Ln,
|
|
3894
|
+
...On
|
|
3893
3895
|
}, {
|
|
3894
3896
|
component: wn,
|
|
3895
3897
|
...In
|
|
@@ -4047,7 +4049,7 @@ const vi = (e, t, n = !0) => {
|
|
|
4047
4049
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4048
4050
|
}
|
|
4049
4051
|
};
|
|
4050
|
-
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (
|
|
4052
|
+
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (_() || le()), Ci = (e) => {
|
|
4051
4053
|
var o, a;
|
|
4052
4054
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4053
4055
|
let r = "";
|
|
@@ -4104,34 +4106,34 @@ function Pi(e) {
|
|
|
4104
4106
|
const t = H(null);
|
|
4105
4107
|
C(() => !1);
|
|
4106
4108
|
function n(T) {
|
|
4107
|
-
var
|
|
4108
|
-
const
|
|
4109
|
+
var h, x;
|
|
4110
|
+
const w = {
|
|
4109
4111
|
...e.builderContextSignal.rootState,
|
|
4110
4112
|
...T
|
|
4111
4113
|
};
|
|
4112
|
-
e.builderContextSignal.rootSetState ? (x = (
|
|
4113
|
-
...
|
|
4114
|
-
rootState:
|
|
4114
|
+
e.builderContextSignal.rootSetState ? (x = (h = e.builderContextSignal).rootSetState) == null || x.call(h, w) : e.setBuilderContextSignal((E) => ({
|
|
4115
|
+
...E,
|
|
4116
|
+
rootState: w
|
|
4115
4117
|
}));
|
|
4116
4118
|
}
|
|
4117
4119
|
function i(T) {
|
|
4118
|
-
var
|
|
4119
|
-
const
|
|
4120
|
+
var h, x, E, N, O;
|
|
4121
|
+
const w = {
|
|
4120
4122
|
...e.builderContextSignal.content,
|
|
4121
4123
|
...T,
|
|
4122
4124
|
data: {
|
|
4123
|
-
...(
|
|
4125
|
+
...(h = e.builderContextSignal.content) == null ? void 0 : h.data,
|
|
4124
4126
|
...T == null ? void 0 : T.data
|
|
4125
4127
|
},
|
|
4126
4128
|
meta: {
|
|
4127
4129
|
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
4128
4130
|
...T == null ? void 0 : T.meta,
|
|
4129
|
-
breakpoints: ((
|
|
4131
|
+
breakpoints: ((E = T == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || ((O = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : O.breakpoints)
|
|
4130
4132
|
}
|
|
4131
4133
|
};
|
|
4132
|
-
e.setBuilderContextSignal((
|
|
4133
|
-
...
|
|
4134
|
-
content:
|
|
4134
|
+
e.setBuilderContextSignal((L) => ({
|
|
4135
|
+
...L,
|
|
4136
|
+
content: w
|
|
4135
4137
|
}));
|
|
4136
4138
|
}
|
|
4137
4139
|
function r() {
|
|
@@ -4148,77 +4150,99 @@ function Pi(e) {
|
|
|
4148
4150
|
model: e.model,
|
|
4149
4151
|
trustedHosts: e.trustedHosts,
|
|
4150
4152
|
callbacks: {
|
|
4151
|
-
configureSdk: (
|
|
4152
|
-
var
|
|
4153
|
-
const { breakpoints:
|
|
4154
|
-
!x || x !== ((
|
|
4153
|
+
configureSdk: (w) => {
|
|
4154
|
+
var E;
|
|
4155
|
+
const { breakpoints: h, contentId: x } = w;
|
|
4156
|
+
!x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || h && i({
|
|
4155
4157
|
meta: {
|
|
4156
|
-
breakpoints:
|
|
4158
|
+
breakpoints: h
|
|
4157
4159
|
}
|
|
4158
4160
|
});
|
|
4159
4161
|
},
|
|
4160
|
-
animation: (
|
|
4161
|
-
Ke(
|
|
4162
|
+
animation: (w) => {
|
|
4163
|
+
Ke(w);
|
|
4162
4164
|
},
|
|
4163
|
-
contentUpdate: (
|
|
4164
|
-
i(
|
|
4165
|
+
contentUpdate: (w) => {
|
|
4166
|
+
i(w);
|
|
4165
4167
|
},
|
|
4166
|
-
stateUpdate: (
|
|
4167
|
-
n(
|
|
4168
|
+
stateUpdate: (w) => {
|
|
4169
|
+
n(w);
|
|
4168
4170
|
}
|
|
4169
4171
|
}
|
|
4170
4172
|
})(T);
|
|
4171
4173
|
}
|
|
4172
4174
|
const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
|
|
4173
4175
|
function d(T) {
|
|
4174
|
-
var
|
|
4176
|
+
var w, h;
|
|
4175
4177
|
if (e.builderContextSignal.content) {
|
|
4176
|
-
const x = (
|
|
4178
|
+
const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
|
|
4177
4179
|
Te({
|
|
4178
4180
|
apiHost: e.apiHost,
|
|
4179
4181
|
type: "click",
|
|
4180
4182
|
canTrack: X(e.canTrack),
|
|
4181
|
-
contentId:
|
|
4183
|
+
contentId: E,
|
|
4182
4184
|
apiKey: e.apiKey,
|
|
4183
|
-
variationId: x !==
|
|
4185
|
+
variationId: x !== E ? x : void 0,
|
|
4184
4186
|
...Si(T),
|
|
4185
4187
|
unique: !m
|
|
4186
4188
|
});
|
|
4187
4189
|
}
|
|
4188
4190
|
m || v(!0);
|
|
4189
4191
|
}
|
|
4190
|
-
function
|
|
4191
|
-
var
|
|
4192
|
-
const T = (x = (
|
|
4193
|
-
Object.entries(T).forEach(
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4192
|
+
function g() {
|
|
4193
|
+
var w, h, x;
|
|
4194
|
+
const T = (x = (h = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : h.httpRequests) != null ? x : {};
|
|
4195
|
+
Object.entries(T).forEach(
|
|
4196
|
+
([E, N]) => {
|
|
4197
|
+
if (!N)
|
|
4198
|
+
return;
|
|
4199
|
+
const O = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
|
|
4200
|
+
if (f[E] || c[E] && !_())
|
|
4201
|
+
return;
|
|
4202
|
+
const L = O ? N.request.url : N;
|
|
4203
|
+
f[E] = !0;
|
|
4204
|
+
const P = L.replace(
|
|
4205
|
+
/{{([^}]+)}}/g,
|
|
4206
|
+
(I, B) => String(
|
|
4207
|
+
J({
|
|
4208
|
+
code: B,
|
|
4209
|
+
context: e.context || {},
|
|
4210
|
+
localState: void 0,
|
|
4211
|
+
rootState: e.builderContextSignal.rootState,
|
|
4212
|
+
rootSetState: e.builderContextSignal.rootSetState
|
|
4213
|
+
})
|
|
4214
|
+
)
|
|
4215
|
+
), D = O ? {
|
|
4216
|
+
url: P,
|
|
4217
|
+
method: N.request.method,
|
|
4218
|
+
headers: N.request.headers,
|
|
4219
|
+
body: N.request.body
|
|
4220
|
+
} : {
|
|
4221
|
+
url: P,
|
|
4222
|
+
method: "GET"
|
|
4223
|
+
};
|
|
4224
|
+
Fe(JSON.stringify(D)), fetch(D.url, {
|
|
4225
|
+
method: D.method,
|
|
4226
|
+
headers: D.headers,
|
|
4227
|
+
body: D.body
|
|
4228
|
+
}).then((I) => I.json()).then((I) => {
|
|
4229
|
+
n({
|
|
4230
|
+
[E]: I
|
|
4231
|
+
}), c[E] = !0;
|
|
4232
|
+
}).catch((I) => {
|
|
4233
|
+
console.error(
|
|
4234
|
+
"error fetching dynamic data",
|
|
4235
|
+
JSON.stringify(N),
|
|
4236
|
+
I
|
|
4237
|
+
);
|
|
4238
|
+
}).finally(() => {
|
|
4239
|
+
f[E] = !1;
|
|
4240
|
+
});
|
|
4241
|
+
}
|
|
4242
|
+
);
|
|
4219
4243
|
}
|
|
4220
4244
|
function p() {
|
|
4221
|
-
|
|
4245
|
+
_() && window.dispatchEvent(
|
|
4222
4246
|
new CustomEvent(
|
|
4223
4247
|
"builder:component:stateChange",
|
|
4224
4248
|
{
|
|
@@ -4233,10 +4257,10 @@ function Pi(e) {
|
|
|
4233
4257
|
);
|
|
4234
4258
|
}
|
|
4235
4259
|
const y = H(!1);
|
|
4236
|
-
return y.current || (
|
|
4237
|
-
var T,
|
|
4260
|
+
return y.current || (g(), p(), y.current = !0), V(() => {
|
|
4261
|
+
var T, w, h, x, E;
|
|
4238
4262
|
if (K()) {
|
|
4239
|
-
|
|
4263
|
+
_() && !e.isNestedRender && (window.addEventListener("message", l), lt({
|
|
4240
4264
|
...e.locale ? {
|
|
4241
4265
|
locale: e.locale
|
|
4242
4266
|
} : {},
|
|
@@ -4251,45 +4275,45 @@ function Pi(e) {
|
|
|
4251
4275
|
}), Object.values(
|
|
4252
4276
|
e.builderContextSignal.componentInfos
|
|
4253
4277
|
).forEach((P) => {
|
|
4254
|
-
var
|
|
4255
|
-
if (!((
|
|
4278
|
+
var D, I;
|
|
4279
|
+
if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
|
|
4256
4280
|
const B = st(P);
|
|
4257
|
-
(
|
|
4281
|
+
(I = window.parent) == null || I.postMessage(B, "*");
|
|
4258
4282
|
}
|
|
4259
4283
|
}), window.addEventListener(
|
|
4260
4284
|
"builder:component:stateChangeListenerActivated",
|
|
4261
4285
|
p
|
|
4262
4286
|
));
|
|
4263
|
-
const
|
|
4264
|
-
name: `builder.tests.${(
|
|
4287
|
+
const N = e.builderContextSignal.content && X(e.canTrack), O = ct({
|
|
4288
|
+
name: `builder.tests.${(w = e.builderContextSignal.content) == null ? void 0 : w.id}`,
|
|
4265
4289
|
canTrack: !0
|
|
4266
|
-
}),
|
|
4267
|
-
if (
|
|
4268
|
-
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id,
|
|
4290
|
+
}), L = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
|
|
4291
|
+
if (N && L === O) {
|
|
4292
|
+
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, D = e.apiKey;
|
|
4269
4293
|
Te({
|
|
4270
4294
|
apiHost: e.apiHost,
|
|
4271
4295
|
type: "impression",
|
|
4272
4296
|
canTrack: !0,
|
|
4273
4297
|
contentId: P,
|
|
4274
|
-
apiKey:
|
|
4275
|
-
variationId:
|
|
4298
|
+
apiKey: D,
|
|
4299
|
+
variationId: O !== P ? O : void 0
|
|
4276
4300
|
});
|
|
4277
4301
|
}
|
|
4278
|
-
if (le() && !
|
|
4279
|
-
const P = new URL(location.href).searchParams,
|
|
4280
|
-
`builder.overrides.${
|
|
4302
|
+
if (le() && !_()) {
|
|
4303
|
+
const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
|
|
4304
|
+
`builder.overrides.${D}`
|
|
4281
4305
|
), B = P.get("apiKey") || P.get("builder.space");
|
|
4282
|
-
(
|
|
4306
|
+
(D === "BUILDER_STUDIO" || D === e.model && B === e.apiKey && (!e.content || I === e.content.id)) && Oe({
|
|
4283
4307
|
model: e.model,
|
|
4284
4308
|
apiKey: e.apiKey,
|
|
4285
4309
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4286
|
-
...
|
|
4310
|
+
...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
|
|
4287
4311
|
query: {
|
|
4288
4312
|
id: e.context.symbolId
|
|
4289
4313
|
}
|
|
4290
4314
|
} : {}
|
|
4291
|
-
}).then((
|
|
4292
|
-
|
|
4315
|
+
}).then(($) => {
|
|
4316
|
+
$ && i($);
|
|
4293
4317
|
});
|
|
4294
4318
|
}
|
|
4295
4319
|
}
|
|
@@ -4378,7 +4402,7 @@ const Ai = ({
|
|
|
4378
4402
|
meta: e == null ? void 0 : e.meta
|
|
4379
4403
|
} : void 0;
|
|
4380
4404
|
function De(e) {
|
|
4381
|
-
var u, f, b, m, v, d,
|
|
4405
|
+
var u, f, b, m, v, d, g, p, y;
|
|
4382
4406
|
const [t, n] = C(
|
|
4383
4407
|
() => {
|
|
4384
4408
|
var S, k;
|
|
@@ -4464,7 +4488,7 @@ function De(e) {
|
|
|
4464
4488
|
value: {
|
|
4465
4489
|
registeredComponents: r
|
|
4466
4490
|
},
|
|
4467
|
-
children: /* @__PURE__ */
|
|
4491
|
+
children: /* @__PURE__ */ W(
|
|
4468
4492
|
Pi,
|
|
4469
4493
|
{
|
|
4470
4494
|
apiHost: e.apiHost,
|
|
@@ -4500,11 +4524,11 @@ function De(e) {
|
|
|
4500
4524
|
isNestedRender: e.isNestedRender,
|
|
4501
4525
|
contentId: (b = a.content) == null ? void 0 : b.id,
|
|
4502
4526
|
cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
4503
|
-
customFonts: (
|
|
4527
|
+
customFonts: (g = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
|
|
4504
4528
|
}
|
|
4505
4529
|
),
|
|
4506
4530
|
/* @__PURE__ */ s(
|
|
4507
|
-
|
|
4531
|
+
U,
|
|
4508
4532
|
{
|
|
4509
4533
|
blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
|
|
4510
4534
|
context: a,
|
|
@@ -4550,8 +4574,8 @@ function Ni(e) {
|
|
|
4550
4574
|
});
|
|
4551
4575
|
}
|
|
4552
4576
|
return V(() => {
|
|
4553
|
-
}, []), /* @__PURE__ */
|
|
4554
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */
|
|
4577
|
+
}, []), /* @__PURE__ */ W(R, { children: [
|
|
4578
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ W(R, { children: [
|
|
4555
4579
|
/* @__PURE__ */ s(
|
|
4556
4580
|
q,
|
|
4557
4581
|
{
|
|
@@ -4569,7 +4593,7 @@ function Ni(e) {
|
|
|
4569
4593
|
}
|
|
4570
4594
|
) : null
|
|
4571
4595
|
] }) : null,
|
|
4572
|
-
t ? /* @__PURE__ */
|
|
4596
|
+
t ? /* @__PURE__ */ W(R, { children: [
|
|
4573
4597
|
/* @__PURE__ */ s(
|
|
4574
4598
|
ee,
|
|
4575
4599
|
{
|
|
@@ -4648,7 +4672,7 @@ const $i = async ({
|
|
|
4648
4672
|
}) => {
|
|
4649
4673
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4650
4674
|
(e != null && e.apiKey))
|
|
4651
|
-
return
|
|
4675
|
+
return Oe({
|
|
4652
4676
|
model: t.model,
|
|
4653
4677
|
apiKey: e.apiKey,
|
|
4654
4678
|
apiVersion: e.apiVersion,
|
|
@@ -4670,12 +4694,12 @@ function Wi(e) {
|
|
|
4670
4694
|
return "div";
|
|
4671
4695
|
}
|
|
4672
4696
|
function i() {
|
|
4673
|
-
var d,
|
|
4697
|
+
var d, g;
|
|
4674
4698
|
return [
|
|
4675
4699
|
e.attributes[j()],
|
|
4676
4700
|
"builder-symbol",
|
|
4677
4701
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
4678
|
-
(
|
|
4702
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4679
4703
|
].filter(Boolean).join(" ");
|
|
4680
4704
|
}
|
|
4681
4705
|
const [r, o] = C(() => {
|
|
@@ -4690,9 +4714,9 @@ function Wi(e) {
|
|
|
4690
4714
|
r && a === ((d = e.symbol) == null ? void 0 : d.entry) || $i({
|
|
4691
4715
|
symbol: e.symbol,
|
|
4692
4716
|
builderContextValue: e.builderContext
|
|
4693
|
-
}).then((
|
|
4717
|
+
}).then((g) => {
|
|
4694
4718
|
var p;
|
|
4695
|
-
|
|
4719
|
+
g && (o(g), l((p = e.symbol) == null ? void 0 : p.entry));
|
|
4696
4720
|
});
|
|
4697
4721
|
}
|
|
4698
4722
|
return V(() => {
|
|
@@ -4725,7 +4749,7 @@ function Wi(e) {
|
|
|
4725
4749
|
) });
|
|
4726
4750
|
}
|
|
4727
4751
|
export {
|
|
4728
|
-
|
|
4752
|
+
U as Blocks,
|
|
4729
4753
|
ve as BuilderContext,
|
|
4730
4754
|
St as Button,
|
|
4731
4755
|
cn as Columns,
|