@builder.io/sdk-react 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +29 -29
- package/lib/browser/blocks-exports.mjs +300 -278
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/server-entry-0c6c220c.js +688 -0
- package/lib/browser/server-entry-7e145817.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4f96554c.cjs → accordion-72dab8ce.cjs} +1 -1
- package/lib/edge/{accordion-ca081054.js → accordion-99129d68.js} +1 -1
- package/lib/edge/blocks-426e0c44.js +808 -0
- package/lib/edge/blocks-53ae1b87.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-41169061.js → button-778062cd.js} +2 -2
- package/lib/edge/{button-5d140f8e.cjs → button-967d0268.cjs} +1 -1
- package/lib/edge/{columns-f8916a18.js → columns-3a8c4d3f.js} +53 -51
- package/lib/edge/columns-3b921658.cjs +28 -0
- package/lib/edge/{content-variants-71ee0c76.js → content-variants-15d191de.js} +28 -26
- package/lib/edge/content-variants-4b8718f8.cjs +134 -0
- package/lib/edge/evaluate-26c0fdb7.js +2615 -0
- package/lib/edge/evaluate-c0eeb4f8.cjs +21 -0
- package/lib/edge/form-9d9dce5d.cjs +1 -0
- package/lib/edge/{form-ac2f2a0e.js → form-ccb0b912.js} +8 -7
- package/lib/edge/{get-class-prop-name-a677d7a5.js → get-class-prop-name-0a91c3bd.js} +1 -1
- package/lib/edge/{get-class-prop-name-a9b4959e.cjs → get-class-prop-name-eae60eae.cjs} +1 -1
- package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
- package/lib/edge/image-eebfcbac.cjs +17 -0
- package/lib/edge/{img-b91cb4fd.cjs → img-183de27d.cjs} +1 -1
- package/lib/edge/{img-8fc26395.js → img-75751c89.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-549f090e.js → input-27972020.js} +1 -1
- package/lib/edge/{input-ec7c695a.cjs → input-fd18a67d.cjs} +1 -1
- package/lib/edge/{select-6a5a28ac.js → select-60ff549c.js} +1 -1
- package/lib/edge/{select-3ffa9294.cjs → select-6ea0d59f.cjs} +1 -1
- package/lib/edge/server-entry-4133a544.cjs +2 -0
- package/lib/edge/server-entry-feff6177.js +689 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-40de071b.js → slot-2347377e.js} +12 -11
- package/lib/edge/slot-a4509cae.cjs +1 -0
- package/lib/edge/{symbol-76e76298.cjs → symbol-98650b06.cjs} +1 -1
- package/lib/edge/{symbol-e6515a5f.js → symbol-dcef0d8e.js} +2 -2
- package/lib/edge/{tabs-b75be82d.js → tabs-0784574b.js} +10 -9
- package/lib/edge/tabs-4c131e17.cjs +1 -0
- package/lib/edge/text-1c1986aa.cjs +1 -0
- package/lib/edge/text-6f7cbc35.js +38 -0
- package/lib/node/blocks-exports.cjs +16 -16
- package/lib/node/blocks-exports.mjs +255 -233
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-0e37d6f7.cjs → node-runtime-4978bc21.cjs} +2 -2
- package/lib/node/{node-runtime-0f3a5df1.js → node-runtime-ce5c71e5.js} +3 -2
- package/lib/node/server-entry-0c6c220c.js +688 -0
- package/lib/node/server-entry-7e145817.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/image/image.types.d.ts +2 -0
- package/types/blocks/symbol/symbol.types.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/register-component.d.ts +2 -2
- package/lib/browser/server-entry-419c051e.cjs +0 -2
- package/lib/browser/server-entry-825b4408.js +0 -695
- package/lib/edge/blocks-078044bc.cjs +0 -32
- package/lib/edge/blocks-f55c7d3e.js +0 -3418
- package/lib/edge/columns-354bf349.cjs +0 -28
- package/lib/edge/content-variants-89a9389a.cjs +0 -134
- package/lib/edge/form-f2d2c2bf.cjs +0 -1
- package/lib/edge/image-344ddbb0.cjs +0 -17
- package/lib/edge/server-entry-966ac144.cjs +0 -2
- package/lib/edge/server-entry-d2020acf.js +0 -695
- package/lib/edge/slot-8b27e15e.cjs +0 -1
- package/lib/edge/tabs-9c5af0ec.cjs +0 -1
- package/lib/edge/text-5915f038.js +0 -17
- package/lib/edge/text-e6dbb721.cjs +0 -1
- package/lib/node/server-entry-5ebd1c9b.js +0 -695
- package/lib/node/server-entry-8002325b.cjs +0 -2
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
var qe = Object.defineProperty;
|
|
3
3
|
var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
6
|
-
import { TARGET as z, isEditing as
|
|
7
|
-
import { createContext as Re, useState as T, useEffect as
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-0c6c220c.js";
|
|
7
|
+
import { createContext as Re, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
8
|
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
|
-
function
|
|
9
|
+
function de(e) {
|
|
10
10
|
return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const K = () => {
|
|
13
13
|
switch (z) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
@@ -27,7 +27,7 @@ function nt(e) {
|
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -38,7 +38,7 @@ function nt(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ s(
|
|
41
|
-
|
|
41
|
+
de,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function nt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const ue = Re({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -82,7 +82,7 @@ const ot = ({
|
|
|
82
82
|
context: t,
|
|
83
83
|
event: n
|
|
84
84
|
}), at = () => ({
|
|
85
|
-
isEditing:
|
|
85
|
+
isEditing: F(),
|
|
86
86
|
isBrowser: M(),
|
|
87
87
|
isServer: !M(),
|
|
88
88
|
getUserAttributes: () => ze()
|
|
@@ -164,7 +164,7 @@ const st = () => {
|
|
|
164
164
|
};
|
|
165
165
|
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
166
166
|
let U = L;
|
|
167
|
-
function
|
|
167
|
+
function H({
|
|
168
168
|
code: e,
|
|
169
169
|
context: t,
|
|
170
170
|
localState: n,
|
|
@@ -188,25 +188,25 @@ function K({
|
|
|
188
188
|
localState: n
|
|
189
189
|
};
|
|
190
190
|
if (l) {
|
|
191
|
-
const
|
|
191
|
+
const d = U.getCacheKey(c), f = U.getCachedValue(d);
|
|
192
192
|
if (f)
|
|
193
193
|
return f.value;
|
|
194
194
|
}
|
|
195
195
|
try {
|
|
196
|
-
const
|
|
196
|
+
const d = ct(c);
|
|
197
197
|
if (l) {
|
|
198
198
|
const f = U.getCacheKey(c);
|
|
199
|
-
U.setCachedValue(f,
|
|
199
|
+
U.setCachedValue(f, d);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
202
|
-
} catch (
|
|
203
|
-
Z.error("Failed code evaluation: " +
|
|
201
|
+
return d;
|
|
202
|
+
} catch (d) {
|
|
203
|
+
Z.error("Failed code evaluation: " + d.message, {
|
|
204
204
|
code: e
|
|
205
205
|
});
|
|
206
206
|
return;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
const Ve = (e, t, n) => {
|
|
209
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Ve = (e, t, n) => {
|
|
210
210
|
if (Object(e) !== e)
|
|
211
211
|
return e;
|
|
212
212
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -221,7 +221,7 @@ const dt = ({
|
|
|
221
221
|
}) => {
|
|
222
222
|
if (!e.bindings)
|
|
223
223
|
return e;
|
|
224
|
-
const r =
|
|
224
|
+
const r = me(e), a = {
|
|
225
225
|
...r,
|
|
226
226
|
properties: {
|
|
227
227
|
...r.properties
|
|
@@ -231,7 +231,7 @@ const dt = ({
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
for (const l in e.bindings) {
|
|
234
|
-
const c = e.bindings[l],
|
|
234
|
+
const c = e.bindings[l], d = H({
|
|
235
235
|
code: c,
|
|
236
236
|
localState: n,
|
|
237
237
|
rootState: i,
|
|
@@ -239,7 +239,7 @@ const dt = ({
|
|
|
239
239
|
context: t,
|
|
240
240
|
enableCache: !0
|
|
241
241
|
});
|
|
242
|
-
Ve(a, l,
|
|
242
|
+
Ve(a, l, d);
|
|
243
243
|
}
|
|
244
244
|
return a;
|
|
245
245
|
};
|
|
@@ -267,13 +267,13 @@ function ut(e, t, n = {}) {
|
|
|
267
267
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
268
268
|
};
|
|
269
269
|
return function() {
|
|
270
|
-
const
|
|
271
|
-
!l && n.leading === !1 && (l =
|
|
272
|
-
const f = t - (
|
|
273
|
-
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l =
|
|
270
|
+
const d = Date.now();
|
|
271
|
+
!l && n.leading === !1 && (l = d);
|
|
272
|
+
const f = t - (d - l);
|
|
273
|
+
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = d, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function q(e, ...t) {
|
|
277
277
|
const n = Object(e);
|
|
278
278
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
279
|
const o = arguments[i];
|
|
@@ -317,8 +317,8 @@ function We(e) {
|
|
|
317
317
|
return;
|
|
318
318
|
}
|
|
319
319
|
Array.from(t).forEach((n) => {
|
|
320
|
-
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
321
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
320
|
+
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
321
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
322
322
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
323
323
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
324
324
|
});
|
|
@@ -335,23 +335,23 @@ function ht(e) {
|
|
|
335
335
|
let i = !1, o = !1;
|
|
336
336
|
function r() {
|
|
337
337
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
338
|
-
|
|
338
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
339
339
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
340
340
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
341
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
341
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
342
342
|
}
|
|
343
343
|
const a = ut(r, 200, {
|
|
344
344
|
leading: !1
|
|
345
345
|
});
|
|
346
346
|
function l(f) {
|
|
347
|
-
const
|
|
348
|
-
return
|
|
347
|
+
const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
|
|
348
|
+
return u.bottom > y && u.top < m - y;
|
|
349
349
|
}
|
|
350
350
|
const c = e.steps[0].styles;
|
|
351
|
-
function
|
|
352
|
-
|
|
351
|
+
function d() {
|
|
352
|
+
q(n.style, c);
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
d(), setTimeout(() => {
|
|
355
355
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
356
356
|
}), document.addEventListener("scroll", a, {
|
|
357
357
|
capture: !0,
|
|
@@ -359,10 +359,10 @@ function ht(e) {
|
|
|
359
359
|
}), r();
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
363
363
|
if (typeof i == "string")
|
|
364
364
|
return `${te(n)}: ${i};`;
|
|
365
|
-
}).filter(G), gt = (e) =>
|
|
365
|
+
}).filter(G), gt = (e) => $e(e).join(`
|
|
366
366
|
`), J = ({
|
|
367
367
|
mediaQuery: e,
|
|
368
368
|
className: t,
|
|
@@ -383,18 +383,18 @@ function bt({
|
|
|
383
383
|
const pt = ({
|
|
384
384
|
block: e,
|
|
385
385
|
context: t
|
|
386
|
-
}) =>
|
|
386
|
+
}) => Fe(bt({
|
|
387
387
|
style: e.style || {},
|
|
388
388
|
context: t,
|
|
389
389
|
block: e
|
|
390
390
|
}));
|
|
391
|
-
function
|
|
391
|
+
function Fe(e) {
|
|
392
392
|
switch (z) {
|
|
393
393
|
case "svelte":
|
|
394
394
|
case "vue":
|
|
395
395
|
case "solid":
|
|
396
396
|
case "angular":
|
|
397
|
-
return
|
|
397
|
+
return $e(e).join(" ");
|
|
398
398
|
case "qwik":
|
|
399
399
|
case "reactNative":
|
|
400
400
|
case "react":
|
|
@@ -434,7 +434,7 @@ const yt = ({
|
|
|
434
434
|
} = e;
|
|
435
435
|
if (!(n != null && n.collection))
|
|
436
436
|
return;
|
|
437
|
-
const o =
|
|
437
|
+
const o = H({
|
|
438
438
|
code: n.collection,
|
|
439
439
|
localState: t.localState,
|
|
440
440
|
rootState: t.rootState,
|
|
@@ -445,15 +445,15 @@ const yt = ({
|
|
|
445
445
|
if (!Array.isArray(o))
|
|
446
446
|
return;
|
|
447
447
|
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
448
|
-
return o.map((c,
|
|
448
|
+
return o.map((c, d) => ({
|
|
449
449
|
context: {
|
|
450
450
|
...t,
|
|
451
451
|
localState: {
|
|
452
452
|
...t.localState,
|
|
453
|
-
$index:
|
|
453
|
+
$index: d,
|
|
454
454
|
$item: c,
|
|
455
455
|
[a]: c,
|
|
456
|
-
[`$${a}Index`]:
|
|
456
|
+
[`$${a}Index`]: d
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
block: i
|
|
@@ -498,7 +498,7 @@ const yt = ({
|
|
|
498
498
|
small: e,
|
|
499
499
|
medium: t
|
|
500
500
|
}) => {
|
|
501
|
-
const n =
|
|
501
|
+
const n = me(De);
|
|
502
502
|
if (!e || !t)
|
|
503
503
|
return n;
|
|
504
504
|
const i = Math.floor(e / 2);
|
|
@@ -554,10 +554,10 @@ function Tt(e) {
|
|
|
554
554
|
shouldEvaluateBindings: !0
|
|
555
555
|
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
556
556
|
((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
|
|
557
|
-
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium,
|
|
557
|
+
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
|
|
558
558
|
if (!f)
|
|
559
559
|
return "";
|
|
560
|
-
const
|
|
560
|
+
const u = l ? J({
|
|
561
561
|
className: f,
|
|
562
562
|
styles: l
|
|
563
563
|
}) : "", m = c ? J({
|
|
@@ -567,9 +567,9 @@ function Tt(e) {
|
|
|
567
567
|
"medium",
|
|
568
568
|
a
|
|
569
569
|
)
|
|
570
|
-
}) : "", g =
|
|
570
|
+
}) : "", g = d ? J({
|
|
571
571
|
className: f,
|
|
572
|
-
styles:
|
|
572
|
+
styles: d,
|
|
573
573
|
mediaQuery: ye(
|
|
574
574
|
"small",
|
|
575
575
|
a
|
|
@@ -590,7 +590,7 @@ function Tt(e) {
|
|
|
590
590
|
}) || "";
|
|
591
591
|
}
|
|
592
592
|
return [
|
|
593
|
-
|
|
593
|
+
u,
|
|
594
594
|
m,
|
|
595
595
|
g,
|
|
596
596
|
C
|
|
@@ -608,7 +608,7 @@ function Tt(e) {
|
|
|
608
608
|
function It(e) {
|
|
609
609
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
610
610
|
}
|
|
611
|
-
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) =>
|
|
611
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
|
|
612
612
|
code: e,
|
|
613
613
|
context: t.context,
|
|
614
614
|
localState: t.localState,
|
|
@@ -660,7 +660,7 @@ function fe({
|
|
|
660
660
|
block: e,
|
|
661
661
|
context: t
|
|
662
662
|
}),
|
|
663
|
-
[
|
|
663
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
664
664
|
};
|
|
665
665
|
return Et({
|
|
666
666
|
properties: n,
|
|
@@ -670,7 +670,7 @@ function fe({
|
|
|
670
670
|
}
|
|
671
671
|
function Pt(e) {
|
|
672
672
|
return /* @__PURE__ */ s(
|
|
673
|
-
|
|
673
|
+
de,
|
|
674
674
|
{
|
|
675
675
|
TagName: e.Wrapper,
|
|
676
676
|
attributes: fe({
|
|
@@ -770,7 +770,7 @@ function xe(e) {
|
|
|
770
770
|
}
|
|
771
771
|
function Nt(e) {
|
|
772
772
|
const [t, n] = T(() => e.repeatContext);
|
|
773
|
-
return /* @__PURE__ */ s(
|
|
773
|
+
return /* @__PURE__ */ s(ue.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
774
774
|
_,
|
|
775
775
|
{
|
|
776
776
|
block: e.block,
|
|
@@ -781,7 +781,7 @@ function Nt(e) {
|
|
|
781
781
|
) });
|
|
782
782
|
}
|
|
783
783
|
function _(e) {
|
|
784
|
-
var c,
|
|
784
|
+
var c, d, f;
|
|
785
785
|
function t() {
|
|
786
786
|
return yt({
|
|
787
787
|
block: e.block,
|
|
@@ -796,8 +796,8 @@ function _(e) {
|
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
function i() {
|
|
799
|
-
var
|
|
800
|
-
return (
|
|
799
|
+
var u;
|
|
800
|
+
return (u = e.block.repeat) != null && u.collection ? e.block : X({
|
|
801
801
|
block: e.block,
|
|
802
802
|
localState: e.context.localState,
|
|
803
803
|
rootState: e.context.rootState,
|
|
@@ -814,17 +814,17 @@ function _(e) {
|
|
|
814
814
|
var g, y;
|
|
815
815
|
if ((g = e.block.repeat) != null && g.collection)
|
|
816
816
|
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
817
|
-
const
|
|
818
|
-
return ("show" in i() ? i().show : !0) && !
|
|
817
|
+
const u = "hide" in i() ? i().hide : !1;
|
|
818
|
+
return ("show" in i() ? i().show : !0) && !u;
|
|
819
819
|
}
|
|
820
820
|
function a() {
|
|
821
821
|
var m, g;
|
|
822
822
|
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
823
823
|
}
|
|
824
824
|
function l() {
|
|
825
|
-
var
|
|
825
|
+
var u, m, g, y;
|
|
826
826
|
return {
|
|
827
|
-
blockChildren: (
|
|
827
|
+
blockChildren: (u = i().children) != null ? u : [],
|
|
828
828
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
829
829
|
componentOptions: {
|
|
830
830
|
...it(i()),
|
|
@@ -844,15 +844,15 @@ function _(e) {
|
|
|
844
844
|
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
return
|
|
848
|
-
const
|
|
849
|
-
m &&
|
|
847
|
+
return P(() => {
|
|
848
|
+
const u = i().id, m = i().animations;
|
|
849
|
+
m && u && mt(
|
|
850
850
|
m.map((g) => ({
|
|
851
851
|
...g,
|
|
852
|
-
elementId:
|
|
852
|
+
elementId: u
|
|
853
853
|
}))
|
|
854
854
|
);
|
|
855
|
-
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */
|
|
855
|
+
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ V(R, { children: [
|
|
856
856
|
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
857
857
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
858
858
|
xe,
|
|
@@ -867,16 +867,16 @@ function _(e) {
|
|
|
867
867
|
includeBlockProps: l().includeBlockProps,
|
|
868
868
|
isInteractive: l().isInteractive
|
|
869
869
|
}
|
|
870
|
-
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((
|
|
870
|
+
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
|
|
871
871
|
Nt,
|
|
872
872
|
{
|
|
873
|
-
repeatContext:
|
|
874
|
-
block:
|
|
873
|
+
repeatContext: u.context,
|
|
874
|
+
block: u.block,
|
|
875
875
|
registeredComponents: e.registeredComponents,
|
|
876
876
|
linkComponent: e.linkComponent
|
|
877
877
|
},
|
|
878
878
|
m
|
|
879
|
-
)) }) : /* @__PURE__ */
|
|
879
|
+
)) }) : /* @__PURE__ */ V(
|
|
880
880
|
Pt,
|
|
881
881
|
{
|
|
882
882
|
Wrapper: o(),
|
|
@@ -897,15 +897,15 @@ function _(e) {
|
|
|
897
897
|
isInteractive: l().isInteractive
|
|
898
898
|
}
|
|
899
899
|
),
|
|
900
|
-
(
|
|
900
|
+
(d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
|
|
901
901
|
_,
|
|
902
902
|
{
|
|
903
|
-
block:
|
|
903
|
+
block: u,
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
linkComponent: e.linkComponent,
|
|
906
906
|
context: e.context
|
|
907
907
|
},
|
|
908
|
-
|
|
908
|
+
u.id
|
|
909
909
|
))
|
|
910
910
|
]
|
|
911
911
|
}
|
|
@@ -919,7 +919,7 @@ function Wt(e) {
|
|
|
919
919
|
}
|
|
920
920
|
function n() {
|
|
921
921
|
var o, r;
|
|
922
|
-
|
|
922
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
923
923
|
{
|
|
924
924
|
type: "builder.clickEmptyBlocks",
|
|
925
925
|
data: {
|
|
@@ -932,7 +932,7 @@ function Wt(e) {
|
|
|
932
932
|
}
|
|
933
933
|
function i() {
|
|
934
934
|
var o, r;
|
|
935
|
-
|
|
935
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
936
936
|
{
|
|
937
937
|
type: "builder.hoverEmptyBlocks",
|
|
938
938
|
data: {
|
|
@@ -943,7 +943,7 @@ function Wt(e) {
|
|
|
943
943
|
"*"
|
|
944
944
|
));
|
|
945
945
|
}
|
|
946
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
947
947
|
/* @__PURE__ */ s(
|
|
948
948
|
e.BlocksWrapper,
|
|
949
949
|
{
|
|
@@ -967,7 +967,7 @@ function Wt(e) {
|
|
|
967
967
|
}
|
|
968
968
|
function D(e) {
|
|
969
969
|
var i, o, r;
|
|
970
|
-
const t = be(
|
|
970
|
+
const t = be(ue), n = be(Be);
|
|
971
971
|
return /* @__PURE__ */ s(
|
|
972
972
|
Wt,
|
|
973
973
|
{
|
|
@@ -990,36 +990,36 @@ function D(e) {
|
|
|
990
990
|
}
|
|
991
991
|
);
|
|
992
992
|
}
|
|
993
|
-
const
|
|
994
|
-
function
|
|
993
|
+
const $t = (e) => `builder-columns ${e}-breakpoints`;
|
|
994
|
+
function Ft(e) {
|
|
995
995
|
var A, O;
|
|
996
996
|
const [t, n] = T(
|
|
997
997
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
998
998
|
), [i, o] = T(() => e.columns || []), [r, a] = T(
|
|
999
999
|
() => e.stackColumnsAt || "tablet"
|
|
1000
1000
|
);
|
|
1001
|
-
function l(
|
|
1002
|
-
return
|
|
1001
|
+
function l(x) {
|
|
1002
|
+
return x.link ? e.builderLinkComponent || "a" : "div";
|
|
1003
1003
|
}
|
|
1004
|
-
function c(
|
|
1004
|
+
function c(x) {
|
|
1005
1005
|
var w;
|
|
1006
|
-
return ((w = i[
|
|
1006
|
+
return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
|
|
1007
1007
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const w = c(
|
|
1008
|
+
function d(x) {
|
|
1009
|
+
const w = c(x), N = t * (i.length - 1) * (w / 100);
|
|
1010
1010
|
return `calc(${w}% - ${N}px)`;
|
|
1011
1011
|
}
|
|
1012
1012
|
function f({
|
|
1013
|
-
stackedStyle:
|
|
1013
|
+
stackedStyle: x,
|
|
1014
1014
|
desktopStyle: w
|
|
1015
1015
|
}) {
|
|
1016
|
-
return r === "tablet" ?
|
|
1016
|
+
return r === "tablet" ? x : w;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1019
|
-
stackedStyle:
|
|
1018
|
+
function u({
|
|
1019
|
+
stackedStyle: x,
|
|
1020
1020
|
desktopStyle: w
|
|
1021
1021
|
}) {
|
|
1022
|
-
return r === "never" ? w :
|
|
1022
|
+
return r === "never" ? w : x;
|
|
1023
1023
|
}
|
|
1024
1024
|
const [m, g] = T(
|
|
1025
1025
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -1033,8 +1033,8 @@ function $t(e) {
|
|
|
1033
1033
|
})
|
|
1034
1034
|
};
|
|
1035
1035
|
}
|
|
1036
|
-
function C(
|
|
1037
|
-
const w =
|
|
1036
|
+
function C(x) {
|
|
1037
|
+
const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
|
|
1038
1038
|
return {
|
|
1039
1039
|
...{
|
|
1040
1040
|
display: "flex",
|
|
@@ -1043,12 +1043,12 @@ function $t(e) {
|
|
|
1043
1043
|
},
|
|
1044
1044
|
width: N,
|
|
1045
1045
|
["marginLeft"]: b,
|
|
1046
|
-
"--column-width-mobile":
|
|
1046
|
+
"--column-width-mobile": u({
|
|
1047
1047
|
stackedStyle: h,
|
|
1048
1048
|
desktopStyle: N
|
|
1049
1049
|
}),
|
|
1050
|
-
"--column-margin-left-mobile":
|
|
1051
|
-
stackedStyle:
|
|
1050
|
+
"--column-margin-left-mobile": u({
|
|
1051
|
+
stackedStyle: v,
|
|
1052
1052
|
desktopStyle: b
|
|
1053
1053
|
}),
|
|
1054
1054
|
"--column-width-tablet": f({
|
|
@@ -1056,18 +1056,19 @@ function $t(e) {
|
|
|
1056
1056
|
desktopStyle: N
|
|
1057
1057
|
}),
|
|
1058
1058
|
"--column-margin-left-tablet": f({
|
|
1059
|
-
stackedStyle:
|
|
1059
|
+
stackedStyle: v,
|
|
1060
1060
|
desktopStyle: b
|
|
1061
1061
|
})
|
|
1062
1062
|
};
|
|
1063
1063
|
}
|
|
1064
|
-
function p(
|
|
1064
|
+
function p(x) {
|
|
1065
1065
|
var N, b;
|
|
1066
1066
|
return Le(
|
|
1067
1067
|
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1068
|
-
)[
|
|
1068
|
+
)[x].max;
|
|
1069
1069
|
}
|
|
1070
1070
|
function B() {
|
|
1071
|
+
const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1071
1072
|
return `
|
|
1072
1073
|
@media (max-width: ${p("medium")}px) {
|
|
1073
1074
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1075,7 +1076,7 @@ function $t(e) {
|
|
|
1075
1076
|
align-items: stretch;
|
|
1076
1077
|
}
|
|
1077
1078
|
|
|
1078
|
-
|
|
1079
|
+
${x} {
|
|
1079
1080
|
width: var(--column-width-tablet) !important;
|
|
1080
1081
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1081
1082
|
}
|
|
@@ -1087,27 +1088,27 @@ function $t(e) {
|
|
|
1087
1088
|
align-items: stretch;
|
|
1088
1089
|
}
|
|
1089
1090
|
|
|
1090
|
-
|
|
1091
|
+
${x} {
|
|
1091
1092
|
width: var(--column-width-mobile) !important;
|
|
1092
1093
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1093
1094
|
}
|
|
1094
1095
|
},
|
|
1095
1096
|
`;
|
|
1096
1097
|
}
|
|
1097
|
-
function E(
|
|
1098
|
+
function E(x, w) {
|
|
1098
1099
|
return {
|
|
1099
|
-
...
|
|
1100
|
-
href:
|
|
1100
|
+
...x.link ? {
|
|
1101
|
+
href: x.link
|
|
1101
1102
|
} : {},
|
|
1102
|
-
[
|
|
1103
|
-
style:
|
|
1103
|
+
[K()]: "builder-column",
|
|
1104
|
+
style: Fe(C(w))
|
|
1104
1105
|
};
|
|
1105
1106
|
}
|
|
1106
|
-
return /* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1107
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1108
|
+
/* @__PURE__ */ V(
|
|
1108
1109
|
"div",
|
|
1109
1110
|
{
|
|
1110
|
-
className:
|
|
1111
|
+
className: $t((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1111
1112
|
style: y(),
|
|
1112
1113
|
children: [
|
|
1113
1114
|
/* @__PURE__ */ s(
|
|
@@ -1118,12 +1119,12 @@ function $t(e) {
|
|
|
1118
1119
|
nonce: e.builderContext.nonce
|
|
1119
1120
|
}
|
|
1120
1121
|
),
|
|
1121
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
1122
|
-
|
|
1122
|
+
(O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
|
|
1123
|
+
de,
|
|
1123
1124
|
{
|
|
1124
|
-
TagName: l(
|
|
1125
|
+
TagName: l(x),
|
|
1125
1126
|
actionAttributes: {},
|
|
1126
|
-
attributes: E(
|
|
1127
|
+
attributes: E(x, w),
|
|
1127
1128
|
children: /* @__PURE__ */ s(
|
|
1128
1129
|
D,
|
|
1129
1130
|
{
|
|
@@ -1135,7 +1136,7 @@ function $t(e) {
|
|
|
1135
1136
|
context: e.builderContext,
|
|
1136
1137
|
registeredComponents: e.builderComponents,
|
|
1137
1138
|
linkComponent: e.builderLinkComponent,
|
|
1138
|
-
blocks:
|
|
1139
|
+
blocks: x.blocks
|
|
1139
1140
|
}
|
|
1140
1141
|
)
|
|
1141
1142
|
},
|
|
@@ -1144,7 +1145,7 @@ function $t(e) {
|
|
|
1144
1145
|
]
|
|
1145
1146
|
}
|
|
1146
1147
|
),
|
|
1147
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1148
|
+
/* @__PURE__ */ s("style", { children: `.div-34f576bb {
|
|
1148
1149
|
display: flex;
|
|
1149
1150
|
line-height: normal;
|
|
1150
1151
|
}` })
|
|
@@ -1184,21 +1185,21 @@ function oe(e) {
|
|
|
1184
1185
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1185
1186
|
}
|
|
1186
1187
|
function jt(e) {
|
|
1187
|
-
var o, r, a, l, c,
|
|
1188
|
+
var o, r, a, l, c, d;
|
|
1188
1189
|
function t() {
|
|
1189
1190
|
var m;
|
|
1190
|
-
const
|
|
1191
|
-
if (!
|
|
1191
|
+
const u = e.image || e.src;
|
|
1192
|
+
if (!u || // We can auto add srcset for cdn.builder.io and shopify
|
|
1192
1193
|
// images, otherwise you can supply this prop manually
|
|
1193
|
-
!(
|
|
1194
|
+
!(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
|
|
1194
1195
|
return e.srcset;
|
|
1195
1196
|
if (!e.noWebp) {
|
|
1196
1197
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1197
1198
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1198
|
-
return console.debug("Removed given srcset"), oe(
|
|
1199
|
+
return console.debug("Removed given srcset"), oe(u);
|
|
1199
1200
|
} else if (e.image && !e.srcset)
|
|
1200
|
-
return oe(
|
|
1201
|
-
return oe(
|
|
1201
|
+
return oe(u);
|
|
1202
|
+
return oe(u);
|
|
1202
1203
|
}
|
|
1203
1204
|
}
|
|
1204
1205
|
function n() {
|
|
@@ -1215,9 +1216,10 @@ function jt(e) {
|
|
|
1215
1216
|
};
|
|
1216
1217
|
return e.aspectRatio ? f : void 0;
|
|
1217
1218
|
}
|
|
1218
|
-
return
|
|
1219
|
-
|
|
1220
|
-
|
|
1219
|
+
return P(() => {
|
|
1220
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
1221
|
+
/* @__PURE__ */ V(R, { children: [
|
|
1222
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1221
1223
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1222
1224
|
/* @__PURE__ */ s(
|
|
1223
1225
|
"img",
|
|
@@ -1231,7 +1233,7 @@ function jt(e) {
|
|
|
1231
1233
|
objectFit: e.backgroundSize || "cover",
|
|
1232
1234
|
...i()
|
|
1233
1235
|
},
|
|
1234
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1236
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
|
|
1235
1237
|
src: e.image,
|
|
1236
1238
|
srcSet: t(),
|
|
1237
1239
|
sizes: e.sizes
|
|
@@ -1241,23 +1243,23 @@ function jt(e) {
|
|
|
1241
1243
|
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1242
1244
|
"div",
|
|
1243
1245
|
{
|
|
1244
|
-
className: "builder-image-sizer div-
|
|
1246
|
+
className: "builder-image-sizer div-2d6925f2",
|
|
1245
1247
|
style: {
|
|
1246
1248
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1247
1249
|
}
|
|
1248
1250
|
}
|
|
1249
1251
|
) : null,
|
|
1250
1252
|
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1251
|
-
!e.fitContent && ((
|
|
1253
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1252
1254
|
] }),
|
|
1253
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1255
|
+
/* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
|
|
1254
1256
|
opacity: 1;
|
|
1255
1257
|
transition: opacity 0.2s ease-in-out;
|
|
1256
|
-
}.div-
|
|
1258
|
+
}.div-2d6925f2 {
|
|
1257
1259
|
width: 100%;
|
|
1258
1260
|
pointer-events: none;
|
|
1259
1261
|
font-size: 0;
|
|
1260
|
-
}.div-
|
|
1262
|
+
}.div-2d6925f2-2 {
|
|
1261
1263
|
display: flex;
|
|
1262
1264
|
flex-direction: column;
|
|
1263
1265
|
align-items: stretch;
|
|
@@ -1416,7 +1418,7 @@ const ae = {
|
|
|
1416
1418
|
}
|
|
1417
1419
|
}, Se = (e) => e.toString();
|
|
1418
1420
|
function Ht(e) {
|
|
1419
|
-
var
|
|
1421
|
+
var u;
|
|
1420
1422
|
const [t, n] = T(() => []);
|
|
1421
1423
|
function i() {
|
|
1422
1424
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1479,7 +1481,7 @@ function Ht(e) {
|
|
|
1479
1481
|
}
|
|
1480
1482
|
return typeof m == "number" && (m = m + 1), m;
|
|
1481
1483
|
}
|
|
1482
|
-
function
|
|
1484
|
+
function d() {
|
|
1483
1485
|
const m = {
|
|
1484
1486
|
order: typeof c() == "number" ? c() : void 0,
|
|
1485
1487
|
...e.grid && {
|
|
@@ -1493,7 +1495,7 @@ function Ht(e) {
|
|
|
1493
1495
|
function f(m) {
|
|
1494
1496
|
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1495
1497
|
}
|
|
1496
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (
|
|
1498
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
|
|
1497
1499
|
/* @__PURE__ */ s(
|
|
1498
1500
|
"div",
|
|
1499
1501
|
{
|
|
@@ -1522,7 +1524,7 @@ function Ht(e) {
|
|
|
1522
1524
|
"div",
|
|
1523
1525
|
{
|
|
1524
1526
|
className: l(g),
|
|
1525
|
-
style:
|
|
1527
|
+
style: d(),
|
|
1526
1528
|
children: /* @__PURE__ */ s(
|
|
1527
1529
|
D,
|
|
1528
1530
|
{
|
|
@@ -1808,15 +1810,15 @@ const qt = {
|
|
|
1808
1810
|
onChange: (e) => {
|
|
1809
1811
|
e.delete("srcset"), e.delete("noWebp");
|
|
1810
1812
|
function n(a, l = 6e4) {
|
|
1811
|
-
return new Promise((c,
|
|
1813
|
+
return new Promise((c, d) => {
|
|
1812
1814
|
const f = document.createElement("img");
|
|
1813
|
-
let
|
|
1815
|
+
let u = !1;
|
|
1814
1816
|
f.onload = () => {
|
|
1815
|
-
|
|
1817
|
+
u = !0, c(f);
|
|
1816
1818
|
}, f.addEventListener("error", (m) => {
|
|
1817
|
-
console.warn("Image load failed", m.error),
|
|
1819
|
+
console.warn("Image load failed", m.error), d(m.error);
|
|
1818
1820
|
}), f.src = a, setTimeout(() => {
|
|
1819
|
-
|
|
1821
|
+
u || d(new Error("Image load timed out"));
|
|
1820
1822
|
}, l);
|
|
1821
1823
|
});
|
|
1822
1824
|
}
|
|
@@ -2166,7 +2168,7 @@ function Zt(e) {
|
|
|
2166
2168
|
function o(a) {
|
|
2167
2169
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2168
2170
|
}
|
|
2169
|
-
return /* @__PURE__ */
|
|
2171
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
2170
2172
|
/* @__PURE__ */ s(
|
|
2171
2173
|
"div",
|
|
2172
2174
|
{
|
|
@@ -2216,7 +2218,8 @@ function Zt(e) {
|
|
|
2216
2218
|
}
|
|
2217
2219
|
const en = {
|
|
2218
2220
|
shouldReceiveBuilderProps: {
|
|
2219
|
-
builderBlock: !1
|
|
2221
|
+
builderBlock: !1,
|
|
2222
|
+
builderContext: !0
|
|
2220
2223
|
},
|
|
2221
2224
|
name: "Text",
|
|
2222
2225
|
static: !0,
|
|
@@ -2237,12 +2240,31 @@ const en = {
|
|
|
2237
2240
|
}
|
|
2238
2241
|
};
|
|
2239
2242
|
function tn(e) {
|
|
2240
|
-
|
|
2243
|
+
function t() {
|
|
2244
|
+
var l;
|
|
2245
|
+
const n = e.builderContext, {
|
|
2246
|
+
context: i,
|
|
2247
|
+
localState: o,
|
|
2248
|
+
rootState: r,
|
|
2249
|
+
rootSetState: a
|
|
2250
|
+
} = n;
|
|
2251
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2252
|
+
/{{([^}]+)}}/g,
|
|
2253
|
+
(c, d) => H({
|
|
2254
|
+
code: d,
|
|
2255
|
+
context: i,
|
|
2256
|
+
localState: o,
|
|
2257
|
+
rootState: r,
|
|
2258
|
+
rootSetState: a,
|
|
2259
|
+
enableCache: !1
|
|
2260
|
+
})
|
|
2261
|
+
);
|
|
2262
|
+
}
|
|
2241
2263
|
return /* @__PURE__ */ s(
|
|
2242
2264
|
"div",
|
|
2243
2265
|
{
|
|
2244
2266
|
className: "builder-text",
|
|
2245
|
-
dangerouslySetInnerHTML: { __html:
|
|
2267
|
+
dangerouslySetInnerHTML: { __html: t() },
|
|
2246
2268
|
style: {
|
|
2247
2269
|
outline: "none"
|
|
2248
2270
|
}
|
|
@@ -2274,28 +2296,28 @@ const nn = {
|
|
|
2274
2296
|
};
|
|
2275
2297
|
function on(e) {
|
|
2276
2298
|
const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
|
|
2277
|
-
return
|
|
2299
|
+
return P(() => {
|
|
2278
2300
|
var l;
|
|
2279
2301
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2280
2302
|
return;
|
|
2281
2303
|
const a = t.current.getElementsByTagName("script");
|
|
2282
2304
|
for (let c = 0; c < a.length; c++) {
|
|
2283
|
-
const
|
|
2284
|
-
if (
|
|
2285
|
-
if (n.includes(
|
|
2305
|
+
const d = a[c];
|
|
2306
|
+
if (d.src) {
|
|
2307
|
+
if (n.includes(d.src))
|
|
2286
2308
|
continue;
|
|
2287
|
-
n.push(
|
|
2309
|
+
n.push(d.src);
|
|
2288
2310
|
const f = document.createElement("script");
|
|
2289
|
-
f.async = !0, f.src =
|
|
2290
|
-
} else if (!
|
|
2311
|
+
f.async = !0, f.src = d.src, document.head.appendChild(f);
|
|
2312
|
+
} else if (!d.type || [
|
|
2291
2313
|
"text/javascript",
|
|
2292
2314
|
"application/javascript",
|
|
2293
2315
|
"application/ecmascript"
|
|
2294
|
-
].includes(
|
|
2295
|
-
if (o.includes(
|
|
2316
|
+
].includes(d.type)) {
|
|
2317
|
+
if (o.includes(d.innerText))
|
|
2296
2318
|
continue;
|
|
2297
2319
|
try {
|
|
2298
|
-
o.push(
|
|
2320
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
2299
2321
|
} catch (f) {
|
|
2300
2322
|
console.warn("`CustomCode`: Error running script:", f);
|
|
2301
2323
|
}
|
|
@@ -2331,22 +2353,22 @@ function sn(e) {
|
|
|
2331
2353
|
function c() {
|
|
2332
2354
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2333
2355
|
return;
|
|
2334
|
-
const
|
|
2335
|
-
for (let f = 0; f <
|
|
2336
|
-
const
|
|
2337
|
-
if (
|
|
2338
|
-
n.push(
|
|
2356
|
+
const d = t.current.getElementsByTagName("script");
|
|
2357
|
+
for (let f = 0; f < d.length; f++) {
|
|
2358
|
+
const u = d[f];
|
|
2359
|
+
if (u.src && !n.includes(u.src)) {
|
|
2360
|
+
n.push(u.src);
|
|
2339
2361
|
const m = document.createElement("script");
|
|
2340
|
-
m.async = !0, m.src =
|
|
2341
|
-
} else if (ln(
|
|
2362
|
+
m.async = !0, m.src = u.src, document.head.appendChild(m);
|
|
2363
|
+
} else if (ln(u) && !o.includes(u.innerText))
|
|
2342
2364
|
try {
|
|
2343
|
-
o.push(
|
|
2365
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
2344
2366
|
} catch (m) {
|
|
2345
2367
|
console.warn("`Embed`: Error running script:", m);
|
|
2346
2368
|
}
|
|
2347
2369
|
}
|
|
2348
2370
|
}
|
|
2349
|
-
return
|
|
2371
|
+
return P(() => {
|
|
2350
2372
|
t.current && !a && (l(!0), c());
|
|
2351
2373
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2352
2374
|
"div",
|
|
@@ -2602,7 +2624,7 @@ const cn = {
|
|
|
2602
2624
|
return i === void 0 || i === e ? n : i;
|
|
2603
2625
|
};
|
|
2604
2626
|
function fn(e) {
|
|
2605
|
-
var
|
|
2627
|
+
var u, m;
|
|
2606
2628
|
const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
|
|
2607
2629
|
function c(g) {
|
|
2608
2630
|
var C, p;
|
|
@@ -2612,8 +2634,8 @@ function fn(e) {
|
|
|
2612
2634
|
};
|
|
2613
2635
|
e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
|
|
2614
2636
|
}
|
|
2615
|
-
function
|
|
2616
|
-
return
|
|
2637
|
+
function d() {
|
|
2638
|
+
return F() && e.previewState || n;
|
|
2617
2639
|
}
|
|
2618
2640
|
function f(g) {
|
|
2619
2641
|
var C;
|
|
@@ -2630,40 +2652,40 @@ function fn(e) {
|
|
|
2630
2652
|
let E;
|
|
2631
2653
|
const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2632
2654
|
let h;
|
|
2633
|
-
const
|
|
2655
|
+
const v = b.name;
|
|
2634
2656
|
if (b instanceof HTMLInputElement)
|
|
2635
2657
|
if (b.type === "radio") {
|
|
2636
2658
|
if (b.checked)
|
|
2637
2659
|
return h = b.name, {
|
|
2638
|
-
key:
|
|
2660
|
+
key: v,
|
|
2639
2661
|
value: h
|
|
2640
2662
|
};
|
|
2641
2663
|
} else if (b.type === "checkbox")
|
|
2642
2664
|
h = b.checked;
|
|
2643
2665
|
else if (b.type === "number" || b.type === "range") {
|
|
2644
|
-
const
|
|
2645
|
-
isNaN(
|
|
2666
|
+
const S = b.valueAsNumber;
|
|
2667
|
+
isNaN(S) || (h = S);
|
|
2646
2668
|
} else
|
|
2647
2669
|
b.type === "file" ? h = b.files : h = b.value;
|
|
2648
2670
|
else
|
|
2649
2671
|
h = b.value;
|
|
2650
2672
|
return {
|
|
2651
|
-
key:
|
|
2673
|
+
key: v,
|
|
2652
2674
|
value: h
|
|
2653
2675
|
};
|
|
2654
2676
|
});
|
|
2655
|
-
let
|
|
2656
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2657
|
-
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (
|
|
2658
|
-
}),
|
|
2677
|
+
let x = e.contentType;
|
|
2678
|
+
if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2679
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
|
|
2680
|
+
}), x !== "application/json")
|
|
2659
2681
|
E = A;
|
|
2660
2682
|
else {
|
|
2661
2683
|
const b = {};
|
|
2662
|
-
Array.from(O).forEach(({ value: h, key:
|
|
2663
|
-
Ve(b,
|
|
2684
|
+
Array.from(O).forEach(({ value: h, key: v }) => {
|
|
2685
|
+
Ve(b, v, h);
|
|
2664
2686
|
}), E = JSON.stringify(b);
|
|
2665
2687
|
}
|
|
2666
|
-
|
|
2688
|
+
x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
|
|
2667
2689
|
const w = new CustomEvent("presubmit", { detail: { body: E } });
|
|
2668
2690
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2669
2691
|
return;
|
|
@@ -2677,17 +2699,17 @@ function fn(e) {
|
|
|
2677
2699
|
).then(
|
|
2678
2700
|
async (b) => {
|
|
2679
2701
|
let h;
|
|
2680
|
-
const
|
|
2681
|
-
if (
|
|
2682
|
-
let
|
|
2683
|
-
|
|
2702
|
+
const v = b.headers.get("content-type");
|
|
2703
|
+
if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2704
|
+
let S = mn(h, e.errorMessagePath);
|
|
2705
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
|
|
2684
2706
|
}
|
|
2685
2707
|
if (r(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2686
|
-
const
|
|
2708
|
+
const S = new CustomEvent("submit:success", {
|
|
2687
2709
|
detail: { res: b, body: h }
|
|
2688
2710
|
});
|
|
2689
2711
|
if (t.current) {
|
|
2690
|
-
if (t.current.dispatchEvent(
|
|
2712
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2691
2713
|
return;
|
|
2692
2714
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2693
2715
|
}
|
|
@@ -2710,9 +2732,9 @@ function fn(e) {
|
|
|
2710
2732
|
);
|
|
2711
2733
|
}
|
|
2712
2734
|
}
|
|
2713
|
-
return /* @__PURE__ */
|
|
2735
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
2714
2736
|
" ",
|
|
2715
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ V(
|
|
2716
2738
|
"form",
|
|
2717
2739
|
{
|
|
2718
2740
|
validate: e.validate,
|
|
@@ -2723,7 +2745,7 @@ function fn(e) {
|
|
|
2723
2745
|
onSubmit: (g) => f(g),
|
|
2724
2746
|
...e.attributes,
|
|
2725
2747
|
children: [
|
|
2726
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (
|
|
2748
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
|
|
2727
2749
|
_,
|
|
2728
2750
|
{
|
|
2729
2751
|
block: g,
|
|
@@ -2733,7 +2755,7 @@ function fn(e) {
|
|
|
2733
2755
|
},
|
|
2734
2756
|
`form-block-${y}`
|
|
2735
2757
|
)) }) : null,
|
|
2736
|
-
|
|
2758
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
2737
2759
|
D,
|
|
2738
2760
|
{
|
|
2739
2761
|
path: "errorMessage",
|
|
@@ -2741,7 +2763,7 @@ function fn(e) {
|
|
|
2741
2763
|
context: e.builderContext
|
|
2742
2764
|
}
|
|
2743
2765
|
) : null,
|
|
2744
|
-
|
|
2766
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
2745
2767
|
D,
|
|
2746
2768
|
{
|
|
2747
2769
|
path: "sendingMessage",
|
|
@@ -2749,8 +2771,8 @@ function fn(e) {
|
|
|
2749
2771
|
context: e.builderContext
|
|
2750
2772
|
}
|
|
2751
2773
|
) : null,
|
|
2752
|
-
|
|
2753
|
-
|
|
2774
|
+
d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2775
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
2754
2776
|
D,
|
|
2755
2777
|
{
|
|
2756
2778
|
path: "successMessage",
|
|
@@ -2823,7 +2845,7 @@ function gn(e) {
|
|
|
2823
2845
|
"input",
|
|
2824
2846
|
{
|
|
2825
2847
|
...e.attributes,
|
|
2826
|
-
key:
|
|
2848
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2827
2849
|
placeholder: e.placeholder,
|
|
2828
2850
|
type: e.type,
|
|
2829
2851
|
name: e.name,
|
|
@@ -2883,7 +2905,7 @@ function pn(e) {
|
|
|
2883
2905
|
{
|
|
2884
2906
|
...e.attributes,
|
|
2885
2907
|
value: e.value,
|
|
2886
|
-
key:
|
|
2908
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2887
2909
|
defaultValue: e.defaultValue,
|
|
2888
2910
|
name: e.name,
|
|
2889
2911
|
required: e.required
|
|
@@ -2997,7 +3019,7 @@ function Cn(e) {
|
|
|
2997
3019
|
src: e.imgSrc || e.image,
|
|
2998
3020
|
...e.attributes
|
|
2999
3021
|
},
|
|
3000
|
-
|
|
3022
|
+
F() && e.imgSrc || "default-key"
|
|
3001
3023
|
);
|
|
3002
3024
|
}
|
|
3003
3025
|
const Tn = {
|
|
@@ -3086,7 +3108,7 @@ const Tn = {
|
|
|
3086
3108
|
}
|
|
3087
3109
|
};
|
|
3088
3110
|
function In(e) {
|
|
3089
|
-
var i, o, r, a, l, c,
|
|
3111
|
+
var i, o, r, a, l, c, d;
|
|
3090
3112
|
function t() {
|
|
3091
3113
|
return {
|
|
3092
3114
|
...e.autoPlay === !0 ? {
|
|
@@ -3111,7 +3133,7 @@ function In(e) {
|
|
|
3111
3133
|
...t()
|
|
3112
3134
|
};
|
|
3113
3135
|
}
|
|
3114
|
-
return /* @__PURE__ */
|
|
3136
|
+
return /* @__PURE__ */ V(
|
|
3115
3137
|
"div",
|
|
3116
3138
|
{
|
|
3117
3139
|
style: {
|
|
@@ -3165,7 +3187,7 @@ function In(e) {
|
|
|
3165
3187
|
children: e.children
|
|
3166
3188
|
}
|
|
3167
3189
|
) : null,
|
|
3168
|
-
(
|
|
3190
|
+
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3169
3191
|
"div",
|
|
3170
3192
|
{
|
|
3171
3193
|
style: {
|
|
@@ -3217,7 +3239,7 @@ const wn = () => [{
|
|
|
3217
3239
|
component: nt,
|
|
3218
3240
|
...qt
|
|
3219
3241
|
}, {
|
|
3220
|
-
component:
|
|
3242
|
+
component: Ft,
|
|
3221
3243
|
...Kt
|
|
3222
3244
|
}, {
|
|
3223
3245
|
component: Dt,
|
|
@@ -3376,7 +3398,7 @@ const Wn = (e, t, n = !0) => {
|
|
|
3376
3398
|
return i;
|
|
3377
3399
|
} while (i = i.parentElement);
|
|
3378
3400
|
return null;
|
|
3379
|
-
},
|
|
3401
|
+
}, $n = (e) => Wn(e, (t) => {
|
|
3380
3402
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3381
3403
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3382
3404
|
}), Te = ({
|
|
@@ -3388,8 +3410,8 @@ const Wn = (e, t, n = !0) => {
|
|
|
3388
3410
|
x: r,
|
|
3389
3411
|
y: a
|
|
3390
3412
|
};
|
|
3391
|
-
},
|
|
3392
|
-
const t = e.target, n = t &&
|
|
3413
|
+
}, Fn = (e) => {
|
|
3414
|
+
const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3393
3415
|
return {
|
|
3394
3416
|
targetBuilderElement: i || void 0,
|
|
3395
3417
|
metadata: {
|
|
@@ -3419,11 +3441,11 @@ font-weight: 400;
|
|
|
3419
3441
|
for (const l in e.files) {
|
|
3420
3442
|
if (!(String(Number(l)) === l))
|
|
3421
3443
|
continue;
|
|
3422
|
-
const
|
|
3423
|
-
|
|
3444
|
+
const d = e.files[l];
|
|
3445
|
+
d && d !== i && (o += `
|
|
3424
3446
|
@font-face {
|
|
3425
3447
|
font-family: "${t}";
|
|
3426
|
-
src: url('${
|
|
3448
|
+
src: url('${d}') format('woff2');
|
|
3427
3449
|
font-display: fallback;
|
|
3428
3450
|
font-weight: ${l};
|
|
3429
3451
|
}
|
|
@@ -3457,26 +3479,26 @@ font-weight: ${l};
|
|
|
3457
3479
|
}
|
|
3458
3480
|
`, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
|
|
3459
3481
|
function Hn(e) {
|
|
3460
|
-
var E, A, O,
|
|
3482
|
+
var E, A, O, x, w, N, b;
|
|
3461
3483
|
const t = ee(null);
|
|
3462
3484
|
function n(h) {
|
|
3463
|
-
var
|
|
3464
|
-
const
|
|
3485
|
+
var S, k;
|
|
3486
|
+
const v = {
|
|
3465
3487
|
...e.builderContextSignal.rootState,
|
|
3466
3488
|
...h
|
|
3467
3489
|
};
|
|
3468
|
-
e.builderContextSignal.rootSetState ? (k = (
|
|
3490
|
+
e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
|
|
3469
3491
|
...I,
|
|
3470
|
-
rootState:
|
|
3492
|
+
rootState: v
|
|
3471
3493
|
}));
|
|
3472
3494
|
}
|
|
3473
3495
|
function i(h) {
|
|
3474
|
-
var
|
|
3475
|
-
const
|
|
3496
|
+
var S, k, I, W, j;
|
|
3497
|
+
const v = {
|
|
3476
3498
|
...e.builderContextSignal.content,
|
|
3477
3499
|
...h,
|
|
3478
3500
|
data: {
|
|
3479
|
-
...(
|
|
3501
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3480
3502
|
...h == null ? void 0 : h.data
|
|
3481
3503
|
},
|
|
3482
3504
|
meta: {
|
|
@@ -3485,9 +3507,9 @@ function Hn(e) {
|
|
|
3485
3507
|
breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3486
3508
|
}
|
|
3487
3509
|
};
|
|
3488
|
-
e.setBuilderContextSignal((
|
|
3489
|
-
|
|
3490
|
-
content:
|
|
3510
|
+
e.setBuilderContextSignal(($) => ({
|
|
3511
|
+
...$,
|
|
3512
|
+
content: v
|
|
3491
3513
|
}));
|
|
3492
3514
|
}
|
|
3493
3515
|
function o() {
|
|
@@ -3504,28 +3526,28 @@ function Hn(e) {
|
|
|
3504
3526
|
model: e.model,
|
|
3505
3527
|
trustedHosts: e.trustedHosts,
|
|
3506
3528
|
callbacks: {
|
|
3507
|
-
configureSdk: (
|
|
3529
|
+
configureSdk: (v) => {
|
|
3508
3530
|
var I;
|
|
3509
|
-
const { breakpoints:
|
|
3510
|
-
!k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) ||
|
|
3531
|
+
const { breakpoints: S, contentId: k } = v;
|
|
3532
|
+
!k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
|
|
3511
3533
|
meta: {
|
|
3512
|
-
breakpoints:
|
|
3534
|
+
breakpoints: S
|
|
3513
3535
|
}
|
|
3514
3536
|
});
|
|
3515
3537
|
},
|
|
3516
|
-
animation: (
|
|
3517
|
-
We(
|
|
3538
|
+
animation: (v) => {
|
|
3539
|
+
We(v);
|
|
3518
3540
|
},
|
|
3519
|
-
contentUpdate: (
|
|
3520
|
-
i(
|
|
3541
|
+
contentUpdate: (v) => {
|
|
3542
|
+
i(v);
|
|
3521
3543
|
}
|
|
3522
3544
|
}
|
|
3523
3545
|
})(h);
|
|
3524
3546
|
}
|
|
3525
3547
|
function c() {
|
|
3526
|
-
var
|
|
3527
|
-
const h = (
|
|
3528
|
-
h &&
|
|
3548
|
+
var v, S;
|
|
3549
|
+
const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
|
|
3550
|
+
h && H({
|
|
3529
3551
|
code: h,
|
|
3530
3552
|
context: e.context || {},
|
|
3531
3553
|
localState: void 0,
|
|
@@ -3537,34 +3559,34 @@ function Hn(e) {
|
|
|
3537
3559
|
enableCache: !1
|
|
3538
3560
|
});
|
|
3539
3561
|
}
|
|
3540
|
-
const [
|
|
3562
|
+
const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
|
|
3541
3563
|
function C(h) {
|
|
3542
|
-
var
|
|
3564
|
+
var v, S;
|
|
3543
3565
|
if (e.builderContextSignal.content) {
|
|
3544
|
-
const k = (
|
|
3566
|
+
const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3545
3567
|
he({
|
|
3546
3568
|
type: "click",
|
|
3547
3569
|
canTrack: Q(e.canTrack),
|
|
3548
3570
|
contentId: I,
|
|
3549
3571
|
apiKey: e.apiKey,
|
|
3550
3572
|
variationId: k !== I ? k : void 0,
|
|
3551
|
-
|
|
3573
|
+
...Fn(h),
|
|
3552
3574
|
unique: !g
|
|
3553
3575
|
});
|
|
3554
3576
|
}
|
|
3555
3577
|
g || y(!0);
|
|
3556
3578
|
}
|
|
3557
3579
|
function p() {
|
|
3558
|
-
var
|
|
3559
|
-
const h = (k = (
|
|
3580
|
+
var v, S, k;
|
|
3581
|
+
const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3560
3582
|
Object.entries(h).forEach(([I, W]) => {
|
|
3561
|
-
if (!W ||
|
|
3583
|
+
if (!W || u[I] || d[I] && !F())
|
|
3562
3584
|
return;
|
|
3563
|
-
|
|
3585
|
+
u[I] = !0;
|
|
3564
3586
|
const j = W.replace(
|
|
3565
3587
|
/{{([^}]+)}}/g,
|
|
3566
|
-
(
|
|
3567
|
-
|
|
3588
|
+
($, He) => String(
|
|
3589
|
+
H({
|
|
3568
3590
|
code: He,
|
|
3569
3591
|
context: e.context || {},
|
|
3570
3592
|
localState: void 0,
|
|
@@ -3574,24 +3596,24 @@ function Hn(e) {
|
|
|
3574
3596
|
})
|
|
3575
3597
|
)
|
|
3576
3598
|
);
|
|
3577
|
-
Xe(j).then((
|
|
3599
|
+
Xe(j).then(($) => $.json()).then(($) => {
|
|
3578
3600
|
n({
|
|
3579
|
-
[I]:
|
|
3580
|
-
}),
|
|
3581
|
-
}).catch((
|
|
3582
|
-
console.error("error fetching dynamic data", W,
|
|
3601
|
+
[I]: $
|
|
3602
|
+
}), d[I] = !0;
|
|
3603
|
+
}).catch(($) => {
|
|
3604
|
+
console.error("error fetching dynamic data", W, $);
|
|
3583
3605
|
}).finally(() => {
|
|
3584
|
-
|
|
3606
|
+
u[I] = !1;
|
|
3585
3607
|
});
|
|
3586
3608
|
});
|
|
3587
3609
|
}
|
|
3588
3610
|
function B() {
|
|
3589
|
-
|
|
3611
|
+
F() && window.dispatchEvent(
|
|
3590
3612
|
new CustomEvent(
|
|
3591
3613
|
"builder:component:stateChange",
|
|
3592
3614
|
{
|
|
3593
3615
|
detail: {
|
|
3594
|
-
state:
|
|
3616
|
+
state: me(e.builderContextSignal.rootState),
|
|
3595
3617
|
ref: {
|
|
3596
3618
|
name: e.model
|
|
3597
3619
|
}
|
|
@@ -3600,10 +3622,10 @@ function Hn(e) {
|
|
|
3600
3622
|
)
|
|
3601
3623
|
);
|
|
3602
3624
|
}
|
|
3603
|
-
return
|
|
3604
|
-
var h,
|
|
3625
|
+
return P(() => {
|
|
3626
|
+
var h, v;
|
|
3605
3627
|
if (M()) {
|
|
3606
|
-
if (
|
|
3628
|
+
if (F() && (window.addEventListener("message", l), _e(), Je({
|
|
3607
3629
|
...e.locale ? {
|
|
3608
3630
|
locale: e.locale
|
|
3609
3631
|
} : {},
|
|
@@ -3623,7 +3645,7 @@ function Hn(e) {
|
|
|
3623
3645
|
"builder:component:stateChangeListenerActivated",
|
|
3624
3646
|
B
|
|
3625
3647
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3626
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (
|
|
3648
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
|
|
3627
3649
|
he({
|
|
3628
3650
|
type: "impression",
|
|
3629
3651
|
canTrack: !0,
|
|
@@ -3632,7 +3654,7 @@ function Hn(e) {
|
|
|
3632
3654
|
variationId: k !== I ? k : void 0
|
|
3633
3655
|
});
|
|
3634
3656
|
}
|
|
3635
|
-
if (Ge() &&
|
|
3657
|
+
if (Ge() && !F()) {
|
|
3636
3658
|
const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
|
|
3637
3659
|
`builder.overrides.${I}`
|
|
3638
3660
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
@@ -3640,35 +3662,35 @@ function Hn(e) {
|
|
|
3640
3662
|
model: e.model,
|
|
3641
3663
|
apiKey: e.apiKey,
|
|
3642
3664
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3643
|
-
}).then((
|
|
3644
|
-
|
|
3665
|
+
}).then(($) => {
|
|
3666
|
+
$ && i($);
|
|
3645
3667
|
});
|
|
3646
3668
|
}
|
|
3647
3669
|
}
|
|
3648
|
-
}, []),
|
|
3670
|
+
}, []), P(() => {
|
|
3649
3671
|
e.apiKey || Z.error(
|
|
3650
3672
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3651
3673
|
), c(), p(), B();
|
|
3652
|
-
}, []),
|
|
3674
|
+
}, []), P(() => {
|
|
3653
3675
|
e.content && i(e.content);
|
|
3654
|
-
}, [e.content]),
|
|
3676
|
+
}, [e.content]), P(() => {
|
|
3655
3677
|
c();
|
|
3656
|
-
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]),
|
|
3678
|
+
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3657
3679
|
p();
|
|
3658
|
-
}, [(
|
|
3680
|
+
}, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
|
|
3659
3681
|
B();
|
|
3660
|
-
}, [e.builderContextSignal.rootState]),
|
|
3682
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3661
3683
|
e.data && n(e.data);
|
|
3662
|
-
}, [e.data]),
|
|
3684
|
+
}, [e.data]), P(() => {
|
|
3663
3685
|
e.locale && n({
|
|
3664
3686
|
locale: e.locale
|
|
3665
3687
|
});
|
|
3666
|
-
}, [e.locale]),
|
|
3688
|
+
}, [e.locale]), P(() => () => {
|
|
3667
3689
|
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3668
3690
|
"builder:component:stateChangeListenerActivated",
|
|
3669
3691
|
B
|
|
3670
3692
|
));
|
|
3671
|
-
}, []), /* @__PURE__ */ s(
|
|
3693
|
+
}, []), /* @__PURE__ */ s(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3672
3694
|
r,
|
|
3673
3695
|
{
|
|
3674
3696
|
ref: t,
|
|
@@ -3735,7 +3757,7 @@ const Kn = ({
|
|
|
3735
3757
|
meta: e == null ? void 0 : e.meta
|
|
3736
3758
|
} : void 0;
|
|
3737
3759
|
function Ie(e) {
|
|
3738
|
-
var c,
|
|
3760
|
+
var c, d, f, u, m, g, y;
|
|
3739
3761
|
const [t, n] = T(
|
|
3740
3762
|
() => {
|
|
3741
3763
|
var C, p;
|
|
@@ -3810,7 +3832,7 @@ function Ie(e) {
|
|
|
3810
3832
|
value: {
|
|
3811
3833
|
registeredComponents: o
|
|
3812
3834
|
},
|
|
3813
|
-
children: /* @__PURE__ */
|
|
3835
|
+
children: /* @__PURE__ */ V(
|
|
3814
3836
|
Hn,
|
|
3815
3837
|
{
|
|
3816
3838
|
nonce: e.nonce,
|
|
@@ -3843,8 +3865,8 @@ function Ie(e) {
|
|
|
3843
3865
|
nonce: e.nonce || "",
|
|
3844
3866
|
isNestedRender: e.isNestedRender,
|
|
3845
3867
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3846
|
-
cssCode: (f = (
|
|
3847
|
-
customFonts: (m = (
|
|
3868
|
+
cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
|
|
3869
|
+
customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
|
|
3848
3870
|
}
|
|
3849
3871
|
),
|
|
3850
3872
|
/* @__PURE__ */ s(
|
|
@@ -3893,8 +3915,8 @@ function _n(e) {
|
|
|
3893
3915
|
canTrack: Q(e.canTrack)
|
|
3894
3916
|
});
|
|
3895
3917
|
}
|
|
3896
|
-
return
|
|
3897
|
-
}, []), /* @__PURE__ */
|
|
3918
|
+
return P(() => {
|
|
3919
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
3898
3920
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
|
|
3899
3921
|
ce,
|
|
3900
3922
|
{
|
|
@@ -3903,7 +3925,7 @@ function _n(e) {
|
|
|
3903
3925
|
nonce: e.nonce || ""
|
|
3904
3926
|
}
|
|
3905
3927
|
) : null,
|
|
3906
|
-
t ? /* @__PURE__ */
|
|
3928
|
+
t ? /* @__PURE__ */ V(R, { children: [
|
|
3907
3929
|
/* @__PURE__ */ s(
|
|
3908
3930
|
ne,
|
|
3909
3931
|
{
|
|
@@ -3994,7 +4016,7 @@ const Jn = async ({
|
|
|
3994
4016
|
});
|
|
3995
4017
|
};
|
|
3996
4018
|
function Yn(e) {
|
|
3997
|
-
var l, c,
|
|
4019
|
+
var l, c, d, f;
|
|
3998
4020
|
function t() {
|
|
3999
4021
|
return "div";
|
|
4000
4022
|
}
|
|
@@ -4002,28 +4024,28 @@ function Yn(e) {
|
|
|
4002
4024
|
return "div";
|
|
4003
4025
|
}
|
|
4004
4026
|
function i() {
|
|
4005
|
-
var
|
|
4027
|
+
var u, m;
|
|
4006
4028
|
return [
|
|
4007
|
-
e.attributes[
|
|
4029
|
+
e.attributes[K()],
|
|
4008
4030
|
"builder-symbol",
|
|
4009
|
-
(
|
|
4031
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4010
4032
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4011
4033
|
].filter(Boolean).join(" ");
|
|
4012
4034
|
}
|
|
4013
4035
|
const [o, r] = T(() => {
|
|
4014
|
-
var
|
|
4015
|
-
return (
|
|
4036
|
+
var u;
|
|
4037
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4016
4038
|
});
|
|
4017
4039
|
function a() {
|
|
4018
4040
|
o || Jn({
|
|
4019
4041
|
symbol: e.symbol,
|
|
4020
4042
|
builderContextValue: e.builderContext
|
|
4021
|
-
}).then((
|
|
4022
|
-
|
|
4043
|
+
}).then((u) => {
|
|
4044
|
+
u && r(u);
|
|
4023
4045
|
});
|
|
4024
4046
|
}
|
|
4025
|
-
return
|
|
4026
|
-
}, []),
|
|
4047
|
+
return P(() => {
|
|
4048
|
+
}, []), P(() => {
|
|
4027
4049
|
a();
|
|
4028
4050
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4029
4051
|
_n,
|
|
@@ -4040,7 +4062,7 @@ function Yn(e) {
|
|
|
4040
4062
|
data: {
|
|
4041
4063
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
4042
4064
|
...e.builderContext.localState,
|
|
4043
|
-
...(
|
|
4065
|
+
...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
|
|
4044
4066
|
},
|
|
4045
4067
|
canTrack: e.builderContext.canTrack,
|
|
4046
4068
|
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
@@ -4053,9 +4075,9 @@ function Yn(e) {
|
|
|
4053
4075
|
}
|
|
4054
4076
|
export {
|
|
4055
4077
|
D as Blocks,
|
|
4056
|
-
|
|
4078
|
+
ue as BuilderContext,
|
|
4057
4079
|
nt as Button,
|
|
4058
|
-
|
|
4080
|
+
Ft as Columns,
|
|
4059
4081
|
_n as Content,
|
|
4060
4082
|
Dt as Fragment,
|
|
4061
4083
|
jt as Image,
|