@builder.io/sdk-react-nextjs 0.16.6 → 0.16.8
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 +27 -27
- package/lib/browser/blocks-exports.mjs +640 -618
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +2 -2
- package/lib/browser/init.cjs +2 -2
- package/lib/browser/init.mjs +20 -20
- package/lib/{node/server-entry-226d18cc.js → browser/server-entry-30b63436.js} +357 -355
- package/lib/browser/server-entry-89b4c0d0.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +38 -38
- package/lib/edge/blocks-exports.mjs +964 -942
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +2 -2
- package/lib/edge/init.cjs +2 -2
- package/lib/edge/init.mjs +20 -20
- package/lib/{browser/server-entry-226d18cc.js → edge/server-entry-30b63436.js} +357 -355
- package/lib/edge/server-entry-89b4c0d0.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +26 -26
- package/lib/node/blocks-exports.mjs +665 -643
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-f354effa.cjs → node-runtime-60abefbd.cjs} +4 -4
- package/lib/node/{node-runtime-f79fed3b.js → node-runtime-c36924d7.js} +3 -3
- package/lib/{edge/server-entry-226d18cc.js → node/server-entry-30b63436.js} +357 -355
- package/lib/node/server-entry-89b4c0d0.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/cjs/components/block/block.helpers.d.ts +1 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/cjs/functions/get-processed-block.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +1 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/esm/functions/get-processed-block.d.ts +1 -0
- package/lib/browser/server-entry-0418e1e6.cjs +0 -2
- package/lib/edge/server-entry-0418e1e6.cjs +0 -2
- package/lib/node/server-entry-0418e1e6.cjs +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var ee = (e, t, n) => (
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { useEffect as R, useRef as ie, useState as A, createContext as _e } from "react";
|
|
8
|
-
import { useRouter as Ke } from "next/navigation";
|
|
2
|
+
var Ve = Object.defineProperty;
|
|
3
|
+
var $e = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => ($e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as I, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as $, isEditing as V, isBrowser as O, getUserAttributes as Fe, checkIsDefined as z, logger as Y, isPreviewing as ke, init as Le, getDefaultCanTrack as q, _track as ue, createEditorListener as Oe, fetch as De, registerInsertMenu as He, setupBrowserForEditing as _e, createRegisterComponentMessage as Ue, fetchOneEntry as Ce, serializeIncludingFunctions as me, handleABTestingSync as je } from "./server-entry-30b63436.js";
|
|
9
7
|
import "lru-cache";
|
|
8
|
+
import { useRef as J, useEffect as R, useState as N, createContext as Me } from "react";
|
|
9
|
+
import { useRouter as Ke } from "next/navigation";
|
|
10
10
|
const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
|
|
11
11
|
function oe(e) {
|
|
12
|
-
return /* @__PURE__ */ l(
|
|
12
|
+
return /* @__PURE__ */ l(I, { children: qe(e.TagName) ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(I, { 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 }) }) });
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
switch (
|
|
14
|
+
const U = () => {
|
|
15
|
+
switch ($) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
18
18
|
case "rsc":
|
|
@@ -29,7 +29,7 @@ function Ye(e) {
|
|
|
29
29
|
function t() {
|
|
30
30
|
return {
|
|
31
31
|
...e.attributes,
|
|
32
|
-
[
|
|
32
|
+
[U()]: `${e.link ? "" : "builder-button"} ${e.attributes[U()] || ""}`,
|
|
33
33
|
...e.link ? {
|
|
34
34
|
href: e.link,
|
|
35
35
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -56,7 +56,13 @@ function Je(e) {
|
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
function Qe(e, ...t) {
|
|
60
|
+
const n = Object.assign({}, e);
|
|
61
|
+
for (const i of t)
|
|
62
|
+
delete n[i];
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
const Ge = ({
|
|
60
66
|
builder: e,
|
|
61
67
|
context: t,
|
|
62
68
|
event: n,
|
|
@@ -68,12 +74,12 @@ const Qe = ({
|
|
|
68
74
|
builder: e,
|
|
69
75
|
context: t,
|
|
70
76
|
event: n
|
|
71
|
-
}),
|
|
77
|
+
}), Xe = () => ({
|
|
72
78
|
isEditing: V(),
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
79
|
+
isBrowser: O(),
|
|
80
|
+
isServer: !O(),
|
|
81
|
+
getUserAttributes: () => Fe()
|
|
82
|
+
}), Ze = (e, {
|
|
77
83
|
isExpression: t = !0
|
|
78
84
|
}) => /* 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, fe = ({
|
|
79
85
|
code: e,
|
|
@@ -84,19 +90,19 @@ const Qe = ({
|
|
|
84
90
|
rootSetState: a,
|
|
85
91
|
rootState: r
|
|
86
92
|
}) => {
|
|
87
|
-
const
|
|
93
|
+
const s = Ge({
|
|
88
94
|
builder: t,
|
|
89
95
|
context: n,
|
|
90
96
|
event: i,
|
|
91
|
-
state:
|
|
97
|
+
state: we({
|
|
92
98
|
rootState: r,
|
|
93
99
|
localState: o,
|
|
94
100
|
rootSetState: a
|
|
95
101
|
})
|
|
96
102
|
});
|
|
97
|
-
return new Function(...
|
|
103
|
+
return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
|
|
98
104
|
};
|
|
99
|
-
function
|
|
105
|
+
function we({
|
|
100
106
|
rootState: e,
|
|
101
107
|
localState: t,
|
|
102
108
|
rootSetState: n
|
|
@@ -106,7 +112,7 @@ function Ce({
|
|
|
106
112
|
if (t && o in t)
|
|
107
113
|
return t[o];
|
|
108
114
|
const a = i[o];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
115
|
+
return typeof a == "object" && a !== null ? we({
|
|
110
116
|
rootState: a,
|
|
111
117
|
localState: void 0,
|
|
112
118
|
rootSetState: n ? (r) => {
|
|
@@ -121,17 +127,17 @@ function Ce({
|
|
|
121
127
|
}
|
|
122
128
|
});
|
|
123
129
|
}
|
|
124
|
-
function
|
|
130
|
+
function et() {
|
|
125
131
|
var e;
|
|
126
132
|
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
127
133
|
}
|
|
128
|
-
const
|
|
134
|
+
const tt = () => {
|
|
129
135
|
var i;
|
|
130
|
-
if (!
|
|
136
|
+
if (!et())
|
|
131
137
|
return !1;
|
|
132
138
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
133
|
-
return e && t && !n ? (
|
|
134
|
-
},
|
|
139
|
+
return e && t && !n ? (Y.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;
|
|
140
|
+
}, nt = (e) => (O() || tt(), fe(e)), it = !0, A = class A {
|
|
135
141
|
static getCacheKey(t) {
|
|
136
142
|
return JSON.stringify({
|
|
137
143
|
...t,
|
|
@@ -141,17 +147,17 @@ const et = () => {
|
|
|
141
147
|
});
|
|
142
148
|
}
|
|
143
149
|
static getCachedValue(t) {
|
|
144
|
-
return
|
|
150
|
+
return A.cache.get(t);
|
|
145
151
|
}
|
|
146
152
|
static setCachedValue(t, n) {
|
|
147
|
-
|
|
153
|
+
A.cache.size > 20 && A.cache.delete(A.cache.keys().next().value), A.cache.set(t, {
|
|
148
154
|
value: n
|
|
149
155
|
});
|
|
150
156
|
}
|
|
151
157
|
};
|
|
152
|
-
ee(
|
|
153
|
-
let
|
|
154
|
-
function
|
|
158
|
+
ee(A, "cacheLimit", 20), ee(A, "cache", /* @__PURE__ */ new Map());
|
|
159
|
+
let L = A;
|
|
160
|
+
function D({
|
|
155
161
|
code: e,
|
|
156
162
|
context: t,
|
|
157
163
|
localState: n,
|
|
@@ -159,47 +165,85 @@ function O({
|
|
|
159
165
|
rootSetState: o,
|
|
160
166
|
event: a,
|
|
161
167
|
isExpression: r = !0,
|
|
162
|
-
enableCache:
|
|
168
|
+
enableCache: s
|
|
163
169
|
}) {
|
|
164
170
|
if (e === "")
|
|
165
171
|
return;
|
|
166
|
-
const
|
|
167
|
-
code:
|
|
172
|
+
const c = {
|
|
173
|
+
code: Ze(e, {
|
|
168
174
|
isExpression: r
|
|
169
175
|
}),
|
|
170
|
-
builder:
|
|
176
|
+
builder: Xe(),
|
|
171
177
|
context: t,
|
|
172
178
|
event: a,
|
|
173
179
|
rootSetState: o,
|
|
174
180
|
rootState: i,
|
|
175
181
|
localState: n
|
|
176
182
|
};
|
|
177
|
-
if (
|
|
178
|
-
const d =
|
|
179
|
-
if (
|
|
180
|
-
return
|
|
183
|
+
if (s && !it) {
|
|
184
|
+
const d = L.getCacheKey(c), u = L.getCachedValue(d);
|
|
185
|
+
if (u)
|
|
186
|
+
return u.value;
|
|
181
187
|
}
|
|
182
188
|
try {
|
|
183
|
-
const d =
|
|
184
|
-
if (
|
|
185
|
-
const
|
|
186
|
-
|
|
189
|
+
const d = nt(c);
|
|
190
|
+
if (s) {
|
|
191
|
+
const u = L.getCacheKey(c);
|
|
192
|
+
L.setCachedValue(u, d);
|
|
187
193
|
}
|
|
188
194
|
return d;
|
|
189
195
|
} catch (d) {
|
|
190
|
-
|
|
196
|
+
Y.error("Failed code evaluation: " + d.message, {
|
|
191
197
|
code: e
|
|
192
198
|
});
|
|
193
199
|
return;
|
|
194
200
|
}
|
|
195
201
|
}
|
|
196
|
-
const ae = (e) => JSON.parse(JSON.stringify(e)),
|
|
202
|
+
const ae = (e) => JSON.parse(JSON.stringify(e)), ot = (e, t, n) => {
|
|
197
203
|
if (Object(e) !== e)
|
|
198
204
|
return e;
|
|
199
205
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
200
206
|
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;
|
|
201
207
|
};
|
|
202
|
-
|
|
208
|
+
function ne(e) {
|
|
209
|
+
if (e === null || typeof e != "object")
|
|
210
|
+
return e;
|
|
211
|
+
if (Array.isArray(e))
|
|
212
|
+
return e.map((n) => ne(n));
|
|
213
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
214
|
+
return e;
|
|
215
|
+
const t = {};
|
|
216
|
+
for (const n in e)
|
|
217
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
218
|
+
return t;
|
|
219
|
+
}
|
|
220
|
+
const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) => {
|
|
221
|
+
if (at) {
|
|
222
|
+
const t = ae(e);
|
|
223
|
+
return {
|
|
224
|
+
...t,
|
|
225
|
+
properties: {
|
|
226
|
+
...t.properties
|
|
227
|
+
},
|
|
228
|
+
actions: {
|
|
229
|
+
...t.actions
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
} else {
|
|
233
|
+
const t = ne(Qe(e, "children", "meta"));
|
|
234
|
+
return {
|
|
235
|
+
...t,
|
|
236
|
+
properties: {
|
|
237
|
+
...t.properties
|
|
238
|
+
},
|
|
239
|
+
actions: {
|
|
240
|
+
...t.actions
|
|
241
|
+
},
|
|
242
|
+
children: e.children,
|
|
243
|
+
meta: e.meta
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}, ct = ({
|
|
203
247
|
block: e,
|
|
204
248
|
context: t,
|
|
205
249
|
localState: n,
|
|
@@ -208,17 +252,9 @@ const it = ({
|
|
|
208
252
|
}) => {
|
|
209
253
|
if (!e.bindings)
|
|
210
254
|
return e;
|
|
211
|
-
const a =
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
...a.properties
|
|
215
|
-
},
|
|
216
|
-
actions: {
|
|
217
|
-
...a.actions
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
for (const c in e.bindings) {
|
|
221
|
-
const s = e.bindings[c], d = O({
|
|
255
|
+
const a = rt(e);
|
|
256
|
+
for (const r in e.bindings) {
|
|
257
|
+
const s = e.bindings[r], c = D({
|
|
222
258
|
code: s,
|
|
223
259
|
localState: n,
|
|
224
260
|
rootState: i,
|
|
@@ -226,11 +262,11 @@ const it = ({
|
|
|
226
262
|
context: t,
|
|
227
263
|
enableCache: !0
|
|
228
264
|
});
|
|
229
|
-
|
|
265
|
+
ot(a, r, c);
|
|
230
266
|
}
|
|
231
|
-
return
|
|
267
|
+
return a;
|
|
232
268
|
};
|
|
233
|
-
function
|
|
269
|
+
function lt({
|
|
234
270
|
block: e,
|
|
235
271
|
context: t,
|
|
236
272
|
shouldEvaluateBindings: n,
|
|
@@ -239,7 +275,7 @@ function Y({
|
|
|
239
275
|
rootSetState: a
|
|
240
276
|
}) {
|
|
241
277
|
const r = e;
|
|
242
|
-
return n ?
|
|
278
|
+
return n ? ct({
|
|
243
279
|
block: r,
|
|
244
280
|
localState: i,
|
|
245
281
|
rootState: o,
|
|
@@ -247,42 +283,42 @@ function Y({
|
|
|
247
283
|
context: t
|
|
248
284
|
}) : r;
|
|
249
285
|
}
|
|
250
|
-
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "",
|
|
286
|
+
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ie = (e) => Object.entries(e).map(([n, i]) => {
|
|
251
287
|
if (typeof i == "string")
|
|
252
288
|
return `${re(n)}: ${i};`;
|
|
253
|
-
}).filter(z),
|
|
254
|
-
`),
|
|
289
|
+
}).filter(z), st = (e) => Ie(e).join(`
|
|
290
|
+
`), M = ({
|
|
255
291
|
mediaQuery: e,
|
|
256
292
|
className: t,
|
|
257
293
|
styles: n
|
|
258
294
|
}) => {
|
|
259
295
|
const i = `.${t} {
|
|
260
|
-
${
|
|
296
|
+
${st(n)}
|
|
261
297
|
}`;
|
|
262
298
|
return e ? `${e} {
|
|
263
299
|
${i}
|
|
264
300
|
}` : i;
|
|
265
301
|
};
|
|
266
|
-
function
|
|
302
|
+
function dt({
|
|
267
303
|
style: e
|
|
268
304
|
}) {
|
|
269
305
|
return e;
|
|
270
306
|
}
|
|
271
|
-
const
|
|
307
|
+
const ut = ({
|
|
272
308
|
block: e,
|
|
273
309
|
context: t
|
|
274
|
-
}) =>
|
|
310
|
+
}) => Te(dt({
|
|
275
311
|
style: e.style || {},
|
|
276
312
|
context: t,
|
|
277
313
|
block: e
|
|
278
314
|
}));
|
|
279
|
-
function
|
|
280
|
-
switch (
|
|
315
|
+
function Te(e) {
|
|
316
|
+
switch ($) {
|
|
281
317
|
case "svelte":
|
|
282
318
|
case "vue":
|
|
283
319
|
case "solid":
|
|
284
320
|
case "angular":
|
|
285
|
-
return
|
|
321
|
+
return Ie(e).join(" ");
|
|
286
322
|
case "qwik":
|
|
287
323
|
case "reactNative":
|
|
288
324
|
case "react":
|
|
@@ -290,29 +326,21 @@ function Ie(e) {
|
|
|
290
326
|
return e;
|
|
291
327
|
}
|
|
292
328
|
}
|
|
293
|
-
const
|
|
329
|
+
const mt = ({
|
|
294
330
|
block: e,
|
|
295
|
-
|
|
296
|
-
registeredComponents: n
|
|
331
|
+
registeredComponents: t
|
|
297
332
|
}) => {
|
|
298
|
-
var
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
localState: t.localState,
|
|
302
|
-
rootState: t.rootState,
|
|
303
|
-
rootSetState: t.rootSetState,
|
|
304
|
-
context: t.context,
|
|
305
|
-
shouldEvaluateBindings: !1
|
|
306
|
-
}).component) == null ? void 0 : a.name;
|
|
307
|
-
if (!i)
|
|
333
|
+
var o;
|
|
334
|
+
const n = (o = e.component) == null ? void 0 : o.name;
|
|
335
|
+
if (!n)
|
|
308
336
|
return null;
|
|
309
|
-
const
|
|
310
|
-
if (
|
|
311
|
-
return
|
|
337
|
+
const i = t[n];
|
|
338
|
+
if (i)
|
|
339
|
+
return i;
|
|
312
340
|
console.warn(`
|
|
313
|
-
Could not find a registered component named "${
|
|
341
|
+
Could not find a registered component named "${n}".
|
|
314
342
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
315
|
-
},
|
|
343
|
+
}, ft = ({
|
|
316
344
|
block: e,
|
|
317
345
|
context: t
|
|
318
346
|
}) => {
|
|
@@ -322,7 +350,7 @@ const ct = ({
|
|
|
322
350
|
} = e;
|
|
323
351
|
if (!(n != null && n.collection))
|
|
324
352
|
return;
|
|
325
|
-
const o =
|
|
353
|
+
const o = D({
|
|
326
354
|
code: n.collection,
|
|
327
355
|
localState: t.localState,
|
|
328
356
|
rootState: t.rootState,
|
|
@@ -333,40 +361,40 @@ const ct = ({
|
|
|
333
361
|
if (!Array.isArray(o))
|
|
334
362
|
return;
|
|
335
363
|
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
336
|
-
return o.map((
|
|
364
|
+
return o.map((c, d) => ({
|
|
337
365
|
context: {
|
|
338
366
|
...t,
|
|
339
367
|
localState: {
|
|
340
368
|
...t.localState,
|
|
341
369
|
$index: d,
|
|
342
|
-
$item:
|
|
343
|
-
[r]:
|
|
370
|
+
$item: c,
|
|
371
|
+
[r]: c,
|
|
344
372
|
[`$${r}Index`]: d
|
|
345
373
|
}
|
|
346
374
|
},
|
|
347
375
|
block: i
|
|
348
376
|
}));
|
|
349
|
-
},
|
|
377
|
+
}, ht = (e, t) => {
|
|
350
378
|
var n;
|
|
351
379
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
352
380
|
builderLinkComponent: t
|
|
353
381
|
} : {};
|
|
354
|
-
},
|
|
382
|
+
}, gt = (e, t) => {
|
|
355
383
|
var n;
|
|
356
384
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
357
385
|
builderComponents: t
|
|
358
386
|
} : {};
|
|
359
|
-
},
|
|
387
|
+
}, bt = (e, t) => {
|
|
360
388
|
var n;
|
|
361
389
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
362
390
|
builderBlock: t
|
|
363
391
|
} : {};
|
|
364
|
-
},
|
|
392
|
+
}, yt = (e, t) => {
|
|
365
393
|
var n;
|
|
366
394
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
367
395
|
builderContext: t
|
|
368
396
|
} : {};
|
|
369
|
-
},
|
|
397
|
+
}, Re = {
|
|
370
398
|
small: {
|
|
371
399
|
min: 320,
|
|
372
400
|
default: 321,
|
|
@@ -382,11 +410,11 @@ const ct = ({
|
|
|
382
410
|
default: 991,
|
|
383
411
|
max: 1200
|
|
384
412
|
}
|
|
385
|
-
}, he = (e, t =
|
|
413
|
+
}, he = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
|
|
386
414
|
small: e,
|
|
387
415
|
medium: t
|
|
388
416
|
}) => {
|
|
389
|
-
const n = ae(
|
|
417
|
+
const n = ae(Re);
|
|
390
418
|
if (!e || !t)
|
|
391
419
|
return n;
|
|
392
420
|
const i = Math.floor(e / 2);
|
|
@@ -419,71 +447,57 @@ function Q(e) {
|
|
|
419
447
|
}
|
|
420
448
|
);
|
|
421
449
|
}
|
|
422
|
-
function
|
|
450
|
+
function pt(e) {
|
|
423
451
|
const t = function() {
|
|
424
|
-
const o =
|
|
425
|
-
block: e.block,
|
|
426
|
-
localState: e.context.localState,
|
|
427
|
-
rootState: e.context.rootState,
|
|
428
|
-
rootSetState: e.context.rootSetState,
|
|
429
|
-
context: e.context.context,
|
|
430
|
-
shouldEvaluateBindings: !0
|
|
431
|
-
});
|
|
452
|
+
const o = e.block;
|
|
432
453
|
return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
|
|
433
454
|
}, n = function() {
|
|
434
|
-
var
|
|
435
|
-
const o =
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
rootSetState: e.context.rootSetState,
|
|
440
|
-
context: e.context.context,
|
|
441
|
-
shouldEvaluateBindings: !0
|
|
442
|
-
}), a = o.responsiveStyles, r = e.context.content, c = Re(
|
|
443
|
-
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
444
|
-
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
445
|
-
if (!u)
|
|
455
|
+
var p, y, C;
|
|
456
|
+
const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Ee(
|
|
457
|
+
((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
|
|
458
|
+
), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, u = a == null ? void 0 : a.small, m = o.id;
|
|
459
|
+
if (!m)
|
|
446
460
|
return "";
|
|
447
|
-
const
|
|
448
|
-
className:
|
|
449
|
-
styles:
|
|
450
|
-
}) : "",
|
|
451
|
-
className:
|
|
461
|
+
const f = c ? M({
|
|
462
|
+
className: m,
|
|
463
|
+
styles: c
|
|
464
|
+
}) : "", S = d ? M({
|
|
465
|
+
className: m,
|
|
452
466
|
styles: d,
|
|
453
467
|
mediaQuery: he(
|
|
454
468
|
"medium",
|
|
455
|
-
|
|
469
|
+
s
|
|
456
470
|
)
|
|
457
|
-
}) : "",
|
|
458
|
-
className:
|
|
459
|
-
styles:
|
|
471
|
+
}) : "", k = u ? M({
|
|
472
|
+
className: m,
|
|
473
|
+
styles: u,
|
|
460
474
|
mediaQuery: he(
|
|
461
475
|
"small",
|
|
462
|
-
|
|
476
|
+
s
|
|
463
477
|
)
|
|
464
|
-
}) : "",
|
|
465
|
-
let
|
|
466
|
-
if (
|
|
467
|
-
const
|
|
468
|
-
|
|
469
|
-
className: `${
|
|
478
|
+
}) : "", g = o.animations && o.animations.find((E) => E.trigger === "hover");
|
|
479
|
+
let T = "";
|
|
480
|
+
if (g) {
|
|
481
|
+
const E = ((C = (y = g.steps) == null ? void 0 : y[1]) == null ? void 0 : C.styles) || {};
|
|
482
|
+
T = M({
|
|
483
|
+
className: `${m}:hover`,
|
|
470
484
|
styles: {
|
|
471
|
-
...
|
|
472
|
-
transition: `all ${
|
|
473
|
-
|
|
485
|
+
...E,
|
|
486
|
+
transition: `all ${g.duration}s ${re(
|
|
487
|
+
g.easing
|
|
474
488
|
)}`,
|
|
475
|
-
transitionDelay:
|
|
489
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
476
490
|
}
|
|
477
491
|
}) || "";
|
|
478
492
|
}
|
|
479
493
|
return [
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
494
|
+
f,
|
|
495
|
+
S,
|
|
496
|
+
k,
|
|
497
|
+
T
|
|
484
498
|
].join(" ");
|
|
485
499
|
};
|
|
486
|
-
return /* @__PURE__ */ l(
|
|
500
|
+
return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
487
501
|
Q,
|
|
488
502
|
{
|
|
489
503
|
id: "builderio-block",
|
|
@@ -492,10 +506,10 @@ function ft(e) {
|
|
|
492
506
|
}
|
|
493
507
|
) }) : null });
|
|
494
508
|
}
|
|
495
|
-
function
|
|
509
|
+
function vt(e) {
|
|
496
510
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
497
511
|
}
|
|
498
|
-
const
|
|
512
|
+
const xt = (e) => `on${vt(e)}`, St = (e, t) => (n) => D({
|
|
499
513
|
code: e,
|
|
500
514
|
context: t.context,
|
|
501
515
|
localState: t.localState,
|
|
@@ -505,16 +519,16 @@ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
|
|
|
505
519
|
isExpression: !1,
|
|
506
520
|
enableCache: !0
|
|
507
521
|
});
|
|
508
|
-
function
|
|
522
|
+
function Pe(e) {
|
|
509
523
|
var i;
|
|
510
524
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
511
525
|
for (const o in n) {
|
|
512
526
|
if (!n.hasOwnProperty(o))
|
|
513
527
|
continue;
|
|
514
528
|
const a = n[o];
|
|
515
|
-
let r =
|
|
529
|
+
let r = xt(o);
|
|
516
530
|
if (e.stripPrefix)
|
|
517
|
-
switch (
|
|
531
|
+
switch ($) {
|
|
518
532
|
case "vue":
|
|
519
533
|
r = r.replace("v-on:", "");
|
|
520
534
|
break;
|
|
@@ -522,16 +536,16 @@ function Ee(e) {
|
|
|
522
536
|
r = r.replace("on:", "");
|
|
523
537
|
break;
|
|
524
538
|
}
|
|
525
|
-
t[r] =
|
|
539
|
+
t[r] = St(a, e);
|
|
526
540
|
}
|
|
527
541
|
return t;
|
|
528
542
|
}
|
|
529
|
-
function
|
|
543
|
+
function kt({
|
|
530
544
|
properties: e
|
|
531
545
|
}) {
|
|
532
546
|
return e;
|
|
533
547
|
}
|
|
534
|
-
const
|
|
548
|
+
const Ct = (e) => ({
|
|
535
549
|
href: e.href
|
|
536
550
|
});
|
|
537
551
|
function ce({
|
|
@@ -540,22 +554,22 @@ function ce({
|
|
|
540
554
|
}) {
|
|
541
555
|
var i;
|
|
542
556
|
const n = {
|
|
543
|
-
...
|
|
557
|
+
...Ct(e),
|
|
544
558
|
...e.properties,
|
|
545
559
|
"builder-id": e.id,
|
|
546
|
-
style:
|
|
560
|
+
style: ut({
|
|
547
561
|
block: e,
|
|
548
562
|
context: t
|
|
549
563
|
}),
|
|
550
|
-
[
|
|
564
|
+
[U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
551
565
|
};
|
|
552
|
-
return
|
|
566
|
+
return kt({
|
|
553
567
|
properties: n,
|
|
554
568
|
context: t,
|
|
555
569
|
block: e
|
|
556
570
|
});
|
|
557
571
|
}
|
|
558
|
-
function
|
|
572
|
+
function wt(e) {
|
|
559
573
|
return /* @__PURE__ */ l(
|
|
560
574
|
oe,
|
|
561
575
|
{
|
|
@@ -564,7 +578,7 @@ function St(e) {
|
|
|
564
578
|
block: e.block,
|
|
565
579
|
context: e.context
|
|
566
580
|
}),
|
|
567
|
-
actionAttributes:
|
|
581
|
+
actionAttributes: Pe({
|
|
568
582
|
block: e.block,
|
|
569
583
|
rootState: e.context.rootState,
|
|
570
584
|
rootSetState: e.context.rootSetState,
|
|
@@ -576,14 +590,14 @@ function St(e) {
|
|
|
576
590
|
}
|
|
577
591
|
);
|
|
578
592
|
}
|
|
579
|
-
function
|
|
593
|
+
function It(e) {
|
|
580
594
|
function t() {
|
|
581
595
|
return e.includeBlockProps ? {
|
|
582
596
|
...ce({
|
|
583
597
|
block: e.block,
|
|
584
598
|
context: e.context
|
|
585
599
|
}),
|
|
586
|
-
...
|
|
600
|
+
...Pe({
|
|
587
601
|
block: e.block,
|
|
588
602
|
rootState: e.context.rootState,
|
|
589
603
|
rootSetState: e.context.rootSetState,
|
|
@@ -594,7 +608,7 @@ function vt(e) {
|
|
|
594
608
|
}
|
|
595
609
|
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
596
610
|
}
|
|
597
|
-
const
|
|
611
|
+
const Tt = ({
|
|
598
612
|
componentOptions: e,
|
|
599
613
|
builderBlock: t,
|
|
600
614
|
context: n,
|
|
@@ -603,7 +617,7 @@ const pt = ({
|
|
|
603
617
|
isInteractive: a,
|
|
604
618
|
contextValue: r
|
|
605
619
|
}) => {
|
|
606
|
-
const
|
|
620
|
+
const s = {
|
|
607
621
|
...e,
|
|
608
622
|
/**
|
|
609
623
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -622,15 +636,15 @@ const pt = ({
|
|
|
622
636
|
context: n,
|
|
623
637
|
wrapperProps: e,
|
|
624
638
|
includeBlockProps: o
|
|
625
|
-
} :
|
|
639
|
+
} : s;
|
|
626
640
|
};
|
|
627
641
|
function ge(e) {
|
|
628
642
|
var n;
|
|
629
|
-
const t = e.isInteractive ?
|
|
630
|
-
return /* @__PURE__ */ l(
|
|
643
|
+
const t = e.isInteractive ? It : e.componentRef;
|
|
644
|
+
return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
631
645
|
t,
|
|
632
646
|
{
|
|
633
|
-
...
|
|
647
|
+
...Tt({
|
|
634
648
|
componentOptions: e.componentOptions,
|
|
635
649
|
builderBlock: e.builderBlock,
|
|
636
650
|
context: e.context,
|
|
@@ -653,7 +667,7 @@ function ge(e) {
|
|
|
653
667
|
}
|
|
654
668
|
) }) : null });
|
|
655
669
|
}
|
|
656
|
-
function
|
|
670
|
+
function Rt(e) {
|
|
657
671
|
const t = e.repeatContext;
|
|
658
672
|
return /* @__PURE__ */ l(
|
|
659
673
|
G,
|
|
@@ -666,21 +680,20 @@ function kt(e) {
|
|
|
666
680
|
);
|
|
667
681
|
}
|
|
668
682
|
function G(e) {
|
|
669
|
-
var
|
|
683
|
+
var d, u, m;
|
|
670
684
|
const t = function() {
|
|
671
|
-
return
|
|
672
|
-
block: e.block,
|
|
673
|
-
context: e.context,
|
|
674
|
-
registeredComponents: e.registeredComponents
|
|
675
|
-
});
|
|
676
|
-
}, n = function() {
|
|
677
|
-
return lt({
|
|
685
|
+
return ft({
|
|
678
686
|
block: e.block,
|
|
679
687
|
context: e.context
|
|
680
688
|
});
|
|
689
|
+
}, n = {
|
|
690
|
+
value: null,
|
|
691
|
+
update: !1
|
|
681
692
|
}, i = function() {
|
|
682
|
-
var
|
|
683
|
-
|
|
693
|
+
var k;
|
|
694
|
+
if (n.value && !n.update && !ke())
|
|
695
|
+
return n.value;
|
|
696
|
+
const S = (k = e.block.repeat) != null && k.collection ? e.block : lt({
|
|
684
697
|
block: e.block,
|
|
685
698
|
localState: e.context.localState,
|
|
686
699
|
rootState: e.context.rootState,
|
|
@@ -688,30 +701,36 @@ function G(e) {
|
|
|
688
701
|
context: e.context.context,
|
|
689
702
|
shouldEvaluateBindings: !0
|
|
690
703
|
});
|
|
704
|
+
return n.value = S, n.update = !1, S;
|
|
691
705
|
}, o = function() {
|
|
692
|
-
|
|
693
|
-
|
|
706
|
+
return mt({
|
|
707
|
+
block: i(),
|
|
708
|
+
registeredComponents: e.registeredComponents
|
|
709
|
+
});
|
|
694
710
|
}, a = function() {
|
|
695
|
-
var
|
|
696
|
-
|
|
697
|
-
return !!((b = n()) != null && b.length);
|
|
698
|
-
const h = "hide" in i() ? i().hide : !1;
|
|
699
|
-
return ("show" in i() ? i().show : !0) && !h;
|
|
711
|
+
var k;
|
|
712
|
+
return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
700
713
|
}, r = function() {
|
|
701
|
-
var
|
|
702
|
-
|
|
714
|
+
var g, T;
|
|
715
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
716
|
+
return !!((T = t()) != null && T.length);
|
|
717
|
+
const S = "hide" in i() ? i().hide : !1;
|
|
718
|
+
return ("show" in i() ? i().show : !0) && !S;
|
|
719
|
+
}, s = function() {
|
|
720
|
+
var k, g;
|
|
721
|
+
return !((k = o()) != null && k.component) && !t() ? (g = i().children) != null ? g : [] : [];
|
|
703
722
|
}, c = function() {
|
|
704
|
-
var
|
|
723
|
+
var S, k, g, T;
|
|
705
724
|
return {
|
|
706
|
-
blockChildren: (
|
|
707
|
-
componentRef: (
|
|
725
|
+
blockChildren: (S = i().children) != null ? S : [],
|
|
726
|
+
componentRef: (k = o()) == null ? void 0 : k.component,
|
|
708
727
|
componentOptions: {
|
|
709
728
|
...Je(i()),
|
|
710
|
-
...
|
|
711
|
-
...
|
|
712
|
-
...
|
|
713
|
-
...
|
|
714
|
-
|
|
729
|
+
...bt(o(), i()),
|
|
730
|
+
...yt(o(), e.context),
|
|
731
|
+
...ht(o(), e.linkComponent),
|
|
732
|
+
...gt(
|
|
733
|
+
o(),
|
|
715
734
|
e.registeredComponents
|
|
716
735
|
)
|
|
717
736
|
},
|
|
@@ -719,13 +738,13 @@ function G(e) {
|
|
|
719
738
|
linkComponent: e.linkComponent,
|
|
720
739
|
registeredComponents: e.registeredComponents,
|
|
721
740
|
builderBlock: i(),
|
|
722
|
-
includeBlockProps: ((
|
|
723
|
-
isInteractive: !((
|
|
741
|
+
includeBlockProps: ((g = o()) == null ? void 0 : g.noWrap) === !0,
|
|
742
|
+
isInteractive: !((T = o()) != null && T.isRSC && $ === "rsc")
|
|
724
743
|
};
|
|
725
744
|
};
|
|
726
|
-
return /* @__PURE__ */ l(
|
|
727
|
-
/* @__PURE__ */ l(
|
|
728
|
-
(
|
|
745
|
+
return /* @__PURE__ */ l(I, { children: r() ? /* @__PURE__ */ P(I, { children: [
|
|
746
|
+
/* @__PURE__ */ l(pt, { block: i(), context: e.context }),
|
|
747
|
+
(d = o()) != null && d.noWrap ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
|
|
729
748
|
ge,
|
|
730
749
|
{
|
|
731
750
|
componentRef: c().componentRef,
|
|
@@ -738,19 +757,19 @@ function G(e) {
|
|
|
738
757
|
includeBlockProps: c().includeBlockProps,
|
|
739
758
|
isInteractive: c().isInteractive
|
|
740
759
|
}
|
|
741
|
-
) }) : /* @__PURE__ */ l(
|
|
742
|
-
|
|
760
|
+
) }) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ l(
|
|
761
|
+
Rt,
|
|
743
762
|
{
|
|
744
|
-
repeatContext:
|
|
745
|
-
block:
|
|
763
|
+
repeatContext: f.context,
|
|
764
|
+
block: f.block,
|
|
746
765
|
registeredComponents: e.registeredComponents,
|
|
747
766
|
linkComponent: e.linkComponent
|
|
748
767
|
},
|
|
749
|
-
|
|
750
|
-
)) }) : /* @__PURE__ */
|
|
751
|
-
|
|
768
|
+
S
|
|
769
|
+
)) }) : /* @__PURE__ */ P(
|
|
770
|
+
wt,
|
|
752
771
|
{
|
|
753
|
-
Wrapper:
|
|
772
|
+
Wrapper: a(),
|
|
754
773
|
block: i(),
|
|
755
774
|
context: e.context,
|
|
756
775
|
children: [
|
|
@@ -768,29 +787,30 @@ function G(e) {
|
|
|
768
787
|
isInteractive: c().isInteractive
|
|
769
788
|
}
|
|
770
789
|
),
|
|
771
|
-
(
|
|
790
|
+
(u = s()) == null ? void 0 : u.map((f) => /* @__PURE__ */ l(
|
|
772
791
|
G,
|
|
773
792
|
{
|
|
774
|
-
block:
|
|
793
|
+
block: f,
|
|
775
794
|
registeredComponents: e.registeredComponents,
|
|
776
795
|
linkComponent: e.linkComponent,
|
|
777
796
|
context: e.context
|
|
778
797
|
},
|
|
779
|
-
|
|
798
|
+
f.id
|
|
780
799
|
))
|
|
781
800
|
]
|
|
782
801
|
}
|
|
783
802
|
) })
|
|
784
803
|
] }) : null });
|
|
785
804
|
}
|
|
786
|
-
function
|
|
787
|
-
|
|
788
|
-
var o;
|
|
789
|
-
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
790
|
-
}
|
|
805
|
+
function Et(e) {
|
|
806
|
+
const t = J(null);
|
|
791
807
|
function n() {
|
|
792
|
-
var
|
|
793
|
-
|
|
808
|
+
var a;
|
|
809
|
+
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
810
|
+
}
|
|
811
|
+
function i() {
|
|
812
|
+
var a, r;
|
|
813
|
+
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
794
814
|
{
|
|
795
815
|
type: "builder.clickEmptyBlocks",
|
|
796
816
|
data: {
|
|
@@ -801,9 +821,9 @@ function Ct(e) {
|
|
|
801
821
|
"*"
|
|
802
822
|
));
|
|
803
823
|
}
|
|
804
|
-
function
|
|
805
|
-
var
|
|
806
|
-
V() && !((
|
|
824
|
+
function o() {
|
|
825
|
+
var a, r;
|
|
826
|
+
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
807
827
|
{
|
|
808
828
|
type: "builder.hoverEmptyBlocks",
|
|
809
829
|
data: {
|
|
@@ -814,22 +834,24 @@ function Ct(e) {
|
|
|
814
834
|
"*"
|
|
815
835
|
));
|
|
816
836
|
}
|
|
817
|
-
return
|
|
837
|
+
return R(() => {
|
|
838
|
+
}, []), /* @__PURE__ */ P(I, { children: [
|
|
818
839
|
/* @__PURE__ */ l(
|
|
819
840
|
e.BlocksWrapper,
|
|
820
841
|
{
|
|
821
|
-
|
|
842
|
+
ref: t,
|
|
843
|
+
className: n() + " props-blocks-wrapper-51ef31b4",
|
|
822
844
|
"builder-path": e.path,
|
|
823
845
|
"builder-parent-id": e.parent,
|
|
824
846
|
style: e.styleProp,
|
|
825
|
-
onClick: (
|
|
826
|
-
onMouseEnter: (
|
|
827
|
-
onKeyPress: (
|
|
847
|
+
onClick: (a) => i(),
|
|
848
|
+
onMouseEnter: (a) => o(),
|
|
849
|
+
onKeyPress: (a) => i(),
|
|
828
850
|
...e.BlocksWrapperProps,
|
|
829
851
|
children: e.children
|
|
830
852
|
}
|
|
831
853
|
),
|
|
832
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
854
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
833
855
|
display: flex;
|
|
834
856
|
flex-direction: column;
|
|
835
857
|
align-items: stretch;
|
|
@@ -839,7 +861,7 @@ function Ct(e) {
|
|
|
839
861
|
function le(e) {
|
|
840
862
|
var t, n, i;
|
|
841
863
|
return /* @__PURE__ */ l(
|
|
842
|
-
|
|
864
|
+
Et,
|
|
843
865
|
{
|
|
844
866
|
blocks: e.blocks,
|
|
845
867
|
parent: e.parent,
|
|
@@ -847,7 +869,7 @@ function le(e) {
|
|
|
847
869
|
styleProp: e.styleProp,
|
|
848
870
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
849
871
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
850
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
872
|
+
children: e.blocks ? /* @__PURE__ */ l(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
851
873
|
G,
|
|
852
874
|
{
|
|
853
875
|
block: o,
|
|
@@ -860,71 +882,71 @@ function le(e) {
|
|
|
860
882
|
}
|
|
861
883
|
);
|
|
862
884
|
}
|
|
863
|
-
const
|
|
864
|
-
function
|
|
865
|
-
var
|
|
885
|
+
const Pt = (e) => `builder-columns ${e}-breakpoints`;
|
|
886
|
+
function Bt(e) {
|
|
887
|
+
var g, T;
|
|
866
888
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
|
|
867
889
|
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
868
890
|
}, a = function(y) {
|
|
869
|
-
var
|
|
870
|
-
return ((
|
|
891
|
+
var C;
|
|
892
|
+
return ((C = n[y]) == null ? void 0 : C.width) || 100 / n.length;
|
|
871
893
|
}, r = function(y) {
|
|
872
|
-
const
|
|
873
|
-
return `calc(${
|
|
874
|
-
},
|
|
894
|
+
const C = a(y), E = t * (n.length - 1) * (C / 100);
|
|
895
|
+
return `calc(${C}% - ${E}px)`;
|
|
896
|
+
}, s = function({
|
|
875
897
|
stackedStyle: y,
|
|
876
|
-
desktopStyle:
|
|
898
|
+
desktopStyle: C
|
|
877
899
|
}) {
|
|
878
|
-
return i === "tablet" ? y :
|
|
879
|
-
},
|
|
900
|
+
return i === "tablet" ? y : C;
|
|
901
|
+
}, c = function({
|
|
880
902
|
stackedStyle: y,
|
|
881
|
-
desktopStyle:
|
|
903
|
+
desktopStyle: C
|
|
882
904
|
}) {
|
|
883
|
-
return i === "never" ?
|
|
884
|
-
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
905
|
+
return i === "never" ? C : y;
|
|
906
|
+
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
|
|
885
907
|
return {
|
|
886
908
|
"--flex-dir": d,
|
|
887
|
-
"--flex-dir-tablet":
|
|
909
|
+
"--flex-dir-tablet": s({
|
|
888
910
|
stackedStyle: d,
|
|
889
911
|
desktopStyle: "row"
|
|
890
912
|
})
|
|
891
913
|
};
|
|
892
|
-
},
|
|
893
|
-
const
|
|
914
|
+
}, m = function(y) {
|
|
915
|
+
const C = y === 0 ? 0 : t, E = r(y), W = `${C}px`, H = "100%", _ = 0;
|
|
894
916
|
return {
|
|
895
917
|
...{
|
|
896
918
|
display: "flex",
|
|
897
919
|
flexDirection: "column",
|
|
898
920
|
alignItems: "stretch"
|
|
899
921
|
},
|
|
900
|
-
width:
|
|
922
|
+
width: E,
|
|
901
923
|
["marginLeft"]: W,
|
|
902
|
-
"--column-width-mobile":
|
|
903
|
-
stackedStyle: j,
|
|
904
|
-
desktopStyle: T
|
|
905
|
-
}),
|
|
906
|
-
"--column-margin-left-mobile": s({
|
|
924
|
+
"--column-width-mobile": c({
|
|
907
925
|
stackedStyle: H,
|
|
908
|
-
desktopStyle:
|
|
926
|
+
desktopStyle: E
|
|
909
927
|
}),
|
|
910
|
-
"--column-
|
|
911
|
-
stackedStyle:
|
|
912
|
-
desktopStyle:
|
|
928
|
+
"--column-margin-left-mobile": c({
|
|
929
|
+
stackedStyle: _,
|
|
930
|
+
desktopStyle: W
|
|
913
931
|
}),
|
|
914
|
-
"--column-
|
|
932
|
+
"--column-width-tablet": s({
|
|
915
933
|
stackedStyle: H,
|
|
934
|
+
desktopStyle: E
|
|
935
|
+
}),
|
|
936
|
+
"--column-margin-left-tablet": s({
|
|
937
|
+
stackedStyle: _,
|
|
916
938
|
desktopStyle: W
|
|
917
939
|
})
|
|
918
940
|
};
|
|
919
|
-
},
|
|
920
|
-
var
|
|
921
|
-
return
|
|
922
|
-
((W = (
|
|
941
|
+
}, f = function(y) {
|
|
942
|
+
var E, W;
|
|
943
|
+
return Ee(
|
|
944
|
+
((W = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : W.breakpoints) || {}
|
|
923
945
|
)[y].max;
|
|
924
|
-
},
|
|
946
|
+
}, S = function() {
|
|
925
947
|
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
926
948
|
return `
|
|
927
|
-
@media (max-width: ${
|
|
949
|
+
@media (max-width: ${f("medium")}px) {
|
|
928
950
|
.${e.builderBlock.id}-breakpoints {
|
|
929
951
|
flex-direction: var(--flex-dir-tablet);
|
|
930
952
|
align-items: stretch;
|
|
@@ -936,7 +958,7 @@ function It(e) {
|
|
|
936
958
|
}
|
|
937
959
|
}
|
|
938
960
|
|
|
939
|
-
@media (max-width: ${
|
|
961
|
+
@media (max-width: ${f("small")}px) {
|
|
940
962
|
.${e.builderBlock.id}-breakpoints {
|
|
941
963
|
flex-direction: var(--flex-dir);
|
|
942
964
|
align-items: stretch;
|
|
@@ -948,36 +970,36 @@ function It(e) {
|
|
|
948
970
|
}
|
|
949
971
|
},
|
|
950
972
|
`;
|
|
951
|
-
},
|
|
973
|
+
}, k = function(y, C) {
|
|
952
974
|
return {
|
|
953
975
|
...y.link ? {
|
|
954
976
|
href: y.link
|
|
955
977
|
} : {},
|
|
956
|
-
[
|
|
957
|
-
style:
|
|
978
|
+
[U()]: "builder-column",
|
|
979
|
+
style: Te(m(C))
|
|
958
980
|
};
|
|
959
981
|
};
|
|
960
|
-
return /* @__PURE__ */
|
|
961
|
-
/* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
983
|
+
/* @__PURE__ */ P(
|
|
962
984
|
"div",
|
|
963
985
|
{
|
|
964
|
-
className:
|
|
965
|
-
style:
|
|
986
|
+
className: Pt((g = e.builderBlock) == null ? void 0 : g.id) + " div-2cd13691",
|
|
987
|
+
style: u(),
|
|
966
988
|
children: [
|
|
967
989
|
/* @__PURE__ */ l(
|
|
968
990
|
Q,
|
|
969
991
|
{
|
|
970
992
|
id: "builderio-columns",
|
|
971
|
-
styles:
|
|
993
|
+
styles: S(),
|
|
972
994
|
nonce: e.builderContext.nonce
|
|
973
995
|
}
|
|
974
996
|
),
|
|
975
|
-
(
|
|
997
|
+
(T = e.columns) == null ? void 0 : T.map((p, y) => /* @__PURE__ */ l(
|
|
976
998
|
oe,
|
|
977
999
|
{
|
|
978
|
-
TagName: o(
|
|
1000
|
+
TagName: o(p),
|
|
979
1001
|
actionAttributes: {},
|
|
980
|
-
attributes:
|
|
1002
|
+
attributes: k(p, y),
|
|
981
1003
|
children: /* @__PURE__ */ l(
|
|
982
1004
|
le,
|
|
983
1005
|
{
|
|
@@ -989,7 +1011,7 @@ function It(e) {
|
|
|
989
1011
|
context: e.builderContext,
|
|
990
1012
|
registeredComponents: e.builderComponents,
|
|
991
1013
|
linkComponent: e.builderLinkComponent,
|
|
992
|
-
blocks:
|
|
1014
|
+
blocks: p.blocks
|
|
993
1015
|
}
|
|
994
1016
|
)
|
|
995
1017
|
},
|
|
@@ -1004,17 +1026,17 @@ function It(e) {
|
|
|
1004
1026
|
}` })
|
|
1005
1027
|
] });
|
|
1006
1028
|
}
|
|
1007
|
-
function
|
|
1029
|
+
function Wt(e) {
|
|
1008
1030
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1009
1031
|
}
|
|
1010
1032
|
function be(e) {
|
|
1011
1033
|
return e.replace(/http(s)?:/, "");
|
|
1012
1034
|
}
|
|
1013
|
-
function
|
|
1035
|
+
function At(e = "", t, n) {
|
|
1014
1036
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1015
1037
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1016
1038
|
}
|
|
1017
|
-
function
|
|
1039
|
+
function Nt(e, t) {
|
|
1018
1040
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1019
1041
|
return e;
|
|
1020
1042
|
if (t === "master")
|
|
@@ -1033,46 +1055,46 @@ function te(e) {
|
|
|
1033
1055
|
if (e.match(/builder\.io/)) {
|
|
1034
1056
|
let n = e;
|
|
1035
1057
|
const i = Number(e.split("?width=")[1]);
|
|
1036
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1058
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1037
1059
|
}
|
|
1038
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1060
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Nt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1039
1061
|
}
|
|
1040
|
-
function
|
|
1041
|
-
var o, a, r,
|
|
1062
|
+
function Vt(e) {
|
|
1063
|
+
var o, a, r, s, c, d;
|
|
1042
1064
|
function t() {
|
|
1043
|
-
var
|
|
1044
|
-
const
|
|
1045
|
-
if (!
|
|
1065
|
+
var f;
|
|
1066
|
+
const m = e.image || e.src;
|
|
1067
|
+
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
1046
1068
|
// images, otherwise you can supply this prop manually
|
|
1047
|
-
!(
|
|
1069
|
+
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
1048
1070
|
return e.srcset;
|
|
1049
1071
|
if (!e.noWebp) {
|
|
1050
|
-
if (e.srcset && ((
|
|
1072
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1051
1073
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1052
|
-
return console.debug("Removed given srcset"), te(
|
|
1074
|
+
return console.debug("Removed given srcset"), te(m);
|
|
1053
1075
|
} else if (e.image && !e.srcset)
|
|
1054
|
-
return te(
|
|
1055
|
-
return te(
|
|
1076
|
+
return te(m);
|
|
1077
|
+
return te(m);
|
|
1056
1078
|
}
|
|
1057
1079
|
}
|
|
1058
1080
|
function n() {
|
|
1059
|
-
var
|
|
1060
|
-
return (
|
|
1081
|
+
var u;
|
|
1082
|
+
return (u = t == null ? void 0 : t()) != null && u.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1061
1083
|
}
|
|
1062
1084
|
function i() {
|
|
1063
|
-
const
|
|
1085
|
+
const u = {
|
|
1064
1086
|
position: "absolute",
|
|
1065
1087
|
height: "100%",
|
|
1066
1088
|
width: "100%",
|
|
1067
1089
|
left: "0px",
|
|
1068
1090
|
top: "0px"
|
|
1069
1091
|
};
|
|
1070
|
-
return e.aspectRatio ?
|
|
1092
|
+
return e.aspectRatio ? u : void 0;
|
|
1071
1093
|
}
|
|
1072
1094
|
return R(() => {
|
|
1073
|
-
}, []), /* @__PURE__ */
|
|
1074
|
-
/* @__PURE__ */
|
|
1075
|
-
/* @__PURE__ */
|
|
1095
|
+
}, []), /* @__PURE__ */ P(I, { children: [
|
|
1096
|
+
/* @__PURE__ */ P(I, { children: [
|
|
1097
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1076
1098
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1077
1099
|
/* @__PURE__ */ l(
|
|
1078
1100
|
"img",
|
|
@@ -1102,8 +1124,8 @@ function Pt(e) {
|
|
|
1102
1124
|
}
|
|
1103
1125
|
}
|
|
1104
1126
|
) : null,
|
|
1105
|
-
(
|
|
1106
|
-
!e.fitContent && ((d = (
|
|
1127
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
|
|
1128
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1107
1129
|
] }),
|
|
1108
1130
|
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
1109
1131
|
opacity: 1;
|
|
@@ -1124,7 +1146,7 @@ function Pt(e) {
|
|
|
1124
1146
|
}` })
|
|
1125
1147
|
] });
|
|
1126
1148
|
}
|
|
1127
|
-
function
|
|
1149
|
+
function $t(e) {
|
|
1128
1150
|
return /* @__PURE__ */ l(
|
|
1129
1151
|
"section",
|
|
1130
1152
|
{
|
|
@@ -1145,7 +1167,7 @@ function Bt(e) {
|
|
|
1145
1167
|
}
|
|
1146
1168
|
);
|
|
1147
1169
|
}
|
|
1148
|
-
const
|
|
1170
|
+
const Ft = {
|
|
1149
1171
|
name: "Core:Button",
|
|
1150
1172
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1151
1173
|
defaultStyles: {
|
|
@@ -1181,7 +1203,7 @@ const Wt = {
|
|
|
1181
1203
|
shouldReceiveBuilderProps: {
|
|
1182
1204
|
builderLinkComponent: !0
|
|
1183
1205
|
}
|
|
1184
|
-
},
|
|
1206
|
+
}, Lt = {
|
|
1185
1207
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1186
1208
|
name: "Columns",
|
|
1187
1209
|
isRSC: !0,
|
|
@@ -1360,7 +1382,7 @@ const Wt = {
|
|
|
1360
1382
|
});
|
|
1361
1383
|
}
|
|
1362
1384
|
const n = e.get("columns");
|
|
1363
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1385
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
|
|
1364
1386
|
}
|
|
1365
1387
|
}, {
|
|
1366
1388
|
name: "space",
|
|
@@ -1388,13 +1410,13 @@ const Wt = {
|
|
|
1388
1410
|
builderComponents: !0,
|
|
1389
1411
|
builderLinkComponent: !0
|
|
1390
1412
|
}
|
|
1391
|
-
},
|
|
1413
|
+
}, Ot = {
|
|
1392
1414
|
name: "Fragment",
|
|
1393
1415
|
static: !0,
|
|
1394
1416
|
hidden: !0,
|
|
1395
1417
|
canHaveChildren: !0,
|
|
1396
1418
|
noWrap: !0
|
|
1397
|
-
},
|
|
1419
|
+
}, Dt = {
|
|
1398
1420
|
name: "Image",
|
|
1399
1421
|
static: !0,
|
|
1400
1422
|
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",
|
|
@@ -1414,17 +1436,17 @@ const Wt = {
|
|
|
1414
1436
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1415
1437
|
onChange: (e) => {
|
|
1416
1438
|
e.delete("srcset"), e.delete("noWebp");
|
|
1417
|
-
function n(r,
|
|
1418
|
-
return new Promise((
|
|
1419
|
-
const
|
|
1420
|
-
let
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1424
|
-
console.warn("Image load failed",
|
|
1425
|
-
}),
|
|
1426
|
-
|
|
1427
|
-
},
|
|
1439
|
+
function n(r, s = 6e4) {
|
|
1440
|
+
return new Promise((c, d) => {
|
|
1441
|
+
const u = document.createElement("img");
|
|
1442
|
+
let m = !1;
|
|
1443
|
+
u.onload = () => {
|
|
1444
|
+
m = !0, c(u);
|
|
1445
|
+
}, u.addEventListener("error", (f) => {
|
|
1446
|
+
console.warn("Image load failed", f.error), d(f.error);
|
|
1447
|
+
}), u.src = r, setTimeout(() => {
|
|
1448
|
+
m || d(new Error("Image load timed out"));
|
|
1449
|
+
}, s);
|
|
1428
1450
|
});
|
|
1429
1451
|
}
|
|
1430
1452
|
function i(r) {
|
|
@@ -1435,8 +1457,8 @@ const Wt = {
|
|
|
1435
1457
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1436
1458
|
}), o && (!a || a === 0.7041))
|
|
1437
1459
|
return n(o).then((r) => {
|
|
1438
|
-
const
|
|
1439
|
-
e.get("image") === o && (!
|
|
1460
|
+
const s = e.get("aspectRatio");
|
|
1461
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1440
1462
|
});
|
|
1441
1463
|
}
|
|
1442
1464
|
}, {
|
|
@@ -1502,7 +1524,7 @@ const Wt = {
|
|
|
1502
1524
|
shouldReceiveBuilderProps: {
|
|
1503
1525
|
builderBlock: !0
|
|
1504
1526
|
}
|
|
1505
|
-
},
|
|
1527
|
+
}, Ht = {
|
|
1506
1528
|
name: "Core:Section",
|
|
1507
1529
|
static: !0,
|
|
1508
1530
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1541,7 +1563,7 @@ const Wt = {
|
|
|
1541
1563
|
}
|
|
1542
1564
|
}
|
|
1543
1565
|
}]
|
|
1544
|
-
},
|
|
1566
|
+
}, _t = {
|
|
1545
1567
|
name: "Slot",
|
|
1546
1568
|
isRSC: !0,
|
|
1547
1569
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1558,7 +1580,7 @@ const Wt = {
|
|
|
1558
1580
|
builderContext: !0
|
|
1559
1581
|
}
|
|
1560
1582
|
};
|
|
1561
|
-
function
|
|
1583
|
+
function Ut(e) {
|
|
1562
1584
|
var t, n, i;
|
|
1563
1585
|
return /* @__PURE__ */ l(
|
|
1564
1586
|
"div",
|
|
@@ -1581,7 +1603,7 @@ function Lt(e) {
|
|
|
1581
1603
|
}
|
|
1582
1604
|
);
|
|
1583
1605
|
}
|
|
1584
|
-
const
|
|
1606
|
+
const jt = {
|
|
1585
1607
|
name: "Symbol",
|
|
1586
1608
|
noWrap: !0,
|
|
1587
1609
|
static: !0,
|
|
@@ -1620,7 +1642,7 @@ const Ot = {
|
|
|
1620
1642
|
builderComponents: !0,
|
|
1621
1643
|
builderLinkComponent: !0
|
|
1622
1644
|
}
|
|
1623
|
-
},
|
|
1645
|
+
}, Mt = {
|
|
1624
1646
|
shouldReceiveBuilderProps: {
|
|
1625
1647
|
builderBlock: !1,
|
|
1626
1648
|
builderContext: !0
|
|
@@ -1643,27 +1665,27 @@ const Ot = {
|
|
|
1643
1665
|
textAlign: "center"
|
|
1644
1666
|
}
|
|
1645
1667
|
};
|
|
1646
|
-
function
|
|
1668
|
+
function Kt(e) {
|
|
1647
1669
|
return /* @__PURE__ */ l(
|
|
1648
1670
|
"div",
|
|
1649
1671
|
{
|
|
1650
1672
|
className: "builder-text",
|
|
1651
1673
|
dangerouslySetInnerHTML: { __html: function() {
|
|
1652
|
-
var
|
|
1674
|
+
var c;
|
|
1653
1675
|
const i = e.builderContext, {
|
|
1654
1676
|
context: o,
|
|
1655
1677
|
localState: a,
|
|
1656
1678
|
rootState: r,
|
|
1657
|
-
rootSetState:
|
|
1679
|
+
rootSetState: s
|
|
1658
1680
|
} = i;
|
|
1659
|
-
return String(((
|
|
1681
|
+
return String(((c = e.text) == null ? void 0 : c.toString()) || "").replace(
|
|
1660
1682
|
/{{([^}]+)}}/g,
|
|
1661
|
-
(d,
|
|
1662
|
-
code:
|
|
1683
|
+
(d, u) => D({
|
|
1684
|
+
code: u,
|
|
1663
1685
|
context: o,
|
|
1664
1686
|
localState: a,
|
|
1665
1687
|
rootState: r,
|
|
1666
|
-
rootSetState:
|
|
1688
|
+
rootSetState: s,
|
|
1667
1689
|
enableCache: !1
|
|
1668
1690
|
})
|
|
1669
1691
|
);
|
|
@@ -1674,7 +1696,7 @@ function jt(e) {
|
|
|
1674
1696
|
}
|
|
1675
1697
|
);
|
|
1676
1698
|
}
|
|
1677
|
-
const
|
|
1699
|
+
const zt = {
|
|
1678
1700
|
name: "Custom Code",
|
|
1679
1701
|
static: !0,
|
|
1680
1702
|
requiredPermissions: ["editCode"],
|
|
@@ -1697,21 +1719,21 @@ const Ht = {
|
|
|
1697
1719
|
advanced: !0
|
|
1698
1720
|
}]
|
|
1699
1721
|
};
|
|
1700
|
-
function
|
|
1701
|
-
const t =
|
|
1722
|
+
function qt(e) {
|
|
1723
|
+
const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1702
1724
|
return R(() => {
|
|
1703
|
-
var
|
|
1704
|
-
if (!((
|
|
1725
|
+
var s;
|
|
1726
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1705
1727
|
return;
|
|
1706
1728
|
const r = t.current.getElementsByTagName("script");
|
|
1707
|
-
for (let
|
|
1708
|
-
const d = r[
|
|
1729
|
+
for (let c = 0; c < r.length; c++) {
|
|
1730
|
+
const d = r[c];
|
|
1709
1731
|
if (d.src) {
|
|
1710
1732
|
if (n.includes(d.src))
|
|
1711
1733
|
continue;
|
|
1712
1734
|
n.push(d.src);
|
|
1713
|
-
const
|
|
1714
|
-
|
|
1735
|
+
const u = document.createElement("script");
|
|
1736
|
+
u.async = !0, u.src = d.src, document.head.appendChild(u);
|
|
1715
1737
|
} else if (!d.type || [
|
|
1716
1738
|
"text/javascript",
|
|
1717
1739
|
"application/javascript",
|
|
@@ -1721,8 +1743,8 @@ function Mt(e) {
|
|
|
1721
1743
|
continue;
|
|
1722
1744
|
try {
|
|
1723
1745
|
o.push(d.innerText), new Function(d.innerText)();
|
|
1724
|
-
} catch (
|
|
1725
|
-
console.warn("`CustomCode`: Error running script:",
|
|
1746
|
+
} catch (u) {
|
|
1747
|
+
console.warn("`CustomCode`: Error running script:", u);
|
|
1726
1748
|
}
|
|
1727
1749
|
}
|
|
1728
1750
|
}
|
|
@@ -1735,7 +1757,7 @@ function Mt(e) {
|
|
|
1735
1757
|
}
|
|
1736
1758
|
);
|
|
1737
1759
|
}
|
|
1738
|
-
const
|
|
1760
|
+
const Yt = {
|
|
1739
1761
|
name: "Embed",
|
|
1740
1762
|
static: !0,
|
|
1741
1763
|
inputs: [{
|
|
@@ -1750,29 +1772,29 @@ const Ut = {
|
|
|
1750
1772
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1751
1773
|
hideFromUI: !0
|
|
1752
1774
|
}]
|
|
1753
|
-
},
|
|
1754
|
-
function
|
|
1755
|
-
const t =
|
|
1756
|
-
function
|
|
1775
|
+
}, Jt = ["text/javascript", "application/javascript", "application/ecmascript"], Qt = (e) => Jt.includes(e.type);
|
|
1776
|
+
function Gt(e) {
|
|
1777
|
+
const t = J(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, s] = N(() => !1);
|
|
1778
|
+
function c() {
|
|
1757
1779
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1758
1780
|
return;
|
|
1759
1781
|
const d = t.current.getElementsByTagName("script");
|
|
1760
|
-
for (let
|
|
1761
|
-
const
|
|
1762
|
-
if (
|
|
1763
|
-
n.push(
|
|
1764
|
-
const
|
|
1765
|
-
|
|
1766
|
-
} else if (
|
|
1782
|
+
for (let u = 0; u < d.length; u++) {
|
|
1783
|
+
const m = d[u];
|
|
1784
|
+
if (m.src && !n.includes(m.src)) {
|
|
1785
|
+
n.push(m.src);
|
|
1786
|
+
const f = document.createElement("script");
|
|
1787
|
+
f.async = !0, f.src = m.src, document.head.appendChild(f);
|
|
1788
|
+
} else if (Qt(m) && !o.includes(m.innerText))
|
|
1767
1789
|
try {
|
|
1768
|
-
o.push(
|
|
1769
|
-
} catch (
|
|
1770
|
-
console.warn("`Embed`: Error running script:",
|
|
1790
|
+
o.push(m.innerText), new Function(m.innerText)();
|
|
1791
|
+
} catch (f) {
|
|
1792
|
+
console.warn("`Embed`: Error running script:", f);
|
|
1771
1793
|
}
|
|
1772
1794
|
}
|
|
1773
1795
|
}
|
|
1774
1796
|
return R(() => {
|
|
1775
|
-
t.current && !r && (
|
|
1797
|
+
t.current && !r && (s(!0), c());
|
|
1776
1798
|
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1777
1799
|
"div",
|
|
1778
1800
|
{
|
|
@@ -1782,7 +1804,7 @@ function zt(e) {
|
|
|
1782
1804
|
}
|
|
1783
1805
|
);
|
|
1784
1806
|
}
|
|
1785
|
-
const
|
|
1807
|
+
const Xt = {
|
|
1786
1808
|
// friendlyName?
|
|
1787
1809
|
name: "Raw:Img",
|
|
1788
1810
|
hideFromInsertMenu: !0,
|
|
@@ -1797,7 +1819,7 @@ const qt = {
|
|
|
1797
1819
|
noWrap: !0,
|
|
1798
1820
|
static: !0
|
|
1799
1821
|
};
|
|
1800
|
-
function
|
|
1822
|
+
function Zt(e) {
|
|
1801
1823
|
return /* @__PURE__ */ l(
|
|
1802
1824
|
"img",
|
|
1803
1825
|
{
|
|
@@ -1812,7 +1834,7 @@ function Yt(e) {
|
|
|
1812
1834
|
V() && e.imgSrc || "default-key"
|
|
1813
1835
|
);
|
|
1814
1836
|
}
|
|
1815
|
-
const
|
|
1837
|
+
const en = {
|
|
1816
1838
|
name: "Video",
|
|
1817
1839
|
canHaveChildren: !0,
|
|
1818
1840
|
defaultStyles: {
|
|
@@ -1897,8 +1919,8 @@ const Jt = {
|
|
|
1897
1919
|
builderBlock: !0
|
|
1898
1920
|
}
|
|
1899
1921
|
};
|
|
1900
|
-
function
|
|
1901
|
-
var i, o, a, r,
|
|
1922
|
+
function tn(e) {
|
|
1923
|
+
var i, o, a, r, s, c, d;
|
|
1902
1924
|
function t() {
|
|
1903
1925
|
return {
|
|
1904
1926
|
...e.autoPlay === !0 ? {
|
|
@@ -1923,7 +1945,7 @@ function Qt(e) {
|
|
|
1923
1945
|
...t()
|
|
1924
1946
|
};
|
|
1925
1947
|
}
|
|
1926
|
-
return /* @__PURE__ */
|
|
1948
|
+
return /* @__PURE__ */ P(
|
|
1927
1949
|
"div",
|
|
1928
1950
|
{
|
|
1929
1951
|
style: {
|
|
@@ -1966,7 +1988,7 @@ function Qt(e) {
|
|
|
1966
1988
|
}
|
|
1967
1989
|
}
|
|
1968
1990
|
) : null,
|
|
1969
|
-
(
|
|
1991
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1970
1992
|
"div",
|
|
1971
1993
|
{
|
|
1972
1994
|
style: {
|
|
@@ -1977,7 +1999,7 @@ function Qt(e) {
|
|
|
1977
1999
|
children: e.children
|
|
1978
2000
|
}
|
|
1979
2001
|
) : null,
|
|
1980
|
-
(d = (
|
|
2002
|
+
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
1981
2003
|
"div",
|
|
1982
2004
|
{
|
|
1983
2005
|
style: {
|
|
@@ -1998,43 +2020,43 @@ function Qt(e) {
|
|
|
1998
2020
|
}
|
|
1999
2021
|
);
|
|
2000
2022
|
}
|
|
2001
|
-
const
|
|
2002
|
-
component:
|
|
2003
|
-
...
|
|
2023
|
+
const nn = () => [{
|
|
2024
|
+
component: qt,
|
|
2025
|
+
...zt
|
|
2004
2026
|
}, {
|
|
2005
|
-
component:
|
|
2006
|
-
...
|
|
2027
|
+
component: Gt,
|
|
2028
|
+
...Yt
|
|
2007
2029
|
}, {
|
|
2008
|
-
component:
|
|
2009
|
-
...
|
|
2030
|
+
component: Zt,
|
|
2031
|
+
...Xt
|
|
2010
2032
|
}, {
|
|
2011
|
-
component:
|
|
2012
|
-
...
|
|
2033
|
+
component: tn,
|
|
2034
|
+
...en
|
|
2013
2035
|
}], ye = () => [{
|
|
2014
2036
|
component: Ye,
|
|
2015
|
-
...
|
|
2037
|
+
...Ft
|
|
2016
2038
|
}, {
|
|
2017
|
-
component:
|
|
2018
|
-
...
|
|
2039
|
+
component: Bt,
|
|
2040
|
+
...Lt
|
|
2019
2041
|
}, {
|
|
2020
|
-
component:
|
|
2021
|
-
...
|
|
2042
|
+
component: Wt,
|
|
2043
|
+
...Ot
|
|
2022
2044
|
}, {
|
|
2023
|
-
component:
|
|
2024
|
-
...
|
|
2045
|
+
component: Vt,
|
|
2046
|
+
...Dt
|
|
2025
2047
|
}, {
|
|
2026
|
-
component:
|
|
2027
|
-
|
|
2048
|
+
component: $t,
|
|
2049
|
+
...Ht
|
|
2028
2050
|
}, {
|
|
2029
|
-
component:
|
|
2030
|
-
...
|
|
2051
|
+
component: Ut,
|
|
2052
|
+
..._t
|
|
2031
2053
|
}, {
|
|
2032
|
-
component:
|
|
2033
|
-
...
|
|
2054
|
+
component: An,
|
|
2055
|
+
...jt
|
|
2034
2056
|
}, {
|
|
2035
|
-
component:
|
|
2036
|
-
...
|
|
2037
|
-
}, ...
|
|
2057
|
+
component: Kt,
|
|
2058
|
+
...Mt
|
|
2059
|
+
}, ...nn()], on = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2038
2060
|
function getAndSetVariantId() {
|
|
2039
2061
|
function setCookie(name, value, days) {
|
|
2040
2062
|
let expires = '';
|
|
@@ -2090,7 +2112,7 @@ const Gt = () => [{
|
|
|
2090
2112
|
}).join('');
|
|
2091
2113
|
styleEl.innerHTML = newStyleStr;
|
|
2092
2114
|
}
|
|
2093
|
-
}`,
|
|
2115
|
+
}`, an = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2094
2116
|
if (!navigator.cookieEnabled) {
|
|
2095
2117
|
return;
|
|
2096
2118
|
}
|
|
@@ -2124,26 +2146,26 @@ const Gt = () => [{
|
|
|
2124
2146
|
thisScriptEl?.remove();
|
|
2125
2147
|
}
|
|
2126
2148
|
return;
|
|
2127
|
-
}`,
|
|
2149
|
+
}`, Be = "builderIoAbTest", We = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2128
2150
|
...t,
|
|
2129
2151
|
testVariationId: t.id,
|
|
2130
2152
|
id: e == null ? void 0 : e.id
|
|
2131
|
-
})),
|
|
2153
|
+
})), rn = ({
|
|
2132
2154
|
canTrack: e,
|
|
2133
2155
|
content: t
|
|
2134
|
-
}) => !(!(K(t).length > 0) || !e ||
|
|
2135
|
-
window.${
|
|
2136
|
-
window.${
|
|
2137
|
-
`,
|
|
2138
|
-
window.${
|
|
2139
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2140
|
-
)`,
|
|
2156
|
+
}) => !(!(K(t).length > 0) || !e || O()), cn = (e) => e === "react" || e === "reactNative", Ae = cn($), ln = () => `
|
|
2157
|
+
window.${Be} = ${on}
|
|
2158
|
+
window.${We} = ${an}
|
|
2159
|
+
`, sn = (e, t) => `
|
|
2160
|
+
window.${Be}(
|
|
2161
|
+
"${t}",${JSON.stringify(e)}, ${Ae}
|
|
2162
|
+
)`, dn = ({
|
|
2141
2163
|
contentId: e,
|
|
2142
2164
|
variationId: t
|
|
2143
|
-
}) => `window.${
|
|
2144
|
-
"${t}", "${e}", ${
|
|
2165
|
+
}) => `window.${We}(
|
|
2166
|
+
"${t}", "${e}", ${Ae}
|
|
2145
2167
|
)`;
|
|
2146
|
-
function
|
|
2168
|
+
function ie(e) {
|
|
2147
2169
|
return /* @__PURE__ */ l(
|
|
2148
2170
|
"script",
|
|
2149
2171
|
{
|
|
@@ -2153,7 +2175,7 @@ function ne(e) {
|
|
|
2153
2175
|
}
|
|
2154
2176
|
);
|
|
2155
2177
|
}
|
|
2156
|
-
const
|
|
2178
|
+
const un = Me({
|
|
2157
2179
|
content: null,
|
|
2158
2180
|
context: {},
|
|
2159
2181
|
localState: void 0,
|
|
@@ -2168,10 +2190,10 @@ const rn = _e({
|
|
|
2168
2190
|
BlocksWrapperProps: {},
|
|
2169
2191
|
nonce: ""
|
|
2170
2192
|
});
|
|
2171
|
-
function
|
|
2193
|
+
function pe(e) {
|
|
2172
2194
|
return Math.round(e * 1e3) / 1e3;
|
|
2173
2195
|
}
|
|
2174
|
-
const
|
|
2196
|
+
const mn = (e, t, n = !0) => {
|
|
2175
2197
|
if (!(e instanceof HTMLElement))
|
|
2176
2198
|
return null;
|
|
2177
2199
|
let i = n ? e : e.parentElement;
|
|
@@ -2182,28 +2204,28 @@ const cn = (e, t, n = !0) => {
|
|
|
2182
2204
|
return i;
|
|
2183
2205
|
} while (i = i.parentElement);
|
|
2184
2206
|
return null;
|
|
2185
|
-
},
|
|
2207
|
+
}, fn = (e) => mn(e, (t) => {
|
|
2186
2208
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2187
2209
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2188
|
-
}),
|
|
2210
|
+
}), ve = ({
|
|
2189
2211
|
event: e,
|
|
2190
2212
|
target: t
|
|
2191
2213
|
}) => {
|
|
2192
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
2214
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
|
|
2193
2215
|
return {
|
|
2194
2216
|
x: a,
|
|
2195
2217
|
y: r
|
|
2196
2218
|
};
|
|
2197
|
-
},
|
|
2198
|
-
const t = e.target, n = t &&
|
|
2219
|
+
}, hn = (e) => {
|
|
2220
|
+
const t = e.target, n = t && fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2199
2221
|
return {
|
|
2200
2222
|
targetBuilderElement: i || void 0,
|
|
2201
2223
|
metadata: {
|
|
2202
|
-
targetOffset: t ?
|
|
2224
|
+
targetOffset: t ? ve({
|
|
2203
2225
|
event: e,
|
|
2204
2226
|
target: t
|
|
2205
2227
|
}) : void 0,
|
|
2206
|
-
builderTargetOffset: n ?
|
|
2228
|
+
builderTargetOffset: n ? ve({
|
|
2207
2229
|
event: e,
|
|
2208
2230
|
target: n
|
|
2209
2231
|
}) : void 0,
|
|
@@ -2211,13 +2233,13 @@ const cn = (e, t, n = !0) => {
|
|
|
2211
2233
|
}
|
|
2212
2234
|
};
|
|
2213
2235
|
};
|
|
2214
|
-
async function
|
|
2236
|
+
async function gn({
|
|
2215
2237
|
key: e,
|
|
2216
2238
|
value: t
|
|
2217
2239
|
}) {
|
|
2218
|
-
return
|
|
2240
|
+
return Le(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2219
2241
|
}
|
|
2220
|
-
function
|
|
2242
|
+
function xe(e, ...t) {
|
|
2221
2243
|
const n = Object(e);
|
|
2222
2244
|
for (let i = 1; i < arguments.length; i++) {
|
|
2223
2245
|
const o = arguments[i];
|
|
@@ -2227,37 +2249,37 @@ function ve(e, ...t) {
|
|
|
2227
2249
|
}
|
|
2228
2250
|
return n;
|
|
2229
2251
|
}
|
|
2230
|
-
function
|
|
2252
|
+
function bn(e) {
|
|
2231
2253
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2232
2254
|
}
|
|
2233
|
-
function
|
|
2234
|
-
const n =
|
|
2235
|
-
for (const
|
|
2236
|
-
for (const
|
|
2237
|
-
|
|
2255
|
+
function yn(e, t) {
|
|
2256
|
+
const n = pn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
2257
|
+
for (const s of r)
|
|
2258
|
+
for (const c of n)
|
|
2259
|
+
c in s || (s[c] = i[c]);
|
|
2238
2260
|
}
|
|
2239
|
-
function
|
|
2261
|
+
function pn(e) {
|
|
2240
2262
|
const t = [];
|
|
2241
2263
|
for (const n of e.steps)
|
|
2242
2264
|
for (const i in n.styles)
|
|
2243
2265
|
t.indexOf(i) === -1 && t.push(i);
|
|
2244
2266
|
return t;
|
|
2245
2267
|
}
|
|
2246
|
-
function
|
|
2268
|
+
function vn(e) {
|
|
2247
2269
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2248
2270
|
if (!t.length) {
|
|
2249
|
-
|
|
2271
|
+
bn(e.elementId || e.id || "");
|
|
2250
2272
|
return;
|
|
2251
2273
|
}
|
|
2252
2274
|
Array.from(t).forEach((n) => {
|
|
2253
|
-
|
|
2254
|
-
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
2275
|
+
yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2276
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2255
2277
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2256
2278
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2257
2279
|
});
|
|
2258
2280
|
});
|
|
2259
2281
|
}
|
|
2260
|
-
const
|
|
2282
|
+
const xn = (e) => {
|
|
2261
2283
|
var a, r;
|
|
2262
2284
|
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;
|
|
2263
2285
|
let o = "";
|
|
@@ -2269,29 +2291,29 @@ font-display: fallback;
|
|
|
2269
2291
|
font-weight: 400;
|
|
2270
2292
|
}
|
|
2271
2293
|
`.trim()), e.files)
|
|
2272
|
-
for (const
|
|
2273
|
-
if (!(String(Number(
|
|
2294
|
+
for (const s in e.files) {
|
|
2295
|
+
if (!(String(Number(s)) === s))
|
|
2274
2296
|
continue;
|
|
2275
|
-
const d = e.files[
|
|
2297
|
+
const d = e.files[s];
|
|
2276
2298
|
d && d !== i && (o += `
|
|
2277
2299
|
@font-face {
|
|
2278
2300
|
font-family: "${t}";
|
|
2279
2301
|
src: url('${d}') format('woff2');
|
|
2280
2302
|
font-display: fallback;
|
|
2281
|
-
font-weight: ${
|
|
2303
|
+
font-weight: ${s};
|
|
2282
2304
|
}
|
|
2283
2305
|
`.trim());
|
|
2284
2306
|
}
|
|
2285
2307
|
return o;
|
|
2286
|
-
},
|
|
2308
|
+
}, Sn = ({
|
|
2287
2309
|
customFonts: e
|
|
2288
2310
|
}) => {
|
|
2289
2311
|
var t;
|
|
2290
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2291
|
-
},
|
|
2312
|
+
return ((t = e == null ? void 0 : e.map((n) => xn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2313
|
+
}, kn = ({
|
|
2292
2314
|
cssCode: e,
|
|
2293
2315
|
contentId: t
|
|
2294
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2316
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Cn = `
|
|
2295
2317
|
.builder-button {
|
|
2296
2318
|
all: unset;
|
|
2297
2319
|
}
|
|
@@ -2308,38 +2330,38 @@ font-weight: ${c};
|
|
|
2308
2330
|
text-align: inherit;
|
|
2309
2331
|
font-family: inherit;
|
|
2310
2332
|
}
|
|
2311
|
-
`,
|
|
2312
|
-
function
|
|
2313
|
-
var W,
|
|
2314
|
-
const t =
|
|
2315
|
-
function n(
|
|
2316
|
-
var
|
|
2317
|
-
const
|
|
2333
|
+
`, wn = (e) => e ? "" : Cn, In = (e) => `variant-${e}`;
|
|
2334
|
+
function Tn(e) {
|
|
2335
|
+
var W, H, _, X, Z, se, de;
|
|
2336
|
+
const t = J(null);
|
|
2337
|
+
function n(b) {
|
|
2338
|
+
var v, x;
|
|
2339
|
+
const h = {
|
|
2318
2340
|
...e.builderContextSignal.rootState,
|
|
2319
|
-
...
|
|
2341
|
+
...b
|
|
2320
2342
|
};
|
|
2321
|
-
e.builderContextSignal.rootSetState ? (
|
|
2343
|
+
e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, h) : e.builderContextSignal.rootState = h;
|
|
2322
2344
|
}
|
|
2323
|
-
function i(
|
|
2324
|
-
var
|
|
2325
|
-
const
|
|
2345
|
+
function i(b) {
|
|
2346
|
+
var v, x, w, B, j;
|
|
2347
|
+
const h = {
|
|
2326
2348
|
...e.builderContextSignal.content,
|
|
2327
|
-
...
|
|
2349
|
+
...b,
|
|
2328
2350
|
data: {
|
|
2329
|
-
...(
|
|
2330
|
-
...
|
|
2351
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
|
|
2352
|
+
...b == null ? void 0 : b.data
|
|
2331
2353
|
},
|
|
2332
2354
|
meta: {
|
|
2333
|
-
...(
|
|
2334
|
-
...
|
|
2335
|
-
breakpoints: ((
|
|
2355
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
2356
|
+
...b == null ? void 0 : b.meta,
|
|
2357
|
+
breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
|
|
2336
2358
|
}
|
|
2337
2359
|
};
|
|
2338
|
-
|
|
2339
|
-
value:
|
|
2340
|
-
key:
|
|
2360
|
+
gn({
|
|
2361
|
+
value: h,
|
|
2362
|
+
key: h.id
|
|
2341
2363
|
}).then(() => {
|
|
2342
|
-
|
|
2364
|
+
E.refresh();
|
|
2343
2365
|
});
|
|
2344
2366
|
}
|
|
2345
2367
|
function o() {
|
|
@@ -2348,37 +2370,37 @@ function pn(e) {
|
|
|
2348
2370
|
"aria-hidden": !0
|
|
2349
2371
|
};
|
|
2350
2372
|
}
|
|
2351
|
-
const [a, r] =
|
|
2373
|
+
const [a, r] = N(
|
|
2352
2374
|
() => e.contentWrapper || "div"
|
|
2353
2375
|
);
|
|
2354
|
-
function
|
|
2376
|
+
function s(b) {
|
|
2355
2377
|
return Oe({
|
|
2356
2378
|
model: e.model,
|
|
2357
2379
|
trustedHosts: e.trustedHosts,
|
|
2358
2380
|
callbacks: {
|
|
2359
|
-
configureSdk: (
|
|
2360
|
-
var
|
|
2361
|
-
const { breakpoints:
|
|
2362
|
-
!
|
|
2381
|
+
configureSdk: (h) => {
|
|
2382
|
+
var w;
|
|
2383
|
+
const { breakpoints: v, contentId: x } = h;
|
|
2384
|
+
!x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || v && i({
|
|
2363
2385
|
meta: {
|
|
2364
|
-
breakpoints:
|
|
2386
|
+
breakpoints: v
|
|
2365
2387
|
}
|
|
2366
2388
|
});
|
|
2367
2389
|
},
|
|
2368
|
-
animation: (
|
|
2369
|
-
|
|
2390
|
+
animation: (h) => {
|
|
2391
|
+
vn(h);
|
|
2370
2392
|
},
|
|
2371
|
-
contentUpdate: (
|
|
2372
|
-
i(
|
|
2393
|
+
contentUpdate: (h) => {
|
|
2394
|
+
i(h);
|
|
2373
2395
|
}
|
|
2374
2396
|
}
|
|
2375
|
-
})(
|
|
2397
|
+
})(b);
|
|
2376
2398
|
}
|
|
2377
|
-
function
|
|
2378
|
-
var
|
|
2379
|
-
const
|
|
2380
|
-
|
|
2381
|
-
code:
|
|
2399
|
+
function c() {
|
|
2400
|
+
var h, v;
|
|
2401
|
+
const b = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.jsCode;
|
|
2402
|
+
b && D({
|
|
2403
|
+
code: b,
|
|
2382
2404
|
context: e.context || {},
|
|
2383
2405
|
localState: void 0,
|
|
2384
2406
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2389,34 +2411,34 @@ function pn(e) {
|
|
|
2389
2411
|
enableCache: !1
|
|
2390
2412
|
});
|
|
2391
2413
|
}
|
|
2392
|
-
const [d,
|
|
2393
|
-
function b
|
|
2394
|
-
var
|
|
2414
|
+
const [d, u] = N(() => ({})), [m, f] = N(() => ({})), [S, k] = N(() => !1);
|
|
2415
|
+
function g(b) {
|
|
2416
|
+
var h, v;
|
|
2395
2417
|
if (e.builderContextSignal.content) {
|
|
2396
|
-
const
|
|
2418
|
+
const x = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
2397
2419
|
ue({
|
|
2398
2420
|
type: "click",
|
|
2399
2421
|
canTrack: q(e.canTrack),
|
|
2400
|
-
contentId:
|
|
2422
|
+
contentId: w,
|
|
2401
2423
|
apiKey: e.apiKey,
|
|
2402
|
-
variationId:
|
|
2403
|
-
...
|
|
2404
|
-
unique: !
|
|
2424
|
+
variationId: x !== w ? x : void 0,
|
|
2425
|
+
...hn(b),
|
|
2426
|
+
unique: !S
|
|
2405
2427
|
});
|
|
2406
2428
|
}
|
|
2407
|
-
|
|
2429
|
+
S || k(!0);
|
|
2408
2430
|
}
|
|
2409
|
-
function
|
|
2410
|
-
var
|
|
2411
|
-
const
|
|
2412
|
-
Object.entries(
|
|
2413
|
-
if (!B ||
|
|
2431
|
+
function T() {
|
|
2432
|
+
var h, v, x;
|
|
2433
|
+
const b = (x = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.httpRequests) != null ? x : {};
|
|
2434
|
+
Object.entries(b).forEach(([w, B]) => {
|
|
2435
|
+
if (!B || m[w] || d[w] && !V())
|
|
2414
2436
|
return;
|
|
2415
|
-
|
|
2416
|
-
const
|
|
2437
|
+
m[w] = !0;
|
|
2438
|
+
const j = B.replace(
|
|
2417
2439
|
/{{([^}]+)}}/g,
|
|
2418
|
-
(
|
|
2419
|
-
|
|
2440
|
+
(F, Ne) => String(
|
|
2441
|
+
D({
|
|
2420
2442
|
code: Ne,
|
|
2421
2443
|
context: e.context || {},
|
|
2422
2444
|
localState: void 0,
|
|
@@ -2426,18 +2448,18 @@ function pn(e) {
|
|
|
2426
2448
|
})
|
|
2427
2449
|
)
|
|
2428
2450
|
);
|
|
2429
|
-
De(
|
|
2451
|
+
De(j).then((F) => F.json()).then((F) => {
|
|
2430
2452
|
n({
|
|
2431
|
-
[
|
|
2432
|
-
}), d[
|
|
2433
|
-
}).catch((
|
|
2434
|
-
console.error("error fetching dynamic data", B,
|
|
2453
|
+
[w]: F
|
|
2454
|
+
}), d[w] = !0;
|
|
2455
|
+
}).catch((F) => {
|
|
2456
|
+
console.error("error fetching dynamic data", B, F);
|
|
2435
2457
|
}).finally(() => {
|
|
2436
|
-
|
|
2458
|
+
m[w] = !1;
|
|
2437
2459
|
});
|
|
2438
2460
|
});
|
|
2439
2461
|
}
|
|
2440
|
-
function
|
|
2462
|
+
function p() {
|
|
2441
2463
|
V() && window.dispatchEvent(
|
|
2442
2464
|
new CustomEvent(
|
|
2443
2465
|
"builder:component:stateChange",
|
|
@@ -2452,8 +2474,8 @@ function pn(e) {
|
|
|
2452
2474
|
)
|
|
2453
2475
|
);
|
|
2454
2476
|
}
|
|
2455
|
-
function y(
|
|
2456
|
-
window.addEventListener("message",
|
|
2477
|
+
function y(b) {
|
|
2478
|
+
window.addEventListener("message", s), He(), _e({
|
|
2457
2479
|
...e.locale ? {
|
|
2458
2480
|
locale: e.locale
|
|
2459
2481
|
} : {},
|
|
@@ -2465,20 +2487,20 @@ function pn(e) {
|
|
|
2465
2487
|
} : {}
|
|
2466
2488
|
}), Object.values(
|
|
2467
2489
|
e.builderContextSignal.componentInfos
|
|
2468
|
-
).forEach((
|
|
2469
|
-
var
|
|
2470
|
-
const
|
|
2471
|
-
(
|
|
2490
|
+
).forEach((h) => {
|
|
2491
|
+
var x;
|
|
2492
|
+
const v = Ue(h);
|
|
2493
|
+
(x = window.parent) == null || x.postMessage(v, "*");
|
|
2472
2494
|
}), window.addEventListener(
|
|
2473
2495
|
"builder:component:stateChangeListenerActivated",
|
|
2474
|
-
|
|
2496
|
+
p
|
|
2475
2497
|
);
|
|
2476
2498
|
}
|
|
2477
|
-
function
|
|
2478
|
-
const
|
|
2479
|
-
`builder.overrides.${
|
|
2480
|
-
),
|
|
2481
|
-
|
|
2499
|
+
function C(b) {
|
|
2500
|
+
const h = new URL(location.href).searchParams, v = h.get("builder.preview"), x = h.get(
|
|
2501
|
+
`builder.overrides.${v}`
|
|
2502
|
+
), w = h.get("apiKey") || h.get("builder.space");
|
|
2503
|
+
v === e.model && w === e.apiKey && (!e.content || x === e.content.id) && Ce({
|
|
2482
2504
|
model: e.model,
|
|
2483
2505
|
apiKey: e.apiKey,
|
|
2484
2506
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -2486,57 +2508,57 @@ function pn(e) {
|
|
|
2486
2508
|
B && i(B);
|
|
2487
2509
|
});
|
|
2488
2510
|
}
|
|
2489
|
-
const
|
|
2511
|
+
const E = Ke();
|
|
2490
2512
|
return R(() => {
|
|
2491
|
-
var
|
|
2492
|
-
return (
|
|
2513
|
+
var b;
|
|
2514
|
+
return (b = t.current) == null || b.addEventListener(
|
|
2493
2515
|
"initeditingbldr",
|
|
2494
2516
|
y
|
|
2495
2517
|
), () => {
|
|
2496
|
-
var
|
|
2497
|
-
return (
|
|
2518
|
+
var h;
|
|
2519
|
+
return (h = t.current) == null ? void 0 : h.removeEventListener(
|
|
2498
2520
|
"initeditingbldr",
|
|
2499
2521
|
y
|
|
2500
2522
|
);
|
|
2501
2523
|
};
|
|
2502
2524
|
}, []), R(() => {
|
|
2503
|
-
var
|
|
2504
|
-
return (
|
|
2525
|
+
var b;
|
|
2526
|
+
return (b = t.current) == null || b.addEventListener(
|
|
2505
2527
|
"initpreviewingbldr",
|
|
2506
|
-
|
|
2528
|
+
C
|
|
2507
2529
|
), () => {
|
|
2508
|
-
var
|
|
2509
|
-
return (
|
|
2530
|
+
var h;
|
|
2531
|
+
return (h = t.current) == null ? void 0 : h.removeEventListener(
|
|
2510
2532
|
"initpreviewingbldr",
|
|
2511
|
-
|
|
2533
|
+
C
|
|
2512
2534
|
);
|
|
2513
2535
|
};
|
|
2514
2536
|
}, []), R(() => {
|
|
2515
|
-
var
|
|
2516
|
-
if (
|
|
2537
|
+
var b, h;
|
|
2538
|
+
if (O()) {
|
|
2517
2539
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2518
|
-
const
|
|
2540
|
+
const x = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
|
|
2519
2541
|
ue({
|
|
2520
2542
|
type: "impression",
|
|
2521
2543
|
canTrack: !0,
|
|
2522
|
-
contentId:
|
|
2544
|
+
contentId: w,
|
|
2523
2545
|
apiKey: B,
|
|
2524
|
-
variationId:
|
|
2546
|
+
variationId: x !== w ? x : void 0
|
|
2525
2547
|
});
|
|
2526
2548
|
}
|
|
2527
|
-
|
|
2549
|
+
ke() && V();
|
|
2528
2550
|
}
|
|
2529
2551
|
}, []), R(() => {
|
|
2530
|
-
e.apiKey ||
|
|
2552
|
+
e.apiKey || Y.error(
|
|
2531
2553
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2532
|
-
),
|
|
2554
|
+
), c(), T(), p();
|
|
2533
2555
|
}, []), R(() => {
|
|
2534
2556
|
}, [e.content]), R(() => {
|
|
2535
|
-
|
|
2536
|
-
}, [(
|
|
2537
|
-
|
|
2538
|
-
}, [(X = (
|
|
2539
|
-
|
|
2557
|
+
c();
|
|
2558
|
+
}, [(H = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : H.jsCode]), R(() => {
|
|
2559
|
+
T();
|
|
2560
|
+
}, [(X = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2561
|
+
p();
|
|
2540
2562
|
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2541
2563
|
e.data && n(e.data);
|
|
2542
2564
|
}, [e.data]), R(() => {
|
|
@@ -2544,36 +2566,36 @@ function pn(e) {
|
|
|
2544
2566
|
locale: e.locale
|
|
2545
2567
|
});
|
|
2546
2568
|
}, [e.locale]), R(() => () => {
|
|
2547
|
-
|
|
2569
|
+
O() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
2548
2570
|
"builder:component:stateChangeListenerActivated",
|
|
2549
|
-
|
|
2571
|
+
p
|
|
2550
2572
|
));
|
|
2551
|
-
}, []), /* @__PURE__ */ l(
|
|
2573
|
+
}, []), /* @__PURE__ */ l(un.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
2552
2574
|
a,
|
|
2553
2575
|
{
|
|
2554
2576
|
ref: t,
|
|
2555
|
-
onClick: (
|
|
2577
|
+
onClick: (b) => g(b),
|
|
2556
2578
|
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2557
2579
|
"builder-model": e.model,
|
|
2558
2580
|
...o(),
|
|
2559
2581
|
...e.contentWrapperProps,
|
|
2560
|
-
className:
|
|
2582
|
+
className: In(
|
|
2561
2583
|
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2562
2584
|
),
|
|
2563
2585
|
children: e.children
|
|
2564
2586
|
}
|
|
2565
2587
|
) : null });
|
|
2566
2588
|
}
|
|
2567
|
-
function
|
|
2589
|
+
function Rn(e) {
|
|
2568
2590
|
const t = `
|
|
2569
|
-
${
|
|
2591
|
+
${kn({
|
|
2570
2592
|
cssCode: e.cssCode,
|
|
2571
2593
|
contentId: e.contentId
|
|
2572
2594
|
})}
|
|
2573
|
-
${
|
|
2595
|
+
${Sn({
|
|
2574
2596
|
customFonts: e.customFonts
|
|
2575
2597
|
})}
|
|
2576
|
-
${
|
|
2598
|
+
${wn(e.isNestedRender)}
|
|
2577
2599
|
`.trim();
|
|
2578
2600
|
return /* @__PURE__ */ l(
|
|
2579
2601
|
Q,
|
|
@@ -2584,15 +2606,15 @@ ${Sn(e.isNestedRender)}
|
|
|
2584
2606
|
}
|
|
2585
2607
|
);
|
|
2586
2608
|
}
|
|
2587
|
-
const
|
|
2609
|
+
const En = ({
|
|
2588
2610
|
content: e,
|
|
2589
2611
|
data: t,
|
|
2590
2612
|
locale: n
|
|
2591
2613
|
}) => {
|
|
2592
|
-
var a, r,
|
|
2614
|
+
var a, r, s;
|
|
2593
2615
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
2594
|
-
return (
|
|
2595
|
-
|
|
2616
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((c) => {
|
|
2617
|
+
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
2596
2618
|
}), {
|
|
2597
2619
|
...i,
|
|
2598
2620
|
...o,
|
|
@@ -2601,7 +2623,7 @@ const Cn = ({
|
|
|
2601
2623
|
locale: n
|
|
2602
2624
|
} : {}
|
|
2603
2625
|
};
|
|
2604
|
-
},
|
|
2626
|
+
}, Pn = ({
|
|
2605
2627
|
content: e,
|
|
2606
2628
|
data: t
|
|
2607
2629
|
}) => e ? {
|
|
@@ -2612,32 +2634,32 @@ const Cn = ({
|
|
|
2612
2634
|
},
|
|
2613
2635
|
meta: e == null ? void 0 : e.meta
|
|
2614
2636
|
} : void 0;
|
|
2615
|
-
function
|
|
2616
|
-
var o, a, r,
|
|
2617
|
-
const t =
|
|
2637
|
+
function Se(e) {
|
|
2638
|
+
var o, a, r, s, c, d, u, m, f, S, k;
|
|
2639
|
+
const t = dn({
|
|
2618
2640
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2619
2641
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2620
2642
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2621
2643
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2622
2644
|
}), n = [
|
|
2623
2645
|
...ye(),
|
|
2624
|
-
...((r = e.customComponents) == null ? void 0 : r.filter(({ models:
|
|
2646
|
+
...((r = e.customComponents) == null ? void 0 : r.filter(({ models: g }) => !(g != null && g.length) || !e.model ? !0 : g.includes(e.model))) || []
|
|
2625
2647
|
].reduce(
|
|
2626
|
-
(
|
|
2627
|
-
...
|
|
2628
|
-
[
|
|
2629
|
-
component:
|
|
2630
|
-
...me(
|
|
2648
|
+
(g, { component: T, ...p }) => ({
|
|
2649
|
+
...g,
|
|
2650
|
+
[p.name]: {
|
|
2651
|
+
component: T,
|
|
2652
|
+
...me(p)
|
|
2631
2653
|
}
|
|
2632
2654
|
}),
|
|
2633
2655
|
{}
|
|
2634
2656
|
), i = {
|
|
2635
|
-
content:
|
|
2657
|
+
content: Pn({
|
|
2636
2658
|
content: e.content,
|
|
2637
2659
|
data: e.data
|
|
2638
2660
|
}),
|
|
2639
2661
|
localState: void 0,
|
|
2640
|
-
rootState:
|
|
2662
|
+
rootState: En({
|
|
2641
2663
|
content: e.content,
|
|
2642
2664
|
data: e.data,
|
|
2643
2665
|
locale: e.locale
|
|
@@ -2649,11 +2671,11 @@ function pe(e) {
|
|
|
2649
2671
|
apiVersion: e.apiVersion,
|
|
2650
2672
|
componentInfos: [
|
|
2651
2673
|
...ye(),
|
|
2652
|
-
...((
|
|
2674
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: g }) => !(g != null && g.length) || !e.model ? !0 : g.includes(e.model))) || []
|
|
2653
2675
|
].reduce(
|
|
2654
|
-
(
|
|
2655
|
-
...
|
|
2656
|
-
[
|
|
2676
|
+
(g, { component: T, ...p }) => ({
|
|
2677
|
+
...g,
|
|
2678
|
+
[p.name]: me(p)
|
|
2657
2679
|
}),
|
|
2658
2680
|
{}
|
|
2659
2681
|
),
|
|
@@ -2662,8 +2684,8 @@ function pe(e) {
|
|
|
2662
2684
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
2663
2685
|
nonce: e.nonce || ""
|
|
2664
2686
|
};
|
|
2665
|
-
return /* @__PURE__ */
|
|
2666
|
-
|
|
2687
|
+
return /* @__PURE__ */ P(
|
|
2688
|
+
Tn,
|
|
2667
2689
|
{
|
|
2668
2690
|
nonce: e.nonce,
|
|
2669
2691
|
content: e.content,
|
|
@@ -2681,7 +2703,7 @@ function pe(e) {
|
|
|
2681
2703
|
trustedHosts: e.trustedHosts,
|
|
2682
2704
|
children: [
|
|
2683
2705
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
2684
|
-
|
|
2706
|
+
ie,
|
|
2685
2707
|
{
|
|
2686
2708
|
id: "builderio-variant-visibility",
|
|
2687
2709
|
scriptStr: t,
|
|
@@ -2689,19 +2711,19 @@ function pe(e) {
|
|
|
2689
2711
|
}
|
|
2690
2712
|
) : null,
|
|
2691
2713
|
/* @__PURE__ */ l(
|
|
2692
|
-
|
|
2714
|
+
Rn,
|
|
2693
2715
|
{
|
|
2694
2716
|
nonce: e.nonce || "",
|
|
2695
2717
|
isNestedRender: e.isNestedRender,
|
|
2696
|
-
contentId: (
|
|
2697
|
-
cssCode: (
|
|
2698
|
-
customFonts: (
|
|
2718
|
+
contentId: (c = i.content) == null ? void 0 : c.id,
|
|
2719
|
+
cssCode: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
|
|
2720
|
+
customFonts: (f = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
2699
2721
|
}
|
|
2700
2722
|
),
|
|
2701
2723
|
/* @__PURE__ */ l(
|
|
2702
2724
|
le,
|
|
2703
2725
|
{
|
|
2704
|
-
blocks: (
|
|
2726
|
+
blocks: (k = (S = i.content) == null ? void 0 : S.data) == null ? void 0 : k.blocks,
|
|
2705
2727
|
context: i,
|
|
2706
2728
|
registeredComponents: n,
|
|
2707
2729
|
linkComponent: e.linkComponent
|
|
@@ -2711,42 +2733,42 @@ function pe(e) {
|
|
|
2711
2733
|
}
|
|
2712
2734
|
);
|
|
2713
2735
|
}
|
|
2714
|
-
function
|
|
2736
|
+
function Bn(e) {
|
|
2715
2737
|
var a;
|
|
2716
|
-
const t =
|
|
2738
|
+
const t = rn({
|
|
2717
2739
|
canTrack: q(e.canTrack),
|
|
2718
2740
|
content: e.content
|
|
2719
2741
|
}), n = function() {
|
|
2720
|
-
var
|
|
2721
|
-
return
|
|
2722
|
-
K(e.content).map((
|
|
2723
|
-
id:
|
|
2724
|
-
testRatio:
|
|
2742
|
+
var s;
|
|
2743
|
+
return sn(
|
|
2744
|
+
K(e.content).map((c) => ({
|
|
2745
|
+
id: c.testVariationId,
|
|
2746
|
+
testRatio: c.testRatio
|
|
2725
2747
|
})),
|
|
2726
|
-
((
|
|
2748
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
2727
2749
|
);
|
|
2728
2750
|
}, i = function() {
|
|
2729
|
-
return K(e.content).map((
|
|
2751
|
+
return K(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2730
2752
|
}, o = function() {
|
|
2731
|
-
var
|
|
2753
|
+
var s;
|
|
2732
2754
|
return t ? {
|
|
2733
2755
|
...e.content,
|
|
2734
|
-
testVariationId: (
|
|
2735
|
-
} :
|
|
2756
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2757
|
+
} : je({
|
|
2736
2758
|
item: e.content,
|
|
2737
2759
|
canTrack: q(e.canTrack)
|
|
2738
2760
|
});
|
|
2739
2761
|
};
|
|
2740
|
-
return /* @__PURE__ */
|
|
2741
|
-
!e.isNestedRender &&
|
|
2742
|
-
|
|
2762
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
2763
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
2764
|
+
ie,
|
|
2743
2765
|
{
|
|
2744
2766
|
id: "builderio-init-variants-fns",
|
|
2745
|
-
scriptStr:
|
|
2767
|
+
scriptStr: ln(),
|
|
2746
2768
|
nonce: e.nonce || ""
|
|
2747
2769
|
}
|
|
2748
2770
|
) : null,
|
|
2749
|
-
t ? /* @__PURE__ */
|
|
2771
|
+
t ? /* @__PURE__ */ P(I, { children: [
|
|
2750
2772
|
/* @__PURE__ */ l(
|
|
2751
2773
|
Q,
|
|
2752
2774
|
{
|
|
@@ -2756,7 +2778,7 @@ function In(e) {
|
|
|
2756
2778
|
}
|
|
2757
2779
|
),
|
|
2758
2780
|
/* @__PURE__ */ l(
|
|
2759
|
-
|
|
2781
|
+
ie,
|
|
2760
2782
|
{
|
|
2761
2783
|
id: "builderio-variants-visibility",
|
|
2762
2784
|
scriptStr: n(),
|
|
@@ -2764,7 +2786,7 @@ function In(e) {
|
|
|
2764
2786
|
}
|
|
2765
2787
|
),
|
|
2766
2788
|
(a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
2767
|
-
|
|
2789
|
+
Se,
|
|
2768
2790
|
{
|
|
2769
2791
|
isNestedRender: e.isNestedRender,
|
|
2770
2792
|
nonce: e.nonce,
|
|
@@ -2791,7 +2813,7 @@ function In(e) {
|
|
|
2791
2813
|
))
|
|
2792
2814
|
] }) : null,
|
|
2793
2815
|
/* @__PURE__ */ l(
|
|
2794
|
-
|
|
2816
|
+
Se,
|
|
2795
2817
|
{
|
|
2796
2818
|
nonce: e.nonce,
|
|
2797
2819
|
isNestedRender: e.isNestedRender,
|
|
@@ -2817,13 +2839,13 @@ function In(e) {
|
|
|
2817
2839
|
)
|
|
2818
2840
|
] });
|
|
2819
2841
|
}
|
|
2820
|
-
const
|
|
2842
|
+
const Wn = async ({
|
|
2821
2843
|
builderContextValue: e,
|
|
2822
2844
|
symbol: t
|
|
2823
2845
|
}) => {
|
|
2824
2846
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2825
2847
|
(e != null && e.apiKey))
|
|
2826
|
-
return
|
|
2848
|
+
return Ce({
|
|
2827
2849
|
model: t.model,
|
|
2828
2850
|
apiKey: e.apiKey,
|
|
2829
2851
|
apiVersion: e.apiVersion,
|
|
@@ -2833,29 +2855,29 @@ const Tn = async ({
|
|
|
2833
2855
|
}
|
|
2834
2856
|
}
|
|
2835
2857
|
}).catch((n) => {
|
|
2836
|
-
|
|
2858
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
2837
2859
|
});
|
|
2838
2860
|
};
|
|
2839
|
-
async function
|
|
2840
|
-
var a, r,
|
|
2861
|
+
async function An(e) {
|
|
2862
|
+
var a, r, s, c, d;
|
|
2841
2863
|
const t = function() {
|
|
2842
2864
|
return "div";
|
|
2843
2865
|
}, n = function() {
|
|
2844
2866
|
return "div";
|
|
2845
2867
|
}, i = function() {
|
|
2846
|
-
var
|
|
2868
|
+
var m, f;
|
|
2847
2869
|
return [
|
|
2848
|
-
e.attributes[
|
|
2870
|
+
e.attributes[U()],
|
|
2849
2871
|
"builder-symbol",
|
|
2850
|
-
(
|
|
2851
|
-
(
|
|
2872
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
2873
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2852
2874
|
].filter(Boolean).join(" ");
|
|
2853
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2875
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Wn({
|
|
2854
2876
|
symbol: e.symbol,
|
|
2855
2877
|
builderContextValue: e.builderContext
|
|
2856
2878
|
});
|
|
2857
2879
|
return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
2858
|
-
|
|
2880
|
+
Bn,
|
|
2859
2881
|
{
|
|
2860
2882
|
nonce: e.builderContext.nonce,
|
|
2861
2883
|
isNestedRender: !0,
|
|
@@ -2867,9 +2889,9 @@ async function Rn(e) {
|
|
|
2867
2889
|
},
|
|
2868
2890
|
customComponents: Object.values(e.builderComponents),
|
|
2869
2891
|
data: {
|
|
2870
|
-
...(
|
|
2892
|
+
...(s = e.symbol) == null ? void 0 : s.data,
|
|
2871
2893
|
...e.builderContext.localState,
|
|
2872
|
-
...(
|
|
2894
|
+
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
2873
2895
|
},
|
|
2874
2896
|
canTrack: e.builderContext.canTrack,
|
|
2875
2897
|
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
@@ -2882,14 +2904,14 @@ async function Rn(e) {
|
|
|
2882
2904
|
}
|
|
2883
2905
|
export {
|
|
2884
2906
|
le as Blocks,
|
|
2885
|
-
|
|
2907
|
+
un as BuilderContext,
|
|
2886
2908
|
Ye as Button,
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2909
|
+
Bt as Columns,
|
|
2910
|
+
Bn as Content,
|
|
2911
|
+
Wt as Fragment,
|
|
2912
|
+
Vt as Image,
|
|
2913
|
+
$t as Section,
|
|
2914
|
+
An as Symbol,
|
|
2915
|
+
Kt as Text,
|
|
2916
|
+
tn as Video
|
|
2895
2917
|
};
|