@builder.io/sdk-react 1.0.20 → 1.0.22
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 +22 -22
- package/lib/browser/blocks-exports.mjs +428 -432
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -0
- package/lib/browser/init.mjs +13 -0
- package/lib/browser/{server-entry-a562cf23.js → server-entry-3e30c656.js} +81 -82
- package/lib/browser/server-entry-8951c0c5.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-5705f416.cjs +32 -0
- package/lib/edge/{blocks-683aad9f.js → blocks-b1f5ec2b.js} +742 -747
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-9f6acf3e.js → button-2b710146.js} +2 -2
- package/lib/edge/{button-0d418bcf.cjs → button-3c20ccff.cjs} +1 -1
- package/lib/edge/{columns-b0785992.js → columns-38a397cd.js} +3 -3
- package/lib/edge/{columns-1613d62d.cjs → columns-761d98c4.cjs} +1 -1
- package/lib/edge/{content-variants-281298f6.cjs → content-variants-befe3587.cjs} +4 -4
- package/lib/edge/{content-variants-13f821c6.js → content-variants-f165fa88.js} +21 -21
- package/lib/edge/{form-0483aa64.cjs → form-b0d65d74.cjs} +1 -1
- package/lib/edge/{form-db27fc26.js → form-d0cfb830.js} +3 -3
- package/lib/edge/{get-class-prop-name-e3ba0522.cjs → get-class-prop-name-27f8a4f1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6bfc4756.js → get-class-prop-name-49d9b54f.js} +1 -1
- package/lib/edge/{img-43a8ffe0.js → img-e321016e.js} +1 -1
- package/lib/edge/{img-f01d904d.cjs → img-fcf6e57f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -0
- package/lib/edge/init.mjs +13 -0
- package/lib/edge/{input-805a9ac6.js → input-27f575fe.js} +1 -1
- package/lib/edge/{input-e6483bd7.cjs → input-f0319ee6.cjs} +1 -1
- package/lib/edge/{select-4966723f.js → select-dd4c61db.js} +1 -1
- package/lib/edge/{select-e5d1e627.cjs → select-e31522ee.cjs} +1 -1
- package/lib/edge/{server-entry-c13e82bd.js → server-entry-253a0fa1.js} +80 -81
- package/lib/edge/server-entry-dd363108.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ef77ae1.cjs → slot-a2388031.cjs} +1 -1
- package/lib/edge/{slot-1b0351de.js → slot-fea27ccf.js} +3 -3
- package/lib/edge/{symbol-f1632f93.js → symbol-686edeb8.js} +2 -2
- package/lib/edge/{symbol-883d624f.cjs → symbol-ba2c6245.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +30 -70
- package/lib/node/blocks-exports.mjs +916 -1046
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +23 -22
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +9 -0
- package/lib/node/node-runtime-6587ed2e.js +155 -0
- package/lib/node/node-runtime-fa43cf07.cjs +48 -0
- package/lib/node/{server-entry-8c712c9b.js → server-entry-14d7a1d0.js} +82 -82
- package/lib/node/server-entry-3abae5dd.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +6 -1
- package/types/components/block/animator.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +10 -0
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +6 -0
- package/types/functions/get-content/types.d.ts +3 -3
- package/types/functions/is-previewing.d.ts +1 -1
- package/types/helpers/logger.d.ts +1 -0
- package/lib/browser/server-entry-a77461d4.cjs +0 -2
- package/lib/edge/blocks-523eb4f1.cjs +0 -32
- package/lib/edge/server-entry-83648311.cjs +0 -2
- package/lib/node/server-entry-bedf45f8.cjs +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var De = Object.defineProperty;
|
|
3
3
|
var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
4
|
+
var te = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as z, isEditing as N, isBrowser as
|
|
7
|
-
import { createContext as
|
|
6
|
+
import { TARGET as z, isEditing as N, isBrowser as U, getUserAttributes as Oe, checkIsDefined as G, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as Q, _track as ce, isPreviewing as Ke, fetchOneEntry as Se, createEditorListener as qe, fetch as ze, serializeComponentInfo as de, handleABTestingSync as _e } from "./server-entry-3e30c656.js";
|
|
7
|
+
import { createContext as ve, useState as I, useEffect as V, useContext as ue, useRef as Z, createElement as ke } from "react";
|
|
8
8
|
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
9
9
|
function ae(e) {
|
|
10
10
|
return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
@@ -43,7 +43,7 @@ function Ge(e) {
|
|
|
43
43
|
}
|
|
44
44
|
);
|
|
45
45
|
}
|
|
46
|
-
const re =
|
|
46
|
+
const re = ve({
|
|
47
47
|
content: null,
|
|
48
48
|
context: {},
|
|
49
49
|
localState: void 0,
|
|
@@ -56,7 +56,7 @@ const re = Ce({
|
|
|
56
56
|
inheritedStyles: {},
|
|
57
57
|
BlocksWrapper: "div",
|
|
58
58
|
BlocksWrapperProps: {}
|
|
59
|
-
}),
|
|
59
|
+
}), Ce = ve({ registeredComponents: {} });
|
|
60
60
|
function Qe(e) {
|
|
61
61
|
var t;
|
|
62
62
|
return {
|
|
@@ -82,12 +82,12 @@ const Xe = ({
|
|
|
82
82
|
event: n
|
|
83
83
|
}), Ze = () => ({
|
|
84
84
|
isEditing: N(),
|
|
85
|
-
isBrowser:
|
|
86
|
-
isServer: !
|
|
85
|
+
isBrowser: U(),
|
|
86
|
+
isServer: !U(),
|
|
87
87
|
getUserAttributes: () => Oe()
|
|
88
88
|
}), et = (e, {
|
|
89
89
|
isExpression: t = !0
|
|
90
|
-
}) => /* 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,
|
|
90
|
+
}) => /* 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, me = ({
|
|
91
91
|
code: e,
|
|
92
92
|
builder: t,
|
|
93
93
|
context: n,
|
|
@@ -100,7 +100,7 @@ const Xe = ({
|
|
|
100
100
|
builder: t,
|
|
101
101
|
context: n,
|
|
102
102
|
event: i,
|
|
103
|
-
state:
|
|
103
|
+
state: we({
|
|
104
104
|
rootState: r,
|
|
105
105
|
localState: o,
|
|
106
106
|
rootSetState: a
|
|
@@ -108,7 +108,7 @@ const Xe = ({
|
|
|
108
108
|
});
|
|
109
109
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function we({
|
|
112
112
|
rootState: e,
|
|
113
113
|
localState: t,
|
|
114
114
|
rootSetState: n
|
|
@@ -118,7 +118,7 @@ function Te({
|
|
|
118
118
|
if (t && o in t)
|
|
119
119
|
return t[o];
|
|
120
120
|
const a = i[o];
|
|
121
|
-
return typeof a == "object" && a !== null ?
|
|
121
|
+
return typeof a == "object" && a !== null ? we({
|
|
122
122
|
rootState: a,
|
|
123
123
|
localState: void 0,
|
|
124
124
|
rootSetState: n ? (r) => {
|
|
@@ -135,7 +135,7 @@ function Te({
|
|
|
135
135
|
}
|
|
136
136
|
function tt() {
|
|
137
137
|
var e;
|
|
138
|
-
return typeof process != "undefined" &&
|
|
138
|
+
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
139
139
|
}
|
|
140
140
|
const nt = () => {
|
|
141
141
|
var i;
|
|
@@ -143,7 +143,7 @@ const nt = () => {
|
|
|
143
143
|
return !1;
|
|
144
144
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
145
145
|
return e && t && !n ? (H.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;
|
|
146
|
-
}, it = (e) => (
|
|
146
|
+
}, it = (e) => (U() || nt(), me(e)), $ = class $ {
|
|
147
147
|
static getCacheKey(t) {
|
|
148
148
|
return JSON.stringify({
|
|
149
149
|
...t,
|
|
@@ -153,16 +153,16 @@ const nt = () => {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
156
|
+
return $.cache.get(t);
|
|
157
157
|
}
|
|
158
158
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
159
|
+
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
160
160
|
value: n
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
|
|
165
|
-
let
|
|
164
|
+
te($, "cacheLimit", 20), te($, "cache", /* @__PURE__ */ new Map());
|
|
165
|
+
let M = $;
|
|
166
166
|
function q({
|
|
167
167
|
code: e,
|
|
168
168
|
context: t,
|
|
@@ -189,15 +189,15 @@ function q({
|
|
|
189
189
|
localState: n
|
|
190
190
|
};
|
|
191
191
|
if (l) {
|
|
192
|
-
const c =
|
|
192
|
+
const c = M.getCacheKey(d), m = M.getCachedValue(c);
|
|
193
193
|
if (m)
|
|
194
194
|
return m.value;
|
|
195
195
|
}
|
|
196
196
|
try {
|
|
197
197
|
const c = it(d);
|
|
198
198
|
if (l) {
|
|
199
|
-
const m =
|
|
200
|
-
|
|
199
|
+
const m = M.getCacheKey(d);
|
|
200
|
+
M.setCachedValue(m, c);
|
|
201
201
|
}
|
|
202
202
|
return c;
|
|
203
203
|
} catch (c) {
|
|
@@ -207,7 +207,7 @@ function q({
|
|
|
207
207
|
return;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const Ie = (e, t, n) => {
|
|
211
211
|
if (Object(e) !== e)
|
|
212
212
|
return e;
|
|
213
213
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -240,11 +240,11 @@ const ot = ({
|
|
|
240
240
|
context: t,
|
|
241
241
|
enableCache: !0
|
|
242
242
|
});
|
|
243
|
-
|
|
243
|
+
Ie(r, l, c);
|
|
244
244
|
}
|
|
245
245
|
return r;
|
|
246
246
|
};
|
|
247
|
-
function
|
|
247
|
+
function X({
|
|
248
248
|
block: e,
|
|
249
249
|
context: t,
|
|
250
250
|
shouldEvaluateBindings: n,
|
|
@@ -273,7 +273,7 @@ function at(e, t, n = {}) {
|
|
|
273
273
|
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function j(e, ...t) {
|
|
277
277
|
const n = Object(e);
|
|
278
278
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
279
|
const o = arguments[i];
|
|
@@ -290,18 +290,15 @@ function rt(e) {
|
|
|
290
290
|
case "pageLoad":
|
|
291
291
|
Re(t);
|
|
292
292
|
break;
|
|
293
|
-
case "hover":
|
|
294
|
-
st(t);
|
|
295
|
-
break;
|
|
296
293
|
case "scrollInView":
|
|
297
|
-
|
|
294
|
+
st(t);
|
|
298
295
|
break;
|
|
299
296
|
}
|
|
300
297
|
}
|
|
301
|
-
function
|
|
298
|
+
function Te(e) {
|
|
302
299
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
303
300
|
}
|
|
304
|
-
function
|
|
301
|
+
function Ee(e, t) {
|
|
305
302
|
const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
306
303
|
for (const l of r)
|
|
307
304
|
for (const d of n)
|
|
@@ -317,12 +314,12 @@ function lt(e) {
|
|
|
317
314
|
function Re(e) {
|
|
318
315
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
319
316
|
if (!t.length) {
|
|
320
|
-
|
|
317
|
+
Te(e.elementId || e.id || "");
|
|
321
318
|
return;
|
|
322
319
|
}
|
|
323
320
|
Array.from(t).forEach((n) => {
|
|
324
|
-
|
|
325
|
-
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
321
|
+
Ee(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
322
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
326
323
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
327
324
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
328
325
|
});
|
|
@@ -331,49 +328,29 @@ function Re(e) {
|
|
|
331
328
|
function st(e) {
|
|
332
329
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
333
330
|
if (!t.length) {
|
|
334
|
-
|
|
335
|
-
return;
|
|
336
|
-
}
|
|
337
|
-
Array.from(t).forEach((n) => {
|
|
338
|
-
ce(e, n);
|
|
339
|
-
const i = e.steps[0].styles, o = e.steps[1].styles;
|
|
340
|
-
function a() {
|
|
341
|
-
D(n.style, i);
|
|
342
|
-
}
|
|
343
|
-
function r() {
|
|
344
|
-
D(n.style, o);
|
|
345
|
-
}
|
|
346
|
-
a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
|
|
347
|
-
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
348
|
-
});
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
function ct(e) {
|
|
352
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
353
|
-
if (!t.length) {
|
|
354
|
-
se(e.elementId || e.id || "");
|
|
331
|
+
Te(e.elementId || e.id || "");
|
|
355
332
|
return;
|
|
356
333
|
}
|
|
357
334
|
Array.from(t).forEach((n) => {
|
|
358
|
-
|
|
335
|
+
Ee(e, n);
|
|
359
336
|
let i = !1, o = !1;
|
|
360
337
|
function a() {
|
|
361
338
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
362
|
-
|
|
339
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
363
340
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
364
341
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
365
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
342
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, j(n.style, e.steps[0].styles));
|
|
366
343
|
}
|
|
367
344
|
const r = at(a, 200, {
|
|
368
345
|
leading: !1
|
|
369
346
|
});
|
|
370
347
|
function l(m) {
|
|
371
|
-
const f = m.getBoundingClientRect(), g = window.innerHeight,
|
|
372
|
-
return f.bottom >
|
|
348
|
+
const f = m.getBoundingClientRect(), g = window.innerHeight, x = (e.thresholdPercent || 0) / 100 * g;
|
|
349
|
+
return f.bottom > x && f.top < g - x;
|
|
373
350
|
}
|
|
374
351
|
const d = e.steps[0].styles;
|
|
375
352
|
function c() {
|
|
376
|
-
|
|
353
|
+
j(n.style, d);
|
|
377
354
|
}
|
|
378
355
|
c(), setTimeout(() => {
|
|
379
356
|
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -383,31 +360,31 @@ function ct(e) {
|
|
|
383
360
|
}), a();
|
|
384
361
|
});
|
|
385
362
|
}
|
|
386
|
-
const
|
|
363
|
+
const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
|
|
387
364
|
if (typeof i == "string")
|
|
388
|
-
return `${
|
|
389
|
-
}).filter(
|
|
390
|
-
`),
|
|
365
|
+
return `${ct(n)}: ${i};`;
|
|
366
|
+
}).filter(G), dt = (e) => Pe(e).join(`
|
|
367
|
+
`), J = ({
|
|
391
368
|
mediaQuery: e,
|
|
392
369
|
className: t,
|
|
393
370
|
styles: n
|
|
394
371
|
}) => {
|
|
395
372
|
const i = `.${t} {
|
|
396
|
-
${
|
|
373
|
+
${dt(n)}
|
|
397
374
|
}`;
|
|
398
375
|
return e ? `${e} {
|
|
399
376
|
${i}
|
|
400
377
|
}` : i;
|
|
401
378
|
};
|
|
402
|
-
function
|
|
379
|
+
function ut({
|
|
403
380
|
style: e
|
|
404
381
|
}) {
|
|
405
382
|
return e;
|
|
406
383
|
}
|
|
407
|
-
const
|
|
384
|
+
const mt = ({
|
|
408
385
|
block: e,
|
|
409
386
|
context: t
|
|
410
|
-
}) => Ve(
|
|
387
|
+
}) => Ve(ut({
|
|
411
388
|
style: e.style || {},
|
|
412
389
|
context: t,
|
|
413
390
|
block: e
|
|
@@ -425,13 +402,13 @@ function Ve(e) {
|
|
|
425
402
|
return e;
|
|
426
403
|
}
|
|
427
404
|
}
|
|
428
|
-
const
|
|
405
|
+
const ft = ({
|
|
429
406
|
block: e,
|
|
430
407
|
context: t,
|
|
431
408
|
registeredComponents: n
|
|
432
409
|
}) => {
|
|
433
410
|
var a;
|
|
434
|
-
const i = (a =
|
|
411
|
+
const i = (a = X({
|
|
435
412
|
block: e,
|
|
436
413
|
localState: t.localState,
|
|
437
414
|
rootState: t.rootState,
|
|
@@ -447,7 +424,7 @@ const ht = ({
|
|
|
447
424
|
console.warn(`
|
|
448
425
|
Could not find a registered component named "${i}".
|
|
449
426
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
450
|
-
},
|
|
427
|
+
}, ht = ({
|
|
451
428
|
block: e,
|
|
452
429
|
context: t
|
|
453
430
|
}) => {
|
|
@@ -497,7 +474,7 @@ const ht = ({
|
|
|
497
474
|
default: 991,
|
|
498
475
|
max: 1200
|
|
499
476
|
}
|
|
500
|
-
},
|
|
477
|
+
}, fe = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
|
|
501
478
|
small: e,
|
|
502
479
|
medium: t
|
|
503
480
|
}) => {
|
|
@@ -524,7 +501,7 @@ const ht = ({
|
|
|
524
501
|
default: a + 1
|
|
525
502
|
}, n;
|
|
526
503
|
};
|
|
527
|
-
function
|
|
504
|
+
function ee(e) {
|
|
528
505
|
return /* @__PURE__ */ s(
|
|
529
506
|
"style",
|
|
530
507
|
{
|
|
@@ -533,9 +510,9 @@ function Z(e) {
|
|
|
533
510
|
}
|
|
534
511
|
);
|
|
535
512
|
}
|
|
536
|
-
function
|
|
513
|
+
function gt(e) {
|
|
537
514
|
function t() {
|
|
538
|
-
const i =
|
|
515
|
+
const i = X({
|
|
539
516
|
block: e.block,
|
|
540
517
|
localState: e.context.localState,
|
|
541
518
|
rootState: e.context.rootState,
|
|
@@ -543,48 +520,67 @@ function bt(e) {
|
|
|
543
520
|
context: e.context.context,
|
|
544
521
|
shouldEvaluateBindings: !0
|
|
545
522
|
});
|
|
546
|
-
return
|
|
523
|
+
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
547
524
|
}
|
|
548
525
|
function n() {
|
|
549
|
-
var
|
|
550
|
-
const i =
|
|
526
|
+
var w, E, p;
|
|
527
|
+
const i = X({
|
|
551
528
|
block: e.block,
|
|
552
529
|
localState: e.context.localState,
|
|
553
530
|
rootState: e.context.rootState,
|
|
554
531
|
rootSetState: e.context.rootSetState,
|
|
555
532
|
context: e.context.context,
|
|
556
533
|
shouldEvaluateBindings: !0
|
|
557
|
-
}), o = i.responsiveStyles, a = e.context.content, r =
|
|
558
|
-
((
|
|
534
|
+
}), o = i.responsiveStyles, a = e.context.content, r = We(
|
|
535
|
+
((w = a == null ? void 0 : a.meta) == null ? void 0 : w.breakpoints) || {}
|
|
559
536
|
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
560
537
|
if (!m)
|
|
561
538
|
return "";
|
|
562
|
-
const f = l ?
|
|
539
|
+
const f = l ? J({
|
|
563
540
|
className: m,
|
|
564
541
|
styles: l
|
|
565
|
-
}) : "", g = d ?
|
|
542
|
+
}) : "", g = d ? J({
|
|
566
543
|
className: m,
|
|
567
544
|
styles: d,
|
|
568
|
-
mediaQuery:
|
|
545
|
+
mediaQuery: fe(
|
|
569
546
|
"medium",
|
|
570
547
|
r
|
|
571
548
|
)
|
|
572
|
-
}) : "", y = c ?
|
|
549
|
+
}) : "", y = c ? J({
|
|
573
550
|
className: m,
|
|
574
551
|
styles: c,
|
|
575
|
-
mediaQuery:
|
|
552
|
+
mediaQuery: fe(
|
|
576
553
|
"small",
|
|
577
554
|
r
|
|
578
555
|
)
|
|
579
|
-
}) : "";
|
|
580
|
-
|
|
556
|
+
}) : "", x = i.animations && i.animations.find((v) => v.trigger === "hover");
|
|
557
|
+
let k = "";
|
|
558
|
+
if (x) {
|
|
559
|
+
const v = ((p = (E = x.steps) == null ? void 0 : E[1]) == null ? void 0 : p.styles) || {};
|
|
560
|
+
k = J({
|
|
561
|
+
className: `${m}:hover`,
|
|
562
|
+
styles: {
|
|
563
|
+
...v,
|
|
564
|
+
transition: `all ${x.duration}s ${le(
|
|
565
|
+
x.easing
|
|
566
|
+
)}`,
|
|
567
|
+
transitionDelay: x.delay ? `${x.delay}s` : "0s"
|
|
568
|
+
}
|
|
569
|
+
}) || "";
|
|
570
|
+
}
|
|
571
|
+
return [
|
|
572
|
+
f,
|
|
573
|
+
g,
|
|
574
|
+
y,
|
|
575
|
+
k
|
|
576
|
+
].join(" ");
|
|
581
577
|
}
|
|
582
|
-
return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
578
|
+
return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(ee, { id: "builderio-block", styles: n() }) }) : null });
|
|
583
579
|
}
|
|
584
|
-
function
|
|
580
|
+
function bt(e) {
|
|
585
581
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
586
582
|
}
|
|
587
|
-
const
|
|
583
|
+
const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => q({
|
|
588
584
|
code: e,
|
|
589
585
|
context: t.context,
|
|
590
586
|
localState: t.localState,
|
|
@@ -594,14 +590,14 @@ const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
|
|
|
594
590
|
isExpression: !1,
|
|
595
591
|
enableCache: !0
|
|
596
592
|
});
|
|
597
|
-
function
|
|
593
|
+
function Ae(e) {
|
|
598
594
|
var i;
|
|
599
595
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
600
596
|
for (const o in n) {
|
|
601
597
|
if (!n.hasOwnProperty(o))
|
|
602
598
|
continue;
|
|
603
599
|
const a = n[o];
|
|
604
|
-
let r =
|
|
600
|
+
let r = yt(o);
|
|
605
601
|
if (e.stripPrefix)
|
|
606
602
|
switch (z) {
|
|
607
603
|
case "vue":
|
|
@@ -611,49 +607,49 @@ function We(e) {
|
|
|
611
607
|
r = r.replace("on:", "");
|
|
612
608
|
break;
|
|
613
609
|
}
|
|
614
|
-
t[r] =
|
|
610
|
+
t[r] = pt(a, e);
|
|
615
611
|
}
|
|
616
612
|
return t;
|
|
617
613
|
}
|
|
618
|
-
function
|
|
614
|
+
function xt({
|
|
619
615
|
properties: e
|
|
620
616
|
}) {
|
|
621
617
|
return e;
|
|
622
618
|
}
|
|
623
|
-
const
|
|
619
|
+
const St = (e) => ({
|
|
624
620
|
href: e.href
|
|
625
621
|
});
|
|
626
|
-
function
|
|
622
|
+
function se({
|
|
627
623
|
block: e,
|
|
628
624
|
context: t
|
|
629
625
|
}) {
|
|
630
626
|
var i;
|
|
631
627
|
const n = {
|
|
632
|
-
...
|
|
628
|
+
...St(e),
|
|
633
629
|
...e.properties,
|
|
634
630
|
"builder-id": e.id,
|
|
635
|
-
style:
|
|
631
|
+
style: mt({
|
|
636
632
|
block: e,
|
|
637
633
|
context: t
|
|
638
634
|
}),
|
|
639
635
|
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
640
636
|
};
|
|
641
|
-
return
|
|
637
|
+
return xt({
|
|
642
638
|
properties: n,
|
|
643
639
|
context: t,
|
|
644
640
|
block: e
|
|
645
641
|
});
|
|
646
642
|
}
|
|
647
|
-
function
|
|
643
|
+
function vt(e) {
|
|
648
644
|
return /* @__PURE__ */ s(
|
|
649
645
|
ae,
|
|
650
646
|
{
|
|
651
647
|
TagName: e.Wrapper,
|
|
652
|
-
attributes:
|
|
648
|
+
attributes: se({
|
|
653
649
|
block: e.block,
|
|
654
650
|
context: e.context
|
|
655
651
|
}),
|
|
656
|
-
actionAttributes:
|
|
652
|
+
actionAttributes: Ae({
|
|
657
653
|
block: e.block,
|
|
658
654
|
rootState: e.context.rootState,
|
|
659
655
|
rootSetState: e.context.rootSetState,
|
|
@@ -665,17 +661,17 @@ function kt(e) {
|
|
|
665
661
|
}
|
|
666
662
|
);
|
|
667
663
|
}
|
|
668
|
-
function
|
|
664
|
+
function kt(e) {
|
|
669
665
|
return /* @__PURE__ */ s(
|
|
670
666
|
e.Wrapper,
|
|
671
667
|
{
|
|
672
668
|
...e.wrapperProps,
|
|
673
669
|
attributes: e.includeBlockProps ? {
|
|
674
|
-
...
|
|
670
|
+
...se({
|
|
675
671
|
block: e.block,
|
|
676
672
|
context: e.context
|
|
677
673
|
}),
|
|
678
|
-
...
|
|
674
|
+
...Ae({
|
|
679
675
|
block: e.block,
|
|
680
676
|
rootState: e.context.rootState,
|
|
681
677
|
rootSetState: e.context.rootSetState,
|
|
@@ -687,7 +683,7 @@ function Ct(e) {
|
|
|
687
683
|
}
|
|
688
684
|
);
|
|
689
685
|
}
|
|
690
|
-
const
|
|
686
|
+
const Ct = ({
|
|
691
687
|
componentOptions: e,
|
|
692
688
|
builderBlock: t,
|
|
693
689
|
context: n,
|
|
@@ -703,7 +699,7 @@ const wt = ({
|
|
|
703
699
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
704
700
|
*/
|
|
705
701
|
...o ? {
|
|
706
|
-
attributes:
|
|
702
|
+
attributes: se({
|
|
707
703
|
block: t,
|
|
708
704
|
context: r
|
|
709
705
|
})
|
|
@@ -717,15 +713,15 @@ const wt = ({
|
|
|
717
713
|
includeBlockProps: o
|
|
718
714
|
} : l;
|
|
719
715
|
};
|
|
720
|
-
function
|
|
716
|
+
function he(e) {
|
|
721
717
|
var i;
|
|
722
|
-
const [t, n] =
|
|
723
|
-
() => e.isInteractive ?
|
|
718
|
+
const [t, n] = I(
|
|
719
|
+
() => e.isInteractive ? kt : e.componentRef
|
|
724
720
|
);
|
|
725
721
|
return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
726
722
|
t,
|
|
727
723
|
{
|
|
728
|
-
...
|
|
724
|
+
...Ct({
|
|
729
725
|
componentOptions: e.componentOptions,
|
|
730
726
|
builderBlock: e.builderBlock,
|
|
731
727
|
context: e.context,
|
|
@@ -748,8 +744,8 @@ function be(e) {
|
|
|
748
744
|
}
|
|
749
745
|
) }) : null });
|
|
750
746
|
}
|
|
751
|
-
function
|
|
752
|
-
const [t, n] =
|
|
747
|
+
function wt(e) {
|
|
748
|
+
const [t, n] = I(() => e.repeatContext);
|
|
753
749
|
return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
754
750
|
_,
|
|
755
751
|
{
|
|
@@ -763,21 +759,21 @@ function It(e) {
|
|
|
763
759
|
function _(e) {
|
|
764
760
|
var d, c, m;
|
|
765
761
|
function t() {
|
|
766
|
-
return
|
|
762
|
+
return ft({
|
|
767
763
|
block: e.block,
|
|
768
764
|
context: e.context,
|
|
769
765
|
registeredComponents: e.registeredComponents
|
|
770
766
|
});
|
|
771
767
|
}
|
|
772
768
|
function n() {
|
|
773
|
-
return
|
|
769
|
+
return ht({
|
|
774
770
|
block: e.block,
|
|
775
771
|
context: e.context
|
|
776
772
|
});
|
|
777
773
|
}
|
|
778
774
|
function i() {
|
|
779
775
|
var f;
|
|
780
|
-
return (f = e.block.repeat) != null && f.collection ? e.block :
|
|
776
|
+
return (f = e.block.repeat) != null && f.collection ? e.block : X({
|
|
781
777
|
block: e.block,
|
|
782
778
|
localState: e.context.localState,
|
|
783
779
|
rootState: e.context.rootState,
|
|
@@ -791,9 +787,9 @@ function _(e) {
|
|
|
791
787
|
return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
792
788
|
}
|
|
793
789
|
function a() {
|
|
794
|
-
var y,
|
|
790
|
+
var y, x;
|
|
795
791
|
if ((y = e.block.repeat) != null && y.collection)
|
|
796
|
-
return !!((
|
|
792
|
+
return !!((x = n == null ? void 0 : n()) != null && x.length);
|
|
797
793
|
const f = "hide" in i() ? i().hide : !1;
|
|
798
794
|
return ("show" in i() ? i().show : !0) && !f;
|
|
799
795
|
}
|
|
@@ -802,17 +798,17 @@ function _(e) {
|
|
|
802
798
|
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
|
|
803
799
|
}
|
|
804
800
|
function l() {
|
|
805
|
-
var f, g, y,
|
|
801
|
+
var f, g, y, x, k, w, E, p, v, P, R;
|
|
806
802
|
return {
|
|
807
803
|
blockChildren: (f = i().children) != null ? f : [],
|
|
808
804
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
809
805
|
componentOptions: {
|
|
810
806
|
...Qe(i()),
|
|
811
807
|
builderContext: e.context,
|
|
812
|
-
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((
|
|
808
|
+
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
|
|
813
809
|
builderLinkComponent: e.linkComponent
|
|
814
810
|
} : {},
|
|
815
|
-
...((
|
|
811
|
+
...((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Form:Form" ? {
|
|
816
812
|
builderComponents: e.registeredComponents
|
|
817
813
|
} : {}
|
|
818
814
|
},
|
|
@@ -821,21 +817,21 @@ function _(e) {
|
|
|
821
817
|
registeredComponents: e.registeredComponents,
|
|
822
818
|
builderBlock: i(),
|
|
823
819
|
includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
|
|
824
|
-
isInteractive: !((
|
|
820
|
+
isInteractive: !((R = t == null ? void 0 : t()) != null && R.isRSC)
|
|
825
821
|
};
|
|
826
822
|
}
|
|
827
823
|
return V(() => {
|
|
828
824
|
const f = i().id, g = i().animations;
|
|
829
825
|
g && f && rt(
|
|
830
|
-
g.
|
|
826
|
+
g.map((y) => ({
|
|
831
827
|
...y,
|
|
832
828
|
elementId: f
|
|
833
829
|
}))
|
|
834
830
|
);
|
|
835
831
|
}, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ B(T, { children: [
|
|
836
|
-
/* @__PURE__ */ s(
|
|
832
|
+
/* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
|
|
837
833
|
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
838
|
-
|
|
834
|
+
he,
|
|
839
835
|
{
|
|
840
836
|
componentRef: l().componentRef,
|
|
841
837
|
componentOptions: l().componentOptions,
|
|
@@ -848,7 +844,7 @@ function _(e) {
|
|
|
848
844
|
isInteractive: l().isInteractive
|
|
849
845
|
}
|
|
850
846
|
) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
|
|
851
|
-
|
|
847
|
+
wt,
|
|
852
848
|
{
|
|
853
849
|
repeatContext: f.context,
|
|
854
850
|
block: f.block,
|
|
@@ -857,7 +853,7 @@ function _(e) {
|
|
|
857
853
|
},
|
|
858
854
|
g
|
|
859
855
|
)) }) : /* @__PURE__ */ B(
|
|
860
|
-
|
|
856
|
+
vt,
|
|
861
857
|
{
|
|
862
858
|
Wrapper: o(),
|
|
863
859
|
block: i(),
|
|
@@ -865,7 +861,7 @@ function _(e) {
|
|
|
865
861
|
linkComponent: e.linkComponent,
|
|
866
862
|
children: [
|
|
867
863
|
/* @__PURE__ */ s(
|
|
868
|
-
|
|
864
|
+
he,
|
|
869
865
|
{
|
|
870
866
|
componentRef: l().componentRef,
|
|
871
867
|
componentOptions: l().componentOptions,
|
|
@@ -893,7 +889,7 @@ function _(e) {
|
|
|
893
889
|
) })
|
|
894
890
|
] }) : null });
|
|
895
891
|
}
|
|
896
|
-
function
|
|
892
|
+
function It(e) {
|
|
897
893
|
function t() {
|
|
898
894
|
var o;
|
|
899
895
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -946,11 +942,11 @@ function Tt(e) {
|
|
|
946
942
|
}` })
|
|
947
943
|
] });
|
|
948
944
|
}
|
|
949
|
-
function
|
|
945
|
+
function O(e) {
|
|
950
946
|
var i, o, a;
|
|
951
|
-
const t =
|
|
947
|
+
const t = ue(re), n = ue(Ce);
|
|
952
948
|
return /* @__PURE__ */ s(
|
|
953
|
-
|
|
949
|
+
It,
|
|
954
950
|
{
|
|
955
951
|
blocks: e.blocks,
|
|
956
952
|
parent: e.parent,
|
|
@@ -971,34 +967,34 @@ function U(e) {
|
|
|
971
967
|
}
|
|
972
968
|
);
|
|
973
969
|
}
|
|
974
|
-
function
|
|
975
|
-
var
|
|
976
|
-
const [t, n] =
|
|
970
|
+
function Tt(e) {
|
|
971
|
+
var E;
|
|
972
|
+
const [t, n] = I(
|
|
977
973
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
978
|
-
), [i, o] =
|
|
974
|
+
), [i, o] = I(() => e.columns || []), [a, r] = I(
|
|
979
975
|
() => e.stackColumnsAt || "tablet"
|
|
980
976
|
);
|
|
981
977
|
function l(p) {
|
|
982
|
-
var
|
|
983
|
-
return ((
|
|
978
|
+
var v;
|
|
979
|
+
return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
|
|
984
980
|
}
|
|
985
981
|
function d(p) {
|
|
986
|
-
const
|
|
987
|
-
return `calc(${l(p)}% - ${
|
|
982
|
+
const v = t * (i.length - 1) / i.length;
|
|
983
|
+
return `calc(${l(p)}% - ${v}px)`;
|
|
988
984
|
}
|
|
989
985
|
function c({
|
|
990
986
|
stackedStyle: p,
|
|
991
|
-
desktopStyle:
|
|
987
|
+
desktopStyle: v
|
|
992
988
|
}) {
|
|
993
|
-
return a === "tablet" ? p :
|
|
989
|
+
return a === "tablet" ? p : v;
|
|
994
990
|
}
|
|
995
991
|
function m({
|
|
996
992
|
stackedStyle: p,
|
|
997
|
-
desktopStyle:
|
|
993
|
+
desktopStyle: v
|
|
998
994
|
}) {
|
|
999
|
-
return a === "never" ?
|
|
995
|
+
return a === "never" ? v : p;
|
|
1000
996
|
}
|
|
1001
|
-
const [f, g] =
|
|
997
|
+
const [f, g] = I(
|
|
1002
998
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1003
999
|
);
|
|
1004
1000
|
function y() {
|
|
@@ -1010,8 +1006,8 @@ function Et(e) {
|
|
|
1010
1006
|
})
|
|
1011
1007
|
};
|
|
1012
1008
|
}
|
|
1013
|
-
function
|
|
1014
|
-
const
|
|
1009
|
+
function x(p) {
|
|
1010
|
+
const v = p === 0 ? 0 : t, P = d(p), R = `${v}px`, F = "100%", L = 0;
|
|
1015
1011
|
return {
|
|
1016
1012
|
...{
|
|
1017
1013
|
display: "flex",
|
|
@@ -1019,34 +1015,34 @@ function Et(e) {
|
|
|
1019
1015
|
alignItems: "stretch"
|
|
1020
1016
|
},
|
|
1021
1017
|
width: P,
|
|
1022
|
-
["marginLeft"]:
|
|
1018
|
+
["marginLeft"]: R,
|
|
1023
1019
|
"--column-width-mobile": m({
|
|
1024
|
-
stackedStyle:
|
|
1020
|
+
stackedStyle: F,
|
|
1025
1021
|
desktopStyle: P
|
|
1026
1022
|
}),
|
|
1027
1023
|
"--column-margin-left-mobile": m({
|
|
1028
1024
|
stackedStyle: L,
|
|
1029
|
-
desktopStyle:
|
|
1025
|
+
desktopStyle: R
|
|
1030
1026
|
}),
|
|
1031
1027
|
"--column-width-tablet": c({
|
|
1032
|
-
stackedStyle:
|
|
1028
|
+
stackedStyle: F,
|
|
1033
1029
|
desktopStyle: P
|
|
1034
1030
|
}),
|
|
1035
1031
|
"--column-margin-left-tablet": c({
|
|
1036
1032
|
stackedStyle: L,
|
|
1037
|
-
desktopStyle:
|
|
1033
|
+
desktopStyle: R
|
|
1038
1034
|
})
|
|
1039
1035
|
};
|
|
1040
1036
|
}
|
|
1041
|
-
function
|
|
1042
|
-
var P,
|
|
1043
|
-
return
|
|
1044
|
-
((
|
|
1037
|
+
function k(p) {
|
|
1038
|
+
var P, R;
|
|
1039
|
+
return We(
|
|
1040
|
+
((R = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : R.breakpoints) || {}
|
|
1045
1041
|
)[p].max;
|
|
1046
1042
|
}
|
|
1047
|
-
function
|
|
1043
|
+
function w() {
|
|
1048
1044
|
return `
|
|
1049
|
-
@media (max-width: ${
|
|
1045
|
+
@media (max-width: ${k("medium")}px) {
|
|
1050
1046
|
.${e.builderBlock.id}-breakpoints {
|
|
1051
1047
|
flex-direction: var(--flex-dir-tablet);
|
|
1052
1048
|
align-items: stretch;
|
|
@@ -1058,7 +1054,7 @@ function Et(e) {
|
|
|
1058
1054
|
}
|
|
1059
1055
|
}
|
|
1060
1056
|
|
|
1061
|
-
@media (max-width: ${
|
|
1057
|
+
@media (max-width: ${k("small")}px) {
|
|
1062
1058
|
.${e.builderBlock.id}-breakpoints {
|
|
1063
1059
|
flex-direction: var(--flex-dir);
|
|
1064
1060
|
align-items: stretch;
|
|
@@ -1078,8 +1074,8 @@ function Et(e) {
|
|
|
1078
1074
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
|
|
1079
1075
|
style: y(),
|
|
1080
1076
|
children: [
|
|
1081
|
-
/* @__PURE__ */ s(
|
|
1082
|
-
(
|
|
1077
|
+
/* @__PURE__ */ s(ee, { id: "builderio-columns", styles: w() }),
|
|
1078
|
+
(E = e.columns) == null ? void 0 : E.map((p, v) => /* @__PURE__ */ s(
|
|
1083
1079
|
ae,
|
|
1084
1080
|
{
|
|
1085
1081
|
TagName: p.link ? e.builderLinkComponent || "a" : "div",
|
|
@@ -1089,12 +1085,12 @@ function Et(e) {
|
|
|
1089
1085
|
href: p.link
|
|
1090
1086
|
} : {},
|
|
1091
1087
|
[K()]: "builder-column",
|
|
1092
|
-
style: Ve(
|
|
1088
|
+
style: Ve(x(v))
|
|
1093
1089
|
},
|
|
1094
1090
|
children: /* @__PURE__ */ s(
|
|
1095
|
-
|
|
1091
|
+
O,
|
|
1096
1092
|
{
|
|
1097
|
-
path: `component.options.columns.${
|
|
1093
|
+
path: `component.options.columns.${v}.blocks`,
|
|
1098
1094
|
parent: e.builderBlock.id,
|
|
1099
1095
|
styleProp: {
|
|
1100
1096
|
flexGrow: "1"
|
|
@@ -1106,7 +1102,7 @@ function Et(e) {
|
|
|
1106
1102
|
}
|
|
1107
1103
|
)
|
|
1108
1104
|
},
|
|
1109
|
-
|
|
1105
|
+
v
|
|
1110
1106
|
))
|
|
1111
1107
|
]
|
|
1112
1108
|
}
|
|
@@ -1117,25 +1113,25 @@ function Et(e) {
|
|
|
1117
1113
|
}` })
|
|
1118
1114
|
] });
|
|
1119
1115
|
}
|
|
1120
|
-
function
|
|
1116
|
+
function Et(e) {
|
|
1121
1117
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1122
1118
|
}
|
|
1123
|
-
function
|
|
1119
|
+
function ge(e) {
|
|
1124
1120
|
return e.replace(/http(s)?:/, "");
|
|
1125
1121
|
}
|
|
1126
|
-
function
|
|
1122
|
+
function Rt(e = "", t, n) {
|
|
1127
1123
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1128
1124
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1129
1125
|
}
|
|
1130
|
-
function
|
|
1126
|
+
function Pt(e, t) {
|
|
1131
1127
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1132
1128
|
return e;
|
|
1133
1129
|
if (t === "master")
|
|
1134
|
-
return
|
|
1130
|
+
return ge(e);
|
|
1135
1131
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1136
1132
|
if (n) {
|
|
1137
1133
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1138
|
-
return
|
|
1134
|
+
return ge(`${i[0]}_${a}${o}`);
|
|
1139
1135
|
}
|
|
1140
1136
|
return null;
|
|
1141
1137
|
}
|
|
@@ -1146,11 +1142,11 @@ function ne(e) {
|
|
|
1146
1142
|
if (e.match(/builder\.io/)) {
|
|
1147
1143
|
let n = e;
|
|
1148
1144
|
const i = Number(e.split("?width=")[1]);
|
|
1149
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1145
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1150
1146
|
}
|
|
1151
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1147
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1152
1148
|
}
|
|
1153
|
-
function
|
|
1149
|
+
function Vt(e) {
|
|
1154
1150
|
var o, a, r, l;
|
|
1155
1151
|
function t() {
|
|
1156
1152
|
var m;
|
|
@@ -1233,7 +1229,7 @@ function Bt(e) {
|
|
|
1233
1229
|
}` })
|
|
1234
1230
|
] });
|
|
1235
1231
|
}
|
|
1236
|
-
function
|
|
1232
|
+
function Bt(e) {
|
|
1237
1233
|
return /* @__PURE__ */ s(
|
|
1238
1234
|
"section",
|
|
1239
1235
|
{
|
|
@@ -1287,7 +1283,7 @@ const Wt = {
|
|
|
1287
1283
|
}],
|
|
1288
1284
|
static: !0,
|
|
1289
1285
|
noWrap: !0
|
|
1290
|
-
},
|
|
1286
|
+
}, At = {
|
|
1291
1287
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1292
1288
|
name: "Columns",
|
|
1293
1289
|
isRSC: !0,
|
|
@@ -1488,7 +1484,7 @@ const Wt = {
|
|
|
1488
1484
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1489
1485
|
advanced: !0
|
|
1490
1486
|
}]
|
|
1491
|
-
},
|
|
1487
|
+
}, Nt = {
|
|
1492
1488
|
name: "Fragment",
|
|
1493
1489
|
static: !0,
|
|
1494
1490
|
hidden: !0,
|
|
@@ -1594,7 +1590,7 @@ const Wt = {
|
|
|
1594
1590
|
advanced: !0,
|
|
1595
1591
|
defaultValue: 0.7041
|
|
1596
1592
|
}]
|
|
1597
|
-
},
|
|
1593
|
+
}, Ft = {
|
|
1598
1594
|
name: "Core:Section",
|
|
1599
1595
|
static: !0,
|
|
1600
1596
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1633,7 +1629,7 @@ const Wt = {
|
|
|
1633
1629
|
}
|
|
1634
1630
|
}
|
|
1635
1631
|
}]
|
|
1636
|
-
},
|
|
1632
|
+
}, Lt = {
|
|
1637
1633
|
name: "Slot",
|
|
1638
1634
|
isRSC: !0,
|
|
1639
1635
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1647,7 +1643,7 @@ const Wt = {
|
|
|
1647
1643
|
defaultValue: "children"
|
|
1648
1644
|
}]
|
|
1649
1645
|
};
|
|
1650
|
-
function
|
|
1646
|
+
function Dt(e) {
|
|
1651
1647
|
var t, n, i;
|
|
1652
1648
|
return /* @__PURE__ */ s(
|
|
1653
1649
|
"div",
|
|
@@ -1659,7 +1655,7 @@ function Mt(e) {
|
|
|
1659
1655
|
"builder-slot": e.name
|
|
1660
1656
|
},
|
|
1661
1657
|
children: /* @__PURE__ */ s(
|
|
1662
|
-
|
|
1658
|
+
O,
|
|
1663
1659
|
{
|
|
1664
1660
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1665
1661
|
path: `symbol.data.${e.name}`,
|
|
@@ -1670,7 +1666,7 @@ function Mt(e) {
|
|
|
1670
1666
|
}
|
|
1671
1667
|
);
|
|
1672
1668
|
}
|
|
1673
|
-
const
|
|
1669
|
+
const Mt = {
|
|
1674
1670
|
name: "Symbol",
|
|
1675
1671
|
noWrap: !0,
|
|
1676
1672
|
static: !0,
|
|
@@ -1703,7 +1699,7 @@ const Ot = {
|
|
|
1703
1699
|
hideFromUI: !0,
|
|
1704
1700
|
type: "boolean"
|
|
1705
1701
|
}]
|
|
1706
|
-
},
|
|
1702
|
+
}, Ot = {
|
|
1707
1703
|
name: "Text",
|
|
1708
1704
|
static: !0,
|
|
1709
1705
|
isRSC: !0,
|
|
@@ -1722,7 +1718,7 @@ const Ot = {
|
|
|
1722
1718
|
textAlign: "center"
|
|
1723
1719
|
}
|
|
1724
1720
|
};
|
|
1725
|
-
function
|
|
1721
|
+
function Ut(e) {
|
|
1726
1722
|
var t;
|
|
1727
1723
|
return /* @__PURE__ */ s(
|
|
1728
1724
|
"div",
|
|
@@ -1735,7 +1731,7 @@ function jt(e) {
|
|
|
1735
1731
|
}
|
|
1736
1732
|
);
|
|
1737
1733
|
}
|
|
1738
|
-
const
|
|
1734
|
+
const jt = {
|
|
1739
1735
|
name: "Custom Code",
|
|
1740
1736
|
static: !0,
|
|
1741
1737
|
requiredPermissions: ["editCode"],
|
|
@@ -1758,8 +1754,8 @@ const Ht = {
|
|
|
1758
1754
|
advanced: !0
|
|
1759
1755
|
}]
|
|
1760
1756
|
};
|
|
1761
|
-
function
|
|
1762
|
-
const t =
|
|
1757
|
+
function Ht(e) {
|
|
1758
|
+
const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []);
|
|
1763
1759
|
return V(() => {
|
|
1764
1760
|
var l;
|
|
1765
1761
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -1796,7 +1792,7 @@ function Kt(e) {
|
|
|
1796
1792
|
}
|
|
1797
1793
|
);
|
|
1798
1794
|
}
|
|
1799
|
-
const
|
|
1795
|
+
const Kt = {
|
|
1800
1796
|
name: "Embed",
|
|
1801
1797
|
static: !0,
|
|
1802
1798
|
inputs: [{
|
|
@@ -1821,9 +1817,9 @@ const qt = {
|
|
|
1821
1817
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1822
1818
|
hideFromUI: !0
|
|
1823
1819
|
}]
|
|
1824
|
-
},
|
|
1825
|
-
function
|
|
1826
|
-
const t =
|
|
1820
|
+
}, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
|
|
1821
|
+
function _t(e) {
|
|
1822
|
+
const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []), [r, l] = I(() => !1);
|
|
1827
1823
|
function d() {
|
|
1828
1824
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1829
1825
|
return;
|
|
@@ -1834,7 +1830,7 @@ function Jt(e) {
|
|
|
1834
1830
|
n.push(f.src);
|
|
1835
1831
|
const g = document.createElement("script");
|
|
1836
1832
|
g.async = !0, g.src = f.src, document.head.appendChild(g);
|
|
1837
|
-
} else if (
|
|
1833
|
+
} else if (zt(f) && !o.includes(f.innerText))
|
|
1838
1834
|
try {
|
|
1839
1835
|
o.push(f.innerText), new Function(f.innerText)();
|
|
1840
1836
|
} catch (g) {
|
|
@@ -1853,7 +1849,7 @@ function Jt(e) {
|
|
|
1853
1849
|
}
|
|
1854
1850
|
);
|
|
1855
1851
|
}
|
|
1856
|
-
const
|
|
1852
|
+
const Jt = {
|
|
1857
1853
|
name: "Form:Form",
|
|
1858
1854
|
// editableTags: ['builder-form-error']
|
|
1859
1855
|
defaults: {
|
|
@@ -2084,50 +2080,50 @@ const Yt = {
|
|
|
2084
2080
|
}
|
|
2085
2081
|
}
|
|
2086
2082
|
}]
|
|
2087
|
-
},
|
|
2083
|
+
}, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
|
|
2088
2084
|
const e = process.env.NODE_ENV || "production";
|
|
2089
|
-
return
|
|
2090
|
-
},
|
|
2085
|
+
return Yt.includes(e) ? e : "production";
|
|
2086
|
+
}, Qt = (e, t, n) => {
|
|
2091
2087
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2092
2088
|
return i === void 0 || i === e ? n : i;
|
|
2093
2089
|
};
|
|
2094
|
-
function
|
|
2090
|
+
function Xt(e) {
|
|
2095
2091
|
var f, g;
|
|
2096
|
-
const t =
|
|
2092
|
+
const t = Z(null), [n, i] = I(() => "unsubmitted"), [o, a] = I(() => null), [r, l] = I(() => "");
|
|
2097
2093
|
function d(y) {
|
|
2098
|
-
var
|
|
2099
|
-
const
|
|
2094
|
+
var k, w;
|
|
2095
|
+
const x = {
|
|
2100
2096
|
...e.builderContext.rootState,
|
|
2101
2097
|
...y
|
|
2102
2098
|
};
|
|
2103
|
-
e.builderContext.rootSetState ? (
|
|
2099
|
+
e.builderContext.rootSetState ? (w = (k = e.builderContext).rootSetState) == null || w.call(k, x) : e.builderContext.rootState = x;
|
|
2104
2100
|
}
|
|
2105
2101
|
function c() {
|
|
2106
2102
|
return N() && e.previewState || n;
|
|
2107
2103
|
}
|
|
2108
2104
|
function m(y) {
|
|
2109
|
-
var
|
|
2110
|
-
const
|
|
2105
|
+
var k;
|
|
2106
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2111
2107
|
if (e.sendSubmissionsTo === "zapier")
|
|
2112
2108
|
y.preventDefault();
|
|
2113
|
-
else if (
|
|
2109
|
+
else if (x) {
|
|
2114
2110
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2115
2111
|
y.preventDefault();
|
|
2116
2112
|
return;
|
|
2117
2113
|
}
|
|
2118
2114
|
y.preventDefault();
|
|
2119
|
-
const
|
|
2115
|
+
const w = y.currentTarget, E = e.customHeaders || {};
|
|
2120
2116
|
let p;
|
|
2121
|
-
const
|
|
2117
|
+
const v = new FormData(w), P = Array.from(
|
|
2122
2118
|
y.currentTarget.querySelectorAll("input,select,textarea")
|
|
2123
2119
|
).filter((u) => !!u.name).map((u) => {
|
|
2124
2120
|
let h;
|
|
2125
|
-
const
|
|
2121
|
+
const C = u.name;
|
|
2126
2122
|
if (u instanceof HTMLInputElement)
|
|
2127
2123
|
if (u.type === "radio") {
|
|
2128
2124
|
if (u.checked)
|
|
2129
2125
|
return h = u.name, {
|
|
2130
|
-
key:
|
|
2126
|
+
key: C,
|
|
2131
2127
|
value: h
|
|
2132
2128
|
};
|
|
2133
2129
|
} else if (u.type === "checkbox")
|
|
@@ -2140,38 +2136,38 @@ function Zt(e) {
|
|
|
2140
2136
|
else
|
|
2141
2137
|
h = u.value;
|
|
2142
2138
|
return {
|
|
2143
|
-
key:
|
|
2139
|
+
key: C,
|
|
2144
2140
|
value: h
|
|
2145
2141
|
};
|
|
2146
2142
|
});
|
|
2147
|
-
let
|
|
2148
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2149
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2150
|
-
}),
|
|
2151
|
-
p =
|
|
2143
|
+
let R = e.contentType;
|
|
2144
|
+
if (e.sendSubmissionsTo === "email" && (R = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
|
|
2145
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (R = "multipart/form-data");
|
|
2146
|
+
}), R !== "application/json")
|
|
2147
|
+
p = v;
|
|
2152
2148
|
else {
|
|
2153
2149
|
const u = {};
|
|
2154
|
-
Array.from(P).forEach(({ value: h, key:
|
|
2155
|
-
|
|
2150
|
+
Array.from(P).forEach(({ value: h, key: C }) => {
|
|
2151
|
+
Ie(u, C, h);
|
|
2156
2152
|
}), p = JSON.stringify(u);
|
|
2157
2153
|
}
|
|
2158
|
-
|
|
2159
|
-
const
|
|
2160
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2154
|
+
R && R !== "multipart/form-data" && (x && ((k = e.action) != null && k.includes("zapier.com")) || (E["content-type"] = R));
|
|
2155
|
+
const F = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2156
|
+
if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
|
|
2161
2157
|
return;
|
|
2162
2158
|
i("sending");
|
|
2163
|
-
const L = `${
|
|
2159
|
+
const L = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2164
2160
|
e.sendSubmissionsToEmail || ""
|
|
2165
2161
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2166
2162
|
fetch(
|
|
2167
2163
|
e.sendSubmissionsTo === "email" ? L : e.action,
|
|
2168
|
-
{ body: p, headers:
|
|
2164
|
+
{ body: p, headers: E, method: e.method || "post" }
|
|
2169
2165
|
).then(
|
|
2170
2166
|
async (u) => {
|
|
2171
2167
|
let h;
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2174
|
-
let b =
|
|
2168
|
+
const C = u.headers.get("content-type");
|
|
2169
|
+
if (C && C.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2170
|
+
let b = Qt(h, e.errorMessagePath);
|
|
2175
2171
|
b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
|
|
2176
2172
|
}
|
|
2177
2173
|
if (a(h), i(u.ok ? "success" : "error"), u.ok) {
|
|
@@ -2185,10 +2181,10 @@ function Zt(e) {
|
|
|
2185
2181
|
}
|
|
2186
2182
|
if (e.successUrl)
|
|
2187
2183
|
if (t.current) {
|
|
2188
|
-
const
|
|
2184
|
+
const S = new CustomEvent("route", {
|
|
2189
2185
|
detail: { url: e.successUrl }
|
|
2190
2186
|
});
|
|
2191
|
-
t.current.dispatchEvent(
|
|
2187
|
+
t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
|
|
2192
2188
|
} else
|
|
2193
2189
|
location.href = e.successUrl;
|
|
2194
2190
|
}
|
|
@@ -2215,7 +2211,7 @@ function Zt(e) {
|
|
|
2215
2211
|
onSubmit: (y) => m(y),
|
|
2216
2212
|
...e.attributes,
|
|
2217
2213
|
children: [
|
|
2218
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y,
|
|
2214
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, x) => /* @__PURE__ */ s(
|
|
2219
2215
|
_,
|
|
2220
2216
|
{
|
|
2221
2217
|
block: y,
|
|
@@ -2223,10 +2219,10 @@ function Zt(e) {
|
|
|
2223
2219
|
registeredComponents: e.builderComponents,
|
|
2224
2220
|
linkComponent: e.builderLinkComponent
|
|
2225
2221
|
},
|
|
2226
|
-
`form-block-${
|
|
2222
|
+
`form-block-${x}`
|
|
2227
2223
|
)) }) : null,
|
|
2228
2224
|
c() === "error" ? /* @__PURE__ */ s(
|
|
2229
|
-
|
|
2225
|
+
O,
|
|
2230
2226
|
{
|
|
2231
2227
|
path: "errorMessage",
|
|
2232
2228
|
blocks: e.errorMessage,
|
|
@@ -2234,7 +2230,7 @@ function Zt(e) {
|
|
|
2234
2230
|
}
|
|
2235
2231
|
) : null,
|
|
2236
2232
|
c() === "sending" ? /* @__PURE__ */ s(
|
|
2237
|
-
|
|
2233
|
+
O,
|
|
2238
2234
|
{
|
|
2239
2235
|
path: "sendingMessage",
|
|
2240
2236
|
blocks: e.sendingMessage,
|
|
@@ -2243,7 +2239,7 @@ function Zt(e) {
|
|
|
2243
2239
|
) : null,
|
|
2244
2240
|
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
|
|
2245
2241
|
c() === "success" ? /* @__PURE__ */ s(
|
|
2246
|
-
|
|
2242
|
+
O,
|
|
2247
2243
|
{
|
|
2248
2244
|
path: "successMessage",
|
|
2249
2245
|
blocks: e.successMessage,
|
|
@@ -2258,7 +2254,7 @@ function Zt(e) {
|
|
|
2258
2254
|
" "
|
|
2259
2255
|
] });
|
|
2260
2256
|
}
|
|
2261
|
-
const
|
|
2257
|
+
const Zt = {
|
|
2262
2258
|
name: "Form:Input",
|
|
2263
2259
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2264
2260
|
inputs: [
|
|
@@ -2310,8 +2306,8 @@ const en = {
|
|
|
2310
2306
|
borderColor: "#ccc"
|
|
2311
2307
|
}
|
|
2312
2308
|
};
|
|
2313
|
-
function
|
|
2314
|
-
return /* @__PURE__ */
|
|
2309
|
+
function en(e) {
|
|
2310
|
+
return /* @__PURE__ */ ke(
|
|
2315
2311
|
"input",
|
|
2316
2312
|
{
|
|
2317
2313
|
...e.attributes,
|
|
@@ -2325,7 +2321,7 @@ function tn(e) {
|
|
|
2325
2321
|
}
|
|
2326
2322
|
);
|
|
2327
2323
|
}
|
|
2328
|
-
const
|
|
2324
|
+
const tn = {
|
|
2329
2325
|
name: "Form:Select",
|
|
2330
2326
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2331
2327
|
defaultStyles: {
|
|
@@ -2368,9 +2364,9 @@ const nn = {
|
|
|
2368
2364
|
static: !0,
|
|
2369
2365
|
noWrap: !0
|
|
2370
2366
|
};
|
|
2371
|
-
function
|
|
2367
|
+
function nn(e) {
|
|
2372
2368
|
var t;
|
|
2373
|
-
return /* @__PURE__ */
|
|
2369
|
+
return /* @__PURE__ */ ke(
|
|
2374
2370
|
"select",
|
|
2375
2371
|
{
|
|
2376
2372
|
...e.attributes,
|
|
@@ -2382,7 +2378,7 @@ function on(e) {
|
|
|
2382
2378
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2383
2379
|
);
|
|
2384
2380
|
}
|
|
2385
|
-
const
|
|
2381
|
+
const on = {
|
|
2386
2382
|
name: "Form:SubmitButton",
|
|
2387
2383
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2388
2384
|
defaultStyles: {
|
|
@@ -2408,10 +2404,10 @@ const an = {
|
|
|
2408
2404
|
// TODO: defaultChildren
|
|
2409
2405
|
// canHaveChildren: true,
|
|
2410
2406
|
};
|
|
2411
|
-
function
|
|
2407
|
+
function an(e) {
|
|
2412
2408
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2413
2409
|
}
|
|
2414
|
-
const
|
|
2410
|
+
const rn = {
|
|
2415
2411
|
// friendlyName?
|
|
2416
2412
|
name: "Raw:Img",
|
|
2417
2413
|
hideFromInsertMenu: !0,
|
|
@@ -2426,7 +2422,7 @@ const ln = {
|
|
|
2426
2422
|
noWrap: !0,
|
|
2427
2423
|
static: !0
|
|
2428
2424
|
};
|
|
2429
|
-
function
|
|
2425
|
+
function ln(e) {
|
|
2430
2426
|
return /* @__PURE__ */ s(
|
|
2431
2427
|
"img",
|
|
2432
2428
|
{
|
|
@@ -2441,7 +2437,7 @@ function sn(e) {
|
|
|
2441
2437
|
N() && e.imgSrc || "default-key"
|
|
2442
2438
|
);
|
|
2443
2439
|
}
|
|
2444
|
-
const
|
|
2440
|
+
const sn = {
|
|
2445
2441
|
name: "Video",
|
|
2446
2442
|
canHaveChildren: !0,
|
|
2447
2443
|
defaultStyles: {
|
|
@@ -2523,7 +2519,7 @@ const cn = {
|
|
|
2523
2519
|
advanced: !0
|
|
2524
2520
|
}]
|
|
2525
2521
|
};
|
|
2526
|
-
function
|
|
2522
|
+
function cn(e) {
|
|
2527
2523
|
var i, o, a, r, l, d, c;
|
|
2528
2524
|
function t() {
|
|
2529
2525
|
return {
|
|
@@ -2624,55 +2620,55 @@ function dn(e) {
|
|
|
2624
2620
|
}
|
|
2625
2621
|
);
|
|
2626
2622
|
}
|
|
2627
|
-
const
|
|
2628
|
-
component:
|
|
2629
|
-
...
|
|
2623
|
+
const dn = () => [{
|
|
2624
|
+
component: Ht,
|
|
2625
|
+
...jt
|
|
2630
2626
|
}, {
|
|
2631
|
-
component:
|
|
2632
|
-
...
|
|
2627
|
+
component: _t,
|
|
2628
|
+
...Kt
|
|
2633
2629
|
}, {
|
|
2634
|
-
component:
|
|
2635
|
-
...
|
|
2630
|
+
component: Xt,
|
|
2631
|
+
...Jt
|
|
2636
2632
|
}, {
|
|
2637
|
-
component:
|
|
2638
|
-
...
|
|
2633
|
+
component: en,
|
|
2634
|
+
...Zt
|
|
2639
2635
|
}, {
|
|
2640
|
-
component:
|
|
2641
|
-
...
|
|
2636
|
+
component: an,
|
|
2637
|
+
...on
|
|
2642
2638
|
}, {
|
|
2643
|
-
component:
|
|
2644
|
-
...
|
|
2639
|
+
component: nn,
|
|
2640
|
+
...tn
|
|
2645
2641
|
}, {
|
|
2646
|
-
component:
|
|
2647
|
-
...
|
|
2642
|
+
component: ln,
|
|
2643
|
+
...rn
|
|
2648
2644
|
}, {
|
|
2649
|
-
component:
|
|
2650
|
-
...
|
|
2651
|
-
}],
|
|
2645
|
+
component: cn,
|
|
2646
|
+
...sn
|
|
2647
|
+
}], be = () => [{
|
|
2652
2648
|
component: Ge,
|
|
2653
2649
|
...Wt
|
|
2650
|
+
}, {
|
|
2651
|
+
component: Tt,
|
|
2652
|
+
...At
|
|
2654
2653
|
}, {
|
|
2655
2654
|
component: Et,
|
|
2656
2655
|
...Nt
|
|
2657
2656
|
}, {
|
|
2658
|
-
component:
|
|
2659
|
-
|
|
2657
|
+
component: Vt,
|
|
2658
|
+
...$t
|
|
2660
2659
|
}, {
|
|
2661
2660
|
component: Bt,
|
|
2662
|
-
|
|
2661
|
+
...Ft
|
|
2663
2662
|
}, {
|
|
2664
|
-
component:
|
|
2663
|
+
component: Dt,
|
|
2665
2664
|
...Lt
|
|
2666
|
-
}, {
|
|
2667
|
-
component: Mt,
|
|
2668
|
-
...Dt
|
|
2669
2665
|
}, {
|
|
2670
2666
|
component: Wn,
|
|
2671
|
-
...
|
|
2667
|
+
...Mt
|
|
2672
2668
|
}, {
|
|
2673
|
-
component:
|
|
2674
|
-
...
|
|
2675
|
-
}, ...
|
|
2669
|
+
component: Ut,
|
|
2670
|
+
...Ot
|
|
2671
|
+
}, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2676
2672
|
function getAndSetVariantId() {
|
|
2677
2673
|
function setCookie(name, value, days) {
|
|
2678
2674
|
let expires = '';
|
|
@@ -2728,7 +2724,7 @@ const un = () => [{
|
|
|
2728
2724
|
}).join('');
|
|
2729
2725
|
styleEl.innerHTML = newStyleStr;
|
|
2730
2726
|
}
|
|
2731
|
-
}`,
|
|
2727
|
+
}`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2732
2728
|
if (!navigator.cookieEnabled) {
|
|
2733
2729
|
return;
|
|
2734
2730
|
}
|
|
@@ -2762,24 +2758,24 @@ const un = () => [{
|
|
|
2762
2758
|
thisScriptEl?.remove();
|
|
2763
2759
|
}
|
|
2764
2760
|
return;
|
|
2765
|
-
}`, Ne = "builderIoAbTest",
|
|
2761
|
+
}`, Ne = "builderIoAbTest", $e = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2766
2762
|
...t,
|
|
2767
2763
|
testVariationId: t.id,
|
|
2768
2764
|
id: e == null ? void 0 : e.id
|
|
2769
|
-
})),
|
|
2765
|
+
})), fn = ({
|
|
2770
2766
|
canTrack: e,
|
|
2771
2767
|
content: t
|
|
2772
|
-
}) => !(!(
|
|
2773
|
-
window.${Ne} = ${
|
|
2774
|
-
window.${
|
|
2775
|
-
`,
|
|
2768
|
+
}) => !(!(Y(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", Fe = hn(z), gn = () => `
|
|
2769
|
+
window.${Ne} = ${un}
|
|
2770
|
+
window.${$e} = ${mn}
|
|
2771
|
+
`, bn = (e, t) => `
|
|
2776
2772
|
window.${Ne}(
|
|
2777
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2778
|
-
)`,
|
|
2773
|
+
"${t}",${JSON.stringify(e)}, ${Fe}
|
|
2774
|
+
)`, yn = ({
|
|
2779
2775
|
contentId: e,
|
|
2780
2776
|
variationId: t
|
|
2781
|
-
}) => `window.${
|
|
2782
|
-
"${t}", "${e}", ${
|
|
2777
|
+
}) => `window.${$e}(
|
|
2778
|
+
"${t}", "${e}", ${Fe}
|
|
2783
2779
|
)`;
|
|
2784
2780
|
function ie(e) {
|
|
2785
2781
|
return /* @__PURE__ */ s(
|
|
@@ -2790,10 +2786,10 @@ function ie(e) {
|
|
|
2790
2786
|
}
|
|
2791
2787
|
);
|
|
2792
2788
|
}
|
|
2793
|
-
function
|
|
2789
|
+
function ye(e) {
|
|
2794
2790
|
return Math.round(e * 1e3) / 1e3;
|
|
2795
2791
|
}
|
|
2796
|
-
const
|
|
2792
|
+
const pn = (e, t, n = !0) => {
|
|
2797
2793
|
if (!(e instanceof HTMLElement))
|
|
2798
2794
|
return null;
|
|
2799
2795
|
let i = n ? e : e.parentElement;
|
|
@@ -2804,28 +2800,28 @@ const xn = (e, t, n = !0) => {
|
|
|
2804
2800
|
return i;
|
|
2805
2801
|
} while (i = i.parentElement);
|
|
2806
2802
|
return null;
|
|
2807
|
-
},
|
|
2803
|
+
}, xn = (e) => pn(e, (t) => {
|
|
2808
2804
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2809
2805
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2810
|
-
}),
|
|
2806
|
+
}), pe = ({
|
|
2811
2807
|
event: e,
|
|
2812
2808
|
target: t
|
|
2813
2809
|
}) => {
|
|
2814
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
2810
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), r = ye(o / n.height);
|
|
2815
2811
|
return {
|
|
2816
2812
|
x: a,
|
|
2817
2813
|
y: r
|
|
2818
2814
|
};
|
|
2819
|
-
},
|
|
2820
|
-
const t = e.target, n = t &&
|
|
2815
|
+
}, Sn = (e) => {
|
|
2816
|
+
const t = e.target, n = t && xn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2821
2817
|
return {
|
|
2822
2818
|
targetBuilderElement: i || void 0,
|
|
2823
2819
|
metadata: {
|
|
2824
|
-
targetOffset: t ?
|
|
2820
|
+
targetOffset: t ? pe({
|
|
2825
2821
|
event: e,
|
|
2826
2822
|
target: t
|
|
2827
2823
|
}) : void 0,
|
|
2828
|
-
builderTargetOffset: n ?
|
|
2824
|
+
builderTargetOffset: n ? pe({
|
|
2829
2825
|
event: e,
|
|
2830
2826
|
target: n
|
|
2831
2827
|
}) : void 0,
|
|
@@ -2833,41 +2829,41 @@ const xn = (e, t, n = !0) => {
|
|
|
2833
2829
|
}
|
|
2834
2830
|
};
|
|
2835
2831
|
};
|
|
2836
|
-
function
|
|
2837
|
-
var
|
|
2838
|
-
const t =
|
|
2832
|
+
function vn(e) {
|
|
2833
|
+
var E, p, v, P, R, F, L;
|
|
2834
|
+
const t = Z(null);
|
|
2839
2835
|
function n(u) {
|
|
2840
|
-
var
|
|
2836
|
+
var C, b;
|
|
2841
2837
|
const h = {
|
|
2842
2838
|
...e.builderContextSignal.rootState,
|
|
2843
2839
|
...u
|
|
2844
2840
|
};
|
|
2845
|
-
e.builderContextSignal.rootSetState ? (b = (
|
|
2846
|
-
...
|
|
2841
|
+
e.builderContextSignal.rootSetState ? (b = (C = e.builderContextSignal).rootSetState) == null || b.call(C, h) : e.setBuilderContextSignal((S) => ({
|
|
2842
|
+
...S,
|
|
2847
2843
|
rootState: h
|
|
2848
2844
|
}));
|
|
2849
2845
|
}
|
|
2850
2846
|
function i(u) {
|
|
2851
|
-
var
|
|
2847
|
+
var C, b, S, W, D;
|
|
2852
2848
|
const h = {
|
|
2853
2849
|
...e.builderContextSignal.content,
|
|
2854
2850
|
...u,
|
|
2855
2851
|
data: {
|
|
2856
|
-
...(
|
|
2852
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.data,
|
|
2857
2853
|
...u == null ? void 0 : u.data
|
|
2858
2854
|
},
|
|
2859
2855
|
meta: {
|
|
2860
2856
|
...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
|
|
2861
2857
|
...u == null ? void 0 : u.meta,
|
|
2862
|
-
breakpoints: ((
|
|
2858
|
+
breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((D = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : D.breakpoints)
|
|
2863
2859
|
}
|
|
2864
2860
|
};
|
|
2865
|
-
e.setBuilderContextSignal((
|
|
2866
|
-
...
|
|
2861
|
+
e.setBuilderContextSignal((A) => ({
|
|
2862
|
+
...A,
|
|
2867
2863
|
content: h
|
|
2868
2864
|
}));
|
|
2869
2865
|
}
|
|
2870
|
-
const [o, a] =
|
|
2866
|
+
const [o, a] = I(
|
|
2871
2867
|
() => e.contentWrapper || "div"
|
|
2872
2868
|
);
|
|
2873
2869
|
function r(u) {
|
|
@@ -2876,11 +2872,11 @@ function kn(e) {
|
|
|
2876
2872
|
trustedHosts: e.trustedHosts,
|
|
2877
2873
|
callbacks: {
|
|
2878
2874
|
configureSdk: (h) => {
|
|
2879
|
-
var
|
|
2880
|
-
const { breakpoints:
|
|
2881
|
-
!b || b !== ((
|
|
2875
|
+
var S;
|
|
2876
|
+
const { breakpoints: C, contentId: b } = h;
|
|
2877
|
+
!b || b !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || C && i({
|
|
2882
2878
|
meta: {
|
|
2883
|
-
breakpoints:
|
|
2879
|
+
breakpoints: C
|
|
2884
2880
|
}
|
|
2885
2881
|
});
|
|
2886
2882
|
},
|
|
@@ -2894,8 +2890,8 @@ function kn(e) {
|
|
|
2894
2890
|
})(u);
|
|
2895
2891
|
}
|
|
2896
2892
|
function l() {
|
|
2897
|
-
var h,
|
|
2898
|
-
const u = (
|
|
2893
|
+
var h, C;
|
|
2894
|
+
const u = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.jsCode;
|
|
2899
2895
|
u && q({
|
|
2900
2896
|
code: u,
|
|
2901
2897
|
context: e.context || {},
|
|
@@ -2908,33 +2904,33 @@ function kn(e) {
|
|
|
2908
2904
|
enableCache: !1
|
|
2909
2905
|
});
|
|
2910
2906
|
}
|
|
2911
|
-
const [d, c] =
|
|
2912
|
-
function
|
|
2913
|
-
var h,
|
|
2907
|
+
const [d, c] = I(() => ({})), [m, f] = I(() => ({})), [g, y] = I(() => !1);
|
|
2908
|
+
function x(u) {
|
|
2909
|
+
var h, C;
|
|
2914
2910
|
if (e.builderContextSignal.content) {
|
|
2915
|
-
const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId,
|
|
2916
|
-
|
|
2911
|
+
const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
|
|
2912
|
+
ce({
|
|
2917
2913
|
type: "click",
|
|
2918
|
-
canTrack:
|
|
2919
|
-
contentId:
|
|
2914
|
+
canTrack: Q(e.canTrack),
|
|
2915
|
+
contentId: S,
|
|
2920
2916
|
apiKey: e.apiKey,
|
|
2921
|
-
variationId: b !==
|
|
2922
|
-
...
|
|
2917
|
+
variationId: b !== S ? b : void 0,
|
|
2918
|
+
...Sn(u),
|
|
2923
2919
|
unique: !g
|
|
2924
2920
|
});
|
|
2925
2921
|
}
|
|
2926
2922
|
g || y(!0);
|
|
2927
2923
|
}
|
|
2928
|
-
function
|
|
2929
|
-
var h,
|
|
2930
|
-
const u = (b = (
|
|
2931
|
-
Object.entries(u).forEach(([
|
|
2932
|
-
if (!
|
|
2924
|
+
function k() {
|
|
2925
|
+
var h, C, b;
|
|
2926
|
+
const u = (b = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.httpRequests) != null ? b : {};
|
|
2927
|
+
Object.entries(u).forEach(([S, W]) => {
|
|
2928
|
+
if (!W || m[S] || d[S] && !N())
|
|
2933
2929
|
return;
|
|
2934
|
-
m[
|
|
2935
|
-
const
|
|
2930
|
+
m[S] = !0;
|
|
2931
|
+
const D = W.replace(
|
|
2936
2932
|
/{{([^}]+)}}/g,
|
|
2937
|
-
(
|
|
2933
|
+
(A, Le) => String(
|
|
2938
2934
|
q({
|
|
2939
2935
|
code: Le,
|
|
2940
2936
|
context: e.context || {},
|
|
@@ -2945,18 +2941,18 @@ function kn(e) {
|
|
|
2945
2941
|
})
|
|
2946
2942
|
)
|
|
2947
2943
|
);
|
|
2948
|
-
ze(
|
|
2944
|
+
ze(D).then((A) => A.json()).then((A) => {
|
|
2949
2945
|
n({
|
|
2950
|
-
[
|
|
2951
|
-
}), d[
|
|
2952
|
-
}).catch((
|
|
2953
|
-
console.error("error fetching dynamic data",
|
|
2946
|
+
[S]: A
|
|
2947
|
+
}), d[S] = !0;
|
|
2948
|
+
}).catch((A) => {
|
|
2949
|
+
console.error("error fetching dynamic data", W, A);
|
|
2954
2950
|
}).finally(() => {
|
|
2955
|
-
m[
|
|
2951
|
+
m[S] = !1;
|
|
2956
2952
|
});
|
|
2957
2953
|
});
|
|
2958
2954
|
}
|
|
2959
|
-
function
|
|
2955
|
+
function w() {
|
|
2960
2956
|
N() && window.dispatchEvent(
|
|
2961
2957
|
new CustomEvent(
|
|
2962
2958
|
"builder:component:stateChange",
|
|
@@ -2973,7 +2969,7 @@ function kn(e) {
|
|
|
2973
2969
|
}
|
|
2974
2970
|
return V(() => {
|
|
2975
2971
|
var u, h;
|
|
2976
|
-
if (
|
|
2972
|
+
if (U()) {
|
|
2977
2973
|
if (N() && (window.addEventListener("message", r), Ue(), je({
|
|
2978
2974
|
...e.locale ? {
|
|
2979
2975
|
locale: e.locale
|
|
@@ -2987,47 +2983,47 @@ function kn(e) {
|
|
|
2987
2983
|
}), Object.values(
|
|
2988
2984
|
e.builderContextSignal.componentInfos
|
|
2989
2985
|
).forEach((b) => {
|
|
2990
|
-
var
|
|
2991
|
-
const
|
|
2992
|
-
(
|
|
2986
|
+
var W;
|
|
2987
|
+
const S = He(b);
|
|
2988
|
+
(W = window.parent) == null || W.postMessage(S, "*");
|
|
2993
2989
|
}), window.addEventListener(
|
|
2994
2990
|
"builder:component:stateChangeListenerActivated",
|
|
2995
|
-
|
|
2996
|
-
)), e.builderContextSignal.content &&
|
|
2997
|
-
const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId,
|
|
2998
|
-
|
|
2991
|
+
w
|
|
2992
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
2993
|
+
const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, W = e.apiKey;
|
|
2994
|
+
ce({
|
|
2999
2995
|
type: "impression",
|
|
3000
2996
|
canTrack: !0,
|
|
3001
|
-
contentId:
|
|
3002
|
-
apiKey:
|
|
3003
|
-
variationId: b !==
|
|
2997
|
+
contentId: S,
|
|
2998
|
+
apiKey: W,
|
|
2999
|
+
variationId: b !== S ? b : void 0
|
|
3004
3000
|
});
|
|
3005
3001
|
}
|
|
3006
|
-
if (Ke()) {
|
|
3007
|
-
const b = new URL(location.href).searchParams,
|
|
3008
|
-
`builder.preview.${
|
|
3009
|
-
),
|
|
3010
|
-
|
|
3002
|
+
if (Ke() && !N()) {
|
|
3003
|
+
const b = new URL(location.href).searchParams, S = b.get("builder.preview"), W = b.get(
|
|
3004
|
+
`builder.preview.${S}`
|
|
3005
|
+
), D = b.get("apiKey") || b.get("builder.space");
|
|
3006
|
+
S === e.model && D === e.apiKey && (!e.content || W === e.content.id) && Se({
|
|
3011
3007
|
model: e.model,
|
|
3012
3008
|
apiKey: e.apiKey,
|
|
3013
3009
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3014
|
-
}).then((
|
|
3015
|
-
|
|
3010
|
+
}).then((A) => {
|
|
3011
|
+
A && i(A);
|
|
3016
3012
|
});
|
|
3017
3013
|
}
|
|
3018
3014
|
}
|
|
3019
3015
|
}, []), V(() => {
|
|
3020
3016
|
e.apiKey || H.error(
|
|
3021
3017
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3022
|
-
), l(),
|
|
3018
|
+
), l(), k(), w();
|
|
3023
3019
|
}, []), V(() => {
|
|
3024
3020
|
e.content && i(e.content);
|
|
3025
3021
|
}, [e.content]), V(() => {
|
|
3026
3022
|
l();
|
|
3027
|
-
}, [(p = (
|
|
3028
|
-
|
|
3029
|
-
}, [(P = (
|
|
3030
|
-
|
|
3023
|
+
}, [(p = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : p.jsCode]), V(() => {
|
|
3024
|
+
k();
|
|
3025
|
+
}, [(P = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : P.httpRequests]), V(() => {
|
|
3026
|
+
w();
|
|
3031
3027
|
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3032
3028
|
e.data && n(e.data);
|
|
3033
3029
|
}, [e.data]), V(() => {
|
|
@@ -3035,28 +3031,28 @@ function kn(e) {
|
|
|
3035
3031
|
locale: e.locale
|
|
3036
3032
|
});
|
|
3037
3033
|
}, [e.locale]), V(() => () => {
|
|
3038
|
-
|
|
3034
|
+
U() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3039
3035
|
"builder:component:stateChangeListenerActivated",
|
|
3040
|
-
|
|
3036
|
+
w
|
|
3041
3037
|
));
|
|
3042
3038
|
}, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3043
3039
|
o,
|
|
3044
3040
|
{
|
|
3045
3041
|
ref: t,
|
|
3046
|
-
onClick: (u) =>
|
|
3047
|
-
"builder-content-id": (
|
|
3042
|
+
onClick: (u) => x(u),
|
|
3043
|
+
"builder-content-id": (R = e.builderContextSignal.content) == null ? void 0 : R.id,
|
|
3048
3044
|
"builder-model": e.model,
|
|
3049
3045
|
...e.showContent ? {} : {
|
|
3050
3046
|
hidden: !0,
|
|
3051
3047
|
"aria-hidden": !0
|
|
3052
3048
|
},
|
|
3053
3049
|
...e.contentWrapperProps,
|
|
3054
|
-
className: `variant-${((
|
|
3050
|
+
className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
|
|
3055
3051
|
children: e.children
|
|
3056
3052
|
}
|
|
3057
3053
|
) : null });
|
|
3058
3054
|
}
|
|
3059
|
-
const
|
|
3055
|
+
const kn = (e) => {
|
|
3060
3056
|
var a, r;
|
|
3061
3057
|
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;
|
|
3062
3058
|
let o = "";
|
|
@@ -3082,15 +3078,15 @@ font-weight: ${l};
|
|
|
3082
3078
|
`.trim());
|
|
3083
3079
|
}
|
|
3084
3080
|
return o;
|
|
3085
|
-
},
|
|
3081
|
+
}, Cn = ({
|
|
3086
3082
|
customFonts: e
|
|
3087
3083
|
}) => {
|
|
3088
3084
|
var t;
|
|
3089
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3090
|
-
},
|
|
3085
|
+
return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3086
|
+
}, wn = ({
|
|
3091
3087
|
cssCode: e,
|
|
3092
3088
|
contentId: t
|
|
3093
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3089
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
|
|
3094
3090
|
.builder-button {
|
|
3095
3091
|
all: unset;
|
|
3096
3092
|
}
|
|
@@ -3107,23 +3103,23 @@ font-weight: ${l};
|
|
|
3107
3103
|
text-align: inherit;
|
|
3108
3104
|
font-family: inherit;
|
|
3109
3105
|
}
|
|
3110
|
-
`,
|
|
3111
|
-
function
|
|
3112
|
-
const [t, n] =
|
|
3106
|
+
`, Tn = (e) => e ? "" : In;
|
|
3107
|
+
function En(e) {
|
|
3108
|
+
const [t, n] = I(
|
|
3113
3109
|
() => `
|
|
3114
|
-
${
|
|
3110
|
+
${wn({
|
|
3115
3111
|
cssCode: e.cssCode,
|
|
3116
3112
|
contentId: e.contentId
|
|
3117
3113
|
})}
|
|
3118
|
-
${
|
|
3114
|
+
${Cn({
|
|
3119
3115
|
customFonts: e.customFonts
|
|
3120
3116
|
})}
|
|
3121
|
-
${
|
|
3117
|
+
${Tn(e.isNestedRender)}
|
|
3122
3118
|
`.trim()
|
|
3123
3119
|
);
|
|
3124
|
-
return /* @__PURE__ */ s(
|
|
3120
|
+
return /* @__PURE__ */ s(ee, { id: "builderio-content", styles: t });
|
|
3125
3121
|
}
|
|
3126
|
-
const
|
|
3122
|
+
const Rn = ({
|
|
3127
3123
|
content: e,
|
|
3128
3124
|
data: t,
|
|
3129
3125
|
locale: n
|
|
@@ -3140,7 +3136,7 @@ const Pn = ({
|
|
|
3140
3136
|
locale: n
|
|
3141
3137
|
} : {}
|
|
3142
3138
|
};
|
|
3143
|
-
},
|
|
3139
|
+
}, Pn = ({
|
|
3144
3140
|
content: e,
|
|
3145
3141
|
data: t
|
|
3146
3142
|
}) => e ? {
|
|
@@ -3151,46 +3147,46 @@ const Pn = ({
|
|
|
3151
3147
|
},
|
|
3152
3148
|
meta: e == null ? void 0 : e.meta
|
|
3153
3149
|
} : void 0;
|
|
3154
|
-
function
|
|
3155
|
-
var d, c, m, f, g, y,
|
|
3156
|
-
const [t, n] =
|
|
3150
|
+
function xe(e) {
|
|
3151
|
+
var d, c, m, f, g, y, x;
|
|
3152
|
+
const [t, n] = I(
|
|
3157
3153
|
() => {
|
|
3158
|
-
var
|
|
3159
|
-
return
|
|
3154
|
+
var k, w;
|
|
3155
|
+
return yn({
|
|
3160
3156
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3161
|
-
variationId: (
|
|
3157
|
+
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
3162
3158
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3163
|
-
contentId: (
|
|
3159
|
+
contentId: (w = e.content) == null ? void 0 : w.id
|
|
3164
3160
|
});
|
|
3165
3161
|
}
|
|
3166
3162
|
);
|
|
3167
|
-
function i(
|
|
3168
|
-
l((
|
|
3169
|
-
...
|
|
3170
|
-
rootState:
|
|
3163
|
+
function i(k) {
|
|
3164
|
+
l((w) => ({
|
|
3165
|
+
...w,
|
|
3166
|
+
rootState: k
|
|
3171
3167
|
}));
|
|
3172
3168
|
}
|
|
3173
|
-
const [o, a] =
|
|
3169
|
+
const [o, a] = I(
|
|
3174
3170
|
() => [
|
|
3175
|
-
...
|
|
3171
|
+
...be(),
|
|
3176
3172
|
...e.customComponents || []
|
|
3177
3173
|
].reduce(
|
|
3178
|
-
(
|
|
3179
|
-
...
|
|
3180
|
-
[
|
|
3181
|
-
component:
|
|
3182
|
-
...
|
|
3174
|
+
(k, { component: w, ...E }) => ({
|
|
3175
|
+
...k,
|
|
3176
|
+
[E.name]: {
|
|
3177
|
+
component: w,
|
|
3178
|
+
...de(E)
|
|
3183
3179
|
}
|
|
3184
3180
|
}),
|
|
3185
3181
|
{}
|
|
3186
3182
|
)
|
|
3187
|
-
), [r, l] =
|
|
3188
|
-
content:
|
|
3183
|
+
), [r, l] = I(() => ({
|
|
3184
|
+
content: Pn({
|
|
3189
3185
|
content: e.content,
|
|
3190
3186
|
data: e.data
|
|
3191
3187
|
}),
|
|
3192
3188
|
localState: void 0,
|
|
3193
|
-
rootState:
|
|
3189
|
+
rootState: Rn({
|
|
3194
3190
|
content: e.content,
|
|
3195
3191
|
data: e.data,
|
|
3196
3192
|
locale: e.locale
|
|
@@ -3200,12 +3196,12 @@ function ve(e) {
|
|
|
3200
3196
|
apiKey: e.apiKey,
|
|
3201
3197
|
apiVersion: e.apiVersion,
|
|
3202
3198
|
componentInfos: [
|
|
3203
|
-
...
|
|
3199
|
+
...be(),
|
|
3204
3200
|
...e.customComponents || []
|
|
3205
3201
|
].reduce(
|
|
3206
|
-
(
|
|
3207
|
-
...
|
|
3208
|
-
[
|
|
3202
|
+
(k, { component: w, ...E }) => ({
|
|
3203
|
+
...k,
|
|
3204
|
+
[E.name]: de(E)
|
|
3209
3205
|
}),
|
|
3210
3206
|
{}
|
|
3211
3207
|
),
|
|
@@ -3214,13 +3210,13 @@ function ve(e) {
|
|
|
3214
3210
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3215
3211
|
}));
|
|
3216
3212
|
return /* @__PURE__ */ s(
|
|
3217
|
-
|
|
3213
|
+
Ce.Provider,
|
|
3218
3214
|
{
|
|
3219
3215
|
value: {
|
|
3220
3216
|
registeredComponents: o
|
|
3221
3217
|
},
|
|
3222
3218
|
children: /* @__PURE__ */ B(
|
|
3223
|
-
|
|
3219
|
+
vn,
|
|
3224
3220
|
{
|
|
3225
3221
|
content: e.content,
|
|
3226
3222
|
data: e.data,
|
|
@@ -3246,7 +3242,7 @@ function ve(e) {
|
|
|
3246
3242
|
}
|
|
3247
3243
|
) : null,
|
|
3248
3244
|
/* @__PURE__ */ s(
|
|
3249
|
-
|
|
3245
|
+
En,
|
|
3250
3246
|
{
|
|
3251
3247
|
isNestedRender: e.isNestedRender,
|
|
3252
3248
|
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
@@ -3255,9 +3251,9 @@ function ve(e) {
|
|
|
3255
3251
|
}
|
|
3256
3252
|
),
|
|
3257
3253
|
/* @__PURE__ */ s(
|
|
3258
|
-
|
|
3254
|
+
O,
|
|
3259
3255
|
{
|
|
3260
|
-
blocks: (
|
|
3256
|
+
blocks: (x = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : x.blocks,
|
|
3261
3257
|
context: r,
|
|
3262
3258
|
registeredComponents: o,
|
|
3263
3259
|
linkComponent: e.linkComponent
|
|
@@ -3269,18 +3265,18 @@ function ve(e) {
|
|
|
3269
3265
|
}
|
|
3270
3266
|
);
|
|
3271
3267
|
}
|
|
3272
|
-
function
|
|
3268
|
+
function Vn(e) {
|
|
3273
3269
|
var r;
|
|
3274
|
-
const [t, n] =
|
|
3275
|
-
() =>
|
|
3276
|
-
canTrack:
|
|
3270
|
+
const [t, n] = I(
|
|
3271
|
+
() => fn({
|
|
3272
|
+
canTrack: Q(e.canTrack),
|
|
3277
3273
|
content: e.content
|
|
3278
3274
|
})
|
|
3279
3275
|
);
|
|
3280
3276
|
function i() {
|
|
3281
3277
|
var l;
|
|
3282
|
-
return
|
|
3283
|
-
|
|
3278
|
+
return bn(
|
|
3279
|
+
Y(e.content).map((d) => ({
|
|
3284
3280
|
id: d.testVariationId,
|
|
3285
3281
|
testRatio: d.testRatio
|
|
3286
3282
|
})),
|
|
@@ -3288,7 +3284,7 @@ function Bn(e) {
|
|
|
3288
3284
|
);
|
|
3289
3285
|
}
|
|
3290
3286
|
function o() {
|
|
3291
|
-
return
|
|
3287
|
+
return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3292
3288
|
}
|
|
3293
3289
|
function a() {
|
|
3294
3290
|
var l;
|
|
@@ -3297,7 +3293,7 @@ function Bn(e) {
|
|
|
3297
3293
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3298
3294
|
} : _e({
|
|
3299
3295
|
item: e.content,
|
|
3300
|
-
canTrack:
|
|
3296
|
+
canTrack: Q(e.canTrack)
|
|
3301
3297
|
});
|
|
3302
3298
|
}
|
|
3303
3299
|
return V(() => {
|
|
@@ -3306,12 +3302,12 @@ function Bn(e) {
|
|
|
3306
3302
|
ie,
|
|
3307
3303
|
{
|
|
3308
3304
|
id: "builderio-init-variants-fns",
|
|
3309
|
-
scriptStr:
|
|
3305
|
+
scriptStr: gn()
|
|
3310
3306
|
}
|
|
3311
3307
|
) : null,
|
|
3312
3308
|
t ? /* @__PURE__ */ B(T, { children: [
|
|
3313
3309
|
/* @__PURE__ */ s(
|
|
3314
|
-
|
|
3310
|
+
ee,
|
|
3315
3311
|
{
|
|
3316
3312
|
id: "builderio-variants",
|
|
3317
3313
|
styles: o()
|
|
@@ -3324,8 +3320,8 @@ function Bn(e) {
|
|
|
3324
3320
|
scriptStr: i()
|
|
3325
3321
|
}
|
|
3326
3322
|
),
|
|
3327
|
-
(r =
|
|
3328
|
-
|
|
3323
|
+
(r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
3324
|
+
xe,
|
|
3329
3325
|
{
|
|
3330
3326
|
isNestedRender: e.isNestedRender,
|
|
3331
3327
|
content: l,
|
|
@@ -3351,7 +3347,7 @@ function Bn(e) {
|
|
|
3351
3347
|
))
|
|
3352
3348
|
] }) : null,
|
|
3353
3349
|
/* @__PURE__ */ s(
|
|
3354
|
-
|
|
3350
|
+
xe,
|
|
3355
3351
|
{
|
|
3356
3352
|
isNestedRender: e.isNestedRender,
|
|
3357
3353
|
content: a(),
|
|
@@ -3376,13 +3372,13 @@ function Bn(e) {
|
|
|
3376
3372
|
)
|
|
3377
3373
|
] });
|
|
3378
3374
|
}
|
|
3379
|
-
const
|
|
3375
|
+
const Bn = async ({
|
|
3380
3376
|
builderContextValue: e,
|
|
3381
3377
|
symbol: t
|
|
3382
3378
|
}) => {
|
|
3383
3379
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3384
3380
|
(e != null && e.apiKey))
|
|
3385
|
-
return
|
|
3381
|
+
return Se({
|
|
3386
3382
|
model: t.model,
|
|
3387
3383
|
apiKey: e.apiKey,
|
|
3388
3384
|
apiVersion: e.apiVersion,
|
|
@@ -3406,12 +3402,12 @@ function Wn(e) {
|
|
|
3406
3402
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3407
3403
|
].filter(Boolean).join(" ");
|
|
3408
3404
|
}
|
|
3409
|
-
const [n, i] =
|
|
3405
|
+
const [n, i] = I(() => {
|
|
3410
3406
|
var c;
|
|
3411
3407
|
return (c = e.symbol) == null ? void 0 : c.content;
|
|
3412
3408
|
});
|
|
3413
3409
|
function o() {
|
|
3414
|
-
n ||
|
|
3410
|
+
n || Bn({
|
|
3415
3411
|
symbol: e.symbol,
|
|
3416
3412
|
builderContextValue: e.builderContext
|
|
3417
3413
|
}).then((c) => {
|
|
@@ -3422,7 +3418,7 @@ function Wn(e) {
|
|
|
3422
3418
|
}, []), V(() => {
|
|
3423
3419
|
o();
|
|
3424
3420
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
|
|
3425
|
-
|
|
3421
|
+
Vn,
|
|
3426
3422
|
{
|
|
3427
3423
|
isNestedRender: !0,
|
|
3428
3424
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3446,15 +3442,15 @@ function Wn(e) {
|
|
|
3446
3442
|
) });
|
|
3447
3443
|
}
|
|
3448
3444
|
export {
|
|
3449
|
-
|
|
3445
|
+
O as Blocks,
|
|
3450
3446
|
re as BuilderContext,
|
|
3451
3447
|
Ge as Button,
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3448
|
+
Tt as Columns,
|
|
3449
|
+
Vn as Content,
|
|
3450
|
+
Et as Fragment,
|
|
3451
|
+
Vt as Image,
|
|
3452
|
+
Bt as Section,
|
|
3457
3453
|
Wn as Symbol,
|
|
3458
|
-
|
|
3459
|
-
|
|
3454
|
+
Ut as Text,
|
|
3455
|
+
cn as Video
|
|
3460
3456
|
};
|