@builder.io/sdk-react 3.0.3 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +20 -20
- package/lib/browser/blocks-exports.mjs +517 -529
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-5eafc5bd.cjs → server-entry-101d66b8.cjs} +1 -1
- package/lib/browser/{server-entry-c904f136.js → server-entry-785c0408.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-032726a7.cjs → accordion-190c4426.cjs} +1 -1
- package/lib/edge/{accordion-c786f197.js → accordion-cd6e0363.js} +1 -1
- package/lib/edge/{blocks-827b0a87.cjs → blocks-766e8d45.cjs} +9 -9
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-105e50e5.js → blocks-fe2d7c1a.js} +2 -3
- package/lib/edge/{button-5cbfe22c.cjs → button-694fcd4f.cjs} +1 -1
- package/lib/edge/{button-f0e0ea72.js → button-6a27481c.js} +2 -2
- package/lib/edge/{columns-9e187314.js → columns-90e6407e.js} +18 -18
- package/lib/edge/{columns-d07da61d.cjs → columns-b38bf0f7.cjs} +2 -2
- package/lib/edge/{content-variants-0db90715.cjs → content-variants-4e385c19.cjs} +1 -1
- package/lib/edge/{content-variants-59dc0824.js → content-variants-cbb89349.js} +10 -10
- package/lib/edge/form-16bbf874.js +166 -0
- package/lib/edge/form-547645eb.cjs +1 -0
- package/lib/edge/{get-class-prop-name-8fb0e5ad.cjs → get-class-prop-name-58770197.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6b143ec7.js → get-class-prop-name-8b719c6b.js} +1 -1
- package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
- package/lib/edge/image-590e36ae.cjs +17 -0
- package/lib/edge/{img-72bf9d21.cjs → img-8859c851.cjs} +1 -1
- package/lib/edge/{img-2c4c6b78.js → img-d3351743.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-752f3ce9.js → input-24c601b4.js} +1 -1
- package/lib/edge/{input-6eca8427.cjs → input-4fe0fc6d.cjs} +1 -1
- package/lib/edge/{select-a1d6e80e.js → select-af05377b.js} +1 -1
- package/lib/edge/{select-49a73a0b.cjs → select-c73bd418.cjs} +1 -1
- package/lib/edge/{server-entry-6b2058e2.cjs → server-entry-3c7fa63a.cjs} +1 -1
- package/lib/edge/{server-entry-35f12729.js → server-entry-67bfc740.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-b9bcbd41.js → slot-32a4df0c.js} +3 -3
- package/lib/edge/{slot-2327e009.cjs → slot-759c8dd9.cjs} +1 -1
- package/lib/edge/{symbol-33e7736f.js → symbol-50360a37.js} +2 -2
- package/lib/edge/{symbol-3527699b.cjs → symbol-8d63aa7d.cjs} +1 -1
- package/lib/edge/{tabs-bc422e4c.js → tabs-6535c934.js} +3 -3
- package/lib/edge/{tabs-2df0eaa2.cjs → tabs-fc6c1700.cjs} +1 -1
- package/lib/edge/video-4ecfd08b.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
- package/lib/node/blocks-exports.cjs +14 -14
- package/lib/node/blocks-exports.mjs +500 -512
- 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-606ce65a.cjs → server-entry-95273908.cjs} +1 -1
- package/lib/node/{server-entry-d1ed35c5.js → server-entry-ffc70868.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-6675714a.js → setIvm-2cea7252.js} +1 -1
- package/lib/node/{setIvm-e4deba11.cjs → setIvm-4ce0db03.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-75b2b3a0.js → should-force-browser-runtime-in-node-c0d50009.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-03adae17.cjs → should-force-browser-runtime-in-node-d3e6df07.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/form/form/form.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/components.d.ts +2 -2
- package/lib/edge/form-79639135.cjs +0 -1
- package/lib/edge/form-7a7b98cf.js +0 -176
- package/lib/edge/image-4db81d72.cjs +0 -17
- package/lib/edge/video-e20dcbbc.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as
|
|
2
|
+
import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as q, logger as J, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as z, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-785c0408.js";
|
|
4
4
|
import * as Xe from "react";
|
|
5
|
-
import { createContext as Ee, useEffect as A, useState as
|
|
5
|
+
import { createContext as Ee, useEffect as A, useState as R, useRef as O, useContext as fe, createElement as Re } from "react";
|
|
6
6
|
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
7
7
|
function re(e) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ s(E, { children: et(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { 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 }) }) });
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const _ = () => {
|
|
11
11
|
switch ($) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
@@ -25,7 +25,7 @@ function tt(e) {
|
|
|
25
25
|
function t() {
|
|
26
26
|
return {
|
|
27
27
|
...e.attributes,
|
|
28
|
-
[
|
|
28
|
+
[_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
|
|
29
29
|
...e.link ? {
|
|
30
30
|
href: e.link,
|
|
31
31
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -35,7 +35,7 @@ function tt(e) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ s(
|
|
39
39
|
re,
|
|
40
40
|
{
|
|
41
41
|
attributes: t(),
|
|
@@ -117,7 +117,7 @@ const he = ({
|
|
|
117
117
|
rootSetState: a,
|
|
118
118
|
rootState: r
|
|
119
119
|
}) => {
|
|
120
|
-
const
|
|
120
|
+
const l = nt({
|
|
121
121
|
builder: t,
|
|
122
122
|
context: n,
|
|
123
123
|
event: i,
|
|
@@ -127,11 +127,11 @@ const he = ({
|
|
|
127
127
|
rootSetState: a
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
|
-
return new Function(...
|
|
130
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
131
131
|
};
|
|
132
132
|
function at() {
|
|
133
133
|
var e;
|
|
134
|
-
return typeof process != "undefined" &&
|
|
134
|
+
return typeof process != "undefined" && q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
135
135
|
}
|
|
136
136
|
const rt = ({
|
|
137
137
|
shouldLogWarning: e
|
|
@@ -140,14 +140,14 @@ const rt = ({
|
|
|
140
140
|
if (!at())
|
|
141
141
|
return !1;
|
|
142
142
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
143
|
-
return t && n && !i ? (e &&
|
|
143
|
+
return t && n && !i ? (e && J.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;
|
|
144
144
|
}, lt = (e) => (D() || rt({
|
|
145
145
|
shouldLogWarning: !0
|
|
146
146
|
}), he(e)), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
147
147
|
var t, n, i, o, a, r;
|
|
148
148
|
return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ct.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
149
149
|
};
|
|
150
|
-
function
|
|
150
|
+
function L({
|
|
151
151
|
code: e,
|
|
152
152
|
context: t,
|
|
153
153
|
localState: n,
|
|
@@ -158,12 +158,12 @@ function U({
|
|
|
158
158
|
}) {
|
|
159
159
|
if (e.trim() === "")
|
|
160
160
|
return;
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
161
|
+
const l = dt(e.trim());
|
|
162
|
+
if (l)
|
|
163
163
|
return Be({
|
|
164
164
|
...i,
|
|
165
165
|
...n
|
|
166
|
-
},
|
|
166
|
+
}, l);
|
|
167
167
|
const d = {
|
|
168
168
|
code: ot(e, {
|
|
169
169
|
isExpression: r
|
|
@@ -178,7 +178,7 @@ function U({
|
|
|
178
178
|
try {
|
|
179
179
|
return lt(d);
|
|
180
180
|
} catch (c) {
|
|
181
|
-
|
|
181
|
+
J.error("Failed code evaluation: " + c.message, {
|
|
182
182
|
code: e
|
|
183
183
|
});
|
|
184
184
|
return;
|
|
@@ -197,7 +197,7 @@ const mt = (e, t) => {
|
|
|
197
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
198
198
|
return {
|
|
199
199
|
...e.component.options,
|
|
200
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) =>
|
|
200
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => L({
|
|
201
201
|
code: a,
|
|
202
202
|
context: t,
|
|
203
203
|
localState: t.localState,
|
|
@@ -212,7 +212,7 @@ function ft(e, ...t) {
|
|
|
212
212
|
delete n[i];
|
|
213
213
|
return n;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
216
216
|
if (e == null || typeof e != "object") {
|
|
217
217
|
t(e, (a) => {
|
|
218
218
|
n !== null && i !== null && (n[i] = a);
|
|
@@ -222,11 +222,11 @@ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
222
222
|
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
223
223
|
t(a, (d) => {
|
|
224
224
|
e[r] = d;
|
|
225
|
-
}),
|
|
225
|
+
}), K(a, t, e, r, o);
|
|
226
226
|
}) : Object.entries(e).forEach(([a, r]) => {
|
|
227
227
|
t(r, (d) => {
|
|
228
228
|
e[a] = d;
|
|
229
|
-
}),
|
|
229
|
+
}), K(r, t, e, a, o);
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
232
|
function Ae(e) {
|
|
@@ -236,7 +236,7 @@ function ht(e) {
|
|
|
236
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
237
237
|
return !1;
|
|
238
238
|
let t = !1;
|
|
239
|
-
return
|
|
239
|
+
return K(e, (n) => {
|
|
240
240
|
if (Ae(n)) {
|
|
241
241
|
t = !0;
|
|
242
242
|
return;
|
|
@@ -244,7 +244,7 @@ function ht(e) {
|
|
|
244
244
|
}), t;
|
|
245
245
|
}
|
|
246
246
|
function gt(e, t) {
|
|
247
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
247
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
248
248
|
var o;
|
|
249
249
|
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
250
250
|
}), e);
|
|
@@ -308,8 +308,8 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) =
|
|
|
308
308
|
return e;
|
|
309
309
|
const a = yt(e);
|
|
310
310
|
for (const r in e.bindings) {
|
|
311
|
-
const
|
|
312
|
-
code:
|
|
311
|
+
const l = e.bindings[r], d = L({
|
|
312
|
+
code: l,
|
|
313
313
|
localState: n,
|
|
314
314
|
rootState: i,
|
|
315
315
|
rootSetState: o,
|
|
@@ -335,20 +335,20 @@ function vt({
|
|
|
335
335
|
context: t
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
339
339
|
function St(e, t, n = {}) {
|
|
340
|
-
let i, o, a, r = null,
|
|
340
|
+
let i, o, a, r = null, l = 0;
|
|
341
341
|
const d = function() {
|
|
342
|
-
|
|
342
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
343
343
|
};
|
|
344
344
|
return function() {
|
|
345
345
|
const c = Date.now();
|
|
346
|
-
!
|
|
347
|
-
const h = t - (c -
|
|
348
|
-
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null),
|
|
346
|
+
!l && n.leading === !1 && (l = c);
|
|
347
|
+
const h = t - (c - l);
|
|
348
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
|
|
349
349
|
};
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function U(e, ...t) {
|
|
352
352
|
const n = Object(e);
|
|
353
353
|
for (let i = 1; i < arguments.length; i++) {
|
|
354
354
|
const o = arguments[i];
|
|
@@ -374,9 +374,9 @@ function We(e) {
|
|
|
374
374
|
}
|
|
375
375
|
function Fe(e, t) {
|
|
376
376
|
const n = Ct(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
377
|
-
for (const
|
|
377
|
+
for (const l of r)
|
|
378
378
|
for (const d of n)
|
|
379
|
-
d in
|
|
379
|
+
d in l || (l[d] = i[d]);
|
|
380
380
|
}
|
|
381
381
|
function Ct(e) {
|
|
382
382
|
const t = [];
|
|
@@ -392,8 +392,8 @@ function $e(e) {
|
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
394
394
|
Array.from(t).forEach((n) => {
|
|
395
|
-
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
396
|
-
n.style.transition = `all ${e.duration}s ${
|
|
395
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
396
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
397
397
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
398
398
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
399
399
|
});
|
|
@@ -409,36 +409,36 @@ function Tt(e) {
|
|
|
409
409
|
Fe(e, n);
|
|
410
410
|
let i = !1, o = !1;
|
|
411
411
|
function a() {
|
|
412
|
-
!i &&
|
|
413
|
-
|
|
412
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
413
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
414
414
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
415
415
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
416
|
-
})) : e.repeat && i && !o && !
|
|
416
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
417
417
|
}
|
|
418
418
|
const r = St(a, 200, {
|
|
419
419
|
leading: !1
|
|
420
420
|
});
|
|
421
|
-
function
|
|
422
|
-
const
|
|
423
|
-
return
|
|
421
|
+
function l(h) {
|
|
422
|
+
const m = h.getBoundingClientRect(), u = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * u;
|
|
423
|
+
return m.bottom > g && m.top < u - g;
|
|
424
424
|
}
|
|
425
425
|
const d = e.steps[0].styles;
|
|
426
426
|
function c() {
|
|
427
|
-
|
|
427
|
+
U(n.style, d);
|
|
428
428
|
}
|
|
429
429
|
c(), setTimeout(() => {
|
|
430
|
-
n.style.transition = `all ${e.duration}s ${
|
|
430
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
431
431
|
}), document.addEventListener("scroll", r, {
|
|
432
432
|
capture: !0,
|
|
433
433
|
passive: !0
|
|
434
434
|
}), a();
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
|
-
const
|
|
437
|
+
const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
438
438
|
if (typeof i == "string")
|
|
439
|
-
return `${
|
|
440
|
-
}).filter(
|
|
441
|
-
`),
|
|
439
|
+
return `${G(n)}: ${i};`;
|
|
440
|
+
}).filter(q), It = (e) => Oe(e).join(`
|
|
441
|
+
`), M = ({
|
|
442
442
|
mediaQuery: e,
|
|
443
443
|
className: t,
|
|
444
444
|
styles: n
|
|
@@ -458,18 +458,18 @@ function wt({
|
|
|
458
458
|
const Et = ({
|
|
459
459
|
block: e,
|
|
460
460
|
context: t
|
|
461
|
-
}) =>
|
|
461
|
+
}) => De(wt({
|
|
462
462
|
style: e.style || {},
|
|
463
463
|
context: t,
|
|
464
464
|
block: e
|
|
465
465
|
}));
|
|
466
|
-
function
|
|
466
|
+
function De(e) {
|
|
467
467
|
switch ($) {
|
|
468
468
|
case "svelte":
|
|
469
469
|
case "vue":
|
|
470
470
|
case "solid":
|
|
471
471
|
case "angular":
|
|
472
|
-
return
|
|
472
|
+
return Oe(e).join(" ");
|
|
473
473
|
case "qwik":
|
|
474
474
|
case "reactNative":
|
|
475
475
|
case "react":
|
|
@@ -477,7 +477,7 @@ function Oe(e) {
|
|
|
477
477
|
return e;
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
|
-
const
|
|
480
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
|
|
481
481
|
block: e,
|
|
482
482
|
registeredComponents: t,
|
|
483
483
|
model: n
|
|
@@ -487,7 +487,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
487
487
|
if (!i)
|
|
488
488
|
return null;
|
|
489
489
|
const o = t[i];
|
|
490
|
-
if (!o ||
|
|
490
|
+
if (!o || Le(o, n)) {
|
|
491
491
|
console.warn(`
|
|
492
492
|
Could not find a registered component named "${i}".
|
|
493
493
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -504,7 +504,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
504
504
|
} = e;
|
|
505
505
|
if (!(n != null && n.collection))
|
|
506
506
|
return;
|
|
507
|
-
const o =
|
|
507
|
+
const o = L({
|
|
508
508
|
code: n.collection,
|
|
509
509
|
localState: t.localState,
|
|
510
510
|
rootState: t.rootState,
|
|
@@ -535,7 +535,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
535
535
|
}, Vt = (e, t, n) => {
|
|
536
536
|
var i;
|
|
537
537
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
538
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !
|
|
538
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !Le(r, n)))
|
|
539
539
|
} : {};
|
|
540
540
|
}, At = (e, t) => {
|
|
541
541
|
var n;
|
|
@@ -590,8 +590,8 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
590
590
|
default: a + 1
|
|
591
591
|
}, n;
|
|
592
592
|
};
|
|
593
|
-
function
|
|
594
|
-
return /* @__PURE__ */
|
|
593
|
+
function Y(e) {
|
|
594
|
+
return /* @__PURE__ */ s(
|
|
595
595
|
"style",
|
|
596
596
|
{
|
|
597
597
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -603,56 +603,56 @@ function Q(e) {
|
|
|
603
603
|
function Wt(e) {
|
|
604
604
|
function t() {
|
|
605
605
|
const i = e.block;
|
|
606
|
-
return
|
|
606
|
+
return q(i.hide) ? !i.hide : q(i.show) ? i.show : !0;
|
|
607
607
|
}
|
|
608
608
|
function n() {
|
|
609
|
-
var
|
|
609
|
+
var y, b, p;
|
|
610
610
|
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = _e(
|
|
611
|
-
((
|
|
612
|
-
),
|
|
611
|
+
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
612
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
613
613
|
if (!h)
|
|
614
614
|
return "";
|
|
615
|
-
const
|
|
615
|
+
const m = l ? M({
|
|
616
616
|
className: h,
|
|
617
|
-
styles:
|
|
618
|
-
}) : "",
|
|
617
|
+
styles: l
|
|
618
|
+
}) : "", u = d ? M({
|
|
619
619
|
className: h,
|
|
620
620
|
styles: d,
|
|
621
621
|
mediaQuery: ge(
|
|
622
622
|
"medium",
|
|
623
623
|
r
|
|
624
624
|
)
|
|
625
|
-
}) : "",
|
|
625
|
+
}) : "", k = c ? M({
|
|
626
626
|
className: h,
|
|
627
627
|
styles: c,
|
|
628
628
|
mediaQuery: ge(
|
|
629
629
|
"small",
|
|
630
630
|
r
|
|
631
631
|
)
|
|
632
|
-
}) : "",
|
|
632
|
+
}) : "", g = i.animations && i.animations.find((C) => C.trigger === "hover");
|
|
633
633
|
let v = "";
|
|
634
|
-
if (
|
|
635
|
-
const C = ((p = (b =
|
|
636
|
-
v =
|
|
634
|
+
if (g) {
|
|
635
|
+
const C = ((p = (b = g.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
|
|
636
|
+
v = M({
|
|
637
637
|
className: `${h}:hover`,
|
|
638
638
|
styles: {
|
|
639
639
|
...C,
|
|
640
|
-
transition: `all ${
|
|
641
|
-
|
|
640
|
+
transition: `all ${g.duration}s ${G(
|
|
641
|
+
g.easing
|
|
642
642
|
)}`,
|
|
643
|
-
transitionDelay:
|
|
643
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
644
644
|
}
|
|
645
645
|
}) || "";
|
|
646
646
|
}
|
|
647
647
|
return [
|
|
648
|
-
g,
|
|
649
648
|
m,
|
|
650
|
-
|
|
649
|
+
u,
|
|
650
|
+
k,
|
|
651
651
|
v
|
|
652
652
|
].join(" ");
|
|
653
653
|
}
|
|
654
|
-
return /* @__PURE__ */
|
|
655
|
-
|
|
654
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
655
|
+
Y,
|
|
656
656
|
{
|
|
657
657
|
id: "builderio-block",
|
|
658
658
|
styles: n(),
|
|
@@ -663,7 +663,7 @@ function Wt(e) {
|
|
|
663
663
|
function Ft(e) {
|
|
664
664
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
665
665
|
}
|
|
666
|
-
const $t = (e) => `on${Ft(e)}`,
|
|
666
|
+
const $t = (e) => `on${Ft(e)}`, Ot = (e, t) => (n) => L({
|
|
667
667
|
code: e,
|
|
668
668
|
context: t.context,
|
|
669
669
|
localState: t.localState,
|
|
@@ -689,16 +689,16 @@ function He(e) {
|
|
|
689
689
|
r = r.replace("on:", "");
|
|
690
690
|
break;
|
|
691
691
|
}
|
|
692
|
-
t[r] =
|
|
692
|
+
t[r] = Ot(a, e);
|
|
693
693
|
}
|
|
694
694
|
return t;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Dt({
|
|
697
697
|
properties: e
|
|
698
698
|
}) {
|
|
699
699
|
return e;
|
|
700
700
|
}
|
|
701
|
-
const
|
|
701
|
+
const Lt = (e) => ({
|
|
702
702
|
href: e.href
|
|
703
703
|
});
|
|
704
704
|
function ce({
|
|
@@ -707,23 +707,23 @@ function ce({
|
|
|
707
707
|
}) {
|
|
708
708
|
var i;
|
|
709
709
|
const n = {
|
|
710
|
-
...
|
|
710
|
+
...Lt(e),
|
|
711
711
|
...e.properties,
|
|
712
712
|
"builder-id": e.id,
|
|
713
713
|
style: Et({
|
|
714
714
|
block: e,
|
|
715
715
|
context: t
|
|
716
716
|
}),
|
|
717
|
-
[
|
|
717
|
+
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
718
718
|
};
|
|
719
|
-
return
|
|
719
|
+
return Dt({
|
|
720
720
|
properties: n,
|
|
721
721
|
context: t,
|
|
722
722
|
block: e
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
function Ut(e) {
|
|
726
|
-
return /* @__PURE__ */
|
|
726
|
+
return /* @__PURE__ */ s(
|
|
727
727
|
re,
|
|
728
728
|
{
|
|
729
729
|
TagName: e.Wrapper,
|
|
@@ -745,7 +745,7 @@ function Ut(e) {
|
|
|
745
745
|
}
|
|
746
746
|
function _t(e) {
|
|
747
747
|
return A(() => {
|
|
748
|
-
}, []), /* @__PURE__ */
|
|
748
|
+
}, []), /* @__PURE__ */ s(E, { children: e.children });
|
|
749
749
|
}
|
|
750
750
|
function Ht(e) {
|
|
751
751
|
function t() {
|
|
@@ -763,7 +763,7 @@ function Ht(e) {
|
|
|
763
763
|
})
|
|
764
764
|
} : {};
|
|
765
765
|
}
|
|
766
|
-
return /* @__PURE__ */
|
|
766
|
+
return /* @__PURE__ */ s(E, { children: e.Wrapper.load ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
767
767
|
_t,
|
|
768
768
|
{
|
|
769
769
|
load: e.Wrapper.load,
|
|
@@ -772,7 +772,7 @@ function Ht(e) {
|
|
|
772
772
|
attributes: t(),
|
|
773
773
|
children: e.children
|
|
774
774
|
}
|
|
775
|
-
) }) : /* @__PURE__ */
|
|
775
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
776
776
|
}
|
|
777
777
|
const Mt = ({
|
|
778
778
|
componentOptions: e,
|
|
@@ -783,7 +783,7 @@ const Mt = ({
|
|
|
783
783
|
isInteractive: a,
|
|
784
784
|
contextValue: r
|
|
785
785
|
}) => {
|
|
786
|
-
const
|
|
786
|
+
const l = {
|
|
787
787
|
...e,
|
|
788
788
|
/**
|
|
789
789
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -802,14 +802,14 @@ const Mt = ({
|
|
|
802
802
|
context: n,
|
|
803
803
|
wrapperProps: e,
|
|
804
804
|
includeBlockProps: o
|
|
805
|
-
} :
|
|
805
|
+
} : l;
|
|
806
806
|
};
|
|
807
807
|
function be(e) {
|
|
808
808
|
var i;
|
|
809
|
-
const [t, n] =
|
|
809
|
+
const [t, n] = R(
|
|
810
810
|
() => e.isInteractive ? Ht : e.componentRef
|
|
811
811
|
);
|
|
812
|
-
return /* @__PURE__ */
|
|
812
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
813
813
|
t,
|
|
814
814
|
{
|
|
815
815
|
...Mt({
|
|
@@ -822,8 +822,8 @@ function be(e) {
|
|
|
822
822
|
isInteractive: e.isInteractive,
|
|
823
823
|
contextValue: e.context
|
|
824
824
|
}),
|
|
825
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
826
|
-
|
|
825
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
826
|
+
Q,
|
|
827
827
|
{
|
|
828
828
|
block: o,
|
|
829
829
|
context: e.context,
|
|
@@ -836,9 +836,9 @@ function be(e) {
|
|
|
836
836
|
) }) : null });
|
|
837
837
|
}
|
|
838
838
|
function pe(e) {
|
|
839
|
-
const [t, n] =
|
|
840
|
-
return /* @__PURE__ */
|
|
841
|
-
|
|
839
|
+
const [t, n] = R(() => e.repeatContext);
|
|
840
|
+
return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
841
|
+
Q,
|
|
842
842
|
{
|
|
843
843
|
block: e.block,
|
|
844
844
|
context: t,
|
|
@@ -847,15 +847,15 @@ function pe(e) {
|
|
|
847
847
|
}
|
|
848
848
|
) });
|
|
849
849
|
}
|
|
850
|
-
function
|
|
851
|
-
var h,
|
|
850
|
+
function Q(e) {
|
|
851
|
+
var h, m, u, k;
|
|
852
852
|
function t() {
|
|
853
853
|
return Pt({
|
|
854
854
|
block: e.block,
|
|
855
855
|
context: e.context
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
const [n, i] =
|
|
858
|
+
const [n, i] = R(() => ({
|
|
859
859
|
value: null,
|
|
860
860
|
update: !1
|
|
861
861
|
}));
|
|
@@ -863,14 +863,14 @@ function M(e) {
|
|
|
863
863
|
var v;
|
|
864
864
|
if (n.value && !n.update && !ae())
|
|
865
865
|
return n.value;
|
|
866
|
-
const
|
|
866
|
+
const g = (v = e.block.repeat) != null && v.collection ? e.block : vt({
|
|
867
867
|
block: e.block,
|
|
868
868
|
localState: e.context.localState,
|
|
869
869
|
rootState: e.context.rootState,
|
|
870
870
|
rootSetState: e.context.rootSetState,
|
|
871
871
|
context: e.context.context
|
|
872
872
|
});
|
|
873
|
-
return n.value =
|
|
873
|
+
return n.value = g, n.update = !1, g;
|
|
874
874
|
}
|
|
875
875
|
function a() {
|
|
876
876
|
return Rt({
|
|
@@ -883,21 +883,21 @@ function M(e) {
|
|
|
883
883
|
var v;
|
|
884
884
|
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
885
885
|
}
|
|
886
|
-
function
|
|
887
|
-
var
|
|
888
|
-
if ((
|
|
886
|
+
function l() {
|
|
887
|
+
var y, b;
|
|
888
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
889
889
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
890
|
-
const
|
|
891
|
-
return ("show" in o() ? o().show : !0) && !
|
|
890
|
+
const g = "hide" in o() ? o().hide : !1;
|
|
891
|
+
return ("show" in o() ? o().show : !0) && !g;
|
|
892
892
|
}
|
|
893
893
|
function d() {
|
|
894
|
-
var v,
|
|
895
|
-
return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (
|
|
894
|
+
var v, y;
|
|
895
|
+
return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (y = o().children) != null ? y : [] : [];
|
|
896
896
|
}
|
|
897
897
|
function c() {
|
|
898
|
-
var
|
|
898
|
+
var g, v, y, b;
|
|
899
899
|
return {
|
|
900
|
-
blockChildren: (
|
|
900
|
+
blockChildren: (g = o().children) != null ? g : [],
|
|
901
901
|
componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
|
|
902
902
|
componentOptions: {
|
|
903
903
|
...ut(o(), e.context),
|
|
@@ -914,32 +914,32 @@ function M(e) {
|
|
|
914
914
|
linkComponent: e.linkComponent,
|
|
915
915
|
registeredComponents: e.registeredComponents,
|
|
916
916
|
builderBlock: o(),
|
|
917
|
-
includeBlockProps: ((
|
|
917
|
+
includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
|
|
918
918
|
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && $ === "rsc")
|
|
919
919
|
};
|
|
920
920
|
}
|
|
921
921
|
return A(() => {
|
|
922
|
-
const
|
|
923
|
-
v &&
|
|
924
|
-
v.map((
|
|
925
|
-
...
|
|
926
|
-
elementId:
|
|
922
|
+
const g = o().id, v = o().animations;
|
|
923
|
+
v && g && kt(
|
|
924
|
+
v.map((y) => ({
|
|
925
|
+
...y,
|
|
926
|
+
elementId: g
|
|
927
927
|
}))
|
|
928
928
|
);
|
|
929
929
|
}, []), A(() => {
|
|
930
930
|
n.update = !0;
|
|
931
|
-
}), /* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */
|
|
931
|
+
}), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
|
|
932
|
+
/* @__PURE__ */ s(Wt, { block: o(), context: e.context }),
|
|
933
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(E, { children: (k = t()) == null ? void 0 : k.map((g, v) => /* @__PURE__ */ s(
|
|
934
934
|
pe,
|
|
935
935
|
{
|
|
936
|
-
repeatContext:
|
|
937
|
-
block:
|
|
936
|
+
repeatContext: g.context,
|
|
937
|
+
block: g.block,
|
|
938
938
|
registeredComponents: e.registeredComponents,
|
|
939
939
|
linkComponent: e.linkComponent
|
|
940
940
|
},
|
|
941
941
|
v
|
|
942
|
-
)) }) : /* @__PURE__ */
|
|
942
|
+
)) }) : /* @__PURE__ */ s(
|
|
943
943
|
be,
|
|
944
944
|
{
|
|
945
945
|
componentRef: c().componentRef,
|
|
@@ -952,23 +952,23 @@ function M(e) {
|
|
|
952
952
|
includeBlockProps: c().includeBlockProps,
|
|
953
953
|
isInteractive: c().isInteractive
|
|
954
954
|
}
|
|
955
|
-
) : /* @__PURE__ */
|
|
955
|
+
) : /* @__PURE__ */ s(E, { children: t() ? /* @__PURE__ */ s(E, { children: (u = t()) == null ? void 0 : u.map((g, v) => /* @__PURE__ */ s(
|
|
956
956
|
pe,
|
|
957
957
|
{
|
|
958
|
-
repeatContext:
|
|
959
|
-
block:
|
|
958
|
+
repeatContext: g.context,
|
|
959
|
+
block: g.block,
|
|
960
960
|
registeredComponents: e.registeredComponents,
|
|
961
961
|
linkComponent: e.linkComponent
|
|
962
962
|
},
|
|
963
963
|
v
|
|
964
|
-
)) }) : /* @__PURE__ */
|
|
964
|
+
)) }) : /* @__PURE__ */ B(
|
|
965
965
|
Ut,
|
|
966
966
|
{
|
|
967
967
|
Wrapper: r(),
|
|
968
968
|
block: o(),
|
|
969
969
|
context: e.context,
|
|
970
970
|
children: [
|
|
971
|
-
/* @__PURE__ */
|
|
971
|
+
/* @__PURE__ */ s(
|
|
972
972
|
be,
|
|
973
973
|
{
|
|
974
974
|
componentRef: c().componentRef,
|
|
@@ -982,15 +982,15 @@ function M(e) {
|
|
|
982
982
|
isInteractive: c().isInteractive
|
|
983
983
|
}
|
|
984
984
|
),
|
|
985
|
-
(
|
|
986
|
-
|
|
985
|
+
(m = d()) == null ? void 0 : m.map((g) => /* @__PURE__ */ s(
|
|
986
|
+
Q,
|
|
987
987
|
{
|
|
988
|
-
block:
|
|
988
|
+
block: g,
|
|
989
989
|
registeredComponents: e.registeredComponents,
|
|
990
990
|
linkComponent: e.linkComponent,
|
|
991
991
|
context: e.context
|
|
992
992
|
},
|
|
993
|
-
|
|
993
|
+
g.id
|
|
994
994
|
))
|
|
995
995
|
]
|
|
996
996
|
}
|
|
@@ -1014,8 +1014,8 @@ function jt(e) {
|
|
|
1014
1014
|
return e.path.startsWith(r) ? e.path : `${r}${e.path || ""}`;
|
|
1015
1015
|
}
|
|
1016
1016
|
function o() {
|
|
1017
|
-
var r,
|
|
1018
|
-
W() && !((r = e.blocks) != null && r.length) && ((
|
|
1017
|
+
var r, l;
|
|
1018
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1019
1019
|
{
|
|
1020
1020
|
type: "builder.clickEmptyBlocks",
|
|
1021
1021
|
data: {
|
|
@@ -1027,8 +1027,8 @@ function jt(e) {
|
|
|
1027
1027
|
));
|
|
1028
1028
|
}
|
|
1029
1029
|
function a() {
|
|
1030
|
-
var r,
|
|
1031
|
-
W() && !((r = e.blocks) != null && r.length) && ((
|
|
1030
|
+
var r, l;
|
|
1031
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1032
1032
|
{
|
|
1033
1033
|
type: "builder.hoverEmptyBlocks",
|
|
1034
1034
|
data: {
|
|
@@ -1040,8 +1040,8 @@ function jt(e) {
|
|
|
1040
1040
|
));
|
|
1041
1041
|
}
|
|
1042
1042
|
return A(() => {
|
|
1043
|
-
}, []), /* @__PURE__ */
|
|
1044
|
-
/* @__PURE__ */
|
|
1043
|
+
}, []), /* @__PURE__ */ B(E, { children: [
|
|
1044
|
+
/* @__PURE__ */ s(
|
|
1045
1045
|
e.BlocksWrapper,
|
|
1046
1046
|
{
|
|
1047
1047
|
ref: t,
|
|
@@ -1056,7 +1056,7 @@ function jt(e) {
|
|
|
1056
1056
|
children: e.children
|
|
1057
1057
|
}
|
|
1058
1058
|
),
|
|
1059
|
-
/* @__PURE__ */
|
|
1059
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2c6a6d88 {
|
|
1060
1060
|
display: flex;
|
|
1061
1061
|
flex-direction: column;
|
|
1062
1062
|
align-items: stretch;
|
|
@@ -1066,7 +1066,7 @@ function jt(e) {
|
|
|
1066
1066
|
function F(e) {
|
|
1067
1067
|
var i, o, a;
|
|
1068
1068
|
const t = fe(le), n = fe(Pe);
|
|
1069
|
-
return /* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ s(
|
|
1070
1070
|
jt,
|
|
1071
1071
|
{
|
|
1072
1072
|
blocks: e.blocks,
|
|
@@ -1076,8 +1076,8 @@ function F(e) {
|
|
|
1076
1076
|
classNameProp: e.className,
|
|
1077
1077
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1078
1078
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1079
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1080
|
-
|
|
1079
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
1080
|
+
Q,
|
|
1081
1081
|
{
|
|
1082
1082
|
block: r,
|
|
1083
1083
|
linkComponent: e.linkComponent,
|
|
@@ -1091,7 +1091,7 @@ function F(e) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
const qt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1093
1093
|
function zt(e) {
|
|
1094
|
-
var v,
|
|
1094
|
+
var v, y;
|
|
1095
1095
|
function t() {
|
|
1096
1096
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1097
1097
|
}
|
|
@@ -1112,7 +1112,7 @@ function zt(e) {
|
|
|
1112
1112
|
const p = a(b), C = t() * (n().length - 1) * (p / 100);
|
|
1113
1113
|
return `calc(${p}% - ${C}px)`;
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1115
|
+
function l({
|
|
1116
1116
|
stackedStyle: b,
|
|
1117
1117
|
desktopStyle: p
|
|
1118
1118
|
}) {
|
|
@@ -1130,14 +1130,14 @@ function zt(e) {
|
|
|
1130
1130
|
function h() {
|
|
1131
1131
|
return {
|
|
1132
1132
|
"--flex-dir": c(),
|
|
1133
|
-
"--flex-dir-tablet":
|
|
1133
|
+
"--flex-dir-tablet": l({
|
|
1134
1134
|
stackedStyle: c(),
|
|
1135
1135
|
desktopStyle: "row"
|
|
1136
1136
|
})
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
const p = b === 0 ? 0 : t(), C = r(b),
|
|
1139
|
+
function m(b) {
|
|
1140
|
+
const p = b === 0 ? 0 : t(), C = r(b), P = `${p}px`, I = "100%", w = 0;
|
|
1141
1141
|
return {
|
|
1142
1142
|
...{
|
|
1143
1143
|
display: "flex",
|
|
@@ -1145,35 +1145,35 @@ function zt(e) {
|
|
|
1145
1145
|
alignItems: "stretch"
|
|
1146
1146
|
},
|
|
1147
1147
|
width: C,
|
|
1148
|
-
["marginLeft"]:
|
|
1148
|
+
["marginLeft"]: P,
|
|
1149
1149
|
"--column-width-mobile": d({
|
|
1150
|
-
stackedStyle:
|
|
1150
|
+
stackedStyle: I,
|
|
1151
1151
|
desktopStyle: C
|
|
1152
1152
|
}),
|
|
1153
1153
|
"--column-margin-left-mobile": d({
|
|
1154
|
-
stackedStyle:
|
|
1155
|
-
desktopStyle:
|
|
1154
|
+
stackedStyle: w,
|
|
1155
|
+
desktopStyle: P
|
|
1156
1156
|
}),
|
|
1157
|
-
"--column-width-tablet":
|
|
1158
|
-
stackedStyle:
|
|
1157
|
+
"--column-width-tablet": l({
|
|
1158
|
+
stackedStyle: I,
|
|
1159
1159
|
desktopStyle: C
|
|
1160
1160
|
}),
|
|
1161
|
-
"--column-margin-left-tablet":
|
|
1162
|
-
stackedStyle:
|
|
1163
|
-
desktopStyle:
|
|
1161
|
+
"--column-margin-left-tablet": l({
|
|
1162
|
+
stackedStyle: w,
|
|
1163
|
+
desktopStyle: P
|
|
1164
1164
|
})
|
|
1165
1165
|
};
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1168
|
-
var C,
|
|
1167
|
+
function u(b) {
|
|
1168
|
+
var C, P;
|
|
1169
1169
|
return _e(
|
|
1170
|
-
((
|
|
1170
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1171
1171
|
)[b].max;
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function k() {
|
|
1174
1174
|
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1175
1175
|
return `
|
|
1176
|
-
@media (max-width: ${
|
|
1176
|
+
@media (max-width: ${u("medium")}px) {
|
|
1177
1177
|
.${e.builderBlock.id}-breakpoints {
|
|
1178
1178
|
flex-direction: var(--flex-dir-tablet);
|
|
1179
1179
|
align-items: stretch;
|
|
@@ -1185,7 +1185,7 @@ function zt(e) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
1187
|
|
|
1188
|
-
@media (max-width: ${
|
|
1188
|
+
@media (max-width: ${u("small")}px) {
|
|
1189
1189
|
.${e.builderBlock.id}-breakpoints {
|
|
1190
1190
|
flex-direction: var(--flex-dir);
|
|
1191
1191
|
align-items: stretch;
|
|
@@ -1198,48 +1198,48 @@ function zt(e) {
|
|
|
1198
1198
|
},
|
|
1199
1199
|
`;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function g(b, p) {
|
|
1202
1202
|
return {
|
|
1203
1203
|
...b.link ? {
|
|
1204
1204
|
href: b.link
|
|
1205
1205
|
} : {},
|
|
1206
|
-
[
|
|
1207
|
-
style:
|
|
1206
|
+
[_()]: "builder-column",
|
|
1207
|
+
style: De(m(p))
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
|
-
return /* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1210
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1211
|
+
/* @__PURE__ */ B(
|
|
1212
1212
|
"div",
|
|
1213
1213
|
{
|
|
1214
|
-
className: qt((v = e.builderBlock) == null ? void 0 : v.id) + " div-
|
|
1214
|
+
className: qt((v = e.builderBlock) == null ? void 0 : v.id) + " div-a6f3faac",
|
|
1215
1215
|
style: h(),
|
|
1216
1216
|
children: [
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
|
|
1217
|
+
/* @__PURE__ */ s(
|
|
1218
|
+
Y,
|
|
1219
1219
|
{
|
|
1220
1220
|
id: "builderio-columns",
|
|
1221
|
-
styles:
|
|
1221
|
+
styles: k(),
|
|
1222
1222
|
nonce: e.builderContext.nonce
|
|
1223
1223
|
}
|
|
1224
1224
|
),
|
|
1225
|
-
(
|
|
1225
|
+
(y = e.columns) == null ? void 0 : y.map((b, p) => /* @__PURE__ */ s(
|
|
1226
1226
|
re,
|
|
1227
1227
|
{
|
|
1228
1228
|
TagName: o(b),
|
|
1229
1229
|
actionAttributes: {},
|
|
1230
|
-
attributes:
|
|
1231
|
-
children: /* @__PURE__ */
|
|
1230
|
+
attributes: g(b, p),
|
|
1231
|
+
children: /* @__PURE__ */ s(
|
|
1232
1232
|
F,
|
|
1233
1233
|
{
|
|
1234
1234
|
path: `columns.${p}.blocks`,
|
|
1235
1235
|
parent: e.builderBlock.id,
|
|
1236
|
-
styleProp: {
|
|
1237
|
-
flexGrow: "1"
|
|
1238
|
-
},
|
|
1239
1236
|
context: e.builderContext,
|
|
1240
1237
|
registeredComponents: e.builderComponents,
|
|
1241
1238
|
linkComponent: e.builderLinkComponent,
|
|
1242
|
-
blocks: b.blocks
|
|
1239
|
+
blocks: b.blocks,
|
|
1240
|
+
styleProp: {
|
|
1241
|
+
flexGrow: "1"
|
|
1242
|
+
}
|
|
1243
1243
|
}
|
|
1244
1244
|
)
|
|
1245
1245
|
},
|
|
@@ -1248,14 +1248,14 @@ function zt(e) {
|
|
|
1248
1248
|
]
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
/* @__PURE__ */
|
|
1251
|
+
/* @__PURE__ */ s("style", { children: `.div-a6f3faac {
|
|
1252
1252
|
display: flex;
|
|
1253
1253
|
line-height: normal;
|
|
1254
1254
|
}` })
|
|
1255
1255
|
] });
|
|
1256
1256
|
}
|
|
1257
1257
|
function Kt(e) {
|
|
1258
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1259
1259
|
}
|
|
1260
1260
|
function ye(e) {
|
|
1261
1261
|
return e.replace(/http(s)?:/, "");
|
|
@@ -1288,21 +1288,21 @@ function X(e) {
|
|
|
1288
1288
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1289
1289
|
}
|
|
1290
1290
|
function Yt(e) {
|
|
1291
|
-
var o, a, r,
|
|
1291
|
+
var o, a, r, l, d, c;
|
|
1292
1292
|
function t() {
|
|
1293
|
-
var
|
|
1294
|
-
const
|
|
1295
|
-
if (!
|
|
1293
|
+
var u;
|
|
1294
|
+
const m = e.image || e.src;
|
|
1295
|
+
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
1296
1296
|
// images, otherwise you can supply this prop manually
|
|
1297
|
-
!(typeof
|
|
1297
|
+
!(typeof m == "string" && (m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/))))
|
|
1298
1298
|
return e.srcset;
|
|
1299
1299
|
if (!e.noWebp) {
|
|
1300
|
-
if (e.srcset && ((
|
|
1300
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1301
1301
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1302
|
-
return console.debug("Removed given srcset"), X(
|
|
1302
|
+
return console.debug("Removed given srcset"), X(m);
|
|
1303
1303
|
} else if (e.image && !e.srcset)
|
|
1304
|
-
return X(
|
|
1305
|
-
return X(
|
|
1304
|
+
return X(m);
|
|
1305
|
+
return X(m);
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
1308
|
function n() {
|
|
@@ -1319,12 +1319,11 @@ function Yt(e) {
|
|
|
1319
1319
|
};
|
|
1320
1320
|
return e.aspectRatio ? h : void 0;
|
|
1321
1321
|
}
|
|
1322
|
-
return
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
/* @__PURE__ */ l(
|
|
1322
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1323
|
+
/* @__PURE__ */ B(E, { children: [
|
|
1324
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1325
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1326
|
+
/* @__PURE__ */ s(
|
|
1328
1327
|
"img",
|
|
1329
1328
|
{
|
|
1330
1329
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1336,33 +1335,33 @@ function Yt(e) {
|
|
|
1336
1335
|
objectFit: e.backgroundSize || "cover",
|
|
1337
1336
|
...i()
|
|
1338
1337
|
},
|
|
1339
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1338
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
|
|
1340
1339
|
src: e.image,
|
|
1341
1340
|
srcSet: t(),
|
|
1342
1341
|
sizes: e.sizes
|
|
1343
1342
|
}
|
|
1344
1343
|
)
|
|
1345
1344
|
] }),
|
|
1346
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1345
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1347
1346
|
"div",
|
|
1348
1347
|
{
|
|
1349
|
-
className: "builder-image-sizer div-
|
|
1348
|
+
className: "builder-image-sizer div-9dac2184",
|
|
1350
1349
|
style: {
|
|
1351
1350
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1352
1351
|
}
|
|
1353
1352
|
}
|
|
1354
1353
|
) : null,
|
|
1355
|
-
(
|
|
1356
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1354
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1355
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1357
1356
|
] }),
|
|
1358
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1359
1358
|
opacity: 1;
|
|
1360
1359
|
transition: opacity 0.2s ease-in-out;
|
|
1361
|
-
}.div-
|
|
1360
|
+
}.div-9dac2184 {
|
|
1362
1361
|
width: 100%;
|
|
1363
1362
|
pointer-events: none;
|
|
1364
1363
|
font-size: 0;
|
|
1365
|
-
}.div-
|
|
1364
|
+
}.div-9dac2184-2 {
|
|
1366
1365
|
display: flex;
|
|
1367
1366
|
flex-direction: column;
|
|
1368
1367
|
align-items: stretch;
|
|
@@ -1375,7 +1374,7 @@ function Yt(e) {
|
|
|
1375
1374
|
] });
|
|
1376
1375
|
}
|
|
1377
1376
|
function Qt(e) {
|
|
1378
|
-
return /* @__PURE__ */
|
|
1377
|
+
return /* @__PURE__ */ s(
|
|
1379
1378
|
"section",
|
|
1380
1379
|
{
|
|
1381
1380
|
...e.attributes,
|
|
@@ -1521,8 +1520,8 @@ const Z = {
|
|
|
1521
1520
|
}
|
|
1522
1521
|
}, xe = (e) => e.toString();
|
|
1523
1522
|
function Zt(e) {
|
|
1524
|
-
var
|
|
1525
|
-
const [t, n] =
|
|
1523
|
+
var m;
|
|
1524
|
+
const [t, n] = R(() => []);
|
|
1526
1525
|
function i() {
|
|
1527
1526
|
return !!(e.grid || e.oneAtATime);
|
|
1528
1527
|
}
|
|
@@ -1539,7 +1538,7 @@ function Zt(e) {
|
|
|
1539
1538
|
};
|
|
1540
1539
|
}
|
|
1541
1540
|
function a() {
|
|
1542
|
-
const
|
|
1541
|
+
const k = {
|
|
1543
1542
|
...{
|
|
1544
1543
|
display: "flex",
|
|
1545
1544
|
flexDirection: "column"
|
|
@@ -1548,75 +1547,75 @@ function Zt(e) {
|
|
|
1548
1547
|
cursor: "pointer"
|
|
1549
1548
|
};
|
|
1550
1549
|
return Object.fromEntries(
|
|
1551
|
-
Object.entries(
|
|
1550
|
+
Object.entries(k).filter(([g, v]) => v !== void 0)
|
|
1552
1551
|
);
|
|
1553
1552
|
}
|
|
1554
|
-
function r(
|
|
1555
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1553
|
+
function r(u) {
|
|
1554
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1556
1555
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1556
|
+
function l(u) {
|
|
1557
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1559
1558
|
}
|
|
1560
1559
|
function d() {
|
|
1561
|
-
let
|
|
1560
|
+
let u = null;
|
|
1562
1561
|
if (e.grid && t.length && document) {
|
|
1563
|
-
const
|
|
1564
|
-
let
|
|
1565
|
-
`.builder-accordion-title[data-index="${
|
|
1562
|
+
const g = t[0];
|
|
1563
|
+
let y = document.querySelector(
|
|
1564
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1566
1565
|
);
|
|
1567
|
-
if (
|
|
1568
|
-
let b =
|
|
1569
|
-
for (;
|
|
1570
|
-
if (
|
|
1571
|
-
if (
|
|
1566
|
+
if (u = g, y) {
|
|
1567
|
+
let b = y.getBoundingClientRect();
|
|
1568
|
+
for (; y = y && y.nextElementSibling; )
|
|
1569
|
+
if (y) {
|
|
1570
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1572
1571
|
continue;
|
|
1573
|
-
const p =
|
|
1572
|
+
const p = y.getBoundingClientRect();
|
|
1574
1573
|
if (p.left > b.left) {
|
|
1575
1574
|
const C = parseInt(
|
|
1576
|
-
|
|
1575
|
+
y.getAttribute("data-index") || "",
|
|
1577
1576
|
10
|
|
1578
1577
|
);
|
|
1579
|
-
isNaN(C) || (b = p,
|
|
1578
|
+
isNaN(C) || (b = p, u = C);
|
|
1580
1579
|
} else
|
|
1581
1580
|
break;
|
|
1582
1581
|
}
|
|
1583
1582
|
}
|
|
1584
1583
|
}
|
|
1585
|
-
return typeof
|
|
1584
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1586
1585
|
}
|
|
1587
1586
|
function c() {
|
|
1588
|
-
const
|
|
1587
|
+
const u = {
|
|
1589
1588
|
order: typeof d() == "number" ? d() : void 0,
|
|
1590
1589
|
...e.grid && {
|
|
1591
1590
|
width: "100%"
|
|
1592
1591
|
}
|
|
1593
1592
|
};
|
|
1594
1593
|
return Object.fromEntries(
|
|
1595
|
-
Object.entries(
|
|
1594
|
+
Object.entries(u).filter(([k, g]) => g !== void 0)
|
|
1596
1595
|
);
|
|
1597
1596
|
}
|
|
1598
|
-
function h(
|
|
1599
|
-
t.includes(
|
|
1597
|
+
function h(u) {
|
|
1598
|
+
t.includes(u) ? n(i() ? [] : t.filter((k) => k !== u)) : n(i() ? [u] : t.concat(u));
|
|
1600
1599
|
}
|
|
1601
|
-
return /* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (m = e.items) == null ? void 0 : m.map((u, k) => /* @__PURE__ */ B(Xe.Fragment, { children: [
|
|
1601
|
+
/* @__PURE__ */ s(
|
|
1603
1602
|
"div",
|
|
1604
1603
|
{
|
|
1605
|
-
className: r(
|
|
1604
|
+
className: r(k),
|
|
1606
1605
|
style: {
|
|
1607
1606
|
...a(),
|
|
1608
1607
|
...e.grid && {
|
|
1609
1608
|
width: e.gridRowWidth,
|
|
1610
|
-
order: d() !== null ? xe(
|
|
1609
|
+
order: d() !== null ? xe(k) : xe(k + 1)
|
|
1611
1610
|
}
|
|
1612
1611
|
},
|
|
1613
|
-
"data-index":
|
|
1614
|
-
onClick: (
|
|
1615
|
-
children: /* @__PURE__ */
|
|
1612
|
+
"data-index": k,
|
|
1613
|
+
onClick: (g) => h(k),
|
|
1614
|
+
children: /* @__PURE__ */ s(
|
|
1616
1615
|
F,
|
|
1617
1616
|
{
|
|
1618
|
-
blocks:
|
|
1619
|
-
path: `items.${
|
|
1617
|
+
blocks: u.title,
|
|
1618
|
+
path: `items.${k}.title`,
|
|
1620
1619
|
parent: e.builderBlock.id,
|
|
1621
1620
|
context: e.builderContext,
|
|
1622
1621
|
registeredComponents: e.builderComponents,
|
|
@@ -1625,16 +1624,16 @@ function Zt(e) {
|
|
|
1625
1624
|
)
|
|
1626
1625
|
}
|
|
1627
1626
|
),
|
|
1628
|
-
t.includes(
|
|
1627
|
+
t.includes(k) ? /* @__PURE__ */ s(
|
|
1629
1628
|
"div",
|
|
1630
1629
|
{
|
|
1631
|
-
className:
|
|
1630
|
+
className: l(k),
|
|
1632
1631
|
style: c(),
|
|
1633
|
-
children: /* @__PURE__ */
|
|
1632
|
+
children: /* @__PURE__ */ s(
|
|
1634
1633
|
F,
|
|
1635
1634
|
{
|
|
1636
|
-
blocks:
|
|
1637
|
-
path: `items.${
|
|
1635
|
+
blocks: u.detail,
|
|
1636
|
+
path: `items.${k}.detail`,
|
|
1638
1637
|
parent: e.builderBlock.id,
|
|
1639
1638
|
context: e.builderContext,
|
|
1640
1639
|
registeredComponents: e.builderComponents,
|
|
@@ -1643,7 +1642,7 @@ function Zt(e) {
|
|
|
1643
1642
|
)
|
|
1644
1643
|
}
|
|
1645
1644
|
) : null
|
|
1646
|
-
] },
|
|
1645
|
+
] }, k)) });
|
|
1647
1646
|
}
|
|
1648
1647
|
const en = {
|
|
1649
1648
|
name: "Core:Button",
|
|
@@ -1860,7 +1859,7 @@ const en = {
|
|
|
1860
1859
|
});
|
|
1861
1860
|
}
|
|
1862
1861
|
const n = e.get("columns");
|
|
1863
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1862
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1864
1863
|
}
|
|
1865
1864
|
}, {
|
|
1866
1865
|
name: "space",
|
|
@@ -1914,17 +1913,17 @@ const en = {
|
|
|
1914
1913
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1915
1914
|
onChange: (e) => {
|
|
1916
1915
|
e.delete("srcset"), e.delete("noWebp");
|
|
1917
|
-
function n(r,
|
|
1916
|
+
function n(r, l = 6e4) {
|
|
1918
1917
|
return new Promise((d, c) => {
|
|
1919
1918
|
const h = document.createElement("img");
|
|
1920
|
-
let
|
|
1919
|
+
let m = !1;
|
|
1921
1920
|
h.onload = () => {
|
|
1922
|
-
|
|
1923
|
-
}, h.addEventListener("error", (
|
|
1924
|
-
console.warn("Image load failed",
|
|
1921
|
+
m = !0, d(h);
|
|
1922
|
+
}, h.addEventListener("error", (u) => {
|
|
1923
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1925
1924
|
}), h.src = r, setTimeout(() => {
|
|
1926
|
-
|
|
1927
|
-
},
|
|
1925
|
+
m || c(new Error("Image load timed out"));
|
|
1926
|
+
}, l);
|
|
1928
1927
|
});
|
|
1929
1928
|
}
|
|
1930
1929
|
function i(r) {
|
|
@@ -1935,8 +1934,8 @@ const en = {
|
|
|
1935
1934
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1936
1935
|
}), o && (!a || a === 0.7041))
|
|
1937
1936
|
return n(o).then((r) => {
|
|
1938
|
-
const
|
|
1939
|
-
e.get("image") === o && (!
|
|
1937
|
+
const l = e.get("aspectRatio");
|
|
1938
|
+
e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1940
1939
|
});
|
|
1941
1940
|
}
|
|
1942
1941
|
}, {
|
|
@@ -2061,7 +2060,7 @@ const en = {
|
|
|
2061
2060
|
};
|
|
2062
2061
|
function sn(e) {
|
|
2063
2062
|
var t, n, i;
|
|
2064
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ s(
|
|
2065
2064
|
"div",
|
|
2066
2065
|
{
|
|
2067
2066
|
style: {
|
|
@@ -2070,7 +2069,7 @@ function sn(e) {
|
|
|
2070
2069
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2071
2070
|
"builder-slot": e.name
|
|
2072
2071
|
},
|
|
2073
|
-
children: /* @__PURE__ */
|
|
2072
|
+
children: /* @__PURE__ */ s(
|
|
2074
2073
|
F,
|
|
2075
2074
|
{
|
|
2076
2075
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2266,7 +2265,7 @@ const cn = {
|
|
|
2266
2265
|
};
|
|
2267
2266
|
function un(e) {
|
|
2268
2267
|
var a;
|
|
2269
|
-
const [t, n] =
|
|
2268
|
+
const [t, n] = R(
|
|
2270
2269
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2271
2270
|
);
|
|
2272
2271
|
function i(r) {
|
|
@@ -2275,8 +2274,8 @@ function un(e) {
|
|
|
2275
2274
|
function o(r) {
|
|
2276
2275
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2277
2276
|
}
|
|
2278
|
-
return /* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2278
|
+
/* @__PURE__ */ s(
|
|
2280
2279
|
"div",
|
|
2281
2280
|
{
|
|
2282
2281
|
className: "builder-tabs-wrap",
|
|
@@ -2286,19 +2285,19 @@ function un(e) {
|
|
|
2286
2285
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2287
2286
|
overflow: "auto"
|
|
2288
2287
|
},
|
|
2289
|
-
children: (a = e.tabs) == null ? void 0 : a.map((r,
|
|
2288
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
|
|
2290
2289
|
"span",
|
|
2291
2290
|
{
|
|
2292
|
-
className: `builder-tab-wrap ${t ===
|
|
2291
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2293
2292
|
style: {
|
|
2294
|
-
...t ===
|
|
2293
|
+
...t === l ? e.activeTabStyle : {}
|
|
2295
2294
|
},
|
|
2296
|
-
onClick: (d) => o(
|
|
2297
|
-
children: /* @__PURE__ */
|
|
2295
|
+
onClick: (d) => o(l),
|
|
2296
|
+
children: /* @__PURE__ */ s(
|
|
2298
2297
|
F,
|
|
2299
2298
|
{
|
|
2300
2299
|
parent: e.builderBlock.id,
|
|
2301
|
-
path: `tabs.${
|
|
2300
|
+
path: `tabs.${l}.label`,
|
|
2302
2301
|
blocks: r.label,
|
|
2303
2302
|
context: e.builderContext,
|
|
2304
2303
|
registeredComponents: e.builderComponents,
|
|
@@ -2306,11 +2305,11 @@ function un(e) {
|
|
|
2306
2305
|
}
|
|
2307
2306
|
)
|
|
2308
2307
|
},
|
|
2309
|
-
|
|
2308
|
+
l
|
|
2310
2309
|
))
|
|
2311
2310
|
}
|
|
2312
2311
|
),
|
|
2313
|
-
i(t) ? /* @__PURE__ */
|
|
2312
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2314
2313
|
F,
|
|
2315
2314
|
{
|
|
2316
2315
|
parent: e.builderBlock.id,
|
|
@@ -2348,7 +2347,7 @@ const mn = {
|
|
|
2348
2347
|
};
|
|
2349
2348
|
function fn(e) {
|
|
2350
2349
|
var t;
|
|
2351
|
-
return /* @__PURE__ */
|
|
2350
|
+
return /* @__PURE__ */ s(
|
|
2352
2351
|
"div",
|
|
2353
2352
|
{
|
|
2354
2353
|
className: "builder-text",
|
|
@@ -2383,10 +2382,10 @@ const hn = {
|
|
|
2383
2382
|
}]
|
|
2384
2383
|
};
|
|
2385
2384
|
function gn(e) {
|
|
2386
|
-
const t = O(null), [n, i] =
|
|
2385
|
+
const t = O(null), [n, i] = R(() => []), [o, a] = R(() => []);
|
|
2387
2386
|
return A(() => {
|
|
2388
|
-
var
|
|
2389
|
-
if (!((
|
|
2387
|
+
var l;
|
|
2388
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2390
2389
|
return;
|
|
2391
2390
|
const r = t.current.getElementsByTagName("script");
|
|
2392
2391
|
for (let d = 0; d < r.length; d++) {
|
|
@@ -2411,7 +2410,7 @@ function gn(e) {
|
|
|
2411
2410
|
}
|
|
2412
2411
|
}
|
|
2413
2412
|
}
|
|
2414
|
-
}, []), /* @__PURE__ */
|
|
2413
|
+
}, []), /* @__PURE__ */ s(
|
|
2415
2414
|
"div",
|
|
2416
2415
|
{
|
|
2417
2416
|
ref: t,
|
|
@@ -2437,28 +2436,28 @@ const bn = {
|
|
|
2437
2436
|
}]
|
|
2438
2437
|
}, pn = ["text/javascript", "application/javascript", "application/ecmascript"], yn = (e) => pn.includes(e.type);
|
|
2439
2438
|
function xn(e) {
|
|
2440
|
-
const t = O(null), [n, i] =
|
|
2439
|
+
const t = O(null), [n, i] = R(() => []), [o, a] = R(() => []), [r, l] = R(() => !1);
|
|
2441
2440
|
function d() {
|
|
2442
2441
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2443
2442
|
return;
|
|
2444
2443
|
const c = t.current.getElementsByTagName("script");
|
|
2445
2444
|
for (let h = 0; h < c.length; h++) {
|
|
2446
|
-
const
|
|
2447
|
-
if (
|
|
2448
|
-
n.push(
|
|
2449
|
-
const
|
|
2450
|
-
|
|
2451
|
-
} else if (yn(
|
|
2445
|
+
const m = c[h];
|
|
2446
|
+
if (m.src && !n.includes(m.src)) {
|
|
2447
|
+
n.push(m.src);
|
|
2448
|
+
const u = document.createElement("script");
|
|
2449
|
+
u.async = !0, u.src = m.src, document.head.appendChild(u);
|
|
2450
|
+
} else if (yn(m) && !o.includes(m.innerText))
|
|
2452
2451
|
try {
|
|
2453
|
-
o.push(
|
|
2454
|
-
} catch (
|
|
2455
|
-
console.warn("`Embed`: Error running script:",
|
|
2452
|
+
o.push(m.innerText), new Function(m.innerText)();
|
|
2453
|
+
} catch (u) {
|
|
2454
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2456
2455
|
}
|
|
2457
2456
|
}
|
|
2458
2457
|
}
|
|
2459
2458
|
return A(() => {
|
|
2460
|
-
t.current && !r && (
|
|
2461
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
2459
|
+
t.current && !r && (l(!0), d());
|
|
2460
|
+
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2462
2461
|
"div",
|
|
2463
2462
|
{
|
|
2464
2463
|
className: "builder-embed",
|
|
@@ -2709,114 +2708,113 @@ const vn = {
|
|
|
2709
2708
|
return Sn.includes(e) ? e : "production";
|
|
2710
2709
|
};
|
|
2711
2710
|
function Cn(e) {
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
const f = {
|
|
2711
|
+
const t = O(null), [n, i] = R(() => "unsubmitted"), [o, a] = R(() => null), [r, l] = R(() => "");
|
|
2712
|
+
function d(m) {
|
|
2713
|
+
var k, g;
|
|
2714
|
+
const u = {
|
|
2717
2715
|
...e.builderContext.rootState,
|
|
2718
|
-
...
|
|
2716
|
+
...m
|
|
2719
2717
|
};
|
|
2720
|
-
e.builderContext.rootSetState ? (
|
|
2718
|
+
e.builderContext.rootSetState ? (g = (k = e.builderContext).rootSetState) == null || g.call(k, u) : e.builderContext.rootState = u;
|
|
2721
2719
|
}
|
|
2722
2720
|
function c() {
|
|
2723
2721
|
return W() && e.previewState || n;
|
|
2724
2722
|
}
|
|
2725
|
-
function h(
|
|
2726
|
-
var
|
|
2727
|
-
const
|
|
2723
|
+
function h(m) {
|
|
2724
|
+
var k;
|
|
2725
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2728
2726
|
if (e.sendSubmissionsTo === "zapier")
|
|
2729
|
-
|
|
2730
|
-
else if (
|
|
2727
|
+
m.preventDefault();
|
|
2728
|
+
else if (u) {
|
|
2731
2729
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2732
|
-
|
|
2730
|
+
m.preventDefault();
|
|
2733
2731
|
return;
|
|
2734
2732
|
}
|
|
2735
|
-
|
|
2736
|
-
const
|
|
2737
|
-
let
|
|
2738
|
-
const
|
|
2733
|
+
m.preventDefault();
|
|
2734
|
+
const g = m.currentTarget || m.target, v = e.customHeaders || {};
|
|
2735
|
+
let y;
|
|
2736
|
+
const b = new FormData(g), p = Array.from(g.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
|
|
2739
2737
|
let S;
|
|
2740
|
-
const
|
|
2741
|
-
if (
|
|
2742
|
-
if (
|
|
2743
|
-
if (
|
|
2744
|
-
return S =
|
|
2745
|
-
key:
|
|
2738
|
+
const x = f.name;
|
|
2739
|
+
if (f instanceof HTMLInputElement)
|
|
2740
|
+
if (f.type === "radio") {
|
|
2741
|
+
if (f.checked)
|
|
2742
|
+
return S = f.name, {
|
|
2743
|
+
key: x,
|
|
2746
2744
|
value: S
|
|
2747
2745
|
};
|
|
2748
|
-
} else if (
|
|
2749
|
-
S =
|
|
2750
|
-
else if (
|
|
2751
|
-
const
|
|
2752
|
-
isNaN(
|
|
2746
|
+
} else if (f.type === "checkbox")
|
|
2747
|
+
S = f.checked;
|
|
2748
|
+
else if (f.type === "number" || f.type === "range") {
|
|
2749
|
+
const T = f.valueAsNumber;
|
|
2750
|
+
isNaN(T) || (S = T);
|
|
2753
2751
|
} else
|
|
2754
|
-
|
|
2752
|
+
f.type === "file" ? S = f.files : S = f.value;
|
|
2755
2753
|
else
|
|
2756
|
-
S =
|
|
2754
|
+
S = f.value;
|
|
2757
2755
|
return {
|
|
2758
|
-
key:
|
|
2756
|
+
key: x,
|
|
2759
2757
|
value: S
|
|
2760
2758
|
};
|
|
2761
2759
|
});
|
|
2762
|
-
let
|
|
2763
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2764
|
-
(
|
|
2765
|
-
}),
|
|
2766
|
-
|
|
2760
|
+
let C = e.contentType;
|
|
2761
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(p).forEach(({ value: f }) => {
|
|
2762
|
+
(f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
|
|
2763
|
+
}), C !== "application/json")
|
|
2764
|
+
y = b;
|
|
2767
2765
|
else {
|
|
2768
|
-
const
|
|
2769
|
-
Array.from(
|
|
2770
|
-
Ne(
|
|
2771
|
-
}),
|
|
2766
|
+
const f = {};
|
|
2767
|
+
Array.from(p).forEach(({ value: S, key: x }) => {
|
|
2768
|
+
Ne(f, x, S);
|
|
2769
|
+
}), y = JSON.stringify(f);
|
|
2772
2770
|
}
|
|
2773
|
-
|
|
2774
|
-
const
|
|
2775
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2771
|
+
C && C !== "multipart/form-data" && (u && ((k = e.action) != null && k.includes("zapier.com")) || (v["content-type"] = C));
|
|
2772
|
+
const P = new CustomEvent("presubmit", { detail: { body: y } });
|
|
2773
|
+
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
2776
2774
|
return;
|
|
2777
2775
|
i("sending");
|
|
2778
|
-
const
|
|
2776
|
+
const I = `${kn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2779
2777
|
e.sendSubmissionsToEmail || ""
|
|
2780
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2781
|
-
Ie(
|
|
2782
|
-
async (
|
|
2778
|
+
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? I : e.action;
|
|
2779
|
+
Ie(w), fetch(w, { body: y, headers: v, method: e.method || "post" }).then(
|
|
2780
|
+
async (f) => {
|
|
2783
2781
|
let S;
|
|
2784
|
-
const
|
|
2785
|
-
if (
|
|
2786
|
-
let
|
|
2787
|
-
|
|
2782
|
+
const x = f.headers.get("content-type");
|
|
2783
|
+
if (x && x.indexOf("application/json") !== -1 ? S = await f.json() : S = await f.text(), !f.ok && e.errorMessagePath) {
|
|
2784
|
+
let T = Be(S, e.errorMessagePath);
|
|
2785
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
2788
2786
|
}
|
|
2789
|
-
if (a(S), i(
|
|
2790
|
-
const
|
|
2791
|
-
detail: { res:
|
|
2787
|
+
if (a(S), i(f.ok ? "success" : "error"), f.ok) {
|
|
2788
|
+
const T = new CustomEvent("submit:success", {
|
|
2789
|
+
detail: { res: f, body: S }
|
|
2792
2790
|
});
|
|
2793
2791
|
if (t.current) {
|
|
2794
|
-
if (t.current.dispatchEvent(
|
|
2792
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
2795
2793
|
return;
|
|
2796
2794
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2797
2795
|
}
|
|
2798
2796
|
if (e.successUrl)
|
|
2799
2797
|
if (t.current) {
|
|
2800
|
-
const
|
|
2798
|
+
const V = new CustomEvent("route", {
|
|
2801
2799
|
detail: { url: e.successUrl }
|
|
2802
2800
|
});
|
|
2803
|
-
t.current.dispatchEvent(
|
|
2801
|
+
t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
|
|
2804
2802
|
} else
|
|
2805
2803
|
location.href = e.successUrl;
|
|
2806
2804
|
}
|
|
2807
2805
|
},
|
|
2808
|
-
(
|
|
2806
|
+
(f) => {
|
|
2809
2807
|
const S = new CustomEvent("submit:error", {
|
|
2810
|
-
detail: { error:
|
|
2808
|
+
detail: { error: f }
|
|
2811
2809
|
});
|
|
2812
|
-
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(
|
|
2810
|
+
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(f), i("error"));
|
|
2813
2811
|
}
|
|
2814
2812
|
);
|
|
2815
2813
|
}
|
|
2816
2814
|
}
|
|
2817
|
-
return /* @__PURE__ */
|
|
2815
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
2818
2816
|
" ",
|
|
2819
|
-
/* @__PURE__ */
|
|
2817
|
+
/* @__PURE__ */ B(
|
|
2820
2818
|
"form",
|
|
2821
2819
|
{
|
|
2822
2820
|
validate: e.validate,
|
|
@@ -2824,20 +2822,11 @@ function Cn(e) {
|
|
|
2824
2822
|
action: !e.sendWithJs && e.action,
|
|
2825
2823
|
method: e.method,
|
|
2826
2824
|
name: e.name,
|
|
2827
|
-
onSubmit: (
|
|
2825
|
+
onSubmit: (m) => h(m),
|
|
2828
2826
|
...e.attributes,
|
|
2829
2827
|
children: [
|
|
2830
|
-
e.
|
|
2831
|
-
|
|
2832
|
-
{
|
|
2833
|
-
block: y,
|
|
2834
|
-
context: e.builderContext,
|
|
2835
|
-
registeredComponents: e.builderComponents,
|
|
2836
|
-
linkComponent: e.builderLinkComponent
|
|
2837
|
-
},
|
|
2838
|
-
`form-block-${f}`
|
|
2839
|
-
)) }) : null,
|
|
2840
|
-
c() === "error" ? /* @__PURE__ */ l(
|
|
2828
|
+
e.children,
|
|
2829
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2841
2830
|
F,
|
|
2842
2831
|
{
|
|
2843
2832
|
path: "errorMessage",
|
|
@@ -2845,7 +2834,7 @@ function Cn(e) {
|
|
|
2845
2834
|
context: e.builderContext
|
|
2846
2835
|
}
|
|
2847
2836
|
) : null,
|
|
2848
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2837
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2849
2838
|
F,
|
|
2850
2839
|
{
|
|
2851
2840
|
path: "sendingMessage",
|
|
@@ -2853,8 +2842,8 @@ function Cn(e) {
|
|
|
2853
2842
|
context: e.builderContext
|
|
2854
2843
|
}
|
|
2855
2844
|
) : null,
|
|
2856
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2857
|
-
c() === "success" ? /* @__PURE__ */
|
|
2845
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
|
|
2846
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2858
2847
|
F,
|
|
2859
2848
|
{
|
|
2860
2849
|
path: "successMessage",
|
|
@@ -2866,7 +2855,7 @@ function Cn(e) {
|
|
|
2866
2855
|
}
|
|
2867
2856
|
),
|
|
2868
2857
|
" ",
|
|
2869
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
|
|
2870
2859
|
" "
|
|
2871
2860
|
] });
|
|
2872
2861
|
}
|
|
@@ -2992,7 +2981,7 @@ function En(e) {
|
|
|
2992
2981
|
name: e.name,
|
|
2993
2982
|
required: e.required
|
|
2994
2983
|
},
|
|
2995
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2984
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2996
2985
|
);
|
|
2997
2986
|
}
|
|
2998
2987
|
const Rn = {
|
|
@@ -3022,7 +3011,7 @@ const Rn = {
|
|
|
3022
3011
|
// canHaveChildren: true,
|
|
3023
3012
|
};
|
|
3024
3013
|
function Pn(e) {
|
|
3025
|
-
return /* @__PURE__ */
|
|
3014
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3026
3015
|
}
|
|
3027
3016
|
const Bn = {
|
|
3028
3017
|
name: "Form:TextArea",
|
|
@@ -3062,7 +3051,7 @@ const Bn = {
|
|
|
3062
3051
|
noWrap: !0
|
|
3063
3052
|
};
|
|
3064
3053
|
function Vn(e) {
|
|
3065
|
-
return /* @__PURE__ */
|
|
3054
|
+
return /* @__PURE__ */ s(
|
|
3066
3055
|
"textarea",
|
|
3067
3056
|
{
|
|
3068
3057
|
...e.attributes,
|
|
@@ -3090,7 +3079,7 @@ const An = {
|
|
|
3090
3079
|
static: !0
|
|
3091
3080
|
};
|
|
3092
3081
|
function Nn(e) {
|
|
3093
|
-
return /* @__PURE__ */
|
|
3082
|
+
return /* @__PURE__ */ s(
|
|
3094
3083
|
"img",
|
|
3095
3084
|
{
|
|
3096
3085
|
style: {
|
|
@@ -3190,7 +3179,7 @@ const Wn = {
|
|
|
3190
3179
|
}
|
|
3191
3180
|
};
|
|
3192
3181
|
function Fn(e) {
|
|
3193
|
-
var i, o, a, r,
|
|
3182
|
+
var i, o, a, r, l, d, c;
|
|
3194
3183
|
function t() {
|
|
3195
3184
|
return {
|
|
3196
3185
|
...e.autoPlay === !0 ? {
|
|
@@ -3215,14 +3204,14 @@ function Fn(e) {
|
|
|
3215
3204
|
...t()
|
|
3216
3205
|
};
|
|
3217
3206
|
}
|
|
3218
|
-
return /* @__PURE__ */
|
|
3207
|
+
return /* @__PURE__ */ B(
|
|
3219
3208
|
"div",
|
|
3220
3209
|
{
|
|
3221
3210
|
style: {
|
|
3222
3211
|
position: "relative"
|
|
3223
3212
|
},
|
|
3224
3213
|
children: [
|
|
3225
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ s(
|
|
3226
3215
|
"video",
|
|
3227
3216
|
{
|
|
3228
3217
|
className: "builder-video",
|
|
@@ -3236,7 +3225,6 @@ function Fn(e) {
|
|
|
3236
3225
|
objectPosition: e.position,
|
|
3237
3226
|
// Hack to get object fit to work as expected and
|
|
3238
3227
|
// not have the video overflow
|
|
3239
|
-
zIndex: 2,
|
|
3240
3228
|
borderRadius: "1px",
|
|
3241
3229
|
...e.aspectRatio ? {
|
|
3242
3230
|
position: "absolute"
|
|
@@ -3244,10 +3232,10 @@ function Fn(e) {
|
|
|
3244
3232
|
},
|
|
3245
3233
|
src: e.video || "no-src",
|
|
3246
3234
|
poster: e.posterImage,
|
|
3247
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3235
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3248
3236
|
}
|
|
3249
3237
|
),
|
|
3250
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
3238
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
|
|
3251
3239
|
"div",
|
|
3252
3240
|
{
|
|
3253
3241
|
style: {
|
|
@@ -3258,7 +3246,7 @@ function Fn(e) {
|
|
|
3258
3246
|
}
|
|
3259
3247
|
}
|
|
3260
3248
|
) : null,
|
|
3261
|
-
(
|
|
3249
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3262
3250
|
"div",
|
|
3263
3251
|
{
|
|
3264
3252
|
style: {
|
|
@@ -3269,7 +3257,7 @@ function Fn(e) {
|
|
|
3269
3257
|
children: e.children
|
|
3270
3258
|
}
|
|
3271
3259
|
) : null,
|
|
3272
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3260
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3273
3261
|
"div",
|
|
3274
3262
|
{
|
|
3275
3263
|
style: {
|
|
@@ -3347,7 +3335,7 @@ const $n = () => [{
|
|
|
3347
3335
|
}, {
|
|
3348
3336
|
component: Zt,
|
|
3349
3337
|
...Xt
|
|
3350
|
-
}, ...$n()],
|
|
3338
|
+
}, ...$n()], On = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3351
3339
|
function getAndSetVariantId() {
|
|
3352
3340
|
function setCookie(name, value, days) {
|
|
3353
3341
|
let expires = '';
|
|
@@ -3403,7 +3391,7 @@ const $n = () => [{
|
|
|
3403
3391
|
}).join('');
|
|
3404
3392
|
styleEl.innerHTML = newStyleStr;
|
|
3405
3393
|
}
|
|
3406
|
-
}`,
|
|
3394
|
+
}`, Dn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3407
3395
|
if (!navigator.cookieEnabled) {
|
|
3408
3396
|
return;
|
|
3409
3397
|
}
|
|
@@ -3437,16 +3425,16 @@ const $n = () => [{
|
|
|
3437
3425
|
thisScriptEl?.remove();
|
|
3438
3426
|
}
|
|
3439
3427
|
return;
|
|
3440
|
-
}`, Me = "builderIoAbTest", je = "builderIoRenderContent",
|
|
3428
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3441
3429
|
...t,
|
|
3442
3430
|
testVariationId: t.id,
|
|
3443
3431
|
id: e == null ? void 0 : e.id
|
|
3444
|
-
})),
|
|
3432
|
+
})), Ln = ({
|
|
3445
3433
|
canTrack: e,
|
|
3446
3434
|
content: t
|
|
3447
|
-
}) => !(!(
|
|
3448
|
-
window.${Me} = ${
|
|
3449
|
-
window.${je} = ${
|
|
3435
|
+
}) => !(!(j(t).length > 0) || !e || D()), Un = (e) => e === "react" || e === "reactNative", qe = Un($), _n = () => `
|
|
3436
|
+
window.${Me} = ${On}
|
|
3437
|
+
window.${je} = ${Dn}
|
|
3450
3438
|
`, Hn = (e, t) => `
|
|
3451
3439
|
window.${Me}(
|
|
3452
3440
|
"${t}",${JSON.stringify(e)}, ${qe}
|
|
@@ -3457,7 +3445,7 @@ const $n = () => [{
|
|
|
3457
3445
|
"${t}", "${e}", ${qe}
|
|
3458
3446
|
)`;
|
|
3459
3447
|
function oe(e) {
|
|
3460
|
-
return /* @__PURE__ */
|
|
3448
|
+
return /* @__PURE__ */ s(
|
|
3461
3449
|
"script",
|
|
3462
3450
|
{
|
|
3463
3451
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3520,16 +3508,16 @@ font-display: fallback;
|
|
|
3520
3508
|
font-weight: 400;
|
|
3521
3509
|
}
|
|
3522
3510
|
`.trim()), e.files)
|
|
3523
|
-
for (const
|
|
3524
|
-
if (!(String(Number(
|
|
3511
|
+
for (const l in e.files) {
|
|
3512
|
+
if (!(String(Number(l)) === l))
|
|
3525
3513
|
continue;
|
|
3526
|
-
const c = e.files[
|
|
3514
|
+
const c = e.files[l];
|
|
3527
3515
|
c && c !== i && (o += `
|
|
3528
3516
|
@font-face {
|
|
3529
3517
|
font-family: "${t}";
|
|
3530
3518
|
src: url('${c}') format('woff2');
|
|
3531
3519
|
font-display: fallback;
|
|
3532
|
-
font-weight: ${
|
|
3520
|
+
font-weight: ${l};
|
|
3533
3521
|
}
|
|
3534
3522
|
`.trim());
|
|
3535
3523
|
}
|
|
@@ -3561,37 +3549,37 @@ font-weight: ${s};
|
|
|
3561
3549
|
}
|
|
3562
3550
|
`, Xn = (e) => e ? "" : Qn, Zn = (e) => `variant-${e}`;
|
|
3563
3551
|
function ei(e) {
|
|
3564
|
-
var p, C,
|
|
3552
|
+
var p, C, P;
|
|
3565
3553
|
const t = O(null);
|
|
3566
|
-
function n(
|
|
3567
|
-
var
|
|
3568
|
-
const
|
|
3554
|
+
function n(I) {
|
|
3555
|
+
var f, S;
|
|
3556
|
+
const w = {
|
|
3569
3557
|
...e.builderContextSignal.rootState,
|
|
3570
|
-
...
|
|
3558
|
+
...I
|
|
3571
3559
|
};
|
|
3572
|
-
e.builderContextSignal.rootSetState ? (
|
|
3573
|
-
...
|
|
3574
|
-
rootState:
|
|
3560
|
+
e.builderContextSignal.rootSetState ? (S = (f = e.builderContextSignal).rootSetState) == null || S.call(f, w) : e.setBuilderContextSignal((x) => ({
|
|
3561
|
+
...x,
|
|
3562
|
+
rootState: w
|
|
3575
3563
|
}));
|
|
3576
3564
|
}
|
|
3577
|
-
function i(
|
|
3578
|
-
var
|
|
3579
|
-
const
|
|
3565
|
+
function i(I) {
|
|
3566
|
+
var f, S, x, T, V;
|
|
3567
|
+
const w = {
|
|
3580
3568
|
...e.builderContextSignal.content,
|
|
3581
|
-
...
|
|
3569
|
+
...I,
|
|
3582
3570
|
data: {
|
|
3583
|
-
...(
|
|
3584
|
-
...
|
|
3571
|
+
...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
|
|
3572
|
+
...I == null ? void 0 : I.data
|
|
3585
3573
|
},
|
|
3586
3574
|
meta: {
|
|
3587
|
-
...(
|
|
3588
|
-
...
|
|
3589
|
-
breakpoints: ((
|
|
3575
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
|
|
3576
|
+
...I == null ? void 0 : I.meta,
|
|
3577
|
+
breakpoints: ((x = I == null ? void 0 : I.meta) == null ? void 0 : x.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
|
|
3590
3578
|
}
|
|
3591
3579
|
};
|
|
3592
|
-
e.setBuilderContextSignal((
|
|
3593
|
-
...
|
|
3594
|
-
content:
|
|
3580
|
+
e.setBuilderContextSignal((N) => ({
|
|
3581
|
+
...N,
|
|
3582
|
+
content: w
|
|
3595
3583
|
}));
|
|
3596
3584
|
}
|
|
3597
3585
|
function o() {
|
|
@@ -3600,62 +3588,62 @@ function ei(e) {
|
|
|
3600
3588
|
"aria-hidden": !0
|
|
3601
3589
|
};
|
|
3602
3590
|
}
|
|
3603
|
-
const [a, r] =
|
|
3591
|
+
const [a, r] = R(
|
|
3604
3592
|
() => e.contentWrapper || "div"
|
|
3605
3593
|
);
|
|
3606
|
-
function
|
|
3594
|
+
function l(I) {
|
|
3607
3595
|
return Ye({
|
|
3608
3596
|
model: e.model,
|
|
3609
3597
|
trustedHosts: e.trustedHosts,
|
|
3610
3598
|
callbacks: {
|
|
3611
|
-
configureSdk: (
|
|
3612
|
-
var
|
|
3613
|
-
const { breakpoints:
|
|
3614
|
-
!
|
|
3599
|
+
configureSdk: (w) => {
|
|
3600
|
+
var x;
|
|
3601
|
+
const { breakpoints: f, contentId: S } = w;
|
|
3602
|
+
!S || S !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || f && i({
|
|
3615
3603
|
meta: {
|
|
3616
|
-
breakpoints:
|
|
3604
|
+
breakpoints: f
|
|
3617
3605
|
}
|
|
3618
3606
|
});
|
|
3619
3607
|
},
|
|
3620
|
-
animation: (
|
|
3621
|
-
$e(
|
|
3608
|
+
animation: (w) => {
|
|
3609
|
+
$e(w);
|
|
3622
3610
|
},
|
|
3623
|
-
contentUpdate: (
|
|
3624
|
-
i(
|
|
3611
|
+
contentUpdate: (w) => {
|
|
3612
|
+
i(w);
|
|
3625
3613
|
}
|
|
3626
3614
|
}
|
|
3627
|
-
})(
|
|
3615
|
+
})(I);
|
|
3628
3616
|
}
|
|
3629
|
-
const [d, c] =
|
|
3630
|
-
function
|
|
3631
|
-
var
|
|
3617
|
+
const [d, c] = R(() => ({})), [h, m] = R(() => ({})), [u, k] = R(() => !1);
|
|
3618
|
+
function g(I) {
|
|
3619
|
+
var w, f;
|
|
3632
3620
|
if (e.builderContextSignal.content) {
|
|
3633
|
-
const
|
|
3621
|
+
const S = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, x = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
|
|
3634
3622
|
ue({
|
|
3635
3623
|
apiHost: e.apiHost,
|
|
3636
3624
|
type: "click",
|
|
3637
|
-
canTrack:
|
|
3638
|
-
contentId:
|
|
3625
|
+
canTrack: z(e.canTrack),
|
|
3626
|
+
contentId: x,
|
|
3639
3627
|
apiKey: e.apiKey,
|
|
3640
|
-
variationId:
|
|
3641
|
-
...zn(
|
|
3642
|
-
unique: !
|
|
3628
|
+
variationId: S !== x ? S : void 0,
|
|
3629
|
+
...zn(I),
|
|
3630
|
+
unique: !u
|
|
3643
3631
|
});
|
|
3644
3632
|
}
|
|
3645
|
-
|
|
3633
|
+
u || k(!0);
|
|
3646
3634
|
}
|
|
3647
3635
|
function v() {
|
|
3648
|
-
var
|
|
3649
|
-
const
|
|
3650
|
-
Object.entries(
|
|
3651
|
-
if (!
|
|
3636
|
+
var w, f, S;
|
|
3637
|
+
const I = (S = (f = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : f.httpRequests) != null ? S : {};
|
|
3638
|
+
Object.entries(I).forEach(([x, T]) => {
|
|
3639
|
+
if (!T || h[x] || d[x] && !W())
|
|
3652
3640
|
return;
|
|
3653
|
-
h[
|
|
3654
|
-
const
|
|
3641
|
+
h[x] = !0;
|
|
3642
|
+
const V = T.replace(
|
|
3655
3643
|
/{{([^}]+)}}/g,
|
|
3656
|
-
(
|
|
3657
|
-
|
|
3658
|
-
code:
|
|
3644
|
+
(N, H) => String(
|
|
3645
|
+
L({
|
|
3646
|
+
code: H,
|
|
3659
3647
|
context: e.context || {},
|
|
3660
3648
|
localState: void 0,
|
|
3661
3649
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3663,18 +3651,18 @@ function ei(e) {
|
|
|
3663
3651
|
})
|
|
3664
3652
|
)
|
|
3665
3653
|
);
|
|
3666
|
-
Ie(
|
|
3654
|
+
Ie(V), fetch(V).then((N) => N.json()).then((N) => {
|
|
3667
3655
|
n({
|
|
3668
|
-
[
|
|
3669
|
-
}), d[
|
|
3670
|
-
}).catch((
|
|
3671
|
-
console.error("error fetching dynamic data",
|
|
3656
|
+
[x]: N
|
|
3657
|
+
}), d[x] = !0;
|
|
3658
|
+
}).catch((N) => {
|
|
3659
|
+
console.error("error fetching dynamic data", T, N);
|
|
3672
3660
|
}).finally(() => {
|
|
3673
|
-
h[
|
|
3661
|
+
h[x] = !1;
|
|
3674
3662
|
});
|
|
3675
3663
|
});
|
|
3676
3664
|
}
|
|
3677
|
-
function
|
|
3665
|
+
function y() {
|
|
3678
3666
|
W() && window.dispatchEvent(
|
|
3679
3667
|
new CustomEvent(
|
|
3680
3668
|
"builder:component:stateChange",
|
|
@@ -3690,10 +3678,10 @@ function ei(e) {
|
|
|
3690
3678
|
);
|
|
3691
3679
|
}
|
|
3692
3680
|
const b = O(!1);
|
|
3693
|
-
return b.current || (v(),
|
|
3694
|
-
var
|
|
3681
|
+
return b.current || (v(), y(), b.current = !0), A(() => {
|
|
3682
|
+
var I, w, f;
|
|
3695
3683
|
if (D()) {
|
|
3696
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
3684
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ke(), Je({
|
|
3697
3685
|
...e.locale ? {
|
|
3698
3686
|
locale: e.locale
|
|
3699
3687
|
} : {},
|
|
@@ -3705,48 +3693,48 @@ function ei(e) {
|
|
|
3705
3693
|
} : {}
|
|
3706
3694
|
}), Object.values(
|
|
3707
3695
|
e.builderContextSignal.componentInfos
|
|
3708
|
-
).forEach((
|
|
3709
|
-
var
|
|
3710
|
-
if (!e.model || !((
|
|
3711
|
-
const
|
|
3712
|
-
(
|
|
3696
|
+
).forEach((x) => {
|
|
3697
|
+
var T, V;
|
|
3698
|
+
if (!e.model || !((T = x.models) != null && T.length) || x.models.includes(e.model)) {
|
|
3699
|
+
const N = Ge(x);
|
|
3700
|
+
(V = window.parent) == null || V.postMessage(N, "*");
|
|
3713
3701
|
}
|
|
3714
3702
|
}), window.addEventListener(
|
|
3715
3703
|
"builder:component:stateChangeListenerActivated",
|
|
3716
|
-
|
|
3717
|
-
)), e.builderContextSignal.content &&
|
|
3718
|
-
const
|
|
3704
|
+
y
|
|
3705
|
+
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3706
|
+
const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, T = (w = e.builderContextSignal.content) == null ? void 0 : w.id, V = e.apiKey;
|
|
3719
3707
|
ue({
|
|
3720
3708
|
apiHost: e.apiHost,
|
|
3721
3709
|
type: "impression",
|
|
3722
3710
|
canTrack: !0,
|
|
3723
|
-
contentId:
|
|
3724
|
-
apiKey:
|
|
3725
|
-
variationId:
|
|
3711
|
+
contentId: T,
|
|
3712
|
+
apiKey: V,
|
|
3713
|
+
variationId: x !== T ? x : void 0
|
|
3726
3714
|
});
|
|
3727
3715
|
}
|
|
3728
3716
|
if (ae() && !W()) {
|
|
3729
|
-
const
|
|
3730
|
-
`builder.overrides.${
|
|
3731
|
-
),
|
|
3732
|
-
(
|
|
3717
|
+
const x = new URL(location.href).searchParams, T = x.get("builder.preview"), V = x.get(
|
|
3718
|
+
`builder.overrides.${T}`
|
|
3719
|
+
), N = x.get("apiKey") || x.get("builder.space");
|
|
3720
|
+
(T === "BUILDER_STUDIO" || T === e.model && N === e.apiKey && (!e.content || V === e.content.id)) && we({
|
|
3733
3721
|
model: e.model || "",
|
|
3734
3722
|
apiKey: e.apiKey,
|
|
3735
3723
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
3736
|
-
...
|
|
3724
|
+
...T === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
|
|
3737
3725
|
query: {
|
|
3738
3726
|
id: e.context.symbolId
|
|
3739
3727
|
}
|
|
3740
3728
|
} : {}
|
|
3741
|
-
}).then((
|
|
3742
|
-
|
|
3729
|
+
}).then((H) => {
|
|
3730
|
+
H && i(H);
|
|
3743
3731
|
});
|
|
3744
3732
|
}
|
|
3745
3733
|
}
|
|
3746
3734
|
}, []), A(() => {
|
|
3747
3735
|
e.content && i(e.content);
|
|
3748
3736
|
}, [e.content]), A(() => {
|
|
3749
|
-
|
|
3737
|
+
y();
|
|
3750
3738
|
}, [e.builderContextSignal.rootState]), A(() => {
|
|
3751
3739
|
e.data && n(e.data);
|
|
3752
3740
|
}, [e.data]), A(() => {
|
|
@@ -3754,19 +3742,19 @@ function ei(e) {
|
|
|
3754
3742
|
locale: e.locale
|
|
3755
3743
|
});
|
|
3756
3744
|
}, [e.locale]), A(() => () => {
|
|
3757
|
-
D() && (window.removeEventListener("message",
|
|
3745
|
+
D() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3758
3746
|
"builder:component:stateChangeListenerActivated",
|
|
3759
|
-
|
|
3747
|
+
y
|
|
3760
3748
|
));
|
|
3761
|
-
}, []), /* @__PURE__ */
|
|
3749
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
|
|
3762
3750
|
a,
|
|
3763
3751
|
{
|
|
3764
3752
|
ref: t,
|
|
3765
|
-
onClick: (
|
|
3753
|
+
onClick: (I) => g(I),
|
|
3766
3754
|
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3767
3755
|
"builder-model": e.model,
|
|
3768
3756
|
className: Zn(
|
|
3769
|
-
((C = e.content) == null ? void 0 : C.testVariationId) || ((
|
|
3757
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
3770
3758
|
),
|
|
3771
3759
|
style: {
|
|
3772
3760
|
display: !e.builderContextSignal.content && Ce() ? "none" : void 0
|
|
@@ -3778,7 +3766,7 @@ function ei(e) {
|
|
|
3778
3766
|
) : null });
|
|
3779
3767
|
}
|
|
3780
3768
|
function ti(e) {
|
|
3781
|
-
const [t, n] =
|
|
3769
|
+
const [t, n] = R(
|
|
3782
3770
|
() => `
|
|
3783
3771
|
${Yn({
|
|
3784
3772
|
cssCode: e.cssCode,
|
|
@@ -3790,8 +3778,8 @@ ${Gn({
|
|
|
3790
3778
|
${Xn(e.isNestedRender)}
|
|
3791
3779
|
`.trim()
|
|
3792
3780
|
);
|
|
3793
|
-
return /* @__PURE__ */
|
|
3794
|
-
|
|
3781
|
+
return /* @__PURE__ */ s(
|
|
3782
|
+
Y,
|
|
3795
3783
|
{
|
|
3796
3784
|
id: "builderio-content",
|
|
3797
3785
|
styles: t,
|
|
@@ -3804,9 +3792,9 @@ const ni = ({
|
|
|
3804
3792
|
data: t,
|
|
3805
3793
|
locale: n
|
|
3806
3794
|
}) => {
|
|
3807
|
-
var a, r,
|
|
3795
|
+
var a, r, l;
|
|
3808
3796
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3809
|
-
return (
|
|
3797
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
3810
3798
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3811
3799
|
}), {
|
|
3812
3800
|
...i,
|
|
@@ -3828,8 +3816,8 @@ const ni = ({
|
|
|
3828
3816
|
meta: e == null ? void 0 : e.meta
|
|
3829
3817
|
} : void 0;
|
|
3830
3818
|
function Te(e) {
|
|
3831
|
-
var c, h,
|
|
3832
|
-
const [t, n] =
|
|
3819
|
+
var c, h, m, u, k, g, v, y, b;
|
|
3820
|
+
const [t, n] = R(
|
|
3833
3821
|
() => {
|
|
3834
3822
|
var p, C;
|
|
3835
3823
|
return Mn({
|
|
@@ -3841,26 +3829,26 @@ function Te(e) {
|
|
|
3841
3829
|
}
|
|
3842
3830
|
);
|
|
3843
3831
|
function i(p) {
|
|
3844
|
-
|
|
3832
|
+
l((C) => ({
|
|
3845
3833
|
...C,
|
|
3846
3834
|
rootState: p
|
|
3847
3835
|
}));
|
|
3848
3836
|
}
|
|
3849
|
-
const [o, a] =
|
|
3837
|
+
const [o, a] = R(
|
|
3850
3838
|
() => [
|
|
3851
3839
|
...ve(),
|
|
3852
3840
|
...e.customComponents || []
|
|
3853
3841
|
].reduce(
|
|
3854
|
-
(p, { component: C, ...
|
|
3842
|
+
(p, { component: C, ...P }) => ({
|
|
3855
3843
|
...p,
|
|
3856
|
-
[
|
|
3844
|
+
[P.name]: {
|
|
3857
3845
|
component: C,
|
|
3858
|
-
...me(
|
|
3846
|
+
...me(P)
|
|
3859
3847
|
}
|
|
3860
3848
|
}),
|
|
3861
3849
|
{}
|
|
3862
3850
|
)
|
|
3863
|
-
), [r,
|
|
3851
|
+
), [r, l] = R(() => ({
|
|
3864
3852
|
content: ii({
|
|
3865
3853
|
content: e.content,
|
|
3866
3854
|
data: e.data
|
|
@@ -3880,9 +3868,9 @@ function Te(e) {
|
|
|
3880
3868
|
...ve(),
|
|
3881
3869
|
...e.customComponents || []
|
|
3882
3870
|
].reduce(
|
|
3883
|
-
(p, { component: C, ...
|
|
3871
|
+
(p, { component: C, ...P }) => ({
|
|
3884
3872
|
...p,
|
|
3885
|
-
[
|
|
3873
|
+
[P.name]: me(P)
|
|
3886
3874
|
}),
|
|
3887
3875
|
{}
|
|
3888
3876
|
),
|
|
@@ -3893,11 +3881,11 @@ function Te(e) {
|
|
|
3893
3881
|
model: e.model || ""
|
|
3894
3882
|
})), d = O(!1);
|
|
3895
3883
|
if (!d.current) {
|
|
3896
|
-
e.apiKey ||
|
|
3884
|
+
e.apiKey || J.error(
|
|
3897
3885
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3898
3886
|
);
|
|
3899
3887
|
const p = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3900
|
-
p &&
|
|
3888
|
+
p && L({
|
|
3901
3889
|
code: p,
|
|
3902
3890
|
context: e.context || {},
|
|
3903
3891
|
localState: void 0,
|
|
@@ -3908,13 +3896,13 @@ function Te(e) {
|
|
|
3908
3896
|
isExpression: !1
|
|
3909
3897
|
}), d.current = !0;
|
|
3910
3898
|
}
|
|
3911
|
-
return /* @__PURE__ */
|
|
3899
|
+
return /* @__PURE__ */ s(
|
|
3912
3900
|
Pe.Provider,
|
|
3913
3901
|
{
|
|
3914
3902
|
value: {
|
|
3915
3903
|
registeredComponents: o
|
|
3916
3904
|
},
|
|
3917
|
-
children: /* @__PURE__ */
|
|
3905
|
+
children: /* @__PURE__ */ B(
|
|
3918
3906
|
ei,
|
|
3919
3907
|
{
|
|
3920
3908
|
apiHost: e.apiHost,
|
|
@@ -3933,9 +3921,9 @@ function Te(e) {
|
|
|
3933
3921
|
contentWrapperProps: e.contentWrapperProps,
|
|
3934
3922
|
trustedHosts: e.trustedHosts,
|
|
3935
3923
|
isNestedRender: e.isNestedRender,
|
|
3936
|
-
setBuilderContextSignal:
|
|
3924
|
+
setBuilderContextSignal: l,
|
|
3937
3925
|
children: [
|
|
3938
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3926
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3939
3927
|
oe,
|
|
3940
3928
|
{
|
|
3941
3929
|
id: "builderio-variant-visibility",
|
|
@@ -3943,20 +3931,20 @@ function Te(e) {
|
|
|
3943
3931
|
nonce: e.nonce || ""
|
|
3944
3932
|
}
|
|
3945
3933
|
) : null,
|
|
3946
|
-
/* @__PURE__ */
|
|
3934
|
+
/* @__PURE__ */ s(
|
|
3947
3935
|
ti,
|
|
3948
3936
|
{
|
|
3949
3937
|
nonce: e.nonce || "",
|
|
3950
3938
|
isNestedRender: e.isNestedRender,
|
|
3951
|
-
contentId: (
|
|
3952
|
-
cssCode: (
|
|
3953
|
-
customFonts: (v = (
|
|
3939
|
+
contentId: (m = r.content) == null ? void 0 : m.id,
|
|
3940
|
+
cssCode: (k = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : k.cssCode,
|
|
3941
|
+
customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
|
|
3954
3942
|
}
|
|
3955
3943
|
),
|
|
3956
|
-
/* @__PURE__ */
|
|
3944
|
+
/* @__PURE__ */ s(
|
|
3957
3945
|
F,
|
|
3958
3946
|
{
|
|
3959
|
-
blocks: (b = (
|
|
3947
|
+
blocks: (b = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
3960
3948
|
context: r,
|
|
3961
3949
|
registeredComponents: o,
|
|
3962
3950
|
linkComponent: e.linkComponent
|
|
@@ -3970,38 +3958,38 @@ function Te(e) {
|
|
|
3970
3958
|
}
|
|
3971
3959
|
function oi(e) {
|
|
3972
3960
|
var r;
|
|
3973
|
-
const [t, n] =
|
|
3974
|
-
() =>
|
|
3975
|
-
canTrack:
|
|
3961
|
+
const [t, n] = R(
|
|
3962
|
+
() => Ln({
|
|
3963
|
+
canTrack: z(e.canTrack),
|
|
3976
3964
|
content: e.content
|
|
3977
3965
|
})
|
|
3978
3966
|
);
|
|
3979
3967
|
function i() {
|
|
3980
|
-
var
|
|
3968
|
+
var l;
|
|
3981
3969
|
return Hn(
|
|
3982
|
-
|
|
3970
|
+
j(e.content).map((d) => ({
|
|
3983
3971
|
id: d.testVariationId,
|
|
3984
3972
|
testRatio: d.testRatio
|
|
3985
3973
|
})),
|
|
3986
|
-
((
|
|
3974
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3987
3975
|
);
|
|
3988
3976
|
}
|
|
3989
3977
|
function o() {
|
|
3990
|
-
return
|
|
3978
|
+
return j(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3991
3979
|
}
|
|
3992
3980
|
function a() {
|
|
3993
|
-
var
|
|
3981
|
+
var l;
|
|
3994
3982
|
return t ? {
|
|
3995
3983
|
...e.content,
|
|
3996
|
-
testVariationId: (
|
|
3984
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3997
3985
|
} : Qe({
|
|
3998
3986
|
item: e.content,
|
|
3999
|
-
canTrack:
|
|
3987
|
+
canTrack: z(e.canTrack)
|
|
4000
3988
|
});
|
|
4001
3989
|
}
|
|
4002
3990
|
return A(() => {
|
|
4003
|
-
}, []), /* @__PURE__ */
|
|
4004
|
-
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */
|
|
3991
|
+
}, []), /* @__PURE__ */ B(E, { children: [
|
|
3992
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
|
|
4005
3993
|
oe,
|
|
4006
3994
|
{
|
|
4007
3995
|
id: "builderio-init-variants-fns",
|
|
@@ -4009,16 +3997,16 @@ function oi(e) {
|
|
|
4009
3997
|
nonce: e.nonce || ""
|
|
4010
3998
|
}
|
|
4011
3999
|
) : null,
|
|
4012
|
-
t ? /* @__PURE__ */
|
|
4013
|
-
/* @__PURE__ */
|
|
4014
|
-
|
|
4000
|
+
t ? /* @__PURE__ */ B(E, { children: [
|
|
4001
|
+
/* @__PURE__ */ s(
|
|
4002
|
+
Y,
|
|
4015
4003
|
{
|
|
4016
4004
|
id: "builderio-variants",
|
|
4017
4005
|
styles: o(),
|
|
4018
4006
|
nonce: e.nonce || ""
|
|
4019
4007
|
}
|
|
4020
4008
|
),
|
|
4021
|
-
/* @__PURE__ */
|
|
4009
|
+
/* @__PURE__ */ s(
|
|
4022
4010
|
oe,
|
|
4023
4011
|
{
|
|
4024
4012
|
id: "builderio-variants-visibility",
|
|
@@ -4026,13 +4014,13 @@ function oi(e) {
|
|
|
4026
4014
|
nonce: e.nonce || ""
|
|
4027
4015
|
}
|
|
4028
4016
|
),
|
|
4029
|
-
(r =
|
|
4017
|
+
(r = j(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4030
4018
|
Te,
|
|
4031
4019
|
{
|
|
4032
4020
|
apiHost: e.apiHost,
|
|
4033
4021
|
isNestedRender: e.isNestedRender,
|
|
4034
4022
|
nonce: e.nonce,
|
|
4035
|
-
content:
|
|
4023
|
+
content: l,
|
|
4036
4024
|
showContent: !1,
|
|
4037
4025
|
model: e.model,
|
|
4038
4026
|
data: e.data,
|
|
@@ -4051,10 +4039,10 @@ function oi(e) {
|
|
|
4051
4039
|
contentWrapperProps: e.contentWrapperProps,
|
|
4052
4040
|
trustedHosts: e.trustedHosts
|
|
4053
4041
|
},
|
|
4054
|
-
|
|
4042
|
+
l.testVariationId
|
|
4055
4043
|
))
|
|
4056
4044
|
] }) : null,
|
|
4057
|
-
/* @__PURE__ */
|
|
4045
|
+
/* @__PURE__ */ s(
|
|
4058
4046
|
Te,
|
|
4059
4047
|
{
|
|
4060
4048
|
apiHost: e.apiHost,
|
|
@@ -4098,11 +4086,11 @@ const ai = async ({
|
|
|
4098
4086
|
}
|
|
4099
4087
|
}
|
|
4100
4088
|
}).catch((n) => {
|
|
4101
|
-
|
|
4089
|
+
J.error("Could not fetch symbol content: ", n);
|
|
4102
4090
|
});
|
|
4103
4091
|
};
|
|
4104
4092
|
function ri(e) {
|
|
4105
|
-
var
|
|
4093
|
+
var l, d, c, h;
|
|
4106
4094
|
function t() {
|
|
4107
4095
|
return "div";
|
|
4108
4096
|
}
|
|
@@ -4110,30 +4098,30 @@ function ri(e) {
|
|
|
4110
4098
|
return "div";
|
|
4111
4099
|
}
|
|
4112
4100
|
function i() {
|
|
4113
|
-
var
|
|
4101
|
+
var m, u;
|
|
4114
4102
|
return [
|
|
4115
|
-
e.attributes[
|
|
4103
|
+
e.attributes[_()],
|
|
4116
4104
|
"builder-symbol",
|
|
4117
|
-
(
|
|
4118
|
-
(
|
|
4105
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4106
|
+
(u = e.symbol) != null && u.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4119
4107
|
].filter(Boolean).join(" ");
|
|
4120
4108
|
}
|
|
4121
|
-
const [o, a] =
|
|
4122
|
-
var
|
|
4123
|
-
return (
|
|
4109
|
+
const [o, a] = R(() => {
|
|
4110
|
+
var m;
|
|
4111
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4124
4112
|
});
|
|
4125
4113
|
function r() {
|
|
4126
4114
|
o || ai({
|
|
4127
4115
|
symbol: e.symbol,
|
|
4128
4116
|
builderContextValue: e.builderContext
|
|
4129
|
-
}).then((
|
|
4130
|
-
|
|
4117
|
+
}).then((m) => {
|
|
4118
|
+
m && a(m);
|
|
4131
4119
|
});
|
|
4132
4120
|
}
|
|
4133
4121
|
return A(() => {
|
|
4134
4122
|
}, []), A(() => {
|
|
4135
4123
|
r();
|
|
4136
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4124
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4137
4125
|
oi,
|
|
4138
4126
|
{
|
|
4139
4127
|
nonce: e.builderContext.nonce,
|
|
@@ -4142,7 +4130,7 @@ function ri(e) {
|
|
|
4142
4130
|
apiKey: e.builderContext.apiKey,
|
|
4143
4131
|
context: {
|
|
4144
4132
|
...e.builderContext.context,
|
|
4145
|
-
symbolId: (
|
|
4133
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4146
4134
|
},
|
|
4147
4135
|
customComponents: Object.values(e.builderComponents),
|
|
4148
4136
|
data: {
|