@builder.io/sdk-react 2.0.28 → 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 +9 -9
- package/lib/browser/blocks-exports.mjs +302 -294
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-7260e494.cjs → server-entry-3e3279b7.cjs} +1 -1
- package/lib/browser/{server-entry-ffd47885.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-616460c1.js → accordion-1fae9bd5.js} +5 -3
- package/lib/edge/{accordion-7ef6a928.cjs → accordion-200ac141.cjs} +1 -1
- package/lib/edge/{blocks-dd91ae28.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-896a56b0.cjs → blocks-fd9e445c.cjs} +3 -3
- package/lib/edge/{button-f917a1c0.js → button-5cc9a94f.js} +2 -2
- package/lib/edge/{button-1fa8b647.cjs → button-ffe70d17.cjs} +1 -1
- package/lib/edge/{columns-5756d7b8.cjs → columns-7651ba21.cjs} +3 -3
- package/lib/edge/{columns-dacb342b.js → columns-9ad996bb.js} +20 -20
- package/lib/edge/{content-variants-cd80b703.js → content-variants-0ece6057.js} +11 -11
- package/lib/edge/{content-variants-afc4a718.cjs → content-variants-a9017964.cjs} +1 -1
- package/lib/edge/{evaluate-17c2cadd.js → evaluate-5cfe10b0.js} +1 -1
- package/lib/edge/{evaluate-2fcda9ec.cjs → evaluate-73e0df40.cjs} +1 -1
- package/lib/edge/{form-dc7f56c9.js → form-186bf59f.js} +4 -4
- package/lib/edge/{form-efce5c78.cjs → form-c98c7fc1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-2ce20e98.cjs → get-class-prop-name-11734dbc.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-5437ca23.js → get-class-prop-name-7d6a77a4.js} +1 -1
- package/lib/edge/{img-d187da14.js → img-6c1f4ea4.js} +1 -1
- package/lib/edge/{img-35a1343f.cjs → img-ef160d2b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-9a6498fd.cjs → input-97dc199a.cjs} +1 -1
- package/lib/edge/{input-38f565ce.js → input-b4ee4339.js} +1 -1
- package/lib/edge/{select-135b7397.cjs → select-2cdf2c8f.cjs} +1 -1
- package/lib/edge/{select-6cb0b4b7.js → select-e79d6e1b.js} +1 -1
- package/lib/edge/{server-entry-3e6518b6.cjs → server-entry-0224e0bb.cjs} +1 -1
- package/lib/edge/{server-entry-216eb1bf.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-b0728030.cjs → slot-66ba436b.cjs} +1 -1
- package/lib/edge/{slot-d692126c.js → slot-680234a8.js} +4 -4
- package/lib/edge/{symbol-0ac2655e.cjs → symbol-4d0b1228.cjs} +1 -1
- package/lib/edge/{symbol-df30241a.js → symbol-e920f028.js} +2 -2
- package/lib/edge/{tabs-b925777d.js → tabs-1bea88d1.js} +15 -15
- package/lib/edge/tabs-1f3f45cf.cjs +1 -0
- package/lib/edge/{text-0f85a76c.cjs → text-9533b278.cjs} +1 -1
- package/lib/edge/{text-337389ba.js → text-fd78274f.js} +2 -2
- package/lib/node/blocks-exports.cjs +9 -9
- package/lib/node/blocks-exports.mjs +295 -287
- 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-ca0dcb45.js → server-entry-00c52924.js} +1 -1
- package/lib/node/{server-entry-3e017173.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-2100f4f5.js → setIvm-156def75.js} +1 -1
- package/lib/node/{setIvm-2d47478e.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-fd3ca2a8.cjs → should-force-browser-runtime-in-node-bc24fcdd.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-a77d7cfc.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/tabs-47ed7dde.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-
|
|
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
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-
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as Je } from "./should-force-browser-runtime-in-node-
|
|
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,17 +290,17 @@ 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
|
|
303
|
+
function l(h) {
|
|
304
304
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
305
305
|
return g.bottom > f && g.top < m - f;
|
|
306
306
|
}
|
|
@@ -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 },
|
|
@@ -486,27 +486,27 @@ function kt(e) {
|
|
|
486
486
|
}
|
|
487
487
|
function n() {
|
|
488
488
|
var S, p, b;
|
|
489
|
-
const i = e.block, o = i.responsiveStyles,
|
|
490
|
-
((S =
|
|
491
|
-
),
|
|
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 g =
|
|
494
|
+
const g = l ? j({
|
|
495
495
|
className: h,
|
|
496
|
-
styles:
|
|
496
|
+
styles: l
|
|
497
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
511
|
}) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
512
512
|
let k = "";
|
|
@@ -530,7 +530,7 @@ function kt(e) {
|
|
|
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
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,
|
|
@@ -716,7 +716,7 @@ function ue(e) {
|
|
|
716
716
|
}
|
|
717
717
|
function me(e) {
|
|
718
718
|
const [t, n] = w(() => e.repeatContext);
|
|
719
|
-
return /* @__PURE__ */
|
|
719
|
+
return /* @__PURE__ */ s(ae.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
720
720
|
H,
|
|
721
721
|
{
|
|
722
722
|
block: e.block,
|
|
@@ -752,17 +752,17 @@ function H(e) {
|
|
|
752
752
|
});
|
|
753
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
|
|
761
|
+
function a() {
|
|
762
762
|
var k;
|
|
763
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
|
|
765
|
+
function l() {
|
|
766
766
|
var S, p;
|
|
767
767
|
if ((S = e.block.repeat) != null && S.collection)
|
|
768
768
|
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
@@ -771,20 +771,20 @@ function H(e) {
|
|
|
771
771
|
}
|
|
772
772
|
function d() {
|
|
773
773
|
var k, S;
|
|
774
|
-
return !((k =
|
|
774
|
+
return !((k = r == null ? void 0 : r()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
|
|
775
775
|
}
|
|
776
776
|
function c() {
|
|
777
777
|
var f, k, S, p;
|
|
778
778
|
return {
|
|
779
779
|
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
-
componentRef: (k =
|
|
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,8 +792,8 @@ function H(e) {
|
|
|
792
792
|
linkComponent: e.linkComponent,
|
|
793
793
|
registeredComponents: e.registeredComponents,
|
|
794
794
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((S =
|
|
796
|
-
isInteractive: !((p =
|
|
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(() => {
|
|
@@ -806,9 +806,9 @@ function H(e) {
|
|
|
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
814
|
repeatContext: f.context,
|
|
@@ -817,7 +817,7 @@ function H(e) {
|
|
|
817
817
|
linkComponent: e.linkComponent
|
|
818
818
|
},
|
|
819
819
|
k
|
|
820
|
-
)) }) : /* @__PURE__ */
|
|
820
|
+
)) }) : /* @__PURE__ */ s(
|
|
821
821
|
ue,
|
|
822
822
|
{
|
|
823
823
|
componentRef: c().componentRef,
|
|
@@ -830,7 +830,7 @@ 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
836
|
repeatContext: f.context,
|
|
@@ -842,11 +842,11 @@ function H(e) {
|
|
|
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,7 +860,7 @@ function H(e) {
|
|
|
860
860
|
isInteractive: c().isInteractive
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
863
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
864
864
|
H,
|
|
865
865
|
{
|
|
866
866
|
block: f,
|
|
@@ -886,26 +886,32 @@ 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
|
"*"
|
|
@@ -913,22 +919,22 @@ function At(e) {
|
|
|
913
919
|
}
|
|
914
920
|
return B(() => {
|
|
915
921
|
}, []), /* @__PURE__ */ V(T, { children: [
|
|
916
|
-
/* @__PURE__ */
|
|
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,15 +954,15 @@ 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
|
);
|
|
@@ -976,15 +982,15 @@ function Nt(e) {
|
|
|
976
982
|
function o(p) {
|
|
977
983
|
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
978
984
|
}
|
|
979
|
-
function
|
|
985
|
+
function r(p) {
|
|
980
986
|
var b;
|
|
981
987
|
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
982
988
|
}
|
|
983
|
-
function
|
|
984
|
-
const b =
|
|
989
|
+
function a(p) {
|
|
990
|
+
const b = r(p), x = t() * (n().length - 1) * (b / 100);
|
|
985
991
|
return `calc(${b}% - ${x}px)`;
|
|
986
992
|
}
|
|
987
|
-
function
|
|
993
|
+
function l({
|
|
988
994
|
stackedStyle: p,
|
|
989
995
|
desktopStyle: b
|
|
990
996
|
}) {
|
|
@@ -1002,14 +1008,14 @@ function Nt(e) {
|
|
|
1002
1008
|
function h() {
|
|
1003
1009
|
return {
|
|
1004
1010
|
"--flex-dir": c(),
|
|
1005
|
-
"--flex-dir-tablet":
|
|
1011
|
+
"--flex-dir-tablet": l({
|
|
1006
1012
|
stackedStyle: c(),
|
|
1007
1013
|
desktopStyle: "row"
|
|
1008
1014
|
})
|
|
1009
1015
|
};
|
|
1010
1016
|
}
|
|
1011
1017
|
function g(p) {
|
|
1012
|
-
const b = p === 0 ? 0 : t(), x =
|
|
1018
|
+
const b = p === 0 ? 0 : t(), x = a(p), A = `${b}px`, C = "100%", I = 0;
|
|
1013
1019
|
return {
|
|
1014
1020
|
...{
|
|
1015
1021
|
display: "flex",
|
|
@@ -1026,11 +1032,11 @@ function Nt(e) {
|
|
|
1026
1032
|
stackedStyle: I,
|
|
1027
1033
|
desktopStyle: A
|
|
1028
1034
|
}),
|
|
1029
|
-
"--column-width-tablet":
|
|
1035
|
+
"--column-width-tablet": l({
|
|
1030
1036
|
stackedStyle: C,
|
|
1031
1037
|
desktopStyle: x
|
|
1032
1038
|
}),
|
|
1033
|
-
"--column-margin-left-tablet":
|
|
1039
|
+
"--column-margin-left-tablet": l({
|
|
1034
1040
|
stackedStyle: I,
|
|
1035
1041
|
desktopStyle: A
|
|
1036
1042
|
})
|
|
@@ -1083,10 +1089,10 @@ function Nt(e) {
|
|
|
1083
1089
|
/* @__PURE__ */ V(
|
|
1084
1090
|
"div",
|
|
1085
1091
|
{
|
|
1086
|
-
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-
|
|
1092
|
+
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-49f40bae",
|
|
1087
1093
|
style: h(),
|
|
1088
1094
|
children: [
|
|
1089
|
-
/* @__PURE__ */
|
|
1095
|
+
/* @__PURE__ */ s(
|
|
1090
1096
|
z,
|
|
1091
1097
|
{
|
|
1092
1098
|
id: "builderio-columns",
|
|
@@ -1094,16 +1100,16 @@ function Nt(e) {
|
|
|
1094
1100
|
nonce: e.builderContext.nonce
|
|
1095
1101
|
}
|
|
1096
1102
|
),
|
|
1097
|
-
(S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */
|
|
1103
|
+
(S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ s(
|
|
1098
1104
|
oe,
|
|
1099
1105
|
{
|
|
1100
1106
|
TagName: o(p),
|
|
1101
1107
|
actionAttributes: {},
|
|
1102
1108
|
attributes: f(p, b),
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1109
|
+
children: /* @__PURE__ */ s(
|
|
1104
1110
|
F,
|
|
1105
1111
|
{
|
|
1106
|
-
path: `
|
|
1112
|
+
path: `columns.${b}.blocks`,
|
|
1107
1113
|
parent: e.builderBlock.id,
|
|
1108
1114
|
styleProp: {
|
|
1109
1115
|
flexGrow: "1"
|
|
@@ -1120,14 +1126,14 @@ function Nt(e) {
|
|
|
1120
1126
|
]
|
|
1121
1127
|
}
|
|
1122
1128
|
),
|
|
1123
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ s("style", { children: `.div-49f40bae {
|
|
1124
1130
|
display: flex;
|
|
1125
1131
|
line-height: normal;
|
|
1126
1132
|
}` })
|
|
1127
1133
|
] });
|
|
1128
1134
|
}
|
|
1129
1135
|
function Ft(e) {
|
|
1130
|
-
return /* @__PURE__ */
|
|
1136
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1131
1137
|
}
|
|
1132
1138
|
function fe(e) {
|
|
1133
1139
|
return e.replace(/http(s)?:/, "");
|
|
@@ -1143,8 +1149,8 @@ function Dt(e, t) {
|
|
|
1143
1149
|
return fe(e);
|
|
1144
1150
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1145
1151
|
if (n) {
|
|
1146
|
-
const i = e.split(n[0]), o = n[3],
|
|
1147
|
-
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}`);
|
|
1148
1154
|
}
|
|
1149
1155
|
return null;
|
|
1150
1156
|
}
|
|
@@ -1160,7 +1166,7 @@ function J(e) {
|
|
|
1160
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;
|
|
1161
1167
|
}
|
|
1162
1168
|
function Lt(e) {
|
|
1163
|
-
var o,
|
|
1169
|
+
var o, r, a, l, d, c;
|
|
1164
1170
|
function t() {
|
|
1165
1171
|
var m;
|
|
1166
1172
|
const g = e.image || e.src;
|
|
@@ -1195,8 +1201,8 @@ function Lt(e) {
|
|
|
1195
1201
|
}, []), /* @__PURE__ */ V(T, { children: [
|
|
1196
1202
|
/* @__PURE__ */ V(T, { children: [
|
|
1197
1203
|
/* @__PURE__ */ V("picture", { children: [
|
|
1198
|
-
n() ? /* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1204
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1205
|
+
/* @__PURE__ */ s(
|
|
1200
1206
|
"img",
|
|
1201
1207
|
{
|
|
1202
1208
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1215,7 +1221,7 @@ function Lt(e) {
|
|
|
1215
1221
|
}
|
|
1216
1222
|
)
|
|
1217
1223
|
] }),
|
|
1218
|
-
e.aspectRatio && !((
|
|
1224
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1219
1225
|
"div",
|
|
1220
1226
|
{
|
|
1221
1227
|
className: "builder-image-sizer div-7a292ab8",
|
|
@@ -1224,10 +1230,10 @@ function Lt(e) {
|
|
|
1224
1230
|
}
|
|
1225
1231
|
}
|
|
1226
1232
|
) : null,
|
|
1227
|
-
(
|
|
1228
|
-
!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
|
|
1229
1235
|
] }),
|
|
1230
|
-
/* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
1231
1237
|
opacity: 1;
|
|
1232
1238
|
transition: opacity 0.2s ease-in-out;
|
|
1233
1239
|
}.div-7a292ab8 {
|
|
@@ -1247,7 +1253,7 @@ function Lt(e) {
|
|
|
1247
1253
|
] });
|
|
1248
1254
|
}
|
|
1249
1255
|
function Ot(e) {
|
|
1250
|
-
return /* @__PURE__ */
|
|
1256
|
+
return /* @__PURE__ */ s(
|
|
1251
1257
|
"section",
|
|
1252
1258
|
{
|
|
1253
1259
|
...e.attributes,
|
|
@@ -1410,7 +1416,7 @@ function Ht(e) {
|
|
|
1410
1416
|
}
|
|
1411
1417
|
};
|
|
1412
1418
|
}
|
|
1413
|
-
function
|
|
1419
|
+
function r() {
|
|
1414
1420
|
const v = {
|
|
1415
1421
|
...{
|
|
1416
1422
|
display: "flex",
|
|
@@ -1423,10 +1429,10 @@ function Ht(e) {
|
|
|
1423
1429
|
Object.entries(v).filter(([f, k]) => k !== void 0)
|
|
1424
1430
|
);
|
|
1425
1431
|
}
|
|
1426
|
-
function
|
|
1432
|
+
function a(m) {
|
|
1427
1433
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1428
1434
|
}
|
|
1429
|
-
function
|
|
1435
|
+
function l(m) {
|
|
1430
1436
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1431
1437
|
}
|
|
1432
1438
|
function d() {
|
|
@@ -1470,19 +1476,21 @@ function Ht(e) {
|
|
|
1470
1476
|
function h(m) {
|
|
1471
1477
|
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1472
1478
|
}
|
|
1473
|
-
return /* @__PURE__ */
|
|
1474
|
-
/* @__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(
|
|
1475
1481
|
"div",
|
|
1476
1482
|
{
|
|
1477
|
-
className:
|
|
1483
|
+
className: a(v),
|
|
1478
1484
|
style: {
|
|
1479
|
-
...
|
|
1480
|
-
|
|
1481
|
-
|
|
1485
|
+
...r(),
|
|
1486
|
+
...e.grid && {
|
|
1487
|
+
width: e.gridRowWidth,
|
|
1488
|
+
order: d() !== null ? he(v) : he(v + 1)
|
|
1489
|
+
}
|
|
1482
1490
|
},
|
|
1483
1491
|
"data-index": v,
|
|
1484
1492
|
onClick: (f) => h(v),
|
|
1485
|
-
children: /* @__PURE__ */
|
|
1493
|
+
children: /* @__PURE__ */ s(
|
|
1486
1494
|
F,
|
|
1487
1495
|
{
|
|
1488
1496
|
blocks: m.title,
|
|
@@ -1495,12 +1503,12 @@ function Ht(e) {
|
|
|
1495
1503
|
)
|
|
1496
1504
|
}
|
|
1497
1505
|
),
|
|
1498
|
-
t.includes(v) ? /* @__PURE__ */
|
|
1506
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1499
1507
|
"div",
|
|
1500
1508
|
{
|
|
1501
|
-
className:
|
|
1509
|
+
className: l(v),
|
|
1502
1510
|
style: c(),
|
|
1503
|
-
children: /* @__PURE__ */
|
|
1511
|
+
children: /* @__PURE__ */ s(
|
|
1504
1512
|
F,
|
|
1505
1513
|
{
|
|
1506
1514
|
blocks: m.detail,
|
|
@@ -1730,7 +1738,7 @@ const jt = {
|
|
|
1730
1738
|
});
|
|
1731
1739
|
}
|
|
1732
1740
|
const n = e.get("columns");
|
|
1733
|
-
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();
|
|
1734
1742
|
}
|
|
1735
1743
|
}, {
|
|
1736
1744
|
name: "space",
|
|
@@ -1784,7 +1792,7 @@ const jt = {
|
|
|
1784
1792
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1785
1793
|
onChange: (e) => {
|
|
1786
1794
|
e.delete("srcset"), e.delete("noWebp");
|
|
1787
|
-
function n(
|
|
1795
|
+
function n(a, l = 6e4) {
|
|
1788
1796
|
return new Promise((d, c) => {
|
|
1789
1797
|
const h = document.createElement("img");
|
|
1790
1798
|
let g = !1;
|
|
@@ -1792,21 +1800,21 @@ const jt = {
|
|
|
1792
1800
|
g = !0, d(h);
|
|
1793
1801
|
}, h.addEventListener("error", (m) => {
|
|
1794
1802
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1795
|
-
}), h.src =
|
|
1803
|
+
}), h.src = a, setTimeout(() => {
|
|
1796
1804
|
g || c(new Error("Image load timed out"));
|
|
1797
|
-
},
|
|
1805
|
+
}, l);
|
|
1798
1806
|
});
|
|
1799
1807
|
}
|
|
1800
|
-
function i(
|
|
1801
|
-
return Math.round(
|
|
1808
|
+
function i(a) {
|
|
1809
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1802
1810
|
}
|
|
1803
|
-
const o = e.get("image"),
|
|
1804
|
-
if (fetch(o).then((
|
|
1805
|
-
|
|
1806
|
-
}), o && (!
|
|
1807
|
-
return n(o).then((
|
|
1808
|
-
const
|
|
1809
|
-
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));
|
|
1810
1818
|
});
|
|
1811
1819
|
}
|
|
1812
1820
|
}, {
|
|
@@ -1931,7 +1939,7 @@ const jt = {
|
|
|
1931
1939
|
};
|
|
1932
1940
|
function Jt(e) {
|
|
1933
1941
|
var t, n, i;
|
|
1934
|
-
return /* @__PURE__ */
|
|
1942
|
+
return /* @__PURE__ */ s(
|
|
1935
1943
|
"div",
|
|
1936
1944
|
{
|
|
1937
1945
|
style: {
|
|
@@ -1940,7 +1948,7 @@ function Jt(e) {
|
|
|
1940
1948
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1941
1949
|
"builder-slot": e.name
|
|
1942
1950
|
},
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1951
|
+
children: /* @__PURE__ */ s(
|
|
1944
1952
|
F,
|
|
1945
1953
|
{
|
|
1946
1954
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2135,18 +2143,18 @@ const Gt = {
|
|
|
2135
2143
|
}
|
|
2136
2144
|
};
|
|
2137
2145
|
function Qt(e) {
|
|
2138
|
-
var
|
|
2146
|
+
var r;
|
|
2139
2147
|
const [t, n] = w(
|
|
2140
2148
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2141
2149
|
);
|
|
2142
|
-
function i(
|
|
2143
|
-
return e.tabs && e.tabs[
|
|
2150
|
+
function i(a) {
|
|
2151
|
+
return e.tabs && e.tabs[a].content;
|
|
2144
2152
|
}
|
|
2145
|
-
function o(
|
|
2146
|
-
|
|
2153
|
+
function o(a) {
|
|
2154
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2147
2155
|
}
|
|
2148
2156
|
return /* @__PURE__ */ V("div", { children: [
|
|
2149
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ s(
|
|
2150
2158
|
"div",
|
|
2151
2159
|
{
|
|
2152
2160
|
className: "builder-tabs-wrap",
|
|
@@ -2156,35 +2164,35 @@ function Qt(e) {
|
|
|
2156
2164
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2157
2165
|
overflow: "auto"
|
|
2158
2166
|
},
|
|
2159
|
-
children: (
|
|
2167
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
2160
2168
|
"span",
|
|
2161
2169
|
{
|
|
2162
|
-
className: `builder-tab-wrap ${t ===
|
|
2170
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2163
2171
|
style: {
|
|
2164
|
-
...t ===
|
|
2172
|
+
...t === l ? e.activeTabStyle : {}
|
|
2165
2173
|
},
|
|
2166
|
-
onClick: (d) => o(
|
|
2167
|
-
children: /* @__PURE__ */
|
|
2174
|
+
onClick: (d) => o(l),
|
|
2175
|
+
children: /* @__PURE__ */ s(
|
|
2168
2176
|
F,
|
|
2169
2177
|
{
|
|
2170
2178
|
parent: e.builderBlock.id,
|
|
2171
|
-
path: `
|
|
2172
|
-
blocks:
|
|
2179
|
+
path: `tabs.${l}.label`,
|
|
2180
|
+
blocks: a.label,
|
|
2173
2181
|
context: e.builderContext,
|
|
2174
2182
|
registeredComponents: e.builderComponents,
|
|
2175
2183
|
linkComponent: e.builderLinkComponent
|
|
2176
2184
|
}
|
|
2177
2185
|
)
|
|
2178
2186
|
},
|
|
2179
|
-
|
|
2187
|
+
l
|
|
2180
2188
|
))
|
|
2181
2189
|
}
|
|
2182
2190
|
),
|
|
2183
|
-
i(t) ? /* @__PURE__ */
|
|
2191
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2184
2192
|
F,
|
|
2185
2193
|
{
|
|
2186
2194
|
parent: e.builderBlock.id,
|
|
2187
|
-
path: `
|
|
2195
|
+
path: `tabs.${t}.content`,
|
|
2188
2196
|
blocks: i(t),
|
|
2189
2197
|
context: e.builderContext,
|
|
2190
2198
|
registeredComponents: e.builderComponents,
|
|
@@ -2218,25 +2226,25 @@ const Xt = {
|
|
|
2218
2226
|
};
|
|
2219
2227
|
function Zt(e) {
|
|
2220
2228
|
function t() {
|
|
2221
|
-
var
|
|
2229
|
+
var l;
|
|
2222
2230
|
const n = e.builderContext, {
|
|
2223
2231
|
context: i,
|
|
2224
2232
|
localState: o,
|
|
2225
|
-
rootState:
|
|
2226
|
-
rootSetState:
|
|
2233
|
+
rootState: r,
|
|
2234
|
+
rootSetState: a
|
|
2227
2235
|
} = n;
|
|
2228
|
-
return String(((
|
|
2236
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2229
2237
|
/{{([^}]+)}}/g,
|
|
2230
2238
|
(d, c) => L({
|
|
2231
2239
|
code: c,
|
|
2232
2240
|
context: i,
|
|
2233
2241
|
localState: o,
|
|
2234
|
-
rootState:
|
|
2235
|
-
rootSetState:
|
|
2242
|
+
rootState: r,
|
|
2243
|
+
rootSetState: a
|
|
2236
2244
|
})
|
|
2237
2245
|
);
|
|
2238
2246
|
}
|
|
2239
|
-
return /* @__PURE__ */
|
|
2247
|
+
return /* @__PURE__ */ s(
|
|
2240
2248
|
"div",
|
|
2241
2249
|
{
|
|
2242
2250
|
className: "builder-text",
|
|
@@ -2271,14 +2279,14 @@ const en = {
|
|
|
2271
2279
|
}]
|
|
2272
2280
|
};
|
|
2273
2281
|
function tn(e) {
|
|
2274
|
-
const t = $(null), [n, i] = w(() => []), [o,
|
|
2282
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []);
|
|
2275
2283
|
return B(() => {
|
|
2276
|
-
var
|
|
2277
|
-
if (!((
|
|
2284
|
+
var l;
|
|
2285
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2278
2286
|
return;
|
|
2279
|
-
const
|
|
2280
|
-
for (let d = 0; d <
|
|
2281
|
-
const c =
|
|
2287
|
+
const a = t.current.getElementsByTagName("script");
|
|
2288
|
+
for (let d = 0; d < a.length; d++) {
|
|
2289
|
+
const c = a[d];
|
|
2282
2290
|
if (c.src) {
|
|
2283
2291
|
if (n.includes(c.src))
|
|
2284
2292
|
continue;
|
|
@@ -2299,7 +2307,7 @@ function tn(e) {
|
|
|
2299
2307
|
}
|
|
2300
2308
|
}
|
|
2301
2309
|
}
|
|
2302
|
-
}, []), /* @__PURE__ */
|
|
2310
|
+
}, []), /* @__PURE__ */ s(
|
|
2303
2311
|
"div",
|
|
2304
2312
|
{
|
|
2305
2313
|
ref: t,
|
|
@@ -2325,7 +2333,7 @@ const nn = {
|
|
|
2325
2333
|
}]
|
|
2326
2334
|
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2327
2335
|
function rn(e) {
|
|
2328
|
-
const t = $(null), [n, i] = w(() => []), [o,
|
|
2336
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []), [a, l] = w(() => !1);
|
|
2329
2337
|
function d() {
|
|
2330
2338
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2331
2339
|
return;
|
|
@@ -2345,8 +2353,8 @@ function rn(e) {
|
|
|
2345
2353
|
}
|
|
2346
2354
|
}
|
|
2347
2355
|
return B(() => {
|
|
2348
|
-
t.current && !
|
|
2349
|
-
}, [t.current,
|
|
2356
|
+
t.current && !a && (l(!0), d());
|
|
2357
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2350
2358
|
"div",
|
|
2351
2359
|
{
|
|
2352
2360
|
className: "builder-embed",
|
|
@@ -2598,7 +2606,7 @@ const ln = {
|
|
|
2598
2606
|
};
|
|
2599
2607
|
function dn(e) {
|
|
2600
2608
|
var g, m;
|
|
2601
|
-
const t = $(null), [n, i] = w(() => "unsubmitted"), [o,
|
|
2609
|
+
const t = $(null), [n, i] = w(() => "unsubmitted"), [o, r] = w(() => null), [a, l] = w(() => "");
|
|
2602
2610
|
function d(v) {
|
|
2603
2611
|
var k, S;
|
|
2604
2612
|
const f = {
|
|
@@ -2675,9 +2683,9 @@ function dn(e) {
|
|
|
2675
2683
|
const E = u.headers.get("content-type");
|
|
2676
2684
|
if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2677
2685
|
let R = Ie(y, e.errorMessagePath);
|
|
2678
|
-
R && (typeof R != "string" && (R = JSON.stringify(R)),
|
|
2686
|
+
R && (typeof R != "string" && (R = JSON.stringify(R)), l(R), d({ formErrorMessage: R }));
|
|
2679
2687
|
}
|
|
2680
|
-
if (
|
|
2688
|
+
if (r(y), i(u.ok ? "success" : "error"), u.ok) {
|
|
2681
2689
|
const R = new CustomEvent("submit:success", {
|
|
2682
2690
|
detail: { res: u, body: y }
|
|
2683
2691
|
});
|
|
@@ -2700,7 +2708,7 @@ function dn(e) {
|
|
|
2700
2708
|
const y = new CustomEvent("submit:error", {
|
|
2701
2709
|
detail: { error: u }
|
|
2702
2710
|
});
|
|
2703
|
-
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (
|
|
2711
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(u), i("error"));
|
|
2704
2712
|
}
|
|
2705
2713
|
);
|
|
2706
2714
|
}
|
|
@@ -2718,7 +2726,7 @@ function dn(e) {
|
|
|
2718
2726
|
onSubmit: (v) => h(v),
|
|
2719
2727
|
...e.attributes,
|
|
2720
2728
|
children: [
|
|
2721
|
-
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(
|
|
2722
2730
|
H,
|
|
2723
2731
|
{
|
|
2724
2732
|
block: v,
|
|
@@ -2728,7 +2736,7 @@ function dn(e) {
|
|
|
2728
2736
|
},
|
|
2729
2737
|
`form-block-${f}`
|
|
2730
2738
|
)) }) : null,
|
|
2731
|
-
c() === "error" ? /* @__PURE__ */
|
|
2739
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2732
2740
|
F,
|
|
2733
2741
|
{
|
|
2734
2742
|
path: "errorMessage",
|
|
@@ -2736,7 +2744,7 @@ function dn(e) {
|
|
|
2736
2744
|
context: e.builderContext
|
|
2737
2745
|
}
|
|
2738
2746
|
) : null,
|
|
2739
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2747
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2740
2748
|
F,
|
|
2741
2749
|
{
|
|
2742
2750
|
path: "sendingMessage",
|
|
@@ -2744,8 +2752,8 @@ function dn(e) {
|
|
|
2744
2752
|
context: e.builderContext
|
|
2745
2753
|
}
|
|
2746
2754
|
) : null,
|
|
2747
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2748
|
-
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(
|
|
2749
2757
|
F,
|
|
2750
2758
|
{
|
|
2751
2759
|
path: "successMessage",
|
|
@@ -2757,7 +2765,7 @@ function dn(e) {
|
|
|
2757
2765
|
}
|
|
2758
2766
|
),
|
|
2759
2767
|
" ",
|
|
2760
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2761
2769
|
" "
|
|
2762
2770
|
] });
|
|
2763
2771
|
}
|
|
@@ -2883,7 +2891,7 @@ function hn(e) {
|
|
|
2883
2891
|
name: e.name,
|
|
2884
2892
|
required: e.required
|
|
2885
2893
|
},
|
|
2886
|
-
(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}`))
|
|
2887
2895
|
);
|
|
2888
2896
|
}
|
|
2889
2897
|
const gn = {
|
|
@@ -2913,7 +2921,7 @@ const gn = {
|
|
|
2913
2921
|
// canHaveChildren: true,
|
|
2914
2922
|
};
|
|
2915
2923
|
function bn(e) {
|
|
2916
|
-
return /* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2917
2925
|
}
|
|
2918
2926
|
const pn = {
|
|
2919
2927
|
name: "Form:TextArea",
|
|
@@ -2953,7 +2961,7 @@ const pn = {
|
|
|
2953
2961
|
noWrap: !0
|
|
2954
2962
|
};
|
|
2955
2963
|
function yn(e) {
|
|
2956
|
-
return /* @__PURE__ */
|
|
2964
|
+
return /* @__PURE__ */ s(
|
|
2957
2965
|
"textarea",
|
|
2958
2966
|
{
|
|
2959
2967
|
...e.attributes,
|
|
@@ -2981,7 +2989,7 @@ const xn = {
|
|
|
2981
2989
|
static: !0
|
|
2982
2990
|
};
|
|
2983
2991
|
function vn(e) {
|
|
2984
|
-
return /* @__PURE__ */
|
|
2992
|
+
return /* @__PURE__ */ s(
|
|
2985
2993
|
"img",
|
|
2986
2994
|
{
|
|
2987
2995
|
style: {
|
|
@@ -3081,7 +3089,7 @@ const Sn = {
|
|
|
3081
3089
|
}
|
|
3082
3090
|
};
|
|
3083
3091
|
function kn(e) {
|
|
3084
|
-
var i, o,
|
|
3092
|
+
var i, o, r, a, l, d, c;
|
|
3085
3093
|
function t() {
|
|
3086
3094
|
return {
|
|
3087
3095
|
...e.autoPlay === !0 ? {
|
|
@@ -3113,7 +3121,7 @@ function kn(e) {
|
|
|
3113
3121
|
position: "relative"
|
|
3114
3122
|
},
|
|
3115
3123
|
children: [
|
|
3116
|
-
/* @__PURE__ */
|
|
3124
|
+
/* @__PURE__ */ s(
|
|
3117
3125
|
"video",
|
|
3118
3126
|
{
|
|
3119
3127
|
className: "builder-video",
|
|
@@ -3135,10 +3143,10 @@ function kn(e) {
|
|
|
3135
3143
|
},
|
|
3136
3144
|
src: e.video || "no-src",
|
|
3137
3145
|
poster: e.posterImage,
|
|
3138
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3146
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3139
3147
|
}
|
|
3140
3148
|
),
|
|
3141
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3149
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3142
3150
|
"div",
|
|
3143
3151
|
{
|
|
3144
3152
|
style: {
|
|
@@ -3149,7 +3157,7 @@ function kn(e) {
|
|
|
3149
3157
|
}
|
|
3150
3158
|
}
|
|
3151
3159
|
) : null,
|
|
3152
|
-
(
|
|
3160
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3153
3161
|
"div",
|
|
3154
3162
|
{
|
|
3155
3163
|
style: {
|
|
@@ -3160,7 +3168,7 @@ function kn(e) {
|
|
|
3160
3168
|
children: e.children
|
|
3161
3169
|
}
|
|
3162
3170
|
) : null,
|
|
3163
|
-
(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(
|
|
3164
3172
|
"div",
|
|
3165
3173
|
{
|
|
3166
3174
|
style: {
|
|
@@ -3348,7 +3356,7 @@ const Cn = () => [{
|
|
|
3348
3356
|
"${t}", "${e}", ${$e}
|
|
3349
3357
|
)`;
|
|
3350
3358
|
function te(e) {
|
|
3351
|
-
return /* @__PURE__ */
|
|
3359
|
+
return /* @__PURE__ */ s(
|
|
3352
3360
|
"script",
|
|
3353
3361
|
{
|
|
3354
3362
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3378,10 +3386,10 @@ const Vn = (e, t, n = !0) => {
|
|
|
3378
3386
|
event: e,
|
|
3379
3387
|
target: t
|
|
3380
3388
|
}) => {
|
|
3381
|
-
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);
|
|
3382
3390
|
return {
|
|
3383
|
-
x:
|
|
3384
|
-
y:
|
|
3391
|
+
x: r,
|
|
3392
|
+
y: a
|
|
3385
3393
|
};
|
|
3386
3394
|
}, Wn = (e) => {
|
|
3387
3395
|
const t = e.target, n = t && An(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -3400,8 +3408,8 @@ const Vn = (e, t, n = !0) => {
|
|
|
3400
3408
|
}
|
|
3401
3409
|
};
|
|
3402
3410
|
}, Nn = (e) => {
|
|
3403
|
-
var
|
|
3404
|
-
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;
|
|
3405
3413
|
let o = "";
|
|
3406
3414
|
if (i && t && n && (o += `
|
|
3407
3415
|
@font-face {
|
|
@@ -3411,16 +3419,16 @@ font-display: fallback;
|
|
|
3411
3419
|
font-weight: 400;
|
|
3412
3420
|
}
|
|
3413
3421
|
`.trim()), e.files)
|
|
3414
|
-
for (const
|
|
3415
|
-
if (!(String(Number(
|
|
3422
|
+
for (const l in e.files) {
|
|
3423
|
+
if (!(String(Number(l)) === l))
|
|
3416
3424
|
continue;
|
|
3417
|
-
const c = e.files[
|
|
3425
|
+
const c = e.files[l];
|
|
3418
3426
|
c && c !== i && (o += `
|
|
3419
3427
|
@font-face {
|
|
3420
3428
|
font-family: "${t}";
|
|
3421
3429
|
src: url('${c}') format('woff2');
|
|
3422
3430
|
font-display: fallback;
|
|
3423
|
-
font-weight: ${
|
|
3431
|
+
font-weight: ${l};
|
|
3424
3432
|
}
|
|
3425
3433
|
`.trim());
|
|
3426
3434
|
}
|
|
@@ -3491,10 +3499,10 @@ function Un(e) {
|
|
|
3491
3499
|
"aria-hidden": !0
|
|
3492
3500
|
};
|
|
3493
3501
|
}
|
|
3494
|
-
const [
|
|
3502
|
+
const [r, a] = w(
|
|
3495
3503
|
() => e.contentWrapper || "div"
|
|
3496
3504
|
);
|
|
3497
|
-
function
|
|
3505
|
+
function l(C) {
|
|
3498
3506
|
return He({
|
|
3499
3507
|
model: e.model,
|
|
3500
3508
|
trustedHosts: e.trustedHosts,
|
|
@@ -3584,7 +3592,7 @@ function Un(e) {
|
|
|
3584
3592
|
return p.current || (k(), S(), p.current = !0), B(() => {
|
|
3585
3593
|
var C, I;
|
|
3586
3594
|
if (_()) {
|
|
3587
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message",
|
|
3595
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", l), Le(), Oe({
|
|
3588
3596
|
...e.locale ? {
|
|
3589
3597
|
locale: e.locale
|
|
3590
3598
|
} : {},
|
|
@@ -3638,12 +3646,12 @@ function Un(e) {
|
|
|
3638
3646
|
locale: e.locale
|
|
3639
3647
|
});
|
|
3640
3648
|
}, [e.locale]), B(() => () => {
|
|
3641
|
-
_() && (window.removeEventListener("message",
|
|
3649
|
+
_() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3642
3650
|
"builder:component:stateChangeListenerActivated",
|
|
3643
3651
|
S
|
|
3644
3652
|
));
|
|
3645
|
-
}, []), /* @__PURE__ */
|
|
3646
|
-
|
|
3653
|
+
}, []), /* @__PURE__ */ s(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3654
|
+
r,
|
|
3647
3655
|
{
|
|
3648
3656
|
ref: t,
|
|
3649
3657
|
onClick: (C) => f(C),
|
|
@@ -3671,7 +3679,7 @@ ${Fn({
|
|
|
3671
3679
|
${Ln(e.isNestedRender)}
|
|
3672
3680
|
`.trim()
|
|
3673
3681
|
);
|
|
3674
|
-
return /* @__PURE__ */
|
|
3682
|
+
return /* @__PURE__ */ s(
|
|
3675
3683
|
z,
|
|
3676
3684
|
{
|
|
3677
3685
|
id: "builderio-content",
|
|
@@ -3685,9 +3693,9 @@ const jn = ({
|
|
|
3685
3693
|
data: t,
|
|
3686
3694
|
locale: n
|
|
3687
3695
|
}) => {
|
|
3688
|
-
var
|
|
3689
|
-
const i = {}, o = ((
|
|
3690
|
-
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) => {
|
|
3691
3699
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3692
3700
|
}), {
|
|
3693
3701
|
...i,
|
|
@@ -3722,12 +3730,12 @@ function ye(e) {
|
|
|
3722
3730
|
}
|
|
3723
3731
|
);
|
|
3724
3732
|
function i(b) {
|
|
3725
|
-
|
|
3733
|
+
l((x) => ({
|
|
3726
3734
|
...x,
|
|
3727
3735
|
rootState: b
|
|
3728
3736
|
}));
|
|
3729
3737
|
}
|
|
3730
|
-
const [o,
|
|
3738
|
+
const [o, r] = w(
|
|
3731
3739
|
() => {
|
|
3732
3740
|
var b;
|
|
3733
3741
|
return [
|
|
@@ -3744,7 +3752,7 @@ function ye(e) {
|
|
|
3744
3752
|
{}
|
|
3745
3753
|
);
|
|
3746
3754
|
}
|
|
3747
|
-
), [
|
|
3755
|
+
), [a, l] = w(() => {
|
|
3748
3756
|
var b;
|
|
3749
3757
|
return {
|
|
3750
3758
|
content: Mn({
|
|
@@ -3782,19 +3790,19 @@ function ye(e) {
|
|
|
3782
3790
|
e.apiKey || ne.error(
|
|
3783
3791
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3784
3792
|
);
|
|
3785
|
-
const b = (h = (c =
|
|
3793
|
+
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3786
3794
|
b && L({
|
|
3787
3795
|
code: b,
|
|
3788
3796
|
context: e.context || {},
|
|
3789
3797
|
localState: void 0,
|
|
3790
|
-
rootState:
|
|
3798
|
+
rootState: a.rootState,
|
|
3791
3799
|
rootSetState: (x) => {
|
|
3792
|
-
Object.assign(
|
|
3800
|
+
Object.assign(a.rootState, x);
|
|
3793
3801
|
},
|
|
3794
3802
|
isExpression: !1
|
|
3795
3803
|
}), d.current = !0;
|
|
3796
3804
|
}
|
|
3797
|
-
return /* @__PURE__ */
|
|
3805
|
+
return /* @__PURE__ */ s(
|
|
3798
3806
|
Te.Provider,
|
|
3799
3807
|
{
|
|
3800
3808
|
value: {
|
|
@@ -3814,14 +3822,14 @@ function ye(e) {
|
|
|
3814
3822
|
locale: e.locale,
|
|
3815
3823
|
enrich: e.enrich,
|
|
3816
3824
|
showContent: e.showContent,
|
|
3817
|
-
builderContextSignal:
|
|
3825
|
+
builderContextSignal: a,
|
|
3818
3826
|
contentWrapper: e.contentWrapper,
|
|
3819
3827
|
contentWrapperProps: e.contentWrapperProps,
|
|
3820
3828
|
trustedHosts: e.trustedHosts,
|
|
3821
3829
|
isNestedRender: e.isNestedRender,
|
|
3822
|
-
setBuilderContextSignal:
|
|
3830
|
+
setBuilderContextSignal: l,
|
|
3823
3831
|
children: [
|
|
3824
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3832
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3825
3833
|
te,
|
|
3826
3834
|
{
|
|
3827
3835
|
id: "builderio-variant-visibility",
|
|
@@ -3829,21 +3837,21 @@ function ye(e) {
|
|
|
3829
3837
|
nonce: e.nonce || ""
|
|
3830
3838
|
}
|
|
3831
3839
|
) : null,
|
|
3832
|
-
/* @__PURE__ */
|
|
3840
|
+
/* @__PURE__ */ s(
|
|
3833
3841
|
Hn,
|
|
3834
3842
|
{
|
|
3835
3843
|
nonce: e.nonce || "",
|
|
3836
3844
|
isNestedRender: e.isNestedRender,
|
|
3837
|
-
contentId: (g =
|
|
3838
|
-
cssCode: (v = (m =
|
|
3839
|
-
customFonts: (k = (f =
|
|
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
|
|
3840
3848
|
}
|
|
3841
3849
|
),
|
|
3842
|
-
/* @__PURE__ */
|
|
3850
|
+
/* @__PURE__ */ s(
|
|
3843
3851
|
F,
|
|
3844
3852
|
{
|
|
3845
|
-
blocks: (p = (S =
|
|
3846
|
-
context:
|
|
3853
|
+
blocks: (p = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
3854
|
+
context: a,
|
|
3847
3855
|
registeredComponents: o,
|
|
3848
3856
|
linkComponent: e.linkComponent
|
|
3849
3857
|
}
|
|
@@ -3855,7 +3863,7 @@ function ye(e) {
|
|
|
3855
3863
|
);
|
|
3856
3864
|
}
|
|
3857
3865
|
function _n(e) {
|
|
3858
|
-
var
|
|
3866
|
+
var a;
|
|
3859
3867
|
const [t, n] = w(
|
|
3860
3868
|
() => wn({
|
|
3861
3869
|
canTrack: q(e.canTrack),
|
|
@@ -3863,23 +3871,23 @@ function _n(e) {
|
|
|
3863
3871
|
})
|
|
3864
3872
|
);
|
|
3865
3873
|
function i() {
|
|
3866
|
-
var
|
|
3874
|
+
var l;
|
|
3867
3875
|
return Pn(
|
|
3868
3876
|
M(e.content).map((d) => ({
|
|
3869
3877
|
id: d.testVariationId,
|
|
3870
3878
|
testRatio: d.testRatio
|
|
3871
3879
|
})),
|
|
3872
|
-
((
|
|
3880
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3873
3881
|
);
|
|
3874
3882
|
}
|
|
3875
3883
|
function o() {
|
|
3876
|
-
return M(e.content).map((
|
|
3884
|
+
return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3877
3885
|
}
|
|
3878
|
-
function
|
|
3879
|
-
var
|
|
3886
|
+
function r() {
|
|
3887
|
+
var l;
|
|
3880
3888
|
return t ? {
|
|
3881
3889
|
...e.content,
|
|
3882
|
-
testVariationId: (
|
|
3890
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3883
3891
|
} : je({
|
|
3884
3892
|
item: e.content,
|
|
3885
3893
|
canTrack: q(e.canTrack)
|
|
@@ -3887,7 +3895,7 @@ function _n(e) {
|
|
|
3887
3895
|
}
|
|
3888
3896
|
return B(() => {
|
|
3889
3897
|
}, []), /* @__PURE__ */ V(T, { children: [
|
|
3890
|
-
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */
|
|
3898
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3891
3899
|
te,
|
|
3892
3900
|
{
|
|
3893
3901
|
id: "builderio-init-variants-fns",
|
|
@@ -3896,7 +3904,7 @@ function _n(e) {
|
|
|
3896
3904
|
}
|
|
3897
3905
|
) : null,
|
|
3898
3906
|
t ? /* @__PURE__ */ V(T, { children: [
|
|
3899
|
-
/* @__PURE__ */
|
|
3907
|
+
/* @__PURE__ */ s(
|
|
3900
3908
|
z,
|
|
3901
3909
|
{
|
|
3902
3910
|
id: "builderio-variants",
|
|
@@ -3904,7 +3912,7 @@ function _n(e) {
|
|
|
3904
3912
|
nonce: e.nonce || ""
|
|
3905
3913
|
}
|
|
3906
3914
|
),
|
|
3907
|
-
/* @__PURE__ */
|
|
3915
|
+
/* @__PURE__ */ s(
|
|
3908
3916
|
te,
|
|
3909
3917
|
{
|
|
3910
3918
|
id: "builderio-variants-visibility",
|
|
@@ -3912,13 +3920,13 @@ function _n(e) {
|
|
|
3912
3920
|
nonce: e.nonce || ""
|
|
3913
3921
|
}
|
|
3914
3922
|
),
|
|
3915
|
-
(
|
|
3923
|
+
(a = M(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3916
3924
|
ye,
|
|
3917
3925
|
{
|
|
3918
3926
|
apiHost: e.apiHost,
|
|
3919
3927
|
isNestedRender: e.isNestedRender,
|
|
3920
3928
|
nonce: e.nonce,
|
|
3921
|
-
content:
|
|
3929
|
+
content: l,
|
|
3922
3930
|
showContent: !1,
|
|
3923
3931
|
model: e.model,
|
|
3924
3932
|
data: e.data,
|
|
@@ -3937,16 +3945,16 @@ function _n(e) {
|
|
|
3937
3945
|
contentWrapperProps: e.contentWrapperProps,
|
|
3938
3946
|
trustedHosts: e.trustedHosts
|
|
3939
3947
|
},
|
|
3940
|
-
|
|
3948
|
+
l.testVariationId
|
|
3941
3949
|
))
|
|
3942
3950
|
] }) : null,
|
|
3943
|
-
/* @__PURE__ */
|
|
3951
|
+
/* @__PURE__ */ s(
|
|
3944
3952
|
ye,
|
|
3945
3953
|
{
|
|
3946
3954
|
apiHost: e.apiHost,
|
|
3947
3955
|
nonce: e.nonce,
|
|
3948
3956
|
isNestedRender: e.isNestedRender,
|
|
3949
|
-
content:
|
|
3957
|
+
content: r(),
|
|
3950
3958
|
showContent: !0,
|
|
3951
3959
|
model: e.model,
|
|
3952
3960
|
data: e.data,
|
|
@@ -3988,7 +3996,7 @@ const qn = async ({
|
|
|
3988
3996
|
});
|
|
3989
3997
|
};
|
|
3990
3998
|
function Kn(e) {
|
|
3991
|
-
var
|
|
3999
|
+
var l, d, c, h;
|
|
3992
4000
|
function t() {
|
|
3993
4001
|
return "div";
|
|
3994
4002
|
}
|
|
@@ -4004,22 +4012,22 @@ function Kn(e) {
|
|
|
4004
4012
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4005
4013
|
].filter(Boolean).join(" ");
|
|
4006
4014
|
}
|
|
4007
|
-
const [o,
|
|
4015
|
+
const [o, r] = w(() => {
|
|
4008
4016
|
var g;
|
|
4009
4017
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4010
4018
|
});
|
|
4011
|
-
function
|
|
4019
|
+
function a() {
|
|
4012
4020
|
o || qn({
|
|
4013
4021
|
symbol: e.symbol,
|
|
4014
4022
|
builderContextValue: e.builderContext
|
|
4015
4023
|
}).then((g) => {
|
|
4016
|
-
g &&
|
|
4024
|
+
g && r(g);
|
|
4017
4025
|
});
|
|
4018
4026
|
}
|
|
4019
4027
|
return B(() => {
|
|
4020
4028
|
}, []), B(() => {
|
|
4021
|
-
|
|
4022
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4029
|
+
a();
|
|
4030
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4023
4031
|
_n,
|
|
4024
4032
|
{
|
|
4025
4033
|
nonce: e.builderContext.nonce,
|
|
@@ -4028,7 +4036,7 @@ function Kn(e) {
|
|
|
4028
4036
|
apiKey: e.builderContext.apiKey,
|
|
4029
4037
|
context: {
|
|
4030
4038
|
...e.builderContext.context,
|
|
4031
|
-
symbolId: (
|
|
4039
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4032
4040
|
},
|
|
4033
4041
|
customComponents: Object.values(e.builderComponents),
|
|
4034
4042
|
data: {
|