@builder.io/sdk-react 1.1.2 → 2.0.1
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 +524 -555
- 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-754040fc.cjs → server-entry-29c5c31c.cjs} +1 -1
- package/lib/browser/{server-entry-ed2ca723.js → server-entry-f9067095.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-3e3c0eb7.js → accordion-4a70912d.js} +1 -1
- package/lib/edge/{accordion-dfb7894d.cjs → accordion-6ad2cec7.cjs} +1 -1
- package/lib/edge/{blocks-e68d1b90.cjs → blocks-0bd38a83.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +4 -3
- package/lib/edge/{blocks-b47dedc1.js → blocks-fedde8d2.js} +697 -685
- package/lib/edge/{button-03e45213.js → button-af35e8de.js} +2 -2
- package/lib/edge/{button-eacbdcad.cjs → button-f6426eff.cjs} +1 -1
- package/lib/edge/{columns-858746ca.js → columns-1065c0ae.js} +59 -52
- package/lib/edge/columns-f607250b.cjs +28 -0
- package/lib/edge/{content-variants-c4559dfb.js → content-variants-3d57a82f.js} +183 -235
- package/lib/edge/content-variants-773afb9f.cjs +134 -0
- package/lib/edge/{form-6f2d1077.js → form-0a58d0e4.js} +3 -3
- package/lib/edge/{form-241a699e.cjs → form-5762c22a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-87b96bca.js → get-class-prop-name-268b0f61.js} +1 -1
- package/lib/edge/{get-class-prop-name-d471c28c.cjs → get-class-prop-name-3061c329.cjs} +1 -1
- package/lib/edge/{img-be88cdbc.js → img-252c9967.js} +1 -1
- package/lib/edge/{img-a7bbfda3.cjs → img-59bb70c7.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-f1fbe38b.cjs → input-2163d4dc.cjs} +1 -1
- package/lib/edge/{input-22d61335.js → input-7ae243e2.js} +1 -1
- package/lib/edge/{select-c58f67e3.cjs → select-39231177.cjs} +1 -1
- package/lib/edge/{select-6371cc39.js → select-cfa0eb8e.js} +1 -1
- package/lib/edge/{server-entry-048c3043.cjs → server-entry-4750de9c.cjs} +1 -1
- package/lib/edge/{server-entry-97c99c4d.js → server-entry-681e8e79.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7666ffaf.cjs → slot-69da8c56.cjs} +1 -1
- package/lib/edge/{slot-e6c31d6c.js → slot-7c61542f.js} +3 -3
- package/lib/edge/symbol-4a8a6cda.js +85 -0
- package/lib/edge/symbol-bd999a19.cjs +1 -0
- package/lib/edge/{tabs-02f569d1.cjs → tabs-3d0e242e.cjs} +1 -1
- package/lib/edge/{tabs-20114ebb.js → tabs-c3ff0c70.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +518 -549
- 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-819e5520.cjs → node-runtime-3bfd8465.cjs} +1 -1
- package/lib/node/{node-runtime-36670c0e.js → node-runtime-78262e65.js} +1 -1
- package/lib/node/{server-entry-2910f126.js → server-entry-5f9f100f.js} +1 -1
- package/lib/node/{server-entry-cc7910d7.cjs → server-entry-63058f3f.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +15 -15
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/components/content/components/styles.d.ts +2 -1
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/inlined-script.d.ts +2 -1
- package/types/components/inlined-styles.d.ts +2 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/types/builder-props.d.ts +3 -0
- package/lib/edge/columns-26be75b9.cjs +0 -28
- package/lib/edge/content-variants-0c5ae6d6.cjs +0 -134
- package/lib/edge/symbol-8e3447aa.js +0 -84
- package/lib/edge/symbol-a0838c62.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
6
|
-
import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
var He = Object.defineProperty;
|
|
3
|
+
var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, 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-5f9f100f.js";
|
|
7
|
+
import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Re } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-78262e65.js";
|
|
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
|
+
function ue(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: it(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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
13
|
const H = () => {
|
|
14
14
|
switch (K) {
|
|
@@ -24,7 +24,7 @@ const H = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ot(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function at(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
ue,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function at(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = we({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -60,16 +60,17 @@ const fe = Re({
|
|
|
60
60
|
componentInfos: {},
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
|
-
BlocksWrapperProps: {}
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
BlocksWrapperProps: {},
|
|
64
|
+
nonce: ""
|
|
65
|
+
}), Be = we({ registeredComponents: {} });
|
|
66
|
+
function at(e) {
|
|
66
67
|
var t;
|
|
67
68
|
return {
|
|
68
69
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
70
|
...e.options
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
+
const rt = ({
|
|
73
74
|
code: e,
|
|
74
75
|
builder: t,
|
|
75
76
|
context: n,
|
|
@@ -78,11 +79,11 @@ const lt = ({
|
|
|
78
79
|
rootSetState: l,
|
|
79
80
|
rootState: a
|
|
80
81
|
}) => {
|
|
81
|
-
const r =
|
|
82
|
+
const r = Xe({
|
|
82
83
|
builder: t,
|
|
83
84
|
context: n,
|
|
84
85
|
event: i,
|
|
85
|
-
state:
|
|
86
|
+
state: Pe({
|
|
86
87
|
rootState: a,
|
|
87
88
|
localState: o,
|
|
88
89
|
rootSetState: l
|
|
@@ -90,7 +91,7 @@ const lt = ({
|
|
|
90
91
|
});
|
|
91
92
|
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
92
93
|
};
|
|
93
|
-
function
|
|
94
|
+
function Pe({
|
|
94
95
|
rootState: e,
|
|
95
96
|
localState: t,
|
|
96
97
|
rootSetState: n
|
|
@@ -100,7 +101,7 @@ function Ve({
|
|
|
100
101
|
if (t && o in t)
|
|
101
102
|
return t[o];
|
|
102
103
|
const l = i[o];
|
|
103
|
-
return typeof l == "object" && l !== null ?
|
|
104
|
+
return typeof l == "object" && l !== null ? Pe({
|
|
104
105
|
rootState: l,
|
|
105
106
|
localState: void 0,
|
|
106
107
|
rootSetState: n ? (a) => {
|
|
@@ -115,17 +116,17 @@ function Ve({
|
|
|
115
116
|
}
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
function
|
|
119
|
+
function lt() {
|
|
119
120
|
var e;
|
|
120
121
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
121
122
|
}
|
|
122
|
-
const
|
|
123
|
+
const st = () => {
|
|
123
124
|
var i;
|
|
124
|
-
if (!
|
|
125
|
+
if (!lt())
|
|
125
126
|
return !1;
|
|
126
127
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
127
128
|
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;
|
|
128
|
-
},
|
|
129
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
|
|
129
130
|
static getCacheKey(t) {
|
|
130
131
|
return JSON.stringify({
|
|
131
132
|
...t,
|
|
@@ -135,16 +136,16 @@ const ct = () => {
|
|
|
135
136
|
});
|
|
136
137
|
}
|
|
137
138
|
static getCachedValue(t) {
|
|
138
|
-
return
|
|
139
|
+
return L.cache.get(t);
|
|
139
140
|
}
|
|
140
141
|
static setCachedValue(t, n) {
|
|
141
|
-
|
|
142
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
142
143
|
value: n
|
|
143
144
|
});
|
|
144
145
|
}
|
|
145
146
|
};
|
|
146
|
-
|
|
147
|
-
let M =
|
|
147
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
148
|
+
let M = L;
|
|
148
149
|
function q({
|
|
149
150
|
code: e,
|
|
150
151
|
context: t,
|
|
@@ -158,10 +159,10 @@ function q({
|
|
|
158
159
|
if (e === "")
|
|
159
160
|
return;
|
|
160
161
|
const c = {
|
|
161
|
-
code:
|
|
162
|
+
code: et(e, {
|
|
162
163
|
isExpression: a
|
|
163
164
|
}),
|
|
164
|
-
builder:
|
|
165
|
+
builder: tt(),
|
|
165
166
|
context: t,
|
|
166
167
|
event: l,
|
|
167
168
|
rootSetState: o,
|
|
@@ -174,7 +175,7 @@ function q({
|
|
|
174
175
|
return f.value;
|
|
175
176
|
}
|
|
176
177
|
try {
|
|
177
|
-
const u =
|
|
178
|
+
const u = ct(c);
|
|
178
179
|
if (r) {
|
|
179
180
|
const f = M.getCacheKey(c);
|
|
180
181
|
M.setCachedValue(f, u);
|
|
@@ -187,7 +188,7 @@ function q({
|
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
189
190
|
}
|
|
190
|
-
const
|
|
191
|
+
const dt = ({
|
|
191
192
|
block: e,
|
|
192
193
|
context: t,
|
|
193
194
|
localState: n,
|
|
@@ -196,7 +197,7 @@ const ut = ({
|
|
|
196
197
|
}) => {
|
|
197
198
|
if (!e.bindings)
|
|
198
199
|
return e;
|
|
199
|
-
const l =
|
|
200
|
+
const l = de(e), a = {
|
|
200
201
|
...l,
|
|
201
202
|
properties: {
|
|
202
203
|
...l.properties
|
|
@@ -214,7 +215,7 @@ const ut = ({
|
|
|
214
215
|
context: t,
|
|
215
216
|
enableCache: !0
|
|
216
217
|
});
|
|
217
|
-
|
|
218
|
+
Ee(a, r, u);
|
|
218
219
|
}
|
|
219
220
|
return a;
|
|
220
221
|
};
|
|
@@ -227,7 +228,7 @@ function X({
|
|
|
227
228
|
rootSetState: l
|
|
228
229
|
}) {
|
|
229
230
|
const a = e;
|
|
230
|
-
return n ?
|
|
231
|
+
return n ? dt({
|
|
231
232
|
block: a,
|
|
232
233
|
localState: i,
|
|
233
234
|
rootState: o,
|
|
@@ -236,7 +237,7 @@ function X({
|
|
|
236
237
|
}) : a;
|
|
237
238
|
}
|
|
238
239
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
239
|
-
function
|
|
240
|
+
function ut(e, t, n = {}) {
|
|
240
241
|
let i, o, l, a = null, r = 0;
|
|
241
242
|
const c = function() {
|
|
242
243
|
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
@@ -258,55 +259,55 @@ function U(e, ...t) {
|
|
|
258
259
|
}
|
|
259
260
|
return n;
|
|
260
261
|
}
|
|
261
|
-
function
|
|
262
|
+
function mt(e) {
|
|
262
263
|
for (const t of e)
|
|
263
264
|
switch (t.trigger) {
|
|
264
265
|
case "pageLoad":
|
|
265
|
-
|
|
266
|
+
Ne(t);
|
|
266
267
|
break;
|
|
267
268
|
case "scrollInView":
|
|
268
|
-
|
|
269
|
+
ht(t);
|
|
269
270
|
break;
|
|
270
271
|
}
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function Ve(e) {
|
|
273
274
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
274
275
|
}
|
|
275
|
-
function
|
|
276
|
-
const n =
|
|
276
|
+
function Ae(e, t) {
|
|
277
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
277
278
|
for (const r of a)
|
|
278
279
|
for (const c of n)
|
|
279
280
|
c in r || (r[c] = i[c]);
|
|
280
281
|
}
|
|
281
|
-
function
|
|
282
|
+
function ft(e) {
|
|
282
283
|
const t = [];
|
|
283
284
|
for (const n of e.steps)
|
|
284
285
|
for (const i in n.styles)
|
|
285
286
|
t.indexOf(i) === -1 && t.push(i);
|
|
286
287
|
return t;
|
|
287
288
|
}
|
|
288
|
-
function
|
|
289
|
+
function Ne(e) {
|
|
289
290
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
290
291
|
if (!t.length) {
|
|
291
|
-
|
|
292
|
+
Ve(e.elementId || e.id || "");
|
|
292
293
|
return;
|
|
293
294
|
}
|
|
294
295
|
Array.from(t).forEach((n) => {
|
|
295
|
-
|
|
296
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
296
297
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
297
298
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
298
299
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
299
300
|
});
|
|
300
301
|
});
|
|
301
302
|
}
|
|
302
|
-
function
|
|
303
|
+
function ht(e) {
|
|
303
304
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
304
305
|
if (!t.length) {
|
|
305
|
-
|
|
306
|
+
Ve(e.elementId || e.id || "");
|
|
306
307
|
return;
|
|
307
308
|
}
|
|
308
309
|
Array.from(t).forEach((n) => {
|
|
309
|
-
|
|
310
|
+
Ae(e, n);
|
|
310
311
|
let i = !1, o = !1;
|
|
311
312
|
function l() {
|
|
312
313
|
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -315,7 +316,7 @@ function bt(e) {
|
|
|
315
316
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
316
317
|
})) : e.repeat && i && !o && !r(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
317
318
|
}
|
|
318
|
-
const a =
|
|
319
|
+
const a = ut(l, 200, {
|
|
319
320
|
leading: !1
|
|
320
321
|
});
|
|
321
322
|
function r(f) {
|
|
@@ -334,10 +335,10 @@ function bt(e) {
|
|
|
334
335
|
}), l();
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
|
-
const
|
|
338
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
338
339
|
if (typeof i == "string")
|
|
339
340
|
return `${te(n)}: ${i};`;
|
|
340
|
-
}).filter(Y), gt = (e) =>
|
|
341
|
+
}).filter(Y), gt = (e) => We(e).join(`
|
|
341
342
|
`), _ = ({
|
|
342
343
|
mediaQuery: e,
|
|
343
344
|
className: t,
|
|
@@ -350,26 +351,26 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
350
351
|
${i}
|
|
351
352
|
}` : i;
|
|
352
353
|
};
|
|
353
|
-
function
|
|
354
|
+
function bt({
|
|
354
355
|
style: e
|
|
355
356
|
}) {
|
|
356
357
|
return e;
|
|
357
358
|
}
|
|
358
|
-
const
|
|
359
|
+
const pt = ({
|
|
359
360
|
block: e,
|
|
360
361
|
context: t
|
|
361
|
-
}) =>
|
|
362
|
+
}) => Fe(bt({
|
|
362
363
|
style: e.style || {},
|
|
363
364
|
context: t,
|
|
364
365
|
block: e
|
|
365
366
|
}));
|
|
366
|
-
function
|
|
367
|
+
function Fe(e) {
|
|
367
368
|
switch (K) {
|
|
368
369
|
case "svelte":
|
|
369
370
|
case "vue":
|
|
370
371
|
case "solid":
|
|
371
372
|
case "angular":
|
|
372
|
-
return
|
|
373
|
+
return We(e).join(" ");
|
|
373
374
|
case "qwik":
|
|
374
375
|
case "reactNative":
|
|
375
376
|
case "react":
|
|
@@ -377,7 +378,7 @@ function $e(e) {
|
|
|
377
378
|
return e;
|
|
378
379
|
}
|
|
379
380
|
}
|
|
380
|
-
const
|
|
381
|
+
const yt = ({
|
|
381
382
|
block: e,
|
|
382
383
|
context: t,
|
|
383
384
|
registeredComponents: n
|
|
@@ -399,7 +400,7 @@ const xt = ({
|
|
|
399
400
|
console.warn(`
|
|
400
401
|
Could not find a registered component named "${i}".
|
|
401
402
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
402
|
-
},
|
|
403
|
+
}, xt = ({
|
|
403
404
|
block: e,
|
|
404
405
|
context: t
|
|
405
406
|
}) => {
|
|
@@ -433,23 +434,27 @@ const xt = ({
|
|
|
433
434
|
},
|
|
434
435
|
block: i
|
|
435
436
|
}));
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
} : {}
|
|
451
|
-
|
|
452
|
-
|
|
437
|
+
}, vt = (e, t) => {
|
|
438
|
+
var n;
|
|
439
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
440
|
+
builderLinkComponent: t
|
|
441
|
+
} : {};
|
|
442
|
+
}, St = (e, t) => {
|
|
443
|
+
var n;
|
|
444
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
445
|
+
builderComponents: t
|
|
446
|
+
} : {};
|
|
447
|
+
}, kt = (e, t) => {
|
|
448
|
+
var n;
|
|
449
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
450
|
+
builderBlock: t
|
|
451
|
+
} : {};
|
|
452
|
+
}, Ct = (e, t) => {
|
|
453
|
+
var n;
|
|
454
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
455
|
+
builderContext: t
|
|
456
|
+
} : {};
|
|
457
|
+
}, $e = {
|
|
453
458
|
small: {
|
|
454
459
|
min: 320,
|
|
455
460
|
default: 321,
|
|
@@ -465,11 +470,11 @@ const xt = ({
|
|
|
465
470
|
default: 991,
|
|
466
471
|
max: 1200
|
|
467
472
|
}
|
|
468
|
-
},
|
|
473
|
+
}, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
469
474
|
small: e,
|
|
470
475
|
medium: t
|
|
471
476
|
}) => {
|
|
472
|
-
const n =
|
|
477
|
+
const n = de($e);
|
|
473
478
|
if (!e || !t)
|
|
474
479
|
return n;
|
|
475
480
|
const i = Math.floor(e / 2);
|
|
@@ -492,16 +497,17 @@ const xt = ({
|
|
|
492
497
|
default: l + 1
|
|
493
498
|
}, n;
|
|
494
499
|
};
|
|
495
|
-
function
|
|
500
|
+
function ne(e) {
|
|
496
501
|
return /* @__PURE__ */ s(
|
|
497
502
|
"style",
|
|
498
503
|
{
|
|
499
504
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
500
|
-
"data-id": e.id
|
|
505
|
+
"data-id": e.id,
|
|
506
|
+
nonce: e.nonce
|
|
501
507
|
}
|
|
502
508
|
);
|
|
503
509
|
}
|
|
504
|
-
function
|
|
510
|
+
function Tt(e) {
|
|
505
511
|
function t() {
|
|
506
512
|
const i = X({
|
|
507
513
|
block: e.block,
|
|
@@ -514,7 +520,7 @@ function It(e) {
|
|
|
514
520
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
515
521
|
}
|
|
516
522
|
function n() {
|
|
517
|
-
var x,
|
|
523
|
+
var x, E, V;
|
|
518
524
|
const i = X({
|
|
519
525
|
block: e.block,
|
|
520
526
|
localState: e.context.localState,
|
|
@@ -533,21 +539,21 @@ function It(e) {
|
|
|
533
539
|
}) : "", m = c ? _({
|
|
534
540
|
className: f,
|
|
535
541
|
styles: c,
|
|
536
|
-
mediaQuery:
|
|
542
|
+
mediaQuery: pe(
|
|
537
543
|
"medium",
|
|
538
544
|
a
|
|
539
545
|
)
|
|
540
|
-
}) : "",
|
|
546
|
+
}) : "", g = u ? _({
|
|
541
547
|
className: f,
|
|
542
548
|
styles: u,
|
|
543
|
-
mediaQuery:
|
|
549
|
+
mediaQuery: pe(
|
|
544
550
|
"small",
|
|
545
551
|
a
|
|
546
552
|
)
|
|
547
553
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
548
554
|
let I = "";
|
|
549
555
|
if (p) {
|
|
550
|
-
const A = ((V = (
|
|
556
|
+
const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
551
557
|
I = _({
|
|
552
558
|
className: `${f}:hover`,
|
|
553
559
|
styles: {
|
|
@@ -562,16 +568,23 @@ function It(e) {
|
|
|
562
568
|
return [
|
|
563
569
|
d,
|
|
564
570
|
m,
|
|
565
|
-
|
|
571
|
+
g,
|
|
566
572
|
I
|
|
567
573
|
].join(" ");
|
|
568
574
|
}
|
|
569
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
575
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
576
|
+
ne,
|
|
577
|
+
{
|
|
578
|
+
id: "builderio-block",
|
|
579
|
+
styles: n(),
|
|
580
|
+
nonce: e.context.nonce
|
|
581
|
+
}
|
|
582
|
+
) }) : null });
|
|
570
583
|
}
|
|
571
|
-
function
|
|
584
|
+
function It(e) {
|
|
572
585
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
573
586
|
}
|
|
574
|
-
const
|
|
587
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
|
|
575
588
|
code: e,
|
|
576
589
|
context: t.context,
|
|
577
590
|
localState: t.localState,
|
|
@@ -581,14 +594,14 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
|
|
|
581
594
|
isExpression: !1,
|
|
582
595
|
enableCache: !0
|
|
583
596
|
});
|
|
584
|
-
function
|
|
597
|
+
function Le(e) {
|
|
585
598
|
var i;
|
|
586
599
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
587
600
|
for (const o in n) {
|
|
588
601
|
if (!n.hasOwnProperty(o))
|
|
589
602
|
continue;
|
|
590
603
|
const l = n[o];
|
|
591
|
-
let a =
|
|
604
|
+
let a = wt(o);
|
|
592
605
|
if (e.stripPrefix)
|
|
593
606
|
switch (K) {
|
|
594
607
|
case "vue":
|
|
@@ -598,49 +611,49 @@ function Oe(e) {
|
|
|
598
611
|
a = a.replace("on:", "");
|
|
599
612
|
break;
|
|
600
613
|
}
|
|
601
|
-
t[a] =
|
|
614
|
+
t[a] = Rt(l, e);
|
|
602
615
|
}
|
|
603
616
|
return t;
|
|
604
617
|
}
|
|
605
|
-
function
|
|
618
|
+
function Et({
|
|
606
619
|
properties: e
|
|
607
620
|
}) {
|
|
608
621
|
return e;
|
|
609
622
|
}
|
|
610
|
-
const
|
|
623
|
+
const Bt = (e) => ({
|
|
611
624
|
href: e.href
|
|
612
625
|
});
|
|
613
|
-
function
|
|
626
|
+
function fe({
|
|
614
627
|
block: e,
|
|
615
628
|
context: t
|
|
616
629
|
}) {
|
|
617
630
|
var i;
|
|
618
631
|
const n = {
|
|
619
|
-
...
|
|
632
|
+
...Bt(e),
|
|
620
633
|
...e.properties,
|
|
621
634
|
"builder-id": e.id,
|
|
622
|
-
style:
|
|
635
|
+
style: pt({
|
|
623
636
|
block: e,
|
|
624
637
|
context: t
|
|
625
638
|
}),
|
|
626
639
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
627
640
|
};
|
|
628
|
-
return
|
|
641
|
+
return Et({
|
|
629
642
|
properties: n,
|
|
630
643
|
context: t,
|
|
631
644
|
block: e
|
|
632
645
|
});
|
|
633
646
|
}
|
|
634
|
-
function
|
|
647
|
+
function Pt(e) {
|
|
635
648
|
return /* @__PURE__ */ s(
|
|
636
|
-
|
|
649
|
+
ue,
|
|
637
650
|
{
|
|
638
651
|
TagName: e.Wrapper,
|
|
639
|
-
attributes:
|
|
652
|
+
attributes: fe({
|
|
640
653
|
block: e.block,
|
|
641
654
|
context: e.context
|
|
642
655
|
}),
|
|
643
|
-
actionAttributes:
|
|
656
|
+
actionAttributes: Le({
|
|
644
657
|
block: e.block,
|
|
645
658
|
rootState: e.context.rootState,
|
|
646
659
|
rootSetState: e.context.rootSetState,
|
|
@@ -652,14 +665,14 @@ function Vt(e) {
|
|
|
652
665
|
}
|
|
653
666
|
);
|
|
654
667
|
}
|
|
655
|
-
function
|
|
668
|
+
function Vt(e) {
|
|
656
669
|
function t() {
|
|
657
670
|
return e.includeBlockProps ? {
|
|
658
|
-
...
|
|
671
|
+
...fe({
|
|
659
672
|
block: e.block,
|
|
660
673
|
context: e.context
|
|
661
674
|
}),
|
|
662
|
-
...
|
|
675
|
+
...Le({
|
|
663
676
|
block: e.block,
|
|
664
677
|
rootState: e.context.rootState,
|
|
665
678
|
rootSetState: e.context.rootSetState,
|
|
@@ -670,7 +683,7 @@ function At(e) {
|
|
|
670
683
|
}
|
|
671
684
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
672
685
|
}
|
|
673
|
-
const
|
|
686
|
+
const At = ({
|
|
674
687
|
componentOptions: e,
|
|
675
688
|
builderBlock: t,
|
|
676
689
|
context: n,
|
|
@@ -686,7 +699,7 @@ const Nt = ({
|
|
|
686
699
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
687
700
|
*/
|
|
688
701
|
...o ? {
|
|
689
|
-
attributes:
|
|
702
|
+
attributes: fe({
|
|
690
703
|
block: t,
|
|
691
704
|
context: a
|
|
692
705
|
})
|
|
@@ -700,15 +713,15 @@ const Nt = ({
|
|
|
700
713
|
includeBlockProps: o
|
|
701
714
|
} : r;
|
|
702
715
|
};
|
|
703
|
-
function
|
|
716
|
+
function ye(e) {
|
|
704
717
|
var i;
|
|
705
718
|
const [t, n] = C(
|
|
706
|
-
() => e.isInteractive ?
|
|
719
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
707
720
|
);
|
|
708
721
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
709
722
|
t,
|
|
710
723
|
{
|
|
711
|
-
...
|
|
724
|
+
...At({
|
|
712
725
|
componentOptions: e.componentOptions,
|
|
713
726
|
builderBlock: e.builderBlock,
|
|
714
727
|
context: e.context,
|
|
@@ -731,9 +744,9 @@ function xe(e) {
|
|
|
731
744
|
}
|
|
732
745
|
) }) : null });
|
|
733
746
|
}
|
|
734
|
-
function
|
|
747
|
+
function Nt(e) {
|
|
735
748
|
const [t, n] = C(() => e.repeatContext);
|
|
736
|
-
return /* @__PURE__ */ s(
|
|
749
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
737
750
|
z,
|
|
738
751
|
{
|
|
739
752
|
block: e.block,
|
|
@@ -746,14 +759,14 @@ function Wt(e) {
|
|
|
746
759
|
function z(e) {
|
|
747
760
|
var c, u, f;
|
|
748
761
|
function t() {
|
|
749
|
-
return
|
|
762
|
+
return yt({
|
|
750
763
|
block: e.block,
|
|
751
764
|
context: e.context,
|
|
752
765
|
registeredComponents: e.registeredComponents
|
|
753
766
|
});
|
|
754
767
|
}
|
|
755
768
|
function n() {
|
|
756
|
-
return
|
|
769
|
+
return xt({
|
|
757
770
|
block: e.block,
|
|
758
771
|
context: e.context
|
|
759
772
|
});
|
|
@@ -774,27 +787,27 @@ function z(e) {
|
|
|
774
787
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
775
788
|
}
|
|
776
789
|
function l() {
|
|
777
|
-
var
|
|
778
|
-
if ((
|
|
790
|
+
var g, p;
|
|
791
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
779
792
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
780
793
|
const d = "hide" in i() ? i().hide : !1;
|
|
781
794
|
return ("show" in i() ? i().show : !0) && !d;
|
|
782
795
|
}
|
|
783
796
|
function a() {
|
|
784
|
-
var m,
|
|
785
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
797
|
+
var m, g;
|
|
798
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
786
799
|
}
|
|
787
800
|
function r() {
|
|
788
|
-
var d, m,
|
|
801
|
+
var d, m, g, p;
|
|
789
802
|
return {
|
|
790
803
|
blockChildren: (d = i().children) != null ? d : [],
|
|
791
804
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
792
805
|
componentOptions: {
|
|
793
|
-
...
|
|
794
|
-
...
|
|
795
|
-
...
|
|
796
|
-
...
|
|
797
|
-
...
|
|
806
|
+
...at(i()),
|
|
807
|
+
...kt(t(), i()),
|
|
808
|
+
...Ct(t(), e.context),
|
|
809
|
+
...vt(t(), e.linkComponent),
|
|
810
|
+
...St(
|
|
798
811
|
t(),
|
|
799
812
|
e.registeredComponents
|
|
800
813
|
)
|
|
@@ -803,22 +816,22 @@ function z(e) {
|
|
|
803
816
|
linkComponent: e.linkComponent,
|
|
804
817
|
registeredComponents: e.registeredComponents,
|
|
805
818
|
builderBlock: i(),
|
|
806
|
-
includeBlockProps: ((
|
|
819
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
807
820
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
808
821
|
};
|
|
809
822
|
}
|
|
810
|
-
return
|
|
823
|
+
return B(() => {
|
|
811
824
|
const d = i().id, m = i().animations;
|
|
812
|
-
m && d &&
|
|
813
|
-
m.map((
|
|
814
|
-
...
|
|
825
|
+
m && d && mt(
|
|
826
|
+
m.map((g) => ({
|
|
827
|
+
...g,
|
|
815
828
|
elementId: d
|
|
816
829
|
}))
|
|
817
830
|
);
|
|
818
|
-
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */ s(
|
|
831
|
+
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ P(R, { children: [
|
|
832
|
+
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
820
833
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
821
|
-
|
|
834
|
+
ye,
|
|
822
835
|
{
|
|
823
836
|
componentRef: r().componentRef,
|
|
824
837
|
componentOptions: r().componentOptions,
|
|
@@ -831,7 +844,7 @@ function z(e) {
|
|
|
831
844
|
isInteractive: r().isInteractive
|
|
832
845
|
}
|
|
833
846
|
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
834
|
-
|
|
847
|
+
Nt,
|
|
835
848
|
{
|
|
836
849
|
repeatContext: d.context,
|
|
837
850
|
block: d.block,
|
|
@@ -839,15 +852,15 @@ function z(e) {
|
|
|
839
852
|
linkComponent: e.linkComponent
|
|
840
853
|
},
|
|
841
854
|
m
|
|
842
|
-
)) }) : /* @__PURE__ */
|
|
843
|
-
|
|
855
|
+
)) }) : /* @__PURE__ */ P(
|
|
856
|
+
Pt,
|
|
844
857
|
{
|
|
845
858
|
Wrapper: o(),
|
|
846
859
|
block: i(),
|
|
847
860
|
context: e.context,
|
|
848
861
|
children: [
|
|
849
862
|
/* @__PURE__ */ s(
|
|
850
|
-
|
|
863
|
+
ye,
|
|
851
864
|
{
|
|
852
865
|
componentRef: r().componentRef,
|
|
853
866
|
componentOptions: r().componentOptions,
|
|
@@ -875,7 +888,7 @@ function z(e) {
|
|
|
875
888
|
) })
|
|
876
889
|
] }) : null });
|
|
877
890
|
}
|
|
878
|
-
function
|
|
891
|
+
function Wt(e) {
|
|
879
892
|
function t() {
|
|
880
893
|
var o;
|
|
881
894
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -906,7 +919,7 @@ function Ft(e) {
|
|
|
906
919
|
"*"
|
|
907
920
|
));
|
|
908
921
|
}
|
|
909
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
910
923
|
/* @__PURE__ */ s(
|
|
911
924
|
e.BlocksWrapper,
|
|
912
925
|
{
|
|
@@ -928,11 +941,11 @@ function Ft(e) {
|
|
|
928
941
|
}` })
|
|
929
942
|
] });
|
|
930
943
|
}
|
|
931
|
-
function
|
|
944
|
+
function D(e) {
|
|
932
945
|
var i, o, l;
|
|
933
|
-
const t =
|
|
946
|
+
const t = be(me), n = be(Be);
|
|
934
947
|
return /* @__PURE__ */ s(
|
|
935
|
-
|
|
948
|
+
Wt,
|
|
936
949
|
{
|
|
937
950
|
blocks: e.blocks,
|
|
938
951
|
parent: e.parent,
|
|
@@ -953,8 +966,8 @@ function L(e) {
|
|
|
953
966
|
}
|
|
954
967
|
);
|
|
955
968
|
}
|
|
956
|
-
const
|
|
957
|
-
function
|
|
969
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
970
|
+
function $t(e) {
|
|
958
971
|
var A, O;
|
|
959
972
|
const [t, n] = C(
|
|
960
973
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -969,8 +982,8 @@ function Lt(e) {
|
|
|
969
982
|
return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
|
|
970
983
|
}
|
|
971
984
|
function u(S) {
|
|
972
|
-
const w = t * (i.length - 1) /
|
|
973
|
-
return `calc(${
|
|
985
|
+
const w = c(S), N = t * (i.length - 1) * (w / 100);
|
|
986
|
+
return `calc(${w}% - ${N}px)`;
|
|
974
987
|
}
|
|
975
988
|
function f({
|
|
976
989
|
stackedStyle: S,
|
|
@@ -984,7 +997,7 @@ function Lt(e) {
|
|
|
984
997
|
}) {
|
|
985
998
|
return l === "never" ? w : S;
|
|
986
999
|
}
|
|
987
|
-
const [m,
|
|
1000
|
+
const [m, g] = C(
|
|
988
1001
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
989
1002
|
);
|
|
990
1003
|
function p() {
|
|
@@ -997,40 +1010,40 @@ function Lt(e) {
|
|
|
997
1010
|
};
|
|
998
1011
|
}
|
|
999
1012
|
function I(S) {
|
|
1000
|
-
const w = S === 0 ? 0 : t,
|
|
1013
|
+
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
|
|
1001
1014
|
return {
|
|
1002
1015
|
...{
|
|
1003
1016
|
display: "flex",
|
|
1004
1017
|
flexDirection: "column",
|
|
1005
1018
|
alignItems: "stretch"
|
|
1006
1019
|
},
|
|
1007
|
-
width:
|
|
1008
|
-
["marginLeft"]:
|
|
1020
|
+
width: N,
|
|
1021
|
+
["marginLeft"]: b,
|
|
1009
1022
|
"--column-width-mobile": d({
|
|
1010
1023
|
stackedStyle: h,
|
|
1011
|
-
desktopStyle:
|
|
1024
|
+
desktopStyle: N
|
|
1012
1025
|
}),
|
|
1013
1026
|
"--column-margin-left-mobile": d({
|
|
1014
1027
|
stackedStyle: y,
|
|
1015
|
-
desktopStyle:
|
|
1028
|
+
desktopStyle: b
|
|
1016
1029
|
}),
|
|
1017
1030
|
"--column-width-tablet": f({
|
|
1018
1031
|
stackedStyle: h,
|
|
1019
|
-
desktopStyle:
|
|
1032
|
+
desktopStyle: N
|
|
1020
1033
|
}),
|
|
1021
1034
|
"--column-margin-left-tablet": f({
|
|
1022
1035
|
stackedStyle: y,
|
|
1023
|
-
desktopStyle:
|
|
1036
|
+
desktopStyle: b
|
|
1024
1037
|
})
|
|
1025
1038
|
};
|
|
1026
1039
|
}
|
|
1027
1040
|
function x(S) {
|
|
1028
|
-
var
|
|
1041
|
+
var N, b;
|
|
1029
1042
|
return De(
|
|
1030
|
-
((
|
|
1043
|
+
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1031
1044
|
)[S].max;
|
|
1032
1045
|
}
|
|
1033
|
-
function
|
|
1046
|
+
function E() {
|
|
1034
1047
|
return `
|
|
1035
1048
|
@media (max-width: ${x("medium")}px) {
|
|
1036
1049
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1063,25 +1076,32 @@ function Lt(e) {
|
|
|
1063
1076
|
href: S.link
|
|
1064
1077
|
} : {},
|
|
1065
1078
|
[H()]: "builder-column",
|
|
1066
|
-
style:
|
|
1079
|
+
style: Fe(I(w))
|
|
1067
1080
|
};
|
|
1068
1081
|
}
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1082
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1083
|
+
/* @__PURE__ */ P(
|
|
1071
1084
|
"div",
|
|
1072
1085
|
{
|
|
1073
|
-
className:
|
|
1086
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1074
1087
|
style: p(),
|
|
1075
1088
|
children: [
|
|
1076
|
-
/* @__PURE__ */ s(
|
|
1089
|
+
/* @__PURE__ */ s(
|
|
1090
|
+
ne,
|
|
1091
|
+
{
|
|
1092
|
+
id: "builderio-columns",
|
|
1093
|
+
styles: E(),
|
|
1094
|
+
nonce: e.builderContext.nonce
|
|
1095
|
+
}
|
|
1096
|
+
),
|
|
1077
1097
|
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1078
|
-
|
|
1098
|
+
ue,
|
|
1079
1099
|
{
|
|
1080
1100
|
TagName: r(S),
|
|
1081
1101
|
actionAttributes: {},
|
|
1082
1102
|
attributes: V(S, w),
|
|
1083
1103
|
children: /* @__PURE__ */ s(
|
|
1084
|
-
|
|
1104
|
+
D,
|
|
1085
1105
|
{
|
|
1086
1106
|
path: `component.options.columns.${w}.blocks`,
|
|
1087
1107
|
parent: e.builderBlock.id,
|
|
@@ -1100,7 +1120,7 @@ function Lt(e) {
|
|
|
1100
1120
|
]
|
|
1101
1121
|
}
|
|
1102
1122
|
),
|
|
1103
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1123
|
+
/* @__PURE__ */ s("style", { children: `.div-fe220f58 {
|
|
1104
1124
|
display: flex;
|
|
1105
1125
|
line-height: normal;
|
|
1106
1126
|
}` })
|
|
@@ -1109,37 +1129,37 @@ function Lt(e) {
|
|
|
1109
1129
|
function Dt(e) {
|
|
1110
1130
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1111
1131
|
}
|
|
1112
|
-
function
|
|
1132
|
+
function xe(e) {
|
|
1113
1133
|
return e.replace(/http(s)?:/, "");
|
|
1114
1134
|
}
|
|
1115
|
-
function
|
|
1135
|
+
function Lt(e = "", t, n) {
|
|
1116
1136
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1117
1137
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1118
1138
|
}
|
|
1119
|
-
function
|
|
1139
|
+
function Ot(e, t) {
|
|
1120
1140
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1121
1141
|
return e;
|
|
1122
1142
|
if (t === "master")
|
|
1123
|
-
return
|
|
1143
|
+
return xe(e);
|
|
1124
1144
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1125
1145
|
if (n) {
|
|
1126
1146
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1127
|
-
return
|
|
1147
|
+
return xe(`${i[0]}_${l}${o}`);
|
|
1128
1148
|
}
|
|
1129
1149
|
return null;
|
|
1130
1150
|
}
|
|
1131
|
-
function
|
|
1151
|
+
function oe(e) {
|
|
1132
1152
|
if (!e)
|
|
1133
1153
|
return e;
|
|
1134
1154
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1135
1155
|
if (e.match(/builder\.io/)) {
|
|
1136
1156
|
let n = e;
|
|
1137
1157
|
const i = Number(e.split("?width=")[1]);
|
|
1138
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1158
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1139
1159
|
}
|
|
1140
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1160
|
+
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;
|
|
1141
1161
|
}
|
|
1142
|
-
function
|
|
1162
|
+
function jt(e) {
|
|
1143
1163
|
var o, l, a, r, c, u;
|
|
1144
1164
|
function t() {
|
|
1145
1165
|
var m;
|
|
@@ -1150,10 +1170,10 @@ function Mt(e) {
|
|
|
1150
1170
|
return e.srcset;
|
|
1151
1171
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1152
1172
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1153
|
-
return console.debug("Removed given srcset"),
|
|
1173
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1154
1174
|
} else if (e.image && !e.srcset)
|
|
1155
|
-
return
|
|
1156
|
-
return
|
|
1175
|
+
return oe(d);
|
|
1176
|
+
return oe(d);
|
|
1157
1177
|
}
|
|
1158
1178
|
function n() {
|
|
1159
1179
|
var f;
|
|
@@ -1169,9 +1189,9 @@ function Mt(e) {
|
|
|
1169
1189
|
};
|
|
1170
1190
|
return e.aspectRatio ? f : void 0;
|
|
1171
1191
|
}
|
|
1172
|
-
return /* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1193
|
+
/* @__PURE__ */ P(R, { children: [
|
|
1194
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1175
1195
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1176
1196
|
/* @__PURE__ */ s(
|
|
1177
1197
|
"img",
|
|
@@ -1223,7 +1243,7 @@ function Mt(e) {
|
|
|
1223
1243
|
}` })
|
|
1224
1244
|
] });
|
|
1225
1245
|
}
|
|
1226
|
-
function
|
|
1246
|
+
function Mt(e) {
|
|
1227
1247
|
return /* @__PURE__ */ s(
|
|
1228
1248
|
"section",
|
|
1229
1249
|
{
|
|
@@ -1244,7 +1264,7 @@ function Ut(e) {
|
|
|
1244
1264
|
}
|
|
1245
1265
|
);
|
|
1246
1266
|
}
|
|
1247
|
-
const
|
|
1267
|
+
const ae = {
|
|
1248
1268
|
"@type": "@builder.io/sdk:Element",
|
|
1249
1269
|
layerName: "Accordion item title",
|
|
1250
1270
|
responsiveStyles: {
|
|
@@ -1273,7 +1293,7 @@ const re = {
|
|
|
1273
1293
|
}
|
|
1274
1294
|
}
|
|
1275
1295
|
}]
|
|
1276
|
-
},
|
|
1296
|
+
}, re = {
|
|
1277
1297
|
"@type": "@builder.io/sdk:Element",
|
|
1278
1298
|
layerName: "Accordion item detail",
|
|
1279
1299
|
responsiveStyles: {
|
|
@@ -1304,7 +1324,7 @@ const re = {
|
|
|
1304
1324
|
}
|
|
1305
1325
|
}
|
|
1306
1326
|
}]
|
|
1307
|
-
},
|
|
1327
|
+
}, Ut = {
|
|
1308
1328
|
name: "Builder:Accordion",
|
|
1309
1329
|
canHaveChildren: !0,
|
|
1310
1330
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1321,19 +1341,19 @@ const re = {
|
|
|
1321
1341
|
name: "title",
|
|
1322
1342
|
type: "uiBlocks",
|
|
1323
1343
|
hideFromUI: !0,
|
|
1324
|
-
defaultValue: [
|
|
1344
|
+
defaultValue: [ae]
|
|
1325
1345
|
}, {
|
|
1326
1346
|
name: "detail",
|
|
1327
1347
|
type: "uiBlocks",
|
|
1328
1348
|
hideFromUI: !0,
|
|
1329
|
-
defaultValue: [
|
|
1349
|
+
defaultValue: [re]
|
|
1330
1350
|
}],
|
|
1331
1351
|
defaultValue: [{
|
|
1332
|
-
title: [
|
|
1333
|
-
detail: [
|
|
1352
|
+
title: [ae],
|
|
1353
|
+
detail: [re]
|
|
1334
1354
|
}, {
|
|
1335
|
-
title: [
|
|
1336
|
-
detail: [
|
|
1355
|
+
title: [ae],
|
|
1356
|
+
detail: [re]
|
|
1337
1357
|
}],
|
|
1338
1358
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1339
1359
|
}, {
|
|
@@ -1368,8 +1388,8 @@ const re = {
|
|
|
1368
1388
|
builderComponents: !0,
|
|
1369
1389
|
builderLinkComponent: !0
|
|
1370
1390
|
}
|
|
1371
|
-
},
|
|
1372
|
-
function
|
|
1391
|
+
}, ve = (e) => e.toString();
|
|
1392
|
+
function Ht(e) {
|
|
1373
1393
|
var d;
|
|
1374
1394
|
const [t, n] = C(() => []);
|
|
1375
1395
|
function i() {
|
|
@@ -1388,7 +1408,7 @@ function qt(e) {
|
|
|
1388
1408
|
};
|
|
1389
1409
|
}
|
|
1390
1410
|
function l() {
|
|
1391
|
-
const
|
|
1411
|
+
const g = {
|
|
1392
1412
|
...{
|
|
1393
1413
|
display: "flex",
|
|
1394
1414
|
flexDirection: "column"
|
|
@@ -1397,7 +1417,7 @@ function qt(e) {
|
|
|
1397
1417
|
cursor: "pointer"
|
|
1398
1418
|
};
|
|
1399
1419
|
return Object.fromEntries(
|
|
1400
|
-
Object.entries(
|
|
1420
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1401
1421
|
);
|
|
1402
1422
|
}
|
|
1403
1423
|
function a(m) {
|
|
@@ -1414,18 +1434,18 @@ function qt(e) {
|
|
|
1414
1434
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1415
1435
|
);
|
|
1416
1436
|
if (m = p, x) {
|
|
1417
|
-
let
|
|
1437
|
+
let E = x.getBoundingClientRect();
|
|
1418
1438
|
for (; x = x && x.nextElementSibling; )
|
|
1419
1439
|
if (x) {
|
|
1420
1440
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1421
1441
|
continue;
|
|
1422
1442
|
const V = x.getBoundingClientRect();
|
|
1423
|
-
if (V.left >
|
|
1443
|
+
if (V.left > E.left) {
|
|
1424
1444
|
const A = parseInt(
|
|
1425
1445
|
x.getAttribute("data-index") || "",
|
|
1426
1446
|
10
|
|
1427
1447
|
);
|
|
1428
|
-
isNaN(A) || (
|
|
1448
|
+
isNaN(A) || (E = V, m = A);
|
|
1429
1449
|
} else
|
|
1430
1450
|
break;
|
|
1431
1451
|
}
|
|
@@ -1441,29 +1461,29 @@ function qt(e) {
|
|
|
1441
1461
|
}
|
|
1442
1462
|
};
|
|
1443
1463
|
return Object.fromEntries(
|
|
1444
|
-
Object.entries(m).filter(([
|
|
1464
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1445
1465
|
);
|
|
1446
1466
|
}
|
|
1447
1467
|
function f(m) {
|
|
1448
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1468
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1449
1469
|
}
|
|
1450
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1470
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
|
|
1451
1471
|
/* @__PURE__ */ s(
|
|
1452
1472
|
"div",
|
|
1453
1473
|
{
|
|
1454
|
-
className: a(
|
|
1474
|
+
className: a(g),
|
|
1455
1475
|
style: {
|
|
1456
1476
|
...l(),
|
|
1457
1477
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1458
|
-
order: c() !== null ?
|
|
1478
|
+
order: c() !== null ? ve(g) : ve(g + 1)
|
|
1459
1479
|
},
|
|
1460
|
-
"data-index":
|
|
1461
|
-
onClick: (p) => f(
|
|
1480
|
+
"data-index": g,
|
|
1481
|
+
onClick: (p) => f(g),
|
|
1462
1482
|
children: /* @__PURE__ */ s(
|
|
1463
|
-
|
|
1483
|
+
D,
|
|
1464
1484
|
{
|
|
1465
1485
|
blocks: m.title,
|
|
1466
|
-
path: `items.${
|
|
1486
|
+
path: `items.${g}.title`,
|
|
1467
1487
|
parent: e.builderBlock.id,
|
|
1468
1488
|
context: e.builderContext,
|
|
1469
1489
|
registeredComponents: e.builderComponents,
|
|
@@ -1472,16 +1492,16 @@ function qt(e) {
|
|
|
1472
1492
|
)
|
|
1473
1493
|
}
|
|
1474
1494
|
),
|
|
1475
|
-
t.includes(
|
|
1495
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1476
1496
|
"div",
|
|
1477
1497
|
{
|
|
1478
|
-
className: r(
|
|
1498
|
+
className: r(g),
|
|
1479
1499
|
style: u(),
|
|
1480
1500
|
children: /* @__PURE__ */ s(
|
|
1481
|
-
|
|
1501
|
+
D,
|
|
1482
1502
|
{
|
|
1483
1503
|
blocks: m.detail,
|
|
1484
|
-
path: `items.${
|
|
1504
|
+
path: `items.${g}.detail`,
|
|
1485
1505
|
parent: e.builderBlock.id,
|
|
1486
1506
|
context: e.builderContext,
|
|
1487
1507
|
registeredComponents: e.builderComponents,
|
|
@@ -1492,7 +1512,7 @@ function qt(e) {
|
|
|
1492
1512
|
) : null
|
|
1493
1513
|
] })) });
|
|
1494
1514
|
}
|
|
1495
|
-
const
|
|
1515
|
+
const qt = {
|
|
1496
1516
|
name: "Core:Button",
|
|
1497
1517
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1498
1518
|
defaultStyles: {
|
|
@@ -1526,12 +1546,9 @@ const Kt = {
|
|
|
1526
1546
|
static: !0,
|
|
1527
1547
|
noWrap: !0,
|
|
1528
1548
|
shouldReceiveBuilderProps: {
|
|
1529
|
-
builderBlock: !1,
|
|
1530
|
-
builderContext: !1,
|
|
1531
|
-
builderComponents: !1,
|
|
1532
1549
|
builderLinkComponent: !0
|
|
1533
1550
|
}
|
|
1534
|
-
},
|
|
1551
|
+
}, Kt = {
|
|
1535
1552
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1536
1553
|
name: "Columns",
|
|
1537
1554
|
isRSC: !0,
|
|
@@ -1738,19 +1755,13 @@ const Kt = {
|
|
|
1738
1755
|
builderComponents: !0,
|
|
1739
1756
|
builderLinkComponent: !0
|
|
1740
1757
|
}
|
|
1741
|
-
},
|
|
1742
|
-
shouldReceiveBuilderProps: {
|
|
1743
|
-
builderBlock: !1,
|
|
1744
|
-
builderContext: !1,
|
|
1745
|
-
builderComponents: !1,
|
|
1746
|
-
builderLinkComponent: !1
|
|
1747
|
-
},
|
|
1758
|
+
}, zt = {
|
|
1748
1759
|
name: "Fragment",
|
|
1749
1760
|
static: !0,
|
|
1750
1761
|
hidden: !0,
|
|
1751
1762
|
canHaveChildren: !0,
|
|
1752
1763
|
noWrap: !0
|
|
1753
|
-
},
|
|
1764
|
+
}, _t = {
|
|
1754
1765
|
name: "Image",
|
|
1755
1766
|
static: !0,
|
|
1756
1767
|
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",
|
|
@@ -1856,18 +1867,9 @@ const Kt = {
|
|
|
1856
1867
|
defaultValue: 0.7041
|
|
1857
1868
|
}],
|
|
1858
1869
|
shouldReceiveBuilderProps: {
|
|
1859
|
-
builderBlock: !0
|
|
1860
|
-
builderContext: !1,
|
|
1861
|
-
builderComponents: !1,
|
|
1862
|
-
builderLinkComponent: !1
|
|
1870
|
+
builderBlock: !0
|
|
1863
1871
|
}
|
|
1864
|
-
},
|
|
1865
|
-
shouldReceiveBuilderProps: {
|
|
1866
|
-
builderBlock: !1,
|
|
1867
|
-
builderContext: !1,
|
|
1868
|
-
builderComponents: !1,
|
|
1869
|
-
builderLinkComponent: !1
|
|
1870
|
-
},
|
|
1872
|
+
}, Jt = {
|
|
1871
1873
|
name: "Core:Section",
|
|
1872
1874
|
static: !0,
|
|
1873
1875
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1906,7 +1908,7 @@ const Kt = {
|
|
|
1906
1908
|
}
|
|
1907
1909
|
}
|
|
1908
1910
|
}]
|
|
1909
|
-
},
|
|
1911
|
+
}, Yt = {
|
|
1910
1912
|
name: "Slot",
|
|
1911
1913
|
isRSC: !0,
|
|
1912
1914
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1920,13 +1922,10 @@ const Kt = {
|
|
|
1920
1922
|
defaultValue: "children"
|
|
1921
1923
|
}],
|
|
1922
1924
|
shouldReceiveBuilderProps: {
|
|
1923
|
-
|
|
1924
|
-
builderContext: !0,
|
|
1925
|
-
builderComponents: !1,
|
|
1926
|
-
builderLinkComponent: !1
|
|
1925
|
+
builderContext: !0
|
|
1927
1926
|
}
|
|
1928
1927
|
};
|
|
1929
|
-
function
|
|
1928
|
+
function Gt(e) {
|
|
1930
1929
|
var t, n, i;
|
|
1931
1930
|
return /* @__PURE__ */ s(
|
|
1932
1931
|
"div",
|
|
@@ -1938,7 +1937,7 @@ function Qt(e) {
|
|
|
1938
1937
|
"builder-slot": e.name
|
|
1939
1938
|
},
|
|
1940
1939
|
children: /* @__PURE__ */ s(
|
|
1941
|
-
|
|
1940
|
+
D,
|
|
1942
1941
|
{
|
|
1943
1942
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1944
1943
|
path: `symbol.data.${e.name}`,
|
|
@@ -1949,7 +1948,7 @@ function Qt(e) {
|
|
|
1949
1948
|
}
|
|
1950
1949
|
);
|
|
1951
1950
|
}
|
|
1952
|
-
const
|
|
1951
|
+
const Qt = {
|
|
1953
1952
|
name: "Symbol",
|
|
1954
1953
|
noWrap: !0,
|
|
1955
1954
|
static: !0,
|
|
@@ -1988,7 +1987,7 @@ const Xt = {
|
|
|
1988
1987
|
builderComponents: !0,
|
|
1989
1988
|
builderLinkComponent: !0
|
|
1990
1989
|
}
|
|
1991
|
-
},
|
|
1990
|
+
}, le = {
|
|
1992
1991
|
"@type": "@builder.io/sdk:Element",
|
|
1993
1992
|
responsiveStyles: {
|
|
1994
1993
|
large: {
|
|
@@ -2010,7 +2009,7 @@ const Xt = {
|
|
|
2010
2009
|
text: "New tab"
|
|
2011
2010
|
}
|
|
2012
2011
|
}
|
|
2013
|
-
},
|
|
2012
|
+
}, se = {
|
|
2014
2013
|
"@type": "@builder.io/sdk:Element",
|
|
2015
2014
|
responsiveStyles: {
|
|
2016
2015
|
large: {
|
|
@@ -2026,7 +2025,7 @@ const Xt = {
|
|
|
2026
2025
|
text: "New tab content "
|
|
2027
2026
|
}
|
|
2028
2027
|
}
|
|
2029
|
-
},
|
|
2028
|
+
}, Xt = {
|
|
2030
2029
|
name: "Builder: Tabs",
|
|
2031
2030
|
inputs: [{
|
|
2032
2031
|
name: "tabs",
|
|
@@ -2036,16 +2035,16 @@ const Xt = {
|
|
|
2036
2035
|
name: "label",
|
|
2037
2036
|
type: "uiBlocks",
|
|
2038
2037
|
hideFromUI: !0,
|
|
2039
|
-
defaultValue: [
|
|
2038
|
+
defaultValue: [le]
|
|
2040
2039
|
}, {
|
|
2041
2040
|
name: "content",
|
|
2042
2041
|
type: "uiBlocks",
|
|
2043
2042
|
hideFromUI: !0,
|
|
2044
|
-
defaultValue: [
|
|
2043
|
+
defaultValue: [se]
|
|
2045
2044
|
}],
|
|
2046
2045
|
defaultValue: [{
|
|
2047
2046
|
label: [{
|
|
2048
|
-
...
|
|
2047
|
+
...le,
|
|
2049
2048
|
component: {
|
|
2050
2049
|
name: "Text",
|
|
2051
2050
|
options: {
|
|
@@ -2054,7 +2053,7 @@ const Xt = {
|
|
|
2054
2053
|
}
|
|
2055
2054
|
}],
|
|
2056
2055
|
content: [{
|
|
2057
|
-
...
|
|
2056
|
+
...se,
|
|
2058
2057
|
component: {
|
|
2059
2058
|
name: "Text",
|
|
2060
2059
|
options: {
|
|
@@ -2064,7 +2063,7 @@ const Xt = {
|
|
|
2064
2063
|
}]
|
|
2065
2064
|
}, {
|
|
2066
2065
|
label: [{
|
|
2067
|
-
...
|
|
2066
|
+
...le,
|
|
2068
2067
|
component: {
|
|
2069
2068
|
name: "Text",
|
|
2070
2069
|
options: {
|
|
@@ -2073,7 +2072,7 @@ const Xt = {
|
|
|
2073
2072
|
}
|
|
2074
2073
|
}],
|
|
2075
2074
|
content: [{
|
|
2076
|
-
...
|
|
2075
|
+
...se,
|
|
2077
2076
|
component: {
|
|
2078
2077
|
name: "Text",
|
|
2079
2078
|
options: {
|
|
@@ -2130,7 +2129,7 @@ const Xt = {
|
|
|
2130
2129
|
builderLinkComponent: !0
|
|
2131
2130
|
}
|
|
2132
2131
|
};
|
|
2133
|
-
function
|
|
2132
|
+
function Zt(e) {
|
|
2134
2133
|
var l;
|
|
2135
2134
|
const [t, n] = C(
|
|
2136
2135
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2141,7 +2140,7 @@ function en(e) {
|
|
|
2141
2140
|
function o(a) {
|
|
2142
2141
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2143
2142
|
}
|
|
2144
|
-
return /* @__PURE__ */
|
|
2143
|
+
return /* @__PURE__ */ P("div", { children: [
|
|
2145
2144
|
/* @__PURE__ */ s(
|
|
2146
2145
|
"div",
|
|
2147
2146
|
{
|
|
@@ -2161,7 +2160,7 @@ function en(e) {
|
|
|
2161
2160
|
},
|
|
2162
2161
|
onClick: (c) => o(r),
|
|
2163
2162
|
children: /* @__PURE__ */ s(
|
|
2164
|
-
|
|
2163
|
+
D,
|
|
2165
2164
|
{
|
|
2166
2165
|
parent: e.builderBlock.id,
|
|
2167
2166
|
path: `component.options.tabs.${r}.label`,
|
|
@@ -2177,7 +2176,7 @@ function en(e) {
|
|
|
2177
2176
|
}
|
|
2178
2177
|
),
|
|
2179
2178
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2180
|
-
|
|
2179
|
+
D,
|
|
2181
2180
|
{
|
|
2182
2181
|
parent: e.builderBlock.id,
|
|
2183
2182
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2189,12 +2188,9 @@ function en(e) {
|
|
|
2189
2188
|
) }) : null
|
|
2190
2189
|
] });
|
|
2191
2190
|
}
|
|
2192
|
-
const
|
|
2191
|
+
const en = {
|
|
2193
2192
|
shouldReceiveBuilderProps: {
|
|
2194
|
-
builderBlock: !1
|
|
2195
|
-
builderContext: !1,
|
|
2196
|
-
builderComponents: !1,
|
|
2197
|
-
builderLinkComponent: !1
|
|
2193
|
+
builderBlock: !1
|
|
2198
2194
|
},
|
|
2199
2195
|
name: "Text",
|
|
2200
2196
|
static: !0,
|
|
@@ -2214,7 +2210,7 @@ const tn = {
|
|
|
2214
2210
|
textAlign: "center"
|
|
2215
2211
|
}
|
|
2216
2212
|
};
|
|
2217
|
-
function
|
|
2213
|
+
function tn(e) {
|
|
2218
2214
|
var t;
|
|
2219
2215
|
return /* @__PURE__ */ s(
|
|
2220
2216
|
"div",
|
|
@@ -2227,13 +2223,7 @@ function nn(e) {
|
|
|
2227
2223
|
}
|
|
2228
2224
|
);
|
|
2229
2225
|
}
|
|
2230
|
-
const
|
|
2231
|
-
shouldReceiveBuilderProps: {
|
|
2232
|
-
builderBlock: !1,
|
|
2233
|
-
builderContext: !1,
|
|
2234
|
-
builderComponents: !1,
|
|
2235
|
-
builderLinkComponent: !1
|
|
2236
|
-
},
|
|
2226
|
+
const nn = {
|
|
2237
2227
|
name: "Custom Code",
|
|
2238
2228
|
static: !0,
|
|
2239
2229
|
requiredPermissions: ["editCode"],
|
|
@@ -2256,9 +2246,9 @@ const on = {
|
|
|
2256
2246
|
advanced: !0
|
|
2257
2247
|
}]
|
|
2258
2248
|
};
|
|
2259
|
-
function
|
|
2249
|
+
function on(e) {
|
|
2260
2250
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
2261
|
-
return
|
|
2251
|
+
return B(() => {
|
|
2262
2252
|
var r;
|
|
2263
2253
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
2264
2254
|
return;
|
|
@@ -2294,13 +2284,7 @@ function an(e) {
|
|
|
2294
2284
|
}
|
|
2295
2285
|
);
|
|
2296
2286
|
}
|
|
2297
|
-
const
|
|
2298
|
-
shouldReceiveBuilderProps: {
|
|
2299
|
-
builderBlock: !1,
|
|
2300
|
-
builderContext: !1,
|
|
2301
|
-
builderComponents: !1,
|
|
2302
|
-
builderLinkComponent: !1
|
|
2303
|
-
},
|
|
2287
|
+
const an = {
|
|
2304
2288
|
name: "Embed",
|
|
2305
2289
|
static: !0,
|
|
2306
2290
|
inputs: [{
|
|
@@ -2315,8 +2299,8 @@ const rn = {
|
|
|
2315
2299
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2316
2300
|
hideFromUI: !0
|
|
2317
2301
|
}]
|
|
2318
|
-
},
|
|
2319
|
-
function
|
|
2302
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2303
|
+
function sn(e) {
|
|
2320
2304
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2321
2305
|
function c() {
|
|
2322
2306
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2328,7 +2312,7 @@ function cn(e) {
|
|
|
2328
2312
|
n.push(d.src);
|
|
2329
2313
|
const m = document.createElement("script");
|
|
2330
2314
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2331
|
-
} else if (
|
|
2315
|
+
} else if (ln(d) && !o.includes(d.innerText))
|
|
2332
2316
|
try {
|
|
2333
2317
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2334
2318
|
} catch (m) {
|
|
@@ -2336,7 +2320,7 @@ function cn(e) {
|
|
|
2336
2320
|
}
|
|
2337
2321
|
}
|
|
2338
2322
|
}
|
|
2339
|
-
return
|
|
2323
|
+
return B(() => {
|
|
2340
2324
|
t.current && !a && (r(!0), c());
|
|
2341
2325
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2342
2326
|
"div",
|
|
@@ -2347,7 +2331,7 @@ function cn(e) {
|
|
|
2347
2331
|
}
|
|
2348
2332
|
);
|
|
2349
2333
|
}
|
|
2350
|
-
const
|
|
2334
|
+
const cn = {
|
|
2351
2335
|
name: "Form:Form",
|
|
2352
2336
|
// editableTags: ['builder-form-error']
|
|
2353
2337
|
defaults: {
|
|
@@ -2584,97 +2568,97 @@ const dn = {
|
|
|
2584
2568
|
builderComponents: !0,
|
|
2585
2569
|
builderLinkComponent: !0
|
|
2586
2570
|
}
|
|
2587
|
-
},
|
|
2571
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2588
2572
|
const e = process.env.NODE_ENV || "production";
|
|
2589
|
-
return
|
|
2590
|
-
},
|
|
2573
|
+
return dn.includes(e) ? e : "production";
|
|
2574
|
+
}, mn = (e, t, n) => {
|
|
2591
2575
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2592
2576
|
return i === void 0 || i === e ? n : i;
|
|
2593
2577
|
};
|
|
2594
|
-
function
|
|
2578
|
+
function fn(e) {
|
|
2595
2579
|
var d, m;
|
|
2596
2580
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2597
|
-
function c(
|
|
2581
|
+
function c(g) {
|
|
2598
2582
|
var I, x;
|
|
2599
2583
|
const p = {
|
|
2600
2584
|
...e.builderContext.rootState,
|
|
2601
|
-
...
|
|
2585
|
+
...g
|
|
2602
2586
|
};
|
|
2603
2587
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2604
2588
|
}
|
|
2605
2589
|
function u() {
|
|
2606
2590
|
return $() && e.previewState || n;
|
|
2607
2591
|
}
|
|
2608
|
-
function f(
|
|
2592
|
+
function f(g) {
|
|
2609
2593
|
var I;
|
|
2610
2594
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2611
2595
|
if (e.sendSubmissionsTo === "zapier")
|
|
2612
|
-
|
|
2596
|
+
g.preventDefault();
|
|
2613
2597
|
else if (p) {
|
|
2614
2598
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2615
|
-
|
|
2599
|
+
g.preventDefault();
|
|
2616
2600
|
return;
|
|
2617
2601
|
}
|
|
2618
|
-
|
|
2619
|
-
const x =
|
|
2602
|
+
g.preventDefault();
|
|
2603
|
+
const x = g.currentTarget || g.target, E = e.customHeaders || {};
|
|
2620
2604
|
let V;
|
|
2621
|
-
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((
|
|
2605
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2622
2606
|
let h;
|
|
2623
|
-
const y =
|
|
2624
|
-
if (
|
|
2625
|
-
if (
|
|
2626
|
-
if (
|
|
2627
|
-
return h =
|
|
2607
|
+
const y = b.name;
|
|
2608
|
+
if (b instanceof HTMLInputElement)
|
|
2609
|
+
if (b.type === "radio") {
|
|
2610
|
+
if (b.checked)
|
|
2611
|
+
return h = b.name, {
|
|
2628
2612
|
key: y,
|
|
2629
2613
|
value: h
|
|
2630
2614
|
};
|
|
2631
|
-
} else if (
|
|
2632
|
-
h =
|
|
2633
|
-
else if (
|
|
2634
|
-
const v =
|
|
2615
|
+
} else if (b.type === "checkbox")
|
|
2616
|
+
h = b.checked;
|
|
2617
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2618
|
+
const v = b.valueAsNumber;
|
|
2635
2619
|
isNaN(v) || (h = v);
|
|
2636
2620
|
} else
|
|
2637
|
-
|
|
2621
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2638
2622
|
else
|
|
2639
|
-
h =
|
|
2623
|
+
h = b.value;
|
|
2640
2624
|
return {
|
|
2641
2625
|
key: y,
|
|
2642
2626
|
value: h
|
|
2643
2627
|
};
|
|
2644
2628
|
});
|
|
2645
2629
|
let S = e.contentType;
|
|
2646
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value:
|
|
2647
|
-
(
|
|
2630
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2631
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
|
|
2648
2632
|
}), S !== "application/json")
|
|
2649
2633
|
V = A;
|
|
2650
2634
|
else {
|
|
2651
|
-
const
|
|
2635
|
+
const b = {};
|
|
2652
2636
|
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2653
|
-
|
|
2654
|
-
}), V = JSON.stringify(
|
|
2637
|
+
Ee(b, y, h);
|
|
2638
|
+
}), V = JSON.stringify(b);
|
|
2655
2639
|
}
|
|
2656
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2640
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
|
|
2657
2641
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2658
2642
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2659
2643
|
return;
|
|
2660
2644
|
i("sending");
|
|
2661
|
-
const
|
|
2645
|
+
const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2662
2646
|
e.sendSubmissionsToEmail || ""
|
|
2663
2647
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2664
2648
|
fetch(
|
|
2665
|
-
e.sendSubmissionsTo === "email" ?
|
|
2666
|
-
{ body: V, headers:
|
|
2649
|
+
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2650
|
+
{ body: V, headers: E, method: e.method || "post" }
|
|
2667
2651
|
).then(
|
|
2668
|
-
async (
|
|
2652
|
+
async (b) => {
|
|
2669
2653
|
let h;
|
|
2670
|
-
const y =
|
|
2671
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2672
|
-
let v =
|
|
2654
|
+
const y = b.headers.get("content-type");
|
|
2655
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2656
|
+
let v = mn(h, e.errorMessagePath);
|
|
2673
2657
|
v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
|
|
2674
2658
|
}
|
|
2675
|
-
if (l(h), i(
|
|
2659
|
+
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2676
2660
|
const v = new CustomEvent("submit:success", {
|
|
2677
|
-
detail: { res:
|
|
2661
|
+
detail: { res: b, body: h }
|
|
2678
2662
|
});
|
|
2679
2663
|
if (t.current) {
|
|
2680
2664
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2691,18 +2675,18 @@ function hn(e) {
|
|
|
2691
2675
|
location.href = e.successUrl;
|
|
2692
2676
|
}
|
|
2693
2677
|
},
|
|
2694
|
-
(
|
|
2678
|
+
(b) => {
|
|
2695
2679
|
const h = new CustomEvent("submit:error", {
|
|
2696
|
-
detail: { error:
|
|
2680
|
+
detail: { error: b }
|
|
2697
2681
|
});
|
|
2698
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(
|
|
2682
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
|
|
2699
2683
|
}
|
|
2700
2684
|
);
|
|
2701
2685
|
}
|
|
2702
2686
|
}
|
|
2703
|
-
return /* @__PURE__ */
|
|
2687
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
2704
2688
|
" ",
|
|
2705
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ P(
|
|
2706
2690
|
"form",
|
|
2707
2691
|
{
|
|
2708
2692
|
validate: e.validate,
|
|
@@ -2710,13 +2694,13 @@ function hn(e) {
|
|
|
2710
2694
|
action: !e.sendWithJs && e.action,
|
|
2711
2695
|
method: e.method,
|
|
2712
2696
|
name: e.name,
|
|
2713
|
-
onSubmit: (
|
|
2697
|
+
onSubmit: (g) => f(g),
|
|
2714
2698
|
...e.attributes,
|
|
2715
2699
|
children: [
|
|
2716
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((
|
|
2700
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2717
2701
|
z,
|
|
2718
2702
|
{
|
|
2719
|
-
block:
|
|
2703
|
+
block: g,
|
|
2720
2704
|
context: e.builderContext,
|
|
2721
2705
|
registeredComponents: e.builderComponents,
|
|
2722
2706
|
linkComponent: e.builderLinkComponent
|
|
@@ -2724,7 +2708,7 @@ function hn(e) {
|
|
|
2724
2708
|
`form-block-${p}`
|
|
2725
2709
|
)) }) : null,
|
|
2726
2710
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2727
|
-
|
|
2711
|
+
D,
|
|
2728
2712
|
{
|
|
2729
2713
|
path: "errorMessage",
|
|
2730
2714
|
blocks: e.errorMessage,
|
|
@@ -2732,7 +2716,7 @@ function hn(e) {
|
|
|
2732
2716
|
}
|
|
2733
2717
|
) : null,
|
|
2734
2718
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2735
|
-
|
|
2719
|
+
D,
|
|
2736
2720
|
{
|
|
2737
2721
|
path: "sendingMessage",
|
|
2738
2722
|
blocks: e.sendingMessage,
|
|
@@ -2741,7 +2725,7 @@ function hn(e) {
|
|
|
2741
2725
|
) : null,
|
|
2742
2726
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2743
2727
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2744
|
-
|
|
2728
|
+
D,
|
|
2745
2729
|
{
|
|
2746
2730
|
path: "successMessage",
|
|
2747
2731
|
blocks: e.successMessage,
|
|
@@ -2756,13 +2740,7 @@ function hn(e) {
|
|
|
2756
2740
|
" "
|
|
2757
2741
|
] });
|
|
2758
2742
|
}
|
|
2759
|
-
const
|
|
2760
|
-
shouldReceiveBuilderProps: {
|
|
2761
|
-
builderBlock: !1,
|
|
2762
|
-
builderContext: !1,
|
|
2763
|
-
builderComponents: !1,
|
|
2764
|
-
builderLinkComponent: !1
|
|
2765
|
-
},
|
|
2743
|
+
const hn = {
|
|
2766
2744
|
name: "Form:Input",
|
|
2767
2745
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2768
2746
|
inputs: [
|
|
@@ -2815,7 +2793,7 @@ const bn = {
|
|
|
2815
2793
|
}
|
|
2816
2794
|
};
|
|
2817
2795
|
function gn(e) {
|
|
2818
|
-
return /* @__PURE__ */
|
|
2796
|
+
return /* @__PURE__ */ Re(
|
|
2819
2797
|
"input",
|
|
2820
2798
|
{
|
|
2821
2799
|
...e.attributes,
|
|
@@ -2829,13 +2807,7 @@ function gn(e) {
|
|
|
2829
2807
|
}
|
|
2830
2808
|
);
|
|
2831
2809
|
}
|
|
2832
|
-
const
|
|
2833
|
-
shouldReceiveBuilderProps: {
|
|
2834
|
-
builderBlock: !1,
|
|
2835
|
-
builderContext: !1,
|
|
2836
|
-
builderComponents: !1,
|
|
2837
|
-
builderLinkComponent: !1
|
|
2838
|
-
},
|
|
2810
|
+
const bn = {
|
|
2839
2811
|
name: "Form:Select",
|
|
2840
2812
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2841
2813
|
defaultStyles: {
|
|
@@ -2878,9 +2850,9 @@ const pn = {
|
|
|
2878
2850
|
static: !0,
|
|
2879
2851
|
noWrap: !0
|
|
2880
2852
|
};
|
|
2881
|
-
function
|
|
2853
|
+
function pn(e) {
|
|
2882
2854
|
var t;
|
|
2883
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ Re(
|
|
2884
2856
|
"select",
|
|
2885
2857
|
{
|
|
2886
2858
|
...e.attributes,
|
|
@@ -2893,13 +2865,7 @@ function yn(e) {
|
|
|
2893
2865
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2894
2866
|
);
|
|
2895
2867
|
}
|
|
2896
|
-
const
|
|
2897
|
-
shouldReceiveBuilderProps: {
|
|
2898
|
-
builderBlock: !1,
|
|
2899
|
-
builderContext: !1,
|
|
2900
|
-
builderComponents: !1,
|
|
2901
|
-
builderLinkComponent: !1
|
|
2902
|
-
},
|
|
2868
|
+
const yn = {
|
|
2903
2869
|
name: "Form:SubmitButton",
|
|
2904
2870
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2905
2871
|
defaultStyles: {
|
|
@@ -2925,16 +2891,10 @@ const xn = {
|
|
|
2925
2891
|
// TODO: defaultChildren
|
|
2926
2892
|
// canHaveChildren: true,
|
|
2927
2893
|
};
|
|
2928
|
-
function
|
|
2894
|
+
function xn(e) {
|
|
2929
2895
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2930
2896
|
}
|
|
2931
|
-
const
|
|
2932
|
-
shouldReceiveBuilderProps: {
|
|
2933
|
-
builderBlock: !1,
|
|
2934
|
-
builderContext: !1,
|
|
2935
|
-
builderComponents: !1,
|
|
2936
|
-
builderLinkComponent: !1
|
|
2937
|
-
},
|
|
2897
|
+
const vn = {
|
|
2938
2898
|
name: "Form:TextArea",
|
|
2939
2899
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2940
2900
|
inputs: [{
|
|
@@ -2971,7 +2931,7 @@ const Sn = {
|
|
|
2971
2931
|
static: !0,
|
|
2972
2932
|
noWrap: !0
|
|
2973
2933
|
};
|
|
2974
|
-
function
|
|
2934
|
+
function Sn(e) {
|
|
2975
2935
|
return /* @__PURE__ */ s(
|
|
2976
2936
|
"textarea",
|
|
2977
2937
|
{
|
|
@@ -2984,13 +2944,7 @@ function kn(e) {
|
|
|
2984
2944
|
}
|
|
2985
2945
|
);
|
|
2986
2946
|
}
|
|
2987
|
-
const
|
|
2988
|
-
shouldReceiveBuilderProps: {
|
|
2989
|
-
builderBlock: !1,
|
|
2990
|
-
builderContext: !1,
|
|
2991
|
-
builderComponents: !1,
|
|
2992
|
-
builderLinkComponent: !1
|
|
2993
|
-
},
|
|
2947
|
+
const kn = {
|
|
2994
2948
|
// friendlyName?
|
|
2995
2949
|
name: "Raw:Img",
|
|
2996
2950
|
hideFromInsertMenu: !0,
|
|
@@ -3005,7 +2959,7 @@ const Cn = {
|
|
|
3005
2959
|
noWrap: !0,
|
|
3006
2960
|
static: !0
|
|
3007
2961
|
};
|
|
3008
|
-
function
|
|
2962
|
+
function Cn(e) {
|
|
3009
2963
|
return /* @__PURE__ */ s(
|
|
3010
2964
|
"img",
|
|
3011
2965
|
{
|
|
@@ -3020,7 +2974,7 @@ function Tn(e) {
|
|
|
3020
2974
|
$() && e.imgSrc || "default-key"
|
|
3021
2975
|
);
|
|
3022
2976
|
}
|
|
3023
|
-
const
|
|
2977
|
+
const Tn = {
|
|
3024
2978
|
name: "Video",
|
|
3025
2979
|
canHaveChildren: !0,
|
|
3026
2980
|
defaultStyles: {
|
|
@@ -3102,13 +3056,10 @@ const In = {
|
|
|
3102
3056
|
advanced: !0
|
|
3103
3057
|
}],
|
|
3104
3058
|
shouldReceiveBuilderProps: {
|
|
3105
|
-
builderBlock: !0
|
|
3106
|
-
builderContext: !1,
|
|
3107
|
-
builderComponents: !1,
|
|
3108
|
-
builderLinkComponent: !1
|
|
3059
|
+
builderBlock: !0
|
|
3109
3060
|
}
|
|
3110
3061
|
};
|
|
3111
|
-
function
|
|
3062
|
+
function In(e) {
|
|
3112
3063
|
var i, o, l, a, r, c, u;
|
|
3113
3064
|
function t() {
|
|
3114
3065
|
return {
|
|
@@ -3134,7 +3085,7 @@ function wn(e) {
|
|
|
3134
3085
|
...t()
|
|
3135
3086
|
};
|
|
3136
3087
|
}
|
|
3137
|
-
return /* @__PURE__ */
|
|
3088
|
+
return /* @__PURE__ */ P(
|
|
3138
3089
|
"div",
|
|
3139
3090
|
{
|
|
3140
3091
|
style: {
|
|
@@ -3209,64 +3160,64 @@ function wn(e) {
|
|
|
3209
3160
|
}
|
|
3210
3161
|
);
|
|
3211
3162
|
}
|
|
3212
|
-
const
|
|
3213
|
-
component:
|
|
3214
|
-
...
|
|
3163
|
+
const wn = () => [{
|
|
3164
|
+
component: on,
|
|
3165
|
+
...nn
|
|
3215
3166
|
}, {
|
|
3216
|
-
component:
|
|
3217
|
-
...
|
|
3167
|
+
component: sn,
|
|
3168
|
+
...an
|
|
3218
3169
|
}, {
|
|
3219
|
-
component:
|
|
3220
|
-
...
|
|
3170
|
+
component: fn,
|
|
3171
|
+
...cn
|
|
3221
3172
|
}, {
|
|
3222
3173
|
component: gn,
|
|
3223
|
-
...
|
|
3174
|
+
...hn
|
|
3224
3175
|
}, {
|
|
3225
|
-
component:
|
|
3226
|
-
...
|
|
3176
|
+
component: xn,
|
|
3177
|
+
...yn
|
|
3227
3178
|
}, {
|
|
3228
|
-
component:
|
|
3229
|
-
...
|
|
3179
|
+
component: pn,
|
|
3180
|
+
...bn
|
|
3230
3181
|
}, {
|
|
3231
|
-
component:
|
|
3232
|
-
...
|
|
3182
|
+
component: Sn,
|
|
3183
|
+
...vn
|
|
3233
3184
|
}, {
|
|
3234
|
-
component:
|
|
3235
|
-
...
|
|
3185
|
+
component: Cn,
|
|
3186
|
+
...kn
|
|
3236
3187
|
}, {
|
|
3237
|
-
component:
|
|
3238
|
-
...
|
|
3239
|
-
}],
|
|
3240
|
-
component:
|
|
3188
|
+
component: In,
|
|
3189
|
+
...Tn
|
|
3190
|
+
}], Se = () => [{
|
|
3191
|
+
component: ot,
|
|
3192
|
+
...qt
|
|
3193
|
+
}, {
|
|
3194
|
+
component: $t,
|
|
3241
3195
|
...Kt
|
|
3242
3196
|
}, {
|
|
3243
|
-
component:
|
|
3197
|
+
component: Dt,
|
|
3244
3198
|
...zt
|
|
3245
3199
|
}, {
|
|
3246
|
-
component:
|
|
3200
|
+
component: jt,
|
|
3247
3201
|
..._t
|
|
3248
3202
|
}, {
|
|
3249
3203
|
component: Mt,
|
|
3250
3204
|
...Jt
|
|
3251
3205
|
}, {
|
|
3252
|
-
component:
|
|
3206
|
+
component: Gt,
|
|
3253
3207
|
...Yt
|
|
3254
3208
|
}, {
|
|
3255
|
-
component:
|
|
3256
|
-
...
|
|
3257
|
-
}, {
|
|
3258
|
-
component: Gn,
|
|
3259
|
-
...Xt
|
|
3209
|
+
component: Yn,
|
|
3210
|
+
...Qt
|
|
3260
3211
|
}, {
|
|
3261
|
-
component:
|
|
3262
|
-
...
|
|
3212
|
+
component: tn,
|
|
3213
|
+
...en
|
|
3263
3214
|
}, {
|
|
3264
|
-
component:
|
|
3265
|
-
...
|
|
3215
|
+
component: Zt,
|
|
3216
|
+
...Xt
|
|
3266
3217
|
}, {
|
|
3267
|
-
component:
|
|
3268
|
-
...
|
|
3269
|
-
}, ...
|
|
3218
|
+
component: Ht,
|
|
3219
|
+
...Ut
|
|
3220
|
+
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3270
3221
|
function getAndSetVariantId() {
|
|
3271
3222
|
function setCookie(name, value, days) {
|
|
3272
3223
|
let expires = '';
|
|
@@ -3322,7 +3273,7 @@ const Rn = () => [{
|
|
|
3322
3273
|
}).join('');
|
|
3323
3274
|
styleEl.innerHTML = newStyleStr;
|
|
3324
3275
|
}
|
|
3325
|
-
}`,
|
|
3276
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3326
3277
|
if (!navigator.cookieEnabled) {
|
|
3327
3278
|
return;
|
|
3328
3279
|
}
|
|
@@ -3356,38 +3307,39 @@ const Rn = () => [{
|
|
|
3356
3307
|
thisScriptEl?.remove();
|
|
3357
3308
|
}
|
|
3358
3309
|
return;
|
|
3359
|
-
}`,
|
|
3310
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3360
3311
|
...t,
|
|
3361
3312
|
testVariationId: t.id,
|
|
3362
3313
|
id: e == null ? void 0 : e.id
|
|
3363
|
-
})),
|
|
3314
|
+
})), Bn = ({
|
|
3364
3315
|
canTrack: e,
|
|
3365
3316
|
content: t
|
|
3366
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
3367
|
-
window.${
|
|
3368
|
-
window.${
|
|
3369
|
-
`,
|
|
3370
|
-
window.${
|
|
3371
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3372
|
-
)`,
|
|
3317
|
+
}) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(K), Vn = () => `
|
|
3318
|
+
window.${Oe} = ${Rn}
|
|
3319
|
+
window.${je} = ${En}
|
|
3320
|
+
`, An = (e, t) => `
|
|
3321
|
+
window.${Oe}(
|
|
3322
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3323
|
+
)`, Nn = ({
|
|
3373
3324
|
contentId: e,
|
|
3374
3325
|
variationId: t
|
|
3375
|
-
}) => `window.${
|
|
3376
|
-
"${t}", "${e}", ${
|
|
3326
|
+
}) => `window.${je}(
|
|
3327
|
+
"${t}", "${e}", ${Me}
|
|
3377
3328
|
)`;
|
|
3378
|
-
function
|
|
3329
|
+
function ce(e) {
|
|
3379
3330
|
return /* @__PURE__ */ s(
|
|
3380
3331
|
"script",
|
|
3381
3332
|
{
|
|
3382
3333
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3383
|
-
"data-id": e.id
|
|
3334
|
+
"data-id": e.id,
|
|
3335
|
+
nonce: e.nonce || ""
|
|
3384
3336
|
}
|
|
3385
3337
|
);
|
|
3386
3338
|
}
|
|
3387
|
-
function
|
|
3339
|
+
function ke(e) {
|
|
3388
3340
|
return Math.round(e * 1e3) / 1e3;
|
|
3389
3341
|
}
|
|
3390
|
-
const
|
|
3342
|
+
const Wn = (e, t, n = !0) => {
|
|
3391
3343
|
if (!(e instanceof HTMLElement))
|
|
3392
3344
|
return null;
|
|
3393
3345
|
let i = n ? e : e.parentElement;
|
|
@@ -3398,28 +3350,28 @@ const Fn = (e, t, n = !0) => {
|
|
|
3398
3350
|
return i;
|
|
3399
3351
|
} while (i = i.parentElement);
|
|
3400
3352
|
return null;
|
|
3401
|
-
},
|
|
3353
|
+
}, Fn = (e) => Wn(e, (t) => {
|
|
3402
3354
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3403
3355
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3404
|
-
}),
|
|
3356
|
+
}), Ce = ({
|
|
3405
3357
|
event: e,
|
|
3406
3358
|
target: t
|
|
3407
3359
|
}) => {
|
|
3408
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3360
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
|
|
3409
3361
|
return {
|
|
3410
3362
|
x: l,
|
|
3411
3363
|
y: a
|
|
3412
3364
|
};
|
|
3413
|
-
},
|
|
3414
|
-
const t = e.target, n = t &&
|
|
3365
|
+
}, $n = (e) => {
|
|
3366
|
+
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3415
3367
|
return {
|
|
3416
3368
|
targetBuilderElement: i || void 0,
|
|
3417
3369
|
metadata: {
|
|
3418
|
-
targetOffset: t ?
|
|
3370
|
+
targetOffset: t ? Ce({
|
|
3419
3371
|
event: e,
|
|
3420
3372
|
target: t
|
|
3421
3373
|
}) : void 0,
|
|
3422
|
-
builderTargetOffset: n ?
|
|
3374
|
+
builderTargetOffset: n ? Ce({
|
|
3423
3375
|
event: e,
|
|
3424
3376
|
target: n
|
|
3425
3377
|
}) : void 0,
|
|
@@ -3452,15 +3404,15 @@ font-weight: ${r};
|
|
|
3452
3404
|
`.trim());
|
|
3453
3405
|
}
|
|
3454
3406
|
return o;
|
|
3455
|
-
},
|
|
3407
|
+
}, Ln = ({
|
|
3456
3408
|
customFonts: e
|
|
3457
3409
|
}) => {
|
|
3458
3410
|
var t;
|
|
3459
3411
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3460
|
-
},
|
|
3412
|
+
}, On = ({
|
|
3461
3413
|
cssCode: e,
|
|
3462
3414
|
contentId: t
|
|
3463
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3415
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
|
|
3464
3416
|
.builder-button {
|
|
3465
3417
|
all: unset;
|
|
3466
3418
|
}
|
|
@@ -3477,9 +3429,9 @@ font-weight: ${r};
|
|
|
3477
3429
|
text-align: inherit;
|
|
3478
3430
|
font-family: inherit;
|
|
3479
3431
|
}
|
|
3480
|
-
`,
|
|
3481
|
-
function
|
|
3482
|
-
var V, A, O, S, w,
|
|
3432
|
+
`, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
|
|
3433
|
+
function Hn(e) {
|
|
3434
|
+
var V, A, O, S, w, N, b;
|
|
3483
3435
|
const t = ee(null);
|
|
3484
3436
|
function n(h) {
|
|
3485
3437
|
var v, k;
|
|
@@ -3493,7 +3445,7 @@ function qn(e) {
|
|
|
3493
3445
|
}));
|
|
3494
3446
|
}
|
|
3495
3447
|
function i(h) {
|
|
3496
|
-
var v, k, T,
|
|
3448
|
+
var v, k, T, W, j;
|
|
3497
3449
|
const y = {
|
|
3498
3450
|
...e.builderContextSignal.content,
|
|
3499
3451
|
...h,
|
|
@@ -3504,7 +3456,7 @@ function qn(e) {
|
|
|
3504
3456
|
meta: {
|
|
3505
3457
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3506
3458
|
...h == null ? void 0 : h.meta,
|
|
3507
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (
|
|
3459
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3508
3460
|
}
|
|
3509
3461
|
};
|
|
3510
3462
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3522,7 +3474,7 @@ function qn(e) {
|
|
|
3522
3474
|
() => e.contentWrapper || "div"
|
|
3523
3475
|
);
|
|
3524
3476
|
function r(h) {
|
|
3525
|
-
return
|
|
3477
|
+
return Ye({
|
|
3526
3478
|
model: e.model,
|
|
3527
3479
|
trustedHosts: e.trustedHosts,
|
|
3528
3480
|
callbacks: {
|
|
@@ -3536,7 +3488,7 @@ function qn(e) {
|
|
|
3536
3488
|
});
|
|
3537
3489
|
},
|
|
3538
3490
|
animation: (y) => {
|
|
3539
|
-
|
|
3491
|
+
Ne(y);
|
|
3540
3492
|
},
|
|
3541
3493
|
contentUpdate: (y) => {
|
|
3542
3494
|
i(y);
|
|
@@ -3559,35 +3511,35 @@ function qn(e) {
|
|
|
3559
3511
|
enableCache: !1
|
|
3560
3512
|
});
|
|
3561
3513
|
}
|
|
3562
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3514
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3563
3515
|
function I(h) {
|
|
3564
3516
|
var y, v;
|
|
3565
3517
|
if (e.builderContextSignal.content) {
|
|
3566
3518
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3567
|
-
|
|
3519
|
+
he({
|
|
3568
3520
|
type: "click",
|
|
3569
3521
|
canTrack: Q(e.canTrack),
|
|
3570
3522
|
contentId: T,
|
|
3571
3523
|
apiKey: e.apiKey,
|
|
3572
3524
|
variationId: k !== T ? k : void 0,
|
|
3573
|
-
|
|
3574
|
-
unique: !
|
|
3525
|
+
...$n(h),
|
|
3526
|
+
unique: !g
|
|
3575
3527
|
});
|
|
3576
3528
|
}
|
|
3577
|
-
|
|
3529
|
+
g || p(!0);
|
|
3578
3530
|
}
|
|
3579
3531
|
function x() {
|
|
3580
3532
|
var y, v, k;
|
|
3581
3533
|
const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3582
|
-
Object.entries(h).forEach(([T,
|
|
3583
|
-
if (!
|
|
3534
|
+
Object.entries(h).forEach(([T, W]) => {
|
|
3535
|
+
if (!W || d[T] || u[T] && !$())
|
|
3584
3536
|
return;
|
|
3585
3537
|
d[T] = !0;
|
|
3586
|
-
const j =
|
|
3538
|
+
const j = W.replace(
|
|
3587
3539
|
/{{([^}]+)}}/g,
|
|
3588
|
-
(F,
|
|
3540
|
+
(F, Ue) => String(
|
|
3589
3541
|
q({
|
|
3590
|
-
code:
|
|
3542
|
+
code: Ue,
|
|
3591
3543
|
context: e.context || {},
|
|
3592
3544
|
localState: void 0,
|
|
3593
3545
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3596,24 +3548,24 @@ function qn(e) {
|
|
|
3596
3548
|
})
|
|
3597
3549
|
)
|
|
3598
3550
|
);
|
|
3599
|
-
|
|
3551
|
+
Ge(j).then((F) => F.json()).then((F) => {
|
|
3600
3552
|
n({
|
|
3601
3553
|
[T]: F
|
|
3602
3554
|
}), u[T] = !0;
|
|
3603
3555
|
}).catch((F) => {
|
|
3604
|
-
console.error("error fetching dynamic data",
|
|
3556
|
+
console.error("error fetching dynamic data", W, F);
|
|
3605
3557
|
}).finally(() => {
|
|
3606
3558
|
d[T] = !1;
|
|
3607
3559
|
});
|
|
3608
3560
|
});
|
|
3609
3561
|
}
|
|
3610
|
-
function
|
|
3562
|
+
function E() {
|
|
3611
3563
|
$() && window.dispatchEvent(
|
|
3612
3564
|
new CustomEvent(
|
|
3613
3565
|
"builder:component:stateChange",
|
|
3614
3566
|
{
|
|
3615
3567
|
detail: {
|
|
3616
|
-
state:
|
|
3568
|
+
state: de(e.builderContextSignal.rootState),
|
|
3617
3569
|
ref: {
|
|
3618
3570
|
name: e.model
|
|
3619
3571
|
}
|
|
@@ -3622,10 +3574,10 @@ function qn(e) {
|
|
|
3622
3574
|
)
|
|
3623
3575
|
);
|
|
3624
3576
|
}
|
|
3625
|
-
return
|
|
3577
|
+
return B(() => {
|
|
3626
3578
|
var h, y;
|
|
3627
3579
|
if (G()) {
|
|
3628
|
-
if ($() && (window.addEventListener("message", r),
|
|
3580
|
+
if ($() && (window.addEventListener("message", r), Ke(), ze({
|
|
3629
3581
|
...e.locale ? {
|
|
3630
3582
|
locale: e.locale
|
|
3631
3583
|
} : {},
|
|
@@ -3638,27 +3590,27 @@ function qn(e) {
|
|
|
3638
3590
|
}), Object.values(
|
|
3639
3591
|
e.builderContextSignal.componentInfos
|
|
3640
3592
|
).forEach((k) => {
|
|
3641
|
-
var
|
|
3642
|
-
const T =
|
|
3643
|
-
(
|
|
3593
|
+
var W;
|
|
3594
|
+
const T = _e(k);
|
|
3595
|
+
(W = window.parent) == null || W.postMessage(T, "*");
|
|
3644
3596
|
}), window.addEventListener(
|
|
3645
3597
|
"builder:component:stateChangeListenerActivated",
|
|
3646
|
-
|
|
3598
|
+
E
|
|
3647
3599
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3648
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
3649
|
-
|
|
3600
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
|
|
3601
|
+
he({
|
|
3650
3602
|
type: "impression",
|
|
3651
3603
|
canTrack: !0,
|
|
3652
3604
|
contentId: T,
|
|
3653
|
-
apiKey:
|
|
3605
|
+
apiKey: W,
|
|
3654
3606
|
variationId: k !== T ? k : void 0
|
|
3655
3607
|
});
|
|
3656
3608
|
}
|
|
3657
|
-
if (
|
|
3658
|
-
const k = new URL(location.href).searchParams, T = k.get("builder.preview"),
|
|
3609
|
+
if (Je() && !$()) {
|
|
3610
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
|
|
3659
3611
|
`builder.overrides.${T}`
|
|
3660
3612
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3661
|
-
T === e.model && j === e.apiKey && (!e.content ||
|
|
3613
|
+
T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
|
|
3662
3614
|
model: e.model,
|
|
3663
3615
|
apiKey: e.apiKey,
|
|
3664
3616
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3667,30 +3619,30 @@ function qn(e) {
|
|
|
3667
3619
|
});
|
|
3668
3620
|
}
|
|
3669
3621
|
}
|
|
3670
|
-
}, []),
|
|
3622
|
+
}, []), B(() => {
|
|
3671
3623
|
e.apiKey || Z.error(
|
|
3672
3624
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3673
|
-
), c(), x(),
|
|
3674
|
-
}, []),
|
|
3625
|
+
), c(), x(), E();
|
|
3626
|
+
}, []), B(() => {
|
|
3675
3627
|
e.content && i(e.content);
|
|
3676
|
-
}, [e.content]),
|
|
3628
|
+
}, [e.content]), B(() => {
|
|
3677
3629
|
c();
|
|
3678
|
-
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]),
|
|
3630
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3679
3631
|
x();
|
|
3680
|
-
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]),
|
|
3681
|
-
|
|
3682
|
-
}, [e.builderContextSignal.rootState]),
|
|
3632
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
|
|
3633
|
+
E();
|
|
3634
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3683
3635
|
e.data && n(e.data);
|
|
3684
|
-
}, [e.data]),
|
|
3636
|
+
}, [e.data]), B(() => {
|
|
3685
3637
|
e.locale && n({
|
|
3686
3638
|
locale: e.locale
|
|
3687
3639
|
});
|
|
3688
|
-
}, [e.locale]),
|
|
3640
|
+
}, [e.locale]), B(() => () => {
|
|
3689
3641
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3690
3642
|
"builder:component:stateChangeListenerActivated",
|
|
3691
|
-
|
|
3643
|
+
E
|
|
3692
3644
|
));
|
|
3693
|
-
}, []), /* @__PURE__ */ s(
|
|
3645
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3694
3646
|
l,
|
|
3695
3647
|
{
|
|
3696
3648
|
ref: t,
|
|
@@ -3699,29 +3651,36 @@ function qn(e) {
|
|
|
3699
3651
|
"builder-model": e.model,
|
|
3700
3652
|
...o(),
|
|
3701
3653
|
...e.contentWrapperProps,
|
|
3702
|
-
className:
|
|
3703
|
-
((
|
|
3654
|
+
className: Un(
|
|
3655
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3704
3656
|
),
|
|
3705
3657
|
children: e.children
|
|
3706
3658
|
}
|
|
3707
3659
|
) : null });
|
|
3708
3660
|
}
|
|
3709
|
-
function
|
|
3661
|
+
function qn(e) {
|
|
3710
3662
|
const [t, n] = C(
|
|
3711
3663
|
() => `
|
|
3712
|
-
${
|
|
3664
|
+
${On({
|
|
3713
3665
|
cssCode: e.cssCode,
|
|
3714
3666
|
contentId: e.contentId
|
|
3715
3667
|
})}
|
|
3716
|
-
${
|
|
3668
|
+
${Ln({
|
|
3717
3669
|
customFonts: e.customFonts
|
|
3718
3670
|
})}
|
|
3719
|
-
${
|
|
3671
|
+
${Mn(e.isNestedRender)}
|
|
3720
3672
|
`.trim()
|
|
3721
3673
|
);
|
|
3722
|
-
return /* @__PURE__ */ s(
|
|
3674
|
+
return /* @__PURE__ */ s(
|
|
3675
|
+
ne,
|
|
3676
|
+
{
|
|
3677
|
+
id: "builderio-content",
|
|
3678
|
+
styles: t,
|
|
3679
|
+
nonce: e.nonce
|
|
3680
|
+
}
|
|
3681
|
+
);
|
|
3723
3682
|
}
|
|
3724
|
-
const
|
|
3683
|
+
const Kn = ({
|
|
3725
3684
|
content: e,
|
|
3726
3685
|
data: t,
|
|
3727
3686
|
locale: n
|
|
@@ -3738,7 +3697,7 @@ const zn = ({
|
|
|
3738
3697
|
locale: n
|
|
3739
3698
|
} : {}
|
|
3740
3699
|
};
|
|
3741
|
-
},
|
|
3700
|
+
}, zn = ({
|
|
3742
3701
|
content: e,
|
|
3743
3702
|
data: t
|
|
3744
3703
|
}) => e ? {
|
|
@@ -3749,12 +3708,12 @@ const zn = ({
|
|
|
3749
3708
|
},
|
|
3750
3709
|
meta: e == null ? void 0 : e.meta
|
|
3751
3710
|
} : void 0;
|
|
3752
|
-
function
|
|
3753
|
-
var c, u, f, d, m,
|
|
3711
|
+
function Te(e) {
|
|
3712
|
+
var c, u, f, d, m, g, p;
|
|
3754
3713
|
const [t, n] = C(
|
|
3755
3714
|
() => {
|
|
3756
3715
|
var I, x;
|
|
3757
|
-
return
|
|
3716
|
+
return Nn({
|
|
3758
3717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3759
3718
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3760
3719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3770,25 +3729,25 @@ function Ie(e) {
|
|
|
3770
3729
|
}
|
|
3771
3730
|
const [o, l] = C(
|
|
3772
3731
|
() => [
|
|
3773
|
-
...
|
|
3732
|
+
...Se(),
|
|
3774
3733
|
...e.customComponents || []
|
|
3775
3734
|
].reduce(
|
|
3776
|
-
(I, { component: x, ...
|
|
3735
|
+
(I, { component: x, ...E }) => ({
|
|
3777
3736
|
...I,
|
|
3778
|
-
[
|
|
3737
|
+
[E.name]: {
|
|
3779
3738
|
component: x,
|
|
3780
|
-
...ge(
|
|
3739
|
+
...ge(E)
|
|
3781
3740
|
}
|
|
3782
3741
|
}),
|
|
3783
3742
|
{}
|
|
3784
3743
|
)
|
|
3785
3744
|
), [a, r] = C(() => ({
|
|
3786
|
-
content:
|
|
3745
|
+
content: zn({
|
|
3787
3746
|
content: e.content,
|
|
3788
3747
|
data: e.data
|
|
3789
3748
|
}),
|
|
3790
3749
|
localState: void 0,
|
|
3791
|
-
rootState:
|
|
3750
|
+
rootState: Kn({
|
|
3792
3751
|
content: e.content,
|
|
3793
3752
|
data: e.data,
|
|
3794
3753
|
locale: e.locale
|
|
@@ -3799,28 +3758,30 @@ function Ie(e) {
|
|
|
3799
3758
|
apiKey: e.apiKey,
|
|
3800
3759
|
apiVersion: e.apiVersion,
|
|
3801
3760
|
componentInfos: [
|
|
3802
|
-
...
|
|
3761
|
+
...Se(),
|
|
3803
3762
|
...e.customComponents || []
|
|
3804
3763
|
].reduce(
|
|
3805
|
-
(I, { component: x, ...
|
|
3764
|
+
(I, { component: x, ...E }) => ({
|
|
3806
3765
|
...I,
|
|
3807
|
-
[
|
|
3766
|
+
[E.name]: ge(E)
|
|
3808
3767
|
}),
|
|
3809
3768
|
{}
|
|
3810
3769
|
),
|
|
3811
3770
|
inheritedStyles: {},
|
|
3812
3771
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
3813
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3772
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3773
|
+
nonce: e.nonce || ""
|
|
3814
3774
|
}));
|
|
3815
3775
|
return /* @__PURE__ */ s(
|
|
3816
|
-
|
|
3776
|
+
Be.Provider,
|
|
3817
3777
|
{
|
|
3818
3778
|
value: {
|
|
3819
3779
|
registeredComponents: o
|
|
3820
3780
|
},
|
|
3821
|
-
children: /* @__PURE__ */
|
|
3822
|
-
|
|
3781
|
+
children: /* @__PURE__ */ P(
|
|
3782
|
+
Hn,
|
|
3823
3783
|
{
|
|
3784
|
+
nonce: e.nonce,
|
|
3824
3785
|
content: e.content,
|
|
3825
3786
|
data: e.data,
|
|
3826
3787
|
model: e.model,
|
|
@@ -3837,15 +3798,17 @@ function Ie(e) {
|
|
|
3837
3798
|
setBuilderContextSignal: r,
|
|
3838
3799
|
children: [
|
|
3839
3800
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3840
|
-
|
|
3801
|
+
ce,
|
|
3841
3802
|
{
|
|
3842
3803
|
id: "builderio-variant-visibility",
|
|
3843
|
-
scriptStr: t
|
|
3804
|
+
scriptStr: t,
|
|
3805
|
+
nonce: e.nonce || ""
|
|
3844
3806
|
}
|
|
3845
3807
|
) : null,
|
|
3846
3808
|
/* @__PURE__ */ s(
|
|
3847
|
-
|
|
3809
|
+
qn,
|
|
3848
3810
|
{
|
|
3811
|
+
nonce: e.nonce || "",
|
|
3849
3812
|
isNestedRender: e.isNestedRender,
|
|
3850
3813
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3851
3814
|
cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
|
|
@@ -3853,9 +3816,9 @@ function Ie(e) {
|
|
|
3853
3816
|
}
|
|
3854
3817
|
),
|
|
3855
3818
|
/* @__PURE__ */ s(
|
|
3856
|
-
|
|
3819
|
+
D,
|
|
3857
3820
|
{
|
|
3858
|
-
blocks: (p = (
|
|
3821
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3859
3822
|
context: a,
|
|
3860
3823
|
registeredComponents: o,
|
|
3861
3824
|
linkComponent: e.linkComponent
|
|
@@ -3867,17 +3830,17 @@ function Ie(e) {
|
|
|
3867
3830
|
}
|
|
3868
3831
|
);
|
|
3869
3832
|
}
|
|
3870
|
-
function
|
|
3833
|
+
function _n(e) {
|
|
3871
3834
|
var a;
|
|
3872
3835
|
const [t, n] = C(
|
|
3873
|
-
() =>
|
|
3836
|
+
() => Bn({
|
|
3874
3837
|
canTrack: Q(e.canTrack),
|
|
3875
3838
|
content: e.content
|
|
3876
3839
|
})
|
|
3877
3840
|
);
|
|
3878
3841
|
function i() {
|
|
3879
3842
|
var r;
|
|
3880
|
-
return
|
|
3843
|
+
return An(
|
|
3881
3844
|
J(e.content).map((c) => ({
|
|
3882
3845
|
id: c.testVariationId,
|
|
3883
3846
|
testRatio: c.testRatio
|
|
@@ -3893,40 +3856,44 @@ function Jn(e) {
|
|
|
3893
3856
|
return t ? {
|
|
3894
3857
|
...e.content,
|
|
3895
3858
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3896
|
-
} :
|
|
3859
|
+
} : Qe({
|
|
3897
3860
|
item: e.content,
|
|
3898
3861
|
canTrack: Q(e.canTrack)
|
|
3899
3862
|
});
|
|
3900
3863
|
}
|
|
3901
|
-
return
|
|
3902
|
-
}, []),
|
|
3903
|
-
}), /* @__PURE__ */
|
|
3864
|
+
return B(() => {
|
|
3865
|
+
}, []), B(() => {
|
|
3866
|
+
}), /* @__PURE__ */ P(R, { children: [
|
|
3904
3867
|
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
|
|
3905
|
-
|
|
3868
|
+
ce,
|
|
3906
3869
|
{
|
|
3907
3870
|
id: "builderio-init-variants-fns",
|
|
3908
|
-
scriptStr:
|
|
3871
|
+
scriptStr: Vn(),
|
|
3872
|
+
nonce: e.nonce || ""
|
|
3909
3873
|
}
|
|
3910
3874
|
) : null,
|
|
3911
|
-
t ? /* @__PURE__ */
|
|
3875
|
+
t ? /* @__PURE__ */ P(R, { children: [
|
|
3912
3876
|
/* @__PURE__ */ s(
|
|
3913
|
-
|
|
3877
|
+
ne,
|
|
3914
3878
|
{
|
|
3915
3879
|
id: "builderio-variants",
|
|
3916
|
-
styles: o()
|
|
3880
|
+
styles: o(),
|
|
3881
|
+
nonce: e.nonce || ""
|
|
3917
3882
|
}
|
|
3918
3883
|
),
|
|
3919
3884
|
/* @__PURE__ */ s(
|
|
3920
|
-
|
|
3885
|
+
ce,
|
|
3921
3886
|
{
|
|
3922
3887
|
id: "builderio-variants-visibility",
|
|
3923
|
-
scriptStr: i()
|
|
3888
|
+
scriptStr: i(),
|
|
3889
|
+
nonce: e.nonce || ""
|
|
3924
3890
|
}
|
|
3925
3891
|
),
|
|
3926
3892
|
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3927
|
-
|
|
3893
|
+
Te,
|
|
3928
3894
|
{
|
|
3929
3895
|
isNestedRender: e.isNestedRender,
|
|
3896
|
+
nonce: e.nonce,
|
|
3930
3897
|
content: r,
|
|
3931
3898
|
showContent: !1,
|
|
3932
3899
|
model: e.model,
|
|
@@ -3950,8 +3917,9 @@ function Jn(e) {
|
|
|
3950
3917
|
))
|
|
3951
3918
|
] }) : null,
|
|
3952
3919
|
/* @__PURE__ */ s(
|
|
3953
|
-
|
|
3920
|
+
Te,
|
|
3954
3921
|
{
|
|
3922
|
+
nonce: e.nonce,
|
|
3955
3923
|
isNestedRender: e.isNestedRender,
|
|
3956
3924
|
content: l(),
|
|
3957
3925
|
showContent: !0,
|
|
@@ -3975,13 +3943,13 @@ function Jn(e) {
|
|
|
3975
3943
|
)
|
|
3976
3944
|
] });
|
|
3977
3945
|
}
|
|
3978
|
-
const
|
|
3946
|
+
const Jn = async ({
|
|
3979
3947
|
builderContextValue: e,
|
|
3980
3948
|
symbol: t
|
|
3981
3949
|
}) => {
|
|
3982
3950
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3983
3951
|
(e != null && e.apiKey))
|
|
3984
|
-
return
|
|
3952
|
+
return Ie({
|
|
3985
3953
|
model: t.model,
|
|
3986
3954
|
apiKey: e.apiKey,
|
|
3987
3955
|
apiVersion: e.apiVersion,
|
|
@@ -3994,7 +3962,7 @@ const Yn = async ({
|
|
|
3994
3962
|
Z.error("Could not fetch symbol content: ", n);
|
|
3995
3963
|
});
|
|
3996
3964
|
};
|
|
3997
|
-
function
|
|
3965
|
+
function Yn(e) {
|
|
3998
3966
|
var r, c, u, f;
|
|
3999
3967
|
function t() {
|
|
4000
3968
|
return "div";
|
|
@@ -4016,19 +3984,20 @@ function Gn(e) {
|
|
|
4016
3984
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4017
3985
|
});
|
|
4018
3986
|
function a() {
|
|
4019
|
-
o ||
|
|
3987
|
+
o || Jn({
|
|
4020
3988
|
symbol: e.symbol,
|
|
4021
3989
|
builderContextValue: e.builderContext
|
|
4022
3990
|
}).then((d) => {
|
|
4023
3991
|
d && l(d);
|
|
4024
3992
|
});
|
|
4025
3993
|
}
|
|
4026
|
-
return
|
|
4027
|
-
}, []),
|
|
3994
|
+
return B(() => {
|
|
3995
|
+
}, []), B(() => {
|
|
4028
3996
|
a();
|
|
4029
3997
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4030
|
-
|
|
3998
|
+
_n,
|
|
4031
3999
|
{
|
|
4000
|
+
nonce: e.builderContext.nonce,
|
|
4032
4001
|
isNestedRender: !0,
|
|
4033
4002
|
apiVersion: e.builderContext.apiVersion,
|
|
4034
4003
|
apiKey: e.builderContext.apiKey,
|
|
@@ -4052,15 +4021,15 @@ function Gn(e) {
|
|
|
4052
4021
|
) });
|
|
4053
4022
|
}
|
|
4054
4023
|
export {
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4024
|
+
D as Blocks,
|
|
4025
|
+
me as BuilderContext,
|
|
4026
|
+
ot as Button,
|
|
4027
|
+
$t as Columns,
|
|
4028
|
+
_n as Content,
|
|
4060
4029
|
Dt as Fragment,
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4030
|
+
jt as Image,
|
|
4031
|
+
Mt as Section,
|
|
4032
|
+
Yn as Symbol,
|
|
4033
|
+
tn as Text,
|
|
4034
|
+
In as Video
|
|
4066
4035
|
};
|