@builder.io/sdk-react 4.0.2 → 4.0.4-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +944 -0
- package/lib/browser/blocks-exports.cjs +32 -29
- package/lib/browser/blocks-exports.mjs +484 -465
- 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-890ac50f.js} +243 -241
- package/lib/edge/{blocks-d690074d.cjs → blocks-efa04c3b.cjs} +10 -10
- 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-19b22772.js → columns-70b88fce.js} +3 -3
- package/lib/edge/{columns-87b82f2f.cjs → columns-eb192117.cjs} +1 -1
- package/lib/edge/{content-variants-0f0a71cb.js → content-variants-6a73b6e9.js} +125 -118
- package/lib/edge/{content-variants-80fc28d8.cjs → content-variants-893bba4d.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-0b5bd2e3.cjs → form-89839d91.cjs} +1 -1
- package/lib/edge/{form-b8f74b68.js → form-e6ea2320.js} +3 -3
- 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/{image-38917f45.js → image-1729f079.js} +20 -19
- package/lib/edge/{image-590e36ae.cjs → image-a6fbd15b.cjs} +3 -3
- package/lib/edge/img-337990c2.cjs +1 -0
- package/lib/edge/{img-4becc0d4.js → img-3efcbcca.js} +4 -3
- 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-8b32ce9d.cjs → personalization-container-576b7363.cjs} +1 -1
- package/lib/edge/{personalization-container-b581d0f6.js → personalization-container-c8d741e6.js} +4 -4
- 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-05218273.js → slot-26162c51.js} +3 -3
- package/lib/edge/{slot-5dba6213.cjs → slot-ed4d2827.cjs} +1 -1
- 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-7273a1e3.cjs} +1 -1
- package/lib/edge/{tabs-a0b38dde.js → tabs-c576cd8f.js} +3 -3
- package/lib/node/blocks-exports.cjs +32 -29
- package/lib/node/blocks-exports.mjs +493 -474
- 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 +4 -4
- package/types/blocks/image/image.types.d.ts +1 -0
- package/types/blocks/img/img.d.ts +1 -0
- 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
- package/lib/edge/img-20126279.cjs +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as
|
|
2
|
+
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-e6ae7704.js";
|
|
3
|
+
import { setClientUserAttributes as Ei } from "./server-entry-e6ae7704.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
5
|
import * as at from "react";
|
|
6
|
-
import { createContext as
|
|
6
|
+
import { createContext as Ae, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ne } from "react";
|
|
7
7
|
const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
|
|
8
8
|
function ue(e) {
|
|
9
9
|
return /* @__PURE__ */ s(R, { children: rt(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 }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
switch (
|
|
11
|
+
const z = () => {
|
|
12
|
+
switch (L) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
15
15
|
case "rsc":
|
|
@@ -26,7 +26,7 @@ function lt(e) {
|
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +46,7 @@ function lt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const de =
|
|
49
|
+
const de = Ae({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,7 +61,7 @@ const de = Ne({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}), We =
|
|
64
|
+
}), We = Ae({ registeredComponents: {} }), De = (e, t, n) => {
|
|
65
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
67
|
}, st = ({
|
|
@@ -78,13 +78,13 @@ const de = Ne({
|
|
|
78
78
|
event: n
|
|
79
79
|
}), ct = () => ({
|
|
80
80
|
isEditing: A(),
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
81
|
+
isBrowser: U(),
|
|
82
|
+
isServer: !U(),
|
|
83
83
|
getUserAttributes: () => Ye()
|
|
84
84
|
}), ut = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
86
86
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
87
|
-
function
|
|
87
|
+
function $e({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function De({
|
|
|
94
94
|
if (t && a in t)
|
|
95
95
|
return t[a];
|
|
96
96
|
const o = i[a];
|
|
97
|
-
return typeof o == "object" && o !== null ?
|
|
97
|
+
return typeof o == "object" && o !== null ? $e({
|
|
98
98
|
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -122,7 +122,7 @@ const xe = ({
|
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: $e({
|
|
126
126
|
rootState: r,
|
|
127
127
|
localState: a,
|
|
128
128
|
rootSetState: o
|
|
@@ -132,7 +132,7 @@ const xe = ({
|
|
|
132
132
|
};
|
|
133
133
|
function dt() {
|
|
134
134
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
137
|
const mt = ({
|
|
138
138
|
shouldLogWarning: e
|
|
@@ -141,14 +141,14 @@ const mt = ({
|
|
|
141
141
|
if (!dt())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
}, ft = (e) => (
|
|
144
|
+
return t && n && !i ? (e && _.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
+
}, ft = (e) => (U() || mt({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
147
|
}), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
|
|
148
148
|
var t, n, i, a, o, r;
|
|
149
149
|
return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function q({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
@@ -161,7 +161,7 @@ function _({
|
|
|
161
161
|
return;
|
|
162
162
|
const l = bt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return De({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
@@ -178,8 +178,8 @@ function _({
|
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
180
|
return ft(d);
|
|
181
|
-
} catch (
|
|
182
|
-
|
|
181
|
+
} catch (u) {
|
|
182
|
+
_.error("Failed code evaluation: " + u.message, {
|
|
183
183
|
code: e
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
@@ -198,7 +198,7 @@ const yt = (e, t) => {
|
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
200
200
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) =>
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => q({
|
|
202
202
|
code: o,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
@@ -213,7 +213,7 @@ function vt(e, ...t) {
|
|
|
213
213
|
delete n[i];
|
|
214
214
|
return n;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Y(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
217
217
|
if (e == null || typeof e != "object") {
|
|
218
218
|
t(e, (o) => {
|
|
219
219
|
n !== null && i !== null && (n[i] = o);
|
|
@@ -223,11 +223,11 @@ function Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
223
223
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
224
224
|
t(o, (d) => {
|
|
225
225
|
e[r] = d;
|
|
226
|
-
}),
|
|
226
|
+
}), Y(o, t, e, r, a);
|
|
227
227
|
}) : Object.entries(e).forEach(([o, r]) => {
|
|
228
228
|
t(r, (d) => {
|
|
229
229
|
e[o] = d;
|
|
230
|
-
}),
|
|
230
|
+
}), Y(r, t, e, o, a);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
233
|
function Fe(e) {
|
|
@@ -237,7 +237,7 @@ function xt(e) {
|
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
|
-
return
|
|
240
|
+
return Y(e, (n) => {
|
|
241
241
|
if (Fe(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
@@ -245,7 +245,7 @@ function xt(e) {
|
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
247
|
function St(e, t) {
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Y(e, (n, i) => {
|
|
249
249
|
var a;
|
|
250
250
|
Fe(n) && i((a = n[t]) != null ? a : void 0);
|
|
251
251
|
}), e);
|
|
@@ -272,7 +272,7 @@ function ce(e) {
|
|
|
272
272
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
275
|
+
const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) => {
|
|
276
276
|
if (Ct) {
|
|
277
277
|
const t = me(e);
|
|
278
278
|
return {
|
|
@@ -309,7 +309,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), Tt = (e) =
|
|
|
309
309
|
return e;
|
|
310
310
|
const o = Tt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r], d =
|
|
312
|
+
const l = e.bindings[r], d = q({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
@@ -343,13 +343,13 @@ function Et(e, t, n = {}) {
|
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
|
-
const
|
|
347
|
-
!l && n.leading === !1 && (l =
|
|
348
|
-
const h = t - (
|
|
349
|
-
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l =
|
|
346
|
+
const u = Date.now();
|
|
347
|
+
!l && n.leading === !1 && (l = u);
|
|
348
|
+
const h = t - (u - l);
|
|
349
|
+
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function H(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const a = arguments[i];
|
|
@@ -393,8 +393,8 @@ function _e(e) {
|
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
@@ -411,23 +411,23 @@ function Vt(e) {
|
|
|
411
411
|
let i = !1, a = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
415
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
419
|
const r = Et(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
423
|
+
const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
424
|
+
return g.bottom > f && g.top < c - f;
|
|
425
425
|
}
|
|
426
426
|
const d = e.steps[0].styles;
|
|
427
|
-
function
|
|
428
|
-
|
|
427
|
+
function u() {
|
|
428
|
+
H(n.style, d);
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
u(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", r, {
|
|
433
433
|
capture: !0,
|
|
@@ -438,8 +438,8 @@ function Vt(e) {
|
|
|
438
438
|
const qe = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${ee(n)}: ${i};`;
|
|
441
|
-
}).filter(
|
|
442
|
-
`),
|
|
441
|
+
}).filter(Q), Bt = (e) => qe(e).join(`
|
|
442
|
+
`), M = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
@@ -451,21 +451,21 @@ const qe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function At({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Nt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) => Me(
|
|
462
|
+
}) => Me(At({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
467
|
function Me(e) {
|
|
468
|
-
switch (
|
|
468
|
+
switch (L) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
@@ -495,7 +495,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
495
495
|
return;
|
|
496
496
|
} else
|
|
497
497
|
return a;
|
|
498
|
-
},
|
|
498
|
+
}, Dt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -505,7 +505,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
} = e;
|
|
506
506
|
if (!(n != null && n.collection))
|
|
507
507
|
return;
|
|
508
|
-
const a =
|
|
508
|
+
const a = q({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
@@ -515,20 +515,20 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(a))
|
|
516
516
|
return;
|
|
517
517
|
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
-
return a.map((d,
|
|
518
|
+
return a.map((d, u) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
|
-
$index:
|
|
523
|
+
$index: u,
|
|
524
524
|
$item: d,
|
|
525
525
|
[r]: d,
|
|
526
|
-
[`$${r}Index`]:
|
|
526
|
+
[`$${r}Index`]: u
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, $t = (e, t) => {
|
|
532
532
|
var n;
|
|
533
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
534
|
builderLinkComponent: t
|
|
@@ -608,7 +608,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function K(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -621,64 +621,64 @@ function z(e) {
|
|
|
621
621
|
function Ut(e) {
|
|
622
622
|
function t() {
|
|
623
623
|
const i = e.block;
|
|
624
|
-
return
|
|
624
|
+
return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
627
|
var C, P, w, x, m;
|
|
628
628
|
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
|
|
629
629
|
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
-
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large,
|
|
631
|
-
if (!
|
|
630
|
+
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.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;
|
|
631
|
+
if (!c)
|
|
632
632
|
return "";
|
|
633
|
-
const v = d ?
|
|
634
|
-
className:
|
|
633
|
+
const v = d ? M({
|
|
634
|
+
className: c,
|
|
635
635
|
styles: d
|
|
636
|
-
}) : "", f =
|
|
637
|
-
className:
|
|
638
|
-
styles:
|
|
636
|
+
}) : "", f = u ? M({
|
|
637
|
+
className: c,
|
|
638
|
+
styles: u,
|
|
639
639
|
mediaQuery: ie(
|
|
640
640
|
"medium",
|
|
641
641
|
r
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
644
|
-
className:
|
|
643
|
+
}) : "", b = h ? M({
|
|
644
|
+
className: c,
|
|
645
645
|
styles: h,
|
|
646
646
|
mediaQuery: ie(
|
|
647
647
|
"small",
|
|
648
648
|
r
|
|
649
649
|
)
|
|
650
|
-
}) : "", S =
|
|
651
|
-
className:
|
|
652
|
-
styles:
|
|
650
|
+
}) : "", S = g && l ? M({
|
|
651
|
+
className: c,
|
|
652
|
+
styles: g,
|
|
653
653
|
mediaQuery: ie(
|
|
654
654
|
"xsmall",
|
|
655
655
|
r
|
|
656
656
|
)
|
|
657
|
-
}) : "",
|
|
657
|
+
}) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
658
658
|
let k = "";
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
k =
|
|
662
|
-
className: `${
|
|
659
|
+
if (p) {
|
|
660
|
+
const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
k = M({
|
|
662
|
+
className: `${c}:hover`,
|
|
663
663
|
styles: {
|
|
664
|
-
...
|
|
665
|
-
transition: `all ${
|
|
666
|
-
|
|
664
|
+
...y,
|
|
665
|
+
transition: `all ${p.duration}s ${ee(
|
|
666
|
+
p.easing
|
|
667
667
|
)}`,
|
|
668
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
669
669
|
}
|
|
670
670
|
}) || "";
|
|
671
671
|
}
|
|
672
672
|
return [
|
|
673
673
|
v,
|
|
674
674
|
f,
|
|
675
|
-
|
|
675
|
+
b,
|
|
676
676
|
S,
|
|
677
677
|
k
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
|
|
681
|
+
K,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -689,7 +689,7 @@ function Ut(e) {
|
|
|
689
689
|
function _t(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) =>
|
|
692
|
+
const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -707,7 +707,7 @@ function Ke(e) {
|
|
|
707
707
|
const o = n[a];
|
|
708
708
|
let r = qt(a);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
|
-
switch (
|
|
710
|
+
switch (L) {
|
|
711
711
|
case "vue":
|
|
712
712
|
r = r.replace("v-on:", "");
|
|
713
713
|
break;
|
|
@@ -736,11 +736,11 @@ function fe({
|
|
|
736
736
|
...jt(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: Nt({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
745
|
return Ht({
|
|
746
746
|
properties: n,
|
|
@@ -874,9 +874,9 @@ function ke(e) {
|
|
|
874
874
|
) });
|
|
875
875
|
}
|
|
876
876
|
function te(e) {
|
|
877
|
-
var h,
|
|
877
|
+
var h, g, c, v;
|
|
878
878
|
function t() {
|
|
879
|
-
return
|
|
879
|
+
return Dt({
|
|
880
880
|
block: e.block,
|
|
881
881
|
context: e.context
|
|
882
882
|
});
|
|
@@ -886,10 +886,10 @@ function te(e) {
|
|
|
886
886
|
update: !1
|
|
887
887
|
}));
|
|
888
888
|
function a() {
|
|
889
|
-
var
|
|
889
|
+
var b;
|
|
890
890
|
if (n.value && !n.update && !Z())
|
|
891
891
|
return n.value;
|
|
892
|
-
const f = (
|
|
892
|
+
const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
|
|
893
893
|
block: e.block,
|
|
894
894
|
localState: e.context.localState,
|
|
895
895
|
rootState: e.context.rootState,
|
|
@@ -906,30 +906,30 @@ function te(e) {
|
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
function r() {
|
|
909
|
-
var
|
|
910
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var b;
|
|
910
|
+
return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
911
911
|
}
|
|
912
912
|
function l() {
|
|
913
|
-
var S,
|
|
913
|
+
var S, p;
|
|
914
914
|
if ((S = e.block.repeat) != null && S.collection)
|
|
915
|
-
return !!((
|
|
915
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
916
916
|
const f = "hide" in a() ? a().hide : !1;
|
|
917
917
|
return ("show" in a() ? a().show : !0) && !f;
|
|
918
918
|
}
|
|
919
919
|
function d() {
|
|
920
|
-
var
|
|
921
|
-
return !((
|
|
920
|
+
var b, S;
|
|
921
|
+
return !((b = o == null ? void 0 : o()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
var f,
|
|
923
|
+
function u() {
|
|
924
|
+
var f, b, S, p;
|
|
925
925
|
return {
|
|
926
926
|
blockChildren: (f = a().children) != null ? f : [],
|
|
927
|
-
componentRef: (
|
|
927
|
+
componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
|
|
928
928
|
componentOptions: {
|
|
929
929
|
...pt(a(), e.context),
|
|
930
930
|
...Ot(o(), a()),
|
|
931
931
|
...Lt(o(), e.context),
|
|
932
|
-
|
|
932
|
+
...$t(o(), e.linkComponent),
|
|
933
933
|
...Ft(
|
|
934
934
|
o(),
|
|
935
935
|
e.registeredComponents,
|
|
@@ -941,13 +941,13 @@ function te(e) {
|
|
|
941
941
|
registeredComponents: e.registeredComponents,
|
|
942
942
|
builderBlock: a(),
|
|
943
943
|
includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
|
|
944
|
-
isInteractive: !((
|
|
944
|
+
isInteractive: !((p = o == null ? void 0 : o()) != null && p.isRSC && L === "rsc")
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
947
|
return V(() => {
|
|
948
|
-
const f = a().id,
|
|
949
|
-
|
|
950
|
-
|
|
948
|
+
const f = a().id, b = a().animations;
|
|
949
|
+
b && f && Rt(
|
|
950
|
+
b.map((S) => ({
|
|
951
951
|
...S,
|
|
952
952
|
elementId: f
|
|
953
953
|
}))
|
|
@@ -956,7 +956,7 @@ function te(e) {
|
|
|
956
956
|
n.update = !0;
|
|
957
957
|
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
958
958
|
/* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
|
|
959
|
-
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f,
|
|
959
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
|
|
960
960
|
ke,
|
|
961
961
|
{
|
|
962
962
|
repeatContext: f.context,
|
|
@@ -964,21 +964,21 @@ function te(e) {
|
|
|
964
964
|
registeredComponents: e.registeredComponents,
|
|
965
965
|
linkComponent: e.linkComponent
|
|
966
966
|
},
|
|
967
|
-
|
|
967
|
+
b
|
|
968
968
|
)) }) : /* @__PURE__ */ s(
|
|
969
969
|
Se,
|
|
970
970
|
{
|
|
971
|
-
componentRef:
|
|
972
|
-
componentOptions:
|
|
973
|
-
blockChildren:
|
|
974
|
-
context:
|
|
975
|
-
registeredComponents:
|
|
976
|
-
linkComponent:
|
|
977
|
-
builderBlock:
|
|
978
|
-
includeBlockProps:
|
|
979
|
-
isInteractive:
|
|
971
|
+
componentRef: u().componentRef,
|
|
972
|
+
componentOptions: u().componentOptions,
|
|
973
|
+
blockChildren: u().blockChildren,
|
|
974
|
+
context: u().context,
|
|
975
|
+
registeredComponents: u().registeredComponents,
|
|
976
|
+
linkComponent: u().linkComponent,
|
|
977
|
+
builderBlock: u().builderBlock,
|
|
978
|
+
includeBlockProps: u().includeBlockProps,
|
|
979
|
+
isInteractive: u().isInteractive
|
|
980
980
|
}
|
|
981
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
|
|
982
982
|
ke,
|
|
983
983
|
{
|
|
984
984
|
repeatContext: f.context,
|
|
@@ -986,7 +986,7 @@ function te(e) {
|
|
|
986
986
|
registeredComponents: e.registeredComponents,
|
|
987
987
|
linkComponent: e.linkComponent
|
|
988
988
|
},
|
|
989
|
-
|
|
989
|
+
b
|
|
990
990
|
)) }) : /* @__PURE__ */ B(
|
|
991
991
|
zt,
|
|
992
992
|
{
|
|
@@ -997,18 +997,18 @@ function te(e) {
|
|
|
997
997
|
/* @__PURE__ */ s(
|
|
998
998
|
Se,
|
|
999
999
|
{
|
|
1000
|
-
componentRef:
|
|
1001
|
-
componentOptions:
|
|
1002
|
-
blockChildren:
|
|
1003
|
-
context:
|
|
1004
|
-
registeredComponents:
|
|
1005
|
-
linkComponent:
|
|
1006
|
-
builderBlock:
|
|
1007
|
-
includeBlockProps:
|
|
1008
|
-
isInteractive:
|
|
1000
|
+
componentRef: u().componentRef,
|
|
1001
|
+
componentOptions: u().componentOptions,
|
|
1002
|
+
blockChildren: u().blockChildren,
|
|
1003
|
+
context: u().context,
|
|
1004
|
+
registeredComponents: u().registeredComponents,
|
|
1005
|
+
linkComponent: u().linkComponent,
|
|
1006
|
+
builderBlock: u().builderBlock,
|
|
1007
|
+
includeBlockProps: u().includeBlockProps,
|
|
1008
|
+
isInteractive: u().isInteractive
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
(
|
|
1011
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
1012
1012
|
te,
|
|
1013
1013
|
{
|
|
1014
1014
|
block: f,
|
|
@@ -1025,6 +1025,7 @@ function te(e) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
function Qt(e) {
|
|
1027
1027
|
const t = O(null);
|
|
1028
|
+
I(() => !1);
|
|
1028
1029
|
function n() {
|
|
1029
1030
|
var r;
|
|
1030
1031
|
return [
|
|
@@ -1066,12 +1067,13 @@ function Qt(e) {
|
|
|
1066
1067
|
));
|
|
1067
1068
|
}
|
|
1068
1069
|
return V(() => {
|
|
1069
|
-
}, []),
|
|
1070
|
+
}, []), V(() => {
|
|
1071
|
+
}, [e.blocks]), /* @__PURE__ */ B(R, { children: [
|
|
1070
1072
|
/* @__PURE__ */ s(
|
|
1071
1073
|
e.BlocksWrapper,
|
|
1072
1074
|
{
|
|
1073
1075
|
ref: t,
|
|
1074
|
-
className: n() + " props-blocks-wrapper-
|
|
1076
|
+
className: n() + " props-blocks-wrapper-14802cff",
|
|
1075
1077
|
"builder-path": i(),
|
|
1076
1078
|
"builder-parent-id": e.parent,
|
|
1077
1079
|
style: e.styleProp,
|
|
@@ -1082,14 +1084,14 @@ function Qt(e) {
|
|
|
1082
1084
|
children: e.children
|
|
1083
1085
|
}
|
|
1084
1086
|
),
|
|
1085
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1087
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-14802cff {
|
|
1086
1088
|
display: flex;
|
|
1087
1089
|
flex-direction: column;
|
|
1088
1090
|
align-items: stretch;
|
|
1089
1091
|
}` })
|
|
1090
1092
|
] });
|
|
1091
1093
|
}
|
|
1092
|
-
function
|
|
1094
|
+
function $(e) {
|
|
1093
1095
|
var i, a, o;
|
|
1094
1096
|
const t = ve(de), n = ve(We);
|
|
1095
1097
|
return /* @__PURE__ */ s(
|
|
@@ -1117,7 +1119,7 @@ function D(e) {
|
|
|
1117
1119
|
}
|
|
1118
1120
|
const Yt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
1121
|
function Xt(e) {
|
|
1120
|
-
var
|
|
1122
|
+
var b, S;
|
|
1121
1123
|
function t() {
|
|
1122
1124
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1123
1125
|
}
|
|
@@ -1127,43 +1129,43 @@ function Xt(e) {
|
|
|
1127
1129
|
function i() {
|
|
1128
1130
|
return e.stackColumnsAt || "tablet";
|
|
1129
1131
|
}
|
|
1130
|
-
function a(
|
|
1131
|
-
return
|
|
1132
|
+
function a(p) {
|
|
1133
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
1132
1134
|
}
|
|
1133
|
-
function o(
|
|
1135
|
+
function o(p) {
|
|
1134
1136
|
var k;
|
|
1135
|
-
return ((k = n()[
|
|
1137
|
+
return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1136
1138
|
}
|
|
1137
|
-
function r(
|
|
1138
|
-
const k = o(
|
|
1139
|
+
function r(p) {
|
|
1140
|
+
const k = o(p), C = t() * (n().length - 1) * (k / 100);
|
|
1139
1141
|
return `calc(${k}% - ${C}px)`;
|
|
1140
1142
|
}
|
|
1141
1143
|
function l({
|
|
1142
|
-
stackedStyle:
|
|
1144
|
+
stackedStyle: p,
|
|
1143
1145
|
desktopStyle: k
|
|
1144
1146
|
}) {
|
|
1145
|
-
return i() === "tablet" ?
|
|
1147
|
+
return i() === "tablet" ? p : k;
|
|
1146
1148
|
}
|
|
1147
1149
|
function d({
|
|
1148
|
-
stackedStyle:
|
|
1150
|
+
stackedStyle: p,
|
|
1149
1151
|
desktopStyle: k
|
|
1150
1152
|
}) {
|
|
1151
|
-
return i() === "never" ? k :
|
|
1153
|
+
return i() === "never" ? k : p;
|
|
1152
1154
|
}
|
|
1153
|
-
function
|
|
1155
|
+
function u() {
|
|
1154
1156
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1155
1157
|
}
|
|
1156
1158
|
function h() {
|
|
1157
1159
|
return {
|
|
1158
|
-
"--flex-dir":
|
|
1160
|
+
"--flex-dir": u(),
|
|
1159
1161
|
"--flex-dir-tablet": l({
|
|
1160
|
-
stackedStyle:
|
|
1162
|
+
stackedStyle: u(),
|
|
1161
1163
|
desktopStyle: "row"
|
|
1162
1164
|
})
|
|
1163
1165
|
};
|
|
1164
1166
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const k =
|
|
1167
|
+
function g(p) {
|
|
1168
|
+
const k = p === 0 ? 0 : t(), C = r(p), P = `${k}px`, w = "100%", x = 0;
|
|
1167
1169
|
return {
|
|
1168
1170
|
...{
|
|
1169
1171
|
display: "flex",
|
|
@@ -1190,79 +1192,79 @@ function Xt(e) {
|
|
|
1190
1192
|
})
|
|
1191
1193
|
};
|
|
1192
1194
|
}
|
|
1193
|
-
function
|
|
1195
|
+
function c(p) {
|
|
1194
1196
|
var C, P;
|
|
1195
1197
|
return ze(
|
|
1196
1198
|
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
-
)[
|
|
1199
|
+
)[p].max;
|
|
1198
1200
|
}
|
|
1199
1201
|
function v() {
|
|
1200
|
-
const
|
|
1202
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1201
1203
|
return `
|
|
1202
|
-
@media (max-width: ${
|
|
1204
|
+
@media (max-width: ${c("medium")}px) {
|
|
1203
1205
|
.${e.builderBlock.id}-breakpoints {
|
|
1204
1206
|
flex-direction: var(--flex-dir-tablet);
|
|
1205
1207
|
align-items: stretch;
|
|
1206
1208
|
}
|
|
1207
1209
|
|
|
1208
|
-
${
|
|
1210
|
+
${p} {
|
|
1209
1211
|
width: var(--column-width-tablet) !important;
|
|
1210
1212
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1211
1213
|
}
|
|
1212
1214
|
}
|
|
1213
1215
|
|
|
1214
|
-
@media (max-width: ${
|
|
1216
|
+
@media (max-width: ${c("small")}px) {
|
|
1215
1217
|
.${e.builderBlock.id}-breakpoints {
|
|
1216
1218
|
flex-direction: var(--flex-dir);
|
|
1217
1219
|
align-items: stretch;
|
|
1218
1220
|
}
|
|
1219
1221
|
|
|
1220
|
-
${
|
|
1222
|
+
${p} {
|
|
1221
1223
|
width: var(--column-width-mobile) !important;
|
|
1222
1224
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1223
1225
|
}
|
|
1224
1226
|
},
|
|
1225
1227
|
`;
|
|
1226
1228
|
}
|
|
1227
|
-
function f(
|
|
1229
|
+
function f(p, k) {
|
|
1228
1230
|
return {
|
|
1229
|
-
...
|
|
1230
|
-
href:
|
|
1231
|
+
...p.link ? {
|
|
1232
|
+
href: p.link
|
|
1231
1233
|
} : {},
|
|
1232
|
-
[
|
|
1233
|
-
style: Me(
|
|
1234
|
+
[z()]: "builder-column",
|
|
1235
|
+
style: Me(g(k))
|
|
1234
1236
|
};
|
|
1235
1237
|
}
|
|
1236
1238
|
return /* @__PURE__ */ B(R, { children: [
|
|
1237
1239
|
/* @__PURE__ */ B(
|
|
1238
1240
|
"div",
|
|
1239
1241
|
{
|
|
1240
|
-
className: Yt((
|
|
1242
|
+
className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1241
1243
|
style: h(),
|
|
1242
1244
|
children: [
|
|
1243
1245
|
/* @__PURE__ */ s(
|
|
1244
|
-
|
|
1246
|
+
K,
|
|
1245
1247
|
{
|
|
1246
1248
|
id: "builderio-columns",
|
|
1247
1249
|
styles: v(),
|
|
1248
1250
|
nonce: e.builderContext.nonce
|
|
1249
1251
|
}
|
|
1250
1252
|
),
|
|
1251
|
-
(S = e.columns) == null ? void 0 : S.map((
|
|
1253
|
+
(S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
|
|
1252
1254
|
ue,
|
|
1253
1255
|
{
|
|
1254
|
-
TagName: a(
|
|
1256
|
+
TagName: a(p),
|
|
1255
1257
|
actionAttributes: {},
|
|
1256
|
-
attributes: f(
|
|
1258
|
+
attributes: f(p, k),
|
|
1257
1259
|
children: /* @__PURE__ */ s(
|
|
1258
|
-
|
|
1260
|
+
$,
|
|
1259
1261
|
{
|
|
1260
1262
|
path: `columns.${k}.blocks`,
|
|
1261
1263
|
parent: e.builderBlock.id,
|
|
1262
1264
|
context: e.builderContext,
|
|
1263
1265
|
registeredComponents: e.builderComponents,
|
|
1264
1266
|
linkComponent: e.builderLinkComponent,
|
|
1265
|
-
blocks:
|
|
1267
|
+
blocks: p.blocks,
|
|
1266
1268
|
styleProp: {
|
|
1267
1269
|
flexGrow: "1"
|
|
1268
1270
|
}
|
|
@@ -1314,21 +1316,21 @@ function ae(e) {
|
|
|
1314
1316
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1315
1317
|
}
|
|
1316
1318
|
function nn(e) {
|
|
1317
|
-
var a, o, r, l, d,
|
|
1319
|
+
var a, o, r, l, d, u;
|
|
1318
1320
|
function t() {
|
|
1319
|
-
var
|
|
1320
|
-
const
|
|
1321
|
-
if (!
|
|
1321
|
+
var c;
|
|
1322
|
+
const g = e.image || e.src;
|
|
1323
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1322
1324
|
// images, otherwise you can supply this prop manually
|
|
1323
|
-
!(typeof
|
|
1325
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1324
1326
|
return e.srcset;
|
|
1325
1327
|
if (!e.noWebp) {
|
|
1326
|
-
if (e.srcset && ((
|
|
1328
|
+
if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
|
|
1327
1329
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1328
|
-
return console.debug("Removed given srcset"), ae(
|
|
1330
|
+
return console.debug("Removed given srcset"), ae(g);
|
|
1329
1331
|
} else if (e.image && !e.srcset)
|
|
1330
|
-
return ae(
|
|
1331
|
-
return ae(
|
|
1332
|
+
return ae(g);
|
|
1333
|
+
return ae(g);
|
|
1332
1334
|
}
|
|
1333
1335
|
}
|
|
1334
1336
|
function n() {
|
|
@@ -1355,13 +1357,14 @@ function nn(e) {
|
|
|
1355
1357
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1356
1358
|
fetchPriority: e.highPriority ? "high" : "auto",
|
|
1357
1359
|
alt: e.altText,
|
|
1360
|
+
title: e.title,
|
|
1358
1361
|
role: e.altText ? void 0 : "presentation",
|
|
1359
1362
|
style: {
|
|
1360
1363
|
objectPosition: e.backgroundPosition || "center",
|
|
1361
1364
|
objectFit: e.backgroundSize || "cover",
|
|
1362
1365
|
...i()
|
|
1363
1366
|
},
|
|
1364
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1367
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-1aa8aba3",
|
|
1365
1368
|
src: e.image,
|
|
1366
1369
|
srcSet: t(),
|
|
1367
1370
|
sizes: e.sizes
|
|
@@ -1371,23 +1374,23 @@ function nn(e) {
|
|
|
1371
1374
|
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1372
1375
|
"div",
|
|
1373
1376
|
{
|
|
1374
|
-
className: "builder-image-sizer div-
|
|
1377
|
+
className: "builder-image-sizer div-1aa8aba3",
|
|
1375
1378
|
style: {
|
|
1376
1379
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1377
1380
|
}
|
|
1378
1381
|
}
|
|
1379
1382
|
) : null,
|
|
1380
1383
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1381
|
-
!e.fitContent && ((
|
|
1384
|
+
!e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-1aa8aba3-2", children: e.children }) : null
|
|
1382
1385
|
] }),
|
|
1383
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1386
|
+
/* @__PURE__ */ s("style", { children: `.img-1aa8aba3 {
|
|
1384
1387
|
opacity: 1;
|
|
1385
1388
|
transition: opacity 0.2s ease-in-out;
|
|
1386
|
-
}.div-
|
|
1389
|
+
}.div-1aa8aba3 {
|
|
1387
1390
|
width: 100%;
|
|
1388
1391
|
pointer-events: none;
|
|
1389
1392
|
font-size: 0;
|
|
1390
|
-
}.div-
|
|
1393
|
+
}.div-1aa8aba3-2 {
|
|
1391
1394
|
display: flex;
|
|
1392
1395
|
flex-direction: column;
|
|
1393
1396
|
align-items: stretch;
|
|
@@ -1546,7 +1549,7 @@ const oe = {
|
|
|
1546
1549
|
}
|
|
1547
1550
|
}, Te = (e) => e.toString();
|
|
1548
1551
|
function rn(e) {
|
|
1549
|
-
var
|
|
1552
|
+
var g;
|
|
1550
1553
|
const [t, n] = I(() => []);
|
|
1551
1554
|
function i() {
|
|
1552
1555
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1573,57 +1576,57 @@ function rn(e) {
|
|
|
1573
1576
|
cursor: "pointer"
|
|
1574
1577
|
};
|
|
1575
1578
|
return Object.fromEntries(
|
|
1576
|
-
Object.entries(v).filter(([f,
|
|
1579
|
+
Object.entries(v).filter(([f, b]) => b !== void 0)
|
|
1577
1580
|
);
|
|
1578
1581
|
}
|
|
1579
|
-
function r(
|
|
1580
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1582
|
+
function r(c) {
|
|
1583
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
|
|
1581
1584
|
}
|
|
1582
|
-
function l(
|
|
1583
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1585
|
+
function l(c) {
|
|
1586
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
|
|
1584
1587
|
}
|
|
1585
1588
|
function d() {
|
|
1586
|
-
let
|
|
1589
|
+
let c = null;
|
|
1587
1590
|
if (e.grid && t.length && document) {
|
|
1588
1591
|
const f = t[0];
|
|
1589
1592
|
let S = document.querySelector(
|
|
1590
1593
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1591
1594
|
);
|
|
1592
|
-
if (
|
|
1593
|
-
let
|
|
1595
|
+
if (c = f, S) {
|
|
1596
|
+
let p = S.getBoundingClientRect();
|
|
1594
1597
|
for (; S = S && S.nextElementSibling; )
|
|
1595
1598
|
if (S) {
|
|
1596
1599
|
if (S.classList.contains("builder-accordion-detail"))
|
|
1597
1600
|
continue;
|
|
1598
1601
|
const k = S.getBoundingClientRect();
|
|
1599
|
-
if (k.left >
|
|
1602
|
+
if (k.left > p.left) {
|
|
1600
1603
|
const C = parseInt(
|
|
1601
1604
|
S.getAttribute("data-index") || "",
|
|
1602
1605
|
10
|
|
1603
1606
|
);
|
|
1604
|
-
isNaN(C) || (
|
|
1607
|
+
isNaN(C) || (p = k, c = C);
|
|
1605
1608
|
} else
|
|
1606
1609
|
break;
|
|
1607
1610
|
}
|
|
1608
1611
|
}
|
|
1609
1612
|
}
|
|
1610
|
-
return typeof
|
|
1613
|
+
return typeof c == "number" && (c = c + 1), c;
|
|
1611
1614
|
}
|
|
1612
|
-
function
|
|
1613
|
-
const
|
|
1615
|
+
function u() {
|
|
1616
|
+
const c = {
|
|
1614
1617
|
order: typeof d() == "number" ? d() : void 0,
|
|
1615
1618
|
...e.grid && {
|
|
1616
1619
|
width: "100%"
|
|
1617
1620
|
}
|
|
1618
1621
|
};
|
|
1619
1622
|
return Object.fromEntries(
|
|
1620
|
-
Object.entries(
|
|
1623
|
+
Object.entries(c).filter(([v, f]) => f !== void 0)
|
|
1621
1624
|
);
|
|
1622
1625
|
}
|
|
1623
|
-
function h(
|
|
1624
|
-
t.includes(
|
|
1626
|
+
function h(c) {
|
|
1627
|
+
t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
|
|
1625
1628
|
}
|
|
1626
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1629
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(at.Fragment, { children: [
|
|
1627
1630
|
/* @__PURE__ */ s(
|
|
1628
1631
|
"div",
|
|
1629
1632
|
{
|
|
@@ -1638,9 +1641,9 @@ function rn(e) {
|
|
|
1638
1641
|
"data-index": v,
|
|
1639
1642
|
onClick: (f) => h(v),
|
|
1640
1643
|
children: /* @__PURE__ */ s(
|
|
1641
|
-
|
|
1644
|
+
$,
|
|
1642
1645
|
{
|
|
1643
|
-
blocks:
|
|
1646
|
+
blocks: c.title,
|
|
1644
1647
|
path: `items.${v}.title`,
|
|
1645
1648
|
parent: e.builderBlock.id,
|
|
1646
1649
|
context: e.builderContext,
|
|
@@ -1654,11 +1657,11 @@ function rn(e) {
|
|
|
1654
1657
|
"div",
|
|
1655
1658
|
{
|
|
1656
1659
|
className: l(v),
|
|
1657
|
-
style:
|
|
1660
|
+
style: u(),
|
|
1658
1661
|
children: /* @__PURE__ */ s(
|
|
1659
|
-
|
|
1662
|
+
$,
|
|
1660
1663
|
{
|
|
1661
|
-
blocks:
|
|
1664
|
+
blocks: c.detail,
|
|
1662
1665
|
path: `items.${v}.detail`,
|
|
1663
1666
|
parent: e.builderBlock.id,
|
|
1664
1667
|
context: e.builderContext,
|
|
@@ -1940,15 +1943,15 @@ const ln = {
|
|
|
1940
1943
|
onChange: (e) => {
|
|
1941
1944
|
e.delete("srcset"), e.delete("noWebp");
|
|
1942
1945
|
function n(r, l = 6e4) {
|
|
1943
|
-
return new Promise((d,
|
|
1946
|
+
return new Promise((d, u) => {
|
|
1944
1947
|
const h = document.createElement("img");
|
|
1945
|
-
let
|
|
1948
|
+
let g = !1;
|
|
1946
1949
|
h.onload = () => {
|
|
1947
|
-
|
|
1948
|
-
}, h.addEventListener("error", (
|
|
1949
|
-
console.warn("Image load failed",
|
|
1950
|
+
g = !0, d(h);
|
|
1951
|
+
}, h.addEventListener("error", (c) => {
|
|
1952
|
+
console.warn("Image load failed", c.error), u(c.error);
|
|
1950
1953
|
}), h.src = r, setTimeout(() => {
|
|
1951
|
-
|
|
1954
|
+
g || u(new Error("Image load timed out"));
|
|
1952
1955
|
}, l);
|
|
1953
1956
|
});
|
|
1954
1957
|
}
|
|
@@ -1986,6 +1989,10 @@ const ln = {
|
|
|
1986
1989
|
name: "altText",
|
|
1987
1990
|
type: "string",
|
|
1988
1991
|
helperText: "Text to display when the user has images off"
|
|
1992
|
+
}, {
|
|
1993
|
+
name: "title",
|
|
1994
|
+
type: "string",
|
|
1995
|
+
helperText: "Text to display when hovering over the asset"
|
|
1989
1996
|
}, {
|
|
1990
1997
|
name: "height",
|
|
1991
1998
|
type: "number",
|
|
@@ -2063,7 +2070,7 @@ const ln = {
|
|
|
2063
2070
|
}]
|
|
2064
2071
|
}]
|
|
2065
2072
|
};
|
|
2066
|
-
function
|
|
2073
|
+
function X(e) {
|
|
2067
2074
|
return /* @__PURE__ */ s(
|
|
2068
2075
|
"script",
|
|
2069
2076
|
{
|
|
@@ -2074,50 +2081,50 @@ function Y(e) {
|
|
|
2074
2081
|
);
|
|
2075
2082
|
}
|
|
2076
2083
|
function fn(e, t, n, i) {
|
|
2077
|
-
function a(
|
|
2078
|
-
return typeof
|
|
2084
|
+
function a(u) {
|
|
2085
|
+
return typeof u == "string";
|
|
2079
2086
|
}
|
|
2080
|
-
function o(
|
|
2081
|
-
return typeof
|
|
2087
|
+
function o(u) {
|
|
2088
|
+
return typeof u == "number";
|
|
2082
2089
|
}
|
|
2083
|
-
function r(
|
|
2090
|
+
function r(u, h) {
|
|
2084
2091
|
return (() => {
|
|
2085
|
-
const
|
|
2092
|
+
const c = h.property, v = h.operator;
|
|
2086
2093
|
let f = h.value;
|
|
2087
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(
|
|
2094
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
|
|
2088
2095
|
return !0;
|
|
2089
2096
|
if (Array.isArray(f))
|
|
2090
|
-
return v === "isNot" ? f.every((S) => r(
|
|
2091
|
-
property:
|
|
2097
|
+
return v === "isNot" ? f.every((S) => r(u, {
|
|
2098
|
+
property: c,
|
|
2092
2099
|
operator: v,
|
|
2093
2100
|
value: S
|
|
2094
|
-
})) : !!f.find((S) => r(
|
|
2095
|
-
property:
|
|
2101
|
+
})) : !!f.find((S) => r(u, {
|
|
2102
|
+
property: c,
|
|
2096
2103
|
operator: v,
|
|
2097
2104
|
value: S
|
|
2098
2105
|
}));
|
|
2099
|
-
const
|
|
2100
|
-
if (Array.isArray(
|
|
2101
|
-
return
|
|
2106
|
+
const b = u[c];
|
|
2107
|
+
if (Array.isArray(b))
|
|
2108
|
+
return b.includes(f);
|
|
2102
2109
|
switch (v) {
|
|
2103
2110
|
case "is":
|
|
2104
|
-
return
|
|
2111
|
+
return b === f;
|
|
2105
2112
|
case "isNot":
|
|
2106
|
-
return
|
|
2113
|
+
return b !== f;
|
|
2107
2114
|
case "contains":
|
|
2108
|
-
return (a(
|
|
2115
|
+
return (a(b) || Array.isArray(b)) && b.includes(String(f));
|
|
2109
2116
|
case "startsWith":
|
|
2110
|
-
return a(
|
|
2117
|
+
return a(b) && b.startsWith(String(f));
|
|
2111
2118
|
case "endsWith":
|
|
2112
|
-
return a(
|
|
2119
|
+
return a(b) && b.endsWith(String(f));
|
|
2113
2120
|
case "greaterThan":
|
|
2114
|
-
return o(
|
|
2121
|
+
return o(b) && o(f) && b > f;
|
|
2115
2122
|
case "lessThan":
|
|
2116
|
-
return o(
|
|
2123
|
+
return o(b) && o(f) && b < f;
|
|
2117
2124
|
case "greaterThanOrEqualTo":
|
|
2118
|
-
return o(
|
|
2125
|
+
return o(b) && o(f) && b >= f;
|
|
2119
2126
|
case "lessThanOrEqualTo":
|
|
2120
|
-
return o(
|
|
2127
|
+
return o(b) && o(f) && b <= f;
|
|
2121
2128
|
default:
|
|
2122
2129
|
return !1;
|
|
2123
2130
|
}
|
|
@@ -2128,7 +2135,7 @@ function fn(e, t, n, i) {
|
|
|
2128
2135
|
startDate: n,
|
|
2129
2136
|
endDate: i
|
|
2130
2137
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
|
-
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((
|
|
2138
|
+
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) => r(e, u));
|
|
2132
2139
|
}
|
|
2133
2140
|
const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
2141
|
if (!navigator.cookieEnabled) {
|
|
@@ -2263,7 +2270,7 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2263
2270
|
});
|
|
2264
2271
|
}`;
|
|
2265
2272
|
function bn(e, t) {
|
|
2266
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2273
|
+
return !(!(e && e.length > 0) || !t || U());
|
|
2267
2274
|
}
|
|
2268
2275
|
function pn({
|
|
2269
2276
|
variants: e,
|
|
@@ -2282,7 +2289,7 @@ function pn({
|
|
|
2282
2289
|
blocks: e[t].blocks,
|
|
2283
2290
|
path: `component.options.variants.${t}.blocks`
|
|
2284
2291
|
} : o;
|
|
2285
|
-
if (
|
|
2292
|
+
if (U()) {
|
|
2286
2293
|
const l = i == null ? void 0 : i[0];
|
|
2287
2294
|
if (l)
|
|
2288
2295
|
return {
|
|
@@ -2300,33 +2307,33 @@ const yn = (e, t, n) => `
|
|
|
2300
2307
|
})();
|
|
2301
2308
|
`;
|
|
2302
2309
|
function vn(e) {
|
|
2303
|
-
var
|
|
2310
|
+
var b, S, p, k, C, P, w;
|
|
2304
2311
|
const t = O(null), [n, i] = I(
|
|
2305
2312
|
() => be.getUserAttributes()
|
|
2306
2313
|
), [a, o] = I(
|
|
2307
2314
|
() => {
|
|
2308
|
-
var x, m,
|
|
2315
|
+
var x, m, y;
|
|
2309
2316
|
return yn(
|
|
2310
2317
|
e.variants,
|
|
2311
2318
|
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2312
|
-
(
|
|
2319
|
+
(y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
|
|
2313
2320
|
);
|
|
2314
2321
|
}
|
|
2315
|
-
), [r, l] = I(() => []), [d,
|
|
2322
|
+
), [r, l] = I(() => []), [d, u] = I(
|
|
2316
2323
|
() => {
|
|
2317
2324
|
var x;
|
|
2318
2325
|
return bn(
|
|
2319
2326
|
e.variants,
|
|
2320
|
-
|
|
2327
|
+
j((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2321
2328
|
);
|
|
2322
2329
|
}
|
|
2323
|
-
), [h,
|
|
2324
|
-
function
|
|
2330
|
+
), [h, g] = I(() => !1);
|
|
2331
|
+
function c() {
|
|
2325
2332
|
return (e.variants || []).filter((x) => {
|
|
2326
|
-
var m,
|
|
2333
|
+
var m, y, T, E;
|
|
2327
2334
|
return fn(
|
|
2328
2335
|
{
|
|
2329
|
-
...(
|
|
2336
|
+
...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
|
|
2330
2337
|
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
2331
2338
|
} : {},
|
|
2332
2339
|
...n
|
|
@@ -2343,32 +2350,32 @@ function vn(e) {
|
|
|
2343
2350
|
variants: e.variants,
|
|
2344
2351
|
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2345
2352
|
isHydrated: h,
|
|
2346
|
-
filteredVariants:
|
|
2353
|
+
filteredVariants: c(),
|
|
2347
2354
|
previewingIndex: e.previewingIndex
|
|
2348
2355
|
});
|
|
2349
2356
|
}
|
|
2350
2357
|
function f() {
|
|
2351
2358
|
return (e.variants || []).map(
|
|
2352
2359
|
(x, m) => {
|
|
2353
|
-
var
|
|
2354
|
-
return `[data-variant-id="${(
|
|
2360
|
+
var y;
|
|
2361
|
+
return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
|
|
2355
2362
|
}
|
|
2356
2363
|
).join("");
|
|
2357
2364
|
}
|
|
2358
2365
|
return V(() => {
|
|
2359
2366
|
var m;
|
|
2360
|
-
|
|
2367
|
+
g(!0);
|
|
2361
2368
|
const x = be.subscribeOnUserAttributesChange(
|
|
2362
|
-
(
|
|
2363
|
-
i(
|
|
2369
|
+
(y) => {
|
|
2370
|
+
i(y);
|
|
2364
2371
|
}
|
|
2365
2372
|
);
|
|
2366
2373
|
if (!(A() || Z())) {
|
|
2367
|
-
const
|
|
2374
|
+
const y = c()[0];
|
|
2368
2375
|
t.current && (t.current.dispatchEvent(
|
|
2369
2376
|
new CustomEvent("builder.variantLoaded", {
|
|
2370
2377
|
detail: {
|
|
2371
|
-
variant:
|
|
2378
|
+
variant: y || "default",
|
|
2372
2379
|
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2373
2380
|
},
|
|
2374
2381
|
bubbles: !0
|
|
@@ -2379,7 +2386,7 @@ function vn(e) {
|
|
|
2379
2386
|
N.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
2387
|
new CustomEvent("builder.variantDisplayed", {
|
|
2381
2388
|
detail: {
|
|
2382
|
-
variant:
|
|
2389
|
+
variant: y || "default",
|
|
2383
2390
|
content: (W = e.builderContext) == null ? void 0 : W.content
|
|
2384
2391
|
},
|
|
2385
2392
|
bubbles: !0
|
|
@@ -2396,17 +2403,17 @@ function vn(e) {
|
|
|
2396
2403
|
{
|
|
2397
2404
|
ref: t,
|
|
2398
2405
|
...e.attributes,
|
|
2399
|
-
className: `builder-personalization-container ${((
|
|
2406
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2400
2407
|
children: [
|
|
2401
2408
|
d ? /* @__PURE__ */ B(R, { children: [
|
|
2402
2409
|
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2403
|
-
var
|
|
2410
|
+
var y, T;
|
|
2404
2411
|
return /* @__PURE__ */ s(
|
|
2405
2412
|
"template",
|
|
2406
2413
|
{
|
|
2407
|
-
"data-variant-id": `${(
|
|
2414
|
+
"data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
|
|
2408
2415
|
children: /* @__PURE__ */ s(
|
|
2409
|
-
|
|
2416
|
+
$,
|
|
2410
2417
|
{
|
|
2411
2418
|
blocks: x.blocks,
|
|
2412
2419
|
parent: (T = e.builderBlock) == null ? void 0 : T.id,
|
|
@@ -2418,15 +2425,15 @@ function vn(e) {
|
|
|
2418
2425
|
);
|
|
2419
2426
|
}),
|
|
2420
2427
|
/* @__PURE__ */ s(
|
|
2421
|
-
|
|
2428
|
+
K,
|
|
2422
2429
|
{
|
|
2423
|
-
nonce: ((
|
|
2430
|
+
nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
|
|
2424
2431
|
styles: f(),
|
|
2425
2432
|
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2426
2433
|
}
|
|
2427
2434
|
),
|
|
2428
2435
|
/* @__PURE__ */ s(
|
|
2429
|
-
|
|
2436
|
+
X,
|
|
2430
2437
|
{
|
|
2431
2438
|
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2432
2439
|
scriptStr: a,
|
|
@@ -2435,7 +2442,7 @@ function vn(e) {
|
|
|
2435
2442
|
)
|
|
2436
2443
|
] }) : null,
|
|
2437
2444
|
/* @__PURE__ */ s(
|
|
2438
|
-
|
|
2445
|
+
$,
|
|
2439
2446
|
{
|
|
2440
2447
|
blocks: v().blocks,
|
|
2441
2448
|
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
@@ -2515,7 +2522,7 @@ function kn(e) {
|
|
|
2515
2522
|
"builder-slot": e.name
|
|
2516
2523
|
},
|
|
2517
2524
|
children: /* @__PURE__ */ s(
|
|
2518
|
-
|
|
2525
|
+
$,
|
|
2519
2526
|
{
|
|
2520
2527
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2521
2528
|
path: `symbol.data.${e.name}`,
|
|
@@ -2739,7 +2746,7 @@ function wn(e) {
|
|
|
2739
2746
|
},
|
|
2740
2747
|
onClick: (d) => a(l),
|
|
2741
2748
|
children: /* @__PURE__ */ s(
|
|
2742
|
-
|
|
2749
|
+
$,
|
|
2743
2750
|
{
|
|
2744
2751
|
parent: e.builderBlock.id,
|
|
2745
2752
|
path: `tabs.${l}.label`,
|
|
@@ -2755,7 +2762,7 @@ function wn(e) {
|
|
|
2755
2762
|
}
|
|
2756
2763
|
),
|
|
2757
2764
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2758
|
-
|
|
2765
|
+
$,
|
|
2759
2766
|
{
|
|
2760
2767
|
parent: e.builderBlock.id,
|
|
2761
2768
|
path: `tabs.${t}.content`,
|
|
@@ -2828,34 +2835,42 @@ const Rn = {
|
|
|
2828
2835
|
};
|
|
2829
2836
|
function Pn(e) {
|
|
2830
2837
|
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
|
|
2831
|
-
|
|
2832
|
-
var
|
|
2833
|
-
if (!((
|
|
2838
|
+
function r() {
|
|
2839
|
+
var d;
|
|
2840
|
+
if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
|
|
2834
2841
|
return;
|
|
2835
|
-
const
|
|
2836
|
-
for (let
|
|
2837
|
-
const
|
|
2838
|
-
if (
|
|
2839
|
-
if (n.includes(
|
|
2842
|
+
const l = t.current.getElementsByTagName("script");
|
|
2843
|
+
for (let u = 0; u < l.length; u++) {
|
|
2844
|
+
const h = l[u];
|
|
2845
|
+
if (h.src) {
|
|
2846
|
+
if (n.includes(h.src))
|
|
2840
2847
|
continue;
|
|
2841
|
-
n.push(
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2844
|
-
} else if (!
|
|
2848
|
+
n.push(h.src);
|
|
2849
|
+
const g = document.createElement("script");
|
|
2850
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2851
|
+
} else if (!h.type || [
|
|
2845
2852
|
"text/javascript",
|
|
2846
2853
|
"application/javascript",
|
|
2847
2854
|
"application/ecmascript"
|
|
2848
|
-
].includes(
|
|
2849
|
-
if (a.includes(
|
|
2855
|
+
].includes(h.type)) {
|
|
2856
|
+
if (a.includes(h.innerText))
|
|
2850
2857
|
continue;
|
|
2851
2858
|
try {
|
|
2852
|
-
a.push(
|
|
2853
|
-
} catch (
|
|
2854
|
-
|
|
2859
|
+
a.push(h.innerText), new Function(h.innerText)();
|
|
2860
|
+
} catch (g) {
|
|
2861
|
+
_.warn(
|
|
2862
|
+
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2863
|
+
g
|
|
2864
|
+
);
|
|
2855
2865
|
}
|
|
2856
2866
|
}
|
|
2857
2867
|
}
|
|
2858
|
-
}
|
|
2868
|
+
}
|
|
2869
|
+
return V(() => {
|
|
2870
|
+
r();
|
|
2871
|
+
}, []), V(() => {
|
|
2872
|
+
A() && r();
|
|
2873
|
+
}, [e.code]), /* @__PURE__ */ s(
|
|
2859
2874
|
"div",
|
|
2860
2875
|
{
|
|
2861
2876
|
ref: t,
|
|
@@ -2879,24 +2894,24 @@ const Vn = {
|
|
|
2879
2894
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2895
|
hideFromUI: !0
|
|
2881
2896
|
}]
|
|
2882
|
-
}, Bn = ["text/javascript", "application/javascript", "application/ecmascript"],
|
|
2883
|
-
function
|
|
2897
|
+
}, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
|
|
2898
|
+
function Nn(e) {
|
|
2884
2899
|
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
|
|
2885
2900
|
function d() {
|
|
2886
2901
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2887
2902
|
return;
|
|
2888
|
-
const
|
|
2889
|
-
for (let h = 0; h <
|
|
2890
|
-
const
|
|
2891
|
-
if (
|
|
2892
|
-
n.push(
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
} else if (
|
|
2903
|
+
const u = t.current.getElementsByTagName("script");
|
|
2904
|
+
for (let h = 0; h < u.length; h++) {
|
|
2905
|
+
const g = u[h];
|
|
2906
|
+
if (g.src && !n.includes(g.src)) {
|
|
2907
|
+
n.push(g.src);
|
|
2908
|
+
const c = document.createElement("script");
|
|
2909
|
+
c.async = !0, c.src = g.src, document.head.appendChild(c);
|
|
2910
|
+
} else if (An(g) && !a.includes(g.innerText))
|
|
2896
2911
|
try {
|
|
2897
|
-
a.push(
|
|
2898
|
-
} catch (
|
|
2899
|
-
|
|
2912
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2913
|
+
} catch (c) {
|
|
2914
|
+
_.warn("[BUILDER.IO] `Embed`: Error running script:", c);
|
|
2900
2915
|
}
|
|
2901
2916
|
}
|
|
2902
2917
|
}
|
|
@@ -3148,90 +3163,90 @@ const Wn = {
|
|
|
3148
3163
|
builderComponents: !0,
|
|
3149
3164
|
builderLinkComponent: !0
|
|
3150
3165
|
}
|
|
3151
|
-
},
|
|
3166
|
+
}, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
|
|
3152
3167
|
const e = process.env.NODE_ENV || "production";
|
|
3153
|
-
return
|
|
3168
|
+
return Dn.includes(e) ? e : "production";
|
|
3154
3169
|
};
|
|
3155
3170
|
function Fn(e) {
|
|
3156
3171
|
const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
|
|
3157
|
-
function d(
|
|
3172
|
+
function d(g) {
|
|
3158
3173
|
var v, f;
|
|
3159
|
-
const
|
|
3174
|
+
const c = {
|
|
3160
3175
|
...e.builderContext.rootState,
|
|
3161
|
-
...
|
|
3176
|
+
...g
|
|
3162
3177
|
};
|
|
3163
|
-
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v,
|
|
3178
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
|
|
3164
3179
|
}
|
|
3165
|
-
function
|
|
3180
|
+
function u() {
|
|
3166
3181
|
return A() && e.previewState || n;
|
|
3167
3182
|
}
|
|
3168
|
-
function h(
|
|
3183
|
+
function h(g) {
|
|
3169
3184
|
var v;
|
|
3170
|
-
const
|
|
3185
|
+
const c = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3171
3186
|
if (e.sendSubmissionsTo === "zapier")
|
|
3172
|
-
|
|
3173
|
-
else if (
|
|
3187
|
+
g.preventDefault();
|
|
3188
|
+
else if (c) {
|
|
3174
3189
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3175
|
-
|
|
3190
|
+
g.preventDefault();
|
|
3176
3191
|
return;
|
|
3177
3192
|
}
|
|
3178
|
-
|
|
3179
|
-
const f =
|
|
3193
|
+
g.preventDefault();
|
|
3194
|
+
const f = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3180
3195
|
let S;
|
|
3181
|
-
const
|
|
3182
|
-
let
|
|
3196
|
+
const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3197
|
+
let y;
|
|
3183
3198
|
const T = m.name;
|
|
3184
3199
|
if (m instanceof HTMLInputElement)
|
|
3185
3200
|
if (m.type === "radio") {
|
|
3186
3201
|
if (m.checked)
|
|
3187
|
-
return
|
|
3202
|
+
return y = m.name, {
|
|
3188
3203
|
key: T,
|
|
3189
|
-
value:
|
|
3204
|
+
value: y
|
|
3190
3205
|
};
|
|
3191
3206
|
} else if (m.type === "checkbox")
|
|
3192
|
-
|
|
3207
|
+
y = m.checked;
|
|
3193
3208
|
else if (m.type === "number" || m.type === "range") {
|
|
3194
3209
|
const E = m.valueAsNumber;
|
|
3195
|
-
isNaN(E) || (
|
|
3210
|
+
isNaN(E) || (y = E);
|
|
3196
3211
|
} else
|
|
3197
|
-
m.type === "file" ?
|
|
3212
|
+
m.type === "file" ? y = m.files : y = m.value;
|
|
3198
3213
|
else
|
|
3199
|
-
|
|
3214
|
+
y = m.value;
|
|
3200
3215
|
return {
|
|
3201
3216
|
key: T,
|
|
3202
|
-
value:
|
|
3217
|
+
value: y
|
|
3203
3218
|
};
|
|
3204
3219
|
});
|
|
3205
3220
|
let C = e.contentType;
|
|
3206
3221
|
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3207
3222
|
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
3223
|
}), C !== "application/json")
|
|
3209
|
-
S =
|
|
3224
|
+
S = p;
|
|
3210
3225
|
else {
|
|
3211
3226
|
const m = {};
|
|
3212
|
-
Array.from(k).forEach(({ value:
|
|
3213
|
-
Oe(m, T,
|
|
3227
|
+
Array.from(k).forEach(({ value: y, key: T }) => {
|
|
3228
|
+
Oe(m, T, y);
|
|
3214
3229
|
}), S = JSON.stringify(m);
|
|
3215
3230
|
}
|
|
3216
|
-
C && C !== "multipart/form-data" && (
|
|
3231
|
+
C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
|
|
3217
3232
|
const P = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3218
3233
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3219
3234
|
return;
|
|
3220
3235
|
i("sending");
|
|
3221
|
-
const w = `${
|
|
3236
|
+
const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3222
3237
|
e.sendSubmissionsToEmail || ""
|
|
3223
3238
|
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
-
Ve(x), fetch(x, { body: S, headers:
|
|
3239
|
+
Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
|
|
3225
3240
|
async (m) => {
|
|
3226
|
-
let
|
|
3241
|
+
let y;
|
|
3227
3242
|
const T = m.headers.get("content-type");
|
|
3228
|
-
if (T && T.indexOf("application/json") !== -1 ?
|
|
3229
|
-
let E =
|
|
3243
|
+
if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3244
|
+
let E = De(y, e.errorMessagePath);
|
|
3230
3245
|
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3231
3246
|
}
|
|
3232
|
-
if (o(
|
|
3247
|
+
if (o(y), i(m.ok ? "success" : "error"), m.ok) {
|
|
3233
3248
|
const E = new CustomEvent("submit:success", {
|
|
3234
|
-
detail: { res: m, body:
|
|
3249
|
+
detail: { res: m, body: y }
|
|
3235
3250
|
});
|
|
3236
3251
|
if (t.current) {
|
|
3237
3252
|
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
@@ -3249,10 +3264,10 @@ function Fn(e) {
|
|
|
3249
3264
|
}
|
|
3250
3265
|
},
|
|
3251
3266
|
(m) => {
|
|
3252
|
-
const
|
|
3267
|
+
const y = new CustomEvent("submit:error", {
|
|
3253
3268
|
detail: { error: m }
|
|
3254
3269
|
});
|
|
3255
|
-
t.current && (t.current.dispatchEvent(
|
|
3270
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (o(m), i("error"));
|
|
3256
3271
|
}
|
|
3257
3272
|
);
|
|
3258
3273
|
}
|
|
@@ -3267,29 +3282,29 @@ function Fn(e) {
|
|
|
3267
3282
|
action: !e.sendWithJs && e.action,
|
|
3268
3283
|
method: e.method,
|
|
3269
3284
|
name: e.name,
|
|
3270
|
-
onSubmit: (
|
|
3285
|
+
onSubmit: (g) => h(g),
|
|
3271
3286
|
...e.attributes,
|
|
3272
3287
|
children: [
|
|
3273
3288
|
e.children,
|
|
3274
|
-
|
|
3275
|
-
|
|
3289
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
3290
|
+
$,
|
|
3276
3291
|
{
|
|
3277
3292
|
path: "errorMessage",
|
|
3278
3293
|
blocks: e.errorMessage,
|
|
3279
3294
|
context: e.builderContext
|
|
3280
3295
|
}
|
|
3281
3296
|
) : null,
|
|
3282
|
-
|
|
3283
|
-
|
|
3297
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
3298
|
+
$,
|
|
3284
3299
|
{
|
|
3285
3300
|
path: "sendingMessage",
|
|
3286
3301
|
blocks: e.sendingMessage,
|
|
3287
3302
|
context: e.builderContext
|
|
3288
3303
|
}
|
|
3289
3304
|
) : null,
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3305
|
+
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3306
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
3307
|
+
$,
|
|
3293
3308
|
{
|
|
3294
3309
|
path: "successMessage",
|
|
3295
3310
|
blocks: e.successMessage,
|
|
@@ -3357,7 +3372,7 @@ const On = {
|
|
|
3357
3372
|
}
|
|
3358
3373
|
};
|
|
3359
3374
|
function Ln(e) {
|
|
3360
|
-
return /* @__PURE__ */
|
|
3375
|
+
return /* @__PURE__ */ Ne(
|
|
3361
3376
|
"input",
|
|
3362
3377
|
{
|
|
3363
3378
|
...e.attributes,
|
|
@@ -3416,7 +3431,7 @@ const Un = {
|
|
|
3416
3431
|
};
|
|
3417
3432
|
function _n(e) {
|
|
3418
3433
|
var t;
|
|
3419
|
-
return /* @__PURE__ */
|
|
3434
|
+
return /* @__PURE__ */ Ne(
|
|
3420
3435
|
"select",
|
|
3421
3436
|
{
|
|
3422
3437
|
...e.attributes,
|
|
@@ -3532,6 +3547,7 @@ function Kn(e) {
|
|
|
3532
3547
|
objectPosition: e.backgroundPosition || "center"
|
|
3533
3548
|
},
|
|
3534
3549
|
alt: e.altText,
|
|
3550
|
+
title: e.title,
|
|
3535
3551
|
src: e.imgSrc || e.image,
|
|
3536
3552
|
...e.attributes
|
|
3537
3553
|
},
|
|
@@ -3624,7 +3640,7 @@ const Jn = {
|
|
|
3624
3640
|
}
|
|
3625
3641
|
};
|
|
3626
3642
|
function Gn(e) {
|
|
3627
|
-
var r, l, d,
|
|
3643
|
+
var r, l, d, u, h, g, c;
|
|
3628
3644
|
const t = O(null);
|
|
3629
3645
|
function n() {
|
|
3630
3646
|
return {
|
|
@@ -3655,19 +3671,19 @@ function Gn(e) {
|
|
|
3655
3671
|
return V(() => {
|
|
3656
3672
|
if (e.lazyLoad) {
|
|
3657
3673
|
const v = new IntersectionObserver(function(f) {
|
|
3658
|
-
f.forEach(function(
|
|
3659
|
-
if (!
|
|
3674
|
+
f.forEach(function(b) {
|
|
3675
|
+
if (!b.isIntersecting)
|
|
3660
3676
|
return;
|
|
3661
|
-
const S =
|
|
3677
|
+
const S = b.target;
|
|
3662
3678
|
try {
|
|
3663
3679
|
Array.from(S.children).filter(
|
|
3664
|
-
(
|
|
3665
|
-
).forEach((
|
|
3666
|
-
const k =
|
|
3667
|
-
k && (
|
|
3680
|
+
(p) => p instanceof HTMLElement && p.tagName === "SOURCE"
|
|
3681
|
+
).forEach((p) => {
|
|
3682
|
+
const k = p.dataset.src;
|
|
3683
|
+
k && (p.src = k);
|
|
3668
3684
|
}), S.load(), v.unobserve(S);
|
|
3669
|
-
} catch (
|
|
3670
|
-
console.error("Error loading lazy video:",
|
|
3685
|
+
} catch (p) {
|
|
3686
|
+
console.error("Error loading lazy video:", p);
|
|
3671
3687
|
}
|
|
3672
3688
|
});
|
|
3673
3689
|
});
|
|
@@ -3727,7 +3743,7 @@ function Gn(e) {
|
|
|
3727
3743
|
}
|
|
3728
3744
|
}
|
|
3729
3745
|
) : null,
|
|
3730
|
-
(h = (
|
|
3746
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3731
3747
|
"div",
|
|
3732
3748
|
{
|
|
3733
3749
|
style: {
|
|
@@ -3738,7 +3754,7 @@ function Gn(e) {
|
|
|
3738
3754
|
children: e.children
|
|
3739
3755
|
}
|
|
3740
3756
|
) : null,
|
|
3741
|
-
(
|
|
3757
|
+
(c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3742
3758
|
"div",
|
|
3743
3759
|
{
|
|
3744
3760
|
style: {
|
|
@@ -3763,7 +3779,7 @@ const Qn = () => [{
|
|
|
3763
3779
|
component: Pn,
|
|
3764
3780
|
...Rn
|
|
3765
3781
|
}, {
|
|
3766
|
-
component:
|
|
3782
|
+
component: Nn,
|
|
3767
3783
|
...Vn
|
|
3768
3784
|
}, {
|
|
3769
3785
|
component: Fn,
|
|
@@ -3805,7 +3821,7 @@ const Qn = () => [{
|
|
|
3805
3821
|
component: kn,
|
|
3806
3822
|
...Sn
|
|
3807
3823
|
}, {
|
|
3808
|
-
component:
|
|
3824
|
+
component: Si,
|
|
3809
3825
|
...Cn
|
|
3810
3826
|
}, {
|
|
3811
3827
|
component: En,
|
|
@@ -3819,7 +3835,7 @@ const Qn = () => [{
|
|
|
3819
3835
|
}, {
|
|
3820
3836
|
component: rn,
|
|
3821
3837
|
...on
|
|
3822
|
-
}, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3838
|
+
}, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3823
3839
|
function getAndSetVariantId() {
|
|
3824
3840
|
function setCookie(name, value, days) {
|
|
3825
3841
|
let expires = '';
|
|
@@ -3861,7 +3877,10 @@ const Qn = () => [{
|
|
|
3861
3877
|
return contentId;
|
|
3862
3878
|
}
|
|
3863
3879
|
const winningVariantId = getAndSetVariantId();
|
|
3864
|
-
|
|
3880
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
3881
|
+
if (isAngularSDK) {
|
|
3882
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
3883
|
+
}
|
|
3865
3884
|
if (isHydrationTarget) {
|
|
3866
3885
|
styleEl.remove();
|
|
3867
3886
|
const thisScriptEl = document.currentScript;
|
|
@@ -3909,20 +3928,20 @@ const Qn = () => [{
|
|
|
3909
3928
|
thisScriptEl?.remove();
|
|
3910
3929
|
}
|
|
3911
3930
|
return;
|
|
3912
|
-
}`, Je = "builderIoAbTest", Ge = "builderIoRenderContent",
|
|
3931
|
+
}`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3913
3932
|
...t,
|
|
3914
3933
|
testVariationId: t.id,
|
|
3915
3934
|
id: e == null ? void 0 : e.id
|
|
3916
3935
|
})), Zn = ({
|
|
3917
3936
|
canTrack: e,
|
|
3918
3937
|
content: t
|
|
3919
|
-
}) => !(!(
|
|
3938
|
+
}) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = L === "angular", Qe = ei(L), ni = () => `
|
|
3920
3939
|
window.${Je} = ${Yn}
|
|
3921
3940
|
window.${Ge} = ${Xn}
|
|
3922
|
-
`,
|
|
3941
|
+
`, ii = (e, t) => `
|
|
3923
3942
|
window.${Je}(
|
|
3924
|
-
"${t}",${JSON.stringify(e)}, ${Qe}
|
|
3925
|
-
)`,
|
|
3943
|
+
"${t}",${JSON.stringify(e)}, ${Qe}, ${ti}
|
|
3944
|
+
)`, ai = ({
|
|
3926
3945
|
contentId: e,
|
|
3927
3946
|
variationId: t
|
|
3928
3947
|
}) => `window.${Ge}(
|
|
@@ -3931,7 +3950,7 @@ const Qn = () => [{
|
|
|
3931
3950
|
function Ie(e) {
|
|
3932
3951
|
return Math.round(e * 1e3) / 1e3;
|
|
3933
3952
|
}
|
|
3934
|
-
const
|
|
3953
|
+
const oi = (e, t, n = !0) => {
|
|
3935
3954
|
if (!(e instanceof HTMLElement))
|
|
3936
3955
|
return null;
|
|
3937
3956
|
let i = n ? e : e.parentElement;
|
|
@@ -3942,7 +3961,7 @@ const ai = (e, t, n = !0) => {
|
|
|
3942
3961
|
return i;
|
|
3943
3962
|
} while (i = i.parentElement);
|
|
3944
3963
|
return null;
|
|
3945
|
-
},
|
|
3964
|
+
}, ri = (e) => oi(e, (t) => {
|
|
3946
3965
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3947
3966
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3948
3967
|
}), Ee = ({
|
|
@@ -3954,8 +3973,8 @@ const ai = (e, t, n = !0) => {
|
|
|
3954
3973
|
x: o,
|
|
3955
3974
|
y: r
|
|
3956
3975
|
};
|
|
3957
|
-
},
|
|
3958
|
-
const t = e.target, n = t &&
|
|
3976
|
+
}, li = (e) => {
|
|
3977
|
+
const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3959
3978
|
return {
|
|
3960
3979
|
targetBuilderElement: i || void 0,
|
|
3961
3980
|
metadata: {
|
|
@@ -3970,7 +3989,7 @@ const ai = (e, t, n = !0) => {
|
|
|
3970
3989
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3971
3990
|
}
|
|
3972
3991
|
};
|
|
3973
|
-
},
|
|
3992
|
+
}, si = ["svelte", "qwik", "vue"], Re = () => si.includes(L) && (A() || Z()), ci = (e) => {
|
|
3974
3993
|
var o, r;
|
|
3975
3994
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
3976
3995
|
let a = "";
|
|
@@ -3985,26 +4004,26 @@ font-weight: 400;
|
|
|
3985
4004
|
for (const l in e.files) {
|
|
3986
4005
|
if (!(String(Number(l)) === l))
|
|
3987
4006
|
continue;
|
|
3988
|
-
const
|
|
3989
|
-
|
|
4007
|
+
const u = e.files[l];
|
|
4008
|
+
u && u !== i && (a += `
|
|
3990
4009
|
@font-face {
|
|
3991
4010
|
font-family: "${t}";
|
|
3992
|
-
src: url('${
|
|
4011
|
+
src: url('${u}') format('woff2');
|
|
3993
4012
|
font-display: fallback;
|
|
3994
4013
|
font-weight: ${l};
|
|
3995
4014
|
}
|
|
3996
4015
|
`.trim());
|
|
3997
4016
|
}
|
|
3998
4017
|
return a;
|
|
3999
|
-
},
|
|
4018
|
+
}, ui = ({
|
|
4000
4019
|
customFonts: e
|
|
4001
4020
|
}) => {
|
|
4002
4021
|
var t;
|
|
4003
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4004
|
-
},
|
|
4022
|
+
return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4023
|
+
}, di = ({
|
|
4005
4024
|
cssCode: e,
|
|
4006
4025
|
contentId: t
|
|
4007
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4026
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
|
|
4008
4027
|
.builder-button {
|
|
4009
4028
|
all: unset;
|
|
4010
4029
|
}
|
|
@@ -4021,24 +4040,24 @@ font-weight: ${l};
|
|
|
4021
4040
|
text-align: inherit;
|
|
4022
4041
|
font-family: inherit;
|
|
4023
4042
|
}
|
|
4024
|
-
`,
|
|
4025
|
-
function
|
|
4043
|
+
`, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
|
|
4044
|
+
function gi(e) {
|
|
4026
4045
|
var k, C, P;
|
|
4027
4046
|
const t = O(null);
|
|
4028
4047
|
I(() => !1);
|
|
4029
4048
|
function n(w) {
|
|
4030
|
-
var m,
|
|
4049
|
+
var m, y;
|
|
4031
4050
|
const x = {
|
|
4032
4051
|
...e.builderContextSignal.rootState,
|
|
4033
4052
|
...w
|
|
4034
4053
|
};
|
|
4035
|
-
e.builderContextSignal.rootSetState ? (
|
|
4054
|
+
e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
|
|
4036
4055
|
...T,
|
|
4037
4056
|
rootState: x
|
|
4038
4057
|
}));
|
|
4039
4058
|
}
|
|
4040
4059
|
function i(w) {
|
|
4041
|
-
var m,
|
|
4060
|
+
var m, y, T, E, N;
|
|
4042
4061
|
const x = {
|
|
4043
4062
|
...e.builderContextSignal.content,
|
|
4044
4063
|
...w,
|
|
@@ -4047,7 +4066,7 @@ function hi(e) {
|
|
|
4047
4066
|
...w == null ? void 0 : w.data
|
|
4048
4067
|
},
|
|
4049
4068
|
meta: {
|
|
4050
|
-
...(
|
|
4069
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
4051
4070
|
...w == null ? void 0 : w.meta,
|
|
4052
4071
|
breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((N = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : N.breakpoints)
|
|
4053
4072
|
}
|
|
@@ -4073,8 +4092,8 @@ function hi(e) {
|
|
|
4073
4092
|
callbacks: {
|
|
4074
4093
|
configureSdk: (x) => {
|
|
4075
4094
|
var T;
|
|
4076
|
-
const { breakpoints: m, contentId:
|
|
4077
|
-
!
|
|
4095
|
+
const { breakpoints: m, contentId: y } = x;
|
|
4096
|
+
!y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
|
|
4078
4097
|
meta: {
|
|
4079
4098
|
breakpoints: m
|
|
4080
4099
|
}
|
|
@@ -4092,36 +4111,36 @@ function hi(e) {
|
|
|
4092
4111
|
}
|
|
4093
4112
|
})(w);
|
|
4094
4113
|
}
|
|
4095
|
-
const [d,
|
|
4114
|
+
const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
|
|
4096
4115
|
function f(w) {
|
|
4097
4116
|
var x, m;
|
|
4098
4117
|
if (e.builderContextSignal.content) {
|
|
4099
|
-
const
|
|
4118
|
+
const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4100
4119
|
pe({
|
|
4101
4120
|
apiHost: e.apiHost,
|
|
4102
4121
|
type: "click",
|
|
4103
|
-
canTrack:
|
|
4122
|
+
canTrack: j(e.canTrack),
|
|
4104
4123
|
contentId: T,
|
|
4105
4124
|
apiKey: e.apiKey,
|
|
4106
|
-
variationId:
|
|
4107
|
-
...
|
|
4108
|
-
unique: !
|
|
4125
|
+
variationId: y !== T ? y : void 0,
|
|
4126
|
+
...li(w),
|
|
4127
|
+
unique: !c
|
|
4109
4128
|
});
|
|
4110
4129
|
}
|
|
4111
|
-
|
|
4130
|
+
c || v(!0);
|
|
4112
4131
|
}
|
|
4113
|
-
function
|
|
4114
|
-
var x, m,
|
|
4115
|
-
const w = (
|
|
4132
|
+
function b() {
|
|
4133
|
+
var x, m, y;
|
|
4134
|
+
const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
|
|
4116
4135
|
Object.entries(w).forEach(([T, E]) => {
|
|
4117
4136
|
if (!E || h[T] || d[T] && !A())
|
|
4118
4137
|
return;
|
|
4119
4138
|
h[T] = !0;
|
|
4120
4139
|
const N = E.replace(
|
|
4121
4140
|
/{{([^}]+)}}/g,
|
|
4122
|
-
(W,
|
|
4123
|
-
|
|
4124
|
-
code:
|
|
4141
|
+
(W, D) => String(
|
|
4142
|
+
q({
|
|
4143
|
+
code: D,
|
|
4125
4144
|
context: e.context || {},
|
|
4126
4145
|
localState: void 0,
|
|
4127
4146
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4155,10 +4174,10 @@ function hi(e) {
|
|
|
4155
4174
|
)
|
|
4156
4175
|
);
|
|
4157
4176
|
}
|
|
4158
|
-
const
|
|
4159
|
-
return
|
|
4160
|
-
var w, x, m,
|
|
4161
|
-
if (
|
|
4177
|
+
const p = O(!1);
|
|
4178
|
+
return p.current || (b(), S(), p.current = !0), V(() => {
|
|
4179
|
+
var w, x, m, y, T;
|
|
4180
|
+
if (U()) {
|
|
4162
4181
|
A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
|
|
4163
4182
|
...e.locale ? {
|
|
4164
4183
|
locale: e.locale
|
|
@@ -4173,36 +4192,36 @@ function hi(e) {
|
|
|
4173
4192
|
apiKey: e.apiKey
|
|
4174
4193
|
}), Object.values(
|
|
4175
4194
|
e.builderContextSignal.componentInfos
|
|
4176
|
-
).forEach((
|
|
4177
|
-
var F,
|
|
4178
|
-
if (!((F =
|
|
4179
|
-
const ne = et(
|
|
4180
|
-
(
|
|
4195
|
+
).forEach((D) => {
|
|
4196
|
+
var F, J;
|
|
4197
|
+
if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
|
|
4198
|
+
const ne = et(D);
|
|
4199
|
+
(J = window.parent) == null || J.postMessage(ne, "*");
|
|
4181
4200
|
}
|
|
4182
4201
|
}), window.addEventListener(
|
|
4183
4202
|
"builder:component:stateChangeListenerActivated",
|
|
4184
4203
|
S
|
|
4185
4204
|
));
|
|
4186
|
-
const E = e.builderContextSignal.content &&
|
|
4205
|
+
const E = e.builderContextSignal.content && j(e.canTrack), N = tt({
|
|
4187
4206
|
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4188
4207
|
canTrack: !0
|
|
4189
4208
|
}), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
4190
4209
|
if (E && W === N) {
|
|
4191
|
-
const
|
|
4210
|
+
const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
|
|
4192
4211
|
pe({
|
|
4193
4212
|
apiHost: e.apiHost,
|
|
4194
4213
|
type: "impression",
|
|
4195
4214
|
canTrack: !0,
|
|
4196
|
-
contentId:
|
|
4215
|
+
contentId: D,
|
|
4197
4216
|
apiKey: F,
|
|
4198
|
-
variationId: N !==
|
|
4217
|
+
variationId: N !== D ? N : void 0
|
|
4199
4218
|
});
|
|
4200
4219
|
}
|
|
4201
4220
|
if (Z() && !A()) {
|
|
4202
|
-
const
|
|
4221
|
+
const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
|
|
4203
4222
|
`builder.overrides.${F}`
|
|
4204
|
-
), ne =
|
|
4205
|
-
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content ||
|
|
4223
|
+
), ne = D.get("apiKey") || D.get("builder.space");
|
|
4224
|
+
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Be({
|
|
4206
4225
|
model: e.model,
|
|
4207
4226
|
apiKey: e.apiKey,
|
|
4208
4227
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -4227,7 +4246,7 @@ function hi(e) {
|
|
|
4227
4246
|
locale: e.locale
|
|
4228
4247
|
});
|
|
4229
4248
|
}, [e.locale]), V(() => () => {
|
|
4230
|
-
|
|
4249
|
+
U() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4231
4250
|
"builder:component:stateChangeListenerActivated",
|
|
4232
4251
|
S
|
|
4233
4252
|
));
|
|
@@ -4238,7 +4257,7 @@ function hi(e) {
|
|
|
4238
4257
|
onClick: (w) => f(w),
|
|
4239
4258
|
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4240
4259
|
"builder-model": e.model,
|
|
4241
|
-
className:
|
|
4260
|
+
className: hi(
|
|
4242
4261
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4243
4262
|
),
|
|
4244
4263
|
style: {
|
|
@@ -4250,21 +4269,21 @@ function hi(e) {
|
|
|
4250
4269
|
}
|
|
4251
4270
|
) : null });
|
|
4252
4271
|
}
|
|
4253
|
-
function
|
|
4272
|
+
function bi(e) {
|
|
4254
4273
|
const [t, n] = I(
|
|
4255
4274
|
() => `
|
|
4256
|
-
${
|
|
4275
|
+
${di({
|
|
4257
4276
|
cssCode: e.cssCode,
|
|
4258
4277
|
contentId: e.contentId
|
|
4259
4278
|
})}
|
|
4260
|
-
${
|
|
4279
|
+
${ui({
|
|
4261
4280
|
customFonts: e.customFonts
|
|
4262
4281
|
})}
|
|
4263
|
-
${
|
|
4282
|
+
${fi(e.isNestedRender)}
|
|
4264
4283
|
`.trim()
|
|
4265
4284
|
);
|
|
4266
4285
|
return /* @__PURE__ */ s(
|
|
4267
|
-
|
|
4286
|
+
K,
|
|
4268
4287
|
{
|
|
4269
4288
|
id: "builderio-content",
|
|
4270
4289
|
styles: t,
|
|
@@ -4272,7 +4291,7 @@ ${mi(e.isNestedRender)}
|
|
|
4272
4291
|
}
|
|
4273
4292
|
);
|
|
4274
4293
|
}
|
|
4275
|
-
const
|
|
4294
|
+
const pi = ({
|
|
4276
4295
|
content: e,
|
|
4277
4296
|
data: t,
|
|
4278
4297
|
locale: n
|
|
@@ -4289,7 +4308,7 @@ const bi = ({
|
|
|
4289
4308
|
locale: n
|
|
4290
4309
|
} : {}
|
|
4291
4310
|
};
|
|
4292
|
-
},
|
|
4311
|
+
}, yi = ({
|
|
4293
4312
|
content: e,
|
|
4294
4313
|
data: t
|
|
4295
4314
|
}) => e ? {
|
|
@@ -4301,11 +4320,11 @@ const bi = ({
|
|
|
4301
4320
|
meta: e == null ? void 0 : e.meta
|
|
4302
4321
|
} : void 0;
|
|
4303
4322
|
function Pe(e) {
|
|
4304
|
-
var
|
|
4323
|
+
var u, h, g, c, v, f, b, S, p;
|
|
4305
4324
|
const [t, n] = I(
|
|
4306
4325
|
() => {
|
|
4307
4326
|
var k, C;
|
|
4308
|
-
return
|
|
4327
|
+
return ai({
|
|
4309
4328
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4310
4329
|
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4311
4330
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4334,12 +4353,12 @@ function Pe(e) {
|
|
|
4334
4353
|
{}
|
|
4335
4354
|
)
|
|
4336
4355
|
), [r, l] = I(() => ({
|
|
4337
|
-
content:
|
|
4356
|
+
content: yi({
|
|
4338
4357
|
content: e.content,
|
|
4339
4358
|
data: e.data
|
|
4340
4359
|
}),
|
|
4341
4360
|
localState: void 0,
|
|
4342
|
-
rootState:
|
|
4361
|
+
rootState: pi({
|
|
4343
4362
|
content: e.content,
|
|
4344
4363
|
data: e.data,
|
|
4345
4364
|
locale: e.locale
|
|
@@ -4366,11 +4385,11 @@ function Pe(e) {
|
|
|
4366
4385
|
model: e.model
|
|
4367
4386
|
})), d = O(!1);
|
|
4368
4387
|
if (!d.current) {
|
|
4369
|
-
e.apiKey ||
|
|
4388
|
+
e.apiKey || _.error(
|
|
4370
4389
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4371
4390
|
);
|
|
4372
|
-
const k = (h = (
|
|
4373
|
-
k &&
|
|
4391
|
+
const k = (h = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
|
|
4392
|
+
k && q({
|
|
4374
4393
|
code: k,
|
|
4375
4394
|
context: e.context || {},
|
|
4376
4395
|
localState: void 0,
|
|
@@ -4388,7 +4407,7 @@ function Pe(e) {
|
|
|
4388
4407
|
registeredComponents: a
|
|
4389
4408
|
},
|
|
4390
4409
|
children: /* @__PURE__ */ B(
|
|
4391
|
-
|
|
4410
|
+
gi,
|
|
4392
4411
|
{
|
|
4393
4412
|
apiHost: e.apiHost,
|
|
4394
4413
|
nonce: e.nonce,
|
|
@@ -4409,7 +4428,7 @@ function Pe(e) {
|
|
|
4409
4428
|
setBuilderContextSignal: l,
|
|
4410
4429
|
children: [
|
|
4411
4430
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4412
|
-
|
|
4431
|
+
X,
|
|
4413
4432
|
{
|
|
4414
4433
|
id: "builderio-variant-visibility",
|
|
4415
4434
|
scriptStr: t,
|
|
@@ -4417,19 +4436,19 @@ function Pe(e) {
|
|
|
4417
4436
|
}
|
|
4418
4437
|
) : null,
|
|
4419
4438
|
/* @__PURE__ */ s(
|
|
4420
|
-
|
|
4439
|
+
bi,
|
|
4421
4440
|
{
|
|
4422
4441
|
nonce: e.nonce || "",
|
|
4423
4442
|
isNestedRender: e.isNestedRender,
|
|
4424
|
-
contentId: (
|
|
4425
|
-
cssCode: (v = (
|
|
4426
|
-
customFonts: (
|
|
4443
|
+
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
4444
|
+
cssCode: (v = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
|
|
4445
|
+
customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
4427
4446
|
}
|
|
4428
4447
|
),
|
|
4429
4448
|
/* @__PURE__ */ s(
|
|
4430
|
-
|
|
4449
|
+
$,
|
|
4431
4450
|
{
|
|
4432
|
-
blocks: (
|
|
4451
|
+
blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
4433
4452
|
context: r,
|
|
4434
4453
|
registeredComponents: a,
|
|
4435
4454
|
linkComponent: e.linkComponent
|
|
@@ -4441,18 +4460,18 @@ function Pe(e) {
|
|
|
4441
4460
|
}
|
|
4442
4461
|
);
|
|
4443
4462
|
}
|
|
4444
|
-
function
|
|
4463
|
+
function vi(e) {
|
|
4445
4464
|
var r;
|
|
4446
4465
|
const [t, n] = I(
|
|
4447
4466
|
() => Zn({
|
|
4448
|
-
canTrack:
|
|
4467
|
+
canTrack: j(e.canTrack),
|
|
4449
4468
|
content: e.content
|
|
4450
4469
|
})
|
|
4451
4470
|
);
|
|
4452
4471
|
function i() {
|
|
4453
4472
|
var l;
|
|
4454
|
-
return
|
|
4455
|
-
|
|
4473
|
+
return ii(
|
|
4474
|
+
G(e.content).map((d) => ({
|
|
4456
4475
|
id: d.testVariationId,
|
|
4457
4476
|
testRatio: d.testRatio
|
|
4458
4477
|
})),
|
|
@@ -4460,7 +4479,7 @@ function yi(e) {
|
|
|
4460
4479
|
);
|
|
4461
4480
|
}
|
|
4462
4481
|
function a() {
|
|
4463
|
-
return
|
|
4482
|
+
return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4464
4483
|
}
|
|
4465
4484
|
function o() {
|
|
4466
4485
|
var l;
|
|
@@ -4469,22 +4488,22 @@ function yi(e) {
|
|
|
4469
4488
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4470
4489
|
} : it({
|
|
4471
4490
|
item: e.content,
|
|
4472
|
-
canTrack:
|
|
4491
|
+
canTrack: j(e.canTrack)
|
|
4473
4492
|
});
|
|
4474
4493
|
}
|
|
4475
4494
|
return V(() => {
|
|
4476
4495
|
}, []), /* @__PURE__ */ B(R, { children: [
|
|
4477
|
-
!e.isNestedRender &&
|
|
4478
|
-
|
|
4496
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
|
|
4497
|
+
X,
|
|
4479
4498
|
{
|
|
4480
4499
|
id: "builderio-init-variants-fns",
|
|
4481
|
-
scriptStr:
|
|
4500
|
+
scriptStr: ni(),
|
|
4482
4501
|
nonce: e.nonce || ""
|
|
4483
4502
|
}
|
|
4484
4503
|
) : null,
|
|
4485
4504
|
t ? /* @__PURE__ */ B(R, { children: [
|
|
4486
4505
|
/* @__PURE__ */ s(
|
|
4487
|
-
|
|
4506
|
+
K,
|
|
4488
4507
|
{
|
|
4489
4508
|
id: "builderio-variants",
|
|
4490
4509
|
styles: a(),
|
|
@@ -4492,14 +4511,14 @@ function yi(e) {
|
|
|
4492
4511
|
}
|
|
4493
4512
|
),
|
|
4494
4513
|
/* @__PURE__ */ s(
|
|
4495
|
-
|
|
4514
|
+
X,
|
|
4496
4515
|
{
|
|
4497
4516
|
id: "builderio-variants-visibility",
|
|
4498
4517
|
scriptStr: i(),
|
|
4499
4518
|
nonce: e.nonce || ""
|
|
4500
4519
|
}
|
|
4501
4520
|
),
|
|
4502
|
-
(r =
|
|
4521
|
+
(r = G(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4503
4522
|
Pe,
|
|
4504
4523
|
{
|
|
4505
4524
|
apiHost: e.apiHost,
|
|
@@ -4555,7 +4574,7 @@ function yi(e) {
|
|
|
4555
4574
|
)
|
|
4556
4575
|
] });
|
|
4557
4576
|
}
|
|
4558
|
-
const
|
|
4577
|
+
const xi = async ({
|
|
4559
4578
|
builderContextValue: e,
|
|
4560
4579
|
symbol: t
|
|
4561
4580
|
}) => {
|
|
@@ -4571,11 +4590,11 @@ const vi = async ({
|
|
|
4571
4590
|
}
|
|
4572
4591
|
}
|
|
4573
4592
|
}).catch((n) => {
|
|
4574
|
-
|
|
4593
|
+
_.error("Could not fetch symbol content: ", n);
|
|
4575
4594
|
});
|
|
4576
4595
|
};
|
|
4577
|
-
function
|
|
4578
|
-
var l, d,
|
|
4596
|
+
function Si(e) {
|
|
4597
|
+
var l, d, u, h, g;
|
|
4579
4598
|
function t() {
|
|
4580
4599
|
return "div";
|
|
4581
4600
|
}
|
|
@@ -4583,31 +4602,31 @@ function xi(e) {
|
|
|
4583
4602
|
return "div";
|
|
4584
4603
|
}
|
|
4585
4604
|
function i() {
|
|
4586
|
-
var
|
|
4605
|
+
var c, v;
|
|
4587
4606
|
return [
|
|
4588
|
-
e.attributes[
|
|
4607
|
+
e.attributes[z()],
|
|
4589
4608
|
"builder-symbol",
|
|
4590
|
-
(
|
|
4609
|
+
(c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
|
|
4591
4610
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4592
4611
|
].filter(Boolean).join(" ");
|
|
4593
4612
|
}
|
|
4594
4613
|
const [a, o] = I(() => {
|
|
4595
|
-
var
|
|
4596
|
-
return (
|
|
4614
|
+
var c;
|
|
4615
|
+
return (c = e.symbol) == null ? void 0 : c.content;
|
|
4597
4616
|
});
|
|
4598
4617
|
function r() {
|
|
4599
|
-
a ||
|
|
4618
|
+
a || xi({
|
|
4600
4619
|
symbol: e.symbol,
|
|
4601
4620
|
builderContextValue: e.builderContext
|
|
4602
|
-
}).then((
|
|
4603
|
-
|
|
4621
|
+
}).then((c) => {
|
|
4622
|
+
c && o(c);
|
|
4604
4623
|
});
|
|
4605
4624
|
}
|
|
4606
4625
|
return V(() => {
|
|
4607
4626
|
}, []), V(() => {
|
|
4608
4627
|
r();
|
|
4609
4628
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4610
|
-
|
|
4629
|
+
vi,
|
|
4611
4630
|
{
|
|
4612
4631
|
nonce: e.builderContext.nonce,
|
|
4613
4632
|
isNestedRender: !0,
|
|
@@ -4621,10 +4640,10 @@ function xi(e) {
|
|
|
4621
4640
|
data: {
|
|
4622
4641
|
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4623
4642
|
...e.builderContext.localState,
|
|
4624
|
-
...(
|
|
4643
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4625
4644
|
},
|
|
4626
4645
|
canTrack: e.builderContext.canTrack,
|
|
4627
|
-
model: (
|
|
4646
|
+
model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
|
|
4628
4647
|
content: a,
|
|
4629
4648
|
linkComponent: e.builderLinkComponent,
|
|
4630
4649
|
blocksWrapper: t(),
|
|
@@ -4633,16 +4652,16 @@ function xi(e) {
|
|
|
4633
4652
|
) });
|
|
4634
4653
|
}
|
|
4635
4654
|
export {
|
|
4636
|
-
|
|
4655
|
+
$ as Blocks,
|
|
4637
4656
|
de as BuilderContext,
|
|
4638
4657
|
lt as Button,
|
|
4639
4658
|
Xt as Columns,
|
|
4640
|
-
|
|
4659
|
+
vi as Content,
|
|
4641
4660
|
Zt as Fragment,
|
|
4642
4661
|
nn as Image,
|
|
4643
4662
|
an as Section,
|
|
4644
|
-
|
|
4663
|
+
Si as Symbol,
|
|
4645
4664
|
En as Text,
|
|
4646
4665
|
Gn as Video,
|
|
4647
|
-
|
|
4666
|
+
Ei as setClientUserAttributes
|
|
4648
4667
|
};
|