@builder.io/sdk-react 1.0.27 → 1.0.29
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 +29 -29
- package/lib/browser/blocks-exports.mjs +1031 -788
- 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-60c3f2b2.cjs → server-entry-29038134.cjs} +1 -1
- package/lib/browser/{server-entry-805a2c2a.js → server-entry-99f6be25.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-a922b6f1.js +131 -0
- package/lib/edge/accordion-cf80a119.cjs +1 -0
- package/lib/edge/{blocks-af5c8ecf.cjs → blocks-0b5854b9.cjs} +10 -10
- package/lib/edge/{blocks-a1399a78.js → blocks-2cd920f9.js} +198 -198
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-16076ac7.cjs → button-2e6cc4b7.cjs} +1 -1
- package/lib/edge/{button-0820a5bc.js → button-e343aea4.js} +2 -2
- package/lib/edge/{columns-688cc205.js → columns-5db55b04.js} +5 -5
- package/lib/edge/{columns-6b8c03be.cjs → columns-cf320d97.cjs} +2 -2
- package/lib/edge/content-variants-d7612a4d.cjs +134 -0
- package/lib/edge/{content-variants-efa4f81b.js → content-variants-dd520b38.js} +313 -192
- package/lib/edge/form-7248b44c.cjs +1 -0
- package/lib/edge/{form-cbe7d822.js → form-a0093dd2.js} +17 -19
- package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-890dc6a6.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-f14607dc.js} +1 -1
- package/lib/edge/{img-d3420f5d.cjs → img-960eef70.cjs} +1 -1
- package/lib/edge/{img-14849a5b.js → img-ff2f388e.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-534b9f95.js → input-5934355a.js} +1 -1
- package/lib/edge/{input-07becc4d.cjs → input-e91374cc.cjs} +1 -1
- package/lib/edge/{select-b05ef24f.js → select-298649a8.js} +1 -1
- package/lib/edge/{select-e576d7d0.cjs → select-6e9fb36f.cjs} +1 -1
- package/lib/edge/{server-entry-ee324b22.cjs → server-entry-7feea5b4.cjs} +1 -1
- package/lib/edge/{server-entry-6aaf6054.js → server-entry-d8f1ea14.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-e139f9b4.cjs → slot-3a6d243c.cjs} +1 -1
- package/lib/edge/{slot-944437dd.js → slot-5676b4f4.js} +3 -3
- package/lib/edge/{symbol-75d1c60d.js → symbol-2df385d5.js} +2 -2
- package/lib/edge/{symbol-f7f42446.cjs → symbol-b5a02759.cjs} +1 -1
- package/lib/edge/tabs-036057d6.cjs +1 -0
- package/lib/edge/{tabs-62e415e1.js → tabs-c2055821.js} +20 -20
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +1034 -791
- 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-1bee7133.cjs → node-runtime-4dbd8a34.cjs} +1 -1
- package/lib/node/{node-runtime-e167306c.js → node-runtime-502f7164.js} +1 -1
- package/lib/node/{server-entry-db936548.cjs → server-entry-4c4c63b3.cjs} +1 -1
- package/lib/node/{server-entry-38fb2258.js → server-entry-95efff43.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/blocks/accordion/accordion.d.ts +4 -0
- package/types/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/blocks/accordion/component-info.d.ts +2 -0
- package/types/blocks/accordion/helpers.d.ts +1 -0
- package/types/blocks/accordion/index.d.ts +1 -0
- package/types/components/block/animator.d.ts +0 -1
- package/types/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/camel-to-kebab-case.d.ts +1 -1
- package/lib/edge/content-variants-4679172a.cjs +0 -134
- package/lib/edge/form-91166ed6.cjs +0 -1
- package/lib/edge/tabs-4860ef6d.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var He = Object.defineProperty;
|
|
3
|
+
var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-95efff43.js";
|
|
7
|
+
import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-502f7164.js";
|
|
9
|
+
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
|
+
function ue(e) {
|
|
11
|
+
return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
13
|
const H = () => {
|
|
14
14
|
switch (q) {
|
|
@@ -24,7 +24,7 @@ const H = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ot(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function tt(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
ue,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function tt(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = we({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -61,8 +61,8 @@ const ce = Ce({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Ve = we({ registeredComponents: {} });
|
|
65
|
+
function at(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -73,28 +73,28 @@ function nt(e) {
|
|
|
73
73
|
builderBlock: e
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const rt = ({
|
|
77
77
|
code: e,
|
|
78
78
|
builder: t,
|
|
79
79
|
context: n,
|
|
80
80
|
event: i,
|
|
81
81
|
localState: o,
|
|
82
82
|
rootSetState: l,
|
|
83
|
-
rootState:
|
|
83
|
+
rootState: a
|
|
84
84
|
}) => {
|
|
85
|
-
const
|
|
85
|
+
const r = Xe({
|
|
86
86
|
builder: t,
|
|
87
87
|
context: n,
|
|
88
88
|
event: i,
|
|
89
|
-
state:
|
|
90
|
-
rootState:
|
|
89
|
+
state: Pe({
|
|
90
|
+
rootState: a,
|
|
91
91
|
localState: o,
|
|
92
92
|
rootSetState: l
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
|
-
return new Function(...
|
|
95
|
+
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function Pe({
|
|
98
98
|
rootState: e,
|
|
99
99
|
localState: t,
|
|
100
100
|
rootSetState: n
|
|
@@ -104,11 +104,11 @@ function Ee({
|
|
|
104
104
|
if (t && o in t)
|
|
105
105
|
return t[o];
|
|
106
106
|
const l = i[o];
|
|
107
|
-
return typeof l == "object" && l !== null ?
|
|
107
|
+
return typeof l == "object" && l !== null ? Pe({
|
|
108
108
|
rootState: l,
|
|
109
109
|
localState: void 0,
|
|
110
|
-
rootSetState: n ? (
|
|
111
|
-
i[o] =
|
|
110
|
+
rootSetState: n ? (a) => {
|
|
111
|
+
i[o] = a, n(i);
|
|
112
112
|
} : void 0
|
|
113
113
|
}) : l;
|
|
114
114
|
},
|
|
@@ -119,17 +119,17 @@ function Ee({
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function lt() {
|
|
123
123
|
var e;
|
|
124
124
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const st = () => {
|
|
127
127
|
var i;
|
|
128
|
-
if (!
|
|
128
|
+
if (!lt())
|
|
129
129
|
return !1;
|
|
130
130
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
131
131
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
132
|
-
},
|
|
132
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
|
|
133
133
|
static getCacheKey(t) {
|
|
134
134
|
return JSON.stringify({
|
|
135
135
|
...t,
|
|
@@ -147,7 +147,7 @@ const at = () => {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
151
151
|
let U = L;
|
|
152
152
|
function K({
|
|
153
153
|
code: e,
|
|
@@ -156,42 +156,42 @@ function K({
|
|
|
156
156
|
rootState: i,
|
|
157
157
|
rootSetState: o,
|
|
158
158
|
event: l,
|
|
159
|
-
isExpression:
|
|
160
|
-
enableCache:
|
|
159
|
+
isExpression: a = !0,
|
|
160
|
+
enableCache: r
|
|
161
161
|
}) {
|
|
162
162
|
if (e === "")
|
|
163
163
|
return;
|
|
164
164
|
const c = {
|
|
165
|
-
code:
|
|
166
|
-
isExpression:
|
|
165
|
+
code: et(e, {
|
|
166
|
+
isExpression: a
|
|
167
167
|
}),
|
|
168
|
-
builder:
|
|
168
|
+
builder: tt(),
|
|
169
169
|
context: t,
|
|
170
170
|
event: l,
|
|
171
171
|
rootSetState: o,
|
|
172
172
|
rootState: i,
|
|
173
173
|
localState: n
|
|
174
174
|
};
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
return
|
|
175
|
+
if (r) {
|
|
176
|
+
const u = U.getCacheKey(c), f = U.getCachedValue(u);
|
|
177
|
+
if (f)
|
|
178
|
+
return f.value;
|
|
179
179
|
}
|
|
180
180
|
try {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
U.setCachedValue(
|
|
181
|
+
const u = ct(c);
|
|
182
|
+
if (r) {
|
|
183
|
+
const f = U.getCacheKey(c);
|
|
184
|
+
U.setCachedValue(f, u);
|
|
185
185
|
}
|
|
186
|
-
return
|
|
187
|
-
} catch (
|
|
188
|
-
Z.error("Failed code evaluation: " +
|
|
186
|
+
return u;
|
|
187
|
+
} catch (u) {
|
|
188
|
+
Z.error("Failed code evaluation: " + u.message, {
|
|
189
189
|
code: e
|
|
190
190
|
});
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const dt = ({
|
|
195
195
|
block: e,
|
|
196
196
|
context: t,
|
|
197
197
|
localState: n,
|
|
@@ -200,7 +200,7 @@ const lt = ({
|
|
|
200
200
|
}) => {
|
|
201
201
|
if (!e.bindings)
|
|
202
202
|
return e;
|
|
203
|
-
const l =
|
|
203
|
+
const l = de(e), a = {
|
|
204
204
|
...l,
|
|
205
205
|
properties: {
|
|
206
206
|
...l.properties
|
|
@@ -209,8 +209,8 @@ const lt = ({
|
|
|
209
209
|
...l.actions
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
|
-
for (const
|
|
213
|
-
const c = e.bindings[
|
|
212
|
+
for (const r in e.bindings) {
|
|
213
|
+
const c = e.bindings[r], u = K({
|
|
214
214
|
code: c,
|
|
215
215
|
localState: n,
|
|
216
216
|
rootState: i,
|
|
@@ -218,9 +218,9 @@ const lt = ({
|
|
|
218
218
|
context: t,
|
|
219
219
|
enableCache: !0
|
|
220
220
|
});
|
|
221
|
-
|
|
221
|
+
Re(a, r, u);
|
|
222
222
|
}
|
|
223
|
-
return
|
|
223
|
+
return a;
|
|
224
224
|
};
|
|
225
225
|
function X({
|
|
226
226
|
block: e,
|
|
@@ -230,28 +230,29 @@ function X({
|
|
|
230
230
|
rootState: o,
|
|
231
231
|
rootSetState: l
|
|
232
232
|
}) {
|
|
233
|
-
const
|
|
234
|
-
return n ?
|
|
235
|
-
block:
|
|
233
|
+
const a = e;
|
|
234
|
+
return n ? dt({
|
|
235
|
+
block: a,
|
|
236
236
|
localState: i,
|
|
237
237
|
rootState: o,
|
|
238
238
|
rootSetState: l,
|
|
239
239
|
context: t
|
|
240
|
-
}) :
|
|
240
|
+
}) : a;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
243
|
+
function ut(e, t, n = {}) {
|
|
244
|
+
let i, o, l, a = null, r = 0;
|
|
244
245
|
const c = function() {
|
|
245
|
-
|
|
246
|
+
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
246
247
|
};
|
|
247
248
|
return function() {
|
|
248
|
-
const
|
|
249
|
-
!
|
|
250
|
-
const
|
|
251
|
-
return i = this, o = arguments,
|
|
249
|
+
const u = Date.now();
|
|
250
|
+
!r && n.leading === !1 && (r = u);
|
|
251
|
+
const f = t - (u - r);
|
|
252
|
+
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
|
|
252
253
|
};
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function M(e, ...t) {
|
|
255
256
|
const n = Object(e);
|
|
256
257
|
for (let i = 1; i < arguments.length; i++) {
|
|
257
258
|
const o = arguments[i];
|
|
@@ -261,119 +262,118 @@ function O(e, ...t) {
|
|
|
261
262
|
}
|
|
262
263
|
return n;
|
|
263
264
|
}
|
|
264
|
-
|
|
265
|
-
function ct(e) {
|
|
265
|
+
function mt(e) {
|
|
266
266
|
for (const t of e)
|
|
267
267
|
switch (t.trigger) {
|
|
268
268
|
case "pageLoad":
|
|
269
|
-
|
|
269
|
+
Ne(t);
|
|
270
270
|
break;
|
|
271
271
|
case "scrollInView":
|
|
272
|
-
|
|
272
|
+
ht(t);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Be(e) {
|
|
277
277
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const n =
|
|
281
|
-
for (const
|
|
279
|
+
function Ae(e, t) {
|
|
280
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
281
|
+
for (const r of a)
|
|
282
282
|
for (const c of n)
|
|
283
|
-
c in
|
|
283
|
+
c in r || (r[c] = i[c]);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ft(e) {
|
|
286
286
|
const t = [];
|
|
287
287
|
for (const n of e.steps)
|
|
288
288
|
for (const i in n.styles)
|
|
289
289
|
t.indexOf(i) === -1 && t.push(i);
|
|
290
290
|
return t;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ne(e) {
|
|
293
293
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
294
294
|
if (!t.length) {
|
|
295
|
-
|
|
295
|
+
Be(e.elementId || e.id || "");
|
|
296
296
|
return;
|
|
297
297
|
}
|
|
298
298
|
Array.from(t).forEach((n) => {
|
|
299
|
-
|
|
300
|
-
n.style.transition = `all ${e.duration}s ${
|
|
299
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
|
|
300
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
|
|
301
301
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
302
302
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ht(e) {
|
|
307
307
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
308
308
|
if (!t.length) {
|
|
309
|
-
|
|
309
|
+
Be(e.elementId || e.id || "");
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
Array.from(t).forEach((n) => {
|
|
313
|
-
|
|
313
|
+
Ae(e, n);
|
|
314
314
|
let i = !1, o = !1;
|
|
315
315
|
function l() {
|
|
316
|
-
!i &&
|
|
317
|
-
|
|
316
|
+
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
317
|
+
M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
318
318
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
319
319
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
320
|
-
})) : e.repeat && i && !o && !
|
|
320
|
+
})) : e.repeat && i && !o && !r(n) && (i = !1, M(n.style, e.steps[0].styles));
|
|
321
321
|
}
|
|
322
|
-
const
|
|
322
|
+
const a = ut(l, 200, {
|
|
323
323
|
leading: !1
|
|
324
324
|
});
|
|
325
|
-
function
|
|
326
|
-
const
|
|
327
|
-
return
|
|
325
|
+
function r(f) {
|
|
326
|
+
const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
|
|
327
|
+
return d.bottom > p && d.top < m - p;
|
|
328
328
|
}
|
|
329
329
|
const c = e.steps[0].styles;
|
|
330
|
-
function
|
|
331
|
-
|
|
330
|
+
function u() {
|
|
331
|
+
M(n.style, c);
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
n.style.transition = `all ${e.duration}s ${
|
|
335
|
-
}), document.addEventListener("scroll",
|
|
333
|
+
u(), setTimeout(() => {
|
|
334
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
335
|
+
}), document.addEventListener("scroll", a, {
|
|
336
336
|
capture: !0,
|
|
337
337
|
passive: !0
|
|
338
338
|
}), l();
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
342
342
|
if (typeof i == "string")
|
|
343
|
-
return `${
|
|
344
|
-
}).filter(Y),
|
|
343
|
+
return `${te(n)}: ${i};`;
|
|
344
|
+
}).filter(Y), gt = (e) => We(e).join(`
|
|
345
345
|
`), z = ({
|
|
346
346
|
mediaQuery: e,
|
|
347
347
|
className: t,
|
|
348
348
|
styles: n
|
|
349
349
|
}) => {
|
|
350
350
|
const i = `.${t} {
|
|
351
|
-
${
|
|
351
|
+
${gt(n)}
|
|
352
352
|
}`;
|
|
353
353
|
return e ? `${e} {
|
|
354
354
|
${i}
|
|
355
355
|
}` : i;
|
|
356
356
|
};
|
|
357
|
-
function
|
|
357
|
+
function bt({
|
|
358
358
|
style: e
|
|
359
359
|
}) {
|
|
360
360
|
return e;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const pt = ({
|
|
363
363
|
block: e,
|
|
364
364
|
context: t
|
|
365
|
-
}) =>
|
|
365
|
+
}) => Fe(bt({
|
|
366
366
|
style: e.style || {},
|
|
367
367
|
context: t,
|
|
368
368
|
block: e
|
|
369
369
|
}));
|
|
370
|
-
function
|
|
370
|
+
function Fe(e) {
|
|
371
371
|
switch (q) {
|
|
372
372
|
case "svelte":
|
|
373
373
|
case "vue":
|
|
374
374
|
case "solid":
|
|
375
375
|
case "angular":
|
|
376
|
-
return
|
|
376
|
+
return We(e).join(" ");
|
|
377
377
|
case "qwik":
|
|
378
378
|
case "reactNative":
|
|
379
379
|
case "react":
|
|
@@ -381,7 +381,7 @@ function Ne(e) {
|
|
|
381
381
|
return e;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const yt = ({
|
|
385
385
|
block: e,
|
|
386
386
|
context: t,
|
|
387
387
|
registeredComponents: n
|
|
@@ -403,7 +403,7 @@ const bt = ({
|
|
|
403
403
|
console.warn(`
|
|
404
404
|
Could not find a registered component named "${i}".
|
|
405
405
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
406
|
-
},
|
|
406
|
+
}, xt = ({
|
|
407
407
|
block: e,
|
|
408
408
|
context: t
|
|
409
409
|
}) => {
|
|
@@ -423,21 +423,21 @@ const bt = ({
|
|
|
423
423
|
});
|
|
424
424
|
if (!Array.isArray(o))
|
|
425
425
|
return;
|
|
426
|
-
const l = n.collection.split(".").pop(),
|
|
427
|
-
return o.map((c,
|
|
426
|
+
const l = n.collection.split(".").pop(), a = n.itemName || (l ? l + "Item" : "item");
|
|
427
|
+
return o.map((c, u) => ({
|
|
428
428
|
context: {
|
|
429
429
|
...t,
|
|
430
430
|
localState: {
|
|
431
431
|
...t.localState,
|
|
432
|
-
$index:
|
|
432
|
+
$index: u,
|
|
433
433
|
$item: c,
|
|
434
|
-
[
|
|
435
|
-
[`$${
|
|
434
|
+
[a]: c,
|
|
435
|
+
[`$${a}Index`]: u
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
block: i
|
|
439
439
|
}));
|
|
440
|
-
},
|
|
440
|
+
}, St = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), vt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), $e = {
|
|
441
441
|
small: {
|
|
442
442
|
min: 320,
|
|
443
443
|
default: 321,
|
|
@@ -453,11 +453,11 @@ const bt = ({
|
|
|
453
453
|
default: 991,
|
|
454
454
|
max: 1200
|
|
455
455
|
}
|
|
456
|
-
},
|
|
456
|
+
}, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
457
457
|
small: e,
|
|
458
458
|
medium: t
|
|
459
459
|
}) => {
|
|
460
|
-
const n =
|
|
460
|
+
const n = de($e);
|
|
461
461
|
if (!e || !t)
|
|
462
462
|
return n;
|
|
463
463
|
const i = Math.floor(e / 2);
|
|
@@ -480,7 +480,7 @@ const bt = ({
|
|
|
480
480
|
default: l + 1
|
|
481
481
|
}, n;
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function ne(e) {
|
|
484
484
|
return /* @__PURE__ */ s(
|
|
485
485
|
"style",
|
|
486
486
|
{
|
|
@@ -489,7 +489,7 @@ function te(e) {
|
|
|
489
489
|
}
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function kt(e) {
|
|
493
493
|
function t() {
|
|
494
494
|
const i = X({
|
|
495
495
|
block: e.block,
|
|
@@ -502,7 +502,7 @@ function St(e) {
|
|
|
502
502
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
503
503
|
}
|
|
504
504
|
function n() {
|
|
505
|
-
var
|
|
505
|
+
var x, R, P;
|
|
506
506
|
const i = X({
|
|
507
507
|
block: e.block,
|
|
508
508
|
localState: e.context.localState,
|
|
@@ -510,56 +510,56 @@ function St(e) {
|
|
|
510
510
|
rootSetState: e.context.rootSetState,
|
|
511
511
|
context: e.context.context,
|
|
512
512
|
shouldEvaluateBindings: !0
|
|
513
|
-
}), o = i.responsiveStyles, l = e.context.content,
|
|
514
|
-
((
|
|
515
|
-
),
|
|
516
|
-
if (!
|
|
513
|
+
}), o = i.responsiveStyles, l = e.context.content, a = De(
|
|
514
|
+
((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
|
|
515
|
+
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
516
|
+
if (!f)
|
|
517
517
|
return "";
|
|
518
|
-
const
|
|
519
|
-
className:
|
|
520
|
-
styles:
|
|
521
|
-
}) : "",
|
|
522
|
-
className:
|
|
518
|
+
const d = r ? z({
|
|
519
|
+
className: f,
|
|
520
|
+
styles: r
|
|
521
|
+
}) : "", m = c ? z({
|
|
522
|
+
className: f,
|
|
523
523
|
styles: c,
|
|
524
|
-
mediaQuery:
|
|
524
|
+
mediaQuery: pe(
|
|
525
525
|
"medium",
|
|
526
|
-
|
|
526
|
+
a
|
|
527
527
|
)
|
|
528
|
-
}) : "",
|
|
529
|
-
className:
|
|
530
|
-
styles:
|
|
531
|
-
mediaQuery:
|
|
528
|
+
}) : "", g = u ? z({
|
|
529
|
+
className: f,
|
|
530
|
+
styles: u,
|
|
531
|
+
mediaQuery: pe(
|
|
532
532
|
"small",
|
|
533
|
-
|
|
533
|
+
a
|
|
534
534
|
)
|
|
535
|
-
}) : "",
|
|
535
|
+
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
536
536
|
let I = "";
|
|
537
|
-
if (
|
|
538
|
-
const
|
|
537
|
+
if (p) {
|
|
538
|
+
const A = ((P = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : P.styles) || {};
|
|
539
539
|
I = z({
|
|
540
|
-
className: `${
|
|
540
|
+
className: `${f}:hover`,
|
|
541
541
|
styles: {
|
|
542
|
-
...
|
|
543
|
-
transition: `all ${
|
|
544
|
-
|
|
542
|
+
...A,
|
|
543
|
+
transition: `all ${p.duration}s ${te(
|
|
544
|
+
p.easing
|
|
545
545
|
)}`,
|
|
546
|
-
transitionDelay:
|
|
546
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
547
547
|
}
|
|
548
548
|
}) || "";
|
|
549
549
|
}
|
|
550
550
|
return [
|
|
551
|
-
|
|
551
|
+
d,
|
|
552
|
+
m,
|
|
552
553
|
g,
|
|
553
|
-
p,
|
|
554
554
|
I
|
|
555
555
|
].join(" ");
|
|
556
556
|
}
|
|
557
|
-
return /* @__PURE__ */ s(
|
|
557
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Ct(e) {
|
|
560
560
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => K({
|
|
563
563
|
code: e,
|
|
564
564
|
context: t.context,
|
|
565
565
|
localState: t.localState,
|
|
@@ -569,66 +569,66 @@ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => K({
|
|
|
569
569
|
isExpression: !1,
|
|
570
570
|
enableCache: !0
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function Le(e) {
|
|
573
573
|
var i;
|
|
574
574
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
575
575
|
for (const o in n) {
|
|
576
576
|
if (!n.hasOwnProperty(o))
|
|
577
577
|
continue;
|
|
578
578
|
const l = n[o];
|
|
579
|
-
let
|
|
579
|
+
let a = Tt(o);
|
|
580
580
|
if (e.stripPrefix)
|
|
581
581
|
switch (q) {
|
|
582
582
|
case "vue":
|
|
583
|
-
|
|
583
|
+
a = a.replace("v-on:", "");
|
|
584
584
|
break;
|
|
585
585
|
case "svelte":
|
|
586
|
-
|
|
586
|
+
a = a.replace("on:", "");
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
|
-
t[
|
|
589
|
+
t[a] = It(l, e);
|
|
590
590
|
}
|
|
591
591
|
return t;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function wt({
|
|
594
594
|
properties: e
|
|
595
595
|
}) {
|
|
596
596
|
return e;
|
|
597
597
|
}
|
|
598
|
-
const
|
|
598
|
+
const Et = (e) => ({
|
|
599
599
|
href: e.href
|
|
600
600
|
});
|
|
601
|
-
function
|
|
601
|
+
function fe({
|
|
602
602
|
block: e,
|
|
603
603
|
context: t
|
|
604
604
|
}) {
|
|
605
605
|
var i;
|
|
606
606
|
const n = {
|
|
607
|
-
...
|
|
607
|
+
...Et(e),
|
|
608
608
|
...e.properties,
|
|
609
609
|
"builder-id": e.id,
|
|
610
|
-
style:
|
|
610
|
+
style: pt({
|
|
611
611
|
block: e,
|
|
612
612
|
context: t
|
|
613
613
|
}),
|
|
614
614
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
615
615
|
};
|
|
616
|
-
return
|
|
616
|
+
return wt({
|
|
617
617
|
properties: n,
|
|
618
618
|
context: t,
|
|
619
619
|
block: e
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Rt(e) {
|
|
623
623
|
return /* @__PURE__ */ s(
|
|
624
|
-
|
|
624
|
+
ue,
|
|
625
625
|
{
|
|
626
626
|
TagName: e.Wrapper,
|
|
627
|
-
attributes:
|
|
627
|
+
attributes: fe({
|
|
628
628
|
block: e.block,
|
|
629
629
|
context: e.context
|
|
630
630
|
}),
|
|
631
|
-
actionAttributes:
|
|
631
|
+
actionAttributes: Le({
|
|
632
632
|
block: e.block,
|
|
633
633
|
rootState: e.context.rootState,
|
|
634
634
|
rootSetState: e.context.rootSetState,
|
|
@@ -640,14 +640,14 @@ function It(e) {
|
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Vt(e) {
|
|
644
644
|
function t() {
|
|
645
645
|
return e.includeBlockProps ? {
|
|
646
|
-
...
|
|
646
|
+
...fe({
|
|
647
647
|
block: e.block,
|
|
648
648
|
context: e.context
|
|
649
649
|
}),
|
|
650
|
-
|
|
650
|
+
...Le({
|
|
651
651
|
block: e.block,
|
|
652
652
|
rootState: e.context.rootState,
|
|
653
653
|
rootSetState: e.context.rootSetState,
|
|
@@ -658,25 +658,25 @@ function Et(e) {
|
|
|
658
658
|
}
|
|
659
659
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const Pt = ({
|
|
662
662
|
componentOptions: e,
|
|
663
663
|
builderBlock: t,
|
|
664
664
|
context: n,
|
|
665
665
|
componentRef: i,
|
|
666
666
|
includeBlockProps: o,
|
|
667
667
|
isInteractive: l,
|
|
668
|
-
contextValue:
|
|
668
|
+
contextValue: a
|
|
669
669
|
}) => {
|
|
670
|
-
const
|
|
670
|
+
const r = {
|
|
671
671
|
...e,
|
|
672
672
|
/**
|
|
673
673
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
674
674
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
675
675
|
*/
|
|
676
676
|
...o ? {
|
|
677
|
-
attributes:
|
|
677
|
+
attributes: fe({
|
|
678
678
|
block: t,
|
|
679
|
-
context:
|
|
679
|
+
context: a
|
|
680
680
|
})
|
|
681
681
|
} : {}
|
|
682
682
|
};
|
|
@@ -686,17 +686,17 @@ const Rt = ({
|
|
|
686
686
|
context: n,
|
|
687
687
|
wrapperProps: e,
|
|
688
688
|
includeBlockProps: o
|
|
689
|
-
} :
|
|
689
|
+
} : r;
|
|
690
690
|
};
|
|
691
|
-
function
|
|
691
|
+
function ye(e) {
|
|
692
692
|
var i;
|
|
693
693
|
const [t, n] = C(
|
|
694
|
-
() => e.isInteractive ?
|
|
694
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
695
695
|
);
|
|
696
|
-
return /* @__PURE__ */ s(
|
|
696
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
697
697
|
t,
|
|
698
698
|
{
|
|
699
|
-
...
|
|
699
|
+
...Pt({
|
|
700
700
|
componentOptions: e.componentOptions,
|
|
701
701
|
builderBlock: e.builderBlock,
|
|
702
702
|
context: e.context,
|
|
@@ -719,9 +719,9 @@ function be(e) {
|
|
|
719
719
|
}
|
|
720
720
|
) }) : null });
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Bt(e) {
|
|
723
723
|
const [t, n] = C(() => e.repeatContext);
|
|
724
|
-
return /* @__PURE__ */ s(
|
|
724
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
725
725
|
_,
|
|
726
726
|
{
|
|
727
727
|
block: e.block,
|
|
@@ -732,23 +732,23 @@ function Pt(e) {
|
|
|
732
732
|
) });
|
|
733
733
|
}
|
|
734
734
|
function _(e) {
|
|
735
|
-
var c,
|
|
735
|
+
var c, u, f;
|
|
736
736
|
function t() {
|
|
737
|
-
return
|
|
737
|
+
return yt({
|
|
738
738
|
block: e.block,
|
|
739
739
|
context: e.context,
|
|
740
740
|
registeredComponents: e.registeredComponents
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
function n() {
|
|
744
|
-
return
|
|
744
|
+
return xt({
|
|
745
745
|
block: e.block,
|
|
746
746
|
context: e.context
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
749
|
function i() {
|
|
750
|
-
var
|
|
751
|
-
return (
|
|
750
|
+
var d;
|
|
751
|
+
return (d = e.block.repeat) != null && d.collection ? e.block : X({
|
|
752
752
|
block: e.block,
|
|
753
753
|
localState: e.context.localState,
|
|
754
754
|
rootState: e.context.rootState,
|
|
@@ -758,32 +758,32 @@ function _(e) {
|
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
function o() {
|
|
761
|
-
var
|
|
762
|
-
return e.block.tagName === "a" || ((
|
|
761
|
+
var m;
|
|
762
|
+
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
763
763
|
}
|
|
764
764
|
function l() {
|
|
765
|
-
var p, S;
|
|
766
|
-
if ((p = e.block.repeat) != null && p.collection)
|
|
767
|
-
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
768
|
-
const u = "hide" in i() ? i().hide : !1;
|
|
769
|
-
return ("show" in i() ? i().show : !0) && !u;
|
|
770
|
-
}
|
|
771
|
-
function r() {
|
|
772
765
|
var g, p;
|
|
773
|
-
|
|
766
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
767
|
+
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
768
|
+
const d = "hide" in i() ? i().hide : !1;
|
|
769
|
+
return ("show" in i() ? i().show : !0) && !d;
|
|
774
770
|
}
|
|
775
771
|
function a() {
|
|
776
|
-
var
|
|
772
|
+
var m, g;
|
|
773
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
774
|
+
}
|
|
775
|
+
function r() {
|
|
776
|
+
var d, m, g, p;
|
|
777
777
|
return {
|
|
778
|
-
blockChildren: (
|
|
779
|
-
componentRef: (
|
|
778
|
+
blockChildren: (d = i().children) != null ? d : [],
|
|
779
|
+
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
780
780
|
componentOptions: {
|
|
781
|
-
...
|
|
781
|
+
...at(i()),
|
|
782
782
|
builderContext: e.context,
|
|
783
|
-
...
|
|
783
|
+
...St(t()) ? {
|
|
784
784
|
builderLinkComponent: e.linkComponent
|
|
785
785
|
} : {},
|
|
786
|
-
...
|
|
786
|
+
...vt(t()) ? {
|
|
787
787
|
builderComponents: e.registeredComponents
|
|
788
788
|
} : {}
|
|
789
789
|
},
|
|
@@ -791,44 +791,44 @@ function _(e) {
|
|
|
791
791
|
linkComponent: e.linkComponent,
|
|
792
792
|
registeredComponents: e.registeredComponents,
|
|
793
793
|
builderBlock: i(),
|
|
794
|
-
includeBlockProps: ((
|
|
795
|
-
isInteractive: !((
|
|
794
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
795
|
+
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
return
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
...
|
|
803
|
-
elementId:
|
|
798
|
+
return B(() => {
|
|
799
|
+
const d = i().id, m = i().animations;
|
|
800
|
+
m && d && mt(
|
|
801
|
+
m.map((g) => ({
|
|
802
|
+
...g,
|
|
803
|
+
elementId: d
|
|
804
804
|
}))
|
|
805
805
|
);
|
|
806
|
-
}, []), /* @__PURE__ */ s(
|
|
807
|
-
/* @__PURE__ */ s(
|
|
808
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
809
|
-
|
|
806
|
+
}, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ V(E, { children: [
|
|
807
|
+
/* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
|
|
808
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
809
|
+
ye,
|
|
810
810
|
{
|
|
811
|
-
componentRef:
|
|
812
|
-
componentOptions:
|
|
813
|
-
blockChildren:
|
|
814
|
-
context:
|
|
815
|
-
registeredComponents:
|
|
816
|
-
linkComponent:
|
|
817
|
-
builderBlock:
|
|
818
|
-
includeBlockProps:
|
|
819
|
-
isInteractive:
|
|
811
|
+
componentRef: r().componentRef,
|
|
812
|
+
componentOptions: r().componentOptions,
|
|
813
|
+
blockChildren: r().blockChildren,
|
|
814
|
+
context: r().context,
|
|
815
|
+
registeredComponents: r().registeredComponents,
|
|
816
|
+
linkComponent: r().linkComponent,
|
|
817
|
+
builderBlock: r().builderBlock,
|
|
818
|
+
includeBlockProps: r().includeBlockProps,
|
|
819
|
+
isInteractive: r().isInteractive
|
|
820
820
|
}
|
|
821
|
-
) }) : /* @__PURE__ */ s(
|
|
822
|
-
|
|
821
|
+
) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
822
|
+
Bt,
|
|
823
823
|
{
|
|
824
|
-
repeatContext:
|
|
825
|
-
block:
|
|
824
|
+
repeatContext: d.context,
|
|
825
|
+
block: d.block,
|
|
826
826
|
registeredComponents: e.registeredComponents,
|
|
827
827
|
linkComponent: e.linkComponent
|
|
828
828
|
},
|
|
829
|
-
|
|
829
|
+
m
|
|
830
830
|
)) }) : /* @__PURE__ */ V(
|
|
831
|
-
|
|
831
|
+
Rt,
|
|
832
832
|
{
|
|
833
833
|
Wrapper: o(),
|
|
834
834
|
block: i(),
|
|
@@ -836,42 +836,42 @@ function _(e) {
|
|
|
836
836
|
linkComponent: e.linkComponent,
|
|
837
837
|
children: [
|
|
838
838
|
/* @__PURE__ */ s(
|
|
839
|
-
|
|
839
|
+
ye,
|
|
840
840
|
{
|
|
841
|
-
componentRef:
|
|
842
|
-
componentOptions:
|
|
843
|
-
blockChildren:
|
|
844
|
-
context:
|
|
845
|
-
registeredComponents:
|
|
846
|
-
linkComponent:
|
|
847
|
-
builderBlock:
|
|
848
|
-
includeBlockProps:
|
|
849
|
-
isInteractive:
|
|
841
|
+
componentRef: r().componentRef,
|
|
842
|
+
componentOptions: r().componentOptions,
|
|
843
|
+
blockChildren: r().blockChildren,
|
|
844
|
+
context: r().context,
|
|
845
|
+
registeredComponents: r().registeredComponents,
|
|
846
|
+
linkComponent: r().linkComponent,
|
|
847
|
+
builderBlock: r().builderBlock,
|
|
848
|
+
includeBlockProps: r().includeBlockProps,
|
|
849
|
+
isInteractive: r().isInteractive
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
|
-
(
|
|
852
|
+
(u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
|
|
853
853
|
_,
|
|
854
854
|
{
|
|
855
|
-
block:
|
|
855
|
+
block: d,
|
|
856
856
|
registeredComponents: e.registeredComponents,
|
|
857
857
|
linkComponent: e.linkComponent,
|
|
858
858
|
context: e.context
|
|
859
859
|
},
|
|
860
|
-
|
|
860
|
+
d.id
|
|
861
861
|
))
|
|
862
862
|
]
|
|
863
863
|
}
|
|
864
864
|
) })
|
|
865
865
|
] }) : null });
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function At(e) {
|
|
868
868
|
function t() {
|
|
869
869
|
var o;
|
|
870
870
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
871
871
|
}
|
|
872
872
|
function n() {
|
|
873
873
|
var o, l;
|
|
874
|
-
|
|
874
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
875
875
|
{
|
|
876
876
|
type: "builder.clickEmptyBlocks",
|
|
877
877
|
data: {
|
|
@@ -884,7 +884,7 @@ function Vt(e) {
|
|
|
884
884
|
}
|
|
885
885
|
function i() {
|
|
886
886
|
var o, l;
|
|
887
|
-
|
|
887
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
888
888
|
{
|
|
889
889
|
type: "builder.hoverEmptyBlocks",
|
|
890
890
|
data: {
|
|
@@ -895,7 +895,7 @@ function Vt(e) {
|
|
|
895
895
|
"*"
|
|
896
896
|
));
|
|
897
897
|
}
|
|
898
|
-
return /* @__PURE__ */ V(
|
|
898
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
899
899
|
/* @__PURE__ */ s(
|
|
900
900
|
e.BlocksWrapper,
|
|
901
901
|
{
|
|
@@ -917,11 +917,11 @@ function Vt(e) {
|
|
|
917
917
|
}` })
|
|
918
918
|
] });
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function D(e) {
|
|
921
921
|
var i, o, l;
|
|
922
|
-
const t =
|
|
922
|
+
const t = be(me), n = be(Ve);
|
|
923
923
|
return /* @__PURE__ */ s(
|
|
924
|
-
|
|
924
|
+
At,
|
|
925
925
|
{
|
|
926
926
|
blocks: e.blocks,
|
|
927
927
|
parent: e.parent,
|
|
@@ -929,99 +929,99 @@ function j(e) {
|
|
|
929
929
|
styleProp: e.styleProp,
|
|
930
930
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
931
931
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
932
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
932
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
|
|
933
933
|
_,
|
|
934
934
|
{
|
|
935
|
-
block:
|
|
935
|
+
block: a,
|
|
936
936
|
linkComponent: e.linkComponent,
|
|
937
937
|
context: e.context || t,
|
|
938
938
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
939
939
|
},
|
|
940
|
-
|
|
940
|
+
a.id
|
|
941
941
|
)) }) : null
|
|
942
942
|
}
|
|
943
943
|
);
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
function
|
|
947
|
-
var
|
|
945
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
946
|
+
function Wt(e) {
|
|
947
|
+
var A, O;
|
|
948
948
|
const [t, n] = C(
|
|
949
949
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
950
|
-
), [i, o] = C(() => e.columns || []), [l,
|
|
950
|
+
), [i, o] = C(() => e.columns || []), [l, a] = C(
|
|
951
951
|
() => e.stackColumnsAt || "tablet"
|
|
952
952
|
);
|
|
953
|
-
function
|
|
954
|
-
return
|
|
953
|
+
function r(v) {
|
|
954
|
+
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
955
955
|
}
|
|
956
|
-
function c(
|
|
957
|
-
var
|
|
958
|
-
return ((
|
|
956
|
+
function c(v) {
|
|
957
|
+
var w;
|
|
958
|
+
return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
const
|
|
962
|
-
return `calc(${c(
|
|
960
|
+
function u(v) {
|
|
961
|
+
const w = t * (i.length - 1) / i.length;
|
|
962
|
+
return `calc(${c(v)}% - ${w}px)`;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
stackedStyle:
|
|
966
|
-
desktopStyle:
|
|
964
|
+
function f({
|
|
965
|
+
stackedStyle: v,
|
|
966
|
+
desktopStyle: w
|
|
967
967
|
}) {
|
|
968
|
-
return l === "tablet" ?
|
|
968
|
+
return l === "tablet" ? v : w;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
stackedStyle:
|
|
972
|
-
desktopStyle:
|
|
970
|
+
function d({
|
|
971
|
+
stackedStyle: v,
|
|
972
|
+
desktopStyle: w
|
|
973
973
|
}) {
|
|
974
|
-
return l === "never" ?
|
|
974
|
+
return l === "never" ? w : v;
|
|
975
975
|
}
|
|
976
|
-
const [
|
|
976
|
+
const [m, g] = C(
|
|
977
977
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
978
978
|
);
|
|
979
|
-
function
|
|
979
|
+
function p() {
|
|
980
980
|
return {
|
|
981
|
-
"--flex-dir":
|
|
982
|
-
"--flex-dir-tablet":
|
|
983
|
-
stackedStyle:
|
|
981
|
+
"--flex-dir": m,
|
|
982
|
+
"--flex-dir-tablet": f({
|
|
983
|
+
stackedStyle: m,
|
|
984
984
|
desktopStyle: "row"
|
|
985
985
|
})
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
function I(
|
|
989
|
-
const
|
|
988
|
+
function I(v) {
|
|
989
|
+
const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
|
|
990
990
|
return {
|
|
991
991
|
...{
|
|
992
992
|
display: "flex",
|
|
993
993
|
flexDirection: "column",
|
|
994
994
|
alignItems: "stretch"
|
|
995
995
|
},
|
|
996
|
-
width:
|
|
997
|
-
["marginLeft"]:
|
|
998
|
-
"--column-width-mobile":
|
|
999
|
-
stackedStyle:
|
|
1000
|
-
desktopStyle:
|
|
996
|
+
width: W,
|
|
997
|
+
["marginLeft"]: b,
|
|
998
|
+
"--column-width-mobile": d({
|
|
999
|
+
stackedStyle: h,
|
|
1000
|
+
desktopStyle: W
|
|
1001
1001
|
}),
|
|
1002
|
-
"--column-margin-left-mobile":
|
|
1003
|
-
stackedStyle:
|
|
1004
|
-
desktopStyle:
|
|
1002
|
+
"--column-margin-left-mobile": d({
|
|
1003
|
+
stackedStyle: y,
|
|
1004
|
+
desktopStyle: b
|
|
1005
1005
|
}),
|
|
1006
|
-
"--column-width-tablet":
|
|
1007
|
-
stackedStyle:
|
|
1008
|
-
desktopStyle:
|
|
1006
|
+
"--column-width-tablet": f({
|
|
1007
|
+
stackedStyle: h,
|
|
1008
|
+
desktopStyle: W
|
|
1009
1009
|
}),
|
|
1010
|
-
"--column-margin-left-tablet":
|
|
1011
|
-
stackedStyle:
|
|
1012
|
-
desktopStyle:
|
|
1010
|
+
"--column-margin-left-tablet": f({
|
|
1011
|
+
stackedStyle: y,
|
|
1012
|
+
desktopStyle: b
|
|
1013
1013
|
})
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1019
|
-
((
|
|
1020
|
-
)[
|
|
1016
|
+
function x(v) {
|
|
1017
|
+
var W, b;
|
|
1018
|
+
return De(
|
|
1019
|
+
((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1020
|
+
)[v].max;
|
|
1021
1021
|
}
|
|
1022
1022
|
function R() {
|
|
1023
1023
|
return `
|
|
1024
|
-
@media (max-width: ${
|
|
1024
|
+
@media (max-width: ${x("medium")}px) {
|
|
1025
1025
|
.${e.builderBlock.id}-breakpoints {
|
|
1026
1026
|
flex-direction: var(--flex-dir-tablet);
|
|
1027
1027
|
align-items: stretch;
|
|
@@ -1033,7 +1033,7 @@ function Nt(e) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
@media (max-width: ${
|
|
1036
|
+
@media (max-width: ${x("small")}px) {
|
|
1037
1037
|
.${e.builderBlock.id}-breakpoints {
|
|
1038
1038
|
flex-direction: var(--flex-dir);
|
|
1039
1039
|
align-items: stretch;
|
|
@@ -1046,33 +1046,33 @@ function Nt(e) {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
`;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function P(v, w) {
|
|
1050
1050
|
return {
|
|
1051
|
-
...
|
|
1052
|
-
href:
|
|
1051
|
+
...v.link ? {
|
|
1052
|
+
href: v.link
|
|
1053
1053
|
} : {},
|
|
1054
1054
|
[H()]: "builder-column",
|
|
1055
|
-
style:
|
|
1055
|
+
style: Fe(I(w))
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
return /* @__PURE__ */ V(
|
|
1058
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1059
1059
|
/* @__PURE__ */ V(
|
|
1060
1060
|
"div",
|
|
1061
1061
|
{
|
|
1062
|
-
className:
|
|
1063
|
-
style:
|
|
1062
|
+
className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1063
|
+
style: p(),
|
|
1064
1064
|
children: [
|
|
1065
|
-
/* @__PURE__ */ s(
|
|
1066
|
-
(
|
|
1067
|
-
|
|
1065
|
+
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
|
|
1066
|
+
(O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
|
|
1067
|
+
ue,
|
|
1068
1068
|
{
|
|
1069
|
-
TagName:
|
|
1069
|
+
TagName: r(v),
|
|
1070
1070
|
actionAttributes: {},
|
|
1071
|
-
attributes:
|
|
1071
|
+
attributes: P(v, w),
|
|
1072
1072
|
children: /* @__PURE__ */ s(
|
|
1073
|
-
|
|
1073
|
+
D,
|
|
1074
1074
|
{
|
|
1075
|
-
path: `component.options.columns.${
|
|
1075
|
+
path: `component.options.columns.${w}.blocks`,
|
|
1076
1076
|
parent: e.builderBlock.id,
|
|
1077
1077
|
styleProp: {
|
|
1078
1078
|
flexGrow: "1"
|
|
@@ -1080,86 +1080,86 @@ function Nt(e) {
|
|
|
1080
1080
|
context: e.builderContext,
|
|
1081
1081
|
registeredComponents: e.builderComponents,
|
|
1082
1082
|
linkComponent: e.builderLinkComponent,
|
|
1083
|
-
blocks:
|
|
1083
|
+
blocks: v.blocks
|
|
1084
1084
|
}
|
|
1085
1085
|
)
|
|
1086
1086
|
},
|
|
1087
|
-
|
|
1087
|
+
w
|
|
1088
1088
|
))
|
|
1089
1089
|
]
|
|
1090
1090
|
}
|
|
1091
1091
|
),
|
|
1092
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1092
|
+
/* @__PURE__ */ s("style", { children: `.div-bade6b34 {
|
|
1093
1093
|
display: flex;
|
|
1094
1094
|
line-height: normal;
|
|
1095
1095
|
}` })
|
|
1096
1096
|
] });
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Ft(e) {
|
|
1099
1099
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function xe(e) {
|
|
1102
1102
|
return e.replace(/http(s)?:/, "");
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function $t(e = "", t, n) {
|
|
1105
1105
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1106
1106
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Dt(e, t) {
|
|
1109
1109
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1110
1110
|
return e;
|
|
1111
1111
|
if (t === "master")
|
|
1112
|
-
return
|
|
1112
|
+
return xe(e);
|
|
1113
1113
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1114
1114
|
if (n) {
|
|
1115
1115
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1116
|
-
return
|
|
1116
|
+
return xe(`${i[0]}_${l}${o}`);
|
|
1117
1117
|
}
|
|
1118
1118
|
return null;
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function oe(e) {
|
|
1121
1121
|
if (!e)
|
|
1122
1122
|
return e;
|
|
1123
1123
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1124
1124
|
if (e.match(/builder\.io/)) {
|
|
1125
1125
|
let n = e;
|
|
1126
1126
|
const i = Number(e.split("?width=")[1]);
|
|
1127
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1127
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1128
1128
|
}
|
|
1129
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1129
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1132
|
-
var o, l,
|
|
1131
|
+
function Lt(e) {
|
|
1132
|
+
var o, l, a, r, c, u;
|
|
1133
1133
|
function t() {
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
if (!
|
|
1134
|
+
var m;
|
|
1135
|
+
const d = e.image || e.src;
|
|
1136
|
+
if (!d || // We can auto add srcset for cdn.builder.io and shopify
|
|
1137
1137
|
// images, otherwise you can supply this prop manually
|
|
1138
|
-
!(
|
|
1138
|
+
!(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
|
|
1139
1139
|
return e.srcset;
|
|
1140
|
-
if (e.srcset && ((
|
|
1140
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1141
1141
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1142
|
-
return console.debug("Removed given srcset"),
|
|
1142
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1143
1143
|
} else if (e.image && !e.srcset)
|
|
1144
|
-
return
|
|
1145
|
-
return
|
|
1144
|
+
return oe(d);
|
|
1145
|
+
return oe(d);
|
|
1146
1146
|
}
|
|
1147
1147
|
function n() {
|
|
1148
|
-
var
|
|
1149
|
-
return (
|
|
1148
|
+
var f;
|
|
1149
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1150
1150
|
}
|
|
1151
1151
|
function i() {
|
|
1152
|
-
const
|
|
1152
|
+
const f = {
|
|
1153
1153
|
position: "absolute",
|
|
1154
1154
|
height: "100%",
|
|
1155
1155
|
width: "100%",
|
|
1156
1156
|
left: "0px",
|
|
1157
1157
|
top: "0px"
|
|
1158
1158
|
};
|
|
1159
|
-
return e.aspectRatio ?
|
|
1159
|
+
return e.aspectRatio ? f : void 0;
|
|
1160
1160
|
}
|
|
1161
|
-
return /* @__PURE__ */ V(
|
|
1162
|
-
/* @__PURE__ */ V(
|
|
1161
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1162
|
+
/* @__PURE__ */ V(E, { children: [
|
|
1163
1163
|
/* @__PURE__ */ V("picture", { children: [
|
|
1164
1164
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1165
1165
|
/* @__PURE__ */ s(
|
|
@@ -1189,8 +1189,8 @@ function Ft(e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
) : null,
|
|
1192
|
-
(
|
|
1193
|
-
!e.fitContent && ((
|
|
1192
|
+
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1193
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1194
1194
|
] }),
|
|
1195
1195
|
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
1196
1196
|
opacity: 1;
|
|
@@ -1211,7 +1211,7 @@ function Ft(e) {
|
|
|
1211
1211
|
}` })
|
|
1212
1212
|
] });
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Ot(e) {
|
|
1215
1215
|
return /* @__PURE__ */ s(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
@@ -1232,7 +1232,249 @@ function Lt(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1235
|
+
const ae = {
|
|
1236
|
+
"@type": "@builder.io/sdk:Element",
|
|
1237
|
+
layerName: "Accordion item title",
|
|
1238
|
+
responsiveStyles: {
|
|
1239
|
+
large: {
|
|
1240
|
+
marginTop: "10px",
|
|
1241
|
+
position: "relative",
|
|
1242
|
+
display: "flex",
|
|
1243
|
+
alignItems: "stretch",
|
|
1244
|
+
flexDirection: "column",
|
|
1245
|
+
paddingBottom: "10px"
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
children: [{
|
|
1249
|
+
"@type": "@builder.io/sdk:Element",
|
|
1250
|
+
responsiveStyles: {
|
|
1251
|
+
large: {
|
|
1252
|
+
textAlign: "left",
|
|
1253
|
+
display: "flex",
|
|
1254
|
+
flexDirection: "column"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
component: {
|
|
1258
|
+
name: "Text",
|
|
1259
|
+
options: {
|
|
1260
|
+
text: "I am an accordion title. Click me!"
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
}]
|
|
1264
|
+
}, re = {
|
|
1265
|
+
"@type": "@builder.io/sdk:Element",
|
|
1266
|
+
layerName: "Accordion item detail",
|
|
1267
|
+
responsiveStyles: {
|
|
1268
|
+
large: {
|
|
1269
|
+
position: "relative",
|
|
1270
|
+
display: "flex",
|
|
1271
|
+
alignItems: "stretch",
|
|
1272
|
+
flexDirection: "column",
|
|
1273
|
+
marginTop: "10px",
|
|
1274
|
+
paddingBottom: "10px"
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
children: [{
|
|
1278
|
+
"@type": "@builder.io/sdk:Element",
|
|
1279
|
+
responsiveStyles: {
|
|
1280
|
+
large: {
|
|
1281
|
+
paddingTop: "50px",
|
|
1282
|
+
textAlign: "left",
|
|
1283
|
+
display: "flex",
|
|
1284
|
+
flexDirection: "column",
|
|
1285
|
+
paddingBottom: "50px"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
component: {
|
|
1289
|
+
name: "Text",
|
|
1290
|
+
options: {
|
|
1291
|
+
text: "I am an accordion detail, hello!"
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}]
|
|
1295
|
+
}, jt = {
|
|
1296
|
+
name: "Builder:Accordion",
|
|
1297
|
+
canHaveChildren: !0,
|
|
1298
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
1299
|
+
defaultStyles: {
|
|
1300
|
+
display: "flex",
|
|
1301
|
+
flexDirection: "column",
|
|
1302
|
+
alignItems: "stretch"
|
|
1303
|
+
},
|
|
1304
|
+
inputs: [{
|
|
1305
|
+
name: "items",
|
|
1306
|
+
type: "list",
|
|
1307
|
+
broadcast: !0,
|
|
1308
|
+
subFields: [{
|
|
1309
|
+
name: "title",
|
|
1310
|
+
type: "uiBlocks",
|
|
1311
|
+
hideFromUI: !0,
|
|
1312
|
+
defaultValue: [ae]
|
|
1313
|
+
}, {
|
|
1314
|
+
name: "detail",
|
|
1315
|
+
type: "uiBlocks",
|
|
1316
|
+
hideFromUI: !0,
|
|
1317
|
+
defaultValue: [re]
|
|
1318
|
+
}],
|
|
1319
|
+
defaultValue: [{
|
|
1320
|
+
title: [ae],
|
|
1321
|
+
detail: [re]
|
|
1322
|
+
}, {
|
|
1323
|
+
title: [ae],
|
|
1324
|
+
detail: [re]
|
|
1325
|
+
}],
|
|
1326
|
+
showIf: (e) => !e.get("useChildrenForItems")
|
|
1327
|
+
}, {
|
|
1328
|
+
name: "oneAtATime",
|
|
1329
|
+
helperText: "Only allow opening one at a time (collapse all others when new item openned)",
|
|
1330
|
+
type: "boolean",
|
|
1331
|
+
defaultValue: !1
|
|
1332
|
+
}, {
|
|
1333
|
+
name: "grid",
|
|
1334
|
+
helperText: "Display as a grid",
|
|
1335
|
+
type: "boolean",
|
|
1336
|
+
defaultValue: !1
|
|
1337
|
+
}, {
|
|
1338
|
+
name: "gridRowWidth",
|
|
1339
|
+
helperText: "Display as a grid",
|
|
1340
|
+
type: "string",
|
|
1341
|
+
showIf: (e) => e.get("grid"),
|
|
1342
|
+
defaultValue: "25%"
|
|
1343
|
+
}, {
|
|
1344
|
+
name: "useChildrenForItems",
|
|
1345
|
+
type: "boolean",
|
|
1346
|
+
helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
|
|
1347
|
+
advanced: !0,
|
|
1348
|
+
defaultValue: !1,
|
|
1349
|
+
onChange: (e) => {
|
|
1350
|
+
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1351
|
+
}
|
|
1352
|
+
}]
|
|
1353
|
+
}, Se = (e) => e.toString();
|
|
1354
|
+
function Ut(e) {
|
|
1355
|
+
var d;
|
|
1356
|
+
const [t, n] = C(() => []);
|
|
1357
|
+
function i() {
|
|
1358
|
+
return !!(e.grid || e.oneAtATime);
|
|
1359
|
+
}
|
|
1360
|
+
function o() {
|
|
1361
|
+
return {
|
|
1362
|
+
display: "flex",
|
|
1363
|
+
alignItems: "stretch",
|
|
1364
|
+
flexDirection: "column",
|
|
1365
|
+
...e.grid && {
|
|
1366
|
+
flexDirection: "row",
|
|
1367
|
+
alignItems: "flex-start",
|
|
1368
|
+
flexWrap: "wrap"
|
|
1369
|
+
}
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function l() {
|
|
1373
|
+
const g = {
|
|
1374
|
+
...{
|
|
1375
|
+
display: "flex",
|
|
1376
|
+
flexDirection: "column"
|
|
1377
|
+
},
|
|
1378
|
+
alignItems: "stretch",
|
|
1379
|
+
cursor: "pointer"
|
|
1380
|
+
};
|
|
1381
|
+
return Object.fromEntries(
|
|
1382
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1385
|
+
function a(m) {
|
|
1386
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1387
|
+
}
|
|
1388
|
+
function r(m) {
|
|
1389
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1390
|
+
}
|
|
1391
|
+
function c() {
|
|
1392
|
+
let m = null;
|
|
1393
|
+
if (e.grid && t.length && document) {
|
|
1394
|
+
const p = t[0];
|
|
1395
|
+
let x = document.querySelector(
|
|
1396
|
+
`.builder-accordion-title[data-index="${p}"]`
|
|
1397
|
+
);
|
|
1398
|
+
if (m = p, x) {
|
|
1399
|
+
let R = x.getBoundingClientRect();
|
|
1400
|
+
for (; x = x && x.nextElementSibling; )
|
|
1401
|
+
if (x) {
|
|
1402
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1403
|
+
continue;
|
|
1404
|
+
const P = x.getBoundingClientRect();
|
|
1405
|
+
if (P.left > R.left) {
|
|
1406
|
+
const A = parseInt(
|
|
1407
|
+
x.getAttribute("data-index") || "",
|
|
1408
|
+
10
|
|
1409
|
+
);
|
|
1410
|
+
isNaN(A) || (R = P, m = A);
|
|
1411
|
+
} else
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1417
|
+
}
|
|
1418
|
+
function u() {
|
|
1419
|
+
const m = {
|
|
1420
|
+
order: typeof c() == "number" ? c() : void 0,
|
|
1421
|
+
...e.grid && {
|
|
1422
|
+
width: "100%"
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
return Object.fromEntries(
|
|
1426
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1427
|
+
);
|
|
1428
|
+
}
|
|
1429
|
+
function f(m) {
|
|
1430
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1431
|
+
}
|
|
1432
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
|
|
1433
|
+
/* @__PURE__ */ s(
|
|
1434
|
+
"div",
|
|
1435
|
+
{
|
|
1436
|
+
className: a(g),
|
|
1437
|
+
style: {
|
|
1438
|
+
...l(),
|
|
1439
|
+
width: e.grid ? e.gridRowWidth : void 0,
|
|
1440
|
+
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1441
|
+
},
|
|
1442
|
+
"data-index": g,
|
|
1443
|
+
onClick: (p) => f(g),
|
|
1444
|
+
children: /* @__PURE__ */ s(
|
|
1445
|
+
D,
|
|
1446
|
+
{
|
|
1447
|
+
blocks: m.title,
|
|
1448
|
+
path: `items.${g}.title`,
|
|
1449
|
+
parent: e.builderBlock.id,
|
|
1450
|
+
context: e.builderContext,
|
|
1451
|
+
registeredComponents: e.builderComponents,
|
|
1452
|
+
linkComponent: e.builderLinkComponent
|
|
1453
|
+
}
|
|
1454
|
+
)
|
|
1455
|
+
}
|
|
1456
|
+
),
|
|
1457
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1458
|
+
"div",
|
|
1459
|
+
{
|
|
1460
|
+
className: r(g),
|
|
1461
|
+
style: u(),
|
|
1462
|
+
children: /* @__PURE__ */ s(
|
|
1463
|
+
D,
|
|
1464
|
+
{
|
|
1465
|
+
blocks: m.detail,
|
|
1466
|
+
path: `items.${g}.detail`,
|
|
1467
|
+
parent: e.builderBlock.id,
|
|
1468
|
+
context: e.builderContext,
|
|
1469
|
+
registeredComponents: e.builderComponents,
|
|
1470
|
+
linkComponent: e.builderLinkComponent
|
|
1471
|
+
}
|
|
1472
|
+
)
|
|
1473
|
+
}
|
|
1474
|
+
) : null
|
|
1475
|
+
] })) });
|
|
1476
|
+
}
|
|
1477
|
+
const Mt = {
|
|
1236
1478
|
name: "Core:Button",
|
|
1237
1479
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1238
1480
|
defaultStyles: {
|
|
@@ -1265,7 +1507,7 @@ const Dt = {
|
|
|
1265
1507
|
}],
|
|
1266
1508
|
static: !0,
|
|
1267
1509
|
noWrap: !0
|
|
1268
|
-
},
|
|
1510
|
+
}, Ht = {
|
|
1269
1511
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1270
1512
|
name: "Columns",
|
|
1271
1513
|
isRSC: !0,
|
|
@@ -1444,7 +1686,7 @@ const Dt = {
|
|
|
1444
1686
|
});
|
|
1445
1687
|
}
|
|
1446
1688
|
const n = e.get("columns");
|
|
1447
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((
|
|
1689
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((r, c) => r + c.get("width"), 0) !== 100) && t();
|
|
1448
1690
|
}
|
|
1449
1691
|
}, {
|
|
1450
1692
|
name: "space",
|
|
@@ -1466,13 +1708,13 @@ const Dt = {
|
|
|
1466
1708
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1467
1709
|
advanced: !0
|
|
1468
1710
|
}]
|
|
1469
|
-
},
|
|
1711
|
+
}, Kt = {
|
|
1470
1712
|
name: "Fragment",
|
|
1471
1713
|
static: !0,
|
|
1472
1714
|
hidden: !0,
|
|
1473
1715
|
canHaveChildren: !0,
|
|
1474
1716
|
noWrap: !0
|
|
1475
|
-
},
|
|
1717
|
+
}, qt = {
|
|
1476
1718
|
name: "Image",
|
|
1477
1719
|
static: !0,
|
|
1478
1720
|
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",
|
|
@@ -1492,29 +1734,29 @@ const Dt = {
|
|
|
1492
1734
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1493
1735
|
onChange: (e) => {
|
|
1494
1736
|
e.delete("srcset"), e.delete("noWebp");
|
|
1495
|
-
function n(
|
|
1496
|
-
return new Promise((c,
|
|
1497
|
-
const
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
},
|
|
1502
|
-
console.warn("Image load failed",
|
|
1503
|
-
}),
|
|
1504
|
-
|
|
1505
|
-
},
|
|
1737
|
+
function n(a, r = 6e4) {
|
|
1738
|
+
return new Promise((c, u) => {
|
|
1739
|
+
const f = document.createElement("img");
|
|
1740
|
+
let d = !1;
|
|
1741
|
+
f.onload = () => {
|
|
1742
|
+
d = !0, c(f);
|
|
1743
|
+
}, f.addEventListener("error", (m) => {
|
|
1744
|
+
console.warn("Image load failed", m.error), u(m.error);
|
|
1745
|
+
}), f.src = a, setTimeout(() => {
|
|
1746
|
+
d || u(new Error("Image load timed out"));
|
|
1747
|
+
}, r);
|
|
1506
1748
|
});
|
|
1507
1749
|
}
|
|
1508
|
-
function i(
|
|
1509
|
-
return Math.round(
|
|
1750
|
+
function i(a) {
|
|
1751
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1510
1752
|
}
|
|
1511
1753
|
const o = e.get("image"), l = e.get("aspectRatio");
|
|
1512
|
-
if (fetch(o).then((
|
|
1513
|
-
|
|
1754
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1755
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1514
1756
|
}), o && (!l || l === 0.7041))
|
|
1515
|
-
return n(o).then((
|
|
1516
|
-
const
|
|
1517
|
-
e.get("image") === o && (!
|
|
1757
|
+
return n(o).then((a) => {
|
|
1758
|
+
const r = e.get("aspectRatio");
|
|
1759
|
+
e.get("image") === o && (!r || r === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1518
1760
|
});
|
|
1519
1761
|
}
|
|
1520
1762
|
}, {
|
|
@@ -1572,7 +1814,7 @@ const Dt = {
|
|
|
1572
1814
|
advanced: !0,
|
|
1573
1815
|
defaultValue: 0.7041
|
|
1574
1816
|
}]
|
|
1575
|
-
},
|
|
1817
|
+
}, _t = {
|
|
1576
1818
|
name: "Core:Section",
|
|
1577
1819
|
static: !0,
|
|
1578
1820
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1611,7 +1853,7 @@ const Dt = {
|
|
|
1611
1853
|
}
|
|
1612
1854
|
}
|
|
1613
1855
|
}]
|
|
1614
|
-
},
|
|
1856
|
+
}, zt = {
|
|
1615
1857
|
name: "Slot",
|
|
1616
1858
|
isRSC: !0,
|
|
1617
1859
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1625,7 +1867,7 @@ const Dt = {
|
|
|
1625
1867
|
defaultValue: "children"
|
|
1626
1868
|
}]
|
|
1627
1869
|
};
|
|
1628
|
-
function
|
|
1870
|
+
function Jt(e) {
|
|
1629
1871
|
var t, n, i;
|
|
1630
1872
|
return /* @__PURE__ */ s(
|
|
1631
1873
|
"div",
|
|
@@ -1637,7 +1879,7 @@ function Kt(e) {
|
|
|
1637
1879
|
"builder-slot": e.name
|
|
1638
1880
|
},
|
|
1639
1881
|
children: /* @__PURE__ */ s(
|
|
1640
|
-
|
|
1882
|
+
D,
|
|
1641
1883
|
{
|
|
1642
1884
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1643
1885
|
path: `symbol.data.${e.name}`,
|
|
@@ -1648,7 +1890,7 @@ function Kt(e) {
|
|
|
1648
1890
|
}
|
|
1649
1891
|
);
|
|
1650
1892
|
}
|
|
1651
|
-
const
|
|
1893
|
+
const Yt = {
|
|
1652
1894
|
name: "Symbol",
|
|
1653
1895
|
noWrap: !0,
|
|
1654
1896
|
static: !0,
|
|
@@ -1681,7 +1923,7 @@ const qt = {
|
|
|
1681
1923
|
hideFromUI: !0,
|
|
1682
1924
|
type: "boolean"
|
|
1683
1925
|
}]
|
|
1684
|
-
},
|
|
1926
|
+
}, le = {
|
|
1685
1927
|
"@type": "@builder.io/sdk:Element",
|
|
1686
1928
|
responsiveStyles: {
|
|
1687
1929
|
large: {
|
|
@@ -1703,7 +1945,7 @@ const qt = {
|
|
|
1703
1945
|
text: "New tab"
|
|
1704
1946
|
}
|
|
1705
1947
|
}
|
|
1706
|
-
},
|
|
1948
|
+
}, se = {
|
|
1707
1949
|
"@type": "@builder.io/sdk:Element",
|
|
1708
1950
|
responsiveStyles: {
|
|
1709
1951
|
large: {
|
|
@@ -1719,7 +1961,7 @@ const qt = {
|
|
|
1719
1961
|
text: "New tab content "
|
|
1720
1962
|
}
|
|
1721
1963
|
}
|
|
1722
|
-
},
|
|
1964
|
+
}, Gt = {
|
|
1723
1965
|
name: "Builder: Tabs",
|
|
1724
1966
|
inputs: [{
|
|
1725
1967
|
name: "tabs",
|
|
@@ -1729,16 +1971,16 @@ const qt = {
|
|
|
1729
1971
|
name: "label",
|
|
1730
1972
|
type: "uiBlocks",
|
|
1731
1973
|
hideFromUI: !0,
|
|
1732
|
-
defaultValue: [
|
|
1974
|
+
defaultValue: [le]
|
|
1733
1975
|
}, {
|
|
1734
1976
|
name: "content",
|
|
1735
1977
|
type: "uiBlocks",
|
|
1736
1978
|
hideFromUI: !0,
|
|
1737
|
-
defaultValue: [
|
|
1979
|
+
defaultValue: [se]
|
|
1738
1980
|
}],
|
|
1739
1981
|
defaultValue: [{
|
|
1740
1982
|
label: [{
|
|
1741
|
-
...
|
|
1983
|
+
...le,
|
|
1742
1984
|
component: {
|
|
1743
1985
|
name: "Text",
|
|
1744
1986
|
options: {
|
|
@@ -1747,7 +1989,7 @@ const qt = {
|
|
|
1747
1989
|
}
|
|
1748
1990
|
}],
|
|
1749
1991
|
content: [{
|
|
1750
|
-
...
|
|
1992
|
+
...se,
|
|
1751
1993
|
component: {
|
|
1752
1994
|
name: "Text",
|
|
1753
1995
|
options: {
|
|
@@ -1757,7 +1999,7 @@ const qt = {
|
|
|
1757
1999
|
}]
|
|
1758
2000
|
}, {
|
|
1759
2001
|
label: [{
|
|
1760
|
-
...
|
|
2002
|
+
...le,
|
|
1761
2003
|
component: {
|
|
1762
2004
|
name: "Text",
|
|
1763
2005
|
options: {
|
|
@@ -1766,7 +2008,7 @@ const qt = {
|
|
|
1766
2008
|
}
|
|
1767
2009
|
}],
|
|
1768
2010
|
content: [{
|
|
1769
|
-
...
|
|
2011
|
+
...se,
|
|
1770
2012
|
component: {
|
|
1771
2013
|
name: "Text",
|
|
1772
2014
|
options: {
|
|
@@ -1817,16 +2059,16 @@ const qt = {
|
|
|
1817
2059
|
}]
|
|
1818
2060
|
}]
|
|
1819
2061
|
};
|
|
1820
|
-
function
|
|
2062
|
+
function Qt(e) {
|
|
1821
2063
|
var l;
|
|
1822
2064
|
const [t, n] = C(
|
|
1823
2065
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
1824
2066
|
);
|
|
1825
|
-
function i(
|
|
1826
|
-
return e.tabs && e.tabs[
|
|
2067
|
+
function i(a) {
|
|
2068
|
+
return e.tabs && e.tabs[a].content;
|
|
1827
2069
|
}
|
|
1828
|
-
function o(
|
|
1829
|
-
|
|
2070
|
+
function o(a) {
|
|
2071
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
1830
2072
|
}
|
|
1831
2073
|
return /* @__PURE__ */ V("div", { children: [
|
|
1832
2074
|
/* @__PURE__ */ s(
|
|
@@ -1839,32 +2081,32 @@ function zt(e) {
|
|
|
1839
2081
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1840
2082
|
overflow: "auto"
|
|
1841
2083
|
},
|
|
1842
|
-
children: (l = e.tabs) == null ? void 0 : l.map((
|
|
2084
|
+
children: (l = e.tabs) == null ? void 0 : l.map((a, r) => /* @__PURE__ */ s(
|
|
1843
2085
|
"span",
|
|
1844
2086
|
{
|
|
1845
|
-
className: `builder-tab-wrap ${t ===
|
|
1846
|
-
style:
|
|
1847
|
-
|
|
1848
|
-
a === t && e.collapsible ? n(-1) : n(a);
|
|
2087
|
+
className: `builder-tab-wrap ${t === r ? "builder-tab-active" : ""}`,
|
|
2088
|
+
style: {
|
|
2089
|
+
...t === r ? e.activeTabStyle : {}
|
|
1849
2090
|
},
|
|
2091
|
+
onClick: (c) => o(r),
|
|
1850
2092
|
children: /* @__PURE__ */ s(
|
|
1851
|
-
|
|
2093
|
+
D,
|
|
1852
2094
|
{
|
|
1853
2095
|
parent: e.builderBlock.id,
|
|
1854
|
-
path: `component.options.tabs.${
|
|
1855
|
-
blocks:
|
|
2096
|
+
path: `component.options.tabs.${r}.label`,
|
|
2097
|
+
blocks: a.label,
|
|
1856
2098
|
context: e.builderContext,
|
|
1857
2099
|
registeredComponents: e.builderComponents,
|
|
1858
2100
|
linkComponent: e.builderLinkComponent
|
|
1859
2101
|
}
|
|
1860
2102
|
)
|
|
1861
2103
|
},
|
|
1862
|
-
|
|
2104
|
+
r
|
|
1863
2105
|
))
|
|
1864
2106
|
}
|
|
1865
2107
|
),
|
|
1866
2108
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1867
|
-
|
|
2109
|
+
D,
|
|
1868
2110
|
{
|
|
1869
2111
|
parent: e.builderBlock.id,
|
|
1870
2112
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -1876,7 +2118,7 @@ function zt(e) {
|
|
|
1876
2118
|
) }) : null
|
|
1877
2119
|
] });
|
|
1878
2120
|
}
|
|
1879
|
-
const
|
|
2121
|
+
const Xt = {
|
|
1880
2122
|
name: "Text",
|
|
1881
2123
|
static: !0,
|
|
1882
2124
|
isRSC: !0,
|
|
@@ -1895,7 +2137,7 @@ const Jt = {
|
|
|
1895
2137
|
textAlign: "center"
|
|
1896
2138
|
}
|
|
1897
2139
|
};
|
|
1898
|
-
function
|
|
2140
|
+
function Zt(e) {
|
|
1899
2141
|
var t;
|
|
1900
2142
|
return /* @__PURE__ */ s(
|
|
1901
2143
|
"div",
|
|
@@ -1908,7 +2150,7 @@ function Yt(e) {
|
|
|
1908
2150
|
}
|
|
1909
2151
|
);
|
|
1910
2152
|
}
|
|
1911
|
-
const
|
|
2153
|
+
const en = {
|
|
1912
2154
|
name: "Custom Code",
|
|
1913
2155
|
static: !0,
|
|
1914
2156
|
requiredPermissions: ["editCode"],
|
|
@@ -1931,32 +2173,32 @@ const Gt = {
|
|
|
1931
2173
|
advanced: !0
|
|
1932
2174
|
}]
|
|
1933
2175
|
};
|
|
1934
|
-
function
|
|
2176
|
+
function tn(e) {
|
|
1935
2177
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
1936
|
-
return
|
|
1937
|
-
var
|
|
1938
|
-
if (!((
|
|
2178
|
+
return B(() => {
|
|
2179
|
+
var r;
|
|
2180
|
+
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
1939
2181
|
return;
|
|
1940
|
-
const
|
|
1941
|
-
for (let c = 0; c <
|
|
1942
|
-
const
|
|
1943
|
-
if (
|
|
1944
|
-
if (n.includes(
|
|
2182
|
+
const a = t.current.getElementsByTagName("script");
|
|
2183
|
+
for (let c = 0; c < a.length; c++) {
|
|
2184
|
+
const u = a[c];
|
|
2185
|
+
if (u.src) {
|
|
2186
|
+
if (n.includes(u.src))
|
|
1945
2187
|
continue;
|
|
1946
|
-
n.push(
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
} else if (!
|
|
2188
|
+
n.push(u.src);
|
|
2189
|
+
const f = document.createElement("script");
|
|
2190
|
+
f.async = !0, f.src = u.src, document.head.appendChild(f);
|
|
2191
|
+
} else if (!u.type || [
|
|
1950
2192
|
"text/javascript",
|
|
1951
2193
|
"application/javascript",
|
|
1952
2194
|
"application/ecmascript"
|
|
1953
|
-
].includes(
|
|
1954
|
-
if (o.includes(
|
|
2195
|
+
].includes(u.type)) {
|
|
2196
|
+
if (o.includes(u.innerText))
|
|
1955
2197
|
continue;
|
|
1956
2198
|
try {
|
|
1957
|
-
o.push(
|
|
1958
|
-
} catch (
|
|
1959
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2199
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
2200
|
+
} catch (f) {
|
|
2201
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
1960
2202
|
}
|
|
1961
2203
|
}
|
|
1962
2204
|
}
|
|
@@ -1969,7 +2211,7 @@ function Qt(e) {
|
|
|
1969
2211
|
}
|
|
1970
2212
|
);
|
|
1971
2213
|
}
|
|
1972
|
-
const
|
|
2214
|
+
const nn = {
|
|
1973
2215
|
name: "Embed",
|
|
1974
2216
|
static: !0,
|
|
1975
2217
|
inputs: [{
|
|
@@ -1994,30 +2236,30 @@ const Xt = {
|
|
|
1994
2236
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1995
2237
|
hideFromUI: !0
|
|
1996
2238
|
}]
|
|
1997
|
-
},
|
|
1998
|
-
function
|
|
1999
|
-
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [
|
|
2239
|
+
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2240
|
+
function rn(e) {
|
|
2241
|
+
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2000
2242
|
function c() {
|
|
2001
2243
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2002
2244
|
return;
|
|
2003
|
-
const
|
|
2004
|
-
for (let
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2007
|
-
n.push(
|
|
2008
|
-
const
|
|
2009
|
-
|
|
2010
|
-
} else if (
|
|
2245
|
+
const u = t.current.getElementsByTagName("script");
|
|
2246
|
+
for (let f = 0; f < u.length; f++) {
|
|
2247
|
+
const d = u[f];
|
|
2248
|
+
if (d.src && !n.includes(d.src)) {
|
|
2249
|
+
n.push(d.src);
|
|
2250
|
+
const m = document.createElement("script");
|
|
2251
|
+
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2252
|
+
} else if (an(d) && !o.includes(d.innerText))
|
|
2011
2253
|
try {
|
|
2012
|
-
o.push(
|
|
2013
|
-
} catch (
|
|
2014
|
-
console.warn("`Embed`: Error running script:",
|
|
2254
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
2255
|
+
} catch (m) {
|
|
2256
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2015
2257
|
}
|
|
2016
2258
|
}
|
|
2017
2259
|
}
|
|
2018
|
-
return
|
|
2019
|
-
t.current && !
|
|
2020
|
-
}, [t.current,
|
|
2260
|
+
return B(() => {
|
|
2261
|
+
t.current && !a && (r(!0), c());
|
|
2262
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2021
2263
|
"div",
|
|
2022
2264
|
{
|
|
2023
2265
|
className: "builder-embed",
|
|
@@ -2026,7 +2268,7 @@ function tn(e) {
|
|
|
2026
2268
|
}
|
|
2027
2269
|
);
|
|
2028
2270
|
}
|
|
2029
|
-
const
|
|
2271
|
+
const ln = {
|
|
2030
2272
|
name: "Form:Form",
|
|
2031
2273
|
// editableTags: ['builder-form-error']
|
|
2032
2274
|
defaults: {
|
|
@@ -2257,125 +2499,123 @@ const nn = {
|
|
|
2257
2499
|
}
|
|
2258
2500
|
}
|
|
2259
2501
|
}]
|
|
2260
|
-
},
|
|
2502
|
+
}, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
|
|
2261
2503
|
const e = process.env.NODE_ENV || "production";
|
|
2262
|
-
return
|
|
2263
|
-
},
|
|
2504
|
+
return sn.includes(e) ? e : "production";
|
|
2505
|
+
}, dn = (e, t, n) => {
|
|
2264
2506
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2265
2507
|
return i === void 0 || i === e ? n : i;
|
|
2266
2508
|
};
|
|
2267
|
-
function
|
|
2268
|
-
var
|
|
2269
|
-
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [
|
|
2270
|
-
function c(
|
|
2271
|
-
var I,
|
|
2272
|
-
const
|
|
2509
|
+
function un(e) {
|
|
2510
|
+
var d, m;
|
|
2511
|
+
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2512
|
+
function c(g) {
|
|
2513
|
+
var I, x;
|
|
2514
|
+
const p = {
|
|
2273
2515
|
...e.builderContext.rootState,
|
|
2274
|
-
...
|
|
2516
|
+
...g
|
|
2275
2517
|
};
|
|
2276
|
-
e.builderContext.rootSetState ? (
|
|
2518
|
+
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2277
2519
|
}
|
|
2278
|
-
function
|
|
2279
|
-
return
|
|
2520
|
+
function u() {
|
|
2521
|
+
return $() && e.previewState || n;
|
|
2280
2522
|
}
|
|
2281
|
-
function
|
|
2523
|
+
function f(g) {
|
|
2282
2524
|
var I;
|
|
2283
|
-
const
|
|
2525
|
+
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2284
2526
|
if (e.sendSubmissionsTo === "zapier")
|
|
2285
|
-
|
|
2286
|
-
else if (
|
|
2527
|
+
g.preventDefault();
|
|
2528
|
+
else if (p) {
|
|
2287
2529
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2288
|
-
|
|
2530
|
+
g.preventDefault();
|
|
2289
2531
|
return;
|
|
2290
2532
|
}
|
|
2291
|
-
|
|
2292
|
-
const
|
|
2293
|
-
let
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
key: b,
|
|
2304
|
-
value: f
|
|
2533
|
+
g.preventDefault();
|
|
2534
|
+
const x = g.currentTarget || g.target, R = e.customHeaders || {};
|
|
2535
|
+
let P;
|
|
2536
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2537
|
+
let h;
|
|
2538
|
+
const y = b.name;
|
|
2539
|
+
if (b instanceof HTMLInputElement)
|
|
2540
|
+
if (b.type === "radio") {
|
|
2541
|
+
if (b.checked)
|
|
2542
|
+
return h = b.name, {
|
|
2543
|
+
key: y,
|
|
2544
|
+
value: h
|
|
2305
2545
|
};
|
|
2306
|
-
} else if (
|
|
2307
|
-
|
|
2308
|
-
else if (
|
|
2309
|
-
const
|
|
2310
|
-
isNaN(
|
|
2546
|
+
} else if (b.type === "checkbox")
|
|
2547
|
+
h = b.checked;
|
|
2548
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2549
|
+
const S = b.valueAsNumber;
|
|
2550
|
+
isNaN(S) || (h = S);
|
|
2311
2551
|
} else
|
|
2312
|
-
|
|
2552
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2313
2553
|
else
|
|
2314
|
-
|
|
2554
|
+
h = b.value;
|
|
2315
2555
|
return {
|
|
2316
|
-
key:
|
|
2317
|
-
value:
|
|
2556
|
+
key: y,
|
|
2557
|
+
value: h
|
|
2318
2558
|
};
|
|
2319
2559
|
});
|
|
2320
|
-
let
|
|
2321
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2322
|
-
(
|
|
2323
|
-
}),
|
|
2324
|
-
|
|
2560
|
+
let v = e.contentType;
|
|
2561
|
+
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2562
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
|
|
2563
|
+
}), v !== "application/json")
|
|
2564
|
+
P = A;
|
|
2325
2565
|
else {
|
|
2326
|
-
const
|
|
2327
|
-
Array.from(
|
|
2328
|
-
|
|
2329
|
-
}),
|
|
2566
|
+
const b = {};
|
|
2567
|
+
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2568
|
+
Re(b, y, h);
|
|
2569
|
+
}), P = JSON.stringify(b);
|
|
2330
2570
|
}
|
|
2331
|
-
|
|
2332
|
-
const
|
|
2333
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2571
|
+
v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
|
|
2572
|
+
const w = new CustomEvent("presubmit", { detail: { body: P } });
|
|
2573
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2334
2574
|
return;
|
|
2335
2575
|
i("sending");
|
|
2336
|
-
const
|
|
2576
|
+
const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2337
2577
|
e.sendSubmissionsToEmail || ""
|
|
2338
2578
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2339
2579
|
fetch(
|
|
2340
|
-
e.sendSubmissionsTo === "email" ?
|
|
2341
|
-
{ body:
|
|
2580
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2581
|
+
{ body: P, headers: R, method: e.method || "post" }
|
|
2342
2582
|
).then(
|
|
2343
|
-
async (
|
|
2344
|
-
let
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2347
|
-
let
|
|
2348
|
-
|
|
2583
|
+
async (b) => {
|
|
2584
|
+
let h;
|
|
2585
|
+
const y = b.headers.get("content-type");
|
|
2586
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2587
|
+
let S = dn(h, e.errorMessagePath);
|
|
2588
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
|
|
2349
2589
|
}
|
|
2350
|
-
if (l(
|
|
2351
|
-
const
|
|
2352
|
-
detail: { res:
|
|
2590
|
+
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2591
|
+
const S = new CustomEvent("submit:success", {
|
|
2592
|
+
detail: { res: b, body: h }
|
|
2353
2593
|
});
|
|
2354
2594
|
if (t.current) {
|
|
2355
|
-
if (t.current.dispatchEvent(
|
|
2595
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2356
2596
|
return;
|
|
2357
2597
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2358
2598
|
}
|
|
2359
2599
|
if (e.successUrl)
|
|
2360
2600
|
if (t.current) {
|
|
2361
|
-
const
|
|
2601
|
+
const k = new CustomEvent("route", {
|
|
2362
2602
|
detail: { url: e.successUrl }
|
|
2363
2603
|
});
|
|
2364
|
-
t.current.dispatchEvent(
|
|
2604
|
+
t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
|
|
2365
2605
|
} else
|
|
2366
2606
|
location.href = e.successUrl;
|
|
2367
2607
|
}
|
|
2368
2608
|
},
|
|
2369
|
-
(
|
|
2370
|
-
const
|
|
2371
|
-
detail: { error:
|
|
2609
|
+
(b) => {
|
|
2610
|
+
const h = new CustomEvent("submit:error", {
|
|
2611
|
+
detail: { error: b }
|
|
2372
2612
|
});
|
|
2373
|
-
t.current && (t.current.dispatchEvent(
|
|
2613
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
|
|
2374
2614
|
}
|
|
2375
2615
|
);
|
|
2376
2616
|
}
|
|
2377
2617
|
}
|
|
2378
|
-
return /* @__PURE__ */ V(
|
|
2618
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
2379
2619
|
" ",
|
|
2380
2620
|
/* @__PURE__ */ V(
|
|
2381
2621
|
"form",
|
|
@@ -2385,38 +2625,38 @@ function ln(e) {
|
|
|
2385
2625
|
action: !e.sendWithJs && e.action,
|
|
2386
2626
|
method: e.method,
|
|
2387
2627
|
name: e.name,
|
|
2388
|
-
onSubmit: (
|
|
2628
|
+
onSubmit: (g) => f(g),
|
|
2389
2629
|
...e.attributes,
|
|
2390
2630
|
children: [
|
|
2391
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2631
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2392
2632
|
_,
|
|
2393
2633
|
{
|
|
2394
|
-
block:
|
|
2634
|
+
block: g,
|
|
2395
2635
|
context: e.builderContext,
|
|
2396
2636
|
registeredComponents: e.builderComponents,
|
|
2397
2637
|
linkComponent: e.builderLinkComponent
|
|
2398
2638
|
},
|
|
2399
|
-
`form-block-${
|
|
2639
|
+
`form-block-${p}`
|
|
2400
2640
|
)) }) : null,
|
|
2401
|
-
|
|
2402
|
-
|
|
2641
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
2642
|
+
D,
|
|
2403
2643
|
{
|
|
2404
2644
|
path: "errorMessage",
|
|
2405
2645
|
blocks: e.errorMessage,
|
|
2406
2646
|
context: e.builderContext
|
|
2407
2647
|
}
|
|
2408
2648
|
) : null,
|
|
2409
|
-
|
|
2410
|
-
|
|
2649
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
2650
|
+
D,
|
|
2411
2651
|
{
|
|
2412
2652
|
path: "sendingMessage",
|
|
2413
2653
|
blocks: e.sendingMessage,
|
|
2414
2654
|
context: e.builderContext
|
|
2415
2655
|
}
|
|
2416
2656
|
) : null,
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2657
|
+
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2658
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
2659
|
+
D,
|
|
2420
2660
|
{
|
|
2421
2661
|
path: "successMessage",
|
|
2422
2662
|
blocks: e.successMessage,
|
|
@@ -2427,11 +2667,11 @@ function ln(e) {
|
|
|
2427
2667
|
}
|
|
2428
2668
|
),
|
|
2429
2669
|
" ",
|
|
2430
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
2670
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2431
2671
|
" "
|
|
2432
2672
|
] });
|
|
2433
2673
|
}
|
|
2434
|
-
const
|
|
2674
|
+
const mn = {
|
|
2435
2675
|
name: "Form:Input",
|
|
2436
2676
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2437
2677
|
inputs: [
|
|
@@ -2483,12 +2723,12 @@ const sn = {
|
|
|
2483
2723
|
borderColor: "#ccc"
|
|
2484
2724
|
}
|
|
2485
2725
|
};
|
|
2486
|
-
function
|
|
2487
|
-
return /* @__PURE__ */
|
|
2726
|
+
function fn(e) {
|
|
2727
|
+
return /* @__PURE__ */ Ee(
|
|
2488
2728
|
"input",
|
|
2489
2729
|
{
|
|
2490
2730
|
...e.attributes,
|
|
2491
|
-
key:
|
|
2731
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2492
2732
|
placeholder: e.placeholder,
|
|
2493
2733
|
type: e.type,
|
|
2494
2734
|
name: e.name,
|
|
@@ -2498,7 +2738,7 @@ function cn(e) {
|
|
|
2498
2738
|
}
|
|
2499
2739
|
);
|
|
2500
2740
|
}
|
|
2501
|
-
const
|
|
2741
|
+
const hn = {
|
|
2502
2742
|
name: "Form:Select",
|
|
2503
2743
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2504
2744
|
defaultStyles: {
|
|
@@ -2541,21 +2781,21 @@ const dn = {
|
|
|
2541
2781
|
static: !0,
|
|
2542
2782
|
noWrap: !0
|
|
2543
2783
|
};
|
|
2544
|
-
function
|
|
2784
|
+
function gn(e) {
|
|
2545
2785
|
var t;
|
|
2546
|
-
return /* @__PURE__ */
|
|
2786
|
+
return /* @__PURE__ */ Ee(
|
|
2547
2787
|
"select",
|
|
2548
2788
|
{
|
|
2549
2789
|
...e.attributes,
|
|
2550
2790
|
value: e.value,
|
|
2551
|
-
key:
|
|
2791
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2552
2792
|
defaultValue: e.defaultValue,
|
|
2553
2793
|
name: e.name
|
|
2554
2794
|
},
|
|
2555
2795
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2556
2796
|
);
|
|
2557
2797
|
}
|
|
2558
|
-
const
|
|
2798
|
+
const bn = {
|
|
2559
2799
|
name: "Form:SubmitButton",
|
|
2560
2800
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2561
2801
|
defaultStyles: {
|
|
@@ -2581,10 +2821,10 @@ const mn = {
|
|
|
2581
2821
|
// TODO: defaultChildren
|
|
2582
2822
|
// canHaveChildren: true,
|
|
2583
2823
|
};
|
|
2584
|
-
function
|
|
2824
|
+
function pn(e) {
|
|
2585
2825
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2586
2826
|
}
|
|
2587
|
-
const
|
|
2827
|
+
const yn = {
|
|
2588
2828
|
// friendlyName?
|
|
2589
2829
|
name: "Raw:Img",
|
|
2590
2830
|
hideFromInsertMenu: !0,
|
|
@@ -2599,7 +2839,7 @@ const hn = {
|
|
|
2599
2839
|
noWrap: !0,
|
|
2600
2840
|
static: !0
|
|
2601
2841
|
};
|
|
2602
|
-
function
|
|
2842
|
+
function xn(e) {
|
|
2603
2843
|
return /* @__PURE__ */ s(
|
|
2604
2844
|
"img",
|
|
2605
2845
|
{
|
|
@@ -2611,10 +2851,10 @@ function gn(e) {
|
|
|
2611
2851
|
src: e.imgSrc || e.image,
|
|
2612
2852
|
...e.attributes
|
|
2613
2853
|
},
|
|
2614
|
-
|
|
2854
|
+
$() && e.imgSrc || "default-key"
|
|
2615
2855
|
);
|
|
2616
2856
|
}
|
|
2617
|
-
const
|
|
2857
|
+
const Sn = {
|
|
2618
2858
|
name: "Video",
|
|
2619
2859
|
canHaveChildren: !0,
|
|
2620
2860
|
defaultStyles: {
|
|
@@ -2696,8 +2936,8 @@ const bn = {
|
|
|
2696
2936
|
advanced: !0
|
|
2697
2937
|
}]
|
|
2698
2938
|
};
|
|
2699
|
-
function
|
|
2700
|
-
var i, o, l,
|
|
2939
|
+
function vn(e) {
|
|
2940
|
+
var i, o, l, a, r, c, u;
|
|
2701
2941
|
function t() {
|
|
2702
2942
|
return {
|
|
2703
2943
|
...e.autoPlay === !0 ? {
|
|
@@ -2765,7 +3005,7 @@ function pn(e) {
|
|
|
2765
3005
|
}
|
|
2766
3006
|
}
|
|
2767
3007
|
) : null,
|
|
2768
|
-
(
|
|
3008
|
+
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
|
|
2769
3009
|
"div",
|
|
2770
3010
|
{
|
|
2771
3011
|
style: {
|
|
@@ -2776,7 +3016,7 @@ function pn(e) {
|
|
|
2776
3016
|
children: e.children
|
|
2777
3017
|
}
|
|
2778
3018
|
) : null,
|
|
2779
|
-
(
|
|
3019
|
+
(u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2780
3020
|
"div",
|
|
2781
3021
|
{
|
|
2782
3022
|
style: {
|
|
@@ -2797,58 +3037,61 @@ function pn(e) {
|
|
|
2797
3037
|
}
|
|
2798
3038
|
);
|
|
2799
3039
|
}
|
|
2800
|
-
const
|
|
2801
|
-
component: Qt,
|
|
2802
|
-
...Gt
|
|
2803
|
-
}, {
|
|
3040
|
+
const kn = () => [{
|
|
2804
3041
|
component: tn,
|
|
2805
|
-
...
|
|
3042
|
+
...en
|
|
2806
3043
|
}, {
|
|
2807
|
-
component:
|
|
3044
|
+
component: rn,
|
|
2808
3045
|
...nn
|
|
2809
3046
|
}, {
|
|
2810
|
-
component:
|
|
2811
|
-
...
|
|
3047
|
+
component: un,
|
|
3048
|
+
...ln
|
|
2812
3049
|
}, {
|
|
2813
3050
|
component: fn,
|
|
2814
3051
|
...mn
|
|
2815
3052
|
}, {
|
|
2816
|
-
component:
|
|
2817
|
-
...
|
|
3053
|
+
component: pn,
|
|
3054
|
+
...bn
|
|
2818
3055
|
}, {
|
|
2819
3056
|
component: gn,
|
|
2820
3057
|
...hn
|
|
2821
3058
|
}, {
|
|
2822
|
-
component:
|
|
2823
|
-
...
|
|
2824
|
-
}], ye = () => [{
|
|
2825
|
-
component: tt,
|
|
2826
|
-
...Dt
|
|
3059
|
+
component: xn,
|
|
3060
|
+
...yn
|
|
2827
3061
|
}, {
|
|
2828
|
-
component:
|
|
2829
|
-
...
|
|
3062
|
+
component: vn,
|
|
3063
|
+
...Sn
|
|
3064
|
+
}], ve = () => [{
|
|
3065
|
+
component: ot,
|
|
3066
|
+
...Mt
|
|
2830
3067
|
}, {
|
|
2831
3068
|
component: Wt,
|
|
2832
|
-
...
|
|
3069
|
+
...Ht
|
|
2833
3070
|
}, {
|
|
2834
3071
|
component: Ft,
|
|
2835
|
-
...
|
|
3072
|
+
...Kt
|
|
2836
3073
|
}, {
|
|
2837
3074
|
component: Lt,
|
|
2838
|
-
...
|
|
3075
|
+
...qt
|
|
2839
3076
|
}, {
|
|
2840
|
-
component:
|
|
2841
|
-
...
|
|
3077
|
+
component: Ot,
|
|
3078
|
+
..._t
|
|
2842
3079
|
}, {
|
|
2843
|
-
component:
|
|
2844
|
-
...
|
|
3080
|
+
component: Jt,
|
|
3081
|
+
...zt
|
|
2845
3082
|
}, {
|
|
2846
|
-
component:
|
|
2847
|
-
...
|
|
3083
|
+
component: qn,
|
|
3084
|
+
...Yt
|
|
2848
3085
|
}, {
|
|
2849
|
-
component:
|
|
2850
|
-
...
|
|
2851
|
-
},
|
|
3086
|
+
component: Zt,
|
|
3087
|
+
...Xt
|
|
3088
|
+
}, {
|
|
3089
|
+
component: Qt,
|
|
3090
|
+
...Gt
|
|
3091
|
+
}, {
|
|
3092
|
+
component: Ut,
|
|
3093
|
+
...jt
|
|
3094
|
+
}, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2852
3095
|
function getAndSetVariantId() {
|
|
2853
3096
|
function setCookie(name, value, days) {
|
|
2854
3097
|
let expires = '';
|
|
@@ -2904,7 +3147,7 @@ const yn = () => [{
|
|
|
2904
3147
|
}).join('');
|
|
2905
3148
|
styleEl.innerHTML = newStyleStr;
|
|
2906
3149
|
}
|
|
2907
|
-
}`,
|
|
3150
|
+
}`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2908
3151
|
if (!navigator.cookieEnabled) {
|
|
2909
3152
|
return;
|
|
2910
3153
|
}
|
|
@@ -2938,26 +3181,26 @@ const yn = () => [{
|
|
|
2938
3181
|
thisScriptEl?.remove();
|
|
2939
3182
|
}
|
|
2940
3183
|
return;
|
|
2941
|
-
}`,
|
|
3184
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2942
3185
|
...t,
|
|
2943
3186
|
testVariationId: t.id,
|
|
2944
3187
|
id: e == null ? void 0 : e.id
|
|
2945
|
-
})),
|
|
3188
|
+
})), In = ({
|
|
2946
3189
|
canTrack: e,
|
|
2947
3190
|
content: t
|
|
2948
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
2949
|
-
window.${
|
|
2950
|
-
window.${
|
|
2951
|
-
`,
|
|
2952
|
-
window.${
|
|
2953
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2954
|
-
)`,
|
|
3191
|
+
}) => !(!(J(t).length > 0) || !e || G()), wn = (e) => e === "react" || e === "reactNative", Ue = wn(q), En = () => `
|
|
3192
|
+
window.${Oe} = ${Cn}
|
|
3193
|
+
window.${je} = ${Tn}
|
|
3194
|
+
`, Rn = (e, t) => `
|
|
3195
|
+
window.${Oe}(
|
|
3196
|
+
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3197
|
+
)`, Vn = ({
|
|
2955
3198
|
contentId: e,
|
|
2956
3199
|
variationId: t
|
|
2957
|
-
}) => `window.${
|
|
2958
|
-
"${t}", "${e}", ${
|
|
3200
|
+
}) => `window.${je}(
|
|
3201
|
+
"${t}", "${e}", ${Ue}
|
|
2959
3202
|
)`;
|
|
2960
|
-
function
|
|
3203
|
+
function ce(e) {
|
|
2961
3204
|
return /* @__PURE__ */ s(
|
|
2962
3205
|
"script",
|
|
2963
3206
|
{
|
|
@@ -2966,10 +3209,10 @@ function re(e) {
|
|
|
2966
3209
|
}
|
|
2967
3210
|
);
|
|
2968
3211
|
}
|
|
2969
|
-
function
|
|
3212
|
+
function ke(e) {
|
|
2970
3213
|
return Math.round(e * 1e3) / 1e3;
|
|
2971
3214
|
}
|
|
2972
|
-
const
|
|
3215
|
+
const Pn = (e, t, n = !0) => {
|
|
2973
3216
|
if (!(e instanceof HTMLElement))
|
|
2974
3217
|
return null;
|
|
2975
3218
|
let i = n ? e : e.parentElement;
|
|
@@ -2980,37 +3223,37 @@ const In = (e, t, n = !0) => {
|
|
|
2980
3223
|
return i;
|
|
2981
3224
|
} while (i = i.parentElement);
|
|
2982
3225
|
return null;
|
|
2983
|
-
},
|
|
3226
|
+
}, Bn = (e) => Pn(e, (t) => {
|
|
2984
3227
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2985
3228
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2986
|
-
}),
|
|
3229
|
+
}), Ce = ({
|
|
2987
3230
|
event: e,
|
|
2988
3231
|
target: t
|
|
2989
3232
|
}) => {
|
|
2990
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3233
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
|
|
2991
3234
|
return {
|
|
2992
3235
|
x: l,
|
|
2993
|
-
y:
|
|
3236
|
+
y: a
|
|
2994
3237
|
};
|
|
2995
|
-
},
|
|
2996
|
-
const t = e.target, n = t &&
|
|
3238
|
+
}, An = (e) => {
|
|
3239
|
+
const t = e.target, n = t && Bn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2997
3240
|
return {
|
|
2998
3241
|
targetBuilderElement: i || void 0,
|
|
2999
3242
|
metadata: {
|
|
3000
|
-
targetOffset: t ?
|
|
3243
|
+
targetOffset: t ? Ce({
|
|
3001
3244
|
event: e,
|
|
3002
3245
|
target: t
|
|
3003
3246
|
}) : void 0,
|
|
3004
|
-
builderTargetOffset: n ?
|
|
3247
|
+
builderTargetOffset: n ? Ce({
|
|
3005
3248
|
event: e,
|
|
3006
3249
|
target: n
|
|
3007
3250
|
}) : void 0,
|
|
3008
3251
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3009
3252
|
}
|
|
3010
3253
|
};
|
|
3011
|
-
},
|
|
3012
|
-
var l,
|
|
3013
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3254
|
+
}, Nn = (e) => {
|
|
3255
|
+
var l, a;
|
|
3256
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
3014
3257
|
let o = "";
|
|
3015
3258
|
if (i && t && n && (o += `
|
|
3016
3259
|
@font-face {
|
|
@@ -3020,29 +3263,29 @@ font-display: fallback;
|
|
|
3020
3263
|
font-weight: 400;
|
|
3021
3264
|
}
|
|
3022
3265
|
`.trim()), e.files)
|
|
3023
|
-
for (const
|
|
3024
|
-
if (!(String(Number(
|
|
3266
|
+
for (const r in e.files) {
|
|
3267
|
+
if (!(String(Number(r)) === r))
|
|
3025
3268
|
continue;
|
|
3026
|
-
const
|
|
3027
|
-
|
|
3269
|
+
const u = e.files[r];
|
|
3270
|
+
u && u !== i && (o += `
|
|
3028
3271
|
@font-face {
|
|
3029
3272
|
font-family: "${t}";
|
|
3030
|
-
src: url('${
|
|
3273
|
+
src: url('${u}') format('woff2');
|
|
3031
3274
|
font-display: fallback;
|
|
3032
|
-
font-weight: ${
|
|
3275
|
+
font-weight: ${r};
|
|
3033
3276
|
}
|
|
3034
3277
|
`.trim());
|
|
3035
3278
|
}
|
|
3036
3279
|
return o;
|
|
3037
|
-
},
|
|
3280
|
+
}, Wn = ({
|
|
3038
3281
|
customFonts: e
|
|
3039
3282
|
}) => {
|
|
3040
3283
|
var t;
|
|
3041
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3042
|
-
},
|
|
3284
|
+
return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3285
|
+
}, Fn = ({
|
|
3043
3286
|
cssCode: e,
|
|
3044
3287
|
contentId: t
|
|
3045
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3288
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
|
|
3046
3289
|
.builder-button {
|
|
3047
3290
|
all: unset;
|
|
3048
3291
|
}
|
|
@@ -3059,39 +3302,39 @@ font-weight: ${a};
|
|
|
3059
3302
|
text-align: inherit;
|
|
3060
3303
|
font-family: inherit;
|
|
3061
3304
|
}
|
|
3062
|
-
`,
|
|
3063
|
-
function
|
|
3064
|
-
var
|
|
3305
|
+
`, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
|
|
3306
|
+
function On(e) {
|
|
3307
|
+
var P, A, O, v, w, W, b;
|
|
3065
3308
|
const t = ee(null);
|
|
3066
|
-
function n(
|
|
3067
|
-
var
|
|
3068
|
-
const
|
|
3309
|
+
function n(h) {
|
|
3310
|
+
var S, k;
|
|
3311
|
+
const y = {
|
|
3069
3312
|
...e.builderContextSignal.rootState,
|
|
3070
|
-
...
|
|
3313
|
+
...h
|
|
3071
3314
|
};
|
|
3072
|
-
e.builderContextSignal.rootSetState ? (
|
|
3073
|
-
...
|
|
3074
|
-
rootState:
|
|
3315
|
+
e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
|
|
3316
|
+
...T,
|
|
3317
|
+
rootState: y
|
|
3075
3318
|
}));
|
|
3076
3319
|
}
|
|
3077
|
-
function i(
|
|
3078
|
-
var
|
|
3079
|
-
const
|
|
3320
|
+
function i(h) {
|
|
3321
|
+
var S, k, T, N, j;
|
|
3322
|
+
const y = {
|
|
3080
3323
|
...e.builderContextSignal.content,
|
|
3081
|
-
...
|
|
3324
|
+
...h,
|
|
3082
3325
|
data: {
|
|
3083
|
-
...(
|
|
3084
|
-
...
|
|
3326
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3327
|
+
...h == null ? void 0 : h.data
|
|
3085
3328
|
},
|
|
3086
3329
|
meta: {
|
|
3087
|
-
...(
|
|
3088
|
-
...
|
|
3089
|
-
breakpoints: ((
|
|
3330
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3331
|
+
...h == null ? void 0 : h.meta,
|
|
3332
|
+
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)
|
|
3090
3333
|
}
|
|
3091
3334
|
};
|
|
3092
|
-
e.setBuilderContextSignal((
|
|
3093
|
-
|
|
3094
|
-
content:
|
|
3335
|
+
e.setBuilderContextSignal((F) => ({
|
|
3336
|
+
...F,
|
|
3337
|
+
content: y
|
|
3095
3338
|
}));
|
|
3096
3339
|
}
|
|
3097
3340
|
function o() {
|
|
@@ -3100,37 +3343,37 @@ function $n(e) {
|
|
|
3100
3343
|
"aria-hidden": !0
|
|
3101
3344
|
};
|
|
3102
3345
|
}
|
|
3103
|
-
const [l,
|
|
3346
|
+
const [l, a] = C(
|
|
3104
3347
|
() => e.contentWrapper || "div"
|
|
3105
3348
|
);
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3349
|
+
function r(h) {
|
|
3350
|
+
return Ye({
|
|
3108
3351
|
model: e.model,
|
|
3109
3352
|
trustedHosts: e.trustedHosts,
|
|
3110
3353
|
callbacks: {
|
|
3111
|
-
configureSdk: (
|
|
3112
|
-
var
|
|
3113
|
-
const { breakpoints:
|
|
3114
|
-
!
|
|
3354
|
+
configureSdk: (y) => {
|
|
3355
|
+
var T;
|
|
3356
|
+
const { breakpoints: S, contentId: k } = y;
|
|
3357
|
+
!k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
|
|
3115
3358
|
meta: {
|
|
3116
|
-
breakpoints:
|
|
3359
|
+
breakpoints: S
|
|
3117
3360
|
}
|
|
3118
3361
|
});
|
|
3119
3362
|
},
|
|
3120
|
-
animation: (
|
|
3121
|
-
|
|
3363
|
+
animation: (y) => {
|
|
3364
|
+
Ne(y);
|
|
3122
3365
|
},
|
|
3123
|
-
contentUpdate: (
|
|
3124
|
-
i(
|
|
3366
|
+
contentUpdate: (y) => {
|
|
3367
|
+
i(y);
|
|
3125
3368
|
}
|
|
3126
3369
|
}
|
|
3127
|
-
})(
|
|
3370
|
+
})(h);
|
|
3128
3371
|
}
|
|
3129
3372
|
function c() {
|
|
3130
|
-
var
|
|
3131
|
-
const
|
|
3132
|
-
|
|
3133
|
-
code:
|
|
3373
|
+
var y, S;
|
|
3374
|
+
const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
|
|
3375
|
+
h && K({
|
|
3376
|
+
code: h,
|
|
3134
3377
|
context: e.context || {},
|
|
3135
3378
|
localState: void 0,
|
|
3136
3379
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3141,35 +3384,35 @@ function $n(e) {
|
|
|
3141
3384
|
enableCache: !1
|
|
3142
3385
|
});
|
|
3143
3386
|
}
|
|
3144
|
-
const [
|
|
3145
|
-
function I(
|
|
3146
|
-
var
|
|
3387
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3388
|
+
function I(h) {
|
|
3389
|
+
var y, S;
|
|
3147
3390
|
if (e.builderContextSignal.content) {
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3391
|
+
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3392
|
+
he({
|
|
3150
3393
|
type: "click",
|
|
3151
3394
|
canTrack: Q(e.canTrack),
|
|
3152
|
-
contentId:
|
|
3395
|
+
contentId: T,
|
|
3153
3396
|
apiKey: e.apiKey,
|
|
3154
|
-
variationId:
|
|
3155
|
-
...
|
|
3156
|
-
unique: !
|
|
3397
|
+
variationId: k !== T ? k : void 0,
|
|
3398
|
+
...An(h),
|
|
3399
|
+
unique: !g
|
|
3157
3400
|
});
|
|
3158
3401
|
}
|
|
3159
|
-
|
|
3402
|
+
g || p(!0);
|
|
3160
3403
|
}
|
|
3161
|
-
function
|
|
3162
|
-
var
|
|
3163
|
-
const
|
|
3164
|
-
Object.entries(
|
|
3165
|
-
if (!
|
|
3404
|
+
function x() {
|
|
3405
|
+
var y, S, k;
|
|
3406
|
+
const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3407
|
+
Object.entries(h).forEach(([T, N]) => {
|
|
3408
|
+
if (!N || d[T] || u[T] && !$())
|
|
3166
3409
|
return;
|
|
3167
|
-
|
|
3168
|
-
const
|
|
3410
|
+
d[T] = !0;
|
|
3411
|
+
const j = N.replace(
|
|
3169
3412
|
/{{([^}]+)}}/g,
|
|
3170
|
-
(
|
|
3413
|
+
(F, Me) => String(
|
|
3171
3414
|
K({
|
|
3172
|
-
code:
|
|
3415
|
+
code: Me,
|
|
3173
3416
|
context: e.context || {},
|
|
3174
3417
|
localState: void 0,
|
|
3175
3418
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3178,24 +3421,24 @@ function $n(e) {
|
|
|
3178
3421
|
})
|
|
3179
3422
|
)
|
|
3180
3423
|
);
|
|
3181
|
-
|
|
3424
|
+
Ge(j).then((F) => F.json()).then((F) => {
|
|
3182
3425
|
n({
|
|
3183
|
-
[
|
|
3184
|
-
}),
|
|
3185
|
-
}).catch((
|
|
3186
|
-
console.error("error fetching dynamic data",
|
|
3426
|
+
[T]: F
|
|
3427
|
+
}), u[T] = !0;
|
|
3428
|
+
}).catch((F) => {
|
|
3429
|
+
console.error("error fetching dynamic data", N, F);
|
|
3187
3430
|
}).finally(() => {
|
|
3188
|
-
|
|
3431
|
+
d[T] = !1;
|
|
3189
3432
|
});
|
|
3190
3433
|
});
|
|
3191
3434
|
}
|
|
3192
3435
|
function R() {
|
|
3193
|
-
|
|
3436
|
+
$() && window.dispatchEvent(
|
|
3194
3437
|
new CustomEvent(
|
|
3195
3438
|
"builder:component:stateChange",
|
|
3196
3439
|
{
|
|
3197
3440
|
detail: {
|
|
3198
|
-
state:
|
|
3441
|
+
state: de(e.builderContextSignal.rootState),
|
|
3199
3442
|
ref: {
|
|
3200
3443
|
name: e.model
|
|
3201
3444
|
}
|
|
@@ -3204,10 +3447,10 @@ function $n(e) {
|
|
|
3204
3447
|
)
|
|
3205
3448
|
);
|
|
3206
3449
|
}
|
|
3207
|
-
return
|
|
3208
|
-
var
|
|
3450
|
+
return B(() => {
|
|
3451
|
+
var h, y;
|
|
3209
3452
|
if (G()) {
|
|
3210
|
-
if (
|
|
3453
|
+
if ($() && (window.addEventListener("message", r), qe(), _e({
|
|
3211
3454
|
...e.locale ? {
|
|
3212
3455
|
locale: e.locale
|
|
3213
3456
|
} : {},
|
|
@@ -3219,98 +3462,98 @@ function $n(e) {
|
|
|
3219
3462
|
} : {}
|
|
3220
3463
|
}), Object.values(
|
|
3221
3464
|
e.builderContextSignal.componentInfos
|
|
3222
|
-
).forEach((
|
|
3223
|
-
var
|
|
3224
|
-
const
|
|
3225
|
-
(
|
|
3465
|
+
).forEach((k) => {
|
|
3466
|
+
var N;
|
|
3467
|
+
const T = ze(k);
|
|
3468
|
+
(N = window.parent) == null || N.postMessage(T, "*");
|
|
3226
3469
|
}), window.addEventListener(
|
|
3227
3470
|
"builder:component:stateChangeListenerActivated",
|
|
3228
3471
|
R
|
|
3229
3472
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3473
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
|
|
3474
|
+
he({
|
|
3232
3475
|
type: "impression",
|
|
3233
3476
|
canTrack: !0,
|
|
3234
|
-
contentId:
|
|
3235
|
-
apiKey:
|
|
3236
|
-
variationId:
|
|
3477
|
+
contentId: T,
|
|
3478
|
+
apiKey: N,
|
|
3479
|
+
variationId: k !== T ? k : void 0
|
|
3237
3480
|
});
|
|
3238
3481
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
const
|
|
3241
|
-
`builder.
|
|
3242
|
-
),
|
|
3243
|
-
|
|
3482
|
+
if (Je() && !$()) {
|
|
3483
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3484
|
+
`builder.overrides.${T}`
|
|
3485
|
+
), j = k.get("apiKey") || k.get("builder.space");
|
|
3486
|
+
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Ie({
|
|
3244
3487
|
model: e.model,
|
|
3245
3488
|
apiKey: e.apiKey,
|
|
3246
3489
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3247
|
-
}).then((
|
|
3248
|
-
|
|
3490
|
+
}).then((F) => {
|
|
3491
|
+
F && i(F);
|
|
3249
3492
|
});
|
|
3250
3493
|
}
|
|
3251
3494
|
}
|
|
3252
|
-
}, []),
|
|
3495
|
+
}, []), B(() => {
|
|
3253
3496
|
e.apiKey || Z.error(
|
|
3254
|
-
"No API key provided to `
|
|
3255
|
-
), c(),
|
|
3256
|
-
}, []),
|
|
3497
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3498
|
+
), c(), x(), R();
|
|
3499
|
+
}, []), B(() => {
|
|
3257
3500
|
e.content && i(e.content);
|
|
3258
|
-
}, [e.content]),
|
|
3501
|
+
}, [e.content]), B(() => {
|
|
3259
3502
|
c();
|
|
3260
|
-
}, [(
|
|
3261
|
-
|
|
3262
|
-
}, [(
|
|
3503
|
+
}, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3504
|
+
x();
|
|
3505
|
+
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
|
|
3263
3506
|
R();
|
|
3264
|
-
}, [e.builderContextSignal.rootState]),
|
|
3507
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3265
3508
|
e.data && n(e.data);
|
|
3266
|
-
}, [e.data]),
|
|
3509
|
+
}, [e.data]), B(() => {
|
|
3267
3510
|
e.locale && n({
|
|
3268
3511
|
locale: e.locale
|
|
3269
3512
|
});
|
|
3270
|
-
}, [e.locale]),
|
|
3271
|
-
G() && (window.removeEventListener("message",
|
|
3513
|
+
}, [e.locale]), B(() => () => {
|
|
3514
|
+
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3272
3515
|
"builder:component:stateChangeListenerActivated",
|
|
3273
3516
|
R
|
|
3274
3517
|
));
|
|
3275
|
-
}, []), /* @__PURE__ */ s(
|
|
3518
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3276
3519
|
l,
|
|
3277
3520
|
{
|
|
3278
3521
|
ref: t,
|
|
3279
|
-
onClick: (
|
|
3280
|
-
"builder-content-id": (
|
|
3522
|
+
onClick: (h) => I(h),
|
|
3523
|
+
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3281
3524
|
"builder-model": e.model,
|
|
3282
3525
|
...o(),
|
|
3283
3526
|
...e.contentWrapperProps,
|
|
3284
|
-
className:
|
|
3285
|
-
((
|
|
3527
|
+
className: Ln(
|
|
3528
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3286
3529
|
),
|
|
3287
3530
|
children: e.children
|
|
3288
3531
|
}
|
|
3289
3532
|
) : null });
|
|
3290
3533
|
}
|
|
3291
|
-
function
|
|
3534
|
+
function jn(e) {
|
|
3292
3535
|
const [t, n] = C(
|
|
3293
3536
|
() => `
|
|
3294
|
-
${
|
|
3537
|
+
${Fn({
|
|
3295
3538
|
cssCode: e.cssCode,
|
|
3296
3539
|
contentId: e.contentId
|
|
3297
3540
|
})}
|
|
3298
|
-
${
|
|
3541
|
+
${Wn({
|
|
3299
3542
|
customFonts: e.customFonts
|
|
3300
3543
|
})}
|
|
3301
|
-
${
|
|
3544
|
+
${Dn(e.isNestedRender)}
|
|
3302
3545
|
`.trim()
|
|
3303
3546
|
);
|
|
3304
|
-
return /* @__PURE__ */ s(
|
|
3547
|
+
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3305
3548
|
}
|
|
3306
|
-
const
|
|
3549
|
+
const Un = ({
|
|
3307
3550
|
content: e,
|
|
3308
3551
|
data: t,
|
|
3309
3552
|
locale: n
|
|
3310
3553
|
}) => {
|
|
3311
|
-
var l,
|
|
3554
|
+
var l, a, r;
|
|
3312
3555
|
const i = {}, o = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
3313
|
-
return (
|
|
3556
|
+
return (r = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || r.forEach((c) => {
|
|
3314
3557
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
3315
3558
|
}), {
|
|
3316
3559
|
...i,
|
|
@@ -3320,7 +3563,7 @@ const Ln = ({
|
|
|
3320
3563
|
locale: n
|
|
3321
3564
|
} : {}
|
|
3322
3565
|
};
|
|
3323
|
-
},
|
|
3566
|
+
}, Mn = ({
|
|
3324
3567
|
content: e,
|
|
3325
3568
|
data: t
|
|
3326
3569
|
}) => e ? {
|
|
@@ -3331,46 +3574,46 @@ const Ln = ({
|
|
|
3331
3574
|
},
|
|
3332
3575
|
meta: e == null ? void 0 : e.meta
|
|
3333
3576
|
} : void 0;
|
|
3334
|
-
function
|
|
3335
|
-
var c, d, m,
|
|
3577
|
+
function Te(e) {
|
|
3578
|
+
var c, u, f, d, m, g, p;
|
|
3336
3579
|
const [t, n] = C(
|
|
3337
3580
|
() => {
|
|
3338
|
-
var I,
|
|
3339
|
-
return
|
|
3581
|
+
var I, x;
|
|
3582
|
+
return Vn({
|
|
3340
3583
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3341
3584
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3342
3585
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3343
|
-
contentId: (
|
|
3586
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3344
3587
|
});
|
|
3345
3588
|
}
|
|
3346
3589
|
);
|
|
3347
3590
|
function i(I) {
|
|
3348
|
-
|
|
3349
|
-
...
|
|
3591
|
+
r((x) => ({
|
|
3592
|
+
...x,
|
|
3350
3593
|
rootState: I
|
|
3351
3594
|
}));
|
|
3352
3595
|
}
|
|
3353
3596
|
const [o, l] = C(
|
|
3354
3597
|
() => [
|
|
3355
|
-
...
|
|
3598
|
+
...ve(),
|
|
3356
3599
|
...e.customComponents || []
|
|
3357
3600
|
].reduce(
|
|
3358
|
-
(I, { component:
|
|
3601
|
+
(I, { component: x, ...R }) => ({
|
|
3359
3602
|
...I,
|
|
3360
3603
|
[R.name]: {
|
|
3361
|
-
component:
|
|
3362
|
-
...
|
|
3604
|
+
component: x,
|
|
3605
|
+
...ge(R)
|
|
3363
3606
|
}
|
|
3364
3607
|
}),
|
|
3365
3608
|
{}
|
|
3366
3609
|
)
|
|
3367
|
-
), [
|
|
3368
|
-
content:
|
|
3610
|
+
), [a, r] = C(() => ({
|
|
3611
|
+
content: Mn({
|
|
3369
3612
|
content: e.content,
|
|
3370
3613
|
data: e.data
|
|
3371
3614
|
}),
|
|
3372
3615
|
localState: void 0,
|
|
3373
|
-
rootState:
|
|
3616
|
+
rootState: Un({
|
|
3374
3617
|
content: e.content,
|
|
3375
3618
|
data: e.data,
|
|
3376
3619
|
locale: e.locale
|
|
@@ -3380,12 +3623,12 @@ function ve(e) {
|
|
|
3380
3623
|
apiKey: e.apiKey,
|
|
3381
3624
|
apiVersion: e.apiVersion,
|
|
3382
3625
|
componentInfos: [
|
|
3383
|
-
...
|
|
3626
|
+
...ve(),
|
|
3384
3627
|
...e.customComponents || []
|
|
3385
3628
|
].reduce(
|
|
3386
|
-
(I, { component:
|
|
3629
|
+
(I, { component: x, ...R }) => ({
|
|
3387
3630
|
...I,
|
|
3388
|
-
[R.name]:
|
|
3631
|
+
[R.name]: ge(R)
|
|
3389
3632
|
}),
|
|
3390
3633
|
{}
|
|
3391
3634
|
),
|
|
@@ -3394,13 +3637,13 @@ function ve(e) {
|
|
|
3394
3637
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3395
3638
|
}));
|
|
3396
3639
|
return /* @__PURE__ */ s(
|
|
3397
|
-
|
|
3640
|
+
Ve.Provider,
|
|
3398
3641
|
{
|
|
3399
3642
|
value: {
|
|
3400
3643
|
registeredComponents: o
|
|
3401
3644
|
},
|
|
3402
3645
|
children: /* @__PURE__ */ V(
|
|
3403
|
-
|
|
3646
|
+
On,
|
|
3404
3647
|
{
|
|
3405
3648
|
content: e.content,
|
|
3406
3649
|
data: e.data,
|
|
@@ -3411,34 +3654,34 @@ function ve(e) {
|
|
|
3411
3654
|
locale: e.locale,
|
|
3412
3655
|
enrich: e.enrich,
|
|
3413
3656
|
showContent: e.showContent,
|
|
3414
|
-
builderContextSignal:
|
|
3657
|
+
builderContextSignal: a,
|
|
3415
3658
|
contentWrapper: e.contentWrapper,
|
|
3416
3659
|
contentWrapperProps: e.contentWrapperProps,
|
|
3417
3660
|
linkComponent: e.linkComponent,
|
|
3418
3661
|
trustedHosts: e.trustedHosts,
|
|
3419
|
-
setBuilderContextSignal:
|
|
3662
|
+
setBuilderContextSignal: r,
|
|
3420
3663
|
children: [
|
|
3421
3664
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3422
|
-
|
|
3665
|
+
ce,
|
|
3423
3666
|
{
|
|
3424
3667
|
id: "builderio-variant-visibility",
|
|
3425
3668
|
scriptStr: t
|
|
3426
3669
|
}
|
|
3427
3670
|
) : null,
|
|
3428
3671
|
/* @__PURE__ */ s(
|
|
3429
|
-
|
|
3672
|
+
jn,
|
|
3430
3673
|
{
|
|
3431
3674
|
isNestedRender: e.isNestedRender,
|
|
3432
|
-
contentId: (c =
|
|
3433
|
-
cssCode: (
|
|
3434
|
-
customFonts: (
|
|
3675
|
+
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3676
|
+
cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
|
|
3677
|
+
customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
|
|
3435
3678
|
}
|
|
3436
3679
|
),
|
|
3437
3680
|
/* @__PURE__ */ s(
|
|
3438
|
-
|
|
3681
|
+
D,
|
|
3439
3682
|
{
|
|
3440
|
-
blocks: (
|
|
3441
|
-
context:
|
|
3683
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3684
|
+
context: a,
|
|
3442
3685
|
registeredComponents: o,
|
|
3443
3686
|
linkComponent: e.linkComponent
|
|
3444
3687
|
}
|
|
@@ -3449,66 +3692,66 @@ function ve(e) {
|
|
|
3449
3692
|
}
|
|
3450
3693
|
);
|
|
3451
3694
|
}
|
|
3452
|
-
function
|
|
3453
|
-
var
|
|
3695
|
+
function Hn(e) {
|
|
3696
|
+
var a;
|
|
3454
3697
|
const [t, n] = C(
|
|
3455
|
-
() =>
|
|
3698
|
+
() => In({
|
|
3456
3699
|
canTrack: Q(e.canTrack),
|
|
3457
3700
|
content: e.content
|
|
3458
3701
|
})
|
|
3459
3702
|
);
|
|
3460
3703
|
function i() {
|
|
3461
|
-
var
|
|
3462
|
-
return
|
|
3704
|
+
var r;
|
|
3705
|
+
return Rn(
|
|
3463
3706
|
J(e.content).map((c) => ({
|
|
3464
3707
|
id: c.testVariationId,
|
|
3465
3708
|
testRatio: c.testRatio
|
|
3466
3709
|
})),
|
|
3467
|
-
((
|
|
3710
|
+
((r = e.content) == null ? void 0 : r.id) || ""
|
|
3468
3711
|
);
|
|
3469
3712
|
}
|
|
3470
3713
|
function o() {
|
|
3471
|
-
return J(e.content).map((
|
|
3714
|
+
return J(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
|
|
3472
3715
|
}
|
|
3473
3716
|
function l() {
|
|
3474
|
-
var
|
|
3717
|
+
var r;
|
|
3475
3718
|
return t ? {
|
|
3476
3719
|
...e.content,
|
|
3477
|
-
testVariationId: (
|
|
3478
|
-
} :
|
|
3720
|
+
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3721
|
+
} : Qe({
|
|
3479
3722
|
item: e.content,
|
|
3480
3723
|
canTrack: Q(e.canTrack)
|
|
3481
3724
|
});
|
|
3482
3725
|
}
|
|
3483
|
-
return
|
|
3484
|
-
}, []), /* @__PURE__ */ V(
|
|
3726
|
+
return B(() => {
|
|
3727
|
+
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3485
3728
|
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3486
|
-
|
|
3729
|
+
ce,
|
|
3487
3730
|
{
|
|
3488
3731
|
id: "builderio-init-variants-fns",
|
|
3489
|
-
scriptStr:
|
|
3732
|
+
scriptStr: En()
|
|
3490
3733
|
}
|
|
3491
3734
|
) : null,
|
|
3492
|
-
t ? /* @__PURE__ */ V(
|
|
3735
|
+
t ? /* @__PURE__ */ V(E, { children: [
|
|
3493
3736
|
/* @__PURE__ */ s(
|
|
3494
|
-
|
|
3737
|
+
ne,
|
|
3495
3738
|
{
|
|
3496
3739
|
id: "builderio-variants",
|
|
3497
3740
|
styles: o()
|
|
3498
3741
|
}
|
|
3499
3742
|
),
|
|
3500
3743
|
/* @__PURE__ */ s(
|
|
3501
|
-
|
|
3744
|
+
ce,
|
|
3502
3745
|
{
|
|
3503
3746
|
id: "builderio-variants-visibility",
|
|
3504
3747
|
scriptStr: i()
|
|
3505
3748
|
}
|
|
3506
3749
|
),
|
|
3507
|
-
(
|
|
3508
|
-
|
|
3750
|
+
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3751
|
+
Te,
|
|
3509
3752
|
{
|
|
3510
3753
|
isNestedRender: e.isNestedRender,
|
|
3511
|
-
content:
|
|
3754
|
+
content: r,
|
|
3512
3755
|
showContent: !1,
|
|
3513
3756
|
model: e.model,
|
|
3514
3757
|
data: e.data,
|
|
@@ -3527,11 +3770,11 @@ function jn(e) {
|
|
|
3527
3770
|
contentWrapperProps: e.contentWrapperProps,
|
|
3528
3771
|
trustedHosts: e.trustedHosts
|
|
3529
3772
|
},
|
|
3530
|
-
|
|
3773
|
+
r.testVariationId
|
|
3531
3774
|
))
|
|
3532
3775
|
] }) : null,
|
|
3533
3776
|
/* @__PURE__ */ s(
|
|
3534
|
-
|
|
3777
|
+
Te,
|
|
3535
3778
|
{
|
|
3536
3779
|
isNestedRender: e.isNestedRender,
|
|
3537
3780
|
content: l(),
|
|
@@ -3556,13 +3799,13 @@ function jn(e) {
|
|
|
3556
3799
|
)
|
|
3557
3800
|
] });
|
|
3558
3801
|
}
|
|
3559
|
-
const
|
|
3802
|
+
const Kn = async ({
|
|
3560
3803
|
builderContextValue: e,
|
|
3561
3804
|
symbol: t
|
|
3562
3805
|
}) => {
|
|
3563
3806
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3564
3807
|
(e != null && e.apiKey))
|
|
3565
|
-
return
|
|
3808
|
+
return Ie({
|
|
3566
3809
|
model: t.model,
|
|
3567
3810
|
apiKey: e.apiKey,
|
|
3568
3811
|
apiVersion: e.apiVersion,
|
|
@@ -3575,8 +3818,8 @@ const Mn = async ({
|
|
|
3575
3818
|
Z.error("Could not fetch symbol content: ", n);
|
|
3576
3819
|
});
|
|
3577
3820
|
};
|
|
3578
|
-
function
|
|
3579
|
-
var
|
|
3821
|
+
function qn(e) {
|
|
3822
|
+
var r, c, u, f;
|
|
3580
3823
|
function t() {
|
|
3581
3824
|
return "div";
|
|
3582
3825
|
}
|
|
@@ -3584,46 +3827,46 @@ function Un(e) {
|
|
|
3584
3827
|
return "div";
|
|
3585
3828
|
}
|
|
3586
3829
|
function i() {
|
|
3587
|
-
var
|
|
3830
|
+
var d, m;
|
|
3588
3831
|
return [
|
|
3589
3832
|
e.attributes[H()],
|
|
3590
3833
|
"builder-symbol",
|
|
3591
|
-
(
|
|
3592
|
-
(
|
|
3834
|
+
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3835
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3593
3836
|
].filter(Boolean).join(" ");
|
|
3594
3837
|
}
|
|
3595
3838
|
const [o, l] = C(() => {
|
|
3596
|
-
var
|
|
3597
|
-
return (
|
|
3839
|
+
var d;
|
|
3840
|
+
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3598
3841
|
});
|
|
3599
|
-
function
|
|
3600
|
-
o ||
|
|
3842
|
+
function a() {
|
|
3843
|
+
o || Kn({
|
|
3601
3844
|
symbol: e.symbol,
|
|
3602
3845
|
builderContextValue: e.builderContext
|
|
3603
|
-
}).then((
|
|
3604
|
-
|
|
3846
|
+
}).then((d) => {
|
|
3847
|
+
d && l(d);
|
|
3605
3848
|
});
|
|
3606
3849
|
}
|
|
3607
|
-
return
|
|
3608
|
-
}, []),
|
|
3609
|
-
|
|
3850
|
+
return B(() => {
|
|
3851
|
+
}, []), B(() => {
|
|
3852
|
+
a();
|
|
3610
3853
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3611
|
-
|
|
3854
|
+
Hn,
|
|
3612
3855
|
{
|
|
3613
3856
|
isNestedRender: !0,
|
|
3614
3857
|
apiVersion: e.builderContext.apiVersion,
|
|
3615
3858
|
apiKey: e.builderContext.apiKey,
|
|
3616
3859
|
context: {
|
|
3617
3860
|
...e.builderContext.context,
|
|
3618
|
-
symbolId: (
|
|
3861
|
+
symbolId: (r = e.builderBlock) == null ? void 0 : r.id
|
|
3619
3862
|
},
|
|
3620
3863
|
customComponents: Object.values(e.builderComponents),
|
|
3621
3864
|
data: {
|
|
3622
3865
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3623
3866
|
...e.builderContext.localState,
|
|
3624
|
-
...(
|
|
3867
|
+
...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
|
|
3625
3868
|
},
|
|
3626
|
-
model: (
|
|
3869
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
3627
3870
|
content: o,
|
|
3628
3871
|
linkComponent: e.builderLinkComponent,
|
|
3629
3872
|
blocksWrapper: t(),
|
|
@@ -3632,15 +3875,15 @@ function Un(e) {
|
|
|
3632
3875
|
) });
|
|
3633
3876
|
}
|
|
3634
3877
|
export {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3878
|
+
D as Blocks,
|
|
3879
|
+
me as BuilderContext,
|
|
3880
|
+
ot as Button,
|
|
3881
|
+
Wt as Columns,
|
|
3882
|
+
Hn as Content,
|
|
3883
|
+
Ft as Fragment,
|
|
3884
|
+
Lt as Image,
|
|
3885
|
+
Ot as Section,
|
|
3886
|
+
qn as Symbol,
|
|
3887
|
+
Zt as Text,
|
|
3888
|
+
vn as Video
|
|
3646
3889
|
};
|