@builder.io/sdk-react 1.0.31 → 1.0.33
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 +25 -25
- package/lib/browser/blocks-exports.mjs +253 -245
- 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-26776eea.js → server-entry-08c4885b.js} +3 -1
- package/lib/browser/{server-entry-93dd2fe7.cjs → server-entry-4f020128.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-61d8c841.cjs → accordion-117938d4.cjs} +1 -1
- package/lib/edge/{accordion-8600e362.js → accordion-e8a4e00c.js} +1 -1
- package/lib/edge/blocks-70c83f76.cjs +32 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-bf8d4f42.js → blocks-f8c6cd3a.js} +765 -770
- package/lib/edge/{button-a1ecbbb4.js → button-9224e694.js} +2 -2
- package/lib/edge/{button-3aead671.cjs → button-b84a0300.cjs} +1 -1
- package/lib/edge/{columns-f8252cd4.js → columns-05800a70.js} +3 -3
- package/lib/edge/{columns-6f0bea35.cjs → columns-bf1789b2.cjs} +1 -1
- package/lib/edge/{content-variants-a7515e25.js → content-variants-1af57e7c.js} +23 -19
- package/lib/edge/{content-variants-d536d382.cjs → content-variants-33e7bcbf.cjs} +3 -3
- package/lib/edge/{form-aa86b853.cjs → form-4248a74f.cjs} +1 -1
- package/lib/edge/{form-4c514836.js → form-ba414b86.js} +3 -3
- package/lib/edge/{get-class-prop-name-d6e10697.cjs → get-class-prop-name-99284ed1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7245a80c.js → get-class-prop-name-f1303c26.js} +1 -1
- package/lib/edge/{image-9d24a962.js → image-68451fc8.js} +23 -22
- package/lib/edge/image-ea37781b.cjs +17 -0
- package/lib/edge/{img-916857d0.js → img-3b5f766a.js} +1 -1
- package/lib/edge/{img-266babf5.cjs → img-f51fc48b.cjs} +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-1c89bf19.cjs → input-9d5bca5c.cjs} +1 -1
- package/lib/edge/{input-ecbd900c.js → input-f86d1318.js} +1 -1
- package/lib/edge/{select-31017554.cjs → select-02b2c006.cjs} +1 -1
- package/lib/edge/{select-679760ee.js → select-a97e4cbf.js} +1 -1
- package/lib/edge/{server-entry-c373353a.cjs → server-entry-13d68dab.cjs} +1 -1
- package/lib/edge/{server-entry-438d03b9.js → server-entry-62d41eae.js} +3 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-70d56fb7.cjs → slot-d4ca9e65.cjs} +1 -1
- package/lib/edge/{slot-a7c301c7.js → slot-fdb4dd68.js} +3 -3
- package/lib/edge/{symbol-e2b27478.cjs → symbol-b620691d.cjs} +1 -1
- package/lib/edge/{symbol-c1b26e8b.js → symbol-c31603d4.js} +2 -2
- package/lib/edge/{tabs-d69a6adc.cjs → tabs-b442e021.cjs} +1 -1
- package/lib/edge/{tabs-91468f03.js → tabs-c5bedc43.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +289 -281
- 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-3bebd191.cjs → node-runtime-1f5f0f86.cjs} +1 -1
- package/lib/node/{node-runtime-218b3a7e.js → node-runtime-51136426.js} +1 -1
- package/lib/node/{server-entry-9ab92db7.js → server-entry-0b4ba9e5.js} +3 -1
- package/lib/node/{server-entry-75bba771.cjs → server-entry-84150423.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/image/image.types.d.ts +1 -0
- package/types/components/block/block.helpers.d.ts +20 -2
- package/types/components/block/components/block-wrapper.d.ts +0 -1
- package/types/components/content/components/enable-editor.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/blocks-c0ecd775.cjs +0 -32
- package/lib/edge/image-764070f8.cjs +0 -17
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
var He = Object.defineProperty;
|
|
3
3
|
var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
4
|
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
-
import { jsx as s, Fragment as E, jsxs as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as we, useState as C, useEffect as
|
|
8
|
-
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-
|
|
5
|
+
import { jsx as s, Fragment as E, jsxs as B } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as L, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-0b4ba9e5.js";
|
|
7
|
+
import { createContext as we, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-51136426.js";
|
|
9
9
|
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
10
|
function ue(e) {
|
|
11
11
|
return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
13
|
+
const K = () => {
|
|
14
|
+
switch (L) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -28,7 +28,7 @@ function ot(e) {
|
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -61,16 +61,12 @@ const me = we({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
64
|
+
}), Be = we({ registeredComponents: {} });
|
|
65
65
|
function at(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
|
-
...e.options
|
|
70
|
-
/**
|
|
71
|
-
* Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
|
|
72
|
-
*/
|
|
73
|
-
builderBlock: e
|
|
69
|
+
...e.options
|
|
74
70
|
};
|
|
75
71
|
}
|
|
76
72
|
const rt = ({
|
|
@@ -86,7 +82,7 @@ const rt = ({
|
|
|
86
82
|
builder: t,
|
|
87
83
|
context: n,
|
|
88
84
|
event: i,
|
|
89
|
-
state:
|
|
85
|
+
state: Ve({
|
|
90
86
|
rootState: a,
|
|
91
87
|
localState: o,
|
|
92
88
|
rootSetState: l
|
|
@@ -94,7 +90,7 @@ const rt = ({
|
|
|
94
90
|
});
|
|
95
91
|
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
96
92
|
};
|
|
97
|
-
function
|
|
93
|
+
function Ve({
|
|
98
94
|
rootState: e,
|
|
99
95
|
localState: t,
|
|
100
96
|
rootSetState: n
|
|
@@ -104,7 +100,7 @@ function Pe({
|
|
|
104
100
|
if (t && o in t)
|
|
105
101
|
return t[o];
|
|
106
102
|
const l = i[o];
|
|
107
|
-
return typeof l == "object" && l !== null ?
|
|
103
|
+
return typeof l == "object" && l !== null ? Ve({
|
|
108
104
|
rootState: l,
|
|
109
105
|
localState: void 0,
|
|
110
106
|
rootSetState: n ? (a) => {
|
|
@@ -129,7 +125,7 @@ const st = () => {
|
|
|
129
125
|
return !1;
|
|
130
126
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
131
127
|
return e && t && !n ? (Z.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;
|
|
132
|
-
}, ct = (e) => G() || st() ? rt(e) : Ze(e),
|
|
128
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), O = class O {
|
|
133
129
|
static getCacheKey(t) {
|
|
134
130
|
return JSON.stringify({
|
|
135
131
|
...t,
|
|
@@ -139,17 +135,17 @@ const st = () => {
|
|
|
139
135
|
});
|
|
140
136
|
}
|
|
141
137
|
static getCachedValue(t) {
|
|
142
|
-
return
|
|
138
|
+
return O.cache.get(t);
|
|
143
139
|
}
|
|
144
140
|
static setCachedValue(t, n) {
|
|
145
|
-
|
|
141
|
+
O.cache.size > 20 && O.cache.delete(O.cache.keys().next().value), O.cache.set(t, {
|
|
146
142
|
value: n
|
|
147
143
|
});
|
|
148
144
|
}
|
|
149
145
|
};
|
|
150
|
-
ie(
|
|
151
|
-
let
|
|
152
|
-
function
|
|
146
|
+
ie(O, "cacheLimit", 20), ie(O, "cache", /* @__PURE__ */ new Map());
|
|
147
|
+
let M = O;
|
|
148
|
+
function q({
|
|
153
149
|
code: e,
|
|
154
150
|
context: t,
|
|
155
151
|
localState: n,
|
|
@@ -173,15 +169,15 @@ function K({
|
|
|
173
169
|
localState: n
|
|
174
170
|
};
|
|
175
171
|
if (r) {
|
|
176
|
-
const u =
|
|
172
|
+
const u = M.getCacheKey(c), f = M.getCachedValue(u);
|
|
177
173
|
if (f)
|
|
178
174
|
return f.value;
|
|
179
175
|
}
|
|
180
176
|
try {
|
|
181
177
|
const u = ct(c);
|
|
182
178
|
if (r) {
|
|
183
|
-
const f =
|
|
184
|
-
|
|
179
|
+
const f = M.getCacheKey(c);
|
|
180
|
+
M.setCachedValue(f, u);
|
|
185
181
|
}
|
|
186
182
|
return u;
|
|
187
183
|
} catch (u) {
|
|
@@ -210,7 +206,7 @@ const dt = ({
|
|
|
210
206
|
}
|
|
211
207
|
};
|
|
212
208
|
for (const r in e.bindings) {
|
|
213
|
-
const c = e.bindings[r], u =
|
|
209
|
+
const c = e.bindings[r], u = q({
|
|
214
210
|
code: c,
|
|
215
211
|
localState: n,
|
|
216
212
|
rootState: i,
|
|
@@ -252,7 +248,7 @@ function ut(e, t, n = {}) {
|
|
|
252
248
|
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
|
|
253
249
|
};
|
|
254
250
|
}
|
|
255
|
-
function
|
|
251
|
+
function H(e, ...t) {
|
|
256
252
|
const n = Object(e);
|
|
257
253
|
for (let i = 1; i < arguments.length; i++) {
|
|
258
254
|
const o = arguments[i];
|
|
@@ -273,7 +269,7 @@ function mt(e) {
|
|
|
273
269
|
break;
|
|
274
270
|
}
|
|
275
271
|
}
|
|
276
|
-
function
|
|
272
|
+
function Pe(e) {
|
|
277
273
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
278
274
|
}
|
|
279
275
|
function Ae(e, t) {
|
|
@@ -292,12 +288,12 @@ function ft(e) {
|
|
|
292
288
|
function Ne(e) {
|
|
293
289
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
294
290
|
if (!t.length) {
|
|
295
|
-
|
|
291
|
+
Pe(e.elementId || e.id || "");
|
|
296
292
|
return;
|
|
297
293
|
}
|
|
298
294
|
Array.from(t).forEach((n) => {
|
|
299
|
-
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
300
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
295
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
296
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
301
297
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
302
298
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
303
299
|
});
|
|
@@ -306,7 +302,7 @@ function Ne(e) {
|
|
|
306
302
|
function ht(e) {
|
|
307
303
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
308
304
|
if (!t.length) {
|
|
309
|
-
|
|
305
|
+
Pe(e.elementId || e.id || "");
|
|
310
306
|
return;
|
|
311
307
|
}
|
|
312
308
|
Array.from(t).forEach((n) => {
|
|
@@ -314,10 +310,10 @@ function ht(e) {
|
|
|
314
310
|
let i = !1, o = !1;
|
|
315
311
|
function l() {
|
|
316
312
|
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
317
|
-
|
|
313
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
318
314
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
319
315
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
320
|
-
})) : e.repeat && i && !o && !r(n) && (i = !1,
|
|
316
|
+
})) : e.repeat && i && !o && !r(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
321
317
|
}
|
|
322
318
|
const a = ut(l, 200, {
|
|
323
319
|
leading: !1
|
|
@@ -328,7 +324,7 @@ function ht(e) {
|
|
|
328
324
|
}
|
|
329
325
|
const c = e.steps[0].styles;
|
|
330
326
|
function u() {
|
|
331
|
-
|
|
327
|
+
H(n.style, c);
|
|
332
328
|
}
|
|
333
329
|
u(), setTimeout(() => {
|
|
334
330
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -338,10 +334,10 @@ function ht(e) {
|
|
|
338
334
|
}), l();
|
|
339
335
|
});
|
|
340
336
|
}
|
|
341
|
-
const
|
|
337
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
342
338
|
if (typeof i == "string")
|
|
343
339
|
return `${te(n)}: ${i};`;
|
|
344
|
-
}).filter(Y), gt = (e) =>
|
|
340
|
+
}).filter(Y), gt = (e) => Fe(e).join(`
|
|
345
341
|
`), z = ({
|
|
346
342
|
mediaQuery: e,
|
|
347
343
|
className: t,
|
|
@@ -362,18 +358,18 @@ function bt({
|
|
|
362
358
|
const pt = ({
|
|
363
359
|
block: e,
|
|
364
360
|
context: t
|
|
365
|
-
}) =>
|
|
361
|
+
}) => We(bt({
|
|
366
362
|
style: e.style || {},
|
|
367
363
|
context: t,
|
|
368
364
|
block: e
|
|
369
365
|
}));
|
|
370
|
-
function
|
|
371
|
-
switch (
|
|
366
|
+
function We(e) {
|
|
367
|
+
switch (L) {
|
|
372
368
|
case "svelte":
|
|
373
369
|
case "vue":
|
|
374
370
|
case "solid":
|
|
375
371
|
case "angular":
|
|
376
|
-
return
|
|
372
|
+
return Fe(e).join(" ");
|
|
377
373
|
case "qwik":
|
|
378
374
|
case "reactNative":
|
|
379
375
|
case "react":
|
|
@@ -413,7 +409,7 @@ const yt = ({
|
|
|
413
409
|
} = e;
|
|
414
410
|
if (!(n != null && n.collection))
|
|
415
411
|
return;
|
|
416
|
-
const o =
|
|
412
|
+
const o = q({
|
|
417
413
|
code: n.collection,
|
|
418
414
|
localState: t.localState,
|
|
419
415
|
rootState: t.rootState,
|
|
@@ -437,7 +433,15 @@ const yt = ({
|
|
|
437
433
|
},
|
|
438
434
|
block: i
|
|
439
435
|
}));
|
|
440
|
-
}, St = (e) => e && (e.isRSC
|
|
436
|
+
}, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
437
|
+
builderLinkComponent: t
|
|
438
|
+
} : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
|
|
439
|
+
builderComponents: t
|
|
440
|
+
} : {}, kt = (e, t) => e && (e.isRSC && L === "rsc" || L === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
|
|
441
|
+
builderBlock: t
|
|
442
|
+
} : {}, Ct = (e, t) => e && (e.isRSC && L === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
|
|
443
|
+
builderContext: t
|
|
444
|
+
} : {}, $e = {
|
|
441
445
|
small: {
|
|
442
446
|
min: 320,
|
|
443
447
|
default: 321,
|
|
@@ -489,7 +493,7 @@ function ne(e) {
|
|
|
489
493
|
}
|
|
490
494
|
);
|
|
491
495
|
}
|
|
492
|
-
function
|
|
496
|
+
function Tt(e) {
|
|
493
497
|
function t() {
|
|
494
498
|
const i = X({
|
|
495
499
|
block: e.block,
|
|
@@ -502,7 +506,7 @@ function kt(e) {
|
|
|
502
506
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
503
507
|
}
|
|
504
508
|
function n() {
|
|
505
|
-
var x, R,
|
|
509
|
+
var x, R, V;
|
|
506
510
|
const i = X({
|
|
507
511
|
block: e.block,
|
|
508
512
|
localState: e.context.localState,
|
|
@@ -535,7 +539,7 @@ function kt(e) {
|
|
|
535
539
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
536
540
|
let I = "";
|
|
537
541
|
if (p) {
|
|
538
|
-
const A = ((
|
|
542
|
+
const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
|
|
539
543
|
I = z({
|
|
540
544
|
className: `${f}:hover`,
|
|
541
545
|
styles: {
|
|
@@ -556,10 +560,10 @@ function kt(e) {
|
|
|
556
560
|
}
|
|
557
561
|
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
558
562
|
}
|
|
559
|
-
function
|
|
563
|
+
function It(e) {
|
|
560
564
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
561
565
|
}
|
|
562
|
-
const
|
|
566
|
+
const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => q({
|
|
563
567
|
code: e,
|
|
564
568
|
context: t.context,
|
|
565
569
|
localState: t.localState,
|
|
@@ -576,9 +580,9 @@ function Le(e) {
|
|
|
576
580
|
if (!n.hasOwnProperty(o))
|
|
577
581
|
continue;
|
|
578
582
|
const l = n[o];
|
|
579
|
-
let a =
|
|
583
|
+
let a = wt(o);
|
|
580
584
|
if (e.stripPrefix)
|
|
581
|
-
switch (
|
|
585
|
+
switch (L) {
|
|
582
586
|
case "vue":
|
|
583
587
|
a = a.replace("v-on:", "");
|
|
584
588
|
break;
|
|
@@ -586,16 +590,16 @@ function Le(e) {
|
|
|
586
590
|
a = a.replace("on:", "");
|
|
587
591
|
break;
|
|
588
592
|
}
|
|
589
|
-
t[a] =
|
|
593
|
+
t[a] = Et(l, e);
|
|
590
594
|
}
|
|
591
595
|
return t;
|
|
592
596
|
}
|
|
593
|
-
function
|
|
597
|
+
function Rt({
|
|
594
598
|
properties: e
|
|
595
599
|
}) {
|
|
596
600
|
return e;
|
|
597
601
|
}
|
|
598
|
-
const
|
|
602
|
+
const Bt = (e) => ({
|
|
599
603
|
href: e.href
|
|
600
604
|
});
|
|
601
605
|
function fe({
|
|
@@ -604,22 +608,22 @@ function fe({
|
|
|
604
608
|
}) {
|
|
605
609
|
var i;
|
|
606
610
|
const n = {
|
|
607
|
-
...
|
|
611
|
+
...Bt(e),
|
|
608
612
|
...e.properties,
|
|
609
613
|
"builder-id": e.id,
|
|
610
614
|
style: pt({
|
|
611
615
|
block: e,
|
|
612
616
|
context: t
|
|
613
617
|
}),
|
|
614
|
-
[
|
|
618
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
615
619
|
};
|
|
616
|
-
return
|
|
620
|
+
return Rt({
|
|
617
621
|
properties: n,
|
|
618
622
|
context: t,
|
|
619
623
|
block: e
|
|
620
624
|
});
|
|
621
625
|
}
|
|
622
|
-
function
|
|
626
|
+
function Vt(e) {
|
|
623
627
|
return /* @__PURE__ */ s(
|
|
624
628
|
ue,
|
|
625
629
|
{
|
|
@@ -640,7 +644,7 @@ function Rt(e) {
|
|
|
640
644
|
}
|
|
641
645
|
);
|
|
642
646
|
}
|
|
643
|
-
function
|
|
647
|
+
function Pt(e) {
|
|
644
648
|
function t() {
|
|
645
649
|
return e.includeBlockProps ? {
|
|
646
650
|
...fe({
|
|
@@ -658,7 +662,7 @@ function Vt(e) {
|
|
|
658
662
|
}
|
|
659
663
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
660
664
|
}
|
|
661
|
-
const
|
|
665
|
+
const At = ({
|
|
662
666
|
componentOptions: e,
|
|
663
667
|
builderBlock: t,
|
|
664
668
|
context: n,
|
|
@@ -691,12 +695,12 @@ const Pt = ({
|
|
|
691
695
|
function ye(e) {
|
|
692
696
|
var i;
|
|
693
697
|
const [t, n] = C(
|
|
694
|
-
() => e.isInteractive ?
|
|
698
|
+
() => e.isInteractive ? Pt : e.componentRef
|
|
695
699
|
);
|
|
696
700
|
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
697
701
|
t,
|
|
698
702
|
{
|
|
699
|
-
...
|
|
703
|
+
...At({
|
|
700
704
|
componentOptions: e.componentOptions,
|
|
701
705
|
builderBlock: e.builderBlock,
|
|
702
706
|
context: e.context,
|
|
@@ -719,7 +723,7 @@ function ye(e) {
|
|
|
719
723
|
}
|
|
720
724
|
) }) : null });
|
|
721
725
|
}
|
|
722
|
-
function
|
|
726
|
+
function Nt(e) {
|
|
723
727
|
const [t, n] = C(() => e.repeatContext);
|
|
724
728
|
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
725
729
|
_,
|
|
@@ -779,13 +783,13 @@ function _(e) {
|
|
|
779
783
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
780
784
|
componentOptions: {
|
|
781
785
|
...at(i()),
|
|
782
|
-
|
|
783
|
-
...
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
786
|
+
...kt(t(), i()),
|
|
787
|
+
...Ct(t(), e.context),
|
|
788
|
+
...St(t(), e.linkComponent),
|
|
789
|
+
...vt(
|
|
790
|
+
t(),
|
|
791
|
+
e.registeredComponents
|
|
792
|
+
)
|
|
789
793
|
},
|
|
790
794
|
context: e.context,
|
|
791
795
|
linkComponent: e.linkComponent,
|
|
@@ -795,7 +799,7 @@ function _(e) {
|
|
|
795
799
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
796
800
|
};
|
|
797
801
|
}
|
|
798
|
-
return
|
|
802
|
+
return P(() => {
|
|
799
803
|
const d = i().id, m = i().animations;
|
|
800
804
|
m && d && mt(
|
|
801
805
|
m.map((g) => ({
|
|
@@ -803,8 +807,8 @@ function _(e) {
|
|
|
803
807
|
elementId: d
|
|
804
808
|
}))
|
|
805
809
|
);
|
|
806
|
-
}, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */
|
|
807
|
-
/* @__PURE__ */ s(
|
|
810
|
+
}, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
|
|
811
|
+
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
808
812
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
809
813
|
ye,
|
|
810
814
|
{
|
|
@@ -819,7 +823,7 @@ function _(e) {
|
|
|
819
823
|
isInteractive: r().isInteractive
|
|
820
824
|
}
|
|
821
825
|
) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
822
|
-
|
|
826
|
+
Nt,
|
|
823
827
|
{
|
|
824
828
|
repeatContext: d.context,
|
|
825
829
|
block: d.block,
|
|
@@ -827,13 +831,12 @@ function _(e) {
|
|
|
827
831
|
linkComponent: e.linkComponent
|
|
828
832
|
},
|
|
829
833
|
m
|
|
830
|
-
)) }) : /* @__PURE__ */
|
|
831
|
-
|
|
834
|
+
)) }) : /* @__PURE__ */ B(
|
|
835
|
+
Vt,
|
|
832
836
|
{
|
|
833
837
|
Wrapper: o(),
|
|
834
838
|
block: i(),
|
|
835
839
|
context: e.context,
|
|
836
|
-
linkComponent: e.linkComponent,
|
|
837
840
|
children: [
|
|
838
841
|
/* @__PURE__ */ s(
|
|
839
842
|
ye,
|
|
@@ -864,7 +867,7 @@ function _(e) {
|
|
|
864
867
|
) })
|
|
865
868
|
] }) : null });
|
|
866
869
|
}
|
|
867
|
-
function
|
|
870
|
+
function Ft(e) {
|
|
868
871
|
function t() {
|
|
869
872
|
var o;
|
|
870
873
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -895,7 +898,7 @@ function At(e) {
|
|
|
895
898
|
"*"
|
|
896
899
|
));
|
|
897
900
|
}
|
|
898
|
-
return /* @__PURE__ */
|
|
901
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
899
902
|
/* @__PURE__ */ s(
|
|
900
903
|
e.BlocksWrapper,
|
|
901
904
|
{
|
|
@@ -919,9 +922,9 @@ function At(e) {
|
|
|
919
922
|
}
|
|
920
923
|
function D(e) {
|
|
921
924
|
var i, o, l;
|
|
922
|
-
const t = be(me), n = be(
|
|
925
|
+
const t = be(me), n = be(Be);
|
|
923
926
|
return /* @__PURE__ */ s(
|
|
924
|
-
|
|
927
|
+
Ft,
|
|
925
928
|
{
|
|
926
929
|
blocks: e.blocks,
|
|
927
930
|
parent: e.parent,
|
|
@@ -942,9 +945,9 @@ function D(e) {
|
|
|
942
945
|
}
|
|
943
946
|
);
|
|
944
947
|
}
|
|
945
|
-
const
|
|
946
|
-
function
|
|
947
|
-
var A,
|
|
948
|
+
const Wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
949
|
+
function $t(e) {
|
|
950
|
+
var A, j;
|
|
948
951
|
const [t, n] = C(
|
|
949
952
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
950
953
|
), [i, o] = C(() => e.columns || []), [l, a] = C(
|
|
@@ -986,18 +989,18 @@ function Wt(e) {
|
|
|
986
989
|
};
|
|
987
990
|
}
|
|
988
991
|
function I(v) {
|
|
989
|
-
const w = v === 0 ? 0 : t,
|
|
992
|
+
const w = v === 0 ? 0 : t, F = u(v), b = `${w}px`, h = "100%", y = 0;
|
|
990
993
|
return {
|
|
991
994
|
...{
|
|
992
995
|
display: "flex",
|
|
993
996
|
flexDirection: "column",
|
|
994
997
|
alignItems: "stretch"
|
|
995
998
|
},
|
|
996
|
-
width:
|
|
999
|
+
width: F,
|
|
997
1000
|
["marginLeft"]: b,
|
|
998
1001
|
"--column-width-mobile": d({
|
|
999
1002
|
stackedStyle: h,
|
|
1000
|
-
desktopStyle:
|
|
1003
|
+
desktopStyle: F
|
|
1001
1004
|
}),
|
|
1002
1005
|
"--column-margin-left-mobile": d({
|
|
1003
1006
|
stackedStyle: y,
|
|
@@ -1005,7 +1008,7 @@ function Wt(e) {
|
|
|
1005
1008
|
}),
|
|
1006
1009
|
"--column-width-tablet": f({
|
|
1007
1010
|
stackedStyle: h,
|
|
1008
|
-
desktopStyle:
|
|
1011
|
+
desktopStyle: F
|
|
1009
1012
|
}),
|
|
1010
1013
|
"--column-margin-left-tablet": f({
|
|
1011
1014
|
stackedStyle: y,
|
|
@@ -1014,9 +1017,9 @@ function Wt(e) {
|
|
|
1014
1017
|
};
|
|
1015
1018
|
}
|
|
1016
1019
|
function x(v) {
|
|
1017
|
-
var
|
|
1020
|
+
var F, b;
|
|
1018
1021
|
return De(
|
|
1019
|
-
((b = (
|
|
1022
|
+
((b = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1020
1023
|
)[v].max;
|
|
1021
1024
|
}
|
|
1022
1025
|
function R() {
|
|
@@ -1046,29 +1049,29 @@ function Wt(e) {
|
|
|
1046
1049
|
},
|
|
1047
1050
|
`;
|
|
1048
1051
|
}
|
|
1049
|
-
function
|
|
1052
|
+
function V(v, w) {
|
|
1050
1053
|
return {
|
|
1051
1054
|
...v.link ? {
|
|
1052
1055
|
href: v.link
|
|
1053
1056
|
} : {},
|
|
1054
|
-
[
|
|
1055
|
-
style:
|
|
1057
|
+
[K()]: "builder-column",
|
|
1058
|
+
style: We(I(w))
|
|
1056
1059
|
};
|
|
1057
1060
|
}
|
|
1058
|
-
return /* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1061
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1062
|
+
/* @__PURE__ */ B(
|
|
1060
1063
|
"div",
|
|
1061
1064
|
{
|
|
1062
|
-
className:
|
|
1065
|
+
className: Wt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1063
1066
|
style: p(),
|
|
1064
1067
|
children: [
|
|
1065
1068
|
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
|
|
1066
|
-
(
|
|
1069
|
+
(j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
|
|
1067
1070
|
ue,
|
|
1068
1071
|
{
|
|
1069
1072
|
TagName: r(v),
|
|
1070
1073
|
actionAttributes: {},
|
|
1071
|
-
attributes:
|
|
1074
|
+
attributes: V(v, w),
|
|
1072
1075
|
children: /* @__PURE__ */ s(
|
|
1073
1076
|
D,
|
|
1074
1077
|
{
|
|
@@ -1095,17 +1098,17 @@ function Wt(e) {
|
|
|
1095
1098
|
}` })
|
|
1096
1099
|
] });
|
|
1097
1100
|
}
|
|
1098
|
-
function
|
|
1101
|
+
function Dt(e) {
|
|
1099
1102
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1100
1103
|
}
|
|
1101
1104
|
function xe(e) {
|
|
1102
1105
|
return e.replace(/http(s)?:/, "");
|
|
1103
1106
|
}
|
|
1104
|
-
function
|
|
1107
|
+
function Lt(e = "", t, n) {
|
|
1105
1108
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1106
1109
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1107
1110
|
}
|
|
1108
|
-
function
|
|
1111
|
+
function Ot(e, t) {
|
|
1109
1112
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1110
1113
|
return e;
|
|
1111
1114
|
if (t === "master")
|
|
@@ -1124,11 +1127,11 @@ function oe(e) {
|
|
|
1124
1127
|
if (e.match(/builder\.io/)) {
|
|
1125
1128
|
let n = e;
|
|
1126
1129
|
const i = Number(e.split("?width=")[1]);
|
|
1127
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1130
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1128
1131
|
}
|
|
1129
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1132
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1130
1133
|
}
|
|
1131
|
-
function
|
|
1134
|
+
function jt(e) {
|
|
1132
1135
|
var o, l, a, r, c, u;
|
|
1133
1136
|
function t() {
|
|
1134
1137
|
var m;
|
|
@@ -1158,14 +1161,15 @@ function Lt(e) {
|
|
|
1158
1161
|
};
|
|
1159
1162
|
return e.aspectRatio ? f : void 0;
|
|
1160
1163
|
}
|
|
1161
|
-
return /* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
1165
|
+
/* @__PURE__ */ B(E, { children: [
|
|
1166
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1164
1167
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1165
1168
|
/* @__PURE__ */ s(
|
|
1166
1169
|
"img",
|
|
1167
1170
|
{
|
|
1168
|
-
loading: "lazy",
|
|
1171
|
+
loading: e.highPriority ? "eager" : "lazy",
|
|
1172
|
+
fetchPriority: e.highPriority ? "high" : "auto",
|
|
1169
1173
|
alt: e.altText,
|
|
1170
1174
|
role: e.altText ? void 0 : "presentation",
|
|
1171
1175
|
style: {
|
|
@@ -1173,7 +1177,7 @@ function Lt(e) {
|
|
|
1173
1177
|
objectFit: e.backgroundSize || "cover",
|
|
1174
1178
|
...i()
|
|
1175
1179
|
},
|
|
1176
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1180
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
|
|
1177
1181
|
src: e.image,
|
|
1178
1182
|
srcSet: t(),
|
|
1179
1183
|
sizes: e.sizes
|
|
@@ -1183,23 +1187,23 @@ function Lt(e) {
|
|
|
1183
1187
|
e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1184
1188
|
"div",
|
|
1185
1189
|
{
|
|
1186
|
-
className: "builder-image-sizer div-
|
|
1190
|
+
className: "builder-image-sizer div-ac3dff4a",
|
|
1187
1191
|
style: {
|
|
1188
1192
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1189
1193
|
}
|
|
1190
1194
|
}
|
|
1191
1195
|
) : null,
|
|
1192
1196
|
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1193
|
-
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-
|
|
1197
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1194
1198
|
] }),
|
|
1195
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1199
|
+
/* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
|
|
1196
1200
|
opacity: 1;
|
|
1197
1201
|
transition: opacity 0.2s ease-in-out;
|
|
1198
|
-
}.div-
|
|
1202
|
+
}.div-ac3dff4a {
|
|
1199
1203
|
width: 100%;
|
|
1200
1204
|
pointer-events: none;
|
|
1201
1205
|
font-size: 0;
|
|
1202
|
-
}.div-
|
|
1206
|
+
}.div-ac3dff4a-2 {
|
|
1203
1207
|
display: flex;
|
|
1204
1208
|
flex-direction: column;
|
|
1205
1209
|
align-items: stretch;
|
|
@@ -1211,7 +1215,7 @@ function Lt(e) {
|
|
|
1211
1215
|
}` })
|
|
1212
1216
|
] });
|
|
1213
1217
|
}
|
|
1214
|
-
function
|
|
1218
|
+
function Ut(e) {
|
|
1215
1219
|
return /* @__PURE__ */ s(
|
|
1216
1220
|
"section",
|
|
1217
1221
|
{
|
|
@@ -1292,7 +1296,7 @@ const ae = {
|
|
|
1292
1296
|
}
|
|
1293
1297
|
}
|
|
1294
1298
|
}]
|
|
1295
|
-
},
|
|
1299
|
+
}, Mt = {
|
|
1296
1300
|
name: "Builder:Accordion",
|
|
1297
1301
|
canHaveChildren: !0,
|
|
1298
1302
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1351,7 +1355,7 @@ const ae = {
|
|
|
1351
1355
|
}
|
|
1352
1356
|
}]
|
|
1353
1357
|
}, Se = (e) => e.toString();
|
|
1354
|
-
function
|
|
1358
|
+
function Ht(e) {
|
|
1355
1359
|
var d;
|
|
1356
1360
|
const [t, n] = C(() => []);
|
|
1357
1361
|
function i() {
|
|
@@ -1401,13 +1405,13 @@ function Ut(e) {
|
|
|
1401
1405
|
if (x) {
|
|
1402
1406
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1403
1407
|
continue;
|
|
1404
|
-
const
|
|
1405
|
-
if (
|
|
1408
|
+
const V = x.getBoundingClientRect();
|
|
1409
|
+
if (V.left > R.left) {
|
|
1406
1410
|
const A = parseInt(
|
|
1407
1411
|
x.getAttribute("data-index") || "",
|
|
1408
1412
|
10
|
|
1409
1413
|
);
|
|
1410
|
-
isNaN(A) || (R =
|
|
1414
|
+
isNaN(A) || (R = V, m = A);
|
|
1411
1415
|
} else
|
|
1412
1416
|
break;
|
|
1413
1417
|
}
|
|
@@ -1429,7 +1433,7 @@ function Ut(e) {
|
|
|
1429
1433
|
function f(m) {
|
|
1430
1434
|
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1431
1435
|
}
|
|
1432
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */
|
|
1436
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ B(E, { children: [
|
|
1433
1437
|
/* @__PURE__ */ s(
|
|
1434
1438
|
"div",
|
|
1435
1439
|
{
|
|
@@ -1474,7 +1478,7 @@ function Ut(e) {
|
|
|
1474
1478
|
) : null
|
|
1475
1479
|
] })) });
|
|
1476
1480
|
}
|
|
1477
|
-
const
|
|
1481
|
+
const Kt = {
|
|
1478
1482
|
name: "Core:Button",
|
|
1479
1483
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1480
1484
|
defaultStyles: {
|
|
@@ -1507,7 +1511,7 @@ const Mt = {
|
|
|
1507
1511
|
}],
|
|
1508
1512
|
static: !0,
|
|
1509
1513
|
noWrap: !0
|
|
1510
|
-
},
|
|
1514
|
+
}, qt = {
|
|
1511
1515
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1512
1516
|
name: "Columns",
|
|
1513
1517
|
isRSC: !0,
|
|
@@ -1708,13 +1712,13 @@ const Mt = {
|
|
|
1708
1712
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1709
1713
|
advanced: !0
|
|
1710
1714
|
}]
|
|
1711
|
-
},
|
|
1715
|
+
}, _t = {
|
|
1712
1716
|
name: "Fragment",
|
|
1713
1717
|
static: !0,
|
|
1714
1718
|
hidden: !0,
|
|
1715
1719
|
canHaveChildren: !0,
|
|
1716
1720
|
noWrap: !0
|
|
1717
|
-
},
|
|
1721
|
+
}, zt = {
|
|
1718
1722
|
name: "Image",
|
|
1719
1723
|
static: !0,
|
|
1720
1724
|
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",
|
|
@@ -1807,6 +1811,11 @@ const Mt = {
|
|
|
1807
1811
|
type: "boolean",
|
|
1808
1812
|
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
1809
1813
|
defaultValue: !0
|
|
1814
|
+
}, {
|
|
1815
|
+
name: "highPriority",
|
|
1816
|
+
type: "boolean",
|
|
1817
|
+
advanced: !0,
|
|
1818
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
1810
1819
|
}, {
|
|
1811
1820
|
name: "aspectRatio",
|
|
1812
1821
|
type: "number",
|
|
@@ -1814,7 +1823,7 @@ const Mt = {
|
|
|
1814
1823
|
advanced: !0,
|
|
1815
1824
|
defaultValue: 0.7041
|
|
1816
1825
|
}]
|
|
1817
|
-
},
|
|
1826
|
+
}, Jt = {
|
|
1818
1827
|
name: "Core:Section",
|
|
1819
1828
|
static: !0,
|
|
1820
1829
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1853,7 +1862,7 @@ const Mt = {
|
|
|
1853
1862
|
}
|
|
1854
1863
|
}
|
|
1855
1864
|
}]
|
|
1856
|
-
},
|
|
1865
|
+
}, Yt = {
|
|
1857
1866
|
name: "Slot",
|
|
1858
1867
|
isRSC: !0,
|
|
1859
1868
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1867,7 +1876,7 @@ const Mt = {
|
|
|
1867
1876
|
defaultValue: "children"
|
|
1868
1877
|
}]
|
|
1869
1878
|
};
|
|
1870
|
-
function
|
|
1879
|
+
function Gt(e) {
|
|
1871
1880
|
var t, n, i;
|
|
1872
1881
|
return /* @__PURE__ */ s(
|
|
1873
1882
|
"div",
|
|
@@ -1890,7 +1899,7 @@ function Jt(e) {
|
|
|
1890
1899
|
}
|
|
1891
1900
|
);
|
|
1892
1901
|
}
|
|
1893
|
-
const
|
|
1902
|
+
const Qt = {
|
|
1894
1903
|
name: "Symbol",
|
|
1895
1904
|
noWrap: !0,
|
|
1896
1905
|
static: !0,
|
|
@@ -1961,7 +1970,7 @@ const Yt = {
|
|
|
1961
1970
|
text: "New tab content "
|
|
1962
1971
|
}
|
|
1963
1972
|
}
|
|
1964
|
-
},
|
|
1973
|
+
}, Xt = {
|
|
1965
1974
|
name: "Builder: Tabs",
|
|
1966
1975
|
inputs: [{
|
|
1967
1976
|
name: "tabs",
|
|
@@ -2059,7 +2068,7 @@ const Yt = {
|
|
|
2059
2068
|
}]
|
|
2060
2069
|
}]
|
|
2061
2070
|
};
|
|
2062
|
-
function
|
|
2071
|
+
function Zt(e) {
|
|
2063
2072
|
var l;
|
|
2064
2073
|
const [t, n] = C(
|
|
2065
2074
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2070,7 +2079,7 @@ function Qt(e) {
|
|
|
2070
2079
|
function o(a) {
|
|
2071
2080
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2072
2081
|
}
|
|
2073
|
-
return /* @__PURE__ */
|
|
2082
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2074
2083
|
/* @__PURE__ */ s(
|
|
2075
2084
|
"div",
|
|
2076
2085
|
{
|
|
@@ -2118,7 +2127,7 @@ function Qt(e) {
|
|
|
2118
2127
|
) }) : null
|
|
2119
2128
|
] });
|
|
2120
2129
|
}
|
|
2121
|
-
const
|
|
2130
|
+
const en = {
|
|
2122
2131
|
name: "Text",
|
|
2123
2132
|
static: !0,
|
|
2124
2133
|
isRSC: !0,
|
|
@@ -2137,7 +2146,7 @@ const Xt = {
|
|
|
2137
2146
|
textAlign: "center"
|
|
2138
2147
|
}
|
|
2139
2148
|
};
|
|
2140
|
-
function
|
|
2149
|
+
function tn(e) {
|
|
2141
2150
|
var t;
|
|
2142
2151
|
return /* @__PURE__ */ s(
|
|
2143
2152
|
"div",
|
|
@@ -2150,7 +2159,7 @@ function Zt(e) {
|
|
|
2150
2159
|
}
|
|
2151
2160
|
);
|
|
2152
2161
|
}
|
|
2153
|
-
const
|
|
2162
|
+
const nn = {
|
|
2154
2163
|
name: "Custom Code",
|
|
2155
2164
|
static: !0,
|
|
2156
2165
|
requiredPermissions: ["editCode"],
|
|
@@ -2173,9 +2182,9 @@ const en = {
|
|
|
2173
2182
|
advanced: !0
|
|
2174
2183
|
}]
|
|
2175
2184
|
};
|
|
2176
|
-
function
|
|
2185
|
+
function on(e) {
|
|
2177
2186
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
2178
|
-
return
|
|
2187
|
+
return P(() => {
|
|
2179
2188
|
var r;
|
|
2180
2189
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
2181
2190
|
return;
|
|
@@ -2211,7 +2220,7 @@ function tn(e) {
|
|
|
2211
2220
|
}
|
|
2212
2221
|
);
|
|
2213
2222
|
}
|
|
2214
|
-
const
|
|
2223
|
+
const an = {
|
|
2215
2224
|
name: "Embed",
|
|
2216
2225
|
static: !0,
|
|
2217
2226
|
inputs: [{
|
|
@@ -2236,8 +2245,8 @@ const nn = {
|
|
|
2236
2245
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2237
2246
|
hideFromUI: !0
|
|
2238
2247
|
}]
|
|
2239
|
-
},
|
|
2240
|
-
function
|
|
2248
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2249
|
+
function sn(e) {
|
|
2241
2250
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2242
2251
|
function c() {
|
|
2243
2252
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2249,7 +2258,7 @@ function rn(e) {
|
|
|
2249
2258
|
n.push(d.src);
|
|
2250
2259
|
const m = document.createElement("script");
|
|
2251
2260
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2252
|
-
} else if (
|
|
2261
|
+
} else if (ln(d) && !o.includes(d.innerText))
|
|
2253
2262
|
try {
|
|
2254
2263
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2255
2264
|
} catch (m) {
|
|
@@ -2257,7 +2266,7 @@ function rn(e) {
|
|
|
2257
2266
|
}
|
|
2258
2267
|
}
|
|
2259
2268
|
}
|
|
2260
|
-
return
|
|
2269
|
+
return P(() => {
|
|
2261
2270
|
t.current && !a && (r(!0), c());
|
|
2262
2271
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2263
2272
|
"div",
|
|
@@ -2268,7 +2277,7 @@ function rn(e) {
|
|
|
2268
2277
|
}
|
|
2269
2278
|
);
|
|
2270
2279
|
}
|
|
2271
|
-
const
|
|
2280
|
+
const cn = {
|
|
2272
2281
|
name: "Form:Form",
|
|
2273
2282
|
// editableTags: ['builder-form-error']
|
|
2274
2283
|
defaults: {
|
|
@@ -2499,14 +2508,14 @@ const ln = {
|
|
|
2499
2508
|
}
|
|
2500
2509
|
}
|
|
2501
2510
|
}]
|
|
2502
|
-
},
|
|
2511
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2503
2512
|
const e = process.env.NODE_ENV || "production";
|
|
2504
|
-
return
|
|
2505
|
-
},
|
|
2513
|
+
return dn.includes(e) ? e : "production";
|
|
2514
|
+
}, mn = (e, t, n) => {
|
|
2506
2515
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2507
2516
|
return i === void 0 || i === e ? n : i;
|
|
2508
2517
|
};
|
|
2509
|
-
function
|
|
2518
|
+
function fn(e) {
|
|
2510
2519
|
var d, m;
|
|
2511
2520
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2512
2521
|
function c(g) {
|
|
@@ -2532,8 +2541,8 @@ function un(e) {
|
|
|
2532
2541
|
}
|
|
2533
2542
|
g.preventDefault();
|
|
2534
2543
|
const x = g.currentTarget || g.target, R = e.customHeaders || {};
|
|
2535
|
-
let
|
|
2536
|
-
const A = new FormData(x),
|
|
2544
|
+
let V;
|
|
2545
|
+
const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2537
2546
|
let h;
|
|
2538
2547
|
const y = b.name;
|
|
2539
2548
|
if (b instanceof HTMLInputElement)
|
|
@@ -2558,33 +2567,33 @@ function un(e) {
|
|
|
2558
2567
|
};
|
|
2559
2568
|
});
|
|
2560
2569
|
let v = e.contentType;
|
|
2561
|
-
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(
|
|
2570
|
+
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
|
|
2562
2571
|
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
|
|
2563
2572
|
}), v !== "application/json")
|
|
2564
|
-
|
|
2573
|
+
V = A;
|
|
2565
2574
|
else {
|
|
2566
2575
|
const b = {};
|
|
2567
|
-
Array.from(
|
|
2576
|
+
Array.from(j).forEach(({ value: h, key: y }) => {
|
|
2568
2577
|
Re(b, y, h);
|
|
2569
|
-
}),
|
|
2578
|
+
}), V = JSON.stringify(b);
|
|
2570
2579
|
}
|
|
2571
2580
|
v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
|
|
2572
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2581
|
+
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2573
2582
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2574
2583
|
return;
|
|
2575
2584
|
i("sending");
|
|
2576
|
-
const
|
|
2585
|
+
const F = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2577
2586
|
e.sendSubmissionsToEmail || ""
|
|
2578
2587
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2579
2588
|
fetch(
|
|
2580
|
-
e.sendSubmissionsTo === "email" ?
|
|
2581
|
-
{ body:
|
|
2589
|
+
e.sendSubmissionsTo === "email" ? F : e.action,
|
|
2590
|
+
{ body: V, headers: R, method: e.method || "post" }
|
|
2582
2591
|
).then(
|
|
2583
2592
|
async (b) => {
|
|
2584
2593
|
let h;
|
|
2585
2594
|
const y = b.headers.get("content-type");
|
|
2586
2595
|
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2587
|
-
let S =
|
|
2596
|
+
let S = mn(h, e.errorMessagePath);
|
|
2588
2597
|
S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
|
|
2589
2598
|
}
|
|
2590
2599
|
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
@@ -2615,9 +2624,9 @@ function un(e) {
|
|
|
2615
2624
|
);
|
|
2616
2625
|
}
|
|
2617
2626
|
}
|
|
2618
|
-
return /* @__PURE__ */
|
|
2627
|
+
return /* @__PURE__ */ B(E, { children: [
|
|
2619
2628
|
" ",
|
|
2620
|
-
/* @__PURE__ */
|
|
2629
|
+
/* @__PURE__ */ B(
|
|
2621
2630
|
"form",
|
|
2622
2631
|
{
|
|
2623
2632
|
validate: e.validate,
|
|
@@ -2671,7 +2680,7 @@ function un(e) {
|
|
|
2671
2680
|
" "
|
|
2672
2681
|
] });
|
|
2673
2682
|
}
|
|
2674
|
-
const
|
|
2683
|
+
const hn = {
|
|
2675
2684
|
name: "Form:Input",
|
|
2676
2685
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2677
2686
|
inputs: [
|
|
@@ -2723,7 +2732,7 @@ const mn = {
|
|
|
2723
2732
|
borderColor: "#ccc"
|
|
2724
2733
|
}
|
|
2725
2734
|
};
|
|
2726
|
-
function
|
|
2735
|
+
function gn(e) {
|
|
2727
2736
|
return /* @__PURE__ */ Ee(
|
|
2728
2737
|
"input",
|
|
2729
2738
|
{
|
|
@@ -2738,7 +2747,7 @@ function fn(e) {
|
|
|
2738
2747
|
}
|
|
2739
2748
|
);
|
|
2740
2749
|
}
|
|
2741
|
-
const
|
|
2750
|
+
const bn = {
|
|
2742
2751
|
name: "Form:Select",
|
|
2743
2752
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2744
2753
|
defaultStyles: {
|
|
@@ -2781,7 +2790,7 @@ const hn = {
|
|
|
2781
2790
|
static: !0,
|
|
2782
2791
|
noWrap: !0
|
|
2783
2792
|
};
|
|
2784
|
-
function
|
|
2793
|
+
function pn(e) {
|
|
2785
2794
|
var t;
|
|
2786
2795
|
return /* @__PURE__ */ Ee(
|
|
2787
2796
|
"select",
|
|
@@ -2795,7 +2804,7 @@ function gn(e) {
|
|
|
2795
2804
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2796
2805
|
);
|
|
2797
2806
|
}
|
|
2798
|
-
const
|
|
2807
|
+
const yn = {
|
|
2799
2808
|
name: "Form:SubmitButton",
|
|
2800
2809
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2801
2810
|
defaultStyles: {
|
|
@@ -2821,10 +2830,10 @@ const bn = {
|
|
|
2821
2830
|
// TODO: defaultChildren
|
|
2822
2831
|
// canHaveChildren: true,
|
|
2823
2832
|
};
|
|
2824
|
-
function
|
|
2833
|
+
function xn(e) {
|
|
2825
2834
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2826
2835
|
}
|
|
2827
|
-
const
|
|
2836
|
+
const Sn = {
|
|
2828
2837
|
// friendlyName?
|
|
2829
2838
|
name: "Raw:Img",
|
|
2830
2839
|
hideFromInsertMenu: !0,
|
|
@@ -2839,7 +2848,7 @@ const yn = {
|
|
|
2839
2848
|
noWrap: !0,
|
|
2840
2849
|
static: !0
|
|
2841
2850
|
};
|
|
2842
|
-
function
|
|
2851
|
+
function vn(e) {
|
|
2843
2852
|
return /* @__PURE__ */ s(
|
|
2844
2853
|
"img",
|
|
2845
2854
|
{
|
|
@@ -2854,7 +2863,7 @@ function xn(e) {
|
|
|
2854
2863
|
$() && e.imgSrc || "default-key"
|
|
2855
2864
|
);
|
|
2856
2865
|
}
|
|
2857
|
-
const
|
|
2866
|
+
const kn = {
|
|
2858
2867
|
name: "Video",
|
|
2859
2868
|
canHaveChildren: !0,
|
|
2860
2869
|
defaultStyles: {
|
|
@@ -2936,7 +2945,7 @@ const Sn = {
|
|
|
2936
2945
|
advanced: !0
|
|
2937
2946
|
}]
|
|
2938
2947
|
};
|
|
2939
|
-
function
|
|
2948
|
+
function Cn(e) {
|
|
2940
2949
|
var i, o, l, a, r, c, u;
|
|
2941
2950
|
function t() {
|
|
2942
2951
|
return {
|
|
@@ -2962,7 +2971,7 @@ function vn(e) {
|
|
|
2962
2971
|
...t()
|
|
2963
2972
|
};
|
|
2964
2973
|
}
|
|
2965
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ B(
|
|
2966
2975
|
"div",
|
|
2967
2976
|
{
|
|
2968
2977
|
style: {
|
|
@@ -3037,61 +3046,61 @@ function vn(e) {
|
|
|
3037
3046
|
}
|
|
3038
3047
|
);
|
|
3039
3048
|
}
|
|
3040
|
-
const
|
|
3041
|
-
component:
|
|
3042
|
-
...en
|
|
3043
|
-
}, {
|
|
3044
|
-
component: rn,
|
|
3049
|
+
const Tn = () => [{
|
|
3050
|
+
component: on,
|
|
3045
3051
|
...nn
|
|
3046
3052
|
}, {
|
|
3047
|
-
component:
|
|
3048
|
-
...
|
|
3053
|
+
component: sn,
|
|
3054
|
+
...an
|
|
3049
3055
|
}, {
|
|
3050
3056
|
component: fn,
|
|
3051
|
-
...
|
|
3052
|
-
}, {
|
|
3053
|
-
component: pn,
|
|
3054
|
-
...bn
|
|
3057
|
+
...cn
|
|
3055
3058
|
}, {
|
|
3056
3059
|
component: gn,
|
|
3057
3060
|
...hn
|
|
3058
3061
|
}, {
|
|
3059
3062
|
component: xn,
|
|
3060
3063
|
...yn
|
|
3064
|
+
}, {
|
|
3065
|
+
component: pn,
|
|
3066
|
+
...bn
|
|
3061
3067
|
}, {
|
|
3062
3068
|
component: vn,
|
|
3063
3069
|
...Sn
|
|
3070
|
+
}, {
|
|
3071
|
+
component: Cn,
|
|
3072
|
+
...kn
|
|
3064
3073
|
}], ve = () => [{
|
|
3065
3074
|
component: ot,
|
|
3066
|
-
...Mt
|
|
3067
|
-
}, {
|
|
3068
|
-
component: Wt,
|
|
3069
|
-
...Ht
|
|
3070
|
-
}, {
|
|
3071
|
-
component: Ft,
|
|
3072
3075
|
...Kt
|
|
3073
3076
|
}, {
|
|
3074
|
-
component:
|
|
3077
|
+
component: $t,
|
|
3075
3078
|
...qt
|
|
3076
3079
|
}, {
|
|
3077
|
-
component:
|
|
3080
|
+
component: Dt,
|
|
3078
3081
|
..._t
|
|
3079
3082
|
}, {
|
|
3080
|
-
component:
|
|
3083
|
+
component: jt,
|
|
3081
3084
|
...zt
|
|
3082
3085
|
}, {
|
|
3083
|
-
component:
|
|
3086
|
+
component: Ut,
|
|
3087
|
+
...Jt
|
|
3088
|
+
}, {
|
|
3089
|
+
component: Gt,
|
|
3084
3090
|
...Yt
|
|
3091
|
+
}, {
|
|
3092
|
+
component: zn,
|
|
3093
|
+
...Qt
|
|
3094
|
+
}, {
|
|
3095
|
+
component: tn,
|
|
3096
|
+
...en
|
|
3085
3097
|
}, {
|
|
3086
3098
|
component: Zt,
|
|
3087
3099
|
...Xt
|
|
3088
3100
|
}, {
|
|
3089
|
-
component:
|
|
3090
|
-
...
|
|
3091
|
-
}, {
|
|
3092
|
-
component: Ut,
|
|
3093
|
-
...jt
|
|
3094
|
-
}, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3101
|
+
component: Ht,
|
|
3102
|
+
...Mt
|
|
3103
|
+
}, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3095
3104
|
function getAndSetVariantId() {
|
|
3096
3105
|
function setCookie(name, value, days) {
|
|
3097
3106
|
let expires = '';
|
|
@@ -3147,7 +3156,7 @@ const kn = () => [{
|
|
|
3147
3156
|
}).join('');
|
|
3148
3157
|
styleEl.innerHTML = newStyleStr;
|
|
3149
3158
|
}
|
|
3150
|
-
}`,
|
|
3159
|
+
}`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3151
3160
|
if (!navigator.cookieEnabled) {
|
|
3152
3161
|
return;
|
|
3153
3162
|
}
|
|
@@ -3185,16 +3194,16 @@ const kn = () => [{
|
|
|
3185
3194
|
...t,
|
|
3186
3195
|
testVariationId: t.id,
|
|
3187
3196
|
id: e == null ? void 0 : e.id
|
|
3188
|
-
})),
|
|
3197
|
+
})), En = ({
|
|
3189
3198
|
canTrack: e,
|
|
3190
3199
|
content: t
|
|
3191
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
3192
|
-
window.${Oe} = ${
|
|
3193
|
-
window.${je} = ${
|
|
3194
|
-
`,
|
|
3200
|
+
}) => !(!(J(t).length > 0) || !e || G()), Rn = (e) => e === "react" || e === "reactNative", Ue = Rn(L), Bn = () => `
|
|
3201
|
+
window.${Oe} = ${In}
|
|
3202
|
+
window.${je} = ${wn}
|
|
3203
|
+
`, Vn = (e, t) => `
|
|
3195
3204
|
window.${Oe}(
|
|
3196
3205
|
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3197
|
-
)`,
|
|
3206
|
+
)`, Pn = ({
|
|
3198
3207
|
contentId: e,
|
|
3199
3208
|
variationId: t
|
|
3200
3209
|
}) => `window.${je}(
|
|
@@ -3212,7 +3221,7 @@ function ce(e) {
|
|
|
3212
3221
|
function ke(e) {
|
|
3213
3222
|
return Math.round(e * 1e3) / 1e3;
|
|
3214
3223
|
}
|
|
3215
|
-
const
|
|
3224
|
+
const An = (e, t, n = !0) => {
|
|
3216
3225
|
if (!(e instanceof HTMLElement))
|
|
3217
3226
|
return null;
|
|
3218
3227
|
let i = n ? e : e.parentElement;
|
|
@@ -3223,7 +3232,7 @@ const Pn = (e, t, n = !0) => {
|
|
|
3223
3232
|
return i;
|
|
3224
3233
|
} while (i = i.parentElement);
|
|
3225
3234
|
return null;
|
|
3226
|
-
},
|
|
3235
|
+
}, Nn = (e) => An(e, (t) => {
|
|
3227
3236
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3228
3237
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3229
3238
|
}), Ce = ({
|
|
@@ -3235,8 +3244,8 @@ const Pn = (e, t, n = !0) => {
|
|
|
3235
3244
|
x: l,
|
|
3236
3245
|
y: a
|
|
3237
3246
|
};
|
|
3238
|
-
},
|
|
3239
|
-
const t = e.target, n = t &&
|
|
3247
|
+
}, Fn = (e) => {
|
|
3248
|
+
const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3240
3249
|
return {
|
|
3241
3250
|
targetBuilderElement: i || void 0,
|
|
3242
3251
|
metadata: {
|
|
@@ -3251,7 +3260,7 @@ const Pn = (e, t, n = !0) => {
|
|
|
3251
3260
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3252
3261
|
}
|
|
3253
3262
|
};
|
|
3254
|
-
},
|
|
3263
|
+
}, Wn = (e) => {
|
|
3255
3264
|
var l, a;
|
|
3256
3265
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
3257
3266
|
let o = "";
|
|
@@ -3277,15 +3286,15 @@ font-weight: ${r};
|
|
|
3277
3286
|
`.trim());
|
|
3278
3287
|
}
|
|
3279
3288
|
return o;
|
|
3280
|
-
},
|
|
3289
|
+
}, $n = ({
|
|
3281
3290
|
customFonts: e
|
|
3282
3291
|
}) => {
|
|
3283
3292
|
var t;
|
|
3284
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3285
|
-
},
|
|
3293
|
+
return ((t = e == null ? void 0 : e.map((n) => Wn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3294
|
+
}, Dn = ({
|
|
3286
3295
|
cssCode: e,
|
|
3287
3296
|
contentId: t
|
|
3288
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3297
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
|
|
3289
3298
|
.builder-button {
|
|
3290
3299
|
all: unset;
|
|
3291
3300
|
}
|
|
@@ -3302,9 +3311,9 @@ font-weight: ${r};
|
|
|
3302
3311
|
text-align: inherit;
|
|
3303
3312
|
font-family: inherit;
|
|
3304
3313
|
}
|
|
3305
|
-
`,
|
|
3306
|
-
function
|
|
3307
|
-
var
|
|
3314
|
+
`, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
|
|
3315
|
+
function Un(e) {
|
|
3316
|
+
var V, A, j, v, w, F, b;
|
|
3308
3317
|
const t = ee(null);
|
|
3309
3318
|
function n(h) {
|
|
3310
3319
|
var S, k;
|
|
@@ -3318,7 +3327,7 @@ function On(e) {
|
|
|
3318
3327
|
}));
|
|
3319
3328
|
}
|
|
3320
3329
|
function i(h) {
|
|
3321
|
-
var S, k, T, N,
|
|
3330
|
+
var S, k, T, N, U;
|
|
3322
3331
|
const y = {
|
|
3323
3332
|
...e.builderContextSignal.content,
|
|
3324
3333
|
...h,
|
|
@@ -3329,11 +3338,11 @@ function On(e) {
|
|
|
3329
3338
|
meta: {
|
|
3330
3339
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3331
3340
|
...h == null ? void 0 : h.meta,
|
|
3332
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((
|
|
3341
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((U = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : U.breakpoints)
|
|
3333
3342
|
}
|
|
3334
3343
|
};
|
|
3335
|
-
e.setBuilderContextSignal((
|
|
3336
|
-
...
|
|
3344
|
+
e.setBuilderContextSignal((W) => ({
|
|
3345
|
+
...W,
|
|
3337
3346
|
content: y
|
|
3338
3347
|
}));
|
|
3339
3348
|
}
|
|
@@ -3372,7 +3381,7 @@ function On(e) {
|
|
|
3372
3381
|
function c() {
|
|
3373
3382
|
var y, S;
|
|
3374
3383
|
const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
|
|
3375
|
-
h &&
|
|
3384
|
+
h && q({
|
|
3376
3385
|
code: h,
|
|
3377
3386
|
context: e.context || {},
|
|
3378
3387
|
localState: void 0,
|
|
@@ -3395,7 +3404,7 @@ function On(e) {
|
|
|
3395
3404
|
contentId: T,
|
|
3396
3405
|
apiKey: e.apiKey,
|
|
3397
3406
|
variationId: k !== T ? k : void 0,
|
|
3398
|
-
...
|
|
3407
|
+
...Fn(h),
|
|
3399
3408
|
unique: !g
|
|
3400
3409
|
});
|
|
3401
3410
|
}
|
|
@@ -3408,10 +3417,10 @@ function On(e) {
|
|
|
3408
3417
|
if (!N || d[T] || u[T] && !$())
|
|
3409
3418
|
return;
|
|
3410
3419
|
d[T] = !0;
|
|
3411
|
-
const
|
|
3420
|
+
const U = N.replace(
|
|
3412
3421
|
/{{([^}]+)}}/g,
|
|
3413
|
-
(
|
|
3414
|
-
|
|
3422
|
+
(W, Me) => String(
|
|
3423
|
+
q({
|
|
3415
3424
|
code: Me,
|
|
3416
3425
|
context: e.context || {},
|
|
3417
3426
|
localState: void 0,
|
|
@@ -3421,12 +3430,12 @@ function On(e) {
|
|
|
3421
3430
|
})
|
|
3422
3431
|
)
|
|
3423
3432
|
);
|
|
3424
|
-
Ge(
|
|
3433
|
+
Ge(U).then((W) => W.json()).then((W) => {
|
|
3425
3434
|
n({
|
|
3426
|
-
[T]:
|
|
3435
|
+
[T]: W
|
|
3427
3436
|
}), u[T] = !0;
|
|
3428
|
-
}).catch((
|
|
3429
|
-
console.error("error fetching dynamic data", N,
|
|
3437
|
+
}).catch((W) => {
|
|
3438
|
+
console.error("error fetching dynamic data", N, W);
|
|
3430
3439
|
}).finally(() => {
|
|
3431
3440
|
d[T] = !1;
|
|
3432
3441
|
});
|
|
@@ -3447,7 +3456,7 @@ function On(e) {
|
|
|
3447
3456
|
)
|
|
3448
3457
|
);
|
|
3449
3458
|
}
|
|
3450
|
-
return
|
|
3459
|
+
return P(() => {
|
|
3451
3460
|
var h, y;
|
|
3452
3461
|
if (G()) {
|
|
3453
3462
|
if ($() && (window.addEventListener("message", r), qe(), _e({
|
|
@@ -3482,35 +3491,35 @@ function On(e) {
|
|
|
3482
3491
|
if (Je() && !$()) {
|
|
3483
3492
|
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3484
3493
|
`builder.overrides.${T}`
|
|
3485
|
-
),
|
|
3486
|
-
T === e.model &&
|
|
3494
|
+
), U = k.get("apiKey") || k.get("builder.space");
|
|
3495
|
+
T === e.model && U === e.apiKey && (!e.content || N === e.content.id) && Ie({
|
|
3487
3496
|
model: e.model,
|
|
3488
3497
|
apiKey: e.apiKey,
|
|
3489
3498
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3490
|
-
}).then((
|
|
3491
|
-
|
|
3499
|
+
}).then((W) => {
|
|
3500
|
+
W && i(W);
|
|
3492
3501
|
});
|
|
3493
3502
|
}
|
|
3494
3503
|
}
|
|
3495
|
-
}, []),
|
|
3504
|
+
}, []), P(() => {
|
|
3496
3505
|
e.apiKey || Z.error(
|
|
3497
3506
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3498
3507
|
), c(), x(), R();
|
|
3499
|
-
}, []),
|
|
3508
|
+
}, []), P(() => {
|
|
3500
3509
|
e.content && i(e.content);
|
|
3501
|
-
}, [e.content]),
|
|
3510
|
+
}, [e.content]), P(() => {
|
|
3502
3511
|
c();
|
|
3503
|
-
}, [(A = (
|
|
3512
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3504
3513
|
x();
|
|
3505
|
-
}, [(v = (
|
|
3514
|
+
}, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3506
3515
|
R();
|
|
3507
|
-
}, [e.builderContextSignal.rootState]),
|
|
3516
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3508
3517
|
e.data && n(e.data);
|
|
3509
|
-
}, [e.data]),
|
|
3518
|
+
}, [e.data]), P(() => {
|
|
3510
3519
|
e.locale && n({
|
|
3511
3520
|
locale: e.locale
|
|
3512
3521
|
});
|
|
3513
|
-
}, [e.locale]),
|
|
3522
|
+
}, [e.locale]), P(() => () => {
|
|
3514
3523
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3515
3524
|
"builder:component:stateChangeListenerActivated",
|
|
3516
3525
|
R
|
|
@@ -3524,29 +3533,29 @@ function On(e) {
|
|
|
3524
3533
|
"builder-model": e.model,
|
|
3525
3534
|
...o(),
|
|
3526
3535
|
...e.contentWrapperProps,
|
|
3527
|
-
className:
|
|
3528
|
-
((
|
|
3536
|
+
className: jn(
|
|
3537
|
+
((F = e.content) == null ? void 0 : F.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3529
3538
|
),
|
|
3530
3539
|
children: e.children
|
|
3531
3540
|
}
|
|
3532
3541
|
) : null });
|
|
3533
3542
|
}
|
|
3534
|
-
function
|
|
3543
|
+
function Mn(e) {
|
|
3535
3544
|
const [t, n] = C(
|
|
3536
3545
|
() => `
|
|
3537
|
-
${
|
|
3546
|
+
${Dn({
|
|
3538
3547
|
cssCode: e.cssCode,
|
|
3539
3548
|
contentId: e.contentId
|
|
3540
3549
|
})}
|
|
3541
|
-
${
|
|
3550
|
+
${$n({
|
|
3542
3551
|
customFonts: e.customFonts
|
|
3543
3552
|
})}
|
|
3544
|
-
${
|
|
3553
|
+
${On(e.isNestedRender)}
|
|
3545
3554
|
`.trim()
|
|
3546
3555
|
);
|
|
3547
3556
|
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3548
3557
|
}
|
|
3549
|
-
const
|
|
3558
|
+
const Hn = ({
|
|
3550
3559
|
content: e,
|
|
3551
3560
|
data: t,
|
|
3552
3561
|
locale: n
|
|
@@ -3563,7 +3572,7 @@ const Un = ({
|
|
|
3563
3572
|
locale: n
|
|
3564
3573
|
} : {}
|
|
3565
3574
|
};
|
|
3566
|
-
},
|
|
3575
|
+
}, Kn = ({
|
|
3567
3576
|
content: e,
|
|
3568
3577
|
data: t
|
|
3569
3578
|
}) => e ? {
|
|
@@ -3579,7 +3588,7 @@ function Te(e) {
|
|
|
3579
3588
|
const [t, n] = C(
|
|
3580
3589
|
() => {
|
|
3581
3590
|
var I, x;
|
|
3582
|
-
return
|
|
3591
|
+
return Pn({
|
|
3583
3592
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3584
3593
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3585
3594
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3608,12 +3617,12 @@ function Te(e) {
|
|
|
3608
3617
|
{}
|
|
3609
3618
|
)
|
|
3610
3619
|
), [a, r] = C(() => ({
|
|
3611
|
-
content:
|
|
3620
|
+
content: Kn({
|
|
3612
3621
|
content: e.content,
|
|
3613
3622
|
data: e.data
|
|
3614
3623
|
}),
|
|
3615
3624
|
localState: void 0,
|
|
3616
|
-
rootState:
|
|
3625
|
+
rootState: Hn({
|
|
3617
3626
|
content: e.content,
|
|
3618
3627
|
data: e.data,
|
|
3619
3628
|
locale: e.locale
|
|
@@ -3638,13 +3647,13 @@ function Te(e) {
|
|
|
3638
3647
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3639
3648
|
}));
|
|
3640
3649
|
return /* @__PURE__ */ s(
|
|
3641
|
-
|
|
3650
|
+
Be.Provider,
|
|
3642
3651
|
{
|
|
3643
3652
|
value: {
|
|
3644
3653
|
registeredComponents: o
|
|
3645
3654
|
},
|
|
3646
|
-
children: /* @__PURE__ */
|
|
3647
|
-
|
|
3655
|
+
children: /* @__PURE__ */ B(
|
|
3656
|
+
Un,
|
|
3648
3657
|
{
|
|
3649
3658
|
content: e.content,
|
|
3650
3659
|
data: e.data,
|
|
@@ -3658,7 +3667,6 @@ function Te(e) {
|
|
|
3658
3667
|
builderContextSignal: a,
|
|
3659
3668
|
contentWrapper: e.contentWrapper,
|
|
3660
3669
|
contentWrapperProps: e.contentWrapperProps,
|
|
3661
|
-
linkComponent: e.linkComponent,
|
|
3662
3670
|
trustedHosts: e.trustedHosts,
|
|
3663
3671
|
setBuilderContextSignal: r,
|
|
3664
3672
|
children: [
|
|
@@ -3670,7 +3678,7 @@ function Te(e) {
|
|
|
3670
3678
|
}
|
|
3671
3679
|
) : null,
|
|
3672
3680
|
/* @__PURE__ */ s(
|
|
3673
|
-
|
|
3681
|
+
Mn,
|
|
3674
3682
|
{
|
|
3675
3683
|
isNestedRender: e.isNestedRender,
|
|
3676
3684
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
@@ -3693,17 +3701,17 @@ function Te(e) {
|
|
|
3693
3701
|
}
|
|
3694
3702
|
);
|
|
3695
3703
|
}
|
|
3696
|
-
function
|
|
3704
|
+
function qn(e) {
|
|
3697
3705
|
var a;
|
|
3698
3706
|
const [t, n] = C(
|
|
3699
|
-
() =>
|
|
3707
|
+
() => En({
|
|
3700
3708
|
canTrack: Q(e.canTrack),
|
|
3701
3709
|
content: e.content
|
|
3702
3710
|
})
|
|
3703
3711
|
);
|
|
3704
3712
|
function i() {
|
|
3705
3713
|
var r;
|
|
3706
|
-
return
|
|
3714
|
+
return Vn(
|
|
3707
3715
|
J(e.content).map((c) => ({
|
|
3708
3716
|
id: c.testVariationId,
|
|
3709
3717
|
testRatio: c.testRatio
|
|
@@ -3724,16 +3732,16 @@ function Hn(e) {
|
|
|
3724
3732
|
canTrack: Q(e.canTrack)
|
|
3725
3733
|
});
|
|
3726
3734
|
}
|
|
3727
|
-
return
|
|
3728
|
-
}, []), /* @__PURE__ */
|
|
3729
|
-
!e.isNestedRender &&
|
|
3735
|
+
return P(() => {
|
|
3736
|
+
}, []), /* @__PURE__ */ B(E, { children: [
|
|
3737
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
|
|
3730
3738
|
ce,
|
|
3731
3739
|
{
|
|
3732
3740
|
id: "builderio-init-variants-fns",
|
|
3733
|
-
scriptStr:
|
|
3741
|
+
scriptStr: Bn()
|
|
3734
3742
|
}
|
|
3735
3743
|
) : null,
|
|
3736
|
-
t ? /* @__PURE__ */
|
|
3744
|
+
t ? /* @__PURE__ */ B(E, { children: [
|
|
3737
3745
|
/* @__PURE__ */ s(
|
|
3738
3746
|
ne,
|
|
3739
3747
|
{
|
|
@@ -3800,7 +3808,7 @@ function Hn(e) {
|
|
|
3800
3808
|
)
|
|
3801
3809
|
] });
|
|
3802
3810
|
}
|
|
3803
|
-
const
|
|
3811
|
+
const _n = async ({
|
|
3804
3812
|
builderContextValue: e,
|
|
3805
3813
|
symbol: t
|
|
3806
3814
|
}) => {
|
|
@@ -3819,7 +3827,7 @@ const Kn = async ({
|
|
|
3819
3827
|
Z.error("Could not fetch symbol content: ", n);
|
|
3820
3828
|
});
|
|
3821
3829
|
};
|
|
3822
|
-
function
|
|
3830
|
+
function zn(e) {
|
|
3823
3831
|
var r, c, u, f;
|
|
3824
3832
|
function t() {
|
|
3825
3833
|
return "div";
|
|
@@ -3830,7 +3838,7 @@ function qn(e) {
|
|
|
3830
3838
|
function i() {
|
|
3831
3839
|
var d, m;
|
|
3832
3840
|
return [
|
|
3833
|
-
e.attributes[
|
|
3841
|
+
e.attributes[K()],
|
|
3834
3842
|
"builder-symbol",
|
|
3835
3843
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3836
3844
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3841,18 +3849,18 @@ function qn(e) {
|
|
|
3841
3849
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3842
3850
|
});
|
|
3843
3851
|
function a() {
|
|
3844
|
-
o ||
|
|
3852
|
+
o || _n({
|
|
3845
3853
|
symbol: e.symbol,
|
|
3846
3854
|
builderContextValue: e.builderContext
|
|
3847
3855
|
}).then((d) => {
|
|
3848
3856
|
d && l(d);
|
|
3849
3857
|
});
|
|
3850
3858
|
}
|
|
3851
|
-
return
|
|
3852
|
-
}, []),
|
|
3859
|
+
return P(() => {
|
|
3860
|
+
}, []), P(() => {
|
|
3853
3861
|
a();
|
|
3854
3862
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3855
|
-
|
|
3863
|
+
qn,
|
|
3856
3864
|
{
|
|
3857
3865
|
isNestedRender: !0,
|
|
3858
3866
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3880,12 +3888,12 @@ export {
|
|
|
3880
3888
|
D as Blocks,
|
|
3881
3889
|
me as BuilderContext,
|
|
3882
3890
|
ot as Button,
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
+
$t as Columns,
|
|
3892
|
+
qn as Content,
|
|
3893
|
+
Dt as Fragment,
|
|
3894
|
+
jt as Image,
|
|
3895
|
+
Ut as Section,
|
|
3896
|
+
zn as Symbol,
|
|
3897
|
+
tn as Text,
|
|
3898
|
+
Cn as Video
|
|
3891
3899
|
};
|