@builder.io/sdk-react 0.11.2 → 0.11.4
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 +25 -25
- package/lib/browser/index.mjs +540 -546
- package/lib/edge/index.cjs +31 -31
- package/lib/edge/index.mjs +1288 -1294
- package/lib/node/index.cjs +16 -16
- package/lib/node/index.mjs +342 -348
- package/package.json +61 -4
- package/types/blocks/button/button.d.ts +1 -9
- package/types/blocks/button/button.types.d.ts +6 -0
- package/types/blocks/columns/columns.d.ts +2 -14
- package/types/blocks/columns/columns.types.d.ts +15 -0
- package/types/blocks/fragment/fragment.d.ts +1 -5
- package/types/blocks/fragment/fragment.types.d.ts +5 -0
- package/types/blocks/image/image.d.ts +1 -19
- package/types/blocks/image/image.types.d.ts +19 -0
- package/types/blocks/section/section.d.ts +1 -9
- package/types/blocks/section/section.types.d.ts +6 -0
- package/types/blocks/symbol/symbol.d.ts +2 -23
- package/types/blocks/symbol/symbol.types.d.ts +18 -0
- package/types/blocks/text/text.d.ts +1 -3
- package/types/blocks/text/text.types.d.ts +3 -0
- package/types/blocks/video/video.d.ts +1 -21
- package/types/blocks/video/video.types.d.ts +21 -0
- package/types/components/blocks/blocks.d.ts +1 -6
- package/types/components/blocks/blocks.types.d.ts +6 -0
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/components/content/content.helpers.d.ts +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +30 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-content/index.d.ts +1 -1
- package/types/functions/get-content/types.d.ts +2 -2
- package/types/server-index.d.ts +10 -1
package/lib/browser/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as ee, useEffect as
|
|
2
|
+
import { jsxs as P, Fragment as h, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as ee, useEffect as E } from "react";
|
|
4
4
|
import { i as V, j as $, k as Ne, l as U, m as te, n as J, T as L, r as Fe, o as D, p as de, a as _e, c as Le, b as Ie, q as je, u as ue, v as me, w as Me } from "./server-entry-f978b3a5.js";
|
|
5
|
-
import { _ as
|
|
5
|
+
import { _ as mn, h as fn, f as hn, g as gn, e as bn, d as xn, s as yn, t as Sn } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Ue(e) {
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
e.link ? /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
...e.attributes,
|
|
@@ -14,16 +14,16 @@ function Ue(e) {
|
|
|
14
14
|
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */
|
|
17
|
+
) }) : /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
21
21
|
style: e.attributes.style,
|
|
22
|
-
className: e.attributes.className + " button-
|
|
22
|
+
className: e.attributes.className + " button-fdf49de0",
|
|
23
23
|
children: e.text
|
|
24
24
|
}
|
|
25
25
|
) }),
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ c("style", { children: `.button-fdf49de0 {
|
|
27
27
|
all: unset;
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
@@ -81,13 +81,13 @@ const Oe = ({
|
|
|
81
81
|
rootSetState: o,
|
|
82
82
|
rootState: r
|
|
83
83
|
}) => {
|
|
84
|
-
const
|
|
84
|
+
const s = Oe({
|
|
85
85
|
builder: t,
|
|
86
86
|
context: n,
|
|
87
87
|
event: i,
|
|
88
88
|
state: ze(r, a, o)
|
|
89
89
|
});
|
|
90
|
-
return new Function(...
|
|
90
|
+
return new Function(...s.map(([l]) => l), e)(...s.map(([, l]) => l));
|
|
91
91
|
};
|
|
92
92
|
function ze(e, t, n) {
|
|
93
93
|
if (e === t)
|
|
@@ -115,7 +115,7 @@ function _({
|
|
|
115
115
|
U.warn("Skipping evaluation of empty code block.");
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
const
|
|
118
|
+
const s = {
|
|
119
119
|
code: He(e, {
|
|
120
120
|
isExpression: r
|
|
121
121
|
}),
|
|
@@ -127,9 +127,9 @@ function _({
|
|
|
127
127
|
localState: n
|
|
128
128
|
};
|
|
129
129
|
try {
|
|
130
|
-
return qe(
|
|
131
|
-
} catch (
|
|
132
|
-
U.error("Failed code evaluation: " +
|
|
130
|
+
return qe(s);
|
|
131
|
+
} catch (l) {
|
|
132
|
+
U.error("Failed code evaluation: " + l.message, {
|
|
133
133
|
code: e
|
|
134
134
|
});
|
|
135
135
|
return;
|
|
@@ -159,15 +159,15 @@ const Qe = ({
|
|
|
159
159
|
...o.actions
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
-
for (const
|
|
163
|
-
const
|
|
164
|
-
code:
|
|
162
|
+
for (const s in e.bindings) {
|
|
163
|
+
const l = e.bindings[s], d = _({
|
|
164
|
+
code: l,
|
|
165
165
|
localState: n,
|
|
166
166
|
rootState: i,
|
|
167
167
|
rootSetState: a,
|
|
168
168
|
context: t
|
|
169
169
|
});
|
|
170
|
-
Ye(r,
|
|
170
|
+
Ye(r, s, d);
|
|
171
171
|
}
|
|
172
172
|
return r;
|
|
173
173
|
};
|
|
@@ -230,14 +230,14 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
230
230
|
if (!Array.isArray(a))
|
|
231
231
|
return;
|
|
232
232
|
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
233
|
-
return a.map((
|
|
233
|
+
return a.map((l, d) => ({
|
|
234
234
|
context: {
|
|
235
235
|
...t,
|
|
236
236
|
localState: {
|
|
237
237
|
...t.localState,
|
|
238
238
|
$index: d,
|
|
239
|
-
$item:
|
|
240
|
-
[r]:
|
|
239
|
+
$item: l,
|
|
240
|
+
[r]: l,
|
|
241
241
|
[`$${r}Index`]: d
|
|
242
242
|
}
|
|
243
243
|
},
|
|
@@ -302,9 +302,9 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
302
302
|
}` : i;
|
|
303
303
|
};
|
|
304
304
|
function H(e) {
|
|
305
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function tt(e) {
|
|
308
308
|
function t() {
|
|
309
309
|
const i = O({
|
|
310
310
|
block: e.block,
|
|
@@ -317,7 +317,7 @@ function ie(e) {
|
|
|
317
317
|
return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
|
|
318
318
|
}
|
|
319
319
|
function n() {
|
|
320
|
-
var
|
|
320
|
+
var C;
|
|
321
321
|
const i = O({
|
|
322
322
|
block: e.block,
|
|
323
323
|
localState: e.context.localState,
|
|
@@ -326,21 +326,21 @@ function ie(e) {
|
|
|
326
326
|
context: e.context.context,
|
|
327
327
|
shouldEvaluateBindings: !0
|
|
328
328
|
}), a = i.responsiveStyles, o = e.context.content, r = Ee(
|
|
329
|
-
((
|
|
330
|
-
),
|
|
329
|
+
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
330
|
+
), s = a == null ? void 0 : a.large, l = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
|
|
331
331
|
if (!u)
|
|
332
332
|
return "";
|
|
333
|
-
const
|
|
333
|
+
const b = s ? Q({
|
|
334
334
|
className: u,
|
|
335
|
-
styles:
|
|
336
|
-
}) : "", v =
|
|
335
|
+
styles: s
|
|
336
|
+
}) : "", v = l ? Q({
|
|
337
337
|
className: u,
|
|
338
|
-
styles:
|
|
338
|
+
styles: l,
|
|
339
339
|
mediaQuery: he(
|
|
340
340
|
"medium",
|
|
341
341
|
r
|
|
342
342
|
)
|
|
343
|
-
}) : "",
|
|
343
|
+
}) : "", y = d ? Q({
|
|
344
344
|
className: u,
|
|
345
345
|
styles: d,
|
|
346
346
|
mediaQuery: he(
|
|
@@ -348,14 +348,14 @@ function ie(e) {
|
|
|
348
348
|
r
|
|
349
349
|
)
|
|
350
350
|
}) : "";
|
|
351
|
-
return [
|
|
351
|
+
return [b, v, y].join(" ");
|
|
352
352
|
}
|
|
353
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ c(h, { children: n() && t() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(H, { styles: n() }) }) : null });
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function nt(e) {
|
|
356
356
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const it = (e) => `on${nt(e)}`, at = (e, t) => (n) => _({
|
|
359
359
|
code: e,
|
|
360
360
|
context: t.context,
|
|
361
361
|
localState: t.localState,
|
|
@@ -371,7 +371,7 @@ function X(e) {
|
|
|
371
371
|
if (!n.hasOwnProperty(a))
|
|
372
372
|
continue;
|
|
373
373
|
const o = n[a];
|
|
374
|
-
let r =
|
|
374
|
+
let r = it(a);
|
|
375
375
|
if (e.stripPrefix)
|
|
376
376
|
switch (L) {
|
|
377
377
|
case "vue":
|
|
@@ -381,16 +381,16 @@ function X(e) {
|
|
|
381
381
|
r = r.replace("on:", "");
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
|
-
t[r] =
|
|
384
|
+
t[r] = at(o, e);
|
|
385
385
|
}
|
|
386
386
|
return t;
|
|
387
387
|
}
|
|
388
|
-
function
|
|
388
|
+
function ot({
|
|
389
389
|
properties: e
|
|
390
390
|
}) {
|
|
391
391
|
return e.className = e.class, delete e.class, e;
|
|
392
392
|
}
|
|
393
|
-
const
|
|
393
|
+
const rt = (e) => ({
|
|
394
394
|
href: e.href
|
|
395
395
|
});
|
|
396
396
|
function K({
|
|
@@ -399,19 +399,19 @@ function K({
|
|
|
399
399
|
}) {
|
|
400
400
|
var i;
|
|
401
401
|
const n = {
|
|
402
|
-
...
|
|
402
|
+
...rt(e),
|
|
403
403
|
...e.properties,
|
|
404
404
|
"builder-id": e.id,
|
|
405
|
-
style: e.style ?
|
|
405
|
+
style: e.style ? ct(e.style) : void 0,
|
|
406
406
|
class: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
407
407
|
};
|
|
408
|
-
return
|
|
408
|
+
return ot({
|
|
409
409
|
properties: n,
|
|
410
410
|
context: t,
|
|
411
411
|
block: e
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ct(e) {
|
|
415
415
|
switch (L) {
|
|
416
416
|
case "svelte":
|
|
417
417
|
case "vue":
|
|
@@ -425,9 +425,9 @@ function rt(e) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
function ge(e) {
|
|
428
|
-
return /* @__PURE__ */
|
|
428
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
429
429
|
" ",
|
|
430
|
-
e.hasChildren ? /* @__PURE__ */
|
|
430
|
+
e.hasChildren ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ P(
|
|
431
431
|
e.Wrapper,
|
|
432
432
|
{
|
|
433
433
|
...K({
|
|
@@ -448,7 +448,7 @@ function ge(e) {
|
|
|
448
448
|
" "
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
|
-
) }) : /* @__PURE__ */
|
|
451
|
+
) }) : /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
452
452
|
e.Wrapper,
|
|
453
453
|
{
|
|
454
454
|
...K({
|
|
@@ -469,7 +469,7 @@ function ge(e) {
|
|
|
469
469
|
] });
|
|
470
470
|
}
|
|
471
471
|
function lt(e) {
|
|
472
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ c(
|
|
473
473
|
e.Wrapper,
|
|
474
474
|
{
|
|
475
475
|
...e.wrapperProps,
|
|
@@ -490,7 +490,7 @@ function lt(e) {
|
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
492
|
}
|
|
493
|
-
const
|
|
493
|
+
const st = ({
|
|
494
494
|
componentOptions: e,
|
|
495
495
|
builderBlock: t,
|
|
496
496
|
context: n,
|
|
@@ -499,7 +499,7 @@ const ct = ({
|
|
|
499
499
|
isInteractive: o,
|
|
500
500
|
contextValue: r
|
|
501
501
|
}) => {
|
|
502
|
-
const
|
|
502
|
+
const s = {
|
|
503
503
|
...e,
|
|
504
504
|
/**
|
|
505
505
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -518,17 +518,17 @@ const ct = ({
|
|
|
518
518
|
context: n,
|
|
519
519
|
wrapperProps: e,
|
|
520
520
|
includeBlockProps: a
|
|
521
|
-
} :
|
|
521
|
+
} : s;
|
|
522
522
|
};
|
|
523
523
|
function be(e) {
|
|
524
|
-
var i
|
|
524
|
+
var i;
|
|
525
525
|
const [t, n] = S(
|
|
526
526
|
() => e.isInteractive ? lt : e.componentRef
|
|
527
527
|
);
|
|
528
|
-
return /* @__PURE__ */
|
|
528
|
+
return /* @__PURE__ */ c(h, { children: e.componentRef ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
529
529
|
t,
|
|
530
530
|
{
|
|
531
|
-
...
|
|
531
|
+
...st({
|
|
532
532
|
componentOptions: e.componentOptions,
|
|
533
533
|
builderBlock: e.builderBlock,
|
|
534
534
|
context: e.context,
|
|
@@ -537,31 +537,21 @@ function be(e) {
|
|
|
537
537
|
isInteractive: e.isInteractive,
|
|
538
538
|
contextValue: e.context
|
|
539
539
|
}),
|
|
540
|
-
children:
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
)),
|
|
550
|
-
(a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
|
|
551
|
-
ie,
|
|
552
|
-
{
|
|
553
|
-
block: o,
|
|
554
|
-
context: e.context
|
|
555
|
-
},
|
|
556
|
-
"block-style-" + o.id
|
|
557
|
-
))
|
|
558
|
-
]
|
|
540
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ c(
|
|
541
|
+
z,
|
|
542
|
+
{
|
|
543
|
+
block: a,
|
|
544
|
+
context: e.context,
|
|
545
|
+
registeredComponents: e.registeredComponents
|
|
546
|
+
},
|
|
547
|
+
a.id
|
|
548
|
+
))
|
|
559
549
|
}
|
|
560
550
|
) }) : null });
|
|
561
551
|
}
|
|
562
|
-
function
|
|
552
|
+
function dt(e) {
|
|
563
553
|
const [t, n] = S(() => e.repeatContext);
|
|
564
|
-
return /* @__PURE__ */
|
|
554
|
+
return /* @__PURE__ */ c(ne.Provider, { value: t, children: /* @__PURE__ */ c(
|
|
565
555
|
z,
|
|
566
556
|
{
|
|
567
557
|
block: e.block,
|
|
@@ -571,7 +561,7 @@ function st(e) {
|
|
|
571
561
|
) });
|
|
572
562
|
}
|
|
573
563
|
function z(e) {
|
|
574
|
-
var u,
|
|
564
|
+
var u, b, v;
|
|
575
565
|
function t() {
|
|
576
566
|
return Je({
|
|
577
567
|
block: e.block,
|
|
@@ -586,8 +576,8 @@ function z(e) {
|
|
|
586
576
|
});
|
|
587
577
|
}
|
|
588
578
|
function i() {
|
|
589
|
-
var
|
|
590
|
-
return (
|
|
579
|
+
var y;
|
|
580
|
+
return (y = e.block.repeat) != null && y.collection ? e.block : O({
|
|
591
581
|
block: e.block,
|
|
592
582
|
localState: e.context.localState,
|
|
593
583
|
rootState: e.context.rootState,
|
|
@@ -600,111 +590,106 @@ function z(e) {
|
|
|
600
590
|
return e.block.tagName || "div";
|
|
601
591
|
}
|
|
602
592
|
function o() {
|
|
603
|
-
var
|
|
604
|
-
if ((
|
|
605
|
-
return !!((
|
|
606
|
-
const
|
|
607
|
-
return ("show" in i() ? i().show : !0) && !
|
|
593
|
+
var k, R;
|
|
594
|
+
if ((k = e.block.repeat) != null && k.collection)
|
|
595
|
+
return !!((R = n == null ? void 0 : n()) != null && R.length);
|
|
596
|
+
const y = "hide" in i() ? i().hide : !1;
|
|
597
|
+
return ("show" in i() ? i().show : !0) && !y;
|
|
608
598
|
}
|
|
609
599
|
function r() {
|
|
610
|
-
var
|
|
611
|
-
return !((
|
|
600
|
+
var C, k;
|
|
601
|
+
return !((C = t == null ? void 0 : t()) != null && C.component) && !n() ? (k = i().children) != null ? k : [] : [];
|
|
612
602
|
}
|
|
613
|
-
function
|
|
614
|
-
var
|
|
603
|
+
function s() {
|
|
604
|
+
var y, C, k, R, W, w;
|
|
615
605
|
return {
|
|
616
|
-
blockChildren: (
|
|
617
|
-
componentRef: (
|
|
606
|
+
blockChildren: (y = i().children) != null ? y : [],
|
|
607
|
+
componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
|
|
618
608
|
componentOptions: {
|
|
619
609
|
...De(i()),
|
|
620
610
|
builderContext: e.context,
|
|
621
|
-
...((
|
|
611
|
+
...((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" ? {
|
|
622
612
|
builderComponents: e.registeredComponents
|
|
623
613
|
} : {}
|
|
624
614
|
},
|
|
625
|
-
context:
|
|
615
|
+
context: l,
|
|
626
616
|
registeredComponents: e.registeredComponents,
|
|
627
617
|
builderBlock: i(),
|
|
628
|
-
includeBlockProps: ((
|
|
629
|
-
isInteractive: !((
|
|
618
|
+
includeBlockProps: ((W = t == null ? void 0 : t()) == null ? void 0 : W.noWrap) === !0,
|
|
619
|
+
isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
|
|
630
620
|
};
|
|
631
621
|
}
|
|
632
|
-
const [
|
|
633
|
-
return /* @__PURE__ */
|
|
634
|
-
|
|
635
|
-
{
|
|
636
|
-
|
|
637
|
-
componentOptions: c().componentOptions,
|
|
638
|
-
blockChildren: c().blockChildren,
|
|
639
|
-
context: c().context,
|
|
640
|
-
registeredComponents: c().registeredComponents,
|
|
641
|
-
builderBlock: c().builderBlock,
|
|
642
|
-
includeBlockProps: c().includeBlockProps,
|
|
643
|
-
isInteractive: c().isInteractive
|
|
644
|
-
}
|
|
645
|
-
) }) : /* @__PURE__ */ R(f, { children: [
|
|
646
|
-
Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
|
|
647
|
-
ge,
|
|
622
|
+
const [l, d] = S(() => e.context);
|
|
623
|
+
return /* @__PURE__ */ c(h, { children: o() ? /* @__PURE__ */ P(h, { children: [
|
|
624
|
+
/* @__PURE__ */ c(tt, { block: e.block, context: e.context }),
|
|
625
|
+
(u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
626
|
+
be,
|
|
648
627
|
{
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
628
|
+
componentRef: s().componentRef,
|
|
629
|
+
componentOptions: s().componentOptions,
|
|
630
|
+
blockChildren: s().blockChildren,
|
|
631
|
+
context: s().context,
|
|
632
|
+
registeredComponents: s().registeredComponents,
|
|
633
|
+
builderBlock: s().builderBlock,
|
|
634
|
+
includeBlockProps: s().includeBlockProps,
|
|
635
|
+
isInteractive: s().isInteractive
|
|
653
636
|
}
|
|
654
|
-
) }) :
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
637
|
+
) }) : /* @__PURE__ */ P(h, { children: [
|
|
638
|
+
Y(a()) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
639
|
+
ge,
|
|
640
|
+
{
|
|
641
|
+
Wrapper: a(),
|
|
642
|
+
block: i(),
|
|
643
|
+
context: e.context,
|
|
644
|
+
hasChildren: !1
|
|
645
|
+
}
|
|
646
|
+
) }) : null,
|
|
647
|
+
!Y(a()) && n() ? /* @__PURE__ */ c(h, { children: (b = n()) == null ? void 0 : b.map((y, C) => /* @__PURE__ */ c(
|
|
648
|
+
dt,
|
|
649
|
+
{
|
|
650
|
+
repeatContext: y.context,
|
|
651
|
+
block: y.block,
|
|
652
|
+
registeredComponents: e.registeredComponents
|
|
653
|
+
},
|
|
654
|
+
C
|
|
655
|
+
)) }) : null,
|
|
656
|
+
!Y(a()) && !n() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ P(
|
|
657
|
+
ge,
|
|
658
|
+
{
|
|
659
|
+
Wrapper: a(),
|
|
660
|
+
block: i(),
|
|
661
|
+
context: e.context,
|
|
662
|
+
hasChildren: !0,
|
|
663
|
+
children: [
|
|
664
|
+
/* @__PURE__ */ c(
|
|
665
|
+
be,
|
|
666
|
+
{
|
|
667
|
+
componentRef: s().componentRef,
|
|
668
|
+
componentOptions: s().componentOptions,
|
|
669
|
+
blockChildren: s().blockChildren,
|
|
670
|
+
context: s().context,
|
|
671
|
+
registeredComponents: s().registeredComponents,
|
|
672
|
+
builderBlock: s().builderBlock,
|
|
673
|
+
includeBlockProps: s().includeBlockProps,
|
|
674
|
+
isInteractive: s().isInteractive
|
|
675
|
+
}
|
|
676
|
+
),
|
|
677
|
+
(v = r()) == null ? void 0 : v.map((y) => /* @__PURE__ */ c(
|
|
678
|
+
z,
|
|
679
|
+
{
|
|
680
|
+
block: y,
|
|
681
|
+
context: l,
|
|
682
|
+
registeredComponents: e.registeredComponents
|
|
683
|
+
},
|
|
684
|
+
y.id
|
|
685
|
+
))
|
|
686
|
+
]
|
|
687
|
+
}
|
|
688
|
+
) }) : null
|
|
689
|
+
] })
|
|
690
|
+
] }) : null });
|
|
706
691
|
}
|
|
707
|
-
function
|
|
692
|
+
function ut(e) {
|
|
708
693
|
function t() {
|
|
709
694
|
var a;
|
|
710
695
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
@@ -735,8 +720,8 @@ function dt(e) {
|
|
|
735
720
|
"*"
|
|
736
721
|
));
|
|
737
722
|
}
|
|
738
|
-
return /* @__PURE__ */
|
|
739
|
-
/* @__PURE__ */
|
|
723
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
724
|
+
/* @__PURE__ */ c(
|
|
740
725
|
e.BlocksWrapper,
|
|
741
726
|
{
|
|
742
727
|
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
@@ -750,18 +735,18 @@ function dt(e) {
|
|
|
750
735
|
children: e.children
|
|
751
736
|
}
|
|
752
737
|
),
|
|
753
|
-
/* @__PURE__ */
|
|
738
|
+
/* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
754
739
|
display: flex;
|
|
755
740
|
flex-direction: column;
|
|
756
741
|
align-items: stretch;
|
|
757
742
|
}` })
|
|
758
743
|
] });
|
|
759
744
|
}
|
|
760
|
-
function
|
|
761
|
-
var i, a, o
|
|
745
|
+
function ie(e) {
|
|
746
|
+
var i, a, o;
|
|
762
747
|
const t = se(ne), n = se(Te);
|
|
763
|
-
return /* @__PURE__ */
|
|
764
|
-
|
|
748
|
+
return /* @__PURE__ */ c(
|
|
749
|
+
ut,
|
|
765
750
|
{
|
|
766
751
|
blocks: e.blocks,
|
|
767
752
|
parent: e.parent,
|
|
@@ -769,69 +754,59 @@ function ae(e) {
|
|
|
769
754
|
styleProp: e.styleProp,
|
|
770
755
|
BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
|
|
771
756
|
BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
|
|
772
|
-
children:
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
)) }) : null,
|
|
782
|
-
e.blocks ? /* @__PURE__ */ l(f, { children: (r = e.blocks) == null ? void 0 : r.map((c) => /* @__PURE__ */ l(
|
|
783
|
-
ie,
|
|
784
|
-
{
|
|
785
|
-
block: c,
|
|
786
|
-
context: e.context || t
|
|
787
|
-
},
|
|
788
|
-
"block-style-" + c.id
|
|
789
|
-
)) }) : null
|
|
790
|
-
]
|
|
757
|
+
children: e.blocks ? /* @__PURE__ */ c(h, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ c(
|
|
758
|
+
z,
|
|
759
|
+
{
|
|
760
|
+
block: r,
|
|
761
|
+
context: e.context || t,
|
|
762
|
+
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
763
|
+
},
|
|
764
|
+
r.id
|
|
765
|
+
)) }) : null
|
|
791
766
|
}
|
|
792
767
|
);
|
|
793
768
|
}
|
|
794
|
-
function
|
|
795
|
-
var
|
|
769
|
+
function mt(e) {
|
|
770
|
+
var W;
|
|
796
771
|
const [t, n] = S(
|
|
797
772
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
798
773
|
), [i, a] = S(() => e.columns || []), [o, r] = S(
|
|
799
774
|
() => e.stackColumnsAt || "tablet"
|
|
800
775
|
);
|
|
801
|
-
function
|
|
802
|
-
var
|
|
803
|
-
return ((
|
|
776
|
+
function s(w) {
|
|
777
|
+
var I;
|
|
778
|
+
return ((I = i[w]) == null ? void 0 : I.width) || 100 / i.length;
|
|
804
779
|
}
|
|
805
|
-
function
|
|
806
|
-
const
|
|
807
|
-
return `calc(${
|
|
780
|
+
function l(w) {
|
|
781
|
+
const I = t * (i.length - 1) / i.length;
|
|
782
|
+
return `calc(${s(w)}% - ${I}px)`;
|
|
808
783
|
}
|
|
809
784
|
function d({
|
|
810
|
-
stackedStyle:
|
|
811
|
-
desktopStyle:
|
|
785
|
+
stackedStyle: w,
|
|
786
|
+
desktopStyle: I
|
|
812
787
|
}) {
|
|
813
|
-
return o === "tablet" ?
|
|
788
|
+
return o === "tablet" ? w : I;
|
|
814
789
|
}
|
|
815
790
|
function u({
|
|
816
|
-
stackedStyle:
|
|
817
|
-
desktopStyle:
|
|
791
|
+
stackedStyle: w,
|
|
792
|
+
desktopStyle: I
|
|
818
793
|
}) {
|
|
819
|
-
return o === "never" ?
|
|
794
|
+
return o === "never" ? I : w;
|
|
820
795
|
}
|
|
821
|
-
const [
|
|
796
|
+
const [b, v] = S(
|
|
822
797
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
823
798
|
);
|
|
824
|
-
function
|
|
799
|
+
function y() {
|
|
825
800
|
return {
|
|
826
|
-
"--flex-dir":
|
|
801
|
+
"--flex-dir": b,
|
|
827
802
|
"--flex-dir-tablet": d({
|
|
828
|
-
stackedStyle:
|
|
803
|
+
stackedStyle: b,
|
|
829
804
|
desktopStyle: "row"
|
|
830
805
|
})
|
|
831
806
|
};
|
|
832
807
|
}
|
|
833
|
-
function
|
|
834
|
-
const
|
|
808
|
+
function C(w) {
|
|
809
|
+
const I = w === 0 ? 0 : t, B = l(w), A = `${I}px`, N = "100%", F = 0;
|
|
835
810
|
return {
|
|
836
811
|
width: B,
|
|
837
812
|
["marginLeft"]: A,
|
|
@@ -853,13 +828,13 @@ function ut(e) {
|
|
|
853
828
|
})
|
|
854
829
|
};
|
|
855
830
|
}
|
|
856
|
-
function k(
|
|
831
|
+
function k(w) {
|
|
857
832
|
var B, A;
|
|
858
833
|
return Ee(
|
|
859
834
|
((A = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : A.breakpoints) || {}
|
|
860
|
-
)[
|
|
835
|
+
)[w].max;
|
|
861
836
|
}
|
|
862
|
-
function
|
|
837
|
+
function R() {
|
|
863
838
|
return `
|
|
864
839
|
@media (max-width: ${k("medium")}px) {
|
|
865
840
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -886,59 +861,59 @@ function ut(e) {
|
|
|
886
861
|
},
|
|
887
862
|
`;
|
|
888
863
|
}
|
|
889
|
-
return /* @__PURE__ */
|
|
890
|
-
/* @__PURE__ */
|
|
864
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
865
|
+
/* @__PURE__ */ P(
|
|
891
866
|
"div",
|
|
892
867
|
{
|
|
893
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
894
|
-
style:
|
|
868
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
869
|
+
style: y(),
|
|
895
870
|
children: [
|
|
896
|
-
/* @__PURE__ */
|
|
897
|
-
(
|
|
871
|
+
/* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(H, { styles: R() }) }),
|
|
872
|
+
(W = e.columns) == null ? void 0 : W.map((w, I) => /* @__PURE__ */ we(
|
|
898
873
|
"div",
|
|
899
874
|
{
|
|
900
|
-
className: "builder-column div-
|
|
901
|
-
style:
|
|
902
|
-
key:
|
|
875
|
+
className: "builder-column div-3c01d6ec-2",
|
|
876
|
+
style: C(I),
|
|
877
|
+
key: I
|
|
903
878
|
},
|
|
904
|
-
/* @__PURE__ */
|
|
905
|
-
|
|
879
|
+
/* @__PURE__ */ c(
|
|
880
|
+
ie,
|
|
906
881
|
{
|
|
907
|
-
path: `component.options.columns.${
|
|
882
|
+
path: `component.options.columns.${I}.blocks`,
|
|
908
883
|
parent: e.builderBlock.id,
|
|
909
884
|
styleProp: {
|
|
910
885
|
flexGrow: "1"
|
|
911
886
|
},
|
|
912
887
|
context: e.builderContext,
|
|
913
888
|
registeredComponents: e.builderComponents,
|
|
914
|
-
blocks:
|
|
889
|
+
blocks: w.blocks
|
|
915
890
|
}
|
|
916
891
|
)
|
|
917
892
|
))
|
|
918
893
|
]
|
|
919
894
|
}
|
|
920
895
|
),
|
|
921
|
-
/* @__PURE__ */
|
|
896
|
+
/* @__PURE__ */ c("style", { children: `.div-3c01d6ec {
|
|
922
897
|
display: flex;
|
|
923
898
|
line-height: normal;
|
|
924
|
-
}.div-
|
|
899
|
+
}.div-3c01d6ec-2 {
|
|
925
900
|
display: flex;
|
|
926
901
|
flex-direction: column;
|
|
927
902
|
align-items: stretch;
|
|
928
903
|
}` })
|
|
929
904
|
] });
|
|
930
905
|
}
|
|
931
|
-
function
|
|
932
|
-
return /* @__PURE__ */
|
|
906
|
+
function ft(e) {
|
|
907
|
+
return /* @__PURE__ */ c("span", { children: e.children });
|
|
933
908
|
}
|
|
934
909
|
function xe(e) {
|
|
935
910
|
return e.replace(/http(s)?:/, "");
|
|
936
911
|
}
|
|
937
|
-
function
|
|
912
|
+
function ht(e = "", t, n) {
|
|
938
913
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
939
914
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
940
915
|
}
|
|
941
|
-
function
|
|
916
|
+
function gt(e, t) {
|
|
942
917
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
943
918
|
return e;
|
|
944
919
|
if (t === "master")
|
|
@@ -957,12 +932,12 @@ function G(e) {
|
|
|
957
932
|
if (e.match(/builder\.io/)) {
|
|
958
933
|
let n = e;
|
|
959
934
|
const i = Number(e.split("?width=")[1]);
|
|
960
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
935
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ht(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
961
936
|
}
|
|
962
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
937
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
963
938
|
}
|
|
964
|
-
function
|
|
965
|
-
var a, o, r,
|
|
939
|
+
function bt(e) {
|
|
940
|
+
var a, o, r, s;
|
|
966
941
|
function t() {
|
|
967
942
|
var u;
|
|
968
943
|
const d = e.image || e.src;
|
|
@@ -978,24 +953,24 @@ function gt(e) {
|
|
|
978
953
|
return G(d);
|
|
979
954
|
}
|
|
980
955
|
function n() {
|
|
981
|
-
var
|
|
982
|
-
return (
|
|
956
|
+
var l;
|
|
957
|
+
return (l = t == null ? void 0 : t()) != null && l.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
983
958
|
}
|
|
984
959
|
function i() {
|
|
985
|
-
const
|
|
960
|
+
const l = {
|
|
986
961
|
position: "absolute",
|
|
987
962
|
height: "100%",
|
|
988
963
|
width: "100%",
|
|
989
964
|
left: "0px",
|
|
990
965
|
top: "0px"
|
|
991
966
|
};
|
|
992
|
-
return e.aspectRatio ?
|
|
967
|
+
return e.aspectRatio ? l : void 0;
|
|
993
968
|
}
|
|
994
|
-
return /* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
n() ? /* @__PURE__ */
|
|
998
|
-
/* @__PURE__ */
|
|
969
|
+
return /* @__PURE__ */ P(h, { children: [
|
|
970
|
+
/* @__PURE__ */ P(h, { children: [
|
|
971
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
972
|
+
n() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
973
|
+
/* @__PURE__ */ c(
|
|
999
974
|
"img",
|
|
1000
975
|
{
|
|
1001
976
|
loading: "lazy",
|
|
@@ -1006,33 +981,33 @@ function gt(e) {
|
|
|
1006
981
|
objectFit: e.backgroundSize || "cover",
|
|
1007
982
|
...i()
|
|
1008
983
|
},
|
|
1009
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
984
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
|
|
1010
985
|
src: e.image,
|
|
1011
986
|
srcSet: t(),
|
|
1012
987
|
sizes: e.sizes
|
|
1013
988
|
}
|
|
1014
989
|
)
|
|
1015
990
|
] }),
|
|
1016
|
-
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */
|
|
991
|
+
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
1017
992
|
"div",
|
|
1018
993
|
{
|
|
1019
|
-
className: "builder-image-sizer div-
|
|
994
|
+
className: "builder-image-sizer div-40c70c9b",
|
|
1020
995
|
style: {
|
|
1021
996
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1022
997
|
}
|
|
1023
998
|
}
|
|
1024
999
|
) }) : null,
|
|
1025
|
-
(
|
|
1026
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1000
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(h, { children: e.children }) : null,
|
|
1001
|
+
!e.fitContent && e.children ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
1027
1002
|
] }),
|
|
1028
|
-
/* @__PURE__ */
|
|
1003
|
+
/* @__PURE__ */ c("style", { children: `.img-40c70c9b {
|
|
1029
1004
|
opacity: 1;
|
|
1030
1005
|
transition: opacity 0.2s ease-in-out;
|
|
1031
|
-
}.div-
|
|
1006
|
+
}.div-40c70c9b {
|
|
1032
1007
|
width: 100%;
|
|
1033
1008
|
pointer-events: none;
|
|
1034
1009
|
font-size: 0;
|
|
1035
|
-
}.div-
|
|
1010
|
+
}.div-40c70c9b-2 {
|
|
1036
1011
|
display: flex;
|
|
1037
1012
|
flex-direction: column;
|
|
1038
1013
|
align-items: stretch;
|
|
@@ -1044,8 +1019,8 @@ function gt(e) {
|
|
|
1044
1019
|
}` })
|
|
1045
1020
|
] });
|
|
1046
1021
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return /* @__PURE__ */
|
|
1022
|
+
function xt(e) {
|
|
1023
|
+
return /* @__PURE__ */ c(
|
|
1049
1024
|
"section",
|
|
1050
1025
|
{
|
|
1051
1026
|
...e.attributes,
|
|
@@ -1065,7 +1040,7 @@ function bt(e) {
|
|
|
1065
1040
|
}
|
|
1066
1041
|
);
|
|
1067
1042
|
}
|
|
1068
|
-
const
|
|
1043
|
+
const yt = {
|
|
1069
1044
|
name: "Core:Button",
|
|
1070
1045
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1071
1046
|
defaultStyles: {
|
|
@@ -1098,7 +1073,7 @@ const xt = {
|
|
|
1098
1073
|
}],
|
|
1099
1074
|
static: !0,
|
|
1100
1075
|
noWrap: !0
|
|
1101
|
-
},
|
|
1076
|
+
}, St = {
|
|
1102
1077
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1103
1078
|
name: "Columns",
|
|
1104
1079
|
isRSC: !0,
|
|
@@ -1277,7 +1252,7 @@ const xt = {
|
|
|
1277
1252
|
});
|
|
1278
1253
|
}
|
|
1279
1254
|
const n = e.get("columns");
|
|
1280
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((
|
|
1255
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((s, l) => s + l.get("width"), 0) !== 100) && t();
|
|
1281
1256
|
}
|
|
1282
1257
|
}, {
|
|
1283
1258
|
name: "space",
|
|
@@ -1299,7 +1274,7 @@ const xt = {
|
|
|
1299
1274
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1300
1275
|
advanced: !0
|
|
1301
1276
|
}]
|
|
1302
|
-
},
|
|
1277
|
+
}, vt = {
|
|
1303
1278
|
name: "Custom Code",
|
|
1304
1279
|
static: !0,
|
|
1305
1280
|
requiredPermissions: ["editCode"],
|
|
@@ -1324,13 +1299,13 @@ const xt = {
|
|
|
1324
1299
|
};
|
|
1325
1300
|
function pt(e) {
|
|
1326
1301
|
const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []);
|
|
1327
|
-
return
|
|
1328
|
-
var
|
|
1329
|
-
if (!((
|
|
1302
|
+
return E(() => {
|
|
1303
|
+
var s;
|
|
1304
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1330
1305
|
return;
|
|
1331
1306
|
const r = t.current.getElementsByTagName("script");
|
|
1332
|
-
for (let
|
|
1333
|
-
const d = r[
|
|
1307
|
+
for (let l = 0; l < r.length; l++) {
|
|
1308
|
+
const d = r[l];
|
|
1334
1309
|
if (d.src) {
|
|
1335
1310
|
if (n.includes(d.src))
|
|
1336
1311
|
continue;
|
|
@@ -1351,7 +1326,7 @@ function pt(e) {
|
|
|
1351
1326
|
}
|
|
1352
1327
|
}
|
|
1353
1328
|
}
|
|
1354
|
-
}, []), /* @__PURE__ */
|
|
1329
|
+
}, []), /* @__PURE__ */ c(
|
|
1355
1330
|
"div",
|
|
1356
1331
|
{
|
|
1357
1332
|
ref: t,
|
|
@@ -1360,7 +1335,7 @@ function pt(e) {
|
|
|
1360
1335
|
}
|
|
1361
1336
|
);
|
|
1362
1337
|
}
|
|
1363
|
-
const
|
|
1338
|
+
const kt = {
|
|
1364
1339
|
name: "Embed",
|
|
1365
1340
|
static: !0,
|
|
1366
1341
|
inputs: [{
|
|
@@ -1385,30 +1360,30 @@ const vt = {
|
|
|
1385
1360
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1386
1361
|
hideFromUI: !0
|
|
1387
1362
|
}]
|
|
1388
|
-
},
|
|
1389
|
-
function
|
|
1390
|
-
const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r,
|
|
1391
|
-
function
|
|
1363
|
+
}, Ct = ["text/javascript", "application/javascript", "application/ecmascript"], wt = (e) => Ct.includes(e.type);
|
|
1364
|
+
function It(e) {
|
|
1365
|
+
const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, s] = S(() => !1);
|
|
1366
|
+
function l() {
|
|
1392
1367
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1393
1368
|
return;
|
|
1394
1369
|
const d = t.current.getElementsByTagName("script");
|
|
1395
1370
|
for (let u = 0; u < d.length; u++) {
|
|
1396
|
-
const
|
|
1397
|
-
if (
|
|
1398
|
-
n.push(
|
|
1371
|
+
const b = d[u];
|
|
1372
|
+
if (b.src && !n.includes(b.src)) {
|
|
1373
|
+
n.push(b.src);
|
|
1399
1374
|
const v = document.createElement("script");
|
|
1400
|
-
v.async = !0, v.src =
|
|
1401
|
-
} else if (
|
|
1375
|
+
v.async = !0, v.src = b.src, document.head.appendChild(v);
|
|
1376
|
+
} else if (wt(b) && !a.includes(b.innerText))
|
|
1402
1377
|
try {
|
|
1403
|
-
a.push(
|
|
1378
|
+
a.push(b.innerText), new Function(b.innerText)();
|
|
1404
1379
|
} catch (v) {
|
|
1405
1380
|
console.warn("`Embed`: Error running script:", v);
|
|
1406
1381
|
}
|
|
1407
1382
|
}
|
|
1408
1383
|
}
|
|
1409
|
-
return
|
|
1410
|
-
t.current && !r && (
|
|
1411
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
1384
|
+
return E(() => {
|
|
1385
|
+
t.current && !r && (s(!0), l());
|
|
1386
|
+
}, [t.current, r]), /* @__PURE__ */ c(
|
|
1412
1387
|
"div",
|
|
1413
1388
|
{
|
|
1414
1389
|
className: "builder-embed",
|
|
@@ -1417,13 +1392,13 @@ function wt(e) {
|
|
|
1417
1392
|
}
|
|
1418
1393
|
);
|
|
1419
1394
|
}
|
|
1420
|
-
const
|
|
1395
|
+
const Tt = {
|
|
1421
1396
|
name: "Fragment",
|
|
1422
1397
|
static: !0,
|
|
1423
1398
|
hidden: !0,
|
|
1424
1399
|
canHaveChildren: !0,
|
|
1425
1400
|
noWrap: !0
|
|
1426
|
-
},
|
|
1401
|
+
}, Rt = {
|
|
1427
1402
|
name: "Image",
|
|
1428
1403
|
static: !0,
|
|
1429
1404
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1443,17 +1418,17 @@ const It = {
|
|
|
1443
1418
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1444
1419
|
onChange: (e) => {
|
|
1445
1420
|
e.delete("srcset"), e.delete("noWebp");
|
|
1446
|
-
function n(r,
|
|
1447
|
-
return new Promise((
|
|
1421
|
+
function n(r, s = 6e4) {
|
|
1422
|
+
return new Promise((l, d) => {
|
|
1448
1423
|
const u = document.createElement("img");
|
|
1449
|
-
let
|
|
1424
|
+
let b = !1;
|
|
1450
1425
|
u.onload = () => {
|
|
1451
|
-
|
|
1426
|
+
b = !0, l(u);
|
|
1452
1427
|
}, u.addEventListener("error", (v) => {
|
|
1453
1428
|
console.warn("Image load failed", v.error), d(v.error);
|
|
1454
1429
|
}), u.src = r, setTimeout(() => {
|
|
1455
|
-
|
|
1456
|
-
},
|
|
1430
|
+
b || d(new Error("Image load timed out"));
|
|
1431
|
+
}, s);
|
|
1457
1432
|
});
|
|
1458
1433
|
}
|
|
1459
1434
|
function i(r) {
|
|
@@ -1464,8 +1439,8 @@ const It = {
|
|
|
1464
1439
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1465
1440
|
}), a && (!o || o === 0.7041))
|
|
1466
1441
|
return n(a).then((r) => {
|
|
1467
|
-
const
|
|
1468
|
-
e.get("image") === a && (!
|
|
1442
|
+
const s = e.get("aspectRatio");
|
|
1443
|
+
e.get("image") === a && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1469
1444
|
});
|
|
1470
1445
|
}
|
|
1471
1446
|
}, {
|
|
@@ -1523,7 +1498,7 @@ const It = {
|
|
|
1523
1498
|
advanced: !0,
|
|
1524
1499
|
defaultValue: 0.7041
|
|
1525
1500
|
}]
|
|
1526
|
-
},
|
|
1501
|
+
}, Et = {
|
|
1527
1502
|
// friendlyName?
|
|
1528
1503
|
name: "Raw:Img",
|
|
1529
1504
|
hideFromInsertMenu: !0,
|
|
@@ -1538,8 +1513,8 @@ const It = {
|
|
|
1538
1513
|
noWrap: !0,
|
|
1539
1514
|
static: !0
|
|
1540
1515
|
};
|
|
1541
|
-
function
|
|
1542
|
-
return /* @__PURE__ */
|
|
1516
|
+
function Pt(e) {
|
|
1517
|
+
return /* @__PURE__ */ c(
|
|
1543
1518
|
"img",
|
|
1544
1519
|
{
|
|
1545
1520
|
style: {
|
|
@@ -1553,7 +1528,7 @@ function Et(e) {
|
|
|
1553
1528
|
V() && e.imgSrc || "default-key"
|
|
1554
1529
|
);
|
|
1555
1530
|
}
|
|
1556
|
-
const
|
|
1531
|
+
const Wt = {
|
|
1557
1532
|
name: "Core:Section",
|
|
1558
1533
|
static: !0,
|
|
1559
1534
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1592,7 +1567,7 @@ const Pt = {
|
|
|
1592
1567
|
}
|
|
1593
1568
|
}
|
|
1594
1569
|
}]
|
|
1595
|
-
},
|
|
1570
|
+
}, Bt = {
|
|
1596
1571
|
name: "Symbol",
|
|
1597
1572
|
noWrap: !0,
|
|
1598
1573
|
static: !0,
|
|
@@ -1625,7 +1600,7 @@ const Pt = {
|
|
|
1625
1600
|
hideFromUI: !0,
|
|
1626
1601
|
type: "boolean"
|
|
1627
1602
|
}]
|
|
1628
|
-
},
|
|
1603
|
+
}, At = {
|
|
1629
1604
|
name: "Text",
|
|
1630
1605
|
static: !0,
|
|
1631
1606
|
isRSC: !0,
|
|
@@ -1644,9 +1619,9 @@ const Pt = {
|
|
|
1644
1619
|
textAlign: "center"
|
|
1645
1620
|
}
|
|
1646
1621
|
};
|
|
1647
|
-
function
|
|
1622
|
+
function Vt(e) {
|
|
1648
1623
|
var t;
|
|
1649
|
-
return /* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ c(
|
|
1650
1625
|
"div",
|
|
1651
1626
|
{
|
|
1652
1627
|
className: "builder-text",
|
|
@@ -1657,7 +1632,7 @@ function At(e) {
|
|
|
1657
1632
|
}
|
|
1658
1633
|
);
|
|
1659
1634
|
}
|
|
1660
|
-
const
|
|
1635
|
+
const $t = {
|
|
1661
1636
|
name: "Video",
|
|
1662
1637
|
canHaveChildren: !0,
|
|
1663
1638
|
defaultStyles: {
|
|
@@ -1739,8 +1714,8 @@ const Vt = {
|
|
|
1739
1714
|
advanced: !0
|
|
1740
1715
|
}]
|
|
1741
1716
|
};
|
|
1742
|
-
function
|
|
1743
|
-
var i, a, o, r,
|
|
1717
|
+
function Nt(e) {
|
|
1718
|
+
var i, a, o, r, s, l, d;
|
|
1744
1719
|
function t() {
|
|
1745
1720
|
return {
|
|
1746
1721
|
...e.autoPlay === !0 ? {
|
|
@@ -1765,14 +1740,14 @@ function $t(e) {
|
|
|
1765
1740
|
...t()
|
|
1766
1741
|
};
|
|
1767
1742
|
}
|
|
1768
|
-
return /* @__PURE__ */
|
|
1743
|
+
return /* @__PURE__ */ P(
|
|
1769
1744
|
"div",
|
|
1770
1745
|
{
|
|
1771
1746
|
style: {
|
|
1772
1747
|
position: "relative"
|
|
1773
1748
|
},
|
|
1774
1749
|
children: [
|
|
1775
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ c(
|
|
1776
1751
|
"video",
|
|
1777
1752
|
{
|
|
1778
1753
|
className: "builder-video",
|
|
@@ -1794,10 +1769,10 @@ function $t(e) {
|
|
|
1794
1769
|
},
|
|
1795
1770
|
src: e.video || "no-src",
|
|
1796
1771
|
poster: e.posterImage,
|
|
1797
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
1772
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
|
|
1798
1773
|
}
|
|
1799
1774
|
),
|
|
1800
|
-
e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */
|
|
1775
|
+
e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
1801
1776
|
"div",
|
|
1802
1777
|
{
|
|
1803
1778
|
style: {
|
|
@@ -1808,7 +1783,7 @@ function $t(e) {
|
|
|
1808
1783
|
}
|
|
1809
1784
|
}
|
|
1810
1785
|
) }) : null,
|
|
1811
|
-
(
|
|
1786
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
1812
1787
|
"div",
|
|
1813
1788
|
{
|
|
1814
1789
|
style: {
|
|
@@ -1819,7 +1794,7 @@ function $t(e) {
|
|
|
1819
1794
|
children: e.children
|
|
1820
1795
|
}
|
|
1821
1796
|
) }) : null,
|
|
1822
|
-
(d = (
|
|
1797
|
+
(d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
1823
1798
|
"div",
|
|
1824
1799
|
{
|
|
1825
1800
|
style: {
|
|
@@ -1842,38 +1817,38 @@ function $t(e) {
|
|
|
1842
1817
|
}
|
|
1843
1818
|
const ye = () => [{
|
|
1844
1819
|
component: Ue,
|
|
1845
|
-
...xt
|
|
1846
|
-
}, {
|
|
1847
|
-
component: ut,
|
|
1848
1820
|
...yt
|
|
1849
1821
|
}, {
|
|
1850
|
-
component:
|
|
1822
|
+
component: mt,
|
|
1851
1823
|
...St
|
|
1852
1824
|
}, {
|
|
1853
|
-
component:
|
|
1825
|
+
component: pt,
|
|
1854
1826
|
...vt
|
|
1855
1827
|
}, {
|
|
1856
|
-
component:
|
|
1857
|
-
...
|
|
1828
|
+
component: It,
|
|
1829
|
+
...kt
|
|
1858
1830
|
}, {
|
|
1859
|
-
component:
|
|
1831
|
+
component: ft,
|
|
1860
1832
|
...Tt
|
|
1861
1833
|
}, {
|
|
1862
|
-
component:
|
|
1834
|
+
component: bt,
|
|
1863
1835
|
...Rt
|
|
1864
1836
|
}, {
|
|
1865
|
-
component:
|
|
1866
|
-
...
|
|
1837
|
+
component: Pt,
|
|
1838
|
+
...Et
|
|
1867
1839
|
}, {
|
|
1868
|
-
component:
|
|
1840
|
+
component: xt,
|
|
1869
1841
|
...Wt
|
|
1870
1842
|
}, {
|
|
1871
|
-
component:
|
|
1843
|
+
component: an,
|
|
1872
1844
|
...Bt
|
|
1873
1845
|
}, {
|
|
1874
|
-
component:
|
|
1875
|
-
...
|
|
1876
|
-
}
|
|
1846
|
+
component: Vt,
|
|
1847
|
+
...At
|
|
1848
|
+
}, {
|
|
1849
|
+
component: Nt,
|
|
1850
|
+
...$t
|
|
1851
|
+
}], Ft = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1877
1852
|
function getAndSetVariantId() {
|
|
1878
1853
|
function setCookie(name, value, days) {
|
|
1879
1854
|
let expires = '';
|
|
@@ -1929,7 +1904,7 @@ const ye = () => [{
|
|
|
1929
1904
|
}).join('');
|
|
1930
1905
|
styleEl.innerHTML = newStyleStr;
|
|
1931
1906
|
}
|
|
1932
|
-
}`,
|
|
1907
|
+
}`, _t = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1933
1908
|
if (!navigator.cookieEnabled) {
|
|
1934
1909
|
return;
|
|
1935
1910
|
}
|
|
@@ -1967,23 +1942,23 @@ const ye = () => [{
|
|
|
1967
1942
|
...t,
|
|
1968
1943
|
testVariationId: t.id,
|
|
1969
1944
|
id: e == null ? void 0 : e.id
|
|
1970
|
-
})),
|
|
1945
|
+
})), Lt = ({
|
|
1971
1946
|
canTrack: e,
|
|
1972
1947
|
content: t
|
|
1973
|
-
}) => !(!(M(t).length > 0) || !e || $()),
|
|
1974
|
-
window.${We} = ${
|
|
1975
|
-
window.${Be} = ${
|
|
1976
|
-
`,
|
|
1948
|
+
}) => !(!(M(t).length > 0) || !e || $()), jt = (e) => e === "react" || e === "reactNative", Ae = jt(L), Mt = () => `
|
|
1949
|
+
window.${We} = ${Ft}
|
|
1950
|
+
window.${Be} = ${_t}
|
|
1951
|
+
`, Ut = (e, t) => `
|
|
1977
1952
|
window.${We}(
|
|
1978
1953
|
"${t}",${JSON.stringify(e)}, ${Ae}
|
|
1979
|
-
)`,
|
|
1954
|
+
)`, Dt = ({
|
|
1980
1955
|
contentId: e,
|
|
1981
1956
|
variationId: t
|
|
1982
1957
|
}) => `window.${Be}(
|
|
1983
1958
|
"${t}", "${e}", ${Ae}
|
|
1984
1959
|
)`;
|
|
1985
1960
|
function Z(e) {
|
|
1986
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ c(
|
|
1987
1962
|
"script",
|
|
1988
1963
|
{
|
|
1989
1964
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -1994,7 +1969,7 @@ function Z(e) {
|
|
|
1994
1969
|
function Se(e) {
|
|
1995
1970
|
return Math.round(e * 1e3) / 1e3;
|
|
1996
1971
|
}
|
|
1997
|
-
const
|
|
1972
|
+
const Ot = (e, t, n = !0) => {
|
|
1998
1973
|
if (!(e instanceof HTMLElement))
|
|
1999
1974
|
return null;
|
|
2000
1975
|
let i = n ? e : e.parentElement;
|
|
@@ -2005,10 +1980,10 @@ const Dt = (e, t, n = !0) => {
|
|
|
2005
1980
|
return i;
|
|
2006
1981
|
} while (i = i.parentElement);
|
|
2007
1982
|
return null;
|
|
2008
|
-
},
|
|
1983
|
+
}, Kt = (e) => Ot(e, (t) => {
|
|
2009
1984
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2010
1985
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2011
|
-
}),
|
|
1986
|
+
}), ve = ({
|
|
2012
1987
|
event: e,
|
|
2013
1988
|
target: t
|
|
2014
1989
|
}) => {
|
|
@@ -2017,23 +1992,23 @@ const Dt = (e, t, n = !0) => {
|
|
|
2017
1992
|
x: o,
|
|
2018
1993
|
y: r
|
|
2019
1994
|
};
|
|
2020
|
-
},
|
|
2021
|
-
const t = e.target, n = t &&
|
|
1995
|
+
}, Ht = (e) => {
|
|
1996
|
+
const t = e.target, n = t && Kt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2022
1997
|
return {
|
|
2023
1998
|
targetBuilderElement: i || void 0,
|
|
2024
1999
|
metadata: {
|
|
2025
|
-
targetOffset: t ?
|
|
2000
|
+
targetOffset: t ? ve({
|
|
2026
2001
|
event: e,
|
|
2027
2002
|
target: t
|
|
2028
2003
|
}) : void 0,
|
|
2029
|
-
builderTargetOffset: n ?
|
|
2004
|
+
builderTargetOffset: n ? ve({
|
|
2030
2005
|
event: e,
|
|
2031
2006
|
target: n
|
|
2032
2007
|
}) : void 0,
|
|
2033
2008
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2034
2009
|
}
|
|
2035
2010
|
};
|
|
2036
|
-
},
|
|
2011
|
+
}, zt = "0.11.4", qt = () => {
|
|
2037
2012
|
Fe("insertMenu", {
|
|
2038
2013
|
name: "_default",
|
|
2039
2014
|
default: !0,
|
|
@@ -2056,14 +2031,14 @@ const Dt = (e, t, n = !0) => {
|
|
|
2056
2031
|
}]
|
|
2057
2032
|
});
|
|
2058
2033
|
};
|
|
2059
|
-
let
|
|
2060
|
-
const
|
|
2034
|
+
let pe = !1;
|
|
2035
|
+
const Yt = (e = {}) => {
|
|
2061
2036
|
var t, n;
|
|
2062
|
-
|
|
2037
|
+
pe || (pe = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
2063
2038
|
type: "builder.sdkInfo",
|
|
2064
2039
|
data: {
|
|
2065
2040
|
target: L,
|
|
2066
|
-
version:
|
|
2041
|
+
version: zt,
|
|
2067
2042
|
supportsPatchUpdates: !1,
|
|
2068
2043
|
// Supports builder-model="..." attribute which is needed to
|
|
2069
2044
|
// scope our '+ add block' button styling
|
|
@@ -2082,25 +2057,25 @@ const qt = (e = {}) => {
|
|
|
2082
2057
|
if (i != null && i.type)
|
|
2083
2058
|
switch (i.type) {
|
|
2084
2059
|
case "builder.evaluate": {
|
|
2085
|
-
const r = i.data.text,
|
|
2086
|
-
let u,
|
|
2060
|
+
const r = i.data.text, s = i.data.arguments || [], l = i.data.id, d = new Function(r);
|
|
2061
|
+
let u, b = null;
|
|
2087
2062
|
try {
|
|
2088
|
-
u = d.apply(null,
|
|
2063
|
+
u = d.apply(null, s);
|
|
2089
2064
|
} catch (v) {
|
|
2090
|
-
|
|
2065
|
+
b = v;
|
|
2091
2066
|
}
|
|
2092
|
-
|
|
2067
|
+
b ? (a = window.parent) == null || a.postMessage({
|
|
2093
2068
|
type: "builder.evaluateError",
|
|
2094
2069
|
data: {
|
|
2095
|
-
id:
|
|
2096
|
-
error:
|
|
2070
|
+
id: l,
|
|
2071
|
+
error: b.message
|
|
2097
2072
|
}
|
|
2098
2073
|
}, "*") : u && typeof u.then == "function" ? u.then((v) => {
|
|
2099
|
-
var
|
|
2100
|
-
(
|
|
2074
|
+
var y;
|
|
2075
|
+
(y = window.parent) == null || y.postMessage({
|
|
2101
2076
|
type: "builder.evaluateResult",
|
|
2102
2077
|
data: {
|
|
2103
|
-
id:
|
|
2078
|
+
id: l,
|
|
2104
2079
|
result: v
|
|
2105
2080
|
}
|
|
2106
2081
|
}, "*");
|
|
@@ -2108,7 +2083,7 @@ const qt = (e = {}) => {
|
|
|
2108
2083
|
type: "builder.evaluateResult",
|
|
2109
2084
|
data: {
|
|
2110
2085
|
result: u,
|
|
2111
|
-
id:
|
|
2086
|
+
id: l
|
|
2112
2087
|
}
|
|
2113
2088
|
}, "*");
|
|
2114
2089
|
break;
|
|
@@ -2116,61 +2091,73 @@ const qt = (e = {}) => {
|
|
|
2116
2091
|
}
|
|
2117
2092
|
})));
|
|
2118
2093
|
};
|
|
2119
|
-
function
|
|
2120
|
-
var
|
|
2094
|
+
function Qt(e) {
|
|
2095
|
+
var F, q, ae, oe, re, ce, le;
|
|
2121
2096
|
const t = ee(null), [n, i] = S(() => 0);
|
|
2097
|
+
S(() => !0);
|
|
2122
2098
|
function a(m) {
|
|
2123
|
-
var
|
|
2124
|
-
const
|
|
2099
|
+
var g, x;
|
|
2100
|
+
const f = {
|
|
2101
|
+
...e.builderContextSignal.rootState,
|
|
2102
|
+
...m
|
|
2103
|
+
};
|
|
2104
|
+
e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, f) : e.setBuilderContextSignal((p) => ({
|
|
2105
|
+
...p,
|
|
2106
|
+
rootState: f
|
|
2107
|
+
}));
|
|
2108
|
+
}
|
|
2109
|
+
function o(m) {
|
|
2110
|
+
var g, x, p, T, j;
|
|
2111
|
+
const f = {
|
|
2125
2112
|
...e.builderContextSignal.content,
|
|
2126
2113
|
...m,
|
|
2127
2114
|
data: {
|
|
2128
|
-
...(
|
|
2115
|
+
...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
|
|
2129
2116
|
...m == null ? void 0 : m.data
|
|
2130
2117
|
},
|
|
2131
2118
|
meta: {
|
|
2132
|
-
...(
|
|
2119
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
2133
2120
|
...m == null ? void 0 : m.meta,
|
|
2134
|
-
breakpoints: ((
|
|
2121
|
+
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
|
|
2135
2122
|
}
|
|
2136
2123
|
};
|
|
2137
2124
|
e.setBuilderContextSignal(($e) => ({
|
|
2138
2125
|
...$e,
|
|
2139
|
-
content:
|
|
2126
|
+
content: f
|
|
2140
2127
|
}));
|
|
2141
2128
|
}
|
|
2142
2129
|
S(() => 0);
|
|
2143
|
-
const [
|
|
2130
|
+
const [r, s] = S(
|
|
2144
2131
|
() => !1
|
|
2145
|
-
), [
|
|
2132
|
+
), [l, d] = S(
|
|
2146
2133
|
() => e.contentWrapper || "div"
|
|
2147
2134
|
);
|
|
2148
|
-
function
|
|
2149
|
-
var
|
|
2150
|
-
const { data:
|
|
2151
|
-
if (
|
|
2152
|
-
switch (
|
|
2135
|
+
function u(m) {
|
|
2136
|
+
var g;
|
|
2137
|
+
const { data: f } = m;
|
|
2138
|
+
if (f)
|
|
2139
|
+
switch (f.type) {
|
|
2153
2140
|
case "builder.configureSdk": {
|
|
2154
|
-
const
|
|
2155
|
-
if (!T || T !== ((
|
|
2141
|
+
const x = f.data, { breakpoints: p, contentId: T } = x;
|
|
2142
|
+
if (!T || T !== ((g = e.builderContextSignal.content) == null ? void 0 : g.id))
|
|
2156
2143
|
return;
|
|
2157
|
-
|
|
2144
|
+
p && o({
|
|
2158
2145
|
meta: {
|
|
2159
|
-
breakpoints:
|
|
2146
|
+
breakpoints: p
|
|
2160
2147
|
}
|
|
2161
2148
|
}), i(n + 1);
|
|
2162
2149
|
break;
|
|
2163
2150
|
}
|
|
2164
2151
|
case "builder.contentUpdate": {
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2152
|
+
const x = f.data, p = x.key || x.alias || x.entry || x.modelName, T = x.data;
|
|
2153
|
+
p === e.model && (o(T), i(n + 1));
|
|
2167
2154
|
break;
|
|
2168
2155
|
}
|
|
2169
2156
|
}
|
|
2170
2157
|
}
|
|
2171
|
-
function
|
|
2172
|
-
var
|
|
2173
|
-
const m = (
|
|
2158
|
+
function b() {
|
|
2159
|
+
var f, g;
|
|
2160
|
+
const m = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.jsCode;
|
|
2174
2161
|
m && _({
|
|
2175
2162
|
code: m,
|
|
2176
2163
|
context: e.context || {},
|
|
@@ -2179,28 +2166,28 @@ function Yt(e) {
|
|
|
2179
2166
|
rootSetState: e.builderContextSignal.rootSetState
|
|
2180
2167
|
});
|
|
2181
2168
|
}
|
|
2182
|
-
const [
|
|
2183
|
-
function
|
|
2184
|
-
var
|
|
2169
|
+
const [v, y] = S(() => ({})), [C, k] = S(() => !1);
|
|
2170
|
+
function R(m) {
|
|
2171
|
+
var f, g;
|
|
2185
2172
|
if (e.builderContextSignal.content) {
|
|
2186
|
-
const
|
|
2173
|
+
const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
|
|
2187
2174
|
de({
|
|
2188
2175
|
type: "click",
|
|
2189
2176
|
canTrack: D(e.canTrack),
|
|
2190
|
-
contentId:
|
|
2177
|
+
contentId: p,
|
|
2191
2178
|
apiKey: e.apiKey,
|
|
2192
|
-
variationId:
|
|
2193
|
-
...
|
|
2194
|
-
unique: !
|
|
2179
|
+
variationId: x !== p ? x : void 0,
|
|
2180
|
+
...Ht(m),
|
|
2181
|
+
unique: !C
|
|
2195
2182
|
});
|
|
2196
2183
|
}
|
|
2197
|
-
|
|
2184
|
+
C || k(!0);
|
|
2198
2185
|
}
|
|
2199
|
-
function
|
|
2186
|
+
function W(m) {
|
|
2200
2187
|
return m.replace(
|
|
2201
2188
|
/{{([^}]+)}}/g,
|
|
2202
|
-
(
|
|
2203
|
-
code:
|
|
2189
|
+
(f, g) => _({
|
|
2190
|
+
code: g,
|
|
2204
2191
|
context: e.context || {},
|
|
2205
2192
|
localState: void 0,
|
|
2206
2193
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2208,32 +2195,32 @@ function Yt(e) {
|
|
|
2208
2195
|
})
|
|
2209
2196
|
);
|
|
2210
2197
|
}
|
|
2211
|
-
function
|
|
2212
|
-
je(m).then((
|
|
2213
|
-
var
|
|
2214
|
-
const
|
|
2198
|
+
function w({ url: m, key: f }) {
|
|
2199
|
+
je(m).then((g) => g.json()).then((g) => {
|
|
2200
|
+
var p, T;
|
|
2201
|
+
const x = {
|
|
2215
2202
|
...e.builderContextSignal.rootState,
|
|
2216
|
-
[
|
|
2203
|
+
[f]: g
|
|
2217
2204
|
};
|
|
2218
|
-
(T = (
|
|
2219
|
-
}).catch((
|
|
2220
|
-
console.error("error fetching dynamic data", m,
|
|
2205
|
+
(T = (p = e.builderContextSignal).rootSetState) == null || T.call(p, x), v[f] = !0;
|
|
2206
|
+
}).catch((g) => {
|
|
2207
|
+
console.error("error fetching dynamic data", m, g);
|
|
2221
2208
|
});
|
|
2222
2209
|
}
|
|
2223
2210
|
function I() {
|
|
2224
|
-
var
|
|
2225
|
-
const m = (
|
|
2226
|
-
Object.entries(m).forEach(([
|
|
2227
|
-
if (T && (!
|
|
2228
|
-
const j =
|
|
2229
|
-
|
|
2211
|
+
var f, g, x;
|
|
2212
|
+
const m = (x = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.httpRequests) != null ? x : {};
|
|
2213
|
+
Object.entries(m).forEach(([p, T]) => {
|
|
2214
|
+
if (T && (!v[p] || V())) {
|
|
2215
|
+
const j = W(T);
|
|
2216
|
+
w({
|
|
2230
2217
|
url: j,
|
|
2231
|
-
key:
|
|
2218
|
+
key: p
|
|
2232
2219
|
});
|
|
2233
2220
|
}
|
|
2234
2221
|
});
|
|
2235
2222
|
}
|
|
2236
|
-
function
|
|
2223
|
+
function B() {
|
|
2237
2224
|
V() && window.dispatchEvent(
|
|
2238
2225
|
new CustomEvent(
|
|
2239
2226
|
"builder:component:stateChange",
|
|
@@ -2248,8 +2235,8 @@ function Yt(e) {
|
|
|
2248
2235
|
)
|
|
2249
2236
|
);
|
|
2250
2237
|
}
|
|
2251
|
-
function
|
|
2252
|
-
i(n + 1), window.addEventListener("message",
|
|
2238
|
+
function A(m) {
|
|
2239
|
+
i(n + 1), window.addEventListener("message", u), qt(), Yt({
|
|
2253
2240
|
...e.locale ? {
|
|
2254
2241
|
locale: e.locale
|
|
2255
2242
|
} : {},
|
|
@@ -2261,93 +2248,99 @@ function Yt(e) {
|
|
|
2261
2248
|
} : {}
|
|
2262
2249
|
}), Object.values(
|
|
2263
2250
|
e.builderContextSignal.componentInfos
|
|
2264
|
-
).forEach((
|
|
2265
|
-
var
|
|
2266
|
-
const
|
|
2267
|
-
(
|
|
2251
|
+
).forEach((f) => {
|
|
2252
|
+
var x;
|
|
2253
|
+
const g = Le(f);
|
|
2254
|
+
(x = window.parent) == null || x.postMessage(g, "*");
|
|
2268
2255
|
}), window.addEventListener(
|
|
2269
2256
|
"builder:component:stateChangeListenerActivated",
|
|
2270
|
-
|
|
2257
|
+
B
|
|
2271
2258
|
);
|
|
2272
2259
|
}
|
|
2273
|
-
function
|
|
2274
|
-
const
|
|
2275
|
-
`builder.preview.${
|
|
2276
|
-
),
|
|
2277
|
-
|
|
2260
|
+
function N(m) {
|
|
2261
|
+
const f = new URL(location.href).searchParams, g = f.get("builder.preview"), x = f.get(
|
|
2262
|
+
`builder.preview.${g}`
|
|
2263
|
+
), p = f.get("apiKey") || f.get("builder.space");
|
|
2264
|
+
g === e.model && p === e.apiKey && (!e.content || x === e.content.id) && Ie({
|
|
2278
2265
|
model: e.model,
|
|
2279
2266
|
apiKey: e.apiKey,
|
|
2280
2267
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2281
2268
|
}).then((T) => {
|
|
2282
|
-
T &&
|
|
2269
|
+
T && o(T);
|
|
2283
2270
|
});
|
|
2284
2271
|
}
|
|
2285
|
-
return
|
|
2272
|
+
return E(() => {
|
|
2286
2273
|
var m;
|
|
2287
2274
|
return (m = t.current) == null || m.addEventListener(
|
|
2288
2275
|
"initeditingbldr",
|
|
2289
|
-
|
|
2276
|
+
A
|
|
2290
2277
|
), () => {
|
|
2291
|
-
var
|
|
2292
|
-
return (
|
|
2278
|
+
var f;
|
|
2279
|
+
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2293
2280
|
"initeditingbldr",
|
|
2294
|
-
|
|
2281
|
+
A
|
|
2295
2282
|
);
|
|
2296
2283
|
};
|
|
2297
|
-
}, []),
|
|
2284
|
+
}, []), E(() => {
|
|
2298
2285
|
var m;
|
|
2299
2286
|
return (m = t.current) == null || m.addEventListener(
|
|
2300
2287
|
"initpreviewingbldr",
|
|
2301
|
-
|
|
2288
|
+
N
|
|
2302
2289
|
), () => {
|
|
2303
|
-
var
|
|
2304
|
-
return (
|
|
2290
|
+
var f;
|
|
2291
|
+
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2305
2292
|
"initpreviewingbldr",
|
|
2306
|
-
|
|
2293
|
+
N
|
|
2307
2294
|
);
|
|
2308
2295
|
};
|
|
2309
|
-
}, []),
|
|
2310
|
-
var m,
|
|
2296
|
+
}, []), E(() => {
|
|
2297
|
+
var m, f;
|
|
2311
2298
|
if ($()) {
|
|
2312
2299
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
|
|
2313
|
-
const
|
|
2300
|
+
const x = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
|
|
2314
2301
|
de({
|
|
2315
2302
|
type: "impression",
|
|
2316
2303
|
canTrack: !0,
|
|
2317
|
-
contentId:
|
|
2304
|
+
contentId: p,
|
|
2318
2305
|
apiKey: T,
|
|
2319
|
-
variationId:
|
|
2306
|
+
variationId: x !== p ? x : void 0
|
|
2320
2307
|
});
|
|
2321
2308
|
}
|
|
2322
2309
|
_e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
2323
2310
|
}
|
|
2324
|
-
}, []),
|
|
2311
|
+
}, []), E(() => {
|
|
2325
2312
|
e.apiKey || U.error(
|
|
2326
2313
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2327
|
-
),
|
|
2328
|
-
}, []),
|
|
2329
|
-
e.content &&
|
|
2330
|
-
}, [e.content]),
|
|
2331
|
-
}, [
|
|
2332
|
-
|
|
2314
|
+
), b(), I(), B();
|
|
2315
|
+
}, []), E(() => {
|
|
2316
|
+
e.content && o(e.content);
|
|
2317
|
+
}, [e.content]), E(() => {
|
|
2318
|
+
}, [r]), E(() => {
|
|
2319
|
+
b();
|
|
2333
2320
|
}, [
|
|
2334
|
-
(
|
|
2321
|
+
(q = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : q.jsCode,
|
|
2335
2322
|
e.builderContextSignal.rootState
|
|
2336
|
-
]),
|
|
2323
|
+
]), E(() => {
|
|
2337
2324
|
I();
|
|
2338
|
-
}, [(oe = (
|
|
2339
|
-
|
|
2340
|
-
}, [e.builderContextSignal.rootState]),
|
|
2341
|
-
|
|
2325
|
+
}, [(oe = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : oe.httpRequests]), E(() => {
|
|
2326
|
+
B();
|
|
2327
|
+
}, [e.builderContextSignal.rootState]), E(() => {
|
|
2328
|
+
e.data && a(e.data);
|
|
2329
|
+
}, [e.data]), E(() => {
|
|
2330
|
+
e.locale && a({
|
|
2331
|
+
locale: e.locale
|
|
2332
|
+
});
|
|
2333
|
+
}, [e.locale]), E(() => () => {
|
|
2334
|
+
$() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
2342
2335
|
"builder:component:stateChangeListenerActivated",
|
|
2343
|
-
|
|
2336
|
+
B
|
|
2344
2337
|
));
|
|
2345
|
-
}, []), /* @__PURE__ */
|
|
2346
|
-
|
|
2338
|
+
}, []), /* @__PURE__ */ c(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ we(
|
|
2339
|
+
l,
|
|
2347
2340
|
{
|
|
2348
2341
|
key: n,
|
|
2349
2342
|
ref: t,
|
|
2350
|
-
onClick: (m) =>
|
|
2343
|
+
onClick: (m) => R(m),
|
|
2351
2344
|
"builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
|
|
2352
2345
|
"builder-model": e.model,
|
|
2353
2346
|
...e.showContent ? {} : {
|
|
@@ -2355,12 +2348,12 @@ function Yt(e) {
|
|
|
2355
2348
|
"aria-hidden": !0
|
|
2356
2349
|
},
|
|
2357
2350
|
...e.contentWrapperProps,
|
|
2358
|
-
className: `variant-${((
|
|
2351
|
+
className: `variant-${((ce = e.content) == null ? void 0 : ce.testVariationId) || ((le = e.content) == null ? void 0 : le.id)}`
|
|
2359
2352
|
},
|
|
2360
2353
|
e.children
|
|
2361
2354
|
) }) : null });
|
|
2362
2355
|
}
|
|
2363
|
-
const
|
|
2356
|
+
const Gt = (e) => {
|
|
2364
2357
|
var o, r;
|
|
2365
2358
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
2366
2359
|
let a = "";
|
|
@@ -2372,37 +2365,37 @@ font-display: fallback;
|
|
|
2372
2365
|
font-weight: 400;
|
|
2373
2366
|
}
|
|
2374
2367
|
`.trim()), e.files)
|
|
2375
|
-
for (const
|
|
2376
|
-
if (!(String(Number(
|
|
2368
|
+
for (const s in e.files) {
|
|
2369
|
+
if (!(String(Number(s)) === s))
|
|
2377
2370
|
continue;
|
|
2378
|
-
const d = e.files[
|
|
2371
|
+
const d = e.files[s];
|
|
2379
2372
|
d && d !== i && (a += `
|
|
2380
2373
|
@font-face {
|
|
2381
2374
|
font-family: "${t}";
|
|
2382
2375
|
src: url('${d}') format('woff2');
|
|
2383
2376
|
font-display: fallback;
|
|
2384
|
-
font-weight: ${
|
|
2377
|
+
font-weight: ${s};
|
|
2385
2378
|
}
|
|
2386
2379
|
`.trim());
|
|
2387
2380
|
}
|
|
2388
2381
|
return a;
|
|
2389
|
-
},
|
|
2382
|
+
}, Jt = ({
|
|
2390
2383
|
customFonts: e
|
|
2391
2384
|
}) => {
|
|
2392
2385
|
var t;
|
|
2393
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2394
|
-
},
|
|
2386
|
+
return ((t = e == null ? void 0 : e.map((n) => Gt(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2387
|
+
}, Xt = ({
|
|
2395
2388
|
cssCode: e,
|
|
2396
2389
|
contentId: t
|
|
2397
2390
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
2398
|
-
function
|
|
2391
|
+
function Zt(e) {
|
|
2399
2392
|
const [t, n] = S(
|
|
2400
2393
|
() => `
|
|
2401
|
-
${
|
|
2394
|
+
${Xt({
|
|
2402
2395
|
cssCode: e.cssCode,
|
|
2403
2396
|
contentId: e.contentId
|
|
2404
2397
|
})}
|
|
2405
|
-
${
|
|
2398
|
+
${Jt({
|
|
2406
2399
|
customFonts: e.customFonts
|
|
2407
2400
|
})}
|
|
2408
2401
|
|
|
@@ -2420,17 +2413,17 @@ ${Gt({
|
|
|
2420
2413
|
}
|
|
2421
2414
|
`.trim()
|
|
2422
2415
|
);
|
|
2423
|
-
return /* @__PURE__ */
|
|
2416
|
+
return /* @__PURE__ */ c(H, { styles: t });
|
|
2424
2417
|
}
|
|
2425
|
-
const
|
|
2418
|
+
const en = ({
|
|
2426
2419
|
content: e,
|
|
2427
2420
|
data: t,
|
|
2428
2421
|
locale: n
|
|
2429
2422
|
}) => {
|
|
2430
|
-
var o, r,
|
|
2423
|
+
var o, r, s;
|
|
2431
2424
|
const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
2432
|
-
return (
|
|
2433
|
-
|
|
2425
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((l) => {
|
|
2426
|
+
l.name && l.defaultValue !== void 0 && (i[l.name] = l.defaultValue);
|
|
2434
2427
|
}), {
|
|
2435
2428
|
...i,
|
|
2436
2429
|
...a,
|
|
@@ -2439,7 +2432,7 @@ const Zt = ({
|
|
|
2439
2432
|
locale: n
|
|
2440
2433
|
} : {}
|
|
2441
2434
|
};
|
|
2442
|
-
},
|
|
2435
|
+
}, tn = ({
|
|
2443
2436
|
content: e,
|
|
2444
2437
|
data: t
|
|
2445
2438
|
}) => e ? {
|
|
@@ -2451,21 +2444,21 @@ const Zt = ({
|
|
|
2451
2444
|
meta: e == null ? void 0 : e.meta
|
|
2452
2445
|
} : void 0;
|
|
2453
2446
|
function ke(e) {
|
|
2454
|
-
var
|
|
2447
|
+
var l, d, u, b, v, y, C;
|
|
2455
2448
|
const [t, n] = S(
|
|
2456
2449
|
() => {
|
|
2457
|
-
var k,
|
|
2458
|
-
return
|
|
2450
|
+
var k, R;
|
|
2451
|
+
return Dt({
|
|
2459
2452
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2460
2453
|
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
2461
2454
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2462
|
-
contentId: (
|
|
2455
|
+
contentId: (R = e.content) == null ? void 0 : R.id
|
|
2463
2456
|
});
|
|
2464
2457
|
}
|
|
2465
2458
|
);
|
|
2466
2459
|
function i(k) {
|
|
2467
|
-
|
|
2468
|
-
...
|
|
2460
|
+
s((R) => ({
|
|
2461
|
+
...R,
|
|
2469
2462
|
rootState: k
|
|
2470
2463
|
}));
|
|
2471
2464
|
}
|
|
@@ -2480,22 +2473,22 @@ function ke(e) {
|
|
|
2480
2473
|
...ue,
|
|
2481
2474
|
...e.customComponents || []
|
|
2482
2475
|
].reduce(
|
|
2483
|
-
(k, { component:
|
|
2476
|
+
(k, { component: R, ...W }) => ({
|
|
2484
2477
|
...k,
|
|
2485
|
-
[
|
|
2486
|
-
component:
|
|
2487
|
-
...me(
|
|
2478
|
+
[W.name]: {
|
|
2479
|
+
component: R,
|
|
2480
|
+
...me(W)
|
|
2488
2481
|
}
|
|
2489
2482
|
}),
|
|
2490
2483
|
{}
|
|
2491
2484
|
)
|
|
2492
|
-
), [r,
|
|
2493
|
-
content:
|
|
2485
|
+
), [r, s] = S(() => ({
|
|
2486
|
+
content: tn({
|
|
2494
2487
|
content: e.content,
|
|
2495
2488
|
data: e.data
|
|
2496
2489
|
}),
|
|
2497
2490
|
localState: void 0,
|
|
2498
|
-
rootState:
|
|
2491
|
+
rootState: en({
|
|
2499
2492
|
content: e.content,
|
|
2500
2493
|
data: e.data,
|
|
2501
2494
|
locale: e.locale
|
|
@@ -2514,9 +2507,9 @@ function ke(e) {
|
|
|
2514
2507
|
...ue,
|
|
2515
2508
|
...e.customComponents || []
|
|
2516
2509
|
].reduce(
|
|
2517
|
-
(k, { component:
|
|
2510
|
+
(k, { component: R, ...W }) => ({
|
|
2518
2511
|
...k,
|
|
2519
|
-
[
|
|
2512
|
+
[W.name]: me(W)
|
|
2520
2513
|
}),
|
|
2521
2514
|
{}
|
|
2522
2515
|
),
|
|
@@ -2524,16 +2517,17 @@ function ke(e) {
|
|
|
2524
2517
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2525
2518
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2526
2519
|
}));
|
|
2527
|
-
return /* @__PURE__ */
|
|
2520
|
+
return /* @__PURE__ */ c(
|
|
2528
2521
|
Te.Provider,
|
|
2529
2522
|
{
|
|
2530
2523
|
value: {
|
|
2531
2524
|
registeredComponents: a
|
|
2532
2525
|
},
|
|
2533
|
-
children: /* @__PURE__ */
|
|
2534
|
-
|
|
2526
|
+
children: /* @__PURE__ */ P(
|
|
2527
|
+
Qt,
|
|
2535
2528
|
{
|
|
2536
2529
|
content: e.content,
|
|
2530
|
+
data: e.data,
|
|
2537
2531
|
model: e.model,
|
|
2538
2532
|
context: e.context,
|
|
2539
2533
|
apiKey: e.apiKey,
|
|
@@ -2545,21 +2539,21 @@ function ke(e) {
|
|
|
2545
2539
|
builderContextSignal: r,
|
|
2546
2540
|
contentWrapper: e.contentWrapper,
|
|
2547
2541
|
contentWrapperProps: e.contentWrapperProps,
|
|
2548
|
-
setBuilderContextSignal:
|
|
2542
|
+
setBuilderContextSignal: s,
|
|
2549
2543
|
children: [
|
|
2550
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2551
|
-
/* @__PURE__ */
|
|
2552
|
-
|
|
2544
|
+
e.isSsrAbTest ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(Z, { scriptStr: t }) }) : null,
|
|
2545
|
+
/* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
|
|
2546
|
+
Zt,
|
|
2553
2547
|
{
|
|
2554
|
-
contentId: (
|
|
2548
|
+
contentId: (l = r.content) == null ? void 0 : l.id,
|
|
2555
2549
|
cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
|
|
2556
|
-
customFonts: (v = (
|
|
2550
|
+
customFonts: (v = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : v.customFonts
|
|
2557
2551
|
}
|
|
2558
2552
|
) }),
|
|
2559
|
-
/* @__PURE__ */
|
|
2560
|
-
|
|
2553
|
+
/* @__PURE__ */ c(
|
|
2554
|
+
ie,
|
|
2561
2555
|
{
|
|
2562
|
-
blocks: (
|
|
2556
|
+
blocks: (C = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : C.blocks,
|
|
2563
2557
|
context: r,
|
|
2564
2558
|
registeredComponents: a
|
|
2565
2559
|
}
|
|
@@ -2571,52 +2565,52 @@ function ke(e) {
|
|
|
2571
2565
|
);
|
|
2572
2566
|
}
|
|
2573
2567
|
function Ve(e) {
|
|
2574
|
-
var r,
|
|
2568
|
+
var r, s;
|
|
2575
2569
|
const [t, n] = S(
|
|
2576
|
-
() =>
|
|
2570
|
+
() => Lt({
|
|
2577
2571
|
canTrack: D(e.canTrack),
|
|
2578
2572
|
content: e.content
|
|
2579
2573
|
})
|
|
2580
2574
|
);
|
|
2581
2575
|
function i() {
|
|
2582
|
-
var
|
|
2583
|
-
return
|
|
2576
|
+
var l;
|
|
2577
|
+
return Ut(
|
|
2584
2578
|
M(e.content).map((d) => ({
|
|
2585
2579
|
id: d.testVariationId,
|
|
2586
2580
|
testRatio: d.testRatio
|
|
2587
2581
|
})),
|
|
2588
|
-
((
|
|
2582
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
2589
2583
|
);
|
|
2590
2584
|
}
|
|
2591
2585
|
function a() {
|
|
2592
|
-
return M(e.content).map((
|
|
2586
|
+
return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
2593
2587
|
}
|
|
2594
2588
|
function o() {
|
|
2595
|
-
var
|
|
2589
|
+
var l;
|
|
2596
2590
|
return t ? {
|
|
2597
2591
|
...e.content,
|
|
2598
|
-
testVariationId: (
|
|
2592
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
2599
2593
|
} : Me({
|
|
2600
2594
|
item: e.content,
|
|
2601
2595
|
canTrack: D(e.canTrack)
|
|
2602
2596
|
});
|
|
2603
2597
|
}
|
|
2604
|
-
return
|
|
2605
|
-
}, []), /* @__PURE__ */
|
|
2606
|
-
!e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */
|
|
2607
|
-
t ? /* @__PURE__ */
|
|
2608
|
-
/* @__PURE__ */
|
|
2598
|
+
return E(() => {
|
|
2599
|
+
}, []), /* @__PURE__ */ P(h, { children: [
|
|
2600
|
+
!e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(Z, { scriptStr: Mt() }) }) : null,
|
|
2601
|
+
t ? /* @__PURE__ */ P(h, { children: [
|
|
2602
|
+
/* @__PURE__ */ c(
|
|
2609
2603
|
H,
|
|
2610
2604
|
{
|
|
2611
2605
|
id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
|
|
2612
2606
|
styles: a()
|
|
2613
2607
|
}
|
|
2614
2608
|
),
|
|
2615
|
-
/* @__PURE__ */
|
|
2616
|
-
(
|
|
2609
|
+
/* @__PURE__ */ c(Z, { scriptStr: i() }),
|
|
2610
|
+
(s = M(e.content)) == null ? void 0 : s.map((l) => /* @__PURE__ */ c(
|
|
2617
2611
|
ke,
|
|
2618
2612
|
{
|
|
2619
|
-
content:
|
|
2613
|
+
content: l,
|
|
2620
2614
|
showContent: !1,
|
|
2621
2615
|
model: e.model,
|
|
2622
2616
|
data: e.data,
|
|
@@ -2634,10 +2628,10 @@ function Ve(e) {
|
|
|
2634
2628
|
contentWrapper: e.contentWrapper,
|
|
2635
2629
|
contentWrapperProps: e.contentWrapperProps
|
|
2636
2630
|
},
|
|
2637
|
-
|
|
2631
|
+
l.testVariationId
|
|
2638
2632
|
))
|
|
2639
2633
|
] }) : null,
|
|
2640
|
-
/* @__PURE__ */
|
|
2634
|
+
/* @__PURE__ */ c(
|
|
2641
2635
|
ke,
|
|
2642
2636
|
{
|
|
2643
2637
|
content: o(),
|
|
@@ -2661,7 +2655,7 @@ function Ve(e) {
|
|
|
2661
2655
|
)
|
|
2662
2656
|
] });
|
|
2663
2657
|
}
|
|
2664
|
-
const
|
|
2658
|
+
const nn = async ({
|
|
2665
2659
|
builderContextValue: e,
|
|
2666
2660
|
symbol: t
|
|
2667
2661
|
}) => {
|
|
@@ -2680,33 +2674,33 @@ const tn = async ({
|
|
|
2680
2674
|
U.error("Could not fetch symbol content: ", n);
|
|
2681
2675
|
});
|
|
2682
2676
|
};
|
|
2683
|
-
function
|
|
2684
|
-
var o, r,
|
|
2677
|
+
function an(e) {
|
|
2678
|
+
var o, r, s;
|
|
2685
2679
|
function t() {
|
|
2686
|
-
var
|
|
2680
|
+
var l, d;
|
|
2687
2681
|
return [
|
|
2688
2682
|
e.attributes.className,
|
|
2689
2683
|
"builder-symbol",
|
|
2690
|
-
(
|
|
2684
|
+
(l = e.symbol) != null && l.inline ? "builder-inline-symbol" : void 0,
|
|
2691
2685
|
(d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2692
2686
|
].filter(Boolean).join(" ");
|
|
2693
2687
|
}
|
|
2694
2688
|
const [n, i] = S(() => {
|
|
2695
|
-
var
|
|
2696
|
-
return (
|
|
2689
|
+
var l;
|
|
2690
|
+
return (l = e.symbol) == null ? void 0 : l.content;
|
|
2697
2691
|
});
|
|
2698
2692
|
function a() {
|
|
2699
|
-
n ||
|
|
2693
|
+
n || nn({
|
|
2700
2694
|
symbol: e.symbol,
|
|
2701
2695
|
builderContextValue: e.builderContext
|
|
2702
|
-
}).then((
|
|
2703
|
-
|
|
2696
|
+
}).then((l) => {
|
|
2697
|
+
l && i(l);
|
|
2704
2698
|
});
|
|
2705
2699
|
}
|
|
2706
|
-
return
|
|
2707
|
-
}, []),
|
|
2700
|
+
return E(() => {
|
|
2701
|
+
}, []), E(() => {
|
|
2708
2702
|
a();
|
|
2709
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
2703
|
+
}, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
|
|
2710
2704
|
Ve,
|
|
2711
2705
|
{
|
|
2712
2706
|
__isNestedRender: !0,
|
|
@@ -2719,36 +2713,36 @@ function nn(e) {
|
|
|
2719
2713
|
...e.builderContext.localState,
|
|
2720
2714
|
...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
|
|
2721
2715
|
},
|
|
2722
|
-
model: (
|
|
2716
|
+
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
2723
2717
|
content: n
|
|
2724
2718
|
}
|
|
2725
2719
|
) });
|
|
2726
2720
|
}
|
|
2727
|
-
const ln =
|
|
2721
|
+
const ln = ie, sn = Ve;
|
|
2728
2722
|
export {
|
|
2729
|
-
|
|
2723
|
+
ie as Blocks,
|
|
2730
2724
|
Ue as Button,
|
|
2731
|
-
|
|
2725
|
+
mt as Columns,
|
|
2732
2726
|
Ve as Content,
|
|
2733
|
-
|
|
2734
|
-
|
|
2727
|
+
ft as Fragment,
|
|
2728
|
+
bt as Image,
|
|
2735
2729
|
ln as RenderBlocks,
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2730
|
+
sn as RenderContent,
|
|
2731
|
+
xt as Section,
|
|
2732
|
+
an as Symbol,
|
|
2733
|
+
Vt as Text,
|
|
2734
|
+
Nt as Video,
|
|
2735
|
+
mn as _processContentResult,
|
|
2742
2736
|
Le as createRegisterComponentMessage,
|
|
2743
|
-
|
|
2744
|
-
|
|
2737
|
+
fn as fetchBuilderProps,
|
|
2738
|
+
hn as fetchEntries,
|
|
2745
2739
|
Ie as fetchOneEntry,
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2740
|
+
gn as getAllContent,
|
|
2741
|
+
bn as getBuilderSearchParams,
|
|
2742
|
+
xn as getContent,
|
|
2749
2743
|
V as isEditing,
|
|
2750
2744
|
_e as isPreviewing,
|
|
2751
2745
|
Fe as register,
|
|
2752
|
-
|
|
2753
|
-
|
|
2746
|
+
yn as setEditorSettings,
|
|
2747
|
+
Sn as track
|
|
2754
2748
|
};
|