@builder.io/sdk-react 2.0.27 → 2.0.29
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 +15 -15
- package/lib/browser/blocks-exports.mjs +614 -602
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-b2eed856.cjs → server-entry-3e3279b7.cjs} +1 -1
- package/lib/browser/{server-entry-fea90db1.js → server-entry-712b1faa.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-6557fd47.js → accordion-1fae9bd5.js} +5 -3
- package/lib/edge/{accordion-c7ebd14b.cjs → accordion-200ac141.cjs} +1 -1
- package/lib/edge/{blocks-b7b78f6f.js → blocks-b47cd3fc.js} +63 -57
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-00d9b985.cjs → blocks-fd9e445c.cjs} +3 -3
- package/lib/edge/{button-07555543.js → button-5cc9a94f.js} +2 -2
- package/lib/edge/{button-ca865fd7.cjs → button-ffe70d17.cjs} +1 -1
- package/lib/edge/columns-7651ba21.cjs +28 -0
- package/lib/edge/{columns-a8fb6e6e.js → columns-9ad996bb.js} +61 -57
- package/lib/edge/{content-variants-f7aadfcc.js → content-variants-0ece6057.js} +11 -11
- package/lib/edge/{content-variants-5de0e605.cjs → content-variants-a9017964.cjs} +1 -1
- package/lib/edge/{evaluate-3fbf8291.js → evaluate-5cfe10b0.js} +1 -1
- package/lib/edge/{evaluate-2596ffe5.cjs → evaluate-73e0df40.cjs} +1 -1
- package/lib/edge/{form-be8d48c0.js → form-186bf59f.js} +4 -4
- package/lib/edge/{form-7f214547.cjs → form-c98c7fc1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-00a9606b.cjs → get-class-prop-name-11734dbc.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-35810f43.js → get-class-prop-name-7d6a77a4.js} +1 -1
- package/lib/edge/{img-1c578e3b.js → img-6c1f4ea4.js} +1 -1
- package/lib/edge/{img-3eab09f2.cjs → img-ef160d2b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-0d7c1c27.cjs → input-97dc199a.cjs} +1 -1
- package/lib/edge/{input-9c1e8a98.js → input-b4ee4339.js} +1 -1
- package/lib/edge/{select-c58218b7.cjs → select-2cdf2c8f.cjs} +1 -1
- package/lib/edge/{select-fd1e4221.js → select-e79d6e1b.js} +1 -1
- package/lib/edge/{server-entry-f03cbcfe.cjs → server-entry-0224e0bb.cjs} +1 -1
- package/lib/edge/{server-entry-72a543d1.js → server-entry-05dd3f4b.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-864f8ee7.cjs → slot-66ba436b.cjs} +1 -1
- package/lib/edge/{slot-ec9f4a5e.js → slot-680234a8.js} +4 -4
- package/lib/edge/{symbol-68340c52.cjs → symbol-4d0b1228.cjs} +1 -1
- package/lib/edge/{symbol-78fe0b05.js → symbol-e920f028.js} +2 -2
- package/lib/edge/{tabs-c847b763.js → tabs-1bea88d1.js} +15 -15
- package/lib/edge/tabs-1f3f45cf.cjs +1 -0
- package/lib/edge/{text-ff0134a1.cjs → text-9533b278.cjs} +1 -1
- package/lib/edge/{text-5ed7f583.js → text-fd78274f.js} +2 -2
- package/lib/node/blocks-exports.cjs +15 -15
- package/lib/node/blocks-exports.mjs +607 -595
- 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-bac0a183.js → server-entry-00c52924.js} +1 -1
- package/lib/node/{server-entry-b19b6f07.cjs → server-entry-0b1fe826.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-22947995.js → setIvm-156def75.js} +1 -1
- package/lib/node/{setIvm-e38cb38e.cjs → setIvm-ca4d1590.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-0d7217c7.cjs → should-force-browser-runtime-in-node-bc24fcdd.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-5458ba48.js → should-force-browser-runtime-in-node-eb3eac6a.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-1d6d0f14.cjs +0 -28
- package/lib/edge/tabs-b0f30ed3.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as D, isBrowser as _, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as N, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as je } from "./server-entry-
|
|
4
|
-
import { createContext as Se, useEffect as B, useState as
|
|
5
|
-
import { getFunctionArguments as Me, flattenState as _e, runInNode as qe, parseCode as Ke, getBuilderGlobals as ze, set as Ce, fastClone as ie } from "./setIvm-
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-
|
|
2
|
+
import { jsx as s, Fragment as T, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isBrowser as _, logger as ne, checkIsDefined as Z, isPreviewing as xe, isEditing as N, registerInsertMenu as Le, setupBrowserForEditing as Oe, createRegisterComponentMessage as Ue, getDefaultCanTrack as q, _track as le, fetchOneEntry as ve, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as je } from "./server-entry-00c52924.js";
|
|
4
|
+
import { createContext as Se, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as ke } from "react";
|
|
5
|
+
import { getFunctionArguments as Me, flattenState as _e, runInNode as qe, parseCode as Ke, getBuilderGlobals as ze, set as Ce, fastClone as ie } from "./setIvm-156def75.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-eb3eac6a.js";
|
|
7
7
|
const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
|
|
8
8
|
function oe(e) {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const U = () => {
|
|
12
12
|
switch (D) {
|
|
@@ -36,7 +36,7 @@ function Qe(e) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ s(
|
|
40
40
|
oe,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
@@ -75,7 +75,7 @@ function Ze(e, ...t) {
|
|
|
75
75
|
return n;
|
|
76
76
|
}
|
|
77
77
|
const Ie = (e, t, n) => {
|
|
78
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
78
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
79
79
|
return i === void 0 || i === e ? n : i;
|
|
80
80
|
}, et = ({
|
|
81
81
|
code: e,
|
|
@@ -83,25 +83,25 @@ const Ie = (e, t, n) => {
|
|
|
83
83
|
context: n,
|
|
84
84
|
event: i,
|
|
85
85
|
localState: o,
|
|
86
|
-
rootSetState:
|
|
87
|
-
rootState:
|
|
86
|
+
rootSetState: r,
|
|
87
|
+
rootState: a
|
|
88
88
|
}) => {
|
|
89
|
-
const
|
|
89
|
+
const l = Me({
|
|
90
90
|
builder: t,
|
|
91
91
|
context: n,
|
|
92
92
|
event: i,
|
|
93
93
|
state: _e({
|
|
94
|
-
rootState:
|
|
94
|
+
rootState: a,
|
|
95
95
|
localState: o,
|
|
96
|
-
rootSetState:
|
|
96
|
+
rootSetState: r
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
-
return new Function(...
|
|
99
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
100
100
|
}, tt = (e) => _() || Je({
|
|
101
101
|
shouldLogWarning: !0
|
|
102
102
|
}) ? et(e) : qe(e), nt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, it = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ot = (e) => {
|
|
103
|
-
var t, n, i, o,
|
|
104
|
-
return ((i = (n = (t = nt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
103
|
+
var t, n, i, o, r, a;
|
|
104
|
+
return ((i = (n = (t = nt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = it.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
105
105
|
};
|
|
106
106
|
function L({
|
|
107
107
|
code: e,
|
|
@@ -109,24 +109,24 @@ function L({
|
|
|
109
109
|
localState: n,
|
|
110
110
|
rootState: i,
|
|
111
111
|
rootSetState: o,
|
|
112
|
-
event:
|
|
113
|
-
isExpression:
|
|
112
|
+
event: r,
|
|
113
|
+
isExpression: a = !0
|
|
114
114
|
}) {
|
|
115
115
|
if (e.trim() === "")
|
|
116
116
|
return;
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
117
|
+
const l = ot(e.trim());
|
|
118
|
+
if (l)
|
|
119
119
|
return Ie({
|
|
120
120
|
...i,
|
|
121
121
|
...n
|
|
122
|
-
},
|
|
122
|
+
}, l);
|
|
123
123
|
const d = {
|
|
124
124
|
code: Ke(e, {
|
|
125
|
-
isExpression:
|
|
125
|
+
isExpression: a
|
|
126
126
|
}),
|
|
127
127
|
builder: ze(),
|
|
128
128
|
context: t,
|
|
129
|
-
event:
|
|
129
|
+
event: r,
|
|
130
130
|
rootSetState: o,
|
|
131
131
|
rootState: i,
|
|
132
132
|
localState: n
|
|
@@ -187,18 +187,18 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
187
187
|
}) => {
|
|
188
188
|
if (!e.bindings)
|
|
189
189
|
return e;
|
|
190
|
-
const
|
|
191
|
-
for (const
|
|
192
|
-
const
|
|
193
|
-
code:
|
|
190
|
+
const r = rt(e);
|
|
191
|
+
for (const a in e.bindings) {
|
|
192
|
+
const l = e.bindings[a], d = L({
|
|
193
|
+
code: l,
|
|
194
194
|
localState: n,
|
|
195
195
|
rootState: i,
|
|
196
196
|
rootSetState: o,
|
|
197
197
|
context: t
|
|
198
198
|
});
|
|
199
|
-
Ce(
|
|
199
|
+
Ce(r, a, d);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
201
|
+
return r;
|
|
202
202
|
};
|
|
203
203
|
function st({
|
|
204
204
|
block: e,
|
|
@@ -206,28 +206,28 @@ function st({
|
|
|
206
206
|
shouldEvaluateBindings: n,
|
|
207
207
|
localState: i,
|
|
208
208
|
rootState: o,
|
|
209
|
-
rootSetState:
|
|
209
|
+
rootSetState: r
|
|
210
210
|
}) {
|
|
211
|
-
const
|
|
211
|
+
const a = e;
|
|
212
212
|
return n ? lt({
|
|
213
|
-
block:
|
|
213
|
+
block: a,
|
|
214
214
|
localState: i,
|
|
215
215
|
rootState: o,
|
|
216
|
-
rootSetState:
|
|
216
|
+
rootSetState: r,
|
|
217
217
|
context: t
|
|
218
|
-
}) :
|
|
218
|
+
}) : a;
|
|
219
219
|
}
|
|
220
220
|
const K = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
221
221
|
function ct(e, t, n = {}) {
|
|
222
|
-
let i, o,
|
|
222
|
+
let i, o, r, a = null, l = 0;
|
|
223
223
|
const d = function() {
|
|
224
|
-
|
|
224
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
225
225
|
};
|
|
226
226
|
return function() {
|
|
227
227
|
const c = Date.now();
|
|
228
|
-
!
|
|
229
|
-
const h = t - (c -
|
|
230
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
228
|
+
!l && n.leading === !1 && (l = c);
|
|
229
|
+
const h = t - (c - l);
|
|
230
|
+
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
function O(e, ...t) {
|
|
@@ -235,8 +235,8 @@ function O(e, ...t) {
|
|
|
235
235
|
for (let i = 1; i < arguments.length; i++) {
|
|
236
236
|
const o = arguments[i];
|
|
237
237
|
if (o != null)
|
|
238
|
-
for (const
|
|
239
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
238
|
+
for (const r in o)
|
|
239
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
240
240
|
}
|
|
241
241
|
return n;
|
|
242
242
|
}
|
|
@@ -255,10 +255,10 @@ function we(e) {
|
|
|
255
255
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
256
256
|
}
|
|
257
257
|
function Ee(e, t) {
|
|
258
|
-
const n = ut(e), i = getComputedStyle(t), o = e.steps[0].styles,
|
|
259
|
-
for (const
|
|
258
|
+
const n = ut(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
259
|
+
for (const l of a)
|
|
260
260
|
for (const d of n)
|
|
261
|
-
d in
|
|
261
|
+
d in l || (l[d] = i[d]);
|
|
262
262
|
}
|
|
263
263
|
function ut(e) {
|
|
264
264
|
const t = [];
|
|
@@ -290,19 +290,19 @@ function mt(e) {
|
|
|
290
290
|
Array.from(t).forEach((n) => {
|
|
291
291
|
Ee(e, n);
|
|
292
292
|
let i = !1, o = !1;
|
|
293
|
-
function
|
|
294
|
-
!i &&
|
|
295
|
-
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
293
|
+
function r() {
|
|
294
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
295
|
+
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
296
296
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
297
297
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
298
|
-
})) : e.repeat && i && !o && !
|
|
298
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const a = ct(r, 200, {
|
|
301
301
|
leading: !1
|
|
302
302
|
});
|
|
303
|
-
function
|
|
304
|
-
const
|
|
305
|
-
return
|
|
303
|
+
function l(h) {
|
|
304
|
+
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
305
|
+
return g.bottom > f && g.top < m - f;
|
|
306
306
|
}
|
|
307
307
|
const d = e.steps[0].styles;
|
|
308
308
|
function c() {
|
|
@@ -310,10 +310,10 @@ function mt(e) {
|
|
|
310
310
|
}
|
|
311
311
|
c(), setTimeout(() => {
|
|
312
312
|
n.style.transition = `all ${e.duration}s ${K(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
313
|
-
}), document.addEventListener("scroll",
|
|
313
|
+
}), document.addEventListener("scroll", a, {
|
|
314
314
|
capture: !0,
|
|
315
315
|
passive: !0
|
|
316
|
-
}),
|
|
316
|
+
}), r();
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
const Pe = (e) => Object.entries(e).map(([n, i]) => {
|
|
@@ -392,7 +392,7 @@ const bt = ({
|
|
|
392
392
|
});
|
|
393
393
|
if (!Array.isArray(o))
|
|
394
394
|
return;
|
|
395
|
-
const
|
|
395
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
396
396
|
return o.map((d, c) => ({
|
|
397
397
|
context: {
|
|
398
398
|
...t,
|
|
@@ -400,8 +400,8 @@ const bt = ({
|
|
|
400
400
|
...t.localState,
|
|
401
401
|
$index: c,
|
|
402
402
|
$item: d,
|
|
403
|
-
[
|
|
404
|
-
[`$${
|
|
403
|
+
[a]: d,
|
|
404
|
+
[`$${a}Index`]: c
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
407
|
block: i
|
|
@@ -461,16 +461,16 @@ const bt = ({
|
|
|
461
461
|
min: o,
|
|
462
462
|
default: o + 1
|
|
463
463
|
};
|
|
464
|
-
const
|
|
464
|
+
const r = n.medium.max + 1;
|
|
465
465
|
return n.large = {
|
|
466
466
|
max: 2e3,
|
|
467
467
|
// TODO: decide upper limit
|
|
468
|
-
min:
|
|
469
|
-
default:
|
|
468
|
+
min: r,
|
|
469
|
+
default: r + 1
|
|
470
470
|
}, n;
|
|
471
471
|
};
|
|
472
472
|
function z(e) {
|
|
473
|
-
return /* @__PURE__ */
|
|
473
|
+
return /* @__PURE__ */ s(
|
|
474
474
|
"style",
|
|
475
475
|
{
|
|
476
476
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -485,52 +485,52 @@ function kt(e) {
|
|
|
485
485
|
return Z(i.hide) ? !i.hide : Z(i.show) ? i.show : !0;
|
|
486
486
|
}
|
|
487
487
|
function n() {
|
|
488
|
-
var
|
|
489
|
-
const i = e.block, o = i.responsiveStyles,
|
|
490
|
-
((
|
|
491
|
-
),
|
|
488
|
+
var S, p, b;
|
|
489
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Ae(
|
|
490
|
+
((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
|
|
491
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
492
492
|
if (!h)
|
|
493
493
|
return "";
|
|
494
|
-
const
|
|
494
|
+
const g = l ? j({
|
|
495
495
|
className: h,
|
|
496
|
-
styles:
|
|
497
|
-
}) : "",
|
|
496
|
+
styles: l
|
|
497
|
+
}) : "", m = d ? j({
|
|
498
498
|
className: h,
|
|
499
499
|
styles: d,
|
|
500
500
|
mediaQuery: de(
|
|
501
501
|
"medium",
|
|
502
|
-
|
|
502
|
+
a
|
|
503
503
|
)
|
|
504
504
|
}) : "", v = c ? j({
|
|
505
505
|
className: h,
|
|
506
506
|
styles: c,
|
|
507
507
|
mediaQuery: de(
|
|
508
508
|
"small",
|
|
509
|
-
|
|
509
|
+
a
|
|
510
510
|
)
|
|
511
|
-
}) : "",
|
|
512
|
-
let
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
|
|
511
|
+
}) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
512
|
+
let k = "";
|
|
513
|
+
if (f) {
|
|
514
|
+
const x = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
515
|
+
k = j({
|
|
516
516
|
className: `${h}:hover`,
|
|
517
517
|
styles: {
|
|
518
|
-
...
|
|
519
|
-
transition: `all ${
|
|
520
|
-
|
|
518
|
+
...x,
|
|
519
|
+
transition: `all ${f.duration}s ${K(
|
|
520
|
+
f.easing
|
|
521
521
|
)}`,
|
|
522
|
-
transitionDelay:
|
|
522
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
523
523
|
}
|
|
524
524
|
}) || "";
|
|
525
525
|
}
|
|
526
526
|
return [
|
|
527
|
-
|
|
528
|
-
|
|
527
|
+
g,
|
|
528
|
+
m,
|
|
529
529
|
v,
|
|
530
|
-
|
|
530
|
+
k
|
|
531
531
|
].join(" ");
|
|
532
532
|
}
|
|
533
|
-
return /* @__PURE__ */
|
|
533
|
+
return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
534
534
|
z,
|
|
535
535
|
{
|
|
536
536
|
id: "builderio-block",
|
|
@@ -557,18 +557,18 @@ function We(e) {
|
|
|
557
557
|
for (const o in n) {
|
|
558
558
|
if (!n.hasOwnProperty(o))
|
|
559
559
|
continue;
|
|
560
|
-
const
|
|
561
|
-
let
|
|
560
|
+
const r = n[o];
|
|
561
|
+
let a = Tt(o);
|
|
562
562
|
if (e.stripPrefix)
|
|
563
563
|
switch (D) {
|
|
564
564
|
case "vue":
|
|
565
|
-
|
|
565
|
+
a = a.replace("v-on:", "");
|
|
566
566
|
break;
|
|
567
567
|
case "svelte":
|
|
568
|
-
|
|
568
|
+
a = a.replace("on:", "");
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
t[
|
|
571
|
+
t[a] = It(r, e);
|
|
572
572
|
}
|
|
573
573
|
return t;
|
|
574
574
|
}
|
|
@@ -602,7 +602,7 @@ function re({
|
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
604
|
function Rt(e) {
|
|
605
|
-
return /* @__PURE__ */
|
|
605
|
+
return /* @__PURE__ */ s(
|
|
606
606
|
oe,
|
|
607
607
|
{
|
|
608
608
|
TagName: e.Wrapper,
|
|
@@ -624,7 +624,7 @@ function Rt(e) {
|
|
|
624
624
|
}
|
|
625
625
|
function Pt(e) {
|
|
626
626
|
return B(() => {
|
|
627
|
-
}, []), /* @__PURE__ */
|
|
627
|
+
}, []), /* @__PURE__ */ s(T, { children: e.children });
|
|
628
628
|
}
|
|
629
629
|
function Bt(e) {
|
|
630
630
|
function t() {
|
|
@@ -642,7 +642,7 @@ function Bt(e) {
|
|
|
642
642
|
})
|
|
643
643
|
} : {};
|
|
644
644
|
}
|
|
645
|
-
return /* @__PURE__ */
|
|
645
|
+
return /* @__PURE__ */ s(T, { children: e.Wrapper.load ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
646
646
|
Pt,
|
|
647
647
|
{
|
|
648
648
|
load: e.Wrapper.load,
|
|
@@ -651,7 +651,7 @@ function Bt(e) {
|
|
|
651
651
|
attributes: t(),
|
|
652
652
|
children: e.children
|
|
653
653
|
}
|
|
654
|
-
) }) : /* @__PURE__ */
|
|
654
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
655
655
|
}
|
|
656
656
|
const Vt = ({
|
|
657
657
|
componentOptions: e,
|
|
@@ -659,10 +659,10 @@ const Vt = ({
|
|
|
659
659
|
context: n,
|
|
660
660
|
componentRef: i,
|
|
661
661
|
includeBlockProps: o,
|
|
662
|
-
isInteractive:
|
|
663
|
-
contextValue:
|
|
662
|
+
isInteractive: r,
|
|
663
|
+
contextValue: a
|
|
664
664
|
}) => {
|
|
665
|
-
const
|
|
665
|
+
const l = {
|
|
666
666
|
...e,
|
|
667
667
|
/**
|
|
668
668
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -671,24 +671,24 @@ const Vt = ({
|
|
|
671
671
|
...o ? {
|
|
672
672
|
attributes: re({
|
|
673
673
|
block: t,
|
|
674
|
-
context:
|
|
674
|
+
context: a
|
|
675
675
|
})
|
|
676
676
|
} : {}
|
|
677
677
|
};
|
|
678
|
-
return
|
|
678
|
+
return r ? {
|
|
679
679
|
Wrapper: i,
|
|
680
680
|
block: t,
|
|
681
681
|
context: n,
|
|
682
682
|
wrapperProps: e,
|
|
683
683
|
includeBlockProps: o
|
|
684
|
-
} :
|
|
684
|
+
} : l;
|
|
685
685
|
};
|
|
686
686
|
function ue(e) {
|
|
687
687
|
var i;
|
|
688
|
-
const [t, n] =
|
|
688
|
+
const [t, n] = w(
|
|
689
689
|
() => e.isInteractive ? Bt : e.componentRef
|
|
690
690
|
);
|
|
691
|
-
return /* @__PURE__ */
|
|
691
|
+
return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
692
692
|
t,
|
|
693
693
|
{
|
|
694
694
|
...Vt({
|
|
@@ -701,7 +701,7 @@ function ue(e) {
|
|
|
701
701
|
isInteractive: e.isInteractive,
|
|
702
702
|
contextValue: e.context
|
|
703
703
|
}),
|
|
704
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
704
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
705
705
|
H,
|
|
706
706
|
{
|
|
707
707
|
block: o,
|
|
@@ -715,8 +715,8 @@ function ue(e) {
|
|
|
715
715
|
) }) : null });
|
|
716
716
|
}
|
|
717
717
|
function me(e) {
|
|
718
|
-
const [t, n] =
|
|
719
|
-
return /* @__PURE__ */
|
|
718
|
+
const [t, n] = w(() => e.repeatContext);
|
|
719
|
+
return /* @__PURE__ */ s(ae.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
720
720
|
H,
|
|
721
721
|
{
|
|
722
722
|
block: e.block,
|
|
@@ -727,22 +727,22 @@ function me(e) {
|
|
|
727
727
|
) });
|
|
728
728
|
}
|
|
729
729
|
function H(e) {
|
|
730
|
-
var h,
|
|
730
|
+
var h, g, m, v;
|
|
731
731
|
function t() {
|
|
732
732
|
return pt({
|
|
733
733
|
block: e.block,
|
|
734
734
|
context: e.context
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
const [n, i] =
|
|
737
|
+
const [n, i] = w(() => ({
|
|
738
738
|
value: null,
|
|
739
739
|
update: !1
|
|
740
740
|
}));
|
|
741
741
|
function o() {
|
|
742
|
-
var
|
|
742
|
+
var k;
|
|
743
743
|
if (n.value && !n.update && !xe())
|
|
744
744
|
return n.value;
|
|
745
|
-
const
|
|
745
|
+
const f = (k = e.block.repeat) != null && k.collection ? e.block : st({
|
|
746
746
|
block: e.block,
|
|
747
747
|
localState: e.context.localState,
|
|
748
748
|
rootState: e.context.rootState,
|
|
@@ -750,41 +750,41 @@ function H(e) {
|
|
|
750
750
|
context: e.context.context,
|
|
751
751
|
shouldEvaluateBindings: !0
|
|
752
752
|
});
|
|
753
|
-
return n.value =
|
|
753
|
+
return n.value = f, n.update = !1, f;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function r() {
|
|
756
756
|
return bt({
|
|
757
757
|
block: o(),
|
|
758
758
|
registeredComponents: e.registeredComponents
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var
|
|
763
|
-
return e.block.tagName === "a" || ((
|
|
761
|
+
function a() {
|
|
762
|
+
var k;
|
|
763
|
+
return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var
|
|
767
|
-
if ((
|
|
768
|
-
return !!((
|
|
769
|
-
const
|
|
770
|
-
return ("show" in o() ? o().show : !0) && !
|
|
765
|
+
function l() {
|
|
766
|
+
var S, p;
|
|
767
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
768
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
769
|
+
const f = "hide" in o() ? o().hide : !1;
|
|
770
|
+
return ("show" in o() ? o().show : !0) && !f;
|
|
771
771
|
}
|
|
772
772
|
function d() {
|
|
773
|
-
var
|
|
774
|
-
return !((
|
|
773
|
+
var k, S;
|
|
774
|
+
return !((k = r == null ? void 0 : r()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
|
|
775
775
|
}
|
|
776
776
|
function c() {
|
|
777
|
-
var
|
|
777
|
+
var f, k, S, p;
|
|
778
778
|
return {
|
|
779
|
-
blockChildren: (
|
|
780
|
-
componentRef: (
|
|
779
|
+
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
+
componentRef: (k = r == null ? void 0 : r()) == null ? void 0 : k.component,
|
|
781
781
|
componentOptions: {
|
|
782
782
|
...Xe(o()),
|
|
783
|
-
...vt(
|
|
784
|
-
...St(
|
|
785
|
-
...yt(
|
|
783
|
+
...vt(r(), o()),
|
|
784
|
+
...St(r(), e.context),
|
|
785
|
+
...yt(r(), e.linkComponent),
|
|
786
786
|
...xt(
|
|
787
|
-
|
|
787
|
+
r(),
|
|
788
788
|
e.registeredComponents
|
|
789
789
|
)
|
|
790
790
|
},
|
|
@@ -792,32 +792,32 @@ function H(e) {
|
|
|
792
792
|
linkComponent: e.linkComponent,
|
|
793
793
|
registeredComponents: e.registeredComponents,
|
|
794
794
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((
|
|
796
|
-
isInteractive: !((
|
|
795
|
+
includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
|
|
796
|
+
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
799
|
return B(() => {
|
|
800
|
-
const
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...
|
|
804
|
-
elementId:
|
|
800
|
+
const f = o().id, k = o().animations;
|
|
801
|
+
k && f && dt(
|
|
802
|
+
k.map((S) => ({
|
|
803
|
+
...S,
|
|
804
|
+
elementId: f
|
|
805
805
|
}))
|
|
806
806
|
);
|
|
807
807
|
}, []), B(() => {
|
|
808
808
|
n.update = !0;
|
|
809
|
-
}), /* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
(h =
|
|
809
|
+
}), /* @__PURE__ */ s(T, { children: l() ? /* @__PURE__ */ V(T, { children: [
|
|
810
|
+
/* @__PURE__ */ s(kt, { block: o(), context: e.context }),
|
|
811
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ s(
|
|
812
812
|
me,
|
|
813
813
|
{
|
|
814
|
-
repeatContext:
|
|
815
|
-
block:
|
|
814
|
+
repeatContext: f.context,
|
|
815
|
+
block: f.block,
|
|
816
816
|
registeredComponents: e.registeredComponents,
|
|
817
817
|
linkComponent: e.linkComponent
|
|
818
818
|
},
|
|
819
|
-
|
|
820
|
-
)) }) : /* @__PURE__ */
|
|
819
|
+
k
|
|
820
|
+
)) }) : /* @__PURE__ */ s(
|
|
821
821
|
ue,
|
|
822
822
|
{
|
|
823
823
|
componentRef: c().componentRef,
|
|
@@ -830,23 +830,23 @@ function H(e) {
|
|
|
830
830
|
includeBlockProps: c().includeBlockProps,
|
|
831
831
|
isInteractive: c().isInteractive
|
|
832
832
|
}
|
|
833
|
-
) : /* @__PURE__ */
|
|
833
|
+
) : /* @__PURE__ */ s(T, { children: t() ? /* @__PURE__ */ s(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ s(
|
|
834
834
|
me,
|
|
835
835
|
{
|
|
836
|
-
repeatContext:
|
|
837
|
-
block:
|
|
836
|
+
repeatContext: f.context,
|
|
837
|
+
block: f.block,
|
|
838
838
|
registeredComponents: e.registeredComponents,
|
|
839
839
|
linkComponent: e.linkComponent
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
k
|
|
842
842
|
)) }) : /* @__PURE__ */ V(
|
|
843
843
|
Rt,
|
|
844
844
|
{
|
|
845
|
-
Wrapper:
|
|
845
|
+
Wrapper: a(),
|
|
846
846
|
block: o(),
|
|
847
847
|
context: e.context,
|
|
848
848
|
children: [
|
|
849
|
-
/* @__PURE__ */
|
|
849
|
+
/* @__PURE__ */ s(
|
|
850
850
|
ue,
|
|
851
851
|
{
|
|
852
852
|
componentRef: c().componentRef,
|
|
@@ -860,15 +860,15 @@ function H(e) {
|
|
|
860
860
|
isInteractive: c().isInteractive
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
(
|
|
863
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
864
864
|
H,
|
|
865
865
|
{
|
|
866
|
-
block:
|
|
866
|
+
block: f,
|
|
867
867
|
registeredComponents: e.registeredComponents,
|
|
868
868
|
linkComponent: e.linkComponent,
|
|
869
869
|
context: e.context
|
|
870
870
|
},
|
|
871
|
-
|
|
871
|
+
f.id
|
|
872
872
|
))
|
|
873
873
|
]
|
|
874
874
|
}
|
|
@@ -886,49 +886,55 @@ function At(e) {
|
|
|
886
886
|
].filter(Boolean).join(" ");
|
|
887
887
|
}
|
|
888
888
|
function i() {
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
if (!e.path)
|
|
890
|
+
return;
|
|
891
|
+
const a = "component.options.";
|
|
892
|
+
return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
|
|
893
|
+
}
|
|
894
|
+
function o() {
|
|
895
|
+
var a, l;
|
|
896
|
+
N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
891
897
|
{
|
|
892
898
|
type: "builder.clickEmptyBlocks",
|
|
893
899
|
data: {
|
|
894
900
|
parentElementId: e.parent,
|
|
895
|
-
dataPath:
|
|
901
|
+
dataPath: i()
|
|
896
902
|
}
|
|
897
903
|
},
|
|
898
904
|
"*"
|
|
899
905
|
));
|
|
900
906
|
}
|
|
901
|
-
function
|
|
902
|
-
var a,
|
|
903
|
-
N() && !((a = e.blocks) != null && a.length) && ((
|
|
907
|
+
function r() {
|
|
908
|
+
var a, l;
|
|
909
|
+
N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
904
910
|
{
|
|
905
911
|
type: "builder.hoverEmptyBlocks",
|
|
906
912
|
data: {
|
|
907
913
|
parentElementId: e.parent,
|
|
908
|
-
dataPath:
|
|
914
|
+
dataPath: i()
|
|
909
915
|
}
|
|
910
916
|
},
|
|
911
917
|
"*"
|
|
912
918
|
));
|
|
913
919
|
}
|
|
914
920
|
return B(() => {
|
|
915
|
-
}, []), /* @__PURE__ */ V(
|
|
916
|
-
/* @__PURE__ */
|
|
921
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
922
|
+
/* @__PURE__ */ s(
|
|
917
923
|
e.BlocksWrapper,
|
|
918
924
|
{
|
|
919
925
|
ref: t,
|
|
920
|
-
className: n() + " props-blocks-wrapper-
|
|
921
|
-
"builder-path":
|
|
926
|
+
className: n() + " props-blocks-wrapper-215a41e0",
|
|
927
|
+
"builder-path": i(),
|
|
922
928
|
"builder-parent-id": e.parent,
|
|
923
929
|
style: e.styleProp,
|
|
924
|
-
onClick: (a) =>
|
|
925
|
-
onMouseEnter: (a) =>
|
|
926
|
-
onKeyPress: (a) =>
|
|
930
|
+
onClick: (a) => o(),
|
|
931
|
+
onMouseEnter: (a) => r(),
|
|
932
|
+
onKeyPress: (a) => o(),
|
|
927
933
|
...e.BlocksWrapperProps,
|
|
928
934
|
children: e.children
|
|
929
935
|
}
|
|
930
936
|
),
|
|
931
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
932
938
|
display: flex;
|
|
933
939
|
flex-direction: column;
|
|
934
940
|
align-items: stretch;
|
|
@@ -936,9 +942,9 @@ function At(e) {
|
|
|
936
942
|
] });
|
|
937
943
|
}
|
|
938
944
|
function F(e) {
|
|
939
|
-
var i, o,
|
|
945
|
+
var i, o, r;
|
|
940
946
|
const t = ce(ae), n = ce(Te);
|
|
941
|
-
return /* @__PURE__ */
|
|
947
|
+
return /* @__PURE__ */ s(
|
|
942
948
|
At,
|
|
943
949
|
{
|
|
944
950
|
blocks: e.blocks,
|
|
@@ -948,158 +954,162 @@ function F(e) {
|
|
|
948
954
|
classNameProp: e.className,
|
|
949
955
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
950
956
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
951
|
-
children: e.blocks ? /* @__PURE__ */
|
|
957
|
+
children: e.blocks ? /* @__PURE__ */ s(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
952
958
|
H,
|
|
953
959
|
{
|
|
954
|
-
block:
|
|
960
|
+
block: a,
|
|
955
961
|
linkComponent: e.linkComponent,
|
|
956
962
|
context: e.context || t,
|
|
957
963
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
958
964
|
},
|
|
959
|
-
|
|
965
|
+
a.id
|
|
960
966
|
)) }) : null
|
|
961
967
|
}
|
|
962
968
|
);
|
|
963
969
|
}
|
|
964
970
|
const Wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
965
971
|
function Nt(e) {
|
|
966
|
-
var k,
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
970
|
-
() => e.stackColumnsAt || "tablet"
|
|
971
|
-
);
|
|
972
|
-
function s(m) {
|
|
973
|
-
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
972
|
+
var k, S;
|
|
973
|
+
function t() {
|
|
974
|
+
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
974
975
|
}
|
|
975
|
-
function
|
|
976
|
-
|
|
977
|
-
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
976
|
+
function n() {
|
|
977
|
+
return e.columns || [];
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
|
|
981
|
-
return `calc(${y}% - ${I}px)`;
|
|
979
|
+
function i() {
|
|
980
|
+
return e.stackColumnsAt || "tablet";
|
|
982
981
|
}
|
|
983
|
-
function
|
|
984
|
-
|
|
985
|
-
|
|
982
|
+
function o(p) {
|
|
983
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
984
|
+
}
|
|
985
|
+
function r(p) {
|
|
986
|
+
var b;
|
|
987
|
+
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
988
|
+
}
|
|
989
|
+
function a(p) {
|
|
990
|
+
const b = r(p), x = t() * (n().length - 1) * (b / 100);
|
|
991
|
+
return `calc(${b}% - ${x}px)`;
|
|
992
|
+
}
|
|
993
|
+
function l({
|
|
994
|
+
stackedStyle: p,
|
|
995
|
+
desktopStyle: b
|
|
986
996
|
}) {
|
|
987
|
-
return
|
|
997
|
+
return i() === "tablet" ? p : b;
|
|
988
998
|
}
|
|
989
|
-
function
|
|
990
|
-
stackedStyle:
|
|
991
|
-
desktopStyle:
|
|
999
|
+
function d({
|
|
1000
|
+
stackedStyle: p,
|
|
1001
|
+
desktopStyle: b
|
|
992
1002
|
}) {
|
|
993
|
-
return
|
|
1003
|
+
return i() === "never" ? b : p;
|
|
994
1004
|
}
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
function
|
|
1005
|
+
function c() {
|
|
1006
|
+
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1007
|
+
}
|
|
1008
|
+
function h() {
|
|
999
1009
|
return {
|
|
1000
|
-
"--flex-dir":
|
|
1001
|
-
"--flex-dir-tablet":
|
|
1002
|
-
stackedStyle:
|
|
1010
|
+
"--flex-dir": c(),
|
|
1011
|
+
"--flex-dir-tablet": l({
|
|
1012
|
+
stackedStyle: c(),
|
|
1003
1013
|
desktopStyle: "row"
|
|
1004
1014
|
})
|
|
1005
1015
|
};
|
|
1006
1016
|
}
|
|
1007
|
-
function
|
|
1008
|
-
const
|
|
1017
|
+
function g(p) {
|
|
1018
|
+
const b = p === 0 ? 0 : t(), x = a(p), A = `${b}px`, C = "100%", I = 0;
|
|
1009
1019
|
return {
|
|
1010
1020
|
...{
|
|
1011
1021
|
display: "flex",
|
|
1012
1022
|
flexDirection: "column",
|
|
1013
1023
|
alignItems: "stretch"
|
|
1014
1024
|
},
|
|
1015
|
-
width:
|
|
1016
|
-
["marginLeft"]:
|
|
1017
|
-
"--column-width-mobile":
|
|
1018
|
-
stackedStyle:
|
|
1019
|
-
desktopStyle:
|
|
1025
|
+
width: x,
|
|
1026
|
+
["marginLeft"]: A,
|
|
1027
|
+
"--column-width-mobile": d({
|
|
1028
|
+
stackedStyle: C,
|
|
1029
|
+
desktopStyle: x
|
|
1020
1030
|
}),
|
|
1021
|
-
"--column-margin-left-mobile":
|
|
1022
|
-
stackedStyle:
|
|
1023
|
-
desktopStyle:
|
|
1031
|
+
"--column-margin-left-mobile": d({
|
|
1032
|
+
stackedStyle: I,
|
|
1033
|
+
desktopStyle: A
|
|
1024
1034
|
}),
|
|
1025
|
-
"--column-width-tablet":
|
|
1026
|
-
stackedStyle:
|
|
1027
|
-
desktopStyle:
|
|
1035
|
+
"--column-width-tablet": l({
|
|
1036
|
+
stackedStyle: C,
|
|
1037
|
+
desktopStyle: x
|
|
1028
1038
|
}),
|
|
1029
|
-
"--column-margin-left-tablet":
|
|
1030
|
-
stackedStyle:
|
|
1031
|
-
desktopStyle:
|
|
1039
|
+
"--column-margin-left-tablet": l({
|
|
1040
|
+
stackedStyle: I,
|
|
1041
|
+
desktopStyle: A
|
|
1032
1042
|
})
|
|
1033
1043
|
};
|
|
1034
1044
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var
|
|
1045
|
+
function m(p) {
|
|
1046
|
+
var x, A;
|
|
1037
1047
|
return Ae(
|
|
1038
|
-
((
|
|
1039
|
-
)[
|
|
1048
|
+
((A = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1049
|
+
)[p].max;
|
|
1040
1050
|
}
|
|
1041
|
-
function
|
|
1042
|
-
const
|
|
1051
|
+
function v() {
|
|
1052
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1043
1053
|
return `
|
|
1044
|
-
@media (max-width: ${
|
|
1054
|
+
@media (max-width: ${m("medium")}px) {
|
|
1045
1055
|
.${e.builderBlock.id}-breakpoints {
|
|
1046
1056
|
flex-direction: var(--flex-dir-tablet);
|
|
1047
1057
|
align-items: stretch;
|
|
1048
1058
|
}
|
|
1049
1059
|
|
|
1050
|
-
${
|
|
1060
|
+
${p} {
|
|
1051
1061
|
width: var(--column-width-tablet) !important;
|
|
1052
1062
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1053
1063
|
}
|
|
1054
1064
|
}
|
|
1055
1065
|
|
|
1056
|
-
@media (max-width: ${
|
|
1066
|
+
@media (max-width: ${m("small")}px) {
|
|
1057
1067
|
.${e.builderBlock.id}-breakpoints {
|
|
1058
1068
|
flex-direction: var(--flex-dir);
|
|
1059
1069
|
align-items: stretch;
|
|
1060
1070
|
}
|
|
1061
1071
|
|
|
1062
|
-
${
|
|
1072
|
+
${p} {
|
|
1063
1073
|
width: var(--column-width-mobile) !important;
|
|
1064
1074
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1065
1075
|
}
|
|
1066
1076
|
},
|
|
1067
1077
|
`;
|
|
1068
1078
|
}
|
|
1069
|
-
function
|
|
1079
|
+
function f(p, b) {
|
|
1070
1080
|
return {
|
|
1071
|
-
...
|
|
1072
|
-
href:
|
|
1081
|
+
...p.link ? {
|
|
1082
|
+
href: p.link
|
|
1073
1083
|
} : {},
|
|
1074
1084
|
[U()]: "builder-column",
|
|
1075
|
-
style: Be(
|
|
1085
|
+
style: Be(g(b))
|
|
1076
1086
|
};
|
|
1077
1087
|
}
|
|
1078
|
-
return /* @__PURE__ */ V(
|
|
1088
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
1079
1089
|
/* @__PURE__ */ V(
|
|
1080
1090
|
"div",
|
|
1081
1091
|
{
|
|
1082
|
-
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-
|
|
1083
|
-
style:
|
|
1092
|
+
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-49f40bae",
|
|
1093
|
+
style: h(),
|
|
1084
1094
|
children: [
|
|
1085
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ s(
|
|
1086
1096
|
z,
|
|
1087
1097
|
{
|
|
1088
1098
|
id: "builderio-columns",
|
|
1089
|
-
styles:
|
|
1099
|
+
styles: v(),
|
|
1090
1100
|
nonce: e.builderContext.nonce
|
|
1091
1101
|
}
|
|
1092
1102
|
),
|
|
1093
|
-
(
|
|
1103
|
+
(S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ s(
|
|
1094
1104
|
oe,
|
|
1095
1105
|
{
|
|
1096
|
-
TagName:
|
|
1106
|
+
TagName: o(p),
|
|
1097
1107
|
actionAttributes: {},
|
|
1098
|
-
attributes:
|
|
1099
|
-
children: /* @__PURE__ */
|
|
1108
|
+
attributes: f(p, b),
|
|
1109
|
+
children: /* @__PURE__ */ s(
|
|
1100
1110
|
F,
|
|
1101
1111
|
{
|
|
1102
|
-
path: `
|
|
1112
|
+
path: `columns.${b}.blocks`,
|
|
1103
1113
|
parent: e.builderBlock.id,
|
|
1104
1114
|
styleProp: {
|
|
1105
1115
|
flexGrow: "1"
|
|
@@ -1107,23 +1117,23 @@ function Nt(e) {
|
|
|
1107
1117
|
context: e.builderContext,
|
|
1108
1118
|
registeredComponents: e.builderComponents,
|
|
1109
1119
|
linkComponent: e.builderLinkComponent,
|
|
1110
|
-
blocks:
|
|
1120
|
+
blocks: p.blocks
|
|
1111
1121
|
}
|
|
1112
1122
|
)
|
|
1113
1123
|
},
|
|
1114
|
-
|
|
1124
|
+
b
|
|
1115
1125
|
))
|
|
1116
1126
|
]
|
|
1117
1127
|
}
|
|
1118
1128
|
),
|
|
1119
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ s("style", { children: `.div-49f40bae {
|
|
1120
1130
|
display: flex;
|
|
1121
1131
|
line-height: normal;
|
|
1122
1132
|
}` })
|
|
1123
1133
|
] });
|
|
1124
1134
|
}
|
|
1125
1135
|
function Ft(e) {
|
|
1126
|
-
return /* @__PURE__ */
|
|
1136
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1127
1137
|
}
|
|
1128
1138
|
function fe(e) {
|
|
1129
1139
|
return e.replace(/http(s)?:/, "");
|
|
@@ -1139,8 +1149,8 @@ function Dt(e, t) {
|
|
|
1139
1149
|
return fe(e);
|
|
1140
1150
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1141
1151
|
if (n) {
|
|
1142
|
-
const i = e.split(n[0]), o = n[3],
|
|
1143
|
-
return fe(`${i[0]}_${
|
|
1152
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1153
|
+
return fe(`${i[0]}_${r}${o}`);
|
|
1144
1154
|
}
|
|
1145
1155
|
return null;
|
|
1146
1156
|
}
|
|
@@ -1156,21 +1166,21 @@ function J(e) {
|
|
|
1156
1166
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1157
1167
|
}
|
|
1158
1168
|
function Lt(e) {
|
|
1159
|
-
var o,
|
|
1169
|
+
var o, r, a, l, d, c;
|
|
1160
1170
|
function t() {
|
|
1161
|
-
var
|
|
1162
|
-
const
|
|
1163
|
-
if (!
|
|
1171
|
+
var m;
|
|
1172
|
+
const g = e.image || e.src;
|
|
1173
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1164
1174
|
// images, otherwise you can supply this prop manually
|
|
1165
|
-
!(
|
|
1175
|
+
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
1166
1176
|
return e.srcset;
|
|
1167
1177
|
if (!e.noWebp) {
|
|
1168
|
-
if (e.srcset && ((
|
|
1178
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1169
1179
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1170
|
-
return console.debug("Removed given srcset"), J(
|
|
1180
|
+
return console.debug("Removed given srcset"), J(g);
|
|
1171
1181
|
} else if (e.image && !e.srcset)
|
|
1172
|
-
return J(
|
|
1173
|
-
return J(
|
|
1182
|
+
return J(g);
|
|
1183
|
+
return J(g);
|
|
1174
1184
|
}
|
|
1175
1185
|
}
|
|
1176
1186
|
function n() {
|
|
@@ -1188,11 +1198,11 @@ function Lt(e) {
|
|
|
1188
1198
|
return e.aspectRatio ? h : void 0;
|
|
1189
1199
|
}
|
|
1190
1200
|
return B(() => {
|
|
1191
|
-
}, []), /* @__PURE__ */ V(
|
|
1192
|
-
/* @__PURE__ */ V(
|
|
1201
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
1202
|
+
/* @__PURE__ */ V(T, { children: [
|
|
1193
1203
|
/* @__PURE__ */ V("picture", { children: [
|
|
1194
|
-
n() ? /* @__PURE__ */
|
|
1195
|
-
/* @__PURE__ */
|
|
1204
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1205
|
+
/* @__PURE__ */ s(
|
|
1196
1206
|
"img",
|
|
1197
1207
|
{
|
|
1198
1208
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1211,7 +1221,7 @@ function Lt(e) {
|
|
|
1211
1221
|
}
|
|
1212
1222
|
)
|
|
1213
1223
|
] }),
|
|
1214
|
-
e.aspectRatio && !((
|
|
1224
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1215
1225
|
"div",
|
|
1216
1226
|
{
|
|
1217
1227
|
className: "builder-image-sizer div-7a292ab8",
|
|
@@ -1220,10 +1230,10 @@ function Lt(e) {
|
|
|
1220
1230
|
}
|
|
1221
1231
|
}
|
|
1222
1232
|
) : null,
|
|
1223
|
-
(
|
|
1224
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1233
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
|
|
1234
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1225
1235
|
] }),
|
|
1226
|
-
/* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
1227
1237
|
opacity: 1;
|
|
1228
1238
|
transition: opacity 0.2s ease-in-out;
|
|
1229
1239
|
}.div-7a292ab8 {
|
|
@@ -1243,7 +1253,7 @@ function Lt(e) {
|
|
|
1243
1253
|
] });
|
|
1244
1254
|
}
|
|
1245
1255
|
function Ot(e) {
|
|
1246
|
-
return /* @__PURE__ */
|
|
1256
|
+
return /* @__PURE__ */ s(
|
|
1247
1257
|
"section",
|
|
1248
1258
|
{
|
|
1249
1259
|
...e.attributes,
|
|
@@ -1389,8 +1399,8 @@ const G = {
|
|
|
1389
1399
|
}
|
|
1390
1400
|
}, he = (e) => e.toString();
|
|
1391
1401
|
function Ht(e) {
|
|
1392
|
-
var
|
|
1393
|
-
const [t, n] =
|
|
1402
|
+
var g;
|
|
1403
|
+
const [t, n] = w(() => []);
|
|
1394
1404
|
function i() {
|
|
1395
1405
|
return !!(e.grid || e.oneAtATime);
|
|
1396
1406
|
}
|
|
@@ -1406,7 +1416,7 @@ function Ht(e) {
|
|
|
1406
1416
|
}
|
|
1407
1417
|
};
|
|
1408
1418
|
}
|
|
1409
|
-
function
|
|
1419
|
+
function r() {
|
|
1410
1420
|
const v = {
|
|
1411
1421
|
...{
|
|
1412
1422
|
display: "flex",
|
|
@@ -1416,72 +1426,74 @@ function Ht(e) {
|
|
|
1416
1426
|
cursor: "pointer"
|
|
1417
1427
|
};
|
|
1418
1428
|
return Object.fromEntries(
|
|
1419
|
-
Object.entries(v).filter(([
|
|
1429
|
+
Object.entries(v).filter(([f, k]) => k !== void 0)
|
|
1420
1430
|
);
|
|
1421
1431
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1432
|
+
function a(m) {
|
|
1433
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1424
1434
|
}
|
|
1425
|
-
function
|
|
1426
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1435
|
+
function l(m) {
|
|
1436
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1427
1437
|
}
|
|
1428
1438
|
function d() {
|
|
1429
|
-
let
|
|
1439
|
+
let m = null;
|
|
1430
1440
|
if (e.grid && t.length && document) {
|
|
1431
|
-
const
|
|
1432
|
-
let
|
|
1433
|
-
`.builder-accordion-title[data-index="${
|
|
1441
|
+
const f = t[0];
|
|
1442
|
+
let S = document.querySelector(
|
|
1443
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1434
1444
|
);
|
|
1435
|
-
if (
|
|
1436
|
-
let
|
|
1437
|
-
for (;
|
|
1438
|
-
if (
|
|
1439
|
-
if (
|
|
1445
|
+
if (m = f, S) {
|
|
1446
|
+
let p = S.getBoundingClientRect();
|
|
1447
|
+
for (; S = S && S.nextElementSibling; )
|
|
1448
|
+
if (S) {
|
|
1449
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1440
1450
|
continue;
|
|
1441
|
-
const
|
|
1442
|
-
if (
|
|
1443
|
-
const
|
|
1444
|
-
|
|
1451
|
+
const b = S.getBoundingClientRect();
|
|
1452
|
+
if (b.left > p.left) {
|
|
1453
|
+
const x = parseInt(
|
|
1454
|
+
S.getAttribute("data-index") || "",
|
|
1445
1455
|
10
|
|
1446
1456
|
);
|
|
1447
|
-
isNaN(
|
|
1457
|
+
isNaN(x) || (p = b, m = x);
|
|
1448
1458
|
} else
|
|
1449
1459
|
break;
|
|
1450
1460
|
}
|
|
1451
1461
|
}
|
|
1452
1462
|
}
|
|
1453
|
-
return typeof
|
|
1463
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1454
1464
|
}
|
|
1455
1465
|
function c() {
|
|
1456
|
-
const
|
|
1466
|
+
const m = {
|
|
1457
1467
|
order: typeof d() == "number" ? d() : void 0,
|
|
1458
1468
|
...e.grid && {
|
|
1459
1469
|
width: "100%"
|
|
1460
1470
|
}
|
|
1461
1471
|
};
|
|
1462
1472
|
return Object.fromEntries(
|
|
1463
|
-
Object.entries(
|
|
1473
|
+
Object.entries(m).filter(([v, f]) => f !== void 0)
|
|
1464
1474
|
);
|
|
1465
1475
|
}
|
|
1466
|
-
function h(
|
|
1467
|
-
t.includes(
|
|
1476
|
+
function h(m) {
|
|
1477
|
+
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1468
1478
|
}
|
|
1469
|
-
return /* @__PURE__ */
|
|
1470
|
-
/* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
|
|
1480
|
+
/* @__PURE__ */ s(
|
|
1471
1481
|
"div",
|
|
1472
1482
|
{
|
|
1473
|
-
className:
|
|
1483
|
+
className: a(v),
|
|
1474
1484
|
style: {
|
|
1475
|
-
...
|
|
1476
|
-
|
|
1477
|
-
|
|
1485
|
+
...r(),
|
|
1486
|
+
...e.grid && {
|
|
1487
|
+
width: e.gridRowWidth,
|
|
1488
|
+
order: d() !== null ? he(v) : he(v + 1)
|
|
1489
|
+
}
|
|
1478
1490
|
},
|
|
1479
1491
|
"data-index": v,
|
|
1480
|
-
onClick: (
|
|
1481
|
-
children: /* @__PURE__ */
|
|
1492
|
+
onClick: (f) => h(v),
|
|
1493
|
+
children: /* @__PURE__ */ s(
|
|
1482
1494
|
F,
|
|
1483
1495
|
{
|
|
1484
|
-
blocks:
|
|
1496
|
+
blocks: m.title,
|
|
1485
1497
|
path: `items.${v}.title`,
|
|
1486
1498
|
parent: e.builderBlock.id,
|
|
1487
1499
|
context: e.builderContext,
|
|
@@ -1491,15 +1503,15 @@ function Ht(e) {
|
|
|
1491
1503
|
)
|
|
1492
1504
|
}
|
|
1493
1505
|
),
|
|
1494
|
-
t.includes(v) ? /* @__PURE__ */
|
|
1506
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1495
1507
|
"div",
|
|
1496
1508
|
{
|
|
1497
|
-
className:
|
|
1509
|
+
className: l(v),
|
|
1498
1510
|
style: c(),
|
|
1499
|
-
children: /* @__PURE__ */
|
|
1511
|
+
children: /* @__PURE__ */ s(
|
|
1500
1512
|
F,
|
|
1501
1513
|
{
|
|
1502
|
-
blocks:
|
|
1514
|
+
blocks: m.detail,
|
|
1503
1515
|
path: `items.${v}.detail`,
|
|
1504
1516
|
parent: e.builderBlock.id,
|
|
1505
1517
|
context: e.builderContext,
|
|
@@ -1726,7 +1738,7 @@ const jt = {
|
|
|
1726
1738
|
});
|
|
1727
1739
|
}
|
|
1728
1740
|
const n = e.get("columns");
|
|
1729
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1741
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1730
1742
|
}
|
|
1731
1743
|
}, {
|
|
1732
1744
|
name: "space",
|
|
@@ -1780,29 +1792,29 @@ const jt = {
|
|
|
1780
1792
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1781
1793
|
onChange: (e) => {
|
|
1782
1794
|
e.delete("srcset"), e.delete("noWebp");
|
|
1783
|
-
function n(
|
|
1795
|
+
function n(a, l = 6e4) {
|
|
1784
1796
|
return new Promise((d, c) => {
|
|
1785
1797
|
const h = document.createElement("img");
|
|
1786
|
-
let
|
|
1798
|
+
let g = !1;
|
|
1787
1799
|
h.onload = () => {
|
|
1788
|
-
|
|
1789
|
-
}, h.addEventListener("error", (
|
|
1790
|
-
console.warn("Image load failed",
|
|
1791
|
-
}), h.src =
|
|
1792
|
-
|
|
1793
|
-
},
|
|
1800
|
+
g = !0, d(h);
|
|
1801
|
+
}, h.addEventListener("error", (m) => {
|
|
1802
|
+
console.warn("Image load failed", m.error), c(m.error);
|
|
1803
|
+
}), h.src = a, setTimeout(() => {
|
|
1804
|
+
g || c(new Error("Image load timed out"));
|
|
1805
|
+
}, l);
|
|
1794
1806
|
});
|
|
1795
1807
|
}
|
|
1796
|
-
function i(
|
|
1797
|
-
return Math.round(
|
|
1808
|
+
function i(a) {
|
|
1809
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1798
1810
|
}
|
|
1799
|
-
const o = e.get("image"),
|
|
1800
|
-
if (fetch(o).then((
|
|
1801
|
-
|
|
1802
|
-
}), o && (!
|
|
1803
|
-
return n(o).then((
|
|
1804
|
-
const
|
|
1805
|
-
e.get("image") === o && (!
|
|
1811
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1812
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1813
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1814
|
+
}), o && (!r || r === 0.7041))
|
|
1815
|
+
return n(o).then((a) => {
|
|
1816
|
+
const l = e.get("aspectRatio");
|
|
1817
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1806
1818
|
});
|
|
1807
1819
|
}
|
|
1808
1820
|
}, {
|
|
@@ -1927,7 +1939,7 @@ const jt = {
|
|
|
1927
1939
|
};
|
|
1928
1940
|
function Jt(e) {
|
|
1929
1941
|
var t, n, i;
|
|
1930
|
-
return /* @__PURE__ */
|
|
1942
|
+
return /* @__PURE__ */ s(
|
|
1931
1943
|
"div",
|
|
1932
1944
|
{
|
|
1933
1945
|
style: {
|
|
@@ -1936,7 +1948,7 @@ function Jt(e) {
|
|
|
1936
1948
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1937
1949
|
"builder-slot": e.name
|
|
1938
1950
|
},
|
|
1939
|
-
children: /* @__PURE__ */
|
|
1951
|
+
children: /* @__PURE__ */ s(
|
|
1940
1952
|
F,
|
|
1941
1953
|
{
|
|
1942
1954
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2131,18 +2143,18 @@ const Gt = {
|
|
|
2131
2143
|
}
|
|
2132
2144
|
};
|
|
2133
2145
|
function Qt(e) {
|
|
2134
|
-
var
|
|
2135
|
-
const [t, n] =
|
|
2146
|
+
var r;
|
|
2147
|
+
const [t, n] = w(
|
|
2136
2148
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2137
2149
|
);
|
|
2138
|
-
function i(
|
|
2139
|
-
return e.tabs && e.tabs[
|
|
2150
|
+
function i(a) {
|
|
2151
|
+
return e.tabs && e.tabs[a].content;
|
|
2140
2152
|
}
|
|
2141
|
-
function o(
|
|
2142
|
-
|
|
2153
|
+
function o(a) {
|
|
2154
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2143
2155
|
}
|
|
2144
2156
|
return /* @__PURE__ */ V("div", { children: [
|
|
2145
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ s(
|
|
2146
2158
|
"div",
|
|
2147
2159
|
{
|
|
2148
2160
|
className: "builder-tabs-wrap",
|
|
@@ -2152,35 +2164,35 @@ function Qt(e) {
|
|
|
2152
2164
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2153
2165
|
overflow: "auto"
|
|
2154
2166
|
},
|
|
2155
|
-
children: (
|
|
2167
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
2156
2168
|
"span",
|
|
2157
2169
|
{
|
|
2158
|
-
className: `builder-tab-wrap ${t ===
|
|
2170
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2159
2171
|
style: {
|
|
2160
|
-
...t ===
|
|
2172
|
+
...t === l ? e.activeTabStyle : {}
|
|
2161
2173
|
},
|
|
2162
|
-
onClick: (d) => o(
|
|
2163
|
-
children: /* @__PURE__ */
|
|
2174
|
+
onClick: (d) => o(l),
|
|
2175
|
+
children: /* @__PURE__ */ s(
|
|
2164
2176
|
F,
|
|
2165
2177
|
{
|
|
2166
2178
|
parent: e.builderBlock.id,
|
|
2167
|
-
path: `
|
|
2168
|
-
blocks:
|
|
2179
|
+
path: `tabs.${l}.label`,
|
|
2180
|
+
blocks: a.label,
|
|
2169
2181
|
context: e.builderContext,
|
|
2170
2182
|
registeredComponents: e.builderComponents,
|
|
2171
2183
|
linkComponent: e.builderLinkComponent
|
|
2172
2184
|
}
|
|
2173
2185
|
)
|
|
2174
2186
|
},
|
|
2175
|
-
|
|
2187
|
+
l
|
|
2176
2188
|
))
|
|
2177
2189
|
}
|
|
2178
2190
|
),
|
|
2179
|
-
i(t) ? /* @__PURE__ */
|
|
2191
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2180
2192
|
F,
|
|
2181
2193
|
{
|
|
2182
2194
|
parent: e.builderBlock.id,
|
|
2183
|
-
path: `
|
|
2195
|
+
path: `tabs.${t}.content`,
|
|
2184
2196
|
blocks: i(t),
|
|
2185
2197
|
context: e.builderContext,
|
|
2186
2198
|
registeredComponents: e.builderComponents,
|
|
@@ -2214,25 +2226,25 @@ const Xt = {
|
|
|
2214
2226
|
};
|
|
2215
2227
|
function Zt(e) {
|
|
2216
2228
|
function t() {
|
|
2217
|
-
var
|
|
2229
|
+
var l;
|
|
2218
2230
|
const n = e.builderContext, {
|
|
2219
2231
|
context: i,
|
|
2220
2232
|
localState: o,
|
|
2221
|
-
rootState:
|
|
2222
|
-
rootSetState:
|
|
2233
|
+
rootState: r,
|
|
2234
|
+
rootSetState: a
|
|
2223
2235
|
} = n;
|
|
2224
|
-
return String(((
|
|
2236
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2225
2237
|
/{{([^}]+)}}/g,
|
|
2226
2238
|
(d, c) => L({
|
|
2227
2239
|
code: c,
|
|
2228
2240
|
context: i,
|
|
2229
2241
|
localState: o,
|
|
2230
|
-
rootState:
|
|
2231
|
-
rootSetState:
|
|
2242
|
+
rootState: r,
|
|
2243
|
+
rootSetState: a
|
|
2232
2244
|
})
|
|
2233
2245
|
);
|
|
2234
2246
|
}
|
|
2235
|
-
return /* @__PURE__ */
|
|
2247
|
+
return /* @__PURE__ */ s(
|
|
2236
2248
|
"div",
|
|
2237
2249
|
{
|
|
2238
2250
|
className: "builder-text",
|
|
@@ -2267,14 +2279,14 @@ const en = {
|
|
|
2267
2279
|
}]
|
|
2268
2280
|
};
|
|
2269
2281
|
function tn(e) {
|
|
2270
|
-
const t = $(null), [n, i] =
|
|
2282
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []);
|
|
2271
2283
|
return B(() => {
|
|
2272
|
-
var
|
|
2273
|
-
if (!((
|
|
2284
|
+
var l;
|
|
2285
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2274
2286
|
return;
|
|
2275
|
-
const
|
|
2276
|
-
for (let d = 0; d <
|
|
2277
|
-
const c =
|
|
2287
|
+
const a = t.current.getElementsByTagName("script");
|
|
2288
|
+
for (let d = 0; d < a.length; d++) {
|
|
2289
|
+
const c = a[d];
|
|
2278
2290
|
if (c.src) {
|
|
2279
2291
|
if (n.includes(c.src))
|
|
2280
2292
|
continue;
|
|
@@ -2295,7 +2307,7 @@ function tn(e) {
|
|
|
2295
2307
|
}
|
|
2296
2308
|
}
|
|
2297
2309
|
}
|
|
2298
|
-
}, []), /* @__PURE__ */
|
|
2310
|
+
}, []), /* @__PURE__ */ s(
|
|
2299
2311
|
"div",
|
|
2300
2312
|
{
|
|
2301
2313
|
ref: t,
|
|
@@ -2321,28 +2333,28 @@ const nn = {
|
|
|
2321
2333
|
}]
|
|
2322
2334
|
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2323
2335
|
function rn(e) {
|
|
2324
|
-
const t = $(null), [n, i] =
|
|
2336
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []), [a, l] = w(() => !1);
|
|
2325
2337
|
function d() {
|
|
2326
2338
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2327
2339
|
return;
|
|
2328
2340
|
const c = t.current.getElementsByTagName("script");
|
|
2329
2341
|
for (let h = 0; h < c.length; h++) {
|
|
2330
|
-
const
|
|
2331
|
-
if (
|
|
2332
|
-
n.push(
|
|
2333
|
-
const
|
|
2334
|
-
|
|
2335
|
-
} else if (an(
|
|
2342
|
+
const g = c[h];
|
|
2343
|
+
if (g.src && !n.includes(g.src)) {
|
|
2344
|
+
n.push(g.src);
|
|
2345
|
+
const m = document.createElement("script");
|
|
2346
|
+
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2347
|
+
} else if (an(g) && !o.includes(g.innerText))
|
|
2336
2348
|
try {
|
|
2337
|
-
o.push(
|
|
2338
|
-
} catch (
|
|
2339
|
-
console.warn("`Embed`: Error running script:",
|
|
2349
|
+
o.push(g.innerText), new Function(g.innerText)();
|
|
2350
|
+
} catch (m) {
|
|
2351
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2340
2352
|
}
|
|
2341
2353
|
}
|
|
2342
2354
|
}
|
|
2343
2355
|
return B(() => {
|
|
2344
|
-
t.current && !
|
|
2345
|
-
}, [t.current,
|
|
2356
|
+
t.current && !a && (l(!0), d());
|
|
2357
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2346
2358
|
"div",
|
|
2347
2359
|
{
|
|
2348
2360
|
className: "builder-embed",
|
|
@@ -2593,115 +2605,115 @@ const ln = {
|
|
|
2593
2605
|
return sn.includes(e) ? e : "production";
|
|
2594
2606
|
};
|
|
2595
2607
|
function dn(e) {
|
|
2596
|
-
var
|
|
2597
|
-
const t = $(null), [n, i] =
|
|
2608
|
+
var g, m;
|
|
2609
|
+
const t = $(null), [n, i] = w(() => "unsubmitted"), [o, r] = w(() => null), [a, l] = w(() => "");
|
|
2598
2610
|
function d(v) {
|
|
2599
|
-
var
|
|
2600
|
-
const
|
|
2611
|
+
var k, S;
|
|
2612
|
+
const f = {
|
|
2601
2613
|
...e.builderContext.rootState,
|
|
2602
2614
|
...v
|
|
2603
2615
|
};
|
|
2604
|
-
e.builderContext.rootSetState ? (
|
|
2616
|
+
e.builderContext.rootSetState ? (S = (k = e.builderContext).rootSetState) == null || S.call(k, f) : e.builderContext.rootState = f;
|
|
2605
2617
|
}
|
|
2606
2618
|
function c() {
|
|
2607
2619
|
return N() && e.previewState || n;
|
|
2608
2620
|
}
|
|
2609
2621
|
function h(v) {
|
|
2610
|
-
var
|
|
2611
|
-
const
|
|
2622
|
+
var k;
|
|
2623
|
+
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2612
2624
|
if (e.sendSubmissionsTo === "zapier")
|
|
2613
2625
|
v.preventDefault();
|
|
2614
|
-
else if (
|
|
2626
|
+
else if (f) {
|
|
2615
2627
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2616
2628
|
v.preventDefault();
|
|
2617
2629
|
return;
|
|
2618
2630
|
}
|
|
2619
2631
|
v.preventDefault();
|
|
2620
|
-
const
|
|
2621
|
-
let
|
|
2622
|
-
const
|
|
2623
|
-
let
|
|
2632
|
+
const S = v.currentTarget || v.target, p = e.customHeaders || {};
|
|
2633
|
+
let b;
|
|
2634
|
+
const x = new FormData(S), A = Array.from(S.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2635
|
+
let y;
|
|
2624
2636
|
const E = u.name;
|
|
2625
2637
|
if (u instanceof HTMLInputElement)
|
|
2626
2638
|
if (u.type === "radio") {
|
|
2627
2639
|
if (u.checked)
|
|
2628
|
-
return
|
|
2640
|
+
return y = u.name, {
|
|
2629
2641
|
key: E,
|
|
2630
|
-
value:
|
|
2642
|
+
value: y
|
|
2631
2643
|
};
|
|
2632
2644
|
} else if (u.type === "checkbox")
|
|
2633
|
-
|
|
2645
|
+
y = u.checked;
|
|
2634
2646
|
else if (u.type === "number" || u.type === "range") {
|
|
2635
|
-
const
|
|
2636
|
-
isNaN(
|
|
2647
|
+
const R = u.valueAsNumber;
|
|
2648
|
+
isNaN(R) || (y = R);
|
|
2637
2649
|
} else
|
|
2638
|
-
u.type === "file" ?
|
|
2650
|
+
u.type === "file" ? y = u.files : y = u.value;
|
|
2639
2651
|
else
|
|
2640
|
-
|
|
2652
|
+
y = u.value;
|
|
2641
2653
|
return {
|
|
2642
2654
|
key: E,
|
|
2643
|
-
value:
|
|
2655
|
+
value: y
|
|
2644
2656
|
};
|
|
2645
2657
|
});
|
|
2646
|
-
let
|
|
2647
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2648
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2649
|
-
}),
|
|
2650
|
-
|
|
2658
|
+
let C = e.contentType;
|
|
2659
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2660
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (C = "multipart/form-data");
|
|
2661
|
+
}), C !== "application/json")
|
|
2662
|
+
b = x;
|
|
2651
2663
|
else {
|
|
2652
2664
|
const u = {};
|
|
2653
|
-
Array.from(
|
|
2654
|
-
Ce(u, E,
|
|
2655
|
-
}),
|
|
2665
|
+
Array.from(A).forEach(({ value: y, key: E }) => {
|
|
2666
|
+
Ce(u, E, y);
|
|
2667
|
+
}), b = JSON.stringify(u);
|
|
2656
2668
|
}
|
|
2657
|
-
|
|
2658
|
-
const
|
|
2659
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2669
|
+
C && C !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (p["content-type"] = C));
|
|
2670
|
+
const I = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2671
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2660
2672
|
return;
|
|
2661
2673
|
i("sending");
|
|
2662
|
-
const
|
|
2674
|
+
const P = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2663
2675
|
e.sendSubmissionsToEmail || ""
|
|
2664
2676
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2665
2677
|
fetch(
|
|
2666
|
-
e.sendSubmissionsTo === "email" ?
|
|
2667
|
-
{ body:
|
|
2678
|
+
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2679
|
+
{ body: b, headers: p, method: e.method || "post" }
|
|
2668
2680
|
).then(
|
|
2669
2681
|
async (u) => {
|
|
2670
|
-
let
|
|
2682
|
+
let y;
|
|
2671
2683
|
const E = u.headers.get("content-type");
|
|
2672
|
-
if (E && E.indexOf("application/json") !== -1 ?
|
|
2673
|
-
let
|
|
2674
|
-
|
|
2684
|
+
if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2685
|
+
let R = Ie(y, e.errorMessagePath);
|
|
2686
|
+
R && (typeof R != "string" && (R = JSON.stringify(R)), l(R), d({ formErrorMessage: R }));
|
|
2675
2687
|
}
|
|
2676
|
-
if (
|
|
2677
|
-
const
|
|
2678
|
-
detail: { res: u, body:
|
|
2688
|
+
if (r(y), i(u.ok ? "success" : "error"), u.ok) {
|
|
2689
|
+
const R = new CustomEvent("submit:success", {
|
|
2690
|
+
detail: { res: u, body: y }
|
|
2679
2691
|
});
|
|
2680
2692
|
if (t.current) {
|
|
2681
|
-
if (t.current.dispatchEvent(
|
|
2693
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
2682
2694
|
return;
|
|
2683
2695
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2684
2696
|
}
|
|
2685
2697
|
if (e.successUrl)
|
|
2686
2698
|
if (t.current) {
|
|
2687
|
-
const
|
|
2699
|
+
const W = new CustomEvent("route", {
|
|
2688
2700
|
detail: { url: e.successUrl }
|
|
2689
2701
|
});
|
|
2690
|
-
t.current.dispatchEvent(
|
|
2702
|
+
t.current.dispatchEvent(W), W.defaultPrevented || (location.href = e.successUrl);
|
|
2691
2703
|
} else
|
|
2692
2704
|
location.href = e.successUrl;
|
|
2693
2705
|
}
|
|
2694
2706
|
},
|
|
2695
2707
|
(u) => {
|
|
2696
|
-
const
|
|
2708
|
+
const y = new CustomEvent("submit:error", {
|
|
2697
2709
|
detail: { error: u }
|
|
2698
2710
|
});
|
|
2699
|
-
t.current && (t.current.dispatchEvent(
|
|
2711
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(u), i("error"));
|
|
2700
2712
|
}
|
|
2701
2713
|
);
|
|
2702
2714
|
}
|
|
2703
2715
|
}
|
|
2704
|
-
return /* @__PURE__ */ V(
|
|
2716
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
2705
2717
|
" ",
|
|
2706
2718
|
/* @__PURE__ */ V(
|
|
2707
2719
|
"form",
|
|
@@ -2714,7 +2726,7 @@ function dn(e) {
|
|
|
2714
2726
|
onSubmit: (v) => h(v),
|
|
2715
2727
|
...e.attributes,
|
|
2716
2728
|
children: [
|
|
2717
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2729
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ s(
|
|
2718
2730
|
H,
|
|
2719
2731
|
{
|
|
2720
2732
|
block: v,
|
|
@@ -2722,9 +2734,9 @@ function dn(e) {
|
|
|
2722
2734
|
registeredComponents: e.builderComponents,
|
|
2723
2735
|
linkComponent: e.builderLinkComponent
|
|
2724
2736
|
},
|
|
2725
|
-
`form-block-${
|
|
2737
|
+
`form-block-${f}`
|
|
2726
2738
|
)) }) : null,
|
|
2727
|
-
c() === "error" ? /* @__PURE__ */
|
|
2739
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2728
2740
|
F,
|
|
2729
2741
|
{
|
|
2730
2742
|
path: "errorMessage",
|
|
@@ -2732,7 +2744,7 @@ function dn(e) {
|
|
|
2732
2744
|
context: e.builderContext
|
|
2733
2745
|
}
|
|
2734
2746
|
) : null,
|
|
2735
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2747
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2736
2748
|
F,
|
|
2737
2749
|
{
|
|
2738
2750
|
path: "sendingMessage",
|
|
@@ -2740,8 +2752,8 @@ function dn(e) {
|
|
|
2740
2752
|
context: e.builderContext
|
|
2741
2753
|
}
|
|
2742
2754
|
) : null,
|
|
2743
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2744
|
-
c() === "success" ? /* @__PURE__ */
|
|
2755
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2756
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2745
2757
|
F,
|
|
2746
2758
|
{
|
|
2747
2759
|
path: "successMessage",
|
|
@@ -2753,7 +2765,7 @@ function dn(e) {
|
|
|
2753
2765
|
}
|
|
2754
2766
|
),
|
|
2755
2767
|
" ",
|
|
2756
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2757
2769
|
" "
|
|
2758
2770
|
] });
|
|
2759
2771
|
}
|
|
@@ -2879,7 +2891,7 @@ function hn(e) {
|
|
|
2879
2891
|
name: e.name,
|
|
2880
2892
|
required: e.required
|
|
2881
2893
|
},
|
|
2882
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2894
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2883
2895
|
);
|
|
2884
2896
|
}
|
|
2885
2897
|
const gn = {
|
|
@@ -2909,7 +2921,7 @@ const gn = {
|
|
|
2909
2921
|
// canHaveChildren: true,
|
|
2910
2922
|
};
|
|
2911
2923
|
function bn(e) {
|
|
2912
|
-
return /* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2913
2925
|
}
|
|
2914
2926
|
const pn = {
|
|
2915
2927
|
name: "Form:TextArea",
|
|
@@ -2949,7 +2961,7 @@ const pn = {
|
|
|
2949
2961
|
noWrap: !0
|
|
2950
2962
|
};
|
|
2951
2963
|
function yn(e) {
|
|
2952
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ s(
|
|
2953
2965
|
"textarea",
|
|
2954
2966
|
{
|
|
2955
2967
|
...e.attributes,
|
|
@@ -2977,7 +2989,7 @@ const xn = {
|
|
|
2977
2989
|
static: !0
|
|
2978
2990
|
};
|
|
2979
2991
|
function vn(e) {
|
|
2980
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ s(
|
|
2981
2993
|
"img",
|
|
2982
2994
|
{
|
|
2983
2995
|
style: {
|
|
@@ -3077,7 +3089,7 @@ const Sn = {
|
|
|
3077
3089
|
}
|
|
3078
3090
|
};
|
|
3079
3091
|
function kn(e) {
|
|
3080
|
-
var i, o,
|
|
3092
|
+
var i, o, r, a, l, d, c;
|
|
3081
3093
|
function t() {
|
|
3082
3094
|
return {
|
|
3083
3095
|
...e.autoPlay === !0 ? {
|
|
@@ -3109,7 +3121,7 @@ function kn(e) {
|
|
|
3109
3121
|
position: "relative"
|
|
3110
3122
|
},
|
|
3111
3123
|
children: [
|
|
3112
|
-
/* @__PURE__ */
|
|
3124
|
+
/* @__PURE__ */ s(
|
|
3113
3125
|
"video",
|
|
3114
3126
|
{
|
|
3115
3127
|
className: "builder-video",
|
|
@@ -3131,10 +3143,10 @@ function kn(e) {
|
|
|
3131
3143
|
},
|
|
3132
3144
|
src: e.video || "no-src",
|
|
3133
3145
|
poster: e.posterImage,
|
|
3134
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3146
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3135
3147
|
}
|
|
3136
3148
|
),
|
|
3137
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3149
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3138
3150
|
"div",
|
|
3139
3151
|
{
|
|
3140
3152
|
style: {
|
|
@@ -3145,7 +3157,7 @@ function kn(e) {
|
|
|
3145
3157
|
}
|
|
3146
3158
|
}
|
|
3147
3159
|
) : null,
|
|
3148
|
-
(
|
|
3160
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3149
3161
|
"div",
|
|
3150
3162
|
{
|
|
3151
3163
|
style: {
|
|
@@ -3156,7 +3168,7 @@ function kn(e) {
|
|
|
3156
3168
|
children: e.children
|
|
3157
3169
|
}
|
|
3158
3170
|
) : null,
|
|
3159
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3171
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3160
3172
|
"div",
|
|
3161
3173
|
{
|
|
3162
3174
|
style: {
|
|
@@ -3344,7 +3356,7 @@ const Cn = () => [{
|
|
|
3344
3356
|
"${t}", "${e}", ${$e}
|
|
3345
3357
|
)`;
|
|
3346
3358
|
function te(e) {
|
|
3347
|
-
return /* @__PURE__ */
|
|
3359
|
+
return /* @__PURE__ */ s(
|
|
3348
3360
|
"script",
|
|
3349
3361
|
{
|
|
3350
3362
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3374,10 +3386,10 @@ const Vn = (e, t, n = !0) => {
|
|
|
3374
3386
|
event: e,
|
|
3375
3387
|
target: t
|
|
3376
3388
|
}) => {
|
|
3377
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3389
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = be(i / n.width), a = be(o / n.height);
|
|
3378
3390
|
return {
|
|
3379
|
-
x:
|
|
3380
|
-
y:
|
|
3391
|
+
x: r,
|
|
3392
|
+
y: a
|
|
3381
3393
|
};
|
|
3382
3394
|
}, Wn = (e) => {
|
|
3383
3395
|
const t = e.target, n = t && An(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -3396,8 +3408,8 @@ const Vn = (e, t, n = !0) => {
|
|
|
3396
3408
|
}
|
|
3397
3409
|
};
|
|
3398
3410
|
}, Nn = (e) => {
|
|
3399
|
-
var
|
|
3400
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3411
|
+
var r, a;
|
|
3412
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3401
3413
|
let o = "";
|
|
3402
3414
|
if (i && t && n && (o += `
|
|
3403
3415
|
@font-face {
|
|
@@ -3407,16 +3419,16 @@ font-display: fallback;
|
|
|
3407
3419
|
font-weight: 400;
|
|
3408
3420
|
}
|
|
3409
3421
|
`.trim()), e.files)
|
|
3410
|
-
for (const
|
|
3411
|
-
if (!(String(Number(
|
|
3422
|
+
for (const l in e.files) {
|
|
3423
|
+
if (!(String(Number(l)) === l))
|
|
3412
3424
|
continue;
|
|
3413
|
-
const c = e.files[
|
|
3425
|
+
const c = e.files[l];
|
|
3414
3426
|
c && c !== i && (o += `
|
|
3415
3427
|
@font-face {
|
|
3416
3428
|
font-family: "${t}";
|
|
3417
3429
|
src: url('${c}') format('woff2');
|
|
3418
3430
|
font-display: fallback;
|
|
3419
|
-
font-weight: ${
|
|
3431
|
+
font-weight: ${l};
|
|
3420
3432
|
}
|
|
3421
3433
|
`.trim());
|
|
3422
3434
|
}
|
|
@@ -3448,37 +3460,37 @@ font-weight: ${s};
|
|
|
3448
3460
|
}
|
|
3449
3461
|
`, Ln = (e) => e ? "" : Dn, On = (e) => `variant-${e}`;
|
|
3450
3462
|
function Un(e) {
|
|
3451
|
-
var
|
|
3463
|
+
var b, x, A;
|
|
3452
3464
|
const t = $(null);
|
|
3453
|
-
function n(
|
|
3454
|
-
var
|
|
3455
|
-
const
|
|
3465
|
+
function n(C) {
|
|
3466
|
+
var P, u;
|
|
3467
|
+
const I = {
|
|
3456
3468
|
...e.builderContextSignal.rootState,
|
|
3457
|
-
...
|
|
3469
|
+
...C
|
|
3458
3470
|
};
|
|
3459
|
-
e.builderContextSignal.rootSetState ? (u = (
|
|
3460
|
-
...
|
|
3461
|
-
rootState:
|
|
3471
|
+
e.builderContextSignal.rootSetState ? (u = (P = e.builderContextSignal).rootSetState) == null || u.call(P, I) : e.setBuilderContextSignal((y) => ({
|
|
3472
|
+
...y,
|
|
3473
|
+
rootState: I
|
|
3462
3474
|
}));
|
|
3463
3475
|
}
|
|
3464
|
-
function i(
|
|
3465
|
-
var
|
|
3466
|
-
const
|
|
3476
|
+
function i(C) {
|
|
3477
|
+
var P, u, y, E, R;
|
|
3478
|
+
const I = {
|
|
3467
3479
|
...e.builderContextSignal.content,
|
|
3468
|
-
...
|
|
3480
|
+
...C,
|
|
3469
3481
|
data: {
|
|
3470
|
-
...(
|
|
3471
|
-
...
|
|
3482
|
+
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3483
|
+
...C == null ? void 0 : C.data
|
|
3472
3484
|
},
|
|
3473
3485
|
meta: {
|
|
3474
3486
|
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3475
|
-
...
|
|
3476
|
-
breakpoints: ((
|
|
3487
|
+
...C == null ? void 0 : C.meta,
|
|
3488
|
+
breakpoints: ((y = C == null ? void 0 : C.meta) == null ? void 0 : y.breakpoints) || ((R = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : R.breakpoints)
|
|
3477
3489
|
}
|
|
3478
3490
|
};
|
|
3479
|
-
e.setBuilderContextSignal((
|
|
3480
|
-
...
|
|
3481
|
-
content:
|
|
3491
|
+
e.setBuilderContextSignal((W) => ({
|
|
3492
|
+
...W,
|
|
3493
|
+
content: I
|
|
3482
3494
|
}));
|
|
3483
3495
|
}
|
|
3484
3496
|
function o() {
|
|
@@ -3487,60 +3499,60 @@ function Un(e) {
|
|
|
3487
3499
|
"aria-hidden": !0
|
|
3488
3500
|
};
|
|
3489
3501
|
}
|
|
3490
|
-
const [
|
|
3502
|
+
const [r, a] = w(
|
|
3491
3503
|
() => e.contentWrapper || "div"
|
|
3492
3504
|
);
|
|
3493
|
-
function
|
|
3505
|
+
function l(C) {
|
|
3494
3506
|
return He({
|
|
3495
3507
|
model: e.model,
|
|
3496
3508
|
trustedHosts: e.trustedHosts,
|
|
3497
3509
|
callbacks: {
|
|
3498
|
-
configureSdk: (
|
|
3499
|
-
var
|
|
3500
|
-
const { breakpoints:
|
|
3501
|
-
!u || u !== ((
|
|
3510
|
+
configureSdk: (I) => {
|
|
3511
|
+
var y;
|
|
3512
|
+
const { breakpoints: P, contentId: u } = I;
|
|
3513
|
+
!u || u !== ((y = e.builderContextSignal.content) == null ? void 0 : y.id) || P && i({
|
|
3502
3514
|
meta: {
|
|
3503
|
-
breakpoints:
|
|
3515
|
+
breakpoints: P
|
|
3504
3516
|
}
|
|
3505
3517
|
});
|
|
3506
3518
|
},
|
|
3507
|
-
animation: (
|
|
3508
|
-
Re(
|
|
3519
|
+
animation: (I) => {
|
|
3520
|
+
Re(I);
|
|
3509
3521
|
},
|
|
3510
|
-
contentUpdate: (
|
|
3511
|
-
i(
|
|
3522
|
+
contentUpdate: (I) => {
|
|
3523
|
+
i(I);
|
|
3512
3524
|
}
|
|
3513
3525
|
}
|
|
3514
|
-
})(
|
|
3526
|
+
})(C);
|
|
3515
3527
|
}
|
|
3516
|
-
const [d, c] =
|
|
3517
|
-
function
|
|
3518
|
-
var
|
|
3528
|
+
const [d, c] = w(() => ({})), [h, g] = w(() => ({})), [m, v] = w(() => !1);
|
|
3529
|
+
function f(C) {
|
|
3530
|
+
var I, P;
|
|
3519
3531
|
if (e.builderContextSignal.content) {
|
|
3520
|
-
const u = (
|
|
3532
|
+
const u = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, y = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3521
3533
|
le({
|
|
3522
3534
|
apiHost: e.apiHost,
|
|
3523
3535
|
type: "click",
|
|
3524
3536
|
canTrack: q(e.canTrack),
|
|
3525
|
-
contentId:
|
|
3537
|
+
contentId: y,
|
|
3526
3538
|
apiKey: e.apiKey,
|
|
3527
|
-
variationId: u !==
|
|
3528
|
-
...Wn(
|
|
3529
|
-
unique: !
|
|
3539
|
+
variationId: u !== y ? u : void 0,
|
|
3540
|
+
...Wn(C),
|
|
3541
|
+
unique: !m
|
|
3530
3542
|
});
|
|
3531
3543
|
}
|
|
3532
|
-
|
|
3544
|
+
m || v(!0);
|
|
3533
3545
|
}
|
|
3534
|
-
function
|
|
3535
|
-
var
|
|
3536
|
-
const
|
|
3537
|
-
Object.entries(
|
|
3538
|
-
if (!E || h[
|
|
3546
|
+
function k() {
|
|
3547
|
+
var I, P, u;
|
|
3548
|
+
const C = (u = (P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests) != null ? u : {};
|
|
3549
|
+
Object.entries(C).forEach(([y, E]) => {
|
|
3550
|
+
if (!E || h[y] || d[y] && !N())
|
|
3539
3551
|
return;
|
|
3540
|
-
h[
|
|
3541
|
-
const
|
|
3552
|
+
h[y] = !0;
|
|
3553
|
+
const R = E.replace(
|
|
3542
3554
|
/{{([^}]+)}}/g,
|
|
3543
|
-
(
|
|
3555
|
+
(W, De) => String(
|
|
3544
3556
|
L({
|
|
3545
3557
|
code: De,
|
|
3546
3558
|
context: e.context || {},
|
|
@@ -3550,18 +3562,18 @@ function Un(e) {
|
|
|
3550
3562
|
})
|
|
3551
3563
|
)
|
|
3552
3564
|
);
|
|
3553
|
-
fetch(
|
|
3565
|
+
fetch(R).then((W) => W.json()).then((W) => {
|
|
3554
3566
|
n({
|
|
3555
|
-
[
|
|
3556
|
-
}), d[
|
|
3557
|
-
}).catch((
|
|
3558
|
-
console.error("error fetching dynamic data", E,
|
|
3567
|
+
[y]: W
|
|
3568
|
+
}), d[y] = !0;
|
|
3569
|
+
}).catch((W) => {
|
|
3570
|
+
console.error("error fetching dynamic data", E, W);
|
|
3559
3571
|
}).finally(() => {
|
|
3560
|
-
h[
|
|
3572
|
+
h[y] = !1;
|
|
3561
3573
|
});
|
|
3562
3574
|
});
|
|
3563
3575
|
}
|
|
3564
|
-
function
|
|
3576
|
+
function S() {
|
|
3565
3577
|
N() && window.dispatchEvent(
|
|
3566
3578
|
new CustomEvent(
|
|
3567
3579
|
"builder:component:stateChange",
|
|
@@ -3576,11 +3588,11 @@ function Un(e) {
|
|
|
3576
3588
|
)
|
|
3577
3589
|
);
|
|
3578
3590
|
}
|
|
3579
|
-
const
|
|
3580
|
-
return
|
|
3581
|
-
var
|
|
3591
|
+
const p = $(!1);
|
|
3592
|
+
return p.current || (k(), S(), p.current = !0), B(() => {
|
|
3593
|
+
var C, I;
|
|
3582
3594
|
if (_()) {
|
|
3583
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message",
|
|
3595
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", l), Le(), Oe({
|
|
3584
3596
|
...e.locale ? {
|
|
3585
3597
|
locale: e.locale
|
|
3586
3598
|
} : {},
|
|
@@ -3594,39 +3606,39 @@ function Un(e) {
|
|
|
3594
3606
|
e.builderContextSignal.componentInfos
|
|
3595
3607
|
).forEach((u) => {
|
|
3596
3608
|
var E;
|
|
3597
|
-
const
|
|
3598
|
-
(E = window.parent) == null || E.postMessage(
|
|
3609
|
+
const y = Ue(u);
|
|
3610
|
+
(E = window.parent) == null || E.postMessage(y, "*");
|
|
3599
3611
|
}), window.addEventListener(
|
|
3600
3612
|
"builder:component:stateChangeListenerActivated",
|
|
3601
|
-
|
|
3613
|
+
S
|
|
3602
3614
|
)), e.builderContextSignal.content && q(e.canTrack)) {
|
|
3603
|
-
const u = (
|
|
3615
|
+
const u = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, y = (I = e.builderContextSignal.content) == null ? void 0 : I.id, E = e.apiKey;
|
|
3604
3616
|
le({
|
|
3605
3617
|
apiHost: e.apiHost,
|
|
3606
3618
|
type: "impression",
|
|
3607
3619
|
canTrack: !0,
|
|
3608
|
-
contentId:
|
|
3620
|
+
contentId: y,
|
|
3609
3621
|
apiKey: E,
|
|
3610
|
-
variationId: u !==
|
|
3622
|
+
variationId: u !== y ? u : void 0
|
|
3611
3623
|
});
|
|
3612
3624
|
}
|
|
3613
3625
|
if (xe() && !N()) {
|
|
3614
|
-
const u = new URL(location.href).searchParams,
|
|
3615
|
-
`builder.overrides.${
|
|
3616
|
-
),
|
|
3617
|
-
|
|
3626
|
+
const u = new URL(location.href).searchParams, y = u.get("builder.preview"), E = u.get(
|
|
3627
|
+
`builder.overrides.${y}`
|
|
3628
|
+
), R = u.get("apiKey") || u.get("builder.space");
|
|
3629
|
+
y === e.model && R === e.apiKey && (!e.content || E === e.content.id) && ve({
|
|
3618
3630
|
model: e.model,
|
|
3619
3631
|
apiKey: e.apiKey,
|
|
3620
3632
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3621
|
-
}).then((
|
|
3622
|
-
|
|
3633
|
+
}).then((W) => {
|
|
3634
|
+
W && i(W);
|
|
3623
3635
|
});
|
|
3624
3636
|
}
|
|
3625
3637
|
}
|
|
3626
3638
|
}, []), B(() => {
|
|
3627
3639
|
e.content && i(e.content);
|
|
3628
3640
|
}, [e.content]), B(() => {
|
|
3629
|
-
|
|
3641
|
+
S();
|
|
3630
3642
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3631
3643
|
e.data && n(e.data);
|
|
3632
3644
|
}, [e.data]), B(() => {
|
|
@@ -3634,19 +3646,19 @@ function Un(e) {
|
|
|
3634
3646
|
locale: e.locale
|
|
3635
3647
|
});
|
|
3636
3648
|
}, [e.locale]), B(() => () => {
|
|
3637
|
-
_() && (window.removeEventListener("message",
|
|
3649
|
+
_() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3638
3650
|
"builder:component:stateChangeListenerActivated",
|
|
3639
|
-
|
|
3651
|
+
S
|
|
3640
3652
|
));
|
|
3641
|
-
}, []), /* @__PURE__ */
|
|
3642
|
-
|
|
3653
|
+
}, []), /* @__PURE__ */ s(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3654
|
+
r,
|
|
3643
3655
|
{
|
|
3644
3656
|
ref: t,
|
|
3645
|
-
onClick: (
|
|
3646
|
-
"builder-content-id": (
|
|
3657
|
+
onClick: (C) => f(C),
|
|
3658
|
+
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3647
3659
|
"builder-model": e.model,
|
|
3648
3660
|
className: On(
|
|
3649
|
-
((
|
|
3661
|
+
((x = e.content) == null ? void 0 : x.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3650
3662
|
),
|
|
3651
3663
|
...o(),
|
|
3652
3664
|
...e.contentWrapperProps,
|
|
@@ -3655,7 +3667,7 @@ function Un(e) {
|
|
|
3655
3667
|
) : null });
|
|
3656
3668
|
}
|
|
3657
3669
|
function Hn(e) {
|
|
3658
|
-
const [t, n] =
|
|
3670
|
+
const [t, n] = w(
|
|
3659
3671
|
() => `
|
|
3660
3672
|
${$n({
|
|
3661
3673
|
cssCode: e.cssCode,
|
|
@@ -3667,7 +3679,7 @@ ${Fn({
|
|
|
3667
3679
|
${Ln(e.isNestedRender)}
|
|
3668
3680
|
`.trim()
|
|
3669
3681
|
);
|
|
3670
|
-
return /* @__PURE__ */
|
|
3682
|
+
return /* @__PURE__ */ s(
|
|
3671
3683
|
z,
|
|
3672
3684
|
{
|
|
3673
3685
|
id: "builderio-content",
|
|
@@ -3681,9 +3693,9 @@ const jn = ({
|
|
|
3681
3693
|
data: t,
|
|
3682
3694
|
locale: n
|
|
3683
3695
|
}) => {
|
|
3684
|
-
var
|
|
3685
|
-
const i = {}, o = ((
|
|
3686
|
-
return (
|
|
3696
|
+
var r, a, l;
|
|
3697
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3698
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
3687
3699
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3688
3700
|
}), {
|
|
3689
3701
|
...i,
|
|
@@ -3705,43 +3717,43 @@ const jn = ({
|
|
|
3705
3717
|
meta: e == null ? void 0 : e.meta
|
|
3706
3718
|
} : void 0;
|
|
3707
3719
|
function ye(e) {
|
|
3708
|
-
var c, h,
|
|
3709
|
-
const [t, n] =
|
|
3720
|
+
var c, h, g, m, v, f, k, S, p;
|
|
3721
|
+
const [t, n] = w(
|
|
3710
3722
|
() => {
|
|
3711
|
-
var
|
|
3723
|
+
var b, x;
|
|
3712
3724
|
return Bn({
|
|
3713
3725
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3714
|
-
variationId: (
|
|
3726
|
+
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3715
3727
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3716
|
-
contentId: (
|
|
3728
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3717
3729
|
});
|
|
3718
3730
|
}
|
|
3719
3731
|
);
|
|
3720
|
-
function i(
|
|
3721
|
-
|
|
3722
|
-
...
|
|
3723
|
-
rootState:
|
|
3732
|
+
function i(b) {
|
|
3733
|
+
l((x) => ({
|
|
3734
|
+
...x,
|
|
3735
|
+
rootState: b
|
|
3724
3736
|
}));
|
|
3725
3737
|
}
|
|
3726
|
-
const [o,
|
|
3738
|
+
const [o, r] = w(
|
|
3727
3739
|
() => {
|
|
3728
|
-
var
|
|
3740
|
+
var b;
|
|
3729
3741
|
return [
|
|
3730
3742
|
...ge(),
|
|
3731
|
-
...((
|
|
3743
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3732
3744
|
].reduce(
|
|
3733
|
-
(
|
|
3734
|
-
...
|
|
3735
|
-
[
|
|
3736
|
-
component:
|
|
3737
|
-
...se(
|
|
3745
|
+
(x, { component: A, ...C }) => ({
|
|
3746
|
+
...x,
|
|
3747
|
+
[C.name]: {
|
|
3748
|
+
component: A,
|
|
3749
|
+
...se(C)
|
|
3738
3750
|
}
|
|
3739
3751
|
}),
|
|
3740
3752
|
{}
|
|
3741
3753
|
);
|
|
3742
3754
|
}
|
|
3743
|
-
), [
|
|
3744
|
-
var
|
|
3755
|
+
), [a, l] = w(() => {
|
|
3756
|
+
var b;
|
|
3745
3757
|
return {
|
|
3746
3758
|
content: Mn({
|
|
3747
3759
|
content: e.content,
|
|
@@ -3760,11 +3772,11 @@ function ye(e) {
|
|
|
3760
3772
|
apiVersion: e.apiVersion,
|
|
3761
3773
|
componentInfos: [
|
|
3762
3774
|
...ge(),
|
|
3763
|
-
...((
|
|
3775
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3764
3776
|
].reduce(
|
|
3765
|
-
(
|
|
3766
|
-
...
|
|
3767
|
-
[
|
|
3777
|
+
(x, { component: A, ...C }) => ({
|
|
3778
|
+
...x,
|
|
3779
|
+
[C.name]: se(C)
|
|
3768
3780
|
}),
|
|
3769
3781
|
{}
|
|
3770
3782
|
),
|
|
@@ -3778,19 +3790,19 @@ function ye(e) {
|
|
|
3778
3790
|
e.apiKey || ne.error(
|
|
3779
3791
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3780
3792
|
);
|
|
3781
|
-
const
|
|
3782
|
-
|
|
3783
|
-
code:
|
|
3793
|
+
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3794
|
+
b && L({
|
|
3795
|
+
code: b,
|
|
3784
3796
|
context: e.context || {},
|
|
3785
3797
|
localState: void 0,
|
|
3786
|
-
rootState:
|
|
3787
|
-
rootSetState: (
|
|
3788
|
-
Object.assign(
|
|
3798
|
+
rootState: a.rootState,
|
|
3799
|
+
rootSetState: (x) => {
|
|
3800
|
+
Object.assign(a.rootState, x);
|
|
3789
3801
|
},
|
|
3790
3802
|
isExpression: !1
|
|
3791
3803
|
}), d.current = !0;
|
|
3792
3804
|
}
|
|
3793
|
-
return /* @__PURE__ */
|
|
3805
|
+
return /* @__PURE__ */ s(
|
|
3794
3806
|
Te.Provider,
|
|
3795
3807
|
{
|
|
3796
3808
|
value: {
|
|
@@ -3810,14 +3822,14 @@ function ye(e) {
|
|
|
3810
3822
|
locale: e.locale,
|
|
3811
3823
|
enrich: e.enrich,
|
|
3812
3824
|
showContent: e.showContent,
|
|
3813
|
-
builderContextSignal:
|
|
3825
|
+
builderContextSignal: a,
|
|
3814
3826
|
contentWrapper: e.contentWrapper,
|
|
3815
3827
|
contentWrapperProps: e.contentWrapperProps,
|
|
3816
3828
|
trustedHosts: e.trustedHosts,
|
|
3817
3829
|
isNestedRender: e.isNestedRender,
|
|
3818
|
-
setBuilderContextSignal:
|
|
3830
|
+
setBuilderContextSignal: l,
|
|
3819
3831
|
children: [
|
|
3820
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3832
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3821
3833
|
te,
|
|
3822
3834
|
{
|
|
3823
3835
|
id: "builderio-variant-visibility",
|
|
@@ -3825,21 +3837,21 @@ function ye(e) {
|
|
|
3825
3837
|
nonce: e.nonce || ""
|
|
3826
3838
|
}
|
|
3827
3839
|
) : null,
|
|
3828
|
-
/* @__PURE__ */
|
|
3840
|
+
/* @__PURE__ */ s(
|
|
3829
3841
|
Hn,
|
|
3830
3842
|
{
|
|
3831
3843
|
nonce: e.nonce || "",
|
|
3832
3844
|
isNestedRender: e.isNestedRender,
|
|
3833
|
-
contentId: (
|
|
3834
|
-
cssCode: (v = (
|
|
3835
|
-
customFonts: (
|
|
3845
|
+
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3846
|
+
cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
3847
|
+
customFonts: (k = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
|
|
3836
3848
|
}
|
|
3837
3849
|
),
|
|
3838
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ s(
|
|
3839
3851
|
F,
|
|
3840
3852
|
{
|
|
3841
|
-
blocks: (
|
|
3842
|
-
context:
|
|
3853
|
+
blocks: (p = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
3854
|
+
context: a,
|
|
3843
3855
|
registeredComponents: o,
|
|
3844
3856
|
linkComponent: e.linkComponent
|
|
3845
3857
|
}
|
|
@@ -3851,39 +3863,39 @@ function ye(e) {
|
|
|
3851
3863
|
);
|
|
3852
3864
|
}
|
|
3853
3865
|
function _n(e) {
|
|
3854
|
-
var
|
|
3855
|
-
const [t, n] =
|
|
3866
|
+
var a;
|
|
3867
|
+
const [t, n] = w(
|
|
3856
3868
|
() => wn({
|
|
3857
3869
|
canTrack: q(e.canTrack),
|
|
3858
3870
|
content: e.content
|
|
3859
3871
|
})
|
|
3860
3872
|
);
|
|
3861
3873
|
function i() {
|
|
3862
|
-
var
|
|
3874
|
+
var l;
|
|
3863
3875
|
return Pn(
|
|
3864
3876
|
M(e.content).map((d) => ({
|
|
3865
3877
|
id: d.testVariationId,
|
|
3866
3878
|
testRatio: d.testRatio
|
|
3867
3879
|
})),
|
|
3868
|
-
((
|
|
3880
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3869
3881
|
);
|
|
3870
3882
|
}
|
|
3871
3883
|
function o() {
|
|
3872
|
-
return M(e.content).map((
|
|
3884
|
+
return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3873
3885
|
}
|
|
3874
|
-
function
|
|
3875
|
-
var
|
|
3886
|
+
function r() {
|
|
3887
|
+
var l;
|
|
3876
3888
|
return t ? {
|
|
3877
3889
|
...e.content,
|
|
3878
|
-
testVariationId: (
|
|
3890
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3879
3891
|
} : je({
|
|
3880
3892
|
item: e.content,
|
|
3881
3893
|
canTrack: q(e.canTrack)
|
|
3882
3894
|
});
|
|
3883
3895
|
}
|
|
3884
3896
|
return B(() => {
|
|
3885
|
-
}, []), /* @__PURE__ */ V(
|
|
3886
|
-
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */
|
|
3897
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
3898
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3887
3899
|
te,
|
|
3888
3900
|
{
|
|
3889
3901
|
id: "builderio-init-variants-fns",
|
|
@@ -3891,8 +3903,8 @@ function _n(e) {
|
|
|
3891
3903
|
nonce: e.nonce || ""
|
|
3892
3904
|
}
|
|
3893
3905
|
) : null,
|
|
3894
|
-
t ? /* @__PURE__ */ V(
|
|
3895
|
-
/* @__PURE__ */
|
|
3906
|
+
t ? /* @__PURE__ */ V(T, { children: [
|
|
3907
|
+
/* @__PURE__ */ s(
|
|
3896
3908
|
z,
|
|
3897
3909
|
{
|
|
3898
3910
|
id: "builderio-variants",
|
|
@@ -3900,7 +3912,7 @@ function _n(e) {
|
|
|
3900
3912
|
nonce: e.nonce || ""
|
|
3901
3913
|
}
|
|
3902
3914
|
),
|
|
3903
|
-
/* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ s(
|
|
3904
3916
|
te,
|
|
3905
3917
|
{
|
|
3906
3918
|
id: "builderio-variants-visibility",
|
|
@@ -3908,13 +3920,13 @@ function _n(e) {
|
|
|
3908
3920
|
nonce: e.nonce || ""
|
|
3909
3921
|
}
|
|
3910
3922
|
),
|
|
3911
|
-
(
|
|
3923
|
+
(a = M(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3912
3924
|
ye,
|
|
3913
3925
|
{
|
|
3914
3926
|
apiHost: e.apiHost,
|
|
3915
3927
|
isNestedRender: e.isNestedRender,
|
|
3916
3928
|
nonce: e.nonce,
|
|
3917
|
-
content:
|
|
3929
|
+
content: l,
|
|
3918
3930
|
showContent: !1,
|
|
3919
3931
|
model: e.model,
|
|
3920
3932
|
data: e.data,
|
|
@@ -3933,16 +3945,16 @@ function _n(e) {
|
|
|
3933
3945
|
contentWrapperProps: e.contentWrapperProps,
|
|
3934
3946
|
trustedHosts: e.trustedHosts
|
|
3935
3947
|
},
|
|
3936
|
-
|
|
3948
|
+
l.testVariationId
|
|
3937
3949
|
))
|
|
3938
3950
|
] }) : null,
|
|
3939
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ s(
|
|
3940
3952
|
ye,
|
|
3941
3953
|
{
|
|
3942
3954
|
apiHost: e.apiHost,
|
|
3943
3955
|
nonce: e.nonce,
|
|
3944
3956
|
isNestedRender: e.isNestedRender,
|
|
3945
|
-
content:
|
|
3957
|
+
content: r(),
|
|
3946
3958
|
showContent: !0,
|
|
3947
3959
|
model: e.model,
|
|
3948
3960
|
data: e.data,
|
|
@@ -3984,7 +3996,7 @@ const qn = async ({
|
|
|
3984
3996
|
});
|
|
3985
3997
|
};
|
|
3986
3998
|
function Kn(e) {
|
|
3987
|
-
var
|
|
3999
|
+
var l, d, c, h;
|
|
3988
4000
|
function t() {
|
|
3989
4001
|
return "div";
|
|
3990
4002
|
}
|
|
@@ -3992,30 +4004,30 @@ function Kn(e) {
|
|
|
3992
4004
|
return "div";
|
|
3993
4005
|
}
|
|
3994
4006
|
function i() {
|
|
3995
|
-
var
|
|
4007
|
+
var g, m;
|
|
3996
4008
|
return [
|
|
3997
4009
|
e.attributes[U()],
|
|
3998
4010
|
"builder-symbol",
|
|
3999
|
-
(
|
|
4000
|
-
(
|
|
4011
|
+
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4012
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4001
4013
|
].filter(Boolean).join(" ");
|
|
4002
4014
|
}
|
|
4003
|
-
const [o,
|
|
4004
|
-
var
|
|
4005
|
-
return (
|
|
4015
|
+
const [o, r] = w(() => {
|
|
4016
|
+
var g;
|
|
4017
|
+
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4006
4018
|
});
|
|
4007
|
-
function
|
|
4019
|
+
function a() {
|
|
4008
4020
|
o || qn({
|
|
4009
4021
|
symbol: e.symbol,
|
|
4010
4022
|
builderContextValue: e.builderContext
|
|
4011
|
-
}).then((
|
|
4012
|
-
|
|
4023
|
+
}).then((g) => {
|
|
4024
|
+
g && r(g);
|
|
4013
4025
|
});
|
|
4014
4026
|
}
|
|
4015
4027
|
return B(() => {
|
|
4016
4028
|
}, []), B(() => {
|
|
4017
|
-
|
|
4018
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4029
|
+
a();
|
|
4030
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4019
4031
|
_n,
|
|
4020
4032
|
{
|
|
4021
4033
|
nonce: e.builderContext.nonce,
|
|
@@ -4024,7 +4036,7 @@ function Kn(e) {
|
|
|
4024
4036
|
apiKey: e.builderContext.apiKey,
|
|
4025
4037
|
context: {
|
|
4026
4038
|
...e.builderContext.context,
|
|
4027
|
-
symbolId: (
|
|
4039
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4028
4040
|
},
|
|
4029
4041
|
customComponents: Object.values(e.builderComponents),
|
|
4030
4042
|
data: {
|