@builder.io/sdk-react 2.0.15 → 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-b4e02b7f.js → server-entry-1db0d96b.js} +1 -1
- package/lib/browser/{server-entry-6758904f.cjs → 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-9d6ead4a.cjs → accordion-09162a27.cjs} +1 -1
- package/lib/edge/{accordion-cc5e4262.js → accordion-7c1c7c56.js} +1 -1
- package/lib/edge/{blocks-f9516def.cjs → blocks-273f24cc.cjs} +1 -1
- package/lib/edge/{blocks-28f8515f.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-5b479c4f.js → button-a923f8ff.js} +2 -2
- package/lib/edge/{button-d5d5a523.cjs → button-f2daea13.cjs} +1 -1
- package/lib/edge/columns-0b8c2260.cjs +28 -0
- package/lib/edge/{columns-80468479.js → columns-eee4f51c.js} +7 -6
- package/lib/edge/{content-variants-4a3c14d6.js → content-variants-1368cab1.js} +14 -13
- package/lib/edge/content-variants-575b5dbf.cjs +134 -0
- package/lib/edge/{evaluate-b34c0621.cjs → evaluate-4c9b2e86.cjs} +10 -10
- package/lib/edge/{evaluate-9643776e.js → evaluate-93701356.js} +336 -344
- package/lib/edge/form-bd184008.cjs +1 -0
- package/lib/edge/{form-8614781e.js → form-d0eb0af4.js} +15 -14
- package/lib/edge/{get-class-prop-name-982b0eeb.js → get-class-prop-name-1c373615.js} +1 -1
- package/lib/edge/{get-class-prop-name-3fcaaa4e.cjs → get-class-prop-name-7cd1376f.cjs} +1 -1
- package/lib/edge/{img-5481830d.cjs → img-6c8139db.cjs} +1 -1
- package/lib/edge/{img-2750ffb8.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-a53f13e5.js → input-a7e9c157.js} +1 -1
- package/lib/edge/{input-4018ed38.cjs → input-c78fef2b.cjs} +1 -1
- package/lib/edge/{select-a9ba7290.js → select-3cf593bd.js} +1 -1
- package/lib/edge/{select-b5257730.cjs → select-bd1e231b.cjs} +1 -1
- package/lib/edge/{server-entry-425ab225.js → server-entry-6b3ad048.js} +1 -1
- package/lib/edge/{server-entry-c0a129cd.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-2806840c.js → slot-a5a9a30f.js} +7 -6
- package/lib/edge/slot-ab7fc875.cjs +1 -0
- package/lib/edge/{symbol-f4a3bd00.js → symbol-77d331c6.js} +2 -2
- package/lib/edge/{symbol-2a759e66.cjs → symbol-9de15518.cjs} +1 -1
- package/lib/edge/{tabs-1e5bb78c.js → tabs-63d6ea85.js} +14 -13
- package/lib/edge/tabs-e6fa664e.cjs +1 -0
- package/lib/edge/{text-4492d4a7.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-b4e02b7f.js → server-entry-1db0d96b.js} +1 -1
- package/lib/node/{server-entry-6758904f.cjs → 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-e5a24b2b.js → should-force-browser-runtime-in-node-1188ea7b.js} +48 -34
- package/lib/node/{node-runtime-9a8c1fa3.cjs → should-force-browser-runtime-in-node-37010e2f.cjs} +4 -4
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +3 -1
- package/lib/edge/columns-52de76ba.cjs +0 -28
- package/lib/edge/content-variants-ab7b16da.cjs +0 -134
- package/lib/edge/form-2490bc65.cjs +0 -1
- package/lib/edge/slot-7c52b924.cjs +0 -1
- package/lib/edge/tabs-238833b0.cjs +0 -1
- package/lib/edge/text-95df08ad.cjs +0 -1
|
@@ -1,13 +1,14 @@
|
|
|
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
|
|
4
|
+
var ee = (e, t, n) => (ze(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, isEditing as $, isBrowser as H, getUserAttributes as Je,
|
|
6
|
+
import { TARGET as U, isEditing as $, isBrowser as H, getUserAttributes as Je, logger as ce, checkIsDefined as re, isPreviewing as Re, registerInsertMenu as Ye, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, getDefaultCanTrack as Q, _track as he, fetchOneEntry as Ee, createEditorListener as Xe, fetch as Ze, serializeIncludingFunctions as ge, handleABTestingSync as et } from "./server-entry-1db0d96b.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
|
-
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-00f3cfef.js";
|
|
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());
|
|
9
10
|
function de(e) {
|
|
10
|
-
return /* @__PURE__ */ l(E, { children:
|
|
11
|
+
return /* @__PURE__ */ l(E, { children: it(e.TagName) ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
12
|
}
|
|
12
13
|
const _ = () => {
|
|
13
14
|
switch (U) {
|
|
@@ -23,7 +24,7 @@ const _ = () => {
|
|
|
23
24
|
return "class";
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
function
|
|
27
|
+
function ot(e) {
|
|
27
28
|
function t() {
|
|
28
29
|
return {
|
|
29
30
|
...e.attributes,
|
|
@@ -62,20 +63,20 @@ const ue = Be({
|
|
|
62
63
|
BlocksWrapperProps: {},
|
|
63
64
|
nonce: ""
|
|
64
65
|
}), Ve = Be({ registeredComponents: {} });
|
|
65
|
-
function
|
|
66
|
+
function at(e) {
|
|
66
67
|
var t;
|
|
67
68
|
return {
|
|
68
69
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
70
|
...e.options
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function rt(e, ...t) {
|
|
73
74
|
const n = Object.assign({}, e);
|
|
74
75
|
for (const i of t)
|
|
75
76
|
delete n[i];
|
|
76
77
|
return n;
|
|
77
78
|
}
|
|
78
|
-
const
|
|
79
|
+
const lt = ({
|
|
79
80
|
builder: e,
|
|
80
81
|
context: t,
|
|
81
82
|
event: n,
|
|
@@ -87,12 +88,12 @@ const rt = ({
|
|
|
87
88
|
builder: e,
|
|
88
89
|
context: t,
|
|
89
90
|
event: n
|
|
90
|
-
}),
|
|
91
|
+
}), st = () => ({
|
|
91
92
|
isEditing: $(),
|
|
92
93
|
isBrowser: H(),
|
|
93
94
|
isServer: !H(),
|
|
94
95
|
getUserAttributes: () => Je()
|
|
95
|
-
}),
|
|
96
|
+
}), ct = (e, {
|
|
96
97
|
isExpression: t = !0
|
|
97
98
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
|
|
98
99
|
code: e,
|
|
@@ -103,7 +104,7 @@ const rt = ({
|
|
|
103
104
|
rootSetState: a,
|
|
104
105
|
rootState: r
|
|
105
106
|
}) => {
|
|
106
|
-
const s =
|
|
107
|
+
const s = lt({
|
|
107
108
|
builder: t,
|
|
108
109
|
context: n,
|
|
109
110
|
event: i,
|
|
@@ -140,17 +141,9 @@ function Ae({
|
|
|
140
141
|
}
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
const dt = () => {
|
|
148
|
-
var i;
|
|
149
|
-
if (!ct())
|
|
150
|
-
return !1;
|
|
151
|
-
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
152
|
-
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;
|
|
153
|
-
}, ut = (e) => (H() || dt(), pe(e)), mt = !0, L = class L {
|
|
144
|
+
const dt = (e) => (H() || tt({
|
|
145
|
+
shouldLogWarning: !0
|
|
146
|
+
}), pe(e)), ut = !0, L = class L {
|
|
154
147
|
static getCacheKey(t) {
|
|
155
148
|
return JSON.stringify({
|
|
156
149
|
...t,
|
|
@@ -168,7 +161,7 @@ const dt = () => {
|
|
|
168
161
|
});
|
|
169
162
|
}
|
|
170
163
|
};
|
|
171
|
-
|
|
164
|
+
ee(L, "cacheLimit", 20), ee(L, "cache", /* @__PURE__ */ new Map());
|
|
172
165
|
let j = L;
|
|
173
166
|
function K({
|
|
174
167
|
code: e,
|
|
@@ -183,55 +176,55 @@ function K({
|
|
|
183
176
|
if (e === "")
|
|
184
177
|
return;
|
|
185
178
|
const d = {
|
|
186
|
-
code:
|
|
179
|
+
code: ct(e, {
|
|
187
180
|
isExpression: r
|
|
188
181
|
}),
|
|
189
|
-
builder:
|
|
182
|
+
builder: st(),
|
|
190
183
|
context: t,
|
|
191
184
|
event: a,
|
|
192
185
|
rootSetState: o,
|
|
193
186
|
rootState: i,
|
|
194
187
|
localState: n
|
|
195
188
|
};
|
|
196
|
-
if (s && !
|
|
189
|
+
if (s && !ut) {
|
|
197
190
|
const c = j.getCacheKey(d), u = j.getCachedValue(c);
|
|
198
191
|
if (u)
|
|
199
192
|
return u.value;
|
|
200
193
|
}
|
|
201
194
|
try {
|
|
202
|
-
const c =
|
|
195
|
+
const c = dt(d);
|
|
203
196
|
if (s) {
|
|
204
197
|
const u = j.getCacheKey(d);
|
|
205
198
|
j.setCachedValue(u, c);
|
|
206
199
|
}
|
|
207
200
|
return c;
|
|
208
201
|
} catch (c) {
|
|
209
|
-
|
|
202
|
+
ce.error("Failed code evaluation: " + c.message, {
|
|
210
203
|
code: e
|
|
211
204
|
});
|
|
212
205
|
return;
|
|
213
206
|
}
|
|
214
207
|
}
|
|
215
|
-
const me = (e) => JSON.parse(JSON.stringify(e)),
|
|
208
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
216
209
|
if (Object(e) !== e)
|
|
217
210
|
return e;
|
|
218
211
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
219
212
|
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;
|
|
220
213
|
};
|
|
221
|
-
function
|
|
214
|
+
function le(e) {
|
|
222
215
|
if (e === null || typeof e != "object")
|
|
223
216
|
return e;
|
|
224
217
|
if (Array.isArray(e))
|
|
225
|
-
return e.map((n) =>
|
|
218
|
+
return e.map((n) => le(n));
|
|
226
219
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
227
220
|
return e;
|
|
228
221
|
const t = {};
|
|
229
222
|
for (const n in e)
|
|
230
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
223
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = le(e[n]));
|
|
231
224
|
return t;
|
|
232
225
|
}
|
|
233
|
-
const
|
|
234
|
-
if (
|
|
226
|
+
const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) => {
|
|
227
|
+
if (mt) {
|
|
235
228
|
const t = me(e);
|
|
236
229
|
return {
|
|
237
230
|
...t,
|
|
@@ -243,7 +236,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
243
236
|
}
|
|
244
237
|
};
|
|
245
238
|
} else {
|
|
246
|
-
const t =
|
|
239
|
+
const t = le(rt(e, "children", "meta"));
|
|
247
240
|
return {
|
|
248
241
|
...t,
|
|
249
242
|
properties: {
|
|
@@ -256,7 +249,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
256
249
|
meta: e.meta
|
|
257
250
|
};
|
|
258
251
|
}
|
|
259
|
-
},
|
|
252
|
+
}, ht = ({
|
|
260
253
|
block: e,
|
|
261
254
|
context: t,
|
|
262
255
|
localState: n,
|
|
@@ -265,7 +258,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
265
258
|
}) => {
|
|
266
259
|
if (!e.bindings)
|
|
267
260
|
return e;
|
|
268
|
-
const a =
|
|
261
|
+
const a = ft(e);
|
|
269
262
|
for (const r in e.bindings) {
|
|
270
263
|
const s = e.bindings[r], d = K({
|
|
271
264
|
code: s,
|
|
@@ -275,11 +268,11 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
275
268
|
context: t,
|
|
276
269
|
enableCache: !0
|
|
277
270
|
});
|
|
278
|
-
|
|
271
|
+
We(a, r, d);
|
|
279
272
|
}
|
|
280
273
|
return a;
|
|
281
274
|
};
|
|
282
|
-
function
|
|
275
|
+
function gt({
|
|
283
276
|
block: e,
|
|
284
277
|
context: t,
|
|
285
278
|
shouldEvaluateBindings: n,
|
|
@@ -288,7 +281,7 @@ function bt({
|
|
|
288
281
|
rootSetState: a
|
|
289
282
|
}) {
|
|
290
283
|
const r = e;
|
|
291
|
-
return n ?
|
|
284
|
+
return n ? ht({
|
|
292
285
|
block: r,
|
|
293
286
|
localState: i,
|
|
294
287
|
rootState: o,
|
|
@@ -296,8 +289,8 @@ function bt({
|
|
|
296
289
|
context: t
|
|
297
290
|
}) : r;
|
|
298
291
|
}
|
|
299
|
-
const
|
|
300
|
-
function
|
|
292
|
+
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
293
|
+
function bt(e, t, n = {}) {
|
|
301
294
|
let i, o, a, r = null, s = 0;
|
|
302
295
|
const d = function() {
|
|
303
296
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -319,27 +312,27 @@ function q(e, ...t) {
|
|
|
319
312
|
}
|
|
320
313
|
return n;
|
|
321
314
|
}
|
|
322
|
-
function
|
|
315
|
+
function pt(e) {
|
|
323
316
|
for (const t of e)
|
|
324
317
|
switch (t.trigger) {
|
|
325
318
|
case "pageLoad":
|
|
326
319
|
$e(t);
|
|
327
320
|
break;
|
|
328
321
|
case "scrollInView":
|
|
329
|
-
|
|
322
|
+
xt(t);
|
|
330
323
|
break;
|
|
331
324
|
}
|
|
332
325
|
}
|
|
333
|
-
function
|
|
326
|
+
function Ne(e) {
|
|
334
327
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
335
328
|
}
|
|
336
329
|
function Fe(e, t) {
|
|
337
|
-
const n =
|
|
330
|
+
const n = yt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
338
331
|
for (const s of r)
|
|
339
332
|
for (const d of n)
|
|
340
333
|
d in s || (s[d] = i[d]);
|
|
341
334
|
}
|
|
342
|
-
function
|
|
335
|
+
function yt(e) {
|
|
343
336
|
const t = [];
|
|
344
337
|
for (const n of e.steps)
|
|
345
338
|
for (const i in n.styles)
|
|
@@ -349,21 +342,21 @@ function xt(e) {
|
|
|
349
342
|
function $e(e) {
|
|
350
343
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
351
344
|
if (!t.length) {
|
|
352
|
-
|
|
345
|
+
Ne(e.elementId || e.id || "");
|
|
353
346
|
return;
|
|
354
347
|
}
|
|
355
348
|
Array.from(t).forEach((n) => {
|
|
356
349
|
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
357
|
-
n.style.transition = `all ${e.duration}s ${
|
|
350
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
358
351
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
359
352
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
360
353
|
});
|
|
361
354
|
});
|
|
362
355
|
}
|
|
363
|
-
function
|
|
356
|
+
function xt(e) {
|
|
364
357
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
365
358
|
if (!t.length) {
|
|
366
|
-
|
|
359
|
+
Ne(e.elementId || e.id || "");
|
|
367
360
|
return;
|
|
368
361
|
}
|
|
369
362
|
Array.from(t).forEach((n) => {
|
|
@@ -376,7 +369,7 @@ function vt(e) {
|
|
|
376
369
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
377
370
|
})) : e.repeat && i && !o && !s(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
378
371
|
}
|
|
379
|
-
const r =
|
|
372
|
+
const r = bt(a, 200, {
|
|
380
373
|
leading: !1
|
|
381
374
|
});
|
|
382
375
|
function s(u) {
|
|
@@ -388,7 +381,7 @@ function vt(e) {
|
|
|
388
381
|
q(n.style, d);
|
|
389
382
|
}
|
|
390
383
|
c(), setTimeout(() => {
|
|
391
|
-
n.style.transition = `all ${e.duration}s ${
|
|
384
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
392
385
|
}), document.addEventListener("scroll", r, {
|
|
393
386
|
capture: !0,
|
|
394
387
|
passive: !0
|
|
@@ -397,29 +390,29 @@ function vt(e) {
|
|
|
397
390
|
}
|
|
398
391
|
const De = (e) => Object.entries(e).map(([n, i]) => {
|
|
399
392
|
if (typeof i == "string")
|
|
400
|
-
return `${
|
|
401
|
-
}).filter(
|
|
393
|
+
return `${X(n)}: ${i};`;
|
|
394
|
+
}).filter(re), vt = (e) => De(e).join(`
|
|
402
395
|
`), Y = ({
|
|
403
396
|
mediaQuery: e,
|
|
404
397
|
className: t,
|
|
405
398
|
styles: n
|
|
406
399
|
}) => {
|
|
407
400
|
const i = `.${t} {
|
|
408
|
-
${
|
|
401
|
+
${vt(n)}
|
|
409
402
|
}`;
|
|
410
403
|
return e ? `${e} {
|
|
411
404
|
${i}
|
|
412
405
|
}` : i;
|
|
413
406
|
};
|
|
414
|
-
function
|
|
407
|
+
function St({
|
|
415
408
|
style: e
|
|
416
409
|
}) {
|
|
417
410
|
return e;
|
|
418
411
|
}
|
|
419
|
-
const
|
|
412
|
+
const kt = ({
|
|
420
413
|
block: e,
|
|
421
414
|
context: t
|
|
422
|
-
}) => Le(
|
|
415
|
+
}) => Le(St({
|
|
423
416
|
style: e.style || {},
|
|
424
417
|
context: t,
|
|
425
418
|
block: e
|
|
@@ -438,7 +431,7 @@ function Le(e) {
|
|
|
438
431
|
return e;
|
|
439
432
|
}
|
|
440
433
|
}
|
|
441
|
-
const
|
|
434
|
+
const Ct = ({
|
|
442
435
|
block: e,
|
|
443
436
|
registeredComponents: t
|
|
444
437
|
}) => {
|
|
@@ -452,7 +445,7 @@ const Tt = ({
|
|
|
452
445
|
console.warn(`
|
|
453
446
|
Could not find a registered component named "${n}".
|
|
454
447
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
455
|
-
},
|
|
448
|
+
}, Tt = ({
|
|
456
449
|
block: e,
|
|
457
450
|
context: t
|
|
458
451
|
}) => {
|
|
@@ -486,22 +479,22 @@ const Tt = ({
|
|
|
486
479
|
},
|
|
487
480
|
block: i
|
|
488
481
|
}));
|
|
489
|
-
},
|
|
482
|
+
}, It = (e, t) => {
|
|
490
483
|
var n;
|
|
491
484
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
492
485
|
builderLinkComponent: t
|
|
493
486
|
} : {};
|
|
494
|
-
},
|
|
487
|
+
}, wt = (e, t) => {
|
|
495
488
|
var n;
|
|
496
489
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
497
490
|
builderComponents: t
|
|
498
491
|
} : {};
|
|
499
|
-
},
|
|
492
|
+
}, Rt = (e, t) => {
|
|
500
493
|
var n;
|
|
501
494
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
502
495
|
builderBlock: t
|
|
503
496
|
} : {};
|
|
504
|
-
},
|
|
497
|
+
}, Et = (e, t) => {
|
|
505
498
|
var n;
|
|
506
499
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
507
500
|
builderContext: t
|
|
@@ -549,7 +542,7 @@ const Tt = ({
|
|
|
549
542
|
default: a + 1
|
|
550
543
|
}, n;
|
|
551
544
|
};
|
|
552
|
-
function
|
|
545
|
+
function Z(e) {
|
|
553
546
|
return /* @__PURE__ */ l(
|
|
554
547
|
"style",
|
|
555
548
|
{
|
|
@@ -559,10 +552,10 @@ function te(e) {
|
|
|
559
552
|
}
|
|
560
553
|
);
|
|
561
554
|
}
|
|
562
|
-
function
|
|
555
|
+
function Bt(e) {
|
|
563
556
|
function t() {
|
|
564
557
|
const i = e.block;
|
|
565
|
-
return
|
|
558
|
+
return re(i.hide) ? !i.hide : re(i.show) ? i.show : !0;
|
|
566
559
|
}
|
|
567
560
|
function n() {
|
|
568
561
|
var f, w, B;
|
|
@@ -596,7 +589,7 @@ function Pt(e) {
|
|
|
596
589
|
className: `${u}:hover`,
|
|
597
590
|
styles: {
|
|
598
591
|
...A,
|
|
599
|
-
transition: `all ${h.duration}s ${
|
|
592
|
+
transition: `all ${h.duration}s ${X(
|
|
600
593
|
h.easing
|
|
601
594
|
)}`,
|
|
602
595
|
transitionDelay: h.delay ? `${h.delay}s` : "0s"
|
|
@@ -611,7 +604,7 @@ function Pt(e) {
|
|
|
611
604
|
].join(" ");
|
|
612
605
|
}
|
|
613
606
|
return /* @__PURE__ */ l(E, { children: n() && t() ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
|
|
614
|
-
|
|
607
|
+
Z,
|
|
615
608
|
{
|
|
616
609
|
id: "builderio-block",
|
|
617
610
|
styles: n(),
|
|
@@ -619,10 +612,10 @@ function Pt(e) {
|
|
|
619
612
|
}
|
|
620
613
|
) }) : null });
|
|
621
614
|
}
|
|
622
|
-
function
|
|
615
|
+
function Pt(e) {
|
|
623
616
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
624
617
|
}
|
|
625
|
-
const
|
|
618
|
+
const Vt = (e) => `on${Pt(e)}`, At = (e, t) => (n) => K({
|
|
626
619
|
code: e,
|
|
627
620
|
context: t.context,
|
|
628
621
|
localState: t.localState,
|
|
@@ -639,7 +632,7 @@ function Me(e) {
|
|
|
639
632
|
if (!n.hasOwnProperty(o))
|
|
640
633
|
continue;
|
|
641
634
|
const a = n[o];
|
|
642
|
-
let r =
|
|
635
|
+
let r = Vt(o);
|
|
643
636
|
if (e.stripPrefix)
|
|
644
637
|
switch (U) {
|
|
645
638
|
case "vue":
|
|
@@ -649,7 +642,7 @@ function Me(e) {
|
|
|
649
642
|
r = r.replace("on:", "");
|
|
650
643
|
break;
|
|
651
644
|
}
|
|
652
|
-
t[r] =
|
|
645
|
+
t[r] = At(a, e);
|
|
653
646
|
}
|
|
654
647
|
return t;
|
|
655
648
|
}
|
|
@@ -658,7 +651,7 @@ function Wt({
|
|
|
658
651
|
}) {
|
|
659
652
|
return e;
|
|
660
653
|
}
|
|
661
|
-
const
|
|
654
|
+
const Nt = (e) => ({
|
|
662
655
|
href: e.href
|
|
663
656
|
});
|
|
664
657
|
function fe({
|
|
@@ -667,10 +660,10 @@ function fe({
|
|
|
667
660
|
}) {
|
|
668
661
|
var i;
|
|
669
662
|
const n = {
|
|
670
|
-
...
|
|
663
|
+
...Nt(e),
|
|
671
664
|
...e.properties,
|
|
672
665
|
"builder-id": e.id,
|
|
673
|
-
style:
|
|
666
|
+
style: kt({
|
|
674
667
|
block: e,
|
|
675
668
|
context: t
|
|
676
669
|
}),
|
|
@@ -682,7 +675,7 @@ function fe({
|
|
|
682
675
|
block: e
|
|
683
676
|
});
|
|
684
677
|
}
|
|
685
|
-
function
|
|
678
|
+
function Ft(e) {
|
|
686
679
|
return /* @__PURE__ */ l(
|
|
687
680
|
de,
|
|
688
681
|
{
|
|
@@ -703,7 +696,7 @@ function $t(e) {
|
|
|
703
696
|
}
|
|
704
697
|
);
|
|
705
698
|
}
|
|
706
|
-
function
|
|
699
|
+
function $t(e) {
|
|
707
700
|
function t() {
|
|
708
701
|
return e.includeBlockProps ? {
|
|
709
702
|
...fe({
|
|
@@ -721,7 +714,7 @@ function Dt(e) {
|
|
|
721
714
|
}
|
|
722
715
|
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
723
716
|
}
|
|
724
|
-
const
|
|
717
|
+
const Dt = ({
|
|
725
718
|
componentOptions: e,
|
|
726
719
|
builderBlock: t,
|
|
727
720
|
context: n,
|
|
@@ -754,12 +747,12 @@ const Lt = ({
|
|
|
754
747
|
function xe(e) {
|
|
755
748
|
var i;
|
|
756
749
|
const [t, n] = T(
|
|
757
|
-
() => e.isInteractive ?
|
|
750
|
+
() => e.isInteractive ? $t : e.componentRef
|
|
758
751
|
);
|
|
759
752
|
return /* @__PURE__ */ l(E, { children: e.componentRef ? /* @__PURE__ */ l(E, { children: /* @__PURE__ */ l(
|
|
760
753
|
t,
|
|
761
754
|
{
|
|
762
|
-
...
|
|
755
|
+
...Dt({
|
|
763
756
|
componentOptions: e.componentOptions,
|
|
764
757
|
builderBlock: e.builderBlock,
|
|
765
758
|
context: e.context,
|
|
@@ -797,7 +790,7 @@ function ve(e) {
|
|
|
797
790
|
function J(e) {
|
|
798
791
|
var u, g, m, x;
|
|
799
792
|
function t() {
|
|
800
|
-
return
|
|
793
|
+
return Tt({
|
|
801
794
|
block: e.block,
|
|
802
795
|
context: e.context
|
|
803
796
|
});
|
|
@@ -810,7 +803,7 @@ function J(e) {
|
|
|
810
803
|
var p;
|
|
811
804
|
if (n.value && !n.update && !Re())
|
|
812
805
|
return n.value;
|
|
813
|
-
const h = (p = e.block.repeat) != null && p.collection ? e.block :
|
|
806
|
+
const h = (p = e.block.repeat) != null && p.collection ? e.block : gt({
|
|
814
807
|
block: e.block,
|
|
815
808
|
localState: e.context.localState,
|
|
816
809
|
rootState: e.context.rootState,
|
|
@@ -821,7 +814,7 @@ function J(e) {
|
|
|
821
814
|
return n.value = h, n.update = !1, h;
|
|
822
815
|
}
|
|
823
816
|
function a() {
|
|
824
|
-
return
|
|
817
|
+
return Ct({
|
|
825
818
|
block: o(),
|
|
826
819
|
registeredComponents: e.registeredComponents
|
|
827
820
|
});
|
|
@@ -847,11 +840,11 @@ function J(e) {
|
|
|
847
840
|
blockChildren: (h = o().children) != null ? h : [],
|
|
848
841
|
componentRef: (p = a == null ? void 0 : a()) == null ? void 0 : p.component,
|
|
849
842
|
componentOptions: {
|
|
850
|
-
...
|
|
851
|
-
...
|
|
852
|
-
...
|
|
853
|
-
...
|
|
854
|
-
...
|
|
843
|
+
...at(o()),
|
|
844
|
+
...Rt(a(), o()),
|
|
845
|
+
...Et(a(), e.context),
|
|
846
|
+
...It(a(), e.linkComponent),
|
|
847
|
+
...wt(
|
|
855
848
|
a(),
|
|
856
849
|
e.registeredComponents
|
|
857
850
|
)
|
|
@@ -866,7 +859,7 @@ function J(e) {
|
|
|
866
859
|
}
|
|
867
860
|
return P(() => {
|
|
868
861
|
const h = o().id, p = o().animations;
|
|
869
|
-
p && h &&
|
|
862
|
+
p && h && pt(
|
|
870
863
|
p.map((f) => ({
|
|
871
864
|
...f,
|
|
872
865
|
elementId: h
|
|
@@ -875,7 +868,7 @@ function J(e) {
|
|
|
875
868
|
}, []), P(() => {
|
|
876
869
|
n.update = !0;
|
|
877
870
|
}), /* @__PURE__ */ l(E, { children: s() ? /* @__PURE__ */ V(E, { children: [
|
|
878
|
-
/* @__PURE__ */ l(
|
|
871
|
+
/* @__PURE__ */ l(Bt, { block: o(), context: e.context }),
|
|
879
872
|
(u = a == null ? void 0 : a()) != null && u.noWrap ? t() ? /* @__PURE__ */ l(E, { children: (x = t()) == null ? void 0 : x.map((h, p) => /* @__PURE__ */ l(
|
|
880
873
|
ve,
|
|
881
874
|
{
|
|
@@ -908,7 +901,7 @@ function J(e) {
|
|
|
908
901
|
},
|
|
909
902
|
p
|
|
910
903
|
)) }) : /* @__PURE__ */ V(
|
|
911
|
-
|
|
904
|
+
Ft,
|
|
912
905
|
{
|
|
913
906
|
Wrapper: r(),
|
|
914
907
|
block: o(),
|
|
@@ -943,7 +936,7 @@ function J(e) {
|
|
|
943
936
|
) })
|
|
944
937
|
] }) : null });
|
|
945
938
|
}
|
|
946
|
-
function
|
|
939
|
+
function Lt(e) {
|
|
947
940
|
const t = z(null);
|
|
948
941
|
function n() {
|
|
949
942
|
var a;
|
|
@@ -1003,7 +996,7 @@ function D(e) {
|
|
|
1003
996
|
var i, o, a;
|
|
1004
997
|
const t = be(ue), n = be(Ve);
|
|
1005
998
|
return /* @__PURE__ */ l(
|
|
1006
|
-
|
|
999
|
+
Lt,
|
|
1007
1000
|
{
|
|
1008
1001
|
blocks: e.blocks,
|
|
1009
1002
|
parent: e.parent,
|
|
@@ -1024,8 +1017,8 @@ function D(e) {
|
|
|
1024
1017
|
}
|
|
1025
1018
|
);
|
|
1026
1019
|
}
|
|
1027
|
-
const
|
|
1028
|
-
function
|
|
1020
|
+
const Ot = (e) => `builder-columns ${e}-breakpoints`;
|
|
1021
|
+
function Ut(e) {
|
|
1029
1022
|
var A, O;
|
|
1030
1023
|
const [t, n] = T(
|
|
1031
1024
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -1040,8 +1033,8 @@ function Mt(e) {
|
|
|
1040
1033
|
return ((R = i[v]) == null ? void 0 : R.width) || 100 / i.length;
|
|
1041
1034
|
}
|
|
1042
1035
|
function c(v) {
|
|
1043
|
-
const R = d(v),
|
|
1044
|
-
return `calc(${R}% - ${
|
|
1036
|
+
const R = d(v), W = t * (i.length - 1) * (R / 100);
|
|
1037
|
+
return `calc(${R}% - ${W}px)`;
|
|
1045
1038
|
}
|
|
1046
1039
|
function u({
|
|
1047
1040
|
stackedStyle: v,
|
|
@@ -1068,18 +1061,18 @@ function Mt(e) {
|
|
|
1068
1061
|
};
|
|
1069
1062
|
}
|
|
1070
1063
|
function p(v) {
|
|
1071
|
-
const R = v === 0 ? 0 : t,
|
|
1064
|
+
const R = v === 0 ? 0 : t, W = c(v), y = `${R}px`, b = "100%", S = 0;
|
|
1072
1065
|
return {
|
|
1073
1066
|
...{
|
|
1074
1067
|
display: "flex",
|
|
1075
1068
|
flexDirection: "column",
|
|
1076
1069
|
alignItems: "stretch"
|
|
1077
1070
|
},
|
|
1078
|
-
width:
|
|
1071
|
+
width: W,
|
|
1079
1072
|
["marginLeft"]: y,
|
|
1080
1073
|
"--column-width-mobile": g({
|
|
1081
1074
|
stackedStyle: b,
|
|
1082
|
-
desktopStyle:
|
|
1075
|
+
desktopStyle: W
|
|
1083
1076
|
}),
|
|
1084
1077
|
"--column-margin-left-mobile": g({
|
|
1085
1078
|
stackedStyle: S,
|
|
@@ -1087,7 +1080,7 @@ function Mt(e) {
|
|
|
1087
1080
|
}),
|
|
1088
1081
|
"--column-width-tablet": u({
|
|
1089
1082
|
stackedStyle: b,
|
|
1090
|
-
desktopStyle:
|
|
1083
|
+
desktopStyle: W
|
|
1091
1084
|
}),
|
|
1092
1085
|
"--column-margin-left-tablet": u({
|
|
1093
1086
|
stackedStyle: S,
|
|
@@ -1096,9 +1089,9 @@ function Mt(e) {
|
|
|
1096
1089
|
};
|
|
1097
1090
|
}
|
|
1098
1091
|
function f(v) {
|
|
1099
|
-
var
|
|
1092
|
+
var W, y;
|
|
1100
1093
|
return Ue(
|
|
1101
|
-
((y = (
|
|
1094
|
+
((y = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : y.breakpoints) || {}
|
|
1102
1095
|
)[v].max;
|
|
1103
1096
|
}
|
|
1104
1097
|
function w() {
|
|
@@ -1142,11 +1135,11 @@ function Mt(e) {
|
|
|
1142
1135
|
/* @__PURE__ */ V(
|
|
1143
1136
|
"div",
|
|
1144
1137
|
{
|
|
1145
|
-
className:
|
|
1138
|
+
className: Ot((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1146
1139
|
style: h(),
|
|
1147
1140
|
children: [
|
|
1148
1141
|
/* @__PURE__ */ l(
|
|
1149
|
-
|
|
1142
|
+
Z,
|
|
1150
1143
|
{
|
|
1151
1144
|
id: "builderio-columns",
|
|
1152
1145
|
styles: w(),
|
|
@@ -1185,17 +1178,17 @@ function Mt(e) {
|
|
|
1185
1178
|
}` })
|
|
1186
1179
|
] });
|
|
1187
1180
|
}
|
|
1188
|
-
function
|
|
1181
|
+
function Mt(e) {
|
|
1189
1182
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1190
1183
|
}
|
|
1191
1184
|
function Se(e) {
|
|
1192
1185
|
return e.replace(/http(s)?:/, "");
|
|
1193
1186
|
}
|
|
1194
|
-
function
|
|
1187
|
+
function jt(e = "", t, n) {
|
|
1195
1188
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1196
1189
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1197
1190
|
}
|
|
1198
|
-
function
|
|
1191
|
+
function Ht(e, t) {
|
|
1199
1192
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1200
1193
|
return e;
|
|
1201
1194
|
if (t === "master")
|
|
@@ -1207,18 +1200,18 @@ function Kt(e, t) {
|
|
|
1207
1200
|
}
|
|
1208
1201
|
return null;
|
|
1209
1202
|
}
|
|
1210
|
-
function
|
|
1203
|
+
function te(e) {
|
|
1211
1204
|
if (!e)
|
|
1212
1205
|
return e;
|
|
1213
1206
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1214
1207
|
if (e.match(/builder\.io/)) {
|
|
1215
1208
|
let n = e;
|
|
1216
1209
|
const i = Number(e.split("?width=")[1]);
|
|
1217
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1210
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${jt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1218
1211
|
}
|
|
1219
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1212
|
+
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;
|
|
1220
1213
|
}
|
|
1221
|
-
function
|
|
1214
|
+
function Kt(e) {
|
|
1222
1215
|
var o, a, r, s, d, c;
|
|
1223
1216
|
function t() {
|
|
1224
1217
|
var m;
|
|
@@ -1230,10 +1223,10 @@ function qt(e) {
|
|
|
1230
1223
|
if (!e.noWebp) {
|
|
1231
1224
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1232
1225
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1233
|
-
return console.debug("Removed given srcset"),
|
|
1226
|
+
return console.debug("Removed given srcset"), te(g);
|
|
1234
1227
|
} else if (e.image && !e.srcset)
|
|
1235
|
-
return
|
|
1236
|
-
return
|
|
1228
|
+
return te(g);
|
|
1229
|
+
return te(g);
|
|
1237
1230
|
}
|
|
1238
1231
|
}
|
|
1239
1232
|
function n() {
|
|
@@ -1305,7 +1298,7 @@ function qt(e) {
|
|
|
1305
1298
|
}` })
|
|
1306
1299
|
] });
|
|
1307
1300
|
}
|
|
1308
|
-
function
|
|
1301
|
+
function qt(e) {
|
|
1309
1302
|
return /* @__PURE__ */ l(
|
|
1310
1303
|
"section",
|
|
1311
1304
|
{
|
|
@@ -1326,7 +1319,7 @@ function _t(e) {
|
|
|
1326
1319
|
}
|
|
1327
1320
|
);
|
|
1328
1321
|
}
|
|
1329
|
-
const
|
|
1322
|
+
const ne = {
|
|
1330
1323
|
"@type": "@builder.io/sdk:Element",
|
|
1331
1324
|
layerName: "Accordion item title",
|
|
1332
1325
|
responsiveStyles: {
|
|
@@ -1355,7 +1348,7 @@ const oe = {
|
|
|
1355
1348
|
}
|
|
1356
1349
|
}
|
|
1357
1350
|
}]
|
|
1358
|
-
},
|
|
1351
|
+
}, ie = {
|
|
1359
1352
|
"@type": "@builder.io/sdk:Element",
|
|
1360
1353
|
layerName: "Accordion item detail",
|
|
1361
1354
|
responsiveStyles: {
|
|
@@ -1386,7 +1379,7 @@ const oe = {
|
|
|
1386
1379
|
}
|
|
1387
1380
|
}
|
|
1388
1381
|
}]
|
|
1389
|
-
},
|
|
1382
|
+
}, _t = {
|
|
1390
1383
|
name: "Builder:Accordion",
|
|
1391
1384
|
canHaveChildren: !0,
|
|
1392
1385
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1403,19 +1396,19 @@ const oe = {
|
|
|
1403
1396
|
name: "title",
|
|
1404
1397
|
type: "uiBlocks",
|
|
1405
1398
|
hideFromUI: !0,
|
|
1406
|
-
defaultValue: [
|
|
1399
|
+
defaultValue: [ne]
|
|
1407
1400
|
}, {
|
|
1408
1401
|
name: "detail",
|
|
1409
1402
|
type: "uiBlocks",
|
|
1410
1403
|
hideFromUI: !0,
|
|
1411
|
-
defaultValue: [
|
|
1404
|
+
defaultValue: [ie]
|
|
1412
1405
|
}],
|
|
1413
1406
|
defaultValue: [{
|
|
1414
|
-
title: [
|
|
1415
|
-
detail: [
|
|
1407
|
+
title: [ne],
|
|
1408
|
+
detail: [ie]
|
|
1416
1409
|
}, {
|
|
1417
|
-
title: [
|
|
1418
|
-
detail: [
|
|
1410
|
+
title: [ne],
|
|
1411
|
+
detail: [ie]
|
|
1419
1412
|
}],
|
|
1420
1413
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1421
1414
|
}, {
|
|
@@ -1451,7 +1444,7 @@ const oe = {
|
|
|
1451
1444
|
builderLinkComponent: !0
|
|
1452
1445
|
}
|
|
1453
1446
|
}, ke = (e) => e.toString();
|
|
1454
|
-
function
|
|
1447
|
+
function zt(e) {
|
|
1455
1448
|
var g;
|
|
1456
1449
|
const [t, n] = T(() => []);
|
|
1457
1450
|
function i() {
|
|
@@ -1574,7 +1567,7 @@ function Jt(e) {
|
|
|
1574
1567
|
) : null
|
|
1575
1568
|
] })) });
|
|
1576
1569
|
}
|
|
1577
|
-
const
|
|
1570
|
+
const Jt = {
|
|
1578
1571
|
name: "Core:Button",
|
|
1579
1572
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1580
1573
|
defaultStyles: {
|
|
@@ -1610,7 +1603,7 @@ const Yt = {
|
|
|
1610
1603
|
shouldReceiveBuilderProps: {
|
|
1611
1604
|
builderLinkComponent: !0
|
|
1612
1605
|
}
|
|
1613
|
-
},
|
|
1606
|
+
}, Yt = {
|
|
1614
1607
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1615
1608
|
name: "Columns",
|
|
1616
1609
|
isRSC: !0,
|
|
@@ -1817,13 +1810,13 @@ const Yt = {
|
|
|
1817
1810
|
builderComponents: !0,
|
|
1818
1811
|
builderLinkComponent: !0
|
|
1819
1812
|
}
|
|
1820
|
-
},
|
|
1813
|
+
}, Gt = {
|
|
1821
1814
|
name: "Fragment",
|
|
1822
1815
|
static: !0,
|
|
1823
1816
|
hidden: !0,
|
|
1824
1817
|
canHaveChildren: !0,
|
|
1825
1818
|
noWrap: !0
|
|
1826
|
-
},
|
|
1819
|
+
}, Qt = {
|
|
1827
1820
|
name: "Image",
|
|
1828
1821
|
static: !0,
|
|
1829
1822
|
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",
|
|
@@ -1931,7 +1924,7 @@ const Yt = {
|
|
|
1931
1924
|
shouldReceiveBuilderProps: {
|
|
1932
1925
|
builderBlock: !0
|
|
1933
1926
|
}
|
|
1934
|
-
},
|
|
1927
|
+
}, Xt = {
|
|
1935
1928
|
name: "Core:Section",
|
|
1936
1929
|
static: !0,
|
|
1937
1930
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1970,7 +1963,7 @@ const Yt = {
|
|
|
1970
1963
|
}
|
|
1971
1964
|
}
|
|
1972
1965
|
}]
|
|
1973
|
-
},
|
|
1966
|
+
}, Zt = {
|
|
1974
1967
|
name: "Slot",
|
|
1975
1968
|
isRSC: !0,
|
|
1976
1969
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1988,7 +1981,7 @@ const Yt = {
|
|
|
1988
1981
|
builderComponents: !0
|
|
1989
1982
|
}
|
|
1990
1983
|
};
|
|
1991
|
-
function
|
|
1984
|
+
function en(e) {
|
|
1992
1985
|
var t, n, i;
|
|
1993
1986
|
return /* @__PURE__ */ l(
|
|
1994
1987
|
"div",
|
|
@@ -2012,7 +2005,7 @@ function tn(e) {
|
|
|
2012
2005
|
}
|
|
2013
2006
|
);
|
|
2014
2007
|
}
|
|
2015
|
-
const
|
|
2008
|
+
const tn = {
|
|
2016
2009
|
name: "Symbol",
|
|
2017
2010
|
noWrap: !0,
|
|
2018
2011
|
static: !0,
|
|
@@ -2051,7 +2044,7 @@ const nn = {
|
|
|
2051
2044
|
builderComponents: !0,
|
|
2052
2045
|
builderLinkComponent: !0
|
|
2053
2046
|
}
|
|
2054
|
-
},
|
|
2047
|
+
}, oe = {
|
|
2055
2048
|
"@type": "@builder.io/sdk:Element",
|
|
2056
2049
|
responsiveStyles: {
|
|
2057
2050
|
large: {
|
|
@@ -2073,7 +2066,7 @@ const nn = {
|
|
|
2073
2066
|
text: "New tab"
|
|
2074
2067
|
}
|
|
2075
2068
|
}
|
|
2076
|
-
},
|
|
2069
|
+
}, ae = {
|
|
2077
2070
|
"@type": "@builder.io/sdk:Element",
|
|
2078
2071
|
responsiveStyles: {
|
|
2079
2072
|
large: {
|
|
@@ -2089,7 +2082,7 @@ const nn = {
|
|
|
2089
2082
|
text: "New tab content "
|
|
2090
2083
|
}
|
|
2091
2084
|
}
|
|
2092
|
-
},
|
|
2085
|
+
}, nn = {
|
|
2093
2086
|
name: "Builder: Tabs",
|
|
2094
2087
|
inputs: [{
|
|
2095
2088
|
name: "tabs",
|
|
@@ -2099,16 +2092,16 @@ const nn = {
|
|
|
2099
2092
|
name: "label",
|
|
2100
2093
|
type: "uiBlocks",
|
|
2101
2094
|
hideFromUI: !0,
|
|
2102
|
-
defaultValue: [
|
|
2095
|
+
defaultValue: [oe]
|
|
2103
2096
|
}, {
|
|
2104
2097
|
name: "content",
|
|
2105
2098
|
type: "uiBlocks",
|
|
2106
2099
|
hideFromUI: !0,
|
|
2107
|
-
defaultValue: [
|
|
2100
|
+
defaultValue: [ae]
|
|
2108
2101
|
}],
|
|
2109
2102
|
defaultValue: [{
|
|
2110
2103
|
label: [{
|
|
2111
|
-
...
|
|
2104
|
+
...oe,
|
|
2112
2105
|
component: {
|
|
2113
2106
|
name: "Text",
|
|
2114
2107
|
options: {
|
|
@@ -2117,7 +2110,7 @@ const nn = {
|
|
|
2117
2110
|
}
|
|
2118
2111
|
}],
|
|
2119
2112
|
content: [{
|
|
2120
|
-
...
|
|
2113
|
+
...ae,
|
|
2121
2114
|
component: {
|
|
2122
2115
|
name: "Text",
|
|
2123
2116
|
options: {
|
|
@@ -2127,7 +2120,7 @@ const nn = {
|
|
|
2127
2120
|
}]
|
|
2128
2121
|
}, {
|
|
2129
2122
|
label: [{
|
|
2130
|
-
...
|
|
2123
|
+
...oe,
|
|
2131
2124
|
component: {
|
|
2132
2125
|
name: "Text",
|
|
2133
2126
|
options: {
|
|
@@ -2136,7 +2129,7 @@ const nn = {
|
|
|
2136
2129
|
}
|
|
2137
2130
|
}],
|
|
2138
2131
|
content: [{
|
|
2139
|
-
...
|
|
2132
|
+
...ae,
|
|
2140
2133
|
component: {
|
|
2141
2134
|
name: "Text",
|
|
2142
2135
|
options: {
|
|
@@ -2193,7 +2186,7 @@ const nn = {
|
|
|
2193
2186
|
builderLinkComponent: !0
|
|
2194
2187
|
}
|
|
2195
2188
|
};
|
|
2196
|
-
function
|
|
2189
|
+
function on(e) {
|
|
2197
2190
|
var a;
|
|
2198
2191
|
const [t, n] = T(
|
|
2199
2192
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2252,7 +2245,7 @@ function an(e) {
|
|
|
2252
2245
|
) }) : null
|
|
2253
2246
|
] });
|
|
2254
2247
|
}
|
|
2255
|
-
const
|
|
2248
|
+
const an = {
|
|
2256
2249
|
shouldReceiveBuilderProps: {
|
|
2257
2250
|
builderBlock: !1,
|
|
2258
2251
|
builderContext: !0
|
|
@@ -2275,7 +2268,7 @@ const rn = {
|
|
|
2275
2268
|
textAlign: "center"
|
|
2276
2269
|
}
|
|
2277
2270
|
};
|
|
2278
|
-
function
|
|
2271
|
+
function rn(e) {
|
|
2279
2272
|
function t() {
|
|
2280
2273
|
var s;
|
|
2281
2274
|
const n = e.builderContext, {
|
|
@@ -2307,7 +2300,7 @@ function ln(e) {
|
|
|
2307
2300
|
}
|
|
2308
2301
|
);
|
|
2309
2302
|
}
|
|
2310
|
-
const
|
|
2303
|
+
const ln = {
|
|
2311
2304
|
name: "Custom Code",
|
|
2312
2305
|
static: !0,
|
|
2313
2306
|
requiredPermissions: ["editCode"],
|
|
@@ -2330,7 +2323,7 @@ const sn = {
|
|
|
2330
2323
|
advanced: !0
|
|
2331
2324
|
}]
|
|
2332
2325
|
};
|
|
2333
|
-
function
|
|
2326
|
+
function sn(e) {
|
|
2334
2327
|
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2335
2328
|
return P(() => {
|
|
2336
2329
|
var s;
|
|
@@ -2368,7 +2361,7 @@ function cn(e) {
|
|
|
2368
2361
|
}
|
|
2369
2362
|
);
|
|
2370
2363
|
}
|
|
2371
|
-
const
|
|
2364
|
+
const cn = {
|
|
2372
2365
|
name: "Embed",
|
|
2373
2366
|
static: !0,
|
|
2374
2367
|
inputs: [{
|
|
@@ -2383,8 +2376,8 @@ const dn = {
|
|
|
2383
2376
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2384
2377
|
hideFromUI: !0
|
|
2385
2378
|
}]
|
|
2386
|
-
},
|
|
2387
|
-
function
|
|
2379
|
+
}, dn = ["text/javascript", "application/javascript", "application/ecmascript"], un = (e) => dn.includes(e.type);
|
|
2380
|
+
function mn(e) {
|
|
2388
2381
|
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2389
2382
|
function d() {
|
|
2390
2383
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2396,7 +2389,7 @@ function fn(e) {
|
|
|
2396
2389
|
n.push(g.src);
|
|
2397
2390
|
const m = document.createElement("script");
|
|
2398
2391
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2399
|
-
} else if (
|
|
2392
|
+
} else if (un(g) && !o.includes(g.innerText))
|
|
2400
2393
|
try {
|
|
2401
2394
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2402
2395
|
} catch (m) {
|
|
@@ -2415,7 +2408,7 @@ function fn(e) {
|
|
|
2415
2408
|
}
|
|
2416
2409
|
);
|
|
2417
2410
|
}
|
|
2418
|
-
const
|
|
2411
|
+
const fn = {
|
|
2419
2412
|
name: "Form:Form",
|
|
2420
2413
|
// editableTags: ['builder-form-error']
|
|
2421
2414
|
defaults: {
|
|
@@ -2652,14 +2645,14 @@ const hn = {
|
|
|
2652
2645
|
builderComponents: !0,
|
|
2653
2646
|
builderLinkComponent: !0
|
|
2654
2647
|
}
|
|
2655
|
-
},
|
|
2648
|
+
}, hn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], gn = () => {
|
|
2656
2649
|
const e = process.env.NODE_ENV || "production";
|
|
2657
|
-
return
|
|
2658
|
-
},
|
|
2650
|
+
return hn.includes(e) ? e : "production";
|
|
2651
|
+
}, bn = (e, t, n) => {
|
|
2659
2652
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2660
2653
|
return i === void 0 || i === e ? n : i;
|
|
2661
2654
|
};
|
|
2662
|
-
function
|
|
2655
|
+
function pn(e) {
|
|
2663
2656
|
var g, m;
|
|
2664
2657
|
const t = z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2665
2658
|
function d(x) {
|
|
@@ -2718,7 +2711,7 @@ function yn(e) {
|
|
|
2718
2711
|
else {
|
|
2719
2712
|
const y = {};
|
|
2720
2713
|
Array.from(O).forEach(({ value: b, key: S }) => {
|
|
2721
|
-
|
|
2714
|
+
We(y, S, b);
|
|
2722
2715
|
}), B = JSON.stringify(y);
|
|
2723
2716
|
}
|
|
2724
2717
|
v && v !== "multipart/form-data" && (h && ((p = e.action) != null && p.includes("zapier.com")) || (w["content-type"] = v));
|
|
@@ -2726,18 +2719,18 @@ function yn(e) {
|
|
|
2726
2719
|
if (t.current && (t.current.dispatchEvent(R), R.defaultPrevented))
|
|
2727
2720
|
return;
|
|
2728
2721
|
i("sending");
|
|
2729
|
-
const
|
|
2722
|
+
const W = `${gn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2730
2723
|
e.sendSubmissionsToEmail || ""
|
|
2731
2724
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2732
2725
|
fetch(
|
|
2733
|
-
e.sendSubmissionsTo === "email" ?
|
|
2726
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2734
2727
|
{ body: B, headers: w, method: e.method || "post" }
|
|
2735
2728
|
).then(
|
|
2736
2729
|
async (y) => {
|
|
2737
2730
|
let b;
|
|
2738
2731
|
const S = y.headers.get("content-type");
|
|
2739
2732
|
if (S && S.indexOf("application/json") !== -1 ? b = await y.json() : b = await y.text(), !y.ok && e.errorMessagePath) {
|
|
2740
|
-
let k =
|
|
2733
|
+
let k = bn(b, e.errorMessagePath);
|
|
2741
2734
|
k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
|
|
2742
2735
|
}
|
|
2743
2736
|
if (a(b), i(y.ok ? "success" : "error"), y.ok) {
|
|
@@ -2824,7 +2817,7 @@ function yn(e) {
|
|
|
2824
2817
|
" "
|
|
2825
2818
|
] });
|
|
2826
2819
|
}
|
|
2827
|
-
const
|
|
2820
|
+
const yn = {
|
|
2828
2821
|
name: "Form:Input",
|
|
2829
2822
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2830
2823
|
inputs: [
|
|
@@ -2876,7 +2869,7 @@ const xn = {
|
|
|
2876
2869
|
borderColor: "#ccc"
|
|
2877
2870
|
}
|
|
2878
2871
|
};
|
|
2879
|
-
function
|
|
2872
|
+
function xn(e) {
|
|
2880
2873
|
return /* @__PURE__ */ Pe(
|
|
2881
2874
|
"input",
|
|
2882
2875
|
{
|
|
@@ -2891,7 +2884,7 @@ function vn(e) {
|
|
|
2891
2884
|
}
|
|
2892
2885
|
);
|
|
2893
2886
|
}
|
|
2894
|
-
const
|
|
2887
|
+
const vn = {
|
|
2895
2888
|
name: "Form:Select",
|
|
2896
2889
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2897
2890
|
defaultStyles: {
|
|
@@ -2934,7 +2927,7 @@ const Sn = {
|
|
|
2934
2927
|
static: !0,
|
|
2935
2928
|
noWrap: !0
|
|
2936
2929
|
};
|
|
2937
|
-
function
|
|
2930
|
+
function Sn(e) {
|
|
2938
2931
|
var t;
|
|
2939
2932
|
return /* @__PURE__ */ Pe(
|
|
2940
2933
|
"select",
|
|
@@ -2949,7 +2942,7 @@ function kn(e) {
|
|
|
2949
2942
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2950
2943
|
);
|
|
2951
2944
|
}
|
|
2952
|
-
const
|
|
2945
|
+
const kn = {
|
|
2953
2946
|
name: "Form:SubmitButton",
|
|
2954
2947
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2955
2948
|
defaultStyles: {
|
|
@@ -2975,10 +2968,10 @@ const Cn = {
|
|
|
2975
2968
|
// TODO: defaultChildren
|
|
2976
2969
|
// canHaveChildren: true,
|
|
2977
2970
|
};
|
|
2978
|
-
function
|
|
2971
|
+
function Cn(e) {
|
|
2979
2972
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2980
2973
|
}
|
|
2981
|
-
const
|
|
2974
|
+
const Tn = {
|
|
2982
2975
|
name: "Form:TextArea",
|
|
2983
2976
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2984
2977
|
inputs: [{
|
|
@@ -3015,7 +3008,7 @@ const In = {
|
|
|
3015
3008
|
static: !0,
|
|
3016
3009
|
noWrap: !0
|
|
3017
3010
|
};
|
|
3018
|
-
function
|
|
3011
|
+
function In(e) {
|
|
3019
3012
|
return /* @__PURE__ */ l(
|
|
3020
3013
|
"textarea",
|
|
3021
3014
|
{
|
|
@@ -3028,7 +3021,7 @@ function wn(e) {
|
|
|
3028
3021
|
}
|
|
3029
3022
|
);
|
|
3030
3023
|
}
|
|
3031
|
-
const
|
|
3024
|
+
const wn = {
|
|
3032
3025
|
// friendlyName?
|
|
3033
3026
|
name: "Raw:Img",
|
|
3034
3027
|
hideFromInsertMenu: !0,
|
|
@@ -3043,7 +3036,7 @@ const Rn = {
|
|
|
3043
3036
|
noWrap: !0,
|
|
3044
3037
|
static: !0
|
|
3045
3038
|
};
|
|
3046
|
-
function
|
|
3039
|
+
function Rn(e) {
|
|
3047
3040
|
return /* @__PURE__ */ l(
|
|
3048
3041
|
"img",
|
|
3049
3042
|
{
|
|
@@ -3058,7 +3051,7 @@ function En(e) {
|
|
|
3058
3051
|
$() && e.imgSrc || "default-key"
|
|
3059
3052
|
);
|
|
3060
3053
|
}
|
|
3061
|
-
const
|
|
3054
|
+
const En = {
|
|
3062
3055
|
name: "Video",
|
|
3063
3056
|
canHaveChildren: !0,
|
|
3064
3057
|
defaultStyles: {
|
|
@@ -3143,7 +3136,7 @@ const Bn = {
|
|
|
3143
3136
|
builderBlock: !0
|
|
3144
3137
|
}
|
|
3145
3138
|
};
|
|
3146
|
-
function
|
|
3139
|
+
function Bn(e) {
|
|
3147
3140
|
var i, o, a, r, s, d, c;
|
|
3148
3141
|
function t() {
|
|
3149
3142
|
return {
|
|
@@ -3244,64 +3237,64 @@ function Pn(e) {
|
|
|
3244
3237
|
}
|
|
3245
3238
|
);
|
|
3246
3239
|
}
|
|
3247
|
-
const
|
|
3248
|
-
component:
|
|
3249
|
-
...
|
|
3240
|
+
const Pn = () => [{
|
|
3241
|
+
component: sn,
|
|
3242
|
+
...ln
|
|
3250
3243
|
}, {
|
|
3251
|
-
component:
|
|
3252
|
-
...
|
|
3244
|
+
component: mn,
|
|
3245
|
+
...cn
|
|
3253
3246
|
}, {
|
|
3254
|
-
component:
|
|
3255
|
-
...
|
|
3247
|
+
component: pn,
|
|
3248
|
+
...fn
|
|
3256
3249
|
}, {
|
|
3257
|
-
component:
|
|
3258
|
-
...
|
|
3250
|
+
component: xn,
|
|
3251
|
+
...yn
|
|
3259
3252
|
}, {
|
|
3260
|
-
component:
|
|
3261
|
-
...
|
|
3253
|
+
component: Cn,
|
|
3254
|
+
...kn
|
|
3262
3255
|
}, {
|
|
3263
|
-
component:
|
|
3264
|
-
...
|
|
3256
|
+
component: Sn,
|
|
3257
|
+
...vn
|
|
3265
3258
|
}, {
|
|
3266
|
-
component:
|
|
3267
|
-
...
|
|
3259
|
+
component: In,
|
|
3260
|
+
...Tn
|
|
3268
3261
|
}, {
|
|
3269
|
-
component:
|
|
3270
|
-
...
|
|
3262
|
+
component: Rn,
|
|
3263
|
+
...wn
|
|
3271
3264
|
}, {
|
|
3272
|
-
component:
|
|
3273
|
-
...
|
|
3265
|
+
component: Bn,
|
|
3266
|
+
...En
|
|
3274
3267
|
}], Ce = () => [{
|
|
3275
|
-
component:
|
|
3268
|
+
component: ot,
|
|
3269
|
+
...Jt
|
|
3270
|
+
}, {
|
|
3271
|
+
component: Ut,
|
|
3276
3272
|
...Yt
|
|
3277
3273
|
}, {
|
|
3278
3274
|
component: Mt,
|
|
3279
3275
|
...Gt
|
|
3280
3276
|
}, {
|
|
3281
|
-
component:
|
|
3277
|
+
component: Kt,
|
|
3282
3278
|
...Qt
|
|
3283
3279
|
}, {
|
|
3284
3280
|
component: qt,
|
|
3285
3281
|
...Xt
|
|
3286
3282
|
}, {
|
|
3287
|
-
component:
|
|
3283
|
+
component: en,
|
|
3288
3284
|
...Zt
|
|
3289
3285
|
}, {
|
|
3290
|
-
component:
|
|
3291
|
-
...
|
|
3292
|
-
}, {
|
|
3293
|
-
component: ei,
|
|
3294
|
-
...nn
|
|
3286
|
+
component: Zn,
|
|
3287
|
+
...tn
|
|
3295
3288
|
}, {
|
|
3296
|
-
component:
|
|
3297
|
-
...
|
|
3289
|
+
component: rn,
|
|
3290
|
+
...an
|
|
3298
3291
|
}, {
|
|
3299
|
-
component:
|
|
3300
|
-
...
|
|
3292
|
+
component: on,
|
|
3293
|
+
...nn
|
|
3301
3294
|
}, {
|
|
3302
|
-
component:
|
|
3303
|
-
...
|
|
3304
|
-
}, ...
|
|
3295
|
+
component: zt,
|
|
3296
|
+
..._t
|
|
3297
|
+
}, ...Pn()], Vn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3305
3298
|
function getAndSetVariantId() {
|
|
3306
3299
|
function setCookie(name, value, days) {
|
|
3307
3300
|
let expires = '';
|
|
@@ -3357,7 +3350,7 @@ const Vn = () => [{
|
|
|
3357
3350
|
}).join('');
|
|
3358
3351
|
styleEl.innerHTML = newStyleStr;
|
|
3359
3352
|
}
|
|
3360
|
-
}`,
|
|
3353
|
+
}`, An = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3361
3354
|
if (!navigator.cookieEnabled) {
|
|
3362
3355
|
return;
|
|
3363
3356
|
}
|
|
@@ -3398,19 +3391,19 @@ const Vn = () => [{
|
|
|
3398
3391
|
})), Wn = ({
|
|
3399
3392
|
canTrack: e,
|
|
3400
3393
|
content: t
|
|
3401
|
-
}) => !(!(G(t).length > 0) || !e || H()),
|
|
3402
|
-
window.${je} = ${
|
|
3403
|
-
window.${He} = ${
|
|
3404
|
-
`,
|
|
3394
|
+
}) => !(!(G(t).length > 0) || !e || H()), Nn = (e) => e === "react" || e === "reactNative", Ke = Nn(U), Fn = () => `
|
|
3395
|
+
window.${je} = ${Vn}
|
|
3396
|
+
window.${He} = ${An}
|
|
3397
|
+
`, $n = (e, t) => `
|
|
3405
3398
|
window.${je}(
|
|
3406
3399
|
"${t}",${JSON.stringify(e)}, ${Ke}
|
|
3407
|
-
)`,
|
|
3400
|
+
)`, Dn = ({
|
|
3408
3401
|
contentId: e,
|
|
3409
3402
|
variationId: t
|
|
3410
3403
|
}) => `window.${He}(
|
|
3411
3404
|
"${t}", "${e}", ${Ke}
|
|
3412
3405
|
)`;
|
|
3413
|
-
function
|
|
3406
|
+
function se(e) {
|
|
3414
3407
|
return /* @__PURE__ */ l(
|
|
3415
3408
|
"script",
|
|
3416
3409
|
{
|
|
@@ -3423,7 +3416,7 @@ function ce(e) {
|
|
|
3423
3416
|
function Te(e) {
|
|
3424
3417
|
return Math.round(e * 1e3) / 1e3;
|
|
3425
3418
|
}
|
|
3426
|
-
const
|
|
3419
|
+
const Ln = (e, t, n = !0) => {
|
|
3427
3420
|
if (!(e instanceof HTMLElement))
|
|
3428
3421
|
return null;
|
|
3429
3422
|
let i = n ? e : e.parentElement;
|
|
@@ -3434,7 +3427,7 @@ const On = (e, t, n = !0) => {
|
|
|
3434
3427
|
return i;
|
|
3435
3428
|
} while (i = i.parentElement);
|
|
3436
3429
|
return null;
|
|
3437
|
-
},
|
|
3430
|
+
}, On = (e) => Ln(e, (t) => {
|
|
3438
3431
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3439
3432
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3440
3433
|
}), Ie = ({
|
|
@@ -3446,8 +3439,8 @@ const On = (e, t, n = !0) => {
|
|
|
3446
3439
|
x: a,
|
|
3447
3440
|
y: r
|
|
3448
3441
|
};
|
|
3449
|
-
},
|
|
3450
|
-
const t = e.target, n = t &&
|
|
3442
|
+
}, Un = (e) => {
|
|
3443
|
+
const t = e.target, n = t && On(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3451
3444
|
return {
|
|
3452
3445
|
targetBuilderElement: i || void 0,
|
|
3453
3446
|
metadata: {
|
|
@@ -3462,7 +3455,7 @@ const On = (e, t, n = !0) => {
|
|
|
3462
3455
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3463
3456
|
}
|
|
3464
3457
|
};
|
|
3465
|
-
},
|
|
3458
|
+
}, Mn = (e) => {
|
|
3466
3459
|
var a, r;
|
|
3467
3460
|
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;
|
|
3468
3461
|
let o = "";
|
|
@@ -3488,15 +3481,15 @@ font-weight: ${s};
|
|
|
3488
3481
|
`.trim());
|
|
3489
3482
|
}
|
|
3490
3483
|
return o;
|
|
3491
|
-
},
|
|
3484
|
+
}, jn = ({
|
|
3492
3485
|
customFonts: e
|
|
3493
3486
|
}) => {
|
|
3494
3487
|
var t;
|
|
3495
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3496
|
-
},
|
|
3488
|
+
return ((t = e == null ? void 0 : e.map((n) => Mn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3489
|
+
}, Hn = ({
|
|
3497
3490
|
cssCode: e,
|
|
3498
3491
|
contentId: t
|
|
3499
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3492
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Kn = `
|
|
3500
3493
|
.builder-button {
|
|
3501
3494
|
all: unset;
|
|
3502
3495
|
}
|
|
@@ -3513,9 +3506,9 @@ font-weight: ${s};
|
|
|
3513
3506
|
text-align: inherit;
|
|
3514
3507
|
font-family: inherit;
|
|
3515
3508
|
}
|
|
3516
|
-
`,
|
|
3517
|
-
function
|
|
3518
|
-
var B, A, O, v, R,
|
|
3509
|
+
`, qn = (e) => e ? "" : Kn, _n = (e) => `variant-${e}`;
|
|
3510
|
+
function zn(e) {
|
|
3511
|
+
var B, A, O, v, R, W, y;
|
|
3519
3512
|
const t = z(null);
|
|
3520
3513
|
function n(b) {
|
|
3521
3514
|
var k, C;
|
|
@@ -3529,7 +3522,7 @@ function Jn(e) {
|
|
|
3529
3522
|
}));
|
|
3530
3523
|
}
|
|
3531
3524
|
function i(b) {
|
|
3532
|
-
var k, C, I,
|
|
3525
|
+
var k, C, I, N, M;
|
|
3533
3526
|
const S = {
|
|
3534
3527
|
...e.builderContextSignal.content,
|
|
3535
3528
|
...b,
|
|
@@ -3540,7 +3533,7 @@ function Jn(e) {
|
|
|
3540
3533
|
meta: {
|
|
3541
3534
|
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3542
3535
|
...b == null ? void 0 : b.meta,
|
|
3543
|
-
breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((M = (
|
|
3536
|
+
breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((M = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : M.breakpoints)
|
|
3544
3537
|
}
|
|
3545
3538
|
};
|
|
3546
3539
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3602,11 +3595,11 @@ function Jn(e) {
|
|
|
3602
3595
|
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, I = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
3603
3596
|
he({
|
|
3604
3597
|
type: "click",
|
|
3605
|
-
canTrack:
|
|
3598
|
+
canTrack: Q(e.canTrack),
|
|
3606
3599
|
contentId: I,
|
|
3607
3600
|
apiKey: e.apiKey,
|
|
3608
3601
|
variationId: C !== I ? C : void 0,
|
|
3609
|
-
...
|
|
3602
|
+
...Un(b),
|
|
3610
3603
|
unique: !x
|
|
3611
3604
|
});
|
|
3612
3605
|
}
|
|
@@ -3615,11 +3608,11 @@ function Jn(e) {
|
|
|
3615
3608
|
function f() {
|
|
3616
3609
|
var S, k, C;
|
|
3617
3610
|
const b = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
|
|
3618
|
-
Object.entries(b).forEach(([I,
|
|
3619
|
-
if (!
|
|
3611
|
+
Object.entries(b).forEach(([I, N]) => {
|
|
3612
|
+
if (!N || g[I] || c[I] && !$())
|
|
3620
3613
|
return;
|
|
3621
3614
|
g[I] = !0;
|
|
3622
|
-
const M =
|
|
3615
|
+
const M = N.replace(
|
|
3623
3616
|
/{{([^}]+)}}/g,
|
|
3624
3617
|
(F, qe) => String(
|
|
3625
3618
|
K({
|
|
@@ -3637,7 +3630,7 @@ function Jn(e) {
|
|
|
3637
3630
|
[I]: F
|
|
3638
3631
|
}), c[I] = !0;
|
|
3639
3632
|
}).catch((F) => {
|
|
3640
|
-
console.error("error fetching dynamic data",
|
|
3633
|
+
console.error("error fetching dynamic data", N, F);
|
|
3641
3634
|
}).finally(() => {
|
|
3642
3635
|
g[I] = !1;
|
|
3643
3636
|
});
|
|
@@ -3674,27 +3667,27 @@ function Jn(e) {
|
|
|
3674
3667
|
}), Object.values(
|
|
3675
3668
|
e.builderContextSignal.componentInfos
|
|
3676
3669
|
).forEach((C) => {
|
|
3677
|
-
var
|
|
3670
|
+
var N;
|
|
3678
3671
|
const I = Qe(C);
|
|
3679
|
-
(
|
|
3672
|
+
(N = window.parent) == null || N.postMessage(I, "*");
|
|
3680
3673
|
}), window.addEventListener(
|
|
3681
3674
|
"builder:component:stateChangeListenerActivated",
|
|
3682
3675
|
w
|
|
3683
|
-
)), e.builderContextSignal.content &&
|
|
3684
|
-
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
3676
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3677
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id, N = e.apiKey;
|
|
3685
3678
|
he({
|
|
3686
3679
|
type: "impression",
|
|
3687
3680
|
canTrack: !0,
|
|
3688
3681
|
contentId: I,
|
|
3689
|
-
apiKey:
|
|
3682
|
+
apiKey: N,
|
|
3690
3683
|
variationId: C !== I ? C : void 0
|
|
3691
3684
|
});
|
|
3692
3685
|
}
|
|
3693
3686
|
if (Re() && !$()) {
|
|
3694
|
-
const C = new URL(location.href).searchParams, I = C.get("builder.preview"),
|
|
3687
|
+
const C = new URL(location.href).searchParams, I = C.get("builder.preview"), N = C.get(
|
|
3695
3688
|
`builder.overrides.${I}`
|
|
3696
3689
|
), M = C.get("apiKey") || C.get("builder.space");
|
|
3697
|
-
I === e.model && M === e.apiKey && (!e.content ||
|
|
3690
|
+
I === e.model && M === e.apiKey && (!e.content || N === e.content.id) && Ee({
|
|
3698
3691
|
model: e.model,
|
|
3699
3692
|
apiKey: e.apiKey,
|
|
3700
3693
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3704,7 +3697,7 @@ function Jn(e) {
|
|
|
3704
3697
|
}
|
|
3705
3698
|
}
|
|
3706
3699
|
}, []), P(() => {
|
|
3707
|
-
e.apiKey ||
|
|
3700
|
+
e.apiKey || ce.error(
|
|
3708
3701
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3709
3702
|
), d(), f(), w();
|
|
3710
3703
|
}, []), P(() => {
|
|
@@ -3735,28 +3728,28 @@ function Jn(e) {
|
|
|
3735
3728
|
"builder-model": e.model,
|
|
3736
3729
|
...o(),
|
|
3737
3730
|
...e.contentWrapperProps,
|
|
3738
|
-
className:
|
|
3739
|
-
((
|
|
3731
|
+
className: _n(
|
|
3732
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3740
3733
|
),
|
|
3741
3734
|
children: e.children
|
|
3742
3735
|
}
|
|
3743
3736
|
) : null });
|
|
3744
3737
|
}
|
|
3745
|
-
function
|
|
3738
|
+
function Jn(e) {
|
|
3746
3739
|
const [t, n] = T(
|
|
3747
3740
|
() => `
|
|
3748
|
-
${
|
|
3741
|
+
${Hn({
|
|
3749
3742
|
cssCode: e.cssCode,
|
|
3750
3743
|
contentId: e.contentId
|
|
3751
3744
|
})}
|
|
3752
|
-
${
|
|
3745
|
+
${jn({
|
|
3753
3746
|
customFonts: e.customFonts
|
|
3754
3747
|
})}
|
|
3755
|
-
${
|
|
3748
|
+
${qn(e.isNestedRender)}
|
|
3756
3749
|
`.trim()
|
|
3757
3750
|
);
|
|
3758
3751
|
return /* @__PURE__ */ l(
|
|
3759
|
-
|
|
3752
|
+
Z,
|
|
3760
3753
|
{
|
|
3761
3754
|
id: "builderio-content",
|
|
3762
3755
|
styles: t,
|
|
@@ -3764,7 +3757,7 @@ ${_n(e.isNestedRender)}
|
|
|
3764
3757
|
}
|
|
3765
3758
|
);
|
|
3766
3759
|
}
|
|
3767
|
-
const
|
|
3760
|
+
const Yn = ({
|
|
3768
3761
|
content: e,
|
|
3769
3762
|
data: t,
|
|
3770
3763
|
locale: n
|
|
@@ -3781,7 +3774,7 @@ const Gn = ({
|
|
|
3781
3774
|
locale: n
|
|
3782
3775
|
} : {}
|
|
3783
3776
|
};
|
|
3784
|
-
},
|
|
3777
|
+
}, Gn = ({
|
|
3785
3778
|
content: e,
|
|
3786
3779
|
data: t
|
|
3787
3780
|
}) => e ? {
|
|
@@ -3797,7 +3790,7 @@ function we(e) {
|
|
|
3797
3790
|
const [t, n] = T(
|
|
3798
3791
|
() => {
|
|
3799
3792
|
var p, f;
|
|
3800
|
-
return
|
|
3793
|
+
return Dn({
|
|
3801
3794
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3802
3795
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3803
3796
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3831,12 +3824,12 @@ function we(e) {
|
|
|
3831
3824
|
), [r, s] = T(() => {
|
|
3832
3825
|
var p;
|
|
3833
3826
|
return {
|
|
3834
|
-
content:
|
|
3827
|
+
content: Gn({
|
|
3835
3828
|
content: e.content,
|
|
3836
3829
|
data: e.data
|
|
3837
3830
|
}),
|
|
3838
3831
|
localState: void 0,
|
|
3839
|
-
rootState:
|
|
3832
|
+
rootState: Yn({
|
|
3840
3833
|
content: e.content,
|
|
3841
3834
|
data: e.data,
|
|
3842
3835
|
locale: e.locale
|
|
@@ -3869,7 +3862,7 @@ function we(e) {
|
|
|
3869
3862
|
registeredComponents: o
|
|
3870
3863
|
},
|
|
3871
3864
|
children: /* @__PURE__ */ V(
|
|
3872
|
-
|
|
3865
|
+
zn,
|
|
3873
3866
|
{
|
|
3874
3867
|
nonce: e.nonce,
|
|
3875
3868
|
content: e.content,
|
|
@@ -3888,7 +3881,7 @@ function we(e) {
|
|
|
3888
3881
|
setBuilderContextSignal: s,
|
|
3889
3882
|
children: [
|
|
3890
3883
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3891
|
-
|
|
3884
|
+
se,
|
|
3892
3885
|
{
|
|
3893
3886
|
id: "builderio-variant-visibility",
|
|
3894
3887
|
scriptStr: t,
|
|
@@ -3896,7 +3889,7 @@ function we(e) {
|
|
|
3896
3889
|
}
|
|
3897
3890
|
) : null,
|
|
3898
3891
|
/* @__PURE__ */ l(
|
|
3899
|
-
|
|
3892
|
+
Jn,
|
|
3900
3893
|
{
|
|
3901
3894
|
nonce: e.nonce || "",
|
|
3902
3895
|
isNestedRender: e.isNestedRender,
|
|
@@ -3920,17 +3913,17 @@ function we(e) {
|
|
|
3920
3913
|
}
|
|
3921
3914
|
);
|
|
3922
3915
|
}
|
|
3923
|
-
function
|
|
3916
|
+
function Qn(e) {
|
|
3924
3917
|
var r;
|
|
3925
3918
|
const [t, n] = T(
|
|
3926
3919
|
() => Wn({
|
|
3927
|
-
canTrack:
|
|
3920
|
+
canTrack: Q(e.canTrack),
|
|
3928
3921
|
content: e.content
|
|
3929
3922
|
})
|
|
3930
3923
|
);
|
|
3931
3924
|
function i() {
|
|
3932
3925
|
var s;
|
|
3933
|
-
return
|
|
3926
|
+
return $n(
|
|
3934
3927
|
G(e.content).map((d) => ({
|
|
3935
3928
|
id: d.testVariationId,
|
|
3936
3929
|
testRatio: d.testRatio
|
|
@@ -3948,22 +3941,22 @@ function Xn(e) {
|
|
|
3948
3941
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3949
3942
|
} : et({
|
|
3950
3943
|
item: e.content,
|
|
3951
|
-
canTrack:
|
|
3944
|
+
canTrack: Q(e.canTrack)
|
|
3952
3945
|
});
|
|
3953
3946
|
}
|
|
3954
3947
|
return P(() => {
|
|
3955
3948
|
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3956
3949
|
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
|
|
3957
|
-
|
|
3950
|
+
se,
|
|
3958
3951
|
{
|
|
3959
3952
|
id: "builderio-init-variants-fns",
|
|
3960
|
-
scriptStr:
|
|
3953
|
+
scriptStr: Fn(),
|
|
3961
3954
|
nonce: e.nonce || ""
|
|
3962
3955
|
}
|
|
3963
3956
|
) : null,
|
|
3964
3957
|
t ? /* @__PURE__ */ V(E, { children: [
|
|
3965
3958
|
/* @__PURE__ */ l(
|
|
3966
|
-
|
|
3959
|
+
Z,
|
|
3967
3960
|
{
|
|
3968
3961
|
id: "builderio-variants",
|
|
3969
3962
|
styles: o(),
|
|
@@ -3971,7 +3964,7 @@ function Xn(e) {
|
|
|
3971
3964
|
}
|
|
3972
3965
|
),
|
|
3973
3966
|
/* @__PURE__ */ l(
|
|
3974
|
-
|
|
3967
|
+
se,
|
|
3975
3968
|
{
|
|
3976
3969
|
id: "builderio-variants-visibility",
|
|
3977
3970
|
scriptStr: i(),
|
|
@@ -4032,7 +4025,7 @@ function Xn(e) {
|
|
|
4032
4025
|
)
|
|
4033
4026
|
] });
|
|
4034
4027
|
}
|
|
4035
|
-
const
|
|
4028
|
+
const Xn = async ({
|
|
4036
4029
|
builderContextValue: e,
|
|
4037
4030
|
symbol: t
|
|
4038
4031
|
}) => {
|
|
@@ -4048,10 +4041,10 @@ const Zn = async ({
|
|
|
4048
4041
|
}
|
|
4049
4042
|
}
|
|
4050
4043
|
}).catch((n) => {
|
|
4051
|
-
|
|
4044
|
+
ce.error("Could not fetch symbol content: ", n);
|
|
4052
4045
|
});
|
|
4053
4046
|
};
|
|
4054
|
-
function
|
|
4047
|
+
function Zn(e) {
|
|
4055
4048
|
var s, d, c, u;
|
|
4056
4049
|
function t() {
|
|
4057
4050
|
return "div";
|
|
@@ -4073,7 +4066,7 @@ function ei(e) {
|
|
|
4073
4066
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4074
4067
|
});
|
|
4075
4068
|
function r() {
|
|
4076
|
-
o ||
|
|
4069
|
+
o || Xn({
|
|
4077
4070
|
symbol: e.symbol,
|
|
4078
4071
|
builderContextValue: e.builderContext
|
|
4079
4072
|
}).then((g) => {
|
|
@@ -4084,7 +4077,7 @@ function ei(e) {
|
|
|
4084
4077
|
}, []), P(() => {
|
|
4085
4078
|
r();
|
|
4086
4079
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4087
|
-
|
|
4080
|
+
Qn,
|
|
4088
4081
|
{
|
|
4089
4082
|
nonce: e.builderContext.nonce,
|
|
4090
4083
|
isNestedRender: !0,
|
|
@@ -4112,13 +4105,13 @@ function ei(e) {
|
|
|
4112
4105
|
export {
|
|
4113
4106
|
D as Blocks,
|
|
4114
4107
|
ue as BuilderContext,
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4108
|
+
ot as Button,
|
|
4109
|
+
Ut as Columns,
|
|
4110
|
+
Qn as Content,
|
|
4111
|
+
Mt as Fragment,
|
|
4112
|
+
Kt as Image,
|
|
4113
|
+
qt as Section,
|
|
4114
|
+
Zn as Symbol,
|
|
4115
|
+
rn as Text,
|
|
4116
|
+
Bn as Video
|
|
4124
4117
|
};
|