@builder.io/sdk-react 2.0.14 → 2.0.16
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 +25 -25
- package/lib/browser/blocks-exports.mjs +274 -281
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +23 -22
- package/lib/browser/init.cjs +2 -2
- package/lib/browser/init.mjs +6 -1
- package/lib/browser/{server-entry-13acc156.js → server-entry-1db0d96b.js} +1 -1
- package/lib/{node/server-entry-d6f4f920.cjs → browser/server-entry-c1666709.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +17 -0
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +1 -0
- package/lib/edge/{accordion-87e3ac98.cjs → accordion-09162a27.cjs} +1 -1
- package/lib/edge/{accordion-1d87140d.js → accordion-7c1c7c56.js} +1 -1
- package/lib/edge/{blocks-91726dda.cjs → blocks-273f24cc.cjs} +1 -1
- package/lib/edge/{blocks-40966fa4.js → blocks-46c07b56.js} +3 -3
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-45918a0a.js → button-a923f8ff.js} +2 -2
- package/lib/edge/{button-79b579a5.cjs → button-f2daea13.cjs} +1 -1
- package/lib/edge/columns-0b8c2260.cjs +28 -0
- package/lib/edge/{columns-b55666de.js → columns-eee4f51c.js} +7 -6
- package/lib/edge/{content-variants-56933eef.js → content-variants-1368cab1.js} +14 -13
- package/lib/edge/content-variants-575b5dbf.cjs +134 -0
- package/lib/edge/{evaluate-41623a71.cjs → evaluate-4c9b2e86.cjs} +10 -10
- package/lib/edge/{evaluate-2b7026be.js → evaluate-93701356.js} +336 -344
- package/lib/edge/form-bd184008.cjs +1 -0
- package/lib/edge/{form-7e2f833c.js → form-d0eb0af4.js} +15 -14
- package/lib/edge/{get-class-prop-name-8c963ff3.js → get-class-prop-name-1c373615.js} +1 -1
- package/lib/edge/{get-class-prop-name-b1c9455b.cjs → get-class-prop-name-7cd1376f.cjs} +1 -1
- package/lib/edge/{img-f5173c7a.cjs → img-6c8139db.cjs} +1 -1
- package/lib/edge/{img-d0f2941c.js → img-6e16ade6.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +2 -2
- package/lib/edge/init.mjs +6 -1
- package/lib/edge/{input-71715eac.js → input-a7e9c157.js} +1 -1
- package/lib/edge/{input-d76e00ea.cjs → input-c78fef2b.cjs} +1 -1
- package/lib/edge/{select-09cb37c7.js → select-3cf593bd.js} +1 -1
- package/lib/edge/{select-8c281d1f.cjs → select-bd1e231b.cjs} +1 -1
- package/lib/edge/{server-entry-7556ee3d.js → server-entry-6b3ad048.js} +1 -1
- package/lib/edge/{server-entry-65199b3b.cjs → server-entry-d09af943.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +1 -0
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +17 -0
- package/lib/edge/{slot-4350be16.js → slot-a5a9a30f.js} +7 -6
- package/lib/edge/slot-ab7fc875.cjs +1 -0
- package/lib/edge/{symbol-061ca26c.js → symbol-77d331c6.js} +2 -2
- package/lib/edge/{symbol-96f073c1.cjs → symbol-9de15518.cjs} +1 -1
- package/lib/edge/{tabs-081f284d.js → tabs-63d6ea85.js} +14 -13
- package/lib/edge/tabs-e6fa664e.cjs +1 -0
- package/lib/edge/{text-b277727f.js → text-4d508bbc.js} +9 -8
- package/lib/edge/text-ab5d2747.cjs +1 -0
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +317 -325
- 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-13acc156.js → server-entry-1db0d96b.js} +1 -1
- package/lib/{browser/server-entry-d6f4f920.cjs → node/server-entry-c1666709.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{node-runtime-1e74e14c.js → should-force-browser-runtime-in-node-1188ea7b.js} +48 -34
- package/lib/node/{node-runtime-9c4150c6.cjs → should-force-browser-runtime-in-node-37010e2f.cjs} +4 -4
- package/package.json +2 -4
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/types/server-index.d.ts +1 -0
- package/lib/edge/columns-bee45776.cjs +0 -28
- package/lib/edge/content-variants-c19f46ab.cjs +0 -134
- package/lib/edge/form-2724acae.cjs +0 -1
- package/lib/edge/slot-cae739f4.cjs +0 -1
- package/lib/edge/tabs-4806b2ae.cjs +0 -1
- package/lib/edge/text-3b4c1f89.cjs +0 -1
|
@@ -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
|
|
4
|
+
var ee = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as l, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as U,
|
|
7
|
-
import { createContext as Ee, useState as T, useEffect as
|
|
8
|
-
import { getFunctionArguments as Ze,
|
|
9
|
-
const
|
|
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-1db0d96b.js";
|
|
7
|
+
import { createContext as Ee, useState as T, useEffect as P, useRef as _, useContext as be, createElement as Be } from "react";
|
|
8
|
+
import { getFunctionArguments as Ze, shouldForceBrowserRuntimeInNode as et, runInNode as tt, parseCode as nt, getBuilderGlobals as it, set as Pe, fastClone as de } from "./should-force-browser-runtime-in-node-1188ea7b.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(E, { children:
|
|
11
|
+
return /* @__PURE__ */ l(E, { children: at(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 }) }) });
|
|
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,
|
|
@@ -251,11 +243,11 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
251
243
|
context: t,
|
|
252
244
|
enableCache: !0
|
|
253
245
|
});
|
|
254
|
-
|
|
246
|
+
Pe(a, r, d);
|
|
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
|
{
|
|
@@ -538,10 +530,10 @@ function te(e) {
|
|
|
538
530
|
function Bt(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, w,
|
|
536
|
+
var f, w, B;
|
|
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 = ((
|
|
562
|
+
const A = ((B = (w = h.steps) == null ? void 0 : w[1]) == null ? void 0 : B.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"
|
|
@@ -587,7 +579,7 @@ function Bt(e) {
|
|
|
587
579
|
].join(" ");
|
|
588
580
|
}
|
|
589
581
|
return /* @__PURE__ */ l(E, { children: n() && t() ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
|
|
590
|
-
|
|
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 Pt(e) {
|
|
599
591
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
600
592
|
}
|
|
601
|
-
const
|
|
593
|
+
const Vt = (e) => `on${Pt(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,7 +671,7 @@ function $t(e) {
|
|
|
679
671
|
}
|
|
680
672
|
);
|
|
681
673
|
}
|
|
682
|
-
function
|
|
674
|
+
function $t(e) {
|
|
683
675
|
function t() {
|
|
684
676
|
return e.includeBlockProps ? {
|
|
685
677
|
...fe({
|
|
@@ -697,7 +689,7 @@ function Dt(e) {
|
|
|
697
689
|
}
|
|
698
690
|
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
699
691
|
}
|
|
700
|
-
const
|
|
692
|
+
const Dt = ({
|
|
701
693
|
componentOptions: e,
|
|
702
694
|
builderBlock: t,
|
|
703
695
|
context: n,
|
|
@@ -730,12 +722,12 @@ const Lt = ({
|
|
|
730
722
|
function ye(e) {
|
|
731
723
|
var i;
|
|
732
724
|
const [t, n] = T(
|
|
733
|
-
() => e.isInteractive ?
|
|
725
|
+
() => e.isInteractive ? $t : e.componentRef
|
|
734
726
|
);
|
|
735
727
|
return /* @__PURE__ */ l(E, { children: e.componentRef ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
|
|
736
728
|
t,
|
|
737
729
|
{
|
|
738
|
-
...
|
|
730
|
+
...Dt({
|
|
739
731
|
componentOptions: e.componentOptions,
|
|
740
732
|
builderBlock: e.builderBlock,
|
|
741
733
|
context: e.context,
|
|
@@ -773,7 +765,7 @@ function xe(e) {
|
|
|
773
765
|
function z(e) {
|
|
774
766
|
var u, g, m, x;
|
|
775
767
|
function t() {
|
|
776
|
-
return
|
|
768
|
+
return Tt({
|
|
777
769
|
block: e.block,
|
|
778
770
|
context: e.context
|
|
779
771
|
});
|
|
@@ -786,7 +778,7 @@ function z(e) {
|
|
|
786
778
|
var p;
|
|
787
779
|
if (n.value && !n.update && !we())
|
|
788
780
|
return n.value;
|
|
789
|
-
const h = (p = e.block.repeat) != null && p.collection ? e.block :
|
|
781
|
+
const h = (p = e.block.repeat) != null && p.collection ? e.block : gt({
|
|
790
782
|
block: e.block,
|
|
791
783
|
localState: e.context.localState,
|
|
792
784
|
rootState: e.context.rootState,
|
|
@@ -797,7 +789,7 @@ function z(e) {
|
|
|
797
789
|
return n.value = h, n.update = !1, h;
|
|
798
790
|
}
|
|
799
791
|
function a() {
|
|
800
|
-
return
|
|
792
|
+
return Ct({
|
|
801
793
|
block: o(),
|
|
802
794
|
registeredComponents: e.registeredComponents
|
|
803
795
|
});
|
|
@@ -823,11 +815,11 @@ function z(e) {
|
|
|
823
815
|
blockChildren: (h = o().children) != null ? h : [],
|
|
824
816
|
componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
|
|
825
817
|
componentOptions: {
|
|
826
|
-
...
|
|
827
|
-
...
|
|
828
|
-
...
|
|
829
|
-
...
|
|
830
|
-
...
|
|
818
|
+
...lt(o()),
|
|
819
|
+
...Rt(a(), o()),
|
|
820
|
+
...Et(a(), e.context),
|
|
821
|
+
...It(a(), e.linkComponent),
|
|
822
|
+
...wt(
|
|
831
823
|
a(),
|
|
832
824
|
e.registeredComponents
|
|
833
825
|
)
|
|
@@ -840,15 +832,15 @@ function z(e) {
|
|
|
840
832
|
isInteractive: !((w = a == null ? void 0 : a()) != null && w.isRSC && U === "rsc")
|
|
841
833
|
};
|
|
842
834
|
}
|
|
843
|
-
return
|
|
835
|
+
return P(() => {
|
|
844
836
|
const h = o().id, p = o().animations;
|
|
845
|
-
p && h &&
|
|
837
|
+
p && h && pt(
|
|
846
838
|
p.map((f) => ({
|
|
847
839
|
...f,
|
|
848
840
|
elementId: h
|
|
849
841
|
}))
|
|
850
842
|
);
|
|
851
|
-
}, []),
|
|
843
|
+
}, []), P(() => {
|
|
852
844
|
n.update = !0;
|
|
853
845
|
}), /* @__PURE__ */ l(E, { children: s() ? /* @__PURE__ */ V(E, { children: [
|
|
854
846
|
/* @__PURE__ */ l(Bt, { block: o(), context: e.context }),
|
|
@@ -884,7 +876,7 @@ function z(e) {
|
|
|
884
876
|
},
|
|
885
877
|
p
|
|
886
878
|
)) }) : /* @__PURE__ */ V(
|
|
887
|
-
|
|
879
|
+
Nt,
|
|
888
880
|
{
|
|
889
881
|
Wrapper: r(),
|
|
890
882
|
block: o(),
|
|
@@ -919,7 +911,7 @@ function z(e) {
|
|
|
919
911
|
) })
|
|
920
912
|
] }) : null });
|
|
921
913
|
}
|
|
922
|
-
function
|
|
914
|
+
function Lt(e) {
|
|
923
915
|
const t = _(null);
|
|
924
916
|
function n() {
|
|
925
917
|
var a;
|
|
@@ -951,7 +943,7 @@ function Ot(e) {
|
|
|
951
943
|
"*"
|
|
952
944
|
));
|
|
953
945
|
}
|
|
954
|
-
return
|
|
946
|
+
return P(() => {
|
|
955
947
|
}, []), /* @__PURE__ */ V(E, { children: [
|
|
956
948
|
/* @__PURE__ */ l(
|
|
957
949
|
e.BlocksWrapper,
|
|
@@ -979,7 +971,7 @@ function D(e) {
|
|
|
979
971
|
var i, o, a;
|
|
980
972
|
const t = be(me), n = be(Ve);
|
|
981
973
|
return /* @__PURE__ */ l(
|
|
982
|
-
|
|
974
|
+
Lt,
|
|
983
975
|
{
|
|
984
976
|
blocks: e.blocks,
|
|
985
977
|
parent: e.parent,
|
|
@@ -1000,8 +992,8 @@ function D(e) {
|
|
|
1000
992
|
}
|
|
1001
993
|
);
|
|
1002
994
|
}
|
|
1003
|
-
const
|
|
1004
|
-
function
|
|
995
|
+
const Ot = (e) => `builder-columns ${e}-breakpoints`;
|
|
996
|
+
function Ut(e) {
|
|
1005
997
|
var A, O;
|
|
1006
998
|
const [t, n] = T(
|
|
1007
999
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -1016,8 +1008,8 @@ function jt(e) {
|
|
|
1016
1008
|
return ((R = i[v]) == null ? void 0 : R.width) || 100 / i.length;
|
|
1017
1009
|
}
|
|
1018
1010
|
function c(v) {
|
|
1019
|
-
const R = d(v),
|
|
1020
|
-
return `calc(${R}% - ${
|
|
1011
|
+
const R = d(v), W = t * (i.length - 1) * (R / 100);
|
|
1012
|
+
return `calc(${R}% - ${W}px)`;
|
|
1021
1013
|
}
|
|
1022
1014
|
function u({
|
|
1023
1015
|
stackedStyle: v,
|
|
@@ -1044,18 +1036,18 @@ function jt(e) {
|
|
|
1044
1036
|
};
|
|
1045
1037
|
}
|
|
1046
1038
|
function p(v) {
|
|
1047
|
-
const R = v === 0 ? 0 : t,
|
|
1039
|
+
const R = v === 0 ? 0 : t, W = c(v), y = `${R}px`, b = "100%", S = 0;
|
|
1048
1040
|
return {
|
|
1049
1041
|
...{
|
|
1050
1042
|
display: "flex",
|
|
1051
1043
|
flexDirection: "column",
|
|
1052
1044
|
alignItems: "stretch"
|
|
1053
1045
|
},
|
|
1054
|
-
width:
|
|
1046
|
+
width: W,
|
|
1055
1047
|
["marginLeft"]: y,
|
|
1056
1048
|
"--column-width-mobile": g({
|
|
1057
1049
|
stackedStyle: b,
|
|
1058
|
-
desktopStyle:
|
|
1050
|
+
desktopStyle: W
|
|
1059
1051
|
}),
|
|
1060
1052
|
"--column-margin-left-mobile": g({
|
|
1061
1053
|
stackedStyle: S,
|
|
@@ -1063,7 +1055,7 @@ function jt(e) {
|
|
|
1063
1055
|
}),
|
|
1064
1056
|
"--column-width-tablet": u({
|
|
1065
1057
|
stackedStyle: b,
|
|
1066
|
-
desktopStyle:
|
|
1058
|
+
desktopStyle: W
|
|
1067
1059
|
}),
|
|
1068
1060
|
"--column-margin-left-tablet": u({
|
|
1069
1061
|
stackedStyle: S,
|
|
@@ -1072,9 +1064,9 @@ function jt(e) {
|
|
|
1072
1064
|
};
|
|
1073
1065
|
}
|
|
1074
1066
|
function f(v) {
|
|
1075
|
-
var
|
|
1067
|
+
var W, y;
|
|
1076
1068
|
return Oe(
|
|
1077
|
-
((y = (
|
|
1069
|
+
((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
|
|
1078
1070
|
)[v].max;
|
|
1079
1071
|
}
|
|
1080
1072
|
function w() {
|
|
@@ -1105,7 +1097,7 @@ function jt(e) {
|
|
|
1105
1097
|
},
|
|
1106
1098
|
`;
|
|
1107
1099
|
}
|
|
1108
|
-
function
|
|
1100
|
+
function B(v, R) {
|
|
1109
1101
|
return {
|
|
1110
1102
|
...v.link ? {
|
|
1111
1103
|
href: v.link
|
|
@@ -1118,11 +1110,11 @@ function jt(e) {
|
|
|
1118
1110
|
/* @__PURE__ */ V(
|
|
1119
1111
|
"div",
|
|
1120
1112
|
{
|
|
1121
|
-
className:
|
|
1113
|
+
className: Ot((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1122
1114
|
style: h(),
|
|
1123
1115
|
children: [
|
|
1124
1116
|
/* @__PURE__ */ l(
|
|
1125
|
-
|
|
1117
|
+
Z,
|
|
1126
1118
|
{
|
|
1127
1119
|
id: "builderio-columns",
|
|
1128
1120
|
styles: w(),
|
|
@@ -1134,7 +1126,7 @@ function jt(e) {
|
|
|
1134
1126
|
{
|
|
1135
1127
|
TagName: s(v),
|
|
1136
1128
|
actionAttributes: {},
|
|
1137
|
-
attributes:
|
|
1129
|
+
attributes: B(v, R),
|
|
1138
1130
|
children: /* @__PURE__ */ l(
|
|
1139
1131
|
D,
|
|
1140
1132
|
{
|
|
@@ -1161,17 +1153,17 @@ function jt(e) {
|
|
|
1161
1153
|
}` })
|
|
1162
1154
|
] });
|
|
1163
1155
|
}
|
|
1164
|
-
function
|
|
1156
|
+
function jt(e) {
|
|
1165
1157
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1166
1158
|
}
|
|
1167
1159
|
function ve(e) {
|
|
1168
1160
|
return e.replace(/http(s)?:/, "");
|
|
1169
1161
|
}
|
|
1170
|
-
function
|
|
1162
|
+
function Mt(e = "", t, n) {
|
|
1171
1163
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1172
1164
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1173
1165
|
}
|
|
1174
|
-
function
|
|
1166
|
+
function Ht(e, t) {
|
|
1175
1167
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1176
1168
|
return e;
|
|
1177
1169
|
if (t === "master")
|
|
@@ -1183,18 +1175,18 @@ function Kt(e, t) {
|
|
|
1183
1175
|
}
|
|
1184
1176
|
return null;
|
|
1185
1177
|
}
|
|
1186
|
-
function
|
|
1178
|
+
function te(e) {
|
|
1187
1179
|
if (!e)
|
|
1188
1180
|
return e;
|
|
1189
1181
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1190
1182
|
if (e.match(/builder\.io/)) {
|
|
1191
1183
|
let n = e;
|
|
1192
1184
|
const i = Number(e.split("?width=")[1]);
|
|
1193
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1185
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Mt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1194
1186
|
}
|
|
1195
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1187
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ht(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1196
1188
|
}
|
|
1197
|
-
function
|
|
1189
|
+
function Kt(e) {
|
|
1198
1190
|
var o, a, r, s, d, c;
|
|
1199
1191
|
function t() {
|
|
1200
1192
|
var m;
|
|
@@ -1206,10 +1198,10 @@ function qt(e) {
|
|
|
1206
1198
|
if (!e.noWebp) {
|
|
1207
1199
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1208
1200
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1209
|
-
return console.debug("Removed given srcset"),
|
|
1201
|
+
return console.debug("Removed given srcset"), te(g);
|
|
1210
1202
|
} else if (e.image && !e.srcset)
|
|
1211
|
-
return
|
|
1212
|
-
return
|
|
1203
|
+
return te(g);
|
|
1204
|
+
return te(g);
|
|
1213
1205
|
}
|
|
1214
1206
|
}
|
|
1215
1207
|
function n() {
|
|
@@ -1226,7 +1218,7 @@ function qt(e) {
|
|
|
1226
1218
|
};
|
|
1227
1219
|
return e.aspectRatio ? u : void 0;
|
|
1228
1220
|
}
|
|
1229
|
-
return
|
|
1221
|
+
return P(() => {
|
|
1230
1222
|
}, []), /* @__PURE__ */ V(E, { children: [
|
|
1231
1223
|
/* @__PURE__ */ V(E, { children: [
|
|
1232
1224
|
/* @__PURE__ */ V("picture", { children: [
|
|
@@ -1281,7 +1273,7 @@ function qt(e) {
|
|
|
1281
1273
|
}` })
|
|
1282
1274
|
] });
|
|
1283
1275
|
}
|
|
1284
|
-
function
|
|
1276
|
+
function qt(e) {
|
|
1285
1277
|
return /* @__PURE__ */ l(
|
|
1286
1278
|
"section",
|
|
1287
1279
|
{
|
|
@@ -1302,7 +1294,7 @@ function _t(e) {
|
|
|
1302
1294
|
}
|
|
1303
1295
|
);
|
|
1304
1296
|
}
|
|
1305
|
-
const
|
|
1297
|
+
const ne = {
|
|
1306
1298
|
"@type": "@builder.io/sdk:Element",
|
|
1307
1299
|
layerName: "Accordion item title",
|
|
1308
1300
|
responsiveStyles: {
|
|
@@ -1331,7 +1323,7 @@ const oe = {
|
|
|
1331
1323
|
}
|
|
1332
1324
|
}
|
|
1333
1325
|
}]
|
|
1334
|
-
},
|
|
1326
|
+
}, ie = {
|
|
1335
1327
|
"@type": "@builder.io/sdk:Element",
|
|
1336
1328
|
layerName: "Accordion item detail",
|
|
1337
1329
|
responsiveStyles: {
|
|
@@ -1362,7 +1354,7 @@ const oe = {
|
|
|
1362
1354
|
}
|
|
1363
1355
|
}
|
|
1364
1356
|
}]
|
|
1365
|
-
},
|
|
1357
|
+
}, _t = {
|
|
1366
1358
|
name: "Builder:Accordion",
|
|
1367
1359
|
canHaveChildren: !0,
|
|
1368
1360
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1379,19 +1371,19 @@ const oe = {
|
|
|
1379
1371
|
name: "title",
|
|
1380
1372
|
type: "uiBlocks",
|
|
1381
1373
|
hideFromUI: !0,
|
|
1382
|
-
defaultValue: [
|
|
1374
|
+
defaultValue: [ne]
|
|
1383
1375
|
}, {
|
|
1384
1376
|
name: "detail",
|
|
1385
1377
|
type: "uiBlocks",
|
|
1386
1378
|
hideFromUI: !0,
|
|
1387
|
-
defaultValue: [
|
|
1379
|
+
defaultValue: [ie]
|
|
1388
1380
|
}],
|
|
1389
1381
|
defaultValue: [{
|
|
1390
|
-
title: [
|
|
1391
|
-
detail: [
|
|
1382
|
+
title: [ne],
|
|
1383
|
+
detail: [ie]
|
|
1392
1384
|
}, {
|
|
1393
|
-
title: [
|
|
1394
|
-
detail: [
|
|
1385
|
+
title: [ne],
|
|
1386
|
+
detail: [ie]
|
|
1395
1387
|
}],
|
|
1396
1388
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1397
1389
|
}, {
|
|
@@ -1427,7 +1419,7 @@ const oe = {
|
|
|
1427
1419
|
builderLinkComponent: !0
|
|
1428
1420
|
}
|
|
1429
1421
|
}, Se = (e) => e.toString();
|
|
1430
|
-
function
|
|
1422
|
+
function zt(e) {
|
|
1431
1423
|
var g;
|
|
1432
1424
|
const [t, n] = T(() => []);
|
|
1433
1425
|
function i() {
|
|
@@ -1477,13 +1469,13 @@ function Jt(e) {
|
|
|
1477
1469
|
if (f) {
|
|
1478
1470
|
if (f.classList.contains("builder-accordion-detail"))
|
|
1479
1471
|
continue;
|
|
1480
|
-
const
|
|
1481
|
-
if (
|
|
1472
|
+
const B = f.getBoundingClientRect();
|
|
1473
|
+
if (B.left > w.left) {
|
|
1482
1474
|
const A = parseInt(
|
|
1483
1475
|
f.getAttribute("data-index") || "",
|
|
1484
1476
|
10
|
|
1485
1477
|
);
|
|
1486
|
-
isNaN(A) || (w =
|
|
1478
|
+
isNaN(A) || (w = B, m = A);
|
|
1487
1479
|
} else
|
|
1488
1480
|
break;
|
|
1489
1481
|
}
|
|
@@ -1550,7 +1542,7 @@ function Jt(e) {
|
|
|
1550
1542
|
) : null
|
|
1551
1543
|
] })) });
|
|
1552
1544
|
}
|
|
1553
|
-
const
|
|
1545
|
+
const Jt = {
|
|
1554
1546
|
name: "Core:Button",
|
|
1555
1547
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1556
1548
|
defaultStyles: {
|
|
@@ -1586,7 +1578,7 @@ const Yt = {
|
|
|
1586
1578
|
shouldReceiveBuilderProps: {
|
|
1587
1579
|
builderLinkComponent: !0
|
|
1588
1580
|
}
|
|
1589
|
-
},
|
|
1581
|
+
}, Yt = {
|
|
1590
1582
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1591
1583
|
name: "Columns",
|
|
1592
1584
|
isRSC: !0,
|
|
@@ -1793,13 +1785,13 @@ const Yt = {
|
|
|
1793
1785
|
builderComponents: !0,
|
|
1794
1786
|
builderLinkComponent: !0
|
|
1795
1787
|
}
|
|
1796
|
-
},
|
|
1788
|
+
}, Gt = {
|
|
1797
1789
|
name: "Fragment",
|
|
1798
1790
|
static: !0,
|
|
1799
1791
|
hidden: !0,
|
|
1800
1792
|
canHaveChildren: !0,
|
|
1801
1793
|
noWrap: !0
|
|
1802
|
-
},
|
|
1794
|
+
}, Qt = {
|
|
1803
1795
|
name: "Image",
|
|
1804
1796
|
static: !0,
|
|
1805
1797
|
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",
|
|
@@ -1907,7 +1899,7 @@ const Yt = {
|
|
|
1907
1899
|
shouldReceiveBuilderProps: {
|
|
1908
1900
|
builderBlock: !0
|
|
1909
1901
|
}
|
|
1910
|
-
},
|
|
1902
|
+
}, Xt = {
|
|
1911
1903
|
name: "Core:Section",
|
|
1912
1904
|
static: !0,
|
|
1913
1905
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1946,7 +1938,7 @@ const Yt = {
|
|
|
1946
1938
|
}
|
|
1947
1939
|
}
|
|
1948
1940
|
}]
|
|
1949
|
-
},
|
|
1941
|
+
}, Zt = {
|
|
1950
1942
|
name: "Slot",
|
|
1951
1943
|
isRSC: !0,
|
|
1952
1944
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1964,7 +1956,7 @@ const Yt = {
|
|
|
1964
1956
|
builderComponents: !0
|
|
1965
1957
|
}
|
|
1966
1958
|
};
|
|
1967
|
-
function
|
|
1959
|
+
function en(e) {
|
|
1968
1960
|
var t, n, i;
|
|
1969
1961
|
return /* @__PURE__ */ l(
|
|
1970
1962
|
"div",
|
|
@@ -1988,7 +1980,7 @@ function tn(e) {
|
|
|
1988
1980
|
}
|
|
1989
1981
|
);
|
|
1990
1982
|
}
|
|
1991
|
-
const
|
|
1983
|
+
const tn = {
|
|
1992
1984
|
name: "Symbol",
|
|
1993
1985
|
noWrap: !0,
|
|
1994
1986
|
static: !0,
|
|
@@ -2027,7 +2019,7 @@ const nn = {
|
|
|
2027
2019
|
builderComponents: !0,
|
|
2028
2020
|
builderLinkComponent: !0
|
|
2029
2021
|
}
|
|
2030
|
-
},
|
|
2022
|
+
}, oe = {
|
|
2031
2023
|
"@type": "@builder.io/sdk:Element",
|
|
2032
2024
|
responsiveStyles: {
|
|
2033
2025
|
large: {
|
|
@@ -2049,7 +2041,7 @@ const nn = {
|
|
|
2049
2041
|
text: "New tab"
|
|
2050
2042
|
}
|
|
2051
2043
|
}
|
|
2052
|
-
},
|
|
2044
|
+
}, ae = {
|
|
2053
2045
|
"@type": "@builder.io/sdk:Element",
|
|
2054
2046
|
responsiveStyles: {
|
|
2055
2047
|
large: {
|
|
@@ -2065,7 +2057,7 @@ const nn = {
|
|
|
2065
2057
|
text: "New tab content "
|
|
2066
2058
|
}
|
|
2067
2059
|
}
|
|
2068
|
-
},
|
|
2060
|
+
}, nn = {
|
|
2069
2061
|
name: "Builder: Tabs",
|
|
2070
2062
|
inputs: [{
|
|
2071
2063
|
name: "tabs",
|
|
@@ -2075,16 +2067,16 @@ const nn = {
|
|
|
2075
2067
|
name: "label",
|
|
2076
2068
|
type: "uiBlocks",
|
|
2077
2069
|
hideFromUI: !0,
|
|
2078
|
-
defaultValue: [
|
|
2070
|
+
defaultValue: [oe]
|
|
2079
2071
|
}, {
|
|
2080
2072
|
name: "content",
|
|
2081
2073
|
type: "uiBlocks",
|
|
2082
2074
|
hideFromUI: !0,
|
|
2083
|
-
defaultValue: [
|
|
2075
|
+
defaultValue: [ae]
|
|
2084
2076
|
}],
|
|
2085
2077
|
defaultValue: [{
|
|
2086
2078
|
label: [{
|
|
2087
|
-
...
|
|
2079
|
+
...oe,
|
|
2088
2080
|
component: {
|
|
2089
2081
|
name: "Text",
|
|
2090
2082
|
options: {
|
|
@@ -2093,7 +2085,7 @@ const nn = {
|
|
|
2093
2085
|
}
|
|
2094
2086
|
}],
|
|
2095
2087
|
content: [{
|
|
2096
|
-
...
|
|
2088
|
+
...ae,
|
|
2097
2089
|
component: {
|
|
2098
2090
|
name: "Text",
|
|
2099
2091
|
options: {
|
|
@@ -2103,7 +2095,7 @@ const nn = {
|
|
|
2103
2095
|
}]
|
|
2104
2096
|
}, {
|
|
2105
2097
|
label: [{
|
|
2106
|
-
...
|
|
2098
|
+
...oe,
|
|
2107
2099
|
component: {
|
|
2108
2100
|
name: "Text",
|
|
2109
2101
|
options: {
|
|
@@ -2112,7 +2104,7 @@ const nn = {
|
|
|
2112
2104
|
}
|
|
2113
2105
|
}],
|
|
2114
2106
|
content: [{
|
|
2115
|
-
...
|
|
2107
|
+
...ae,
|
|
2116
2108
|
component: {
|
|
2117
2109
|
name: "Text",
|
|
2118
2110
|
options: {
|
|
@@ -2169,7 +2161,7 @@ const nn = {
|
|
|
2169
2161
|
builderLinkComponent: !0
|
|
2170
2162
|
}
|
|
2171
2163
|
};
|
|
2172
|
-
function
|
|
2164
|
+
function on(e) {
|
|
2173
2165
|
var a;
|
|
2174
2166
|
const [t, n] = T(
|
|
2175
2167
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2228,7 +2220,7 @@ function an(e) {
|
|
|
2228
2220
|
) }) : null
|
|
2229
2221
|
] });
|
|
2230
2222
|
}
|
|
2231
|
-
const
|
|
2223
|
+
const an = {
|
|
2232
2224
|
shouldReceiveBuilderProps: {
|
|
2233
2225
|
builderBlock: !1,
|
|
2234
2226
|
builderContext: !0
|
|
@@ -2251,7 +2243,7 @@ const rn = {
|
|
|
2251
2243
|
textAlign: "center"
|
|
2252
2244
|
}
|
|
2253
2245
|
};
|
|
2254
|
-
function
|
|
2246
|
+
function rn(e) {
|
|
2255
2247
|
function t() {
|
|
2256
2248
|
var s;
|
|
2257
2249
|
const n = e.builderContext, {
|
|
@@ -2283,7 +2275,7 @@ function ln(e) {
|
|
|
2283
2275
|
}
|
|
2284
2276
|
);
|
|
2285
2277
|
}
|
|
2286
|
-
const
|
|
2278
|
+
const ln = {
|
|
2287
2279
|
name: "Custom Code",
|
|
2288
2280
|
static: !0,
|
|
2289
2281
|
requiredPermissions: ["editCode"],
|
|
@@ -2306,9 +2298,9 @@ const sn = {
|
|
|
2306
2298
|
advanced: !0
|
|
2307
2299
|
}]
|
|
2308
2300
|
};
|
|
2309
|
-
function
|
|
2301
|
+
function sn(e) {
|
|
2310
2302
|
const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2311
|
-
return
|
|
2303
|
+
return P(() => {
|
|
2312
2304
|
var s;
|
|
2313
2305
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2314
2306
|
return;
|
|
@@ -2344,7 +2336,7 @@ function cn(e) {
|
|
|
2344
2336
|
}
|
|
2345
2337
|
);
|
|
2346
2338
|
}
|
|
2347
|
-
const
|
|
2339
|
+
const cn = {
|
|
2348
2340
|
name: "Embed",
|
|
2349
2341
|
static: !0,
|
|
2350
2342
|
inputs: [{
|
|
@@ -2359,8 +2351,8 @@ const dn = {
|
|
|
2359
2351
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2360
2352
|
hideFromUI: !0
|
|
2361
2353
|
}]
|
|
2362
|
-
},
|
|
2363
|
-
function
|
|
2354
|
+
}, dn = ["text/javascript", "application/javascript", "application/ecmascript"], un = (e) => dn.includes(e.type);
|
|
2355
|
+
function mn(e) {
|
|
2364
2356
|
const t = _(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2365
2357
|
function d() {
|
|
2366
2358
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2372,7 +2364,7 @@ function fn(e) {
|
|
|
2372
2364
|
n.push(g.src);
|
|
2373
2365
|
const m = document.createElement("script");
|
|
2374
2366
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2375
|
-
} else if (
|
|
2367
|
+
} else if (un(g) && !o.includes(g.innerText))
|
|
2376
2368
|
try {
|
|
2377
2369
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2378
2370
|
} catch (m) {
|
|
@@ -2380,7 +2372,7 @@ function fn(e) {
|
|
|
2380
2372
|
}
|
|
2381
2373
|
}
|
|
2382
2374
|
}
|
|
2383
|
-
return
|
|
2375
|
+
return P(() => {
|
|
2384
2376
|
t.current && !r && (s(!0), d());
|
|
2385
2377
|
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2386
2378
|
"div",
|
|
@@ -2391,7 +2383,7 @@ function fn(e) {
|
|
|
2391
2383
|
}
|
|
2392
2384
|
);
|
|
2393
2385
|
}
|
|
2394
|
-
const
|
|
2386
|
+
const fn = {
|
|
2395
2387
|
name: "Form:Form",
|
|
2396
2388
|
// editableTags: ['builder-form-error']
|
|
2397
2389
|
defaults: {
|
|
@@ -2628,14 +2620,14 @@ const hn = {
|
|
|
2628
2620
|
builderComponents: !0,
|
|
2629
2621
|
builderLinkComponent: !0
|
|
2630
2622
|
}
|
|
2631
|
-
},
|
|
2623
|
+
}, hn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], gn = () => {
|
|
2632
2624
|
const e = process.env.NODE_ENV || "production";
|
|
2633
|
-
return
|
|
2634
|
-
},
|
|
2625
|
+
return hn.includes(e) ? e : "production";
|
|
2626
|
+
}, bn = (e, t, n) => {
|
|
2635
2627
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2636
2628
|
return i === void 0 || i === e ? n : i;
|
|
2637
2629
|
};
|
|
2638
|
-
function
|
|
2630
|
+
function pn(e) {
|
|
2639
2631
|
var g, m;
|
|
2640
2632
|
const t = _(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2641
2633
|
function d(x) {
|
|
@@ -2661,7 +2653,7 @@ function yn(e) {
|
|
|
2661
2653
|
}
|
|
2662
2654
|
x.preventDefault();
|
|
2663
2655
|
const f = x.currentTarget || x.target, w = e.customHeaders || {};
|
|
2664
|
-
let
|
|
2656
|
+
let B;
|
|
2665
2657
|
const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
|
|
2666
2658
|
let b;
|
|
2667
2659
|
const S = y.name;
|
|
@@ -2690,30 +2682,30 @@ function yn(e) {
|
|
|
2690
2682
|
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
|
|
2691
2683
|
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
|
|
2692
2684
|
}), v !== "application/json")
|
|
2693
|
-
|
|
2685
|
+
B = A;
|
|
2694
2686
|
else {
|
|
2695
2687
|
const y = {};
|
|
2696
2688
|
Array.from(O).forEach(({ value: b, key: S }) => {
|
|
2697
|
-
|
|
2698
|
-
}),
|
|
2689
|
+
Pe(y, S, b);
|
|
2690
|
+
}), B = JSON.stringify(y);
|
|
2699
2691
|
}
|
|
2700
2692
|
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (w["content-type"] = v));
|
|
2701
|
-
const R = new CustomEvent("presubmit", { detail: { body:
|
|
2693
|
+
const R = new CustomEvent("presubmit", { detail: { body: B } });
|
|
2702
2694
|
if (t.current && (t.current.dispatchEvent(R), R.defaultPrevented))
|
|
2703
2695
|
return;
|
|
2704
2696
|
i("sending");
|
|
2705
|
-
const
|
|
2697
|
+
const W = `${gn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2706
2698
|
e.sendSubmissionsToEmail || ""
|
|
2707
2699
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2708
2700
|
fetch(
|
|
2709
|
-
e.sendSubmissionsTo === "email" ?
|
|
2710
|
-
{ body:
|
|
2701
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2702
|
+
{ body: B, headers: w, method: e.method || "post" }
|
|
2711
2703
|
).then(
|
|
2712
2704
|
async (y) => {
|
|
2713
2705
|
let b;
|
|
2714
2706
|
const S = y.headers.get("content-type");
|
|
2715
2707
|
if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
|
|
2716
|
-
let k =
|
|
2708
|
+
let k = bn(b, e.errorMessagePath);
|
|
2717
2709
|
k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
|
|
2718
2710
|
}
|
|
2719
2711
|
if (a(b), i(y.ok ? "success" : "error"), y.ok) {
|
|
@@ -2800,7 +2792,7 @@ function yn(e) {
|
|
|
2800
2792
|
" "
|
|
2801
2793
|
] });
|
|
2802
2794
|
}
|
|
2803
|
-
const
|
|
2795
|
+
const yn = {
|
|
2804
2796
|
name: "Form:Input",
|
|
2805
2797
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2806
2798
|
inputs: [
|
|
@@ -2852,8 +2844,8 @@ const xn = {
|
|
|
2852
2844
|
borderColor: "#ccc"
|
|
2853
2845
|
}
|
|
2854
2846
|
};
|
|
2855
|
-
function
|
|
2856
|
-
return /* @__PURE__ */
|
|
2847
|
+
function xn(e) {
|
|
2848
|
+
return /* @__PURE__ */ Be(
|
|
2857
2849
|
"input",
|
|
2858
2850
|
{
|
|
2859
2851
|
...e.attributes,
|
|
@@ -2867,7 +2859,7 @@ function vn(e) {
|
|
|
2867
2859
|
}
|
|
2868
2860
|
);
|
|
2869
2861
|
}
|
|
2870
|
-
const
|
|
2862
|
+
const vn = {
|
|
2871
2863
|
name: "Form:Select",
|
|
2872
2864
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2873
2865
|
defaultStyles: {
|
|
@@ -2910,9 +2902,9 @@ const Sn = {
|
|
|
2910
2902
|
static: !0,
|
|
2911
2903
|
noWrap: !0
|
|
2912
2904
|
};
|
|
2913
|
-
function
|
|
2905
|
+
function Sn(e) {
|
|
2914
2906
|
var t;
|
|
2915
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ Be(
|
|
2916
2908
|
"select",
|
|
2917
2909
|
{
|
|
2918
2910
|
...e.attributes,
|
|
@@ -2925,7 +2917,7 @@ function kn(e) {
|
|
|
2925
2917
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2926
2918
|
);
|
|
2927
2919
|
}
|
|
2928
|
-
const
|
|
2920
|
+
const kn = {
|
|
2929
2921
|
name: "Form:SubmitButton",
|
|
2930
2922
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2931
2923
|
defaultStyles: {
|
|
@@ -2951,10 +2943,10 @@ const Cn = {
|
|
|
2951
2943
|
// TODO: defaultChildren
|
|
2952
2944
|
// canHaveChildren: true,
|
|
2953
2945
|
};
|
|
2954
|
-
function
|
|
2946
|
+
function Cn(e) {
|
|
2955
2947
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2956
2948
|
}
|
|
2957
|
-
const
|
|
2949
|
+
const Tn = {
|
|
2958
2950
|
name: "Form:TextArea",
|
|
2959
2951
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2960
2952
|
inputs: [{
|
|
@@ -2991,7 +2983,7 @@ const In = {
|
|
|
2991
2983
|
static: !0,
|
|
2992
2984
|
noWrap: !0
|
|
2993
2985
|
};
|
|
2994
|
-
function
|
|
2986
|
+
function In(e) {
|
|
2995
2987
|
return /* @__PURE__ */ l(
|
|
2996
2988
|
"textarea",
|
|
2997
2989
|
{
|
|
@@ -3004,7 +2996,7 @@ function wn(e) {
|
|
|
3004
2996
|
}
|
|
3005
2997
|
);
|
|
3006
2998
|
}
|
|
3007
|
-
const
|
|
2999
|
+
const wn = {
|
|
3008
3000
|
// friendlyName?
|
|
3009
3001
|
name: "Raw:Img",
|
|
3010
3002
|
hideFromInsertMenu: !0,
|
|
@@ -3019,7 +3011,7 @@ const Rn = {
|
|
|
3019
3011
|
noWrap: !0,
|
|
3020
3012
|
static: !0
|
|
3021
3013
|
};
|
|
3022
|
-
function
|
|
3014
|
+
function Rn(e) {
|
|
3023
3015
|
return /* @__PURE__ */ l(
|
|
3024
3016
|
"img",
|
|
3025
3017
|
{
|
|
@@ -3034,7 +3026,7 @@ function En(e) {
|
|
|
3034
3026
|
$() && e.imgSrc || "default-key"
|
|
3035
3027
|
);
|
|
3036
3028
|
}
|
|
3037
|
-
const
|
|
3029
|
+
const En = {
|
|
3038
3030
|
name: "Video",
|
|
3039
3031
|
canHaveChildren: !0,
|
|
3040
3032
|
defaultStyles: {
|
|
@@ -3220,64 +3212,64 @@ function Bn(e) {
|
|
|
3220
3212
|
}
|
|
3221
3213
|
);
|
|
3222
3214
|
}
|
|
3223
|
-
const
|
|
3224
|
-
component:
|
|
3225
|
-
...
|
|
3215
|
+
const Pn = () => [{
|
|
3216
|
+
component: sn,
|
|
3217
|
+
...ln
|
|
3226
3218
|
}, {
|
|
3227
|
-
component:
|
|
3228
|
-
...
|
|
3219
|
+
component: mn,
|
|
3220
|
+
...cn
|
|
3229
3221
|
}, {
|
|
3230
|
-
component:
|
|
3231
|
-
...
|
|
3222
|
+
component: pn,
|
|
3223
|
+
...fn
|
|
3232
3224
|
}, {
|
|
3233
|
-
component:
|
|
3234
|
-
...
|
|
3225
|
+
component: xn,
|
|
3226
|
+
...yn
|
|
3235
3227
|
}, {
|
|
3236
|
-
component:
|
|
3237
|
-
...
|
|
3228
|
+
component: Cn,
|
|
3229
|
+
...kn
|
|
3238
3230
|
}, {
|
|
3239
|
-
component:
|
|
3240
|
-
...
|
|
3231
|
+
component: Sn,
|
|
3232
|
+
...vn
|
|
3241
3233
|
}, {
|
|
3242
|
-
component:
|
|
3243
|
-
...
|
|
3234
|
+
component: In,
|
|
3235
|
+
...Tn
|
|
3244
3236
|
}, {
|
|
3245
|
-
component:
|
|
3246
|
-
...
|
|
3237
|
+
component: Rn,
|
|
3238
|
+
...wn
|
|
3247
3239
|
}, {
|
|
3248
3240
|
component: Bn,
|
|
3249
|
-
...
|
|
3241
|
+
...En
|
|
3250
3242
|
}], ke = () => [{
|
|
3251
|
-
component:
|
|
3243
|
+
component: rt,
|
|
3244
|
+
...Jt
|
|
3245
|
+
}, {
|
|
3246
|
+
component: Ut,
|
|
3252
3247
|
...Yt
|
|
3253
3248
|
}, {
|
|
3254
3249
|
component: jt,
|
|
3255
3250
|
...Gt
|
|
3256
3251
|
}, {
|
|
3257
|
-
component:
|
|
3252
|
+
component: Kt,
|
|
3258
3253
|
...Qt
|
|
3259
3254
|
}, {
|
|
3260
3255
|
component: qt,
|
|
3261
3256
|
...Xt
|
|
3262
3257
|
}, {
|
|
3263
|
-
component:
|
|
3258
|
+
component: en,
|
|
3264
3259
|
...Zt
|
|
3265
3260
|
}, {
|
|
3266
|
-
component:
|
|
3267
|
-
...
|
|
3268
|
-
}, {
|
|
3269
|
-
component: ei,
|
|
3270
|
-
...nn
|
|
3261
|
+
component: Zn,
|
|
3262
|
+
...tn
|
|
3271
3263
|
}, {
|
|
3272
|
-
component:
|
|
3273
|
-
...
|
|
3264
|
+
component: rn,
|
|
3265
|
+
...an
|
|
3274
3266
|
}, {
|
|
3275
|
-
component:
|
|
3276
|
-
...
|
|
3267
|
+
component: on,
|
|
3268
|
+
...nn
|
|
3277
3269
|
}, {
|
|
3278
|
-
component:
|
|
3279
|
-
...
|
|
3280
|
-
}, ...
|
|
3270
|
+
component: zt,
|
|
3271
|
+
..._t
|
|
3272
|
+
}, ...Pn()], Vn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3281
3273
|
function getAndSetVariantId() {
|
|
3282
3274
|
function setCookie(name, value, days) {
|
|
3283
3275
|
let expires = '';
|
|
@@ -3333,7 +3325,7 @@ const Vn = () => [{
|
|
|
3333
3325
|
}).join('');
|
|
3334
3326
|
styleEl.innerHTML = newStyleStr;
|
|
3335
3327
|
}
|
|
3336
|
-
}`,
|
|
3328
|
+
}`, An = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3337
3329
|
if (!navigator.cookieEnabled) {
|
|
3338
3330
|
return;
|
|
3339
3331
|
}
|
|
@@ -3374,19 +3366,19 @@ const Vn = () => [{
|
|
|
3374
3366
|
})), Wn = ({
|
|
3375
3367
|
canTrack: e,
|
|
3376
3368
|
content: t
|
|
3377
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
3378
|
-
window.${je} = ${
|
|
3379
|
-
window.${Me} = ${
|
|
3380
|
-
`,
|
|
3369
|
+
}) => !(!(Y(t).length > 0) || !e || G()), Fn = (e) => e === "react" || e === "reactNative", He = Fn(U), Nn = () => `
|
|
3370
|
+
window.${je} = ${Vn}
|
|
3371
|
+
window.${Me} = ${An}
|
|
3372
|
+
`, $n = (e, t) => `
|
|
3381
3373
|
window.${je}(
|
|
3382
3374
|
"${t}",${JSON.stringify(e)}, ${He}
|
|
3383
|
-
)`,
|
|
3375
|
+
)`, Dn = ({
|
|
3384
3376
|
contentId: e,
|
|
3385
3377
|
variationId: t
|
|
3386
3378
|
}) => `window.${Me}(
|
|
3387
3379
|
"${t}", "${e}", ${He}
|
|
3388
3380
|
)`;
|
|
3389
|
-
function
|
|
3381
|
+
function se(e) {
|
|
3390
3382
|
return /* @__PURE__ */ l(
|
|
3391
3383
|
"script",
|
|
3392
3384
|
{
|
|
@@ -3399,7 +3391,7 @@ function ce(e) {
|
|
|
3399
3391
|
function Ce(e) {
|
|
3400
3392
|
return Math.round(e * 1e3) / 1e3;
|
|
3401
3393
|
}
|
|
3402
|
-
const
|
|
3394
|
+
const Ln = (e, t, n = !0) => {
|
|
3403
3395
|
if (!(e instanceof HTMLElement))
|
|
3404
3396
|
return null;
|
|
3405
3397
|
let i = n ? e : e.parentElement;
|
|
@@ -3410,7 +3402,7 @@ const On = (e, t, n = !0) => {
|
|
|
3410
3402
|
return i;
|
|
3411
3403
|
} while (i = i.parentElement);
|
|
3412
3404
|
return null;
|
|
3413
|
-
},
|
|
3405
|
+
}, On = (e) => Ln(e, (t) => {
|
|
3414
3406
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3415
3407
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3416
3408
|
}), Te = ({
|
|
@@ -3422,8 +3414,8 @@ const On = (e, t, n = !0) => {
|
|
|
3422
3414
|
x: a,
|
|
3423
3415
|
y: r
|
|
3424
3416
|
};
|
|
3425
|
-
},
|
|
3426
|
-
const t = e.target, n = t &&
|
|
3417
|
+
}, Un = (e) => {
|
|
3418
|
+
const t = e.target, n = t && On(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3427
3419
|
return {
|
|
3428
3420
|
targetBuilderElement: i || void 0,
|
|
3429
3421
|
metadata: {
|
|
@@ -3438,7 +3430,7 @@ const On = (e, t, n = !0) => {
|
|
|
3438
3430
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3439
3431
|
}
|
|
3440
3432
|
};
|
|
3441
|
-
},
|
|
3433
|
+
}, jn = (e) => {
|
|
3442
3434
|
var a, r;
|
|
3443
3435
|
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;
|
|
3444
3436
|
let o = "";
|
|
@@ -3464,15 +3456,15 @@ font-weight: ${s};
|
|
|
3464
3456
|
`.trim());
|
|
3465
3457
|
}
|
|
3466
3458
|
return o;
|
|
3467
|
-
},
|
|
3459
|
+
}, Mn = ({
|
|
3468
3460
|
customFonts: e
|
|
3469
3461
|
}) => {
|
|
3470
3462
|
var t;
|
|
3471
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3472
|
-
},
|
|
3463
|
+
return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3464
|
+
}, Hn = ({
|
|
3473
3465
|
cssCode: e,
|
|
3474
3466
|
contentId: t
|
|
3475
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3467
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Kn = `
|
|
3476
3468
|
.builder-button {
|
|
3477
3469
|
all: unset;
|
|
3478
3470
|
}
|
|
@@ -3489,9 +3481,9 @@ font-weight: ${s};
|
|
|
3489
3481
|
text-align: inherit;
|
|
3490
3482
|
font-family: inherit;
|
|
3491
3483
|
}
|
|
3492
|
-
`,
|
|
3493
|
-
function
|
|
3494
|
-
var
|
|
3484
|
+
`, qn = (e) => e ? "" : Kn, _n = (e) => `variant-${e}`;
|
|
3485
|
+
function zn(e) {
|
|
3486
|
+
var B, A, O, v, R, W, y;
|
|
3495
3487
|
const t = _(null);
|
|
3496
3488
|
function n(b) {
|
|
3497
3489
|
var k, C;
|
|
@@ -3505,7 +3497,7 @@ function Jn(e) {
|
|
|
3505
3497
|
}));
|
|
3506
3498
|
}
|
|
3507
3499
|
function i(b) {
|
|
3508
|
-
var k, C, I,
|
|
3500
|
+
var k, C, I, F, j;
|
|
3509
3501
|
const S = {
|
|
3510
3502
|
...e.builderContextSignal.content,
|
|
3511
3503
|
...b,
|
|
@@ -3516,11 +3508,11 @@ function Jn(e) {
|
|
|
3516
3508
|
meta: {
|
|
3517
3509
|
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3518
3510
|
...b == null ? void 0 : b.meta,
|
|
3519
|
-
breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((j = (
|
|
3511
|
+
breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((j = (F = e.builderContextSignal.content) == null ? void 0 : F.meta) == null ? void 0 : j.breakpoints)
|
|
3520
3512
|
}
|
|
3521
3513
|
};
|
|
3522
|
-
e.setBuilderContextSignal((
|
|
3523
|
-
...
|
|
3514
|
+
e.setBuilderContextSignal((N) => ({
|
|
3515
|
+
...N,
|
|
3524
3516
|
content: S
|
|
3525
3517
|
}));
|
|
3526
3518
|
}
|
|
@@ -3548,7 +3540,7 @@ function Jn(e) {
|
|
|
3548
3540
|
});
|
|
3549
3541
|
},
|
|
3550
3542
|
animation: (S) => {
|
|
3551
|
-
|
|
3543
|
+
Ne(S);
|
|
3552
3544
|
},
|
|
3553
3545
|
contentUpdate: (S) => {
|
|
3554
3546
|
i(S);
|
|
@@ -3578,11 +3570,11 @@ function Jn(e) {
|
|
|
3578
3570
|
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, I = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
3579
3571
|
he({
|
|
3580
3572
|
type: "click",
|
|
3581
|
-
canTrack:
|
|
3573
|
+
canTrack: Q(e.canTrack),
|
|
3582
3574
|
contentId: I,
|
|
3583
3575
|
apiKey: e.apiKey,
|
|
3584
3576
|
variationId: C !== I ? C : void 0,
|
|
3585
|
-
...
|
|
3577
|
+
...Un(b),
|
|
3586
3578
|
unique: !x
|
|
3587
3579
|
});
|
|
3588
3580
|
}
|
|
@@ -3591,13 +3583,13 @@ function Jn(e) {
|
|
|
3591
3583
|
function f() {
|
|
3592
3584
|
var S, k, C;
|
|
3593
3585
|
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(([I,
|
|
3595
|
-
if (!
|
|
3586
|
+
Object.entries(b).forEach(([I, F]) => {
|
|
3587
|
+
if (!F || g[I] || c[I] && !$())
|
|
3596
3588
|
return;
|
|
3597
3589
|
g[I] = !0;
|
|
3598
|
-
const j =
|
|
3590
|
+
const j = F.replace(
|
|
3599
3591
|
/{{([^}]+)}}/g,
|
|
3600
|
-
(
|
|
3592
|
+
(N, Ke) => String(
|
|
3601
3593
|
H({
|
|
3602
3594
|
code: Ke,
|
|
3603
3595
|
context: e.context || {},
|
|
@@ -3608,12 +3600,12 @@ function Jn(e) {
|
|
|
3608
3600
|
})
|
|
3609
3601
|
)
|
|
3610
3602
|
);
|
|
3611
|
-
Qe(j).then((
|
|
3603
|
+
Qe(j).then((N) => N.json()).then((N) => {
|
|
3612
3604
|
n({
|
|
3613
|
-
[I]:
|
|
3605
|
+
[I]: N
|
|
3614
3606
|
}), c[I] = !0;
|
|
3615
|
-
}).catch((
|
|
3616
|
-
console.error("error fetching dynamic data",
|
|
3607
|
+
}).catch((N) => {
|
|
3608
|
+
console.error("error fetching dynamic data", F, N);
|
|
3617
3609
|
}).finally(() => {
|
|
3618
3610
|
g[I] = !1;
|
|
3619
3611
|
});
|
|
@@ -3634,9 +3626,9 @@ function Jn(e) {
|
|
|
3634
3626
|
)
|
|
3635
3627
|
);
|
|
3636
3628
|
}
|
|
3637
|
-
return
|
|
3629
|
+
return P(() => {
|
|
3638
3630
|
var b, S;
|
|
3639
|
-
if (
|
|
3631
|
+
if (G()) {
|
|
3640
3632
|
if ($() && (window.addEventListener("message", s), ze(), Je({
|
|
3641
3633
|
...e.locale ? {
|
|
3642
3634
|
locale: e.locale
|
|
@@ -3650,55 +3642,55 @@ function Jn(e) {
|
|
|
3650
3642
|
}), Object.values(
|
|
3651
3643
|
e.builderContextSignal.componentInfos
|
|
3652
3644
|
).forEach((C) => {
|
|
3653
|
-
var
|
|
3645
|
+
var F;
|
|
3654
3646
|
const I = Ye(C);
|
|
3655
|
-
(
|
|
3647
|
+
(F = window.parent) == null || F.postMessage(I, "*");
|
|
3656
3648
|
}), window.addEventListener(
|
|
3657
3649
|
"builder:component:stateChangeListenerActivated",
|
|
3658
3650
|
w
|
|
3659
|
-
)), e.builderContextSignal.content &&
|
|
3660
|
-
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
3651
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3652
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id, F = e.apiKey;
|
|
3661
3653
|
he({
|
|
3662
3654
|
type: "impression",
|
|
3663
3655
|
canTrack: !0,
|
|
3664
3656
|
contentId: I,
|
|
3665
|
-
apiKey:
|
|
3657
|
+
apiKey: F,
|
|
3666
3658
|
variationId: C !== I ? C : void 0
|
|
3667
3659
|
});
|
|
3668
3660
|
}
|
|
3669
3661
|
if (we() && !$()) {
|
|
3670
|
-
const C = new URL(location.href).searchParams, I = C.get("builder.preview"),
|
|
3662
|
+
const C = new URL(location.href).searchParams, I = C.get("builder.preview"), F = C.get(
|
|
3671
3663
|
`builder.overrides.${I}`
|
|
3672
3664
|
), j = C.get("apiKey") || C.get("builder.space");
|
|
3673
|
-
I === e.model && j === e.apiKey && (!e.content ||
|
|
3665
|
+
I === e.model && j === e.apiKey && (!e.content || F === e.content.id) && Re({
|
|
3674
3666
|
model: e.model,
|
|
3675
3667
|
apiKey: e.apiKey,
|
|
3676
3668
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3677
|
-
}).then((
|
|
3678
|
-
|
|
3669
|
+
}).then((N) => {
|
|
3670
|
+
N && i(N);
|
|
3679
3671
|
});
|
|
3680
3672
|
}
|
|
3681
3673
|
}
|
|
3682
|
-
}, []),
|
|
3683
|
-
e.apiKey ||
|
|
3674
|
+
}, []), P(() => {
|
|
3675
|
+
e.apiKey || ce.error(
|
|
3684
3676
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3685
3677
|
), d(), f(), w();
|
|
3686
|
-
}, []),
|
|
3678
|
+
}, []), P(() => {
|
|
3687
3679
|
e.content && i(e.content);
|
|
3688
|
-
}, [e.content]),
|
|
3680
|
+
}, [e.content]), P(() => {
|
|
3689
3681
|
d();
|
|
3690
|
-
}, [(A = (
|
|
3682
|
+
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3691
3683
|
f();
|
|
3692
|
-
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]),
|
|
3684
|
+
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3693
3685
|
w();
|
|
3694
|
-
}, [e.builderContextSignal.rootState]),
|
|
3686
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3695
3687
|
e.data && n(e.data);
|
|
3696
|
-
}, [e.data]),
|
|
3688
|
+
}, [e.data]), P(() => {
|
|
3697
3689
|
e.locale && n({
|
|
3698
3690
|
locale: e.locale
|
|
3699
3691
|
});
|
|
3700
|
-
}, [e.locale]),
|
|
3701
|
-
|
|
3692
|
+
}, [e.locale]), P(() => () => {
|
|
3693
|
+
G() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3702
3694
|
"builder:component:stateChangeListenerActivated",
|
|
3703
3695
|
w
|
|
3704
3696
|
));
|
|
@@ -3711,28 +3703,28 @@ function Jn(e) {
|
|
|
3711
3703
|
"builder-model": e.model,
|
|
3712
3704
|
...o(),
|
|
3713
3705
|
...e.contentWrapperProps,
|
|
3714
|
-
className:
|
|
3715
|
-
((
|
|
3706
|
+
className: _n(
|
|
3707
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3716
3708
|
),
|
|
3717
3709
|
children: e.children
|
|
3718
3710
|
}
|
|
3719
3711
|
) : null });
|
|
3720
3712
|
}
|
|
3721
|
-
function
|
|
3713
|
+
function Jn(e) {
|
|
3722
3714
|
const [t, n] = T(
|
|
3723
3715
|
() => `
|
|
3724
|
-
${
|
|
3716
|
+
${Hn({
|
|
3725
3717
|
cssCode: e.cssCode,
|
|
3726
3718
|
contentId: e.contentId
|
|
3727
3719
|
})}
|
|
3728
|
-
${
|
|
3720
|
+
${Mn({
|
|
3729
3721
|
customFonts: e.customFonts
|
|
3730
3722
|
})}
|
|
3731
|
-
${
|
|
3723
|
+
${qn(e.isNestedRender)}
|
|
3732
3724
|
`.trim()
|
|
3733
3725
|
);
|
|
3734
3726
|
return /* @__PURE__ */ l(
|
|
3735
|
-
|
|
3727
|
+
Z,
|
|
3736
3728
|
{
|
|
3737
3729
|
id: "builderio-content",
|
|
3738
3730
|
styles: t,
|
|
@@ -3740,7 +3732,7 @@ ${_n(e.isNestedRender)}
|
|
|
3740
3732
|
}
|
|
3741
3733
|
);
|
|
3742
3734
|
}
|
|
3743
|
-
const
|
|
3735
|
+
const Yn = ({
|
|
3744
3736
|
content: e,
|
|
3745
3737
|
data: t,
|
|
3746
3738
|
locale: n
|
|
@@ -3757,7 +3749,7 @@ const Gn = ({
|
|
|
3757
3749
|
locale: n
|
|
3758
3750
|
} : {}
|
|
3759
3751
|
};
|
|
3760
|
-
},
|
|
3752
|
+
}, Gn = ({
|
|
3761
3753
|
content: e,
|
|
3762
3754
|
data: t
|
|
3763
3755
|
}) => e ? {
|
|
@@ -3773,7 +3765,7 @@ function Ie(e) {
|
|
|
3773
3765
|
const [t, n] = T(
|
|
3774
3766
|
() => {
|
|
3775
3767
|
var p, f;
|
|
3776
|
-
return
|
|
3768
|
+
return Dn({
|
|
3777
3769
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3778
3770
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3779
3771
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3794,11 +3786,11 @@ function Ie(e) {
|
|
|
3794
3786
|
...ke(),
|
|
3795
3787
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3796
3788
|
].reduce(
|
|
3797
|
-
(f, { component: w, ...
|
|
3789
|
+
(f, { component: w, ...B }) => ({
|
|
3798
3790
|
...f,
|
|
3799
|
-
[
|
|
3791
|
+
[B.name]: {
|
|
3800
3792
|
component: w,
|
|
3801
|
-
...ge(
|
|
3793
|
+
...ge(B)
|
|
3802
3794
|
}
|
|
3803
3795
|
}),
|
|
3804
3796
|
{}
|
|
@@ -3807,12 +3799,12 @@ function Ie(e) {
|
|
|
3807
3799
|
), [r, s] = T(() => {
|
|
3808
3800
|
var p;
|
|
3809
3801
|
return {
|
|
3810
|
-
content:
|
|
3802
|
+
content: Gn({
|
|
3811
3803
|
content: e.content,
|
|
3812
3804
|
data: e.data
|
|
3813
3805
|
}),
|
|
3814
3806
|
localState: void 0,
|
|
3815
|
-
rootState:
|
|
3807
|
+
rootState: Yn({
|
|
3816
3808
|
content: e.content,
|
|
3817
3809
|
data: e.data,
|
|
3818
3810
|
locale: e.locale
|
|
@@ -3826,9 +3818,9 @@ function Ie(e) {
|
|
|
3826
3818
|
...ke(),
|
|
3827
3819
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3828
3820
|
].reduce(
|
|
3829
|
-
(f, { component: w, ...
|
|
3821
|
+
(f, { component: w, ...B }) => ({
|
|
3830
3822
|
...f,
|
|
3831
|
-
[
|
|
3823
|
+
[B.name]: ge(B)
|
|
3832
3824
|
}),
|
|
3833
3825
|
{}
|
|
3834
3826
|
),
|
|
@@ -3845,7 +3837,7 @@ function Ie(e) {
|
|
|
3845
3837
|
registeredComponents: o
|
|
3846
3838
|
},
|
|
3847
3839
|
children: /* @__PURE__ */ V(
|
|
3848
|
-
|
|
3840
|
+
zn,
|
|
3849
3841
|
{
|
|
3850
3842
|
nonce: e.nonce,
|
|
3851
3843
|
content: e.content,
|
|
@@ -3864,7 +3856,7 @@ function Ie(e) {
|
|
|
3864
3856
|
setBuilderContextSignal: s,
|
|
3865
3857
|
children: [
|
|
3866
3858
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3867
|
-
|
|
3859
|
+
se,
|
|
3868
3860
|
{
|
|
3869
3861
|
id: "builderio-variant-visibility",
|
|
3870
3862
|
scriptStr: t,
|
|
@@ -3872,7 +3864,7 @@ function Ie(e) {
|
|
|
3872
3864
|
}
|
|
3873
3865
|
) : null,
|
|
3874
3866
|
/* @__PURE__ */ l(
|
|
3875
|
-
|
|
3867
|
+
Jn,
|
|
3876
3868
|
{
|
|
3877
3869
|
nonce: e.nonce || "",
|
|
3878
3870
|
isNestedRender: e.isNestedRender,
|
|
@@ -3896,17 +3888,17 @@ function Ie(e) {
|
|
|
3896
3888
|
}
|
|
3897
3889
|
);
|
|
3898
3890
|
}
|
|
3899
|
-
function
|
|
3891
|
+
function Qn(e) {
|
|
3900
3892
|
var r;
|
|
3901
3893
|
const [t, n] = T(
|
|
3902
3894
|
() => Wn({
|
|
3903
|
-
canTrack:
|
|
3895
|
+
canTrack: Q(e.canTrack),
|
|
3904
3896
|
content: e.content
|
|
3905
3897
|
})
|
|
3906
3898
|
);
|
|
3907
3899
|
function i() {
|
|
3908
3900
|
var s;
|
|
3909
|
-
return
|
|
3901
|
+
return $n(
|
|
3910
3902
|
Y(e.content).map((d) => ({
|
|
3911
3903
|
id: d.testVariationId,
|
|
3912
3904
|
testRatio: d.testRatio
|
|
@@ -3924,22 +3916,22 @@ function Xn(e) {
|
|
|
3924
3916
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3925
3917
|
} : Xe({
|
|
3926
3918
|
item: e.content,
|
|
3927
|
-
canTrack:
|
|
3919
|
+
canTrack: Q(e.canTrack)
|
|
3928
3920
|
});
|
|
3929
3921
|
}
|
|
3930
|
-
return
|
|
3922
|
+
return P(() => {
|
|
3931
3923
|
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3932
3924
|
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
|
|
3933
|
-
|
|
3925
|
+
se,
|
|
3934
3926
|
{
|
|
3935
3927
|
id: "builderio-init-variants-fns",
|
|
3936
|
-
scriptStr:
|
|
3928
|
+
scriptStr: Nn(),
|
|
3937
3929
|
nonce: e.nonce || ""
|
|
3938
3930
|
}
|
|
3939
3931
|
) : null,
|
|
3940
3932
|
t ? /* @__PURE__ */ V(E, { children: [
|
|
3941
3933
|
/* @__PURE__ */ l(
|
|
3942
|
-
|
|
3934
|
+
Z,
|
|
3943
3935
|
{
|
|
3944
3936
|
id: "builderio-variants",
|
|
3945
3937
|
styles: o(),
|
|
@@ -3947,7 +3939,7 @@ function Xn(e) {
|
|
|
3947
3939
|
}
|
|
3948
3940
|
),
|
|
3949
3941
|
/* @__PURE__ */ l(
|
|
3950
|
-
|
|
3942
|
+
se,
|
|
3951
3943
|
{
|
|
3952
3944
|
id: "builderio-variants-visibility",
|
|
3953
3945
|
scriptStr: i(),
|
|
@@ -4008,7 +4000,7 @@ function Xn(e) {
|
|
|
4008
4000
|
)
|
|
4009
4001
|
] });
|
|
4010
4002
|
}
|
|
4011
|
-
const
|
|
4003
|
+
const Xn = async ({
|
|
4012
4004
|
builderContextValue: e,
|
|
4013
4005
|
symbol: t
|
|
4014
4006
|
}) => {
|
|
@@ -4024,10 +4016,10 @@ const Zn = async ({
|
|
|
4024
4016
|
}
|
|
4025
4017
|
}
|
|
4026
4018
|
}).catch((n) => {
|
|
4027
|
-
|
|
4019
|
+
ce.error("Could not fetch symbol content: ", n);
|
|
4028
4020
|
});
|
|
4029
4021
|
};
|
|
4030
|
-
function
|
|
4022
|
+
function Zn(e) {
|
|
4031
4023
|
var s, d, c, u;
|
|
4032
4024
|
function t() {
|
|
4033
4025
|
return "div";
|
|
@@ -4049,18 +4041,18 @@ function ei(e) {
|
|
|
4049
4041
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4050
4042
|
});
|
|
4051
4043
|
function r() {
|
|
4052
|
-
o ||
|
|
4044
|
+
o || Xn({
|
|
4053
4045
|
symbol: e.symbol,
|
|
4054
4046
|
builderContextValue: e.builderContext
|
|
4055
4047
|
}).then((g) => {
|
|
4056
4048
|
g && a(g);
|
|
4057
4049
|
});
|
|
4058
4050
|
}
|
|
4059
|
-
return
|
|
4060
|
-
}, []),
|
|
4051
|
+
return P(() => {
|
|
4052
|
+
}, []), P(() => {
|
|
4061
4053
|
r();
|
|
4062
4054
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4063
|
-
|
|
4055
|
+
Qn,
|
|
4064
4056
|
{
|
|
4065
4057
|
nonce: e.builderContext.nonce,
|
|
4066
4058
|
isNestedRender: !0,
|
|
@@ -4088,13 +4080,13 @@ function ei(e) {
|
|
|
4088
4080
|
export {
|
|
4089
4081
|
D as Blocks,
|
|
4090
4082
|
me as BuilderContext,
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4083
|
+
rt as Button,
|
|
4084
|
+
Ut as Columns,
|
|
4085
|
+
Qn as Content,
|
|
4086
|
+
jt as Fragment,
|
|
4087
|
+
Kt as Image,
|
|
4088
|
+
qt as Section,
|
|
4089
|
+
Zn as Symbol,
|
|
4090
|
+
rn as Text,
|
|
4099
4091
|
Bn as Video
|
|
4100
4092
|
};
|