@builder.io/sdk-react 4.2.0 → 4.2.2
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 +17 -17
- package/lib/browser/blocks-exports.mjs +759 -740
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +6 -5
- package/lib/browser/server-entry-06504dba.cjs +2 -0
- package/lib/browser/{server-entry-065ec411.js → server-entry-074665de.js} +24 -13
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +7 -6
- package/lib/edge/{accordion-c239771d.cjs → accordion-0768e15a.cjs} +1 -1
- package/lib/edge/{accordion-79f6d62c.js → accordion-d3831f48.js} +1 -1
- package/lib/edge/{blocks-3cb3a9cd.js → blocks-0269007e.js} +105 -106
- package/lib/edge/{blocks-56f79850.cjs → blocks-2af1d7c9.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-759b43fb.cjs → button-050f4fef.cjs} +1 -1
- package/lib/edge/{button-6dee05c9.js → button-a478ff1a.js} +2 -2
- package/lib/edge/{columns-2743498a.js → columns-0b3181f1.js} +3 -3
- package/lib/edge/{columns-a29ec0ac.cjs → columns-25375990.cjs} +1 -1
- package/lib/edge/{content-variants-4d5a1e3c.js → content-variants-0dd65b50.js} +426 -415
- package/lib/edge/content-variants-4cab7215.cjs +302 -0
- package/lib/edge/{custom-code-6129bd8c.cjs → custom-code-eb5aedd2.cjs} +1 -1
- package/lib/edge/{custom-code-8034fac0.js → custom-code-f7a0f1c1.js} +1 -1
- package/lib/edge/{embed-b2ea5150.cjs → embed-69114c35.cjs} +1 -1
- package/lib/edge/{embed-f5b10eeb.js → embed-e4979560.js} +1 -1
- package/lib/edge/{form-14942d4f.js → form-30fba682.js} +27 -22
- package/lib/edge/form-7b4bd399.cjs +1 -0
- package/lib/edge/{get-class-prop-name-f6a63f4a.js → get-class-prop-name-770bdff2.js} +1 -1
- package/lib/edge/{get-class-prop-name-7e739c9f.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
- package/lib/edge/{img-ba2ef9ee.js → img-3bb375bf.js} +1 -1
- package/lib/edge/{img-f33a2e42.cjs → img-ddf74e12.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +4 -3
- package/lib/edge/{input-c2f95825.cjs → input-a6caf021.cjs} +1 -1
- package/lib/edge/{input-7089e95f.js → input-e4a9fe0b.js} +1 -1
- package/lib/edge/{personalization-container-eb1ecef2.js → personalization-container-64f3cd71.js} +4 -4
- package/lib/edge/{personalization-container-794b3939.cjs → personalization-container-f7030f08.cjs} +1 -1
- package/lib/edge/{select-af0bb9fe.cjs → select-c217566c.cjs} +1 -1
- package/lib/edge/{select-8f01592a.js → select-c59c9ac6.js} +1 -1
- package/lib/edge/server-entry-67200cf1.cjs +2 -0
- package/lib/edge/{server-entry-7c65c9a8.js → server-entry-fb5f2b80.js} +22 -11
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +7 -6
- package/lib/edge/{slot-2638fd6d.js → slot-26ec2911.js} +3 -3
- package/lib/edge/{slot-db37860e.cjs → slot-ccd946e2.cjs} +1 -1
- package/lib/edge/{symbol-7faca118.js → symbol-10cb2f77.js} +26 -23
- package/lib/edge/symbol-4548e942.cjs +1 -0
- package/lib/edge/tabs-82a9170c.cjs +1 -0
- package/lib/edge/{tabs-2eee6422.js → tabs-f9110171.js} +24 -23
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +919 -900
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -5
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-581dd491.js → server-entry-83d3751d.js} +24 -13
- package/lib/node/server-entry-d40e4b66.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +7 -6
- package/lib/node/{setIvm-2eb44b9d.cjs → setIvm-0a5b2ba2.cjs} +1 -1
- package/lib/node/{setIvm-8d02dc72.js → setIvm-596668c3.js} +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-f461467e.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ed3fa1f9.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/register.d.ts +18 -0
- package/types/server-index.d.ts +1 -1
- package/lib/browser/server-entry-09953757.cjs +0 -2
- package/lib/edge/content-variants-bdf1748b.cjs +0 -302
- package/lib/edge/form-26c3a03e.cjs +0 -1
- package/lib/edge/server-entry-142a50e9.cjs +0 -2
- package/lib/edge/symbol-630b9a57.cjs +0 -1
- package/lib/edge/tabs-502123df.cjs +0 -1
- package/lib/node/server-entry-375d06e8.cjs +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser as
|
|
3
|
-
import { setClientUserAttributes as Mi } from "./server-entry-
|
|
4
|
-
import { jsx as s, Fragment as
|
|
2
|
+
import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as le, isEditing as U, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as lt, createRegisterComponentMessage as st, getCookieSync as ct, _track as Te, fetchOneEntry as Le, createEditorListener as ut, serializeIncludingFunctions as Ie, handleABTestingSync as dt } from "./server-entry-83d3751d.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-83d3751d.js";
|
|
4
|
+
import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
|
|
5
5
|
import * as mt from "react";
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as ft, flattenState as ht, runInNode as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-
|
|
6
|
+
import { createContext as Oe, useEffect as N, useState as k, useRef as z, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ft, flattenState as ht, runInNode as bt, parseCode as gt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-596668c3.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-180c3315.js";
|
|
9
9
|
const vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && vt.has(e.toLowerCase());
|
|
10
10
|
function pe(e) {
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
11
|
+
return /* @__PURE__ */ s(P, { children: xt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { 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 }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const J = () => {
|
|
14
14
|
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
@@ -28,7 +28,7 @@ function St(e) {
|
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[J()]: `${e.link ? "" : "builder-button"} ${e.attributes[J()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -48,7 +48,7 @@ function St(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const ve =
|
|
51
|
+
const ve = Oe({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,8 +63,8 @@ const ve = Le({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}), He =
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
66
|
+
}), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, a) => r != null ? r[a] : r, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
69
|
}, kt = ({
|
|
70
70
|
code: e,
|
|
@@ -72,34 +72,34 @@ const ve = Le({
|
|
|
72
72
|
context: n,
|
|
73
73
|
event: i,
|
|
74
74
|
localState: r,
|
|
75
|
-
rootSetState:
|
|
76
|
-
rootState:
|
|
75
|
+
rootSetState: a,
|
|
76
|
+
rootState: o
|
|
77
77
|
}) => {
|
|
78
78
|
const l = ft({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
82
|
state: ht({
|
|
83
|
-
rootState:
|
|
83
|
+
rootState: o,
|
|
84
84
|
localState: r,
|
|
85
|
-
rootSetState:
|
|
85
|
+
rootSetState: a
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
89
|
-
}, Ct = (e) =>
|
|
89
|
+
}, Ct = (e) => G() || pt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ? kt(e) :
|
|
92
|
-
var t, n, i, r,
|
|
93
|
-
return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
91
|
+
}) ? kt(e) : bt(e), Tt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, It = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, wt = (e) => {
|
|
92
|
+
var t, n, i, r, a, o;
|
|
93
|
+
return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = It.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function Q({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
100
|
rootSetState: r,
|
|
101
|
-
event:
|
|
102
|
-
isExpression:
|
|
101
|
+
event: a,
|
|
102
|
+
isExpression: o = !0
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
@@ -110,20 +110,20 @@ function J({
|
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
112
|
const c = {
|
|
113
|
-
code:
|
|
114
|
-
isExpression:
|
|
113
|
+
code: gt(e, {
|
|
114
|
+
isExpression: o
|
|
115
115
|
}),
|
|
116
116
|
builder: yt(),
|
|
117
117
|
context: t,
|
|
118
|
-
event:
|
|
118
|
+
event: a,
|
|
119
119
|
rootSetState: r,
|
|
120
120
|
rootState: i,
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
124
|
return Ct(c);
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
125
|
+
} catch (d) {
|
|
126
|
+
ee.error("Failed code evaluation: " + d.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
@@ -142,8 +142,8 @@ const Rt = (e, t) => {
|
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r,
|
|
146
|
-
code:
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, a) => Q({
|
|
146
|
+
code: a,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
149
149
|
rootState: t.rootState,
|
|
@@ -159,19 +159,19 @@ function Pt(e, ...t) {
|
|
|
159
159
|
}
|
|
160
160
|
function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
|
-
t(e, (
|
|
163
|
-
n !== null && i !== null && (n[i] =
|
|
162
|
+
t(e, (a) => {
|
|
163
|
+
n !== null && i !== null && (n[i] = a);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((
|
|
168
|
-
t(o, (c) => {
|
|
169
|
-
e[a] = c;
|
|
170
|
-
}), oe(o, t, e, a, r);
|
|
171
|
-
}) : Object.entries(e).forEach(([o, a]) => {
|
|
167
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((a, o) => {
|
|
172
168
|
t(a, (c) => {
|
|
173
169
|
e[o] = c;
|
|
174
170
|
}), oe(a, t, e, o, r);
|
|
171
|
+
}) : Object.entries(e).forEach(([a, o]) => {
|
|
172
|
+
t(o, (c) => {
|
|
173
|
+
e[a] = c;
|
|
174
|
+
}), oe(o, t, e, a, r);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
177
|
function qe(e) {
|
|
@@ -198,16 +198,16 @@ function Bt(e, t) {
|
|
|
198
198
|
var n, i;
|
|
199
199
|
return (n = e.component) != null && n.options && Vt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = At(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ge(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => ge(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
213
|
const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) => {
|
|
@@ -223,7 +223,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = ge(Pt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -245,18 +245,18 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const
|
|
249
|
-
for (const
|
|
250
|
-
const l = e.bindings[
|
|
248
|
+
const a = $t(e);
|
|
249
|
+
for (const o in e.bindings) {
|
|
250
|
+
const l = e.bindings[o], c = Q({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
254
|
rootSetState: r,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
Ue(
|
|
257
|
+
Ue(a, o, c);
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return a;
|
|
260
260
|
};
|
|
261
261
|
function Dt({
|
|
262
262
|
block: e,
|
|
@@ -265,39 +265,39 @@ function Dt({
|
|
|
265
265
|
rootState: i,
|
|
266
266
|
rootSetState: r
|
|
267
267
|
}) {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
block:
|
|
268
|
+
let a = e;
|
|
269
|
+
return a = Wt({
|
|
270
|
+
block: a,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
273
|
rootSetState: r,
|
|
274
274
|
context: t
|
|
275
|
-
}),
|
|
275
|
+
}), a = Bt(a, i.locale), a;
|
|
276
276
|
}
|
|
277
277
|
const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
278
|
function Ft(e, t, n = {}) {
|
|
279
|
-
let i, r,
|
|
279
|
+
let i, r, a, o = null, l = 0;
|
|
280
280
|
const c = function() {
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
|
-
const
|
|
285
|
-
!l && n.leading === !1 && (l =
|
|
286
|
-
const
|
|
287
|
-
return i = this, r = arguments,
|
|
284
|
+
const d = Date.now();
|
|
285
|
+
!l && n.leading === !1 && (l = d);
|
|
286
|
+
const h = t - (d - l);
|
|
287
|
+
return i = this, r = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, a = e.apply(i, r), o || (i = r = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), a;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function X(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
293
|
const r = arguments[i];
|
|
294
294
|
if (r != null)
|
|
295
|
-
for (const
|
|
296
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
295
|
+
for (const a in r)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Lt(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
@@ -312,12 +312,12 @@ function je(e) {
|
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
314
|
function ze(e, t) {
|
|
315
|
-
const n =
|
|
316
|
-
for (const l of
|
|
315
|
+
const n = Ot(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
|
|
316
|
+
for (const l of o)
|
|
317
317
|
for (const c of n)
|
|
318
318
|
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Ot(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
@@ -331,8 +331,8 @@ function Ke(e) {
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
334
|
+
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
@@ -347,37 +347,37 @@ function _t(e) {
|
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
348
|
ze(e, n);
|
|
349
349
|
let i = !1, r = !1;
|
|
350
|
-
function
|
|
350
|
+
function a() {
|
|
351
351
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
352
|
-
|
|
352
|
+
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
353
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !r && !l(n) && (i = !1,
|
|
355
|
+
})) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const o = Ft(a, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
|
-
function l(
|
|
361
|
-
const
|
|
362
|
-
return
|
|
360
|
+
function l(h) {
|
|
361
|
+
const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
362
|
+
return g.bottom > f && g.top < u - f;
|
|
363
363
|
}
|
|
364
364
|
const c = e.steps[0].styles;
|
|
365
|
-
function
|
|
366
|
-
|
|
365
|
+
function d() {
|
|
366
|
+
X(n.style, c);
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
d(), setTimeout(() => {
|
|
369
369
|
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
-
}), document.addEventListener("scroll",
|
|
370
|
+
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
|
-
}),
|
|
373
|
+
}), a();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
const Je = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
378
|
return `${se(n)}: ${i};`;
|
|
379
|
-
}).filter(
|
|
380
|
-
`),
|
|
379
|
+
}).filter(be), Ut = (e) => Je(e).join(`
|
|
380
|
+
`), Y = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
@@ -421,8 +421,8 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
423
423
|
}) => {
|
|
424
|
-
var
|
|
425
|
-
const i = (
|
|
424
|
+
var a;
|
|
425
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
428
|
const r = t[i];
|
|
@@ -443,7 +443,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const r =
|
|
446
|
+
const r = Q({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
@@ -452,16 +452,16 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
452
452
|
});
|
|
453
453
|
if (!Array.isArray(r))
|
|
454
454
|
return;
|
|
455
|
-
const
|
|
456
|
-
return r.map((c,
|
|
455
|
+
const a = n.collection.split(".").pop(), o = n.itemName || (a ? a + "Item" : "item");
|
|
456
|
+
return r.map((c, d) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
|
-
$index:
|
|
461
|
+
$index: d,
|
|
462
462
|
$item: c,
|
|
463
|
-
[
|
|
464
|
-
[`$${
|
|
463
|
+
[o]: c,
|
|
464
|
+
[`$${o}Index`]: d
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
@@ -474,7 +474,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
474
474
|
}, Kt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !Qe(o, n)))
|
|
478
478
|
} : {};
|
|
479
479
|
}, Jt = (e, t) => {
|
|
480
480
|
var n;
|
|
@@ -526,17 +526,17 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
526
526
|
}
|
|
527
527
|
if (!i || !r)
|
|
528
528
|
return t;
|
|
529
|
-
const
|
|
529
|
+
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
530
|
t.small = {
|
|
531
531
|
max: i,
|
|
532
|
-
min:
|
|
533
|
-
default:
|
|
532
|
+
min: a,
|
|
533
|
+
default: a + 1
|
|
534
534
|
};
|
|
535
|
-
const
|
|
535
|
+
const o = t.small.max + 1;
|
|
536
536
|
t.medium = {
|
|
537
537
|
max: r,
|
|
538
|
-
min:
|
|
539
|
-
default:
|
|
538
|
+
min: o,
|
|
539
|
+
default: o + 1
|
|
540
540
|
};
|
|
541
541
|
const l = t.medium.max + 1;
|
|
542
542
|
return t.large = {
|
|
@@ -546,7 +546,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
546
546
|
default: l + 1
|
|
547
547
|
}, t;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function te(e) {
|
|
550
550
|
return /* @__PURE__ */ s(
|
|
551
551
|
"style",
|
|
552
552
|
{
|
|
@@ -559,64 +559,64 @@ function ee(e) {
|
|
|
559
559
|
function Qt(e) {
|
|
560
560
|
function t() {
|
|
561
561
|
const i = e.block;
|
|
562
|
-
return
|
|
562
|
+
return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var
|
|
566
|
-
const i = e.block, r = i.responsiveStyles,
|
|
567
|
-
((
|
|
568
|
-
), l = !!((
|
|
569
|
-
if (!
|
|
565
|
+
var T, E, _, H, q;
|
|
566
|
+
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = Xe(
|
|
567
|
+
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
568
|
+
), l = !!((_ = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
569
|
+
if (!u)
|
|
570
570
|
return "";
|
|
571
|
-
const
|
|
572
|
-
className:
|
|
571
|
+
const x = c ? Y({
|
|
572
|
+
className: u,
|
|
573
573
|
styles: c
|
|
574
|
-
}) : "",
|
|
575
|
-
className:
|
|
576
|
-
styles:
|
|
574
|
+
}) : "", f = d ? Y({
|
|
575
|
+
className: u,
|
|
576
|
+
styles: d,
|
|
577
577
|
mediaQuery: ue(
|
|
578
578
|
"medium",
|
|
579
|
-
|
|
579
|
+
o
|
|
580
580
|
)
|
|
581
|
-
}) : "",
|
|
582
|
-
className:
|
|
583
|
-
styles:
|
|
581
|
+
}) : "", m = h ? Y({
|
|
582
|
+
className: u,
|
|
583
|
+
styles: h,
|
|
584
584
|
mediaQuery: ue(
|
|
585
585
|
"small",
|
|
586
|
-
|
|
586
|
+
o
|
|
587
587
|
)
|
|
588
|
-
}) : "",
|
|
589
|
-
className:
|
|
590
|
-
styles:
|
|
588
|
+
}) : "", y = g && l ? Y({
|
|
589
|
+
className: u,
|
|
590
|
+
styles: g,
|
|
591
591
|
mediaQuery: ue(
|
|
592
592
|
"xsmall",
|
|
593
|
-
|
|
593
|
+
o
|
|
594
594
|
)
|
|
595
|
-
}) : "",
|
|
595
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
596
596
|
let S = "";
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
S =
|
|
600
|
-
className: `${
|
|
597
|
+
if (b) {
|
|
598
|
+
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
599
|
+
S = Y({
|
|
600
|
+
className: `${u}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${
|
|
604
|
-
|
|
602
|
+
...p,
|
|
603
|
+
transition: `all ${b.duration}s ${se(
|
|
604
|
+
b.easing
|
|
605
605
|
)}`,
|
|
606
|
-
transitionDelay:
|
|
606
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
607
607
|
}
|
|
608
608
|
}) || "";
|
|
609
609
|
}
|
|
610
610
|
return [
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
611
|
+
x,
|
|
612
|
+
f,
|
|
613
|
+
m,
|
|
614
|
+
y,
|
|
615
615
|
S
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
|
-
return /* @__PURE__ */ s(
|
|
619
|
-
|
|
618
|
+
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
619
|
+
te,
|
|
620
620
|
{
|
|
621
621
|
id: "builderio-block",
|
|
622
622
|
styles: n(),
|
|
@@ -627,7 +627,7 @@ function Qt(e) {
|
|
|
627
627
|
function Yt(e) {
|
|
628
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
629
|
}
|
|
630
|
-
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) =>
|
|
630
|
+
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
|
|
631
631
|
code: e,
|
|
632
632
|
context: t.context,
|
|
633
633
|
localState: t.localState,
|
|
@@ -642,18 +642,18 @@ function Ze(e) {
|
|
|
642
642
|
for (const r in n) {
|
|
643
643
|
if (!n.hasOwnProperty(r))
|
|
644
644
|
continue;
|
|
645
|
-
const
|
|
646
|
-
let
|
|
645
|
+
const a = n[r];
|
|
646
|
+
let o = Xt(r);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
648
|
switch (F) {
|
|
649
649
|
case "vue":
|
|
650
|
-
|
|
650
|
+
o = o.replace("v-on:", "");
|
|
651
651
|
break;
|
|
652
652
|
case "svelte":
|
|
653
|
-
|
|
653
|
+
o = o.replace("on:", "");
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
t[
|
|
656
|
+
t[o] = Zt(a, e);
|
|
657
657
|
}
|
|
658
658
|
return t;
|
|
659
659
|
}
|
|
@@ -678,7 +678,7 @@ function xe({
|
|
|
678
678
|
block: e,
|
|
679
679
|
context: t
|
|
680
680
|
}),
|
|
681
|
-
[
|
|
681
|
+
[J()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
682
|
};
|
|
683
683
|
return en({
|
|
684
684
|
properties: n,
|
|
@@ -708,12 +708,12 @@ function nn(e) {
|
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
710
|
function rn(e) {
|
|
711
|
-
return
|
|
712
|
-
}, []), /* @__PURE__ */ s(
|
|
711
|
+
return N(() => {
|
|
712
|
+
}, []), /* @__PURE__ */ s(P, { children: e.children });
|
|
713
713
|
}
|
|
714
714
|
function an(e) {
|
|
715
715
|
var i, r;
|
|
716
|
-
|
|
716
|
+
k(() => 0);
|
|
717
717
|
function t() {
|
|
718
718
|
return e.includeBlockProps ? {
|
|
719
719
|
...xe({
|
|
@@ -732,8 +732,8 @@ function an(e) {
|
|
|
732
732
|
function n() {
|
|
733
733
|
return e.wrapperProps;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
736
|
-
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(
|
|
735
|
+
return N(() => {
|
|
736
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
737
737
|
rn,
|
|
738
738
|
{
|
|
739
739
|
load: e.Wrapper.load,
|
|
@@ -750,8 +750,8 @@ const on = ({
|
|
|
750
750
|
context: n,
|
|
751
751
|
componentRef: i,
|
|
752
752
|
includeBlockProps: r,
|
|
753
|
-
isInteractive:
|
|
754
|
-
contextValue:
|
|
753
|
+
isInteractive: a,
|
|
754
|
+
contextValue: o
|
|
755
755
|
}) => {
|
|
756
756
|
const l = {
|
|
757
757
|
...e,
|
|
@@ -762,11 +762,11 @@ const on = ({
|
|
|
762
762
|
...r ? {
|
|
763
763
|
attributes: xe({
|
|
764
764
|
block: t,
|
|
765
|
-
context:
|
|
765
|
+
context: o
|
|
766
766
|
})
|
|
767
767
|
} : {}
|
|
768
768
|
};
|
|
769
|
-
return
|
|
769
|
+
return a ? {
|
|
770
770
|
Wrapper: i,
|
|
771
771
|
block: t,
|
|
772
772
|
context: n,
|
|
@@ -776,12 +776,11 @@ const on = ({
|
|
|
776
776
|
};
|
|
777
777
|
function Re(e) {
|
|
778
778
|
var i;
|
|
779
|
-
|
|
780
|
-
const [t, n] =
|
|
779
|
+
k(() => !1);
|
|
780
|
+
const [t, n] = k(
|
|
781
781
|
() => e.isInteractive ? an : e.componentRef
|
|
782
782
|
);
|
|
783
|
-
return
|
|
784
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
783
|
+
return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
785
784
|
t,
|
|
786
785
|
{
|
|
787
786
|
...on({
|
|
@@ -794,7 +793,7 @@ function Re(e) {
|
|
|
794
793
|
isInteractive: e.isInteractive,
|
|
795
794
|
contextValue: e.context
|
|
796
795
|
}),
|
|
797
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
796
|
+
children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
798
797
|
ce,
|
|
799
798
|
{
|
|
800
799
|
block: r,
|
|
@@ -803,13 +802,13 @@ function Re(e) {
|
|
|
803
802
|
linkComponent: e.linkComponent
|
|
804
803
|
},
|
|
805
804
|
r.id
|
|
806
|
-
))
|
|
805
|
+
)) }) : null
|
|
807
806
|
}
|
|
808
807
|
) }) : null });
|
|
809
808
|
}
|
|
810
809
|
function Pe(e) {
|
|
811
|
-
const [t, n] =
|
|
812
|
-
return
|
|
810
|
+
const [t, n] = k(() => e.repeatContext);
|
|
811
|
+
return N(() => {
|
|
813
812
|
n(e.repeatContext);
|
|
814
813
|
}, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
814
|
ce,
|
|
@@ -822,64 +821,64 @@ function Pe(e) {
|
|
|
822
821
|
) });
|
|
823
822
|
}
|
|
824
823
|
function ce(e) {
|
|
825
|
-
var
|
|
824
|
+
var h, g, u, x;
|
|
826
825
|
function t() {
|
|
827
826
|
return jt({
|
|
828
827
|
block: e.block,
|
|
829
828
|
context: e.context
|
|
830
829
|
});
|
|
831
830
|
}
|
|
832
|
-
const [n, i] =
|
|
831
|
+
const [n, i] = k(() => ({
|
|
833
832
|
value: null,
|
|
834
833
|
update: !1
|
|
835
834
|
}));
|
|
836
835
|
function r() {
|
|
837
|
-
var
|
|
836
|
+
var m;
|
|
838
837
|
if (n.value && !n.update && !le())
|
|
839
838
|
return n.value;
|
|
840
|
-
const
|
|
839
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Dt({
|
|
841
840
|
block: e.block,
|
|
842
841
|
localState: e.context.localState,
|
|
843
842
|
rootState: e.context.rootState,
|
|
844
843
|
rootSetState: e.context.rootSetState,
|
|
845
844
|
context: e.context.context
|
|
846
845
|
});
|
|
847
|
-
return n.value =
|
|
846
|
+
return n.value = f, n.update = !1, f;
|
|
848
847
|
}
|
|
849
|
-
function
|
|
848
|
+
function a() {
|
|
850
849
|
return qt({
|
|
851
850
|
block: r(),
|
|
852
851
|
registeredComponents: e.registeredComponents,
|
|
853
852
|
model: e.context.model
|
|
854
853
|
});
|
|
855
854
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
return e.block.tagName === "a" || ((
|
|
855
|
+
function o() {
|
|
856
|
+
var m;
|
|
857
|
+
return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
858
|
}
|
|
860
859
|
function l() {
|
|
861
|
-
var
|
|
862
|
-
if ((
|
|
863
|
-
return !!((
|
|
864
|
-
const
|
|
865
|
-
return ("show" in r() ? r().show : !0) && !
|
|
860
|
+
var y, b;
|
|
861
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
862
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
863
|
+
const f = "hide" in r() ? r().hide : !1;
|
|
864
|
+
return ("show" in r() ? r().show : !0) && !f;
|
|
866
865
|
}
|
|
867
866
|
function c() {
|
|
868
|
-
var
|
|
869
|
-
return !((
|
|
867
|
+
var m, y;
|
|
868
|
+
return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
|
|
870
869
|
}
|
|
871
|
-
function
|
|
872
|
-
var
|
|
870
|
+
function d() {
|
|
871
|
+
var f, m, y, b;
|
|
873
872
|
return {
|
|
874
|
-
blockChildren: (
|
|
875
|
-
componentRef: (
|
|
873
|
+
blockChildren: (f = r().children) != null ? f : [],
|
|
874
|
+
componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
|
|
876
875
|
componentOptions: {
|
|
877
876
|
...Et(r(), e.context),
|
|
878
|
-
...Jt(
|
|
879
|
-
...Gt(
|
|
880
|
-
...zt(
|
|
877
|
+
...Jt(a(), r()),
|
|
878
|
+
...Gt(a(), e.context),
|
|
879
|
+
...zt(a(), e.linkComponent),
|
|
881
880
|
...Kt(
|
|
882
|
-
|
|
881
|
+
a(),
|
|
883
882
|
e.registeredComponents,
|
|
884
883
|
e.context.model
|
|
885
884
|
)
|
|
@@ -888,83 +887,83 @@ function ce(e) {
|
|
|
888
887
|
linkComponent: e.linkComponent,
|
|
889
888
|
registeredComponents: e.registeredComponents,
|
|
890
889
|
builderBlock: r(),
|
|
891
|
-
includeBlockProps: ((
|
|
892
|
-
isInteractive: !((
|
|
890
|
+
includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
|
|
891
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && F === "rsc")
|
|
893
892
|
};
|
|
894
893
|
}
|
|
895
|
-
return
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...
|
|
900
|
-
elementId:
|
|
894
|
+
return N(() => {
|
|
895
|
+
const f = r().id, m = r().animations;
|
|
896
|
+
m && f && Lt(
|
|
897
|
+
m.map((y) => ({
|
|
898
|
+
...y,
|
|
899
|
+
elementId: f
|
|
901
900
|
}))
|
|
902
901
|
);
|
|
903
|
-
}, []),
|
|
902
|
+
}, []), N(() => {
|
|
904
903
|
n.update = !0;
|
|
905
|
-
}), /* @__PURE__ */ s(
|
|
904
|
+
}), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
|
|
906
905
|
/* @__PURE__ */ s(Qt, { block: r(), context: e.context }),
|
|
907
|
-
(
|
|
906
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
908
907
|
Pe,
|
|
909
908
|
{
|
|
910
|
-
repeatContext:
|
|
911
|
-
block:
|
|
909
|
+
repeatContext: f.context,
|
|
910
|
+
block: f.block,
|
|
912
911
|
registeredComponents: e.registeredComponents,
|
|
913
912
|
linkComponent: e.linkComponent
|
|
914
913
|
},
|
|
915
|
-
Ee(
|
|
914
|
+
Ee(m)
|
|
916
915
|
)) }) : /* @__PURE__ */ s(
|
|
917
916
|
Re,
|
|
918
917
|
{
|
|
919
|
-
componentRef:
|
|
920
|
-
componentOptions:
|
|
921
|
-
blockChildren:
|
|
922
|
-
context:
|
|
923
|
-
registeredComponents:
|
|
924
|
-
linkComponent:
|
|
925
|
-
builderBlock:
|
|
926
|
-
includeBlockProps:
|
|
927
|
-
isInteractive:
|
|
918
|
+
componentRef: d().componentRef,
|
|
919
|
+
componentOptions: d().componentOptions,
|
|
920
|
+
blockChildren: d().blockChildren,
|
|
921
|
+
context: d().context,
|
|
922
|
+
registeredComponents: d().registeredComponents,
|
|
923
|
+
linkComponent: d().linkComponent,
|
|
924
|
+
builderBlock: d().builderBlock,
|
|
925
|
+
includeBlockProps: d().includeBlockProps,
|
|
926
|
+
isInteractive: d().isInteractive
|
|
928
927
|
}
|
|
929
|
-
) : /* @__PURE__ */ s(
|
|
928
|
+
) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
930
929
|
Pe,
|
|
931
930
|
{
|
|
932
|
-
repeatContext:
|
|
933
|
-
block:
|
|
931
|
+
repeatContext: f.context,
|
|
932
|
+
block: f.block,
|
|
934
933
|
registeredComponents: e.registeredComponents,
|
|
935
934
|
linkComponent: e.linkComponent
|
|
936
935
|
},
|
|
937
|
-
Ee(
|
|
938
|
-
)) }) : /* @__PURE__ */
|
|
936
|
+
Ee(m)
|
|
937
|
+
)) }) : /* @__PURE__ */ D(
|
|
939
938
|
nn,
|
|
940
939
|
{
|
|
941
|
-
Wrapper:
|
|
940
|
+
Wrapper: o(),
|
|
942
941
|
block: r(),
|
|
943
942
|
context: e.context,
|
|
944
943
|
children: [
|
|
945
944
|
/* @__PURE__ */ s(
|
|
946
945
|
Re,
|
|
947
946
|
{
|
|
948
|
-
componentRef:
|
|
949
|
-
componentOptions:
|
|
950
|
-
blockChildren:
|
|
951
|
-
context:
|
|
952
|
-
registeredComponents:
|
|
953
|
-
linkComponent:
|
|
954
|
-
builderBlock:
|
|
955
|
-
includeBlockProps:
|
|
956
|
-
isInteractive:
|
|
947
|
+
componentRef: d().componentRef,
|
|
948
|
+
componentOptions: d().componentOptions,
|
|
949
|
+
blockChildren: d().blockChildren,
|
|
950
|
+
context: d().context,
|
|
951
|
+
registeredComponents: d().registeredComponents,
|
|
952
|
+
linkComponent: d().linkComponent,
|
|
953
|
+
builderBlock: d().builderBlock,
|
|
954
|
+
includeBlockProps: d().includeBlockProps,
|
|
955
|
+
isInteractive: d().isInteractive
|
|
957
956
|
}
|
|
958
957
|
),
|
|
959
|
-
(
|
|
958
|
+
(g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
960
959
|
ce,
|
|
961
960
|
{
|
|
962
|
-
block:
|
|
961
|
+
block: f,
|
|
963
962
|
registeredComponents: e.registeredComponents,
|
|
964
963
|
linkComponent: e.linkComponent,
|
|
965
964
|
context: e.context
|
|
966
965
|
},
|
|
967
|
-
|
|
966
|
+
f.id
|
|
968
967
|
))
|
|
969
968
|
]
|
|
970
969
|
}
|
|
@@ -972,25 +971,25 @@ function ce(e) {
|
|
|
972
971
|
] }) : null });
|
|
973
972
|
}
|
|
974
973
|
function ln(e) {
|
|
975
|
-
const t =
|
|
976
|
-
|
|
974
|
+
const t = z(null);
|
|
975
|
+
k(() => !1);
|
|
977
976
|
function n() {
|
|
978
|
-
var
|
|
977
|
+
var o;
|
|
979
978
|
return [
|
|
980
979
|
"builder-blocks",
|
|
981
|
-
(
|
|
980
|
+
(o = e.blocks) != null && o.length ? "" : "no-blocks",
|
|
982
981
|
e.classNameProp
|
|
983
982
|
].filter(Boolean).join(" ");
|
|
984
983
|
}
|
|
985
984
|
function i() {
|
|
986
985
|
if (!e.path)
|
|
987
986
|
return;
|
|
988
|
-
const
|
|
989
|
-
return e.path.startsWith(
|
|
987
|
+
const o = "this.", l = "component.options.";
|
|
988
|
+
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
990
989
|
}
|
|
991
990
|
function r() {
|
|
992
|
-
var
|
|
993
|
-
|
|
991
|
+
var o, l;
|
|
992
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
993
|
{
|
|
995
994
|
type: "builder.clickEmptyBlocks",
|
|
996
995
|
data: {
|
|
@@ -1001,9 +1000,9 @@ function ln(e) {
|
|
|
1001
1000
|
"*"
|
|
1002
1001
|
));
|
|
1003
1002
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1003
|
+
function a() {
|
|
1004
|
+
var o, l;
|
|
1005
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1006
|
{
|
|
1008
1007
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1008
|
data: {
|
|
@@ -1014,10 +1013,10 @@ function ln(e) {
|
|
|
1014
1013
|
"*"
|
|
1015
1014
|
));
|
|
1016
1015
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1019
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1016
|
+
return N(() => {
|
|
1017
|
+
}, []), N(() => {
|
|
1018
|
+
}, [e.blocks]), /* @__PURE__ */ D(P, { children: [
|
|
1019
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1021
1020
|
display: flex;
|
|
1022
1021
|
flex-direction: column;
|
|
1023
1022
|
align-items: stretch;
|
|
@@ -1026,23 +1025,23 @@ function ln(e) {
|
|
|
1026
1025
|
e.BlocksWrapper,
|
|
1027
1026
|
{
|
|
1028
1027
|
ref: t,
|
|
1029
|
-
className: n() + " props-blocks-wrapper-
|
|
1028
|
+
className: n() + " props-blocks-wrapper-b46bf284",
|
|
1030
1029
|
"builder-path": i(),
|
|
1031
1030
|
"builder-parent-id": e.parent,
|
|
1032
1031
|
style: e.styleProp,
|
|
1033
|
-
onClick: (
|
|
1034
|
-
onMouseEnter: (
|
|
1035
|
-
onKeyPress: (
|
|
1032
|
+
onClick: (o) => r(),
|
|
1033
|
+
onMouseEnter: (o) => a(),
|
|
1034
|
+
onKeyPress: (o) => r(),
|
|
1036
1035
|
...e.BlocksWrapperProps,
|
|
1037
1036
|
children: e.children
|
|
1038
1037
|
}
|
|
1039
1038
|
)
|
|
1040
1039
|
] });
|
|
1041
1040
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var i, r,
|
|
1041
|
+
function M(e) {
|
|
1042
|
+
var i, r, a;
|
|
1044
1043
|
const t = we(ve), n = we(He);
|
|
1045
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ D(
|
|
1046
1045
|
ln,
|
|
1047
1046
|
{
|
|
1048
1047
|
blocks: e.blocks,
|
|
@@ -1054,15 +1053,15 @@ function U(e) {
|
|
|
1054
1053
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1055
1054
|
children: [
|
|
1056
1055
|
e.children,
|
|
1057
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1056
|
+
e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
|
|
1058
1057
|
ce,
|
|
1059
1058
|
{
|
|
1060
|
-
block:
|
|
1059
|
+
block: o,
|
|
1061
1060
|
linkComponent: e.linkComponent,
|
|
1062
1061
|
context: e.context || t,
|
|
1063
1062
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1064
1063
|
},
|
|
1065
|
-
|
|
1064
|
+
o.id
|
|
1066
1065
|
)) }) : null
|
|
1067
1066
|
]
|
|
1068
1067
|
}
|
|
@@ -1070,7 +1069,7 @@ function U(e) {
|
|
|
1070
1069
|
}
|
|
1071
1070
|
const sn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1072
1071
|
function cn(e) {
|
|
1073
|
-
var
|
|
1072
|
+
var m, y;
|
|
1074
1073
|
function t() {
|
|
1075
1074
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1076
1075
|
}
|
|
@@ -1080,147 +1079,147 @@ function cn(e) {
|
|
|
1080
1079
|
function i() {
|
|
1081
1080
|
return e.stackColumnsAt || "tablet";
|
|
1082
1081
|
}
|
|
1083
|
-
function r(
|
|
1084
|
-
return
|
|
1082
|
+
function r(b) {
|
|
1083
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1085
1084
|
}
|
|
1086
|
-
function
|
|
1085
|
+
function a(b) {
|
|
1087
1086
|
var S;
|
|
1088
|
-
return ((S = n()[
|
|
1087
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const S =
|
|
1092
|
-
return `calc(${S}% - ${
|
|
1089
|
+
function o(b) {
|
|
1090
|
+
const S = a(b), T = t() * (n().length - 1) * (S / 100);
|
|
1091
|
+
return `calc(${S}% - ${T}px)`;
|
|
1093
1092
|
}
|
|
1094
1093
|
function l({
|
|
1095
|
-
stackedStyle:
|
|
1094
|
+
stackedStyle: b,
|
|
1096
1095
|
desktopStyle: S
|
|
1097
1096
|
}) {
|
|
1098
|
-
return i() === "tablet" ?
|
|
1097
|
+
return i() === "tablet" ? b : S;
|
|
1099
1098
|
}
|
|
1100
1099
|
function c({
|
|
1101
|
-
stackedStyle:
|
|
1100
|
+
stackedStyle: b,
|
|
1102
1101
|
desktopStyle: S
|
|
1103
1102
|
}) {
|
|
1104
|
-
return i() === "never" ? S :
|
|
1103
|
+
return i() === "never" ? S : b;
|
|
1105
1104
|
}
|
|
1106
|
-
function
|
|
1105
|
+
function d() {
|
|
1107
1106
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1108
1107
|
}
|
|
1109
|
-
function
|
|
1108
|
+
function h() {
|
|
1110
1109
|
return {
|
|
1111
|
-
"--flex-dir":
|
|
1110
|
+
"--flex-dir": d(),
|
|
1112
1111
|
"--flex-dir-tablet": l({
|
|
1113
|
-
stackedStyle:
|
|
1112
|
+
stackedStyle: d(),
|
|
1114
1113
|
desktopStyle: "row"
|
|
1115
1114
|
})
|
|
1116
1115
|
};
|
|
1117
1116
|
}
|
|
1118
|
-
function b
|
|
1119
|
-
const S =
|
|
1117
|
+
function g(b) {
|
|
1118
|
+
const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, _ = "100%", H = 0;
|
|
1120
1119
|
return {
|
|
1121
1120
|
...{
|
|
1122
1121
|
display: "flex",
|
|
1123
1122
|
flexDirection: "column",
|
|
1124
1123
|
alignItems: "stretch"
|
|
1125
1124
|
},
|
|
1126
|
-
width:
|
|
1127
|
-
["marginLeft"]:
|
|
1125
|
+
width: T,
|
|
1126
|
+
["marginLeft"]: E,
|
|
1128
1127
|
"--column-width-mobile": c({
|
|
1129
|
-
stackedStyle:
|
|
1130
|
-
desktopStyle:
|
|
1128
|
+
stackedStyle: _,
|
|
1129
|
+
desktopStyle: T
|
|
1131
1130
|
}),
|
|
1132
1131
|
"--column-margin-left-mobile": c({
|
|
1133
|
-
stackedStyle:
|
|
1134
|
-
desktopStyle:
|
|
1132
|
+
stackedStyle: H,
|
|
1133
|
+
desktopStyle: E
|
|
1135
1134
|
}),
|
|
1136
1135
|
"--column-width-tablet": l({
|
|
1137
|
-
stackedStyle:
|
|
1138
|
-
desktopStyle:
|
|
1136
|
+
stackedStyle: _,
|
|
1137
|
+
desktopStyle: T
|
|
1139
1138
|
}),
|
|
1140
1139
|
"--column-margin-left-tablet": l({
|
|
1141
|
-
stackedStyle:
|
|
1142
|
-
desktopStyle:
|
|
1140
|
+
stackedStyle: H,
|
|
1141
|
+
desktopStyle: E
|
|
1143
1142
|
})
|
|
1144
1143
|
};
|
|
1145
1144
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var
|
|
1145
|
+
function u(b) {
|
|
1146
|
+
var T, E;
|
|
1148
1147
|
return Xe(
|
|
1149
|
-
((
|
|
1150
|
-
)[
|
|
1148
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1149
|
+
)[b].max;
|
|
1151
1150
|
}
|
|
1152
|
-
function
|
|
1153
|
-
const
|
|
1151
|
+
function x() {
|
|
1152
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1154
1153
|
return `
|
|
1155
|
-
@media (max-width: ${
|
|
1154
|
+
@media (max-width: ${u("medium")}px) {
|
|
1156
1155
|
.${e.builderBlock.id}-breakpoints {
|
|
1157
1156
|
flex-direction: var(--flex-dir-tablet);
|
|
1158
1157
|
align-items: stretch;
|
|
1159
1158
|
}
|
|
1160
1159
|
|
|
1161
|
-
${
|
|
1160
|
+
${b} {
|
|
1162
1161
|
width: var(--column-width-tablet) !important;
|
|
1163
1162
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1164
1163
|
}
|
|
1165
1164
|
}
|
|
1166
1165
|
|
|
1167
|
-
@media (max-width: ${
|
|
1166
|
+
@media (max-width: ${u("small")}px) {
|
|
1168
1167
|
.${e.builderBlock.id}-breakpoints {
|
|
1169
1168
|
flex-direction: var(--flex-dir);
|
|
1170
1169
|
align-items: stretch;
|
|
1171
1170
|
}
|
|
1172
1171
|
|
|
1173
|
-
${
|
|
1172
|
+
${b} {
|
|
1174
1173
|
width: var(--column-width-mobile) !important;
|
|
1175
1174
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1176
1175
|
}
|
|
1177
1176
|
},
|
|
1178
1177
|
`;
|
|
1179
1178
|
}
|
|
1180
|
-
function
|
|
1179
|
+
function f(b, S) {
|
|
1181
1180
|
return {
|
|
1182
|
-
...
|
|
1183
|
-
href:
|
|
1181
|
+
...b.link ? {
|
|
1182
|
+
href: b.link
|
|
1184
1183
|
} : {},
|
|
1185
|
-
[
|
|
1186
|
-
style: Ge(
|
|
1184
|
+
[J()]: "builder-column",
|
|
1185
|
+
style: Ge(g(S))
|
|
1187
1186
|
};
|
|
1188
1187
|
}
|
|
1189
|
-
return /* @__PURE__ */
|
|
1188
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
1190
1189
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1191
1190
|
display: flex;
|
|
1192
1191
|
line-height: normal;
|
|
1193
1192
|
height: 100%;
|
|
1194
1193
|
}` }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ D(
|
|
1196
1195
|
"div",
|
|
1197
1196
|
{
|
|
1198
|
-
className: sn((
|
|
1199
|
-
style:
|
|
1197
|
+
className: sn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1198
|
+
style: h(),
|
|
1200
1199
|
children: [
|
|
1201
1200
|
/* @__PURE__ */ s(
|
|
1202
|
-
|
|
1201
|
+
te,
|
|
1203
1202
|
{
|
|
1204
1203
|
id: "builderio-columns",
|
|
1205
|
-
styles:
|
|
1204
|
+
styles: x(),
|
|
1206
1205
|
nonce: e.builderContext.nonce
|
|
1207
1206
|
}
|
|
1208
1207
|
),
|
|
1209
|
-
(
|
|
1208
|
+
(y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
|
|
1210
1209
|
pe,
|
|
1211
1210
|
{
|
|
1212
|
-
TagName: r(
|
|
1211
|
+
TagName: r(b),
|
|
1213
1212
|
actionAttributes: {},
|
|
1214
|
-
attributes:
|
|
1213
|
+
attributes: f(b, S),
|
|
1215
1214
|
children: /* @__PURE__ */ s(
|
|
1216
|
-
|
|
1215
|
+
M,
|
|
1217
1216
|
{
|
|
1218
1217
|
path: `columns.${S}.blocks`,
|
|
1219
1218
|
parent: e.builderBlock.id,
|
|
1220
1219
|
context: e.builderContext,
|
|
1221
1220
|
registeredComponents: e.builderComponents,
|
|
1222
1221
|
linkComponent: e.builderLinkComponent,
|
|
1223
|
-
blocks:
|
|
1222
|
+
blocks: b.blocks,
|
|
1224
1223
|
styleProp: {
|
|
1225
1224
|
flexGrow: "1"
|
|
1226
1225
|
}
|
|
@@ -1251,8 +1250,8 @@ function mn(e, t) {
|
|
|
1251
1250
|
return Ve(e);
|
|
1252
1251
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1253
1252
|
if (n) {
|
|
1254
|
-
const i = e.split(n[0]), r = n[3],
|
|
1255
|
-
return Ve(`${i[0]}_${
|
|
1253
|
+
const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1254
|
+
return Ve(`${i[0]}_${a}${r}`);
|
|
1256
1255
|
}
|
|
1257
1256
|
return null;
|
|
1258
1257
|
}
|
|
@@ -1268,39 +1267,39 @@ function ne(e) {
|
|
|
1268
1267
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1269
1268
|
}
|
|
1270
1269
|
function fn(e) {
|
|
1271
|
-
var r,
|
|
1270
|
+
var r, a, o, l, c, d;
|
|
1272
1271
|
function t() {
|
|
1273
|
-
var
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1272
|
+
var u;
|
|
1273
|
+
const g = e.image || e.src;
|
|
1274
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1276
1275
|
// images, otherwise you can supply this prop manually
|
|
1277
|
-
!(typeof
|
|
1276
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1278
1277
|
return e.srcset;
|
|
1279
1278
|
if (!e.noWebp) {
|
|
1280
|
-
if (e.srcset && ((
|
|
1279
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1281
1280
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1282
|
-
return console.debug("Removed given srcset"), ne(
|
|
1281
|
+
return console.debug("Removed given srcset"), ne(g);
|
|
1283
1282
|
} else if (e.image && !e.srcset)
|
|
1284
|
-
return ne(
|
|
1285
|
-
return ne(
|
|
1283
|
+
return ne(g);
|
|
1284
|
+
return ne(g);
|
|
1286
1285
|
}
|
|
1287
1286
|
}
|
|
1288
1287
|
function n() {
|
|
1289
|
-
var
|
|
1290
|
-
return (
|
|
1288
|
+
var h;
|
|
1289
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1291
1290
|
}
|
|
1292
1291
|
function i() {
|
|
1293
|
-
const
|
|
1292
|
+
const h = {
|
|
1294
1293
|
position: "absolute",
|
|
1295
1294
|
height: "100%",
|
|
1296
1295
|
width: "100%",
|
|
1297
1296
|
left: "0px",
|
|
1298
1297
|
top: "0px"
|
|
1299
1298
|
};
|
|
1300
|
-
return e.aspectRatio ?
|
|
1299
|
+
return e.aspectRatio ? h : void 0;
|
|
1301
1300
|
}
|
|
1302
|
-
return
|
|
1303
|
-
}, []), /* @__PURE__ */
|
|
1301
|
+
return N(() => {
|
|
1302
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
1304
1303
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1304
|
opacity: 1;
|
|
1306
1305
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1318,8 +1317,8 @@ function fn(e) {
|
|
|
1318
1317
|
width: 100%;
|
|
1319
1318
|
height: 100%;
|
|
1320
1319
|
}` }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ D(P, { children: [
|
|
1321
|
+
/* @__PURE__ */ D("picture", { children: [
|
|
1323
1322
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1324
1323
|
/* @__PURE__ */ s(
|
|
1325
1324
|
"img",
|
|
@@ -1341,7 +1340,7 @@ function fn(e) {
|
|
|
1341
1340
|
}
|
|
1342
1341
|
)
|
|
1343
1342
|
] }),
|
|
1344
|
-
e.aspectRatio && !((
|
|
1343
|
+
e.aspectRatio && !((a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1345
1344
|
"div",
|
|
1346
1345
|
{
|
|
1347
1346
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1350,8 +1349,8 @@ function fn(e) {
|
|
|
1350
1349
|
}
|
|
1351
1350
|
}
|
|
1352
1351
|
) : null,
|
|
1353
|
-
(l = (
|
|
1354
|
-
!e.fitContent && ((
|
|
1352
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
|
|
1353
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1355
1354
|
] })
|
|
1356
1355
|
] });
|
|
1357
1356
|
}
|
|
@@ -1376,51 +1375,51 @@ function hn(e) {
|
|
|
1376
1375
|
}
|
|
1377
1376
|
);
|
|
1378
1377
|
}
|
|
1379
|
-
function
|
|
1380
|
-
function r(
|
|
1381
|
-
return typeof
|
|
1378
|
+
function bn(e, t, n, i) {
|
|
1379
|
+
function r(d) {
|
|
1380
|
+
return typeof d == "string";
|
|
1382
1381
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return typeof
|
|
1382
|
+
function a(d) {
|
|
1383
|
+
return typeof d == "number";
|
|
1385
1384
|
}
|
|
1386
|
-
function
|
|
1385
|
+
function o(d, h) {
|
|
1387
1386
|
return (() => {
|
|
1388
|
-
const
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1387
|
+
const u = h.property, x = h.operator;
|
|
1388
|
+
let f = h.value;
|
|
1389
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1391
1390
|
return !0;
|
|
1392
|
-
if (Array.isArray(
|
|
1393
|
-
return
|
|
1394
|
-
property:
|
|
1395
|
-
operator:
|
|
1396
|
-
value:
|
|
1397
|
-
})) : !!
|
|
1398
|
-
property:
|
|
1399
|
-
operator:
|
|
1400
|
-
value:
|
|
1391
|
+
if (Array.isArray(f))
|
|
1392
|
+
return x === "isNot" ? f.every((y) => o(d, {
|
|
1393
|
+
property: u,
|
|
1394
|
+
operator: x,
|
|
1395
|
+
value: y
|
|
1396
|
+
})) : !!f.find((y) => o(d, {
|
|
1397
|
+
property: u,
|
|
1398
|
+
operator: x,
|
|
1399
|
+
value: y
|
|
1401
1400
|
}));
|
|
1402
|
-
const
|
|
1403
|
-
if (Array.isArray(
|
|
1404
|
-
return
|
|
1405
|
-
switch (
|
|
1401
|
+
const m = d[u];
|
|
1402
|
+
if (Array.isArray(m))
|
|
1403
|
+
return m.includes(f);
|
|
1404
|
+
switch (x) {
|
|
1406
1405
|
case "is":
|
|
1407
|
-
return
|
|
1406
|
+
return m === f;
|
|
1408
1407
|
case "isNot":
|
|
1409
|
-
return
|
|
1408
|
+
return m !== f;
|
|
1410
1409
|
case "contains":
|
|
1411
|
-
return (r(
|
|
1410
|
+
return (r(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1412
1411
|
case "startsWith":
|
|
1413
|
-
return r(
|
|
1412
|
+
return r(m) && m.startsWith(String(f));
|
|
1414
1413
|
case "endsWith":
|
|
1415
|
-
return r(
|
|
1414
|
+
return r(m) && m.endsWith(String(f));
|
|
1416
1415
|
case "greaterThan":
|
|
1417
|
-
return
|
|
1416
|
+
return a(m) && a(f) && m > f;
|
|
1418
1417
|
case "lessThan":
|
|
1419
|
-
return
|
|
1418
|
+
return a(m) && a(f) && m < f;
|
|
1420
1419
|
case "greaterThanOrEqualTo":
|
|
1421
|
-
return
|
|
1420
|
+
return a(m) && a(f) && m >= f;
|
|
1422
1421
|
case "lessThanOrEqualTo":
|
|
1423
|
-
return
|
|
1422
|
+
return a(m) && a(f) && m <= f;
|
|
1424
1423
|
default:
|
|
1425
1424
|
return !1;
|
|
1426
1425
|
}
|
|
@@ -1431,9 +1430,9 @@ function gn(e, t, n, i) {
|
|
|
1431
1430
|
startDate: n,
|
|
1432
1431
|
endDate: i
|
|
1433
1432
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1434
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((
|
|
1433
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => o(e, d));
|
|
1435
1434
|
}
|
|
1436
|
-
const
|
|
1435
|
+
const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1437
1436
|
if (!navigator.cookieEnabled) {
|
|
1438
1437
|
return;
|
|
1439
1438
|
}
|
|
@@ -1596,7 +1595,7 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1596
1595
|
}
|
|
1597
1596
|
}`, ie = "default", vn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
|
|
1598
1597
|
function xn(e, t) {
|
|
1599
|
-
return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !
|
|
1598
|
+
return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !G();
|
|
1600
1599
|
}
|
|
1601
1600
|
function Sn({
|
|
1602
1601
|
variants: e,
|
|
@@ -1605,14 +1604,14 @@ function Sn({
|
|
|
1605
1604
|
filteredVariants: i,
|
|
1606
1605
|
fallbackBlocks: r
|
|
1607
1606
|
}) {
|
|
1608
|
-
var
|
|
1609
|
-
const
|
|
1607
|
+
var o;
|
|
1608
|
+
const a = {
|
|
1610
1609
|
blocks: r != null ? r : [],
|
|
1611
1610
|
path: "this.children",
|
|
1612
1611
|
index: ie
|
|
1613
1612
|
};
|
|
1614
|
-
if (n &&
|
|
1615
|
-
if (typeof t == "number" && t < ((
|
|
1613
|
+
if (n && U()) {
|
|
1614
|
+
if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
|
|
1616
1615
|
const l = e == null ? void 0 : e[t];
|
|
1617
1616
|
if (l)
|
|
1618
1617
|
return {
|
|
@@ -1621,9 +1620,9 @@ function Sn({
|
|
|
1621
1620
|
index: t
|
|
1622
1621
|
};
|
|
1623
1622
|
}
|
|
1624
|
-
return
|
|
1623
|
+
return a;
|
|
1625
1624
|
}
|
|
1626
|
-
if (
|
|
1625
|
+
if (G()) {
|
|
1627
1626
|
const l = i == null ? void 0 : i[0];
|
|
1628
1627
|
if (l && e) {
|
|
1629
1628
|
const c = e.indexOf(l);
|
|
@@ -1635,11 +1634,11 @@ function Sn({
|
|
|
1635
1634
|
};
|
|
1636
1635
|
}
|
|
1637
1636
|
}
|
|
1638
|
-
return
|
|
1637
|
+
return a;
|
|
1639
1638
|
}
|
|
1640
1639
|
const kn = () => `
|
|
1641
1640
|
window.${vn} = ${yn}
|
|
1642
|
-
window.${et} = ${
|
|
1641
|
+
window.${et} = ${gn}
|
|
1643
1642
|
window.${tt} = ${pn}
|
|
1644
1643
|
`, it = F === "react", Cn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
|
|
1645
1644
|
"@type": "@builder.io/sdk:Element",
|
|
@@ -1767,8 +1766,8 @@ const kn = () => `
|
|
|
1767
1766
|
}
|
|
1768
1767
|
}, Ae = (e) => e.toString();
|
|
1769
1768
|
function wn(e) {
|
|
1770
|
-
var
|
|
1771
|
-
const [t, n] =
|
|
1769
|
+
var g;
|
|
1770
|
+
const [t, n] = k(() => []);
|
|
1772
1771
|
function i() {
|
|
1773
1772
|
return !!(e.grid || e.oneAtATime);
|
|
1774
1773
|
}
|
|
@@ -1784,8 +1783,8 @@ function wn(e) {
|
|
|
1784
1783
|
}
|
|
1785
1784
|
};
|
|
1786
1785
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const
|
|
1786
|
+
function a() {
|
|
1787
|
+
const x = {
|
|
1789
1788
|
...{
|
|
1790
1789
|
display: "flex",
|
|
1791
1790
|
flexDirection: "column"
|
|
@@ -1794,75 +1793,75 @@ function wn(e) {
|
|
|
1794
1793
|
cursor: "pointer"
|
|
1795
1794
|
};
|
|
1796
1795
|
return Object.fromEntries(
|
|
1797
|
-
Object.entries(
|
|
1796
|
+
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1798
1797
|
);
|
|
1799
1798
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1799
|
+
function o(u) {
|
|
1800
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1802
1801
|
}
|
|
1803
|
-
function l(
|
|
1804
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1802
|
+
function l(u) {
|
|
1803
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1805
1804
|
}
|
|
1806
1805
|
function c() {
|
|
1807
|
-
let
|
|
1806
|
+
let u = null;
|
|
1808
1807
|
if (e.grid && t.length && document) {
|
|
1809
|
-
const
|
|
1810
|
-
let
|
|
1811
|
-
`.builder-accordion-title[data-index="${
|
|
1808
|
+
const f = t[0];
|
|
1809
|
+
let y = document.querySelector(
|
|
1810
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1812
1811
|
);
|
|
1813
|
-
if (
|
|
1814
|
-
let
|
|
1815
|
-
for (;
|
|
1816
|
-
if (
|
|
1817
|
-
if (
|
|
1812
|
+
if (u = f, y) {
|
|
1813
|
+
let b = y.getBoundingClientRect();
|
|
1814
|
+
for (; y = y && y.nextElementSibling; )
|
|
1815
|
+
if (y) {
|
|
1816
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1818
1817
|
continue;
|
|
1819
|
-
const S =
|
|
1820
|
-
if (S.left >
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1818
|
+
const S = y.getBoundingClientRect();
|
|
1819
|
+
if (S.left > b.left) {
|
|
1820
|
+
const T = parseInt(
|
|
1821
|
+
y.getAttribute("data-index") || "",
|
|
1823
1822
|
10
|
|
1824
1823
|
);
|
|
1825
|
-
isNaN(
|
|
1824
|
+
isNaN(T) || (b = S, u = T);
|
|
1826
1825
|
} else
|
|
1827
1826
|
break;
|
|
1828
1827
|
}
|
|
1829
1828
|
}
|
|
1830
1829
|
}
|
|
1831
|
-
return typeof
|
|
1830
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1832
1831
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const
|
|
1832
|
+
function d() {
|
|
1833
|
+
const u = {
|
|
1835
1834
|
order: typeof c() == "number" ? c() : void 0,
|
|
1836
1835
|
...e.grid && {
|
|
1837
1836
|
width: "100%"
|
|
1838
1837
|
}
|
|
1839
1838
|
};
|
|
1840
1839
|
return Object.fromEntries(
|
|
1841
|
-
Object.entries(
|
|
1840
|
+
Object.entries(u).filter(([x, f]) => f !== void 0)
|
|
1842
1841
|
);
|
|
1843
1842
|
}
|
|
1844
|
-
function
|
|
1845
|
-
t.includes(
|
|
1843
|
+
function h(u) {
|
|
1844
|
+
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1846
1845
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (
|
|
1846
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(mt.Fragment, { children: [
|
|
1848
1847
|
/* @__PURE__ */ s(
|
|
1849
1848
|
"div",
|
|
1850
1849
|
{
|
|
1851
|
-
className:
|
|
1850
|
+
className: o(x),
|
|
1852
1851
|
style: {
|
|
1853
|
-
...
|
|
1852
|
+
...a(),
|
|
1854
1853
|
...e.grid && {
|
|
1855
1854
|
width: e.gridRowWidth,
|
|
1856
|
-
order: c() !== null ? Ae(
|
|
1855
|
+
order: c() !== null ? Ae(x) : Ae(x + 1)
|
|
1857
1856
|
}
|
|
1858
1857
|
},
|
|
1859
|
-
"data-index":
|
|
1860
|
-
onClick: (
|
|
1858
|
+
"data-index": x,
|
|
1859
|
+
onClick: (f) => h(x),
|
|
1861
1860
|
children: /* @__PURE__ */ s(
|
|
1862
|
-
|
|
1861
|
+
M,
|
|
1863
1862
|
{
|
|
1864
|
-
blocks:
|
|
1865
|
-
path: `items.${
|
|
1863
|
+
blocks: u.title,
|
|
1864
|
+
path: `items.${x}.title`,
|
|
1866
1865
|
parent: e.builderBlock.id,
|
|
1867
1866
|
context: e.builderContext,
|
|
1868
1867
|
registeredComponents: e.builderComponents,
|
|
@@ -1871,16 +1870,16 @@ function wn(e) {
|
|
|
1871
1870
|
)
|
|
1872
1871
|
}
|
|
1873
1872
|
),
|
|
1874
|
-
t.includes(
|
|
1873
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1875
1874
|
"div",
|
|
1876
1875
|
{
|
|
1877
|
-
className: l(
|
|
1878
|
-
style:
|
|
1876
|
+
className: l(x),
|
|
1877
|
+
style: d(),
|
|
1879
1878
|
children: /* @__PURE__ */ s(
|
|
1880
|
-
|
|
1879
|
+
M,
|
|
1881
1880
|
{
|
|
1882
|
-
blocks:
|
|
1883
|
-
path: `items.${
|
|
1881
|
+
blocks: u.detail,
|
|
1882
|
+
path: `items.${x}.detail`,
|
|
1884
1883
|
parent: e.builderBlock.id,
|
|
1885
1884
|
context: e.builderContext,
|
|
1886
1885
|
registeredComponents: e.builderComponents,
|
|
@@ -1889,7 +1888,7 @@ function wn(e) {
|
|
|
1889
1888
|
)
|
|
1890
1889
|
}
|
|
1891
1890
|
) : null
|
|
1892
|
-
] },
|
|
1891
|
+
] }, x)) });
|
|
1893
1892
|
}
|
|
1894
1893
|
const En = {
|
|
1895
1894
|
name: "Core:Button",
|
|
@@ -2106,7 +2105,7 @@ const En = {
|
|
|
2106
2105
|
});
|
|
2107
2106
|
}
|
|
2108
2107
|
const n = e.get("columns");
|
|
2109
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2108
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2110
2109
|
}
|
|
2111
2110
|
}, {
|
|
2112
2111
|
name: "space",
|
|
@@ -2160,29 +2159,29 @@ const En = {
|
|
|
2160
2159
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2161
2160
|
onChange: (e) => {
|
|
2162
2161
|
e.delete("srcset"), e.delete("noWebp");
|
|
2163
|
-
function n(
|
|
2164
|
-
return new Promise((c,
|
|
2165
|
-
const
|
|
2166
|
-
let
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
},
|
|
2170
|
-
console.warn("Image load failed",
|
|
2171
|
-
}),
|
|
2172
|
-
|
|
2162
|
+
function n(o, l = 6e4) {
|
|
2163
|
+
return new Promise((c, d) => {
|
|
2164
|
+
const h = document.createElement("img");
|
|
2165
|
+
let g = !1;
|
|
2166
|
+
h.onload = () => {
|
|
2167
|
+
g = !0, c(h);
|
|
2168
|
+
}, h.addEventListener("error", (u) => {
|
|
2169
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
2170
|
+
}), h.src = o, setTimeout(() => {
|
|
2171
|
+
g || d(new Error("Image load timed out"));
|
|
2173
2172
|
}, l);
|
|
2174
2173
|
});
|
|
2175
2174
|
}
|
|
2176
|
-
function i(
|
|
2177
|
-
return Math.round(
|
|
2175
|
+
function i(o) {
|
|
2176
|
+
return Math.round(o * 1e3) / 1e3;
|
|
2178
2177
|
}
|
|
2179
|
-
const r = e.get("image"),
|
|
2180
|
-
if (fetch(r).then((
|
|
2181
|
-
|
|
2182
|
-
}), r && (!
|
|
2183
|
-
return n(r).then((
|
|
2178
|
+
const r = e.get("image"), a = e.get("aspectRatio");
|
|
2179
|
+
if (fetch(r).then((o) => o.blob()).then((o) => {
|
|
2180
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
2181
|
+
}), r && (!a || a === 0.7041))
|
|
2182
|
+
return n(r).then((o) => {
|
|
2184
2183
|
const l = e.get("aspectRatio");
|
|
2185
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2184
|
+
e.get("image") === r && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
2186
2185
|
});
|
|
2187
2186
|
}
|
|
2188
2187
|
}, {
|
|
@@ -2289,7 +2288,7 @@ const En = {
|
|
|
2289
2288
|
}]
|
|
2290
2289
|
}]
|
|
2291
2290
|
};
|
|
2292
|
-
function
|
|
2291
|
+
function K(e) {
|
|
2293
2292
|
return /* @__PURE__ */ s(
|
|
2294
2293
|
"script",
|
|
2295
2294
|
{
|
|
@@ -2300,105 +2299,105 @@ function q(e) {
|
|
|
2300
2299
|
);
|
|
2301
2300
|
}
|
|
2302
2301
|
function Nn(e) {
|
|
2303
|
-
var S,
|
|
2304
|
-
const t =
|
|
2302
|
+
var S, T, E, _, H, q, p, v, I, V, $, R, A;
|
|
2303
|
+
const t = z(null), [n, i] = k(
|
|
2305
2304
|
() => Ce.getUserAttributes()
|
|
2306
|
-
), [r,
|
|
2305
|
+
), [r, a] = k(
|
|
2307
2306
|
() => {
|
|
2308
|
-
var
|
|
2307
|
+
var w, B, C;
|
|
2309
2308
|
return Cn(
|
|
2310
2309
|
e.variants,
|
|
2311
|
-
((
|
|
2312
|
-
(
|
|
2310
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2311
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2313
2312
|
);
|
|
2314
2313
|
}
|
|
2315
|
-
), [
|
|
2314
|
+
), [o, l] = k(
|
|
2316
2315
|
() => {
|
|
2317
|
-
var
|
|
2316
|
+
var w, B, C;
|
|
2318
2317
|
return Tn(
|
|
2319
2318
|
e.variants,
|
|
2320
|
-
((
|
|
2321
|
-
(
|
|
2319
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2320
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2322
2321
|
);
|
|
2323
2322
|
}
|
|
2324
|
-
), [c,
|
|
2323
|
+
), [c, d] = k(() => []), [h, g] = k(
|
|
2325
2324
|
() => {
|
|
2326
|
-
var
|
|
2325
|
+
var w;
|
|
2327
2326
|
return xn(
|
|
2328
2327
|
e.variants,
|
|
2329
|
-
|
|
2328
|
+
Z((w = e.builderContext) == null ? void 0 : w.canTrack)
|
|
2330
2329
|
);
|
|
2331
2330
|
}
|
|
2332
|
-
), [
|
|
2333
|
-
function
|
|
2331
|
+
), [u, x] = k(() => !1);
|
|
2332
|
+
function f() {
|
|
2334
2333
|
return {
|
|
2335
2334
|
...e.attributes,
|
|
2336
|
-
[
|
|
2335
|
+
[J()]: `builder-personalization-container ${e.attributes[J()] || ""}`
|
|
2337
2336
|
};
|
|
2338
2337
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return (e.variants || []).filter((
|
|
2341
|
-
var B,
|
|
2342
|
-
return
|
|
2338
|
+
function m() {
|
|
2339
|
+
return (e.variants || []).filter((w) => {
|
|
2340
|
+
var B, C, W, L;
|
|
2341
|
+
return bn(
|
|
2343
2342
|
{
|
|
2344
|
-
...(
|
|
2345
|
-
locale: (
|
|
2343
|
+
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2344
|
+
locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
|
|
2346
2345
|
} : {},
|
|
2347
2346
|
...n
|
|
2348
2347
|
},
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2348
|
+
w.query,
|
|
2349
|
+
w.startDate,
|
|
2350
|
+
w.endDate
|
|
2352
2351
|
);
|
|
2353
2352
|
});
|
|
2354
2353
|
}
|
|
2355
|
-
function
|
|
2356
|
-
var
|
|
2354
|
+
function y() {
|
|
2355
|
+
var w;
|
|
2357
2356
|
return Sn({
|
|
2358
2357
|
variants: e.variants,
|
|
2359
|
-
fallbackBlocks: (
|
|
2360
|
-
isHydrated:
|
|
2361
|
-
filteredVariants:
|
|
2358
|
+
fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
|
|
2359
|
+
isHydrated: u,
|
|
2360
|
+
filteredVariants: m(),
|
|
2362
2361
|
previewingIndex: e.previewingIndex
|
|
2363
2362
|
});
|
|
2364
2363
|
}
|
|
2365
|
-
function
|
|
2364
|
+
function b() {
|
|
2366
2365
|
return (e.variants || []).map(
|
|
2367
|
-
(
|
|
2368
|
-
var
|
|
2369
|
-
return `div[data-variant-id="${(
|
|
2366
|
+
(w, B) => {
|
|
2367
|
+
var C;
|
|
2368
|
+
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2370
2369
|
}
|
|
2371
2370
|
).join("");
|
|
2372
2371
|
}
|
|
2373
|
-
return
|
|
2372
|
+
return N(() => {
|
|
2374
2373
|
var B;
|
|
2375
|
-
|
|
2376
|
-
const
|
|
2377
|
-
(
|
|
2378
|
-
i(
|
|
2374
|
+
x(!0);
|
|
2375
|
+
const w = Ce.subscribeOnUserAttributesChange(
|
|
2376
|
+
(C) => {
|
|
2377
|
+
i(C);
|
|
2379
2378
|
},
|
|
2380
2379
|
{
|
|
2381
2380
|
fireImmediately: F === "qwik"
|
|
2382
2381
|
}
|
|
2383
2382
|
);
|
|
2384
|
-
if (!(
|
|
2385
|
-
const
|
|
2383
|
+
if (!(U() || le())) {
|
|
2384
|
+
const C = m()[0];
|
|
2386
2385
|
t.current && (t.current.dispatchEvent(
|
|
2387
2386
|
new CustomEvent("builder.variantLoaded", {
|
|
2388
2387
|
detail: {
|
|
2389
|
-
variant:
|
|
2388
|
+
variant: C || ie,
|
|
2390
2389
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2391
2390
|
},
|
|
2392
2391
|
bubbles: !0
|
|
2393
2392
|
})
|
|
2394
|
-
), new IntersectionObserver((
|
|
2395
|
-
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2393
|
+
), new IntersectionObserver((L) => {
|
|
2394
|
+
L.forEach((O) => {
|
|
2395
|
+
var j;
|
|
2396
|
+
O.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2398
2397
|
new CustomEvent("builder.variantDisplayed", {
|
|
2399
2398
|
detail: {
|
|
2400
|
-
variant:
|
|
2401
|
-
content: (
|
|
2399
|
+
variant: C || ie,
|
|
2400
|
+
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2402
2401
|
},
|
|
2403
2402
|
bubbles: !0
|
|
2404
2403
|
})
|
|
@@ -2406,64 +2405,64 @@ function Nn(e) {
|
|
|
2406
2405
|
});
|
|
2407
2406
|
}).observe(t.current));
|
|
2408
2407
|
}
|
|
2409
|
-
c.push(
|
|
2410
|
-
}, []),
|
|
2411
|
-
c.forEach((
|
|
2412
|
-
}, []), /* @__PURE__ */
|
|
2413
|
-
|
|
2414
|
-
|
|
2408
|
+
c.push(w);
|
|
2409
|
+
}, []), N(() => () => {
|
|
2410
|
+
c.forEach((w) => w());
|
|
2411
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2412
|
+
u && re.includes(F) ? /* @__PURE__ */ s(
|
|
2413
|
+
M,
|
|
2415
2414
|
{
|
|
2416
|
-
blocks:
|
|
2415
|
+
blocks: y().blocks,
|
|
2417
2416
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2418
|
-
path:
|
|
2417
|
+
path: y().path,
|
|
2419
2418
|
context: e.builderContext,
|
|
2420
2419
|
registeredComponents: e.builderComponents,
|
|
2421
2420
|
BlocksWrapperProps: {
|
|
2422
|
-
...(
|
|
2423
|
-
"data-variant-id": `${(
|
|
2421
|
+
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2422
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
|
|
2424
2423
|
}
|
|
2425
2424
|
}
|
|
2426
2425
|
) : null,
|
|
2427
|
-
!
|
|
2428
|
-
|
|
2426
|
+
!u && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ D(P, { children: [
|
|
2427
|
+
h ? /* @__PURE__ */ D(P, { children: [
|
|
2429
2428
|
/* @__PURE__ */ s(
|
|
2430
|
-
|
|
2429
|
+
te,
|
|
2431
2430
|
{
|
|
2432
|
-
nonce: ((
|
|
2433
|
-
styles:
|
|
2434
|
-
id: `variants-styles-${(
|
|
2431
|
+
nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
|
|
2432
|
+
styles: b(),
|
|
2433
|
+
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2435
2434
|
}
|
|
2436
2435
|
),
|
|
2437
2436
|
/* @__PURE__ */ s(
|
|
2438
|
-
|
|
2437
|
+
K,
|
|
2439
2438
|
{
|
|
2440
|
-
nonce: ((
|
|
2441
|
-
scriptStr:
|
|
2442
|
-
id: `variants-visibility-script-${(
|
|
2439
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2440
|
+
scriptStr: o,
|
|
2441
|
+
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2443
2442
|
}
|
|
2444
2443
|
),
|
|
2445
|
-
(
|
|
2446
|
-
var
|
|
2444
|
+
(v = e.variants) == null ? void 0 : v.map((w, B) => {
|
|
2445
|
+
var C, W, L, O, j, ke;
|
|
2447
2446
|
return /* @__PURE__ */ s(
|
|
2448
|
-
|
|
2447
|
+
M,
|
|
2449
2448
|
{
|
|
2450
2449
|
BlocksWrapperProps: {
|
|
2451
|
-
...(
|
|
2450
|
+
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2452
2451
|
"aria-hidden": !0,
|
|
2453
2452
|
hidden: !0,
|
|
2454
|
-
"data-variant-id": `${(
|
|
2453
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${B}`
|
|
2455
2454
|
},
|
|
2456
|
-
blocks:
|
|
2457
|
-
parent: (
|
|
2455
|
+
blocks: w.blocks,
|
|
2456
|
+
parent: (L = e.builderBlock) == null ? void 0 : L.id,
|
|
2458
2457
|
path: `component.options.variants.${B}.blocks`,
|
|
2459
2458
|
context: e.builderContext,
|
|
2460
2459
|
registeredComponents: e.builderComponents,
|
|
2461
2460
|
children: /* @__PURE__ */ s(
|
|
2462
|
-
|
|
2461
|
+
K,
|
|
2463
2462
|
{
|
|
2464
|
-
nonce: ((
|
|
2463
|
+
nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
|
|
2465
2464
|
scriptStr: r,
|
|
2466
|
-
id: `variants-script-${(
|
|
2465
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2467
2466
|
}
|
|
2468
2467
|
)
|
|
2469
2468
|
},
|
|
@@ -2472,23 +2471,23 @@ function Nn(e) {
|
|
|
2472
2471
|
})
|
|
2473
2472
|
] }) : null,
|
|
2474
2473
|
/* @__PURE__ */ s(
|
|
2475
|
-
|
|
2474
|
+
M,
|
|
2476
2475
|
{
|
|
2477
|
-
blocks:
|
|
2478
|
-
parent: (
|
|
2479
|
-
path:
|
|
2476
|
+
blocks: y().blocks,
|
|
2477
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2478
|
+
path: y().path,
|
|
2480
2479
|
context: e.builderContext,
|
|
2481
2480
|
registeredComponents: e.builderComponents,
|
|
2482
2481
|
BlocksWrapperProps: {
|
|
2483
|
-
...(
|
|
2484
|
-
"data-variant-id": `${(
|
|
2482
|
+
...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
|
|
2483
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
|
|
2485
2484
|
},
|
|
2486
|
-
children:
|
|
2487
|
-
|
|
2485
|
+
children: h ? /* @__PURE__ */ s(
|
|
2486
|
+
K,
|
|
2488
2487
|
{
|
|
2489
|
-
nonce: ((
|
|
2488
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2490
2489
|
scriptStr: r,
|
|
2491
|
-
id: `variants-script-${(
|
|
2490
|
+
id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
|
|
2492
2491
|
}
|
|
2493
2492
|
) : null
|
|
2494
2493
|
}
|
|
@@ -2565,7 +2564,7 @@ function Dn(e) {
|
|
|
2565
2564
|
"builder-slot": e.name
|
|
2566
2565
|
},
|
|
2567
2566
|
children: /* @__PURE__ */ s(
|
|
2568
|
-
|
|
2567
|
+
M,
|
|
2569
2568
|
{
|
|
2570
2569
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2571
2570
|
path: `symbol.data.${e.name}`,
|
|
@@ -2654,7 +2653,7 @@ const Fn = {
|
|
|
2654
2653
|
text: "New tab content "
|
|
2655
2654
|
}
|
|
2656
2655
|
}
|
|
2657
|
-
},
|
|
2656
|
+
}, Ln = {
|
|
2658
2657
|
name: "Builder: Tabs",
|
|
2659
2658
|
inputs: [{
|
|
2660
2659
|
name: "tabs",
|
|
@@ -2758,18 +2757,21 @@ const Fn = {
|
|
|
2758
2757
|
builderLinkComponent: !0
|
|
2759
2758
|
}
|
|
2760
2759
|
};
|
|
2761
|
-
function
|
|
2760
|
+
function On(e) {
|
|
2762
2761
|
var o;
|
|
2763
|
-
const [t, n] =
|
|
2762
|
+
const [t, n] = k(
|
|
2764
2763
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2765
2764
|
);
|
|
2766
|
-
function i(
|
|
2767
|
-
return e.tabs && e.tabs[
|
|
2765
|
+
function i(l) {
|
|
2766
|
+
return e.tabs && e.tabs[l].content;
|
|
2767
|
+
}
|
|
2768
|
+
function r(l) {
|
|
2769
|
+
return l === t ? e.activeTabStyle : {};
|
|
2768
2770
|
}
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2771
|
+
function a(l) {
|
|
2772
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
2771
2773
|
}
|
|
2772
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
2773
2775
|
/* @__PURE__ */ s(
|
|
2774
2776
|
"div",
|
|
2775
2777
|
{
|
|
@@ -2780,32 +2782,30 @@ function Ln(e) {
|
|
|
2780
2782
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2781
2783
|
overflow: "auto"
|
|
2782
2784
|
},
|
|
2783
|
-
children: (o = e.tabs) == null ? void 0 : o.map((
|
|
2785
|
+
children: (o = e.tabs) == null ? void 0 : o.map((l, c) => /* @__PURE__ */ s(
|
|
2784
2786
|
"span",
|
|
2785
2787
|
{
|
|
2786
|
-
className: `builder-tab-wrap ${t ===
|
|
2787
|
-
style:
|
|
2788
|
-
|
|
2789
|
-
},
|
|
2790
|
-
onClick: (c) => r(l),
|
|
2788
|
+
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2789
|
+
style: r(c),
|
|
2790
|
+
onClick: (d) => a(c),
|
|
2791
2791
|
children: /* @__PURE__ */ s(
|
|
2792
|
-
|
|
2792
|
+
M,
|
|
2793
2793
|
{
|
|
2794
2794
|
parent: e.builderBlock.id,
|
|
2795
|
-
path: `tabs.${
|
|
2796
|
-
blocks:
|
|
2795
|
+
path: `tabs.${c}.label`,
|
|
2796
|
+
blocks: l.label,
|
|
2797
2797
|
context: e.builderContext,
|
|
2798
2798
|
registeredComponents: e.builderComponents,
|
|
2799
2799
|
linkComponent: e.builderLinkComponent
|
|
2800
2800
|
}
|
|
2801
2801
|
)
|
|
2802
2802
|
},
|
|
2803
|
-
|
|
2803
|
+
c
|
|
2804
2804
|
))
|
|
2805
2805
|
}
|
|
2806
2806
|
),
|
|
2807
2807
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2808
|
-
|
|
2808
|
+
M,
|
|
2809
2809
|
{
|
|
2810
2810
|
parent: e.builderBlock.id,
|
|
2811
2811
|
path: `tabs.${t}.content`,
|
|
@@ -2874,42 +2874,42 @@ const Hn = {
|
|
|
2874
2874
|
}]
|
|
2875
2875
|
};
|
|
2876
2876
|
function Mn(e) {
|
|
2877
|
-
const t =
|
|
2878
|
-
function
|
|
2877
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []);
|
|
2878
|
+
function o() {
|
|
2879
2879
|
var c;
|
|
2880
2880
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2881
2881
|
return;
|
|
2882
2882
|
const l = t.current.getElementsByTagName("script");
|
|
2883
|
-
for (let
|
|
2884
|
-
const
|
|
2885
|
-
if (
|
|
2886
|
-
if (n.includes(
|
|
2883
|
+
for (let d = 0; d < l.length; d++) {
|
|
2884
|
+
const h = l[d];
|
|
2885
|
+
if (h.src) {
|
|
2886
|
+
if (n.includes(h.src))
|
|
2887
2887
|
continue;
|
|
2888
|
-
n.push(
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
} else if (!
|
|
2888
|
+
n.push(h.src);
|
|
2889
|
+
const g = document.createElement("script");
|
|
2890
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2891
|
+
} else if (!h.type || [
|
|
2892
2892
|
"text/javascript",
|
|
2893
2893
|
"application/javascript",
|
|
2894
2894
|
"application/ecmascript"
|
|
2895
|
-
].includes(
|
|
2896
|
-
if (r.includes(
|
|
2895
|
+
].includes(h.type)) {
|
|
2896
|
+
if (r.includes(h.innerText))
|
|
2897
2897
|
continue;
|
|
2898
2898
|
try {
|
|
2899
|
-
r.push(
|
|
2900
|
-
} catch (
|
|
2901
|
-
|
|
2899
|
+
r.push(h.innerText), new Function(h.innerText)();
|
|
2900
|
+
} catch (g) {
|
|
2901
|
+
ee.warn(
|
|
2902
2902
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2903
|
-
|
|
2903
|
+
g
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
return
|
|
2910
|
-
|
|
2911
|
-
}, []),
|
|
2912
|
-
|
|
2909
|
+
return N(() => {
|
|
2910
|
+
o();
|
|
2911
|
+
}, []), N(() => {
|
|
2912
|
+
U() && o();
|
|
2913
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2914
2914
|
"div",
|
|
2915
2915
|
{
|
|
@@ -2936,28 +2936,28 @@ const qn = {
|
|
|
2936
2936
|
}]
|
|
2937
2937
|
}, jn = ["text/javascript", "application/javascript", "application/ecmascript"], zn = (e) => jn.includes(e.type);
|
|
2938
2938
|
function Kn(e) {
|
|
2939
|
-
const t =
|
|
2939
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
|
|
2940
2940
|
function c() {
|
|
2941
2941
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2942
2942
|
return;
|
|
2943
|
-
const
|
|
2944
|
-
for (let
|
|
2945
|
-
const
|
|
2946
|
-
if (
|
|
2947
|
-
n.push(
|
|
2948
|
-
const
|
|
2949
|
-
|
|
2950
|
-
} else if (zn(
|
|
2943
|
+
const d = t.current.getElementsByTagName("script");
|
|
2944
|
+
for (let h = 0; h < d.length; h++) {
|
|
2945
|
+
const g = d[h];
|
|
2946
|
+
if (g.src && !n.includes(g.src)) {
|
|
2947
|
+
n.push(g.src);
|
|
2948
|
+
const u = document.createElement("script");
|
|
2949
|
+
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
2950
|
+
} else if (zn(g) && !r.includes(g.innerText))
|
|
2951
2951
|
try {
|
|
2952
|
-
r.push(
|
|
2953
|
-
} catch (
|
|
2954
|
-
|
|
2952
|
+
r.push(g.innerText), new Function(g.innerText)();
|
|
2953
|
+
} catch (u) {
|
|
2954
|
+
ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
2957
|
}
|
|
2958
|
-
return
|
|
2959
|
-
t.current && !
|
|
2960
|
-
}, [t.current,
|
|
2958
|
+
return N(() => {
|
|
2959
|
+
t.current && !o && (l(!0), c());
|
|
2960
|
+
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2961
2961
|
"div",
|
|
2962
2962
|
{
|
|
2963
2963
|
className: "builder-embed",
|
|
@@ -3208,127 +3208,132 @@ const Jn = {
|
|
|
3208
3208
|
return Gn.includes(e) ? e : "production";
|
|
3209
3209
|
};
|
|
3210
3210
|
function Yn(e) {
|
|
3211
|
-
const t =
|
|
3212
|
-
function c(
|
|
3213
|
-
var
|
|
3214
|
-
const
|
|
3211
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3212
|
+
function c(u) {
|
|
3213
|
+
var f, m;
|
|
3214
|
+
const x = {
|
|
3215
3215
|
...e.builderContext.rootState,
|
|
3216
|
-
...
|
|
3216
|
+
...u
|
|
3217
3217
|
};
|
|
3218
|
-
e.builderContext.rootSetState ? (
|
|
3218
|
+
e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
|
|
3219
|
+
}
|
|
3220
|
+
function d() {
|
|
3221
|
+
return U() && e.previewState || n;
|
|
3219
3222
|
}
|
|
3220
|
-
function u
|
|
3221
|
-
return
|
|
3223
|
+
function h(u) {
|
|
3224
|
+
return JSON.stringify(u, null, 2);
|
|
3222
3225
|
}
|
|
3223
|
-
function
|
|
3224
|
-
var
|
|
3225
|
-
const
|
|
3226
|
+
function g(u) {
|
|
3227
|
+
var f;
|
|
3228
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3226
3229
|
if (e.sendSubmissionsTo === "zapier")
|
|
3227
|
-
|
|
3228
|
-
else if (
|
|
3230
|
+
u.preventDefault();
|
|
3231
|
+
else if (x) {
|
|
3229
3232
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3230
|
-
|
|
3233
|
+
u.preventDefault();
|
|
3231
3234
|
return;
|
|
3232
3235
|
}
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3235
|
-
let
|
|
3236
|
-
const
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3236
|
+
u.preventDefault();
|
|
3237
|
+
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3238
|
+
let b;
|
|
3239
|
+
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3240
|
+
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3241
|
+
).map((p) => {
|
|
3242
|
+
let v;
|
|
3243
|
+
const I = p.name;
|
|
3244
|
+
if (p instanceof HTMLInputElement)
|
|
3245
|
+
if (p.type === "radio") {
|
|
3246
|
+
if (p.checked)
|
|
3247
|
+
return v = p.value, {
|
|
3248
|
+
key: I,
|
|
3249
|
+
value: v
|
|
3245
3250
|
};
|
|
3246
|
-
} else if (
|
|
3247
|
-
|
|
3248
|
-
else if (
|
|
3249
|
-
const
|
|
3250
|
-
isNaN(
|
|
3251
|
+
} else if (p.type === "checkbox")
|
|
3252
|
+
v = p.checked;
|
|
3253
|
+
else if (p.type === "number" || p.type === "range") {
|
|
3254
|
+
const V = p.valueAsNumber;
|
|
3255
|
+
isNaN(V) || (v = V);
|
|
3251
3256
|
} else
|
|
3252
|
-
|
|
3257
|
+
p.type === "file" ? v = p.files : v = p.value;
|
|
3253
3258
|
else
|
|
3254
|
-
|
|
3259
|
+
v = p.value;
|
|
3255
3260
|
return {
|
|
3256
|
-
key:
|
|
3257
|
-
value:
|
|
3261
|
+
key: I,
|
|
3262
|
+
value: v
|
|
3258
3263
|
};
|
|
3259
3264
|
});
|
|
3260
|
-
let
|
|
3261
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3262
|
-
(
|
|
3263
|
-
}),
|
|
3264
|
-
|
|
3265
|
+
let E = e.contentType;
|
|
3266
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3267
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3268
|
+
}), E !== "application/json")
|
|
3269
|
+
b = S;
|
|
3265
3270
|
else {
|
|
3266
|
-
const
|
|
3267
|
-
Array.from(
|
|
3268
|
-
Ue(
|
|
3269
|
-
}),
|
|
3271
|
+
const p = {};
|
|
3272
|
+
Array.from(T).forEach(({ value: v, key: I }) => {
|
|
3273
|
+
Ue(p, I, v);
|
|
3274
|
+
}), b = JSON.stringify(p);
|
|
3270
3275
|
}
|
|
3271
|
-
|
|
3272
|
-
const
|
|
3273
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3276
|
+
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3277
|
+
const _ = new CustomEvent("presubmit", { detail: { body: b } });
|
|
3278
|
+
if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
|
|
3274
3279
|
return;
|
|
3275
3280
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3276
|
-
const
|
|
3277
|
-
console.error(
|
|
3281
|
+
const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3282
|
+
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3278
3283
|
return;
|
|
3279
3284
|
}
|
|
3280
|
-
const
|
|
3285
|
+
const H = `${Qn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3281
3286
|
e.sendSubmissionsToEmail || ""
|
|
3282
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3283
|
-
Fe(
|
|
3284
|
-
async (
|
|
3285
|
-
var
|
|
3286
|
-
let
|
|
3287
|
-
const
|
|
3288
|
-
if (
|
|
3289
|
-
const
|
|
3290
|
-
detail: { error:
|
|
3287
|
+
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3288
|
+
Fe(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
|
|
3289
|
+
async (p) => {
|
|
3290
|
+
var V, $;
|
|
3291
|
+
let v;
|
|
3292
|
+
const I = p.headers.get("content-type");
|
|
3293
|
+
if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3294
|
+
const R = new CustomEvent("submit:error", {
|
|
3295
|
+
detail: { error: v, status: p.status }
|
|
3291
3296
|
});
|
|
3292
|
-
if ((
|
|
3297
|
+
if ((V = t.current) != null && V.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3293
3298
|
return;
|
|
3294
|
-
|
|
3295
|
-
let
|
|
3296
|
-
typeof
|
|
3299
|
+
a(v), i("error");
|
|
3300
|
+
let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3301
|
+
typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
|
|
3297
3302
|
return;
|
|
3298
3303
|
}
|
|
3299
|
-
if (
|
|
3300
|
-
const
|
|
3301
|
-
detail: { res:
|
|
3304
|
+
if (a(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3305
|
+
const R = new CustomEvent("submit:success", {
|
|
3306
|
+
detail: { res: p, body: v }
|
|
3302
3307
|
});
|
|
3303
3308
|
if (t.current) {
|
|
3304
|
-
if (t.current.dispatchEvent(
|
|
3309
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3305
3310
|
return;
|
|
3306
3311
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3307
3312
|
}
|
|
3308
3313
|
if (e.successUrl)
|
|
3309
3314
|
if (t.current) {
|
|
3310
|
-
const
|
|
3315
|
+
const A = new CustomEvent("route", {
|
|
3311
3316
|
detail: { url: e.successUrl }
|
|
3312
3317
|
});
|
|
3313
|
-
t.current.dispatchEvent(
|
|
3318
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
3314
3319
|
} else
|
|
3315
3320
|
location.href = e.successUrl;
|
|
3316
3321
|
}
|
|
3317
3322
|
},
|
|
3318
|
-
(
|
|
3319
|
-
const
|
|
3320
|
-
detail: { error:
|
|
3323
|
+
(p) => {
|
|
3324
|
+
const v = new CustomEvent("submit:error", {
|
|
3325
|
+
detail: { error: p }
|
|
3321
3326
|
});
|
|
3322
|
-
t.current && (t.current.dispatchEvent(
|
|
3327
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
|
|
3323
3328
|
}
|
|
3324
3329
|
);
|
|
3325
3330
|
}
|
|
3326
3331
|
}
|
|
3327
|
-
return /* @__PURE__ */
|
|
3332
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
3328
3333
|
" ",
|
|
3329
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3334
|
+
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3330
3335
|
" ",
|
|
3331
|
-
/* @__PURE__ */
|
|
3336
|
+
/* @__PURE__ */ D(
|
|
3332
3337
|
"form",
|
|
3333
3338
|
{
|
|
3334
3339
|
validate: e.validate,
|
|
@@ -3336,29 +3341,29 @@ function Yn(e) {
|
|
|
3336
3341
|
action: !e.sendWithJs && e.action,
|
|
3337
3342
|
method: e.method,
|
|
3338
3343
|
name: e.name,
|
|
3339
|
-
onSubmit: (
|
|
3344
|
+
onSubmit: (u) => g(u),
|
|
3340
3345
|
...e.attributes,
|
|
3341
3346
|
children: [
|
|
3342
3347
|
e.children,
|
|
3343
|
-
|
|
3344
|
-
|
|
3348
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
3349
|
+
M,
|
|
3345
3350
|
{
|
|
3346
3351
|
path: "errorMessage",
|
|
3347
3352
|
blocks: e.errorMessage,
|
|
3348
3353
|
context: e.builderContext
|
|
3349
3354
|
}
|
|
3350
3355
|
) : null,
|
|
3351
|
-
|
|
3352
|
-
|
|
3356
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
3357
|
+
M,
|
|
3353
3358
|
{
|
|
3354
3359
|
path: "sendingMessage",
|
|
3355
3360
|
blocks: e.sendingMessage,
|
|
3356
3361
|
context: e.builderContext
|
|
3357
3362
|
}
|
|
3358
3363
|
) : null,
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3364
|
+
d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
|
|
3365
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
3366
|
+
M,
|
|
3362
3367
|
{
|
|
3363
3368
|
path: "successMessage",
|
|
3364
3369
|
blocks: e.successMessage,
|
|
@@ -3428,7 +3433,7 @@ function Zn(e) {
|
|
|
3428
3433
|
"input",
|
|
3429
3434
|
{
|
|
3430
3435
|
...e.attributes,
|
|
3431
|
-
key:
|
|
3436
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3432
3437
|
placeholder: e.placeholder,
|
|
3433
3438
|
type: e.type,
|
|
3434
3439
|
name: e.name,
|
|
@@ -3488,7 +3493,7 @@ function ti(e) {
|
|
|
3488
3493
|
{
|
|
3489
3494
|
...e.attributes,
|
|
3490
3495
|
value: e.value,
|
|
3491
|
-
key:
|
|
3496
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3492
3497
|
defaultValue: e.defaultValue,
|
|
3493
3498
|
name: e.name,
|
|
3494
3499
|
required: e.required
|
|
@@ -3609,7 +3614,7 @@ function li(e) {
|
|
|
3609
3614
|
srcSet: t(),
|
|
3610
3615
|
...e.attributes
|
|
3611
3616
|
},
|
|
3612
|
-
|
|
3617
|
+
U() && e.imgSrc || "default-key"
|
|
3613
3618
|
);
|
|
3614
3619
|
}
|
|
3615
3620
|
const si = {
|
|
@@ -3698,8 +3703,8 @@ const si = {
|
|
|
3698
3703
|
}
|
|
3699
3704
|
};
|
|
3700
3705
|
function ci(e) {
|
|
3701
|
-
var
|
|
3702
|
-
const t =
|
|
3706
|
+
var o, l, c, d, h, g, u;
|
|
3707
|
+
const t = z(null);
|
|
3703
3708
|
function n() {
|
|
3704
3709
|
return {
|
|
3705
3710
|
...e.autoPlay === !0 ? {
|
|
@@ -3724,32 +3729,32 @@ function ci(e) {
|
|
|
3724
3729
|
...n()
|
|
3725
3730
|
};
|
|
3726
3731
|
}
|
|
3727
|
-
const [r,
|
|
3732
|
+
const [r, a] = k(() => {
|
|
3728
3733
|
});
|
|
3729
|
-
return
|
|
3734
|
+
return N(() => {
|
|
3730
3735
|
if (e.lazyLoad) {
|
|
3731
|
-
const
|
|
3732
|
-
|
|
3733
|
-
if (!
|
|
3736
|
+
const x = new IntersectionObserver(function(f) {
|
|
3737
|
+
f.forEach(function(m) {
|
|
3738
|
+
if (!m.isIntersecting)
|
|
3734
3739
|
return;
|
|
3735
|
-
const
|
|
3740
|
+
const y = m.target;
|
|
3736
3741
|
try {
|
|
3737
|
-
Array.from(
|
|
3738
|
-
(
|
|
3739
|
-
).forEach((
|
|
3740
|
-
const S =
|
|
3741
|
-
S && (
|
|
3742
|
-
}),
|
|
3743
|
-
} catch (
|
|
3744
|
-
console.error("Error loading lazy video:",
|
|
3742
|
+
Array.from(y.children).filter(
|
|
3743
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3744
|
+
).forEach((b) => {
|
|
3745
|
+
const S = b.dataset.src;
|
|
3746
|
+
S && (b.src = S);
|
|
3747
|
+
}), y.load(), x.unobserve(y);
|
|
3748
|
+
} catch (b) {
|
|
3749
|
+
console.error("Error loading lazy video:", b);
|
|
3745
3750
|
}
|
|
3746
3751
|
});
|
|
3747
3752
|
});
|
|
3748
|
-
t.current &&
|
|
3753
|
+
t.current && x.observe(t.current), a(x);
|
|
3749
3754
|
}
|
|
3750
|
-
}, []),
|
|
3755
|
+
}, []), N(() => () => {
|
|
3751
3756
|
r && r.disconnect();
|
|
3752
|
-
}, []), /* @__PURE__ */
|
|
3757
|
+
}, []), /* @__PURE__ */ D(
|
|
3753
3758
|
"div",
|
|
3754
3759
|
{
|
|
3755
3760
|
style: {
|
|
@@ -3766,7 +3771,7 @@ function ci(e) {
|
|
|
3766
3771
|
style: {
|
|
3767
3772
|
width: "100%",
|
|
3768
3773
|
height: "100%",
|
|
3769
|
-
...(
|
|
3774
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
3770
3775
|
objectFit: e.fit,
|
|
3771
3776
|
objectPosition: e.position,
|
|
3772
3777
|
// Hack to get object fit to work as expected and
|
|
@@ -3801,7 +3806,7 @@ function ci(e) {
|
|
|
3801
3806
|
}
|
|
3802
3807
|
}
|
|
3803
3808
|
) : null,
|
|
3804
|
-
(
|
|
3809
|
+
(h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3805
3810
|
"div",
|
|
3806
3811
|
{
|
|
3807
3812
|
style: {
|
|
@@ -3812,7 +3817,7 @@ function ci(e) {
|
|
|
3812
3817
|
children: e.children
|
|
3813
3818
|
}
|
|
3814
3819
|
) : null,
|
|
3815
|
-
(
|
|
3820
|
+
(u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3816
3821
|
"div",
|
|
3817
3822
|
{
|
|
3818
3823
|
style: {
|
|
@@ -3888,8 +3893,8 @@ const ui = () => [{
|
|
|
3888
3893
|
component: Nn,
|
|
3889
3894
|
...Bn
|
|
3890
3895
|
}] : [], {
|
|
3891
|
-
component:
|
|
3892
|
-
...
|
|
3896
|
+
component: On,
|
|
3897
|
+
...Ln
|
|
3893
3898
|
}, {
|
|
3894
3899
|
component: wn,
|
|
3895
3900
|
...In
|
|
@@ -3993,12 +3998,12 @@ const ui = () => [{
|
|
|
3993
3998
|
})), fi = ({
|
|
3994
3999
|
canTrack: e,
|
|
3995
4000
|
content: t
|
|
3996
|
-
}) => !(!(ae(t).length > 0) || !e ||
|
|
4001
|
+
}) => !(!(ae(t).length > 0) || !e || G()), hi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = hi(F), gi = () => `
|
|
3997
4002
|
window.${rt} = ${di}
|
|
3998
4003
|
window.${at} = ${mi}
|
|
3999
4004
|
`, yi = (e, t) => `
|
|
4000
4005
|
window.${rt}(
|
|
4001
|
-
"${t}",${JSON.stringify(e)}, ${ot}, ${
|
|
4006
|
+
"${t}",${JSON.stringify(e)}, ${ot}, ${bi}
|
|
4002
4007
|
)`, pi = ({
|
|
4003
4008
|
contentId: e,
|
|
4004
4009
|
variationId: t
|
|
@@ -4026,10 +4031,10 @@ const vi = (e, t, n = !0) => {
|
|
|
4026
4031
|
event: e,
|
|
4027
4032
|
target: t
|
|
4028
4033
|
}) => {
|
|
4029
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top,
|
|
4034
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = Ne(i / n.width), o = Ne(r / n.height);
|
|
4030
4035
|
return {
|
|
4031
|
-
x:
|
|
4032
|
-
y:
|
|
4036
|
+
x: a,
|
|
4037
|
+
y: o
|
|
4033
4038
|
};
|
|
4034
4039
|
}, Si = (e) => {
|
|
4035
4040
|
const t = e.target, n = t && xi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -4047,9 +4052,9 @@ const vi = (e, t, n = !0) => {
|
|
|
4047
4052
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4048
4053
|
}
|
|
4049
4054
|
};
|
|
4050
|
-
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (
|
|
4051
|
-
var
|
|
4052
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4055
|
+
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (U() || le()), Ci = (e) => {
|
|
4056
|
+
var a, o;
|
|
4057
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4053
4058
|
let r = "";
|
|
4054
4059
|
if (i && t && n && (r += `
|
|
4055
4060
|
@font-face {
|
|
@@ -4062,11 +4067,11 @@ font-weight: 400;
|
|
|
4062
4067
|
for (const l in e.files) {
|
|
4063
4068
|
if (!(String(Number(l)) === l))
|
|
4064
4069
|
continue;
|
|
4065
|
-
const
|
|
4066
|
-
|
|
4070
|
+
const d = e.files[l];
|
|
4071
|
+
d && d !== i && (r += `
|
|
4067
4072
|
@font-face {
|
|
4068
4073
|
font-family: "${t}";
|
|
4069
|
-
src: url('${
|
|
4074
|
+
src: url('${d}') format('woff2');
|
|
4070
4075
|
font-display: fallback;
|
|
4071
4076
|
font-weight: ${l};
|
|
4072
4077
|
}
|
|
@@ -4100,147 +4105,150 @@ font-weight: ${l};
|
|
|
4100
4105
|
}
|
|
4101
4106
|
`, Ei = (e) => e ? "" : wi, Ri = (e) => `variant-${e}`;
|
|
4102
4107
|
function Pi(e) {
|
|
4103
|
-
var
|
|
4104
|
-
const t =
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4108
|
+
var H, q, p;
|
|
4109
|
+
const t = z(null);
|
|
4110
|
+
k(() => !1);
|
|
4111
|
+
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4112
|
+
function o(v) {
|
|
4113
|
+
var V, $;
|
|
4114
|
+
const I = {
|
|
4109
4115
|
...e.builderContextSignal.rootState,
|
|
4110
|
-
...
|
|
4116
|
+
...v
|
|
4111
4117
|
};
|
|
4112
|
-
e.builderContextSignal.rootSetState ? (
|
|
4113
|
-
...
|
|
4114
|
-
rootState:
|
|
4118
|
+
e.builderContextSignal.rootSetState ? ($ = (V = e.builderContextSignal).rootSetState) == null || $.call(V, I) : e.setBuilderContextSignal((R) => ({
|
|
4119
|
+
...R,
|
|
4120
|
+
rootState: I
|
|
4115
4121
|
}));
|
|
4116
4122
|
}
|
|
4117
|
-
function
|
|
4118
|
-
var
|
|
4119
|
-
const
|
|
4123
|
+
function l(v) {
|
|
4124
|
+
var V, $, R, A, w;
|
|
4125
|
+
const I = {
|
|
4120
4126
|
...e.builderContextSignal.content,
|
|
4121
|
-
...
|
|
4127
|
+
...v,
|
|
4122
4128
|
data: {
|
|
4123
|
-
...(
|
|
4124
|
-
...
|
|
4129
|
+
...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
|
|
4130
|
+
...v == null ? void 0 : v.data
|
|
4125
4131
|
},
|
|
4126
4132
|
meta: {
|
|
4127
|
-
...(
|
|
4128
|
-
...
|
|
4129
|
-
breakpoints: ((
|
|
4133
|
+
...($ = e.builderContextSignal.content) == null ? void 0 : $.meta,
|
|
4134
|
+
...v == null ? void 0 : v.meta,
|
|
4135
|
+
breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
|
|
4130
4136
|
}
|
|
4131
4137
|
};
|
|
4132
|
-
e.setBuilderContextSignal((
|
|
4133
|
-
...
|
|
4134
|
-
content:
|
|
4138
|
+
e.setBuilderContextSignal((B) => ({
|
|
4139
|
+
...B,
|
|
4140
|
+
content: I
|
|
4135
4141
|
}));
|
|
4136
4142
|
}
|
|
4137
|
-
function
|
|
4143
|
+
function c() {
|
|
4138
4144
|
return e.showContent ? {} : {
|
|
4139
4145
|
hidden: !0,
|
|
4140
4146
|
"aria-hidden": !0
|
|
4141
4147
|
};
|
|
4142
4148
|
}
|
|
4143
|
-
const [
|
|
4149
|
+
const [d, h] = k(
|
|
4144
4150
|
() => e.contentWrapper || "div"
|
|
4145
4151
|
);
|
|
4146
|
-
function
|
|
4152
|
+
function g(v) {
|
|
4147
4153
|
return ut({
|
|
4148
4154
|
model: e.model,
|
|
4149
4155
|
trustedHosts: e.trustedHosts,
|
|
4150
4156
|
callbacks: {
|
|
4151
|
-
configureSdk: (
|
|
4152
|
-
var
|
|
4153
|
-
const { breakpoints:
|
|
4154
|
-
|
|
4157
|
+
configureSdk: (I) => {
|
|
4158
|
+
var R;
|
|
4159
|
+
const { breakpoints: V, contentId: $ } = I;
|
|
4160
|
+
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
|
|
4155
4161
|
meta: {
|
|
4156
|
-
breakpoints:
|
|
4162
|
+
breakpoints: V
|
|
4157
4163
|
}
|
|
4158
4164
|
});
|
|
4159
4165
|
},
|
|
4160
|
-
animation: (
|
|
4161
|
-
Ke(
|
|
4166
|
+
animation: (I) => {
|
|
4167
|
+
Ke(I);
|
|
4162
4168
|
},
|
|
4163
|
-
contentUpdate: (
|
|
4164
|
-
|
|
4169
|
+
contentUpdate: (I) => {
|
|
4170
|
+
l(I);
|
|
4165
4171
|
},
|
|
4166
|
-
stateUpdate: (
|
|
4167
|
-
|
|
4172
|
+
stateUpdate: (I) => {
|
|
4173
|
+
o(I);
|
|
4168
4174
|
}
|
|
4169
4175
|
}
|
|
4170
|
-
})(
|
|
4176
|
+
})(v);
|
|
4171
4177
|
}
|
|
4172
|
-
const [
|
|
4173
|
-
function
|
|
4174
|
-
var
|
|
4178
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
|
|
4179
|
+
function S(v) {
|
|
4180
|
+
var I, V;
|
|
4175
4181
|
if (e.builderContextSignal.content) {
|
|
4176
|
-
const
|
|
4182
|
+
const $ = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
|
|
4177
4183
|
Te({
|
|
4178
4184
|
apiHost: e.apiHost,
|
|
4179
4185
|
type: "click",
|
|
4180
|
-
canTrack:
|
|
4181
|
-
contentId:
|
|
4186
|
+
canTrack: Z(e.canTrack),
|
|
4187
|
+
contentId: R,
|
|
4182
4188
|
apiKey: e.apiKey,
|
|
4183
|
-
variationId:
|
|
4184
|
-
...Si(
|
|
4185
|
-
unique: !
|
|
4189
|
+
variationId: $ !== R ? $ : void 0,
|
|
4190
|
+
...Si(v),
|
|
4191
|
+
unique: !y
|
|
4186
4192
|
});
|
|
4187
4193
|
}
|
|
4188
|
-
|
|
4194
|
+
y || b(!0);
|
|
4189
4195
|
}
|
|
4190
|
-
function
|
|
4191
|
-
var
|
|
4192
|
-
const
|
|
4193
|
-
Object.entries(
|
|
4194
|
-
([
|
|
4195
|
-
if (!
|
|
4196
|
+
function T() {
|
|
4197
|
+
var I, V, $;
|
|
4198
|
+
const v = ($ = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? $ : {};
|
|
4199
|
+
Object.entries(v).forEach(
|
|
4200
|
+
([R, A]) => {
|
|
4201
|
+
if (!A)
|
|
4196
4202
|
return;
|
|
4197
|
-
const
|
|
4198
|
-
if (f[
|
|
4203
|
+
const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
|
|
4204
|
+
if (f[R] || u[R] && !U())
|
|
4199
4205
|
return;
|
|
4200
|
-
const
|
|
4201
|
-
f[
|
|
4202
|
-
const
|
|
4206
|
+
const B = w ? A.request.url : A;
|
|
4207
|
+
f[R] = !0;
|
|
4208
|
+
const C = B.replace(
|
|
4203
4209
|
/{{([^}]+)}}/g,
|
|
4204
|
-
(
|
|
4205
|
-
|
|
4206
|
-
code:
|
|
4210
|
+
(O, j) => String(
|
|
4211
|
+
Q({
|
|
4212
|
+
code: j,
|
|
4207
4213
|
context: e.context || {},
|
|
4208
4214
|
localState: void 0,
|
|
4209
4215
|
rootState: e.builderContextSignal.rootState,
|
|
4210
4216
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4211
4217
|
})
|
|
4212
4218
|
)
|
|
4213
|
-
),
|
|
4214
|
-
url:
|
|
4215
|
-
method:
|
|
4216
|
-
headers:
|
|
4217
|
-
body:
|
|
4219
|
+
), W = w ? {
|
|
4220
|
+
url: C,
|
|
4221
|
+
method: A.request.method,
|
|
4222
|
+
headers: A.request.headers,
|
|
4223
|
+
body: A.request.body
|
|
4218
4224
|
} : {
|
|
4219
|
-
url:
|
|
4225
|
+
url: C,
|
|
4220
4226
|
method: "GET"
|
|
4221
4227
|
};
|
|
4222
|
-
Fe(JSON.stringify(
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4228
|
+
Fe(JSON.stringify(W));
|
|
4229
|
+
const L = {
|
|
4230
|
+
method: W.method,
|
|
4231
|
+
headers: W.headers,
|
|
4232
|
+
body: W.body
|
|
4233
|
+
};
|
|
4234
|
+
W.method === "GET" && delete L.body, fetch(W.url, L).then((O) => O.json()).then((O) => {
|
|
4235
|
+
o({
|
|
4236
|
+
[R]: O
|
|
4237
|
+
}), u[R] = !0;
|
|
4238
|
+
}).catch((O) => {
|
|
4231
4239
|
console.error(
|
|
4232
4240
|
"error fetching dynamic data",
|
|
4233
|
-
JSON.stringify(
|
|
4234
|
-
|
|
4241
|
+
JSON.stringify(A),
|
|
4242
|
+
O
|
|
4235
4243
|
);
|
|
4236
4244
|
}).finally(() => {
|
|
4237
|
-
f[
|
|
4245
|
+
f[R] = !1;
|
|
4238
4246
|
});
|
|
4239
4247
|
}
|
|
4240
4248
|
);
|
|
4241
4249
|
}
|
|
4242
|
-
function
|
|
4243
|
-
|
|
4250
|
+
function E() {
|
|
4251
|
+
U() && window.dispatchEvent(
|
|
4244
4252
|
new CustomEvent(
|
|
4245
4253
|
"builder:component:stateChange",
|
|
4246
4254
|
{
|
|
@@ -4254,11 +4262,11 @@ function Pi(e) {
|
|
|
4254
4262
|
)
|
|
4255
4263
|
);
|
|
4256
4264
|
}
|
|
4257
|
-
const
|
|
4258
|
-
return
|
|
4259
|
-
var
|
|
4260
|
-
if (
|
|
4261
|
-
|
|
4265
|
+
const _ = z(!1);
|
|
4266
|
+
return _.current || (T(), E(), _.current = !0), N(() => {
|
|
4267
|
+
var v, I, V, $, R;
|
|
4268
|
+
if (G()) {
|
|
4269
|
+
U() && !e.isNestedRender && (window.addEventListener("message", g), lt({
|
|
4262
4270
|
...e.locale ? {
|
|
4263
4271
|
locale: e.locale
|
|
4264
4272
|
} : {},
|
|
@@ -4268,89 +4276,97 @@ function Pi(e) {
|
|
|
4268
4276
|
...e.trustedHosts ? {
|
|
4269
4277
|
trustedHosts: e.trustedHosts
|
|
4270
4278
|
} : {},
|
|
4271
|
-
modelName: (
|
|
4279
|
+
modelName: (v = e.model) != null ? v : "",
|
|
4272
4280
|
apiKey: e.apiKey
|
|
4273
4281
|
}), Object.values(
|
|
4274
4282
|
e.builderContextSignal.componentInfos
|
|
4275
|
-
).forEach((
|
|
4276
|
-
var
|
|
4277
|
-
if (!((
|
|
4278
|
-
const
|
|
4279
|
-
(
|
|
4283
|
+
).forEach((C) => {
|
|
4284
|
+
var W, L;
|
|
4285
|
+
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4286
|
+
const O = st(C);
|
|
4287
|
+
(L = window.parent) == null || L.postMessage(O, "*");
|
|
4280
4288
|
}
|
|
4281
4289
|
}), window.addEventListener(
|
|
4282
4290
|
"builder:component:stateChangeListenerActivated",
|
|
4283
|
-
|
|
4291
|
+
E
|
|
4284
4292
|
));
|
|
4285
|
-
const
|
|
4286
|
-
name: `builder.tests.${(
|
|
4293
|
+
const A = e.builderContextSignal.content && Z(e.canTrack), w = ct({
|
|
4294
|
+
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4287
4295
|
canTrack: !0
|
|
4288
|
-
}),
|
|
4289
|
-
if (
|
|
4290
|
-
const
|
|
4296
|
+
}), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
|
|
4297
|
+
if (A && B === w) {
|
|
4298
|
+
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4291
4299
|
Te({
|
|
4292
4300
|
apiHost: e.apiHost,
|
|
4293
4301
|
type: "impression",
|
|
4294
4302
|
canTrack: !0,
|
|
4295
|
-
contentId:
|
|
4296
|
-
apiKey:
|
|
4297
|
-
variationId:
|
|
4303
|
+
contentId: C,
|
|
4304
|
+
apiKey: W,
|
|
4305
|
+
variationId: w !== C ? w : void 0
|
|
4298
4306
|
});
|
|
4299
4307
|
}
|
|
4300
|
-
if (le() && !
|
|
4301
|
-
const
|
|
4302
|
-
`builder.overrides.${
|
|
4303
|
-
),
|
|
4304
|
-
(
|
|
4308
|
+
if (le() && !U()) {
|
|
4309
|
+
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
|
|
4310
|
+
`builder.overrides.${W}`
|
|
4311
|
+
), O = C.get("apiKey") || C.get("builder.space");
|
|
4312
|
+
(W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Le({
|
|
4305
4313
|
model: e.model,
|
|
4306
4314
|
apiKey: e.apiKey,
|
|
4307
4315
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4308
|
-
...
|
|
4316
|
+
...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4309
4317
|
query: {
|
|
4310
4318
|
id: e.context.symbolId
|
|
4311
4319
|
}
|
|
4312
4320
|
} : {}
|
|
4313
|
-
}).then((
|
|
4314
|
-
|
|
4321
|
+
}).then((j) => {
|
|
4322
|
+
j && l(j);
|
|
4315
4323
|
});
|
|
4316
4324
|
}
|
|
4317
4325
|
}
|
|
4318
|
-
}, []),
|
|
4319
|
-
e.content &&
|
|
4320
|
-
}, [e.content]),
|
|
4321
|
-
|
|
4322
|
-
}, [e.builderContextSignal.rootState]),
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
}
|
|
4328
|
-
}, [e.
|
|
4329
|
-
|
|
4326
|
+
}, []), N(() => {
|
|
4327
|
+
e.content && l(e.content);
|
|
4328
|
+
}, [e.content]), N(() => {
|
|
4329
|
+
E();
|
|
4330
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
4331
|
+
if (e.data) {
|
|
4332
|
+
if (n === e.data)
|
|
4333
|
+
return;
|
|
4334
|
+
o(e.data), i(e.data);
|
|
4335
|
+
}
|
|
4336
|
+
}, [e.data]), N(() => {
|
|
4337
|
+
if (e.locale) {
|
|
4338
|
+
if (r === e.locale)
|
|
4339
|
+
return;
|
|
4340
|
+
o({
|
|
4341
|
+
locale: e.locale
|
|
4342
|
+
}), a(e.locale);
|
|
4343
|
+
}
|
|
4344
|
+
}, [e.locale]), N(() => () => {
|
|
4345
|
+
G() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4330
4346
|
"builder:component:stateChangeListenerActivated",
|
|
4331
|
-
|
|
4347
|
+
E
|
|
4332
4348
|
));
|
|
4333
4349
|
}, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
|
|
4334
|
-
|
|
4350
|
+
d,
|
|
4335
4351
|
{
|
|
4336
4352
|
ref: t,
|
|
4337
|
-
onClick: (
|
|
4338
|
-
"builder-content-id": (
|
|
4353
|
+
onClick: (v) => S(v),
|
|
4354
|
+
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4339
4355
|
"builder-model": e.model,
|
|
4340
4356
|
className: Ri(
|
|
4341
|
-
((
|
|
4357
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4342
4358
|
),
|
|
4343
4359
|
style: {
|
|
4344
4360
|
display: !e.builderContextSignal.content && We() ? "none" : void 0
|
|
4345
4361
|
},
|
|
4346
|
-
...
|
|
4362
|
+
...c(),
|
|
4347
4363
|
...e.contentWrapperProps,
|
|
4348
4364
|
children: e.children
|
|
4349
4365
|
}
|
|
4350
4366
|
) : null });
|
|
4351
4367
|
}
|
|
4352
4368
|
function Vi(e) {
|
|
4353
|
-
const [t, n] =
|
|
4369
|
+
const [t, n] = k(
|
|
4354
4370
|
() => `
|
|
4355
4371
|
${Ii({
|
|
4356
4372
|
cssCode: e.cssCode,
|
|
@@ -4363,7 +4379,7 @@ ${Ei(e.isNestedRender)}
|
|
|
4363
4379
|
`.trim()
|
|
4364
4380
|
);
|
|
4365
4381
|
return /* @__PURE__ */ s(
|
|
4366
|
-
|
|
4382
|
+
te,
|
|
4367
4383
|
{
|
|
4368
4384
|
id: "builderio-content",
|
|
4369
4385
|
styles: t,
|
|
@@ -4376,9 +4392,9 @@ const Ai = ({
|
|
|
4376
4392
|
data: t,
|
|
4377
4393
|
locale: n
|
|
4378
4394
|
}) => {
|
|
4379
|
-
var
|
|
4380
|
-
const i = {}, r = ((
|
|
4381
|
-
return (l = (
|
|
4395
|
+
var a, o, l;
|
|
4396
|
+
const i = {}, r = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4397
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
|
|
4382
4398
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4383
4399
|
}), {
|
|
4384
4400
|
...i,
|
|
@@ -4400,39 +4416,39 @@ const Ai = ({
|
|
|
4400
4416
|
meta: e == null ? void 0 : e.meta
|
|
4401
4417
|
} : void 0;
|
|
4402
4418
|
function De(e) {
|
|
4403
|
-
var
|
|
4404
|
-
const [t, n] =
|
|
4419
|
+
var d, h, g, u, x, f, m, y, b;
|
|
4420
|
+
const [t, n] = k(
|
|
4405
4421
|
() => {
|
|
4406
|
-
var S,
|
|
4422
|
+
var S, T;
|
|
4407
4423
|
return pi({
|
|
4408
4424
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4409
4425
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4410
4426
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4411
|
-
contentId: (
|
|
4427
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4412
4428
|
});
|
|
4413
4429
|
}
|
|
4414
4430
|
);
|
|
4415
4431
|
function i(S) {
|
|
4416
|
-
l((
|
|
4417
|
-
...
|
|
4432
|
+
l((T) => ({
|
|
4433
|
+
...T,
|
|
4418
4434
|
rootState: S
|
|
4419
4435
|
}));
|
|
4420
4436
|
}
|
|
4421
|
-
const [r,
|
|
4437
|
+
const [r, a] = k(
|
|
4422
4438
|
() => [
|
|
4423
4439
|
...Be(),
|
|
4424
4440
|
...e.customComponents || []
|
|
4425
4441
|
].reduce(
|
|
4426
|
-
(S, { component:
|
|
4442
|
+
(S, { component: T, ...E }) => ({
|
|
4427
4443
|
...S,
|
|
4428
|
-
[
|
|
4429
|
-
component:
|
|
4430
|
-
...Ie(
|
|
4444
|
+
[E.name]: {
|
|
4445
|
+
component: T,
|
|
4446
|
+
...Ie(E)
|
|
4431
4447
|
}
|
|
4432
4448
|
}),
|
|
4433
4449
|
{}
|
|
4434
4450
|
)
|
|
4435
|
-
), [
|
|
4451
|
+
), [o, l] = k(() => ({
|
|
4436
4452
|
content: Bi({
|
|
4437
4453
|
content: e.content,
|
|
4438
4454
|
data: e.data
|
|
@@ -4452,9 +4468,9 @@ function De(e) {
|
|
|
4452
4468
|
...Be(),
|
|
4453
4469
|
...e.customComponents || []
|
|
4454
4470
|
].reduce(
|
|
4455
|
-
(S, { component:
|
|
4471
|
+
(S, { component: T, ...E }) => ({
|
|
4456
4472
|
...S,
|
|
4457
|
-
[
|
|
4473
|
+
[E.name]: Ie(E)
|
|
4458
4474
|
}),
|
|
4459
4475
|
{}
|
|
4460
4476
|
),
|
|
@@ -4463,19 +4479,19 @@ function De(e) {
|
|
|
4463
4479
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4464
4480
|
nonce: e.nonce || "",
|
|
4465
4481
|
model: e.model
|
|
4466
|
-
})), c =
|
|
4482
|
+
})), c = z(!1);
|
|
4467
4483
|
if (!c.current) {
|
|
4468
|
-
e.apiKey ||
|
|
4484
|
+
e.apiKey || ee.error(
|
|
4469
4485
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4470
4486
|
);
|
|
4471
|
-
const S = (
|
|
4472
|
-
S &&
|
|
4487
|
+
const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4488
|
+
S && Q({
|
|
4473
4489
|
code: S,
|
|
4474
4490
|
context: e.context || {},
|
|
4475
4491
|
localState: void 0,
|
|
4476
|
-
rootState:
|
|
4477
|
-
rootSetState: (
|
|
4478
|
-
Object.assign(
|
|
4492
|
+
rootState: o.rootState,
|
|
4493
|
+
rootSetState: (T) => {
|
|
4494
|
+
Object.assign(o.rootState, T);
|
|
4479
4495
|
},
|
|
4480
4496
|
isExpression: !1
|
|
4481
4497
|
}), c.current = !0;
|
|
@@ -4486,7 +4502,7 @@ function De(e) {
|
|
|
4486
4502
|
value: {
|
|
4487
4503
|
registeredComponents: r
|
|
4488
4504
|
},
|
|
4489
|
-
children: /* @__PURE__ */
|
|
4505
|
+
children: /* @__PURE__ */ D(
|
|
4490
4506
|
Pi,
|
|
4491
4507
|
{
|
|
4492
4508
|
apiHost: e.apiHost,
|
|
@@ -4500,7 +4516,7 @@ function De(e) {
|
|
|
4500
4516
|
locale: e.locale,
|
|
4501
4517
|
enrich: e.enrich,
|
|
4502
4518
|
showContent: e.showContent,
|
|
4503
|
-
builderContextSignal:
|
|
4519
|
+
builderContextSignal: o,
|
|
4504
4520
|
contentWrapper: e.contentWrapper,
|
|
4505
4521
|
contentWrapperProps: e.contentWrapperProps,
|
|
4506
4522
|
trustedHosts: e.trustedHosts,
|
|
@@ -4508,7 +4524,7 @@ function De(e) {
|
|
|
4508
4524
|
setBuilderContextSignal: l,
|
|
4509
4525
|
children: [
|
|
4510
4526
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4511
|
-
|
|
4527
|
+
K,
|
|
4512
4528
|
{
|
|
4513
4529
|
id: "builderio-variant-visibility",
|
|
4514
4530
|
scriptStr: t,
|
|
@@ -4520,16 +4536,16 @@ function De(e) {
|
|
|
4520
4536
|
{
|
|
4521
4537
|
nonce: e.nonce || "",
|
|
4522
4538
|
isNestedRender: e.isNestedRender,
|
|
4523
|
-
contentId: (
|
|
4524
|
-
cssCode: (
|
|
4525
|
-
customFonts: (
|
|
4539
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4540
|
+
cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4541
|
+
customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4526
4542
|
}
|
|
4527
4543
|
),
|
|
4528
4544
|
/* @__PURE__ */ s(
|
|
4529
|
-
|
|
4545
|
+
M,
|
|
4530
4546
|
{
|
|
4531
|
-
blocks: (
|
|
4532
|
-
context:
|
|
4547
|
+
blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4548
|
+
context: o,
|
|
4533
4549
|
registeredComponents: r,
|
|
4534
4550
|
linkComponent: e.linkComponent
|
|
4535
4551
|
}
|
|
@@ -4541,10 +4557,10 @@ function De(e) {
|
|
|
4541
4557
|
);
|
|
4542
4558
|
}
|
|
4543
4559
|
function Ni(e) {
|
|
4544
|
-
var
|
|
4545
|
-
const [t, n] =
|
|
4560
|
+
var o;
|
|
4561
|
+
const [t, n] = k(
|
|
4546
4562
|
() => fi({
|
|
4547
|
-
canTrack:
|
|
4563
|
+
canTrack: Z(e.canTrack),
|
|
4548
4564
|
content: e.content
|
|
4549
4565
|
})
|
|
4550
4566
|
);
|
|
@@ -4561,29 +4577,29 @@ function Ni(e) {
|
|
|
4561
4577
|
function r() {
|
|
4562
4578
|
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4563
4579
|
}
|
|
4564
|
-
function
|
|
4580
|
+
function a() {
|
|
4565
4581
|
var l;
|
|
4566
4582
|
return t ? {
|
|
4567
4583
|
...e.content,
|
|
4568
4584
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4569
4585
|
} : dt({
|
|
4570
4586
|
item: e.content,
|
|
4571
|
-
canTrack:
|
|
4587
|
+
canTrack: Z(e.canTrack)
|
|
4572
4588
|
});
|
|
4573
4589
|
}
|
|
4574
|
-
return
|
|
4575
|
-
}, []), /* @__PURE__ */
|
|
4576
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */
|
|
4590
|
+
return N(() => {
|
|
4591
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
4592
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
|
|
4577
4593
|
/* @__PURE__ */ s(
|
|
4578
|
-
|
|
4594
|
+
K,
|
|
4579
4595
|
{
|
|
4580
4596
|
id: "builderio-init-variants-fns",
|
|
4581
|
-
scriptStr:
|
|
4597
|
+
scriptStr: gi(),
|
|
4582
4598
|
nonce: e.nonce || ""
|
|
4583
4599
|
}
|
|
4584
4600
|
),
|
|
4585
4601
|
nt.includes(F) ? /* @__PURE__ */ s(
|
|
4586
|
-
|
|
4602
|
+
K,
|
|
4587
4603
|
{
|
|
4588
4604
|
id: "builderio-init-personalization-variants-fns",
|
|
4589
4605
|
nonce: e.nonce || "",
|
|
@@ -4591,9 +4607,9 @@ function Ni(e) {
|
|
|
4591
4607
|
}
|
|
4592
4608
|
) : null
|
|
4593
4609
|
] }) : null,
|
|
4594
|
-
t ? /* @__PURE__ */
|
|
4610
|
+
t ? /* @__PURE__ */ D(P, { children: [
|
|
4595
4611
|
/* @__PURE__ */ s(
|
|
4596
|
-
|
|
4612
|
+
te,
|
|
4597
4613
|
{
|
|
4598
4614
|
id: "builderio-variants",
|
|
4599
4615
|
styles: r(),
|
|
@@ -4601,14 +4617,14 @@ function Ni(e) {
|
|
|
4601
4617
|
}
|
|
4602
4618
|
),
|
|
4603
4619
|
/* @__PURE__ */ s(
|
|
4604
|
-
|
|
4620
|
+
K,
|
|
4605
4621
|
{
|
|
4606
4622
|
id: "builderio-variants-visibility",
|
|
4607
4623
|
scriptStr: i(),
|
|
4608
4624
|
nonce: e.nonce || ""
|
|
4609
4625
|
}
|
|
4610
4626
|
),
|
|
4611
|
-
(
|
|
4627
|
+
(o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4612
4628
|
De,
|
|
4613
4629
|
{
|
|
4614
4630
|
apiHost: e.apiHost,
|
|
@@ -4642,7 +4658,7 @@ function Ni(e) {
|
|
|
4642
4658
|
apiHost: e.apiHost,
|
|
4643
4659
|
nonce: e.nonce,
|
|
4644
4660
|
isNestedRender: e.isNestedRender,
|
|
4645
|
-
content:
|
|
4661
|
+
content: a(),
|
|
4646
4662
|
showContent: !0,
|
|
4647
4663
|
model: e.model,
|
|
4648
4664
|
data: e.data,
|
|
@@ -4670,7 +4686,7 @@ const $i = async ({
|
|
|
4670
4686
|
}) => {
|
|
4671
4687
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4672
4688
|
(e != null && e.apiKey))
|
|
4673
|
-
return
|
|
4689
|
+
return Le({
|
|
4674
4690
|
model: t.model,
|
|
4675
4691
|
apiKey: e.apiKey,
|
|
4676
4692
|
apiVersion: e.apiVersion,
|
|
@@ -4680,11 +4696,11 @@ const $i = async ({
|
|
|
4680
4696
|
}
|
|
4681
4697
|
}
|
|
4682
4698
|
}).catch((n) => {
|
|
4683
|
-
|
|
4699
|
+
ee.error("Could not fetch symbol content: ", n);
|
|
4684
4700
|
});
|
|
4685
4701
|
};
|
|
4686
4702
|
function Wi(e) {
|
|
4687
|
-
var
|
|
4703
|
+
var h, g, u, x, f;
|
|
4688
4704
|
function t() {
|
|
4689
4705
|
return "div";
|
|
4690
4706
|
}
|
|
@@ -4692,35 +4708,38 @@ function Wi(e) {
|
|
|
4692
4708
|
return "div";
|
|
4693
4709
|
}
|
|
4694
4710
|
function i() {
|
|
4695
|
-
|
|
4711
|
+
return Object.values(e.builderComponents);
|
|
4712
|
+
}
|
|
4713
|
+
function r() {
|
|
4714
|
+
var m, y;
|
|
4696
4715
|
return [
|
|
4697
|
-
e.attributes[
|
|
4716
|
+
e.attributes[J()],
|
|
4698
4717
|
"builder-symbol",
|
|
4699
|
-
(
|
|
4700
|
-
(
|
|
4718
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4719
|
+
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4701
4720
|
].filter(Boolean).join(" ");
|
|
4702
4721
|
}
|
|
4703
|
-
const [
|
|
4704
|
-
var
|
|
4705
|
-
return (
|
|
4706
|
-
}), [
|
|
4707
|
-
var
|
|
4708
|
-
return (
|
|
4722
|
+
const [a, o] = k(() => {
|
|
4723
|
+
var m;
|
|
4724
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4725
|
+
}), [l, c] = k(() => {
|
|
4726
|
+
var m;
|
|
4727
|
+
return (m = e.symbol) == null ? void 0 : m.entry;
|
|
4709
4728
|
});
|
|
4710
|
-
function
|
|
4711
|
-
var
|
|
4712
|
-
|
|
4729
|
+
function d() {
|
|
4730
|
+
var m;
|
|
4731
|
+
a && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
|
|
4713
4732
|
symbol: e.symbol,
|
|
4714
4733
|
builderContextValue: e.builderContext
|
|
4715
|
-
}).then((
|
|
4716
|
-
var
|
|
4717
|
-
|
|
4734
|
+
}).then((y) => {
|
|
4735
|
+
var b;
|
|
4736
|
+
y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
|
|
4718
4737
|
});
|
|
4719
4738
|
}
|
|
4720
|
-
return
|
|
4721
|
-
}, []),
|
|
4722
|
-
|
|
4723
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4739
|
+
return N(() => {
|
|
4740
|
+
}, []), N(() => {
|
|
4741
|
+
d();
|
|
4742
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4724
4743
|
Ni,
|
|
4725
4744
|
{
|
|
4726
4745
|
nonce: e.builderContext.nonce,
|
|
@@ -4729,17 +4748,17 @@ function Wi(e) {
|
|
|
4729
4748
|
apiKey: e.builderContext.apiKey,
|
|
4730
4749
|
context: {
|
|
4731
4750
|
...e.builderContext.context,
|
|
4732
|
-
symbolId: (
|
|
4751
|
+
symbolId: (h = e.builderBlock) == null ? void 0 : h.id
|
|
4733
4752
|
},
|
|
4734
|
-
customComponents:
|
|
4753
|
+
customComponents: i(),
|
|
4735
4754
|
data: {
|
|
4736
|
-
...(
|
|
4755
|
+
...(g = e.symbol) == null ? void 0 : g.data,
|
|
4737
4756
|
...e.builderContext.localState,
|
|
4738
|
-
...(
|
|
4757
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4739
4758
|
},
|
|
4740
4759
|
canTrack: e.builderContext.canTrack,
|
|
4741
|
-
model: (
|
|
4742
|
-
content:
|
|
4760
|
+
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4761
|
+
content: a,
|
|
4743
4762
|
linkComponent: e.builderLinkComponent,
|
|
4744
4763
|
blocksWrapper: t(),
|
|
4745
4764
|
contentWrapper: n()
|
|
@@ -4747,7 +4766,7 @@ function Wi(e) {
|
|
|
4747
4766
|
) });
|
|
4748
4767
|
}
|
|
4749
4768
|
export {
|
|
4750
|
-
|
|
4769
|
+
M as Blocks,
|
|
4751
4770
|
ve as BuilderContext,
|
|
4752
4771
|
St as Button,
|
|
4753
4772
|
cn as Columns,
|