@builder.io/sdk-react 1.1.2 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +25 -25
- package/lib/browser/blocks-exports.mjs +483 -548
- 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-ed2ca723.js → server-entry-709e09e3.js} +1 -1
- package/lib/browser/{server-entry-754040fc.cjs → server-entry-e0454364.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-dfb7894d.cjs → accordion-12c2d408.cjs} +1 -1
- package/lib/edge/{accordion-3e3c0eb7.js → accordion-bd80745a.js} +1 -1
- package/lib/edge/{blocks-b47dedc1.js → blocks-6d6258ba.js} +688 -684
- package/lib/edge/{blocks-e68d1b90.cjs → blocks-ac8970f1.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-03e45213.js → button-4e842584.js} +2 -2
- package/lib/edge/{button-eacbdcad.cjs → button-c2e45e64.cjs} +1 -1
- package/lib/edge/{columns-858746ca.js → columns-a51238cc.js} +16 -16
- package/lib/edge/columns-bc2b0674.cjs +28 -0
- package/lib/edge/content-variants-3fe9b1c0.cjs +134 -0
- package/lib/edge/{content-variants-c4559dfb.js → content-variants-f3c6baad.js} +127 -196
- package/lib/edge/{form-6f2d1077.js → form-00c8cc55.js} +3 -3
- package/lib/edge/{form-241a699e.cjs → form-b4cdf7cd.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-87b96bca.js → get-class-prop-name-1bbed5bf.js} +1 -1
- package/lib/edge/{get-class-prop-name-d471c28c.cjs → get-class-prop-name-3c5f7a7d.cjs} +1 -1
- package/lib/edge/{img-a7bbfda3.cjs → img-6671da9a.cjs} +1 -1
- package/lib/edge/{img-be88cdbc.js → img-e7db1475.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-f1fbe38b.cjs → input-0f7a9f1c.cjs} +1 -1
- package/lib/edge/{input-22d61335.js → input-2db47a83.js} +1 -1
- package/lib/edge/{select-6371cc39.js → select-2facacf2.js} +1 -1
- package/lib/edge/{select-c58f67e3.cjs → select-f0859c5f.cjs} +1 -1
- package/lib/edge/{server-entry-97c99c4d.js → server-entry-75aa714e.js} +1 -1
- package/lib/edge/{server-entry-048c3043.cjs → server-entry-ff6a2e2d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-e6c31d6c.js → slot-8159ca1d.js} +3 -3
- package/lib/edge/{slot-7666ffaf.cjs → slot-aee43b86.cjs} +1 -1
- package/lib/edge/{symbol-8e3447aa.js → symbol-36a155f3.js} +2 -2
- package/lib/edge/{symbol-a0838c62.cjs → symbol-a244cc31.cjs} +1 -1
- package/lib/edge/{tabs-02f569d1.cjs → tabs-4112a80e.cjs} +1 -1
- package/lib/edge/{tabs-20114ebb.js → tabs-f5357a4e.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +477 -542
- 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-36670c0e.js → node-runtime-80c4bfc8.js} +1 -1
- package/lib/node/{node-runtime-819e5520.cjs → node-runtime-eb72e084.cjs} +1 -1
- package/lib/node/{server-entry-cc7910d7.cjs → server-entry-b2103255.cjs} +1 -1
- package/lib/node/{server-entry-2910f126.js → server-entry-e8ac67b5.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-26be75b9.cjs +0 -28
- package/lib/edge/content-variants-0c5ae6d6.cjs +0 -134
|
@@ -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-e8ac67b5.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-80c4bfc8.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,
|
|
@@ -61,15 +61,15 @@ const fe = Re({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Be = we({ registeredComponents: {} });
|
|
65
|
+
function at(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const rt = ({
|
|
73
73
|
code: e,
|
|
74
74
|
builder: t,
|
|
75
75
|
context: n,
|
|
@@ -78,11 +78,11 @@ const lt = ({
|
|
|
78
78
|
rootSetState: l,
|
|
79
79
|
rootState: a
|
|
80
80
|
}) => {
|
|
81
|
-
const r =
|
|
81
|
+
const r = Xe({
|
|
82
82
|
builder: t,
|
|
83
83
|
context: n,
|
|
84
84
|
event: i,
|
|
85
|
-
state:
|
|
85
|
+
state: Pe({
|
|
86
86
|
rootState: a,
|
|
87
87
|
localState: o,
|
|
88
88
|
rootSetState: l
|
|
@@ -90,7 +90,7 @@ const lt = ({
|
|
|
90
90
|
});
|
|
91
91
|
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function Pe({
|
|
94
94
|
rootState: e,
|
|
95
95
|
localState: t,
|
|
96
96
|
rootSetState: n
|
|
@@ -100,7 +100,7 @@ function Ve({
|
|
|
100
100
|
if (t && o in t)
|
|
101
101
|
return t[o];
|
|
102
102
|
const l = i[o];
|
|
103
|
-
return typeof l == "object" && l !== null ?
|
|
103
|
+
return typeof l == "object" && l !== null ? Pe({
|
|
104
104
|
rootState: l,
|
|
105
105
|
localState: void 0,
|
|
106
106
|
rootSetState: n ? (a) => {
|
|
@@ -115,17 +115,17 @@ function Ve({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function lt() {
|
|
119
119
|
var e;
|
|
120
120
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const st = () => {
|
|
123
123
|
var i;
|
|
124
|
-
if (!
|
|
124
|
+
if (!lt())
|
|
125
125
|
return !1;
|
|
126
126
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
127
127
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
128
|
-
},
|
|
128
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
|
|
129
129
|
static getCacheKey(t) {
|
|
130
130
|
return JSON.stringify({
|
|
131
131
|
...t,
|
|
@@ -135,16 +135,16 @@ const ct = () => {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
static getCachedValue(t) {
|
|
138
|
-
return
|
|
138
|
+
return L.cache.get(t);
|
|
139
139
|
}
|
|
140
140
|
static setCachedValue(t, n) {
|
|
141
|
-
|
|
141
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
142
142
|
value: n
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
let M =
|
|
146
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
147
|
+
let M = L;
|
|
148
148
|
function q({
|
|
149
149
|
code: e,
|
|
150
150
|
context: t,
|
|
@@ -158,10 +158,10 @@ function q({
|
|
|
158
158
|
if (e === "")
|
|
159
159
|
return;
|
|
160
160
|
const c = {
|
|
161
|
-
code:
|
|
161
|
+
code: et(e, {
|
|
162
162
|
isExpression: a
|
|
163
163
|
}),
|
|
164
|
-
builder:
|
|
164
|
+
builder: tt(),
|
|
165
165
|
context: t,
|
|
166
166
|
event: l,
|
|
167
167
|
rootSetState: o,
|
|
@@ -174,7 +174,7 @@ function q({
|
|
|
174
174
|
return f.value;
|
|
175
175
|
}
|
|
176
176
|
try {
|
|
177
|
-
const u =
|
|
177
|
+
const u = ct(c);
|
|
178
178
|
if (r) {
|
|
179
179
|
const f = M.getCacheKey(c);
|
|
180
180
|
M.setCachedValue(f, u);
|
|
@@ -187,7 +187,7 @@ function q({
|
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const dt = ({
|
|
191
191
|
block: e,
|
|
192
192
|
context: t,
|
|
193
193
|
localState: n,
|
|
@@ -196,7 +196,7 @@ const ut = ({
|
|
|
196
196
|
}) => {
|
|
197
197
|
if (!e.bindings)
|
|
198
198
|
return e;
|
|
199
|
-
const l =
|
|
199
|
+
const l = de(e), a = {
|
|
200
200
|
...l,
|
|
201
201
|
properties: {
|
|
202
202
|
...l.properties
|
|
@@ -214,7 +214,7 @@ const ut = ({
|
|
|
214
214
|
context: t,
|
|
215
215
|
enableCache: !0
|
|
216
216
|
});
|
|
217
|
-
|
|
217
|
+
Ee(a, r, u);
|
|
218
218
|
}
|
|
219
219
|
return a;
|
|
220
220
|
};
|
|
@@ -227,7 +227,7 @@ function X({
|
|
|
227
227
|
rootSetState: l
|
|
228
228
|
}) {
|
|
229
229
|
const a = e;
|
|
230
|
-
return n ?
|
|
230
|
+
return n ? dt({
|
|
231
231
|
block: a,
|
|
232
232
|
localState: i,
|
|
233
233
|
rootState: o,
|
|
@@ -236,7 +236,7 @@ function X({
|
|
|
236
236
|
}) : a;
|
|
237
237
|
}
|
|
238
238
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
239
|
-
function
|
|
239
|
+
function ut(e, t, n = {}) {
|
|
240
240
|
let i, o, l, a = null, r = 0;
|
|
241
241
|
const c = function() {
|
|
242
242
|
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
@@ -258,55 +258,55 @@ function U(e, ...t) {
|
|
|
258
258
|
}
|
|
259
259
|
return n;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function mt(e) {
|
|
262
262
|
for (const t of e)
|
|
263
263
|
switch (t.trigger) {
|
|
264
264
|
case "pageLoad":
|
|
265
|
-
|
|
265
|
+
Ne(t);
|
|
266
266
|
break;
|
|
267
267
|
case "scrollInView":
|
|
268
|
-
|
|
268
|
+
ht(t);
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ve(e) {
|
|
273
273
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const n =
|
|
275
|
+
function Ae(e, t) {
|
|
276
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
277
277
|
for (const r of a)
|
|
278
278
|
for (const c of n)
|
|
279
279
|
c in r || (r[c] = i[c]);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ft(e) {
|
|
282
282
|
const t = [];
|
|
283
283
|
for (const n of e.steps)
|
|
284
284
|
for (const i in n.styles)
|
|
285
285
|
t.indexOf(i) === -1 && t.push(i);
|
|
286
286
|
return t;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ne(e) {
|
|
289
289
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
290
290
|
if (!t.length) {
|
|
291
|
-
|
|
291
|
+
Ve(e.elementId || e.id || "");
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
Array.from(t).forEach((n) => {
|
|
295
|
-
|
|
295
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
296
296
|
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
297
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
298
298
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ht(e) {
|
|
303
303
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
304
304
|
if (!t.length) {
|
|
305
|
-
|
|
305
|
+
Ve(e.elementId || e.id || "");
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
Array.from(t).forEach((n) => {
|
|
309
|
-
|
|
309
|
+
Ae(e, n);
|
|
310
310
|
let i = !1, o = !1;
|
|
311
311
|
function l() {
|
|
312
312
|
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -315,7 +315,7 @@ function bt(e) {
|
|
|
315
315
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
316
316
|
})) : e.repeat && i && !o && !r(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
317
317
|
}
|
|
318
|
-
const a =
|
|
318
|
+
const a = ut(l, 200, {
|
|
319
319
|
leading: !1
|
|
320
320
|
});
|
|
321
321
|
function r(f) {
|
|
@@ -334,10 +334,10 @@ function bt(e) {
|
|
|
334
334
|
}), l();
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
338
338
|
if (typeof i == "string")
|
|
339
339
|
return `${te(n)}: ${i};`;
|
|
340
|
-
}).filter(Y), gt = (e) =>
|
|
340
|
+
}).filter(Y), gt = (e) => We(e).join(`
|
|
341
341
|
`), _ = ({
|
|
342
342
|
mediaQuery: e,
|
|
343
343
|
className: t,
|
|
@@ -350,26 +350,26 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
350
350
|
${i}
|
|
351
351
|
}` : i;
|
|
352
352
|
};
|
|
353
|
-
function
|
|
353
|
+
function bt({
|
|
354
354
|
style: e
|
|
355
355
|
}) {
|
|
356
356
|
return e;
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const pt = ({
|
|
359
359
|
block: e,
|
|
360
360
|
context: t
|
|
361
|
-
}) =>
|
|
361
|
+
}) => Fe(bt({
|
|
362
362
|
style: e.style || {},
|
|
363
363
|
context: t,
|
|
364
364
|
block: e
|
|
365
365
|
}));
|
|
366
|
-
function
|
|
366
|
+
function Fe(e) {
|
|
367
367
|
switch (K) {
|
|
368
368
|
case "svelte":
|
|
369
369
|
case "vue":
|
|
370
370
|
case "solid":
|
|
371
371
|
case "angular":
|
|
372
|
-
return
|
|
372
|
+
return We(e).join(" ");
|
|
373
373
|
case "qwik":
|
|
374
374
|
case "reactNative":
|
|
375
375
|
case "react":
|
|
@@ -377,7 +377,7 @@ function $e(e) {
|
|
|
377
377
|
return e;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const yt = ({
|
|
381
381
|
block: e,
|
|
382
382
|
context: t,
|
|
383
383
|
registeredComponents: n
|
|
@@ -399,7 +399,7 @@ const xt = ({
|
|
|
399
399
|
console.warn(`
|
|
400
400
|
Could not find a registered component named "${i}".
|
|
401
401
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
402
|
-
},
|
|
402
|
+
}, xt = ({
|
|
403
403
|
block: e,
|
|
404
404
|
context: t
|
|
405
405
|
}) => {
|
|
@@ -433,23 +433,27 @@ const xt = ({
|
|
|
433
433
|
},
|
|
434
434
|
block: i
|
|
435
435
|
}));
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
} : {}
|
|
451
|
-
|
|
452
|
-
|
|
436
|
+
}, vt = (e, t) => {
|
|
437
|
+
var n;
|
|
438
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
439
|
+
builderLinkComponent: t
|
|
440
|
+
} : {};
|
|
441
|
+
}, St = (e, t) => {
|
|
442
|
+
var n;
|
|
443
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
444
|
+
builderComponents: t
|
|
445
|
+
} : {};
|
|
446
|
+
}, kt = (e, t) => {
|
|
447
|
+
var n;
|
|
448
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
449
|
+
builderBlock: t
|
|
450
|
+
} : {};
|
|
451
|
+
}, Ct = (e, t) => {
|
|
452
|
+
var n;
|
|
453
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
454
|
+
builderContext: t
|
|
455
|
+
} : {};
|
|
456
|
+
}, $e = {
|
|
453
457
|
small: {
|
|
454
458
|
min: 320,
|
|
455
459
|
default: 321,
|
|
@@ -465,11 +469,11 @@ const xt = ({
|
|
|
465
469
|
default: 991,
|
|
466
470
|
max: 1200
|
|
467
471
|
}
|
|
468
|
-
},
|
|
472
|
+
}, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
469
473
|
small: e,
|
|
470
474
|
medium: t
|
|
471
475
|
}) => {
|
|
472
|
-
const n =
|
|
476
|
+
const n = de($e);
|
|
473
477
|
if (!e || !t)
|
|
474
478
|
return n;
|
|
475
479
|
const i = Math.floor(e / 2);
|
|
@@ -492,7 +496,7 @@ const xt = ({
|
|
|
492
496
|
default: l + 1
|
|
493
497
|
}, n;
|
|
494
498
|
};
|
|
495
|
-
function
|
|
499
|
+
function ne(e) {
|
|
496
500
|
return /* @__PURE__ */ s(
|
|
497
501
|
"style",
|
|
498
502
|
{
|
|
@@ -501,7 +505,7 @@ function ie(e) {
|
|
|
501
505
|
}
|
|
502
506
|
);
|
|
503
507
|
}
|
|
504
|
-
function
|
|
508
|
+
function Tt(e) {
|
|
505
509
|
function t() {
|
|
506
510
|
const i = X({
|
|
507
511
|
block: e.block,
|
|
@@ -514,7 +518,7 @@ function It(e) {
|
|
|
514
518
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
515
519
|
}
|
|
516
520
|
function n() {
|
|
517
|
-
var x,
|
|
521
|
+
var x, E, V;
|
|
518
522
|
const i = X({
|
|
519
523
|
block: e.block,
|
|
520
524
|
localState: e.context.localState,
|
|
@@ -533,21 +537,21 @@ function It(e) {
|
|
|
533
537
|
}) : "", m = c ? _({
|
|
534
538
|
className: f,
|
|
535
539
|
styles: c,
|
|
536
|
-
mediaQuery:
|
|
540
|
+
mediaQuery: pe(
|
|
537
541
|
"medium",
|
|
538
542
|
a
|
|
539
543
|
)
|
|
540
|
-
}) : "",
|
|
544
|
+
}) : "", g = u ? _({
|
|
541
545
|
className: f,
|
|
542
546
|
styles: u,
|
|
543
|
-
mediaQuery:
|
|
547
|
+
mediaQuery: pe(
|
|
544
548
|
"small",
|
|
545
549
|
a
|
|
546
550
|
)
|
|
547
551
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
548
552
|
let I = "";
|
|
549
553
|
if (p) {
|
|
550
|
-
const A = ((V = (
|
|
554
|
+
const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
551
555
|
I = _({
|
|
552
556
|
className: `${f}:hover`,
|
|
553
557
|
styles: {
|
|
@@ -562,16 +566,16 @@ function It(e) {
|
|
|
562
566
|
return [
|
|
563
567
|
d,
|
|
564
568
|
m,
|
|
565
|
-
|
|
569
|
+
g,
|
|
566
570
|
I
|
|
567
571
|
].join(" ");
|
|
568
572
|
}
|
|
569
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
573
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
570
574
|
}
|
|
571
|
-
function
|
|
575
|
+
function It(e) {
|
|
572
576
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
573
577
|
}
|
|
574
|
-
const
|
|
578
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
|
|
575
579
|
code: e,
|
|
576
580
|
context: t.context,
|
|
577
581
|
localState: t.localState,
|
|
@@ -581,14 +585,14 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
|
|
|
581
585
|
isExpression: !1,
|
|
582
586
|
enableCache: !0
|
|
583
587
|
});
|
|
584
|
-
function
|
|
588
|
+
function Le(e) {
|
|
585
589
|
var i;
|
|
586
590
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
587
591
|
for (const o in n) {
|
|
588
592
|
if (!n.hasOwnProperty(o))
|
|
589
593
|
continue;
|
|
590
594
|
const l = n[o];
|
|
591
|
-
let a =
|
|
595
|
+
let a = wt(o);
|
|
592
596
|
if (e.stripPrefix)
|
|
593
597
|
switch (K) {
|
|
594
598
|
case "vue":
|
|
@@ -598,49 +602,49 @@ function Oe(e) {
|
|
|
598
602
|
a = a.replace("on:", "");
|
|
599
603
|
break;
|
|
600
604
|
}
|
|
601
|
-
t[a] =
|
|
605
|
+
t[a] = Rt(l, e);
|
|
602
606
|
}
|
|
603
607
|
return t;
|
|
604
608
|
}
|
|
605
|
-
function
|
|
609
|
+
function Et({
|
|
606
610
|
properties: e
|
|
607
611
|
}) {
|
|
608
612
|
return e;
|
|
609
613
|
}
|
|
610
|
-
const
|
|
614
|
+
const Bt = (e) => ({
|
|
611
615
|
href: e.href
|
|
612
616
|
});
|
|
613
|
-
function
|
|
617
|
+
function fe({
|
|
614
618
|
block: e,
|
|
615
619
|
context: t
|
|
616
620
|
}) {
|
|
617
621
|
var i;
|
|
618
622
|
const n = {
|
|
619
|
-
...
|
|
623
|
+
...Bt(e),
|
|
620
624
|
...e.properties,
|
|
621
625
|
"builder-id": e.id,
|
|
622
|
-
style:
|
|
626
|
+
style: pt({
|
|
623
627
|
block: e,
|
|
624
628
|
context: t
|
|
625
629
|
}),
|
|
626
630
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
627
631
|
};
|
|
628
|
-
return
|
|
632
|
+
return Et({
|
|
629
633
|
properties: n,
|
|
630
634
|
context: t,
|
|
631
635
|
block: e
|
|
632
636
|
});
|
|
633
637
|
}
|
|
634
|
-
function
|
|
638
|
+
function Pt(e) {
|
|
635
639
|
return /* @__PURE__ */ s(
|
|
636
|
-
|
|
640
|
+
ue,
|
|
637
641
|
{
|
|
638
642
|
TagName: e.Wrapper,
|
|
639
|
-
attributes:
|
|
643
|
+
attributes: fe({
|
|
640
644
|
block: e.block,
|
|
641
645
|
context: e.context
|
|
642
646
|
}),
|
|
643
|
-
actionAttributes:
|
|
647
|
+
actionAttributes: Le({
|
|
644
648
|
block: e.block,
|
|
645
649
|
rootState: e.context.rootState,
|
|
646
650
|
rootSetState: e.context.rootSetState,
|
|
@@ -652,14 +656,14 @@ function Vt(e) {
|
|
|
652
656
|
}
|
|
653
657
|
);
|
|
654
658
|
}
|
|
655
|
-
function
|
|
659
|
+
function Vt(e) {
|
|
656
660
|
function t() {
|
|
657
661
|
return e.includeBlockProps ? {
|
|
658
|
-
...
|
|
662
|
+
...fe({
|
|
659
663
|
block: e.block,
|
|
660
664
|
context: e.context
|
|
661
665
|
}),
|
|
662
|
-
...
|
|
666
|
+
...Le({
|
|
663
667
|
block: e.block,
|
|
664
668
|
rootState: e.context.rootState,
|
|
665
669
|
rootSetState: e.context.rootSetState,
|
|
@@ -670,7 +674,7 @@ function At(e) {
|
|
|
670
674
|
}
|
|
671
675
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
672
676
|
}
|
|
673
|
-
const
|
|
677
|
+
const At = ({
|
|
674
678
|
componentOptions: e,
|
|
675
679
|
builderBlock: t,
|
|
676
680
|
context: n,
|
|
@@ -686,7 +690,7 @@ const Nt = ({
|
|
|
686
690
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
687
691
|
*/
|
|
688
692
|
...o ? {
|
|
689
|
-
attributes:
|
|
693
|
+
attributes: fe({
|
|
690
694
|
block: t,
|
|
691
695
|
context: a
|
|
692
696
|
})
|
|
@@ -700,15 +704,15 @@ const Nt = ({
|
|
|
700
704
|
includeBlockProps: o
|
|
701
705
|
} : r;
|
|
702
706
|
};
|
|
703
|
-
function
|
|
707
|
+
function ye(e) {
|
|
704
708
|
var i;
|
|
705
709
|
const [t, n] = C(
|
|
706
|
-
() => e.isInteractive ?
|
|
710
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
707
711
|
);
|
|
708
712
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
709
713
|
t,
|
|
710
714
|
{
|
|
711
|
-
...
|
|
715
|
+
...At({
|
|
712
716
|
componentOptions: e.componentOptions,
|
|
713
717
|
builderBlock: e.builderBlock,
|
|
714
718
|
context: e.context,
|
|
@@ -731,9 +735,9 @@ function xe(e) {
|
|
|
731
735
|
}
|
|
732
736
|
) }) : null });
|
|
733
737
|
}
|
|
734
|
-
function
|
|
738
|
+
function Nt(e) {
|
|
735
739
|
const [t, n] = C(() => e.repeatContext);
|
|
736
|
-
return /* @__PURE__ */ s(
|
|
740
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
737
741
|
z,
|
|
738
742
|
{
|
|
739
743
|
block: e.block,
|
|
@@ -746,14 +750,14 @@ function Wt(e) {
|
|
|
746
750
|
function z(e) {
|
|
747
751
|
var c, u, f;
|
|
748
752
|
function t() {
|
|
749
|
-
return
|
|
753
|
+
return yt({
|
|
750
754
|
block: e.block,
|
|
751
755
|
context: e.context,
|
|
752
756
|
registeredComponents: e.registeredComponents
|
|
753
757
|
});
|
|
754
758
|
}
|
|
755
759
|
function n() {
|
|
756
|
-
return
|
|
760
|
+
return xt({
|
|
757
761
|
block: e.block,
|
|
758
762
|
context: e.context
|
|
759
763
|
});
|
|
@@ -774,27 +778,27 @@ function z(e) {
|
|
|
774
778
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
775
779
|
}
|
|
776
780
|
function l() {
|
|
777
|
-
var
|
|
778
|
-
if ((
|
|
781
|
+
var g, p;
|
|
782
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
779
783
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
780
784
|
const d = "hide" in i() ? i().hide : !1;
|
|
781
785
|
return ("show" in i() ? i().show : !0) && !d;
|
|
782
786
|
}
|
|
783
787
|
function a() {
|
|
784
|
-
var m,
|
|
785
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
788
|
+
var m, g;
|
|
789
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
786
790
|
}
|
|
787
791
|
function r() {
|
|
788
|
-
var d, m,
|
|
792
|
+
var d, m, g, p;
|
|
789
793
|
return {
|
|
790
794
|
blockChildren: (d = i().children) != null ? d : [],
|
|
791
795
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
792
796
|
componentOptions: {
|
|
793
|
-
...
|
|
794
|
-
...
|
|
795
|
-
...
|
|
796
|
-
...
|
|
797
|
-
...
|
|
797
|
+
...at(i()),
|
|
798
|
+
...kt(t(), i()),
|
|
799
|
+
...Ct(t(), e.context),
|
|
800
|
+
...vt(t(), e.linkComponent),
|
|
801
|
+
...St(
|
|
798
802
|
t(),
|
|
799
803
|
e.registeredComponents
|
|
800
804
|
)
|
|
@@ -803,22 +807,22 @@ function z(e) {
|
|
|
803
807
|
linkComponent: e.linkComponent,
|
|
804
808
|
registeredComponents: e.registeredComponents,
|
|
805
809
|
builderBlock: i(),
|
|
806
|
-
includeBlockProps: ((
|
|
810
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
807
811
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
808
812
|
};
|
|
809
813
|
}
|
|
810
|
-
return
|
|
814
|
+
return B(() => {
|
|
811
815
|
const d = i().id, m = i().animations;
|
|
812
|
-
m && d &&
|
|
813
|
-
m.map((
|
|
814
|
-
...
|
|
816
|
+
m && d && mt(
|
|
817
|
+
m.map((g) => ({
|
|
818
|
+
...g,
|
|
815
819
|
elementId: d
|
|
816
820
|
}))
|
|
817
821
|
);
|
|
818
|
-
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */ s(
|
|
822
|
+
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ P(R, { children: [
|
|
823
|
+
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
820
824
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
821
|
-
|
|
825
|
+
ye,
|
|
822
826
|
{
|
|
823
827
|
componentRef: r().componentRef,
|
|
824
828
|
componentOptions: r().componentOptions,
|
|
@@ -831,7 +835,7 @@ function z(e) {
|
|
|
831
835
|
isInteractive: r().isInteractive
|
|
832
836
|
}
|
|
833
837
|
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
834
|
-
|
|
838
|
+
Nt,
|
|
835
839
|
{
|
|
836
840
|
repeatContext: d.context,
|
|
837
841
|
block: d.block,
|
|
@@ -839,15 +843,15 @@ function z(e) {
|
|
|
839
843
|
linkComponent: e.linkComponent
|
|
840
844
|
},
|
|
841
845
|
m
|
|
842
|
-
)) }) : /* @__PURE__ */
|
|
843
|
-
|
|
846
|
+
)) }) : /* @__PURE__ */ P(
|
|
847
|
+
Pt,
|
|
844
848
|
{
|
|
845
849
|
Wrapper: o(),
|
|
846
850
|
block: i(),
|
|
847
851
|
context: e.context,
|
|
848
852
|
children: [
|
|
849
853
|
/* @__PURE__ */ s(
|
|
850
|
-
|
|
854
|
+
ye,
|
|
851
855
|
{
|
|
852
856
|
componentRef: r().componentRef,
|
|
853
857
|
componentOptions: r().componentOptions,
|
|
@@ -875,7 +879,7 @@ function z(e) {
|
|
|
875
879
|
) })
|
|
876
880
|
] }) : null });
|
|
877
881
|
}
|
|
878
|
-
function
|
|
882
|
+
function Wt(e) {
|
|
879
883
|
function t() {
|
|
880
884
|
var o;
|
|
881
885
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -906,7 +910,7 @@ function Ft(e) {
|
|
|
906
910
|
"*"
|
|
907
911
|
));
|
|
908
912
|
}
|
|
909
|
-
return /* @__PURE__ */
|
|
913
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
910
914
|
/* @__PURE__ */ s(
|
|
911
915
|
e.BlocksWrapper,
|
|
912
916
|
{
|
|
@@ -928,11 +932,11 @@ function Ft(e) {
|
|
|
928
932
|
}` })
|
|
929
933
|
] });
|
|
930
934
|
}
|
|
931
|
-
function
|
|
935
|
+
function D(e) {
|
|
932
936
|
var i, o, l;
|
|
933
|
-
const t =
|
|
937
|
+
const t = be(me), n = be(Be);
|
|
934
938
|
return /* @__PURE__ */ s(
|
|
935
|
-
|
|
939
|
+
Wt,
|
|
936
940
|
{
|
|
937
941
|
blocks: e.blocks,
|
|
938
942
|
parent: e.parent,
|
|
@@ -953,8 +957,8 @@ function L(e) {
|
|
|
953
957
|
}
|
|
954
958
|
);
|
|
955
959
|
}
|
|
956
|
-
const
|
|
957
|
-
function
|
|
960
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
961
|
+
function $t(e) {
|
|
958
962
|
var A, O;
|
|
959
963
|
const [t, n] = C(
|
|
960
964
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -969,8 +973,8 @@ function Lt(e) {
|
|
|
969
973
|
return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
|
|
970
974
|
}
|
|
971
975
|
function u(S) {
|
|
972
|
-
const w = t * (i.length - 1) /
|
|
973
|
-
return `calc(${
|
|
976
|
+
const w = c(S), N = t * (i.length - 1) * (w / 100);
|
|
977
|
+
return `calc(${w}% - ${N}px)`;
|
|
974
978
|
}
|
|
975
979
|
function f({
|
|
976
980
|
stackedStyle: S,
|
|
@@ -984,7 +988,7 @@ function Lt(e) {
|
|
|
984
988
|
}) {
|
|
985
989
|
return l === "never" ? w : S;
|
|
986
990
|
}
|
|
987
|
-
const [m,
|
|
991
|
+
const [m, g] = C(
|
|
988
992
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
989
993
|
);
|
|
990
994
|
function p() {
|
|
@@ -997,40 +1001,40 @@ function Lt(e) {
|
|
|
997
1001
|
};
|
|
998
1002
|
}
|
|
999
1003
|
function I(S) {
|
|
1000
|
-
const w = S === 0 ? 0 : t,
|
|
1004
|
+
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
|
|
1001
1005
|
return {
|
|
1002
1006
|
...{
|
|
1003
1007
|
display: "flex",
|
|
1004
1008
|
flexDirection: "column",
|
|
1005
1009
|
alignItems: "stretch"
|
|
1006
1010
|
},
|
|
1007
|
-
width:
|
|
1008
|
-
["marginLeft"]:
|
|
1011
|
+
width: N,
|
|
1012
|
+
["marginLeft"]: b,
|
|
1009
1013
|
"--column-width-mobile": d({
|
|
1010
1014
|
stackedStyle: h,
|
|
1011
|
-
desktopStyle:
|
|
1015
|
+
desktopStyle: N
|
|
1012
1016
|
}),
|
|
1013
1017
|
"--column-margin-left-mobile": d({
|
|
1014
1018
|
stackedStyle: y,
|
|
1015
|
-
desktopStyle:
|
|
1019
|
+
desktopStyle: b
|
|
1016
1020
|
}),
|
|
1017
1021
|
"--column-width-tablet": f({
|
|
1018
1022
|
stackedStyle: h,
|
|
1019
|
-
desktopStyle:
|
|
1023
|
+
desktopStyle: N
|
|
1020
1024
|
}),
|
|
1021
1025
|
"--column-margin-left-tablet": f({
|
|
1022
1026
|
stackedStyle: y,
|
|
1023
|
-
desktopStyle:
|
|
1027
|
+
desktopStyle: b
|
|
1024
1028
|
})
|
|
1025
1029
|
};
|
|
1026
1030
|
}
|
|
1027
1031
|
function x(S) {
|
|
1028
|
-
var
|
|
1032
|
+
var N, b;
|
|
1029
1033
|
return De(
|
|
1030
|
-
((
|
|
1034
|
+
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1031
1035
|
)[S].max;
|
|
1032
1036
|
}
|
|
1033
|
-
function
|
|
1037
|
+
function E() {
|
|
1034
1038
|
return `
|
|
1035
1039
|
@media (max-width: ${x("medium")}px) {
|
|
1036
1040
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1063,25 +1067,25 @@ function Lt(e) {
|
|
|
1063
1067
|
href: S.link
|
|
1064
1068
|
} : {},
|
|
1065
1069
|
[H()]: "builder-column",
|
|
1066
|
-
style:
|
|
1070
|
+
style: Fe(I(w))
|
|
1067
1071
|
};
|
|
1068
1072
|
}
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1074
|
+
/* @__PURE__ */ P(
|
|
1071
1075
|
"div",
|
|
1072
1076
|
{
|
|
1073
|
-
className:
|
|
1077
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-b622c1bc",
|
|
1074
1078
|
style: p(),
|
|
1075
1079
|
children: [
|
|
1076
|
-
/* @__PURE__ */ s(
|
|
1080
|
+
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: E() }),
|
|
1077
1081
|
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1078
|
-
|
|
1082
|
+
ue,
|
|
1079
1083
|
{
|
|
1080
1084
|
TagName: r(S),
|
|
1081
1085
|
actionAttributes: {},
|
|
1082
1086
|
attributes: V(S, w),
|
|
1083
1087
|
children: /* @__PURE__ */ s(
|
|
1084
|
-
|
|
1088
|
+
D,
|
|
1085
1089
|
{
|
|
1086
1090
|
path: `component.options.columns.${w}.blocks`,
|
|
1087
1091
|
parent: e.builderBlock.id,
|
|
@@ -1100,7 +1104,7 @@ function Lt(e) {
|
|
|
1100
1104
|
]
|
|
1101
1105
|
}
|
|
1102
1106
|
),
|
|
1103
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1107
|
+
/* @__PURE__ */ s("style", { children: `.div-b622c1bc {
|
|
1104
1108
|
display: flex;
|
|
1105
1109
|
line-height: normal;
|
|
1106
1110
|
}` })
|
|
@@ -1109,37 +1113,37 @@ function Lt(e) {
|
|
|
1109
1113
|
function Dt(e) {
|
|
1110
1114
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1111
1115
|
}
|
|
1112
|
-
function
|
|
1116
|
+
function xe(e) {
|
|
1113
1117
|
return e.replace(/http(s)?:/, "");
|
|
1114
1118
|
}
|
|
1115
|
-
function
|
|
1119
|
+
function Lt(e = "", t, n) {
|
|
1116
1120
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1117
1121
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1118
1122
|
}
|
|
1119
|
-
function
|
|
1123
|
+
function Ot(e, t) {
|
|
1120
1124
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1121
1125
|
return e;
|
|
1122
1126
|
if (t === "master")
|
|
1123
|
-
return
|
|
1127
|
+
return xe(e);
|
|
1124
1128
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1125
1129
|
if (n) {
|
|
1126
1130
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1127
|
-
return
|
|
1131
|
+
return xe(`${i[0]}_${l}${o}`);
|
|
1128
1132
|
}
|
|
1129
1133
|
return null;
|
|
1130
1134
|
}
|
|
1131
|
-
function
|
|
1135
|
+
function oe(e) {
|
|
1132
1136
|
if (!e)
|
|
1133
1137
|
return e;
|
|
1134
1138
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1135
1139
|
if (e.match(/builder\.io/)) {
|
|
1136
1140
|
let n = e;
|
|
1137
1141
|
const i = Number(e.split("?width=")[1]);
|
|
1138
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1142
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1139
1143
|
}
|
|
1140
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1144
|
+
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
1145
|
}
|
|
1142
|
-
function
|
|
1146
|
+
function jt(e) {
|
|
1143
1147
|
var o, l, a, r, c, u;
|
|
1144
1148
|
function t() {
|
|
1145
1149
|
var m;
|
|
@@ -1150,10 +1154,10 @@ function Mt(e) {
|
|
|
1150
1154
|
return e.srcset;
|
|
1151
1155
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1152
1156
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1153
|
-
return console.debug("Removed given srcset"),
|
|
1157
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1154
1158
|
} else if (e.image && !e.srcset)
|
|
1155
|
-
return
|
|
1156
|
-
return
|
|
1159
|
+
return oe(d);
|
|
1160
|
+
return oe(d);
|
|
1157
1161
|
}
|
|
1158
1162
|
function n() {
|
|
1159
1163
|
var f;
|
|
@@ -1169,9 +1173,9 @@ function Mt(e) {
|
|
|
1169
1173
|
};
|
|
1170
1174
|
return e.aspectRatio ? f : void 0;
|
|
1171
1175
|
}
|
|
1172
|
-
return /* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1176
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1177
|
+
/* @__PURE__ */ P(R, { children: [
|
|
1178
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1175
1179
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1176
1180
|
/* @__PURE__ */ s(
|
|
1177
1181
|
"img",
|
|
@@ -1223,7 +1227,7 @@ function Mt(e) {
|
|
|
1223
1227
|
}` })
|
|
1224
1228
|
] });
|
|
1225
1229
|
}
|
|
1226
|
-
function
|
|
1230
|
+
function Mt(e) {
|
|
1227
1231
|
return /* @__PURE__ */ s(
|
|
1228
1232
|
"section",
|
|
1229
1233
|
{
|
|
@@ -1244,7 +1248,7 @@ function Ut(e) {
|
|
|
1244
1248
|
}
|
|
1245
1249
|
);
|
|
1246
1250
|
}
|
|
1247
|
-
const
|
|
1251
|
+
const ae = {
|
|
1248
1252
|
"@type": "@builder.io/sdk:Element",
|
|
1249
1253
|
layerName: "Accordion item title",
|
|
1250
1254
|
responsiveStyles: {
|
|
@@ -1273,7 +1277,7 @@ const re = {
|
|
|
1273
1277
|
}
|
|
1274
1278
|
}
|
|
1275
1279
|
}]
|
|
1276
|
-
},
|
|
1280
|
+
}, re = {
|
|
1277
1281
|
"@type": "@builder.io/sdk:Element",
|
|
1278
1282
|
layerName: "Accordion item detail",
|
|
1279
1283
|
responsiveStyles: {
|
|
@@ -1304,7 +1308,7 @@ const re = {
|
|
|
1304
1308
|
}
|
|
1305
1309
|
}
|
|
1306
1310
|
}]
|
|
1307
|
-
},
|
|
1311
|
+
}, Ut = {
|
|
1308
1312
|
name: "Builder:Accordion",
|
|
1309
1313
|
canHaveChildren: !0,
|
|
1310
1314
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1321,19 +1325,19 @@ const re = {
|
|
|
1321
1325
|
name: "title",
|
|
1322
1326
|
type: "uiBlocks",
|
|
1323
1327
|
hideFromUI: !0,
|
|
1324
|
-
defaultValue: [
|
|
1328
|
+
defaultValue: [ae]
|
|
1325
1329
|
}, {
|
|
1326
1330
|
name: "detail",
|
|
1327
1331
|
type: "uiBlocks",
|
|
1328
1332
|
hideFromUI: !0,
|
|
1329
|
-
defaultValue: [
|
|
1333
|
+
defaultValue: [re]
|
|
1330
1334
|
}],
|
|
1331
1335
|
defaultValue: [{
|
|
1332
|
-
title: [
|
|
1333
|
-
detail: [
|
|
1336
|
+
title: [ae],
|
|
1337
|
+
detail: [re]
|
|
1334
1338
|
}, {
|
|
1335
|
-
title: [
|
|
1336
|
-
detail: [
|
|
1339
|
+
title: [ae],
|
|
1340
|
+
detail: [re]
|
|
1337
1341
|
}],
|
|
1338
1342
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1339
1343
|
}, {
|
|
@@ -1368,8 +1372,8 @@ const re = {
|
|
|
1368
1372
|
builderComponents: !0,
|
|
1369
1373
|
builderLinkComponent: !0
|
|
1370
1374
|
}
|
|
1371
|
-
},
|
|
1372
|
-
function
|
|
1375
|
+
}, ve = (e) => e.toString();
|
|
1376
|
+
function Ht(e) {
|
|
1373
1377
|
var d;
|
|
1374
1378
|
const [t, n] = C(() => []);
|
|
1375
1379
|
function i() {
|
|
@@ -1388,7 +1392,7 @@ function qt(e) {
|
|
|
1388
1392
|
};
|
|
1389
1393
|
}
|
|
1390
1394
|
function l() {
|
|
1391
|
-
const
|
|
1395
|
+
const g = {
|
|
1392
1396
|
...{
|
|
1393
1397
|
display: "flex",
|
|
1394
1398
|
flexDirection: "column"
|
|
@@ -1397,7 +1401,7 @@ function qt(e) {
|
|
|
1397
1401
|
cursor: "pointer"
|
|
1398
1402
|
};
|
|
1399
1403
|
return Object.fromEntries(
|
|
1400
|
-
Object.entries(
|
|
1404
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1401
1405
|
);
|
|
1402
1406
|
}
|
|
1403
1407
|
function a(m) {
|
|
@@ -1414,18 +1418,18 @@ function qt(e) {
|
|
|
1414
1418
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1415
1419
|
);
|
|
1416
1420
|
if (m = p, x) {
|
|
1417
|
-
let
|
|
1421
|
+
let E = x.getBoundingClientRect();
|
|
1418
1422
|
for (; x = x && x.nextElementSibling; )
|
|
1419
1423
|
if (x) {
|
|
1420
1424
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1421
1425
|
continue;
|
|
1422
1426
|
const V = x.getBoundingClientRect();
|
|
1423
|
-
if (V.left >
|
|
1427
|
+
if (V.left > E.left) {
|
|
1424
1428
|
const A = parseInt(
|
|
1425
1429
|
x.getAttribute("data-index") || "",
|
|
1426
1430
|
10
|
|
1427
1431
|
);
|
|
1428
|
-
isNaN(A) || (
|
|
1432
|
+
isNaN(A) || (E = V, m = A);
|
|
1429
1433
|
} else
|
|
1430
1434
|
break;
|
|
1431
1435
|
}
|
|
@@ -1441,29 +1445,29 @@ function qt(e) {
|
|
|
1441
1445
|
}
|
|
1442
1446
|
};
|
|
1443
1447
|
return Object.fromEntries(
|
|
1444
|
-
Object.entries(m).filter(([
|
|
1448
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1445
1449
|
);
|
|
1446
1450
|
}
|
|
1447
1451
|
function f(m) {
|
|
1448
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1452
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1449
1453
|
}
|
|
1450
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1454
|
+
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
1455
|
/* @__PURE__ */ s(
|
|
1452
1456
|
"div",
|
|
1453
1457
|
{
|
|
1454
|
-
className: a(
|
|
1458
|
+
className: a(g),
|
|
1455
1459
|
style: {
|
|
1456
1460
|
...l(),
|
|
1457
1461
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1458
|
-
order: c() !== null ?
|
|
1462
|
+
order: c() !== null ? ve(g) : ve(g + 1)
|
|
1459
1463
|
},
|
|
1460
|
-
"data-index":
|
|
1461
|
-
onClick: (p) => f(
|
|
1464
|
+
"data-index": g,
|
|
1465
|
+
onClick: (p) => f(g),
|
|
1462
1466
|
children: /* @__PURE__ */ s(
|
|
1463
|
-
|
|
1467
|
+
D,
|
|
1464
1468
|
{
|
|
1465
1469
|
blocks: m.title,
|
|
1466
|
-
path: `items.${
|
|
1470
|
+
path: `items.${g}.title`,
|
|
1467
1471
|
parent: e.builderBlock.id,
|
|
1468
1472
|
context: e.builderContext,
|
|
1469
1473
|
registeredComponents: e.builderComponents,
|
|
@@ -1472,16 +1476,16 @@ function qt(e) {
|
|
|
1472
1476
|
)
|
|
1473
1477
|
}
|
|
1474
1478
|
),
|
|
1475
|
-
t.includes(
|
|
1479
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1476
1480
|
"div",
|
|
1477
1481
|
{
|
|
1478
|
-
className: r(
|
|
1482
|
+
className: r(g),
|
|
1479
1483
|
style: u(),
|
|
1480
1484
|
children: /* @__PURE__ */ s(
|
|
1481
|
-
|
|
1485
|
+
D,
|
|
1482
1486
|
{
|
|
1483
1487
|
blocks: m.detail,
|
|
1484
|
-
path: `items.${
|
|
1488
|
+
path: `items.${g}.detail`,
|
|
1485
1489
|
parent: e.builderBlock.id,
|
|
1486
1490
|
context: e.builderContext,
|
|
1487
1491
|
registeredComponents: e.builderComponents,
|
|
@@ -1492,7 +1496,7 @@ function qt(e) {
|
|
|
1492
1496
|
) : null
|
|
1493
1497
|
] })) });
|
|
1494
1498
|
}
|
|
1495
|
-
const
|
|
1499
|
+
const qt = {
|
|
1496
1500
|
name: "Core:Button",
|
|
1497
1501
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1498
1502
|
defaultStyles: {
|
|
@@ -1526,12 +1530,9 @@ const Kt = {
|
|
|
1526
1530
|
static: !0,
|
|
1527
1531
|
noWrap: !0,
|
|
1528
1532
|
shouldReceiveBuilderProps: {
|
|
1529
|
-
builderBlock: !1,
|
|
1530
|
-
builderContext: !1,
|
|
1531
|
-
builderComponents: !1,
|
|
1532
1533
|
builderLinkComponent: !0
|
|
1533
1534
|
}
|
|
1534
|
-
},
|
|
1535
|
+
}, Kt = {
|
|
1535
1536
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1536
1537
|
name: "Columns",
|
|
1537
1538
|
isRSC: !0,
|
|
@@ -1738,19 +1739,13 @@ const Kt = {
|
|
|
1738
1739
|
builderComponents: !0,
|
|
1739
1740
|
builderLinkComponent: !0
|
|
1740
1741
|
}
|
|
1741
|
-
},
|
|
1742
|
-
shouldReceiveBuilderProps: {
|
|
1743
|
-
builderBlock: !1,
|
|
1744
|
-
builderContext: !1,
|
|
1745
|
-
builderComponents: !1,
|
|
1746
|
-
builderLinkComponent: !1
|
|
1747
|
-
},
|
|
1742
|
+
}, zt = {
|
|
1748
1743
|
name: "Fragment",
|
|
1749
1744
|
static: !0,
|
|
1750
1745
|
hidden: !0,
|
|
1751
1746
|
canHaveChildren: !0,
|
|
1752
1747
|
noWrap: !0
|
|
1753
|
-
},
|
|
1748
|
+
}, _t = {
|
|
1754
1749
|
name: "Image",
|
|
1755
1750
|
static: !0,
|
|
1756
1751
|
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 +1851,9 @@ const Kt = {
|
|
|
1856
1851
|
defaultValue: 0.7041
|
|
1857
1852
|
}],
|
|
1858
1853
|
shouldReceiveBuilderProps: {
|
|
1859
|
-
builderBlock: !0
|
|
1860
|
-
builderContext: !1,
|
|
1861
|
-
builderComponents: !1,
|
|
1862
|
-
builderLinkComponent: !1
|
|
1854
|
+
builderBlock: !0
|
|
1863
1855
|
}
|
|
1864
|
-
},
|
|
1865
|
-
shouldReceiveBuilderProps: {
|
|
1866
|
-
builderBlock: !1,
|
|
1867
|
-
builderContext: !1,
|
|
1868
|
-
builderComponents: !1,
|
|
1869
|
-
builderLinkComponent: !1
|
|
1870
|
-
},
|
|
1856
|
+
}, Jt = {
|
|
1871
1857
|
name: "Core:Section",
|
|
1872
1858
|
static: !0,
|
|
1873
1859
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1906,7 +1892,7 @@ const Kt = {
|
|
|
1906
1892
|
}
|
|
1907
1893
|
}
|
|
1908
1894
|
}]
|
|
1909
|
-
},
|
|
1895
|
+
}, Yt = {
|
|
1910
1896
|
name: "Slot",
|
|
1911
1897
|
isRSC: !0,
|
|
1912
1898
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1920,13 +1906,10 @@ const Kt = {
|
|
|
1920
1906
|
defaultValue: "children"
|
|
1921
1907
|
}],
|
|
1922
1908
|
shouldReceiveBuilderProps: {
|
|
1923
|
-
|
|
1924
|
-
builderContext: !0,
|
|
1925
|
-
builderComponents: !1,
|
|
1926
|
-
builderLinkComponent: !1
|
|
1909
|
+
builderContext: !0
|
|
1927
1910
|
}
|
|
1928
1911
|
};
|
|
1929
|
-
function
|
|
1912
|
+
function Gt(e) {
|
|
1930
1913
|
var t, n, i;
|
|
1931
1914
|
return /* @__PURE__ */ s(
|
|
1932
1915
|
"div",
|
|
@@ -1938,7 +1921,7 @@ function Qt(e) {
|
|
|
1938
1921
|
"builder-slot": e.name
|
|
1939
1922
|
},
|
|
1940
1923
|
children: /* @__PURE__ */ s(
|
|
1941
|
-
|
|
1924
|
+
D,
|
|
1942
1925
|
{
|
|
1943
1926
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1944
1927
|
path: `symbol.data.${e.name}`,
|
|
@@ -1949,7 +1932,7 @@ function Qt(e) {
|
|
|
1949
1932
|
}
|
|
1950
1933
|
);
|
|
1951
1934
|
}
|
|
1952
|
-
const
|
|
1935
|
+
const Qt = {
|
|
1953
1936
|
name: "Symbol",
|
|
1954
1937
|
noWrap: !0,
|
|
1955
1938
|
static: !0,
|
|
@@ -1988,7 +1971,7 @@ const Xt = {
|
|
|
1988
1971
|
builderComponents: !0,
|
|
1989
1972
|
builderLinkComponent: !0
|
|
1990
1973
|
}
|
|
1991
|
-
},
|
|
1974
|
+
}, le = {
|
|
1992
1975
|
"@type": "@builder.io/sdk:Element",
|
|
1993
1976
|
responsiveStyles: {
|
|
1994
1977
|
large: {
|
|
@@ -2010,7 +1993,7 @@ const Xt = {
|
|
|
2010
1993
|
text: "New tab"
|
|
2011
1994
|
}
|
|
2012
1995
|
}
|
|
2013
|
-
},
|
|
1996
|
+
}, se = {
|
|
2014
1997
|
"@type": "@builder.io/sdk:Element",
|
|
2015
1998
|
responsiveStyles: {
|
|
2016
1999
|
large: {
|
|
@@ -2026,7 +2009,7 @@ const Xt = {
|
|
|
2026
2009
|
text: "New tab content "
|
|
2027
2010
|
}
|
|
2028
2011
|
}
|
|
2029
|
-
},
|
|
2012
|
+
}, Xt = {
|
|
2030
2013
|
name: "Builder: Tabs",
|
|
2031
2014
|
inputs: [{
|
|
2032
2015
|
name: "tabs",
|
|
@@ -2036,16 +2019,16 @@ const Xt = {
|
|
|
2036
2019
|
name: "label",
|
|
2037
2020
|
type: "uiBlocks",
|
|
2038
2021
|
hideFromUI: !0,
|
|
2039
|
-
defaultValue: [
|
|
2022
|
+
defaultValue: [le]
|
|
2040
2023
|
}, {
|
|
2041
2024
|
name: "content",
|
|
2042
2025
|
type: "uiBlocks",
|
|
2043
2026
|
hideFromUI: !0,
|
|
2044
|
-
defaultValue: [
|
|
2027
|
+
defaultValue: [se]
|
|
2045
2028
|
}],
|
|
2046
2029
|
defaultValue: [{
|
|
2047
2030
|
label: [{
|
|
2048
|
-
...
|
|
2031
|
+
...le,
|
|
2049
2032
|
component: {
|
|
2050
2033
|
name: "Text",
|
|
2051
2034
|
options: {
|
|
@@ -2054,7 +2037,7 @@ const Xt = {
|
|
|
2054
2037
|
}
|
|
2055
2038
|
}],
|
|
2056
2039
|
content: [{
|
|
2057
|
-
...
|
|
2040
|
+
...se,
|
|
2058
2041
|
component: {
|
|
2059
2042
|
name: "Text",
|
|
2060
2043
|
options: {
|
|
@@ -2064,7 +2047,7 @@ const Xt = {
|
|
|
2064
2047
|
}]
|
|
2065
2048
|
}, {
|
|
2066
2049
|
label: [{
|
|
2067
|
-
...
|
|
2050
|
+
...le,
|
|
2068
2051
|
component: {
|
|
2069
2052
|
name: "Text",
|
|
2070
2053
|
options: {
|
|
@@ -2073,7 +2056,7 @@ const Xt = {
|
|
|
2073
2056
|
}
|
|
2074
2057
|
}],
|
|
2075
2058
|
content: [{
|
|
2076
|
-
...
|
|
2059
|
+
...se,
|
|
2077
2060
|
component: {
|
|
2078
2061
|
name: "Text",
|
|
2079
2062
|
options: {
|
|
@@ -2130,7 +2113,7 @@ const Xt = {
|
|
|
2130
2113
|
builderLinkComponent: !0
|
|
2131
2114
|
}
|
|
2132
2115
|
};
|
|
2133
|
-
function
|
|
2116
|
+
function Zt(e) {
|
|
2134
2117
|
var l;
|
|
2135
2118
|
const [t, n] = C(
|
|
2136
2119
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2141,7 +2124,7 @@ function en(e) {
|
|
|
2141
2124
|
function o(a) {
|
|
2142
2125
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2143
2126
|
}
|
|
2144
|
-
return /* @__PURE__ */
|
|
2127
|
+
return /* @__PURE__ */ P("div", { children: [
|
|
2145
2128
|
/* @__PURE__ */ s(
|
|
2146
2129
|
"div",
|
|
2147
2130
|
{
|
|
@@ -2161,7 +2144,7 @@ function en(e) {
|
|
|
2161
2144
|
},
|
|
2162
2145
|
onClick: (c) => o(r),
|
|
2163
2146
|
children: /* @__PURE__ */ s(
|
|
2164
|
-
|
|
2147
|
+
D,
|
|
2165
2148
|
{
|
|
2166
2149
|
parent: e.builderBlock.id,
|
|
2167
2150
|
path: `component.options.tabs.${r}.label`,
|
|
@@ -2177,7 +2160,7 @@ function en(e) {
|
|
|
2177
2160
|
}
|
|
2178
2161
|
),
|
|
2179
2162
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2180
|
-
|
|
2163
|
+
D,
|
|
2181
2164
|
{
|
|
2182
2165
|
parent: e.builderBlock.id,
|
|
2183
2166
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2189,12 +2172,9 @@ function en(e) {
|
|
|
2189
2172
|
) }) : null
|
|
2190
2173
|
] });
|
|
2191
2174
|
}
|
|
2192
|
-
const
|
|
2175
|
+
const en = {
|
|
2193
2176
|
shouldReceiveBuilderProps: {
|
|
2194
|
-
builderBlock: !1
|
|
2195
|
-
builderContext: !1,
|
|
2196
|
-
builderComponents: !1,
|
|
2197
|
-
builderLinkComponent: !1
|
|
2177
|
+
builderBlock: !1
|
|
2198
2178
|
},
|
|
2199
2179
|
name: "Text",
|
|
2200
2180
|
static: !0,
|
|
@@ -2214,7 +2194,7 @@ const tn = {
|
|
|
2214
2194
|
textAlign: "center"
|
|
2215
2195
|
}
|
|
2216
2196
|
};
|
|
2217
|
-
function
|
|
2197
|
+
function tn(e) {
|
|
2218
2198
|
var t;
|
|
2219
2199
|
return /* @__PURE__ */ s(
|
|
2220
2200
|
"div",
|
|
@@ -2227,13 +2207,7 @@ function nn(e) {
|
|
|
2227
2207
|
}
|
|
2228
2208
|
);
|
|
2229
2209
|
}
|
|
2230
|
-
const
|
|
2231
|
-
shouldReceiveBuilderProps: {
|
|
2232
|
-
builderBlock: !1,
|
|
2233
|
-
builderContext: !1,
|
|
2234
|
-
builderComponents: !1,
|
|
2235
|
-
builderLinkComponent: !1
|
|
2236
|
-
},
|
|
2210
|
+
const nn = {
|
|
2237
2211
|
name: "Custom Code",
|
|
2238
2212
|
static: !0,
|
|
2239
2213
|
requiredPermissions: ["editCode"],
|
|
@@ -2256,9 +2230,9 @@ const on = {
|
|
|
2256
2230
|
advanced: !0
|
|
2257
2231
|
}]
|
|
2258
2232
|
};
|
|
2259
|
-
function
|
|
2233
|
+
function on(e) {
|
|
2260
2234
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
2261
|
-
return
|
|
2235
|
+
return B(() => {
|
|
2262
2236
|
var r;
|
|
2263
2237
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
2264
2238
|
return;
|
|
@@ -2294,13 +2268,7 @@ function an(e) {
|
|
|
2294
2268
|
}
|
|
2295
2269
|
);
|
|
2296
2270
|
}
|
|
2297
|
-
const
|
|
2298
|
-
shouldReceiveBuilderProps: {
|
|
2299
|
-
builderBlock: !1,
|
|
2300
|
-
builderContext: !1,
|
|
2301
|
-
builderComponents: !1,
|
|
2302
|
-
builderLinkComponent: !1
|
|
2303
|
-
},
|
|
2271
|
+
const an = {
|
|
2304
2272
|
name: "Embed",
|
|
2305
2273
|
static: !0,
|
|
2306
2274
|
inputs: [{
|
|
@@ -2315,8 +2283,8 @@ const rn = {
|
|
|
2315
2283
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2316
2284
|
hideFromUI: !0
|
|
2317
2285
|
}]
|
|
2318
|
-
},
|
|
2319
|
-
function
|
|
2286
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2287
|
+
function sn(e) {
|
|
2320
2288
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2321
2289
|
function c() {
|
|
2322
2290
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2328,7 +2296,7 @@ function cn(e) {
|
|
|
2328
2296
|
n.push(d.src);
|
|
2329
2297
|
const m = document.createElement("script");
|
|
2330
2298
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2331
|
-
} else if (
|
|
2299
|
+
} else if (ln(d) && !o.includes(d.innerText))
|
|
2332
2300
|
try {
|
|
2333
2301
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2334
2302
|
} catch (m) {
|
|
@@ -2336,7 +2304,7 @@ function cn(e) {
|
|
|
2336
2304
|
}
|
|
2337
2305
|
}
|
|
2338
2306
|
}
|
|
2339
|
-
return
|
|
2307
|
+
return B(() => {
|
|
2340
2308
|
t.current && !a && (r(!0), c());
|
|
2341
2309
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2342
2310
|
"div",
|
|
@@ -2347,7 +2315,7 @@ function cn(e) {
|
|
|
2347
2315
|
}
|
|
2348
2316
|
);
|
|
2349
2317
|
}
|
|
2350
|
-
const
|
|
2318
|
+
const cn = {
|
|
2351
2319
|
name: "Form:Form",
|
|
2352
2320
|
// editableTags: ['builder-form-error']
|
|
2353
2321
|
defaults: {
|
|
@@ -2584,97 +2552,97 @@ const dn = {
|
|
|
2584
2552
|
builderComponents: !0,
|
|
2585
2553
|
builderLinkComponent: !0
|
|
2586
2554
|
}
|
|
2587
|
-
},
|
|
2555
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2588
2556
|
const e = process.env.NODE_ENV || "production";
|
|
2589
|
-
return
|
|
2590
|
-
},
|
|
2557
|
+
return dn.includes(e) ? e : "production";
|
|
2558
|
+
}, mn = (e, t, n) => {
|
|
2591
2559
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2592
2560
|
return i === void 0 || i === e ? n : i;
|
|
2593
2561
|
};
|
|
2594
|
-
function
|
|
2562
|
+
function fn(e) {
|
|
2595
2563
|
var d, m;
|
|
2596
2564
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2597
|
-
function c(
|
|
2565
|
+
function c(g) {
|
|
2598
2566
|
var I, x;
|
|
2599
2567
|
const p = {
|
|
2600
2568
|
...e.builderContext.rootState,
|
|
2601
|
-
...
|
|
2569
|
+
...g
|
|
2602
2570
|
};
|
|
2603
2571
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2604
2572
|
}
|
|
2605
2573
|
function u() {
|
|
2606
2574
|
return $() && e.previewState || n;
|
|
2607
2575
|
}
|
|
2608
|
-
function f(
|
|
2576
|
+
function f(g) {
|
|
2609
2577
|
var I;
|
|
2610
2578
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2611
2579
|
if (e.sendSubmissionsTo === "zapier")
|
|
2612
|
-
|
|
2580
|
+
g.preventDefault();
|
|
2613
2581
|
else if (p) {
|
|
2614
2582
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2615
|
-
|
|
2583
|
+
g.preventDefault();
|
|
2616
2584
|
return;
|
|
2617
2585
|
}
|
|
2618
|
-
|
|
2619
|
-
const x =
|
|
2586
|
+
g.preventDefault();
|
|
2587
|
+
const x = g.currentTarget || g.target, E = e.customHeaders || {};
|
|
2620
2588
|
let V;
|
|
2621
|
-
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((
|
|
2589
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2622
2590
|
let h;
|
|
2623
|
-
const y =
|
|
2624
|
-
if (
|
|
2625
|
-
if (
|
|
2626
|
-
if (
|
|
2627
|
-
return h =
|
|
2591
|
+
const y = b.name;
|
|
2592
|
+
if (b instanceof HTMLInputElement)
|
|
2593
|
+
if (b.type === "radio") {
|
|
2594
|
+
if (b.checked)
|
|
2595
|
+
return h = b.name, {
|
|
2628
2596
|
key: y,
|
|
2629
2597
|
value: h
|
|
2630
2598
|
};
|
|
2631
|
-
} else if (
|
|
2632
|
-
h =
|
|
2633
|
-
else if (
|
|
2634
|
-
const v =
|
|
2599
|
+
} else if (b.type === "checkbox")
|
|
2600
|
+
h = b.checked;
|
|
2601
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2602
|
+
const v = b.valueAsNumber;
|
|
2635
2603
|
isNaN(v) || (h = v);
|
|
2636
2604
|
} else
|
|
2637
|
-
|
|
2605
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2638
2606
|
else
|
|
2639
|
-
h =
|
|
2607
|
+
h = b.value;
|
|
2640
2608
|
return {
|
|
2641
2609
|
key: y,
|
|
2642
2610
|
value: h
|
|
2643
2611
|
};
|
|
2644
2612
|
});
|
|
2645
2613
|
let S = e.contentType;
|
|
2646
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value:
|
|
2647
|
-
(
|
|
2614
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2615
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
|
|
2648
2616
|
}), S !== "application/json")
|
|
2649
2617
|
V = A;
|
|
2650
2618
|
else {
|
|
2651
|
-
const
|
|
2619
|
+
const b = {};
|
|
2652
2620
|
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2653
|
-
|
|
2654
|
-
}), V = JSON.stringify(
|
|
2621
|
+
Ee(b, y, h);
|
|
2622
|
+
}), V = JSON.stringify(b);
|
|
2655
2623
|
}
|
|
2656
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2624
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
|
|
2657
2625
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2658
2626
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2659
2627
|
return;
|
|
2660
2628
|
i("sending");
|
|
2661
|
-
const
|
|
2629
|
+
const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2662
2630
|
e.sendSubmissionsToEmail || ""
|
|
2663
2631
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2664
2632
|
fetch(
|
|
2665
|
-
e.sendSubmissionsTo === "email" ?
|
|
2666
|
-
{ body: V, headers:
|
|
2633
|
+
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2634
|
+
{ body: V, headers: E, method: e.method || "post" }
|
|
2667
2635
|
).then(
|
|
2668
|
-
async (
|
|
2636
|
+
async (b) => {
|
|
2669
2637
|
let h;
|
|
2670
|
-
const y =
|
|
2671
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2672
|
-
let v =
|
|
2638
|
+
const y = b.headers.get("content-type");
|
|
2639
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2640
|
+
let v = mn(h, e.errorMessagePath);
|
|
2673
2641
|
v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
|
|
2674
2642
|
}
|
|
2675
|
-
if (l(h), i(
|
|
2643
|
+
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2676
2644
|
const v = new CustomEvent("submit:success", {
|
|
2677
|
-
detail: { res:
|
|
2645
|
+
detail: { res: b, body: h }
|
|
2678
2646
|
});
|
|
2679
2647
|
if (t.current) {
|
|
2680
2648
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2691,18 +2659,18 @@ function hn(e) {
|
|
|
2691
2659
|
location.href = e.successUrl;
|
|
2692
2660
|
}
|
|
2693
2661
|
},
|
|
2694
|
-
(
|
|
2662
|
+
(b) => {
|
|
2695
2663
|
const h = new CustomEvent("submit:error", {
|
|
2696
|
-
detail: { error:
|
|
2664
|
+
detail: { error: b }
|
|
2697
2665
|
});
|
|
2698
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(
|
|
2666
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
|
|
2699
2667
|
}
|
|
2700
2668
|
);
|
|
2701
2669
|
}
|
|
2702
2670
|
}
|
|
2703
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
2704
2672
|
" ",
|
|
2705
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ P(
|
|
2706
2674
|
"form",
|
|
2707
2675
|
{
|
|
2708
2676
|
validate: e.validate,
|
|
@@ -2710,13 +2678,13 @@ function hn(e) {
|
|
|
2710
2678
|
action: !e.sendWithJs && e.action,
|
|
2711
2679
|
method: e.method,
|
|
2712
2680
|
name: e.name,
|
|
2713
|
-
onSubmit: (
|
|
2681
|
+
onSubmit: (g) => f(g),
|
|
2714
2682
|
...e.attributes,
|
|
2715
2683
|
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((
|
|
2684
|
+
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
2685
|
z,
|
|
2718
2686
|
{
|
|
2719
|
-
block:
|
|
2687
|
+
block: g,
|
|
2720
2688
|
context: e.builderContext,
|
|
2721
2689
|
registeredComponents: e.builderComponents,
|
|
2722
2690
|
linkComponent: e.builderLinkComponent
|
|
@@ -2724,7 +2692,7 @@ function hn(e) {
|
|
|
2724
2692
|
`form-block-${p}`
|
|
2725
2693
|
)) }) : null,
|
|
2726
2694
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2727
|
-
|
|
2695
|
+
D,
|
|
2728
2696
|
{
|
|
2729
2697
|
path: "errorMessage",
|
|
2730
2698
|
blocks: e.errorMessage,
|
|
@@ -2732,7 +2700,7 @@ function hn(e) {
|
|
|
2732
2700
|
}
|
|
2733
2701
|
) : null,
|
|
2734
2702
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2735
|
-
|
|
2703
|
+
D,
|
|
2736
2704
|
{
|
|
2737
2705
|
path: "sendingMessage",
|
|
2738
2706
|
blocks: e.sendingMessage,
|
|
@@ -2741,7 +2709,7 @@ function hn(e) {
|
|
|
2741
2709
|
) : null,
|
|
2742
2710
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2743
2711
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2744
|
-
|
|
2712
|
+
D,
|
|
2745
2713
|
{
|
|
2746
2714
|
path: "successMessage",
|
|
2747
2715
|
blocks: e.successMessage,
|
|
@@ -2756,13 +2724,7 @@ function hn(e) {
|
|
|
2756
2724
|
" "
|
|
2757
2725
|
] });
|
|
2758
2726
|
}
|
|
2759
|
-
const
|
|
2760
|
-
shouldReceiveBuilderProps: {
|
|
2761
|
-
builderBlock: !1,
|
|
2762
|
-
builderContext: !1,
|
|
2763
|
-
builderComponents: !1,
|
|
2764
|
-
builderLinkComponent: !1
|
|
2765
|
-
},
|
|
2727
|
+
const hn = {
|
|
2766
2728
|
name: "Form:Input",
|
|
2767
2729
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2768
2730
|
inputs: [
|
|
@@ -2815,7 +2777,7 @@ const bn = {
|
|
|
2815
2777
|
}
|
|
2816
2778
|
};
|
|
2817
2779
|
function gn(e) {
|
|
2818
|
-
return /* @__PURE__ */
|
|
2780
|
+
return /* @__PURE__ */ Re(
|
|
2819
2781
|
"input",
|
|
2820
2782
|
{
|
|
2821
2783
|
...e.attributes,
|
|
@@ -2829,13 +2791,7 @@ function gn(e) {
|
|
|
2829
2791
|
}
|
|
2830
2792
|
);
|
|
2831
2793
|
}
|
|
2832
|
-
const
|
|
2833
|
-
shouldReceiveBuilderProps: {
|
|
2834
|
-
builderBlock: !1,
|
|
2835
|
-
builderContext: !1,
|
|
2836
|
-
builderComponents: !1,
|
|
2837
|
-
builderLinkComponent: !1
|
|
2838
|
-
},
|
|
2794
|
+
const bn = {
|
|
2839
2795
|
name: "Form:Select",
|
|
2840
2796
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2841
2797
|
defaultStyles: {
|
|
@@ -2878,9 +2834,9 @@ const pn = {
|
|
|
2878
2834
|
static: !0,
|
|
2879
2835
|
noWrap: !0
|
|
2880
2836
|
};
|
|
2881
|
-
function
|
|
2837
|
+
function pn(e) {
|
|
2882
2838
|
var t;
|
|
2883
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ Re(
|
|
2884
2840
|
"select",
|
|
2885
2841
|
{
|
|
2886
2842
|
...e.attributes,
|
|
@@ -2893,13 +2849,7 @@ function yn(e) {
|
|
|
2893
2849
|
(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
2850
|
);
|
|
2895
2851
|
}
|
|
2896
|
-
const
|
|
2897
|
-
shouldReceiveBuilderProps: {
|
|
2898
|
-
builderBlock: !1,
|
|
2899
|
-
builderContext: !1,
|
|
2900
|
-
builderComponents: !1,
|
|
2901
|
-
builderLinkComponent: !1
|
|
2902
|
-
},
|
|
2852
|
+
const yn = {
|
|
2903
2853
|
name: "Form:SubmitButton",
|
|
2904
2854
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2905
2855
|
defaultStyles: {
|
|
@@ -2925,16 +2875,10 @@ const xn = {
|
|
|
2925
2875
|
// TODO: defaultChildren
|
|
2926
2876
|
// canHaveChildren: true,
|
|
2927
2877
|
};
|
|
2928
|
-
function
|
|
2878
|
+
function xn(e) {
|
|
2929
2879
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2930
2880
|
}
|
|
2931
|
-
const
|
|
2932
|
-
shouldReceiveBuilderProps: {
|
|
2933
|
-
builderBlock: !1,
|
|
2934
|
-
builderContext: !1,
|
|
2935
|
-
builderComponents: !1,
|
|
2936
|
-
builderLinkComponent: !1
|
|
2937
|
-
},
|
|
2881
|
+
const vn = {
|
|
2938
2882
|
name: "Form:TextArea",
|
|
2939
2883
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2940
2884
|
inputs: [{
|
|
@@ -2971,7 +2915,7 @@ const Sn = {
|
|
|
2971
2915
|
static: !0,
|
|
2972
2916
|
noWrap: !0
|
|
2973
2917
|
};
|
|
2974
|
-
function
|
|
2918
|
+
function Sn(e) {
|
|
2975
2919
|
return /* @__PURE__ */ s(
|
|
2976
2920
|
"textarea",
|
|
2977
2921
|
{
|
|
@@ -2984,13 +2928,7 @@ function kn(e) {
|
|
|
2984
2928
|
}
|
|
2985
2929
|
);
|
|
2986
2930
|
}
|
|
2987
|
-
const
|
|
2988
|
-
shouldReceiveBuilderProps: {
|
|
2989
|
-
builderBlock: !1,
|
|
2990
|
-
builderContext: !1,
|
|
2991
|
-
builderComponents: !1,
|
|
2992
|
-
builderLinkComponent: !1
|
|
2993
|
-
},
|
|
2931
|
+
const kn = {
|
|
2994
2932
|
// friendlyName?
|
|
2995
2933
|
name: "Raw:Img",
|
|
2996
2934
|
hideFromInsertMenu: !0,
|
|
@@ -3005,7 +2943,7 @@ const Cn = {
|
|
|
3005
2943
|
noWrap: !0,
|
|
3006
2944
|
static: !0
|
|
3007
2945
|
};
|
|
3008
|
-
function
|
|
2946
|
+
function Cn(e) {
|
|
3009
2947
|
return /* @__PURE__ */ s(
|
|
3010
2948
|
"img",
|
|
3011
2949
|
{
|
|
@@ -3020,7 +2958,7 @@ function Tn(e) {
|
|
|
3020
2958
|
$() && e.imgSrc || "default-key"
|
|
3021
2959
|
);
|
|
3022
2960
|
}
|
|
3023
|
-
const
|
|
2961
|
+
const Tn = {
|
|
3024
2962
|
name: "Video",
|
|
3025
2963
|
canHaveChildren: !0,
|
|
3026
2964
|
defaultStyles: {
|
|
@@ -3102,13 +3040,10 @@ const In = {
|
|
|
3102
3040
|
advanced: !0
|
|
3103
3041
|
}],
|
|
3104
3042
|
shouldReceiveBuilderProps: {
|
|
3105
|
-
builderBlock: !0
|
|
3106
|
-
builderContext: !1,
|
|
3107
|
-
builderComponents: !1,
|
|
3108
|
-
builderLinkComponent: !1
|
|
3043
|
+
builderBlock: !0
|
|
3109
3044
|
}
|
|
3110
3045
|
};
|
|
3111
|
-
function
|
|
3046
|
+
function In(e) {
|
|
3112
3047
|
var i, o, l, a, r, c, u;
|
|
3113
3048
|
function t() {
|
|
3114
3049
|
return {
|
|
@@ -3134,7 +3069,7 @@ function wn(e) {
|
|
|
3134
3069
|
...t()
|
|
3135
3070
|
};
|
|
3136
3071
|
}
|
|
3137
|
-
return /* @__PURE__ */
|
|
3072
|
+
return /* @__PURE__ */ P(
|
|
3138
3073
|
"div",
|
|
3139
3074
|
{
|
|
3140
3075
|
style: {
|
|
@@ -3209,64 +3144,64 @@ function wn(e) {
|
|
|
3209
3144
|
}
|
|
3210
3145
|
);
|
|
3211
3146
|
}
|
|
3212
|
-
const
|
|
3213
|
-
component:
|
|
3214
|
-
...
|
|
3147
|
+
const wn = () => [{
|
|
3148
|
+
component: on,
|
|
3149
|
+
...nn
|
|
3215
3150
|
}, {
|
|
3216
|
-
component:
|
|
3217
|
-
...
|
|
3151
|
+
component: sn,
|
|
3152
|
+
...an
|
|
3218
3153
|
}, {
|
|
3219
|
-
component:
|
|
3220
|
-
...
|
|
3154
|
+
component: fn,
|
|
3155
|
+
...cn
|
|
3221
3156
|
}, {
|
|
3222
3157
|
component: gn,
|
|
3223
|
-
...
|
|
3158
|
+
...hn
|
|
3159
|
+
}, {
|
|
3160
|
+
component: xn,
|
|
3161
|
+
...yn
|
|
3224
3162
|
}, {
|
|
3225
|
-
component:
|
|
3226
|
-
...
|
|
3163
|
+
component: pn,
|
|
3164
|
+
...bn
|
|
3227
3165
|
}, {
|
|
3228
|
-
component:
|
|
3229
|
-
...
|
|
3166
|
+
component: Sn,
|
|
3167
|
+
...vn
|
|
3230
3168
|
}, {
|
|
3231
|
-
component:
|
|
3232
|
-
...
|
|
3169
|
+
component: Cn,
|
|
3170
|
+
...kn
|
|
3233
3171
|
}, {
|
|
3234
|
-
component:
|
|
3235
|
-
...
|
|
3172
|
+
component: In,
|
|
3173
|
+
...Tn
|
|
3174
|
+
}], Se = () => [{
|
|
3175
|
+
component: ot,
|
|
3176
|
+
...qt
|
|
3236
3177
|
}, {
|
|
3237
|
-
component:
|
|
3238
|
-
...In
|
|
3239
|
-
}], ke = () => [{
|
|
3240
|
-
component: at,
|
|
3178
|
+
component: $t,
|
|
3241
3179
|
...Kt
|
|
3242
3180
|
}, {
|
|
3243
|
-
component:
|
|
3181
|
+
component: Dt,
|
|
3244
3182
|
...zt
|
|
3245
3183
|
}, {
|
|
3246
|
-
component:
|
|
3184
|
+
component: jt,
|
|
3247
3185
|
..._t
|
|
3248
3186
|
}, {
|
|
3249
3187
|
component: Mt,
|
|
3250
3188
|
...Jt
|
|
3251
3189
|
}, {
|
|
3252
|
-
component:
|
|
3190
|
+
component: Gt,
|
|
3253
3191
|
...Yt
|
|
3254
3192
|
}, {
|
|
3255
|
-
component:
|
|
3256
|
-
...
|
|
3193
|
+
component: Yn,
|
|
3194
|
+
...Qt
|
|
3257
3195
|
}, {
|
|
3258
|
-
component:
|
|
3259
|
-
...
|
|
3260
|
-
}, {
|
|
3261
|
-
component: nn,
|
|
3262
|
-
...tn
|
|
3196
|
+
component: tn,
|
|
3197
|
+
...en
|
|
3263
3198
|
}, {
|
|
3264
|
-
component:
|
|
3265
|
-
...
|
|
3199
|
+
component: Zt,
|
|
3200
|
+
...Xt
|
|
3266
3201
|
}, {
|
|
3267
|
-
component:
|
|
3268
|
-
...
|
|
3269
|
-
}, ...
|
|
3202
|
+
component: Ht,
|
|
3203
|
+
...Ut
|
|
3204
|
+
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3270
3205
|
function getAndSetVariantId() {
|
|
3271
3206
|
function setCookie(name, value, days) {
|
|
3272
3207
|
let expires = '';
|
|
@@ -3322,7 +3257,7 @@ const Rn = () => [{
|
|
|
3322
3257
|
}).join('');
|
|
3323
3258
|
styleEl.innerHTML = newStyleStr;
|
|
3324
3259
|
}
|
|
3325
|
-
}`,
|
|
3260
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3326
3261
|
if (!navigator.cookieEnabled) {
|
|
3327
3262
|
return;
|
|
3328
3263
|
}
|
|
@@ -3356,26 +3291,26 @@ const Rn = () => [{
|
|
|
3356
3291
|
thisScriptEl?.remove();
|
|
3357
3292
|
}
|
|
3358
3293
|
return;
|
|
3359
|
-
}`,
|
|
3294
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3360
3295
|
...t,
|
|
3361
3296
|
testVariationId: t.id,
|
|
3362
3297
|
id: e == null ? void 0 : e.id
|
|
3363
|
-
})),
|
|
3298
|
+
})), Bn = ({
|
|
3364
3299
|
canTrack: e,
|
|
3365
3300
|
content: t
|
|
3366
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
3367
|
-
window.${
|
|
3368
|
-
window.${
|
|
3369
|
-
`,
|
|
3370
|
-
window.${
|
|
3371
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3372
|
-
)`,
|
|
3301
|
+
}) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(K), Vn = () => `
|
|
3302
|
+
window.${Oe} = ${Rn}
|
|
3303
|
+
window.${je} = ${En}
|
|
3304
|
+
`, An = (e, t) => `
|
|
3305
|
+
window.${Oe}(
|
|
3306
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3307
|
+
)`, Nn = ({
|
|
3373
3308
|
contentId: e,
|
|
3374
3309
|
variationId: t
|
|
3375
|
-
}) => `window.${
|
|
3376
|
-
"${t}", "${e}", ${
|
|
3310
|
+
}) => `window.${je}(
|
|
3311
|
+
"${t}", "${e}", ${Me}
|
|
3377
3312
|
)`;
|
|
3378
|
-
function
|
|
3313
|
+
function ce(e) {
|
|
3379
3314
|
return /* @__PURE__ */ s(
|
|
3380
3315
|
"script",
|
|
3381
3316
|
{
|
|
@@ -3384,10 +3319,10 @@ function de(e) {
|
|
|
3384
3319
|
}
|
|
3385
3320
|
);
|
|
3386
3321
|
}
|
|
3387
|
-
function
|
|
3322
|
+
function ke(e) {
|
|
3388
3323
|
return Math.round(e * 1e3) / 1e3;
|
|
3389
3324
|
}
|
|
3390
|
-
const
|
|
3325
|
+
const Wn = (e, t, n = !0) => {
|
|
3391
3326
|
if (!(e instanceof HTMLElement))
|
|
3392
3327
|
return null;
|
|
3393
3328
|
let i = n ? e : e.parentElement;
|
|
@@ -3398,28 +3333,28 @@ const Fn = (e, t, n = !0) => {
|
|
|
3398
3333
|
return i;
|
|
3399
3334
|
} while (i = i.parentElement);
|
|
3400
3335
|
return null;
|
|
3401
|
-
},
|
|
3336
|
+
}, Fn = (e) => Wn(e, (t) => {
|
|
3402
3337
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3403
3338
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3404
|
-
}),
|
|
3339
|
+
}), Ce = ({
|
|
3405
3340
|
event: e,
|
|
3406
3341
|
target: t
|
|
3407
3342
|
}) => {
|
|
3408
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3343
|
+
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
3344
|
return {
|
|
3410
3345
|
x: l,
|
|
3411
3346
|
y: a
|
|
3412
3347
|
};
|
|
3413
|
-
},
|
|
3414
|
-
const t = e.target, n = t &&
|
|
3348
|
+
}, $n = (e) => {
|
|
3349
|
+
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3415
3350
|
return {
|
|
3416
3351
|
targetBuilderElement: i || void 0,
|
|
3417
3352
|
metadata: {
|
|
3418
|
-
targetOffset: t ?
|
|
3353
|
+
targetOffset: t ? Ce({
|
|
3419
3354
|
event: e,
|
|
3420
3355
|
target: t
|
|
3421
3356
|
}) : void 0,
|
|
3422
|
-
builderTargetOffset: n ?
|
|
3357
|
+
builderTargetOffset: n ? Ce({
|
|
3423
3358
|
event: e,
|
|
3424
3359
|
target: n
|
|
3425
3360
|
}) : void 0,
|
|
@@ -3452,15 +3387,15 @@ font-weight: ${r};
|
|
|
3452
3387
|
`.trim());
|
|
3453
3388
|
}
|
|
3454
3389
|
return o;
|
|
3455
|
-
},
|
|
3390
|
+
}, Ln = ({
|
|
3456
3391
|
customFonts: e
|
|
3457
3392
|
}) => {
|
|
3458
3393
|
var t;
|
|
3459
3394
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3460
|
-
},
|
|
3395
|
+
}, On = ({
|
|
3461
3396
|
cssCode: e,
|
|
3462
3397
|
contentId: t
|
|
3463
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3398
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
|
|
3464
3399
|
.builder-button {
|
|
3465
3400
|
all: unset;
|
|
3466
3401
|
}
|
|
@@ -3477,9 +3412,9 @@ font-weight: ${r};
|
|
|
3477
3412
|
text-align: inherit;
|
|
3478
3413
|
font-family: inherit;
|
|
3479
3414
|
}
|
|
3480
|
-
`,
|
|
3481
|
-
function
|
|
3482
|
-
var V, A, O, S, w,
|
|
3415
|
+
`, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
|
|
3416
|
+
function Hn(e) {
|
|
3417
|
+
var V, A, O, S, w, N, b;
|
|
3483
3418
|
const t = ee(null);
|
|
3484
3419
|
function n(h) {
|
|
3485
3420
|
var v, k;
|
|
@@ -3493,7 +3428,7 @@ function qn(e) {
|
|
|
3493
3428
|
}));
|
|
3494
3429
|
}
|
|
3495
3430
|
function i(h) {
|
|
3496
|
-
var v, k, T,
|
|
3431
|
+
var v, k, T, W, j;
|
|
3497
3432
|
const y = {
|
|
3498
3433
|
...e.builderContextSignal.content,
|
|
3499
3434
|
...h,
|
|
@@ -3504,7 +3439,7 @@ function qn(e) {
|
|
|
3504
3439
|
meta: {
|
|
3505
3440
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3506
3441
|
...h == null ? void 0 : h.meta,
|
|
3507
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (
|
|
3442
|
+
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
3443
|
}
|
|
3509
3444
|
};
|
|
3510
3445
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3522,7 +3457,7 @@ function qn(e) {
|
|
|
3522
3457
|
() => e.contentWrapper || "div"
|
|
3523
3458
|
);
|
|
3524
3459
|
function r(h) {
|
|
3525
|
-
return
|
|
3460
|
+
return Ye({
|
|
3526
3461
|
model: e.model,
|
|
3527
3462
|
trustedHosts: e.trustedHosts,
|
|
3528
3463
|
callbacks: {
|
|
@@ -3536,7 +3471,7 @@ function qn(e) {
|
|
|
3536
3471
|
});
|
|
3537
3472
|
},
|
|
3538
3473
|
animation: (y) => {
|
|
3539
|
-
|
|
3474
|
+
Ne(y);
|
|
3540
3475
|
},
|
|
3541
3476
|
contentUpdate: (y) => {
|
|
3542
3477
|
i(y);
|
|
@@ -3559,35 +3494,35 @@ function qn(e) {
|
|
|
3559
3494
|
enableCache: !1
|
|
3560
3495
|
});
|
|
3561
3496
|
}
|
|
3562
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3497
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3563
3498
|
function I(h) {
|
|
3564
3499
|
var y, v;
|
|
3565
3500
|
if (e.builderContextSignal.content) {
|
|
3566
3501
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3567
|
-
|
|
3502
|
+
he({
|
|
3568
3503
|
type: "click",
|
|
3569
3504
|
canTrack: Q(e.canTrack),
|
|
3570
3505
|
contentId: T,
|
|
3571
3506
|
apiKey: e.apiKey,
|
|
3572
3507
|
variationId: k !== T ? k : void 0,
|
|
3573
|
-
|
|
3574
|
-
unique: !
|
|
3508
|
+
...$n(h),
|
|
3509
|
+
unique: !g
|
|
3575
3510
|
});
|
|
3576
3511
|
}
|
|
3577
|
-
|
|
3512
|
+
g || p(!0);
|
|
3578
3513
|
}
|
|
3579
3514
|
function x() {
|
|
3580
3515
|
var y, v, k;
|
|
3581
3516
|
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 (!
|
|
3517
|
+
Object.entries(h).forEach(([T, W]) => {
|
|
3518
|
+
if (!W || d[T] || u[T] && !$())
|
|
3584
3519
|
return;
|
|
3585
3520
|
d[T] = !0;
|
|
3586
|
-
const j =
|
|
3521
|
+
const j = W.replace(
|
|
3587
3522
|
/{{([^}]+)}}/g,
|
|
3588
|
-
(F,
|
|
3523
|
+
(F, Ue) => String(
|
|
3589
3524
|
q({
|
|
3590
|
-
code:
|
|
3525
|
+
code: Ue,
|
|
3591
3526
|
context: e.context || {},
|
|
3592
3527
|
localState: void 0,
|
|
3593
3528
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3596,24 +3531,24 @@ function qn(e) {
|
|
|
3596
3531
|
})
|
|
3597
3532
|
)
|
|
3598
3533
|
);
|
|
3599
|
-
|
|
3534
|
+
Ge(j).then((F) => F.json()).then((F) => {
|
|
3600
3535
|
n({
|
|
3601
3536
|
[T]: F
|
|
3602
3537
|
}), u[T] = !0;
|
|
3603
3538
|
}).catch((F) => {
|
|
3604
|
-
console.error("error fetching dynamic data",
|
|
3539
|
+
console.error("error fetching dynamic data", W, F);
|
|
3605
3540
|
}).finally(() => {
|
|
3606
3541
|
d[T] = !1;
|
|
3607
3542
|
});
|
|
3608
3543
|
});
|
|
3609
3544
|
}
|
|
3610
|
-
function
|
|
3545
|
+
function E() {
|
|
3611
3546
|
$() && window.dispatchEvent(
|
|
3612
3547
|
new CustomEvent(
|
|
3613
3548
|
"builder:component:stateChange",
|
|
3614
3549
|
{
|
|
3615
3550
|
detail: {
|
|
3616
|
-
state:
|
|
3551
|
+
state: de(e.builderContextSignal.rootState),
|
|
3617
3552
|
ref: {
|
|
3618
3553
|
name: e.model
|
|
3619
3554
|
}
|
|
@@ -3622,10 +3557,10 @@ function qn(e) {
|
|
|
3622
3557
|
)
|
|
3623
3558
|
);
|
|
3624
3559
|
}
|
|
3625
|
-
return
|
|
3560
|
+
return B(() => {
|
|
3626
3561
|
var h, y;
|
|
3627
3562
|
if (G()) {
|
|
3628
|
-
if ($() && (window.addEventListener("message", r),
|
|
3563
|
+
if ($() && (window.addEventListener("message", r), Ke(), ze({
|
|
3629
3564
|
...e.locale ? {
|
|
3630
3565
|
locale: e.locale
|
|
3631
3566
|
} : {},
|
|
@@ -3638,27 +3573,27 @@ function qn(e) {
|
|
|
3638
3573
|
}), Object.values(
|
|
3639
3574
|
e.builderContextSignal.componentInfos
|
|
3640
3575
|
).forEach((k) => {
|
|
3641
|
-
var
|
|
3642
|
-
const T =
|
|
3643
|
-
(
|
|
3576
|
+
var W;
|
|
3577
|
+
const T = _e(k);
|
|
3578
|
+
(W = window.parent) == null || W.postMessage(T, "*");
|
|
3644
3579
|
}), window.addEventListener(
|
|
3645
3580
|
"builder:component:stateChangeListenerActivated",
|
|
3646
|
-
|
|
3581
|
+
E
|
|
3647
3582
|
)), 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
|
-
|
|
3583
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
|
|
3584
|
+
he({
|
|
3650
3585
|
type: "impression",
|
|
3651
3586
|
canTrack: !0,
|
|
3652
3587
|
contentId: T,
|
|
3653
|
-
apiKey:
|
|
3588
|
+
apiKey: W,
|
|
3654
3589
|
variationId: k !== T ? k : void 0
|
|
3655
3590
|
});
|
|
3656
3591
|
}
|
|
3657
|
-
if (
|
|
3658
|
-
const k = new URL(location.href).searchParams, T = k.get("builder.preview"),
|
|
3592
|
+
if (Je() && !$()) {
|
|
3593
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
|
|
3659
3594
|
`builder.overrides.${T}`
|
|
3660
3595
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3661
|
-
T === e.model && j === e.apiKey && (!e.content ||
|
|
3596
|
+
T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
|
|
3662
3597
|
model: e.model,
|
|
3663
3598
|
apiKey: e.apiKey,
|
|
3664
3599
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3667,30 +3602,30 @@ function qn(e) {
|
|
|
3667
3602
|
});
|
|
3668
3603
|
}
|
|
3669
3604
|
}
|
|
3670
|
-
}, []),
|
|
3605
|
+
}, []), B(() => {
|
|
3671
3606
|
e.apiKey || Z.error(
|
|
3672
3607
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3673
|
-
), c(), x(),
|
|
3674
|
-
}, []),
|
|
3608
|
+
), c(), x(), E();
|
|
3609
|
+
}, []), B(() => {
|
|
3675
3610
|
e.content && i(e.content);
|
|
3676
|
-
}, [e.content]),
|
|
3611
|
+
}, [e.content]), B(() => {
|
|
3677
3612
|
c();
|
|
3678
|
-
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]),
|
|
3613
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3679
3614
|
x();
|
|
3680
|
-
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]),
|
|
3681
|
-
|
|
3682
|
-
}, [e.builderContextSignal.rootState]),
|
|
3615
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
|
|
3616
|
+
E();
|
|
3617
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3683
3618
|
e.data && n(e.data);
|
|
3684
|
-
}, [e.data]),
|
|
3619
|
+
}, [e.data]), B(() => {
|
|
3685
3620
|
e.locale && n({
|
|
3686
3621
|
locale: e.locale
|
|
3687
3622
|
});
|
|
3688
|
-
}, [e.locale]),
|
|
3623
|
+
}, [e.locale]), B(() => () => {
|
|
3689
3624
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3690
3625
|
"builder:component:stateChangeListenerActivated",
|
|
3691
|
-
|
|
3626
|
+
E
|
|
3692
3627
|
));
|
|
3693
|
-
}, []), /* @__PURE__ */ s(
|
|
3628
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3694
3629
|
l,
|
|
3695
3630
|
{
|
|
3696
3631
|
ref: t,
|
|
@@ -3699,29 +3634,29 @@ function qn(e) {
|
|
|
3699
3634
|
"builder-model": e.model,
|
|
3700
3635
|
...o(),
|
|
3701
3636
|
...e.contentWrapperProps,
|
|
3702
|
-
className:
|
|
3703
|
-
((
|
|
3637
|
+
className: Un(
|
|
3638
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3704
3639
|
),
|
|
3705
3640
|
children: e.children
|
|
3706
3641
|
}
|
|
3707
3642
|
) : null });
|
|
3708
3643
|
}
|
|
3709
|
-
function
|
|
3644
|
+
function qn(e) {
|
|
3710
3645
|
const [t, n] = C(
|
|
3711
3646
|
() => `
|
|
3712
|
-
${
|
|
3647
|
+
${On({
|
|
3713
3648
|
cssCode: e.cssCode,
|
|
3714
3649
|
contentId: e.contentId
|
|
3715
3650
|
})}
|
|
3716
|
-
${
|
|
3651
|
+
${Ln({
|
|
3717
3652
|
customFonts: e.customFonts
|
|
3718
3653
|
})}
|
|
3719
|
-
${
|
|
3654
|
+
${Mn(e.isNestedRender)}
|
|
3720
3655
|
`.trim()
|
|
3721
3656
|
);
|
|
3722
|
-
return /* @__PURE__ */ s(
|
|
3657
|
+
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3723
3658
|
}
|
|
3724
|
-
const
|
|
3659
|
+
const Kn = ({
|
|
3725
3660
|
content: e,
|
|
3726
3661
|
data: t,
|
|
3727
3662
|
locale: n
|
|
@@ -3738,7 +3673,7 @@ const zn = ({
|
|
|
3738
3673
|
locale: n
|
|
3739
3674
|
} : {}
|
|
3740
3675
|
};
|
|
3741
|
-
},
|
|
3676
|
+
}, zn = ({
|
|
3742
3677
|
content: e,
|
|
3743
3678
|
data: t
|
|
3744
3679
|
}) => e ? {
|
|
@@ -3749,12 +3684,12 @@ const zn = ({
|
|
|
3749
3684
|
},
|
|
3750
3685
|
meta: e == null ? void 0 : e.meta
|
|
3751
3686
|
} : void 0;
|
|
3752
|
-
function
|
|
3753
|
-
var c, u, f, d, m,
|
|
3687
|
+
function Te(e) {
|
|
3688
|
+
var c, u, f, d, m, g, p;
|
|
3754
3689
|
const [t, n] = C(
|
|
3755
3690
|
() => {
|
|
3756
3691
|
var I, x;
|
|
3757
|
-
return
|
|
3692
|
+
return Nn({
|
|
3758
3693
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3759
3694
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3760
3695
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3770,25 +3705,25 @@ function Ie(e) {
|
|
|
3770
3705
|
}
|
|
3771
3706
|
const [o, l] = C(
|
|
3772
3707
|
() => [
|
|
3773
|
-
...
|
|
3708
|
+
...Se(),
|
|
3774
3709
|
...e.customComponents || []
|
|
3775
3710
|
].reduce(
|
|
3776
|
-
(I, { component: x, ...
|
|
3711
|
+
(I, { component: x, ...E }) => ({
|
|
3777
3712
|
...I,
|
|
3778
|
-
[
|
|
3713
|
+
[E.name]: {
|
|
3779
3714
|
component: x,
|
|
3780
|
-
...ge(
|
|
3715
|
+
...ge(E)
|
|
3781
3716
|
}
|
|
3782
3717
|
}),
|
|
3783
3718
|
{}
|
|
3784
3719
|
)
|
|
3785
3720
|
), [a, r] = C(() => ({
|
|
3786
|
-
content:
|
|
3721
|
+
content: zn({
|
|
3787
3722
|
content: e.content,
|
|
3788
3723
|
data: e.data
|
|
3789
3724
|
}),
|
|
3790
3725
|
localState: void 0,
|
|
3791
|
-
rootState:
|
|
3726
|
+
rootState: Kn({
|
|
3792
3727
|
content: e.content,
|
|
3793
3728
|
data: e.data,
|
|
3794
3729
|
locale: e.locale
|
|
@@ -3799,12 +3734,12 @@ function Ie(e) {
|
|
|
3799
3734
|
apiKey: e.apiKey,
|
|
3800
3735
|
apiVersion: e.apiVersion,
|
|
3801
3736
|
componentInfos: [
|
|
3802
|
-
...
|
|
3737
|
+
...Se(),
|
|
3803
3738
|
...e.customComponents || []
|
|
3804
3739
|
].reduce(
|
|
3805
|
-
(I, { component: x, ...
|
|
3740
|
+
(I, { component: x, ...E }) => ({
|
|
3806
3741
|
...I,
|
|
3807
|
-
[
|
|
3742
|
+
[E.name]: ge(E)
|
|
3808
3743
|
}),
|
|
3809
3744
|
{}
|
|
3810
3745
|
),
|
|
@@ -3813,13 +3748,13 @@ function Ie(e) {
|
|
|
3813
3748
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3814
3749
|
}));
|
|
3815
3750
|
return /* @__PURE__ */ s(
|
|
3816
|
-
|
|
3751
|
+
Be.Provider,
|
|
3817
3752
|
{
|
|
3818
3753
|
value: {
|
|
3819
3754
|
registeredComponents: o
|
|
3820
3755
|
},
|
|
3821
|
-
children: /* @__PURE__ */
|
|
3822
|
-
|
|
3756
|
+
children: /* @__PURE__ */ P(
|
|
3757
|
+
Hn,
|
|
3823
3758
|
{
|
|
3824
3759
|
content: e.content,
|
|
3825
3760
|
data: e.data,
|
|
@@ -3837,14 +3772,14 @@ function Ie(e) {
|
|
|
3837
3772
|
setBuilderContextSignal: r,
|
|
3838
3773
|
children: [
|
|
3839
3774
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3840
|
-
|
|
3775
|
+
ce,
|
|
3841
3776
|
{
|
|
3842
3777
|
id: "builderio-variant-visibility",
|
|
3843
3778
|
scriptStr: t
|
|
3844
3779
|
}
|
|
3845
3780
|
) : null,
|
|
3846
3781
|
/* @__PURE__ */ s(
|
|
3847
|
-
|
|
3782
|
+
qn,
|
|
3848
3783
|
{
|
|
3849
3784
|
isNestedRender: e.isNestedRender,
|
|
3850
3785
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
@@ -3853,9 +3788,9 @@ function Ie(e) {
|
|
|
3853
3788
|
}
|
|
3854
3789
|
),
|
|
3855
3790
|
/* @__PURE__ */ s(
|
|
3856
|
-
|
|
3791
|
+
D,
|
|
3857
3792
|
{
|
|
3858
|
-
blocks: (p = (
|
|
3793
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3859
3794
|
context: a,
|
|
3860
3795
|
registeredComponents: o,
|
|
3861
3796
|
linkComponent: e.linkComponent
|
|
@@ -3867,17 +3802,17 @@ function Ie(e) {
|
|
|
3867
3802
|
}
|
|
3868
3803
|
);
|
|
3869
3804
|
}
|
|
3870
|
-
function
|
|
3805
|
+
function _n(e) {
|
|
3871
3806
|
var a;
|
|
3872
3807
|
const [t, n] = C(
|
|
3873
|
-
() =>
|
|
3808
|
+
() => Bn({
|
|
3874
3809
|
canTrack: Q(e.canTrack),
|
|
3875
3810
|
content: e.content
|
|
3876
3811
|
})
|
|
3877
3812
|
);
|
|
3878
3813
|
function i() {
|
|
3879
3814
|
var r;
|
|
3880
|
-
return
|
|
3815
|
+
return An(
|
|
3881
3816
|
J(e.content).map((c) => ({
|
|
3882
3817
|
id: c.testVariationId,
|
|
3883
3818
|
testRatio: c.testRatio
|
|
@@ -3893,38 +3828,38 @@ function Jn(e) {
|
|
|
3893
3828
|
return t ? {
|
|
3894
3829
|
...e.content,
|
|
3895
3830
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3896
|
-
} :
|
|
3831
|
+
} : Qe({
|
|
3897
3832
|
item: e.content,
|
|
3898
3833
|
canTrack: Q(e.canTrack)
|
|
3899
3834
|
});
|
|
3900
3835
|
}
|
|
3901
|
-
return
|
|
3902
|
-
}, []),
|
|
3903
|
-
}), /* @__PURE__ */
|
|
3836
|
+
return B(() => {
|
|
3837
|
+
}, []), B(() => {
|
|
3838
|
+
}), /* @__PURE__ */ P(R, { children: [
|
|
3904
3839
|
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
|
|
3905
|
-
|
|
3840
|
+
ce,
|
|
3906
3841
|
{
|
|
3907
3842
|
id: "builderio-init-variants-fns",
|
|
3908
|
-
scriptStr:
|
|
3843
|
+
scriptStr: Vn()
|
|
3909
3844
|
}
|
|
3910
3845
|
) : null,
|
|
3911
|
-
t ? /* @__PURE__ */
|
|
3846
|
+
t ? /* @__PURE__ */ P(R, { children: [
|
|
3912
3847
|
/* @__PURE__ */ s(
|
|
3913
|
-
|
|
3848
|
+
ne,
|
|
3914
3849
|
{
|
|
3915
3850
|
id: "builderio-variants",
|
|
3916
3851
|
styles: o()
|
|
3917
3852
|
}
|
|
3918
3853
|
),
|
|
3919
3854
|
/* @__PURE__ */ s(
|
|
3920
|
-
|
|
3855
|
+
ce,
|
|
3921
3856
|
{
|
|
3922
3857
|
id: "builderio-variants-visibility",
|
|
3923
3858
|
scriptStr: i()
|
|
3924
3859
|
}
|
|
3925
3860
|
),
|
|
3926
3861
|
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3927
|
-
|
|
3862
|
+
Te,
|
|
3928
3863
|
{
|
|
3929
3864
|
isNestedRender: e.isNestedRender,
|
|
3930
3865
|
content: r,
|
|
@@ -3950,7 +3885,7 @@ function Jn(e) {
|
|
|
3950
3885
|
))
|
|
3951
3886
|
] }) : null,
|
|
3952
3887
|
/* @__PURE__ */ s(
|
|
3953
|
-
|
|
3888
|
+
Te,
|
|
3954
3889
|
{
|
|
3955
3890
|
isNestedRender: e.isNestedRender,
|
|
3956
3891
|
content: l(),
|
|
@@ -3975,13 +3910,13 @@ function Jn(e) {
|
|
|
3975
3910
|
)
|
|
3976
3911
|
] });
|
|
3977
3912
|
}
|
|
3978
|
-
const
|
|
3913
|
+
const Jn = async ({
|
|
3979
3914
|
builderContextValue: e,
|
|
3980
3915
|
symbol: t
|
|
3981
3916
|
}) => {
|
|
3982
3917
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3983
3918
|
(e != null && e.apiKey))
|
|
3984
|
-
return
|
|
3919
|
+
return Ie({
|
|
3985
3920
|
model: t.model,
|
|
3986
3921
|
apiKey: e.apiKey,
|
|
3987
3922
|
apiVersion: e.apiVersion,
|
|
@@ -3994,7 +3929,7 @@ const Yn = async ({
|
|
|
3994
3929
|
Z.error("Could not fetch symbol content: ", n);
|
|
3995
3930
|
});
|
|
3996
3931
|
};
|
|
3997
|
-
function
|
|
3932
|
+
function Yn(e) {
|
|
3998
3933
|
var r, c, u, f;
|
|
3999
3934
|
function t() {
|
|
4000
3935
|
return "div";
|
|
@@ -4016,18 +3951,18 @@ function Gn(e) {
|
|
|
4016
3951
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4017
3952
|
});
|
|
4018
3953
|
function a() {
|
|
4019
|
-
o ||
|
|
3954
|
+
o || Jn({
|
|
4020
3955
|
symbol: e.symbol,
|
|
4021
3956
|
builderContextValue: e.builderContext
|
|
4022
3957
|
}).then((d) => {
|
|
4023
3958
|
d && l(d);
|
|
4024
3959
|
});
|
|
4025
3960
|
}
|
|
4026
|
-
return
|
|
4027
|
-
}, []),
|
|
3961
|
+
return B(() => {
|
|
3962
|
+
}, []), B(() => {
|
|
4028
3963
|
a();
|
|
4029
3964
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4030
|
-
|
|
3965
|
+
_n,
|
|
4031
3966
|
{
|
|
4032
3967
|
isNestedRender: !0,
|
|
4033
3968
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4052,15 +3987,15 @@ function Gn(e) {
|
|
|
4052
3987
|
) });
|
|
4053
3988
|
}
|
|
4054
3989
|
export {
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
3990
|
+
D as Blocks,
|
|
3991
|
+
me as BuilderContext,
|
|
3992
|
+
ot as Button,
|
|
3993
|
+
$t as Columns,
|
|
3994
|
+
_n as Content,
|
|
4060
3995
|
Dt as Fragment,
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
3996
|
+
jt as Image,
|
|
3997
|
+
Mt as Section,
|
|
3998
|
+
Yn as Symbol,
|
|
3999
|
+
tn as Text,
|
|
4000
|
+
In as Video
|
|
4066
4001
|
};
|