@builder.io/sdk-react 4.2.1 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +17 -17
- package/lib/browser/blocks-exports.mjs +759 -742
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-4cf669a1.cjs → server-entry-06504dba.cjs} +1 -1
- package/lib/browser/{server-entry-5e98a993.js → server-entry-074665de.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4bab42b1.cjs → accordion-0768e15a.cjs} +1 -1
- package/lib/edge/{accordion-a8a363e4.js → accordion-d3831f48.js} +1 -1
- package/lib/edge/{blocks-e1f5b0d0.js → blocks-0269007e.js} +105 -106
- package/lib/edge/{blocks-d07d0261.cjs → blocks-2af1d7c9.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6734c0bb.cjs → button-050f4fef.cjs} +1 -1
- package/lib/edge/{button-bbcadacf.js → button-a478ff1a.js} +2 -2
- package/lib/edge/{columns-cf3081c6.js → columns-0b3181f1.js} +3 -3
- package/lib/edge/{columns-821cba14.cjs → columns-25375990.cjs} +1 -1
- package/lib/edge/{content-variants-a704e35c.js → content-variants-0dd65b50.js} +426 -415
- package/lib/edge/content-variants-4cab7215.cjs +302 -0
- package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-eb5aedd2.cjs} +1 -1
- package/lib/edge/{custom-code-f6c30129.js → custom-code-f7a0f1c1.js} +1 -1
- package/lib/edge/{embed-666d3cc4.cjs → embed-69114c35.cjs} +1 -1
- package/lib/edge/{embed-3c0b5564.js → embed-e4979560.js} +1 -1
- package/lib/edge/{form-8b068721.js → form-30fba682.js} +24 -21
- package/lib/edge/form-7b4bd399.cjs +1 -0
- package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-770bdff2.js} +1 -1
- package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
- package/lib/edge/{img-dfbd4080.js → img-3bb375bf.js} +1 -1
- package/lib/edge/{img-b04b9b6d.cjs → img-ddf74e12.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-d31d6451.cjs → input-a6caf021.cjs} +1 -1
- package/lib/edge/{input-665ef328.js → input-e4a9fe0b.js} +1 -1
- package/lib/edge/{personalization-container-e784836e.js → personalization-container-64f3cd71.js} +4 -4
- package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7030f08.cjs} +1 -1
- package/lib/edge/{select-c3085265.cjs → select-c217566c.cjs} +1 -1
- package/lib/edge/{select-5fe49bd4.js → select-c59c9ac6.js} +1 -1
- package/lib/edge/{server-entry-acf5ce7d.cjs → server-entry-67200cf1.cjs} +1 -1
- package/lib/edge/{server-entry-c9d5300f.js → server-entry-fb5f2b80.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a17ee2d7.js → slot-26ec2911.js} +3 -3
- package/lib/edge/{slot-cbbbb02e.cjs → slot-ccd946e2.cjs} +1 -1
- package/lib/edge/{symbol-9f960685.js → symbol-10cb2f77.js} +26 -23
- package/lib/edge/symbol-4548e942.cjs +1 -0
- package/lib/edge/tabs-82a9170c.cjs +1 -0
- package/lib/edge/{tabs-26ac5b2f.js → tabs-f9110171.js} +24 -23
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +919 -902
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-48724189.js → server-entry-83d3751d.js} +1 -1
- package/lib/node/{server-entry-562c0663.cjs → server-entry-d40e4b66.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-3b6199a0.cjs → setIvm-0a5b2ba2.cjs} +1 -1
- package/lib/node/{setIvm-a7aba6d2.js → setIvm-596668c3.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-fdc70f22.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/content-variants-ec180883.cjs +0 -302
- package/lib/edge/form-51f639ab.cjs +0 -1
- package/lib/edge/symbol-b56b5675.cjs +0 -1
- package/lib/edge/tabs-bf6643d7.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as
|
|
3
|
-
import { setClientUserAttributes as Hi } from "./server-entry-
|
|
4
|
-
import { jsx as s, Fragment as
|
|
2
|
+
import { TARGET as O, isEditing as _, isBrowser as K, getUserAttributes as ct, checkIsDefined as ae, logger as Q, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as ee, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-074665de.js";
|
|
3
|
+
import { setClientUserAttributes as Hi } from "./server-entry-074665de.js";
|
|
4
|
+
import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
|
|
5
5
|
import * as gt from "react";
|
|
6
|
-
import { createContext as _e, useEffect as
|
|
6
|
+
import { createContext as _e, useEffect as N, useState as k, useRef as z, useContext as we, createElement as Ue } from "react";
|
|
7
7
|
const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
|
|
8
8
|
function ye(e) {
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
9
|
+
return /* @__PURE__ */ s(P, { children: yt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const G = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -26,7 +26,7 @@ function pt(e) {
|
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[G()]: `${e.link ? "" : "builder-button"} ${e.attributes[G()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -77,9 +77,9 @@ const pe = _e({
|
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
79
|
}), xt = () => ({
|
|
80
|
-
isEditing:
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
80
|
+
isEditing: _(),
|
|
81
|
+
isBrowser: K(),
|
|
82
|
+
isServer: !K(),
|
|
83
83
|
getUserAttributes: () => ct()
|
|
84
84
|
}), St = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
@@ -141,14 +141,14 @@ const Ct = ({
|
|
|
141
141
|
if (!kt())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
}, Tt = (e) => (
|
|
144
|
+
return t && n && !i ? (e && Q.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;
|
|
145
|
+
}, Tt = (e) => (K() || Ct({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
147
|
}), Ee(e)), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
|
|
148
148
|
var t, n, i, r, o, a;
|
|
149
149
|
return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = wt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function Y({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
@@ -178,8 +178,8 @@ function G({
|
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
180
|
return Tt(c);
|
|
181
|
-
} catch (
|
|
182
|
-
|
|
181
|
+
} catch (d) {
|
|
182
|
+
Q.error("Failed code evaluation: " + d.message, {
|
|
183
183
|
code: e
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
@@ -198,7 +198,7 @@ const Pt = (e, t) => {
|
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
200
200
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) =>
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => Y({
|
|
202
202
|
code: o,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
@@ -309,7 +309,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
|
|
|
309
309
|
return e;
|
|
310
310
|
const o = $t(e);
|
|
311
311
|
for (const a in e.bindings) {
|
|
312
|
-
const l = e.bindings[a], c =
|
|
312
|
+
const l = e.bindings[a], c = Y({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
@@ -343,13 +343,13 @@ function Ft(e, t, n = {}) {
|
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
|
-
const
|
|
347
|
-
!l && n.leading === !1 && (l =
|
|
348
|
-
const
|
|
349
|
-
return i = this, r = arguments,
|
|
346
|
+
const d = Date.now();
|
|
347
|
+
!l && n.leading === !1 && (l = d);
|
|
348
|
+
const h = t - (d - l);
|
|
349
|
+
return i = this, r = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = d, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Z(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const r = arguments[i];
|
|
@@ -393,8 +393,8 @@ function Ge(e) {
|
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
@@ -411,23 +411,23 @@ function Ut(e) {
|
|
|
411
411
|
let i = !1, r = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
415
415
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !r && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
419
|
const a = Ft(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
|
-
function l(
|
|
423
|
-
const b =
|
|
424
|
-
return b.bottom >
|
|
422
|
+
function l(h) {
|
|
423
|
+
const b = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
424
|
+
return b.bottom > f && b.top < u - f;
|
|
425
425
|
}
|
|
426
426
|
const c = e.steps[0].styles;
|
|
427
|
-
function
|
|
428
|
-
|
|
427
|
+
function d() {
|
|
428
|
+
Z(n.style, c);
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
d(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", a, {
|
|
433
433
|
capture: !0,
|
|
@@ -439,7 +439,7 @@ const Qe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${ce(n)}: ${i};`;
|
|
441
441
|
}).filter(ae), Ht = (e) => Qe(e).join(`
|
|
442
|
-
`),
|
|
442
|
+
`), X = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
@@ -505,7 +505,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
} = e;
|
|
506
506
|
if (!(n != null && n.collection))
|
|
507
507
|
return;
|
|
508
|
-
const r =
|
|
508
|
+
const r = Y({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
@@ -515,15 +515,15 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(r))
|
|
516
516
|
return;
|
|
517
517
|
const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
-
return r.map((c,
|
|
518
|
+
return r.map((c, d) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
|
-
$index:
|
|
523
|
+
$index: d,
|
|
524
524
|
$item: c,
|
|
525
525
|
[a]: c,
|
|
526
|
-
[`$${a}Index`]:
|
|
526
|
+
[`$${a}Index`]: d
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
@@ -608,7 +608,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function te(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -624,61 +624,61 @@ function Yt(e) {
|
|
|
624
624
|
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
|
-
var
|
|
627
|
+
var T, E, U, H, q;
|
|
628
628
|
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
|
|
629
|
-
((
|
|
630
|
-
), l = !!((
|
|
631
|
-
if (!
|
|
629
|
+
((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
|
|
630
|
+
), l = !!((U = (E = o == null ? void 0 : o.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, u = i.id;
|
|
631
|
+
if (!u)
|
|
632
632
|
return "";
|
|
633
|
-
const
|
|
634
|
-
className:
|
|
633
|
+
const x = c ? X({
|
|
634
|
+
className: u,
|
|
635
635
|
styles: c
|
|
636
|
-
}) : "",
|
|
637
|
-
className:
|
|
638
|
-
styles:
|
|
636
|
+
}) : "", f = d ? X({
|
|
637
|
+
className: u,
|
|
638
|
+
styles: d,
|
|
639
639
|
mediaQuery: de(
|
|
640
640
|
"medium",
|
|
641
641
|
a
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
644
|
-
className:
|
|
645
|
-
styles:
|
|
643
|
+
}) : "", m = h ? X({
|
|
644
|
+
className: u,
|
|
645
|
+
styles: h,
|
|
646
646
|
mediaQuery: de(
|
|
647
647
|
"small",
|
|
648
648
|
a
|
|
649
649
|
)
|
|
650
|
-
}) : "",
|
|
651
|
-
className:
|
|
650
|
+
}) : "", y = b && l ? X({
|
|
651
|
+
className: u,
|
|
652
652
|
styles: b,
|
|
653
653
|
mediaQuery: de(
|
|
654
654
|
"xsmall",
|
|
655
655
|
a
|
|
656
656
|
)
|
|
657
|
-
}) : "",
|
|
657
|
+
}) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
658
|
let S = "";
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
S =
|
|
662
|
-
className: `${
|
|
659
|
+
if (g) {
|
|
660
|
+
const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
661
|
+
S = X({
|
|
662
|
+
className: `${u}:hover`,
|
|
663
663
|
styles: {
|
|
664
|
-
...
|
|
665
|
-
transition: `all ${
|
|
666
|
-
|
|
664
|
+
...p,
|
|
665
|
+
transition: `all ${g.duration}s ${ce(
|
|
666
|
+
g.easing
|
|
667
667
|
)}`,
|
|
668
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
669
669
|
}
|
|
670
670
|
}) || "";
|
|
671
671
|
}
|
|
672
672
|
return [
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
673
|
+
x,
|
|
674
|
+
f,
|
|
675
|
+
m,
|
|
676
|
+
y,
|
|
677
677
|
S
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
|
-
return /* @__PURE__ */ s(
|
|
681
|
-
|
|
680
|
+
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
681
|
+
te,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -689,7 +689,7 @@ function Yt(e) {
|
|
|
689
689
|
function Xt(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) =>
|
|
692
|
+
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -740,7 +740,7 @@ function xe({
|
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[G()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
745
|
return tn({
|
|
746
746
|
properties: n,
|
|
@@ -770,12 +770,12 @@ function rn(e) {
|
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
772
|
function on(e) {
|
|
773
|
-
return
|
|
774
|
-
}, []), /* @__PURE__ */ s(
|
|
773
|
+
return N(() => {
|
|
774
|
+
}, []), /* @__PURE__ */ s(P, { children: e.children });
|
|
775
775
|
}
|
|
776
776
|
function an(e) {
|
|
777
777
|
var i, r;
|
|
778
|
-
|
|
778
|
+
k(() => 0);
|
|
779
779
|
function t() {
|
|
780
780
|
return e.includeBlockProps ? {
|
|
781
781
|
...xe({
|
|
@@ -794,8 +794,8 @@ function an(e) {
|
|
|
794
794
|
function n() {
|
|
795
795
|
return e.wrapperProps;
|
|
796
796
|
}
|
|
797
|
-
return
|
|
798
|
-
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(
|
|
797
|
+
return N(() => {
|
|
798
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
799
799
|
on,
|
|
800
800
|
{
|
|
801
801
|
load: e.Wrapper.load,
|
|
@@ -838,12 +838,11 @@ const ln = ({
|
|
|
838
838
|
};
|
|
839
839
|
function Pe(e) {
|
|
840
840
|
var i;
|
|
841
|
-
|
|
842
|
-
const [t, n] =
|
|
841
|
+
k(() => !1);
|
|
842
|
+
const [t, n] = k(
|
|
843
843
|
() => e.isInteractive ? an : e.componentRef
|
|
844
844
|
);
|
|
845
|
-
return
|
|
846
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
845
|
+
return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
847
846
|
t,
|
|
848
847
|
{
|
|
849
848
|
...ln({
|
|
@@ -856,7 +855,7 @@ function Pe(e) {
|
|
|
856
855
|
isInteractive: e.isInteractive,
|
|
857
856
|
contextValue: e.context
|
|
858
857
|
}),
|
|
859
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
858
|
+
children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
860
859
|
ue,
|
|
861
860
|
{
|
|
862
861
|
block: r,
|
|
@@ -865,13 +864,13 @@ function Pe(e) {
|
|
|
865
864
|
linkComponent: e.linkComponent
|
|
866
865
|
},
|
|
867
866
|
r.id
|
|
868
|
-
))
|
|
867
|
+
)) }) : null
|
|
869
868
|
}
|
|
870
869
|
) }) : null });
|
|
871
870
|
}
|
|
872
871
|
function Ve(e) {
|
|
873
|
-
const [t, n] =
|
|
874
|
-
return
|
|
872
|
+
const [t, n] = k(() => e.repeatContext);
|
|
873
|
+
return N(() => {
|
|
875
874
|
n(e.repeatContext);
|
|
876
875
|
}, [e.repeatContext]), /* @__PURE__ */ s(pe.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
877
876
|
ue,
|
|
@@ -884,29 +883,29 @@ function Ve(e) {
|
|
|
884
883
|
) });
|
|
885
884
|
}
|
|
886
885
|
function ue(e) {
|
|
887
|
-
var
|
|
886
|
+
var h, b, u, x;
|
|
888
887
|
function t() {
|
|
889
888
|
return zt({
|
|
890
889
|
block: e.block,
|
|
891
890
|
context: e.context
|
|
892
891
|
});
|
|
893
892
|
}
|
|
894
|
-
const [n, i] =
|
|
893
|
+
const [n, i] = k(() => ({
|
|
895
894
|
value: null,
|
|
896
895
|
update: !1
|
|
897
896
|
}));
|
|
898
897
|
function r() {
|
|
899
|
-
var
|
|
898
|
+
var m;
|
|
900
899
|
if (n.value && !n.update && !se())
|
|
901
900
|
return n.value;
|
|
902
|
-
const
|
|
901
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Ot({
|
|
903
902
|
block: e.block,
|
|
904
903
|
localState: e.context.localState,
|
|
905
904
|
rootState: e.context.rootState,
|
|
906
905
|
rootSetState: e.context.rootSetState,
|
|
907
906
|
context: e.context.context
|
|
908
907
|
});
|
|
909
|
-
return n.value =
|
|
908
|
+
return n.value = f, n.update = !1, f;
|
|
910
909
|
}
|
|
911
910
|
function o() {
|
|
912
911
|
return jt({
|
|
@@ -916,25 +915,25 @@ function ue(e) {
|
|
|
916
915
|
});
|
|
917
916
|
}
|
|
918
917
|
function a() {
|
|
919
|
-
var
|
|
920
|
-
return e.block.tagName === "a" || ((
|
|
918
|
+
var m;
|
|
919
|
+
return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
921
920
|
}
|
|
922
921
|
function l() {
|
|
923
|
-
var
|
|
924
|
-
if ((
|
|
925
|
-
return !!((
|
|
926
|
-
const
|
|
927
|
-
return ("show" in r() ? r().show : !0) && !
|
|
922
|
+
var y, g;
|
|
923
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
924
|
+
return !!((g = t == null ? void 0 : t()) != null && g.length);
|
|
925
|
+
const f = "hide" in r() ? r().hide : !1;
|
|
926
|
+
return ("show" in r() ? r().show : !0) && !f;
|
|
928
927
|
}
|
|
929
928
|
function c() {
|
|
930
|
-
var
|
|
931
|
-
return !((
|
|
929
|
+
var m, y;
|
|
930
|
+
return !((m = o == null ? void 0 : o()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
|
|
932
931
|
}
|
|
933
|
-
function
|
|
934
|
-
var
|
|
932
|
+
function d() {
|
|
933
|
+
var f, m, y, g;
|
|
935
934
|
return {
|
|
936
|
-
blockChildren: (
|
|
937
|
-
componentRef: (
|
|
935
|
+
blockChildren: (f = r().children) != null ? f : [],
|
|
936
|
+
componentRef: (m = o == null ? void 0 : o()) == null ? void 0 : m.component,
|
|
938
937
|
componentOptions: {
|
|
939
938
|
...Rt(r(), e.context),
|
|
940
939
|
...Gt(o(), r()),
|
|
@@ -950,54 +949,54 @@ function ue(e) {
|
|
|
950
949
|
linkComponent: e.linkComponent,
|
|
951
950
|
registeredComponents: e.registeredComponents,
|
|
952
951
|
builderBlock: r(),
|
|
953
|
-
includeBlockProps: ((
|
|
954
|
-
isInteractive: !((
|
|
952
|
+
includeBlockProps: ((y = o == null ? void 0 : o()) == null ? void 0 : y.noWrap) === !0,
|
|
953
|
+
isInteractive: !((g = o == null ? void 0 : o()) != null && g.isRSC && O === "rsc")
|
|
955
954
|
};
|
|
956
955
|
}
|
|
957
|
-
return
|
|
958
|
-
const
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
...
|
|
962
|
-
elementId:
|
|
956
|
+
return N(() => {
|
|
957
|
+
const f = r().id, m = r().animations;
|
|
958
|
+
m && f && Lt(
|
|
959
|
+
m.map((y) => ({
|
|
960
|
+
...y,
|
|
961
|
+
elementId: f
|
|
963
962
|
}))
|
|
964
963
|
);
|
|
965
|
-
}, []),
|
|
964
|
+
}, []), N(() => {
|
|
966
965
|
n.update = !0;
|
|
967
|
-
}), /* @__PURE__ */ s(
|
|
966
|
+
}), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
|
|
968
967
|
/* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
|
|
969
|
-
(
|
|
968
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
970
969
|
Ve,
|
|
971
970
|
{
|
|
972
|
-
repeatContext:
|
|
973
|
-
block:
|
|
971
|
+
repeatContext: f.context,
|
|
972
|
+
block: f.block,
|
|
974
973
|
registeredComponents: e.registeredComponents,
|
|
975
974
|
linkComponent: e.linkComponent
|
|
976
975
|
},
|
|
977
|
-
Re(
|
|
976
|
+
Re(m)
|
|
978
977
|
)) }) : /* @__PURE__ */ s(
|
|
979
978
|
Pe,
|
|
980
979
|
{
|
|
981
|
-
componentRef:
|
|
982
|
-
componentOptions:
|
|
983
|
-
blockChildren:
|
|
984
|
-
context:
|
|
985
|
-
registeredComponents:
|
|
986
|
-
linkComponent:
|
|
987
|
-
builderBlock:
|
|
988
|
-
includeBlockProps:
|
|
989
|
-
isInteractive:
|
|
980
|
+
componentRef: d().componentRef,
|
|
981
|
+
componentOptions: d().componentOptions,
|
|
982
|
+
blockChildren: d().blockChildren,
|
|
983
|
+
context: d().context,
|
|
984
|
+
registeredComponents: d().registeredComponents,
|
|
985
|
+
linkComponent: d().linkComponent,
|
|
986
|
+
builderBlock: d().builderBlock,
|
|
987
|
+
includeBlockProps: d().includeBlockProps,
|
|
988
|
+
isInteractive: d().isInteractive
|
|
990
989
|
}
|
|
991
|
-
) : /* @__PURE__ */ s(
|
|
990
|
+
) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
992
991
|
Ve,
|
|
993
992
|
{
|
|
994
|
-
repeatContext:
|
|
995
|
-
block:
|
|
993
|
+
repeatContext: f.context,
|
|
994
|
+
block: f.block,
|
|
996
995
|
registeredComponents: e.registeredComponents,
|
|
997
996
|
linkComponent: e.linkComponent
|
|
998
997
|
},
|
|
999
|
-
Re(
|
|
1000
|
-
)) }) : /* @__PURE__ */
|
|
998
|
+
Re(m)
|
|
999
|
+
)) }) : /* @__PURE__ */ D(
|
|
1001
1000
|
rn,
|
|
1002
1001
|
{
|
|
1003
1002
|
Wrapper: a(),
|
|
@@ -1007,26 +1006,26 @@ function ue(e) {
|
|
|
1007
1006
|
/* @__PURE__ */ s(
|
|
1008
1007
|
Pe,
|
|
1009
1008
|
{
|
|
1010
|
-
componentRef:
|
|
1011
|
-
componentOptions:
|
|
1012
|
-
blockChildren:
|
|
1013
|
-
context:
|
|
1014
|
-
registeredComponents:
|
|
1015
|
-
linkComponent:
|
|
1016
|
-
builderBlock:
|
|
1017
|
-
includeBlockProps:
|
|
1018
|
-
isInteractive:
|
|
1009
|
+
componentRef: d().componentRef,
|
|
1010
|
+
componentOptions: d().componentOptions,
|
|
1011
|
+
blockChildren: d().blockChildren,
|
|
1012
|
+
context: d().context,
|
|
1013
|
+
registeredComponents: d().registeredComponents,
|
|
1014
|
+
linkComponent: d().linkComponent,
|
|
1015
|
+
builderBlock: d().builderBlock,
|
|
1016
|
+
includeBlockProps: d().includeBlockProps,
|
|
1017
|
+
isInteractive: d().isInteractive
|
|
1019
1018
|
}
|
|
1020
1019
|
),
|
|
1021
|
-
(b = c()) == null ? void 0 : b.map((
|
|
1020
|
+
(b = c()) == null ? void 0 : b.map((f) => /* @__PURE__ */ s(
|
|
1022
1021
|
ue,
|
|
1023
1022
|
{
|
|
1024
|
-
block:
|
|
1023
|
+
block: f,
|
|
1025
1024
|
registeredComponents: e.registeredComponents,
|
|
1026
1025
|
linkComponent: e.linkComponent,
|
|
1027
1026
|
context: e.context
|
|
1028
1027
|
},
|
|
1029
|
-
|
|
1028
|
+
f.id
|
|
1030
1029
|
))
|
|
1031
1030
|
]
|
|
1032
1031
|
}
|
|
@@ -1034,8 +1033,8 @@ function ue(e) {
|
|
|
1034
1033
|
] }) : null });
|
|
1035
1034
|
}
|
|
1036
1035
|
function sn(e) {
|
|
1037
|
-
const t =
|
|
1038
|
-
|
|
1036
|
+
const t = z(null);
|
|
1037
|
+
k(() => !1);
|
|
1039
1038
|
function n() {
|
|
1040
1039
|
var a;
|
|
1041
1040
|
return [
|
|
@@ -1052,7 +1051,7 @@ function sn(e) {
|
|
|
1052
1051
|
}
|
|
1053
1052
|
function r() {
|
|
1054
1053
|
var a, l;
|
|
1055
|
-
|
|
1054
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1056
1055
|
{
|
|
1057
1056
|
type: "builder.clickEmptyBlocks",
|
|
1058
1057
|
data: {
|
|
@@ -1065,7 +1064,7 @@ function sn(e) {
|
|
|
1065
1064
|
}
|
|
1066
1065
|
function o() {
|
|
1067
1066
|
var a, l;
|
|
1068
|
-
|
|
1067
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1069
1068
|
{
|
|
1070
1069
|
type: "builder.hoverEmptyBlocks",
|
|
1071
1070
|
data: {
|
|
@@ -1076,10 +1075,10 @@ function sn(e) {
|
|
|
1076
1075
|
"*"
|
|
1077
1076
|
));
|
|
1078
1077
|
}
|
|
1079
|
-
return
|
|
1080
|
-
}, []),
|
|
1081
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1078
|
+
return N(() => {
|
|
1079
|
+
}, []), N(() => {
|
|
1080
|
+
}, [e.blocks]), /* @__PURE__ */ D(P, { children: [
|
|
1081
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1083
1082
|
display: flex;
|
|
1084
1083
|
flex-direction: column;
|
|
1085
1084
|
align-items: stretch;
|
|
@@ -1088,7 +1087,7 @@ function sn(e) {
|
|
|
1088
1087
|
e.BlocksWrapper,
|
|
1089
1088
|
{
|
|
1090
1089
|
ref: t,
|
|
1091
|
-
className: n() + " props-blocks-wrapper-
|
|
1090
|
+
className: n() + " props-blocks-wrapper-b46bf284",
|
|
1092
1091
|
"builder-path": i(),
|
|
1093
1092
|
"builder-parent-id": e.parent,
|
|
1094
1093
|
style: e.styleProp,
|
|
@@ -1101,10 +1100,10 @@ function sn(e) {
|
|
|
1101
1100
|
)
|
|
1102
1101
|
] });
|
|
1103
1102
|
}
|
|
1104
|
-
function
|
|
1103
|
+
function M(e) {
|
|
1105
1104
|
var i, r, o;
|
|
1106
1105
|
const t = we(pe), n = we(He);
|
|
1107
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ D(
|
|
1108
1107
|
sn,
|
|
1109
1108
|
{
|
|
1110
1109
|
blocks: e.blocks,
|
|
@@ -1116,7 +1115,7 @@ function U(e) {
|
|
|
1116
1115
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1117
1116
|
children: [
|
|
1118
1117
|
e.children,
|
|
1119
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1118
|
+
e.blocks ? /* @__PURE__ */ s(P, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
|
|
1120
1119
|
ue,
|
|
1121
1120
|
{
|
|
1122
1121
|
block: a,
|
|
@@ -1132,7 +1131,7 @@ function U(e) {
|
|
|
1132
1131
|
}
|
|
1133
1132
|
const cn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1134
1133
|
function un(e) {
|
|
1135
|
-
var
|
|
1134
|
+
var m, y;
|
|
1136
1135
|
function t() {
|
|
1137
1136
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1138
1137
|
}
|
|
@@ -1142,147 +1141,147 @@ function un(e) {
|
|
|
1142
1141
|
function i() {
|
|
1143
1142
|
return e.stackColumnsAt || "tablet";
|
|
1144
1143
|
}
|
|
1145
|
-
function r(
|
|
1146
|
-
return
|
|
1144
|
+
function r(g) {
|
|
1145
|
+
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
1147
1146
|
}
|
|
1148
|
-
function o(
|
|
1147
|
+
function o(g) {
|
|
1149
1148
|
var S;
|
|
1150
|
-
return ((S = n()[
|
|
1149
|
+
return ((S = n()[g]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1151
1150
|
}
|
|
1152
|
-
function a(
|
|
1153
|
-
const S = o(
|
|
1154
|
-
return `calc(${S}% - ${
|
|
1151
|
+
function a(g) {
|
|
1152
|
+
const S = o(g), T = t() * (n().length - 1) * (S / 100);
|
|
1153
|
+
return `calc(${S}% - ${T}px)`;
|
|
1155
1154
|
}
|
|
1156
1155
|
function l({
|
|
1157
|
-
stackedStyle:
|
|
1156
|
+
stackedStyle: g,
|
|
1158
1157
|
desktopStyle: S
|
|
1159
1158
|
}) {
|
|
1160
|
-
return i() === "tablet" ?
|
|
1159
|
+
return i() === "tablet" ? g : S;
|
|
1161
1160
|
}
|
|
1162
1161
|
function c({
|
|
1163
|
-
stackedStyle:
|
|
1162
|
+
stackedStyle: g,
|
|
1164
1163
|
desktopStyle: S
|
|
1165
1164
|
}) {
|
|
1166
|
-
return i() === "never" ? S :
|
|
1165
|
+
return i() === "never" ? S : g;
|
|
1167
1166
|
}
|
|
1168
|
-
function
|
|
1167
|
+
function d() {
|
|
1169
1168
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1170
1169
|
}
|
|
1171
|
-
function
|
|
1170
|
+
function h() {
|
|
1172
1171
|
return {
|
|
1173
|
-
"--flex-dir":
|
|
1172
|
+
"--flex-dir": d(),
|
|
1174
1173
|
"--flex-dir-tablet": l({
|
|
1175
|
-
stackedStyle:
|
|
1174
|
+
stackedStyle: d(),
|
|
1176
1175
|
desktopStyle: "row"
|
|
1177
1176
|
})
|
|
1178
1177
|
};
|
|
1179
1178
|
}
|
|
1180
|
-
function b(
|
|
1181
|
-
const S =
|
|
1179
|
+
function b(g) {
|
|
1180
|
+
const S = g === 0 ? 0 : t(), T = a(g), E = `${S}px`, U = "100%", H = 0;
|
|
1182
1181
|
return {
|
|
1183
1182
|
...{
|
|
1184
1183
|
display: "flex",
|
|
1185
1184
|
flexDirection: "column",
|
|
1186
1185
|
alignItems: "stretch"
|
|
1187
1186
|
},
|
|
1188
|
-
width:
|
|
1189
|
-
["marginLeft"]:
|
|
1187
|
+
width: T,
|
|
1188
|
+
["marginLeft"]: E,
|
|
1190
1189
|
"--column-width-mobile": c({
|
|
1191
|
-
stackedStyle:
|
|
1192
|
-
desktopStyle:
|
|
1190
|
+
stackedStyle: U,
|
|
1191
|
+
desktopStyle: T
|
|
1193
1192
|
}),
|
|
1194
1193
|
"--column-margin-left-mobile": c({
|
|
1195
|
-
stackedStyle:
|
|
1196
|
-
desktopStyle:
|
|
1194
|
+
stackedStyle: H,
|
|
1195
|
+
desktopStyle: E
|
|
1197
1196
|
}),
|
|
1198
1197
|
"--column-width-tablet": l({
|
|
1199
|
-
stackedStyle:
|
|
1200
|
-
desktopStyle:
|
|
1198
|
+
stackedStyle: U,
|
|
1199
|
+
desktopStyle: T
|
|
1201
1200
|
}),
|
|
1202
1201
|
"--column-margin-left-tablet": l({
|
|
1203
|
-
stackedStyle:
|
|
1204
|
-
desktopStyle:
|
|
1202
|
+
stackedStyle: H,
|
|
1203
|
+
desktopStyle: E
|
|
1205
1204
|
})
|
|
1206
1205
|
};
|
|
1207
1206
|
}
|
|
1208
|
-
function
|
|
1209
|
-
var
|
|
1207
|
+
function u(g) {
|
|
1208
|
+
var T, E;
|
|
1210
1209
|
return et(
|
|
1211
|
-
((
|
|
1212
|
-
)[
|
|
1210
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1211
|
+
)[g].max;
|
|
1213
1212
|
}
|
|
1214
|
-
function
|
|
1215
|
-
const
|
|
1213
|
+
function x() {
|
|
1214
|
+
const g = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1216
1215
|
return `
|
|
1217
|
-
@media (max-width: ${
|
|
1216
|
+
@media (max-width: ${u("medium")}px) {
|
|
1218
1217
|
.${e.builderBlock.id}-breakpoints {
|
|
1219
1218
|
flex-direction: var(--flex-dir-tablet);
|
|
1220
1219
|
align-items: stretch;
|
|
1221
1220
|
}
|
|
1222
1221
|
|
|
1223
|
-
${
|
|
1222
|
+
${g} {
|
|
1224
1223
|
width: var(--column-width-tablet) !important;
|
|
1225
1224
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1226
1225
|
}
|
|
1227
1226
|
}
|
|
1228
1227
|
|
|
1229
|
-
@media (max-width: ${
|
|
1228
|
+
@media (max-width: ${u("small")}px) {
|
|
1230
1229
|
.${e.builderBlock.id}-breakpoints {
|
|
1231
1230
|
flex-direction: var(--flex-dir);
|
|
1232
1231
|
align-items: stretch;
|
|
1233
1232
|
}
|
|
1234
1233
|
|
|
1235
|
-
${
|
|
1234
|
+
${g} {
|
|
1236
1235
|
width: var(--column-width-mobile) !important;
|
|
1237
1236
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1238
1237
|
}
|
|
1239
1238
|
},
|
|
1240
1239
|
`;
|
|
1241
1240
|
}
|
|
1242
|
-
function
|
|
1241
|
+
function f(g, S) {
|
|
1243
1242
|
return {
|
|
1244
|
-
...
|
|
1245
|
-
href:
|
|
1243
|
+
...g.link ? {
|
|
1244
|
+
href: g.link
|
|
1246
1245
|
} : {},
|
|
1247
|
-
[
|
|
1246
|
+
[G()]: "builder-column",
|
|
1248
1247
|
style: Ye(b(S))
|
|
1249
1248
|
};
|
|
1250
1249
|
}
|
|
1251
|
-
return /* @__PURE__ */
|
|
1250
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
1252
1251
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1253
1252
|
display: flex;
|
|
1254
1253
|
line-height: normal;
|
|
1255
1254
|
height: 100%;
|
|
1256
1255
|
}` }),
|
|
1257
|
-
/* @__PURE__ */
|
|
1256
|
+
/* @__PURE__ */ D(
|
|
1258
1257
|
"div",
|
|
1259
1258
|
{
|
|
1260
|
-
className: cn((
|
|
1261
|
-
style:
|
|
1259
|
+
className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1260
|
+
style: h(),
|
|
1262
1261
|
children: [
|
|
1263
1262
|
/* @__PURE__ */ s(
|
|
1264
|
-
|
|
1263
|
+
te,
|
|
1265
1264
|
{
|
|
1266
1265
|
id: "builderio-columns",
|
|
1267
|
-
styles:
|
|
1266
|
+
styles: x(),
|
|
1268
1267
|
nonce: e.builderContext.nonce
|
|
1269
1268
|
}
|
|
1270
1269
|
),
|
|
1271
|
-
(
|
|
1270
|
+
(y = e.columns) == null ? void 0 : y.map((g, S) => /* @__PURE__ */ s(
|
|
1272
1271
|
ye,
|
|
1273
1272
|
{
|
|
1274
|
-
TagName: r(
|
|
1273
|
+
TagName: r(g),
|
|
1275
1274
|
actionAttributes: {},
|
|
1276
|
-
attributes:
|
|
1275
|
+
attributes: f(g, S),
|
|
1277
1276
|
children: /* @__PURE__ */ s(
|
|
1278
|
-
|
|
1277
|
+
M,
|
|
1279
1278
|
{
|
|
1280
1279
|
path: `columns.${S}.blocks`,
|
|
1281
1280
|
parent: e.builderBlock.id,
|
|
1282
1281
|
context: e.builderContext,
|
|
1283
1282
|
registeredComponents: e.builderComponents,
|
|
1284
1283
|
linkComponent: e.builderLinkComponent,
|
|
1285
|
-
blocks:
|
|
1284
|
+
blocks: g.blocks,
|
|
1286
1285
|
styleProp: {
|
|
1287
1286
|
flexGrow: "1"
|
|
1288
1287
|
}
|
|
@@ -1330,16 +1329,16 @@ function ne(e) {
|
|
|
1330
1329
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1331
1330
|
}
|
|
1332
1331
|
function hn(e) {
|
|
1333
|
-
var r, o, a, l, c,
|
|
1332
|
+
var r, o, a, l, c, d;
|
|
1334
1333
|
function t() {
|
|
1335
|
-
var
|
|
1334
|
+
var u;
|
|
1336
1335
|
const b = e.image || e.src;
|
|
1337
1336
|
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1338
1337
|
// images, otherwise you can supply this prop manually
|
|
1339
1338
|
!(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
|
|
1340
1339
|
return e.srcset;
|
|
1341
1340
|
if (!e.noWebp) {
|
|
1342
|
-
if (e.srcset && ((
|
|
1341
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1343
1342
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1344
1343
|
return console.debug("Removed given srcset"), ne(b);
|
|
1345
1344
|
} else if (e.image && !e.srcset)
|
|
@@ -1348,21 +1347,21 @@ function hn(e) {
|
|
|
1348
1347
|
}
|
|
1349
1348
|
}
|
|
1350
1349
|
function n() {
|
|
1351
|
-
var
|
|
1352
|
-
return (
|
|
1350
|
+
var h;
|
|
1351
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1353
1352
|
}
|
|
1354
1353
|
function i() {
|
|
1355
|
-
const
|
|
1354
|
+
const h = {
|
|
1356
1355
|
position: "absolute",
|
|
1357
1356
|
height: "100%",
|
|
1358
1357
|
width: "100%",
|
|
1359
1358
|
left: "0px",
|
|
1360
1359
|
top: "0px"
|
|
1361
1360
|
};
|
|
1362
|
-
return e.aspectRatio ?
|
|
1361
|
+
return e.aspectRatio ? h : void 0;
|
|
1363
1362
|
}
|
|
1364
|
-
return
|
|
1365
|
-
}, []), /* @__PURE__ */
|
|
1363
|
+
return N(() => {
|
|
1364
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
1366
1365
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1367
1366
|
opacity: 1;
|
|
1368
1367
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1380,8 +1379,8 @@ function hn(e) {
|
|
|
1380
1379
|
width: 100%;
|
|
1381
1380
|
height: 100%;
|
|
1382
1381
|
}` }),
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1382
|
+
/* @__PURE__ */ D(P, { children: [
|
|
1383
|
+
/* @__PURE__ */ D("picture", { children: [
|
|
1385
1384
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1386
1385
|
/* @__PURE__ */ s(
|
|
1387
1386
|
"img",
|
|
@@ -1412,8 +1411,8 @@ function hn(e) {
|
|
|
1412
1411
|
}
|
|
1413
1412
|
}
|
|
1414
1413
|
) : null,
|
|
1415
|
-
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1416
|
-
!e.fitContent && ((
|
|
1414
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
|
|
1415
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1417
1416
|
] })
|
|
1418
1417
|
] });
|
|
1419
1418
|
}
|
|
@@ -1439,50 +1438,50 @@ function gn(e) {
|
|
|
1439
1438
|
);
|
|
1440
1439
|
}
|
|
1441
1440
|
function bn(e, t, n, i) {
|
|
1442
|
-
function r(
|
|
1443
|
-
return typeof
|
|
1441
|
+
function r(d) {
|
|
1442
|
+
return typeof d == "string";
|
|
1444
1443
|
}
|
|
1445
|
-
function o(
|
|
1446
|
-
return typeof
|
|
1444
|
+
function o(d) {
|
|
1445
|
+
return typeof d == "number";
|
|
1447
1446
|
}
|
|
1448
|
-
function a(
|
|
1447
|
+
function a(d, h) {
|
|
1449
1448
|
return (() => {
|
|
1450
|
-
const
|
|
1451
|
-
let
|
|
1452
|
-
if (
|
|
1449
|
+
const u = h.property, x = h.operator;
|
|
1450
|
+
let f = h.value;
|
|
1451
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1453
1452
|
return !0;
|
|
1454
|
-
if (Array.isArray(
|
|
1455
|
-
return
|
|
1456
|
-
property:
|
|
1457
|
-
operator:
|
|
1458
|
-
value:
|
|
1459
|
-
})) : !!
|
|
1460
|
-
property:
|
|
1461
|
-
operator:
|
|
1462
|
-
value:
|
|
1453
|
+
if (Array.isArray(f))
|
|
1454
|
+
return x === "isNot" ? f.every((y) => a(d, {
|
|
1455
|
+
property: u,
|
|
1456
|
+
operator: x,
|
|
1457
|
+
value: y
|
|
1458
|
+
})) : !!f.find((y) => a(d, {
|
|
1459
|
+
property: u,
|
|
1460
|
+
operator: x,
|
|
1461
|
+
value: y
|
|
1463
1462
|
}));
|
|
1464
|
-
const
|
|
1465
|
-
if (Array.isArray(
|
|
1466
|
-
return
|
|
1467
|
-
switch (
|
|
1463
|
+
const m = d[u];
|
|
1464
|
+
if (Array.isArray(m))
|
|
1465
|
+
return m.includes(f);
|
|
1466
|
+
switch (x) {
|
|
1468
1467
|
case "is":
|
|
1469
|
-
return
|
|
1468
|
+
return m === f;
|
|
1470
1469
|
case "isNot":
|
|
1471
|
-
return
|
|
1470
|
+
return m !== f;
|
|
1472
1471
|
case "contains":
|
|
1473
|
-
return (r(
|
|
1472
|
+
return (r(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1474
1473
|
case "startsWith":
|
|
1475
|
-
return r(
|
|
1474
|
+
return r(m) && m.startsWith(String(f));
|
|
1476
1475
|
case "endsWith":
|
|
1477
|
-
return r(
|
|
1476
|
+
return r(m) && m.endsWith(String(f));
|
|
1478
1477
|
case "greaterThan":
|
|
1479
|
-
return o(
|
|
1478
|
+
return o(m) && o(f) && m > f;
|
|
1480
1479
|
case "lessThan":
|
|
1481
|
-
return o(
|
|
1480
|
+
return o(m) && o(f) && m < f;
|
|
1482
1481
|
case "greaterThanOrEqualTo":
|
|
1483
|
-
return o(
|
|
1482
|
+
return o(m) && o(f) && m >= f;
|
|
1484
1483
|
case "lessThanOrEqualTo":
|
|
1485
|
-
return o(
|
|
1484
|
+
return o(m) && o(f) && m <= f;
|
|
1486
1485
|
default:
|
|
1487
1486
|
return !1;
|
|
1488
1487
|
}
|
|
@@ -1493,7 +1492,7 @@ function bn(e, t, n, i) {
|
|
|
1493
1492
|
startDate: n,
|
|
1494
1493
|
endDate: i
|
|
1495
1494
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1496
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((
|
|
1495
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => a(e, d));
|
|
1497
1496
|
}
|
|
1498
1497
|
const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1499
1498
|
if (!navigator.cookieEnabled) {
|
|
@@ -1658,7 +1657,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1658
1657
|
}
|
|
1659
1658
|
}`, ie = "default", xn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
|
|
1660
1659
|
function Sn(e, t) {
|
|
1661
|
-
return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !
|
|
1660
|
+
return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !K();
|
|
1662
1661
|
}
|
|
1663
1662
|
function kn({
|
|
1664
1663
|
variants: e,
|
|
@@ -1673,7 +1672,7 @@ function kn({
|
|
|
1673
1672
|
path: "this.children",
|
|
1674
1673
|
index: ie
|
|
1675
1674
|
};
|
|
1676
|
-
if (n &&
|
|
1675
|
+
if (n && _()) {
|
|
1677
1676
|
if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
|
|
1678
1677
|
const l = e == null ? void 0 : e[t];
|
|
1679
1678
|
if (l)
|
|
@@ -1685,7 +1684,7 @@ function kn({
|
|
|
1685
1684
|
}
|
|
1686
1685
|
return o;
|
|
1687
1686
|
}
|
|
1688
|
-
if (
|
|
1687
|
+
if (K()) {
|
|
1689
1688
|
const l = i == null ? void 0 : i[0];
|
|
1690
1689
|
if (l && e) {
|
|
1691
1690
|
const c = e.indexOf(l);
|
|
@@ -1830,7 +1829,7 @@ const Cn = () => `
|
|
|
1830
1829
|
}, Be = (e) => e.toString();
|
|
1831
1830
|
function En(e) {
|
|
1832
1831
|
var b;
|
|
1833
|
-
const [t, n] =
|
|
1832
|
+
const [t, n] = k(() => []);
|
|
1834
1833
|
function i() {
|
|
1835
1834
|
return !!(e.grid || e.oneAtATime);
|
|
1836
1835
|
}
|
|
@@ -1847,7 +1846,7 @@ function En(e) {
|
|
|
1847
1846
|
};
|
|
1848
1847
|
}
|
|
1849
1848
|
function o() {
|
|
1850
|
-
const
|
|
1849
|
+
const x = {
|
|
1851
1850
|
...{
|
|
1852
1851
|
display: "flex",
|
|
1853
1852
|
flexDirection: "column"
|
|
@@ -1856,75 +1855,75 @@ function En(e) {
|
|
|
1856
1855
|
cursor: "pointer"
|
|
1857
1856
|
};
|
|
1858
1857
|
return Object.fromEntries(
|
|
1859
|
-
Object.entries(
|
|
1858
|
+
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1860
1859
|
);
|
|
1861
1860
|
}
|
|
1862
|
-
function a(
|
|
1863
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1861
|
+
function a(u) {
|
|
1862
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1864
1863
|
}
|
|
1865
|
-
function l(
|
|
1866
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1864
|
+
function l(u) {
|
|
1865
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1867
1866
|
}
|
|
1868
1867
|
function c() {
|
|
1869
|
-
let
|
|
1868
|
+
let u = null;
|
|
1870
1869
|
if (e.grid && t.length && document) {
|
|
1871
|
-
const
|
|
1872
|
-
let
|
|
1873
|
-
`.builder-accordion-title[data-index="${
|
|
1870
|
+
const f = t[0];
|
|
1871
|
+
let y = document.querySelector(
|
|
1872
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1874
1873
|
);
|
|
1875
|
-
if (
|
|
1876
|
-
let
|
|
1877
|
-
for (;
|
|
1878
|
-
if (
|
|
1879
|
-
if (
|
|
1874
|
+
if (u = f, y) {
|
|
1875
|
+
let g = y.getBoundingClientRect();
|
|
1876
|
+
for (; y = y && y.nextElementSibling; )
|
|
1877
|
+
if (y) {
|
|
1878
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1880
1879
|
continue;
|
|
1881
|
-
const S =
|
|
1882
|
-
if (S.left >
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1880
|
+
const S = y.getBoundingClientRect();
|
|
1881
|
+
if (S.left > g.left) {
|
|
1882
|
+
const T = parseInt(
|
|
1883
|
+
y.getAttribute("data-index") || "",
|
|
1885
1884
|
10
|
|
1886
1885
|
);
|
|
1887
|
-
isNaN(
|
|
1886
|
+
isNaN(T) || (g = S, u = T);
|
|
1888
1887
|
} else
|
|
1889
1888
|
break;
|
|
1890
1889
|
}
|
|
1891
1890
|
}
|
|
1892
1891
|
}
|
|
1893
|
-
return typeof
|
|
1892
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1894
1893
|
}
|
|
1895
|
-
function
|
|
1896
|
-
const
|
|
1894
|
+
function d() {
|
|
1895
|
+
const u = {
|
|
1897
1896
|
order: typeof c() == "number" ? c() : void 0,
|
|
1898
1897
|
...e.grid && {
|
|
1899
1898
|
width: "100%"
|
|
1900
1899
|
}
|
|
1901
1900
|
};
|
|
1902
1901
|
return Object.fromEntries(
|
|
1903
|
-
Object.entries(
|
|
1902
|
+
Object.entries(u).filter(([x, f]) => f !== void 0)
|
|
1904
1903
|
);
|
|
1905
1904
|
}
|
|
1906
|
-
function
|
|
1907
|
-
t.includes(
|
|
1905
|
+
function h(u) {
|
|
1906
|
+
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1908
1907
|
}
|
|
1909
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((
|
|
1908
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(gt.Fragment, { children: [
|
|
1910
1909
|
/* @__PURE__ */ s(
|
|
1911
1910
|
"div",
|
|
1912
1911
|
{
|
|
1913
|
-
className: a(
|
|
1912
|
+
className: a(x),
|
|
1914
1913
|
style: {
|
|
1915
1914
|
...o(),
|
|
1916
1915
|
...e.grid && {
|
|
1917
1916
|
width: e.gridRowWidth,
|
|
1918
|
-
order: c() !== null ? Be(
|
|
1917
|
+
order: c() !== null ? Be(x) : Be(x + 1)
|
|
1919
1918
|
}
|
|
1920
1919
|
},
|
|
1921
|
-
"data-index":
|
|
1922
|
-
onClick: (
|
|
1920
|
+
"data-index": x,
|
|
1921
|
+
onClick: (f) => h(x),
|
|
1923
1922
|
children: /* @__PURE__ */ s(
|
|
1924
|
-
|
|
1923
|
+
M,
|
|
1925
1924
|
{
|
|
1926
|
-
blocks:
|
|
1927
|
-
path: `items.${
|
|
1925
|
+
blocks: u.title,
|
|
1926
|
+
path: `items.${x}.title`,
|
|
1928
1927
|
parent: e.builderBlock.id,
|
|
1929
1928
|
context: e.builderContext,
|
|
1930
1929
|
registeredComponents: e.builderComponents,
|
|
@@ -1933,16 +1932,16 @@ function En(e) {
|
|
|
1933
1932
|
)
|
|
1934
1933
|
}
|
|
1935
1934
|
),
|
|
1936
|
-
t.includes(
|
|
1935
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1937
1936
|
"div",
|
|
1938
1937
|
{
|
|
1939
|
-
className: l(
|
|
1940
|
-
style:
|
|
1938
|
+
className: l(x),
|
|
1939
|
+
style: d(),
|
|
1941
1940
|
children: /* @__PURE__ */ s(
|
|
1942
|
-
|
|
1941
|
+
M,
|
|
1943
1942
|
{
|
|
1944
|
-
blocks:
|
|
1945
|
-
path: `items.${
|
|
1943
|
+
blocks: u.detail,
|
|
1944
|
+
path: `items.${x}.detail`,
|
|
1946
1945
|
parent: e.builderBlock.id,
|
|
1947
1946
|
context: e.builderContext,
|
|
1948
1947
|
registeredComponents: e.builderComponents,
|
|
@@ -1951,7 +1950,7 @@ function En(e) {
|
|
|
1951
1950
|
)
|
|
1952
1951
|
}
|
|
1953
1952
|
) : null
|
|
1954
|
-
] },
|
|
1953
|
+
] }, x)) });
|
|
1955
1954
|
}
|
|
1956
1955
|
const Rn = {
|
|
1957
1956
|
name: "Core:Button",
|
|
@@ -2223,15 +2222,15 @@ const Rn = {
|
|
|
2223
2222
|
onChange: (e) => {
|
|
2224
2223
|
e.delete("srcset"), e.delete("noWebp");
|
|
2225
2224
|
function n(a, l = 6e4) {
|
|
2226
|
-
return new Promise((c,
|
|
2227
|
-
const
|
|
2225
|
+
return new Promise((c, d) => {
|
|
2226
|
+
const h = document.createElement("img");
|
|
2228
2227
|
let b = !1;
|
|
2229
|
-
|
|
2230
|
-
b = !0, c(
|
|
2231
|
-
},
|
|
2232
|
-
console.warn("Image load failed",
|
|
2233
|
-
}),
|
|
2234
|
-
b ||
|
|
2228
|
+
h.onload = () => {
|
|
2229
|
+
b = !0, c(h);
|
|
2230
|
+
}, h.addEventListener("error", (u) => {
|
|
2231
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
2232
|
+
}), h.src = a, setTimeout(() => {
|
|
2233
|
+
b || d(new Error("Image load timed out"));
|
|
2235
2234
|
}, l);
|
|
2236
2235
|
});
|
|
2237
2236
|
}
|
|
@@ -2351,7 +2350,7 @@ const Rn = {
|
|
|
2351
2350
|
}]
|
|
2352
2351
|
}]
|
|
2353
2352
|
};
|
|
2354
|
-
function
|
|
2353
|
+
function J(e) {
|
|
2355
2354
|
return /* @__PURE__ */ s(
|
|
2356
2355
|
"script",
|
|
2357
2356
|
{
|
|
@@ -2362,105 +2361,105 @@ function j(e) {
|
|
|
2362
2361
|
);
|
|
2363
2362
|
}
|
|
2364
2363
|
function Wn(e) {
|
|
2365
|
-
var S,
|
|
2366
|
-
const t =
|
|
2364
|
+
var S, T, E, U, H, q, p, v, I, V, W, R, A;
|
|
2365
|
+
const t = z(null), [n, i] = k(
|
|
2367
2366
|
() => Ce.getUserAttributes()
|
|
2368
|
-
), [r, o] =
|
|
2367
|
+
), [r, o] = k(
|
|
2369
2368
|
() => {
|
|
2370
|
-
var
|
|
2369
|
+
var w, B, C;
|
|
2371
2370
|
return Tn(
|
|
2372
2371
|
e.variants,
|
|
2373
|
-
((
|
|
2374
|
-
(
|
|
2372
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2373
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2375
2374
|
);
|
|
2376
2375
|
}
|
|
2377
|
-
), [a, l] =
|
|
2376
|
+
), [a, l] = k(
|
|
2378
2377
|
() => {
|
|
2379
|
-
var
|
|
2378
|
+
var w, B, C;
|
|
2380
2379
|
return In(
|
|
2381
2380
|
e.variants,
|
|
2382
|
-
((
|
|
2383
|
-
(
|
|
2381
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2382
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2384
2383
|
);
|
|
2385
2384
|
}
|
|
2386
|
-
), [c,
|
|
2385
|
+
), [c, d] = k(() => []), [h, b] = k(
|
|
2387
2386
|
() => {
|
|
2388
|
-
var
|
|
2387
|
+
var w;
|
|
2389
2388
|
return Sn(
|
|
2390
2389
|
e.variants,
|
|
2391
|
-
|
|
2390
|
+
ee((w = e.builderContext) == null ? void 0 : w.canTrack)
|
|
2392
2391
|
);
|
|
2393
2392
|
}
|
|
2394
|
-
), [
|
|
2395
|
-
function
|
|
2393
|
+
), [u, x] = k(() => !1);
|
|
2394
|
+
function f() {
|
|
2396
2395
|
return {
|
|
2397
2396
|
...e.attributes,
|
|
2398
|
-
[
|
|
2397
|
+
[G()]: `builder-personalization-container ${e.attributes[G()] || ""}`
|
|
2399
2398
|
};
|
|
2400
2399
|
}
|
|
2401
|
-
function
|
|
2402
|
-
return (e.variants || []).filter((
|
|
2403
|
-
var B,
|
|
2400
|
+
function m() {
|
|
2401
|
+
return (e.variants || []).filter((w) => {
|
|
2402
|
+
var B, C, $, F;
|
|
2404
2403
|
return bn(
|
|
2405
2404
|
{
|
|
2406
|
-
...(
|
|
2407
|
-
locale: (
|
|
2405
|
+
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2406
|
+
locale: (F = ($ = e.builderContext) == null ? void 0 : $.rootState) == null ? void 0 : F.locale
|
|
2408
2407
|
} : {},
|
|
2409
2408
|
...n
|
|
2410
2409
|
},
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2410
|
+
w.query,
|
|
2411
|
+
w.startDate,
|
|
2412
|
+
w.endDate
|
|
2414
2413
|
);
|
|
2415
2414
|
});
|
|
2416
2415
|
}
|
|
2417
|
-
function
|
|
2418
|
-
var
|
|
2416
|
+
function y() {
|
|
2417
|
+
var w;
|
|
2419
2418
|
return kn({
|
|
2420
2419
|
variants: e.variants,
|
|
2421
|
-
fallbackBlocks: (
|
|
2422
|
-
isHydrated:
|
|
2423
|
-
filteredVariants:
|
|
2420
|
+
fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
|
|
2421
|
+
isHydrated: u,
|
|
2422
|
+
filteredVariants: m(),
|
|
2424
2423
|
previewingIndex: e.previewingIndex
|
|
2425
2424
|
});
|
|
2426
2425
|
}
|
|
2427
|
-
function
|
|
2426
|
+
function g() {
|
|
2428
2427
|
return (e.variants || []).map(
|
|
2429
|
-
(
|
|
2430
|
-
var
|
|
2431
|
-
return `div[data-variant-id="${(
|
|
2428
|
+
(w, B) => {
|
|
2429
|
+
var C;
|
|
2430
|
+
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2432
2431
|
}
|
|
2433
2432
|
).join("");
|
|
2434
2433
|
}
|
|
2435
|
-
return
|
|
2434
|
+
return N(() => {
|
|
2436
2435
|
var B;
|
|
2437
|
-
|
|
2438
|
-
const
|
|
2439
|
-
(
|
|
2440
|
-
i(
|
|
2436
|
+
x(!0);
|
|
2437
|
+
const w = Ce.subscribeOnUserAttributesChange(
|
|
2438
|
+
(C) => {
|
|
2439
|
+
i(C);
|
|
2441
2440
|
},
|
|
2442
2441
|
{
|
|
2443
2442
|
fireImmediately: O === "qwik"
|
|
2444
2443
|
}
|
|
2445
2444
|
);
|
|
2446
|
-
if (!(
|
|
2447
|
-
const
|
|
2445
|
+
if (!(_() || se())) {
|
|
2446
|
+
const C = m()[0];
|
|
2448
2447
|
t.current && (t.current.dispatchEvent(
|
|
2449
2448
|
new CustomEvent("builder.variantLoaded", {
|
|
2450
2449
|
detail: {
|
|
2451
|
-
variant:
|
|
2450
|
+
variant: C || ie,
|
|
2452
2451
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2453
2452
|
},
|
|
2454
2453
|
bubbles: !0
|
|
2455
2454
|
})
|
|
2456
|
-
), new IntersectionObserver((
|
|
2457
|
-
|
|
2458
|
-
var
|
|
2459
|
-
|
|
2455
|
+
), new IntersectionObserver((F) => {
|
|
2456
|
+
F.forEach((L) => {
|
|
2457
|
+
var j;
|
|
2458
|
+
L.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2460
2459
|
new CustomEvent("builder.variantDisplayed", {
|
|
2461
2460
|
detail: {
|
|
2462
|
-
variant:
|
|
2463
|
-
content: (
|
|
2461
|
+
variant: C || ie,
|
|
2462
|
+
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2464
2463
|
},
|
|
2465
2464
|
bubbles: !0
|
|
2466
2465
|
})
|
|
@@ -2468,64 +2467,64 @@ function Wn(e) {
|
|
|
2468
2467
|
});
|
|
2469
2468
|
}).observe(t.current));
|
|
2470
2469
|
}
|
|
2471
|
-
c.push(
|
|
2472
|
-
}, []),
|
|
2473
|
-
c.forEach((
|
|
2474
|
-
}, []), /* @__PURE__ */
|
|
2475
|
-
|
|
2476
|
-
|
|
2470
|
+
c.push(w);
|
|
2471
|
+
}, []), N(() => () => {
|
|
2472
|
+
c.forEach((w) => w());
|
|
2473
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2474
|
+
u && re.includes(O) ? /* @__PURE__ */ s(
|
|
2475
|
+
M,
|
|
2477
2476
|
{
|
|
2478
|
-
blocks:
|
|
2477
|
+
blocks: y().blocks,
|
|
2479
2478
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2480
|
-
path:
|
|
2479
|
+
path: y().path,
|
|
2481
2480
|
context: e.builderContext,
|
|
2482
2481
|
registeredComponents: e.builderComponents,
|
|
2483
2482
|
BlocksWrapperProps: {
|
|
2484
|
-
...(
|
|
2485
|
-
"data-variant-id": `${(
|
|
2483
|
+
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2484
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
|
|
2486
2485
|
}
|
|
2487
2486
|
}
|
|
2488
2487
|
) : null,
|
|
2489
|
-
!
|
|
2490
|
-
|
|
2488
|
+
!u && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ D(P, { children: [
|
|
2489
|
+
h ? /* @__PURE__ */ D(P, { children: [
|
|
2491
2490
|
/* @__PURE__ */ s(
|
|
2492
|
-
|
|
2491
|
+
te,
|
|
2493
2492
|
{
|
|
2494
|
-
nonce: ((
|
|
2495
|
-
styles:
|
|
2496
|
-
id: `variants-styles-${(
|
|
2493
|
+
nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
|
|
2494
|
+
styles: g(),
|
|
2495
|
+
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2497
2496
|
}
|
|
2498
2497
|
),
|
|
2499
2498
|
/* @__PURE__ */ s(
|
|
2500
|
-
|
|
2499
|
+
J,
|
|
2501
2500
|
{
|
|
2502
|
-
nonce: ((
|
|
2501
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2503
2502
|
scriptStr: a,
|
|
2504
|
-
id: `variants-visibility-script-${(
|
|
2503
|
+
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2505
2504
|
}
|
|
2506
2505
|
),
|
|
2507
|
-
(
|
|
2508
|
-
var
|
|
2506
|
+
(v = e.variants) == null ? void 0 : v.map((w, B) => {
|
|
2507
|
+
var C, $, F, L, j, ke;
|
|
2509
2508
|
return /* @__PURE__ */ s(
|
|
2510
|
-
|
|
2509
|
+
M,
|
|
2511
2510
|
{
|
|
2512
2511
|
BlocksWrapperProps: {
|
|
2513
|
-
...(
|
|
2512
|
+
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2514
2513
|
"aria-hidden": !0,
|
|
2515
2514
|
hidden: !0,
|
|
2516
|
-
"data-variant-id": `${(
|
|
2515
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${B}`
|
|
2517
2516
|
},
|
|
2518
|
-
blocks:
|
|
2519
|
-
parent: (
|
|
2517
|
+
blocks: w.blocks,
|
|
2518
|
+
parent: (F = e.builderBlock) == null ? void 0 : F.id,
|
|
2520
2519
|
path: `component.options.variants.${B}.blocks`,
|
|
2521
2520
|
context: e.builderContext,
|
|
2522
2521
|
registeredComponents: e.builderComponents,
|
|
2523
2522
|
children: /* @__PURE__ */ s(
|
|
2524
|
-
|
|
2523
|
+
J,
|
|
2525
2524
|
{
|
|
2526
|
-
nonce: ((
|
|
2525
|
+
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
2527
2526
|
scriptStr: r,
|
|
2528
|
-
id: `variants-script-${(
|
|
2527
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2529
2528
|
}
|
|
2530
2529
|
)
|
|
2531
2530
|
},
|
|
@@ -2534,23 +2533,23 @@ function Wn(e) {
|
|
|
2534
2533
|
})
|
|
2535
2534
|
] }) : null,
|
|
2536
2535
|
/* @__PURE__ */ s(
|
|
2537
|
-
|
|
2536
|
+
M,
|
|
2538
2537
|
{
|
|
2539
|
-
blocks:
|
|
2540
|
-
parent: (
|
|
2541
|
-
path:
|
|
2538
|
+
blocks: y().blocks,
|
|
2539
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2540
|
+
path: y().path,
|
|
2542
2541
|
context: e.builderContext,
|
|
2543
2542
|
registeredComponents: e.builderComponents,
|
|
2544
2543
|
BlocksWrapperProps: {
|
|
2545
|
-
...(
|
|
2546
|
-
"data-variant-id": `${(
|
|
2544
|
+
...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
|
|
2545
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
|
|
2547
2546
|
},
|
|
2548
|
-
children:
|
|
2549
|
-
|
|
2547
|
+
children: h ? /* @__PURE__ */ s(
|
|
2548
|
+
J,
|
|
2550
2549
|
{
|
|
2551
|
-
nonce: ((
|
|
2550
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2552
2551
|
scriptStr: r,
|
|
2553
|
-
id: `variants-script-${(
|
|
2552
|
+
id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
|
|
2554
2553
|
}
|
|
2555
2554
|
) : null
|
|
2556
2555
|
}
|
|
@@ -2627,7 +2626,7 @@ function On(e) {
|
|
|
2627
2626
|
"builder-slot": e.name
|
|
2628
2627
|
},
|
|
2629
2628
|
children: /* @__PURE__ */ s(
|
|
2630
|
-
|
|
2629
|
+
M,
|
|
2631
2630
|
{
|
|
2632
2631
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2633
2632
|
path: `symbol.data.${e.name}`,
|
|
@@ -2821,17 +2820,20 @@ const Fn = {
|
|
|
2821
2820
|
}
|
|
2822
2821
|
};
|
|
2823
2822
|
function _n(e) {
|
|
2824
|
-
var
|
|
2825
|
-
const [t, n] =
|
|
2823
|
+
var a;
|
|
2824
|
+
const [t, n] = k(
|
|
2826
2825
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2827
2826
|
);
|
|
2828
|
-
function i(
|
|
2829
|
-
return e.tabs && e.tabs[
|
|
2827
|
+
function i(l) {
|
|
2828
|
+
return e.tabs && e.tabs[l].content;
|
|
2829
|
+
}
|
|
2830
|
+
function r(l) {
|
|
2831
|
+
return l === t ? e.activeTabStyle : {};
|
|
2830
2832
|
}
|
|
2831
|
-
function
|
|
2832
|
-
|
|
2833
|
+
function o(l) {
|
|
2834
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
2833
2835
|
}
|
|
2834
|
-
return /* @__PURE__ */
|
|
2836
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
2835
2837
|
/* @__PURE__ */ s(
|
|
2836
2838
|
"div",
|
|
2837
2839
|
{
|
|
@@ -2842,32 +2844,30 @@ function _n(e) {
|
|
|
2842
2844
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2843
2845
|
overflow: "auto"
|
|
2844
2846
|
},
|
|
2845
|
-
children: (
|
|
2847
|
+
children: (a = e.tabs) == null ? void 0 : a.map((l, c) => /* @__PURE__ */ s(
|
|
2846
2848
|
"span",
|
|
2847
2849
|
{
|
|
2848
|
-
className: `builder-tab-wrap ${t ===
|
|
2849
|
-
style:
|
|
2850
|
-
|
|
2851
|
-
},
|
|
2852
|
-
onClick: (c) => r(l),
|
|
2850
|
+
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2851
|
+
style: r(c),
|
|
2852
|
+
onClick: (d) => o(c),
|
|
2853
2853
|
children: /* @__PURE__ */ s(
|
|
2854
|
-
|
|
2854
|
+
M,
|
|
2855
2855
|
{
|
|
2856
2856
|
parent: e.builderBlock.id,
|
|
2857
|
-
path: `tabs.${
|
|
2858
|
-
blocks:
|
|
2857
|
+
path: `tabs.${c}.label`,
|
|
2858
|
+
blocks: l.label,
|
|
2859
2859
|
context: e.builderContext,
|
|
2860
2860
|
registeredComponents: e.builderComponents,
|
|
2861
2861
|
linkComponent: e.builderLinkComponent
|
|
2862
2862
|
}
|
|
2863
2863
|
)
|
|
2864
2864
|
},
|
|
2865
|
-
|
|
2865
|
+
c
|
|
2866
2866
|
))
|
|
2867
2867
|
}
|
|
2868
2868
|
),
|
|
2869
2869
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2870
|
-
|
|
2870
|
+
M,
|
|
2871
2871
|
{
|
|
2872
2872
|
parent: e.builderBlock.id,
|
|
2873
2873
|
path: `tabs.${t}.content`,
|
|
@@ -2936,31 +2936,31 @@ const Mn = {
|
|
|
2936
2936
|
}]
|
|
2937
2937
|
};
|
|
2938
2938
|
function qn(e) {
|
|
2939
|
-
const t =
|
|
2939
|
+
const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []);
|
|
2940
2940
|
function a() {
|
|
2941
2941
|
var c;
|
|
2942
2942
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2943
2943
|
return;
|
|
2944
2944
|
const l = t.current.getElementsByTagName("script");
|
|
2945
|
-
for (let
|
|
2946
|
-
const
|
|
2947
|
-
if (
|
|
2948
|
-
if (n.includes(
|
|
2945
|
+
for (let d = 0; d < l.length; d++) {
|
|
2946
|
+
const h = l[d];
|
|
2947
|
+
if (h.src) {
|
|
2948
|
+
if (n.includes(h.src))
|
|
2949
2949
|
continue;
|
|
2950
|
-
n.push(
|
|
2950
|
+
n.push(h.src);
|
|
2951
2951
|
const b = document.createElement("script");
|
|
2952
|
-
b.async = !0, b.src =
|
|
2953
|
-
} else if (!
|
|
2952
|
+
b.async = !0, b.src = h.src, document.head.appendChild(b);
|
|
2953
|
+
} else if (!h.type || [
|
|
2954
2954
|
"text/javascript",
|
|
2955
2955
|
"application/javascript",
|
|
2956
2956
|
"application/ecmascript"
|
|
2957
|
-
].includes(
|
|
2958
|
-
if (r.includes(
|
|
2957
|
+
].includes(h.type)) {
|
|
2958
|
+
if (r.includes(h.innerText))
|
|
2959
2959
|
continue;
|
|
2960
2960
|
try {
|
|
2961
|
-
r.push(
|
|
2961
|
+
r.push(h.innerText), new Function(h.innerText)();
|
|
2962
2962
|
} catch (b) {
|
|
2963
|
-
|
|
2963
|
+
Q.warn(
|
|
2964
2964
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2965
2965
|
b
|
|
2966
2966
|
);
|
|
@@ -2968,10 +2968,10 @@ function qn(e) {
|
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
return
|
|
2971
|
+
return N(() => {
|
|
2972
2972
|
a();
|
|
2973
|
-
}, []),
|
|
2974
|
-
|
|
2973
|
+
}, []), N(() => {
|
|
2974
|
+
_() && a();
|
|
2975
2975
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2976
2976
|
"div",
|
|
2977
2977
|
{
|
|
@@ -2998,26 +2998,26 @@ const jn = {
|
|
|
2998
2998
|
}]
|
|
2999
2999
|
}, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
|
|
3000
3000
|
function Jn(e) {
|
|
3001
|
-
const t =
|
|
3001
|
+
const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []), [a, l] = k(() => !1);
|
|
3002
3002
|
function c() {
|
|
3003
3003
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3004
3004
|
return;
|
|
3005
|
-
const
|
|
3006
|
-
for (let
|
|
3007
|
-
const b =
|
|
3005
|
+
const d = t.current.getElementsByTagName("script");
|
|
3006
|
+
for (let h = 0; h < d.length; h++) {
|
|
3007
|
+
const b = d[h];
|
|
3008
3008
|
if (b.src && !n.includes(b.src)) {
|
|
3009
3009
|
n.push(b.src);
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3010
|
+
const u = document.createElement("script");
|
|
3011
|
+
u.async = !0, u.src = b.src, document.head.appendChild(u);
|
|
3012
3012
|
} else if (Kn(b) && !r.includes(b.innerText))
|
|
3013
3013
|
try {
|
|
3014
3014
|
r.push(b.innerText), new Function(b.innerText)();
|
|
3015
|
-
} catch (
|
|
3016
|
-
|
|
3015
|
+
} catch (u) {
|
|
3016
|
+
Q.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
3017
3017
|
}
|
|
3018
3018
|
}
|
|
3019
3019
|
}
|
|
3020
|
-
return
|
|
3020
|
+
return N(() => {
|
|
3021
3021
|
t.current && !a && (l(!0), c());
|
|
3022
3022
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
3023
3023
|
"div",
|
|
@@ -3270,129 +3270,132 @@ const Gn = {
|
|
|
3270
3270
|
return Qn.includes(e) ? e : "production";
|
|
3271
3271
|
};
|
|
3272
3272
|
function Xn(e) {
|
|
3273
|
-
const t =
|
|
3274
|
-
function c(
|
|
3275
|
-
var
|
|
3276
|
-
const
|
|
3273
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, o] = k(() => null), [a, l] = k(() => "");
|
|
3274
|
+
function c(u) {
|
|
3275
|
+
var f, m;
|
|
3276
|
+
const x = {
|
|
3277
3277
|
...e.builderContext.rootState,
|
|
3278
|
-
...
|
|
3278
|
+
...u
|
|
3279
3279
|
};
|
|
3280
|
-
e.builderContext.rootSetState ? (
|
|
3280
|
+
e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
|
|
3281
|
+
}
|
|
3282
|
+
function d() {
|
|
3283
|
+
return _() && e.previewState || n;
|
|
3281
3284
|
}
|
|
3282
|
-
function u
|
|
3283
|
-
return
|
|
3285
|
+
function h(u) {
|
|
3286
|
+
return JSON.stringify(u, null, 2);
|
|
3284
3287
|
}
|
|
3285
|
-
function
|
|
3286
|
-
var
|
|
3287
|
-
const
|
|
3288
|
+
function b(u) {
|
|
3289
|
+
var f;
|
|
3290
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3288
3291
|
if (e.sendSubmissionsTo === "zapier")
|
|
3289
|
-
|
|
3290
|
-
else if (
|
|
3292
|
+
u.preventDefault();
|
|
3293
|
+
else if (x) {
|
|
3291
3294
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3292
|
-
|
|
3295
|
+
u.preventDefault();
|
|
3293
3296
|
return;
|
|
3294
3297
|
}
|
|
3295
|
-
|
|
3296
|
-
const
|
|
3297
|
-
let
|
|
3298
|
-
const
|
|
3299
|
-
(
|
|
3300
|
-
).map((
|
|
3301
|
-
let
|
|
3302
|
-
const
|
|
3303
|
-
if (
|
|
3304
|
-
if (
|
|
3305
|
-
if (
|
|
3306
|
-
return
|
|
3307
|
-
key:
|
|
3308
|
-
value:
|
|
3298
|
+
u.preventDefault();
|
|
3299
|
+
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3300
|
+
let g;
|
|
3301
|
+
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3302
|
+
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3303
|
+
).map((p) => {
|
|
3304
|
+
let v;
|
|
3305
|
+
const I = p.name;
|
|
3306
|
+
if (p instanceof HTMLInputElement)
|
|
3307
|
+
if (p.type === "radio") {
|
|
3308
|
+
if (p.checked)
|
|
3309
|
+
return v = p.value, {
|
|
3310
|
+
key: I,
|
|
3311
|
+
value: v
|
|
3309
3312
|
};
|
|
3310
|
-
} else if (
|
|
3311
|
-
|
|
3312
|
-
else if (
|
|
3313
|
-
const
|
|
3314
|
-
isNaN(
|
|
3313
|
+
} else if (p.type === "checkbox")
|
|
3314
|
+
v = p.checked;
|
|
3315
|
+
else if (p.type === "number" || p.type === "range") {
|
|
3316
|
+
const V = p.valueAsNumber;
|
|
3317
|
+
isNaN(V) || (v = V);
|
|
3315
3318
|
} else
|
|
3316
|
-
|
|
3319
|
+
p.type === "file" ? v = p.files : v = p.value;
|
|
3317
3320
|
else
|
|
3318
|
-
|
|
3321
|
+
v = p.value;
|
|
3319
3322
|
return {
|
|
3320
|
-
key:
|
|
3321
|
-
value:
|
|
3323
|
+
key: I,
|
|
3324
|
+
value: v
|
|
3322
3325
|
};
|
|
3323
3326
|
});
|
|
3324
|
-
let
|
|
3325
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3326
|
-
(
|
|
3327
|
-
}),
|
|
3328
|
-
|
|
3327
|
+
let E = e.contentType;
|
|
3328
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3329
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3330
|
+
}), E !== "application/json")
|
|
3331
|
+
g = S;
|
|
3329
3332
|
else {
|
|
3330
|
-
const
|
|
3331
|
-
Array.from(
|
|
3332
|
-
ze(
|
|
3333
|
-
}),
|
|
3333
|
+
const p = {};
|
|
3334
|
+
Array.from(T).forEach(({ value: v, key: I }) => {
|
|
3335
|
+
ze(p, I, v);
|
|
3336
|
+
}), g = JSON.stringify(p);
|
|
3334
3337
|
}
|
|
3335
|
-
|
|
3336
|
-
const
|
|
3337
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3338
|
+
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3339
|
+
const U = new CustomEvent("presubmit", { detail: { body: g } });
|
|
3340
|
+
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3338
3341
|
return;
|
|
3339
3342
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3340
|
-
const
|
|
3341
|
-
console.error(
|
|
3343
|
+
const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3344
|
+
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3342
3345
|
return;
|
|
3343
3346
|
}
|
|
3344
|
-
const
|
|
3347
|
+
const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3345
3348
|
e.sendSubmissionsToEmail || ""
|
|
3346
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3347
|
-
Fe(
|
|
3348
|
-
async (
|
|
3349
|
-
var
|
|
3350
|
-
let
|
|
3351
|
-
const
|
|
3352
|
-
if (
|
|
3353
|
-
const
|
|
3354
|
-
detail: { error:
|
|
3349
|
+
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3350
|
+
Fe(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
|
|
3351
|
+
async (p) => {
|
|
3352
|
+
var V, W;
|
|
3353
|
+
let v;
|
|
3354
|
+
const I = p.headers.get("content-type");
|
|
3355
|
+
if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3356
|
+
const R = new CustomEvent("submit:error", {
|
|
3357
|
+
detail: { error: v, status: p.status }
|
|
3355
3358
|
});
|
|
3356
|
-
if ((
|
|
3359
|
+
if ((V = t.current) != null && V.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3357
3360
|
return;
|
|
3358
|
-
o(
|
|
3359
|
-
let
|
|
3360
|
-
typeof
|
|
3361
|
+
o(v), i("error");
|
|
3362
|
+
let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3363
|
+
typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
|
|
3361
3364
|
return;
|
|
3362
3365
|
}
|
|
3363
|
-
if (o(
|
|
3364
|
-
const
|
|
3365
|
-
detail: { res:
|
|
3366
|
+
if (o(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3367
|
+
const R = new CustomEvent("submit:success", {
|
|
3368
|
+
detail: { res: p, body: v }
|
|
3366
3369
|
});
|
|
3367
3370
|
if (t.current) {
|
|
3368
|
-
if (t.current.dispatchEvent(
|
|
3371
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3369
3372
|
return;
|
|
3370
3373
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3371
3374
|
}
|
|
3372
3375
|
if (e.successUrl)
|
|
3373
3376
|
if (t.current) {
|
|
3374
|
-
const
|
|
3377
|
+
const A = new CustomEvent("route", {
|
|
3375
3378
|
detail: { url: e.successUrl }
|
|
3376
3379
|
});
|
|
3377
|
-
t.current.dispatchEvent(
|
|
3380
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
3378
3381
|
} else
|
|
3379
3382
|
location.href = e.successUrl;
|
|
3380
3383
|
}
|
|
3381
3384
|
},
|
|
3382
|
-
(
|
|
3383
|
-
const
|
|
3384
|
-
detail: { error:
|
|
3385
|
+
(p) => {
|
|
3386
|
+
const v = new CustomEvent("submit:error", {
|
|
3387
|
+
detail: { error: p }
|
|
3385
3388
|
});
|
|
3386
|
-
t.current && (t.current.dispatchEvent(
|
|
3389
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (o(p), i("error"));
|
|
3387
3390
|
}
|
|
3388
3391
|
);
|
|
3389
3392
|
}
|
|
3390
3393
|
}
|
|
3391
|
-
return /* @__PURE__ */
|
|
3394
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
3392
3395
|
" ",
|
|
3393
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3396
|
+
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3394
3397
|
" ",
|
|
3395
|
-
/* @__PURE__ */
|
|
3398
|
+
/* @__PURE__ */ D(
|
|
3396
3399
|
"form",
|
|
3397
3400
|
{
|
|
3398
3401
|
validate: e.validate,
|
|
@@ -3400,29 +3403,29 @@ function Xn(e) {
|
|
|
3400
3403
|
action: !e.sendWithJs && e.action,
|
|
3401
3404
|
method: e.method,
|
|
3402
3405
|
name: e.name,
|
|
3403
|
-
onSubmit: (
|
|
3406
|
+
onSubmit: (u) => b(u),
|
|
3404
3407
|
...e.attributes,
|
|
3405
3408
|
children: [
|
|
3406
3409
|
e.children,
|
|
3407
|
-
|
|
3408
|
-
|
|
3410
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
3411
|
+
M,
|
|
3409
3412
|
{
|
|
3410
3413
|
path: "errorMessage",
|
|
3411
3414
|
blocks: e.errorMessage,
|
|
3412
3415
|
context: e.builderContext
|
|
3413
3416
|
}
|
|
3414
3417
|
) : null,
|
|
3415
|
-
|
|
3416
|
-
|
|
3418
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
3419
|
+
M,
|
|
3417
3420
|
{
|
|
3418
3421
|
path: "sendingMessage",
|
|
3419
3422
|
blocks: e.sendingMessage,
|
|
3420
3423
|
context: e.builderContext
|
|
3421
3424
|
}
|
|
3422
3425
|
) : null,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
+
d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
|
|
3427
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
3428
|
+
M,
|
|
3426
3429
|
{
|
|
3427
3430
|
path: "successMessage",
|
|
3428
3431
|
blocks: e.successMessage,
|
|
@@ -3492,7 +3495,7 @@ function ei(e) {
|
|
|
3492
3495
|
"input",
|
|
3493
3496
|
{
|
|
3494
3497
|
...e.attributes,
|
|
3495
|
-
key:
|
|
3498
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3496
3499
|
placeholder: e.placeholder,
|
|
3497
3500
|
type: e.type,
|
|
3498
3501
|
name: e.name,
|
|
@@ -3552,7 +3555,7 @@ function ni(e) {
|
|
|
3552
3555
|
{
|
|
3553
3556
|
...e.attributes,
|
|
3554
3557
|
value: e.value,
|
|
3555
|
-
key:
|
|
3558
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3556
3559
|
defaultValue: e.defaultValue,
|
|
3557
3560
|
name: e.name,
|
|
3558
3561
|
required: e.required
|
|
@@ -3673,7 +3676,7 @@ function si(e) {
|
|
|
3673
3676
|
srcSet: t(),
|
|
3674
3677
|
...e.attributes
|
|
3675
3678
|
},
|
|
3676
|
-
|
|
3679
|
+
_() && e.imgSrc || "default-key"
|
|
3677
3680
|
);
|
|
3678
3681
|
}
|
|
3679
3682
|
const ci = {
|
|
@@ -3762,8 +3765,8 @@ const ci = {
|
|
|
3762
3765
|
}
|
|
3763
3766
|
};
|
|
3764
3767
|
function ui(e) {
|
|
3765
|
-
var a, l, c,
|
|
3766
|
-
const t =
|
|
3768
|
+
var a, l, c, d, h, b, u;
|
|
3769
|
+
const t = z(null);
|
|
3767
3770
|
function n() {
|
|
3768
3771
|
return {
|
|
3769
3772
|
...e.autoPlay === !0 ? {
|
|
@@ -3788,32 +3791,32 @@ function ui(e) {
|
|
|
3788
3791
|
...n()
|
|
3789
3792
|
};
|
|
3790
3793
|
}
|
|
3791
|
-
const [r, o] =
|
|
3794
|
+
const [r, o] = k(() => {
|
|
3792
3795
|
});
|
|
3793
|
-
return
|
|
3796
|
+
return N(() => {
|
|
3794
3797
|
if (e.lazyLoad) {
|
|
3795
|
-
const
|
|
3796
|
-
|
|
3797
|
-
if (!
|
|
3798
|
+
const x = new IntersectionObserver(function(f) {
|
|
3799
|
+
f.forEach(function(m) {
|
|
3800
|
+
if (!m.isIntersecting)
|
|
3798
3801
|
return;
|
|
3799
|
-
const
|
|
3802
|
+
const y = m.target;
|
|
3800
3803
|
try {
|
|
3801
|
-
Array.from(
|
|
3802
|
-
(
|
|
3803
|
-
).forEach((
|
|
3804
|
-
const S =
|
|
3805
|
-
S && (
|
|
3806
|
-
}),
|
|
3807
|
-
} catch (
|
|
3808
|
-
console.error("Error loading lazy video:",
|
|
3804
|
+
Array.from(y.children).filter(
|
|
3805
|
+
(g) => g instanceof HTMLElement && g.tagName === "SOURCE"
|
|
3806
|
+
).forEach((g) => {
|
|
3807
|
+
const S = g.dataset.src;
|
|
3808
|
+
S && (g.src = S);
|
|
3809
|
+
}), y.load(), x.unobserve(y);
|
|
3810
|
+
} catch (g) {
|
|
3811
|
+
console.error("Error loading lazy video:", g);
|
|
3809
3812
|
}
|
|
3810
3813
|
});
|
|
3811
3814
|
});
|
|
3812
|
-
t.current &&
|
|
3815
|
+
t.current && x.observe(t.current), o(x);
|
|
3813
3816
|
}
|
|
3814
|
-
}, []),
|
|
3817
|
+
}, []), N(() => () => {
|
|
3815
3818
|
r && r.disconnect();
|
|
3816
|
-
}, []), /* @__PURE__ */
|
|
3819
|
+
}, []), /* @__PURE__ */ D(
|
|
3817
3820
|
"div",
|
|
3818
3821
|
{
|
|
3819
3822
|
style: {
|
|
@@ -3865,7 +3868,7 @@ function ui(e) {
|
|
|
3865
3868
|
}
|
|
3866
3869
|
}
|
|
3867
3870
|
) : null,
|
|
3868
|
-
(
|
|
3871
|
+
(h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3869
3872
|
"div",
|
|
3870
3873
|
{
|
|
3871
3874
|
style: {
|
|
@@ -3876,7 +3879,7 @@ function ui(e) {
|
|
|
3876
3879
|
children: e.children
|
|
3877
3880
|
}
|
|
3878
3881
|
) : null,
|
|
3879
|
-
(
|
|
3882
|
+
(u = (b = e.builderBlock) == null ? void 0 : b.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3880
3883
|
"div",
|
|
3881
3884
|
{
|
|
3882
3885
|
style: {
|
|
@@ -4057,7 +4060,7 @@ const di = () => [{
|
|
|
4057
4060
|
})), hi = ({
|
|
4058
4061
|
canTrack: e,
|
|
4059
4062
|
content: t
|
|
4060
|
-
}) => !(!(oe(t).length > 0) || !e ||
|
|
4063
|
+
}) => !(!(oe(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
|
|
4061
4064
|
window.${at} = ${mi}
|
|
4062
4065
|
window.${lt} = ${fi}
|
|
4063
4066
|
`, pi = (e, t) => `
|
|
@@ -4111,7 +4114,7 @@ const xi = (e, t, n = !0) => {
|
|
|
4111
4114
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4112
4115
|
}
|
|
4113
4116
|
};
|
|
4114
|
-
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (
|
|
4117
|
+
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (_() || se()), Ti = (e) => {
|
|
4115
4118
|
var o, a;
|
|
4116
4119
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4117
4120
|
let r = "";
|
|
@@ -4126,11 +4129,11 @@ font-weight: 400;
|
|
|
4126
4129
|
for (const l in e.files) {
|
|
4127
4130
|
if (!(String(Number(l)) === l))
|
|
4128
4131
|
continue;
|
|
4129
|
-
const
|
|
4130
|
-
|
|
4132
|
+
const d = e.files[l];
|
|
4133
|
+
d && d !== i && (r += `
|
|
4131
4134
|
@font-face {
|
|
4132
4135
|
font-family: "${t}";
|
|
4133
|
-
src: url('${
|
|
4136
|
+
src: url('${d}') format('woff2');
|
|
4134
4137
|
font-display: fallback;
|
|
4135
4138
|
font-weight: ${l};
|
|
4136
4139
|
}
|
|
@@ -4164,147 +4167,150 @@ font-weight: ${l};
|
|
|
4164
4167
|
}
|
|
4165
4168
|
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4166
4169
|
function Vi(e) {
|
|
4167
|
-
var
|
|
4168
|
-
const t =
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4170
|
+
var H, q, p;
|
|
4171
|
+
const t = z(null);
|
|
4172
|
+
k(() => !1);
|
|
4173
|
+
const [n, i] = k(() => null), [r, o] = k(() => "");
|
|
4174
|
+
function a(v) {
|
|
4175
|
+
var V, W;
|
|
4176
|
+
const I = {
|
|
4173
4177
|
...e.builderContextSignal.rootState,
|
|
4174
|
-
...
|
|
4178
|
+
...v
|
|
4175
4179
|
};
|
|
4176
|
-
e.builderContextSignal.rootSetState ? (
|
|
4177
|
-
...
|
|
4178
|
-
rootState:
|
|
4180
|
+
e.builderContextSignal.rootSetState ? (W = (V = e.builderContextSignal).rootSetState) == null || W.call(V, I) : e.setBuilderContextSignal((R) => ({
|
|
4181
|
+
...R,
|
|
4182
|
+
rootState: I
|
|
4179
4183
|
}));
|
|
4180
4184
|
}
|
|
4181
|
-
function
|
|
4182
|
-
var
|
|
4183
|
-
const
|
|
4185
|
+
function l(v) {
|
|
4186
|
+
var V, W, R, A, w;
|
|
4187
|
+
const I = {
|
|
4184
4188
|
...e.builderContextSignal.content,
|
|
4185
|
-
...
|
|
4189
|
+
...v,
|
|
4186
4190
|
data: {
|
|
4187
|
-
...(
|
|
4188
|
-
...
|
|
4191
|
+
...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
|
|
4192
|
+
...v == null ? void 0 : v.data
|
|
4189
4193
|
},
|
|
4190
4194
|
meta: {
|
|
4191
|
-
...(
|
|
4192
|
-
...
|
|
4193
|
-
breakpoints: ((
|
|
4195
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
|
|
4196
|
+
...v == null ? void 0 : v.meta,
|
|
4197
|
+
breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
|
|
4194
4198
|
}
|
|
4195
4199
|
};
|
|
4196
|
-
e.setBuilderContextSignal((
|
|
4197
|
-
...
|
|
4198
|
-
content:
|
|
4200
|
+
e.setBuilderContextSignal((B) => ({
|
|
4201
|
+
...B,
|
|
4202
|
+
content: I
|
|
4199
4203
|
}));
|
|
4200
4204
|
}
|
|
4201
|
-
function
|
|
4205
|
+
function c() {
|
|
4202
4206
|
return e.showContent ? {} : {
|
|
4203
4207
|
hidden: !0,
|
|
4204
4208
|
"aria-hidden": !0
|
|
4205
4209
|
};
|
|
4206
4210
|
}
|
|
4207
|
-
const [
|
|
4211
|
+
const [d, h] = k(
|
|
4208
4212
|
() => e.contentWrapper || "div"
|
|
4209
4213
|
);
|
|
4210
|
-
function
|
|
4214
|
+
function b(v) {
|
|
4211
4215
|
return ft({
|
|
4212
4216
|
model: e.model,
|
|
4213
4217
|
trustedHosts: e.trustedHosts,
|
|
4214
4218
|
callbacks: {
|
|
4215
|
-
configureSdk: (
|
|
4216
|
-
var
|
|
4217
|
-
const { breakpoints:
|
|
4218
|
-
!
|
|
4219
|
+
configureSdk: (I) => {
|
|
4220
|
+
var R;
|
|
4221
|
+
const { breakpoints: V, contentId: W } = I;
|
|
4222
|
+
!W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
|
|
4219
4223
|
meta: {
|
|
4220
|
-
breakpoints:
|
|
4224
|
+
breakpoints: V
|
|
4221
4225
|
}
|
|
4222
4226
|
});
|
|
4223
4227
|
},
|
|
4224
|
-
animation: (
|
|
4225
|
-
Ge(
|
|
4228
|
+
animation: (I) => {
|
|
4229
|
+
Ge(I);
|
|
4226
4230
|
},
|
|
4227
|
-
contentUpdate: (
|
|
4228
|
-
|
|
4231
|
+
contentUpdate: (I) => {
|
|
4232
|
+
l(I);
|
|
4229
4233
|
},
|
|
4230
|
-
stateUpdate: (
|
|
4231
|
-
|
|
4234
|
+
stateUpdate: (I) => {
|
|
4235
|
+
a(I);
|
|
4232
4236
|
}
|
|
4233
4237
|
}
|
|
4234
|
-
})(
|
|
4238
|
+
})(v);
|
|
4235
4239
|
}
|
|
4236
|
-
const [
|
|
4237
|
-
function
|
|
4238
|
-
var
|
|
4240
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
|
|
4241
|
+
function S(v) {
|
|
4242
|
+
var I, V;
|
|
4239
4243
|
if (e.builderContextSignal.content) {
|
|
4240
|
-
const
|
|
4244
|
+
const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
|
|
4241
4245
|
Te({
|
|
4242
4246
|
apiHost: e.apiHost,
|
|
4243
4247
|
type: "click",
|
|
4244
|
-
canTrack:
|
|
4245
|
-
contentId:
|
|
4248
|
+
canTrack: ee(e.canTrack),
|
|
4249
|
+
contentId: R,
|
|
4246
4250
|
apiKey: e.apiKey,
|
|
4247
|
-
variationId:
|
|
4248
|
-
...ki(
|
|
4249
|
-
unique: !
|
|
4251
|
+
variationId: W !== R ? W : void 0,
|
|
4252
|
+
...ki(v),
|
|
4253
|
+
unique: !y
|
|
4250
4254
|
});
|
|
4251
4255
|
}
|
|
4252
|
-
|
|
4256
|
+
y || g(!0);
|
|
4253
4257
|
}
|
|
4254
|
-
function
|
|
4255
|
-
var
|
|
4256
|
-
const
|
|
4257
|
-
Object.entries(
|
|
4258
|
-
([
|
|
4259
|
-
if (!
|
|
4258
|
+
function T() {
|
|
4259
|
+
var I, V, W;
|
|
4260
|
+
const v = (W = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? W : {};
|
|
4261
|
+
Object.entries(v).forEach(
|
|
4262
|
+
([R, A]) => {
|
|
4263
|
+
if (!A)
|
|
4260
4264
|
return;
|
|
4261
|
-
const
|
|
4262
|
-
if (f[
|
|
4265
|
+
const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
|
|
4266
|
+
if (f[R] || u[R] && !_())
|
|
4263
4267
|
return;
|
|
4264
|
-
const
|
|
4265
|
-
f[
|
|
4266
|
-
const
|
|
4268
|
+
const B = w ? A.request.url : A;
|
|
4269
|
+
f[R] = !0;
|
|
4270
|
+
const C = B.replace(
|
|
4267
4271
|
/{{([^}]+)}}/g,
|
|
4268
|
-
(
|
|
4269
|
-
|
|
4270
|
-
code:
|
|
4272
|
+
(L, j) => String(
|
|
4273
|
+
Y({
|
|
4274
|
+
code: j,
|
|
4271
4275
|
context: e.context || {},
|
|
4272
4276
|
localState: void 0,
|
|
4273
4277
|
rootState: e.builderContextSignal.rootState,
|
|
4274
4278
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4275
4279
|
})
|
|
4276
4280
|
)
|
|
4277
|
-
),
|
|
4278
|
-
url:
|
|
4279
|
-
method:
|
|
4280
|
-
headers:
|
|
4281
|
-
body:
|
|
4281
|
+
), $ = w ? {
|
|
4282
|
+
url: C,
|
|
4283
|
+
method: A.request.method,
|
|
4284
|
+
headers: A.request.headers,
|
|
4285
|
+
body: A.request.body
|
|
4282
4286
|
} : {
|
|
4283
|
-
url:
|
|
4287
|
+
url: C,
|
|
4284
4288
|
method: "GET"
|
|
4285
4289
|
};
|
|
4286
|
-
Fe(JSON.stringify(
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4290
|
+
Fe(JSON.stringify($));
|
|
4291
|
+
const F = {
|
|
4292
|
+
method: $.method,
|
|
4293
|
+
headers: $.headers,
|
|
4294
|
+
body: $.body
|
|
4295
|
+
};
|
|
4296
|
+
$.method === "GET" && delete F.body, fetch($.url, F).then((L) => L.json()).then((L) => {
|
|
4297
|
+
a({
|
|
4298
|
+
[R]: L
|
|
4299
|
+
}), u[R] = !0;
|
|
4300
|
+
}).catch((L) => {
|
|
4295
4301
|
console.error(
|
|
4296
4302
|
"error fetching dynamic data",
|
|
4297
|
-
JSON.stringify(
|
|
4298
|
-
|
|
4303
|
+
JSON.stringify(A),
|
|
4304
|
+
L
|
|
4299
4305
|
);
|
|
4300
4306
|
}).finally(() => {
|
|
4301
|
-
f[
|
|
4307
|
+
f[R] = !1;
|
|
4302
4308
|
});
|
|
4303
4309
|
}
|
|
4304
4310
|
);
|
|
4305
4311
|
}
|
|
4306
|
-
function
|
|
4307
|
-
|
|
4312
|
+
function E() {
|
|
4313
|
+
_() && window.dispatchEvent(
|
|
4308
4314
|
new CustomEvent(
|
|
4309
4315
|
"builder:component:stateChange",
|
|
4310
4316
|
{
|
|
@@ -4318,11 +4324,11 @@ function Vi(e) {
|
|
|
4318
4324
|
)
|
|
4319
4325
|
);
|
|
4320
4326
|
}
|
|
4321
|
-
const
|
|
4322
|
-
return
|
|
4323
|
-
var
|
|
4324
|
-
if (
|
|
4325
|
-
|
|
4327
|
+
const U = z(!1);
|
|
4328
|
+
return U.current || (T(), E(), U.current = !0), N(() => {
|
|
4329
|
+
var v, I, V, W, R;
|
|
4330
|
+
if (K()) {
|
|
4331
|
+
_() && !e.isNestedRender && (window.addEventListener("message", b), ut({
|
|
4326
4332
|
...e.locale ? {
|
|
4327
4333
|
locale: e.locale
|
|
4328
4334
|
} : {},
|
|
@@ -4332,89 +4338,97 @@ function Vi(e) {
|
|
|
4332
4338
|
...e.trustedHosts ? {
|
|
4333
4339
|
trustedHosts: e.trustedHosts
|
|
4334
4340
|
} : {},
|
|
4335
|
-
modelName: (
|
|
4341
|
+
modelName: (v = e.model) != null ? v : "",
|
|
4336
4342
|
apiKey: e.apiKey
|
|
4337
4343
|
}), Object.values(
|
|
4338
4344
|
e.builderContextSignal.componentInfos
|
|
4339
|
-
).forEach((
|
|
4340
|
-
var
|
|
4341
|
-
if (!((
|
|
4342
|
-
const
|
|
4343
|
-
(
|
|
4345
|
+
).forEach((C) => {
|
|
4346
|
+
var $, F;
|
|
4347
|
+
if (!(($ = C.models) != null && $.length) || C.models.includes(e.model)) {
|
|
4348
|
+
const L = dt(C);
|
|
4349
|
+
(F = window.parent) == null || F.postMessage(L, "*");
|
|
4344
4350
|
}
|
|
4345
4351
|
}), window.addEventListener(
|
|
4346
4352
|
"builder:component:stateChangeListenerActivated",
|
|
4347
|
-
|
|
4353
|
+
E
|
|
4348
4354
|
));
|
|
4349
|
-
const
|
|
4350
|
-
name: `builder.tests.${(
|
|
4355
|
+
const A = e.builderContextSignal.content && ee(e.canTrack), w = mt({
|
|
4356
|
+
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4351
4357
|
canTrack: !0
|
|
4352
|
-
}),
|
|
4353
|
-
if (
|
|
4354
|
-
const
|
|
4358
|
+
}), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
|
|
4359
|
+
if (A && B === w) {
|
|
4360
|
+
const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
|
|
4355
4361
|
Te({
|
|
4356
4362
|
apiHost: e.apiHost,
|
|
4357
4363
|
type: "impression",
|
|
4358
4364
|
canTrack: !0,
|
|
4359
|
-
contentId:
|
|
4360
|
-
apiKey:
|
|
4361
|
-
variationId:
|
|
4365
|
+
contentId: C,
|
|
4366
|
+
apiKey: $,
|
|
4367
|
+
variationId: w !== C ? w : void 0
|
|
4362
4368
|
});
|
|
4363
4369
|
}
|
|
4364
|
-
if (se() && !
|
|
4365
|
-
const
|
|
4366
|
-
`builder.overrides.${
|
|
4367
|
-
),
|
|
4368
|
-
(
|
|
4370
|
+
if (se() && !_()) {
|
|
4371
|
+
const C = new URL(location.href).searchParams, $ = C.get("builder.preview"), F = C.get(
|
|
4372
|
+
`builder.overrides.${$}`
|
|
4373
|
+
), L = C.get("apiKey") || C.get("builder.space");
|
|
4374
|
+
($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && Le({
|
|
4369
4375
|
model: e.model,
|
|
4370
4376
|
apiKey: e.apiKey,
|
|
4371
4377
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4372
|
-
|
|
4378
|
+
...$ === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4373
4379
|
query: {
|
|
4374
4380
|
id: e.context.symbolId
|
|
4375
4381
|
}
|
|
4376
4382
|
} : {}
|
|
4377
|
-
}).then((
|
|
4378
|
-
|
|
4383
|
+
}).then((j) => {
|
|
4384
|
+
j && l(j);
|
|
4379
4385
|
});
|
|
4380
4386
|
}
|
|
4381
4387
|
}
|
|
4382
|
-
}, []),
|
|
4383
|
-
e.content &&
|
|
4384
|
-
}, [e.content]),
|
|
4385
|
-
|
|
4386
|
-
}, [e.builderContextSignal.rootState]),
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
}
|
|
4392
|
-
}, [e.
|
|
4393
|
-
|
|
4388
|
+
}, []), N(() => {
|
|
4389
|
+
e.content && l(e.content);
|
|
4390
|
+
}, [e.content]), N(() => {
|
|
4391
|
+
E();
|
|
4392
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
4393
|
+
if (e.data) {
|
|
4394
|
+
if (n === e.data)
|
|
4395
|
+
return;
|
|
4396
|
+
a(e.data), i(e.data);
|
|
4397
|
+
}
|
|
4398
|
+
}, [e.data]), N(() => {
|
|
4399
|
+
if (e.locale) {
|
|
4400
|
+
if (r === e.locale)
|
|
4401
|
+
return;
|
|
4402
|
+
a({
|
|
4403
|
+
locale: e.locale
|
|
4404
|
+
}), o(e.locale);
|
|
4405
|
+
}
|
|
4406
|
+
}, [e.locale]), N(() => () => {
|
|
4407
|
+
K() && (window.removeEventListener("message", b), window.removeEventListener(
|
|
4394
4408
|
"builder:component:stateChangeListenerActivated",
|
|
4395
|
-
|
|
4409
|
+
E
|
|
4396
4410
|
));
|
|
4397
4411
|
}, []), /* @__PURE__ */ s(pe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
|
|
4398
|
-
|
|
4412
|
+
d,
|
|
4399
4413
|
{
|
|
4400
4414
|
ref: t,
|
|
4401
|
-
onClick: (
|
|
4402
|
-
"builder-content-id": (
|
|
4415
|
+
onClick: (v) => S(v),
|
|
4416
|
+
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4403
4417
|
"builder-model": e.model,
|
|
4404
4418
|
className: Pi(
|
|
4405
|
-
((
|
|
4419
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4406
4420
|
),
|
|
4407
4421
|
style: {
|
|
4408
4422
|
display: !e.builderContextSignal.content && De() ? "none" : void 0
|
|
4409
4423
|
},
|
|
4410
|
-
...
|
|
4424
|
+
...c(),
|
|
4411
4425
|
...e.contentWrapperProps,
|
|
4412
4426
|
children: e.children
|
|
4413
4427
|
}
|
|
4414
4428
|
) : null });
|
|
4415
4429
|
}
|
|
4416
4430
|
function Ai(e) {
|
|
4417
|
-
const [t, n] =
|
|
4431
|
+
const [t, n] = k(
|
|
4418
4432
|
() => `
|
|
4419
4433
|
${wi({
|
|
4420
4434
|
cssCode: e.cssCode,
|
|
@@ -4427,7 +4441,7 @@ ${Ri(e.isNestedRender)}
|
|
|
4427
4441
|
`.trim()
|
|
4428
4442
|
);
|
|
4429
4443
|
return /* @__PURE__ */ s(
|
|
4430
|
-
|
|
4444
|
+
te,
|
|
4431
4445
|
{
|
|
4432
4446
|
id: "builderio-content",
|
|
4433
4447
|
styles: t,
|
|
@@ -4464,39 +4478,39 @@ const Bi = ({
|
|
|
4464
4478
|
meta: e == null ? void 0 : e.meta
|
|
4465
4479
|
} : void 0;
|
|
4466
4480
|
function Oe(e) {
|
|
4467
|
-
var
|
|
4468
|
-
const [t, n] =
|
|
4481
|
+
var d, h, b, u, x, f, m, y, g;
|
|
4482
|
+
const [t, n] = k(
|
|
4469
4483
|
() => {
|
|
4470
|
-
var S,
|
|
4484
|
+
var S, T;
|
|
4471
4485
|
return vi({
|
|
4472
4486
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4473
4487
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4474
4488
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4475
|
-
contentId: (
|
|
4489
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4476
4490
|
});
|
|
4477
4491
|
}
|
|
4478
4492
|
);
|
|
4479
4493
|
function i(S) {
|
|
4480
|
-
l((
|
|
4481
|
-
...
|
|
4494
|
+
l((T) => ({
|
|
4495
|
+
...T,
|
|
4482
4496
|
rootState: S
|
|
4483
4497
|
}));
|
|
4484
4498
|
}
|
|
4485
|
-
const [r, o] =
|
|
4499
|
+
const [r, o] = k(
|
|
4486
4500
|
() => [
|
|
4487
4501
|
...Ne(),
|
|
4488
4502
|
...e.customComponents || []
|
|
4489
4503
|
].reduce(
|
|
4490
|
-
(S, { component:
|
|
4504
|
+
(S, { component: T, ...E }) => ({
|
|
4491
4505
|
...S,
|
|
4492
|
-
[
|
|
4493
|
-
component:
|
|
4494
|
-
...Ie(
|
|
4506
|
+
[E.name]: {
|
|
4507
|
+
component: T,
|
|
4508
|
+
...Ie(E)
|
|
4495
4509
|
}
|
|
4496
4510
|
}),
|
|
4497
4511
|
{}
|
|
4498
4512
|
)
|
|
4499
|
-
), [a, l] =
|
|
4513
|
+
), [a, l] = k(() => ({
|
|
4500
4514
|
content: Ni({
|
|
4501
4515
|
content: e.content,
|
|
4502
4516
|
data: e.data
|
|
@@ -4516,9 +4530,9 @@ function Oe(e) {
|
|
|
4516
4530
|
...Ne(),
|
|
4517
4531
|
...e.customComponents || []
|
|
4518
4532
|
].reduce(
|
|
4519
|
-
(S, { component:
|
|
4533
|
+
(S, { component: T, ...E }) => ({
|
|
4520
4534
|
...S,
|
|
4521
|
-
[
|
|
4535
|
+
[E.name]: Ie(E)
|
|
4522
4536
|
}),
|
|
4523
4537
|
{}
|
|
4524
4538
|
),
|
|
@@ -4527,19 +4541,19 @@ function Oe(e) {
|
|
|
4527
4541
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4528
4542
|
nonce: e.nonce || "",
|
|
4529
4543
|
model: e.model
|
|
4530
|
-
})), c =
|
|
4544
|
+
})), c = z(!1);
|
|
4531
4545
|
if (!c.current) {
|
|
4532
|
-
e.apiKey ||
|
|
4546
|
+
e.apiKey || Q.error(
|
|
4533
4547
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4534
4548
|
);
|
|
4535
|
-
const S = (
|
|
4536
|
-
S &&
|
|
4549
|
+
const S = (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4550
|
+
S && Y({
|
|
4537
4551
|
code: S,
|
|
4538
4552
|
context: e.context || {},
|
|
4539
4553
|
localState: void 0,
|
|
4540
4554
|
rootState: a.rootState,
|
|
4541
|
-
rootSetState: (
|
|
4542
|
-
Object.assign(a.rootState,
|
|
4555
|
+
rootSetState: (T) => {
|
|
4556
|
+
Object.assign(a.rootState, T);
|
|
4543
4557
|
},
|
|
4544
4558
|
isExpression: !1
|
|
4545
4559
|
}), c.current = !0;
|
|
@@ -4550,7 +4564,7 @@ function Oe(e) {
|
|
|
4550
4564
|
value: {
|
|
4551
4565
|
registeredComponents: r
|
|
4552
4566
|
},
|
|
4553
|
-
children: /* @__PURE__ */
|
|
4567
|
+
children: /* @__PURE__ */ D(
|
|
4554
4568
|
Vi,
|
|
4555
4569
|
{
|
|
4556
4570
|
apiHost: e.apiHost,
|
|
@@ -4572,7 +4586,7 @@ function Oe(e) {
|
|
|
4572
4586
|
setBuilderContextSignal: l,
|
|
4573
4587
|
children: [
|
|
4574
4588
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4575
|
-
|
|
4589
|
+
J,
|
|
4576
4590
|
{
|
|
4577
4591
|
id: "builderio-variant-visibility",
|
|
4578
4592
|
scriptStr: t,
|
|
@@ -4585,14 +4599,14 @@ function Oe(e) {
|
|
|
4585
4599
|
nonce: e.nonce || "",
|
|
4586
4600
|
isNestedRender: e.isNestedRender,
|
|
4587
4601
|
contentId: (b = a.content) == null ? void 0 : b.id,
|
|
4588
|
-
cssCode: (
|
|
4589
|
-
customFonts: (
|
|
4602
|
+
cssCode: (x = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4603
|
+
customFonts: (m = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4590
4604
|
}
|
|
4591
4605
|
),
|
|
4592
4606
|
/* @__PURE__ */ s(
|
|
4593
|
-
|
|
4607
|
+
M,
|
|
4594
4608
|
{
|
|
4595
|
-
blocks: (
|
|
4609
|
+
blocks: (g = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : g.blocks,
|
|
4596
4610
|
context: a,
|
|
4597
4611
|
registeredComponents: r,
|
|
4598
4612
|
linkComponent: e.linkComponent
|
|
@@ -4606,9 +4620,9 @@ function Oe(e) {
|
|
|
4606
4620
|
}
|
|
4607
4621
|
function Wi(e) {
|
|
4608
4622
|
var a;
|
|
4609
|
-
const [t, n] =
|
|
4623
|
+
const [t, n] = k(
|
|
4610
4624
|
() => hi({
|
|
4611
|
-
canTrack:
|
|
4625
|
+
canTrack: ee(e.canTrack),
|
|
4612
4626
|
content: e.content
|
|
4613
4627
|
})
|
|
4614
4628
|
);
|
|
@@ -4632,14 +4646,14 @@ function Wi(e) {
|
|
|
4632
4646
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4633
4647
|
} : ht({
|
|
4634
4648
|
item: e.content,
|
|
4635
|
-
canTrack:
|
|
4649
|
+
canTrack: ee(e.canTrack)
|
|
4636
4650
|
});
|
|
4637
4651
|
}
|
|
4638
|
-
return
|
|
4639
|
-
}, []), /* @__PURE__ */
|
|
4640
|
-
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */
|
|
4652
|
+
return N(() => {
|
|
4653
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
4654
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
|
|
4641
4655
|
/* @__PURE__ */ s(
|
|
4642
|
-
|
|
4656
|
+
J,
|
|
4643
4657
|
{
|
|
4644
4658
|
id: "builderio-init-variants-fns",
|
|
4645
4659
|
scriptStr: yi(),
|
|
@@ -4647,7 +4661,7 @@ function Wi(e) {
|
|
|
4647
4661
|
}
|
|
4648
4662
|
),
|
|
4649
4663
|
rt.includes(O) ? /* @__PURE__ */ s(
|
|
4650
|
-
|
|
4664
|
+
J,
|
|
4651
4665
|
{
|
|
4652
4666
|
id: "builderio-init-personalization-variants-fns",
|
|
4653
4667
|
nonce: e.nonce || "",
|
|
@@ -4655,9 +4669,9 @@ function Wi(e) {
|
|
|
4655
4669
|
}
|
|
4656
4670
|
) : null
|
|
4657
4671
|
] }) : null,
|
|
4658
|
-
t ? /* @__PURE__ */
|
|
4672
|
+
t ? /* @__PURE__ */ D(P, { children: [
|
|
4659
4673
|
/* @__PURE__ */ s(
|
|
4660
|
-
|
|
4674
|
+
te,
|
|
4661
4675
|
{
|
|
4662
4676
|
id: "builderio-variants",
|
|
4663
4677
|
styles: r(),
|
|
@@ -4665,7 +4679,7 @@ function Wi(e) {
|
|
|
4665
4679
|
}
|
|
4666
4680
|
),
|
|
4667
4681
|
/* @__PURE__ */ s(
|
|
4668
|
-
|
|
4682
|
+
J,
|
|
4669
4683
|
{
|
|
4670
4684
|
id: "builderio-variants-visibility",
|
|
4671
4685
|
scriptStr: i(),
|
|
@@ -4744,11 +4758,11 @@ const $i = async ({
|
|
|
4744
4758
|
}
|
|
4745
4759
|
}
|
|
4746
4760
|
}).catch((n) => {
|
|
4747
|
-
|
|
4761
|
+
Q.error("Could not fetch symbol content: ", n);
|
|
4748
4762
|
});
|
|
4749
4763
|
};
|
|
4750
4764
|
function Di(e) {
|
|
4751
|
-
var
|
|
4765
|
+
var h, b, u, x, f;
|
|
4752
4766
|
function t() {
|
|
4753
4767
|
return "div";
|
|
4754
4768
|
}
|
|
@@ -4756,35 +4770,38 @@ function Di(e) {
|
|
|
4756
4770
|
return "div";
|
|
4757
4771
|
}
|
|
4758
4772
|
function i() {
|
|
4759
|
-
|
|
4773
|
+
return Object.values(e.builderComponents);
|
|
4774
|
+
}
|
|
4775
|
+
function r() {
|
|
4776
|
+
var m, y;
|
|
4760
4777
|
return [
|
|
4761
|
-
e.attributes[
|
|
4778
|
+
e.attributes[G()],
|
|
4762
4779
|
"builder-symbol",
|
|
4763
|
-
(
|
|
4764
|
-
(
|
|
4780
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4781
|
+
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4765
4782
|
].filter(Boolean).join(" ");
|
|
4766
4783
|
}
|
|
4767
|
-
const [
|
|
4768
|
-
var
|
|
4769
|
-
return (
|
|
4770
|
-
}), [
|
|
4771
|
-
var
|
|
4772
|
-
return (
|
|
4784
|
+
const [o, a] = k(() => {
|
|
4785
|
+
var m;
|
|
4786
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4787
|
+
}), [l, c] = k(() => {
|
|
4788
|
+
var m;
|
|
4789
|
+
return (m = e.symbol) == null ? void 0 : m.entry;
|
|
4773
4790
|
});
|
|
4774
|
-
function
|
|
4775
|
-
var
|
|
4776
|
-
|
|
4791
|
+
function d() {
|
|
4792
|
+
var m;
|
|
4793
|
+
o && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
|
|
4777
4794
|
symbol: e.symbol,
|
|
4778
4795
|
builderContextValue: e.builderContext
|
|
4779
|
-
}).then((
|
|
4780
|
-
var
|
|
4781
|
-
|
|
4796
|
+
}).then((y) => {
|
|
4797
|
+
var g;
|
|
4798
|
+
y && (a(y), c((g = e.symbol) == null ? void 0 : g.entry));
|
|
4782
4799
|
});
|
|
4783
4800
|
}
|
|
4784
|
-
return
|
|
4785
|
-
}, []),
|
|
4786
|
-
|
|
4787
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4801
|
+
return N(() => {
|
|
4802
|
+
}, []), N(() => {
|
|
4803
|
+
d();
|
|
4804
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4788
4805
|
Wi,
|
|
4789
4806
|
{
|
|
4790
4807
|
nonce: e.builderContext.nonce,
|
|
@@ -4793,17 +4810,17 @@ function Di(e) {
|
|
|
4793
4810
|
apiKey: e.builderContext.apiKey,
|
|
4794
4811
|
context: {
|
|
4795
4812
|
...e.builderContext.context,
|
|
4796
|
-
symbolId: (
|
|
4813
|
+
symbolId: (h = e.builderBlock) == null ? void 0 : h.id
|
|
4797
4814
|
},
|
|
4798
|
-
customComponents:
|
|
4815
|
+
customComponents: i(),
|
|
4799
4816
|
data: {
|
|
4800
|
-
...(
|
|
4817
|
+
...(b = e.symbol) == null ? void 0 : b.data,
|
|
4801
4818
|
...e.builderContext.localState,
|
|
4802
|
-
...(
|
|
4819
|
+
...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
|
|
4803
4820
|
},
|
|
4804
4821
|
canTrack: e.builderContext.canTrack,
|
|
4805
|
-
model: (
|
|
4806
|
-
content:
|
|
4822
|
+
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4823
|
+
content: o,
|
|
4807
4824
|
linkComponent: e.builderLinkComponent,
|
|
4808
4825
|
blocksWrapper: t(),
|
|
4809
4826
|
contentWrapper: n()
|
|
@@ -4811,7 +4828,7 @@ function Di(e) {
|
|
|
4811
4828
|
) });
|
|
4812
4829
|
}
|
|
4813
4830
|
export {
|
|
4814
|
-
|
|
4831
|
+
M as Blocks,
|
|
4815
4832
|
pe as BuilderContext,
|
|
4816
4833
|
pt as Button,
|
|
4817
4834
|
un as Columns,
|