@builder.io/sdk-react 0.12.7 → 0.13.0
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/index.cjs +27 -27
- package/lib/browser/index.mjs +471 -566
- package/lib/browser/server-entry-a7214151.js +690 -0
- package/lib/browser/server-entry-f1003541.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +4 -3
- package/lib/edge/index.cjs +31 -31
- package/lib/edge/index.mjs +818 -913
- package/lib/edge/server-entry-12a6f428.js +690 -0
- package/lib/edge/server-entry-f1003541.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +4 -3
- package/lib/node/index.cjs +10 -10
- package/lib/node/index.mjs +227 -322
- package/lib/node/server-entry-3743f8cd.cjs +2 -0
- package/lib/node/server-entry-3f9209d6.js +690 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +4 -3
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-content/types.d.ts +2 -2
- package/types/helpers/subscribe-to-editor.d.ts +35 -0
- package/types/server-index.d.ts +18 -3
- package/types/types/api-version.d.ts +1 -1
- package/lib/browser/server-entry-b9bdd327.js +0 -551
- package/lib/browser/server-entry-fc715776.cjs +0 -2
- package/lib/edge/server-entry-57d4ae22.js +0 -551
- package/lib/edge/server-entry-fc715776.cjs +0 -2
- package/lib/node/server-entry-0457c4c8.js +0 -551
- package/lib/node/server-entry-bcb725be.cjs +0 -2
package/lib/browser/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { T as
|
|
5
|
-
import { _ as
|
|
2
|
+
import { jsx as l, Fragment as h, jsxs as W } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as Ie, useState as v, useEffect as T, useContext as fe, useRef as te, createElement as je } from "react";
|
|
4
|
+
import { T as _, i as $, k as V, l as _e, m as M, n as D, o as ne, p as K, q as he, a as He, u as Ue, v as Me, w as Ke, c as ze, e as Te, x as qe, y as ge, z as be, A as Ye } from "./server-entry-a7214151.js";
|
|
5
|
+
import { _ as En, f as Pn, d as An, h as Bn, g as Wn, j as $n, r as Nn, s as Vn, b as Fn, t as Ln } from "./server-entry-a7214151.js";
|
|
6
6
|
const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
|
|
7
7
|
function ie(e) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ l(h, { children: Ge(e.TagName) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
switch (
|
|
10
|
+
const O = () => {
|
|
11
|
+
switch (_) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
14
14
|
case "rsc":
|
|
@@ -21,13 +21,13 @@ const _ = () => {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
function Je(e) {
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
25
|
ie,
|
|
26
26
|
{
|
|
27
27
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
28
28
|
attributes: {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[O()]: `${e.link ? "" : "builder-button"} ${e.attributes[O()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -41,7 +41,7 @@ function Je(e) {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
const oe =
|
|
44
|
+
const oe = Ie({
|
|
45
45
|
content: null,
|
|
46
46
|
context: {},
|
|
47
47
|
localState: void 0,
|
|
@@ -54,7 +54,7 @@ const oe = Te({
|
|
|
54
54
|
inheritedStyles: {},
|
|
55
55
|
BlocksWrapper: "div",
|
|
56
56
|
BlocksWrapperProps: {}
|
|
57
|
-
}),
|
|
57
|
+
}), Re = Ie({ registeredComponents: {} });
|
|
58
58
|
function Xe(e) {
|
|
59
59
|
var t;
|
|
60
60
|
return {
|
|
@@ -79,10 +79,10 @@ const Ze = ({
|
|
|
79
79
|
context: t,
|
|
80
80
|
event: n
|
|
81
81
|
}), et = () => ({
|
|
82
|
-
isEditing:
|
|
82
|
+
isEditing: $(),
|
|
83
83
|
isBrowser: V(),
|
|
84
84
|
isServer: !V(),
|
|
85
|
-
getUserAttributes: () =>
|
|
85
|
+
getUserAttributes: () => _e()
|
|
86
86
|
}), tt = (e, {
|
|
87
87
|
isExpression: t = !0
|
|
88
88
|
}) => /* 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, ye = ({
|
|
@@ -94,19 +94,19 @@ const Ze = ({
|
|
|
94
94
|
rootSetState: a,
|
|
95
95
|
rootState: r
|
|
96
96
|
}) => {
|
|
97
|
-
const
|
|
97
|
+
const c = Ze({
|
|
98
98
|
builder: t,
|
|
99
99
|
context: n,
|
|
100
100
|
event: i,
|
|
101
|
-
state:
|
|
101
|
+
state: Ee({
|
|
102
102
|
rootState: r,
|
|
103
103
|
localState: o,
|
|
104
104
|
rootSetState: a
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
|
-
return new Function(...
|
|
107
|
+
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
108
108
|
};
|
|
109
|
-
function
|
|
109
|
+
function Ee({
|
|
110
110
|
rootState: e,
|
|
111
111
|
localState: t,
|
|
112
112
|
rootSetState: n
|
|
@@ -116,7 +116,7 @@ function Pe({
|
|
|
116
116
|
if (t && o in t)
|
|
117
117
|
return t[o];
|
|
118
118
|
const a = i[o];
|
|
119
|
-
return typeof a == "object" ?
|
|
119
|
+
return typeof a == "object" ? Ee({
|
|
120
120
|
rootState: a,
|
|
121
121
|
localState: void 0,
|
|
122
122
|
rootSetState: n ? (r) => {
|
|
@@ -140,7 +140,7 @@ const it = () => {
|
|
|
140
140
|
if (!nt())
|
|
141
141
|
return !1;
|
|
142
142
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
143
|
-
return e && t && !n ? (
|
|
143
|
+
return e && t && !n ? (D.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;
|
|
144
144
|
}, ot = (e) => (V() || it(), ye(e));
|
|
145
145
|
function j({
|
|
146
146
|
code: e,
|
|
@@ -152,10 +152,10 @@ function j({
|
|
|
152
152
|
isExpression: r = !0
|
|
153
153
|
}) {
|
|
154
154
|
if (e === "") {
|
|
155
|
-
|
|
155
|
+
D.warn("Skipping evaluation of empty code block.");
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const c = {
|
|
159
159
|
code: tt(e, {
|
|
160
160
|
isExpression: r
|
|
161
161
|
}),
|
|
@@ -167,9 +167,9 @@ function j({
|
|
|
167
167
|
localState: n
|
|
168
168
|
};
|
|
169
169
|
try {
|
|
170
|
-
return ot(
|
|
170
|
+
return ot(c);
|
|
171
171
|
} catch (s) {
|
|
172
|
-
|
|
172
|
+
D.error("Failed code evaluation: " + s.message, {
|
|
173
173
|
code: e
|
|
174
174
|
});
|
|
175
175
|
return;
|
|
@@ -199,15 +199,15 @@ const rt = ({
|
|
|
199
199
|
...a.actions
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
|
-
for (const
|
|
203
|
-
const s = e.bindings[
|
|
202
|
+
for (const c in e.bindings) {
|
|
203
|
+
const s = e.bindings[c], d = j({
|
|
204
204
|
code: s,
|
|
205
205
|
localState: n,
|
|
206
206
|
rootState: i,
|
|
207
207
|
rootSetState: o,
|
|
208
208
|
context: t
|
|
209
209
|
});
|
|
210
|
-
at(r,
|
|
210
|
+
at(r, c, d);
|
|
211
211
|
}
|
|
212
212
|
return r;
|
|
213
213
|
};
|
|
@@ -229,18 +229,18 @@ function z({
|
|
|
229
229
|
}) : r;
|
|
230
230
|
}
|
|
231
231
|
function lt(e, t, n = {}) {
|
|
232
|
-
let i, o, a, r = null,
|
|
232
|
+
let i, o, a, r = null, c = 0;
|
|
233
233
|
const s = function() {
|
|
234
|
-
|
|
234
|
+
c = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
235
235
|
};
|
|
236
236
|
return function() {
|
|
237
237
|
const d = Date.now();
|
|
238
|
-
!
|
|
239
|
-
const u = t - (d -
|
|
240
|
-
return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null),
|
|
238
|
+
!c && n.leading === !1 && (c = d);
|
|
239
|
+
const u = t - (d - c);
|
|
240
|
+
return i = this, o = arguments, u <= 0 || u > t ? (r && (clearTimeout(r), r = null), c = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(s, u)), a;
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function N(e, ...t) {
|
|
244
244
|
const n = Object(e);
|
|
245
245
|
for (let i = 1; i < arguments.length; i++) {
|
|
246
246
|
const o = arguments[i];
|
|
@@ -255,7 +255,7 @@ function ct(e) {
|
|
|
255
255
|
for (const t of e)
|
|
256
256
|
switch (t.trigger) {
|
|
257
257
|
case "pageLoad":
|
|
258
|
-
|
|
258
|
+
Pe(t);
|
|
259
259
|
break;
|
|
260
260
|
case "hover":
|
|
261
261
|
dt(t);
|
|
@@ -270,9 +270,9 @@ function re(e) {
|
|
|
270
270
|
}
|
|
271
271
|
function le(e, t) {
|
|
272
272
|
const n = st(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
273
|
-
for (const
|
|
273
|
+
for (const c of r)
|
|
274
274
|
for (const s of n)
|
|
275
|
-
s in
|
|
275
|
+
s in c || (c[s] = i[s]);
|
|
276
276
|
}
|
|
277
277
|
function st(e) {
|
|
278
278
|
const t = [];
|
|
@@ -281,15 +281,15 @@ function st(e) {
|
|
|
281
281
|
t.indexOf(i) === -1 && t.push(i);
|
|
282
282
|
return t;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Pe(e) {
|
|
285
285
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
286
286
|
if (!t.length) {
|
|
287
287
|
re(e.elementId || e.id || "");
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
Array.from(t).forEach((n) => {
|
|
291
|
-
le(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
292
|
-
n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
291
|
+
le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", N(n.style, e.steps[0].styles), setTimeout(() => {
|
|
292
|
+
n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), N(n.style, e.steps[1].styles), setTimeout(() => {
|
|
293
293
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
294
294
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
295
295
|
});
|
|
@@ -305,10 +305,10 @@ function dt(e) {
|
|
|
305
305
|
le(e, n);
|
|
306
306
|
const i = e.steps[0].styles, o = e.steps[1].styles;
|
|
307
307
|
function a() {
|
|
308
|
-
|
|
308
|
+
N(n.style, i);
|
|
309
309
|
}
|
|
310
310
|
function r() {
|
|
311
|
-
|
|
311
|
+
N(n.style, o);
|
|
312
312
|
}
|
|
313
313
|
a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
|
|
314
314
|
n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -325,22 +325,22 @@ function ut(e) {
|
|
|
325
325
|
le(e, n);
|
|
326
326
|
let i = !1, o = !1;
|
|
327
327
|
function a() {
|
|
328
|
-
!i &&
|
|
329
|
-
|
|
328
|
+
!i && c(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
329
|
+
N(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
330
330
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
331
331
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
332
|
-
})) : e.repeat && i && !o && !
|
|
332
|
+
})) : e.repeat && i && !o && !c(n) && (i = !1, N(n.style, e.steps[0].styles));
|
|
333
333
|
}
|
|
334
334
|
const r = lt(a, 200, {
|
|
335
335
|
leading: !1
|
|
336
336
|
});
|
|
337
|
-
function
|
|
338
|
-
const
|
|
339
|
-
return
|
|
337
|
+
function c(u) {
|
|
338
|
+
const b = u.getBoundingClientRect(), k = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * k;
|
|
339
|
+
return b.bottom > y && b.top < k - y;
|
|
340
340
|
}
|
|
341
341
|
const s = e.steps[0].styles;
|
|
342
342
|
function d() {
|
|
343
|
-
|
|
343
|
+
N(n.style, s);
|
|
344
344
|
}
|
|
345
345
|
d(), setTimeout(() => {
|
|
346
346
|
n.style.transition = `all ${e.duration}s ${ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -405,7 +405,7 @@ const mt = ({
|
|
|
405
405
|
},
|
|
406
406
|
block: i
|
|
407
407
|
}));
|
|
408
|
-
},
|
|
408
|
+
}, Ae = {
|
|
409
409
|
small: {
|
|
410
410
|
min: 320,
|
|
411
411
|
default: 321,
|
|
@@ -421,11 +421,11 @@ const mt = ({
|
|
|
421
421
|
default: 991,
|
|
422
422
|
max: 1200
|
|
423
423
|
}
|
|
424
|
-
}, Se = (e, t =
|
|
424
|
+
}, Se = (e, t = Ae) => `@media (max-width: ${t[e].max}px)`, Be = ({
|
|
425
425
|
small: e,
|
|
426
426
|
medium: t
|
|
427
427
|
}) => {
|
|
428
|
-
const n = ne(
|
|
428
|
+
const n = ne(Ae);
|
|
429
429
|
if (!e || !t)
|
|
430
430
|
return n;
|
|
431
431
|
const i = Math.floor(e / 2);
|
|
@@ -447,10 +447,10 @@ const mt = ({
|
|
|
447
447
|
min: a,
|
|
448
448
|
default: a + 1
|
|
449
449
|
}, n;
|
|
450
|
-
}, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(),
|
|
450
|
+
}, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), We = (e) => Object.entries(e).map(([n, i]) => {
|
|
451
451
|
if (typeof i == "string")
|
|
452
452
|
return `${ht(n)}: ${i};`;
|
|
453
|
-
}).filter(M), gt = (e) =>
|
|
453
|
+
}).filter(M), gt = (e) => We(e).join(`
|
|
454
454
|
`), X = ({
|
|
455
455
|
mediaQuery: e,
|
|
456
456
|
className: t,
|
|
@@ -464,7 +464,7 @@ const mt = ({
|
|
|
464
464
|
}` : i;
|
|
465
465
|
};
|
|
466
466
|
function q(e) {
|
|
467
|
-
return /* @__PURE__ */
|
|
467
|
+
return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
468
468
|
}
|
|
469
469
|
function bt(e) {
|
|
470
470
|
function t() {
|
|
@@ -487,22 +487,22 @@ function bt(e) {
|
|
|
487
487
|
rootSetState: e.context.rootSetState,
|
|
488
488
|
context: e.context.context,
|
|
489
489
|
shouldEvaluateBindings: !0
|
|
490
|
-
}), o = i.responsiveStyles, a = e.context.content, r =
|
|
490
|
+
}), o = i.responsiveStyles, a = e.context.content, r = Be(
|
|
491
491
|
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
492
|
-
),
|
|
492
|
+
), c = o == null ? void 0 : o.large, s = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, u = i.id;
|
|
493
493
|
if (!u)
|
|
494
494
|
return "";
|
|
495
|
-
const
|
|
495
|
+
const b = c ? X({
|
|
496
496
|
className: u,
|
|
497
|
-
styles:
|
|
498
|
-
}) : "",
|
|
497
|
+
styles: c
|
|
498
|
+
}) : "", k = s ? X({
|
|
499
499
|
className: u,
|
|
500
500
|
styles: s,
|
|
501
501
|
mediaQuery: Se(
|
|
502
502
|
"medium",
|
|
503
503
|
r
|
|
504
504
|
)
|
|
505
|
-
}) : "",
|
|
505
|
+
}) : "", S = d ? X({
|
|
506
506
|
className: u,
|
|
507
507
|
styles: d,
|
|
508
508
|
mediaQuery: Se(
|
|
@@ -510,9 +510,9 @@ function bt(e) {
|
|
|
510
510
|
r
|
|
511
511
|
)
|
|
512
512
|
}) : "";
|
|
513
|
-
return [
|
|
513
|
+
return [b, k, S].join(" ");
|
|
514
514
|
}
|
|
515
|
-
return /* @__PURE__ */
|
|
515
|
+
return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(q, { styles: n() }) }) : null });
|
|
516
516
|
}
|
|
517
517
|
function yt(e) {
|
|
518
518
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -535,7 +535,7 @@ function $e(e) {
|
|
|
535
535
|
const a = n[o];
|
|
536
536
|
let r = St(o);
|
|
537
537
|
if (e.stripPrefix)
|
|
538
|
-
switch (
|
|
538
|
+
switch (_) {
|
|
539
539
|
case "vue":
|
|
540
540
|
r = r.replace("v-on:", "");
|
|
541
541
|
break;
|
|
@@ -547,25 +547,25 @@ function $e(e) {
|
|
|
547
547
|
}
|
|
548
548
|
return t;
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function vt({
|
|
551
551
|
style: e
|
|
552
552
|
}) {
|
|
553
553
|
return e;
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const pt = ({
|
|
556
556
|
block: e,
|
|
557
557
|
context: t
|
|
558
|
-
}) =>
|
|
558
|
+
}) => Ne(vt({
|
|
559
559
|
style: e.style || {},
|
|
560
560
|
context: t,
|
|
561
561
|
block: e
|
|
562
562
|
}));
|
|
563
|
-
function
|
|
564
|
-
switch (
|
|
563
|
+
function Ne(e) {
|
|
564
|
+
switch (_) {
|
|
565
565
|
case "svelte":
|
|
566
566
|
case "vue":
|
|
567
567
|
case "solid":
|
|
568
|
-
return
|
|
568
|
+
return We(e).join(" ");
|
|
569
569
|
case "qwik":
|
|
570
570
|
case "reactNative":
|
|
571
571
|
case "react":
|
|
@@ -590,11 +590,11 @@ function ce({
|
|
|
590
590
|
...Ct(e),
|
|
591
591
|
...e.properties,
|
|
592
592
|
"builder-id": e.id,
|
|
593
|
-
style:
|
|
593
|
+
style: pt({
|
|
594
594
|
block: e,
|
|
595
595
|
context: t
|
|
596
596
|
}),
|
|
597
|
-
[
|
|
597
|
+
[O()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
598
598
|
};
|
|
599
599
|
return kt({
|
|
600
600
|
properties: n,
|
|
@@ -603,7 +603,7 @@ function ce({
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
function wt(e) {
|
|
606
|
-
return /* @__PURE__ */
|
|
606
|
+
return /* @__PURE__ */ l(
|
|
607
607
|
ie,
|
|
608
608
|
{
|
|
609
609
|
TagName: e.Wrapper,
|
|
@@ -624,7 +624,7 @@ function wt(e) {
|
|
|
624
624
|
);
|
|
625
625
|
}
|
|
626
626
|
function It(e) {
|
|
627
|
-
return /* @__PURE__ */
|
|
627
|
+
return /* @__PURE__ */ l(
|
|
628
628
|
e.Wrapper,
|
|
629
629
|
{
|
|
630
630
|
...e.wrapperProps,
|
|
@@ -654,7 +654,7 @@ const Tt = ({
|
|
|
654
654
|
isInteractive: a,
|
|
655
655
|
contextValue: r
|
|
656
656
|
}) => {
|
|
657
|
-
const
|
|
657
|
+
const c = {
|
|
658
658
|
...e,
|
|
659
659
|
/**
|
|
660
660
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -673,14 +673,14 @@ const Tt = ({
|
|
|
673
673
|
context: n,
|
|
674
674
|
wrapperProps: e,
|
|
675
675
|
includeBlockProps: o
|
|
676
|
-
} :
|
|
676
|
+
} : c;
|
|
677
677
|
};
|
|
678
678
|
function xe(e) {
|
|
679
679
|
var i;
|
|
680
|
-
const [t, n] =
|
|
680
|
+
const [t, n] = v(
|
|
681
681
|
() => e.isInteractive ? It : e.componentRef
|
|
682
682
|
);
|
|
683
|
-
return /* @__PURE__ */
|
|
683
|
+
return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
684
684
|
t,
|
|
685
685
|
{
|
|
686
686
|
...Tt({
|
|
@@ -693,7 +693,7 @@ function xe(e) {
|
|
|
693
693
|
isInteractive: e.isInteractive,
|
|
694
694
|
contextValue: e.context
|
|
695
695
|
}),
|
|
696
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
696
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
697
697
|
Y,
|
|
698
698
|
{
|
|
699
699
|
block: o,
|
|
@@ -707,8 +707,8 @@ function xe(e) {
|
|
|
707
707
|
) }) : null });
|
|
708
708
|
}
|
|
709
709
|
function Rt(e) {
|
|
710
|
-
const [t, n] =
|
|
711
|
-
return /* @__PURE__ */
|
|
710
|
+
const [t, n] = v(() => e.repeatContext);
|
|
711
|
+
return /* @__PURE__ */ l(oe.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
712
712
|
Y,
|
|
713
713
|
{
|
|
714
714
|
block: e.block,
|
|
@@ -719,7 +719,7 @@ function Rt(e) {
|
|
|
719
719
|
) });
|
|
720
720
|
}
|
|
721
721
|
function Y(e) {
|
|
722
|
-
var u,
|
|
722
|
+
var u, b, k;
|
|
723
723
|
function t() {
|
|
724
724
|
return mt({
|
|
725
725
|
block: e.block,
|
|
@@ -734,8 +734,8 @@ function Y(e) {
|
|
|
734
734
|
});
|
|
735
735
|
}
|
|
736
736
|
function i() {
|
|
737
|
-
var
|
|
738
|
-
return (
|
|
737
|
+
var S;
|
|
738
|
+
return (S = e.block.repeat) != null && S.collection ? e.block : z({
|
|
739
739
|
block: e.block,
|
|
740
740
|
localState: e.context.localState,
|
|
741
741
|
rootState: e.context.rootState,
|
|
@@ -749,28 +749,28 @@ function Y(e) {
|
|
|
749
749
|
return e.block.tagName === "a" || ((y = i().properties) == null ? void 0 : y.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
750
750
|
}
|
|
751
751
|
function a() {
|
|
752
|
-
var
|
|
753
|
-
if ((
|
|
754
|
-
return !!((
|
|
755
|
-
const
|
|
756
|
-
return ("show" in i() ? i().show : !0) && !
|
|
752
|
+
var x, R;
|
|
753
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
754
|
+
return !!((R = n == null ? void 0 : n()) != null && R.length);
|
|
755
|
+
const S = "hide" in i() ? i().hide : !1;
|
|
756
|
+
return ("show" in i() ? i().show : !0) && !S;
|
|
757
757
|
}
|
|
758
758
|
function r() {
|
|
759
|
-
var y,
|
|
760
|
-
return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (
|
|
759
|
+
var y, x;
|
|
760
|
+
return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (x = i().children) != null ? x : [] : [];
|
|
761
761
|
}
|
|
762
|
-
function
|
|
763
|
-
var
|
|
762
|
+
function c() {
|
|
763
|
+
var S, y, x, R, P, C, w, E, B;
|
|
764
764
|
return {
|
|
765
|
-
blockChildren: (
|
|
765
|
+
blockChildren: (S = i().children) != null ? S : [],
|
|
766
766
|
componentRef: (y = t == null ? void 0 : t()) == null ? void 0 : y.component,
|
|
767
767
|
componentOptions: {
|
|
768
768
|
...Xe(i()),
|
|
769
769
|
builderContext: e.context,
|
|
770
|
-
...((
|
|
770
|
+
...((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Core:Button" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Columns" ? {
|
|
771
771
|
builderLinkComponent: e.linkComponent
|
|
772
772
|
} : {},
|
|
773
|
-
...((
|
|
773
|
+
...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Symbol" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Columns" ? {
|
|
774
774
|
builderComponents: e.registeredComponents
|
|
775
775
|
} : {}
|
|
776
776
|
},
|
|
@@ -778,44 +778,44 @@ function Y(e) {
|
|
|
778
778
|
linkComponent: e.linkComponent,
|
|
779
779
|
registeredComponents: e.registeredComponents,
|
|
780
780
|
builderBlock: i(),
|
|
781
|
-
includeBlockProps: ((
|
|
781
|
+
includeBlockProps: ((E = t == null ? void 0 : t()) == null ? void 0 : E.noWrap) === !0,
|
|
782
782
|
isInteractive: !((B = t == null ? void 0 : t()) != null && B.isRSC)
|
|
783
783
|
};
|
|
784
784
|
}
|
|
785
|
-
const [s, d] =
|
|
786
|
-
return
|
|
787
|
-
const
|
|
788
|
-
y &&
|
|
789
|
-
y.filter((
|
|
790
|
-
...
|
|
791
|
-
elementId:
|
|
785
|
+
const [s, d] = v(() => e.context);
|
|
786
|
+
return T(() => {
|
|
787
|
+
const S = i().id, y = i().animations;
|
|
788
|
+
y && S && ct(
|
|
789
|
+
y.filter((x) => x.trigger !== "hover").map((x) => ({
|
|
790
|
+
...x,
|
|
791
|
+
elementId: S
|
|
792
792
|
}))
|
|
793
793
|
);
|
|
794
|
-
}, []), /* @__PURE__ */
|
|
795
|
-
/* @__PURE__ */
|
|
796
|
-
(u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */
|
|
794
|
+
}, []), /* @__PURE__ */ l(h, { children: a() ? /* @__PURE__ */ W(h, { children: [
|
|
795
|
+
/* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
|
|
796
|
+
(u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
797
797
|
xe,
|
|
798
798
|
{
|
|
799
|
-
componentRef:
|
|
800
|
-
componentOptions:
|
|
801
|
-
blockChildren:
|
|
802
|
-
context:
|
|
803
|
-
registeredComponents:
|
|
804
|
-
linkComponent:
|
|
805
|
-
builderBlock:
|
|
806
|
-
includeBlockProps:
|
|
807
|
-
isInteractive:
|
|
799
|
+
componentRef: c().componentRef,
|
|
800
|
+
componentOptions: c().componentOptions,
|
|
801
|
+
blockChildren: c().blockChildren,
|
|
802
|
+
context: c().context,
|
|
803
|
+
registeredComponents: c().registeredComponents,
|
|
804
|
+
linkComponent: c().linkComponent,
|
|
805
|
+
builderBlock: c().builderBlock,
|
|
806
|
+
includeBlockProps: c().includeBlockProps,
|
|
807
|
+
isInteractive: c().isInteractive
|
|
808
808
|
}
|
|
809
|
-
) }) : /* @__PURE__ */
|
|
809
|
+
) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((S, y) => /* @__PURE__ */ l(
|
|
810
810
|
Rt,
|
|
811
811
|
{
|
|
812
|
-
repeatContext:
|
|
813
|
-
block:
|
|
812
|
+
repeatContext: S.context,
|
|
813
|
+
block: S.block,
|
|
814
814
|
registeredComponents: e.registeredComponents,
|
|
815
815
|
linkComponent: e.linkComponent
|
|
816
816
|
},
|
|
817
817
|
y
|
|
818
|
-
)) }) : /* @__PURE__ */
|
|
818
|
+
)) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ W(
|
|
819
819
|
wt,
|
|
820
820
|
{
|
|
821
821
|
Wrapper: o(),
|
|
@@ -823,29 +823,29 @@ function Y(e) {
|
|
|
823
823
|
context: e.context,
|
|
824
824
|
linkComponent: e.linkComponent,
|
|
825
825
|
children: [
|
|
826
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ l(
|
|
827
827
|
xe,
|
|
828
828
|
{
|
|
829
|
-
componentRef:
|
|
830
|
-
componentOptions:
|
|
831
|
-
blockChildren:
|
|
832
|
-
context:
|
|
833
|
-
registeredComponents:
|
|
834
|
-
linkComponent:
|
|
835
|
-
builderBlock:
|
|
836
|
-
includeBlockProps:
|
|
837
|
-
isInteractive:
|
|
829
|
+
componentRef: c().componentRef,
|
|
830
|
+
componentOptions: c().componentOptions,
|
|
831
|
+
blockChildren: c().blockChildren,
|
|
832
|
+
context: c().context,
|
|
833
|
+
registeredComponents: c().registeredComponents,
|
|
834
|
+
linkComponent: c().linkComponent,
|
|
835
|
+
builderBlock: c().builderBlock,
|
|
836
|
+
includeBlockProps: c().includeBlockProps,
|
|
837
|
+
isInteractive: c().isInteractive
|
|
838
838
|
}
|
|
839
839
|
),
|
|
840
|
-
(
|
|
840
|
+
(b = r()) == null ? void 0 : b.map((S) => /* @__PURE__ */ l(
|
|
841
841
|
Y,
|
|
842
842
|
{
|
|
843
|
-
block:
|
|
843
|
+
block: S,
|
|
844
844
|
context: s,
|
|
845
845
|
registeredComponents: e.registeredComponents,
|
|
846
846
|
linkComponent: e.linkComponent
|
|
847
847
|
},
|
|
848
|
-
|
|
848
|
+
S.id
|
|
849
849
|
))
|
|
850
850
|
]
|
|
851
851
|
}
|
|
@@ -859,7 +859,7 @@ function Et(e) {
|
|
|
859
859
|
}
|
|
860
860
|
function n() {
|
|
861
861
|
var o, a;
|
|
862
|
-
|
|
862
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
863
863
|
{
|
|
864
864
|
type: "builder.clickEmptyBlocks",
|
|
865
865
|
data: {
|
|
@@ -872,7 +872,7 @@ function Et(e) {
|
|
|
872
872
|
}
|
|
873
873
|
function i() {
|
|
874
874
|
var o, a;
|
|
875
|
-
|
|
875
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
876
876
|
{
|
|
877
877
|
type: "builder.hoverEmptyBlocks",
|
|
878
878
|
data: {
|
|
@@ -883,8 +883,8 @@ function Et(e) {
|
|
|
883
883
|
"*"
|
|
884
884
|
));
|
|
885
885
|
}
|
|
886
|
-
return /* @__PURE__ */ W(
|
|
887
|
-
/* @__PURE__ */
|
|
886
|
+
return /* @__PURE__ */ W(h, { children: [
|
|
887
|
+
/* @__PURE__ */ l(
|
|
888
888
|
e.BlocksWrapper,
|
|
889
889
|
{
|
|
890
890
|
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
@@ -898,7 +898,7 @@ function Et(e) {
|
|
|
898
898
|
children: e.children
|
|
899
899
|
}
|
|
900
900
|
),
|
|
901
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
902
902
|
display: flex;
|
|
903
903
|
flex-direction: column;
|
|
904
904
|
align-items: stretch;
|
|
@@ -907,8 +907,8 @@ function Et(e) {
|
|
|
907
907
|
}
|
|
908
908
|
function Q(e) {
|
|
909
909
|
var i, o, a;
|
|
910
|
-
const t = fe(oe), n = fe(
|
|
911
|
-
return /* @__PURE__ */
|
|
910
|
+
const t = fe(oe), n = fe(Re);
|
|
911
|
+
return /* @__PURE__ */ l(
|
|
912
912
|
Et,
|
|
913
913
|
{
|
|
914
914
|
blocks: e.blocks,
|
|
@@ -917,7 +917,7 @@ function Q(e) {
|
|
|
917
917
|
styleProp: e.styleProp,
|
|
918
918
|
BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
|
|
919
919
|
BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
|
|
920
|
-
children: e.blocks ? /* @__PURE__ */
|
|
920
|
+
children: e.blocks ? /* @__PURE__ */ l(h, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
921
921
|
Y,
|
|
922
922
|
{
|
|
923
923
|
block: r,
|
|
@@ -931,81 +931,81 @@ function Q(e) {
|
|
|
931
931
|
);
|
|
932
932
|
}
|
|
933
933
|
function Pt(e) {
|
|
934
|
-
var
|
|
935
|
-
const [t, n] =
|
|
934
|
+
var P;
|
|
935
|
+
const [t, n] = v(
|
|
936
936
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
937
|
-
), [i, o] =
|
|
937
|
+
), [i, o] = v(() => e.columns || []), [a, r] = v(
|
|
938
938
|
() => e.stackColumnsAt || "tablet"
|
|
939
939
|
);
|
|
940
|
-
function
|
|
941
|
-
var
|
|
942
|
-
return ((
|
|
940
|
+
function c(C) {
|
|
941
|
+
var w;
|
|
942
|
+
return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
|
|
943
943
|
}
|
|
944
|
-
function s(
|
|
945
|
-
const
|
|
946
|
-
return `calc(${
|
|
944
|
+
function s(C) {
|
|
945
|
+
const w = t * (i.length - 1) / i.length;
|
|
946
|
+
return `calc(${c(C)}% - ${w}px)`;
|
|
947
947
|
}
|
|
948
948
|
function d({
|
|
949
|
-
stackedStyle:
|
|
950
|
-
desktopStyle:
|
|
949
|
+
stackedStyle: C,
|
|
950
|
+
desktopStyle: w
|
|
951
951
|
}) {
|
|
952
|
-
return a === "tablet" ?
|
|
952
|
+
return a === "tablet" ? C : w;
|
|
953
953
|
}
|
|
954
954
|
function u({
|
|
955
|
-
stackedStyle:
|
|
956
|
-
desktopStyle:
|
|
955
|
+
stackedStyle: C,
|
|
956
|
+
desktopStyle: w
|
|
957
957
|
}) {
|
|
958
|
-
return a === "never" ?
|
|
958
|
+
return a === "never" ? w : C;
|
|
959
959
|
}
|
|
960
|
-
const [
|
|
960
|
+
const [b, k] = v(
|
|
961
961
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
962
962
|
);
|
|
963
|
-
function
|
|
963
|
+
function S() {
|
|
964
964
|
return {
|
|
965
|
-
"--flex-dir":
|
|
965
|
+
"--flex-dir": b,
|
|
966
966
|
"--flex-dir-tablet": d({
|
|
967
|
-
stackedStyle:
|
|
967
|
+
stackedStyle: b,
|
|
968
968
|
desktopStyle: "row"
|
|
969
969
|
})
|
|
970
970
|
};
|
|
971
971
|
}
|
|
972
|
-
function y(
|
|
973
|
-
const
|
|
972
|
+
function y(C) {
|
|
973
|
+
const w = C === 0 ? 0 : t, E = s(C), B = `${w}px`, F = "100%", L = 0;
|
|
974
974
|
return {
|
|
975
975
|
...{
|
|
976
976
|
display: "flex",
|
|
977
977
|
flexDirection: "column",
|
|
978
978
|
alignItems: "stretch"
|
|
979
979
|
},
|
|
980
|
-
width:
|
|
980
|
+
width: E,
|
|
981
981
|
["marginLeft"]: B,
|
|
982
982
|
"--column-width-mobile": u({
|
|
983
|
-
stackedStyle:
|
|
984
|
-
desktopStyle:
|
|
983
|
+
stackedStyle: F,
|
|
984
|
+
desktopStyle: E
|
|
985
985
|
}),
|
|
986
986
|
"--column-margin-left-mobile": u({
|
|
987
|
-
stackedStyle:
|
|
987
|
+
stackedStyle: L,
|
|
988
988
|
desktopStyle: B
|
|
989
989
|
}),
|
|
990
990
|
"--column-width-tablet": d({
|
|
991
|
-
stackedStyle:
|
|
992
|
-
desktopStyle:
|
|
991
|
+
stackedStyle: F,
|
|
992
|
+
desktopStyle: E
|
|
993
993
|
}),
|
|
994
994
|
"--column-margin-left-tablet": d({
|
|
995
|
-
stackedStyle:
|
|
995
|
+
stackedStyle: L,
|
|
996
996
|
desktopStyle: B
|
|
997
997
|
})
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
function
|
|
1001
|
-
var
|
|
1002
|
-
return
|
|
1003
|
-
((B = (
|
|
1004
|
-
)[
|
|
1000
|
+
function x(C) {
|
|
1001
|
+
var E, B;
|
|
1002
|
+
return Be(
|
|
1003
|
+
((B = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : B.breakpoints) || {}
|
|
1004
|
+
)[C].max;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1006
|
+
function R() {
|
|
1007
1007
|
return `
|
|
1008
|
-
@media (max-width: ${
|
|
1008
|
+
@media (max-width: ${x("medium")}px) {
|
|
1009
1009
|
.${e.builderBlock.id}-breakpoints {
|
|
1010
1010
|
flex-direction: var(--flex-dir-tablet);
|
|
1011
1011
|
align-items: stretch;
|
|
@@ -1017,7 +1017,7 @@ function Pt(e) {
|
|
|
1017
1017
|
}
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
|
-
@media (max-width: ${
|
|
1020
|
+
@media (max-width: ${x("small")}px) {
|
|
1021
1021
|
.${e.builderBlock.id}-breakpoints {
|
|
1022
1022
|
flex-direction: var(--flex-dir);
|
|
1023
1023
|
align-items: stretch;
|
|
@@ -1030,30 +1030,30 @@ function Pt(e) {
|
|
|
1030
1030
|
},
|
|
1031
1031
|
`;
|
|
1032
1032
|
}
|
|
1033
|
-
return /* @__PURE__ */ W(
|
|
1033
|
+
return /* @__PURE__ */ W(h, { children: [
|
|
1034
1034
|
/* @__PURE__ */ W(
|
|
1035
1035
|
"div",
|
|
1036
1036
|
{
|
|
1037
1037
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
1038
|
-
style:
|
|
1038
|
+
style: S(),
|
|
1039
1039
|
children: [
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
(
|
|
1040
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(q, { styles: R() }) }),
|
|
1041
|
+
(P = e.columns) == null ? void 0 : P.map((C, w) => /* @__PURE__ */ l(
|
|
1042
1042
|
ie,
|
|
1043
1043
|
{
|
|
1044
|
-
TagName:
|
|
1044
|
+
TagName: C.link ? e.builderLinkComponent || "a" : "div",
|
|
1045
1045
|
actionAttributes: {},
|
|
1046
1046
|
attributes: {
|
|
1047
|
-
...
|
|
1048
|
-
href:
|
|
1047
|
+
...C.link ? {
|
|
1048
|
+
href: C.link
|
|
1049
1049
|
} : {},
|
|
1050
|
-
[
|
|
1051
|
-
style:
|
|
1050
|
+
[O()]: "builder-column",
|
|
1051
|
+
style: Ne(y(w))
|
|
1052
1052
|
},
|
|
1053
|
-
children: /* @__PURE__ */
|
|
1053
|
+
children: /* @__PURE__ */ l(
|
|
1054
1054
|
Q,
|
|
1055
1055
|
{
|
|
1056
|
-
path: `component.options.columns.${
|
|
1056
|
+
path: `component.options.columns.${w}.blocks`,
|
|
1057
1057
|
parent: e.builderBlock.id,
|
|
1058
1058
|
styleProp: {
|
|
1059
1059
|
flexGrow: "1"
|
|
@@ -1061,25 +1061,25 @@ function Pt(e) {
|
|
|
1061
1061
|
context: e.builderContext,
|
|
1062
1062
|
registeredComponents: e.builderComponents,
|
|
1063
1063
|
linkComponent: e.builderLinkComponent,
|
|
1064
|
-
blocks:
|
|
1064
|
+
blocks: C.blocks
|
|
1065
1065
|
}
|
|
1066
1066
|
)
|
|
1067
1067
|
},
|
|
1068
|
-
|
|
1068
|
+
w
|
|
1069
1069
|
))
|
|
1070
1070
|
]
|
|
1071
1071
|
}
|
|
1072
1072
|
),
|
|
1073
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ l("style", { children: `.div-6f826264 {
|
|
1074
1074
|
display: flex;
|
|
1075
1075
|
line-height: normal;
|
|
1076
1076
|
}` })
|
|
1077
1077
|
] });
|
|
1078
1078
|
}
|
|
1079
1079
|
function At(e) {
|
|
1080
|
-
return /* @__PURE__ */
|
|
1080
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function ve(e) {
|
|
1083
1083
|
return e.replace(/http(s)?:/, "");
|
|
1084
1084
|
}
|
|
1085
1085
|
function Bt(e = "", t, n) {
|
|
@@ -1090,11 +1090,11 @@ function Wt(e, t) {
|
|
|
1090
1090
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1091
1091
|
return e;
|
|
1092
1092
|
if (t === "master")
|
|
1093
|
-
return
|
|
1093
|
+
return ve(e);
|
|
1094
1094
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1095
1095
|
if (n) {
|
|
1096
1096
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1097
|
-
return
|
|
1097
|
+
return ve(`${i[0]}_${a}${o}`);
|
|
1098
1098
|
}
|
|
1099
1099
|
return null;
|
|
1100
1100
|
}
|
|
@@ -1109,8 +1109,8 @@ function Z(e) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Wt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1113
|
-
var o, a, r,
|
|
1112
|
+
function $t(e) {
|
|
1113
|
+
var o, a, r, c;
|
|
1114
1114
|
function t() {
|
|
1115
1115
|
var u;
|
|
1116
1116
|
const d = e.image || e.src;
|
|
@@ -1139,11 +1139,11 @@ function Nt(e) {
|
|
|
1139
1139
|
};
|
|
1140
1140
|
return e.aspectRatio ? s : void 0;
|
|
1141
1141
|
}
|
|
1142
|
-
return /* @__PURE__ */ W(
|
|
1143
|
-
/* @__PURE__ */ W(
|
|
1142
|
+
return /* @__PURE__ */ W(h, { children: [
|
|
1143
|
+
/* @__PURE__ */ W(h, { children: [
|
|
1144
1144
|
/* @__PURE__ */ W("picture", { children: [
|
|
1145
|
-
n() ? /* @__PURE__ */
|
|
1146
|
-
/* @__PURE__ */
|
|
1145
|
+
n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
1146
|
+
/* @__PURE__ */ l(
|
|
1147
1147
|
"img",
|
|
1148
1148
|
{
|
|
1149
1149
|
loading: "lazy",
|
|
@@ -1161,7 +1161,7 @@ function Nt(e) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
)
|
|
1163
1163
|
] }),
|
|
1164
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1164
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1165
1165
|
"div",
|
|
1166
1166
|
{
|
|
1167
1167
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -1170,10 +1170,10 @@ function Nt(e) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
1172
|
) }) : null,
|
|
1173
|
-
(
|
|
1174
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1173
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
|
|
1174
|
+
!e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
1175
1175
|
] }),
|
|
1176
|
-
/* @__PURE__ */
|
|
1176
|
+
/* @__PURE__ */ l("style", { children: `.img-40c70c9b {
|
|
1177
1177
|
opacity: 1;
|
|
1178
1178
|
transition: opacity 0.2s ease-in-out;
|
|
1179
1179
|
}.div-40c70c9b {
|
|
@@ -1192,8 +1192,8 @@ function Nt(e) {
|
|
|
1192
1192
|
}` })
|
|
1193
1193
|
] });
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return /* @__PURE__ */
|
|
1195
|
+
function Nt(e) {
|
|
1196
|
+
return /* @__PURE__ */ l(
|
|
1197
1197
|
"section",
|
|
1198
1198
|
{
|
|
1199
1199
|
...e.attributes,
|
|
@@ -1425,7 +1425,7 @@ const Vt = {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
1427
|
const n = e.get("columns");
|
|
1428
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1428
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
|
|
1429
1429
|
}
|
|
1430
1430
|
}, {
|
|
1431
1431
|
name: "space",
|
|
@@ -1471,10 +1471,10 @@ const Vt = {
|
|
|
1471
1471
|
}]
|
|
1472
1472
|
};
|
|
1473
1473
|
function Dt(e) {
|
|
1474
|
-
const t = te(null), [n, i] =
|
|
1475
|
-
return
|
|
1476
|
-
var
|
|
1477
|
-
if (!((
|
|
1474
|
+
const t = te(null), [n, i] = v(() => []), [o, a] = v(() => []);
|
|
1475
|
+
return T(() => {
|
|
1476
|
+
var c;
|
|
1477
|
+
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
1478
1478
|
return;
|
|
1479
1479
|
const r = t.current.getElementsByTagName("script");
|
|
1480
1480
|
for (let s = 0; s < r.length; s++) {
|
|
@@ -1499,7 +1499,7 @@ function Dt(e) {
|
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
}, []), /* @__PURE__ */
|
|
1502
|
+
}, []), /* @__PURE__ */ l(
|
|
1503
1503
|
"div",
|
|
1504
1504
|
{
|
|
1505
1505
|
ref: t,
|
|
@@ -1533,30 +1533,30 @@ const Ot = {
|
|
|
1533
1533
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1534
1534
|
hideFromUI: !0
|
|
1535
1535
|
}]
|
|
1536
|
-
},
|
|
1537
|
-
function
|
|
1538
|
-
const t = te(null), [n, i] =
|
|
1536
|
+
}, jt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => jt.includes(e.type);
|
|
1537
|
+
function Ht(e) {
|
|
1538
|
+
const t = te(null), [n, i] = v(() => []), [o, a] = v(() => []), [r, c] = v(() => !1);
|
|
1539
1539
|
function s() {
|
|
1540
1540
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1541
1541
|
return;
|
|
1542
1542
|
const d = t.current.getElementsByTagName("script");
|
|
1543
1543
|
for (let u = 0; u < d.length; u++) {
|
|
1544
|
-
const
|
|
1545
|
-
if (
|
|
1546
|
-
n.push(
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1549
|
-
} else if (
|
|
1544
|
+
const b = d[u];
|
|
1545
|
+
if (b.src && !n.includes(b.src)) {
|
|
1546
|
+
n.push(b.src);
|
|
1547
|
+
const k = document.createElement("script");
|
|
1548
|
+
k.async = !0, k.src = b.src, document.head.appendChild(k);
|
|
1549
|
+
} else if (_t(b) && !o.includes(b.innerText))
|
|
1550
1550
|
try {
|
|
1551
|
-
o.push(
|
|
1552
|
-
} catch (
|
|
1553
|
-
console.warn("`Embed`: Error running script:",
|
|
1551
|
+
o.push(b.innerText), new Function(b.innerText)();
|
|
1552
|
+
} catch (k) {
|
|
1553
|
+
console.warn("`Embed`: Error running script:", k);
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
1556
|
}
|
|
1557
|
-
return
|
|
1558
|
-
t.current && !r && (
|
|
1559
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
1557
|
+
return T(() => {
|
|
1558
|
+
t.current && !r && (c(!0), s());
|
|
1559
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1560
1560
|
"div",
|
|
1561
1561
|
{
|
|
1562
1562
|
className: "builder-embed",
|
|
@@ -1565,7 +1565,7 @@ function Ut(e) {
|
|
|
1565
1565
|
}
|
|
1566
1566
|
);
|
|
1567
1567
|
}
|
|
1568
|
-
const
|
|
1568
|
+
const Ut = {
|
|
1569
1569
|
name: "Fragment",
|
|
1570
1570
|
static: !0,
|
|
1571
1571
|
hidden: !0,
|
|
@@ -1591,17 +1591,17 @@ const Ht = {
|
|
|
1591
1591
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1592
1592
|
onChange: (e) => {
|
|
1593
1593
|
e.delete("srcset"), e.delete("noWebp");
|
|
1594
|
-
function n(r,
|
|
1594
|
+
function n(r, c = 6e4) {
|
|
1595
1595
|
return new Promise((s, d) => {
|
|
1596
1596
|
const u = document.createElement("img");
|
|
1597
|
-
let
|
|
1597
|
+
let b = !1;
|
|
1598
1598
|
u.onload = () => {
|
|
1599
|
-
|
|
1600
|
-
}, u.addEventListener("error", (
|
|
1601
|
-
console.warn("Image load failed",
|
|
1599
|
+
b = !0, s(u);
|
|
1600
|
+
}, u.addEventListener("error", (k) => {
|
|
1601
|
+
console.warn("Image load failed", k.error), d(k.error);
|
|
1602
1602
|
}), u.src = r, setTimeout(() => {
|
|
1603
|
-
|
|
1604
|
-
},
|
|
1603
|
+
b || d(new Error("Image load timed out"));
|
|
1604
|
+
}, c);
|
|
1605
1605
|
});
|
|
1606
1606
|
}
|
|
1607
1607
|
function i(r) {
|
|
@@ -1612,8 +1612,8 @@ const Ht = {
|
|
|
1612
1612
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1613
1613
|
}), o && (!a || a === 0.7041))
|
|
1614
1614
|
return n(o).then((r) => {
|
|
1615
|
-
const
|
|
1616
|
-
e.get("image") === o && (!
|
|
1615
|
+
const c = e.get("aspectRatio");
|
|
1616
|
+
e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1617
1617
|
});
|
|
1618
1618
|
}
|
|
1619
1619
|
}, {
|
|
@@ -1687,7 +1687,7 @@ const Ht = {
|
|
|
1687
1687
|
static: !0
|
|
1688
1688
|
};
|
|
1689
1689
|
function zt(e) {
|
|
1690
|
-
return /* @__PURE__ */
|
|
1690
|
+
return /* @__PURE__ */ l(
|
|
1691
1691
|
"img",
|
|
1692
1692
|
{
|
|
1693
1693
|
style: {
|
|
@@ -1698,7 +1698,7 @@ function zt(e) {
|
|
|
1698
1698
|
src: e.imgSrc || e.image,
|
|
1699
1699
|
...e.attributes
|
|
1700
1700
|
},
|
|
1701
|
-
|
|
1701
|
+
$() && e.imgSrc || "default-key"
|
|
1702
1702
|
);
|
|
1703
1703
|
}
|
|
1704
1704
|
const qt = {
|
|
@@ -1756,7 +1756,7 @@ const qt = {
|
|
|
1756
1756
|
};
|
|
1757
1757
|
function Qt(e) {
|
|
1758
1758
|
var t, n, i;
|
|
1759
|
-
return /* @__PURE__ */
|
|
1759
|
+
return /* @__PURE__ */ l(
|
|
1760
1760
|
"div",
|
|
1761
1761
|
{
|
|
1762
1762
|
style: {
|
|
@@ -1765,7 +1765,7 @@ function Qt(e) {
|
|
|
1765
1765
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1766
1766
|
"builder-slot": e.name
|
|
1767
1767
|
},
|
|
1768
|
-
children: /* @__PURE__ */
|
|
1768
|
+
children: /* @__PURE__ */ l(
|
|
1769
1769
|
Q,
|
|
1770
1770
|
{
|
|
1771
1771
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -1831,7 +1831,7 @@ const Gt = {
|
|
|
1831
1831
|
};
|
|
1832
1832
|
function Xt(e) {
|
|
1833
1833
|
var t;
|
|
1834
|
-
return /* @__PURE__ */
|
|
1834
|
+
return /* @__PURE__ */ l(
|
|
1835
1835
|
"div",
|
|
1836
1836
|
{
|
|
1837
1837
|
className: "builder-text",
|
|
@@ -1925,7 +1925,7 @@ const Zt = {
|
|
|
1925
1925
|
}]
|
|
1926
1926
|
};
|
|
1927
1927
|
function en(e) {
|
|
1928
|
-
var i, o, a, r,
|
|
1928
|
+
var i, o, a, r, c, s, d;
|
|
1929
1929
|
function t() {
|
|
1930
1930
|
return {
|
|
1931
1931
|
...e.autoPlay === !0 ? {
|
|
@@ -1957,7 +1957,7 @@ function en(e) {
|
|
|
1957
1957
|
position: "relative"
|
|
1958
1958
|
},
|
|
1959
1959
|
children: [
|
|
1960
|
-
/* @__PURE__ */
|
|
1960
|
+
/* @__PURE__ */ l(
|
|
1961
1961
|
"video",
|
|
1962
1962
|
{
|
|
1963
1963
|
className: "builder-video",
|
|
@@ -1979,10 +1979,10 @@ function en(e) {
|
|
|
1979
1979
|
},
|
|
1980
1980
|
src: e.video || "no-src",
|
|
1981
1981
|
poster: e.posterImage,
|
|
1982
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
1982
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1983
1983
|
}
|
|
1984
1984
|
),
|
|
1985
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
1985
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1986
1986
|
"div",
|
|
1987
1987
|
{
|
|
1988
1988
|
style: {
|
|
@@ -1993,7 +1993,7 @@ function en(e) {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
1995
|
) }) : null,
|
|
1996
|
-
(
|
|
1996
|
+
(c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1997
1997
|
"div",
|
|
1998
1998
|
{
|
|
1999
1999
|
style: {
|
|
@@ -2004,7 +2004,7 @@ function en(e) {
|
|
|
2004
2004
|
children: e.children
|
|
2005
2005
|
}
|
|
2006
2006
|
) }) : null,
|
|
2007
|
-
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */
|
|
2007
|
+
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
2008
2008
|
"div",
|
|
2009
2009
|
{
|
|
2010
2010
|
style: {
|
|
@@ -2025,7 +2025,7 @@ function en(e) {
|
|
|
2025
2025
|
}
|
|
2026
2026
|
);
|
|
2027
2027
|
}
|
|
2028
|
-
const
|
|
2028
|
+
const pe = () => [{
|
|
2029
2029
|
component: Je,
|
|
2030
2030
|
...Vt
|
|
2031
2031
|
}, {
|
|
@@ -2035,22 +2035,22 @@ const ve = () => [{
|
|
|
2035
2035
|
component: Dt,
|
|
2036
2036
|
...Lt
|
|
2037
2037
|
}, {
|
|
2038
|
-
component:
|
|
2038
|
+
component: Ht,
|
|
2039
2039
|
...Ot
|
|
2040
2040
|
}, {
|
|
2041
2041
|
component: At,
|
|
2042
|
-
...
|
|
2042
|
+
...Ut
|
|
2043
2043
|
}, {
|
|
2044
|
-
component:
|
|
2044
|
+
component: $t,
|
|
2045
2045
|
...Mt
|
|
2046
2046
|
}, {
|
|
2047
2047
|
component: zt,
|
|
2048
2048
|
...Kt
|
|
2049
2049
|
}, {
|
|
2050
|
-
component:
|
|
2050
|
+
component: Nt,
|
|
2051
2051
|
...qt
|
|
2052
2052
|
}, {
|
|
2053
|
-
component:
|
|
2053
|
+
component: vn,
|
|
2054
2054
|
...Gt
|
|
2055
2055
|
}, {
|
|
2056
2056
|
component: Xt,
|
|
@@ -2151,27 +2151,27 @@ const ve = () => [{
|
|
|
2151
2151
|
thisScriptEl?.remove();
|
|
2152
2152
|
}
|
|
2153
2153
|
return;
|
|
2154
|
-
}`,
|
|
2154
|
+
}`, Ve = "builderIoAbTest", Fe = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2155
2155
|
...t,
|
|
2156
2156
|
testVariationId: t.id,
|
|
2157
2157
|
id: e == null ? void 0 : e.id
|
|
2158
2158
|
})), on = ({
|
|
2159
2159
|
canTrack: e,
|
|
2160
2160
|
content: t
|
|
2161
|
-
}) => !(!(
|
|
2162
|
-
window.${
|
|
2163
|
-
window.${
|
|
2161
|
+
}) => !(!(U(t).length > 0) || !e || V()), an = (e) => e === "react" || e === "reactNative", Le = an(_), rn = () => `
|
|
2162
|
+
window.${Ve} = ${tn}
|
|
2163
|
+
window.${Fe} = ${nn}
|
|
2164
2164
|
`, ln = (e, t) => `
|
|
2165
|
-
window.${
|
|
2166
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2165
|
+
window.${Ve}(
|
|
2166
|
+
"${t}",${JSON.stringify(e)}, ${Le}
|
|
2167
2167
|
)`, cn = ({
|
|
2168
2168
|
contentId: e,
|
|
2169
2169
|
variationId: t
|
|
2170
|
-
}) => `window.${
|
|
2171
|
-
"${t}", "${e}", ${
|
|
2170
|
+
}) => `window.${Fe}(
|
|
2171
|
+
"${t}", "${e}", ${Le}
|
|
2172
2172
|
)`;
|
|
2173
2173
|
function ee(e) {
|
|
2174
|
-
return /* @__PURE__ */
|
|
2174
|
+
return /* @__PURE__ */ l(
|
|
2175
2175
|
"script",
|
|
2176
2176
|
{
|
|
2177
2177
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -2179,15 +2179,10 @@ function ee(e) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
);
|
|
2181
2181
|
}
|
|
2182
|
-
const sn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2183
|
-
function Oe(e, t) {
|
|
2184
|
-
const n = new URL(t.origin), i = n.hostname;
|
|
2185
|
-
return (e || sn).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
|
|
2186
|
-
}
|
|
2187
2182
|
function ke(e) {
|
|
2188
2183
|
return Math.round(e * 1e3) / 1e3;
|
|
2189
2184
|
}
|
|
2190
|
-
const
|
|
2185
|
+
const sn = (e, t, n = !0) => {
|
|
2191
2186
|
if (!(e instanceof HTMLElement))
|
|
2192
2187
|
return null;
|
|
2193
2188
|
let i = n ? e : e.parentElement;
|
|
@@ -2198,7 +2193,7 @@ const dn = (e, t, n = !0) => {
|
|
|
2198
2193
|
return i;
|
|
2199
2194
|
} while (i = i.parentElement);
|
|
2200
2195
|
return null;
|
|
2201
|
-
},
|
|
2196
|
+
}, dn = (e) => sn(e, (t) => {
|
|
2202
2197
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2203
2198
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2204
2199
|
}), Ce = ({
|
|
@@ -2210,8 +2205,8 @@ const dn = (e, t, n = !0) => {
|
|
|
2210
2205
|
x: a,
|
|
2211
2206
|
y: r
|
|
2212
2207
|
};
|
|
2213
|
-
},
|
|
2214
|
-
const t = e.target, n = t &&
|
|
2208
|
+
}, un = (e) => {
|
|
2209
|
+
const t = e.target, n = t && dn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2215
2210
|
return {
|
|
2216
2211
|
targetBuilderElement: i || void 0,
|
|
2217
2212
|
metadata: {
|
|
@@ -2226,165 +2221,74 @@ const dn = (e, t, n = !0) => {
|
|
|
2226
2221
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2227
2222
|
}
|
|
2228
2223
|
};
|
|
2229
|
-
}, fn = "0.12.7", hn = () => {
|
|
2230
|
-
Me("insertMenu", {
|
|
2231
|
-
name: "_default",
|
|
2232
|
-
default: !0,
|
|
2233
|
-
items: [{
|
|
2234
|
-
name: "Box"
|
|
2235
|
-
}, {
|
|
2236
|
-
name: "Text"
|
|
2237
|
-
}, {
|
|
2238
|
-
name: "Image"
|
|
2239
|
-
}, {
|
|
2240
|
-
name: "Columns"
|
|
2241
|
-
}, {
|
|
2242
|
-
name: "Core:Section"
|
|
2243
|
-
}, {
|
|
2244
|
-
name: "Core:Button"
|
|
2245
|
-
}, {
|
|
2246
|
-
name: "Embed"
|
|
2247
|
-
}, {
|
|
2248
|
-
name: "Custom Code"
|
|
2249
|
-
}]
|
|
2250
|
-
});
|
|
2251
|
-
};
|
|
2252
|
-
let we = !1;
|
|
2253
|
-
const gn = (e = {}) => {
|
|
2254
|
-
var t, n;
|
|
2255
|
-
we || (we = !0, V() && ((t = window.parent) == null || t.postMessage({
|
|
2256
|
-
type: "builder.sdkInfo",
|
|
2257
|
-
data: {
|
|
2258
|
-
target: F,
|
|
2259
|
-
version: fn,
|
|
2260
|
-
supportsPatchUpdates: !1,
|
|
2261
|
-
// Supports builder-model="..." attribute which is needed to
|
|
2262
|
-
// scope our '+ add block' button styling
|
|
2263
|
-
supportsAddBlockScoping: !0,
|
|
2264
|
-
supportsCustomBreakpoints: !0
|
|
2265
|
-
}
|
|
2266
|
-
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
2267
|
-
type: "builder.updateContent",
|
|
2268
|
-
data: {
|
|
2269
|
-
options: e
|
|
2270
|
-
}
|
|
2271
|
-
}, "*"), window.addEventListener("message", (i) => {
|
|
2272
|
-
var a, r;
|
|
2273
|
-
if (!Oe(e.trustedHosts, i))
|
|
2274
|
-
return;
|
|
2275
|
-
const {
|
|
2276
|
-
data: o
|
|
2277
|
-
} = i;
|
|
2278
|
-
if (o != null && o.type)
|
|
2279
|
-
switch (o.type) {
|
|
2280
|
-
case "builder.evaluate": {
|
|
2281
|
-
const l = o.data.text, s = o.data.arguments || [], d = o.data.id, u = new Function(l);
|
|
2282
|
-
let h, p = null;
|
|
2283
|
-
try {
|
|
2284
|
-
h = u.apply(null, s);
|
|
2285
|
-
} catch (b) {
|
|
2286
|
-
p = b;
|
|
2287
|
-
}
|
|
2288
|
-
p ? (a = window.parent) == null || a.postMessage({
|
|
2289
|
-
type: "builder.evaluateError",
|
|
2290
|
-
data: {
|
|
2291
|
-
id: d,
|
|
2292
|
-
error: p.message
|
|
2293
|
-
}
|
|
2294
|
-
}, "*") : h && typeof h.then == "function" ? h.then((b) => {
|
|
2295
|
-
var y;
|
|
2296
|
-
(y = window.parent) == null || y.postMessage({
|
|
2297
|
-
type: "builder.evaluateResult",
|
|
2298
|
-
data: {
|
|
2299
|
-
id: d,
|
|
2300
|
-
result: b
|
|
2301
|
-
}
|
|
2302
|
-
}, "*");
|
|
2303
|
-
}).catch(console.error) : (r = window.parent) == null || r.postMessage({
|
|
2304
|
-
type: "builder.evaluateResult",
|
|
2305
|
-
data: {
|
|
2306
|
-
result: h,
|
|
2307
|
-
id: d
|
|
2308
|
-
}
|
|
2309
|
-
}, "*");
|
|
2310
|
-
break;
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
})));
|
|
2314
2224
|
};
|
|
2315
|
-
function
|
|
2316
|
-
var
|
|
2317
|
-
const t = te(null), [n, i] =
|
|
2318
|
-
|
|
2225
|
+
function mn(e) {
|
|
2226
|
+
var L, G, J, se, de, ue, me;
|
|
2227
|
+
const t = te(null), [n, i] = v(() => 0);
|
|
2228
|
+
v(() => !0);
|
|
2319
2229
|
function o(m) {
|
|
2320
|
-
var
|
|
2230
|
+
var g, p;
|
|
2321
2231
|
const f = {
|
|
2322
2232
|
...e.builderContextSignal.rootState,
|
|
2323
2233
|
...m
|
|
2324
2234
|
};
|
|
2325
|
-
e.builderContextSignal.rootSetState ? (
|
|
2326
|
-
...
|
|
2235
|
+
e.builderContextSignal.rootSetState ? (p = (g = e.builderContextSignal).rootSetState) == null || p.call(g, f) : e.setBuilderContextSignal((I) => ({
|
|
2236
|
+
...I,
|
|
2327
2237
|
rootState: f
|
|
2328
2238
|
}));
|
|
2329
2239
|
}
|
|
2330
2240
|
function a(m) {
|
|
2331
|
-
var
|
|
2241
|
+
var g, p, I, A, H;
|
|
2332
2242
|
const f = {
|
|
2333
2243
|
...e.builderContextSignal.content,
|
|
2334
2244
|
...m,
|
|
2335
2245
|
data: {
|
|
2336
|
-
...(
|
|
2246
|
+
...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
|
|
2337
2247
|
...m == null ? void 0 : m.data
|
|
2338
2248
|
},
|
|
2339
2249
|
meta: {
|
|
2340
|
-
...(
|
|
2250
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
2341
2251
|
...m == null ? void 0 : m.meta,
|
|
2342
|
-
breakpoints: ((
|
|
2252
|
+
breakpoints: ((I = m == null ? void 0 : m.meta) == null ? void 0 : I.breakpoints) || ((H = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : H.breakpoints)
|
|
2343
2253
|
}
|
|
2344
2254
|
};
|
|
2345
|
-
e.setBuilderContextSignal((
|
|
2346
|
-
...
|
|
2255
|
+
e.setBuilderContextSignal((Oe) => ({
|
|
2256
|
+
...Oe,
|
|
2347
2257
|
content: f
|
|
2348
2258
|
}));
|
|
2349
2259
|
}
|
|
2350
|
-
|
|
2351
|
-
const [r,
|
|
2260
|
+
v(() => 0);
|
|
2261
|
+
const [r, c] = v(
|
|
2352
2262
|
() => !1
|
|
2353
|
-
), [s, d] =
|
|
2263
|
+
), [s, d] = v(
|
|
2354
2264
|
() => e.contentWrapper || "div"
|
|
2355
2265
|
);
|
|
2356
2266
|
function u(m) {
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
if (!T || T !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id))
|
|
2366
|
-
return;
|
|
2367
|
-
C && a({
|
|
2267
|
+
return Ue({
|
|
2268
|
+
model: e.model,
|
|
2269
|
+
trustedHosts: e.trustedHosts,
|
|
2270
|
+
callbacks: {
|
|
2271
|
+
configureSdk: (f) => {
|
|
2272
|
+
var I;
|
|
2273
|
+
const { breakpoints: g, contentId: p } = f;
|
|
2274
|
+
!p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || g && (a({
|
|
2368
2275
|
meta: {
|
|
2369
|
-
breakpoints:
|
|
2276
|
+
breakpoints: g
|
|
2370
2277
|
}
|
|
2371
|
-
}), i(n + 1);
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
case "builder.contentUpdate": {
|
|
2379
|
-
const x = f.data, C = x.key || x.alias || x.entry || x.modelName, T = x.data;
|
|
2380
|
-
C === e.model && (a(T), i(n + 1));
|
|
2381
|
-
break;
|
|
2278
|
+
}), i(n + 1));
|
|
2279
|
+
},
|
|
2280
|
+
animation: (f) => {
|
|
2281
|
+
Pe(f);
|
|
2282
|
+
},
|
|
2283
|
+
contentUpdate: (f) => {
|
|
2284
|
+
a(f), i(n + 1);
|
|
2382
2285
|
}
|
|
2383
2286
|
}
|
|
2287
|
+
})(m);
|
|
2384
2288
|
}
|
|
2385
|
-
function
|
|
2386
|
-
var f,
|
|
2387
|
-
const m = (
|
|
2289
|
+
function b() {
|
|
2290
|
+
var f, g;
|
|
2291
|
+
const m = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.jsCode;
|
|
2388
2292
|
m && j({
|
|
2389
2293
|
code: m,
|
|
2390
2294
|
context: e.context || {},
|
|
@@ -2393,28 +2297,28 @@ function bn(e) {
|
|
|
2393
2297
|
rootSetState: e.builderContextSignal.rootSetState
|
|
2394
2298
|
});
|
|
2395
2299
|
}
|
|
2396
|
-
const [
|
|
2397
|
-
function
|
|
2398
|
-
var f,
|
|
2300
|
+
const [k, S] = v(() => ({})), [y, x] = v(() => !1);
|
|
2301
|
+
function R(m) {
|
|
2302
|
+
var f, g;
|
|
2399
2303
|
if (e.builderContextSignal.content) {
|
|
2400
|
-
const
|
|
2304
|
+
const p = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, I = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
|
|
2401
2305
|
he({
|
|
2402
2306
|
type: "click",
|
|
2403
2307
|
canTrack: K(e.canTrack),
|
|
2404
|
-
contentId:
|
|
2308
|
+
contentId: I,
|
|
2405
2309
|
apiKey: e.apiKey,
|
|
2406
|
-
variationId:
|
|
2407
|
-
...
|
|
2310
|
+
variationId: p !== I ? p : void 0,
|
|
2311
|
+
...un(m),
|
|
2408
2312
|
unique: !y
|
|
2409
2313
|
});
|
|
2410
2314
|
}
|
|
2411
|
-
y ||
|
|
2315
|
+
y || x(!0);
|
|
2412
2316
|
}
|
|
2413
|
-
function
|
|
2317
|
+
function P(m) {
|
|
2414
2318
|
return m.replace(
|
|
2415
2319
|
/{{([^}]+)}}/g,
|
|
2416
|
-
(f,
|
|
2417
|
-
code:
|
|
2320
|
+
(f, g) => j({
|
|
2321
|
+
code: g,
|
|
2418
2322
|
context: e.context || {},
|
|
2419
2323
|
localState: void 0,
|
|
2420
2324
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2422,33 +2326,33 @@ function bn(e) {
|
|
|
2422
2326
|
})
|
|
2423
2327
|
);
|
|
2424
2328
|
}
|
|
2425
|
-
function
|
|
2426
|
-
qe(m).then((
|
|
2427
|
-
var
|
|
2428
|
-
const
|
|
2329
|
+
function C({ url: m, key: f }) {
|
|
2330
|
+
qe(m).then((g) => g.json()).then((g) => {
|
|
2331
|
+
var I, A;
|
|
2332
|
+
const p = {
|
|
2429
2333
|
...e.builderContextSignal.rootState,
|
|
2430
|
-
[f]:
|
|
2334
|
+
[f]: g
|
|
2431
2335
|
};
|
|
2432
|
-
(
|
|
2433
|
-
}).catch((
|
|
2434
|
-
console.error("error fetching dynamic data", m,
|
|
2336
|
+
(A = (I = e.builderContextSignal).rootSetState) == null || A.call(I, p), k[f] = !0;
|
|
2337
|
+
}).catch((g) => {
|
|
2338
|
+
console.error("error fetching dynamic data", m, g);
|
|
2435
2339
|
});
|
|
2436
2340
|
}
|
|
2437
|
-
function
|
|
2438
|
-
var f,
|
|
2439
|
-
const m = (
|
|
2440
|
-
Object.entries(m).forEach(([
|
|
2441
|
-
if (
|
|
2442
|
-
const
|
|
2443
|
-
|
|
2444
|
-
url:
|
|
2445
|
-
key:
|
|
2341
|
+
function w() {
|
|
2342
|
+
var f, g, p;
|
|
2343
|
+
const m = (p = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.httpRequests) != null ? p : {};
|
|
2344
|
+
Object.entries(m).forEach(([I, A]) => {
|
|
2345
|
+
if (A && (!k[I] || $())) {
|
|
2346
|
+
const H = P(A);
|
|
2347
|
+
C({
|
|
2348
|
+
url: H,
|
|
2349
|
+
key: I
|
|
2446
2350
|
});
|
|
2447
2351
|
}
|
|
2448
2352
|
});
|
|
2449
2353
|
}
|
|
2450
|
-
function
|
|
2451
|
-
|
|
2354
|
+
function E() {
|
|
2355
|
+
$() && window.dispatchEvent(
|
|
2452
2356
|
new CustomEvent(
|
|
2453
2357
|
"builder:component:stateChange",
|
|
2454
2358
|
{
|
|
@@ -2463,7 +2367,7 @@ function bn(e) {
|
|
|
2463
2367
|
);
|
|
2464
2368
|
}
|
|
2465
2369
|
function B(m) {
|
|
2466
|
-
i(n + 1), window.addEventListener("message", u),
|
|
2370
|
+
i(n + 1), window.addEventListener("message", u), Me(), Ke({
|
|
2467
2371
|
...e.locale ? {
|
|
2468
2372
|
locale: e.locale
|
|
2469
2373
|
} : {},
|
|
@@ -2479,27 +2383,27 @@ function bn(e) {
|
|
|
2479
2383
|
}), Object.values(
|
|
2480
2384
|
e.builderContextSignal.componentInfos
|
|
2481
2385
|
).forEach((f) => {
|
|
2482
|
-
var
|
|
2483
|
-
const
|
|
2484
|
-
(
|
|
2386
|
+
var p;
|
|
2387
|
+
const g = ze(f);
|
|
2388
|
+
(p = window.parent) == null || p.postMessage(g, "*");
|
|
2485
2389
|
}), window.addEventListener(
|
|
2486
2390
|
"builder:component:stateChangeListenerActivated",
|
|
2487
|
-
|
|
2391
|
+
E
|
|
2488
2392
|
);
|
|
2489
2393
|
}
|
|
2490
|
-
function
|
|
2491
|
-
const f = new URL(location.href).searchParams,
|
|
2492
|
-
`builder.preview.${
|
|
2493
|
-
),
|
|
2494
|
-
|
|
2394
|
+
function F(m) {
|
|
2395
|
+
const f = new URL(location.href).searchParams, g = f.get("builder.preview"), p = f.get(
|
|
2396
|
+
`builder.preview.${g}`
|
|
2397
|
+
), I = f.get("apiKey") || f.get("builder.space");
|
|
2398
|
+
g === e.model && I === e.apiKey && (!e.content || p === e.content.id) && Te({
|
|
2495
2399
|
model: e.model,
|
|
2496
2400
|
apiKey: e.apiKey,
|
|
2497
2401
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2498
|
-
}).then((
|
|
2499
|
-
|
|
2402
|
+
}).then((A) => {
|
|
2403
|
+
A && a(A);
|
|
2500
2404
|
});
|
|
2501
2405
|
}
|
|
2502
|
-
return
|
|
2406
|
+
return T(() => {
|
|
2503
2407
|
var m;
|
|
2504
2408
|
return (m = t.current) == null || m.addEventListener(
|
|
2505
2409
|
"initeditingbldr",
|
|
@@ -2511,63 +2415,63 @@ function bn(e) {
|
|
|
2511
2415
|
B
|
|
2512
2416
|
);
|
|
2513
2417
|
};
|
|
2514
|
-
}, []),
|
|
2418
|
+
}, []), T(() => {
|
|
2515
2419
|
var m;
|
|
2516
2420
|
return (m = t.current) == null || m.addEventListener(
|
|
2517
2421
|
"initpreviewingbldr",
|
|
2518
|
-
|
|
2422
|
+
F
|
|
2519
2423
|
), () => {
|
|
2520
2424
|
var f;
|
|
2521
2425
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2522
2426
|
"initpreviewingbldr",
|
|
2523
|
-
|
|
2427
|
+
F
|
|
2524
2428
|
);
|
|
2525
2429
|
};
|
|
2526
|
-
}, []),
|
|
2430
|
+
}, []), T(() => {
|
|
2527
2431
|
var m, f;
|
|
2528
2432
|
if (V()) {
|
|
2529
|
-
if (
|
|
2530
|
-
const
|
|
2433
|
+
if ($() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && K(e.canTrack)) {
|
|
2434
|
+
const p = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, I = (f = e.builderContextSignal.content) == null ? void 0 : f.id, A = e.apiKey;
|
|
2531
2435
|
he({
|
|
2532
2436
|
type: "impression",
|
|
2533
2437
|
canTrack: !0,
|
|
2534
|
-
contentId:
|
|
2535
|
-
apiKey:
|
|
2536
|
-
variationId:
|
|
2438
|
+
contentId: I,
|
|
2439
|
+
apiKey: A,
|
|
2440
|
+
variationId: p !== I ? p : void 0
|
|
2537
2441
|
});
|
|
2538
2442
|
}
|
|
2539
|
-
|
|
2443
|
+
He() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
2540
2444
|
}
|
|
2541
|
-
}, []),
|
|
2542
|
-
e.apiKey ||
|
|
2445
|
+
}, []), T(() => {
|
|
2446
|
+
e.apiKey || D.error(
|
|
2543
2447
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2544
|
-
),
|
|
2545
|
-
}, []),
|
|
2448
|
+
), b(), w(), E();
|
|
2449
|
+
}, []), T(() => {
|
|
2546
2450
|
e.content && a(e.content);
|
|
2547
|
-
}, [e.content]),
|
|
2548
|
-
}, [r]),
|
|
2549
|
-
|
|
2550
|
-
}, [(G = (
|
|
2551
|
-
|
|
2552
|
-
}, [(se = (J = e.builderContextSignal.content) == null ? void 0 : J.data) == null ? void 0 : se.httpRequests]),
|
|
2553
|
-
|
|
2554
|
-
}, [e.builderContextSignal.rootState]),
|
|
2451
|
+
}, [e.content]), T(() => {
|
|
2452
|
+
}, [r]), T(() => {
|
|
2453
|
+
b();
|
|
2454
|
+
}, [(G = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : G.jsCode]), T(() => {
|
|
2455
|
+
w();
|
|
2456
|
+
}, [(se = (J = e.builderContextSignal.content) == null ? void 0 : J.data) == null ? void 0 : se.httpRequests]), T(() => {
|
|
2457
|
+
E();
|
|
2458
|
+
}, [e.builderContextSignal.rootState]), T(() => {
|
|
2555
2459
|
e.data && o(e.data);
|
|
2556
|
-
}, [e.data]),
|
|
2460
|
+
}, [e.data]), T(() => {
|
|
2557
2461
|
e.locale && o({
|
|
2558
2462
|
locale: e.locale
|
|
2559
2463
|
});
|
|
2560
|
-
}, [e.locale]),
|
|
2464
|
+
}, [e.locale]), T(() => () => {
|
|
2561
2465
|
V() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
2562
2466
|
"builder:component:stateChangeListenerActivated",
|
|
2563
|
-
|
|
2467
|
+
E
|
|
2564
2468
|
));
|
|
2565
|
-
}, []), /* @__PURE__ */
|
|
2469
|
+
}, []), /* @__PURE__ */ l(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ je(
|
|
2566
2470
|
s,
|
|
2567
2471
|
{
|
|
2568
2472
|
key: n,
|
|
2569
2473
|
ref: t,
|
|
2570
|
-
onClick: (m) =>
|
|
2474
|
+
onClick: (m) => R(m),
|
|
2571
2475
|
"builder-content-id": (de = e.builderContextSignal.content) == null ? void 0 : de.id,
|
|
2572
2476
|
"builder-model": e.model,
|
|
2573
2477
|
...e.showContent ? {} : {
|
|
@@ -2580,7 +2484,7 @@ function bn(e) {
|
|
|
2580
2484
|
e.children
|
|
2581
2485
|
) }) : null });
|
|
2582
2486
|
}
|
|
2583
|
-
const
|
|
2487
|
+
const fn = (e) => {
|
|
2584
2488
|
var a, r;
|
|
2585
2489
|
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;
|
|
2586
2490
|
let o = "";
|
|
@@ -2592,37 +2496,37 @@ font-display: fallback;
|
|
|
2592
2496
|
font-weight: 400;
|
|
2593
2497
|
}
|
|
2594
2498
|
`.trim()), e.files)
|
|
2595
|
-
for (const
|
|
2596
|
-
if (!(String(Number(
|
|
2499
|
+
for (const c in e.files) {
|
|
2500
|
+
if (!(String(Number(c)) === c))
|
|
2597
2501
|
continue;
|
|
2598
|
-
const d = e.files[
|
|
2502
|
+
const d = e.files[c];
|
|
2599
2503
|
d && d !== i && (o += `
|
|
2600
2504
|
@font-face {
|
|
2601
2505
|
font-family: "${t}";
|
|
2602
2506
|
src: url('${d}') format('woff2');
|
|
2603
2507
|
font-display: fallback;
|
|
2604
|
-
font-weight: ${
|
|
2508
|
+
font-weight: ${c};
|
|
2605
2509
|
}
|
|
2606
2510
|
`.trim());
|
|
2607
2511
|
}
|
|
2608
2512
|
return o;
|
|
2609
|
-
},
|
|
2513
|
+
}, hn = ({
|
|
2610
2514
|
customFonts: e
|
|
2611
2515
|
}) => {
|
|
2612
2516
|
var t;
|
|
2613
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2614
|
-
},
|
|
2517
|
+
return ((t = e == null ? void 0 : e.map((n) => fn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2518
|
+
}, gn = ({
|
|
2615
2519
|
cssCode: e,
|
|
2616
2520
|
contentId: t
|
|
2617
2521
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
2618
|
-
function
|
|
2619
|
-
const [t, n] =
|
|
2522
|
+
function bn(e) {
|
|
2523
|
+
const [t, n] = v(
|
|
2620
2524
|
() => `
|
|
2621
|
-
${
|
|
2525
|
+
${gn({
|
|
2622
2526
|
cssCode: e.cssCode,
|
|
2623
2527
|
contentId: e.contentId
|
|
2624
2528
|
})}
|
|
2625
|
-
${
|
|
2529
|
+
${hn({
|
|
2626
2530
|
customFonts: e.customFonts
|
|
2627
2531
|
})}
|
|
2628
2532
|
|
|
@@ -2644,16 +2548,16 @@ ${Sn({
|
|
|
2644
2548
|
}
|
|
2645
2549
|
`.trim()
|
|
2646
2550
|
);
|
|
2647
|
-
return /* @__PURE__ */
|
|
2551
|
+
return /* @__PURE__ */ l(q, { styles: t });
|
|
2648
2552
|
}
|
|
2649
|
-
const
|
|
2553
|
+
const yn = ({
|
|
2650
2554
|
content: e,
|
|
2651
2555
|
data: t,
|
|
2652
2556
|
locale: n
|
|
2653
2557
|
}) => {
|
|
2654
|
-
var a, r,
|
|
2558
|
+
var a, r, c;
|
|
2655
2559
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
2656
|
-
return (
|
|
2560
|
+
return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
|
|
2657
2561
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2658
2562
|
}), {
|
|
2659
2563
|
...i,
|
|
@@ -2663,7 +2567,7 @@ const vn = ({
|
|
|
2663
2567
|
locale: n
|
|
2664
2568
|
} : {}
|
|
2665
2569
|
};
|
|
2666
|
-
},
|
|
2570
|
+
}, Sn = ({
|
|
2667
2571
|
content: e,
|
|
2668
2572
|
data: t
|
|
2669
2573
|
}) => e ? {
|
|
@@ -2674,28 +2578,28 @@ const vn = ({
|
|
|
2674
2578
|
},
|
|
2675
2579
|
meta: e == null ? void 0 : e.meta
|
|
2676
2580
|
} : void 0;
|
|
2677
|
-
function
|
|
2678
|
-
var s, d, u,
|
|
2679
|
-
const [t, n] =
|
|
2581
|
+
function we(e) {
|
|
2582
|
+
var s, d, u, b, k, S, y;
|
|
2583
|
+
const [t, n] = v(
|
|
2680
2584
|
() => {
|
|
2681
|
-
var
|
|
2585
|
+
var x, R;
|
|
2682
2586
|
return cn({
|
|
2683
2587
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2684
|
-
variationId: (
|
|
2588
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
2685
2589
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2686
|
-
contentId: (
|
|
2590
|
+
contentId: (R = e.content) == null ? void 0 : R.id
|
|
2687
2591
|
});
|
|
2688
2592
|
}
|
|
2689
2593
|
);
|
|
2690
|
-
function i(
|
|
2691
|
-
|
|
2692
|
-
...
|
|
2693
|
-
rootState:
|
|
2594
|
+
function i(x) {
|
|
2595
|
+
c((R) => ({
|
|
2596
|
+
...R,
|
|
2597
|
+
rootState: x
|
|
2694
2598
|
}));
|
|
2695
2599
|
}
|
|
2696
|
-
const [o, a] =
|
|
2600
|
+
const [o, a] = v(
|
|
2697
2601
|
() => [
|
|
2698
|
-
...
|
|
2602
|
+
...pe(),
|
|
2699
2603
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
2700
2604
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
2701
2605
|
// existing usage.
|
|
@@ -2704,22 +2608,22 @@ function Ie(e) {
|
|
|
2704
2608
|
...ge,
|
|
2705
2609
|
...e.customComponents || []
|
|
2706
2610
|
].reduce(
|
|
2707
|
-
(
|
|
2708
|
-
...
|
|
2709
|
-
[
|
|
2710
|
-
component:
|
|
2711
|
-
...be(
|
|
2611
|
+
(x, { component: R, ...P }) => ({
|
|
2612
|
+
...x,
|
|
2613
|
+
[P.name]: {
|
|
2614
|
+
component: R,
|
|
2615
|
+
...be(P)
|
|
2712
2616
|
}
|
|
2713
2617
|
}),
|
|
2714
2618
|
{}
|
|
2715
2619
|
)
|
|
2716
|
-
), [r,
|
|
2717
|
-
content:
|
|
2620
|
+
), [r, c] = v(() => ({
|
|
2621
|
+
content: Sn({
|
|
2718
2622
|
content: e.content,
|
|
2719
2623
|
data: e.data
|
|
2720
2624
|
}),
|
|
2721
2625
|
localState: void 0,
|
|
2722
|
-
rootState:
|
|
2626
|
+
rootState: yn({
|
|
2723
2627
|
content: e.content,
|
|
2724
2628
|
data: e.data,
|
|
2725
2629
|
locale: e.locale
|
|
@@ -2729,7 +2633,7 @@ function Ie(e) {
|
|
|
2729
2633
|
apiKey: e.apiKey,
|
|
2730
2634
|
apiVersion: e.apiVersion,
|
|
2731
2635
|
componentInfos: [
|
|
2732
|
-
...
|
|
2636
|
+
...pe(),
|
|
2733
2637
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
2734
2638
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
2735
2639
|
// existing usage.
|
|
@@ -2738,9 +2642,9 @@ function Ie(e) {
|
|
|
2738
2642
|
...ge,
|
|
2739
2643
|
...e.customComponents || []
|
|
2740
2644
|
].reduce(
|
|
2741
|
-
(
|
|
2742
|
-
...
|
|
2743
|
-
[
|
|
2645
|
+
(x, { component: R, ...P }) => ({
|
|
2646
|
+
...x,
|
|
2647
|
+
[P.name]: be(P)
|
|
2744
2648
|
}),
|
|
2745
2649
|
{}
|
|
2746
2650
|
),
|
|
@@ -2748,14 +2652,14 @@ function Ie(e) {
|
|
|
2748
2652
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2749
2653
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2750
2654
|
}));
|
|
2751
|
-
return /* @__PURE__ */
|
|
2752
|
-
|
|
2655
|
+
return /* @__PURE__ */ l(
|
|
2656
|
+
Re.Provider,
|
|
2753
2657
|
{
|
|
2754
2658
|
value: {
|
|
2755
2659
|
registeredComponents: o
|
|
2756
2660
|
},
|
|
2757
2661
|
children: /* @__PURE__ */ W(
|
|
2758
|
-
|
|
2662
|
+
mn,
|
|
2759
2663
|
{
|
|
2760
2664
|
content: e.content,
|
|
2761
2665
|
data: e.data,
|
|
@@ -2772,21 +2676,21 @@ function Ie(e) {
|
|
|
2772
2676
|
contentWrapperProps: e.contentWrapperProps,
|
|
2773
2677
|
linkComponent: e.linkComponent,
|
|
2774
2678
|
trustedHosts: e.trustedHosts,
|
|
2775
|
-
setBuilderContextSignal:
|
|
2679
|
+
setBuilderContextSignal: c,
|
|
2776
2680
|
children: [
|
|
2777
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2778
|
-
/* @__PURE__ */
|
|
2779
|
-
|
|
2681
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: t }) }) : null,
|
|
2682
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
2683
|
+
bn,
|
|
2780
2684
|
{
|
|
2781
2685
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
2782
2686
|
cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
|
|
2783
|
-
customFonts: (
|
|
2687
|
+
customFonts: (k = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : k.customFonts
|
|
2784
2688
|
}
|
|
2785
2689
|
) }),
|
|
2786
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ l(
|
|
2787
2691
|
Q,
|
|
2788
2692
|
{
|
|
2789
|
-
blocks: (y = (
|
|
2693
|
+
blocks: (y = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : y.blocks,
|
|
2790
2694
|
context: r,
|
|
2791
2695
|
registeredComponents: o,
|
|
2792
2696
|
linkComponent: e.linkComponent
|
|
@@ -2798,9 +2702,9 @@ function Ie(e) {
|
|
|
2798
2702
|
}
|
|
2799
2703
|
);
|
|
2800
2704
|
}
|
|
2801
|
-
function
|
|
2802
|
-
var r,
|
|
2803
|
-
const [t, n] =
|
|
2705
|
+
function De(e) {
|
|
2706
|
+
var r, c;
|
|
2707
|
+
const [t, n] = v(
|
|
2804
2708
|
() => on({
|
|
2805
2709
|
canTrack: K(e.canTrack),
|
|
2806
2710
|
content: e.content
|
|
@@ -2809,7 +2713,7 @@ function _e(e) {
|
|
|
2809
2713
|
function i() {
|
|
2810
2714
|
var s;
|
|
2811
2715
|
return ln(
|
|
2812
|
-
|
|
2716
|
+
U(e.content).map((d) => ({
|
|
2813
2717
|
id: d.testVariationId,
|
|
2814
2718
|
testRatio: d.testRatio
|
|
2815
2719
|
})),
|
|
@@ -2817,7 +2721,7 @@ function _e(e) {
|
|
|
2817
2721
|
);
|
|
2818
2722
|
}
|
|
2819
2723
|
function o() {
|
|
2820
|
-
return
|
|
2724
|
+
return U(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2821
2725
|
}
|
|
2822
2726
|
function a() {
|
|
2823
2727
|
var s;
|
|
@@ -2829,20 +2733,20 @@ function _e(e) {
|
|
|
2829
2733
|
canTrack: K(e.canTrack)
|
|
2830
2734
|
});
|
|
2831
2735
|
}
|
|
2832
|
-
return
|
|
2833
|
-
}, []), /* @__PURE__ */ W(
|
|
2834
|
-
!e.__isNestedRender &&
|
|
2835
|
-
t ? /* @__PURE__ */ W(
|
|
2836
|
-
/* @__PURE__ */
|
|
2736
|
+
return T(() => {
|
|
2737
|
+
}, []), /* @__PURE__ */ W(h, { children: [
|
|
2738
|
+
!e.__isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(ee, { scriptStr: rn() }) }) : null,
|
|
2739
|
+
t ? /* @__PURE__ */ W(h, { children: [
|
|
2740
|
+
/* @__PURE__ */ l(
|
|
2837
2741
|
q,
|
|
2838
2742
|
{
|
|
2839
2743
|
id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
|
|
2840
2744
|
styles: o()
|
|
2841
2745
|
}
|
|
2842
2746
|
),
|
|
2843
|
-
/* @__PURE__ */
|
|
2844
|
-
(
|
|
2845
|
-
|
|
2747
|
+
/* @__PURE__ */ l(ee, { scriptStr: i() }),
|
|
2748
|
+
(c = U(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
|
|
2749
|
+
we,
|
|
2846
2750
|
{
|
|
2847
2751
|
content: s,
|
|
2848
2752
|
showContent: !1,
|
|
@@ -2867,8 +2771,8 @@ function _e(e) {
|
|
|
2867
2771
|
s.testVariationId
|
|
2868
2772
|
))
|
|
2869
2773
|
] }) : null,
|
|
2870
|
-
/* @__PURE__ */
|
|
2871
|
-
|
|
2774
|
+
/* @__PURE__ */ l(
|
|
2775
|
+
we,
|
|
2872
2776
|
{
|
|
2873
2777
|
content: a(),
|
|
2874
2778
|
showContent: !0,
|
|
@@ -2893,13 +2797,13 @@ function _e(e) {
|
|
|
2893
2797
|
)
|
|
2894
2798
|
] });
|
|
2895
2799
|
}
|
|
2896
|
-
const
|
|
2800
|
+
const xn = async ({
|
|
2897
2801
|
builderContextValue: e,
|
|
2898
2802
|
symbol: t
|
|
2899
2803
|
}) => {
|
|
2900
2804
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2901
2805
|
(e != null && e.apiKey))
|
|
2902
|
-
return
|
|
2806
|
+
return Te({
|
|
2903
2807
|
model: t.model,
|
|
2904
2808
|
apiKey: e.apiKey,
|
|
2905
2809
|
apiVersion: e.apiVersion,
|
|
@@ -2909,37 +2813,37 @@ const Cn = async ({
|
|
|
2909
2813
|
}
|
|
2910
2814
|
}
|
|
2911
2815
|
}).catch((n) => {
|
|
2912
|
-
|
|
2816
|
+
D.error("Could not fetch symbol content: ", n);
|
|
2913
2817
|
});
|
|
2914
2818
|
};
|
|
2915
|
-
function
|
|
2916
|
-
var a, r,
|
|
2819
|
+
function vn(e) {
|
|
2820
|
+
var a, r, c, s;
|
|
2917
2821
|
function t() {
|
|
2918
2822
|
var d, u;
|
|
2919
2823
|
return [
|
|
2920
|
-
e.attributes[
|
|
2824
|
+
e.attributes[O()],
|
|
2921
2825
|
"builder-symbol",
|
|
2922
2826
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
2923
2827
|
(u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2924
2828
|
].filter(Boolean).join(" ");
|
|
2925
2829
|
}
|
|
2926
|
-
const [n, i] =
|
|
2830
|
+
const [n, i] = v(() => {
|
|
2927
2831
|
var d;
|
|
2928
2832
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
2929
2833
|
});
|
|
2930
2834
|
function o() {
|
|
2931
|
-
n ||
|
|
2835
|
+
n || xn({
|
|
2932
2836
|
symbol: e.symbol,
|
|
2933
2837
|
builderContextValue: e.builderContext
|
|
2934
2838
|
}).then((d) => {
|
|
2935
2839
|
d && i(d);
|
|
2936
2840
|
});
|
|
2937
2841
|
}
|
|
2938
|
-
return
|
|
2939
|
-
}, []),
|
|
2842
|
+
return T(() => {
|
|
2843
|
+
}, []), T(() => {
|
|
2940
2844
|
o();
|
|
2941
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
2942
|
-
|
|
2845
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
2846
|
+
De,
|
|
2943
2847
|
{
|
|
2944
2848
|
__isNestedRender: !0,
|
|
2945
2849
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2952,7 +2856,7 @@ function wn(e) {
|
|
|
2952
2856
|
data: {
|
|
2953
2857
|
...(r = e.symbol) == null ? void 0 : r.data,
|
|
2954
2858
|
...e.builderContext.localState,
|
|
2955
|
-
...(
|
|
2859
|
+
...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
|
|
2956
2860
|
},
|
|
2957
2861
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
2958
2862
|
content: n,
|
|
@@ -2960,31 +2864,32 @@ function wn(e) {
|
|
|
2960
2864
|
}
|
|
2961
2865
|
) });
|
|
2962
2866
|
}
|
|
2963
|
-
const
|
|
2867
|
+
const wn = Q, In = De;
|
|
2964
2868
|
export {
|
|
2965
2869
|
Q as Blocks,
|
|
2966
2870
|
Je as Button,
|
|
2967
2871
|
Pt as Columns,
|
|
2968
|
-
|
|
2872
|
+
De as Content,
|
|
2969
2873
|
At as Fragment,
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2874
|
+
$t as Image,
|
|
2875
|
+
wn as RenderBlocks,
|
|
2876
|
+
In as RenderContent,
|
|
2877
|
+
Nt as Section,
|
|
2878
|
+
vn as Symbol,
|
|
2975
2879
|
Xt as Text,
|
|
2976
2880
|
en as Video,
|
|
2977
|
-
|
|
2881
|
+
En as _processContentResult,
|
|
2978
2882
|
ze as createRegisterComponentMessage,
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2883
|
+
Pn as fetchBuilderProps,
|
|
2884
|
+
An as fetchEntries,
|
|
2885
|
+
Te as fetchOneEntry,
|
|
2886
|
+
Bn as getAllContent,
|
|
2887
|
+
Wn as getBuilderSearchParams,
|
|
2888
|
+
$n as getContent,
|
|
2889
|
+
$ as isEditing,
|
|
2890
|
+
He as isPreviewing,
|
|
2891
|
+
Nn as register,
|
|
2892
|
+
Vn as setEditorSettings,
|
|
2893
|
+
Fn as subscribeToEditor,
|
|
2894
|
+
Ln as track
|
|
2990
2895
|
};
|