@builder.io/sdk-react 4.0.2 → 4.0.3
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 +30 -27
- package/lib/browser/blocks-exports.mjs +468 -457
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-9e5daeda.cjs → server-entry-c40e781d.cjs} +1 -1
- package/lib/browser/{server-entry-25e49efc.js → server-entry-e6ae7704.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-f5e5687b.cjs → accordion-8934ef4b.cjs} +1 -1
- package/lib/edge/{accordion-5063d748.js → accordion-e657c96d.js} +1 -1
- package/lib/edge/{blocks-f3b2fbd5.js → blocks-513223a7.js} +2 -2
- package/lib/edge/{blocks-d690074d.cjs → blocks-a6ffbf92.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-0d0430e9.js → button-3522aac2.js} +2 -2
- package/lib/edge/{button-7cac2c65.cjs → button-49563e3b.cjs} +1 -1
- package/lib/edge/{columns-87b82f2f.cjs → columns-092b6fac.cjs} +1 -1
- package/lib/edge/{columns-19b22772.js → columns-ea0b3b30.js} +3 -3
- package/lib/edge/{content-variants-0f0a71cb.js → content-variants-6c1e3b13.js} +95 -92
- package/lib/edge/{content-variants-80fc28d8.cjs → content-variants-75ff40ca.cjs} +16 -13
- package/lib/edge/custom-code-1a43bbd7.js +52 -0
- package/lib/edge/custom-code-ae3262be.cjs +1 -0
- package/lib/edge/embed-106f0066.js +38 -0
- package/lib/edge/embed-8d302933.cjs +1 -0
- package/lib/edge/{form-b8f74b68.js → form-0c0d5bf5.js} +3 -3
- package/lib/edge/{form-0b5bd2e3.cjs → form-46e4d997.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6ef08339.cjs → get-class-prop-name-dad1ee7e.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-f3ce6ca4.js → get-class-prop-name-e44df0c8.js} +1 -1
- package/lib/edge/{img-4becc0d4.js → img-8bdeb666.js} +1 -1
- package/lib/edge/{img-20126279.cjs → img-e49acb58.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-6884ec2d.cjs → input-92aaa4f2.cjs} +1 -1
- package/lib/edge/{input-768a5984.js → input-d6338de6.js} +1 -1
- package/lib/edge/{personalization-container-b581d0f6.js → personalization-container-1307218b.js} +4 -4
- package/lib/edge/{personalization-container-8b32ce9d.cjs → personalization-container-965bec51.cjs} +1 -1
- package/lib/edge/{select-e54dc6bc.js → select-1538b41a.js} +1 -1
- package/lib/edge/{select-ac5b39d8.cjs → select-5ce728b4.cjs} +1 -1
- package/lib/edge/{server-entry-818ae9c6.js → server-entry-2e94ad2c.js} +1 -1
- package/lib/edge/{server-entry-a60fb569.cjs → server-entry-46e686b9.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-5dba6213.cjs → slot-3b6aa7ec.cjs} +1 -1
- package/lib/edge/{slot-05218273.js → slot-516f176d.js} +3 -3
- package/lib/edge/{symbol-9f247918.js → symbol-3b2e7ebf.js} +2 -2
- package/lib/edge/{symbol-f4b09828.cjs → symbol-cd10b6f0.cjs} +1 -1
- package/lib/edge/{tabs-02960a8c.cjs → tabs-cec51291.cjs} +1 -1
- package/lib/edge/{tabs-a0b38dde.js → tabs-f0945019.js} +3 -3
- package/lib/node/blocks-exports.cjs +30 -27
- package/lib/node/blocks-exports.mjs +477 -466
- 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-2a2cad4a.cjs → server-entry-6b05381c.cjs} +1 -1
- package/lib/node/{server-entry-702b1a29.js → server-entry-c1000f54.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-0a6b0788.js → setIvm-011d6eb2.js} +1 -1
- package/lib/node/{setIvm-9cddfc1a.cjs → setIvm-4ae0308c.cjs} +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-d6c9e985.cjs → should-force-browser-runtime-in-node-5d513614.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-dfff7f8f.js → should-force-browser-runtime-in-node-abf8d0a7.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/custom-code-7786788e.js +0 -43
- package/lib/edge/custom-code-8119ea3f.cjs +0 -1
- package/lib/edge/embed-32bdd007.cjs +0 -1
- package/lib/edge/embed-5c1bbe12.js +0 -37
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isBrowser as U, logger as
|
|
3
|
-
import { setClientUserAttributes as
|
|
2
|
+
import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-c1000f54.js";
|
|
3
|
+
import { setClientUserAttributes as Ri } from "./server-entry-c1000f54.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
5
|
import * as tt from "react";
|
|
6
6
|
import { createContext as Be, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ae } from "react";
|
|
7
|
-
import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-
|
|
7
|
+
import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-011d6eb2.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-abf8d0a7.js";
|
|
9
9
|
const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && st.has(e.toLowerCase());
|
|
10
10
|
function de(e) {
|
|
11
11
|
return /* @__PURE__ */ s(R, { children: ct(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 }) }) });
|
|
@@ -63,7 +63,7 @@ const me = Be({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}), We = Be({ registeredComponents: {} }),
|
|
66
|
+
}), We = Be({ registeredComponents: {} }), De = (e, t, n) => {
|
|
67
67
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
69
|
}, dt = ({
|
|
@@ -105,7 +105,7 @@ function _({
|
|
|
105
105
|
return;
|
|
106
106
|
const l = gt(e.trim());
|
|
107
107
|
if (l)
|
|
108
|
-
return
|
|
108
|
+
return De({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
@@ -122,8 +122,8 @@ function _({
|
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
124
|
return mt(d);
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
125
|
+
} catch (u) {
|
|
126
|
+
z.error("Failed code evaluation: " + u.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
@@ -157,7 +157,7 @@ function yt(e, ...t) {
|
|
|
157
157
|
delete n[i];
|
|
158
158
|
return n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
162
|
t(e, (r) => {
|
|
163
163
|
n !== null && i !== null && (n[i] = r);
|
|
@@ -167,47 +167,47 @@ function G(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
167
167
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
168
|
t(r, (d) => {
|
|
169
169
|
e[o] = d;
|
|
170
|
-
}),
|
|
170
|
+
}), Q(r, t, e, o, a);
|
|
171
171
|
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
172
|
t(o, (d) => {
|
|
173
173
|
e[r] = d;
|
|
174
|
-
}),
|
|
174
|
+
}), Q(o, t, e, r, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function $e(e) {
|
|
178
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
179
179
|
}
|
|
180
180
|
function vt(e) {
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
|
-
return
|
|
185
|
-
if (
|
|
184
|
+
return Q(e, (n) => {
|
|
185
|
+
if ($e(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
191
|
function xt(e, t) {
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
|
|
193
193
|
var a;
|
|
194
|
-
|
|
194
|
+
$e(n) && i((a = n[t]) != null ? a : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
197
|
function St(e, t) {
|
|
198
198
|
var n, i;
|
|
199
199
|
return (n = e.component) != null && n.options && vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = xt(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ce(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => ce(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
213
|
const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) => {
|
|
@@ -223,7 +223,7 @@ const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = ce(yt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -274,17 +274,17 @@ function wt({
|
|
|
274
274
|
context: t
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
278
|
function It(e, t, n = {}) {
|
|
279
279
|
let i, a, r, o = null, l = 0;
|
|
280
280
|
const d = function() {
|
|
281
281
|
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
|
-
const
|
|
285
|
-
!l && n.leading === !1 && (l =
|
|
286
|
-
const h = t - (
|
|
287
|
-
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l =
|
|
284
|
+
const u = Date.now();
|
|
285
|
+
!l && n.leading === !1 && (l = u);
|
|
286
|
+
const h = t - (u - l);
|
|
287
|
+
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = u, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function H(e, ...t) {
|
|
@@ -332,7 +332,7 @@ function Oe(e) {
|
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
334
|
Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
@@ -358,15 +358,15 @@ function Vt(e) {
|
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(h) {
|
|
361
|
-
const
|
|
362
|
-
return
|
|
361
|
+
const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
362
|
+
return g.bottom > f && g.top < c - f;
|
|
363
363
|
}
|
|
364
364
|
const d = e.steps[0].styles;
|
|
365
|
-
function
|
|
365
|
+
function u() {
|
|
366
366
|
H(n.style, d);
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
n.style.transition = `all ${e.duration}s ${
|
|
368
|
+
u(), setTimeout(() => {
|
|
369
|
+
n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
370
|
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
@@ -375,8 +375,8 @@ function Vt(e) {
|
|
|
375
375
|
}
|
|
376
376
|
const Ue = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
|
-
return `${
|
|
379
|
-
}).filter(
|
|
378
|
+
return `${Z(n)}: ${i};`;
|
|
379
|
+
}).filter(se), Pt = (e) => Ue(e).join(`
|
|
380
380
|
`), q = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
@@ -453,25 +453,25 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
453
453
|
if (!Array.isArray(a))
|
|
454
454
|
return;
|
|
455
455
|
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
456
|
-
return a.map((d,
|
|
456
|
+
return a.map((d, u) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
|
-
$index:
|
|
461
|
+
$index: u,
|
|
462
462
|
$item: d,
|
|
463
463
|
[o]: d,
|
|
464
|
-
[`$${o}Index`]:
|
|
464
|
+
[`$${o}Index`]: u
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
468
468
|
}));
|
|
469
|
-
},
|
|
469
|
+
}, Dt = (e, t) => {
|
|
470
470
|
var n;
|
|
471
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
472
472
|
builderLinkComponent: t
|
|
473
473
|
} : {};
|
|
474
|
-
},
|
|
474
|
+
}, $t = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
477
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !qe(o, n)))
|
|
@@ -507,7 +507,7 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
507
507
|
default: 991,
|
|
508
508
|
max: 1200
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, ne = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
|
|
511
511
|
const t = ue(He);
|
|
512
512
|
if (!e)
|
|
513
513
|
return t;
|
|
@@ -546,7 +546,7 @@ const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
546
546
|
default: l + 1
|
|
547
547
|
}, t;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function K(e) {
|
|
550
550
|
return /* @__PURE__ */ s(
|
|
551
551
|
"style",
|
|
552
552
|
{
|
|
@@ -559,64 +559,64 @@ function z(e) {
|
|
|
559
559
|
function Ot(e) {
|
|
560
560
|
function t() {
|
|
561
561
|
const i = e.block;
|
|
562
|
-
return
|
|
562
|
+
return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
565
|
var C, V, w, x, m;
|
|
566
566
|
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Me(
|
|
567
567
|
((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
|
|
568
|
-
), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large,
|
|
569
|
-
if (!
|
|
568
|
+
), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
|
|
569
|
+
if (!c)
|
|
570
570
|
return "";
|
|
571
571
|
const v = d ? q({
|
|
572
|
-
className:
|
|
572
|
+
className: c,
|
|
573
573
|
styles: d
|
|
574
|
-
}) : "", f =
|
|
575
|
-
className:
|
|
576
|
-
styles:
|
|
577
|
-
mediaQuery:
|
|
574
|
+
}) : "", f = u ? q({
|
|
575
|
+
className: c,
|
|
576
|
+
styles: u,
|
|
577
|
+
mediaQuery: ne(
|
|
578
578
|
"medium",
|
|
579
579
|
o
|
|
580
580
|
)
|
|
581
|
-
}) : "",
|
|
582
|
-
className:
|
|
581
|
+
}) : "", b = h ? q({
|
|
582
|
+
className: c,
|
|
583
583
|
styles: h,
|
|
584
|
-
mediaQuery:
|
|
584
|
+
mediaQuery: ne(
|
|
585
585
|
"small",
|
|
586
586
|
o
|
|
587
587
|
)
|
|
588
|
-
}) : "", S =
|
|
589
|
-
className:
|
|
590
|
-
styles:
|
|
591
|
-
mediaQuery:
|
|
588
|
+
}) : "", S = g && l ? q({
|
|
589
|
+
className: c,
|
|
590
|
+
styles: g,
|
|
591
|
+
mediaQuery: ne(
|
|
592
592
|
"xsmall",
|
|
593
593
|
o
|
|
594
594
|
)
|
|
595
|
-
}) : "",
|
|
595
|
+
}) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
596
596
|
let k = "";
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
597
|
+
if (p) {
|
|
598
|
+
const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
599
599
|
k = q({
|
|
600
|
-
className: `${
|
|
600
|
+
className: `${c}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${
|
|
604
|
-
|
|
602
|
+
...y,
|
|
603
|
+
transition: `all ${p.duration}s ${Z(
|
|
604
|
+
p.easing
|
|
605
605
|
)}`,
|
|
606
|
-
transitionDelay:
|
|
606
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
607
607
|
}
|
|
608
608
|
}) || "";
|
|
609
609
|
}
|
|
610
610
|
return [
|
|
611
611
|
v,
|
|
612
612
|
f,
|
|
613
|
-
|
|
613
|
+
b,
|
|
614
614
|
S,
|
|
615
615
|
k
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
618
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
619
|
-
|
|
619
|
+
K,
|
|
620
620
|
{
|
|
621
621
|
id: "builderio-block",
|
|
622
622
|
styles: n(),
|
|
@@ -787,7 +787,7 @@ function xe(e) {
|
|
|
787
787
|
contextValue: e.context
|
|
788
788
|
}),
|
|
789
789
|
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
790
|
-
|
|
790
|
+
ee,
|
|
791
791
|
{
|
|
792
792
|
block: a,
|
|
793
793
|
context: e.context,
|
|
@@ -802,7 +802,7 @@ function xe(e) {
|
|
|
802
802
|
function Se(e) {
|
|
803
803
|
const [t, n] = I(() => e.repeatContext);
|
|
804
804
|
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
805
|
-
|
|
805
|
+
ee,
|
|
806
806
|
{
|
|
807
807
|
block: e.block,
|
|
808
808
|
context: t,
|
|
@@ -811,8 +811,8 @@ function Se(e) {
|
|
|
811
811
|
}
|
|
812
812
|
) });
|
|
813
813
|
}
|
|
814
|
-
function
|
|
815
|
-
var h,
|
|
814
|
+
function ee(e) {
|
|
815
|
+
var h, g, c, v;
|
|
816
816
|
function t() {
|
|
817
817
|
return Wt({
|
|
818
818
|
block: e.block,
|
|
@@ -824,10 +824,10 @@ function Z(e) {
|
|
|
824
824
|
update: !1
|
|
825
825
|
}));
|
|
826
826
|
function a() {
|
|
827
|
-
var
|
|
828
|
-
if (n.value && !n.update && !
|
|
827
|
+
var b;
|
|
828
|
+
if (n.value && !n.update && !X())
|
|
829
829
|
return n.value;
|
|
830
|
-
const f = (
|
|
830
|
+
const f = (b = e.block.repeat) != null && b.collection ? e.block : wt({
|
|
831
831
|
block: e.block,
|
|
832
832
|
localState: e.context.localState,
|
|
833
833
|
rootState: e.context.rootState,
|
|
@@ -844,31 +844,31 @@ function Z(e) {
|
|
|
844
844
|
});
|
|
845
845
|
}
|
|
846
846
|
function o() {
|
|
847
|
-
var
|
|
848
|
-
return e.block.tagName === "a" || ((
|
|
847
|
+
var b;
|
|
848
|
+
return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
849
849
|
}
|
|
850
850
|
function l() {
|
|
851
|
-
var S,
|
|
851
|
+
var S, p;
|
|
852
852
|
if ((S = e.block.repeat) != null && S.collection)
|
|
853
|
-
return !!((
|
|
853
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
854
854
|
const f = "hide" in a() ? a().hide : !1;
|
|
855
855
|
return ("show" in a() ? a().show : !0) && !f;
|
|
856
856
|
}
|
|
857
857
|
function d() {
|
|
858
|
-
var
|
|
859
|
-
return !((
|
|
858
|
+
var b, S;
|
|
859
|
+
return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
860
860
|
}
|
|
861
|
-
function
|
|
862
|
-
var f,
|
|
861
|
+
function u() {
|
|
862
|
+
var f, b, S, p;
|
|
863
863
|
return {
|
|
864
864
|
blockChildren: (f = a().children) != null ? f : [],
|
|
865
|
-
componentRef: (
|
|
865
|
+
componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
|
|
866
866
|
componentOptions: {
|
|
867
867
|
...bt(a(), e.context),
|
|
868
868
|
...Ft(r(), a()),
|
|
869
869
|
...Lt(r(), e.context),
|
|
870
|
-
|
|
871
|
-
|
|
870
|
+
...Dt(r(), e.linkComponent),
|
|
871
|
+
...$t(
|
|
872
872
|
r(),
|
|
873
873
|
e.registeredComponents,
|
|
874
874
|
e.context.model
|
|
@@ -879,13 +879,13 @@ function Z(e) {
|
|
|
879
879
|
registeredComponents: e.registeredComponents,
|
|
880
880
|
builderBlock: a(),
|
|
881
881
|
includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
|
|
882
|
-
isInteractive: !((
|
|
882
|
+
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && O === "rsc")
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
885
|
return P(() => {
|
|
886
|
-
const f = a().id,
|
|
887
|
-
|
|
888
|
-
|
|
886
|
+
const f = a().id, b = a().animations;
|
|
887
|
+
b && f && Et(
|
|
888
|
+
b.map((S) => ({
|
|
889
889
|
...S,
|
|
890
890
|
elementId: f
|
|
891
891
|
}))
|
|
@@ -894,7 +894,7 @@ function Z(e) {
|
|
|
894
894
|
n.update = !0;
|
|
895
895
|
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
896
896
|
/* @__PURE__ */ s(Ot, { block: a(), context: e.context }),
|
|
897
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f,
|
|
897
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
|
|
898
898
|
Se,
|
|
899
899
|
{
|
|
900
900
|
repeatContext: f.context,
|
|
@@ -902,21 +902,21 @@ function Z(e) {
|
|
|
902
902
|
registeredComponents: e.registeredComponents,
|
|
903
903
|
linkComponent: e.linkComponent
|
|
904
904
|
},
|
|
905
|
-
|
|
905
|
+
b
|
|
906
906
|
)) }) : /* @__PURE__ */ s(
|
|
907
907
|
xe,
|
|
908
908
|
{
|
|
909
|
-
componentRef:
|
|
910
|
-
componentOptions:
|
|
911
|
-
blockChildren:
|
|
912
|
-
context:
|
|
913
|
-
registeredComponents:
|
|
914
|
-
linkComponent:
|
|
915
|
-
builderBlock:
|
|
916
|
-
includeBlockProps:
|
|
917
|
-
isInteractive:
|
|
909
|
+
componentRef: u().componentRef,
|
|
910
|
+
componentOptions: u().componentOptions,
|
|
911
|
+
blockChildren: u().blockChildren,
|
|
912
|
+
context: u().context,
|
|
913
|
+
registeredComponents: u().registeredComponents,
|
|
914
|
+
linkComponent: u().linkComponent,
|
|
915
|
+
builderBlock: u().builderBlock,
|
|
916
|
+
includeBlockProps: u().includeBlockProps,
|
|
917
|
+
isInteractive: u().isInteractive
|
|
918
918
|
}
|
|
919
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
919
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
|
|
920
920
|
Se,
|
|
921
921
|
{
|
|
922
922
|
repeatContext: f.context,
|
|
@@ -924,7 +924,7 @@ function Z(e) {
|
|
|
924
924
|
registeredComponents: e.registeredComponents,
|
|
925
925
|
linkComponent: e.linkComponent
|
|
926
926
|
},
|
|
927
|
-
|
|
927
|
+
b
|
|
928
928
|
)) }) : /* @__PURE__ */ B(
|
|
929
929
|
jt,
|
|
930
930
|
{
|
|
@@ -935,19 +935,19 @@ function Z(e) {
|
|
|
935
935
|
/* @__PURE__ */ s(
|
|
936
936
|
xe,
|
|
937
937
|
{
|
|
938
|
-
componentRef:
|
|
939
|
-
componentOptions:
|
|
940
|
-
blockChildren:
|
|
941
|
-
context:
|
|
942
|
-
registeredComponents:
|
|
943
|
-
linkComponent:
|
|
944
|
-
builderBlock:
|
|
945
|
-
includeBlockProps:
|
|
946
|
-
isInteractive:
|
|
938
|
+
componentRef: u().componentRef,
|
|
939
|
+
componentOptions: u().componentOptions,
|
|
940
|
+
blockChildren: u().blockChildren,
|
|
941
|
+
context: u().context,
|
|
942
|
+
registeredComponents: u().registeredComponents,
|
|
943
|
+
linkComponent: u().linkComponent,
|
|
944
|
+
builderBlock: u().builderBlock,
|
|
945
|
+
includeBlockProps: u().includeBlockProps,
|
|
946
|
+
isInteractive: u().isInteractive
|
|
947
947
|
}
|
|
948
948
|
),
|
|
949
|
-
(
|
|
950
|
-
|
|
949
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
950
|
+
ee,
|
|
951
951
|
{
|
|
952
952
|
block: f,
|
|
953
953
|
registeredComponents: e.registeredComponents,
|
|
@@ -979,7 +979,7 @@ function Gt(e) {
|
|
|
979
979
|
}
|
|
980
980
|
function a() {
|
|
981
981
|
var o, l;
|
|
982
|
-
|
|
982
|
+
N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
983
983
|
{
|
|
984
984
|
type: "builder.clickEmptyBlocks",
|
|
985
985
|
data: {
|
|
@@ -992,7 +992,7 @@ function Gt(e) {
|
|
|
992
992
|
}
|
|
993
993
|
function r() {
|
|
994
994
|
var o, l;
|
|
995
|
-
|
|
995
|
+
N() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
996
996
|
{
|
|
997
997
|
type: "builder.hoverEmptyBlocks",
|
|
998
998
|
data: {
|
|
@@ -1027,7 +1027,7 @@ function Gt(e) {
|
|
|
1027
1027
|
}` })
|
|
1028
1028
|
] });
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function $(e) {
|
|
1031
1031
|
var i, a, r;
|
|
1032
1032
|
const t = ve(me), n = ve(We);
|
|
1033
1033
|
return /* @__PURE__ */ s(
|
|
@@ -1041,7 +1041,7 @@ function D(e) {
|
|
|
1041
1041
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1042
1042
|
BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1043
1043
|
children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
|
|
1044
|
-
|
|
1044
|
+
ee,
|
|
1045
1045
|
{
|
|
1046
1046
|
block: o,
|
|
1047
1047
|
linkComponent: e.linkComponent,
|
|
@@ -1055,7 +1055,7 @@ function D(e) {
|
|
|
1055
1055
|
}
|
|
1056
1056
|
const Qt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1057
1057
|
function Yt(e) {
|
|
1058
|
-
var
|
|
1058
|
+
var b, S;
|
|
1059
1059
|
function t() {
|
|
1060
1060
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1061
1061
|
}
|
|
@@ -1065,43 +1065,43 @@ function Yt(e) {
|
|
|
1065
1065
|
function i() {
|
|
1066
1066
|
return e.stackColumnsAt || "tablet";
|
|
1067
1067
|
}
|
|
1068
|
-
function a(
|
|
1069
|
-
return
|
|
1068
|
+
function a(p) {
|
|
1069
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
1070
1070
|
}
|
|
1071
|
-
function r(
|
|
1071
|
+
function r(p) {
|
|
1072
1072
|
var k;
|
|
1073
|
-
return ((k = n()[
|
|
1073
|
+
return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1074
1074
|
}
|
|
1075
|
-
function o(
|
|
1076
|
-
const k = r(
|
|
1075
|
+
function o(p) {
|
|
1076
|
+
const k = r(p), C = t() * (n().length - 1) * (k / 100);
|
|
1077
1077
|
return `calc(${k}% - ${C}px)`;
|
|
1078
1078
|
}
|
|
1079
1079
|
function l({
|
|
1080
|
-
stackedStyle:
|
|
1080
|
+
stackedStyle: p,
|
|
1081
1081
|
desktopStyle: k
|
|
1082
1082
|
}) {
|
|
1083
|
-
return i() === "tablet" ?
|
|
1083
|
+
return i() === "tablet" ? p : k;
|
|
1084
1084
|
}
|
|
1085
1085
|
function d({
|
|
1086
|
-
stackedStyle:
|
|
1086
|
+
stackedStyle: p,
|
|
1087
1087
|
desktopStyle: k
|
|
1088
1088
|
}) {
|
|
1089
|
-
return i() === "never" ? k :
|
|
1089
|
+
return i() === "never" ? k : p;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function u() {
|
|
1092
1092
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1093
1093
|
}
|
|
1094
1094
|
function h() {
|
|
1095
1095
|
return {
|
|
1096
|
-
"--flex-dir":
|
|
1096
|
+
"--flex-dir": u(),
|
|
1097
1097
|
"--flex-dir-tablet": l({
|
|
1098
|
-
stackedStyle:
|
|
1098
|
+
stackedStyle: u(),
|
|
1099
1099
|
desktopStyle: "row"
|
|
1100
1100
|
})
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const k =
|
|
1103
|
+
function g(p) {
|
|
1104
|
+
const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", x = 0;
|
|
1105
1105
|
return {
|
|
1106
1106
|
...{
|
|
1107
1107
|
display: "flex",
|
|
@@ -1128,79 +1128,79 @@ function Yt(e) {
|
|
|
1128
1128
|
})
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function c(p) {
|
|
1132
1132
|
var C, V;
|
|
1133
1133
|
return Me(
|
|
1134
1134
|
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1135
|
-
)[
|
|
1135
|
+
)[p].max;
|
|
1136
1136
|
}
|
|
1137
1137
|
function v() {
|
|
1138
|
-
const
|
|
1138
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1139
1139
|
return `
|
|
1140
|
-
@media (max-width: ${
|
|
1140
|
+
@media (max-width: ${c("medium")}px) {
|
|
1141
1141
|
.${e.builderBlock.id}-breakpoints {
|
|
1142
1142
|
flex-direction: var(--flex-dir-tablet);
|
|
1143
1143
|
align-items: stretch;
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
-
${
|
|
1146
|
+
${p} {
|
|
1147
1147
|
width: var(--column-width-tablet) !important;
|
|
1148
1148
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1149
1149
|
}
|
|
1150
1150
|
}
|
|
1151
1151
|
|
|
1152
|
-
@media (max-width: ${
|
|
1152
|
+
@media (max-width: ${c("small")}px) {
|
|
1153
1153
|
.${e.builderBlock.id}-breakpoints {
|
|
1154
1154
|
flex-direction: var(--flex-dir);
|
|
1155
1155
|
align-items: stretch;
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
-
${
|
|
1158
|
+
${p} {
|
|
1159
1159
|
width: var(--column-width-mobile) !important;
|
|
1160
1160
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1161
1161
|
}
|
|
1162
1162
|
},
|
|
1163
1163
|
`;
|
|
1164
1164
|
}
|
|
1165
|
-
function f(
|
|
1165
|
+
function f(p, k) {
|
|
1166
1166
|
return {
|
|
1167
|
-
...
|
|
1168
|
-
href:
|
|
1167
|
+
...p.link ? {
|
|
1168
|
+
href: p.link
|
|
1169
1169
|
} : {},
|
|
1170
1170
|
[j()]: "builder-column",
|
|
1171
|
-
style: _e(
|
|
1171
|
+
style: _e(g(k))
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
1174
|
return /* @__PURE__ */ B(R, { children: [
|
|
1175
1175
|
/* @__PURE__ */ B(
|
|
1176
1176
|
"div",
|
|
1177
1177
|
{
|
|
1178
|
-
className: Qt((
|
|
1178
|
+
className: Qt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1179
1179
|
style: h(),
|
|
1180
1180
|
children: [
|
|
1181
1181
|
/* @__PURE__ */ s(
|
|
1182
|
-
|
|
1182
|
+
K,
|
|
1183
1183
|
{
|
|
1184
1184
|
id: "builderio-columns",
|
|
1185
1185
|
styles: v(),
|
|
1186
1186
|
nonce: e.builderContext.nonce
|
|
1187
1187
|
}
|
|
1188
1188
|
),
|
|
1189
|
-
(S = e.columns) == null ? void 0 : S.map((
|
|
1189
|
+
(S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
|
|
1190
1190
|
de,
|
|
1191
1191
|
{
|
|
1192
|
-
TagName: a(
|
|
1192
|
+
TagName: a(p),
|
|
1193
1193
|
actionAttributes: {},
|
|
1194
|
-
attributes: f(
|
|
1194
|
+
attributes: f(p, k),
|
|
1195
1195
|
children: /* @__PURE__ */ s(
|
|
1196
|
-
|
|
1196
|
+
$,
|
|
1197
1197
|
{
|
|
1198
1198
|
path: `columns.${k}.blocks`,
|
|
1199
1199
|
parent: e.builderBlock.id,
|
|
1200
1200
|
context: e.builderContext,
|
|
1201
1201
|
registeredComponents: e.builderComponents,
|
|
1202
1202
|
linkComponent: e.builderLinkComponent,
|
|
1203
|
-
blocks:
|
|
1203
|
+
blocks: p.blocks,
|
|
1204
1204
|
styleProp: {
|
|
1205
1205
|
flexGrow: "1"
|
|
1206
1206
|
}
|
|
@@ -1240,7 +1240,7 @@ function en(e, t) {
|
|
|
1240
1240
|
}
|
|
1241
1241
|
return null;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ie(e) {
|
|
1244
1244
|
if (!e)
|
|
1245
1245
|
return e;
|
|
1246
1246
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1252,21 +1252,21 @@ function ne(e) {
|
|
|
1252
1252
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1253
1253
|
}
|
|
1254
1254
|
function tn(e) {
|
|
1255
|
-
var a, r, o, l, d,
|
|
1255
|
+
var a, r, o, l, d, u;
|
|
1256
1256
|
function t() {
|
|
1257
|
-
var
|
|
1258
|
-
const
|
|
1259
|
-
if (!
|
|
1257
|
+
var c;
|
|
1258
|
+
const g = e.image || e.src;
|
|
1259
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1260
1260
|
// images, otherwise you can supply this prop manually
|
|
1261
|
-
!(typeof
|
|
1261
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1262
1262
|
return e.srcset;
|
|
1263
1263
|
if (!e.noWebp) {
|
|
1264
|
-
if (e.srcset && ((
|
|
1264
|
+
if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
|
|
1265
1265
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1266
|
-
return console.debug("Removed given srcset"),
|
|
1266
|
+
return console.debug("Removed given srcset"), ie(g);
|
|
1267
1267
|
} else if (e.image && !e.srcset)
|
|
1268
|
-
return
|
|
1269
|
-
return
|
|
1268
|
+
return ie(g);
|
|
1269
|
+
return ie(g);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
function n() {
|
|
@@ -1316,7 +1316,7 @@ function tn(e) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
) : null,
|
|
1318
1318
|
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1319
|
-
!e.fitContent && ((
|
|
1319
|
+
!e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1320
1320
|
] }),
|
|
1321
1321
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1322
1322
|
opacity: 1;
|
|
@@ -1358,7 +1358,7 @@ function nn(e) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
|
-
const
|
|
1361
|
+
const ae = {
|
|
1362
1362
|
"@type": "@builder.io/sdk:Element",
|
|
1363
1363
|
layerName: "Accordion item title",
|
|
1364
1364
|
responsiveStyles: {
|
|
@@ -1387,7 +1387,7 @@ const ie = {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
}]
|
|
1390
|
-
},
|
|
1390
|
+
}, oe = {
|
|
1391
1391
|
"@type": "@builder.io/sdk:Element",
|
|
1392
1392
|
layerName: "Accordion item detail",
|
|
1393
1393
|
responsiveStyles: {
|
|
@@ -1435,19 +1435,19 @@ const ie = {
|
|
|
1435
1435
|
name: "title",
|
|
1436
1436
|
type: "uiBlocks",
|
|
1437
1437
|
hideFromUI: !0,
|
|
1438
|
-
defaultValue: [
|
|
1438
|
+
defaultValue: [ae]
|
|
1439
1439
|
}, {
|
|
1440
1440
|
name: "detail",
|
|
1441
1441
|
type: "uiBlocks",
|
|
1442
1442
|
hideFromUI: !0,
|
|
1443
|
-
defaultValue: [
|
|
1443
|
+
defaultValue: [oe]
|
|
1444
1444
|
}],
|
|
1445
1445
|
defaultValue: [{
|
|
1446
|
-
title: [
|
|
1447
|
-
detail: [
|
|
1446
|
+
title: [ae],
|
|
1447
|
+
detail: [oe]
|
|
1448
1448
|
}, {
|
|
1449
|
-
title: [
|
|
1450
|
-
detail: [
|
|
1449
|
+
title: [ae],
|
|
1450
|
+
detail: [oe]
|
|
1451
1451
|
}],
|
|
1452
1452
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1453
1453
|
}, {
|
|
@@ -1484,7 +1484,7 @@ const ie = {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
}, Ce = (e) => e.toString();
|
|
1486
1486
|
function on(e) {
|
|
1487
|
-
var
|
|
1487
|
+
var g;
|
|
1488
1488
|
const [t, n] = I(() => []);
|
|
1489
1489
|
function i() {
|
|
1490
1490
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1511,57 +1511,57 @@ function on(e) {
|
|
|
1511
1511
|
cursor: "pointer"
|
|
1512
1512
|
};
|
|
1513
1513
|
return Object.fromEntries(
|
|
1514
|
-
Object.entries(v).filter(([f,
|
|
1514
|
+
Object.entries(v).filter(([f, b]) => b !== void 0)
|
|
1515
1515
|
);
|
|
1516
1516
|
}
|
|
1517
|
-
function o(
|
|
1518
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1517
|
+
function o(c) {
|
|
1518
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
|
|
1519
1519
|
}
|
|
1520
|
-
function l(
|
|
1521
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1520
|
+
function l(c) {
|
|
1521
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
|
|
1522
1522
|
}
|
|
1523
1523
|
function d() {
|
|
1524
|
-
let
|
|
1524
|
+
let c = null;
|
|
1525
1525
|
if (e.grid && t.length && document) {
|
|
1526
1526
|
const f = t[0];
|
|
1527
1527
|
let S = document.querySelector(
|
|
1528
1528
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1529
1529
|
);
|
|
1530
|
-
if (
|
|
1531
|
-
let
|
|
1530
|
+
if (c = f, S) {
|
|
1531
|
+
let p = S.getBoundingClientRect();
|
|
1532
1532
|
for (; S = S && S.nextElementSibling; )
|
|
1533
1533
|
if (S) {
|
|
1534
1534
|
if (S.classList.contains("builder-accordion-detail"))
|
|
1535
1535
|
continue;
|
|
1536
1536
|
const k = S.getBoundingClientRect();
|
|
1537
|
-
if (k.left >
|
|
1537
|
+
if (k.left > p.left) {
|
|
1538
1538
|
const C = parseInt(
|
|
1539
1539
|
S.getAttribute("data-index") || "",
|
|
1540
1540
|
10
|
|
1541
1541
|
);
|
|
1542
|
-
isNaN(C) || (
|
|
1542
|
+
isNaN(C) || (p = k, c = C);
|
|
1543
1543
|
} else
|
|
1544
1544
|
break;
|
|
1545
1545
|
}
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
return typeof
|
|
1548
|
+
return typeof c == "number" && (c = c + 1), c;
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1551
|
-
const
|
|
1550
|
+
function u() {
|
|
1551
|
+
const c = {
|
|
1552
1552
|
order: typeof d() == "number" ? d() : void 0,
|
|
1553
1553
|
...e.grid && {
|
|
1554
1554
|
width: "100%"
|
|
1555
1555
|
}
|
|
1556
1556
|
};
|
|
1557
1557
|
return Object.fromEntries(
|
|
1558
|
-
Object.entries(
|
|
1558
|
+
Object.entries(c).filter(([v, f]) => f !== void 0)
|
|
1559
1559
|
);
|
|
1560
1560
|
}
|
|
1561
|
-
function h(
|
|
1562
|
-
t.includes(
|
|
1561
|
+
function h(c) {
|
|
1562
|
+
t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
|
|
1563
1563
|
}
|
|
1564
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1564
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
|
|
1565
1565
|
/* @__PURE__ */ s(
|
|
1566
1566
|
"div",
|
|
1567
1567
|
{
|
|
@@ -1576,9 +1576,9 @@ function on(e) {
|
|
|
1576
1576
|
"data-index": v,
|
|
1577
1577
|
onClick: (f) => h(v),
|
|
1578
1578
|
children: /* @__PURE__ */ s(
|
|
1579
|
-
|
|
1579
|
+
$,
|
|
1580
1580
|
{
|
|
1581
|
-
blocks:
|
|
1581
|
+
blocks: c.title,
|
|
1582
1582
|
path: `items.${v}.title`,
|
|
1583
1583
|
parent: e.builderBlock.id,
|
|
1584
1584
|
context: e.builderContext,
|
|
@@ -1592,11 +1592,11 @@ function on(e) {
|
|
|
1592
1592
|
"div",
|
|
1593
1593
|
{
|
|
1594
1594
|
className: l(v),
|
|
1595
|
-
style:
|
|
1595
|
+
style: u(),
|
|
1596
1596
|
children: /* @__PURE__ */ s(
|
|
1597
|
-
|
|
1597
|
+
$,
|
|
1598
1598
|
{
|
|
1599
|
-
blocks:
|
|
1599
|
+
blocks: c.detail,
|
|
1600
1600
|
path: `items.${v}.detail`,
|
|
1601
1601
|
parent: e.builderBlock.id,
|
|
1602
1602
|
context: e.builderContext,
|
|
@@ -1878,15 +1878,15 @@ const rn = {
|
|
|
1878
1878
|
onChange: (e) => {
|
|
1879
1879
|
e.delete("srcset"), e.delete("noWebp");
|
|
1880
1880
|
function n(o, l = 6e4) {
|
|
1881
|
-
return new Promise((d,
|
|
1881
|
+
return new Promise((d, u) => {
|
|
1882
1882
|
const h = document.createElement("img");
|
|
1883
|
-
let
|
|
1883
|
+
let g = !1;
|
|
1884
1884
|
h.onload = () => {
|
|
1885
|
-
|
|
1886
|
-
}, h.addEventListener("error", (
|
|
1887
|
-
console.warn("Image load failed",
|
|
1885
|
+
g = !0, d(h);
|
|
1886
|
+
}, h.addEventListener("error", (c) => {
|
|
1887
|
+
console.warn("Image load failed", c.error), u(c.error);
|
|
1888
1888
|
}), h.src = o, setTimeout(() => {
|
|
1889
|
-
|
|
1889
|
+
g || u(new Error("Image load timed out"));
|
|
1890
1890
|
}, l);
|
|
1891
1891
|
});
|
|
1892
1892
|
}
|
|
@@ -2001,7 +2001,7 @@ const rn = {
|
|
|
2001
2001
|
}]
|
|
2002
2002
|
}]
|
|
2003
2003
|
};
|
|
2004
|
-
function
|
|
2004
|
+
function Y(e) {
|
|
2005
2005
|
return /* @__PURE__ */ s(
|
|
2006
2006
|
"script",
|
|
2007
2007
|
{
|
|
@@ -2012,50 +2012,50 @@ function Q(e) {
|
|
|
2012
2012
|
);
|
|
2013
2013
|
}
|
|
2014
2014
|
function mn(e, t, n, i) {
|
|
2015
|
-
function a(
|
|
2016
|
-
return typeof
|
|
2015
|
+
function a(u) {
|
|
2016
|
+
return typeof u == "string";
|
|
2017
2017
|
}
|
|
2018
|
-
function r(
|
|
2019
|
-
return typeof
|
|
2018
|
+
function r(u) {
|
|
2019
|
+
return typeof u == "number";
|
|
2020
2020
|
}
|
|
2021
|
-
function o(
|
|
2021
|
+
function o(u, h) {
|
|
2022
2022
|
return (() => {
|
|
2023
|
-
const
|
|
2023
|
+
const c = h.property, v = h.operator;
|
|
2024
2024
|
let f = h.value;
|
|
2025
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(
|
|
2025
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
|
|
2026
2026
|
return !0;
|
|
2027
2027
|
if (Array.isArray(f))
|
|
2028
|
-
return v === "isNot" ? f.every((S) => o(
|
|
2029
|
-
property:
|
|
2028
|
+
return v === "isNot" ? f.every((S) => o(u, {
|
|
2029
|
+
property: c,
|
|
2030
2030
|
operator: v,
|
|
2031
2031
|
value: S
|
|
2032
|
-
})) : !!f.find((S) => o(
|
|
2033
|
-
property:
|
|
2032
|
+
})) : !!f.find((S) => o(u, {
|
|
2033
|
+
property: c,
|
|
2034
2034
|
operator: v,
|
|
2035
2035
|
value: S
|
|
2036
2036
|
}));
|
|
2037
|
-
const
|
|
2038
|
-
if (Array.isArray(
|
|
2039
|
-
return
|
|
2037
|
+
const b = u[c];
|
|
2038
|
+
if (Array.isArray(b))
|
|
2039
|
+
return b.includes(f);
|
|
2040
2040
|
switch (v) {
|
|
2041
2041
|
case "is":
|
|
2042
|
-
return
|
|
2042
|
+
return b === f;
|
|
2043
2043
|
case "isNot":
|
|
2044
|
-
return
|
|
2044
|
+
return b !== f;
|
|
2045
2045
|
case "contains":
|
|
2046
|
-
return (a(
|
|
2046
|
+
return (a(b) || Array.isArray(b)) && b.includes(String(f));
|
|
2047
2047
|
case "startsWith":
|
|
2048
|
-
return a(
|
|
2048
|
+
return a(b) && b.startsWith(String(f));
|
|
2049
2049
|
case "endsWith":
|
|
2050
|
-
return a(
|
|
2050
|
+
return a(b) && b.endsWith(String(f));
|
|
2051
2051
|
case "greaterThan":
|
|
2052
|
-
return r(
|
|
2052
|
+
return r(b) && r(f) && b > f;
|
|
2053
2053
|
case "lessThan":
|
|
2054
|
-
return r(
|
|
2054
|
+
return r(b) && r(f) && b < f;
|
|
2055
2055
|
case "greaterThanOrEqualTo":
|
|
2056
|
-
return r(
|
|
2056
|
+
return r(b) && r(f) && b >= f;
|
|
2057
2057
|
case "lessThanOrEqualTo":
|
|
2058
|
-
return r(
|
|
2058
|
+
return r(b) && r(f) && b <= f;
|
|
2059
2059
|
default:
|
|
2060
2060
|
return !1;
|
|
2061
2061
|
}
|
|
@@ -2066,7 +2066,7 @@ function mn(e, t, n, i) {
|
|
|
2066
2066
|
startDate: n,
|
|
2067
2067
|
endDate: i
|
|
2068
2068
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2069
|
-
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((
|
|
2069
|
+
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => o(e, u));
|
|
2070
2070
|
}
|
|
2071
2071
|
const fn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2072
2072
|
if (!navigator.cookieEnabled) {
|
|
@@ -2215,7 +2215,7 @@ function bn({
|
|
|
2215
2215
|
blocks: a != null ? a : [],
|
|
2216
2216
|
path: "this.children"
|
|
2217
2217
|
};
|
|
2218
|
-
if (n &&
|
|
2218
|
+
if (n && N())
|
|
2219
2219
|
return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
|
|
2220
2220
|
blocks: e[t].blocks,
|
|
2221
2221
|
path: `component.options.variants.${t}.blocks`
|
|
@@ -2238,19 +2238,19 @@ const pn = (e, t, n) => `
|
|
|
2238
2238
|
})();
|
|
2239
2239
|
`;
|
|
2240
2240
|
function yn(e) {
|
|
2241
|
-
var
|
|
2241
|
+
var b, S, p, k, C, V, w;
|
|
2242
2242
|
const t = L(null), [n, i] = I(
|
|
2243
2243
|
() => be.getUserAttributes()
|
|
2244
2244
|
), [a, r] = I(
|
|
2245
2245
|
() => {
|
|
2246
|
-
var x, m,
|
|
2246
|
+
var x, m, y;
|
|
2247
2247
|
return pn(
|
|
2248
2248
|
e.variants,
|
|
2249
2249
|
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2250
|
-
(
|
|
2250
|
+
(y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
|
|
2251
2251
|
);
|
|
2252
2252
|
}
|
|
2253
|
-
), [o, l] = I(() => []), [d,
|
|
2253
|
+
), [o, l] = I(() => []), [d, u] = I(
|
|
2254
2254
|
() => {
|
|
2255
2255
|
var x;
|
|
2256
2256
|
return gn(
|
|
@@ -2258,13 +2258,13 @@ function yn(e) {
|
|
|
2258
2258
|
M((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2259
2259
|
);
|
|
2260
2260
|
}
|
|
2261
|
-
), [h,
|
|
2262
|
-
function
|
|
2261
|
+
), [h, g] = I(() => !1);
|
|
2262
|
+
function c() {
|
|
2263
2263
|
return (e.variants || []).filter((x) => {
|
|
2264
|
-
var m,
|
|
2264
|
+
var m, y, T, E;
|
|
2265
2265
|
return mn(
|
|
2266
2266
|
{
|
|
2267
|
-
...(
|
|
2267
|
+
...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
|
|
2268
2268
|
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
2269
2269
|
} : {},
|
|
2270
2270
|
...n
|
|
@@ -2281,44 +2281,44 @@ function yn(e) {
|
|
|
2281
2281
|
variants: e.variants,
|
|
2282
2282
|
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2283
2283
|
isHydrated: h,
|
|
2284
|
-
filteredVariants:
|
|
2284
|
+
filteredVariants: c(),
|
|
2285
2285
|
previewingIndex: e.previewingIndex
|
|
2286
2286
|
});
|
|
2287
2287
|
}
|
|
2288
2288
|
function f() {
|
|
2289
2289
|
return (e.variants || []).map(
|
|
2290
2290
|
(x, m) => {
|
|
2291
|
-
var
|
|
2292
|
-
return `[data-variant-id="${(
|
|
2291
|
+
var y;
|
|
2292
|
+
return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
|
|
2293
2293
|
}
|
|
2294
2294
|
).join("");
|
|
2295
2295
|
}
|
|
2296
2296
|
return P(() => {
|
|
2297
2297
|
var m;
|
|
2298
|
-
|
|
2298
|
+
g(!0);
|
|
2299
2299
|
const x = be.subscribeOnUserAttributesChange(
|
|
2300
|
-
(
|
|
2301
|
-
i(
|
|
2300
|
+
(y) => {
|
|
2301
|
+
i(y);
|
|
2302
2302
|
}
|
|
2303
2303
|
);
|
|
2304
|
-
if (!(
|
|
2305
|
-
const
|
|
2304
|
+
if (!(N() || X())) {
|
|
2305
|
+
const y = c()[0];
|
|
2306
2306
|
t.current && (t.current.dispatchEvent(
|
|
2307
2307
|
new CustomEvent("builder.variantLoaded", {
|
|
2308
2308
|
detail: {
|
|
2309
|
-
variant:
|
|
2309
|
+
variant: y || "default",
|
|
2310
2310
|
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2311
2311
|
},
|
|
2312
2312
|
bubbles: !0
|
|
2313
2313
|
})
|
|
2314
2314
|
), new IntersectionObserver((E) => {
|
|
2315
2315
|
E.forEach((A) => {
|
|
2316
|
-
var
|
|
2316
|
+
var W;
|
|
2317
2317
|
A.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2318
2318
|
new CustomEvent("builder.variantDisplayed", {
|
|
2319
2319
|
detail: {
|
|
2320
|
-
variant:
|
|
2321
|
-
content: (
|
|
2320
|
+
variant: y || "default",
|
|
2321
|
+
content: (W = e.builderContext) == null ? void 0 : W.content
|
|
2322
2322
|
},
|
|
2323
2323
|
bubbles: !0
|
|
2324
2324
|
})
|
|
@@ -2334,17 +2334,17 @@ function yn(e) {
|
|
|
2334
2334
|
{
|
|
2335
2335
|
ref: t,
|
|
2336
2336
|
...e.attributes,
|
|
2337
|
-
className: `builder-personalization-container ${((
|
|
2337
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2338
2338
|
children: [
|
|
2339
2339
|
d ? /* @__PURE__ */ B(R, { children: [
|
|
2340
2340
|
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2341
|
-
var
|
|
2341
|
+
var y, T;
|
|
2342
2342
|
return /* @__PURE__ */ s(
|
|
2343
2343
|
"template",
|
|
2344
2344
|
{
|
|
2345
|
-
"data-variant-id": `${(
|
|
2345
|
+
"data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
|
|
2346
2346
|
children: /* @__PURE__ */ s(
|
|
2347
|
-
|
|
2347
|
+
$,
|
|
2348
2348
|
{
|
|
2349
2349
|
blocks: x.blocks,
|
|
2350
2350
|
parent: (T = e.builderBlock) == null ? void 0 : T.id,
|
|
@@ -2356,15 +2356,15 @@ function yn(e) {
|
|
|
2356
2356
|
);
|
|
2357
2357
|
}),
|
|
2358
2358
|
/* @__PURE__ */ s(
|
|
2359
|
-
|
|
2359
|
+
K,
|
|
2360
2360
|
{
|
|
2361
|
-
nonce: ((
|
|
2361
|
+
nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
|
|
2362
2362
|
styles: f(),
|
|
2363
2363
|
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2364
2364
|
}
|
|
2365
2365
|
),
|
|
2366
2366
|
/* @__PURE__ */ s(
|
|
2367
|
-
|
|
2367
|
+
Y,
|
|
2368
2368
|
{
|
|
2369
2369
|
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2370
2370
|
scriptStr: a,
|
|
@@ -2373,7 +2373,7 @@ function yn(e) {
|
|
|
2373
2373
|
)
|
|
2374
2374
|
] }) : null,
|
|
2375
2375
|
/* @__PURE__ */ s(
|
|
2376
|
-
|
|
2376
|
+
$,
|
|
2377
2377
|
{
|
|
2378
2378
|
blocks: v().blocks,
|
|
2379
2379
|
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
@@ -2453,7 +2453,7 @@ function Sn(e) {
|
|
|
2453
2453
|
"builder-slot": e.name
|
|
2454
2454
|
},
|
|
2455
2455
|
children: /* @__PURE__ */ s(
|
|
2456
|
-
|
|
2456
|
+
$,
|
|
2457
2457
|
{
|
|
2458
2458
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2459
2459
|
path: `symbol.data.${e.name}`,
|
|
@@ -2504,7 +2504,7 @@ const kn = {
|
|
|
2504
2504
|
builderComponents: !0,
|
|
2505
2505
|
builderLinkComponent: !0
|
|
2506
2506
|
}
|
|
2507
|
-
},
|
|
2507
|
+
}, re = {
|
|
2508
2508
|
"@type": "@builder.io/sdk:Element",
|
|
2509
2509
|
responsiveStyles: {
|
|
2510
2510
|
large: {
|
|
@@ -2526,7 +2526,7 @@ const kn = {
|
|
|
2526
2526
|
text: "New tab"
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
},
|
|
2529
|
+
}, le = {
|
|
2530
2530
|
"@type": "@builder.io/sdk:Element",
|
|
2531
2531
|
responsiveStyles: {
|
|
2532
2532
|
large: {
|
|
@@ -2552,16 +2552,16 @@ const kn = {
|
|
|
2552
2552
|
name: "label",
|
|
2553
2553
|
type: "uiBlocks",
|
|
2554
2554
|
hideFromUI: !0,
|
|
2555
|
-
defaultValue: [
|
|
2555
|
+
defaultValue: [re]
|
|
2556
2556
|
}, {
|
|
2557
2557
|
name: "content",
|
|
2558
2558
|
type: "uiBlocks",
|
|
2559
2559
|
hideFromUI: !0,
|
|
2560
|
-
defaultValue: [
|
|
2560
|
+
defaultValue: [le]
|
|
2561
2561
|
}],
|
|
2562
2562
|
defaultValue: [{
|
|
2563
2563
|
label: [{
|
|
2564
|
-
...
|
|
2564
|
+
...re,
|
|
2565
2565
|
component: {
|
|
2566
2566
|
name: "Text",
|
|
2567
2567
|
options: {
|
|
@@ -2570,7 +2570,7 @@ const kn = {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
}],
|
|
2572
2572
|
content: [{
|
|
2573
|
-
...
|
|
2573
|
+
...le,
|
|
2574
2574
|
component: {
|
|
2575
2575
|
name: "Text",
|
|
2576
2576
|
options: {
|
|
@@ -2580,7 +2580,7 @@ const kn = {
|
|
|
2580
2580
|
}]
|
|
2581
2581
|
}, {
|
|
2582
2582
|
label: [{
|
|
2583
|
-
...
|
|
2583
|
+
...re,
|
|
2584
2584
|
component: {
|
|
2585
2585
|
name: "Text",
|
|
2586
2586
|
options: {
|
|
@@ -2589,7 +2589,7 @@ const kn = {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}],
|
|
2591
2591
|
content: [{
|
|
2592
|
-
...
|
|
2592
|
+
...le,
|
|
2593
2593
|
component: {
|
|
2594
2594
|
name: "Text",
|
|
2595
2595
|
options: {
|
|
@@ -2677,7 +2677,7 @@ function Tn(e) {
|
|
|
2677
2677
|
},
|
|
2678
2678
|
onClick: (d) => a(l),
|
|
2679
2679
|
children: /* @__PURE__ */ s(
|
|
2680
|
-
|
|
2680
|
+
$,
|
|
2681
2681
|
{
|
|
2682
2682
|
parent: e.builderBlock.id,
|
|
2683
2683
|
path: `tabs.${l}.label`,
|
|
@@ -2693,7 +2693,7 @@ function Tn(e) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
),
|
|
2695
2695
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2696
|
-
|
|
2696
|
+
$,
|
|
2697
2697
|
{
|
|
2698
2698
|
parent: e.builderBlock.id,
|
|
2699
2699
|
path: `tabs.${t}.content`,
|
|
@@ -2766,34 +2766,42 @@ const En = {
|
|
|
2766
2766
|
};
|
|
2767
2767
|
function Rn(e) {
|
|
2768
2768
|
const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
|
|
2769
|
-
|
|
2770
|
-
var
|
|
2771
|
-
if (!((
|
|
2769
|
+
function o() {
|
|
2770
|
+
var d;
|
|
2771
|
+
if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
|
|
2772
2772
|
return;
|
|
2773
|
-
const
|
|
2774
|
-
for (let
|
|
2775
|
-
const
|
|
2776
|
-
if (
|
|
2777
|
-
if (n.includes(
|
|
2773
|
+
const l = t.current.getElementsByTagName("script");
|
|
2774
|
+
for (let u = 0; u < l.length; u++) {
|
|
2775
|
+
const h = l[u];
|
|
2776
|
+
if (h.src) {
|
|
2777
|
+
if (n.includes(h.src))
|
|
2778
2778
|
continue;
|
|
2779
|
-
n.push(
|
|
2780
|
-
const
|
|
2781
|
-
|
|
2782
|
-
} else if (!
|
|
2779
|
+
n.push(h.src);
|
|
2780
|
+
const g = document.createElement("script");
|
|
2781
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2782
|
+
} else if (!h.type || [
|
|
2783
2783
|
"text/javascript",
|
|
2784
2784
|
"application/javascript",
|
|
2785
2785
|
"application/ecmascript"
|
|
2786
|
-
].includes(
|
|
2787
|
-
if (a.includes(
|
|
2786
|
+
].includes(h.type)) {
|
|
2787
|
+
if (a.includes(h.innerText))
|
|
2788
2788
|
continue;
|
|
2789
2789
|
try {
|
|
2790
|
-
a.push(
|
|
2791
|
-
} catch (
|
|
2792
|
-
|
|
2790
|
+
a.push(h.innerText), new Function(h.innerText)();
|
|
2791
|
+
} catch (g) {
|
|
2792
|
+
z.warn(
|
|
2793
|
+
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2794
|
+
g
|
|
2795
|
+
);
|
|
2793
2796
|
}
|
|
2794
2797
|
}
|
|
2795
2798
|
}
|
|
2796
|
-
}
|
|
2799
|
+
}
|
|
2800
|
+
return P(() => {
|
|
2801
|
+
o();
|
|
2802
|
+
}, []), P(() => {
|
|
2803
|
+
N() && o();
|
|
2804
|
+
}, [e.code]), /* @__PURE__ */ s(
|
|
2797
2805
|
"div",
|
|
2798
2806
|
{
|
|
2799
2807
|
ref: t,
|
|
@@ -2823,18 +2831,18 @@ function An(e) {
|
|
|
2823
2831
|
function d() {
|
|
2824
2832
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2825
2833
|
return;
|
|
2826
|
-
const
|
|
2827
|
-
for (let h = 0; h <
|
|
2828
|
-
const
|
|
2829
|
-
if (
|
|
2830
|
-
n.push(
|
|
2831
|
-
const
|
|
2832
|
-
|
|
2833
|
-
} else if (Bn(
|
|
2834
|
+
const u = t.current.getElementsByTagName("script");
|
|
2835
|
+
for (let h = 0; h < u.length; h++) {
|
|
2836
|
+
const g = u[h];
|
|
2837
|
+
if (g.src && !n.includes(g.src)) {
|
|
2838
|
+
n.push(g.src);
|
|
2839
|
+
const c = document.createElement("script");
|
|
2840
|
+
c.async = !0, c.src = g.src, document.head.appendChild(c);
|
|
2841
|
+
} else if (Bn(g) && !a.includes(g.innerText))
|
|
2834
2842
|
try {
|
|
2835
|
-
a.push(
|
|
2836
|
-
} catch (
|
|
2837
|
-
|
|
2843
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2844
|
+
} catch (c) {
|
|
2845
|
+
z.warn("[BUILDER.IO] `Embed`: Error running script:", c);
|
|
2838
2846
|
}
|
|
2839
2847
|
}
|
|
2840
2848
|
}
|
|
@@ -3086,90 +3094,90 @@ const Nn = {
|
|
|
3086
3094
|
builderComponents: !0,
|
|
3087
3095
|
builderLinkComponent: !0
|
|
3088
3096
|
}
|
|
3089
|
-
}, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"],
|
|
3097
|
+
}, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
|
|
3090
3098
|
const e = process.env.NODE_ENV || "production";
|
|
3091
3099
|
return Wn.includes(e) ? e : "production";
|
|
3092
3100
|
};
|
|
3093
|
-
function
|
|
3101
|
+
function $n(e) {
|
|
3094
3102
|
const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
|
|
3095
|
-
function d(
|
|
3103
|
+
function d(g) {
|
|
3096
3104
|
var v, f;
|
|
3097
|
-
const
|
|
3105
|
+
const c = {
|
|
3098
3106
|
...e.builderContext.rootState,
|
|
3099
|
-
...
|
|
3107
|
+
...g
|
|
3100
3108
|
};
|
|
3101
|
-
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v,
|
|
3109
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
|
|
3102
3110
|
}
|
|
3103
|
-
function
|
|
3104
|
-
return
|
|
3111
|
+
function u() {
|
|
3112
|
+
return N() && e.previewState || n;
|
|
3105
3113
|
}
|
|
3106
|
-
function h(
|
|
3114
|
+
function h(g) {
|
|
3107
3115
|
var v;
|
|
3108
|
-
const
|
|
3116
|
+
const c = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3109
3117
|
if (e.sendSubmissionsTo === "zapier")
|
|
3110
|
-
|
|
3111
|
-
else if (
|
|
3118
|
+
g.preventDefault();
|
|
3119
|
+
else if (c) {
|
|
3112
3120
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3113
|
-
|
|
3121
|
+
g.preventDefault();
|
|
3114
3122
|
return;
|
|
3115
3123
|
}
|
|
3116
|
-
|
|
3117
|
-
const f =
|
|
3124
|
+
g.preventDefault();
|
|
3125
|
+
const f = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3118
3126
|
let S;
|
|
3119
|
-
const
|
|
3120
|
-
let
|
|
3127
|
+
const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3128
|
+
let y;
|
|
3121
3129
|
const T = m.name;
|
|
3122
3130
|
if (m instanceof HTMLInputElement)
|
|
3123
3131
|
if (m.type === "radio") {
|
|
3124
3132
|
if (m.checked)
|
|
3125
|
-
return
|
|
3133
|
+
return y = m.name, {
|
|
3126
3134
|
key: T,
|
|
3127
|
-
value:
|
|
3135
|
+
value: y
|
|
3128
3136
|
};
|
|
3129
3137
|
} else if (m.type === "checkbox")
|
|
3130
|
-
|
|
3138
|
+
y = m.checked;
|
|
3131
3139
|
else if (m.type === "number" || m.type === "range") {
|
|
3132
3140
|
const E = m.valueAsNumber;
|
|
3133
|
-
isNaN(E) || (
|
|
3141
|
+
isNaN(E) || (y = E);
|
|
3134
3142
|
} else
|
|
3135
|
-
m.type === "file" ?
|
|
3143
|
+
m.type === "file" ? y = m.files : y = m.value;
|
|
3136
3144
|
else
|
|
3137
|
-
|
|
3145
|
+
y = m.value;
|
|
3138
3146
|
return {
|
|
3139
3147
|
key: T,
|
|
3140
|
-
value:
|
|
3148
|
+
value: y
|
|
3141
3149
|
};
|
|
3142
3150
|
});
|
|
3143
3151
|
let C = e.contentType;
|
|
3144
3152
|
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3145
3153
|
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3146
3154
|
}), C !== "application/json")
|
|
3147
|
-
S =
|
|
3155
|
+
S = p;
|
|
3148
3156
|
else {
|
|
3149
3157
|
const m = {};
|
|
3150
|
-
Array.from(k).forEach(({ value:
|
|
3151
|
-
Ne(m, T,
|
|
3158
|
+
Array.from(k).forEach(({ value: y, key: T }) => {
|
|
3159
|
+
Ne(m, T, y);
|
|
3152
3160
|
}), S = JSON.stringify(m);
|
|
3153
3161
|
}
|
|
3154
|
-
C && C !== "multipart/form-data" && (
|
|
3162
|
+
C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
|
|
3155
3163
|
const V = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3156
3164
|
if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
|
|
3157
3165
|
return;
|
|
3158
3166
|
i("sending");
|
|
3159
|
-
const w = `${
|
|
3167
|
+
const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3160
3168
|
e.sendSubmissionsToEmail || ""
|
|
3161
3169
|
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3162
|
-
Ve(x), fetch(x, { body: S, headers:
|
|
3170
|
+
Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
|
|
3163
3171
|
async (m) => {
|
|
3164
|
-
let
|
|
3172
|
+
let y;
|
|
3165
3173
|
const T = m.headers.get("content-type");
|
|
3166
|
-
if (T && T.indexOf("application/json") !== -1 ?
|
|
3167
|
-
let E =
|
|
3174
|
+
if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3175
|
+
let E = De(y, e.errorMessagePath);
|
|
3168
3176
|
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3169
3177
|
}
|
|
3170
|
-
if (r(
|
|
3178
|
+
if (r(y), i(m.ok ? "success" : "error"), m.ok) {
|
|
3171
3179
|
const E = new CustomEvent("submit:success", {
|
|
3172
|
-
detail: { res: m, body:
|
|
3180
|
+
detail: { res: m, body: y }
|
|
3173
3181
|
});
|
|
3174
3182
|
if (t.current) {
|
|
3175
3183
|
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
@@ -3187,10 +3195,10 @@ function Dn(e) {
|
|
|
3187
3195
|
}
|
|
3188
3196
|
},
|
|
3189
3197
|
(m) => {
|
|
3190
|
-
const
|
|
3198
|
+
const y = new CustomEvent("submit:error", {
|
|
3191
3199
|
detail: { error: m }
|
|
3192
3200
|
});
|
|
3193
|
-
t.current && (t.current.dispatchEvent(
|
|
3201
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(m), i("error"));
|
|
3194
3202
|
}
|
|
3195
3203
|
);
|
|
3196
3204
|
}
|
|
@@ -3205,29 +3213,29 @@ function Dn(e) {
|
|
|
3205
3213
|
action: !e.sendWithJs && e.action,
|
|
3206
3214
|
method: e.method,
|
|
3207
3215
|
name: e.name,
|
|
3208
|
-
onSubmit: (
|
|
3216
|
+
onSubmit: (g) => h(g),
|
|
3209
3217
|
...e.attributes,
|
|
3210
3218
|
children: [
|
|
3211
3219
|
e.children,
|
|
3212
|
-
|
|
3213
|
-
|
|
3220
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
3221
|
+
$,
|
|
3214
3222
|
{
|
|
3215
3223
|
path: "errorMessage",
|
|
3216
3224
|
blocks: e.errorMessage,
|
|
3217
3225
|
context: e.builderContext
|
|
3218
3226
|
}
|
|
3219
3227
|
) : null,
|
|
3220
|
-
|
|
3221
|
-
|
|
3228
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
3229
|
+
$,
|
|
3222
3230
|
{
|
|
3223
3231
|
path: "sendingMessage",
|
|
3224
3232
|
blocks: e.sendingMessage,
|
|
3225
3233
|
context: e.builderContext
|
|
3226
3234
|
}
|
|
3227
3235
|
) : null,
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3236
|
+
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3237
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
3238
|
+
$,
|
|
3231
3239
|
{
|
|
3232
3240
|
path: "successMessage",
|
|
3233
3241
|
blocks: e.successMessage,
|
|
@@ -3299,7 +3307,7 @@ function Ln(e) {
|
|
|
3299
3307
|
"input",
|
|
3300
3308
|
{
|
|
3301
3309
|
...e.attributes,
|
|
3302
|
-
key:
|
|
3310
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3303
3311
|
placeholder: e.placeholder,
|
|
3304
3312
|
type: e.type,
|
|
3305
3313
|
name: e.name,
|
|
@@ -3359,7 +3367,7 @@ function Un(e) {
|
|
|
3359
3367
|
{
|
|
3360
3368
|
...e.attributes,
|
|
3361
3369
|
value: e.value,
|
|
3362
|
-
key:
|
|
3370
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3363
3371
|
defaultValue: e.defaultValue,
|
|
3364
3372
|
name: e.name,
|
|
3365
3373
|
required: e.required
|
|
@@ -3473,7 +3481,7 @@ function zn(e) {
|
|
|
3473
3481
|
src: e.imgSrc || e.image,
|
|
3474
3482
|
...e.attributes
|
|
3475
3483
|
},
|
|
3476
|
-
|
|
3484
|
+
N() && e.imgSrc || "default-key"
|
|
3477
3485
|
);
|
|
3478
3486
|
}
|
|
3479
3487
|
const Kn = {
|
|
@@ -3562,7 +3570,7 @@ const Kn = {
|
|
|
3562
3570
|
}
|
|
3563
3571
|
};
|
|
3564
3572
|
function Jn(e) {
|
|
3565
|
-
var o, l, d,
|
|
3573
|
+
var o, l, d, u, h, g, c;
|
|
3566
3574
|
const t = L(null);
|
|
3567
3575
|
function n() {
|
|
3568
3576
|
return {
|
|
@@ -3593,19 +3601,19 @@ function Jn(e) {
|
|
|
3593
3601
|
return P(() => {
|
|
3594
3602
|
if (e.lazyLoad) {
|
|
3595
3603
|
const v = new IntersectionObserver(function(f) {
|
|
3596
|
-
f.forEach(function(
|
|
3597
|
-
if (!
|
|
3604
|
+
f.forEach(function(b) {
|
|
3605
|
+
if (!b.isIntersecting)
|
|
3598
3606
|
return;
|
|
3599
|
-
const S =
|
|
3607
|
+
const S = b.target;
|
|
3600
3608
|
try {
|
|
3601
3609
|
Array.from(S.children).filter(
|
|
3602
|
-
(
|
|
3603
|
-
).forEach((
|
|
3604
|
-
const k =
|
|
3605
|
-
k && (
|
|
3610
|
+
(p) => p instanceof HTMLElement && p.tagName === "SOURCE"
|
|
3611
|
+
).forEach((p) => {
|
|
3612
|
+
const k = p.dataset.src;
|
|
3613
|
+
k && (p.src = k);
|
|
3606
3614
|
}), S.load(), v.unobserve(S);
|
|
3607
|
-
} catch (
|
|
3608
|
-
console.error("Error loading lazy video:",
|
|
3615
|
+
} catch (p) {
|
|
3616
|
+
console.error("Error loading lazy video:", p);
|
|
3609
3617
|
}
|
|
3610
3618
|
});
|
|
3611
3619
|
});
|
|
@@ -3665,7 +3673,7 @@ function Jn(e) {
|
|
|
3665
3673
|
}
|
|
3666
3674
|
}
|
|
3667
3675
|
) : null,
|
|
3668
|
-
(h = (
|
|
3676
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3669
3677
|
"div",
|
|
3670
3678
|
{
|
|
3671
3679
|
style: {
|
|
@@ -3676,7 +3684,7 @@ function Jn(e) {
|
|
|
3676
3684
|
children: e.children
|
|
3677
3685
|
}
|
|
3678
3686
|
) : null,
|
|
3679
|
-
(
|
|
3687
|
+
(c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3680
3688
|
"div",
|
|
3681
3689
|
{
|
|
3682
3690
|
style: {
|
|
@@ -3704,7 +3712,7 @@ const Gn = () => [{
|
|
|
3704
3712
|
component: An,
|
|
3705
3713
|
...Vn
|
|
3706
3714
|
}, {
|
|
3707
|
-
component:
|
|
3715
|
+
component: $n,
|
|
3708
3716
|
...Nn
|
|
3709
3717
|
}, {
|
|
3710
3718
|
component: Ln,
|
|
@@ -3743,7 +3751,7 @@ const Gn = () => [{
|
|
|
3743
3751
|
component: Sn,
|
|
3744
3752
|
...xn
|
|
3745
3753
|
}, {
|
|
3746
|
-
component:
|
|
3754
|
+
component: xi,
|
|
3747
3755
|
...kn
|
|
3748
3756
|
}, {
|
|
3749
3757
|
component: In,
|
|
@@ -3757,7 +3765,7 @@ const Gn = () => [{
|
|
|
3757
3765
|
}, {
|
|
3758
3766
|
component: on,
|
|
3759
3767
|
...an
|
|
3760
|
-
}, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3768
|
+
}, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3761
3769
|
function getAndSetVariantId() {
|
|
3762
3770
|
function setCookie(name, value, days) {
|
|
3763
3771
|
let expires = '';
|
|
@@ -3799,7 +3807,10 @@ const Gn = () => [{
|
|
|
3799
3807
|
return contentId;
|
|
3800
3808
|
}
|
|
3801
3809
|
const winningVariantId = getAndSetVariantId();
|
|
3802
|
-
|
|
3810
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
3811
|
+
if (isAngularSDK) {
|
|
3812
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
3813
|
+
}
|
|
3803
3814
|
if (isHydrationTarget) {
|
|
3804
3815
|
styleEl.remove();
|
|
3805
3816
|
const thisScriptEl = document.currentScript;
|
|
@@ -3847,20 +3858,20 @@ const Gn = () => [{
|
|
|
3847
3858
|
thisScriptEl?.remove();
|
|
3848
3859
|
}
|
|
3849
3860
|
return;
|
|
3850
|
-
}`, ze = "builderIoAbTest", Ke = "builderIoRenderContent",
|
|
3861
|
+
}`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3851
3862
|
...t,
|
|
3852
3863
|
testVariationId: t.id,
|
|
3853
3864
|
id: e == null ? void 0 : e.id
|
|
3854
3865
|
})), Xn = ({
|
|
3855
3866
|
canTrack: e,
|
|
3856
3867
|
content: t
|
|
3857
|
-
}) => !(!(
|
|
3868
|
+
}) => !(!(G(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", ei = O === "angular", Je = Zn(O), ti = () => `
|
|
3858
3869
|
window.${ze} = ${Qn}
|
|
3859
3870
|
window.${Ke} = ${Yn}
|
|
3860
|
-
`,
|
|
3871
|
+
`, ni = (e, t) => `
|
|
3861
3872
|
window.${ze}(
|
|
3862
|
-
"${t}",${JSON.stringify(e)}, ${Je}
|
|
3863
|
-
)`,
|
|
3873
|
+
"${t}",${JSON.stringify(e)}, ${Je}, ${ei}
|
|
3874
|
+
)`, ii = ({
|
|
3864
3875
|
contentId: e,
|
|
3865
3876
|
variationId: t
|
|
3866
3877
|
}) => `window.${Ke}(
|
|
@@ -3869,7 +3880,7 @@ const Gn = () => [{
|
|
|
3869
3880
|
function we(e) {
|
|
3870
3881
|
return Math.round(e * 1e3) / 1e3;
|
|
3871
3882
|
}
|
|
3872
|
-
const
|
|
3883
|
+
const ai = (e, t, n = !0) => {
|
|
3873
3884
|
if (!(e instanceof HTMLElement))
|
|
3874
3885
|
return null;
|
|
3875
3886
|
let i = n ? e : e.parentElement;
|
|
@@ -3880,7 +3891,7 @@ const ii = (e, t, n = !0) => {
|
|
|
3880
3891
|
return i;
|
|
3881
3892
|
} while (i = i.parentElement);
|
|
3882
3893
|
return null;
|
|
3883
|
-
},
|
|
3894
|
+
}, oi = (e) => ai(e, (t) => {
|
|
3884
3895
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3885
3896
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3886
3897
|
}), Ie = ({
|
|
@@ -3892,8 +3903,8 @@ const ii = (e, t, n = !0) => {
|
|
|
3892
3903
|
x: r,
|
|
3893
3904
|
y: o
|
|
3894
3905
|
};
|
|
3895
|
-
},
|
|
3896
|
-
const t = e.target, n = t &&
|
|
3906
|
+
}, ri = (e) => {
|
|
3907
|
+
const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3897
3908
|
return {
|
|
3898
3909
|
targetBuilderElement: i || void 0,
|
|
3899
3910
|
metadata: {
|
|
@@ -3908,7 +3919,7 @@ const ii = (e, t, n = !0) => {
|
|
|
3908
3919
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3909
3920
|
}
|
|
3910
3921
|
};
|
|
3911
|
-
},
|
|
3922
|
+
}, li = ["svelte", "qwik", "vue"], Ee = () => li.includes(O) && (N() || X()), si = (e) => {
|
|
3912
3923
|
var r, o;
|
|
3913
3924
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3914
3925
|
let a = "";
|
|
@@ -3923,26 +3934,26 @@ font-weight: 400;
|
|
|
3923
3934
|
for (const l in e.files) {
|
|
3924
3935
|
if (!(String(Number(l)) === l))
|
|
3925
3936
|
continue;
|
|
3926
|
-
const
|
|
3927
|
-
|
|
3937
|
+
const u = e.files[l];
|
|
3938
|
+
u && u !== i && (a += `
|
|
3928
3939
|
@font-face {
|
|
3929
3940
|
font-family: "${t}";
|
|
3930
|
-
src: url('${
|
|
3941
|
+
src: url('${u}') format('woff2');
|
|
3931
3942
|
font-display: fallback;
|
|
3932
3943
|
font-weight: ${l};
|
|
3933
3944
|
}
|
|
3934
3945
|
`.trim());
|
|
3935
3946
|
}
|
|
3936
3947
|
return a;
|
|
3937
|
-
},
|
|
3948
|
+
}, ci = ({
|
|
3938
3949
|
customFonts: e
|
|
3939
3950
|
}) => {
|
|
3940
3951
|
var t;
|
|
3941
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3942
|
-
},
|
|
3952
|
+
return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3953
|
+
}, ui = ({
|
|
3943
3954
|
cssCode: e,
|
|
3944
3955
|
contentId: t
|
|
3945
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3956
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
|
|
3946
3957
|
.builder-button {
|
|
3947
3958
|
all: unset;
|
|
3948
3959
|
}
|
|
@@ -3959,24 +3970,24 @@ font-weight: ${l};
|
|
|
3959
3970
|
text-align: inherit;
|
|
3960
3971
|
font-family: inherit;
|
|
3961
3972
|
}
|
|
3962
|
-
`,
|
|
3963
|
-
function
|
|
3973
|
+
`, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
|
|
3974
|
+
function hi(e) {
|
|
3964
3975
|
var k, C, V;
|
|
3965
3976
|
const t = L(null);
|
|
3966
3977
|
I(() => !1);
|
|
3967
3978
|
function n(w) {
|
|
3968
|
-
var m,
|
|
3979
|
+
var m, y;
|
|
3969
3980
|
const x = {
|
|
3970
3981
|
...e.builderContextSignal.rootState,
|
|
3971
3982
|
...w
|
|
3972
3983
|
};
|
|
3973
|
-
e.builderContextSignal.rootSetState ? (
|
|
3984
|
+
e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
|
|
3974
3985
|
...T,
|
|
3975
3986
|
rootState: x
|
|
3976
3987
|
}));
|
|
3977
3988
|
}
|
|
3978
3989
|
function i(w) {
|
|
3979
|
-
var m,
|
|
3990
|
+
var m, y, T, E, A;
|
|
3980
3991
|
const x = {
|
|
3981
3992
|
...e.builderContextSignal.content,
|
|
3982
3993
|
...w,
|
|
@@ -3985,13 +3996,13 @@ function fi(e) {
|
|
|
3985
3996
|
...w == null ? void 0 : w.data
|
|
3986
3997
|
},
|
|
3987
3998
|
meta: {
|
|
3988
|
-
...(
|
|
3999
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
3989
4000
|
...w == null ? void 0 : w.meta,
|
|
3990
4001
|
breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
|
|
3991
4002
|
}
|
|
3992
4003
|
};
|
|
3993
|
-
e.setBuilderContextSignal((
|
|
3994
|
-
...
|
|
4004
|
+
e.setBuilderContextSignal((W) => ({
|
|
4005
|
+
...W,
|
|
3995
4006
|
content: x
|
|
3996
4007
|
}));
|
|
3997
4008
|
}
|
|
@@ -4011,8 +4022,8 @@ function fi(e) {
|
|
|
4011
4022
|
callbacks: {
|
|
4012
4023
|
configureSdk: (x) => {
|
|
4013
4024
|
var T;
|
|
4014
|
-
const { breakpoints: m, contentId:
|
|
4015
|
-
!
|
|
4025
|
+
const { breakpoints: m, contentId: y } = x;
|
|
4026
|
+
!y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
|
|
4016
4027
|
meta: {
|
|
4017
4028
|
breakpoints: m
|
|
4018
4029
|
}
|
|
@@ -4030,36 +4041,36 @@ function fi(e) {
|
|
|
4030
4041
|
}
|
|
4031
4042
|
})(w);
|
|
4032
4043
|
}
|
|
4033
|
-
const [d,
|
|
4044
|
+
const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
|
|
4034
4045
|
function f(w) {
|
|
4035
4046
|
var x, m;
|
|
4036
4047
|
if (e.builderContextSignal.content) {
|
|
4037
|
-
const
|
|
4048
|
+
const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4038
4049
|
pe({
|
|
4039
4050
|
apiHost: e.apiHost,
|
|
4040
4051
|
type: "click",
|
|
4041
4052
|
canTrack: M(e.canTrack),
|
|
4042
4053
|
contentId: T,
|
|
4043
4054
|
apiKey: e.apiKey,
|
|
4044
|
-
variationId:
|
|
4045
|
-
...
|
|
4046
|
-
unique: !
|
|
4055
|
+
variationId: y !== T ? y : void 0,
|
|
4056
|
+
...ri(w),
|
|
4057
|
+
unique: !c
|
|
4047
4058
|
});
|
|
4048
4059
|
}
|
|
4049
|
-
|
|
4060
|
+
c || v(!0);
|
|
4050
4061
|
}
|
|
4051
|
-
function
|
|
4052
|
-
var x, m,
|
|
4053
|
-
const w = (
|
|
4062
|
+
function b() {
|
|
4063
|
+
var x, m, y;
|
|
4064
|
+
const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
|
|
4054
4065
|
Object.entries(w).forEach(([T, E]) => {
|
|
4055
|
-
if (!E || h[T] || d[T] &&
|
|
4066
|
+
if (!E || h[T] || d[T] && !N())
|
|
4056
4067
|
return;
|
|
4057
4068
|
h[T] = !0;
|
|
4058
4069
|
const A = E.replace(
|
|
4059
4070
|
/{{([^}]+)}}/g,
|
|
4060
|
-
(
|
|
4071
|
+
(W, D) => String(
|
|
4061
4072
|
_({
|
|
4062
|
-
code:
|
|
4073
|
+
code: D,
|
|
4063
4074
|
context: e.context || {},
|
|
4064
4075
|
localState: void 0,
|
|
4065
4076
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4067,19 +4078,19 @@ function fi(e) {
|
|
|
4067
4078
|
})
|
|
4068
4079
|
)
|
|
4069
4080
|
);
|
|
4070
|
-
Ve(A), fetch(A).then((
|
|
4081
|
+
Ve(A), fetch(A).then((W) => W.json()).then((W) => {
|
|
4071
4082
|
n({
|
|
4072
|
-
[T]:
|
|
4083
|
+
[T]: W
|
|
4073
4084
|
}), d[T] = !0;
|
|
4074
|
-
}).catch((
|
|
4075
|
-
console.error("error fetching dynamic data", E,
|
|
4085
|
+
}).catch((W) => {
|
|
4086
|
+
console.error("error fetching dynamic data", E, W);
|
|
4076
4087
|
}).finally(() => {
|
|
4077
4088
|
h[T] = !1;
|
|
4078
4089
|
});
|
|
4079
4090
|
});
|
|
4080
4091
|
}
|
|
4081
4092
|
function S() {
|
|
4082
|
-
|
|
4093
|
+
N() && window.dispatchEvent(
|
|
4083
4094
|
new CustomEvent(
|
|
4084
4095
|
"builder:component:stateChange",
|
|
4085
4096
|
{
|
|
@@ -4093,11 +4104,11 @@ function fi(e) {
|
|
|
4093
4104
|
)
|
|
4094
4105
|
);
|
|
4095
4106
|
}
|
|
4096
|
-
const
|
|
4097
|
-
return
|
|
4098
|
-
var w, x, m,
|
|
4107
|
+
const p = L(!1);
|
|
4108
|
+
return p.current || (b(), S(), p.current = !0), P(() => {
|
|
4109
|
+
var w, x, m, y, T;
|
|
4099
4110
|
if (U()) {
|
|
4100
|
-
|
|
4111
|
+
N() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
|
|
4101
4112
|
...e.locale ? {
|
|
4102
4113
|
locale: e.locale
|
|
4103
4114
|
} : {},
|
|
@@ -4111,11 +4122,11 @@ function fi(e) {
|
|
|
4111
4122
|
apiKey: e.apiKey
|
|
4112
4123
|
}), Object.values(
|
|
4113
4124
|
e.builderContextSignal.componentInfos
|
|
4114
|
-
).forEach((
|
|
4115
|
-
var F,
|
|
4116
|
-
if (!((F =
|
|
4117
|
-
const
|
|
4118
|
-
(
|
|
4125
|
+
).forEach((D) => {
|
|
4126
|
+
var F, J;
|
|
4127
|
+
if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
|
|
4128
|
+
const te = Ye(D);
|
|
4129
|
+
(J = window.parent) == null || J.postMessage(te, "*");
|
|
4119
4130
|
}
|
|
4120
4131
|
}), window.addEventListener(
|
|
4121
4132
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4124,23 +4135,23 @@ function fi(e) {
|
|
|
4124
4135
|
const E = e.builderContextSignal.content && M(e.canTrack), A = Xe({
|
|
4125
4136
|
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4126
4137
|
canTrack: !0
|
|
4127
|
-
}),
|
|
4128
|
-
if (E &&
|
|
4129
|
-
const
|
|
4138
|
+
}), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
4139
|
+
if (E && W === A) {
|
|
4140
|
+
const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
|
|
4130
4141
|
pe({
|
|
4131
4142
|
apiHost: e.apiHost,
|
|
4132
4143
|
type: "impression",
|
|
4133
4144
|
canTrack: !0,
|
|
4134
|
-
contentId:
|
|
4145
|
+
contentId: D,
|
|
4135
4146
|
apiKey: F,
|
|
4136
|
-
variationId: A !==
|
|
4147
|
+
variationId: A !== D ? A : void 0
|
|
4137
4148
|
});
|
|
4138
4149
|
}
|
|
4139
|
-
if (
|
|
4140
|
-
const
|
|
4150
|
+
if (X() && !N()) {
|
|
4151
|
+
const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
|
|
4141
4152
|
`builder.overrides.${F}`
|
|
4142
|
-
),
|
|
4143
|
-
(F === "BUILDER_STUDIO" || F === e.model &&
|
|
4153
|
+
), te = D.get("apiKey") || D.get("builder.space");
|
|
4154
|
+
(F === "BUILDER_STUDIO" || F === e.model && te === e.apiKey && (!e.content || J === e.content.id)) && Pe({
|
|
4144
4155
|
model: e.model,
|
|
4145
4156
|
apiKey: e.apiKey,
|
|
4146
4157
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -4176,7 +4187,7 @@ function fi(e) {
|
|
|
4176
4187
|
onClick: (w) => f(w),
|
|
4177
4188
|
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4178
4189
|
"builder-model": e.model,
|
|
4179
|
-
className:
|
|
4190
|
+
className: fi(
|
|
4180
4191
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
4181
4192
|
),
|
|
4182
4193
|
style: {
|
|
@@ -4188,21 +4199,21 @@ function fi(e) {
|
|
|
4188
4199
|
}
|
|
4189
4200
|
) : null });
|
|
4190
4201
|
}
|
|
4191
|
-
function
|
|
4202
|
+
function gi(e) {
|
|
4192
4203
|
const [t, n] = I(
|
|
4193
4204
|
() => `
|
|
4194
|
-
${
|
|
4205
|
+
${ui({
|
|
4195
4206
|
cssCode: e.cssCode,
|
|
4196
4207
|
contentId: e.contentId
|
|
4197
4208
|
})}
|
|
4198
|
-
${
|
|
4209
|
+
${ci({
|
|
4199
4210
|
customFonts: e.customFonts
|
|
4200
4211
|
})}
|
|
4201
|
-
${
|
|
4212
|
+
${mi(e.isNestedRender)}
|
|
4202
4213
|
`.trim()
|
|
4203
4214
|
);
|
|
4204
4215
|
return /* @__PURE__ */ s(
|
|
4205
|
-
|
|
4216
|
+
K,
|
|
4206
4217
|
{
|
|
4207
4218
|
id: "builderio-content",
|
|
4208
4219
|
styles: t,
|
|
@@ -4210,7 +4221,7 @@ ${di(e.isNestedRender)}
|
|
|
4210
4221
|
}
|
|
4211
4222
|
);
|
|
4212
4223
|
}
|
|
4213
|
-
const
|
|
4224
|
+
const bi = ({
|
|
4214
4225
|
content: e,
|
|
4215
4226
|
data: t,
|
|
4216
4227
|
locale: n
|
|
@@ -4227,7 +4238,7 @@ const gi = ({
|
|
|
4227
4238
|
locale: n
|
|
4228
4239
|
} : {}
|
|
4229
4240
|
};
|
|
4230
|
-
},
|
|
4241
|
+
}, pi = ({
|
|
4231
4242
|
content: e,
|
|
4232
4243
|
data: t
|
|
4233
4244
|
}) => e ? {
|
|
@@ -4239,11 +4250,11 @@ const gi = ({
|
|
|
4239
4250
|
meta: e == null ? void 0 : e.meta
|
|
4240
4251
|
} : void 0;
|
|
4241
4252
|
function Re(e) {
|
|
4242
|
-
var
|
|
4253
|
+
var u, h, g, c, v, f, b, S, p;
|
|
4243
4254
|
const [t, n] = I(
|
|
4244
4255
|
() => {
|
|
4245
4256
|
var k, C;
|
|
4246
|
-
return
|
|
4257
|
+
return ii({
|
|
4247
4258
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4248
4259
|
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4249
4260
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4272,12 +4283,12 @@ function Re(e) {
|
|
|
4272
4283
|
{}
|
|
4273
4284
|
)
|
|
4274
4285
|
), [o, l] = I(() => ({
|
|
4275
|
-
content:
|
|
4286
|
+
content: pi({
|
|
4276
4287
|
content: e.content,
|
|
4277
4288
|
data: e.data
|
|
4278
4289
|
}),
|
|
4279
4290
|
localState: void 0,
|
|
4280
|
-
rootState:
|
|
4291
|
+
rootState: bi({
|
|
4281
4292
|
content: e.content,
|
|
4282
4293
|
data: e.data,
|
|
4283
4294
|
locale: e.locale
|
|
@@ -4304,10 +4315,10 @@ function Re(e) {
|
|
|
4304
4315
|
model: e.model
|
|
4305
4316
|
})), d = L(!1);
|
|
4306
4317
|
if (!d.current) {
|
|
4307
|
-
e.apiKey ||
|
|
4318
|
+
e.apiKey || z.error(
|
|
4308
4319
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4309
4320
|
);
|
|
4310
|
-
const k = (h = (
|
|
4321
|
+
const k = (h = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
|
|
4311
4322
|
k && _({
|
|
4312
4323
|
code: k,
|
|
4313
4324
|
context: e.context || {},
|
|
@@ -4326,7 +4337,7 @@ function Re(e) {
|
|
|
4326
4337
|
registeredComponents: a
|
|
4327
4338
|
},
|
|
4328
4339
|
children: /* @__PURE__ */ B(
|
|
4329
|
-
|
|
4340
|
+
hi,
|
|
4330
4341
|
{
|
|
4331
4342
|
apiHost: e.apiHost,
|
|
4332
4343
|
nonce: e.nonce,
|
|
@@ -4347,7 +4358,7 @@ function Re(e) {
|
|
|
4347
4358
|
setBuilderContextSignal: l,
|
|
4348
4359
|
children: [
|
|
4349
4360
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4350
|
-
|
|
4361
|
+
Y,
|
|
4351
4362
|
{
|
|
4352
4363
|
id: "builderio-variant-visibility",
|
|
4353
4364
|
scriptStr: t,
|
|
@@ -4355,19 +4366,19 @@ function Re(e) {
|
|
|
4355
4366
|
}
|
|
4356
4367
|
) : null,
|
|
4357
4368
|
/* @__PURE__ */ s(
|
|
4358
|
-
|
|
4369
|
+
gi,
|
|
4359
4370
|
{
|
|
4360
4371
|
nonce: e.nonce || "",
|
|
4361
4372
|
isNestedRender: e.isNestedRender,
|
|
4362
|
-
contentId: (
|
|
4363
|
-
cssCode: (v = (
|
|
4364
|
-
customFonts: (
|
|
4373
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4374
|
+
cssCode: (v = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
|
|
4375
|
+
customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
4365
4376
|
}
|
|
4366
4377
|
),
|
|
4367
4378
|
/* @__PURE__ */ s(
|
|
4368
|
-
|
|
4379
|
+
$,
|
|
4369
4380
|
{
|
|
4370
|
-
blocks: (
|
|
4381
|
+
blocks: (p = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
4371
4382
|
context: o,
|
|
4372
4383
|
registeredComponents: a,
|
|
4373
4384
|
linkComponent: e.linkComponent
|
|
@@ -4379,7 +4390,7 @@ function Re(e) {
|
|
|
4379
4390
|
}
|
|
4380
4391
|
);
|
|
4381
4392
|
}
|
|
4382
|
-
function
|
|
4393
|
+
function yi(e) {
|
|
4383
4394
|
var o;
|
|
4384
4395
|
const [t, n] = I(
|
|
4385
4396
|
() => Xn({
|
|
@@ -4389,8 +4400,8 @@ function pi(e) {
|
|
|
4389
4400
|
);
|
|
4390
4401
|
function i() {
|
|
4391
4402
|
var l;
|
|
4392
|
-
return
|
|
4393
|
-
|
|
4403
|
+
return ni(
|
|
4404
|
+
G(e.content).map((d) => ({
|
|
4394
4405
|
id: d.testVariationId,
|
|
4395
4406
|
testRatio: d.testRatio
|
|
4396
4407
|
})),
|
|
@@ -4398,7 +4409,7 @@ function pi(e) {
|
|
|
4398
4409
|
);
|
|
4399
4410
|
}
|
|
4400
4411
|
function a() {
|
|
4401
|
-
return
|
|
4412
|
+
return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4402
4413
|
}
|
|
4403
4414
|
function r() {
|
|
4404
4415
|
var l;
|
|
@@ -4413,16 +4424,16 @@ function pi(e) {
|
|
|
4413
4424
|
return P(() => {
|
|
4414
4425
|
}, []), /* @__PURE__ */ B(R, { children: [
|
|
4415
4426
|
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4416
|
-
|
|
4427
|
+
Y,
|
|
4417
4428
|
{
|
|
4418
4429
|
id: "builderio-init-variants-fns",
|
|
4419
|
-
scriptStr:
|
|
4430
|
+
scriptStr: ti(),
|
|
4420
4431
|
nonce: e.nonce || ""
|
|
4421
4432
|
}
|
|
4422
4433
|
) : null,
|
|
4423
4434
|
t ? /* @__PURE__ */ B(R, { children: [
|
|
4424
4435
|
/* @__PURE__ */ s(
|
|
4425
|
-
|
|
4436
|
+
K,
|
|
4426
4437
|
{
|
|
4427
4438
|
id: "builderio-variants",
|
|
4428
4439
|
styles: a(),
|
|
@@ -4430,14 +4441,14 @@ function pi(e) {
|
|
|
4430
4441
|
}
|
|
4431
4442
|
),
|
|
4432
4443
|
/* @__PURE__ */ s(
|
|
4433
|
-
|
|
4444
|
+
Y,
|
|
4434
4445
|
{
|
|
4435
4446
|
id: "builderio-variants-visibility",
|
|
4436
4447
|
scriptStr: i(),
|
|
4437
4448
|
nonce: e.nonce || ""
|
|
4438
4449
|
}
|
|
4439
4450
|
),
|
|
4440
|
-
(o =
|
|
4451
|
+
(o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4441
4452
|
Re,
|
|
4442
4453
|
{
|
|
4443
4454
|
apiHost: e.apiHost,
|
|
@@ -4493,7 +4504,7 @@ function pi(e) {
|
|
|
4493
4504
|
)
|
|
4494
4505
|
] });
|
|
4495
4506
|
}
|
|
4496
|
-
const
|
|
4507
|
+
const vi = async ({
|
|
4497
4508
|
builderContextValue: e,
|
|
4498
4509
|
symbol: t
|
|
4499
4510
|
}) => {
|
|
@@ -4509,11 +4520,11 @@ const yi = async ({
|
|
|
4509
4520
|
}
|
|
4510
4521
|
}
|
|
4511
4522
|
}).catch((n) => {
|
|
4512
|
-
|
|
4523
|
+
z.error("Could not fetch symbol content: ", n);
|
|
4513
4524
|
});
|
|
4514
4525
|
};
|
|
4515
|
-
function
|
|
4516
|
-
var l, d,
|
|
4526
|
+
function xi(e) {
|
|
4527
|
+
var l, d, u, h, g;
|
|
4517
4528
|
function t() {
|
|
4518
4529
|
return "div";
|
|
4519
4530
|
}
|
|
@@ -4521,31 +4532,31 @@ function vi(e) {
|
|
|
4521
4532
|
return "div";
|
|
4522
4533
|
}
|
|
4523
4534
|
function i() {
|
|
4524
|
-
var
|
|
4535
|
+
var c, v;
|
|
4525
4536
|
return [
|
|
4526
4537
|
e.attributes[j()],
|
|
4527
4538
|
"builder-symbol",
|
|
4528
|
-
(
|
|
4539
|
+
(c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
|
|
4529
4540
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4530
4541
|
].filter(Boolean).join(" ");
|
|
4531
4542
|
}
|
|
4532
4543
|
const [a, r] = I(() => {
|
|
4533
|
-
var
|
|
4534
|
-
return (
|
|
4544
|
+
var c;
|
|
4545
|
+
return (c = e.symbol) == null ? void 0 : c.content;
|
|
4535
4546
|
});
|
|
4536
4547
|
function o() {
|
|
4537
|
-
a ||
|
|
4548
|
+
a || vi({
|
|
4538
4549
|
symbol: e.symbol,
|
|
4539
4550
|
builderContextValue: e.builderContext
|
|
4540
|
-
}).then((
|
|
4541
|
-
|
|
4551
|
+
}).then((c) => {
|
|
4552
|
+
c && r(c);
|
|
4542
4553
|
});
|
|
4543
4554
|
}
|
|
4544
4555
|
return P(() => {
|
|
4545
4556
|
}, []), P(() => {
|
|
4546
4557
|
o();
|
|
4547
4558
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4548
|
-
|
|
4559
|
+
yi,
|
|
4549
4560
|
{
|
|
4550
4561
|
nonce: e.builderContext.nonce,
|
|
4551
4562
|
isNestedRender: !0,
|
|
@@ -4559,10 +4570,10 @@ function vi(e) {
|
|
|
4559
4570
|
data: {
|
|
4560
4571
|
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4561
4572
|
...e.builderContext.localState,
|
|
4562
|
-
...(
|
|
4573
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4563
4574
|
},
|
|
4564
4575
|
canTrack: e.builderContext.canTrack,
|
|
4565
|
-
model: (
|
|
4576
|
+
model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
|
|
4566
4577
|
content: a,
|
|
4567
4578
|
linkComponent: e.builderLinkComponent,
|
|
4568
4579
|
blocksWrapper: t(),
|
|
@@ -4571,16 +4582,16 @@ function vi(e) {
|
|
|
4571
4582
|
) });
|
|
4572
4583
|
}
|
|
4573
4584
|
export {
|
|
4574
|
-
|
|
4585
|
+
$ as Blocks,
|
|
4575
4586
|
me as BuilderContext,
|
|
4576
4587
|
ut as Button,
|
|
4577
4588
|
Yt as Columns,
|
|
4578
|
-
|
|
4589
|
+
yi as Content,
|
|
4579
4590
|
Xt as Fragment,
|
|
4580
4591
|
tn as Image,
|
|
4581
4592
|
nn as Section,
|
|
4582
|
-
|
|
4593
|
+
xi as Symbol,
|
|
4583
4594
|
In as Text,
|
|
4584
4595
|
Jn as Video,
|
|
4585
|
-
|
|
4596
|
+
Ri as setClientUserAttributes
|
|
4586
4597
|
};
|