@builder.io/sdk-react-nextjs 0.14.30-0 → 0.15.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 +508 -428
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +3 -3
- package/lib/browser/init.mjs +4 -4
- package/lib/browser/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
- package/lib/browser/{server-entry-5cac64f5.js → server-entry-98a38828.js} +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 +950 -870
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +3 -3
- package/lib/edge/init.mjs +4 -4
- package/lib/edge/{server-entry-c9d4cfc0.cjs → server-entry-5ba46495.cjs} +1 -1
- package/lib/edge/{server-entry-5cac64f5.js → server-entry-98a38828.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +504 -424
- 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-591c4640.cjs → node-runtime-5abae854.cjs} +4 -4
- package/lib/node/{node-runtime-8d503570.js → node-runtime-f2f9d7b3.js} +13 -13
- package/lib/node/{server-entry-1c6e06e6.cjs → server-entry-8f87e771.cjs} +1 -1
- package/lib/node/{server-entry-00baa89f.js → server-entry-9e9936de.js} +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/blocks/form/select/select.d.ts +1 -0
- package/types/cjs/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/{esm/blocks → cjs/blocks/form}/textarea/textarea.d.ts +1 -0
- package/types/cjs/components/block/block.helpers.d.ts +8 -8
- package/types/cjs/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/cjs/constants/sdk-name.d.ts +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/types/components.d.ts +31 -0
- package/types/esm/blocks/form/select/select.d.ts +1 -0
- package/types/esm/blocks/form/textarea/component-info.d.ts +2 -0
- package/types/{cjs/blocks → esm/blocks/form}/textarea/textarea.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +8 -8
- package/types/esm/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/esm/constants/sdk-name.d.ts +1 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/types/components.d.ts +31 -0
- package/types/cjs/blocks/form/component-info.d.ts +0 -2
- package/types/cjs/blocks/form/form.d.ts +0 -33
- package/types/cjs/blocks/input/component-info.d.ts +0 -2
- package/types/cjs/blocks/input/input.d.ts +0 -15
- package/types/cjs/blocks/submit-button/component-info.d.ts +0 -2
- package/types/cjs/blocks/submit-button/submit-button.d.ts +0 -10
- package/types/cjs/blocks/textarea/component-info.d.ts +0 -2
- package/types/cjs/functions/get-react-native-block-styles.d.ts +0 -15
- package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/cjs/functions/sanitize-rn-allowed-css.d.ts +0 -8
- package/types/esm/blocks/form/component-info.d.ts +0 -2
- package/types/esm/blocks/form/form.d.ts +0 -33
- package/types/esm/blocks/input/component-info.d.ts +0 -2
- package/types/esm/blocks/input/input.d.ts +0 -15
- package/types/esm/blocks/submit-button/component-info.d.ts +0 -2
- package/types/esm/blocks/submit-button/submit-button.d.ts +0 -10
- package/types/esm/blocks/textarea/component-info.d.ts +0 -2
- package/types/esm/functions/get-react-native-block-styles.d.ts +0 -15
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/esm/functions/sanitize-rn-allowed-css.d.ts +0 -8
- /package/types/cjs/blocks/{textarea → form/textarea}/index.d.ts +0 -0
- /package/types/esm/blocks/{textarea → form/textarea}/index.d.ts +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as c, Fragment as C, jsxs as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { useRef as
|
|
9
|
-
import { useRouter as
|
|
2
|
+
var Ae = Object.defineProperty;
|
|
3
|
+
var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var te = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as c, Fragment as C, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as _, checkIsDefined as K, logger as J, isBrowser as z, fastClone as oe, isEditing as V, init as $e, getDefaultCanTrack as q, _track as me, isPreviewing as Le, createEditorListener as Fe, fetch as je, registerInsertMenu as De, setupBrowserForEditing as Oe, createRegisterComponentMessage as _e, fetchOneEntry as Se, serializeComponentInfo as fe, handleABTestingSync as He } from "./server-entry-9e9936de.js";
|
|
7
|
+
import { getFunctionArguments as Ue, runInNode as Me, parseCode as Ke, getBuilderGlobals as ze, set as qe } from "./node-runtime-f2f9d7b3.js";
|
|
8
|
+
import { useRef as ae, useState as N, useEffect as T, createContext as Ye } from "react";
|
|
9
|
+
import { useRouter as Je } from "next/navigation";
|
|
10
10
|
import "lru-cache";
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */ c(C, { children:
|
|
11
|
+
const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
|
|
12
|
+
function re(e) {
|
|
13
|
+
return /* @__PURE__ */ c(C, { children: Ge(e.TagName) ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(C, { 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
|
-
const
|
|
16
|
-
switch (
|
|
15
|
+
const D = () => {
|
|
16
|
+
switch (_) {
|
|
17
17
|
case "react":
|
|
18
18
|
case "reactNative":
|
|
19
19
|
case "rsc":
|
|
@@ -26,11 +26,11 @@ const O = () => {
|
|
|
26
26
|
return "class";
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function Xe(e) {
|
|
30
30
|
function t() {
|
|
31
31
|
return {
|
|
32
32
|
...e.attributes,
|
|
33
|
-
[
|
|
33
|
+
[D()]: `${e.link ? "" : "builder-button"} ${e.attributes[D()] || ""}`,
|
|
34
34
|
...e.link ? {
|
|
35
35
|
href: e.link,
|
|
36
36
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -41,7 +41,7 @@ function Ge(e) {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return /* @__PURE__ */ c(
|
|
44
|
-
|
|
44
|
+
re,
|
|
45
45
|
{
|
|
46
46
|
attributes: t(),
|
|
47
47
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -50,14 +50,14 @@ function Ge(e) {
|
|
|
50
50
|
}
|
|
51
51
|
);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ze(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 et = ({
|
|
61
61
|
code: e,
|
|
62
62
|
builder: t,
|
|
63
63
|
context: n,
|
|
@@ -66,11 +66,11 @@ const Ze = ({
|
|
|
66
66
|
rootSetState: a,
|
|
67
67
|
rootState: l
|
|
68
68
|
}) => {
|
|
69
|
-
const r =
|
|
69
|
+
const r = Ue({
|
|
70
70
|
builder: t,
|
|
71
71
|
context: n,
|
|
72
72
|
event: i,
|
|
73
|
-
state:
|
|
73
|
+
state: Ce({
|
|
74
74
|
rootState: l,
|
|
75
75
|
localState: o,
|
|
76
76
|
rootSetState: a
|
|
@@ -78,7 +78,7 @@ const Ze = ({
|
|
|
78
78
|
});
|
|
79
79
|
return new Function(...r.map(([s]) => s), e)(...r.map(([, s]) => s));
|
|
80
80
|
};
|
|
81
|
-
function
|
|
81
|
+
function Ce({
|
|
82
82
|
rootState: e,
|
|
83
83
|
localState: t,
|
|
84
84
|
rootSetState: n
|
|
@@ -88,7 +88,7 @@ function ke({
|
|
|
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 ? Ce({
|
|
92
92
|
rootState: a,
|
|
93
93
|
localState: void 0,
|
|
94
94
|
rootSetState: n ? (l) => {
|
|
@@ -103,17 +103,17 @@ function ke({
|
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function tt() {
|
|
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 nt = () => {
|
|
111
111
|
var i;
|
|
112
|
-
if (!
|
|
112
|
+
if (!tt())
|
|
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
|
+
}, it = (e) => z() || nt() ? et(e) : Me(e), W = class W {
|
|
117
117
|
static getCacheKey(t) {
|
|
118
118
|
return JSON.stringify({
|
|
119
119
|
...t,
|
|
@@ -123,17 +123,17 @@ const tt = () => {
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
static getCachedValue(t) {
|
|
126
|
-
return
|
|
126
|
+
return W.cache.get(t);
|
|
127
127
|
}
|
|
128
128
|
static setCachedValue(t, n) {
|
|
129
|
-
|
|
129
|
+
W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
|
|
130
130
|
value: n
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
-
|
|
135
|
-
let L =
|
|
136
|
-
function
|
|
134
|
+
te(W, "cacheLimit", 20), te(W, "cache", /* @__PURE__ */ new Map());
|
|
135
|
+
let L = W;
|
|
136
|
+
function O({
|
|
137
137
|
code: e,
|
|
138
138
|
context: t,
|
|
139
139
|
localState: n,
|
|
@@ -146,10 +146,10 @@ function _({
|
|
|
146
146
|
if (e === "")
|
|
147
147
|
return;
|
|
148
148
|
const s = {
|
|
149
|
-
code:
|
|
149
|
+
code: Ke(e, {
|
|
150
150
|
isExpression: l
|
|
151
151
|
}),
|
|
152
|
-
builder:
|
|
152
|
+
builder: ze(),
|
|
153
153
|
context: t,
|
|
154
154
|
event: a,
|
|
155
155
|
rootSetState: o,
|
|
@@ -162,7 +162,7 @@ function _({
|
|
|
162
162
|
return m.value;
|
|
163
163
|
}
|
|
164
164
|
try {
|
|
165
|
-
const d =
|
|
165
|
+
const d = it(s);
|
|
166
166
|
if (r) {
|
|
167
167
|
const m = L.getCacheKey(s);
|
|
168
168
|
L.setCachedValue(m, d);
|
|
@@ -175,7 +175,7 @@ function _({
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
const
|
|
178
|
+
const ot = ({
|
|
179
179
|
block: e,
|
|
180
180
|
context: t,
|
|
181
181
|
localState: n,
|
|
@@ -184,7 +184,7 @@ const it = ({
|
|
|
184
184
|
}) => {
|
|
185
185
|
if (!e.bindings)
|
|
186
186
|
return e;
|
|
187
|
-
const a =
|
|
187
|
+
const a = oe(e), l = {
|
|
188
188
|
...a,
|
|
189
189
|
properties: {
|
|
190
190
|
...a.properties
|
|
@@ -194,7 +194,7 @@ const it = ({
|
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
for (const r in e.bindings) {
|
|
197
|
-
const s = e.bindings[r], d =
|
|
197
|
+
const s = e.bindings[r], d = O({
|
|
198
198
|
code: s,
|
|
199
199
|
localState: n,
|
|
200
200
|
rootState: i,
|
|
@@ -202,7 +202,7 @@ const it = ({
|
|
|
202
202
|
context: t,
|
|
203
203
|
enableCache: !0
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
qe(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 ? ot({
|
|
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 le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ie = (e) => Object.entries(e).map(([n, i]) => {
|
|
227
227
|
if (typeof i == "string")
|
|
228
|
-
return `${
|
|
229
|
-
}).filter(K),
|
|
228
|
+
return `${le(n)}: ${i};`;
|
|
229
|
+
}).filter(K), at = (e) => Ie(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
|
+
${at(n)}
|
|
237
237
|
}`;
|
|
238
238
|
return e ? `${e} {
|
|
239
239
|
${i}
|
|
240
240
|
}` : i;
|
|
241
241
|
};
|
|
242
|
-
function
|
|
242
|
+
function rt({
|
|
243
243
|
style: e
|
|
244
244
|
}) {
|
|
245
245
|
return e;
|
|
246
246
|
}
|
|
247
|
-
const
|
|
247
|
+
const lt = ({
|
|
248
248
|
block: e,
|
|
249
249
|
context: t
|
|
250
|
-
}) =>
|
|
250
|
+
}) => we(rt({
|
|
251
251
|
style: e.style || {},
|
|
252
252
|
context: t,
|
|
253
253
|
block: e
|
|
254
254
|
}));
|
|
255
|
-
function
|
|
256
|
-
switch (
|
|
255
|
+
function we(e) {
|
|
256
|
+
switch (_) {
|
|
257
257
|
case "svelte":
|
|
258
258
|
case "vue":
|
|
259
259
|
case "solid":
|
|
260
260
|
case "angular":
|
|
261
|
-
return
|
|
261
|
+
return Ie(e).join(" ");
|
|
262
262
|
case "qwik":
|
|
263
263
|
case "reactNative":
|
|
264
264
|
case "react":
|
|
@@ -266,7 +266,7 @@ function Ie(e) {
|
|
|
266
266
|
return e;
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
const
|
|
269
|
+
const ct = ({
|
|
270
270
|
block: e,
|
|
271
271
|
context: t,
|
|
272
272
|
registeredComponents: n
|
|
@@ -288,7 +288,7 @@ const lt = ({
|
|
|
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
|
+
}, st = ({
|
|
292
292
|
block: e,
|
|
293
293
|
context: t
|
|
294
294
|
}) => {
|
|
@@ -298,7 +298,7 @@ const lt = ({
|
|
|
298
298
|
} = e;
|
|
299
299
|
if (!(n != null && n.collection))
|
|
300
300
|
return;
|
|
301
|
-
const o =
|
|
301
|
+
const o = O({
|
|
302
302
|
code: n.collection,
|
|
303
303
|
localState: t.localState,
|
|
304
304
|
rootState: t.rootState,
|
|
@@ -322,15 +322,23 @@ const lt = ({
|
|
|
322
322
|
},
|
|
323
323
|
block: i
|
|
324
324
|
}));
|
|
325
|
-
},
|
|
325
|
+
}, Q = (e) => ({
|
|
326
|
+
// once we bump to a major version, toggle this to `false`.
|
|
327
|
+
builderBlock: !0,
|
|
328
|
+
// once we bump to a major version, toggle this to `false`.
|
|
329
|
+
builderContext: !0,
|
|
330
|
+
builderComponents: !1,
|
|
331
|
+
builderLinkComponent: !1,
|
|
332
|
+
...e
|
|
333
|
+
}), dt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderLinkComponent ? {
|
|
326
334
|
builderLinkComponent: t
|
|
327
|
-
} : {},
|
|
335
|
+
} : {} : {}, ut = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderComponents ? {
|
|
328
336
|
builderComponents: t
|
|
329
|
-
} : {},
|
|
337
|
+
} : {} : {}, mt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderBlock ? {
|
|
330
338
|
builderBlock: t
|
|
331
|
-
} : {},
|
|
339
|
+
} : {} : {}, ft = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderContext ? {
|
|
332
340
|
builderContext: t
|
|
333
|
-
} : {},
|
|
341
|
+
} : {} : {}, Te = {
|
|
334
342
|
small: {
|
|
335
343
|
min: 320,
|
|
336
344
|
default: 321,
|
|
@@ -346,11 +354,11 @@ const lt = ({
|
|
|
346
354
|
default: 991,
|
|
347
355
|
max: 1200
|
|
348
356
|
}
|
|
349
|
-
},
|
|
357
|
+
}, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
|
|
350
358
|
small: e,
|
|
351
359
|
medium: t
|
|
352
360
|
}) => {
|
|
353
|
-
const n =
|
|
361
|
+
const n = oe(Te);
|
|
354
362
|
if (!e || !t)
|
|
355
363
|
return n;
|
|
356
364
|
const i = Math.floor(e / 2);
|
|
@@ -373,7 +381,7 @@ const lt = ({
|
|
|
373
381
|
default: a + 1
|
|
374
382
|
}, n;
|
|
375
383
|
};
|
|
376
|
-
function
|
|
384
|
+
function G(e) {
|
|
377
385
|
return /* @__PURE__ */ c(
|
|
378
386
|
"style",
|
|
379
387
|
{
|
|
@@ -382,7 +390,7 @@ function Q(e) {
|
|
|
382
390
|
}
|
|
383
391
|
);
|
|
384
392
|
}
|
|
385
|
-
function
|
|
393
|
+
function ht(e) {
|
|
386
394
|
const t = function() {
|
|
387
395
|
const o = Y({
|
|
388
396
|
block: e.block,
|
|
@@ -394,7 +402,7 @@ function ft(e) {
|
|
|
394
402
|
});
|
|
395
403
|
return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
|
|
396
404
|
}, n = function() {
|
|
397
|
-
var x,
|
|
405
|
+
var x, g, I;
|
|
398
406
|
const o = Y({
|
|
399
407
|
block: e.block,
|
|
400
408
|
localState: e.context.localState,
|
|
@@ -402,7 +410,7 @@ function ft(e) {
|
|
|
402
410
|
rootSetState: e.context.rootSetState,
|
|
403
411
|
context: e.context.context,
|
|
404
412
|
shouldEvaluateBindings: !0
|
|
405
|
-
}), a = o.responsiveStyles, l = e.context.content, r =
|
|
413
|
+
}), a = o.responsiveStyles, l = e.context.content, r = Re(
|
|
406
414
|
((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
|
|
407
415
|
), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
|
|
408
416
|
if (!u)
|
|
@@ -410,48 +418,48 @@ function ft(e) {
|
|
|
410
418
|
const h = s ? U({
|
|
411
419
|
className: u,
|
|
412
420
|
styles: s
|
|
413
|
-
}) : "",
|
|
421
|
+
}) : "", k = d ? U({
|
|
414
422
|
className: u,
|
|
415
423
|
styles: d,
|
|
416
|
-
mediaQuery:
|
|
424
|
+
mediaQuery: he(
|
|
417
425
|
"medium",
|
|
418
426
|
r
|
|
419
427
|
)
|
|
420
428
|
}) : "", w = m ? U({
|
|
421
429
|
className: u,
|
|
422
430
|
styles: m,
|
|
423
|
-
mediaQuery:
|
|
431
|
+
mediaQuery: he(
|
|
424
432
|
"small",
|
|
425
433
|
r
|
|
426
434
|
)
|
|
427
|
-
}) : "",
|
|
428
|
-
let
|
|
429
|
-
if (
|
|
430
|
-
const R = ((I = (
|
|
431
|
-
|
|
435
|
+
}) : "", p = o.animations && o.animations.find((R) => R.trigger === "hover");
|
|
436
|
+
let A = "";
|
|
437
|
+
if (p) {
|
|
438
|
+
const R = ((I = (g = p.steps) == null ? void 0 : g[1]) == null ? void 0 : I.styles) || {};
|
|
439
|
+
A = U({
|
|
432
440
|
className: `${u}:hover`,
|
|
433
441
|
styles: {
|
|
434
442
|
...R,
|
|
435
|
-
transition: `all ${
|
|
436
|
-
|
|
443
|
+
transition: `all ${p.duration}s ${le(
|
|
444
|
+
p.easing
|
|
437
445
|
)}`,
|
|
438
|
-
transitionDelay:
|
|
446
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
439
447
|
}
|
|
440
448
|
}) || "";
|
|
441
449
|
}
|
|
442
450
|
return [
|
|
443
451
|
h,
|
|
444
|
-
|
|
452
|
+
k,
|
|
445
453
|
w,
|
|
446
|
-
|
|
454
|
+
A
|
|
447
455
|
].join(" ");
|
|
448
456
|
};
|
|
449
|
-
return /* @__PURE__ */ c(C, { children: n() && t() ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
|
|
457
|
+
return /* @__PURE__ */ c(C, { children: n() && t() ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(G, { id: "builderio-block", styles: n() }) }) : null });
|
|
450
458
|
}
|
|
451
|
-
function
|
|
459
|
+
function bt(e) {
|
|
452
460
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
453
461
|
}
|
|
454
|
-
const gt = (e) => `on${
|
|
462
|
+
const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => O({
|
|
455
463
|
code: e,
|
|
456
464
|
context: t.context,
|
|
457
465
|
localState: t.localState,
|
|
@@ -461,7 +469,7 @@ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => _({
|
|
|
461
469
|
isExpression: !1,
|
|
462
470
|
enableCache: !0
|
|
463
471
|
});
|
|
464
|
-
function
|
|
472
|
+
function Pe(e) {
|
|
465
473
|
var i;
|
|
466
474
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
467
475
|
for (const o in n) {
|
|
@@ -470,7 +478,7 @@ function Re(e) {
|
|
|
470
478
|
const a = n[o];
|
|
471
479
|
let l = gt(o);
|
|
472
480
|
if (e.stripPrefix)
|
|
473
|
-
switch (
|
|
481
|
+
switch (_) {
|
|
474
482
|
case "vue":
|
|
475
483
|
l = l.replace("v-on:", "");
|
|
476
484
|
break;
|
|
@@ -478,7 +486,7 @@ function Re(e) {
|
|
|
478
486
|
l = l.replace("on:", "");
|
|
479
487
|
break;
|
|
480
488
|
}
|
|
481
|
-
t[l] =
|
|
489
|
+
t[l] = pt(a, e);
|
|
482
490
|
}
|
|
483
491
|
return t;
|
|
484
492
|
}
|
|
@@ -487,23 +495,23 @@ function yt({
|
|
|
487
495
|
}) {
|
|
488
496
|
return e;
|
|
489
497
|
}
|
|
490
|
-
const
|
|
498
|
+
const vt = (e) => ({
|
|
491
499
|
href: e.href
|
|
492
500
|
});
|
|
493
|
-
function
|
|
501
|
+
function ce({
|
|
494
502
|
block: e,
|
|
495
503
|
context: t
|
|
496
504
|
}) {
|
|
497
505
|
var i;
|
|
498
506
|
const n = {
|
|
499
|
-
...
|
|
507
|
+
...vt(e),
|
|
500
508
|
...e.properties,
|
|
501
509
|
"builder-id": e.id,
|
|
502
|
-
style:
|
|
510
|
+
style: lt({
|
|
503
511
|
block: e,
|
|
504
512
|
context: t
|
|
505
513
|
}),
|
|
506
|
-
[
|
|
514
|
+
[D()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
507
515
|
};
|
|
508
516
|
return yt({
|
|
509
517
|
properties: n,
|
|
@@ -511,16 +519,16 @@ function le({
|
|
|
511
519
|
block: e
|
|
512
520
|
});
|
|
513
521
|
}
|
|
514
|
-
function
|
|
522
|
+
function xt(e) {
|
|
515
523
|
return /* @__PURE__ */ c(
|
|
516
|
-
|
|
524
|
+
re,
|
|
517
525
|
{
|
|
518
526
|
TagName: e.Wrapper,
|
|
519
|
-
attributes:
|
|
527
|
+
attributes: ce({
|
|
520
528
|
block: e.block,
|
|
521
529
|
context: e.context
|
|
522
530
|
}),
|
|
523
|
-
actionAttributes:
|
|
531
|
+
actionAttributes: Pe({
|
|
524
532
|
block: e.block,
|
|
525
533
|
rootState: e.context.rootState,
|
|
526
534
|
rootSetState: e.context.rootSetState,
|
|
@@ -532,14 +540,14 @@ function pt(e) {
|
|
|
532
540
|
}
|
|
533
541
|
);
|
|
534
542
|
}
|
|
535
|
-
function
|
|
543
|
+
function kt(e) {
|
|
536
544
|
function t() {
|
|
537
545
|
return e.includeBlockProps ? {
|
|
538
|
-
...
|
|
546
|
+
...ce({
|
|
539
547
|
block: e.block,
|
|
540
548
|
context: e.context
|
|
541
549
|
}),
|
|
542
|
-
...
|
|
550
|
+
...Pe({
|
|
543
551
|
block: e.block,
|
|
544
552
|
rootState: e.context.rootState,
|
|
545
553
|
rootSetState: e.context.rootSetState,
|
|
@@ -550,7 +558,7 @@ function xt(e) {
|
|
|
550
558
|
}
|
|
551
559
|
return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
552
560
|
}
|
|
553
|
-
const
|
|
561
|
+
const St = ({
|
|
554
562
|
componentOptions: e,
|
|
555
563
|
builderBlock: t,
|
|
556
564
|
context: n,
|
|
@@ -566,7 +574,7 @@ const vt = ({
|
|
|
566
574
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
567
575
|
*/
|
|
568
576
|
...o ? {
|
|
569
|
-
attributes:
|
|
577
|
+
attributes: ce({
|
|
570
578
|
block: t,
|
|
571
579
|
context: l
|
|
572
580
|
})
|
|
@@ -580,13 +588,13 @@ const vt = ({
|
|
|
580
588
|
includeBlockProps: o
|
|
581
589
|
} : r;
|
|
582
590
|
};
|
|
583
|
-
function
|
|
591
|
+
function be(e) {
|
|
584
592
|
var n;
|
|
585
|
-
const t = e.isInteractive ?
|
|
593
|
+
const t = e.isInteractive ? kt : e.componentRef;
|
|
586
594
|
return /* @__PURE__ */ c(C, { children: e.componentRef ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
|
|
587
595
|
t,
|
|
588
596
|
{
|
|
589
|
-
...
|
|
597
|
+
...St({
|
|
590
598
|
componentOptions: e.componentOptions,
|
|
591
599
|
builderBlock: e.builderBlock,
|
|
592
600
|
context: e.context,
|
|
@@ -597,7 +605,7 @@ function he(e) {
|
|
|
597
605
|
contextValue: e.context
|
|
598
606
|
}),
|
|
599
607
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
|
|
600
|
-
|
|
608
|
+
X,
|
|
601
609
|
{
|
|
602
610
|
block: i,
|
|
603
611
|
context: e.context,
|
|
@@ -609,10 +617,10 @@ function he(e) {
|
|
|
609
617
|
}
|
|
610
618
|
) }) : null });
|
|
611
619
|
}
|
|
612
|
-
function
|
|
620
|
+
function Ct(e) {
|
|
613
621
|
const t = e.repeatContext;
|
|
614
622
|
return /* @__PURE__ */ c(
|
|
615
|
-
|
|
623
|
+
X,
|
|
616
624
|
{
|
|
617
625
|
block: e.block,
|
|
618
626
|
context: t,
|
|
@@ -621,16 +629,16 @@ function kt(e) {
|
|
|
621
629
|
}
|
|
622
630
|
);
|
|
623
631
|
}
|
|
624
|
-
function
|
|
632
|
+
function X(e) {
|
|
625
633
|
var s, d, m;
|
|
626
634
|
const t = function() {
|
|
627
|
-
return
|
|
635
|
+
return ct({
|
|
628
636
|
block: e.block,
|
|
629
637
|
context: e.context,
|
|
630
638
|
registeredComponents: e.registeredComponents
|
|
631
639
|
});
|
|
632
640
|
}, n = function() {
|
|
633
|
-
return
|
|
641
|
+
return st({
|
|
634
642
|
block: e.block,
|
|
635
643
|
context: e.context
|
|
636
644
|
});
|
|
@@ -645,28 +653,28 @@ function G(e) {
|
|
|
645
653
|
shouldEvaluateBindings: !0
|
|
646
654
|
});
|
|
647
655
|
}, o = function() {
|
|
648
|
-
var
|
|
649
|
-
return e.block.tagName === "a" || ((
|
|
656
|
+
var k;
|
|
657
|
+
return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
650
658
|
}, a = function() {
|
|
651
|
-
var w,
|
|
659
|
+
var w, p;
|
|
652
660
|
if ((w = e.block.repeat) != null && w.collection)
|
|
653
|
-
return !!((
|
|
661
|
+
return !!((p = n()) != null && p.length);
|
|
654
662
|
const h = "hide" in i() ? i().hide : !1;
|
|
655
663
|
return ("show" in i() ? i().show : !0) && !h;
|
|
656
664
|
}, l = function() {
|
|
657
|
-
var
|
|
658
|
-
return !((
|
|
665
|
+
var k, w;
|
|
666
|
+
return !((k = t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
|
|
659
667
|
}, r = function() {
|
|
660
|
-
var h,
|
|
668
|
+
var h, k, w, p;
|
|
661
669
|
return {
|
|
662
670
|
blockChildren: (h = i().children) != null ? h : [],
|
|
663
|
-
componentRef: (
|
|
671
|
+
componentRef: (k = t()) == null ? void 0 : k.component,
|
|
664
672
|
componentOptions: {
|
|
665
|
-
...
|
|
666
|
-
...
|
|
667
|
-
...
|
|
668
|
-
...
|
|
669
|
-
...
|
|
673
|
+
...Ze(i()),
|
|
674
|
+
...mt(t(), i()),
|
|
675
|
+
...ft(t(), e.context),
|
|
676
|
+
...dt(t(), e.linkComponent),
|
|
677
|
+
...ut(
|
|
670
678
|
t(),
|
|
671
679
|
e.registeredComponents
|
|
672
680
|
)
|
|
@@ -676,13 +684,13 @@ function G(e) {
|
|
|
676
684
|
registeredComponents: e.registeredComponents,
|
|
677
685
|
builderBlock: i(),
|
|
678
686
|
includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
|
|
679
|
-
isInteractive: !((
|
|
687
|
+
isInteractive: !((p = t()) != null && p.isRSC)
|
|
680
688
|
};
|
|
681
689
|
};
|
|
682
|
-
return /* @__PURE__ */ c(C, { children: a() ? /* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */ c(
|
|
690
|
+
return /* @__PURE__ */ c(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
|
|
691
|
+
/* @__PURE__ */ c(ht, { block: e.block, context: e.context }),
|
|
684
692
|
(s = t()) != null && s.noWrap ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
|
|
685
|
-
|
|
693
|
+
be,
|
|
686
694
|
{
|
|
687
695
|
componentRef: r().componentRef,
|
|
688
696
|
componentOptions: r().componentOptions,
|
|
@@ -695,7 +703,7 @@ function G(e) {
|
|
|
695
703
|
isInteractive: r().isInteractive
|
|
696
704
|
}
|
|
697
705
|
) }) : /* @__PURE__ */ c(C, { children: n() ? /* @__PURE__ */ c(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
|
|
698
|
-
|
|
706
|
+
Ct,
|
|
699
707
|
{
|
|
700
708
|
repeatContext: u.context,
|
|
701
709
|
block: u.block,
|
|
@@ -703,15 +711,15 @@ function G(e) {
|
|
|
703
711
|
linkComponent: e.linkComponent
|
|
704
712
|
},
|
|
705
713
|
h
|
|
706
|
-
)) }) : /* @__PURE__ */
|
|
707
|
-
|
|
714
|
+
)) }) : /* @__PURE__ */ P(
|
|
715
|
+
xt,
|
|
708
716
|
{
|
|
709
717
|
Wrapper: o(),
|
|
710
718
|
block: i(),
|
|
711
719
|
context: e.context,
|
|
712
720
|
children: [
|
|
713
721
|
/* @__PURE__ */ c(
|
|
714
|
-
|
|
722
|
+
be,
|
|
715
723
|
{
|
|
716
724
|
componentRef: r().componentRef,
|
|
717
725
|
componentOptions: r().componentOptions,
|
|
@@ -725,7 +733,7 @@ function G(e) {
|
|
|
725
733
|
}
|
|
726
734
|
),
|
|
727
735
|
(d = l()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
|
|
728
|
-
|
|
736
|
+
X,
|
|
729
737
|
{
|
|
730
738
|
block: u,
|
|
731
739
|
registeredComponents: e.registeredComponents,
|
|
@@ -739,14 +747,14 @@ function G(e) {
|
|
|
739
747
|
) })
|
|
740
748
|
] }) : null });
|
|
741
749
|
}
|
|
742
|
-
function
|
|
750
|
+
function It(e) {
|
|
743
751
|
function t() {
|
|
744
752
|
var o;
|
|
745
753
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
746
754
|
}
|
|
747
755
|
function n() {
|
|
748
756
|
var o, a;
|
|
749
|
-
|
|
757
|
+
V() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
750
758
|
{
|
|
751
759
|
type: "builder.clickEmptyBlocks",
|
|
752
760
|
data: {
|
|
@@ -759,7 +767,7 @@ function Ct(e) {
|
|
|
759
767
|
}
|
|
760
768
|
function i() {
|
|
761
769
|
var o, a;
|
|
762
|
-
|
|
770
|
+
V() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
763
771
|
{
|
|
764
772
|
type: "builder.hoverEmptyBlocks",
|
|
765
773
|
data: {
|
|
@@ -770,7 +778,7 @@ function Ct(e) {
|
|
|
770
778
|
"*"
|
|
771
779
|
));
|
|
772
780
|
}
|
|
773
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
774
782
|
/* @__PURE__ */ c(
|
|
775
783
|
e.BlocksWrapper,
|
|
776
784
|
{
|
|
@@ -792,10 +800,10 @@ function Ct(e) {
|
|
|
792
800
|
}` })
|
|
793
801
|
] });
|
|
794
802
|
}
|
|
795
|
-
function
|
|
803
|
+
function se(e) {
|
|
796
804
|
var t, n, i;
|
|
797
805
|
return /* @__PURE__ */ c(
|
|
798
|
-
|
|
806
|
+
It,
|
|
799
807
|
{
|
|
800
808
|
blocks: e.blocks,
|
|
801
809
|
parent: e.parent,
|
|
@@ -804,7 +812,7 @@ function ce(e) {
|
|
|
804
812
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
805
813
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
806
814
|
children: e.blocks ? /* @__PURE__ */ c(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
|
|
807
|
-
|
|
815
|
+
X,
|
|
808
816
|
{
|
|
809
817
|
block: o,
|
|
810
818
|
linkComponent: e.linkComponent,
|
|
@@ -816,27 +824,27 @@ function ce(e) {
|
|
|
816
824
|
}
|
|
817
825
|
);
|
|
818
826
|
}
|
|
819
|
-
const
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(
|
|
823
|
-
return
|
|
824
|
-
}, a = function(
|
|
827
|
+
const wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
828
|
+
function Tt(e) {
|
|
829
|
+
var p, A;
|
|
830
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(g) {
|
|
831
|
+
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
832
|
+
}, a = function(g) {
|
|
825
833
|
var I;
|
|
826
|
-
return ((I = n[
|
|
827
|
-
}, l = function(
|
|
834
|
+
return ((I = n[g]) == null ? void 0 : I.width) || 100 / n.length;
|
|
835
|
+
}, l = function(g) {
|
|
828
836
|
const I = t * (n.length - 1) / n.length;
|
|
829
|
-
return `calc(${a(
|
|
837
|
+
return `calc(${a(g)}% - ${I}px)`;
|
|
830
838
|
}, r = function({
|
|
831
|
-
stackedStyle:
|
|
839
|
+
stackedStyle: g,
|
|
832
840
|
desktopStyle: I
|
|
833
841
|
}) {
|
|
834
|
-
return i === "tablet" ?
|
|
842
|
+
return i === "tablet" ? g : I;
|
|
835
843
|
}, s = function({
|
|
836
|
-
stackedStyle:
|
|
844
|
+
stackedStyle: g,
|
|
837
845
|
desktopStyle: I
|
|
838
846
|
}) {
|
|
839
|
-
return i === "never" ? I :
|
|
847
|
+
return i === "never" ? I : g;
|
|
840
848
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
|
|
841
849
|
return {
|
|
842
850
|
"--flex-dir": d,
|
|
@@ -845,8 +853,8 @@ function wt(e) {
|
|
|
845
853
|
desktopStyle: "row"
|
|
846
854
|
})
|
|
847
855
|
};
|
|
848
|
-
}, u = function(
|
|
849
|
-
const I =
|
|
856
|
+
}, u = function(g) {
|
|
857
|
+
const I = g === 0 ? 0 : t, R = l(g), E = `${I}px`, F = "100%", j = 0;
|
|
850
858
|
return {
|
|
851
859
|
...{
|
|
852
860
|
display: "flex",
|
|
@@ -854,30 +862,30 @@ function wt(e) {
|
|
|
854
862
|
alignItems: "stretch"
|
|
855
863
|
},
|
|
856
864
|
width: R,
|
|
857
|
-
["marginLeft"]:
|
|
865
|
+
["marginLeft"]: E,
|
|
858
866
|
"--column-width-mobile": s({
|
|
859
|
-
stackedStyle:
|
|
867
|
+
stackedStyle: F,
|
|
860
868
|
desktopStyle: R
|
|
861
869
|
}),
|
|
862
870
|
"--column-margin-left-mobile": s({
|
|
863
|
-
stackedStyle:
|
|
864
|
-
desktopStyle:
|
|
871
|
+
stackedStyle: j,
|
|
872
|
+
desktopStyle: E
|
|
865
873
|
}),
|
|
866
874
|
"--column-width-tablet": r({
|
|
867
|
-
stackedStyle:
|
|
875
|
+
stackedStyle: F,
|
|
868
876
|
desktopStyle: R
|
|
869
877
|
}),
|
|
870
878
|
"--column-margin-left-tablet": r({
|
|
871
|
-
stackedStyle:
|
|
872
|
-
desktopStyle:
|
|
879
|
+
stackedStyle: j,
|
|
880
|
+
desktopStyle: E
|
|
873
881
|
})
|
|
874
882
|
};
|
|
875
|
-
}, h = function(
|
|
876
|
-
var R,
|
|
877
|
-
return
|
|
878
|
-
((
|
|
879
|
-
)[
|
|
880
|
-
},
|
|
883
|
+
}, h = function(g) {
|
|
884
|
+
var R, E;
|
|
885
|
+
return Re(
|
|
886
|
+
((E = (R = e.builderContext.content) == null ? void 0 : R.meta) == null ? void 0 : E.breakpoints) || {}
|
|
887
|
+
)[g].max;
|
|
888
|
+
}, k = function() {
|
|
881
889
|
return `
|
|
882
890
|
@media (max-width: ${h("medium")}px) {
|
|
883
891
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -903,33 +911,33 @@ function wt(e) {
|
|
|
903
911
|
}
|
|
904
912
|
},
|
|
905
913
|
`;
|
|
906
|
-
}, w = function(
|
|
914
|
+
}, w = function(g, I) {
|
|
907
915
|
return {
|
|
908
|
-
...
|
|
909
|
-
href:
|
|
916
|
+
...g.link ? {
|
|
917
|
+
href: g.link
|
|
910
918
|
} : {},
|
|
911
|
-
[
|
|
912
|
-
style:
|
|
919
|
+
[D()]: "builder-column",
|
|
920
|
+
style: we(u(I))
|
|
913
921
|
};
|
|
914
922
|
};
|
|
915
|
-
return /* @__PURE__ */
|
|
916
|
-
/* @__PURE__ */
|
|
923
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
924
|
+
/* @__PURE__ */ P(
|
|
917
925
|
"div",
|
|
918
926
|
{
|
|
919
|
-
className:
|
|
927
|
+
className: wt((p = e.builderBlock) == null ? void 0 : p.id) + " div-eeca3604",
|
|
920
928
|
style: m(),
|
|
921
929
|
children: [
|
|
922
|
-
/* @__PURE__ */ c(
|
|
923
|
-
(
|
|
924
|
-
|
|
930
|
+
/* @__PURE__ */ c(G, { id: "builderio-columns", styles: k() }),
|
|
931
|
+
(A = e.columns) == null ? void 0 : A.map((x, g) => /* @__PURE__ */ c(
|
|
932
|
+
re,
|
|
925
933
|
{
|
|
926
934
|
TagName: o(x),
|
|
927
935
|
actionAttributes: {},
|
|
928
|
-
attributes: w(x,
|
|
936
|
+
attributes: w(x, g),
|
|
929
937
|
children: /* @__PURE__ */ c(
|
|
930
|
-
|
|
938
|
+
se,
|
|
931
939
|
{
|
|
932
|
-
path: `component.options.columns.${
|
|
940
|
+
path: `component.options.columns.${g}.blocks`,
|
|
933
941
|
parent: e.builderBlock.id,
|
|
934
942
|
styleProp: {
|
|
935
943
|
flexGrow: "1"
|
|
@@ -941,7 +949,7 @@ function wt(e) {
|
|
|
941
949
|
}
|
|
942
950
|
)
|
|
943
951
|
},
|
|
944
|
-
|
|
952
|
+
g
|
|
945
953
|
))
|
|
946
954
|
]
|
|
947
955
|
}
|
|
@@ -952,17 +960,17 @@ function wt(e) {
|
|
|
952
960
|
}` })
|
|
953
961
|
] });
|
|
954
962
|
}
|
|
955
|
-
function
|
|
963
|
+
function Rt(e) {
|
|
956
964
|
return /* @__PURE__ */ c("span", { children: e.children });
|
|
957
965
|
}
|
|
958
966
|
function ge(e) {
|
|
959
967
|
return e.replace(/http(s)?:/, "");
|
|
960
968
|
}
|
|
961
|
-
function
|
|
969
|
+
function Pt(e = "", t, n) {
|
|
962
970
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
963
971
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
964
972
|
}
|
|
965
|
-
function
|
|
973
|
+
function Bt(e, t) {
|
|
966
974
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
967
975
|
return e;
|
|
968
976
|
if (t === "master")
|
|
@@ -974,18 +982,18 @@ function Et(e, t) {
|
|
|
974
982
|
}
|
|
975
983
|
return null;
|
|
976
984
|
}
|
|
977
|
-
function
|
|
985
|
+
function ne(e) {
|
|
978
986
|
if (!e)
|
|
979
987
|
return e;
|
|
980
988
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
981
989
|
if (e.match(/builder\.io/)) {
|
|
982
990
|
let n = e;
|
|
983
991
|
const i = Number(e.split("?width=")[1]);
|
|
984
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
992
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
985
993
|
}
|
|
986
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
994
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
987
995
|
}
|
|
988
|
-
function
|
|
996
|
+
function Et(e) {
|
|
989
997
|
var o, a, l, r, s, d;
|
|
990
998
|
function t() {
|
|
991
999
|
var h;
|
|
@@ -996,10 +1004,10 @@ function Pt(e) {
|
|
|
996
1004
|
return e.srcset;
|
|
997
1005
|
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
998
1006
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
999
|
-
return console.debug("Removed given srcset"),
|
|
1007
|
+
return console.debug("Removed given srcset"), ne(u);
|
|
1000
1008
|
} else if (e.image && !e.srcset)
|
|
1001
|
-
return
|
|
1002
|
-
return
|
|
1009
|
+
return ne(u);
|
|
1010
|
+
return ne(u);
|
|
1003
1011
|
}
|
|
1004
1012
|
function n() {
|
|
1005
1013
|
var m;
|
|
@@ -1015,9 +1023,9 @@ function Pt(e) {
|
|
|
1015
1023
|
};
|
|
1016
1024
|
return e.aspectRatio ? m : void 0;
|
|
1017
1025
|
}
|
|
1018
|
-
return /* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */
|
|
1026
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
1027
|
+
/* @__PURE__ */ P(C, { children: [
|
|
1028
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1021
1029
|
n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1022
1030
|
/* @__PURE__ */ c(
|
|
1023
1031
|
"img",
|
|
@@ -1069,7 +1077,7 @@ function Pt(e) {
|
|
|
1069
1077
|
}` })
|
|
1070
1078
|
] });
|
|
1071
1079
|
}
|
|
1072
|
-
function
|
|
1080
|
+
function Wt(e) {
|
|
1073
1081
|
return /* @__PURE__ */ c(
|
|
1074
1082
|
"section",
|
|
1075
1083
|
{
|
|
@@ -1090,7 +1098,7 @@ function Bt(e) {
|
|
|
1090
1098
|
}
|
|
1091
1099
|
);
|
|
1092
1100
|
}
|
|
1093
|
-
const
|
|
1101
|
+
const Nt = {
|
|
1094
1102
|
name: "Core:Button",
|
|
1095
1103
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1096
1104
|
defaultStyles: {
|
|
@@ -1122,8 +1130,14 @@ const Wt = {
|
|
|
1122
1130
|
friendlyName: "Open link in new tab"
|
|
1123
1131
|
}],
|
|
1124
1132
|
static: !0,
|
|
1125
|
-
noWrap: !0
|
|
1126
|
-
|
|
1133
|
+
noWrap: !0,
|
|
1134
|
+
shouldReceiveBuilderProps: {
|
|
1135
|
+
builderBlock: !1,
|
|
1136
|
+
builderContext: !1,
|
|
1137
|
+
builderComponents: !1,
|
|
1138
|
+
builderLinkComponent: !0
|
|
1139
|
+
}
|
|
1140
|
+
}, At = {
|
|
1127
1141
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1128
1142
|
name: "Columns",
|
|
1129
1143
|
isRSC: !0,
|
|
@@ -1323,14 +1337,26 @@ const Wt = {
|
|
|
1323
1337
|
defaultValue: !1,
|
|
1324
1338
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1325
1339
|
advanced: !0
|
|
1326
|
-
}]
|
|
1327
|
-
|
|
1340
|
+
}],
|
|
1341
|
+
shouldReceiveBuilderProps: {
|
|
1342
|
+
builderBlock: !0,
|
|
1343
|
+
builderContext: !0,
|
|
1344
|
+
builderComponents: !0,
|
|
1345
|
+
builderLinkComponent: !0
|
|
1346
|
+
}
|
|
1347
|
+
}, Vt = {
|
|
1348
|
+
shouldReceiveBuilderProps: {
|
|
1349
|
+
builderBlock: !1,
|
|
1350
|
+
builderContext: !1,
|
|
1351
|
+
builderComponents: !1,
|
|
1352
|
+
builderLinkComponent: !1
|
|
1353
|
+
},
|
|
1328
1354
|
name: "Fragment",
|
|
1329
1355
|
static: !0,
|
|
1330
1356
|
hidden: !0,
|
|
1331
1357
|
canHaveChildren: !0,
|
|
1332
1358
|
noWrap: !0
|
|
1333
|
-
},
|
|
1359
|
+
}, $t = {
|
|
1334
1360
|
name: "Image",
|
|
1335
1361
|
static: !0,
|
|
1336
1362
|
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",
|
|
@@ -1434,8 +1460,20 @@ const Wt = {
|
|
|
1434
1460
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1435
1461
|
advanced: !0,
|
|
1436
1462
|
defaultValue: 0.7041
|
|
1437
|
-
}]
|
|
1438
|
-
|
|
1463
|
+
}],
|
|
1464
|
+
shouldReceiveBuilderProps: {
|
|
1465
|
+
builderBlock: !0,
|
|
1466
|
+
builderContext: !1,
|
|
1467
|
+
builderComponents: !1,
|
|
1468
|
+
builderLinkComponent: !1
|
|
1469
|
+
}
|
|
1470
|
+
}, Lt = {
|
|
1471
|
+
shouldReceiveBuilderProps: {
|
|
1472
|
+
builderBlock: !1,
|
|
1473
|
+
builderContext: !1,
|
|
1474
|
+
builderComponents: !1,
|
|
1475
|
+
builderLinkComponent: !1
|
|
1476
|
+
},
|
|
1439
1477
|
name: "Core:Section",
|
|
1440
1478
|
static: !0,
|
|
1441
1479
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1486,9 +1524,15 @@ const Wt = {
|
|
|
1486
1524
|
type: "string",
|
|
1487
1525
|
required: !0,
|
|
1488
1526
|
defaultValue: "children"
|
|
1489
|
-
}]
|
|
1527
|
+
}],
|
|
1528
|
+
shouldReceiveBuilderProps: {
|
|
1529
|
+
builderBlock: !1,
|
|
1530
|
+
builderContext: !0,
|
|
1531
|
+
builderComponents: !1,
|
|
1532
|
+
builderLinkComponent: !1
|
|
1533
|
+
}
|
|
1490
1534
|
};
|
|
1491
|
-
function
|
|
1535
|
+
function jt(e) {
|
|
1492
1536
|
var t, n, i;
|
|
1493
1537
|
return /* @__PURE__ */ c(
|
|
1494
1538
|
"div",
|
|
@@ -1500,7 +1544,7 @@ function Lt(e) {
|
|
|
1500
1544
|
"builder-slot": e.name
|
|
1501
1545
|
},
|
|
1502
1546
|
children: /* @__PURE__ */ c(
|
|
1503
|
-
|
|
1547
|
+
se,
|
|
1504
1548
|
{
|
|
1505
1549
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1506
1550
|
path: `symbol.data.${e.name}`,
|
|
@@ -1511,7 +1555,7 @@ function Lt(e) {
|
|
|
1511
1555
|
}
|
|
1512
1556
|
);
|
|
1513
1557
|
}
|
|
1514
|
-
const
|
|
1558
|
+
const Dt = {
|
|
1515
1559
|
name: "Symbol",
|
|
1516
1560
|
noWrap: !0,
|
|
1517
1561
|
static: !0,
|
|
@@ -1543,8 +1587,20 @@ const jt = {
|
|
|
1543
1587
|
name: "useChildren",
|
|
1544
1588
|
hideFromUI: !0,
|
|
1545
1589
|
type: "boolean"
|
|
1546
|
-
}]
|
|
1547
|
-
|
|
1590
|
+
}],
|
|
1591
|
+
shouldReceiveBuilderProps: {
|
|
1592
|
+
builderBlock: !0,
|
|
1593
|
+
builderContext: !0,
|
|
1594
|
+
builderComponents: !0,
|
|
1595
|
+
builderLinkComponent: !0
|
|
1596
|
+
}
|
|
1597
|
+
}, Ot = {
|
|
1598
|
+
shouldReceiveBuilderProps: {
|
|
1599
|
+
builderBlock: !1,
|
|
1600
|
+
builderContext: !1,
|
|
1601
|
+
builderComponents: !1,
|
|
1602
|
+
builderLinkComponent: !1
|
|
1603
|
+
},
|
|
1548
1604
|
name: "Text",
|
|
1549
1605
|
static: !0,
|
|
1550
1606
|
isRSC: !0,
|
|
@@ -1563,7 +1619,7 @@ const jt = {
|
|
|
1563
1619
|
textAlign: "center"
|
|
1564
1620
|
}
|
|
1565
1621
|
};
|
|
1566
|
-
function
|
|
1622
|
+
function _t(e) {
|
|
1567
1623
|
var t;
|
|
1568
1624
|
return /* @__PURE__ */ c(
|
|
1569
1625
|
"div",
|
|
@@ -1576,7 +1632,13 @@ function Ot(e) {
|
|
|
1576
1632
|
}
|
|
1577
1633
|
);
|
|
1578
1634
|
}
|
|
1579
|
-
const
|
|
1635
|
+
const Ht = {
|
|
1636
|
+
shouldReceiveBuilderProps: {
|
|
1637
|
+
builderBlock: !1,
|
|
1638
|
+
builderContext: !1,
|
|
1639
|
+
builderComponents: !1,
|
|
1640
|
+
builderLinkComponent: !1
|
|
1641
|
+
},
|
|
1580
1642
|
name: "Custom Code",
|
|
1581
1643
|
static: !0,
|
|
1582
1644
|
requiredPermissions: ["editCode"],
|
|
@@ -1599,8 +1661,8 @@ const _t = {
|
|
|
1599
1661
|
advanced: !0
|
|
1600
1662
|
}]
|
|
1601
1663
|
};
|
|
1602
|
-
function
|
|
1603
|
-
const t =
|
|
1664
|
+
function Ut(e) {
|
|
1665
|
+
const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []);
|
|
1604
1666
|
return T(() => {
|
|
1605
1667
|
var r;
|
|
1606
1668
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -1637,7 +1699,13 @@ function Ht(e) {
|
|
|
1637
1699
|
}
|
|
1638
1700
|
);
|
|
1639
1701
|
}
|
|
1640
|
-
const
|
|
1702
|
+
const Mt = {
|
|
1703
|
+
shouldReceiveBuilderProps: {
|
|
1704
|
+
builderBlock: !1,
|
|
1705
|
+
builderContext: !1,
|
|
1706
|
+
builderComponents: !1,
|
|
1707
|
+
builderLinkComponent: !1
|
|
1708
|
+
},
|
|
1641
1709
|
name: "Embed",
|
|
1642
1710
|
static: !0,
|
|
1643
1711
|
inputs: [{
|
|
@@ -1665,9 +1733,9 @@ const Ut = {
|
|
|
1665
1733
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1666
1734
|
hideFromUI: !0
|
|
1667
1735
|
}]
|
|
1668
|
-
},
|
|
1669
|
-
function
|
|
1670
|
-
const t =
|
|
1736
|
+
}, Kt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => Kt.includes(e.type);
|
|
1737
|
+
function qt(e) {
|
|
1738
|
+
const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
|
|
1671
1739
|
function s() {
|
|
1672
1740
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1673
1741
|
return;
|
|
@@ -1678,7 +1746,7 @@ function zt(e) {
|
|
|
1678
1746
|
n.push(u.src);
|
|
1679
1747
|
const h = document.createElement("script");
|
|
1680
1748
|
h.async = !0, h.src = u.src, document.head.appendChild(h);
|
|
1681
|
-
} else if (
|
|
1749
|
+
} else if (zt(u) && !o.includes(u.innerText))
|
|
1682
1750
|
try {
|
|
1683
1751
|
o.push(u.innerText), new Function(u.innerText)();
|
|
1684
1752
|
} catch (h) {
|
|
@@ -1697,7 +1765,13 @@ function zt(e) {
|
|
|
1697
1765
|
}
|
|
1698
1766
|
);
|
|
1699
1767
|
}
|
|
1700
|
-
const
|
|
1768
|
+
const Yt = {
|
|
1769
|
+
shouldReceiveBuilderProps: {
|
|
1770
|
+
builderBlock: !1,
|
|
1771
|
+
builderContext: !1,
|
|
1772
|
+
builderComponents: !1,
|
|
1773
|
+
builderLinkComponent: !1
|
|
1774
|
+
},
|
|
1701
1775
|
// friendlyName?
|
|
1702
1776
|
name: "Raw:Img",
|
|
1703
1777
|
hideFromInsertMenu: !0,
|
|
@@ -1712,7 +1786,7 @@ const qt = {
|
|
|
1712
1786
|
noWrap: !0,
|
|
1713
1787
|
static: !0
|
|
1714
1788
|
};
|
|
1715
|
-
function
|
|
1789
|
+
function Jt(e) {
|
|
1716
1790
|
return /* @__PURE__ */ c(
|
|
1717
1791
|
"img",
|
|
1718
1792
|
{
|
|
@@ -1724,10 +1798,10 @@ function Yt(e) {
|
|
|
1724
1798
|
src: e.imgSrc || e.image,
|
|
1725
1799
|
...e.attributes
|
|
1726
1800
|
},
|
|
1727
|
-
|
|
1801
|
+
V() && e.imgSrc || "default-key"
|
|
1728
1802
|
);
|
|
1729
1803
|
}
|
|
1730
|
-
const
|
|
1804
|
+
const Qt = {
|
|
1731
1805
|
name: "Video",
|
|
1732
1806
|
canHaveChildren: !0,
|
|
1733
1807
|
defaultStyles: {
|
|
@@ -1807,9 +1881,15 @@ const Jt = {
|
|
|
1807
1881
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
1808
1882
|
defaultValue: !0,
|
|
1809
1883
|
advanced: !0
|
|
1810
|
-
}]
|
|
1884
|
+
}],
|
|
1885
|
+
shouldReceiveBuilderProps: {
|
|
1886
|
+
builderBlock: !0,
|
|
1887
|
+
builderContext: !1,
|
|
1888
|
+
builderComponents: !1,
|
|
1889
|
+
builderLinkComponent: !1
|
|
1890
|
+
}
|
|
1811
1891
|
};
|
|
1812
|
-
function
|
|
1892
|
+
function Gt(e) {
|
|
1813
1893
|
var i, o, a, l, r, s, d;
|
|
1814
1894
|
function t() {
|
|
1815
1895
|
return {
|
|
@@ -1835,7 +1915,7 @@ function Qt(e) {
|
|
|
1835
1915
|
...t()
|
|
1836
1916
|
};
|
|
1837
1917
|
}
|
|
1838
|
-
return /* @__PURE__ */
|
|
1918
|
+
return /* @__PURE__ */ P(
|
|
1839
1919
|
"div",
|
|
1840
1920
|
{
|
|
1841
1921
|
style: {
|
|
@@ -1910,43 +1990,43 @@ function Qt(e) {
|
|
|
1910
1990
|
}
|
|
1911
1991
|
);
|
|
1912
1992
|
}
|
|
1913
|
-
const
|
|
1914
|
-
component:
|
|
1915
|
-
...
|
|
1916
|
-
}, {
|
|
1917
|
-
component: zt,
|
|
1918
|
-
...Ut
|
|
1993
|
+
const Xt = () => [{
|
|
1994
|
+
component: Ut,
|
|
1995
|
+
...Ht
|
|
1919
1996
|
}, {
|
|
1920
|
-
component:
|
|
1921
|
-
...
|
|
1997
|
+
component: qt,
|
|
1998
|
+
...Mt
|
|
1922
1999
|
}, {
|
|
1923
|
-
component:
|
|
1924
|
-
...
|
|
1925
|
-
}], be = () => [{
|
|
1926
|
-
component: Ge,
|
|
1927
|
-
...Wt
|
|
2000
|
+
component: Jt,
|
|
2001
|
+
...Yt
|
|
1928
2002
|
}, {
|
|
1929
|
-
component:
|
|
2003
|
+
component: Gt,
|
|
2004
|
+
...Qt
|
|
2005
|
+
}], pe = () => [{
|
|
2006
|
+
component: Xe,
|
|
1930
2007
|
...Nt
|
|
1931
2008
|
}, {
|
|
1932
2009
|
component: Tt,
|
|
1933
2010
|
...At
|
|
1934
2011
|
}, {
|
|
1935
|
-
component:
|
|
2012
|
+
component: Rt,
|
|
1936
2013
|
...Vt
|
|
1937
2014
|
}, {
|
|
1938
|
-
component:
|
|
2015
|
+
component: Et,
|
|
1939
2016
|
...$t
|
|
1940
2017
|
}, {
|
|
1941
|
-
component:
|
|
1942
|
-
...
|
|
2018
|
+
component: Wt,
|
|
2019
|
+
...Lt
|
|
1943
2020
|
}, {
|
|
1944
|
-
component:
|
|
1945
|
-
...
|
|
2021
|
+
component: jt,
|
|
2022
|
+
...Ft
|
|
1946
2023
|
}, {
|
|
1947
|
-
component:
|
|
2024
|
+
component: Pn,
|
|
1948
2025
|
...Dt
|
|
1949
|
-
},
|
|
2026
|
+
}, {
|
|
2027
|
+
component: _t,
|
|
2028
|
+
...Ot
|
|
2029
|
+
}, ...Xt()], Zt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1950
2030
|
function getAndSetVariantId() {
|
|
1951
2031
|
function setCookie(name, value, days) {
|
|
1952
2032
|
let expires = '';
|
|
@@ -2002,7 +2082,7 @@ const Gt = () => [{
|
|
|
2002
2082
|
}).join('');
|
|
2003
2083
|
styleEl.innerHTML = newStyleStr;
|
|
2004
2084
|
}
|
|
2005
|
-
}`,
|
|
2085
|
+
}`, en = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2006
2086
|
if (!navigator.cookieEnabled) {
|
|
2007
2087
|
return;
|
|
2008
2088
|
}
|
|
@@ -2036,26 +2116,26 @@ const Gt = () => [{
|
|
|
2036
2116
|
thisScriptEl?.remove();
|
|
2037
2117
|
}
|
|
2038
2118
|
return;
|
|
2039
|
-
}`,
|
|
2119
|
+
}`, Be = "builderIoAbTest", Ee = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2040
2120
|
...t,
|
|
2041
2121
|
testVariationId: t.id,
|
|
2042
2122
|
id: e == null ? void 0 : e.id
|
|
2043
|
-
})),
|
|
2123
|
+
})), tn = ({
|
|
2044
2124
|
canTrack: e,
|
|
2045
2125
|
content: t
|
|
2046
|
-
}) => !(!(M(t).length > 0) || !e || z()),
|
|
2047
|
-
window.${
|
|
2048
|
-
window.${
|
|
2049
|
-
`,
|
|
2050
|
-
window.${
|
|
2051
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2052
|
-
)`,
|
|
2126
|
+
}) => !(!(M(t).length > 0) || !e || z()), nn = (e) => e === "react" || e === "reactNative", We = nn(_), on = () => `
|
|
2127
|
+
window.${Be} = ${Zt}
|
|
2128
|
+
window.${Ee} = ${en}
|
|
2129
|
+
`, an = (e, t) => `
|
|
2130
|
+
window.${Be}(
|
|
2131
|
+
"${t}",${JSON.stringify(e)}, ${We}
|
|
2132
|
+
)`, rn = ({
|
|
2053
2133
|
contentId: e,
|
|
2054
2134
|
variationId: t
|
|
2055
|
-
}) => `window.${
|
|
2056
|
-
"${t}", "${e}", ${
|
|
2135
|
+
}) => `window.${Ee}(
|
|
2136
|
+
"${t}", "${e}", ${We}
|
|
2057
2137
|
)`;
|
|
2058
|
-
function
|
|
2138
|
+
function ie(e) {
|
|
2059
2139
|
return /* @__PURE__ */ c(
|
|
2060
2140
|
"script",
|
|
2061
2141
|
{
|
|
@@ -2064,7 +2144,7 @@ function ne(e) {
|
|
|
2064
2144
|
}
|
|
2065
2145
|
);
|
|
2066
2146
|
}
|
|
2067
|
-
const
|
|
2147
|
+
const ln = Ye({
|
|
2068
2148
|
content: null,
|
|
2069
2149
|
context: {},
|
|
2070
2150
|
localState: void 0,
|
|
@@ -2081,7 +2161,7 @@ const rn = qe({
|
|
|
2081
2161
|
function ye(e) {
|
|
2082
2162
|
return Math.round(e * 1e3) / 1e3;
|
|
2083
2163
|
}
|
|
2084
|
-
const
|
|
2164
|
+
const cn = (e, t, n = !0) => {
|
|
2085
2165
|
if (!(e instanceof HTMLElement))
|
|
2086
2166
|
return null;
|
|
2087
2167
|
let i = n ? e : e.parentElement;
|
|
@@ -2092,10 +2172,10 @@ const ln = (e, t, n = !0) => {
|
|
|
2092
2172
|
return i;
|
|
2093
2173
|
} while (i = i.parentElement);
|
|
2094
2174
|
return null;
|
|
2095
|
-
},
|
|
2175
|
+
}, sn = (e) => cn(e, (t) => {
|
|
2096
2176
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2097
2177
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2098
|
-
}),
|
|
2178
|
+
}), ve = ({
|
|
2099
2179
|
event: e,
|
|
2100
2180
|
target: t
|
|
2101
2181
|
}) => {
|
|
@@ -2104,16 +2184,16 @@ const ln = (e, t, n = !0) => {
|
|
|
2104
2184
|
x: a,
|
|
2105
2185
|
y: l
|
|
2106
2186
|
};
|
|
2107
|
-
},
|
|
2108
|
-
const t = e.target, n = t &&
|
|
2187
|
+
}, dn = (e) => {
|
|
2188
|
+
const t = e.target, n = t && sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2109
2189
|
return {
|
|
2110
2190
|
targetBuilderElement: i || void 0,
|
|
2111
2191
|
metadata: {
|
|
2112
|
-
targetOffset: t ?
|
|
2192
|
+
targetOffset: t ? ve({
|
|
2113
2193
|
event: e,
|
|
2114
2194
|
target: t
|
|
2115
2195
|
}) : void 0,
|
|
2116
|
-
builderTargetOffset: n ?
|
|
2196
|
+
builderTargetOffset: n ? ve({
|
|
2117
2197
|
event: e,
|
|
2118
2198
|
target: n
|
|
2119
2199
|
}) : void 0,
|
|
@@ -2121,13 +2201,13 @@ const ln = (e, t, n = !0) => {
|
|
|
2121
2201
|
}
|
|
2122
2202
|
};
|
|
2123
2203
|
};
|
|
2124
|
-
async function
|
|
2204
|
+
async function un({
|
|
2125
2205
|
key: e,
|
|
2126
2206
|
value: t
|
|
2127
2207
|
}) {
|
|
2128
|
-
return
|
|
2208
|
+
return $e(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
2129
2209
|
}
|
|
2130
|
-
function
|
|
2210
|
+
function xe(e, ...t) {
|
|
2131
2211
|
const n = Object(e);
|
|
2132
2212
|
for (let i = 1; i < arguments.length; i++) {
|
|
2133
2213
|
const o = arguments[i];
|
|
@@ -2137,31 +2217,31 @@ function pe(e, ...t) {
|
|
|
2137
2217
|
}
|
|
2138
2218
|
return n;
|
|
2139
2219
|
}
|
|
2140
|
-
function
|
|
2220
|
+
function mn(e) {
|
|
2141
2221
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
2142
2222
|
}
|
|
2143
|
-
function
|
|
2144
|
-
const n =
|
|
2223
|
+
function fn(e, t) {
|
|
2224
|
+
const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
|
|
2145
2225
|
for (const r of l)
|
|
2146
2226
|
for (const s of n)
|
|
2147
2227
|
s in r || (r[s] = i[s]);
|
|
2148
2228
|
}
|
|
2149
|
-
function
|
|
2229
|
+
function hn(e) {
|
|
2150
2230
|
const t = [];
|
|
2151
2231
|
for (const n of e.steps)
|
|
2152
2232
|
for (const i in n.styles)
|
|
2153
2233
|
t.indexOf(i) === -1 && t.push(i);
|
|
2154
2234
|
return t;
|
|
2155
2235
|
}
|
|
2156
|
-
function
|
|
2236
|
+
function bn(e) {
|
|
2157
2237
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2158
2238
|
if (!t.length) {
|
|
2159
|
-
|
|
2239
|
+
mn(e.elementId || e.id || "");
|
|
2160
2240
|
return;
|
|
2161
2241
|
}
|
|
2162
2242
|
Array.from(t).forEach((n) => {
|
|
2163
|
-
|
|
2164
|
-
n.style.transition = `all ${e.duration}s ${
|
|
2243
|
+
fn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
|
|
2244
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
|
|
2165
2245
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
2166
2246
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
2167
2247
|
});
|
|
@@ -2193,7 +2273,7 @@ font-weight: ${r};
|
|
|
2193
2273
|
`.trim());
|
|
2194
2274
|
}
|
|
2195
2275
|
return o;
|
|
2196
|
-
},
|
|
2276
|
+
}, pn = ({
|
|
2197
2277
|
customFonts: e
|
|
2198
2278
|
}) => {
|
|
2199
2279
|
var t;
|
|
@@ -2201,7 +2281,7 @@ font-weight: ${r};
|
|
|
2201
2281
|
}, yn = ({
|
|
2202
2282
|
cssCode: e,
|
|
2203
2283
|
contentId: t
|
|
2204
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
2284
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
|
|
2205
2285
|
.builder-button {
|
|
2206
2286
|
all: unset;
|
|
2207
2287
|
}
|
|
@@ -2218,34 +2298,34 @@ font-weight: ${r};
|
|
|
2218
2298
|
text-align: inherit;
|
|
2219
2299
|
font-family: inherit;
|
|
2220
2300
|
}
|
|
2221
|
-
`,
|
|
2222
|
-
function
|
|
2223
|
-
var
|
|
2224
|
-
const t =
|
|
2225
|
-
function n(
|
|
2226
|
-
var
|
|
2301
|
+
`, xn = (e) => e ? "" : vn, kn = (e) => `variant-${e}`;
|
|
2302
|
+
function Sn(e) {
|
|
2303
|
+
var E, F, j, Z, ee, de, ue;
|
|
2304
|
+
const t = ae(null);
|
|
2305
|
+
function n(b) {
|
|
2306
|
+
var y, v;
|
|
2227
2307
|
const f = {
|
|
2228
2308
|
...e.builderContextSignal.rootState,
|
|
2229
|
-
...
|
|
2309
|
+
...b
|
|
2230
2310
|
};
|
|
2231
|
-
e.builderContextSignal.rootSetState ? (
|
|
2311
|
+
e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, f) : e.builderContextSignal.rootState = f;
|
|
2232
2312
|
}
|
|
2233
|
-
function i(
|
|
2234
|
-
var
|
|
2313
|
+
function i(b) {
|
|
2314
|
+
var y, v, S, B, H;
|
|
2235
2315
|
const f = {
|
|
2236
2316
|
...e.builderContextSignal.content,
|
|
2237
|
-
...
|
|
2317
|
+
...b,
|
|
2238
2318
|
data: {
|
|
2239
|
-
...(
|
|
2240
|
-
...
|
|
2319
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
|
|
2320
|
+
...b == null ? void 0 : b.data
|
|
2241
2321
|
},
|
|
2242
2322
|
meta: {
|
|
2243
|
-
...(
|
|
2244
|
-
...
|
|
2245
|
-
breakpoints: ((
|
|
2323
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
2324
|
+
...b == null ? void 0 : b.meta,
|
|
2325
|
+
breakpoints: ((S = b == null ? void 0 : b.meta) == null ? void 0 : S.breakpoints) || ((H = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : H.breakpoints)
|
|
2246
2326
|
}
|
|
2247
2327
|
};
|
|
2248
|
-
|
|
2328
|
+
un({
|
|
2249
2329
|
value: f,
|
|
2250
2330
|
key: f.id
|
|
2251
2331
|
}).then(() => {
|
|
@@ -2258,37 +2338,37 @@ function vn(e) {
|
|
|
2258
2338
|
"aria-hidden": !0
|
|
2259
2339
|
};
|
|
2260
2340
|
}
|
|
2261
|
-
const [a, l] =
|
|
2341
|
+
const [a, l] = N(
|
|
2262
2342
|
() => e.contentWrapper || "div"
|
|
2263
2343
|
);
|
|
2264
|
-
function r(
|
|
2344
|
+
function r(b) {
|
|
2265
2345
|
return Fe({
|
|
2266
2346
|
model: e.model,
|
|
2267
2347
|
trustedHosts: e.trustedHosts,
|
|
2268
2348
|
callbacks: {
|
|
2269
2349
|
configureSdk: (f) => {
|
|
2270
|
-
var
|
|
2271
|
-
const { breakpoints:
|
|
2272
|
-
!
|
|
2350
|
+
var S;
|
|
2351
|
+
const { breakpoints: y, contentId: v } = f;
|
|
2352
|
+
!v || v !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || y && i({
|
|
2273
2353
|
meta: {
|
|
2274
|
-
breakpoints:
|
|
2354
|
+
breakpoints: y
|
|
2275
2355
|
}
|
|
2276
2356
|
});
|
|
2277
2357
|
},
|
|
2278
2358
|
animation: (f) => {
|
|
2279
|
-
|
|
2359
|
+
bn(f);
|
|
2280
2360
|
},
|
|
2281
2361
|
contentUpdate: (f) => {
|
|
2282
2362
|
i(f);
|
|
2283
2363
|
}
|
|
2284
2364
|
}
|
|
2285
|
-
})(
|
|
2365
|
+
})(b);
|
|
2286
2366
|
}
|
|
2287
2367
|
function s() {
|
|
2288
|
-
var f,
|
|
2289
|
-
const
|
|
2290
|
-
|
|
2291
|
-
code:
|
|
2368
|
+
var f, y;
|
|
2369
|
+
const b = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.jsCode;
|
|
2370
|
+
b && O({
|
|
2371
|
+
code: b,
|
|
2292
2372
|
context: e.context || {},
|
|
2293
2373
|
localState: void 0,
|
|
2294
2374
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2299,35 +2379,35 @@ function vn(e) {
|
|
|
2299
2379
|
enableCache: !1
|
|
2300
2380
|
});
|
|
2301
2381
|
}
|
|
2302
|
-
const [d, m] =
|
|
2303
|
-
function
|
|
2304
|
-
var f,
|
|
2382
|
+
const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [k, w] = N(() => !1);
|
|
2383
|
+
function p(b) {
|
|
2384
|
+
var f, y;
|
|
2305
2385
|
if (e.builderContextSignal.content) {
|
|
2306
|
-
const
|
|
2307
|
-
|
|
2386
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, S = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
|
|
2387
|
+
me({
|
|
2308
2388
|
type: "click",
|
|
2309
2389
|
canTrack: q(e.canTrack),
|
|
2310
|
-
contentId:
|
|
2390
|
+
contentId: S,
|
|
2311
2391
|
apiKey: e.apiKey,
|
|
2312
|
-
variationId:
|
|
2313
|
-
...
|
|
2314
|
-
unique: !
|
|
2392
|
+
variationId: v !== S ? v : void 0,
|
|
2393
|
+
...dn(b),
|
|
2394
|
+
unique: !k
|
|
2315
2395
|
});
|
|
2316
2396
|
}
|
|
2317
|
-
|
|
2397
|
+
k || w(!0);
|
|
2318
2398
|
}
|
|
2319
|
-
function
|
|
2320
|
-
var f,
|
|
2321
|
-
const
|
|
2322
|
-
Object.entries(
|
|
2323
|
-
if (!
|
|
2399
|
+
function A() {
|
|
2400
|
+
var f, y, v;
|
|
2401
|
+
const b = (v = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.httpRequests) != null ? v : {};
|
|
2402
|
+
Object.entries(b).forEach(([S, B]) => {
|
|
2403
|
+
if (!B || u[S] || d[S] && !V())
|
|
2324
2404
|
return;
|
|
2325
|
-
u[
|
|
2326
|
-
const H =
|
|
2405
|
+
u[S] = !0;
|
|
2406
|
+
const H = B.replace(
|
|
2327
2407
|
/{{([^}]+)}}/g,
|
|
2328
|
-
(
|
|
2329
|
-
|
|
2330
|
-
code:
|
|
2408
|
+
($, Ne) => String(
|
|
2409
|
+
O({
|
|
2410
|
+
code: Ne,
|
|
2331
2411
|
context: e.context || {},
|
|
2332
2412
|
localState: void 0,
|
|
2333
2413
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2336,24 +2416,24 @@ function vn(e) {
|
|
|
2336
2416
|
})
|
|
2337
2417
|
)
|
|
2338
2418
|
);
|
|
2339
|
-
|
|
2419
|
+
je(H).then(($) => $.json()).then(($) => {
|
|
2340
2420
|
n({
|
|
2341
|
-
[
|
|
2342
|
-
}), d[
|
|
2343
|
-
}).catch((
|
|
2344
|
-
console.error("error fetching dynamic data",
|
|
2421
|
+
[S]: $
|
|
2422
|
+
}), d[S] = !0;
|
|
2423
|
+
}).catch(($) => {
|
|
2424
|
+
console.error("error fetching dynamic data", B, $);
|
|
2345
2425
|
}).finally(() => {
|
|
2346
|
-
u[
|
|
2426
|
+
u[S] = !1;
|
|
2347
2427
|
});
|
|
2348
2428
|
});
|
|
2349
2429
|
}
|
|
2350
2430
|
function x() {
|
|
2351
|
-
|
|
2431
|
+
V() && window.dispatchEvent(
|
|
2352
2432
|
new CustomEvent(
|
|
2353
2433
|
"builder:component:stateChange",
|
|
2354
2434
|
{
|
|
2355
2435
|
detail: {
|
|
2356
|
-
state:
|
|
2436
|
+
state: oe(e.builderContextSignal.rootState),
|
|
2357
2437
|
ref: {
|
|
2358
2438
|
name: e.model
|
|
2359
2439
|
}
|
|
@@ -2362,8 +2442,8 @@ function vn(e) {
|
|
|
2362
2442
|
)
|
|
2363
2443
|
);
|
|
2364
2444
|
}
|
|
2365
|
-
function b
|
|
2366
|
-
window.addEventListener("message", r),
|
|
2445
|
+
function g(b) {
|
|
2446
|
+
window.addEventListener("message", r), De(), Oe({
|
|
2367
2447
|
...e.locale ? {
|
|
2368
2448
|
locale: e.locale
|
|
2369
2449
|
} : {},
|
|
@@ -2376,42 +2456,42 @@ function vn(e) {
|
|
|
2376
2456
|
}), Object.values(
|
|
2377
2457
|
e.builderContextSignal.componentInfos
|
|
2378
2458
|
).forEach((f) => {
|
|
2379
|
-
var
|
|
2380
|
-
const
|
|
2381
|
-
(
|
|
2459
|
+
var v;
|
|
2460
|
+
const y = _e(f);
|
|
2461
|
+
(v = window.parent) == null || v.postMessage(y, "*");
|
|
2382
2462
|
}), window.addEventListener(
|
|
2383
2463
|
"builder:component:stateChangeListenerActivated",
|
|
2384
2464
|
x
|
|
2385
2465
|
);
|
|
2386
2466
|
}
|
|
2387
|
-
function I(
|
|
2388
|
-
const f = new URL(location.href).searchParams,
|
|
2389
|
-
`builder.overrides.${
|
|
2390
|
-
),
|
|
2391
|
-
|
|
2467
|
+
function I(b) {
|
|
2468
|
+
const f = new URL(location.href).searchParams, y = f.get("builder.preview"), v = f.get(
|
|
2469
|
+
`builder.overrides.${y}`
|
|
2470
|
+
), S = f.get("apiKey") || f.get("builder.space");
|
|
2471
|
+
y === e.model && S === e.apiKey && (!e.content || v === e.content.id) && Se({
|
|
2392
2472
|
model: e.model,
|
|
2393
2473
|
apiKey: e.apiKey,
|
|
2394
2474
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2395
|
-
}).then((
|
|
2396
|
-
|
|
2475
|
+
}).then((B) => {
|
|
2476
|
+
B && i(B);
|
|
2397
2477
|
});
|
|
2398
2478
|
}
|
|
2399
|
-
const R =
|
|
2479
|
+
const R = Je();
|
|
2400
2480
|
return T(() => {
|
|
2401
|
-
var
|
|
2402
|
-
return (
|
|
2481
|
+
var b;
|
|
2482
|
+
return (b = t.current) == null || b.addEventListener(
|
|
2403
2483
|
"initeditingbldr",
|
|
2404
|
-
|
|
2484
|
+
g
|
|
2405
2485
|
), () => {
|
|
2406
2486
|
var f;
|
|
2407
2487
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2408
2488
|
"initeditingbldr",
|
|
2409
|
-
|
|
2489
|
+
g
|
|
2410
2490
|
);
|
|
2411
2491
|
};
|
|
2412
2492
|
}, []), T(() => {
|
|
2413
|
-
var
|
|
2414
|
-
return (
|
|
2493
|
+
var b;
|
|
2494
|
+
return (b = t.current) == null || b.addEventListener(
|
|
2415
2495
|
"initpreviewingbldr",
|
|
2416
2496
|
I
|
|
2417
2497
|
), () => {
|
|
@@ -2422,30 +2502,30 @@ function vn(e) {
|
|
|
2422
2502
|
);
|
|
2423
2503
|
};
|
|
2424
2504
|
}, []), T(() => {
|
|
2425
|
-
var
|
|
2505
|
+
var b, f;
|
|
2426
2506
|
if (z()) {
|
|
2427
|
-
if (
|
|
2428
|
-
const
|
|
2429
|
-
|
|
2507
|
+
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
|
|
2508
|
+
const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, S = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
|
|
2509
|
+
me({
|
|
2430
2510
|
type: "impression",
|
|
2431
2511
|
canTrack: !0,
|
|
2432
|
-
contentId:
|
|
2433
|
-
apiKey:
|
|
2434
|
-
variationId:
|
|
2512
|
+
contentId: S,
|
|
2513
|
+
apiKey: B,
|
|
2514
|
+
variationId: v !== S ? v : void 0
|
|
2435
2515
|
});
|
|
2436
2516
|
}
|
|
2437
|
-
|
|
2517
|
+
Le() && V();
|
|
2438
2518
|
}
|
|
2439
2519
|
}, []), T(() => {
|
|
2440
2520
|
e.apiKey || J.error(
|
|
2441
2521
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2442
|
-
), s(),
|
|
2522
|
+
), s(), A(), x();
|
|
2443
2523
|
}, []), T(() => {
|
|
2444
2524
|
}, [e.content]), T(() => {
|
|
2445
2525
|
s();
|
|
2446
|
-
}, [(
|
|
2447
|
-
|
|
2448
|
-
}, [(
|
|
2526
|
+
}, [(F = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : F.jsCode]), T(() => {
|
|
2527
|
+
A();
|
|
2528
|
+
}, [(Z = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : Z.httpRequests]), T(() => {
|
|
2449
2529
|
x();
|
|
2450
2530
|
}, [e.builderContextSignal.rootState]), T(() => {
|
|
2451
2531
|
e.data && n(e.data);
|
|
@@ -2458,36 +2538,36 @@ function vn(e) {
|
|
|
2458
2538
|
"builder:component:stateChangeListenerActivated",
|
|
2459
2539
|
x
|
|
2460
2540
|
));
|
|
2461
|
-
}, []), /* @__PURE__ */ c(
|
|
2541
|
+
}, []), /* @__PURE__ */ c(ln.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
|
|
2462
2542
|
a,
|
|
2463
2543
|
{
|
|
2464
2544
|
ref: t,
|
|
2465
|
-
onClick: (
|
|
2466
|
-
"builder-content-id": (
|
|
2545
|
+
onClick: (b) => p(b),
|
|
2546
|
+
"builder-content-id": (ee = e.builderContextSignal.content) == null ? void 0 : ee.id,
|
|
2467
2547
|
"builder-model": e.model,
|
|
2468
2548
|
...o(),
|
|
2469
2549
|
...e.contentWrapperProps,
|
|
2470
|
-
className:
|
|
2471
|
-
((
|
|
2550
|
+
className: kn(
|
|
2551
|
+
((de = e.content) == null ? void 0 : de.testVariationId) || ((ue = e.content) == null ? void 0 : ue.id)
|
|
2472
2552
|
),
|
|
2473
2553
|
children: e.children
|
|
2474
2554
|
}
|
|
2475
2555
|
) : null });
|
|
2476
2556
|
}
|
|
2477
|
-
function
|
|
2557
|
+
function Cn(e) {
|
|
2478
2558
|
const t = `
|
|
2479
2559
|
${yn({
|
|
2480
2560
|
cssCode: e.cssCode,
|
|
2481
2561
|
contentId: e.contentId
|
|
2482
2562
|
})}
|
|
2483
|
-
${
|
|
2563
|
+
${pn({
|
|
2484
2564
|
customFonts: e.customFonts
|
|
2485
2565
|
})}
|
|
2486
|
-
${
|
|
2566
|
+
${xn(e.isNestedRender)}
|
|
2487
2567
|
`.trim();
|
|
2488
|
-
return /* @__PURE__ */ c(
|
|
2568
|
+
return /* @__PURE__ */ c(G, { id: "builderio-content", styles: t });
|
|
2489
2569
|
}
|
|
2490
|
-
const
|
|
2570
|
+
const In = ({
|
|
2491
2571
|
content: e,
|
|
2492
2572
|
data: t,
|
|
2493
2573
|
locale: n
|
|
@@ -2504,7 +2584,7 @@ const Cn = ({
|
|
|
2504
2584
|
locale: n
|
|
2505
2585
|
} : {}
|
|
2506
2586
|
};
|
|
2507
|
-
},
|
|
2587
|
+
}, wn = ({
|
|
2508
2588
|
content: e,
|
|
2509
2589
|
data: t
|
|
2510
2590
|
}) => e ? {
|
|
@@ -2515,32 +2595,32 @@ const Cn = ({
|
|
|
2515
2595
|
},
|
|
2516
2596
|
meta: e == null ? void 0 : e.meta
|
|
2517
2597
|
} : void 0;
|
|
2518
|
-
function
|
|
2598
|
+
function ke(e) {
|
|
2519
2599
|
var o, a, l, r, s, d, m, u, h;
|
|
2520
|
-
const t =
|
|
2600
|
+
const t = rn({
|
|
2521
2601
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2522
2602
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
2523
2603
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2524
2604
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
2525
2605
|
}), n = [
|
|
2526
|
-
...
|
|
2606
|
+
...pe(),
|
|
2527
2607
|
...e.customComponents || []
|
|
2528
2608
|
].reduce(
|
|
2529
|
-
(
|
|
2530
|
-
...
|
|
2531
|
-
[
|
|
2609
|
+
(k, { component: w, ...p }) => ({
|
|
2610
|
+
...k,
|
|
2611
|
+
[p.name]: {
|
|
2532
2612
|
component: w,
|
|
2533
|
-
...
|
|
2613
|
+
...fe(p)
|
|
2534
2614
|
}
|
|
2535
2615
|
}),
|
|
2536
2616
|
{}
|
|
2537
2617
|
), i = {
|
|
2538
|
-
content:
|
|
2618
|
+
content: wn({
|
|
2539
2619
|
content: e.content,
|
|
2540
2620
|
data: e.data
|
|
2541
2621
|
}),
|
|
2542
2622
|
localState: void 0,
|
|
2543
|
-
rootState:
|
|
2623
|
+
rootState: In({
|
|
2544
2624
|
content: e.content,
|
|
2545
2625
|
data: e.data,
|
|
2546
2626
|
locale: e.locale
|
|
@@ -2551,12 +2631,12 @@ function xe(e) {
|
|
|
2551
2631
|
apiKey: e.apiKey,
|
|
2552
2632
|
apiVersion: e.apiVersion,
|
|
2553
2633
|
componentInfos: [
|
|
2554
|
-
...
|
|
2634
|
+
...pe(),
|
|
2555
2635
|
...e.customComponents || []
|
|
2556
2636
|
].reduce(
|
|
2557
|
-
(
|
|
2558
|
-
...
|
|
2559
|
-
[
|
|
2637
|
+
(k, { component: w, ...p }) => ({
|
|
2638
|
+
...k,
|
|
2639
|
+
[p.name]: fe(p)
|
|
2560
2640
|
}),
|
|
2561
2641
|
{}
|
|
2562
2642
|
),
|
|
@@ -2564,8 +2644,8 @@ function xe(e) {
|
|
|
2564
2644
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2565
2645
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2566
2646
|
};
|
|
2567
|
-
return /* @__PURE__ */
|
|
2568
|
-
|
|
2647
|
+
return /* @__PURE__ */ P(
|
|
2648
|
+
Sn,
|
|
2569
2649
|
{
|
|
2570
2650
|
content: e.content,
|
|
2571
2651
|
data: e.data,
|
|
@@ -2582,14 +2662,14 @@ function xe(e) {
|
|
|
2582
2662
|
trustedHosts: e.trustedHosts,
|
|
2583
2663
|
children: [
|
|
2584
2664
|
e.isSsrAbTest ? /* @__PURE__ */ c(
|
|
2585
|
-
|
|
2665
|
+
ie,
|
|
2586
2666
|
{
|
|
2587
2667
|
id: "builderio-variant-visibility",
|
|
2588
2668
|
scriptStr: t
|
|
2589
2669
|
}
|
|
2590
2670
|
) : null,
|
|
2591
2671
|
/* @__PURE__ */ c(
|
|
2592
|
-
|
|
2672
|
+
Cn,
|
|
2593
2673
|
{
|
|
2594
2674
|
isNestedRender: e.isNestedRender,
|
|
2595
2675
|
contentId: (l = i.content) == null ? void 0 : l.id,
|
|
@@ -2598,7 +2678,7 @@ function xe(e) {
|
|
|
2598
2678
|
}
|
|
2599
2679
|
),
|
|
2600
2680
|
/* @__PURE__ */ c(
|
|
2601
|
-
|
|
2681
|
+
se,
|
|
2602
2682
|
{
|
|
2603
2683
|
blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
|
|
2604
2684
|
context: i,
|
|
@@ -2610,14 +2690,14 @@ function xe(e) {
|
|
|
2610
2690
|
}
|
|
2611
2691
|
);
|
|
2612
2692
|
}
|
|
2613
|
-
function
|
|
2693
|
+
function Tn(e) {
|
|
2614
2694
|
var a;
|
|
2615
|
-
const t =
|
|
2695
|
+
const t = tn({
|
|
2616
2696
|
canTrack: q(e.canTrack),
|
|
2617
2697
|
content: e.content
|
|
2618
2698
|
}), n = function() {
|
|
2619
2699
|
var r;
|
|
2620
|
-
return
|
|
2700
|
+
return an(
|
|
2621
2701
|
M(e.content).map((s) => ({
|
|
2622
2702
|
id: s.testVariationId,
|
|
2623
2703
|
testRatio: s.testRatio
|
|
@@ -2631,36 +2711,36 @@ function wn(e) {
|
|
|
2631
2711
|
return t ? {
|
|
2632
2712
|
...e.content,
|
|
2633
2713
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
2634
|
-
} :
|
|
2714
|
+
} : He({
|
|
2635
2715
|
item: e.content,
|
|
2636
2716
|
canTrack: q(e.canTrack)
|
|
2637
2717
|
});
|
|
2638
2718
|
};
|
|
2639
|
-
return /* @__PURE__ */
|
|
2640
|
-
!e.isNestedRender &&
|
|
2641
|
-
|
|
2719
|
+
return /* @__PURE__ */ P(C, { children: [
|
|
2720
|
+
!e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ c(
|
|
2721
|
+
ie,
|
|
2642
2722
|
{
|
|
2643
2723
|
id: "builderio-init-variants-fns",
|
|
2644
|
-
scriptStr:
|
|
2724
|
+
scriptStr: on()
|
|
2645
2725
|
}
|
|
2646
2726
|
) : null,
|
|
2647
|
-
t ? /* @__PURE__ */
|
|
2727
|
+
t ? /* @__PURE__ */ P(C, { children: [
|
|
2648
2728
|
/* @__PURE__ */ c(
|
|
2649
|
-
|
|
2729
|
+
G,
|
|
2650
2730
|
{
|
|
2651
2731
|
id: "builderio-variants",
|
|
2652
2732
|
styles: i()
|
|
2653
2733
|
}
|
|
2654
2734
|
),
|
|
2655
2735
|
/* @__PURE__ */ c(
|
|
2656
|
-
|
|
2736
|
+
ie,
|
|
2657
2737
|
{
|
|
2658
2738
|
id: "builderio-variants-visibility",
|
|
2659
2739
|
scriptStr: n()
|
|
2660
2740
|
}
|
|
2661
2741
|
),
|
|
2662
2742
|
(a = M(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ c(
|
|
2663
|
-
|
|
2743
|
+
ke,
|
|
2664
2744
|
{
|
|
2665
2745
|
isNestedRender: e.isNestedRender,
|
|
2666
2746
|
content: l,
|
|
@@ -2686,7 +2766,7 @@ function wn(e) {
|
|
|
2686
2766
|
))
|
|
2687
2767
|
] }) : null,
|
|
2688
2768
|
/* @__PURE__ */ c(
|
|
2689
|
-
|
|
2769
|
+
ke,
|
|
2690
2770
|
{
|
|
2691
2771
|
isNestedRender: e.isNestedRender,
|
|
2692
2772
|
content: o(),
|
|
@@ -2711,13 +2791,13 @@ function wn(e) {
|
|
|
2711
2791
|
)
|
|
2712
2792
|
] });
|
|
2713
2793
|
}
|
|
2714
|
-
const
|
|
2794
|
+
const Rn = async ({
|
|
2715
2795
|
builderContextValue: e,
|
|
2716
2796
|
symbol: t
|
|
2717
2797
|
}) => {
|
|
2718
2798
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2719
2799
|
(e != null && e.apiKey))
|
|
2720
|
-
return
|
|
2800
|
+
return Se({
|
|
2721
2801
|
model: t.model,
|
|
2722
2802
|
apiKey: e.apiKey,
|
|
2723
2803
|
apiVersion: e.apiVersion,
|
|
@@ -2730,7 +2810,7 @@ const Tn = async ({
|
|
|
2730
2810
|
J.error("Could not fetch symbol content: ", n);
|
|
2731
2811
|
});
|
|
2732
2812
|
};
|
|
2733
|
-
async function
|
|
2813
|
+
async function Pn(e) {
|
|
2734
2814
|
var a, l, r, s, d;
|
|
2735
2815
|
const t = function() {
|
|
2736
2816
|
return "div";
|
|
@@ -2739,17 +2819,17 @@ async function Rn(e) {
|
|
|
2739
2819
|
}, i = function() {
|
|
2740
2820
|
var u, h;
|
|
2741
2821
|
return [
|
|
2742
|
-
e.attributes[
|
|
2822
|
+
e.attributes[D()],
|
|
2743
2823
|
"builder-symbol",
|
|
2744
2824
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
2745
2825
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2746
2826
|
].filter(Boolean).join(" ");
|
|
2747
|
-
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
2827
|
+
}, o = ((a = e.symbol) == null ? void 0 : a.content) || await Rn({
|
|
2748
2828
|
symbol: e.symbol,
|
|
2749
2829
|
builderContextValue: e.builderContext
|
|
2750
2830
|
});
|
|
2751
2831
|
return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
|
|
2752
|
-
|
|
2832
|
+
Tn,
|
|
2753
2833
|
{
|
|
2754
2834
|
isNestedRender: !0,
|
|
2755
2835
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2774,15 +2854,15 @@ async function Rn(e) {
|
|
|
2774
2854
|
) });
|
|
2775
2855
|
}
|
|
2776
2856
|
export {
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2857
|
+
se as Blocks,
|
|
2858
|
+
ln as BuilderContext,
|
|
2859
|
+
Xe as Button,
|
|
2860
|
+
Tt as Columns,
|
|
2861
|
+
Tn as Content,
|
|
2862
|
+
Rt as Fragment,
|
|
2863
|
+
Et as Image,
|
|
2864
|
+
Wt as Section,
|
|
2865
|
+
Pn as Symbol,
|
|
2866
|
+
_t as Text,
|
|
2867
|
+
Gt as Video
|
|
2788
2868
|
};
|