@builder.io/sdk-react 2.0.2-0 → 2.0.2-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +24 -24
- package/lib/browser/blocks-exports.mjs +326 -303
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-45c77a86.js → server-entry-441053ba.js} +3 -3
- package/lib/browser/{server-entry-69a4d3c9.cjs → server-entry-56e8004a.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-ddf18178.js → accordion-24b26431.js} +1 -1
- package/lib/edge/{accordion-7896cae6.cjs → accordion-f87e2b96.cjs} +1 -1
- package/lib/edge/{blocks-ab38d130.js → blocks-53095100.js} +460 -437
- package/lib/edge/{blocks-32559998.cjs → blocks-802e3770.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-cba5f3f8.js → button-73485ccc.js} +2 -2
- package/lib/edge/{button-91e0aec2.cjs → button-b0f515b1.cjs} +1 -1
- package/lib/edge/{columns-fef78a25.cjs → columns-1f80b3f3.cjs} +1 -1
- package/lib/edge/{columns-d0c6c772.js → columns-405f1d21.js} +3 -3
- package/lib/edge/{content-variants-95b6e700.js → content-variants-579677ec.js} +10 -10
- package/lib/edge/{content-variants-ccd386ed.cjs → content-variants-f380acc1.cjs} +1 -1
- package/lib/edge/{form-a156cc1d.cjs → form-2862b060.cjs} +1 -1
- package/lib/edge/{form-d460bf8a.js → form-c2684aa9.js} +3 -3
- package/lib/edge/{get-class-prop-name-237cd359.cjs → get-class-prop-name-2d695e7d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1928cf9f.js → get-class-prop-name-ade06415.js} +1 -1
- package/lib/edge/{img-86db320f.cjs → img-29a47783.cjs} +1 -1
- package/lib/edge/{img-f9ec8689.js → img-a605abb9.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-394e72b8.js → input-24ab9912.js} +1 -1
- package/lib/edge/{input-953ef2fe.cjs → input-afb0eaae.cjs} +1 -1
- package/lib/edge/{select-9bb6b8c1.cjs → select-542f9b0e.cjs} +1 -1
- package/lib/edge/{select-3e25848f.js → select-b7b61dde.js} +1 -1
- package/lib/edge/{server-entry-771d1637.js → server-entry-042bd6f0.js} +1 -1
- package/lib/edge/{server-entry-6bd1c4bc.cjs → server-entry-b32a9c32.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-5441ba3a.cjs → slot-19716d77.cjs} +1 -1
- package/lib/edge/{slot-dea3a8f3.js → slot-d08698a2.js} +3 -3
- package/lib/edge/{symbol-faa97614.js → symbol-9aaa9700.js} +2 -2
- package/lib/edge/{symbol-58595a6d.cjs → symbol-be4081db.cjs} +1 -1
- package/lib/edge/{tabs-0240dafd.cjs → tabs-4cb2e700.cjs} +1 -1
- package/lib/edge/{tabs-8a95f30b.js → tabs-e32544a6.js} +3 -3
- package/lib/node/blocks-exports.cjs +24 -24
- package/lib/node/blocks-exports.mjs +307 -284
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-55fc8cd4.cjs → node-runtime-9af386e9.cjs} +1 -1
- package/lib/node/{node-runtime-46d21495.js → node-runtime-df1706b0.js} +1 -1
- package/lib/node/{server-entry-11eee7d8.cjs → server-entry-1224f4f2.cjs} +1 -1
- package/lib/node/{server-entry-d45c1bf6.js → server-entry-f7ab9ed1.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-processed-block.d.ts +1 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var ne = (e, t, n) => (
|
|
2
|
+
var Ke = Object.defineProperty;
|
|
3
|
+
var ze = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ne = (e, t, n) => (ze(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
5
|
import { jsx as l, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET as z, isEditing as $, isBrowser as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
6
|
+
import { TARGET as z, isEditing as $, isBrowser as j, getUserAttributes as _e, checkIsDefined as G, logger as X, fastClone as we, isPreviewing as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as Re, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as he, handleABTestingSync as Ze } from "./server-entry-441053ba.js";
|
|
7
|
+
import { createContext as Ee, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Be } from "react";
|
|
8
|
+
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
9
|
function de(e) {
|
|
10
|
-
return /* @__PURE__ */ l(R, { children:
|
|
10
|
+
return /* @__PURE__ */ l(R, { children: tt(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
12
|
const q = () => {
|
|
13
13
|
switch (z) {
|
|
@@ -23,7 +23,7 @@ const q = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function nt(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
@@ -47,7 +47,7 @@ function tt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const ue =
|
|
50
|
+
const ue = Ee({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -61,15 +61,21 @@ const ue = Re({
|
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
62
|
BlocksWrapperProps: {},
|
|
63
63
|
nonce: ""
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Pe = Ee({ registeredComponents: {} });
|
|
65
|
+
function it(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
function ot(e, ...t) {
|
|
73
|
+
const n = Object.assign({}, e);
|
|
74
|
+
for (const i of t)
|
|
75
|
+
delete n[i];
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
const at = ({
|
|
73
79
|
builder: e,
|
|
74
80
|
context: t,
|
|
75
81
|
event: n,
|
|
@@ -81,12 +87,12 @@ const it = ({
|
|
|
81
87
|
builder: e,
|
|
82
88
|
context: t,
|
|
83
89
|
event: n
|
|
84
|
-
}),
|
|
90
|
+
}), rt = () => ({
|
|
85
91
|
isEditing: $(),
|
|
86
|
-
isBrowser:
|
|
87
|
-
isServer: !
|
|
88
|
-
getUserAttributes: () =>
|
|
89
|
-
}),
|
|
92
|
+
isBrowser: j(),
|
|
93
|
+
isServer: !j(),
|
|
94
|
+
getUserAttributes: () => _e()
|
|
95
|
+
}), lt = (e, {
|
|
90
96
|
isExpression: t = !0
|
|
91
97
|
}) => /* 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, be = ({
|
|
92
98
|
code: e,
|
|
@@ -97,11 +103,11 @@ const it = ({
|
|
|
97
103
|
rootSetState: a,
|
|
98
104
|
rootState: r
|
|
99
105
|
}) => {
|
|
100
|
-
const s =
|
|
106
|
+
const s = at({
|
|
101
107
|
builder: t,
|
|
102
108
|
context: n,
|
|
103
109
|
event: i,
|
|
104
|
-
state:
|
|
110
|
+
state: Ve({
|
|
105
111
|
rootState: r,
|
|
106
112
|
localState: o,
|
|
107
113
|
rootSetState: a
|
|
@@ -109,7 +115,7 @@ const it = ({
|
|
|
109
115
|
});
|
|
110
116
|
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
111
117
|
};
|
|
112
|
-
function
|
|
118
|
+
function Ve({
|
|
113
119
|
rootState: e,
|
|
114
120
|
localState: t,
|
|
115
121
|
rootSetState: n
|
|
@@ -119,7 +125,7 @@ function Pe({
|
|
|
119
125
|
if (t && o in t)
|
|
120
126
|
return t[o];
|
|
121
127
|
const a = i[o];
|
|
122
|
-
return typeof a == "object" && a !== null ?
|
|
128
|
+
return typeof a == "object" && a !== null ? Ve({
|
|
123
129
|
rootState: a,
|
|
124
130
|
localState: void 0,
|
|
125
131
|
rootSetState: n ? (r) => {
|
|
@@ -134,17 +140,17 @@ function Pe({
|
|
|
134
140
|
}
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
|
-
function
|
|
143
|
+
function st() {
|
|
138
144
|
var e;
|
|
139
145
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
140
146
|
}
|
|
141
|
-
const
|
|
147
|
+
const ct = () => {
|
|
142
148
|
var i;
|
|
143
|
-
if (!
|
|
149
|
+
if (!st())
|
|
144
150
|
return !1;
|
|
145
151
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
146
152
|
return e && t && !n ? (X.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;
|
|
147
|
-
},
|
|
153
|
+
}, dt = (e) => (j() || ct(), be(e)), L = class L {
|
|
148
154
|
static getCacheKey(t) {
|
|
149
155
|
return JSON.stringify({
|
|
150
156
|
...t,
|
|
@@ -163,7 +169,7 @@ const lt = () => {
|
|
|
163
169
|
}
|
|
164
170
|
};
|
|
165
171
|
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
166
|
-
let
|
|
172
|
+
let M = L;
|
|
167
173
|
function K({
|
|
168
174
|
code: e,
|
|
169
175
|
context: t,
|
|
@@ -177,10 +183,10 @@ function K({
|
|
|
177
183
|
if (e === "")
|
|
178
184
|
return;
|
|
179
185
|
const d = {
|
|
180
|
-
code:
|
|
186
|
+
code: lt(e, {
|
|
181
187
|
isExpression: r
|
|
182
188
|
}),
|
|
183
|
-
builder:
|
|
189
|
+
builder: rt(),
|
|
184
190
|
context: t,
|
|
185
191
|
event: a,
|
|
186
192
|
rootSetState: o,
|
|
@@ -188,15 +194,15 @@ function K({
|
|
|
188
194
|
localState: n
|
|
189
195
|
};
|
|
190
196
|
if (s) {
|
|
191
|
-
const c =
|
|
197
|
+
const c = M.getCacheKey(d), m = M.getCachedValue(c);
|
|
192
198
|
if (m)
|
|
193
199
|
return m.value;
|
|
194
200
|
}
|
|
195
201
|
try {
|
|
196
|
-
const c =
|
|
202
|
+
const c = dt(d);
|
|
197
203
|
if (s) {
|
|
198
|
-
const m =
|
|
199
|
-
|
|
204
|
+
const m = M.getCacheKey(d);
|
|
205
|
+
M.setCachedValue(m, c);
|
|
200
206
|
}
|
|
201
207
|
return c;
|
|
202
208
|
} catch (c) {
|
|
@@ -206,13 +212,25 @@ function K({
|
|
|
206
212
|
return;
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
|
-
const
|
|
215
|
+
const Ae = (e, t, n) => {
|
|
210
216
|
if (Object(e) !== e)
|
|
211
217
|
return e;
|
|
212
218
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
213
219
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
214
220
|
};
|
|
215
|
-
|
|
221
|
+
function se(e) {
|
|
222
|
+
if (e === null || typeof e != "object")
|
|
223
|
+
return e;
|
|
224
|
+
if (Array.isArray(e))
|
|
225
|
+
return e.map((n) => se(n));
|
|
226
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
227
|
+
return e;
|
|
228
|
+
const t = {};
|
|
229
|
+
for (const n in e)
|
|
230
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
|
|
231
|
+
return t;
|
|
232
|
+
}
|
|
233
|
+
const ut = ({
|
|
216
234
|
block: e,
|
|
217
235
|
context: t,
|
|
218
236
|
localState: n,
|
|
@@ -221,14 +239,16 @@ const ct = ({
|
|
|
221
239
|
}) => {
|
|
222
240
|
if (!e.bindings)
|
|
223
241
|
return e;
|
|
224
|
-
const a =
|
|
242
|
+
const a = se(ot(e, "children", "meta")), r = {
|
|
225
243
|
...a,
|
|
226
244
|
properties: {
|
|
227
245
|
...a.properties
|
|
228
246
|
},
|
|
229
247
|
actions: {
|
|
230
248
|
...a.actions
|
|
231
|
-
}
|
|
249
|
+
},
|
|
250
|
+
children: e.children,
|
|
251
|
+
meta: e.meta
|
|
232
252
|
};
|
|
233
253
|
for (const s in e.bindings) {
|
|
234
254
|
const d = e.bindings[s], c = K({
|
|
@@ -237,13 +257,13 @@ const ct = ({
|
|
|
237
257
|
rootState: i,
|
|
238
258
|
rootSetState: o,
|
|
239
259
|
context: t,
|
|
240
|
-
enableCache:
|
|
260
|
+
enableCache: typeof window == "undefined"
|
|
241
261
|
});
|
|
242
|
-
|
|
262
|
+
Ae(r, s, c);
|
|
243
263
|
}
|
|
244
264
|
return r;
|
|
245
265
|
};
|
|
246
|
-
function
|
|
266
|
+
function mt({
|
|
247
267
|
block: e,
|
|
248
268
|
context: t,
|
|
249
269
|
shouldEvaluateBindings: n,
|
|
@@ -252,7 +272,7 @@ function dt({
|
|
|
252
272
|
rootSetState: a
|
|
253
273
|
}) {
|
|
254
274
|
const r = e;
|
|
255
|
-
return n ?
|
|
275
|
+
return n ? ut({
|
|
256
276
|
block: r,
|
|
257
277
|
localState: i,
|
|
258
278
|
rootState: o,
|
|
@@ -261,7 +281,7 @@ function dt({
|
|
|
261
281
|
}) : r;
|
|
262
282
|
}
|
|
263
283
|
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
264
|
-
function
|
|
284
|
+
function ft(e, t, n = {}) {
|
|
265
285
|
let i, o, a, r = null, s = 0;
|
|
266
286
|
const d = function() {
|
|
267
287
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -283,55 +303,55 @@ function H(e, ...t) {
|
|
|
283
303
|
}
|
|
284
304
|
return n;
|
|
285
305
|
}
|
|
286
|
-
function
|
|
306
|
+
function ht(e) {
|
|
287
307
|
for (const t of e)
|
|
288
308
|
switch (t.trigger) {
|
|
289
309
|
case "pageLoad":
|
|
290
|
-
|
|
310
|
+
Fe(t);
|
|
291
311
|
break;
|
|
292
312
|
case "scrollInView":
|
|
293
|
-
|
|
313
|
+
bt(t);
|
|
294
314
|
break;
|
|
295
315
|
}
|
|
296
316
|
}
|
|
297
|
-
function
|
|
317
|
+
function Ne(e) {
|
|
298
318
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
299
319
|
}
|
|
300
|
-
function
|
|
301
|
-
const n =
|
|
320
|
+
function We(e, t) {
|
|
321
|
+
const n = gt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
302
322
|
for (const s of r)
|
|
303
323
|
for (const d of n)
|
|
304
324
|
d in s || (s[d] = i[d]);
|
|
305
325
|
}
|
|
306
|
-
function
|
|
326
|
+
function gt(e) {
|
|
307
327
|
const t = [];
|
|
308
328
|
for (const n of e.steps)
|
|
309
329
|
for (const i in n.styles)
|
|
310
330
|
t.indexOf(i) === -1 && t.push(i);
|
|
311
331
|
return t;
|
|
312
332
|
}
|
|
313
|
-
function
|
|
333
|
+
function Fe(e) {
|
|
314
334
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
315
335
|
if (!t.length) {
|
|
316
|
-
|
|
336
|
+
Ne(e.elementId || e.id || "");
|
|
317
337
|
return;
|
|
318
338
|
}
|
|
319
339
|
Array.from(t).forEach((n) => {
|
|
320
|
-
|
|
340
|
+
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
321
341
|
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
322
342
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
323
343
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
324
344
|
});
|
|
325
345
|
});
|
|
326
346
|
}
|
|
327
|
-
function
|
|
347
|
+
function bt(e) {
|
|
328
348
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
349
|
if (!t.length) {
|
|
330
|
-
|
|
350
|
+
Ne(e.elementId || e.id || "");
|
|
331
351
|
return;
|
|
332
352
|
}
|
|
333
353
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
354
|
+
We(e, n);
|
|
335
355
|
let i = !1, o = !1;
|
|
336
356
|
function a() {
|
|
337
357
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -340,7 +360,7 @@ function ht(e) {
|
|
|
340
360
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
341
361
|
})) : e.repeat && i && !o && !s(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
342
362
|
}
|
|
343
|
-
const r =
|
|
363
|
+
const r = ft(a, 200, {
|
|
344
364
|
leading: !1
|
|
345
365
|
});
|
|
346
366
|
function s(m) {
|
|
@@ -359,42 +379,42 @@ function ht(e) {
|
|
|
359
379
|
}), a();
|
|
360
380
|
});
|
|
361
381
|
}
|
|
362
|
-
const
|
|
382
|
+
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
363
383
|
if (typeof i == "string")
|
|
364
384
|
return `${ee(n)}: ${i};`;
|
|
365
|
-
}).filter(G),
|
|
385
|
+
}).filter(G), pt = (e) => $e(e).join(`
|
|
366
386
|
`), J = ({
|
|
367
387
|
mediaQuery: e,
|
|
368
388
|
className: t,
|
|
369
389
|
styles: n
|
|
370
390
|
}) => {
|
|
371
391
|
const i = `.${t} {
|
|
372
|
-
${
|
|
392
|
+
${pt(n)}
|
|
373
393
|
}`;
|
|
374
394
|
return e ? `${e} {
|
|
375
395
|
${i}
|
|
376
396
|
}` : i;
|
|
377
397
|
};
|
|
378
|
-
function
|
|
398
|
+
function yt({
|
|
379
399
|
style: e
|
|
380
400
|
}) {
|
|
381
401
|
return e;
|
|
382
402
|
}
|
|
383
|
-
const
|
|
403
|
+
const xt = ({
|
|
384
404
|
block: e,
|
|
385
405
|
context: t
|
|
386
|
-
}) =>
|
|
406
|
+
}) => De(yt({
|
|
387
407
|
style: e.style || {},
|
|
388
408
|
context: t,
|
|
389
409
|
block: e
|
|
390
410
|
}));
|
|
391
|
-
function
|
|
411
|
+
function De(e) {
|
|
392
412
|
switch (z) {
|
|
393
413
|
case "svelte":
|
|
394
414
|
case "vue":
|
|
395
415
|
case "solid":
|
|
396
416
|
case "angular":
|
|
397
|
-
return
|
|
417
|
+
return $e(e).join(" ");
|
|
398
418
|
case "qwik":
|
|
399
419
|
case "reactNative":
|
|
400
420
|
case "react":
|
|
@@ -402,7 +422,7 @@ function $e(e) {
|
|
|
402
422
|
return e;
|
|
403
423
|
}
|
|
404
424
|
}
|
|
405
|
-
const
|
|
425
|
+
const vt = ({
|
|
406
426
|
block: e,
|
|
407
427
|
registeredComponents: t
|
|
408
428
|
}) => {
|
|
@@ -416,7 +436,7 @@ const yt = ({
|
|
|
416
436
|
console.warn(`
|
|
417
437
|
Could not find a registered component named "${n}".
|
|
418
438
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
419
|
-
},
|
|
439
|
+
}, St = ({
|
|
420
440
|
block: e,
|
|
421
441
|
context: t
|
|
422
442
|
}) => {
|
|
@@ -450,27 +470,27 @@ const yt = ({
|
|
|
450
470
|
},
|
|
451
471
|
block: i
|
|
452
472
|
}));
|
|
453
|
-
},
|
|
473
|
+
}, kt = (e, t) => {
|
|
454
474
|
var n;
|
|
455
475
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
456
476
|
builderLinkComponent: t
|
|
457
477
|
} : {};
|
|
458
|
-
},
|
|
478
|
+
}, Ct = (e, t) => {
|
|
459
479
|
var n;
|
|
460
480
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
461
481
|
builderComponents: t
|
|
462
482
|
} : {};
|
|
463
|
-
},
|
|
483
|
+
}, Tt = (e, t) => {
|
|
464
484
|
var n;
|
|
465
485
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
466
486
|
builderBlock: t
|
|
467
487
|
} : {};
|
|
468
|
-
},
|
|
488
|
+
}, wt = (e, t) => {
|
|
469
489
|
var n;
|
|
470
490
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
471
491
|
builderContext: t
|
|
472
492
|
} : {};
|
|
473
|
-
},
|
|
493
|
+
}, Le = {
|
|
474
494
|
small: {
|
|
475
495
|
min: 320,
|
|
476
496
|
default: 321,
|
|
@@ -486,11 +506,11 @@ const yt = ({
|
|
|
486
506
|
default: 991,
|
|
487
507
|
max: 1200
|
|
488
508
|
}
|
|
489
|
-
}, pe = (e, t =
|
|
509
|
+
}, pe = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
|
|
490
510
|
small: e,
|
|
491
511
|
medium: t
|
|
492
512
|
}) => {
|
|
493
|
-
const n =
|
|
513
|
+
const n = we(Le);
|
|
494
514
|
if (!e || !t)
|
|
495
515
|
return n;
|
|
496
516
|
const i = Math.floor(e / 2);
|
|
@@ -523,14 +543,14 @@ function te(e) {
|
|
|
523
543
|
}
|
|
524
544
|
);
|
|
525
545
|
}
|
|
526
|
-
function
|
|
546
|
+
function It(e) {
|
|
527
547
|
function t() {
|
|
528
548
|
const i = e.block;
|
|
529
549
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
530
550
|
}
|
|
531
551
|
function n() {
|
|
532
552
|
var y, E, V;
|
|
533
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
553
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
|
|
534
554
|
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
535
555
|
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
536
556
|
if (!m)
|
|
@@ -583,10 +603,10 @@ function Tt(e) {
|
|
|
583
603
|
}
|
|
584
604
|
) }) : null });
|
|
585
605
|
}
|
|
586
|
-
function
|
|
606
|
+
function Rt(e) {
|
|
587
607
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
588
608
|
}
|
|
589
|
-
const
|
|
609
|
+
const Et = (e) => `on${Rt(e)}`, Bt = (e, t) => (n) => K({
|
|
590
610
|
code: e,
|
|
591
611
|
context: t.context,
|
|
592
612
|
localState: t.localState,
|
|
@@ -596,14 +616,14 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
|
|
|
596
616
|
isExpression: !1,
|
|
597
617
|
enableCache: !0
|
|
598
618
|
});
|
|
599
|
-
function
|
|
619
|
+
function Ue(e) {
|
|
600
620
|
var i;
|
|
601
621
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
602
622
|
for (const o in n) {
|
|
603
623
|
if (!n.hasOwnProperty(o))
|
|
604
624
|
continue;
|
|
605
625
|
const a = n[o];
|
|
606
|
-
let r =
|
|
626
|
+
let r = Et(o);
|
|
607
627
|
if (e.stripPrefix)
|
|
608
628
|
switch (z) {
|
|
609
629
|
case "vue":
|
|
@@ -613,16 +633,16 @@ function Oe(e) {
|
|
|
613
633
|
r = r.replace("on:", "");
|
|
614
634
|
break;
|
|
615
635
|
}
|
|
616
|
-
t[r] =
|
|
636
|
+
t[r] = Bt(a, e);
|
|
617
637
|
}
|
|
618
638
|
return t;
|
|
619
639
|
}
|
|
620
|
-
function
|
|
640
|
+
function Pt({
|
|
621
641
|
properties: e
|
|
622
642
|
}) {
|
|
623
643
|
return e;
|
|
624
644
|
}
|
|
625
|
-
const
|
|
645
|
+
const Vt = (e) => ({
|
|
626
646
|
href: e.href
|
|
627
647
|
});
|
|
628
648
|
function me({
|
|
@@ -631,22 +651,22 @@ function me({
|
|
|
631
651
|
}) {
|
|
632
652
|
var i;
|
|
633
653
|
const n = {
|
|
634
|
-
...
|
|
654
|
+
...Vt(e),
|
|
635
655
|
...e.properties,
|
|
636
656
|
"builder-id": e.id,
|
|
637
|
-
style:
|
|
657
|
+
style: xt({
|
|
638
658
|
block: e,
|
|
639
659
|
context: t
|
|
640
660
|
}),
|
|
641
661
|
[q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
642
662
|
};
|
|
643
|
-
return
|
|
663
|
+
return Pt({
|
|
644
664
|
properties: n,
|
|
645
665
|
context: t,
|
|
646
666
|
block: e
|
|
647
667
|
});
|
|
648
668
|
}
|
|
649
|
-
function
|
|
669
|
+
function At(e) {
|
|
650
670
|
return /* @__PURE__ */ l(
|
|
651
671
|
de,
|
|
652
672
|
{
|
|
@@ -655,7 +675,7 @@ function Pt(e) {
|
|
|
655
675
|
block: e.block,
|
|
656
676
|
context: e.context
|
|
657
677
|
}),
|
|
658
|
-
actionAttributes:
|
|
678
|
+
actionAttributes: Ue({
|
|
659
679
|
block: e.block,
|
|
660
680
|
rootState: e.context.rootState,
|
|
661
681
|
rootSetState: e.context.rootSetState,
|
|
@@ -667,14 +687,14 @@ function Pt(e) {
|
|
|
667
687
|
}
|
|
668
688
|
);
|
|
669
689
|
}
|
|
670
|
-
function
|
|
690
|
+
function Nt(e) {
|
|
671
691
|
function t() {
|
|
672
692
|
return e.includeBlockProps ? {
|
|
673
693
|
...me({
|
|
674
694
|
block: e.block,
|
|
675
695
|
context: e.context
|
|
676
696
|
}),
|
|
677
|
-
...
|
|
697
|
+
...Ue({
|
|
678
698
|
block: e.block,
|
|
679
699
|
rootState: e.context.rootState,
|
|
680
700
|
rootSetState: e.context.rootSetState,
|
|
@@ -685,7 +705,7 @@ function Vt(e) {
|
|
|
685
705
|
}
|
|
686
706
|
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
687
707
|
}
|
|
688
|
-
const
|
|
708
|
+
const Wt = ({
|
|
689
709
|
componentOptions: e,
|
|
690
710
|
builderBlock: t,
|
|
691
711
|
context: n,
|
|
@@ -718,12 +738,12 @@ const At = ({
|
|
|
718
738
|
function ye(e) {
|
|
719
739
|
var i;
|
|
720
740
|
const [t, n] = T(
|
|
721
|
-
() => e.isInteractive ?
|
|
741
|
+
() => e.isInteractive ? Nt : e.componentRef
|
|
722
742
|
);
|
|
723
743
|
return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
724
744
|
t,
|
|
725
745
|
{
|
|
726
|
-
...
|
|
746
|
+
...Wt({
|
|
727
747
|
componentOptions: e.componentOptions,
|
|
728
748
|
builderBlock: e.builderBlock,
|
|
729
749
|
context: e.context,
|
|
@@ -746,7 +766,7 @@ function ye(e) {
|
|
|
746
766
|
}
|
|
747
767
|
) }) : null });
|
|
748
768
|
}
|
|
749
|
-
function
|
|
769
|
+
function Ft(e) {
|
|
750
770
|
const [t, n] = T(() => e.repeatContext);
|
|
751
771
|
return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
752
772
|
_,
|
|
@@ -761,26 +781,27 @@ function Nt(e) {
|
|
|
761
781
|
function _(e) {
|
|
762
782
|
var m, h, f;
|
|
763
783
|
function t() {
|
|
764
|
-
return
|
|
784
|
+
return vt({
|
|
765
785
|
block: a(),
|
|
766
786
|
context: e.context,
|
|
767
787
|
registeredComponents: e.registeredComponents
|
|
768
788
|
});
|
|
769
789
|
}
|
|
770
790
|
function n() {
|
|
771
|
-
return
|
|
791
|
+
return St({
|
|
772
792
|
block: e.block,
|
|
773
793
|
context: e.context
|
|
774
794
|
});
|
|
775
795
|
}
|
|
776
796
|
const [i, o] = T(() => ({
|
|
777
|
-
value: null
|
|
797
|
+
value: null,
|
|
798
|
+
update: !1
|
|
778
799
|
}));
|
|
779
800
|
function a() {
|
|
780
801
|
var g;
|
|
781
|
-
if (i.value && !Ie())
|
|
802
|
+
if (i.value && !i.update && !Ie())
|
|
782
803
|
return i.value;
|
|
783
|
-
const u = (g = e.block.repeat) != null && g.collection ? e.block :
|
|
804
|
+
const u = (g = e.block.repeat) != null && g.collection ? e.block : mt({
|
|
784
805
|
block: e.block,
|
|
785
806
|
localState: e.context.localState,
|
|
786
807
|
rootState: e.context.rootState,
|
|
@@ -788,7 +809,7 @@ function _(e) {
|
|
|
788
809
|
context: e.context.context,
|
|
789
810
|
shouldEvaluateBindings: !0
|
|
790
811
|
});
|
|
791
|
-
return i.value = u, u;
|
|
812
|
+
return i.value = u, i.update = !1, u;
|
|
792
813
|
}
|
|
793
814
|
function r() {
|
|
794
815
|
var g;
|
|
@@ -811,11 +832,11 @@ function _(e) {
|
|
|
811
832
|
blockChildren: (u = a().children) != null ? u : [],
|
|
812
833
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
813
834
|
componentOptions: {
|
|
814
|
-
...
|
|
815
|
-
...
|
|
816
|
-
...
|
|
817
|
-
...
|
|
818
|
-
...
|
|
835
|
+
...it(a()),
|
|
836
|
+
...Tt(t(), a()),
|
|
837
|
+
...wt(t(), e.context),
|
|
838
|
+
...kt(t(), e.linkComponent),
|
|
839
|
+
...Ct(
|
|
819
840
|
t(),
|
|
820
841
|
e.registeredComponents
|
|
821
842
|
)
|
|
@@ -830,14 +851,16 @@ function _(e) {
|
|
|
830
851
|
}
|
|
831
852
|
return B(() => {
|
|
832
853
|
const u = a().id, g = a().animations;
|
|
833
|
-
g && u &&
|
|
854
|
+
g && u && ht(
|
|
834
855
|
g.map((x) => ({
|
|
835
856
|
...x,
|
|
836
857
|
elementId: u
|
|
837
858
|
}))
|
|
838
859
|
);
|
|
839
|
-
}, []),
|
|
840
|
-
|
|
860
|
+
}, []), B(() => {
|
|
861
|
+
i.update = !0;
|
|
862
|
+
}), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
|
|
863
|
+
/* @__PURE__ */ l(It, { block: a(), context: e.context }),
|
|
841
864
|
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
842
865
|
ye,
|
|
843
866
|
{
|
|
@@ -852,7 +875,7 @@ function _(e) {
|
|
|
852
875
|
isInteractive: c().isInteractive
|
|
853
876
|
}
|
|
854
877
|
) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
855
|
-
|
|
878
|
+
Ft,
|
|
856
879
|
{
|
|
857
880
|
repeatContext: u.context,
|
|
858
881
|
block: u.block,
|
|
@@ -861,7 +884,7 @@ function _(e) {
|
|
|
861
884
|
},
|
|
862
885
|
g
|
|
863
886
|
)) }) : /* @__PURE__ */ P(
|
|
864
|
-
|
|
887
|
+
At,
|
|
865
888
|
{
|
|
866
889
|
Wrapper: r(),
|
|
867
890
|
block: a(),
|
|
@@ -896,7 +919,7 @@ function _(e) {
|
|
|
896
919
|
) })
|
|
897
920
|
] }) : null });
|
|
898
921
|
}
|
|
899
|
-
function
|
|
922
|
+
function $t(e) {
|
|
900
923
|
function t() {
|
|
901
924
|
var o;
|
|
902
925
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -951,9 +974,9 @@ function Wt(e) {
|
|
|
951
974
|
}
|
|
952
975
|
function D(e) {
|
|
953
976
|
var i, o, a;
|
|
954
|
-
const t = ge(ue), n = ge(
|
|
977
|
+
const t = ge(ue), n = ge(Pe);
|
|
955
978
|
return /* @__PURE__ */ l(
|
|
956
|
-
|
|
979
|
+
$t,
|
|
957
980
|
{
|
|
958
981
|
blocks: e.blocks,
|
|
959
982
|
parent: e.parent,
|
|
@@ -974,8 +997,8 @@ function D(e) {
|
|
|
974
997
|
}
|
|
975
998
|
);
|
|
976
999
|
}
|
|
977
|
-
const
|
|
978
|
-
function
|
|
1000
|
+
const Dt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1001
|
+
function Lt(e) {
|
|
979
1002
|
var A, O;
|
|
980
1003
|
const [t, n] = T(
|
|
981
1004
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -986,24 +1009,24 @@ function $t(e) {
|
|
|
986
1009
|
return k.link ? e.builderLinkComponent || "a" : "div";
|
|
987
1010
|
}
|
|
988
1011
|
function d(k) {
|
|
989
|
-
var
|
|
990
|
-
return ((
|
|
1012
|
+
var I;
|
|
1013
|
+
return ((I = i[k]) == null ? void 0 : I.width) || 100 / i.length;
|
|
991
1014
|
}
|
|
992
1015
|
function c(k) {
|
|
993
|
-
const
|
|
994
|
-
return `calc(${
|
|
1016
|
+
const I = d(k), N = t * (i.length - 1) * (I / 100);
|
|
1017
|
+
return `calc(${I}% - ${N}px)`;
|
|
995
1018
|
}
|
|
996
1019
|
function m({
|
|
997
1020
|
stackedStyle: k,
|
|
998
|
-
desktopStyle:
|
|
1021
|
+
desktopStyle: I
|
|
999
1022
|
}) {
|
|
1000
|
-
return a === "tablet" ? k :
|
|
1023
|
+
return a === "tablet" ? k : I;
|
|
1001
1024
|
}
|
|
1002
1025
|
function h({
|
|
1003
1026
|
stackedStyle: k,
|
|
1004
|
-
desktopStyle:
|
|
1027
|
+
desktopStyle: I
|
|
1005
1028
|
}) {
|
|
1006
|
-
return a === "never" ?
|
|
1029
|
+
return a === "never" ? I : k;
|
|
1007
1030
|
}
|
|
1008
1031
|
const [f, u] = T(
|
|
1009
1032
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -1018,7 +1041,7 @@ function $t(e) {
|
|
|
1018
1041
|
};
|
|
1019
1042
|
}
|
|
1020
1043
|
function x(k) {
|
|
1021
|
-
const
|
|
1044
|
+
const I = k === 0 ? 0 : t, N = c(k), p = `${I}px`, b = "100%", v = 0;
|
|
1022
1045
|
return {
|
|
1023
1046
|
...{
|
|
1024
1047
|
display: "flex",
|
|
@@ -1047,7 +1070,7 @@ function $t(e) {
|
|
|
1047
1070
|
}
|
|
1048
1071
|
function y(k) {
|
|
1049
1072
|
var N, p;
|
|
1050
|
-
return
|
|
1073
|
+
return Oe(
|
|
1051
1074
|
((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
|
|
1052
1075
|
)[k].max;
|
|
1053
1076
|
}
|
|
@@ -1078,20 +1101,20 @@ function $t(e) {
|
|
|
1078
1101
|
},
|
|
1079
1102
|
`;
|
|
1080
1103
|
}
|
|
1081
|
-
function V(k,
|
|
1104
|
+
function V(k, I) {
|
|
1082
1105
|
return {
|
|
1083
1106
|
...k.link ? {
|
|
1084
1107
|
href: k.link
|
|
1085
1108
|
} : {},
|
|
1086
1109
|
[q()]: "builder-column",
|
|
1087
|
-
style:
|
|
1110
|
+
style: De(x(I))
|
|
1088
1111
|
};
|
|
1089
1112
|
}
|
|
1090
1113
|
return /* @__PURE__ */ P(R, { children: [
|
|
1091
1114
|
/* @__PURE__ */ P(
|
|
1092
1115
|
"div",
|
|
1093
1116
|
{
|
|
1094
|
-
className:
|
|
1117
|
+
className: Dt((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1095
1118
|
style: g(),
|
|
1096
1119
|
children: [
|
|
1097
1120
|
/* @__PURE__ */ l(
|
|
@@ -1102,16 +1125,16 @@ function $t(e) {
|
|
|
1102
1125
|
nonce: e.builderContext.nonce
|
|
1103
1126
|
}
|
|
1104
1127
|
),
|
|
1105
|
-
(O = e.columns) == null ? void 0 : O.map((k,
|
|
1128
|
+
(O = e.columns) == null ? void 0 : O.map((k, I) => /* @__PURE__ */ l(
|
|
1106
1129
|
de,
|
|
1107
1130
|
{
|
|
1108
1131
|
TagName: s(k),
|
|
1109
1132
|
actionAttributes: {},
|
|
1110
|
-
attributes: V(k,
|
|
1133
|
+
attributes: V(k, I),
|
|
1111
1134
|
children: /* @__PURE__ */ l(
|
|
1112
1135
|
D,
|
|
1113
1136
|
{
|
|
1114
|
-
path: `component.options.columns.${
|
|
1137
|
+
path: `component.options.columns.${I}.blocks`,
|
|
1115
1138
|
parent: e.builderBlock.id,
|
|
1116
1139
|
styleProp: {
|
|
1117
1140
|
flexGrow: "1"
|
|
@@ -1123,7 +1146,7 @@ function $t(e) {
|
|
|
1123
1146
|
}
|
|
1124
1147
|
)
|
|
1125
1148
|
},
|
|
1126
|
-
|
|
1149
|
+
I
|
|
1127
1150
|
))
|
|
1128
1151
|
]
|
|
1129
1152
|
}
|
|
@@ -1134,17 +1157,17 @@ function $t(e) {
|
|
|
1134
1157
|
}` })
|
|
1135
1158
|
] });
|
|
1136
1159
|
}
|
|
1137
|
-
function
|
|
1160
|
+
function Ot(e) {
|
|
1138
1161
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1139
1162
|
}
|
|
1140
1163
|
function xe(e) {
|
|
1141
1164
|
return e.replace(/http(s)?:/, "");
|
|
1142
1165
|
}
|
|
1143
|
-
function
|
|
1166
|
+
function Ut(e = "", t, n) {
|
|
1144
1167
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1145
1168
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1146
1169
|
}
|
|
1147
|
-
function
|
|
1170
|
+
function Mt(e, t) {
|
|
1148
1171
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1149
1172
|
return e;
|
|
1150
1173
|
if (t === "master")
|
|
@@ -1163,9 +1186,9 @@ function ie(e) {
|
|
|
1163
1186
|
if (e.match(/builder\.io/)) {
|
|
1164
1187
|
let n = e;
|
|
1165
1188
|
const i = Number(e.split("?width=")[1]);
|
|
1166
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1189
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ut(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1167
1190
|
}
|
|
1168
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1191
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Mt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1169
1192
|
}
|
|
1170
1193
|
function jt(e) {
|
|
1171
1194
|
var o, a, r, s, d, c;
|
|
@@ -1251,7 +1274,7 @@ function jt(e) {
|
|
|
1251
1274
|
}` })
|
|
1252
1275
|
] });
|
|
1253
1276
|
}
|
|
1254
|
-
function
|
|
1277
|
+
function Ht(e) {
|
|
1255
1278
|
return /* @__PURE__ */ l(
|
|
1256
1279
|
"section",
|
|
1257
1280
|
{
|
|
@@ -1332,7 +1355,7 @@ const oe = {
|
|
|
1332
1355
|
}
|
|
1333
1356
|
}
|
|
1334
1357
|
}]
|
|
1335
|
-
},
|
|
1358
|
+
}, qt = {
|
|
1336
1359
|
name: "Builder:Accordion",
|
|
1337
1360
|
canHaveChildren: !0,
|
|
1338
1361
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1397,7 +1420,7 @@ const oe = {
|
|
|
1397
1420
|
builderLinkComponent: !0
|
|
1398
1421
|
}
|
|
1399
1422
|
}, ve = (e) => e.toString();
|
|
1400
|
-
function
|
|
1423
|
+
function Kt(e) {
|
|
1401
1424
|
var h;
|
|
1402
1425
|
const [t, n] = T(() => []);
|
|
1403
1426
|
function i() {
|
|
@@ -1520,7 +1543,7 @@ function Ht(e) {
|
|
|
1520
1543
|
) : null
|
|
1521
1544
|
] })) });
|
|
1522
1545
|
}
|
|
1523
|
-
const
|
|
1546
|
+
const zt = {
|
|
1524
1547
|
name: "Core:Button",
|
|
1525
1548
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1526
1549
|
defaultStyles: {
|
|
@@ -1556,7 +1579,7 @@ const qt = {
|
|
|
1556
1579
|
shouldReceiveBuilderProps: {
|
|
1557
1580
|
builderLinkComponent: !0
|
|
1558
1581
|
}
|
|
1559
|
-
},
|
|
1582
|
+
}, _t = {
|
|
1560
1583
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1561
1584
|
name: "Columns",
|
|
1562
1585
|
isRSC: !0,
|
|
@@ -1763,13 +1786,13 @@ const qt = {
|
|
|
1763
1786
|
builderComponents: !0,
|
|
1764
1787
|
builderLinkComponent: !0
|
|
1765
1788
|
}
|
|
1766
|
-
},
|
|
1789
|
+
}, Jt = {
|
|
1767
1790
|
name: "Fragment",
|
|
1768
1791
|
static: !0,
|
|
1769
1792
|
hidden: !0,
|
|
1770
1793
|
canHaveChildren: !0,
|
|
1771
1794
|
noWrap: !0
|
|
1772
|
-
},
|
|
1795
|
+
}, Yt = {
|
|
1773
1796
|
name: "Image",
|
|
1774
1797
|
static: !0,
|
|
1775
1798
|
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",
|
|
@@ -1877,7 +1900,7 @@ const qt = {
|
|
|
1877
1900
|
shouldReceiveBuilderProps: {
|
|
1878
1901
|
builderBlock: !0
|
|
1879
1902
|
}
|
|
1880
|
-
},
|
|
1903
|
+
}, Gt = {
|
|
1881
1904
|
name: "Core:Section",
|
|
1882
1905
|
static: !0,
|
|
1883
1906
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1916,7 +1939,7 @@ const qt = {
|
|
|
1916
1939
|
}
|
|
1917
1940
|
}
|
|
1918
1941
|
}]
|
|
1919
|
-
},
|
|
1942
|
+
}, Qt = {
|
|
1920
1943
|
name: "Slot",
|
|
1921
1944
|
isRSC: !0,
|
|
1922
1945
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1933,7 +1956,7 @@ const qt = {
|
|
|
1933
1956
|
builderContext: !0
|
|
1934
1957
|
}
|
|
1935
1958
|
};
|
|
1936
|
-
function
|
|
1959
|
+
function Xt(e) {
|
|
1937
1960
|
var t, n, i;
|
|
1938
1961
|
return /* @__PURE__ */ l(
|
|
1939
1962
|
"div",
|
|
@@ -1956,7 +1979,7 @@ function Gt(e) {
|
|
|
1956
1979
|
}
|
|
1957
1980
|
);
|
|
1958
1981
|
}
|
|
1959
|
-
const
|
|
1982
|
+
const Zt = {
|
|
1960
1983
|
name: "Symbol",
|
|
1961
1984
|
noWrap: !0,
|
|
1962
1985
|
static: !0,
|
|
@@ -2033,7 +2056,7 @@ const Qt = {
|
|
|
2033
2056
|
text: "New tab content "
|
|
2034
2057
|
}
|
|
2035
2058
|
}
|
|
2036
|
-
},
|
|
2059
|
+
}, en = {
|
|
2037
2060
|
name: "Builder: Tabs",
|
|
2038
2061
|
inputs: [{
|
|
2039
2062
|
name: "tabs",
|
|
@@ -2137,7 +2160,7 @@ const Qt = {
|
|
|
2137
2160
|
builderLinkComponent: !0
|
|
2138
2161
|
}
|
|
2139
2162
|
};
|
|
2140
|
-
function
|
|
2163
|
+
function tn(e) {
|
|
2141
2164
|
var a;
|
|
2142
2165
|
const [t, n] = T(
|
|
2143
2166
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2196,7 +2219,7 @@ function Zt(e) {
|
|
|
2196
2219
|
) }) : null
|
|
2197
2220
|
] });
|
|
2198
2221
|
}
|
|
2199
|
-
const
|
|
2222
|
+
const nn = {
|
|
2200
2223
|
shouldReceiveBuilderProps: {
|
|
2201
2224
|
builderBlock: !1
|
|
2202
2225
|
},
|
|
@@ -2218,7 +2241,7 @@ const en = {
|
|
|
2218
2241
|
textAlign: "center"
|
|
2219
2242
|
}
|
|
2220
2243
|
};
|
|
2221
|
-
function
|
|
2244
|
+
function on(e) {
|
|
2222
2245
|
var t;
|
|
2223
2246
|
return /* @__PURE__ */ l(
|
|
2224
2247
|
"div",
|
|
@@ -2231,7 +2254,7 @@ function tn(e) {
|
|
|
2231
2254
|
}
|
|
2232
2255
|
);
|
|
2233
2256
|
}
|
|
2234
|
-
const
|
|
2257
|
+
const an = {
|
|
2235
2258
|
name: "Custom Code",
|
|
2236
2259
|
static: !0,
|
|
2237
2260
|
requiredPermissions: ["editCode"],
|
|
@@ -2254,7 +2277,7 @@ const nn = {
|
|
|
2254
2277
|
advanced: !0
|
|
2255
2278
|
}]
|
|
2256
2279
|
};
|
|
2257
|
-
function
|
|
2280
|
+
function rn(e) {
|
|
2258
2281
|
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2259
2282
|
return B(() => {
|
|
2260
2283
|
var s;
|
|
@@ -2292,7 +2315,7 @@ function on(e) {
|
|
|
2292
2315
|
}
|
|
2293
2316
|
);
|
|
2294
2317
|
}
|
|
2295
|
-
const
|
|
2318
|
+
const ln = {
|
|
2296
2319
|
name: "Embed",
|
|
2297
2320
|
static: !0,
|
|
2298
2321
|
inputs: [{
|
|
@@ -2307,8 +2330,8 @@ const an = {
|
|
|
2307
2330
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2308
2331
|
hideFromUI: !0
|
|
2309
2332
|
}]
|
|
2310
|
-
},
|
|
2311
|
-
function
|
|
2333
|
+
}, sn = ["text/javascript", "application/javascript", "application/ecmascript"], cn = (e) => sn.includes(e.type);
|
|
2334
|
+
function dn(e) {
|
|
2312
2335
|
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2313
2336
|
function d() {
|
|
2314
2337
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2320,7 +2343,7 @@ function sn(e) {
|
|
|
2320
2343
|
n.push(h.src);
|
|
2321
2344
|
const f = document.createElement("script");
|
|
2322
2345
|
f.async = !0, f.src = h.src, document.head.appendChild(f);
|
|
2323
|
-
} else if (
|
|
2346
|
+
} else if (cn(h) && !o.includes(h.innerText))
|
|
2324
2347
|
try {
|
|
2325
2348
|
o.push(h.innerText), new Function(h.innerText)();
|
|
2326
2349
|
} catch (f) {
|
|
@@ -2339,7 +2362,7 @@ function sn(e) {
|
|
|
2339
2362
|
}
|
|
2340
2363
|
);
|
|
2341
2364
|
}
|
|
2342
|
-
const
|
|
2365
|
+
const un = {
|
|
2343
2366
|
name: "Form:Form",
|
|
2344
2367
|
// editableTags: ['builder-form-error']
|
|
2345
2368
|
defaults: {
|
|
@@ -2576,14 +2599,14 @@ const cn = {
|
|
|
2576
2599
|
builderComponents: !0,
|
|
2577
2600
|
builderLinkComponent: !0
|
|
2578
2601
|
}
|
|
2579
|
-
},
|
|
2602
|
+
}, mn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], fn = () => {
|
|
2580
2603
|
const e = process.env.NODE_ENV || "production";
|
|
2581
|
-
return
|
|
2582
|
-
},
|
|
2604
|
+
return mn.includes(e) ? e : "production";
|
|
2605
|
+
}, hn = (e, t, n) => {
|
|
2583
2606
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2584
2607
|
return i === void 0 || i === e ? n : i;
|
|
2585
2608
|
};
|
|
2586
|
-
function
|
|
2609
|
+
function gn(e) {
|
|
2587
2610
|
var h, f;
|
|
2588
2611
|
const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2589
2612
|
function d(u) {
|
|
@@ -2642,15 +2665,15 @@ function fn(e) {
|
|
|
2642
2665
|
else {
|
|
2643
2666
|
const p = {};
|
|
2644
2667
|
Array.from(O).forEach(({ value: b, key: v }) => {
|
|
2645
|
-
|
|
2668
|
+
Ae(p, v, b);
|
|
2646
2669
|
}), V = JSON.stringify(p);
|
|
2647
2670
|
}
|
|
2648
2671
|
k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
|
|
2649
|
-
const
|
|
2650
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2672
|
+
const I = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2673
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2651
2674
|
return;
|
|
2652
2675
|
i("sending");
|
|
2653
|
-
const N = `${
|
|
2676
|
+
const N = `${fn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2654
2677
|
e.sendSubmissionsToEmail || ""
|
|
2655
2678
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2656
2679
|
fetch(
|
|
@@ -2661,7 +2684,7 @@ function fn(e) {
|
|
|
2661
2684
|
let b;
|
|
2662
2685
|
const v = p.headers.get("content-type");
|
|
2663
2686
|
if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
|
|
2664
|
-
let S =
|
|
2687
|
+
let S = hn(b, e.errorMessagePath);
|
|
2665
2688
|
S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
|
|
2666
2689
|
}
|
|
2667
2690
|
if (a(b), i(p.ok ? "success" : "error"), p.ok) {
|
|
@@ -2748,7 +2771,7 @@ function fn(e) {
|
|
|
2748
2771
|
" "
|
|
2749
2772
|
] });
|
|
2750
2773
|
}
|
|
2751
|
-
const
|
|
2774
|
+
const bn = {
|
|
2752
2775
|
name: "Form:Input",
|
|
2753
2776
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2754
2777
|
inputs: [
|
|
@@ -2800,8 +2823,8 @@ const hn = {
|
|
|
2800
2823
|
borderColor: "#ccc"
|
|
2801
2824
|
}
|
|
2802
2825
|
};
|
|
2803
|
-
function
|
|
2804
|
-
return /* @__PURE__ */
|
|
2826
|
+
function pn(e) {
|
|
2827
|
+
return /* @__PURE__ */ Be(
|
|
2805
2828
|
"input",
|
|
2806
2829
|
{
|
|
2807
2830
|
...e.attributes,
|
|
@@ -2815,7 +2838,7 @@ function gn(e) {
|
|
|
2815
2838
|
}
|
|
2816
2839
|
);
|
|
2817
2840
|
}
|
|
2818
|
-
const
|
|
2841
|
+
const yn = {
|
|
2819
2842
|
name: "Form:Select",
|
|
2820
2843
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2821
2844
|
defaultStyles: {
|
|
@@ -2858,9 +2881,9 @@ const bn = {
|
|
|
2858
2881
|
static: !0,
|
|
2859
2882
|
noWrap: !0
|
|
2860
2883
|
};
|
|
2861
|
-
function
|
|
2884
|
+
function xn(e) {
|
|
2862
2885
|
var t;
|
|
2863
|
-
return /* @__PURE__ */
|
|
2886
|
+
return /* @__PURE__ */ Be(
|
|
2864
2887
|
"select",
|
|
2865
2888
|
{
|
|
2866
2889
|
...e.attributes,
|
|
@@ -2873,7 +2896,7 @@ function pn(e) {
|
|
|
2873
2896
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2874
2897
|
);
|
|
2875
2898
|
}
|
|
2876
|
-
const
|
|
2899
|
+
const vn = {
|
|
2877
2900
|
name: "Form:SubmitButton",
|
|
2878
2901
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2879
2902
|
defaultStyles: {
|
|
@@ -2899,10 +2922,10 @@ const yn = {
|
|
|
2899
2922
|
// TODO: defaultChildren
|
|
2900
2923
|
// canHaveChildren: true,
|
|
2901
2924
|
};
|
|
2902
|
-
function
|
|
2925
|
+
function Sn(e) {
|
|
2903
2926
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2904
2927
|
}
|
|
2905
|
-
const
|
|
2928
|
+
const kn = {
|
|
2906
2929
|
name: "Form:TextArea",
|
|
2907
2930
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2908
2931
|
inputs: [{
|
|
@@ -2939,7 +2962,7 @@ const vn = {
|
|
|
2939
2962
|
static: !0,
|
|
2940
2963
|
noWrap: !0
|
|
2941
2964
|
};
|
|
2942
|
-
function
|
|
2965
|
+
function Cn(e) {
|
|
2943
2966
|
return /* @__PURE__ */ l(
|
|
2944
2967
|
"textarea",
|
|
2945
2968
|
{
|
|
@@ -2952,7 +2975,7 @@ function Sn(e) {
|
|
|
2952
2975
|
}
|
|
2953
2976
|
);
|
|
2954
2977
|
}
|
|
2955
|
-
const
|
|
2978
|
+
const Tn = {
|
|
2956
2979
|
// friendlyName?
|
|
2957
2980
|
name: "Raw:Img",
|
|
2958
2981
|
hideFromInsertMenu: !0,
|
|
@@ -2967,7 +2990,7 @@ const kn = {
|
|
|
2967
2990
|
noWrap: !0,
|
|
2968
2991
|
static: !0
|
|
2969
2992
|
};
|
|
2970
|
-
function
|
|
2993
|
+
function wn(e) {
|
|
2971
2994
|
return /* @__PURE__ */ l(
|
|
2972
2995
|
"img",
|
|
2973
2996
|
{
|
|
@@ -2982,7 +3005,7 @@ function Cn(e) {
|
|
|
2982
3005
|
$() && e.imgSrc || "default-key"
|
|
2983
3006
|
);
|
|
2984
3007
|
}
|
|
2985
|
-
const
|
|
3008
|
+
const In = {
|
|
2986
3009
|
name: "Video",
|
|
2987
3010
|
canHaveChildren: !0,
|
|
2988
3011
|
defaultStyles: {
|
|
@@ -3067,7 +3090,7 @@ const Tn = {
|
|
|
3067
3090
|
builderBlock: !0
|
|
3068
3091
|
}
|
|
3069
3092
|
};
|
|
3070
|
-
function
|
|
3093
|
+
function Rn(e) {
|
|
3071
3094
|
var i, o, a, r, s, d, c;
|
|
3072
3095
|
function t() {
|
|
3073
3096
|
return {
|
|
@@ -3168,64 +3191,64 @@ function In(e) {
|
|
|
3168
3191
|
}
|
|
3169
3192
|
);
|
|
3170
3193
|
}
|
|
3171
|
-
const
|
|
3172
|
-
component:
|
|
3173
|
-
...nn
|
|
3174
|
-
}, {
|
|
3175
|
-
component: sn,
|
|
3194
|
+
const En = () => [{
|
|
3195
|
+
component: rn,
|
|
3176
3196
|
...an
|
|
3177
3197
|
}, {
|
|
3178
|
-
component:
|
|
3179
|
-
...
|
|
3198
|
+
component: dn,
|
|
3199
|
+
...ln
|
|
3180
3200
|
}, {
|
|
3181
3201
|
component: gn,
|
|
3182
|
-
...
|
|
3183
|
-
}, {
|
|
3184
|
-
component: xn,
|
|
3185
|
-
...yn
|
|
3202
|
+
...un
|
|
3186
3203
|
}, {
|
|
3187
3204
|
component: pn,
|
|
3188
3205
|
...bn
|
|
3189
3206
|
}, {
|
|
3190
3207
|
component: Sn,
|
|
3191
3208
|
...vn
|
|
3209
|
+
}, {
|
|
3210
|
+
component: xn,
|
|
3211
|
+
...yn
|
|
3192
3212
|
}, {
|
|
3193
3213
|
component: Cn,
|
|
3194
3214
|
...kn
|
|
3195
3215
|
}, {
|
|
3196
|
-
component:
|
|
3216
|
+
component: wn,
|
|
3197
3217
|
...Tn
|
|
3198
|
-
}], Se = () => [{
|
|
3199
|
-
component: tt,
|
|
3200
|
-
...qt
|
|
3201
|
-
}, {
|
|
3202
|
-
component: $t,
|
|
3203
|
-
...Kt
|
|
3204
3218
|
}, {
|
|
3205
|
-
component:
|
|
3219
|
+
component: Rn,
|
|
3220
|
+
...In
|
|
3221
|
+
}], Se = () => [{
|
|
3222
|
+
component: nt,
|
|
3206
3223
|
...zt
|
|
3207
3224
|
}, {
|
|
3208
|
-
component:
|
|
3225
|
+
component: Lt,
|
|
3209
3226
|
..._t
|
|
3210
3227
|
}, {
|
|
3211
|
-
component:
|
|
3228
|
+
component: Ot,
|
|
3212
3229
|
...Jt
|
|
3213
3230
|
}, {
|
|
3214
|
-
component:
|
|
3231
|
+
component: jt,
|
|
3215
3232
|
...Yt
|
|
3216
3233
|
}, {
|
|
3217
|
-
component:
|
|
3234
|
+
component: Ht,
|
|
3235
|
+
...Gt
|
|
3236
|
+
}, {
|
|
3237
|
+
component: Xt,
|
|
3218
3238
|
...Qt
|
|
3239
|
+
}, {
|
|
3240
|
+
component: Qn,
|
|
3241
|
+
...Zt
|
|
3242
|
+
}, {
|
|
3243
|
+
component: on,
|
|
3244
|
+
...nn
|
|
3219
3245
|
}, {
|
|
3220
3246
|
component: tn,
|
|
3221
3247
|
...en
|
|
3222
3248
|
}, {
|
|
3223
|
-
component:
|
|
3224
|
-
...
|
|
3225
|
-
}, {
|
|
3226
|
-
component: Ht,
|
|
3227
|
-
...Mt
|
|
3228
|
-
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3249
|
+
component: Kt,
|
|
3250
|
+
...qt
|
|
3251
|
+
}, ...En()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3229
3252
|
function getAndSetVariantId() {
|
|
3230
3253
|
function setCookie(name, value, days) {
|
|
3231
3254
|
let expires = '';
|
|
@@ -3281,7 +3304,7 @@ const wn = () => [{
|
|
|
3281
3304
|
}).join('');
|
|
3282
3305
|
styleEl.innerHTML = newStyleStr;
|
|
3283
3306
|
}
|
|
3284
|
-
}`,
|
|
3307
|
+
}`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3285
3308
|
if (!navigator.cookieEnabled) {
|
|
3286
3309
|
return;
|
|
3287
3310
|
}
|
|
@@ -3315,26 +3338,26 @@ const wn = () => [{
|
|
|
3315
3338
|
thisScriptEl?.remove();
|
|
3316
3339
|
}
|
|
3317
3340
|
return;
|
|
3318
|
-
}`,
|
|
3341
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3319
3342
|
...t,
|
|
3320
3343
|
testVariationId: t.id,
|
|
3321
3344
|
id: e == null ? void 0 : e.id
|
|
3322
|
-
})),
|
|
3345
|
+
})), Vn = ({
|
|
3323
3346
|
canTrack: e,
|
|
3324
3347
|
content: t
|
|
3325
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
3326
|
-
window.${
|
|
3327
|
-
window.${
|
|
3328
|
-
`,
|
|
3329
|
-
window.${
|
|
3330
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3331
|
-
)`,
|
|
3348
|
+
}) => !(!(Y(t).length > 0) || !e || j()), An = (e) => e === "react" || e === "reactNative", He = An(z), Nn = () => `
|
|
3349
|
+
window.${Me} = ${Bn}
|
|
3350
|
+
window.${je} = ${Pn}
|
|
3351
|
+
`, Wn = (e, t) => `
|
|
3352
|
+
window.${Me}(
|
|
3353
|
+
"${t}",${JSON.stringify(e)}, ${He}
|
|
3354
|
+
)`, Fn = ({
|
|
3332
3355
|
contentId: e,
|
|
3333
3356
|
variationId: t
|
|
3334
|
-
}) => `window.${
|
|
3335
|
-
"${t}", "${e}", ${
|
|
3357
|
+
}) => `window.${je}(
|
|
3358
|
+
"${t}", "${e}", ${He}
|
|
3336
3359
|
)`;
|
|
3337
|
-
function
|
|
3360
|
+
function ce(e) {
|
|
3338
3361
|
return /* @__PURE__ */ l(
|
|
3339
3362
|
"script",
|
|
3340
3363
|
{
|
|
@@ -3347,7 +3370,7 @@ function se(e) {
|
|
|
3347
3370
|
function ke(e) {
|
|
3348
3371
|
return Math.round(e * 1e3) / 1e3;
|
|
3349
3372
|
}
|
|
3350
|
-
const
|
|
3373
|
+
const $n = (e, t, n = !0) => {
|
|
3351
3374
|
if (!(e instanceof HTMLElement))
|
|
3352
3375
|
return null;
|
|
3353
3376
|
let i = n ? e : e.parentElement;
|
|
@@ -3358,7 +3381,7 @@ const Wn = (e, t, n = !0) => {
|
|
|
3358
3381
|
return i;
|
|
3359
3382
|
} while (i = i.parentElement);
|
|
3360
3383
|
return null;
|
|
3361
|
-
},
|
|
3384
|
+
}, Dn = (e) => $n(e, (t) => {
|
|
3362
3385
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3363
3386
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3364
3387
|
}), Ce = ({
|
|
@@ -3370,8 +3393,8 @@ const Wn = (e, t, n = !0) => {
|
|
|
3370
3393
|
x: a,
|
|
3371
3394
|
y: r
|
|
3372
3395
|
};
|
|
3373
|
-
},
|
|
3374
|
-
const t = e.target, n = t &&
|
|
3396
|
+
}, Ln = (e) => {
|
|
3397
|
+
const t = e.target, n = t && Dn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3375
3398
|
return {
|
|
3376
3399
|
targetBuilderElement: i || void 0,
|
|
3377
3400
|
metadata: {
|
|
@@ -3386,7 +3409,7 @@ const Wn = (e, t, n = !0) => {
|
|
|
3386
3409
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3387
3410
|
}
|
|
3388
3411
|
};
|
|
3389
|
-
},
|
|
3412
|
+
}, On = (e) => {
|
|
3390
3413
|
var a, r;
|
|
3391
3414
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3392
3415
|
let o = "";
|
|
@@ -3412,12 +3435,12 @@ font-weight: ${s};
|
|
|
3412
3435
|
`.trim());
|
|
3413
3436
|
}
|
|
3414
3437
|
return o;
|
|
3415
|
-
},
|
|
3438
|
+
}, Un = ({
|
|
3416
3439
|
customFonts: e
|
|
3417
3440
|
}) => {
|
|
3418
3441
|
var t;
|
|
3419
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3420
|
-
},
|
|
3442
|
+
return ((t = e == null ? void 0 : e.map((n) => On(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3443
|
+
}, Mn = ({
|
|
3421
3444
|
cssCode: e,
|
|
3422
3445
|
contentId: t
|
|
3423
3446
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
|
|
@@ -3437,9 +3460,9 @@ font-weight: ${s};
|
|
|
3437
3460
|
text-align: inherit;
|
|
3438
3461
|
font-family: inherit;
|
|
3439
3462
|
}
|
|
3440
|
-
`,
|
|
3441
|
-
function
|
|
3442
|
-
var V, A, O, k,
|
|
3463
|
+
`, Hn = (e) => e ? "" : jn, qn = (e) => `variant-${e}`;
|
|
3464
|
+
function Kn(e) {
|
|
3465
|
+
var V, A, O, k, I, N, p;
|
|
3443
3466
|
const t = Z(null);
|
|
3444
3467
|
function n(b) {
|
|
3445
3468
|
var S, C;
|
|
@@ -3447,13 +3470,13 @@ function Hn(e) {
|
|
|
3447
3470
|
...e.builderContextSignal.rootState,
|
|
3448
3471
|
...b
|
|
3449
3472
|
};
|
|
3450
|
-
e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((
|
|
3451
|
-
...
|
|
3473
|
+
e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((w) => ({
|
|
3474
|
+
...w,
|
|
3452
3475
|
rootState: v
|
|
3453
3476
|
}));
|
|
3454
3477
|
}
|
|
3455
3478
|
function i(b) {
|
|
3456
|
-
var S, C,
|
|
3479
|
+
var S, C, w, W, U;
|
|
3457
3480
|
const v = {
|
|
3458
3481
|
...e.builderContextSignal.content,
|
|
3459
3482
|
...b,
|
|
@@ -3464,7 +3487,7 @@ function Hn(e) {
|
|
|
3464
3487
|
meta: {
|
|
3465
3488
|
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3466
3489
|
...b == null ? void 0 : b.meta,
|
|
3467
|
-
breakpoints: ((
|
|
3490
|
+
breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((U = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : U.breakpoints)
|
|
3468
3491
|
}
|
|
3469
3492
|
};
|
|
3470
3493
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3482,21 +3505,21 @@ function Hn(e) {
|
|
|
3482
3505
|
() => e.contentWrapper || "div"
|
|
3483
3506
|
);
|
|
3484
3507
|
function s(b) {
|
|
3485
|
-
return
|
|
3508
|
+
return Qe({
|
|
3486
3509
|
model: e.model,
|
|
3487
3510
|
trustedHosts: e.trustedHosts,
|
|
3488
3511
|
callbacks: {
|
|
3489
3512
|
configureSdk: (v) => {
|
|
3490
|
-
var
|
|
3513
|
+
var w;
|
|
3491
3514
|
const { breakpoints: S, contentId: C } = v;
|
|
3492
|
-
!C || C !== ((
|
|
3515
|
+
!C || C !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || S && i({
|
|
3493
3516
|
meta: {
|
|
3494
3517
|
breakpoints: S
|
|
3495
3518
|
}
|
|
3496
3519
|
});
|
|
3497
3520
|
},
|
|
3498
3521
|
animation: (v) => {
|
|
3499
|
-
|
|
3522
|
+
Fe(v);
|
|
3500
3523
|
},
|
|
3501
3524
|
contentUpdate: (v) => {
|
|
3502
3525
|
i(v);
|
|
@@ -3523,14 +3546,14 @@ function Hn(e) {
|
|
|
3523
3546
|
function x(b) {
|
|
3524
3547
|
var v, S;
|
|
3525
3548
|
if (e.builderContextSignal.content) {
|
|
3526
|
-
const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId,
|
|
3549
|
+
const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3527
3550
|
fe({
|
|
3528
3551
|
type: "click",
|
|
3529
3552
|
canTrack: Q(e.canTrack),
|
|
3530
|
-
contentId:
|
|
3553
|
+
contentId: w,
|
|
3531
3554
|
apiKey: e.apiKey,
|
|
3532
|
-
variationId: C !==
|
|
3533
|
-
|
|
3555
|
+
variationId: C !== w ? C : void 0,
|
|
3556
|
+
...Ln(b),
|
|
3534
3557
|
unique: !u
|
|
3535
3558
|
});
|
|
3536
3559
|
}
|
|
@@ -3539,15 +3562,15 @@ function Hn(e) {
|
|
|
3539
3562
|
function y() {
|
|
3540
3563
|
var v, S, C;
|
|
3541
3564
|
const b = (C = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? C : {};
|
|
3542
|
-
Object.entries(b).forEach(([
|
|
3543
|
-
if (!W || h[
|
|
3565
|
+
Object.entries(b).forEach(([w, W]) => {
|
|
3566
|
+
if (!W || h[w] || c[w] && !$())
|
|
3544
3567
|
return;
|
|
3545
|
-
h[
|
|
3546
|
-
const
|
|
3568
|
+
h[w] = !0;
|
|
3569
|
+
const U = W.replace(
|
|
3547
3570
|
/{{([^}]+)}}/g,
|
|
3548
|
-
(F,
|
|
3571
|
+
(F, qe) => String(
|
|
3549
3572
|
K({
|
|
3550
|
-
code:
|
|
3573
|
+
code: qe,
|
|
3551
3574
|
context: e.context || {},
|
|
3552
3575
|
localState: void 0,
|
|
3553
3576
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3556,14 +3579,14 @@ function Hn(e) {
|
|
|
3556
3579
|
})
|
|
3557
3580
|
)
|
|
3558
3581
|
);
|
|
3559
|
-
|
|
3582
|
+
Xe(U).then((F) => F.json()).then((F) => {
|
|
3560
3583
|
n({
|
|
3561
|
-
[
|
|
3562
|
-
}), c[
|
|
3584
|
+
[w]: F
|
|
3585
|
+
}), c[w] = !0;
|
|
3563
3586
|
}).catch((F) => {
|
|
3564
3587
|
console.error("error fetching dynamic data", W, F);
|
|
3565
3588
|
}).finally(() => {
|
|
3566
|
-
h[
|
|
3589
|
+
h[w] = !1;
|
|
3567
3590
|
});
|
|
3568
3591
|
});
|
|
3569
3592
|
}
|
|
@@ -3573,7 +3596,7 @@ function Hn(e) {
|
|
|
3573
3596
|
"builder:component:stateChange",
|
|
3574
3597
|
{
|
|
3575
3598
|
detail: {
|
|
3576
|
-
state:
|
|
3599
|
+
state: we(e.builderContextSignal.rootState),
|
|
3577
3600
|
ref: {
|
|
3578
3601
|
name: e.model
|
|
3579
3602
|
}
|
|
@@ -3584,8 +3607,8 @@ function Hn(e) {
|
|
|
3584
3607
|
}
|
|
3585
3608
|
return B(() => {
|
|
3586
3609
|
var b, v;
|
|
3587
|
-
if (
|
|
3588
|
-
if ($() && (window.addEventListener("message", s),
|
|
3610
|
+
if (j()) {
|
|
3611
|
+
if ($() && (window.addEventListener("message", s), Je(), Ye({
|
|
3589
3612
|
...e.locale ? {
|
|
3590
3613
|
locale: e.locale
|
|
3591
3614
|
} : {},
|
|
@@ -3599,26 +3622,26 @@ function Hn(e) {
|
|
|
3599
3622
|
e.builderContextSignal.componentInfos
|
|
3600
3623
|
).forEach((C) => {
|
|
3601
3624
|
var W;
|
|
3602
|
-
const
|
|
3603
|
-
(W = window.parent) == null || W.postMessage(
|
|
3625
|
+
const w = Ge(C);
|
|
3626
|
+
(W = window.parent) == null || W.postMessage(w, "*");
|
|
3604
3627
|
}), window.addEventListener(
|
|
3605
3628
|
"builder:component:stateChangeListenerActivated",
|
|
3606
3629
|
E
|
|
3607
3630
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3608
|
-
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId,
|
|
3631
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
|
|
3609
3632
|
fe({
|
|
3610
3633
|
type: "impression",
|
|
3611
3634
|
canTrack: !0,
|
|
3612
|
-
contentId:
|
|
3635
|
+
contentId: w,
|
|
3613
3636
|
apiKey: W,
|
|
3614
|
-
variationId: C !==
|
|
3637
|
+
variationId: C !== w ? C : void 0
|
|
3615
3638
|
});
|
|
3616
3639
|
}
|
|
3617
3640
|
if (Ie() && !$()) {
|
|
3618
|
-
const C = new URL(location.href).searchParams,
|
|
3619
|
-
`builder.overrides.${
|
|
3620
|
-
),
|
|
3621
|
-
|
|
3641
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), W = C.get(
|
|
3642
|
+
`builder.overrides.${w}`
|
|
3643
|
+
), U = C.get("apiKey") || C.get("builder.space");
|
|
3644
|
+
w === e.model && U === e.apiKey && (!e.content || W === e.content.id) && Re({
|
|
3622
3645
|
model: e.model,
|
|
3623
3646
|
apiKey: e.apiKey,
|
|
3624
3647
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3646,7 +3669,7 @@ function Hn(e) {
|
|
|
3646
3669
|
locale: e.locale
|
|
3647
3670
|
});
|
|
3648
3671
|
}, [e.locale]), B(() => () => {
|
|
3649
|
-
|
|
3672
|
+
j() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3650
3673
|
"builder:component:stateChangeListenerActivated",
|
|
3651
3674
|
E
|
|
3652
3675
|
));
|
|
@@ -3655,28 +3678,28 @@ function Hn(e) {
|
|
|
3655
3678
|
{
|
|
3656
3679
|
ref: t,
|
|
3657
3680
|
onClick: (b) => x(b),
|
|
3658
|
-
"builder-content-id": (
|
|
3681
|
+
"builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
|
|
3659
3682
|
"builder-model": e.model,
|
|
3660
3683
|
...o(),
|
|
3661
3684
|
...e.contentWrapperProps,
|
|
3662
|
-
className:
|
|
3685
|
+
className: qn(
|
|
3663
3686
|
((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
3664
3687
|
),
|
|
3665
3688
|
children: e.children
|
|
3666
3689
|
}
|
|
3667
3690
|
) : null });
|
|
3668
3691
|
}
|
|
3669
|
-
function
|
|
3692
|
+
function zn(e) {
|
|
3670
3693
|
const [t, n] = T(
|
|
3671
3694
|
() => `
|
|
3672
|
-
${
|
|
3695
|
+
${Mn({
|
|
3673
3696
|
cssCode: e.cssCode,
|
|
3674
3697
|
contentId: e.contentId
|
|
3675
3698
|
})}
|
|
3676
|
-
${
|
|
3699
|
+
${Un({
|
|
3677
3700
|
customFonts: e.customFonts
|
|
3678
3701
|
})}
|
|
3679
|
-
${
|
|
3702
|
+
${Hn(e.isNestedRender)}
|
|
3680
3703
|
`.trim()
|
|
3681
3704
|
);
|
|
3682
3705
|
return /* @__PURE__ */ l(
|
|
@@ -3688,7 +3711,7 @@ ${Un(e.isNestedRender)}
|
|
|
3688
3711
|
}
|
|
3689
3712
|
);
|
|
3690
3713
|
}
|
|
3691
|
-
const
|
|
3714
|
+
const _n = ({
|
|
3692
3715
|
content: e,
|
|
3693
3716
|
data: t,
|
|
3694
3717
|
locale: n
|
|
@@ -3705,7 +3728,7 @@ const Kn = ({
|
|
|
3705
3728
|
locale: n
|
|
3706
3729
|
} : {}
|
|
3707
3730
|
};
|
|
3708
|
-
},
|
|
3731
|
+
}, Jn = ({
|
|
3709
3732
|
content: e,
|
|
3710
3733
|
data: t
|
|
3711
3734
|
}) => e ? {
|
|
@@ -3721,7 +3744,7 @@ function Te(e) {
|
|
|
3721
3744
|
const [t, n] = T(
|
|
3722
3745
|
() => {
|
|
3723
3746
|
var x, y;
|
|
3724
|
-
return
|
|
3747
|
+
return Fn({
|
|
3725
3748
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3726
3749
|
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3727
3750
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3750,12 +3773,12 @@ function Te(e) {
|
|
|
3750
3773
|
{}
|
|
3751
3774
|
)
|
|
3752
3775
|
), [r, s] = T(() => ({
|
|
3753
|
-
content:
|
|
3776
|
+
content: Jn({
|
|
3754
3777
|
content: e.content,
|
|
3755
3778
|
data: e.data
|
|
3756
3779
|
}),
|
|
3757
3780
|
localState: void 0,
|
|
3758
|
-
rootState:
|
|
3781
|
+
rootState: _n({
|
|
3759
3782
|
content: e.content,
|
|
3760
3783
|
data: e.data,
|
|
3761
3784
|
locale: e.locale
|
|
@@ -3781,13 +3804,13 @@ function Te(e) {
|
|
|
3781
3804
|
nonce: e.nonce || ""
|
|
3782
3805
|
}));
|
|
3783
3806
|
return /* @__PURE__ */ l(
|
|
3784
|
-
|
|
3807
|
+
Pe.Provider,
|
|
3785
3808
|
{
|
|
3786
3809
|
value: {
|
|
3787
3810
|
registeredComponents: o
|
|
3788
3811
|
},
|
|
3789
3812
|
children: /* @__PURE__ */ P(
|
|
3790
|
-
|
|
3813
|
+
Kn,
|
|
3791
3814
|
{
|
|
3792
3815
|
nonce: e.nonce,
|
|
3793
3816
|
content: e.content,
|
|
@@ -3806,7 +3829,7 @@ function Te(e) {
|
|
|
3806
3829
|
setBuilderContextSignal: s,
|
|
3807
3830
|
children: [
|
|
3808
3831
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3809
|
-
|
|
3832
|
+
ce,
|
|
3810
3833
|
{
|
|
3811
3834
|
id: "builderio-variant-visibility",
|
|
3812
3835
|
scriptStr: t,
|
|
@@ -3814,7 +3837,7 @@ function Te(e) {
|
|
|
3814
3837
|
}
|
|
3815
3838
|
) : null,
|
|
3816
3839
|
/* @__PURE__ */ l(
|
|
3817
|
-
|
|
3840
|
+
zn,
|
|
3818
3841
|
{
|
|
3819
3842
|
nonce: e.nonce || "",
|
|
3820
3843
|
isNestedRender: e.isNestedRender,
|
|
@@ -3838,17 +3861,17 @@ function Te(e) {
|
|
|
3838
3861
|
}
|
|
3839
3862
|
);
|
|
3840
3863
|
}
|
|
3841
|
-
function
|
|
3864
|
+
function Yn(e) {
|
|
3842
3865
|
var r;
|
|
3843
3866
|
const [t, n] = T(
|
|
3844
|
-
() =>
|
|
3867
|
+
() => Vn({
|
|
3845
3868
|
canTrack: Q(e.canTrack),
|
|
3846
3869
|
content: e.content
|
|
3847
3870
|
})
|
|
3848
3871
|
);
|
|
3849
3872
|
function i() {
|
|
3850
3873
|
var s;
|
|
3851
|
-
return
|
|
3874
|
+
return Wn(
|
|
3852
3875
|
Y(e.content).map((d) => ({
|
|
3853
3876
|
id: d.testVariationId,
|
|
3854
3877
|
testRatio: d.testRatio
|
|
@@ -3864,7 +3887,7 @@ function _n(e) {
|
|
|
3864
3887
|
return t ? {
|
|
3865
3888
|
...e.content,
|
|
3866
3889
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3867
|
-
} :
|
|
3890
|
+
} : Ze({
|
|
3868
3891
|
item: e.content,
|
|
3869
3892
|
canTrack: Q(e.canTrack)
|
|
3870
3893
|
});
|
|
@@ -3873,10 +3896,10 @@ function _n(e) {
|
|
|
3873
3896
|
}, []), B(() => {
|
|
3874
3897
|
}), /* @__PURE__ */ P(R, { children: [
|
|
3875
3898
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(
|
|
3876
|
-
|
|
3899
|
+
ce,
|
|
3877
3900
|
{
|
|
3878
3901
|
id: "builderio-init-variants-fns",
|
|
3879
|
-
scriptStr:
|
|
3902
|
+
scriptStr: Nn(),
|
|
3880
3903
|
nonce: e.nonce || ""
|
|
3881
3904
|
}
|
|
3882
3905
|
) : null,
|
|
@@ -3890,7 +3913,7 @@ function _n(e) {
|
|
|
3890
3913
|
}
|
|
3891
3914
|
),
|
|
3892
3915
|
/* @__PURE__ */ l(
|
|
3893
|
-
|
|
3916
|
+
ce,
|
|
3894
3917
|
{
|
|
3895
3918
|
id: "builderio-variants-visibility",
|
|
3896
3919
|
scriptStr: i(),
|
|
@@ -3951,13 +3974,13 @@ function _n(e) {
|
|
|
3951
3974
|
)
|
|
3952
3975
|
] });
|
|
3953
3976
|
}
|
|
3954
|
-
const
|
|
3977
|
+
const Gn = async ({
|
|
3955
3978
|
builderContextValue: e,
|
|
3956
3979
|
symbol: t
|
|
3957
3980
|
}) => {
|
|
3958
3981
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3959
3982
|
(e != null && e.apiKey))
|
|
3960
|
-
return
|
|
3983
|
+
return Re({
|
|
3961
3984
|
model: t.model,
|
|
3962
3985
|
apiKey: e.apiKey,
|
|
3963
3986
|
apiVersion: e.apiVersion,
|
|
@@ -3970,7 +3993,7 @@ const Jn = async ({
|
|
|
3970
3993
|
X.error("Could not fetch symbol content: ", n);
|
|
3971
3994
|
});
|
|
3972
3995
|
};
|
|
3973
|
-
function
|
|
3996
|
+
function Qn(e) {
|
|
3974
3997
|
var s, d, c, m;
|
|
3975
3998
|
function t() {
|
|
3976
3999
|
return "div";
|
|
@@ -3992,7 +4015,7 @@ function Yn(e) {
|
|
|
3992
4015
|
return (h = e.symbol) == null ? void 0 : h.content;
|
|
3993
4016
|
});
|
|
3994
4017
|
function r() {
|
|
3995
|
-
o ||
|
|
4018
|
+
o || Gn({
|
|
3996
4019
|
symbol: e.symbol,
|
|
3997
4020
|
builderContextValue: e.builderContext
|
|
3998
4021
|
}).then((h) => {
|
|
@@ -4003,7 +4026,7 @@ function Yn(e) {
|
|
|
4003
4026
|
}, []), B(() => {
|
|
4004
4027
|
r();
|
|
4005
4028
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4006
|
-
|
|
4029
|
+
Yn,
|
|
4007
4030
|
{
|
|
4008
4031
|
nonce: e.builderContext.nonce,
|
|
4009
4032
|
isNestedRender: !0,
|
|
@@ -4031,13 +4054,13 @@ function Yn(e) {
|
|
|
4031
4054
|
export {
|
|
4032
4055
|
D as Blocks,
|
|
4033
4056
|
ue as BuilderContext,
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4057
|
+
nt as Button,
|
|
4058
|
+
Lt as Columns,
|
|
4059
|
+
Yn as Content,
|
|
4060
|
+
Ot as Fragment,
|
|
4038
4061
|
jt as Image,
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4062
|
+
Ht as Section,
|
|
4063
|
+
Qn as Symbol,
|
|
4064
|
+
on as Text,
|
|
4065
|
+
Rn as Video
|
|
4043
4066
|
};
|