@builder.io/sdk-react 0.12.4 → 0.12.5
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 +22 -22
- package/lib/browser/index.mjs +415 -405
- package/lib/{edge/server-entry-0e4f0637.js → browser/server-entry-b9bdd327.js} +4 -4
- package/lib/browser/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +27 -27
- package/lib/edge/index.mjs +460 -449
- package/lib/{browser/server-entry-0e4f0637.js → edge/server-entry-57d4ae22.js} +3 -3
- package/lib/edge/{server-entry-bcb725be.cjs → server-entry-fc715776.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 -6
- package/lib/node/index.mjs +161 -150
- package/lib/node/{server-entry-9aa733e8.js → server-entry-0457c4c8.js} +2 -2
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
package/lib/browser/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as l, Fragment as h, jsxs as A } from "react/jsx-runtime";
|
|
3
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
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
4
|
+
import { T as $, i as N, j as V, k as Le, l as M, m as _, n as te, r as _e, o as H, p as de, a as Oe, c as je, b as Ce, q as De, u as ue, v as me, w as Ue } from "./server-entry-b9bdd327.js";
|
|
5
|
+
import { _ as pn, h as Cn, f as wn, g as In, e as Tn, d as Rn, s as En, t as Pn } from "./server-entry-b9bdd327.js";
|
|
6
|
+
const Me = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), He = (e) => typeof e == "string" && Me.has(e.toLowerCase());
|
|
7
7
|
function ne(e) {
|
|
8
|
-
return /* @__PURE__ */ l(h, { children:
|
|
8
|
+
return /* @__PURE__ */ l(h, { children: He(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
9
|
}
|
|
10
|
-
const
|
|
11
|
-
switch (
|
|
10
|
+
const O = () => {
|
|
11
|
+
switch ($) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
14
14
|
case "rsc":
|
|
@@ -27,7 +27,7 @@ function Ke(e) {
|
|
|
27
27
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
28
28
|
attributes: {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[O()]: `${e.link ? "" : "builder-button"} ${e.attributes[O()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -79,9 +79,9 @@ const qe = ({
|
|
|
79
79
|
context: t,
|
|
80
80
|
event: n
|
|
81
81
|
}), Ye = () => ({
|
|
82
|
-
isEditing:
|
|
83
|
-
isBrowser:
|
|
84
|
-
isServer:
|
|
82
|
+
isEditing: N(),
|
|
83
|
+
isBrowser: V(),
|
|
84
|
+
isServer: !V(),
|
|
85
85
|
getUserAttributes: () => Le()
|
|
86
86
|
}), Qe = (e, {
|
|
87
87
|
isExpression: t = !0
|
|
@@ -90,15 +90,15 @@ const qe = ({
|
|
|
90
90
|
builder: t,
|
|
91
91
|
context: n,
|
|
92
92
|
event: i,
|
|
93
|
-
localState:
|
|
93
|
+
localState: o,
|
|
94
94
|
rootSetState: r,
|
|
95
|
-
rootState:
|
|
95
|
+
rootState: a
|
|
96
96
|
}) => {
|
|
97
97
|
const c = qe({
|
|
98
98
|
builder: t,
|
|
99
99
|
context: n,
|
|
100
100
|
event: i,
|
|
101
|
-
state: Ge(
|
|
101
|
+
state: Ge(a, o, r)
|
|
102
102
|
});
|
|
103
103
|
return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
|
|
104
104
|
};
|
|
@@ -106,64 +106,74 @@ function Ge(e, t, n) {
|
|
|
106
106
|
if (e === t)
|
|
107
107
|
throw new Error("rootState === localState");
|
|
108
108
|
return new Proxy(e, {
|
|
109
|
-
get: (i,
|
|
110
|
-
set: (i,
|
|
111
|
-
if (t &&
|
|
109
|
+
get: (i, o) => t && o in t ? t[o] : e[o],
|
|
110
|
+
set: (i, o, r) => {
|
|
111
|
+
if (t && o in t)
|
|
112
112
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
113
|
-
return e[
|
|
113
|
+
return e[o] = r, n == null || n(e), !0;
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
function Je() {
|
|
118
|
+
var e;
|
|
119
|
+
return typeof process != "undefined" && M((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
120
|
+
}
|
|
121
|
+
const Xe = () => {
|
|
122
|
+
var i;
|
|
123
|
+
if (!Je())
|
|
124
|
+
return !1;
|
|
125
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
126
|
+
return e && t && !n ? (_.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;
|
|
127
|
+
}, Ze = (e) => (V() || Xe(), fe(e));
|
|
118
128
|
function j({
|
|
119
129
|
code: e,
|
|
120
130
|
context: t,
|
|
121
131
|
localState: n,
|
|
122
132
|
rootState: i,
|
|
123
|
-
rootSetState:
|
|
133
|
+
rootSetState: o,
|
|
124
134
|
event: r,
|
|
125
|
-
isExpression:
|
|
135
|
+
isExpression: a = !0
|
|
126
136
|
}) {
|
|
127
137
|
if (e === "") {
|
|
128
|
-
|
|
138
|
+
_.warn("Skipping evaluation of empty code block.");
|
|
129
139
|
return;
|
|
130
140
|
}
|
|
131
141
|
const c = {
|
|
132
142
|
code: Qe(e, {
|
|
133
|
-
isExpression:
|
|
143
|
+
isExpression: a
|
|
134
144
|
}),
|
|
135
145
|
builder: Ye(),
|
|
136
146
|
context: t,
|
|
137
147
|
event: r,
|
|
138
|
-
rootSetState:
|
|
148
|
+
rootSetState: o,
|
|
139
149
|
rootState: i,
|
|
140
150
|
localState: n
|
|
141
151
|
};
|
|
142
152
|
try {
|
|
143
|
-
return
|
|
153
|
+
return Ze(c);
|
|
144
154
|
} catch (s) {
|
|
145
|
-
|
|
155
|
+
_.error("Failed code evaluation: " + s.message, {
|
|
146
156
|
code: e
|
|
147
157
|
});
|
|
148
158
|
return;
|
|
149
159
|
}
|
|
150
160
|
}
|
|
151
|
-
const
|
|
161
|
+
const et = (e, t, n) => {
|
|
152
162
|
if (Object(e) !== e)
|
|
153
163
|
return e;
|
|
154
164
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
155
|
-
return i.slice(0, -1).reduce((
|
|
165
|
+
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
156
166
|
};
|
|
157
|
-
const
|
|
167
|
+
const tt = ({
|
|
158
168
|
block: e,
|
|
159
169
|
context: t,
|
|
160
170
|
localState: n,
|
|
161
171
|
rootState: i,
|
|
162
|
-
rootSetState:
|
|
172
|
+
rootSetState: o
|
|
163
173
|
}) => {
|
|
164
174
|
if (!e.bindings)
|
|
165
175
|
return e;
|
|
166
|
-
const r = te(e),
|
|
176
|
+
const r = te(e), a = {
|
|
167
177
|
...r,
|
|
168
178
|
properties: {
|
|
169
179
|
...r.properties
|
|
@@ -177,37 +187,37 @@ const Ze = ({
|
|
|
177
187
|
code: s,
|
|
178
188
|
localState: n,
|
|
179
189
|
rootState: i,
|
|
180
|
-
rootSetState:
|
|
190
|
+
rootSetState: o,
|
|
181
191
|
context: t
|
|
182
192
|
});
|
|
183
|
-
|
|
193
|
+
et(a, c, d);
|
|
184
194
|
}
|
|
185
|
-
return
|
|
195
|
+
return a;
|
|
186
196
|
};
|
|
187
|
-
function
|
|
197
|
+
function K({
|
|
188
198
|
block: e,
|
|
189
199
|
context: t,
|
|
190
200
|
shouldEvaluateBindings: n,
|
|
191
201
|
localState: i,
|
|
192
|
-
rootState:
|
|
202
|
+
rootState: o,
|
|
193
203
|
rootSetState: r
|
|
194
204
|
}) {
|
|
195
|
-
const
|
|
196
|
-
return n ?
|
|
197
|
-
block:
|
|
205
|
+
const a = e;
|
|
206
|
+
return n ? tt({
|
|
207
|
+
block: a,
|
|
198
208
|
localState: i,
|
|
199
|
-
rootState:
|
|
209
|
+
rootState: o,
|
|
200
210
|
rootSetState: r,
|
|
201
211
|
context: t
|
|
202
|
-
}) :
|
|
212
|
+
}) : a;
|
|
203
213
|
}
|
|
204
|
-
const
|
|
214
|
+
const nt = ({
|
|
205
215
|
block: e,
|
|
206
216
|
context: t,
|
|
207
217
|
registeredComponents: n
|
|
208
218
|
}) => {
|
|
209
219
|
var r;
|
|
210
|
-
const i = (r =
|
|
220
|
+
const i = (r = K({
|
|
211
221
|
block: e,
|
|
212
222
|
localState: t.localState,
|
|
213
223
|
rootState: t.rootState,
|
|
@@ -217,13 +227,13 @@ const et = ({
|
|
|
217
227
|
}).component) == null ? void 0 : r.name;
|
|
218
228
|
if (!i)
|
|
219
229
|
return null;
|
|
220
|
-
const
|
|
221
|
-
if (
|
|
222
|
-
return
|
|
230
|
+
const o = n[i];
|
|
231
|
+
if (o)
|
|
232
|
+
return o;
|
|
223
233
|
console.warn(`
|
|
224
234
|
Could not find a registered component named "${i}".
|
|
225
235
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
226
|
-
},
|
|
236
|
+
}, it = ({
|
|
227
237
|
block: e,
|
|
228
238
|
context: t
|
|
229
239
|
}) => {
|
|
@@ -233,25 +243,25 @@ const et = ({
|
|
|
233
243
|
} = e;
|
|
234
244
|
if (!(n != null && n.collection))
|
|
235
245
|
return;
|
|
236
|
-
const
|
|
246
|
+
const o = j({
|
|
237
247
|
code: n.collection,
|
|
238
248
|
localState: t.localState,
|
|
239
249
|
rootState: t.rootState,
|
|
240
250
|
rootSetState: t.rootSetState,
|
|
241
251
|
context: t.context
|
|
242
252
|
});
|
|
243
|
-
if (!Array.isArray(
|
|
253
|
+
if (!Array.isArray(o))
|
|
244
254
|
return;
|
|
245
|
-
const r = n.collection.split(".").pop(),
|
|
246
|
-
return
|
|
255
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
256
|
+
return o.map((s, d) => ({
|
|
247
257
|
context: {
|
|
248
258
|
...t,
|
|
249
259
|
localState: {
|
|
250
260
|
...t.localState,
|
|
251
261
|
$index: d,
|
|
252
262
|
$item: s,
|
|
253
|
-
[
|
|
254
|
-
[`$${
|
|
263
|
+
[a]: s,
|
|
264
|
+
[`$${a}Index`]: d
|
|
255
265
|
}
|
|
256
266
|
},
|
|
257
267
|
block: i
|
|
@@ -285,11 +295,11 @@ const et = ({
|
|
|
285
295
|
min: i,
|
|
286
296
|
default: i + 1
|
|
287
297
|
};
|
|
288
|
-
const
|
|
298
|
+
const o = n.small.max + 1;
|
|
289
299
|
n.medium = {
|
|
290
300
|
max: t,
|
|
291
|
-
min:
|
|
292
|
-
default:
|
|
301
|
+
min: o,
|
|
302
|
+
default: o + 1
|
|
293
303
|
};
|
|
294
304
|
const r = n.medium.max + 1;
|
|
295
305
|
return n.large = {
|
|
@@ -298,28 +308,28 @@ const et = ({
|
|
|
298
308
|
min: r,
|
|
299
309
|
default: r + 1
|
|
300
310
|
}, n;
|
|
301
|
-
},
|
|
311
|
+
}, ot = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Re = (e) => Object.entries(e).map(([n, i]) => {
|
|
302
312
|
if (typeof i == "string")
|
|
303
|
-
return `${
|
|
304
|
-
}).filter(
|
|
305
|
-
`),
|
|
313
|
+
return `${ot(n)}: ${i};`;
|
|
314
|
+
}).filter(M), at = (e) => Re(e).join(`
|
|
315
|
+
`), J = ({
|
|
306
316
|
mediaQuery: e,
|
|
307
317
|
className: t,
|
|
308
318
|
styles: n
|
|
309
319
|
}) => {
|
|
310
320
|
const i = `.${t} {
|
|
311
|
-
${
|
|
321
|
+
${at(n)}
|
|
312
322
|
}`;
|
|
313
323
|
return e ? `${e} {
|
|
314
324
|
${i}
|
|
315
325
|
}` : i;
|
|
316
326
|
};
|
|
317
|
-
function
|
|
327
|
+
function z(e) {
|
|
318
328
|
return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
319
329
|
}
|
|
320
|
-
function
|
|
330
|
+
function rt(e) {
|
|
321
331
|
function t() {
|
|
322
|
-
const i =
|
|
332
|
+
const i = K({
|
|
323
333
|
block: e.block,
|
|
324
334
|
localState: e.context.localState,
|
|
325
335
|
rootState: e.context.rootState,
|
|
@@ -327,48 +337,48 @@ function at(e) {
|
|
|
327
337
|
context: e.context.context,
|
|
328
338
|
shouldEvaluateBindings: !0
|
|
329
339
|
});
|
|
330
|
-
return
|
|
340
|
+
return M(i.hide) ? !i.hide : M(i.show) ? i.show : !0;
|
|
331
341
|
}
|
|
332
342
|
function n() {
|
|
333
|
-
var
|
|
334
|
-
const i =
|
|
343
|
+
var x;
|
|
344
|
+
const i = K({
|
|
335
345
|
block: e.block,
|
|
336
346
|
localState: e.context.localState,
|
|
337
347
|
rootState: e.context.rootState,
|
|
338
348
|
rootSetState: e.context.rootSetState,
|
|
339
349
|
context: e.context.context,
|
|
340
350
|
shouldEvaluateBindings: !0
|
|
341
|
-
}),
|
|
342
|
-
((
|
|
343
|
-
), c =
|
|
351
|
+
}), o = i.responsiveStyles, r = e.context.content, a = Te(
|
|
352
|
+
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
353
|
+
), c = o == null ? void 0 : o.large, s = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
|
|
344
354
|
if (!m)
|
|
345
355
|
return "";
|
|
346
|
-
const g = c ?
|
|
356
|
+
const g = c ? J({
|
|
347
357
|
className: m,
|
|
348
358
|
styles: c
|
|
349
|
-
}) : "", k = s ?
|
|
359
|
+
}) : "", k = s ? J({
|
|
350
360
|
className: m,
|
|
351
361
|
styles: s,
|
|
352
362
|
mediaQuery: he(
|
|
353
363
|
"medium",
|
|
354
|
-
|
|
364
|
+
a
|
|
355
365
|
)
|
|
356
|
-
}) : "",
|
|
366
|
+
}) : "", S = d ? J({
|
|
357
367
|
className: m,
|
|
358
368
|
styles: d,
|
|
359
369
|
mediaQuery: he(
|
|
360
370
|
"small",
|
|
361
|
-
|
|
371
|
+
a
|
|
362
372
|
)
|
|
363
373
|
}) : "";
|
|
364
|
-
return [g, k,
|
|
374
|
+
return [g, k, S].join(" ");
|
|
365
375
|
}
|
|
366
|
-
return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
376
|
+
return /* @__PURE__ */ l(h, { children: n() && t() ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(z, { styles: n() }) }) : null });
|
|
367
377
|
}
|
|
368
|
-
function
|
|
378
|
+
function lt(e) {
|
|
369
379
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
370
380
|
}
|
|
371
|
-
const
|
|
381
|
+
const ct = (e) => `on${lt(e)}`, st = (e, t) => (n) => j({
|
|
372
382
|
code: e,
|
|
373
383
|
context: t.context,
|
|
374
384
|
localState: t.localState,
|
|
@@ -380,39 +390,39 @@ const rt = (e) => `on${ot(e)}`, lt = (e, t) => (n) => j({
|
|
|
380
390
|
function Ee(e) {
|
|
381
391
|
var i;
|
|
382
392
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
383
|
-
for (const
|
|
384
|
-
if (!n.hasOwnProperty(
|
|
393
|
+
for (const o in n) {
|
|
394
|
+
if (!n.hasOwnProperty(o))
|
|
385
395
|
continue;
|
|
386
|
-
const r = n[
|
|
387
|
-
let
|
|
396
|
+
const r = n[o];
|
|
397
|
+
let a = ct(o);
|
|
388
398
|
if (e.stripPrefix)
|
|
389
|
-
switch (
|
|
399
|
+
switch ($) {
|
|
390
400
|
case "vue":
|
|
391
|
-
|
|
401
|
+
a = a.replace("v-on:", "");
|
|
392
402
|
break;
|
|
393
403
|
case "svelte":
|
|
394
|
-
|
|
404
|
+
a = a.replace("on:", "");
|
|
395
405
|
break;
|
|
396
406
|
}
|
|
397
|
-
t[
|
|
407
|
+
t[a] = st(r, e);
|
|
398
408
|
}
|
|
399
409
|
return t;
|
|
400
410
|
}
|
|
401
|
-
function
|
|
411
|
+
function dt({
|
|
402
412
|
style: e
|
|
403
413
|
}) {
|
|
404
414
|
return e;
|
|
405
415
|
}
|
|
406
|
-
const
|
|
416
|
+
const ut = ({
|
|
407
417
|
block: e,
|
|
408
418
|
context: t
|
|
409
|
-
}) => Pe(
|
|
419
|
+
}) => Pe(dt({
|
|
410
420
|
style: e.style || {},
|
|
411
421
|
context: t,
|
|
412
422
|
block: e
|
|
413
423
|
}));
|
|
414
424
|
function Pe(e) {
|
|
415
|
-
switch (
|
|
425
|
+
switch ($) {
|
|
416
426
|
case "svelte":
|
|
417
427
|
case "vue":
|
|
418
428
|
case "solid":
|
|
@@ -424,41 +434,41 @@ function Pe(e) {
|
|
|
424
434
|
return e;
|
|
425
435
|
}
|
|
426
436
|
}
|
|
427
|
-
function
|
|
437
|
+
function mt({
|
|
428
438
|
properties: e
|
|
429
439
|
}) {
|
|
430
440
|
return e;
|
|
431
441
|
}
|
|
432
|
-
const
|
|
442
|
+
const ft = (e) => ({
|
|
433
443
|
href: e.href
|
|
434
444
|
});
|
|
435
|
-
function
|
|
445
|
+
function oe({
|
|
436
446
|
block: e,
|
|
437
447
|
context: t
|
|
438
448
|
}) {
|
|
439
449
|
var i;
|
|
440
450
|
const n = {
|
|
441
|
-
...
|
|
451
|
+
...ft(e),
|
|
442
452
|
...e.properties,
|
|
443
453
|
"builder-id": e.id,
|
|
444
|
-
style:
|
|
454
|
+
style: ut({
|
|
445
455
|
block: e,
|
|
446
456
|
context: t
|
|
447
457
|
}),
|
|
448
|
-
[
|
|
458
|
+
[O()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
449
459
|
};
|
|
450
|
-
return
|
|
460
|
+
return mt({
|
|
451
461
|
properties: n,
|
|
452
462
|
context: t,
|
|
453
463
|
block: e
|
|
454
464
|
});
|
|
455
465
|
}
|
|
456
|
-
function
|
|
466
|
+
function ht(e) {
|
|
457
467
|
return /* @__PURE__ */ l(
|
|
458
468
|
ne,
|
|
459
469
|
{
|
|
460
470
|
TagName: e.Wrapper,
|
|
461
|
-
attributes:
|
|
471
|
+
attributes: oe({
|
|
462
472
|
block: e.block,
|
|
463
473
|
context: e.context
|
|
464
474
|
}),
|
|
@@ -474,13 +484,13 @@ function mt(e) {
|
|
|
474
484
|
}
|
|
475
485
|
);
|
|
476
486
|
}
|
|
477
|
-
function
|
|
487
|
+
function gt(e) {
|
|
478
488
|
return /* @__PURE__ */ l(
|
|
479
489
|
e.Wrapper,
|
|
480
490
|
{
|
|
481
491
|
...e.wrapperProps,
|
|
482
492
|
attributes: e.includeBlockProps ? {
|
|
483
|
-
...
|
|
493
|
+
...oe({
|
|
484
494
|
block: e.block,
|
|
485
495
|
context: e.context
|
|
486
496
|
}),
|
|
@@ -496,14 +506,14 @@ function ft(e) {
|
|
|
496
506
|
}
|
|
497
507
|
);
|
|
498
508
|
}
|
|
499
|
-
const
|
|
509
|
+
const bt = ({
|
|
500
510
|
componentOptions: e,
|
|
501
511
|
builderBlock: t,
|
|
502
512
|
context: n,
|
|
503
513
|
componentRef: i,
|
|
504
|
-
includeBlockProps:
|
|
514
|
+
includeBlockProps: o,
|
|
505
515
|
isInteractive: r,
|
|
506
|
-
contextValue:
|
|
516
|
+
contextValue: a
|
|
507
517
|
}) => {
|
|
508
518
|
const c = {
|
|
509
519
|
...e,
|
|
@@ -511,10 +521,10 @@ const ht = ({
|
|
|
511
521
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
512
522
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
513
523
|
*/
|
|
514
|
-
...
|
|
515
|
-
attributes:
|
|
524
|
+
...o ? {
|
|
525
|
+
attributes: oe({
|
|
516
526
|
block: t,
|
|
517
|
-
context:
|
|
527
|
+
context: a
|
|
518
528
|
})
|
|
519
529
|
} : {}
|
|
520
530
|
};
|
|
@@ -523,18 +533,18 @@ const ht = ({
|
|
|
523
533
|
block: t,
|
|
524
534
|
context: n,
|
|
525
535
|
wrapperProps: e,
|
|
526
|
-
includeBlockProps:
|
|
536
|
+
includeBlockProps: o
|
|
527
537
|
} : c;
|
|
528
538
|
};
|
|
529
539
|
function ge(e) {
|
|
530
540
|
var i;
|
|
531
541
|
const [t, n] = v(
|
|
532
|
-
() => e.isInteractive ?
|
|
542
|
+
() => e.isInteractive ? gt : e.componentRef
|
|
533
543
|
);
|
|
534
544
|
return /* @__PURE__ */ l(h, { children: e.componentRef ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
535
545
|
t,
|
|
536
546
|
{
|
|
537
|
-
...
|
|
547
|
+
...bt({
|
|
538
548
|
componentOptions: e.componentOptions,
|
|
539
549
|
builderBlock: e.builderBlock,
|
|
540
550
|
context: e.context,
|
|
@@ -544,23 +554,23 @@ function ge(e) {
|
|
|
544
554
|
isInteractive: e.isInteractive,
|
|
545
555
|
contextValue: e.context
|
|
546
556
|
}),
|
|
547
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
548
|
-
|
|
557
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
558
|
+
q,
|
|
549
559
|
{
|
|
550
|
-
block:
|
|
560
|
+
block: o,
|
|
551
561
|
context: e.context,
|
|
552
562
|
registeredComponents: e.registeredComponents,
|
|
553
563
|
linkComponent: e.linkComponent
|
|
554
564
|
},
|
|
555
|
-
|
|
565
|
+
o.id
|
|
556
566
|
))
|
|
557
567
|
}
|
|
558
568
|
) }) : null });
|
|
559
569
|
}
|
|
560
|
-
function
|
|
570
|
+
function yt(e) {
|
|
561
571
|
const [t, n] = v(() => e.repeatContext);
|
|
562
572
|
return /* @__PURE__ */ l(ie.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
563
|
-
|
|
573
|
+
q,
|
|
564
574
|
{
|
|
565
575
|
block: e.block,
|
|
566
576
|
context: t,
|
|
@@ -569,24 +579,24 @@ function gt(e) {
|
|
|
569
579
|
}
|
|
570
580
|
) });
|
|
571
581
|
}
|
|
572
|
-
function
|
|
582
|
+
function q(e) {
|
|
573
583
|
var m, g, k;
|
|
574
584
|
function t() {
|
|
575
|
-
return
|
|
585
|
+
return nt({
|
|
576
586
|
block: e.block,
|
|
577
587
|
context: e.context,
|
|
578
588
|
registeredComponents: e.registeredComponents
|
|
579
589
|
});
|
|
580
590
|
}
|
|
581
591
|
function n() {
|
|
582
|
-
return
|
|
592
|
+
return it({
|
|
583
593
|
block: e.block,
|
|
584
594
|
context: e.context
|
|
585
595
|
});
|
|
586
596
|
}
|
|
587
597
|
function i() {
|
|
588
|
-
var
|
|
589
|
-
return (
|
|
598
|
+
var S;
|
|
599
|
+
return (S = e.block.repeat) != null && S.collection ? e.block : K({
|
|
590
600
|
block: e.block,
|
|
591
601
|
localState: e.context.localState,
|
|
592
602
|
rootState: e.context.rootState,
|
|
@@ -595,26 +605,26 @@ function z(e) {
|
|
|
595
605
|
shouldEvaluateBindings: !0
|
|
596
606
|
});
|
|
597
607
|
}
|
|
598
|
-
function
|
|
599
|
-
var
|
|
600
|
-
return e.block.tagName === "a" || ((
|
|
608
|
+
function o() {
|
|
609
|
+
var x;
|
|
610
|
+
return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
601
611
|
}
|
|
602
612
|
function r() {
|
|
603
613
|
var C, R;
|
|
604
614
|
if ((C = e.block.repeat) != null && C.collection)
|
|
605
615
|
return !!((R = n == null ? void 0 : n()) != null && R.length);
|
|
606
|
-
const
|
|
607
|
-
return ("show" in i() ? i().show : !0) && !
|
|
616
|
+
const S = "hide" in i() ? i().hide : !1;
|
|
617
|
+
return ("show" in i() ? i().show : !0) && !S;
|
|
608
618
|
}
|
|
609
|
-
function
|
|
610
|
-
var
|
|
611
|
-
return !((
|
|
619
|
+
function a() {
|
|
620
|
+
var x, C;
|
|
621
|
+
return !((x = t == null ? void 0 : t()) != null && x.component) && !n() ? (C = i().children) != null ? C : [] : [];
|
|
612
622
|
}
|
|
613
623
|
function c() {
|
|
614
|
-
var
|
|
624
|
+
var S, x, C, R, B, w, I, P, W;
|
|
615
625
|
return {
|
|
616
|
-
blockChildren: (
|
|
617
|
-
componentRef: (
|
|
626
|
+
blockChildren: (S = i().children) != null ? S : [],
|
|
627
|
+
componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
|
|
618
628
|
componentOptions: {
|
|
619
629
|
...ze(i()),
|
|
620
630
|
builderContext: e.context,
|
|
@@ -635,7 +645,7 @@ function z(e) {
|
|
|
635
645
|
}
|
|
636
646
|
const [s, d] = v(() => e.context);
|
|
637
647
|
return /* @__PURE__ */ l(h, { children: r() ? /* @__PURE__ */ A(h, { children: [
|
|
638
|
-
/* @__PURE__ */ l(
|
|
648
|
+
/* @__PURE__ */ l(rt, { block: e.block, context: e.context }),
|
|
639
649
|
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
640
650
|
ge,
|
|
641
651
|
{
|
|
@@ -649,19 +659,19 @@ function z(e) {
|
|
|
649
659
|
includeBlockProps: c().includeBlockProps,
|
|
650
660
|
isInteractive: c().isInteractive
|
|
651
661
|
}
|
|
652
|
-
) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((
|
|
653
|
-
|
|
662
|
+
) }) : /* @__PURE__ */ l(h, { children: n() ? /* @__PURE__ */ l(h, { children: (k = n()) == null ? void 0 : k.map((S, x) => /* @__PURE__ */ l(
|
|
663
|
+
yt,
|
|
654
664
|
{
|
|
655
|
-
repeatContext:
|
|
656
|
-
block:
|
|
665
|
+
repeatContext: S.context,
|
|
666
|
+
block: S.block,
|
|
657
667
|
registeredComponents: e.registeredComponents,
|
|
658
668
|
linkComponent: e.linkComponent
|
|
659
669
|
},
|
|
660
|
-
|
|
670
|
+
x
|
|
661
671
|
)) }) : /* @__PURE__ */ l(h, { children: /* @__PURE__ */ A(
|
|
662
|
-
|
|
672
|
+
ht,
|
|
663
673
|
{
|
|
664
|
-
Wrapper:
|
|
674
|
+
Wrapper: o(),
|
|
665
675
|
block: i(),
|
|
666
676
|
context: e.context,
|
|
667
677
|
linkComponent: e.linkComponent,
|
|
@@ -680,29 +690,29 @@ function z(e) {
|
|
|
680
690
|
isInteractive: c().isInteractive
|
|
681
691
|
}
|
|
682
692
|
),
|
|
683
|
-
(g =
|
|
684
|
-
|
|
693
|
+
(g = a()) == null ? void 0 : g.map((S) => /* @__PURE__ */ l(
|
|
694
|
+
q,
|
|
685
695
|
{
|
|
686
|
-
block:
|
|
696
|
+
block: S,
|
|
687
697
|
context: s,
|
|
688
698
|
registeredComponents: e.registeredComponents,
|
|
689
699
|
linkComponent: e.linkComponent
|
|
690
700
|
},
|
|
691
|
-
|
|
701
|
+
S.id
|
|
692
702
|
))
|
|
693
703
|
]
|
|
694
704
|
}
|
|
695
705
|
) }) })
|
|
696
706
|
] }) : null });
|
|
697
707
|
}
|
|
698
|
-
function
|
|
708
|
+
function St(e) {
|
|
699
709
|
function t() {
|
|
700
|
-
var
|
|
701
|
-
return "builder-blocks" + ((
|
|
710
|
+
var o;
|
|
711
|
+
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
702
712
|
}
|
|
703
713
|
function n() {
|
|
704
|
-
var
|
|
705
|
-
|
|
714
|
+
var o, r;
|
|
715
|
+
N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
706
716
|
{
|
|
707
717
|
type: "builder.clickEmptyBlocks",
|
|
708
718
|
data: {
|
|
@@ -714,8 +724,8 @@ function bt(e) {
|
|
|
714
724
|
));
|
|
715
725
|
}
|
|
716
726
|
function i() {
|
|
717
|
-
var
|
|
718
|
-
|
|
727
|
+
var o, r;
|
|
728
|
+
N() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
719
729
|
{
|
|
720
730
|
type: "builder.hoverEmptyBlocks",
|
|
721
731
|
data: {
|
|
@@ -734,9 +744,9 @@ function bt(e) {
|
|
|
734
744
|
"builder-path": e.path,
|
|
735
745
|
"builder-parent-id": e.parent,
|
|
736
746
|
style: e.styleProp,
|
|
737
|
-
onClick: (
|
|
738
|
-
onMouseEnter: (
|
|
739
|
-
onKeyPress: (
|
|
747
|
+
onClick: (o) => n(),
|
|
748
|
+
onMouseEnter: (o) => i(),
|
|
749
|
+
onKeyPress: (o) => n(),
|
|
740
750
|
...e.BlocksWrapperProps,
|
|
741
751
|
children: e.children
|
|
742
752
|
}
|
|
@@ -748,36 +758,36 @@ function bt(e) {
|
|
|
748
758
|
}` })
|
|
749
759
|
] });
|
|
750
760
|
}
|
|
751
|
-
function
|
|
752
|
-
var i,
|
|
761
|
+
function Y(e) {
|
|
762
|
+
var i, o, r;
|
|
753
763
|
const t = se(ie), n = se(we);
|
|
754
764
|
return /* @__PURE__ */ l(
|
|
755
|
-
|
|
765
|
+
St,
|
|
756
766
|
{
|
|
757
767
|
blocks: e.blocks,
|
|
758
768
|
parent: e.parent,
|
|
759
769
|
path: e.path,
|
|
760
770
|
styleProp: e.styleProp,
|
|
761
771
|
BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
|
|
762
|
-
BlocksWrapperProps: (
|
|
763
|
-
children: e.blocks ? /* @__PURE__ */ l(h, { children: (r = e.blocks) == null ? void 0 : r.map((
|
|
764
|
-
|
|
772
|
+
BlocksWrapperProps: (o = e.context) == null ? void 0 : o.BlocksWrapperProps,
|
|
773
|
+
children: e.blocks ? /* @__PURE__ */ l(h, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
|
|
774
|
+
q,
|
|
765
775
|
{
|
|
766
|
-
block:
|
|
776
|
+
block: a,
|
|
767
777
|
linkComponent: e.linkComponent,
|
|
768
778
|
context: e.context || t,
|
|
769
779
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
770
780
|
},
|
|
771
|
-
|
|
781
|
+
a.id
|
|
772
782
|
)) }) : null
|
|
773
783
|
}
|
|
774
784
|
);
|
|
775
785
|
}
|
|
776
|
-
function
|
|
786
|
+
function xt(e) {
|
|
777
787
|
var B;
|
|
778
788
|
const [t, n] = v(
|
|
779
789
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
780
|
-
), [i,
|
|
790
|
+
), [i, o] = v(() => e.columns || []), [r, a] = v(
|
|
781
791
|
() => e.stackColumnsAt || "tablet"
|
|
782
792
|
);
|
|
783
793
|
function c(w) {
|
|
@@ -803,7 +813,7 @@ function yt(e) {
|
|
|
803
813
|
const [g, k] = v(
|
|
804
814
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
805
815
|
);
|
|
806
|
-
function
|
|
816
|
+
function S() {
|
|
807
817
|
return {
|
|
808
818
|
"--flex-dir": g,
|
|
809
819
|
"--flex-dir-tablet": d({
|
|
@@ -812,7 +822,7 @@ function yt(e) {
|
|
|
812
822
|
})
|
|
813
823
|
};
|
|
814
824
|
}
|
|
815
|
-
function
|
|
825
|
+
function x(w) {
|
|
816
826
|
const I = w === 0 ? 0 : t, P = s(w), W = `${I}px`, F = "100%", L = 0;
|
|
817
827
|
return {
|
|
818
828
|
...{
|
|
@@ -878,9 +888,9 @@ function yt(e) {
|
|
|
878
888
|
"div",
|
|
879
889
|
{
|
|
880
890
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
881
|
-
style:
|
|
891
|
+
style: S(),
|
|
882
892
|
children: [
|
|
883
|
-
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
893
|
+
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(z, { styles: R() }) }),
|
|
884
894
|
(B = e.columns) == null ? void 0 : B.map((w, I) => /* @__PURE__ */ l(
|
|
885
895
|
ne,
|
|
886
896
|
{
|
|
@@ -890,11 +900,11 @@ function yt(e) {
|
|
|
890
900
|
...w.link ? {
|
|
891
901
|
href: w.link
|
|
892
902
|
} : {},
|
|
893
|
-
[
|
|
894
|
-
style: Pe(
|
|
903
|
+
[O()]: "builder-column",
|
|
904
|
+
style: Pe(x(I))
|
|
895
905
|
},
|
|
896
906
|
children: /* @__PURE__ */ l(
|
|
897
|
-
|
|
907
|
+
Y,
|
|
898
908
|
{
|
|
899
909
|
path: `component.options.columns.${I}.blocks`,
|
|
900
910
|
parent: e.builderBlock.id,
|
|
@@ -919,41 +929,41 @@ function yt(e) {
|
|
|
919
929
|
}` })
|
|
920
930
|
] });
|
|
921
931
|
}
|
|
922
|
-
function
|
|
932
|
+
function vt(e) {
|
|
923
933
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
924
934
|
}
|
|
925
935
|
function be(e) {
|
|
926
936
|
return e.replace(/http(s)?:/, "");
|
|
927
937
|
}
|
|
928
|
-
function
|
|
929
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
930
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
938
|
+
function kt(e = "", t, n) {
|
|
939
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
940
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
931
941
|
}
|
|
932
|
-
function
|
|
942
|
+
function pt(e, t) {
|
|
933
943
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
934
944
|
return e;
|
|
935
945
|
if (t === "master")
|
|
936
946
|
return be(e);
|
|
937
947
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
938
948
|
if (n) {
|
|
939
|
-
const i = e.split(n[0]),
|
|
940
|
-
return be(`${i[0]}_${r}${
|
|
949
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
950
|
+
return be(`${i[0]}_${r}${o}`);
|
|
941
951
|
}
|
|
942
952
|
return null;
|
|
943
953
|
}
|
|
944
|
-
function
|
|
954
|
+
function X(e) {
|
|
945
955
|
if (!e)
|
|
946
956
|
return e;
|
|
947
957
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
948
958
|
if (e.match(/builder\.io/)) {
|
|
949
959
|
let n = e;
|
|
950
960
|
const i = Number(e.split("?width=")[1]);
|
|
951
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
961
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
952
962
|
}
|
|
953
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
963
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
954
964
|
}
|
|
955
|
-
function
|
|
956
|
-
var
|
|
965
|
+
function Ct(e) {
|
|
966
|
+
var o, r, a, c;
|
|
957
967
|
function t() {
|
|
958
968
|
var m;
|
|
959
969
|
const d = e.image || e.src;
|
|
@@ -963,10 +973,10 @@ function kt(e) {
|
|
|
963
973
|
return e.srcset;
|
|
964
974
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
965
975
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
966
|
-
return console.debug("Removed given srcset"),
|
|
976
|
+
return console.debug("Removed given srcset"), X(d);
|
|
967
977
|
} else if (e.image && !e.srcset)
|
|
968
|
-
return
|
|
969
|
-
return
|
|
978
|
+
return X(d);
|
|
979
|
+
return X(d);
|
|
970
980
|
}
|
|
971
981
|
function n() {
|
|
972
982
|
var s;
|
|
@@ -1004,7 +1014,7 @@ function kt(e) {
|
|
|
1004
1014
|
}
|
|
1005
1015
|
)
|
|
1006
1016
|
] }),
|
|
1007
|
-
e.aspectRatio && !((r = (
|
|
1017
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1008
1018
|
"div",
|
|
1009
1019
|
{
|
|
1010
1020
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -1013,7 +1023,7 @@ function kt(e) {
|
|
|
1013
1023
|
}
|
|
1014
1024
|
}
|
|
1015
1025
|
) }) : null,
|
|
1016
|
-
(c = (
|
|
1026
|
+
(c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: e.children }) : null,
|
|
1017
1027
|
!e.fitContent && e.children ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
1018
1028
|
] }),
|
|
1019
1029
|
/* @__PURE__ */ l("style", { children: `.img-40c70c9b {
|
|
@@ -1035,7 +1045,7 @@ function kt(e) {
|
|
|
1035
1045
|
}` })
|
|
1036
1046
|
] });
|
|
1037
1047
|
}
|
|
1038
|
-
function
|
|
1048
|
+
function wt(e) {
|
|
1039
1049
|
return /* @__PURE__ */ l(
|
|
1040
1050
|
"section",
|
|
1041
1051
|
{
|
|
@@ -1056,7 +1066,7 @@ function pt(e) {
|
|
|
1056
1066
|
}
|
|
1057
1067
|
);
|
|
1058
1068
|
}
|
|
1059
|
-
const
|
|
1069
|
+
const It = {
|
|
1060
1070
|
name: "Core:Button",
|
|
1061
1071
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1062
1072
|
defaultStyles: {
|
|
@@ -1089,7 +1099,7 @@ const Ct = {
|
|
|
1089
1099
|
}],
|
|
1090
1100
|
static: !0,
|
|
1091
1101
|
noWrap: !0
|
|
1092
|
-
},
|
|
1102
|
+
}, Tt = {
|
|
1093
1103
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1094
1104
|
name: "Columns",
|
|
1095
1105
|
isRSC: !0,
|
|
@@ -1268,7 +1278,7 @@ const Ct = {
|
|
|
1268
1278
|
});
|
|
1269
1279
|
}
|
|
1270
1280
|
const n = e.get("columns");
|
|
1271
|
-
Array.isArray(n) && n.find((
|
|
1281
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
|
|
1272
1282
|
}
|
|
1273
1283
|
}, {
|
|
1274
1284
|
name: "space",
|
|
@@ -1290,7 +1300,7 @@ const Ct = {
|
|
|
1290
1300
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1291
1301
|
advanced: !0
|
|
1292
1302
|
}]
|
|
1293
|
-
},
|
|
1303
|
+
}, Rt = {
|
|
1294
1304
|
name: "Custom Code",
|
|
1295
1305
|
static: !0,
|
|
1296
1306
|
requiredPermissions: ["editCode"],
|
|
@@ -1313,15 +1323,15 @@ const Ct = {
|
|
|
1313
1323
|
advanced: !0
|
|
1314
1324
|
}]
|
|
1315
1325
|
};
|
|
1316
|
-
function
|
|
1317
|
-
const t = ee(null), [n, i] = v(() => []), [
|
|
1326
|
+
function Et(e) {
|
|
1327
|
+
const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []);
|
|
1318
1328
|
return E(() => {
|
|
1319
1329
|
var c;
|
|
1320
1330
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
1321
1331
|
return;
|
|
1322
|
-
const
|
|
1323
|
-
for (let s = 0; s <
|
|
1324
|
-
const d =
|
|
1332
|
+
const a = t.current.getElementsByTagName("script");
|
|
1333
|
+
for (let s = 0; s < a.length; s++) {
|
|
1334
|
+
const d = a[s];
|
|
1325
1335
|
if (d.src) {
|
|
1326
1336
|
if (n.includes(d.src))
|
|
1327
1337
|
continue;
|
|
@@ -1333,10 +1343,10 @@ function Tt(e) {
|
|
|
1333
1343
|
"application/javascript",
|
|
1334
1344
|
"application/ecmascript"
|
|
1335
1345
|
].includes(d.type)) {
|
|
1336
|
-
if (
|
|
1346
|
+
if (o.includes(d.innerText))
|
|
1337
1347
|
continue;
|
|
1338
1348
|
try {
|
|
1339
|
-
|
|
1349
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
1340
1350
|
} catch (m) {
|
|
1341
1351
|
console.warn("`CustomCode`: Error running script:", m);
|
|
1342
1352
|
}
|
|
@@ -1351,7 +1361,7 @@ function Tt(e) {
|
|
|
1351
1361
|
}
|
|
1352
1362
|
);
|
|
1353
1363
|
}
|
|
1354
|
-
const
|
|
1364
|
+
const Pt = {
|
|
1355
1365
|
name: "Embed",
|
|
1356
1366
|
static: !0,
|
|
1357
1367
|
inputs: [{
|
|
@@ -1376,9 +1386,9 @@ const Rt = {
|
|
|
1376
1386
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1377
1387
|
hideFromUI: !0
|
|
1378
1388
|
}]
|
|
1379
|
-
},
|
|
1380
|
-
function
|
|
1381
|
-
const t = ee(null), [n, i] = v(() => []), [
|
|
1389
|
+
}, Bt = ["text/javascript", "application/javascript", "application/ecmascript"], Wt = (e) => Bt.includes(e.type);
|
|
1390
|
+
function At(e) {
|
|
1391
|
+
const t = ee(null), [n, i] = v(() => []), [o, r] = v(() => []), [a, c] = v(() => !1);
|
|
1382
1392
|
function s() {
|
|
1383
1393
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1384
1394
|
return;
|
|
@@ -1389,17 +1399,17 @@ function Bt(e) {
|
|
|
1389
1399
|
n.push(g.src);
|
|
1390
1400
|
const k = document.createElement("script");
|
|
1391
1401
|
k.async = !0, k.src = g.src, document.head.appendChild(k);
|
|
1392
|
-
} else if (
|
|
1402
|
+
} else if (Wt(g) && !o.includes(g.innerText))
|
|
1393
1403
|
try {
|
|
1394
|
-
|
|
1404
|
+
o.push(g.innerText), new Function(g.innerText)();
|
|
1395
1405
|
} catch (k) {
|
|
1396
1406
|
console.warn("`Embed`: Error running script:", k);
|
|
1397
1407
|
}
|
|
1398
1408
|
}
|
|
1399
1409
|
}
|
|
1400
1410
|
return E(() => {
|
|
1401
|
-
t.current && !
|
|
1402
|
-
}, [t.current,
|
|
1411
|
+
t.current && !a && (c(!0), s());
|
|
1412
|
+
}, [t.current, a]), /* @__PURE__ */ l(
|
|
1403
1413
|
"div",
|
|
1404
1414
|
{
|
|
1405
1415
|
className: "builder-embed",
|
|
@@ -1408,13 +1418,13 @@ function Bt(e) {
|
|
|
1408
1418
|
}
|
|
1409
1419
|
);
|
|
1410
1420
|
}
|
|
1411
|
-
const
|
|
1421
|
+
const Nt = {
|
|
1412
1422
|
name: "Fragment",
|
|
1413
1423
|
static: !0,
|
|
1414
1424
|
hidden: !0,
|
|
1415
1425
|
canHaveChildren: !0,
|
|
1416
1426
|
noWrap: !0
|
|
1417
|
-
},
|
|
1427
|
+
}, Vt = {
|
|
1418
1428
|
name: "Image",
|
|
1419
1429
|
static: !0,
|
|
1420
1430
|
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,7 +1444,7 @@ const Wt = {
|
|
|
1434
1444
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1435
1445
|
onChange: (e) => {
|
|
1436
1446
|
e.delete("srcset"), e.delete("noWebp");
|
|
1437
|
-
function n(
|
|
1447
|
+
function n(a, c = 6e4) {
|
|
1438
1448
|
return new Promise((s, d) => {
|
|
1439
1449
|
const m = document.createElement("img");
|
|
1440
1450
|
let g = !1;
|
|
@@ -1442,21 +1452,21 @@ const Wt = {
|
|
|
1442
1452
|
g = !0, s(m);
|
|
1443
1453
|
}, m.addEventListener("error", (k) => {
|
|
1444
1454
|
console.warn("Image load failed", k.error), d(k.error);
|
|
1445
|
-
}), m.src =
|
|
1455
|
+
}), m.src = a, setTimeout(() => {
|
|
1446
1456
|
g || d(new Error("Image load timed out"));
|
|
1447
1457
|
}, c);
|
|
1448
1458
|
});
|
|
1449
1459
|
}
|
|
1450
|
-
function i(
|
|
1451
|
-
return Math.round(
|
|
1460
|
+
function i(a) {
|
|
1461
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1452
1462
|
}
|
|
1453
|
-
const
|
|
1454
|
-
if (fetch(
|
|
1455
|
-
|
|
1456
|
-
}),
|
|
1457
|
-
return n(
|
|
1463
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1464
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1465
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1466
|
+
}), o && (!r || r === 0.7041))
|
|
1467
|
+
return n(o).then((a) => {
|
|
1458
1468
|
const c = e.get("aspectRatio");
|
|
1459
|
-
e.get("image") ===
|
|
1469
|
+
e.get("image") === o && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1460
1470
|
});
|
|
1461
1471
|
}
|
|
1462
1472
|
}, {
|
|
@@ -1514,7 +1524,7 @@ const Wt = {
|
|
|
1514
1524
|
advanced: !0,
|
|
1515
1525
|
defaultValue: 0.7041
|
|
1516
1526
|
}]
|
|
1517
|
-
},
|
|
1527
|
+
}, $t = {
|
|
1518
1528
|
// friendlyName?
|
|
1519
1529
|
name: "Raw:Img",
|
|
1520
1530
|
hideFromInsertMenu: !0,
|
|
@@ -1529,7 +1539,7 @@ const Wt = {
|
|
|
1529
1539
|
noWrap: !0,
|
|
1530
1540
|
static: !0
|
|
1531
1541
|
};
|
|
1532
|
-
function
|
|
1542
|
+
function Ft(e) {
|
|
1533
1543
|
return /* @__PURE__ */ l(
|
|
1534
1544
|
"img",
|
|
1535
1545
|
{
|
|
@@ -1541,10 +1551,10 @@ function $t(e) {
|
|
|
1541
1551
|
src: e.imgSrc || e.image,
|
|
1542
1552
|
...e.attributes
|
|
1543
1553
|
},
|
|
1544
|
-
|
|
1554
|
+
N() && e.imgSrc || "default-key"
|
|
1545
1555
|
);
|
|
1546
1556
|
}
|
|
1547
|
-
const
|
|
1557
|
+
const Lt = {
|
|
1548
1558
|
name: "Core:Section",
|
|
1549
1559
|
static: !0,
|
|
1550
1560
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1583,7 +1593,7 @@ const Nt = {
|
|
|
1583
1593
|
}
|
|
1584
1594
|
}
|
|
1585
1595
|
}]
|
|
1586
|
-
},
|
|
1596
|
+
}, _t = {
|
|
1587
1597
|
name: "Slot",
|
|
1588
1598
|
isRSC: !0,
|
|
1589
1599
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1597,7 +1607,7 @@ const Nt = {
|
|
|
1597
1607
|
defaultValue: "children"
|
|
1598
1608
|
}]
|
|
1599
1609
|
};
|
|
1600
|
-
function
|
|
1610
|
+
function Ot(e) {
|
|
1601
1611
|
var t, n, i;
|
|
1602
1612
|
return /* @__PURE__ */ l(
|
|
1603
1613
|
"div",
|
|
@@ -1609,7 +1619,7 @@ function Lt(e) {
|
|
|
1609
1619
|
"builder-slot": e.name
|
|
1610
1620
|
},
|
|
1611
1621
|
children: /* @__PURE__ */ l(
|
|
1612
|
-
|
|
1622
|
+
Y,
|
|
1613
1623
|
{
|
|
1614
1624
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1615
1625
|
path: `symbol.data.${e.name}`,
|
|
@@ -1620,7 +1630,7 @@ function Lt(e) {
|
|
|
1620
1630
|
}
|
|
1621
1631
|
);
|
|
1622
1632
|
}
|
|
1623
|
-
const
|
|
1633
|
+
const jt = {
|
|
1624
1634
|
name: "Symbol",
|
|
1625
1635
|
noWrap: !0,
|
|
1626
1636
|
static: !0,
|
|
@@ -1653,7 +1663,7 @@ const _t = {
|
|
|
1653
1663
|
hideFromUI: !0,
|
|
1654
1664
|
type: "boolean"
|
|
1655
1665
|
}]
|
|
1656
|
-
},
|
|
1666
|
+
}, Dt = {
|
|
1657
1667
|
name: "Text",
|
|
1658
1668
|
static: !0,
|
|
1659
1669
|
isRSC: !0,
|
|
@@ -1767,8 +1777,8 @@ const Mt = {
|
|
|
1767
1777
|
advanced: !0
|
|
1768
1778
|
}]
|
|
1769
1779
|
};
|
|
1770
|
-
function
|
|
1771
|
-
var i,
|
|
1780
|
+
function Ht(e) {
|
|
1781
|
+
var i, o, r, a, c, s, d;
|
|
1772
1782
|
function t() {
|
|
1773
1783
|
return {
|
|
1774
1784
|
...e.autoPlay === !0 ? {
|
|
@@ -1825,7 +1835,7 @@ function Dt(e) {
|
|
|
1825
1835
|
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
1826
1836
|
}
|
|
1827
1837
|
),
|
|
1828
|
-
e.aspectRatio && !(e.fitContent && ((r = (
|
|
1838
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1829
1839
|
"div",
|
|
1830
1840
|
{
|
|
1831
1841
|
style: {
|
|
@@ -1836,7 +1846,7 @@ function Dt(e) {
|
|
|
1836
1846
|
}
|
|
1837
1847
|
}
|
|
1838
1848
|
) }) : null,
|
|
1839
|
-
(c = (
|
|
1849
|
+
(c = (a = e.builderBlock) == null ? void 0 : a.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
1840
1850
|
"div",
|
|
1841
1851
|
{
|
|
1842
1852
|
style: {
|
|
@@ -1870,41 +1880,41 @@ function Dt(e) {
|
|
|
1870
1880
|
}
|
|
1871
1881
|
const ye = () => [{
|
|
1872
1882
|
component: Ke,
|
|
1873
|
-
...Ct
|
|
1874
|
-
}, {
|
|
1875
|
-
component: yt,
|
|
1876
|
-
...wt
|
|
1877
|
-
}, {
|
|
1878
|
-
component: Tt,
|
|
1879
1883
|
...It
|
|
1880
1884
|
}, {
|
|
1881
|
-
component:
|
|
1885
|
+
component: xt,
|
|
1886
|
+
...Tt
|
|
1887
|
+
}, {
|
|
1888
|
+
component: Et,
|
|
1882
1889
|
...Rt
|
|
1883
1890
|
}, {
|
|
1884
|
-
component:
|
|
1885
|
-
...
|
|
1891
|
+
component: At,
|
|
1892
|
+
...Pt
|
|
1886
1893
|
}, {
|
|
1887
|
-
component:
|
|
1888
|
-
...
|
|
1894
|
+
component: vt,
|
|
1895
|
+
...Nt
|
|
1889
1896
|
}, {
|
|
1890
|
-
component:
|
|
1897
|
+
component: Ct,
|
|
1891
1898
|
...Vt
|
|
1892
1899
|
}, {
|
|
1893
|
-
component:
|
|
1894
|
-
|
|
1900
|
+
component: Ft,
|
|
1901
|
+
...$t
|
|
1895
1902
|
}, {
|
|
1896
|
-
component:
|
|
1897
|
-
...
|
|
1903
|
+
component: wt,
|
|
1904
|
+
...Lt
|
|
1898
1905
|
}, {
|
|
1899
|
-
component:
|
|
1906
|
+
component: hn,
|
|
1900
1907
|
...jt
|
|
1901
1908
|
}, {
|
|
1902
|
-
component:
|
|
1909
|
+
component: Ut,
|
|
1910
|
+
...Dt
|
|
1911
|
+
}, {
|
|
1912
|
+
component: Ht,
|
|
1903
1913
|
...Mt
|
|
1904
1914
|
}, {
|
|
1905
|
-
component:
|
|
1906
|
-
...
|
|
1907
|
-
}],
|
|
1915
|
+
component: Ot,
|
|
1916
|
+
..._t
|
|
1917
|
+
}], Kt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
1908
1918
|
function getAndSetVariantId() {
|
|
1909
1919
|
function setCookie(name, value, days) {
|
|
1910
1920
|
let expires = '';
|
|
@@ -1960,7 +1970,7 @@ const ye = () => [{
|
|
|
1960
1970
|
}).join('');
|
|
1961
1971
|
styleEl.innerHTML = newStyleStr;
|
|
1962
1972
|
}
|
|
1963
|
-
}`,
|
|
1973
|
+
}`, zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
1964
1974
|
if (!navigator.cookieEnabled) {
|
|
1965
1975
|
return;
|
|
1966
1976
|
}
|
|
@@ -1994,20 +2004,20 @@ const ye = () => [{
|
|
|
1994
2004
|
thisScriptEl?.remove();
|
|
1995
2005
|
}
|
|
1996
2006
|
return;
|
|
1997
|
-
}`, Be = "builderIoAbTest", We = "builderIoRenderContent",
|
|
2007
|
+
}`, Be = "builderIoAbTest", We = "builderIoRenderContent", U = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
1998
2008
|
...t,
|
|
1999
2009
|
testVariationId: t.id,
|
|
2000
2010
|
id: e == null ? void 0 : e.id
|
|
2001
|
-
})),
|
|
2011
|
+
})), qt = ({
|
|
2002
2012
|
canTrack: e,
|
|
2003
2013
|
content: t
|
|
2004
|
-
}) => !(!(
|
|
2005
|
-
window.${Be} = ${
|
|
2006
|
-
window.${We} = ${
|
|
2007
|
-
`,
|
|
2014
|
+
}) => !(!(U(t).length > 0) || !e || V()), Yt = (e) => e === "react" || e === "reactNative", Ae = Yt($), Qt = () => `
|
|
2015
|
+
window.${Be} = ${Kt}
|
|
2016
|
+
window.${We} = ${zt}
|
|
2017
|
+
`, Gt = (e, t) => `
|
|
2008
2018
|
window.${Be}(
|
|
2009
2019
|
"${t}",${JSON.stringify(e)}, ${Ae}
|
|
2010
|
-
)`,
|
|
2020
|
+
)`, Jt = ({
|
|
2011
2021
|
contentId: e,
|
|
2012
2022
|
variationId: t
|
|
2013
2023
|
}) => `window.${We}(
|
|
@@ -2022,15 +2032,15 @@ function Z(e) {
|
|
|
2022
2032
|
}
|
|
2023
2033
|
);
|
|
2024
2034
|
}
|
|
2025
|
-
const
|
|
2026
|
-
function
|
|
2035
|
+
const Xt = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
2036
|
+
function Ne(e, t) {
|
|
2027
2037
|
const n = new URL(t.origin), i = n.hostname;
|
|
2028
|
-
return (e ||
|
|
2038
|
+
return (e || Xt).findIndex((o) => o.startsWith("*.") ? i.endsWith(o.slice(1)) : o === i) > -1;
|
|
2029
2039
|
}
|
|
2030
|
-
function
|
|
2040
|
+
function Se(e) {
|
|
2031
2041
|
return Math.round(e * 1e3) / 1e3;
|
|
2032
2042
|
}
|
|
2033
|
-
const
|
|
2043
|
+
const Zt = (e, t, n = !0) => {
|
|
2034
2044
|
if (!(e instanceof HTMLElement))
|
|
2035
2045
|
return null;
|
|
2036
2046
|
let i = n ? e : e.parentElement;
|
|
@@ -2041,35 +2051,35 @@ const Jt = (e, t, n = !0) => {
|
|
|
2041
2051
|
return i;
|
|
2042
2052
|
} while (i = i.parentElement);
|
|
2043
2053
|
return null;
|
|
2044
|
-
},
|
|
2054
|
+
}, en = (e) => Zt(e, (t) => {
|
|
2045
2055
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2046
2056
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2047
|
-
}),
|
|
2057
|
+
}), xe = ({
|
|
2048
2058
|
event: e,
|
|
2049
2059
|
target: t
|
|
2050
2060
|
}) => {
|
|
2051
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
2061
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Se(i / n.width), a = Se(o / n.height);
|
|
2052
2062
|
return {
|
|
2053
2063
|
x: r,
|
|
2054
|
-
y:
|
|
2064
|
+
y: a
|
|
2055
2065
|
};
|
|
2056
|
-
},
|
|
2057
|
-
const t = e.target, n = t &&
|
|
2066
|
+
}, tn = (e) => {
|
|
2067
|
+
const t = e.target, n = t && en(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2058
2068
|
return {
|
|
2059
2069
|
targetBuilderElement: i || void 0,
|
|
2060
2070
|
metadata: {
|
|
2061
|
-
targetOffset: t ?
|
|
2071
|
+
targetOffset: t ? xe({
|
|
2062
2072
|
event: e,
|
|
2063
2073
|
target: t
|
|
2064
2074
|
}) : void 0,
|
|
2065
|
-
builderTargetOffset: n ?
|
|
2075
|
+
builderTargetOffset: n ? xe({
|
|
2066
2076
|
event: e,
|
|
2067
2077
|
target: n
|
|
2068
2078
|
}) : void 0,
|
|
2069
2079
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2070
2080
|
}
|
|
2071
2081
|
};
|
|
2072
|
-
},
|
|
2082
|
+
}, nn = "0.12.5", on = () => {
|
|
2073
2083
|
_e("insertMenu", {
|
|
2074
2084
|
name: "_default",
|
|
2075
2085
|
default: !0,
|
|
@@ -2093,13 +2103,13 @@ const Jt = (e, t, n = !0) => {
|
|
|
2093
2103
|
});
|
|
2094
2104
|
};
|
|
2095
2105
|
let ve = !1;
|
|
2096
|
-
const
|
|
2106
|
+
const an = (e = {}) => {
|
|
2097
2107
|
var t, n;
|
|
2098
|
-
ve || (ve = !0,
|
|
2108
|
+
ve || (ve = !0, V() && ((t = window.parent) == null || t.postMessage({
|
|
2099
2109
|
type: "builder.sdkInfo",
|
|
2100
2110
|
data: {
|
|
2101
|
-
target:
|
|
2102
|
-
version:
|
|
2111
|
+
target: $,
|
|
2112
|
+
version: nn,
|
|
2103
2113
|
supportsPatchUpdates: !1,
|
|
2104
2114
|
// Supports builder-model="..." attribute which is needed to
|
|
2105
2115
|
// scope our '+ add block' button styling
|
|
@@ -2112,21 +2122,21 @@ const nn = (e = {}) => {
|
|
|
2112
2122
|
options: e
|
|
2113
2123
|
}
|
|
2114
2124
|
}, "*"), window.addEventListener("message", (i) => {
|
|
2115
|
-
var r,
|
|
2116
|
-
if (!
|
|
2125
|
+
var r, a;
|
|
2126
|
+
if (!Ne(e.trustedHosts, i))
|
|
2117
2127
|
return;
|
|
2118
2128
|
const {
|
|
2119
|
-
data:
|
|
2129
|
+
data: o
|
|
2120
2130
|
} = i;
|
|
2121
|
-
if (
|
|
2122
|
-
switch (
|
|
2131
|
+
if (o != null && o.type)
|
|
2132
|
+
switch (o.type) {
|
|
2123
2133
|
case "builder.evaluate": {
|
|
2124
|
-
const c =
|
|
2134
|
+
const c = o.data.text, s = o.data.arguments || [], d = o.data.id, m = new Function(c);
|
|
2125
2135
|
let g, k = null;
|
|
2126
2136
|
try {
|
|
2127
2137
|
g = m.apply(null, s);
|
|
2128
|
-
} catch (
|
|
2129
|
-
k =
|
|
2138
|
+
} catch (S) {
|
|
2139
|
+
k = S;
|
|
2130
2140
|
}
|
|
2131
2141
|
k ? (r = window.parent) == null || r.postMessage({
|
|
2132
2142
|
type: "builder.evaluateError",
|
|
@@ -2134,16 +2144,16 @@ const nn = (e = {}) => {
|
|
|
2134
2144
|
id: d,
|
|
2135
2145
|
error: k.message
|
|
2136
2146
|
}
|
|
2137
|
-
}, "*") : g && typeof g.then == "function" ? g.then((
|
|
2138
|
-
var
|
|
2139
|
-
(
|
|
2147
|
+
}, "*") : g && typeof g.then == "function" ? g.then((S) => {
|
|
2148
|
+
var x;
|
|
2149
|
+
(x = window.parent) == null || x.postMessage({
|
|
2140
2150
|
type: "builder.evaluateResult",
|
|
2141
2151
|
data: {
|
|
2142
2152
|
id: d,
|
|
2143
|
-
result:
|
|
2153
|
+
result: S
|
|
2144
2154
|
}
|
|
2145
2155
|
}, "*");
|
|
2146
|
-
}).catch(console.error) : (
|
|
2156
|
+
}).catch(console.error) : (a = window.parent) == null || a.postMessage({
|
|
2147
2157
|
type: "builder.evaluateResult",
|
|
2148
2158
|
data: {
|
|
2149
2159
|
result: g,
|
|
@@ -2155,11 +2165,11 @@ const nn = (e = {}) => {
|
|
|
2155
2165
|
}
|
|
2156
2166
|
})));
|
|
2157
2167
|
};
|
|
2158
|
-
function
|
|
2159
|
-
var L,
|
|
2168
|
+
function rn(e) {
|
|
2169
|
+
var L, Q, G, ae, re, le, ce;
|
|
2160
2170
|
const t = ee(null), [n, i] = v(() => 0);
|
|
2161
2171
|
v(() => !0);
|
|
2162
|
-
function
|
|
2172
|
+
function o(u) {
|
|
2163
2173
|
var b, y;
|
|
2164
2174
|
const f = {
|
|
2165
2175
|
...e.builderContextSignal.rootState,
|
|
@@ -2171,7 +2181,7 @@ function an(e) {
|
|
|
2171
2181
|
}));
|
|
2172
2182
|
}
|
|
2173
2183
|
function r(u) {
|
|
2174
|
-
var b, y, p, T,
|
|
2184
|
+
var b, y, p, T, D;
|
|
2175
2185
|
const f = {
|
|
2176
2186
|
...e.builderContextSignal.content,
|
|
2177
2187
|
...u,
|
|
@@ -2182,23 +2192,23 @@ function an(e) {
|
|
|
2182
2192
|
meta: {
|
|
2183
2193
|
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
2184
2194
|
...u == null ? void 0 : u.meta,
|
|
2185
|
-
breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((
|
|
2195
|
+
breakpoints: ((p = u == null ? void 0 : u.meta) == null ? void 0 : p.breakpoints) || ((D = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : D.breakpoints)
|
|
2186
2196
|
}
|
|
2187
2197
|
};
|
|
2188
|
-
e.setBuilderContextSignal((
|
|
2189
|
-
|
|
2198
|
+
e.setBuilderContextSignal(($e) => ({
|
|
2199
|
+
...$e,
|
|
2190
2200
|
content: f
|
|
2191
2201
|
}));
|
|
2192
2202
|
}
|
|
2193
2203
|
v(() => 0);
|
|
2194
|
-
const [
|
|
2204
|
+
const [a, c] = v(
|
|
2195
2205
|
() => !1
|
|
2196
2206
|
), [s, d] = v(
|
|
2197
2207
|
() => e.contentWrapper || "div"
|
|
2198
2208
|
);
|
|
2199
2209
|
function m(u) {
|
|
2200
2210
|
var b;
|
|
2201
|
-
if (!
|
|
2211
|
+
if (!Ne(e.trustedHosts, u))
|
|
2202
2212
|
return;
|
|
2203
2213
|
const { data: f } = u;
|
|
2204
2214
|
if (f)
|
|
@@ -2232,7 +2242,7 @@ function an(e) {
|
|
|
2232
2242
|
rootSetState: e.builderContextSignal.rootSetState
|
|
2233
2243
|
});
|
|
2234
2244
|
}
|
|
2235
|
-
const [k,
|
|
2245
|
+
const [k, S] = v(() => ({})), [x, C] = v(() => !1);
|
|
2236
2246
|
function R(u) {
|
|
2237
2247
|
var f, b;
|
|
2238
2248
|
if (e.builderContextSignal.content) {
|
|
@@ -2243,11 +2253,11 @@ function an(e) {
|
|
|
2243
2253
|
contentId: p,
|
|
2244
2254
|
apiKey: e.apiKey,
|
|
2245
2255
|
variationId: y !== p ? y : void 0,
|
|
2246
|
-
...
|
|
2247
|
-
unique: !
|
|
2256
|
+
...tn(u),
|
|
2257
|
+
unique: !x
|
|
2248
2258
|
});
|
|
2249
2259
|
}
|
|
2250
|
-
|
|
2260
|
+
x || C(!0);
|
|
2251
2261
|
}
|
|
2252
2262
|
function B(u) {
|
|
2253
2263
|
return u.replace(
|
|
@@ -2262,7 +2272,7 @@ function an(e) {
|
|
|
2262
2272
|
);
|
|
2263
2273
|
}
|
|
2264
2274
|
function w({ url: u, key: f }) {
|
|
2265
|
-
|
|
2275
|
+
De(u).then((b) => b.json()).then((b) => {
|
|
2266
2276
|
var p, T;
|
|
2267
2277
|
const y = {
|
|
2268
2278
|
...e.builderContextSignal.rootState,
|
|
@@ -2277,17 +2287,17 @@ function an(e) {
|
|
|
2277
2287
|
var f, b, y;
|
|
2278
2288
|
const u = (y = (b = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : b.httpRequests) != null ? y : {};
|
|
2279
2289
|
Object.entries(u).forEach(([p, T]) => {
|
|
2280
|
-
if (T && (!k[p] ||
|
|
2281
|
-
const
|
|
2290
|
+
if (T && (!k[p] || N())) {
|
|
2291
|
+
const D = B(T);
|
|
2282
2292
|
w({
|
|
2283
|
-
url:
|
|
2293
|
+
url: D,
|
|
2284
2294
|
key: p
|
|
2285
2295
|
});
|
|
2286
2296
|
}
|
|
2287
2297
|
});
|
|
2288
2298
|
}
|
|
2289
2299
|
function P() {
|
|
2290
|
-
|
|
2300
|
+
N() && window.dispatchEvent(
|
|
2291
2301
|
new CustomEvent(
|
|
2292
2302
|
"builder:component:stateChange",
|
|
2293
2303
|
{
|
|
@@ -2302,7 +2312,7 @@ function an(e) {
|
|
|
2302
2312
|
);
|
|
2303
2313
|
}
|
|
2304
2314
|
function W(u) {
|
|
2305
|
-
i(n + 1), window.addEventListener("message", m),
|
|
2315
|
+
i(n + 1), window.addEventListener("message", m), on(), an({
|
|
2306
2316
|
...e.locale ? {
|
|
2307
2317
|
locale: e.locale
|
|
2308
2318
|
} : {},
|
|
@@ -2319,7 +2329,7 @@ function an(e) {
|
|
|
2319
2329
|
e.builderContextSignal.componentInfos
|
|
2320
2330
|
).forEach((f) => {
|
|
2321
2331
|
var y;
|
|
2322
|
-
const b =
|
|
2332
|
+
const b = je(f);
|
|
2323
2333
|
(y = window.parent) == null || y.postMessage(b, "*");
|
|
2324
2334
|
}), window.addEventListener(
|
|
2325
2335
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -2364,8 +2374,8 @@ function an(e) {
|
|
|
2364
2374
|
};
|
|
2365
2375
|
}, []), E(() => {
|
|
2366
2376
|
var u, f;
|
|
2367
|
-
if (
|
|
2368
|
-
if (
|
|
2377
|
+
if (V()) {
|
|
2378
|
+
if (N() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && H(e.canTrack)) {
|
|
2369
2379
|
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
2380
|
de({
|
|
2371
2381
|
type: "impression",
|
|
@@ -2375,32 +2385,32 @@ function an(e) {
|
|
|
2375
2385
|
variationId: y !== p ? y : void 0
|
|
2376
2386
|
});
|
|
2377
2387
|
}
|
|
2378
|
-
|
|
2388
|
+
Oe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
2379
2389
|
}
|
|
2380
2390
|
}, []), E(() => {
|
|
2381
|
-
e.apiKey ||
|
|
2391
|
+
e.apiKey || _.error(
|
|
2382
2392
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2383
2393
|
), g(), I(), P();
|
|
2384
2394
|
}, []), E(() => {
|
|
2385
2395
|
e.content && r(e.content);
|
|
2386
2396
|
}, [e.content]), E(() => {
|
|
2387
|
-
}, [
|
|
2397
|
+
}, [a]), E(() => {
|
|
2388
2398
|
g();
|
|
2389
2399
|
}, [
|
|
2390
|
-
(
|
|
2400
|
+
(Q = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : Q.jsCode,
|
|
2391
2401
|
e.builderContextSignal.rootState
|
|
2392
2402
|
]), E(() => {
|
|
2393
2403
|
I();
|
|
2394
|
-
}, [(
|
|
2404
|
+
}, [(ae = (G = e.builderContextSignal.content) == null ? void 0 : G.data) == null ? void 0 : ae.httpRequests]), E(() => {
|
|
2395
2405
|
P();
|
|
2396
2406
|
}, [e.builderContextSignal.rootState]), E(() => {
|
|
2397
|
-
e.data &&
|
|
2407
|
+
e.data && o(e.data);
|
|
2398
2408
|
}, [e.data]), E(() => {
|
|
2399
|
-
e.locale &&
|
|
2409
|
+
e.locale && o({
|
|
2400
2410
|
locale: e.locale
|
|
2401
2411
|
});
|
|
2402
2412
|
}, [e.locale]), E(() => () => {
|
|
2403
|
-
|
|
2413
|
+
V() && (window.removeEventListener("message", m), window.removeEventListener(
|
|
2404
2414
|
"builder:component:stateChangeListenerActivated",
|
|
2405
2415
|
P
|
|
2406
2416
|
));
|
|
@@ -2422,11 +2432,11 @@ function an(e) {
|
|
|
2422
2432
|
e.children
|
|
2423
2433
|
) }) : null });
|
|
2424
2434
|
}
|
|
2425
|
-
const
|
|
2426
|
-
var r,
|
|
2427
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
2428
|
-
let
|
|
2429
|
-
if (i && t && n && (
|
|
2435
|
+
const ln = (e) => {
|
|
2436
|
+
var r, a;
|
|
2437
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
2438
|
+
let o = "";
|
|
2439
|
+
if (i && t && n && (o += `
|
|
2430
2440
|
@font-face {
|
|
2431
2441
|
font-family: "${t}";
|
|
2432
2442
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -2438,7 +2448,7 @@ font-weight: 400;
|
|
|
2438
2448
|
if (!(String(Number(c)) === c))
|
|
2439
2449
|
continue;
|
|
2440
2450
|
const d = e.files[c];
|
|
2441
|
-
d && d !== i && (
|
|
2451
|
+
d && d !== i && (o += `
|
|
2442
2452
|
@font-face {
|
|
2443
2453
|
font-family: "${t}";
|
|
2444
2454
|
src: url('${d}') format('woff2');
|
|
@@ -2447,24 +2457,24 @@ font-weight: ${c};
|
|
|
2447
2457
|
}
|
|
2448
2458
|
`.trim());
|
|
2449
2459
|
}
|
|
2450
|
-
return
|
|
2451
|
-
},
|
|
2460
|
+
return o;
|
|
2461
|
+
}, cn = ({
|
|
2452
2462
|
customFonts: e
|
|
2453
2463
|
}) => {
|
|
2454
2464
|
var t;
|
|
2455
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
2456
|
-
},
|
|
2465
|
+
return ((t = e == null ? void 0 : e.map((n) => ln(n))) == null ? void 0 : t.join(" ")) || "";
|
|
2466
|
+
}, sn = ({
|
|
2457
2467
|
cssCode: e,
|
|
2458
2468
|
contentId: t
|
|
2459
2469
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
2460
|
-
function
|
|
2470
|
+
function dn(e) {
|
|
2461
2471
|
const [t, n] = v(
|
|
2462
2472
|
() => `
|
|
2463
|
-
${
|
|
2473
|
+
${sn({
|
|
2464
2474
|
cssCode: e.cssCode,
|
|
2465
2475
|
contentId: e.contentId
|
|
2466
2476
|
})}
|
|
2467
|
-
${
|
|
2477
|
+
${cn({
|
|
2468
2478
|
customFonts: e.customFonts
|
|
2469
2479
|
})}
|
|
2470
2480
|
|
|
@@ -2486,26 +2496,26 @@ ${rn({
|
|
|
2486
2496
|
}
|
|
2487
2497
|
`.trim()
|
|
2488
2498
|
);
|
|
2489
|
-
return /* @__PURE__ */ l(
|
|
2499
|
+
return /* @__PURE__ */ l(z, { styles: t });
|
|
2490
2500
|
}
|
|
2491
|
-
const
|
|
2501
|
+
const un = ({
|
|
2492
2502
|
content: e,
|
|
2493
2503
|
data: t,
|
|
2494
2504
|
locale: n
|
|
2495
2505
|
}) => {
|
|
2496
|
-
var r,
|
|
2497
|
-
const i = {},
|
|
2498
|
-
return (c = (
|
|
2506
|
+
var r, a, c;
|
|
2507
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
2508
|
+
return (c = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || c.forEach((s) => {
|
|
2499
2509
|
s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
|
|
2500
2510
|
}), {
|
|
2501
2511
|
...i,
|
|
2502
|
-
...
|
|
2512
|
+
...o,
|
|
2503
2513
|
...t,
|
|
2504
2514
|
...n ? {
|
|
2505
2515
|
locale: n
|
|
2506
2516
|
} : {}
|
|
2507
2517
|
};
|
|
2508
|
-
},
|
|
2518
|
+
}, mn = ({
|
|
2509
2519
|
content: e,
|
|
2510
2520
|
data: t
|
|
2511
2521
|
}) => e ? {
|
|
@@ -2517,11 +2527,11 @@ const sn = ({
|
|
|
2517
2527
|
meta: e == null ? void 0 : e.meta
|
|
2518
2528
|
} : void 0;
|
|
2519
2529
|
function ke(e) {
|
|
2520
|
-
var s, d, m, g, k,
|
|
2530
|
+
var s, d, m, g, k, S, x;
|
|
2521
2531
|
const [t, n] = v(
|
|
2522
2532
|
() => {
|
|
2523
2533
|
var C, R;
|
|
2524
|
-
return
|
|
2534
|
+
return Jt({
|
|
2525
2535
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
2526
2536
|
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
2527
2537
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -2535,7 +2545,7 @@ function ke(e) {
|
|
|
2535
2545
|
rootState: C
|
|
2536
2546
|
}));
|
|
2537
2547
|
}
|
|
2538
|
-
const [
|
|
2548
|
+
const [o, r] = v(
|
|
2539
2549
|
() => [
|
|
2540
2550
|
...ye(),
|
|
2541
2551
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -2555,13 +2565,13 @@ function ke(e) {
|
|
|
2555
2565
|
}),
|
|
2556
2566
|
{}
|
|
2557
2567
|
)
|
|
2558
|
-
), [
|
|
2559
|
-
content:
|
|
2568
|
+
), [a, c] = v(() => ({
|
|
2569
|
+
content: mn({
|
|
2560
2570
|
content: e.content,
|
|
2561
2571
|
data: e.data
|
|
2562
2572
|
}),
|
|
2563
2573
|
localState: void 0,
|
|
2564
|
-
rootState:
|
|
2574
|
+
rootState: un({
|
|
2565
2575
|
content: e.content,
|
|
2566
2576
|
data: e.data,
|
|
2567
2577
|
locale: e.locale
|
|
@@ -2594,10 +2604,10 @@ function ke(e) {
|
|
|
2594
2604
|
we.Provider,
|
|
2595
2605
|
{
|
|
2596
2606
|
value: {
|
|
2597
|
-
registeredComponents:
|
|
2607
|
+
registeredComponents: o
|
|
2598
2608
|
},
|
|
2599
2609
|
children: /* @__PURE__ */ A(
|
|
2600
|
-
|
|
2610
|
+
rn,
|
|
2601
2611
|
{
|
|
2602
2612
|
content: e.content,
|
|
2603
2613
|
data: e.data,
|
|
@@ -2609,7 +2619,7 @@ function ke(e) {
|
|
|
2609
2619
|
includeRefs: e.includeRefs,
|
|
2610
2620
|
enrich: e.enrich,
|
|
2611
2621
|
showContent: e.showContent,
|
|
2612
|
-
builderContextSignal:
|
|
2622
|
+
builderContextSignal: a,
|
|
2613
2623
|
contentWrapper: e.contentWrapper,
|
|
2614
2624
|
contentWrapperProps: e.contentWrapperProps,
|
|
2615
2625
|
linkComponent: e.linkComponent,
|
|
@@ -2618,19 +2628,19 @@ function ke(e) {
|
|
|
2618
2628
|
children: [
|
|
2619
2629
|
e.isSsrAbTest ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
|
|
2620
2630
|
/* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(
|
|
2621
|
-
|
|
2631
|
+
dn,
|
|
2622
2632
|
{
|
|
2623
|
-
contentId: (s =
|
|
2624
|
-
cssCode: (m = (d =
|
|
2625
|
-
customFonts: (k = (g =
|
|
2633
|
+
contentId: (s = a.content) == null ? void 0 : s.id,
|
|
2634
|
+
cssCode: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2635
|
+
customFonts: (k = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : k.customFonts
|
|
2626
2636
|
}
|
|
2627
2637
|
) }),
|
|
2628
2638
|
/* @__PURE__ */ l(
|
|
2629
|
-
|
|
2639
|
+
Y,
|
|
2630
2640
|
{
|
|
2631
|
-
blocks: (
|
|
2632
|
-
context:
|
|
2633
|
-
registeredComponents:
|
|
2641
|
+
blocks: (x = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : x.blocks,
|
|
2642
|
+
context: a,
|
|
2643
|
+
registeredComponents: o,
|
|
2634
2644
|
linkComponent: e.linkComponent
|
|
2635
2645
|
}
|
|
2636
2646
|
)
|
|
@@ -2640,50 +2650,50 @@ function ke(e) {
|
|
|
2640
2650
|
}
|
|
2641
2651
|
);
|
|
2642
2652
|
}
|
|
2643
|
-
function
|
|
2644
|
-
var
|
|
2653
|
+
function Ve(e) {
|
|
2654
|
+
var a, c;
|
|
2645
2655
|
const [t, n] = v(
|
|
2646
|
-
() =>
|
|
2656
|
+
() => qt({
|
|
2647
2657
|
canTrack: H(e.canTrack),
|
|
2648
2658
|
content: e.content
|
|
2649
2659
|
})
|
|
2650
2660
|
);
|
|
2651
2661
|
function i() {
|
|
2652
2662
|
var s;
|
|
2653
|
-
return
|
|
2654
|
-
|
|
2663
|
+
return Gt(
|
|
2664
|
+
U(e.content).map((d) => ({
|
|
2655
2665
|
id: d.testVariationId,
|
|
2656
2666
|
testRatio: d.testRatio
|
|
2657
2667
|
})),
|
|
2658
2668
|
((s = e.content) == null ? void 0 : s.id) || ""
|
|
2659
2669
|
);
|
|
2660
2670
|
}
|
|
2661
|
-
function
|
|
2662
|
-
return
|
|
2671
|
+
function o() {
|
|
2672
|
+
return U(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
2663
2673
|
}
|
|
2664
2674
|
function r() {
|
|
2665
2675
|
var s;
|
|
2666
2676
|
return t ? {
|
|
2667
2677
|
...e.content,
|
|
2668
2678
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
2669
|
-
} :
|
|
2679
|
+
} : Ue({
|
|
2670
2680
|
item: e.content,
|
|
2671
2681
|
canTrack: H(e.canTrack)
|
|
2672
2682
|
});
|
|
2673
2683
|
}
|
|
2674
2684
|
return E(() => {
|
|
2675
2685
|
}, []), /* @__PURE__ */ A(h, { children: [
|
|
2676
|
-
!e.__isNestedRender &&
|
|
2686
|
+
!e.__isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l(Z, { scriptStr: Qt() }) }) : null,
|
|
2677
2687
|
t ? /* @__PURE__ */ A(h, { children: [
|
|
2678
2688
|
/* @__PURE__ */ l(
|
|
2679
|
-
|
|
2689
|
+
z,
|
|
2680
2690
|
{
|
|
2681
|
-
id: `variants-styles-${(
|
|
2682
|
-
styles:
|
|
2691
|
+
id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
|
|
2692
|
+
styles: o()
|
|
2683
2693
|
}
|
|
2684
2694
|
),
|
|
2685
2695
|
/* @__PURE__ */ l(Z, { scriptStr: i() }),
|
|
2686
|
-
(c =
|
|
2696
|
+
(c = U(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
|
|
2687
2697
|
ke,
|
|
2688
2698
|
{
|
|
2689
2699
|
content: s,
|
|
@@ -2735,7 +2745,7 @@ function $e(e) {
|
|
|
2735
2745
|
)
|
|
2736
2746
|
] });
|
|
2737
2747
|
}
|
|
2738
|
-
const
|
|
2748
|
+
const fn = async ({
|
|
2739
2749
|
builderContextValue: e,
|
|
2740
2750
|
symbol: t
|
|
2741
2751
|
}) => {
|
|
@@ -2751,15 +2761,15 @@ const un = async ({
|
|
|
2751
2761
|
}
|
|
2752
2762
|
}
|
|
2753
2763
|
}).catch((n) => {
|
|
2754
|
-
|
|
2764
|
+
_.error("Could not fetch symbol content: ", n);
|
|
2755
2765
|
});
|
|
2756
2766
|
};
|
|
2757
|
-
function
|
|
2758
|
-
var r,
|
|
2767
|
+
function hn(e) {
|
|
2768
|
+
var r, a, c, s;
|
|
2759
2769
|
function t() {
|
|
2760
2770
|
var d, m;
|
|
2761
2771
|
return [
|
|
2762
|
-
e.attributes[
|
|
2772
|
+
e.attributes[O()],
|
|
2763
2773
|
"builder-symbol",
|
|
2764
2774
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
2765
2775
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -2769,8 +2779,8 @@ function mn(e) {
|
|
|
2769
2779
|
var d;
|
|
2770
2780
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
2771
2781
|
});
|
|
2772
|
-
function
|
|
2773
|
-
n ||
|
|
2782
|
+
function o() {
|
|
2783
|
+
n || fn({
|
|
2774
2784
|
symbol: e.symbol,
|
|
2775
2785
|
builderContextValue: e.builderContext
|
|
2776
2786
|
}).then((d) => {
|
|
@@ -2779,9 +2789,9 @@ function mn(e) {
|
|
|
2779
2789
|
}
|
|
2780
2790
|
return E(() => {
|
|
2781
2791
|
}, []), E(() => {
|
|
2782
|
-
|
|
2792
|
+
o();
|
|
2783
2793
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
2784
|
-
|
|
2794
|
+
Ve,
|
|
2785
2795
|
{
|
|
2786
2796
|
__isNestedRender: !0,
|
|
2787
2797
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -2792,7 +2802,7 @@ function mn(e) {
|
|
|
2792
2802
|
},
|
|
2793
2803
|
customComponents: Object.values(e.builderComponents),
|
|
2794
2804
|
data: {
|
|
2795
|
-
...(
|
|
2805
|
+
...(a = e.symbol) == null ? void 0 : a.data,
|
|
2796
2806
|
...e.builderContext.localState,
|
|
2797
2807
|
...(c = n == null ? void 0 : n.data) == null ? void 0 : c.state
|
|
2798
2808
|
},
|
|
@@ -2802,31 +2812,31 @@ function mn(e) {
|
|
|
2802
2812
|
}
|
|
2803
2813
|
) });
|
|
2804
2814
|
}
|
|
2805
|
-
const
|
|
2815
|
+
const Sn = Y, xn = Ve;
|
|
2806
2816
|
export {
|
|
2807
|
-
|
|
2817
|
+
Y as Blocks,
|
|
2808
2818
|
Ke as Button,
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2819
|
+
xt as Columns,
|
|
2820
|
+
Ve as Content,
|
|
2821
|
+
vt as Fragment,
|
|
2822
|
+
Ct as Image,
|
|
2823
|
+
Sn as RenderBlocks,
|
|
2824
|
+
xn as RenderContent,
|
|
2825
|
+
wt as Section,
|
|
2826
|
+
hn as Symbol,
|
|
2817
2827
|
Ut as Text,
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2828
|
+
Ht as Video,
|
|
2829
|
+
pn as _processContentResult,
|
|
2830
|
+
je as createRegisterComponentMessage,
|
|
2831
|
+
Cn as fetchBuilderProps,
|
|
2832
|
+
wn as fetchEntries,
|
|
2823
2833
|
Ce as fetchOneEntry,
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2834
|
+
In as getAllContent,
|
|
2835
|
+
Tn as getBuilderSearchParams,
|
|
2836
|
+
Rn as getContent,
|
|
2837
|
+
N as isEditing,
|
|
2838
|
+
Oe as isPreviewing,
|
|
2829
2839
|
_e as register,
|
|
2830
|
-
|
|
2831
|
-
|
|
2840
|
+
En as setEditorSettings,
|
|
2841
|
+
Pn as track
|
|
2832
2842
|
};
|