@builder.io/sdk-react 2.0.21 → 2.0.23
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 +25 -25
- package/lib/browser/blocks-exports.mjs +509 -542
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-6e52be8e.cjs → server-entry-3855428f.cjs} +1 -1
- package/lib/browser/{server-entry-8f273525.js → server-entry-e7cbd2fc.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-0fa0cd9f.js → accordion-57df597a.js} +1 -1
- package/lib/edge/{accordion-98e5d925.cjs → accordion-91147fe9.cjs} +1 -1
- package/lib/edge/{blocks-805edb5d.js → blocks-263c1bb6.js} +6 -9
- package/lib/edge/blocks-98b19deb.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8c912189.js → button-d681583e.js} +2 -2
- package/lib/edge/{button-04692c59.cjs → button-ff78ab2a.cjs} +1 -1
- package/lib/edge/{columns-70a13cfe.js → columns-a50c2c9f.js} +4 -4
- package/lib/edge/{columns-4d8db53c.cjs → columns-d6892637.cjs} +1 -1
- package/lib/edge/{content-variants-7570438f.cjs → content-variants-83a1241a.cjs} +4 -4
- package/lib/edge/{content-variants-d11198bc.js → content-variants-978a8be6.js} +13 -18
- package/lib/edge/{evaluate-29e9d055.js → evaluate-b7da3191.js} +706 -726
- package/lib/edge/{evaluate-826010e9.cjs → evaluate-f8347208.cjs} +11 -11
- package/lib/edge/form-32085b13.js +180 -0
- package/lib/edge/form-bb1f8672.cjs +1 -0
- package/lib/edge/{get-class-prop-name-c9e11804.js → get-class-prop-name-8c8a1b1c.js} +1 -1
- package/lib/edge/{get-class-prop-name-182b0edb.cjs → get-class-prop-name-956dc1ac.cjs} +1 -1
- package/lib/edge/{img-8f2d03d2.cjs → img-9e702744.cjs} +1 -1
- package/lib/edge/{img-ca1be569.js → img-ce324880.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-0456a323.cjs → input-09bbebbb.cjs} +1 -1
- package/lib/edge/{input-3db08208.js → input-c5dda333.js} +1 -1
- package/lib/edge/{select-b851ff58.cjs → select-235baf48.cjs} +1 -1
- package/lib/edge/{select-251dfaa4.js → select-8936ea79.js} +1 -1
- package/lib/edge/{server-entry-05e6ebef.js → server-entry-b3befa52.js} +1 -1
- package/lib/edge/{server-entry-75427eb3.cjs → server-entry-f0d7962f.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-76c2cebc.js → slot-30e6c2aa.js} +4 -4
- package/lib/edge/{slot-279f992e.cjs → slot-375680d2.cjs} +1 -1
- package/lib/edge/{symbol-47130603.js → symbol-0deda8a7.js} +2 -2
- package/lib/edge/{symbol-020487c5.cjs → symbol-73a9d7cb.cjs} +1 -1
- package/lib/edge/{tabs-3cc397e4.js → tabs-577ba54e.js} +4 -4
- package/lib/edge/{tabs-c6053c2d.cjs → tabs-ffc5ae5d.cjs} +1 -1
- package/lib/edge/{text-29ef4fd5.js → text-0a14d566.js} +8 -9
- package/lib/edge/text-3dd73c6e.cjs +1 -0
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +528 -561
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{server-entry-b5908591.cjs → server-entry-a7139d8f.cjs} +1 -1
- package/lib/node/{server-entry-83392238.js → server-entry-fa11b353.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-391032cf.cjs → should-force-browser-runtime-in-node-0bf7076b.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-31b1e2f2.js → should-force-browser-runtime-in-node-ddb84649.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/evaluate.d.ts +2 -1
- package/types/functions/evaluate/helpers.d.ts +0 -1
- package/types/types/input.d.ts +1 -1
- package/lib/edge/blocks-4dac2e8c.cjs +0 -12
- package/lib/edge/form-13c77d47.cjs +0 -1
- package/lib/edge/form-28c6dcde.js +0 -183
- package/lib/edge/text-c9d83141.cjs +0 -1
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var je = Object.defineProperty;
|
|
3
|
-
var He = (e, t, n) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var X = (e, t, n) => (He(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
2
|
import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ l(w, { children:
|
|
3
|
+
import { TARGET as D, isEditing as N, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as je, setupBrowserForEditing as Me, createRegisterComponentMessage as _e, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as He, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-e7cbd2fc.js";
|
|
4
|
+
import { createContext as ke, useEffect as B, useState as T, useRef as $, useContext as ce, createElement as Ce } from "react";
|
|
5
|
+
const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && Ke.has(e.toLowerCase());
|
|
6
|
+
function ie(e) {
|
|
7
|
+
return /* @__PURE__ */ l(w, { children: ze(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
8
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
9
|
+
const j = () => {
|
|
10
|
+
switch (D) {
|
|
14
11
|
case "react":
|
|
15
12
|
case "reactNative":
|
|
16
13
|
case "rsc":
|
|
@@ -23,11 +20,11 @@ const H = () => {
|
|
|
23
20
|
return "class";
|
|
24
21
|
}
|
|
25
22
|
};
|
|
26
|
-
function
|
|
23
|
+
function Je(e) {
|
|
27
24
|
function t() {
|
|
28
25
|
return {
|
|
29
26
|
...e.attributes,
|
|
30
|
-
[
|
|
27
|
+
[j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
|
|
31
28
|
...e.link ? {
|
|
32
29
|
href: e.link,
|
|
33
30
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -38,7 +35,7 @@ function Xe(e) {
|
|
|
38
35
|
};
|
|
39
36
|
}
|
|
40
37
|
return /* @__PURE__ */ l(
|
|
41
|
-
|
|
38
|
+
ie,
|
|
42
39
|
{
|
|
43
40
|
attributes: t(),
|
|
44
41
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +44,7 @@ function Xe(e) {
|
|
|
47
44
|
}
|
|
48
45
|
);
|
|
49
46
|
}
|
|
50
|
-
const
|
|
47
|
+
const oe = ke({
|
|
51
48
|
content: null,
|
|
52
49
|
context: {},
|
|
53
50
|
localState: void 0,
|
|
@@ -61,21 +58,24 @@ const le = Ie({
|
|
|
61
58
|
BlocksWrapper: "div",
|
|
62
59
|
BlocksWrapperProps: {},
|
|
63
60
|
nonce: ""
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
61
|
+
}), Te = ke({ registeredComponents: {} });
|
|
62
|
+
function Ge(e) {
|
|
66
63
|
var t;
|
|
67
64
|
return {
|
|
68
65
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
66
|
...e.options
|
|
70
67
|
};
|
|
71
68
|
}
|
|
72
|
-
function
|
|
69
|
+
function Ye(e, ...t) {
|
|
73
70
|
const n = Object.assign({}, e);
|
|
74
71
|
for (const i of t)
|
|
75
72
|
delete n[i];
|
|
76
73
|
return n;
|
|
77
74
|
}
|
|
78
|
-
const
|
|
75
|
+
const Ie = (e, t, n) => {
|
|
76
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
77
|
+
return i === void 0 || i === e ? n : i;
|
|
78
|
+
}, Qe = ({
|
|
79
79
|
builder: e,
|
|
80
80
|
context: t,
|
|
81
81
|
event: n,
|
|
@@ -87,15 +87,15 @@ const tt = ({
|
|
|
87
87
|
builder: e,
|
|
88
88
|
context: t,
|
|
89
89
|
event: n
|
|
90
|
-
}),
|
|
90
|
+
}), Xe = () => ({
|
|
91
91
|
isEditing: N(),
|
|
92
|
-
isBrowser:
|
|
93
|
-
isServer: !
|
|
94
|
-
getUserAttributes: () =>
|
|
95
|
-
}),
|
|
92
|
+
isBrowser: L(),
|
|
93
|
+
isServer: !L(),
|
|
94
|
+
getUserAttributes: () => Ue()
|
|
95
|
+
}), Ze = (e, {
|
|
96
96
|
isExpression: t = !0
|
|
97
97
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
98
|
-
function
|
|
98
|
+
function we({
|
|
99
99
|
rootState: e,
|
|
100
100
|
localState: t,
|
|
101
101
|
rootSetState: n
|
|
@@ -105,7 +105,7 @@ function Re({
|
|
|
105
105
|
if (t && o in t)
|
|
106
106
|
return t[o];
|
|
107
107
|
const a = i[o];
|
|
108
|
-
return typeof a == "object" && a !== null ?
|
|
108
|
+
return typeof a == "object" && a !== null ? we({
|
|
109
109
|
rootState: a,
|
|
110
110
|
localState: void 0,
|
|
111
111
|
rootSetState: n ? (r) => {
|
|
@@ -120,7 +120,7 @@ function Re({
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const de = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
@@ -129,11 +129,11 @@ const fe = ({
|
|
|
129
129
|
rootSetState: a,
|
|
130
130
|
rootState: r
|
|
131
131
|
}) => {
|
|
132
|
-
const s =
|
|
132
|
+
const s = Qe({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: i,
|
|
136
|
-
state:
|
|
136
|
+
state: we({
|
|
137
137
|
rootState: r,
|
|
138
138
|
localState: o,
|
|
139
139
|
rootSetState: a
|
|
@@ -141,103 +141,82 @@ const fe = ({
|
|
|
141
141
|
});
|
|
142
142
|
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
143
143
|
};
|
|
144
|
-
function
|
|
144
|
+
function et() {
|
|
145
145
|
var e;
|
|
146
|
-
return typeof process != "undefined" &&
|
|
146
|
+
return typeof process != "undefined" && q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const tt = ({
|
|
149
149
|
shouldLogWarning: e
|
|
150
150
|
}) => {
|
|
151
151
|
var o;
|
|
152
|
-
if (!
|
|
152
|
+
if (!et())
|
|
153
153
|
return !1;
|
|
154
154
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
155
|
-
return t && n && !i ? (e &&
|
|
156
|
-
},
|
|
155
|
+
return t && n && !i ? (e && z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
156
|
+
}, nt = (e) => (L() || tt({
|
|
157
157
|
shouldLogWarning: !0
|
|
158
|
-
}),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
...t,
|
|
162
|
-
// replace the event with a random number to break cache
|
|
163
|
-
// thats because we can't serialize the event object due to circular refs in DOM node refs.
|
|
164
|
-
event: t.event ? Math.random() : void 0
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
static getCachedValue(t) {
|
|
168
|
-
return $.cache.get(t);
|
|
169
|
-
}
|
|
170
|
-
static setCachedValue(t, n) {
|
|
171
|
-
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
172
|
-
value: n
|
|
173
|
-
});
|
|
174
|
-
}
|
|
158
|
+
}), de(e)), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
|
|
159
|
+
var t, n, i, o, a, r;
|
|
160
|
+
return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
175
161
|
};
|
|
176
|
-
|
|
177
|
-
let O = $;
|
|
178
|
-
function M({
|
|
162
|
+
function O({
|
|
179
163
|
code: e,
|
|
180
164
|
context: t,
|
|
181
165
|
localState: n,
|
|
182
166
|
rootState: i,
|
|
183
167
|
rootSetState: o,
|
|
184
168
|
event: a,
|
|
185
|
-
isExpression: r = !0
|
|
186
|
-
enableCache: s
|
|
169
|
+
isExpression: r = !0
|
|
187
170
|
}) {
|
|
188
|
-
if (e === "")
|
|
171
|
+
if (e.trim() === "")
|
|
189
172
|
return;
|
|
173
|
+
const s = at(e.trim());
|
|
174
|
+
if (s)
|
|
175
|
+
return Ie({
|
|
176
|
+
...i,
|
|
177
|
+
...n
|
|
178
|
+
}, s);
|
|
190
179
|
const d = {
|
|
191
|
-
code:
|
|
180
|
+
code: Ze(e, {
|
|
192
181
|
isExpression: r
|
|
193
182
|
}),
|
|
194
|
-
builder:
|
|
183
|
+
builder: Xe(),
|
|
195
184
|
context: t,
|
|
196
185
|
event: a,
|
|
197
186
|
rootSetState: o,
|
|
198
187
|
rootState: i,
|
|
199
188
|
localState: n
|
|
200
189
|
};
|
|
201
|
-
if (s && !lt) {
|
|
202
|
-
const c = O.getCacheKey(d), f = O.getCachedValue(c);
|
|
203
|
-
if (f)
|
|
204
|
-
return f.value;
|
|
205
|
-
}
|
|
206
190
|
try {
|
|
207
|
-
|
|
208
|
-
if (s) {
|
|
209
|
-
const f = O.getCacheKey(d);
|
|
210
|
-
O.setCachedValue(f, c);
|
|
211
|
-
}
|
|
212
|
-
return c;
|
|
191
|
+
return nt(d);
|
|
213
192
|
} catch (c) {
|
|
214
|
-
|
|
193
|
+
z.error("Failed code evaluation: " + c.message, {
|
|
215
194
|
code: e
|
|
216
195
|
});
|
|
217
196
|
return;
|
|
218
197
|
}
|
|
219
198
|
}
|
|
220
|
-
const
|
|
199
|
+
const ae = (e) => JSON.parse(JSON.stringify(e)), Ee = (e, t, n) => {
|
|
221
200
|
if (Object(e) !== e)
|
|
222
201
|
return e;
|
|
223
202
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
224
203
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
225
204
|
};
|
|
226
|
-
function
|
|
205
|
+
function te(e) {
|
|
227
206
|
if (e === null || typeof e != "object")
|
|
228
207
|
return e;
|
|
229
208
|
if (Array.isArray(e))
|
|
230
|
-
return e.map((n) =>
|
|
209
|
+
return e.map((n) => te(n));
|
|
231
210
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
232
211
|
return e;
|
|
233
212
|
const t = {};
|
|
234
213
|
for (const n in e)
|
|
235
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
214
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
|
|
236
215
|
return t;
|
|
237
216
|
}
|
|
238
|
-
const
|
|
239
|
-
if (
|
|
240
|
-
const t =
|
|
217
|
+
const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
|
|
218
|
+
if (rt) {
|
|
219
|
+
const t = ae(e);
|
|
241
220
|
return {
|
|
242
221
|
...t,
|
|
243
222
|
properties: {
|
|
@@ -248,7 +227,7 @@ const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) =
|
|
|
248
227
|
}
|
|
249
228
|
};
|
|
250
229
|
} else {
|
|
251
|
-
const t =
|
|
230
|
+
const t = te(Ye(e, "children", "meta"));
|
|
252
231
|
return {
|
|
253
232
|
...t,
|
|
254
233
|
properties: {
|
|
@@ -261,7 +240,7 @@ const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) =
|
|
|
261
240
|
meta: e.meta
|
|
262
241
|
};
|
|
263
242
|
}
|
|
264
|
-
},
|
|
243
|
+
}, st = ({
|
|
265
244
|
block: e,
|
|
266
245
|
context: t,
|
|
267
246
|
localState: n,
|
|
@@ -270,21 +249,20 @@ const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) =
|
|
|
270
249
|
}) => {
|
|
271
250
|
if (!e.bindings)
|
|
272
251
|
return e;
|
|
273
|
-
const a =
|
|
252
|
+
const a = lt(e);
|
|
274
253
|
for (const r in e.bindings) {
|
|
275
|
-
const s = e.bindings[r], d =
|
|
254
|
+
const s = e.bindings[r], d = O({
|
|
276
255
|
code: s,
|
|
277
256
|
localState: n,
|
|
278
257
|
rootState: i,
|
|
279
258
|
rootSetState: o,
|
|
280
|
-
context: t
|
|
281
|
-
enableCache: !0
|
|
259
|
+
context: t
|
|
282
260
|
});
|
|
283
|
-
|
|
261
|
+
Ee(a, r, d);
|
|
284
262
|
}
|
|
285
263
|
return a;
|
|
286
264
|
};
|
|
287
|
-
function
|
|
265
|
+
function ct({
|
|
288
266
|
block: e,
|
|
289
267
|
context: t,
|
|
290
268
|
shouldEvaluateBindings: n,
|
|
@@ -293,7 +271,7 @@ function ut({
|
|
|
293
271
|
rootSetState: a
|
|
294
272
|
}) {
|
|
295
273
|
const r = e;
|
|
296
|
-
return n ?
|
|
274
|
+
return n ? st({
|
|
297
275
|
block: r,
|
|
298
276
|
localState: i,
|
|
299
277
|
rootState: o,
|
|
@@ -301,8 +279,8 @@ function ut({
|
|
|
301
279
|
context: t
|
|
302
280
|
}) : r;
|
|
303
281
|
}
|
|
304
|
-
const
|
|
305
|
-
function
|
|
282
|
+
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
283
|
+
function dt(e, t, n = {}) {
|
|
306
284
|
let i, o, a, r = null, s = 0;
|
|
307
285
|
const d = function() {
|
|
308
286
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -310,11 +288,11 @@ function mt(e, t, n = {}) {
|
|
|
310
288
|
return function() {
|
|
311
289
|
const c = Date.now();
|
|
312
290
|
!s && n.leading === !1 && (s = c);
|
|
313
|
-
const
|
|
314
|
-
return i = this, o = arguments,
|
|
291
|
+
const h = t - (c - s);
|
|
292
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
|
|
315
293
|
};
|
|
316
294
|
}
|
|
317
|
-
function
|
|
295
|
+
function U(e, ...t) {
|
|
318
296
|
const n = Object(e);
|
|
319
297
|
for (let i = 1; i < arguments.length; i++) {
|
|
320
298
|
const o = arguments[i];
|
|
@@ -324,118 +302,118 @@ function j(e, ...t) {
|
|
|
324
302
|
}
|
|
325
303
|
return n;
|
|
326
304
|
}
|
|
327
|
-
function
|
|
305
|
+
function ut(e) {
|
|
328
306
|
for (const t of e)
|
|
329
307
|
switch (t.trigger) {
|
|
330
308
|
case "pageLoad":
|
|
331
|
-
|
|
309
|
+
Be(t);
|
|
332
310
|
break;
|
|
333
311
|
case "scrollInView":
|
|
334
|
-
|
|
312
|
+
ft(t);
|
|
335
313
|
break;
|
|
336
314
|
}
|
|
337
315
|
}
|
|
338
|
-
function
|
|
316
|
+
function Re(e) {
|
|
339
317
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
340
318
|
}
|
|
341
|
-
function
|
|
342
|
-
const n =
|
|
319
|
+
function Pe(e, t) {
|
|
320
|
+
const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
343
321
|
for (const s of r)
|
|
344
322
|
for (const d of n)
|
|
345
323
|
d in s || (s[d] = i[d]);
|
|
346
324
|
}
|
|
347
|
-
function
|
|
325
|
+
function mt(e) {
|
|
348
326
|
const t = [];
|
|
349
327
|
for (const n of e.steps)
|
|
350
328
|
for (const i in n.styles)
|
|
351
329
|
t.indexOf(i) === -1 && t.push(i);
|
|
352
330
|
return t;
|
|
353
331
|
}
|
|
354
|
-
function
|
|
332
|
+
function Be(e) {
|
|
355
333
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
356
334
|
if (!t.length) {
|
|
357
|
-
|
|
335
|
+
Re(e.elementId || e.id || "");
|
|
358
336
|
return;
|
|
359
337
|
}
|
|
360
338
|
Array.from(t).forEach((n) => {
|
|
361
|
-
|
|
362
|
-
n.style.transition = `all ${e.duration}s ${
|
|
339
|
+
Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
340
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
363
341
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
364
342
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
365
343
|
});
|
|
366
344
|
});
|
|
367
345
|
}
|
|
368
|
-
function
|
|
346
|
+
function ft(e) {
|
|
369
347
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
370
348
|
if (!t.length) {
|
|
371
|
-
|
|
349
|
+
Re(e.elementId || e.id || "");
|
|
372
350
|
return;
|
|
373
351
|
}
|
|
374
352
|
Array.from(t).forEach((n) => {
|
|
375
|
-
|
|
353
|
+
Pe(e, n);
|
|
376
354
|
let i = !1, o = !1;
|
|
377
355
|
function a() {
|
|
378
356
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
379
|
-
|
|
357
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
380
358
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
381
359
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
382
|
-
})) : e.repeat && i && !o && !s(n) && (i = !1,
|
|
360
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
383
361
|
}
|
|
384
|
-
const r =
|
|
362
|
+
const r = dt(a, 200, {
|
|
385
363
|
leading: !1
|
|
386
364
|
});
|
|
387
|
-
function s(
|
|
388
|
-
const b =
|
|
389
|
-
return b.bottom > g && b.top <
|
|
365
|
+
function s(h) {
|
|
366
|
+
const b = h.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
|
|
367
|
+
return b.bottom > g && b.top < f - g;
|
|
390
368
|
}
|
|
391
369
|
const d = e.steps[0].styles;
|
|
392
370
|
function c() {
|
|
393
|
-
|
|
371
|
+
U(n.style, d);
|
|
394
372
|
}
|
|
395
373
|
c(), setTimeout(() => {
|
|
396
|
-
n.style.transition = `all ${e.duration}s ${
|
|
374
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
397
375
|
}), document.addEventListener("scroll", r, {
|
|
398
376
|
capture: !0,
|
|
399
377
|
passive: !0
|
|
400
378
|
}), a();
|
|
401
379
|
});
|
|
402
380
|
}
|
|
403
|
-
const
|
|
381
|
+
const Ve = (e) => Object.entries(e).map(([n, i]) => {
|
|
404
382
|
if (typeof i == "string")
|
|
405
|
-
return `${
|
|
406
|
-
}).filter(
|
|
407
|
-
`),
|
|
383
|
+
return `${J(n)}: ${i};`;
|
|
384
|
+
}).filter(q), ht = (e) => Ve(e).join(`
|
|
385
|
+
`), _ = ({
|
|
408
386
|
mediaQuery: e,
|
|
409
387
|
className: t,
|
|
410
388
|
styles: n
|
|
411
389
|
}) => {
|
|
412
390
|
const i = `.${t} {
|
|
413
|
-
${
|
|
391
|
+
${ht(n)}
|
|
414
392
|
}`;
|
|
415
393
|
return e ? `${e} {
|
|
416
394
|
${i}
|
|
417
395
|
}` : i;
|
|
418
396
|
};
|
|
419
|
-
function
|
|
397
|
+
function gt({
|
|
420
398
|
style: e
|
|
421
399
|
}) {
|
|
422
400
|
return e;
|
|
423
401
|
}
|
|
424
|
-
const
|
|
402
|
+
const bt = ({
|
|
425
403
|
block: e,
|
|
426
404
|
context: t
|
|
427
|
-
}) =>
|
|
405
|
+
}) => Ae(gt({
|
|
428
406
|
style: e.style || {},
|
|
429
407
|
context: t,
|
|
430
408
|
block: e
|
|
431
409
|
}));
|
|
432
|
-
function
|
|
433
|
-
switch (
|
|
410
|
+
function Ae(e) {
|
|
411
|
+
switch (D) {
|
|
434
412
|
case "svelte":
|
|
435
413
|
case "vue":
|
|
436
414
|
case "solid":
|
|
437
415
|
case "angular":
|
|
438
|
-
return
|
|
416
|
+
return Ve(e).join(" ");
|
|
439
417
|
case "qwik":
|
|
440
418
|
case "reactNative":
|
|
441
419
|
case "react":
|
|
@@ -443,7 +421,7 @@ function Ne(e) {
|
|
|
443
421
|
return e;
|
|
444
422
|
}
|
|
445
423
|
}
|
|
446
|
-
const
|
|
424
|
+
const pt = ({
|
|
447
425
|
block: e,
|
|
448
426
|
registeredComponents: t
|
|
449
427
|
}) => {
|
|
@@ -457,7 +435,7 @@ const xt = ({
|
|
|
457
435
|
console.warn(`
|
|
458
436
|
Could not find a registered component named "${n}".
|
|
459
437
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
460
|
-
},
|
|
438
|
+
}, yt = ({
|
|
461
439
|
block: e,
|
|
462
440
|
context: t
|
|
463
441
|
}) => {
|
|
@@ -467,13 +445,12 @@ const xt = ({
|
|
|
467
445
|
} = e;
|
|
468
446
|
if (!(n != null && n.collection))
|
|
469
447
|
return;
|
|
470
|
-
const o =
|
|
448
|
+
const o = O({
|
|
471
449
|
code: n.collection,
|
|
472
450
|
localState: t.localState,
|
|
473
451
|
rootState: t.rootState,
|
|
474
452
|
rootSetState: t.rootSetState,
|
|
475
|
-
context: t.context
|
|
476
|
-
enableCache: !0
|
|
453
|
+
context: t.context
|
|
477
454
|
});
|
|
478
455
|
if (!Array.isArray(o))
|
|
479
456
|
return;
|
|
@@ -491,27 +468,27 @@ const xt = ({
|
|
|
491
468
|
},
|
|
492
469
|
block: i
|
|
493
470
|
}));
|
|
494
|
-
},
|
|
471
|
+
}, xt = (e, t) => {
|
|
495
472
|
var n;
|
|
496
473
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
497
474
|
builderLinkComponent: t
|
|
498
475
|
} : {};
|
|
499
|
-
},
|
|
476
|
+
}, vt = (e, t) => {
|
|
500
477
|
var n;
|
|
501
478
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
502
479
|
builderComponents: t
|
|
503
480
|
} : {};
|
|
504
|
-
},
|
|
481
|
+
}, St = (e, t) => {
|
|
505
482
|
var n;
|
|
506
483
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
507
484
|
builderBlock: t
|
|
508
485
|
} : {};
|
|
509
|
-
},
|
|
486
|
+
}, kt = (e, t) => {
|
|
510
487
|
var n;
|
|
511
488
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
512
489
|
builderContext: t
|
|
513
490
|
} : {};
|
|
514
|
-
},
|
|
491
|
+
}, We = {
|
|
515
492
|
small: {
|
|
516
493
|
min: 320,
|
|
517
494
|
default: 321,
|
|
@@ -527,11 +504,11 @@ const xt = ({
|
|
|
527
504
|
default: 991,
|
|
528
505
|
max: 1200
|
|
529
506
|
}
|
|
530
|
-
},
|
|
507
|
+
}, ue = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ne = ({
|
|
531
508
|
small: e,
|
|
532
509
|
medium: t
|
|
533
510
|
}) => {
|
|
534
|
-
const n =
|
|
511
|
+
const n = ae(We);
|
|
535
512
|
if (!e || !t)
|
|
536
513
|
return n;
|
|
537
514
|
const i = Math.floor(e / 2);
|
|
@@ -554,7 +531,7 @@ const xt = ({
|
|
|
554
531
|
default: a + 1
|
|
555
532
|
}, n;
|
|
556
533
|
};
|
|
557
|
-
function
|
|
534
|
+
function G(e) {
|
|
558
535
|
return /* @__PURE__ */ l(
|
|
559
536
|
"style",
|
|
560
537
|
{
|
|
@@ -564,32 +541,32 @@ function Q(e) {
|
|
|
564
541
|
}
|
|
565
542
|
);
|
|
566
543
|
}
|
|
567
|
-
function
|
|
544
|
+
function Ct(e) {
|
|
568
545
|
function t() {
|
|
569
546
|
const i = e.block;
|
|
570
|
-
return
|
|
547
|
+
return q(i.hide) ? !i.hide : q(i.show) ? i.show : !0;
|
|
571
548
|
}
|
|
572
549
|
function n() {
|
|
573
550
|
var x, R, C;
|
|
574
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
551
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Ne(
|
|
575
552
|
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
576
|
-
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small,
|
|
577
|
-
if (!
|
|
553
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
554
|
+
if (!h)
|
|
578
555
|
return "";
|
|
579
|
-
const b = s ?
|
|
580
|
-
className:
|
|
556
|
+
const b = s ? _({
|
|
557
|
+
className: h,
|
|
581
558
|
styles: s
|
|
582
|
-
}) : "",
|
|
583
|
-
className:
|
|
559
|
+
}) : "", f = d ? _({
|
|
560
|
+
className: h,
|
|
584
561
|
styles: d,
|
|
585
|
-
mediaQuery:
|
|
562
|
+
mediaQuery: ue(
|
|
586
563
|
"medium",
|
|
587
564
|
r
|
|
588
565
|
)
|
|
589
|
-
}) : "", v = c ?
|
|
590
|
-
className:
|
|
566
|
+
}) : "", v = c ? _({
|
|
567
|
+
className: h,
|
|
591
568
|
styles: c,
|
|
592
|
-
mediaQuery:
|
|
569
|
+
mediaQuery: ue(
|
|
593
570
|
"small",
|
|
594
571
|
r
|
|
595
572
|
)
|
|
@@ -597,11 +574,11 @@ function It(e) {
|
|
|
597
574
|
let S = "";
|
|
598
575
|
if (g) {
|
|
599
576
|
const k = ((C = (R = g.steps) == null ? void 0 : R[1]) == null ? void 0 : C.styles) || {};
|
|
600
|
-
S =
|
|
601
|
-
className: `${
|
|
577
|
+
S = _({
|
|
578
|
+
className: `${h}:hover`,
|
|
602
579
|
styles: {
|
|
603
580
|
...k,
|
|
604
|
-
transition: `all ${g.duration}s ${
|
|
581
|
+
transition: `all ${g.duration}s ${J(
|
|
605
582
|
g.easing
|
|
606
583
|
)}`,
|
|
607
584
|
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
@@ -610,13 +587,13 @@ function It(e) {
|
|
|
610
587
|
}
|
|
611
588
|
return [
|
|
612
589
|
b,
|
|
613
|
-
|
|
590
|
+
f,
|
|
614
591
|
v,
|
|
615
592
|
S
|
|
616
593
|
].join(" ");
|
|
617
594
|
}
|
|
618
595
|
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
619
|
-
|
|
596
|
+
G,
|
|
620
597
|
{
|
|
621
598
|
id: "builderio-block",
|
|
622
599
|
styles: n(),
|
|
@@ -624,29 +601,28 @@ function It(e) {
|
|
|
624
601
|
}
|
|
625
602
|
) }) : null });
|
|
626
603
|
}
|
|
627
|
-
function
|
|
604
|
+
function Tt(e) {
|
|
628
605
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
606
|
}
|
|
630
|
-
const
|
|
607
|
+
const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => O({
|
|
631
608
|
code: e,
|
|
632
609
|
context: t.context,
|
|
633
610
|
localState: t.localState,
|
|
634
611
|
rootState: t.rootState,
|
|
635
612
|
rootSetState: t.rootSetState,
|
|
636
613
|
event: n,
|
|
637
|
-
isExpression: !1
|
|
638
|
-
enableCache: !0
|
|
614
|
+
isExpression: !1
|
|
639
615
|
});
|
|
640
|
-
function
|
|
616
|
+
function Fe(e) {
|
|
641
617
|
var i;
|
|
642
618
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
643
619
|
for (const o in n) {
|
|
644
620
|
if (!n.hasOwnProperty(o))
|
|
645
621
|
continue;
|
|
646
622
|
const a = n[o];
|
|
647
|
-
let r =
|
|
623
|
+
let r = It(o);
|
|
648
624
|
if (e.stripPrefix)
|
|
649
|
-
switch (
|
|
625
|
+
switch (D) {
|
|
650
626
|
case "vue":
|
|
651
627
|
r = r.replace("v-on:", "");
|
|
652
628
|
break;
|
|
@@ -654,49 +630,49 @@ function De(e) {
|
|
|
654
630
|
r = r.replace("on:", "");
|
|
655
631
|
break;
|
|
656
632
|
}
|
|
657
|
-
t[r] =
|
|
633
|
+
t[r] = wt(a, e);
|
|
658
634
|
}
|
|
659
635
|
return t;
|
|
660
636
|
}
|
|
661
|
-
function
|
|
637
|
+
function Et({
|
|
662
638
|
properties: e
|
|
663
639
|
}) {
|
|
664
640
|
return e;
|
|
665
641
|
}
|
|
666
|
-
const
|
|
642
|
+
const Rt = (e) => ({
|
|
667
643
|
href: e.href
|
|
668
644
|
});
|
|
669
|
-
function
|
|
645
|
+
function re({
|
|
670
646
|
block: e,
|
|
671
647
|
context: t
|
|
672
648
|
}) {
|
|
673
649
|
var i;
|
|
674
650
|
const n = {
|
|
675
|
-
...
|
|
651
|
+
...Rt(e),
|
|
676
652
|
...e.properties,
|
|
677
653
|
"builder-id": e.id,
|
|
678
|
-
style:
|
|
654
|
+
style: bt({
|
|
679
655
|
block: e,
|
|
680
656
|
context: t
|
|
681
657
|
}),
|
|
682
|
-
[
|
|
658
|
+
[j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
683
659
|
};
|
|
684
|
-
return
|
|
660
|
+
return Et({
|
|
685
661
|
properties: n,
|
|
686
662
|
context: t,
|
|
687
663
|
block: e
|
|
688
664
|
});
|
|
689
665
|
}
|
|
690
|
-
function
|
|
666
|
+
function Pt(e) {
|
|
691
667
|
return /* @__PURE__ */ l(
|
|
692
|
-
|
|
668
|
+
ie,
|
|
693
669
|
{
|
|
694
670
|
TagName: e.Wrapper,
|
|
695
|
-
attributes:
|
|
671
|
+
attributes: re({
|
|
696
672
|
block: e.block,
|
|
697
673
|
context: e.context
|
|
698
674
|
}),
|
|
699
|
-
actionAttributes:
|
|
675
|
+
actionAttributes: Fe({
|
|
700
676
|
block: e.block,
|
|
701
677
|
rootState: e.context.rootState,
|
|
702
678
|
rootSetState: e.context.rootSetState,
|
|
@@ -708,18 +684,18 @@ function Vt(e) {
|
|
|
708
684
|
}
|
|
709
685
|
);
|
|
710
686
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
687
|
+
function Bt(e) {
|
|
688
|
+
return B(() => {
|
|
713
689
|
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
714
690
|
}
|
|
715
|
-
function
|
|
691
|
+
function Vt(e) {
|
|
716
692
|
function t() {
|
|
717
693
|
return e.includeBlockProps ? {
|
|
718
|
-
...
|
|
694
|
+
...re({
|
|
719
695
|
block: e.block,
|
|
720
696
|
context: e.context
|
|
721
697
|
}),
|
|
722
|
-
...
|
|
698
|
+
...Fe({
|
|
723
699
|
block: e.block,
|
|
724
700
|
rootState: e.context.rootState,
|
|
725
701
|
rootSetState: e.context.rootSetState,
|
|
@@ -729,7 +705,7 @@ function Wt(e) {
|
|
|
729
705
|
} : {};
|
|
730
706
|
}
|
|
731
707
|
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
732
|
-
|
|
708
|
+
Bt,
|
|
733
709
|
{
|
|
734
710
|
load: e.Wrapper.load,
|
|
735
711
|
fallback: e.Wrapper.fallback,
|
|
@@ -739,7 +715,7 @@ function Wt(e) {
|
|
|
739
715
|
}
|
|
740
716
|
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
741
717
|
}
|
|
742
|
-
const
|
|
718
|
+
const At = ({
|
|
743
719
|
componentOptions: e,
|
|
744
720
|
builderBlock: t,
|
|
745
721
|
context: n,
|
|
@@ -755,7 +731,7 @@ const Nt = ({
|
|
|
755
731
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
756
732
|
*/
|
|
757
733
|
...o ? {
|
|
758
|
-
attributes:
|
|
734
|
+
attributes: re({
|
|
759
735
|
block: t,
|
|
760
736
|
context: r
|
|
761
737
|
})
|
|
@@ -769,15 +745,15 @@ const Nt = ({
|
|
|
769
745
|
includeBlockProps: o
|
|
770
746
|
} : s;
|
|
771
747
|
};
|
|
772
|
-
function
|
|
748
|
+
function me(e) {
|
|
773
749
|
var i;
|
|
774
750
|
const [t, n] = T(
|
|
775
|
-
() => e.isInteractive ?
|
|
751
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
776
752
|
);
|
|
777
753
|
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
778
754
|
t,
|
|
779
755
|
{
|
|
780
|
-
...
|
|
756
|
+
...At({
|
|
781
757
|
componentOptions: e.componentOptions,
|
|
782
758
|
builderBlock: e.builderBlock,
|
|
783
759
|
context: e.context,
|
|
@@ -788,7 +764,7 @@ function ge(e) {
|
|
|
788
764
|
contextValue: e.context
|
|
789
765
|
}),
|
|
790
766
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
791
|
-
|
|
767
|
+
M,
|
|
792
768
|
{
|
|
793
769
|
block: o,
|
|
794
770
|
context: e.context,
|
|
@@ -800,10 +776,10 @@ function ge(e) {
|
|
|
800
776
|
}
|
|
801
777
|
) }) : null });
|
|
802
778
|
}
|
|
803
|
-
function
|
|
779
|
+
function fe(e) {
|
|
804
780
|
const [t, n] = T(() => e.repeatContext);
|
|
805
|
-
return /* @__PURE__ */ l(
|
|
806
|
-
|
|
781
|
+
return /* @__PURE__ */ l(oe.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
782
|
+
M,
|
|
807
783
|
{
|
|
808
784
|
block: e.block,
|
|
809
785
|
context: t,
|
|
@@ -812,10 +788,10 @@ function be(e) {
|
|
|
812
788
|
}
|
|
813
789
|
) });
|
|
814
790
|
}
|
|
815
|
-
function
|
|
816
|
-
var
|
|
791
|
+
function M(e) {
|
|
792
|
+
var h, b, f, v;
|
|
817
793
|
function t() {
|
|
818
|
-
return
|
|
794
|
+
return yt({
|
|
819
795
|
block: e.block,
|
|
820
796
|
context: e.context
|
|
821
797
|
});
|
|
@@ -826,9 +802,9 @@ function K(e) {
|
|
|
826
802
|
}));
|
|
827
803
|
function o() {
|
|
828
804
|
var S;
|
|
829
|
-
if (n.value && !n.update && !
|
|
805
|
+
if (n.value && !n.update && !ve())
|
|
830
806
|
return n.value;
|
|
831
|
-
const g = (S = e.block.repeat) != null && S.collection ? e.block :
|
|
807
|
+
const g = (S = e.block.repeat) != null && S.collection ? e.block : ct({
|
|
832
808
|
block: e.block,
|
|
833
809
|
localState: e.context.localState,
|
|
834
810
|
rootState: e.context.rootState,
|
|
@@ -839,7 +815,7 @@ function K(e) {
|
|
|
839
815
|
return n.value = g, n.update = !1, g;
|
|
840
816
|
}
|
|
841
817
|
function a() {
|
|
842
|
-
return
|
|
818
|
+
return pt({
|
|
843
819
|
block: o(),
|
|
844
820
|
registeredComponents: e.registeredComponents
|
|
845
821
|
});
|
|
@@ -865,11 +841,11 @@ function K(e) {
|
|
|
865
841
|
blockChildren: (g = o().children) != null ? g : [],
|
|
866
842
|
componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
|
|
867
843
|
componentOptions: {
|
|
868
|
-
...
|
|
869
|
-
...
|
|
870
|
-
...
|
|
871
|
-
...
|
|
872
|
-
...
|
|
844
|
+
...Ge(o()),
|
|
845
|
+
...St(a(), o()),
|
|
846
|
+
...kt(a(), e.context),
|
|
847
|
+
...xt(a(), e.linkComponent),
|
|
848
|
+
...vt(
|
|
873
849
|
a(),
|
|
874
850
|
e.registeredComponents
|
|
875
851
|
)
|
|
@@ -879,23 +855,23 @@ function K(e) {
|
|
|
879
855
|
registeredComponents: e.registeredComponents,
|
|
880
856
|
builderBlock: o(),
|
|
881
857
|
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
882
|
-
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC &&
|
|
858
|
+
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && D === "rsc")
|
|
883
859
|
};
|
|
884
860
|
}
|
|
885
|
-
return
|
|
861
|
+
return B(() => {
|
|
886
862
|
const g = o().id, S = o().animations;
|
|
887
|
-
S && g &&
|
|
863
|
+
S && g && ut(
|
|
888
864
|
S.map((x) => ({
|
|
889
865
|
...x,
|
|
890
866
|
elementId: g
|
|
891
867
|
}))
|
|
892
868
|
);
|
|
893
|
-
}, []),
|
|
869
|
+
}, []), B(() => {
|
|
894
870
|
n.update = !0;
|
|
895
871
|
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
|
|
896
|
-
/* @__PURE__ */ l(
|
|
897
|
-
(
|
|
898
|
-
|
|
872
|
+
/* @__PURE__ */ l(Ct, { block: o(), context: e.context }),
|
|
873
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
|
|
874
|
+
fe,
|
|
899
875
|
{
|
|
900
876
|
repeatContext: g.context,
|
|
901
877
|
block: g.block,
|
|
@@ -904,7 +880,7 @@ function K(e) {
|
|
|
904
880
|
},
|
|
905
881
|
S
|
|
906
882
|
)) }) : /* @__PURE__ */ l(
|
|
907
|
-
|
|
883
|
+
me,
|
|
908
884
|
{
|
|
909
885
|
componentRef: c().componentRef,
|
|
910
886
|
componentOptions: c().componentOptions,
|
|
@@ -916,8 +892,8 @@ function K(e) {
|
|
|
916
892
|
includeBlockProps: c().includeBlockProps,
|
|
917
893
|
isInteractive: c().isInteractive
|
|
918
894
|
}
|
|
919
|
-
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (
|
|
920
|
-
|
|
895
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (f = t()) == null ? void 0 : f.map((g, S) => /* @__PURE__ */ l(
|
|
896
|
+
fe,
|
|
921
897
|
{
|
|
922
898
|
repeatContext: g.context,
|
|
923
899
|
block: g.block,
|
|
@@ -926,14 +902,14 @@ function K(e) {
|
|
|
926
902
|
},
|
|
927
903
|
S
|
|
928
904
|
)) }) : /* @__PURE__ */ V(
|
|
929
|
-
|
|
905
|
+
Pt,
|
|
930
906
|
{
|
|
931
907
|
Wrapper: r(),
|
|
932
908
|
block: o(),
|
|
933
909
|
context: e.context,
|
|
934
910
|
children: [
|
|
935
911
|
/* @__PURE__ */ l(
|
|
936
|
-
|
|
912
|
+
me,
|
|
937
913
|
{
|
|
938
914
|
componentRef: c().componentRef,
|
|
939
915
|
componentOptions: c().componentOptions,
|
|
@@ -947,7 +923,7 @@ function K(e) {
|
|
|
947
923
|
}
|
|
948
924
|
),
|
|
949
925
|
(b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
|
|
950
|
-
|
|
926
|
+
M,
|
|
951
927
|
{
|
|
952
928
|
block: g,
|
|
953
929
|
registeredComponents: e.registeredComponents,
|
|
@@ -961,8 +937,8 @@ function K(e) {
|
|
|
961
937
|
) })
|
|
962
938
|
] }) : null });
|
|
963
939
|
}
|
|
964
|
-
function
|
|
965
|
-
const t =
|
|
940
|
+
function Wt(e) {
|
|
941
|
+
const t = $(null);
|
|
966
942
|
function n() {
|
|
967
943
|
var a;
|
|
968
944
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
@@ -993,7 +969,7 @@ function Ft(e) {
|
|
|
993
969
|
"*"
|
|
994
970
|
));
|
|
995
971
|
}
|
|
996
|
-
return
|
|
972
|
+
return B(() => {
|
|
997
973
|
}, []), /* @__PURE__ */ V(w, { children: [
|
|
998
974
|
/* @__PURE__ */ l(
|
|
999
975
|
e.BlocksWrapper,
|
|
@@ -1019,9 +995,9 @@ function Ft(e) {
|
|
|
1019
995
|
}
|
|
1020
996
|
function F(e) {
|
|
1021
997
|
var i, o, a;
|
|
1022
|
-
const t =
|
|
998
|
+
const t = ce(oe), n = ce(Te);
|
|
1023
999
|
return /* @__PURE__ */ l(
|
|
1024
|
-
|
|
1000
|
+
Wt,
|
|
1025
1001
|
{
|
|
1026
1002
|
blocks: e.blocks,
|
|
1027
1003
|
parent: e.parent,
|
|
@@ -1030,7 +1006,7 @@ function F(e) {
|
|
|
1030
1006
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1031
1007
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1032
1008
|
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1033
|
-
|
|
1009
|
+
M,
|
|
1034
1010
|
{
|
|
1035
1011
|
block: r,
|
|
1036
1012
|
linkComponent: e.linkComponent,
|
|
@@ -1042,8 +1018,8 @@ function F(e) {
|
|
|
1042
1018
|
}
|
|
1043
1019
|
);
|
|
1044
1020
|
}
|
|
1045
|
-
const
|
|
1046
|
-
function
|
|
1021
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1022
|
+
function Ft(e) {
|
|
1047
1023
|
var k, W;
|
|
1048
1024
|
const [t, n] = T(
|
|
1049
1025
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -1061,7 +1037,7 @@ function Dt(e) {
|
|
|
1061
1037
|
const y = d(m), I = t * (i.length - 1) * (y / 100);
|
|
1062
1038
|
return `calc(${y}% - ${I}px)`;
|
|
1063
1039
|
}
|
|
1064
|
-
function
|
|
1040
|
+
function h({
|
|
1065
1041
|
stackedStyle: m,
|
|
1066
1042
|
desktopStyle: y
|
|
1067
1043
|
}) {
|
|
@@ -1073,14 +1049,14 @@ function Dt(e) {
|
|
|
1073
1049
|
}) {
|
|
1074
1050
|
return a === "never" ? y : m;
|
|
1075
1051
|
}
|
|
1076
|
-
const [
|
|
1052
|
+
const [f, v] = T(
|
|
1077
1053
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1078
1054
|
);
|
|
1079
1055
|
function g() {
|
|
1080
1056
|
return {
|
|
1081
|
-
"--flex-dir":
|
|
1082
|
-
"--flex-dir-tablet":
|
|
1083
|
-
stackedStyle:
|
|
1057
|
+
"--flex-dir": f,
|
|
1058
|
+
"--flex-dir-tablet": h({
|
|
1059
|
+
stackedStyle: f,
|
|
1084
1060
|
desktopStyle: "row"
|
|
1085
1061
|
})
|
|
1086
1062
|
};
|
|
@@ -1103,11 +1079,11 @@ function Dt(e) {
|
|
|
1103
1079
|
stackedStyle: E,
|
|
1104
1080
|
desktopStyle: u
|
|
1105
1081
|
}),
|
|
1106
|
-
"--column-width-tablet":
|
|
1082
|
+
"--column-width-tablet": h({
|
|
1107
1083
|
stackedStyle: p,
|
|
1108
1084
|
desktopStyle: I
|
|
1109
1085
|
}),
|
|
1110
|
-
"--column-margin-left-tablet":
|
|
1086
|
+
"--column-margin-left-tablet": h({
|
|
1111
1087
|
stackedStyle: E,
|
|
1112
1088
|
desktopStyle: u
|
|
1113
1089
|
})
|
|
@@ -1115,7 +1091,7 @@ function Dt(e) {
|
|
|
1115
1091
|
}
|
|
1116
1092
|
function x(m) {
|
|
1117
1093
|
var I, u;
|
|
1118
|
-
return
|
|
1094
|
+
return Ne(
|
|
1119
1095
|
((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
|
|
1120
1096
|
)[m].max;
|
|
1121
1097
|
}
|
|
@@ -1152,19 +1128,19 @@ function Dt(e) {
|
|
|
1152
1128
|
...m.link ? {
|
|
1153
1129
|
href: m.link
|
|
1154
1130
|
} : {},
|
|
1155
|
-
[
|
|
1156
|
-
style:
|
|
1131
|
+
[j()]: "builder-column",
|
|
1132
|
+
style: Ae(S(y))
|
|
1157
1133
|
};
|
|
1158
1134
|
}
|
|
1159
1135
|
return /* @__PURE__ */ V(w, { children: [
|
|
1160
1136
|
/* @__PURE__ */ V(
|
|
1161
1137
|
"div",
|
|
1162
1138
|
{
|
|
1163
|
-
className:
|
|
1139
|
+
className: Nt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
|
|
1164
1140
|
style: g(),
|
|
1165
1141
|
children: [
|
|
1166
1142
|
/* @__PURE__ */ l(
|
|
1167
|
-
|
|
1143
|
+
G,
|
|
1168
1144
|
{
|
|
1169
1145
|
id: "builderio-columns",
|
|
1170
1146
|
styles: R(),
|
|
@@ -1172,7 +1148,7 @@ function Dt(e) {
|
|
|
1172
1148
|
}
|
|
1173
1149
|
),
|
|
1174
1150
|
(W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
|
|
1175
|
-
|
|
1151
|
+
ie,
|
|
1176
1152
|
{
|
|
1177
1153
|
TagName: s(m),
|
|
1178
1154
|
actionAttributes: {},
|
|
@@ -1203,72 +1179,72 @@ function Dt(e) {
|
|
|
1203
1179
|
}` })
|
|
1204
1180
|
] });
|
|
1205
1181
|
}
|
|
1206
|
-
function
|
|
1182
|
+
function $t(e) {
|
|
1207
1183
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1208
1184
|
}
|
|
1209
|
-
function
|
|
1185
|
+
function he(e) {
|
|
1210
1186
|
return e.replace(/http(s)?:/, "");
|
|
1211
1187
|
}
|
|
1212
|
-
function
|
|
1188
|
+
function Dt(e = "", t, n) {
|
|
1213
1189
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1214
1190
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1215
1191
|
}
|
|
1216
|
-
function
|
|
1192
|
+
function Lt(e, t) {
|
|
1217
1193
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1218
1194
|
return e;
|
|
1219
1195
|
if (t === "master")
|
|
1220
|
-
return
|
|
1196
|
+
return he(e);
|
|
1221
1197
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1222
1198
|
if (n) {
|
|
1223
1199
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1224
|
-
return
|
|
1200
|
+
return he(`${i[0]}_${a}${o}`);
|
|
1225
1201
|
}
|
|
1226
1202
|
return null;
|
|
1227
1203
|
}
|
|
1228
|
-
function
|
|
1204
|
+
function Y(e) {
|
|
1229
1205
|
if (!e)
|
|
1230
1206
|
return e;
|
|
1231
1207
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1232
1208
|
if (e.match(/builder\.io/)) {
|
|
1233
1209
|
let n = e;
|
|
1234
1210
|
const i = Number(e.split("?width=")[1]);
|
|
1235
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1211
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1236
1212
|
}
|
|
1237
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1213
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1238
1214
|
}
|
|
1239
|
-
function
|
|
1215
|
+
function Ot(e) {
|
|
1240
1216
|
var o, a, r, s, d, c;
|
|
1241
1217
|
function t() {
|
|
1242
|
-
var
|
|
1218
|
+
var f;
|
|
1243
1219
|
const b = e.image || e.src;
|
|
1244
1220
|
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1245
1221
|
// images, otherwise you can supply this prop manually
|
|
1246
1222
|
!(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
|
|
1247
1223
|
return e.srcset;
|
|
1248
1224
|
if (!e.noWebp) {
|
|
1249
|
-
if (e.srcset && ((
|
|
1225
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1250
1226
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1251
|
-
return console.debug("Removed given srcset"),
|
|
1227
|
+
return console.debug("Removed given srcset"), Y(b);
|
|
1252
1228
|
} else if (e.image && !e.srcset)
|
|
1253
|
-
return
|
|
1254
|
-
return
|
|
1229
|
+
return Y(b);
|
|
1230
|
+
return Y(b);
|
|
1255
1231
|
}
|
|
1256
1232
|
}
|
|
1257
1233
|
function n() {
|
|
1258
|
-
var
|
|
1259
|
-
return (
|
|
1234
|
+
var h;
|
|
1235
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1260
1236
|
}
|
|
1261
1237
|
function i() {
|
|
1262
|
-
const
|
|
1238
|
+
const h = {
|
|
1263
1239
|
position: "absolute",
|
|
1264
1240
|
height: "100%",
|
|
1265
1241
|
width: "100%",
|
|
1266
1242
|
left: "0px",
|
|
1267
1243
|
top: "0px"
|
|
1268
1244
|
};
|
|
1269
|
-
return e.aspectRatio ?
|
|
1245
|
+
return e.aspectRatio ? h : void 0;
|
|
1270
1246
|
}
|
|
1271
|
-
return
|
|
1247
|
+
return B(() => {
|
|
1272
1248
|
}, []), /* @__PURE__ */ V(w, { children: [
|
|
1273
1249
|
/* @__PURE__ */ V(w, { children: [
|
|
1274
1250
|
/* @__PURE__ */ V("picture", { children: [
|
|
@@ -1323,7 +1299,7 @@ function Mt(e) {
|
|
|
1323
1299
|
}` })
|
|
1324
1300
|
] });
|
|
1325
1301
|
}
|
|
1326
|
-
function
|
|
1302
|
+
function Ut(e) {
|
|
1327
1303
|
return /* @__PURE__ */ l(
|
|
1328
1304
|
"section",
|
|
1329
1305
|
{
|
|
@@ -1344,7 +1320,7 @@ function jt(e) {
|
|
|
1344
1320
|
}
|
|
1345
1321
|
);
|
|
1346
1322
|
}
|
|
1347
|
-
const
|
|
1323
|
+
const Q = {
|
|
1348
1324
|
"@type": "@builder.io/sdk:Element",
|
|
1349
1325
|
layerName: "Accordion item title",
|
|
1350
1326
|
responsiveStyles: {
|
|
@@ -1373,7 +1349,7 @@ const ee = {
|
|
|
1373
1349
|
}
|
|
1374
1350
|
}
|
|
1375
1351
|
}]
|
|
1376
|
-
},
|
|
1352
|
+
}, X = {
|
|
1377
1353
|
"@type": "@builder.io/sdk:Element",
|
|
1378
1354
|
layerName: "Accordion item detail",
|
|
1379
1355
|
responsiveStyles: {
|
|
@@ -1404,7 +1380,7 @@ const ee = {
|
|
|
1404
1380
|
}
|
|
1405
1381
|
}
|
|
1406
1382
|
}]
|
|
1407
|
-
},
|
|
1383
|
+
}, jt = {
|
|
1408
1384
|
name: "Builder:Accordion",
|
|
1409
1385
|
canHaveChildren: !0,
|
|
1410
1386
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1421,19 +1397,19 @@ const ee = {
|
|
|
1421
1397
|
name: "title",
|
|
1422
1398
|
type: "uiBlocks",
|
|
1423
1399
|
hideFromUI: !0,
|
|
1424
|
-
defaultValue: [
|
|
1400
|
+
defaultValue: [Q]
|
|
1425
1401
|
}, {
|
|
1426
1402
|
name: "detail",
|
|
1427
1403
|
type: "uiBlocks",
|
|
1428
1404
|
hideFromUI: !0,
|
|
1429
|
-
defaultValue: [
|
|
1405
|
+
defaultValue: [X]
|
|
1430
1406
|
}],
|
|
1431
1407
|
defaultValue: [{
|
|
1432
|
-
title: [
|
|
1433
|
-
detail: [
|
|
1408
|
+
title: [Q],
|
|
1409
|
+
detail: [X]
|
|
1434
1410
|
}, {
|
|
1435
|
-
title: [
|
|
1436
|
-
detail: [
|
|
1411
|
+
title: [Q],
|
|
1412
|
+
detail: [X]
|
|
1437
1413
|
}],
|
|
1438
1414
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1439
1415
|
}, {
|
|
@@ -1468,8 +1444,8 @@ const ee = {
|
|
|
1468
1444
|
builderComponents: !0,
|
|
1469
1445
|
builderLinkComponent: !0
|
|
1470
1446
|
}
|
|
1471
|
-
},
|
|
1472
|
-
function
|
|
1447
|
+
}, ge = (e) => e.toString();
|
|
1448
|
+
function Mt(e) {
|
|
1473
1449
|
var b;
|
|
1474
1450
|
const [t, n] = T(() => []);
|
|
1475
1451
|
function i() {
|
|
@@ -1500,20 +1476,20 @@ function Kt(e) {
|
|
|
1500
1476
|
Object.entries(v).filter(([g, S]) => S !== void 0)
|
|
1501
1477
|
);
|
|
1502
1478
|
}
|
|
1503
|
-
function r(
|
|
1504
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1479
|
+
function r(f) {
|
|
1480
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1505
1481
|
}
|
|
1506
|
-
function s(
|
|
1507
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1482
|
+
function s(f) {
|
|
1483
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1508
1484
|
}
|
|
1509
1485
|
function d() {
|
|
1510
|
-
let
|
|
1486
|
+
let f = null;
|
|
1511
1487
|
if (e.grid && t.length && document) {
|
|
1512
1488
|
const g = t[0];
|
|
1513
1489
|
let x = document.querySelector(
|
|
1514
1490
|
`.builder-accordion-title[data-index="${g}"]`
|
|
1515
1491
|
);
|
|
1516
|
-
if (
|
|
1492
|
+
if (f = g, x) {
|
|
1517
1493
|
let R = x.getBoundingClientRect();
|
|
1518
1494
|
for (; x = x && x.nextElementSibling; )
|
|
1519
1495
|
if (x) {
|
|
@@ -1525,29 +1501,29 @@ function Kt(e) {
|
|
|
1525
1501
|
x.getAttribute("data-index") || "",
|
|
1526
1502
|
10
|
|
1527
1503
|
);
|
|
1528
|
-
isNaN(k) || (R = C,
|
|
1504
|
+
isNaN(k) || (R = C, f = k);
|
|
1529
1505
|
} else
|
|
1530
1506
|
break;
|
|
1531
1507
|
}
|
|
1532
1508
|
}
|
|
1533
1509
|
}
|
|
1534
|
-
return typeof
|
|
1510
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1535
1511
|
}
|
|
1536
1512
|
function c() {
|
|
1537
|
-
const
|
|
1513
|
+
const f = {
|
|
1538
1514
|
order: typeof d() == "number" ? d() : void 0,
|
|
1539
1515
|
...e.grid && {
|
|
1540
1516
|
width: "100%"
|
|
1541
1517
|
}
|
|
1542
1518
|
};
|
|
1543
1519
|
return Object.fromEntries(
|
|
1544
|
-
Object.entries(
|
|
1520
|
+
Object.entries(f).filter(([v, g]) => g !== void 0)
|
|
1545
1521
|
);
|
|
1546
1522
|
}
|
|
1547
|
-
function f
|
|
1548
|
-
t.includes(
|
|
1523
|
+
function h(f) {
|
|
1524
|
+
t.includes(f) ? n(i() ? [] : t.filter((v) => v !== f)) : n(i() ? [f] : t.concat(f));
|
|
1549
1525
|
}
|
|
1550
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((
|
|
1526
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((f, v) => /* @__PURE__ */ V(w, { children: [
|
|
1551
1527
|
/* @__PURE__ */ l(
|
|
1552
1528
|
"div",
|
|
1553
1529
|
{
|
|
@@ -1555,14 +1531,14 @@ function Kt(e) {
|
|
|
1555
1531
|
style: {
|
|
1556
1532
|
...a(),
|
|
1557
1533
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1558
|
-
order: d() !== null ?
|
|
1534
|
+
order: d() !== null ? ge(v) : ge(v + 1)
|
|
1559
1535
|
},
|
|
1560
1536
|
"data-index": v,
|
|
1561
|
-
onClick: (g) =>
|
|
1537
|
+
onClick: (g) => h(v),
|
|
1562
1538
|
children: /* @__PURE__ */ l(
|
|
1563
1539
|
F,
|
|
1564
1540
|
{
|
|
1565
|
-
blocks:
|
|
1541
|
+
blocks: f.title,
|
|
1566
1542
|
path: `items.${v}.title`,
|
|
1567
1543
|
parent: e.builderBlock.id,
|
|
1568
1544
|
context: e.builderContext,
|
|
@@ -1580,7 +1556,7 @@ function Kt(e) {
|
|
|
1580
1556
|
children: /* @__PURE__ */ l(
|
|
1581
1557
|
F,
|
|
1582
1558
|
{
|
|
1583
|
-
blocks:
|
|
1559
|
+
blocks: f.detail,
|
|
1584
1560
|
path: `items.${v}.detail`,
|
|
1585
1561
|
parent: e.builderBlock.id,
|
|
1586
1562
|
context: e.builderContext,
|
|
@@ -1592,7 +1568,7 @@ function Kt(e) {
|
|
|
1592
1568
|
) : null
|
|
1593
1569
|
] })) });
|
|
1594
1570
|
}
|
|
1595
|
-
const
|
|
1571
|
+
const _t = {
|
|
1596
1572
|
name: "Core:Button",
|
|
1597
1573
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1598
1574
|
defaultStyles: {
|
|
@@ -1628,7 +1604,7 @@ const qt = {
|
|
|
1628
1604
|
shouldReceiveBuilderProps: {
|
|
1629
1605
|
builderLinkComponent: !0
|
|
1630
1606
|
}
|
|
1631
|
-
},
|
|
1607
|
+
}, Ht = {
|
|
1632
1608
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1633
1609
|
name: "Columns",
|
|
1634
1610
|
isRSC: !0,
|
|
@@ -1835,13 +1811,13 @@ const qt = {
|
|
|
1835
1811
|
builderComponents: !0,
|
|
1836
1812
|
builderLinkComponent: !0
|
|
1837
1813
|
}
|
|
1838
|
-
},
|
|
1814
|
+
}, qt = {
|
|
1839
1815
|
name: "Fragment",
|
|
1840
1816
|
static: !0,
|
|
1841
1817
|
hidden: !0,
|
|
1842
1818
|
canHaveChildren: !0,
|
|
1843
1819
|
noWrap: !0
|
|
1844
|
-
},
|
|
1820
|
+
}, Kt = {
|
|
1845
1821
|
name: "Image",
|
|
1846
1822
|
static: !0,
|
|
1847
1823
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1863,13 +1839,13 @@ const qt = {
|
|
|
1863
1839
|
e.delete("srcset"), e.delete("noWebp");
|
|
1864
1840
|
function n(r, s = 6e4) {
|
|
1865
1841
|
return new Promise((d, c) => {
|
|
1866
|
-
const
|
|
1842
|
+
const h = document.createElement("img");
|
|
1867
1843
|
let b = !1;
|
|
1868
|
-
|
|
1869
|
-
b = !0, d(
|
|
1870
|
-
},
|
|
1871
|
-
console.warn("Image load failed",
|
|
1872
|
-
}),
|
|
1844
|
+
h.onload = () => {
|
|
1845
|
+
b = !0, d(h);
|
|
1846
|
+
}, h.addEventListener("error", (f) => {
|
|
1847
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1848
|
+
}), h.src = r, setTimeout(() => {
|
|
1873
1849
|
b || c(new Error("Image load timed out"));
|
|
1874
1850
|
}, s);
|
|
1875
1851
|
});
|
|
@@ -1949,7 +1925,7 @@ const qt = {
|
|
|
1949
1925
|
shouldReceiveBuilderProps: {
|
|
1950
1926
|
builderBlock: !0
|
|
1951
1927
|
}
|
|
1952
|
-
},
|
|
1928
|
+
}, zt = {
|
|
1953
1929
|
name: "Core:Section",
|
|
1954
1930
|
static: !0,
|
|
1955
1931
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1988,7 +1964,7 @@ const qt = {
|
|
|
1988
1964
|
}
|
|
1989
1965
|
}
|
|
1990
1966
|
}]
|
|
1991
|
-
},
|
|
1967
|
+
}, Jt = {
|
|
1992
1968
|
name: "Slot",
|
|
1993
1969
|
isRSC: !0,
|
|
1994
1970
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2006,7 +1982,7 @@ const qt = {
|
|
|
2006
1982
|
builderComponents: !0
|
|
2007
1983
|
}
|
|
2008
1984
|
};
|
|
2009
|
-
function
|
|
1985
|
+
function Gt(e) {
|
|
2010
1986
|
var t, n, i;
|
|
2011
1987
|
return /* @__PURE__ */ l(
|
|
2012
1988
|
"div",
|
|
@@ -2030,7 +2006,7 @@ function Qt(e) {
|
|
|
2030
2006
|
}
|
|
2031
2007
|
);
|
|
2032
2008
|
}
|
|
2033
|
-
const
|
|
2009
|
+
const Yt = {
|
|
2034
2010
|
name: "Symbol",
|
|
2035
2011
|
noWrap: !0,
|
|
2036
2012
|
static: !0,
|
|
@@ -2069,7 +2045,7 @@ const Xt = {
|
|
|
2069
2045
|
builderComponents: !0,
|
|
2070
2046
|
builderLinkComponent: !0
|
|
2071
2047
|
}
|
|
2072
|
-
},
|
|
2048
|
+
}, Z = {
|
|
2073
2049
|
"@type": "@builder.io/sdk:Element",
|
|
2074
2050
|
responsiveStyles: {
|
|
2075
2051
|
large: {
|
|
@@ -2091,7 +2067,7 @@ const Xt = {
|
|
|
2091
2067
|
text: "New tab"
|
|
2092
2068
|
}
|
|
2093
2069
|
}
|
|
2094
|
-
},
|
|
2070
|
+
}, ee = {
|
|
2095
2071
|
"@type": "@builder.io/sdk:Element",
|
|
2096
2072
|
responsiveStyles: {
|
|
2097
2073
|
large: {
|
|
@@ -2107,7 +2083,7 @@ const Xt = {
|
|
|
2107
2083
|
text: "New tab content "
|
|
2108
2084
|
}
|
|
2109
2085
|
}
|
|
2110
|
-
},
|
|
2086
|
+
}, Qt = {
|
|
2111
2087
|
name: "Builder: Tabs",
|
|
2112
2088
|
inputs: [{
|
|
2113
2089
|
name: "tabs",
|
|
@@ -2117,16 +2093,16 @@ const Xt = {
|
|
|
2117
2093
|
name: "label",
|
|
2118
2094
|
type: "uiBlocks",
|
|
2119
2095
|
hideFromUI: !0,
|
|
2120
|
-
defaultValue: [
|
|
2096
|
+
defaultValue: [Z]
|
|
2121
2097
|
}, {
|
|
2122
2098
|
name: "content",
|
|
2123
2099
|
type: "uiBlocks",
|
|
2124
2100
|
hideFromUI: !0,
|
|
2125
|
-
defaultValue: [
|
|
2101
|
+
defaultValue: [ee]
|
|
2126
2102
|
}],
|
|
2127
2103
|
defaultValue: [{
|
|
2128
2104
|
label: [{
|
|
2129
|
-
...
|
|
2105
|
+
...Z,
|
|
2130
2106
|
component: {
|
|
2131
2107
|
name: "Text",
|
|
2132
2108
|
options: {
|
|
@@ -2135,7 +2111,7 @@ const Xt = {
|
|
|
2135
2111
|
}
|
|
2136
2112
|
}],
|
|
2137
2113
|
content: [{
|
|
2138
|
-
...
|
|
2114
|
+
...ee,
|
|
2139
2115
|
component: {
|
|
2140
2116
|
name: "Text",
|
|
2141
2117
|
options: {
|
|
@@ -2145,7 +2121,7 @@ const Xt = {
|
|
|
2145
2121
|
}]
|
|
2146
2122
|
}, {
|
|
2147
2123
|
label: [{
|
|
2148
|
-
...
|
|
2124
|
+
...Z,
|
|
2149
2125
|
component: {
|
|
2150
2126
|
name: "Text",
|
|
2151
2127
|
options: {
|
|
@@ -2154,7 +2130,7 @@ const Xt = {
|
|
|
2154
2130
|
}
|
|
2155
2131
|
}],
|
|
2156
2132
|
content: [{
|
|
2157
|
-
...
|
|
2133
|
+
...ee,
|
|
2158
2134
|
component: {
|
|
2159
2135
|
name: "Text",
|
|
2160
2136
|
options: {
|
|
@@ -2211,7 +2187,7 @@ const Xt = {
|
|
|
2211
2187
|
builderLinkComponent: !0
|
|
2212
2188
|
}
|
|
2213
2189
|
};
|
|
2214
|
-
function
|
|
2190
|
+
function Xt(e) {
|
|
2215
2191
|
var a;
|
|
2216
2192
|
const [t, n] = T(
|
|
2217
2193
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2270,7 +2246,7 @@ function en(e) {
|
|
|
2270
2246
|
) }) : null
|
|
2271
2247
|
] });
|
|
2272
2248
|
}
|
|
2273
|
-
const
|
|
2249
|
+
const Zt = {
|
|
2274
2250
|
shouldReceiveBuilderProps: {
|
|
2275
2251
|
builderBlock: !1,
|
|
2276
2252
|
builderContext: !0
|
|
@@ -2293,7 +2269,7 @@ const tn = {
|
|
|
2293
2269
|
textAlign: "center"
|
|
2294
2270
|
}
|
|
2295
2271
|
};
|
|
2296
|
-
function
|
|
2272
|
+
function en(e) {
|
|
2297
2273
|
function t() {
|
|
2298
2274
|
var s;
|
|
2299
2275
|
const n = e.builderContext, {
|
|
@@ -2304,13 +2280,12 @@ function nn(e) {
|
|
|
2304
2280
|
} = n;
|
|
2305
2281
|
return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2306
2282
|
/{{([^}]+)}}/g,
|
|
2307
|
-
(d, c) =>
|
|
2283
|
+
(d, c) => O({
|
|
2308
2284
|
code: c,
|
|
2309
2285
|
context: i,
|
|
2310
2286
|
localState: o,
|
|
2311
2287
|
rootState: a,
|
|
2312
|
-
rootSetState: r
|
|
2313
|
-
enableCache: !1
|
|
2288
|
+
rootSetState: r
|
|
2314
2289
|
})
|
|
2315
2290
|
);
|
|
2316
2291
|
}
|
|
@@ -2325,7 +2300,7 @@ function nn(e) {
|
|
|
2325
2300
|
}
|
|
2326
2301
|
);
|
|
2327
2302
|
}
|
|
2328
|
-
const
|
|
2303
|
+
const tn = {
|
|
2329
2304
|
name: "Custom Code",
|
|
2330
2305
|
static: !0,
|
|
2331
2306
|
requiredPermissions: ["editCode"],
|
|
@@ -2348,9 +2323,9 @@ const on = {
|
|
|
2348
2323
|
advanced: !0
|
|
2349
2324
|
}]
|
|
2350
2325
|
};
|
|
2351
|
-
function
|
|
2352
|
-
const t =
|
|
2353
|
-
return
|
|
2326
|
+
function nn(e) {
|
|
2327
|
+
const t = $(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2328
|
+
return B(() => {
|
|
2354
2329
|
var s;
|
|
2355
2330
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2356
2331
|
return;
|
|
@@ -2361,8 +2336,8 @@ function an(e) {
|
|
|
2361
2336
|
if (n.includes(c.src))
|
|
2362
2337
|
continue;
|
|
2363
2338
|
n.push(c.src);
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2339
|
+
const h = document.createElement("script");
|
|
2340
|
+
h.async = !0, h.src = c.src, document.head.appendChild(h);
|
|
2366
2341
|
} else if (!c.type || [
|
|
2367
2342
|
"text/javascript",
|
|
2368
2343
|
"application/javascript",
|
|
@@ -2372,8 +2347,8 @@ function an(e) {
|
|
|
2372
2347
|
continue;
|
|
2373
2348
|
try {
|
|
2374
2349
|
o.push(c.innerText), new Function(c.innerText)();
|
|
2375
|
-
} catch (
|
|
2376
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2350
|
+
} catch (h) {
|
|
2351
|
+
console.warn("`CustomCode`: Error running script:", h);
|
|
2377
2352
|
}
|
|
2378
2353
|
}
|
|
2379
2354
|
}
|
|
@@ -2386,7 +2361,7 @@ function an(e) {
|
|
|
2386
2361
|
}
|
|
2387
2362
|
);
|
|
2388
2363
|
}
|
|
2389
|
-
const
|
|
2364
|
+
const on = {
|
|
2390
2365
|
name: "Embed",
|
|
2391
2366
|
static: !0,
|
|
2392
2367
|
inputs: [{
|
|
@@ -2401,28 +2376,28 @@ const rn = {
|
|
|
2401
2376
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2402
2377
|
hideFromUI: !0
|
|
2403
2378
|
}]
|
|
2404
|
-
},
|
|
2405
|
-
function
|
|
2406
|
-
const t =
|
|
2379
|
+
}, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
|
|
2380
|
+
function ln(e) {
|
|
2381
|
+
const t = $(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2407
2382
|
function d() {
|
|
2408
2383
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2409
2384
|
return;
|
|
2410
2385
|
const c = t.current.getElementsByTagName("script");
|
|
2411
|
-
for (let
|
|
2412
|
-
const b = c[
|
|
2386
|
+
for (let h = 0; h < c.length; h++) {
|
|
2387
|
+
const b = c[h];
|
|
2413
2388
|
if (b.src && !n.includes(b.src)) {
|
|
2414
2389
|
n.push(b.src);
|
|
2415
|
-
const
|
|
2416
|
-
|
|
2417
|
-
} else if (
|
|
2390
|
+
const f = document.createElement("script");
|
|
2391
|
+
f.async = !0, f.src = b.src, document.head.appendChild(f);
|
|
2392
|
+
} else if (rn(b) && !o.includes(b.innerText))
|
|
2418
2393
|
try {
|
|
2419
2394
|
o.push(b.innerText), new Function(b.innerText)();
|
|
2420
|
-
} catch (
|
|
2421
|
-
console.warn("`Embed`: Error running script:",
|
|
2395
|
+
} catch (f) {
|
|
2396
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2422
2397
|
}
|
|
2423
2398
|
}
|
|
2424
2399
|
}
|
|
2425
|
-
return
|
|
2400
|
+
return B(() => {
|
|
2426
2401
|
t.current && !r && (s(!0), d());
|
|
2427
2402
|
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2428
2403
|
"div",
|
|
@@ -2433,7 +2408,7 @@ function cn(e) {
|
|
|
2433
2408
|
}
|
|
2434
2409
|
);
|
|
2435
2410
|
}
|
|
2436
|
-
const
|
|
2411
|
+
const sn = {
|
|
2437
2412
|
name: "Form:Form",
|
|
2438
2413
|
// editableTags: ['builder-form-error']
|
|
2439
2414
|
defaults: {
|
|
@@ -2670,16 +2645,13 @@ const dn = {
|
|
|
2670
2645
|
builderComponents: !0,
|
|
2671
2646
|
builderLinkComponent: !0
|
|
2672
2647
|
}
|
|
2673
|
-
},
|
|
2648
|
+
}, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
|
|
2674
2649
|
const e = process.env.NODE_ENV || "production";
|
|
2675
|
-
return
|
|
2676
|
-
}, fn = (e, t, n) => {
|
|
2677
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2678
|
-
return i === void 0 || i === e ? n : i;
|
|
2650
|
+
return cn.includes(e) ? e : "production";
|
|
2679
2651
|
};
|
|
2680
|
-
function
|
|
2681
|
-
var b,
|
|
2682
|
-
const t =
|
|
2652
|
+
function un(e) {
|
|
2653
|
+
var b, f;
|
|
2654
|
+
const t = $(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2683
2655
|
function d(v) {
|
|
2684
2656
|
var S, x;
|
|
2685
2657
|
const g = {
|
|
@@ -2691,7 +2663,7 @@ function hn(e) {
|
|
|
2691
2663
|
function c() {
|
|
2692
2664
|
return N() && e.previewState || n;
|
|
2693
2665
|
}
|
|
2694
|
-
function
|
|
2666
|
+
function h(v) {
|
|
2695
2667
|
var S;
|
|
2696
2668
|
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2697
2669
|
if (e.sendSubmissionsTo === "zapier")
|
|
@@ -2717,8 +2689,8 @@ function hn(e) {
|
|
|
2717
2689
|
} else if (u.type === "checkbox")
|
|
2718
2690
|
p = u.checked;
|
|
2719
2691
|
else if (u.type === "number" || u.type === "range") {
|
|
2720
|
-
const
|
|
2721
|
-
isNaN(
|
|
2692
|
+
const P = u.valueAsNumber;
|
|
2693
|
+
isNaN(P) || (p = P);
|
|
2722
2694
|
} else
|
|
2723
2695
|
u.type === "file" ? p = u.files : p = u.value;
|
|
2724
2696
|
else
|
|
@@ -2736,7 +2708,7 @@ function hn(e) {
|
|
|
2736
2708
|
else {
|
|
2737
2709
|
const u = {};
|
|
2738
2710
|
Array.from(W).forEach(({ value: p, key: E }) => {
|
|
2739
|
-
|
|
2711
|
+
Ee(u, E, p);
|
|
2740
2712
|
}), C = JSON.stringify(u);
|
|
2741
2713
|
}
|
|
2742
2714
|
m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (R["content-type"] = m));
|
|
@@ -2744,7 +2716,7 @@ function hn(e) {
|
|
|
2744
2716
|
if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
|
|
2745
2717
|
return;
|
|
2746
2718
|
i("sending");
|
|
2747
|
-
const I = `${
|
|
2719
|
+
const I = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2748
2720
|
e.sendSubmissionsToEmail || ""
|
|
2749
2721
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2750
2722
|
fetch(
|
|
@@ -2755,15 +2727,15 @@ function hn(e) {
|
|
|
2755
2727
|
let p;
|
|
2756
2728
|
const E = u.headers.get("content-type");
|
|
2757
2729
|
if (E && E.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2758
|
-
let
|
|
2759
|
-
|
|
2730
|
+
let P = Ie(p, e.errorMessagePath);
|
|
2731
|
+
P && (typeof P != "string" && (P = JSON.stringify(P)), s(P), d({ formErrorMessage: P }));
|
|
2760
2732
|
}
|
|
2761
2733
|
if (a(p), i(u.ok ? "success" : "error"), u.ok) {
|
|
2762
|
-
const
|
|
2734
|
+
const P = new CustomEvent("submit:success", {
|
|
2763
2735
|
detail: { res: u, body: p }
|
|
2764
2736
|
});
|
|
2765
2737
|
if (t.current) {
|
|
2766
|
-
if (t.current.dispatchEvent(
|
|
2738
|
+
if (t.current.dispatchEvent(P), P.defaultPrevented)
|
|
2767
2739
|
return;
|
|
2768
2740
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2769
2741
|
}
|
|
@@ -2796,11 +2768,11 @@ function hn(e) {
|
|
|
2796
2768
|
action: !e.sendWithJs && e.action,
|
|
2797
2769
|
method: e.method,
|
|
2798
2770
|
name: e.name,
|
|
2799
|
-
onSubmit: (v) =>
|
|
2771
|
+
onSubmit: (v) => h(v),
|
|
2800
2772
|
...e.attributes,
|
|
2801
2773
|
children: [
|
|
2802
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (
|
|
2803
|
-
|
|
2774
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (f = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : f.map((v, g) => /* @__PURE__ */ l(
|
|
2775
|
+
M,
|
|
2804
2776
|
{
|
|
2805
2777
|
block: v,
|
|
2806
2778
|
context: e.builderContext,
|
|
@@ -2842,7 +2814,7 @@ function hn(e) {
|
|
|
2842
2814
|
" "
|
|
2843
2815
|
] });
|
|
2844
2816
|
}
|
|
2845
|
-
const
|
|
2817
|
+
const mn = {
|
|
2846
2818
|
name: "Form:Input",
|
|
2847
2819
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2848
2820
|
inputs: [
|
|
@@ -2894,8 +2866,8 @@ const gn = {
|
|
|
2894
2866
|
borderColor: "#ccc"
|
|
2895
2867
|
}
|
|
2896
2868
|
};
|
|
2897
|
-
function
|
|
2898
|
-
return /* @__PURE__ */
|
|
2869
|
+
function fn(e) {
|
|
2870
|
+
return /* @__PURE__ */ Ce(
|
|
2899
2871
|
"input",
|
|
2900
2872
|
{
|
|
2901
2873
|
...e.attributes,
|
|
@@ -2909,7 +2881,7 @@ function bn(e) {
|
|
|
2909
2881
|
}
|
|
2910
2882
|
);
|
|
2911
2883
|
}
|
|
2912
|
-
const
|
|
2884
|
+
const hn = {
|
|
2913
2885
|
name: "Form:Select",
|
|
2914
2886
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2915
2887
|
defaultStyles: {
|
|
@@ -2952,9 +2924,9 @@ const pn = {
|
|
|
2952
2924
|
static: !0,
|
|
2953
2925
|
noWrap: !0
|
|
2954
2926
|
};
|
|
2955
|
-
function
|
|
2927
|
+
function gn(e) {
|
|
2956
2928
|
var t;
|
|
2957
|
-
return /* @__PURE__ */
|
|
2929
|
+
return /* @__PURE__ */ Ce(
|
|
2958
2930
|
"select",
|
|
2959
2931
|
{
|
|
2960
2932
|
...e.attributes,
|
|
@@ -2967,7 +2939,7 @@ function yn(e) {
|
|
|
2967
2939
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2968
2940
|
);
|
|
2969
2941
|
}
|
|
2970
|
-
const
|
|
2942
|
+
const bn = {
|
|
2971
2943
|
name: "Form:SubmitButton",
|
|
2972
2944
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2973
2945
|
defaultStyles: {
|
|
@@ -2993,10 +2965,10 @@ const xn = {
|
|
|
2993
2965
|
// TODO: defaultChildren
|
|
2994
2966
|
// canHaveChildren: true,
|
|
2995
2967
|
};
|
|
2996
|
-
function
|
|
2968
|
+
function pn(e) {
|
|
2997
2969
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2998
2970
|
}
|
|
2999
|
-
const
|
|
2971
|
+
const yn = {
|
|
3000
2972
|
name: "Form:TextArea",
|
|
3001
2973
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3002
2974
|
inputs: [{
|
|
@@ -3033,7 +3005,7 @@ const Sn = {
|
|
|
3033
3005
|
static: !0,
|
|
3034
3006
|
noWrap: !0
|
|
3035
3007
|
};
|
|
3036
|
-
function
|
|
3008
|
+
function xn(e) {
|
|
3037
3009
|
return /* @__PURE__ */ l(
|
|
3038
3010
|
"textarea",
|
|
3039
3011
|
{
|
|
@@ -3046,7 +3018,7 @@ function kn(e) {
|
|
|
3046
3018
|
}
|
|
3047
3019
|
);
|
|
3048
3020
|
}
|
|
3049
|
-
const
|
|
3021
|
+
const vn = {
|
|
3050
3022
|
// friendlyName?
|
|
3051
3023
|
name: "Raw:Img",
|
|
3052
3024
|
hideFromInsertMenu: !0,
|
|
@@ -3061,7 +3033,7 @@ const Cn = {
|
|
|
3061
3033
|
noWrap: !0,
|
|
3062
3034
|
static: !0
|
|
3063
3035
|
};
|
|
3064
|
-
function
|
|
3036
|
+
function Sn(e) {
|
|
3065
3037
|
return /* @__PURE__ */ l(
|
|
3066
3038
|
"img",
|
|
3067
3039
|
{
|
|
@@ -3076,7 +3048,7 @@ function Tn(e) {
|
|
|
3076
3048
|
N() && e.imgSrc || "default-key"
|
|
3077
3049
|
);
|
|
3078
3050
|
}
|
|
3079
|
-
const
|
|
3051
|
+
const kn = {
|
|
3080
3052
|
name: "Video",
|
|
3081
3053
|
canHaveChildren: !0,
|
|
3082
3054
|
defaultStyles: {
|
|
@@ -3161,7 +3133,7 @@ const In = {
|
|
|
3161
3133
|
builderBlock: !0
|
|
3162
3134
|
}
|
|
3163
3135
|
};
|
|
3164
|
-
function
|
|
3136
|
+
function Cn(e) {
|
|
3165
3137
|
var i, o, a, r, s, d, c;
|
|
3166
3138
|
function t() {
|
|
3167
3139
|
return {
|
|
@@ -3262,64 +3234,64 @@ function wn(e) {
|
|
|
3262
3234
|
}
|
|
3263
3235
|
);
|
|
3264
3236
|
}
|
|
3265
|
-
const
|
|
3266
|
-
component:
|
|
3237
|
+
const Tn = () => [{
|
|
3238
|
+
component: nn,
|
|
3239
|
+
...tn
|
|
3240
|
+
}, {
|
|
3241
|
+
component: ln,
|
|
3267
3242
|
...on
|
|
3268
3243
|
}, {
|
|
3269
|
-
component:
|
|
3270
|
-
...
|
|
3244
|
+
component: un,
|
|
3245
|
+
...sn
|
|
3271
3246
|
}, {
|
|
3272
|
-
component:
|
|
3273
|
-
...
|
|
3247
|
+
component: fn,
|
|
3248
|
+
...mn
|
|
3274
3249
|
}, {
|
|
3275
|
-
component:
|
|
3276
|
-
...
|
|
3250
|
+
component: pn,
|
|
3251
|
+
...bn
|
|
3277
3252
|
}, {
|
|
3278
|
-
component:
|
|
3279
|
-
...
|
|
3253
|
+
component: gn,
|
|
3254
|
+
...hn
|
|
3280
3255
|
}, {
|
|
3281
|
-
component:
|
|
3282
|
-
...
|
|
3256
|
+
component: xn,
|
|
3257
|
+
...yn
|
|
3283
3258
|
}, {
|
|
3284
|
-
component:
|
|
3285
|
-
...
|
|
3259
|
+
component: Sn,
|
|
3260
|
+
...vn
|
|
3286
3261
|
}, {
|
|
3287
|
-
component:
|
|
3288
|
-
...
|
|
3262
|
+
component: Cn,
|
|
3263
|
+
...kn
|
|
3264
|
+
}], be = () => [{
|
|
3265
|
+
component: Je,
|
|
3266
|
+
..._t
|
|
3289
3267
|
}, {
|
|
3290
|
-
component:
|
|
3291
|
-
...
|
|
3292
|
-
}
|
|
3293
|
-
component:
|
|
3268
|
+
component: Ft,
|
|
3269
|
+
...Ht
|
|
3270
|
+
}, {
|
|
3271
|
+
component: $t,
|
|
3294
3272
|
...qt
|
|
3295
3273
|
}, {
|
|
3296
|
-
component:
|
|
3297
|
-
...
|
|
3274
|
+
component: Ot,
|
|
3275
|
+
...Kt
|
|
3298
3276
|
}, {
|
|
3299
|
-
component:
|
|
3277
|
+
component: Ut,
|
|
3300
3278
|
...zt
|
|
3301
3279
|
}, {
|
|
3302
|
-
component:
|
|
3280
|
+
component: Gt,
|
|
3303
3281
|
...Jt
|
|
3304
3282
|
}, {
|
|
3305
|
-
component:
|
|
3283
|
+
component: zn,
|
|
3306
3284
|
...Yt
|
|
3307
|
-
}, {
|
|
3308
|
-
component: Qt,
|
|
3309
|
-
...Gt
|
|
3310
|
-
}, {
|
|
3311
|
-
component: Gn,
|
|
3312
|
-
...Xt
|
|
3313
|
-
}, {
|
|
3314
|
-
component: nn,
|
|
3315
|
-
...tn
|
|
3316
3285
|
}, {
|
|
3317
3286
|
component: en,
|
|
3318
3287
|
...Zt
|
|
3319
3288
|
}, {
|
|
3320
|
-
component:
|
|
3321
|
-
...
|
|
3322
|
-
},
|
|
3289
|
+
component: Xt,
|
|
3290
|
+
...Qt
|
|
3291
|
+
}, {
|
|
3292
|
+
component: Mt,
|
|
3293
|
+
...jt
|
|
3294
|
+
}, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3323
3295
|
function getAndSetVariantId() {
|
|
3324
3296
|
function setCookie(name, value, days) {
|
|
3325
3297
|
let expires = '';
|
|
@@ -3375,7 +3347,7 @@ const En = () => [{
|
|
|
3375
3347
|
}).join('');
|
|
3376
3348
|
styleEl.innerHTML = newStyleStr;
|
|
3377
3349
|
}
|
|
3378
|
-
}`,
|
|
3350
|
+
}`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3379
3351
|
if (!navigator.cookieEnabled) {
|
|
3380
3352
|
return;
|
|
3381
3353
|
}
|
|
@@ -3409,26 +3381,26 @@ const En = () => [{
|
|
|
3409
3381
|
thisScriptEl?.remove();
|
|
3410
3382
|
}
|
|
3411
3383
|
return;
|
|
3412
|
-
}`,
|
|
3384
|
+
}`, $e = "builderIoAbTest", De = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3413
3385
|
...t,
|
|
3414
3386
|
testVariationId: t.id,
|
|
3415
3387
|
id: e == null ? void 0 : e.id
|
|
3416
|
-
})),
|
|
3388
|
+
})), En = ({
|
|
3417
3389
|
canTrack: e,
|
|
3418
3390
|
content: t
|
|
3419
|
-
}) => !(!(
|
|
3420
|
-
window.${
|
|
3421
|
-
window.${
|
|
3422
|
-
`,
|
|
3423
|
-
window.${
|
|
3424
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3425
|
-
)`,
|
|
3391
|
+
}) => !(!(H(t).length > 0) || !e || L()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
|
|
3392
|
+
window.${$e} = ${In}
|
|
3393
|
+
window.${De} = ${wn}
|
|
3394
|
+
`, Bn = (e, t) => `
|
|
3395
|
+
window.${$e}(
|
|
3396
|
+
"${t}",${JSON.stringify(e)}, ${Le}
|
|
3397
|
+
)`, Vn = ({
|
|
3426
3398
|
contentId: e,
|
|
3427
3399
|
variationId: t
|
|
3428
|
-
}) => `window.${
|
|
3429
|
-
"${t}", "${e}", ${
|
|
3400
|
+
}) => `window.${De}(
|
|
3401
|
+
"${t}", "${e}", ${Le}
|
|
3430
3402
|
)`;
|
|
3431
|
-
function
|
|
3403
|
+
function ne(e) {
|
|
3432
3404
|
return /* @__PURE__ */ l(
|
|
3433
3405
|
"script",
|
|
3434
3406
|
{
|
|
@@ -3438,10 +3410,10 @@ function ae(e) {
|
|
|
3438
3410
|
}
|
|
3439
3411
|
);
|
|
3440
3412
|
}
|
|
3441
|
-
function
|
|
3413
|
+
function pe(e) {
|
|
3442
3414
|
return Math.round(e * 1e3) / 1e3;
|
|
3443
3415
|
}
|
|
3444
|
-
const
|
|
3416
|
+
const An = (e, t, n = !0) => {
|
|
3445
3417
|
if (!(e instanceof HTMLElement))
|
|
3446
3418
|
return null;
|
|
3447
3419
|
let i = n ? e : e.parentElement;
|
|
@@ -3452,35 +3424,35 @@ const Fn = (e, t, n = !0) => {
|
|
|
3452
3424
|
return i;
|
|
3453
3425
|
} while (i = i.parentElement);
|
|
3454
3426
|
return null;
|
|
3455
|
-
},
|
|
3427
|
+
}, Wn = (e) => An(e, (t) => {
|
|
3456
3428
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3457
3429
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3458
|
-
}),
|
|
3430
|
+
}), ye = ({
|
|
3459
3431
|
event: e,
|
|
3460
3432
|
target: t
|
|
3461
3433
|
}) => {
|
|
3462
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3434
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
|
|
3463
3435
|
return {
|
|
3464
3436
|
x: a,
|
|
3465
3437
|
y: r
|
|
3466
3438
|
};
|
|
3467
|
-
},
|
|
3468
|
-
const t = e.target, n = t &&
|
|
3439
|
+
}, Nn = (e) => {
|
|
3440
|
+
const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3469
3441
|
return {
|
|
3470
3442
|
targetBuilderElement: i || void 0,
|
|
3471
3443
|
metadata: {
|
|
3472
|
-
targetOffset: t ?
|
|
3444
|
+
targetOffset: t ? ye({
|
|
3473
3445
|
event: e,
|
|
3474
3446
|
target: t
|
|
3475
3447
|
}) : void 0,
|
|
3476
|
-
builderTargetOffset: n ?
|
|
3448
|
+
builderTargetOffset: n ? ye({
|
|
3477
3449
|
event: e,
|
|
3478
3450
|
target: n
|
|
3479
3451
|
}) : void 0,
|
|
3480
3452
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3481
3453
|
}
|
|
3482
3454
|
};
|
|
3483
|
-
},
|
|
3455
|
+
}, Fn = (e) => {
|
|
3484
3456
|
var a, r;
|
|
3485
3457
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3486
3458
|
let o = "";
|
|
@@ -3506,15 +3478,15 @@ font-weight: ${s};
|
|
|
3506
3478
|
`.trim());
|
|
3507
3479
|
}
|
|
3508
3480
|
return o;
|
|
3509
|
-
},
|
|
3481
|
+
}, $n = ({
|
|
3510
3482
|
customFonts: e
|
|
3511
3483
|
}) => {
|
|
3512
3484
|
var t;
|
|
3513
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3514
|
-
},
|
|
3485
|
+
return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3486
|
+
}, Dn = ({
|
|
3515
3487
|
cssCode: e,
|
|
3516
3488
|
contentId: t
|
|
3517
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3489
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
|
|
3518
3490
|
.builder-button {
|
|
3519
3491
|
all: unset;
|
|
3520
3492
|
}
|
|
@@ -3531,10 +3503,10 @@ font-weight: ${s};
|
|
|
3531
3503
|
text-align: inherit;
|
|
3532
3504
|
font-family: inherit;
|
|
3533
3505
|
}
|
|
3534
|
-
`,
|
|
3535
|
-
function
|
|
3506
|
+
`, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
|
|
3507
|
+
function jn(e) {
|
|
3536
3508
|
var C, k, W;
|
|
3537
|
-
const t =
|
|
3509
|
+
const t = $(null);
|
|
3538
3510
|
function n(m) {
|
|
3539
3511
|
var I, u;
|
|
3540
3512
|
const y = {
|
|
@@ -3547,7 +3519,7 @@ function Kn(e) {
|
|
|
3547
3519
|
}));
|
|
3548
3520
|
}
|
|
3549
3521
|
function i(m) {
|
|
3550
|
-
var I, u, p, E,
|
|
3522
|
+
var I, u, p, E, P;
|
|
3551
3523
|
const y = {
|
|
3552
3524
|
...e.builderContextSignal.content,
|
|
3553
3525
|
...m,
|
|
@@ -3558,7 +3530,7 @@ function Kn(e) {
|
|
|
3558
3530
|
meta: {
|
|
3559
3531
|
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3560
3532
|
...m == null ? void 0 : m.meta,
|
|
3561
|
-
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((
|
|
3533
|
+
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((P = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : P.breakpoints)
|
|
3562
3534
|
}
|
|
3563
3535
|
};
|
|
3564
3536
|
e.setBuilderContextSignal((A) => ({
|
|
@@ -3576,7 +3548,7 @@ function Kn(e) {
|
|
|
3576
3548
|
() => e.contentWrapper || "div"
|
|
3577
3549
|
);
|
|
3578
3550
|
function s(m) {
|
|
3579
|
-
return
|
|
3551
|
+
return He({
|
|
3580
3552
|
model: e.model,
|
|
3581
3553
|
trustedHosts: e.trustedHosts,
|
|
3582
3554
|
callbacks: {
|
|
@@ -3590,7 +3562,7 @@ function Kn(e) {
|
|
|
3590
3562
|
});
|
|
3591
3563
|
},
|
|
3592
3564
|
animation: (y) => {
|
|
3593
|
-
|
|
3565
|
+
Be(y);
|
|
3594
3566
|
},
|
|
3595
3567
|
contentUpdate: (y) => {
|
|
3596
3568
|
i(y);
|
|
@@ -3598,51 +3570,50 @@ function Kn(e) {
|
|
|
3598
3570
|
}
|
|
3599
3571
|
})(m);
|
|
3600
3572
|
}
|
|
3601
|
-
const [d, c] = T(() => ({})), [
|
|
3573
|
+
const [d, c] = T(() => ({})), [h, b] = T(() => ({})), [f, v] = T(() => !1);
|
|
3602
3574
|
function g(m) {
|
|
3603
3575
|
var y, I;
|
|
3604
3576
|
if (e.builderContextSignal.content) {
|
|
3605
3577
|
const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
|
|
3606
|
-
|
|
3578
|
+
le({
|
|
3607
3579
|
type: "click",
|
|
3608
|
-
canTrack:
|
|
3580
|
+
canTrack: K(e.canTrack),
|
|
3609
3581
|
contentId: p,
|
|
3610
3582
|
apiKey: e.apiKey,
|
|
3611
3583
|
variationId: u !== p ? u : void 0,
|
|
3612
|
-
...
|
|
3613
|
-
unique: !
|
|
3584
|
+
...Nn(m),
|
|
3585
|
+
unique: !f
|
|
3614
3586
|
});
|
|
3615
3587
|
}
|
|
3616
|
-
|
|
3588
|
+
f || v(!0);
|
|
3617
3589
|
}
|
|
3618
3590
|
function S() {
|
|
3619
3591
|
var y, I, u;
|
|
3620
3592
|
const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
|
|
3621
3593
|
Object.entries(m).forEach(([p, E]) => {
|
|
3622
|
-
if (!E ||
|
|
3594
|
+
if (!E || h[p] || d[p] && !N())
|
|
3623
3595
|
return;
|
|
3624
|
-
|
|
3625
|
-
const
|
|
3596
|
+
h[p] = !0;
|
|
3597
|
+
const P = E.replace(
|
|
3626
3598
|
/{{([^}]+)}}/g,
|
|
3627
|
-
(A,
|
|
3628
|
-
|
|
3629
|
-
code:
|
|
3599
|
+
(A, Oe) => String(
|
|
3600
|
+
O({
|
|
3601
|
+
code: Oe,
|
|
3630
3602
|
context: e.context || {},
|
|
3631
3603
|
localState: void 0,
|
|
3632
3604
|
rootState: e.builderContextSignal.rootState,
|
|
3633
|
-
rootSetState: e.builderContextSignal.rootSetState
|
|
3634
|
-
enableCache: !0
|
|
3605
|
+
rootSetState: e.builderContextSignal.rootSetState
|
|
3635
3606
|
})
|
|
3636
3607
|
)
|
|
3637
3608
|
);
|
|
3638
|
-
fetch(
|
|
3609
|
+
fetch(P).then((A) => A.json()).then((A) => {
|
|
3639
3610
|
n({
|
|
3640
3611
|
[p]: A
|
|
3641
3612
|
}), d[p] = !0;
|
|
3642
3613
|
}).catch((A) => {
|
|
3643
3614
|
console.error("error fetching dynamic data", E, A);
|
|
3644
3615
|
}).finally(() => {
|
|
3645
|
-
|
|
3616
|
+
h[p] = !1;
|
|
3646
3617
|
});
|
|
3647
3618
|
});
|
|
3648
3619
|
}
|
|
@@ -3652,7 +3623,7 @@ function Kn(e) {
|
|
|
3652
3623
|
"builder:component:stateChange",
|
|
3653
3624
|
{
|
|
3654
3625
|
detail: {
|
|
3655
|
-
state:
|
|
3626
|
+
state: ae(e.builderContextSignal.rootState),
|
|
3656
3627
|
ref: {
|
|
3657
3628
|
name: e.model
|
|
3658
3629
|
}
|
|
@@ -3661,11 +3632,11 @@ function Kn(e) {
|
|
|
3661
3632
|
)
|
|
3662
3633
|
);
|
|
3663
3634
|
}
|
|
3664
|
-
const R =
|
|
3665
|
-
return R.current || (S(), x(), R.current = !0),
|
|
3635
|
+
const R = $(!1);
|
|
3636
|
+
return R.current || (S(), x(), R.current = !0), B(() => {
|
|
3666
3637
|
var m, y;
|
|
3667
|
-
if (
|
|
3668
|
-
if (N() && (window.addEventListener("message", s),
|
|
3638
|
+
if (L()) {
|
|
3639
|
+
if (N() && (window.addEventListener("message", s), je(), Me({
|
|
3669
3640
|
...e.locale ? {
|
|
3670
3641
|
locale: e.locale
|
|
3671
3642
|
} : {},
|
|
@@ -3679,14 +3650,14 @@ function Kn(e) {
|
|
|
3679
3650
|
e.builderContextSignal.componentInfos
|
|
3680
3651
|
).forEach((u) => {
|
|
3681
3652
|
var E;
|
|
3682
|
-
const p =
|
|
3653
|
+
const p = _e(u);
|
|
3683
3654
|
(E = window.parent) == null || E.postMessage(p, "*");
|
|
3684
3655
|
}), window.addEventListener(
|
|
3685
3656
|
"builder:component:stateChangeListenerActivated",
|
|
3686
3657
|
x
|
|
3687
|
-
)), e.builderContextSignal.content &&
|
|
3658
|
+
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3688
3659
|
const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, E = e.apiKey;
|
|
3689
|
-
|
|
3660
|
+
le({
|
|
3690
3661
|
type: "impression",
|
|
3691
3662
|
canTrack: !0,
|
|
3692
3663
|
contentId: p,
|
|
@@ -3694,11 +3665,11 @@ function Kn(e) {
|
|
|
3694
3665
|
variationId: u !== p ? u : void 0
|
|
3695
3666
|
});
|
|
3696
3667
|
}
|
|
3697
|
-
if (
|
|
3668
|
+
if (ve() && !N()) {
|
|
3698
3669
|
const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
|
|
3699
3670
|
`builder.overrides.${p}`
|
|
3700
|
-
),
|
|
3701
|
-
p === e.model &&
|
|
3671
|
+
), P = u.get("apiKey") || u.get("builder.space");
|
|
3672
|
+
p === e.model && P === e.apiKey && (!e.content || E === e.content.id) && Se({
|
|
3702
3673
|
model: e.model,
|
|
3703
3674
|
apiKey: e.apiKey,
|
|
3704
3675
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3707,29 +3678,29 @@ function Kn(e) {
|
|
|
3707
3678
|
});
|
|
3708
3679
|
}
|
|
3709
3680
|
}
|
|
3710
|
-
}, []),
|
|
3681
|
+
}, []), B(() => {
|
|
3711
3682
|
e.content && i(e.content);
|
|
3712
|
-
}, [e.content]),
|
|
3683
|
+
}, [e.content]), B(() => {
|
|
3713
3684
|
x();
|
|
3714
|
-
}, [e.builderContextSignal.rootState]),
|
|
3685
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3715
3686
|
e.data && n(e.data);
|
|
3716
|
-
}, [e.data]),
|
|
3687
|
+
}, [e.data]), B(() => {
|
|
3717
3688
|
e.locale && n({
|
|
3718
3689
|
locale: e.locale
|
|
3719
3690
|
});
|
|
3720
|
-
}, [e.locale]),
|
|
3721
|
-
|
|
3691
|
+
}, [e.locale]), B(() => () => {
|
|
3692
|
+
L() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3722
3693
|
"builder:component:stateChangeListenerActivated",
|
|
3723
3694
|
x
|
|
3724
3695
|
));
|
|
3725
|
-
}, []), /* @__PURE__ */ l(
|
|
3696
|
+
}, []), /* @__PURE__ */ l(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3726
3697
|
a,
|
|
3727
3698
|
{
|
|
3728
3699
|
ref: t,
|
|
3729
3700
|
onClick: (m) => g(m),
|
|
3730
3701
|
"builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
|
|
3731
3702
|
"builder-model": e.model,
|
|
3732
|
-
className:
|
|
3703
|
+
className: Un(
|
|
3733
3704
|
((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
|
|
3734
3705
|
),
|
|
3735
3706
|
...o(),
|
|
@@ -3738,21 +3709,21 @@ function Kn(e) {
|
|
|
3738
3709
|
}
|
|
3739
3710
|
) : null });
|
|
3740
3711
|
}
|
|
3741
|
-
function
|
|
3712
|
+
function Mn(e) {
|
|
3742
3713
|
const [t, n] = T(
|
|
3743
3714
|
() => `
|
|
3744
|
-
${
|
|
3715
|
+
${Dn({
|
|
3745
3716
|
cssCode: e.cssCode,
|
|
3746
3717
|
contentId: e.contentId
|
|
3747
3718
|
})}
|
|
3748
|
-
${
|
|
3719
|
+
${$n({
|
|
3749
3720
|
customFonts: e.customFonts
|
|
3750
3721
|
})}
|
|
3751
|
-
${
|
|
3722
|
+
${On(e.isNestedRender)}
|
|
3752
3723
|
`.trim()
|
|
3753
3724
|
);
|
|
3754
3725
|
return /* @__PURE__ */ l(
|
|
3755
|
-
|
|
3726
|
+
G,
|
|
3756
3727
|
{
|
|
3757
3728
|
id: "builderio-content",
|
|
3758
3729
|
styles: t,
|
|
@@ -3777,7 +3748,7 @@ const _n = ({
|
|
|
3777
3748
|
locale: n
|
|
3778
3749
|
} : {}
|
|
3779
3750
|
};
|
|
3780
|
-
},
|
|
3751
|
+
}, Hn = ({
|
|
3781
3752
|
content: e,
|
|
3782
3753
|
data: t
|
|
3783
3754
|
}) => e ? {
|
|
@@ -3788,12 +3759,12 @@ const _n = ({
|
|
|
3788
3759
|
},
|
|
3789
3760
|
meta: e == null ? void 0 : e.meta
|
|
3790
3761
|
} : void 0;
|
|
3791
|
-
function
|
|
3792
|
-
var c,
|
|
3762
|
+
function xe(e) {
|
|
3763
|
+
var c, h, b, f, v, g, S, x, R;
|
|
3793
3764
|
const [t, n] = T(
|
|
3794
3765
|
() => {
|
|
3795
3766
|
var C, k;
|
|
3796
|
-
return
|
|
3767
|
+
return Vn({
|
|
3797
3768
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3798
3769
|
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3799
3770
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3811,14 +3782,14 @@ function ke(e) {
|
|
|
3811
3782
|
() => {
|
|
3812
3783
|
var C;
|
|
3813
3784
|
return [
|
|
3814
|
-
...
|
|
3785
|
+
...be(),
|
|
3815
3786
|
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3816
3787
|
].reduce(
|
|
3817
3788
|
(k, { component: W, ...m }) => ({
|
|
3818
3789
|
...k,
|
|
3819
3790
|
[m.name]: {
|
|
3820
3791
|
component: W,
|
|
3821
|
-
...
|
|
3792
|
+
...se(m)
|
|
3822
3793
|
}
|
|
3823
3794
|
}),
|
|
3824
3795
|
{}
|
|
@@ -3827,7 +3798,7 @@ function ke(e) {
|
|
|
3827
3798
|
), [r, s] = T(() => {
|
|
3828
3799
|
var C;
|
|
3829
3800
|
return {
|
|
3830
|
-
content:
|
|
3801
|
+
content: Hn({
|
|
3831
3802
|
content: e.content,
|
|
3832
3803
|
data: e.data
|
|
3833
3804
|
}),
|
|
@@ -3843,12 +3814,12 @@ function ke(e) {
|
|
|
3843
3814
|
apiKey: e.apiKey,
|
|
3844
3815
|
apiVersion: e.apiVersion,
|
|
3845
3816
|
componentInfos: [
|
|
3846
|
-
...
|
|
3817
|
+
...be(),
|
|
3847
3818
|
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3848
3819
|
].reduce(
|
|
3849
3820
|
(k, { component: W, ...m }) => ({
|
|
3850
3821
|
...k,
|
|
3851
|
-
[m.name]:
|
|
3822
|
+
[m.name]: se(m)
|
|
3852
3823
|
}),
|
|
3853
3824
|
{}
|
|
3854
3825
|
),
|
|
@@ -3857,13 +3828,13 @@ function ke(e) {
|
|
|
3857
3828
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3858
3829
|
nonce: e.nonce || ""
|
|
3859
3830
|
};
|
|
3860
|
-
}), d =
|
|
3831
|
+
}), d = $(!1);
|
|
3861
3832
|
if (!d.current) {
|
|
3862
|
-
e.apiKey ||
|
|
3833
|
+
e.apiKey || z.error(
|
|
3863
3834
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3864
3835
|
);
|
|
3865
|
-
const C = (
|
|
3866
|
-
C &&
|
|
3836
|
+
const C = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3837
|
+
C && O({
|
|
3867
3838
|
code: C,
|
|
3868
3839
|
context: e.context || {},
|
|
3869
3840
|
localState: void 0,
|
|
@@ -3871,21 +3842,17 @@ function ke(e) {
|
|
|
3871
3842
|
rootSetState: (k) => {
|
|
3872
3843
|
Object.assign(r.rootState, k);
|
|
3873
3844
|
},
|
|
3874
|
-
isExpression: !1
|
|
3875
|
-
/**
|
|
3876
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3877
|
-
*/
|
|
3878
|
-
enableCache: !1
|
|
3845
|
+
isExpression: !1
|
|
3879
3846
|
}), d.current = !0;
|
|
3880
3847
|
}
|
|
3881
3848
|
return /* @__PURE__ */ l(
|
|
3882
|
-
|
|
3849
|
+
Te.Provider,
|
|
3883
3850
|
{
|
|
3884
3851
|
value: {
|
|
3885
3852
|
registeredComponents: o
|
|
3886
3853
|
},
|
|
3887
3854
|
children: /* @__PURE__ */ V(
|
|
3888
|
-
|
|
3855
|
+
jn,
|
|
3889
3856
|
{
|
|
3890
3857
|
nonce: e.nonce,
|
|
3891
3858
|
content: e.content,
|
|
@@ -3904,7 +3871,7 @@ function ke(e) {
|
|
|
3904
3871
|
setBuilderContextSignal: s,
|
|
3905
3872
|
children: [
|
|
3906
3873
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3907
|
-
|
|
3874
|
+
ne,
|
|
3908
3875
|
{
|
|
3909
3876
|
id: "builderio-variant-visibility",
|
|
3910
3877
|
scriptStr: t,
|
|
@@ -3912,12 +3879,12 @@ function ke(e) {
|
|
|
3912
3879
|
}
|
|
3913
3880
|
) : null,
|
|
3914
3881
|
/* @__PURE__ */ l(
|
|
3915
|
-
|
|
3882
|
+
Mn,
|
|
3916
3883
|
{
|
|
3917
3884
|
nonce: e.nonce || "",
|
|
3918
3885
|
isNestedRender: e.isNestedRender,
|
|
3919
3886
|
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
3920
|
-
cssCode: (v = (
|
|
3887
|
+
cssCode: (v = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : v.cssCode,
|
|
3921
3888
|
customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
|
|
3922
3889
|
}
|
|
3923
3890
|
),
|
|
@@ -3936,18 +3903,18 @@ function ke(e) {
|
|
|
3936
3903
|
}
|
|
3937
3904
|
);
|
|
3938
3905
|
}
|
|
3939
|
-
function
|
|
3906
|
+
function qn(e) {
|
|
3940
3907
|
var r;
|
|
3941
3908
|
const [t, n] = T(
|
|
3942
|
-
() =>
|
|
3943
|
-
canTrack:
|
|
3909
|
+
() => En({
|
|
3910
|
+
canTrack: K(e.canTrack),
|
|
3944
3911
|
content: e.content
|
|
3945
3912
|
})
|
|
3946
3913
|
);
|
|
3947
3914
|
function i() {
|
|
3948
3915
|
var s;
|
|
3949
|
-
return
|
|
3950
|
-
|
|
3916
|
+
return Bn(
|
|
3917
|
+
H(e.content).map((d) => ({
|
|
3951
3918
|
id: d.testVariationId,
|
|
3952
3919
|
testRatio: d.testRatio
|
|
3953
3920
|
})),
|
|
@@ -3955,31 +3922,31 @@ function Jn(e) {
|
|
|
3955
3922
|
);
|
|
3956
3923
|
}
|
|
3957
3924
|
function o() {
|
|
3958
|
-
return
|
|
3925
|
+
return H(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3959
3926
|
}
|
|
3960
3927
|
function a() {
|
|
3961
3928
|
var s;
|
|
3962
3929
|
return t ? {
|
|
3963
3930
|
...e.content,
|
|
3964
3931
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3965
|
-
} :
|
|
3932
|
+
} : qe({
|
|
3966
3933
|
item: e.content,
|
|
3967
|
-
canTrack:
|
|
3934
|
+
canTrack: K(e.canTrack)
|
|
3968
3935
|
});
|
|
3969
3936
|
}
|
|
3970
|
-
return
|
|
3937
|
+
return B(() => {
|
|
3971
3938
|
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3972
|
-
!e.isNestedRender &&
|
|
3973
|
-
|
|
3939
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ l(
|
|
3940
|
+
ne,
|
|
3974
3941
|
{
|
|
3975
3942
|
id: "builderio-init-variants-fns",
|
|
3976
|
-
scriptStr:
|
|
3943
|
+
scriptStr: Pn(),
|
|
3977
3944
|
nonce: e.nonce || ""
|
|
3978
3945
|
}
|
|
3979
3946
|
) : null,
|
|
3980
3947
|
t ? /* @__PURE__ */ V(w, { children: [
|
|
3981
3948
|
/* @__PURE__ */ l(
|
|
3982
|
-
|
|
3949
|
+
G,
|
|
3983
3950
|
{
|
|
3984
3951
|
id: "builderio-variants",
|
|
3985
3952
|
styles: o(),
|
|
@@ -3987,15 +3954,15 @@ function Jn(e) {
|
|
|
3987
3954
|
}
|
|
3988
3955
|
),
|
|
3989
3956
|
/* @__PURE__ */ l(
|
|
3990
|
-
|
|
3957
|
+
ne,
|
|
3991
3958
|
{
|
|
3992
3959
|
id: "builderio-variants-visibility",
|
|
3993
3960
|
scriptStr: i(),
|
|
3994
3961
|
nonce: e.nonce || ""
|
|
3995
3962
|
}
|
|
3996
3963
|
),
|
|
3997
|
-
(r =
|
|
3998
|
-
|
|
3964
|
+
(r = H(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3965
|
+
xe,
|
|
3999
3966
|
{
|
|
4000
3967
|
isNestedRender: e.isNestedRender,
|
|
4001
3968
|
nonce: e.nonce,
|
|
@@ -4022,7 +3989,7 @@ function Jn(e) {
|
|
|
4022
3989
|
))
|
|
4023
3990
|
] }) : null,
|
|
4024
3991
|
/* @__PURE__ */ l(
|
|
4025
|
-
|
|
3992
|
+
xe,
|
|
4026
3993
|
{
|
|
4027
3994
|
nonce: e.nonce,
|
|
4028
3995
|
isNestedRender: e.isNestedRender,
|
|
@@ -4048,13 +4015,13 @@ function Jn(e) {
|
|
|
4048
4015
|
)
|
|
4049
4016
|
] });
|
|
4050
4017
|
}
|
|
4051
|
-
const
|
|
4018
|
+
const Kn = async ({
|
|
4052
4019
|
builderContextValue: e,
|
|
4053
4020
|
symbol: t
|
|
4054
4021
|
}) => {
|
|
4055
4022
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4056
4023
|
(e != null && e.apiKey))
|
|
4057
|
-
return
|
|
4024
|
+
return Se({
|
|
4058
4025
|
model: t.model,
|
|
4059
4026
|
apiKey: e.apiKey,
|
|
4060
4027
|
apiVersion: e.apiVersion,
|
|
@@ -4064,11 +4031,11 @@ const Yn = async ({
|
|
|
4064
4031
|
}
|
|
4065
4032
|
}
|
|
4066
4033
|
}).catch((n) => {
|
|
4067
|
-
|
|
4034
|
+
z.error("Could not fetch symbol content: ", n);
|
|
4068
4035
|
});
|
|
4069
4036
|
};
|
|
4070
|
-
function
|
|
4071
|
-
var s, d, c,
|
|
4037
|
+
function zn(e) {
|
|
4038
|
+
var s, d, c, h;
|
|
4072
4039
|
function t() {
|
|
4073
4040
|
return "div";
|
|
4074
4041
|
}
|
|
@@ -4076,12 +4043,12 @@ function Gn(e) {
|
|
|
4076
4043
|
return "div";
|
|
4077
4044
|
}
|
|
4078
4045
|
function i() {
|
|
4079
|
-
var b,
|
|
4046
|
+
var b, f;
|
|
4080
4047
|
return [
|
|
4081
|
-
e.attributes[
|
|
4048
|
+
e.attributes[j()],
|
|
4082
4049
|
"builder-symbol",
|
|
4083
4050
|
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
4084
|
-
(
|
|
4051
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4085
4052
|
].filter(Boolean).join(" ");
|
|
4086
4053
|
}
|
|
4087
4054
|
const [o, a] = T(() => {
|
|
@@ -4089,18 +4056,18 @@ function Gn(e) {
|
|
|
4089
4056
|
return (b = e.symbol) == null ? void 0 : b.content;
|
|
4090
4057
|
});
|
|
4091
4058
|
function r() {
|
|
4092
|
-
o ||
|
|
4059
|
+
o || Kn({
|
|
4093
4060
|
symbol: e.symbol,
|
|
4094
4061
|
builderContextValue: e.builderContext
|
|
4095
4062
|
}).then((b) => {
|
|
4096
4063
|
b && a(b);
|
|
4097
4064
|
});
|
|
4098
4065
|
}
|
|
4099
|
-
return
|
|
4100
|
-
}, []),
|
|
4066
|
+
return B(() => {
|
|
4067
|
+
}, []), B(() => {
|
|
4101
4068
|
r();
|
|
4102
4069
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4103
|
-
|
|
4070
|
+
qn,
|
|
4104
4071
|
{
|
|
4105
4072
|
nonce: e.builderContext.nonce,
|
|
4106
4073
|
isNestedRender: !0,
|
|
@@ -4117,7 +4084,7 @@ function Gn(e) {
|
|
|
4117
4084
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4118
4085
|
},
|
|
4119
4086
|
canTrack: e.builderContext.canTrack,
|
|
4120
|
-
model: (
|
|
4087
|
+
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4121
4088
|
content: o,
|
|
4122
4089
|
linkComponent: e.builderLinkComponent,
|
|
4123
4090
|
blocksWrapper: t(),
|
|
@@ -4127,14 +4094,14 @@ function Gn(e) {
|
|
|
4127
4094
|
}
|
|
4128
4095
|
export {
|
|
4129
4096
|
F as Blocks,
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4097
|
+
oe as BuilderContext,
|
|
4098
|
+
Je as Button,
|
|
4099
|
+
Ft as Columns,
|
|
4100
|
+
qn as Content,
|
|
4101
|
+
$t as Fragment,
|
|
4102
|
+
Ot as Image,
|
|
4103
|
+
Ut as Section,
|
|
4104
|
+
zn as Symbol,
|
|
4105
|
+
en as Text,
|
|
4106
|
+
Cn as Video
|
|
4140
4107
|
};
|