@builder.io/sdk-react 2.0.16 → 2.0.21
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 +31 -31
- package/lib/browser/blocks-exports.mjs +852 -829
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -23
- package/lib/browser/{server-entry-c1666709.cjs → server-entry-6e52be8e.cjs} +2 -2
- package/lib/browser/{server-entry-1db0d96b.js → server-entry-8f273525.js} +1 -3
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-7c1c7c56.js → accordion-0fa0cd9f.js} +1 -1
- package/lib/edge/{accordion-09162a27.cjs → accordion-98e5d925.cjs} +1 -1
- package/lib/edge/blocks-4dac2e8c.cjs +12 -0
- package/lib/edge/{blocks-46c07b56.js → blocks-805edb5d.js} +296 -276
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-f2daea13.cjs → button-04692c59.cjs} +1 -1
- package/lib/edge/{button-a923f8ff.js → button-8c912189.js} +2 -2
- package/lib/edge/columns-4d8db53c.cjs +28 -0
- package/lib/edge/{columns-eee4f51c.js → columns-70a13cfe.js} +8 -9
- package/lib/edge/content-variants-7570438f.cjs +134 -0
- package/lib/edge/{content-variants-1368cab1.js → content-variants-d11198bc.js} +306 -309
- package/lib/edge/{evaluate-93701356.js → evaluate-29e9d055.js} +736 -711
- package/lib/edge/{evaluate-4c9b2e86.cjs → evaluate-826010e9.cjs} +13 -15
- package/lib/edge/form-13c77d47.cjs +1 -0
- package/lib/edge/{form-d0eb0af4.js → form-28c6dcde.js} +16 -17
- package/lib/edge/{get-class-prop-name-7cd1376f.cjs → get-class-prop-name-182b0edb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1c373615.js → get-class-prop-name-c9e11804.js} +1 -1
- package/lib/edge/{image-eebfcbac.cjs → image-54d2f755.cjs} +3 -3
- package/lib/edge/{image-6a074aab.js → image-6970c193.js} +24 -24
- package/lib/edge/{img-6c8139db.cjs → img-8f2d03d2.cjs} +1 -1
- package/lib/edge/{img-6e16ade6.js → img-ca1be569.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c78fef2b.cjs → input-0456a323.cjs} +1 -1
- package/lib/edge/{input-a7e9c157.js → input-3db08208.js} +1 -1
- package/lib/edge/{select-3cf593bd.js → select-251dfaa4.js} +1 -1
- package/lib/edge/{select-bd1e231b.cjs → select-b851ff58.cjs} +1 -1
- package/lib/edge/{server-entry-6b3ad048.js → server-entry-05e6ebef.js} +1 -3
- package/lib/edge/{server-entry-d09af943.cjs → server-entry-75427eb3.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/slot-279f992e.cjs +1 -0
- package/lib/edge/{slot-a5a9a30f.js → slot-76c2cebc.js} +6 -7
- package/lib/edge/{symbol-9de15518.cjs → symbol-020487c5.cjs} +1 -1
- package/lib/edge/{symbol-77d331c6.js → symbol-47130603.js} +2 -2
- package/lib/edge/{tabs-63d6ea85.js → tabs-3cc397e4.js} +13 -14
- package/lib/edge/tabs-c6053c2d.cjs +1 -0
- package/lib/edge/{text-4d508bbc.js → text-29ef4fd5.js} +8 -9
- package/lib/edge/text-c9d83141.cjs +1 -0
- package/lib/node/blocks-exports.cjs +31 -31
- package/lib/node/blocks-exports.mjs +807 -822
- 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/{server-entry-1db0d96b.js → server-entry-83392238.js} +1 -2
- package/lib/node/{server-entry-c1666709.cjs → server-entry-b5908591.cjs} +2 -2
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1188ea7b.js → should-force-browser-runtime-in-node-31b1e2f2.js} +57 -30
- package/lib/node/should-force-browser-runtime-in-node-391032cf.cjs +48 -0
- package/package.json +1 -1
- package/types/components/awaiter.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/component-reference-types.d.ts +4 -0
- package/types/context/types.d.ts +2 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +5 -0
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -64
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +0 -17
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +0 -1
- package/lib/edge/blocks-273f24cc.cjs +0 -12
- package/lib/edge/columns-0b8c2260.cjs +0 -28
- package/lib/edge/content-variants-575b5dbf.cjs +0 -134
- package/lib/edge/form-bd184008.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +0 -1
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +0 -17
- package/lib/edge/slot-ab7fc875.cjs +0 -1
- package/lib/edge/tabs-e6fa664e.cjs +0 -1
- package/lib/edge/text-ab5d2747.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-37010e2f.cjs +0 -48
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return /* @__PURE__ */ l(E, { children: it(e.TagName) ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
2
|
+
var je = Object.defineProperty;
|
|
3
|
+
var He = (e, t, n) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var X = (e, t, n) => (He(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as L, isEditing as N, isBrowser as U, getUserAttributes as Ke, checkIsDefined as z, logger as Y, isPreviewing as Ce, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as J, _track as de, fetchOneEntry as Te, createEditorListener as Je, serializeIncludingFunctions as ue, handleABTestingSync as Ye } from "./server-entry-8f273525.js";
|
|
7
|
+
import { createContext as Ie, useEffect as P, useState as T, useRef as D, useContext as me, createElement as we } from "react";
|
|
8
|
+
const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
|
|
9
|
+
function re(e) {
|
|
10
|
+
return /* @__PURE__ */ l(w, { children: Qe(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
11
|
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
12
|
+
const H = () => {
|
|
13
|
+
switch (L) {
|
|
15
14
|
case "react":
|
|
16
15
|
case "reactNative":
|
|
17
16
|
case "rsc":
|
|
@@ -24,11 +23,11 @@ const _ = () => {
|
|
|
24
23
|
return "class";
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
|
-
function
|
|
26
|
+
function Xe(e) {
|
|
28
27
|
function t() {
|
|
29
28
|
return {
|
|
30
29
|
...e.attributes,
|
|
31
|
-
[
|
|
30
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
32
31
|
...e.link ? {
|
|
33
32
|
href: e.link,
|
|
34
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +38,7 @@ function ot(e) {
|
|
|
39
38
|
};
|
|
40
39
|
}
|
|
41
40
|
return /* @__PURE__ */ l(
|
|
42
|
-
|
|
41
|
+
re,
|
|
43
42
|
{
|
|
44
43
|
attributes: t(),
|
|
45
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +47,7 @@ function ot(e) {
|
|
|
48
47
|
}
|
|
49
48
|
);
|
|
50
49
|
}
|
|
51
|
-
const
|
|
50
|
+
const le = Ie({
|
|
52
51
|
content: null,
|
|
53
52
|
context: {},
|
|
54
53
|
localState: void 0,
|
|
@@ -62,21 +61,21 @@ const ue = Be({
|
|
|
62
61
|
BlocksWrapper: "div",
|
|
63
62
|
BlocksWrapperProps: {},
|
|
64
63
|
nonce: ""
|
|
65
|
-
}),
|
|
66
|
-
function
|
|
64
|
+
}), Ee = Ie({ registeredComponents: {} });
|
|
65
|
+
function Ze(e) {
|
|
67
66
|
var t;
|
|
68
67
|
return {
|
|
69
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
70
69
|
...e.options
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function et(e, ...t) {
|
|
74
73
|
const n = Object.assign({}, e);
|
|
75
74
|
for (const i of t)
|
|
76
75
|
delete n[i];
|
|
77
76
|
return n;
|
|
78
77
|
}
|
|
79
|
-
const
|
|
78
|
+
const tt = ({
|
|
80
79
|
builder: e,
|
|
81
80
|
context: t,
|
|
82
81
|
event: n,
|
|
@@ -88,35 +87,15 @@ const lt = ({
|
|
|
88
87
|
builder: e,
|
|
89
88
|
context: t,
|
|
90
89
|
event: n
|
|
91
|
-
}),
|
|
92
|
-
isEditing:
|
|
93
|
-
isBrowser:
|
|
94
|
-
isServer: !
|
|
95
|
-
getUserAttributes: () =>
|
|
96
|
-
}),
|
|
90
|
+
}), nt = () => ({
|
|
91
|
+
isEditing: N(),
|
|
92
|
+
isBrowser: U(),
|
|
93
|
+
isServer: !U(),
|
|
94
|
+
getUserAttributes: () => Ke()
|
|
95
|
+
}), it = (e, {
|
|
97
96
|
isExpression: t = !0
|
|
98
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e
|
|
99
|
-
|
|
100
|
-
builder: t,
|
|
101
|
-
context: n,
|
|
102
|
-
event: i,
|
|
103
|
-
localState: o,
|
|
104
|
-
rootSetState: a,
|
|
105
|
-
rootState: r
|
|
106
|
-
}) => {
|
|
107
|
-
const s = lt({
|
|
108
|
-
builder: t,
|
|
109
|
-
context: n,
|
|
110
|
-
event: i,
|
|
111
|
-
state: Ae({
|
|
112
|
-
rootState: r,
|
|
113
|
-
localState: o,
|
|
114
|
-
rootSetState: a
|
|
115
|
-
})
|
|
116
|
-
});
|
|
117
|
-
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
118
|
-
};
|
|
119
|
-
function Ae({
|
|
97
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
98
|
+
function Re({
|
|
120
99
|
rootState: e,
|
|
121
100
|
localState: t,
|
|
122
101
|
rootSetState: n
|
|
@@ -126,7 +105,7 @@ function Ae({
|
|
|
126
105
|
if (t && o in t)
|
|
127
106
|
return t[o];
|
|
128
107
|
const a = i[o];
|
|
129
|
-
return typeof a == "object" && a !== null ?
|
|
108
|
+
return typeof a == "object" && a !== null ? Re({
|
|
130
109
|
rootState: a,
|
|
131
110
|
localState: void 0,
|
|
132
111
|
rootSetState: n ? (r) => {
|
|
@@ -141,9 +120,42 @@ function Ae({
|
|
|
141
120
|
}
|
|
142
121
|
});
|
|
143
122
|
}
|
|
144
|
-
const
|
|
123
|
+
const fe = ({
|
|
124
|
+
code: e,
|
|
125
|
+
builder: t,
|
|
126
|
+
context: n,
|
|
127
|
+
event: i,
|
|
128
|
+
localState: o,
|
|
129
|
+
rootSetState: a,
|
|
130
|
+
rootState: r
|
|
131
|
+
}) => {
|
|
132
|
+
const s = tt({
|
|
133
|
+
builder: t,
|
|
134
|
+
context: n,
|
|
135
|
+
event: i,
|
|
136
|
+
state: Re({
|
|
137
|
+
rootState: r,
|
|
138
|
+
localState: o,
|
|
139
|
+
rootSetState: a
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
143
|
+
};
|
|
144
|
+
function ot() {
|
|
145
|
+
var e;
|
|
146
|
+
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
147
|
+
}
|
|
148
|
+
const at = ({
|
|
149
|
+
shouldLogWarning: e
|
|
150
|
+
}) => {
|
|
151
|
+
var o;
|
|
152
|
+
if (!ot())
|
|
153
|
+
return !1;
|
|
154
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
155
|
+
return t && n && !i ? (e && Y.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
156
|
+
}, rt = (e) => (U() || at({
|
|
145
157
|
shouldLogWarning: !0
|
|
146
|
-
}),
|
|
158
|
+
}), fe(e)), lt = !0, $ = class $ {
|
|
147
159
|
static getCacheKey(t) {
|
|
148
160
|
return JSON.stringify({
|
|
149
161
|
...t,
|
|
@@ -153,17 +165,17 @@ const dt = (e) => (H() || tt({
|
|
|
153
165
|
});
|
|
154
166
|
}
|
|
155
167
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
168
|
+
return $.cache.get(t);
|
|
157
169
|
}
|
|
158
170
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
171
|
+
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
160
172
|
value: n
|
|
161
173
|
});
|
|
162
174
|
}
|
|
163
175
|
};
|
|
164
|
-
|
|
165
|
-
let
|
|
166
|
-
function
|
|
176
|
+
X($, "cacheLimit", 20), X($, "cache", /* @__PURE__ */ new Map());
|
|
177
|
+
let O = $;
|
|
178
|
+
function M({
|
|
167
179
|
code: e,
|
|
168
180
|
context: t,
|
|
169
181
|
localState: n,
|
|
@@ -176,56 +188,56 @@ function K({
|
|
|
176
188
|
if (e === "")
|
|
177
189
|
return;
|
|
178
190
|
const d = {
|
|
179
|
-
code:
|
|
191
|
+
code: it(e, {
|
|
180
192
|
isExpression: r
|
|
181
193
|
}),
|
|
182
|
-
builder:
|
|
194
|
+
builder: nt(),
|
|
183
195
|
context: t,
|
|
184
196
|
event: a,
|
|
185
197
|
rootSetState: o,
|
|
186
198
|
rootState: i,
|
|
187
199
|
localState: n
|
|
188
200
|
};
|
|
189
|
-
if (s && !
|
|
190
|
-
const c =
|
|
191
|
-
if (
|
|
192
|
-
return
|
|
201
|
+
if (s && !lt) {
|
|
202
|
+
const c = O.getCacheKey(d), f = O.getCachedValue(c);
|
|
203
|
+
if (f)
|
|
204
|
+
return f.value;
|
|
193
205
|
}
|
|
194
206
|
try {
|
|
195
|
-
const c =
|
|
207
|
+
const c = rt(d);
|
|
196
208
|
if (s) {
|
|
197
|
-
const
|
|
198
|
-
|
|
209
|
+
const f = O.getCacheKey(d);
|
|
210
|
+
O.setCachedValue(f, c);
|
|
199
211
|
}
|
|
200
212
|
return c;
|
|
201
213
|
} catch (c) {
|
|
202
|
-
|
|
214
|
+
Y.error("Failed code evaluation: " + c.message, {
|
|
203
215
|
code: e
|
|
204
216
|
});
|
|
205
217
|
return;
|
|
206
218
|
}
|
|
207
219
|
}
|
|
208
|
-
const
|
|
220
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), Be = (e, t, n) => {
|
|
209
221
|
if (Object(e) !== e)
|
|
210
222
|
return e;
|
|
211
223
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
212
224
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
213
225
|
};
|
|
214
|
-
function
|
|
226
|
+
function oe(e) {
|
|
215
227
|
if (e === null || typeof e != "object")
|
|
216
228
|
return e;
|
|
217
229
|
if (Array.isArray(e))
|
|
218
|
-
return e.map((n) =>
|
|
230
|
+
return e.map((n) => oe(n));
|
|
219
231
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
220
232
|
return e;
|
|
221
233
|
const t = {};
|
|
222
234
|
for (const n in e)
|
|
223
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
235
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
|
|
224
236
|
return t;
|
|
225
237
|
}
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
228
|
-
const t =
|
|
238
|
+
const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) => {
|
|
239
|
+
if (st) {
|
|
240
|
+
const t = se(e);
|
|
229
241
|
return {
|
|
230
242
|
...t,
|
|
231
243
|
properties: {
|
|
@@ -236,7 +248,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
236
248
|
}
|
|
237
249
|
};
|
|
238
250
|
} else {
|
|
239
|
-
const t =
|
|
251
|
+
const t = oe(et(e, "children", "meta"));
|
|
240
252
|
return {
|
|
241
253
|
...t,
|
|
242
254
|
properties: {
|
|
@@ -249,7 +261,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
249
261
|
meta: e.meta
|
|
250
262
|
};
|
|
251
263
|
}
|
|
252
|
-
},
|
|
264
|
+
}, dt = ({
|
|
253
265
|
block: e,
|
|
254
266
|
context: t,
|
|
255
267
|
localState: n,
|
|
@@ -258,9 +270,9 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
258
270
|
}) => {
|
|
259
271
|
if (!e.bindings)
|
|
260
272
|
return e;
|
|
261
|
-
const a =
|
|
273
|
+
const a = ct(e);
|
|
262
274
|
for (const r in e.bindings) {
|
|
263
|
-
const s = e.bindings[r], d =
|
|
275
|
+
const s = e.bindings[r], d = M({
|
|
264
276
|
code: s,
|
|
265
277
|
localState: n,
|
|
266
278
|
rootState: i,
|
|
@@ -268,11 +280,11 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
268
280
|
context: t,
|
|
269
281
|
enableCache: !0
|
|
270
282
|
});
|
|
271
|
-
|
|
283
|
+
Be(a, r, d);
|
|
272
284
|
}
|
|
273
285
|
return a;
|
|
274
286
|
};
|
|
275
|
-
function
|
|
287
|
+
function ut({
|
|
276
288
|
block: e,
|
|
277
289
|
context: t,
|
|
278
290
|
shouldEvaluateBindings: n,
|
|
@@ -281,7 +293,7 @@ function gt({
|
|
|
281
293
|
rootSetState: a
|
|
282
294
|
}) {
|
|
283
295
|
const r = e;
|
|
284
|
-
return n ?
|
|
296
|
+
return n ? dt({
|
|
285
297
|
block: r,
|
|
286
298
|
localState: i,
|
|
287
299
|
rootState: o,
|
|
@@ -289,8 +301,8 @@ function gt({
|
|
|
289
301
|
context: t
|
|
290
302
|
}) : r;
|
|
291
303
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
304
|
+
const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
305
|
+
function mt(e, t, n = {}) {
|
|
294
306
|
let i, o, a, r = null, s = 0;
|
|
295
307
|
const d = function() {
|
|
296
308
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -298,11 +310,11 @@ function bt(e, t, n = {}) {
|
|
|
298
310
|
return function() {
|
|
299
311
|
const c = Date.now();
|
|
300
312
|
!s && n.leading === !1 && (s = c);
|
|
301
|
-
const
|
|
302
|
-
return i = this, o = arguments,
|
|
313
|
+
const f = t - (c - s);
|
|
314
|
+
return i = this, o = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, f)), a;
|
|
303
315
|
};
|
|
304
316
|
}
|
|
305
|
-
function
|
|
317
|
+
function j(e, ...t) {
|
|
306
318
|
const n = Object(e);
|
|
307
319
|
for (let i = 1; i < arguments.length; i++) {
|
|
308
320
|
const o = arguments[i];
|
|
@@ -312,118 +324,118 @@ function q(e, ...t) {
|
|
|
312
324
|
}
|
|
313
325
|
return n;
|
|
314
326
|
}
|
|
315
|
-
function
|
|
327
|
+
function ft(e) {
|
|
316
328
|
for (const t of e)
|
|
317
329
|
switch (t.trigger) {
|
|
318
330
|
case "pageLoad":
|
|
319
|
-
|
|
331
|
+
Ae(t);
|
|
320
332
|
break;
|
|
321
333
|
case "scrollInView":
|
|
322
|
-
|
|
334
|
+
gt(t);
|
|
323
335
|
break;
|
|
324
336
|
}
|
|
325
337
|
}
|
|
326
|
-
function
|
|
338
|
+
function Pe(e) {
|
|
327
339
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
328
340
|
}
|
|
329
|
-
function
|
|
330
|
-
const n =
|
|
341
|
+
function Ve(e, t) {
|
|
342
|
+
const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
331
343
|
for (const s of r)
|
|
332
344
|
for (const d of n)
|
|
333
345
|
d in s || (s[d] = i[d]);
|
|
334
346
|
}
|
|
335
|
-
function
|
|
347
|
+
function ht(e) {
|
|
336
348
|
const t = [];
|
|
337
349
|
for (const n of e.steps)
|
|
338
350
|
for (const i in n.styles)
|
|
339
351
|
t.indexOf(i) === -1 && t.push(i);
|
|
340
352
|
return t;
|
|
341
353
|
}
|
|
342
|
-
function
|
|
354
|
+
function Ae(e) {
|
|
343
355
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
344
356
|
if (!t.length) {
|
|
345
|
-
|
|
357
|
+
Pe(e.elementId || e.id || "");
|
|
346
358
|
return;
|
|
347
359
|
}
|
|
348
360
|
Array.from(t).forEach((n) => {
|
|
349
|
-
|
|
350
|
-
n.style.transition = `all ${e.duration}s ${
|
|
361
|
+
Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
362
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
351
363
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
352
364
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
353
365
|
});
|
|
354
366
|
});
|
|
355
367
|
}
|
|
356
|
-
function
|
|
368
|
+
function gt(e) {
|
|
357
369
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
358
370
|
if (!t.length) {
|
|
359
|
-
|
|
371
|
+
Pe(e.elementId || e.id || "");
|
|
360
372
|
return;
|
|
361
373
|
}
|
|
362
374
|
Array.from(t).forEach((n) => {
|
|
363
|
-
|
|
375
|
+
Ve(e, n);
|
|
364
376
|
let i = !1, o = !1;
|
|
365
377
|
function a() {
|
|
366
378
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
367
|
-
|
|
379
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
368
380
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
369
381
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
370
|
-
})) : e.repeat && i && !o && !s(n) && (i = !1,
|
|
382
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
|
|
371
383
|
}
|
|
372
|
-
const r =
|
|
384
|
+
const r = mt(a, 200, {
|
|
373
385
|
leading: !1
|
|
374
386
|
});
|
|
375
|
-
function s(
|
|
376
|
-
const
|
|
377
|
-
return
|
|
387
|
+
function s(f) {
|
|
388
|
+
const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
|
|
389
|
+
return b.bottom > g && b.top < h - g;
|
|
378
390
|
}
|
|
379
391
|
const d = e.steps[0].styles;
|
|
380
392
|
function c() {
|
|
381
|
-
|
|
393
|
+
j(n.style, d);
|
|
382
394
|
}
|
|
383
395
|
c(), setTimeout(() => {
|
|
384
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
385
397
|
}), document.addEventListener("scroll", r, {
|
|
386
398
|
capture: !0,
|
|
387
399
|
passive: !0
|
|
388
400
|
}), a();
|
|
389
401
|
});
|
|
390
402
|
}
|
|
391
|
-
const
|
|
403
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
392
404
|
if (typeof i == "string")
|
|
393
|
-
return `${
|
|
394
|
-
}).filter(
|
|
395
|
-
`),
|
|
405
|
+
return `${G(n)}: ${i};`;
|
|
406
|
+
}).filter(z), bt = (e) => We(e).join(`
|
|
407
|
+
`), q = ({
|
|
396
408
|
mediaQuery: e,
|
|
397
409
|
className: t,
|
|
398
410
|
styles: n
|
|
399
411
|
}) => {
|
|
400
412
|
const i = `.${t} {
|
|
401
|
-
${
|
|
413
|
+
${bt(n)}
|
|
402
414
|
}`;
|
|
403
415
|
return e ? `${e} {
|
|
404
416
|
${i}
|
|
405
417
|
}` : i;
|
|
406
418
|
};
|
|
407
|
-
function
|
|
419
|
+
function pt({
|
|
408
420
|
style: e
|
|
409
421
|
}) {
|
|
410
422
|
return e;
|
|
411
423
|
}
|
|
412
|
-
const
|
|
424
|
+
const yt = ({
|
|
413
425
|
block: e,
|
|
414
426
|
context: t
|
|
415
|
-
}) =>
|
|
427
|
+
}) => Ne(pt({
|
|
416
428
|
style: e.style || {},
|
|
417
429
|
context: t,
|
|
418
430
|
block: e
|
|
419
431
|
}));
|
|
420
|
-
function
|
|
421
|
-
switch (
|
|
432
|
+
function Ne(e) {
|
|
433
|
+
switch (L) {
|
|
422
434
|
case "svelte":
|
|
423
435
|
case "vue":
|
|
424
436
|
case "solid":
|
|
425
437
|
case "angular":
|
|
426
|
-
return
|
|
438
|
+
return We(e).join(" ");
|
|
427
439
|
case "qwik":
|
|
428
440
|
case "reactNative":
|
|
429
441
|
case "react":
|
|
@@ -431,7 +443,7 @@ function Le(e) {
|
|
|
431
443
|
return e;
|
|
432
444
|
}
|
|
433
445
|
}
|
|
434
|
-
const
|
|
446
|
+
const xt = ({
|
|
435
447
|
block: e,
|
|
436
448
|
registeredComponents: t
|
|
437
449
|
}) => {
|
|
@@ -445,7 +457,7 @@ const Ct = ({
|
|
|
445
457
|
console.warn(`
|
|
446
458
|
Could not find a registered component named "${n}".
|
|
447
459
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
448
|
-
},
|
|
460
|
+
}, vt = ({
|
|
449
461
|
block: e,
|
|
450
462
|
context: t
|
|
451
463
|
}) => {
|
|
@@ -455,7 +467,7 @@ const Ct = ({
|
|
|
455
467
|
} = e;
|
|
456
468
|
if (!(n != null && n.collection))
|
|
457
469
|
return;
|
|
458
|
-
const o =
|
|
470
|
+
const o = M({
|
|
459
471
|
code: n.collection,
|
|
460
472
|
localState: t.localState,
|
|
461
473
|
rootState: t.rootState,
|
|
@@ -479,27 +491,27 @@ const Ct = ({
|
|
|
479
491
|
},
|
|
480
492
|
block: i
|
|
481
493
|
}));
|
|
482
|
-
},
|
|
494
|
+
}, St = (e, t) => {
|
|
483
495
|
var n;
|
|
484
496
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
485
497
|
builderLinkComponent: t
|
|
486
498
|
} : {};
|
|
487
|
-
},
|
|
499
|
+
}, kt = (e, t) => {
|
|
488
500
|
var n;
|
|
489
501
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
490
502
|
builderComponents: t
|
|
491
503
|
} : {};
|
|
492
|
-
},
|
|
504
|
+
}, Ct = (e, t) => {
|
|
493
505
|
var n;
|
|
494
506
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
495
507
|
builderBlock: t
|
|
496
508
|
} : {};
|
|
497
|
-
},
|
|
509
|
+
}, Tt = (e, t) => {
|
|
498
510
|
var n;
|
|
499
511
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
500
512
|
builderContext: t
|
|
501
513
|
} : {};
|
|
502
|
-
},
|
|
514
|
+
}, Fe = {
|
|
503
515
|
small: {
|
|
504
516
|
min: 320,
|
|
505
517
|
default: 321,
|
|
@@ -515,11 +527,11 @@ const Ct = ({
|
|
|
515
527
|
default: 991,
|
|
516
528
|
max: 1200
|
|
517
529
|
}
|
|
518
|
-
},
|
|
530
|
+
}, he = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
|
|
519
531
|
small: e,
|
|
520
532
|
medium: t
|
|
521
533
|
}) => {
|
|
522
|
-
const n =
|
|
534
|
+
const n = se(Fe);
|
|
523
535
|
if (!e || !t)
|
|
524
536
|
return n;
|
|
525
537
|
const i = Math.floor(e / 2);
|
|
@@ -542,7 +554,7 @@ const Ct = ({
|
|
|
542
554
|
default: a + 1
|
|
543
555
|
}, n;
|
|
544
556
|
};
|
|
545
|
-
function
|
|
557
|
+
function Q(e) {
|
|
546
558
|
return /* @__PURE__ */ l(
|
|
547
559
|
"style",
|
|
548
560
|
{
|
|
@@ -552,59 +564,59 @@ function Z(e) {
|
|
|
552
564
|
}
|
|
553
565
|
);
|
|
554
566
|
}
|
|
555
|
-
function
|
|
567
|
+
function It(e) {
|
|
556
568
|
function t() {
|
|
557
569
|
const i = e.block;
|
|
558
|
-
return
|
|
570
|
+
return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
|
|
559
571
|
}
|
|
560
572
|
function n() {
|
|
561
|
-
var
|
|
562
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
563
|
-
((
|
|
564
|
-
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small,
|
|
565
|
-
if (!
|
|
573
|
+
var x, R, C;
|
|
574
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = $e(
|
|
575
|
+
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
576
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
|
|
577
|
+
if (!f)
|
|
566
578
|
return "";
|
|
567
|
-
const
|
|
568
|
-
className:
|
|
579
|
+
const b = s ? q({
|
|
580
|
+
className: f,
|
|
569
581
|
styles: s
|
|
570
|
-
}) : "",
|
|
571
|
-
className:
|
|
582
|
+
}) : "", h = d ? q({
|
|
583
|
+
className: f,
|
|
572
584
|
styles: d,
|
|
573
|
-
mediaQuery:
|
|
585
|
+
mediaQuery: he(
|
|
574
586
|
"medium",
|
|
575
587
|
r
|
|
576
588
|
)
|
|
577
|
-
}) : "",
|
|
578
|
-
className:
|
|
589
|
+
}) : "", v = c ? q({
|
|
590
|
+
className: f,
|
|
579
591
|
styles: c,
|
|
580
|
-
mediaQuery:
|
|
592
|
+
mediaQuery: he(
|
|
581
593
|
"small",
|
|
582
594
|
r
|
|
583
595
|
)
|
|
584
|
-
}) : "",
|
|
585
|
-
let
|
|
586
|
-
if (
|
|
587
|
-
const
|
|
588
|
-
|
|
589
|
-
className: `${
|
|
596
|
+
}) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
|
|
597
|
+
let S = "";
|
|
598
|
+
if (g) {
|
|
599
|
+
const k = ((C = (R = g.steps) == null ? void 0 : R[1]) == null ? void 0 : C.styles) || {};
|
|
600
|
+
S = q({
|
|
601
|
+
className: `${f}:hover`,
|
|
590
602
|
styles: {
|
|
591
|
-
...
|
|
592
|
-
transition: `all ${
|
|
593
|
-
|
|
603
|
+
...k,
|
|
604
|
+
transition: `all ${g.duration}s ${G(
|
|
605
|
+
g.easing
|
|
594
606
|
)}`,
|
|
595
|
-
transitionDelay:
|
|
607
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
596
608
|
}
|
|
597
609
|
}) || "";
|
|
598
610
|
}
|
|
599
611
|
return [
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
612
|
+
b,
|
|
613
|
+
h,
|
|
614
|
+
v,
|
|
615
|
+
S
|
|
604
616
|
].join(" ");
|
|
605
617
|
}
|
|
606
|
-
return /* @__PURE__ */ l(
|
|
607
|
-
|
|
618
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
619
|
+
Q,
|
|
608
620
|
{
|
|
609
621
|
id: "builderio-block",
|
|
610
622
|
styles: n(),
|
|
@@ -612,10 +624,10 @@ function Bt(e) {
|
|
|
612
624
|
}
|
|
613
625
|
) }) : null });
|
|
614
626
|
}
|
|
615
|
-
function
|
|
627
|
+
function wt(e) {
|
|
616
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
617
629
|
}
|
|
618
|
-
const
|
|
630
|
+
const Et = (e) => `on${wt(e)}`, Rt = (e, t) => (n) => M({
|
|
619
631
|
code: e,
|
|
620
632
|
context: t.context,
|
|
621
633
|
localState: t.localState,
|
|
@@ -625,16 +637,16 @@ const Vt = (e) => `on${Pt(e)}`, At = (e, t) => (n) => K({
|
|
|
625
637
|
isExpression: !1,
|
|
626
638
|
enableCache: !0
|
|
627
639
|
});
|
|
628
|
-
function
|
|
640
|
+
function De(e) {
|
|
629
641
|
var i;
|
|
630
642
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
631
643
|
for (const o in n) {
|
|
632
644
|
if (!n.hasOwnProperty(o))
|
|
633
645
|
continue;
|
|
634
646
|
const a = n[o];
|
|
635
|
-
let r =
|
|
647
|
+
let r = Et(o);
|
|
636
648
|
if (e.stripPrefix)
|
|
637
|
-
switch (
|
|
649
|
+
switch (L) {
|
|
638
650
|
case "vue":
|
|
639
651
|
r = r.replace("v-on:", "");
|
|
640
652
|
break;
|
|
@@ -642,49 +654,49 @@ function Me(e) {
|
|
|
642
654
|
r = r.replace("on:", "");
|
|
643
655
|
break;
|
|
644
656
|
}
|
|
645
|
-
t[r] =
|
|
657
|
+
t[r] = Rt(a, e);
|
|
646
658
|
}
|
|
647
659
|
return t;
|
|
648
660
|
}
|
|
649
|
-
function
|
|
661
|
+
function Bt({
|
|
650
662
|
properties: e
|
|
651
663
|
}) {
|
|
652
664
|
return e;
|
|
653
665
|
}
|
|
654
|
-
const
|
|
666
|
+
const Pt = (e) => ({
|
|
655
667
|
href: e.href
|
|
656
668
|
});
|
|
657
|
-
function
|
|
669
|
+
function ce({
|
|
658
670
|
block: e,
|
|
659
671
|
context: t
|
|
660
672
|
}) {
|
|
661
673
|
var i;
|
|
662
674
|
const n = {
|
|
663
|
-
...
|
|
675
|
+
...Pt(e),
|
|
664
676
|
...e.properties,
|
|
665
677
|
"builder-id": e.id,
|
|
666
|
-
style:
|
|
678
|
+
style: yt({
|
|
667
679
|
block: e,
|
|
668
680
|
context: t
|
|
669
681
|
}),
|
|
670
|
-
[
|
|
682
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
671
683
|
};
|
|
672
|
-
return
|
|
684
|
+
return Bt({
|
|
673
685
|
properties: n,
|
|
674
686
|
context: t,
|
|
675
687
|
block: e
|
|
676
688
|
});
|
|
677
689
|
}
|
|
678
|
-
function
|
|
690
|
+
function Vt(e) {
|
|
679
691
|
return /* @__PURE__ */ l(
|
|
680
|
-
|
|
692
|
+
re,
|
|
681
693
|
{
|
|
682
694
|
TagName: e.Wrapper,
|
|
683
|
-
attributes:
|
|
695
|
+
attributes: ce({
|
|
684
696
|
block: e.block,
|
|
685
697
|
context: e.context
|
|
686
698
|
}),
|
|
687
|
-
actionAttributes:
|
|
699
|
+
actionAttributes: De({
|
|
688
700
|
block: e.block,
|
|
689
701
|
rootState: e.context.rootState,
|
|
690
702
|
rootSetState: e.context.rootSetState,
|
|
@@ -696,14 +708,18 @@ function Ft(e) {
|
|
|
696
708
|
}
|
|
697
709
|
);
|
|
698
710
|
}
|
|
699
|
-
function
|
|
711
|
+
function At(e) {
|
|
712
|
+
return P(() => {
|
|
713
|
+
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
714
|
+
}
|
|
715
|
+
function Wt(e) {
|
|
700
716
|
function t() {
|
|
701
717
|
return e.includeBlockProps ? {
|
|
702
|
-
...
|
|
718
|
+
...ce({
|
|
703
719
|
block: e.block,
|
|
704
720
|
context: e.context
|
|
705
721
|
}),
|
|
706
|
-
...
|
|
722
|
+
...De({
|
|
707
723
|
block: e.block,
|
|
708
724
|
rootState: e.context.rootState,
|
|
709
725
|
rootSetState: e.context.rootSetState,
|
|
@@ -712,9 +728,18 @@ function $t(e) {
|
|
|
712
728
|
})
|
|
713
729
|
} : {};
|
|
714
730
|
}
|
|
715
|
-
return /* @__PURE__ */ l(
|
|
731
|
+
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
732
|
+
At,
|
|
733
|
+
{
|
|
734
|
+
load: e.Wrapper.load,
|
|
735
|
+
fallback: e.Wrapper.fallback,
|
|
736
|
+
props: e.wrapperProps,
|
|
737
|
+
attributes: t(),
|
|
738
|
+
children: e.children
|
|
739
|
+
}
|
|
740
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
716
741
|
}
|
|
717
|
-
const
|
|
742
|
+
const Nt = ({
|
|
718
743
|
componentOptions: e,
|
|
719
744
|
builderBlock: t,
|
|
720
745
|
context: n,
|
|
@@ -730,7 +755,7 @@ const Dt = ({
|
|
|
730
755
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
731
756
|
*/
|
|
732
757
|
...o ? {
|
|
733
|
-
attributes:
|
|
758
|
+
attributes: ce({
|
|
734
759
|
block: t,
|
|
735
760
|
context: r
|
|
736
761
|
})
|
|
@@ -744,15 +769,15 @@ const Dt = ({
|
|
|
744
769
|
includeBlockProps: o
|
|
745
770
|
} : s;
|
|
746
771
|
};
|
|
747
|
-
function
|
|
772
|
+
function ge(e) {
|
|
748
773
|
var i;
|
|
749
774
|
const [t, n] = T(
|
|
750
|
-
() => e.isInteractive ?
|
|
775
|
+
() => e.isInteractive ? Wt : e.componentRef
|
|
751
776
|
);
|
|
752
|
-
return /* @__PURE__ */ l(
|
|
777
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
753
778
|
t,
|
|
754
779
|
{
|
|
755
|
-
...
|
|
780
|
+
...Nt({
|
|
756
781
|
componentOptions: e.componentOptions,
|
|
757
782
|
builderBlock: e.builderBlock,
|
|
758
783
|
context: e.context,
|
|
@@ -763,7 +788,7 @@ function xe(e) {
|
|
|
763
788
|
contextValue: e.context
|
|
764
789
|
}),
|
|
765
790
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
766
|
-
|
|
791
|
+
K,
|
|
767
792
|
{
|
|
768
793
|
block: o,
|
|
769
794
|
context: e.context,
|
|
@@ -775,10 +800,10 @@ function xe(e) {
|
|
|
775
800
|
}
|
|
776
801
|
) }) : null });
|
|
777
802
|
}
|
|
778
|
-
function
|
|
803
|
+
function be(e) {
|
|
779
804
|
const [t, n] = T(() => e.repeatContext);
|
|
780
|
-
return /* @__PURE__ */ l(
|
|
781
|
-
|
|
805
|
+
return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
806
|
+
K,
|
|
782
807
|
{
|
|
783
808
|
block: e.block,
|
|
784
809
|
context: t,
|
|
@@ -787,10 +812,10 @@ function ve(e) {
|
|
|
787
812
|
}
|
|
788
813
|
) });
|
|
789
814
|
}
|
|
790
|
-
function
|
|
791
|
-
var
|
|
815
|
+
function K(e) {
|
|
816
|
+
var f, b, h, v;
|
|
792
817
|
function t() {
|
|
793
|
-
return
|
|
818
|
+
return vt({
|
|
794
819
|
block: e.block,
|
|
795
820
|
context: e.context
|
|
796
821
|
});
|
|
@@ -800,10 +825,10 @@ function J(e) {
|
|
|
800
825
|
update: !1
|
|
801
826
|
}));
|
|
802
827
|
function o() {
|
|
803
|
-
var
|
|
804
|
-
if (n.value && !n.update && !
|
|
828
|
+
var S;
|
|
829
|
+
if (n.value && !n.update && !Ce())
|
|
805
830
|
return n.value;
|
|
806
|
-
const
|
|
831
|
+
const g = (S = e.block.repeat) != null && S.collection ? e.block : ut({
|
|
807
832
|
block: e.block,
|
|
808
833
|
localState: e.context.localState,
|
|
809
834
|
rootState: e.context.rootState,
|
|
@@ -811,40 +836,40 @@ function J(e) {
|
|
|
811
836
|
context: e.context.context,
|
|
812
837
|
shouldEvaluateBindings: !0
|
|
813
838
|
});
|
|
814
|
-
return n.value =
|
|
839
|
+
return n.value = g, n.update = !1, g;
|
|
815
840
|
}
|
|
816
841
|
function a() {
|
|
817
|
-
return
|
|
842
|
+
return xt({
|
|
818
843
|
block: o(),
|
|
819
844
|
registeredComponents: e.registeredComponents
|
|
820
845
|
});
|
|
821
846
|
}
|
|
822
847
|
function r() {
|
|
823
|
-
var
|
|
824
|
-
return e.block.tagName === "a" || ((
|
|
848
|
+
var S;
|
|
849
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
825
850
|
}
|
|
826
851
|
function s() {
|
|
827
|
-
var
|
|
828
|
-
if ((
|
|
829
|
-
return !!((
|
|
830
|
-
const
|
|
831
|
-
return ("show" in o() ? o().show : !0) && !
|
|
852
|
+
var x, R;
|
|
853
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
854
|
+
return !!((R = t == null ? void 0 : t()) != null && R.length);
|
|
855
|
+
const g = "hide" in o() ? o().hide : !1;
|
|
856
|
+
return ("show" in o() ? o().show : !0) && !g;
|
|
832
857
|
}
|
|
833
858
|
function d() {
|
|
834
|
-
var
|
|
835
|
-
return !((
|
|
859
|
+
var S, x;
|
|
860
|
+
return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
836
861
|
}
|
|
837
862
|
function c() {
|
|
838
|
-
var
|
|
863
|
+
var g, S, x, R;
|
|
839
864
|
return {
|
|
840
|
-
blockChildren: (
|
|
841
|
-
componentRef: (
|
|
865
|
+
blockChildren: (g = o().children) != null ? g : [],
|
|
866
|
+
componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
|
|
842
867
|
componentOptions: {
|
|
843
|
-
...
|
|
844
|
-
...
|
|
845
|
-
...
|
|
846
|
-
...
|
|
847
|
-
...
|
|
868
|
+
...Ze(o()),
|
|
869
|
+
...Ct(a(), o()),
|
|
870
|
+
...Tt(a(), e.context),
|
|
871
|
+
...St(a(), e.linkComponent),
|
|
872
|
+
...kt(
|
|
848
873
|
a(),
|
|
849
874
|
e.registeredComponents
|
|
850
875
|
)
|
|
@@ -853,33 +878,33 @@ function J(e) {
|
|
|
853
878
|
linkComponent: e.linkComponent,
|
|
854
879
|
registeredComponents: e.registeredComponents,
|
|
855
880
|
builderBlock: o(),
|
|
856
|
-
includeBlockProps: ((
|
|
857
|
-
isInteractive: !((
|
|
881
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
882
|
+
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && L === "rsc")
|
|
858
883
|
};
|
|
859
884
|
}
|
|
860
885
|
return P(() => {
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
...
|
|
865
|
-
elementId:
|
|
886
|
+
const g = o().id, S = o().animations;
|
|
887
|
+
S && g && ft(
|
|
888
|
+
S.map((x) => ({
|
|
889
|
+
...x,
|
|
890
|
+
elementId: g
|
|
866
891
|
}))
|
|
867
892
|
);
|
|
868
893
|
}, []), P(() => {
|
|
869
894
|
n.update = !0;
|
|
870
|
-
}), /* @__PURE__ */ l(
|
|
871
|
-
/* @__PURE__ */ l(
|
|
872
|
-
(
|
|
873
|
-
|
|
895
|
+
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
|
|
896
|
+
/* @__PURE__ */ l(It, { block: o(), context: e.context }),
|
|
897
|
+
(f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
|
|
898
|
+
be,
|
|
874
899
|
{
|
|
875
|
-
repeatContext:
|
|
876
|
-
block:
|
|
900
|
+
repeatContext: g.context,
|
|
901
|
+
block: g.block,
|
|
877
902
|
registeredComponents: e.registeredComponents,
|
|
878
903
|
linkComponent: e.linkComponent
|
|
879
904
|
},
|
|
880
|
-
|
|
905
|
+
S
|
|
881
906
|
)) }) : /* @__PURE__ */ l(
|
|
882
|
-
|
|
907
|
+
ge,
|
|
883
908
|
{
|
|
884
909
|
componentRef: c().componentRef,
|
|
885
910
|
componentOptions: c().componentOptions,
|
|
@@ -891,24 +916,24 @@ function J(e) {
|
|
|
891
916
|
includeBlockProps: c().includeBlockProps,
|
|
892
917
|
isInteractive: c().isInteractive
|
|
893
918
|
}
|
|
894
|
-
) : /* @__PURE__ */ l(
|
|
895
|
-
|
|
919
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
|
|
920
|
+
be,
|
|
896
921
|
{
|
|
897
|
-
repeatContext:
|
|
898
|
-
block:
|
|
922
|
+
repeatContext: g.context,
|
|
923
|
+
block: g.block,
|
|
899
924
|
registeredComponents: e.registeredComponents,
|
|
900
925
|
linkComponent: e.linkComponent
|
|
901
926
|
},
|
|
902
|
-
|
|
927
|
+
S
|
|
903
928
|
)) }) : /* @__PURE__ */ V(
|
|
904
|
-
|
|
929
|
+
Vt,
|
|
905
930
|
{
|
|
906
931
|
Wrapper: r(),
|
|
907
932
|
block: o(),
|
|
908
933
|
context: e.context,
|
|
909
934
|
children: [
|
|
910
935
|
/* @__PURE__ */ l(
|
|
911
|
-
|
|
936
|
+
ge,
|
|
912
937
|
{
|
|
913
938
|
componentRef: c().componentRef,
|
|
914
939
|
componentOptions: c().componentOptions,
|
|
@@ -921,30 +946,30 @@ function J(e) {
|
|
|
921
946
|
isInteractive: c().isInteractive
|
|
922
947
|
}
|
|
923
948
|
),
|
|
924
|
-
(
|
|
925
|
-
|
|
949
|
+
(b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
|
|
950
|
+
K,
|
|
926
951
|
{
|
|
927
|
-
block:
|
|
952
|
+
block: g,
|
|
928
953
|
registeredComponents: e.registeredComponents,
|
|
929
954
|
linkComponent: e.linkComponent,
|
|
930
955
|
context: e.context
|
|
931
956
|
},
|
|
932
|
-
|
|
957
|
+
g.id
|
|
933
958
|
))
|
|
934
959
|
]
|
|
935
960
|
}
|
|
936
961
|
) })
|
|
937
962
|
] }) : null });
|
|
938
963
|
}
|
|
939
|
-
function
|
|
940
|
-
const t =
|
|
964
|
+
function Ft(e) {
|
|
965
|
+
const t = D(null);
|
|
941
966
|
function n() {
|
|
942
967
|
var a;
|
|
943
968
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
944
969
|
}
|
|
945
970
|
function i() {
|
|
946
971
|
var a, r;
|
|
947
|
-
|
|
972
|
+
N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
948
973
|
{
|
|
949
974
|
type: "builder.clickEmptyBlocks",
|
|
950
975
|
data: {
|
|
@@ -957,7 +982,7 @@ function Lt(e) {
|
|
|
957
982
|
}
|
|
958
983
|
function o() {
|
|
959
984
|
var a, r;
|
|
960
|
-
|
|
985
|
+
N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
961
986
|
{
|
|
962
987
|
type: "builder.hoverEmptyBlocks",
|
|
963
988
|
data: {
|
|
@@ -969,12 +994,12 @@ function Lt(e) {
|
|
|
969
994
|
));
|
|
970
995
|
}
|
|
971
996
|
return P(() => {
|
|
972
|
-
}, []), /* @__PURE__ */ V(
|
|
997
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
973
998
|
/* @__PURE__ */ l(
|
|
974
999
|
e.BlocksWrapper,
|
|
975
1000
|
{
|
|
976
1001
|
ref: t,
|
|
977
|
-
className: n() + " props-blocks-wrapper-
|
|
1002
|
+
className: n() + " props-blocks-wrapper-77bdc7c6",
|
|
978
1003
|
"builder-path": e.path,
|
|
979
1004
|
"builder-parent-id": e.parent,
|
|
980
1005
|
style: e.styleProp,
|
|
@@ -985,18 +1010,18 @@ function Lt(e) {
|
|
|
985
1010
|
children: e.children
|
|
986
1011
|
}
|
|
987
1012
|
),
|
|
988
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
1013
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-77bdc7c6 {
|
|
989
1014
|
display: flex;
|
|
990
1015
|
flex-direction: column;
|
|
991
1016
|
align-items: stretch;
|
|
992
1017
|
}` })
|
|
993
1018
|
] });
|
|
994
1019
|
}
|
|
995
|
-
function
|
|
1020
|
+
function F(e) {
|
|
996
1021
|
var i, o, a;
|
|
997
|
-
const t =
|
|
1022
|
+
const t = me(le), n = me(Ee);
|
|
998
1023
|
return /* @__PURE__ */ l(
|
|
999
|
-
|
|
1024
|
+
Ft,
|
|
1000
1025
|
{
|
|
1001
1026
|
blocks: e.blocks,
|
|
1002
1027
|
parent: e.parent,
|
|
@@ -1004,8 +1029,8 @@ function D(e) {
|
|
|
1004
1029
|
styleProp: e.styleProp,
|
|
1005
1030
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1006
1031
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1007
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
1008
|
-
|
|
1032
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1033
|
+
K,
|
|
1009
1034
|
{
|
|
1010
1035
|
block: r,
|
|
1011
1036
|
linkComponent: e.linkComponent,
|
|
@@ -1017,145 +1042,145 @@ function D(e) {
|
|
|
1017
1042
|
}
|
|
1018
1043
|
);
|
|
1019
1044
|
}
|
|
1020
|
-
const
|
|
1021
|
-
function
|
|
1022
|
-
var
|
|
1045
|
+
const $t = (e) => `builder-columns ${e}-breakpoints`;
|
|
1046
|
+
function Dt(e) {
|
|
1047
|
+
var k, W;
|
|
1023
1048
|
const [t, n] = T(
|
|
1024
1049
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
1025
1050
|
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
1026
1051
|
() => e.stackColumnsAt || "tablet"
|
|
1027
1052
|
);
|
|
1028
|
-
function s(
|
|
1029
|
-
return
|
|
1053
|
+
function s(m) {
|
|
1054
|
+
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
1030
1055
|
}
|
|
1031
|
-
function d(
|
|
1032
|
-
var
|
|
1033
|
-
return ((
|
|
1056
|
+
function d(m) {
|
|
1057
|
+
var y;
|
|
1058
|
+
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
1034
1059
|
}
|
|
1035
|
-
function c(
|
|
1036
|
-
const
|
|
1037
|
-
return `calc(${
|
|
1060
|
+
function c(m) {
|
|
1061
|
+
const y = d(m), I = t * (i.length - 1) * (y / 100);
|
|
1062
|
+
return `calc(${y}% - ${I}px)`;
|
|
1038
1063
|
}
|
|
1039
|
-
function
|
|
1040
|
-
stackedStyle:
|
|
1041
|
-
desktopStyle:
|
|
1064
|
+
function f({
|
|
1065
|
+
stackedStyle: m,
|
|
1066
|
+
desktopStyle: y
|
|
1042
1067
|
}) {
|
|
1043
|
-
return a === "tablet" ?
|
|
1068
|
+
return a === "tablet" ? m : y;
|
|
1044
1069
|
}
|
|
1045
|
-
function
|
|
1046
|
-
stackedStyle:
|
|
1047
|
-
desktopStyle:
|
|
1070
|
+
function b({
|
|
1071
|
+
stackedStyle: m,
|
|
1072
|
+
desktopStyle: y
|
|
1048
1073
|
}) {
|
|
1049
|
-
return a === "never" ?
|
|
1074
|
+
return a === "never" ? y : m;
|
|
1050
1075
|
}
|
|
1051
|
-
const [
|
|
1076
|
+
const [h, v] = T(
|
|
1052
1077
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1053
1078
|
);
|
|
1054
|
-
function
|
|
1079
|
+
function g() {
|
|
1055
1080
|
return {
|
|
1056
|
-
"--flex-dir":
|
|
1057
|
-
"--flex-dir-tablet":
|
|
1058
|
-
stackedStyle:
|
|
1081
|
+
"--flex-dir": h,
|
|
1082
|
+
"--flex-dir-tablet": f({
|
|
1083
|
+
stackedStyle: h,
|
|
1059
1084
|
desktopStyle: "row"
|
|
1060
1085
|
})
|
|
1061
1086
|
};
|
|
1062
1087
|
}
|
|
1063
|
-
function
|
|
1064
|
-
const
|
|
1088
|
+
function S(m) {
|
|
1089
|
+
const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", E = 0;
|
|
1065
1090
|
return {
|
|
1066
1091
|
...{
|
|
1067
1092
|
display: "flex",
|
|
1068
1093
|
flexDirection: "column",
|
|
1069
1094
|
alignItems: "stretch"
|
|
1070
1095
|
},
|
|
1071
|
-
width:
|
|
1072
|
-
["marginLeft"]:
|
|
1073
|
-
"--column-width-mobile":
|
|
1074
|
-
stackedStyle:
|
|
1075
|
-
desktopStyle:
|
|
1096
|
+
width: I,
|
|
1097
|
+
["marginLeft"]: u,
|
|
1098
|
+
"--column-width-mobile": b({
|
|
1099
|
+
stackedStyle: p,
|
|
1100
|
+
desktopStyle: I
|
|
1076
1101
|
}),
|
|
1077
|
-
"--column-margin-left-mobile":
|
|
1078
|
-
stackedStyle:
|
|
1079
|
-
desktopStyle:
|
|
1102
|
+
"--column-margin-left-mobile": b({
|
|
1103
|
+
stackedStyle: E,
|
|
1104
|
+
desktopStyle: u
|
|
1080
1105
|
}),
|
|
1081
|
-
"--column-width-tablet":
|
|
1082
|
-
stackedStyle:
|
|
1083
|
-
desktopStyle:
|
|
1106
|
+
"--column-width-tablet": f({
|
|
1107
|
+
stackedStyle: p,
|
|
1108
|
+
desktopStyle: I
|
|
1084
1109
|
}),
|
|
1085
|
-
"--column-margin-left-tablet":
|
|
1086
|
-
stackedStyle:
|
|
1087
|
-
desktopStyle:
|
|
1110
|
+
"--column-margin-left-tablet": f({
|
|
1111
|
+
stackedStyle: E,
|
|
1112
|
+
desktopStyle: u
|
|
1088
1113
|
})
|
|
1089
1114
|
};
|
|
1090
1115
|
}
|
|
1091
|
-
function
|
|
1092
|
-
var
|
|
1093
|
-
return
|
|
1094
|
-
((
|
|
1095
|
-
)[
|
|
1116
|
+
function x(m) {
|
|
1117
|
+
var I, u;
|
|
1118
|
+
return $e(
|
|
1119
|
+
((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
|
|
1120
|
+
)[m].max;
|
|
1096
1121
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const
|
|
1122
|
+
function R() {
|
|
1123
|
+
const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1099
1124
|
return `
|
|
1100
|
-
@media (max-width: ${
|
|
1125
|
+
@media (max-width: ${x("medium")}px) {
|
|
1101
1126
|
.${e.builderBlock.id}-breakpoints {
|
|
1102
1127
|
flex-direction: var(--flex-dir-tablet);
|
|
1103
1128
|
align-items: stretch;
|
|
1104
1129
|
}
|
|
1105
1130
|
|
|
1106
|
-
${
|
|
1131
|
+
${m} {
|
|
1107
1132
|
width: var(--column-width-tablet) !important;
|
|
1108
1133
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1109
1134
|
}
|
|
1110
1135
|
}
|
|
1111
1136
|
|
|
1112
|
-
@media (max-width: ${
|
|
1137
|
+
@media (max-width: ${x("small")}px) {
|
|
1113
1138
|
.${e.builderBlock.id}-breakpoints {
|
|
1114
1139
|
flex-direction: var(--flex-dir);
|
|
1115
1140
|
align-items: stretch;
|
|
1116
1141
|
}
|
|
1117
1142
|
|
|
1118
|
-
${
|
|
1143
|
+
${m} {
|
|
1119
1144
|
width: var(--column-width-mobile) !important;
|
|
1120
1145
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1121
1146
|
}
|
|
1122
1147
|
},
|
|
1123
1148
|
`;
|
|
1124
1149
|
}
|
|
1125
|
-
function
|
|
1150
|
+
function C(m, y) {
|
|
1126
1151
|
return {
|
|
1127
|
-
...
|
|
1128
|
-
href:
|
|
1152
|
+
...m.link ? {
|
|
1153
|
+
href: m.link
|
|
1129
1154
|
} : {},
|
|
1130
|
-
[
|
|
1131
|
-
style:
|
|
1155
|
+
[H()]: "builder-column",
|
|
1156
|
+
style: Ne(S(y))
|
|
1132
1157
|
};
|
|
1133
1158
|
}
|
|
1134
|
-
return /* @__PURE__ */ V(
|
|
1159
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1135
1160
|
/* @__PURE__ */ V(
|
|
1136
1161
|
"div",
|
|
1137
1162
|
{
|
|
1138
|
-
className:
|
|
1139
|
-
style:
|
|
1163
|
+
className: $t((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
|
|
1164
|
+
style: g(),
|
|
1140
1165
|
children: [
|
|
1141
1166
|
/* @__PURE__ */ l(
|
|
1142
|
-
|
|
1167
|
+
Q,
|
|
1143
1168
|
{
|
|
1144
1169
|
id: "builderio-columns",
|
|
1145
|
-
styles:
|
|
1170
|
+
styles: R(),
|
|
1146
1171
|
nonce: e.builderContext.nonce
|
|
1147
1172
|
}
|
|
1148
1173
|
),
|
|
1149
|
-
(
|
|
1150
|
-
|
|
1174
|
+
(W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
|
|
1175
|
+
re,
|
|
1151
1176
|
{
|
|
1152
|
-
TagName: s(
|
|
1177
|
+
TagName: s(m),
|
|
1153
1178
|
actionAttributes: {},
|
|
1154
|
-
attributes:
|
|
1179
|
+
attributes: C(m, y),
|
|
1155
1180
|
children: /* @__PURE__ */ l(
|
|
1156
|
-
|
|
1181
|
+
F,
|
|
1157
1182
|
{
|
|
1158
|
-
path: `component.options.columns.${
|
|
1183
|
+
path: `component.options.columns.${y}.blocks`,
|
|
1159
1184
|
parent: e.builderBlock.id,
|
|
1160
1185
|
styleProp: {
|
|
1161
1186
|
flexGrow: "1"
|
|
@@ -1163,89 +1188,89 @@ function Ut(e) {
|
|
|
1163
1188
|
context: e.builderContext,
|
|
1164
1189
|
registeredComponents: e.builderComponents,
|
|
1165
1190
|
linkComponent: e.builderLinkComponent,
|
|
1166
|
-
blocks:
|
|
1191
|
+
blocks: m.blocks
|
|
1167
1192
|
}
|
|
1168
1193
|
)
|
|
1169
1194
|
},
|
|
1170
|
-
|
|
1195
|
+
y
|
|
1171
1196
|
))
|
|
1172
1197
|
]
|
|
1173
1198
|
}
|
|
1174
1199
|
),
|
|
1175
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1200
|
+
/* @__PURE__ */ l("style", { children: `.div-3b0f6fe2 {
|
|
1176
1201
|
display: flex;
|
|
1177
1202
|
line-height: normal;
|
|
1178
1203
|
}` })
|
|
1179
1204
|
] });
|
|
1180
1205
|
}
|
|
1181
|
-
function
|
|
1206
|
+
function Lt(e) {
|
|
1182
1207
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1183
1208
|
}
|
|
1184
|
-
function
|
|
1209
|
+
function pe(e) {
|
|
1185
1210
|
return e.replace(/http(s)?:/, "");
|
|
1186
1211
|
}
|
|
1187
|
-
function
|
|
1212
|
+
function Ot(e = "", t, n) {
|
|
1188
1213
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1189
1214
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1190
1215
|
}
|
|
1191
|
-
function
|
|
1216
|
+
function Ut(e, t) {
|
|
1192
1217
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1193
1218
|
return e;
|
|
1194
1219
|
if (t === "master")
|
|
1195
|
-
return
|
|
1220
|
+
return pe(e);
|
|
1196
1221
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1197
1222
|
if (n) {
|
|
1198
1223
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1199
|
-
return
|
|
1224
|
+
return pe(`${i[0]}_${a}${o}`);
|
|
1200
1225
|
}
|
|
1201
1226
|
return null;
|
|
1202
1227
|
}
|
|
1203
|
-
function
|
|
1228
|
+
function Z(e) {
|
|
1204
1229
|
if (!e)
|
|
1205
1230
|
return e;
|
|
1206
1231
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1207
1232
|
if (e.match(/builder\.io/)) {
|
|
1208
1233
|
let n = e;
|
|
1209
1234
|
const i = Number(e.split("?width=")[1]);
|
|
1210
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1235
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1211
1236
|
}
|
|
1212
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1237
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ut(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1213
1238
|
}
|
|
1214
|
-
function
|
|
1239
|
+
function Mt(e) {
|
|
1215
1240
|
var o, a, r, s, d, c;
|
|
1216
1241
|
function t() {
|
|
1217
|
-
var
|
|
1218
|
-
const
|
|
1219
|
-
if (!
|
|
1242
|
+
var h;
|
|
1243
|
+
const b = e.image || e.src;
|
|
1244
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1220
1245
|
// images, otherwise you can supply this prop manually
|
|
1221
|
-
!(
|
|
1246
|
+
!(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
|
|
1222
1247
|
return e.srcset;
|
|
1223
1248
|
if (!e.noWebp) {
|
|
1224
|
-
if (e.srcset && ((
|
|
1249
|
+
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1225
1250
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1226
|
-
return console.debug("Removed given srcset"),
|
|
1251
|
+
return console.debug("Removed given srcset"), Z(b);
|
|
1227
1252
|
} else if (e.image && !e.srcset)
|
|
1228
|
-
return
|
|
1229
|
-
return
|
|
1253
|
+
return Z(b);
|
|
1254
|
+
return Z(b);
|
|
1230
1255
|
}
|
|
1231
1256
|
}
|
|
1232
1257
|
function n() {
|
|
1233
|
-
var
|
|
1234
|
-
return (
|
|
1258
|
+
var f;
|
|
1259
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1235
1260
|
}
|
|
1236
1261
|
function i() {
|
|
1237
|
-
const
|
|
1262
|
+
const f = {
|
|
1238
1263
|
position: "absolute",
|
|
1239
1264
|
height: "100%",
|
|
1240
1265
|
width: "100%",
|
|
1241
1266
|
left: "0px",
|
|
1242
1267
|
top: "0px"
|
|
1243
1268
|
};
|
|
1244
|
-
return e.aspectRatio ?
|
|
1269
|
+
return e.aspectRatio ? f : void 0;
|
|
1245
1270
|
}
|
|
1246
1271
|
return P(() => {
|
|
1247
|
-
}, []), /* @__PURE__ */ V(
|
|
1248
|
-
/* @__PURE__ */ V(
|
|
1272
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
1273
|
+
/* @__PURE__ */ V(w, { children: [
|
|
1249
1274
|
/* @__PURE__ */ V("picture", { children: [
|
|
1250
1275
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1251
1276
|
/* @__PURE__ */ l(
|
|
@@ -1260,7 +1285,7 @@ function Kt(e) {
|
|
|
1260
1285
|
objectFit: e.backgroundSize || "cover",
|
|
1261
1286
|
...i()
|
|
1262
1287
|
},
|
|
1263
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1288
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
|
|
1264
1289
|
src: e.image,
|
|
1265
1290
|
srcSet: t(),
|
|
1266
1291
|
sizes: e.sizes
|
|
@@ -1270,23 +1295,23 @@ function Kt(e) {
|
|
|
1270
1295
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1271
1296
|
"div",
|
|
1272
1297
|
{
|
|
1273
|
-
className: "builder-image-sizer div-
|
|
1298
|
+
className: "builder-image-sizer div-7a292ab8",
|
|
1274
1299
|
style: {
|
|
1275
1300
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1276
1301
|
}
|
|
1277
1302
|
}
|
|
1278
1303
|
) : null,
|
|
1279
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1280
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1304
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1305
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1281
1306
|
] }),
|
|
1282
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1307
|
+
/* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
|
|
1283
1308
|
opacity: 1;
|
|
1284
1309
|
transition: opacity 0.2s ease-in-out;
|
|
1285
|
-
}.div-
|
|
1310
|
+
}.div-7a292ab8 {
|
|
1286
1311
|
width: 100%;
|
|
1287
1312
|
pointer-events: none;
|
|
1288
1313
|
font-size: 0;
|
|
1289
|
-
}.div-
|
|
1314
|
+
}.div-7a292ab8-2 {
|
|
1290
1315
|
display: flex;
|
|
1291
1316
|
flex-direction: column;
|
|
1292
1317
|
align-items: stretch;
|
|
@@ -1298,7 +1323,7 @@ function Kt(e) {
|
|
|
1298
1323
|
}` })
|
|
1299
1324
|
] });
|
|
1300
1325
|
}
|
|
1301
|
-
function
|
|
1326
|
+
function jt(e) {
|
|
1302
1327
|
return /* @__PURE__ */ l(
|
|
1303
1328
|
"section",
|
|
1304
1329
|
{
|
|
@@ -1319,7 +1344,7 @@ function qt(e) {
|
|
|
1319
1344
|
}
|
|
1320
1345
|
);
|
|
1321
1346
|
}
|
|
1322
|
-
const
|
|
1347
|
+
const ee = {
|
|
1323
1348
|
"@type": "@builder.io/sdk:Element",
|
|
1324
1349
|
layerName: "Accordion item title",
|
|
1325
1350
|
responsiveStyles: {
|
|
@@ -1348,7 +1373,7 @@ const ne = {
|
|
|
1348
1373
|
}
|
|
1349
1374
|
}
|
|
1350
1375
|
}]
|
|
1351
|
-
},
|
|
1376
|
+
}, te = {
|
|
1352
1377
|
"@type": "@builder.io/sdk:Element",
|
|
1353
1378
|
layerName: "Accordion item detail",
|
|
1354
1379
|
responsiveStyles: {
|
|
@@ -1379,7 +1404,7 @@ const ne = {
|
|
|
1379
1404
|
}
|
|
1380
1405
|
}
|
|
1381
1406
|
}]
|
|
1382
|
-
},
|
|
1407
|
+
}, Ht = {
|
|
1383
1408
|
name: "Builder:Accordion",
|
|
1384
1409
|
canHaveChildren: !0,
|
|
1385
1410
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1396,19 +1421,19 @@ const ne = {
|
|
|
1396
1421
|
name: "title",
|
|
1397
1422
|
type: "uiBlocks",
|
|
1398
1423
|
hideFromUI: !0,
|
|
1399
|
-
defaultValue: [
|
|
1424
|
+
defaultValue: [ee]
|
|
1400
1425
|
}, {
|
|
1401
1426
|
name: "detail",
|
|
1402
1427
|
type: "uiBlocks",
|
|
1403
1428
|
hideFromUI: !0,
|
|
1404
|
-
defaultValue: [
|
|
1429
|
+
defaultValue: [te]
|
|
1405
1430
|
}],
|
|
1406
1431
|
defaultValue: [{
|
|
1407
|
-
title: [
|
|
1408
|
-
detail: [
|
|
1432
|
+
title: [ee],
|
|
1433
|
+
detail: [te]
|
|
1409
1434
|
}, {
|
|
1410
|
-
title: [
|
|
1411
|
-
detail: [
|
|
1435
|
+
title: [ee],
|
|
1436
|
+
detail: [te]
|
|
1412
1437
|
}],
|
|
1413
1438
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1414
1439
|
}, {
|
|
@@ -1443,9 +1468,9 @@ const ne = {
|
|
|
1443
1468
|
builderComponents: !0,
|
|
1444
1469
|
builderLinkComponent: !0
|
|
1445
1470
|
}
|
|
1446
|
-
},
|
|
1447
|
-
function
|
|
1448
|
-
var
|
|
1471
|
+
}, ye = (e) => e.toString();
|
|
1472
|
+
function Kt(e) {
|
|
1473
|
+
var b;
|
|
1449
1474
|
const [t, n] = T(() => []);
|
|
1450
1475
|
function i() {
|
|
1451
1476
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1463,7 +1488,7 @@ function zt(e) {
|
|
|
1463
1488
|
};
|
|
1464
1489
|
}
|
|
1465
1490
|
function a() {
|
|
1466
|
-
const
|
|
1491
|
+
const v = {
|
|
1467
1492
|
...{
|
|
1468
1493
|
display: "flex",
|
|
1469
1494
|
flexDirection: "column"
|
|
@@ -1472,73 +1497,73 @@ function zt(e) {
|
|
|
1472
1497
|
cursor: "pointer"
|
|
1473
1498
|
};
|
|
1474
1499
|
return Object.fromEntries(
|
|
1475
|
-
Object.entries(
|
|
1500
|
+
Object.entries(v).filter(([g, S]) => S !== void 0)
|
|
1476
1501
|
);
|
|
1477
1502
|
}
|
|
1478
|
-
function r(
|
|
1479
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1503
|
+
function r(h) {
|
|
1504
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
|
|
1480
1505
|
}
|
|
1481
|
-
function s(
|
|
1482
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1506
|
+
function s(h) {
|
|
1507
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
|
|
1483
1508
|
}
|
|
1484
1509
|
function d() {
|
|
1485
|
-
let
|
|
1510
|
+
let h = null;
|
|
1486
1511
|
if (e.grid && t.length && document) {
|
|
1487
|
-
const
|
|
1488
|
-
let
|
|
1489
|
-
`.builder-accordion-title[data-index="${
|
|
1512
|
+
const g = t[0];
|
|
1513
|
+
let x = document.querySelector(
|
|
1514
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1490
1515
|
);
|
|
1491
|
-
if (
|
|
1492
|
-
let
|
|
1493
|
-
for (;
|
|
1494
|
-
if (
|
|
1495
|
-
if (
|
|
1516
|
+
if (h = g, x) {
|
|
1517
|
+
let R = x.getBoundingClientRect();
|
|
1518
|
+
for (; x = x && x.nextElementSibling; )
|
|
1519
|
+
if (x) {
|
|
1520
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1496
1521
|
continue;
|
|
1497
|
-
const
|
|
1498
|
-
if (
|
|
1499
|
-
const
|
|
1500
|
-
|
|
1522
|
+
const C = x.getBoundingClientRect();
|
|
1523
|
+
if (C.left > R.left) {
|
|
1524
|
+
const k = parseInt(
|
|
1525
|
+
x.getAttribute("data-index") || "",
|
|
1501
1526
|
10
|
|
1502
1527
|
);
|
|
1503
|
-
isNaN(
|
|
1528
|
+
isNaN(k) || (R = C, h = k);
|
|
1504
1529
|
} else
|
|
1505
1530
|
break;
|
|
1506
1531
|
}
|
|
1507
1532
|
}
|
|
1508
1533
|
}
|
|
1509
|
-
return typeof
|
|
1534
|
+
return typeof h == "number" && (h = h + 1), h;
|
|
1510
1535
|
}
|
|
1511
1536
|
function c() {
|
|
1512
|
-
const
|
|
1537
|
+
const h = {
|
|
1513
1538
|
order: typeof d() == "number" ? d() : void 0,
|
|
1514
1539
|
...e.grid && {
|
|
1515
1540
|
width: "100%"
|
|
1516
1541
|
}
|
|
1517
1542
|
};
|
|
1518
1543
|
return Object.fromEntries(
|
|
1519
|
-
Object.entries(
|
|
1544
|
+
Object.entries(h).filter(([v, g]) => g !== void 0)
|
|
1520
1545
|
);
|
|
1521
1546
|
}
|
|
1522
|
-
function
|
|
1523
|
-
t.includes(
|
|
1547
|
+
function f(h) {
|
|
1548
|
+
t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
|
|
1524
1549
|
}
|
|
1525
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (
|
|
1550
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
|
|
1526
1551
|
/* @__PURE__ */ l(
|
|
1527
1552
|
"div",
|
|
1528
1553
|
{
|
|
1529
|
-
className: r(
|
|
1554
|
+
className: r(v),
|
|
1530
1555
|
style: {
|
|
1531
1556
|
...a(),
|
|
1532
1557
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1533
|
-
order: d() !== null ?
|
|
1558
|
+
order: d() !== null ? ye(v) : ye(v + 1)
|
|
1534
1559
|
},
|
|
1535
|
-
"data-index":
|
|
1536
|
-
onClick: (
|
|
1560
|
+
"data-index": v,
|
|
1561
|
+
onClick: (g) => f(v),
|
|
1537
1562
|
children: /* @__PURE__ */ l(
|
|
1538
|
-
|
|
1563
|
+
F,
|
|
1539
1564
|
{
|
|
1540
|
-
blocks:
|
|
1541
|
-
path: `items.${
|
|
1565
|
+
blocks: h.title,
|
|
1566
|
+
path: `items.${v}.title`,
|
|
1542
1567
|
parent: e.builderBlock.id,
|
|
1543
1568
|
context: e.builderContext,
|
|
1544
1569
|
registeredComponents: e.builderComponents,
|
|
@@ -1547,16 +1572,16 @@ function zt(e) {
|
|
|
1547
1572
|
)
|
|
1548
1573
|
}
|
|
1549
1574
|
),
|
|
1550
|
-
t.includes(
|
|
1575
|
+
t.includes(v) ? /* @__PURE__ */ l(
|
|
1551
1576
|
"div",
|
|
1552
1577
|
{
|
|
1553
|
-
className: s(
|
|
1578
|
+
className: s(v),
|
|
1554
1579
|
style: c(),
|
|
1555
1580
|
children: /* @__PURE__ */ l(
|
|
1556
|
-
|
|
1581
|
+
F,
|
|
1557
1582
|
{
|
|
1558
|
-
blocks:
|
|
1559
|
-
path: `items.${
|
|
1583
|
+
blocks: h.detail,
|
|
1584
|
+
path: `items.${v}.detail`,
|
|
1560
1585
|
parent: e.builderBlock.id,
|
|
1561
1586
|
context: e.builderContext,
|
|
1562
1587
|
registeredComponents: e.builderComponents,
|
|
@@ -1567,7 +1592,7 @@ function zt(e) {
|
|
|
1567
1592
|
) : null
|
|
1568
1593
|
] })) });
|
|
1569
1594
|
}
|
|
1570
|
-
const
|
|
1595
|
+
const qt = {
|
|
1571
1596
|
name: "Core:Button",
|
|
1572
1597
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1573
1598
|
defaultStyles: {
|
|
@@ -1603,7 +1628,7 @@ const Jt = {
|
|
|
1603
1628
|
shouldReceiveBuilderProps: {
|
|
1604
1629
|
builderLinkComponent: !0
|
|
1605
1630
|
}
|
|
1606
|
-
},
|
|
1631
|
+
}, _t = {
|
|
1607
1632
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1608
1633
|
name: "Columns",
|
|
1609
1634
|
isRSC: !0,
|
|
@@ -1810,13 +1835,13 @@ const Jt = {
|
|
|
1810
1835
|
builderComponents: !0,
|
|
1811
1836
|
builderLinkComponent: !0
|
|
1812
1837
|
}
|
|
1813
|
-
},
|
|
1838
|
+
}, zt = {
|
|
1814
1839
|
name: "Fragment",
|
|
1815
1840
|
static: !0,
|
|
1816
1841
|
hidden: !0,
|
|
1817
1842
|
canHaveChildren: !0,
|
|
1818
1843
|
noWrap: !0
|
|
1819
|
-
},
|
|
1844
|
+
}, Jt = {
|
|
1820
1845
|
name: "Image",
|
|
1821
1846
|
static: !0,
|
|
1822
1847
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1838,14 +1863,14 @@ const Jt = {
|
|
|
1838
1863
|
e.delete("srcset"), e.delete("noWebp");
|
|
1839
1864
|
function n(r, s = 6e4) {
|
|
1840
1865
|
return new Promise((d, c) => {
|
|
1841
|
-
const
|
|
1842
|
-
let
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
},
|
|
1846
|
-
console.warn("Image load failed",
|
|
1847
|
-
}),
|
|
1848
|
-
|
|
1866
|
+
const f = document.createElement("img");
|
|
1867
|
+
let b = !1;
|
|
1868
|
+
f.onload = () => {
|
|
1869
|
+
b = !0, d(f);
|
|
1870
|
+
}, f.addEventListener("error", (h) => {
|
|
1871
|
+
console.warn("Image load failed", h.error), c(h.error);
|
|
1872
|
+
}), f.src = r, setTimeout(() => {
|
|
1873
|
+
b || c(new Error("Image load timed out"));
|
|
1849
1874
|
}, s);
|
|
1850
1875
|
});
|
|
1851
1876
|
}
|
|
@@ -1924,7 +1949,7 @@ const Jt = {
|
|
|
1924
1949
|
shouldReceiveBuilderProps: {
|
|
1925
1950
|
builderBlock: !0
|
|
1926
1951
|
}
|
|
1927
|
-
},
|
|
1952
|
+
}, Yt = {
|
|
1928
1953
|
name: "Core:Section",
|
|
1929
1954
|
static: !0,
|
|
1930
1955
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1963,7 +1988,7 @@ const Jt = {
|
|
|
1963
1988
|
}
|
|
1964
1989
|
}
|
|
1965
1990
|
}]
|
|
1966
|
-
},
|
|
1991
|
+
}, Gt = {
|
|
1967
1992
|
name: "Slot",
|
|
1968
1993
|
isRSC: !0,
|
|
1969
1994
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1981,7 +2006,7 @@ const Jt = {
|
|
|
1981
2006
|
builderComponents: !0
|
|
1982
2007
|
}
|
|
1983
2008
|
};
|
|
1984
|
-
function
|
|
2009
|
+
function Qt(e) {
|
|
1985
2010
|
var t, n, i;
|
|
1986
2011
|
return /* @__PURE__ */ l(
|
|
1987
2012
|
"div",
|
|
@@ -1993,7 +2018,7 @@ function en(e) {
|
|
|
1993
2018
|
"builder-slot": e.name
|
|
1994
2019
|
},
|
|
1995
2020
|
children: /* @__PURE__ */ l(
|
|
1996
|
-
|
|
2021
|
+
F,
|
|
1997
2022
|
{
|
|
1998
2023
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1999
2024
|
path: `symbol.data.${e.name}`,
|
|
@@ -2005,7 +2030,7 @@ function en(e) {
|
|
|
2005
2030
|
}
|
|
2006
2031
|
);
|
|
2007
2032
|
}
|
|
2008
|
-
const
|
|
2033
|
+
const Xt = {
|
|
2009
2034
|
name: "Symbol",
|
|
2010
2035
|
noWrap: !0,
|
|
2011
2036
|
static: !0,
|
|
@@ -2044,7 +2069,7 @@ const tn = {
|
|
|
2044
2069
|
builderComponents: !0,
|
|
2045
2070
|
builderLinkComponent: !0
|
|
2046
2071
|
}
|
|
2047
|
-
},
|
|
2072
|
+
}, ne = {
|
|
2048
2073
|
"@type": "@builder.io/sdk:Element",
|
|
2049
2074
|
responsiveStyles: {
|
|
2050
2075
|
large: {
|
|
@@ -2066,7 +2091,7 @@ const tn = {
|
|
|
2066
2091
|
text: "New tab"
|
|
2067
2092
|
}
|
|
2068
2093
|
}
|
|
2069
|
-
},
|
|
2094
|
+
}, ie = {
|
|
2070
2095
|
"@type": "@builder.io/sdk:Element",
|
|
2071
2096
|
responsiveStyles: {
|
|
2072
2097
|
large: {
|
|
@@ -2082,7 +2107,7 @@ const tn = {
|
|
|
2082
2107
|
text: "New tab content "
|
|
2083
2108
|
}
|
|
2084
2109
|
}
|
|
2085
|
-
},
|
|
2110
|
+
}, Zt = {
|
|
2086
2111
|
name: "Builder: Tabs",
|
|
2087
2112
|
inputs: [{
|
|
2088
2113
|
name: "tabs",
|
|
@@ -2092,16 +2117,16 @@ const tn = {
|
|
|
2092
2117
|
name: "label",
|
|
2093
2118
|
type: "uiBlocks",
|
|
2094
2119
|
hideFromUI: !0,
|
|
2095
|
-
defaultValue: [
|
|
2120
|
+
defaultValue: [ne]
|
|
2096
2121
|
}, {
|
|
2097
2122
|
name: "content",
|
|
2098
2123
|
type: "uiBlocks",
|
|
2099
2124
|
hideFromUI: !0,
|
|
2100
|
-
defaultValue: [
|
|
2125
|
+
defaultValue: [ie]
|
|
2101
2126
|
}],
|
|
2102
2127
|
defaultValue: [{
|
|
2103
2128
|
label: [{
|
|
2104
|
-
...
|
|
2129
|
+
...ne,
|
|
2105
2130
|
component: {
|
|
2106
2131
|
name: "Text",
|
|
2107
2132
|
options: {
|
|
@@ -2110,7 +2135,7 @@ const tn = {
|
|
|
2110
2135
|
}
|
|
2111
2136
|
}],
|
|
2112
2137
|
content: [{
|
|
2113
|
-
...
|
|
2138
|
+
...ie,
|
|
2114
2139
|
component: {
|
|
2115
2140
|
name: "Text",
|
|
2116
2141
|
options: {
|
|
@@ -2120,7 +2145,7 @@ const tn = {
|
|
|
2120
2145
|
}]
|
|
2121
2146
|
}, {
|
|
2122
2147
|
label: [{
|
|
2123
|
-
...
|
|
2148
|
+
...ne,
|
|
2124
2149
|
component: {
|
|
2125
2150
|
name: "Text",
|
|
2126
2151
|
options: {
|
|
@@ -2129,7 +2154,7 @@ const tn = {
|
|
|
2129
2154
|
}
|
|
2130
2155
|
}],
|
|
2131
2156
|
content: [{
|
|
2132
|
-
...
|
|
2157
|
+
...ie,
|
|
2133
2158
|
component: {
|
|
2134
2159
|
name: "Text",
|
|
2135
2160
|
options: {
|
|
@@ -2186,7 +2211,7 @@ const tn = {
|
|
|
2186
2211
|
builderLinkComponent: !0
|
|
2187
2212
|
}
|
|
2188
2213
|
};
|
|
2189
|
-
function
|
|
2214
|
+
function en(e) {
|
|
2190
2215
|
var a;
|
|
2191
2216
|
const [t, n] = T(
|
|
2192
2217
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2217,7 +2242,7 @@ function on(e) {
|
|
|
2217
2242
|
},
|
|
2218
2243
|
onClick: (d) => o(s),
|
|
2219
2244
|
children: /* @__PURE__ */ l(
|
|
2220
|
-
|
|
2245
|
+
F,
|
|
2221
2246
|
{
|
|
2222
2247
|
parent: e.builderBlock.id,
|
|
2223
2248
|
path: `component.options.tabs.${s}.label`,
|
|
@@ -2233,7 +2258,7 @@ function on(e) {
|
|
|
2233
2258
|
}
|
|
2234
2259
|
),
|
|
2235
2260
|
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2236
|
-
|
|
2261
|
+
F,
|
|
2237
2262
|
{
|
|
2238
2263
|
parent: e.builderBlock.id,
|
|
2239
2264
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2245,7 +2270,7 @@ function on(e) {
|
|
|
2245
2270
|
) }) : null
|
|
2246
2271
|
] });
|
|
2247
2272
|
}
|
|
2248
|
-
const
|
|
2273
|
+
const tn = {
|
|
2249
2274
|
shouldReceiveBuilderProps: {
|
|
2250
2275
|
builderBlock: !1,
|
|
2251
2276
|
builderContext: !0
|
|
@@ -2268,7 +2293,7 @@ const an = {
|
|
|
2268
2293
|
textAlign: "center"
|
|
2269
2294
|
}
|
|
2270
2295
|
};
|
|
2271
|
-
function
|
|
2296
|
+
function nn(e) {
|
|
2272
2297
|
function t() {
|
|
2273
2298
|
var s;
|
|
2274
2299
|
const n = e.builderContext, {
|
|
@@ -2279,7 +2304,7 @@ function rn(e) {
|
|
|
2279
2304
|
} = n;
|
|
2280
2305
|
return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2281
2306
|
/{{([^}]+)}}/g,
|
|
2282
|
-
(d, c) =>
|
|
2307
|
+
(d, c) => M({
|
|
2283
2308
|
code: c,
|
|
2284
2309
|
context: i,
|
|
2285
2310
|
localState: o,
|
|
@@ -2300,7 +2325,7 @@ function rn(e) {
|
|
|
2300
2325
|
}
|
|
2301
2326
|
);
|
|
2302
2327
|
}
|
|
2303
|
-
const
|
|
2328
|
+
const on = {
|
|
2304
2329
|
name: "Custom Code",
|
|
2305
2330
|
static: !0,
|
|
2306
2331
|
requiredPermissions: ["editCode"],
|
|
@@ -2323,8 +2348,8 @@ const ln = {
|
|
|
2323
2348
|
advanced: !0
|
|
2324
2349
|
}]
|
|
2325
2350
|
};
|
|
2326
|
-
function
|
|
2327
|
-
const t =
|
|
2351
|
+
function an(e) {
|
|
2352
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2328
2353
|
return P(() => {
|
|
2329
2354
|
var s;
|
|
2330
2355
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2336,8 +2361,8 @@ function sn(e) {
|
|
|
2336
2361
|
if (n.includes(c.src))
|
|
2337
2362
|
continue;
|
|
2338
2363
|
n.push(c.src);
|
|
2339
|
-
const
|
|
2340
|
-
|
|
2364
|
+
const f = document.createElement("script");
|
|
2365
|
+
f.async = !0, f.src = c.src, document.head.appendChild(f);
|
|
2341
2366
|
} else if (!c.type || [
|
|
2342
2367
|
"text/javascript",
|
|
2343
2368
|
"application/javascript",
|
|
@@ -2347,8 +2372,8 @@ function sn(e) {
|
|
|
2347
2372
|
continue;
|
|
2348
2373
|
try {
|
|
2349
2374
|
o.push(c.innerText), new Function(c.innerText)();
|
|
2350
|
-
} catch (
|
|
2351
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2375
|
+
} catch (f) {
|
|
2376
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
2352
2377
|
}
|
|
2353
2378
|
}
|
|
2354
2379
|
}
|
|
@@ -2361,7 +2386,7 @@ function sn(e) {
|
|
|
2361
2386
|
}
|
|
2362
2387
|
);
|
|
2363
2388
|
}
|
|
2364
|
-
const
|
|
2389
|
+
const rn = {
|
|
2365
2390
|
name: "Embed",
|
|
2366
2391
|
static: !0,
|
|
2367
2392
|
inputs: [{
|
|
@@ -2376,24 +2401,24 @@ const cn = {
|
|
|
2376
2401
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2377
2402
|
hideFromUI: !0
|
|
2378
2403
|
}]
|
|
2379
|
-
},
|
|
2380
|
-
function
|
|
2381
|
-
const t =
|
|
2404
|
+
}, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
|
|
2405
|
+
function cn(e) {
|
|
2406
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2382
2407
|
function d() {
|
|
2383
2408
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2384
2409
|
return;
|
|
2385
2410
|
const c = t.current.getElementsByTagName("script");
|
|
2386
|
-
for (let
|
|
2387
|
-
const
|
|
2388
|
-
if (
|
|
2389
|
-
n.push(
|
|
2390
|
-
const
|
|
2391
|
-
|
|
2392
|
-
} else if (
|
|
2411
|
+
for (let f = 0; f < c.length; f++) {
|
|
2412
|
+
const b = c[f];
|
|
2413
|
+
if (b.src && !n.includes(b.src)) {
|
|
2414
|
+
n.push(b.src);
|
|
2415
|
+
const h = document.createElement("script");
|
|
2416
|
+
h.async = !0, h.src = b.src, document.head.appendChild(h);
|
|
2417
|
+
} else if (sn(b) && !o.includes(b.innerText))
|
|
2393
2418
|
try {
|
|
2394
|
-
o.push(
|
|
2395
|
-
} catch (
|
|
2396
|
-
console.warn("`Embed`: Error running script:",
|
|
2419
|
+
o.push(b.innerText), new Function(b.innerText)();
|
|
2420
|
+
} catch (h) {
|
|
2421
|
+
console.warn("`Embed`: Error running script:", h);
|
|
2397
2422
|
}
|
|
2398
2423
|
}
|
|
2399
2424
|
}
|
|
@@ -2408,7 +2433,7 @@ function mn(e) {
|
|
|
2408
2433
|
}
|
|
2409
2434
|
);
|
|
2410
2435
|
}
|
|
2411
|
-
const
|
|
2436
|
+
const dn = {
|
|
2412
2437
|
name: "Form:Form",
|
|
2413
2438
|
// editableTags: ['builder-form-error']
|
|
2414
2439
|
defaults: {
|
|
@@ -2645,123 +2670,123 @@ const fn = {
|
|
|
2645
2670
|
builderComponents: !0,
|
|
2646
2671
|
builderLinkComponent: !0
|
|
2647
2672
|
}
|
|
2648
|
-
},
|
|
2673
|
+
}, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
|
|
2649
2674
|
const e = process.env.NODE_ENV || "production";
|
|
2650
|
-
return
|
|
2651
|
-
},
|
|
2675
|
+
return un.includes(e) ? e : "production";
|
|
2676
|
+
}, fn = (e, t, n) => {
|
|
2652
2677
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2653
2678
|
return i === void 0 || i === e ? n : i;
|
|
2654
2679
|
};
|
|
2655
|
-
function
|
|
2656
|
-
var
|
|
2657
|
-
const t =
|
|
2658
|
-
function d(
|
|
2659
|
-
var
|
|
2660
|
-
const
|
|
2680
|
+
function hn(e) {
|
|
2681
|
+
var b, h;
|
|
2682
|
+
const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2683
|
+
function d(v) {
|
|
2684
|
+
var S, x;
|
|
2685
|
+
const g = {
|
|
2661
2686
|
...e.builderContext.rootState,
|
|
2662
|
-
...
|
|
2687
|
+
...v
|
|
2663
2688
|
};
|
|
2664
|
-
e.builderContext.rootSetState ? (
|
|
2689
|
+
e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
|
|
2665
2690
|
}
|
|
2666
2691
|
function c() {
|
|
2667
|
-
return
|
|
2692
|
+
return N() && e.previewState || n;
|
|
2668
2693
|
}
|
|
2669
|
-
function
|
|
2670
|
-
var
|
|
2671
|
-
const
|
|
2694
|
+
function f(v) {
|
|
2695
|
+
var S;
|
|
2696
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2672
2697
|
if (e.sendSubmissionsTo === "zapier")
|
|
2673
|
-
|
|
2674
|
-
else if (
|
|
2698
|
+
v.preventDefault();
|
|
2699
|
+
else if (g) {
|
|
2675
2700
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2676
|
-
|
|
2701
|
+
v.preventDefault();
|
|
2677
2702
|
return;
|
|
2678
2703
|
}
|
|
2679
|
-
|
|
2680
|
-
const
|
|
2681
|
-
let
|
|
2682
|
-
const
|
|
2683
|
-
let
|
|
2684
|
-
const
|
|
2685
|
-
if (
|
|
2686
|
-
if (
|
|
2687
|
-
if (
|
|
2688
|
-
return
|
|
2689
|
-
key:
|
|
2690
|
-
value:
|
|
2704
|
+
v.preventDefault();
|
|
2705
|
+
const x = v.currentTarget || v.target, R = e.customHeaders || {};
|
|
2706
|
+
let C;
|
|
2707
|
+
const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2708
|
+
let p;
|
|
2709
|
+
const E = u.name;
|
|
2710
|
+
if (u instanceof HTMLInputElement)
|
|
2711
|
+
if (u.type === "radio") {
|
|
2712
|
+
if (u.checked)
|
|
2713
|
+
return p = u.name, {
|
|
2714
|
+
key: E,
|
|
2715
|
+
value: p
|
|
2691
2716
|
};
|
|
2692
|
-
} else if (
|
|
2693
|
-
|
|
2694
|
-
else if (
|
|
2695
|
-
const
|
|
2696
|
-
isNaN(
|
|
2717
|
+
} else if (u.type === "checkbox")
|
|
2718
|
+
p = u.checked;
|
|
2719
|
+
else if (u.type === "number" || u.type === "range") {
|
|
2720
|
+
const B = u.valueAsNumber;
|
|
2721
|
+
isNaN(B) || (p = B);
|
|
2697
2722
|
} else
|
|
2698
|
-
|
|
2723
|
+
u.type === "file" ? p = u.files : p = u.value;
|
|
2699
2724
|
else
|
|
2700
|
-
|
|
2725
|
+
p = u.value;
|
|
2701
2726
|
return {
|
|
2702
|
-
key:
|
|
2703
|
-
value:
|
|
2727
|
+
key: E,
|
|
2728
|
+
value: p
|
|
2704
2729
|
};
|
|
2705
2730
|
});
|
|
2706
|
-
let
|
|
2707
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2708
|
-
(
|
|
2709
|
-
}),
|
|
2710
|
-
|
|
2731
|
+
let m = e.contentType;
|
|
2732
|
+
if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(W).forEach(({ value: u }) => {
|
|
2733
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
|
|
2734
|
+
}), m !== "application/json")
|
|
2735
|
+
C = k;
|
|
2711
2736
|
else {
|
|
2712
|
-
const
|
|
2713
|
-
Array.from(
|
|
2714
|
-
|
|
2715
|
-
}),
|
|
2737
|
+
const u = {};
|
|
2738
|
+
Array.from(W).forEach(({ value: p, key: E }) => {
|
|
2739
|
+
Be(u, E, p);
|
|
2740
|
+
}), C = JSON.stringify(u);
|
|
2716
2741
|
}
|
|
2717
|
-
|
|
2718
|
-
const
|
|
2719
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2742
|
+
m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (R["content-type"] = m));
|
|
2743
|
+
const y = new CustomEvent("presubmit", { detail: { body: C } });
|
|
2744
|
+
if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
|
|
2720
2745
|
return;
|
|
2721
2746
|
i("sending");
|
|
2722
|
-
const
|
|
2747
|
+
const I = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2723
2748
|
e.sendSubmissionsToEmail || ""
|
|
2724
2749
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2725
2750
|
fetch(
|
|
2726
|
-
e.sendSubmissionsTo === "email" ?
|
|
2727
|
-
{ body:
|
|
2751
|
+
e.sendSubmissionsTo === "email" ? I : e.action,
|
|
2752
|
+
{ body: C, headers: R, method: e.method || "post" }
|
|
2728
2753
|
).then(
|
|
2729
|
-
async (
|
|
2730
|
-
let
|
|
2731
|
-
const
|
|
2732
|
-
if (
|
|
2733
|
-
let
|
|
2734
|
-
|
|
2754
|
+
async (u) => {
|
|
2755
|
+
let p;
|
|
2756
|
+
const E = u.headers.get("content-type");
|
|
2757
|
+
if (E && E.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2758
|
+
let B = fn(p, e.errorMessagePath);
|
|
2759
|
+
B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
|
|
2735
2760
|
}
|
|
2736
|
-
if (a(
|
|
2737
|
-
const
|
|
2738
|
-
detail: { res:
|
|
2761
|
+
if (a(p), i(u.ok ? "success" : "error"), u.ok) {
|
|
2762
|
+
const B = new CustomEvent("submit:success", {
|
|
2763
|
+
detail: { res: u, body: p }
|
|
2739
2764
|
});
|
|
2740
2765
|
if (t.current) {
|
|
2741
|
-
if (t.current.dispatchEvent(
|
|
2766
|
+
if (t.current.dispatchEvent(B), B.defaultPrevented)
|
|
2742
2767
|
return;
|
|
2743
2768
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2744
2769
|
}
|
|
2745
2770
|
if (e.successUrl)
|
|
2746
2771
|
if (t.current) {
|
|
2747
|
-
const
|
|
2772
|
+
const A = new CustomEvent("route", {
|
|
2748
2773
|
detail: { url: e.successUrl }
|
|
2749
2774
|
});
|
|
2750
|
-
t.current.dispatchEvent(
|
|
2775
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
2751
2776
|
} else
|
|
2752
2777
|
location.href = e.successUrl;
|
|
2753
2778
|
}
|
|
2754
2779
|
},
|
|
2755
|
-
(
|
|
2756
|
-
const
|
|
2757
|
-
detail: { error:
|
|
2780
|
+
(u) => {
|
|
2781
|
+
const p = new CustomEvent("submit:error", {
|
|
2782
|
+
detail: { error: u }
|
|
2758
2783
|
});
|
|
2759
|
-
t.current && (t.current.dispatchEvent(
|
|
2784
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(u), i("error"));
|
|
2760
2785
|
}
|
|
2761
2786
|
);
|
|
2762
2787
|
}
|
|
2763
2788
|
}
|
|
2764
|
-
return /* @__PURE__ */ V(
|
|
2789
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
2765
2790
|
" ",
|
|
2766
2791
|
/* @__PURE__ */ V(
|
|
2767
2792
|
"form",
|
|
@@ -2771,21 +2796,21 @@ function pn(e) {
|
|
|
2771
2796
|
action: !e.sendWithJs && e.action,
|
|
2772
2797
|
method: e.method,
|
|
2773
2798
|
name: e.name,
|
|
2774
|
-
onSubmit: (
|
|
2799
|
+
onSubmit: (v) => f(v),
|
|
2775
2800
|
...e.attributes,
|
|
2776
2801
|
children: [
|
|
2777
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2778
|
-
|
|
2802
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (h = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : h.map((v, g) => /* @__PURE__ */ l(
|
|
2803
|
+
K,
|
|
2779
2804
|
{
|
|
2780
|
-
block:
|
|
2805
|
+
block: v,
|
|
2781
2806
|
context: e.builderContext,
|
|
2782
2807
|
registeredComponents: e.builderComponents,
|
|
2783
2808
|
linkComponent: e.builderLinkComponent
|
|
2784
2809
|
},
|
|
2785
|
-
`form-block-${
|
|
2810
|
+
`form-block-${g}`
|
|
2786
2811
|
)) }) : null,
|
|
2787
2812
|
c() === "error" ? /* @__PURE__ */ l(
|
|
2788
|
-
|
|
2813
|
+
F,
|
|
2789
2814
|
{
|
|
2790
2815
|
path: "errorMessage",
|
|
2791
2816
|
blocks: e.errorMessage,
|
|
@@ -2793,7 +2818,7 @@ function pn(e) {
|
|
|
2793
2818
|
}
|
|
2794
2819
|
) : null,
|
|
2795
2820
|
c() === "sending" ? /* @__PURE__ */ l(
|
|
2796
|
-
|
|
2821
|
+
F,
|
|
2797
2822
|
{
|
|
2798
2823
|
path: "sendingMessage",
|
|
2799
2824
|
blocks: e.sendingMessage,
|
|
@@ -2802,7 +2827,7 @@ function pn(e) {
|
|
|
2802
2827
|
) : null,
|
|
2803
2828
|
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2804
2829
|
c() === "success" ? /* @__PURE__ */ l(
|
|
2805
|
-
|
|
2830
|
+
F,
|
|
2806
2831
|
{
|
|
2807
2832
|
path: "successMessage",
|
|
2808
2833
|
blocks: e.successMessage,
|
|
@@ -2817,7 +2842,7 @@ function pn(e) {
|
|
|
2817
2842
|
" "
|
|
2818
2843
|
] });
|
|
2819
2844
|
}
|
|
2820
|
-
const
|
|
2845
|
+
const gn = {
|
|
2821
2846
|
name: "Form:Input",
|
|
2822
2847
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2823
2848
|
inputs: [
|
|
@@ -2869,12 +2894,12 @@ const yn = {
|
|
|
2869
2894
|
borderColor: "#ccc"
|
|
2870
2895
|
}
|
|
2871
2896
|
};
|
|
2872
|
-
function
|
|
2873
|
-
return /* @__PURE__ */
|
|
2897
|
+
function bn(e) {
|
|
2898
|
+
return /* @__PURE__ */ we(
|
|
2874
2899
|
"input",
|
|
2875
2900
|
{
|
|
2876
2901
|
...e.attributes,
|
|
2877
|
-
key:
|
|
2902
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2878
2903
|
placeholder: e.placeholder,
|
|
2879
2904
|
type: e.type,
|
|
2880
2905
|
name: e.name,
|
|
@@ -2884,7 +2909,7 @@ function xn(e) {
|
|
|
2884
2909
|
}
|
|
2885
2910
|
);
|
|
2886
2911
|
}
|
|
2887
|
-
const
|
|
2912
|
+
const pn = {
|
|
2888
2913
|
name: "Form:Select",
|
|
2889
2914
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2890
2915
|
defaultStyles: {
|
|
@@ -2927,14 +2952,14 @@ const vn = {
|
|
|
2927
2952
|
static: !0,
|
|
2928
2953
|
noWrap: !0
|
|
2929
2954
|
};
|
|
2930
|
-
function
|
|
2955
|
+
function yn(e) {
|
|
2931
2956
|
var t;
|
|
2932
|
-
return /* @__PURE__ */
|
|
2957
|
+
return /* @__PURE__ */ we(
|
|
2933
2958
|
"select",
|
|
2934
2959
|
{
|
|
2935
2960
|
...e.attributes,
|
|
2936
2961
|
value: e.value,
|
|
2937
|
-
key:
|
|
2962
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2938
2963
|
defaultValue: e.defaultValue,
|
|
2939
2964
|
name: e.name,
|
|
2940
2965
|
required: e.required
|
|
@@ -2942,7 +2967,7 @@ function Sn(e) {
|
|
|
2942
2967
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2943
2968
|
);
|
|
2944
2969
|
}
|
|
2945
|
-
const
|
|
2970
|
+
const xn = {
|
|
2946
2971
|
name: "Form:SubmitButton",
|
|
2947
2972
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2948
2973
|
defaultStyles: {
|
|
@@ -2968,10 +2993,10 @@ const kn = {
|
|
|
2968
2993
|
// TODO: defaultChildren
|
|
2969
2994
|
// canHaveChildren: true,
|
|
2970
2995
|
};
|
|
2971
|
-
function
|
|
2996
|
+
function vn(e) {
|
|
2972
2997
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2973
2998
|
}
|
|
2974
|
-
const
|
|
2999
|
+
const Sn = {
|
|
2975
3000
|
name: "Form:TextArea",
|
|
2976
3001
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2977
3002
|
inputs: [{
|
|
@@ -3008,7 +3033,7 @@ const Tn = {
|
|
|
3008
3033
|
static: !0,
|
|
3009
3034
|
noWrap: !0
|
|
3010
3035
|
};
|
|
3011
|
-
function
|
|
3036
|
+
function kn(e) {
|
|
3012
3037
|
return /* @__PURE__ */ l(
|
|
3013
3038
|
"textarea",
|
|
3014
3039
|
{
|
|
@@ -3021,7 +3046,7 @@ function In(e) {
|
|
|
3021
3046
|
}
|
|
3022
3047
|
);
|
|
3023
3048
|
}
|
|
3024
|
-
const
|
|
3049
|
+
const Cn = {
|
|
3025
3050
|
// friendlyName?
|
|
3026
3051
|
name: "Raw:Img",
|
|
3027
3052
|
hideFromInsertMenu: !0,
|
|
@@ -3036,7 +3061,7 @@ const wn = {
|
|
|
3036
3061
|
noWrap: !0,
|
|
3037
3062
|
static: !0
|
|
3038
3063
|
};
|
|
3039
|
-
function
|
|
3064
|
+
function Tn(e) {
|
|
3040
3065
|
return /* @__PURE__ */ l(
|
|
3041
3066
|
"img",
|
|
3042
3067
|
{
|
|
@@ -3048,10 +3073,10 @@ function Rn(e) {
|
|
|
3048
3073
|
src: e.imgSrc || e.image,
|
|
3049
3074
|
...e.attributes
|
|
3050
3075
|
},
|
|
3051
|
-
|
|
3076
|
+
N() && e.imgSrc || "default-key"
|
|
3052
3077
|
);
|
|
3053
3078
|
}
|
|
3054
|
-
const
|
|
3079
|
+
const In = {
|
|
3055
3080
|
name: "Video",
|
|
3056
3081
|
canHaveChildren: !0,
|
|
3057
3082
|
defaultStyles: {
|
|
@@ -3136,7 +3161,7 @@ const En = {
|
|
|
3136
3161
|
builderBlock: !0
|
|
3137
3162
|
}
|
|
3138
3163
|
};
|
|
3139
|
-
function
|
|
3164
|
+
function wn(e) {
|
|
3140
3165
|
var i, o, a, r, s, d, c;
|
|
3141
3166
|
function t() {
|
|
3142
3167
|
return {
|
|
@@ -3237,64 +3262,64 @@ function Bn(e) {
|
|
|
3237
3262
|
}
|
|
3238
3263
|
);
|
|
3239
3264
|
}
|
|
3240
|
-
const
|
|
3241
|
-
component:
|
|
3242
|
-
...
|
|
3265
|
+
const En = () => [{
|
|
3266
|
+
component: an,
|
|
3267
|
+
...on
|
|
3268
|
+
}, {
|
|
3269
|
+
component: cn,
|
|
3270
|
+
...rn
|
|
3243
3271
|
}, {
|
|
3244
|
-
component:
|
|
3245
|
-
...
|
|
3272
|
+
component: hn,
|
|
3273
|
+
...dn
|
|
3246
3274
|
}, {
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3275
|
+
component: bn,
|
|
3276
|
+
...gn
|
|
3249
3277
|
}, {
|
|
3250
|
-
component:
|
|
3251
|
-
...
|
|
3278
|
+
component: vn,
|
|
3279
|
+
...xn
|
|
3252
3280
|
}, {
|
|
3253
|
-
component:
|
|
3254
|
-
...
|
|
3281
|
+
component: yn,
|
|
3282
|
+
...pn
|
|
3255
3283
|
}, {
|
|
3256
|
-
component:
|
|
3257
|
-
...
|
|
3284
|
+
component: kn,
|
|
3285
|
+
...Sn
|
|
3258
3286
|
}, {
|
|
3259
|
-
component:
|
|
3260
|
-
...
|
|
3287
|
+
component: Tn,
|
|
3288
|
+
...Cn
|
|
3261
3289
|
}, {
|
|
3262
|
-
component:
|
|
3263
|
-
...
|
|
3290
|
+
component: wn,
|
|
3291
|
+
...In
|
|
3292
|
+
}], xe = () => [{
|
|
3293
|
+
component: Xe,
|
|
3294
|
+
...qt
|
|
3264
3295
|
}, {
|
|
3265
|
-
component:
|
|
3266
|
-
...
|
|
3267
|
-
}
|
|
3268
|
-
component:
|
|
3296
|
+
component: Dt,
|
|
3297
|
+
..._t
|
|
3298
|
+
}, {
|
|
3299
|
+
component: Lt,
|
|
3300
|
+
...zt
|
|
3301
|
+
}, {
|
|
3302
|
+
component: Mt,
|
|
3269
3303
|
...Jt
|
|
3270
3304
|
}, {
|
|
3271
|
-
component:
|
|
3305
|
+
component: jt,
|
|
3272
3306
|
...Yt
|
|
3273
3307
|
}, {
|
|
3274
|
-
component:
|
|
3308
|
+
component: Qt,
|
|
3275
3309
|
...Gt
|
|
3276
3310
|
}, {
|
|
3277
|
-
component:
|
|
3278
|
-
...Qt
|
|
3279
|
-
}, {
|
|
3280
|
-
component: qt,
|
|
3311
|
+
component: Gn,
|
|
3281
3312
|
...Xt
|
|
3282
3313
|
}, {
|
|
3283
|
-
component:
|
|
3284
|
-
...Zt
|
|
3285
|
-
}, {
|
|
3286
|
-
component: Zn,
|
|
3314
|
+
component: nn,
|
|
3287
3315
|
...tn
|
|
3288
3316
|
}, {
|
|
3289
|
-
component:
|
|
3290
|
-
...
|
|
3291
|
-
}, {
|
|
3292
|
-
component: on,
|
|
3293
|
-
...nn
|
|
3317
|
+
component: en,
|
|
3318
|
+
...Zt
|
|
3294
3319
|
}, {
|
|
3295
|
-
component:
|
|
3296
|
-
...
|
|
3297
|
-
}, ...
|
|
3320
|
+
component: Kt,
|
|
3321
|
+
...Ht
|
|
3322
|
+
}, ...En()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3298
3323
|
function getAndSetVariantId() {
|
|
3299
3324
|
function setCookie(name, value, days) {
|
|
3300
3325
|
let expires = '';
|
|
@@ -3350,7 +3375,7 @@ const Pn = () => [{
|
|
|
3350
3375
|
}).join('');
|
|
3351
3376
|
styleEl.innerHTML = newStyleStr;
|
|
3352
3377
|
}
|
|
3353
|
-
}`,
|
|
3378
|
+
}`, Bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3354
3379
|
if (!navigator.cookieEnabled) {
|
|
3355
3380
|
return;
|
|
3356
3381
|
}
|
|
@@ -3384,26 +3409,26 @@ const Pn = () => [{
|
|
|
3384
3409
|
thisScriptEl?.remove();
|
|
3385
3410
|
}
|
|
3386
3411
|
return;
|
|
3387
|
-
}`,
|
|
3412
|
+
}`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3388
3413
|
...t,
|
|
3389
3414
|
testVariationId: t.id,
|
|
3390
3415
|
id: e == null ? void 0 : e.id
|
|
3391
|
-
})),
|
|
3416
|
+
})), Pn = ({
|
|
3392
3417
|
canTrack: e,
|
|
3393
3418
|
content: t
|
|
3394
|
-
}) => !(!(
|
|
3395
|
-
window.${
|
|
3396
|
-
window.${
|
|
3397
|
-
`,
|
|
3398
|
-
window.${
|
|
3399
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3400
|
-
)`,
|
|
3419
|
+
}) => !(!(_(t).length > 0) || !e || U()), Vn = (e) => e === "react" || e === "reactNative", Ue = Vn(L), An = () => `
|
|
3420
|
+
window.${Le} = ${Rn}
|
|
3421
|
+
window.${Oe} = ${Bn}
|
|
3422
|
+
`, Wn = (e, t) => `
|
|
3423
|
+
window.${Le}(
|
|
3424
|
+
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3425
|
+
)`, Nn = ({
|
|
3401
3426
|
contentId: e,
|
|
3402
3427
|
variationId: t
|
|
3403
|
-
}) => `window.${
|
|
3404
|
-
"${t}", "${e}", ${
|
|
3428
|
+
}) => `window.${Oe}(
|
|
3429
|
+
"${t}", "${e}", ${Ue}
|
|
3405
3430
|
)`;
|
|
3406
|
-
function
|
|
3431
|
+
function ae(e) {
|
|
3407
3432
|
return /* @__PURE__ */ l(
|
|
3408
3433
|
"script",
|
|
3409
3434
|
{
|
|
@@ -3413,10 +3438,10 @@ function se(e) {
|
|
|
3413
3438
|
}
|
|
3414
3439
|
);
|
|
3415
3440
|
}
|
|
3416
|
-
function
|
|
3441
|
+
function ve(e) {
|
|
3417
3442
|
return Math.round(e * 1e3) / 1e3;
|
|
3418
3443
|
}
|
|
3419
|
-
const
|
|
3444
|
+
const Fn = (e, t, n = !0) => {
|
|
3420
3445
|
if (!(e instanceof HTMLElement))
|
|
3421
3446
|
return null;
|
|
3422
3447
|
let i = n ? e : e.parentElement;
|
|
@@ -3427,35 +3452,35 @@ const Ln = (e, t, n = !0) => {
|
|
|
3427
3452
|
return i;
|
|
3428
3453
|
} while (i = i.parentElement);
|
|
3429
3454
|
return null;
|
|
3430
|
-
},
|
|
3455
|
+
}, $n = (e) => Fn(e, (t) => {
|
|
3431
3456
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3432
3457
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3433
|
-
}),
|
|
3458
|
+
}), Se = ({
|
|
3434
3459
|
event: e,
|
|
3435
3460
|
target: t
|
|
3436
3461
|
}) => {
|
|
3437
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3462
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
|
|
3438
3463
|
return {
|
|
3439
3464
|
x: a,
|
|
3440
3465
|
y: r
|
|
3441
3466
|
};
|
|
3442
|
-
},
|
|
3443
|
-
const t = e.target, n = t &&
|
|
3467
|
+
}, Dn = (e) => {
|
|
3468
|
+
const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3444
3469
|
return {
|
|
3445
3470
|
targetBuilderElement: i || void 0,
|
|
3446
3471
|
metadata: {
|
|
3447
|
-
targetOffset: t ?
|
|
3472
|
+
targetOffset: t ? Se({
|
|
3448
3473
|
event: e,
|
|
3449
3474
|
target: t
|
|
3450
3475
|
}) : void 0,
|
|
3451
|
-
builderTargetOffset: n ?
|
|
3476
|
+
builderTargetOffset: n ? Se({
|
|
3452
3477
|
event: e,
|
|
3453
3478
|
target: n
|
|
3454
3479
|
}) : void 0,
|
|
3455
3480
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3456
3481
|
}
|
|
3457
3482
|
};
|
|
3458
|
-
},
|
|
3483
|
+
}, Ln = (e) => {
|
|
3459
3484
|
var a, r;
|
|
3460
3485
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3461
3486
|
let o = "";
|
|
@@ -3481,15 +3506,15 @@ font-weight: ${s};
|
|
|
3481
3506
|
`.trim());
|
|
3482
3507
|
}
|
|
3483
3508
|
return o;
|
|
3484
|
-
},
|
|
3509
|
+
}, On = ({
|
|
3485
3510
|
customFonts: e
|
|
3486
3511
|
}) => {
|
|
3487
3512
|
var t;
|
|
3488
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3489
|
-
},
|
|
3513
|
+
return ((t = e == null ? void 0 : e.map((n) => Ln(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3514
|
+
}, Un = ({
|
|
3490
3515
|
cssCode: e,
|
|
3491
3516
|
contentId: t
|
|
3492
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3517
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Mn = `
|
|
3493
3518
|
.builder-button {
|
|
3494
3519
|
all: unset;
|
|
3495
3520
|
}
|
|
@@ -3506,39 +3531,39 @@ font-weight: ${s};
|
|
|
3506
3531
|
text-align: inherit;
|
|
3507
3532
|
font-family: inherit;
|
|
3508
3533
|
}
|
|
3509
|
-
`,
|
|
3510
|
-
function
|
|
3511
|
-
var
|
|
3512
|
-
const t =
|
|
3513
|
-
function n(
|
|
3514
|
-
var
|
|
3515
|
-
const
|
|
3534
|
+
`, jn = (e) => e ? "" : Mn, Hn = (e) => `variant-${e}`;
|
|
3535
|
+
function Kn(e) {
|
|
3536
|
+
var C, k, W;
|
|
3537
|
+
const t = D(null);
|
|
3538
|
+
function n(m) {
|
|
3539
|
+
var I, u;
|
|
3540
|
+
const y = {
|
|
3516
3541
|
...e.builderContextSignal.rootState,
|
|
3517
|
-
...
|
|
3542
|
+
...m
|
|
3518
3543
|
};
|
|
3519
|
-
e.builderContextSignal.rootSetState ? (
|
|
3520
|
-
...
|
|
3521
|
-
rootState:
|
|
3544
|
+
e.builderContextSignal.rootSetState ? (u = (I = e.builderContextSignal).rootSetState) == null || u.call(I, y) : e.setBuilderContextSignal((p) => ({
|
|
3545
|
+
...p,
|
|
3546
|
+
rootState: y
|
|
3522
3547
|
}));
|
|
3523
3548
|
}
|
|
3524
|
-
function i(
|
|
3525
|
-
var
|
|
3526
|
-
const
|
|
3549
|
+
function i(m) {
|
|
3550
|
+
var I, u, p, E, B;
|
|
3551
|
+
const y = {
|
|
3527
3552
|
...e.builderContextSignal.content,
|
|
3528
|
-
...
|
|
3553
|
+
...m,
|
|
3529
3554
|
data: {
|
|
3530
|
-
...(
|
|
3531
|
-
...
|
|
3555
|
+
...(I = e.builderContextSignal.content) == null ? void 0 : I.data,
|
|
3556
|
+
...m == null ? void 0 : m.data
|
|
3532
3557
|
},
|
|
3533
3558
|
meta: {
|
|
3534
|
-
...(
|
|
3535
|
-
...
|
|
3536
|
-
breakpoints: ((
|
|
3559
|
+
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3560
|
+
...m == null ? void 0 : m.meta,
|
|
3561
|
+
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : B.breakpoints)
|
|
3537
3562
|
}
|
|
3538
3563
|
};
|
|
3539
|
-
e.setBuilderContextSignal((
|
|
3540
|
-
...
|
|
3541
|
-
content:
|
|
3564
|
+
e.setBuilderContextSignal((A) => ({
|
|
3565
|
+
...A,
|
|
3566
|
+
content: y
|
|
3542
3567
|
}));
|
|
3543
3568
|
}
|
|
3544
3569
|
function o() {
|
|
@@ -3550,73 +3575,58 @@ function zn(e) {
|
|
|
3550
3575
|
const [a, r] = T(
|
|
3551
3576
|
() => e.contentWrapper || "div"
|
|
3552
3577
|
);
|
|
3553
|
-
function s(
|
|
3554
|
-
return
|
|
3578
|
+
function s(m) {
|
|
3579
|
+
return Je({
|
|
3555
3580
|
model: e.model,
|
|
3556
3581
|
trustedHosts: e.trustedHosts,
|
|
3557
3582
|
callbacks: {
|
|
3558
|
-
configureSdk: (
|
|
3559
|
-
var
|
|
3560
|
-
const { breakpoints:
|
|
3561
|
-
!
|
|
3583
|
+
configureSdk: (y) => {
|
|
3584
|
+
var p;
|
|
3585
|
+
const { breakpoints: I, contentId: u } = y;
|
|
3586
|
+
!u || u !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || I && i({
|
|
3562
3587
|
meta: {
|
|
3563
|
-
breakpoints:
|
|
3588
|
+
breakpoints: I
|
|
3564
3589
|
}
|
|
3565
3590
|
});
|
|
3566
3591
|
},
|
|
3567
|
-
animation: (
|
|
3568
|
-
|
|
3592
|
+
animation: (y) => {
|
|
3593
|
+
Ae(y);
|
|
3569
3594
|
},
|
|
3570
|
-
contentUpdate: (
|
|
3571
|
-
i(
|
|
3595
|
+
contentUpdate: (y) => {
|
|
3596
|
+
i(y);
|
|
3572
3597
|
}
|
|
3573
3598
|
}
|
|
3574
|
-
})(
|
|
3575
|
-
}
|
|
3576
|
-
function d() {
|
|
3577
|
-
var S, k;
|
|
3578
|
-
const b = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
|
|
3579
|
-
b && K({
|
|
3580
|
-
code: b,
|
|
3581
|
-
context: e.context || {},
|
|
3582
|
-
localState: void 0,
|
|
3583
|
-
rootState: e.builderContextSignal.rootState,
|
|
3584
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
3585
|
-
/**
|
|
3586
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3587
|
-
*/
|
|
3588
|
-
enableCache: !1
|
|
3589
|
-
});
|
|
3599
|
+
})(m);
|
|
3590
3600
|
}
|
|
3591
|
-
const [
|
|
3592
|
-
function
|
|
3593
|
-
var
|
|
3601
|
+
const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
|
|
3602
|
+
function g(m) {
|
|
3603
|
+
var y, I;
|
|
3594
3604
|
if (e.builderContextSignal.content) {
|
|
3595
|
-
const
|
|
3596
|
-
|
|
3605
|
+
const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
|
|
3606
|
+
de({
|
|
3597
3607
|
type: "click",
|
|
3598
|
-
canTrack:
|
|
3599
|
-
contentId:
|
|
3608
|
+
canTrack: J(e.canTrack),
|
|
3609
|
+
contentId: p,
|
|
3600
3610
|
apiKey: e.apiKey,
|
|
3601
|
-
variationId:
|
|
3602
|
-
...
|
|
3603
|
-
unique: !
|
|
3611
|
+
variationId: u !== p ? u : void 0,
|
|
3612
|
+
...Dn(m),
|
|
3613
|
+
unique: !h
|
|
3604
3614
|
});
|
|
3605
3615
|
}
|
|
3606
|
-
|
|
3616
|
+
h || v(!0);
|
|
3607
3617
|
}
|
|
3608
|
-
function
|
|
3609
|
-
var
|
|
3610
|
-
const
|
|
3611
|
-
Object.entries(
|
|
3612
|
-
if (!
|
|
3618
|
+
function S() {
|
|
3619
|
+
var y, I, u;
|
|
3620
|
+
const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
|
|
3621
|
+
Object.entries(m).forEach(([p, E]) => {
|
|
3622
|
+
if (!E || f[p] || d[p] && !N())
|
|
3613
3623
|
return;
|
|
3614
|
-
|
|
3615
|
-
const
|
|
3624
|
+
f[p] = !0;
|
|
3625
|
+
const B = E.replace(
|
|
3616
3626
|
/{{([^}]+)}}/g,
|
|
3617
|
-
(
|
|
3618
|
-
|
|
3619
|
-
code:
|
|
3627
|
+
(A, Me) => String(
|
|
3628
|
+
M({
|
|
3629
|
+
code: Me,
|
|
3620
3630
|
context: e.context || {},
|
|
3621
3631
|
localState: void 0,
|
|
3622
3632
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3625,24 +3635,24 @@ function zn(e) {
|
|
|
3625
3635
|
})
|
|
3626
3636
|
)
|
|
3627
3637
|
);
|
|
3628
|
-
|
|
3638
|
+
fetch(B).then((A) => A.json()).then((A) => {
|
|
3629
3639
|
n({
|
|
3630
|
-
[
|
|
3631
|
-
}),
|
|
3632
|
-
}).catch((
|
|
3633
|
-
console.error("error fetching dynamic data",
|
|
3640
|
+
[p]: A
|
|
3641
|
+
}), d[p] = !0;
|
|
3642
|
+
}).catch((A) => {
|
|
3643
|
+
console.error("error fetching dynamic data", E, A);
|
|
3634
3644
|
}).finally(() => {
|
|
3635
|
-
|
|
3645
|
+
f[p] = !1;
|
|
3636
3646
|
});
|
|
3637
3647
|
});
|
|
3638
3648
|
}
|
|
3639
|
-
function
|
|
3640
|
-
|
|
3649
|
+
function x() {
|
|
3650
|
+
N() && window.dispatchEvent(
|
|
3641
3651
|
new CustomEvent(
|
|
3642
3652
|
"builder:component:stateChange",
|
|
3643
3653
|
{
|
|
3644
3654
|
detail: {
|
|
3645
|
-
state:
|
|
3655
|
+
state: se(e.builderContextSignal.rootState),
|
|
3646
3656
|
ref: {
|
|
3647
3657
|
name: e.model
|
|
3648
3658
|
}
|
|
@@ -3651,10 +3661,11 @@ function zn(e) {
|
|
|
3651
3661
|
)
|
|
3652
3662
|
);
|
|
3653
3663
|
}
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3664
|
+
const R = D(!1);
|
|
3665
|
+
return R.current || (S(), x(), R.current = !0), P(() => {
|
|
3666
|
+
var m, y;
|
|
3667
|
+
if (U()) {
|
|
3668
|
+
if (N() && (window.addEventListener("message", s), qe(), _e({
|
|
3658
3669
|
...e.locale ? {
|
|
3659
3670
|
locale: e.locale
|
|
3660
3671
|
} : {},
|
|
@@ -3666,48 +3677,40 @@ function zn(e) {
|
|
|
3666
3677
|
} : {}
|
|
3667
3678
|
}), Object.values(
|
|
3668
3679
|
e.builderContextSignal.componentInfos
|
|
3669
|
-
).forEach((
|
|
3670
|
-
var
|
|
3671
|
-
const
|
|
3672
|
-
(
|
|
3680
|
+
).forEach((u) => {
|
|
3681
|
+
var E;
|
|
3682
|
+
const p = ze(u);
|
|
3683
|
+
(E = window.parent) == null || E.postMessage(p, "*");
|
|
3673
3684
|
}), window.addEventListener(
|
|
3674
3685
|
"builder:component:stateChangeListenerActivated",
|
|
3675
|
-
|
|
3676
|
-
)), e.builderContextSignal.content &&
|
|
3677
|
-
const
|
|
3678
|
-
|
|
3686
|
+
x
|
|
3687
|
+
)), e.builderContextSignal.content && J(e.canTrack)) {
|
|
3688
|
+
const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, E = e.apiKey;
|
|
3689
|
+
de({
|
|
3679
3690
|
type: "impression",
|
|
3680
3691
|
canTrack: !0,
|
|
3681
|
-
contentId:
|
|
3682
|
-
apiKey:
|
|
3683
|
-
variationId:
|
|
3692
|
+
contentId: p,
|
|
3693
|
+
apiKey: E,
|
|
3694
|
+
variationId: u !== p ? u : void 0
|
|
3684
3695
|
});
|
|
3685
3696
|
}
|
|
3686
|
-
if (
|
|
3687
|
-
const
|
|
3688
|
-
`builder.overrides.${
|
|
3689
|
-
),
|
|
3690
|
-
|
|
3697
|
+
if (Ce() && !N()) {
|
|
3698
|
+
const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
|
|
3699
|
+
`builder.overrides.${p}`
|
|
3700
|
+
), B = u.get("apiKey") || u.get("builder.space");
|
|
3701
|
+
p === e.model && B === e.apiKey && (!e.content || E === e.content.id) && Te({
|
|
3691
3702
|
model: e.model,
|
|
3692
3703
|
apiKey: e.apiKey,
|
|
3693
3704
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3694
|
-
}).then((
|
|
3695
|
-
|
|
3705
|
+
}).then((A) => {
|
|
3706
|
+
A && i(A);
|
|
3696
3707
|
});
|
|
3697
3708
|
}
|
|
3698
3709
|
}
|
|
3699
|
-
}, []), P(() => {
|
|
3700
|
-
e.apiKey || ce.error(
|
|
3701
|
-
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3702
|
-
), d(), f(), w();
|
|
3703
3710
|
}, []), P(() => {
|
|
3704
3711
|
e.content && i(e.content);
|
|
3705
3712
|
}, [e.content]), P(() => {
|
|
3706
|
-
|
|
3707
|
-
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3708
|
-
f();
|
|
3709
|
-
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3710
|
-
w();
|
|
3713
|
+
x();
|
|
3711
3714
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3712
3715
|
e.data && n(e.data);
|
|
3713
3716
|
}, [e.data]), P(() => {
|
|
@@ -3715,41 +3718,41 @@ function zn(e) {
|
|
|
3715
3718
|
locale: e.locale
|
|
3716
3719
|
});
|
|
3717
3720
|
}, [e.locale]), P(() => () => {
|
|
3718
|
-
|
|
3721
|
+
U() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3719
3722
|
"builder:component:stateChangeListenerActivated",
|
|
3720
|
-
|
|
3723
|
+
x
|
|
3721
3724
|
));
|
|
3722
|
-
}, []), /* @__PURE__ */ l(
|
|
3725
|
+
}, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3723
3726
|
a,
|
|
3724
3727
|
{
|
|
3725
3728
|
ref: t,
|
|
3726
|
-
onClick: (
|
|
3727
|
-
"builder-content-id": (
|
|
3729
|
+
onClick: (m) => g(m),
|
|
3730
|
+
"builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
|
|
3728
3731
|
"builder-model": e.model,
|
|
3732
|
+
className: Hn(
|
|
3733
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
|
|
3734
|
+
),
|
|
3729
3735
|
...o(),
|
|
3730
3736
|
...e.contentWrapperProps,
|
|
3731
|
-
className: _n(
|
|
3732
|
-
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3733
|
-
),
|
|
3734
3737
|
children: e.children
|
|
3735
3738
|
}
|
|
3736
3739
|
) : null });
|
|
3737
3740
|
}
|
|
3738
|
-
function
|
|
3741
|
+
function qn(e) {
|
|
3739
3742
|
const [t, n] = T(
|
|
3740
3743
|
() => `
|
|
3741
|
-
${
|
|
3744
|
+
${Un({
|
|
3742
3745
|
cssCode: e.cssCode,
|
|
3743
3746
|
contentId: e.contentId
|
|
3744
3747
|
})}
|
|
3745
|
-
${
|
|
3748
|
+
${On({
|
|
3746
3749
|
customFonts: e.customFonts
|
|
3747
3750
|
})}
|
|
3748
|
-
${
|
|
3751
|
+
${jn(e.isNestedRender)}
|
|
3749
3752
|
`.trim()
|
|
3750
3753
|
);
|
|
3751
3754
|
return /* @__PURE__ */ l(
|
|
3752
|
-
|
|
3755
|
+
Q,
|
|
3753
3756
|
{
|
|
3754
3757
|
id: "builderio-content",
|
|
3755
3758
|
styles: t,
|
|
@@ -3757,7 +3760,7 @@ ${qn(e.isNestedRender)}
|
|
|
3757
3760
|
}
|
|
3758
3761
|
);
|
|
3759
3762
|
}
|
|
3760
|
-
const
|
|
3763
|
+
const _n = ({
|
|
3761
3764
|
content: e,
|
|
3762
3765
|
data: t,
|
|
3763
3766
|
locale: n
|
|
@@ -3774,7 +3777,7 @@ const Yn = ({
|
|
|
3774
3777
|
locale: n
|
|
3775
3778
|
} : {}
|
|
3776
3779
|
};
|
|
3777
|
-
},
|
|
3780
|
+
}, zn = ({
|
|
3778
3781
|
content: e,
|
|
3779
3782
|
data: t
|
|
3780
3783
|
}) => e ? {
|
|
@@ -3785,51 +3788,51 @@ const Yn = ({
|
|
|
3785
3788
|
},
|
|
3786
3789
|
meta: e == null ? void 0 : e.meta
|
|
3787
3790
|
} : void 0;
|
|
3788
|
-
function
|
|
3789
|
-
var
|
|
3791
|
+
function ke(e) {
|
|
3792
|
+
var c, f, b, h, v, g, S, x, R;
|
|
3790
3793
|
const [t, n] = T(
|
|
3791
3794
|
() => {
|
|
3792
|
-
var
|
|
3793
|
-
return
|
|
3795
|
+
var C, k;
|
|
3796
|
+
return Nn({
|
|
3794
3797
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3795
|
-
variationId: (
|
|
3798
|
+
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3796
3799
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3797
|
-
contentId: (
|
|
3800
|
+
contentId: (k = e.content) == null ? void 0 : k.id
|
|
3798
3801
|
});
|
|
3799
3802
|
}
|
|
3800
3803
|
);
|
|
3801
|
-
function i(
|
|
3802
|
-
s((
|
|
3803
|
-
...
|
|
3804
|
-
rootState:
|
|
3804
|
+
function i(C) {
|
|
3805
|
+
s((k) => ({
|
|
3806
|
+
...k,
|
|
3807
|
+
rootState: C
|
|
3805
3808
|
}));
|
|
3806
3809
|
}
|
|
3807
3810
|
const [o, a] = T(
|
|
3808
3811
|
() => {
|
|
3809
|
-
var
|
|
3812
|
+
var C;
|
|
3810
3813
|
return [
|
|
3811
|
-
...
|
|
3812
|
-
...((
|
|
3814
|
+
...xe(),
|
|
3815
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3813
3816
|
].reduce(
|
|
3814
|
-
(
|
|
3815
|
-
...
|
|
3816
|
-
[
|
|
3817
|
-
component:
|
|
3818
|
-
...
|
|
3817
|
+
(k, { component: W, ...m }) => ({
|
|
3818
|
+
...k,
|
|
3819
|
+
[m.name]: {
|
|
3820
|
+
component: W,
|
|
3821
|
+
...ue(m)
|
|
3819
3822
|
}
|
|
3820
3823
|
}),
|
|
3821
3824
|
{}
|
|
3822
3825
|
);
|
|
3823
3826
|
}
|
|
3824
3827
|
), [r, s] = T(() => {
|
|
3825
|
-
var
|
|
3828
|
+
var C;
|
|
3826
3829
|
return {
|
|
3827
|
-
content:
|
|
3830
|
+
content: zn({
|
|
3828
3831
|
content: e.content,
|
|
3829
3832
|
data: e.data
|
|
3830
3833
|
}),
|
|
3831
3834
|
localState: void 0,
|
|
3832
|
-
rootState:
|
|
3835
|
+
rootState: _n({
|
|
3833
3836
|
content: e.content,
|
|
3834
3837
|
data: e.data,
|
|
3835
3838
|
locale: e.locale
|
|
@@ -3840,12 +3843,12 @@ function we(e) {
|
|
|
3840
3843
|
apiKey: e.apiKey,
|
|
3841
3844
|
apiVersion: e.apiVersion,
|
|
3842
3845
|
componentInfos: [
|
|
3843
|
-
...
|
|
3844
|
-
...((
|
|
3846
|
+
...xe(),
|
|
3847
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3845
3848
|
].reduce(
|
|
3846
|
-
(
|
|
3847
|
-
...
|
|
3848
|
-
[
|
|
3849
|
+
(k, { component: W, ...m }) => ({
|
|
3850
|
+
...k,
|
|
3851
|
+
[m.name]: ue(m)
|
|
3849
3852
|
}),
|
|
3850
3853
|
{}
|
|
3851
3854
|
),
|
|
@@ -3854,15 +3857,35 @@ function we(e) {
|
|
|
3854
3857
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3855
3858
|
nonce: e.nonce || ""
|
|
3856
3859
|
};
|
|
3857
|
-
});
|
|
3860
|
+
}), d = D(!1);
|
|
3861
|
+
if (!d.current) {
|
|
3862
|
+
e.apiKey || Y.error(
|
|
3863
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3864
|
+
);
|
|
3865
|
+
const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
|
|
3866
|
+
C && M({
|
|
3867
|
+
code: C,
|
|
3868
|
+
context: e.context || {},
|
|
3869
|
+
localState: void 0,
|
|
3870
|
+
rootState: r.rootState,
|
|
3871
|
+
rootSetState: (k) => {
|
|
3872
|
+
Object.assign(r.rootState, k);
|
|
3873
|
+
},
|
|
3874
|
+
isExpression: !1,
|
|
3875
|
+
/**
|
|
3876
|
+
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3877
|
+
*/
|
|
3878
|
+
enableCache: !1
|
|
3879
|
+
}), d.current = !0;
|
|
3880
|
+
}
|
|
3858
3881
|
return /* @__PURE__ */ l(
|
|
3859
|
-
|
|
3882
|
+
Ee.Provider,
|
|
3860
3883
|
{
|
|
3861
3884
|
value: {
|
|
3862
3885
|
registeredComponents: o
|
|
3863
3886
|
},
|
|
3864
3887
|
children: /* @__PURE__ */ V(
|
|
3865
|
-
|
|
3888
|
+
Kn,
|
|
3866
3889
|
{
|
|
3867
3890
|
nonce: e.nonce,
|
|
3868
3891
|
content: e.content,
|
|
@@ -3881,7 +3904,7 @@ function we(e) {
|
|
|
3881
3904
|
setBuilderContextSignal: s,
|
|
3882
3905
|
children: [
|
|
3883
3906
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3884
|
-
|
|
3907
|
+
ae,
|
|
3885
3908
|
{
|
|
3886
3909
|
id: "builderio-variant-visibility",
|
|
3887
3910
|
scriptStr: t,
|
|
@@ -3889,19 +3912,19 @@ function we(e) {
|
|
|
3889
3912
|
}
|
|
3890
3913
|
) : null,
|
|
3891
3914
|
/* @__PURE__ */ l(
|
|
3892
|
-
|
|
3915
|
+
qn,
|
|
3893
3916
|
{
|
|
3894
3917
|
nonce: e.nonce || "",
|
|
3895
3918
|
isNestedRender: e.isNestedRender,
|
|
3896
|
-
contentId: (
|
|
3897
|
-
cssCode: (
|
|
3898
|
-
customFonts: (
|
|
3919
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
3920
|
+
cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
|
|
3921
|
+
customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
|
|
3899
3922
|
}
|
|
3900
3923
|
),
|
|
3901
3924
|
/* @__PURE__ */ l(
|
|
3902
|
-
|
|
3925
|
+
F,
|
|
3903
3926
|
{
|
|
3904
|
-
blocks: (
|
|
3927
|
+
blocks: (R = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : R.blocks,
|
|
3905
3928
|
context: r,
|
|
3906
3929
|
registeredComponents: o,
|
|
3907
3930
|
linkComponent: e.linkComponent
|
|
@@ -3913,18 +3936,18 @@ function we(e) {
|
|
|
3913
3936
|
}
|
|
3914
3937
|
);
|
|
3915
3938
|
}
|
|
3916
|
-
function
|
|
3939
|
+
function Jn(e) {
|
|
3917
3940
|
var r;
|
|
3918
3941
|
const [t, n] = T(
|
|
3919
|
-
() =>
|
|
3920
|
-
canTrack:
|
|
3942
|
+
() => Pn({
|
|
3943
|
+
canTrack: J(e.canTrack),
|
|
3921
3944
|
content: e.content
|
|
3922
3945
|
})
|
|
3923
3946
|
);
|
|
3924
3947
|
function i() {
|
|
3925
3948
|
var s;
|
|
3926
|
-
return
|
|
3927
|
-
|
|
3949
|
+
return Wn(
|
|
3950
|
+
_(e.content).map((d) => ({
|
|
3928
3951
|
id: d.testVariationId,
|
|
3929
3952
|
testRatio: d.testRatio
|
|
3930
3953
|
})),
|
|
@@ -3932,31 +3955,31 @@ function Qn(e) {
|
|
|
3932
3955
|
);
|
|
3933
3956
|
}
|
|
3934
3957
|
function o() {
|
|
3935
|
-
return
|
|
3958
|
+
return _(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3936
3959
|
}
|
|
3937
3960
|
function a() {
|
|
3938
3961
|
var s;
|
|
3939
3962
|
return t ? {
|
|
3940
3963
|
...e.content,
|
|
3941
3964
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3942
|
-
} :
|
|
3965
|
+
} : Ye({
|
|
3943
3966
|
item: e.content,
|
|
3944
|
-
canTrack:
|
|
3967
|
+
canTrack: J(e.canTrack)
|
|
3945
3968
|
});
|
|
3946
3969
|
}
|
|
3947
3970
|
return P(() => {
|
|
3948
|
-
}, []), /* @__PURE__ */ V(
|
|
3949
|
-
!e.isNestedRender &&
|
|
3950
|
-
|
|
3971
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3972
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
|
|
3973
|
+
ae,
|
|
3951
3974
|
{
|
|
3952
3975
|
id: "builderio-init-variants-fns",
|
|
3953
|
-
scriptStr:
|
|
3976
|
+
scriptStr: An(),
|
|
3954
3977
|
nonce: e.nonce || ""
|
|
3955
3978
|
}
|
|
3956
3979
|
) : null,
|
|
3957
|
-
t ? /* @__PURE__ */ V(
|
|
3980
|
+
t ? /* @__PURE__ */ V(w, { children: [
|
|
3958
3981
|
/* @__PURE__ */ l(
|
|
3959
|
-
|
|
3982
|
+
Q,
|
|
3960
3983
|
{
|
|
3961
3984
|
id: "builderio-variants",
|
|
3962
3985
|
styles: o(),
|
|
@@ -3964,15 +3987,15 @@ function Qn(e) {
|
|
|
3964
3987
|
}
|
|
3965
3988
|
),
|
|
3966
3989
|
/* @__PURE__ */ l(
|
|
3967
|
-
|
|
3990
|
+
ae,
|
|
3968
3991
|
{
|
|
3969
3992
|
id: "builderio-variants-visibility",
|
|
3970
3993
|
scriptStr: i(),
|
|
3971
3994
|
nonce: e.nonce || ""
|
|
3972
3995
|
}
|
|
3973
3996
|
),
|
|
3974
|
-
(r =
|
|
3975
|
-
|
|
3997
|
+
(r = _(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3998
|
+
ke,
|
|
3976
3999
|
{
|
|
3977
4000
|
isNestedRender: e.isNestedRender,
|
|
3978
4001
|
nonce: e.nonce,
|
|
@@ -3999,7 +4022,7 @@ function Qn(e) {
|
|
|
3999
4022
|
))
|
|
4000
4023
|
] }) : null,
|
|
4001
4024
|
/* @__PURE__ */ l(
|
|
4002
|
-
|
|
4025
|
+
ke,
|
|
4003
4026
|
{
|
|
4004
4027
|
nonce: e.nonce,
|
|
4005
4028
|
isNestedRender: e.isNestedRender,
|
|
@@ -4025,13 +4048,13 @@ function Qn(e) {
|
|
|
4025
4048
|
)
|
|
4026
4049
|
] });
|
|
4027
4050
|
}
|
|
4028
|
-
const
|
|
4051
|
+
const Yn = async ({
|
|
4029
4052
|
builderContextValue: e,
|
|
4030
4053
|
symbol: t
|
|
4031
4054
|
}) => {
|
|
4032
4055
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4033
4056
|
(e != null && e.apiKey))
|
|
4034
|
-
return
|
|
4057
|
+
return Te({
|
|
4035
4058
|
model: t.model,
|
|
4036
4059
|
apiKey: e.apiKey,
|
|
4037
4060
|
apiVersion: e.apiVersion,
|
|
@@ -4041,11 +4064,11 @@ const Xn = async ({
|
|
|
4041
4064
|
}
|
|
4042
4065
|
}
|
|
4043
4066
|
}).catch((n) => {
|
|
4044
|
-
|
|
4067
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
4045
4068
|
});
|
|
4046
4069
|
};
|
|
4047
|
-
function
|
|
4048
|
-
var s, d, c,
|
|
4070
|
+
function Gn(e) {
|
|
4071
|
+
var s, d, c, f;
|
|
4049
4072
|
function t() {
|
|
4050
4073
|
return "div";
|
|
4051
4074
|
}
|
|
@@ -4053,31 +4076,31 @@ function Zn(e) {
|
|
|
4053
4076
|
return "div";
|
|
4054
4077
|
}
|
|
4055
4078
|
function i() {
|
|
4056
|
-
var
|
|
4079
|
+
var b, h;
|
|
4057
4080
|
return [
|
|
4058
|
-
e.attributes[
|
|
4081
|
+
e.attributes[H()],
|
|
4059
4082
|
"builder-symbol",
|
|
4060
|
-
(
|
|
4061
|
-
(
|
|
4083
|
+
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
4084
|
+
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4062
4085
|
].filter(Boolean).join(" ");
|
|
4063
4086
|
}
|
|
4064
4087
|
const [o, a] = T(() => {
|
|
4065
|
-
var
|
|
4066
|
-
return (
|
|
4088
|
+
var b;
|
|
4089
|
+
return (b = e.symbol) == null ? void 0 : b.content;
|
|
4067
4090
|
});
|
|
4068
4091
|
function r() {
|
|
4069
|
-
o ||
|
|
4092
|
+
o || Yn({
|
|
4070
4093
|
symbol: e.symbol,
|
|
4071
4094
|
builderContextValue: e.builderContext
|
|
4072
|
-
}).then((
|
|
4073
|
-
|
|
4095
|
+
}).then((b) => {
|
|
4096
|
+
b && a(b);
|
|
4074
4097
|
});
|
|
4075
4098
|
}
|
|
4076
4099
|
return P(() => {
|
|
4077
4100
|
}, []), P(() => {
|
|
4078
4101
|
r();
|
|
4079
4102
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4080
|
-
|
|
4103
|
+
Jn,
|
|
4081
4104
|
{
|
|
4082
4105
|
nonce: e.builderContext.nonce,
|
|
4083
4106
|
isNestedRender: !0,
|
|
@@ -4094,7 +4117,7 @@ function Zn(e) {
|
|
|
4094
4117
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4095
4118
|
},
|
|
4096
4119
|
canTrack: e.builderContext.canTrack,
|
|
4097
|
-
model: (
|
|
4120
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
4098
4121
|
content: o,
|
|
4099
4122
|
linkComponent: e.builderLinkComponent,
|
|
4100
4123
|
blocksWrapper: t(),
|
|
@@ -4103,15 +4126,15 @@ function Zn(e) {
|
|
|
4103
4126
|
) });
|
|
4104
4127
|
}
|
|
4105
4128
|
export {
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4129
|
+
F as Blocks,
|
|
4130
|
+
le as BuilderContext,
|
|
4131
|
+
Xe as Button,
|
|
4132
|
+
Dt as Columns,
|
|
4133
|
+
Jn as Content,
|
|
4134
|
+
Lt as Fragment,
|
|
4135
|
+
Mt as Image,
|
|
4136
|
+
jt as Section,
|
|
4137
|
+
Gn as Symbol,
|
|
4138
|
+
nn as Text,
|
|
4139
|
+
wn as Video
|
|
4117
4140
|
};
|