@builder.io/sdk-react 2.0.15 → 2.0.19
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 +21 -21
- package/lib/browser/blocks-exports.mjs +258 -242
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-b4e02b7f.js → server-entry-12189812.js} +1 -2
- package/lib/browser/{server-entry-6758904f.cjs → server-entry-c8020f19.cjs} +2 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-cc5e4262.js → accordion-634b0466.js} +1 -1
- package/lib/edge/{accordion-9d6ead4a.cjs → accordion-eaf2e50a.cjs} +1 -1
- package/lib/edge/{blocks-28f8515f.js → blocks-51761337.js} +91 -78
- package/lib/edge/blocks-b8c9a72a.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-5b479c4f.js → button-6d2144c3.js} +2 -2
- package/lib/edge/{button-d5d5a523.cjs → button-a0aad19e.cjs} +1 -1
- package/lib/edge/{columns-80468479.js → columns-030a6892.js} +4 -4
- package/lib/edge/{columns-52de76ba.cjs → columns-44d76a14.cjs} +1 -1
- package/lib/edge/{content-variants-ab7b16da.cjs → content-variants-3eef022e.cjs} +1 -1
- package/lib/edge/{content-variants-4a3c14d6.js → content-variants-46a433c2.js} +11 -11
- package/lib/edge/{evaluate-b34c0621.cjs → evaluate-29260bf8.cjs} +7 -7
- package/lib/edge/{evaluate-9643776e.js → evaluate-6febb3ef.js} +65 -60
- package/lib/edge/{form-2490bc65.cjs → form-59059e97.cjs} +1 -1
- package/lib/edge/{form-8614781e.js → form-855a28fc.js} +4 -4
- package/lib/edge/{get-class-prop-name-3fcaaa4e.cjs → get-class-prop-name-6320e936.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-982b0eeb.js → get-class-prop-name-a6353748.js} +1 -1
- package/lib/edge/{img-5481830d.cjs → img-1f88586f.cjs} +1 -1
- package/lib/edge/{img-2750ffb8.js → img-56b4a196.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-4018ed38.cjs → input-35f6fbdd.cjs} +1 -1
- package/lib/edge/{input-a53f13e5.js → input-7873f170.js} +1 -1
- package/lib/edge/{select-a9ba7290.js → select-eb16d7cc.js} +1 -1
- package/lib/edge/{select-b5257730.cjs → select-f03c5ba6.cjs} +1 -1
- package/lib/edge/{server-entry-425ab225.js → server-entry-77a5a1a0.js} +1 -2
- package/lib/edge/{server-entry-c0a129cd.cjs → server-entry-dbe27fb2.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7c52b924.cjs → slot-93865012.cjs} +1 -1
- package/lib/edge/{slot-2806840c.js → slot-c9a7a451.js} +4 -4
- package/lib/edge/{symbol-f4a3bd00.js → symbol-6657c638.js} +2 -2
- package/lib/edge/{symbol-2a759e66.cjs → symbol-b6b36212.cjs} +1 -1
- package/lib/edge/{tabs-238833b0.cjs → tabs-020fedaa.cjs} +1 -1
- package/lib/edge/{tabs-1e5bb78c.js → tabs-44484f49.js} +4 -4
- package/lib/edge/{text-95df08ad.cjs → text-562c8568.cjs} +1 -1
- package/lib/edge/{text-4492d4a7.js → text-e00e3cdc.js} +2 -2
- package/lib/node/blocks-exports.cjs +22 -22
- package/lib/node/blocks-exports.mjs +236 -232
- 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 +12 -8
- package/lib/node/{server-entry-6758904f.cjs → server-entry-82ab17f2.cjs} +1 -1
- package/lib/node/{server-entry-b4e02b7f.js → server-entry-902ea0c4.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{node-runtime-e5a24b2b.js → should-force-browser-runtime-in-node-0b0cefdf.js} +51 -37
- package/lib/node/should-force-browser-runtime-in-node-f20178fa.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/should-force-browser-runtime-in-node.d.ts +3 -1
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -59
- package/lib/edge/blocks-f9516def.cjs +0 -12
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -59
- package/lib/node/node-runtime-9a8c1fa3.cjs +0 -48
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var qe = Object.defineProperty;
|
|
3
3
|
var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as U,
|
|
4
|
+
var ee = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as I, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as U, isBrowser as G, logger as ce, checkIsDefined as re, isPreviewing as we, isEditing as $, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, fetchOneEntry as Re, createEditorListener as Ge, fetch as Qe, serializeIncludingFunctions as ge, handleABTestingSync as Xe } from "./server-entry-902ea0c4.js";
|
|
7
7
|
import { createContext as Ee, useState as T, useEffect as B, useRef as _, useContext as be, createElement as Pe } from "react";
|
|
8
|
-
import { getFunctionArguments as Ze,
|
|
9
|
-
const
|
|
8
|
+
import { getFunctionArguments as Ze, shouldForceBrowserRuntimeInNode as et, runInNode as tt, parseCode as nt, getBuilderGlobals as it, set as Be, fastClone as de } from "./should-force-browser-runtime-in-node-0b0cefdf.js";
|
|
9
|
+
const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && ot.has(e.toLowerCase());
|
|
10
10
|
function ue(e) {
|
|
11
|
-
return /* @__PURE__ */ l(
|
|
11
|
+
return /* @__PURE__ */ l(I, { children: at(e.TagName) ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(I, { 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
12
|
}
|
|
13
13
|
const q = () => {
|
|
14
14
|
switch (U) {
|
|
@@ -24,7 +24,7 @@ const q = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function rt(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -63,20 +63,20 @@ const me = Ee({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: ""
|
|
65
65
|
}), Ve = Ee({ registeredComponents: {} });
|
|
66
|
-
function
|
|
66
|
+
function lt(e) {
|
|
67
67
|
var t;
|
|
68
68
|
return {
|
|
69
69
|
...(t = e.component) == null ? void 0 : t.options,
|
|
70
70
|
...e.options
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function st(e, ...t) {
|
|
74
74
|
const n = Object.assign({}, e);
|
|
75
75
|
for (const i of t)
|
|
76
76
|
delete n[i];
|
|
77
77
|
return n;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const ct = ({
|
|
80
80
|
code: e,
|
|
81
81
|
builder: t,
|
|
82
82
|
context: n,
|
|
@@ -122,17 +122,9 @@ function Ae({
|
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
const dt = () => {
|
|
130
|
-
var i;
|
|
131
|
-
if (!ct())
|
|
132
|
-
return !1;
|
|
133
|
-
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
134
|
-
return e && t && !n ? (Z.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;
|
|
135
|
-
}, ut = (e) => Q() || dt() ? st(e) : et(e), mt = !0, L = class L {
|
|
125
|
+
const dt = (e) => G() || et({
|
|
126
|
+
shouldLogWarning: !0
|
|
127
|
+
}) ? ct(e) : tt(e), ut = !0, L = class L {
|
|
136
128
|
static getCacheKey(t) {
|
|
137
129
|
return JSON.stringify({
|
|
138
130
|
...t,
|
|
@@ -150,7 +142,7 @@ const dt = () => {
|
|
|
150
142
|
});
|
|
151
143
|
}
|
|
152
144
|
};
|
|
153
|
-
|
|
145
|
+
ee(L, "cacheLimit", 20), ee(L, "cache", /* @__PURE__ */ new Map());
|
|
154
146
|
let M = L;
|
|
155
147
|
function H({
|
|
156
148
|
code: e,
|
|
@@ -165,49 +157,49 @@ function H({
|
|
|
165
157
|
if (e === "")
|
|
166
158
|
return;
|
|
167
159
|
const d = {
|
|
168
|
-
code:
|
|
160
|
+
code: nt(e, {
|
|
169
161
|
isExpression: r
|
|
170
162
|
}),
|
|
171
|
-
builder:
|
|
163
|
+
builder: it(),
|
|
172
164
|
context: t,
|
|
173
165
|
event: a,
|
|
174
166
|
rootSetState: o,
|
|
175
167
|
rootState: i,
|
|
176
168
|
localState: n
|
|
177
169
|
};
|
|
178
|
-
if (s && !
|
|
170
|
+
if (s && !ut) {
|
|
179
171
|
const c = M.getCacheKey(d), u = M.getCachedValue(c);
|
|
180
172
|
if (u)
|
|
181
173
|
return u.value;
|
|
182
174
|
}
|
|
183
175
|
try {
|
|
184
|
-
const c =
|
|
176
|
+
const c = dt(d);
|
|
185
177
|
if (s) {
|
|
186
178
|
const u = M.getCacheKey(d);
|
|
187
179
|
M.setCachedValue(u, c);
|
|
188
180
|
}
|
|
189
181
|
return c;
|
|
190
182
|
} catch (c) {
|
|
191
|
-
|
|
183
|
+
ce.error("Failed code evaluation: " + c.message, {
|
|
192
184
|
code: e
|
|
193
185
|
});
|
|
194
186
|
return;
|
|
195
187
|
}
|
|
196
188
|
}
|
|
197
|
-
function
|
|
189
|
+
function le(e) {
|
|
198
190
|
if (e === null || typeof e != "object")
|
|
199
191
|
return e;
|
|
200
192
|
if (Array.isArray(e))
|
|
201
|
-
return e.map((n) =>
|
|
193
|
+
return e.map((n) => le(n));
|
|
202
194
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
203
195
|
return e;
|
|
204
196
|
const t = {};
|
|
205
197
|
for (const n in e)
|
|
206
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
198
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
|
|
207
199
|
return t;
|
|
208
200
|
}
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
201
|
+
const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) => {
|
|
202
|
+
if (mt) {
|
|
211
203
|
const t = de(e);
|
|
212
204
|
return {
|
|
213
205
|
...t,
|
|
@@ -219,7 +211,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
219
211
|
}
|
|
220
212
|
};
|
|
221
213
|
} else {
|
|
222
|
-
const t =
|
|
214
|
+
const t = le(st(e, "children", "meta"));
|
|
223
215
|
return {
|
|
224
216
|
...t,
|
|
225
217
|
properties: {
|
|
@@ -232,7 +224,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
232
224
|
meta: e.meta
|
|
233
225
|
};
|
|
234
226
|
}
|
|
235
|
-
},
|
|
227
|
+
}, ht = ({
|
|
236
228
|
block: e,
|
|
237
229
|
context: t,
|
|
238
230
|
localState: n,
|
|
@@ -241,7 +233,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
241
233
|
}) => {
|
|
242
234
|
if (!e.bindings)
|
|
243
235
|
return e;
|
|
244
|
-
const a =
|
|
236
|
+
const a = ft(e);
|
|
245
237
|
for (const r in e.bindings) {
|
|
246
238
|
const s = e.bindings[r], d = H({
|
|
247
239
|
code: s,
|
|
@@ -255,7 +247,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
255
247
|
}
|
|
256
248
|
return a;
|
|
257
249
|
};
|
|
258
|
-
function
|
|
250
|
+
function gt({
|
|
259
251
|
block: e,
|
|
260
252
|
context: t,
|
|
261
253
|
shouldEvaluateBindings: n,
|
|
@@ -264,7 +256,7 @@ function bt({
|
|
|
264
256
|
rootSetState: a
|
|
265
257
|
}) {
|
|
266
258
|
const r = e;
|
|
267
|
-
return n ?
|
|
259
|
+
return n ? ht({
|
|
268
260
|
block: r,
|
|
269
261
|
localState: i,
|
|
270
262
|
rootState: o,
|
|
@@ -272,8 +264,8 @@ function bt({
|
|
|
272
264
|
context: t
|
|
273
265
|
}) : r;
|
|
274
266
|
}
|
|
275
|
-
const
|
|
276
|
-
function
|
|
267
|
+
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
268
|
+
function bt(e, t, n = {}) {
|
|
277
269
|
let i, o, a, r = null, s = 0;
|
|
278
270
|
const d = function() {
|
|
279
271
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -295,55 +287,55 @@ function K(e, ...t) {
|
|
|
295
287
|
}
|
|
296
288
|
return n;
|
|
297
289
|
}
|
|
298
|
-
function
|
|
290
|
+
function pt(e) {
|
|
299
291
|
for (const t of e)
|
|
300
292
|
switch (t.trigger) {
|
|
301
293
|
case "pageLoad":
|
|
302
|
-
|
|
294
|
+
Ne(t);
|
|
303
295
|
break;
|
|
304
296
|
case "scrollInView":
|
|
305
|
-
|
|
297
|
+
xt(t);
|
|
306
298
|
break;
|
|
307
299
|
}
|
|
308
300
|
}
|
|
309
|
-
function
|
|
301
|
+
function We(e) {
|
|
310
302
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
311
303
|
}
|
|
312
|
-
function
|
|
313
|
-
const n =
|
|
304
|
+
function Fe(e, t) {
|
|
305
|
+
const n = yt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
314
306
|
for (const s of r)
|
|
315
307
|
for (const d of n)
|
|
316
308
|
d in s || (s[d] = i[d]);
|
|
317
309
|
}
|
|
318
|
-
function
|
|
310
|
+
function yt(e) {
|
|
319
311
|
const t = [];
|
|
320
312
|
for (const n of e.steps)
|
|
321
313
|
for (const i in n.styles)
|
|
322
314
|
t.indexOf(i) === -1 && t.push(i);
|
|
323
315
|
return t;
|
|
324
316
|
}
|
|
325
|
-
function
|
|
317
|
+
function Ne(e) {
|
|
326
318
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
327
319
|
if (!t.length) {
|
|
328
|
-
|
|
320
|
+
We(e.elementId || e.id || "");
|
|
329
321
|
return;
|
|
330
322
|
}
|
|
331
323
|
Array.from(t).forEach((n) => {
|
|
332
|
-
|
|
333
|
-
n.style.transition = `all ${e.duration}s ${
|
|
324
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
|
|
325
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
|
|
334
326
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
335
327
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
336
328
|
});
|
|
337
329
|
});
|
|
338
330
|
}
|
|
339
|
-
function
|
|
331
|
+
function xt(e) {
|
|
340
332
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
341
333
|
if (!t.length) {
|
|
342
|
-
|
|
334
|
+
We(e.elementId || e.id || "");
|
|
343
335
|
return;
|
|
344
336
|
}
|
|
345
337
|
Array.from(t).forEach((n) => {
|
|
346
|
-
|
|
338
|
+
Fe(e, n);
|
|
347
339
|
let i = !1, o = !1;
|
|
348
340
|
function a() {
|
|
349
341
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -352,7 +344,7 @@ function vt(e) {
|
|
|
352
344
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
353
345
|
})) : e.repeat && i && !o && !s(n) && (i = !1, K(n.style, e.steps[0].styles));
|
|
354
346
|
}
|
|
355
|
-
const r =
|
|
347
|
+
const r = bt(a, 200, {
|
|
356
348
|
leading: !1
|
|
357
349
|
});
|
|
358
350
|
function s(u) {
|
|
@@ -364,7 +356,7 @@ function vt(e) {
|
|
|
364
356
|
K(n.style, d);
|
|
365
357
|
}
|
|
366
358
|
c(), setTimeout(() => {
|
|
367
|
-
n.style.transition = `all ${e.duration}s ${
|
|
359
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
368
360
|
}), document.addEventListener("scroll", r, {
|
|
369
361
|
capture: !0,
|
|
370
362
|
passive: !0
|
|
@@ -373,29 +365,29 @@ function vt(e) {
|
|
|
373
365
|
}
|
|
374
366
|
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
375
367
|
if (typeof i == "string")
|
|
376
|
-
return `${
|
|
377
|
-
}).filter(
|
|
368
|
+
return `${X(n)}: ${i};`;
|
|
369
|
+
}).filter(re), vt = (e) => $e(e).join(`
|
|
378
370
|
`), J = ({
|
|
379
371
|
mediaQuery: e,
|
|
380
372
|
className: t,
|
|
381
373
|
styles: n
|
|
382
374
|
}) => {
|
|
383
375
|
const i = `.${t} {
|
|
384
|
-
${
|
|
376
|
+
${vt(n)}
|
|
385
377
|
}`;
|
|
386
378
|
return e ? `${e} {
|
|
387
379
|
${i}
|
|
388
380
|
}` : i;
|
|
389
381
|
};
|
|
390
|
-
function
|
|
382
|
+
function St({
|
|
391
383
|
style: e
|
|
392
384
|
}) {
|
|
393
385
|
return e;
|
|
394
386
|
}
|
|
395
|
-
const
|
|
387
|
+
const kt = ({
|
|
396
388
|
block: e,
|
|
397
389
|
context: t
|
|
398
|
-
}) => De(
|
|
390
|
+
}) => De(St({
|
|
399
391
|
style: e.style || {},
|
|
400
392
|
context: t,
|
|
401
393
|
block: e
|
|
@@ -414,7 +406,7 @@ function De(e) {
|
|
|
414
406
|
return e;
|
|
415
407
|
}
|
|
416
408
|
}
|
|
417
|
-
const
|
|
409
|
+
const Ct = ({
|
|
418
410
|
block: e,
|
|
419
411
|
registeredComponents: t
|
|
420
412
|
}) => {
|
|
@@ -428,7 +420,7 @@ const Tt = ({
|
|
|
428
420
|
console.warn(`
|
|
429
421
|
Could not find a registered component named "${n}".
|
|
430
422
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
431
|
-
},
|
|
423
|
+
}, Tt = ({
|
|
432
424
|
block: e,
|
|
433
425
|
context: t
|
|
434
426
|
}) => {
|
|
@@ -462,22 +454,22 @@ const Tt = ({
|
|
|
462
454
|
},
|
|
463
455
|
block: i
|
|
464
456
|
}));
|
|
465
|
-
},
|
|
457
|
+
}, It = (e, t) => {
|
|
466
458
|
var n;
|
|
467
459
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
468
460
|
builderLinkComponent: t
|
|
469
461
|
} : {};
|
|
470
|
-
},
|
|
462
|
+
}, wt = (e, t) => {
|
|
471
463
|
var n;
|
|
472
464
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
473
465
|
builderComponents: t
|
|
474
466
|
} : {};
|
|
475
|
-
},
|
|
467
|
+
}, Rt = (e, t) => {
|
|
476
468
|
var n;
|
|
477
469
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
478
470
|
builderBlock: t
|
|
479
471
|
} : {};
|
|
480
|
-
},
|
|
472
|
+
}, Et = (e, t) => {
|
|
481
473
|
var n;
|
|
482
474
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
483
475
|
builderContext: t
|
|
@@ -525,7 +517,7 @@ const Tt = ({
|
|
|
525
517
|
default: a + 1
|
|
526
518
|
}, n;
|
|
527
519
|
};
|
|
528
|
-
function
|
|
520
|
+
function Z(e) {
|
|
529
521
|
return /* @__PURE__ */ l(
|
|
530
522
|
"style",
|
|
531
523
|
{
|
|
@@ -535,13 +527,13 @@ function te(e) {
|
|
|
535
527
|
}
|
|
536
528
|
);
|
|
537
529
|
}
|
|
538
|
-
function
|
|
530
|
+
function Pt(e) {
|
|
539
531
|
function t() {
|
|
540
532
|
const i = e.block;
|
|
541
|
-
return
|
|
533
|
+
return re(i.hide) ? !i.hide : re(i.show) ? i.show : !0;
|
|
542
534
|
}
|
|
543
535
|
function n() {
|
|
544
|
-
var f,
|
|
536
|
+
var f, R, P;
|
|
545
537
|
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
|
|
546
538
|
((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
|
|
547
539
|
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, u = i.id;
|
|
@@ -567,12 +559,12 @@ function Bt(e) {
|
|
|
567
559
|
}) : "", h = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
568
560
|
let p = "";
|
|
569
561
|
if (h) {
|
|
570
|
-
const A = ((P = (
|
|
562
|
+
const A = ((P = (R = h.steps) == null ? void 0 : R[1]) == null ? void 0 : P.styles) || {};
|
|
571
563
|
p = J({
|
|
572
564
|
className: `${u}:hover`,
|
|
573
565
|
styles: {
|
|
574
566
|
...A,
|
|
575
|
-
transition: `all ${h.duration}s ${
|
|
567
|
+
transition: `all ${h.duration}s ${X(
|
|
576
568
|
h.easing
|
|
577
569
|
)}`,
|
|
578
570
|
transitionDelay: h.delay ? `${h.delay}s` : "0s"
|
|
@@ -586,8 +578,8 @@ function Bt(e) {
|
|
|
586
578
|
p
|
|
587
579
|
].join(" ");
|
|
588
580
|
}
|
|
589
|
-
return /* @__PURE__ */ l(
|
|
590
|
-
|
|
581
|
+
return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
582
|
+
Z,
|
|
591
583
|
{
|
|
592
584
|
id: "builderio-block",
|
|
593
585
|
styles: n(),
|
|
@@ -595,10 +587,10 @@ function Bt(e) {
|
|
|
595
587
|
}
|
|
596
588
|
) }) : null });
|
|
597
589
|
}
|
|
598
|
-
function
|
|
590
|
+
function Bt(e) {
|
|
599
591
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
600
592
|
}
|
|
601
|
-
const
|
|
593
|
+
const Vt = (e) => `on${Bt(e)}`, At = (e, t) => (n) => H({
|
|
602
594
|
code: e,
|
|
603
595
|
context: t.context,
|
|
604
596
|
localState: t.localState,
|
|
@@ -615,7 +607,7 @@ function Ue(e) {
|
|
|
615
607
|
if (!n.hasOwnProperty(o))
|
|
616
608
|
continue;
|
|
617
609
|
const a = n[o];
|
|
618
|
-
let r =
|
|
610
|
+
let r = Vt(o);
|
|
619
611
|
if (e.stripPrefix)
|
|
620
612
|
switch (U) {
|
|
621
613
|
case "vue":
|
|
@@ -625,7 +617,7 @@ function Ue(e) {
|
|
|
625
617
|
r = r.replace("on:", "");
|
|
626
618
|
break;
|
|
627
619
|
}
|
|
628
|
-
t[r] =
|
|
620
|
+
t[r] = At(a, e);
|
|
629
621
|
}
|
|
630
622
|
return t;
|
|
631
623
|
}
|
|
@@ -646,7 +638,7 @@ function fe({
|
|
|
646
638
|
...Ft(e),
|
|
647
639
|
...e.properties,
|
|
648
640
|
"builder-id": e.id,
|
|
649
|
-
style:
|
|
641
|
+
style: kt({
|
|
650
642
|
block: e,
|
|
651
643
|
context: t
|
|
652
644
|
}),
|
|
@@ -658,7 +650,7 @@ function fe({
|
|
|
658
650
|
block: e
|
|
659
651
|
});
|
|
660
652
|
}
|
|
661
|
-
function
|
|
653
|
+
function Nt(e) {
|
|
662
654
|
return /* @__PURE__ */ l(
|
|
663
655
|
ue,
|
|
664
656
|
{
|
|
@@ -679,6 +671,9 @@ function $t(e) {
|
|
|
679
671
|
}
|
|
680
672
|
);
|
|
681
673
|
}
|
|
674
|
+
function $t(e) {
|
|
675
|
+
return /* @__PURE__ */ l(I, { children: e.children });
|
|
676
|
+
}
|
|
682
677
|
function Dt(e) {
|
|
683
678
|
function t() {
|
|
684
679
|
return e.includeBlockProps ? {
|
|
@@ -695,7 +690,16 @@ function Dt(e) {
|
|
|
695
690
|
})
|
|
696
691
|
} : {};
|
|
697
692
|
}
|
|
698
|
-
return /* @__PURE__ */ l(
|
|
693
|
+
return /* @__PURE__ */ l(I, { children: e.Wrapper.load ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
694
|
+
$t,
|
|
695
|
+
{
|
|
696
|
+
load: e.Wrapper.load,
|
|
697
|
+
fallback: e.Wrapper.fallback,
|
|
698
|
+
props: e.wrapperProps,
|
|
699
|
+
attributes: t(),
|
|
700
|
+
children: e.children
|
|
701
|
+
}
|
|
702
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
699
703
|
}
|
|
700
704
|
const Lt = ({
|
|
701
705
|
componentOptions: e,
|
|
@@ -732,7 +736,7 @@ function ye(e) {
|
|
|
732
736
|
const [t, n] = T(
|
|
733
737
|
() => e.isInteractive ? Dt : e.componentRef
|
|
734
738
|
);
|
|
735
|
-
return /* @__PURE__ */ l(
|
|
739
|
+
return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
736
740
|
t,
|
|
737
741
|
{
|
|
738
742
|
...Lt({
|
|
@@ -773,7 +777,7 @@ function xe(e) {
|
|
|
773
777
|
function z(e) {
|
|
774
778
|
var u, g, m, x;
|
|
775
779
|
function t() {
|
|
776
|
-
return
|
|
780
|
+
return Tt({
|
|
777
781
|
block: e.block,
|
|
778
782
|
context: e.context
|
|
779
783
|
});
|
|
@@ -786,7 +790,7 @@ function z(e) {
|
|
|
786
790
|
var p;
|
|
787
791
|
if (n.value && !n.update && !we())
|
|
788
792
|
return n.value;
|
|
789
|
-
const h = (p = e.block.repeat) != null && p.collection ? e.block :
|
|
793
|
+
const h = (p = e.block.repeat) != null && p.collection ? e.block : gt({
|
|
790
794
|
block: e.block,
|
|
791
795
|
localState: e.context.localState,
|
|
792
796
|
rootState: e.context.rootState,
|
|
@@ -797,7 +801,7 @@ function z(e) {
|
|
|
797
801
|
return n.value = h, n.update = !1, h;
|
|
798
802
|
}
|
|
799
803
|
function a() {
|
|
800
|
-
return
|
|
804
|
+
return Ct({
|
|
801
805
|
block: o(),
|
|
802
806
|
registeredComponents: e.registeredComponents
|
|
803
807
|
});
|
|
@@ -807,9 +811,9 @@ function z(e) {
|
|
|
807
811
|
return e.block.tagName === "a" || ((p = o().properties) == null ? void 0 : p.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
808
812
|
}
|
|
809
813
|
function s() {
|
|
810
|
-
var f,
|
|
814
|
+
var f, R;
|
|
811
815
|
if ((f = e.block.repeat) != null && f.collection)
|
|
812
|
-
return !!((
|
|
816
|
+
return !!((R = t == null ? void 0 : t()) != null && R.length);
|
|
813
817
|
const h = "hide" in o() ? o().hide : !1;
|
|
814
818
|
return ("show" in o() ? o().show : !0) && !h;
|
|
815
819
|
}
|
|
@@ -818,16 +822,16 @@ function z(e) {
|
|
|
818
822
|
return !((p = a == null ? void 0 : a()) != null && p.component) && !t() ? (f = o().children) != null ? f : [] : [];
|
|
819
823
|
}
|
|
820
824
|
function c() {
|
|
821
|
-
var h, p, f,
|
|
825
|
+
var h, p, f, R;
|
|
822
826
|
return {
|
|
823
827
|
blockChildren: (h = o().children) != null ? h : [],
|
|
824
828
|
componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
|
|
825
829
|
componentOptions: {
|
|
826
|
-
...
|
|
827
|
-
...
|
|
828
|
-
...
|
|
829
|
-
...
|
|
830
|
-
...
|
|
830
|
+
...lt(o()),
|
|
831
|
+
...Rt(a(), o()),
|
|
832
|
+
...Et(a(), e.context),
|
|
833
|
+
...It(a(), e.linkComponent),
|
|
834
|
+
...wt(
|
|
831
835
|
a(),
|
|
832
836
|
e.registeredComponents
|
|
833
837
|
)
|
|
@@ -837,12 +841,12 @@ function z(e) {
|
|
|
837
841
|
registeredComponents: e.registeredComponents,
|
|
838
842
|
builderBlock: o(),
|
|
839
843
|
includeBlockProps: ((f = a == null ? void 0 : a()) == null ? void 0 : f.noWrap) === !0,
|
|
840
|
-
isInteractive: !((
|
|
844
|
+
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && U === "rsc")
|
|
841
845
|
};
|
|
842
846
|
}
|
|
843
847
|
return B(() => {
|
|
844
848
|
const h = o().id, p = o().animations;
|
|
845
|
-
p && h &&
|
|
849
|
+
p && h && pt(
|
|
846
850
|
p.map((f) => ({
|
|
847
851
|
...f,
|
|
848
852
|
elementId: h
|
|
@@ -850,9 +854,9 @@ function z(e) {
|
|
|
850
854
|
);
|
|
851
855
|
}, []), B(() => {
|
|
852
856
|
n.update = !0;
|
|
853
|
-
}), /* @__PURE__ */ l(
|
|
854
|
-
/* @__PURE__ */ l(
|
|
855
|
-
(u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(
|
|
857
|
+
}), /* @__PURE__ */ l(I, { children: s() ? /* @__PURE__ */ V(I, { children: [
|
|
858
|
+
/* @__PURE__ */ l(Pt, { block: o(), context: e.context }),
|
|
859
|
+
(u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(I, { children: (x = t()) == null ? void 0 : x.map((h, p) => /* @__PURE__ */ l(
|
|
856
860
|
xe,
|
|
857
861
|
{
|
|
858
862
|
repeatContext: h.context,
|
|
@@ -874,7 +878,7 @@ function z(e) {
|
|
|
874
878
|
includeBlockProps: c().includeBlockProps,
|
|
875
879
|
isInteractive: c().isInteractive
|
|
876
880
|
}
|
|
877
|
-
) : /* @__PURE__ */ l(
|
|
881
|
+
) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ l(
|
|
878
882
|
xe,
|
|
879
883
|
{
|
|
880
884
|
repeatContext: h.context,
|
|
@@ -884,7 +888,7 @@ function z(e) {
|
|
|
884
888
|
},
|
|
885
889
|
p
|
|
886
890
|
)) }) : /* @__PURE__ */ V(
|
|
887
|
-
|
|
891
|
+
Nt,
|
|
888
892
|
{
|
|
889
893
|
Wrapper: r(),
|
|
890
894
|
block: o(),
|
|
@@ -952,7 +956,7 @@ function Ot(e) {
|
|
|
952
956
|
));
|
|
953
957
|
}
|
|
954
958
|
return B(() => {
|
|
955
|
-
}, []), /* @__PURE__ */ V(
|
|
959
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
956
960
|
/* @__PURE__ */ l(
|
|
957
961
|
e.BlocksWrapper,
|
|
958
962
|
{
|
|
@@ -987,7 +991,7 @@ function D(e) {
|
|
|
987
991
|
styleProp: e.styleProp,
|
|
988
992
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
989
993
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
990
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
994
|
+
children: e.blocks ? /* @__PURE__ */ l(I, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
991
995
|
z,
|
|
992
996
|
{
|
|
993
997
|
block: r,
|
|
@@ -1012,24 +1016,24 @@ function jt(e) {
|
|
|
1012
1016
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
1013
1017
|
}
|
|
1014
1018
|
function d(v) {
|
|
1015
|
-
var
|
|
1016
|
-
return ((
|
|
1019
|
+
var E;
|
|
1020
|
+
return ((E = i[v]) == null ? void 0 : E.width) || 100 / i.length;
|
|
1017
1021
|
}
|
|
1018
1022
|
function c(v) {
|
|
1019
|
-
const
|
|
1020
|
-
return `calc(${
|
|
1023
|
+
const E = d(v), W = t * (i.length - 1) * (E / 100);
|
|
1024
|
+
return `calc(${E}% - ${W}px)`;
|
|
1021
1025
|
}
|
|
1022
1026
|
function u({
|
|
1023
1027
|
stackedStyle: v,
|
|
1024
|
-
desktopStyle:
|
|
1028
|
+
desktopStyle: E
|
|
1025
1029
|
}) {
|
|
1026
|
-
return a === "tablet" ? v :
|
|
1030
|
+
return a === "tablet" ? v : E;
|
|
1027
1031
|
}
|
|
1028
1032
|
function g({
|
|
1029
1033
|
stackedStyle: v,
|
|
1030
|
-
desktopStyle:
|
|
1034
|
+
desktopStyle: E
|
|
1031
1035
|
}) {
|
|
1032
|
-
return a === "never" ?
|
|
1036
|
+
return a === "never" ? E : v;
|
|
1033
1037
|
}
|
|
1034
1038
|
const [m, x] = T(
|
|
1035
1039
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -1044,18 +1048,18 @@ function jt(e) {
|
|
|
1044
1048
|
};
|
|
1045
1049
|
}
|
|
1046
1050
|
function p(v) {
|
|
1047
|
-
const
|
|
1051
|
+
const E = v === 0 ? 0 : t, W = c(v), y = `${E}px`, b = "100%", S = 0;
|
|
1048
1052
|
return {
|
|
1049
1053
|
...{
|
|
1050
1054
|
display: "flex",
|
|
1051
1055
|
flexDirection: "column",
|
|
1052
1056
|
alignItems: "stretch"
|
|
1053
1057
|
},
|
|
1054
|
-
width:
|
|
1058
|
+
width: W,
|
|
1055
1059
|
["marginLeft"]: y,
|
|
1056
1060
|
"--column-width-mobile": g({
|
|
1057
1061
|
stackedStyle: b,
|
|
1058
|
-
desktopStyle:
|
|
1062
|
+
desktopStyle: W
|
|
1059
1063
|
}),
|
|
1060
1064
|
"--column-margin-left-mobile": g({
|
|
1061
1065
|
stackedStyle: S,
|
|
@@ -1063,7 +1067,7 @@ function jt(e) {
|
|
|
1063
1067
|
}),
|
|
1064
1068
|
"--column-width-tablet": u({
|
|
1065
1069
|
stackedStyle: b,
|
|
1066
|
-
desktopStyle:
|
|
1070
|
+
desktopStyle: W
|
|
1067
1071
|
}),
|
|
1068
1072
|
"--column-margin-left-tablet": u({
|
|
1069
1073
|
stackedStyle: S,
|
|
@@ -1072,12 +1076,12 @@ function jt(e) {
|
|
|
1072
1076
|
};
|
|
1073
1077
|
}
|
|
1074
1078
|
function f(v) {
|
|
1075
|
-
var
|
|
1079
|
+
var W, y;
|
|
1076
1080
|
return Oe(
|
|
1077
|
-
((y = (
|
|
1081
|
+
((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
|
|
1078
1082
|
)[v].max;
|
|
1079
1083
|
}
|
|
1080
|
-
function
|
|
1084
|
+
function R() {
|
|
1081
1085
|
const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1082
1086
|
return `
|
|
1083
1087
|
@media (max-width: ${f("medium")}px) {
|
|
@@ -1105,16 +1109,16 @@ function jt(e) {
|
|
|
1105
1109
|
},
|
|
1106
1110
|
`;
|
|
1107
1111
|
}
|
|
1108
|
-
function P(v,
|
|
1112
|
+
function P(v, E) {
|
|
1109
1113
|
return {
|
|
1110
1114
|
...v.link ? {
|
|
1111
1115
|
href: v.link
|
|
1112
1116
|
} : {},
|
|
1113
1117
|
[q()]: "builder-column",
|
|
1114
|
-
style: De(p(
|
|
1118
|
+
style: De(p(E))
|
|
1115
1119
|
};
|
|
1116
1120
|
}
|
|
1117
|
-
return /* @__PURE__ */ V(
|
|
1121
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
1118
1122
|
/* @__PURE__ */ V(
|
|
1119
1123
|
"div",
|
|
1120
1124
|
{
|
|
@@ -1122,23 +1126,23 @@ function jt(e) {
|
|
|
1122
1126
|
style: h(),
|
|
1123
1127
|
children: [
|
|
1124
1128
|
/* @__PURE__ */ l(
|
|
1125
|
-
|
|
1129
|
+
Z,
|
|
1126
1130
|
{
|
|
1127
1131
|
id: "builderio-columns",
|
|
1128
|
-
styles:
|
|
1132
|
+
styles: R(),
|
|
1129
1133
|
nonce: e.builderContext.nonce
|
|
1130
1134
|
}
|
|
1131
1135
|
),
|
|
1132
|
-
(O = e.columns) == null ? void 0 : O.map((v,
|
|
1136
|
+
(O = e.columns) == null ? void 0 : O.map((v, E) => /* @__PURE__ */ l(
|
|
1133
1137
|
ue,
|
|
1134
1138
|
{
|
|
1135
1139
|
TagName: s(v),
|
|
1136
1140
|
actionAttributes: {},
|
|
1137
|
-
attributes: P(v,
|
|
1141
|
+
attributes: P(v, E),
|
|
1138
1142
|
children: /* @__PURE__ */ l(
|
|
1139
1143
|
D,
|
|
1140
1144
|
{
|
|
1141
|
-
path: `component.options.columns.${
|
|
1145
|
+
path: `component.options.columns.${E}.blocks`,
|
|
1142
1146
|
parent: e.builderBlock.id,
|
|
1143
1147
|
styleProp: {
|
|
1144
1148
|
flexGrow: "1"
|
|
@@ -1150,7 +1154,7 @@ function jt(e) {
|
|
|
1150
1154
|
}
|
|
1151
1155
|
)
|
|
1152
1156
|
},
|
|
1153
|
-
|
|
1157
|
+
E
|
|
1154
1158
|
))
|
|
1155
1159
|
]
|
|
1156
1160
|
}
|
|
@@ -1183,7 +1187,7 @@ function Kt(e, t) {
|
|
|
1183
1187
|
}
|
|
1184
1188
|
return null;
|
|
1185
1189
|
}
|
|
1186
|
-
function
|
|
1190
|
+
function te(e) {
|
|
1187
1191
|
if (!e)
|
|
1188
1192
|
return e;
|
|
1189
1193
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1206,10 +1210,10 @@ function qt(e) {
|
|
|
1206
1210
|
if (!e.noWebp) {
|
|
1207
1211
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1208
1212
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1209
|
-
return console.debug("Removed given srcset"),
|
|
1213
|
+
return console.debug("Removed given srcset"), te(g);
|
|
1210
1214
|
} else if (e.image && !e.srcset)
|
|
1211
|
-
return
|
|
1212
|
-
return
|
|
1215
|
+
return te(g);
|
|
1216
|
+
return te(g);
|
|
1213
1217
|
}
|
|
1214
1218
|
}
|
|
1215
1219
|
function n() {
|
|
@@ -1227,8 +1231,8 @@ function qt(e) {
|
|
|
1227
1231
|
return e.aspectRatio ? u : void 0;
|
|
1228
1232
|
}
|
|
1229
1233
|
return B(() => {
|
|
1230
|
-
}, []), /* @__PURE__ */ V(
|
|
1231
|
-
/* @__PURE__ */ V(
|
|
1234
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
1235
|
+
/* @__PURE__ */ V(I, { children: [
|
|
1232
1236
|
/* @__PURE__ */ V("picture", { children: [
|
|
1233
1237
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1234
1238
|
/* @__PURE__ */ l(
|
|
@@ -1259,7 +1263,7 @@ function qt(e) {
|
|
|
1259
1263
|
}
|
|
1260
1264
|
}
|
|
1261
1265
|
) : null,
|
|
1262
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1266
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
|
|
1263
1267
|
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1264
1268
|
] }),
|
|
1265
1269
|
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
@@ -1302,7 +1306,7 @@ function _t(e) {
|
|
|
1302
1306
|
}
|
|
1303
1307
|
);
|
|
1304
1308
|
}
|
|
1305
|
-
const
|
|
1309
|
+
const ne = {
|
|
1306
1310
|
"@type": "@builder.io/sdk:Element",
|
|
1307
1311
|
layerName: "Accordion item title",
|
|
1308
1312
|
responsiveStyles: {
|
|
@@ -1331,7 +1335,7 @@ const oe = {
|
|
|
1331
1335
|
}
|
|
1332
1336
|
}
|
|
1333
1337
|
}]
|
|
1334
|
-
},
|
|
1338
|
+
}, ie = {
|
|
1335
1339
|
"@type": "@builder.io/sdk:Element",
|
|
1336
1340
|
layerName: "Accordion item detail",
|
|
1337
1341
|
responsiveStyles: {
|
|
@@ -1379,19 +1383,19 @@ const oe = {
|
|
|
1379
1383
|
name: "title",
|
|
1380
1384
|
type: "uiBlocks",
|
|
1381
1385
|
hideFromUI: !0,
|
|
1382
|
-
defaultValue: [
|
|
1386
|
+
defaultValue: [ne]
|
|
1383
1387
|
}, {
|
|
1384
1388
|
name: "detail",
|
|
1385
1389
|
type: "uiBlocks",
|
|
1386
1390
|
hideFromUI: !0,
|
|
1387
|
-
defaultValue: [
|
|
1391
|
+
defaultValue: [ie]
|
|
1388
1392
|
}],
|
|
1389
1393
|
defaultValue: [{
|
|
1390
|
-
title: [
|
|
1391
|
-
detail: [
|
|
1394
|
+
title: [ne],
|
|
1395
|
+
detail: [ie]
|
|
1392
1396
|
}, {
|
|
1393
|
-
title: [
|
|
1394
|
-
detail: [
|
|
1397
|
+
title: [ne],
|
|
1398
|
+
detail: [ie]
|
|
1395
1399
|
}],
|
|
1396
1400
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1397
1401
|
}, {
|
|
@@ -1472,18 +1476,18 @@ function Jt(e) {
|
|
|
1472
1476
|
`.builder-accordion-title[data-index="${h}"]`
|
|
1473
1477
|
);
|
|
1474
1478
|
if (m = h, f) {
|
|
1475
|
-
let
|
|
1479
|
+
let R = f.getBoundingClientRect();
|
|
1476
1480
|
for (; f = f && f.nextElementSibling; )
|
|
1477
1481
|
if (f) {
|
|
1478
1482
|
if (f.classList.contains("builder-accordion-detail"))
|
|
1479
1483
|
continue;
|
|
1480
1484
|
const P = f.getBoundingClientRect();
|
|
1481
|
-
if (P.left >
|
|
1485
|
+
if (P.left > R.left) {
|
|
1482
1486
|
const A = parseInt(
|
|
1483
1487
|
f.getAttribute("data-index") || "",
|
|
1484
1488
|
10
|
|
1485
1489
|
);
|
|
1486
|
-
isNaN(A) || (
|
|
1490
|
+
isNaN(A) || (R = P, m = A);
|
|
1487
1491
|
} else
|
|
1488
1492
|
break;
|
|
1489
1493
|
}
|
|
@@ -1505,7 +1509,7 @@ function Jt(e) {
|
|
|
1505
1509
|
function u(m) {
|
|
1506
1510
|
t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
|
|
1507
1511
|
}
|
|
1508
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(
|
|
1512
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
|
|
1509
1513
|
/* @__PURE__ */ l(
|
|
1510
1514
|
"div",
|
|
1511
1515
|
{
|
|
@@ -2027,7 +2031,7 @@ const nn = {
|
|
|
2027
2031
|
builderComponents: !0,
|
|
2028
2032
|
builderLinkComponent: !0
|
|
2029
2033
|
}
|
|
2030
|
-
},
|
|
2034
|
+
}, oe = {
|
|
2031
2035
|
"@type": "@builder.io/sdk:Element",
|
|
2032
2036
|
responsiveStyles: {
|
|
2033
2037
|
large: {
|
|
@@ -2049,7 +2053,7 @@ const nn = {
|
|
|
2049
2053
|
text: "New tab"
|
|
2050
2054
|
}
|
|
2051
2055
|
}
|
|
2052
|
-
},
|
|
2056
|
+
}, ae = {
|
|
2053
2057
|
"@type": "@builder.io/sdk:Element",
|
|
2054
2058
|
responsiveStyles: {
|
|
2055
2059
|
large: {
|
|
@@ -2075,16 +2079,16 @@ const nn = {
|
|
|
2075
2079
|
name: "label",
|
|
2076
2080
|
type: "uiBlocks",
|
|
2077
2081
|
hideFromUI: !0,
|
|
2078
|
-
defaultValue: [
|
|
2082
|
+
defaultValue: [oe]
|
|
2079
2083
|
}, {
|
|
2080
2084
|
name: "content",
|
|
2081
2085
|
type: "uiBlocks",
|
|
2082
2086
|
hideFromUI: !0,
|
|
2083
|
-
defaultValue: [
|
|
2087
|
+
defaultValue: [ae]
|
|
2084
2088
|
}],
|
|
2085
2089
|
defaultValue: [{
|
|
2086
2090
|
label: [{
|
|
2087
|
-
...
|
|
2091
|
+
...oe,
|
|
2088
2092
|
component: {
|
|
2089
2093
|
name: "Text",
|
|
2090
2094
|
options: {
|
|
@@ -2093,7 +2097,7 @@ const nn = {
|
|
|
2093
2097
|
}
|
|
2094
2098
|
}],
|
|
2095
2099
|
content: [{
|
|
2096
|
-
...
|
|
2100
|
+
...ae,
|
|
2097
2101
|
component: {
|
|
2098
2102
|
name: "Text",
|
|
2099
2103
|
options: {
|
|
@@ -2103,7 +2107,7 @@ const nn = {
|
|
|
2103
2107
|
}]
|
|
2104
2108
|
}, {
|
|
2105
2109
|
label: [{
|
|
2106
|
-
...
|
|
2110
|
+
...oe,
|
|
2107
2111
|
component: {
|
|
2108
2112
|
name: "Text",
|
|
2109
2113
|
options: {
|
|
@@ -2112,7 +2116,7 @@ const nn = {
|
|
|
2112
2116
|
}
|
|
2113
2117
|
}],
|
|
2114
2118
|
content: [{
|
|
2115
|
-
...
|
|
2119
|
+
...ae,
|
|
2116
2120
|
component: {
|
|
2117
2121
|
name: "Text",
|
|
2118
2122
|
options: {
|
|
@@ -2660,7 +2664,7 @@ function yn(e) {
|
|
|
2660
2664
|
return;
|
|
2661
2665
|
}
|
|
2662
2666
|
x.preventDefault();
|
|
2663
|
-
const f = x.currentTarget || x.target,
|
|
2667
|
+
const f = x.currentTarget || x.target, R = e.customHeaders || {};
|
|
2664
2668
|
let P;
|
|
2665
2669
|
const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
|
|
2666
2670
|
let b;
|
|
@@ -2697,17 +2701,17 @@ function yn(e) {
|
|
|
2697
2701
|
Be(y, S, b);
|
|
2698
2702
|
}), P = JSON.stringify(y);
|
|
2699
2703
|
}
|
|
2700
|
-
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (
|
|
2701
|
-
const
|
|
2702
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2704
|
+
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (R["content-type"] = v));
|
|
2705
|
+
const E = new CustomEvent("presubmit", { detail: { body: P } });
|
|
2706
|
+
if (t.current && (t.current.dispatchEvent(E), E.defaultPrevented))
|
|
2703
2707
|
return;
|
|
2704
2708
|
i("sending");
|
|
2705
|
-
const
|
|
2709
|
+
const W = `${bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2706
2710
|
e.sendSubmissionsToEmail || ""
|
|
2707
2711
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2708
2712
|
fetch(
|
|
2709
|
-
e.sendSubmissionsTo === "email" ?
|
|
2710
|
-
{ body: P, headers:
|
|
2713
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2714
|
+
{ body: P, headers: R, method: e.method || "post" }
|
|
2711
2715
|
).then(
|
|
2712
2716
|
async (y) => {
|
|
2713
2717
|
let b;
|
|
@@ -2744,7 +2748,7 @@ function yn(e) {
|
|
|
2744
2748
|
);
|
|
2745
2749
|
}
|
|
2746
2750
|
}
|
|
2747
|
-
return /* @__PURE__ */ V(
|
|
2751
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
2748
2752
|
" ",
|
|
2749
2753
|
/* @__PURE__ */ V(
|
|
2750
2754
|
"form",
|
|
@@ -2757,7 +2761,7 @@ function yn(e) {
|
|
|
2757
2761
|
onSubmit: (x) => u(x),
|
|
2758
2762
|
...e.attributes,
|
|
2759
2763
|
children: [
|
|
2760
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2764
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, h) => /* @__PURE__ */ l(
|
|
2761
2765
|
z,
|
|
2762
2766
|
{
|
|
2763
2767
|
block: x,
|
|
@@ -3248,7 +3252,7 @@ const Vn = () => [{
|
|
|
3248
3252
|
component: Bn,
|
|
3249
3253
|
...Pn
|
|
3250
3254
|
}], ke = () => [{
|
|
3251
|
-
component:
|
|
3255
|
+
component: rt,
|
|
3252
3256
|
...Yt
|
|
3253
3257
|
}, {
|
|
3254
3258
|
component: jt,
|
|
@@ -3333,7 +3337,7 @@ const Vn = () => [{
|
|
|
3333
3337
|
}).join('');
|
|
3334
3338
|
styleEl.innerHTML = newStyleStr;
|
|
3335
3339
|
}
|
|
3336
|
-
}`,
|
|
3340
|
+
}`, Wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3337
3341
|
if (!navigator.cookieEnabled) {
|
|
3338
3342
|
return;
|
|
3339
3343
|
}
|
|
@@ -3371,12 +3375,12 @@ const Vn = () => [{
|
|
|
3371
3375
|
...t,
|
|
3372
3376
|
testVariationId: t.id,
|
|
3373
3377
|
id: e == null ? void 0 : e.id
|
|
3374
|
-
})),
|
|
3378
|
+
})), Fn = ({
|
|
3375
3379
|
canTrack: e,
|
|
3376
3380
|
content: t
|
|
3377
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
3381
|
+
}) => !(!(Y(t).length > 0) || !e || G()), Nn = (e) => e === "react" || e === "reactNative", He = Nn(U), $n = () => `
|
|
3378
3382
|
window.${je} = ${An}
|
|
3379
|
-
window.${Me} = ${
|
|
3383
|
+
window.${Me} = ${Wn}
|
|
3380
3384
|
`, Dn = (e, t) => `
|
|
3381
3385
|
window.${je}(
|
|
3382
3386
|
"${t}",${JSON.stringify(e)}, ${He}
|
|
@@ -3386,7 +3390,7 @@ const Vn = () => [{
|
|
|
3386
3390
|
}) => `window.${Me}(
|
|
3387
3391
|
"${t}", "${e}", ${He}
|
|
3388
3392
|
)`;
|
|
3389
|
-
function
|
|
3393
|
+
function se(e) {
|
|
3390
3394
|
return /* @__PURE__ */ l(
|
|
3391
3395
|
"script",
|
|
3392
3396
|
{
|
|
@@ -3491,7 +3495,7 @@ font-weight: ${s};
|
|
|
3491
3495
|
}
|
|
3492
3496
|
`, _n = (e) => e ? "" : qn, zn = (e) => `variant-${e}`;
|
|
3493
3497
|
function Jn(e) {
|
|
3494
|
-
var P, A, O, v,
|
|
3498
|
+
var P, A, O, v, E, W, y;
|
|
3495
3499
|
const t = _(null);
|
|
3496
3500
|
function n(b) {
|
|
3497
3501
|
var k, C;
|
|
@@ -3499,13 +3503,13 @@ function Jn(e) {
|
|
|
3499
3503
|
...e.builderContextSignal.rootState,
|
|
3500
3504
|
...b
|
|
3501
3505
|
};
|
|
3502
|
-
e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((
|
|
3503
|
-
...
|
|
3506
|
+
e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((w) => ({
|
|
3507
|
+
...w,
|
|
3504
3508
|
rootState: S
|
|
3505
3509
|
}));
|
|
3506
3510
|
}
|
|
3507
3511
|
function i(b) {
|
|
3508
|
-
var k, C,
|
|
3512
|
+
var k, C, w, F, j;
|
|
3509
3513
|
const S = {
|
|
3510
3514
|
...e.builderContextSignal.content,
|
|
3511
3515
|
...b,
|
|
@@ -3516,11 +3520,11 @@ function Jn(e) {
|
|
|
3516
3520
|
meta: {
|
|
3517
3521
|
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3518
3522
|
...b == null ? void 0 : b.meta,
|
|
3519
|
-
breakpoints: ((
|
|
3523
|
+
breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((j = (F = e.builderContextSignal.content) == null ? void 0 : F.meta) == null ? void 0 : j.breakpoints)
|
|
3520
3524
|
}
|
|
3521
3525
|
};
|
|
3522
|
-
e.setBuilderContextSignal((
|
|
3523
|
-
...
|
|
3526
|
+
e.setBuilderContextSignal((N) => ({
|
|
3527
|
+
...N,
|
|
3524
3528
|
content: S
|
|
3525
3529
|
}));
|
|
3526
3530
|
}
|
|
@@ -3539,16 +3543,16 @@ function Jn(e) {
|
|
|
3539
3543
|
trustedHosts: e.trustedHosts,
|
|
3540
3544
|
callbacks: {
|
|
3541
3545
|
configureSdk: (S) => {
|
|
3542
|
-
var
|
|
3546
|
+
var w;
|
|
3543
3547
|
const { breakpoints: k, contentId: C } = S;
|
|
3544
|
-
!C || C !== ((
|
|
3548
|
+
!C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || k && i({
|
|
3545
3549
|
meta: {
|
|
3546
3550
|
breakpoints: k
|
|
3547
3551
|
}
|
|
3548
3552
|
});
|
|
3549
3553
|
},
|
|
3550
3554
|
animation: (S) => {
|
|
3551
|
-
|
|
3555
|
+
Ne(S);
|
|
3552
3556
|
},
|
|
3553
3557
|
contentUpdate: (S) => {
|
|
3554
3558
|
i(S);
|
|
@@ -3575,13 +3579,13 @@ function Jn(e) {
|
|
|
3575
3579
|
function p(b) {
|
|
3576
3580
|
var S, k;
|
|
3577
3581
|
if (e.builderContextSignal.content) {
|
|
3578
|
-
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId,
|
|
3582
|
+
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, w = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
3579
3583
|
he({
|
|
3580
3584
|
type: "click",
|
|
3581
|
-
canTrack:
|
|
3582
|
-
contentId:
|
|
3585
|
+
canTrack: Q(e.canTrack),
|
|
3586
|
+
contentId: w,
|
|
3583
3587
|
apiKey: e.apiKey,
|
|
3584
|
-
variationId: C !==
|
|
3588
|
+
variationId: C !== w ? C : void 0,
|
|
3585
3589
|
...jn(b),
|
|
3586
3590
|
unique: !x
|
|
3587
3591
|
});
|
|
@@ -3591,13 +3595,13 @@ function Jn(e) {
|
|
|
3591
3595
|
function f() {
|
|
3592
3596
|
var S, k, C;
|
|
3593
3597
|
const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
|
|
3594
|
-
Object.entries(b).forEach(([
|
|
3595
|
-
if (!
|
|
3598
|
+
Object.entries(b).forEach(([w, F]) => {
|
|
3599
|
+
if (!F || g[w] || c[w] && !$())
|
|
3596
3600
|
return;
|
|
3597
|
-
g[
|
|
3598
|
-
const j =
|
|
3601
|
+
g[w] = !0;
|
|
3602
|
+
const j = F.replace(
|
|
3599
3603
|
/{{([^}]+)}}/g,
|
|
3600
|
-
(
|
|
3604
|
+
(N, Ke) => String(
|
|
3601
3605
|
H({
|
|
3602
3606
|
code: Ke,
|
|
3603
3607
|
context: e.context || {},
|
|
@@ -3608,18 +3612,18 @@ function Jn(e) {
|
|
|
3608
3612
|
})
|
|
3609
3613
|
)
|
|
3610
3614
|
);
|
|
3611
|
-
Qe(j).then((
|
|
3615
|
+
Qe(j).then((N) => N.json()).then((N) => {
|
|
3612
3616
|
n({
|
|
3613
|
-
[
|
|
3614
|
-
}), c[
|
|
3615
|
-
}).catch((
|
|
3616
|
-
console.error("error fetching dynamic data",
|
|
3617
|
+
[w]: N
|
|
3618
|
+
}), c[w] = !0;
|
|
3619
|
+
}).catch((N) => {
|
|
3620
|
+
console.error("error fetching dynamic data", F, N);
|
|
3617
3621
|
}).finally(() => {
|
|
3618
|
-
g[
|
|
3622
|
+
g[w] = !1;
|
|
3619
3623
|
});
|
|
3620
3624
|
});
|
|
3621
3625
|
}
|
|
3622
|
-
function
|
|
3626
|
+
function R() {
|
|
3623
3627
|
$() && window.dispatchEvent(
|
|
3624
3628
|
new CustomEvent(
|
|
3625
3629
|
"builder:component:stateChange",
|
|
@@ -3636,7 +3640,7 @@ function Jn(e) {
|
|
|
3636
3640
|
}
|
|
3637
3641
|
return B(() => {
|
|
3638
3642
|
var b, S;
|
|
3639
|
-
if (
|
|
3643
|
+
if (G()) {
|
|
3640
3644
|
if ($() && (window.addEventListener("message", s), ze(), Je({
|
|
3641
3645
|
...e.locale ? {
|
|
3642
3646
|
locale: e.locale
|
|
@@ -3650,39 +3654,39 @@ function Jn(e) {
|
|
|
3650
3654
|
}), Object.values(
|
|
3651
3655
|
e.builderContextSignal.componentInfos
|
|
3652
3656
|
).forEach((C) => {
|
|
3653
|
-
var
|
|
3654
|
-
const
|
|
3655
|
-
(
|
|
3657
|
+
var F;
|
|
3658
|
+
const w = Ye(C);
|
|
3659
|
+
(F = window.parent) == null || F.postMessage(w, "*");
|
|
3656
3660
|
}), window.addEventListener(
|
|
3657
3661
|
"builder:component:stateChangeListenerActivated",
|
|
3658
|
-
|
|
3659
|
-
)), e.builderContextSignal.content &&
|
|
3660
|
-
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId,
|
|
3662
|
+
R
|
|
3663
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3664
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, F = e.apiKey;
|
|
3661
3665
|
he({
|
|
3662
3666
|
type: "impression",
|
|
3663
3667
|
canTrack: !0,
|
|
3664
|
-
contentId:
|
|
3665
|
-
apiKey:
|
|
3666
|
-
variationId: C !==
|
|
3668
|
+
contentId: w,
|
|
3669
|
+
apiKey: F,
|
|
3670
|
+
variationId: C !== w ? C : void 0
|
|
3667
3671
|
});
|
|
3668
3672
|
}
|
|
3669
3673
|
if (we() && !$()) {
|
|
3670
|
-
const C = new URL(location.href).searchParams,
|
|
3671
|
-
`builder.overrides.${
|
|
3674
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), F = C.get(
|
|
3675
|
+
`builder.overrides.${w}`
|
|
3672
3676
|
), j = C.get("apiKey") || C.get("builder.space");
|
|
3673
|
-
|
|
3677
|
+
w === e.model && j === e.apiKey && (!e.content || F === e.content.id) && Re({
|
|
3674
3678
|
model: e.model,
|
|
3675
3679
|
apiKey: e.apiKey,
|
|
3676
3680
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3677
|
-
}).then((
|
|
3678
|
-
|
|
3681
|
+
}).then((N) => {
|
|
3682
|
+
N && i(N);
|
|
3679
3683
|
});
|
|
3680
3684
|
}
|
|
3681
3685
|
}
|
|
3682
3686
|
}, []), B(() => {
|
|
3683
|
-
e.apiKey ||
|
|
3687
|
+
e.apiKey || ce.error(
|
|
3684
3688
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3685
|
-
), d(), f(),
|
|
3689
|
+
), d(), f(), R();
|
|
3686
3690
|
}, []), B(() => {
|
|
3687
3691
|
e.content && i(e.content);
|
|
3688
3692
|
}, [e.content]), B(() => {
|
|
@@ -3690,7 +3694,7 @@ function Jn(e) {
|
|
|
3690
3694
|
}, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3691
3695
|
f();
|
|
3692
3696
|
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
|
|
3693
|
-
|
|
3697
|
+
R();
|
|
3694
3698
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3695
3699
|
e.data && n(e.data);
|
|
3696
3700
|
}, [e.data]), B(() => {
|
|
@@ -3698,21 +3702,21 @@ function Jn(e) {
|
|
|
3698
3702
|
locale: e.locale
|
|
3699
3703
|
});
|
|
3700
3704
|
}, [e.locale]), B(() => () => {
|
|
3701
|
-
|
|
3705
|
+
G() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3702
3706
|
"builder:component:stateChangeListenerActivated",
|
|
3703
|
-
|
|
3707
|
+
R
|
|
3704
3708
|
));
|
|
3705
3709
|
}, []), /* @__PURE__ */ l(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3706
3710
|
a,
|
|
3707
3711
|
{
|
|
3708
3712
|
ref: t,
|
|
3709
3713
|
onClick: (b) => p(b),
|
|
3710
|
-
"builder-content-id": (
|
|
3714
|
+
"builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
|
|
3711
3715
|
"builder-model": e.model,
|
|
3712
3716
|
...o(),
|
|
3713
3717
|
...e.contentWrapperProps,
|
|
3714
3718
|
className: zn(
|
|
3715
|
-
((
|
|
3719
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3716
3720
|
),
|
|
3717
3721
|
children: e.children
|
|
3718
3722
|
}
|
|
@@ -3732,7 +3736,7 @@ ${_n(e.isNestedRender)}
|
|
|
3732
3736
|
`.trim()
|
|
3733
3737
|
);
|
|
3734
3738
|
return /* @__PURE__ */ l(
|
|
3735
|
-
|
|
3739
|
+
Z,
|
|
3736
3740
|
{
|
|
3737
3741
|
id: "builderio-content",
|
|
3738
3742
|
styles: t,
|
|
@@ -3794,10 +3798,10 @@ function Ie(e) {
|
|
|
3794
3798
|
...ke(),
|
|
3795
3799
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3796
3800
|
].reduce(
|
|
3797
|
-
(f, { component:
|
|
3801
|
+
(f, { component: R, ...P }) => ({
|
|
3798
3802
|
...f,
|
|
3799
3803
|
[P.name]: {
|
|
3800
|
-
component:
|
|
3804
|
+
component: R,
|
|
3801
3805
|
...ge(P)
|
|
3802
3806
|
}
|
|
3803
3807
|
}),
|
|
@@ -3826,7 +3830,7 @@ function Ie(e) {
|
|
|
3826
3830
|
...ke(),
|
|
3827
3831
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3828
3832
|
].reduce(
|
|
3829
|
-
(f, { component:
|
|
3833
|
+
(f, { component: R, ...P }) => ({
|
|
3830
3834
|
...f,
|
|
3831
3835
|
[P.name]: ge(P)
|
|
3832
3836
|
}),
|
|
@@ -3864,7 +3868,7 @@ function Ie(e) {
|
|
|
3864
3868
|
setBuilderContextSignal: s,
|
|
3865
3869
|
children: [
|
|
3866
3870
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3867
|
-
|
|
3871
|
+
se,
|
|
3868
3872
|
{
|
|
3869
3873
|
id: "builderio-variant-visibility",
|
|
3870
3874
|
scriptStr: t,
|
|
@@ -3899,8 +3903,8 @@ function Ie(e) {
|
|
|
3899
3903
|
function Xn(e) {
|
|
3900
3904
|
var r;
|
|
3901
3905
|
const [t, n] = T(
|
|
3902
|
-
() =>
|
|
3903
|
-
canTrack:
|
|
3906
|
+
() => Fn({
|
|
3907
|
+
canTrack: Q(e.canTrack),
|
|
3904
3908
|
content: e.content
|
|
3905
3909
|
})
|
|
3906
3910
|
);
|
|
@@ -3924,22 +3928,22 @@ function Xn(e) {
|
|
|
3924
3928
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3925
3929
|
} : Xe({
|
|
3926
3930
|
item: e.content,
|
|
3927
|
-
canTrack:
|
|
3931
|
+
canTrack: Q(e.canTrack)
|
|
3928
3932
|
});
|
|
3929
3933
|
}
|
|
3930
3934
|
return B(() => {
|
|
3931
|
-
}, []), /* @__PURE__ */ V(
|
|
3935
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
3932
3936
|
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
|
|
3933
|
-
|
|
3937
|
+
se,
|
|
3934
3938
|
{
|
|
3935
3939
|
id: "builderio-init-variants-fns",
|
|
3936
3940
|
scriptStr: $n(),
|
|
3937
3941
|
nonce: e.nonce || ""
|
|
3938
3942
|
}
|
|
3939
3943
|
) : null,
|
|
3940
|
-
t ? /* @__PURE__ */ V(
|
|
3944
|
+
t ? /* @__PURE__ */ V(I, { children: [
|
|
3941
3945
|
/* @__PURE__ */ l(
|
|
3942
|
-
|
|
3946
|
+
Z,
|
|
3943
3947
|
{
|
|
3944
3948
|
id: "builderio-variants",
|
|
3945
3949
|
styles: o(),
|
|
@@ -3947,7 +3951,7 @@ function Xn(e) {
|
|
|
3947
3951
|
}
|
|
3948
3952
|
),
|
|
3949
3953
|
/* @__PURE__ */ l(
|
|
3950
|
-
|
|
3954
|
+
se,
|
|
3951
3955
|
{
|
|
3952
3956
|
id: "builderio-variants-visibility",
|
|
3953
3957
|
scriptStr: i(),
|
|
@@ -4024,7 +4028,7 @@ const Zn = async ({
|
|
|
4024
4028
|
}
|
|
4025
4029
|
}
|
|
4026
4030
|
}).catch((n) => {
|
|
4027
|
-
|
|
4031
|
+
ce.error("Could not fetch symbol content: ", n);
|
|
4028
4032
|
});
|
|
4029
4033
|
};
|
|
4030
4034
|
function ei(e) {
|
|
@@ -4088,7 +4092,7 @@ function ei(e) {
|
|
|
4088
4092
|
export {
|
|
4089
4093
|
D as Blocks,
|
|
4090
4094
|
me as BuilderContext,
|
|
4091
|
-
|
|
4095
|
+
rt as Button,
|
|
4092
4096
|
jt as Columns,
|
|
4093
4097
|
Xn as Content,
|
|
4094
4098
|
Mt as Fragment,
|