@builder.io/sdk-react 0.12.3 → 0.12.4
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/index.cjs +27 -31
- package/lib/browser/index.mjs +663 -606
- package/lib/browser/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
- package/lib/browser/{server-entry-df9eba5d.cjs → server-entry-bcb725be.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +37 -41
- package/lib/edge/index.mjs +1283 -1226
- package/lib/edge/{server-entry-f978b3a5.js → server-entry-0e4f0637.js} +1 -2
- package/lib/{node/server-entry-df9eba5d.cjs → edge/server-entry-bcb725be.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +6 -10
- package/lib/node/index.mjs +366 -309
- package/lib/node/{server-entry-46908b1b.js → server-entry-9aa733e8.js} +1 -2
- package/lib/{edge/server-entry-df9eba5d.cjs → node/server-entry-bcb725be.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/blocks/button/button.types.d.ts +2 -1
- package/types/blocks/columns/columns.types.d.ts +3 -3
- package/types/blocks/symbol/symbol.types.d.ts +2 -2
- package/types/components/block/block.d.ts +1 -0
- package/types/components/block/components/block-wrapper.d.ts +1 -0
- package/types/components/block/components/component-ref/component-ref.helpers.d.ts +4 -1
- package/types/components/block/components/repeated-block.d.ts +3 -5
- package/types/components/blocks/blocks.types.d.ts +1 -0
- package/types/components/content-variants/content-variants.types.d.ts +6 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-block-properties.d.ts +5 -1
- package/types/functions/get-class-prop-name.d.ts +1 -0
- package/types/functions/get-style.d.ts +12 -0
- package/types/functions/transform-block-properties.d.ts +7 -5
- package/types/functions/transform-style-property.d.ts +7 -0
- package/types/helpers/omit.d.ts +1 -0
- package/types/types/builder-block.d.ts +1 -0
- package/types/types/builder-props.d.ts +3 -0
package/lib/browser/index.mjs
CHANGED
|
@@ -1,30 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { i as V, j as $, k as
|
|
5
|
-
import { _ as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
2
|
+
import { jsx as l, Fragment as h, jsxs as A } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as pe, useState as v, useContext as se, useRef as ee, useEffect as E, createElement as Fe } from "react";
|
|
4
|
+
import { T as N, i as V, j as $, k as Le, l as D, m as te, n as X, r as _e, o as H, p as de, a as je, c as Ue, b as Ce, q as Me, u as ue, v as me, w as De } from "./server-entry-0e4f0637.js";
|
|
5
|
+
import { _ as vn, h as kn, f as pn, g as Cn, e as wn, d as In, s as Tn, t as Rn } from "./server-entry-0e4f0637.js";
|
|
6
|
+
const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Oe = (e) => typeof e == "string" && He.has(e.toLowerCase());
|
|
7
|
+
function ne(e) {
|
|
8
|
+
return /* @__PURE__ */ l(h, { children: Oe(e.TagName) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
|
+
}
|
|
10
|
+
const _ = () => {
|
|
11
|
+
switch (N) {
|
|
12
|
+
case "react":
|
|
13
|
+
case "reactNative":
|
|
14
|
+
case "rsc":
|
|
15
|
+
return "className";
|
|
16
|
+
case "svelte":
|
|
17
|
+
case "vue":
|
|
18
|
+
case "solid":
|
|
19
|
+
case "qwik":
|
|
20
|
+
return "class";
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
function Ke(e) {
|
|
24
|
+
return /* @__PURE__ */ l(
|
|
25
|
+
ne,
|
|
18
26
|
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
27
|
+
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
28
|
+
attributes: {
|
|
29
|
+
...e.attributes,
|
|
30
|
+
[_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
|
|
31
|
+
...e.link ? {
|
|
32
|
+
href: e.link,
|
|
33
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
34
|
+
role: "link"
|
|
35
|
+
} : {
|
|
36
|
+
role: "button"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
actionAttributes: {},
|
|
23
40
|
children: e.text
|
|
24
41
|
}
|
|
25
|
-
)
|
|
42
|
+
);
|
|
26
43
|
}
|
|
27
|
-
const
|
|
44
|
+
const ie = pe({
|
|
28
45
|
content: null,
|
|
29
46
|
context: {},
|
|
30
47
|
localState: void 0,
|
|
@@ -37,8 +54,8 @@ const ee = ve({
|
|
|
37
54
|
inheritedStyles: {},
|
|
38
55
|
BlocksWrapper: "div",
|
|
39
56
|
BlocksWrapperProps: {}
|
|
40
|
-
}),
|
|
41
|
-
function
|
|
57
|
+
}), we = pe({ registeredComponents: {} });
|
|
58
|
+
function ze(e) {
|
|
42
59
|
var t;
|
|
43
60
|
return {
|
|
44
61
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -49,7 +66,7 @@ function Ue(e) {
|
|
|
49
66
|
builderBlock: e
|
|
50
67
|
};
|
|
51
68
|
}
|
|
52
|
-
const
|
|
69
|
+
const qe = ({
|
|
53
70
|
builder: e,
|
|
54
71
|
context: t,
|
|
55
72
|
event: n,
|
|
@@ -61,83 +78,83 @@ const De = ({
|
|
|
61
78
|
builder: e,
|
|
62
79
|
context: t,
|
|
63
80
|
event: n
|
|
64
|
-
}),
|
|
81
|
+
}), Ye = () => ({
|
|
65
82
|
isEditing: V(),
|
|
66
83
|
isBrowser: $(),
|
|
67
84
|
isServer: !$(),
|
|
68
|
-
getUserAttributes: () =>
|
|
69
|
-
}),
|
|
85
|
+
getUserAttributes: () => Le()
|
|
86
|
+
}), Qe = (e, {
|
|
70
87
|
isExpression: t = !0
|
|
71
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
88
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
|
|
72
89
|
code: e,
|
|
73
90
|
builder: t,
|
|
74
91
|
context: n,
|
|
75
92
|
event: i,
|
|
76
93
|
localState: a,
|
|
77
|
-
rootSetState:
|
|
78
|
-
rootState:
|
|
94
|
+
rootSetState: r,
|
|
95
|
+
rootState: o
|
|
79
96
|
}) => {
|
|
80
|
-
const c =
|
|
97
|
+
const c = qe({
|
|
81
98
|
builder: t,
|
|
82
99
|
context: n,
|
|
83
100
|
event: i,
|
|
84
|
-
state:
|
|
101
|
+
state: Ge(o, a, r)
|
|
85
102
|
});
|
|
86
103
|
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
87
104
|
};
|
|
88
|
-
function
|
|
105
|
+
function Ge(e, t, n) {
|
|
89
106
|
if (e === t)
|
|
90
107
|
throw new Error("rootState === localState");
|
|
91
108
|
return new Proxy(e, {
|
|
92
109
|
get: (i, a) => t && a in t ? t[a] : e[a],
|
|
93
|
-
set: (i, a,
|
|
110
|
+
set: (i, a, r) => {
|
|
94
111
|
if (t && a in t)
|
|
95
112
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
96
|
-
return e[a] =
|
|
113
|
+
return e[a] = r, n == null || n(e), !0;
|
|
97
114
|
}
|
|
98
115
|
});
|
|
99
116
|
}
|
|
100
|
-
const
|
|
101
|
-
function
|
|
117
|
+
const Je = (e) => ($(), fe(e));
|
|
118
|
+
function j({
|
|
102
119
|
code: e,
|
|
103
120
|
context: t,
|
|
104
121
|
localState: n,
|
|
105
122
|
rootState: i,
|
|
106
123
|
rootSetState: a,
|
|
107
|
-
event:
|
|
108
|
-
isExpression:
|
|
124
|
+
event: r,
|
|
125
|
+
isExpression: o = !0
|
|
109
126
|
}) {
|
|
110
127
|
if (e === "") {
|
|
111
|
-
|
|
128
|
+
D.warn("Skipping evaluation of empty code block.");
|
|
112
129
|
return;
|
|
113
130
|
}
|
|
114
131
|
const c = {
|
|
115
|
-
code:
|
|
116
|
-
isExpression:
|
|
132
|
+
code: Qe(e, {
|
|
133
|
+
isExpression: o
|
|
117
134
|
}),
|
|
118
|
-
builder:
|
|
135
|
+
builder: Ye(),
|
|
119
136
|
context: t,
|
|
120
|
-
event:
|
|
137
|
+
event: r,
|
|
121
138
|
rootSetState: a,
|
|
122
139
|
rootState: i,
|
|
123
140
|
localState: n
|
|
124
141
|
};
|
|
125
142
|
try {
|
|
126
|
-
return
|
|
143
|
+
return Je(c);
|
|
127
144
|
} catch (s) {
|
|
128
|
-
|
|
145
|
+
D.error("Failed code evaluation: " + s.message, {
|
|
129
146
|
code: e
|
|
130
147
|
});
|
|
131
148
|
return;
|
|
132
149
|
}
|
|
133
150
|
}
|
|
134
|
-
const
|
|
151
|
+
const Xe = (e, t, n) => {
|
|
135
152
|
if (Object(e) !== e)
|
|
136
153
|
return e;
|
|
137
154
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
138
|
-
return i.slice(0, -1).reduce((a,
|
|
155
|
+
return i.slice(0, -1).reduce((a, r, o) => Object(a[r]) === a[r] ? a[r] : a[r] = Math.abs(Number(i[o + 1])) >> 0 === +i[o + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
139
156
|
};
|
|
140
|
-
const
|
|
157
|
+
const Ze = ({
|
|
141
158
|
block: e,
|
|
142
159
|
context: t,
|
|
143
160
|
localState: n,
|
|
@@ -146,58 +163,58 @@ const Ye = ({
|
|
|
146
163
|
}) => {
|
|
147
164
|
if (!e.bindings)
|
|
148
165
|
return e;
|
|
149
|
-
const
|
|
150
|
-
...
|
|
166
|
+
const r = te(e), o = {
|
|
167
|
+
...r,
|
|
151
168
|
properties: {
|
|
152
|
-
...
|
|
169
|
+
...r.properties
|
|
153
170
|
},
|
|
154
171
|
actions: {
|
|
155
|
-
...
|
|
172
|
+
...r.actions
|
|
156
173
|
}
|
|
157
174
|
};
|
|
158
175
|
for (const c in e.bindings) {
|
|
159
|
-
const s = e.bindings[c], d =
|
|
176
|
+
const s = e.bindings[c], d = j({
|
|
160
177
|
code: s,
|
|
161
178
|
localState: n,
|
|
162
179
|
rootState: i,
|
|
163
180
|
rootSetState: a,
|
|
164
181
|
context: t
|
|
165
182
|
});
|
|
166
|
-
|
|
183
|
+
Xe(o, c, d);
|
|
167
184
|
}
|
|
168
|
-
return
|
|
185
|
+
return o;
|
|
169
186
|
};
|
|
170
|
-
function
|
|
187
|
+
function O({
|
|
171
188
|
block: e,
|
|
172
189
|
context: t,
|
|
173
190
|
shouldEvaluateBindings: n,
|
|
174
191
|
localState: i,
|
|
175
192
|
rootState: a,
|
|
176
|
-
rootSetState:
|
|
193
|
+
rootSetState: r
|
|
177
194
|
}) {
|
|
178
|
-
const
|
|
179
|
-
return n ?
|
|
180
|
-
block:
|
|
195
|
+
const o = e;
|
|
196
|
+
return n ? Ze({
|
|
197
|
+
block: o,
|
|
181
198
|
localState: i,
|
|
182
199
|
rootState: a,
|
|
183
|
-
rootSetState:
|
|
200
|
+
rootSetState: r,
|
|
184
201
|
context: t
|
|
185
|
-
}) :
|
|
202
|
+
}) : o;
|
|
186
203
|
}
|
|
187
|
-
const
|
|
204
|
+
const et = ({
|
|
188
205
|
block: e,
|
|
189
206
|
context: t,
|
|
190
207
|
registeredComponents: n
|
|
191
208
|
}) => {
|
|
192
|
-
var
|
|
193
|
-
const i = (
|
|
209
|
+
var r;
|
|
210
|
+
const i = (r = O({
|
|
194
211
|
block: e,
|
|
195
212
|
localState: t.localState,
|
|
196
213
|
rootState: t.rootState,
|
|
197
214
|
rootSetState: t.rootSetState,
|
|
198
215
|
context: t.context,
|
|
199
216
|
shouldEvaluateBindings: !1
|
|
200
|
-
}).component) == null ? void 0 :
|
|
217
|
+
}).component) == null ? void 0 : r.name;
|
|
201
218
|
if (!i)
|
|
202
219
|
return null;
|
|
203
220
|
const a = n[i];
|
|
@@ -206,7 +223,7 @@ const Qe = ({
|
|
|
206
223
|
console.warn(`
|
|
207
224
|
Could not find a registered component named "${i}".
|
|
208
225
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
209
|
-
},
|
|
226
|
+
}, tt = ({
|
|
210
227
|
block: e,
|
|
211
228
|
context: t
|
|
212
229
|
}) => {
|
|
@@ -216,7 +233,7 @@ const Qe = ({
|
|
|
216
233
|
} = e;
|
|
217
234
|
if (!(n != null && n.collection))
|
|
218
235
|
return;
|
|
219
|
-
const a =
|
|
236
|
+
const a = j({
|
|
220
237
|
code: n.collection,
|
|
221
238
|
localState: t.localState,
|
|
222
239
|
rootState: t.rootState,
|
|
@@ -225,7 +242,7 @@ const Qe = ({
|
|
|
225
242
|
});
|
|
226
243
|
if (!Array.isArray(a))
|
|
227
244
|
return;
|
|
228
|
-
const
|
|
245
|
+
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
229
246
|
return a.map((s, d) => ({
|
|
230
247
|
context: {
|
|
231
248
|
...t,
|
|
@@ -233,13 +250,13 @@ const Qe = ({
|
|
|
233
250
|
...t.localState,
|
|
234
251
|
$index: d,
|
|
235
252
|
$item: s,
|
|
236
|
-
[
|
|
237
|
-
[`$${
|
|
253
|
+
[o]: s,
|
|
254
|
+
[`$${o}Index`]: d
|
|
238
255
|
}
|
|
239
256
|
},
|
|
240
257
|
block: i
|
|
241
258
|
}));
|
|
242
|
-
},
|
|
259
|
+
}, Ie = {
|
|
243
260
|
small: {
|
|
244
261
|
min: 320,
|
|
245
262
|
default: 321,
|
|
@@ -255,11 +272,11 @@ const Qe = ({
|
|
|
255
272
|
default: 991,
|
|
256
273
|
max: 1200
|
|
257
274
|
}
|
|
258
|
-
},
|
|
275
|
+
}, he = (e, t = Ie) => `@media (max-width: ${t[e].max}px)`, Te = ({
|
|
259
276
|
small: e,
|
|
260
277
|
medium: t
|
|
261
278
|
}) => {
|
|
262
|
-
const n =
|
|
279
|
+
const n = te(Ie);
|
|
263
280
|
if (!e || !t)
|
|
264
281
|
return n;
|
|
265
282
|
const i = Math.floor(e / 2);
|
|
@@ -274,35 +291,35 @@ const Qe = ({
|
|
|
274
291
|
min: a,
|
|
275
292
|
default: a + 1
|
|
276
293
|
};
|
|
277
|
-
const
|
|
294
|
+
const r = n.medium.max + 1;
|
|
278
295
|
return n.large = {
|
|
279
296
|
max: 2e3,
|
|
280
297
|
// TODO: decide upper limit
|
|
281
|
-
min:
|
|
282
|
-
default:
|
|
298
|
+
min: r,
|
|
299
|
+
default: r + 1
|
|
283
300
|
}, n;
|
|
284
|
-
},
|
|
301
|
+
}, nt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Re = (e) => Object.entries(e).map(([n, i]) => {
|
|
285
302
|
if (typeof i == "string")
|
|
286
|
-
return `${
|
|
287
|
-
}).filter(
|
|
288
|
-
`),
|
|
303
|
+
return `${nt(n)}: ${i};`;
|
|
304
|
+
}).filter(X), it = (e) => Re(e).join(`
|
|
305
|
+
`), G = ({
|
|
289
306
|
mediaQuery: e,
|
|
290
307
|
className: t,
|
|
291
308
|
styles: n
|
|
292
309
|
}) => {
|
|
293
310
|
const i = `.${t} {
|
|
294
|
-
${
|
|
311
|
+
${it(n)}
|
|
295
312
|
}`;
|
|
296
313
|
return e ? `${e} {
|
|
297
314
|
${i}
|
|
298
315
|
}` : i;
|
|
299
316
|
};
|
|
300
|
-
function
|
|
301
|
-
return /* @__PURE__ */
|
|
317
|
+
function K(e) {
|
|
318
|
+
return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
302
319
|
}
|
|
303
|
-
function
|
|
320
|
+
function at(e) {
|
|
304
321
|
function t() {
|
|
305
|
-
const i =
|
|
322
|
+
const i = O({
|
|
306
323
|
block: e.block,
|
|
307
324
|
localState: e.context.localState,
|
|
308
325
|
rootState: e.context.rootState,
|
|
@@ -310,48 +327,48 @@ function Ze(e) {
|
|
|
310
327
|
context: e.context.context,
|
|
311
328
|
shouldEvaluateBindings: !0
|
|
312
329
|
});
|
|
313
|
-
return
|
|
330
|
+
return X(i.hide) ? !i.hide : X(i.show) ? i.show : !0;
|
|
314
331
|
}
|
|
315
332
|
function n() {
|
|
316
|
-
var
|
|
317
|
-
const i =
|
|
333
|
+
var S;
|
|
334
|
+
const i = O({
|
|
318
335
|
block: e.block,
|
|
319
336
|
localState: e.context.localState,
|
|
320
337
|
rootState: e.context.rootState,
|
|
321
338
|
rootSetState: e.context.rootSetState,
|
|
322
339
|
context: e.context.context,
|
|
323
340
|
shouldEvaluateBindings: !0
|
|
324
|
-
}), a = i.responsiveStyles,
|
|
325
|
-
((
|
|
341
|
+
}), a = i.responsiveStyles, r = e.context.content, o = Te(
|
|
342
|
+
((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
|
|
326
343
|
), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, m = i.id;
|
|
327
344
|
if (!m)
|
|
328
345
|
return "";
|
|
329
|
-
const g = c ?
|
|
346
|
+
const g = c ? G({
|
|
330
347
|
className: m,
|
|
331
348
|
styles: c
|
|
332
|
-
}) : "",
|
|
349
|
+
}) : "", k = s ? G({
|
|
333
350
|
className: m,
|
|
334
351
|
styles: s,
|
|
335
|
-
mediaQuery:
|
|
352
|
+
mediaQuery: he(
|
|
336
353
|
"medium",
|
|
337
|
-
|
|
354
|
+
o
|
|
338
355
|
)
|
|
339
|
-
}) : "",
|
|
356
|
+
}) : "", x = d ? G({
|
|
340
357
|
className: m,
|
|
341
358
|
styles: d,
|
|
342
|
-
mediaQuery:
|
|
359
|
+
mediaQuery: he(
|
|
343
360
|
"small",
|
|
344
|
-
|
|
361
|
+
o
|
|
345
362
|
)
|
|
346
363
|
}) : "";
|
|
347
|
-
return [g,
|
|
364
|
+
return [g, k, x].join(" ");
|
|
348
365
|
}
|
|
349
|
-
return /* @__PURE__ */
|
|
366
|
+
return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(K, { styles: n() }) }) : null });
|
|
350
367
|
}
|
|
351
|
-
function
|
|
368
|
+
function ot(e) {
|
|
352
369
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
353
370
|
}
|
|
354
|
-
const
|
|
371
|
+
const rt = (e) => `on${ot(e)}`, lt = (e, t) => (n) => j({
|
|
355
372
|
code: e,
|
|
356
373
|
context: t.context,
|
|
357
374
|
localState: t.localState,
|
|
@@ -360,80 +377,92 @@ const tt = (e) => `on${et(e)}`, nt = (e, t) => (n) => _({
|
|
|
360
377
|
event: n,
|
|
361
378
|
isExpression: !1
|
|
362
379
|
});
|
|
363
|
-
function
|
|
380
|
+
function Ee(e) {
|
|
364
381
|
var i;
|
|
365
382
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
366
383
|
for (const a in n) {
|
|
367
384
|
if (!n.hasOwnProperty(a))
|
|
368
385
|
continue;
|
|
369
|
-
const
|
|
370
|
-
let
|
|
386
|
+
const r = n[a];
|
|
387
|
+
let o = rt(a);
|
|
371
388
|
if (e.stripPrefix)
|
|
372
|
-
switch (
|
|
389
|
+
switch (N) {
|
|
373
390
|
case "vue":
|
|
374
|
-
|
|
391
|
+
o = o.replace("v-on:", "");
|
|
375
392
|
break;
|
|
376
393
|
case "svelte":
|
|
377
|
-
|
|
394
|
+
o = o.replace("on:", "");
|
|
378
395
|
break;
|
|
379
396
|
}
|
|
380
|
-
t[
|
|
397
|
+
t[o] = lt(r, e);
|
|
381
398
|
}
|
|
382
399
|
return t;
|
|
383
400
|
}
|
|
384
|
-
function
|
|
401
|
+
function ct({
|
|
402
|
+
style: e
|
|
403
|
+
}) {
|
|
404
|
+
return e;
|
|
405
|
+
}
|
|
406
|
+
const st = ({
|
|
407
|
+
block: e,
|
|
408
|
+
context: t
|
|
409
|
+
}) => Pe(ct({
|
|
410
|
+
style: e.style || {},
|
|
411
|
+
context: t,
|
|
412
|
+
block: e
|
|
413
|
+
}));
|
|
414
|
+
function Pe(e) {
|
|
415
|
+
switch (N) {
|
|
416
|
+
case "svelte":
|
|
417
|
+
case "vue":
|
|
418
|
+
case "solid":
|
|
419
|
+
return Re(e).join(" ");
|
|
420
|
+
case "qwik":
|
|
421
|
+
case "reactNative":
|
|
422
|
+
case "react":
|
|
423
|
+
case "rsc":
|
|
424
|
+
return e;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
function dt({
|
|
385
428
|
properties: e
|
|
386
429
|
}) {
|
|
387
|
-
return e
|
|
430
|
+
return e;
|
|
388
431
|
}
|
|
389
|
-
const
|
|
432
|
+
const ut = (e) => ({
|
|
390
433
|
href: e.href
|
|
391
434
|
});
|
|
392
|
-
function
|
|
435
|
+
function ae({
|
|
393
436
|
block: e,
|
|
394
437
|
context: t
|
|
395
438
|
}) {
|
|
396
439
|
var i;
|
|
397
440
|
const n = {
|
|
398
|
-
...
|
|
441
|
+
...ut(e),
|
|
399
442
|
...e.properties,
|
|
400
443
|
"builder-id": e.id,
|
|
401
|
-
style:
|
|
402
|
-
|
|
444
|
+
style: st({
|
|
445
|
+
block: e,
|
|
446
|
+
context: t
|
|
447
|
+
}),
|
|
448
|
+
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
403
449
|
};
|
|
404
|
-
return
|
|
450
|
+
return dt({
|
|
405
451
|
properties: n,
|
|
406
452
|
context: t,
|
|
407
453
|
block: e
|
|
408
454
|
});
|
|
409
455
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
case "vue":
|
|
414
|
-
case "solid":
|
|
415
|
-
return Te(e).join(" ");
|
|
416
|
-
case "qwik":
|
|
417
|
-
case "reactNative":
|
|
418
|
-
case "react":
|
|
419
|
-
case "rsc":
|
|
420
|
-
return e;
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && rt.has(e.toLowerCase());
|
|
424
|
-
function ct(e) {
|
|
425
|
-
return /* @__PURE__ */ o(h, { children: lt(e.TagName) ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ o(h, { children: typeof e.TagName == "string" ? /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ o(h, { children: /* @__PURE__ */ o(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
426
|
-
}
|
|
427
|
-
function st(e) {
|
|
428
|
-
return /* @__PURE__ */ o(
|
|
429
|
-
ct,
|
|
456
|
+
function mt(e) {
|
|
457
|
+
return /* @__PURE__ */ l(
|
|
458
|
+
ne,
|
|
430
459
|
{
|
|
431
460
|
TagName: e.Wrapper,
|
|
432
|
-
attributes:
|
|
461
|
+
attributes: ae({
|
|
433
462
|
block: e.block,
|
|
434
463
|
context: e.context
|
|
435
464
|
}),
|
|
436
|
-
actionAttributes:
|
|
465
|
+
actionAttributes: Ee({
|
|
437
466
|
block: e.block,
|
|
438
467
|
rootState: e.context.rootState,
|
|
439
468
|
rootSetState: e.context.rootSetState,
|
|
@@ -445,17 +474,17 @@ function st(e) {
|
|
|
445
474
|
}
|
|
446
475
|
);
|
|
447
476
|
}
|
|
448
|
-
function
|
|
449
|
-
return /* @__PURE__ */
|
|
477
|
+
function ft(e) {
|
|
478
|
+
return /* @__PURE__ */ l(
|
|
450
479
|
e.Wrapper,
|
|
451
480
|
{
|
|
452
481
|
...e.wrapperProps,
|
|
453
482
|
attributes: e.includeBlockProps ? {
|
|
454
|
-
...
|
|
483
|
+
...ae({
|
|
455
484
|
block: e.block,
|
|
456
485
|
context: e.context
|
|
457
486
|
}),
|
|
458
|
-
...
|
|
487
|
+
...Ee({
|
|
459
488
|
block: e.block,
|
|
460
489
|
rootState: e.context.rootState,
|
|
461
490
|
rootSetState: e.context.rootSetState,
|
|
@@ -467,14 +496,14 @@ function dt(e) {
|
|
|
467
496
|
}
|
|
468
497
|
);
|
|
469
498
|
}
|
|
470
|
-
const
|
|
499
|
+
const ht = ({
|
|
471
500
|
componentOptions: e,
|
|
472
501
|
builderBlock: t,
|
|
473
502
|
context: n,
|
|
474
503
|
componentRef: i,
|
|
475
504
|
includeBlockProps: a,
|
|
476
|
-
isInteractive:
|
|
477
|
-
contextValue:
|
|
505
|
+
isInteractive: r,
|
|
506
|
+
contextValue: o
|
|
478
507
|
}) => {
|
|
479
508
|
const c = {
|
|
480
509
|
...e,
|
|
@@ -483,13 +512,13 @@ const ut = ({
|
|
|
483
512
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
484
513
|
*/
|
|
485
514
|
...a ? {
|
|
486
|
-
attributes:
|
|
515
|
+
attributes: ae({
|
|
487
516
|
block: t,
|
|
488
|
-
context:
|
|
517
|
+
context: o
|
|
489
518
|
})
|
|
490
519
|
} : {}
|
|
491
520
|
};
|
|
492
|
-
return
|
|
521
|
+
return r ? {
|
|
493
522
|
Wrapper: i,
|
|
494
523
|
block: t,
|
|
495
524
|
context: n,
|
|
@@ -497,64 +526,67 @@ const ut = ({
|
|
|
497
526
|
includeBlockProps: a
|
|
498
527
|
} : c;
|
|
499
528
|
};
|
|
500
|
-
function
|
|
529
|
+
function ge(e) {
|
|
501
530
|
var i;
|
|
502
|
-
const [t, n] =
|
|
503
|
-
() => e.isInteractive ?
|
|
531
|
+
const [t, n] = v(
|
|
532
|
+
() => e.isInteractive ? ft : e.componentRef
|
|
504
533
|
);
|
|
505
|
-
return /* @__PURE__ */
|
|
534
|
+
return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
506
535
|
t,
|
|
507
536
|
{
|
|
508
|
-
...
|
|
537
|
+
...ht({
|
|
509
538
|
componentOptions: e.componentOptions,
|
|
510
539
|
builderBlock: e.builderBlock,
|
|
511
540
|
context: e.context,
|
|
512
541
|
componentRef: e.componentRef,
|
|
542
|
+
linkComponent: e.linkComponent,
|
|
513
543
|
includeBlockProps: e.includeBlockProps,
|
|
514
544
|
isInteractive: e.isInteractive,
|
|
515
545
|
contextValue: e.context
|
|
516
546
|
}),
|
|
517
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */
|
|
518
|
-
|
|
547
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ l(
|
|
548
|
+
z,
|
|
519
549
|
{
|
|
520
550
|
block: a,
|
|
521
551
|
context: e.context,
|
|
522
|
-
registeredComponents: e.registeredComponents
|
|
552
|
+
registeredComponents: e.registeredComponents,
|
|
553
|
+
linkComponent: e.linkComponent
|
|
523
554
|
},
|
|
524
555
|
a.id
|
|
525
556
|
))
|
|
526
557
|
}
|
|
527
558
|
) }) : null });
|
|
528
559
|
}
|
|
529
|
-
function
|
|
530
|
-
const [t, n] =
|
|
531
|
-
return /* @__PURE__ */
|
|
532
|
-
|
|
560
|
+
function gt(e) {
|
|
561
|
+
const [t, n] = v(() => e.repeatContext);
|
|
562
|
+
return /* @__PURE__ */ l(ie.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
563
|
+
z,
|
|
533
564
|
{
|
|
534
565
|
block: e.block,
|
|
535
566
|
context: t,
|
|
536
|
-
registeredComponents: e.registeredComponents
|
|
567
|
+
registeredComponents: e.registeredComponents,
|
|
568
|
+
linkComponent: e.linkComponent
|
|
537
569
|
}
|
|
538
570
|
) });
|
|
539
571
|
}
|
|
540
|
-
function
|
|
541
|
-
var m, g,
|
|
572
|
+
function z(e) {
|
|
573
|
+
var m, g, k;
|
|
542
574
|
function t() {
|
|
543
|
-
return
|
|
575
|
+
return et({
|
|
544
576
|
block: e.block,
|
|
545
577
|
context: e.context,
|
|
546
578
|
registeredComponents: e.registeredComponents
|
|
547
579
|
});
|
|
548
580
|
}
|
|
549
581
|
function n() {
|
|
550
|
-
return
|
|
582
|
+
return tt({
|
|
551
583
|
block: e.block,
|
|
552
584
|
context: e.context
|
|
553
585
|
});
|
|
554
586
|
}
|
|
555
587
|
function i() {
|
|
556
|
-
var
|
|
557
|
-
return (
|
|
588
|
+
var x;
|
|
589
|
+
return (x = e.block.repeat) != null && x.collection ? e.block : O({
|
|
558
590
|
block: e.block,
|
|
559
591
|
localState: e.context.localState,
|
|
560
592
|
rootState: e.context.rootState,
|
|
@@ -564,103 +596,113 @@ function K(e) {
|
|
|
564
596
|
});
|
|
565
597
|
}
|
|
566
598
|
function a() {
|
|
567
|
-
|
|
599
|
+
var S;
|
|
600
|
+
return e.block.tagName === "a" || ((S = i().properties) == null ? void 0 : S.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
568
601
|
}
|
|
569
|
-
function
|
|
602
|
+
function r() {
|
|
570
603
|
var C, R;
|
|
571
604
|
if ((C = e.block.repeat) != null && C.collection)
|
|
572
605
|
return !!((R = n == null ? void 0 : n()) != null && R.length);
|
|
573
|
-
const
|
|
574
|
-
return ("show" in i() ? i().show : !0) && !
|
|
606
|
+
const x = "hide" in i() ? i().hide : !1;
|
|
607
|
+
return ("show" in i() ? i().show : !0) && !x;
|
|
575
608
|
}
|
|
576
|
-
function
|
|
577
|
-
var
|
|
578
|
-
return !((
|
|
609
|
+
function o() {
|
|
610
|
+
var S, C;
|
|
611
|
+
return !((S = t == null ? void 0 : t()) != null && S.component) && !n() ? (C = i().children) != null ? C : [] : [];
|
|
579
612
|
}
|
|
580
613
|
function c() {
|
|
581
|
-
var
|
|
614
|
+
var x, S, C, R, B, w, I, P, W;
|
|
582
615
|
return {
|
|
583
|
-
blockChildren: (
|
|
584
|
-
componentRef: (
|
|
616
|
+
blockChildren: (x = i().children) != null ? x : [],
|
|
617
|
+
componentRef: (S = t == null ? void 0 : t()) == null ? void 0 : S.component,
|
|
585
618
|
componentOptions: {
|
|
586
|
-
...
|
|
619
|
+
...ze(i()),
|
|
587
620
|
builderContext: e.context,
|
|
588
|
-
...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "
|
|
621
|
+
...((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Core:Button" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((B = t == null ? void 0 : t()) == null ? void 0 : B.name) === "Columns" ? {
|
|
622
|
+
builderLinkComponent: e.linkComponent
|
|
623
|
+
} : {},
|
|
624
|
+
...((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Symbol" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Columns" ? {
|
|
589
625
|
builderComponents: e.registeredComponents
|
|
590
626
|
} : {}
|
|
591
627
|
},
|
|
592
628
|
context: s,
|
|
629
|
+
linkComponent: e.linkComponent,
|
|
593
630
|
registeredComponents: e.registeredComponents,
|
|
594
631
|
builderBlock: i(),
|
|
595
632
|
includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
|
|
596
|
-
isInteractive: !((
|
|
633
|
+
isInteractive: !((W = t == null ? void 0 : t()) != null && W.isRSC)
|
|
597
634
|
};
|
|
598
635
|
}
|
|
599
|
-
const [s, d] =
|
|
600
|
-
return /* @__PURE__ */
|
|
601
|
-
/* @__PURE__ */
|
|
602
|
-
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */
|
|
603
|
-
|
|
636
|
+
const [s, d] = v(() => e.context);
|
|
637
|
+
return /* @__PURE__ */ l(h, { children: r() ? /* @__PURE__ */ A(h, { children: [
|
|
638
|
+
/* @__PURE__ */ l(at, { block: e.block, context: e.context }),
|
|
639
|
+
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
640
|
+
ge,
|
|
604
641
|
{
|
|
605
642
|
componentRef: c().componentRef,
|
|
606
643
|
componentOptions: c().componentOptions,
|
|
607
644
|
blockChildren: c().blockChildren,
|
|
608
645
|
context: c().context,
|
|
609
646
|
registeredComponents: c().registeredComponents,
|
|
647
|
+
linkComponent: c().linkComponent,
|
|
610
648
|
builderBlock: c().builderBlock,
|
|
611
649
|
includeBlockProps: c().includeBlockProps,
|
|
612
650
|
isInteractive: c().isInteractive
|
|
613
651
|
}
|
|
614
|
-
) }) : /* @__PURE__ */
|
|
615
|
-
|
|
652
|
+
) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((x, S) => /* @__PURE__ */ l(
|
|
653
|
+
gt,
|
|
616
654
|
{
|
|
617
|
-
repeatContext:
|
|
618
|
-
block:
|
|
619
|
-
registeredComponents: e.registeredComponents
|
|
655
|
+
repeatContext: x.context,
|
|
656
|
+
block: x.block,
|
|
657
|
+
registeredComponents: e.registeredComponents,
|
|
658
|
+
linkComponent: e.linkComponent
|
|
620
659
|
},
|
|
621
|
-
|
|
622
|
-
)) }) : /* @__PURE__ */
|
|
623
|
-
|
|
660
|
+
S
|
|
661
|
+
)) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ A(
|
|
662
|
+
mt,
|
|
624
663
|
{
|
|
625
664
|
Wrapper: a(),
|
|
626
665
|
block: i(),
|
|
627
666
|
context: e.context,
|
|
667
|
+
linkComponent: e.linkComponent,
|
|
628
668
|
children: [
|
|
629
|
-
/* @__PURE__ */
|
|
630
|
-
|
|
669
|
+
/* @__PURE__ */ l(
|
|
670
|
+
ge,
|
|
631
671
|
{
|
|
632
672
|
componentRef: c().componentRef,
|
|
633
673
|
componentOptions: c().componentOptions,
|
|
634
674
|
blockChildren: c().blockChildren,
|
|
635
675
|
context: c().context,
|
|
636
676
|
registeredComponents: c().registeredComponents,
|
|
677
|
+
linkComponent: c().linkComponent,
|
|
637
678
|
builderBlock: c().builderBlock,
|
|
638
679
|
includeBlockProps: c().includeBlockProps,
|
|
639
680
|
isInteractive: c().isInteractive
|
|
640
681
|
}
|
|
641
682
|
),
|
|
642
|
-
(g =
|
|
643
|
-
|
|
683
|
+
(g = o()) == null ? void 0 : g.map((x) => /* @__PURE__ */ l(
|
|
684
|
+
z,
|
|
644
685
|
{
|
|
645
|
-
block:
|
|
686
|
+
block: x,
|
|
646
687
|
context: s,
|
|
647
|
-
registeredComponents: e.registeredComponents
|
|
688
|
+
registeredComponents: e.registeredComponents,
|
|
689
|
+
linkComponent: e.linkComponent
|
|
648
690
|
},
|
|
649
|
-
|
|
691
|
+
x.id
|
|
650
692
|
))
|
|
651
693
|
]
|
|
652
694
|
}
|
|
653
695
|
) }) })
|
|
654
696
|
] }) : null });
|
|
655
697
|
}
|
|
656
|
-
function
|
|
698
|
+
function bt(e) {
|
|
657
699
|
function t() {
|
|
658
700
|
var a;
|
|
659
701
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
660
702
|
}
|
|
661
703
|
function n() {
|
|
662
|
-
var a,
|
|
663
|
-
V() && !((a = e.blocks) != null && a.length) && ((
|
|
704
|
+
var a, r;
|
|
705
|
+
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
664
706
|
{
|
|
665
707
|
type: "builder.clickEmptyBlocks",
|
|
666
708
|
data: {
|
|
@@ -672,8 +714,8 @@ function ft(e) {
|
|
|
672
714
|
));
|
|
673
715
|
}
|
|
674
716
|
function i() {
|
|
675
|
-
var a,
|
|
676
|
-
V() && !((a = e.blocks) != null && a.length) && ((
|
|
717
|
+
var a, r;
|
|
718
|
+
V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
677
719
|
{
|
|
678
720
|
type: "builder.hoverEmptyBlocks",
|
|
679
721
|
data: {
|
|
@@ -684,8 +726,8 @@ function ft(e) {
|
|
|
684
726
|
"*"
|
|
685
727
|
));
|
|
686
728
|
}
|
|
687
|
-
return /* @__PURE__ */
|
|
688
|
-
/* @__PURE__ */
|
|
729
|
+
return /* @__PURE__ */ A(h, { children: [
|
|
730
|
+
/* @__PURE__ */ l(
|
|
689
731
|
e.BlocksWrapper,
|
|
690
732
|
{
|
|
691
733
|
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
@@ -699,18 +741,18 @@ function ft(e) {
|
|
|
699
741
|
children: e.children
|
|
700
742
|
}
|
|
701
743
|
),
|
|
702
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
703
745
|
display: flex;
|
|
704
746
|
flex-direction: column;
|
|
705
747
|
align-items: stretch;
|
|
706
748
|
}` })
|
|
707
749
|
] });
|
|
708
750
|
}
|
|
709
|
-
function
|
|
710
|
-
var i, a,
|
|
711
|
-
const t =
|
|
712
|
-
return /* @__PURE__ */
|
|
713
|
-
|
|
751
|
+
function q(e) {
|
|
752
|
+
var i, a, r;
|
|
753
|
+
const t = se(ie), n = se(we);
|
|
754
|
+
return /* @__PURE__ */ l(
|
|
755
|
+
bt,
|
|
714
756
|
{
|
|
715
757
|
blocks: e.blocks,
|
|
716
758
|
parent: e.parent,
|
|
@@ -718,23 +760,24 @@ function z(e) {
|
|
|
718
760
|
styleProp: e.styleProp,
|
|
719
761
|
BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
|
|
720
762
|
BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
|
|
721
|
-
children: e.blocks ? /* @__PURE__ */
|
|
722
|
-
|
|
763
|
+
children: e.blocks ? /* @__PURE__ */ l(h, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ l(
|
|
764
|
+
z,
|
|
723
765
|
{
|
|
724
|
-
block:
|
|
766
|
+
block: o,
|
|
767
|
+
linkComponent: e.linkComponent,
|
|
725
768
|
context: e.context || t,
|
|
726
769
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
727
770
|
},
|
|
728
|
-
|
|
771
|
+
o.id
|
|
729
772
|
)) }) : null
|
|
730
773
|
}
|
|
731
774
|
);
|
|
732
775
|
}
|
|
733
|
-
function
|
|
734
|
-
var
|
|
735
|
-
const [t, n] =
|
|
776
|
+
function yt(e) {
|
|
777
|
+
var B;
|
|
778
|
+
const [t, n] = v(
|
|
736
779
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
737
|
-
), [i, a] =
|
|
780
|
+
), [i, a] = v(() => e.columns || []), [r, o] = v(
|
|
738
781
|
() => e.stackColumnsAt || "tablet"
|
|
739
782
|
);
|
|
740
783
|
function c(w) {
|
|
@@ -749,18 +792,18 @@ function ht(e) {
|
|
|
749
792
|
stackedStyle: w,
|
|
750
793
|
desktopStyle: I
|
|
751
794
|
}) {
|
|
752
|
-
return
|
|
795
|
+
return r === "tablet" ? w : I;
|
|
753
796
|
}
|
|
754
797
|
function m({
|
|
755
798
|
stackedStyle: w,
|
|
756
799
|
desktopStyle: I
|
|
757
800
|
}) {
|
|
758
|
-
return
|
|
801
|
+
return r === "never" ? I : w;
|
|
759
802
|
}
|
|
760
|
-
const [g,
|
|
803
|
+
const [g, k] = v(
|
|
761
804
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
762
805
|
);
|
|
763
|
-
function
|
|
806
|
+
function x() {
|
|
764
807
|
return {
|
|
765
808
|
"--flex-dir": g,
|
|
766
809
|
"--flex-dir-tablet": d({
|
|
@@ -769,33 +812,38 @@ function ht(e) {
|
|
|
769
812
|
})
|
|
770
813
|
};
|
|
771
814
|
}
|
|
772
|
-
function
|
|
773
|
-
const I = w === 0 ? 0 : t,
|
|
815
|
+
function S(w) {
|
|
816
|
+
const I = w === 0 ? 0 : t, P = s(w), W = `${I}px`, F = "100%", L = 0;
|
|
774
817
|
return {
|
|
775
|
-
|
|
776
|
-
|
|
818
|
+
...{
|
|
819
|
+
display: "flex",
|
|
820
|
+
flexDirection: "column",
|
|
821
|
+
alignItems: "stretch"
|
|
822
|
+
},
|
|
823
|
+
width: P,
|
|
824
|
+
["marginLeft"]: W,
|
|
777
825
|
"--column-width-mobile": m({
|
|
778
|
-
stackedStyle:
|
|
779
|
-
desktopStyle:
|
|
826
|
+
stackedStyle: F,
|
|
827
|
+
desktopStyle: P
|
|
780
828
|
}),
|
|
781
829
|
"--column-margin-left-mobile": m({
|
|
782
|
-
stackedStyle:
|
|
783
|
-
desktopStyle:
|
|
830
|
+
stackedStyle: L,
|
|
831
|
+
desktopStyle: W
|
|
784
832
|
}),
|
|
785
833
|
"--column-width-tablet": d({
|
|
786
|
-
stackedStyle:
|
|
787
|
-
desktopStyle:
|
|
834
|
+
stackedStyle: F,
|
|
835
|
+
desktopStyle: P
|
|
788
836
|
}),
|
|
789
837
|
"--column-margin-left-tablet": d({
|
|
790
|
-
stackedStyle:
|
|
791
|
-
desktopStyle:
|
|
838
|
+
stackedStyle: L,
|
|
839
|
+
desktopStyle: W
|
|
792
840
|
})
|
|
793
841
|
};
|
|
794
842
|
}
|
|
795
843
|
function C(w) {
|
|
796
|
-
var
|
|
797
|
-
return
|
|
798
|
-
((
|
|
844
|
+
var P, W;
|
|
845
|
+
return Te(
|
|
846
|
+
((W = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : W.breakpoints) || {}
|
|
799
847
|
)[w].max;
|
|
800
848
|
}
|
|
801
849
|
function R() {
|
|
@@ -825,83 +873,87 @@ function ht(e) {
|
|
|
825
873
|
},
|
|
826
874
|
`;
|
|
827
875
|
}
|
|
828
|
-
return /* @__PURE__ */
|
|
829
|
-
/* @__PURE__ */
|
|
876
|
+
return /* @__PURE__ */ A(h, { children: [
|
|
877
|
+
/* @__PURE__ */ A(
|
|
830
878
|
"div",
|
|
831
879
|
{
|
|
832
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
833
|
-
style:
|
|
880
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
881
|
+
style: x(),
|
|
834
882
|
children: [
|
|
835
|
-
/* @__PURE__ */
|
|
836
|
-
(
|
|
837
|
-
|
|
883
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(K, { styles: R() }) }),
|
|
884
|
+
(B = e.columns) == null ? void 0 : B.map((w, I) => /* @__PURE__ */ l(
|
|
885
|
+
ne,
|
|
838
886
|
{
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
887
|
+
TagName: w.link ? e.builderLinkComponent || "a" : "div",
|
|
888
|
+
actionAttributes: {},
|
|
889
|
+
attributes: {
|
|
890
|
+
...w.link ? {
|
|
891
|
+
href: w.link
|
|
892
|
+
} : {},
|
|
893
|
+
[_()]: "builder-column",
|
|
894
|
+
style: Pe(S(I))
|
|
895
|
+
},
|
|
896
|
+
children: /* @__PURE__ */ l(
|
|
897
|
+
q,
|
|
898
|
+
{
|
|
899
|
+
path: `component.options.columns.${I}.blocks`,
|
|
900
|
+
parent: e.builderBlock.id,
|
|
901
|
+
styleProp: {
|
|
902
|
+
flexGrow: "1"
|
|
903
|
+
},
|
|
904
|
+
context: e.builderContext,
|
|
905
|
+
registeredComponents: e.builderComponents,
|
|
906
|
+
linkComponent: e.builderLinkComponent,
|
|
907
|
+
blocks: w.blocks
|
|
908
|
+
}
|
|
909
|
+
)
|
|
842
910
|
},
|
|
843
|
-
|
|
844
|
-
z,
|
|
845
|
-
{
|
|
846
|
-
path: `component.options.columns.${I}.blocks`,
|
|
847
|
-
parent: e.builderBlock.id,
|
|
848
|
-
styleProp: {
|
|
849
|
-
flexGrow: "1"
|
|
850
|
-
},
|
|
851
|
-
context: e.builderContext,
|
|
852
|
-
registeredComponents: e.builderComponents,
|
|
853
|
-
blocks: w.blocks
|
|
854
|
-
}
|
|
855
|
-
)
|
|
911
|
+
I
|
|
856
912
|
))
|
|
857
913
|
]
|
|
858
914
|
}
|
|
859
915
|
),
|
|
860
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ l("style", { children: `.div-6f826264 {
|
|
861
917
|
display: flex;
|
|
862
918
|
line-height: normal;
|
|
863
|
-
}.div-3c01d6ec-2 {
|
|
864
|
-
display: flex;
|
|
865
|
-
flex-direction: column;
|
|
866
|
-
align-items: stretch;
|
|
867
919
|
}` })
|
|
868
920
|
] });
|
|
869
921
|
}
|
|
870
|
-
function
|
|
871
|
-
return /* @__PURE__ */
|
|
922
|
+
function xt(e) {
|
|
923
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
872
924
|
}
|
|
873
|
-
function
|
|
925
|
+
function be(e) {
|
|
874
926
|
return e.replace(/http(s)?:/, "");
|
|
875
927
|
}
|
|
876
|
-
function
|
|
928
|
+
function St(e = "", t, n) {
|
|
877
929
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
878
930
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
879
931
|
}
|
|
880
|
-
function
|
|
932
|
+
function vt(e, t) {
|
|
881
933
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
882
934
|
return e;
|
|
883
935
|
if (t === "master")
|
|
884
|
-
return
|
|
936
|
+
return be(e);
|
|
885
937
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
886
938
|
if (n) {
|
|
887
|
-
const i = e.split(n[0]), a = n[3],
|
|
888
|
-
return
|
|
939
|
+
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
940
|
+
return be(`${i[0]}_${r}${a}`);
|
|
889
941
|
}
|
|
890
942
|
return null;
|
|
891
943
|
}
|
|
892
|
-
function
|
|
944
|
+
function J(e) {
|
|
893
945
|
if (!e)
|
|
894
946
|
return e;
|
|
895
947
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
896
948
|
if (e.match(/builder\.io/)) {
|
|
897
949
|
let n = e;
|
|
898
950
|
const i = Number(e.split("?width=")[1]);
|
|
899
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
951
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${St(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
900
952
|
}
|
|
901
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
953
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
902
954
|
}
|
|
903
|
-
function
|
|
904
|
-
var a,
|
|
955
|
+
function kt(e) {
|
|
956
|
+
var a, r, o, c;
|
|
905
957
|
function t() {
|
|
906
958
|
var m;
|
|
907
959
|
const d = e.image || e.src;
|
|
@@ -911,10 +963,10 @@ function yt(e) {
|
|
|
911
963
|
return e.srcset;
|
|
912
964
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
913
965
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
914
|
-
return console.debug("Removed given srcset"),
|
|
966
|
+
return console.debug("Removed given srcset"), J(d);
|
|
915
967
|
} else if (e.image && !e.srcset)
|
|
916
|
-
return
|
|
917
|
-
return
|
|
968
|
+
return J(d);
|
|
969
|
+
return J(d);
|
|
918
970
|
}
|
|
919
971
|
function n() {
|
|
920
972
|
var s;
|
|
@@ -930,11 +982,11 @@ function yt(e) {
|
|
|
930
982
|
};
|
|
931
983
|
return e.aspectRatio ? s : void 0;
|
|
932
984
|
}
|
|
933
|
-
return /* @__PURE__ */
|
|
934
|
-
/* @__PURE__ */
|
|
935
|
-
/* @__PURE__ */
|
|
936
|
-
n() ? /* @__PURE__ */
|
|
937
|
-
/* @__PURE__ */
|
|
985
|
+
return /* @__PURE__ */ A(h, { children: [
|
|
986
|
+
/* @__PURE__ */ A(h, { children: [
|
|
987
|
+
/* @__PURE__ */ A("picture", { children: [
|
|
988
|
+
n() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
989
|
+
/* @__PURE__ */ l(
|
|
938
990
|
"img",
|
|
939
991
|
{
|
|
940
992
|
loading: "lazy",
|
|
@@ -952,7 +1004,7 @@ function yt(e) {
|
|
|
952
1004
|
}
|
|
953
1005
|
)
|
|
954
1006
|
] }),
|
|
955
|
-
e.aspectRatio && !((
|
|
1007
|
+
e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
956
1008
|
"div",
|
|
957
1009
|
{
|
|
958
1010
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -961,10 +1013,10 @@ function yt(e) {
|
|
|
961
1013
|
}
|
|
962
1014
|
}
|
|
963
1015
|
) }) : null,
|
|
964
|
-
(c = (
|
|
965
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1016
|
+
(c = (o = e.builderBlock) == null ? void 0 : o.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
|
|
1017
|
+
!e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
966
1018
|
] }),
|
|
967
|
-
/* @__PURE__ */
|
|
1019
|
+
/* @__PURE__ */ l("style", { children: `.img-40c70c9b {
|
|
968
1020
|
opacity: 1;
|
|
969
1021
|
transition: opacity 0.2s ease-in-out;
|
|
970
1022
|
}.div-40c70c9b {
|
|
@@ -983,8 +1035,8 @@ function yt(e) {
|
|
|
983
1035
|
}` })
|
|
984
1036
|
] });
|
|
985
1037
|
}
|
|
986
|
-
function
|
|
987
|
-
return /* @__PURE__ */
|
|
1038
|
+
function pt(e) {
|
|
1039
|
+
return /* @__PURE__ */ l(
|
|
988
1040
|
"section",
|
|
989
1041
|
{
|
|
990
1042
|
...e.attributes,
|
|
@@ -1004,7 +1056,7 @@ function St(e) {
|
|
|
1004
1056
|
}
|
|
1005
1057
|
);
|
|
1006
1058
|
}
|
|
1007
|
-
const
|
|
1059
|
+
const Ct = {
|
|
1008
1060
|
name: "Core:Button",
|
|
1009
1061
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1010
1062
|
defaultStyles: {
|
|
@@ -1037,7 +1089,7 @@ const vt = {
|
|
|
1037
1089
|
}],
|
|
1038
1090
|
static: !0,
|
|
1039
1091
|
noWrap: !0
|
|
1040
|
-
},
|
|
1092
|
+
}, wt = {
|
|
1041
1093
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1042
1094
|
name: "Columns",
|
|
1043
1095
|
isRSC: !0,
|
|
@@ -1216,7 +1268,7 @@ const vt = {
|
|
|
1216
1268
|
});
|
|
1217
1269
|
}
|
|
1218
1270
|
const n = e.get("columns");
|
|
1219
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((
|
|
1271
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
|
|
1220
1272
|
}
|
|
1221
1273
|
}, {
|
|
1222
1274
|
name: "space",
|
|
@@ -1238,7 +1290,7 @@ const vt = {
|
|
|
1238
1290
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1239
1291
|
advanced: !0
|
|
1240
1292
|
}]
|
|
1241
|
-
},
|
|
1293
|
+
}, It = {
|
|
1242
1294
|
name: "Custom Code",
|
|
1243
1295
|
static: !0,
|
|
1244
1296
|
requiredPermissions: ["editCode"],
|
|
@@ -1261,15 +1313,15 @@ const vt = {
|
|
|
1261
1313
|
advanced: !0
|
|
1262
1314
|
}]
|
|
1263
1315
|
};
|
|
1264
|
-
function
|
|
1265
|
-
const t =
|
|
1316
|
+
function Tt(e) {
|
|
1317
|
+
const t = ee(null), [n, i] = v(() => []), [a, r] = v(() => []);
|
|
1266
1318
|
return E(() => {
|
|
1267
1319
|
var c;
|
|
1268
1320
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
1269
1321
|
return;
|
|
1270
|
-
const
|
|
1271
|
-
for (let s = 0; s <
|
|
1272
|
-
const d =
|
|
1322
|
+
const o = t.current.getElementsByTagName("script");
|
|
1323
|
+
for (let s = 0; s < o.length; s++) {
|
|
1324
|
+
const d = o[s];
|
|
1273
1325
|
if (d.src) {
|
|
1274
1326
|
if (n.includes(d.src))
|
|
1275
1327
|
continue;
|
|
@@ -1290,7 +1342,7 @@ function Ct(e) {
|
|
|
1290
1342
|
}
|
|
1291
1343
|
}
|
|
1292
1344
|
}
|
|
1293
|
-
}, []), /* @__PURE__ */
|
|
1345
|
+
}, []), /* @__PURE__ */ l(
|
|
1294
1346
|
"div",
|
|
1295
1347
|
{
|
|
1296
1348
|
ref: t,
|
|
@@ -1299,7 +1351,7 @@ function Ct(e) {
|
|
|
1299
1351
|
}
|
|
1300
1352
|
);
|
|
1301
1353
|
}
|
|
1302
|
-
const
|
|
1354
|
+
const Rt = {
|
|
1303
1355
|
name: "Embed",
|
|
1304
1356
|
static: !0,
|
|
1305
1357
|
inputs: [{
|
|
@@ -1324,9 +1376,9 @@ const wt = {
|
|
|
1324
1376
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1325
1377
|
hideFromUI: !0
|
|
1326
1378
|
}]
|
|
1327
|
-
},
|
|
1328
|
-
function
|
|
1329
|
-
const t =
|
|
1379
|
+
}, Et = ["text/javascript", "application/javascript", "application/ecmascript"], Pt = (e) => Et.includes(e.type);
|
|
1380
|
+
function Bt(e) {
|
|
1381
|
+
const t = ee(null), [n, i] = v(() => []), [a, r] = v(() => []), [o, c] = v(() => !1);
|
|
1330
1382
|
function s() {
|
|
1331
1383
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1332
1384
|
return;
|
|
@@ -1335,19 +1387,19 @@ function Rt(e) {
|
|
|
1335
1387
|
const g = d[m];
|
|
1336
1388
|
if (g.src && !n.includes(g.src)) {
|
|
1337
1389
|
n.push(g.src);
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
} else if (
|
|
1390
|
+
const k = document.createElement("script");
|
|
1391
|
+
k.async = !0, k.src = g.src, document.head.appendChild(k);
|
|
1392
|
+
} else if (Pt(g) && !a.includes(g.innerText))
|
|
1341
1393
|
try {
|
|
1342
1394
|
a.push(g.innerText), new Function(g.innerText)();
|
|
1343
|
-
} catch (
|
|
1344
|
-
console.warn("`Embed`: Error running script:",
|
|
1395
|
+
} catch (k) {
|
|
1396
|
+
console.warn("`Embed`: Error running script:", k);
|
|
1345
1397
|
}
|
|
1346
1398
|
}
|
|
1347
1399
|
}
|
|
1348
1400
|
return E(() => {
|
|
1349
|
-
t.current && !
|
|
1350
|
-
}, [t.current,
|
|
1401
|
+
t.current && !o && (c(!0), s());
|
|
1402
|
+
}, [t.current, o]), /* @__PURE__ */ l(
|
|
1351
1403
|
"div",
|
|
1352
1404
|
{
|
|
1353
1405
|
className: "builder-embed",
|
|
@@ -1356,13 +1408,13 @@ function Rt(e) {
|
|
|
1356
1408
|
}
|
|
1357
1409
|
);
|
|
1358
1410
|
}
|
|
1359
|
-
const
|
|
1411
|
+
const Wt = {
|
|
1360
1412
|
name: "Fragment",
|
|
1361
1413
|
static: !0,
|
|
1362
1414
|
hidden: !0,
|
|
1363
1415
|
canHaveChildren: !0,
|
|
1364
1416
|
noWrap: !0
|
|
1365
|
-
},
|
|
1417
|
+
}, At = {
|
|
1366
1418
|
name: "Image",
|
|
1367
1419
|
static: !0,
|
|
1368
1420
|
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",
|
|
@@ -1382,29 +1434,29 @@ const Et = {
|
|
|
1382
1434
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1383
1435
|
onChange: (e) => {
|
|
1384
1436
|
e.delete("srcset"), e.delete("noWebp");
|
|
1385
|
-
function n(
|
|
1437
|
+
function n(o, c = 6e4) {
|
|
1386
1438
|
return new Promise((s, d) => {
|
|
1387
1439
|
const m = document.createElement("img");
|
|
1388
1440
|
let g = !1;
|
|
1389
1441
|
m.onload = () => {
|
|
1390
1442
|
g = !0, s(m);
|
|
1391
|
-
}, m.addEventListener("error", (
|
|
1392
|
-
console.warn("Image load failed",
|
|
1393
|
-
}), m.src =
|
|
1443
|
+
}, m.addEventListener("error", (k) => {
|
|
1444
|
+
console.warn("Image load failed", k.error), d(k.error);
|
|
1445
|
+
}), m.src = o, setTimeout(() => {
|
|
1394
1446
|
g || d(new Error("Image load timed out"));
|
|
1395
1447
|
}, c);
|
|
1396
1448
|
});
|
|
1397
1449
|
}
|
|
1398
|
-
function i(
|
|
1399
|
-
return Math.round(
|
|
1450
|
+
function i(o) {
|
|
1451
|
+
return Math.round(o * 1e3) / 1e3;
|
|
1400
1452
|
}
|
|
1401
|
-
const a = e.get("image"),
|
|
1402
|
-
if (fetch(a).then((
|
|
1403
|
-
|
|
1404
|
-
}), a && (!
|
|
1405
|
-
return n(a).then((
|
|
1453
|
+
const a = e.get("image"), r = e.get("aspectRatio");
|
|
1454
|
+
if (fetch(a).then((o) => o.blob()).then((o) => {
|
|
1455
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
1456
|
+
}), a && (!r || r === 0.7041))
|
|
1457
|
+
return n(a).then((o) => {
|
|
1406
1458
|
const c = e.get("aspectRatio");
|
|
1407
|
-
e.get("image") === a && (!c || c === 0.7041) &&
|
|
1459
|
+
e.get("image") === a && (!c || c === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
1408
1460
|
});
|
|
1409
1461
|
}
|
|
1410
1462
|
}, {
|
|
@@ -1462,7 +1514,7 @@ const Et = {
|
|
|
1462
1514
|
advanced: !0,
|
|
1463
1515
|
defaultValue: 0.7041
|
|
1464
1516
|
}]
|
|
1465
|
-
},
|
|
1517
|
+
}, Vt = {
|
|
1466
1518
|
// friendlyName?
|
|
1467
1519
|
name: "Raw:Img",
|
|
1468
1520
|
hideFromInsertMenu: !0,
|
|
@@ -1477,8 +1529,8 @@ const Et = {
|
|
|
1477
1529
|
noWrap: !0,
|
|
1478
1530
|
static: !0
|
|
1479
1531
|
};
|
|
1480
|
-
function
|
|
1481
|
-
return /* @__PURE__ */
|
|
1532
|
+
function $t(e) {
|
|
1533
|
+
return /* @__PURE__ */ l(
|
|
1482
1534
|
"img",
|
|
1483
1535
|
{
|
|
1484
1536
|
style: {
|
|
@@ -1492,7 +1544,7 @@ function Wt(e) {
|
|
|
1492
1544
|
V() && e.imgSrc || "default-key"
|
|
1493
1545
|
);
|
|
1494
1546
|
}
|
|
1495
|
-
const
|
|
1547
|
+
const Nt = {
|
|
1496
1548
|
name: "Core:Section",
|
|
1497
1549
|
static: !0,
|
|
1498
1550
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1531,7 +1583,7 @@ const At = {
|
|
|
1531
1583
|
}
|
|
1532
1584
|
}
|
|
1533
1585
|
}]
|
|
1534
|
-
},
|
|
1586
|
+
}, Ft = {
|
|
1535
1587
|
name: "Slot",
|
|
1536
1588
|
isRSC: !0,
|
|
1537
1589
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1545,9 +1597,9 @@ const At = {
|
|
|
1545
1597
|
defaultValue: "children"
|
|
1546
1598
|
}]
|
|
1547
1599
|
};
|
|
1548
|
-
function
|
|
1600
|
+
function Lt(e) {
|
|
1549
1601
|
var t, n, i;
|
|
1550
|
-
return /* @__PURE__ */
|
|
1602
|
+
return /* @__PURE__ */ l(
|
|
1551
1603
|
"div",
|
|
1552
1604
|
{
|
|
1553
1605
|
style: {
|
|
@@ -1556,8 +1608,8 @@ function $t(e) {
|
|
|
1556
1608
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1557
1609
|
"builder-slot": e.name
|
|
1558
1610
|
},
|
|
1559
|
-
children: /* @__PURE__ */
|
|
1560
|
-
|
|
1611
|
+
children: /* @__PURE__ */ l(
|
|
1612
|
+
q,
|
|
1561
1613
|
{
|
|
1562
1614
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1563
1615
|
path: `symbol.data.${e.name}`,
|
|
@@ -1568,7 +1620,7 @@ function $t(e) {
|
|
|
1568
1620
|
}
|
|
1569
1621
|
);
|
|
1570
1622
|
}
|
|
1571
|
-
const
|
|
1623
|
+
const _t = {
|
|
1572
1624
|
name: "Symbol",
|
|
1573
1625
|
noWrap: !0,
|
|
1574
1626
|
static: !0,
|
|
@@ -1601,7 +1653,7 @@ const Nt = {
|
|
|
1601
1653
|
hideFromUI: !0,
|
|
1602
1654
|
type: "boolean"
|
|
1603
1655
|
}]
|
|
1604
|
-
},
|
|
1656
|
+
}, jt = {
|
|
1605
1657
|
name: "Text",
|
|
1606
1658
|
static: !0,
|
|
1607
1659
|
isRSC: !0,
|
|
@@ -1620,9 +1672,9 @@ const Nt = {
|
|
|
1620
1672
|
textAlign: "center"
|
|
1621
1673
|
}
|
|
1622
1674
|
};
|
|
1623
|
-
function
|
|
1675
|
+
function Ut(e) {
|
|
1624
1676
|
var t;
|
|
1625
|
-
return /* @__PURE__ */
|
|
1677
|
+
return /* @__PURE__ */ l(
|
|
1626
1678
|
"div",
|
|
1627
1679
|
{
|
|
1628
1680
|
className: "builder-text",
|
|
@@ -1633,7 +1685,7 @@ function _t(e) {
|
|
|
1633
1685
|
}
|
|
1634
1686
|
);
|
|
1635
1687
|
}
|
|
1636
|
-
const
|
|
1688
|
+
const Mt = {
|
|
1637
1689
|
name: "Video",
|
|
1638
1690
|
canHaveChildren: !0,
|
|
1639
1691
|
defaultStyles: {
|
|
@@ -1715,8 +1767,8 @@ const Lt = {
|
|
|
1715
1767
|
advanced: !0
|
|
1716
1768
|
}]
|
|
1717
1769
|
};
|
|
1718
|
-
function
|
|
1719
|
-
var i, a,
|
|
1770
|
+
function Dt(e) {
|
|
1771
|
+
var i, a, r, o, c, s, d;
|
|
1720
1772
|
function t() {
|
|
1721
1773
|
return {
|
|
1722
1774
|
...e.autoPlay === !0 ? {
|
|
@@ -1741,14 +1793,14 @@ function jt(e) {
|
|
|
1741
1793
|
...t()
|
|
1742
1794
|
};
|
|
1743
1795
|
}
|
|
1744
|
-
return /* @__PURE__ */
|
|
1796
|
+
return /* @__PURE__ */ A(
|
|
1745
1797
|
"div",
|
|
1746
1798
|
{
|
|
1747
1799
|
style: {
|
|
1748
1800
|
position: "relative"
|
|
1749
1801
|
},
|
|
1750
1802
|
children: [
|
|
1751
|
-
/* @__PURE__ */
|
|
1803
|
+
/* @__PURE__ */ l(
|
|
1752
1804
|
"video",
|
|
1753
1805
|
{
|
|
1754
1806
|
className: "builder-video",
|
|
@@ -1770,10 +1822,10 @@ function jt(e) {
|
|
|
1770
1822
|
},
|
|
1771
1823
|
src: e.video || "no-src",
|
|
1772
1824
|
poster: e.posterImage,
|
|
1773
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
1825
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1774
1826
|
}
|
|
1775
1827
|
),
|
|
1776
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
1828
|
+
e.aspectRatio && !(e.fitContent && ((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1777
1829
|
"div",
|
|
1778
1830
|
{
|
|
1779
1831
|
style: {
|
|
@@ -1784,7 +1836,7 @@ function jt(e) {
|
|
|
1784
1836
|
}
|
|
1785
1837
|
}
|
|
1786
1838
|
) }) : null,
|
|
1787
|
-
(c = (
|
|
1839
|
+
(c = (o = e.builderBlock) == null ? void 0 : o.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1788
1840
|
"div",
|
|
1789
1841
|
{
|
|
1790
1842
|
style: {
|
|
@@ -1795,7 +1847,7 @@ function jt(e) {
|
|
|
1795
1847
|
children: e.children
|
|
1796
1848
|
}
|
|
1797
1849
|
) }) : null,
|
|
1798
|
-
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */
|
|
1850
|
+
(d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1799
1851
|
"div",
|
|
1800
1852
|
{
|
|
1801
1853
|
style: {
|
|
@@ -1816,43 +1868,43 @@ function jt(e) {
|
|
|
1816
1868
|
}
|
|
1817
1869
|
);
|
|
1818
1870
|
}
|
|
1819
|
-
const
|
|
1820
|
-
component:
|
|
1821
|
-
...
|
|
1871
|
+
const ye = () => [{
|
|
1872
|
+
component: Ke,
|
|
1873
|
+
...Ct
|
|
1822
1874
|
}, {
|
|
1823
|
-
component:
|
|
1824
|
-
...pt
|
|
1825
|
-
}, {
|
|
1826
|
-
component: Ct,
|
|
1827
|
-
...kt
|
|
1828
|
-
}, {
|
|
1829
|
-
component: Rt,
|
|
1875
|
+
component: yt,
|
|
1830
1876
|
...wt
|
|
1831
1877
|
}, {
|
|
1832
|
-
component:
|
|
1833
|
-
...
|
|
1878
|
+
component: Tt,
|
|
1879
|
+
...It
|
|
1834
1880
|
}, {
|
|
1835
|
-
component:
|
|
1836
|
-
...
|
|
1881
|
+
component: Bt,
|
|
1882
|
+
...Rt
|
|
1837
1883
|
}, {
|
|
1838
|
-
component:
|
|
1839
|
-
...
|
|
1884
|
+
component: xt,
|
|
1885
|
+
...Wt
|
|
1840
1886
|
}, {
|
|
1841
|
-
component:
|
|
1887
|
+
component: kt,
|
|
1842
1888
|
...At
|
|
1843
1889
|
}, {
|
|
1844
|
-
component:
|
|
1890
|
+
component: $t,
|
|
1891
|
+
...Vt
|
|
1892
|
+
}, {
|
|
1893
|
+
component: pt,
|
|
1845
1894
|
...Nt
|
|
1846
1895
|
}, {
|
|
1847
|
-
component:
|
|
1848
|
-
...
|
|
1896
|
+
component: mn,
|
|
1897
|
+
..._t
|
|
1849
1898
|
}, {
|
|
1850
|
-
component:
|
|
1851
|
-
...
|
|
1899
|
+
component: Ut,
|
|
1900
|
+
...jt
|
|
1852
1901
|
}, {
|
|
1853
|
-
component:
|
|
1854
|
-
...
|
|
1855
|
-
}
|
|
1902
|
+
component: Dt,
|
|
1903
|
+
...Mt
|
|
1904
|
+
}, {
|
|
1905
|
+
component: Lt,
|
|
1906
|
+
...Ft
|
|
1907
|
+
}], Ht = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1856
1908
|
function getAndSetVariantId() {
|
|
1857
1909
|
function setCookie(name, value, days) {
|
|
1858
1910
|
let expires = '';
|
|
@@ -1908,7 +1960,7 @@ const ge = () => [{
|
|
|
1908
1960
|
}).join('');
|
|
1909
1961
|
styleEl.innerHTML = newStyleStr;
|
|
1910
1962
|
}
|
|
1911
|
-
}`,
|
|
1963
|
+
}`, Ot = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1912
1964
|
if (!navigator.cookieEnabled) {
|
|
1913
1965
|
return;
|
|
1914
1966
|
}
|
|
@@ -1942,27 +1994,27 @@ const ge = () => [{
|
|
|
1942
1994
|
thisScriptEl?.remove();
|
|
1943
1995
|
}
|
|
1944
1996
|
return;
|
|
1945
|
-
}`,
|
|
1997
|
+
}`, Be = "builderIoAbTest", We = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1946
1998
|
...t,
|
|
1947
1999
|
testVariationId: t.id,
|
|
1948
2000
|
id: e == null ? void 0 : e.id
|
|
1949
|
-
})),
|
|
2001
|
+
})), Kt = ({
|
|
1950
2002
|
canTrack: e,
|
|
1951
2003
|
content: t
|
|
1952
|
-
}) => !(!(M(t).length > 0) || !e || $()),
|
|
1953
|
-
window.${
|
|
1954
|
-
window.${
|
|
1955
|
-
`,
|
|
1956
|
-
window.${
|
|
1957
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
1958
|
-
)`,
|
|
2004
|
+
}) => !(!(M(t).length > 0) || !e || $()), zt = (e) => e === "react" || e === "reactNative", Ae = zt(N), qt = () => `
|
|
2005
|
+
window.${Be} = ${Ht}
|
|
2006
|
+
window.${We} = ${Ot}
|
|
2007
|
+
`, Yt = (e, t) => `
|
|
2008
|
+
window.${Be}(
|
|
2009
|
+
"${t}",${JSON.stringify(e)}, ${Ae}
|
|
2010
|
+
)`, Qt = ({
|
|
1959
2011
|
contentId: e,
|
|
1960
2012
|
variationId: t
|
|
1961
|
-
}) => `window.${
|
|
1962
|
-
"${t}", "${e}", ${
|
|
2013
|
+
}) => `window.${We}(
|
|
2014
|
+
"${t}", "${e}", ${Ae}
|
|
1963
2015
|
)`;
|
|
1964
|
-
function
|
|
1965
|
-
return /* @__PURE__ */
|
|
2016
|
+
function Z(e) {
|
|
2017
|
+
return /* @__PURE__ */ l(
|
|
1966
2018
|
"script",
|
|
1967
2019
|
{
|
|
1968
2020
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -1970,15 +2022,15 @@ function J(e) {
|
|
|
1970
2022
|
}
|
|
1971
2023
|
);
|
|
1972
2024
|
}
|
|
1973
|
-
const
|
|
1974
|
-
function
|
|
2025
|
+
const Gt = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2026
|
+
function Ve(e, t) {
|
|
1975
2027
|
const n = new URL(t.origin), i = n.hostname;
|
|
1976
|
-
return (e ||
|
|
2028
|
+
return (e || Gt).findIndex((a) => a.startsWith("*.") ? i.endsWith(a.slice(1)) : a === i) > -1;
|
|
1977
2029
|
}
|
|
1978
|
-
function
|
|
2030
|
+
function xe(e) {
|
|
1979
2031
|
return Math.round(e * 1e3) / 1e3;
|
|
1980
2032
|
}
|
|
1981
|
-
const
|
|
2033
|
+
const Jt = (e, t, n = !0) => {
|
|
1982
2034
|
if (!(e instanceof HTMLElement))
|
|
1983
2035
|
return null;
|
|
1984
2036
|
let i = n ? e : e.parentElement;
|
|
@@ -1989,36 +2041,36 @@ const Yt = (e, t, n = !0) => {
|
|
|
1989
2041
|
return i;
|
|
1990
2042
|
} while (i = i.parentElement);
|
|
1991
2043
|
return null;
|
|
1992
|
-
},
|
|
2044
|
+
}, Xt = (e) => Jt(e, (t) => {
|
|
1993
2045
|
const n = t.getAttribute("builder-id") || t.id;
|
|
1994
2046
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
1995
|
-
}),
|
|
2047
|
+
}), Se = ({
|
|
1996
2048
|
event: e,
|
|
1997
2049
|
target: t
|
|
1998
2050
|
}) => {
|
|
1999
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top,
|
|
2051
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = xe(i / n.width), o = xe(a / n.height);
|
|
2000
2052
|
return {
|
|
2001
|
-
x:
|
|
2002
|
-
y:
|
|
2053
|
+
x: r,
|
|
2054
|
+
y: o
|
|
2003
2055
|
};
|
|
2004
|
-
},
|
|
2005
|
-
const t = e.target, n = t &&
|
|
2056
|
+
}, Zt = (e) => {
|
|
2057
|
+
const t = e.target, n = t && Xt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2006
2058
|
return {
|
|
2007
2059
|
targetBuilderElement: i || void 0,
|
|
2008
2060
|
metadata: {
|
|
2009
|
-
targetOffset: t ?
|
|
2061
|
+
targetOffset: t ? Se({
|
|
2010
2062
|
event: e,
|
|
2011
2063
|
target: t
|
|
2012
2064
|
}) : void 0,
|
|
2013
|
-
builderTargetOffset: n ?
|
|
2065
|
+
builderTargetOffset: n ? Se({
|
|
2014
2066
|
event: e,
|
|
2015
2067
|
target: n
|
|
2016
2068
|
}) : void 0,
|
|
2017
2069
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2018
2070
|
}
|
|
2019
2071
|
};
|
|
2020
|
-
},
|
|
2021
|
-
|
|
2072
|
+
}, en = "0.12.4", tn = () => {
|
|
2073
|
+
_e("insertMenu", {
|
|
2022
2074
|
name: "_default",
|
|
2023
2075
|
default: !0,
|
|
2024
2076
|
items: [{
|
|
@@ -2040,14 +2092,14 @@ const Yt = (e, t, n = !0) => {
|
|
|
2040
2092
|
}]
|
|
2041
2093
|
});
|
|
2042
2094
|
};
|
|
2043
|
-
let
|
|
2044
|
-
const
|
|
2095
|
+
let ve = !1;
|
|
2096
|
+
const nn = (e = {}) => {
|
|
2045
2097
|
var t, n;
|
|
2046
|
-
|
|
2098
|
+
ve || (ve = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
2047
2099
|
type: "builder.sdkInfo",
|
|
2048
2100
|
data: {
|
|
2049
|
-
target:
|
|
2050
|
-
version:
|
|
2101
|
+
target: N,
|
|
2102
|
+
version: en,
|
|
2051
2103
|
supportsPatchUpdates: !1,
|
|
2052
2104
|
// Supports builder-model="..." attribute which is needed to
|
|
2053
2105
|
// scope our '+ add block' button styling
|
|
@@ -2060,8 +2112,8 @@ const Zt = (e = {}) => {
|
|
|
2060
2112
|
options: e
|
|
2061
2113
|
}
|
|
2062
2114
|
}, "*"), window.addEventListener("message", (i) => {
|
|
2063
|
-
var
|
|
2064
|
-
if (!
|
|
2115
|
+
var r, o;
|
|
2116
|
+
if (!Ve(e.trustedHosts, i))
|
|
2065
2117
|
return;
|
|
2066
2118
|
const {
|
|
2067
2119
|
data: a
|
|
@@ -2070,28 +2122,28 @@ const Zt = (e = {}) => {
|
|
|
2070
2122
|
switch (a.type) {
|
|
2071
2123
|
case "builder.evaluate": {
|
|
2072
2124
|
const c = a.data.text, s = a.data.arguments || [], d = a.data.id, m = new Function(c);
|
|
2073
|
-
let g,
|
|
2125
|
+
let g, k = null;
|
|
2074
2126
|
try {
|
|
2075
2127
|
g = m.apply(null, s);
|
|
2076
|
-
} catch (
|
|
2077
|
-
|
|
2128
|
+
} catch (x) {
|
|
2129
|
+
k = x;
|
|
2078
2130
|
}
|
|
2079
|
-
|
|
2131
|
+
k ? (r = window.parent) == null || r.postMessage({
|
|
2080
2132
|
type: "builder.evaluateError",
|
|
2081
2133
|
data: {
|
|
2082
2134
|
id: d,
|
|
2083
|
-
error:
|
|
2135
|
+
error: k.message
|
|
2084
2136
|
}
|
|
2085
|
-
}, "*") : g && typeof g.then == "function" ? g.then((
|
|
2086
|
-
var
|
|
2087
|
-
(
|
|
2137
|
+
}, "*") : g && typeof g.then == "function" ? g.then((x) => {
|
|
2138
|
+
var S;
|
|
2139
|
+
(S = window.parent) == null || S.postMessage({
|
|
2088
2140
|
type: "builder.evaluateResult",
|
|
2089
2141
|
data: {
|
|
2090
2142
|
id: d,
|
|
2091
|
-
result:
|
|
2143
|
+
result: x
|
|
2092
2144
|
}
|
|
2093
2145
|
}, "*");
|
|
2094
|
-
}).catch(console.error) : (
|
|
2146
|
+
}).catch(console.error) : (o = window.parent) == null || o.postMessage({
|
|
2095
2147
|
type: "builder.evaluateResult",
|
|
2096
2148
|
data: {
|
|
2097
2149
|
result: g,
|
|
@@ -2103,23 +2155,23 @@ const Zt = (e = {}) => {
|
|
|
2103
2155
|
}
|
|
2104
2156
|
})));
|
|
2105
2157
|
};
|
|
2106
|
-
function
|
|
2107
|
-
var
|
|
2108
|
-
const t =
|
|
2109
|
-
|
|
2158
|
+
function an(e) {
|
|
2159
|
+
var L, Y, Q, oe, re, le, ce;
|
|
2160
|
+
const t = ee(null), [n, i] = v(() => 0);
|
|
2161
|
+
v(() => !0);
|
|
2110
2162
|
function a(u) {
|
|
2111
|
-
var b,
|
|
2163
|
+
var b, y;
|
|
2112
2164
|
const f = {
|
|
2113
2165
|
...e.builderContextSignal.rootState,
|
|
2114
2166
|
...u
|
|
2115
2167
|
};
|
|
2116
|
-
e.builderContextSignal.rootSetState ? (
|
|
2168
|
+
e.builderContextSignal.rootSetState ? (y = (b = e.builderContextSignal).rootSetState) == null || y.call(b, f) : e.setBuilderContextSignal((p) => ({
|
|
2117
2169
|
...p,
|
|
2118
2170
|
rootState: f
|
|
2119
2171
|
}));
|
|
2120
2172
|
}
|
|
2121
|
-
function
|
|
2122
|
-
var b,
|
|
2173
|
+
function r(u) {
|
|
2174
|
+
var b, y, p, T, U;
|
|
2123
2175
|
const f = {
|
|
2124
2176
|
...e.builderContextSignal.content,
|
|
2125
2177
|
...u,
|
|
@@ -2128,34 +2180,34 @@ function en(e) {
|
|
|
2128
2180
|
...u == null ? void 0 : u.data
|
|
2129
2181
|
},
|
|
2130
2182
|
meta: {
|
|
2131
|
-
...(
|
|
2183
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
2132
2184
|
...u == null ? void 0 : u.meta,
|
|
2133
|
-
breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((
|
|
2185
|
+
breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((U = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : U.breakpoints)
|
|
2134
2186
|
}
|
|
2135
2187
|
};
|
|
2136
|
-
e.setBuilderContextSignal((
|
|
2137
|
-
...
|
|
2188
|
+
e.setBuilderContextSignal((Ne) => ({
|
|
2189
|
+
...Ne,
|
|
2138
2190
|
content: f
|
|
2139
2191
|
}));
|
|
2140
2192
|
}
|
|
2141
|
-
|
|
2142
|
-
const [
|
|
2193
|
+
v(() => 0);
|
|
2194
|
+
const [o, c] = v(
|
|
2143
2195
|
() => !1
|
|
2144
|
-
), [s, d] =
|
|
2196
|
+
), [s, d] = v(
|
|
2145
2197
|
() => e.contentWrapper || "div"
|
|
2146
2198
|
);
|
|
2147
2199
|
function m(u) {
|
|
2148
2200
|
var b;
|
|
2149
|
-
if (!
|
|
2201
|
+
if (!Ve(e.trustedHosts, u))
|
|
2150
2202
|
return;
|
|
2151
2203
|
const { data: f } = u;
|
|
2152
2204
|
if (f)
|
|
2153
2205
|
switch (f.type) {
|
|
2154
2206
|
case "builder.configureSdk": {
|
|
2155
|
-
const
|
|
2207
|
+
const y = f.data, { breakpoints: p, contentId: T } = y;
|
|
2156
2208
|
if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
|
|
2157
2209
|
return;
|
|
2158
|
-
p &&
|
|
2210
|
+
p && r({
|
|
2159
2211
|
meta: {
|
|
2160
2212
|
breakpoints: p
|
|
2161
2213
|
}
|
|
@@ -2163,8 +2215,8 @@ function en(e) {
|
|
|
2163
2215
|
break;
|
|
2164
2216
|
}
|
|
2165
2217
|
case "builder.contentUpdate": {
|
|
2166
|
-
const
|
|
2167
|
-
p === e.model && (
|
|
2218
|
+
const y = f.data, p = y.key || y.alias || y.entry || y.modelName, T = y.data;
|
|
2219
|
+
p === e.model && (r(T), i(n + 1));
|
|
2168
2220
|
break;
|
|
2169
2221
|
}
|
|
2170
2222
|
}
|
|
@@ -2172,7 +2224,7 @@ function en(e) {
|
|
|
2172
2224
|
function g() {
|
|
2173
2225
|
var f, b;
|
|
2174
2226
|
const u = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.jsCode;
|
|
2175
|
-
u &&
|
|
2227
|
+
u && j({
|
|
2176
2228
|
code: u,
|
|
2177
2229
|
context: e.context || {},
|
|
2178
2230
|
localState: void 0,
|
|
@@ -2180,27 +2232,27 @@ function en(e) {
|
|
|
2180
2232
|
rootSetState: e.builderContextSignal.rootSetState
|
|
2181
2233
|
});
|
|
2182
2234
|
}
|
|
2183
|
-
const [
|
|
2235
|
+
const [k, x] = v(() => ({})), [S, C] = v(() => !1);
|
|
2184
2236
|
function R(u) {
|
|
2185
2237
|
var f, b;
|
|
2186
2238
|
if (e.builderContextSignal.content) {
|
|
2187
|
-
const
|
|
2188
|
-
|
|
2239
|
+
const y = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
|
|
2240
|
+
de({
|
|
2189
2241
|
type: "click",
|
|
2190
|
-
canTrack:
|
|
2242
|
+
canTrack: H(e.canTrack),
|
|
2191
2243
|
contentId: p,
|
|
2192
2244
|
apiKey: e.apiKey,
|
|
2193
|
-
variationId:
|
|
2194
|
-
...
|
|
2195
|
-
unique: !
|
|
2245
|
+
variationId: y !== p ? y : void 0,
|
|
2246
|
+
...Zt(u),
|
|
2247
|
+
unique: !S
|
|
2196
2248
|
});
|
|
2197
2249
|
}
|
|
2198
|
-
|
|
2250
|
+
S || C(!0);
|
|
2199
2251
|
}
|
|
2200
|
-
function
|
|
2252
|
+
function B(u) {
|
|
2201
2253
|
return u.replace(
|
|
2202
2254
|
/{{([^}]+)}}/g,
|
|
2203
|
-
(f, b) =>
|
|
2255
|
+
(f, b) => j({
|
|
2204
2256
|
code: b,
|
|
2205
2257
|
context: e.context || {},
|
|
2206
2258
|
localState: void 0,
|
|
@@ -2210,37 +2262,37 @@ function en(e) {
|
|
|
2210
2262
|
);
|
|
2211
2263
|
}
|
|
2212
2264
|
function w({ url: u, key: f }) {
|
|
2213
|
-
|
|
2265
|
+
Me(u).then((b) => b.json()).then((b) => {
|
|
2214
2266
|
var p, T;
|
|
2215
|
-
const
|
|
2267
|
+
const y = {
|
|
2216
2268
|
...e.builderContextSignal.rootState,
|
|
2217
2269
|
[f]: b
|
|
2218
2270
|
};
|
|
2219
|
-
(T = (p = e.builderContextSignal).rootSetState) == null || T.call(p,
|
|
2271
|
+
(T = (p = e.builderContextSignal).rootSetState) == null || T.call(p, y), k[f] = !0;
|
|
2220
2272
|
}).catch((b) => {
|
|
2221
2273
|
console.error("error fetching dynamic data", u, b);
|
|
2222
2274
|
});
|
|
2223
2275
|
}
|
|
2224
2276
|
function I() {
|
|
2225
|
-
var f, b,
|
|
2226
|
-
const u = (
|
|
2277
|
+
var f, b, y;
|
|
2278
|
+
const u = (y = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.httpRequests) != null ? y : {};
|
|
2227
2279
|
Object.entries(u).forEach(([p, T]) => {
|
|
2228
|
-
if (T && (!
|
|
2229
|
-
const
|
|
2280
|
+
if (T && (!k[p] || V())) {
|
|
2281
|
+
const U = B(T);
|
|
2230
2282
|
w({
|
|
2231
|
-
url:
|
|
2283
|
+
url: U,
|
|
2232
2284
|
key: p
|
|
2233
2285
|
});
|
|
2234
2286
|
}
|
|
2235
2287
|
});
|
|
2236
2288
|
}
|
|
2237
|
-
function
|
|
2289
|
+
function P() {
|
|
2238
2290
|
V() && window.dispatchEvent(
|
|
2239
2291
|
new CustomEvent(
|
|
2240
2292
|
"builder:component:stateChange",
|
|
2241
2293
|
{
|
|
2242
2294
|
detail: {
|
|
2243
|
-
state:
|
|
2295
|
+
state: te(e.builderContextSignal.rootState),
|
|
2244
2296
|
ref: {
|
|
2245
2297
|
name: e.model
|
|
2246
2298
|
}
|
|
@@ -2249,8 +2301,8 @@ function en(e) {
|
|
|
2249
2301
|
)
|
|
2250
2302
|
);
|
|
2251
2303
|
}
|
|
2252
|
-
function
|
|
2253
|
-
i(n + 1), window.addEventListener("message", m),
|
|
2304
|
+
function W(u) {
|
|
2305
|
+
i(n + 1), window.addEventListener("message", m), tn(), nn({
|
|
2254
2306
|
...e.locale ? {
|
|
2255
2307
|
locale: e.locale
|
|
2256
2308
|
} : {},
|
|
@@ -2266,81 +2318,81 @@ function en(e) {
|
|
|
2266
2318
|
}), Object.values(
|
|
2267
2319
|
e.builderContextSignal.componentInfos
|
|
2268
2320
|
).forEach((f) => {
|
|
2269
|
-
var
|
|
2270
|
-
const b =
|
|
2271
|
-
(
|
|
2321
|
+
var y;
|
|
2322
|
+
const b = Ue(f);
|
|
2323
|
+
(y = window.parent) == null || y.postMessage(b, "*");
|
|
2272
2324
|
}), window.addEventListener(
|
|
2273
2325
|
"builder:component:stateChangeListenerActivated",
|
|
2274
|
-
|
|
2326
|
+
P
|
|
2275
2327
|
);
|
|
2276
2328
|
}
|
|
2277
|
-
function
|
|
2278
|
-
const f = new URL(location.href).searchParams, b = f.get("builder.preview"),
|
|
2329
|
+
function F(u) {
|
|
2330
|
+
const f = new URL(location.href).searchParams, b = f.get("builder.preview"), y = f.get(
|
|
2279
2331
|
`builder.preview.${b}`
|
|
2280
2332
|
), p = f.get("apiKey") || f.get("builder.space");
|
|
2281
|
-
b === e.model && p === e.apiKey && (!e.content ||
|
|
2333
|
+
b === e.model && p === e.apiKey && (!e.content || y === e.content.id) && Ce({
|
|
2282
2334
|
model: e.model,
|
|
2283
2335
|
apiKey: e.apiKey,
|
|
2284
2336
|
apiVersion: e.builderContextSignal.apiVersion
|
|
2285
2337
|
}).then((T) => {
|
|
2286
|
-
T &&
|
|
2338
|
+
T && r(T);
|
|
2287
2339
|
});
|
|
2288
2340
|
}
|
|
2289
2341
|
return E(() => {
|
|
2290
2342
|
var u;
|
|
2291
2343
|
return (u = t.current) == null || u.addEventListener(
|
|
2292
2344
|
"initeditingbldr",
|
|
2293
|
-
|
|
2345
|
+
W
|
|
2294
2346
|
), () => {
|
|
2295
2347
|
var f;
|
|
2296
2348
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2297
2349
|
"initeditingbldr",
|
|
2298
|
-
|
|
2350
|
+
W
|
|
2299
2351
|
);
|
|
2300
2352
|
};
|
|
2301
2353
|
}, []), E(() => {
|
|
2302
2354
|
var u;
|
|
2303
2355
|
return (u = t.current) == null || u.addEventListener(
|
|
2304
2356
|
"initpreviewingbldr",
|
|
2305
|
-
|
|
2357
|
+
F
|
|
2306
2358
|
), () => {
|
|
2307
2359
|
var f;
|
|
2308
2360
|
return (f = t.current) == null ? void 0 : f.removeEventListener(
|
|
2309
2361
|
"initpreviewingbldr",
|
|
2310
|
-
|
|
2362
|
+
F
|
|
2311
2363
|
);
|
|
2312
2364
|
};
|
|
2313
2365
|
}, []), E(() => {
|
|
2314
2366
|
var u, f;
|
|
2315
2367
|
if ($()) {
|
|
2316
|
-
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2368
|
+
if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && H(e.canTrack)) {
|
|
2369
|
+
const y = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
|
|
2370
|
+
de({
|
|
2319
2371
|
type: "impression",
|
|
2320
2372
|
canTrack: !0,
|
|
2321
2373
|
contentId: p,
|
|
2322
2374
|
apiKey: T,
|
|
2323
|
-
variationId:
|
|
2375
|
+
variationId: y !== p ? y : void 0
|
|
2324
2376
|
});
|
|
2325
2377
|
}
|
|
2326
|
-
|
|
2378
|
+
je() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
2327
2379
|
}
|
|
2328
2380
|
}, []), E(() => {
|
|
2329
|
-
e.apiKey ||
|
|
2381
|
+
e.apiKey || D.error(
|
|
2330
2382
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2331
|
-
), g(), I(),
|
|
2383
|
+
), g(), I(), P();
|
|
2332
2384
|
}, []), E(() => {
|
|
2333
|
-
e.content &&
|
|
2385
|
+
e.content && r(e.content);
|
|
2334
2386
|
}, [e.content]), E(() => {
|
|
2335
|
-
}, [
|
|
2387
|
+
}, [o]), E(() => {
|
|
2336
2388
|
g();
|
|
2337
2389
|
}, [
|
|
2338
|
-
(
|
|
2390
|
+
(Y = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : Y.jsCode,
|
|
2339
2391
|
e.builderContextSignal.rootState
|
|
2340
2392
|
]), E(() => {
|
|
2341
2393
|
I();
|
|
2342
|
-
}, [(
|
|
2343
|
-
|
|
2394
|
+
}, [(oe = (Q = e.builderContextSignal.content) == null ? void 0 : Q.data) == null ? void 0 : oe.httpRequests]), E(() => {
|
|
2395
|
+
P();
|
|
2344
2396
|
}, [e.builderContextSignal.rootState]), E(() => {
|
|
2345
2397
|
e.data && a(e.data);
|
|
2346
2398
|
}, [e.data]), E(() => {
|
|
@@ -2350,29 +2402,29 @@ function en(e) {
|
|
|
2350
2402
|
}, [e.locale]), E(() => () => {
|
|
2351
2403
|
$() && (window.removeEventListener("message", m), window.removeEventListener(
|
|
2352
2404
|
"builder:component:stateChangeListenerActivated",
|
|
2353
|
-
|
|
2405
|
+
P
|
|
2354
2406
|
));
|
|
2355
|
-
}, []), /* @__PURE__ */
|
|
2407
|
+
}, []), /* @__PURE__ */ l(ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ Fe(
|
|
2356
2408
|
s,
|
|
2357
2409
|
{
|
|
2358
2410
|
key: n,
|
|
2359
2411
|
ref: t,
|
|
2360
2412
|
onClick: (u) => R(u),
|
|
2361
|
-
"builder-content-id": (
|
|
2413
|
+
"builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
|
|
2362
2414
|
"builder-model": e.model,
|
|
2363
2415
|
...e.showContent ? {} : {
|
|
2364
2416
|
hidden: !0,
|
|
2365
2417
|
"aria-hidden": !0
|
|
2366
2418
|
},
|
|
2367
2419
|
...e.contentWrapperProps,
|
|
2368
|
-
className: `variant-${((
|
|
2420
|
+
className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
|
|
2369
2421
|
},
|
|
2370
2422
|
e.children
|
|
2371
2423
|
) }) : null });
|
|
2372
2424
|
}
|
|
2373
|
-
const
|
|
2374
|
-
var
|
|
2375
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
2425
|
+
const on = (e) => {
|
|
2426
|
+
var r, o;
|
|
2427
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
2376
2428
|
let a = "";
|
|
2377
2429
|
if (i && t && n && (a += `
|
|
2378
2430
|
@font-face {
|
|
@@ -2396,23 +2448,23 @@ font-weight: ${c};
|
|
|
2396
2448
|
`.trim());
|
|
2397
2449
|
}
|
|
2398
2450
|
return a;
|
|
2399
|
-
},
|
|
2451
|
+
}, rn = ({
|
|
2400
2452
|
customFonts: e
|
|
2401
2453
|
}) => {
|
|
2402
2454
|
var t;
|
|
2403
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2404
|
-
},
|
|
2455
|
+
return ((t = e == null ? void 0 : e.map((n) => on(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2456
|
+
}, ln = ({
|
|
2405
2457
|
cssCode: e,
|
|
2406
2458
|
contentId: t
|
|
2407
2459
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
2408
|
-
function
|
|
2409
|
-
const [t, n] =
|
|
2460
|
+
function cn(e) {
|
|
2461
|
+
const [t, n] = v(
|
|
2410
2462
|
() => `
|
|
2411
|
-
${
|
|
2463
|
+
${ln({
|
|
2412
2464
|
cssCode: e.cssCode,
|
|
2413
2465
|
contentId: e.contentId
|
|
2414
2466
|
})}
|
|
2415
|
-
${
|
|
2467
|
+
${rn({
|
|
2416
2468
|
customFonts: e.customFonts
|
|
2417
2469
|
})}
|
|
2418
2470
|
|
|
@@ -2434,16 +2486,16 @@ ${nn({
|
|
|
2434
2486
|
}
|
|
2435
2487
|
`.trim()
|
|
2436
2488
|
);
|
|
2437
|
-
return /* @__PURE__ */
|
|
2489
|
+
return /* @__PURE__ */ l(K, { styles: t });
|
|
2438
2490
|
}
|
|
2439
|
-
const
|
|
2491
|
+
const sn = ({
|
|
2440
2492
|
content: e,
|
|
2441
2493
|
data: t,
|
|
2442
2494
|
locale: n
|
|
2443
2495
|
}) => {
|
|
2444
|
-
var
|
|
2445
|
-
const i = {}, a = ((
|
|
2446
|
-
return (c = (
|
|
2496
|
+
var r, o, c;
|
|
2497
|
+
const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
2498
|
+
return (c = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || c.forEach((s) => {
|
|
2447
2499
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2448
2500
|
}), {
|
|
2449
2501
|
...i,
|
|
@@ -2453,7 +2505,7 @@ const rn = ({
|
|
|
2453
2505
|
locale: n
|
|
2454
2506
|
} : {}
|
|
2455
2507
|
};
|
|
2456
|
-
},
|
|
2508
|
+
}, dn = ({
|
|
2457
2509
|
content: e,
|
|
2458
2510
|
data: t
|
|
2459
2511
|
}) => e ? {
|
|
@@ -2464,12 +2516,12 @@ const rn = ({
|
|
|
2464
2516
|
},
|
|
2465
2517
|
meta: e == null ? void 0 : e.meta
|
|
2466
2518
|
} : void 0;
|
|
2467
|
-
function
|
|
2468
|
-
var s, d, m, g,
|
|
2469
|
-
const [t, n] =
|
|
2519
|
+
function ke(e) {
|
|
2520
|
+
var s, d, m, g, k, x, S;
|
|
2521
|
+
const [t, n] = v(
|
|
2470
2522
|
() => {
|
|
2471
2523
|
var C, R;
|
|
2472
|
-
return
|
|
2524
|
+
return Qt({
|
|
2473
2525
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2474
2526
|
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
2475
2527
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2483,33 +2535,33 @@ function Se(e) {
|
|
|
2483
2535
|
rootState: C
|
|
2484
2536
|
}));
|
|
2485
2537
|
}
|
|
2486
|
-
const [a,
|
|
2538
|
+
const [a, r] = v(
|
|
2487
2539
|
() => [
|
|
2488
|
-
...
|
|
2540
|
+
...ye(),
|
|
2489
2541
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
2490
2542
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
2491
2543
|
// existing usage.
|
|
2492
2544
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
2493
2545
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
2494
|
-
...
|
|
2546
|
+
...ue,
|
|
2495
2547
|
...e.customComponents || []
|
|
2496
2548
|
].reduce(
|
|
2497
|
-
(C, { component: R, ...
|
|
2549
|
+
(C, { component: R, ...B }) => ({
|
|
2498
2550
|
...C,
|
|
2499
|
-
[
|
|
2551
|
+
[B.name]: {
|
|
2500
2552
|
component: R,
|
|
2501
|
-
...
|
|
2553
|
+
...me(B)
|
|
2502
2554
|
}
|
|
2503
2555
|
}),
|
|
2504
2556
|
{}
|
|
2505
2557
|
)
|
|
2506
|
-
), [
|
|
2507
|
-
content:
|
|
2558
|
+
), [o, c] = v(() => ({
|
|
2559
|
+
content: dn({
|
|
2508
2560
|
content: e.content,
|
|
2509
2561
|
data: e.data
|
|
2510
2562
|
}),
|
|
2511
2563
|
localState: void 0,
|
|
2512
|
-
rootState:
|
|
2564
|
+
rootState: sn({
|
|
2513
2565
|
content: e.content,
|
|
2514
2566
|
data: e.data,
|
|
2515
2567
|
locale: e.locale
|
|
@@ -2519,18 +2571,18 @@ function Se(e) {
|
|
|
2519
2571
|
apiKey: e.apiKey,
|
|
2520
2572
|
apiVersion: e.apiVersion,
|
|
2521
2573
|
componentInfos: [
|
|
2522
|
-
...
|
|
2574
|
+
...ye(),
|
|
2523
2575
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
2524
2576
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
2525
2577
|
// existing usage.
|
|
2526
2578
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
2527
2579
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
2528
|
-
...
|
|
2580
|
+
...ue,
|
|
2529
2581
|
...e.customComponents || []
|
|
2530
2582
|
].reduce(
|
|
2531
|
-
(C, { component: R, ...
|
|
2583
|
+
(C, { component: R, ...B }) => ({
|
|
2532
2584
|
...C,
|
|
2533
|
-
[
|
|
2585
|
+
[B.name]: me(B)
|
|
2534
2586
|
}),
|
|
2535
2587
|
{}
|
|
2536
2588
|
),
|
|
@@ -2538,14 +2590,14 @@ function Se(e) {
|
|
|
2538
2590
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
2539
2591
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
2540
2592
|
}));
|
|
2541
|
-
return /* @__PURE__ */
|
|
2542
|
-
|
|
2593
|
+
return /* @__PURE__ */ l(
|
|
2594
|
+
we.Provider,
|
|
2543
2595
|
{
|
|
2544
2596
|
value: {
|
|
2545
2597
|
registeredComponents: a
|
|
2546
2598
|
},
|
|
2547
|
-
children: /* @__PURE__ */
|
|
2548
|
-
|
|
2599
|
+
children: /* @__PURE__ */ A(
|
|
2600
|
+
an,
|
|
2549
2601
|
{
|
|
2550
2602
|
content: e.content,
|
|
2551
2603
|
data: e.data,
|
|
@@ -2557,27 +2609,29 @@ function Se(e) {
|
|
|
2557
2609
|
includeRefs: e.includeRefs,
|
|
2558
2610
|
enrich: e.enrich,
|
|
2559
2611
|
showContent: e.showContent,
|
|
2560
|
-
builderContextSignal:
|
|
2612
|
+
builderContextSignal: o,
|
|
2561
2613
|
contentWrapper: e.contentWrapper,
|
|
2562
2614
|
contentWrapperProps: e.contentWrapperProps,
|
|
2615
|
+
linkComponent: e.linkComponent,
|
|
2563
2616
|
trustedHosts: e.trustedHosts,
|
|
2564
2617
|
setBuilderContextSignal: c,
|
|
2565
2618
|
children: [
|
|
2566
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
2567
|
-
/* @__PURE__ */
|
|
2568
|
-
|
|
2619
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
|
|
2620
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
2621
|
+
cn,
|
|
2569
2622
|
{
|
|
2570
|
-
contentId: (s =
|
|
2571
|
-
cssCode: (m = (d =
|
|
2572
|
-
customFonts: (
|
|
2623
|
+
contentId: (s = o.content) == null ? void 0 : s.id,
|
|
2624
|
+
cssCode: (m = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2625
|
+
customFonts: (k = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : k.customFonts
|
|
2573
2626
|
}
|
|
2574
2627
|
) }),
|
|
2575
|
-
/* @__PURE__ */
|
|
2576
|
-
|
|
2628
|
+
/* @__PURE__ */ l(
|
|
2629
|
+
q,
|
|
2577
2630
|
{
|
|
2578
|
-
blocks: (
|
|
2579
|
-
context:
|
|
2580
|
-
registeredComponents: a
|
|
2631
|
+
blocks: (S = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : S.blocks,
|
|
2632
|
+
context: o,
|
|
2633
|
+
registeredComponents: a,
|
|
2634
|
+
linkComponent: e.linkComponent
|
|
2581
2635
|
}
|
|
2582
2636
|
)
|
|
2583
2637
|
]
|
|
@@ -2586,17 +2640,17 @@ function Se(e) {
|
|
|
2586
2640
|
}
|
|
2587
2641
|
);
|
|
2588
2642
|
}
|
|
2589
|
-
function
|
|
2590
|
-
var
|
|
2591
|
-
const [t, n] =
|
|
2592
|
-
() =>
|
|
2593
|
-
canTrack:
|
|
2643
|
+
function $e(e) {
|
|
2644
|
+
var o, c;
|
|
2645
|
+
const [t, n] = v(
|
|
2646
|
+
() => Kt({
|
|
2647
|
+
canTrack: H(e.canTrack),
|
|
2594
2648
|
content: e.content
|
|
2595
2649
|
})
|
|
2596
2650
|
);
|
|
2597
2651
|
function i() {
|
|
2598
2652
|
var s;
|
|
2599
|
-
return
|
|
2653
|
+
return Yt(
|
|
2600
2654
|
M(e.content).map((d) => ({
|
|
2601
2655
|
id: d.testVariationId,
|
|
2602
2656
|
testRatio: d.testRatio
|
|
@@ -2607,30 +2661,30 @@ function Ae(e) {
|
|
|
2607
2661
|
function a() {
|
|
2608
2662
|
return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2609
2663
|
}
|
|
2610
|
-
function
|
|
2664
|
+
function r() {
|
|
2611
2665
|
var s;
|
|
2612
2666
|
return t ? {
|
|
2613
2667
|
...e.content,
|
|
2614
2668
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2615
|
-
} :
|
|
2669
|
+
} : De({
|
|
2616
2670
|
item: e.content,
|
|
2617
|
-
canTrack:
|
|
2671
|
+
canTrack: H(e.canTrack)
|
|
2618
2672
|
});
|
|
2619
2673
|
}
|
|
2620
2674
|
return E(() => {
|
|
2621
|
-
}, []), /* @__PURE__ */
|
|
2622
|
-
!e.__isNestedRender &&
|
|
2623
|
-
t ? /* @__PURE__ */
|
|
2624
|
-
/* @__PURE__ */
|
|
2625
|
-
|
|
2675
|
+
}, []), /* @__PURE__ */ A(h, { children: [
|
|
2676
|
+
!e.__isNestedRender && N !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: qt() }) }) : null,
|
|
2677
|
+
t ? /* @__PURE__ */ A(h, { children: [
|
|
2678
|
+
/* @__PURE__ */ l(
|
|
2679
|
+
K,
|
|
2626
2680
|
{
|
|
2627
|
-
id: `variants-styles-${(
|
|
2681
|
+
id: `variants-styles-${(o = e.content) == null ? void 0 : o.id}`,
|
|
2628
2682
|
styles: a()
|
|
2629
2683
|
}
|
|
2630
2684
|
),
|
|
2631
|
-
/* @__PURE__ */
|
|
2632
|
-
(c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */
|
|
2633
|
-
|
|
2685
|
+
/* @__PURE__ */ l(Z, { scriptStr: i() }),
|
|
2686
|
+
(c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
|
|
2687
|
+
ke,
|
|
2634
2688
|
{
|
|
2635
2689
|
content: s,
|
|
2636
2690
|
showContent: !1,
|
|
@@ -2640,6 +2694,7 @@ function Ae(e) {
|
|
|
2640
2694
|
apiKey: e.apiKey,
|
|
2641
2695
|
apiVersion: e.apiVersion,
|
|
2642
2696
|
customComponents: e.customComponents,
|
|
2697
|
+
linkComponent: e.linkComponent,
|
|
2643
2698
|
canTrack: e.canTrack,
|
|
2644
2699
|
locale: e.locale,
|
|
2645
2700
|
includeRefs: e.includeRefs,
|
|
@@ -2654,10 +2709,10 @@ function Ae(e) {
|
|
|
2654
2709
|
s.testVariationId
|
|
2655
2710
|
))
|
|
2656
2711
|
] }) : null,
|
|
2657
|
-
/* @__PURE__ */
|
|
2658
|
-
|
|
2712
|
+
/* @__PURE__ */ l(
|
|
2713
|
+
ke,
|
|
2659
2714
|
{
|
|
2660
|
-
content:
|
|
2715
|
+
content: r(),
|
|
2661
2716
|
showContent: !0,
|
|
2662
2717
|
model: e.model,
|
|
2663
2718
|
data: e.data,
|
|
@@ -2665,6 +2720,7 @@ function Ae(e) {
|
|
|
2665
2720
|
apiKey: e.apiKey,
|
|
2666
2721
|
apiVersion: e.apiVersion,
|
|
2667
2722
|
customComponents: e.customComponents,
|
|
2723
|
+
linkComponent: e.linkComponent,
|
|
2668
2724
|
canTrack: e.canTrack,
|
|
2669
2725
|
locale: e.locale,
|
|
2670
2726
|
includeRefs: e.includeRefs,
|
|
@@ -2679,13 +2735,13 @@ function Ae(e) {
|
|
|
2679
2735
|
)
|
|
2680
2736
|
] });
|
|
2681
2737
|
}
|
|
2682
|
-
const
|
|
2738
|
+
const un = async ({
|
|
2683
2739
|
builderContextValue: e,
|
|
2684
2740
|
symbol: t
|
|
2685
2741
|
}) => {
|
|
2686
2742
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
2687
2743
|
(e != null && e.apiKey))
|
|
2688
|
-
return
|
|
2744
|
+
return Ce({
|
|
2689
2745
|
model: t.model,
|
|
2690
2746
|
apiKey: e.apiKey,
|
|
2691
2747
|
apiVersion: e.apiVersion,
|
|
@@ -2695,26 +2751,26 @@ const cn = async ({
|
|
|
2695
2751
|
}
|
|
2696
2752
|
}
|
|
2697
2753
|
}).catch((n) => {
|
|
2698
|
-
|
|
2754
|
+
D.error("Could not fetch symbol content: ", n);
|
|
2699
2755
|
});
|
|
2700
2756
|
};
|
|
2701
|
-
function
|
|
2702
|
-
var
|
|
2757
|
+
function mn(e) {
|
|
2758
|
+
var r, o, c, s;
|
|
2703
2759
|
function t() {
|
|
2704
2760
|
var d, m;
|
|
2705
2761
|
return [
|
|
2706
|
-
e.attributes
|
|
2762
|
+
e.attributes[_()],
|
|
2707
2763
|
"builder-symbol",
|
|
2708
2764
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
2709
2765
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
2710
2766
|
].filter(Boolean).join(" ");
|
|
2711
2767
|
}
|
|
2712
|
-
const [n, i] =
|
|
2768
|
+
const [n, i] = v(() => {
|
|
2713
2769
|
var d;
|
|
2714
2770
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
2715
2771
|
});
|
|
2716
2772
|
function a() {
|
|
2717
|
-
n ||
|
|
2773
|
+
n || un({
|
|
2718
2774
|
symbol: e.symbol,
|
|
2719
2775
|
builderContextValue: e.builderContext
|
|
2720
2776
|
}).then((d) => {
|
|
@@ -2724,52 +2780,53 @@ function sn(e) {
|
|
|
2724
2780
|
return E(() => {
|
|
2725
2781
|
}, []), E(() => {
|
|
2726
2782
|
a();
|
|
2727
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
2728
|
-
|
|
2783
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
2784
|
+
$e,
|
|
2729
2785
|
{
|
|
2730
2786
|
__isNestedRender: !0,
|
|
2731
2787
|
apiVersion: e.builderContext.apiVersion,
|
|
2732
2788
|
apiKey: e.builderContext.apiKey,
|
|
2733
2789
|
context: {
|
|
2734
2790
|
...e.builderContext.context,
|
|
2735
|
-
symbolId: (
|
|
2791
|
+
symbolId: (r = e.builderBlock) == null ? void 0 : r.id
|
|
2736
2792
|
},
|
|
2737
2793
|
customComponents: Object.values(e.builderComponents),
|
|
2738
2794
|
data: {
|
|
2739
|
-
...(
|
|
2795
|
+
...(o = e.symbol) == null ? void 0 : o.data,
|
|
2740
2796
|
...e.builderContext.localState,
|
|
2741
2797
|
...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
|
|
2742
2798
|
},
|
|
2743
2799
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
2744
|
-
content: n
|
|
2800
|
+
content: n,
|
|
2801
|
+
linkComponent: e.builderLinkComponent
|
|
2745
2802
|
}
|
|
2746
2803
|
) });
|
|
2747
2804
|
}
|
|
2748
|
-
const
|
|
2805
|
+
const bn = q, yn = $e;
|
|
2749
2806
|
export {
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2807
|
+
q as Blocks,
|
|
2808
|
+
Ke as Button,
|
|
2809
|
+
yt as Columns,
|
|
2810
|
+
$e as Content,
|
|
2811
|
+
xt as Fragment,
|
|
2812
|
+
kt as Image,
|
|
2813
|
+
bn as RenderBlocks,
|
|
2814
|
+
yn as RenderContent,
|
|
2815
|
+
pt as Section,
|
|
2816
|
+
mn as Symbol,
|
|
2817
|
+
Ut as Text,
|
|
2818
|
+
Dt as Video,
|
|
2819
|
+
vn as _processContentResult,
|
|
2820
|
+
Ue as createRegisterComponentMessage,
|
|
2821
|
+
kn as fetchBuilderProps,
|
|
2822
|
+
pn as fetchEntries,
|
|
2823
|
+
Ce as fetchOneEntry,
|
|
2824
|
+
Cn as getAllContent,
|
|
2825
|
+
wn as getBuilderSearchParams,
|
|
2826
|
+
In as getContent,
|
|
2770
2827
|
V as isEditing,
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2828
|
+
je as isPreviewing,
|
|
2829
|
+
_e as register,
|
|
2830
|
+
Tn as setEditorSettings,
|
|
2831
|
+
Rn as track
|
|
2775
2832
|
};
|