@builder.io/sdk-react 2.0.19 → 2.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +833 -833
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-c8020f19.cjs → server-entry-5770bca9.cjs} +2 -2
- package/lib/browser/{server-entry-12189812.js → server-entry-b83ba684.js} +1 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-634b0466.js → accordion-78c3d81b.js} +1 -1
- package/lib/edge/{accordion-eaf2e50a.cjs → accordion-80133dd8.cjs} +1 -1
- package/lib/edge/blocks-5084bbec.cjs +12 -0
- package/lib/edge/{blocks-51761337.js → blocks-852d317b.js} +240 -233
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6d2144c3.js → button-0a729557.js} +2 -2
- package/lib/edge/{button-a0aad19e.cjs → button-a97c0d05.cjs} +1 -1
- package/lib/edge/{columns-030a6892.js → columns-1149d23a.js} +6 -6
- package/lib/edge/{columns-44d76a14.cjs → columns-2bd50130.cjs} +4 -4
- package/lib/edge/{content-variants-46a433c2.js → content-variants-86962b96.js} +306 -308
- package/lib/edge/content-variants-cbd84920.cjs +134 -0
- package/lib/edge/{evaluate-6febb3ef.js → evaluate-46f56681.js} +671 -659
- package/lib/edge/{evaluate-29260bf8.cjs → evaluate-617e3bee.cjs} +11 -13
- package/lib/edge/{form-855a28fc.js → form-1811c08f.js} +6 -6
- package/lib/edge/form-c42561fb.cjs +1 -0
- package/lib/edge/{get-class-prop-name-a6353748.js → get-class-prop-name-6e4205e7.js} +1 -1
- package/lib/edge/{get-class-prop-name-6320e936.cjs → get-class-prop-name-dc89023a.cjs} +1 -1
- package/lib/edge/{image-eebfcbac.cjs → image-54d2f755.cjs} +3 -3
- package/lib/edge/{image-6a074aab.js → image-6970c193.js} +24 -24
- package/lib/edge/{img-56b4a196.js → img-0bc990ef.js} +1 -1
- package/lib/edge/{img-1f88586f.cjs → img-70b9d719.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-35f6fbdd.cjs → input-21071030.cjs} +1 -1
- package/lib/edge/{input-7873f170.js → input-3689c63d.js} +1 -1
- package/lib/edge/{select-eb16d7cc.js → select-65ebd3fd.js} +1 -1
- package/lib/edge/{select-f03c5ba6.cjs → select-cb7c2f44.cjs} +1 -1
- package/lib/edge/{server-entry-dbe27fb2.cjs → server-entry-8ce6f347.cjs} +2 -2
- package/lib/edge/{server-entry-77a5a1a0.js → server-entry-9d83b8e5.js} +1 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-93865012.cjs → slot-21cc91d8.cjs} +1 -1
- package/lib/edge/{slot-c9a7a451.js → slot-e5f3b92d.js} +4 -4
- package/lib/edge/{symbol-b6b36212.cjs → symbol-0cc07e41.cjs} +1 -1
- package/lib/edge/{symbol-6657c638.js → symbol-56e5b927.js} +2 -2
- package/lib/edge/{tabs-44484f49.js → tabs-0e6f6b5b.js} +4 -4
- package/lib/edge/{tabs-020fedaa.cjs → tabs-9390d611.cjs} +1 -1
- package/lib/edge/{text-e00e3cdc.js → text-b68c0d5a.js} +2 -2
- package/lib/edge/{text-562c8568.cjs → text-baaedac7.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +31 -31
- package/lib/node/blocks-exports.mjs +817 -844
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{server-entry-82ab17f2.cjs → server-entry-52b8f10a.cjs} +2 -2
- package/lib/node/{server-entry-902ea0c4.js → server-entry-5b32494d.js} +1 -2
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-f20178fa.cjs → should-force-browser-runtime-in-node-253f1726.cjs} +4 -4
- package/lib/node/{should-force-browser-runtime-in-node-0b0cefdf.js → should-force-browser-runtime-in-node-68bc74aa.js} +56 -29
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +5 -0
- package/types/types/input.d.ts +1 -1
- package/lib/edge/blocks-b8c9a72a.cjs +0 -12
- package/lib/edge/content-variants-3eef022e.cjs +0 -134
- package/lib/edge/form-59059e97.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ l(
|
|
2
|
+
var je = Object.defineProperty;
|
|
3
|
+
var He = (e, t, n) => t in e ? je(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var X = (e, t, n) => (He(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as L, isEditing as N, isBrowser as U, getUserAttributes as Ke, checkIsDefined as z, logger as Y, isPreviewing as Ce, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as J, _track as de, fetchOneEntry as Te, createEditorListener as Je, serializeIncludingFunctions as ue, handleABTestingSync as Ye } from "./server-entry-b83ba684.js";
|
|
7
|
+
import { createContext as Ie, useEffect as P, useState as T, useRef as D, useContext as me, createElement as we } from "react";
|
|
8
|
+
const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
|
|
9
|
+
function re(e) {
|
|
10
|
+
return /* @__PURE__ */ l(w, { children: Qe(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
12
|
+
const H = () => {
|
|
13
|
+
switch (L) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
16
16
|
case "rsc":
|
|
@@ -23,11 +23,11 @@ const _ = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function Xe(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -38,7 +38,7 @@ function it(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ l(
|
|
41
|
-
|
|
41
|
+
re,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function it(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const le = Ie({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -61,21 +61,21 @@ const ue = Be({
|
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
62
|
BlocksWrapperProps: {},
|
|
63
63
|
nonce: ""
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Ee = Ie({ registeredComponents: {} });
|
|
65
|
+
function Ze(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function et(e, ...t) {
|
|
73
73
|
const n = Object.assign({}, e);
|
|
74
74
|
for (const i of t)
|
|
75
75
|
delete n[i];
|
|
76
76
|
return n;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const tt = ({
|
|
79
79
|
builder: e,
|
|
80
80
|
context: t,
|
|
81
81
|
event: n,
|
|
@@ -87,35 +87,15 @@ const rt = ({
|
|
|
87
87
|
builder: e,
|
|
88
88
|
context: t,
|
|
89
89
|
event: n
|
|
90
|
-
}),
|
|
91
|
-
isEditing:
|
|
92
|
-
isBrowser:
|
|
93
|
-
isServer: !
|
|
94
|
-
getUserAttributes: () =>
|
|
95
|
-
}),
|
|
90
|
+
}), nt = () => ({
|
|
91
|
+
isEditing: N(),
|
|
92
|
+
isBrowser: U(),
|
|
93
|
+
isServer: !U(),
|
|
94
|
+
getUserAttributes: () => Ke()
|
|
95
|
+
}), it = (e, {
|
|
96
96
|
isExpression: t = !0
|
|
97
|
-
}) => /* 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
|
|
98
|
-
|
|
99
|
-
builder: t,
|
|
100
|
-
context: n,
|
|
101
|
-
event: i,
|
|
102
|
-
localState: o,
|
|
103
|
-
rootSetState: a,
|
|
104
|
-
rootState: r
|
|
105
|
-
}) => {
|
|
106
|
-
const s = rt({
|
|
107
|
-
builder: t,
|
|
108
|
-
context: n,
|
|
109
|
-
event: i,
|
|
110
|
-
state: Ae({
|
|
111
|
-
rootState: r,
|
|
112
|
-
localState: o,
|
|
113
|
-
rootSetState: a
|
|
114
|
-
})
|
|
115
|
-
});
|
|
116
|
-
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
117
|
-
};
|
|
118
|
-
function Ae({
|
|
97
|
+
}) => /* 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;
|
|
98
|
+
function Re({
|
|
119
99
|
rootState: e,
|
|
120
100
|
localState: t,
|
|
121
101
|
rootSetState: n
|
|
@@ -125,7 +105,7 @@ function Ae({
|
|
|
125
105
|
if (t && o in t)
|
|
126
106
|
return t[o];
|
|
127
107
|
const a = i[o];
|
|
128
|
-
return typeof a == "object" && a !== null ?
|
|
108
|
+
return typeof a == "object" && a !== null ? Re({
|
|
129
109
|
rootState: a,
|
|
130
110
|
localState: void 0,
|
|
131
111
|
rootSetState: n ? (r) => {
|
|
@@ -140,21 +120,42 @@ function Ae({
|
|
|
140
120
|
}
|
|
141
121
|
});
|
|
142
122
|
}
|
|
143
|
-
|
|
123
|
+
const fe = ({
|
|
124
|
+
code: e,
|
|
125
|
+
builder: t,
|
|
126
|
+
context: n,
|
|
127
|
+
event: i,
|
|
128
|
+
localState: o,
|
|
129
|
+
rootSetState: a,
|
|
130
|
+
rootState: r
|
|
131
|
+
}) => {
|
|
132
|
+
const s = tt({
|
|
133
|
+
builder: t,
|
|
134
|
+
context: n,
|
|
135
|
+
event: i,
|
|
136
|
+
state: Re({
|
|
137
|
+
rootState: r,
|
|
138
|
+
localState: o,
|
|
139
|
+
rootSetState: a
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
143
|
+
};
|
|
144
|
+
function ot() {
|
|
144
145
|
var e;
|
|
145
|
-
return typeof process != "undefined" &&
|
|
146
|
+
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
146
147
|
}
|
|
147
|
-
const
|
|
148
|
+
const at = ({
|
|
148
149
|
shouldLogWarning: e
|
|
149
150
|
}) => {
|
|
150
151
|
var o;
|
|
151
|
-
if (!
|
|
152
|
+
if (!ot())
|
|
152
153
|
return !1;
|
|
153
154
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
154
|
-
return t && n && !i ? (e &&
|
|
155
|
-
},
|
|
155
|
+
return t && n && !i ? (e && Y.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;
|
|
156
|
+
}, rt = (e) => (U() || at({
|
|
156
157
|
shouldLogWarning: !0
|
|
157
|
-
}),
|
|
158
|
+
}), fe(e)), lt = !0, $ = class $ {
|
|
158
159
|
static getCacheKey(t) {
|
|
159
160
|
return JSON.stringify({
|
|
160
161
|
...t,
|
|
@@ -164,17 +165,17 @@ const dt = ({
|
|
|
164
165
|
});
|
|
165
166
|
}
|
|
166
167
|
static getCachedValue(t) {
|
|
167
|
-
return
|
|
168
|
+
return $.cache.get(t);
|
|
168
169
|
}
|
|
169
170
|
static setCachedValue(t, n) {
|
|
170
|
-
|
|
171
|
+
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
171
172
|
value: n
|
|
172
173
|
});
|
|
173
174
|
}
|
|
174
175
|
};
|
|
175
|
-
|
|
176
|
-
let
|
|
177
|
-
function
|
|
176
|
+
X($, "cacheLimit", 20), X($, "cache", /* @__PURE__ */ new Map());
|
|
177
|
+
let O = $;
|
|
178
|
+
function M({
|
|
178
179
|
code: e,
|
|
179
180
|
context: t,
|
|
180
181
|
localState: n,
|
|
@@ -187,56 +188,56 @@ function K({
|
|
|
187
188
|
if (e === "")
|
|
188
189
|
return;
|
|
189
190
|
const d = {
|
|
190
|
-
code:
|
|
191
|
+
code: it(e, {
|
|
191
192
|
isExpression: r
|
|
192
193
|
}),
|
|
193
|
-
builder:
|
|
194
|
+
builder: nt(),
|
|
194
195
|
context: t,
|
|
195
196
|
event: a,
|
|
196
197
|
rootSetState: o,
|
|
197
198
|
rootState: i,
|
|
198
199
|
localState: n
|
|
199
200
|
};
|
|
200
|
-
if (s && !
|
|
201
|
-
const c =
|
|
202
|
-
if (
|
|
203
|
-
return
|
|
201
|
+
if (s && !lt) {
|
|
202
|
+
const c = O.getCacheKey(d), f = O.getCachedValue(c);
|
|
203
|
+
if (f)
|
|
204
|
+
return f.value;
|
|
204
205
|
}
|
|
205
206
|
try {
|
|
206
|
-
const c =
|
|
207
|
+
const c = rt(d);
|
|
207
208
|
if (s) {
|
|
208
|
-
const
|
|
209
|
-
|
|
209
|
+
const f = O.getCacheKey(d);
|
|
210
|
+
O.setCachedValue(f, c);
|
|
210
211
|
}
|
|
211
212
|
return c;
|
|
212
213
|
} catch (c) {
|
|
213
|
-
|
|
214
|
+
Y.error("Failed code evaluation: " + c.message, {
|
|
214
215
|
code: e
|
|
215
216
|
});
|
|
216
217
|
return;
|
|
217
218
|
}
|
|
218
219
|
}
|
|
219
|
-
const
|
|
220
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), Be = (e, t, n) => {
|
|
220
221
|
if (Object(e) !== e)
|
|
221
222
|
return e;
|
|
222
223
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
223
224
|
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;
|
|
224
225
|
};
|
|
225
|
-
function
|
|
226
|
+
function oe(e) {
|
|
226
227
|
if (e === null || typeof e != "object")
|
|
227
228
|
return e;
|
|
228
229
|
if (Array.isArray(e))
|
|
229
|
-
return e.map((n) =>
|
|
230
|
+
return e.map((n) => oe(n));
|
|
230
231
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
231
232
|
return e;
|
|
232
233
|
const t = {};
|
|
233
234
|
for (const n in e)
|
|
234
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
235
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
|
|
235
236
|
return t;
|
|
236
237
|
}
|
|
237
|
-
const
|
|
238
|
-
if (
|
|
239
|
-
const t =
|
|
238
|
+
const st = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), ct = (e) => {
|
|
239
|
+
if (st) {
|
|
240
|
+
const t = se(e);
|
|
240
241
|
return {
|
|
241
242
|
...t,
|
|
242
243
|
properties: {
|
|
@@ -247,7 +248,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
247
248
|
}
|
|
248
249
|
};
|
|
249
250
|
} else {
|
|
250
|
-
const t =
|
|
251
|
+
const t = oe(et(e, "children", "meta"));
|
|
251
252
|
return {
|
|
252
253
|
...t,
|
|
253
254
|
properties: {
|
|
@@ -260,7 +261,7 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
260
261
|
meta: e.meta
|
|
261
262
|
};
|
|
262
263
|
}
|
|
263
|
-
},
|
|
264
|
+
}, dt = ({
|
|
264
265
|
block: e,
|
|
265
266
|
context: t,
|
|
266
267
|
localState: n,
|
|
@@ -269,9 +270,9 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
269
270
|
}) => {
|
|
270
271
|
if (!e.bindings)
|
|
271
272
|
return e;
|
|
272
|
-
const a =
|
|
273
|
+
const a = ct(e);
|
|
273
274
|
for (const r in e.bindings) {
|
|
274
|
-
const s = e.bindings[r], d =
|
|
275
|
+
const s = e.bindings[r], d = M({
|
|
275
276
|
code: s,
|
|
276
277
|
localState: n,
|
|
277
278
|
rootState: i,
|
|
@@ -279,11 +280,11 @@ const ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ht = (e) =
|
|
|
279
280
|
context: t,
|
|
280
281
|
enableCache: !0
|
|
281
282
|
});
|
|
282
|
-
|
|
283
|
+
Be(a, r, d);
|
|
283
284
|
}
|
|
284
285
|
return a;
|
|
285
286
|
};
|
|
286
|
-
function
|
|
287
|
+
function ut({
|
|
287
288
|
block: e,
|
|
288
289
|
context: t,
|
|
289
290
|
shouldEvaluateBindings: n,
|
|
@@ -292,7 +293,7 @@ function bt({
|
|
|
292
293
|
rootSetState: a
|
|
293
294
|
}) {
|
|
294
295
|
const r = e;
|
|
295
|
-
return n ?
|
|
296
|
+
return n ? dt({
|
|
296
297
|
block: r,
|
|
297
298
|
localState: i,
|
|
298
299
|
rootState: o,
|
|
@@ -300,8 +301,8 @@ function bt({
|
|
|
300
301
|
context: t
|
|
301
302
|
}) : r;
|
|
302
303
|
}
|
|
303
|
-
const
|
|
304
|
-
function
|
|
304
|
+
const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
305
|
+
function mt(e, t, n = {}) {
|
|
305
306
|
let i, o, a, r = null, s = 0;
|
|
306
307
|
const d = function() {
|
|
307
308
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -309,11 +310,11 @@ function pt(e, t, n = {}) {
|
|
|
309
310
|
return function() {
|
|
310
311
|
const c = Date.now();
|
|
311
312
|
!s && n.leading === !1 && (s = c);
|
|
312
|
-
const
|
|
313
|
-
return i = this, o = arguments,
|
|
313
|
+
const f = t - (c - s);
|
|
314
|
+
return i = this, o = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, f)), a;
|
|
314
315
|
};
|
|
315
316
|
}
|
|
316
|
-
function
|
|
317
|
+
function j(e, ...t) {
|
|
317
318
|
const n = Object(e);
|
|
318
319
|
for (let i = 1; i < arguments.length; i++) {
|
|
319
320
|
const o = arguments[i];
|
|
@@ -323,118 +324,118 @@ function q(e, ...t) {
|
|
|
323
324
|
}
|
|
324
325
|
return n;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function ft(e) {
|
|
327
328
|
for (const t of e)
|
|
328
329
|
switch (t.trigger) {
|
|
329
330
|
case "pageLoad":
|
|
330
|
-
|
|
331
|
+
Ae(t);
|
|
331
332
|
break;
|
|
332
333
|
case "scrollInView":
|
|
333
|
-
|
|
334
|
+
gt(t);
|
|
334
335
|
break;
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
|
-
function
|
|
338
|
+
function Pe(e) {
|
|
338
339
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
-
const n =
|
|
341
|
+
function Ve(e, t) {
|
|
342
|
+
const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
342
343
|
for (const s of r)
|
|
343
344
|
for (const d of n)
|
|
344
345
|
d in s || (s[d] = i[d]);
|
|
345
346
|
}
|
|
346
|
-
function
|
|
347
|
+
function ht(e) {
|
|
347
348
|
const t = [];
|
|
348
349
|
for (const n of e.steps)
|
|
349
350
|
for (const i in n.styles)
|
|
350
351
|
t.indexOf(i) === -1 && t.push(i);
|
|
351
352
|
return t;
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function Ae(e) {
|
|
354
355
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
355
356
|
if (!t.length) {
|
|
356
|
-
|
|
357
|
+
Pe(e.elementId || e.id || "");
|
|
357
358
|
return;
|
|
358
359
|
}
|
|
359
360
|
Array.from(t).forEach((n) => {
|
|
360
|
-
|
|
361
|
-
n.style.transition = `all ${e.duration}s ${
|
|
361
|
+
Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
362
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
362
363
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
363
364
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
364
365
|
});
|
|
365
366
|
});
|
|
366
367
|
}
|
|
367
|
-
function
|
|
368
|
+
function gt(e) {
|
|
368
369
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
369
370
|
if (!t.length) {
|
|
370
|
-
|
|
371
|
+
Pe(e.elementId || e.id || "");
|
|
371
372
|
return;
|
|
372
373
|
}
|
|
373
374
|
Array.from(t).forEach((n) => {
|
|
374
|
-
|
|
375
|
+
Ve(e, n);
|
|
375
376
|
let i = !1, o = !1;
|
|
376
377
|
function a() {
|
|
377
378
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
378
|
-
|
|
379
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
379
380
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
380
381
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
381
|
-
})) : e.repeat && i && !o && !s(n) && (i = !1,
|
|
382
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
|
|
382
383
|
}
|
|
383
|
-
const r =
|
|
384
|
+
const r = mt(a, 200, {
|
|
384
385
|
leading: !1
|
|
385
386
|
});
|
|
386
|
-
function s(
|
|
387
|
-
const
|
|
388
|
-
return
|
|
387
|
+
function s(f) {
|
|
388
|
+
const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
|
|
389
|
+
return b.bottom > g && b.top < h - g;
|
|
389
390
|
}
|
|
390
391
|
const d = e.steps[0].styles;
|
|
391
392
|
function c() {
|
|
392
|
-
|
|
393
|
+
j(n.style, d);
|
|
393
394
|
}
|
|
394
395
|
c(), setTimeout(() => {
|
|
395
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
396
397
|
}), document.addEventListener("scroll", r, {
|
|
397
398
|
capture: !0,
|
|
398
399
|
passive: !0
|
|
399
400
|
}), a();
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
|
-
const
|
|
403
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
403
404
|
if (typeof i == "string")
|
|
404
|
-
return `${
|
|
405
|
-
}).filter(
|
|
406
|
-
`),
|
|
405
|
+
return `${G(n)}: ${i};`;
|
|
406
|
+
}).filter(z), bt = (e) => We(e).join(`
|
|
407
|
+
`), q = ({
|
|
407
408
|
mediaQuery: e,
|
|
408
409
|
className: t,
|
|
409
410
|
styles: n
|
|
410
411
|
}) => {
|
|
411
412
|
const i = `.${t} {
|
|
412
|
-
${
|
|
413
|
+
${bt(n)}
|
|
413
414
|
}`;
|
|
414
415
|
return e ? `${e} {
|
|
415
416
|
${i}
|
|
416
417
|
}` : i;
|
|
417
418
|
};
|
|
418
|
-
function
|
|
419
|
+
function pt({
|
|
419
420
|
style: e
|
|
420
421
|
}) {
|
|
421
422
|
return e;
|
|
422
423
|
}
|
|
423
|
-
const
|
|
424
|
+
const yt = ({
|
|
424
425
|
block: e,
|
|
425
426
|
context: t
|
|
426
|
-
}) =>
|
|
427
|
+
}) => Ne(pt({
|
|
427
428
|
style: e.style || {},
|
|
428
429
|
context: t,
|
|
429
430
|
block: e
|
|
430
431
|
}));
|
|
431
|
-
function
|
|
432
|
-
switch (
|
|
432
|
+
function Ne(e) {
|
|
433
|
+
switch (L) {
|
|
433
434
|
case "svelte":
|
|
434
435
|
case "vue":
|
|
435
436
|
case "solid":
|
|
436
437
|
case "angular":
|
|
437
|
-
return
|
|
438
|
+
return We(e).join(" ");
|
|
438
439
|
case "qwik":
|
|
439
440
|
case "reactNative":
|
|
440
441
|
case "react":
|
|
@@ -442,7 +443,7 @@ function Le(e) {
|
|
|
442
443
|
return e;
|
|
443
444
|
}
|
|
444
445
|
}
|
|
445
|
-
const
|
|
446
|
+
const xt = ({
|
|
446
447
|
block: e,
|
|
447
448
|
registeredComponents: t
|
|
448
449
|
}) => {
|
|
@@ -456,7 +457,7 @@ const Tt = ({
|
|
|
456
457
|
console.warn(`
|
|
457
458
|
Could not find a registered component named "${n}".
|
|
458
459
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
459
|
-
},
|
|
460
|
+
}, vt = ({
|
|
460
461
|
block: e,
|
|
461
462
|
context: t
|
|
462
463
|
}) => {
|
|
@@ -466,7 +467,7 @@ const Tt = ({
|
|
|
466
467
|
} = e;
|
|
467
468
|
if (!(n != null && n.collection))
|
|
468
469
|
return;
|
|
469
|
-
const o =
|
|
470
|
+
const o = M({
|
|
470
471
|
code: n.collection,
|
|
471
472
|
localState: t.localState,
|
|
472
473
|
rootState: t.rootState,
|
|
@@ -490,27 +491,27 @@ const Tt = ({
|
|
|
490
491
|
},
|
|
491
492
|
block: i
|
|
492
493
|
}));
|
|
493
|
-
},
|
|
494
|
+
}, St = (e, t) => {
|
|
494
495
|
var n;
|
|
495
496
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
496
497
|
builderLinkComponent: t
|
|
497
498
|
} : {};
|
|
498
|
-
},
|
|
499
|
+
}, kt = (e, t) => {
|
|
499
500
|
var n;
|
|
500
501
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
501
502
|
builderComponents: t
|
|
502
503
|
} : {};
|
|
503
|
-
},
|
|
504
|
+
}, Ct = (e, t) => {
|
|
504
505
|
var n;
|
|
505
506
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
506
507
|
builderBlock: t
|
|
507
508
|
} : {};
|
|
508
|
-
},
|
|
509
|
+
}, Tt = (e, t) => {
|
|
509
510
|
var n;
|
|
510
511
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
511
512
|
builderContext: t
|
|
512
513
|
} : {};
|
|
513
|
-
},
|
|
514
|
+
}, Fe = {
|
|
514
515
|
small: {
|
|
515
516
|
min: 320,
|
|
516
517
|
default: 321,
|
|
@@ -526,11 +527,11 @@ const Tt = ({
|
|
|
526
527
|
default: 991,
|
|
527
528
|
max: 1200
|
|
528
529
|
}
|
|
529
|
-
},
|
|
530
|
+
}, he = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
|
|
530
531
|
small: e,
|
|
531
532
|
medium: t
|
|
532
533
|
}) => {
|
|
533
|
-
const n =
|
|
534
|
+
const n = se(Fe);
|
|
534
535
|
if (!e || !t)
|
|
535
536
|
return n;
|
|
536
537
|
const i = Math.floor(e / 2);
|
|
@@ -553,7 +554,7 @@ const Tt = ({
|
|
|
553
554
|
default: a + 1
|
|
554
555
|
}, n;
|
|
555
556
|
};
|
|
556
|
-
function
|
|
557
|
+
function Q(e) {
|
|
557
558
|
return /* @__PURE__ */ l(
|
|
558
559
|
"style",
|
|
559
560
|
{
|
|
@@ -563,59 +564,59 @@ function te(e) {
|
|
|
563
564
|
}
|
|
564
565
|
);
|
|
565
566
|
}
|
|
566
|
-
function
|
|
567
|
+
function It(e) {
|
|
567
568
|
function t() {
|
|
568
569
|
const i = e.block;
|
|
569
|
-
return
|
|
570
|
+
return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
|
|
570
571
|
}
|
|
571
572
|
function n() {
|
|
572
|
-
var
|
|
573
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
574
|
-
((
|
|
575
|
-
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small,
|
|
576
|
-
if (!
|
|
573
|
+
var x, R, C;
|
|
574
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = $e(
|
|
575
|
+
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
576
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
|
|
577
|
+
if (!f)
|
|
577
578
|
return "";
|
|
578
|
-
const
|
|
579
|
-
className:
|
|
579
|
+
const b = s ? q({
|
|
580
|
+
className: f,
|
|
580
581
|
styles: s
|
|
581
|
-
}) : "",
|
|
582
|
-
className:
|
|
582
|
+
}) : "", h = d ? q({
|
|
583
|
+
className: f,
|
|
583
584
|
styles: d,
|
|
584
|
-
mediaQuery:
|
|
585
|
+
mediaQuery: he(
|
|
585
586
|
"medium",
|
|
586
587
|
r
|
|
587
588
|
)
|
|
588
|
-
}) : "",
|
|
589
|
-
className:
|
|
589
|
+
}) : "", v = c ? q({
|
|
590
|
+
className: f,
|
|
590
591
|
styles: c,
|
|
591
|
-
mediaQuery:
|
|
592
|
+
mediaQuery: he(
|
|
592
593
|
"small",
|
|
593
594
|
r
|
|
594
595
|
)
|
|
595
|
-
}) : "",
|
|
596
|
-
let
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
|
|
600
|
-
className: `${
|
|
596
|
+
}) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
|
|
597
|
+
let S = "";
|
|
598
|
+
if (g) {
|
|
599
|
+
const k = ((C = (R = g.steps) == null ? void 0 : R[1]) == null ? void 0 : C.styles) || {};
|
|
600
|
+
S = q({
|
|
601
|
+
className: `${f}:hover`,
|
|
601
602
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${
|
|
604
|
-
|
|
603
|
+
...k,
|
|
604
|
+
transition: `all ${g.duration}s ${G(
|
|
605
|
+
g.easing
|
|
605
606
|
)}`,
|
|
606
|
-
transitionDelay:
|
|
607
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
607
608
|
}
|
|
608
609
|
}) || "";
|
|
609
610
|
}
|
|
610
611
|
return [
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
612
|
+
b,
|
|
613
|
+
h,
|
|
614
|
+
v,
|
|
615
|
+
S
|
|
615
616
|
].join(" ");
|
|
616
617
|
}
|
|
617
|
-
return /* @__PURE__ */ l(
|
|
618
|
-
|
|
618
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
619
|
+
Q,
|
|
619
620
|
{
|
|
620
621
|
id: "builderio-block",
|
|
621
622
|
styles: n(),
|
|
@@ -623,10 +624,10 @@ function Pt(e) {
|
|
|
623
624
|
}
|
|
624
625
|
) }) : null });
|
|
625
626
|
}
|
|
626
|
-
function
|
|
627
|
+
function wt(e) {
|
|
627
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
628
629
|
}
|
|
629
|
-
const
|
|
630
|
+
const Et = (e) => `on${wt(e)}`, Rt = (e, t) => (n) => M({
|
|
630
631
|
code: e,
|
|
631
632
|
context: t.context,
|
|
632
633
|
localState: t.localState,
|
|
@@ -636,16 +637,16 @@ const At = (e) => `on${Vt(e)}`, Wt = (e, t) => (n) => K({
|
|
|
636
637
|
isExpression: !1,
|
|
637
638
|
enableCache: !0
|
|
638
639
|
});
|
|
639
|
-
function
|
|
640
|
+
function De(e) {
|
|
640
641
|
var i;
|
|
641
642
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
643
|
for (const o in n) {
|
|
643
644
|
if (!n.hasOwnProperty(o))
|
|
644
645
|
continue;
|
|
645
646
|
const a = n[o];
|
|
646
|
-
let r =
|
|
647
|
+
let r = Et(o);
|
|
647
648
|
if (e.stripPrefix)
|
|
648
|
-
switch (
|
|
649
|
+
switch (L) {
|
|
649
650
|
case "vue":
|
|
650
651
|
r = r.replace("v-on:", "");
|
|
651
652
|
break;
|
|
@@ -653,49 +654,49 @@ function Me(e) {
|
|
|
653
654
|
r = r.replace("on:", "");
|
|
654
655
|
break;
|
|
655
656
|
}
|
|
656
|
-
t[r] =
|
|
657
|
+
t[r] = Rt(a, e);
|
|
657
658
|
}
|
|
658
659
|
return t;
|
|
659
660
|
}
|
|
660
|
-
function
|
|
661
|
+
function Bt({
|
|
661
662
|
properties: e
|
|
662
663
|
}) {
|
|
663
664
|
return e;
|
|
664
665
|
}
|
|
665
|
-
const
|
|
666
|
+
const Pt = (e) => ({
|
|
666
667
|
href: e.href
|
|
667
668
|
});
|
|
668
|
-
function
|
|
669
|
+
function ce({
|
|
669
670
|
block: e,
|
|
670
671
|
context: t
|
|
671
672
|
}) {
|
|
672
673
|
var i;
|
|
673
674
|
const n = {
|
|
674
|
-
...
|
|
675
|
+
...Pt(e),
|
|
675
676
|
...e.properties,
|
|
676
677
|
"builder-id": e.id,
|
|
677
|
-
style:
|
|
678
|
+
style: yt({
|
|
678
679
|
block: e,
|
|
679
680
|
context: t
|
|
680
681
|
}),
|
|
681
|
-
[
|
|
682
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
683
|
};
|
|
683
|
-
return
|
|
684
|
+
return Bt({
|
|
684
685
|
properties: n,
|
|
685
686
|
context: t,
|
|
686
687
|
block: e
|
|
687
688
|
});
|
|
688
689
|
}
|
|
689
|
-
function
|
|
690
|
+
function Vt(e) {
|
|
690
691
|
return /* @__PURE__ */ l(
|
|
691
|
-
|
|
692
|
+
re,
|
|
692
693
|
{
|
|
693
694
|
TagName: e.Wrapper,
|
|
694
|
-
attributes:
|
|
695
|
+
attributes: ce({
|
|
695
696
|
block: e.block,
|
|
696
697
|
context: e.context
|
|
697
698
|
}),
|
|
698
|
-
actionAttributes:
|
|
699
|
+
actionAttributes: De({
|
|
699
700
|
block: e.block,
|
|
700
701
|
rootState: e.context.rootState,
|
|
701
702
|
rootSetState: e.context.rootSetState,
|
|
@@ -707,17 +708,18 @@ function $t(e) {
|
|
|
707
708
|
}
|
|
708
709
|
);
|
|
709
710
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
711
|
+
function At(e) {
|
|
712
|
+
return P(() => {
|
|
713
|
+
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
712
714
|
}
|
|
713
|
-
function
|
|
715
|
+
function Wt(e) {
|
|
714
716
|
function t() {
|
|
715
717
|
return e.includeBlockProps ? {
|
|
716
|
-
...
|
|
718
|
+
...ce({
|
|
717
719
|
block: e.block,
|
|
718
720
|
context: e.context
|
|
719
721
|
}),
|
|
720
|
-
...
|
|
722
|
+
...De({
|
|
721
723
|
block: e.block,
|
|
722
724
|
rootState: e.context.rootState,
|
|
723
725
|
rootSetState: e.context.rootSetState,
|
|
@@ -726,8 +728,8 @@ function Lt(e) {
|
|
|
726
728
|
})
|
|
727
729
|
} : {};
|
|
728
730
|
}
|
|
729
|
-
return /* @__PURE__ */ l(
|
|
730
|
-
|
|
731
|
+
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
732
|
+
At,
|
|
731
733
|
{
|
|
732
734
|
load: e.Wrapper.load,
|
|
733
735
|
fallback: e.Wrapper.fallback,
|
|
@@ -737,7 +739,7 @@ function Lt(e) {
|
|
|
737
739
|
}
|
|
738
740
|
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
739
741
|
}
|
|
740
|
-
const
|
|
742
|
+
const Nt = ({
|
|
741
743
|
componentOptions: e,
|
|
742
744
|
builderBlock: t,
|
|
743
745
|
context: n,
|
|
@@ -753,7 +755,7 @@ const Ot = ({
|
|
|
753
755
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
754
756
|
*/
|
|
755
757
|
...o ? {
|
|
756
|
-
attributes:
|
|
758
|
+
attributes: ce({
|
|
757
759
|
block: t,
|
|
758
760
|
context: r
|
|
759
761
|
})
|
|
@@ -767,15 +769,15 @@ const Ot = ({
|
|
|
767
769
|
includeBlockProps: o
|
|
768
770
|
} : s;
|
|
769
771
|
};
|
|
770
|
-
function
|
|
772
|
+
function ge(e) {
|
|
771
773
|
var i;
|
|
772
774
|
const [t, n] = T(
|
|
773
|
-
() => e.isInteractive ?
|
|
775
|
+
() => e.isInteractive ? Wt : e.componentRef
|
|
774
776
|
);
|
|
775
|
-
return /* @__PURE__ */ l(
|
|
777
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
776
778
|
t,
|
|
777
779
|
{
|
|
778
|
-
...
|
|
780
|
+
...Nt({
|
|
779
781
|
componentOptions: e.componentOptions,
|
|
780
782
|
builderBlock: e.builderBlock,
|
|
781
783
|
context: e.context,
|
|
@@ -786,7 +788,7 @@ function xe(e) {
|
|
|
786
788
|
contextValue: e.context
|
|
787
789
|
}),
|
|
788
790
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
789
|
-
|
|
791
|
+
K,
|
|
790
792
|
{
|
|
791
793
|
block: o,
|
|
792
794
|
context: e.context,
|
|
@@ -798,10 +800,10 @@ function xe(e) {
|
|
|
798
800
|
}
|
|
799
801
|
) }) : null });
|
|
800
802
|
}
|
|
801
|
-
function
|
|
803
|
+
function be(e) {
|
|
802
804
|
const [t, n] = T(() => e.repeatContext);
|
|
803
|
-
return /* @__PURE__ */ l(
|
|
804
|
-
|
|
805
|
+
return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
806
|
+
K,
|
|
805
807
|
{
|
|
806
808
|
block: e.block,
|
|
807
809
|
context: t,
|
|
@@ -810,10 +812,10 @@ function ve(e) {
|
|
|
810
812
|
}
|
|
811
813
|
) });
|
|
812
814
|
}
|
|
813
|
-
function
|
|
814
|
-
var
|
|
815
|
+
function K(e) {
|
|
816
|
+
var f, b, h, v;
|
|
815
817
|
function t() {
|
|
816
|
-
return
|
|
818
|
+
return vt({
|
|
817
819
|
block: e.block,
|
|
818
820
|
context: e.context
|
|
819
821
|
});
|
|
@@ -823,10 +825,10 @@ function J(e) {
|
|
|
823
825
|
update: !1
|
|
824
826
|
}));
|
|
825
827
|
function o() {
|
|
826
|
-
var
|
|
827
|
-
if (n.value && !n.update && !
|
|
828
|
+
var S;
|
|
829
|
+
if (n.value && !n.update && !Ce())
|
|
828
830
|
return n.value;
|
|
829
|
-
const
|
|
831
|
+
const g = (S = e.block.repeat) != null && S.collection ? e.block : ut({
|
|
830
832
|
block: e.block,
|
|
831
833
|
localState: e.context.localState,
|
|
832
834
|
rootState: e.context.rootState,
|
|
@@ -834,40 +836,40 @@ function J(e) {
|
|
|
834
836
|
context: e.context.context,
|
|
835
837
|
shouldEvaluateBindings: !0
|
|
836
838
|
});
|
|
837
|
-
return n.value =
|
|
839
|
+
return n.value = g, n.update = !1, g;
|
|
838
840
|
}
|
|
839
841
|
function a() {
|
|
840
|
-
return
|
|
842
|
+
return xt({
|
|
841
843
|
block: o(),
|
|
842
844
|
registeredComponents: e.registeredComponents
|
|
843
845
|
});
|
|
844
846
|
}
|
|
845
847
|
function r() {
|
|
846
|
-
var
|
|
847
|
-
return e.block.tagName === "a" || ((
|
|
848
|
+
var S;
|
|
849
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
848
850
|
}
|
|
849
851
|
function s() {
|
|
850
|
-
var
|
|
851
|
-
if ((
|
|
852
|
+
var x, R;
|
|
853
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
852
854
|
return !!((R = t == null ? void 0 : t()) != null && R.length);
|
|
853
|
-
const
|
|
854
|
-
return ("show" in o() ? o().show : !0) && !
|
|
855
|
+
const g = "hide" in o() ? o().hide : !1;
|
|
856
|
+
return ("show" in o() ? o().show : !0) && !g;
|
|
855
857
|
}
|
|
856
858
|
function d() {
|
|
857
|
-
var
|
|
858
|
-
return !((
|
|
859
|
+
var S, x;
|
|
860
|
+
return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
859
861
|
}
|
|
860
862
|
function c() {
|
|
861
|
-
var
|
|
863
|
+
var g, S, x, R;
|
|
862
864
|
return {
|
|
863
|
-
blockChildren: (
|
|
864
|
-
componentRef: (
|
|
865
|
+
blockChildren: (g = o().children) != null ? g : [],
|
|
866
|
+
componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
|
|
865
867
|
componentOptions: {
|
|
866
|
-
...
|
|
867
|
-
...
|
|
868
|
-
...
|
|
869
|
-
...
|
|
870
|
-
...
|
|
868
|
+
...Ze(o()),
|
|
869
|
+
...Ct(a(), o()),
|
|
870
|
+
...Tt(a(), e.context),
|
|
871
|
+
...St(a(), e.linkComponent),
|
|
872
|
+
...kt(
|
|
871
873
|
a(),
|
|
872
874
|
e.registeredComponents
|
|
873
875
|
)
|
|
@@ -876,33 +878,33 @@ function J(e) {
|
|
|
876
878
|
linkComponent: e.linkComponent,
|
|
877
879
|
registeredComponents: e.registeredComponents,
|
|
878
880
|
builderBlock: o(),
|
|
879
|
-
includeBlockProps: ((
|
|
880
|
-
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC &&
|
|
881
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
882
|
+
isInteractive: !((R = a == null ? void 0 : a()) != null && R.isRSC && L === "rsc")
|
|
881
883
|
};
|
|
882
884
|
}
|
|
883
885
|
return P(() => {
|
|
884
|
-
const
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
...
|
|
888
|
-
elementId:
|
|
886
|
+
const g = o().id, S = o().animations;
|
|
887
|
+
S && g && ft(
|
|
888
|
+
S.map((x) => ({
|
|
889
|
+
...x,
|
|
890
|
+
elementId: g
|
|
889
891
|
}))
|
|
890
892
|
);
|
|
891
893
|
}, []), P(() => {
|
|
892
894
|
n.update = !0;
|
|
893
|
-
}), /* @__PURE__ */ l(
|
|
894
|
-
/* @__PURE__ */ l(
|
|
895
|
-
(
|
|
896
|
-
|
|
895
|
+
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
|
|
896
|
+
/* @__PURE__ */ l(It, { block: o(), context: e.context }),
|
|
897
|
+
(f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
|
|
898
|
+
be,
|
|
897
899
|
{
|
|
898
|
-
repeatContext:
|
|
899
|
-
block:
|
|
900
|
+
repeatContext: g.context,
|
|
901
|
+
block: g.block,
|
|
900
902
|
registeredComponents: e.registeredComponents,
|
|
901
903
|
linkComponent: e.linkComponent
|
|
902
904
|
},
|
|
903
|
-
|
|
905
|
+
S
|
|
904
906
|
)) }) : /* @__PURE__ */ l(
|
|
905
|
-
|
|
907
|
+
ge,
|
|
906
908
|
{
|
|
907
909
|
componentRef: c().componentRef,
|
|
908
910
|
componentOptions: c().componentOptions,
|
|
@@ -914,24 +916,24 @@ function J(e) {
|
|
|
914
916
|
includeBlockProps: c().includeBlockProps,
|
|
915
917
|
isInteractive: c().isInteractive
|
|
916
918
|
}
|
|
917
|
-
) : /* @__PURE__ */ l(
|
|
918
|
-
|
|
919
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
|
|
920
|
+
be,
|
|
919
921
|
{
|
|
920
|
-
repeatContext:
|
|
921
|
-
block:
|
|
922
|
+
repeatContext: g.context,
|
|
923
|
+
block: g.block,
|
|
922
924
|
registeredComponents: e.registeredComponents,
|
|
923
925
|
linkComponent: e.linkComponent
|
|
924
926
|
},
|
|
925
|
-
|
|
927
|
+
S
|
|
926
928
|
)) }) : /* @__PURE__ */ V(
|
|
927
|
-
|
|
929
|
+
Vt,
|
|
928
930
|
{
|
|
929
931
|
Wrapper: r(),
|
|
930
932
|
block: o(),
|
|
931
933
|
context: e.context,
|
|
932
934
|
children: [
|
|
933
935
|
/* @__PURE__ */ l(
|
|
934
|
-
|
|
936
|
+
ge,
|
|
935
937
|
{
|
|
936
938
|
componentRef: c().componentRef,
|
|
937
939
|
componentOptions: c().componentOptions,
|
|
@@ -944,30 +946,30 @@ function J(e) {
|
|
|
944
946
|
isInteractive: c().isInteractive
|
|
945
947
|
}
|
|
946
948
|
),
|
|
947
|
-
(
|
|
948
|
-
|
|
949
|
+
(b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
|
|
950
|
+
K,
|
|
949
951
|
{
|
|
950
|
-
block:
|
|
952
|
+
block: g,
|
|
951
953
|
registeredComponents: e.registeredComponents,
|
|
952
954
|
linkComponent: e.linkComponent,
|
|
953
955
|
context: e.context
|
|
954
956
|
},
|
|
955
|
-
|
|
957
|
+
g.id
|
|
956
958
|
))
|
|
957
959
|
]
|
|
958
960
|
}
|
|
959
961
|
) })
|
|
960
962
|
] }) : null });
|
|
961
963
|
}
|
|
962
|
-
function
|
|
963
|
-
const t =
|
|
964
|
+
function Ft(e) {
|
|
965
|
+
const t = D(null);
|
|
964
966
|
function n() {
|
|
965
967
|
var a;
|
|
966
968
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
967
969
|
}
|
|
968
970
|
function i() {
|
|
969
971
|
var a, r;
|
|
970
|
-
|
|
972
|
+
N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
971
973
|
{
|
|
972
974
|
type: "builder.clickEmptyBlocks",
|
|
973
975
|
data: {
|
|
@@ -980,7 +982,7 @@ function Ut(e) {
|
|
|
980
982
|
}
|
|
981
983
|
function o() {
|
|
982
984
|
var a, r;
|
|
983
|
-
|
|
985
|
+
N() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
984
986
|
{
|
|
985
987
|
type: "builder.hoverEmptyBlocks",
|
|
986
988
|
data: {
|
|
@@ -992,12 +994,12 @@ function Ut(e) {
|
|
|
992
994
|
));
|
|
993
995
|
}
|
|
994
996
|
return P(() => {
|
|
995
|
-
}, []), /* @__PURE__ */ V(
|
|
997
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
996
998
|
/* @__PURE__ */ l(
|
|
997
999
|
e.BlocksWrapper,
|
|
998
1000
|
{
|
|
999
1001
|
ref: t,
|
|
1000
|
-
className: n() + " props-blocks-wrapper-
|
|
1002
|
+
className: n() + " props-blocks-wrapper-77bdc7c6",
|
|
1001
1003
|
"builder-path": e.path,
|
|
1002
1004
|
"builder-parent-id": e.parent,
|
|
1003
1005
|
style: e.styleProp,
|
|
@@ -1008,18 +1010,18 @@ function Ut(e) {
|
|
|
1008
1010
|
children: e.children
|
|
1009
1011
|
}
|
|
1010
1012
|
),
|
|
1011
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
1013
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-77bdc7c6 {
|
|
1012
1014
|
display: flex;
|
|
1013
1015
|
flex-direction: column;
|
|
1014
1016
|
align-items: stretch;
|
|
1015
1017
|
}` })
|
|
1016
1018
|
] });
|
|
1017
1019
|
}
|
|
1018
|
-
function
|
|
1020
|
+
function F(e) {
|
|
1019
1021
|
var i, o, a;
|
|
1020
|
-
const t =
|
|
1022
|
+
const t = me(le), n = me(Ee);
|
|
1021
1023
|
return /* @__PURE__ */ l(
|
|
1022
|
-
|
|
1024
|
+
Ft,
|
|
1023
1025
|
{
|
|
1024
1026
|
blocks: e.blocks,
|
|
1025
1027
|
parent: e.parent,
|
|
@@ -1027,8 +1029,8 @@ function D(e) {
|
|
|
1027
1029
|
styleProp: e.styleProp,
|
|
1028
1030
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
1029
1031
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
1030
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
1031
|
-
|
|
1032
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1033
|
+
K,
|
|
1032
1034
|
{
|
|
1033
1035
|
block: r,
|
|
1034
1036
|
linkComponent: e.linkComponent,
|
|
@@ -1040,145 +1042,145 @@ function D(e) {
|
|
|
1040
1042
|
}
|
|
1041
1043
|
);
|
|
1042
1044
|
}
|
|
1043
|
-
const
|
|
1044
|
-
function
|
|
1045
|
-
var
|
|
1045
|
+
const $t = (e) => `builder-columns ${e}-breakpoints`;
|
|
1046
|
+
function Dt(e) {
|
|
1047
|
+
var k, W;
|
|
1046
1048
|
const [t, n] = T(
|
|
1047
1049
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
1048
1050
|
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
1049
1051
|
() => e.stackColumnsAt || "tablet"
|
|
1050
1052
|
);
|
|
1051
|
-
function s(
|
|
1052
|
-
return
|
|
1053
|
+
function s(m) {
|
|
1054
|
+
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
1053
1055
|
}
|
|
1054
|
-
function d(
|
|
1055
|
-
var
|
|
1056
|
-
return ((
|
|
1056
|
+
function d(m) {
|
|
1057
|
+
var y;
|
|
1058
|
+
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
1057
1059
|
}
|
|
1058
|
-
function c(
|
|
1059
|
-
const
|
|
1060
|
-
return `calc(${
|
|
1060
|
+
function c(m) {
|
|
1061
|
+
const y = d(m), I = t * (i.length - 1) * (y / 100);
|
|
1062
|
+
return `calc(${y}% - ${I}px)`;
|
|
1061
1063
|
}
|
|
1062
|
-
function
|
|
1063
|
-
stackedStyle:
|
|
1064
|
-
desktopStyle:
|
|
1064
|
+
function f({
|
|
1065
|
+
stackedStyle: m,
|
|
1066
|
+
desktopStyle: y
|
|
1065
1067
|
}) {
|
|
1066
|
-
return a === "tablet" ?
|
|
1068
|
+
return a === "tablet" ? m : y;
|
|
1067
1069
|
}
|
|
1068
|
-
function
|
|
1069
|
-
stackedStyle:
|
|
1070
|
-
desktopStyle:
|
|
1070
|
+
function b({
|
|
1071
|
+
stackedStyle: m,
|
|
1072
|
+
desktopStyle: y
|
|
1071
1073
|
}) {
|
|
1072
|
-
return a === "never" ?
|
|
1074
|
+
return a === "never" ? y : m;
|
|
1073
1075
|
}
|
|
1074
|
-
const [
|
|
1076
|
+
const [h, v] = T(
|
|
1075
1077
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1076
1078
|
);
|
|
1077
|
-
function
|
|
1079
|
+
function g() {
|
|
1078
1080
|
return {
|
|
1079
|
-
"--flex-dir":
|
|
1080
|
-
"--flex-dir-tablet":
|
|
1081
|
-
stackedStyle:
|
|
1081
|
+
"--flex-dir": h,
|
|
1082
|
+
"--flex-dir-tablet": f({
|
|
1083
|
+
stackedStyle: h,
|
|
1082
1084
|
desktopStyle: "row"
|
|
1083
1085
|
})
|
|
1084
1086
|
};
|
|
1085
1087
|
}
|
|
1086
|
-
function
|
|
1087
|
-
const
|
|
1088
|
+
function S(m) {
|
|
1089
|
+
const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", E = 0;
|
|
1088
1090
|
return {
|
|
1089
1091
|
...{
|
|
1090
1092
|
display: "flex",
|
|
1091
1093
|
flexDirection: "column",
|
|
1092
1094
|
alignItems: "stretch"
|
|
1093
1095
|
},
|
|
1094
|
-
width:
|
|
1095
|
-
["marginLeft"]:
|
|
1096
|
-
"--column-width-mobile":
|
|
1097
|
-
stackedStyle:
|
|
1098
|
-
desktopStyle:
|
|
1096
|
+
width: I,
|
|
1097
|
+
["marginLeft"]: u,
|
|
1098
|
+
"--column-width-mobile": b({
|
|
1099
|
+
stackedStyle: p,
|
|
1100
|
+
desktopStyle: I
|
|
1099
1101
|
}),
|
|
1100
|
-
"--column-margin-left-mobile":
|
|
1101
|
-
stackedStyle:
|
|
1102
|
-
desktopStyle:
|
|
1102
|
+
"--column-margin-left-mobile": b({
|
|
1103
|
+
stackedStyle: E,
|
|
1104
|
+
desktopStyle: u
|
|
1103
1105
|
}),
|
|
1104
|
-
"--column-width-tablet":
|
|
1105
|
-
stackedStyle:
|
|
1106
|
-
desktopStyle:
|
|
1106
|
+
"--column-width-tablet": f({
|
|
1107
|
+
stackedStyle: p,
|
|
1108
|
+
desktopStyle: I
|
|
1107
1109
|
}),
|
|
1108
|
-
"--column-margin-left-tablet":
|
|
1109
|
-
stackedStyle:
|
|
1110
|
-
desktopStyle:
|
|
1110
|
+
"--column-margin-left-tablet": f({
|
|
1111
|
+
stackedStyle: E,
|
|
1112
|
+
desktopStyle: u
|
|
1111
1113
|
})
|
|
1112
1114
|
};
|
|
1113
1115
|
}
|
|
1114
|
-
function
|
|
1115
|
-
var
|
|
1116
|
-
return
|
|
1117
|
-
((
|
|
1118
|
-
)[
|
|
1116
|
+
function x(m) {
|
|
1117
|
+
var I, u;
|
|
1118
|
+
return $e(
|
|
1119
|
+
((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
|
|
1120
|
+
)[m].max;
|
|
1119
1121
|
}
|
|
1120
1122
|
function R() {
|
|
1121
|
-
const
|
|
1123
|
+
const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1122
1124
|
return `
|
|
1123
|
-
@media (max-width: ${
|
|
1125
|
+
@media (max-width: ${x("medium")}px) {
|
|
1124
1126
|
.${e.builderBlock.id}-breakpoints {
|
|
1125
1127
|
flex-direction: var(--flex-dir-tablet);
|
|
1126
1128
|
align-items: stretch;
|
|
1127
1129
|
}
|
|
1128
1130
|
|
|
1129
|
-
${
|
|
1131
|
+
${m} {
|
|
1130
1132
|
width: var(--column-width-tablet) !important;
|
|
1131
1133
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1132
1134
|
}
|
|
1133
1135
|
}
|
|
1134
1136
|
|
|
1135
|
-
@media (max-width: ${
|
|
1137
|
+
@media (max-width: ${x("small")}px) {
|
|
1136
1138
|
.${e.builderBlock.id}-breakpoints {
|
|
1137
1139
|
flex-direction: var(--flex-dir);
|
|
1138
1140
|
align-items: stretch;
|
|
1139
1141
|
}
|
|
1140
1142
|
|
|
1141
|
-
${
|
|
1143
|
+
${m} {
|
|
1142
1144
|
width: var(--column-width-mobile) !important;
|
|
1143
1145
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1144
1146
|
}
|
|
1145
1147
|
},
|
|
1146
1148
|
`;
|
|
1147
1149
|
}
|
|
1148
|
-
function
|
|
1150
|
+
function C(m, y) {
|
|
1149
1151
|
return {
|
|
1150
|
-
...
|
|
1151
|
-
href:
|
|
1152
|
+
...m.link ? {
|
|
1153
|
+
href: m.link
|
|
1152
1154
|
} : {},
|
|
1153
|
-
[
|
|
1154
|
-
style:
|
|
1155
|
+
[H()]: "builder-column",
|
|
1156
|
+
style: Ne(S(y))
|
|
1155
1157
|
};
|
|
1156
1158
|
}
|
|
1157
|
-
return /* @__PURE__ */ V(
|
|
1159
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1158
1160
|
/* @__PURE__ */ V(
|
|
1159
1161
|
"div",
|
|
1160
1162
|
{
|
|
1161
|
-
className:
|
|
1162
|
-
style:
|
|
1163
|
+
className: $t((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
|
|
1164
|
+
style: g(),
|
|
1163
1165
|
children: [
|
|
1164
1166
|
/* @__PURE__ */ l(
|
|
1165
|
-
|
|
1167
|
+
Q,
|
|
1166
1168
|
{
|
|
1167
1169
|
id: "builderio-columns",
|
|
1168
1170
|
styles: R(),
|
|
1169
1171
|
nonce: e.builderContext.nonce
|
|
1170
1172
|
}
|
|
1171
1173
|
),
|
|
1172
|
-
(
|
|
1173
|
-
|
|
1174
|
+
(W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
|
|
1175
|
+
re,
|
|
1174
1176
|
{
|
|
1175
|
-
TagName: s(
|
|
1177
|
+
TagName: s(m),
|
|
1176
1178
|
actionAttributes: {},
|
|
1177
|
-
attributes:
|
|
1179
|
+
attributes: C(m, y),
|
|
1178
1180
|
children: /* @__PURE__ */ l(
|
|
1179
|
-
|
|
1181
|
+
F,
|
|
1180
1182
|
{
|
|
1181
|
-
path: `component.options.columns.${
|
|
1183
|
+
path: `component.options.columns.${y}.blocks`,
|
|
1182
1184
|
parent: e.builderBlock.id,
|
|
1183
1185
|
styleProp: {
|
|
1184
1186
|
flexGrow: "1"
|
|
@@ -1186,89 +1188,89 @@ function jt(e) {
|
|
|
1186
1188
|
context: e.builderContext,
|
|
1187
1189
|
registeredComponents: e.builderComponents,
|
|
1188
1190
|
linkComponent: e.builderLinkComponent,
|
|
1189
|
-
blocks:
|
|
1191
|
+
blocks: m.blocks
|
|
1190
1192
|
}
|
|
1191
1193
|
)
|
|
1192
1194
|
},
|
|
1193
|
-
|
|
1195
|
+
y
|
|
1194
1196
|
))
|
|
1195
1197
|
]
|
|
1196
1198
|
}
|
|
1197
1199
|
),
|
|
1198
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1200
|
+
/* @__PURE__ */ l("style", { children: `.div-3b0f6fe2 {
|
|
1199
1201
|
display: flex;
|
|
1200
1202
|
line-height: normal;
|
|
1201
1203
|
}` })
|
|
1202
1204
|
] });
|
|
1203
1205
|
}
|
|
1204
|
-
function
|
|
1206
|
+
function Lt(e) {
|
|
1205
1207
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1206
1208
|
}
|
|
1207
|
-
function
|
|
1209
|
+
function pe(e) {
|
|
1208
1210
|
return e.replace(/http(s)?:/, "");
|
|
1209
1211
|
}
|
|
1210
|
-
function
|
|
1212
|
+
function Ot(e = "", t, n) {
|
|
1211
1213
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1212
1214
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1213
1215
|
}
|
|
1214
|
-
function
|
|
1216
|
+
function Ut(e, t) {
|
|
1215
1217
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1216
1218
|
return e;
|
|
1217
1219
|
if (t === "master")
|
|
1218
|
-
return
|
|
1220
|
+
return pe(e);
|
|
1219
1221
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1220
1222
|
if (n) {
|
|
1221
1223
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1222
|
-
return
|
|
1224
|
+
return pe(`${i[0]}_${a}${o}`);
|
|
1223
1225
|
}
|
|
1224
1226
|
return null;
|
|
1225
1227
|
}
|
|
1226
|
-
function
|
|
1228
|
+
function Z(e) {
|
|
1227
1229
|
if (!e)
|
|
1228
1230
|
return e;
|
|
1229
1231
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1230
1232
|
if (e.match(/builder\.io/)) {
|
|
1231
1233
|
let n = e;
|
|
1232
1234
|
const i = Number(e.split("?width=")[1]);
|
|
1233
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1235
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1234
1236
|
}
|
|
1235
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1237
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ut(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1236
1238
|
}
|
|
1237
|
-
function
|
|
1239
|
+
function Mt(e) {
|
|
1238
1240
|
var o, a, r, s, d, c;
|
|
1239
1241
|
function t() {
|
|
1240
|
-
var
|
|
1241
|
-
const
|
|
1242
|
-
if (!
|
|
1242
|
+
var h;
|
|
1243
|
+
const b = e.image || e.src;
|
|
1244
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1243
1245
|
// images, otherwise you can supply this prop manually
|
|
1244
|
-
!(
|
|
1246
|
+
!(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
|
|
1245
1247
|
return e.srcset;
|
|
1246
1248
|
if (!e.noWebp) {
|
|
1247
|
-
if (e.srcset && ((
|
|
1249
|
+
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1248
1250
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1249
|
-
return console.debug("Removed given srcset"),
|
|
1251
|
+
return console.debug("Removed given srcset"), Z(b);
|
|
1250
1252
|
} else if (e.image && !e.srcset)
|
|
1251
|
-
return
|
|
1252
|
-
return
|
|
1253
|
+
return Z(b);
|
|
1254
|
+
return Z(b);
|
|
1253
1255
|
}
|
|
1254
1256
|
}
|
|
1255
1257
|
function n() {
|
|
1256
|
-
var
|
|
1257
|
-
return (
|
|
1258
|
+
var f;
|
|
1259
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1258
1260
|
}
|
|
1259
1261
|
function i() {
|
|
1260
|
-
const
|
|
1262
|
+
const f = {
|
|
1261
1263
|
position: "absolute",
|
|
1262
1264
|
height: "100%",
|
|
1263
1265
|
width: "100%",
|
|
1264
1266
|
left: "0px",
|
|
1265
1267
|
top: "0px"
|
|
1266
1268
|
};
|
|
1267
|
-
return e.aspectRatio ?
|
|
1269
|
+
return e.aspectRatio ? f : void 0;
|
|
1268
1270
|
}
|
|
1269
1271
|
return P(() => {
|
|
1270
|
-
}, []), /* @__PURE__ */ V(
|
|
1271
|
-
/* @__PURE__ */ V(
|
|
1272
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
1273
|
+
/* @__PURE__ */ V(w, { children: [
|
|
1272
1274
|
/* @__PURE__ */ V("picture", { children: [
|
|
1273
1275
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1274
1276
|
/* @__PURE__ */ l(
|
|
@@ -1283,7 +1285,7 @@ function _t(e) {
|
|
|
1283
1285
|
objectFit: e.backgroundSize || "cover",
|
|
1284
1286
|
...i()
|
|
1285
1287
|
},
|
|
1286
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1288
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
|
|
1287
1289
|
src: e.image,
|
|
1288
1290
|
srcSet: t(),
|
|
1289
1291
|
sizes: e.sizes
|
|
@@ -1293,23 +1295,23 @@ function _t(e) {
|
|
|
1293
1295
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1294
1296
|
"div",
|
|
1295
1297
|
{
|
|
1296
|
-
className: "builder-image-sizer div-
|
|
1298
|
+
className: "builder-image-sizer div-7a292ab8",
|
|
1297
1299
|
style: {
|
|
1298
1300
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1299
1301
|
}
|
|
1300
1302
|
}
|
|
1301
1303
|
) : null,
|
|
1302
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1303
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1304
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1305
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1304
1306
|
] }),
|
|
1305
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1307
|
+
/* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
|
|
1306
1308
|
opacity: 1;
|
|
1307
1309
|
transition: opacity 0.2s ease-in-out;
|
|
1308
|
-
}.div-
|
|
1310
|
+
}.div-7a292ab8 {
|
|
1309
1311
|
width: 100%;
|
|
1310
1312
|
pointer-events: none;
|
|
1311
1313
|
font-size: 0;
|
|
1312
|
-
}.div-
|
|
1314
|
+
}.div-7a292ab8-2 {
|
|
1313
1315
|
display: flex;
|
|
1314
1316
|
flex-direction: column;
|
|
1315
1317
|
align-items: stretch;
|
|
@@ -1321,7 +1323,7 @@ function _t(e) {
|
|
|
1321
1323
|
}` })
|
|
1322
1324
|
] });
|
|
1323
1325
|
}
|
|
1324
|
-
function
|
|
1326
|
+
function jt(e) {
|
|
1325
1327
|
return /* @__PURE__ */ l(
|
|
1326
1328
|
"section",
|
|
1327
1329
|
{
|
|
@@ -1342,7 +1344,7 @@ function zt(e) {
|
|
|
1342
1344
|
}
|
|
1343
1345
|
);
|
|
1344
1346
|
}
|
|
1345
|
-
const
|
|
1347
|
+
const ee = {
|
|
1346
1348
|
"@type": "@builder.io/sdk:Element",
|
|
1347
1349
|
layerName: "Accordion item title",
|
|
1348
1350
|
responsiveStyles: {
|
|
@@ -1371,7 +1373,7 @@ const oe = {
|
|
|
1371
1373
|
}
|
|
1372
1374
|
}
|
|
1373
1375
|
}]
|
|
1374
|
-
},
|
|
1376
|
+
}, te = {
|
|
1375
1377
|
"@type": "@builder.io/sdk:Element",
|
|
1376
1378
|
layerName: "Accordion item detail",
|
|
1377
1379
|
responsiveStyles: {
|
|
@@ -1402,7 +1404,7 @@ const oe = {
|
|
|
1402
1404
|
}
|
|
1403
1405
|
}
|
|
1404
1406
|
}]
|
|
1405
|
-
},
|
|
1407
|
+
}, Ht = {
|
|
1406
1408
|
name: "Builder:Accordion",
|
|
1407
1409
|
canHaveChildren: !0,
|
|
1408
1410
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1419,19 +1421,19 @@ const oe = {
|
|
|
1419
1421
|
name: "title",
|
|
1420
1422
|
type: "uiBlocks",
|
|
1421
1423
|
hideFromUI: !0,
|
|
1422
|
-
defaultValue: [
|
|
1424
|
+
defaultValue: [ee]
|
|
1423
1425
|
}, {
|
|
1424
1426
|
name: "detail",
|
|
1425
1427
|
type: "uiBlocks",
|
|
1426
1428
|
hideFromUI: !0,
|
|
1427
|
-
defaultValue: [
|
|
1429
|
+
defaultValue: [te]
|
|
1428
1430
|
}],
|
|
1429
1431
|
defaultValue: [{
|
|
1430
|
-
title: [
|
|
1431
|
-
detail: [
|
|
1432
|
+
title: [ee],
|
|
1433
|
+
detail: [te]
|
|
1432
1434
|
}, {
|
|
1433
|
-
title: [
|
|
1434
|
-
detail: [
|
|
1435
|
+
title: [ee],
|
|
1436
|
+
detail: [te]
|
|
1435
1437
|
}],
|
|
1436
1438
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1437
1439
|
}, {
|
|
@@ -1466,9 +1468,9 @@ const oe = {
|
|
|
1466
1468
|
builderComponents: !0,
|
|
1467
1469
|
builderLinkComponent: !0
|
|
1468
1470
|
}
|
|
1469
|
-
},
|
|
1470
|
-
function
|
|
1471
|
-
var
|
|
1471
|
+
}, ye = (e) => e.toString();
|
|
1472
|
+
function Kt(e) {
|
|
1473
|
+
var b;
|
|
1472
1474
|
const [t, n] = T(() => []);
|
|
1473
1475
|
function i() {
|
|
1474
1476
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1486,7 +1488,7 @@ function Yt(e) {
|
|
|
1486
1488
|
};
|
|
1487
1489
|
}
|
|
1488
1490
|
function a() {
|
|
1489
|
-
const
|
|
1491
|
+
const v = {
|
|
1490
1492
|
...{
|
|
1491
1493
|
display: "flex",
|
|
1492
1494
|
flexDirection: "column"
|
|
@@ -1495,73 +1497,73 @@ function Yt(e) {
|
|
|
1495
1497
|
cursor: "pointer"
|
|
1496
1498
|
};
|
|
1497
1499
|
return Object.fromEntries(
|
|
1498
|
-
Object.entries(
|
|
1500
|
+
Object.entries(v).filter(([g, S]) => S !== void 0)
|
|
1499
1501
|
);
|
|
1500
1502
|
}
|
|
1501
|
-
function r(
|
|
1502
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1503
|
+
function r(h) {
|
|
1504
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
|
|
1503
1505
|
}
|
|
1504
|
-
function s(
|
|
1505
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1506
|
+
function s(h) {
|
|
1507
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
|
|
1506
1508
|
}
|
|
1507
1509
|
function d() {
|
|
1508
|
-
let
|
|
1510
|
+
let h = null;
|
|
1509
1511
|
if (e.grid && t.length && document) {
|
|
1510
|
-
const
|
|
1511
|
-
let
|
|
1512
|
-
`.builder-accordion-title[data-index="${
|
|
1512
|
+
const g = t[0];
|
|
1513
|
+
let x = document.querySelector(
|
|
1514
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1513
1515
|
);
|
|
1514
|
-
if (
|
|
1515
|
-
let R =
|
|
1516
|
-
for (;
|
|
1517
|
-
if (
|
|
1518
|
-
if (
|
|
1516
|
+
if (h = g, x) {
|
|
1517
|
+
let R = x.getBoundingClientRect();
|
|
1518
|
+
for (; x = x && x.nextElementSibling; )
|
|
1519
|
+
if (x) {
|
|
1520
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1519
1521
|
continue;
|
|
1520
|
-
const
|
|
1521
|
-
if (
|
|
1522
|
-
const
|
|
1523
|
-
|
|
1522
|
+
const C = x.getBoundingClientRect();
|
|
1523
|
+
if (C.left > R.left) {
|
|
1524
|
+
const k = parseInt(
|
|
1525
|
+
x.getAttribute("data-index") || "",
|
|
1524
1526
|
10
|
|
1525
1527
|
);
|
|
1526
|
-
isNaN(
|
|
1528
|
+
isNaN(k) || (R = C, h = k);
|
|
1527
1529
|
} else
|
|
1528
1530
|
break;
|
|
1529
1531
|
}
|
|
1530
1532
|
}
|
|
1531
1533
|
}
|
|
1532
|
-
return typeof
|
|
1534
|
+
return typeof h == "number" && (h = h + 1), h;
|
|
1533
1535
|
}
|
|
1534
1536
|
function c() {
|
|
1535
|
-
const
|
|
1537
|
+
const h = {
|
|
1536
1538
|
order: typeof d() == "number" ? d() : void 0,
|
|
1537
1539
|
...e.grid && {
|
|
1538
1540
|
width: "100%"
|
|
1539
1541
|
}
|
|
1540
1542
|
};
|
|
1541
1543
|
return Object.fromEntries(
|
|
1542
|
-
Object.entries(
|
|
1544
|
+
Object.entries(h).filter(([v, g]) => g !== void 0)
|
|
1543
1545
|
);
|
|
1544
1546
|
}
|
|
1545
|
-
function
|
|
1546
|
-
t.includes(
|
|
1547
|
+
function f(h) {
|
|
1548
|
+
t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
|
|
1547
1549
|
}
|
|
1548
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (
|
|
1550
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
|
|
1549
1551
|
/* @__PURE__ */ l(
|
|
1550
1552
|
"div",
|
|
1551
1553
|
{
|
|
1552
|
-
className: r(
|
|
1554
|
+
className: r(v),
|
|
1553
1555
|
style: {
|
|
1554
1556
|
...a(),
|
|
1555
1557
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1556
|
-
order: d() !== null ?
|
|
1558
|
+
order: d() !== null ? ye(v) : ye(v + 1)
|
|
1557
1559
|
},
|
|
1558
|
-
"data-index":
|
|
1559
|
-
onClick: (
|
|
1560
|
+
"data-index": v,
|
|
1561
|
+
onClick: (g) => f(v),
|
|
1560
1562
|
children: /* @__PURE__ */ l(
|
|
1561
|
-
|
|
1563
|
+
F,
|
|
1562
1564
|
{
|
|
1563
|
-
blocks:
|
|
1564
|
-
path: `items.${
|
|
1565
|
+
blocks: h.title,
|
|
1566
|
+
path: `items.${v}.title`,
|
|
1565
1567
|
parent: e.builderBlock.id,
|
|
1566
1568
|
context: e.builderContext,
|
|
1567
1569
|
registeredComponents: e.builderComponents,
|
|
@@ -1570,16 +1572,16 @@ function Yt(e) {
|
|
|
1570
1572
|
)
|
|
1571
1573
|
}
|
|
1572
1574
|
),
|
|
1573
|
-
t.includes(
|
|
1575
|
+
t.includes(v) ? /* @__PURE__ */ l(
|
|
1574
1576
|
"div",
|
|
1575
1577
|
{
|
|
1576
|
-
className: s(
|
|
1578
|
+
className: s(v),
|
|
1577
1579
|
style: c(),
|
|
1578
1580
|
children: /* @__PURE__ */ l(
|
|
1579
|
-
|
|
1581
|
+
F,
|
|
1580
1582
|
{
|
|
1581
|
-
blocks:
|
|
1582
|
-
path: `items.${
|
|
1583
|
+
blocks: h.detail,
|
|
1584
|
+
path: `items.${v}.detail`,
|
|
1583
1585
|
parent: e.builderBlock.id,
|
|
1584
1586
|
context: e.builderContext,
|
|
1585
1587
|
registeredComponents: e.builderComponents,
|
|
@@ -1590,7 +1592,7 @@ function Yt(e) {
|
|
|
1590
1592
|
) : null
|
|
1591
1593
|
] })) });
|
|
1592
1594
|
}
|
|
1593
|
-
const
|
|
1595
|
+
const qt = {
|
|
1594
1596
|
name: "Core:Button",
|
|
1595
1597
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1596
1598
|
defaultStyles: {
|
|
@@ -1626,7 +1628,7 @@ const Gt = {
|
|
|
1626
1628
|
shouldReceiveBuilderProps: {
|
|
1627
1629
|
builderLinkComponent: !0
|
|
1628
1630
|
}
|
|
1629
|
-
},
|
|
1631
|
+
}, _t = {
|
|
1630
1632
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1631
1633
|
name: "Columns",
|
|
1632
1634
|
isRSC: !0,
|
|
@@ -1833,13 +1835,13 @@ const Gt = {
|
|
|
1833
1835
|
builderComponents: !0,
|
|
1834
1836
|
builderLinkComponent: !0
|
|
1835
1837
|
}
|
|
1836
|
-
},
|
|
1838
|
+
}, zt = {
|
|
1837
1839
|
name: "Fragment",
|
|
1838
1840
|
static: !0,
|
|
1839
1841
|
hidden: !0,
|
|
1840
1842
|
canHaveChildren: !0,
|
|
1841
1843
|
noWrap: !0
|
|
1842
|
-
},
|
|
1844
|
+
}, Jt = {
|
|
1843
1845
|
name: "Image",
|
|
1844
1846
|
static: !0,
|
|
1845
1847
|
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",
|
|
@@ -1861,14 +1863,14 @@ const Gt = {
|
|
|
1861
1863
|
e.delete("srcset"), e.delete("noWebp");
|
|
1862
1864
|
function n(r, s = 6e4) {
|
|
1863
1865
|
return new Promise((d, c) => {
|
|
1864
|
-
const
|
|
1865
|
-
let
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
},
|
|
1869
|
-
console.warn("Image load failed",
|
|
1870
|
-
}),
|
|
1871
|
-
|
|
1866
|
+
const f = document.createElement("img");
|
|
1867
|
+
let b = !1;
|
|
1868
|
+
f.onload = () => {
|
|
1869
|
+
b = !0, d(f);
|
|
1870
|
+
}, f.addEventListener("error", (h) => {
|
|
1871
|
+
console.warn("Image load failed", h.error), c(h.error);
|
|
1872
|
+
}), f.src = r, setTimeout(() => {
|
|
1873
|
+
b || c(new Error("Image load timed out"));
|
|
1872
1874
|
}, s);
|
|
1873
1875
|
});
|
|
1874
1876
|
}
|
|
@@ -1947,7 +1949,7 @@ const Gt = {
|
|
|
1947
1949
|
shouldReceiveBuilderProps: {
|
|
1948
1950
|
builderBlock: !0
|
|
1949
1951
|
}
|
|
1950
|
-
},
|
|
1952
|
+
}, Yt = {
|
|
1951
1953
|
name: "Core:Section",
|
|
1952
1954
|
static: !0,
|
|
1953
1955
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1986,7 +1988,7 @@ const Gt = {
|
|
|
1986
1988
|
}
|
|
1987
1989
|
}
|
|
1988
1990
|
}]
|
|
1989
|
-
},
|
|
1991
|
+
}, Gt = {
|
|
1990
1992
|
name: "Slot",
|
|
1991
1993
|
isRSC: !0,
|
|
1992
1994
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2004,7 +2006,7 @@ const Gt = {
|
|
|
2004
2006
|
builderComponents: !0
|
|
2005
2007
|
}
|
|
2006
2008
|
};
|
|
2007
|
-
function
|
|
2009
|
+
function Qt(e) {
|
|
2008
2010
|
var t, n, i;
|
|
2009
2011
|
return /* @__PURE__ */ l(
|
|
2010
2012
|
"div",
|
|
@@ -2016,7 +2018,7 @@ function nn(e) {
|
|
|
2016
2018
|
"builder-slot": e.name
|
|
2017
2019
|
},
|
|
2018
2020
|
children: /* @__PURE__ */ l(
|
|
2019
|
-
|
|
2021
|
+
F,
|
|
2020
2022
|
{
|
|
2021
2023
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2022
2024
|
path: `symbol.data.${e.name}`,
|
|
@@ -2028,7 +2030,7 @@ function nn(e) {
|
|
|
2028
2030
|
}
|
|
2029
2031
|
);
|
|
2030
2032
|
}
|
|
2031
|
-
const
|
|
2033
|
+
const Xt = {
|
|
2032
2034
|
name: "Symbol",
|
|
2033
2035
|
noWrap: !0,
|
|
2034
2036
|
static: !0,
|
|
@@ -2067,7 +2069,7 @@ const on = {
|
|
|
2067
2069
|
builderComponents: !0,
|
|
2068
2070
|
builderLinkComponent: !0
|
|
2069
2071
|
}
|
|
2070
|
-
},
|
|
2072
|
+
}, ne = {
|
|
2071
2073
|
"@type": "@builder.io/sdk:Element",
|
|
2072
2074
|
responsiveStyles: {
|
|
2073
2075
|
large: {
|
|
@@ -2089,7 +2091,7 @@ const on = {
|
|
|
2089
2091
|
text: "New tab"
|
|
2090
2092
|
}
|
|
2091
2093
|
}
|
|
2092
|
-
},
|
|
2094
|
+
}, ie = {
|
|
2093
2095
|
"@type": "@builder.io/sdk:Element",
|
|
2094
2096
|
responsiveStyles: {
|
|
2095
2097
|
large: {
|
|
@@ -2105,7 +2107,7 @@ const on = {
|
|
|
2105
2107
|
text: "New tab content "
|
|
2106
2108
|
}
|
|
2107
2109
|
}
|
|
2108
|
-
},
|
|
2110
|
+
}, Zt = {
|
|
2109
2111
|
name: "Builder: Tabs",
|
|
2110
2112
|
inputs: [{
|
|
2111
2113
|
name: "tabs",
|
|
@@ -2115,16 +2117,16 @@ const on = {
|
|
|
2115
2117
|
name: "label",
|
|
2116
2118
|
type: "uiBlocks",
|
|
2117
2119
|
hideFromUI: !0,
|
|
2118
|
-
defaultValue: [
|
|
2120
|
+
defaultValue: [ne]
|
|
2119
2121
|
}, {
|
|
2120
2122
|
name: "content",
|
|
2121
2123
|
type: "uiBlocks",
|
|
2122
2124
|
hideFromUI: !0,
|
|
2123
|
-
defaultValue: [
|
|
2125
|
+
defaultValue: [ie]
|
|
2124
2126
|
}],
|
|
2125
2127
|
defaultValue: [{
|
|
2126
2128
|
label: [{
|
|
2127
|
-
...
|
|
2129
|
+
...ne,
|
|
2128
2130
|
component: {
|
|
2129
2131
|
name: "Text",
|
|
2130
2132
|
options: {
|
|
@@ -2133,7 +2135,7 @@ const on = {
|
|
|
2133
2135
|
}
|
|
2134
2136
|
}],
|
|
2135
2137
|
content: [{
|
|
2136
|
-
...
|
|
2138
|
+
...ie,
|
|
2137
2139
|
component: {
|
|
2138
2140
|
name: "Text",
|
|
2139
2141
|
options: {
|
|
@@ -2143,7 +2145,7 @@ const on = {
|
|
|
2143
2145
|
}]
|
|
2144
2146
|
}, {
|
|
2145
2147
|
label: [{
|
|
2146
|
-
...
|
|
2148
|
+
...ne,
|
|
2147
2149
|
component: {
|
|
2148
2150
|
name: "Text",
|
|
2149
2151
|
options: {
|
|
@@ -2152,7 +2154,7 @@ const on = {
|
|
|
2152
2154
|
}
|
|
2153
2155
|
}],
|
|
2154
2156
|
content: [{
|
|
2155
|
-
...
|
|
2157
|
+
...ie,
|
|
2156
2158
|
component: {
|
|
2157
2159
|
name: "Text",
|
|
2158
2160
|
options: {
|
|
@@ -2209,7 +2211,7 @@ const on = {
|
|
|
2209
2211
|
builderLinkComponent: !0
|
|
2210
2212
|
}
|
|
2211
2213
|
};
|
|
2212
|
-
function
|
|
2214
|
+
function en(e) {
|
|
2213
2215
|
var a;
|
|
2214
2216
|
const [t, n] = T(
|
|
2215
2217
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2240,7 +2242,7 @@ function rn(e) {
|
|
|
2240
2242
|
},
|
|
2241
2243
|
onClick: (d) => o(s),
|
|
2242
2244
|
children: /* @__PURE__ */ l(
|
|
2243
|
-
|
|
2245
|
+
F,
|
|
2244
2246
|
{
|
|
2245
2247
|
parent: e.builderBlock.id,
|
|
2246
2248
|
path: `component.options.tabs.${s}.label`,
|
|
@@ -2256,7 +2258,7 @@ function rn(e) {
|
|
|
2256
2258
|
}
|
|
2257
2259
|
),
|
|
2258
2260
|
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2259
|
-
|
|
2261
|
+
F,
|
|
2260
2262
|
{
|
|
2261
2263
|
parent: e.builderBlock.id,
|
|
2262
2264
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2268,7 +2270,7 @@ function rn(e) {
|
|
|
2268
2270
|
) }) : null
|
|
2269
2271
|
] });
|
|
2270
2272
|
}
|
|
2271
|
-
const
|
|
2273
|
+
const tn = {
|
|
2272
2274
|
shouldReceiveBuilderProps: {
|
|
2273
2275
|
builderBlock: !1,
|
|
2274
2276
|
builderContext: !0
|
|
@@ -2291,7 +2293,7 @@ const ln = {
|
|
|
2291
2293
|
textAlign: "center"
|
|
2292
2294
|
}
|
|
2293
2295
|
};
|
|
2294
|
-
function
|
|
2296
|
+
function nn(e) {
|
|
2295
2297
|
function t() {
|
|
2296
2298
|
var s;
|
|
2297
2299
|
const n = e.builderContext, {
|
|
@@ -2302,7 +2304,7 @@ function sn(e) {
|
|
|
2302
2304
|
} = n;
|
|
2303
2305
|
return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2304
2306
|
/{{([^}]+)}}/g,
|
|
2305
|
-
(d, c) =>
|
|
2307
|
+
(d, c) => M({
|
|
2306
2308
|
code: c,
|
|
2307
2309
|
context: i,
|
|
2308
2310
|
localState: o,
|
|
@@ -2323,7 +2325,7 @@ function sn(e) {
|
|
|
2323
2325
|
}
|
|
2324
2326
|
);
|
|
2325
2327
|
}
|
|
2326
|
-
const
|
|
2328
|
+
const on = {
|
|
2327
2329
|
name: "Custom Code",
|
|
2328
2330
|
static: !0,
|
|
2329
2331
|
requiredPermissions: ["editCode"],
|
|
@@ -2346,8 +2348,8 @@ const cn = {
|
|
|
2346
2348
|
advanced: !0
|
|
2347
2349
|
}]
|
|
2348
2350
|
};
|
|
2349
|
-
function
|
|
2350
|
-
const t =
|
|
2351
|
+
function an(e) {
|
|
2352
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2351
2353
|
return P(() => {
|
|
2352
2354
|
var s;
|
|
2353
2355
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2359,8 +2361,8 @@ function dn(e) {
|
|
|
2359
2361
|
if (n.includes(c.src))
|
|
2360
2362
|
continue;
|
|
2361
2363
|
n.push(c.src);
|
|
2362
|
-
const
|
|
2363
|
-
|
|
2364
|
+
const f = document.createElement("script");
|
|
2365
|
+
f.async = !0, f.src = c.src, document.head.appendChild(f);
|
|
2364
2366
|
} else if (!c.type || [
|
|
2365
2367
|
"text/javascript",
|
|
2366
2368
|
"application/javascript",
|
|
@@ -2370,8 +2372,8 @@ function dn(e) {
|
|
|
2370
2372
|
continue;
|
|
2371
2373
|
try {
|
|
2372
2374
|
o.push(c.innerText), new Function(c.innerText)();
|
|
2373
|
-
} catch (
|
|
2374
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2375
|
+
} catch (f) {
|
|
2376
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
2375
2377
|
}
|
|
2376
2378
|
}
|
|
2377
2379
|
}
|
|
@@ -2384,7 +2386,7 @@ function dn(e) {
|
|
|
2384
2386
|
}
|
|
2385
2387
|
);
|
|
2386
2388
|
}
|
|
2387
|
-
const
|
|
2389
|
+
const rn = {
|
|
2388
2390
|
name: "Embed",
|
|
2389
2391
|
static: !0,
|
|
2390
2392
|
inputs: [{
|
|
@@ -2399,24 +2401,24 @@ const un = {
|
|
|
2399
2401
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2400
2402
|
hideFromUI: !0
|
|
2401
2403
|
}]
|
|
2402
|
-
},
|
|
2403
|
-
function
|
|
2404
|
-
const t =
|
|
2404
|
+
}, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
|
|
2405
|
+
function cn(e) {
|
|
2406
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2405
2407
|
function d() {
|
|
2406
2408
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2407
2409
|
return;
|
|
2408
2410
|
const c = t.current.getElementsByTagName("script");
|
|
2409
|
-
for (let
|
|
2410
|
-
const
|
|
2411
|
-
if (
|
|
2412
|
-
n.push(
|
|
2413
|
-
const
|
|
2414
|
-
|
|
2415
|
-
} else if (
|
|
2411
|
+
for (let f = 0; f < c.length; f++) {
|
|
2412
|
+
const b = c[f];
|
|
2413
|
+
if (b.src && !n.includes(b.src)) {
|
|
2414
|
+
n.push(b.src);
|
|
2415
|
+
const h = document.createElement("script");
|
|
2416
|
+
h.async = !0, h.src = b.src, document.head.appendChild(h);
|
|
2417
|
+
} else if (sn(b) && !o.includes(b.innerText))
|
|
2416
2418
|
try {
|
|
2417
|
-
o.push(
|
|
2418
|
-
} catch (
|
|
2419
|
-
console.warn("`Embed`: Error running script:",
|
|
2419
|
+
o.push(b.innerText), new Function(b.innerText)();
|
|
2420
|
+
} catch (h) {
|
|
2421
|
+
console.warn("`Embed`: Error running script:", h);
|
|
2420
2422
|
}
|
|
2421
2423
|
}
|
|
2422
2424
|
}
|
|
@@ -2431,7 +2433,7 @@ function hn(e) {
|
|
|
2431
2433
|
}
|
|
2432
2434
|
);
|
|
2433
2435
|
}
|
|
2434
|
-
const
|
|
2436
|
+
const dn = {
|
|
2435
2437
|
name: "Form:Form",
|
|
2436
2438
|
// editableTags: ['builder-form-error']
|
|
2437
2439
|
defaults: {
|
|
@@ -2668,123 +2670,123 @@ const gn = {
|
|
|
2668
2670
|
builderComponents: !0,
|
|
2669
2671
|
builderLinkComponent: !0
|
|
2670
2672
|
}
|
|
2671
|
-
},
|
|
2673
|
+
}, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
|
|
2672
2674
|
const e = process.env.NODE_ENV || "production";
|
|
2673
|
-
return
|
|
2674
|
-
},
|
|
2675
|
+
return un.includes(e) ? e : "production";
|
|
2676
|
+
}, fn = (e, t, n) => {
|
|
2675
2677
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2676
2678
|
return i === void 0 || i === e ? n : i;
|
|
2677
2679
|
};
|
|
2678
|
-
function
|
|
2679
|
-
var
|
|
2680
|
-
const t =
|
|
2681
|
-
function d(
|
|
2682
|
-
var
|
|
2683
|
-
const
|
|
2680
|
+
function hn(e) {
|
|
2681
|
+
var b, h;
|
|
2682
|
+
const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2683
|
+
function d(v) {
|
|
2684
|
+
var S, x;
|
|
2685
|
+
const g = {
|
|
2684
2686
|
...e.builderContext.rootState,
|
|
2685
|
-
...
|
|
2687
|
+
...v
|
|
2686
2688
|
};
|
|
2687
|
-
e.builderContext.rootSetState ? (
|
|
2689
|
+
e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
|
|
2688
2690
|
}
|
|
2689
2691
|
function c() {
|
|
2690
|
-
return
|
|
2692
|
+
return N() && e.previewState || n;
|
|
2691
2693
|
}
|
|
2692
|
-
function
|
|
2693
|
-
var
|
|
2694
|
-
const
|
|
2694
|
+
function f(v) {
|
|
2695
|
+
var S;
|
|
2696
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2695
2697
|
if (e.sendSubmissionsTo === "zapier")
|
|
2696
|
-
|
|
2697
|
-
else if (
|
|
2698
|
+
v.preventDefault();
|
|
2699
|
+
else if (g) {
|
|
2698
2700
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2699
|
-
|
|
2701
|
+
v.preventDefault();
|
|
2700
2702
|
return;
|
|
2701
2703
|
}
|
|
2702
|
-
|
|
2703
|
-
const
|
|
2704
|
-
let
|
|
2705
|
-
const
|
|
2706
|
-
let
|
|
2707
|
-
const
|
|
2708
|
-
if (
|
|
2709
|
-
if (
|
|
2710
|
-
if (
|
|
2711
|
-
return
|
|
2712
|
-
key:
|
|
2713
|
-
value:
|
|
2704
|
+
v.preventDefault();
|
|
2705
|
+
const x = v.currentTarget || v.target, R = e.customHeaders || {};
|
|
2706
|
+
let C;
|
|
2707
|
+
const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2708
|
+
let p;
|
|
2709
|
+
const E = u.name;
|
|
2710
|
+
if (u instanceof HTMLInputElement)
|
|
2711
|
+
if (u.type === "radio") {
|
|
2712
|
+
if (u.checked)
|
|
2713
|
+
return p = u.name, {
|
|
2714
|
+
key: E,
|
|
2715
|
+
value: p
|
|
2714
2716
|
};
|
|
2715
|
-
} else if (
|
|
2716
|
-
|
|
2717
|
-
else if (
|
|
2718
|
-
const
|
|
2719
|
-
isNaN(
|
|
2717
|
+
} else if (u.type === "checkbox")
|
|
2718
|
+
p = u.checked;
|
|
2719
|
+
else if (u.type === "number" || u.type === "range") {
|
|
2720
|
+
const B = u.valueAsNumber;
|
|
2721
|
+
isNaN(B) || (p = B);
|
|
2720
2722
|
} else
|
|
2721
|
-
|
|
2723
|
+
u.type === "file" ? p = u.files : p = u.value;
|
|
2722
2724
|
else
|
|
2723
|
-
|
|
2725
|
+
p = u.value;
|
|
2724
2726
|
return {
|
|
2725
|
-
key:
|
|
2726
|
-
value:
|
|
2727
|
+
key: E,
|
|
2728
|
+
value: p
|
|
2727
2729
|
};
|
|
2728
2730
|
});
|
|
2729
|
-
let
|
|
2730
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2731
|
-
(
|
|
2732
|
-
}),
|
|
2733
|
-
|
|
2731
|
+
let m = e.contentType;
|
|
2732
|
+
if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(W).forEach(({ value: u }) => {
|
|
2733
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
|
|
2734
|
+
}), m !== "application/json")
|
|
2735
|
+
C = k;
|
|
2734
2736
|
else {
|
|
2735
|
-
const
|
|
2736
|
-
Array.from(
|
|
2737
|
-
|
|
2738
|
-
}),
|
|
2737
|
+
const u = {};
|
|
2738
|
+
Array.from(W).forEach(({ value: p, key: E }) => {
|
|
2739
|
+
Be(u, E, p);
|
|
2740
|
+
}), C = JSON.stringify(u);
|
|
2739
2741
|
}
|
|
2740
|
-
|
|
2741
|
-
const
|
|
2742
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2742
|
+
m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (R["content-type"] = m));
|
|
2743
|
+
const y = new CustomEvent("presubmit", { detail: { body: C } });
|
|
2744
|
+
if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
|
|
2743
2745
|
return;
|
|
2744
2746
|
i("sending");
|
|
2745
|
-
const
|
|
2747
|
+
const I = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2746
2748
|
e.sendSubmissionsToEmail || ""
|
|
2747
2749
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2748
2750
|
fetch(
|
|
2749
|
-
e.sendSubmissionsTo === "email" ?
|
|
2750
|
-
{ body:
|
|
2751
|
+
e.sendSubmissionsTo === "email" ? I : e.action,
|
|
2752
|
+
{ body: C, headers: R, method: e.method || "post" }
|
|
2751
2753
|
).then(
|
|
2752
|
-
async (
|
|
2753
|
-
let
|
|
2754
|
-
const
|
|
2755
|
-
if (
|
|
2756
|
-
let
|
|
2757
|
-
|
|
2754
|
+
async (u) => {
|
|
2755
|
+
let p;
|
|
2756
|
+
const E = u.headers.get("content-type");
|
|
2757
|
+
if (E && E.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2758
|
+
let B = fn(p, e.errorMessagePath);
|
|
2759
|
+
B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
|
|
2758
2760
|
}
|
|
2759
|
-
if (a(
|
|
2760
|
-
const
|
|
2761
|
-
detail: { res:
|
|
2761
|
+
if (a(p), i(u.ok ? "success" : "error"), u.ok) {
|
|
2762
|
+
const B = new CustomEvent("submit:success", {
|
|
2763
|
+
detail: { res: u, body: p }
|
|
2762
2764
|
});
|
|
2763
2765
|
if (t.current) {
|
|
2764
|
-
if (t.current.dispatchEvent(
|
|
2766
|
+
if (t.current.dispatchEvent(B), B.defaultPrevented)
|
|
2765
2767
|
return;
|
|
2766
2768
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2767
2769
|
}
|
|
2768
2770
|
if (e.successUrl)
|
|
2769
2771
|
if (t.current) {
|
|
2770
|
-
const
|
|
2772
|
+
const A = new CustomEvent("route", {
|
|
2771
2773
|
detail: { url: e.successUrl }
|
|
2772
2774
|
});
|
|
2773
|
-
t.current.dispatchEvent(
|
|
2775
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
2774
2776
|
} else
|
|
2775
2777
|
location.href = e.successUrl;
|
|
2776
2778
|
}
|
|
2777
2779
|
},
|
|
2778
|
-
(
|
|
2779
|
-
const
|
|
2780
|
-
detail: { error:
|
|
2780
|
+
(u) => {
|
|
2781
|
+
const p = new CustomEvent("submit:error", {
|
|
2782
|
+
detail: { error: u }
|
|
2781
2783
|
});
|
|
2782
|
-
t.current && (t.current.dispatchEvent(
|
|
2784
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(u), i("error"));
|
|
2783
2785
|
}
|
|
2784
2786
|
);
|
|
2785
2787
|
}
|
|
2786
2788
|
}
|
|
2787
|
-
return /* @__PURE__ */ V(
|
|
2789
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
2788
2790
|
" ",
|
|
2789
2791
|
/* @__PURE__ */ V(
|
|
2790
2792
|
"form",
|
|
@@ -2794,21 +2796,21 @@ function xn(e) {
|
|
|
2794
2796
|
action: !e.sendWithJs && e.action,
|
|
2795
2797
|
method: e.method,
|
|
2796
2798
|
name: e.name,
|
|
2797
|
-
onSubmit: (
|
|
2799
|
+
onSubmit: (v) => f(v),
|
|
2798
2800
|
...e.attributes,
|
|
2799
2801
|
children: [
|
|
2800
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2801
|
-
|
|
2802
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (h = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : h.map((v, g) => /* @__PURE__ */ l(
|
|
2803
|
+
K,
|
|
2802
2804
|
{
|
|
2803
|
-
block:
|
|
2805
|
+
block: v,
|
|
2804
2806
|
context: e.builderContext,
|
|
2805
2807
|
registeredComponents: e.builderComponents,
|
|
2806
2808
|
linkComponent: e.builderLinkComponent
|
|
2807
2809
|
},
|
|
2808
|
-
`form-block-${
|
|
2810
|
+
`form-block-${g}`
|
|
2809
2811
|
)) }) : null,
|
|
2810
2812
|
c() === "error" ? /* @__PURE__ */ l(
|
|
2811
|
-
|
|
2813
|
+
F,
|
|
2812
2814
|
{
|
|
2813
2815
|
path: "errorMessage",
|
|
2814
2816
|
blocks: e.errorMessage,
|
|
@@ -2816,7 +2818,7 @@ function xn(e) {
|
|
|
2816
2818
|
}
|
|
2817
2819
|
) : null,
|
|
2818
2820
|
c() === "sending" ? /* @__PURE__ */ l(
|
|
2819
|
-
|
|
2821
|
+
F,
|
|
2820
2822
|
{
|
|
2821
2823
|
path: "sendingMessage",
|
|
2822
2824
|
blocks: e.sendingMessage,
|
|
@@ -2825,7 +2827,7 @@ function xn(e) {
|
|
|
2825
2827
|
) : null,
|
|
2826
2828
|
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2827
2829
|
c() === "success" ? /* @__PURE__ */ l(
|
|
2828
|
-
|
|
2830
|
+
F,
|
|
2829
2831
|
{
|
|
2830
2832
|
path: "successMessage",
|
|
2831
2833
|
blocks: e.successMessage,
|
|
@@ -2840,7 +2842,7 @@ function xn(e) {
|
|
|
2840
2842
|
" "
|
|
2841
2843
|
] });
|
|
2842
2844
|
}
|
|
2843
|
-
const
|
|
2845
|
+
const gn = {
|
|
2844
2846
|
name: "Form:Input",
|
|
2845
2847
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2846
2848
|
inputs: [
|
|
@@ -2892,12 +2894,12 @@ const vn = {
|
|
|
2892
2894
|
borderColor: "#ccc"
|
|
2893
2895
|
}
|
|
2894
2896
|
};
|
|
2895
|
-
function
|
|
2896
|
-
return /* @__PURE__ */
|
|
2897
|
+
function bn(e) {
|
|
2898
|
+
return /* @__PURE__ */ we(
|
|
2897
2899
|
"input",
|
|
2898
2900
|
{
|
|
2899
2901
|
...e.attributes,
|
|
2900
|
-
key:
|
|
2902
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2901
2903
|
placeholder: e.placeholder,
|
|
2902
2904
|
type: e.type,
|
|
2903
2905
|
name: e.name,
|
|
@@ -2907,7 +2909,7 @@ function Sn(e) {
|
|
|
2907
2909
|
}
|
|
2908
2910
|
);
|
|
2909
2911
|
}
|
|
2910
|
-
const
|
|
2912
|
+
const pn = {
|
|
2911
2913
|
name: "Form:Select",
|
|
2912
2914
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2913
2915
|
defaultStyles: {
|
|
@@ -2950,14 +2952,14 @@ const kn = {
|
|
|
2950
2952
|
static: !0,
|
|
2951
2953
|
noWrap: !0
|
|
2952
2954
|
};
|
|
2953
|
-
function
|
|
2955
|
+
function yn(e) {
|
|
2954
2956
|
var t;
|
|
2955
|
-
return /* @__PURE__ */
|
|
2957
|
+
return /* @__PURE__ */ we(
|
|
2956
2958
|
"select",
|
|
2957
2959
|
{
|
|
2958
2960
|
...e.attributes,
|
|
2959
2961
|
value: e.value,
|
|
2960
|
-
key:
|
|
2962
|
+
key: N() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2961
2963
|
defaultValue: e.defaultValue,
|
|
2962
2964
|
name: e.name,
|
|
2963
2965
|
required: e.required
|
|
@@ -2965,7 +2967,7 @@ function Cn(e) {
|
|
|
2965
2967
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2966
2968
|
);
|
|
2967
2969
|
}
|
|
2968
|
-
const
|
|
2970
|
+
const xn = {
|
|
2969
2971
|
name: "Form:SubmitButton",
|
|
2970
2972
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2971
2973
|
defaultStyles: {
|
|
@@ -2991,10 +2993,10 @@ const Tn = {
|
|
|
2991
2993
|
// TODO: defaultChildren
|
|
2992
2994
|
// canHaveChildren: true,
|
|
2993
2995
|
};
|
|
2994
|
-
function
|
|
2996
|
+
function vn(e) {
|
|
2995
2997
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2996
2998
|
}
|
|
2997
|
-
const
|
|
2999
|
+
const Sn = {
|
|
2998
3000
|
name: "Form:TextArea",
|
|
2999
3001
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3000
3002
|
inputs: [{
|
|
@@ -3031,7 +3033,7 @@ const wn = {
|
|
|
3031
3033
|
static: !0,
|
|
3032
3034
|
noWrap: !0
|
|
3033
3035
|
};
|
|
3034
|
-
function
|
|
3036
|
+
function kn(e) {
|
|
3035
3037
|
return /* @__PURE__ */ l(
|
|
3036
3038
|
"textarea",
|
|
3037
3039
|
{
|
|
@@ -3044,7 +3046,7 @@ function Rn(e) {
|
|
|
3044
3046
|
}
|
|
3045
3047
|
);
|
|
3046
3048
|
}
|
|
3047
|
-
const
|
|
3049
|
+
const Cn = {
|
|
3048
3050
|
// friendlyName?
|
|
3049
3051
|
name: "Raw:Img",
|
|
3050
3052
|
hideFromInsertMenu: !0,
|
|
@@ -3059,7 +3061,7 @@ const En = {
|
|
|
3059
3061
|
noWrap: !0,
|
|
3060
3062
|
static: !0
|
|
3061
3063
|
};
|
|
3062
|
-
function
|
|
3064
|
+
function Tn(e) {
|
|
3063
3065
|
return /* @__PURE__ */ l(
|
|
3064
3066
|
"img",
|
|
3065
3067
|
{
|
|
@@ -3071,10 +3073,10 @@ function Bn(e) {
|
|
|
3071
3073
|
src: e.imgSrc || e.image,
|
|
3072
3074
|
...e.attributes
|
|
3073
3075
|
},
|
|
3074
|
-
|
|
3076
|
+
N() && e.imgSrc || "default-key"
|
|
3075
3077
|
);
|
|
3076
3078
|
}
|
|
3077
|
-
const
|
|
3079
|
+
const In = {
|
|
3078
3080
|
name: "Video",
|
|
3079
3081
|
canHaveChildren: !0,
|
|
3080
3082
|
defaultStyles: {
|
|
@@ -3159,7 +3161,7 @@ const Pn = {
|
|
|
3159
3161
|
builderBlock: !0
|
|
3160
3162
|
}
|
|
3161
3163
|
};
|
|
3162
|
-
function
|
|
3164
|
+
function wn(e) {
|
|
3163
3165
|
var i, o, a, r, s, d, c;
|
|
3164
3166
|
function t() {
|
|
3165
3167
|
return {
|
|
@@ -3260,64 +3262,64 @@ function Vn(e) {
|
|
|
3260
3262
|
}
|
|
3261
3263
|
);
|
|
3262
3264
|
}
|
|
3263
|
-
const
|
|
3264
|
-
component:
|
|
3265
|
-
...
|
|
3265
|
+
const En = () => [{
|
|
3266
|
+
component: an,
|
|
3267
|
+
...on
|
|
3268
|
+
}, {
|
|
3269
|
+
component: cn,
|
|
3270
|
+
...rn
|
|
3266
3271
|
}, {
|
|
3267
3272
|
component: hn,
|
|
3268
|
-
...
|
|
3273
|
+
...dn
|
|
3269
3274
|
}, {
|
|
3270
|
-
component:
|
|
3275
|
+
component: bn,
|
|
3271
3276
|
...gn
|
|
3272
3277
|
}, {
|
|
3273
|
-
component:
|
|
3274
|
-
...
|
|
3278
|
+
component: vn,
|
|
3279
|
+
...xn
|
|
3275
3280
|
}, {
|
|
3276
|
-
component:
|
|
3277
|
-
...
|
|
3281
|
+
component: yn,
|
|
3282
|
+
...pn
|
|
3278
3283
|
}, {
|
|
3279
|
-
component:
|
|
3280
|
-
...
|
|
3284
|
+
component: kn,
|
|
3285
|
+
...Sn
|
|
3281
3286
|
}, {
|
|
3282
|
-
component:
|
|
3283
|
-
...
|
|
3287
|
+
component: Tn,
|
|
3288
|
+
...Cn
|
|
3284
3289
|
}, {
|
|
3285
|
-
component:
|
|
3286
|
-
...
|
|
3290
|
+
component: wn,
|
|
3291
|
+
...In
|
|
3292
|
+
}], xe = () => [{
|
|
3293
|
+
component: Xe,
|
|
3294
|
+
...qt
|
|
3287
3295
|
}, {
|
|
3288
|
-
component:
|
|
3289
|
-
...
|
|
3290
|
-
}], Ce = () => [{
|
|
3291
|
-
component: it,
|
|
3292
|
-
...Gt
|
|
3296
|
+
component: Dt,
|
|
3297
|
+
..._t
|
|
3293
3298
|
}, {
|
|
3294
|
-
component:
|
|
3295
|
-
...
|
|
3299
|
+
component: Lt,
|
|
3300
|
+
...zt
|
|
3296
3301
|
}, {
|
|
3297
|
-
component:
|
|
3298
|
-
...
|
|
3302
|
+
component: Mt,
|
|
3303
|
+
...Jt
|
|
3299
3304
|
}, {
|
|
3300
|
-
component:
|
|
3301
|
-
...
|
|
3305
|
+
component: jt,
|
|
3306
|
+
...Yt
|
|
3302
3307
|
}, {
|
|
3303
|
-
component:
|
|
3304
|
-
...
|
|
3308
|
+
component: Qt,
|
|
3309
|
+
...Gt
|
|
3310
|
+
}, {
|
|
3311
|
+
component: Gn,
|
|
3312
|
+
...Xt
|
|
3305
3313
|
}, {
|
|
3306
3314
|
component: nn,
|
|
3307
3315
|
...tn
|
|
3308
3316
|
}, {
|
|
3309
|
-
component:
|
|
3310
|
-
...
|
|
3311
|
-
}, {
|
|
3312
|
-
component: sn,
|
|
3313
|
-
...ln
|
|
3314
|
-
}, {
|
|
3315
|
-
component: rn,
|
|
3316
|
-
...an
|
|
3317
|
+
component: en,
|
|
3318
|
+
...Zt
|
|
3317
3319
|
}, {
|
|
3318
|
-
component:
|
|
3319
|
-
...
|
|
3320
|
-
}, ...
|
|
3320
|
+
component: Kt,
|
|
3321
|
+
...Ht
|
|
3322
|
+
}, ...En()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3321
3323
|
function getAndSetVariantId() {
|
|
3322
3324
|
function setCookie(name, value, days) {
|
|
3323
3325
|
let expires = '';
|
|
@@ -3373,7 +3375,7 @@ const An = () => [{
|
|
|
3373
3375
|
}).join('');
|
|
3374
3376
|
styleEl.innerHTML = newStyleStr;
|
|
3375
3377
|
}
|
|
3376
|
-
}`,
|
|
3378
|
+
}`, Bn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3377
3379
|
if (!navigator.cookieEnabled) {
|
|
3378
3380
|
return;
|
|
3379
3381
|
}
|
|
@@ -3407,26 +3409,26 @@ const An = () => [{
|
|
|
3407
3409
|
thisScriptEl?.remove();
|
|
3408
3410
|
}
|
|
3409
3411
|
return;
|
|
3410
|
-
}`,
|
|
3412
|
+
}`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3411
3413
|
...t,
|
|
3412
3414
|
testVariationId: t.id,
|
|
3413
3415
|
id: e == null ? void 0 : e.id
|
|
3414
|
-
})),
|
|
3416
|
+
})), Pn = ({
|
|
3415
3417
|
canTrack: e,
|
|
3416
3418
|
content: t
|
|
3417
|
-
}) => !(!(
|
|
3418
|
-
window.${
|
|
3419
|
-
window.${
|
|
3420
|
-
`,
|
|
3421
|
-
window.${
|
|
3422
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3423
|
-
)`,
|
|
3419
|
+
}) => !(!(_(t).length > 0) || !e || U()), Vn = (e) => e === "react" || e === "reactNative", Ue = Vn(L), An = () => `
|
|
3420
|
+
window.${Le} = ${Rn}
|
|
3421
|
+
window.${Oe} = ${Bn}
|
|
3422
|
+
`, Wn = (e, t) => `
|
|
3423
|
+
window.${Le}(
|
|
3424
|
+
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3425
|
+
)`, Nn = ({
|
|
3424
3426
|
contentId: e,
|
|
3425
3427
|
variationId: t
|
|
3426
|
-
}) => `window.${
|
|
3427
|
-
"${t}", "${e}", ${
|
|
3428
|
+
}) => `window.${Oe}(
|
|
3429
|
+
"${t}", "${e}", ${Ue}
|
|
3428
3430
|
)`;
|
|
3429
|
-
function
|
|
3431
|
+
function ae(e) {
|
|
3430
3432
|
return /* @__PURE__ */ l(
|
|
3431
3433
|
"script",
|
|
3432
3434
|
{
|
|
@@ -3436,10 +3438,10 @@ function ce(e) {
|
|
|
3436
3438
|
}
|
|
3437
3439
|
);
|
|
3438
3440
|
}
|
|
3439
|
-
function
|
|
3441
|
+
function ve(e) {
|
|
3440
3442
|
return Math.round(e * 1e3) / 1e3;
|
|
3441
3443
|
}
|
|
3442
|
-
const
|
|
3444
|
+
const Fn = (e, t, n = !0) => {
|
|
3443
3445
|
if (!(e instanceof HTMLElement))
|
|
3444
3446
|
return null;
|
|
3445
3447
|
let i = n ? e : e.parentElement;
|
|
@@ -3450,35 +3452,35 @@ const Un = (e, t, n = !0) => {
|
|
|
3450
3452
|
return i;
|
|
3451
3453
|
} while (i = i.parentElement);
|
|
3452
3454
|
return null;
|
|
3453
|
-
},
|
|
3455
|
+
}, $n = (e) => Fn(e, (t) => {
|
|
3454
3456
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3455
3457
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3456
|
-
}),
|
|
3458
|
+
}), Se = ({
|
|
3457
3459
|
event: e,
|
|
3458
3460
|
target: t
|
|
3459
3461
|
}) => {
|
|
3460
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3462
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
|
|
3461
3463
|
return {
|
|
3462
3464
|
x: a,
|
|
3463
3465
|
y: r
|
|
3464
3466
|
};
|
|
3465
|
-
},
|
|
3466
|
-
const t = e.target, n = t &&
|
|
3467
|
+
}, Dn = (e) => {
|
|
3468
|
+
const t = e.target, n = t && $n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3467
3469
|
return {
|
|
3468
3470
|
targetBuilderElement: i || void 0,
|
|
3469
3471
|
metadata: {
|
|
3470
|
-
targetOffset: t ?
|
|
3472
|
+
targetOffset: t ? Se({
|
|
3471
3473
|
event: e,
|
|
3472
3474
|
target: t
|
|
3473
3475
|
}) : void 0,
|
|
3474
|
-
builderTargetOffset: n ?
|
|
3476
|
+
builderTargetOffset: n ? Se({
|
|
3475
3477
|
event: e,
|
|
3476
3478
|
target: n
|
|
3477
3479
|
}) : void 0,
|
|
3478
3480
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3479
3481
|
}
|
|
3480
3482
|
};
|
|
3481
|
-
},
|
|
3483
|
+
}, Ln = (e) => {
|
|
3482
3484
|
var a, r;
|
|
3483
3485
|
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;
|
|
3484
3486
|
let o = "";
|
|
@@ -3504,15 +3506,15 @@ font-weight: ${s};
|
|
|
3504
3506
|
`.trim());
|
|
3505
3507
|
}
|
|
3506
3508
|
return o;
|
|
3507
|
-
},
|
|
3509
|
+
}, On = ({
|
|
3508
3510
|
customFonts: e
|
|
3509
3511
|
}) => {
|
|
3510
3512
|
var t;
|
|
3511
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3512
|
-
},
|
|
3513
|
+
return ((t = e == null ? void 0 : e.map((n) => Ln(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3514
|
+
}, Un = ({
|
|
3513
3515
|
cssCode: e,
|
|
3514
3516
|
contentId: t
|
|
3515
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3517
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Mn = `
|
|
3516
3518
|
.builder-button {
|
|
3517
3519
|
all: unset;
|
|
3518
3520
|
}
|
|
@@ -3529,39 +3531,39 @@ font-weight: ${s};
|
|
|
3529
3531
|
text-align: inherit;
|
|
3530
3532
|
font-family: inherit;
|
|
3531
3533
|
}
|
|
3532
|
-
`,
|
|
3533
|
-
function
|
|
3534
|
-
var
|
|
3535
|
-
const t =
|
|
3536
|
-
function n(
|
|
3537
|
-
var
|
|
3538
|
-
const
|
|
3534
|
+
`, jn = (e) => e ? "" : Mn, Hn = (e) => `variant-${e}`;
|
|
3535
|
+
function Kn(e) {
|
|
3536
|
+
var C, k, W;
|
|
3537
|
+
const t = D(null);
|
|
3538
|
+
function n(m) {
|
|
3539
|
+
var I, u;
|
|
3540
|
+
const y = {
|
|
3539
3541
|
...e.builderContextSignal.rootState,
|
|
3540
|
-
...
|
|
3542
|
+
...m
|
|
3541
3543
|
};
|
|
3542
|
-
e.builderContextSignal.rootSetState ? (
|
|
3543
|
-
...
|
|
3544
|
-
rootState:
|
|
3544
|
+
e.builderContextSignal.rootSetState ? (u = (I = e.builderContextSignal).rootSetState) == null || u.call(I, y) : e.setBuilderContextSignal((p) => ({
|
|
3545
|
+
...p,
|
|
3546
|
+
rootState: y
|
|
3545
3547
|
}));
|
|
3546
3548
|
}
|
|
3547
|
-
function i(
|
|
3548
|
-
var
|
|
3549
|
-
const
|
|
3549
|
+
function i(m) {
|
|
3550
|
+
var I, u, p, E, B;
|
|
3551
|
+
const y = {
|
|
3550
3552
|
...e.builderContextSignal.content,
|
|
3551
|
-
...
|
|
3553
|
+
...m,
|
|
3552
3554
|
data: {
|
|
3553
|
-
...(
|
|
3554
|
-
...
|
|
3555
|
+
...(I = e.builderContextSignal.content) == null ? void 0 : I.data,
|
|
3556
|
+
...m == null ? void 0 : m.data
|
|
3555
3557
|
},
|
|
3556
3558
|
meta: {
|
|
3557
|
-
...(
|
|
3558
|
-
...
|
|
3559
|
-
breakpoints: ((
|
|
3559
|
+
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3560
|
+
...m == null ? void 0 : m.meta,
|
|
3561
|
+
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : B.breakpoints)
|
|
3560
3562
|
}
|
|
3561
3563
|
};
|
|
3562
|
-
e.setBuilderContextSignal((
|
|
3563
|
-
...
|
|
3564
|
-
content:
|
|
3564
|
+
e.setBuilderContextSignal((A) => ({
|
|
3565
|
+
...A,
|
|
3566
|
+
content: y
|
|
3565
3567
|
}));
|
|
3566
3568
|
}
|
|
3567
3569
|
function o() {
|
|
@@ -3573,73 +3575,58 @@ function Yn(e) {
|
|
|
3573
3575
|
const [a, r] = T(
|
|
3574
3576
|
() => e.contentWrapper || "div"
|
|
3575
3577
|
);
|
|
3576
|
-
function s(
|
|
3577
|
-
return
|
|
3578
|
+
function s(m) {
|
|
3579
|
+
return Je({
|
|
3578
3580
|
model: e.model,
|
|
3579
3581
|
trustedHosts: e.trustedHosts,
|
|
3580
3582
|
callbacks: {
|
|
3581
|
-
configureSdk: (
|
|
3582
|
-
var
|
|
3583
|
-
const { breakpoints:
|
|
3584
|
-
!
|
|
3583
|
+
configureSdk: (y) => {
|
|
3584
|
+
var p;
|
|
3585
|
+
const { breakpoints: I, contentId: u } = y;
|
|
3586
|
+
!u || u !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || I && i({
|
|
3585
3587
|
meta: {
|
|
3586
|
-
breakpoints:
|
|
3588
|
+
breakpoints: I
|
|
3587
3589
|
}
|
|
3588
3590
|
});
|
|
3589
3591
|
},
|
|
3590
|
-
animation: (
|
|
3591
|
-
|
|
3592
|
+
animation: (y) => {
|
|
3593
|
+
Ae(y);
|
|
3592
3594
|
},
|
|
3593
|
-
contentUpdate: (
|
|
3594
|
-
i(
|
|
3595
|
+
contentUpdate: (y) => {
|
|
3596
|
+
i(y);
|
|
3595
3597
|
}
|
|
3596
3598
|
}
|
|
3597
|
-
})(
|
|
3599
|
+
})(m);
|
|
3598
3600
|
}
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
b && K({
|
|
3603
|
-
code: b,
|
|
3604
|
-
context: e.context || {},
|
|
3605
|
-
localState: void 0,
|
|
3606
|
-
rootState: e.builderContextSignal.rootState,
|
|
3607
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
3608
|
-
/**
|
|
3609
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3610
|
-
*/
|
|
3611
|
-
enableCache: !1
|
|
3612
|
-
});
|
|
3613
|
-
}
|
|
3614
|
-
const [c, u] = T(() => ({})), [g, m] = T(() => ({})), [x, h] = T(() => !1);
|
|
3615
|
-
function p(b) {
|
|
3616
|
-
var S, k;
|
|
3601
|
+
const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
|
|
3602
|
+
function g(m) {
|
|
3603
|
+
var y, I;
|
|
3617
3604
|
if (e.builderContextSignal.content) {
|
|
3618
|
-
const
|
|
3619
|
-
|
|
3605
|
+
const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
|
|
3606
|
+
de({
|
|
3620
3607
|
type: "click",
|
|
3621
|
-
canTrack:
|
|
3622
|
-
contentId:
|
|
3608
|
+
canTrack: J(e.canTrack),
|
|
3609
|
+
contentId: p,
|
|
3623
3610
|
apiKey: e.apiKey,
|
|
3624
|
-
variationId:
|
|
3625
|
-
...
|
|
3626
|
-
unique: !
|
|
3611
|
+
variationId: u !== p ? u : void 0,
|
|
3612
|
+
...Dn(m),
|
|
3613
|
+
unique: !h
|
|
3627
3614
|
});
|
|
3628
3615
|
}
|
|
3629
|
-
|
|
3616
|
+
h || v(!0);
|
|
3630
3617
|
}
|
|
3631
|
-
function
|
|
3632
|
-
var
|
|
3633
|
-
const
|
|
3634
|
-
Object.entries(
|
|
3635
|
-
if (!
|
|
3618
|
+
function S() {
|
|
3619
|
+
var y, I, u;
|
|
3620
|
+
const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
|
|
3621
|
+
Object.entries(m).forEach(([p, E]) => {
|
|
3622
|
+
if (!E || f[p] || d[p] && !N())
|
|
3636
3623
|
return;
|
|
3637
|
-
|
|
3638
|
-
const
|
|
3624
|
+
f[p] = !0;
|
|
3625
|
+
const B = E.replace(
|
|
3639
3626
|
/{{([^}]+)}}/g,
|
|
3640
|
-
(
|
|
3641
|
-
|
|
3642
|
-
code:
|
|
3627
|
+
(A, Me) => String(
|
|
3628
|
+
M({
|
|
3629
|
+
code: Me,
|
|
3643
3630
|
context: e.context || {},
|
|
3644
3631
|
localState: void 0,
|
|
3645
3632
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3648,24 +3635,24 @@ function Yn(e) {
|
|
|
3648
3635
|
})
|
|
3649
3636
|
)
|
|
3650
3637
|
);
|
|
3651
|
-
|
|
3638
|
+
fetch(B).then((A) => A.json()).then((A) => {
|
|
3652
3639
|
n({
|
|
3653
|
-
[
|
|
3654
|
-
}),
|
|
3655
|
-
}).catch((
|
|
3656
|
-
console.error("error fetching dynamic data",
|
|
3640
|
+
[p]: A
|
|
3641
|
+
}), d[p] = !0;
|
|
3642
|
+
}).catch((A) => {
|
|
3643
|
+
console.error("error fetching dynamic data", E, A);
|
|
3657
3644
|
}).finally(() => {
|
|
3658
|
-
|
|
3645
|
+
f[p] = !1;
|
|
3659
3646
|
});
|
|
3660
3647
|
});
|
|
3661
3648
|
}
|
|
3662
|
-
function
|
|
3663
|
-
|
|
3649
|
+
function x() {
|
|
3650
|
+
N() && window.dispatchEvent(
|
|
3664
3651
|
new CustomEvent(
|
|
3665
3652
|
"builder:component:stateChange",
|
|
3666
3653
|
{
|
|
3667
3654
|
detail: {
|
|
3668
|
-
state:
|
|
3655
|
+
state: se(e.builderContextSignal.rootState),
|
|
3669
3656
|
ref: {
|
|
3670
3657
|
name: e.model
|
|
3671
3658
|
}
|
|
@@ -3674,10 +3661,11 @@ function Yn(e) {
|
|
|
3674
3661
|
)
|
|
3675
3662
|
);
|
|
3676
3663
|
}
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3664
|
+
const R = D(!1);
|
|
3665
|
+
return R.current || (S(), x(), R.current = !0), P(() => {
|
|
3666
|
+
var m, y;
|
|
3667
|
+
if (U()) {
|
|
3668
|
+
if (N() && (window.addEventListener("message", s), qe(), _e({
|
|
3681
3669
|
...e.locale ? {
|
|
3682
3670
|
locale: e.locale
|
|
3683
3671
|
} : {},
|
|
@@ -3689,48 +3677,40 @@ function Yn(e) {
|
|
|
3689
3677
|
} : {}
|
|
3690
3678
|
}), Object.values(
|
|
3691
3679
|
e.builderContextSignal.componentInfos
|
|
3692
|
-
).forEach((
|
|
3693
|
-
var
|
|
3694
|
-
const
|
|
3695
|
-
(
|
|
3680
|
+
).forEach((u) => {
|
|
3681
|
+
var E;
|
|
3682
|
+
const p = ze(u);
|
|
3683
|
+
(E = window.parent) == null || E.postMessage(p, "*");
|
|
3696
3684
|
}), window.addEventListener(
|
|
3697
3685
|
"builder:component:stateChangeListenerActivated",
|
|
3698
|
-
|
|
3699
|
-
)), e.builderContextSignal.content &&
|
|
3700
|
-
const
|
|
3701
|
-
|
|
3686
|
+
x
|
|
3687
|
+
)), e.builderContextSignal.content && J(e.canTrack)) {
|
|
3688
|
+
const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, E = e.apiKey;
|
|
3689
|
+
de({
|
|
3702
3690
|
type: "impression",
|
|
3703
3691
|
canTrack: !0,
|
|
3704
|
-
contentId:
|
|
3705
|
-
apiKey:
|
|
3706
|
-
variationId:
|
|
3692
|
+
contentId: p,
|
|
3693
|
+
apiKey: E,
|
|
3694
|
+
variationId: u !== p ? u : void 0
|
|
3707
3695
|
});
|
|
3708
3696
|
}
|
|
3709
|
-
if (
|
|
3710
|
-
const
|
|
3711
|
-
`builder.overrides.${
|
|
3712
|
-
),
|
|
3713
|
-
|
|
3697
|
+
if (Ce() && !N()) {
|
|
3698
|
+
const u = new URL(location.href).searchParams, p = u.get("builder.preview"), E = u.get(
|
|
3699
|
+
`builder.overrides.${p}`
|
|
3700
|
+
), B = u.get("apiKey") || u.get("builder.space");
|
|
3701
|
+
p === e.model && B === e.apiKey && (!e.content || E === e.content.id) && Te({
|
|
3714
3702
|
model: e.model,
|
|
3715
3703
|
apiKey: e.apiKey,
|
|
3716
3704
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3717
|
-
}).then((
|
|
3718
|
-
|
|
3705
|
+
}).then((A) => {
|
|
3706
|
+
A && i(A);
|
|
3719
3707
|
});
|
|
3720
3708
|
}
|
|
3721
3709
|
}
|
|
3722
|
-
}, []), P(() => {
|
|
3723
|
-
e.apiKey || Z.error(
|
|
3724
|
-
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3725
|
-
), d(), f(), R();
|
|
3726
3710
|
}, []), P(() => {
|
|
3727
3711
|
e.content && i(e.content);
|
|
3728
3712
|
}, [e.content]), P(() => {
|
|
3729
|
-
|
|
3730
|
-
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3731
|
-
f();
|
|
3732
|
-
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3733
|
-
R();
|
|
3713
|
+
x();
|
|
3734
3714
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3735
3715
|
e.data && n(e.data);
|
|
3736
3716
|
}, [e.data]), P(() => {
|
|
@@ -3738,41 +3718,41 @@ function Yn(e) {
|
|
|
3738
3718
|
locale: e.locale
|
|
3739
3719
|
});
|
|
3740
3720
|
}, [e.locale]), P(() => () => {
|
|
3741
|
-
|
|
3721
|
+
U() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3742
3722
|
"builder:component:stateChangeListenerActivated",
|
|
3743
|
-
|
|
3723
|
+
x
|
|
3744
3724
|
));
|
|
3745
|
-
}, []), /* @__PURE__ */ l(
|
|
3725
|
+
}, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3746
3726
|
a,
|
|
3747
3727
|
{
|
|
3748
3728
|
ref: t,
|
|
3749
|
-
onClick: (
|
|
3750
|
-
"builder-content-id": (
|
|
3729
|
+
onClick: (m) => g(m),
|
|
3730
|
+
"builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
|
|
3751
3731
|
"builder-model": e.model,
|
|
3732
|
+
className: Hn(
|
|
3733
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
|
|
3734
|
+
),
|
|
3752
3735
|
...o(),
|
|
3753
3736
|
...e.contentWrapperProps,
|
|
3754
|
-
className: Jn(
|
|
3755
|
-
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3756
|
-
),
|
|
3757
3737
|
children: e.children
|
|
3758
3738
|
}
|
|
3759
3739
|
) : null });
|
|
3760
3740
|
}
|
|
3761
|
-
function
|
|
3741
|
+
function qn(e) {
|
|
3762
3742
|
const [t, n] = T(
|
|
3763
3743
|
() => `
|
|
3764
|
-
${
|
|
3744
|
+
${Un({
|
|
3765
3745
|
cssCode: e.cssCode,
|
|
3766
3746
|
contentId: e.contentId
|
|
3767
3747
|
})}
|
|
3768
|
-
${
|
|
3748
|
+
${On({
|
|
3769
3749
|
customFonts: e.customFonts
|
|
3770
3750
|
})}
|
|
3771
|
-
${
|
|
3751
|
+
${jn(e.isNestedRender)}
|
|
3772
3752
|
`.trim()
|
|
3773
3753
|
);
|
|
3774
3754
|
return /* @__PURE__ */ l(
|
|
3775
|
-
|
|
3755
|
+
Q,
|
|
3776
3756
|
{
|
|
3777
3757
|
id: "builderio-content",
|
|
3778
3758
|
styles: t,
|
|
@@ -3780,7 +3760,7 @@ ${zn(e.isNestedRender)}
|
|
|
3780
3760
|
}
|
|
3781
3761
|
);
|
|
3782
3762
|
}
|
|
3783
|
-
const
|
|
3763
|
+
const _n = ({
|
|
3784
3764
|
content: e,
|
|
3785
3765
|
data: t,
|
|
3786
3766
|
locale: n
|
|
@@ -3797,7 +3777,7 @@ const Qn = ({
|
|
|
3797
3777
|
locale: n
|
|
3798
3778
|
} : {}
|
|
3799
3779
|
};
|
|
3800
|
-
},
|
|
3780
|
+
}, zn = ({
|
|
3801
3781
|
content: e,
|
|
3802
3782
|
data: t
|
|
3803
3783
|
}) => e ? {
|
|
@@ -3808,51 +3788,51 @@ const Qn = ({
|
|
|
3808
3788
|
},
|
|
3809
3789
|
meta: e == null ? void 0 : e.meta
|
|
3810
3790
|
} : void 0;
|
|
3811
|
-
function
|
|
3812
|
-
var
|
|
3791
|
+
function ke(e) {
|
|
3792
|
+
var c, f, b, h, v, g, S, x, R;
|
|
3813
3793
|
const [t, n] = T(
|
|
3814
3794
|
() => {
|
|
3815
|
-
var
|
|
3816
|
-
return
|
|
3795
|
+
var C, k;
|
|
3796
|
+
return Nn({
|
|
3817
3797
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3818
|
-
variationId: (
|
|
3798
|
+
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3819
3799
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3820
|
-
contentId: (
|
|
3800
|
+
contentId: (k = e.content) == null ? void 0 : k.id
|
|
3821
3801
|
});
|
|
3822
3802
|
}
|
|
3823
3803
|
);
|
|
3824
|
-
function i(
|
|
3825
|
-
s((
|
|
3826
|
-
...
|
|
3827
|
-
rootState:
|
|
3804
|
+
function i(C) {
|
|
3805
|
+
s((k) => ({
|
|
3806
|
+
...k,
|
|
3807
|
+
rootState: C
|
|
3828
3808
|
}));
|
|
3829
3809
|
}
|
|
3830
3810
|
const [o, a] = T(
|
|
3831
3811
|
() => {
|
|
3832
|
-
var
|
|
3812
|
+
var C;
|
|
3833
3813
|
return [
|
|
3834
|
-
...
|
|
3835
|
-
...((
|
|
3814
|
+
...xe(),
|
|
3815
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3836
3816
|
].reduce(
|
|
3837
|
-
(
|
|
3838
|
-
...
|
|
3839
|
-
[
|
|
3840
|
-
component:
|
|
3841
|
-
...
|
|
3817
|
+
(k, { component: W, ...m }) => ({
|
|
3818
|
+
...k,
|
|
3819
|
+
[m.name]: {
|
|
3820
|
+
component: W,
|
|
3821
|
+
...ue(m)
|
|
3842
3822
|
}
|
|
3843
3823
|
}),
|
|
3844
3824
|
{}
|
|
3845
3825
|
);
|
|
3846
3826
|
}
|
|
3847
3827
|
), [r, s] = T(() => {
|
|
3848
|
-
var
|
|
3828
|
+
var C;
|
|
3849
3829
|
return {
|
|
3850
|
-
content:
|
|
3830
|
+
content: zn({
|
|
3851
3831
|
content: e.content,
|
|
3852
3832
|
data: e.data
|
|
3853
3833
|
}),
|
|
3854
3834
|
localState: void 0,
|
|
3855
|
-
rootState:
|
|
3835
|
+
rootState: _n({
|
|
3856
3836
|
content: e.content,
|
|
3857
3837
|
data: e.data,
|
|
3858
3838
|
locale: e.locale
|
|
@@ -3863,12 +3843,12 @@ function we(e) {
|
|
|
3863
3843
|
apiKey: e.apiKey,
|
|
3864
3844
|
apiVersion: e.apiVersion,
|
|
3865
3845
|
componentInfos: [
|
|
3866
|
-
...
|
|
3867
|
-
...((
|
|
3846
|
+
...xe(),
|
|
3847
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3868
3848
|
].reduce(
|
|
3869
|
-
(
|
|
3870
|
-
...
|
|
3871
|
-
[
|
|
3849
|
+
(k, { component: W, ...m }) => ({
|
|
3850
|
+
...k,
|
|
3851
|
+
[m.name]: ue(m)
|
|
3872
3852
|
}),
|
|
3873
3853
|
{}
|
|
3874
3854
|
),
|
|
@@ -3877,15 +3857,35 @@ function we(e) {
|
|
|
3877
3857
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3878
3858
|
nonce: e.nonce || ""
|
|
3879
3859
|
};
|
|
3880
|
-
});
|
|
3860
|
+
}), d = D(!1);
|
|
3861
|
+
if (!d.current) {
|
|
3862
|
+
e.apiKey || Y.error(
|
|
3863
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3864
|
+
);
|
|
3865
|
+
const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
|
|
3866
|
+
C && M({
|
|
3867
|
+
code: C,
|
|
3868
|
+
context: e.context || {},
|
|
3869
|
+
localState: void 0,
|
|
3870
|
+
rootState: r.rootState,
|
|
3871
|
+
rootSetState: (k) => {
|
|
3872
|
+
Object.assign(r.rootState, k);
|
|
3873
|
+
},
|
|
3874
|
+
isExpression: !1,
|
|
3875
|
+
/**
|
|
3876
|
+
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3877
|
+
*/
|
|
3878
|
+
enableCache: !1
|
|
3879
|
+
}), d.current = !0;
|
|
3880
|
+
}
|
|
3881
3881
|
return /* @__PURE__ */ l(
|
|
3882
|
-
|
|
3882
|
+
Ee.Provider,
|
|
3883
3883
|
{
|
|
3884
3884
|
value: {
|
|
3885
3885
|
registeredComponents: o
|
|
3886
3886
|
},
|
|
3887
3887
|
children: /* @__PURE__ */ V(
|
|
3888
|
-
|
|
3888
|
+
Kn,
|
|
3889
3889
|
{
|
|
3890
3890
|
nonce: e.nonce,
|
|
3891
3891
|
content: e.content,
|
|
@@ -3904,7 +3904,7 @@ function we(e) {
|
|
|
3904
3904
|
setBuilderContextSignal: s,
|
|
3905
3905
|
children: [
|
|
3906
3906
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3907
|
-
|
|
3907
|
+
ae,
|
|
3908
3908
|
{
|
|
3909
3909
|
id: "builderio-variant-visibility",
|
|
3910
3910
|
scriptStr: t,
|
|
@@ -3912,19 +3912,19 @@ function we(e) {
|
|
|
3912
3912
|
}
|
|
3913
3913
|
) : null,
|
|
3914
3914
|
/* @__PURE__ */ l(
|
|
3915
|
-
|
|
3915
|
+
qn,
|
|
3916
3916
|
{
|
|
3917
3917
|
nonce: e.nonce || "",
|
|
3918
3918
|
isNestedRender: e.isNestedRender,
|
|
3919
|
-
contentId: (
|
|
3920
|
-
cssCode: (
|
|
3921
|
-
customFonts: (
|
|
3919
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
3920
|
+
cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
|
|
3921
|
+
customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
|
|
3922
3922
|
}
|
|
3923
3923
|
),
|
|
3924
3924
|
/* @__PURE__ */ l(
|
|
3925
|
-
|
|
3925
|
+
F,
|
|
3926
3926
|
{
|
|
3927
|
-
blocks: (
|
|
3927
|
+
blocks: (R = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : R.blocks,
|
|
3928
3928
|
context: r,
|
|
3929
3929
|
registeredComponents: o,
|
|
3930
3930
|
linkComponent: e.linkComponent
|
|
@@ -3936,18 +3936,18 @@ function we(e) {
|
|
|
3936
3936
|
}
|
|
3937
3937
|
);
|
|
3938
3938
|
}
|
|
3939
|
-
function
|
|
3939
|
+
function Jn(e) {
|
|
3940
3940
|
var r;
|
|
3941
3941
|
const [t, n] = T(
|
|
3942
|
-
() =>
|
|
3943
|
-
canTrack:
|
|
3942
|
+
() => Pn({
|
|
3943
|
+
canTrack: J(e.canTrack),
|
|
3944
3944
|
content: e.content
|
|
3945
3945
|
})
|
|
3946
3946
|
);
|
|
3947
3947
|
function i() {
|
|
3948
3948
|
var s;
|
|
3949
|
-
return
|
|
3950
|
-
|
|
3949
|
+
return Wn(
|
|
3950
|
+
_(e.content).map((d) => ({
|
|
3951
3951
|
id: d.testVariationId,
|
|
3952
3952
|
testRatio: d.testRatio
|
|
3953
3953
|
})),
|
|
@@ -3955,31 +3955,31 @@ function Zn(e) {
|
|
|
3955
3955
|
);
|
|
3956
3956
|
}
|
|
3957
3957
|
function o() {
|
|
3958
|
-
return
|
|
3958
|
+
return _(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3959
3959
|
}
|
|
3960
3960
|
function a() {
|
|
3961
3961
|
var s;
|
|
3962
3962
|
return t ? {
|
|
3963
3963
|
...e.content,
|
|
3964
3964
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3965
|
-
} :
|
|
3965
|
+
} : Ye({
|
|
3966
3966
|
item: e.content,
|
|
3967
|
-
canTrack:
|
|
3967
|
+
canTrack: J(e.canTrack)
|
|
3968
3968
|
});
|
|
3969
3969
|
}
|
|
3970
3970
|
return P(() => {
|
|
3971
|
-
}, []), /* @__PURE__ */ V(
|
|
3972
|
-
!e.isNestedRender &&
|
|
3973
|
-
|
|
3971
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3972
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
|
|
3973
|
+
ae,
|
|
3974
3974
|
{
|
|
3975
3975
|
id: "builderio-init-variants-fns",
|
|
3976
|
-
scriptStr:
|
|
3976
|
+
scriptStr: An(),
|
|
3977
3977
|
nonce: e.nonce || ""
|
|
3978
3978
|
}
|
|
3979
3979
|
) : null,
|
|
3980
|
-
t ? /* @__PURE__ */ V(
|
|
3980
|
+
t ? /* @__PURE__ */ V(w, { children: [
|
|
3981
3981
|
/* @__PURE__ */ l(
|
|
3982
|
-
|
|
3982
|
+
Q,
|
|
3983
3983
|
{
|
|
3984
3984
|
id: "builderio-variants",
|
|
3985
3985
|
styles: o(),
|
|
@@ -3987,15 +3987,15 @@ function Zn(e) {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
),
|
|
3989
3989
|
/* @__PURE__ */ l(
|
|
3990
|
-
|
|
3990
|
+
ae,
|
|
3991
3991
|
{
|
|
3992
3992
|
id: "builderio-variants-visibility",
|
|
3993
3993
|
scriptStr: i(),
|
|
3994
3994
|
nonce: e.nonce || ""
|
|
3995
3995
|
}
|
|
3996
3996
|
),
|
|
3997
|
-
(r =
|
|
3998
|
-
|
|
3997
|
+
(r = _(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3998
|
+
ke,
|
|
3999
3999
|
{
|
|
4000
4000
|
isNestedRender: e.isNestedRender,
|
|
4001
4001
|
nonce: e.nonce,
|
|
@@ -4022,7 +4022,7 @@ function Zn(e) {
|
|
|
4022
4022
|
))
|
|
4023
4023
|
] }) : null,
|
|
4024
4024
|
/* @__PURE__ */ l(
|
|
4025
|
-
|
|
4025
|
+
ke,
|
|
4026
4026
|
{
|
|
4027
4027
|
nonce: e.nonce,
|
|
4028
4028
|
isNestedRender: e.isNestedRender,
|
|
@@ -4048,13 +4048,13 @@ function Zn(e) {
|
|
|
4048
4048
|
)
|
|
4049
4049
|
] });
|
|
4050
4050
|
}
|
|
4051
|
-
const
|
|
4051
|
+
const Yn = async ({
|
|
4052
4052
|
builderContextValue: e,
|
|
4053
4053
|
symbol: t
|
|
4054
4054
|
}) => {
|
|
4055
4055
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4056
4056
|
(e != null && e.apiKey))
|
|
4057
|
-
return
|
|
4057
|
+
return Te({
|
|
4058
4058
|
model: t.model,
|
|
4059
4059
|
apiKey: e.apiKey,
|
|
4060
4060
|
apiVersion: e.apiVersion,
|
|
@@ -4064,11 +4064,11 @@ const ei = async ({
|
|
|
4064
4064
|
}
|
|
4065
4065
|
}
|
|
4066
4066
|
}).catch((n) => {
|
|
4067
|
-
|
|
4067
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
4068
4068
|
});
|
|
4069
4069
|
};
|
|
4070
|
-
function
|
|
4071
|
-
var s, d, c,
|
|
4070
|
+
function Gn(e) {
|
|
4071
|
+
var s, d, c, f;
|
|
4072
4072
|
function t() {
|
|
4073
4073
|
return "div";
|
|
4074
4074
|
}
|
|
@@ -4076,31 +4076,31 @@ function ti(e) {
|
|
|
4076
4076
|
return "div";
|
|
4077
4077
|
}
|
|
4078
4078
|
function i() {
|
|
4079
|
-
var
|
|
4079
|
+
var b, h;
|
|
4080
4080
|
return [
|
|
4081
|
-
e.attributes[
|
|
4081
|
+
e.attributes[H()],
|
|
4082
4082
|
"builder-symbol",
|
|
4083
|
-
(
|
|
4084
|
-
(
|
|
4083
|
+
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
4084
|
+
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4085
4085
|
].filter(Boolean).join(" ");
|
|
4086
4086
|
}
|
|
4087
4087
|
const [o, a] = T(() => {
|
|
4088
|
-
var
|
|
4089
|
-
return (
|
|
4088
|
+
var b;
|
|
4089
|
+
return (b = e.symbol) == null ? void 0 : b.content;
|
|
4090
4090
|
});
|
|
4091
4091
|
function r() {
|
|
4092
|
-
o ||
|
|
4092
|
+
o || Yn({
|
|
4093
4093
|
symbol: e.symbol,
|
|
4094
4094
|
builderContextValue: e.builderContext
|
|
4095
|
-
}).then((
|
|
4096
|
-
|
|
4095
|
+
}).then((b) => {
|
|
4096
|
+
b && a(b);
|
|
4097
4097
|
});
|
|
4098
4098
|
}
|
|
4099
4099
|
return P(() => {
|
|
4100
4100
|
}, []), P(() => {
|
|
4101
4101
|
r();
|
|
4102
4102
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4103
|
-
|
|
4103
|
+
Jn,
|
|
4104
4104
|
{
|
|
4105
4105
|
nonce: e.builderContext.nonce,
|
|
4106
4106
|
isNestedRender: !0,
|
|
@@ -4117,7 +4117,7 @@ function ti(e) {
|
|
|
4117
4117
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4118
4118
|
},
|
|
4119
4119
|
canTrack: e.builderContext.canTrack,
|
|
4120
|
-
model: (
|
|
4120
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
4121
4121
|
content: o,
|
|
4122
4122
|
linkComponent: e.builderLinkComponent,
|
|
4123
4123
|
blocksWrapper: t(),
|
|
@@ -4126,15 +4126,15 @@ function ti(e) {
|
|
|
4126
4126
|
) });
|
|
4127
4127
|
}
|
|
4128
4128
|
export {
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4129
|
+
F as Blocks,
|
|
4130
|
+
le as BuilderContext,
|
|
4131
|
+
Xe as Button,
|
|
4132
|
+
Dt as Columns,
|
|
4133
|
+
Jn as Content,
|
|
4134
|
+
Lt as Fragment,
|
|
4135
|
+
Mt as Image,
|
|
4136
|
+
jt as Section,
|
|
4137
|
+
Gn as Symbol,
|
|
4138
|
+
nn as Text,
|
|
4139
|
+
wn as Video
|
|
4140
4140
|
};
|