@builder.io/sdk-react 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +22 -22
- package/lib/browser/blocks-exports.mjs +428 -432
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -0
- package/lib/browser/init.mjs +13 -0
- package/lib/browser/{server-entry-a562cf23.js → server-entry-3e30c656.js} +81 -82
- package/lib/browser/server-entry-8951c0c5.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-5705f416.cjs +32 -0
- package/lib/edge/{blocks-683aad9f.js → blocks-b1f5ec2b.js} +742 -747
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-9f6acf3e.js → button-2b710146.js} +2 -2
- package/lib/edge/{button-0d418bcf.cjs → button-3c20ccff.cjs} +1 -1
- package/lib/edge/{columns-b0785992.js → columns-38a397cd.js} +3 -3
- package/lib/edge/{columns-1613d62d.cjs → columns-761d98c4.cjs} +1 -1
- package/lib/edge/{content-variants-281298f6.cjs → content-variants-befe3587.cjs} +4 -4
- package/lib/edge/{content-variants-13f821c6.js → content-variants-f165fa88.js} +21 -21
- package/lib/edge/{form-0483aa64.cjs → form-b0d65d74.cjs} +1 -1
- package/lib/edge/{form-db27fc26.js → form-d0cfb830.js} +3 -3
- package/lib/edge/{get-class-prop-name-e3ba0522.cjs → get-class-prop-name-27f8a4f1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6bfc4756.js → get-class-prop-name-49d9b54f.js} +1 -1
- package/lib/edge/{img-43a8ffe0.js → img-e321016e.js} +1 -1
- package/lib/edge/{img-f01d904d.cjs → img-fcf6e57f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -0
- package/lib/edge/init.mjs +13 -0
- package/lib/edge/{input-805a9ac6.js → input-27f575fe.js} +1 -1
- package/lib/edge/{input-e6483bd7.cjs → input-f0319ee6.cjs} +1 -1
- package/lib/edge/{select-4966723f.js → select-dd4c61db.js} +1 -1
- package/lib/edge/{select-e5d1e627.cjs → select-e31522ee.cjs} +1 -1
- package/lib/edge/{server-entry-c13e82bd.js → server-entry-253a0fa1.js} +80 -81
- package/lib/edge/server-entry-dd363108.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-3ef77ae1.cjs → slot-a2388031.cjs} +1 -1
- package/lib/edge/{slot-1b0351de.js → slot-fea27ccf.js} +3 -3
- package/lib/edge/{symbol-f1632f93.js → symbol-686edeb8.js} +2 -2
- package/lib/edge/{symbol-883d624f.cjs → symbol-ba2c6245.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +30 -70
- package/lib/node/blocks-exports.mjs +916 -1046
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +23 -22
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +9 -0
- package/lib/node/node-runtime-6587ed2e.js +155 -0
- package/lib/node/node-runtime-fa43cf07.cjs +48 -0
- package/lib/node/{server-entry-8c712c9b.js → server-entry-14d7a1d0.js} +82 -82
- package/lib/node/server-entry-3abae5dd.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +6 -1
- package/types/components/block/animator.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +10 -0
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +6 -0
- package/types/functions/get-content/types.d.ts +3 -3
- package/types/functions/is-previewing.d.ts +1 -1
- package/types/helpers/logger.d.ts +1 -0
- package/lib/browser/server-entry-a77461d4.cjs +0 -2
- package/lib/edge/blocks-523eb4f1.cjs +0 -32
- package/lib/edge/server-entry-83648311.cjs +0 -2
- package/lib/node/server-entry-bedf45f8.cjs +0 -2
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { TARGET,
|
|
7
|
-
import { createContext, useState, useEffect, useContext, useRef, createElement } from "react";
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
var Le = Object.defineProperty;
|
|
3
|
+
var De = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var te = (e, t, n) => (De(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as U, isBrowser as G, fastClone as oe, isEditing as A, registerInsertMenu as Me, setupBrowserForEditing as je, createRegisterComponentMessage as Oe, getDefaultCanTrack as Q, _track as ce, isPreviewing as Ue, fetchOneEntry as xe, createEditorListener as He, fetch as Ke, serializeComponentInfo as de, handleABTestingSync as qe } from "./server-entry-14d7a1d0.js";
|
|
7
|
+
import { createContext as Se, useState as I, useEffect as V, useContext as ue, useRef as Z, createElement as ve } from "react";
|
|
8
|
+
import { getFunctionArguments as _e, runInNode as ze, parseCode as Je, getBuilderGlobals as Ye, set as ke } from "./node-runtime-6587ed2e.js";
|
|
9
|
+
const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
|
|
10
|
+
function ae(e) {
|
|
11
|
+
return /* @__PURE__ */ s(T, { children: Qe(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { 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
|
+
}
|
|
13
|
+
const H = () => {
|
|
14
|
+
switch (q) {
|
|
14
15
|
case "react":
|
|
15
16
|
case "reactNative":
|
|
16
17
|
case "rsc":
|
|
@@ -22,13 +23,13 @@ const getClassPropName = () => {
|
|
|
22
23
|
return "class";
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
|
|
26
|
+
function Xe(e) {
|
|
27
|
+
return /* @__PURE__ */ s(
|
|
28
|
+
ae,
|
|
28
29
|
{
|
|
29
30
|
attributes: {
|
|
30
31
|
...e.attributes,
|
|
31
|
-
[
|
|
32
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
32
33
|
...e.link ? {
|
|
33
34
|
href: e.link,
|
|
34
35
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -43,7 +44,7 @@ function Button(e) {
|
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
}
|
|
46
|
-
const
|
|
47
|
+
const re = Se({
|
|
47
48
|
content: null,
|
|
48
49
|
context: {},
|
|
49
50
|
localState: void 0,
|
|
@@ -56,8 +57,8 @@ const builderContext = createContext({
|
|
|
56
57
|
inheritedStyles: {},
|
|
57
58
|
BlocksWrapper: "div",
|
|
58
59
|
BlocksWrapperProps: {}
|
|
59
|
-
}),
|
|
60
|
-
function
|
|
60
|
+
}), Ce = Se({ registeredComponents: {} });
|
|
61
|
+
function Ze(e) {
|
|
61
62
|
var t;
|
|
62
63
|
return {
|
|
63
64
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -68,47 +69,28 @@ function getBlockComponentOptions(e) {
|
|
|
68
69
|
builderBlock: e
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
-
builder: e,
|
|
73
|
-
context: t,
|
|
74
|
-
event: n,
|
|
75
|
-
state: i
|
|
76
|
-
}) => Object.entries({
|
|
77
|
-
state: i,
|
|
78
|
-
Builder: e,
|
|
79
|
-
// legacy
|
|
80
|
-
builder: e,
|
|
81
|
-
context: t,
|
|
82
|
-
event: n
|
|
83
|
-
}), getBuilderGlobals = () => ({
|
|
84
|
-
isEditing: isEditing(),
|
|
85
|
-
isBrowser: isBrowser(),
|
|
86
|
-
isServer: !isBrowser(),
|
|
87
|
-
getUserAttributes: () => getUserAttributes()
|
|
88
|
-
}), parseCode = (e, {
|
|
89
|
-
isExpression: t = !0
|
|
90
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, runInBrowser = ({
|
|
72
|
+
const et = ({
|
|
91
73
|
code: e,
|
|
92
74
|
builder: t,
|
|
93
75
|
context: n,
|
|
94
76
|
event: i,
|
|
95
77
|
localState: o,
|
|
96
|
-
rootSetState:
|
|
97
|
-
rootState:
|
|
78
|
+
rootSetState: r,
|
|
79
|
+
rootState: a
|
|
98
80
|
}) => {
|
|
99
|
-
const
|
|
81
|
+
const l = _e({
|
|
100
82
|
builder: t,
|
|
101
83
|
context: n,
|
|
102
84
|
event: i,
|
|
103
|
-
state:
|
|
104
|
-
rootState:
|
|
85
|
+
state: we({
|
|
86
|
+
rootState: a,
|
|
105
87
|
localState: o,
|
|
106
|
-
rootSetState:
|
|
88
|
+
rootSetState: r
|
|
107
89
|
})
|
|
108
90
|
});
|
|
109
|
-
return new Function(...
|
|
91
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
110
92
|
};
|
|
111
|
-
function
|
|
93
|
+
function we({
|
|
112
94
|
rootState: e,
|
|
113
95
|
localState: t,
|
|
114
96
|
rootSetState: n
|
|
@@ -117,138 +99,33 @@ function flattenState({
|
|
|
117
99
|
get: (i, o) => {
|
|
118
100
|
if (t && o in t)
|
|
119
101
|
return t[o];
|
|
120
|
-
const
|
|
121
|
-
return typeof
|
|
122
|
-
rootState:
|
|
102
|
+
const r = i[o];
|
|
103
|
+
return typeof r == "object" && r !== null ? we({
|
|
104
|
+
rootState: r,
|
|
123
105
|
localState: void 0,
|
|
124
|
-
rootSetState: n ? (
|
|
125
|
-
i[o] =
|
|
106
|
+
rootSetState: n ? (a) => {
|
|
107
|
+
i[o] = a, n(i);
|
|
126
108
|
} : void 0
|
|
127
|
-
}) :
|
|
109
|
+
}) : r;
|
|
128
110
|
},
|
|
129
|
-
set: (i, o,
|
|
111
|
+
set: (i, o, r) => {
|
|
130
112
|
if (t && o in t)
|
|
131
113
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
132
|
-
return i[o] =
|
|
114
|
+
return i[o] = r, n == null || n(i), !0;
|
|
133
115
|
}
|
|
134
116
|
});
|
|
135
117
|
}
|
|
136
|
-
|
|
137
|
-
if (Object(e) !== e)
|
|
138
|
-
return e;
|
|
139
|
-
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
140
|
-
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
141
|
-
}, noop = () => {
|
|
142
|
-
};
|
|
143
|
-
let safeDynamicRequire = noop;
|
|
144
|
-
try {
|
|
145
|
-
safeDynamicRequire = eval("require");
|
|
146
|
-
} catch (e) {
|
|
147
|
-
}
|
|
148
|
-
const getSyncValName = (e) => `bldr_${e}_sync`, BUILDER_SET_STATE_NAME = "BUILDER_SET_STATE", INJECTED_IVM_GLOBAL = "BUILDER_IVM", REF_TO_PROXY_FN = `
|
|
149
|
-
var refToProxy = (obj) => {
|
|
150
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
151
|
-
return obj;
|
|
152
|
-
}
|
|
153
|
-
return new Proxy({}, {
|
|
154
|
-
get(target, key) {
|
|
155
|
-
if (key === 'copySync') {
|
|
156
|
-
return () => obj.copySync();
|
|
157
|
-
}
|
|
158
|
-
const val = obj.getSync(key);
|
|
159
|
-
if (typeof val?.getSync === 'function') {
|
|
160
|
-
return refToProxy(val);
|
|
161
|
-
}
|
|
162
|
-
return val;
|
|
163
|
-
},
|
|
164
|
-
set(target, key, value) {
|
|
165
|
-
const v = typeof value === 'object' ? new ${INJECTED_IVM_GLOBAL}.Reference(value) : value;
|
|
166
|
-
obj.setSync(key, v);
|
|
167
|
-
${BUILDER_SET_STATE_NAME}(key, value)
|
|
168
|
-
},
|
|
169
|
-
deleteProperty(target, key) {
|
|
170
|
-
obj.deleteSync(key);
|
|
171
|
-
}
|
|
172
|
-
})
|
|
173
|
-
}
|
|
174
|
-
`, processCode = ({
|
|
175
|
-
code: e,
|
|
176
|
-
args: t
|
|
177
|
-
}) => {
|
|
178
|
-
const n = t.map(([i]) => `var ${i} = refToProxy(${getSyncValName(i)}); `).join("");
|
|
179
|
-
return `
|
|
180
|
-
${REF_TO_PROXY_FN}
|
|
181
|
-
${n}
|
|
182
|
-
function theFunction() {
|
|
183
|
-
${e}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
let output = theFunction()
|
|
187
|
-
|
|
188
|
-
if (typeof output === 'object' && output !== null) {
|
|
189
|
-
output = JSON.stringify(output.copySync ? output.copySync() : output);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
output;
|
|
193
|
-
`;
|
|
194
|
-
}, getIsolateContext = () => {
|
|
195
|
-
const e = safeDynamicRequire("isolated-vm");
|
|
196
|
-
return new e.Isolate({
|
|
197
|
-
memoryLimit: 128
|
|
198
|
-
}).createContextSync();
|
|
199
|
-
}, runInNode = ({
|
|
200
|
-
code: e,
|
|
201
|
-
builder: t,
|
|
202
|
-
context: n,
|
|
203
|
-
event: i,
|
|
204
|
-
localState: o,
|
|
205
|
-
rootSetState: a,
|
|
206
|
-
rootState: r
|
|
207
|
-
}) => {
|
|
208
|
-
const s = safeDynamicRequire("isolated-vm"), c = fastClone({
|
|
209
|
-
...r,
|
|
210
|
-
...o
|
|
211
|
-
}), l = getFunctionArguments({
|
|
212
|
-
builder: t,
|
|
213
|
-
context: n,
|
|
214
|
-
event: i,
|
|
215
|
-
state: c
|
|
216
|
-
}), u = getIsolateContext(), m = u.global;
|
|
217
|
-
m.setSync("global", m.derefInto()), m.setSync("log", function(...y) {
|
|
218
|
-
console.log(...y);
|
|
219
|
-
}), m.setSync(BUILDER_SET_STATE_NAME, function(y, p) {
|
|
220
|
-
set(r, y, p), a == null || a(r);
|
|
221
|
-
}), l.forEach(([y, p]) => {
|
|
222
|
-
const k = typeof p == "object" ? new s.Reference(
|
|
223
|
-
// workaround: methods with default values for arguments is not being cloned over
|
|
224
|
-
y === "builder" ? {
|
|
225
|
-
...p,
|
|
226
|
-
getUserAttributes: () => p.getUserAttributes()
|
|
227
|
-
} : p
|
|
228
|
-
) : null;
|
|
229
|
-
m.setSync(getSyncValName(y), k);
|
|
230
|
-
}), m.setSync(INJECTED_IVM_GLOBAL, s);
|
|
231
|
-
const g = processCode({
|
|
232
|
-
code: e,
|
|
233
|
-
args: l
|
|
234
|
-
}), h = u.evalSync(g);
|
|
235
|
-
try {
|
|
236
|
-
return JSON.parse(h);
|
|
237
|
-
} catch {
|
|
238
|
-
return h;
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
function isNodeRuntime() {
|
|
118
|
+
function tt() {
|
|
242
119
|
var e;
|
|
243
|
-
return typeof process != "undefined" &&
|
|
120
|
+
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
244
121
|
}
|
|
245
|
-
const
|
|
122
|
+
const nt = () => {
|
|
246
123
|
var i;
|
|
247
|
-
if (!
|
|
124
|
+
if (!tt())
|
|
248
125
|
return !1;
|
|
249
126
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
250
|
-
return e && t && !n ? (
|
|
251
|
-
},
|
|
127
|
+
return e && t && !n ? (U.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
128
|
+
}, it = (e) => G() || nt() ? et(e) : ze(e), $ = class $ {
|
|
252
129
|
static getCacheKey(t) {
|
|
253
130
|
return JSON.stringify({
|
|
254
131
|
...t,
|
|
@@ -258,64 +135,61 @@ const shouldForceBrowserRuntimeInNode = () => {
|
|
|
258
135
|
});
|
|
259
136
|
}
|
|
260
137
|
static getCachedValue(t) {
|
|
261
|
-
return
|
|
138
|
+
return $.cache.get(t);
|
|
262
139
|
}
|
|
263
140
|
static setCachedValue(t, n) {
|
|
264
|
-
|
|
141
|
+
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
265
142
|
value: n
|
|
266
143
|
});
|
|
267
144
|
}
|
|
268
145
|
};
|
|
269
|
-
|
|
270
|
-
let
|
|
271
|
-
function
|
|
146
|
+
te($, "cacheLimit", 20), te($, "cache", /* @__PURE__ */ new Map());
|
|
147
|
+
let M = $;
|
|
148
|
+
function K({
|
|
272
149
|
code: e,
|
|
273
150
|
context: t,
|
|
274
151
|
localState: n,
|
|
275
152
|
rootState: i,
|
|
276
153
|
rootSetState: o,
|
|
277
|
-
event:
|
|
278
|
-
isExpression:
|
|
279
|
-
enableCache:
|
|
154
|
+
event: r,
|
|
155
|
+
isExpression: a = !0,
|
|
156
|
+
enableCache: l
|
|
280
157
|
}) {
|
|
281
158
|
if (e === "") {
|
|
282
|
-
|
|
159
|
+
U.warn("Skipping evaluation of empty code block.");
|
|
283
160
|
return;
|
|
284
161
|
}
|
|
285
|
-
const
|
|
286
|
-
code:
|
|
287
|
-
isExpression:
|
|
162
|
+
const d = {
|
|
163
|
+
code: Je(e, {
|
|
164
|
+
isExpression: a
|
|
288
165
|
}),
|
|
289
|
-
builder:
|
|
166
|
+
builder: Ye(),
|
|
290
167
|
context: t,
|
|
291
|
-
event:
|
|
168
|
+
event: r,
|
|
292
169
|
rootSetState: o,
|
|
293
170
|
rootState: i,
|
|
294
171
|
localState: n
|
|
295
172
|
};
|
|
296
|
-
if (
|
|
297
|
-
const
|
|
298
|
-
if (
|
|
299
|
-
return
|
|
173
|
+
if (l) {
|
|
174
|
+
const c = M.getCacheKey(d), m = M.getCachedValue(c);
|
|
175
|
+
if (m)
|
|
176
|
+
return m.value;
|
|
300
177
|
}
|
|
301
178
|
try {
|
|
302
|
-
const
|
|
303
|
-
if (
|
|
304
|
-
const
|
|
305
|
-
|
|
179
|
+
const c = it(d);
|
|
180
|
+
if (l) {
|
|
181
|
+
const m = M.getCacheKey(d);
|
|
182
|
+
M.setCachedValue(m, c);
|
|
306
183
|
}
|
|
307
|
-
return
|
|
308
|
-
} catch (
|
|
309
|
-
|
|
184
|
+
return c;
|
|
185
|
+
} catch (c) {
|
|
186
|
+
U.error("Failed code evaluation: " + c.message, {
|
|
310
187
|
code: e
|
|
311
188
|
});
|
|
312
189
|
return;
|
|
313
190
|
}
|
|
314
191
|
}
|
|
315
|
-
|
|
316
|
-
return e;
|
|
317
|
-
}
|
|
318
|
-
const evaluateBindings = ({
|
|
192
|
+
const ot = ({
|
|
319
193
|
block: e,
|
|
320
194
|
context: t,
|
|
321
195
|
localState: n,
|
|
@@ -324,202 +198,179 @@ const evaluateBindings = ({
|
|
|
324
198
|
}) => {
|
|
325
199
|
if (!e.bindings)
|
|
326
200
|
return e;
|
|
327
|
-
const
|
|
328
|
-
...
|
|
201
|
+
const r = oe(e), a = {
|
|
202
|
+
...r,
|
|
329
203
|
properties: {
|
|
330
|
-
...
|
|
204
|
+
...r.properties
|
|
331
205
|
},
|
|
332
206
|
actions: {
|
|
333
|
-
...
|
|
207
|
+
...r.actions
|
|
334
208
|
}
|
|
335
209
|
};
|
|
336
|
-
for (const
|
|
337
|
-
const
|
|
338
|
-
code:
|
|
210
|
+
for (const l in e.bindings) {
|
|
211
|
+
const d = e.bindings[l], c = K({
|
|
212
|
+
code: d,
|
|
339
213
|
localState: n,
|
|
340
214
|
rootState: i,
|
|
341
215
|
rootSetState: o,
|
|
342
216
|
context: t,
|
|
343
217
|
enableCache: !0
|
|
344
218
|
});
|
|
345
|
-
|
|
219
|
+
ke(a, l, c);
|
|
346
220
|
}
|
|
347
|
-
return
|
|
221
|
+
return a;
|
|
348
222
|
};
|
|
349
|
-
function
|
|
223
|
+
function X({
|
|
350
224
|
block: e,
|
|
351
225
|
context: t,
|
|
352
226
|
shouldEvaluateBindings: n,
|
|
353
227
|
localState: i,
|
|
354
228
|
rootState: o,
|
|
355
|
-
rootSetState:
|
|
229
|
+
rootSetState: r
|
|
356
230
|
}) {
|
|
357
|
-
const
|
|
358
|
-
return n ?
|
|
359
|
-
block:
|
|
231
|
+
const a = e;
|
|
232
|
+
return n ? ot({
|
|
233
|
+
block: a,
|
|
360
234
|
localState: i,
|
|
361
235
|
rootState: o,
|
|
362
|
-
rootSetState:
|
|
236
|
+
rootSetState: r,
|
|
363
237
|
context: t
|
|
364
|
-
}) :
|
|
238
|
+
}) : a;
|
|
365
239
|
}
|
|
366
|
-
function
|
|
367
|
-
let i, o,
|
|
368
|
-
const
|
|
369
|
-
|
|
240
|
+
function at(e, t, n = {}) {
|
|
241
|
+
let i, o, r, a = null, l = 0;
|
|
242
|
+
const d = function() {
|
|
243
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
370
244
|
};
|
|
371
245
|
return function() {
|
|
372
|
-
const
|
|
373
|
-
!
|
|
374
|
-
const
|
|
375
|
-
return i = this, o = arguments,
|
|
246
|
+
const c = Date.now();
|
|
247
|
+
!l && n.leading === !1 && (l = c);
|
|
248
|
+
const m = t - (c - l);
|
|
249
|
+
return i = this, o = arguments, m <= 0 || m > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, m)), r;
|
|
376
250
|
};
|
|
377
251
|
}
|
|
378
|
-
function
|
|
252
|
+
function O(e, ...t) {
|
|
379
253
|
const n = Object(e);
|
|
380
254
|
for (let i = 1; i < arguments.length; i++) {
|
|
381
255
|
const o = arguments[i];
|
|
382
256
|
if (o != null)
|
|
383
|
-
for (const
|
|
384
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
257
|
+
for (const r in o)
|
|
258
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
385
259
|
}
|
|
386
260
|
return n;
|
|
387
261
|
}
|
|
388
|
-
const
|
|
389
|
-
function
|
|
262
|
+
const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
263
|
+
function rt(e) {
|
|
390
264
|
for (const t of e)
|
|
391
265
|
switch (t.trigger) {
|
|
392
266
|
case "pageLoad":
|
|
393
|
-
|
|
394
|
-
break;
|
|
395
|
-
case "hover":
|
|
396
|
-
bindHoverAnimation(t);
|
|
267
|
+
Ee(t);
|
|
397
268
|
break;
|
|
398
269
|
case "scrollInView":
|
|
399
|
-
|
|
270
|
+
st(t);
|
|
400
271
|
break;
|
|
401
272
|
}
|
|
402
273
|
}
|
|
403
|
-
function
|
|
274
|
+
function Ie(e) {
|
|
404
275
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
405
276
|
}
|
|
406
|
-
function
|
|
407
|
-
const n =
|
|
408
|
-
for (const
|
|
409
|
-
for (const
|
|
410
|
-
|
|
277
|
+
function Te(e, t) {
|
|
278
|
+
const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
279
|
+
for (const l of a)
|
|
280
|
+
for (const d of n)
|
|
281
|
+
d in l || (l[d] = i[d]);
|
|
411
282
|
}
|
|
412
|
-
function
|
|
283
|
+
function lt(e) {
|
|
413
284
|
const t = [];
|
|
414
285
|
for (const n of e.steps)
|
|
415
286
|
for (const i in n.styles)
|
|
416
287
|
t.indexOf(i) === -1 && t.push(i);
|
|
417
288
|
return t;
|
|
418
289
|
}
|
|
419
|
-
function
|
|
290
|
+
function Ee(e) {
|
|
420
291
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
421
292
|
if (!t.length) {
|
|
422
|
-
|
|
293
|
+
Ie(e.elementId || e.id || "");
|
|
423
294
|
return;
|
|
424
295
|
}
|
|
425
296
|
Array.from(t).forEach((n) => {
|
|
426
|
-
|
|
427
|
-
n.style.transition = `all ${e.duration}s ${
|
|
297
|
+
Te(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
|
|
298
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
|
|
428
299
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
429
300
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
430
301
|
});
|
|
431
302
|
});
|
|
432
303
|
}
|
|
433
|
-
function
|
|
434
|
-
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
435
|
-
if (!t.length) {
|
|
436
|
-
warnElementNotPresent(e.elementId || e.id || "");
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
Array.from(t).forEach((n) => {
|
|
440
|
-
augmentAnimation(e, n);
|
|
441
|
-
const i = e.steps[0].styles, o = e.steps[1].styles;
|
|
442
|
-
function a() {
|
|
443
|
-
assign(n.style, i);
|
|
444
|
-
}
|
|
445
|
-
function r() {
|
|
446
|
-
assign(n.style, o);
|
|
447
|
-
}
|
|
448
|
-
a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
|
|
449
|
-
n.style.transition = `all ${e.duration}s ${camelCaseToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
450
|
-
});
|
|
451
|
-
});
|
|
452
|
-
}
|
|
453
|
-
function bindScrollInViewAnimation(e) {
|
|
304
|
+
function st(e) {
|
|
454
305
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
455
306
|
if (!t.length) {
|
|
456
|
-
|
|
307
|
+
Ie(e.elementId || e.id || "");
|
|
457
308
|
return;
|
|
458
309
|
}
|
|
459
310
|
Array.from(t).forEach((n) => {
|
|
460
|
-
|
|
311
|
+
Te(e, n);
|
|
461
312
|
let i = !1, o = !1;
|
|
462
|
-
function
|
|
463
|
-
!i &&
|
|
464
|
-
|
|
313
|
+
function r() {
|
|
314
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
315
|
+
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
465
316
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
466
317
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
467
|
-
})) : e.repeat && i && !o && !
|
|
318
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
468
319
|
}
|
|
469
|
-
const
|
|
320
|
+
const a = at(r, 200, {
|
|
470
321
|
leading: !1
|
|
471
322
|
});
|
|
472
|
-
function
|
|
473
|
-
const
|
|
474
|
-
return
|
|
323
|
+
function l(m) {
|
|
324
|
+
const f = m.getBoundingClientRect(), g = window.innerHeight, x = (e.thresholdPercent || 0) / 100 * g;
|
|
325
|
+
return f.bottom > x && f.top < g - x;
|
|
475
326
|
}
|
|
476
|
-
const
|
|
477
|
-
function
|
|
478
|
-
|
|
327
|
+
const d = e.steps[0].styles;
|
|
328
|
+
function c() {
|
|
329
|
+
O(n.style, d);
|
|
479
330
|
}
|
|
480
|
-
|
|
481
|
-
n.style.transition = `all ${e.duration}s ${
|
|
482
|
-
}), document.addEventListener("scroll",
|
|
331
|
+
c(), setTimeout(() => {
|
|
332
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
333
|
+
}), document.addEventListener("scroll", a, {
|
|
483
334
|
capture: !0,
|
|
484
335
|
passive: !0
|
|
485
|
-
}),
|
|
336
|
+
}), r();
|
|
486
337
|
});
|
|
487
338
|
}
|
|
488
|
-
const
|
|
339
|
+
const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Re = (e) => Object.entries(e).map(([n, i]) => {
|
|
489
340
|
if (typeof i == "string")
|
|
490
|
-
return `${
|
|
491
|
-
}).filter(
|
|
492
|
-
`),
|
|
341
|
+
return `${ct(n)}: ${i};`;
|
|
342
|
+
}).filter(Y), dt = (e) => Re(e).join(`
|
|
343
|
+
`), z = ({
|
|
493
344
|
mediaQuery: e,
|
|
494
345
|
className: t,
|
|
495
346
|
styles: n
|
|
496
347
|
}) => {
|
|
497
348
|
const i = `.${t} {
|
|
498
|
-
${
|
|
349
|
+
${dt(n)}
|
|
499
350
|
}`;
|
|
500
351
|
return e ? `${e} {
|
|
501
352
|
${i}
|
|
502
353
|
}` : i;
|
|
503
354
|
};
|
|
504
|
-
function
|
|
355
|
+
function ut({
|
|
505
356
|
style: e
|
|
506
357
|
}) {
|
|
507
358
|
return e;
|
|
508
359
|
}
|
|
509
|
-
const
|
|
360
|
+
const mt = ({
|
|
510
361
|
block: e,
|
|
511
362
|
context: t
|
|
512
|
-
}) =>
|
|
363
|
+
}) => Pe(ut({
|
|
513
364
|
style: e.style || {},
|
|
514
365
|
context: t,
|
|
515
366
|
block: e
|
|
516
367
|
}));
|
|
517
|
-
function
|
|
518
|
-
switch (
|
|
368
|
+
function Pe(e) {
|
|
369
|
+
switch (q) {
|
|
519
370
|
case "svelte":
|
|
520
371
|
case "vue":
|
|
521
372
|
case "solid":
|
|
522
|
-
return
|
|
373
|
+
return Re(e).join(" ");
|
|
523
374
|
case "qwik":
|
|
524
375
|
case "reactNative":
|
|
525
376
|
case "react":
|
|
@@ -527,20 +378,20 @@ function mapStyleObjToStrIfNeeded(e) {
|
|
|
527
378
|
return e;
|
|
528
379
|
}
|
|
529
380
|
}
|
|
530
|
-
const
|
|
381
|
+
const ft = ({
|
|
531
382
|
block: e,
|
|
532
383
|
context: t,
|
|
533
384
|
registeredComponents: n
|
|
534
385
|
}) => {
|
|
535
|
-
var
|
|
536
|
-
const i = (
|
|
386
|
+
var r;
|
|
387
|
+
const i = (r = X({
|
|
537
388
|
block: e,
|
|
538
389
|
localState: t.localState,
|
|
539
390
|
rootState: t.rootState,
|
|
540
391
|
rootSetState: t.rootSetState,
|
|
541
392
|
context: t.context,
|
|
542
393
|
shouldEvaluateBindings: !1
|
|
543
|
-
}).component) == null ? void 0 :
|
|
394
|
+
}).component) == null ? void 0 : r.name;
|
|
544
395
|
if (!i)
|
|
545
396
|
return null;
|
|
546
397
|
const o = n[i];
|
|
@@ -549,7 +400,7 @@ const getComponent = ({
|
|
|
549
400
|
console.warn(`
|
|
550
401
|
Could not find a registered component named "${i}".
|
|
551
402
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
552
|
-
},
|
|
403
|
+
}, ht = ({
|
|
553
404
|
block: e,
|
|
554
405
|
context: t
|
|
555
406
|
}) => {
|
|
@@ -559,7 +410,7 @@ const getComponent = ({
|
|
|
559
410
|
} = e;
|
|
560
411
|
if (!(n != null && n.collection))
|
|
561
412
|
return;
|
|
562
|
-
const o =
|
|
413
|
+
const o = K({
|
|
563
414
|
code: n.collection,
|
|
564
415
|
localState: t.localState,
|
|
565
416
|
rootState: t.rootState,
|
|
@@ -569,21 +420,21 @@ const getComponent = ({
|
|
|
569
420
|
});
|
|
570
421
|
if (!Array.isArray(o))
|
|
571
422
|
return;
|
|
572
|
-
const
|
|
573
|
-
return o.map((
|
|
423
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
424
|
+
return o.map((d, c) => ({
|
|
574
425
|
context: {
|
|
575
426
|
...t,
|
|
576
427
|
localState: {
|
|
577
428
|
...t.localState,
|
|
578
|
-
$index:
|
|
579
|
-
$item:
|
|
580
|
-
[
|
|
581
|
-
[`$${
|
|
429
|
+
$index: c,
|
|
430
|
+
$item: d,
|
|
431
|
+
[a]: d,
|
|
432
|
+
[`$${a}Index`]: c
|
|
582
433
|
}
|
|
583
434
|
},
|
|
584
435
|
block: i
|
|
585
436
|
}));
|
|
586
|
-
},
|
|
437
|
+
}, Ve = {
|
|
587
438
|
small: {
|
|
588
439
|
min: 320,
|
|
589
440
|
default: 321,
|
|
@@ -599,11 +450,11 @@ const getComponent = ({
|
|
|
599
450
|
default: 991,
|
|
600
451
|
max: 1200
|
|
601
452
|
}
|
|
602
|
-
},
|
|
453
|
+
}, me = (e, t = Ve) => `@media (max-width: ${t[e].max}px)`, Be = ({
|
|
603
454
|
small: e,
|
|
604
455
|
medium: t
|
|
605
456
|
}) => {
|
|
606
|
-
const n =
|
|
457
|
+
const n = oe(Ve);
|
|
607
458
|
if (!e || !t)
|
|
608
459
|
return n;
|
|
609
460
|
const i = Math.floor(e / 2);
|
|
@@ -618,16 +469,16 @@ const getComponent = ({
|
|
|
618
469
|
min: o,
|
|
619
470
|
default: o + 1
|
|
620
471
|
};
|
|
621
|
-
const
|
|
472
|
+
const r = n.medium.max + 1;
|
|
622
473
|
return n.large = {
|
|
623
474
|
max: 2e3,
|
|
624
475
|
// TODO: decide upper limit
|
|
625
|
-
min:
|
|
626
|
-
default:
|
|
476
|
+
min: r,
|
|
477
|
+
default: r + 1
|
|
627
478
|
}, n;
|
|
628
479
|
};
|
|
629
|
-
function
|
|
630
|
-
return /* @__PURE__ */
|
|
480
|
+
function ee(e) {
|
|
481
|
+
return /* @__PURE__ */ s(
|
|
631
482
|
"style",
|
|
632
483
|
{
|
|
633
484
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -635,9 +486,9 @@ function InlinedStyles(e) {
|
|
|
635
486
|
}
|
|
636
487
|
);
|
|
637
488
|
}
|
|
638
|
-
function
|
|
489
|
+
function gt(e) {
|
|
639
490
|
function t() {
|
|
640
|
-
const i =
|
|
491
|
+
const i = X({
|
|
641
492
|
block: e.block,
|
|
642
493
|
localState: e.context.localState,
|
|
643
494
|
rootState: e.context.rootState,
|
|
@@ -645,48 +496,67 @@ function BlockStyles(e) {
|
|
|
645
496
|
context: e.context.context,
|
|
646
497
|
shouldEvaluateBindings: !0
|
|
647
498
|
});
|
|
648
|
-
return
|
|
499
|
+
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
649
500
|
}
|
|
650
501
|
function n() {
|
|
651
|
-
var
|
|
652
|
-
const i =
|
|
502
|
+
var w, E, p;
|
|
503
|
+
const i = X({
|
|
653
504
|
block: e.block,
|
|
654
505
|
localState: e.context.localState,
|
|
655
506
|
rootState: e.context.rootState,
|
|
656
507
|
rootSetState: e.context.rootSetState,
|
|
657
508
|
context: e.context.context,
|
|
658
509
|
shouldEvaluateBindings: !0
|
|
659
|
-
}), o = i.responsiveStyles,
|
|
660
|
-
((
|
|
661
|
-
),
|
|
662
|
-
if (!
|
|
510
|
+
}), o = i.responsiveStyles, r = e.context.content, a = Be(
|
|
511
|
+
((w = r == null ? void 0 : r.meta) == null ? void 0 : w.breakpoints) || {}
|
|
512
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
513
|
+
if (!m)
|
|
663
514
|
return "";
|
|
664
|
-
const
|
|
665
|
-
className:
|
|
666
|
-
styles:
|
|
667
|
-
}) : "", g =
|
|
668
|
-
className:
|
|
669
|
-
styles:
|
|
670
|
-
mediaQuery:
|
|
515
|
+
const f = l ? z({
|
|
516
|
+
className: m,
|
|
517
|
+
styles: l
|
|
518
|
+
}) : "", g = d ? z({
|
|
519
|
+
className: m,
|
|
520
|
+
styles: d,
|
|
521
|
+
mediaQuery: me(
|
|
671
522
|
"medium",
|
|
672
|
-
|
|
523
|
+
a
|
|
673
524
|
)
|
|
674
|
-
}) : "",
|
|
675
|
-
className:
|
|
676
|
-
styles:
|
|
677
|
-
mediaQuery:
|
|
525
|
+
}) : "", y = c ? z({
|
|
526
|
+
className: m,
|
|
527
|
+
styles: c,
|
|
528
|
+
mediaQuery: me(
|
|
678
529
|
"small",
|
|
679
|
-
|
|
530
|
+
a
|
|
680
531
|
)
|
|
681
|
-
}) : "";
|
|
682
|
-
|
|
532
|
+
}) : "", x = i.animations && i.animations.find((v) => v.trigger === "hover");
|
|
533
|
+
let k = "";
|
|
534
|
+
if (x) {
|
|
535
|
+
const v = ((p = (E = x.steps) == null ? void 0 : E[1]) == null ? void 0 : p.styles) || {};
|
|
536
|
+
k = z({
|
|
537
|
+
className: `${m}:hover`,
|
|
538
|
+
styles: {
|
|
539
|
+
...v,
|
|
540
|
+
transition: `all ${x.duration}s ${le(
|
|
541
|
+
x.easing
|
|
542
|
+
)}`,
|
|
543
|
+
transitionDelay: x.delay ? `${x.delay}s` : "0s"
|
|
544
|
+
}
|
|
545
|
+
}) || "";
|
|
546
|
+
}
|
|
547
|
+
return [
|
|
548
|
+
f,
|
|
549
|
+
g,
|
|
550
|
+
y,
|
|
551
|
+
k
|
|
552
|
+
].join(" ");
|
|
683
553
|
}
|
|
684
|
-
return /* @__PURE__ */
|
|
554
|
+
return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(ee, { id: "builderio-block", styles: n() }) }) : null });
|
|
685
555
|
}
|
|
686
|
-
function
|
|
556
|
+
function bt(e) {
|
|
687
557
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
688
558
|
}
|
|
689
|
-
const
|
|
559
|
+
const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => K({
|
|
690
560
|
code: e,
|
|
691
561
|
context: t.context,
|
|
692
562
|
localState: t.localState,
|
|
@@ -696,66 +566,66 @@ const getEventHandlerName = (e) => `on${capitalizeFirstLetter(e)}`, createEventH
|
|
|
696
566
|
isExpression: !1,
|
|
697
567
|
enableCache: !0
|
|
698
568
|
});
|
|
699
|
-
function
|
|
569
|
+
function We(e) {
|
|
700
570
|
var i;
|
|
701
571
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
702
572
|
for (const o in n) {
|
|
703
573
|
if (!n.hasOwnProperty(o))
|
|
704
574
|
continue;
|
|
705
|
-
const
|
|
706
|
-
let
|
|
575
|
+
const r = n[o];
|
|
576
|
+
let a = yt(o);
|
|
707
577
|
if (e.stripPrefix)
|
|
708
|
-
switch (
|
|
578
|
+
switch (q) {
|
|
709
579
|
case "vue":
|
|
710
|
-
|
|
580
|
+
a = a.replace("v-on:", "");
|
|
711
581
|
break;
|
|
712
582
|
case "svelte":
|
|
713
|
-
|
|
583
|
+
a = a.replace("on:", "");
|
|
714
584
|
break;
|
|
715
585
|
}
|
|
716
|
-
t[
|
|
586
|
+
t[a] = pt(r, e);
|
|
717
587
|
}
|
|
718
588
|
return t;
|
|
719
589
|
}
|
|
720
|
-
function
|
|
590
|
+
function xt({
|
|
721
591
|
properties: e
|
|
722
592
|
}) {
|
|
723
593
|
return e;
|
|
724
594
|
}
|
|
725
|
-
const
|
|
595
|
+
const St = (e) => ({
|
|
726
596
|
href: e.href
|
|
727
597
|
});
|
|
728
|
-
function
|
|
598
|
+
function se({
|
|
729
599
|
block: e,
|
|
730
600
|
context: t
|
|
731
601
|
}) {
|
|
732
602
|
var i;
|
|
733
603
|
const n = {
|
|
734
|
-
...
|
|
604
|
+
...St(e),
|
|
735
605
|
...e.properties,
|
|
736
606
|
"builder-id": e.id,
|
|
737
|
-
style:
|
|
607
|
+
style: mt({
|
|
738
608
|
block: e,
|
|
739
609
|
context: t
|
|
740
610
|
}),
|
|
741
|
-
[
|
|
611
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
742
612
|
};
|
|
743
|
-
return
|
|
613
|
+
return xt({
|
|
744
614
|
properties: n,
|
|
745
615
|
context: t,
|
|
746
616
|
block: e
|
|
747
617
|
});
|
|
748
618
|
}
|
|
749
|
-
function
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
-
|
|
619
|
+
function vt(e) {
|
|
620
|
+
return /* @__PURE__ */ s(
|
|
621
|
+
ae,
|
|
752
622
|
{
|
|
753
623
|
TagName: e.Wrapper,
|
|
754
|
-
attributes:
|
|
624
|
+
attributes: se({
|
|
755
625
|
block: e.block,
|
|
756
626
|
context: e.context
|
|
757
627
|
}),
|
|
758
|
-
actionAttributes:
|
|
628
|
+
actionAttributes: We({
|
|
759
629
|
block: e.block,
|
|
760
630
|
rootState: e.context.rootState,
|
|
761
631
|
rootSetState: e.context.rootSetState,
|
|
@@ -767,17 +637,17 @@ function BlockWrapper(e) {
|
|
|
767
637
|
}
|
|
768
638
|
);
|
|
769
639
|
}
|
|
770
|
-
function
|
|
771
|
-
return /* @__PURE__ */
|
|
640
|
+
function kt(e) {
|
|
641
|
+
return /* @__PURE__ */ s(
|
|
772
642
|
e.Wrapper,
|
|
773
643
|
{
|
|
774
644
|
...e.wrapperProps,
|
|
775
645
|
attributes: e.includeBlockProps ? {
|
|
776
|
-
...
|
|
646
|
+
...se({
|
|
777
647
|
block: e.block,
|
|
778
648
|
context: e.context
|
|
779
649
|
}),
|
|
780
|
-
...
|
|
650
|
+
...We({
|
|
781
651
|
block: e.block,
|
|
782
652
|
rootState: e.context.rootState,
|
|
783
653
|
rootSetState: e.context.rootSetState,
|
|
@@ -789,45 +659,45 @@ function InteractiveElement(e) {
|
|
|
789
659
|
}
|
|
790
660
|
);
|
|
791
661
|
}
|
|
792
|
-
const
|
|
662
|
+
const Ct = ({
|
|
793
663
|
componentOptions: e,
|
|
794
664
|
builderBlock: t,
|
|
795
665
|
context: n,
|
|
796
666
|
componentRef: i,
|
|
797
667
|
includeBlockProps: o,
|
|
798
|
-
isInteractive:
|
|
799
|
-
contextValue:
|
|
668
|
+
isInteractive: r,
|
|
669
|
+
contextValue: a
|
|
800
670
|
}) => {
|
|
801
|
-
const
|
|
671
|
+
const l = {
|
|
802
672
|
...e,
|
|
803
673
|
/**
|
|
804
674
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
805
675
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
806
676
|
*/
|
|
807
677
|
...o ? {
|
|
808
|
-
attributes:
|
|
678
|
+
attributes: se({
|
|
809
679
|
block: t,
|
|
810
|
-
context:
|
|
680
|
+
context: a
|
|
811
681
|
})
|
|
812
682
|
} : {}
|
|
813
683
|
};
|
|
814
|
-
return
|
|
684
|
+
return r ? {
|
|
815
685
|
Wrapper: i,
|
|
816
686
|
block: t,
|
|
817
687
|
context: n,
|
|
818
688
|
wrapperProps: e,
|
|
819
689
|
includeBlockProps: o
|
|
820
|
-
} :
|
|
690
|
+
} : l;
|
|
821
691
|
};
|
|
822
|
-
function
|
|
692
|
+
function fe(e) {
|
|
823
693
|
var i;
|
|
824
|
-
const [t, n] =
|
|
825
|
-
() => e.isInteractive ?
|
|
694
|
+
const [t, n] = I(
|
|
695
|
+
() => e.isInteractive ? kt : e.componentRef
|
|
826
696
|
);
|
|
827
|
-
return /* @__PURE__ */
|
|
697
|
+
return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
828
698
|
t,
|
|
829
699
|
{
|
|
830
|
-
...
|
|
700
|
+
...Ct({
|
|
831
701
|
componentOptions: e.componentOptions,
|
|
832
702
|
builderBlock: e.builderBlock,
|
|
833
703
|
context: e.context,
|
|
@@ -837,8 +707,8 @@ function ComponentRef(e) {
|
|
|
837
707
|
isInteractive: e.isInteractive,
|
|
838
708
|
contextValue: e.context
|
|
839
709
|
}),
|
|
840
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
841
|
-
|
|
710
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
711
|
+
_,
|
|
842
712
|
{
|
|
843
713
|
block: o,
|
|
844
714
|
context: e.context,
|
|
@@ -850,10 +720,10 @@ function ComponentRef(e) {
|
|
|
850
720
|
}
|
|
851
721
|
) }) : null });
|
|
852
722
|
}
|
|
853
|
-
function
|
|
854
|
-
const [t, n] =
|
|
855
|
-
return /* @__PURE__ */
|
|
856
|
-
|
|
723
|
+
function wt(e) {
|
|
724
|
+
const [t, n] = I(() => e.repeatContext);
|
|
725
|
+
return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
726
|
+
_,
|
|
857
727
|
{
|
|
858
728
|
block: e.block,
|
|
859
729
|
context: t,
|
|
@@ -862,24 +732,24 @@ function RepeatedBlock(e) {
|
|
|
862
732
|
}
|
|
863
733
|
) });
|
|
864
734
|
}
|
|
865
|
-
function
|
|
866
|
-
var
|
|
735
|
+
function _(e) {
|
|
736
|
+
var d, c, m;
|
|
867
737
|
function t() {
|
|
868
|
-
return
|
|
738
|
+
return ft({
|
|
869
739
|
block: e.block,
|
|
870
740
|
context: e.context,
|
|
871
741
|
registeredComponents: e.registeredComponents
|
|
872
742
|
});
|
|
873
743
|
}
|
|
874
744
|
function n() {
|
|
875
|
-
return
|
|
745
|
+
return ht({
|
|
876
746
|
block: e.block,
|
|
877
747
|
context: e.context
|
|
878
748
|
});
|
|
879
749
|
}
|
|
880
750
|
function i() {
|
|
881
|
-
var
|
|
882
|
-
return (
|
|
751
|
+
var f;
|
|
752
|
+
return (f = e.block.repeat) != null && f.collection ? e.block : X({
|
|
883
753
|
block: e.block,
|
|
884
754
|
localState: e.context.localState,
|
|
885
755
|
rootState: e.context.rootState,
|
|
@@ -892,29 +762,29 @@ function Block(e) {
|
|
|
892
762
|
var g;
|
|
893
763
|
return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
894
764
|
}
|
|
895
|
-
function a() {
|
|
896
|
-
var h, y;
|
|
897
|
-
if ((h = e.block.repeat) != null && h.collection)
|
|
898
|
-
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
899
|
-
const m = "hide" in i() ? i().hide : !1;
|
|
900
|
-
return ("show" in i() ? i().show : !0) && !m;
|
|
901
|
-
}
|
|
902
765
|
function r() {
|
|
903
|
-
var
|
|
904
|
-
|
|
766
|
+
var y, x;
|
|
767
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
768
|
+
return !!((x = n == null ? void 0 : n()) != null && x.length);
|
|
769
|
+
const f = "hide" in i() ? i().hide : !1;
|
|
770
|
+
return ("show" in i() ? i().show : !0) && !f;
|
|
771
|
+
}
|
|
772
|
+
function a() {
|
|
773
|
+
var g, y;
|
|
774
|
+
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
|
|
905
775
|
}
|
|
906
|
-
function
|
|
907
|
-
var
|
|
776
|
+
function l() {
|
|
777
|
+
var f, g, y, x, k, w, E, p, v, P, R;
|
|
908
778
|
return {
|
|
909
|
-
blockChildren: (
|
|
779
|
+
blockChildren: (f = i().children) != null ? f : [],
|
|
910
780
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
911
781
|
componentOptions: {
|
|
912
|
-
...
|
|
782
|
+
...Ze(i()),
|
|
913
783
|
builderContext: e.context,
|
|
914
|
-
...((
|
|
784
|
+
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
|
|
915
785
|
builderLinkComponent: e.linkComponent
|
|
916
786
|
} : {},
|
|
917
|
-
...((
|
|
787
|
+
...((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Form:Form" ? {
|
|
918
788
|
builderComponents: e.registeredComponents
|
|
919
789
|
} : {}
|
|
920
790
|
},
|
|
@@ -922,87 +792,87 @@ function Block(e) {
|
|
|
922
792
|
linkComponent: e.linkComponent,
|
|
923
793
|
registeredComponents: e.registeredComponents,
|
|
924
794
|
builderBlock: i(),
|
|
925
|
-
includeBlockProps: ((
|
|
926
|
-
isInteractive: !((
|
|
795
|
+
includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
|
|
796
|
+
isInteractive: !((R = t == null ? void 0 : t()) != null && R.isRSC)
|
|
927
797
|
};
|
|
928
798
|
}
|
|
929
|
-
return
|
|
930
|
-
const
|
|
931
|
-
g &&
|
|
932
|
-
g.
|
|
933
|
-
...
|
|
934
|
-
elementId:
|
|
799
|
+
return V(() => {
|
|
800
|
+
const f = i().id, g = i().animations;
|
|
801
|
+
g && f && rt(
|
|
802
|
+
g.map((y) => ({
|
|
803
|
+
...y,
|
|
804
|
+
elementId: f
|
|
935
805
|
}))
|
|
936
806
|
);
|
|
937
|
-
}, []), /* @__PURE__ */
|
|
938
|
-
/* @__PURE__ */
|
|
939
|
-
(
|
|
940
|
-
|
|
807
|
+
}, []), /* @__PURE__ */ s(T, { children: r() ? /* @__PURE__ */ B(T, { children: [
|
|
808
|
+
/* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
|
|
809
|
+
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
810
|
+
fe,
|
|
941
811
|
{
|
|
942
|
-
componentRef:
|
|
943
|
-
componentOptions:
|
|
944
|
-
blockChildren:
|
|
945
|
-
context:
|
|
946
|
-
registeredComponents:
|
|
947
|
-
linkComponent:
|
|
948
|
-
builderBlock:
|
|
949
|
-
includeBlockProps:
|
|
950
|
-
isInteractive:
|
|
812
|
+
componentRef: l().componentRef,
|
|
813
|
+
componentOptions: l().componentOptions,
|
|
814
|
+
blockChildren: l().blockChildren,
|
|
815
|
+
context: l().context,
|
|
816
|
+
registeredComponents: l().registeredComponents,
|
|
817
|
+
linkComponent: l().linkComponent,
|
|
818
|
+
builderBlock: l().builderBlock,
|
|
819
|
+
includeBlockProps: l().includeBlockProps,
|
|
820
|
+
isInteractive: l().isInteractive
|
|
951
821
|
}
|
|
952
|
-
) }) : /* @__PURE__ */
|
|
953
|
-
|
|
822
|
+
) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
|
|
823
|
+
wt,
|
|
954
824
|
{
|
|
955
|
-
repeatContext:
|
|
956
|
-
block:
|
|
825
|
+
repeatContext: f.context,
|
|
826
|
+
block: f.block,
|
|
957
827
|
registeredComponents: e.registeredComponents,
|
|
958
828
|
linkComponent: e.linkComponent
|
|
959
829
|
},
|
|
960
830
|
g
|
|
961
|
-
)) }) : /* @__PURE__ */
|
|
962
|
-
|
|
831
|
+
)) }) : /* @__PURE__ */ B(
|
|
832
|
+
vt,
|
|
963
833
|
{
|
|
964
834
|
Wrapper: o(),
|
|
965
835
|
block: i(),
|
|
966
836
|
context: e.context,
|
|
967
837
|
linkComponent: e.linkComponent,
|
|
968
838
|
children: [
|
|
969
|
-
/* @__PURE__ */
|
|
970
|
-
|
|
839
|
+
/* @__PURE__ */ s(
|
|
840
|
+
fe,
|
|
971
841
|
{
|
|
972
|
-
componentRef:
|
|
973
|
-
componentOptions:
|
|
974
|
-
blockChildren:
|
|
975
|
-
context:
|
|
976
|
-
registeredComponents:
|
|
977
|
-
linkComponent:
|
|
978
|
-
builderBlock:
|
|
979
|
-
includeBlockProps:
|
|
980
|
-
isInteractive:
|
|
842
|
+
componentRef: l().componentRef,
|
|
843
|
+
componentOptions: l().componentOptions,
|
|
844
|
+
blockChildren: l().blockChildren,
|
|
845
|
+
context: l().context,
|
|
846
|
+
registeredComponents: l().registeredComponents,
|
|
847
|
+
linkComponent: l().linkComponent,
|
|
848
|
+
builderBlock: l().builderBlock,
|
|
849
|
+
includeBlockProps: l().includeBlockProps,
|
|
850
|
+
isInteractive: l().isInteractive
|
|
981
851
|
}
|
|
982
852
|
),
|
|
983
|
-
(
|
|
984
|
-
|
|
853
|
+
(c = a()) == null ? void 0 : c.map((f) => /* @__PURE__ */ s(
|
|
854
|
+
_,
|
|
985
855
|
{
|
|
986
|
-
block:
|
|
856
|
+
block: f,
|
|
987
857
|
registeredComponents: e.registeredComponents,
|
|
988
858
|
linkComponent: e.linkComponent,
|
|
989
859
|
context: e.context
|
|
990
860
|
},
|
|
991
|
-
|
|
861
|
+
f.id
|
|
992
862
|
))
|
|
993
863
|
]
|
|
994
864
|
}
|
|
995
865
|
) })
|
|
996
866
|
] }) : null });
|
|
997
867
|
}
|
|
998
|
-
function
|
|
868
|
+
function It(e) {
|
|
999
869
|
function t() {
|
|
1000
870
|
var o;
|
|
1001
871
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
1002
872
|
}
|
|
1003
873
|
function n() {
|
|
1004
|
-
var o,
|
|
1005
|
-
|
|
874
|
+
var o, r;
|
|
875
|
+
A() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
1006
876
|
{
|
|
1007
877
|
type: "builder.clickEmptyBlocks",
|
|
1008
878
|
data: {
|
|
@@ -1014,8 +884,8 @@ function BlocksWrapper(e) {
|
|
|
1014
884
|
));
|
|
1015
885
|
}
|
|
1016
886
|
function i() {
|
|
1017
|
-
var o,
|
|
1018
|
-
|
|
887
|
+
var o, r;
|
|
888
|
+
A() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
1019
889
|
{
|
|
1020
890
|
type: "builder.hoverEmptyBlocks",
|
|
1021
891
|
data: {
|
|
@@ -1026,8 +896,8 @@ function BlocksWrapper(e) {
|
|
|
1026
896
|
"*"
|
|
1027
897
|
));
|
|
1028
898
|
}
|
|
1029
|
-
return /* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
899
|
+
return /* @__PURE__ */ B(T, { children: [
|
|
900
|
+
/* @__PURE__ */ s(
|
|
1031
901
|
e.BlocksWrapper,
|
|
1032
902
|
{
|
|
1033
903
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -1041,18 +911,18 @@ function BlocksWrapper(e) {
|
|
|
1041
911
|
children: e.children
|
|
1042
912
|
}
|
|
1043
913
|
),
|
|
1044
|
-
/* @__PURE__ */
|
|
914
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
1045
915
|
display: flex;
|
|
1046
916
|
flex-direction: column;
|
|
1047
917
|
align-items: stretch;
|
|
1048
918
|
}` })
|
|
1049
919
|
] });
|
|
1050
920
|
}
|
|
1051
|
-
function
|
|
1052
|
-
var i, o,
|
|
1053
|
-
const t =
|
|
1054
|
-
return /* @__PURE__ */
|
|
1055
|
-
|
|
921
|
+
function j(e) {
|
|
922
|
+
var i, o, r;
|
|
923
|
+
const t = ue(re), n = ue(Ce);
|
|
924
|
+
return /* @__PURE__ */ s(
|
|
925
|
+
It,
|
|
1056
926
|
{
|
|
1057
927
|
blocks: e.blocks,
|
|
1058
928
|
parent: e.parent,
|
|
@@ -1060,95 +930,95 @@ function Blocks(e) {
|
|
|
1060
930
|
styleProp: e.styleProp,
|
|
1061
931
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1062
932
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1063
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1064
|
-
|
|
933
|
+
children: e.blocks ? /* @__PURE__ */ s(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
934
|
+
_,
|
|
1065
935
|
{
|
|
1066
|
-
block:
|
|
936
|
+
block: a,
|
|
1067
937
|
linkComponent: e.linkComponent,
|
|
1068
938
|
context: e.context || t,
|
|
1069
939
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
1070
940
|
},
|
|
1071
|
-
|
|
941
|
+
a.id
|
|
1072
942
|
)) }) : null
|
|
1073
943
|
}
|
|
1074
944
|
);
|
|
1075
945
|
}
|
|
1076
|
-
function
|
|
1077
|
-
var
|
|
1078
|
-
const [t, n] =
|
|
946
|
+
function Tt(e) {
|
|
947
|
+
var E;
|
|
948
|
+
const [t, n] = I(
|
|
1079
949
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
1080
|
-
), [i, o] =
|
|
950
|
+
), [i, o] = I(() => e.columns || []), [r, a] = I(
|
|
1081
951
|
() => e.stackColumnsAt || "tablet"
|
|
1082
952
|
);
|
|
1083
|
-
function
|
|
1084
|
-
var
|
|
1085
|
-
return ((
|
|
953
|
+
function l(p) {
|
|
954
|
+
var v;
|
|
955
|
+
return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
|
|
1086
956
|
}
|
|
1087
|
-
function
|
|
1088
|
-
const
|
|
1089
|
-
return `calc(${
|
|
957
|
+
function d(p) {
|
|
958
|
+
const v = t * (i.length - 1) / i.length;
|
|
959
|
+
return `calc(${l(p)}% - ${v}px)`;
|
|
1090
960
|
}
|
|
1091
|
-
function
|
|
1092
|
-
stackedStyle:
|
|
1093
|
-
desktopStyle:
|
|
961
|
+
function c({
|
|
962
|
+
stackedStyle: p,
|
|
963
|
+
desktopStyle: v
|
|
1094
964
|
}) {
|
|
1095
|
-
return
|
|
965
|
+
return r === "tablet" ? p : v;
|
|
1096
966
|
}
|
|
1097
|
-
function
|
|
1098
|
-
stackedStyle:
|
|
1099
|
-
desktopStyle:
|
|
967
|
+
function m({
|
|
968
|
+
stackedStyle: p,
|
|
969
|
+
desktopStyle: v
|
|
1100
970
|
}) {
|
|
1101
|
-
return
|
|
971
|
+
return r === "never" ? v : p;
|
|
1102
972
|
}
|
|
1103
|
-
const [
|
|
973
|
+
const [f, g] = I(
|
|
1104
974
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1105
975
|
);
|
|
1106
|
-
function
|
|
976
|
+
function y() {
|
|
1107
977
|
return {
|
|
1108
|
-
"--flex-dir":
|
|
1109
|
-
"--flex-dir-tablet":
|
|
1110
|
-
stackedStyle:
|
|
978
|
+
"--flex-dir": f,
|
|
979
|
+
"--flex-dir-tablet": c({
|
|
980
|
+
stackedStyle: f,
|
|
1111
981
|
desktopStyle: "row"
|
|
1112
982
|
})
|
|
1113
983
|
};
|
|
1114
984
|
}
|
|
1115
|
-
function
|
|
1116
|
-
const
|
|
985
|
+
function x(p) {
|
|
986
|
+
const v = p === 0 ? 0 : t, P = d(p), R = `${v}px`, F = "100%", L = 0;
|
|
1117
987
|
return {
|
|
1118
988
|
...{
|
|
1119
989
|
display: "flex",
|
|
1120
990
|
flexDirection: "column",
|
|
1121
991
|
alignItems: "stretch"
|
|
1122
992
|
},
|
|
1123
|
-
width:
|
|
1124
|
-
["marginLeft"]:
|
|
1125
|
-
"--column-width-mobile":
|
|
1126
|
-
stackedStyle:
|
|
1127
|
-
desktopStyle:
|
|
993
|
+
width: P,
|
|
994
|
+
["marginLeft"]: R,
|
|
995
|
+
"--column-width-mobile": m({
|
|
996
|
+
stackedStyle: F,
|
|
997
|
+
desktopStyle: P
|
|
1128
998
|
}),
|
|
1129
|
-
"--column-margin-left-mobile":
|
|
1130
|
-
stackedStyle:
|
|
1131
|
-
desktopStyle:
|
|
999
|
+
"--column-margin-left-mobile": m({
|
|
1000
|
+
stackedStyle: L,
|
|
1001
|
+
desktopStyle: R
|
|
1132
1002
|
}),
|
|
1133
|
-
"--column-width-tablet":
|
|
1134
|
-
stackedStyle:
|
|
1135
|
-
desktopStyle:
|
|
1003
|
+
"--column-width-tablet": c({
|
|
1004
|
+
stackedStyle: F,
|
|
1005
|
+
desktopStyle: P
|
|
1136
1006
|
}),
|
|
1137
|
-
"--column-margin-left-tablet":
|
|
1138
|
-
stackedStyle:
|
|
1139
|
-
desktopStyle:
|
|
1007
|
+
"--column-margin-left-tablet": c({
|
|
1008
|
+
stackedStyle: L,
|
|
1009
|
+
desktopStyle: R
|
|
1140
1010
|
})
|
|
1141
1011
|
};
|
|
1142
1012
|
}
|
|
1143
|
-
function p
|
|
1144
|
-
var
|
|
1145
|
-
return
|
|
1146
|
-
((
|
|
1147
|
-
)[
|
|
1013
|
+
function k(p) {
|
|
1014
|
+
var P, R;
|
|
1015
|
+
return Be(
|
|
1016
|
+
((R = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : R.breakpoints) || {}
|
|
1017
|
+
)[p].max;
|
|
1148
1018
|
}
|
|
1149
|
-
function
|
|
1019
|
+
function w() {
|
|
1150
1020
|
return `
|
|
1151
|
-
@media (max-width: ${
|
|
1021
|
+
@media (max-width: ${k("medium")}px) {
|
|
1152
1022
|
.${e.builderBlock.id}-breakpoints {
|
|
1153
1023
|
flex-direction: var(--flex-dir-tablet);
|
|
1154
1024
|
align-items: stretch;
|
|
@@ -1160,7 +1030,7 @@ function Columns(e) {
|
|
|
1160
1030
|
}
|
|
1161
1031
|
}
|
|
1162
1032
|
|
|
1163
|
-
@media (max-width: ${
|
|
1033
|
+
@media (max-width: ${k("small")}px) {
|
|
1164
1034
|
.${e.builderBlock.id}-breakpoints {
|
|
1165
1035
|
flex-direction: var(--flex-dir);
|
|
1166
1036
|
align-items: stretch;
|
|
@@ -1173,30 +1043,30 @@ function Columns(e) {
|
|
|
1173
1043
|
},
|
|
1174
1044
|
`;
|
|
1175
1045
|
}
|
|
1176
|
-
return /* @__PURE__ */
|
|
1177
|
-
/* @__PURE__ */
|
|
1046
|
+
return /* @__PURE__ */ B(T, { children: [
|
|
1047
|
+
/* @__PURE__ */ B(
|
|
1178
1048
|
"div",
|
|
1179
1049
|
{
|
|
1180
1050
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
|
|
1181
|
-
style:
|
|
1051
|
+
style: y(),
|
|
1182
1052
|
children: [
|
|
1183
|
-
/* @__PURE__ */
|
|
1184
|
-
(
|
|
1185
|
-
|
|
1053
|
+
/* @__PURE__ */ s(ee, { id: "builderio-columns", styles: w() }),
|
|
1054
|
+
(E = e.columns) == null ? void 0 : E.map((p, v) => /* @__PURE__ */ s(
|
|
1055
|
+
ae,
|
|
1186
1056
|
{
|
|
1187
|
-
TagName:
|
|
1057
|
+
TagName: p.link ? e.builderLinkComponent || "a" : "div",
|
|
1188
1058
|
actionAttributes: {},
|
|
1189
1059
|
attributes: {
|
|
1190
|
-
...
|
|
1191
|
-
href:
|
|
1060
|
+
...p.link ? {
|
|
1061
|
+
href: p.link
|
|
1192
1062
|
} : {},
|
|
1193
|
-
[
|
|
1194
|
-
style:
|
|
1063
|
+
[H()]: "builder-column",
|
|
1064
|
+
style: Pe(x(v))
|
|
1195
1065
|
},
|
|
1196
|
-
children: /* @__PURE__ */
|
|
1197
|
-
|
|
1066
|
+
children: /* @__PURE__ */ s(
|
|
1067
|
+
j,
|
|
1198
1068
|
{
|
|
1199
|
-
path: `component.options.columns.${
|
|
1069
|
+
path: `component.options.columns.${v}.blocks`,
|
|
1200
1070
|
parent: e.builderBlock.id,
|
|
1201
1071
|
styleProp: {
|
|
1202
1072
|
flexGrow: "1"
|
|
@@ -1204,89 +1074,89 @@ function Columns(e) {
|
|
|
1204
1074
|
context: e.builderContext,
|
|
1205
1075
|
registeredComponents: e.builderComponents,
|
|
1206
1076
|
linkComponent: e.builderLinkComponent,
|
|
1207
|
-
blocks:
|
|
1077
|
+
blocks: p.blocks
|
|
1208
1078
|
}
|
|
1209
1079
|
)
|
|
1210
1080
|
},
|
|
1211
|
-
|
|
1081
|
+
v
|
|
1212
1082
|
))
|
|
1213
1083
|
]
|
|
1214
1084
|
}
|
|
1215
1085
|
),
|
|
1216
|
-
/* @__PURE__ */
|
|
1086
|
+
/* @__PURE__ */ s("style", { children: `.div-003f4b1c {
|
|
1217
1087
|
display: flex;
|
|
1218
1088
|
line-height: normal;
|
|
1219
1089
|
}` })
|
|
1220
1090
|
] });
|
|
1221
1091
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return /* @__PURE__ */
|
|
1092
|
+
function Et(e) {
|
|
1093
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1224
1094
|
}
|
|
1225
|
-
function
|
|
1095
|
+
function he(e) {
|
|
1226
1096
|
return e.replace(/http(s)?:/, "");
|
|
1227
1097
|
}
|
|
1228
|
-
function
|
|
1098
|
+
function Rt(e = "", t, n) {
|
|
1229
1099
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1230
1100
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1231
1101
|
}
|
|
1232
|
-
function
|
|
1102
|
+
function Pt(e, t) {
|
|
1233
1103
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1234
1104
|
return e;
|
|
1235
1105
|
if (t === "master")
|
|
1236
|
-
return
|
|
1106
|
+
return he(e);
|
|
1237
1107
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1238
1108
|
if (n) {
|
|
1239
|
-
const i = e.split(n[0]), o = n[3],
|
|
1240
|
-
return
|
|
1109
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1110
|
+
return he(`${i[0]}_${r}${o}`);
|
|
1241
1111
|
}
|
|
1242
1112
|
return null;
|
|
1243
1113
|
}
|
|
1244
|
-
function
|
|
1114
|
+
function ne(e) {
|
|
1245
1115
|
if (!e)
|
|
1246
1116
|
return e;
|
|
1247
1117
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1248
1118
|
if (e.match(/builder\.io/)) {
|
|
1249
1119
|
let n = e;
|
|
1250
1120
|
const i = Number(e.split("?width=")[1]);
|
|
1251
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1121
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1252
1122
|
}
|
|
1253
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1123
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1254
1124
|
}
|
|
1255
|
-
function
|
|
1256
|
-
var o,
|
|
1125
|
+
function Vt(e) {
|
|
1126
|
+
var o, r, a, l;
|
|
1257
1127
|
function t() {
|
|
1258
|
-
var
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1128
|
+
var m;
|
|
1129
|
+
const c = e.image || e.src;
|
|
1130
|
+
if (!c || // We can auto add srcset for cdn.builder.io and shopify
|
|
1261
1131
|
// images, otherwise you can supply this prop manually
|
|
1262
|
-
!(
|
|
1132
|
+
!(c.match(/builder\.io/) || c.match(/cdn\.shopify\.com/)))
|
|
1263
1133
|
return e.srcset;
|
|
1264
|
-
if (e.srcset && ((
|
|
1134
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1265
1135
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1266
|
-
return console.debug("Removed given srcset"),
|
|
1136
|
+
return console.debug("Removed given srcset"), ne(c);
|
|
1267
1137
|
} else if (e.image && !e.srcset)
|
|
1268
|
-
return
|
|
1269
|
-
return
|
|
1138
|
+
return ne(c);
|
|
1139
|
+
return ne(c);
|
|
1270
1140
|
}
|
|
1271
1141
|
function n() {
|
|
1272
|
-
var
|
|
1273
|
-
return (
|
|
1142
|
+
var d;
|
|
1143
|
+
return (d = t == null ? void 0 : t()) != null && d.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1274
1144
|
}
|
|
1275
1145
|
function i() {
|
|
1276
|
-
const
|
|
1146
|
+
const d = {
|
|
1277
1147
|
position: "absolute",
|
|
1278
1148
|
height: "100%",
|
|
1279
1149
|
width: "100%",
|
|
1280
1150
|
left: "0px",
|
|
1281
1151
|
top: "0px"
|
|
1282
1152
|
};
|
|
1283
|
-
return e.aspectRatio ?
|
|
1153
|
+
return e.aspectRatio ? d : void 0;
|
|
1284
1154
|
}
|
|
1285
|
-
return /* @__PURE__ */
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
n() ? /* @__PURE__ */
|
|
1289
|
-
/* @__PURE__ */
|
|
1155
|
+
return /* @__PURE__ */ B(T, { children: [
|
|
1156
|
+
/* @__PURE__ */ B(T, { children: [
|
|
1157
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1158
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1159
|
+
/* @__PURE__ */ s(
|
|
1290
1160
|
"img",
|
|
1291
1161
|
{
|
|
1292
1162
|
loading: "lazy",
|
|
@@ -1304,7 +1174,7 @@ function Image(e) {
|
|
|
1304
1174
|
}
|
|
1305
1175
|
)
|
|
1306
1176
|
] }),
|
|
1307
|
-
e.aspectRatio && !((
|
|
1177
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1308
1178
|
"div",
|
|
1309
1179
|
{
|
|
1310
1180
|
className: "builder-image-sizer div-a0c95e8c",
|
|
@@ -1313,10 +1183,10 @@ function Image(e) {
|
|
|
1313
1183
|
}
|
|
1314
1184
|
}
|
|
1315
1185
|
) : null,
|
|
1316
|
-
(
|
|
1317
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1186
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
|
|
1187
|
+
!e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-a0c95e8c-2", children: e.children }) : null
|
|
1318
1188
|
] }),
|
|
1319
|
-
/* @__PURE__ */
|
|
1189
|
+
/* @__PURE__ */ s("style", { children: `.img-a0c95e8c {
|
|
1320
1190
|
opacity: 1;
|
|
1321
1191
|
transition: opacity 0.2s ease-in-out;
|
|
1322
1192
|
}.div-a0c95e8c {
|
|
@@ -1335,8 +1205,8 @@ function Image(e) {
|
|
|
1335
1205
|
}` })
|
|
1336
1206
|
] });
|
|
1337
1207
|
}
|
|
1338
|
-
function
|
|
1339
|
-
return /* @__PURE__ */
|
|
1208
|
+
function Bt(e) {
|
|
1209
|
+
return /* @__PURE__ */ s(
|
|
1340
1210
|
"section",
|
|
1341
1211
|
{
|
|
1342
1212
|
...e.attributes,
|
|
@@ -1356,7 +1226,7 @@ function SectionComponent(e) {
|
|
|
1356
1226
|
}
|
|
1357
1227
|
);
|
|
1358
1228
|
}
|
|
1359
|
-
const
|
|
1229
|
+
const Wt = {
|
|
1360
1230
|
name: "Core:Button",
|
|
1361
1231
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1362
1232
|
defaultStyles: {
|
|
@@ -1389,7 +1259,7 @@ const componentInfo$f = {
|
|
|
1389
1259
|
}],
|
|
1390
1260
|
static: !0,
|
|
1391
1261
|
noWrap: !0
|
|
1392
|
-
},
|
|
1262
|
+
}, Nt = {
|
|
1393
1263
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1394
1264
|
name: "Columns",
|
|
1395
1265
|
isRSC: !0,
|
|
@@ -1568,7 +1438,7 @@ const componentInfo$f = {
|
|
|
1568
1438
|
});
|
|
1569
1439
|
}
|
|
1570
1440
|
const n = e.get("columns");
|
|
1571
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1441
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1572
1442
|
}
|
|
1573
1443
|
}, {
|
|
1574
1444
|
name: "space",
|
|
@@ -1590,13 +1460,13 @@ const componentInfo$f = {
|
|
|
1590
1460
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1591
1461
|
advanced: !0
|
|
1592
1462
|
}]
|
|
1593
|
-
},
|
|
1463
|
+
}, At = {
|
|
1594
1464
|
name: "Fragment",
|
|
1595
1465
|
static: !0,
|
|
1596
1466
|
hidden: !0,
|
|
1597
1467
|
canHaveChildren: !0,
|
|
1598
1468
|
noWrap: !0
|
|
1599
|
-
},
|
|
1469
|
+
}, $t = {
|
|
1600
1470
|
name: "Image",
|
|
1601
1471
|
static: !0,
|
|
1602
1472
|
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",
|
|
@@ -1616,29 +1486,29 @@ const componentInfo$f = {
|
|
|
1616
1486
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1617
1487
|
onChange: (e) => {
|
|
1618
1488
|
e.delete("srcset"), e.delete("noWebp");
|
|
1619
|
-
function n(
|
|
1620
|
-
return new Promise((
|
|
1621
|
-
const
|
|
1622
|
-
let
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
},
|
|
1626
|
-
console.warn("Image load failed", g.error),
|
|
1627
|
-
}),
|
|
1628
|
-
|
|
1629
|
-
},
|
|
1489
|
+
function n(a, l = 6e4) {
|
|
1490
|
+
return new Promise((d, c) => {
|
|
1491
|
+
const m = document.createElement("img");
|
|
1492
|
+
let f = !1;
|
|
1493
|
+
m.onload = () => {
|
|
1494
|
+
f = !0, d(m);
|
|
1495
|
+
}, m.addEventListener("error", (g) => {
|
|
1496
|
+
console.warn("Image load failed", g.error), c(g.error);
|
|
1497
|
+
}), m.src = a, setTimeout(() => {
|
|
1498
|
+
f || c(new Error("Image load timed out"));
|
|
1499
|
+
}, l);
|
|
1630
1500
|
});
|
|
1631
1501
|
}
|
|
1632
|
-
function i(
|
|
1633
|
-
return Math.round(
|
|
1502
|
+
function i(a) {
|
|
1503
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1634
1504
|
}
|
|
1635
|
-
const o = e.get("image"),
|
|
1636
|
-
if (fetch(o).then((
|
|
1637
|
-
|
|
1638
|
-
}), o && (!
|
|
1639
|
-
return n(o).then((
|
|
1640
|
-
const
|
|
1641
|
-
e.get("image") === o && (!
|
|
1505
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1506
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1507
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1508
|
+
}), o && (!r || r === 0.7041))
|
|
1509
|
+
return n(o).then((a) => {
|
|
1510
|
+
const l = e.get("aspectRatio");
|
|
1511
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1642
1512
|
});
|
|
1643
1513
|
}
|
|
1644
1514
|
}, {
|
|
@@ -1696,7 +1566,7 @@ const componentInfo$f = {
|
|
|
1696
1566
|
advanced: !0,
|
|
1697
1567
|
defaultValue: 0.7041
|
|
1698
1568
|
}]
|
|
1699
|
-
},
|
|
1569
|
+
}, Ft = {
|
|
1700
1570
|
name: "Core:Section",
|
|
1701
1571
|
static: !0,
|
|
1702
1572
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1735,7 +1605,7 @@ const componentInfo$f = {
|
|
|
1735
1605
|
}
|
|
1736
1606
|
}
|
|
1737
1607
|
}]
|
|
1738
|
-
},
|
|
1608
|
+
}, Lt = {
|
|
1739
1609
|
name: "Slot",
|
|
1740
1610
|
isRSC: !0,
|
|
1741
1611
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1749,9 +1619,9 @@ const componentInfo$f = {
|
|
|
1749
1619
|
defaultValue: "children"
|
|
1750
1620
|
}]
|
|
1751
1621
|
};
|
|
1752
|
-
function
|
|
1622
|
+
function Dt(e) {
|
|
1753
1623
|
var t, n, i;
|
|
1754
|
-
return /* @__PURE__ */
|
|
1624
|
+
return /* @__PURE__ */ s(
|
|
1755
1625
|
"div",
|
|
1756
1626
|
{
|
|
1757
1627
|
style: {
|
|
@@ -1760,8 +1630,8 @@ function Slot(e) {
|
|
|
1760
1630
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1761
1631
|
"builder-slot": e.name
|
|
1762
1632
|
},
|
|
1763
|
-
children: /* @__PURE__ */
|
|
1764
|
-
|
|
1633
|
+
children: /* @__PURE__ */ s(
|
|
1634
|
+
j,
|
|
1765
1635
|
{
|
|
1766
1636
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1767
1637
|
path: `symbol.data.${e.name}`,
|
|
@@ -1772,7 +1642,7 @@ function Slot(e) {
|
|
|
1772
1642
|
}
|
|
1773
1643
|
);
|
|
1774
1644
|
}
|
|
1775
|
-
const
|
|
1645
|
+
const Mt = {
|
|
1776
1646
|
name: "Symbol",
|
|
1777
1647
|
noWrap: !0,
|
|
1778
1648
|
static: !0,
|
|
@@ -1805,7 +1675,7 @@ const componentInfo$9 = {
|
|
|
1805
1675
|
hideFromUI: !0,
|
|
1806
1676
|
type: "boolean"
|
|
1807
1677
|
}]
|
|
1808
|
-
},
|
|
1678
|
+
}, jt = {
|
|
1809
1679
|
name: "Text",
|
|
1810
1680
|
static: !0,
|
|
1811
1681
|
isRSC: !0,
|
|
@@ -1824,9 +1694,9 @@ const componentInfo$9 = {
|
|
|
1824
1694
|
textAlign: "center"
|
|
1825
1695
|
}
|
|
1826
1696
|
};
|
|
1827
|
-
function
|
|
1697
|
+
function Ot(e) {
|
|
1828
1698
|
var t;
|
|
1829
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ s(
|
|
1830
1700
|
"div",
|
|
1831
1701
|
{
|
|
1832
1702
|
className: "builder-text",
|
|
@@ -1837,7 +1707,7 @@ function Text(e) {
|
|
|
1837
1707
|
}
|
|
1838
1708
|
);
|
|
1839
1709
|
}
|
|
1840
|
-
const
|
|
1710
|
+
const Ut = {
|
|
1841
1711
|
name: "Custom Code",
|
|
1842
1712
|
static: !0,
|
|
1843
1713
|
requiredPermissions: ["editCode"],
|
|
@@ -1860,36 +1730,36 @@ const componentInfo$7 = {
|
|
|
1860
1730
|
advanced: !0
|
|
1861
1731
|
}]
|
|
1862
1732
|
};
|
|
1863
|
-
function
|
|
1864
|
-
const t =
|
|
1865
|
-
return
|
|
1866
|
-
var
|
|
1867
|
-
if (!((
|
|
1733
|
+
function Ht(e) {
|
|
1734
|
+
const t = Z(null), [n, i] = I(() => []), [o, r] = I(() => []);
|
|
1735
|
+
return V(() => {
|
|
1736
|
+
var l;
|
|
1737
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
1868
1738
|
return;
|
|
1869
|
-
const
|
|
1870
|
-
for (let
|
|
1871
|
-
const
|
|
1872
|
-
if (
|
|
1873
|
-
if (n.includes(
|
|
1739
|
+
const a = t.current.getElementsByTagName("script");
|
|
1740
|
+
for (let d = 0; d < a.length; d++) {
|
|
1741
|
+
const c = a[d];
|
|
1742
|
+
if (c.src) {
|
|
1743
|
+
if (n.includes(c.src))
|
|
1874
1744
|
continue;
|
|
1875
|
-
n.push(
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1878
|
-
} else if (!
|
|
1745
|
+
n.push(c.src);
|
|
1746
|
+
const m = document.createElement("script");
|
|
1747
|
+
m.async = !0, m.src = c.src, document.head.appendChild(m);
|
|
1748
|
+
} else if (!c.type || [
|
|
1879
1749
|
"text/javascript",
|
|
1880
1750
|
"application/javascript",
|
|
1881
1751
|
"application/ecmascript"
|
|
1882
|
-
].includes(
|
|
1883
|
-
if (o.includes(
|
|
1752
|
+
].includes(c.type)) {
|
|
1753
|
+
if (o.includes(c.innerText))
|
|
1884
1754
|
continue;
|
|
1885
1755
|
try {
|
|
1886
|
-
o.push(
|
|
1887
|
-
} catch (
|
|
1888
|
-
console.warn("`CustomCode`: Error running script:",
|
|
1756
|
+
o.push(c.innerText), new Function(c.innerText)();
|
|
1757
|
+
} catch (m) {
|
|
1758
|
+
console.warn("`CustomCode`: Error running script:", m);
|
|
1889
1759
|
}
|
|
1890
1760
|
}
|
|
1891
1761
|
}
|
|
1892
|
-
}, []), /* @__PURE__ */
|
|
1762
|
+
}, []), /* @__PURE__ */ s(
|
|
1893
1763
|
"div",
|
|
1894
1764
|
{
|
|
1895
1765
|
ref: t,
|
|
@@ -1898,7 +1768,7 @@ function CustomCode(e) {
|
|
|
1898
1768
|
}
|
|
1899
1769
|
);
|
|
1900
1770
|
}
|
|
1901
|
-
const
|
|
1771
|
+
const Kt = {
|
|
1902
1772
|
name: "Embed",
|
|
1903
1773
|
static: !0,
|
|
1904
1774
|
inputs: [{
|
|
@@ -1923,30 +1793,30 @@ const componentInfo$6 = {
|
|
|
1923
1793
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1924
1794
|
hideFromUI: !0
|
|
1925
1795
|
}]
|
|
1926
|
-
},
|
|
1927
|
-
function
|
|
1928
|
-
const t =
|
|
1929
|
-
function
|
|
1796
|
+
}, qt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => qt.includes(e.type);
|
|
1797
|
+
function zt(e) {
|
|
1798
|
+
const t = Z(null), [n, i] = I(() => []), [o, r] = I(() => []), [a, l] = I(() => !1);
|
|
1799
|
+
function d() {
|
|
1930
1800
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1931
1801
|
return;
|
|
1932
|
-
const
|
|
1933
|
-
for (let
|
|
1934
|
-
const
|
|
1935
|
-
if (
|
|
1936
|
-
n.push(
|
|
1802
|
+
const c = t.current.getElementsByTagName("script");
|
|
1803
|
+
for (let m = 0; m < c.length; m++) {
|
|
1804
|
+
const f = c[m];
|
|
1805
|
+
if (f.src && !n.includes(f.src)) {
|
|
1806
|
+
n.push(f.src);
|
|
1937
1807
|
const g = document.createElement("script");
|
|
1938
|
-
g.async = !0, g.src =
|
|
1939
|
-
} else if (
|
|
1808
|
+
g.async = !0, g.src = f.src, document.head.appendChild(g);
|
|
1809
|
+
} else if (_t(f) && !o.includes(f.innerText))
|
|
1940
1810
|
try {
|
|
1941
|
-
o.push(
|
|
1811
|
+
o.push(f.innerText), new Function(f.innerText)();
|
|
1942
1812
|
} catch (g) {
|
|
1943
1813
|
console.warn("`Embed`: Error running script:", g);
|
|
1944
1814
|
}
|
|
1945
1815
|
}
|
|
1946
1816
|
}
|
|
1947
|
-
return
|
|
1948
|
-
t.current && !
|
|
1949
|
-
}, [t.current,
|
|
1817
|
+
return V(() => {
|
|
1818
|
+
t.current && !a && (l(!0), d());
|
|
1819
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
1950
1820
|
"div",
|
|
1951
1821
|
{
|
|
1952
1822
|
className: "builder-embed",
|
|
@@ -1955,7 +1825,7 @@ function Embed(e) {
|
|
|
1955
1825
|
}
|
|
1956
1826
|
);
|
|
1957
1827
|
}
|
|
1958
|
-
const
|
|
1828
|
+
const Jt = {
|
|
1959
1829
|
name: "Form:Form",
|
|
1960
1830
|
// editableTags: ['builder-form-error']
|
|
1961
1831
|
defaults: {
|
|
@@ -2186,99 +2056,99 @@ const componentInfo$5 = {
|
|
|
2186
2056
|
}
|
|
2187
2057
|
}
|
|
2188
2058
|
}]
|
|
2189
|
-
},
|
|
2059
|
+
}, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
|
|
2190
2060
|
const e = process.env.NODE_ENV || "production";
|
|
2191
|
-
return
|
|
2192
|
-
},
|
|
2193
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2061
|
+
return Yt.includes(e) ? e : "production";
|
|
2062
|
+
}, Qt = (e, t, n) => {
|
|
2063
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
2194
2064
|
return i === void 0 || i === e ? n : i;
|
|
2195
2065
|
};
|
|
2196
|
-
function
|
|
2197
|
-
var
|
|
2198
|
-
const t =
|
|
2199
|
-
function
|
|
2200
|
-
var
|
|
2201
|
-
const
|
|
2066
|
+
function Xt(e) {
|
|
2067
|
+
var f, g;
|
|
2068
|
+
const t = Z(null), [n, i] = I(() => "unsubmitted"), [o, r] = I(() => null), [a, l] = I(() => "");
|
|
2069
|
+
function d(y) {
|
|
2070
|
+
var k, w;
|
|
2071
|
+
const x = {
|
|
2202
2072
|
...e.builderContext.rootState,
|
|
2203
|
-
...
|
|
2073
|
+
...y
|
|
2204
2074
|
};
|
|
2205
|
-
e.builderContext.rootSetState ? (
|
|
2075
|
+
e.builderContext.rootSetState ? (w = (k = e.builderContext).rootSetState) == null || w.call(k, x) : e.builderContext.rootState = x;
|
|
2206
2076
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return
|
|
2077
|
+
function c() {
|
|
2078
|
+
return A() && e.previewState || n;
|
|
2209
2079
|
}
|
|
2210
|
-
function
|
|
2211
|
-
var
|
|
2212
|
-
const
|
|
2080
|
+
function m(y) {
|
|
2081
|
+
var k;
|
|
2082
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2213
2083
|
if (e.sendSubmissionsTo === "zapier")
|
|
2214
|
-
|
|
2215
|
-
else if (
|
|
2084
|
+
y.preventDefault();
|
|
2085
|
+
else if (x) {
|
|
2216
2086
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2217
|
-
|
|
2087
|
+
y.preventDefault();
|
|
2218
2088
|
return;
|
|
2219
2089
|
}
|
|
2220
|
-
|
|
2221
|
-
const
|
|
2222
|
-
let
|
|
2223
|
-
const
|
|
2224
|
-
|
|
2225
|
-
).filter((
|
|
2226
|
-
let
|
|
2227
|
-
const
|
|
2228
|
-
if (
|
|
2229
|
-
if (
|
|
2230
|
-
if (
|
|
2231
|
-
return
|
|
2232
|
-
key:
|
|
2233
|
-
value:
|
|
2090
|
+
y.preventDefault();
|
|
2091
|
+
const w = y.currentTarget, E = e.customHeaders || {};
|
|
2092
|
+
let p;
|
|
2093
|
+
const v = new FormData(w), P = Array.from(
|
|
2094
|
+
y.currentTarget.querySelectorAll("input,select,textarea")
|
|
2095
|
+
).filter((u) => !!u.name).map((u) => {
|
|
2096
|
+
let h;
|
|
2097
|
+
const C = u.name;
|
|
2098
|
+
if (u instanceof HTMLInputElement)
|
|
2099
|
+
if (u.type === "radio") {
|
|
2100
|
+
if (u.checked)
|
|
2101
|
+
return h = u.name, {
|
|
2102
|
+
key: C,
|
|
2103
|
+
value: h
|
|
2234
2104
|
};
|
|
2235
|
-
} else if (
|
|
2236
|
-
|
|
2237
|
-
else if (
|
|
2238
|
-
const b =
|
|
2239
|
-
isNaN(b) || (
|
|
2105
|
+
} else if (u.type === "checkbox")
|
|
2106
|
+
h = u.checked;
|
|
2107
|
+
else if (u.type === "number" || u.type === "range") {
|
|
2108
|
+
const b = u.valueAsNumber;
|
|
2109
|
+
isNaN(b) || (h = b);
|
|
2240
2110
|
} else
|
|
2241
|
-
|
|
2111
|
+
u.type === "file" ? h = u.files : h = u.value;
|
|
2242
2112
|
else
|
|
2243
|
-
|
|
2113
|
+
h = u.value;
|
|
2244
2114
|
return {
|
|
2245
|
-
key:
|
|
2246
|
-
value:
|
|
2115
|
+
key: C,
|
|
2116
|
+
value: h
|
|
2247
2117
|
};
|
|
2248
2118
|
});
|
|
2249
|
-
let
|
|
2250
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2251
|
-
(
|
|
2252
|
-
}),
|
|
2253
|
-
|
|
2119
|
+
let R = e.contentType;
|
|
2120
|
+
if (e.sendSubmissionsTo === "email" && (R = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
|
|
2121
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (R = "multipart/form-data");
|
|
2122
|
+
}), R !== "application/json")
|
|
2123
|
+
p = v;
|
|
2254
2124
|
else {
|
|
2255
|
-
const
|
|
2256
|
-
Array.from(
|
|
2257
|
-
|
|
2258
|
-
}),
|
|
2125
|
+
const u = {};
|
|
2126
|
+
Array.from(P).forEach(({ value: h, key: C }) => {
|
|
2127
|
+
ke(u, C, h);
|
|
2128
|
+
}), p = JSON.stringify(u);
|
|
2259
2129
|
}
|
|
2260
|
-
|
|
2261
|
-
const
|
|
2262
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2130
|
+
R && R !== "multipart/form-data" && (x && ((k = e.action) != null && k.includes("zapier.com")) || (E["content-type"] = R));
|
|
2131
|
+
const F = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2132
|
+
if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
|
|
2263
2133
|
return;
|
|
2264
2134
|
i("sending");
|
|
2265
|
-
const
|
|
2135
|
+
const L = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2266
2136
|
e.sendSubmissionsToEmail || ""
|
|
2267
2137
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2268
2138
|
fetch(
|
|
2269
|
-
e.sendSubmissionsTo === "email" ?
|
|
2270
|
-
{ body:
|
|
2139
|
+
e.sendSubmissionsTo === "email" ? L : e.action,
|
|
2140
|
+
{ body: p, headers: E, method: e.method || "post" }
|
|
2271
2141
|
).then(
|
|
2272
|
-
async (
|
|
2273
|
-
let
|
|
2274
|
-
const
|
|
2275
|
-
if (
|
|
2276
|
-
let b =
|
|
2277
|
-
b && (typeof b != "string" && (b = JSON.stringify(b)),
|
|
2142
|
+
async (u) => {
|
|
2143
|
+
let h;
|
|
2144
|
+
const C = u.headers.get("content-type");
|
|
2145
|
+
if (C && C.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2146
|
+
let b = Qt(h, e.errorMessagePath);
|
|
2147
|
+
b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
|
|
2278
2148
|
}
|
|
2279
|
-
if (
|
|
2149
|
+
if (r(h), i(u.ok ? "success" : "error"), u.ok) {
|
|
2280
2150
|
const b = new CustomEvent("submit:success", {
|
|
2281
|
-
detail: { res:
|
|
2151
|
+
detail: { res: u, body: h }
|
|
2282
2152
|
});
|
|
2283
2153
|
if (t.current) {
|
|
2284
2154
|
if (t.current.dispatchEvent(b), b.defaultPrevented)
|
|
@@ -2287,26 +2157,26 @@ function FormComponent(e) {
|
|
|
2287
2157
|
}
|
|
2288
2158
|
if (e.successUrl)
|
|
2289
2159
|
if (t.current) {
|
|
2290
|
-
const
|
|
2160
|
+
const S = new CustomEvent("route", {
|
|
2291
2161
|
detail: { url: e.successUrl }
|
|
2292
2162
|
});
|
|
2293
|
-
t.current.dispatchEvent(
|
|
2163
|
+
t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
|
|
2294
2164
|
} else
|
|
2295
2165
|
location.href = e.successUrl;
|
|
2296
2166
|
}
|
|
2297
2167
|
},
|
|
2298
|
-
(
|
|
2299
|
-
const
|
|
2300
|
-
detail: { error:
|
|
2168
|
+
(u) => {
|
|
2169
|
+
const h = new CustomEvent("submit:error", {
|
|
2170
|
+
detail: { error: u }
|
|
2301
2171
|
});
|
|
2302
|
-
t.current && (t.current.dispatchEvent(
|
|
2172
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(u), i("error"));
|
|
2303
2173
|
}
|
|
2304
2174
|
);
|
|
2305
2175
|
}
|
|
2306
2176
|
}
|
|
2307
|
-
return /* @__PURE__ */
|
|
2177
|
+
return /* @__PURE__ */ B(T, { children: [
|
|
2308
2178
|
" ",
|
|
2309
|
-
/* @__PURE__ */
|
|
2179
|
+
/* @__PURE__ */ B(
|
|
2310
2180
|
"form",
|
|
2311
2181
|
{
|
|
2312
2182
|
validate: e.validate,
|
|
@@ -2314,38 +2184,38 @@ function FormComponent(e) {
|
|
|
2314
2184
|
action: !e.sendWithJs && e.action,
|
|
2315
2185
|
method: e.method,
|
|
2316
2186
|
name: e.name,
|
|
2317
|
-
onSubmit: (
|
|
2187
|
+
onSubmit: (y) => m(y),
|
|
2318
2188
|
...e.attributes,
|
|
2319
2189
|
children: [
|
|
2320
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2321
|
-
|
|
2190
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, x) => /* @__PURE__ */ s(
|
|
2191
|
+
_,
|
|
2322
2192
|
{
|
|
2323
|
-
block:
|
|
2193
|
+
block: y,
|
|
2324
2194
|
context: e.builderContext,
|
|
2325
2195
|
registeredComponents: e.builderComponents,
|
|
2326
2196
|
linkComponent: e.builderLinkComponent
|
|
2327
2197
|
},
|
|
2328
|
-
`form-block-${
|
|
2198
|
+
`form-block-${x}`
|
|
2329
2199
|
)) }) : null,
|
|
2330
|
-
|
|
2331
|
-
|
|
2200
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2201
|
+
j,
|
|
2332
2202
|
{
|
|
2333
2203
|
path: "errorMessage",
|
|
2334
2204
|
blocks: e.errorMessage,
|
|
2335
2205
|
context: e.builderContext
|
|
2336
2206
|
}
|
|
2337
2207
|
) : null,
|
|
2338
|
-
|
|
2339
|
-
|
|
2208
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2209
|
+
j,
|
|
2340
2210
|
{
|
|
2341
2211
|
path: "sendingMessage",
|
|
2342
2212
|
blocks: e.sendingMessage,
|
|
2343
2213
|
context: e.builderContext
|
|
2344
2214
|
}
|
|
2345
2215
|
) : null,
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2216
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
|
|
2217
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2218
|
+
j,
|
|
2349
2219
|
{
|
|
2350
2220
|
path: "successMessage",
|
|
2351
2221
|
blocks: e.successMessage,
|
|
@@ -2356,11 +2226,11 @@ function FormComponent(e) {
|
|
|
2356
2226
|
}
|
|
2357
2227
|
),
|
|
2358
2228
|
" ",
|
|
2359
|
-
/* @__PURE__ */
|
|
2229
|
+
/* @__PURE__ */ s("style", { children: ".pre-31bf8a14 { padding: 10px; color: red; text-align: center; }" }),
|
|
2360
2230
|
" "
|
|
2361
2231
|
] });
|
|
2362
2232
|
}
|
|
2363
|
-
const
|
|
2233
|
+
const Zt = {
|
|
2364
2234
|
name: "Form:Input",
|
|
2365
2235
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2366
2236
|
inputs: [
|
|
@@ -2412,12 +2282,12 @@ const componentInfo$4 = {
|
|
|
2412
2282
|
borderColor: "#ccc"
|
|
2413
2283
|
}
|
|
2414
2284
|
};
|
|
2415
|
-
function
|
|
2416
|
-
return /* @__PURE__ */
|
|
2285
|
+
function en(e) {
|
|
2286
|
+
return /* @__PURE__ */ ve(
|
|
2417
2287
|
"input",
|
|
2418
2288
|
{
|
|
2419
2289
|
...e.attributes,
|
|
2420
|
-
key:
|
|
2290
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2421
2291
|
placeholder: e.placeholder,
|
|
2422
2292
|
type: e.type,
|
|
2423
2293
|
name: e.name,
|
|
@@ -2427,7 +2297,7 @@ function FormInputComponent(e) {
|
|
|
2427
2297
|
}
|
|
2428
2298
|
);
|
|
2429
2299
|
}
|
|
2430
|
-
const
|
|
2300
|
+
const tn = {
|
|
2431
2301
|
name: "Form:Select",
|
|
2432
2302
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2433
2303
|
defaultStyles: {
|
|
@@ -2470,21 +2340,21 @@ const componentInfo$3 = {
|
|
|
2470
2340
|
static: !0,
|
|
2471
2341
|
noWrap: !0
|
|
2472
2342
|
};
|
|
2473
|
-
function
|
|
2343
|
+
function nn(e) {
|
|
2474
2344
|
var t;
|
|
2475
|
-
return /* @__PURE__ */
|
|
2345
|
+
return /* @__PURE__ */ ve(
|
|
2476
2346
|
"select",
|
|
2477
2347
|
{
|
|
2478
2348
|
...e.attributes,
|
|
2479
2349
|
value: e.value,
|
|
2480
|
-
key:
|
|
2350
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2481
2351
|
defaultValue: e.defaultValue,
|
|
2482
2352
|
name: e.name
|
|
2483
2353
|
},
|
|
2484
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2354
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2485
2355
|
);
|
|
2486
2356
|
}
|
|
2487
|
-
const
|
|
2357
|
+
const on = {
|
|
2488
2358
|
name: "Form:SubmitButton",
|
|
2489
2359
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2490
2360
|
defaultStyles: {
|
|
@@ -2510,10 +2380,10 @@ const componentInfo$2 = {
|
|
|
2510
2380
|
// TODO: defaultChildren
|
|
2511
2381
|
// canHaveChildren: true,
|
|
2512
2382
|
};
|
|
2513
|
-
function
|
|
2514
|
-
return /* @__PURE__ */
|
|
2383
|
+
function an(e) {
|
|
2384
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2515
2385
|
}
|
|
2516
|
-
const
|
|
2386
|
+
const rn = {
|
|
2517
2387
|
// friendlyName?
|
|
2518
2388
|
name: "Raw:Img",
|
|
2519
2389
|
hideFromInsertMenu: !0,
|
|
@@ -2528,8 +2398,8 @@ const componentInfo$1 = {
|
|
|
2528
2398
|
noWrap: !0,
|
|
2529
2399
|
static: !0
|
|
2530
2400
|
};
|
|
2531
|
-
function
|
|
2532
|
-
return /* @__PURE__ */
|
|
2401
|
+
function ln(e) {
|
|
2402
|
+
return /* @__PURE__ */ s(
|
|
2533
2403
|
"img",
|
|
2534
2404
|
{
|
|
2535
2405
|
style: {
|
|
@@ -2540,10 +2410,10 @@ function ImgComponent(e) {
|
|
|
2540
2410
|
src: e.imgSrc || e.image,
|
|
2541
2411
|
...e.attributes
|
|
2542
2412
|
},
|
|
2543
|
-
|
|
2413
|
+
A() && e.imgSrc || "default-key"
|
|
2544
2414
|
);
|
|
2545
2415
|
}
|
|
2546
|
-
const
|
|
2416
|
+
const sn = {
|
|
2547
2417
|
name: "Video",
|
|
2548
2418
|
canHaveChildren: !0,
|
|
2549
2419
|
defaultStyles: {
|
|
@@ -2625,8 +2495,8 @@ const componentInfo = {
|
|
|
2625
2495
|
advanced: !0
|
|
2626
2496
|
}]
|
|
2627
2497
|
};
|
|
2628
|
-
function
|
|
2629
|
-
var i, o, a,
|
|
2498
|
+
function cn(e) {
|
|
2499
|
+
var i, o, r, a, l, d, c;
|
|
2630
2500
|
function t() {
|
|
2631
2501
|
return {
|
|
2632
2502
|
...e.autoPlay === !0 ? {
|
|
@@ -2651,14 +2521,14 @@ function Video(e) {
|
|
|
2651
2521
|
...t()
|
|
2652
2522
|
};
|
|
2653
2523
|
}
|
|
2654
|
-
return /* @__PURE__ */
|
|
2524
|
+
return /* @__PURE__ */ B(
|
|
2655
2525
|
"div",
|
|
2656
2526
|
{
|
|
2657
2527
|
style: {
|
|
2658
2528
|
position: "relative"
|
|
2659
2529
|
},
|
|
2660
2530
|
children: [
|
|
2661
|
-
/* @__PURE__ */
|
|
2531
|
+
/* @__PURE__ */ s(
|
|
2662
2532
|
"video",
|
|
2663
2533
|
{
|
|
2664
2534
|
className: "builder-video",
|
|
@@ -2680,10 +2550,10 @@ function Video(e) {
|
|
|
2680
2550
|
},
|
|
2681
2551
|
src: e.video || "no-src",
|
|
2682
2552
|
poster: e.posterImage,
|
|
2683
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
2553
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
2684
2554
|
}
|
|
2685
2555
|
),
|
|
2686
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
2556
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
2687
2557
|
"div",
|
|
2688
2558
|
{
|
|
2689
2559
|
style: {
|
|
@@ -2694,7 +2564,7 @@ function Video(e) {
|
|
|
2694
2564
|
}
|
|
2695
2565
|
}
|
|
2696
2566
|
) : null,
|
|
2697
|
-
(
|
|
2567
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
2698
2568
|
"div",
|
|
2699
2569
|
{
|
|
2700
2570
|
style: {
|
|
@@ -2705,7 +2575,7 @@ function Video(e) {
|
|
|
2705
2575
|
children: e.children
|
|
2706
2576
|
}
|
|
2707
2577
|
) : null,
|
|
2708
|
-
(
|
|
2578
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2709
2579
|
"div",
|
|
2710
2580
|
{
|
|
2711
2581
|
style: {
|
|
@@ -2726,55 +2596,55 @@ function Video(e) {
|
|
|
2726
2596
|
}
|
|
2727
2597
|
);
|
|
2728
2598
|
}
|
|
2729
|
-
const
|
|
2730
|
-
component:
|
|
2731
|
-
...
|
|
2599
|
+
const dn = () => [{
|
|
2600
|
+
component: Ht,
|
|
2601
|
+
...Ut
|
|
2732
2602
|
}, {
|
|
2733
|
-
component:
|
|
2734
|
-
...
|
|
2603
|
+
component: zt,
|
|
2604
|
+
...Kt
|
|
2735
2605
|
}, {
|
|
2736
|
-
component:
|
|
2737
|
-
...
|
|
2606
|
+
component: Xt,
|
|
2607
|
+
...Jt
|
|
2738
2608
|
}, {
|
|
2739
|
-
component:
|
|
2740
|
-
...
|
|
2609
|
+
component: en,
|
|
2610
|
+
...Zt
|
|
2741
2611
|
}, {
|
|
2742
|
-
component:
|
|
2743
|
-
...
|
|
2612
|
+
component: an,
|
|
2613
|
+
...on
|
|
2744
2614
|
}, {
|
|
2745
|
-
component:
|
|
2746
|
-
...
|
|
2615
|
+
component: nn,
|
|
2616
|
+
...tn
|
|
2747
2617
|
}, {
|
|
2748
|
-
component:
|
|
2749
|
-
...
|
|
2618
|
+
component: ln,
|
|
2619
|
+
...rn
|
|
2750
2620
|
}, {
|
|
2751
|
-
component:
|
|
2752
|
-
...
|
|
2753
|
-
}],
|
|
2754
|
-
component:
|
|
2755
|
-
...
|
|
2621
|
+
component: cn,
|
|
2622
|
+
...sn
|
|
2623
|
+
}], ge = () => [{
|
|
2624
|
+
component: Xe,
|
|
2625
|
+
...Wt
|
|
2756
2626
|
}, {
|
|
2757
|
-
component:
|
|
2758
|
-
...
|
|
2627
|
+
component: Tt,
|
|
2628
|
+
...Nt
|
|
2759
2629
|
}, {
|
|
2760
|
-
component:
|
|
2761
|
-
...
|
|
2630
|
+
component: Et,
|
|
2631
|
+
...At
|
|
2762
2632
|
}, {
|
|
2763
|
-
component:
|
|
2764
|
-
|
|
2633
|
+
component: Vt,
|
|
2634
|
+
...$t
|
|
2765
2635
|
}, {
|
|
2766
|
-
component:
|
|
2767
|
-
...
|
|
2636
|
+
component: Bt,
|
|
2637
|
+
...Ft
|
|
2768
2638
|
}, {
|
|
2769
|
-
component:
|
|
2770
|
-
...
|
|
2639
|
+
component: Dt,
|
|
2640
|
+
...Lt
|
|
2771
2641
|
}, {
|
|
2772
|
-
component:
|
|
2773
|
-
...
|
|
2642
|
+
component: Wn,
|
|
2643
|
+
...Mt
|
|
2774
2644
|
}, {
|
|
2775
|
-
component:
|
|
2776
|
-
...
|
|
2777
|
-
}, ...
|
|
2645
|
+
component: Ot,
|
|
2646
|
+
...jt
|
|
2647
|
+
}, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2778
2648
|
function getAndSetVariantId() {
|
|
2779
2649
|
function setCookie(name, value, days) {
|
|
2780
2650
|
let expires = '';
|
|
@@ -2830,7 +2700,7 @@ const getExtraComponents = () => [{
|
|
|
2830
2700
|
}).join('');
|
|
2831
2701
|
styleEl.innerHTML = newStyleStr;
|
|
2832
2702
|
}
|
|
2833
|
-
}`,
|
|
2703
|
+
}`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2834
2704
|
if (!navigator.cookieEnabled) {
|
|
2835
2705
|
return;
|
|
2836
2706
|
}
|
|
@@ -2864,27 +2734,27 @@ const getExtraComponents = () => [{
|
|
|
2864
2734
|
thisScriptEl?.remove();
|
|
2865
2735
|
}
|
|
2866
2736
|
return;
|
|
2867
|
-
}`,
|
|
2737
|
+
}`, Ne = "builderIoAbTest", Ae = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2868
2738
|
...t,
|
|
2869
2739
|
testVariationId: t.id,
|
|
2870
2740
|
id: e == null ? void 0 : e.id
|
|
2871
|
-
})),
|
|
2741
|
+
})), fn = ({
|
|
2872
2742
|
canTrack: e,
|
|
2873
2743
|
content: t
|
|
2874
|
-
}) => !(!(
|
|
2875
|
-
window.${
|
|
2876
|
-
window.${
|
|
2877
|
-
`,
|
|
2878
|
-
window.${
|
|
2879
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2880
|
-
)`,
|
|
2744
|
+
}) => !(!(J(t).length > 0) || !e || G()), hn = (e) => e === "react" || e === "reactNative", $e = hn(q), gn = () => `
|
|
2745
|
+
window.${Ne} = ${un}
|
|
2746
|
+
window.${Ae} = ${mn}
|
|
2747
|
+
`, bn = (e, t) => `
|
|
2748
|
+
window.${Ne}(
|
|
2749
|
+
"${t}",${JSON.stringify(e)}, ${$e}
|
|
2750
|
+
)`, yn = ({
|
|
2881
2751
|
contentId: e,
|
|
2882
2752
|
variationId: t
|
|
2883
|
-
}) => `window.${
|
|
2884
|
-
"${t}", "${e}", ${
|
|
2753
|
+
}) => `window.${Ae}(
|
|
2754
|
+
"${t}", "${e}", ${$e}
|
|
2885
2755
|
)`;
|
|
2886
|
-
function
|
|
2887
|
-
return /* @__PURE__ */
|
|
2756
|
+
function ie(e) {
|
|
2757
|
+
return /* @__PURE__ */ s(
|
|
2888
2758
|
"script",
|
|
2889
2759
|
{
|
|
2890
2760
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -2892,10 +2762,10 @@ function InlinedScript(e) {
|
|
|
2892
2762
|
}
|
|
2893
2763
|
);
|
|
2894
2764
|
}
|
|
2895
|
-
function
|
|
2765
|
+
function be(e) {
|
|
2896
2766
|
return Math.round(e * 1e3) / 1e3;
|
|
2897
2767
|
}
|
|
2898
|
-
const
|
|
2768
|
+
const pn = (e, t, n = !0) => {
|
|
2899
2769
|
if (!(e instanceof HTMLElement))
|
|
2900
2770
|
return null;
|
|
2901
2771
|
let i = n ? e : e.parentElement;
|
|
@@ -2906,28 +2776,28 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2906
2776
|
return i;
|
|
2907
2777
|
} while (i = i.parentElement);
|
|
2908
2778
|
return null;
|
|
2909
|
-
},
|
|
2779
|
+
}, xn = (e) => pn(e, (t) => {
|
|
2910
2780
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2911
2781
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2912
|
-
}),
|
|
2782
|
+
}), ye = ({
|
|
2913
2783
|
event: e,
|
|
2914
2784
|
target: t
|
|
2915
2785
|
}) => {
|
|
2916
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
2786
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = be(i / n.width), a = be(o / n.height);
|
|
2917
2787
|
return {
|
|
2918
|
-
x:
|
|
2919
|
-
y:
|
|
2788
|
+
x: r,
|
|
2789
|
+
y: a
|
|
2920
2790
|
};
|
|
2921
|
-
},
|
|
2922
|
-
const t = e.target, n = t &&
|
|
2791
|
+
}, Sn = (e) => {
|
|
2792
|
+
const t = e.target, n = t && xn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2923
2793
|
return {
|
|
2924
2794
|
targetBuilderElement: i || void 0,
|
|
2925
2795
|
metadata: {
|
|
2926
|
-
targetOffset: t ?
|
|
2796
|
+
targetOffset: t ? ye({
|
|
2927
2797
|
event: e,
|
|
2928
2798
|
target: t
|
|
2929
2799
|
}) : void 0,
|
|
2930
|
-
builderTargetOffset: n ?
|
|
2800
|
+
builderTargetOffset: n ? ye({
|
|
2931
2801
|
event: e,
|
|
2932
2802
|
target: n
|
|
2933
2803
|
}) : void 0,
|
|
@@ -2935,71 +2805,71 @@ const findParentElement = (e, t, n = !0) => {
|
|
|
2935
2805
|
}
|
|
2936
2806
|
};
|
|
2937
2807
|
};
|
|
2938
|
-
function
|
|
2939
|
-
var
|
|
2940
|
-
const t =
|
|
2941
|
-
function n(
|
|
2942
|
-
var
|
|
2943
|
-
const
|
|
2808
|
+
function vn(e) {
|
|
2809
|
+
var E, p, v, P, R, F, L;
|
|
2810
|
+
const t = Z(null);
|
|
2811
|
+
function n(u) {
|
|
2812
|
+
var C, b;
|
|
2813
|
+
const h = {
|
|
2944
2814
|
...e.builderContextSignal.rootState,
|
|
2945
|
-
...
|
|
2815
|
+
...u
|
|
2946
2816
|
};
|
|
2947
|
-
e.builderContextSignal.rootSetState ? (b = (
|
|
2948
|
-
...
|
|
2949
|
-
rootState:
|
|
2817
|
+
e.builderContextSignal.rootSetState ? (b = (C = e.builderContextSignal).rootSetState) == null || b.call(C, h) : e.setBuilderContextSignal((S) => ({
|
|
2818
|
+
...S,
|
|
2819
|
+
rootState: h
|
|
2950
2820
|
}));
|
|
2951
2821
|
}
|
|
2952
|
-
function i(
|
|
2953
|
-
var
|
|
2954
|
-
const
|
|
2822
|
+
function i(u) {
|
|
2823
|
+
var C, b, S, W, D;
|
|
2824
|
+
const h = {
|
|
2955
2825
|
...e.builderContextSignal.content,
|
|
2956
|
-
...
|
|
2826
|
+
...u,
|
|
2957
2827
|
data: {
|
|
2958
|
-
...(
|
|
2959
|
-
...
|
|
2828
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.data,
|
|
2829
|
+
...u == null ? void 0 : u.data
|
|
2960
2830
|
},
|
|
2961
2831
|
meta: {
|
|
2962
2832
|
...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
|
|
2963
|
-
...
|
|
2964
|
-
breakpoints: ((
|
|
2833
|
+
...u == null ? void 0 : u.meta,
|
|
2834
|
+
breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((D = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : D.breakpoints)
|
|
2965
2835
|
}
|
|
2966
2836
|
};
|
|
2967
|
-
e.setBuilderContextSignal((
|
|
2968
|
-
...
|
|
2969
|
-
content:
|
|
2837
|
+
e.setBuilderContextSignal((N) => ({
|
|
2838
|
+
...N,
|
|
2839
|
+
content: h
|
|
2970
2840
|
}));
|
|
2971
2841
|
}
|
|
2972
|
-
const [o,
|
|
2842
|
+
const [o, r] = I(
|
|
2973
2843
|
() => e.contentWrapper || "div"
|
|
2974
2844
|
);
|
|
2975
|
-
function
|
|
2976
|
-
return
|
|
2845
|
+
function a(u) {
|
|
2846
|
+
return He({
|
|
2977
2847
|
model: e.model,
|
|
2978
2848
|
trustedHosts: e.trustedHosts,
|
|
2979
2849
|
callbacks: {
|
|
2980
|
-
configureSdk: (
|
|
2981
|
-
var
|
|
2982
|
-
const { breakpoints:
|
|
2983
|
-
!b || b !== ((
|
|
2850
|
+
configureSdk: (h) => {
|
|
2851
|
+
var S;
|
|
2852
|
+
const { breakpoints: C, contentId: b } = h;
|
|
2853
|
+
!b || b !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || C && i({
|
|
2984
2854
|
meta: {
|
|
2985
|
-
breakpoints:
|
|
2855
|
+
breakpoints: C
|
|
2986
2856
|
}
|
|
2987
2857
|
});
|
|
2988
2858
|
},
|
|
2989
|
-
animation: (
|
|
2990
|
-
|
|
2859
|
+
animation: (h) => {
|
|
2860
|
+
Ee(h);
|
|
2991
2861
|
},
|
|
2992
|
-
contentUpdate: (
|
|
2993
|
-
i(
|
|
2862
|
+
contentUpdate: (h) => {
|
|
2863
|
+
i(h);
|
|
2994
2864
|
}
|
|
2995
2865
|
}
|
|
2996
|
-
})(
|
|
2866
|
+
})(u);
|
|
2997
2867
|
}
|
|
2998
|
-
function
|
|
2999
|
-
var
|
|
3000
|
-
const
|
|
3001
|
-
|
|
3002
|
-
code:
|
|
2868
|
+
function l() {
|
|
2869
|
+
var h, C;
|
|
2870
|
+
const u = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.jsCode;
|
|
2871
|
+
u && K({
|
|
2872
|
+
code: u,
|
|
3003
2873
|
context: e.context || {},
|
|
3004
2874
|
localState: void 0,
|
|
3005
2875
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3010,35 +2880,35 @@ function EnableEditor(e) {
|
|
|
3010
2880
|
enableCache: !1
|
|
3011
2881
|
});
|
|
3012
2882
|
}
|
|
3013
|
-
const [
|
|
3014
|
-
function
|
|
3015
|
-
var
|
|
2883
|
+
const [d, c] = I(() => ({})), [m, f] = I(() => ({})), [g, y] = I(() => !1);
|
|
2884
|
+
function x(u) {
|
|
2885
|
+
var h, C;
|
|
3016
2886
|
if (e.builderContextSignal.content) {
|
|
3017
|
-
const b = (
|
|
3018
|
-
|
|
2887
|
+
const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
|
|
2888
|
+
ce({
|
|
3019
2889
|
type: "click",
|
|
3020
|
-
canTrack:
|
|
3021
|
-
contentId:
|
|
2890
|
+
canTrack: Q(e.canTrack),
|
|
2891
|
+
contentId: S,
|
|
3022
2892
|
apiKey: e.apiKey,
|
|
3023
|
-
variationId: b !==
|
|
3024
|
-
...
|
|
2893
|
+
variationId: b !== S ? b : void 0,
|
|
2894
|
+
...Sn(u),
|
|
3025
2895
|
unique: !g
|
|
3026
2896
|
});
|
|
3027
2897
|
}
|
|
3028
|
-
g ||
|
|
2898
|
+
g || y(!0);
|
|
3029
2899
|
}
|
|
3030
|
-
function
|
|
3031
|
-
var
|
|
3032
|
-
const
|
|
3033
|
-
Object.entries(
|
|
3034
|
-
if (!
|
|
2900
|
+
function k() {
|
|
2901
|
+
var h, C, b;
|
|
2902
|
+
const u = (b = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.httpRequests) != null ? b : {};
|
|
2903
|
+
Object.entries(u).forEach(([S, W]) => {
|
|
2904
|
+
if (!W || m[S] || d[S] && !A())
|
|
3035
2905
|
return;
|
|
3036
|
-
|
|
3037
|
-
const
|
|
2906
|
+
m[S] = !0;
|
|
2907
|
+
const D = W.replace(
|
|
3038
2908
|
/{{([^}]+)}}/g,
|
|
3039
|
-
(
|
|
3040
|
-
|
|
3041
|
-
code:
|
|
2909
|
+
(N, Fe) => String(
|
|
2910
|
+
K({
|
|
2911
|
+
code: Fe,
|
|
3042
2912
|
context: e.context || {},
|
|
3043
2913
|
localState: void 0,
|
|
3044
2914
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3047,24 +2917,24 @@ function EnableEditor(e) {
|
|
|
3047
2917
|
})
|
|
3048
2918
|
)
|
|
3049
2919
|
);
|
|
3050
|
-
|
|
2920
|
+
Ke(D).then((N) => N.json()).then((N) => {
|
|
3051
2921
|
n({
|
|
3052
|
-
[
|
|
3053
|
-
}),
|
|
3054
|
-
}).catch((
|
|
3055
|
-
console.error("error fetching dynamic data",
|
|
2922
|
+
[S]: N
|
|
2923
|
+
}), d[S] = !0;
|
|
2924
|
+
}).catch((N) => {
|
|
2925
|
+
console.error("error fetching dynamic data", W, N);
|
|
3056
2926
|
}).finally(() => {
|
|
3057
|
-
|
|
2927
|
+
m[S] = !1;
|
|
3058
2928
|
});
|
|
3059
2929
|
});
|
|
3060
2930
|
}
|
|
3061
|
-
function
|
|
3062
|
-
|
|
2931
|
+
function w() {
|
|
2932
|
+
A() && window.dispatchEvent(
|
|
3063
2933
|
new CustomEvent(
|
|
3064
2934
|
"builder:component:stateChange",
|
|
3065
2935
|
{
|
|
3066
2936
|
detail: {
|
|
3067
|
-
state:
|
|
2937
|
+
state: oe(e.builderContextSignal.rootState),
|
|
3068
2938
|
ref: {
|
|
3069
2939
|
name: e.model
|
|
3070
2940
|
}
|
|
@@ -3073,10 +2943,10 @@ function EnableEditor(e) {
|
|
|
3073
2943
|
)
|
|
3074
2944
|
);
|
|
3075
2945
|
}
|
|
3076
|
-
return
|
|
3077
|
-
var
|
|
3078
|
-
if (
|
|
3079
|
-
if (
|
|
2946
|
+
return V(() => {
|
|
2947
|
+
var u, h;
|
|
2948
|
+
if (G()) {
|
|
2949
|
+
if (A() && (window.addEventListener("message", a), Me(), je({
|
|
3080
2950
|
...e.locale ? {
|
|
3081
2951
|
locale: e.locale
|
|
3082
2952
|
} : {},
|
|
@@ -3089,78 +2959,78 @@ function EnableEditor(e) {
|
|
|
3089
2959
|
}), Object.values(
|
|
3090
2960
|
e.builderContextSignal.componentInfos
|
|
3091
2961
|
).forEach((b) => {
|
|
3092
|
-
var
|
|
3093
|
-
const
|
|
3094
|
-
(
|
|
2962
|
+
var W;
|
|
2963
|
+
const S = Oe(b);
|
|
2964
|
+
(W = window.parent) == null || W.postMessage(S, "*");
|
|
3095
2965
|
}), window.addEventListener(
|
|
3096
2966
|
"builder:component:stateChangeListenerActivated",
|
|
3097
|
-
|
|
3098
|
-
)), e.builderContextSignal.content &&
|
|
3099
|
-
const b = (
|
|
3100
|
-
|
|
2967
|
+
w
|
|
2968
|
+
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
2969
|
+
const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, W = e.apiKey;
|
|
2970
|
+
ce({
|
|
3101
2971
|
type: "impression",
|
|
3102
2972
|
canTrack: !0,
|
|
3103
|
-
contentId:
|
|
3104
|
-
apiKey:
|
|
3105
|
-
variationId: b !==
|
|
2973
|
+
contentId: S,
|
|
2974
|
+
apiKey: W,
|
|
2975
|
+
variationId: b !== S ? b : void 0
|
|
3106
2976
|
});
|
|
3107
2977
|
}
|
|
3108
|
-
if (
|
|
3109
|
-
const b = new URL(location.href).searchParams,
|
|
3110
|
-
`builder.preview.${
|
|
3111
|
-
),
|
|
3112
|
-
|
|
2978
|
+
if (Ue() && !A()) {
|
|
2979
|
+
const b = new URL(location.href).searchParams, S = b.get("builder.preview"), W = b.get(
|
|
2980
|
+
`builder.preview.${S}`
|
|
2981
|
+
), D = b.get("apiKey") || b.get("builder.space");
|
|
2982
|
+
S === e.model && D === e.apiKey && (!e.content || W === e.content.id) && xe({
|
|
3113
2983
|
model: e.model,
|
|
3114
2984
|
apiKey: e.apiKey,
|
|
3115
2985
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3116
|
-
}).then((
|
|
3117
|
-
|
|
2986
|
+
}).then((N) => {
|
|
2987
|
+
N && i(N);
|
|
3118
2988
|
});
|
|
3119
2989
|
}
|
|
3120
2990
|
}
|
|
3121
|
-
}, []),
|
|
3122
|
-
e.apiKey ||
|
|
2991
|
+
}, []), V(() => {
|
|
2992
|
+
e.apiKey || U.error(
|
|
3123
2993
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3124
|
-
),
|
|
3125
|
-
}, []),
|
|
2994
|
+
), l(), k(), w();
|
|
2995
|
+
}, []), V(() => {
|
|
3126
2996
|
e.content && i(e.content);
|
|
3127
|
-
}, [e.content]),
|
|
3128
|
-
|
|
3129
|
-
}, [(
|
|
3130
|
-
p();
|
|
3131
|
-
}, [(E = (C = e.builderContextSignal.content) == null ? void 0 : C.data) == null ? void 0 : E.httpRequests]), useEffect(() => {
|
|
2997
|
+
}, [e.content]), V(() => {
|
|
2998
|
+
l();
|
|
2999
|
+
}, [(p = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : p.jsCode]), V(() => {
|
|
3132
3000
|
k();
|
|
3133
|
-
}, [e.builderContextSignal.
|
|
3001
|
+
}, [(P = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : P.httpRequests]), V(() => {
|
|
3002
|
+
w();
|
|
3003
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3134
3004
|
e.data && n(e.data);
|
|
3135
|
-
}, [e.data]),
|
|
3005
|
+
}, [e.data]), V(() => {
|
|
3136
3006
|
e.locale && n({
|
|
3137
3007
|
locale: e.locale
|
|
3138
3008
|
});
|
|
3139
|
-
}, [e.locale]),
|
|
3140
|
-
|
|
3009
|
+
}, [e.locale]), V(() => () => {
|
|
3010
|
+
G() && (window.removeEventListener("message", a), window.removeEventListener(
|
|
3141
3011
|
"builder:component:stateChangeListenerActivated",
|
|
3142
|
-
|
|
3012
|
+
w
|
|
3143
3013
|
));
|
|
3144
|
-
}, []), /* @__PURE__ */
|
|
3014
|
+
}, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3145
3015
|
o,
|
|
3146
3016
|
{
|
|
3147
3017
|
ref: t,
|
|
3148
|
-
onClick: (
|
|
3149
|
-
"builder-content-id": (
|
|
3018
|
+
onClick: (u) => x(u),
|
|
3019
|
+
"builder-content-id": (R = e.builderContextSignal.content) == null ? void 0 : R.id,
|
|
3150
3020
|
"builder-model": e.model,
|
|
3151
3021
|
...e.showContent ? {} : {
|
|
3152
3022
|
hidden: !0,
|
|
3153
3023
|
"aria-hidden": !0
|
|
3154
3024
|
},
|
|
3155
3025
|
...e.contentWrapperProps,
|
|
3156
|
-
className: `variant-${((
|
|
3026
|
+
className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
|
|
3157
3027
|
children: e.children
|
|
3158
3028
|
}
|
|
3159
3029
|
) : null });
|
|
3160
3030
|
}
|
|
3161
|
-
const
|
|
3162
|
-
var
|
|
3163
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3031
|
+
const kn = (e) => {
|
|
3032
|
+
var r, a;
|
|
3033
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3164
3034
|
let o = "";
|
|
3165
3035
|
if (i && t && n && (o += `
|
|
3166
3036
|
@font-face {
|
|
@@ -3170,29 +3040,29 @@ font-display: fallback;
|
|
|
3170
3040
|
font-weight: 400;
|
|
3171
3041
|
}
|
|
3172
3042
|
`.trim()), e.files)
|
|
3173
|
-
for (const
|
|
3174
|
-
if (!(String(Number(
|
|
3043
|
+
for (const l in e.files) {
|
|
3044
|
+
if (!(String(Number(l)) === l))
|
|
3175
3045
|
continue;
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3046
|
+
const c = e.files[l];
|
|
3047
|
+
c && c !== i && (o += `
|
|
3178
3048
|
@font-face {
|
|
3179
3049
|
font-family: "${t}";
|
|
3180
|
-
src: url('${
|
|
3050
|
+
src: url('${c}') format('woff2');
|
|
3181
3051
|
font-display: fallback;
|
|
3182
|
-
font-weight: ${
|
|
3052
|
+
font-weight: ${l};
|
|
3183
3053
|
}
|
|
3184
3054
|
`.trim());
|
|
3185
3055
|
}
|
|
3186
3056
|
return o;
|
|
3187
|
-
},
|
|
3057
|
+
}, Cn = ({
|
|
3188
3058
|
customFonts: e
|
|
3189
3059
|
}) => {
|
|
3190
3060
|
var t;
|
|
3191
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3192
|
-
},
|
|
3061
|
+
return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3062
|
+
}, wn = ({
|
|
3193
3063
|
cssCode: e,
|
|
3194
3064
|
contentId: t
|
|
3195
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3065
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
|
|
3196
3066
|
.builder-button {
|
|
3197
3067
|
all: unset;
|
|
3198
3068
|
}
|
|
@@ -3209,31 +3079,31 @@ font-weight: ${s};
|
|
|
3209
3079
|
text-align: inherit;
|
|
3210
3080
|
font-family: inherit;
|
|
3211
3081
|
}
|
|
3212
|
-
`,
|
|
3213
|
-
function
|
|
3214
|
-
const [t, n] =
|
|
3082
|
+
`, Tn = (e) => e ? "" : In;
|
|
3083
|
+
function En(e) {
|
|
3084
|
+
const [t, n] = I(
|
|
3215
3085
|
() => `
|
|
3216
|
-
${
|
|
3086
|
+
${wn({
|
|
3217
3087
|
cssCode: e.cssCode,
|
|
3218
3088
|
contentId: e.contentId
|
|
3219
3089
|
})}
|
|
3220
|
-
${
|
|
3090
|
+
${Cn({
|
|
3221
3091
|
customFonts: e.customFonts
|
|
3222
3092
|
})}
|
|
3223
|
-
${
|
|
3093
|
+
${Tn(e.isNestedRender)}
|
|
3224
3094
|
`.trim()
|
|
3225
3095
|
);
|
|
3226
|
-
return /* @__PURE__ */
|
|
3096
|
+
return /* @__PURE__ */ s(ee, { id: "builderio-content", styles: t });
|
|
3227
3097
|
}
|
|
3228
|
-
const
|
|
3098
|
+
const Rn = ({
|
|
3229
3099
|
content: e,
|
|
3230
3100
|
data: t,
|
|
3231
3101
|
locale: n
|
|
3232
3102
|
}) => {
|
|
3233
|
-
var
|
|
3234
|
-
const i = {}, o = ((
|
|
3235
|
-
return (
|
|
3236
|
-
|
|
3103
|
+
var r, a, l;
|
|
3104
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3105
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
3106
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3237
3107
|
}), {
|
|
3238
3108
|
...i,
|
|
3239
3109
|
...o,
|
|
@@ -3242,7 +3112,7 @@ const getRootStateInitialValue = ({
|
|
|
3242
3112
|
locale: n
|
|
3243
3113
|
} : {}
|
|
3244
3114
|
};
|
|
3245
|
-
},
|
|
3115
|
+
}, Pn = ({
|
|
3246
3116
|
content: e,
|
|
3247
3117
|
data: t
|
|
3248
3118
|
}) => e ? {
|
|
@@ -3253,46 +3123,46 @@ const getRootStateInitialValue = ({
|
|
|
3253
3123
|
},
|
|
3254
3124
|
meta: e == null ? void 0 : e.meta
|
|
3255
3125
|
} : void 0;
|
|
3256
|
-
function
|
|
3257
|
-
var
|
|
3258
|
-
const [t, n] =
|
|
3126
|
+
function pe(e) {
|
|
3127
|
+
var d, c, m, f, g, y, x;
|
|
3128
|
+
const [t, n] = I(
|
|
3259
3129
|
() => {
|
|
3260
|
-
var
|
|
3261
|
-
return
|
|
3130
|
+
var k, w;
|
|
3131
|
+
return yn({
|
|
3262
3132
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3263
|
-
variationId: (
|
|
3133
|
+
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
3264
3134
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3265
|
-
contentId: (
|
|
3135
|
+
contentId: (w = e.content) == null ? void 0 : w.id
|
|
3266
3136
|
});
|
|
3267
3137
|
}
|
|
3268
3138
|
);
|
|
3269
|
-
function i(
|
|
3270
|
-
|
|
3271
|
-
...
|
|
3272
|
-
rootState:
|
|
3139
|
+
function i(k) {
|
|
3140
|
+
l((w) => ({
|
|
3141
|
+
...w,
|
|
3142
|
+
rootState: k
|
|
3273
3143
|
}));
|
|
3274
3144
|
}
|
|
3275
|
-
const [o,
|
|
3145
|
+
const [o, r] = I(
|
|
3276
3146
|
() => [
|
|
3277
|
-
...
|
|
3147
|
+
...ge(),
|
|
3278
3148
|
...e.customComponents || []
|
|
3279
3149
|
].reduce(
|
|
3280
|
-
(
|
|
3281
|
-
...
|
|
3282
|
-
[
|
|
3283
|
-
component:
|
|
3284
|
-
...
|
|
3150
|
+
(k, { component: w, ...E }) => ({
|
|
3151
|
+
...k,
|
|
3152
|
+
[E.name]: {
|
|
3153
|
+
component: w,
|
|
3154
|
+
...de(E)
|
|
3285
3155
|
}
|
|
3286
3156
|
}),
|
|
3287
3157
|
{}
|
|
3288
3158
|
)
|
|
3289
|
-
), [
|
|
3290
|
-
content:
|
|
3159
|
+
), [a, l] = I(() => ({
|
|
3160
|
+
content: Pn({
|
|
3291
3161
|
content: e.content,
|
|
3292
3162
|
data: e.data
|
|
3293
3163
|
}),
|
|
3294
3164
|
localState: void 0,
|
|
3295
|
-
rootState:
|
|
3165
|
+
rootState: Rn({
|
|
3296
3166
|
content: e.content,
|
|
3297
3167
|
data: e.data,
|
|
3298
3168
|
locale: e.locale
|
|
@@ -3302,12 +3172,12 @@ function ContentComponent(e) {
|
|
|
3302
3172
|
apiKey: e.apiKey,
|
|
3303
3173
|
apiVersion: e.apiVersion,
|
|
3304
3174
|
componentInfos: [
|
|
3305
|
-
...
|
|
3175
|
+
...ge(),
|
|
3306
3176
|
...e.customComponents || []
|
|
3307
3177
|
].reduce(
|
|
3308
|
-
(
|
|
3309
|
-
...
|
|
3310
|
-
[
|
|
3178
|
+
(k, { component: w, ...E }) => ({
|
|
3179
|
+
...k,
|
|
3180
|
+
[E.name]: de(E)
|
|
3311
3181
|
}),
|
|
3312
3182
|
{}
|
|
3313
3183
|
),
|
|
@@ -3315,14 +3185,14 @@ function ContentComponent(e) {
|
|
|
3315
3185
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
3316
3186
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3317
3187
|
}));
|
|
3318
|
-
return /* @__PURE__ */
|
|
3319
|
-
|
|
3188
|
+
return /* @__PURE__ */ s(
|
|
3189
|
+
Ce.Provider,
|
|
3320
3190
|
{
|
|
3321
3191
|
value: {
|
|
3322
3192
|
registeredComponents: o
|
|
3323
3193
|
},
|
|
3324
|
-
children: /* @__PURE__ */
|
|
3325
|
-
|
|
3194
|
+
children: /* @__PURE__ */ B(
|
|
3195
|
+
vn,
|
|
3326
3196
|
{
|
|
3327
3197
|
content: e.content,
|
|
3328
3198
|
data: e.data,
|
|
@@ -3333,34 +3203,34 @@ function ContentComponent(e) {
|
|
|
3333
3203
|
locale: e.locale,
|
|
3334
3204
|
enrich: e.enrich,
|
|
3335
3205
|
showContent: e.showContent,
|
|
3336
|
-
builderContextSignal:
|
|
3206
|
+
builderContextSignal: a,
|
|
3337
3207
|
contentWrapper: e.contentWrapper,
|
|
3338
3208
|
contentWrapperProps: e.contentWrapperProps,
|
|
3339
3209
|
linkComponent: e.linkComponent,
|
|
3340
3210
|
trustedHosts: e.trustedHosts,
|
|
3341
|
-
setBuilderContextSignal:
|
|
3211
|
+
setBuilderContextSignal: l,
|
|
3342
3212
|
children: [
|
|
3343
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3344
|
-
|
|
3213
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3214
|
+
ie,
|
|
3345
3215
|
{
|
|
3346
3216
|
id: "builderio-variant-visibility",
|
|
3347
3217
|
scriptStr: t
|
|
3348
3218
|
}
|
|
3349
3219
|
) : null,
|
|
3350
|
-
/* @__PURE__ */
|
|
3351
|
-
|
|
3220
|
+
/* @__PURE__ */ s(
|
|
3221
|
+
En,
|
|
3352
3222
|
{
|
|
3353
3223
|
isNestedRender: e.isNestedRender,
|
|
3354
|
-
contentId: (
|
|
3355
|
-
cssCode: (
|
|
3356
|
-
customFonts: (g = (
|
|
3224
|
+
contentId: (d = a.content) == null ? void 0 : d.id,
|
|
3225
|
+
cssCode: (m = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3226
|
+
customFonts: (g = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
|
|
3357
3227
|
}
|
|
3358
3228
|
),
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
-
|
|
3229
|
+
/* @__PURE__ */ s(
|
|
3230
|
+
j,
|
|
3361
3231
|
{
|
|
3362
|
-
blocks: (
|
|
3363
|
-
context:
|
|
3232
|
+
blocks: (x = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : x.blocks,
|
|
3233
|
+
context: a,
|
|
3364
3234
|
registeredComponents: o,
|
|
3365
3235
|
linkComponent: e.linkComponent
|
|
3366
3236
|
}
|
|
@@ -3371,66 +3241,66 @@ function ContentComponent(e) {
|
|
|
3371
3241
|
}
|
|
3372
3242
|
);
|
|
3373
3243
|
}
|
|
3374
|
-
function
|
|
3375
|
-
var
|
|
3376
|
-
const [t, n] =
|
|
3377
|
-
() =>
|
|
3378
|
-
canTrack:
|
|
3244
|
+
function Vn(e) {
|
|
3245
|
+
var a;
|
|
3246
|
+
const [t, n] = I(
|
|
3247
|
+
() => fn({
|
|
3248
|
+
canTrack: Q(e.canTrack),
|
|
3379
3249
|
content: e.content
|
|
3380
3250
|
})
|
|
3381
3251
|
);
|
|
3382
3252
|
function i() {
|
|
3383
|
-
var
|
|
3384
|
-
return
|
|
3385
|
-
|
|
3386
|
-
id:
|
|
3387
|
-
testRatio:
|
|
3253
|
+
var l;
|
|
3254
|
+
return bn(
|
|
3255
|
+
J(e.content).map((d) => ({
|
|
3256
|
+
id: d.testVariationId,
|
|
3257
|
+
testRatio: d.testRatio
|
|
3388
3258
|
})),
|
|
3389
|
-
((
|
|
3259
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3390
3260
|
);
|
|
3391
3261
|
}
|
|
3392
3262
|
function o() {
|
|
3393
|
-
return
|
|
3263
|
+
return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3394
3264
|
}
|
|
3395
|
-
function
|
|
3396
|
-
var
|
|
3265
|
+
function r() {
|
|
3266
|
+
var l;
|
|
3397
3267
|
return t ? {
|
|
3398
3268
|
...e.content,
|
|
3399
|
-
testVariationId: (
|
|
3400
|
-
} :
|
|
3269
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3270
|
+
} : qe({
|
|
3401
3271
|
item: e.content,
|
|
3402
|
-
canTrack:
|
|
3272
|
+
canTrack: Q(e.canTrack)
|
|
3403
3273
|
});
|
|
3404
3274
|
}
|
|
3405
|
-
return
|
|
3406
|
-
}, []), /* @__PURE__ */
|
|
3407
|
-
!e.isNestedRender &&
|
|
3408
|
-
|
|
3275
|
+
return V(() => {
|
|
3276
|
+
}, []), /* @__PURE__ */ B(T, { children: [
|
|
3277
|
+
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3278
|
+
ie,
|
|
3409
3279
|
{
|
|
3410
3280
|
id: "builderio-init-variants-fns",
|
|
3411
|
-
scriptStr:
|
|
3281
|
+
scriptStr: gn()
|
|
3412
3282
|
}
|
|
3413
3283
|
) : null,
|
|
3414
|
-
t ? /* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */
|
|
3416
|
-
|
|
3284
|
+
t ? /* @__PURE__ */ B(T, { children: [
|
|
3285
|
+
/* @__PURE__ */ s(
|
|
3286
|
+
ee,
|
|
3417
3287
|
{
|
|
3418
3288
|
id: "builderio-variants",
|
|
3419
3289
|
styles: o()
|
|
3420
3290
|
}
|
|
3421
3291
|
),
|
|
3422
|
-
/* @__PURE__ */
|
|
3423
|
-
|
|
3292
|
+
/* @__PURE__ */ s(
|
|
3293
|
+
ie,
|
|
3424
3294
|
{
|
|
3425
3295
|
id: "builderio-variants-visibility",
|
|
3426
3296
|
scriptStr: i()
|
|
3427
3297
|
}
|
|
3428
3298
|
),
|
|
3429
|
-
(
|
|
3430
|
-
|
|
3299
|
+
(a = J(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3300
|
+
pe,
|
|
3431
3301
|
{
|
|
3432
3302
|
isNestedRender: e.isNestedRender,
|
|
3433
|
-
content:
|
|
3303
|
+
content: l,
|
|
3434
3304
|
showContent: !1,
|
|
3435
3305
|
model: e.model,
|
|
3436
3306
|
data: e.data,
|
|
@@ -3449,14 +3319,14 @@ function ContentVariants(e) {
|
|
|
3449
3319
|
contentWrapperProps: e.contentWrapperProps,
|
|
3450
3320
|
trustedHosts: e.trustedHosts
|
|
3451
3321
|
},
|
|
3452
|
-
|
|
3322
|
+
l.testVariationId
|
|
3453
3323
|
))
|
|
3454
3324
|
] }) : null,
|
|
3455
|
-
/* @__PURE__ */
|
|
3456
|
-
|
|
3325
|
+
/* @__PURE__ */ s(
|
|
3326
|
+
pe,
|
|
3457
3327
|
{
|
|
3458
3328
|
isNestedRender: e.isNestedRender,
|
|
3459
|
-
content:
|
|
3329
|
+
content: r(),
|
|
3460
3330
|
showContent: !0,
|
|
3461
3331
|
model: e.model,
|
|
3462
3332
|
data: e.data,
|
|
@@ -3478,13 +3348,13 @@ function ContentVariants(e) {
|
|
|
3478
3348
|
)
|
|
3479
3349
|
] });
|
|
3480
3350
|
}
|
|
3481
|
-
const
|
|
3351
|
+
const Bn = async ({
|
|
3482
3352
|
builderContextValue: e,
|
|
3483
3353
|
symbol: t
|
|
3484
3354
|
}) => {
|
|
3485
3355
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3486
3356
|
(e != null && e.apiKey))
|
|
3487
|
-
return
|
|
3357
|
+
return xe({
|
|
3488
3358
|
model: t.model,
|
|
3489
3359
|
apiKey: e.apiKey,
|
|
3490
3360
|
apiVersion: e.apiVersion,
|
|
@@ -3494,52 +3364,52 @@ const fetchSymbolContent = async ({
|
|
|
3494
3364
|
}
|
|
3495
3365
|
}
|
|
3496
3366
|
}).catch((n) => {
|
|
3497
|
-
|
|
3367
|
+
U.error("Could not fetch symbol content: ", n);
|
|
3498
3368
|
});
|
|
3499
3369
|
};
|
|
3500
|
-
function
|
|
3501
|
-
var
|
|
3370
|
+
function Wn(e) {
|
|
3371
|
+
var r, a, l, d;
|
|
3502
3372
|
function t() {
|
|
3503
|
-
var
|
|
3373
|
+
var c, m;
|
|
3504
3374
|
return [
|
|
3505
|
-
e.attributes[
|
|
3375
|
+
e.attributes[H()],
|
|
3506
3376
|
"builder-symbol",
|
|
3507
|
-
(
|
|
3508
|
-
(
|
|
3377
|
+
(c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
|
|
3378
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3509
3379
|
].filter(Boolean).join(" ");
|
|
3510
3380
|
}
|
|
3511
|
-
const [n, i] =
|
|
3512
|
-
var
|
|
3513
|
-
return (
|
|
3381
|
+
const [n, i] = I(() => {
|
|
3382
|
+
var c;
|
|
3383
|
+
return (c = e.symbol) == null ? void 0 : c.content;
|
|
3514
3384
|
});
|
|
3515
3385
|
function o() {
|
|
3516
|
-
n ||
|
|
3386
|
+
n || Bn({
|
|
3517
3387
|
symbol: e.symbol,
|
|
3518
3388
|
builderContextValue: e.builderContext
|
|
3519
|
-
}).then((
|
|
3520
|
-
|
|
3389
|
+
}).then((c) => {
|
|
3390
|
+
c && i(c);
|
|
3521
3391
|
});
|
|
3522
3392
|
}
|
|
3523
|
-
return
|
|
3524
|
-
}, []),
|
|
3393
|
+
return V(() => {
|
|
3394
|
+
}, []), V(() => {
|
|
3525
3395
|
o();
|
|
3526
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
3527
|
-
|
|
3396
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
|
|
3397
|
+
Vn,
|
|
3528
3398
|
{
|
|
3529
3399
|
isNestedRender: !0,
|
|
3530
3400
|
apiVersion: e.builderContext.apiVersion,
|
|
3531
3401
|
apiKey: e.builderContext.apiKey,
|
|
3532
3402
|
context: {
|
|
3533
3403
|
...e.builderContext.context,
|
|
3534
|
-
symbolId: (
|
|
3404
|
+
symbolId: (r = e.builderBlock) == null ? void 0 : r.id
|
|
3535
3405
|
},
|
|
3536
3406
|
customComponents: Object.values(e.builderComponents),
|
|
3537
3407
|
data: {
|
|
3538
|
-
...(
|
|
3408
|
+
...(a = e.symbol) == null ? void 0 : a.data,
|
|
3539
3409
|
...e.builderContext.localState,
|
|
3540
|
-
...(
|
|
3410
|
+
...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
|
|
3541
3411
|
},
|
|
3542
|
-
model: (
|
|
3412
|
+
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
3543
3413
|
content: n,
|
|
3544
3414
|
linkComponent: e.builderLinkComponent,
|
|
3545
3415
|
blocksWrapper: "div",
|
|
@@ -3548,15 +3418,15 @@ function Symbol$1(e) {
|
|
|
3548
3418
|
) });
|
|
3549
3419
|
}
|
|
3550
3420
|
export {
|
|
3551
|
-
Blocks,
|
|
3552
|
-
|
|
3553
|
-
Button,
|
|
3554
|
-
Columns,
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
Image,
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
Text,
|
|
3561
|
-
Video
|
|
3421
|
+
j as Blocks,
|
|
3422
|
+
re as BuilderContext,
|
|
3423
|
+
Xe as Button,
|
|
3424
|
+
Tt as Columns,
|
|
3425
|
+
Vn as Content,
|
|
3426
|
+
Et as Fragment,
|
|
3427
|
+
Vt as Image,
|
|
3428
|
+
Bt as Section,
|
|
3429
|
+
Wn as Symbol,
|
|
3430
|
+
Ot as Text,
|
|
3431
|
+
cn as Video
|
|
3562
3432
|
};
|