@builder.io/sdk-react 1.0.36 → 1.1.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 +22 -22
- package/lib/browser/blocks-exports.mjs +627 -504
- 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-4168b816.cjs → server-entry-4fb4a8b5.cjs} +1 -1
- package/lib/browser/{server-entry-b8f6be3b.js → server-entry-a2fe3a55.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-18fbb30e.js → accordion-a25dee70.js} +1 -1
- package/lib/edge/{accordion-e40979bc.cjs → accordion-d5929c1e.cjs} +1 -1
- package/lib/edge/{blocks-9b142e90.js → blocks-317ff1a5.js} +679 -671
- package/lib/edge/{blocks-48a9ac8c.cjs → blocks-5cb24de4.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-be9403e7.js → button-2f5bf5cf.js} +2 -2
- package/lib/edge/{button-c2ff97e9.cjs → button-b06330e4.cjs} +1 -1
- package/lib/edge/{columns-920ca800.js → columns-69453374.js} +3 -3
- package/lib/edge/{columns-118e1fc1.cjs → columns-ef105550.cjs} +1 -1
- package/lib/edge/{content-variants-ed1f803b.js → content-variants-336e3b7f.js} +318 -203
- package/lib/edge/content-variants-f2620a07.cjs +134 -0
- package/lib/edge/{form-cbcf22d5.js → form-30431d39.js} +3 -3
- package/lib/edge/{form-a9271b51.cjs → form-55ba7324.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-af6b922f.cjs → get-class-prop-name-5da28706.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-90c8ac6c.js → get-class-prop-name-8d9f271c.js} +1 -1
- package/lib/edge/{img-1f1b4871.js → img-02bb6d39.js} +1 -1
- package/lib/edge/{img-2deeb066.cjs → img-a85aa1f8.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-4b3e5f88.cjs → input-448b664a.cjs} +1 -1
- package/lib/edge/{input-514915f8.js → input-d7e84d5c.js} +1 -1
- package/lib/edge/{select-3925e227.js → select-744ccf82.js} +1 -1
- package/lib/edge/{select-82d8052d.cjs → select-7e98c1fc.cjs} +1 -1
- package/lib/edge/{server-entry-57fedeba.js → server-entry-7003c754.js} +1 -1
- package/lib/edge/{server-entry-a00fcff8.cjs → server-entry-f52f597d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-aa7280f8.js → slot-6ddfa828.js} +3 -3
- package/lib/edge/{slot-21fe373f.cjs → slot-fb11eb23.cjs} +1 -1
- package/lib/edge/{symbol-ac48d2ec.js → symbol-ced9c879.js} +2 -2
- package/lib/edge/{symbol-a0ab57ea.cjs → symbol-d82ac04c.cjs} +1 -1
- package/lib/edge/{tabs-df436d1e.cjs → tabs-93843650.cjs} +1 -1
- package/lib/edge/{tabs-9b5261d0.js → tabs-ffcc16e4.js} +3 -3
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +616 -493
- 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-1b85663b.js → node-runtime-13876a87.js} +1 -1
- package/lib/node/{node-runtime-d59eb154.cjs → node-runtime-b5d88fa0.cjs} +1 -1
- package/lib/node/{server-entry-8081c6b9.js → server-entry-9942a35a.js} +1 -1
- package/lib/node/{server-entry-dc1afebd.cjs → server-entry-d0ae23af.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/components.d.ts +31 -0
- package/lib/edge/content-variants-1eb4aebc.cjs +0 -134
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var qe = Object.defineProperty;
|
|
3
|
+
var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var oe = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as E } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as _, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as ue, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as Q, _track as be, isPreviewing as Qe, fetchOneEntry as Re, createEditorListener as Xe, fetch as Ze, serializeComponentInfo as ge, handleABTestingSync as et } from "./server-entry-a2fe3a55.js";
|
|
7
|
+
import { createContext as Be, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Pe } from "react";
|
|
8
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
9
|
+
function me(e) {
|
|
10
|
+
return /* @__PURE__ */ s(R, { children: nt(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 }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
12
|
+
const K = () => {
|
|
13
|
+
switch (_) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
16
16
|
case "rsc":
|
|
@@ -23,11 +23,11 @@ const q = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function it(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -38,7 +38,7 @@ function nt(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ s(
|
|
41
|
-
|
|
41
|
+
me,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function nt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const fe = Be({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -60,15 +60,15 @@ const me = Ee({
|
|
|
60
60
|
inheritedStyles: {},
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
62
|
BlocksWrapperProps: {}
|
|
63
|
-
}),
|
|
64
|
-
function
|
|
63
|
+
}), Ee = Be({ registeredComponents: {} });
|
|
64
|
+
function ot(e) {
|
|
65
65
|
var t;
|
|
66
66
|
return {
|
|
67
67
|
...(t = e.component) == null ? void 0 : t.options,
|
|
68
68
|
...e.options
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const at = ({
|
|
72
72
|
builder: e,
|
|
73
73
|
context: t,
|
|
74
74
|
event: n,
|
|
@@ -80,14 +80,14 @@ const ot = ({
|
|
|
80
80
|
builder: e,
|
|
81
81
|
context: t,
|
|
82
82
|
event: n
|
|
83
|
-
}),
|
|
84
|
-
isEditing:
|
|
85
|
-
isBrowser:
|
|
86
|
-
isServer: !
|
|
87
|
-
getUserAttributes: () =>
|
|
88
|
-
}),
|
|
83
|
+
}), rt = () => ({
|
|
84
|
+
isEditing: F(),
|
|
85
|
+
isBrowser: M(),
|
|
86
|
+
isServer: !M(),
|
|
87
|
+
getUserAttributes: () => ze()
|
|
88
|
+
}), lt = (e, {
|
|
89
89
|
isExpression: t = !0
|
|
90
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
90
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ye = ({
|
|
91
91
|
code: e,
|
|
92
92
|
builder: t,
|
|
93
93
|
context: n,
|
|
@@ -96,11 +96,11 @@ const ot = ({
|
|
|
96
96
|
rootSetState: r,
|
|
97
97
|
rootState: a
|
|
98
98
|
}) => {
|
|
99
|
-
const l =
|
|
99
|
+
const l = at({
|
|
100
100
|
builder: t,
|
|
101
101
|
context: n,
|
|
102
102
|
event: i,
|
|
103
|
-
state:
|
|
103
|
+
state: Ve({
|
|
104
104
|
rootState: a,
|
|
105
105
|
localState: o,
|
|
106
106
|
rootSetState: r
|
|
@@ -108,7 +108,7 @@ const ot = ({
|
|
|
108
108
|
});
|
|
109
109
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
110
110
|
};
|
|
111
|
-
function
|
|
111
|
+
function Ve({
|
|
112
112
|
rootState: e,
|
|
113
113
|
localState: t,
|
|
114
114
|
rootSetState: n
|
|
@@ -118,7 +118,7 @@ function Be({
|
|
|
118
118
|
if (t && o in t)
|
|
119
119
|
return t[o];
|
|
120
120
|
const r = i[o];
|
|
121
|
-
return typeof r == "object" && r !== null ?
|
|
121
|
+
return typeof r == "object" && r !== null ? Ve({
|
|
122
122
|
rootState: r,
|
|
123
123
|
localState: void 0,
|
|
124
124
|
rootSetState: n ? (a) => {
|
|
@@ -133,17 +133,17 @@ function Be({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function st() {
|
|
137
137
|
var e;
|
|
138
138
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const ct = () => {
|
|
141
141
|
var i;
|
|
142
|
-
if (!
|
|
142
|
+
if (!st())
|
|
143
143
|
return !1;
|
|
144
144
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
145
145
|
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;
|
|
146
|
-
},
|
|
146
|
+
}, dt = (e) => (M() || ct(), ye(e)), D = class D {
|
|
147
147
|
static getCacheKey(t) {
|
|
148
148
|
return JSON.stringify({
|
|
149
149
|
...t,
|
|
@@ -153,17 +153,17 @@ const st = () => {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
156
|
+
return D.cache.get(t);
|
|
157
157
|
}
|
|
158
158
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
159
|
+
D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
|
|
160
160
|
value: n
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
|
|
165
|
-
let
|
|
166
|
-
function
|
|
164
|
+
oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
|
|
165
|
+
let U = D;
|
|
166
|
+
function q({
|
|
167
167
|
code: e,
|
|
168
168
|
context: t,
|
|
169
169
|
localState: n,
|
|
@@ -176,10 +176,10 @@ function _({
|
|
|
176
176
|
if (e === "")
|
|
177
177
|
return;
|
|
178
178
|
const c = {
|
|
179
|
-
code:
|
|
179
|
+
code: lt(e, {
|
|
180
180
|
isExpression: a
|
|
181
181
|
}),
|
|
182
|
-
builder:
|
|
182
|
+
builder: rt(),
|
|
183
183
|
context: t,
|
|
184
184
|
event: r,
|
|
185
185
|
rootSetState: o,
|
|
@@ -187,15 +187,15 @@ function _({
|
|
|
187
187
|
localState: n
|
|
188
188
|
};
|
|
189
189
|
if (l) {
|
|
190
|
-
const u =
|
|
190
|
+
const u = U.getCacheKey(c), f = U.getCachedValue(u);
|
|
191
191
|
if (f)
|
|
192
192
|
return f.value;
|
|
193
193
|
}
|
|
194
194
|
try {
|
|
195
|
-
const u =
|
|
195
|
+
const u = dt(c);
|
|
196
196
|
if (l) {
|
|
197
|
-
const f =
|
|
198
|
-
|
|
197
|
+
const f = U.getCacheKey(c);
|
|
198
|
+
U.setCachedValue(f, u);
|
|
199
199
|
}
|
|
200
200
|
return u;
|
|
201
201
|
} catch (u) {
|
|
@@ -205,13 +205,13 @@ function _({
|
|
|
205
205
|
return;
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
|
-
const
|
|
208
|
+
const Ae = (e, t, n) => {
|
|
209
209
|
if (Object(e) !== e)
|
|
210
210
|
return e;
|
|
211
211
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
212
212
|
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
213
213
|
};
|
|
214
|
-
const
|
|
214
|
+
const ut = ({
|
|
215
215
|
block: e,
|
|
216
216
|
context: t,
|
|
217
217
|
localState: n,
|
|
@@ -220,7 +220,7 @@ const dt = ({
|
|
|
220
220
|
}) => {
|
|
221
221
|
if (!e.bindings)
|
|
222
222
|
return e;
|
|
223
|
-
const r =
|
|
223
|
+
const r = ue(e), a = {
|
|
224
224
|
...r,
|
|
225
225
|
properties: {
|
|
226
226
|
...r.properties
|
|
@@ -230,7 +230,7 @@ const dt = ({
|
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
for (const l in e.bindings) {
|
|
233
|
-
const c = e.bindings[l], u =
|
|
233
|
+
const c = e.bindings[l], u = q({
|
|
234
234
|
code: c,
|
|
235
235
|
localState: n,
|
|
236
236
|
rootState: i,
|
|
@@ -238,7 +238,7 @@ const dt = ({
|
|
|
238
238
|
context: t,
|
|
239
239
|
enableCache: !0
|
|
240
240
|
});
|
|
241
|
-
|
|
241
|
+
Ae(a, l, u);
|
|
242
242
|
}
|
|
243
243
|
return a;
|
|
244
244
|
};
|
|
@@ -251,7 +251,7 @@ function X({
|
|
|
251
251
|
rootSetState: r
|
|
252
252
|
}) {
|
|
253
253
|
const a = e;
|
|
254
|
-
return n ?
|
|
254
|
+
return n ? ut({
|
|
255
255
|
block: a,
|
|
256
256
|
localState: i,
|
|
257
257
|
rootState: o,
|
|
@@ -260,7 +260,7 @@ function X({
|
|
|
260
260
|
}) : a;
|
|
261
261
|
}
|
|
262
262
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
263
|
-
function
|
|
263
|
+
function mt(e, t, n = {}) {
|
|
264
264
|
let i, o, r, a = null, l = 0;
|
|
265
265
|
const c = function() {
|
|
266
266
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
@@ -272,7 +272,7 @@ function ut(e, t, n = {}) {
|
|
|
272
272
|
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
|
-
function
|
|
275
|
+
function H(e, ...t) {
|
|
276
276
|
const n = Object(e);
|
|
277
277
|
for (let i = 1; i < arguments.length; i++) {
|
|
278
278
|
const o = arguments[i];
|
|
@@ -282,64 +282,64 @@ function K(e, ...t) {
|
|
|
282
282
|
}
|
|
283
283
|
return n;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ft(e) {
|
|
286
286
|
for (const t of e)
|
|
287
287
|
switch (t.trigger) {
|
|
288
288
|
case "pageLoad":
|
|
289
|
-
|
|
289
|
+
$e(t);
|
|
290
290
|
break;
|
|
291
291
|
case "scrollInView":
|
|
292
|
-
|
|
292
|
+
bt(t);
|
|
293
293
|
break;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Ne(e) {
|
|
297
297
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
const n =
|
|
299
|
+
function We(e, t) {
|
|
300
|
+
const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
301
301
|
for (const l of a)
|
|
302
302
|
for (const c of n)
|
|
303
303
|
c in l || (l[c] = i[c]);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function ht(e) {
|
|
306
306
|
const t = [];
|
|
307
307
|
for (const n of e.steps)
|
|
308
308
|
for (const i in n.styles)
|
|
309
309
|
t.indexOf(i) === -1 && t.push(i);
|
|
310
310
|
return t;
|
|
311
311
|
}
|
|
312
|
-
function
|
|
312
|
+
function $e(e) {
|
|
313
313
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
314
314
|
if (!t.length) {
|
|
315
|
-
|
|
315
|
+
Ne(e.elementId || e.id || "");
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
Array.from(t).forEach((n) => {
|
|
319
|
-
|
|
320
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
319
|
+
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
320
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
321
321
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
322
322
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
323
323
|
});
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function bt(e) {
|
|
327
327
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
328
328
|
if (!t.length) {
|
|
329
|
-
|
|
329
|
+
Ne(e.elementId || e.id || "");
|
|
330
330
|
return;
|
|
331
331
|
}
|
|
332
332
|
Array.from(t).forEach((n) => {
|
|
333
|
-
|
|
333
|
+
We(e, n);
|
|
334
334
|
let i = !1, o = !1;
|
|
335
335
|
function r() {
|
|
336
336
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
337
|
-
|
|
337
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
338
338
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
339
339
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
340
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
340
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
341
341
|
}
|
|
342
|
-
const a =
|
|
342
|
+
const a = mt(r, 200, {
|
|
343
343
|
leading: !1
|
|
344
344
|
});
|
|
345
345
|
function l(f) {
|
|
@@ -348,7 +348,7 @@ function ht(e) {
|
|
|
348
348
|
}
|
|
349
349
|
const c = e.steps[0].styles;
|
|
350
350
|
function u() {
|
|
351
|
-
|
|
351
|
+
H(n.style, c);
|
|
352
352
|
}
|
|
353
353
|
u(), setTimeout(() => {
|
|
354
354
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -358,10 +358,10 @@ function ht(e) {
|
|
|
358
358
|
}), r();
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
const
|
|
361
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
362
362
|
if (typeof i == "string")
|
|
363
363
|
return `${te(n)}: ${i};`;
|
|
364
|
-
}).filter(G), gt = (e) =>
|
|
364
|
+
}).filter(G), gt = (e) => Fe(e).join(`
|
|
365
365
|
`), J = ({
|
|
366
366
|
mediaQuery: e,
|
|
367
367
|
className: t,
|
|
@@ -374,26 +374,26 @@ const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
374
374
|
${i}
|
|
375
375
|
}` : i;
|
|
376
376
|
};
|
|
377
|
-
function
|
|
377
|
+
function pt({
|
|
378
378
|
style: e
|
|
379
379
|
}) {
|
|
380
380
|
return e;
|
|
381
381
|
}
|
|
382
|
-
const
|
|
382
|
+
const yt = ({
|
|
383
383
|
block: e,
|
|
384
384
|
context: t
|
|
385
|
-
}) =>
|
|
385
|
+
}) => Le(pt({
|
|
386
386
|
style: e.style || {},
|
|
387
387
|
context: t,
|
|
388
388
|
block: e
|
|
389
389
|
}));
|
|
390
|
-
function
|
|
391
|
-
switch (
|
|
390
|
+
function Le(e) {
|
|
391
|
+
switch (_) {
|
|
392
392
|
case "svelte":
|
|
393
393
|
case "vue":
|
|
394
394
|
case "solid":
|
|
395
395
|
case "angular":
|
|
396
|
-
return
|
|
396
|
+
return Fe(e).join(" ");
|
|
397
397
|
case "qwik":
|
|
398
398
|
case "reactNative":
|
|
399
399
|
case "react":
|
|
@@ -401,7 +401,7 @@ function $e(e) {
|
|
|
401
401
|
return e;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const xt = ({
|
|
405
405
|
block: e,
|
|
406
406
|
context: t,
|
|
407
407
|
registeredComponents: n
|
|
@@ -423,7 +423,7 @@ const yt = ({
|
|
|
423
423
|
console.warn(`
|
|
424
424
|
Could not find a registered component named "${i}".
|
|
425
425
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
426
|
-
},
|
|
426
|
+
}, vt = ({
|
|
427
427
|
block: e,
|
|
428
428
|
context: t
|
|
429
429
|
}) => {
|
|
@@ -433,7 +433,7 @@ const yt = ({
|
|
|
433
433
|
} = e;
|
|
434
434
|
if (!(n != null && n.collection))
|
|
435
435
|
return;
|
|
436
|
-
const o =
|
|
436
|
+
const o = q({
|
|
437
437
|
code: n.collection,
|
|
438
438
|
localState: t.localState,
|
|
439
439
|
rootState: t.rootState,
|
|
@@ -457,15 +457,23 @@ const yt = ({
|
|
|
457
457
|
},
|
|
458
458
|
block: i
|
|
459
459
|
}));
|
|
460
|
-
},
|
|
460
|
+
}, ne = (e) => ({
|
|
461
|
+
// once we bump to a major version, toggle this to `false`.
|
|
462
|
+
builderBlock: !0,
|
|
463
|
+
// once we bump to a major version, toggle this to `false`.
|
|
464
|
+
builderContext: !0,
|
|
465
|
+
builderComponents: !1,
|
|
466
|
+
builderLinkComponent: !1,
|
|
467
|
+
...e
|
|
468
|
+
}), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
|
|
461
469
|
builderLinkComponent: t
|
|
462
|
-
} : {},
|
|
470
|
+
} : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
|
|
463
471
|
builderComponents: t
|
|
464
|
-
} : {},
|
|
472
|
+
} : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
|
|
465
473
|
builderBlock: t
|
|
466
|
-
} : {},
|
|
474
|
+
} : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
|
|
467
475
|
builderContext: t
|
|
468
|
-
} : {}, De = {
|
|
476
|
+
} : {} : {}, De = {
|
|
469
477
|
small: {
|
|
470
478
|
min: 320,
|
|
471
479
|
default: 321,
|
|
@@ -481,11 +489,11 @@ const yt = ({
|
|
|
481
489
|
default: 991,
|
|
482
490
|
max: 1200
|
|
483
491
|
}
|
|
484
|
-
},
|
|
492
|
+
}, xe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
|
|
485
493
|
small: e,
|
|
486
494
|
medium: t
|
|
487
495
|
}) => {
|
|
488
|
-
const n =
|
|
496
|
+
const n = ue(De);
|
|
489
497
|
if (!e || !t)
|
|
490
498
|
return n;
|
|
491
499
|
const i = Math.floor(e / 2);
|
|
@@ -508,7 +516,7 @@ const yt = ({
|
|
|
508
516
|
default: r + 1
|
|
509
517
|
}, n;
|
|
510
518
|
};
|
|
511
|
-
function
|
|
519
|
+
function ie(e) {
|
|
512
520
|
return /* @__PURE__ */ s(
|
|
513
521
|
"style",
|
|
514
522
|
{
|
|
@@ -517,7 +525,7 @@ function ne(e) {
|
|
|
517
525
|
}
|
|
518
526
|
);
|
|
519
527
|
}
|
|
520
|
-
function
|
|
528
|
+
function It(e) {
|
|
521
529
|
function t() {
|
|
522
530
|
const i = X({
|
|
523
531
|
block: e.block,
|
|
@@ -530,7 +538,7 @@ function Tt(e) {
|
|
|
530
538
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
531
539
|
}
|
|
532
540
|
function n() {
|
|
533
|
-
var x,
|
|
541
|
+
var x, B, V;
|
|
534
542
|
const i = X({
|
|
535
543
|
block: e.block,
|
|
536
544
|
localState: e.context.localState,
|
|
@@ -538,7 +546,7 @@ function Tt(e) {
|
|
|
538
546
|
rootSetState: e.context.rootSetState,
|
|
539
547
|
context: e.context.context,
|
|
540
548
|
shouldEvaluateBindings: !0
|
|
541
|
-
}), o = i.responsiveStyles, r = e.context.content, a =
|
|
549
|
+
}), o = i.responsiveStyles, r = e.context.content, a = Oe(
|
|
542
550
|
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
543
551
|
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
544
552
|
if (!f)
|
|
@@ -549,21 +557,21 @@ function Tt(e) {
|
|
|
549
557
|
}) : "", m = c ? J({
|
|
550
558
|
className: f,
|
|
551
559
|
styles: c,
|
|
552
|
-
mediaQuery:
|
|
560
|
+
mediaQuery: xe(
|
|
553
561
|
"medium",
|
|
554
562
|
a
|
|
555
563
|
)
|
|
556
|
-
}) : "",
|
|
564
|
+
}) : "", b = u ? J({
|
|
557
565
|
className: f,
|
|
558
566
|
styles: u,
|
|
559
|
-
mediaQuery:
|
|
567
|
+
mediaQuery: xe(
|
|
560
568
|
"small",
|
|
561
569
|
a
|
|
562
570
|
)
|
|
563
571
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
564
572
|
let I = "";
|
|
565
573
|
if (p) {
|
|
566
|
-
const A = ((
|
|
574
|
+
const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
|
|
567
575
|
I = J({
|
|
568
576
|
className: `${f}:hover`,
|
|
569
577
|
styles: {
|
|
@@ -578,16 +586,16 @@ function Tt(e) {
|
|
|
578
586
|
return [
|
|
579
587
|
d,
|
|
580
588
|
m,
|
|
581
|
-
|
|
589
|
+
b,
|
|
582
590
|
I
|
|
583
591
|
].join(" ");
|
|
584
592
|
}
|
|
585
|
-
return /* @__PURE__ */ s(
|
|
593
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
|
|
586
594
|
}
|
|
587
|
-
function
|
|
595
|
+
function wt(e) {
|
|
588
596
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
589
597
|
}
|
|
590
|
-
const
|
|
598
|
+
const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => q({
|
|
591
599
|
code: e,
|
|
592
600
|
context: t.context,
|
|
593
601
|
localState: t.localState,
|
|
@@ -597,16 +605,16 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => _({
|
|
|
597
605
|
isExpression: !1,
|
|
598
606
|
enableCache: !0
|
|
599
607
|
});
|
|
600
|
-
function
|
|
608
|
+
function je(e) {
|
|
601
609
|
var i;
|
|
602
610
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
603
611
|
for (const o in n) {
|
|
604
612
|
if (!n.hasOwnProperty(o))
|
|
605
613
|
continue;
|
|
606
614
|
const r = n[o];
|
|
607
|
-
let a =
|
|
615
|
+
let a = Rt(o);
|
|
608
616
|
if (e.stripPrefix)
|
|
609
|
-
switch (
|
|
617
|
+
switch (_) {
|
|
610
618
|
case "vue":
|
|
611
619
|
a = a.replace("v-on:", "");
|
|
612
620
|
break;
|
|
@@ -614,49 +622,49 @@ function Oe(e) {
|
|
|
614
622
|
a = a.replace("on:", "");
|
|
615
623
|
break;
|
|
616
624
|
}
|
|
617
|
-
t[a] =
|
|
625
|
+
t[a] = Bt(r, e);
|
|
618
626
|
}
|
|
619
627
|
return t;
|
|
620
628
|
}
|
|
621
|
-
function
|
|
629
|
+
function Pt({
|
|
622
630
|
properties: e
|
|
623
631
|
}) {
|
|
624
632
|
return e;
|
|
625
633
|
}
|
|
626
|
-
const
|
|
634
|
+
const Et = (e) => ({
|
|
627
635
|
href: e.href
|
|
628
636
|
});
|
|
629
|
-
function
|
|
637
|
+
function he({
|
|
630
638
|
block: e,
|
|
631
639
|
context: t
|
|
632
640
|
}) {
|
|
633
641
|
var i;
|
|
634
642
|
const n = {
|
|
635
|
-
...
|
|
643
|
+
...Et(e),
|
|
636
644
|
...e.properties,
|
|
637
645
|
"builder-id": e.id,
|
|
638
|
-
style:
|
|
646
|
+
style: yt({
|
|
639
647
|
block: e,
|
|
640
648
|
context: t
|
|
641
649
|
}),
|
|
642
|
-
[
|
|
650
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
643
651
|
};
|
|
644
|
-
return
|
|
652
|
+
return Pt({
|
|
645
653
|
properties: n,
|
|
646
654
|
context: t,
|
|
647
655
|
block: e
|
|
648
656
|
});
|
|
649
657
|
}
|
|
650
|
-
function
|
|
658
|
+
function Vt(e) {
|
|
651
659
|
return /* @__PURE__ */ s(
|
|
652
|
-
|
|
660
|
+
me,
|
|
653
661
|
{
|
|
654
662
|
TagName: e.Wrapper,
|
|
655
|
-
attributes:
|
|
663
|
+
attributes: he({
|
|
656
664
|
block: e.block,
|
|
657
665
|
context: e.context
|
|
658
666
|
}),
|
|
659
|
-
actionAttributes:
|
|
667
|
+
actionAttributes: je({
|
|
660
668
|
block: e.block,
|
|
661
669
|
rootState: e.context.rootState,
|
|
662
670
|
rootSetState: e.context.rootSetState,
|
|
@@ -668,14 +676,14 @@ function Bt(e) {
|
|
|
668
676
|
}
|
|
669
677
|
);
|
|
670
678
|
}
|
|
671
|
-
function
|
|
679
|
+
function At(e) {
|
|
672
680
|
function t() {
|
|
673
681
|
return e.includeBlockProps ? {
|
|
674
|
-
...
|
|
682
|
+
...he({
|
|
675
683
|
block: e.block,
|
|
676
684
|
context: e.context
|
|
677
685
|
}),
|
|
678
|
-
...
|
|
686
|
+
...je({
|
|
679
687
|
block: e.block,
|
|
680
688
|
rootState: e.context.rootState,
|
|
681
689
|
rootSetState: e.context.rootSetState,
|
|
@@ -686,7 +694,7 @@ function Pt(e) {
|
|
|
686
694
|
}
|
|
687
695
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
688
696
|
}
|
|
689
|
-
const
|
|
697
|
+
const Nt = ({
|
|
690
698
|
componentOptions: e,
|
|
691
699
|
builderBlock: t,
|
|
692
700
|
context: n,
|
|
@@ -702,7 +710,7 @@ const At = ({
|
|
|
702
710
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
703
711
|
*/
|
|
704
712
|
...o ? {
|
|
705
|
-
attributes:
|
|
713
|
+
attributes: he({
|
|
706
714
|
block: t,
|
|
707
715
|
context: a
|
|
708
716
|
})
|
|
@@ -716,15 +724,15 @@ const At = ({
|
|
|
716
724
|
includeBlockProps: o
|
|
717
725
|
} : l;
|
|
718
726
|
};
|
|
719
|
-
function
|
|
727
|
+
function ve(e) {
|
|
720
728
|
var i;
|
|
721
729
|
const [t, n] = C(
|
|
722
|
-
() => e.isInteractive ?
|
|
730
|
+
() => e.isInteractive ? At : e.componentRef
|
|
723
731
|
);
|
|
724
|
-
return /* @__PURE__ */ s(
|
|
732
|
+
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
725
733
|
t,
|
|
726
734
|
{
|
|
727
|
-
...
|
|
735
|
+
...Nt({
|
|
728
736
|
componentOptions: e.componentOptions,
|
|
729
737
|
builderBlock: e.builderBlock,
|
|
730
738
|
context: e.context,
|
|
@@ -747,9 +755,9 @@ function xe(e) {
|
|
|
747
755
|
}
|
|
748
756
|
) }) : null });
|
|
749
757
|
}
|
|
750
|
-
function
|
|
758
|
+
function Wt(e) {
|
|
751
759
|
const [t, n] = C(() => e.repeatContext);
|
|
752
|
-
return /* @__PURE__ */ s(
|
|
760
|
+
return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
753
761
|
z,
|
|
754
762
|
{
|
|
755
763
|
block: e.block,
|
|
@@ -762,14 +770,14 @@ function Nt(e) {
|
|
|
762
770
|
function z(e) {
|
|
763
771
|
var c, u, f;
|
|
764
772
|
function t() {
|
|
765
|
-
return
|
|
773
|
+
return xt({
|
|
766
774
|
block: e.block,
|
|
767
775
|
context: e.context,
|
|
768
776
|
registeredComponents: e.registeredComponents
|
|
769
777
|
});
|
|
770
778
|
}
|
|
771
779
|
function n() {
|
|
772
|
-
return
|
|
780
|
+
return vt({
|
|
773
781
|
block: e.block,
|
|
774
782
|
context: e.context
|
|
775
783
|
});
|
|
@@ -790,27 +798,27 @@ function z(e) {
|
|
|
790
798
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
791
799
|
}
|
|
792
800
|
function r() {
|
|
793
|
-
var
|
|
794
|
-
if ((
|
|
801
|
+
var b, p;
|
|
802
|
+
if ((b = e.block.repeat) != null && b.collection)
|
|
795
803
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
796
804
|
const d = "hide" in i() ? i().hide : !1;
|
|
797
805
|
return ("show" in i() ? i().show : !0) && !d;
|
|
798
806
|
}
|
|
799
807
|
function a() {
|
|
800
|
-
var m,
|
|
801
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
808
|
+
var m, b;
|
|
809
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
|
|
802
810
|
}
|
|
803
811
|
function l() {
|
|
804
|
-
var d, m,
|
|
812
|
+
var d, m, b, p;
|
|
805
813
|
return {
|
|
806
814
|
blockChildren: (d = i().children) != null ? d : [],
|
|
807
815
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
808
816
|
componentOptions: {
|
|
809
|
-
...
|
|
810
|
-
...
|
|
811
|
-
...
|
|
812
|
-
...
|
|
813
|
-
...
|
|
817
|
+
...ot(i()),
|
|
818
|
+
...Ct(t(), i()),
|
|
819
|
+
...Tt(t(), e.context),
|
|
820
|
+
...St(t(), e.linkComponent),
|
|
821
|
+
...kt(
|
|
814
822
|
t(),
|
|
815
823
|
e.registeredComponents
|
|
816
824
|
)
|
|
@@ -819,22 +827,22 @@ function z(e) {
|
|
|
819
827
|
linkComponent: e.linkComponent,
|
|
820
828
|
registeredComponents: e.registeredComponents,
|
|
821
829
|
builderBlock: i(),
|
|
822
|
-
includeBlockProps: ((
|
|
830
|
+
includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
|
|
823
831
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
824
832
|
};
|
|
825
833
|
}
|
|
826
834
|
return P(() => {
|
|
827
835
|
const d = i().id, m = i().animations;
|
|
828
|
-
m && d &&
|
|
829
|
-
m.map((
|
|
830
|
-
...
|
|
836
|
+
m && d && ft(
|
|
837
|
+
m.map((b) => ({
|
|
838
|
+
...b,
|
|
831
839
|
elementId: d
|
|
832
840
|
}))
|
|
833
841
|
);
|
|
834
|
-
}, []), /* @__PURE__ */ s(
|
|
835
|
-
/* @__PURE__ */ s(
|
|
836
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
837
|
-
|
|
842
|
+
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ E(R, { children: [
|
|
843
|
+
/* @__PURE__ */ s(It, { block: e.block, context: e.context }),
|
|
844
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
845
|
+
ve,
|
|
838
846
|
{
|
|
839
847
|
componentRef: l().componentRef,
|
|
840
848
|
componentOptions: l().componentOptions,
|
|
@@ -846,8 +854,8 @@ function z(e) {
|
|
|
846
854
|
includeBlockProps: l().includeBlockProps,
|
|
847
855
|
isInteractive: l().isInteractive
|
|
848
856
|
}
|
|
849
|
-
) }) : /* @__PURE__ */ s(
|
|
850
|
-
|
|
857
|
+
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
858
|
+
Wt,
|
|
851
859
|
{
|
|
852
860
|
repeatContext: d.context,
|
|
853
861
|
block: d.block,
|
|
@@ -855,15 +863,15 @@ function z(e) {
|
|
|
855
863
|
linkComponent: e.linkComponent
|
|
856
864
|
},
|
|
857
865
|
m
|
|
858
|
-
)) }) : /* @__PURE__ */
|
|
859
|
-
|
|
866
|
+
)) }) : /* @__PURE__ */ E(
|
|
867
|
+
Vt,
|
|
860
868
|
{
|
|
861
869
|
Wrapper: o(),
|
|
862
870
|
block: i(),
|
|
863
871
|
context: e.context,
|
|
864
872
|
children: [
|
|
865
873
|
/* @__PURE__ */ s(
|
|
866
|
-
|
|
874
|
+
ve,
|
|
867
875
|
{
|
|
868
876
|
componentRef: l().componentRef,
|
|
869
877
|
componentOptions: l().componentOptions,
|
|
@@ -891,14 +899,14 @@ function z(e) {
|
|
|
891
899
|
) })
|
|
892
900
|
] }) : null });
|
|
893
901
|
}
|
|
894
|
-
function
|
|
902
|
+
function $t(e) {
|
|
895
903
|
function t() {
|
|
896
904
|
var o;
|
|
897
905
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
898
906
|
}
|
|
899
907
|
function n() {
|
|
900
908
|
var o, r;
|
|
901
|
-
|
|
909
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
902
910
|
{
|
|
903
911
|
type: "builder.clickEmptyBlocks",
|
|
904
912
|
data: {
|
|
@@ -911,7 +919,7 @@ function Ft(e) {
|
|
|
911
919
|
}
|
|
912
920
|
function i() {
|
|
913
921
|
var o, r;
|
|
914
|
-
|
|
922
|
+
F() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
915
923
|
{
|
|
916
924
|
type: "builder.hoverEmptyBlocks",
|
|
917
925
|
data: {
|
|
@@ -922,7 +930,7 @@ function Ft(e) {
|
|
|
922
930
|
"*"
|
|
923
931
|
));
|
|
924
932
|
}
|
|
925
|
-
return /* @__PURE__ */
|
|
933
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
926
934
|
/* @__PURE__ */ s(
|
|
927
935
|
e.BlocksWrapper,
|
|
928
936
|
{
|
|
@@ -944,11 +952,11 @@ function Ft(e) {
|
|
|
944
952
|
}` })
|
|
945
953
|
] });
|
|
946
954
|
}
|
|
947
|
-
function
|
|
955
|
+
function L(e) {
|
|
948
956
|
var i, o, r;
|
|
949
|
-
const t =
|
|
957
|
+
const t = pe(fe), n = pe(Ee);
|
|
950
958
|
return /* @__PURE__ */ s(
|
|
951
|
-
|
|
959
|
+
$t,
|
|
952
960
|
{
|
|
953
961
|
blocks: e.blocks,
|
|
954
962
|
parent: e.parent,
|
|
@@ -956,7 +964,7 @@ function D(e) {
|
|
|
956
964
|
styleProp: e.styleProp,
|
|
957
965
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
958
966
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
959
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
967
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
960
968
|
z,
|
|
961
969
|
{
|
|
962
970
|
block: a,
|
|
@@ -969,9 +977,9 @@ function D(e) {
|
|
|
969
977
|
}
|
|
970
978
|
);
|
|
971
979
|
}
|
|
972
|
-
const
|
|
973
|
-
function
|
|
974
|
-
var A,
|
|
980
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
981
|
+
function Lt(e) {
|
|
982
|
+
var A, O;
|
|
975
983
|
const [t, n] = C(
|
|
976
984
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
977
985
|
), [i, o] = C(() => e.columns || []), [r, a] = C(
|
|
@@ -1000,7 +1008,7 @@ function $t(e) {
|
|
|
1000
1008
|
}) {
|
|
1001
1009
|
return r === "never" ? w : S;
|
|
1002
1010
|
}
|
|
1003
|
-
const [m,
|
|
1011
|
+
const [m, b] = C(
|
|
1004
1012
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1005
1013
|
);
|
|
1006
1014
|
function p() {
|
|
@@ -1013,40 +1021,40 @@ function $t(e) {
|
|
|
1013
1021
|
};
|
|
1014
1022
|
}
|
|
1015
1023
|
function I(S) {
|
|
1016
|
-
const w = S === 0 ? 0 : t,
|
|
1024
|
+
const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
|
|
1017
1025
|
return {
|
|
1018
1026
|
...{
|
|
1019
1027
|
display: "flex",
|
|
1020
1028
|
flexDirection: "column",
|
|
1021
1029
|
alignItems: "stretch"
|
|
1022
1030
|
},
|
|
1023
|
-
width:
|
|
1024
|
-
["marginLeft"]:
|
|
1031
|
+
width: W,
|
|
1032
|
+
["marginLeft"]: g,
|
|
1025
1033
|
"--column-width-mobile": d({
|
|
1026
1034
|
stackedStyle: h,
|
|
1027
|
-
desktopStyle:
|
|
1035
|
+
desktopStyle: W
|
|
1028
1036
|
}),
|
|
1029
1037
|
"--column-margin-left-mobile": d({
|
|
1030
1038
|
stackedStyle: y,
|
|
1031
|
-
desktopStyle:
|
|
1039
|
+
desktopStyle: g
|
|
1032
1040
|
}),
|
|
1033
1041
|
"--column-width-tablet": f({
|
|
1034
1042
|
stackedStyle: h,
|
|
1035
|
-
desktopStyle:
|
|
1043
|
+
desktopStyle: W
|
|
1036
1044
|
}),
|
|
1037
1045
|
"--column-margin-left-tablet": f({
|
|
1038
1046
|
stackedStyle: y,
|
|
1039
|
-
desktopStyle:
|
|
1047
|
+
desktopStyle: g
|
|
1040
1048
|
})
|
|
1041
1049
|
};
|
|
1042
1050
|
}
|
|
1043
1051
|
function x(S) {
|
|
1044
|
-
var
|
|
1045
|
-
return
|
|
1046
|
-
((
|
|
1052
|
+
var W, g;
|
|
1053
|
+
return Oe(
|
|
1054
|
+
((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
|
|
1047
1055
|
)[S].max;
|
|
1048
1056
|
}
|
|
1049
|
-
function
|
|
1057
|
+
function B() {
|
|
1050
1058
|
return `
|
|
1051
1059
|
@media (max-width: ${x("medium")}px) {
|
|
1052
1060
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1073,31 +1081,31 @@ function $t(e) {
|
|
|
1073
1081
|
},
|
|
1074
1082
|
`;
|
|
1075
1083
|
}
|
|
1076
|
-
function
|
|
1084
|
+
function V(S, w) {
|
|
1077
1085
|
return {
|
|
1078
1086
|
...S.link ? {
|
|
1079
1087
|
href: S.link
|
|
1080
1088
|
} : {},
|
|
1081
|
-
[
|
|
1082
|
-
style:
|
|
1089
|
+
[K()]: "builder-column",
|
|
1090
|
+
style: Le(I(w))
|
|
1083
1091
|
};
|
|
1084
1092
|
}
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
-
/* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
1094
|
+
/* @__PURE__ */ E(
|
|
1087
1095
|
"div",
|
|
1088
1096
|
{
|
|
1089
|
-
className:
|
|
1097
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1090
1098
|
style: p(),
|
|
1091
1099
|
children: [
|
|
1092
|
-
/* @__PURE__ */ s(
|
|
1093
|
-
(
|
|
1094
|
-
|
|
1100
|
+
/* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
|
|
1101
|
+
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1102
|
+
me,
|
|
1095
1103
|
{
|
|
1096
1104
|
TagName: l(S),
|
|
1097
1105
|
actionAttributes: {},
|
|
1098
|
-
attributes:
|
|
1106
|
+
attributes: V(S, w),
|
|
1099
1107
|
children: /* @__PURE__ */ s(
|
|
1100
|
-
|
|
1108
|
+
L,
|
|
1101
1109
|
{
|
|
1102
1110
|
path: `component.options.columns.${w}.blocks`,
|
|
1103
1111
|
parent: e.builderBlock.id,
|
|
@@ -1125,37 +1133,37 @@ function $t(e) {
|
|
|
1125
1133
|
function Dt(e) {
|
|
1126
1134
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1127
1135
|
}
|
|
1128
|
-
function
|
|
1136
|
+
function Se(e) {
|
|
1129
1137
|
return e.replace(/http(s)?:/, "");
|
|
1130
1138
|
}
|
|
1131
|
-
function
|
|
1139
|
+
function Ot(e = "", t, n) {
|
|
1132
1140
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1133
1141
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1134
1142
|
}
|
|
1135
|
-
function
|
|
1143
|
+
function jt(e, t) {
|
|
1136
1144
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1137
1145
|
return e;
|
|
1138
1146
|
if (t === "master")
|
|
1139
|
-
return
|
|
1147
|
+
return Se(e);
|
|
1140
1148
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1141
1149
|
if (n) {
|
|
1142
1150
|
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1143
|
-
return
|
|
1151
|
+
return Se(`${i[0]}_${r}${o}`);
|
|
1144
1152
|
}
|
|
1145
1153
|
return null;
|
|
1146
1154
|
}
|
|
1147
|
-
function
|
|
1155
|
+
function ae(e) {
|
|
1148
1156
|
if (!e)
|
|
1149
1157
|
return e;
|
|
1150
1158
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1151
1159
|
if (e.match(/builder\.io/)) {
|
|
1152
1160
|
let n = e;
|
|
1153
1161
|
const i = Number(e.split("?width=")[1]);
|
|
1154
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1162
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1155
1163
|
}
|
|
1156
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1164
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1157
1165
|
}
|
|
1158
|
-
function
|
|
1166
|
+
function Ut(e) {
|
|
1159
1167
|
var o, r, a, l, c, u;
|
|
1160
1168
|
function t() {
|
|
1161
1169
|
var m;
|
|
@@ -1166,10 +1174,10 @@ function jt(e) {
|
|
|
1166
1174
|
return e.srcset;
|
|
1167
1175
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1168
1176
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1169
|
-
return console.debug("Removed given srcset"),
|
|
1177
|
+
return console.debug("Removed given srcset"), ae(d);
|
|
1170
1178
|
} else if (e.image && !e.srcset)
|
|
1171
|
-
return
|
|
1172
|
-
return
|
|
1179
|
+
return ae(d);
|
|
1180
|
+
return ae(d);
|
|
1173
1181
|
}
|
|
1174
1182
|
function n() {
|
|
1175
1183
|
var f;
|
|
@@ -1185,9 +1193,9 @@ function jt(e) {
|
|
|
1185
1193
|
};
|
|
1186
1194
|
return e.aspectRatio ? f : void 0;
|
|
1187
1195
|
}
|
|
1188
|
-
return /* @__PURE__ */
|
|
1189
|
-
/* @__PURE__ */
|
|
1190
|
-
/* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
1197
|
+
/* @__PURE__ */ E(R, { children: [
|
|
1198
|
+
/* @__PURE__ */ E("picture", { children: [
|
|
1191
1199
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1192
1200
|
/* @__PURE__ */ s(
|
|
1193
1201
|
"img",
|
|
@@ -1217,7 +1225,7 @@ function jt(e) {
|
|
|
1217
1225
|
}
|
|
1218
1226
|
}
|
|
1219
1227
|
) : null,
|
|
1220
|
-
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1228
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1221
1229
|
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1222
1230
|
] }),
|
|
1223
1231
|
/* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
|
|
@@ -1239,7 +1247,7 @@ function jt(e) {
|
|
|
1239
1247
|
}` })
|
|
1240
1248
|
] });
|
|
1241
1249
|
}
|
|
1242
|
-
function
|
|
1250
|
+
function Mt(e) {
|
|
1243
1251
|
return /* @__PURE__ */ s(
|
|
1244
1252
|
"section",
|
|
1245
1253
|
{
|
|
@@ -1260,7 +1268,7 @@ function Ut(e) {
|
|
|
1260
1268
|
}
|
|
1261
1269
|
);
|
|
1262
1270
|
}
|
|
1263
|
-
const
|
|
1271
|
+
const re = {
|
|
1264
1272
|
"@type": "@builder.io/sdk:Element",
|
|
1265
1273
|
layerName: "Accordion item title",
|
|
1266
1274
|
responsiveStyles: {
|
|
@@ -1289,7 +1297,7 @@ const ae = {
|
|
|
1289
1297
|
}
|
|
1290
1298
|
}
|
|
1291
1299
|
}]
|
|
1292
|
-
},
|
|
1300
|
+
}, le = {
|
|
1293
1301
|
"@type": "@builder.io/sdk:Element",
|
|
1294
1302
|
layerName: "Accordion item detail",
|
|
1295
1303
|
responsiveStyles: {
|
|
@@ -1320,7 +1328,7 @@ const ae = {
|
|
|
1320
1328
|
}
|
|
1321
1329
|
}
|
|
1322
1330
|
}]
|
|
1323
|
-
},
|
|
1331
|
+
}, Ht = {
|
|
1324
1332
|
name: "Builder:Accordion",
|
|
1325
1333
|
canHaveChildren: !0,
|
|
1326
1334
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1337,19 +1345,19 @@ const ae = {
|
|
|
1337
1345
|
name: "title",
|
|
1338
1346
|
type: "uiBlocks",
|
|
1339
1347
|
hideFromUI: !0,
|
|
1340
|
-
defaultValue: [
|
|
1348
|
+
defaultValue: [re]
|
|
1341
1349
|
}, {
|
|
1342
1350
|
name: "detail",
|
|
1343
1351
|
type: "uiBlocks",
|
|
1344
1352
|
hideFromUI: !0,
|
|
1345
|
-
defaultValue: [
|
|
1353
|
+
defaultValue: [le]
|
|
1346
1354
|
}],
|
|
1347
1355
|
defaultValue: [{
|
|
1348
|
-
title: [
|
|
1349
|
-
detail: [
|
|
1356
|
+
title: [re],
|
|
1357
|
+
detail: [le]
|
|
1350
1358
|
}, {
|
|
1351
|
-
title: [
|
|
1352
|
-
detail: [
|
|
1359
|
+
title: [re],
|
|
1360
|
+
detail: [le]
|
|
1353
1361
|
}],
|
|
1354
1362
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1355
1363
|
}, {
|
|
@@ -1377,9 +1385,15 @@ const ae = {
|
|
|
1377
1385
|
onChange: (e) => {
|
|
1378
1386
|
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1379
1387
|
}
|
|
1380
|
-
}]
|
|
1381
|
-
|
|
1382
|
-
|
|
1388
|
+
}],
|
|
1389
|
+
shouldReceiveBuilderProps: {
|
|
1390
|
+
builderBlock: !0,
|
|
1391
|
+
builderContext: !0,
|
|
1392
|
+
builderComponents: !0,
|
|
1393
|
+
builderLinkComponent: !0
|
|
1394
|
+
}
|
|
1395
|
+
}, ke = (e) => e.toString();
|
|
1396
|
+
function Kt(e) {
|
|
1383
1397
|
var d;
|
|
1384
1398
|
const [t, n] = C(() => []);
|
|
1385
1399
|
function i() {
|
|
@@ -1398,7 +1412,7 @@ function Ht(e) {
|
|
|
1398
1412
|
};
|
|
1399
1413
|
}
|
|
1400
1414
|
function r() {
|
|
1401
|
-
const
|
|
1415
|
+
const b = {
|
|
1402
1416
|
...{
|
|
1403
1417
|
display: "flex",
|
|
1404
1418
|
flexDirection: "column"
|
|
@@ -1407,7 +1421,7 @@ function Ht(e) {
|
|
|
1407
1421
|
cursor: "pointer"
|
|
1408
1422
|
};
|
|
1409
1423
|
return Object.fromEntries(
|
|
1410
|
-
Object.entries(
|
|
1424
|
+
Object.entries(b).filter(([p, I]) => I !== void 0)
|
|
1411
1425
|
);
|
|
1412
1426
|
}
|
|
1413
1427
|
function a(m) {
|
|
@@ -1424,18 +1438,18 @@ function Ht(e) {
|
|
|
1424
1438
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1425
1439
|
);
|
|
1426
1440
|
if (m = p, x) {
|
|
1427
|
-
let
|
|
1441
|
+
let B = x.getBoundingClientRect();
|
|
1428
1442
|
for (; x = x && x.nextElementSibling; )
|
|
1429
1443
|
if (x) {
|
|
1430
1444
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1431
1445
|
continue;
|
|
1432
|
-
const
|
|
1433
|
-
if (
|
|
1446
|
+
const V = x.getBoundingClientRect();
|
|
1447
|
+
if (V.left > B.left) {
|
|
1434
1448
|
const A = parseInt(
|
|
1435
1449
|
x.getAttribute("data-index") || "",
|
|
1436
1450
|
10
|
|
1437
1451
|
);
|
|
1438
|
-
isNaN(A) || (
|
|
1452
|
+
isNaN(A) || (B = V, m = A);
|
|
1439
1453
|
} else
|
|
1440
1454
|
break;
|
|
1441
1455
|
}
|
|
@@ -1451,29 +1465,29 @@ function Ht(e) {
|
|
|
1451
1465
|
}
|
|
1452
1466
|
};
|
|
1453
1467
|
return Object.fromEntries(
|
|
1454
|
-
Object.entries(m).filter(([
|
|
1468
|
+
Object.entries(m).filter(([b, p]) => p !== void 0)
|
|
1455
1469
|
);
|
|
1456
1470
|
}
|
|
1457
1471
|
function f(m) {
|
|
1458
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1472
|
+
t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
|
|
1459
1473
|
}
|
|
1460
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1474
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
|
|
1461
1475
|
/* @__PURE__ */ s(
|
|
1462
1476
|
"div",
|
|
1463
1477
|
{
|
|
1464
|
-
className: a(
|
|
1478
|
+
className: a(b),
|
|
1465
1479
|
style: {
|
|
1466
1480
|
...r(),
|
|
1467
1481
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1468
|
-
order: c() !== null ?
|
|
1482
|
+
order: c() !== null ? ke(b) : ke(b + 1)
|
|
1469
1483
|
},
|
|
1470
|
-
"data-index":
|
|
1471
|
-
onClick: (p) => f(
|
|
1484
|
+
"data-index": b,
|
|
1485
|
+
onClick: (p) => f(b),
|
|
1472
1486
|
children: /* @__PURE__ */ s(
|
|
1473
|
-
|
|
1487
|
+
L,
|
|
1474
1488
|
{
|
|
1475
1489
|
blocks: m.title,
|
|
1476
|
-
path: `items.${
|
|
1490
|
+
path: `items.${b}.title`,
|
|
1477
1491
|
parent: e.builderBlock.id,
|
|
1478
1492
|
context: e.builderContext,
|
|
1479
1493
|
registeredComponents: e.builderComponents,
|
|
@@ -1482,16 +1496,16 @@ function Ht(e) {
|
|
|
1482
1496
|
)
|
|
1483
1497
|
}
|
|
1484
1498
|
),
|
|
1485
|
-
t.includes(
|
|
1499
|
+
t.includes(b) ? /* @__PURE__ */ s(
|
|
1486
1500
|
"div",
|
|
1487
1501
|
{
|
|
1488
|
-
className: l(
|
|
1502
|
+
className: l(b),
|
|
1489
1503
|
style: u(),
|
|
1490
1504
|
children: /* @__PURE__ */ s(
|
|
1491
|
-
|
|
1505
|
+
L,
|
|
1492
1506
|
{
|
|
1493
1507
|
blocks: m.detail,
|
|
1494
|
-
path: `items.${
|
|
1508
|
+
path: `items.${b}.detail`,
|
|
1495
1509
|
parent: e.builderBlock.id,
|
|
1496
1510
|
context: e.builderContext,
|
|
1497
1511
|
registeredComponents: e.builderComponents,
|
|
@@ -1502,7 +1516,7 @@ function Ht(e) {
|
|
|
1502
1516
|
) : null
|
|
1503
1517
|
] })) });
|
|
1504
1518
|
}
|
|
1505
|
-
const
|
|
1519
|
+
const qt = {
|
|
1506
1520
|
name: "Core:Button",
|
|
1507
1521
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1508
1522
|
defaultStyles: {
|
|
@@ -1534,8 +1548,14 @@ const Kt = {
|
|
|
1534
1548
|
friendlyName: "Open link in new tab"
|
|
1535
1549
|
}],
|
|
1536
1550
|
static: !0,
|
|
1537
|
-
noWrap: !0
|
|
1538
|
-
|
|
1551
|
+
noWrap: !0,
|
|
1552
|
+
shouldReceiveBuilderProps: {
|
|
1553
|
+
builderBlock: !1,
|
|
1554
|
+
builderContext: !1,
|
|
1555
|
+
builderComponents: !1,
|
|
1556
|
+
builderLinkComponent: !0
|
|
1557
|
+
}
|
|
1558
|
+
}, _t = {
|
|
1539
1559
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1540
1560
|
name: "Columns",
|
|
1541
1561
|
isRSC: !0,
|
|
@@ -1735,14 +1755,26 @@ const Kt = {
|
|
|
1735
1755
|
defaultValue: !1,
|
|
1736
1756
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1737
1757
|
advanced: !0
|
|
1738
|
-
}]
|
|
1739
|
-
|
|
1758
|
+
}],
|
|
1759
|
+
shouldReceiveBuilderProps: {
|
|
1760
|
+
builderBlock: !0,
|
|
1761
|
+
builderContext: !0,
|
|
1762
|
+
builderComponents: !0,
|
|
1763
|
+
builderLinkComponent: !0
|
|
1764
|
+
}
|
|
1765
|
+
}, zt = {
|
|
1766
|
+
shouldReceiveBuilderProps: {
|
|
1767
|
+
builderBlock: !1,
|
|
1768
|
+
builderContext: !1,
|
|
1769
|
+
builderComponents: !1,
|
|
1770
|
+
builderLinkComponent: !1
|
|
1771
|
+
},
|
|
1740
1772
|
name: "Fragment",
|
|
1741
1773
|
static: !0,
|
|
1742
1774
|
hidden: !0,
|
|
1743
1775
|
canHaveChildren: !0,
|
|
1744
1776
|
noWrap: !0
|
|
1745
|
-
},
|
|
1777
|
+
}, Jt = {
|
|
1746
1778
|
name: "Image",
|
|
1747
1779
|
static: !0,
|
|
1748
1780
|
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",
|
|
@@ -1846,8 +1878,20 @@ const Kt = {
|
|
|
1846
1878
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1847
1879
|
advanced: !0,
|
|
1848
1880
|
defaultValue: 0.7041
|
|
1849
|
-
}]
|
|
1850
|
-
|
|
1881
|
+
}],
|
|
1882
|
+
shouldReceiveBuilderProps: {
|
|
1883
|
+
builderBlock: !0,
|
|
1884
|
+
builderContext: !1,
|
|
1885
|
+
builderComponents: !1,
|
|
1886
|
+
builderLinkComponent: !1
|
|
1887
|
+
}
|
|
1888
|
+
}, Yt = {
|
|
1889
|
+
shouldReceiveBuilderProps: {
|
|
1890
|
+
builderBlock: !1,
|
|
1891
|
+
builderContext: !1,
|
|
1892
|
+
builderComponents: !1,
|
|
1893
|
+
builderLinkComponent: !1
|
|
1894
|
+
},
|
|
1851
1895
|
name: "Core:Section",
|
|
1852
1896
|
static: !0,
|
|
1853
1897
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1886,7 +1930,7 @@ const Kt = {
|
|
|
1886
1930
|
}
|
|
1887
1931
|
}
|
|
1888
1932
|
}]
|
|
1889
|
-
},
|
|
1933
|
+
}, Gt = {
|
|
1890
1934
|
name: "Slot",
|
|
1891
1935
|
isRSC: !0,
|
|
1892
1936
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1898,9 +1942,15 @@ const Kt = {
|
|
|
1898
1942
|
type: "string",
|
|
1899
1943
|
required: !0,
|
|
1900
1944
|
defaultValue: "children"
|
|
1901
|
-
}]
|
|
1945
|
+
}],
|
|
1946
|
+
shouldReceiveBuilderProps: {
|
|
1947
|
+
builderBlock: !1,
|
|
1948
|
+
builderContext: !0,
|
|
1949
|
+
builderComponents: !1,
|
|
1950
|
+
builderLinkComponent: !1
|
|
1951
|
+
}
|
|
1902
1952
|
};
|
|
1903
|
-
function
|
|
1953
|
+
function Qt(e) {
|
|
1904
1954
|
var t, n, i;
|
|
1905
1955
|
return /* @__PURE__ */ s(
|
|
1906
1956
|
"div",
|
|
@@ -1912,7 +1962,7 @@ function Gt(e) {
|
|
|
1912
1962
|
"builder-slot": e.name
|
|
1913
1963
|
},
|
|
1914
1964
|
children: /* @__PURE__ */ s(
|
|
1915
|
-
|
|
1965
|
+
L,
|
|
1916
1966
|
{
|
|
1917
1967
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1918
1968
|
path: `symbol.data.${e.name}`,
|
|
@@ -1923,7 +1973,7 @@ function Gt(e) {
|
|
|
1923
1973
|
}
|
|
1924
1974
|
);
|
|
1925
1975
|
}
|
|
1926
|
-
const
|
|
1976
|
+
const Xt = {
|
|
1927
1977
|
name: "Symbol",
|
|
1928
1978
|
noWrap: !0,
|
|
1929
1979
|
static: !0,
|
|
@@ -1955,8 +2005,14 @@ const Qt = {
|
|
|
1955
2005
|
name: "useChildren",
|
|
1956
2006
|
hideFromUI: !0,
|
|
1957
2007
|
type: "boolean"
|
|
1958
|
-
}]
|
|
1959
|
-
|
|
2008
|
+
}],
|
|
2009
|
+
shouldReceiveBuilderProps: {
|
|
2010
|
+
builderBlock: !0,
|
|
2011
|
+
builderContext: !0,
|
|
2012
|
+
builderComponents: !0,
|
|
2013
|
+
builderLinkComponent: !0
|
|
2014
|
+
}
|
|
2015
|
+
}, se = {
|
|
1960
2016
|
"@type": "@builder.io/sdk:Element",
|
|
1961
2017
|
responsiveStyles: {
|
|
1962
2018
|
large: {
|
|
@@ -1978,7 +2034,7 @@ const Qt = {
|
|
|
1978
2034
|
text: "New tab"
|
|
1979
2035
|
}
|
|
1980
2036
|
}
|
|
1981
|
-
},
|
|
2037
|
+
}, ce = {
|
|
1982
2038
|
"@type": "@builder.io/sdk:Element",
|
|
1983
2039
|
responsiveStyles: {
|
|
1984
2040
|
large: {
|
|
@@ -1994,7 +2050,7 @@ const Qt = {
|
|
|
1994
2050
|
text: "New tab content "
|
|
1995
2051
|
}
|
|
1996
2052
|
}
|
|
1997
|
-
},
|
|
2053
|
+
}, Zt = {
|
|
1998
2054
|
name: "Builder: Tabs",
|
|
1999
2055
|
inputs: [{
|
|
2000
2056
|
name: "tabs",
|
|
@@ -2004,16 +2060,16 @@ const Qt = {
|
|
|
2004
2060
|
name: "label",
|
|
2005
2061
|
type: "uiBlocks",
|
|
2006
2062
|
hideFromUI: !0,
|
|
2007
|
-
defaultValue: [
|
|
2063
|
+
defaultValue: [se]
|
|
2008
2064
|
}, {
|
|
2009
2065
|
name: "content",
|
|
2010
2066
|
type: "uiBlocks",
|
|
2011
2067
|
hideFromUI: !0,
|
|
2012
|
-
defaultValue: [
|
|
2068
|
+
defaultValue: [ce]
|
|
2013
2069
|
}],
|
|
2014
2070
|
defaultValue: [{
|
|
2015
2071
|
label: [{
|
|
2016
|
-
...
|
|
2072
|
+
...se,
|
|
2017
2073
|
component: {
|
|
2018
2074
|
name: "Text",
|
|
2019
2075
|
options: {
|
|
@@ -2022,7 +2078,7 @@ const Qt = {
|
|
|
2022
2078
|
}
|
|
2023
2079
|
}],
|
|
2024
2080
|
content: [{
|
|
2025
|
-
...
|
|
2081
|
+
...ce,
|
|
2026
2082
|
component: {
|
|
2027
2083
|
name: "Text",
|
|
2028
2084
|
options: {
|
|
@@ -2032,7 +2088,7 @@ const Qt = {
|
|
|
2032
2088
|
}]
|
|
2033
2089
|
}, {
|
|
2034
2090
|
label: [{
|
|
2035
|
-
...
|
|
2091
|
+
...se,
|
|
2036
2092
|
component: {
|
|
2037
2093
|
name: "Text",
|
|
2038
2094
|
options: {
|
|
@@ -2041,7 +2097,7 @@ const Qt = {
|
|
|
2041
2097
|
}
|
|
2042
2098
|
}],
|
|
2043
2099
|
content: [{
|
|
2044
|
-
...
|
|
2100
|
+
...ce,
|
|
2045
2101
|
component: {
|
|
2046
2102
|
name: "Text",
|
|
2047
2103
|
options: {
|
|
@@ -2090,9 +2146,15 @@ const Qt = {
|
|
|
2090
2146
|
label: "Right",
|
|
2091
2147
|
value: "flex-end"
|
|
2092
2148
|
}]
|
|
2093
|
-
}]
|
|
2149
|
+
}],
|
|
2150
|
+
shouldReceiveBuilderProps: {
|
|
2151
|
+
builderBlock: !0,
|
|
2152
|
+
builderContext: !0,
|
|
2153
|
+
builderComponents: !0,
|
|
2154
|
+
builderLinkComponent: !0
|
|
2155
|
+
}
|
|
2094
2156
|
};
|
|
2095
|
-
function
|
|
2157
|
+
function en(e) {
|
|
2096
2158
|
var r;
|
|
2097
2159
|
const [t, n] = C(
|
|
2098
2160
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2103,7 +2165,7 @@ function Zt(e) {
|
|
|
2103
2165
|
function o(a) {
|
|
2104
2166
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2105
2167
|
}
|
|
2106
|
-
return /* @__PURE__ */
|
|
2168
|
+
return /* @__PURE__ */ E("div", { children: [
|
|
2107
2169
|
/* @__PURE__ */ s(
|
|
2108
2170
|
"div",
|
|
2109
2171
|
{
|
|
@@ -2123,7 +2185,7 @@ function Zt(e) {
|
|
|
2123
2185
|
},
|
|
2124
2186
|
onClick: (c) => o(l),
|
|
2125
2187
|
children: /* @__PURE__ */ s(
|
|
2126
|
-
|
|
2188
|
+
L,
|
|
2127
2189
|
{
|
|
2128
2190
|
parent: e.builderBlock.id,
|
|
2129
2191
|
path: `component.options.tabs.${l}.label`,
|
|
@@ -2139,7 +2201,7 @@ function Zt(e) {
|
|
|
2139
2201
|
}
|
|
2140
2202
|
),
|
|
2141
2203
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2142
|
-
|
|
2204
|
+
L,
|
|
2143
2205
|
{
|
|
2144
2206
|
parent: e.builderBlock.id,
|
|
2145
2207
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2151,7 +2213,13 @@ function Zt(e) {
|
|
|
2151
2213
|
) }) : null
|
|
2152
2214
|
] });
|
|
2153
2215
|
}
|
|
2154
|
-
const
|
|
2216
|
+
const tn = {
|
|
2217
|
+
shouldReceiveBuilderProps: {
|
|
2218
|
+
builderBlock: !1,
|
|
2219
|
+
builderContext: !1,
|
|
2220
|
+
builderComponents: !1,
|
|
2221
|
+
builderLinkComponent: !1
|
|
2222
|
+
},
|
|
2155
2223
|
name: "Text",
|
|
2156
2224
|
static: !0,
|
|
2157
2225
|
isRSC: !0,
|
|
@@ -2170,7 +2238,7 @@ const en = {
|
|
|
2170
2238
|
textAlign: "center"
|
|
2171
2239
|
}
|
|
2172
2240
|
};
|
|
2173
|
-
function
|
|
2241
|
+
function nn(e) {
|
|
2174
2242
|
var t;
|
|
2175
2243
|
return /* @__PURE__ */ s(
|
|
2176
2244
|
"div",
|
|
@@ -2183,7 +2251,13 @@ function tn(e) {
|
|
|
2183
2251
|
}
|
|
2184
2252
|
);
|
|
2185
2253
|
}
|
|
2186
|
-
const
|
|
2254
|
+
const on = {
|
|
2255
|
+
shouldReceiveBuilderProps: {
|
|
2256
|
+
builderBlock: !1,
|
|
2257
|
+
builderContext: !1,
|
|
2258
|
+
builderComponents: !1,
|
|
2259
|
+
builderLinkComponent: !1
|
|
2260
|
+
},
|
|
2187
2261
|
name: "Custom Code",
|
|
2188
2262
|
static: !0,
|
|
2189
2263
|
requiredPermissions: ["editCode"],
|
|
@@ -2206,7 +2280,7 @@ const nn = {
|
|
|
2206
2280
|
advanced: !0
|
|
2207
2281
|
}]
|
|
2208
2282
|
};
|
|
2209
|
-
function
|
|
2283
|
+
function an(e) {
|
|
2210
2284
|
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
|
|
2211
2285
|
return P(() => {
|
|
2212
2286
|
var l;
|
|
@@ -2244,7 +2318,13 @@ function on(e) {
|
|
|
2244
2318
|
}
|
|
2245
2319
|
);
|
|
2246
2320
|
}
|
|
2247
|
-
const
|
|
2321
|
+
const rn = {
|
|
2322
|
+
shouldReceiveBuilderProps: {
|
|
2323
|
+
builderBlock: !1,
|
|
2324
|
+
builderContext: !1,
|
|
2325
|
+
builderComponents: !1,
|
|
2326
|
+
builderLinkComponent: !1
|
|
2327
|
+
},
|
|
2248
2328
|
name: "Embed",
|
|
2249
2329
|
static: !0,
|
|
2250
2330
|
inputs: [{
|
|
@@ -2272,8 +2352,8 @@ const an = {
|
|
|
2272
2352
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2273
2353
|
hideFromUI: !0
|
|
2274
2354
|
}]
|
|
2275
|
-
},
|
|
2276
|
-
function
|
|
2355
|
+
}, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
|
|
2356
|
+
function cn(e) {
|
|
2277
2357
|
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
|
|
2278
2358
|
function c() {
|
|
2279
2359
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2285,7 +2365,7 @@ function sn(e) {
|
|
|
2285
2365
|
n.push(d.src);
|
|
2286
2366
|
const m = document.createElement("script");
|
|
2287
2367
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2288
|
-
} else if (
|
|
2368
|
+
} else if (sn(d) && !o.includes(d.innerText))
|
|
2289
2369
|
try {
|
|
2290
2370
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2291
2371
|
} catch (m) {
|
|
@@ -2304,7 +2384,7 @@ function sn(e) {
|
|
|
2304
2384
|
}
|
|
2305
2385
|
);
|
|
2306
2386
|
}
|
|
2307
|
-
const
|
|
2387
|
+
const dn = {
|
|
2308
2388
|
name: "Form:Form",
|
|
2309
2389
|
// editableTags: ['builder-form-error']
|
|
2310
2390
|
defaults: {
|
|
@@ -2534,98 +2614,104 @@ const cn = {
|
|
|
2534
2614
|
text: "Submit"
|
|
2535
2615
|
}
|
|
2536
2616
|
}
|
|
2537
|
-
}]
|
|
2538
|
-
|
|
2617
|
+
}],
|
|
2618
|
+
shouldReceiveBuilderProps: {
|
|
2619
|
+
builderBlock: !0,
|
|
2620
|
+
builderContext: !0,
|
|
2621
|
+
builderComponents: !0,
|
|
2622
|
+
builderLinkComponent: !0
|
|
2623
|
+
}
|
|
2624
|
+
}, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
|
|
2539
2625
|
const e = process.env.NODE_ENV || "production";
|
|
2540
|
-
return
|
|
2541
|
-
},
|
|
2626
|
+
return un.includes(e) ? e : "production";
|
|
2627
|
+
}, fn = (e, t, n) => {
|
|
2542
2628
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
2543
2629
|
return i === void 0 || i === e ? n : i;
|
|
2544
2630
|
};
|
|
2545
|
-
function
|
|
2631
|
+
function hn(e) {
|
|
2546
2632
|
var d, m;
|
|
2547
2633
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
|
|
2548
|
-
function c(
|
|
2634
|
+
function c(b) {
|
|
2549
2635
|
var I, x;
|
|
2550
2636
|
const p = {
|
|
2551
2637
|
...e.builderContext.rootState,
|
|
2552
|
-
...
|
|
2638
|
+
...b
|
|
2553
2639
|
};
|
|
2554
2640
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2555
2641
|
}
|
|
2556
2642
|
function u() {
|
|
2557
|
-
return
|
|
2643
|
+
return F() && e.previewState || n;
|
|
2558
2644
|
}
|
|
2559
|
-
function f(
|
|
2645
|
+
function f(b) {
|
|
2560
2646
|
var I;
|
|
2561
2647
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2562
2648
|
if (e.sendSubmissionsTo === "zapier")
|
|
2563
|
-
|
|
2649
|
+
b.preventDefault();
|
|
2564
2650
|
else if (p) {
|
|
2565
2651
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2566
|
-
|
|
2652
|
+
b.preventDefault();
|
|
2567
2653
|
return;
|
|
2568
2654
|
}
|
|
2569
|
-
|
|
2570
|
-
const x =
|
|
2571
|
-
let
|
|
2572
|
-
const A = new FormData(x),
|
|
2655
|
+
b.preventDefault();
|
|
2656
|
+
const x = b.currentTarget || b.target, B = e.customHeaders || {};
|
|
2657
|
+
let V;
|
|
2658
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
|
|
2573
2659
|
let h;
|
|
2574
|
-
const y =
|
|
2575
|
-
if (
|
|
2576
|
-
if (
|
|
2577
|
-
if (
|
|
2578
|
-
return h =
|
|
2660
|
+
const y = g.name;
|
|
2661
|
+
if (g instanceof HTMLInputElement)
|
|
2662
|
+
if (g.type === "radio") {
|
|
2663
|
+
if (g.checked)
|
|
2664
|
+
return h = g.name, {
|
|
2579
2665
|
key: y,
|
|
2580
2666
|
value: h
|
|
2581
2667
|
};
|
|
2582
|
-
} else if (
|
|
2583
|
-
h =
|
|
2584
|
-
else if (
|
|
2585
|
-
const v =
|
|
2668
|
+
} else if (g.type === "checkbox")
|
|
2669
|
+
h = g.checked;
|
|
2670
|
+
else if (g.type === "number" || g.type === "range") {
|
|
2671
|
+
const v = g.valueAsNumber;
|
|
2586
2672
|
isNaN(v) || (h = v);
|
|
2587
2673
|
} else
|
|
2588
|
-
|
|
2674
|
+
g.type === "file" ? h = g.files : h = g.value;
|
|
2589
2675
|
else
|
|
2590
|
-
h =
|
|
2676
|
+
h = g.value;
|
|
2591
2677
|
return {
|
|
2592
2678
|
key: y,
|
|
2593
2679
|
value: h
|
|
2594
2680
|
};
|
|
2595
2681
|
});
|
|
2596
2682
|
let S = e.contentType;
|
|
2597
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(
|
|
2598
|
-
(
|
|
2683
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
|
|
2684
|
+
(g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
|
|
2599
2685
|
}), S !== "application/json")
|
|
2600
|
-
|
|
2686
|
+
V = A;
|
|
2601
2687
|
else {
|
|
2602
|
-
const
|
|
2603
|
-
Array.from(
|
|
2604
|
-
|
|
2605
|
-
}),
|
|
2688
|
+
const g = {};
|
|
2689
|
+
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2690
|
+
Ae(g, y, h);
|
|
2691
|
+
}), V = JSON.stringify(g);
|
|
2606
2692
|
}
|
|
2607
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2608
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2693
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
|
|
2694
|
+
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2609
2695
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2610
2696
|
return;
|
|
2611
2697
|
i("sending");
|
|
2612
|
-
const
|
|
2698
|
+
const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2613
2699
|
e.sendSubmissionsToEmail || ""
|
|
2614
2700
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2615
2701
|
fetch(
|
|
2616
|
-
e.sendSubmissionsTo === "email" ?
|
|
2617
|
-
{ body:
|
|
2702
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2703
|
+
{ body: V, headers: B, method: e.method || "post" }
|
|
2618
2704
|
).then(
|
|
2619
|
-
async (
|
|
2705
|
+
async (g) => {
|
|
2620
2706
|
let h;
|
|
2621
|
-
const y =
|
|
2622
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2623
|
-
let v =
|
|
2707
|
+
const y = g.headers.get("content-type");
|
|
2708
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
|
|
2709
|
+
let v = fn(h, e.errorMessagePath);
|
|
2624
2710
|
v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
|
|
2625
2711
|
}
|
|
2626
|
-
if (r(h), i(
|
|
2712
|
+
if (r(h), i(g.ok ? "success" : "error"), g.ok) {
|
|
2627
2713
|
const v = new CustomEvent("submit:success", {
|
|
2628
|
-
detail: { res:
|
|
2714
|
+
detail: { res: g, body: h }
|
|
2629
2715
|
});
|
|
2630
2716
|
if (t.current) {
|
|
2631
2717
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2642,18 +2728,18 @@ function fn(e) {
|
|
|
2642
2728
|
location.href = e.successUrl;
|
|
2643
2729
|
}
|
|
2644
2730
|
},
|
|
2645
|
-
(
|
|
2731
|
+
(g) => {
|
|
2646
2732
|
const h = new CustomEvent("submit:error", {
|
|
2647
|
-
detail: { error:
|
|
2733
|
+
detail: { error: g }
|
|
2648
2734
|
});
|
|
2649
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(
|
|
2735
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(g), i("error"));
|
|
2650
2736
|
}
|
|
2651
2737
|
);
|
|
2652
2738
|
}
|
|
2653
2739
|
}
|
|
2654
|
-
return /* @__PURE__ */
|
|
2740
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
2655
2741
|
" ",
|
|
2656
|
-
/* @__PURE__ */
|
|
2742
|
+
/* @__PURE__ */ E(
|
|
2657
2743
|
"form",
|
|
2658
2744
|
{
|
|
2659
2745
|
validate: e.validate,
|
|
@@ -2661,13 +2747,13 @@ function fn(e) {
|
|
|
2661
2747
|
action: !e.sendWithJs && e.action,
|
|
2662
2748
|
method: e.method,
|
|
2663
2749
|
name: e.name,
|
|
2664
|
-
onSubmit: (
|
|
2750
|
+
onSubmit: (b) => f(b),
|
|
2665
2751
|
...e.attributes,
|
|
2666
2752
|
children: [
|
|
2667
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2753
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((b, p) => /* @__PURE__ */ s(
|
|
2668
2754
|
z,
|
|
2669
2755
|
{
|
|
2670
|
-
block:
|
|
2756
|
+
block: b,
|
|
2671
2757
|
context: e.builderContext,
|
|
2672
2758
|
registeredComponents: e.builderComponents,
|
|
2673
2759
|
linkComponent: e.builderLinkComponent
|
|
@@ -2675,7 +2761,7 @@ function fn(e) {
|
|
|
2675
2761
|
`form-block-${p}`
|
|
2676
2762
|
)) }) : null,
|
|
2677
2763
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2678
|
-
|
|
2764
|
+
L,
|
|
2679
2765
|
{
|
|
2680
2766
|
path: "errorMessage",
|
|
2681
2767
|
blocks: e.errorMessage,
|
|
@@ -2683,7 +2769,7 @@ function fn(e) {
|
|
|
2683
2769
|
}
|
|
2684
2770
|
) : null,
|
|
2685
2771
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2686
|
-
|
|
2772
|
+
L,
|
|
2687
2773
|
{
|
|
2688
2774
|
path: "sendingMessage",
|
|
2689
2775
|
blocks: e.sendingMessage,
|
|
@@ -2692,7 +2778,7 @@ function fn(e) {
|
|
|
2692
2778
|
) : null,
|
|
2693
2779
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2694
2780
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2695
|
-
|
|
2781
|
+
L,
|
|
2696
2782
|
{
|
|
2697
2783
|
path: "successMessage",
|
|
2698
2784
|
blocks: e.successMessage,
|
|
@@ -2707,7 +2793,13 @@ function fn(e) {
|
|
|
2707
2793
|
" "
|
|
2708
2794
|
] });
|
|
2709
2795
|
}
|
|
2710
|
-
const
|
|
2796
|
+
const bn = {
|
|
2797
|
+
shouldReceiveBuilderProps: {
|
|
2798
|
+
builderBlock: !1,
|
|
2799
|
+
builderContext: !1,
|
|
2800
|
+
builderComponents: !1,
|
|
2801
|
+
builderLinkComponent: !1
|
|
2802
|
+
},
|
|
2711
2803
|
name: "Form:Input",
|
|
2712
2804
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2713
2805
|
inputs: [
|
|
@@ -2760,11 +2852,11 @@ const hn = {
|
|
|
2760
2852
|
}
|
|
2761
2853
|
};
|
|
2762
2854
|
function gn(e) {
|
|
2763
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ Pe(
|
|
2764
2856
|
"input",
|
|
2765
2857
|
{
|
|
2766
2858
|
...e.attributes,
|
|
2767
|
-
key:
|
|
2859
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2768
2860
|
placeholder: e.placeholder,
|
|
2769
2861
|
type: e.type,
|
|
2770
2862
|
name: e.name,
|
|
@@ -2774,7 +2866,13 @@ function gn(e) {
|
|
|
2774
2866
|
}
|
|
2775
2867
|
);
|
|
2776
2868
|
}
|
|
2777
|
-
const
|
|
2869
|
+
const pn = {
|
|
2870
|
+
shouldReceiveBuilderProps: {
|
|
2871
|
+
builderBlock: !1,
|
|
2872
|
+
builderContext: !1,
|
|
2873
|
+
builderComponents: !1,
|
|
2874
|
+
builderLinkComponent: !1
|
|
2875
|
+
},
|
|
2778
2876
|
name: "Form:Select",
|
|
2779
2877
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2780
2878
|
defaultStyles: {
|
|
@@ -2817,14 +2915,14 @@ const bn = {
|
|
|
2817
2915
|
static: !0,
|
|
2818
2916
|
noWrap: !0
|
|
2819
2917
|
};
|
|
2820
|
-
function
|
|
2918
|
+
function yn(e) {
|
|
2821
2919
|
var t;
|
|
2822
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ Pe(
|
|
2823
2921
|
"select",
|
|
2824
2922
|
{
|
|
2825
2923
|
...e.attributes,
|
|
2826
2924
|
value: e.value,
|
|
2827
|
-
key:
|
|
2925
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2828
2926
|
defaultValue: e.defaultValue,
|
|
2829
2927
|
name: e.name,
|
|
2830
2928
|
required: e.required
|
|
@@ -2832,7 +2930,13 @@ function pn(e) {
|
|
|
2832
2930
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2833
2931
|
);
|
|
2834
2932
|
}
|
|
2835
|
-
const
|
|
2933
|
+
const xn = {
|
|
2934
|
+
shouldReceiveBuilderProps: {
|
|
2935
|
+
builderBlock: !1,
|
|
2936
|
+
builderContext: !1,
|
|
2937
|
+
builderComponents: !1,
|
|
2938
|
+
builderLinkComponent: !1
|
|
2939
|
+
},
|
|
2836
2940
|
name: "Form:SubmitButton",
|
|
2837
2941
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2838
2942
|
defaultStyles: {
|
|
@@ -2858,10 +2962,16 @@ const yn = {
|
|
|
2858
2962
|
// TODO: defaultChildren
|
|
2859
2963
|
// canHaveChildren: true,
|
|
2860
2964
|
};
|
|
2861
|
-
function
|
|
2965
|
+
function vn(e) {
|
|
2862
2966
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2863
2967
|
}
|
|
2864
|
-
const
|
|
2968
|
+
const Sn = {
|
|
2969
|
+
shouldReceiveBuilderProps: {
|
|
2970
|
+
builderBlock: !1,
|
|
2971
|
+
builderContext: !1,
|
|
2972
|
+
builderComponents: !1,
|
|
2973
|
+
builderLinkComponent: !1
|
|
2974
|
+
},
|
|
2865
2975
|
name: "Form:TextArea",
|
|
2866
2976
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2867
2977
|
inputs: [{
|
|
@@ -2898,7 +3008,7 @@ const vn = {
|
|
|
2898
3008
|
static: !0,
|
|
2899
3009
|
noWrap: !0
|
|
2900
3010
|
};
|
|
2901
|
-
function
|
|
3011
|
+
function kn(e) {
|
|
2902
3012
|
return /* @__PURE__ */ s(
|
|
2903
3013
|
"textarea",
|
|
2904
3014
|
{
|
|
@@ -2911,7 +3021,13 @@ function Sn(e) {
|
|
|
2911
3021
|
}
|
|
2912
3022
|
);
|
|
2913
3023
|
}
|
|
2914
|
-
const
|
|
3024
|
+
const Cn = {
|
|
3025
|
+
shouldReceiveBuilderProps: {
|
|
3026
|
+
builderBlock: !1,
|
|
3027
|
+
builderContext: !1,
|
|
3028
|
+
builderComponents: !1,
|
|
3029
|
+
builderLinkComponent: !1
|
|
3030
|
+
},
|
|
2915
3031
|
// friendlyName?
|
|
2916
3032
|
name: "Raw:Img",
|
|
2917
3033
|
hideFromInsertMenu: !0,
|
|
@@ -2926,7 +3042,7 @@ const kn = {
|
|
|
2926
3042
|
noWrap: !0,
|
|
2927
3043
|
static: !0
|
|
2928
3044
|
};
|
|
2929
|
-
function
|
|
3045
|
+
function Tn(e) {
|
|
2930
3046
|
return /* @__PURE__ */ s(
|
|
2931
3047
|
"img",
|
|
2932
3048
|
{
|
|
@@ -2938,10 +3054,10 @@ function Cn(e) {
|
|
|
2938
3054
|
src: e.imgSrc || e.image,
|
|
2939
3055
|
...e.attributes
|
|
2940
3056
|
},
|
|
2941
|
-
|
|
3057
|
+
F() && e.imgSrc || "default-key"
|
|
2942
3058
|
);
|
|
2943
3059
|
}
|
|
2944
|
-
const
|
|
3060
|
+
const In = {
|
|
2945
3061
|
name: "Video",
|
|
2946
3062
|
canHaveChildren: !0,
|
|
2947
3063
|
defaultStyles: {
|
|
@@ -3021,9 +3137,15 @@ const Tn = {
|
|
|
3021
3137
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
3022
3138
|
defaultValue: !0,
|
|
3023
3139
|
advanced: !0
|
|
3024
|
-
}]
|
|
3140
|
+
}],
|
|
3141
|
+
shouldReceiveBuilderProps: {
|
|
3142
|
+
builderBlock: !0,
|
|
3143
|
+
builderContext: !1,
|
|
3144
|
+
builderComponents: !1,
|
|
3145
|
+
builderLinkComponent: !1
|
|
3146
|
+
}
|
|
3025
3147
|
};
|
|
3026
|
-
function
|
|
3148
|
+
function wn(e) {
|
|
3027
3149
|
var i, o, r, a, l, c, u;
|
|
3028
3150
|
function t() {
|
|
3029
3151
|
return {
|
|
@@ -3049,7 +3171,7 @@ function In(e) {
|
|
|
3049
3171
|
...t()
|
|
3050
3172
|
};
|
|
3051
3173
|
}
|
|
3052
|
-
return /* @__PURE__ */
|
|
3174
|
+
return /* @__PURE__ */ E(
|
|
3053
3175
|
"div",
|
|
3054
3176
|
{
|
|
3055
3177
|
style: {
|
|
@@ -3124,64 +3246,64 @@ function In(e) {
|
|
|
3124
3246
|
}
|
|
3125
3247
|
);
|
|
3126
3248
|
}
|
|
3127
|
-
const
|
|
3128
|
-
component:
|
|
3129
|
-
...
|
|
3249
|
+
const Rn = () => [{
|
|
3250
|
+
component: an,
|
|
3251
|
+
...on
|
|
3130
3252
|
}, {
|
|
3131
|
-
component:
|
|
3132
|
-
...
|
|
3253
|
+
component: cn,
|
|
3254
|
+
...rn
|
|
3133
3255
|
}, {
|
|
3134
|
-
component:
|
|
3135
|
-
...
|
|
3256
|
+
component: hn,
|
|
3257
|
+
...dn
|
|
3136
3258
|
}, {
|
|
3137
3259
|
component: gn,
|
|
3138
|
-
...hn
|
|
3139
|
-
}, {
|
|
3140
|
-
component: xn,
|
|
3141
|
-
...yn
|
|
3142
|
-
}, {
|
|
3143
|
-
component: pn,
|
|
3144
3260
|
...bn
|
|
3145
3261
|
}, {
|
|
3146
|
-
component:
|
|
3147
|
-
...
|
|
3262
|
+
component: vn,
|
|
3263
|
+
...xn
|
|
3264
|
+
}, {
|
|
3265
|
+
component: yn,
|
|
3266
|
+
...pn
|
|
3148
3267
|
}, {
|
|
3149
|
-
component:
|
|
3150
|
-
...
|
|
3268
|
+
component: kn,
|
|
3269
|
+
...Sn
|
|
3151
3270
|
}, {
|
|
3152
|
-
component:
|
|
3153
|
-
...
|
|
3154
|
-
}], ke = () => [{
|
|
3155
|
-
component: nt,
|
|
3156
|
-
...Kt
|
|
3271
|
+
component: Tn,
|
|
3272
|
+
...Cn
|
|
3157
3273
|
}, {
|
|
3158
|
-
component:
|
|
3274
|
+
component: wn,
|
|
3275
|
+
...In
|
|
3276
|
+
}], Ce = () => [{
|
|
3277
|
+
component: it,
|
|
3159
3278
|
...qt
|
|
3160
3279
|
}, {
|
|
3161
|
-
component:
|
|
3280
|
+
component: Lt,
|
|
3162
3281
|
..._t
|
|
3163
3282
|
}, {
|
|
3164
|
-
component:
|
|
3283
|
+
component: Dt,
|
|
3165
3284
|
...zt
|
|
3166
3285
|
}, {
|
|
3167
3286
|
component: Ut,
|
|
3168
3287
|
...Jt
|
|
3169
3288
|
}, {
|
|
3170
|
-
component:
|
|
3289
|
+
component: Mt,
|
|
3171
3290
|
...Yt
|
|
3172
3291
|
}, {
|
|
3173
|
-
component:
|
|
3174
|
-
...
|
|
3175
|
-
}, {
|
|
3176
|
-
component: tn,
|
|
3177
|
-
...en
|
|
3292
|
+
component: Qt,
|
|
3293
|
+
...Gt
|
|
3178
3294
|
}, {
|
|
3179
|
-
component:
|
|
3295
|
+
component: Gn,
|
|
3180
3296
|
...Xt
|
|
3181
3297
|
}, {
|
|
3182
|
-
component:
|
|
3183
|
-
...
|
|
3184
|
-
},
|
|
3298
|
+
component: nn,
|
|
3299
|
+
...tn
|
|
3300
|
+
}, {
|
|
3301
|
+
component: en,
|
|
3302
|
+
...Zt
|
|
3303
|
+
}, {
|
|
3304
|
+
component: Kt,
|
|
3305
|
+
...Ht
|
|
3306
|
+
}, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3185
3307
|
function getAndSetVariantId() {
|
|
3186
3308
|
function setCookie(name, value, days) {
|
|
3187
3309
|
let expires = '';
|
|
@@ -3237,7 +3359,7 @@ const wn = () => [{
|
|
|
3237
3359
|
}).join('');
|
|
3238
3360
|
styleEl.innerHTML = newStyleStr;
|
|
3239
3361
|
}
|
|
3240
|
-
}`,
|
|
3362
|
+
}`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3241
3363
|
if (!navigator.cookieEnabled) {
|
|
3242
3364
|
return;
|
|
3243
3365
|
}
|
|
@@ -3271,26 +3393,26 @@ const wn = () => [{
|
|
|
3271
3393
|
thisScriptEl?.remove();
|
|
3272
3394
|
}
|
|
3273
3395
|
return;
|
|
3274
|
-
}`,
|
|
3396
|
+
}`, Ue = "builderIoAbTest", Me = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3275
3397
|
...t,
|
|
3276
3398
|
testVariationId: t.id,
|
|
3277
3399
|
id: e == null ? void 0 : e.id
|
|
3278
|
-
})),
|
|
3400
|
+
})), En = ({
|
|
3279
3401
|
canTrack: e,
|
|
3280
3402
|
content: t
|
|
3281
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
3282
|
-
window.${
|
|
3283
|
-
window.${
|
|
3284
|
-
`,
|
|
3285
|
-
window.${
|
|
3286
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3287
|
-
)`,
|
|
3403
|
+
}) => !(!(Y(t).length > 0) || !e || M()), Vn = (e) => e === "react" || e === "reactNative", He = Vn(_), An = () => `
|
|
3404
|
+
window.${Ue} = ${Bn}
|
|
3405
|
+
window.${Me} = ${Pn}
|
|
3406
|
+
`, Nn = (e, t) => `
|
|
3407
|
+
window.${Ue}(
|
|
3408
|
+
"${t}",${JSON.stringify(e)}, ${He}
|
|
3409
|
+
)`, Wn = ({
|
|
3288
3410
|
contentId: e,
|
|
3289
3411
|
variationId: t
|
|
3290
|
-
}) => `window.${
|
|
3291
|
-
"${t}", "${e}", ${
|
|
3412
|
+
}) => `window.${Me}(
|
|
3413
|
+
"${t}", "${e}", ${He}
|
|
3292
3414
|
)`;
|
|
3293
|
-
function
|
|
3415
|
+
function de(e) {
|
|
3294
3416
|
return /* @__PURE__ */ s(
|
|
3295
3417
|
"script",
|
|
3296
3418
|
{
|
|
@@ -3299,10 +3421,10 @@ function ce(e) {
|
|
|
3299
3421
|
}
|
|
3300
3422
|
);
|
|
3301
3423
|
}
|
|
3302
|
-
function
|
|
3424
|
+
function Te(e) {
|
|
3303
3425
|
return Math.round(e * 1e3) / 1e3;
|
|
3304
3426
|
}
|
|
3305
|
-
const
|
|
3427
|
+
const $n = (e, t, n = !0) => {
|
|
3306
3428
|
if (!(e instanceof HTMLElement))
|
|
3307
3429
|
return null;
|
|
3308
3430
|
let i = n ? e : e.parentElement;
|
|
@@ -3313,28 +3435,28 @@ const Fn = (e, t, n = !0) => {
|
|
|
3313
3435
|
return i;
|
|
3314
3436
|
} while (i = i.parentElement);
|
|
3315
3437
|
return null;
|
|
3316
|
-
},
|
|
3438
|
+
}, Fn = (e) => $n(e, (t) => {
|
|
3317
3439
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3318
3440
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3319
|
-
}),
|
|
3441
|
+
}), Ie = ({
|
|
3320
3442
|
event: e,
|
|
3321
3443
|
target: t
|
|
3322
3444
|
}) => {
|
|
3323
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r =
|
|
3445
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Te(i / n.width), a = Te(o / n.height);
|
|
3324
3446
|
return {
|
|
3325
3447
|
x: r,
|
|
3326
3448
|
y: a
|
|
3327
3449
|
};
|
|
3328
|
-
},
|
|
3329
|
-
const t = e.target, n = t &&
|
|
3450
|
+
}, Ln = (e) => {
|
|
3451
|
+
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3330
3452
|
return {
|
|
3331
3453
|
targetBuilderElement: i || void 0,
|
|
3332
3454
|
metadata: {
|
|
3333
|
-
targetOffset: t ?
|
|
3455
|
+
targetOffset: t ? Ie({
|
|
3334
3456
|
event: e,
|
|
3335
3457
|
target: t
|
|
3336
3458
|
}) : void 0,
|
|
3337
|
-
builderTargetOffset: n ?
|
|
3459
|
+
builderTargetOffset: n ? Ie({
|
|
3338
3460
|
event: e,
|
|
3339
3461
|
target: n
|
|
3340
3462
|
}) : void 0,
|
|
@@ -3367,15 +3489,15 @@ font-weight: ${l};
|
|
|
3367
3489
|
`.trim());
|
|
3368
3490
|
}
|
|
3369
3491
|
return o;
|
|
3370
|
-
},
|
|
3492
|
+
}, On = ({
|
|
3371
3493
|
customFonts: e
|
|
3372
3494
|
}) => {
|
|
3373
3495
|
var t;
|
|
3374
3496
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3375
|
-
},
|
|
3497
|
+
}, jn = ({
|
|
3376
3498
|
cssCode: e,
|
|
3377
3499
|
contentId: t
|
|
3378
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3500
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
|
|
3379
3501
|
.builder-button {
|
|
3380
3502
|
all: unset;
|
|
3381
3503
|
}
|
|
@@ -3392,9 +3514,9 @@ font-weight: ${l};
|
|
|
3392
3514
|
text-align: inherit;
|
|
3393
3515
|
font-family: inherit;
|
|
3394
3516
|
}
|
|
3395
|
-
`,
|
|
3396
|
-
function
|
|
3397
|
-
var
|
|
3517
|
+
`, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
|
|
3518
|
+
function Kn(e) {
|
|
3519
|
+
var V, A, O, S, w, W, g;
|
|
3398
3520
|
const t = ee(null);
|
|
3399
3521
|
function n(h) {
|
|
3400
3522
|
var v, k;
|
|
@@ -3408,7 +3530,7 @@ function Hn(e) {
|
|
|
3408
3530
|
}));
|
|
3409
3531
|
}
|
|
3410
3532
|
function i(h) {
|
|
3411
|
-
var v, k, T, N,
|
|
3533
|
+
var v, k, T, N, j;
|
|
3412
3534
|
const y = {
|
|
3413
3535
|
...e.builderContextSignal.content,
|
|
3414
3536
|
...h,
|
|
@@ -3419,11 +3541,11 @@ function Hn(e) {
|
|
|
3419
3541
|
meta: {
|
|
3420
3542
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3421
3543
|
...h == null ? void 0 : h.meta,
|
|
3422
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((
|
|
3544
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
|
|
3423
3545
|
}
|
|
3424
3546
|
};
|
|
3425
|
-
e.setBuilderContextSignal((
|
|
3426
|
-
|
|
3547
|
+
e.setBuilderContextSignal(($) => ({
|
|
3548
|
+
...$,
|
|
3427
3549
|
content: y
|
|
3428
3550
|
}));
|
|
3429
3551
|
}
|
|
@@ -3437,7 +3559,7 @@ function Hn(e) {
|
|
|
3437
3559
|
() => e.contentWrapper || "div"
|
|
3438
3560
|
);
|
|
3439
3561
|
function l(h) {
|
|
3440
|
-
return
|
|
3562
|
+
return Xe({
|
|
3441
3563
|
model: e.model,
|
|
3442
3564
|
trustedHosts: e.trustedHosts,
|
|
3443
3565
|
callbacks: {
|
|
@@ -3451,7 +3573,7 @@ function Hn(e) {
|
|
|
3451
3573
|
});
|
|
3452
3574
|
},
|
|
3453
3575
|
animation: (y) => {
|
|
3454
|
-
|
|
3576
|
+
$e(y);
|
|
3455
3577
|
},
|
|
3456
3578
|
contentUpdate: (y) => {
|
|
3457
3579
|
i(y);
|
|
@@ -3462,7 +3584,7 @@ function Hn(e) {
|
|
|
3462
3584
|
function c() {
|
|
3463
3585
|
var y, v;
|
|
3464
3586
|
const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
|
|
3465
|
-
h &&
|
|
3587
|
+
h && q({
|
|
3466
3588
|
code: h,
|
|
3467
3589
|
context: e.context || {},
|
|
3468
3590
|
localState: void 0,
|
|
@@ -3474,35 +3596,35 @@ function Hn(e) {
|
|
|
3474
3596
|
enableCache: !1
|
|
3475
3597
|
});
|
|
3476
3598
|
}
|
|
3477
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3599
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
|
|
3478
3600
|
function I(h) {
|
|
3479
3601
|
var y, v;
|
|
3480
3602
|
if (e.builderContextSignal.content) {
|
|
3481
3603
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3482
|
-
|
|
3604
|
+
be({
|
|
3483
3605
|
type: "click",
|
|
3484
3606
|
canTrack: Q(e.canTrack),
|
|
3485
3607
|
contentId: T,
|
|
3486
3608
|
apiKey: e.apiKey,
|
|
3487
3609
|
variationId: k !== T ? k : void 0,
|
|
3488
|
-
|
|
3489
|
-
unique: !
|
|
3610
|
+
...Ln(h),
|
|
3611
|
+
unique: !b
|
|
3490
3612
|
});
|
|
3491
3613
|
}
|
|
3492
|
-
|
|
3614
|
+
b || p(!0);
|
|
3493
3615
|
}
|
|
3494
3616
|
function x() {
|
|
3495
3617
|
var y, v, k;
|
|
3496
3618
|
const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3497
3619
|
Object.entries(h).forEach(([T, N]) => {
|
|
3498
|
-
if (!N || d[T] || u[T] &&
|
|
3620
|
+
if (!N || d[T] || u[T] && !F())
|
|
3499
3621
|
return;
|
|
3500
3622
|
d[T] = !0;
|
|
3501
|
-
const
|
|
3623
|
+
const j = N.replace(
|
|
3502
3624
|
/{{([^}]+)}}/g,
|
|
3503
|
-
(
|
|
3504
|
-
|
|
3505
|
-
code:
|
|
3625
|
+
($, Ke) => String(
|
|
3626
|
+
q({
|
|
3627
|
+
code: Ke,
|
|
3506
3628
|
context: e.context || {},
|
|
3507
3629
|
localState: void 0,
|
|
3508
3630
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3511,24 +3633,24 @@ function Hn(e) {
|
|
|
3511
3633
|
})
|
|
3512
3634
|
)
|
|
3513
3635
|
);
|
|
3514
|
-
|
|
3636
|
+
Ze(j).then(($) => $.json()).then(($) => {
|
|
3515
3637
|
n({
|
|
3516
|
-
[T]:
|
|
3638
|
+
[T]: $
|
|
3517
3639
|
}), u[T] = !0;
|
|
3518
|
-
}).catch((
|
|
3519
|
-
console.error("error fetching dynamic data", N,
|
|
3640
|
+
}).catch(($) => {
|
|
3641
|
+
console.error("error fetching dynamic data", N, $);
|
|
3520
3642
|
}).finally(() => {
|
|
3521
3643
|
d[T] = !1;
|
|
3522
3644
|
});
|
|
3523
3645
|
});
|
|
3524
3646
|
}
|
|
3525
|
-
function
|
|
3526
|
-
|
|
3647
|
+
function B() {
|
|
3648
|
+
F() && window.dispatchEvent(
|
|
3527
3649
|
new CustomEvent(
|
|
3528
3650
|
"builder:component:stateChange",
|
|
3529
3651
|
{
|
|
3530
3652
|
detail: {
|
|
3531
|
-
state:
|
|
3653
|
+
state: ue(e.builderContextSignal.rootState),
|
|
3532
3654
|
ref: {
|
|
3533
3655
|
name: e.model
|
|
3534
3656
|
}
|
|
@@ -3539,8 +3661,8 @@ function Hn(e) {
|
|
|
3539
3661
|
}
|
|
3540
3662
|
return P(() => {
|
|
3541
3663
|
var h, y;
|
|
3542
|
-
if (
|
|
3543
|
-
if (
|
|
3664
|
+
if (M()) {
|
|
3665
|
+
if (F() && (window.addEventListener("message", l), Je(), Ye({
|
|
3544
3666
|
...e.locale ? {
|
|
3545
3667
|
locale: e.locale
|
|
3546
3668
|
} : {},
|
|
@@ -3554,14 +3676,14 @@ function Hn(e) {
|
|
|
3554
3676
|
e.builderContextSignal.componentInfos
|
|
3555
3677
|
).forEach((k) => {
|
|
3556
3678
|
var N;
|
|
3557
|
-
const T =
|
|
3679
|
+
const T = Ge(k);
|
|
3558
3680
|
(N = window.parent) == null || N.postMessage(T, "*");
|
|
3559
3681
|
}), window.addEventListener(
|
|
3560
3682
|
"builder:component:stateChangeListenerActivated",
|
|
3561
|
-
|
|
3683
|
+
B
|
|
3562
3684
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3563
3685
|
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
|
|
3564
|
-
|
|
3686
|
+
be({
|
|
3565
3687
|
type: "impression",
|
|
3566
3688
|
canTrack: !0,
|
|
3567
3689
|
contentId: T,
|
|
@@ -3569,31 +3691,31 @@ function Hn(e) {
|
|
|
3569
3691
|
variationId: k !== T ? k : void 0
|
|
3570
3692
|
});
|
|
3571
3693
|
}
|
|
3572
|
-
if (
|
|
3694
|
+
if (Qe() && !F()) {
|
|
3573
3695
|
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3574
3696
|
`builder.overrides.${T}`
|
|
3575
|
-
),
|
|
3576
|
-
T === e.model &&
|
|
3697
|
+
), j = k.get("apiKey") || k.get("builder.space");
|
|
3698
|
+
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Re({
|
|
3577
3699
|
model: e.model,
|
|
3578
3700
|
apiKey: e.apiKey,
|
|
3579
3701
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3580
|
-
}).then((
|
|
3581
|
-
|
|
3702
|
+
}).then(($) => {
|
|
3703
|
+
$ && i($);
|
|
3582
3704
|
});
|
|
3583
3705
|
}
|
|
3584
3706
|
}
|
|
3585
3707
|
}, []), P(() => {
|
|
3586
3708
|
e.apiKey || Z.error(
|
|
3587
3709
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3588
|
-
), c(), x(),
|
|
3710
|
+
), c(), x(), B();
|
|
3589
3711
|
}, []), P(() => {
|
|
3590
3712
|
e.content && i(e.content);
|
|
3591
3713
|
}, [e.content]), P(() => {
|
|
3592
3714
|
c();
|
|
3593
|
-
}, [(A = (
|
|
3715
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3594
3716
|
x();
|
|
3595
|
-
}, [(S = (
|
|
3596
|
-
|
|
3717
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
|
|
3718
|
+
B();
|
|
3597
3719
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3598
3720
|
e.data && n(e.data);
|
|
3599
3721
|
}, [e.data]), P(() => {
|
|
@@ -3601,11 +3723,11 @@ function Hn(e) {
|
|
|
3601
3723
|
locale: e.locale
|
|
3602
3724
|
});
|
|
3603
3725
|
}, [e.locale]), P(() => () => {
|
|
3604
|
-
|
|
3726
|
+
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3605
3727
|
"builder:component:stateChangeListenerActivated",
|
|
3606
|
-
|
|
3728
|
+
B
|
|
3607
3729
|
));
|
|
3608
|
-
}, []), /* @__PURE__ */ s(
|
|
3730
|
+
}, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3609
3731
|
r,
|
|
3610
3732
|
{
|
|
3611
3733
|
ref: t,
|
|
@@ -3614,29 +3736,29 @@ function Hn(e) {
|
|
|
3614
3736
|
"builder-model": e.model,
|
|
3615
3737
|
...o(),
|
|
3616
3738
|
...e.contentWrapperProps,
|
|
3617
|
-
className:
|
|
3618
|
-
((
|
|
3739
|
+
className: Hn(
|
|
3740
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
|
|
3619
3741
|
),
|
|
3620
3742
|
children: e.children
|
|
3621
3743
|
}
|
|
3622
3744
|
) : null });
|
|
3623
3745
|
}
|
|
3624
|
-
function
|
|
3746
|
+
function qn(e) {
|
|
3625
3747
|
const [t, n] = C(
|
|
3626
3748
|
() => `
|
|
3627
|
-
${
|
|
3749
|
+
${jn({
|
|
3628
3750
|
cssCode: e.cssCode,
|
|
3629
3751
|
contentId: e.contentId
|
|
3630
3752
|
})}
|
|
3631
|
-
${
|
|
3753
|
+
${On({
|
|
3632
3754
|
customFonts: e.customFonts
|
|
3633
3755
|
})}
|
|
3634
|
-
${
|
|
3756
|
+
${Mn(e.isNestedRender)}
|
|
3635
3757
|
`.trim()
|
|
3636
3758
|
);
|
|
3637
|
-
return /* @__PURE__ */ s(
|
|
3759
|
+
return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
|
|
3638
3760
|
}
|
|
3639
|
-
const
|
|
3761
|
+
const _n = ({
|
|
3640
3762
|
content: e,
|
|
3641
3763
|
data: t,
|
|
3642
3764
|
locale: n
|
|
@@ -3653,7 +3775,7 @@ const qn = ({
|
|
|
3653
3775
|
locale: n
|
|
3654
3776
|
} : {}
|
|
3655
3777
|
};
|
|
3656
|
-
},
|
|
3778
|
+
}, zn = ({
|
|
3657
3779
|
content: e,
|
|
3658
3780
|
data: t
|
|
3659
3781
|
}) => e ? {
|
|
@@ -3664,12 +3786,12 @@ const qn = ({
|
|
|
3664
3786
|
},
|
|
3665
3787
|
meta: e == null ? void 0 : e.meta
|
|
3666
3788
|
} : void 0;
|
|
3667
|
-
function
|
|
3668
|
-
var c, u, f, d, m,
|
|
3789
|
+
function we(e) {
|
|
3790
|
+
var c, u, f, d, m, b, p;
|
|
3669
3791
|
const [t, n] = C(
|
|
3670
3792
|
() => {
|
|
3671
3793
|
var I, x;
|
|
3672
|
-
return
|
|
3794
|
+
return Wn({
|
|
3673
3795
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3674
3796
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3675
3797
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3685,25 +3807,25 @@ function Ie(e) {
|
|
|
3685
3807
|
}
|
|
3686
3808
|
const [o, r] = C(
|
|
3687
3809
|
() => [
|
|
3688
|
-
...
|
|
3810
|
+
...Ce(),
|
|
3689
3811
|
...e.customComponents || []
|
|
3690
3812
|
].reduce(
|
|
3691
|
-
(I, { component: x, ...
|
|
3813
|
+
(I, { component: x, ...B }) => ({
|
|
3692
3814
|
...I,
|
|
3693
|
-
[
|
|
3815
|
+
[B.name]: {
|
|
3694
3816
|
component: x,
|
|
3695
|
-
...ge(
|
|
3817
|
+
...ge(B)
|
|
3696
3818
|
}
|
|
3697
3819
|
}),
|
|
3698
3820
|
{}
|
|
3699
3821
|
)
|
|
3700
3822
|
), [a, l] = C(() => ({
|
|
3701
|
-
content:
|
|
3823
|
+
content: zn({
|
|
3702
3824
|
content: e.content,
|
|
3703
3825
|
data: e.data
|
|
3704
3826
|
}),
|
|
3705
3827
|
localState: void 0,
|
|
3706
|
-
rootState:
|
|
3828
|
+
rootState: _n({
|
|
3707
3829
|
content: e.content,
|
|
3708
3830
|
data: e.data,
|
|
3709
3831
|
locale: e.locale
|
|
@@ -3714,12 +3836,12 @@ function Ie(e) {
|
|
|
3714
3836
|
apiKey: e.apiKey,
|
|
3715
3837
|
apiVersion: e.apiVersion,
|
|
3716
3838
|
componentInfos: [
|
|
3717
|
-
...
|
|
3839
|
+
...Ce(),
|
|
3718
3840
|
...e.customComponents || []
|
|
3719
3841
|
].reduce(
|
|
3720
|
-
(I, { component: x, ...
|
|
3842
|
+
(I, { component: x, ...B }) => ({
|
|
3721
3843
|
...I,
|
|
3722
|
-
[
|
|
3844
|
+
[B.name]: ge(B)
|
|
3723
3845
|
}),
|
|
3724
3846
|
{}
|
|
3725
3847
|
),
|
|
@@ -3728,13 +3850,13 @@ function Ie(e) {
|
|
|
3728
3850
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3729
3851
|
}));
|
|
3730
3852
|
return /* @__PURE__ */ s(
|
|
3731
|
-
|
|
3853
|
+
Ee.Provider,
|
|
3732
3854
|
{
|
|
3733
3855
|
value: {
|
|
3734
3856
|
registeredComponents: o
|
|
3735
3857
|
},
|
|
3736
|
-
children: /* @__PURE__ */
|
|
3737
|
-
|
|
3858
|
+
children: /* @__PURE__ */ E(
|
|
3859
|
+
Kn,
|
|
3738
3860
|
{
|
|
3739
3861
|
content: e.content,
|
|
3740
3862
|
data: e.data,
|
|
@@ -3752,14 +3874,14 @@ function Ie(e) {
|
|
|
3752
3874
|
setBuilderContextSignal: l,
|
|
3753
3875
|
children: [
|
|
3754
3876
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3755
|
-
|
|
3877
|
+
de,
|
|
3756
3878
|
{
|
|
3757
3879
|
id: "builderio-variant-visibility",
|
|
3758
3880
|
scriptStr: t
|
|
3759
3881
|
}
|
|
3760
3882
|
) : null,
|
|
3761
3883
|
/* @__PURE__ */ s(
|
|
3762
|
-
|
|
3884
|
+
qn,
|
|
3763
3885
|
{
|
|
3764
3886
|
isNestedRender: e.isNestedRender,
|
|
3765
3887
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
@@ -3768,9 +3890,9 @@ function Ie(e) {
|
|
|
3768
3890
|
}
|
|
3769
3891
|
),
|
|
3770
3892
|
/* @__PURE__ */ s(
|
|
3771
|
-
|
|
3893
|
+
L,
|
|
3772
3894
|
{
|
|
3773
|
-
blocks: (p = (
|
|
3895
|
+
blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
|
|
3774
3896
|
context: a,
|
|
3775
3897
|
registeredComponents: o,
|
|
3776
3898
|
linkComponent: e.linkComponent
|
|
@@ -3782,17 +3904,17 @@ function Ie(e) {
|
|
|
3782
3904
|
}
|
|
3783
3905
|
);
|
|
3784
3906
|
}
|
|
3785
|
-
function
|
|
3907
|
+
function Jn(e) {
|
|
3786
3908
|
var a;
|
|
3787
3909
|
const [t, n] = C(
|
|
3788
|
-
() =>
|
|
3910
|
+
() => En({
|
|
3789
3911
|
canTrack: Q(e.canTrack),
|
|
3790
3912
|
content: e.content
|
|
3791
3913
|
})
|
|
3792
3914
|
);
|
|
3793
3915
|
function i() {
|
|
3794
3916
|
var l;
|
|
3795
|
-
return
|
|
3917
|
+
return Nn(
|
|
3796
3918
|
Y(e.content).map((c) => ({
|
|
3797
3919
|
id: c.testVariationId,
|
|
3798
3920
|
testRatio: c.testRatio
|
|
@@ -3808,37 +3930,38 @@ function zn(e) {
|
|
|
3808
3930
|
return t ? {
|
|
3809
3931
|
...e.content,
|
|
3810
3932
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3811
|
-
} :
|
|
3933
|
+
} : et({
|
|
3812
3934
|
item: e.content,
|
|
3813
3935
|
canTrack: Q(e.canTrack)
|
|
3814
3936
|
});
|
|
3815
3937
|
}
|
|
3816
3938
|
return P(() => {
|
|
3817
|
-
}, []),
|
|
3818
|
-
|
|
3819
|
-
|
|
3939
|
+
}, []), P(() => {
|
|
3940
|
+
}), /* @__PURE__ */ E(R, { children: [
|
|
3941
|
+
!e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
|
|
3942
|
+
de,
|
|
3820
3943
|
{
|
|
3821
3944
|
id: "builderio-init-variants-fns",
|
|
3822
|
-
scriptStr:
|
|
3945
|
+
scriptStr: An()
|
|
3823
3946
|
}
|
|
3824
3947
|
) : null,
|
|
3825
|
-
t ? /* @__PURE__ */
|
|
3948
|
+
t ? /* @__PURE__ */ E(R, { children: [
|
|
3826
3949
|
/* @__PURE__ */ s(
|
|
3827
|
-
|
|
3950
|
+
ie,
|
|
3828
3951
|
{
|
|
3829
3952
|
id: "builderio-variants",
|
|
3830
3953
|
styles: o()
|
|
3831
3954
|
}
|
|
3832
3955
|
),
|
|
3833
3956
|
/* @__PURE__ */ s(
|
|
3834
|
-
|
|
3957
|
+
de,
|
|
3835
3958
|
{
|
|
3836
3959
|
id: "builderio-variants-visibility",
|
|
3837
3960
|
scriptStr: i()
|
|
3838
3961
|
}
|
|
3839
3962
|
),
|
|
3840
3963
|
(a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3841
|
-
|
|
3964
|
+
we,
|
|
3842
3965
|
{
|
|
3843
3966
|
isNestedRender: e.isNestedRender,
|
|
3844
3967
|
content: l,
|
|
@@ -3864,7 +3987,7 @@ function zn(e) {
|
|
|
3864
3987
|
))
|
|
3865
3988
|
] }) : null,
|
|
3866
3989
|
/* @__PURE__ */ s(
|
|
3867
|
-
|
|
3990
|
+
we,
|
|
3868
3991
|
{
|
|
3869
3992
|
isNestedRender: e.isNestedRender,
|
|
3870
3993
|
content: r(),
|
|
@@ -3889,13 +4012,13 @@ function zn(e) {
|
|
|
3889
4012
|
)
|
|
3890
4013
|
] });
|
|
3891
4014
|
}
|
|
3892
|
-
const
|
|
4015
|
+
const Yn = async ({
|
|
3893
4016
|
builderContextValue: e,
|
|
3894
4017
|
symbol: t
|
|
3895
4018
|
}) => {
|
|
3896
4019
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3897
4020
|
(e != null && e.apiKey))
|
|
3898
|
-
return
|
|
4021
|
+
return Re({
|
|
3899
4022
|
model: t.model,
|
|
3900
4023
|
apiKey: e.apiKey,
|
|
3901
4024
|
apiVersion: e.apiVersion,
|
|
@@ -3908,7 +4031,7 @@ const Jn = async ({
|
|
|
3908
4031
|
Z.error("Could not fetch symbol content: ", n);
|
|
3909
4032
|
});
|
|
3910
4033
|
};
|
|
3911
|
-
function
|
|
4034
|
+
function Gn(e) {
|
|
3912
4035
|
var l, c, u, f;
|
|
3913
4036
|
function t() {
|
|
3914
4037
|
return "div";
|
|
@@ -3919,7 +4042,7 @@ function Yn(e) {
|
|
|
3919
4042
|
function i() {
|
|
3920
4043
|
var d, m;
|
|
3921
4044
|
return [
|
|
3922
|
-
e.attributes[
|
|
4045
|
+
e.attributes[K()],
|
|
3923
4046
|
"builder-symbol",
|
|
3924
4047
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3925
4048
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3930,7 +4053,7 @@ function Yn(e) {
|
|
|
3930
4053
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3931
4054
|
});
|
|
3932
4055
|
function a() {
|
|
3933
|
-
o ||
|
|
4056
|
+
o || Yn({
|
|
3934
4057
|
symbol: e.symbol,
|
|
3935
4058
|
builderContextValue: e.builderContext
|
|
3936
4059
|
}).then((d) => {
|
|
@@ -3941,7 +4064,7 @@ function Yn(e) {
|
|
|
3941
4064
|
}, []), P(() => {
|
|
3942
4065
|
a();
|
|
3943
4066
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3944
|
-
|
|
4067
|
+
Jn,
|
|
3945
4068
|
{
|
|
3946
4069
|
isNestedRender: !0,
|
|
3947
4070
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3966,15 +4089,15 @@ function Yn(e) {
|
|
|
3966
4089
|
) });
|
|
3967
4090
|
}
|
|
3968
4091
|
export {
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
4092
|
+
L as Blocks,
|
|
4093
|
+
fe as BuilderContext,
|
|
4094
|
+
it as Button,
|
|
4095
|
+
Lt as Columns,
|
|
4096
|
+
Jn as Content,
|
|
3974
4097
|
Dt as Fragment,
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
4098
|
+
Ut as Image,
|
|
4099
|
+
Mt as Section,
|
|
4100
|
+
Gn as Symbol,
|
|
4101
|
+
nn as Text,
|
|
4102
|
+
wn as Video
|
|
3980
4103
|
};
|