@builder.io/sdk-react 1.0.16 → 1.0.19-dev-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +23 -23
- package/lib/browser/blocks-exports.mjs +661 -659
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -21
- package/lib/browser/{server-entry-11e01841.cjs → server-entry-1a86f409.cjs} +1 -1
- package/lib/browser/{server-entry-afeff3cb.js → server-entry-cfff49d1.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{blocks-8e5cc463.js → blocks-03aafa4f.js} +196 -209
- package/lib/edge/{blocks-a0a9d452.cjs → blocks-87a3568e.cjs} +9 -9
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +27 -13
- package/lib/edge/{button-764707c4.js → button-14d13356.js} +3 -3
- package/lib/edge/{button-66c46316.cjs → button-58695538.cjs} +1 -1
- package/lib/edge/{columns-0bdc7586.js → columns-d2f7e212.js} +48 -47
- package/lib/edge/columns-f98bd830.cjs +28 -0
- package/lib/edge/content-variants-7e661199.cjs +134 -0
- package/lib/edge/{content-variants-db1e0281.js → content-variants-ad9f707f.js} +264 -273
- package/lib/edge/dynamic-blocks-exports.cjs +2 -0
- package/lib/edge/dynamic-blocks-exports.mjs +4 -1
- package/lib/edge/{dynamic-renderer-b29b45ca.cjs → dynamic-renderer-1c9f24c0.cjs} +1 -1
- package/lib/edge/dynamic-renderer-96ba4e48.js +8 -0
- package/lib/edge/{form-7a6f998f.js → form-04cf10db.js} +69 -58
- package/lib/edge/form-e83f7b7a.cjs +1 -0
- package/lib/edge/{get-class-prop-name-49cbb2c6.js → get-class-prop-name-859a7f60.js} +1 -1
- package/lib/edge/{get-class-prop-name-bbc4d2f3.cjs → get-class-prop-name-f1301669.cjs} +1 -1
- package/lib/edge/{image-0008c792.js → image-2cc909d9.js} +25 -25
- package/lib/edge/image-7e1361ce.cjs +17 -0
- package/lib/edge/{img-058cb6f0.cjs → img-0c1e53c0.cjs} +1 -1
- package/lib/edge/{img-c9630f56.js → img-b4ff1bef.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +22 -21
- package/lib/edge/{input-ceacd029.cjs → input-2103da14.cjs} +1 -1
- package/lib/edge/{input-3de90790.js → input-c6fee09c.js} +1 -1
- package/lib/edge/{select-df72f987.cjs → select-b8ad0a4c.cjs} +1 -1
- package/lib/edge/{select-ee266e60.js → select-f260d051.js} +1 -1
- package/lib/edge/{server-entry-ef266884.cjs → server-entry-00891f33.cjs} +1 -1
- package/lib/edge/{server-entry-2b1068fd.js → server-entry-d46a218d.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-f246e67e.js → slot-8fa7f242.js} +7 -6
- package/lib/edge/slot-bb84f342.cjs +1 -0
- package/lib/edge/{symbol-f68a7357.js → symbol-324dadc8.js} +2 -2
- package/lib/edge/{symbol-991f09b3.cjs → symbol-636383eb.cjs} +1 -1
- package/lib/edge/video-64014cc4.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-d02ff89b.js} +15 -15
- package/lib/node/blocks-exports.cjs +32 -72
- package/lib/node/blocks-exports.mjs +887 -1011
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +24 -22
- package/lib/node/init.cjs +1 -0
- package/lib/node/init.mjs +8 -0
- package/lib/node/node-runtime-1ca09d03.js +137 -0
- package/lib/node/node-runtime-56212f7c.cjs +41 -0
- package/lib/node/{server-entry-a221fe66.js → server-entry-8c84ddbd.js} +1 -1
- package/lib/node/{server-entry-4ba58cf3.cjs → server-entry-ff6fc2b4.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +6 -1
- package/types/blocks/form/component-info.d.ts +2 -0
- package/types/blocks/form/form.d.ts +3 -0
- package/types/blocks/input/component-info.d.ts +2 -0
- package/types/blocks/input/input.d.ts +15 -0
- package/types/blocks/select/component-info.d.ts +2 -0
- package/types/blocks/select/select.d.ts +16 -0
- package/types/blocks/submit-button/component-info.d.ts +2 -0
- package/types/blocks/submit-button/submit-button.d.ts +10 -0
- package/types/components/content/components/context-updater.d.ts +5 -0
- package/types/components/dynamic-renderer.d.ts +3 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/index.d.ts +1 -0
- package/types/functions/evaluate/node-runtime/init.d.ts +2 -0
- package/types/functions/evaluate/node-runtime/node-runtime.d.ts +1 -0
- package/types/functions/get-react-native-block-styles.d.ts +15 -0
- package/types/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/types/functions/sanitize-rn-allowed-css.d.ts +8 -0
- package/types/index-helpers/blocks-exports.d.ts +4 -0
- package/types/node-runtime/index.d.ts +1 -0
- package/types/node-runtime/node-runtime.d.ts +9 -0
- package/types/node-runtime.d.ts +1 -0
- package/lib/edge/columns-0a14db0e.cjs +0 -28
- package/lib/edge/content-variants-c03ec7a1.cjs +0 -134
- package/lib/edge/dynamic-renderer-8b343325.js +0 -8
- package/lib/edge/form-a5d18c89.cjs +0 -1
- package/lib/edge/image-ee3dd857.cjs +0 -17
- package/lib/edge/slot-83d735d6.cjs +0 -1
- package/lib/edge/video-e20dcbbc.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var ee = (e, t, n) => (
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as Ce, useState as
|
|
8
|
-
const
|
|
2
|
+
var De = Object.defineProperty;
|
|
3
|
+
var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ee = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as g, jsxs as B } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-cfff49d1.js";
|
|
7
|
+
import { createContext as Ce, useState as C, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
|
|
8
|
+
const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
|
|
9
9
|
function ae(e) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ l(g, { children: Ye(e.TagName) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(g, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
12
|
+
const K = () => {
|
|
13
|
+
switch (z) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
16
16
|
case "rsc":
|
|
@@ -22,13 +22,13 @@ const H = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
26
|
-
return /* @__PURE__ */
|
|
25
|
+
function Ge(e) {
|
|
26
|
+
return /* @__PURE__ */ l(
|
|
27
27
|
ae,
|
|
28
28
|
{
|
|
29
29
|
attributes: {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -57,7 +57,7 @@ const re = Ce({
|
|
|
57
57
|
BlocksWrapper: "div",
|
|
58
58
|
BlocksWrapperProps: {}
|
|
59
59
|
}), Ie = Ce({ registeredComponents: {} });
|
|
60
|
-
function
|
|
60
|
+
function Qe(e) {
|
|
61
61
|
var t;
|
|
62
62
|
return {
|
|
63
63
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -68,7 +68,7 @@ function Ge(e) {
|
|
|
68
68
|
builderBlock: e
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const Xe = ({
|
|
72
72
|
builder: e,
|
|
73
73
|
context: t,
|
|
74
74
|
event: n,
|
|
@@ -80,12 +80,12 @@ const Qe = ({
|
|
|
80
80
|
builder: e,
|
|
81
81
|
context: t,
|
|
82
82
|
event: n
|
|
83
|
-
}),
|
|
84
|
-
isEditing:
|
|
85
|
-
isBrowser:
|
|
86
|
-
isServer: !
|
|
87
|
-
getUserAttributes: () =>
|
|
88
|
-
}),
|
|
83
|
+
}), Ze = () => ({
|
|
84
|
+
isEditing: N(),
|
|
85
|
+
isBrowser: j(),
|
|
86
|
+
isServer: !j(),
|
|
87
|
+
getUserAttributes: () => Oe()
|
|
88
|
+
}), et = (e, {
|
|
89
89
|
isExpression: t = !0
|
|
90
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, he = ({
|
|
91
91
|
code: e,
|
|
@@ -96,7 +96,7 @@ const Qe = ({
|
|
|
96
96
|
rootSetState: a,
|
|
97
97
|
rootState: r
|
|
98
98
|
}) => {
|
|
99
|
-
const
|
|
99
|
+
const s = Xe({
|
|
100
100
|
builder: t,
|
|
101
101
|
context: n,
|
|
102
102
|
event: i,
|
|
@@ -106,7 +106,7 @@ const Qe = ({
|
|
|
106
106
|
rootSetState: a
|
|
107
107
|
})
|
|
108
108
|
});
|
|
109
|
-
return new Function(...
|
|
109
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
110
110
|
};
|
|
111
111
|
function Te({
|
|
112
112
|
rootState: e,
|
|
@@ -133,17 +133,17 @@ function Te({
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function tt() {
|
|
137
137
|
var e;
|
|
138
138
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const nt = () => {
|
|
141
141
|
var i;
|
|
142
|
-
if (!
|
|
142
|
+
if (!tt())
|
|
143
143
|
return !1;
|
|
144
144
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
145
|
-
return e && t && !n ? (
|
|
146
|
-
},
|
|
145
|
+
return e && t && !n ? (H.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
146
|
+
}, it = (e) => (j() || nt(), he(e)), F = class F {
|
|
147
147
|
static getCacheKey(t) {
|
|
148
148
|
return JSON.stringify({
|
|
149
149
|
...t,
|
|
@@ -153,17 +153,17 @@ const tt = () => {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
156
|
+
return F.cache.get(t);
|
|
157
157
|
}
|
|
158
158
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
159
|
+
F.cache.size > 20 && F.cache.delete(F.cache.keys().next().value), F.cache.set(t, {
|
|
160
160
|
value: n
|
|
161
161
|
});
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
|
-
ee(
|
|
165
|
-
let
|
|
166
|
-
function
|
|
164
|
+
ee(F, "cacheLimit", 20), ee(F, "cache", /* @__PURE__ */ new Map());
|
|
165
|
+
let O = F;
|
|
166
|
+
function q({
|
|
167
167
|
code: e,
|
|
168
168
|
context: t,
|
|
169
169
|
localState: n,
|
|
@@ -171,37 +171,37 @@ function K({
|
|
|
171
171
|
rootSetState: o,
|
|
172
172
|
event: a,
|
|
173
173
|
isExpression: r = !0,
|
|
174
|
-
enableCache:
|
|
174
|
+
enableCache: s
|
|
175
175
|
}) {
|
|
176
176
|
if (e === "") {
|
|
177
|
-
|
|
177
|
+
H.warn("Skipping evaluation of empty code block.");
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
180
|
const d = {
|
|
181
|
-
code:
|
|
181
|
+
code: et(e, {
|
|
182
182
|
isExpression: r
|
|
183
183
|
}),
|
|
184
|
-
builder:
|
|
184
|
+
builder: Ze(),
|
|
185
185
|
context: t,
|
|
186
186
|
event: a,
|
|
187
187
|
rootSetState: o,
|
|
188
188
|
rootState: i,
|
|
189
189
|
localState: n
|
|
190
190
|
};
|
|
191
|
-
if (
|
|
192
|
-
const c =
|
|
191
|
+
if (s) {
|
|
192
|
+
const c = O.getCacheKey(d), m = O.getCachedValue(c);
|
|
193
193
|
if (m)
|
|
194
194
|
return m.value;
|
|
195
195
|
}
|
|
196
196
|
try {
|
|
197
|
-
const c =
|
|
198
|
-
if (
|
|
199
|
-
const m =
|
|
200
|
-
|
|
197
|
+
const c = it(d);
|
|
198
|
+
if (s) {
|
|
199
|
+
const m = O.getCacheKey(d);
|
|
200
|
+
O.setCachedValue(m, c);
|
|
201
201
|
}
|
|
202
202
|
return c;
|
|
203
203
|
} catch (c) {
|
|
204
|
-
|
|
204
|
+
H.error("Failed code evaluation: " + c.message, {
|
|
205
205
|
code: e
|
|
206
206
|
});
|
|
207
207
|
return;
|
|
@@ -213,7 +213,7 @@ const Ee = (e, t, n) => {
|
|
|
213
213
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
214
214
|
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;
|
|
215
215
|
};
|
|
216
|
-
const
|
|
216
|
+
const ot = ({
|
|
217
217
|
block: e,
|
|
218
218
|
context: t,
|
|
219
219
|
localState: n,
|
|
@@ -231,8 +231,8 @@ const it = ({
|
|
|
231
231
|
...a.actions
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
-
for (const
|
|
235
|
-
const d = e.bindings[
|
|
234
|
+
for (const s in e.bindings) {
|
|
235
|
+
const d = e.bindings[s], c = q({
|
|
236
236
|
code: d,
|
|
237
237
|
localState: n,
|
|
238
238
|
rootState: i,
|
|
@@ -240,7 +240,7 @@ const it = ({
|
|
|
240
240
|
context: t,
|
|
241
241
|
enableCache: !0
|
|
242
242
|
});
|
|
243
|
-
Ee(r,
|
|
243
|
+
Ee(r, s, c);
|
|
244
244
|
}
|
|
245
245
|
return r;
|
|
246
246
|
};
|
|
@@ -253,7 +253,7 @@ function Q({
|
|
|
253
253
|
rootSetState: a
|
|
254
254
|
}) {
|
|
255
255
|
const r = e;
|
|
256
|
-
return n ?
|
|
256
|
+
return n ? ot({
|
|
257
257
|
block: r,
|
|
258
258
|
localState: i,
|
|
259
259
|
rootState: o,
|
|
@@ -261,19 +261,19 @@ function Q({
|
|
|
261
261
|
context: t
|
|
262
262
|
}) : r;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
let i, o, a, r = null,
|
|
264
|
+
function at(e, t, n = {}) {
|
|
265
|
+
let i, o, a, r = null, s = 0;
|
|
266
266
|
const d = function() {
|
|
267
|
-
|
|
267
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
268
268
|
};
|
|
269
269
|
return function() {
|
|
270
270
|
const c = Date.now();
|
|
271
|
-
!
|
|
272
|
-
const m = t - (c -
|
|
273
|
-
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null),
|
|
271
|
+
!s && n.leading === !1 && (s = c);
|
|
272
|
+
const m = t - (c - s);
|
|
273
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function D(e, ...t) {
|
|
277
277
|
const n = Object(e);
|
|
278
278
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
279
|
const o = arguments[i];
|
|
@@ -284,17 +284,17 @@ function L(e, ...t) {
|
|
|
284
284
|
return n;
|
|
285
285
|
}
|
|
286
286
|
const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
287
|
-
function
|
|
287
|
+
function rt(e) {
|
|
288
288
|
for (const t of e)
|
|
289
289
|
switch (t.trigger) {
|
|
290
290
|
case "pageLoad":
|
|
291
291
|
Re(t);
|
|
292
292
|
break;
|
|
293
293
|
case "hover":
|
|
294
|
-
|
|
294
|
+
st(t);
|
|
295
295
|
break;
|
|
296
296
|
case "scrollInView":
|
|
297
|
-
|
|
297
|
+
ct(t);
|
|
298
298
|
break;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
@@ -302,12 +302,12 @@ function se(e) {
|
|
|
302
302
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
303
303
|
}
|
|
304
304
|
function ce(e, t) {
|
|
305
|
-
const n =
|
|
306
|
-
for (const
|
|
305
|
+
const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
306
|
+
for (const s of r)
|
|
307
307
|
for (const d of n)
|
|
308
|
-
d in
|
|
308
|
+
d in s || (s[d] = i[d]);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function lt(e) {
|
|
311
311
|
const t = [];
|
|
312
312
|
for (const n of e.steps)
|
|
313
313
|
for (const i in n.styles)
|
|
@@ -321,14 +321,14 @@ function Re(e) {
|
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
323
|
Array.from(t).forEach((n) => {
|
|
324
|
-
ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
325
|
-
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
324
|
+
ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", D(n.style, e.steps[0].styles), setTimeout(() => {
|
|
325
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), D(n.style, e.steps[1].styles), setTimeout(() => {
|
|
326
326
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
327
327
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function st(e) {
|
|
332
332
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
333
333
|
if (!t.length) {
|
|
334
334
|
se(e.elementId || e.id || "");
|
|
@@ -338,17 +338,17 @@ function lt(e) {
|
|
|
338
338
|
ce(e, n);
|
|
339
339
|
const i = e.steps[0].styles, o = e.steps[1].styles;
|
|
340
340
|
function a() {
|
|
341
|
-
|
|
341
|
+
D(n.style, i);
|
|
342
342
|
}
|
|
343
343
|
function r() {
|
|
344
|
-
|
|
344
|
+
D(n.style, o);
|
|
345
345
|
}
|
|
346
346
|
a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
|
|
347
347
|
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function ct(e) {
|
|
352
352
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
353
353
|
if (!t.length) {
|
|
354
354
|
se(e.elementId || e.id || "");
|
|
@@ -358,22 +358,22 @@ function st(e) {
|
|
|
358
358
|
ce(e, n);
|
|
359
359
|
let i = !1, o = !1;
|
|
360
360
|
function a() {
|
|
361
|
-
!i &&
|
|
362
|
-
|
|
361
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
362
|
+
D(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
363
363
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
364
364
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
365
|
-
})) : e.repeat && i && !o && !
|
|
365
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, D(n.style, e.steps[0].styles));
|
|
366
366
|
}
|
|
367
|
-
const r =
|
|
367
|
+
const r = at(a, 200, {
|
|
368
368
|
leading: !1
|
|
369
369
|
});
|
|
370
|
-
function
|
|
371
|
-
const
|
|
372
|
-
return
|
|
370
|
+
function s(m) {
|
|
371
|
+
const f = m.getBoundingClientRect(), b = window.innerHeight, v = (e.thresholdPercent || 0) / 100 * b;
|
|
372
|
+
return f.bottom > v && f.top < b - v;
|
|
373
373
|
}
|
|
374
374
|
const d = e.steps[0].styles;
|
|
375
375
|
function c() {
|
|
376
|
-
|
|
376
|
+
D(n.style, d);
|
|
377
377
|
}
|
|
378
378
|
c(), setTimeout(() => {
|
|
379
379
|
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -383,37 +383,37 @@ function st(e) {
|
|
|
383
383
|
}), a();
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
const
|
|
386
|
+
const dt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
|
|
387
387
|
if (typeof i == "string")
|
|
388
|
-
return `${
|
|
389
|
-
}).filter(Y),
|
|
388
|
+
return `${dt(n)}: ${i};`;
|
|
389
|
+
}).filter(Y), ut = (e) => Pe(e).join(`
|
|
390
390
|
`), te = ({
|
|
391
391
|
mediaQuery: e,
|
|
392
392
|
className: t,
|
|
393
393
|
styles: n
|
|
394
394
|
}) => {
|
|
395
395
|
const i = `.${t} {
|
|
396
|
-
${
|
|
396
|
+
${ut(n)}
|
|
397
397
|
}`;
|
|
398
398
|
return e ? `${e} {
|
|
399
399
|
${i}
|
|
400
400
|
}` : i;
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function mt({
|
|
403
403
|
style: e
|
|
404
404
|
}) {
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
|
-
const
|
|
407
|
+
const ft = ({
|
|
408
408
|
block: e,
|
|
409
409
|
context: t
|
|
410
|
-
}) => Ve(
|
|
410
|
+
}) => Ve(mt({
|
|
411
411
|
style: e.style || {},
|
|
412
412
|
context: t,
|
|
413
413
|
block: e
|
|
414
414
|
}));
|
|
415
415
|
function Ve(e) {
|
|
416
|
-
switch (
|
|
416
|
+
switch (z) {
|
|
417
417
|
case "svelte":
|
|
418
418
|
case "vue":
|
|
419
419
|
case "solid":
|
|
@@ -425,7 +425,7 @@ function Ve(e) {
|
|
|
425
425
|
return e;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
const
|
|
428
|
+
const ht = ({
|
|
429
429
|
block: e,
|
|
430
430
|
context: t,
|
|
431
431
|
registeredComponents: n
|
|
@@ -447,7 +447,7 @@ const ft = ({
|
|
|
447
447
|
console.warn(`
|
|
448
448
|
Could not find a registered component named "${i}".
|
|
449
449
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
450
|
-
},
|
|
450
|
+
}, gt = ({
|
|
451
451
|
block: e,
|
|
452
452
|
context: t
|
|
453
453
|
}) => {
|
|
@@ -457,7 +457,7 @@ const ft = ({
|
|
|
457
457
|
} = e;
|
|
458
458
|
if (!(n != null && n.collection))
|
|
459
459
|
return;
|
|
460
|
-
const o =
|
|
460
|
+
const o = q({
|
|
461
461
|
code: n.collection,
|
|
462
462
|
localState: t.localState,
|
|
463
463
|
rootState: t.rootState,
|
|
@@ -525,7 +525,7 @@ const ft = ({
|
|
|
525
525
|
}, n;
|
|
526
526
|
};
|
|
527
527
|
function Z(e) {
|
|
528
|
-
return /* @__PURE__ */
|
|
528
|
+
return /* @__PURE__ */ l(
|
|
529
529
|
"style",
|
|
530
530
|
{
|
|
531
531
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -533,7 +533,7 @@ function Z(e) {
|
|
|
533
533
|
}
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
|
-
function
|
|
536
|
+
function bt(e) {
|
|
537
537
|
function t() {
|
|
538
538
|
const i = Q({
|
|
539
539
|
block: e.block,
|
|
@@ -556,12 +556,12 @@ function gt(e) {
|
|
|
556
556
|
shouldEvaluateBindings: !0
|
|
557
557
|
}), o = i.responsiveStyles, a = e.context.content, r = Ae(
|
|
558
558
|
((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
|
|
559
|
-
),
|
|
559
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
560
560
|
if (!m)
|
|
561
561
|
return "";
|
|
562
|
-
const
|
|
562
|
+
const f = s ? te({
|
|
563
563
|
className: m,
|
|
564
|
-
styles:
|
|
564
|
+
styles: s
|
|
565
565
|
}) : "", b = d ? te({
|
|
566
566
|
className: m,
|
|
567
567
|
styles: d,
|
|
@@ -569,7 +569,7 @@ function gt(e) {
|
|
|
569
569
|
"medium",
|
|
570
570
|
r
|
|
571
571
|
)
|
|
572
|
-
}) : "",
|
|
572
|
+
}) : "", p = c ? te({
|
|
573
573
|
className: m,
|
|
574
574
|
styles: c,
|
|
575
575
|
mediaQuery: ge(
|
|
@@ -577,14 +577,14 @@ function gt(e) {
|
|
|
577
577
|
r
|
|
578
578
|
)
|
|
579
579
|
}) : "";
|
|
580
|
-
return [
|
|
580
|
+
return [f, b, p].join(" ");
|
|
581
581
|
}
|
|
582
|
-
return /* @__PURE__ */
|
|
582
|
+
return /* @__PURE__ */ l(g, { children: n() && t() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-block", styles: n() }) }) : null });
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function yt(e) {
|
|
585
585
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
586
586
|
}
|
|
587
|
-
const
|
|
587
|
+
const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
|
|
588
588
|
code: e,
|
|
589
589
|
context: t.context,
|
|
590
590
|
localState: t.localState,
|
|
@@ -601,9 +601,9 @@ function We(e) {
|
|
|
601
601
|
if (!n.hasOwnProperty(o))
|
|
602
602
|
continue;
|
|
603
603
|
const a = n[o];
|
|
604
|
-
let r =
|
|
604
|
+
let r = pt(o);
|
|
605
605
|
if (e.stripPrefix)
|
|
606
|
-
switch (
|
|
606
|
+
switch (z) {
|
|
607
607
|
case "vue":
|
|
608
608
|
r = r.replace("v-on:", "");
|
|
609
609
|
break;
|
|
@@ -611,7 +611,7 @@ function We(e) {
|
|
|
611
611
|
r = r.replace("on:", "");
|
|
612
612
|
break;
|
|
613
613
|
}
|
|
614
|
-
t[r] =
|
|
614
|
+
t[r] = xt(a, e);
|
|
615
615
|
}
|
|
616
616
|
return t;
|
|
617
617
|
}
|
|
@@ -620,7 +620,7 @@ function St({
|
|
|
620
620
|
}) {
|
|
621
621
|
return e;
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const vt = (e) => ({
|
|
624
624
|
href: e.href
|
|
625
625
|
});
|
|
626
626
|
function de({
|
|
@@ -629,14 +629,14 @@ function de({
|
|
|
629
629
|
}) {
|
|
630
630
|
var i;
|
|
631
631
|
const n = {
|
|
632
|
-
...
|
|
632
|
+
...vt(e),
|
|
633
633
|
...e.properties,
|
|
634
634
|
"builder-id": e.id,
|
|
635
|
-
style:
|
|
635
|
+
style: ft({
|
|
636
636
|
block: e,
|
|
637
637
|
context: t
|
|
638
638
|
}),
|
|
639
|
-
[
|
|
639
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
640
640
|
};
|
|
641
641
|
return St({
|
|
642
642
|
properties: n,
|
|
@@ -644,8 +644,8 @@ function de({
|
|
|
644
644
|
block: e
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
function
|
|
648
|
-
return /* @__PURE__ */
|
|
647
|
+
function kt(e) {
|
|
648
|
+
return /* @__PURE__ */ l(
|
|
649
649
|
ae,
|
|
650
650
|
{
|
|
651
651
|
TagName: e.Wrapper,
|
|
@@ -665,8 +665,8 @@ function vt(e) {
|
|
|
665
665
|
}
|
|
666
666
|
);
|
|
667
667
|
}
|
|
668
|
-
function
|
|
669
|
-
return /* @__PURE__ */
|
|
668
|
+
function Ct(e) {
|
|
669
|
+
return /* @__PURE__ */ l(
|
|
670
670
|
e.Wrapper,
|
|
671
671
|
{
|
|
672
672
|
...e.wrapperProps,
|
|
@@ -687,7 +687,7 @@ function kt(e) {
|
|
|
687
687
|
}
|
|
688
688
|
);
|
|
689
689
|
}
|
|
690
|
-
const
|
|
690
|
+
const wt = ({
|
|
691
691
|
componentOptions: e,
|
|
692
692
|
builderBlock: t,
|
|
693
693
|
context: n,
|
|
@@ -696,7 +696,7 @@ const Ct = ({
|
|
|
696
696
|
isInteractive: a,
|
|
697
697
|
contextValue: r
|
|
698
698
|
}) => {
|
|
699
|
-
const
|
|
699
|
+
const s = {
|
|
700
700
|
...e,
|
|
701
701
|
/**
|
|
702
702
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -715,17 +715,17 @@ const Ct = ({
|
|
|
715
715
|
context: n,
|
|
716
716
|
wrapperProps: e,
|
|
717
717
|
includeBlockProps: o
|
|
718
|
-
} :
|
|
718
|
+
} : s;
|
|
719
719
|
};
|
|
720
720
|
function be(e) {
|
|
721
721
|
var i;
|
|
722
|
-
const [t, n] =
|
|
723
|
-
() => e.isInteractive ?
|
|
722
|
+
const [t, n] = C(
|
|
723
|
+
() => e.isInteractive ? Ct : e.componentRef
|
|
724
724
|
);
|
|
725
|
-
return /* @__PURE__ */
|
|
725
|
+
return /* @__PURE__ */ l(g, { children: e.componentRef ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
726
726
|
t,
|
|
727
727
|
{
|
|
728
|
-
...
|
|
728
|
+
...wt({
|
|
729
729
|
componentOptions: e.componentOptions,
|
|
730
730
|
builderBlock: e.builderBlock,
|
|
731
731
|
context: e.context,
|
|
@@ -735,8 +735,8 @@ function be(e) {
|
|
|
735
735
|
isInteractive: e.isInteractive,
|
|
736
736
|
contextValue: e.context
|
|
737
737
|
}),
|
|
738
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
739
|
-
|
|
738
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
739
|
+
_,
|
|
740
740
|
{
|
|
741
741
|
block: o,
|
|
742
742
|
context: e.context,
|
|
@@ -748,10 +748,10 @@ function be(e) {
|
|
|
748
748
|
}
|
|
749
749
|
) }) : null });
|
|
750
750
|
}
|
|
751
|
-
function
|
|
752
|
-
const [t, n] =
|
|
753
|
-
return /* @__PURE__ */
|
|
754
|
-
|
|
751
|
+
function It(e) {
|
|
752
|
+
const [t, n] = C(() => e.repeatContext);
|
|
753
|
+
return /* @__PURE__ */ l(re.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
754
|
+
_,
|
|
755
755
|
{
|
|
756
756
|
block: e.block,
|
|
757
757
|
context: t,
|
|
@@ -760,24 +760,24 @@ function wt(e) {
|
|
|
760
760
|
}
|
|
761
761
|
) });
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function _(e) {
|
|
764
764
|
var d, c, m;
|
|
765
765
|
function t() {
|
|
766
|
-
return
|
|
766
|
+
return ht({
|
|
767
767
|
block: e.block,
|
|
768
768
|
context: e.context,
|
|
769
769
|
registeredComponents: e.registeredComponents
|
|
770
770
|
});
|
|
771
771
|
}
|
|
772
772
|
function n() {
|
|
773
|
-
return
|
|
773
|
+
return gt({
|
|
774
774
|
block: e.block,
|
|
775
775
|
context: e.context
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
function i() {
|
|
779
|
-
var
|
|
780
|
-
return (
|
|
779
|
+
var f;
|
|
780
|
+
return (f = e.block.repeat) != null && f.collection ? e.block : Q({
|
|
781
781
|
block: e.block,
|
|
782
782
|
localState: e.context.localState,
|
|
783
783
|
rootState: e.context.rootState,
|
|
@@ -791,28 +791,28 @@ function z(e) {
|
|
|
791
791
|
return e.block.tagName === "a" || ((b = i().properties) == null ? void 0 : b.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
792
792
|
}
|
|
793
793
|
function a() {
|
|
794
|
-
var
|
|
795
|
-
if ((
|
|
794
|
+
var p, v;
|
|
795
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
796
796
|
return !!((v = n == null ? void 0 : n()) != null && v.length);
|
|
797
|
-
const
|
|
798
|
-
return ("show" in i() ? i().show : !0) && !
|
|
797
|
+
const f = "hide" in i() ? i().hide : !1;
|
|
798
|
+
return ("show" in i() ? i().show : !0) && !f;
|
|
799
799
|
}
|
|
800
800
|
function r() {
|
|
801
|
-
var b,
|
|
802
|
-
return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (
|
|
801
|
+
var b, p;
|
|
802
|
+
return !((b = t == null ? void 0 : t()) != null && b.component) && !n() ? (p = i().children) != null ? p : [] : [];
|
|
803
803
|
}
|
|
804
|
-
function
|
|
805
|
-
var
|
|
804
|
+
function s() {
|
|
805
|
+
var f, b, p, v, w, T, R, x, I, P, E;
|
|
806
806
|
return {
|
|
807
|
-
blockChildren: (
|
|
807
|
+
blockChildren: (f = i().children) != null ? f : [],
|
|
808
808
|
componentRef: (b = t == null ? void 0 : t()) == null ? void 0 : b.component,
|
|
809
809
|
componentOptions: {
|
|
810
|
-
...
|
|
810
|
+
...Qe(i()),
|
|
811
811
|
builderContext: e.context,
|
|
812
|
-
...((
|
|
812
|
+
...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Core:Button" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Columns" || ((T = t == null ? void 0 : t()) == null ? void 0 : T.name) === "Form:Form" ? {
|
|
813
813
|
builderLinkComponent: e.linkComponent
|
|
814
814
|
} : {},
|
|
815
|
-
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((
|
|
815
|
+
...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
|
|
816
816
|
builderComponents: e.registeredComponents
|
|
817
817
|
} : {}
|
|
818
818
|
},
|
|
@@ -824,83 +824,83 @@ function z(e) {
|
|
|
824
824
|
isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
return
|
|
828
|
-
const
|
|
829
|
-
b &&
|
|
830
|
-
b.filter((
|
|
831
|
-
...
|
|
832
|
-
elementId:
|
|
827
|
+
return V(() => {
|
|
828
|
+
const f = i().id, b = i().animations;
|
|
829
|
+
b && f && rt(
|
|
830
|
+
b.filter((p) => p.trigger !== "hover").map((p) => ({
|
|
831
|
+
...p,
|
|
832
|
+
elementId: f
|
|
833
833
|
}))
|
|
834
834
|
);
|
|
835
|
-
}, []), /* @__PURE__ */
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */
|
|
835
|
+
}, []), /* @__PURE__ */ l(g, { children: a() ? /* @__PURE__ */ B(g, { children: [
|
|
836
|
+
/* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
|
|
837
|
+
(d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
838
838
|
be,
|
|
839
839
|
{
|
|
840
|
-
componentRef:
|
|
841
|
-
componentOptions:
|
|
842
|
-
blockChildren:
|
|
843
|
-
context:
|
|
844
|
-
registeredComponents:
|
|
845
|
-
linkComponent:
|
|
846
|
-
builderBlock:
|
|
847
|
-
includeBlockProps:
|
|
848
|
-
isInteractive:
|
|
840
|
+
componentRef: s().componentRef,
|
|
841
|
+
componentOptions: s().componentOptions,
|
|
842
|
+
blockChildren: s().blockChildren,
|
|
843
|
+
context: s().context,
|
|
844
|
+
registeredComponents: s().registeredComponents,
|
|
845
|
+
linkComponent: s().linkComponent,
|
|
846
|
+
builderBlock: s().builderBlock,
|
|
847
|
+
includeBlockProps: s().includeBlockProps,
|
|
848
|
+
isInteractive: s().isInteractive
|
|
849
849
|
}
|
|
850
|
-
) }) : /* @__PURE__ */
|
|
851
|
-
|
|
850
|
+
) }) : /* @__PURE__ */ l(g, { children: n() ? /* @__PURE__ */ l(g, { children: (m = n()) == null ? void 0 : m.map((f, b) => /* @__PURE__ */ l(
|
|
851
|
+
It,
|
|
852
852
|
{
|
|
853
|
-
repeatContext:
|
|
854
|
-
block:
|
|
853
|
+
repeatContext: f.context,
|
|
854
|
+
block: f.block,
|
|
855
855
|
registeredComponents: e.registeredComponents,
|
|
856
856
|
linkComponent: e.linkComponent
|
|
857
857
|
},
|
|
858
858
|
b
|
|
859
|
-
)) }) : /* @__PURE__ */
|
|
860
|
-
|
|
859
|
+
)) }) : /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B(
|
|
860
|
+
kt,
|
|
861
861
|
{
|
|
862
862
|
Wrapper: o(),
|
|
863
863
|
block: i(),
|
|
864
864
|
context: e.context,
|
|
865
865
|
linkComponent: e.linkComponent,
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ l(
|
|
868
868
|
be,
|
|
869
869
|
{
|
|
870
|
-
componentRef:
|
|
871
|
-
componentOptions:
|
|
872
|
-
blockChildren:
|
|
873
|
-
context:
|
|
874
|
-
registeredComponents:
|
|
875
|
-
linkComponent:
|
|
876
|
-
builderBlock:
|
|
877
|
-
includeBlockProps:
|
|
878
|
-
isInteractive:
|
|
870
|
+
componentRef: s().componentRef,
|
|
871
|
+
componentOptions: s().componentOptions,
|
|
872
|
+
blockChildren: s().blockChildren,
|
|
873
|
+
context: s().context,
|
|
874
|
+
registeredComponents: s().registeredComponents,
|
|
875
|
+
linkComponent: s().linkComponent,
|
|
876
|
+
builderBlock: s().builderBlock,
|
|
877
|
+
includeBlockProps: s().includeBlockProps,
|
|
878
|
+
isInteractive: s().isInteractive
|
|
879
879
|
}
|
|
880
880
|
),
|
|
881
|
-
(c = r()) == null ? void 0 : c.map((
|
|
882
|
-
|
|
881
|
+
(c = r()) == null ? void 0 : c.map((f) => /* @__PURE__ */ l(
|
|
882
|
+
_,
|
|
883
883
|
{
|
|
884
|
-
block:
|
|
884
|
+
block: f,
|
|
885
885
|
registeredComponents: e.registeredComponents,
|
|
886
886
|
linkComponent: e.linkComponent,
|
|
887
887
|
context: e.context
|
|
888
888
|
},
|
|
889
|
-
|
|
889
|
+
f.id
|
|
890
890
|
))
|
|
891
891
|
]
|
|
892
892
|
}
|
|
893
|
-
) })
|
|
893
|
+
) }) })
|
|
894
894
|
] }) : null });
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Tt(e) {
|
|
897
897
|
function t() {
|
|
898
898
|
var o;
|
|
899
899
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
900
900
|
}
|
|
901
901
|
function n() {
|
|
902
902
|
var o, a;
|
|
903
|
-
|
|
903
|
+
N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
904
904
|
{
|
|
905
905
|
type: "builder.clickEmptyBlocks",
|
|
906
906
|
data: {
|
|
@@ -913,7 +913,7 @@ function It(e) {
|
|
|
913
913
|
}
|
|
914
914
|
function i() {
|
|
915
915
|
var o, a;
|
|
916
|
-
|
|
916
|
+
N() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
917
917
|
{
|
|
918
918
|
type: "builder.hoverEmptyBlocks",
|
|
919
919
|
data: {
|
|
@@ -924,11 +924,11 @@ function It(e) {
|
|
|
924
924
|
"*"
|
|
925
925
|
));
|
|
926
926
|
}
|
|
927
|
-
return /* @__PURE__ */
|
|
928
|
-
/* @__PURE__ */
|
|
927
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
928
|
+
/* @__PURE__ */ l(
|
|
929
929
|
e.BlocksWrapper,
|
|
930
930
|
{
|
|
931
|
-
className: t() + " props-blocks-wrapper-
|
|
931
|
+
className: t() + " props-blocks-wrapper-7354e098",
|
|
932
932
|
"builder-path": e.path,
|
|
933
933
|
"builder-parent-id": e.parent,
|
|
934
934
|
style: e.styleProp,
|
|
@@ -939,18 +939,18 @@ function It(e) {
|
|
|
939
939
|
children: e.children
|
|
940
940
|
}
|
|
941
941
|
),
|
|
942
|
-
/* @__PURE__ */
|
|
942
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7354e098 {
|
|
943
943
|
display: flex;
|
|
944
944
|
flex-direction: column;
|
|
945
945
|
align-items: stretch;
|
|
946
946
|
}` })
|
|
947
947
|
] });
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function U(e) {
|
|
950
950
|
var i, o, a;
|
|
951
951
|
const t = fe(re), n = fe(Ie);
|
|
952
|
-
return /* @__PURE__ */
|
|
953
|
-
|
|
952
|
+
return /* @__PURE__ */ l(
|
|
953
|
+
Tt,
|
|
954
954
|
{
|
|
955
955
|
blocks: e.blocks,
|
|
956
956
|
parent: e.parent,
|
|
@@ -958,8 +958,8 @@ function O(e) {
|
|
|
958
958
|
styleProp: e.styleProp,
|
|
959
959
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
960
960
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
961
|
-
children: e.blocks ? /* @__PURE__ */
|
|
962
|
-
|
|
961
|
+
children: e.blocks ? /* @__PURE__ */ l(g, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
962
|
+
_,
|
|
963
963
|
{
|
|
964
964
|
block: r,
|
|
965
965
|
linkComponent: e.linkComponent,
|
|
@@ -971,47 +971,47 @@ function O(e) {
|
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Et(e) {
|
|
975
975
|
var R;
|
|
976
|
-
const [t, n] =
|
|
976
|
+
const [t, n] = C(
|
|
977
977
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
978
|
-
), [i, o] =
|
|
978
|
+
), [i, o] = C(() => e.columns || []), [a, r] = C(
|
|
979
979
|
() => e.stackColumnsAt || "tablet"
|
|
980
980
|
);
|
|
981
|
-
function
|
|
982
|
-
var
|
|
983
|
-
return ((
|
|
981
|
+
function s(x) {
|
|
982
|
+
var I;
|
|
983
|
+
return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
|
|
984
984
|
}
|
|
985
|
-
function d(
|
|
986
|
-
const
|
|
987
|
-
return `calc(${
|
|
985
|
+
function d(x) {
|
|
986
|
+
const I = t * (i.length - 1) / i.length;
|
|
987
|
+
return `calc(${s(x)}% - ${I}px)`;
|
|
988
988
|
}
|
|
989
989
|
function c({
|
|
990
|
-
stackedStyle:
|
|
991
|
-
desktopStyle:
|
|
990
|
+
stackedStyle: x,
|
|
991
|
+
desktopStyle: I
|
|
992
992
|
}) {
|
|
993
|
-
return a === "tablet" ?
|
|
993
|
+
return a === "tablet" ? x : I;
|
|
994
994
|
}
|
|
995
995
|
function m({
|
|
996
|
-
stackedStyle:
|
|
997
|
-
desktopStyle:
|
|
996
|
+
stackedStyle: x,
|
|
997
|
+
desktopStyle: I
|
|
998
998
|
}) {
|
|
999
|
-
return a === "never" ?
|
|
999
|
+
return a === "never" ? I : x;
|
|
1000
1000
|
}
|
|
1001
|
-
const [
|
|
1001
|
+
const [f, b] = C(
|
|
1002
1002
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1003
1003
|
);
|
|
1004
|
-
function
|
|
1004
|
+
function p() {
|
|
1005
1005
|
return {
|
|
1006
|
-
"--flex-dir":
|
|
1006
|
+
"--flex-dir": f,
|
|
1007
1007
|
"--flex-dir-tablet": c({
|
|
1008
|
-
stackedStyle:
|
|
1008
|
+
stackedStyle: f,
|
|
1009
1009
|
desktopStyle: "row"
|
|
1010
1010
|
})
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function v(
|
|
1014
|
-
const
|
|
1013
|
+
function v(x) {
|
|
1014
|
+
const I = x === 0 ? 0 : t, P = d(x), E = `${I}px`, $ = "100%", L = 0;
|
|
1015
1015
|
return {
|
|
1016
1016
|
...{
|
|
1017
1017
|
display: "flex",
|
|
@@ -1021,32 +1021,32 @@ function Tt(e) {
|
|
|
1021
1021
|
width: P,
|
|
1022
1022
|
["marginLeft"]: E,
|
|
1023
1023
|
"--column-width-mobile": m({
|
|
1024
|
-
stackedStyle:
|
|
1024
|
+
stackedStyle: $,
|
|
1025
1025
|
desktopStyle: P
|
|
1026
1026
|
}),
|
|
1027
1027
|
"--column-margin-left-mobile": m({
|
|
1028
|
-
stackedStyle:
|
|
1028
|
+
stackedStyle: L,
|
|
1029
1029
|
desktopStyle: E
|
|
1030
1030
|
}),
|
|
1031
1031
|
"--column-width-tablet": c({
|
|
1032
|
-
stackedStyle:
|
|
1032
|
+
stackedStyle: $,
|
|
1033
1033
|
desktopStyle: P
|
|
1034
1034
|
}),
|
|
1035
1035
|
"--column-margin-left-tablet": c({
|
|
1036
|
-
stackedStyle:
|
|
1036
|
+
stackedStyle: L,
|
|
1037
1037
|
desktopStyle: E
|
|
1038
1038
|
})
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function w(x) {
|
|
1042
1042
|
var P, E;
|
|
1043
1043
|
return Ae(
|
|
1044
1044
|
((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1045
|
-
)[
|
|
1045
|
+
)[x].max;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function T() {
|
|
1048
1048
|
return `
|
|
1049
|
-
@media (max-width: ${
|
|
1049
|
+
@media (max-width: ${w("medium")}px) {
|
|
1050
1050
|
.${e.builderBlock.id}-breakpoints {
|
|
1051
1051
|
flex-direction: var(--flex-dir-tablet);
|
|
1052
1052
|
align-items: stretch;
|
|
@@ -1058,7 +1058,7 @@ function Tt(e) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
1060
|
|
|
1061
|
-
@media (max-width: ${
|
|
1061
|
+
@media (max-width: ${w("small")}px) {
|
|
1062
1062
|
.${e.builderBlock.id}-breakpoints {
|
|
1063
1063
|
flex-direction: var(--flex-dir);
|
|
1064
1064
|
align-items: stretch;
|
|
@@ -1071,30 +1071,30 @@ function Tt(e) {
|
|
|
1071
1071
|
},
|
|
1072
1072
|
`;
|
|
1073
1073
|
}
|
|
1074
|
-
return /* @__PURE__ */
|
|
1075
|
-
/* @__PURE__ */
|
|
1074
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
1075
|
+
/* @__PURE__ */ B(
|
|
1076
1076
|
"div",
|
|
1077
1077
|
{
|
|
1078
|
-
className: `builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
1079
|
-
style:
|
|
1078
|
+
className: `builder-columns ${e.builderBlock.id}-breakpoints div-7a098ce6`,
|
|
1079
|
+
style: p(),
|
|
1080
1080
|
children: [
|
|
1081
|
-
/* @__PURE__ */
|
|
1082
|
-
(R = e.columns) == null ? void 0 : R.map((
|
|
1081
|
+
/* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(Z, { id: "builderio-columns", styles: T() }) }),
|
|
1082
|
+
(R = e.columns) == null ? void 0 : R.map((x, I) => /* @__PURE__ */ l(
|
|
1083
1083
|
ae,
|
|
1084
1084
|
{
|
|
1085
|
-
TagName:
|
|
1085
|
+
TagName: x.link ? e.builderLinkComponent || "a" : "div",
|
|
1086
1086
|
actionAttributes: {},
|
|
1087
1087
|
attributes: {
|
|
1088
|
-
...
|
|
1089
|
-
href:
|
|
1088
|
+
...x.link ? {
|
|
1089
|
+
href: x.link
|
|
1090
1090
|
} : {},
|
|
1091
|
-
[
|
|
1092
|
-
style: Ve(v(
|
|
1091
|
+
[K()]: "builder-column",
|
|
1092
|
+
style: Ve(v(I))
|
|
1093
1093
|
},
|
|
1094
|
-
children: /* @__PURE__ */
|
|
1095
|
-
|
|
1094
|
+
children: /* @__PURE__ */ l(
|
|
1095
|
+
U,
|
|
1096
1096
|
{
|
|
1097
|
-
path: `component.options.columns.${
|
|
1097
|
+
path: `component.options.columns.${I}.blocks`,
|
|
1098
1098
|
parent: e.builderBlock.id,
|
|
1099
1099
|
styleProp: {
|
|
1100
1100
|
flexGrow: "1"
|
|
@@ -1102,32 +1102,32 @@ function Tt(e) {
|
|
|
1102
1102
|
context: e.builderContext,
|
|
1103
1103
|
registeredComponents: e.builderComponents,
|
|
1104
1104
|
linkComponent: e.builderLinkComponent,
|
|
1105
|
-
blocks:
|
|
1105
|
+
blocks: x.blocks
|
|
1106
1106
|
}
|
|
1107
1107
|
)
|
|
1108
1108
|
},
|
|
1109
|
-
|
|
1109
|
+
I
|
|
1110
1110
|
))
|
|
1111
1111
|
]
|
|
1112
1112
|
}
|
|
1113
1113
|
),
|
|
1114
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ l("style", { children: `.div-7a098ce6 {
|
|
1115
1115
|
display: flex;
|
|
1116
1116
|
line-height: normal;
|
|
1117
1117
|
}` })
|
|
1118
1118
|
] });
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1121
|
-
return /* @__PURE__ */
|
|
1120
|
+
function Rt(e) {
|
|
1121
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1122
1122
|
}
|
|
1123
1123
|
function ye(e) {
|
|
1124
1124
|
return e.replace(/http(s)?:/, "");
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function Pt(e = "", t, n) {
|
|
1127
1127
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1128
1128
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function Vt(e, t) {
|
|
1131
1131
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1132
1132
|
return e;
|
|
1133
1133
|
if (t === "master")
|
|
@@ -1146,12 +1146,12 @@ function ne(e) {
|
|
|
1146
1146
|
if (e.match(/builder\.io/)) {
|
|
1147
1147
|
let n = e;
|
|
1148
1148
|
const i = Number(e.split("?width=")[1]);
|
|
1149
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1149
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1150
1150
|
}
|
|
1151
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1151
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
var o, a, r,
|
|
1153
|
+
function Bt(e) {
|
|
1154
|
+
var o, a, r, s;
|
|
1155
1155
|
function t() {
|
|
1156
1156
|
var m;
|
|
1157
1157
|
const c = e.image || e.src;
|
|
@@ -1180,11 +1180,11 @@ function Vt(e) {
|
|
|
1180
1180
|
};
|
|
1181
1181
|
return e.aspectRatio ? d : void 0;
|
|
1182
1182
|
}
|
|
1183
|
-
return /* @__PURE__ */
|
|
1184
|
-
/* @__PURE__ */
|
|
1185
|
-
/* @__PURE__ */
|
|
1186
|
-
n() ? /* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1183
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
1184
|
+
/* @__PURE__ */ B(g, { children: [
|
|
1185
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1186
|
+
n() ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
1187
|
+
/* @__PURE__ */ l(
|
|
1188
1188
|
"img",
|
|
1189
1189
|
{
|
|
1190
1190
|
loading: "lazy",
|
|
@@ -1195,33 +1195,33 @@ function Vt(e) {
|
|
|
1195
1195
|
objectFit: e.backgroundSize || "cover",
|
|
1196
1196
|
...i()
|
|
1197
1197
|
},
|
|
1198
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1198
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-0614da04",
|
|
1199
1199
|
src: e.image,
|
|
1200
1200
|
srcSet: t(),
|
|
1201
1201
|
sizes: e.sizes
|
|
1202
1202
|
}
|
|
1203
1203
|
)
|
|
1204
1204
|
] }),
|
|
1205
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1205
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
1208
|
-
className: "builder-image-sizer div-
|
|
1208
|
+
className: "builder-image-sizer div-0614da04",
|
|
1209
1209
|
style: {
|
|
1210
1210
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
|
-
) : null,
|
|
1214
|
-
(
|
|
1215
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
1213
|
+
) }) : null,
|
|
1214
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: e.children }) : null,
|
|
1215
|
+
!e.fitContent && e.children ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l("div", { className: "div-0614da04-2", children: e.children }) }) : null
|
|
1216
1216
|
] }),
|
|
1217
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ l("style", { children: `.img-0614da04 {
|
|
1218
1218
|
opacity: 1;
|
|
1219
1219
|
transition: opacity 0.2s ease-in-out;
|
|
1220
|
-
}.div-
|
|
1220
|
+
}.div-0614da04 {
|
|
1221
1221
|
width: 100%;
|
|
1222
1222
|
pointer-events: none;
|
|
1223
1223
|
font-size: 0;
|
|
1224
|
-
}.div-
|
|
1224
|
+
}.div-0614da04-2 {
|
|
1225
1225
|
display: flex;
|
|
1226
1226
|
flex-direction: column;
|
|
1227
1227
|
align-items: stretch;
|
|
@@ -1233,8 +1233,8 @@ function Vt(e) {
|
|
|
1233
1233
|
}` })
|
|
1234
1234
|
] });
|
|
1235
1235
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return /* @__PURE__ */
|
|
1236
|
+
function At(e) {
|
|
1237
|
+
return /* @__PURE__ */ l(
|
|
1238
1238
|
"section",
|
|
1239
1239
|
{
|
|
1240
1240
|
...e.attributes,
|
|
@@ -1254,7 +1254,7 @@ function Bt(e) {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
);
|
|
1256
1256
|
}
|
|
1257
|
-
const
|
|
1257
|
+
const Wt = {
|
|
1258
1258
|
name: "Core:Button",
|
|
1259
1259
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1260
1260
|
defaultStyles: {
|
|
@@ -1287,7 +1287,7 @@ const At = {
|
|
|
1287
1287
|
}],
|
|
1288
1288
|
static: !0,
|
|
1289
1289
|
noWrap: !0
|
|
1290
|
-
},
|
|
1290
|
+
}, Nt = {
|
|
1291
1291
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1292
1292
|
name: "Columns",
|
|
1293
1293
|
isRSC: !0,
|
|
@@ -1466,7 +1466,7 @@ const At = {
|
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
const n = e.get("columns");
|
|
1469
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1469
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1470
1470
|
}
|
|
1471
1471
|
}, {
|
|
1472
1472
|
name: "space",
|
|
@@ -1488,13 +1488,13 @@ const At = {
|
|
|
1488
1488
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1489
1489
|
advanced: !0
|
|
1490
1490
|
}]
|
|
1491
|
-
},
|
|
1491
|
+
}, Ft = {
|
|
1492
1492
|
name: "Fragment",
|
|
1493
1493
|
static: !0,
|
|
1494
1494
|
hidden: !0,
|
|
1495
1495
|
canHaveChildren: !0,
|
|
1496
1496
|
noWrap: !0
|
|
1497
|
-
},
|
|
1497
|
+
}, $t = {
|
|
1498
1498
|
name: "Image",
|
|
1499
1499
|
static: !0,
|
|
1500
1500
|
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",
|
|
@@ -1514,17 +1514,17 @@ const At = {
|
|
|
1514
1514
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1515
1515
|
onChange: (e) => {
|
|
1516
1516
|
e.delete("srcset"), e.delete("noWebp");
|
|
1517
|
-
function n(r,
|
|
1517
|
+
function n(r, s = 6e4) {
|
|
1518
1518
|
return new Promise((d, c) => {
|
|
1519
1519
|
const m = document.createElement("img");
|
|
1520
|
-
let
|
|
1520
|
+
let f = !1;
|
|
1521
1521
|
m.onload = () => {
|
|
1522
|
-
|
|
1522
|
+
f = !0, d(m);
|
|
1523
1523
|
}, m.addEventListener("error", (b) => {
|
|
1524
1524
|
console.warn("Image load failed", b.error), c(b.error);
|
|
1525
1525
|
}), m.src = r, setTimeout(() => {
|
|
1526
|
-
|
|
1527
|
-
},
|
|
1526
|
+
f || c(new Error("Image load timed out"));
|
|
1527
|
+
}, s);
|
|
1528
1528
|
});
|
|
1529
1529
|
}
|
|
1530
1530
|
function i(r) {
|
|
@@ -1535,8 +1535,8 @@ const At = {
|
|
|
1535
1535
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1536
1536
|
}), o && (!a || a === 0.7041))
|
|
1537
1537
|
return n(o).then((r) => {
|
|
1538
|
-
const
|
|
1539
|
-
e.get("image") === o && (!
|
|
1538
|
+
const s = e.get("aspectRatio");
|
|
1539
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
1542
|
}, {
|
|
@@ -1594,7 +1594,7 @@ const At = {
|
|
|
1594
1594
|
advanced: !0,
|
|
1595
1595
|
defaultValue: 0.7041
|
|
1596
1596
|
}]
|
|
1597
|
-
},
|
|
1597
|
+
}, Lt = {
|
|
1598
1598
|
name: "Core:Section",
|
|
1599
1599
|
static: !0,
|
|
1600
1600
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1633,7 +1633,7 @@ const At = {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
1635
|
}]
|
|
1636
|
-
},
|
|
1636
|
+
}, Dt = {
|
|
1637
1637
|
name: "Slot",
|
|
1638
1638
|
isRSC: !0,
|
|
1639
1639
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1647,9 +1647,9 @@ const At = {
|
|
|
1647
1647
|
defaultValue: "children"
|
|
1648
1648
|
}]
|
|
1649
1649
|
};
|
|
1650
|
-
function
|
|
1650
|
+
function Mt(e) {
|
|
1651
1651
|
var t, n, i;
|
|
1652
|
-
return /* @__PURE__ */
|
|
1652
|
+
return /* @__PURE__ */ l(
|
|
1653
1653
|
"div",
|
|
1654
1654
|
{
|
|
1655
1655
|
style: {
|
|
@@ -1658,8 +1658,8 @@ function Dt(e) {
|
|
|
1658
1658
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1659
1659
|
"builder-slot": e.name
|
|
1660
1660
|
},
|
|
1661
|
-
children: /* @__PURE__ */
|
|
1662
|
-
|
|
1661
|
+
children: /* @__PURE__ */ l(
|
|
1662
|
+
U,
|
|
1663
1663
|
{
|
|
1664
1664
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1665
1665
|
path: `symbol.data.${e.name}`,
|
|
@@ -1670,7 +1670,7 @@ function Dt(e) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
);
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const Ot = {
|
|
1674
1674
|
name: "Symbol",
|
|
1675
1675
|
noWrap: !0,
|
|
1676
1676
|
static: !0,
|
|
@@ -1703,7 +1703,7 @@ const Mt = {
|
|
|
1703
1703
|
hideFromUI: !0,
|
|
1704
1704
|
type: "boolean"
|
|
1705
1705
|
}]
|
|
1706
|
-
},
|
|
1706
|
+
}, Ut = {
|
|
1707
1707
|
name: "Text",
|
|
1708
1708
|
static: !0,
|
|
1709
1709
|
isRSC: !0,
|
|
@@ -1722,9 +1722,9 @@ const Mt = {
|
|
|
1722
1722
|
textAlign: "center"
|
|
1723
1723
|
}
|
|
1724
1724
|
};
|
|
1725
|
-
function
|
|
1725
|
+
function jt(e) {
|
|
1726
1726
|
var t;
|
|
1727
|
-
return /* @__PURE__ */
|
|
1727
|
+
return /* @__PURE__ */ l(
|
|
1728
1728
|
"div",
|
|
1729
1729
|
{
|
|
1730
1730
|
className: "builder-text",
|
|
@@ -1735,7 +1735,7 @@ function Ut(e) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
);
|
|
1737
1737
|
}
|
|
1738
|
-
const
|
|
1738
|
+
const Ht = {
|
|
1739
1739
|
name: "Custom Code",
|
|
1740
1740
|
static: !0,
|
|
1741
1741
|
requiredPermissions: ["editCode"],
|
|
@@ -1758,11 +1758,11 @@ const jt = {
|
|
|
1758
1758
|
advanced: !0
|
|
1759
1759
|
}]
|
|
1760
1760
|
};
|
|
1761
|
-
function
|
|
1762
|
-
const t = X(null), [n, i] =
|
|
1763
|
-
return
|
|
1764
|
-
var
|
|
1765
|
-
if (!((
|
|
1761
|
+
function Kt(e) {
|
|
1762
|
+
const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []);
|
|
1763
|
+
return V(() => {
|
|
1764
|
+
var s;
|
|
1765
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
1766
1766
|
return;
|
|
1767
1767
|
const r = t.current.getElementsByTagName("script");
|
|
1768
1768
|
for (let d = 0; d < r.length; d++) {
|
|
@@ -1787,7 +1787,7 @@ function Ht(e) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
|
-
}, []), /* @__PURE__ */
|
|
1790
|
+
}, []), /* @__PURE__ */ l(
|
|
1791
1791
|
"div",
|
|
1792
1792
|
{
|
|
1793
1793
|
ref: t,
|
|
@@ -1796,7 +1796,7 @@ function Ht(e) {
|
|
|
1796
1796
|
}
|
|
1797
1797
|
);
|
|
1798
1798
|
}
|
|
1799
|
-
const
|
|
1799
|
+
const qt = {
|
|
1800
1800
|
name: "Embed",
|
|
1801
1801
|
static: !0,
|
|
1802
1802
|
inputs: [{
|
|
@@ -1821,30 +1821,30 @@ const Kt = {
|
|
|
1821
1821
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1822
1822
|
hideFromUI: !0
|
|
1823
1823
|
}]
|
|
1824
|
-
},
|
|
1825
|
-
function
|
|
1826
|
-
const t = X(null), [n, i] =
|
|
1824
|
+
}, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
|
|
1825
|
+
function Jt(e) {
|
|
1826
|
+
const t = X(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, s] = C(() => !1);
|
|
1827
1827
|
function d() {
|
|
1828
1828
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1829
1829
|
return;
|
|
1830
1830
|
const c = t.current.getElementsByTagName("script");
|
|
1831
1831
|
for (let m = 0; m < c.length; m++) {
|
|
1832
|
-
const
|
|
1833
|
-
if (
|
|
1834
|
-
n.push(
|
|
1832
|
+
const f = c[m];
|
|
1833
|
+
if (f.src && !n.includes(f.src)) {
|
|
1834
|
+
n.push(f.src);
|
|
1835
1835
|
const b = document.createElement("script");
|
|
1836
|
-
b.async = !0, b.src =
|
|
1837
|
-
} else if (
|
|
1836
|
+
b.async = !0, b.src = f.src, document.head.appendChild(b);
|
|
1837
|
+
} else if (_t(f) && !o.includes(f.innerText))
|
|
1838
1838
|
try {
|
|
1839
|
-
o.push(
|
|
1839
|
+
o.push(f.innerText), new Function(f.innerText)();
|
|
1840
1840
|
} catch (b) {
|
|
1841
1841
|
console.warn("`Embed`: Error running script:", b);
|
|
1842
1842
|
}
|
|
1843
1843
|
}
|
|
1844
1844
|
}
|
|
1845
|
-
return
|
|
1846
|
-
t.current && !r && (
|
|
1847
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
1845
|
+
return V(() => {
|
|
1846
|
+
t.current && !r && (s(!0), d());
|
|
1847
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
1848
1848
|
"div",
|
|
1849
1849
|
{
|
|
1850
1850
|
className: "builder-embed",
|
|
@@ -1853,7 +1853,7 @@ function _t(e) {
|
|
|
1853
1853
|
}
|
|
1854
1854
|
);
|
|
1855
1855
|
}
|
|
1856
|
-
const
|
|
1856
|
+
const Yt = {
|
|
1857
1857
|
name: "Form:Form",
|
|
1858
1858
|
// editableTags: ['builder-form-error']
|
|
1859
1859
|
defaults: {
|
|
@@ -2084,127 +2084,127 @@ const Jt = {
|
|
|
2084
2084
|
}
|
|
2085
2085
|
}
|
|
2086
2086
|
}]
|
|
2087
|
-
},
|
|
2087
|
+
}, Gt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Qt = () => {
|
|
2088
2088
|
const e = process.env.NODE_ENV || "production";
|
|
2089
|
-
return
|
|
2090
|
-
},
|
|
2089
|
+
return Gt.includes(e) ? e : "production";
|
|
2090
|
+
}, Xt = (e, t, n) => {
|
|
2091
2091
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2092
2092
|
return i === void 0 || i === e ? n : i;
|
|
2093
2093
|
};
|
|
2094
|
-
function
|
|
2095
|
-
var
|
|
2096
|
-
const t = X(null), [n, i] =
|
|
2097
|
-
function d(
|
|
2098
|
-
var
|
|
2094
|
+
function Zt(e) {
|
|
2095
|
+
var f, b;
|
|
2096
|
+
const t = X(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, s] = C(() => "");
|
|
2097
|
+
function d(p) {
|
|
2098
|
+
var w, T;
|
|
2099
2099
|
const v = {
|
|
2100
2100
|
...e.builderContext.rootState,
|
|
2101
|
-
...
|
|
2101
|
+
...p
|
|
2102
2102
|
};
|
|
2103
|
-
e.builderContext.rootSetState ? (
|
|
2103
|
+
e.builderContext.rootSetState ? (T = (w = e.builderContext).rootSetState) == null || T.call(w, v) : e.builderContext.rootState = v;
|
|
2104
2104
|
}
|
|
2105
2105
|
function c() {
|
|
2106
|
-
return
|
|
2106
|
+
return N() && e.previewState || n;
|
|
2107
2107
|
}
|
|
2108
|
-
function m(
|
|
2109
|
-
var
|
|
2108
|
+
function m(p) {
|
|
2109
|
+
var w;
|
|
2110
2110
|
const v = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2111
2111
|
if (e.sendSubmissionsTo === "zapier")
|
|
2112
|
-
|
|
2112
|
+
p.preventDefault();
|
|
2113
2113
|
else if (v) {
|
|
2114
2114
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2115
|
-
|
|
2115
|
+
p.preventDefault();
|
|
2116
2116
|
return;
|
|
2117
2117
|
}
|
|
2118
|
-
|
|
2119
|
-
const
|
|
2120
|
-
let
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2118
|
+
p.preventDefault();
|
|
2119
|
+
const T = p.currentTarget, R = e.customHeaders || {};
|
|
2120
|
+
let x;
|
|
2121
|
+
const I = new FormData(T), P = Array.from(
|
|
2122
|
+
p.currentTarget.querySelectorAll("input,select,textarea")
|
|
2123
2123
|
).filter((u) => !!u.name).map((u) => {
|
|
2124
|
-
let
|
|
2125
|
-
const
|
|
2124
|
+
let h;
|
|
2125
|
+
const k = u.name;
|
|
2126
2126
|
if (u instanceof HTMLInputElement)
|
|
2127
2127
|
if (u.type === "radio") {
|
|
2128
2128
|
if (u.checked)
|
|
2129
|
-
return
|
|
2130
|
-
key:
|
|
2131
|
-
value:
|
|
2129
|
+
return h = u.name, {
|
|
2130
|
+
key: k,
|
|
2131
|
+
value: h
|
|
2132
2132
|
};
|
|
2133
2133
|
} else if (u.type === "checkbox")
|
|
2134
|
-
|
|
2134
|
+
h = u.checked;
|
|
2135
2135
|
else if (u.type === "number" || u.type === "range") {
|
|
2136
|
-
const
|
|
2137
|
-
isNaN(
|
|
2136
|
+
const y = u.valueAsNumber;
|
|
2137
|
+
isNaN(y) || (h = y);
|
|
2138
2138
|
} else
|
|
2139
|
-
u.type === "file" ?
|
|
2139
|
+
u.type === "file" ? h = u.files : h = u.value;
|
|
2140
2140
|
else
|
|
2141
|
-
|
|
2141
|
+
h = u.value;
|
|
2142
2142
|
return {
|
|
2143
|
-
key:
|
|
2144
|
-
value:
|
|
2143
|
+
key: k,
|
|
2144
|
+
value: h
|
|
2145
2145
|
};
|
|
2146
2146
|
});
|
|
2147
2147
|
let E = e.contentType;
|
|
2148
2148
|
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
|
|
2149
2149
|
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
|
|
2150
2150
|
}), E !== "application/json")
|
|
2151
|
-
|
|
2151
|
+
x = I;
|
|
2152
2152
|
else {
|
|
2153
2153
|
const u = {};
|
|
2154
|
-
Array.from(P).forEach(({ value:
|
|
2155
|
-
Ee(u,
|
|
2156
|
-
}),
|
|
2154
|
+
Array.from(P).forEach(({ value: h, key: k }) => {
|
|
2155
|
+
Ee(u, k, h);
|
|
2156
|
+
}), x = JSON.stringify(u);
|
|
2157
2157
|
}
|
|
2158
|
-
E && E !== "multipart/form-data" && (v && ((
|
|
2159
|
-
const
|
|
2160
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2158
|
+
E && E !== "multipart/form-data" && (v && ((w = e.action) != null && w.includes("zapier.com")) || (R["content-type"] = E));
|
|
2159
|
+
const $ = new CustomEvent("presubmit", { detail: { body: x } });
|
|
2160
|
+
if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
|
|
2161
2161
|
return;
|
|
2162
2162
|
i("sending");
|
|
2163
|
-
const
|
|
2163
|
+
const L = `${Qt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2164
2164
|
e.sendSubmissionsToEmail || ""
|
|
2165
2165
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2166
2166
|
fetch(
|
|
2167
|
-
e.sendSubmissionsTo === "email" ?
|
|
2168
|
-
{ body:
|
|
2167
|
+
e.sendSubmissionsTo === "email" ? L : e.action,
|
|
2168
|
+
{ body: x, headers: R, method: e.method || "post" }
|
|
2169
2169
|
).then(
|
|
2170
2170
|
async (u) => {
|
|
2171
|
-
let
|
|
2172
|
-
const
|
|
2173
|
-
if (
|
|
2174
|
-
let
|
|
2175
|
-
|
|
2171
|
+
let h;
|
|
2172
|
+
const k = u.headers.get("content-type");
|
|
2173
|
+
if (k && k.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2174
|
+
let y = Xt(h, e.errorMessagePath);
|
|
2175
|
+
y && (typeof y != "string" && (y = JSON.stringify(y)), s(y), d({ formErrorMessage: y }));
|
|
2176
2176
|
}
|
|
2177
|
-
if (a(
|
|
2178
|
-
const
|
|
2179
|
-
detail: { res: u, body:
|
|
2177
|
+
if (a(h), i(u.ok ? "success" : "error"), u.ok) {
|
|
2178
|
+
const y = new CustomEvent("submit:success", {
|
|
2179
|
+
detail: { res: u, body: h }
|
|
2180
2180
|
});
|
|
2181
2181
|
if (t.current) {
|
|
2182
|
-
if (t.current.dispatchEvent(
|
|
2182
|
+
if (t.current.dispatchEvent(y), y.defaultPrevented)
|
|
2183
2183
|
return;
|
|
2184
2184
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2185
2185
|
}
|
|
2186
2186
|
if (e.successUrl)
|
|
2187
2187
|
if (t.current) {
|
|
2188
|
-
const
|
|
2188
|
+
const S = new CustomEvent("route", {
|
|
2189
2189
|
detail: { url: e.successUrl }
|
|
2190
2190
|
});
|
|
2191
|
-
t.current.dispatchEvent(
|
|
2191
|
+
t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
|
|
2192
2192
|
} else
|
|
2193
2193
|
location.href = e.successUrl;
|
|
2194
2194
|
}
|
|
2195
2195
|
},
|
|
2196
2196
|
(u) => {
|
|
2197
|
-
const
|
|
2197
|
+
const h = new CustomEvent("submit:error", {
|
|
2198
2198
|
detail: { error: u }
|
|
2199
2199
|
});
|
|
2200
|
-
t.current && (t.current.dispatchEvent(
|
|
2200
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (a(u), i("error"));
|
|
2201
2201
|
}
|
|
2202
2202
|
);
|
|
2203
2203
|
}
|
|
2204
2204
|
}
|
|
2205
|
-
return /* @__PURE__ */
|
|
2205
|
+
return /* @__PURE__ */ B(g, { children: [
|
|
2206
2206
|
" ",
|
|
2207
|
-
/* @__PURE__ */
|
|
2207
|
+
/* @__PURE__ */ B(
|
|
2208
2208
|
"form",
|
|
2209
2209
|
{
|
|
2210
2210
|
validate: e.validate,
|
|
@@ -2212,53 +2212,63 @@ function Xt(e) {
|
|
|
2212
2212
|
action: !e.sendWithJs && e.action,
|
|
2213
2213
|
method: e.method,
|
|
2214
2214
|
name: e.name,
|
|
2215
|
-
onSubmit: (
|
|
2215
|
+
onSubmit: (p) => m(p),
|
|
2216
2216
|
...e.attributes,
|
|
2217
2217
|
children: [
|
|
2218
|
-
|
|
2219
|
-
|
|
2218
|
+
" ",
|
|
2219
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(g, { children: (b = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : b.map((p, v) => /* @__PURE__ */ l(
|
|
2220
|
+
_,
|
|
2220
2221
|
{
|
|
2221
|
-
block:
|
|
2222
|
+
block: p,
|
|
2222
2223
|
context: e.builderContext,
|
|
2223
2224
|
registeredComponents: e.builderComponents,
|
|
2224
2225
|
linkComponent: e.builderLinkComponent
|
|
2225
2226
|
},
|
|
2226
2227
|
`form-block-${v}`
|
|
2227
2228
|
)) }) : null,
|
|
2228
|
-
|
|
2229
|
-
|
|
2229
|
+
" ",
|
|
2230
|
+
c() === "error" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2231
|
+
U,
|
|
2230
2232
|
{
|
|
2231
2233
|
path: "errorMessage",
|
|
2232
2234
|
blocks: e.errorMessage,
|
|
2233
2235
|
context: e.builderContext
|
|
2234
2236
|
}
|
|
2235
|
-
) : null,
|
|
2236
|
-
|
|
2237
|
-
|
|
2237
|
+
) }) : null,
|
|
2238
|
+
" ",
|
|
2239
|
+
c() === "sending" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2240
|
+
U,
|
|
2238
2241
|
{
|
|
2239
2242
|
path: "sendingMessage",
|
|
2240
2243
|
blocks: e.sendingMessage,
|
|
2241
2244
|
context: e.builderContext
|
|
2242
2245
|
}
|
|
2243
|
-
) : null,
|
|
2244
|
-
|
|
2245
|
-
c() === "
|
|
2246
|
-
|
|
2246
|
+
) }) : null,
|
|
2247
|
+
" ",
|
|
2248
|
+
c() === "error" && o ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ B("pre", { className: "builder-form-error-text pre-25b9edf0", children: [
|
|
2249
|
+
" ",
|
|
2250
|
+
JSON.stringify(o, null, 2),
|
|
2251
|
+
" "
|
|
2252
|
+
] }) }) : null,
|
|
2253
|
+
" ",
|
|
2254
|
+
c() === "success" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2255
|
+
U,
|
|
2247
2256
|
{
|
|
2248
2257
|
path: "successMessage",
|
|
2249
2258
|
blocks: e.successMessage,
|
|
2250
2259
|
context: e.builderContext
|
|
2251
2260
|
}
|
|
2252
|
-
) : null
|
|
2261
|
+
) }) : null,
|
|
2262
|
+
" "
|
|
2253
2263
|
]
|
|
2254
2264
|
}
|
|
2255
2265
|
),
|
|
2256
2266
|
" ",
|
|
2257
|
-
/* @__PURE__ */
|
|
2267
|
+
/* @__PURE__ */ l("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
|
|
2258
2268
|
" "
|
|
2259
2269
|
] });
|
|
2260
2270
|
}
|
|
2261
|
-
const
|
|
2271
|
+
const en = {
|
|
2262
2272
|
name: "Form:Input",
|
|
2263
2273
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2264
2274
|
inputs: [
|
|
@@ -2310,12 +2320,12 @@ const Zt = {
|
|
|
2310
2320
|
borderColor: "#ccc"
|
|
2311
2321
|
}
|
|
2312
2322
|
};
|
|
2313
|
-
function
|
|
2323
|
+
function tn(e) {
|
|
2314
2324
|
return /* @__PURE__ */ we(
|
|
2315
2325
|
"input",
|
|
2316
2326
|
{
|
|
2317
2327
|
...e.attributes,
|
|
2318
|
-
key:
|
|
2328
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2319
2329
|
placeholder: e.placeholder,
|
|
2320
2330
|
type: e.type,
|
|
2321
2331
|
name: e.name,
|
|
@@ -2325,7 +2335,7 @@ function en(e) {
|
|
|
2325
2335
|
}
|
|
2326
2336
|
);
|
|
2327
2337
|
}
|
|
2328
|
-
const
|
|
2338
|
+
const nn = {
|
|
2329
2339
|
name: "Form:Select",
|
|
2330
2340
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2331
2341
|
defaultStyles: {
|
|
@@ -2368,21 +2378,21 @@ const tn = {
|
|
|
2368
2378
|
static: !0,
|
|
2369
2379
|
noWrap: !0
|
|
2370
2380
|
};
|
|
2371
|
-
function
|
|
2381
|
+
function on(e) {
|
|
2372
2382
|
var t;
|
|
2373
2383
|
return /* @__PURE__ */ we(
|
|
2374
2384
|
"select",
|
|
2375
2385
|
{
|
|
2376
2386
|
...e.attributes,
|
|
2377
2387
|
value: e.value,
|
|
2378
|
-
key:
|
|
2388
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2379
2389
|
defaultValue: e.defaultValue,
|
|
2380
2390
|
name: e.name
|
|
2381
2391
|
},
|
|
2382
|
-
(t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */
|
|
2392
|
+
(t = e.options) == null ? void 0 : t.map((n) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }))
|
|
2383
2393
|
);
|
|
2384
2394
|
}
|
|
2385
|
-
const
|
|
2395
|
+
const an = {
|
|
2386
2396
|
name: "Form:SubmitButton",
|
|
2387
2397
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2388
2398
|
defaultStyles: {
|
|
@@ -2408,10 +2418,10 @@ const on = {
|
|
|
2408
2418
|
// TODO: defaultChildren
|
|
2409
2419
|
// canHaveChildren: true,
|
|
2410
2420
|
};
|
|
2411
|
-
function
|
|
2412
|
-
return /* @__PURE__ */
|
|
2421
|
+
function rn(e) {
|
|
2422
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2413
2423
|
}
|
|
2414
|
-
const
|
|
2424
|
+
const ln = {
|
|
2415
2425
|
// friendlyName?
|
|
2416
2426
|
name: "Raw:Img",
|
|
2417
2427
|
hideFromInsertMenu: !0,
|
|
@@ -2426,8 +2436,8 @@ const rn = {
|
|
|
2426
2436
|
noWrap: !0,
|
|
2427
2437
|
static: !0
|
|
2428
2438
|
};
|
|
2429
|
-
function
|
|
2430
|
-
return /* @__PURE__ */
|
|
2439
|
+
function sn(e) {
|
|
2440
|
+
return /* @__PURE__ */ l(
|
|
2431
2441
|
"img",
|
|
2432
2442
|
{
|
|
2433
2443
|
style: {
|
|
@@ -2438,10 +2448,10 @@ function ln(e) {
|
|
|
2438
2448
|
src: e.imgSrc || e.image,
|
|
2439
2449
|
...e.attributes
|
|
2440
2450
|
},
|
|
2441
|
-
|
|
2451
|
+
N() && e.imgSrc || "default-key"
|
|
2442
2452
|
);
|
|
2443
2453
|
}
|
|
2444
|
-
const
|
|
2454
|
+
const cn = {
|
|
2445
2455
|
name: "Video",
|
|
2446
2456
|
canHaveChildren: !0,
|
|
2447
2457
|
defaultStyles: {
|
|
@@ -2523,8 +2533,8 @@ const sn = {
|
|
|
2523
2533
|
advanced: !0
|
|
2524
2534
|
}]
|
|
2525
2535
|
};
|
|
2526
|
-
function
|
|
2527
|
-
var i, o, a, r,
|
|
2536
|
+
function dn(e) {
|
|
2537
|
+
var i, o, a, r, s, d, c;
|
|
2528
2538
|
function t() {
|
|
2529
2539
|
return {
|
|
2530
2540
|
...e.autoPlay === !0 ? {
|
|
@@ -2549,14 +2559,14 @@ function cn(e) {
|
|
|
2549
2559
|
...t()
|
|
2550
2560
|
};
|
|
2551
2561
|
}
|
|
2552
|
-
return /* @__PURE__ */
|
|
2562
|
+
return /* @__PURE__ */ B(
|
|
2553
2563
|
"div",
|
|
2554
2564
|
{
|
|
2555
2565
|
style: {
|
|
2556
2566
|
position: "relative"
|
|
2557
2567
|
},
|
|
2558
2568
|
children: [
|
|
2559
|
-
/* @__PURE__ */
|
|
2569
|
+
/* @__PURE__ */ l(
|
|
2560
2570
|
"video",
|
|
2561
2571
|
{
|
|
2562
2572
|
className: "builder-video",
|
|
@@ -2578,10 +2588,10 @@ function cn(e) {
|
|
|
2578
2588
|
},
|
|
2579
2589
|
src: e.video || "no-src",
|
|
2580
2590
|
poster: e.posterImage,
|
|
2581
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
2591
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
2582
2592
|
}
|
|
2583
2593
|
),
|
|
2584
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
2594
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2585
2595
|
"div",
|
|
2586
2596
|
{
|
|
2587
2597
|
style: {
|
|
@@ -2591,8 +2601,8 @@ function cn(e) {
|
|
|
2591
2601
|
fontSize: "0px"
|
|
2592
2602
|
}
|
|
2593
2603
|
}
|
|
2594
|
-
) : null,
|
|
2595
|
-
(
|
|
2604
|
+
) }) : null,
|
|
2605
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2596
2606
|
"div",
|
|
2597
2607
|
{
|
|
2598
2608
|
style: {
|
|
@@ -2602,8 +2612,8 @@ function cn(e) {
|
|
|
2602
2612
|
},
|
|
2603
2613
|
children: e.children
|
|
2604
2614
|
}
|
|
2605
|
-
) : null,
|
|
2606
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
2615
|
+
) }) : null,
|
|
2616
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
2607
2617
|
"div",
|
|
2608
2618
|
{
|
|
2609
2619
|
style: {
|
|
@@ -2619,60 +2629,60 @@ function cn(e) {
|
|
|
2619
2629
|
},
|
|
2620
2630
|
children: e.children
|
|
2621
2631
|
}
|
|
2622
|
-
) : null
|
|
2632
|
+
) }) : null
|
|
2623
2633
|
]
|
|
2624
2634
|
}
|
|
2625
2635
|
);
|
|
2626
2636
|
}
|
|
2627
|
-
const
|
|
2628
|
-
component:
|
|
2629
|
-
...
|
|
2637
|
+
const un = () => [{
|
|
2638
|
+
component: Kt,
|
|
2639
|
+
...Ht
|
|
2630
2640
|
}, {
|
|
2631
|
-
component:
|
|
2632
|
-
...
|
|
2641
|
+
component: Jt,
|
|
2642
|
+
...qt
|
|
2633
2643
|
}, {
|
|
2634
|
-
component:
|
|
2635
|
-
...
|
|
2644
|
+
component: Zt,
|
|
2645
|
+
...Yt
|
|
2636
2646
|
}, {
|
|
2637
|
-
component:
|
|
2638
|
-
...
|
|
2647
|
+
component: tn,
|
|
2648
|
+
...en
|
|
2639
2649
|
}, {
|
|
2640
|
-
component:
|
|
2641
|
-
...
|
|
2650
|
+
component: rn,
|
|
2651
|
+
...an
|
|
2642
2652
|
}, {
|
|
2643
|
-
component:
|
|
2644
|
-
...
|
|
2653
|
+
component: on,
|
|
2654
|
+
...nn
|
|
2645
2655
|
}, {
|
|
2646
|
-
component:
|
|
2647
|
-
...
|
|
2656
|
+
component: sn,
|
|
2657
|
+
...ln
|
|
2648
2658
|
}, {
|
|
2649
|
-
component:
|
|
2650
|
-
...
|
|
2659
|
+
component: dn,
|
|
2660
|
+
...cn
|
|
2651
2661
|
}], pe = () => [{
|
|
2652
|
-
component:
|
|
2653
|
-
...At
|
|
2654
|
-
}, {
|
|
2655
|
-
component: Tt,
|
|
2662
|
+
component: Ge,
|
|
2656
2663
|
...Wt
|
|
2657
2664
|
}, {
|
|
2658
2665
|
component: Et,
|
|
2659
2666
|
...Nt
|
|
2660
2667
|
}, {
|
|
2661
|
-
component:
|
|
2668
|
+
component: Rt,
|
|
2662
2669
|
...Ft
|
|
2663
2670
|
}, {
|
|
2664
2671
|
component: Bt,
|
|
2665
2672
|
...$t
|
|
2666
2673
|
}, {
|
|
2667
|
-
component:
|
|
2674
|
+
component: At,
|
|
2668
2675
|
...Lt
|
|
2669
2676
|
}, {
|
|
2670
|
-
component:
|
|
2671
|
-
...
|
|
2677
|
+
component: Mt,
|
|
2678
|
+
...Dt
|
|
2672
2679
|
}, {
|
|
2673
|
-
component:
|
|
2680
|
+
component: Wn,
|
|
2674
2681
|
...Ot
|
|
2675
|
-
},
|
|
2682
|
+
}, {
|
|
2683
|
+
component: jt,
|
|
2684
|
+
...Ut
|
|
2685
|
+
}, ...un()], mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2676
2686
|
function getAndSetVariantId() {
|
|
2677
2687
|
function setCookie(name, value, days) {
|
|
2678
2688
|
let expires = '';
|
|
@@ -2728,7 +2738,7 @@ const dn = () => [{
|
|
|
2728
2738
|
}).join('');
|
|
2729
2739
|
styleEl.innerHTML = newStyleStr;
|
|
2730
2740
|
}
|
|
2731
|
-
}`,
|
|
2741
|
+
}`, fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2732
2742
|
if (!navigator.cookieEnabled) {
|
|
2733
2743
|
return;
|
|
2734
2744
|
}
|
|
@@ -2766,23 +2776,23 @@ const dn = () => [{
|
|
|
2766
2776
|
...t,
|
|
2767
2777
|
testVariationId: t.id,
|
|
2768
2778
|
id: e == null ? void 0 : e.id
|
|
2769
|
-
})),
|
|
2779
|
+
})), hn = ({
|
|
2770
2780
|
canTrack: e,
|
|
2771
2781
|
content: t
|
|
2772
|
-
}) => !(!(J(t).length > 0) || !e ||
|
|
2773
|
-
window.${Ne} = ${
|
|
2774
|
-
window.${Fe} = ${
|
|
2775
|
-
`,
|
|
2782
|
+
}) => !(!(J(t).length > 0) || !e || j()), gn = (e) => e === "react" || e === "reactNative", $e = gn(z), bn = () => `
|
|
2783
|
+
window.${Ne} = ${mn}
|
|
2784
|
+
window.${Fe} = ${fn}
|
|
2785
|
+
`, yn = (e, t) => `
|
|
2776
2786
|
window.${Ne}(
|
|
2777
2787
|
"${t}",${JSON.stringify(e)}, ${$e}
|
|
2778
|
-
)`,
|
|
2788
|
+
)`, pn = ({
|
|
2779
2789
|
contentId: e,
|
|
2780
2790
|
variationId: t
|
|
2781
2791
|
}) => `window.${Fe}(
|
|
2782
2792
|
"${t}", "${e}", ${$e}
|
|
2783
2793
|
)`;
|
|
2784
2794
|
function ie(e) {
|
|
2785
|
-
return /* @__PURE__ */
|
|
2795
|
+
return /* @__PURE__ */ l(
|
|
2786
2796
|
"script",
|
|
2787
2797
|
{
|
|
2788
2798
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -2790,10 +2800,10 @@ function ie(e) {
|
|
|
2790
2800
|
}
|
|
2791
2801
|
);
|
|
2792
2802
|
}
|
|
2793
|
-
function
|
|
2803
|
+
function xe(e) {
|
|
2794
2804
|
return Math.round(e * 1e3) / 1e3;
|
|
2795
2805
|
}
|
|
2796
|
-
const
|
|
2806
|
+
const xn = (e, t, n = !0) => {
|
|
2797
2807
|
if (!(e instanceof HTMLElement))
|
|
2798
2808
|
return null;
|
|
2799
2809
|
let i = n ? e : e.parentElement;
|
|
@@ -2804,28 +2814,28 @@ const pn = (e, t, n = !0) => {
|
|
|
2804
2814
|
return i;
|
|
2805
2815
|
} while (i = i.parentElement);
|
|
2806
2816
|
return null;
|
|
2807
|
-
}, Sn = (e) =>
|
|
2817
|
+
}, Sn = (e) => xn(e, (t) => {
|
|
2808
2818
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2809
2819
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2810
|
-
}),
|
|
2820
|
+
}), Se = ({
|
|
2811
2821
|
event: e,
|
|
2812
2822
|
target: t
|
|
2813
2823
|
}) => {
|
|
2814
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
2824
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
|
|
2815
2825
|
return {
|
|
2816
2826
|
x: a,
|
|
2817
2827
|
y: r
|
|
2818
2828
|
};
|
|
2819
|
-
},
|
|
2829
|
+
}, vn = (e) => {
|
|
2820
2830
|
const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2821
2831
|
return {
|
|
2822
2832
|
targetBuilderElement: i || void 0,
|
|
2823
2833
|
metadata: {
|
|
2824
|
-
targetOffset: t ?
|
|
2834
|
+
targetOffset: t ? Se({
|
|
2825
2835
|
event: e,
|
|
2826
2836
|
target: t
|
|
2827
2837
|
}) : void 0,
|
|
2828
|
-
builderTargetOffset: n ?
|
|
2838
|
+
builderTargetOffset: n ? Se({
|
|
2829
2839
|
event: e,
|
|
2830
2840
|
target: n
|
|
2831
2841
|
}) : void 0,
|
|
@@ -2833,70 +2843,70 @@ const pn = (e, t, n = !0) => {
|
|
|
2833
2843
|
}
|
|
2834
2844
|
};
|
|
2835
2845
|
};
|
|
2836
|
-
function
|
|
2837
|
-
var R,
|
|
2846
|
+
function kn(e) {
|
|
2847
|
+
var R, x, I, P, E, $, L;
|
|
2838
2848
|
const t = X(null);
|
|
2839
2849
|
function n(u) {
|
|
2840
|
-
var
|
|
2841
|
-
const
|
|
2850
|
+
var k, y;
|
|
2851
|
+
const h = {
|
|
2842
2852
|
...e.builderContextSignal.rootState,
|
|
2843
2853
|
...u
|
|
2844
2854
|
};
|
|
2845
|
-
e.builderContextSignal.rootSetState ? (
|
|
2846
|
-
...
|
|
2847
|
-
rootState:
|
|
2855
|
+
e.builderContextSignal.rootSetState ? (y = (k = e.builderContextSignal).rootSetState) == null || y.call(k, h) : e.setBuilderContextSignal((S) => ({
|
|
2856
|
+
...S,
|
|
2857
|
+
rootState: h
|
|
2848
2858
|
}));
|
|
2849
2859
|
}
|
|
2850
2860
|
function i(u) {
|
|
2851
|
-
var
|
|
2852
|
-
const
|
|
2861
|
+
var k, y, S, A, M;
|
|
2862
|
+
const h = {
|
|
2853
2863
|
...e.builderContextSignal.content,
|
|
2854
2864
|
...u,
|
|
2855
2865
|
data: {
|
|
2856
|
-
...(
|
|
2866
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
|
|
2857
2867
|
...u == null ? void 0 : u.data
|
|
2858
2868
|
},
|
|
2859
2869
|
meta: {
|
|
2860
|
-
...(
|
|
2870
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
2861
2871
|
...u == null ? void 0 : u.meta,
|
|
2862
|
-
breakpoints: ((
|
|
2872
|
+
breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
|
|
2863
2873
|
}
|
|
2864
2874
|
};
|
|
2865
|
-
e.setBuilderContextSignal((
|
|
2866
|
-
...
|
|
2867
|
-
content:
|
|
2875
|
+
e.setBuilderContextSignal((W) => ({
|
|
2876
|
+
...W,
|
|
2877
|
+
content: h
|
|
2868
2878
|
}));
|
|
2869
2879
|
}
|
|
2870
|
-
const [o, a] =
|
|
2880
|
+
const [o, a] = C(
|
|
2871
2881
|
() => e.contentWrapper || "div"
|
|
2872
2882
|
);
|
|
2873
2883
|
function r(u) {
|
|
2874
|
-
return
|
|
2884
|
+
return qe({
|
|
2875
2885
|
model: e.model,
|
|
2876
2886
|
trustedHosts: e.trustedHosts,
|
|
2877
2887
|
callbacks: {
|
|
2878
|
-
configureSdk: (
|
|
2879
|
-
var
|
|
2880
|
-
const { breakpoints:
|
|
2881
|
-
!
|
|
2888
|
+
configureSdk: (h) => {
|
|
2889
|
+
var S;
|
|
2890
|
+
const { breakpoints: k, contentId: y } = h;
|
|
2891
|
+
!y || y !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || k && i({
|
|
2882
2892
|
meta: {
|
|
2883
|
-
breakpoints:
|
|
2893
|
+
breakpoints: k
|
|
2884
2894
|
}
|
|
2885
2895
|
});
|
|
2886
2896
|
},
|
|
2887
|
-
animation: (
|
|
2888
|
-
Re(
|
|
2897
|
+
animation: (h) => {
|
|
2898
|
+
Re(h);
|
|
2889
2899
|
},
|
|
2890
|
-
contentUpdate: (
|
|
2891
|
-
i(
|
|
2900
|
+
contentUpdate: (h) => {
|
|
2901
|
+
i(h);
|
|
2892
2902
|
}
|
|
2893
2903
|
}
|
|
2894
2904
|
})(u);
|
|
2895
2905
|
}
|
|
2896
|
-
function
|
|
2897
|
-
var
|
|
2898
|
-
const u = (
|
|
2899
|
-
u &&
|
|
2906
|
+
function s() {
|
|
2907
|
+
var h, k;
|
|
2908
|
+
const u = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.jsCode;
|
|
2909
|
+
u && q({
|
|
2900
2910
|
code: u,
|
|
2901
2911
|
context: e.context || {},
|
|
2902
2912
|
localState: void 0,
|
|
@@ -2908,65 +2918,56 @@ function vn(e) {
|
|
|
2908
2918
|
enableCache: !1
|
|
2909
2919
|
});
|
|
2910
2920
|
}
|
|
2911
|
-
const [d, c] =
|
|
2912
|
-
function
|
|
2913
|
-
var
|
|
2921
|
+
const [d, c] = C(() => ({})), [m, f] = C(() => ({})), [b, p] = C(() => !1);
|
|
2922
|
+
function v(u) {
|
|
2923
|
+
var h, k;
|
|
2914
2924
|
if (e.builderContextSignal.content) {
|
|
2915
|
-
const
|
|
2925
|
+
const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
2916
2926
|
ue({
|
|
2917
2927
|
type: "click",
|
|
2918
2928
|
canTrack: G(e.canTrack),
|
|
2919
|
-
contentId:
|
|
2929
|
+
contentId: S,
|
|
2920
2930
|
apiKey: e.apiKey,
|
|
2921
|
-
variationId:
|
|
2922
|
-
...
|
|
2923
|
-
unique: !
|
|
2931
|
+
variationId: y !== S ? y : void 0,
|
|
2932
|
+
...vn(u),
|
|
2933
|
+
unique: !b
|
|
2924
2934
|
});
|
|
2925
2935
|
}
|
|
2926
|
-
|
|
2927
|
-
}
|
|
2928
|
-
function y(u) {
|
|
2929
|
-
return u.replace(
|
|
2930
|
-
/{{([^}]+)}}/g,
|
|
2931
|
-
(f, p) => String(
|
|
2932
|
-
K({
|
|
2933
|
-
code: p,
|
|
2934
|
-
context: e.context || {},
|
|
2935
|
-
localState: void 0,
|
|
2936
|
-
rootState: e.builderContextSignal.rootState,
|
|
2937
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
2938
|
-
enableCache: !0
|
|
2939
|
-
})
|
|
2940
|
-
)
|
|
2941
|
-
);
|
|
2942
|
-
}
|
|
2943
|
-
function v({ url: u, key: f }) {
|
|
2944
|
-
qe(u).then((p) => p.json()).then((p) => {
|
|
2945
|
-
var x, V;
|
|
2946
|
-
const g = {
|
|
2947
|
-
...e.builderContextSignal.rootState,
|
|
2948
|
-
[f]: p
|
|
2949
|
-
};
|
|
2950
|
-
(V = (x = e.builderContextSignal).rootSetState) == null || V.call(x, g), d[f] = !0;
|
|
2951
|
-
}).catch((p) => {
|
|
2952
|
-
console.error("error fetching dynamic data", u, p);
|
|
2953
|
-
});
|
|
2936
|
+
b || p(!0);
|
|
2954
2937
|
}
|
|
2955
|
-
function
|
|
2956
|
-
var
|
|
2957
|
-
const u = (
|
|
2958
|
-
Object.entries(u).forEach(([
|
|
2959
|
-
if (
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2938
|
+
function w() {
|
|
2939
|
+
var h, k, y;
|
|
2940
|
+
const u = (y = (k = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : k.httpRequests) != null ? y : {};
|
|
2941
|
+
Object.entries(u).forEach(([S, A]) => {
|
|
2942
|
+
if (!A || m[S] || d[S] && !N())
|
|
2943
|
+
return;
|
|
2944
|
+
m[S] = !0;
|
|
2945
|
+
const M = A.replace(
|
|
2946
|
+
/{{([^}]+)}}/g,
|
|
2947
|
+
(W, Le) => String(
|
|
2948
|
+
q({
|
|
2949
|
+
code: Le,
|
|
2950
|
+
context: e.context || {},
|
|
2951
|
+
localState: void 0,
|
|
2952
|
+
rootState: e.builderContextSignal.rootState,
|
|
2953
|
+
rootSetState: e.builderContextSignal.rootSetState,
|
|
2954
|
+
enableCache: !0
|
|
2955
|
+
})
|
|
2956
|
+
)
|
|
2957
|
+
);
|
|
2958
|
+
ze(M).then((W) => W.json()).then((W) => {
|
|
2959
|
+
n({
|
|
2960
|
+
[S]: W
|
|
2961
|
+
}), d[S] = !0;
|
|
2962
|
+
}).catch((W) => {
|
|
2963
|
+
console.error("error fetching dynamic data", A, W);
|
|
2964
|
+
}).finally(() => {
|
|
2965
|
+
m[S] = !1;
|
|
2966
|
+
});
|
|
2966
2967
|
});
|
|
2967
2968
|
}
|
|
2968
|
-
function
|
|
2969
|
-
|
|
2969
|
+
function T() {
|
|
2970
|
+
N() && window.dispatchEvent(
|
|
2970
2971
|
new CustomEvent(
|
|
2971
2972
|
"builder:component:stateChange",
|
|
2972
2973
|
{
|
|
@@ -2980,10 +2981,10 @@ function vn(e) {
|
|
|
2980
2981
|
)
|
|
2981
2982
|
);
|
|
2982
2983
|
}
|
|
2983
|
-
return
|
|
2984
|
-
var u,
|
|
2985
|
-
if (
|
|
2986
|
-
if (
|
|
2984
|
+
return V(() => {
|
|
2985
|
+
var u, h;
|
|
2986
|
+
if (j()) {
|
|
2987
|
+
if (N() && (window.addEventListener("message", r), Ue(), je({
|
|
2987
2988
|
...e.locale ? {
|
|
2988
2989
|
locale: e.locale
|
|
2989
2990
|
} : {},
|
|
@@ -2995,64 +2996,64 @@ function vn(e) {
|
|
|
2995
2996
|
} : {}
|
|
2996
2997
|
}), Object.values(
|
|
2997
2998
|
e.builderContextSignal.componentInfos
|
|
2998
|
-
).forEach((
|
|
2999
|
-
var
|
|
3000
|
-
const
|
|
3001
|
-
(
|
|
2999
|
+
).forEach((y) => {
|
|
3000
|
+
var A;
|
|
3001
|
+
const S = He(y);
|
|
3002
|
+
(A = window.parent) == null || A.postMessage(S, "*");
|
|
3002
3003
|
}), window.addEventListener(
|
|
3003
3004
|
"builder:component:stateChangeListenerActivated",
|
|
3004
|
-
|
|
3005
|
+
T
|
|
3005
3006
|
)), e.builderContextSignal.content && G(e.canTrack)) {
|
|
3006
|
-
const
|
|
3007
|
+
const y = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
|
|
3007
3008
|
ue({
|
|
3008
3009
|
type: "impression",
|
|
3009
3010
|
canTrack: !0,
|
|
3010
|
-
contentId:
|
|
3011
|
-
apiKey:
|
|
3012
|
-
variationId:
|
|
3011
|
+
contentId: S,
|
|
3012
|
+
apiKey: A,
|
|
3013
|
+
variationId: y !== S ? y : void 0
|
|
3013
3014
|
});
|
|
3014
3015
|
}
|
|
3015
|
-
if (
|
|
3016
|
-
const
|
|
3017
|
-
`builder.preview.${
|
|
3018
|
-
),
|
|
3019
|
-
|
|
3016
|
+
if (Ke()) {
|
|
3017
|
+
const y = new URL(location.href).searchParams, S = y.get("builder.preview"), A = y.get(
|
|
3018
|
+
`builder.preview.${S}`
|
|
3019
|
+
), M = y.get("apiKey") || y.get("builder.space");
|
|
3020
|
+
S === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
|
|
3020
3021
|
model: e.model,
|
|
3021
3022
|
apiKey: e.apiKey,
|
|
3022
3023
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3023
|
-
}).then((
|
|
3024
|
-
|
|
3024
|
+
}).then((W) => {
|
|
3025
|
+
W && i(W);
|
|
3025
3026
|
});
|
|
3026
3027
|
}
|
|
3027
3028
|
}
|
|
3028
|
-
}, []),
|
|
3029
|
-
e.apiKey ||
|
|
3029
|
+
}, []), V(() => {
|
|
3030
|
+
e.apiKey || H.error(
|
|
3030
3031
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3031
|
-
),
|
|
3032
|
-
}, []),
|
|
3032
|
+
), s(), w(), T();
|
|
3033
|
+
}, []), V(() => {
|
|
3033
3034
|
e.content && i(e.content);
|
|
3034
|
-
}, [e.content]),
|
|
3035
|
-
|
|
3036
|
-
}, [(
|
|
3037
|
-
|
|
3038
|
-
}, [(P = (
|
|
3039
|
-
|
|
3040
|
-
}, [e.builderContextSignal.rootState]),
|
|
3035
|
+
}, [e.content]), V(() => {
|
|
3036
|
+
s();
|
|
3037
|
+
}, [(x = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : x.jsCode]), V(() => {
|
|
3038
|
+
w();
|
|
3039
|
+
}, [(P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests]), V(() => {
|
|
3040
|
+
T();
|
|
3041
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
3041
3042
|
e.data && n(e.data);
|
|
3042
|
-
}, [e.data]),
|
|
3043
|
+
}, [e.data]), V(() => {
|
|
3043
3044
|
e.locale && n({
|
|
3044
3045
|
locale: e.locale
|
|
3045
3046
|
});
|
|
3046
|
-
}, [e.locale]),
|
|
3047
|
-
|
|
3047
|
+
}, [e.locale]), V(() => () => {
|
|
3048
|
+
j() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3048
3049
|
"builder:component:stateChangeListenerActivated",
|
|
3049
|
-
|
|
3050
|
+
T
|
|
3050
3051
|
));
|
|
3051
|
-
}, []), /* @__PURE__ */
|
|
3052
|
+
}, []), /* @__PURE__ */ l(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3052
3053
|
o,
|
|
3053
3054
|
{
|
|
3054
3055
|
ref: t,
|
|
3055
|
-
onClick: (u) =>
|
|
3056
|
+
onClick: (u) => v(u),
|
|
3056
3057
|
"builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
|
|
3057
3058
|
"builder-model": e.model,
|
|
3058
3059
|
...e.showContent ? {} : {
|
|
@@ -3060,12 +3061,12 @@ function vn(e) {
|
|
|
3060
3061
|
"aria-hidden": !0
|
|
3061
3062
|
},
|
|
3062
3063
|
...e.contentWrapperProps,
|
|
3063
|
-
className: `variant-${((
|
|
3064
|
+
className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
|
|
3064
3065
|
children: e.children
|
|
3065
3066
|
}
|
|
3066
|
-
) : null });
|
|
3067
|
+
) }) : null });
|
|
3067
3068
|
}
|
|
3068
|
-
const
|
|
3069
|
+
const Cn = (e) => {
|
|
3069
3070
|
var a, r;
|
|
3070
3071
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3071
3072
|
let o = "";
|
|
@@ -3077,29 +3078,29 @@ font-display: fallback;
|
|
|
3077
3078
|
font-weight: 400;
|
|
3078
3079
|
}
|
|
3079
3080
|
`.trim()), e.files)
|
|
3080
|
-
for (const
|
|
3081
|
-
if (!(String(Number(
|
|
3081
|
+
for (const s in e.files) {
|
|
3082
|
+
if (!(String(Number(s)) === s))
|
|
3082
3083
|
continue;
|
|
3083
|
-
const c = e.files[
|
|
3084
|
+
const c = e.files[s];
|
|
3084
3085
|
c && c !== i && (o += `
|
|
3085
3086
|
@font-face {
|
|
3086
3087
|
font-family: "${t}";
|
|
3087
3088
|
src: url('${c}') format('woff2');
|
|
3088
3089
|
font-display: fallback;
|
|
3089
|
-
font-weight: ${
|
|
3090
|
+
font-weight: ${s};
|
|
3090
3091
|
}
|
|
3091
3092
|
`.trim());
|
|
3092
3093
|
}
|
|
3093
3094
|
return o;
|
|
3094
|
-
},
|
|
3095
|
+
}, wn = ({
|
|
3095
3096
|
customFonts: e
|
|
3096
3097
|
}) => {
|
|
3097
3098
|
var t;
|
|
3098
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3099
|
-
},
|
|
3099
|
+
return ((t = e == null ? void 0 : e.map((n) => Cn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3100
|
+
}, In = ({
|
|
3100
3101
|
cssCode: e,
|
|
3101
3102
|
contentId: t
|
|
3102
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3103
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Tn = `
|
|
3103
3104
|
.builder-button {
|
|
3104
3105
|
all: unset;
|
|
3105
3106
|
}
|
|
@@ -3116,30 +3117,30 @@ font-weight: ${l};
|
|
|
3116
3117
|
text-align: inherit;
|
|
3117
3118
|
font-family: inherit;
|
|
3118
3119
|
}
|
|
3119
|
-
`,
|
|
3120
|
-
function
|
|
3121
|
-
const [t, n] =
|
|
3120
|
+
`, En = (e) => e ? "" : Tn;
|
|
3121
|
+
function Rn(e) {
|
|
3122
|
+
const [t, n] = C(
|
|
3122
3123
|
() => `
|
|
3123
|
-
${
|
|
3124
|
+
${In({
|
|
3124
3125
|
cssCode: e.cssCode,
|
|
3125
3126
|
contentId: e.contentId
|
|
3126
3127
|
})}
|
|
3127
|
-
${
|
|
3128
|
+
${wn({
|
|
3128
3129
|
customFonts: e.customFonts
|
|
3129
3130
|
})}
|
|
3130
|
-
${
|
|
3131
|
+
${En(e.isNestedRender)}
|
|
3131
3132
|
`.trim()
|
|
3132
3133
|
);
|
|
3133
|
-
return /* @__PURE__ */
|
|
3134
|
+
return /* @__PURE__ */ l(Z, { id: "builderio-content", styles: t });
|
|
3134
3135
|
}
|
|
3135
|
-
const
|
|
3136
|
+
const Pn = ({
|
|
3136
3137
|
content: e,
|
|
3137
3138
|
data: t,
|
|
3138
3139
|
locale: n
|
|
3139
3140
|
}) => {
|
|
3140
|
-
var a, r,
|
|
3141
|
+
var a, r, s;
|
|
3141
3142
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3142
|
-
return (
|
|
3143
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3143
3144
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3144
3145
|
}), {
|
|
3145
3146
|
...i,
|
|
@@ -3149,7 +3150,7 @@ const Rn = ({
|
|
|
3149
3150
|
locale: n
|
|
3150
3151
|
} : {}
|
|
3151
3152
|
};
|
|
3152
|
-
},
|
|
3153
|
+
}, Vn = ({
|
|
3153
3154
|
content: e,
|
|
3154
3155
|
data: t
|
|
3155
3156
|
}) => e ? {
|
|
@@ -3161,45 +3162,45 @@ const Rn = ({
|
|
|
3161
3162
|
meta: e == null ? void 0 : e.meta
|
|
3162
3163
|
} : void 0;
|
|
3163
3164
|
function ve(e) {
|
|
3164
|
-
var d, c, m,
|
|
3165
|
-
const [t, n] =
|
|
3165
|
+
var d, c, m, f, b, p, v;
|
|
3166
|
+
const [t, n] = C(
|
|
3166
3167
|
() => {
|
|
3167
|
-
var
|
|
3168
|
-
return
|
|
3168
|
+
var w, T;
|
|
3169
|
+
return pn({
|
|
3169
3170
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3170
|
-
variationId: (
|
|
3171
|
+
variationId: (w = e.content) == null ? void 0 : w.testVariationId,
|
|
3171
3172
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3172
|
-
contentId: (
|
|
3173
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
3173
3174
|
});
|
|
3174
3175
|
}
|
|
3175
3176
|
);
|
|
3176
|
-
function i(
|
|
3177
|
-
|
|
3178
|
-
...
|
|
3179
|
-
rootState:
|
|
3177
|
+
function i(w) {
|
|
3178
|
+
s((T) => ({
|
|
3179
|
+
...T,
|
|
3180
|
+
rootState: w
|
|
3180
3181
|
}));
|
|
3181
3182
|
}
|
|
3182
|
-
const [o, a] =
|
|
3183
|
+
const [o, a] = C(
|
|
3183
3184
|
() => [
|
|
3184
3185
|
...pe(),
|
|
3185
3186
|
...e.customComponents || []
|
|
3186
3187
|
].reduce(
|
|
3187
|
-
(
|
|
3188
|
-
...
|
|
3188
|
+
(w, { component: T, ...R }) => ({
|
|
3189
|
+
...w,
|
|
3189
3190
|
[R.name]: {
|
|
3190
|
-
component:
|
|
3191
|
+
component: T,
|
|
3191
3192
|
...me(R)
|
|
3192
3193
|
}
|
|
3193
3194
|
}),
|
|
3194
3195
|
{}
|
|
3195
3196
|
)
|
|
3196
|
-
), [r,
|
|
3197
|
-
content:
|
|
3197
|
+
), [r, s] = C(() => ({
|
|
3198
|
+
content: Vn({
|
|
3198
3199
|
content: e.content,
|
|
3199
3200
|
data: e.data
|
|
3200
3201
|
}),
|
|
3201
3202
|
localState: void 0,
|
|
3202
|
-
rootState:
|
|
3203
|
+
rootState: Pn({
|
|
3203
3204
|
content: e.content,
|
|
3204
3205
|
data: e.data,
|
|
3205
3206
|
locale: e.locale
|
|
@@ -3212,8 +3213,8 @@ function ve(e) {
|
|
|
3212
3213
|
...pe(),
|
|
3213
3214
|
...e.customComponents || []
|
|
3214
3215
|
].reduce(
|
|
3215
|
-
(
|
|
3216
|
-
...
|
|
3216
|
+
(w, { component: T, ...R }) => ({
|
|
3217
|
+
...w,
|
|
3217
3218
|
[R.name]: me(R)
|
|
3218
3219
|
}),
|
|
3219
3220
|
{}
|
|
@@ -3222,14 +3223,14 @@ function ve(e) {
|
|
|
3222
3223
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
3223
3224
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3224
3225
|
}));
|
|
3225
|
-
return /* @__PURE__ */
|
|
3226
|
+
return /* @__PURE__ */ l(
|
|
3226
3227
|
Ie.Provider,
|
|
3227
3228
|
{
|
|
3228
3229
|
value: {
|
|
3229
3230
|
registeredComponents: o
|
|
3230
3231
|
},
|
|
3231
|
-
children: /* @__PURE__ */
|
|
3232
|
-
|
|
3232
|
+
children: /* @__PURE__ */ B(
|
|
3233
|
+
kn,
|
|
3233
3234
|
{
|
|
3234
3235
|
content: e.content,
|
|
3235
3236
|
data: e.data,
|
|
@@ -3245,28 +3246,28 @@ function ve(e) {
|
|
|
3245
3246
|
contentWrapperProps: e.contentWrapperProps,
|
|
3246
3247
|
linkComponent: e.linkComponent,
|
|
3247
3248
|
trustedHosts: e.trustedHosts,
|
|
3248
|
-
setBuilderContextSignal:
|
|
3249
|
+
setBuilderContextSignal: s,
|
|
3249
3250
|
children: [
|
|
3250
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3251
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3251
3252
|
ie,
|
|
3252
3253
|
{
|
|
3253
3254
|
id: "builderio-variant-visibility",
|
|
3254
3255
|
scriptStr: t
|
|
3255
3256
|
}
|
|
3256
|
-
) : null,
|
|
3257
|
-
/* @__PURE__ */
|
|
3258
|
-
|
|
3257
|
+
) }) : null,
|
|
3258
|
+
/* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3259
|
+
Rn,
|
|
3259
3260
|
{
|
|
3260
3261
|
isNestedRender: e.isNestedRender,
|
|
3261
3262
|
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
3262
3263
|
cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3263
|
-
customFonts: (b = (
|
|
3264
|
+
customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
3264
3265
|
}
|
|
3265
|
-
),
|
|
3266
|
-
/* @__PURE__ */
|
|
3267
|
-
|
|
3266
|
+
) }),
|
|
3267
|
+
/* @__PURE__ */ l(
|
|
3268
|
+
U,
|
|
3268
3269
|
{
|
|
3269
|
-
blocks: (v = (
|
|
3270
|
+
blocks: (v = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : v.blocks,
|
|
3270
3271
|
context: r,
|
|
3271
3272
|
registeredComponents: o,
|
|
3272
3273
|
linkComponent: e.linkComponent
|
|
@@ -3278,66 +3279,66 @@ function ve(e) {
|
|
|
3278
3279
|
}
|
|
3279
3280
|
);
|
|
3280
3281
|
}
|
|
3281
|
-
function
|
|
3282
|
+
function Bn(e) {
|
|
3282
3283
|
var r;
|
|
3283
|
-
const [t, n] =
|
|
3284
|
-
() =>
|
|
3284
|
+
const [t, n] = C(
|
|
3285
|
+
() => hn({
|
|
3285
3286
|
canTrack: G(e.canTrack),
|
|
3286
3287
|
content: e.content
|
|
3287
3288
|
})
|
|
3288
3289
|
);
|
|
3289
3290
|
function i() {
|
|
3290
|
-
var
|
|
3291
|
-
return
|
|
3291
|
+
var s;
|
|
3292
|
+
return yn(
|
|
3292
3293
|
J(e.content).map((d) => ({
|
|
3293
3294
|
id: d.testVariationId,
|
|
3294
3295
|
testRatio: d.testRatio
|
|
3295
3296
|
})),
|
|
3296
|
-
((
|
|
3297
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3297
3298
|
);
|
|
3298
3299
|
}
|
|
3299
3300
|
function o() {
|
|
3300
|
-
return J(e.content).map((
|
|
3301
|
+
return J(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3301
3302
|
}
|
|
3302
3303
|
function a() {
|
|
3303
|
-
var
|
|
3304
|
+
var s;
|
|
3304
3305
|
return t ? {
|
|
3305
3306
|
...e.content,
|
|
3306
|
-
testVariationId: (
|
|
3307
|
-
} :
|
|
3307
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3308
|
+
} : _e({
|
|
3308
3309
|
item: e.content,
|
|
3309
3310
|
canTrack: G(e.canTrack)
|
|
3310
3311
|
});
|
|
3311
3312
|
}
|
|
3312
|
-
return
|
|
3313
|
-
}, []), /* @__PURE__ */
|
|
3314
|
-
!e.isNestedRender &&
|
|
3313
|
+
return V(() => {
|
|
3314
|
+
}, []), /* @__PURE__ */ B(g, { children: [
|
|
3315
|
+
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(g, { children: /* @__PURE__ */ l(
|
|
3315
3316
|
ie,
|
|
3316
3317
|
{
|
|
3317
3318
|
id: "builderio-init-variants-fns",
|
|
3318
|
-
scriptStr:
|
|
3319
|
+
scriptStr: bn()
|
|
3319
3320
|
}
|
|
3320
|
-
) : null,
|
|
3321
|
-
t ? /* @__PURE__ */
|
|
3322
|
-
/* @__PURE__ */
|
|
3321
|
+
) }) : null,
|
|
3322
|
+
t ? /* @__PURE__ */ B(g, { children: [
|
|
3323
|
+
/* @__PURE__ */ l(
|
|
3323
3324
|
Z,
|
|
3324
3325
|
{
|
|
3325
3326
|
id: "builderio-variants",
|
|
3326
3327
|
styles: o()
|
|
3327
3328
|
}
|
|
3328
3329
|
),
|
|
3329
|
-
/* @__PURE__ */
|
|
3330
|
+
/* @__PURE__ */ l(
|
|
3330
3331
|
ie,
|
|
3331
3332
|
{
|
|
3332
3333
|
id: "builderio-variants-visibility",
|
|
3333
3334
|
scriptStr: i()
|
|
3334
3335
|
}
|
|
3335
3336
|
),
|
|
3336
|
-
(r = J(e.content)) == null ? void 0 : r.map((
|
|
3337
|
+
(r = J(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3337
3338
|
ve,
|
|
3338
3339
|
{
|
|
3339
3340
|
isNestedRender: e.isNestedRender,
|
|
3340
|
-
content:
|
|
3341
|
+
content: s,
|
|
3341
3342
|
showContent: !1,
|
|
3342
3343
|
model: e.model,
|
|
3343
3344
|
data: e.data,
|
|
@@ -3356,10 +3357,10 @@ function Vn(e) {
|
|
|
3356
3357
|
contentWrapperProps: e.contentWrapperProps,
|
|
3357
3358
|
trustedHosts: e.trustedHosts
|
|
3358
3359
|
},
|
|
3359
|
-
|
|
3360
|
+
s.testVariationId
|
|
3360
3361
|
))
|
|
3361
3362
|
] }) : null,
|
|
3362
|
-
/* @__PURE__ */
|
|
3363
|
+
/* @__PURE__ */ l(
|
|
3363
3364
|
ve,
|
|
3364
3365
|
{
|
|
3365
3366
|
isNestedRender: e.isNestedRender,
|
|
@@ -3385,7 +3386,7 @@ function Vn(e) {
|
|
|
3385
3386
|
)
|
|
3386
3387
|
] });
|
|
3387
3388
|
}
|
|
3388
|
-
const
|
|
3389
|
+
const An = async ({
|
|
3389
3390
|
builderContextValue: e,
|
|
3390
3391
|
symbol: t
|
|
3391
3392
|
}) => {
|
|
@@ -3401,37 +3402,37 @@ const Bn = async ({
|
|
|
3401
3402
|
}
|
|
3402
3403
|
}
|
|
3403
3404
|
}).catch((n) => {
|
|
3404
|
-
|
|
3405
|
+
H.error("Could not fetch symbol content: ", n);
|
|
3405
3406
|
});
|
|
3406
3407
|
};
|
|
3407
|
-
function
|
|
3408
|
-
var a, r,
|
|
3408
|
+
function Wn(e) {
|
|
3409
|
+
var a, r, s, d;
|
|
3409
3410
|
function t() {
|
|
3410
3411
|
var c, m;
|
|
3411
3412
|
return [
|
|
3412
|
-
e.attributes[
|
|
3413
|
+
e.attributes[K()],
|
|
3413
3414
|
"builder-symbol",
|
|
3414
3415
|
(c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
|
|
3415
3416
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3416
3417
|
].filter(Boolean).join(" ");
|
|
3417
3418
|
}
|
|
3418
|
-
const [n, i] =
|
|
3419
|
+
const [n, i] = C(() => {
|
|
3419
3420
|
var c;
|
|
3420
3421
|
return (c = e.symbol) == null ? void 0 : c.content;
|
|
3421
3422
|
});
|
|
3422
3423
|
function o() {
|
|
3423
|
-
n ||
|
|
3424
|
+
n || An({
|
|
3424
3425
|
symbol: e.symbol,
|
|
3425
3426
|
builderContextValue: e.builderContext
|
|
3426
3427
|
}).then((c) => {
|
|
3427
3428
|
c && i(c);
|
|
3428
3429
|
});
|
|
3429
3430
|
}
|
|
3430
|
-
return
|
|
3431
|
-
}, []),
|
|
3431
|
+
return V(() => {
|
|
3432
|
+
}, []), V(() => {
|
|
3432
3433
|
o();
|
|
3433
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
3434
|
-
|
|
3434
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
|
|
3435
|
+
Bn,
|
|
3435
3436
|
{
|
|
3436
3437
|
isNestedRender: !0,
|
|
3437
3438
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3444,7 +3445,7 @@ function An(e) {
|
|
|
3444
3445
|
data: {
|
|
3445
3446
|
...(r = e.symbol) == null ? void 0 : r.data,
|
|
3446
3447
|
...e.builderContext.localState,
|
|
3447
|
-
...(
|
|
3448
|
+
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
3448
3449
|
},
|
|
3449
3450
|
model: (d = e.symbol) == null ? void 0 : d.model,
|
|
3450
3451
|
content: n,
|
|
@@ -3455,14 +3456,15 @@ function An(e) {
|
|
|
3455
3456
|
) });
|
|
3456
3457
|
}
|
|
3457
3458
|
export {
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
Bt as
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3459
|
+
U as Blocks,
|
|
3460
|
+
re as BuilderContext,
|
|
3461
|
+
Ge as Button,
|
|
3462
|
+
Et as Columns,
|
|
3463
|
+
Bn as Content,
|
|
3464
|
+
Rt as Fragment,
|
|
3465
|
+
Bt as Image,
|
|
3466
|
+
At as Section,
|
|
3467
|
+
Wn as Symbol,
|
|
3468
|
+
jt as Text,
|
|
3469
|
+
dn as Video
|
|
3468
3470
|
};
|