@builder.io/sdk-react 2.0.16 → 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 +23 -23
- package/lib/browser/blocks-exports.mjs +347 -324
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -23
- package/lib/browser/{server-entry-1db0d96b.js → server-entry-12189812.js} +1 -2
- package/lib/browser/{server-entry-c1666709.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-7c1c7c56.js → accordion-634b0466.js} +1 -1
- package/lib/edge/{accordion-09162a27.cjs → accordion-eaf2e50a.cjs} +1 -1
- package/lib/edge/{blocks-46c07b56.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-a923f8ff.js → button-6d2144c3.js} +2 -2
- package/lib/edge/{button-f2daea13.cjs → button-a0aad19e.cjs} +1 -1
- package/lib/edge/{columns-eee4f51c.js → columns-030a6892.js} +6 -7
- package/lib/edge/columns-44d76a14.cjs +28 -0
- package/lib/edge/content-variants-3eef022e.cjs +134 -0
- package/lib/edge/{content-variants-1368cab1.js → content-variants-46a433c2.js} +13 -14
- package/lib/edge/{evaluate-4c9b2e86.cjs → evaluate-29260bf8.cjs} +10 -10
- package/lib/edge/{evaluate-93701356.js → evaluate-6febb3ef.js} +331 -318
- package/lib/edge/form-59059e97.cjs +1 -0
- package/lib/edge/{form-d0eb0af4.js → form-855a28fc.js} +14 -15
- package/lib/edge/{get-class-prop-name-7cd1376f.cjs → get-class-prop-name-6320e936.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1c373615.js → get-class-prop-name-a6353748.js} +1 -1
- package/lib/edge/{img-6c8139db.cjs → img-1f88586f.cjs} +1 -1
- package/lib/edge/{img-6e16ade6.js → img-56b4a196.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c78fef2b.cjs → input-35f6fbdd.cjs} +1 -1
- package/lib/edge/{input-a7e9c157.js → input-7873f170.js} +1 -1
- package/lib/edge/{select-3cf593bd.js → select-eb16d7cc.js} +1 -1
- package/lib/edge/{select-bd1e231b.cjs → select-f03c5ba6.cjs} +1 -1
- package/lib/edge/{server-entry-6b3ad048.js → server-entry-77a5a1a0.js} +1 -2
- package/lib/edge/{server-entry-d09af943.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-93865012.cjs +1 -0
- package/lib/edge/{slot-a5a9a30f.js → slot-c9a7a451.js} +6 -7
- package/lib/edge/{symbol-77d331c6.js → symbol-6657c638.js} +2 -2
- package/lib/edge/{symbol-9de15518.cjs → symbol-b6b36212.cjs} +1 -1
- package/lib/edge/tabs-020fedaa.cjs +1 -0
- package/lib/edge/{tabs-63d6ea85.js → tabs-44484f49.js} +13 -14
- package/lib/edge/text-562c8568.cjs +1 -0
- package/lib/edge/{text-4d508bbc.js → text-e00e3cdc.js} +8 -9
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +262 -250
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{server-entry-c1666709.cjs → server-entry-82ab17f2.cjs} +1 -1
- package/lib/node/{server-entry-1db0d96b.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/{should-force-browser-runtime-in-node-1188ea7b.js → should-force-browser-runtime-in-node-0b0cefdf.js} +7 -7
- package/lib/node/{should-force-browser-runtime-in-node-37010e2f.cjs → should-force-browser-runtime-in-node-f20178fa.cjs} +5 -5
- 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/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -64
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +0 -17
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +0 -1
- package/lib/edge/blocks-273f24cc.cjs +0 -12
- package/lib/edge/columns-0b8c2260.cjs +0 -28
- package/lib/edge/content-variants-575b5dbf.cjs +0 -134
- package/lib/edge/form-bd184008.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +0 -1
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +0 -17
- package/lib/edge/slot-ab7fc875.cjs +0 -1
- package/lib/edge/tabs-e6fa664e.cjs +0 -1
- package/lib/edge/text-ab5d2747.cjs +0 -1
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var _e = Object.defineProperty;
|
|
3
3
|
var ze = (e, t, n) => t in e ? _e(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, isEditing as $, isBrowser as H, getUserAttributes as Je,
|
|
4
|
+
var ne = (e, t, n) => (ze(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, isEditing as $, isBrowser as H, getUserAttributes as Je, checkIsDefined as Q, logger as Z, isPreviewing as Re, registerInsertMenu as Ye, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, getDefaultCanTrack as X, _track as he, fetchOneEntry as Ee, createEditorListener as Xe, fetch as Ze, serializeIncludingFunctions as ge, handleABTestingSync as et } from "./server-entry-12189812.js";
|
|
7
7
|
import { createContext as Be, useState as T, useEffect as P, useRef as z, useContext as be, createElement as Pe } from "react";
|
|
8
|
-
|
|
9
|
-
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
8
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
10
9
|
function de(e) {
|
|
11
|
-
return /* @__PURE__ */ l(
|
|
10
|
+
return /* @__PURE__ */ l(I, { children: nt(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
11
|
}
|
|
13
12
|
const _ = () => {
|
|
14
13
|
switch (U) {
|
|
@@ -24,7 +23,7 @@ const _ = () => {
|
|
|
24
23
|
return "class";
|
|
25
24
|
}
|
|
26
25
|
};
|
|
27
|
-
function
|
|
26
|
+
function it(e) {
|
|
28
27
|
function t() {
|
|
29
28
|
return {
|
|
30
29
|
...e.attributes,
|
|
@@ -63,20 +62,20 @@ const ue = Be({
|
|
|
63
62
|
BlocksWrapperProps: {},
|
|
64
63
|
nonce: ""
|
|
65
64
|
}), Ve = Be({ registeredComponents: {} });
|
|
66
|
-
function
|
|
65
|
+
function ot(e) {
|
|
67
66
|
var t;
|
|
68
67
|
return {
|
|
69
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
70
69
|
...e.options
|
|
71
70
|
};
|
|
72
71
|
}
|
|
73
|
-
function
|
|
72
|
+
function at(e, ...t) {
|
|
74
73
|
const n = Object.assign({}, e);
|
|
75
74
|
for (const i of t)
|
|
76
75
|
delete n[i];
|
|
77
76
|
return n;
|
|
78
77
|
}
|
|
79
|
-
const
|
|
78
|
+
const rt = ({
|
|
80
79
|
builder: e,
|
|
81
80
|
context: t,
|
|
82
81
|
event: n,
|
|
@@ -88,12 +87,12 @@ const lt = ({
|
|
|
88
87
|
builder: e,
|
|
89
88
|
context: t,
|
|
90
89
|
event: n
|
|
91
|
-
}),
|
|
90
|
+
}), lt = () => ({
|
|
92
91
|
isEditing: $(),
|
|
93
92
|
isBrowser: H(),
|
|
94
93
|
isServer: !H(),
|
|
95
94
|
getUserAttributes: () => Je()
|
|
96
|
-
}),
|
|
95
|
+
}), st = (e, {
|
|
97
96
|
isExpression: t = !0
|
|
98
97
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
|
|
99
98
|
code: e,
|
|
@@ -104,7 +103,7 @@ const lt = ({
|
|
|
104
103
|
rootSetState: a,
|
|
105
104
|
rootState: r
|
|
106
105
|
}) => {
|
|
107
|
-
const s =
|
|
106
|
+
const s = rt({
|
|
108
107
|
builder: t,
|
|
109
108
|
context: n,
|
|
110
109
|
event: i,
|
|
@@ -141,9 +140,21 @@ function Ae({
|
|
|
141
140
|
}
|
|
142
141
|
});
|
|
143
142
|
}
|
|
144
|
-
|
|
143
|
+
function ct() {
|
|
144
|
+
var e;
|
|
145
|
+
return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
146
|
+
}
|
|
147
|
+
const dt = ({
|
|
148
|
+
shouldLogWarning: e
|
|
149
|
+
}) => {
|
|
150
|
+
var o;
|
|
151
|
+
if (!ct())
|
|
152
|
+
return !1;
|
|
153
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
154
|
+
return t && n && !i ? (e && 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;
|
|
155
|
+
}, ut = (e) => (H() || dt({
|
|
145
156
|
shouldLogWarning: !0
|
|
146
|
-
}), pe(e)),
|
|
157
|
+
}), pe(e)), mt = !0, L = class L {
|
|
147
158
|
static getCacheKey(t) {
|
|
148
159
|
return JSON.stringify({
|
|
149
160
|
...t,
|
|
@@ -161,7 +172,7 @@ const dt = (e) => (H() || tt({
|
|
|
161
172
|
});
|
|
162
173
|
}
|
|
163
174
|
};
|
|
164
|
-
|
|
175
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
165
176
|
let j = L;
|
|
166
177
|
function K({
|
|
167
178
|
code: e,
|
|
@@ -176,30 +187,30 @@ function K({
|
|
|
176
187
|
if (e === "")
|
|
177
188
|
return;
|
|
178
189
|
const d = {
|
|
179
|
-
code:
|
|
190
|
+
code: st(e, {
|
|
180
191
|
isExpression: r
|
|
181
192
|
}),
|
|
182
|
-
builder:
|
|
193
|
+
builder: lt(),
|
|
183
194
|
context: t,
|
|
184
195
|
event: a,
|
|
185
196
|
rootSetState: o,
|
|
186
197
|
rootState: i,
|
|
187
198
|
localState: n
|
|
188
199
|
};
|
|
189
|
-
if (s && !
|
|
200
|
+
if (s && !mt) {
|
|
190
201
|
const c = j.getCacheKey(d), u = j.getCachedValue(c);
|
|
191
202
|
if (u)
|
|
192
203
|
return u.value;
|
|
193
204
|
}
|
|
194
205
|
try {
|
|
195
|
-
const c =
|
|
206
|
+
const c = ut(d);
|
|
196
207
|
if (s) {
|
|
197
208
|
const u = j.getCacheKey(d);
|
|
198
209
|
j.setCachedValue(u, c);
|
|
199
210
|
}
|
|
200
211
|
return c;
|
|
201
212
|
} catch (c) {
|
|
202
|
-
|
|
213
|
+
Z.error("Failed code evaluation: " + c.message, {
|
|
203
214
|
code: e
|
|
204
215
|
});
|
|
205
216
|
return;
|
|
@@ -211,20 +222,20 @@ const me = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
|
211
222
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
212
223
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
213
224
|
};
|
|
214
|
-
function
|
|
225
|
+
function se(e) {
|
|
215
226
|
if (e === null || typeof e != "object")
|
|
216
227
|
return e;
|
|
217
228
|
if (Array.isArray(e))
|
|
218
|
-
return e.map((n) =>
|
|
229
|
+
return e.map((n) => se(n));
|
|
219
230
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
220
231
|
return e;
|
|
221
232
|
const t = {};
|
|
222
233
|
for (const n in e)
|
|
223
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
234
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
|
|
224
235
|
return t;
|
|
225
236
|
}
|
|
226
|
-
const
|
|
227
|
-
if (
|
|
237
|
+
const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) => {
|
|
238
|
+
if (ft) {
|
|
228
239
|
const t = me(e);
|
|
229
240
|
return {
|
|
230
241
|
...t,
|
|
@@ -236,7 +247,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
236
247
|
}
|
|
237
248
|
};
|
|
238
249
|
} else {
|
|
239
|
-
const t =
|
|
250
|
+
const t = se(at(e, "children", "meta"));
|
|
240
251
|
return {
|
|
241
252
|
...t,
|
|
242
253
|
properties: {
|
|
@@ -249,7 +260,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
249
260
|
meta: e.meta
|
|
250
261
|
};
|
|
251
262
|
}
|
|
252
|
-
},
|
|
263
|
+
}, gt = ({
|
|
253
264
|
block: e,
|
|
254
265
|
context: t,
|
|
255
266
|
localState: n,
|
|
@@ -258,7 +269,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
258
269
|
}) => {
|
|
259
270
|
if (!e.bindings)
|
|
260
271
|
return e;
|
|
261
|
-
const a =
|
|
272
|
+
const a = ht(e);
|
|
262
273
|
for (const r in e.bindings) {
|
|
263
274
|
const s = e.bindings[r], d = K({
|
|
264
275
|
code: s,
|
|
@@ -272,7 +283,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
272
283
|
}
|
|
273
284
|
return a;
|
|
274
285
|
};
|
|
275
|
-
function
|
|
286
|
+
function bt({
|
|
276
287
|
block: e,
|
|
277
288
|
context: t,
|
|
278
289
|
shouldEvaluateBindings: n,
|
|
@@ -281,7 +292,7 @@ function gt({
|
|
|
281
292
|
rootSetState: a
|
|
282
293
|
}) {
|
|
283
294
|
const r = e;
|
|
284
|
-
return n ?
|
|
295
|
+
return n ? gt({
|
|
285
296
|
block: r,
|
|
286
297
|
localState: i,
|
|
287
298
|
rootState: o,
|
|
@@ -289,8 +300,8 @@ function gt({
|
|
|
289
300
|
context: t
|
|
290
301
|
}) : r;
|
|
291
302
|
}
|
|
292
|
-
const
|
|
293
|
-
function
|
|
303
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
304
|
+
function pt(e, t, n = {}) {
|
|
294
305
|
let i, o, a, r = null, s = 0;
|
|
295
306
|
const d = function() {
|
|
296
307
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -312,14 +323,14 @@ function q(e, ...t) {
|
|
|
312
323
|
}
|
|
313
324
|
return n;
|
|
314
325
|
}
|
|
315
|
-
function
|
|
326
|
+
function yt(e) {
|
|
316
327
|
for (const t of e)
|
|
317
328
|
switch (t.trigger) {
|
|
318
329
|
case "pageLoad":
|
|
319
330
|
$e(t);
|
|
320
331
|
break;
|
|
321
332
|
case "scrollInView":
|
|
322
|
-
|
|
333
|
+
vt(t);
|
|
323
334
|
break;
|
|
324
335
|
}
|
|
325
336
|
}
|
|
@@ -327,12 +338,12 @@ function Ne(e) {
|
|
|
327
338
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
328
339
|
}
|
|
329
340
|
function Fe(e, t) {
|
|
330
|
-
const n =
|
|
341
|
+
const n = xt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
331
342
|
for (const s of r)
|
|
332
343
|
for (const d of n)
|
|
333
344
|
d in s || (s[d] = i[d]);
|
|
334
345
|
}
|
|
335
|
-
function
|
|
346
|
+
function xt(e) {
|
|
336
347
|
const t = [];
|
|
337
348
|
for (const n of e.steps)
|
|
338
349
|
for (const i in n.styles)
|
|
@@ -347,13 +358,13 @@ function $e(e) {
|
|
|
347
358
|
}
|
|
348
359
|
Array.from(t).forEach((n) => {
|
|
349
360
|
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
350
|
-
n.style.transition = `all ${e.duration}s ${
|
|
361
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
351
362
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
352
363
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
353
364
|
});
|
|
354
365
|
});
|
|
355
366
|
}
|
|
356
|
-
function
|
|
367
|
+
function vt(e) {
|
|
357
368
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
358
369
|
if (!t.length) {
|
|
359
370
|
Ne(e.elementId || e.id || "");
|
|
@@ -369,7 +380,7 @@ function xt(e) {
|
|
|
369
380
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
370
381
|
})) : e.repeat && i && !o && !s(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
371
382
|
}
|
|
372
|
-
const r =
|
|
383
|
+
const r = pt(a, 200, {
|
|
373
384
|
leading: !1
|
|
374
385
|
});
|
|
375
386
|
function s(u) {
|
|
@@ -381,7 +392,7 @@ function xt(e) {
|
|
|
381
392
|
q(n.style, d);
|
|
382
393
|
}
|
|
383
394
|
c(), setTimeout(() => {
|
|
384
|
-
n.style.transition = `all ${e.duration}s ${
|
|
395
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
385
396
|
}), document.addEventListener("scroll", r, {
|
|
386
397
|
capture: !0,
|
|
387
398
|
passive: !0
|
|
@@ -390,29 +401,29 @@ function xt(e) {
|
|
|
390
401
|
}
|
|
391
402
|
const De = (e) => Object.entries(e).map(([n, i]) => {
|
|
392
403
|
if (typeof i == "string")
|
|
393
|
-
return `${
|
|
394
|
-
}).filter(
|
|
404
|
+
return `${ee(n)}: ${i};`;
|
|
405
|
+
}).filter(Q), St = (e) => De(e).join(`
|
|
395
406
|
`), Y = ({
|
|
396
407
|
mediaQuery: e,
|
|
397
408
|
className: t,
|
|
398
409
|
styles: n
|
|
399
410
|
}) => {
|
|
400
411
|
const i = `.${t} {
|
|
401
|
-
${
|
|
412
|
+
${St(n)}
|
|
402
413
|
}`;
|
|
403
414
|
return e ? `${e} {
|
|
404
415
|
${i}
|
|
405
416
|
}` : i;
|
|
406
417
|
};
|
|
407
|
-
function
|
|
418
|
+
function kt({
|
|
408
419
|
style: e
|
|
409
420
|
}) {
|
|
410
421
|
return e;
|
|
411
422
|
}
|
|
412
|
-
const
|
|
423
|
+
const Ct = ({
|
|
413
424
|
block: e,
|
|
414
425
|
context: t
|
|
415
|
-
}) => Le(
|
|
426
|
+
}) => Le(kt({
|
|
416
427
|
style: e.style || {},
|
|
417
428
|
context: t,
|
|
418
429
|
block: e
|
|
@@ -431,7 +442,7 @@ function Le(e) {
|
|
|
431
442
|
return e;
|
|
432
443
|
}
|
|
433
444
|
}
|
|
434
|
-
const
|
|
445
|
+
const Tt = ({
|
|
435
446
|
block: e,
|
|
436
447
|
registeredComponents: t
|
|
437
448
|
}) => {
|
|
@@ -445,7 +456,7 @@ const Ct = ({
|
|
|
445
456
|
console.warn(`
|
|
446
457
|
Could not find a registered component named "${n}".
|
|
447
458
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
448
|
-
},
|
|
459
|
+
}, It = ({
|
|
449
460
|
block: e,
|
|
450
461
|
context: t
|
|
451
462
|
}) => {
|
|
@@ -479,22 +490,22 @@ const Ct = ({
|
|
|
479
490
|
},
|
|
480
491
|
block: i
|
|
481
492
|
}));
|
|
482
|
-
},
|
|
493
|
+
}, wt = (e, t) => {
|
|
483
494
|
var n;
|
|
484
495
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
485
496
|
builderLinkComponent: t
|
|
486
497
|
} : {};
|
|
487
|
-
},
|
|
498
|
+
}, Rt = (e, t) => {
|
|
488
499
|
var n;
|
|
489
500
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
490
501
|
builderComponents: t
|
|
491
502
|
} : {};
|
|
492
|
-
},
|
|
503
|
+
}, Et = (e, t) => {
|
|
493
504
|
var n;
|
|
494
505
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
495
506
|
builderBlock: t
|
|
496
507
|
} : {};
|
|
497
|
-
},
|
|
508
|
+
}, Bt = (e, t) => {
|
|
498
509
|
var n;
|
|
499
510
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
500
511
|
builderContext: t
|
|
@@ -542,7 +553,7 @@ const Ct = ({
|
|
|
542
553
|
default: a + 1
|
|
543
554
|
}, n;
|
|
544
555
|
};
|
|
545
|
-
function
|
|
556
|
+
function te(e) {
|
|
546
557
|
return /* @__PURE__ */ l(
|
|
547
558
|
"style",
|
|
548
559
|
{
|
|
@@ -552,13 +563,13 @@ function Z(e) {
|
|
|
552
563
|
}
|
|
553
564
|
);
|
|
554
565
|
}
|
|
555
|
-
function
|
|
566
|
+
function Pt(e) {
|
|
556
567
|
function t() {
|
|
557
568
|
const i = e.block;
|
|
558
|
-
return
|
|
569
|
+
return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
|
|
559
570
|
}
|
|
560
571
|
function n() {
|
|
561
|
-
var f,
|
|
572
|
+
var f, R, B;
|
|
562
573
|
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ue(
|
|
563
574
|
((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
|
|
564
575
|
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, u = i.id;
|
|
@@ -584,12 +595,12 @@ function Bt(e) {
|
|
|
584
595
|
}) : "", h = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
585
596
|
let p = "";
|
|
586
597
|
if (h) {
|
|
587
|
-
const A = ((B = (
|
|
598
|
+
const A = ((B = (R = h.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
|
|
588
599
|
p = Y({
|
|
589
600
|
className: `${u}:hover`,
|
|
590
601
|
styles: {
|
|
591
602
|
...A,
|
|
592
|
-
transition: `all ${h.duration}s ${
|
|
603
|
+
transition: `all ${h.duration}s ${ee(
|
|
593
604
|
h.easing
|
|
594
605
|
)}`,
|
|
595
606
|
transitionDelay: h.delay ? `${h.delay}s` : "0s"
|
|
@@ -603,8 +614,8 @@ function Bt(e) {
|
|
|
603
614
|
p
|
|
604
615
|
].join(" ");
|
|
605
616
|
}
|
|
606
|
-
return /* @__PURE__ */ l(
|
|
607
|
-
|
|
617
|
+
return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
618
|
+
te,
|
|
608
619
|
{
|
|
609
620
|
id: "builderio-block",
|
|
610
621
|
styles: n(),
|
|
@@ -612,10 +623,10 @@ function Bt(e) {
|
|
|
612
623
|
}
|
|
613
624
|
) }) : null });
|
|
614
625
|
}
|
|
615
|
-
function
|
|
626
|
+
function Vt(e) {
|
|
616
627
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
617
628
|
}
|
|
618
|
-
const
|
|
629
|
+
const At = (e) => `on${Vt(e)}`, Wt = (e, t) => (n) => K({
|
|
619
630
|
code: e,
|
|
620
631
|
context: t.context,
|
|
621
632
|
localState: t.localState,
|
|
@@ -632,7 +643,7 @@ function Me(e) {
|
|
|
632
643
|
if (!n.hasOwnProperty(o))
|
|
633
644
|
continue;
|
|
634
645
|
const a = n[o];
|
|
635
|
-
let r =
|
|
646
|
+
let r = At(o);
|
|
636
647
|
if (e.stripPrefix)
|
|
637
648
|
switch (U) {
|
|
638
649
|
case "vue":
|
|
@@ -642,16 +653,16 @@ function Me(e) {
|
|
|
642
653
|
r = r.replace("on:", "");
|
|
643
654
|
break;
|
|
644
655
|
}
|
|
645
|
-
t[r] =
|
|
656
|
+
t[r] = Wt(a, e);
|
|
646
657
|
}
|
|
647
658
|
return t;
|
|
648
659
|
}
|
|
649
|
-
function
|
|
660
|
+
function Nt({
|
|
650
661
|
properties: e
|
|
651
662
|
}) {
|
|
652
663
|
return e;
|
|
653
664
|
}
|
|
654
|
-
const
|
|
665
|
+
const Ft = (e) => ({
|
|
655
666
|
href: e.href
|
|
656
667
|
});
|
|
657
668
|
function fe({
|
|
@@ -660,22 +671,22 @@ function fe({
|
|
|
660
671
|
}) {
|
|
661
672
|
var i;
|
|
662
673
|
const n = {
|
|
663
|
-
...
|
|
674
|
+
...Ft(e),
|
|
664
675
|
...e.properties,
|
|
665
676
|
"builder-id": e.id,
|
|
666
|
-
style:
|
|
677
|
+
style: Ct({
|
|
667
678
|
block: e,
|
|
668
679
|
context: t
|
|
669
680
|
}),
|
|
670
681
|
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
671
682
|
};
|
|
672
|
-
return
|
|
683
|
+
return Nt({
|
|
673
684
|
properties: n,
|
|
674
685
|
context: t,
|
|
675
686
|
block: e
|
|
676
687
|
});
|
|
677
688
|
}
|
|
678
|
-
function
|
|
689
|
+
function $t(e) {
|
|
679
690
|
return /* @__PURE__ */ l(
|
|
680
691
|
de,
|
|
681
692
|
{
|
|
@@ -696,7 +707,10 @@ function Ft(e) {
|
|
|
696
707
|
}
|
|
697
708
|
);
|
|
698
709
|
}
|
|
699
|
-
function
|
|
710
|
+
function Dt(e) {
|
|
711
|
+
return /* @__PURE__ */ l(I, { children: e.children });
|
|
712
|
+
}
|
|
713
|
+
function Lt(e) {
|
|
700
714
|
function t() {
|
|
701
715
|
return e.includeBlockProps ? {
|
|
702
716
|
...fe({
|
|
@@ -712,9 +726,18 @@ function $t(e) {
|
|
|
712
726
|
})
|
|
713
727
|
} : {};
|
|
714
728
|
}
|
|
715
|
-
return /* @__PURE__ */ l(
|
|
729
|
+
return /* @__PURE__ */ l(I, { children: e.Wrapper.load ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
730
|
+
Dt,
|
|
731
|
+
{
|
|
732
|
+
load: e.Wrapper.load,
|
|
733
|
+
fallback: e.Wrapper.fallback,
|
|
734
|
+
props: e.wrapperProps,
|
|
735
|
+
attributes: t(),
|
|
736
|
+
children: e.children
|
|
737
|
+
}
|
|
738
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
716
739
|
}
|
|
717
|
-
const
|
|
740
|
+
const Ot = ({
|
|
718
741
|
componentOptions: e,
|
|
719
742
|
builderBlock: t,
|
|
720
743
|
context: n,
|
|
@@ -747,12 +770,12 @@ const Dt = ({
|
|
|
747
770
|
function xe(e) {
|
|
748
771
|
var i;
|
|
749
772
|
const [t, n] = T(
|
|
750
|
-
() => e.isInteractive ?
|
|
773
|
+
() => e.isInteractive ? Lt : e.componentRef
|
|
751
774
|
);
|
|
752
|
-
return /* @__PURE__ */ l(
|
|
775
|
+
return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
753
776
|
t,
|
|
754
777
|
{
|
|
755
|
-
...
|
|
778
|
+
...Ot({
|
|
756
779
|
componentOptions: e.componentOptions,
|
|
757
780
|
builderBlock: e.builderBlock,
|
|
758
781
|
context: e.context,
|
|
@@ -790,7 +813,7 @@ function ve(e) {
|
|
|
790
813
|
function J(e) {
|
|
791
814
|
var u, g, m, x;
|
|
792
815
|
function t() {
|
|
793
|
-
return
|
|
816
|
+
return It({
|
|
794
817
|
block: e.block,
|
|
795
818
|
context: e.context
|
|
796
819
|
});
|
|
@@ -803,7 +826,7 @@ function J(e) {
|
|
|
803
826
|
var p;
|
|
804
827
|
if (n.value && !n.update && !Re())
|
|
805
828
|
return n.value;
|
|
806
|
-
const h = (p = e.block.repeat) != null && p.collection ? e.block :
|
|
829
|
+
const h = (p = e.block.repeat) != null && p.collection ? e.block : bt({
|
|
807
830
|
block: e.block,
|
|
808
831
|
localState: e.context.localState,
|
|
809
832
|
rootState: e.context.rootState,
|
|
@@ -814,7 +837,7 @@ function J(e) {
|
|
|
814
837
|
return n.value = h, n.update = !1, h;
|
|
815
838
|
}
|
|
816
839
|
function a() {
|
|
817
|
-
return
|
|
840
|
+
return Tt({
|
|
818
841
|
block: o(),
|
|
819
842
|
registeredComponents: e.registeredComponents
|
|
820
843
|
});
|
|
@@ -824,9 +847,9 @@ function J(e) {
|
|
|
824
847
|
return e.block.tagName === "a" || ((p = o().properties) == null ? void 0 : p.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
825
848
|
}
|
|
826
849
|
function s() {
|
|
827
|
-
var f,
|
|
850
|
+
var f, R;
|
|
828
851
|
if ((f = e.block.repeat) != null && f.collection)
|
|
829
|
-
return !!((
|
|
852
|
+
return !!((R = t == null ? void 0 : t()) != null && R.length);
|
|
830
853
|
const h = "hide" in o() ? o().hide : !1;
|
|
831
854
|
return ("show" in o() ? o().show : !0) && !h;
|
|
832
855
|
}
|
|
@@ -835,16 +858,16 @@ function J(e) {
|
|
|
835
858
|
return !((p = a == null ? void 0 : a()) != null && p.component) && !t() ? (f = o().children) != null ? f : [] : [];
|
|
836
859
|
}
|
|
837
860
|
function c() {
|
|
838
|
-
var h, p, f,
|
|
861
|
+
var h, p, f, R;
|
|
839
862
|
return {
|
|
840
863
|
blockChildren: (h = o().children) != null ? h : [],
|
|
841
864
|
componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
|
|
842
865
|
componentOptions: {
|
|
843
|
-
...
|
|
844
|
-
...
|
|
845
|
-
...
|
|
846
|
-
...
|
|
847
|
-
...
|
|
866
|
+
...ot(o()),
|
|
867
|
+
...Et(a(), o()),
|
|
868
|
+
...Bt(a(), e.context),
|
|
869
|
+
...wt(a(), e.linkComponent),
|
|
870
|
+
...Rt(
|
|
848
871
|
a(),
|
|
849
872
|
e.registeredComponents
|
|
850
873
|
)
|
|
@@ -854,12 +877,12 @@ function J(e) {
|
|
|
854
877
|
registeredComponents: e.registeredComponents,
|
|
855
878
|
builderBlock: o(),
|
|
856
879
|
includeBlockProps: ((f = a == null ? void 0 : a()) == null ? void 0 : f.noWrap) === !0,
|
|
857
|
-
isInteractive: !((
|
|
880
|
+
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && U === "rsc")
|
|
858
881
|
};
|
|
859
882
|
}
|
|
860
883
|
return P(() => {
|
|
861
884
|
const h = o().id, p = o().animations;
|
|
862
|
-
p && h &&
|
|
885
|
+
p && h && yt(
|
|
863
886
|
p.map((f) => ({
|
|
864
887
|
...f,
|
|
865
888
|
elementId: h
|
|
@@ -867,9 +890,9 @@ function J(e) {
|
|
|
867
890
|
);
|
|
868
891
|
}, []), P(() => {
|
|
869
892
|
n.update = !0;
|
|
870
|
-
}), /* @__PURE__ */ l(
|
|
871
|
-
/* @__PURE__ */ l(
|
|
872
|
-
(u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(
|
|
893
|
+
}), /* @__PURE__ */ l(I, { children: s() ? /* @__PURE__ */ V(I, { children: [
|
|
894
|
+
/* @__PURE__ */ l(Pt, { block: o(), context: e.context }),
|
|
895
|
+
(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(
|
|
873
896
|
ve,
|
|
874
897
|
{
|
|
875
898
|
repeatContext: h.context,
|
|
@@ -891,7 +914,7 @@ function J(e) {
|
|
|
891
914
|
includeBlockProps: c().includeBlockProps,
|
|
892
915
|
isInteractive: c().isInteractive
|
|
893
916
|
}
|
|
894
|
-
) : /* @__PURE__ */ l(
|
|
917
|
+
) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ l(
|
|
895
918
|
ve,
|
|
896
919
|
{
|
|
897
920
|
repeatContext: h.context,
|
|
@@ -901,7 +924,7 @@ function J(e) {
|
|
|
901
924
|
},
|
|
902
925
|
p
|
|
903
926
|
)) }) : /* @__PURE__ */ V(
|
|
904
|
-
|
|
927
|
+
$t,
|
|
905
928
|
{
|
|
906
929
|
Wrapper: r(),
|
|
907
930
|
block: o(),
|
|
@@ -936,7 +959,7 @@ function J(e) {
|
|
|
936
959
|
) })
|
|
937
960
|
] }) : null });
|
|
938
961
|
}
|
|
939
|
-
function
|
|
962
|
+
function Ut(e) {
|
|
940
963
|
const t = z(null);
|
|
941
964
|
function n() {
|
|
942
965
|
var a;
|
|
@@ -969,7 +992,7 @@ function Lt(e) {
|
|
|
969
992
|
));
|
|
970
993
|
}
|
|
971
994
|
return P(() => {
|
|
972
|
-
}, []), /* @__PURE__ */ V(
|
|
995
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
973
996
|
/* @__PURE__ */ l(
|
|
974
997
|
e.BlocksWrapper,
|
|
975
998
|
{
|
|
@@ -996,7 +1019,7 @@ function D(e) {
|
|
|
996
1019
|
var i, o, a;
|
|
997
1020
|
const t = be(ue), n = be(Ve);
|
|
998
1021
|
return /* @__PURE__ */ l(
|
|
999
|
-
|
|
1022
|
+
Ut,
|
|
1000
1023
|
{
|
|
1001
1024
|
blocks: e.blocks,
|
|
1002
1025
|
parent: e.parent,
|
|
@@ -1004,7 +1027,7 @@ function D(e) {
|
|
|
1004
1027
|
styleProp: e.styleProp,
|
|
1005
1028
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1006
1029
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1007
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
1030
|
+
children: e.blocks ? /* @__PURE__ */ l(I, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1008
1031
|
J,
|
|
1009
1032
|
{
|
|
1010
1033
|
block: r,
|
|
@@ -1017,8 +1040,8 @@ function D(e) {
|
|
|
1017
1040
|
}
|
|
1018
1041
|
);
|
|
1019
1042
|
}
|
|
1020
|
-
const
|
|
1021
|
-
function
|
|
1043
|
+
const Mt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1044
|
+
function jt(e) {
|
|
1022
1045
|
var A, O;
|
|
1023
1046
|
const [t, n] = T(
|
|
1024
1047
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -1029,24 +1052,24 @@ function Ut(e) {
|
|
|
1029
1052
|
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
1030
1053
|
}
|
|
1031
1054
|
function d(v) {
|
|
1032
|
-
var
|
|
1033
|
-
return ((
|
|
1055
|
+
var E;
|
|
1056
|
+
return ((E = i[v]) == null ? void 0 : E.width) || 100 / i.length;
|
|
1034
1057
|
}
|
|
1035
1058
|
function c(v) {
|
|
1036
|
-
const
|
|
1037
|
-
return `calc(${
|
|
1059
|
+
const E = d(v), W = t * (i.length - 1) * (E / 100);
|
|
1060
|
+
return `calc(${E}% - ${W}px)`;
|
|
1038
1061
|
}
|
|
1039
1062
|
function u({
|
|
1040
1063
|
stackedStyle: v,
|
|
1041
|
-
desktopStyle:
|
|
1064
|
+
desktopStyle: E
|
|
1042
1065
|
}) {
|
|
1043
|
-
return a === "tablet" ? v :
|
|
1066
|
+
return a === "tablet" ? v : E;
|
|
1044
1067
|
}
|
|
1045
1068
|
function g({
|
|
1046
1069
|
stackedStyle: v,
|
|
1047
|
-
desktopStyle:
|
|
1070
|
+
desktopStyle: E
|
|
1048
1071
|
}) {
|
|
1049
|
-
return a === "never" ?
|
|
1072
|
+
return a === "never" ? E : v;
|
|
1050
1073
|
}
|
|
1051
1074
|
const [m, x] = T(
|
|
1052
1075
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -1061,7 +1084,7 @@ function Ut(e) {
|
|
|
1061
1084
|
};
|
|
1062
1085
|
}
|
|
1063
1086
|
function p(v) {
|
|
1064
|
-
const
|
|
1087
|
+
const E = v === 0 ? 0 : t, W = c(v), y = `${E}px`, b = "100%", S = 0;
|
|
1065
1088
|
return {
|
|
1066
1089
|
...{
|
|
1067
1090
|
display: "flex",
|
|
@@ -1094,7 +1117,7 @@ function Ut(e) {
|
|
|
1094
1117
|
((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
|
|
1095
1118
|
)[v].max;
|
|
1096
1119
|
}
|
|
1097
|
-
function
|
|
1120
|
+
function R() {
|
|
1098
1121
|
const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1099
1122
|
return `
|
|
1100
1123
|
@media (max-width: ${f("medium")}px) {
|
|
@@ -1122,40 +1145,40 @@ function Ut(e) {
|
|
|
1122
1145
|
},
|
|
1123
1146
|
`;
|
|
1124
1147
|
}
|
|
1125
|
-
function B(v,
|
|
1148
|
+
function B(v, E) {
|
|
1126
1149
|
return {
|
|
1127
1150
|
...v.link ? {
|
|
1128
1151
|
href: v.link
|
|
1129
1152
|
} : {},
|
|
1130
1153
|
[_()]: "builder-column",
|
|
1131
|
-
style: Le(p(
|
|
1154
|
+
style: Le(p(E))
|
|
1132
1155
|
};
|
|
1133
1156
|
}
|
|
1134
|
-
return /* @__PURE__ */ V(
|
|
1157
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
1135
1158
|
/* @__PURE__ */ V(
|
|
1136
1159
|
"div",
|
|
1137
1160
|
{
|
|
1138
|
-
className:
|
|
1161
|
+
className: Mt((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1139
1162
|
style: h(),
|
|
1140
1163
|
children: [
|
|
1141
1164
|
/* @__PURE__ */ l(
|
|
1142
|
-
|
|
1165
|
+
te,
|
|
1143
1166
|
{
|
|
1144
1167
|
id: "builderio-columns",
|
|
1145
|
-
styles:
|
|
1168
|
+
styles: R(),
|
|
1146
1169
|
nonce: e.builderContext.nonce
|
|
1147
1170
|
}
|
|
1148
1171
|
),
|
|
1149
|
-
(O = e.columns) == null ? void 0 : O.map((v,
|
|
1172
|
+
(O = e.columns) == null ? void 0 : O.map((v, E) => /* @__PURE__ */ l(
|
|
1150
1173
|
de,
|
|
1151
1174
|
{
|
|
1152
1175
|
TagName: s(v),
|
|
1153
1176
|
actionAttributes: {},
|
|
1154
|
-
attributes: B(v,
|
|
1177
|
+
attributes: B(v, E),
|
|
1155
1178
|
children: /* @__PURE__ */ l(
|
|
1156
1179
|
D,
|
|
1157
1180
|
{
|
|
1158
|
-
path: `component.options.columns.${
|
|
1181
|
+
path: `component.options.columns.${E}.blocks`,
|
|
1159
1182
|
parent: e.builderBlock.id,
|
|
1160
1183
|
styleProp: {
|
|
1161
1184
|
flexGrow: "1"
|
|
@@ -1167,7 +1190,7 @@ function Ut(e) {
|
|
|
1167
1190
|
}
|
|
1168
1191
|
)
|
|
1169
1192
|
},
|
|
1170
|
-
|
|
1193
|
+
E
|
|
1171
1194
|
))
|
|
1172
1195
|
]
|
|
1173
1196
|
}
|
|
@@ -1178,17 +1201,17 @@ function Ut(e) {
|
|
|
1178
1201
|
}` })
|
|
1179
1202
|
] });
|
|
1180
1203
|
}
|
|
1181
|
-
function
|
|
1204
|
+
function Ht(e) {
|
|
1182
1205
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1183
1206
|
}
|
|
1184
1207
|
function Se(e) {
|
|
1185
1208
|
return e.replace(/http(s)?:/, "");
|
|
1186
1209
|
}
|
|
1187
|
-
function
|
|
1210
|
+
function Kt(e = "", t, n) {
|
|
1188
1211
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1189
1212
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1190
1213
|
}
|
|
1191
|
-
function
|
|
1214
|
+
function qt(e, t) {
|
|
1192
1215
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1193
1216
|
return e;
|
|
1194
1217
|
if (t === "master")
|
|
@@ -1200,18 +1223,18 @@ function Ht(e, t) {
|
|
|
1200
1223
|
}
|
|
1201
1224
|
return null;
|
|
1202
1225
|
}
|
|
1203
|
-
function
|
|
1226
|
+
function ie(e) {
|
|
1204
1227
|
if (!e)
|
|
1205
1228
|
return e;
|
|
1206
1229
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1207
1230
|
if (e.match(/builder\.io/)) {
|
|
1208
1231
|
let n = e;
|
|
1209
1232
|
const i = Number(e.split("?width=")[1]);
|
|
1210
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1233
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1211
1234
|
}
|
|
1212
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1235
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1213
1236
|
}
|
|
1214
|
-
function
|
|
1237
|
+
function _t(e) {
|
|
1215
1238
|
var o, a, r, s, d, c;
|
|
1216
1239
|
function t() {
|
|
1217
1240
|
var m;
|
|
@@ -1223,10 +1246,10 @@ function Kt(e) {
|
|
|
1223
1246
|
if (!e.noWebp) {
|
|
1224
1247
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1225
1248
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1226
|
-
return console.debug("Removed given srcset"),
|
|
1249
|
+
return console.debug("Removed given srcset"), ie(g);
|
|
1227
1250
|
} else if (e.image && !e.srcset)
|
|
1228
|
-
return
|
|
1229
|
-
return
|
|
1251
|
+
return ie(g);
|
|
1252
|
+
return ie(g);
|
|
1230
1253
|
}
|
|
1231
1254
|
}
|
|
1232
1255
|
function n() {
|
|
@@ -1244,8 +1267,8 @@ function Kt(e) {
|
|
|
1244
1267
|
return e.aspectRatio ? u : void 0;
|
|
1245
1268
|
}
|
|
1246
1269
|
return P(() => {
|
|
1247
|
-
}, []), /* @__PURE__ */ V(
|
|
1248
|
-
/* @__PURE__ */ V(
|
|
1270
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
1271
|
+
/* @__PURE__ */ V(I, { children: [
|
|
1249
1272
|
/* @__PURE__ */ V("picture", { children: [
|
|
1250
1273
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1251
1274
|
/* @__PURE__ */ l(
|
|
@@ -1276,7 +1299,7 @@ function Kt(e) {
|
|
|
1276
1299
|
}
|
|
1277
1300
|
}
|
|
1278
1301
|
) : null,
|
|
1279
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1302
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
|
|
1280
1303
|
!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
|
|
1281
1304
|
] }),
|
|
1282
1305
|
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
@@ -1298,7 +1321,7 @@ function Kt(e) {
|
|
|
1298
1321
|
}` })
|
|
1299
1322
|
] });
|
|
1300
1323
|
}
|
|
1301
|
-
function
|
|
1324
|
+
function zt(e) {
|
|
1302
1325
|
return /* @__PURE__ */ l(
|
|
1303
1326
|
"section",
|
|
1304
1327
|
{
|
|
@@ -1319,7 +1342,7 @@ function qt(e) {
|
|
|
1319
1342
|
}
|
|
1320
1343
|
);
|
|
1321
1344
|
}
|
|
1322
|
-
const
|
|
1345
|
+
const oe = {
|
|
1323
1346
|
"@type": "@builder.io/sdk:Element",
|
|
1324
1347
|
layerName: "Accordion item title",
|
|
1325
1348
|
responsiveStyles: {
|
|
@@ -1348,7 +1371,7 @@ const ne = {
|
|
|
1348
1371
|
}
|
|
1349
1372
|
}
|
|
1350
1373
|
}]
|
|
1351
|
-
},
|
|
1374
|
+
}, ae = {
|
|
1352
1375
|
"@type": "@builder.io/sdk:Element",
|
|
1353
1376
|
layerName: "Accordion item detail",
|
|
1354
1377
|
responsiveStyles: {
|
|
@@ -1379,7 +1402,7 @@ const ne = {
|
|
|
1379
1402
|
}
|
|
1380
1403
|
}
|
|
1381
1404
|
}]
|
|
1382
|
-
},
|
|
1405
|
+
}, Jt = {
|
|
1383
1406
|
name: "Builder:Accordion",
|
|
1384
1407
|
canHaveChildren: !0,
|
|
1385
1408
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1396,19 +1419,19 @@ const ne = {
|
|
|
1396
1419
|
name: "title",
|
|
1397
1420
|
type: "uiBlocks",
|
|
1398
1421
|
hideFromUI: !0,
|
|
1399
|
-
defaultValue: [
|
|
1422
|
+
defaultValue: [oe]
|
|
1400
1423
|
}, {
|
|
1401
1424
|
name: "detail",
|
|
1402
1425
|
type: "uiBlocks",
|
|
1403
1426
|
hideFromUI: !0,
|
|
1404
|
-
defaultValue: [
|
|
1427
|
+
defaultValue: [ae]
|
|
1405
1428
|
}],
|
|
1406
1429
|
defaultValue: [{
|
|
1407
|
-
title: [
|
|
1408
|
-
detail: [
|
|
1430
|
+
title: [oe],
|
|
1431
|
+
detail: [ae]
|
|
1409
1432
|
}, {
|
|
1410
|
-
title: [
|
|
1411
|
-
detail: [
|
|
1433
|
+
title: [oe],
|
|
1434
|
+
detail: [ae]
|
|
1412
1435
|
}],
|
|
1413
1436
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1414
1437
|
}, {
|
|
@@ -1444,7 +1467,7 @@ const ne = {
|
|
|
1444
1467
|
builderLinkComponent: !0
|
|
1445
1468
|
}
|
|
1446
1469
|
}, ke = (e) => e.toString();
|
|
1447
|
-
function
|
|
1470
|
+
function Yt(e) {
|
|
1448
1471
|
var g;
|
|
1449
1472
|
const [t, n] = T(() => []);
|
|
1450
1473
|
function i() {
|
|
@@ -1489,18 +1512,18 @@ function zt(e) {
|
|
|
1489
1512
|
`.builder-accordion-title[data-index="${h}"]`
|
|
1490
1513
|
);
|
|
1491
1514
|
if (m = h, f) {
|
|
1492
|
-
let
|
|
1515
|
+
let R = f.getBoundingClientRect();
|
|
1493
1516
|
for (; f = f && f.nextElementSibling; )
|
|
1494
1517
|
if (f) {
|
|
1495
1518
|
if (f.classList.contains("builder-accordion-detail"))
|
|
1496
1519
|
continue;
|
|
1497
1520
|
const B = f.getBoundingClientRect();
|
|
1498
|
-
if (B.left >
|
|
1521
|
+
if (B.left > R.left) {
|
|
1499
1522
|
const A = parseInt(
|
|
1500
1523
|
f.getAttribute("data-index") || "",
|
|
1501
1524
|
10
|
|
1502
1525
|
);
|
|
1503
|
-
isNaN(A) || (
|
|
1526
|
+
isNaN(A) || (R = B, m = A);
|
|
1504
1527
|
} else
|
|
1505
1528
|
break;
|
|
1506
1529
|
}
|
|
@@ -1522,7 +1545,7 @@ function zt(e) {
|
|
|
1522
1545
|
function u(m) {
|
|
1523
1546
|
t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
|
|
1524
1547
|
}
|
|
1525
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(
|
|
1548
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
|
|
1526
1549
|
/* @__PURE__ */ l(
|
|
1527
1550
|
"div",
|
|
1528
1551
|
{
|
|
@@ -1567,7 +1590,7 @@ function zt(e) {
|
|
|
1567
1590
|
) : null
|
|
1568
1591
|
] })) });
|
|
1569
1592
|
}
|
|
1570
|
-
const
|
|
1593
|
+
const Gt = {
|
|
1571
1594
|
name: "Core:Button",
|
|
1572
1595
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1573
1596
|
defaultStyles: {
|
|
@@ -1603,7 +1626,7 @@ const Jt = {
|
|
|
1603
1626
|
shouldReceiveBuilderProps: {
|
|
1604
1627
|
builderLinkComponent: !0
|
|
1605
1628
|
}
|
|
1606
|
-
},
|
|
1629
|
+
}, Qt = {
|
|
1607
1630
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1608
1631
|
name: "Columns",
|
|
1609
1632
|
isRSC: !0,
|
|
@@ -1810,13 +1833,13 @@ const Jt = {
|
|
|
1810
1833
|
builderComponents: !0,
|
|
1811
1834
|
builderLinkComponent: !0
|
|
1812
1835
|
}
|
|
1813
|
-
},
|
|
1836
|
+
}, Xt = {
|
|
1814
1837
|
name: "Fragment",
|
|
1815
1838
|
static: !0,
|
|
1816
1839
|
hidden: !0,
|
|
1817
1840
|
canHaveChildren: !0,
|
|
1818
1841
|
noWrap: !0
|
|
1819
|
-
},
|
|
1842
|
+
}, Zt = {
|
|
1820
1843
|
name: "Image",
|
|
1821
1844
|
static: !0,
|
|
1822
1845
|
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",
|
|
@@ -1924,7 +1947,7 @@ const Jt = {
|
|
|
1924
1947
|
shouldReceiveBuilderProps: {
|
|
1925
1948
|
builderBlock: !0
|
|
1926
1949
|
}
|
|
1927
|
-
},
|
|
1950
|
+
}, en = {
|
|
1928
1951
|
name: "Core:Section",
|
|
1929
1952
|
static: !0,
|
|
1930
1953
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1963,7 +1986,7 @@ const Jt = {
|
|
|
1963
1986
|
}
|
|
1964
1987
|
}
|
|
1965
1988
|
}]
|
|
1966
|
-
},
|
|
1989
|
+
}, tn = {
|
|
1967
1990
|
name: "Slot",
|
|
1968
1991
|
isRSC: !0,
|
|
1969
1992
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1981,7 +2004,7 @@ const Jt = {
|
|
|
1981
2004
|
builderComponents: !0
|
|
1982
2005
|
}
|
|
1983
2006
|
};
|
|
1984
|
-
function
|
|
2007
|
+
function nn(e) {
|
|
1985
2008
|
var t, n, i;
|
|
1986
2009
|
return /* @__PURE__ */ l(
|
|
1987
2010
|
"div",
|
|
@@ -2005,7 +2028,7 @@ function en(e) {
|
|
|
2005
2028
|
}
|
|
2006
2029
|
);
|
|
2007
2030
|
}
|
|
2008
|
-
const
|
|
2031
|
+
const on = {
|
|
2009
2032
|
name: "Symbol",
|
|
2010
2033
|
noWrap: !0,
|
|
2011
2034
|
static: !0,
|
|
@@ -2044,7 +2067,7 @@ const tn = {
|
|
|
2044
2067
|
builderComponents: !0,
|
|
2045
2068
|
builderLinkComponent: !0
|
|
2046
2069
|
}
|
|
2047
|
-
},
|
|
2070
|
+
}, re = {
|
|
2048
2071
|
"@type": "@builder.io/sdk:Element",
|
|
2049
2072
|
responsiveStyles: {
|
|
2050
2073
|
large: {
|
|
@@ -2066,7 +2089,7 @@ const tn = {
|
|
|
2066
2089
|
text: "New tab"
|
|
2067
2090
|
}
|
|
2068
2091
|
}
|
|
2069
|
-
},
|
|
2092
|
+
}, le = {
|
|
2070
2093
|
"@type": "@builder.io/sdk:Element",
|
|
2071
2094
|
responsiveStyles: {
|
|
2072
2095
|
large: {
|
|
@@ -2082,7 +2105,7 @@ const tn = {
|
|
|
2082
2105
|
text: "New tab content "
|
|
2083
2106
|
}
|
|
2084
2107
|
}
|
|
2085
|
-
},
|
|
2108
|
+
}, an = {
|
|
2086
2109
|
name: "Builder: Tabs",
|
|
2087
2110
|
inputs: [{
|
|
2088
2111
|
name: "tabs",
|
|
@@ -2092,16 +2115,16 @@ const tn = {
|
|
|
2092
2115
|
name: "label",
|
|
2093
2116
|
type: "uiBlocks",
|
|
2094
2117
|
hideFromUI: !0,
|
|
2095
|
-
defaultValue: [
|
|
2118
|
+
defaultValue: [re]
|
|
2096
2119
|
}, {
|
|
2097
2120
|
name: "content",
|
|
2098
2121
|
type: "uiBlocks",
|
|
2099
2122
|
hideFromUI: !0,
|
|
2100
|
-
defaultValue: [
|
|
2123
|
+
defaultValue: [le]
|
|
2101
2124
|
}],
|
|
2102
2125
|
defaultValue: [{
|
|
2103
2126
|
label: [{
|
|
2104
|
-
...
|
|
2127
|
+
...re,
|
|
2105
2128
|
component: {
|
|
2106
2129
|
name: "Text",
|
|
2107
2130
|
options: {
|
|
@@ -2110,7 +2133,7 @@ const tn = {
|
|
|
2110
2133
|
}
|
|
2111
2134
|
}],
|
|
2112
2135
|
content: [{
|
|
2113
|
-
...
|
|
2136
|
+
...le,
|
|
2114
2137
|
component: {
|
|
2115
2138
|
name: "Text",
|
|
2116
2139
|
options: {
|
|
@@ -2120,7 +2143,7 @@ const tn = {
|
|
|
2120
2143
|
}]
|
|
2121
2144
|
}, {
|
|
2122
2145
|
label: [{
|
|
2123
|
-
...
|
|
2146
|
+
...re,
|
|
2124
2147
|
component: {
|
|
2125
2148
|
name: "Text",
|
|
2126
2149
|
options: {
|
|
@@ -2129,7 +2152,7 @@ const tn = {
|
|
|
2129
2152
|
}
|
|
2130
2153
|
}],
|
|
2131
2154
|
content: [{
|
|
2132
|
-
...
|
|
2155
|
+
...le,
|
|
2133
2156
|
component: {
|
|
2134
2157
|
name: "Text",
|
|
2135
2158
|
options: {
|
|
@@ -2186,7 +2209,7 @@ const tn = {
|
|
|
2186
2209
|
builderLinkComponent: !0
|
|
2187
2210
|
}
|
|
2188
2211
|
};
|
|
2189
|
-
function
|
|
2212
|
+
function rn(e) {
|
|
2190
2213
|
var a;
|
|
2191
2214
|
const [t, n] = T(
|
|
2192
2215
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2245,7 +2268,7 @@ function on(e) {
|
|
|
2245
2268
|
) }) : null
|
|
2246
2269
|
] });
|
|
2247
2270
|
}
|
|
2248
|
-
const
|
|
2271
|
+
const ln = {
|
|
2249
2272
|
shouldReceiveBuilderProps: {
|
|
2250
2273
|
builderBlock: !1,
|
|
2251
2274
|
builderContext: !0
|
|
@@ -2268,7 +2291,7 @@ const an = {
|
|
|
2268
2291
|
textAlign: "center"
|
|
2269
2292
|
}
|
|
2270
2293
|
};
|
|
2271
|
-
function
|
|
2294
|
+
function sn(e) {
|
|
2272
2295
|
function t() {
|
|
2273
2296
|
var s;
|
|
2274
2297
|
const n = e.builderContext, {
|
|
@@ -2300,7 +2323,7 @@ function rn(e) {
|
|
|
2300
2323
|
}
|
|
2301
2324
|
);
|
|
2302
2325
|
}
|
|
2303
|
-
const
|
|
2326
|
+
const cn = {
|
|
2304
2327
|
name: "Custom Code",
|
|
2305
2328
|
static: !0,
|
|
2306
2329
|
requiredPermissions: ["editCode"],
|
|
@@ -2323,7 +2346,7 @@ const ln = {
|
|
|
2323
2346
|
advanced: !0
|
|
2324
2347
|
}]
|
|
2325
2348
|
};
|
|
2326
|
-
function
|
|
2349
|
+
function dn(e) {
|
|
2327
2350
|
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2328
2351
|
return P(() => {
|
|
2329
2352
|
var s;
|
|
@@ -2361,7 +2384,7 @@ function sn(e) {
|
|
|
2361
2384
|
}
|
|
2362
2385
|
);
|
|
2363
2386
|
}
|
|
2364
|
-
const
|
|
2387
|
+
const un = {
|
|
2365
2388
|
name: "Embed",
|
|
2366
2389
|
static: !0,
|
|
2367
2390
|
inputs: [{
|
|
@@ -2376,8 +2399,8 @@ const cn = {
|
|
|
2376
2399
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2377
2400
|
hideFromUI: !0
|
|
2378
2401
|
}]
|
|
2379
|
-
},
|
|
2380
|
-
function
|
|
2402
|
+
}, mn = ["text/javascript", "application/javascript", "application/ecmascript"], fn = (e) => mn.includes(e.type);
|
|
2403
|
+
function hn(e) {
|
|
2381
2404
|
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2382
2405
|
function d() {
|
|
2383
2406
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2389,7 +2412,7 @@ function mn(e) {
|
|
|
2389
2412
|
n.push(g.src);
|
|
2390
2413
|
const m = document.createElement("script");
|
|
2391
2414
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2392
|
-
} else if (
|
|
2415
|
+
} else if (fn(g) && !o.includes(g.innerText))
|
|
2393
2416
|
try {
|
|
2394
2417
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2395
2418
|
} catch (m) {
|
|
@@ -2408,7 +2431,7 @@ function mn(e) {
|
|
|
2408
2431
|
}
|
|
2409
2432
|
);
|
|
2410
2433
|
}
|
|
2411
|
-
const
|
|
2434
|
+
const gn = {
|
|
2412
2435
|
name: "Form:Form",
|
|
2413
2436
|
// editableTags: ['builder-form-error']
|
|
2414
2437
|
defaults: {
|
|
@@ -2645,14 +2668,14 @@ const fn = {
|
|
|
2645
2668
|
builderComponents: !0,
|
|
2646
2669
|
builderLinkComponent: !0
|
|
2647
2670
|
}
|
|
2648
|
-
},
|
|
2671
|
+
}, bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], pn = () => {
|
|
2649
2672
|
const e = process.env.NODE_ENV || "production";
|
|
2650
|
-
return
|
|
2651
|
-
},
|
|
2673
|
+
return bn.includes(e) ? e : "production";
|
|
2674
|
+
}, yn = (e, t, n) => {
|
|
2652
2675
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2653
2676
|
return i === void 0 || i === e ? n : i;
|
|
2654
2677
|
};
|
|
2655
|
-
function
|
|
2678
|
+
function xn(e) {
|
|
2656
2679
|
var g, m;
|
|
2657
2680
|
const t = z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2658
2681
|
function d(x) {
|
|
@@ -2677,7 +2700,7 @@ function pn(e) {
|
|
|
2677
2700
|
return;
|
|
2678
2701
|
}
|
|
2679
2702
|
x.preventDefault();
|
|
2680
|
-
const f = x.currentTarget || x.target,
|
|
2703
|
+
const f = x.currentTarget || x.target, R = e.customHeaders || {};
|
|
2681
2704
|
let B;
|
|
2682
2705
|
const A = new FormData(f), O = Array.from(f.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
|
|
2683
2706
|
let b;
|
|
@@ -2714,23 +2737,23 @@ function pn(e) {
|
|
|
2714
2737
|
We(y, S, b);
|
|
2715
2738
|
}), B = JSON.stringify(y);
|
|
2716
2739
|
}
|
|
2717
|
-
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (
|
|
2718
|
-
const
|
|
2719
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2740
|
+
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (R["content-type"] = v));
|
|
2741
|
+
const E = new CustomEvent("presubmit", { detail: { body: B } });
|
|
2742
|
+
if (t.current && (t.current.dispatchEvent(E), E.defaultPrevented))
|
|
2720
2743
|
return;
|
|
2721
2744
|
i("sending");
|
|
2722
|
-
const W = `${
|
|
2745
|
+
const W = `${pn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2723
2746
|
e.sendSubmissionsToEmail || ""
|
|
2724
2747
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2725
2748
|
fetch(
|
|
2726
2749
|
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2727
|
-
{ body: B, headers:
|
|
2750
|
+
{ body: B, headers: R, method: e.method || "post" }
|
|
2728
2751
|
).then(
|
|
2729
2752
|
async (y) => {
|
|
2730
2753
|
let b;
|
|
2731
2754
|
const S = y.headers.get("content-type");
|
|
2732
2755
|
if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
|
|
2733
|
-
let k =
|
|
2756
|
+
let k = yn(b, e.errorMessagePath);
|
|
2734
2757
|
k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
|
|
2735
2758
|
}
|
|
2736
2759
|
if (a(b), i(y.ok ? "success" : "error"), y.ok) {
|
|
@@ -2761,7 +2784,7 @@ function pn(e) {
|
|
|
2761
2784
|
);
|
|
2762
2785
|
}
|
|
2763
2786
|
}
|
|
2764
|
-
return /* @__PURE__ */ V(
|
|
2787
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
2765
2788
|
" ",
|
|
2766
2789
|
/* @__PURE__ */ V(
|
|
2767
2790
|
"form",
|
|
@@ -2774,7 +2797,7 @@ function pn(e) {
|
|
|
2774
2797
|
onSubmit: (x) => u(x),
|
|
2775
2798
|
...e.attributes,
|
|
2776
2799
|
children: [
|
|
2777
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2800
|
+
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(
|
|
2778
2801
|
J,
|
|
2779
2802
|
{
|
|
2780
2803
|
block: x,
|
|
@@ -2817,7 +2840,7 @@ function pn(e) {
|
|
|
2817
2840
|
" "
|
|
2818
2841
|
] });
|
|
2819
2842
|
}
|
|
2820
|
-
const
|
|
2843
|
+
const vn = {
|
|
2821
2844
|
name: "Form:Input",
|
|
2822
2845
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2823
2846
|
inputs: [
|
|
@@ -2869,7 +2892,7 @@ const yn = {
|
|
|
2869
2892
|
borderColor: "#ccc"
|
|
2870
2893
|
}
|
|
2871
2894
|
};
|
|
2872
|
-
function
|
|
2895
|
+
function Sn(e) {
|
|
2873
2896
|
return /* @__PURE__ */ Pe(
|
|
2874
2897
|
"input",
|
|
2875
2898
|
{
|
|
@@ -2884,7 +2907,7 @@ function xn(e) {
|
|
|
2884
2907
|
}
|
|
2885
2908
|
);
|
|
2886
2909
|
}
|
|
2887
|
-
const
|
|
2910
|
+
const kn = {
|
|
2888
2911
|
name: "Form:Select",
|
|
2889
2912
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2890
2913
|
defaultStyles: {
|
|
@@ -2927,7 +2950,7 @@ const vn = {
|
|
|
2927
2950
|
static: !0,
|
|
2928
2951
|
noWrap: !0
|
|
2929
2952
|
};
|
|
2930
|
-
function
|
|
2953
|
+
function Cn(e) {
|
|
2931
2954
|
var t;
|
|
2932
2955
|
return /* @__PURE__ */ Pe(
|
|
2933
2956
|
"select",
|
|
@@ -2942,7 +2965,7 @@ function Sn(e) {
|
|
|
2942
2965
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2943
2966
|
);
|
|
2944
2967
|
}
|
|
2945
|
-
const
|
|
2968
|
+
const Tn = {
|
|
2946
2969
|
name: "Form:SubmitButton",
|
|
2947
2970
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2948
2971
|
defaultStyles: {
|
|
@@ -2968,10 +2991,10 @@ const kn = {
|
|
|
2968
2991
|
// TODO: defaultChildren
|
|
2969
2992
|
// canHaveChildren: true,
|
|
2970
2993
|
};
|
|
2971
|
-
function
|
|
2994
|
+
function In(e) {
|
|
2972
2995
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2973
2996
|
}
|
|
2974
|
-
const
|
|
2997
|
+
const wn = {
|
|
2975
2998
|
name: "Form:TextArea",
|
|
2976
2999
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2977
3000
|
inputs: [{
|
|
@@ -3008,7 +3031,7 @@ const Tn = {
|
|
|
3008
3031
|
static: !0,
|
|
3009
3032
|
noWrap: !0
|
|
3010
3033
|
};
|
|
3011
|
-
function
|
|
3034
|
+
function Rn(e) {
|
|
3012
3035
|
return /* @__PURE__ */ l(
|
|
3013
3036
|
"textarea",
|
|
3014
3037
|
{
|
|
@@ -3021,7 +3044,7 @@ function In(e) {
|
|
|
3021
3044
|
}
|
|
3022
3045
|
);
|
|
3023
3046
|
}
|
|
3024
|
-
const
|
|
3047
|
+
const En = {
|
|
3025
3048
|
// friendlyName?
|
|
3026
3049
|
name: "Raw:Img",
|
|
3027
3050
|
hideFromInsertMenu: !0,
|
|
@@ -3036,7 +3059,7 @@ const wn = {
|
|
|
3036
3059
|
noWrap: !0,
|
|
3037
3060
|
static: !0
|
|
3038
3061
|
};
|
|
3039
|
-
function
|
|
3062
|
+
function Bn(e) {
|
|
3040
3063
|
return /* @__PURE__ */ l(
|
|
3041
3064
|
"img",
|
|
3042
3065
|
{
|
|
@@ -3051,7 +3074,7 @@ function Rn(e) {
|
|
|
3051
3074
|
$() && e.imgSrc || "default-key"
|
|
3052
3075
|
);
|
|
3053
3076
|
}
|
|
3054
|
-
const
|
|
3077
|
+
const Pn = {
|
|
3055
3078
|
name: "Video",
|
|
3056
3079
|
canHaveChildren: !0,
|
|
3057
3080
|
defaultStyles: {
|
|
@@ -3136,7 +3159,7 @@ const En = {
|
|
|
3136
3159
|
builderBlock: !0
|
|
3137
3160
|
}
|
|
3138
3161
|
};
|
|
3139
|
-
function
|
|
3162
|
+
function Vn(e) {
|
|
3140
3163
|
var i, o, a, r, s, d, c;
|
|
3141
3164
|
function t() {
|
|
3142
3165
|
return {
|
|
@@ -3237,64 +3260,64 @@ function Bn(e) {
|
|
|
3237
3260
|
}
|
|
3238
3261
|
);
|
|
3239
3262
|
}
|
|
3240
|
-
const
|
|
3241
|
-
component:
|
|
3242
|
-
...ln
|
|
3243
|
-
}, {
|
|
3244
|
-
component: mn,
|
|
3263
|
+
const An = () => [{
|
|
3264
|
+
component: dn,
|
|
3245
3265
|
...cn
|
|
3246
3266
|
}, {
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3267
|
+
component: hn,
|
|
3268
|
+
...un
|
|
3249
3269
|
}, {
|
|
3250
3270
|
component: xn,
|
|
3251
|
-
...
|
|
3252
|
-
}, {
|
|
3253
|
-
component: Cn,
|
|
3254
|
-
...kn
|
|
3271
|
+
...gn
|
|
3255
3272
|
}, {
|
|
3256
3273
|
component: Sn,
|
|
3257
3274
|
...vn
|
|
3258
3275
|
}, {
|
|
3259
3276
|
component: In,
|
|
3260
3277
|
...Tn
|
|
3278
|
+
}, {
|
|
3279
|
+
component: Cn,
|
|
3280
|
+
...kn
|
|
3261
3281
|
}, {
|
|
3262
3282
|
component: Rn,
|
|
3263
3283
|
...wn
|
|
3264
3284
|
}, {
|
|
3265
3285
|
component: Bn,
|
|
3266
3286
|
...En
|
|
3267
|
-
}], Ce = () => [{
|
|
3268
|
-
component: ot,
|
|
3269
|
-
...Jt
|
|
3270
|
-
}, {
|
|
3271
|
-
component: Ut,
|
|
3272
|
-
...Yt
|
|
3273
3287
|
}, {
|
|
3274
|
-
component:
|
|
3288
|
+
component: Vn,
|
|
3289
|
+
...Pn
|
|
3290
|
+
}], Ce = () => [{
|
|
3291
|
+
component: it,
|
|
3275
3292
|
...Gt
|
|
3276
3293
|
}, {
|
|
3277
|
-
component:
|
|
3294
|
+
component: jt,
|
|
3278
3295
|
...Qt
|
|
3279
3296
|
}, {
|
|
3280
|
-
component:
|
|
3297
|
+
component: Ht,
|
|
3281
3298
|
...Xt
|
|
3282
3299
|
}, {
|
|
3283
|
-
component:
|
|
3300
|
+
component: _t,
|
|
3284
3301
|
...Zt
|
|
3285
3302
|
}, {
|
|
3286
|
-
component:
|
|
3303
|
+
component: zt,
|
|
3304
|
+
...en
|
|
3305
|
+
}, {
|
|
3306
|
+
component: nn,
|
|
3287
3307
|
...tn
|
|
3308
|
+
}, {
|
|
3309
|
+
component: ti,
|
|
3310
|
+
...on
|
|
3311
|
+
}, {
|
|
3312
|
+
component: sn,
|
|
3313
|
+
...ln
|
|
3288
3314
|
}, {
|
|
3289
3315
|
component: rn,
|
|
3290
3316
|
...an
|
|
3291
3317
|
}, {
|
|
3292
|
-
component:
|
|
3293
|
-
...
|
|
3294
|
-
}, {
|
|
3295
|
-
component: zt,
|
|
3296
|
-
..._t
|
|
3297
|
-
}, ...Pn()], Vn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3318
|
+
component: Yt,
|
|
3319
|
+
...Jt
|
|
3320
|
+
}, ...An()], Wn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3298
3321
|
function getAndSetVariantId() {
|
|
3299
3322
|
function setCookie(name, value, days) {
|
|
3300
3323
|
let expires = '';
|
|
@@ -3350,7 +3373,7 @@ const Pn = () => [{
|
|
|
3350
3373
|
}).join('');
|
|
3351
3374
|
styleEl.innerHTML = newStyleStr;
|
|
3352
3375
|
}
|
|
3353
|
-
}`,
|
|
3376
|
+
}`, Nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3354
3377
|
if (!navigator.cookieEnabled) {
|
|
3355
3378
|
return;
|
|
3356
3379
|
}
|
|
@@ -3388,22 +3411,22 @@ const Pn = () => [{
|
|
|
3388
3411
|
...t,
|
|
3389
3412
|
testVariationId: t.id,
|
|
3390
3413
|
id: e == null ? void 0 : e.id
|
|
3391
|
-
})),
|
|
3414
|
+
})), Fn = ({
|
|
3392
3415
|
canTrack: e,
|
|
3393
3416
|
content: t
|
|
3394
|
-
}) => !(!(G(t).length > 0) || !e || H()),
|
|
3395
|
-
window.${je} = ${
|
|
3396
|
-
window.${He} = ${
|
|
3397
|
-
`,
|
|
3417
|
+
}) => !(!(G(t).length > 0) || !e || H()), $n = (e) => e === "react" || e === "reactNative", Ke = $n(U), Dn = () => `
|
|
3418
|
+
window.${je} = ${Wn}
|
|
3419
|
+
window.${He} = ${Nn}
|
|
3420
|
+
`, Ln = (e, t) => `
|
|
3398
3421
|
window.${je}(
|
|
3399
3422
|
"${t}",${JSON.stringify(e)}, ${Ke}
|
|
3400
|
-
)`,
|
|
3423
|
+
)`, On = ({
|
|
3401
3424
|
contentId: e,
|
|
3402
3425
|
variationId: t
|
|
3403
3426
|
}) => `window.${He}(
|
|
3404
3427
|
"${t}", "${e}", ${Ke}
|
|
3405
3428
|
)`;
|
|
3406
|
-
function
|
|
3429
|
+
function ce(e) {
|
|
3407
3430
|
return /* @__PURE__ */ l(
|
|
3408
3431
|
"script",
|
|
3409
3432
|
{
|
|
@@ -3416,7 +3439,7 @@ function se(e) {
|
|
|
3416
3439
|
function Te(e) {
|
|
3417
3440
|
return Math.round(e * 1e3) / 1e3;
|
|
3418
3441
|
}
|
|
3419
|
-
const
|
|
3442
|
+
const Un = (e, t, n = !0) => {
|
|
3420
3443
|
if (!(e instanceof HTMLElement))
|
|
3421
3444
|
return null;
|
|
3422
3445
|
let i = n ? e : e.parentElement;
|
|
@@ -3427,7 +3450,7 @@ const Ln = (e, t, n = !0) => {
|
|
|
3427
3450
|
return i;
|
|
3428
3451
|
} while (i = i.parentElement);
|
|
3429
3452
|
return null;
|
|
3430
|
-
},
|
|
3453
|
+
}, Mn = (e) => Un(e, (t) => {
|
|
3431
3454
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3432
3455
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3433
3456
|
}), Ie = ({
|
|
@@ -3439,8 +3462,8 @@ const Ln = (e, t, n = !0) => {
|
|
|
3439
3462
|
x: a,
|
|
3440
3463
|
y: r
|
|
3441
3464
|
};
|
|
3442
|
-
},
|
|
3443
|
-
const t = e.target, n = t &&
|
|
3465
|
+
}, jn = (e) => {
|
|
3466
|
+
const t = e.target, n = t && Mn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3444
3467
|
return {
|
|
3445
3468
|
targetBuilderElement: i || void 0,
|
|
3446
3469
|
metadata: {
|
|
@@ -3455,7 +3478,7 @@ const Ln = (e, t, n = !0) => {
|
|
|
3455
3478
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3456
3479
|
}
|
|
3457
3480
|
};
|
|
3458
|
-
},
|
|
3481
|
+
}, Hn = (e) => {
|
|
3459
3482
|
var a, r;
|
|
3460
3483
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3461
3484
|
let o = "";
|
|
@@ -3481,15 +3504,15 @@ font-weight: ${s};
|
|
|
3481
3504
|
`.trim());
|
|
3482
3505
|
}
|
|
3483
3506
|
return o;
|
|
3484
|
-
},
|
|
3507
|
+
}, Kn = ({
|
|
3485
3508
|
customFonts: e
|
|
3486
3509
|
}) => {
|
|
3487
3510
|
var t;
|
|
3488
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3489
|
-
},
|
|
3511
|
+
return ((t = e == null ? void 0 : e.map((n) => Hn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3512
|
+
}, qn = ({
|
|
3490
3513
|
cssCode: e,
|
|
3491
3514
|
contentId: t
|
|
3492
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3515
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", _n = `
|
|
3493
3516
|
.builder-button {
|
|
3494
3517
|
all: unset;
|
|
3495
3518
|
}
|
|
@@ -3506,9 +3529,9 @@ font-weight: ${s};
|
|
|
3506
3529
|
text-align: inherit;
|
|
3507
3530
|
font-family: inherit;
|
|
3508
3531
|
}
|
|
3509
|
-
`,
|
|
3510
|
-
function
|
|
3511
|
-
var B, A, O, v,
|
|
3532
|
+
`, zn = (e) => e ? "" : _n, Jn = (e) => `variant-${e}`;
|
|
3533
|
+
function Yn(e) {
|
|
3534
|
+
var B, A, O, v, E, W, y;
|
|
3512
3535
|
const t = z(null);
|
|
3513
3536
|
function n(b) {
|
|
3514
3537
|
var k, C;
|
|
@@ -3516,13 +3539,13 @@ function zn(e) {
|
|
|
3516
3539
|
...e.builderContextSignal.rootState,
|
|
3517
3540
|
...b
|
|
3518
3541
|
};
|
|
3519
|
-
e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((
|
|
3520
|
-
...
|
|
3542
|
+
e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((w) => ({
|
|
3543
|
+
...w,
|
|
3521
3544
|
rootState: S
|
|
3522
3545
|
}));
|
|
3523
3546
|
}
|
|
3524
3547
|
function i(b) {
|
|
3525
|
-
var k, C,
|
|
3548
|
+
var k, C, w, N, M;
|
|
3526
3549
|
const S = {
|
|
3527
3550
|
...e.builderContextSignal.content,
|
|
3528
3551
|
...b,
|
|
@@ -3533,7 +3556,7 @@ function zn(e) {
|
|
|
3533
3556
|
meta: {
|
|
3534
3557
|
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3535
3558
|
...b == null ? void 0 : b.meta,
|
|
3536
|
-
breakpoints: ((
|
|
3559
|
+
breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((M = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : M.breakpoints)
|
|
3537
3560
|
}
|
|
3538
3561
|
};
|
|
3539
3562
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3556,9 +3579,9 @@ function zn(e) {
|
|
|
3556
3579
|
trustedHosts: e.trustedHosts,
|
|
3557
3580
|
callbacks: {
|
|
3558
3581
|
configureSdk: (S) => {
|
|
3559
|
-
var
|
|
3582
|
+
var w;
|
|
3560
3583
|
const { breakpoints: k, contentId: C } = S;
|
|
3561
|
-
!C || C !== ((
|
|
3584
|
+
!C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || k && i({
|
|
3562
3585
|
meta: {
|
|
3563
3586
|
breakpoints: k
|
|
3564
3587
|
}
|
|
@@ -3592,14 +3615,14 @@ function zn(e) {
|
|
|
3592
3615
|
function p(b) {
|
|
3593
3616
|
var S, k;
|
|
3594
3617
|
if (e.builderContextSignal.content) {
|
|
3595
|
-
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId,
|
|
3618
|
+
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, w = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
3596
3619
|
he({
|
|
3597
3620
|
type: "click",
|
|
3598
|
-
canTrack:
|
|
3599
|
-
contentId:
|
|
3621
|
+
canTrack: X(e.canTrack),
|
|
3622
|
+
contentId: w,
|
|
3600
3623
|
apiKey: e.apiKey,
|
|
3601
|
-
variationId: C !==
|
|
3602
|
-
...
|
|
3624
|
+
variationId: C !== w ? C : void 0,
|
|
3625
|
+
...jn(b),
|
|
3603
3626
|
unique: !x
|
|
3604
3627
|
});
|
|
3605
3628
|
}
|
|
@@ -3608,10 +3631,10 @@ function zn(e) {
|
|
|
3608
3631
|
function f() {
|
|
3609
3632
|
var S, k, C;
|
|
3610
3633
|
const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
|
|
3611
|
-
Object.entries(b).forEach(([
|
|
3612
|
-
if (!N || g[
|
|
3634
|
+
Object.entries(b).forEach(([w, N]) => {
|
|
3635
|
+
if (!N || g[w] || c[w] && !$())
|
|
3613
3636
|
return;
|
|
3614
|
-
g[
|
|
3637
|
+
g[w] = !0;
|
|
3615
3638
|
const M = N.replace(
|
|
3616
3639
|
/{{([^}]+)}}/g,
|
|
3617
3640
|
(F, qe) => String(
|
|
@@ -3627,16 +3650,16 @@ function zn(e) {
|
|
|
3627
3650
|
);
|
|
3628
3651
|
Ze(M).then((F) => F.json()).then((F) => {
|
|
3629
3652
|
n({
|
|
3630
|
-
[
|
|
3631
|
-
}), c[
|
|
3653
|
+
[w]: F
|
|
3654
|
+
}), c[w] = !0;
|
|
3632
3655
|
}).catch((F) => {
|
|
3633
3656
|
console.error("error fetching dynamic data", N, F);
|
|
3634
3657
|
}).finally(() => {
|
|
3635
|
-
g[
|
|
3658
|
+
g[w] = !1;
|
|
3636
3659
|
});
|
|
3637
3660
|
});
|
|
3638
3661
|
}
|
|
3639
|
-
function
|
|
3662
|
+
function R() {
|
|
3640
3663
|
$() && window.dispatchEvent(
|
|
3641
3664
|
new CustomEvent(
|
|
3642
3665
|
"builder:component:stateChange",
|
|
@@ -3668,26 +3691,26 @@ function zn(e) {
|
|
|
3668
3691
|
e.builderContextSignal.componentInfos
|
|
3669
3692
|
).forEach((C) => {
|
|
3670
3693
|
var N;
|
|
3671
|
-
const
|
|
3672
|
-
(N = window.parent) == null || N.postMessage(
|
|
3694
|
+
const w = Qe(C);
|
|
3695
|
+
(N = window.parent) == null || N.postMessage(w, "*");
|
|
3673
3696
|
}), window.addEventListener(
|
|
3674
3697
|
"builder:component:stateChangeListenerActivated",
|
|
3675
|
-
|
|
3676
|
-
)), e.builderContextSignal.content &&
|
|
3677
|
-
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId,
|
|
3698
|
+
R
|
|
3699
|
+
)), e.builderContextSignal.content && X(e.canTrack)) {
|
|
3700
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, N = e.apiKey;
|
|
3678
3701
|
he({
|
|
3679
3702
|
type: "impression",
|
|
3680
3703
|
canTrack: !0,
|
|
3681
|
-
contentId:
|
|
3704
|
+
contentId: w,
|
|
3682
3705
|
apiKey: N,
|
|
3683
|
-
variationId: C !==
|
|
3706
|
+
variationId: C !== w ? C : void 0
|
|
3684
3707
|
});
|
|
3685
3708
|
}
|
|
3686
3709
|
if (Re() && !$()) {
|
|
3687
|
-
const C = new URL(location.href).searchParams,
|
|
3688
|
-
`builder.overrides.${
|
|
3710
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), N = C.get(
|
|
3711
|
+
`builder.overrides.${w}`
|
|
3689
3712
|
), M = C.get("apiKey") || C.get("builder.space");
|
|
3690
|
-
|
|
3713
|
+
w === e.model && M === e.apiKey && (!e.content || N === e.content.id) && Ee({
|
|
3691
3714
|
model: e.model,
|
|
3692
3715
|
apiKey: e.apiKey,
|
|
3693
3716
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3697,9 +3720,9 @@ function zn(e) {
|
|
|
3697
3720
|
}
|
|
3698
3721
|
}
|
|
3699
3722
|
}, []), P(() => {
|
|
3700
|
-
e.apiKey ||
|
|
3723
|
+
e.apiKey || Z.error(
|
|
3701
3724
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3702
|
-
), d(), f(),
|
|
3725
|
+
), d(), f(), R();
|
|
3703
3726
|
}, []), P(() => {
|
|
3704
3727
|
e.content && i(e.content);
|
|
3705
3728
|
}, [e.content]), P(() => {
|
|
@@ -3707,7 +3730,7 @@ function zn(e) {
|
|
|
3707
3730
|
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3708
3731
|
f();
|
|
3709
3732
|
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3710
|
-
|
|
3733
|
+
R();
|
|
3711
3734
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3712
3735
|
e.data && n(e.data);
|
|
3713
3736
|
}, [e.data]), P(() => {
|
|
@@ -3717,39 +3740,39 @@ function zn(e) {
|
|
|
3717
3740
|
}, [e.locale]), P(() => () => {
|
|
3718
3741
|
H() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3719
3742
|
"builder:component:stateChangeListenerActivated",
|
|
3720
|
-
|
|
3743
|
+
R
|
|
3721
3744
|
));
|
|
3722
3745
|
}, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3723
3746
|
a,
|
|
3724
3747
|
{
|
|
3725
3748
|
ref: t,
|
|
3726
3749
|
onClick: (b) => p(b),
|
|
3727
|
-
"builder-content-id": (
|
|
3750
|
+
"builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
|
|
3728
3751
|
"builder-model": e.model,
|
|
3729
3752
|
...o(),
|
|
3730
3753
|
...e.contentWrapperProps,
|
|
3731
|
-
className:
|
|
3754
|
+
className: Jn(
|
|
3732
3755
|
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3733
3756
|
),
|
|
3734
3757
|
children: e.children
|
|
3735
3758
|
}
|
|
3736
3759
|
) : null });
|
|
3737
3760
|
}
|
|
3738
|
-
function
|
|
3761
|
+
function Gn(e) {
|
|
3739
3762
|
const [t, n] = T(
|
|
3740
3763
|
() => `
|
|
3741
|
-
${
|
|
3764
|
+
${qn({
|
|
3742
3765
|
cssCode: e.cssCode,
|
|
3743
3766
|
contentId: e.contentId
|
|
3744
3767
|
})}
|
|
3745
|
-
${
|
|
3768
|
+
${Kn({
|
|
3746
3769
|
customFonts: e.customFonts
|
|
3747
3770
|
})}
|
|
3748
|
-
${
|
|
3771
|
+
${zn(e.isNestedRender)}
|
|
3749
3772
|
`.trim()
|
|
3750
3773
|
);
|
|
3751
3774
|
return /* @__PURE__ */ l(
|
|
3752
|
-
|
|
3775
|
+
te,
|
|
3753
3776
|
{
|
|
3754
3777
|
id: "builderio-content",
|
|
3755
3778
|
styles: t,
|
|
@@ -3757,7 +3780,7 @@ ${qn(e.isNestedRender)}
|
|
|
3757
3780
|
}
|
|
3758
3781
|
);
|
|
3759
3782
|
}
|
|
3760
|
-
const
|
|
3783
|
+
const Qn = ({
|
|
3761
3784
|
content: e,
|
|
3762
3785
|
data: t,
|
|
3763
3786
|
locale: n
|
|
@@ -3774,7 +3797,7 @@ const Yn = ({
|
|
|
3774
3797
|
locale: n
|
|
3775
3798
|
} : {}
|
|
3776
3799
|
};
|
|
3777
|
-
},
|
|
3800
|
+
}, Xn = ({
|
|
3778
3801
|
content: e,
|
|
3779
3802
|
data: t
|
|
3780
3803
|
}) => e ? {
|
|
@@ -3790,7 +3813,7 @@ function we(e) {
|
|
|
3790
3813
|
const [t, n] = T(
|
|
3791
3814
|
() => {
|
|
3792
3815
|
var p, f;
|
|
3793
|
-
return
|
|
3816
|
+
return On({
|
|
3794
3817
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3795
3818
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3796
3819
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3811,10 +3834,10 @@ function we(e) {
|
|
|
3811
3834
|
...Ce(),
|
|
3812
3835
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3813
3836
|
].reduce(
|
|
3814
|
-
(f, { component:
|
|
3837
|
+
(f, { component: R, ...B }) => ({
|
|
3815
3838
|
...f,
|
|
3816
3839
|
[B.name]: {
|
|
3817
|
-
component:
|
|
3840
|
+
component: R,
|
|
3818
3841
|
...ge(B)
|
|
3819
3842
|
}
|
|
3820
3843
|
}),
|
|
@@ -3824,12 +3847,12 @@ function we(e) {
|
|
|
3824
3847
|
), [r, s] = T(() => {
|
|
3825
3848
|
var p;
|
|
3826
3849
|
return {
|
|
3827
|
-
content:
|
|
3850
|
+
content: Xn({
|
|
3828
3851
|
content: e.content,
|
|
3829
3852
|
data: e.data
|
|
3830
3853
|
}),
|
|
3831
3854
|
localState: void 0,
|
|
3832
|
-
rootState:
|
|
3855
|
+
rootState: Qn({
|
|
3833
3856
|
content: e.content,
|
|
3834
3857
|
data: e.data,
|
|
3835
3858
|
locale: e.locale
|
|
@@ -3843,7 +3866,7 @@ function we(e) {
|
|
|
3843
3866
|
...Ce(),
|
|
3844
3867
|
...((p = e.customComponents) == null ? void 0 : p.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
|
|
3845
3868
|
].reduce(
|
|
3846
|
-
(f, { component:
|
|
3869
|
+
(f, { component: R, ...B }) => ({
|
|
3847
3870
|
...f,
|
|
3848
3871
|
[B.name]: ge(B)
|
|
3849
3872
|
}),
|
|
@@ -3862,7 +3885,7 @@ function we(e) {
|
|
|
3862
3885
|
registeredComponents: o
|
|
3863
3886
|
},
|
|
3864
3887
|
children: /* @__PURE__ */ V(
|
|
3865
|
-
|
|
3888
|
+
Yn,
|
|
3866
3889
|
{
|
|
3867
3890
|
nonce: e.nonce,
|
|
3868
3891
|
content: e.content,
|
|
@@ -3881,7 +3904,7 @@ function we(e) {
|
|
|
3881
3904
|
setBuilderContextSignal: s,
|
|
3882
3905
|
children: [
|
|
3883
3906
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3884
|
-
|
|
3907
|
+
ce,
|
|
3885
3908
|
{
|
|
3886
3909
|
id: "builderio-variant-visibility",
|
|
3887
3910
|
scriptStr: t,
|
|
@@ -3889,7 +3912,7 @@ function we(e) {
|
|
|
3889
3912
|
}
|
|
3890
3913
|
) : null,
|
|
3891
3914
|
/* @__PURE__ */ l(
|
|
3892
|
-
|
|
3915
|
+
Gn,
|
|
3893
3916
|
{
|
|
3894
3917
|
nonce: e.nonce || "",
|
|
3895
3918
|
isNestedRender: e.isNestedRender,
|
|
@@ -3913,17 +3936,17 @@ function we(e) {
|
|
|
3913
3936
|
}
|
|
3914
3937
|
);
|
|
3915
3938
|
}
|
|
3916
|
-
function
|
|
3939
|
+
function Zn(e) {
|
|
3917
3940
|
var r;
|
|
3918
3941
|
const [t, n] = T(
|
|
3919
|
-
() =>
|
|
3920
|
-
canTrack:
|
|
3942
|
+
() => Fn({
|
|
3943
|
+
canTrack: X(e.canTrack),
|
|
3921
3944
|
content: e.content
|
|
3922
3945
|
})
|
|
3923
3946
|
);
|
|
3924
3947
|
function i() {
|
|
3925
3948
|
var s;
|
|
3926
|
-
return
|
|
3949
|
+
return Ln(
|
|
3927
3950
|
G(e.content).map((d) => ({
|
|
3928
3951
|
id: d.testVariationId,
|
|
3929
3952
|
testRatio: d.testRatio
|
|
@@ -3941,22 +3964,22 @@ function Qn(e) {
|
|
|
3941
3964
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3942
3965
|
} : et({
|
|
3943
3966
|
item: e.content,
|
|
3944
|
-
canTrack:
|
|
3967
|
+
canTrack: X(e.canTrack)
|
|
3945
3968
|
});
|
|
3946
3969
|
}
|
|
3947
3970
|
return P(() => {
|
|
3948
|
-
}, []), /* @__PURE__ */ V(
|
|
3971
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
3949
3972
|
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
|
|
3950
|
-
|
|
3973
|
+
ce,
|
|
3951
3974
|
{
|
|
3952
3975
|
id: "builderio-init-variants-fns",
|
|
3953
|
-
scriptStr:
|
|
3976
|
+
scriptStr: Dn(),
|
|
3954
3977
|
nonce: e.nonce || ""
|
|
3955
3978
|
}
|
|
3956
3979
|
) : null,
|
|
3957
|
-
t ? /* @__PURE__ */ V(
|
|
3980
|
+
t ? /* @__PURE__ */ V(I, { children: [
|
|
3958
3981
|
/* @__PURE__ */ l(
|
|
3959
|
-
|
|
3982
|
+
te,
|
|
3960
3983
|
{
|
|
3961
3984
|
id: "builderio-variants",
|
|
3962
3985
|
styles: o(),
|
|
@@ -3964,7 +3987,7 @@ function Qn(e) {
|
|
|
3964
3987
|
}
|
|
3965
3988
|
),
|
|
3966
3989
|
/* @__PURE__ */ l(
|
|
3967
|
-
|
|
3990
|
+
ce,
|
|
3968
3991
|
{
|
|
3969
3992
|
id: "builderio-variants-visibility",
|
|
3970
3993
|
scriptStr: i(),
|
|
@@ -4025,7 +4048,7 @@ function Qn(e) {
|
|
|
4025
4048
|
)
|
|
4026
4049
|
] });
|
|
4027
4050
|
}
|
|
4028
|
-
const
|
|
4051
|
+
const ei = async ({
|
|
4029
4052
|
builderContextValue: e,
|
|
4030
4053
|
symbol: t
|
|
4031
4054
|
}) => {
|
|
@@ -4041,10 +4064,10 @@ const Xn = async ({
|
|
|
4041
4064
|
}
|
|
4042
4065
|
}
|
|
4043
4066
|
}).catch((n) => {
|
|
4044
|
-
|
|
4067
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
4045
4068
|
});
|
|
4046
4069
|
};
|
|
4047
|
-
function
|
|
4070
|
+
function ti(e) {
|
|
4048
4071
|
var s, d, c, u;
|
|
4049
4072
|
function t() {
|
|
4050
4073
|
return "div";
|
|
@@ -4066,7 +4089,7 @@ function Zn(e) {
|
|
|
4066
4089
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4067
4090
|
});
|
|
4068
4091
|
function r() {
|
|
4069
|
-
o ||
|
|
4092
|
+
o || ei({
|
|
4070
4093
|
symbol: e.symbol,
|
|
4071
4094
|
builderContextValue: e.builderContext
|
|
4072
4095
|
}).then((g) => {
|
|
@@ -4077,7 +4100,7 @@ function Zn(e) {
|
|
|
4077
4100
|
}, []), P(() => {
|
|
4078
4101
|
r();
|
|
4079
4102
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4080
|
-
|
|
4103
|
+
Zn,
|
|
4081
4104
|
{
|
|
4082
4105
|
nonce: e.builderContext.nonce,
|
|
4083
4106
|
isNestedRender: !0,
|
|
@@ -4105,13 +4128,13 @@ function Zn(e) {
|
|
|
4105
4128
|
export {
|
|
4106
4129
|
D as Blocks,
|
|
4107
4130
|
ue as BuilderContext,
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4131
|
+
it as Button,
|
|
4132
|
+
jt as Columns,
|
|
4133
|
+
Zn as Content,
|
|
4134
|
+
Ht as Fragment,
|
|
4135
|
+
_t as Image,
|
|
4136
|
+
zt as Section,
|
|
4137
|
+
ti as Symbol,
|
|
4138
|
+
sn as Text,
|
|
4139
|
+
Vn as Video
|
|
4117
4140
|
};
|