@builder.io/sdk-react 2.0.3 → 2.0.5
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 +12 -12
- package/lib/browser/blocks-exports.mjs +185 -164
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/{node/server-entry-0687830a.js → browser/server-entry-0c6c220c.js} +1 -1
- package/lib/browser/{server-entry-02cecfb7.cjs → server-entry-7e145817.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-368a2cf8.cjs → accordion-72dab8ce.cjs} +1 -1
- package/lib/edge/{accordion-0eca9b08.js → accordion-99129d68.js} +1 -1
- package/lib/edge/blocks-426e0c44.js +808 -0
- package/lib/edge/blocks-53ae1b87.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-e852700f.js → button-778062cd.js} +2 -2
- package/lib/edge/{button-3ed29654.cjs → button-967d0268.cjs} +1 -1
- package/lib/edge/{columns-ee464f6c.js → columns-3a8c4d3f.js} +10 -9
- package/lib/edge/columns-3b921658.cjs +28 -0
- package/lib/edge/{content-variants-c0257a99.js → content-variants-15d191de.js} +15 -13
- package/lib/edge/content-variants-4b8718f8.cjs +134 -0
- package/lib/edge/evaluate-26c0fdb7.js +2615 -0
- package/lib/edge/evaluate-c0eeb4f8.cjs +21 -0
- package/lib/edge/form-9d9dce5d.cjs +1 -0
- package/lib/edge/{form-8191004e.js → form-ccb0b912.js} +8 -7
- package/lib/edge/{get-class-prop-name-d18337d2.js → get-class-prop-name-0a91c3bd.js} +1 -1
- package/lib/edge/{get-class-prop-name-5fc98fcc.cjs → get-class-prop-name-eae60eae.cjs} +1 -1
- package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
- package/lib/edge/image-eebfcbac.cjs +17 -0
- package/lib/edge/{img-10ef20a5.cjs → img-183de27d.cjs} +1 -1
- package/lib/edge/{img-a24ed75f.js → img-75751c89.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-3876429d.js → input-27972020.js} +1 -1
- package/lib/edge/{input-6325bfc0.cjs → input-fd18a67d.cjs} +1 -1
- package/lib/edge/{select-5dc1c7d1.js → select-60ff549c.js} +1 -1
- package/lib/edge/{select-3f0f00f3.cjs → select-6ea0d59f.cjs} +1 -1
- package/lib/edge/{server-entry-805b9266.cjs → server-entry-4133a544.cjs} +1 -1
- package/lib/edge/{server-entry-ff728468.js → server-entry-feff6177.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-20fe5e4f.js → slot-2347377e.js} +12 -11
- package/lib/edge/slot-a4509cae.cjs +1 -0
- package/lib/edge/{symbol-5012ed02.cjs → symbol-98650b06.cjs} +1 -1
- package/lib/edge/{symbol-e95082e1.js → symbol-dcef0d8e.js} +2 -2
- package/lib/edge/{tabs-261e8cd4.js → tabs-0784574b.js} +10 -9
- package/lib/edge/tabs-4c131e17.cjs +1 -0
- package/lib/edge/text-1c1986aa.cjs +1 -0
- package/lib/edge/text-6f7cbc35.js +38 -0
- package/lib/node/blocks-exports.cjs +15 -15
- package/lib/node/blocks-exports.mjs +186 -165
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-160b6846.cjs → node-runtime-4978bc21.cjs} +1 -1
- package/lib/node/{node-runtime-405effc5.js → node-runtime-ce5c71e5.js} +1 -1
- package/lib/{browser/server-entry-0687830a.js → node/server-entry-0c6c220c.js} +1 -1
- package/lib/node/{server-entry-02cecfb7.cjs → server-entry-7e145817.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/image/image.types.d.ts +2 -0
- package/types/blocks/symbol/symbol.types.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/blocks-db3cfcac.js +0 -3419
- package/lib/edge/blocks-f524a758.cjs +0 -32
- package/lib/edge/columns-1f84e26e.cjs +0 -28
- package/lib/edge/content-variants-42f2495b.cjs +0 -134
- package/lib/edge/form-4444faf2.cjs +0 -1
- package/lib/edge/image-344ddbb0.cjs +0 -17
- package/lib/edge/slot-a64b535f.cjs +0 -1
- package/lib/edge/tabs-d672f816.cjs +0 -1
- package/lib/edge/text-5915f038.js +0 -17
- package/lib/edge/text-e6dbb721.cjs +0 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
var qe = Object.defineProperty;
|
|
3
3
|
var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
6
|
-
import { TARGET as z, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-
|
|
7
|
-
import { createContext as Re, useState as T, useEffect as
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-0c6c220c.js";
|
|
7
|
+
import { createContext as Re, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
8
|
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
9
|
function de(e) {
|
|
10
10
|
return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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 }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const K = () => {
|
|
13
13
|
switch (z) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
@@ -27,7 +27,7 @@ function nt(e) {
|
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -164,7 +164,7 @@ const st = () => {
|
|
|
164
164
|
};
|
|
165
165
|
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
166
166
|
let U = L;
|
|
167
|
-
function
|
|
167
|
+
function H({
|
|
168
168
|
code: e,
|
|
169
169
|
context: t,
|
|
170
170
|
localState: n,
|
|
@@ -188,19 +188,19 @@ function K({
|
|
|
188
188
|
localState: n
|
|
189
189
|
};
|
|
190
190
|
if (l) {
|
|
191
|
-
const
|
|
191
|
+
const d = U.getCacheKey(c), f = U.getCachedValue(d);
|
|
192
192
|
if (f)
|
|
193
193
|
return f.value;
|
|
194
194
|
}
|
|
195
195
|
try {
|
|
196
|
-
const
|
|
196
|
+
const d = ct(c);
|
|
197
197
|
if (l) {
|
|
198
198
|
const f = U.getCacheKey(c);
|
|
199
|
-
U.setCachedValue(f,
|
|
199
|
+
U.setCachedValue(f, d);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
202
|
-
} catch (
|
|
203
|
-
Z.error("Failed code evaluation: " +
|
|
201
|
+
return d;
|
|
202
|
+
} catch (d) {
|
|
203
|
+
Z.error("Failed code evaluation: " + d.message, {
|
|
204
204
|
code: e
|
|
205
205
|
});
|
|
206
206
|
return;
|
|
@@ -231,7 +231,7 @@ const dt = ({
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
for (const l in e.bindings) {
|
|
234
|
-
const c = e.bindings[l],
|
|
234
|
+
const c = e.bindings[l], d = H({
|
|
235
235
|
code: c,
|
|
236
236
|
localState: n,
|
|
237
237
|
rootState: i,
|
|
@@ -239,7 +239,7 @@ const dt = ({
|
|
|
239
239
|
context: t,
|
|
240
240
|
enableCache: !0
|
|
241
241
|
});
|
|
242
|
-
Ve(a, l,
|
|
242
|
+
Ve(a, l, d);
|
|
243
243
|
}
|
|
244
244
|
return a;
|
|
245
245
|
};
|
|
@@ -267,13 +267,13 @@ function ut(e, t, n = {}) {
|
|
|
267
267
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
268
268
|
};
|
|
269
269
|
return function() {
|
|
270
|
-
const
|
|
271
|
-
!l && n.leading === !1 && (l =
|
|
272
|
-
const f = t - (
|
|
273
|
-
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l =
|
|
270
|
+
const d = Date.now();
|
|
271
|
+
!l && n.leading === !1 && (l = d);
|
|
272
|
+
const f = t - (d - l);
|
|
273
|
+
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = d, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function q(e, ...t) {
|
|
277
277
|
const n = Object(e);
|
|
278
278
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
279
|
const o = arguments[i];
|
|
@@ -317,8 +317,8 @@ function We(e) {
|
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
319
|
Array.from(t).forEach((n) => {
|
|
320
|
-
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
321
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
320
|
+
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
321
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
322
322
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
323
323
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
324
324
|
});
|
|
@@ -335,23 +335,23 @@ function ht(e) {
|
|
|
335
335
|
let i = !1, o = !1;
|
|
336
336
|
function r() {
|
|
337
337
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
338
|
-
|
|
338
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
339
339
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
340
340
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
341
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
341
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
342
342
|
}
|
|
343
343
|
const a = ut(r, 200, {
|
|
344
344
|
leading: !1
|
|
345
345
|
});
|
|
346
346
|
function l(f) {
|
|
347
|
-
const
|
|
348
|
-
return
|
|
347
|
+
const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
|
|
348
|
+
return u.bottom > y && u.top < m - y;
|
|
349
349
|
}
|
|
350
350
|
const c = e.steps[0].styles;
|
|
351
|
-
function
|
|
352
|
-
|
|
351
|
+
function d() {
|
|
352
|
+
q(n.style, c);
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
d(), setTimeout(() => {
|
|
355
355
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
356
356
|
}), document.addEventListener("scroll", a, {
|
|
357
357
|
capture: !0,
|
|
@@ -434,7 +434,7 @@ const yt = ({
|
|
|
434
434
|
} = e;
|
|
435
435
|
if (!(n != null && n.collection))
|
|
436
436
|
return;
|
|
437
|
-
const o =
|
|
437
|
+
const o = H({
|
|
438
438
|
code: n.collection,
|
|
439
439
|
localState: t.localState,
|
|
440
440
|
rootState: t.rootState,
|
|
@@ -445,15 +445,15 @@ const yt = ({
|
|
|
445
445
|
if (!Array.isArray(o))
|
|
446
446
|
return;
|
|
447
447
|
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
448
|
-
return o.map((c,
|
|
448
|
+
return o.map((c, d) => ({
|
|
449
449
|
context: {
|
|
450
450
|
...t,
|
|
451
451
|
localState: {
|
|
452
452
|
...t.localState,
|
|
453
|
-
$index:
|
|
453
|
+
$index: d,
|
|
454
454
|
$item: c,
|
|
455
455
|
[a]: c,
|
|
456
|
-
[`$${a}Index`]:
|
|
456
|
+
[`$${a}Index`]: d
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
block: i
|
|
@@ -554,10 +554,10 @@ function Tt(e) {
|
|
|
554
554
|
shouldEvaluateBindings: !0
|
|
555
555
|
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
556
556
|
((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
|
|
557
|
-
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium,
|
|
557
|
+
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
|
|
558
558
|
if (!f)
|
|
559
559
|
return "";
|
|
560
|
-
const
|
|
560
|
+
const u = l ? J({
|
|
561
561
|
className: f,
|
|
562
562
|
styles: l
|
|
563
563
|
}) : "", m = c ? J({
|
|
@@ -567,9 +567,9 @@ function Tt(e) {
|
|
|
567
567
|
"medium",
|
|
568
568
|
a
|
|
569
569
|
)
|
|
570
|
-
}) : "", g =
|
|
570
|
+
}) : "", g = d ? J({
|
|
571
571
|
className: f,
|
|
572
|
-
styles:
|
|
572
|
+
styles: d,
|
|
573
573
|
mediaQuery: ye(
|
|
574
574
|
"small",
|
|
575
575
|
a
|
|
@@ -590,7 +590,7 @@ function Tt(e) {
|
|
|
590
590
|
}) || "";
|
|
591
591
|
}
|
|
592
592
|
return [
|
|
593
|
-
|
|
593
|
+
u,
|
|
594
594
|
m,
|
|
595
595
|
g,
|
|
596
596
|
C
|
|
@@ -608,7 +608,7 @@ function Tt(e) {
|
|
|
608
608
|
function It(e) {
|
|
609
609
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
610
610
|
}
|
|
611
|
-
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) =>
|
|
611
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
|
|
612
612
|
code: e,
|
|
613
613
|
context: t.context,
|
|
614
614
|
localState: t.localState,
|
|
@@ -660,7 +660,7 @@ function fe({
|
|
|
660
660
|
block: e,
|
|
661
661
|
context: t
|
|
662
662
|
}),
|
|
663
|
-
[
|
|
663
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
664
664
|
};
|
|
665
665
|
return Et({
|
|
666
666
|
properties: n,
|
|
@@ -781,7 +781,7 @@ function Nt(e) {
|
|
|
781
781
|
) });
|
|
782
782
|
}
|
|
783
783
|
function _(e) {
|
|
784
|
-
var c,
|
|
784
|
+
var c, d, f;
|
|
785
785
|
function t() {
|
|
786
786
|
return yt({
|
|
787
787
|
block: e.block,
|
|
@@ -796,8 +796,8 @@ function _(e) {
|
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
function i() {
|
|
799
|
-
var
|
|
800
|
-
return (
|
|
799
|
+
var u;
|
|
800
|
+
return (u = e.block.repeat) != null && u.collection ? e.block : X({
|
|
801
801
|
block: e.block,
|
|
802
802
|
localState: e.context.localState,
|
|
803
803
|
rootState: e.context.rootState,
|
|
@@ -814,17 +814,17 @@ function _(e) {
|
|
|
814
814
|
var g, y;
|
|
815
815
|
if ((g = e.block.repeat) != null && g.collection)
|
|
816
816
|
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
817
|
-
const
|
|
818
|
-
return ("show" in i() ? i().show : !0) && !
|
|
817
|
+
const u = "hide" in i() ? i().hide : !1;
|
|
818
|
+
return ("show" in i() ? i().show : !0) && !u;
|
|
819
819
|
}
|
|
820
820
|
function a() {
|
|
821
821
|
var m, g;
|
|
822
822
|
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
823
823
|
}
|
|
824
824
|
function l() {
|
|
825
|
-
var
|
|
825
|
+
var u, m, g, y;
|
|
826
826
|
return {
|
|
827
|
-
blockChildren: (
|
|
827
|
+
blockChildren: (u = i().children) != null ? u : [],
|
|
828
828
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
829
829
|
componentOptions: {
|
|
830
830
|
...it(i()),
|
|
@@ -844,15 +844,15 @@ function _(e) {
|
|
|
844
844
|
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
return
|
|
848
|
-
const
|
|
849
|
-
m &&
|
|
847
|
+
return P(() => {
|
|
848
|
+
const u = i().id, m = i().animations;
|
|
849
|
+
m && u && mt(
|
|
850
850
|
m.map((g) => ({
|
|
851
851
|
...g,
|
|
852
|
-
elementId:
|
|
852
|
+
elementId: u
|
|
853
853
|
}))
|
|
854
854
|
);
|
|
855
|
-
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */
|
|
855
|
+
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ V(R, { children: [
|
|
856
856
|
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
857
857
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
858
858
|
xe,
|
|
@@ -867,16 +867,16 @@ function _(e) {
|
|
|
867
867
|
includeBlockProps: l().includeBlockProps,
|
|
868
868
|
isInteractive: l().isInteractive
|
|
869
869
|
}
|
|
870
|
-
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((
|
|
870
|
+
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
|
|
871
871
|
Nt,
|
|
872
872
|
{
|
|
873
|
-
repeatContext:
|
|
874
|
-
block:
|
|
873
|
+
repeatContext: u.context,
|
|
874
|
+
block: u.block,
|
|
875
875
|
registeredComponents: e.registeredComponents,
|
|
876
876
|
linkComponent: e.linkComponent
|
|
877
877
|
},
|
|
878
878
|
m
|
|
879
|
-
)) }) : /* @__PURE__ */
|
|
879
|
+
)) }) : /* @__PURE__ */ V(
|
|
880
880
|
Pt,
|
|
881
881
|
{
|
|
882
882
|
Wrapper: o(),
|
|
@@ -897,15 +897,15 @@ function _(e) {
|
|
|
897
897
|
isInteractive: l().isInteractive
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
|
-
(
|
|
900
|
+
(d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
|
|
901
901
|
_,
|
|
902
902
|
{
|
|
903
|
-
block:
|
|
903
|
+
block: u,
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
linkComponent: e.linkComponent,
|
|
906
906
|
context: e.context
|
|
907
907
|
},
|
|
908
|
-
|
|
908
|
+
u.id
|
|
909
909
|
))
|
|
910
910
|
]
|
|
911
911
|
}
|
|
@@ -943,7 +943,7 @@ function Wt(e) {
|
|
|
943
943
|
"*"
|
|
944
944
|
));
|
|
945
945
|
}
|
|
946
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
947
947
|
/* @__PURE__ */ s(
|
|
948
948
|
e.BlocksWrapper,
|
|
949
949
|
{
|
|
@@ -1005,7 +1005,7 @@ function Ft(e) {
|
|
|
1005
1005
|
var w;
|
|
1006
1006
|
return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1008
|
+
function d(x) {
|
|
1009
1009
|
const w = c(x), N = t * (i.length - 1) * (w / 100);
|
|
1010
1010
|
return `calc(${w}% - ${N}px)`;
|
|
1011
1011
|
}
|
|
@@ -1015,7 +1015,7 @@ function Ft(e) {
|
|
|
1015
1015
|
}) {
|
|
1016
1016
|
return r === "tablet" ? x : w;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function u({
|
|
1019
1019
|
stackedStyle: x,
|
|
1020
1020
|
desktopStyle: w
|
|
1021
1021
|
}) {
|
|
@@ -1034,7 +1034,7 @@ function Ft(e) {
|
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
1036
|
function C(x) {
|
|
1037
|
-
const w = x === 0 ? 0 : t, N =
|
|
1037
|
+
const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
|
|
1038
1038
|
return {
|
|
1039
1039
|
...{
|
|
1040
1040
|
display: "flex",
|
|
@@ -1043,11 +1043,11 @@ function Ft(e) {
|
|
|
1043
1043
|
},
|
|
1044
1044
|
width: N,
|
|
1045
1045
|
["marginLeft"]: b,
|
|
1046
|
-
"--column-width-mobile":
|
|
1046
|
+
"--column-width-mobile": u({
|
|
1047
1047
|
stackedStyle: h,
|
|
1048
1048
|
desktopStyle: N
|
|
1049
1049
|
}),
|
|
1050
|
-
"--column-margin-left-mobile":
|
|
1050
|
+
"--column-margin-left-mobile": u({
|
|
1051
1051
|
stackedStyle: v,
|
|
1052
1052
|
desktopStyle: b
|
|
1053
1053
|
}),
|
|
@@ -1100,12 +1100,12 @@ function Ft(e) {
|
|
|
1100
1100
|
...x.link ? {
|
|
1101
1101
|
href: x.link
|
|
1102
1102
|
} : {},
|
|
1103
|
-
[
|
|
1103
|
+
[K()]: "builder-column",
|
|
1104
1104
|
style: Fe(C(w))
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
|
-
return /* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1108
|
+
/* @__PURE__ */ V(
|
|
1109
1109
|
"div",
|
|
1110
1110
|
{
|
|
1111
1111
|
className: $t((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
@@ -1185,21 +1185,21 @@ function oe(e) {
|
|
|
1185
1185
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1186
1186
|
}
|
|
1187
1187
|
function jt(e) {
|
|
1188
|
-
var o, r, a, l, c,
|
|
1188
|
+
var o, r, a, l, c, d;
|
|
1189
1189
|
function t() {
|
|
1190
1190
|
var m;
|
|
1191
|
-
const
|
|
1192
|
-
if (!
|
|
1191
|
+
const u = e.image || e.src;
|
|
1192
|
+
if (!u || // We can auto add srcset for cdn.builder.io and shopify
|
|
1193
1193
|
// images, otherwise you can supply this prop manually
|
|
1194
|
-
!(
|
|
1194
|
+
!(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
|
|
1195
1195
|
return e.srcset;
|
|
1196
1196
|
if (!e.noWebp) {
|
|
1197
1197
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1198
1198
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1199
|
-
return console.debug("Removed given srcset"), oe(
|
|
1199
|
+
return console.debug("Removed given srcset"), oe(u);
|
|
1200
1200
|
} else if (e.image && !e.srcset)
|
|
1201
|
-
return oe(
|
|
1202
|
-
return oe(
|
|
1201
|
+
return oe(u);
|
|
1202
|
+
return oe(u);
|
|
1203
1203
|
}
|
|
1204
1204
|
}
|
|
1205
1205
|
function n() {
|
|
@@ -1216,9 +1216,10 @@ function jt(e) {
|
|
|
1216
1216
|
};
|
|
1217
1217
|
return e.aspectRatio ? f : void 0;
|
|
1218
1218
|
}
|
|
1219
|
-
return
|
|
1220
|
-
|
|
1221
|
-
|
|
1219
|
+
return P(() => {
|
|
1220
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
1221
|
+
/* @__PURE__ */ V(R, { children: [
|
|
1222
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1222
1223
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1223
1224
|
/* @__PURE__ */ s(
|
|
1224
1225
|
"img",
|
|
@@ -1232,7 +1233,7 @@ function jt(e) {
|
|
|
1232
1233
|
objectFit: e.backgroundSize || "cover",
|
|
1233
1234
|
...i()
|
|
1234
1235
|
},
|
|
1235
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1236
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
|
|
1236
1237
|
src: e.image,
|
|
1237
1238
|
srcSet: t(),
|
|
1238
1239
|
sizes: e.sizes
|
|
@@ -1242,23 +1243,23 @@ function jt(e) {
|
|
|
1242
1243
|
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1243
1244
|
"div",
|
|
1244
1245
|
{
|
|
1245
|
-
className: "builder-image-sizer div-
|
|
1246
|
+
className: "builder-image-sizer div-2d6925f2",
|
|
1246
1247
|
style: {
|
|
1247
1248
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1248
1249
|
}
|
|
1249
1250
|
}
|
|
1250
1251
|
) : null,
|
|
1251
1252
|
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1252
|
-
!e.fitContent && ((
|
|
1253
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1253
1254
|
] }),
|
|
1254
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1255
|
+
/* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
|
|
1255
1256
|
opacity: 1;
|
|
1256
1257
|
transition: opacity 0.2s ease-in-out;
|
|
1257
|
-
}.div-
|
|
1258
|
+
}.div-2d6925f2 {
|
|
1258
1259
|
width: 100%;
|
|
1259
1260
|
pointer-events: none;
|
|
1260
1261
|
font-size: 0;
|
|
1261
|
-
}.div-
|
|
1262
|
+
}.div-2d6925f2-2 {
|
|
1262
1263
|
display: flex;
|
|
1263
1264
|
flex-direction: column;
|
|
1264
1265
|
align-items: stretch;
|
|
@@ -1417,7 +1418,7 @@ const ae = {
|
|
|
1417
1418
|
}
|
|
1418
1419
|
}, Se = (e) => e.toString();
|
|
1419
1420
|
function Ht(e) {
|
|
1420
|
-
var
|
|
1421
|
+
var u;
|
|
1421
1422
|
const [t, n] = T(() => []);
|
|
1422
1423
|
function i() {
|
|
1423
1424
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1480,7 +1481,7 @@ function Ht(e) {
|
|
|
1480
1481
|
}
|
|
1481
1482
|
return typeof m == "number" && (m = m + 1), m;
|
|
1482
1483
|
}
|
|
1483
|
-
function
|
|
1484
|
+
function d() {
|
|
1484
1485
|
const m = {
|
|
1485
1486
|
order: typeof c() == "number" ? c() : void 0,
|
|
1486
1487
|
...e.grid && {
|
|
@@ -1494,7 +1495,7 @@ function Ht(e) {
|
|
|
1494
1495
|
function f(m) {
|
|
1495
1496
|
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1496
1497
|
}
|
|
1497
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (
|
|
1498
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
|
|
1498
1499
|
/* @__PURE__ */ s(
|
|
1499
1500
|
"div",
|
|
1500
1501
|
{
|
|
@@ -1523,7 +1524,7 @@ function Ht(e) {
|
|
|
1523
1524
|
"div",
|
|
1524
1525
|
{
|
|
1525
1526
|
className: l(g),
|
|
1526
|
-
style:
|
|
1527
|
+
style: d(),
|
|
1527
1528
|
children: /* @__PURE__ */ s(
|
|
1528
1529
|
D,
|
|
1529
1530
|
{
|
|
@@ -1809,15 +1810,15 @@ const qt = {
|
|
|
1809
1810
|
onChange: (e) => {
|
|
1810
1811
|
e.delete("srcset"), e.delete("noWebp");
|
|
1811
1812
|
function n(a, l = 6e4) {
|
|
1812
|
-
return new Promise((c,
|
|
1813
|
+
return new Promise((c, d) => {
|
|
1813
1814
|
const f = document.createElement("img");
|
|
1814
|
-
let
|
|
1815
|
+
let u = !1;
|
|
1815
1816
|
f.onload = () => {
|
|
1816
|
-
|
|
1817
|
+
u = !0, c(f);
|
|
1817
1818
|
}, f.addEventListener("error", (m) => {
|
|
1818
|
-
console.warn("Image load failed", m.error),
|
|
1819
|
+
console.warn("Image load failed", m.error), d(m.error);
|
|
1819
1820
|
}), f.src = a, setTimeout(() => {
|
|
1820
|
-
|
|
1821
|
+
u || d(new Error("Image load timed out"));
|
|
1821
1822
|
}, l);
|
|
1822
1823
|
});
|
|
1823
1824
|
}
|
|
@@ -2167,7 +2168,7 @@ function Zt(e) {
|
|
|
2167
2168
|
function o(a) {
|
|
2168
2169
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2169
2170
|
}
|
|
2170
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
2171
2172
|
/* @__PURE__ */ s(
|
|
2172
2173
|
"div",
|
|
2173
2174
|
{
|
|
@@ -2217,7 +2218,8 @@ function Zt(e) {
|
|
|
2217
2218
|
}
|
|
2218
2219
|
const en = {
|
|
2219
2220
|
shouldReceiveBuilderProps: {
|
|
2220
|
-
builderBlock: !1
|
|
2221
|
+
builderBlock: !1,
|
|
2222
|
+
builderContext: !0
|
|
2221
2223
|
},
|
|
2222
2224
|
name: "Text",
|
|
2223
2225
|
static: !0,
|
|
@@ -2238,12 +2240,31 @@ const en = {
|
|
|
2238
2240
|
}
|
|
2239
2241
|
};
|
|
2240
2242
|
function tn(e) {
|
|
2241
|
-
|
|
2243
|
+
function t() {
|
|
2244
|
+
var l;
|
|
2245
|
+
const n = e.builderContext, {
|
|
2246
|
+
context: i,
|
|
2247
|
+
localState: o,
|
|
2248
|
+
rootState: r,
|
|
2249
|
+
rootSetState: a
|
|
2250
|
+
} = n;
|
|
2251
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2252
|
+
/{{([^}]+)}}/g,
|
|
2253
|
+
(c, d) => H({
|
|
2254
|
+
code: d,
|
|
2255
|
+
context: i,
|
|
2256
|
+
localState: o,
|
|
2257
|
+
rootState: r,
|
|
2258
|
+
rootSetState: a,
|
|
2259
|
+
enableCache: !1
|
|
2260
|
+
})
|
|
2261
|
+
);
|
|
2262
|
+
}
|
|
2242
2263
|
return /* @__PURE__ */ s(
|
|
2243
2264
|
"div",
|
|
2244
2265
|
{
|
|
2245
2266
|
className: "builder-text",
|
|
2246
|
-
dangerouslySetInnerHTML: { __html:
|
|
2267
|
+
dangerouslySetInnerHTML: { __html: t() },
|
|
2247
2268
|
style: {
|
|
2248
2269
|
outline: "none"
|
|
2249
2270
|
}
|
|
@@ -2275,28 +2296,28 @@ const nn = {
|
|
|
2275
2296
|
};
|
|
2276
2297
|
function on(e) {
|
|
2277
2298
|
const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
|
|
2278
|
-
return
|
|
2299
|
+
return P(() => {
|
|
2279
2300
|
var l;
|
|
2280
2301
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2281
2302
|
return;
|
|
2282
2303
|
const a = t.current.getElementsByTagName("script");
|
|
2283
2304
|
for (let c = 0; c < a.length; c++) {
|
|
2284
|
-
const
|
|
2285
|
-
if (
|
|
2286
|
-
if (n.includes(
|
|
2305
|
+
const d = a[c];
|
|
2306
|
+
if (d.src) {
|
|
2307
|
+
if (n.includes(d.src))
|
|
2287
2308
|
continue;
|
|
2288
|
-
n.push(
|
|
2309
|
+
n.push(d.src);
|
|
2289
2310
|
const f = document.createElement("script");
|
|
2290
|
-
f.async = !0, f.src =
|
|
2291
|
-
} else if (!
|
|
2311
|
+
f.async = !0, f.src = d.src, document.head.appendChild(f);
|
|
2312
|
+
} else if (!d.type || [
|
|
2292
2313
|
"text/javascript",
|
|
2293
2314
|
"application/javascript",
|
|
2294
2315
|
"application/ecmascript"
|
|
2295
|
-
].includes(
|
|
2296
|
-
if (o.includes(
|
|
2316
|
+
].includes(d.type)) {
|
|
2317
|
+
if (o.includes(d.innerText))
|
|
2297
2318
|
continue;
|
|
2298
2319
|
try {
|
|
2299
|
-
o.push(
|
|
2320
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
2300
2321
|
} catch (f) {
|
|
2301
2322
|
console.warn("`CustomCode`: Error running script:", f);
|
|
2302
2323
|
}
|
|
@@ -2332,22 +2353,22 @@ function sn(e) {
|
|
|
2332
2353
|
function c() {
|
|
2333
2354
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2334
2355
|
return;
|
|
2335
|
-
const
|
|
2336
|
-
for (let f = 0; f <
|
|
2337
|
-
const
|
|
2338
|
-
if (
|
|
2339
|
-
n.push(
|
|
2356
|
+
const d = t.current.getElementsByTagName("script");
|
|
2357
|
+
for (let f = 0; f < d.length; f++) {
|
|
2358
|
+
const u = d[f];
|
|
2359
|
+
if (u.src && !n.includes(u.src)) {
|
|
2360
|
+
n.push(u.src);
|
|
2340
2361
|
const m = document.createElement("script");
|
|
2341
|
-
m.async = !0, m.src =
|
|
2342
|
-
} else if (ln(
|
|
2362
|
+
m.async = !0, m.src = u.src, document.head.appendChild(m);
|
|
2363
|
+
} else if (ln(u) && !o.includes(u.innerText))
|
|
2343
2364
|
try {
|
|
2344
|
-
o.push(
|
|
2365
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
2345
2366
|
} catch (m) {
|
|
2346
2367
|
console.warn("`Embed`: Error running script:", m);
|
|
2347
2368
|
}
|
|
2348
2369
|
}
|
|
2349
2370
|
}
|
|
2350
|
-
return
|
|
2371
|
+
return P(() => {
|
|
2351
2372
|
t.current && !a && (l(!0), c());
|
|
2352
2373
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2353
2374
|
"div",
|
|
@@ -2603,7 +2624,7 @@ const cn = {
|
|
|
2603
2624
|
return i === void 0 || i === e ? n : i;
|
|
2604
2625
|
};
|
|
2605
2626
|
function fn(e) {
|
|
2606
|
-
var
|
|
2627
|
+
var u, m;
|
|
2607
2628
|
const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
|
|
2608
2629
|
function c(g) {
|
|
2609
2630
|
var C, p;
|
|
@@ -2613,7 +2634,7 @@ function fn(e) {
|
|
|
2613
2634
|
};
|
|
2614
2635
|
e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
|
|
2615
2636
|
}
|
|
2616
|
-
function
|
|
2637
|
+
function d() {
|
|
2617
2638
|
return F() && e.previewState || n;
|
|
2618
2639
|
}
|
|
2619
2640
|
function f(g) {
|
|
@@ -2711,9 +2732,9 @@ function fn(e) {
|
|
|
2711
2732
|
);
|
|
2712
2733
|
}
|
|
2713
2734
|
}
|
|
2714
|
-
return /* @__PURE__ */
|
|
2735
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
2715
2736
|
" ",
|
|
2716
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ V(
|
|
2717
2738
|
"form",
|
|
2718
2739
|
{
|
|
2719
2740
|
validate: e.validate,
|
|
@@ -2724,7 +2745,7 @@ function fn(e) {
|
|
|
2724
2745
|
onSubmit: (g) => f(g),
|
|
2725
2746
|
...e.attributes,
|
|
2726
2747
|
children: [
|
|
2727
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (
|
|
2748
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
|
|
2728
2749
|
_,
|
|
2729
2750
|
{
|
|
2730
2751
|
block: g,
|
|
@@ -2734,7 +2755,7 @@ function fn(e) {
|
|
|
2734
2755
|
},
|
|
2735
2756
|
`form-block-${y}`
|
|
2736
2757
|
)) }) : null,
|
|
2737
|
-
|
|
2758
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
2738
2759
|
D,
|
|
2739
2760
|
{
|
|
2740
2761
|
path: "errorMessage",
|
|
@@ -2742,7 +2763,7 @@ function fn(e) {
|
|
|
2742
2763
|
context: e.builderContext
|
|
2743
2764
|
}
|
|
2744
2765
|
) : null,
|
|
2745
|
-
|
|
2766
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
2746
2767
|
D,
|
|
2747
2768
|
{
|
|
2748
2769
|
path: "sendingMessage",
|
|
@@ -2750,8 +2771,8 @@ function fn(e) {
|
|
|
2750
2771
|
context: e.builderContext
|
|
2751
2772
|
}
|
|
2752
2773
|
) : null,
|
|
2753
|
-
|
|
2754
|
-
|
|
2774
|
+
d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2775
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
2755
2776
|
D,
|
|
2756
2777
|
{
|
|
2757
2778
|
path: "successMessage",
|
|
@@ -3087,7 +3108,7 @@ const Tn = {
|
|
|
3087
3108
|
}
|
|
3088
3109
|
};
|
|
3089
3110
|
function In(e) {
|
|
3090
|
-
var i, o, r, a, l, c,
|
|
3111
|
+
var i, o, r, a, l, c, d;
|
|
3091
3112
|
function t() {
|
|
3092
3113
|
return {
|
|
3093
3114
|
...e.autoPlay === !0 ? {
|
|
@@ -3112,7 +3133,7 @@ function In(e) {
|
|
|
3112
3133
|
...t()
|
|
3113
3134
|
};
|
|
3114
3135
|
}
|
|
3115
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ V(
|
|
3116
3137
|
"div",
|
|
3117
3138
|
{
|
|
3118
3139
|
style: {
|
|
@@ -3166,7 +3187,7 @@ function In(e) {
|
|
|
3166
3187
|
children: e.children
|
|
3167
3188
|
}
|
|
3168
3189
|
) : null,
|
|
3169
|
-
(
|
|
3190
|
+
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3170
3191
|
"div",
|
|
3171
3192
|
{
|
|
3172
3193
|
style: {
|
|
@@ -3420,11 +3441,11 @@ font-weight: 400;
|
|
|
3420
3441
|
for (const l in e.files) {
|
|
3421
3442
|
if (!(String(Number(l)) === l))
|
|
3422
3443
|
continue;
|
|
3423
|
-
const
|
|
3424
|
-
|
|
3444
|
+
const d = e.files[l];
|
|
3445
|
+
d && d !== i && (o += `
|
|
3425
3446
|
@font-face {
|
|
3426
3447
|
font-family: "${t}";
|
|
3427
|
-
src: url('${
|
|
3448
|
+
src: url('${d}') format('woff2');
|
|
3428
3449
|
font-display: fallback;
|
|
3429
3450
|
font-weight: ${l};
|
|
3430
3451
|
}
|
|
@@ -3526,7 +3547,7 @@ function Hn(e) {
|
|
|
3526
3547
|
function c() {
|
|
3527
3548
|
var v, S;
|
|
3528
3549
|
const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
|
|
3529
|
-
h &&
|
|
3550
|
+
h && H({
|
|
3530
3551
|
code: h,
|
|
3531
3552
|
context: e.context || {},
|
|
3532
3553
|
localState: void 0,
|
|
@@ -3538,7 +3559,7 @@ function Hn(e) {
|
|
|
3538
3559
|
enableCache: !1
|
|
3539
3560
|
});
|
|
3540
3561
|
}
|
|
3541
|
-
const [
|
|
3562
|
+
const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
|
|
3542
3563
|
function C(h) {
|
|
3543
3564
|
var v, S;
|
|
3544
3565
|
if (e.builderContextSignal.content) {
|
|
@@ -3559,13 +3580,13 @@ function Hn(e) {
|
|
|
3559
3580
|
var v, S, k;
|
|
3560
3581
|
const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3561
3582
|
Object.entries(h).forEach(([I, W]) => {
|
|
3562
|
-
if (!W ||
|
|
3583
|
+
if (!W || u[I] || d[I] && !F())
|
|
3563
3584
|
return;
|
|
3564
|
-
|
|
3585
|
+
u[I] = !0;
|
|
3565
3586
|
const j = W.replace(
|
|
3566
3587
|
/{{([^}]+)}}/g,
|
|
3567
3588
|
($, He) => String(
|
|
3568
|
-
|
|
3589
|
+
H({
|
|
3569
3590
|
code: He,
|
|
3570
3591
|
context: e.context || {},
|
|
3571
3592
|
localState: void 0,
|
|
@@ -3578,11 +3599,11 @@ function Hn(e) {
|
|
|
3578
3599
|
Xe(j).then(($) => $.json()).then(($) => {
|
|
3579
3600
|
n({
|
|
3580
3601
|
[I]: $
|
|
3581
|
-
}),
|
|
3602
|
+
}), d[I] = !0;
|
|
3582
3603
|
}).catch(($) => {
|
|
3583
3604
|
console.error("error fetching dynamic data", W, $);
|
|
3584
3605
|
}).finally(() => {
|
|
3585
|
-
|
|
3606
|
+
u[I] = !1;
|
|
3586
3607
|
});
|
|
3587
3608
|
});
|
|
3588
3609
|
}
|
|
@@ -3601,7 +3622,7 @@ function Hn(e) {
|
|
|
3601
3622
|
)
|
|
3602
3623
|
);
|
|
3603
3624
|
}
|
|
3604
|
-
return
|
|
3625
|
+
return P(() => {
|
|
3605
3626
|
var h, v;
|
|
3606
3627
|
if (M()) {
|
|
3607
3628
|
if (F() && (window.addEventListener("message", l), _e(), Je({
|
|
@@ -3646,25 +3667,25 @@ function Hn(e) {
|
|
|
3646
3667
|
});
|
|
3647
3668
|
}
|
|
3648
3669
|
}
|
|
3649
|
-
}, []),
|
|
3670
|
+
}, []), P(() => {
|
|
3650
3671
|
e.apiKey || Z.error(
|
|
3651
3672
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3652
3673
|
), c(), p(), B();
|
|
3653
|
-
}, []),
|
|
3674
|
+
}, []), P(() => {
|
|
3654
3675
|
e.content && i(e.content);
|
|
3655
|
-
}, [e.content]),
|
|
3676
|
+
}, [e.content]), P(() => {
|
|
3656
3677
|
c();
|
|
3657
|
-
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]),
|
|
3678
|
+
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3658
3679
|
p();
|
|
3659
|
-
}, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]),
|
|
3680
|
+
}, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
|
|
3660
3681
|
B();
|
|
3661
|
-
}, [e.builderContextSignal.rootState]),
|
|
3682
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3662
3683
|
e.data && n(e.data);
|
|
3663
|
-
}, [e.data]),
|
|
3684
|
+
}, [e.data]), P(() => {
|
|
3664
3685
|
e.locale && n({
|
|
3665
3686
|
locale: e.locale
|
|
3666
3687
|
});
|
|
3667
|
-
}, [e.locale]),
|
|
3688
|
+
}, [e.locale]), P(() => () => {
|
|
3668
3689
|
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3669
3690
|
"builder:component:stateChangeListenerActivated",
|
|
3670
3691
|
B
|
|
@@ -3736,7 +3757,7 @@ const Kn = ({
|
|
|
3736
3757
|
meta: e == null ? void 0 : e.meta
|
|
3737
3758
|
} : void 0;
|
|
3738
3759
|
function Ie(e) {
|
|
3739
|
-
var c,
|
|
3760
|
+
var c, d, f, u, m, g, y;
|
|
3740
3761
|
const [t, n] = T(
|
|
3741
3762
|
() => {
|
|
3742
3763
|
var C, p;
|
|
@@ -3811,7 +3832,7 @@ function Ie(e) {
|
|
|
3811
3832
|
value: {
|
|
3812
3833
|
registeredComponents: o
|
|
3813
3834
|
},
|
|
3814
|
-
children: /* @__PURE__ */
|
|
3835
|
+
children: /* @__PURE__ */ V(
|
|
3815
3836
|
Hn,
|
|
3816
3837
|
{
|
|
3817
3838
|
nonce: e.nonce,
|
|
@@ -3844,8 +3865,8 @@ function Ie(e) {
|
|
|
3844
3865
|
nonce: e.nonce || "",
|
|
3845
3866
|
isNestedRender: e.isNestedRender,
|
|
3846
3867
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3847
|
-
cssCode: (f = (
|
|
3848
|
-
customFonts: (m = (
|
|
3868
|
+
cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
|
|
3869
|
+
customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
|
|
3849
3870
|
}
|
|
3850
3871
|
),
|
|
3851
3872
|
/* @__PURE__ */ s(
|
|
@@ -3894,8 +3915,8 @@ function _n(e) {
|
|
|
3894
3915
|
canTrack: Q(e.canTrack)
|
|
3895
3916
|
});
|
|
3896
3917
|
}
|
|
3897
|
-
return
|
|
3898
|
-
}, []), /* @__PURE__ */
|
|
3918
|
+
return P(() => {
|
|
3919
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
3899
3920
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
|
|
3900
3921
|
ce,
|
|
3901
3922
|
{
|
|
@@ -3904,7 +3925,7 @@ function _n(e) {
|
|
|
3904
3925
|
nonce: e.nonce || ""
|
|
3905
3926
|
}
|
|
3906
3927
|
) : null,
|
|
3907
|
-
t ? /* @__PURE__ */
|
|
3928
|
+
t ? /* @__PURE__ */ V(R, { children: [
|
|
3908
3929
|
/* @__PURE__ */ s(
|
|
3909
3930
|
ne,
|
|
3910
3931
|
{
|
|
@@ -3995,7 +4016,7 @@ const Jn = async ({
|
|
|
3995
4016
|
});
|
|
3996
4017
|
};
|
|
3997
4018
|
function Yn(e) {
|
|
3998
|
-
var l, c,
|
|
4019
|
+
var l, c, d, f;
|
|
3999
4020
|
function t() {
|
|
4000
4021
|
return "div";
|
|
4001
4022
|
}
|
|
@@ -4003,28 +4024,28 @@ function Yn(e) {
|
|
|
4003
4024
|
return "div";
|
|
4004
4025
|
}
|
|
4005
4026
|
function i() {
|
|
4006
|
-
var
|
|
4027
|
+
var u, m;
|
|
4007
4028
|
return [
|
|
4008
|
-
e.attributes[
|
|
4029
|
+
e.attributes[K()],
|
|
4009
4030
|
"builder-symbol",
|
|
4010
|
-
(
|
|
4031
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4011
4032
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4012
4033
|
].filter(Boolean).join(" ");
|
|
4013
4034
|
}
|
|
4014
4035
|
const [o, r] = T(() => {
|
|
4015
|
-
var
|
|
4016
|
-
return (
|
|
4036
|
+
var u;
|
|
4037
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4017
4038
|
});
|
|
4018
4039
|
function a() {
|
|
4019
4040
|
o || Jn({
|
|
4020
4041
|
symbol: e.symbol,
|
|
4021
4042
|
builderContextValue: e.builderContext
|
|
4022
|
-
}).then((
|
|
4023
|
-
|
|
4043
|
+
}).then((u) => {
|
|
4044
|
+
u && r(u);
|
|
4024
4045
|
});
|
|
4025
4046
|
}
|
|
4026
|
-
return
|
|
4027
|
-
}, []),
|
|
4047
|
+
return P(() => {
|
|
4048
|
+
}, []), P(() => {
|
|
4028
4049
|
a();
|
|
4029
4050
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4030
4051
|
_n,
|
|
@@ -4041,7 +4062,7 @@ function Yn(e) {
|
|
|
4041
4062
|
data: {
|
|
4042
4063
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
4043
4064
|
...e.builderContext.localState,
|
|
4044
|
-
...(
|
|
4065
|
+
...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
|
|
4045
4066
|
},
|
|
4046
4067
|
canTrack: e.builderContext.canTrack,
|
|
4047
4068
|
model: (f = e.symbol) == null ? void 0 : f.model,
|