@builder.io/sdk-react-nextjs 0.15.1 → 0.16.0
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 +24 -24
- package/lib/browser/blocks-exports.mjs +450 -504
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
- package/lib/browser/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +32 -32
- package/lib/edge/blocks-exports.mjs +689 -743
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{server-entry-34aed7a8.js → server-entry-86458005.js} +1 -1
- package/lib/edge/{server-entry-3ae58f1b.cjs → server-entry-d8d62ced.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +442 -496
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-ca94f96b.js → node-runtime-423addf8.js} +1 -1
- package/lib/node/{node-runtime-54f0fc0a.cjs → node-runtime-6421aefe.cjs} +1 -1
- package/lib/node/{server-entry-4f9f76d3.js → server-entry-1644208f.js} +1 -1
- package/lib/node/{server-entry-d0dda572.cjs → server-entry-6f84d0f2.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/constants/sdk-version.d.ts +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as c, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { useRef as
|
|
9
|
-
import { useRouter as
|
|
2
|
+
var Ne = Object.defineProperty;
|
|
3
|
+
var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as c, Fragment as I, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as xe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-1644208f.js";
|
|
7
|
+
import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-423addf8.js";
|
|
8
|
+
import { useRef as oe, useState as N, useEffect as R, createContext as qe } from "react";
|
|
9
|
+
import { useRouter as Ye } from "next/navigation";
|
|
10
10
|
import "lru-cache";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */ c(
|
|
11
|
+
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
12
|
+
function ae(e) {
|
|
13
|
+
return /* @__PURE__ */ c(I, { children: Qe(e.TagName) ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
14
14
|
}
|
|
15
15
|
const D = () => {
|
|
16
|
-
switch (
|
|
16
|
+
switch (H) {
|
|
17
17
|
case "react":
|
|
18
18
|
case "reactNative":
|
|
19
19
|
case "rsc":
|
|
@@ -26,7 +26,7 @@ const D = () => {
|
|
|
26
26
|
return "class";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function Ge(e) {
|
|
30
30
|
function t() {
|
|
31
31
|
return {
|
|
32
32
|
...e.attributes,
|
|
@@ -41,7 +41,7 @@ function Xe(e) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return /* @__PURE__ */ c(
|
|
44
|
-
|
|
44
|
+
ae,
|
|
45
45
|
{
|
|
46
46
|
attributes: t(),
|
|
47
47
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -50,14 +50,14 @@ function Xe(e) {
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Xe(e) {
|
|
54
54
|
var t;
|
|
55
55
|
return {
|
|
56
56
|
...(t = e.component) == null ? void 0 : t.options,
|
|
57
57
|
...e.options
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const Ze = ({
|
|
61
61
|
code: e,
|
|
62
62
|
builder: t,
|
|
63
63
|
context: n,
|
|
@@ -66,11 +66,11 @@ const et = ({
|
|
|
66
66
|
rootSetState: a,
|
|
67
67
|
rootState: l
|
|
68
68
|
}) => {
|
|
69
|
-
const r =
|
|
69
|
+
const r = Me({
|
|
70
70
|
builder: t,
|
|
71
71
|
context: n,
|
|
72
72
|
event: i,
|
|
73
|
-
state:
|
|
73
|
+
state: ke({
|
|
74
74
|
rootState: l,
|
|
75
75
|
localState: o,
|
|
76
76
|
rootSetState: a
|
|
@@ -78,7 +78,7 @@ const et = ({
|
|
|
78
78
|
});
|
|
79
79
|
return new Function(...r.map(([s]) => s), e)(...r.map(([, s]) => s));
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function ke({
|
|
82
82
|
rootState: e,
|
|
83
83
|
localState: t,
|
|
84
84
|
rootSetState: n
|
|
@@ -88,7 +88,7 @@ function Ce({
|
|
|
88
88
|
if (t && o in t)
|
|
89
89
|
return t[o];
|
|
90
90
|
const a = i[o];
|
|
91
|
-
return typeof a == "object" && a !== null ?
|
|
91
|
+
return typeof a == "object" && a !== null ? ke({
|
|
92
92
|
rootState: a,
|
|
93
93
|
localState: void 0,
|
|
94
94
|
rootSetState: n ? (l) => {
|
|
@@ -103,17 +103,17 @@ function Ce({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function et() {
|
|
107
107
|
var e;
|
|
108
108
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
109
109
|
}
|
|
110
|
-
const
|
|
110
|
+
const tt = () => {
|
|
111
111
|
var i;
|
|
112
|
-
if (!
|
|
112
|
+
if (!et())
|
|
113
113
|
return !1;
|
|
114
114
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
115
115
|
return e && t && !n ? (J.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;
|
|
116
|
-
},
|
|
116
|
+
}, nt = (e) => z() || tt() ? Ze(e) : Ue(e), W = class W {
|
|
117
117
|
static getCacheKey(t) {
|
|
118
118
|
return JSON.stringify({
|
|
119
119
|
...t,
|
|
@@ -131,8 +131,8 @@ const nt = () => {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
let
|
|
134
|
+
ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
|
|
135
|
+
let F = W;
|
|
136
136
|
function O({
|
|
137
137
|
code: e,
|
|
138
138
|
context: t,
|
|
@@ -146,10 +146,10 @@ function O({
|
|
|
146
146
|
if (e === "")
|
|
147
147
|
return;
|
|
148
148
|
const s = {
|
|
149
|
-
code:
|
|
149
|
+
code: _e(e, {
|
|
150
150
|
isExpression: l
|
|
151
151
|
}),
|
|
152
|
-
builder:
|
|
152
|
+
builder: Ke(),
|
|
153
153
|
context: t,
|
|
154
154
|
event: a,
|
|
155
155
|
rootSetState: o,
|
|
@@ -157,15 +157,15 @@ function O({
|
|
|
157
157
|
localState: n
|
|
158
158
|
};
|
|
159
159
|
if (r) {
|
|
160
|
-
const d =
|
|
160
|
+
const d = F.getCacheKey(s), m = F.getCachedValue(d);
|
|
161
161
|
if (m)
|
|
162
162
|
return m.value;
|
|
163
163
|
}
|
|
164
164
|
try {
|
|
165
|
-
const d =
|
|
165
|
+
const d = nt(s);
|
|
166
166
|
if (r) {
|
|
167
|
-
const m =
|
|
168
|
-
|
|
167
|
+
const m = F.getCacheKey(s);
|
|
168
|
+
F.setCachedValue(m, d);
|
|
169
169
|
}
|
|
170
170
|
return d;
|
|
171
171
|
} catch (d) {
|
|
@@ -175,7 +175,7 @@ function O({
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const it = ({
|
|
179
179
|
block: e,
|
|
180
180
|
context: t,
|
|
181
181
|
localState: n,
|
|
@@ -184,7 +184,7 @@ const ot = ({
|
|
|
184
184
|
}) => {
|
|
185
185
|
if (!e.bindings)
|
|
186
186
|
return e;
|
|
187
|
-
const a =
|
|
187
|
+
const a = ie(e), l = {
|
|
188
188
|
...a,
|
|
189
189
|
properties: {
|
|
190
190
|
...a.properties
|
|
@@ -202,7 +202,7 @@ const ot = ({
|
|
|
202
202
|
context: t,
|
|
203
203
|
enableCache: !0
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
ze(l, r, d);
|
|
206
206
|
}
|
|
207
207
|
return l;
|
|
208
208
|
};
|
|
@@ -215,7 +215,7 @@ function Y({
|
|
|
215
215
|
rootSetState: a
|
|
216
216
|
}) {
|
|
217
217
|
const l = e;
|
|
218
|
-
return n ?
|
|
218
|
+
return n ? it({
|
|
219
219
|
block: l,
|
|
220
220
|
localState: i,
|
|
221
221
|
rootState: o,
|
|
@@ -223,42 +223,42 @@ function Y({
|
|
|
223
223
|
context: t
|
|
224
224
|
}) : l;
|
|
225
225
|
}
|
|
226
|
-
const
|
|
226
|
+
const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ce = (e) => Object.entries(e).map(([n, i]) => {
|
|
227
227
|
if (typeof i == "string")
|
|
228
|
-
return `${
|
|
229
|
-
}).filter(K),
|
|
228
|
+
return `${re(n)}: ${i};`;
|
|
229
|
+
}).filter(K), ot = (e) => Ce(e).join(`
|
|
230
230
|
`), U = ({
|
|
231
231
|
mediaQuery: e,
|
|
232
232
|
className: t,
|
|
233
233
|
styles: n
|
|
234
234
|
}) => {
|
|
235
235
|
const i = `.${t} {
|
|
236
|
-
${
|
|
236
|
+
${ot(n)}
|
|
237
237
|
}`;
|
|
238
238
|
return e ? `${e} {
|
|
239
239
|
${i}
|
|
240
240
|
}` : i;
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function at({
|
|
243
243
|
style: e
|
|
244
244
|
}) {
|
|
245
245
|
return e;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const rt = ({
|
|
248
248
|
block: e,
|
|
249
249
|
context: t
|
|
250
|
-
}) =>
|
|
250
|
+
}) => Ie(at({
|
|
251
251
|
style: e.style || {},
|
|
252
252
|
context: t,
|
|
253
253
|
block: e
|
|
254
254
|
}));
|
|
255
|
-
function
|
|
256
|
-
switch (
|
|
255
|
+
function Ie(e) {
|
|
256
|
+
switch (H) {
|
|
257
257
|
case "svelte":
|
|
258
258
|
case "vue":
|
|
259
259
|
case "solid":
|
|
260
260
|
case "angular":
|
|
261
|
-
return
|
|
261
|
+
return Ce(e).join(" ");
|
|
262
262
|
case "qwik":
|
|
263
263
|
case "reactNative":
|
|
264
264
|
case "react":
|
|
@@ -266,7 +266,7 @@ function we(e) {
|
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const lt = ({
|
|
270
270
|
block: e,
|
|
271
271
|
context: t,
|
|
272
272
|
registeredComponents: n
|
|
@@ -288,7 +288,7 @@ const ct = ({
|
|
|
288
288
|
console.warn(`
|
|
289
289
|
Could not find a registered component named "${i}".
|
|
290
290
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
291
|
-
},
|
|
291
|
+
}, ct = ({
|
|
292
292
|
block: e,
|
|
293
293
|
context: t
|
|
294
294
|
}) => {
|
|
@@ -322,23 +322,27 @@ const ct = ({
|
|
|
322
322
|
},
|
|
323
323
|
block: i
|
|
324
324
|
}));
|
|
325
|
-
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
} : {}
|
|
340
|
-
|
|
341
|
-
|
|
325
|
+
}, st = (e, t) => {
|
|
326
|
+
var n;
|
|
327
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
328
|
+
builderLinkComponent: t
|
|
329
|
+
} : {};
|
|
330
|
+
}, dt = (e, t) => {
|
|
331
|
+
var n;
|
|
332
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
333
|
+
builderComponents: t
|
|
334
|
+
} : {};
|
|
335
|
+
}, ut = (e, t) => {
|
|
336
|
+
var n;
|
|
337
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
338
|
+
builderBlock: t
|
|
339
|
+
} : {};
|
|
340
|
+
}, mt = (e, t) => {
|
|
341
|
+
var n;
|
|
342
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
343
|
+
builderContext: t
|
|
344
|
+
} : {};
|
|
345
|
+
}, we = {
|
|
342
346
|
small: {
|
|
343
347
|
min: 320,
|
|
344
348
|
default: 321,
|
|
@@ -354,11 +358,11 @@ const ct = ({
|
|
|
354
358
|
default: 991,
|
|
355
359
|
max: 1200
|
|
356
360
|
}
|
|
357
|
-
},
|
|
361
|
+
}, fe = (e, t = we) => `@media (max-width: ${t[e].max}px)`, Te = ({
|
|
358
362
|
small: e,
|
|
359
363
|
medium: t
|
|
360
364
|
}) => {
|
|
361
|
-
const n =
|
|
365
|
+
const n = ie(we);
|
|
362
366
|
if (!e || !t)
|
|
363
367
|
return n;
|
|
364
368
|
const i = Math.floor(e / 2);
|
|
@@ -381,7 +385,7 @@ const ct = ({
|
|
|
381
385
|
default: a + 1
|
|
382
386
|
}, n;
|
|
383
387
|
};
|
|
384
|
-
function
|
|
388
|
+
function Q(e) {
|
|
385
389
|
return /* @__PURE__ */ c(
|
|
386
390
|
"style",
|
|
387
391
|
{
|
|
@@ -390,7 +394,7 @@ function G(e) {
|
|
|
390
394
|
}
|
|
391
395
|
);
|
|
392
396
|
}
|
|
393
|
-
function
|
|
397
|
+
function ft(e) {
|
|
394
398
|
const t = function() {
|
|
395
399
|
const o = Y({
|
|
396
400
|
block: e.block,
|
|
@@ -402,7 +406,7 @@ function ht(e) {
|
|
|
402
406
|
});
|
|
403
407
|
return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
|
|
404
408
|
}, n = function() {
|
|
405
|
-
var
|
|
409
|
+
var S, b, k;
|
|
406
410
|
const o = Y({
|
|
407
411
|
block: e.block,
|
|
408
412
|
localState: e.context.localState,
|
|
@@ -410,56 +414,56 @@ function ht(e) {
|
|
|
410
414
|
rootSetState: e.context.rootSetState,
|
|
411
415
|
context: e.context.context,
|
|
412
416
|
shouldEvaluateBindings: !0
|
|
413
|
-
}), a = o.responsiveStyles, l = e.context.content, r =
|
|
414
|
-
((
|
|
417
|
+
}), a = o.responsiveStyles, l = e.context.content, r = Te(
|
|
418
|
+
((S = l == null ? void 0 : l.meta) == null ? void 0 : S.breakpoints) || {}
|
|
415
419
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
416
420
|
if (!u)
|
|
417
421
|
return "";
|
|
418
422
|
const h = s ? U({
|
|
419
423
|
className: u,
|
|
420
424
|
styles: s
|
|
421
|
-
}) : "",
|
|
425
|
+
}) : "", x = d ? U({
|
|
422
426
|
className: u,
|
|
423
427
|
styles: d,
|
|
424
|
-
mediaQuery:
|
|
428
|
+
mediaQuery: fe(
|
|
425
429
|
"medium",
|
|
426
430
|
r
|
|
427
431
|
)
|
|
428
432
|
}) : "", w = m ? U({
|
|
429
433
|
className: u,
|
|
430
434
|
styles: m,
|
|
431
|
-
mediaQuery:
|
|
435
|
+
mediaQuery: fe(
|
|
432
436
|
"small",
|
|
433
437
|
r
|
|
434
438
|
)
|
|
435
|
-
}) : "",
|
|
439
|
+
}) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
|
|
436
440
|
let A = "";
|
|
437
|
-
if (
|
|
438
|
-
const
|
|
441
|
+
if (y) {
|
|
442
|
+
const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
|
|
439
443
|
A = U({
|
|
440
444
|
className: `${u}:hover`,
|
|
441
445
|
styles: {
|
|
442
|
-
...
|
|
443
|
-
transition: `all ${
|
|
444
|
-
|
|
446
|
+
...T,
|
|
447
|
+
transition: `all ${y.duration}s ${re(
|
|
448
|
+
y.easing
|
|
445
449
|
)}`,
|
|
446
|
-
transitionDelay:
|
|
450
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
447
451
|
}
|
|
448
452
|
}) || "";
|
|
449
453
|
}
|
|
450
454
|
return [
|
|
451
455
|
h,
|
|
452
|
-
|
|
456
|
+
x,
|
|
453
457
|
w,
|
|
454
458
|
A
|
|
455
459
|
].join(" ");
|
|
456
460
|
};
|
|
457
|
-
return /* @__PURE__ */ c(
|
|
461
|
+
return /* @__PURE__ */ c(I, { children: n() && t() ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
|
|
458
462
|
}
|
|
459
|
-
function
|
|
463
|
+
function ht(e) {
|
|
460
464
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
461
465
|
}
|
|
462
|
-
const gt = (e) => `on${
|
|
466
|
+
const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => O({
|
|
463
467
|
code: e,
|
|
464
468
|
context: t.context,
|
|
465
469
|
localState: t.localState,
|
|
@@ -469,7 +473,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => O({
|
|
|
469
473
|
isExpression: !1,
|
|
470
474
|
enableCache: !0
|
|
471
475
|
});
|
|
472
|
-
function
|
|
476
|
+
function Re(e) {
|
|
473
477
|
var i;
|
|
474
478
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
475
479
|
for (const o in n) {
|
|
@@ -478,7 +482,7 @@ function Pe(e) {
|
|
|
478
482
|
const a = n[o];
|
|
479
483
|
let l = gt(o);
|
|
480
484
|
if (e.stripPrefix)
|
|
481
|
-
switch (
|
|
485
|
+
switch (H) {
|
|
482
486
|
case "vue":
|
|
483
487
|
l = l.replace("v-on:", "");
|
|
484
488
|
break;
|
|
@@ -486,7 +490,7 @@ function Pe(e) {
|
|
|
486
490
|
l = l.replace("on:", "");
|
|
487
491
|
break;
|
|
488
492
|
}
|
|
489
|
-
t[l] =
|
|
493
|
+
t[l] = bt(a, e);
|
|
490
494
|
}
|
|
491
495
|
return t;
|
|
492
496
|
}
|
|
@@ -495,19 +499,19 @@ function yt({
|
|
|
495
499
|
}) {
|
|
496
500
|
return e;
|
|
497
501
|
}
|
|
498
|
-
const
|
|
502
|
+
const pt = (e) => ({
|
|
499
503
|
href: e.href
|
|
500
504
|
});
|
|
501
|
-
function
|
|
505
|
+
function le({
|
|
502
506
|
block: e,
|
|
503
507
|
context: t
|
|
504
508
|
}) {
|
|
505
509
|
var i;
|
|
506
510
|
const n = {
|
|
507
|
-
...
|
|
511
|
+
...pt(e),
|
|
508
512
|
...e.properties,
|
|
509
513
|
"builder-id": e.id,
|
|
510
|
-
style:
|
|
514
|
+
style: rt({
|
|
511
515
|
block: e,
|
|
512
516
|
context: t
|
|
513
517
|
}),
|
|
@@ -519,16 +523,16 @@ function ce({
|
|
|
519
523
|
block: e
|
|
520
524
|
});
|
|
521
525
|
}
|
|
522
|
-
function
|
|
526
|
+
function vt(e) {
|
|
523
527
|
return /* @__PURE__ */ c(
|
|
524
|
-
|
|
528
|
+
ae,
|
|
525
529
|
{
|
|
526
530
|
TagName: e.Wrapper,
|
|
527
|
-
attributes:
|
|
531
|
+
attributes: le({
|
|
528
532
|
block: e.block,
|
|
529
533
|
context: e.context
|
|
530
534
|
}),
|
|
531
|
-
actionAttributes:
|
|
535
|
+
actionAttributes: Re({
|
|
532
536
|
block: e.block,
|
|
533
537
|
rootState: e.context.rootState,
|
|
534
538
|
rootSetState: e.context.rootSetState,
|
|
@@ -540,14 +544,14 @@ function xt(e) {
|
|
|
540
544
|
}
|
|
541
545
|
);
|
|
542
546
|
}
|
|
543
|
-
function
|
|
547
|
+
function St(e) {
|
|
544
548
|
function t() {
|
|
545
549
|
return e.includeBlockProps ? {
|
|
546
|
-
...
|
|
550
|
+
...le({
|
|
547
551
|
block: e.block,
|
|
548
552
|
context: e.context
|
|
549
553
|
}),
|
|
550
|
-
...
|
|
554
|
+
...Re({
|
|
551
555
|
block: e.block,
|
|
552
556
|
rootState: e.context.rootState,
|
|
553
557
|
rootSetState: e.context.rootSetState,
|
|
@@ -558,7 +562,7 @@ function kt(e) {
|
|
|
558
562
|
}
|
|
559
563
|
return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
560
564
|
}
|
|
561
|
-
const
|
|
565
|
+
const xt = ({
|
|
562
566
|
componentOptions: e,
|
|
563
567
|
builderBlock: t,
|
|
564
568
|
context: n,
|
|
@@ -574,7 +578,7 @@ const St = ({
|
|
|
574
578
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
575
579
|
*/
|
|
576
580
|
...o ? {
|
|
577
|
-
attributes:
|
|
581
|
+
attributes: le({
|
|
578
582
|
block: t,
|
|
579
583
|
context: l
|
|
580
584
|
})
|
|
@@ -588,13 +592,13 @@ const St = ({
|
|
|
588
592
|
includeBlockProps: o
|
|
589
593
|
} : r;
|
|
590
594
|
};
|
|
591
|
-
function
|
|
595
|
+
function he(e) {
|
|
592
596
|
var n;
|
|
593
|
-
const t = e.isInteractive ?
|
|
594
|
-
return /* @__PURE__ */ c(
|
|
597
|
+
const t = e.isInteractive ? St : e.componentRef;
|
|
598
|
+
return /* @__PURE__ */ c(I, { children: e.componentRef ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
|
|
595
599
|
t,
|
|
596
600
|
{
|
|
597
|
-
...
|
|
601
|
+
...xt({
|
|
598
602
|
componentOptions: e.componentOptions,
|
|
599
603
|
builderBlock: e.builderBlock,
|
|
600
604
|
context: e.context,
|
|
@@ -605,7 +609,7 @@ function be(e) {
|
|
|
605
609
|
contextValue: e.context
|
|
606
610
|
}),
|
|
607
611
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
|
|
608
|
-
|
|
612
|
+
G,
|
|
609
613
|
{
|
|
610
614
|
block: i,
|
|
611
615
|
context: e.context,
|
|
@@ -617,10 +621,10 @@ function be(e) {
|
|
|
617
621
|
}
|
|
618
622
|
) }) : null });
|
|
619
623
|
}
|
|
620
|
-
function
|
|
624
|
+
function kt(e) {
|
|
621
625
|
const t = e.repeatContext;
|
|
622
626
|
return /* @__PURE__ */ c(
|
|
623
|
-
|
|
627
|
+
G,
|
|
624
628
|
{
|
|
625
629
|
block: e.block,
|
|
626
630
|
context: t,
|
|
@@ -629,16 +633,16 @@ function Ct(e) {
|
|
|
629
633
|
}
|
|
630
634
|
);
|
|
631
635
|
}
|
|
632
|
-
function
|
|
636
|
+
function G(e) {
|
|
633
637
|
var s, d, m;
|
|
634
638
|
const t = function() {
|
|
635
|
-
return
|
|
639
|
+
return lt({
|
|
636
640
|
block: e.block,
|
|
637
641
|
context: e.context,
|
|
638
642
|
registeredComponents: e.registeredComponents
|
|
639
643
|
});
|
|
640
644
|
}, n = function() {
|
|
641
|
-
return
|
|
645
|
+
return ct({
|
|
642
646
|
block: e.block,
|
|
643
647
|
context: e.context
|
|
644
648
|
});
|
|
@@ -653,28 +657,28 @@ function X(e) {
|
|
|
653
657
|
shouldEvaluateBindings: !0
|
|
654
658
|
});
|
|
655
659
|
}, o = function() {
|
|
656
|
-
var
|
|
657
|
-
return e.block.tagName === "a" || ((
|
|
660
|
+
var x;
|
|
661
|
+
return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
658
662
|
}, a = function() {
|
|
659
|
-
var w,
|
|
663
|
+
var w, y;
|
|
660
664
|
if ((w = e.block.repeat) != null && w.collection)
|
|
661
|
-
return !!((
|
|
665
|
+
return !!((y = n()) != null && y.length);
|
|
662
666
|
const h = "hide" in i() ? i().hide : !1;
|
|
663
667
|
return ("show" in i() ? i().show : !0) && !h;
|
|
664
668
|
}, l = function() {
|
|
665
|
-
var
|
|
666
|
-
return !((
|
|
669
|
+
var x, w;
|
|
670
|
+
return !((x = t()) != null && x.component) && !n() ? (w = i().children) != null ? w : [] : [];
|
|
667
671
|
}, r = function() {
|
|
668
|
-
var h,
|
|
672
|
+
var h, x, w, y;
|
|
669
673
|
return {
|
|
670
674
|
blockChildren: (h = i().children) != null ? h : [],
|
|
671
|
-
componentRef: (
|
|
675
|
+
componentRef: (x = t()) == null ? void 0 : x.component,
|
|
672
676
|
componentOptions: {
|
|
673
|
-
...
|
|
674
|
-
...
|
|
675
|
-
...
|
|
676
|
-
...
|
|
677
|
-
...
|
|
677
|
+
...Xe(i()),
|
|
678
|
+
...ut(t(), i()),
|
|
679
|
+
...mt(t(), e.context),
|
|
680
|
+
...st(t(), e.linkComponent),
|
|
681
|
+
...dt(
|
|
678
682
|
t(),
|
|
679
683
|
e.registeredComponents
|
|
680
684
|
)
|
|
@@ -684,13 +688,13 @@ function X(e) {
|
|
|
684
688
|
registeredComponents: e.registeredComponents,
|
|
685
689
|
builderBlock: i(),
|
|
686
690
|
includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
|
|
687
|
-
isInteractive: !((
|
|
691
|
+
isInteractive: !((y = t()) != null && y.isRSC)
|
|
688
692
|
};
|
|
689
693
|
};
|
|
690
|
-
return /* @__PURE__ */ c(
|
|
691
|
-
/* @__PURE__ */ c(
|
|
692
|
-
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(
|
|
693
|
-
|
|
694
|
+
return /* @__PURE__ */ c(I, { children: a() ? /* @__PURE__ */ P(I, { children: [
|
|
695
|
+
/* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
|
|
696
|
+
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
|
|
697
|
+
he,
|
|
694
698
|
{
|
|
695
699
|
componentRef: r().componentRef,
|
|
696
700
|
componentOptions: r().componentOptions,
|
|
@@ -702,8 +706,8 @@ function X(e) {
|
|
|
702
706
|
includeBlockProps: r().includeBlockProps,
|
|
703
707
|
isInteractive: r().isInteractive
|
|
704
708
|
}
|
|
705
|
-
) }) : /* @__PURE__ */ c(
|
|
706
|
-
|
|
709
|
+
) }) : /* @__PURE__ */ c(I, { children: n() ? /* @__PURE__ */ c(I, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
|
|
710
|
+
kt,
|
|
707
711
|
{
|
|
708
712
|
repeatContext: u.context,
|
|
709
713
|
block: u.block,
|
|
@@ -712,14 +716,14 @@ function X(e) {
|
|
|
712
716
|
},
|
|
713
717
|
h
|
|
714
718
|
)) }) : /* @__PURE__ */ P(
|
|
715
|
-
|
|
719
|
+
vt,
|
|
716
720
|
{
|
|
717
721
|
Wrapper: o(),
|
|
718
722
|
block: i(),
|
|
719
723
|
context: e.context,
|
|
720
724
|
children: [
|
|
721
725
|
/* @__PURE__ */ c(
|
|
722
|
-
|
|
726
|
+
he,
|
|
723
727
|
{
|
|
724
728
|
componentRef: r().componentRef,
|
|
725
729
|
componentOptions: r().componentOptions,
|
|
@@ -733,7 +737,7 @@ function X(e) {
|
|
|
733
737
|
}
|
|
734
738
|
),
|
|
735
739
|
(d = l()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
|
|
736
|
-
|
|
740
|
+
G,
|
|
737
741
|
{
|
|
738
742
|
block: u,
|
|
739
743
|
registeredComponents: e.registeredComponents,
|
|
@@ -747,7 +751,7 @@ function X(e) {
|
|
|
747
751
|
) })
|
|
748
752
|
] }) : null });
|
|
749
753
|
}
|
|
750
|
-
function
|
|
754
|
+
function Ct(e) {
|
|
751
755
|
function t() {
|
|
752
756
|
var o;
|
|
753
757
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -778,7 +782,7 @@ function It(e) {
|
|
|
778
782
|
"*"
|
|
779
783
|
));
|
|
780
784
|
}
|
|
781
|
-
return /* @__PURE__ */ P(
|
|
785
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
782
786
|
/* @__PURE__ */ c(
|
|
783
787
|
e.BlocksWrapper,
|
|
784
788
|
{
|
|
@@ -800,10 +804,10 @@ function It(e) {
|
|
|
800
804
|
}` })
|
|
801
805
|
] });
|
|
802
806
|
}
|
|
803
|
-
function
|
|
807
|
+
function ce(e) {
|
|
804
808
|
var t, n, i;
|
|
805
809
|
return /* @__PURE__ */ c(
|
|
806
|
-
|
|
810
|
+
Ct,
|
|
807
811
|
{
|
|
808
812
|
blocks: e.blocks,
|
|
809
813
|
parent: e.parent,
|
|
@@ -811,8 +815,8 @@ function se(e) {
|
|
|
811
815
|
styleProp: e.styleProp,
|
|
812
816
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
813
817
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
814
|
-
children: e.blocks ? /* @__PURE__ */ c(
|
|
815
|
-
|
|
818
|
+
children: e.blocks ? /* @__PURE__ */ c(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
|
|
819
|
+
G,
|
|
816
820
|
{
|
|
817
821
|
block: o,
|
|
818
822
|
linkComponent: e.linkComponent,
|
|
@@ -824,27 +828,27 @@ function se(e) {
|
|
|
824
828
|
}
|
|
825
829
|
);
|
|
826
830
|
}
|
|
827
|
-
const
|
|
828
|
-
function
|
|
829
|
-
var
|
|
830
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(
|
|
831
|
-
return
|
|
832
|
-
}, a = function(
|
|
833
|
-
var
|
|
834
|
-
return ((
|
|
835
|
-
}, l = function(
|
|
836
|
-
const
|
|
837
|
-
return `calc(${
|
|
831
|
+
const It = (e) => `builder-columns ${e}-breakpoints`;
|
|
832
|
+
function wt(e) {
|
|
833
|
+
var y, A;
|
|
834
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
|
|
835
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
836
|
+
}, a = function(b) {
|
|
837
|
+
var k;
|
|
838
|
+
return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
|
|
839
|
+
}, l = function(b) {
|
|
840
|
+
const k = a(b), T = t * (n.length - 1) * (k / 100);
|
|
841
|
+
return `calc(${k}% - ${T}px)`;
|
|
838
842
|
}, r = function({
|
|
839
|
-
stackedStyle:
|
|
840
|
-
desktopStyle:
|
|
843
|
+
stackedStyle: b,
|
|
844
|
+
desktopStyle: k
|
|
841
845
|
}) {
|
|
842
|
-
return i === "tablet" ?
|
|
846
|
+
return i === "tablet" ? b : k;
|
|
843
847
|
}, s = function({
|
|
844
|
-
stackedStyle:
|
|
845
|
-
desktopStyle:
|
|
848
|
+
stackedStyle: b,
|
|
849
|
+
desktopStyle: k
|
|
846
850
|
}) {
|
|
847
|
-
return i === "never" ?
|
|
851
|
+
return i === "never" ? k : b;
|
|
848
852
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
849
853
|
return {
|
|
850
854
|
"--flex-dir": d,
|
|
@@ -853,39 +857,39 @@ function Tt(e) {
|
|
|
853
857
|
desktopStyle: "row"
|
|
854
858
|
})
|
|
855
859
|
};
|
|
856
|
-
}, u = function(
|
|
857
|
-
const
|
|
860
|
+
}, u = function(b) {
|
|
861
|
+
const k = b === 0 ? 0 : t, T = l(b), B = `${k}px`, L = "100%", j = 0;
|
|
858
862
|
return {
|
|
859
863
|
...{
|
|
860
864
|
display: "flex",
|
|
861
865
|
flexDirection: "column",
|
|
862
866
|
alignItems: "stretch"
|
|
863
867
|
},
|
|
864
|
-
width:
|
|
865
|
-
["marginLeft"]:
|
|
868
|
+
width: T,
|
|
869
|
+
["marginLeft"]: B,
|
|
866
870
|
"--column-width-mobile": s({
|
|
867
|
-
stackedStyle:
|
|
868
|
-
desktopStyle:
|
|
871
|
+
stackedStyle: L,
|
|
872
|
+
desktopStyle: T
|
|
869
873
|
}),
|
|
870
874
|
"--column-margin-left-mobile": s({
|
|
871
875
|
stackedStyle: j,
|
|
872
|
-
desktopStyle:
|
|
876
|
+
desktopStyle: B
|
|
873
877
|
}),
|
|
874
878
|
"--column-width-tablet": r({
|
|
875
|
-
stackedStyle:
|
|
876
|
-
desktopStyle:
|
|
879
|
+
stackedStyle: L,
|
|
880
|
+
desktopStyle: T
|
|
877
881
|
}),
|
|
878
882
|
"--column-margin-left-tablet": r({
|
|
879
883
|
stackedStyle: j,
|
|
880
|
-
desktopStyle:
|
|
884
|
+
desktopStyle: B
|
|
881
885
|
})
|
|
882
886
|
};
|
|
883
|
-
}, h = function(
|
|
884
|
-
var
|
|
885
|
-
return
|
|
886
|
-
((
|
|
887
|
-
)[
|
|
888
|
-
},
|
|
887
|
+
}, h = function(b) {
|
|
888
|
+
var T, B;
|
|
889
|
+
return Te(
|
|
890
|
+
((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
|
|
891
|
+
)[b].max;
|
|
892
|
+
}, x = function() {
|
|
889
893
|
return `
|
|
890
894
|
@media (max-width: ${h("medium")}px) {
|
|
891
895
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -911,33 +915,33 @@ function Tt(e) {
|
|
|
911
915
|
}
|
|
912
916
|
},
|
|
913
917
|
`;
|
|
914
|
-
}, w = function(
|
|
918
|
+
}, w = function(b, k) {
|
|
915
919
|
return {
|
|
916
|
-
...
|
|
917
|
-
href:
|
|
920
|
+
...b.link ? {
|
|
921
|
+
href: b.link
|
|
918
922
|
} : {},
|
|
919
923
|
[D()]: "builder-column",
|
|
920
|
-
style:
|
|
924
|
+
style: Ie(u(k))
|
|
921
925
|
};
|
|
922
926
|
};
|
|
923
|
-
return /* @__PURE__ */ P(
|
|
927
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
924
928
|
/* @__PURE__ */ P(
|
|
925
929
|
"div",
|
|
926
930
|
{
|
|
927
|
-
className:
|
|
931
|
+
className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
|
|
928
932
|
style: m(),
|
|
929
933
|
children: [
|
|
930
|
-
/* @__PURE__ */ c(
|
|
931
|
-
(A = e.columns) == null ? void 0 : A.map((
|
|
932
|
-
|
|
934
|
+
/* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
|
|
935
|
+
(A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
|
|
936
|
+
ae,
|
|
933
937
|
{
|
|
934
|
-
TagName: o(
|
|
938
|
+
TagName: o(S),
|
|
935
939
|
actionAttributes: {},
|
|
936
|
-
attributes: w(
|
|
940
|
+
attributes: w(S, b),
|
|
937
941
|
children: /* @__PURE__ */ c(
|
|
938
|
-
|
|
942
|
+
ce,
|
|
939
943
|
{
|
|
940
|
-
path: `component.options.columns.${
|
|
944
|
+
path: `component.options.columns.${b}.blocks`,
|
|
941
945
|
parent: e.builderBlock.id,
|
|
942
946
|
styleProp: {
|
|
943
947
|
flexGrow: "1"
|
|
@@ -945,32 +949,32 @@ function Tt(e) {
|
|
|
945
949
|
context: e.builderContext,
|
|
946
950
|
registeredComponents: e.builderComponents,
|
|
947
951
|
linkComponent: e.builderLinkComponent,
|
|
948
|
-
blocks:
|
|
952
|
+
blocks: S.blocks
|
|
949
953
|
}
|
|
950
954
|
)
|
|
951
955
|
},
|
|
952
|
-
|
|
956
|
+
b
|
|
953
957
|
))
|
|
954
958
|
]
|
|
955
959
|
}
|
|
956
960
|
),
|
|
957
|
-
/* @__PURE__ */ c("style", { children: `.div-
|
|
961
|
+
/* @__PURE__ */ c("style", { children: `.div-1de99da7 {
|
|
958
962
|
display: flex;
|
|
959
963
|
line-height: normal;
|
|
960
964
|
}` })
|
|
961
965
|
] });
|
|
962
966
|
}
|
|
963
|
-
function
|
|
967
|
+
function Tt(e) {
|
|
964
968
|
return /* @__PURE__ */ c("span", { children: e.children });
|
|
965
969
|
}
|
|
966
970
|
function ge(e) {
|
|
967
971
|
return e.replace(/http(s)?:/, "");
|
|
968
972
|
}
|
|
969
|
-
function
|
|
973
|
+
function Rt(e = "", t, n) {
|
|
970
974
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
971
975
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
972
976
|
}
|
|
973
|
-
function
|
|
977
|
+
function Pt(e, t) {
|
|
974
978
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
975
979
|
return e;
|
|
976
980
|
if (t === "master")
|
|
@@ -982,16 +986,16 @@ function Bt(e, t) {
|
|
|
982
986
|
}
|
|
983
987
|
return null;
|
|
984
988
|
}
|
|
985
|
-
function
|
|
989
|
+
function te(e) {
|
|
986
990
|
if (!e)
|
|
987
991
|
return e;
|
|
988
992
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
989
993
|
if (e.match(/builder\.io/)) {
|
|
990
994
|
let n = e;
|
|
991
995
|
const i = Number(e.split("?width=")[1]);
|
|
992
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
996
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
993
997
|
}
|
|
994
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
998
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
995
999
|
}
|
|
996
1000
|
function Et(e) {
|
|
997
1001
|
var o, a, l, r, s, d;
|
|
@@ -1004,10 +1008,10 @@ function Et(e) {
|
|
|
1004
1008
|
return e.srcset;
|
|
1005
1009
|
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1006
1010
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1007
|
-
return console.debug("Removed given srcset"),
|
|
1011
|
+
return console.debug("Removed given srcset"), te(u);
|
|
1008
1012
|
} else if (e.image && !e.srcset)
|
|
1009
|
-
return
|
|
1010
|
-
return
|
|
1013
|
+
return te(u);
|
|
1014
|
+
return te(u);
|
|
1011
1015
|
}
|
|
1012
1016
|
function n() {
|
|
1013
1017
|
var m;
|
|
@@ -1023,8 +1027,8 @@ function Et(e) {
|
|
|
1023
1027
|
};
|
|
1024
1028
|
return e.aspectRatio ? m : void 0;
|
|
1025
1029
|
}
|
|
1026
|
-
return /* @__PURE__ */ P(
|
|
1027
|
-
/* @__PURE__ */ P(
|
|
1030
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
1031
|
+
/* @__PURE__ */ P(I, { children: [
|
|
1028
1032
|
/* @__PURE__ */ P("picture", { children: [
|
|
1029
1033
|
n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1030
1034
|
/* @__PURE__ */ c(
|
|
@@ -1055,7 +1059,7 @@ function Et(e) {
|
|
|
1055
1059
|
}
|
|
1056
1060
|
}
|
|
1057
1061
|
) : null,
|
|
1058
|
-
(r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(
|
|
1062
|
+
(r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(I, { children: e.children }) : null,
|
|
1059
1063
|
!e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1060
1064
|
] }),
|
|
1061
1065
|
/* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
|
|
@@ -1077,7 +1081,7 @@ function Et(e) {
|
|
|
1077
1081
|
}` })
|
|
1078
1082
|
] });
|
|
1079
1083
|
}
|
|
1080
|
-
function
|
|
1084
|
+
function Bt(e) {
|
|
1081
1085
|
return /* @__PURE__ */ c(
|
|
1082
1086
|
"section",
|
|
1083
1087
|
{
|
|
@@ -1098,7 +1102,7 @@ function Wt(e) {
|
|
|
1098
1102
|
}
|
|
1099
1103
|
);
|
|
1100
1104
|
}
|
|
1101
|
-
const
|
|
1105
|
+
const Wt = {
|
|
1102
1106
|
name: "Core:Button",
|
|
1103
1107
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1104
1108
|
defaultStyles: {
|
|
@@ -1132,12 +1136,9 @@ const Nt = {
|
|
|
1132
1136
|
static: !0,
|
|
1133
1137
|
noWrap: !0,
|
|
1134
1138
|
shouldReceiveBuilderProps: {
|
|
1135
|
-
builderBlock: !1,
|
|
1136
|
-
builderContext: !1,
|
|
1137
|
-
builderComponents: !1,
|
|
1138
1139
|
builderLinkComponent: !0
|
|
1139
1140
|
}
|
|
1140
|
-
},
|
|
1141
|
+
}, Nt = {
|
|
1141
1142
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1142
1143
|
name: "Columns",
|
|
1143
1144
|
isRSC: !0,
|
|
@@ -1344,19 +1345,13 @@ const Nt = {
|
|
|
1344
1345
|
builderComponents: !0,
|
|
1345
1346
|
builderLinkComponent: !0
|
|
1346
1347
|
}
|
|
1347
|
-
},
|
|
1348
|
-
shouldReceiveBuilderProps: {
|
|
1349
|
-
builderBlock: !1,
|
|
1350
|
-
builderContext: !1,
|
|
1351
|
-
builderComponents: !1,
|
|
1352
|
-
builderLinkComponent: !1
|
|
1353
|
-
},
|
|
1348
|
+
}, At = {
|
|
1354
1349
|
name: "Fragment",
|
|
1355
1350
|
static: !0,
|
|
1356
1351
|
hidden: !0,
|
|
1357
1352
|
canHaveChildren: !0,
|
|
1358
1353
|
noWrap: !0
|
|
1359
|
-
},
|
|
1354
|
+
}, Vt = {
|
|
1360
1355
|
name: "Image",
|
|
1361
1356
|
static: !0,
|
|
1362
1357
|
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",
|
|
@@ -1462,18 +1457,9 @@ const Nt = {
|
|
|
1462
1457
|
defaultValue: 0.7041
|
|
1463
1458
|
}],
|
|
1464
1459
|
shouldReceiveBuilderProps: {
|
|
1465
|
-
builderBlock: !0
|
|
1466
|
-
builderContext: !1,
|
|
1467
|
-
builderComponents: !1,
|
|
1468
|
-
builderLinkComponent: !1
|
|
1460
|
+
builderBlock: !0
|
|
1469
1461
|
}
|
|
1470
|
-
},
|
|
1471
|
-
shouldReceiveBuilderProps: {
|
|
1472
|
-
builderBlock: !1,
|
|
1473
|
-
builderContext: !1,
|
|
1474
|
-
builderComponents: !1,
|
|
1475
|
-
builderLinkComponent: !1
|
|
1476
|
-
},
|
|
1462
|
+
}, $t = {
|
|
1477
1463
|
name: "Core:Section",
|
|
1478
1464
|
static: !0,
|
|
1479
1465
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1526,13 +1512,10 @@ const Nt = {
|
|
|
1526
1512
|
defaultValue: "children"
|
|
1527
1513
|
}],
|
|
1528
1514
|
shouldReceiveBuilderProps: {
|
|
1529
|
-
|
|
1530
|
-
builderContext: !0,
|
|
1531
|
-
builderComponents: !1,
|
|
1532
|
-
builderLinkComponent: !1
|
|
1515
|
+
builderContext: !0
|
|
1533
1516
|
}
|
|
1534
1517
|
};
|
|
1535
|
-
function
|
|
1518
|
+
function Lt(e) {
|
|
1536
1519
|
var t, n, i;
|
|
1537
1520
|
return /* @__PURE__ */ c(
|
|
1538
1521
|
"div",
|
|
@@ -1544,7 +1527,7 @@ function jt(e) {
|
|
|
1544
1527
|
"builder-slot": e.name
|
|
1545
1528
|
},
|
|
1546
1529
|
children: /* @__PURE__ */ c(
|
|
1547
|
-
|
|
1530
|
+
ce,
|
|
1548
1531
|
{
|
|
1549
1532
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1550
1533
|
path: `symbol.data.${e.name}`,
|
|
@@ -1555,7 +1538,7 @@ function jt(e) {
|
|
|
1555
1538
|
}
|
|
1556
1539
|
);
|
|
1557
1540
|
}
|
|
1558
|
-
const
|
|
1541
|
+
const jt = {
|
|
1559
1542
|
name: "Symbol",
|
|
1560
1543
|
noWrap: !0,
|
|
1561
1544
|
static: !0,
|
|
@@ -1594,12 +1577,9 @@ const Dt = {
|
|
|
1594
1577
|
builderComponents: !0,
|
|
1595
1578
|
builderLinkComponent: !0
|
|
1596
1579
|
}
|
|
1597
|
-
},
|
|
1580
|
+
}, Dt = {
|
|
1598
1581
|
shouldReceiveBuilderProps: {
|
|
1599
|
-
builderBlock: !1
|
|
1600
|
-
builderContext: !1,
|
|
1601
|
-
builderComponents: !1,
|
|
1602
|
-
builderLinkComponent: !1
|
|
1582
|
+
builderBlock: !1
|
|
1603
1583
|
},
|
|
1604
1584
|
name: "Text",
|
|
1605
1585
|
static: !0,
|
|
@@ -1619,7 +1599,7 @@ const Dt = {
|
|
|
1619
1599
|
textAlign: "center"
|
|
1620
1600
|
}
|
|
1621
1601
|
};
|
|
1622
|
-
function
|
|
1602
|
+
function Ot(e) {
|
|
1623
1603
|
var t;
|
|
1624
1604
|
return /* @__PURE__ */ c(
|
|
1625
1605
|
"div",
|
|
@@ -1633,12 +1613,6 @@ function _t(e) {
|
|
|
1633
1613
|
);
|
|
1634
1614
|
}
|
|
1635
1615
|
const Ht = {
|
|
1636
|
-
shouldReceiveBuilderProps: {
|
|
1637
|
-
builderBlock: !1,
|
|
1638
|
-
builderContext: !1,
|
|
1639
|
-
builderComponents: !1,
|
|
1640
|
-
builderLinkComponent: !1
|
|
1641
|
-
},
|
|
1642
1616
|
name: "Custom Code",
|
|
1643
1617
|
static: !0,
|
|
1644
1618
|
requiredPermissions: ["editCode"],
|
|
@@ -1661,9 +1635,9 @@ const Ht = {
|
|
|
1661
1635
|
advanced: !0
|
|
1662
1636
|
}]
|
|
1663
1637
|
};
|
|
1664
|
-
function
|
|
1665
|
-
const t =
|
|
1666
|
-
return
|
|
1638
|
+
function Mt(e) {
|
|
1639
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1640
|
+
return R(() => {
|
|
1667
1641
|
var r;
|
|
1668
1642
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
1669
1643
|
return;
|
|
@@ -1699,13 +1673,7 @@ function Ut(e) {
|
|
|
1699
1673
|
}
|
|
1700
1674
|
);
|
|
1701
1675
|
}
|
|
1702
|
-
const
|
|
1703
|
-
shouldReceiveBuilderProps: {
|
|
1704
|
-
builderBlock: !1,
|
|
1705
|
-
builderContext: !1,
|
|
1706
|
-
builderComponents: !1,
|
|
1707
|
-
builderLinkComponent: !1
|
|
1708
|
-
},
|
|
1676
|
+
const Ut = {
|
|
1709
1677
|
name: "Embed",
|
|
1710
1678
|
static: !0,
|
|
1711
1679
|
inputs: [{
|
|
@@ -1713,29 +1681,16 @@ const Mt = {
|
|
|
1713
1681
|
type: "url",
|
|
1714
1682
|
required: !0,
|
|
1715
1683
|
defaultValue: "",
|
|
1716
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
1717
|
-
onChange: (e) => {
|
|
1718
|
-
const t = e.get("url");
|
|
1719
|
-
if (t) {
|
|
1720
|
-
e.set("content", "Loading...");
|
|
1721
|
-
const n = _iframelyApiKey;
|
|
1722
|
-
return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
|
|
1723
|
-
e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
|
|
1724
|
-
}).catch((i) => {
|
|
1725
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
1726
|
-
});
|
|
1727
|
-
} else
|
|
1728
|
-
e.delete("content");
|
|
1729
|
-
}
|
|
1684
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
1730
1685
|
}, {
|
|
1731
1686
|
name: "content",
|
|
1732
1687
|
type: "html",
|
|
1733
1688
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1734
1689
|
hideFromUI: !0
|
|
1735
1690
|
}]
|
|
1736
|
-
},
|
|
1737
|
-
function
|
|
1738
|
-
const t =
|
|
1691
|
+
}, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
|
|
1692
|
+
function zt(e) {
|
|
1693
|
+
const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
|
|
1739
1694
|
function s() {
|
|
1740
1695
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1741
1696
|
return;
|
|
@@ -1746,7 +1701,7 @@ function qt(e) {
|
|
|
1746
1701
|
n.push(u.src);
|
|
1747
1702
|
const h = document.createElement("script");
|
|
1748
1703
|
h.async = !0, h.src = u.src, document.head.appendChild(h);
|
|
1749
|
-
} else if (
|
|
1704
|
+
} else if (Kt(u) && !o.includes(u.innerText))
|
|
1750
1705
|
try {
|
|
1751
1706
|
o.push(u.innerText), new Function(u.innerText)();
|
|
1752
1707
|
} catch (h) {
|
|
@@ -1754,7 +1709,7 @@ function qt(e) {
|
|
|
1754
1709
|
}
|
|
1755
1710
|
}
|
|
1756
1711
|
}
|
|
1757
|
-
return
|
|
1712
|
+
return R(() => {
|
|
1758
1713
|
t.current && !l && (r(!0), s());
|
|
1759
1714
|
}, [t.current, l]), /* @__PURE__ */ c(
|
|
1760
1715
|
"div",
|
|
@@ -1765,13 +1720,7 @@ function qt(e) {
|
|
|
1765
1720
|
}
|
|
1766
1721
|
);
|
|
1767
1722
|
}
|
|
1768
|
-
const
|
|
1769
|
-
shouldReceiveBuilderProps: {
|
|
1770
|
-
builderBlock: !1,
|
|
1771
|
-
builderContext: !1,
|
|
1772
|
-
builderComponents: !1,
|
|
1773
|
-
builderLinkComponent: !1
|
|
1774
|
-
},
|
|
1723
|
+
const qt = {
|
|
1775
1724
|
// friendlyName?
|
|
1776
1725
|
name: "Raw:Img",
|
|
1777
1726
|
hideFromInsertMenu: !0,
|
|
@@ -1786,7 +1735,7 @@ const Yt = {
|
|
|
1786
1735
|
noWrap: !0,
|
|
1787
1736
|
static: !0
|
|
1788
1737
|
};
|
|
1789
|
-
function
|
|
1738
|
+
function Yt(e) {
|
|
1790
1739
|
return /* @__PURE__ */ c(
|
|
1791
1740
|
"img",
|
|
1792
1741
|
{
|
|
@@ -1801,7 +1750,7 @@ function Jt(e) {
|
|
|
1801
1750
|
V() && e.imgSrc || "default-key"
|
|
1802
1751
|
);
|
|
1803
1752
|
}
|
|
1804
|
-
const
|
|
1753
|
+
const Jt = {
|
|
1805
1754
|
name: "Video",
|
|
1806
1755
|
canHaveChildren: !0,
|
|
1807
1756
|
defaultStyles: {
|
|
@@ -1883,13 +1832,10 @@ const Qt = {
|
|
|
1883
1832
|
advanced: !0
|
|
1884
1833
|
}],
|
|
1885
1834
|
shouldReceiveBuilderProps: {
|
|
1886
|
-
builderBlock: !0
|
|
1887
|
-
builderContext: !1,
|
|
1888
|
-
builderComponents: !1,
|
|
1889
|
-
builderLinkComponent: !1
|
|
1835
|
+
builderBlock: !0
|
|
1890
1836
|
}
|
|
1891
1837
|
};
|
|
1892
|
-
function
|
|
1838
|
+
function Qt(e) {
|
|
1893
1839
|
var i, o, a, l, r, s, d;
|
|
1894
1840
|
function t() {
|
|
1895
1841
|
return {
|
|
@@ -1990,43 +1936,43 @@ function Gt(e) {
|
|
|
1990
1936
|
}
|
|
1991
1937
|
);
|
|
1992
1938
|
}
|
|
1993
|
-
const
|
|
1994
|
-
component:
|
|
1939
|
+
const Gt = () => [{
|
|
1940
|
+
component: Mt,
|
|
1995
1941
|
...Ht
|
|
1996
1942
|
}, {
|
|
1997
|
-
component:
|
|
1998
|
-
...
|
|
1943
|
+
component: zt,
|
|
1944
|
+
...Ut
|
|
1999
1945
|
}, {
|
|
2000
|
-
component:
|
|
2001
|
-
...
|
|
1946
|
+
component: Yt,
|
|
1947
|
+
...qt
|
|
2002
1948
|
}, {
|
|
2003
|
-
component:
|
|
2004
|
-
...
|
|
2005
|
-
}],
|
|
2006
|
-
component:
|
|
1949
|
+
component: Qt,
|
|
1950
|
+
...Jt
|
|
1951
|
+
}], be = () => [{
|
|
1952
|
+
component: Ge,
|
|
1953
|
+
...Wt
|
|
1954
|
+
}, {
|
|
1955
|
+
component: wt,
|
|
2007
1956
|
...Nt
|
|
2008
1957
|
}, {
|
|
2009
1958
|
component: Tt,
|
|
2010
1959
|
...At
|
|
2011
1960
|
}, {
|
|
2012
|
-
component:
|
|
1961
|
+
component: Et,
|
|
2013
1962
|
...Vt
|
|
2014
1963
|
}, {
|
|
2015
|
-
component:
|
|
1964
|
+
component: Bt,
|
|
2016
1965
|
...$t
|
|
2017
1966
|
}, {
|
|
2018
|
-
component:
|
|
2019
|
-
...Lt
|
|
2020
|
-
}, {
|
|
2021
|
-
component: jt,
|
|
1967
|
+
component: Lt,
|
|
2022
1968
|
...Ft
|
|
2023
1969
|
}, {
|
|
2024
|
-
component:
|
|
2025
|
-
...
|
|
1970
|
+
component: Rn,
|
|
1971
|
+
...jt
|
|
2026
1972
|
}, {
|
|
2027
|
-
component:
|
|
2028
|
-
...
|
|
2029
|
-
}, ...
|
|
1973
|
+
component: Ot,
|
|
1974
|
+
...Dt
|
|
1975
|
+
}, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2030
1976
|
function getAndSetVariantId() {
|
|
2031
1977
|
function setCookie(name, value, days) {
|
|
2032
1978
|
let expires = '';
|
|
@@ -2082,7 +2028,7 @@ const Xt = () => [{
|
|
|
2082
2028
|
}).join('');
|
|
2083
2029
|
styleEl.innerHTML = newStyleStr;
|
|
2084
2030
|
}
|
|
2085
|
-
}`,
|
|
2031
|
+
}`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2086
2032
|
if (!navigator.cookieEnabled) {
|
|
2087
2033
|
return;
|
|
2088
2034
|
}
|
|
@@ -2116,26 +2062,26 @@ const Xt = () => [{
|
|
|
2116
2062
|
thisScriptEl?.remove();
|
|
2117
2063
|
}
|
|
2118
2064
|
return;
|
|
2119
|
-
}`,
|
|
2065
|
+
}`, Pe = "builderIoAbTest", Ee = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2120
2066
|
...t,
|
|
2121
2067
|
testVariationId: t.id,
|
|
2122
2068
|
id: e == null ? void 0 : e.id
|
|
2123
|
-
})),
|
|
2069
|
+
})), en = ({
|
|
2124
2070
|
canTrack: e,
|
|
2125
2071
|
content: t
|
|
2126
|
-
}) => !(!(
|
|
2127
|
-
window.${
|
|
2128
|
-
window.${Ee} = ${
|
|
2129
|
-
`,
|
|
2130
|
-
window.${
|
|
2131
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2132
|
-
)`,
|
|
2072
|
+
}) => !(!(_(t).length > 0) || !e || z()), tn = (e) => e === "react" || e === "reactNative", Be = tn(H), nn = () => `
|
|
2073
|
+
window.${Pe} = ${Xt}
|
|
2074
|
+
window.${Ee} = ${Zt}
|
|
2075
|
+
`, on = (e, t) => `
|
|
2076
|
+
window.${Pe}(
|
|
2077
|
+
"${t}",${JSON.stringify(e)}, ${Be}
|
|
2078
|
+
)`, an = ({
|
|
2133
2079
|
contentId: e,
|
|
2134
2080
|
variationId: t
|
|
2135
2081
|
}) => `window.${Ee}(
|
|
2136
|
-
"${t}", "${e}", ${
|
|
2082
|
+
"${t}", "${e}", ${Be}
|
|
2137
2083
|
)`;
|
|
2138
|
-
function
|
|
2084
|
+
function ne(e) {
|
|
2139
2085
|
return /* @__PURE__ */ c(
|
|
2140
2086
|
"script",
|
|
2141
2087
|
{
|
|
@@ -2144,7 +2090,7 @@ function ie(e) {
|
|
|
2144
2090
|
}
|
|
2145
2091
|
);
|
|
2146
2092
|
}
|
|
2147
|
-
const
|
|
2093
|
+
const rn = qe({
|
|
2148
2094
|
content: null,
|
|
2149
2095
|
context: {},
|
|
2150
2096
|
localState: void 0,
|
|
@@ -2161,7 +2107,7 @@ const ln = Ye({
|
|
|
2161
2107
|
function ye(e) {
|
|
2162
2108
|
return Math.round(e * 1e3) / 1e3;
|
|
2163
2109
|
}
|
|
2164
|
-
const
|
|
2110
|
+
const ln = (e, t, n = !0) => {
|
|
2165
2111
|
if (!(e instanceof HTMLElement))
|
|
2166
2112
|
return null;
|
|
2167
2113
|
let i = n ? e : e.parentElement;
|
|
@@ -2172,10 +2118,10 @@ const cn = (e, t, n = !0) => {
|
|
|
2172
2118
|
return i;
|
|
2173
2119
|
} while (i = i.parentElement);
|
|
2174
2120
|
return null;
|
|
2175
|
-
},
|
|
2121
|
+
}, cn = (e) => ln(e, (t) => {
|
|
2176
2122
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2177
2123
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2178
|
-
}),
|
|
2124
|
+
}), pe = ({
|
|
2179
2125
|
event: e,
|
|
2180
2126
|
target: t
|
|
2181
2127
|
}) => {
|
|
@@ -2184,16 +2130,16 @@ const cn = (e, t, n = !0) => {
|
|
|
2184
2130
|
x: a,
|
|
2185
2131
|
y: l
|
|
2186
2132
|
};
|
|
2187
|
-
},
|
|
2188
|
-
const t = e.target, n = t &&
|
|
2133
|
+
}, sn = (e) => {
|
|
2134
|
+
const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2189
2135
|
return {
|
|
2190
2136
|
targetBuilderElement: i || void 0,
|
|
2191
2137
|
metadata: {
|
|
2192
|
-
targetOffset: t ?
|
|
2138
|
+
targetOffset: t ? pe({
|
|
2193
2139
|
event: e,
|
|
2194
2140
|
target: t
|
|
2195
2141
|
}) : void 0,
|
|
2196
|
-
builderTargetOffset: n ?
|
|
2142
|
+
builderTargetOffset: n ? pe({
|
|
2197
2143
|
event: e,
|
|
2198
2144
|
target: n
|
|
2199
2145
|
}) : void 0,
|
|
@@ -2201,13 +2147,13 @@ const cn = (e, t, n = !0) => {
|
|
|
2201
2147
|
}
|
|
2202
2148
|
};
|
|
2203
2149
|
};
|
|
2204
|
-
async function
|
|
2150
|
+
async function dn({
|
|
2205
2151
|
key: e,
|
|
2206
2152
|
value: t
|
|
2207
2153
|
}) {
|
|
2208
|
-
return
|
|
2154
|
+
return Ve(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2209
2155
|
}
|
|
2210
|
-
function
|
|
2156
|
+
function ve(e, ...t) {
|
|
2211
2157
|
const n = Object(e);
|
|
2212
2158
|
for (let i = 1; i < arguments.length; i++) {
|
|
2213
2159
|
const o = arguments[i];
|
|
@@ -2217,31 +2163,31 @@ function xe(e, ...t) {
|
|
|
2217
2163
|
}
|
|
2218
2164
|
return n;
|
|
2219
2165
|
}
|
|
2220
|
-
function
|
|
2166
|
+
function un(e) {
|
|
2221
2167
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2222
2168
|
}
|
|
2223
|
-
function
|
|
2224
|
-
const n =
|
|
2169
|
+
function mn(e, t) {
|
|
2170
|
+
const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
|
|
2225
2171
|
for (const r of l)
|
|
2226
2172
|
for (const s of n)
|
|
2227
2173
|
s in r || (r[s] = i[s]);
|
|
2228
2174
|
}
|
|
2229
|
-
function
|
|
2175
|
+
function fn(e) {
|
|
2230
2176
|
const t = [];
|
|
2231
2177
|
for (const n of e.steps)
|
|
2232
2178
|
for (const i in n.styles)
|
|
2233
2179
|
t.indexOf(i) === -1 && t.push(i);
|
|
2234
2180
|
return t;
|
|
2235
2181
|
}
|
|
2236
|
-
function
|
|
2182
|
+
function hn(e) {
|
|
2237
2183
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2238
2184
|
if (!t.length) {
|
|
2239
|
-
|
|
2185
|
+
un(e.elementId || e.id || "");
|
|
2240
2186
|
return;
|
|
2241
2187
|
}
|
|
2242
2188
|
Array.from(t).forEach((n) => {
|
|
2243
|
-
|
|
2244
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2189
|
+
mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ve(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2190
|
+
n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ve(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2245
2191
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2246
2192
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2247
2193
|
});
|
|
@@ -2273,7 +2219,7 @@ font-weight: ${r};
|
|
|
2273
2219
|
`.trim());
|
|
2274
2220
|
}
|
|
2275
2221
|
return o;
|
|
2276
|
-
},
|
|
2222
|
+
}, bn = ({
|
|
2277
2223
|
customFonts: e
|
|
2278
2224
|
}) => {
|
|
2279
2225
|
var t;
|
|
@@ -2281,7 +2227,7 @@ font-weight: ${r};
|
|
|
2281
2227
|
}, yn = ({
|
|
2282
2228
|
cssCode: e,
|
|
2283
2229
|
contentId: t
|
|
2284
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2230
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
|
|
2285
2231
|
.builder-button {
|
|
2286
2232
|
all: unset;
|
|
2287
2233
|
}
|
|
@@ -2298,38 +2244,38 @@ font-weight: ${r};
|
|
|
2298
2244
|
text-align: inherit;
|
|
2299
2245
|
font-family: inherit;
|
|
2300
2246
|
}
|
|
2301
|
-
`,
|
|
2302
|
-
function
|
|
2303
|
-
var
|
|
2304
|
-
const t =
|
|
2305
|
-
function n(
|
|
2306
|
-
var
|
|
2247
|
+
`, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
|
|
2248
|
+
function xn(e) {
|
|
2249
|
+
var B, L, j, X, Z, se, de;
|
|
2250
|
+
const t = oe(null);
|
|
2251
|
+
function n(g) {
|
|
2252
|
+
var p, v;
|
|
2307
2253
|
const f = {
|
|
2308
2254
|
...e.builderContextSignal.rootState,
|
|
2309
|
-
...
|
|
2255
|
+
...g
|
|
2310
2256
|
};
|
|
2311
|
-
e.builderContextSignal.rootSetState ? (v = (
|
|
2257
|
+
e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
|
|
2312
2258
|
}
|
|
2313
|
-
function i(
|
|
2314
|
-
var
|
|
2259
|
+
function i(g) {
|
|
2260
|
+
var p, v, C, E, M;
|
|
2315
2261
|
const f = {
|
|
2316
2262
|
...e.builderContextSignal.content,
|
|
2317
|
-
...
|
|
2263
|
+
...g,
|
|
2318
2264
|
data: {
|
|
2319
|
-
...(
|
|
2320
|
-
...
|
|
2265
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
|
|
2266
|
+
...g == null ? void 0 : g.data
|
|
2321
2267
|
},
|
|
2322
2268
|
meta: {
|
|
2323
2269
|
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
2324
|
-
...
|
|
2325
|
-
breakpoints: ((
|
|
2270
|
+
...g == null ? void 0 : g.meta,
|
|
2271
|
+
breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((M = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : M.breakpoints)
|
|
2326
2272
|
}
|
|
2327
2273
|
};
|
|
2328
|
-
|
|
2274
|
+
dn({
|
|
2329
2275
|
value: f,
|
|
2330
2276
|
key: f.id
|
|
2331
2277
|
}).then(() => {
|
|
2332
|
-
|
|
2278
|
+
T.refresh();
|
|
2333
2279
|
});
|
|
2334
2280
|
}
|
|
2335
2281
|
function o() {
|
|
@@ -2341,34 +2287,34 @@ function Sn(e) {
|
|
|
2341
2287
|
const [a, l] = N(
|
|
2342
2288
|
() => e.contentWrapper || "div"
|
|
2343
2289
|
);
|
|
2344
|
-
function r(
|
|
2290
|
+
function r(g) {
|
|
2345
2291
|
return Fe({
|
|
2346
2292
|
model: e.model,
|
|
2347
2293
|
trustedHosts: e.trustedHosts,
|
|
2348
2294
|
callbacks: {
|
|
2349
2295
|
configureSdk: (f) => {
|
|
2350
|
-
var
|
|
2351
|
-
const { breakpoints:
|
|
2352
|
-
!v || v !== ((
|
|
2296
|
+
var C;
|
|
2297
|
+
const { breakpoints: p, contentId: v } = f;
|
|
2298
|
+
!v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
|
|
2353
2299
|
meta: {
|
|
2354
|
-
breakpoints:
|
|
2300
|
+
breakpoints: p
|
|
2355
2301
|
}
|
|
2356
2302
|
});
|
|
2357
2303
|
},
|
|
2358
2304
|
animation: (f) => {
|
|
2359
|
-
|
|
2305
|
+
hn(f);
|
|
2360
2306
|
},
|
|
2361
2307
|
contentUpdate: (f) => {
|
|
2362
2308
|
i(f);
|
|
2363
2309
|
}
|
|
2364
2310
|
}
|
|
2365
|
-
})(
|
|
2311
|
+
})(g);
|
|
2366
2312
|
}
|
|
2367
2313
|
function s() {
|
|
2368
|
-
var f,
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2371
|
-
code:
|
|
2314
|
+
var f, p;
|
|
2315
|
+
const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
|
|
2316
|
+
g && O({
|
|
2317
|
+
code: g,
|
|
2372
2318
|
context: e.context || {},
|
|
2373
2319
|
localState: void 0,
|
|
2374
2320
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2379,35 +2325,35 @@ function Sn(e) {
|
|
|
2379
2325
|
enableCache: !1
|
|
2380
2326
|
});
|
|
2381
2327
|
}
|
|
2382
|
-
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [
|
|
2383
|
-
function
|
|
2384
|
-
var f,
|
|
2328
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, w] = N(() => !1);
|
|
2329
|
+
function y(g) {
|
|
2330
|
+
var f, p;
|
|
2385
2331
|
if (e.builderContextSignal.content) {
|
|
2386
|
-
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId,
|
|
2387
|
-
|
|
2332
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
2333
|
+
ue({
|
|
2388
2334
|
type: "click",
|
|
2389
2335
|
canTrack: q(e.canTrack),
|
|
2390
|
-
contentId:
|
|
2336
|
+
contentId: C,
|
|
2391
2337
|
apiKey: e.apiKey,
|
|
2392
|
-
variationId: v !==
|
|
2393
|
-
...
|
|
2394
|
-
unique: !
|
|
2338
|
+
variationId: v !== C ? v : void 0,
|
|
2339
|
+
...sn(g),
|
|
2340
|
+
unique: !x
|
|
2395
2341
|
});
|
|
2396
2342
|
}
|
|
2397
|
-
|
|
2343
|
+
x || w(!0);
|
|
2398
2344
|
}
|
|
2399
2345
|
function A() {
|
|
2400
|
-
var f,
|
|
2401
|
-
const
|
|
2402
|
-
Object.entries(
|
|
2403
|
-
if (!
|
|
2346
|
+
var f, p, v;
|
|
2347
|
+
const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
|
|
2348
|
+
Object.entries(g).forEach(([C, E]) => {
|
|
2349
|
+
if (!E || u[C] || d[C] && !V())
|
|
2404
2350
|
return;
|
|
2405
|
-
u[
|
|
2406
|
-
const
|
|
2351
|
+
u[C] = !0;
|
|
2352
|
+
const M = E.replace(
|
|
2407
2353
|
/{{([^}]+)}}/g,
|
|
2408
|
-
($,
|
|
2354
|
+
($, We) => String(
|
|
2409
2355
|
O({
|
|
2410
|
-
code:
|
|
2356
|
+
code: We,
|
|
2411
2357
|
context: e.context || {},
|
|
2412
2358
|
localState: void 0,
|
|
2413
2359
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2416,24 +2362,24 @@ function Sn(e) {
|
|
|
2416
2362
|
})
|
|
2417
2363
|
)
|
|
2418
2364
|
);
|
|
2419
|
-
|
|
2365
|
+
Le(M).then(($) => $.json()).then(($) => {
|
|
2420
2366
|
n({
|
|
2421
|
-
[
|
|
2422
|
-
}), d[
|
|
2367
|
+
[C]: $
|
|
2368
|
+
}), d[C] = !0;
|
|
2423
2369
|
}).catch(($) => {
|
|
2424
|
-
console.error("error fetching dynamic data",
|
|
2370
|
+
console.error("error fetching dynamic data", E, $);
|
|
2425
2371
|
}).finally(() => {
|
|
2426
|
-
u[
|
|
2372
|
+
u[C] = !1;
|
|
2427
2373
|
});
|
|
2428
2374
|
});
|
|
2429
2375
|
}
|
|
2430
|
-
function
|
|
2376
|
+
function S() {
|
|
2431
2377
|
V() && window.dispatchEvent(
|
|
2432
2378
|
new CustomEvent(
|
|
2433
2379
|
"builder:component:stateChange",
|
|
2434
2380
|
{
|
|
2435
2381
|
detail: {
|
|
2436
|
-
state:
|
|
2382
|
+
state: ie(e.builderContextSignal.rootState),
|
|
2437
2383
|
ref: {
|
|
2438
2384
|
name: e.model
|
|
2439
2385
|
}
|
|
@@ -2442,8 +2388,8 @@ function Sn(e) {
|
|
|
2442
2388
|
)
|
|
2443
2389
|
);
|
|
2444
2390
|
}
|
|
2445
|
-
function g
|
|
2446
|
-
window.addEventListener("message", r),
|
|
2391
|
+
function b(g) {
|
|
2392
|
+
window.addEventListener("message", r), je(), De({
|
|
2447
2393
|
...e.locale ? {
|
|
2448
2394
|
locale: e.locale
|
|
2449
2395
|
} : {},
|
|
@@ -2457,117 +2403,117 @@ function Sn(e) {
|
|
|
2457
2403
|
e.builderContextSignal.componentInfos
|
|
2458
2404
|
).forEach((f) => {
|
|
2459
2405
|
var v;
|
|
2460
|
-
const
|
|
2461
|
-
(v = window.parent) == null || v.postMessage(
|
|
2406
|
+
const p = Oe(f);
|
|
2407
|
+
(v = window.parent) == null || v.postMessage(p, "*");
|
|
2462
2408
|
}), window.addEventListener(
|
|
2463
2409
|
"builder:component:stateChangeListenerActivated",
|
|
2464
|
-
|
|
2410
|
+
S
|
|
2465
2411
|
);
|
|
2466
2412
|
}
|
|
2467
|
-
function
|
|
2468
|
-
const f = new URL(location.href).searchParams,
|
|
2469
|
-
`builder.overrides.${
|
|
2470
|
-
),
|
|
2471
|
-
|
|
2413
|
+
function k(g) {
|
|
2414
|
+
const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
|
|
2415
|
+
`builder.overrides.${p}`
|
|
2416
|
+
), C = f.get("apiKey") || f.get("builder.space");
|
|
2417
|
+
p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && xe({
|
|
2472
2418
|
model: e.model,
|
|
2473
2419
|
apiKey: e.apiKey,
|
|
2474
2420
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2475
|
-
}).then((
|
|
2476
|
-
|
|
2421
|
+
}).then((E) => {
|
|
2422
|
+
E && i(E);
|
|
2477
2423
|
});
|
|
2478
2424
|
}
|
|
2479
|
-
const
|
|
2480
|
-
return
|
|
2481
|
-
var
|
|
2482
|
-
return (
|
|
2425
|
+
const T = Ye();
|
|
2426
|
+
return R(() => {
|
|
2427
|
+
var g;
|
|
2428
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2483
2429
|
"initeditingbldr",
|
|
2484
|
-
|
|
2430
|
+
b
|
|
2485
2431
|
), () => {
|
|
2486
2432
|
var f;
|
|
2487
2433
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2488
2434
|
"initeditingbldr",
|
|
2489
|
-
|
|
2435
|
+
b
|
|
2490
2436
|
);
|
|
2491
2437
|
};
|
|
2492
|
-
}, []),
|
|
2493
|
-
var
|
|
2494
|
-
return (
|
|
2438
|
+
}, []), R(() => {
|
|
2439
|
+
var g;
|
|
2440
|
+
return (g = t.current) == null || g.addEventListener(
|
|
2495
2441
|
"initpreviewingbldr",
|
|
2496
|
-
|
|
2442
|
+
k
|
|
2497
2443
|
), () => {
|
|
2498
2444
|
var f;
|
|
2499
2445
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2500
2446
|
"initpreviewingbldr",
|
|
2501
|
-
|
|
2447
|
+
k
|
|
2502
2448
|
);
|
|
2503
2449
|
};
|
|
2504
|
-
}, []),
|
|
2505
|
-
var
|
|
2450
|
+
}, []), R(() => {
|
|
2451
|
+
var g, f;
|
|
2506
2452
|
if (z()) {
|
|
2507
2453
|
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2508
|
-
const v = (
|
|
2509
|
-
|
|
2454
|
+
const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, E = e.apiKey;
|
|
2455
|
+
ue({
|
|
2510
2456
|
type: "impression",
|
|
2511
2457
|
canTrack: !0,
|
|
2512
|
-
contentId:
|
|
2513
|
-
apiKey:
|
|
2514
|
-
variationId: v !==
|
|
2458
|
+
contentId: C,
|
|
2459
|
+
apiKey: E,
|
|
2460
|
+
variationId: v !== C ? v : void 0
|
|
2515
2461
|
});
|
|
2516
2462
|
}
|
|
2517
|
-
|
|
2463
|
+
$e() && V();
|
|
2518
2464
|
}
|
|
2519
|
-
}, []),
|
|
2465
|
+
}, []), R(() => {
|
|
2520
2466
|
e.apiKey || J.error(
|
|
2521
2467
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2522
|
-
), s(), A(),
|
|
2523
|
-
}, []),
|
|
2524
|
-
}, [e.content]),
|
|
2468
|
+
), s(), A(), S();
|
|
2469
|
+
}, []), R(() => {
|
|
2470
|
+
}, [e.content]), R(() => {
|
|
2525
2471
|
s();
|
|
2526
|
-
}, [(
|
|
2472
|
+
}, [(L = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : L.jsCode]), R(() => {
|
|
2527
2473
|
A();
|
|
2528
|
-
}, [(
|
|
2529
|
-
|
|
2530
|
-
}, [e.builderContextSignal.rootState]),
|
|
2474
|
+
}, [(X = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : X.httpRequests]), R(() => {
|
|
2475
|
+
S();
|
|
2476
|
+
}, [e.builderContextSignal.rootState]), R(() => {
|
|
2531
2477
|
e.data && n(e.data);
|
|
2532
|
-
}, [e.data]),
|
|
2478
|
+
}, [e.data]), R(() => {
|
|
2533
2479
|
e.locale && n({
|
|
2534
2480
|
locale: e.locale
|
|
2535
2481
|
});
|
|
2536
|
-
}, [e.locale]),
|
|
2482
|
+
}, [e.locale]), R(() => () => {
|
|
2537
2483
|
z() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
2538
2484
|
"builder:component:stateChangeListenerActivated",
|
|
2539
|
-
|
|
2485
|
+
S
|
|
2540
2486
|
));
|
|
2541
|
-
}, []), /* @__PURE__ */ c(
|
|
2487
|
+
}, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
|
|
2542
2488
|
a,
|
|
2543
2489
|
{
|
|
2544
2490
|
ref: t,
|
|
2545
|
-
onClick: (
|
|
2546
|
-
"builder-content-id": (
|
|
2491
|
+
onClick: (g) => y(g),
|
|
2492
|
+
"builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
|
|
2547
2493
|
"builder-model": e.model,
|
|
2548
2494
|
...o(),
|
|
2549
2495
|
...e.contentWrapperProps,
|
|
2550
|
-
className:
|
|
2551
|
-
((
|
|
2496
|
+
className: Sn(
|
|
2497
|
+
((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
|
|
2552
2498
|
),
|
|
2553
2499
|
children: e.children
|
|
2554
2500
|
}
|
|
2555
2501
|
) : null });
|
|
2556
2502
|
}
|
|
2557
|
-
function
|
|
2503
|
+
function kn(e) {
|
|
2558
2504
|
const t = `
|
|
2559
2505
|
${yn({
|
|
2560
2506
|
cssCode: e.cssCode,
|
|
2561
2507
|
contentId: e.contentId
|
|
2562
2508
|
})}
|
|
2563
|
-
${
|
|
2509
|
+
${bn({
|
|
2564
2510
|
customFonts: e.customFonts
|
|
2565
2511
|
})}
|
|
2566
|
-
${
|
|
2512
|
+
${vn(e.isNestedRender)}
|
|
2567
2513
|
`.trim();
|
|
2568
|
-
return /* @__PURE__ */ c(
|
|
2514
|
+
return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
|
|
2569
2515
|
}
|
|
2570
|
-
const
|
|
2516
|
+
const Cn = ({
|
|
2571
2517
|
content: e,
|
|
2572
2518
|
data: t,
|
|
2573
2519
|
locale: n
|
|
@@ -2584,7 +2530,7 @@ const In = ({
|
|
|
2584
2530
|
locale: n
|
|
2585
2531
|
} : {}
|
|
2586
2532
|
};
|
|
2587
|
-
},
|
|
2533
|
+
}, In = ({
|
|
2588
2534
|
content: e,
|
|
2589
2535
|
data: t
|
|
2590
2536
|
}) => e ? {
|
|
@@ -2595,32 +2541,32 @@ const In = ({
|
|
|
2595
2541
|
},
|
|
2596
2542
|
meta: e == null ? void 0 : e.meta
|
|
2597
2543
|
} : void 0;
|
|
2598
|
-
function
|
|
2544
|
+
function Se(e) {
|
|
2599
2545
|
var o, a, l, r, s, d, m, u, h;
|
|
2600
|
-
const t =
|
|
2546
|
+
const t = an({
|
|
2601
2547
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2602
2548
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2603
2549
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2604
2550
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2605
2551
|
}), n = [
|
|
2606
|
-
...
|
|
2552
|
+
...be(),
|
|
2607
2553
|
...e.customComponents || []
|
|
2608
2554
|
].reduce(
|
|
2609
|
-
(
|
|
2610
|
-
...
|
|
2611
|
-
[
|
|
2555
|
+
(x, { component: w, ...y }) => ({
|
|
2556
|
+
...x,
|
|
2557
|
+
[y.name]: {
|
|
2612
2558
|
component: w,
|
|
2613
|
-
...
|
|
2559
|
+
...me(y)
|
|
2614
2560
|
}
|
|
2615
2561
|
}),
|
|
2616
2562
|
{}
|
|
2617
2563
|
), i = {
|
|
2618
|
-
content:
|
|
2564
|
+
content: In({
|
|
2619
2565
|
content: e.content,
|
|
2620
2566
|
data: e.data
|
|
2621
2567
|
}),
|
|
2622
2568
|
localState: void 0,
|
|
2623
|
-
rootState:
|
|
2569
|
+
rootState: Cn({
|
|
2624
2570
|
content: e.content,
|
|
2625
2571
|
data: e.data,
|
|
2626
2572
|
locale: e.locale
|
|
@@ -2631,12 +2577,12 @@ function ke(e) {
|
|
|
2631
2577
|
apiKey: e.apiKey,
|
|
2632
2578
|
apiVersion: e.apiVersion,
|
|
2633
2579
|
componentInfos: [
|
|
2634
|
-
...
|
|
2580
|
+
...be(),
|
|
2635
2581
|
...e.customComponents || []
|
|
2636
2582
|
].reduce(
|
|
2637
|
-
(
|
|
2638
|
-
...
|
|
2639
|
-
[
|
|
2583
|
+
(x, { component: w, ...y }) => ({
|
|
2584
|
+
...x,
|
|
2585
|
+
[y.name]: me(y)
|
|
2640
2586
|
}),
|
|
2641
2587
|
{}
|
|
2642
2588
|
),
|
|
@@ -2645,7 +2591,7 @@ function ke(e) {
|
|
|
2645
2591
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2646
2592
|
};
|
|
2647
2593
|
return /* @__PURE__ */ P(
|
|
2648
|
-
|
|
2594
|
+
xn,
|
|
2649
2595
|
{
|
|
2650
2596
|
content: e.content,
|
|
2651
2597
|
data: e.data,
|
|
@@ -2662,14 +2608,14 @@ function ke(e) {
|
|
|
2662
2608
|
trustedHosts: e.trustedHosts,
|
|
2663
2609
|
children: [
|
|
2664
2610
|
e.isSsrAbTest ? /* @__PURE__ */ c(
|
|
2665
|
-
|
|
2611
|
+
ne,
|
|
2666
2612
|
{
|
|
2667
2613
|
id: "builderio-variant-visibility",
|
|
2668
2614
|
scriptStr: t
|
|
2669
2615
|
}
|
|
2670
2616
|
) : null,
|
|
2671
2617
|
/* @__PURE__ */ c(
|
|
2672
|
-
|
|
2618
|
+
kn,
|
|
2673
2619
|
{
|
|
2674
2620
|
isNestedRender: e.isNestedRender,
|
|
2675
2621
|
contentId: (l = i.content) == null ? void 0 : l.id,
|
|
@@ -2678,7 +2624,7 @@ function ke(e) {
|
|
|
2678
2624
|
}
|
|
2679
2625
|
),
|
|
2680
2626
|
/* @__PURE__ */ c(
|
|
2681
|
-
|
|
2627
|
+
ce,
|
|
2682
2628
|
{
|
|
2683
2629
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2684
2630
|
context: i,
|
|
@@ -2690,22 +2636,22 @@ function ke(e) {
|
|
|
2690
2636
|
}
|
|
2691
2637
|
);
|
|
2692
2638
|
}
|
|
2693
|
-
function
|
|
2639
|
+
function wn(e) {
|
|
2694
2640
|
var a;
|
|
2695
|
-
const t =
|
|
2641
|
+
const t = en({
|
|
2696
2642
|
canTrack: q(e.canTrack),
|
|
2697
2643
|
content: e.content
|
|
2698
2644
|
}), n = function() {
|
|
2699
2645
|
var r;
|
|
2700
|
-
return
|
|
2701
|
-
|
|
2646
|
+
return on(
|
|
2647
|
+
_(e.content).map((s) => ({
|
|
2702
2648
|
id: s.testVariationId,
|
|
2703
2649
|
testRatio: s.testRatio
|
|
2704
2650
|
})),
|
|
2705
2651
|
((r = e.content) == null ? void 0 : r.id) || ""
|
|
2706
2652
|
);
|
|
2707
2653
|
}, i = function() {
|
|
2708
|
-
return
|
|
2654
|
+
return _(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
|
|
2709
2655
|
}, o = function() {
|
|
2710
2656
|
var r;
|
|
2711
2657
|
return t ? {
|
|
@@ -2716,31 +2662,31 @@ function Tn(e) {
|
|
|
2716
2662
|
canTrack: q(e.canTrack)
|
|
2717
2663
|
});
|
|
2718
2664
|
};
|
|
2719
|
-
return /* @__PURE__ */ P(
|
|
2720
|
-
!e.isNestedRender &&
|
|
2721
|
-
|
|
2665
|
+
return /* @__PURE__ */ P(I, { children: [
|
|
2666
|
+
!e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ c(
|
|
2667
|
+
ne,
|
|
2722
2668
|
{
|
|
2723
2669
|
id: "builderio-init-variants-fns",
|
|
2724
|
-
scriptStr:
|
|
2670
|
+
scriptStr: nn()
|
|
2725
2671
|
}
|
|
2726
2672
|
) : null,
|
|
2727
|
-
t ? /* @__PURE__ */ P(
|
|
2673
|
+
t ? /* @__PURE__ */ P(I, { children: [
|
|
2728
2674
|
/* @__PURE__ */ c(
|
|
2729
|
-
|
|
2675
|
+
Q,
|
|
2730
2676
|
{
|
|
2731
2677
|
id: "builderio-variants",
|
|
2732
2678
|
styles: i()
|
|
2733
2679
|
}
|
|
2734
2680
|
),
|
|
2735
2681
|
/* @__PURE__ */ c(
|
|
2736
|
-
|
|
2682
|
+
ne,
|
|
2737
2683
|
{
|
|
2738
2684
|
id: "builderio-variants-visibility",
|
|
2739
2685
|
scriptStr: n()
|
|
2740
2686
|
}
|
|
2741
2687
|
),
|
|
2742
|
-
(a =
|
|
2743
|
-
|
|
2688
|
+
(a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ c(
|
|
2689
|
+
Se,
|
|
2744
2690
|
{
|
|
2745
2691
|
isNestedRender: e.isNestedRender,
|
|
2746
2692
|
content: l,
|
|
@@ -2766,7 +2712,7 @@ function Tn(e) {
|
|
|
2766
2712
|
))
|
|
2767
2713
|
] }) : null,
|
|
2768
2714
|
/* @__PURE__ */ c(
|
|
2769
|
-
|
|
2715
|
+
Se,
|
|
2770
2716
|
{
|
|
2771
2717
|
isNestedRender: e.isNestedRender,
|
|
2772
2718
|
content: o(),
|
|
@@ -2791,13 +2737,13 @@ function Tn(e) {
|
|
|
2791
2737
|
)
|
|
2792
2738
|
] });
|
|
2793
2739
|
}
|
|
2794
|
-
const
|
|
2740
|
+
const Tn = async ({
|
|
2795
2741
|
builderContextValue: e,
|
|
2796
2742
|
symbol: t
|
|
2797
2743
|
}) => {
|
|
2798
2744
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2799
2745
|
(e != null && e.apiKey))
|
|
2800
|
-
return
|
|
2746
|
+
return xe({
|
|
2801
2747
|
model: t.model,
|
|
2802
2748
|
apiKey: e.apiKey,
|
|
2803
2749
|
apiVersion: e.apiVersion,
|
|
@@ -2810,7 +2756,7 @@ const Rn = async ({
|
|
|
2810
2756
|
J.error("Could not fetch symbol content: ", n);
|
|
2811
2757
|
});
|
|
2812
2758
|
};
|
|
2813
|
-
async function
|
|
2759
|
+
async function Rn(e) {
|
|
2814
2760
|
var a, l, r, s, d;
|
|
2815
2761
|
const t = function() {
|
|
2816
2762
|
return "div";
|
|
@@ -2824,12 +2770,12 @@ async function Pn(e) {
|
|
|
2824
2770
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2825
2771
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2826
2772
|
].filter(Boolean).join(" ");
|
|
2827
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2773
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
|
|
2828
2774
|
symbol: e.symbol,
|
|
2829
2775
|
builderContextValue: e.builderContext
|
|
2830
2776
|
});
|
|
2831
2777
|
return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
|
|
2832
|
-
|
|
2778
|
+
wn,
|
|
2833
2779
|
{
|
|
2834
2780
|
isNestedRender: !0,
|
|
2835
2781
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2854,15 +2800,15 @@ async function Pn(e) {
|
|
|
2854
2800
|
) });
|
|
2855
2801
|
}
|
|
2856
2802
|
export {
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2803
|
+
ce as Blocks,
|
|
2804
|
+
rn as BuilderContext,
|
|
2805
|
+
Ge as Button,
|
|
2806
|
+
wt as Columns,
|
|
2807
|
+
wn as Content,
|
|
2808
|
+
Tt as Fragment,
|
|
2863
2809
|
Et as Image,
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2810
|
+
Bt as Section,
|
|
2811
|
+
Rn as Symbol,
|
|
2812
|
+
Ot as Text,
|
|
2813
|
+
Qt as Video
|
|
2868
2814
|
};
|