@builder.io/sdk-react 2.0.1 → 2.0.2-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +22 -22
- package/lib/browser/blocks-exports.mjs +745 -758
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-f9067095.js → server-entry-45c77a86.js} +337 -335
- package/lib/browser/server-entry-69a4d3c9.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-6ad2cec7.cjs → accordion-7896cae6.cjs} +1 -1
- package/lib/edge/{accordion-4a70912d.js → accordion-ddf18178.js} +1 -1
- package/lib/edge/blocks-03bf455b.cjs +32 -0
- package/lib/edge/{blocks-fedde8d2.js → blocks-10f68d94.js} +1333 -1346
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-f6426eff.cjs → button-91e0aec2.cjs} +1 -1
- package/lib/edge/{button-af35e8de.js → button-cba5f3f8.js} +2 -2
- package/lib/edge/{columns-f607250b.cjs → columns-080edf58.cjs} +1 -1
- package/lib/edge/{columns-1065c0ae.js → columns-6bfc17df.js} +3 -3
- package/lib/edge/{content-variants-773afb9f.cjs → content-variants-65794f41.cjs} +1 -1
- package/lib/edge/{content-variants-3d57a82f.js → content-variants-d855ce6c.js} +10 -10
- package/lib/edge/{form-5762c22a.cjs → form-23561b33.cjs} +1 -1
- package/lib/edge/{form-0a58d0e4.js → form-f4cd948c.js} +3 -3
- package/lib/edge/{get-class-prop-name-268b0f61.js → get-class-prop-name-1928cf9f.js} +1 -1
- package/lib/edge/{get-class-prop-name-3061c329.cjs → get-class-prop-name-237cd359.cjs} +1 -1
- package/lib/edge/{img-59bb70c7.cjs → img-86db320f.cjs} +1 -1
- package/lib/edge/{img-252c9967.js → img-f9ec8689.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-7ae243e2.js → input-394e72b8.js} +1 -1
- package/lib/edge/{input-2163d4dc.cjs → input-953ef2fe.cjs} +1 -1
- package/lib/edge/{select-cfa0eb8e.js → select-3e25848f.js} +1 -1
- package/lib/edge/{select-39231177.cjs → select-9bb6b8c1.cjs} +1 -1
- package/lib/edge/{server-entry-4750de9c.cjs → server-entry-6bd1c4bc.cjs} +1 -1
- package/lib/edge/{server-entry-681e8e79.js → server-entry-771d1637.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-69da8c56.cjs → slot-22940ad6.cjs} +1 -1
- package/lib/edge/{slot-7c61542f.js → slot-881129c3.js} +3 -3
- package/lib/edge/{symbol-bd999a19.cjs → symbol-58595a6d.cjs} +1 -1
- package/lib/edge/{symbol-4a8a6cda.js → symbol-faa97614.js} +2 -2
- package/lib/edge/{tabs-3d0e242e.cjs → tabs-dc23d0fa.cjs} +1 -1
- package/lib/edge/{tabs-c3ff0c70.js → tabs-f0ca75e4.js} +3 -3
- package/lib/node/blocks-exports.cjs +21 -21
- package/lib/node/blocks-exports.mjs +758 -771
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-78262e65.js → node-runtime-46d21495.js} +1 -1
- package/lib/node/{node-runtime-3bfd8465.cjs → node-runtime-55fc8cd4.cjs} +1 -1
- package/lib/node/server-entry-11eee7d8.cjs +2 -0
- package/lib/node/{server-entry-5f9f100f.js → server-entry-d45c1bf6.js} +337 -335
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -2
- package/types/components/block/block.helpers.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/browser/server-entry-29c5c31c.cjs +0 -2
- package/lib/edge/blocks-0bd38a83.cjs +0 -32
- package/lib/node/server-entry-63058f3f.cjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var qe = Object.defineProperty;
|
|
3
3
|
var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as
|
|
7
|
-
import { createContext as Re, useState as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */
|
|
4
|
+
var ne = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as X, fastClone as ce, isPreviewing as Ie, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as we, createEditorListener as Ge, fetch as Qe, serializeComponentInfo as he, handleABTestingSync as Xe } from "./server-entry-45c77a86.js";
|
|
7
|
+
import { createContext as Re, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Ee } from "react";
|
|
8
|
+
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
9
|
+
function de(e) {
|
|
10
|
+
return /* @__PURE__ */ l(R, { children: et(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { 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
12
|
const q = () => {
|
|
13
13
|
switch (z) {
|
|
@@ -23,7 +23,7 @@ const q = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function tt(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
@@ -37,8 +37,8 @@ function nt(e) {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
return /* @__PURE__ */ l(
|
|
41
|
+
de,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function nt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const ue = Re({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -62,14 +62,14 @@ const me = Re({
|
|
|
62
62
|
BlocksWrapperProps: {},
|
|
63
63
|
nonce: ""
|
|
64
64
|
}), Be = Re({ registeredComponents: {} });
|
|
65
|
-
function
|
|
65
|
+
function nt(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
|
-
const
|
|
72
|
+
const it = ({
|
|
73
73
|
builder: e,
|
|
74
74
|
context: t,
|
|
75
75
|
event: n,
|
|
@@ -81,33 +81,33 @@ const ot = ({
|
|
|
81
81
|
builder: e,
|
|
82
82
|
context: t,
|
|
83
83
|
event: n
|
|
84
|
-
}),
|
|
84
|
+
}), ot = () => ({
|
|
85
85
|
isEditing: $(),
|
|
86
86
|
isBrowser: M(),
|
|
87
87
|
isServer: !M(),
|
|
88
88
|
getUserAttributes: () => ze()
|
|
89
|
-
}),
|
|
89
|
+
}), at = (e, {
|
|
90
90
|
isExpression: t = !0
|
|
91
|
-
}) => /* 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,
|
|
91
|
+
}) => /* 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, be = ({
|
|
92
92
|
code: e,
|
|
93
93
|
builder: t,
|
|
94
94
|
context: n,
|
|
95
95
|
event: i,
|
|
96
96
|
localState: o,
|
|
97
|
-
rootSetState:
|
|
98
|
-
rootState:
|
|
97
|
+
rootSetState: a,
|
|
98
|
+
rootState: r
|
|
99
99
|
}) => {
|
|
100
|
-
const
|
|
100
|
+
const s = it({
|
|
101
101
|
builder: t,
|
|
102
102
|
context: n,
|
|
103
103
|
event: i,
|
|
104
104
|
state: Pe({
|
|
105
|
-
rootState:
|
|
105
|
+
rootState: r,
|
|
106
106
|
localState: o,
|
|
107
|
-
rootSetState:
|
|
107
|
+
rootSetState: a
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
|
-
return new Function(...
|
|
110
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
111
111
|
};
|
|
112
112
|
function Pe({
|
|
113
113
|
rootState: e,
|
|
@@ -118,33 +118,33 @@ function Pe({
|
|
|
118
118
|
get: (i, o) => {
|
|
119
119
|
if (t && o in t)
|
|
120
120
|
return t[o];
|
|
121
|
-
const
|
|
122
|
-
return typeof
|
|
123
|
-
rootState:
|
|
121
|
+
const a = i[o];
|
|
122
|
+
return typeof a == "object" && a !== null ? Pe({
|
|
123
|
+
rootState: a,
|
|
124
124
|
localState: void 0,
|
|
125
|
-
rootSetState: n ? (
|
|
126
|
-
i[o] =
|
|
125
|
+
rootSetState: n ? (r) => {
|
|
126
|
+
i[o] = r, n(i);
|
|
127
127
|
} : void 0
|
|
128
|
-
}) :
|
|
128
|
+
}) : a;
|
|
129
129
|
},
|
|
130
|
-
set: (i, o,
|
|
130
|
+
set: (i, o, a) => {
|
|
131
131
|
if (t && o in t)
|
|
132
132
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
133
|
-
return i[o] =
|
|
133
|
+
return i[o] = a, n == null || n(i), !0;
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function rt() {
|
|
138
138
|
var e;
|
|
139
139
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
140
140
|
}
|
|
141
|
-
const
|
|
141
|
+
const lt = () => {
|
|
142
142
|
var i;
|
|
143
|
-
if (!
|
|
143
|
+
if (!rt())
|
|
144
144
|
return !1;
|
|
145
145
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
146
|
-
return e && t && !n ? (
|
|
147
|
-
},
|
|
146
|
+
return e && t && !n ? (X.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;
|
|
147
|
+
}, st = (e) => (M() || lt(), be(e)), L = class L {
|
|
148
148
|
static getCacheKey(t) {
|
|
149
149
|
return JSON.stringify({
|
|
150
150
|
...t,
|
|
@@ -162,7 +162,7 @@ const st = () => {
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
|
-
|
|
165
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
166
166
|
let U = L;
|
|
167
167
|
function K({
|
|
168
168
|
code: e,
|
|
@@ -170,37 +170,37 @@ function K({
|
|
|
170
170
|
localState: n,
|
|
171
171
|
rootState: i,
|
|
172
172
|
rootSetState: o,
|
|
173
|
-
event:
|
|
174
|
-
isExpression:
|
|
175
|
-
enableCache:
|
|
173
|
+
event: a,
|
|
174
|
+
isExpression: r = !0,
|
|
175
|
+
enableCache: s
|
|
176
176
|
}) {
|
|
177
177
|
if (e === "")
|
|
178
178
|
return;
|
|
179
|
-
const
|
|
180
|
-
code:
|
|
181
|
-
isExpression:
|
|
179
|
+
const d = {
|
|
180
|
+
code: at(e, {
|
|
181
|
+
isExpression: r
|
|
182
182
|
}),
|
|
183
|
-
builder:
|
|
183
|
+
builder: ot(),
|
|
184
184
|
context: t,
|
|
185
|
-
event:
|
|
185
|
+
event: a,
|
|
186
186
|
rootSetState: o,
|
|
187
187
|
rootState: i,
|
|
188
188
|
localState: n
|
|
189
189
|
};
|
|
190
|
-
if (
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
190
|
+
if (s) {
|
|
191
|
+
const c = U.getCacheKey(d), m = U.getCachedValue(c);
|
|
192
|
+
if (m)
|
|
193
|
+
return m.value;
|
|
194
194
|
}
|
|
195
195
|
try {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
U.setCachedValue(
|
|
196
|
+
const c = st(d);
|
|
197
|
+
if (s) {
|
|
198
|
+
const m = U.getCacheKey(d);
|
|
199
|
+
U.setCachedValue(m, c);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
202
|
-
} catch (
|
|
203
|
-
|
|
201
|
+
return c;
|
|
202
|
+
} catch (c) {
|
|
203
|
+
X.error("Failed code evaluation: " + c.message, {
|
|
204
204
|
code: e
|
|
205
205
|
});
|
|
206
206
|
return;
|
|
@@ -210,9 +210,9 @@ const Ve = (e, t, n) => {
|
|
|
210
210
|
if (Object(e) !== e)
|
|
211
211
|
return e;
|
|
212
212
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
213
|
-
return i.slice(0, -1).reduce((o,
|
|
213
|
+
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;
|
|
214
214
|
};
|
|
215
|
-
const
|
|
215
|
+
const ct = ({
|
|
216
216
|
block: e,
|
|
217
217
|
context: t,
|
|
218
218
|
localState: n,
|
|
@@ -221,56 +221,56 @@ const dt = ({
|
|
|
221
221
|
}) => {
|
|
222
222
|
if (!e.bindings)
|
|
223
223
|
return e;
|
|
224
|
-
const
|
|
225
|
-
...
|
|
224
|
+
const a = ce(e), r = {
|
|
225
|
+
...a,
|
|
226
226
|
properties: {
|
|
227
|
-
...
|
|
227
|
+
...a.properties
|
|
228
228
|
},
|
|
229
229
|
actions: {
|
|
230
|
-
...
|
|
230
|
+
...a.actions
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
for (const
|
|
234
|
-
const
|
|
235
|
-
code:
|
|
233
|
+
for (const s in e.bindings) {
|
|
234
|
+
const d = e.bindings[s], c = K({
|
|
235
|
+
code: d,
|
|
236
236
|
localState: n,
|
|
237
237
|
rootState: i,
|
|
238
238
|
rootSetState: o,
|
|
239
239
|
context: t,
|
|
240
240
|
enableCache: !0
|
|
241
241
|
});
|
|
242
|
-
Ve(
|
|
242
|
+
Ve(r, s, c);
|
|
243
243
|
}
|
|
244
|
-
return
|
|
244
|
+
return r;
|
|
245
245
|
};
|
|
246
|
-
function
|
|
246
|
+
function dt({
|
|
247
247
|
block: e,
|
|
248
248
|
context: t,
|
|
249
249
|
shouldEvaluateBindings: n,
|
|
250
250
|
localState: i,
|
|
251
251
|
rootState: o,
|
|
252
|
-
rootSetState:
|
|
252
|
+
rootSetState: a
|
|
253
253
|
}) {
|
|
254
|
-
const
|
|
255
|
-
return n ?
|
|
256
|
-
block:
|
|
254
|
+
const r = e;
|
|
255
|
+
return n ? ct({
|
|
256
|
+
block: r,
|
|
257
257
|
localState: i,
|
|
258
258
|
rootState: o,
|
|
259
|
-
rootSetState:
|
|
259
|
+
rootSetState: a,
|
|
260
260
|
context: t
|
|
261
|
-
}) :
|
|
261
|
+
}) : r;
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
264
264
|
function ut(e, t, n = {}) {
|
|
265
|
-
let i, o,
|
|
266
|
-
const
|
|
267
|
-
|
|
265
|
+
let i, o, a, r = null, s = 0;
|
|
266
|
+
const d = function() {
|
|
267
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
268
268
|
};
|
|
269
269
|
return function() {
|
|
270
|
-
const
|
|
271
|
-
!
|
|
272
|
-
const
|
|
273
|
-
return i = this, o = arguments,
|
|
270
|
+
const c = Date.now();
|
|
271
|
+
!s && n.leading === !1 && (s = c);
|
|
272
|
+
const m = t - (c - s);
|
|
273
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
function H(e, ...t) {
|
|
@@ -278,8 +278,8 @@ function H(e, ...t) {
|
|
|
278
278
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
279
|
const o = arguments[i];
|
|
280
280
|
if (o != null)
|
|
281
|
-
for (const
|
|
282
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
281
|
+
for (const a in o)
|
|
282
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
283
283
|
}
|
|
284
284
|
return n;
|
|
285
285
|
}
|
|
@@ -298,10 +298,10 @@ function Ae(e) {
|
|
|
298
298
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
299
299
|
}
|
|
300
300
|
function Ne(e, t) {
|
|
301
|
-
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles,
|
|
302
|
-
for (const
|
|
303
|
-
for (const
|
|
304
|
-
|
|
301
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
302
|
+
for (const s of r)
|
|
303
|
+
for (const d of n)
|
|
304
|
+
d in s || (s[d] = i[d]);
|
|
305
305
|
}
|
|
306
306
|
function ft(e) {
|
|
307
307
|
const t = [];
|
|
@@ -318,7 +318,7 @@ function We(e) {
|
|
|
318
318
|
}
|
|
319
319
|
Array.from(t).forEach((n) => {
|
|
320
320
|
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
321
|
-
n.style.transition = `all ${e.duration}s ${
|
|
321
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
322
322
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
323
323
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
324
324
|
});
|
|
@@ -333,35 +333,35 @@ function ht(e) {
|
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
334
|
Ne(e, n);
|
|
335
335
|
let i = !1, o = !1;
|
|
336
|
-
function
|
|
337
|
-
!i &&
|
|
338
|
-
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
336
|
+
function a() {
|
|
337
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
338
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
339
339
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
340
340
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
341
|
-
})) : e.repeat && i && !o && !
|
|
341
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
342
342
|
}
|
|
343
|
-
const
|
|
343
|
+
const r = ut(a, 200, {
|
|
344
344
|
leading: !1
|
|
345
345
|
});
|
|
346
|
-
function
|
|
347
|
-
const
|
|
348
|
-
return
|
|
346
|
+
function s(m) {
|
|
347
|
+
const h = m.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
|
|
348
|
+
return h.bottom > g && h.top < f - g;
|
|
349
349
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
352
|
-
H(n.style,
|
|
350
|
+
const d = e.steps[0].styles;
|
|
351
|
+
function c() {
|
|
352
|
+
H(n.style, d);
|
|
353
353
|
}
|
|
354
|
-
|
|
355
|
-
n.style.transition = `all ${e.duration}s ${
|
|
356
|
-
}), document.addEventListener("scroll",
|
|
354
|
+
c(), setTimeout(() => {
|
|
355
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
356
|
+
}), document.addEventListener("scroll", r, {
|
|
357
357
|
capture: !0,
|
|
358
358
|
passive: !0
|
|
359
|
-
}),
|
|
359
|
+
}), a();
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
362
|
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
363
363
|
if (typeof i == "string")
|
|
364
|
-
return `${
|
|
364
|
+
return `${ee(n)}: ${i};`;
|
|
365
365
|
}).filter(G), gt = (e) => Fe(e).join(`
|
|
366
366
|
`), J = ({
|
|
367
367
|
mediaQuery: e,
|
|
@@ -404,25 +404,17 @@ function $e(e) {
|
|
|
404
404
|
}
|
|
405
405
|
const yt = ({
|
|
406
406
|
block: e,
|
|
407
|
-
|
|
408
|
-
registeredComponents: n
|
|
407
|
+
registeredComponents: t
|
|
409
408
|
}) => {
|
|
410
|
-
var
|
|
411
|
-
const
|
|
412
|
-
|
|
413
|
-
localState: t.localState,
|
|
414
|
-
rootState: t.rootState,
|
|
415
|
-
rootSetState: t.rootSetState,
|
|
416
|
-
context: t.context,
|
|
417
|
-
shouldEvaluateBindings: !1
|
|
418
|
-
}).component) == null ? void 0 : r.name;
|
|
419
|
-
if (!i)
|
|
409
|
+
var o;
|
|
410
|
+
const n = (o = e.component) == null ? void 0 : o.name;
|
|
411
|
+
if (!n)
|
|
420
412
|
return null;
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
return
|
|
413
|
+
const i = t[n];
|
|
414
|
+
if (i)
|
|
415
|
+
return i;
|
|
424
416
|
console.warn(`
|
|
425
|
-
Could not find a registered component named "${
|
|
417
|
+
Could not find a registered component named "${n}".
|
|
426
418
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
427
419
|
}, xt = ({
|
|
428
420
|
block: e,
|
|
@@ -444,16 +436,16 @@ const yt = ({
|
|
|
444
436
|
});
|
|
445
437
|
if (!Array.isArray(o))
|
|
446
438
|
return;
|
|
447
|
-
const
|
|
448
|
-
return o.map((
|
|
439
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
440
|
+
return o.map((d, c) => ({
|
|
449
441
|
context: {
|
|
450
442
|
...t,
|
|
451
443
|
localState: {
|
|
452
444
|
...t.localState,
|
|
453
|
-
$index:
|
|
454
|
-
$item:
|
|
455
|
-
[
|
|
456
|
-
[`$${
|
|
445
|
+
$index: c,
|
|
446
|
+
$item: d,
|
|
447
|
+
[r]: d,
|
|
448
|
+
[`$${r}Index`]: c
|
|
457
449
|
}
|
|
458
450
|
},
|
|
459
451
|
block: i
|
|
@@ -494,11 +486,11 @@ const yt = ({
|
|
|
494
486
|
default: 991,
|
|
495
487
|
max: 1200
|
|
496
488
|
}
|
|
497
|
-
},
|
|
489
|
+
}, pe = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
|
|
498
490
|
small: e,
|
|
499
491
|
medium: t
|
|
500
492
|
}) => {
|
|
501
|
-
const n =
|
|
493
|
+
const n = ce(De);
|
|
502
494
|
if (!e || !t)
|
|
503
495
|
return n;
|
|
504
496
|
const i = Math.floor(e / 2);
|
|
@@ -513,16 +505,16 @@ const yt = ({
|
|
|
513
505
|
min: o,
|
|
514
506
|
default: o + 1
|
|
515
507
|
};
|
|
516
|
-
const
|
|
508
|
+
const a = n.medium.max + 1;
|
|
517
509
|
return n.large = {
|
|
518
510
|
max: 2e3,
|
|
519
511
|
// TODO: decide upper limit
|
|
520
|
-
min:
|
|
521
|
-
default:
|
|
512
|
+
min: a,
|
|
513
|
+
default: a + 1
|
|
522
514
|
}, n;
|
|
523
515
|
};
|
|
524
|
-
function
|
|
525
|
-
return /* @__PURE__ */
|
|
516
|
+
function te(e) {
|
|
517
|
+
return /* @__PURE__ */ l(
|
|
526
518
|
"style",
|
|
527
519
|
{
|
|
528
520
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -533,71 +525,57 @@ function ne(e) {
|
|
|
533
525
|
}
|
|
534
526
|
function Tt(e) {
|
|
535
527
|
function t() {
|
|
536
|
-
const i =
|
|
537
|
-
block: e.block,
|
|
538
|
-
localState: e.context.localState,
|
|
539
|
-
rootState: e.context.rootState,
|
|
540
|
-
rootSetState: e.context.rootSetState,
|
|
541
|
-
context: e.context.context,
|
|
542
|
-
shouldEvaluateBindings: !0
|
|
543
|
-
});
|
|
528
|
+
const i = e.block;
|
|
544
529
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
545
530
|
}
|
|
546
531
|
function n() {
|
|
547
|
-
var
|
|
548
|
-
const i =
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
rootSetState: e.context.rootSetState,
|
|
553
|
-
context: e.context.context,
|
|
554
|
-
shouldEvaluateBindings: !0
|
|
555
|
-
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
556
|
-
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
557
|
-
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
558
|
-
if (!f)
|
|
532
|
+
var y, E, V;
|
|
533
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Le(
|
|
534
|
+
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
535
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
536
|
+
if (!m)
|
|
559
537
|
return "";
|
|
560
|
-
const
|
|
561
|
-
className:
|
|
562
|
-
styles:
|
|
563
|
-
}) : "",
|
|
564
|
-
className:
|
|
565
|
-
styles:
|
|
566
|
-
mediaQuery:
|
|
538
|
+
const h = s ? J({
|
|
539
|
+
className: m,
|
|
540
|
+
styles: s
|
|
541
|
+
}) : "", f = d ? J({
|
|
542
|
+
className: m,
|
|
543
|
+
styles: d,
|
|
544
|
+
mediaQuery: pe(
|
|
567
545
|
"medium",
|
|
568
|
-
|
|
546
|
+
r
|
|
569
547
|
)
|
|
570
|
-
}) : "",
|
|
571
|
-
className:
|
|
572
|
-
styles:
|
|
573
|
-
mediaQuery:
|
|
548
|
+
}) : "", u = c ? J({
|
|
549
|
+
className: m,
|
|
550
|
+
styles: c,
|
|
551
|
+
mediaQuery: pe(
|
|
574
552
|
"small",
|
|
575
|
-
|
|
553
|
+
r
|
|
576
554
|
)
|
|
577
|
-
}) : "",
|
|
578
|
-
let
|
|
579
|
-
if (
|
|
580
|
-
const A = ((V = (E =
|
|
581
|
-
|
|
582
|
-
className: `${
|
|
555
|
+
}) : "", g = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
556
|
+
let x = "";
|
|
557
|
+
if (g) {
|
|
558
|
+
const A = ((V = (E = g.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
559
|
+
x = J({
|
|
560
|
+
className: `${m}:hover`,
|
|
583
561
|
styles: {
|
|
584
562
|
...A,
|
|
585
|
-
transition: `all ${
|
|
586
|
-
|
|
563
|
+
transition: `all ${g.duration}s ${ee(
|
|
564
|
+
g.easing
|
|
587
565
|
)}`,
|
|
588
|
-
transitionDelay:
|
|
566
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
589
567
|
}
|
|
590
568
|
}) || "";
|
|
591
569
|
}
|
|
592
570
|
return [
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
571
|
+
h,
|
|
572
|
+
f,
|
|
573
|
+
u,
|
|
574
|
+
x
|
|
597
575
|
].join(" ");
|
|
598
576
|
}
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
|
|
577
|
+
return /* @__PURE__ */ l(R, { children: n() && t() ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
578
|
+
te,
|
|
601
579
|
{
|
|
602
580
|
id: "builderio-block",
|
|
603
581
|
styles: n(),
|
|
@@ -624,18 +602,18 @@ function Oe(e) {
|
|
|
624
602
|
for (const o in n) {
|
|
625
603
|
if (!n.hasOwnProperty(o))
|
|
626
604
|
continue;
|
|
627
|
-
const
|
|
628
|
-
let
|
|
605
|
+
const a = n[o];
|
|
606
|
+
let r = wt(o);
|
|
629
607
|
if (e.stripPrefix)
|
|
630
608
|
switch (z) {
|
|
631
609
|
case "vue":
|
|
632
|
-
|
|
610
|
+
r = r.replace("v-on:", "");
|
|
633
611
|
break;
|
|
634
612
|
case "svelte":
|
|
635
|
-
|
|
613
|
+
r = r.replace("on:", "");
|
|
636
614
|
break;
|
|
637
615
|
}
|
|
638
|
-
t[
|
|
616
|
+
t[r] = Rt(a, e);
|
|
639
617
|
}
|
|
640
618
|
return t;
|
|
641
619
|
}
|
|
@@ -647,7 +625,7 @@ function Et({
|
|
|
647
625
|
const Bt = (e) => ({
|
|
648
626
|
href: e.href
|
|
649
627
|
});
|
|
650
|
-
function
|
|
628
|
+
function me({
|
|
651
629
|
block: e,
|
|
652
630
|
context: t
|
|
653
631
|
}) {
|
|
@@ -669,11 +647,11 @@ function fe({
|
|
|
669
647
|
});
|
|
670
648
|
}
|
|
671
649
|
function Pt(e) {
|
|
672
|
-
return /* @__PURE__ */
|
|
673
|
-
|
|
650
|
+
return /* @__PURE__ */ l(
|
|
651
|
+
de,
|
|
674
652
|
{
|
|
675
653
|
TagName: e.Wrapper,
|
|
676
|
-
attributes:
|
|
654
|
+
attributes: me({
|
|
677
655
|
block: e.block,
|
|
678
656
|
context: e.context
|
|
679
657
|
}),
|
|
@@ -692,7 +670,7 @@ function Pt(e) {
|
|
|
692
670
|
function Vt(e) {
|
|
693
671
|
function t() {
|
|
694
672
|
return e.includeBlockProps ? {
|
|
695
|
-
...
|
|
673
|
+
...me({
|
|
696
674
|
block: e.block,
|
|
697
675
|
context: e.context
|
|
698
676
|
}),
|
|
@@ -705,7 +683,7 @@ function Vt(e) {
|
|
|
705
683
|
})
|
|
706
684
|
} : {};
|
|
707
685
|
}
|
|
708
|
-
return /* @__PURE__ */
|
|
686
|
+
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
709
687
|
}
|
|
710
688
|
const At = ({
|
|
711
689
|
componentOptions: e,
|
|
@@ -713,36 +691,36 @@ const At = ({
|
|
|
713
691
|
context: n,
|
|
714
692
|
componentRef: i,
|
|
715
693
|
includeBlockProps: o,
|
|
716
|
-
isInteractive:
|
|
717
|
-
contextValue:
|
|
694
|
+
isInteractive: a,
|
|
695
|
+
contextValue: r
|
|
718
696
|
}) => {
|
|
719
|
-
const
|
|
697
|
+
const s = {
|
|
720
698
|
...e,
|
|
721
699
|
/**
|
|
722
700
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
723
701
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
724
702
|
*/
|
|
725
703
|
...o ? {
|
|
726
|
-
attributes:
|
|
704
|
+
attributes: me({
|
|
727
705
|
block: t,
|
|
728
|
-
context:
|
|
706
|
+
context: r
|
|
729
707
|
})
|
|
730
708
|
} : {}
|
|
731
709
|
};
|
|
732
|
-
return
|
|
710
|
+
return a ? {
|
|
733
711
|
Wrapper: i,
|
|
734
712
|
block: t,
|
|
735
713
|
context: n,
|
|
736
714
|
wrapperProps: e,
|
|
737
715
|
includeBlockProps: o
|
|
738
|
-
} :
|
|
716
|
+
} : s;
|
|
739
717
|
};
|
|
740
|
-
function
|
|
718
|
+
function ye(e) {
|
|
741
719
|
var i;
|
|
742
|
-
const [t, n] =
|
|
720
|
+
const [t, n] = T(
|
|
743
721
|
() => e.isInteractive ? Vt : e.componentRef
|
|
744
722
|
);
|
|
745
|
-
return /* @__PURE__ */
|
|
723
|
+
return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
746
724
|
t,
|
|
747
725
|
{
|
|
748
726
|
...At({
|
|
@@ -755,7 +733,7 @@ function xe(e) {
|
|
|
755
733
|
isInteractive: e.isInteractive,
|
|
756
734
|
contextValue: e.context
|
|
757
735
|
}),
|
|
758
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
736
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
759
737
|
_,
|
|
760
738
|
{
|
|
761
739
|
block: o,
|
|
@@ -769,8 +747,8 @@ function xe(e) {
|
|
|
769
747
|
) }) : null });
|
|
770
748
|
}
|
|
771
749
|
function Nt(e) {
|
|
772
|
-
const [t, n] =
|
|
773
|
-
return /* @__PURE__ */
|
|
750
|
+
const [t, n] = T(() => e.repeatContext);
|
|
751
|
+
return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
774
752
|
_,
|
|
775
753
|
{
|
|
776
754
|
block: e.block,
|
|
@@ -781,10 +759,10 @@ function Nt(e) {
|
|
|
781
759
|
) });
|
|
782
760
|
}
|
|
783
761
|
function _(e) {
|
|
784
|
-
var
|
|
762
|
+
var m, h, f;
|
|
785
763
|
function t() {
|
|
786
764
|
return yt({
|
|
787
|
-
block:
|
|
765
|
+
block: a(),
|
|
788
766
|
context: e.context,
|
|
789
767
|
registeredComponents: e.registeredComponents
|
|
790
768
|
});
|
|
@@ -795,9 +773,15 @@ function _(e) {
|
|
|
795
773
|
context: e.context
|
|
796
774
|
});
|
|
797
775
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
776
|
+
const [i, o] = T(() => ({
|
|
777
|
+
value: null,
|
|
778
|
+
update: !1
|
|
779
|
+
}));
|
|
780
|
+
function a() {
|
|
781
|
+
var g;
|
|
782
|
+
if (i.value && !i.update && !Ie())
|
|
783
|
+
return i.value;
|
|
784
|
+
const u = (g = e.block.repeat) != null && g.collection ? e.block : dt({
|
|
801
785
|
block: e.block,
|
|
802
786
|
localState: e.context.localState,
|
|
803
787
|
rootState: e.context.rootState,
|
|
@@ -805,30 +789,31 @@ function _(e) {
|
|
|
805
789
|
context: e.context.context,
|
|
806
790
|
shouldEvaluateBindings: !0
|
|
807
791
|
});
|
|
808
|
-
|
|
809
|
-
function o() {
|
|
810
|
-
var m;
|
|
811
|
-
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
792
|
+
return i.value = u, i.update = !1, u;
|
|
812
793
|
}
|
|
813
794
|
function r() {
|
|
814
|
-
var g
|
|
815
|
-
|
|
816
|
-
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
817
|
-
const d = "hide" in i() ? i().hide : !1;
|
|
818
|
-
return ("show" in i() ? i().show : !0) && !d;
|
|
795
|
+
var g;
|
|
796
|
+
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
819
797
|
}
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
|
|
798
|
+
function s() {
|
|
799
|
+
var x, y;
|
|
800
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
801
|
+
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
802
|
+
const u = "hide" in a() ? a().hide : !1;
|
|
803
|
+
return ("show" in a() ? a().show : !0) && !u;
|
|
823
804
|
}
|
|
824
|
-
function
|
|
825
|
-
var
|
|
805
|
+
function d() {
|
|
806
|
+
var g, x;
|
|
807
|
+
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (x = a().children) != null ? x : [] : [];
|
|
808
|
+
}
|
|
809
|
+
function c() {
|
|
810
|
+
var u, g, x, y;
|
|
826
811
|
return {
|
|
827
|
-
blockChildren: (
|
|
828
|
-
componentRef: (
|
|
812
|
+
blockChildren: (u = a().children) != null ? u : [],
|
|
813
|
+
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
829
814
|
componentOptions: {
|
|
830
|
-
...
|
|
831
|
-
...kt(t(),
|
|
815
|
+
...nt(a()),
|
|
816
|
+
...kt(t(), a()),
|
|
832
817
|
...Ct(t(), e.context),
|
|
833
818
|
...vt(t(), e.linkComponent),
|
|
834
819
|
...St(
|
|
@@ -839,73 +824,75 @@ function _(e) {
|
|
|
839
824
|
context: e.context,
|
|
840
825
|
linkComponent: e.linkComponent,
|
|
841
826
|
registeredComponents: e.registeredComponents,
|
|
842
|
-
builderBlock:
|
|
843
|
-
includeBlockProps: ((
|
|
844
|
-
isInteractive: !((
|
|
827
|
+
builderBlock: a(),
|
|
828
|
+
includeBlockProps: ((x = t == null ? void 0 : t()) == null ? void 0 : x.noWrap) === !0,
|
|
829
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
845
830
|
};
|
|
846
831
|
}
|
|
847
832
|
return B(() => {
|
|
848
|
-
const
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
...
|
|
852
|
-
elementId:
|
|
833
|
+
const u = a().id, g = a().animations;
|
|
834
|
+
g && u && mt(
|
|
835
|
+
g.map((x) => ({
|
|
836
|
+
...x,
|
|
837
|
+
elementId: u
|
|
853
838
|
}))
|
|
854
839
|
);
|
|
855
|
-
}, []),
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
840
|
+
}, []), B(() => {
|
|
841
|
+
i.update = !0;
|
|
842
|
+
}), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
|
|
843
|
+
/* @__PURE__ */ l(Tt, { block: a(), context: e.context }),
|
|
844
|
+
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
845
|
+
ye,
|
|
859
846
|
{
|
|
860
|
-
componentRef:
|
|
861
|
-
componentOptions:
|
|
862
|
-
blockChildren:
|
|
863
|
-
context:
|
|
864
|
-
registeredComponents:
|
|
865
|
-
linkComponent:
|
|
866
|
-
builderBlock:
|
|
867
|
-
includeBlockProps:
|
|
868
|
-
isInteractive:
|
|
847
|
+
componentRef: c().componentRef,
|
|
848
|
+
componentOptions: c().componentOptions,
|
|
849
|
+
blockChildren: c().blockChildren,
|
|
850
|
+
context: c().context,
|
|
851
|
+
registeredComponents: c().registeredComponents,
|
|
852
|
+
linkComponent: c().linkComponent,
|
|
853
|
+
builderBlock: c().builderBlock,
|
|
854
|
+
includeBlockProps: c().includeBlockProps,
|
|
855
|
+
isInteractive: c().isInteractive
|
|
869
856
|
}
|
|
870
|
-
) }) : /* @__PURE__ */
|
|
857
|
+
) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
871
858
|
Nt,
|
|
872
859
|
{
|
|
873
|
-
repeatContext:
|
|
874
|
-
block:
|
|
860
|
+
repeatContext: u.context,
|
|
861
|
+
block: u.block,
|
|
875
862
|
registeredComponents: e.registeredComponents,
|
|
876
863
|
linkComponent: e.linkComponent
|
|
877
864
|
},
|
|
878
|
-
|
|
865
|
+
g
|
|
879
866
|
)) }) : /* @__PURE__ */ P(
|
|
880
867
|
Pt,
|
|
881
868
|
{
|
|
882
|
-
Wrapper:
|
|
883
|
-
block:
|
|
869
|
+
Wrapper: r(),
|
|
870
|
+
block: a(),
|
|
884
871
|
context: e.context,
|
|
885
872
|
children: [
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
|
|
873
|
+
/* @__PURE__ */ l(
|
|
874
|
+
ye,
|
|
888
875
|
{
|
|
889
|
-
componentRef:
|
|
890
|
-
componentOptions:
|
|
891
|
-
blockChildren:
|
|
892
|
-
context:
|
|
893
|
-
registeredComponents:
|
|
894
|
-
linkComponent:
|
|
895
|
-
builderBlock:
|
|
896
|
-
includeBlockProps:
|
|
897
|
-
isInteractive:
|
|
876
|
+
componentRef: c().componentRef,
|
|
877
|
+
componentOptions: c().componentOptions,
|
|
878
|
+
blockChildren: c().blockChildren,
|
|
879
|
+
context: c().context,
|
|
880
|
+
registeredComponents: c().registeredComponents,
|
|
881
|
+
linkComponent: c().linkComponent,
|
|
882
|
+
builderBlock: c().builderBlock,
|
|
883
|
+
includeBlockProps: c().includeBlockProps,
|
|
884
|
+
isInteractive: c().isInteractive
|
|
898
885
|
}
|
|
899
886
|
),
|
|
900
|
-
(
|
|
887
|
+
(h = d()) == null ? void 0 : h.map((u) => /* @__PURE__ */ l(
|
|
901
888
|
_,
|
|
902
889
|
{
|
|
903
|
-
block:
|
|
890
|
+
block: u,
|
|
904
891
|
registeredComponents: e.registeredComponents,
|
|
905
892
|
linkComponent: e.linkComponent,
|
|
906
893
|
context: e.context
|
|
907
894
|
},
|
|
908
|
-
|
|
895
|
+
u.id
|
|
909
896
|
))
|
|
910
897
|
]
|
|
911
898
|
}
|
|
@@ -918,8 +905,8 @@ function Wt(e) {
|
|
|
918
905
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
919
906
|
}
|
|
920
907
|
function n() {
|
|
921
|
-
var o,
|
|
922
|
-
$() && !((o = e.blocks) != null && o.length) && ((
|
|
908
|
+
var o, a;
|
|
909
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
923
910
|
{
|
|
924
911
|
type: "builder.clickEmptyBlocks",
|
|
925
912
|
data: {
|
|
@@ -931,8 +918,8 @@ function Wt(e) {
|
|
|
931
918
|
));
|
|
932
919
|
}
|
|
933
920
|
function i() {
|
|
934
|
-
var o,
|
|
935
|
-
$() && !((o = e.blocks) != null && o.length) && ((
|
|
921
|
+
var o, a;
|
|
922
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
936
923
|
{
|
|
937
924
|
type: "builder.hoverEmptyBlocks",
|
|
938
925
|
data: {
|
|
@@ -944,7 +931,7 @@ function Wt(e) {
|
|
|
944
931
|
));
|
|
945
932
|
}
|
|
946
933
|
return /* @__PURE__ */ P(R, { children: [
|
|
947
|
-
/* @__PURE__ */
|
|
934
|
+
/* @__PURE__ */ l(
|
|
948
935
|
e.BlocksWrapper,
|
|
949
936
|
{
|
|
950
937
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -958,7 +945,7 @@ function Wt(e) {
|
|
|
958
945
|
children: e.children
|
|
959
946
|
}
|
|
960
947
|
),
|
|
961
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
962
949
|
display: flex;
|
|
963
950
|
flex-direction: column;
|
|
964
951
|
align-items: stretch;
|
|
@@ -966,9 +953,9 @@ function Wt(e) {
|
|
|
966
953
|
] });
|
|
967
954
|
}
|
|
968
955
|
function D(e) {
|
|
969
|
-
var i, o,
|
|
970
|
-
const t =
|
|
971
|
-
return /* @__PURE__ */
|
|
956
|
+
var i, o, a;
|
|
957
|
+
const t = ge(ue), n = ge(Be);
|
|
958
|
+
return /* @__PURE__ */ l(
|
|
972
959
|
Wt,
|
|
973
960
|
{
|
|
974
961
|
blocks: e.blocks,
|
|
@@ -977,15 +964,15 @@ function D(e) {
|
|
|
977
964
|
styleProp: e.styleProp,
|
|
978
965
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
979
966
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
980
|
-
children: e.blocks ? /* @__PURE__ */
|
|
967
|
+
children: e.blocks ? /* @__PURE__ */ l(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
981
968
|
_,
|
|
982
969
|
{
|
|
983
|
-
block:
|
|
970
|
+
block: r,
|
|
984
971
|
linkComponent: e.linkComponent,
|
|
985
972
|
context: e.context || t,
|
|
986
973
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
987
974
|
},
|
|
988
|
-
|
|
975
|
+
r.id
|
|
989
976
|
)) }) : null
|
|
990
977
|
}
|
|
991
978
|
);
|
|
@@ -993,48 +980,48 @@ function D(e) {
|
|
|
993
980
|
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
994
981
|
function $t(e) {
|
|
995
982
|
var A, O;
|
|
996
|
-
const [t, n] =
|
|
983
|
+
const [t, n] = T(
|
|
997
984
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
998
|
-
), [i, o] =
|
|
985
|
+
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
999
986
|
() => e.stackColumnsAt || "tablet"
|
|
1000
987
|
);
|
|
1001
|
-
function
|
|
1002
|
-
return
|
|
988
|
+
function s(k) {
|
|
989
|
+
return k.link ? e.builderLinkComponent || "a" : "div";
|
|
1003
990
|
}
|
|
1004
|
-
function
|
|
991
|
+
function d(k) {
|
|
1005
992
|
var w;
|
|
1006
|
-
return ((w = i[
|
|
993
|
+
return ((w = i[k]) == null ? void 0 : w.width) || 100 / i.length;
|
|
1007
994
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const w =
|
|
995
|
+
function c(k) {
|
|
996
|
+
const w = d(k), N = t * (i.length - 1) * (w / 100);
|
|
1010
997
|
return `calc(${w}% - ${N}px)`;
|
|
1011
998
|
}
|
|
1012
|
-
function
|
|
1013
|
-
stackedStyle:
|
|
999
|
+
function m({
|
|
1000
|
+
stackedStyle: k,
|
|
1014
1001
|
desktopStyle: w
|
|
1015
1002
|
}) {
|
|
1016
|
-
return
|
|
1003
|
+
return a === "tablet" ? k : w;
|
|
1017
1004
|
}
|
|
1018
|
-
function
|
|
1019
|
-
stackedStyle:
|
|
1005
|
+
function h({
|
|
1006
|
+
stackedStyle: k,
|
|
1020
1007
|
desktopStyle: w
|
|
1021
1008
|
}) {
|
|
1022
|
-
return
|
|
1009
|
+
return a === "never" ? w : k;
|
|
1023
1010
|
}
|
|
1024
|
-
const [
|
|
1011
|
+
const [f, u] = T(
|
|
1025
1012
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1026
1013
|
);
|
|
1027
|
-
function
|
|
1014
|
+
function g() {
|
|
1028
1015
|
return {
|
|
1029
|
-
"--flex-dir":
|
|
1030
|
-
"--flex-dir-tablet":
|
|
1031
|
-
stackedStyle:
|
|
1016
|
+
"--flex-dir": f,
|
|
1017
|
+
"--flex-dir-tablet": m({
|
|
1018
|
+
stackedStyle: f,
|
|
1032
1019
|
desktopStyle: "row"
|
|
1033
1020
|
})
|
|
1034
1021
|
};
|
|
1035
1022
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const w =
|
|
1023
|
+
function x(k) {
|
|
1024
|
+
const w = k === 0 ? 0 : t, N = c(k), p = `${w}px`, b = "100%", v = 0;
|
|
1038
1025
|
return {
|
|
1039
1026
|
...{
|
|
1040
1027
|
display: "flex",
|
|
@@ -1042,34 +1029,34 @@ function $t(e) {
|
|
|
1042
1029
|
alignItems: "stretch"
|
|
1043
1030
|
},
|
|
1044
1031
|
width: N,
|
|
1045
|
-
["marginLeft"]:
|
|
1046
|
-
"--column-width-mobile":
|
|
1047
|
-
stackedStyle:
|
|
1032
|
+
["marginLeft"]: p,
|
|
1033
|
+
"--column-width-mobile": h({
|
|
1034
|
+
stackedStyle: b,
|
|
1048
1035
|
desktopStyle: N
|
|
1049
1036
|
}),
|
|
1050
|
-
"--column-margin-left-mobile":
|
|
1051
|
-
stackedStyle:
|
|
1052
|
-
desktopStyle:
|
|
1037
|
+
"--column-margin-left-mobile": h({
|
|
1038
|
+
stackedStyle: v,
|
|
1039
|
+
desktopStyle: p
|
|
1053
1040
|
}),
|
|
1054
|
-
"--column-width-tablet":
|
|
1055
|
-
stackedStyle:
|
|
1041
|
+
"--column-width-tablet": m({
|
|
1042
|
+
stackedStyle: b,
|
|
1056
1043
|
desktopStyle: N
|
|
1057
1044
|
}),
|
|
1058
|
-
"--column-margin-left-tablet":
|
|
1059
|
-
stackedStyle:
|
|
1060
|
-
desktopStyle:
|
|
1045
|
+
"--column-margin-left-tablet": m({
|
|
1046
|
+
stackedStyle: v,
|
|
1047
|
+
desktopStyle: p
|
|
1061
1048
|
})
|
|
1062
1049
|
};
|
|
1063
1050
|
}
|
|
1064
|
-
function
|
|
1065
|
-
var N,
|
|
1051
|
+
function y(k) {
|
|
1052
|
+
var N, p;
|
|
1066
1053
|
return Le(
|
|
1067
|
-
((
|
|
1068
|
-
)[
|
|
1054
|
+
((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
|
|
1055
|
+
)[k].max;
|
|
1069
1056
|
}
|
|
1070
1057
|
function E() {
|
|
1071
1058
|
return `
|
|
1072
|
-
@media (max-width: ${
|
|
1059
|
+
@media (max-width: ${y("medium")}px) {
|
|
1073
1060
|
.${e.builderBlock.id}-breakpoints {
|
|
1074
1061
|
flex-direction: var(--flex-dir-tablet);
|
|
1075
1062
|
align-items: stretch;
|
|
@@ -1081,7 +1068,7 @@ function $t(e) {
|
|
|
1081
1068
|
}
|
|
1082
1069
|
}
|
|
1083
1070
|
|
|
1084
|
-
@media (max-width: ${
|
|
1071
|
+
@media (max-width: ${y("small")}px) {
|
|
1085
1072
|
.${e.builderBlock.id}-breakpoints {
|
|
1086
1073
|
flex-direction: var(--flex-dir);
|
|
1087
1074
|
align-items: stretch;
|
|
@@ -1094,13 +1081,13 @@ function $t(e) {
|
|
|
1094
1081
|
},
|
|
1095
1082
|
`;
|
|
1096
1083
|
}
|
|
1097
|
-
function V(
|
|
1084
|
+
function V(k, w) {
|
|
1098
1085
|
return {
|
|
1099
|
-
...
|
|
1100
|
-
href:
|
|
1086
|
+
...k.link ? {
|
|
1087
|
+
href: k.link
|
|
1101
1088
|
} : {},
|
|
1102
1089
|
[q()]: "builder-column",
|
|
1103
|
-
style: $e(
|
|
1090
|
+
style: $e(x(w))
|
|
1104
1091
|
};
|
|
1105
1092
|
}
|
|
1106
1093
|
return /* @__PURE__ */ P(R, { children: [
|
|
@@ -1108,23 +1095,23 @@ function $t(e) {
|
|
|
1108
1095
|
"div",
|
|
1109
1096
|
{
|
|
1110
1097
|
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1111
|
-
style:
|
|
1098
|
+
style: g(),
|
|
1112
1099
|
children: [
|
|
1113
|
-
/* @__PURE__ */
|
|
1114
|
-
|
|
1100
|
+
/* @__PURE__ */ l(
|
|
1101
|
+
te,
|
|
1115
1102
|
{
|
|
1116
1103
|
id: "builderio-columns",
|
|
1117
1104
|
styles: E(),
|
|
1118
1105
|
nonce: e.builderContext.nonce
|
|
1119
1106
|
}
|
|
1120
1107
|
),
|
|
1121
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
1122
|
-
|
|
1108
|
+
(O = e.columns) == null ? void 0 : O.map((k, w) => /* @__PURE__ */ l(
|
|
1109
|
+
de,
|
|
1123
1110
|
{
|
|
1124
|
-
TagName:
|
|
1111
|
+
TagName: s(k),
|
|
1125
1112
|
actionAttributes: {},
|
|
1126
|
-
attributes: V(
|
|
1127
|
-
children: /* @__PURE__ */
|
|
1113
|
+
attributes: V(k, w),
|
|
1114
|
+
children: /* @__PURE__ */ l(
|
|
1128
1115
|
D,
|
|
1129
1116
|
{
|
|
1130
1117
|
path: `component.options.columns.${w}.blocks`,
|
|
@@ -1135,7 +1122,7 @@ function $t(e) {
|
|
|
1135
1122
|
context: e.builderContext,
|
|
1136
1123
|
registeredComponents: e.builderComponents,
|
|
1137
1124
|
linkComponent: e.builderLinkComponent,
|
|
1138
|
-
blocks:
|
|
1125
|
+
blocks: k.blocks
|
|
1139
1126
|
}
|
|
1140
1127
|
)
|
|
1141
1128
|
},
|
|
@@ -1144,16 +1131,16 @@ function $t(e) {
|
|
|
1144
1131
|
]
|
|
1145
1132
|
}
|
|
1146
1133
|
),
|
|
1147
|
-
/* @__PURE__ */
|
|
1134
|
+
/* @__PURE__ */ l("style", { children: `.div-fe220f58 {
|
|
1148
1135
|
display: flex;
|
|
1149
1136
|
line-height: normal;
|
|
1150
1137
|
}` })
|
|
1151
1138
|
] });
|
|
1152
1139
|
}
|
|
1153
1140
|
function Dt(e) {
|
|
1154
|
-
return /* @__PURE__ */
|
|
1141
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1155
1142
|
}
|
|
1156
|
-
function
|
|
1143
|
+
function xe(e) {
|
|
1157
1144
|
return e.replace(/http(s)?:/, "");
|
|
1158
1145
|
}
|
|
1159
1146
|
function Lt(e = "", t, n) {
|
|
@@ -1164,15 +1151,15 @@ function Ot(e, t) {
|
|
|
1164
1151
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1165
1152
|
return e;
|
|
1166
1153
|
if (t === "master")
|
|
1167
|
-
return
|
|
1154
|
+
return xe(e);
|
|
1168
1155
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1169
1156
|
if (n) {
|
|
1170
|
-
const i = e.split(n[0]), o = n[3],
|
|
1171
|
-
return
|
|
1157
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1158
|
+
return xe(`${i[0]}_${a}${o}`);
|
|
1172
1159
|
}
|
|
1173
1160
|
return null;
|
|
1174
1161
|
}
|
|
1175
|
-
function
|
|
1162
|
+
function ie(e) {
|
|
1176
1163
|
if (!e)
|
|
1177
1164
|
return e;
|
|
1178
1165
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1184,40 +1171,40 @@ function oe(e) {
|
|
|
1184
1171
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1185
1172
|
}
|
|
1186
1173
|
function jt(e) {
|
|
1187
|
-
var o, r,
|
|
1174
|
+
var o, a, r, s, d, c;
|
|
1188
1175
|
function t() {
|
|
1189
|
-
var
|
|
1190
|
-
const
|
|
1191
|
-
if (!
|
|
1176
|
+
var f;
|
|
1177
|
+
const h = e.image || e.src;
|
|
1178
|
+
if (!h || // We can auto add srcset for cdn.builder.io and shopify
|
|
1192
1179
|
// images, otherwise you can supply this prop manually
|
|
1193
|
-
!(
|
|
1180
|
+
!(h.match(/builder\.io/) || h.match(/cdn\.shopify\.com/)))
|
|
1194
1181
|
return e.srcset;
|
|
1195
|
-
if (e.srcset && ((
|
|
1182
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1196
1183
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1197
|
-
return console.debug("Removed given srcset"),
|
|
1184
|
+
return console.debug("Removed given srcset"), ie(h);
|
|
1198
1185
|
} else if (e.image && !e.srcset)
|
|
1199
|
-
return
|
|
1200
|
-
return
|
|
1186
|
+
return ie(h);
|
|
1187
|
+
return ie(h);
|
|
1201
1188
|
}
|
|
1202
1189
|
function n() {
|
|
1203
|
-
var
|
|
1204
|
-
return (
|
|
1190
|
+
var m;
|
|
1191
|
+
return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1205
1192
|
}
|
|
1206
1193
|
function i() {
|
|
1207
|
-
const
|
|
1194
|
+
const m = {
|
|
1208
1195
|
position: "absolute",
|
|
1209
1196
|
height: "100%",
|
|
1210
1197
|
width: "100%",
|
|
1211
1198
|
left: "0px",
|
|
1212
1199
|
top: "0px"
|
|
1213
1200
|
};
|
|
1214
|
-
return e.aspectRatio ?
|
|
1201
|
+
return e.aspectRatio ? m : void 0;
|
|
1215
1202
|
}
|
|
1216
1203
|
return /* @__PURE__ */ P(R, { children: [
|
|
1217
1204
|
/* @__PURE__ */ P(R, { children: [
|
|
1218
1205
|
/* @__PURE__ */ P("picture", { children: [
|
|
1219
|
-
n() ? /* @__PURE__ */
|
|
1220
|
-
/* @__PURE__ */
|
|
1206
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1207
|
+
/* @__PURE__ */ l(
|
|
1221
1208
|
"img",
|
|
1222
1209
|
{
|
|
1223
1210
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1236,7 +1223,7 @@ function jt(e) {
|
|
|
1236
1223
|
}
|
|
1237
1224
|
)
|
|
1238
1225
|
] }),
|
|
1239
|
-
e.aspectRatio && !((
|
|
1226
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1240
1227
|
"div",
|
|
1241
1228
|
{
|
|
1242
1229
|
className: "builder-image-sizer div-ac3dff4a",
|
|
@@ -1245,10 +1232,10 @@ function jt(e) {
|
|
|
1245
1232
|
}
|
|
1246
1233
|
}
|
|
1247
1234
|
) : null,
|
|
1248
|
-
(
|
|
1249
|
-
!e.fitContent && ((
|
|
1235
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(R, { children: e.children }) : null,
|
|
1236
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1250
1237
|
] }),
|
|
1251
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
|
|
1252
1239
|
opacity: 1;
|
|
1253
1240
|
transition: opacity 0.2s ease-in-out;
|
|
1254
1241
|
}.div-ac3dff4a {
|
|
@@ -1268,7 +1255,7 @@ function jt(e) {
|
|
|
1268
1255
|
] });
|
|
1269
1256
|
}
|
|
1270
1257
|
function Ut(e) {
|
|
1271
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ l(
|
|
1272
1259
|
"section",
|
|
1273
1260
|
{
|
|
1274
1261
|
...e.attributes,
|
|
@@ -1288,7 +1275,7 @@ function Ut(e) {
|
|
|
1288
1275
|
}
|
|
1289
1276
|
);
|
|
1290
1277
|
}
|
|
1291
|
-
const
|
|
1278
|
+
const oe = {
|
|
1292
1279
|
"@type": "@builder.io/sdk:Element",
|
|
1293
1280
|
layerName: "Accordion item title",
|
|
1294
1281
|
responsiveStyles: {
|
|
@@ -1317,7 +1304,7 @@ const ae = {
|
|
|
1317
1304
|
}
|
|
1318
1305
|
}
|
|
1319
1306
|
}]
|
|
1320
|
-
},
|
|
1307
|
+
}, ae = {
|
|
1321
1308
|
"@type": "@builder.io/sdk:Element",
|
|
1322
1309
|
layerName: "Accordion item detail",
|
|
1323
1310
|
responsiveStyles: {
|
|
@@ -1365,19 +1352,19 @@ const ae = {
|
|
|
1365
1352
|
name: "title",
|
|
1366
1353
|
type: "uiBlocks",
|
|
1367
1354
|
hideFromUI: !0,
|
|
1368
|
-
defaultValue: [
|
|
1355
|
+
defaultValue: [oe]
|
|
1369
1356
|
}, {
|
|
1370
1357
|
name: "detail",
|
|
1371
1358
|
type: "uiBlocks",
|
|
1372
1359
|
hideFromUI: !0,
|
|
1373
|
-
defaultValue: [
|
|
1360
|
+
defaultValue: [ae]
|
|
1374
1361
|
}],
|
|
1375
1362
|
defaultValue: [{
|
|
1376
|
-
title: [
|
|
1377
|
-
detail: [
|
|
1363
|
+
title: [oe],
|
|
1364
|
+
detail: [ae]
|
|
1378
1365
|
}, {
|
|
1379
|
-
title: [
|
|
1380
|
-
detail: [
|
|
1366
|
+
title: [oe],
|
|
1367
|
+
detail: [ae]
|
|
1381
1368
|
}],
|
|
1382
1369
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1383
1370
|
}, {
|
|
@@ -1412,10 +1399,10 @@ const ae = {
|
|
|
1412
1399
|
builderComponents: !0,
|
|
1413
1400
|
builderLinkComponent: !0
|
|
1414
1401
|
}
|
|
1415
|
-
},
|
|
1402
|
+
}, ve = (e) => e.toString();
|
|
1416
1403
|
function Ht(e) {
|
|
1417
|
-
var
|
|
1418
|
-
const [t, n] =
|
|
1404
|
+
var h;
|
|
1405
|
+
const [t, n] = T(() => []);
|
|
1419
1406
|
function i() {
|
|
1420
1407
|
return !!(e.grid || e.oneAtATime);
|
|
1421
1408
|
}
|
|
@@ -1431,8 +1418,8 @@ function Ht(e) {
|
|
|
1431
1418
|
}
|
|
1432
1419
|
};
|
|
1433
1420
|
}
|
|
1434
|
-
function
|
|
1435
|
-
const
|
|
1421
|
+
function a() {
|
|
1422
|
+
const u = {
|
|
1436
1423
|
...{
|
|
1437
1424
|
display: "flex",
|
|
1438
1425
|
flexDirection: "column"
|
|
@@ -1441,73 +1428,73 @@ function Ht(e) {
|
|
|
1441
1428
|
cursor: "pointer"
|
|
1442
1429
|
};
|
|
1443
1430
|
return Object.fromEntries(
|
|
1444
|
-
Object.entries(
|
|
1431
|
+
Object.entries(u).filter(([g, x]) => x !== void 0)
|
|
1445
1432
|
);
|
|
1446
1433
|
}
|
|
1447
|
-
function
|
|
1448
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1434
|
+
function r(f) {
|
|
1435
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1449
1436
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1437
|
+
function s(f) {
|
|
1438
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1452
1439
|
}
|
|
1453
|
-
function
|
|
1454
|
-
let
|
|
1440
|
+
function d() {
|
|
1441
|
+
let f = null;
|
|
1455
1442
|
if (e.grid && t.length && document) {
|
|
1456
|
-
const
|
|
1457
|
-
let
|
|
1458
|
-
`.builder-accordion-title[data-index="${
|
|
1443
|
+
const g = t[0];
|
|
1444
|
+
let y = document.querySelector(
|
|
1445
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1459
1446
|
);
|
|
1460
|
-
if (
|
|
1461
|
-
let E =
|
|
1462
|
-
for (;
|
|
1463
|
-
if (
|
|
1464
|
-
if (
|
|
1447
|
+
if (f = g, y) {
|
|
1448
|
+
let E = y.getBoundingClientRect();
|
|
1449
|
+
for (; y = y && y.nextElementSibling; )
|
|
1450
|
+
if (y) {
|
|
1451
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1465
1452
|
continue;
|
|
1466
|
-
const V =
|
|
1453
|
+
const V = y.getBoundingClientRect();
|
|
1467
1454
|
if (V.left > E.left) {
|
|
1468
1455
|
const A = parseInt(
|
|
1469
|
-
|
|
1456
|
+
y.getAttribute("data-index") || "",
|
|
1470
1457
|
10
|
|
1471
1458
|
);
|
|
1472
|
-
isNaN(A) || (E = V,
|
|
1459
|
+
isNaN(A) || (E = V, f = A);
|
|
1473
1460
|
} else
|
|
1474
1461
|
break;
|
|
1475
1462
|
}
|
|
1476
1463
|
}
|
|
1477
1464
|
}
|
|
1478
|
-
return typeof
|
|
1465
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1479
1466
|
}
|
|
1480
|
-
function
|
|
1481
|
-
const
|
|
1482
|
-
order: typeof
|
|
1467
|
+
function c() {
|
|
1468
|
+
const f = {
|
|
1469
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1483
1470
|
...e.grid && {
|
|
1484
1471
|
width: "100%"
|
|
1485
1472
|
}
|
|
1486
1473
|
};
|
|
1487
1474
|
return Object.fromEntries(
|
|
1488
|
-
Object.entries(
|
|
1475
|
+
Object.entries(f).filter(([u, g]) => g !== void 0)
|
|
1489
1476
|
);
|
|
1490
1477
|
}
|
|
1491
|
-
function f
|
|
1492
|
-
t.includes(
|
|
1478
|
+
function m(f) {
|
|
1479
|
+
t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
|
|
1493
1480
|
}
|
|
1494
|
-
return /* @__PURE__ */
|
|
1495
|
-
/* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ P(R, { children: [
|
|
1482
|
+
/* @__PURE__ */ l(
|
|
1496
1483
|
"div",
|
|
1497
1484
|
{
|
|
1498
|
-
className:
|
|
1485
|
+
className: r(u),
|
|
1499
1486
|
style: {
|
|
1500
|
-
...
|
|
1487
|
+
...a(),
|
|
1501
1488
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1502
|
-
order:
|
|
1489
|
+
order: d() !== null ? ve(u) : ve(u + 1)
|
|
1503
1490
|
},
|
|
1504
|
-
"data-index":
|
|
1505
|
-
onClick: (
|
|
1506
|
-
children: /* @__PURE__ */
|
|
1491
|
+
"data-index": u,
|
|
1492
|
+
onClick: (g) => m(u),
|
|
1493
|
+
children: /* @__PURE__ */ l(
|
|
1507
1494
|
D,
|
|
1508
1495
|
{
|
|
1509
|
-
blocks:
|
|
1510
|
-
path: `items.${
|
|
1496
|
+
blocks: f.title,
|
|
1497
|
+
path: `items.${u}.title`,
|
|
1511
1498
|
parent: e.builderBlock.id,
|
|
1512
1499
|
context: e.builderContext,
|
|
1513
1500
|
registeredComponents: e.builderComponents,
|
|
@@ -1516,16 +1503,16 @@ function Ht(e) {
|
|
|
1516
1503
|
)
|
|
1517
1504
|
}
|
|
1518
1505
|
),
|
|
1519
|
-
t.includes(
|
|
1506
|
+
t.includes(u) ? /* @__PURE__ */ l(
|
|
1520
1507
|
"div",
|
|
1521
1508
|
{
|
|
1522
|
-
className:
|
|
1523
|
-
style:
|
|
1524
|
-
children: /* @__PURE__ */
|
|
1509
|
+
className: s(u),
|
|
1510
|
+
style: c(),
|
|
1511
|
+
children: /* @__PURE__ */ l(
|
|
1525
1512
|
D,
|
|
1526
1513
|
{
|
|
1527
|
-
blocks:
|
|
1528
|
-
path: `items.${
|
|
1514
|
+
blocks: f.detail,
|
|
1515
|
+
path: `items.${u}.detail`,
|
|
1529
1516
|
parent: e.builderBlock.id,
|
|
1530
1517
|
context: e.builderContext,
|
|
1531
1518
|
registeredComponents: e.builderComponents,
|
|
@@ -1751,7 +1738,7 @@ const qt = {
|
|
|
1751
1738
|
});
|
|
1752
1739
|
}
|
|
1753
1740
|
const n = e.get("columns");
|
|
1754
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1741
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1755
1742
|
}
|
|
1756
1743
|
}, {
|
|
1757
1744
|
name: "space",
|
|
@@ -1805,29 +1792,29 @@ const qt = {
|
|
|
1805
1792
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1806
1793
|
onChange: (e) => {
|
|
1807
1794
|
e.delete("srcset"), e.delete("noWebp");
|
|
1808
|
-
function n(
|
|
1809
|
-
return new Promise((
|
|
1810
|
-
const
|
|
1811
|
-
let
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
},
|
|
1815
|
-
console.warn("Image load failed",
|
|
1816
|
-
}),
|
|
1817
|
-
|
|
1818
|
-
},
|
|
1795
|
+
function n(r, s = 6e4) {
|
|
1796
|
+
return new Promise((d, c) => {
|
|
1797
|
+
const m = document.createElement("img");
|
|
1798
|
+
let h = !1;
|
|
1799
|
+
m.onload = () => {
|
|
1800
|
+
h = !0, d(m);
|
|
1801
|
+
}, m.addEventListener("error", (f) => {
|
|
1802
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1803
|
+
}), m.src = r, setTimeout(() => {
|
|
1804
|
+
h || c(new Error("Image load timed out"));
|
|
1805
|
+
}, s);
|
|
1819
1806
|
});
|
|
1820
1807
|
}
|
|
1821
|
-
function i(
|
|
1822
|
-
return Math.round(
|
|
1808
|
+
function i(r) {
|
|
1809
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1823
1810
|
}
|
|
1824
|
-
const o = e.get("image"),
|
|
1825
|
-
if (fetch(o).then((
|
|
1826
|
-
|
|
1827
|
-
}), o && (!
|
|
1828
|
-
return n(o).then((
|
|
1829
|
-
const
|
|
1830
|
-
e.get("image") === o && (!
|
|
1811
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1812
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1813
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1814
|
+
}), o && (!a || a === 0.7041))
|
|
1815
|
+
return n(o).then((r) => {
|
|
1816
|
+
const s = e.get("aspectRatio");
|
|
1817
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1831
1818
|
});
|
|
1832
1819
|
}
|
|
1833
1820
|
}, {
|
|
@@ -1951,7 +1938,7 @@ const qt = {
|
|
|
1951
1938
|
};
|
|
1952
1939
|
function Gt(e) {
|
|
1953
1940
|
var t, n, i;
|
|
1954
|
-
return /* @__PURE__ */
|
|
1941
|
+
return /* @__PURE__ */ l(
|
|
1955
1942
|
"div",
|
|
1956
1943
|
{
|
|
1957
1944
|
style: {
|
|
@@ -1960,7 +1947,7 @@ function Gt(e) {
|
|
|
1960
1947
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1961
1948
|
"builder-slot": e.name
|
|
1962
1949
|
},
|
|
1963
|
-
children: /* @__PURE__ */
|
|
1950
|
+
children: /* @__PURE__ */ l(
|
|
1964
1951
|
D,
|
|
1965
1952
|
{
|
|
1966
1953
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2011,7 +1998,7 @@ const Qt = {
|
|
|
2011
1998
|
builderComponents: !0,
|
|
2012
1999
|
builderLinkComponent: !0
|
|
2013
2000
|
}
|
|
2014
|
-
},
|
|
2001
|
+
}, re = {
|
|
2015
2002
|
"@type": "@builder.io/sdk:Element",
|
|
2016
2003
|
responsiveStyles: {
|
|
2017
2004
|
large: {
|
|
@@ -2033,7 +2020,7 @@ const Qt = {
|
|
|
2033
2020
|
text: "New tab"
|
|
2034
2021
|
}
|
|
2035
2022
|
}
|
|
2036
|
-
},
|
|
2023
|
+
}, le = {
|
|
2037
2024
|
"@type": "@builder.io/sdk:Element",
|
|
2038
2025
|
responsiveStyles: {
|
|
2039
2026
|
large: {
|
|
@@ -2059,16 +2046,16 @@ const Qt = {
|
|
|
2059
2046
|
name: "label",
|
|
2060
2047
|
type: "uiBlocks",
|
|
2061
2048
|
hideFromUI: !0,
|
|
2062
|
-
defaultValue: [
|
|
2049
|
+
defaultValue: [re]
|
|
2063
2050
|
}, {
|
|
2064
2051
|
name: "content",
|
|
2065
2052
|
type: "uiBlocks",
|
|
2066
2053
|
hideFromUI: !0,
|
|
2067
|
-
defaultValue: [
|
|
2054
|
+
defaultValue: [le]
|
|
2068
2055
|
}],
|
|
2069
2056
|
defaultValue: [{
|
|
2070
2057
|
label: [{
|
|
2071
|
-
...
|
|
2058
|
+
...re,
|
|
2072
2059
|
component: {
|
|
2073
2060
|
name: "Text",
|
|
2074
2061
|
options: {
|
|
@@ -2077,7 +2064,7 @@ const Qt = {
|
|
|
2077
2064
|
}
|
|
2078
2065
|
}],
|
|
2079
2066
|
content: [{
|
|
2080
|
-
...
|
|
2067
|
+
...le,
|
|
2081
2068
|
component: {
|
|
2082
2069
|
name: "Text",
|
|
2083
2070
|
options: {
|
|
@@ -2087,7 +2074,7 @@ const Qt = {
|
|
|
2087
2074
|
}]
|
|
2088
2075
|
}, {
|
|
2089
2076
|
label: [{
|
|
2090
|
-
...
|
|
2077
|
+
...re,
|
|
2091
2078
|
component: {
|
|
2092
2079
|
name: "Text",
|
|
2093
2080
|
options: {
|
|
@@ -2096,7 +2083,7 @@ const Qt = {
|
|
|
2096
2083
|
}
|
|
2097
2084
|
}],
|
|
2098
2085
|
content: [{
|
|
2099
|
-
...
|
|
2086
|
+
...le,
|
|
2100
2087
|
component: {
|
|
2101
2088
|
name: "Text",
|
|
2102
2089
|
options: {
|
|
@@ -2154,18 +2141,18 @@ const Qt = {
|
|
|
2154
2141
|
}
|
|
2155
2142
|
};
|
|
2156
2143
|
function Zt(e) {
|
|
2157
|
-
var
|
|
2158
|
-
const [t, n] =
|
|
2144
|
+
var a;
|
|
2145
|
+
const [t, n] = T(
|
|
2159
2146
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2160
2147
|
);
|
|
2161
|
-
function i(
|
|
2162
|
-
return e.tabs && e.tabs[
|
|
2148
|
+
function i(r) {
|
|
2149
|
+
return e.tabs && e.tabs[r].content;
|
|
2163
2150
|
}
|
|
2164
|
-
function o(
|
|
2165
|
-
|
|
2151
|
+
function o(r) {
|
|
2152
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2166
2153
|
}
|
|
2167
2154
|
return /* @__PURE__ */ P("div", { children: [
|
|
2168
|
-
/* @__PURE__ */
|
|
2155
|
+
/* @__PURE__ */ l(
|
|
2169
2156
|
"div",
|
|
2170
2157
|
{
|
|
2171
2158
|
className: "builder-tabs-wrap",
|
|
@@ -2175,31 +2162,31 @@ function Zt(e) {
|
|
|
2175
2162
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2176
2163
|
overflow: "auto"
|
|
2177
2164
|
},
|
|
2178
|
-
children: (
|
|
2165
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
|
|
2179
2166
|
"span",
|
|
2180
2167
|
{
|
|
2181
|
-
className: `builder-tab-wrap ${t ===
|
|
2168
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2182
2169
|
style: {
|
|
2183
|
-
...t ===
|
|
2170
|
+
...t === s ? e.activeTabStyle : {}
|
|
2184
2171
|
},
|
|
2185
|
-
onClick: (
|
|
2186
|
-
children: /* @__PURE__ */
|
|
2172
|
+
onClick: (d) => o(s),
|
|
2173
|
+
children: /* @__PURE__ */ l(
|
|
2187
2174
|
D,
|
|
2188
2175
|
{
|
|
2189
2176
|
parent: e.builderBlock.id,
|
|
2190
|
-
path: `component.options.tabs.${
|
|
2191
|
-
blocks:
|
|
2177
|
+
path: `component.options.tabs.${s}.label`,
|
|
2178
|
+
blocks: r.label,
|
|
2192
2179
|
context: e.builderContext,
|
|
2193
2180
|
registeredComponents: e.builderComponents,
|
|
2194
2181
|
linkComponent: e.builderLinkComponent
|
|
2195
2182
|
}
|
|
2196
2183
|
)
|
|
2197
2184
|
},
|
|
2198
|
-
|
|
2185
|
+
s
|
|
2199
2186
|
))
|
|
2200
2187
|
}
|
|
2201
2188
|
),
|
|
2202
|
-
i(t) ? /* @__PURE__ */
|
|
2189
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2203
2190
|
D,
|
|
2204
2191
|
{
|
|
2205
2192
|
parent: e.builderBlock.id,
|
|
@@ -2236,7 +2223,7 @@ const en = {
|
|
|
2236
2223
|
};
|
|
2237
2224
|
function tn(e) {
|
|
2238
2225
|
var t;
|
|
2239
|
-
return /* @__PURE__ */
|
|
2226
|
+
return /* @__PURE__ */ l(
|
|
2240
2227
|
"div",
|
|
2241
2228
|
{
|
|
2242
2229
|
className: "builder-text",
|
|
@@ -2271,35 +2258,35 @@ const nn = {
|
|
|
2271
2258
|
}]
|
|
2272
2259
|
};
|
|
2273
2260
|
function on(e) {
|
|
2274
|
-
const t =
|
|
2261
|
+
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2275
2262
|
return B(() => {
|
|
2276
|
-
var
|
|
2277
|
-
if (!((
|
|
2263
|
+
var s;
|
|
2264
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2278
2265
|
return;
|
|
2279
|
-
const
|
|
2280
|
-
for (let
|
|
2281
|
-
const
|
|
2282
|
-
if (
|
|
2283
|
-
if (n.includes(
|
|
2266
|
+
const r = t.current.getElementsByTagName("script");
|
|
2267
|
+
for (let d = 0; d < r.length; d++) {
|
|
2268
|
+
const c = r[d];
|
|
2269
|
+
if (c.src) {
|
|
2270
|
+
if (n.includes(c.src))
|
|
2284
2271
|
continue;
|
|
2285
|
-
n.push(
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2288
|
-
} else if (!
|
|
2272
|
+
n.push(c.src);
|
|
2273
|
+
const m = document.createElement("script");
|
|
2274
|
+
m.async = !0, m.src = c.src, document.head.appendChild(m);
|
|
2275
|
+
} else if (!c.type || [
|
|
2289
2276
|
"text/javascript",
|
|
2290
2277
|
"application/javascript",
|
|
2291
2278
|
"application/ecmascript"
|
|
2292
|
-
].includes(
|
|
2293
|
-
if (o.includes(
|
|
2279
|
+
].includes(c.type)) {
|
|
2280
|
+
if (o.includes(c.innerText))
|
|
2294
2281
|
continue;
|
|
2295
2282
|
try {
|
|
2296
|
-
o.push(
|
|
2297
|
-
} catch (
|
|
2298
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2283
|
+
o.push(c.innerText), new Function(c.innerText)();
|
|
2284
|
+
} catch (m) {
|
|
2285
|
+
console.warn("`CustomCode`: Error running script:", m);
|
|
2299
2286
|
}
|
|
2300
2287
|
}
|
|
2301
2288
|
}
|
|
2302
|
-
}, []), /* @__PURE__ */
|
|
2289
|
+
}, []), /* @__PURE__ */ l(
|
|
2303
2290
|
"div",
|
|
2304
2291
|
{
|
|
2305
2292
|
ref: t,
|
|
@@ -2325,28 +2312,28 @@ const an = {
|
|
|
2325
2312
|
}]
|
|
2326
2313
|
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2327
2314
|
function sn(e) {
|
|
2328
|
-
const t =
|
|
2329
|
-
function
|
|
2315
|
+
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2316
|
+
function d() {
|
|
2330
2317
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2331
2318
|
return;
|
|
2332
|
-
const
|
|
2333
|
-
for (let
|
|
2334
|
-
const
|
|
2335
|
-
if (
|
|
2336
|
-
n.push(
|
|
2337
|
-
const
|
|
2338
|
-
|
|
2339
|
-
} else if (ln(
|
|
2319
|
+
const c = t.current.getElementsByTagName("script");
|
|
2320
|
+
for (let m = 0; m < c.length; m++) {
|
|
2321
|
+
const h = c[m];
|
|
2322
|
+
if (h.src && !n.includes(h.src)) {
|
|
2323
|
+
n.push(h.src);
|
|
2324
|
+
const f = document.createElement("script");
|
|
2325
|
+
f.async = !0, f.src = h.src, document.head.appendChild(f);
|
|
2326
|
+
} else if (ln(h) && !o.includes(h.innerText))
|
|
2340
2327
|
try {
|
|
2341
|
-
o.push(
|
|
2342
|
-
} catch (
|
|
2343
|
-
console.warn("`Embed`: Error running script:",
|
|
2328
|
+
o.push(h.innerText), new Function(h.innerText)();
|
|
2329
|
+
} catch (f) {
|
|
2330
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2344
2331
|
}
|
|
2345
2332
|
}
|
|
2346
2333
|
}
|
|
2347
2334
|
return B(() => {
|
|
2348
|
-
t.current && !
|
|
2349
|
-
}, [t.current,
|
|
2335
|
+
t.current && !r && (s(!0), d());
|
|
2336
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2350
2337
|
"div",
|
|
2351
2338
|
{
|
|
2352
2339
|
className: "builder-embed",
|
|
@@ -2596,72 +2583,72 @@ const cn = {
|
|
|
2596
2583
|
const e = process.env.NODE_ENV || "production";
|
|
2597
2584
|
return dn.includes(e) ? e : "production";
|
|
2598
2585
|
}, mn = (e, t, n) => {
|
|
2599
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2586
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2600
2587
|
return i === void 0 || i === e ? n : i;
|
|
2601
2588
|
};
|
|
2602
2589
|
function fn(e) {
|
|
2603
|
-
var
|
|
2604
|
-
const t =
|
|
2605
|
-
function
|
|
2606
|
-
var
|
|
2607
|
-
const
|
|
2590
|
+
var h, f;
|
|
2591
|
+
const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2592
|
+
function d(u) {
|
|
2593
|
+
var x, y;
|
|
2594
|
+
const g = {
|
|
2608
2595
|
...e.builderContext.rootState,
|
|
2609
|
-
...
|
|
2596
|
+
...u
|
|
2610
2597
|
};
|
|
2611
|
-
e.builderContext.rootSetState ? (
|
|
2598
|
+
e.builderContext.rootSetState ? (y = (x = e.builderContext).rootSetState) == null || y.call(x, g) : e.builderContext.rootState = g;
|
|
2612
2599
|
}
|
|
2613
|
-
function
|
|
2600
|
+
function c() {
|
|
2614
2601
|
return $() && e.previewState || n;
|
|
2615
2602
|
}
|
|
2616
|
-
function
|
|
2617
|
-
var
|
|
2618
|
-
const
|
|
2603
|
+
function m(u) {
|
|
2604
|
+
var x;
|
|
2605
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2619
2606
|
if (e.sendSubmissionsTo === "zapier")
|
|
2620
|
-
|
|
2621
|
-
else if (
|
|
2607
|
+
u.preventDefault();
|
|
2608
|
+
else if (g) {
|
|
2622
2609
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2623
|
-
|
|
2610
|
+
u.preventDefault();
|
|
2624
2611
|
return;
|
|
2625
2612
|
}
|
|
2626
|
-
|
|
2627
|
-
const
|
|
2613
|
+
u.preventDefault();
|
|
2614
|
+
const y = u.currentTarget || u.target, E = e.customHeaders || {};
|
|
2628
2615
|
let V;
|
|
2629
|
-
const A = new FormData(
|
|
2630
|
-
let
|
|
2631
|
-
const
|
|
2632
|
-
if (
|
|
2633
|
-
if (
|
|
2634
|
-
if (
|
|
2635
|
-
return
|
|
2636
|
-
key:
|
|
2637
|
-
value:
|
|
2616
|
+
const A = new FormData(y), O = Array.from(y.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).map((p) => {
|
|
2617
|
+
let b;
|
|
2618
|
+
const v = p.name;
|
|
2619
|
+
if (p instanceof HTMLInputElement)
|
|
2620
|
+
if (p.type === "radio") {
|
|
2621
|
+
if (p.checked)
|
|
2622
|
+
return b = p.name, {
|
|
2623
|
+
key: v,
|
|
2624
|
+
value: b
|
|
2638
2625
|
};
|
|
2639
|
-
} else if (
|
|
2640
|
-
|
|
2641
|
-
else if (
|
|
2642
|
-
const
|
|
2643
|
-
isNaN(
|
|
2626
|
+
} else if (p.type === "checkbox")
|
|
2627
|
+
b = p.checked;
|
|
2628
|
+
else if (p.type === "number" || p.type === "range") {
|
|
2629
|
+
const S = p.valueAsNumber;
|
|
2630
|
+
isNaN(S) || (b = S);
|
|
2644
2631
|
} else
|
|
2645
|
-
|
|
2632
|
+
p.type === "file" ? b = p.files : b = p.value;
|
|
2646
2633
|
else
|
|
2647
|
-
|
|
2634
|
+
b = p.value;
|
|
2648
2635
|
return {
|
|
2649
|
-
key:
|
|
2650
|
-
value:
|
|
2636
|
+
key: v,
|
|
2637
|
+
value: b
|
|
2651
2638
|
};
|
|
2652
2639
|
});
|
|
2653
|
-
let
|
|
2654
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2655
|
-
(
|
|
2656
|
-
}),
|
|
2640
|
+
let k = e.contentType;
|
|
2641
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(O).forEach(({ value: p }) => {
|
|
2642
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (k = "multipart/form-data");
|
|
2643
|
+
}), k !== "application/json")
|
|
2657
2644
|
V = A;
|
|
2658
2645
|
else {
|
|
2659
|
-
const
|
|
2660
|
-
Array.from(O).forEach(({ value:
|
|
2661
|
-
Ve(
|
|
2662
|
-
}), V = JSON.stringify(
|
|
2646
|
+
const p = {};
|
|
2647
|
+
Array.from(O).forEach(({ value: b, key: v }) => {
|
|
2648
|
+
Ve(p, v, b);
|
|
2649
|
+
}), V = JSON.stringify(p);
|
|
2663
2650
|
}
|
|
2664
|
-
|
|
2651
|
+
k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
|
|
2665
2652
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2666
2653
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2667
2654
|
return;
|
|
@@ -2673,37 +2660,37 @@ function fn(e) {
|
|
|
2673
2660
|
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2674
2661
|
{ body: V, headers: E, method: e.method || "post" }
|
|
2675
2662
|
).then(
|
|
2676
|
-
async (
|
|
2677
|
-
let
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
let
|
|
2681
|
-
|
|
2663
|
+
async (p) => {
|
|
2664
|
+
let b;
|
|
2665
|
+
const v = p.headers.get("content-type");
|
|
2666
|
+
if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
|
|
2667
|
+
let S = mn(b, e.errorMessagePath);
|
|
2668
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
|
|
2682
2669
|
}
|
|
2683
|
-
if (
|
|
2684
|
-
const
|
|
2685
|
-
detail: { res:
|
|
2670
|
+
if (a(b), i(p.ok ? "success" : "error"), p.ok) {
|
|
2671
|
+
const S = new CustomEvent("submit:success", {
|
|
2672
|
+
detail: { res: p, body: b }
|
|
2686
2673
|
});
|
|
2687
2674
|
if (t.current) {
|
|
2688
|
-
if (t.current.dispatchEvent(
|
|
2675
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2689
2676
|
return;
|
|
2690
2677
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2691
2678
|
}
|
|
2692
2679
|
if (e.successUrl)
|
|
2693
2680
|
if (t.current) {
|
|
2694
|
-
const
|
|
2681
|
+
const C = new CustomEvent("route", {
|
|
2695
2682
|
detail: { url: e.successUrl }
|
|
2696
2683
|
});
|
|
2697
|
-
t.current.dispatchEvent(
|
|
2684
|
+
t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
|
|
2698
2685
|
} else
|
|
2699
2686
|
location.href = e.successUrl;
|
|
2700
2687
|
}
|
|
2701
2688
|
},
|
|
2702
|
-
(
|
|
2703
|
-
const
|
|
2704
|
-
detail: { error:
|
|
2689
|
+
(p) => {
|
|
2690
|
+
const b = new CustomEvent("submit:error", {
|
|
2691
|
+
detail: { error: p }
|
|
2705
2692
|
});
|
|
2706
|
-
t.current && (t.current.dispatchEvent(
|
|
2693
|
+
t.current && (t.current.dispatchEvent(b), b.defaultPrevented) || (a(p), i("error"));
|
|
2707
2694
|
}
|
|
2708
2695
|
);
|
|
2709
2696
|
}
|
|
@@ -2718,20 +2705,20 @@ function fn(e) {
|
|
|
2718
2705
|
action: !e.sendWithJs && e.action,
|
|
2719
2706
|
method: e.method,
|
|
2720
2707
|
name: e.name,
|
|
2721
|
-
onSubmit: (
|
|
2708
|
+
onSubmit: (u) => m(u),
|
|
2722
2709
|
...e.attributes,
|
|
2723
2710
|
children: [
|
|
2724
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2711
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(R, { children: (f = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
2725
2712
|
_,
|
|
2726
2713
|
{
|
|
2727
|
-
block:
|
|
2714
|
+
block: u,
|
|
2728
2715
|
context: e.builderContext,
|
|
2729
2716
|
registeredComponents: e.builderComponents,
|
|
2730
2717
|
linkComponent: e.builderLinkComponent
|
|
2731
2718
|
},
|
|
2732
|
-
`form-block-${
|
|
2719
|
+
`form-block-${g}`
|
|
2733
2720
|
)) }) : null,
|
|
2734
|
-
|
|
2721
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2735
2722
|
D,
|
|
2736
2723
|
{
|
|
2737
2724
|
path: "errorMessage",
|
|
@@ -2739,7 +2726,7 @@ function fn(e) {
|
|
|
2739
2726
|
context: e.builderContext
|
|
2740
2727
|
}
|
|
2741
2728
|
) : null,
|
|
2742
|
-
|
|
2729
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2743
2730
|
D,
|
|
2744
2731
|
{
|
|
2745
2732
|
path: "sendingMessage",
|
|
@@ -2747,8 +2734,8 @@ function fn(e) {
|
|
|
2747
2734
|
context: e.builderContext
|
|
2748
2735
|
}
|
|
2749
2736
|
) : null,
|
|
2750
|
-
|
|
2751
|
-
|
|
2737
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2738
|
+
c() === "success" ? /* @__PURE__ */ l(
|
|
2752
2739
|
D,
|
|
2753
2740
|
{
|
|
2754
2741
|
path: "successMessage",
|
|
@@ -2760,7 +2747,7 @@ function fn(e) {
|
|
|
2760
2747
|
}
|
|
2761
2748
|
),
|
|
2762
2749
|
" ",
|
|
2763
|
-
/* @__PURE__ */
|
|
2750
|
+
/* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2764
2751
|
" "
|
|
2765
2752
|
] });
|
|
2766
2753
|
}
|
|
@@ -2886,7 +2873,7 @@ function pn(e) {
|
|
|
2886
2873
|
name: e.name,
|
|
2887
2874
|
required: e.required
|
|
2888
2875
|
},
|
|
2889
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2876
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2890
2877
|
);
|
|
2891
2878
|
}
|
|
2892
2879
|
const yn = {
|
|
@@ -2916,7 +2903,7 @@ const yn = {
|
|
|
2916
2903
|
// canHaveChildren: true,
|
|
2917
2904
|
};
|
|
2918
2905
|
function xn(e) {
|
|
2919
|
-
return /* @__PURE__ */
|
|
2906
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2920
2907
|
}
|
|
2921
2908
|
const vn = {
|
|
2922
2909
|
name: "Form:TextArea",
|
|
@@ -2956,7 +2943,7 @@ const vn = {
|
|
|
2956
2943
|
noWrap: !0
|
|
2957
2944
|
};
|
|
2958
2945
|
function Sn(e) {
|
|
2959
|
-
return /* @__PURE__ */
|
|
2946
|
+
return /* @__PURE__ */ l(
|
|
2960
2947
|
"textarea",
|
|
2961
2948
|
{
|
|
2962
2949
|
...e.attributes,
|
|
@@ -2984,7 +2971,7 @@ const kn = {
|
|
|
2984
2971
|
static: !0
|
|
2985
2972
|
};
|
|
2986
2973
|
function Cn(e) {
|
|
2987
|
-
return /* @__PURE__ */
|
|
2974
|
+
return /* @__PURE__ */ l(
|
|
2988
2975
|
"img",
|
|
2989
2976
|
{
|
|
2990
2977
|
style: {
|
|
@@ -3084,7 +3071,7 @@ const Tn = {
|
|
|
3084
3071
|
}
|
|
3085
3072
|
};
|
|
3086
3073
|
function In(e) {
|
|
3087
|
-
var i, o, r,
|
|
3074
|
+
var i, o, a, r, s, d, c;
|
|
3088
3075
|
function t() {
|
|
3089
3076
|
return {
|
|
3090
3077
|
...e.autoPlay === !0 ? {
|
|
@@ -3116,7 +3103,7 @@ function In(e) {
|
|
|
3116
3103
|
position: "relative"
|
|
3117
3104
|
},
|
|
3118
3105
|
children: [
|
|
3119
|
-
/* @__PURE__ */
|
|
3106
|
+
/* @__PURE__ */ l(
|
|
3120
3107
|
"video",
|
|
3121
3108
|
{
|
|
3122
3109
|
className: "builder-video",
|
|
@@ -3138,10 +3125,10 @@ function In(e) {
|
|
|
3138
3125
|
},
|
|
3139
3126
|
src: e.video || "no-src",
|
|
3140
3127
|
poster: e.posterImage,
|
|
3141
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3128
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3142
3129
|
}
|
|
3143
3130
|
),
|
|
3144
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3131
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
3145
3132
|
"div",
|
|
3146
3133
|
{
|
|
3147
3134
|
style: {
|
|
@@ -3152,7 +3139,7 @@ function In(e) {
|
|
|
3152
3139
|
}
|
|
3153
3140
|
}
|
|
3154
3141
|
) : null,
|
|
3155
|
-
(
|
|
3142
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3156
3143
|
"div",
|
|
3157
3144
|
{
|
|
3158
3145
|
style: {
|
|
@@ -3163,7 +3150,7 @@ function In(e) {
|
|
|
3163
3150
|
children: e.children
|
|
3164
3151
|
}
|
|
3165
3152
|
) : null,
|
|
3166
|
-
(
|
|
3153
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
3167
3154
|
"div",
|
|
3168
3155
|
{
|
|
3169
3156
|
style: {
|
|
@@ -3211,8 +3198,8 @@ const wn = () => [{
|
|
|
3211
3198
|
}, {
|
|
3212
3199
|
component: In,
|
|
3213
3200
|
...Tn
|
|
3214
|
-
}],
|
|
3215
|
-
component:
|
|
3201
|
+
}], Se = () => [{
|
|
3202
|
+
component: tt,
|
|
3216
3203
|
...qt
|
|
3217
3204
|
}, {
|
|
3218
3205
|
component: $t,
|
|
@@ -3350,8 +3337,8 @@ const wn = () => [{
|
|
|
3350
3337
|
}) => `window.${Ue}(
|
|
3351
3338
|
"${t}", "${e}", ${Me}
|
|
3352
3339
|
)`;
|
|
3353
|
-
function
|
|
3354
|
-
return /* @__PURE__ */
|
|
3340
|
+
function se(e) {
|
|
3341
|
+
return /* @__PURE__ */ l(
|
|
3355
3342
|
"script",
|
|
3356
3343
|
{
|
|
3357
3344
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3360,7 +3347,7 @@ function ce(e) {
|
|
|
3360
3347
|
}
|
|
3361
3348
|
);
|
|
3362
3349
|
}
|
|
3363
|
-
function
|
|
3350
|
+
function ke(e) {
|
|
3364
3351
|
return Math.round(e * 1e3) / 1e3;
|
|
3365
3352
|
}
|
|
3366
3353
|
const Wn = (e, t, n = !0) => {
|
|
@@ -3377,25 +3364,25 @@ const Wn = (e, t, n = !0) => {
|
|
|
3377
3364
|
}, Fn = (e) => Wn(e, (t) => {
|
|
3378
3365
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3379
3366
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3380
|
-
}),
|
|
3367
|
+
}), Ce = ({
|
|
3381
3368
|
event: e,
|
|
3382
3369
|
target: t
|
|
3383
3370
|
}) => {
|
|
3384
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3371
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ke(i / n.width), r = ke(o / n.height);
|
|
3385
3372
|
return {
|
|
3386
|
-
x:
|
|
3387
|
-
y:
|
|
3373
|
+
x: a,
|
|
3374
|
+
y: r
|
|
3388
3375
|
};
|
|
3389
3376
|
}, $n = (e) => {
|
|
3390
3377
|
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3391
3378
|
return {
|
|
3392
3379
|
targetBuilderElement: i || void 0,
|
|
3393
3380
|
metadata: {
|
|
3394
|
-
targetOffset: t ?
|
|
3381
|
+
targetOffset: t ? Ce({
|
|
3395
3382
|
event: e,
|
|
3396
3383
|
target: t
|
|
3397
3384
|
}) : void 0,
|
|
3398
|
-
builderTargetOffset: n ?
|
|
3385
|
+
builderTargetOffset: n ? Ce({
|
|
3399
3386
|
event: e,
|
|
3400
3387
|
target: n
|
|
3401
3388
|
}) : void 0,
|
|
@@ -3403,8 +3390,8 @@ const Wn = (e, t, n = !0) => {
|
|
|
3403
3390
|
}
|
|
3404
3391
|
};
|
|
3405
3392
|
}, Dn = (e) => {
|
|
3406
|
-
var
|
|
3407
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3393
|
+
var a, r;
|
|
3394
|
+
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;
|
|
3408
3395
|
let o = "";
|
|
3409
3396
|
if (i && t && n && (o += `
|
|
3410
3397
|
@font-face {
|
|
@@ -3414,16 +3401,16 @@ font-display: fallback;
|
|
|
3414
3401
|
font-weight: 400;
|
|
3415
3402
|
}
|
|
3416
3403
|
`.trim()), e.files)
|
|
3417
|
-
for (const
|
|
3418
|
-
if (!(String(Number(
|
|
3404
|
+
for (const s in e.files) {
|
|
3405
|
+
if (!(String(Number(s)) === s))
|
|
3419
3406
|
continue;
|
|
3420
|
-
const
|
|
3421
|
-
|
|
3407
|
+
const c = e.files[s];
|
|
3408
|
+
c && c !== i && (o += `
|
|
3422
3409
|
@font-face {
|
|
3423
3410
|
font-family: "${t}";
|
|
3424
|
-
src: url('${
|
|
3411
|
+
src: url('${c}') format('woff2');
|
|
3425
3412
|
font-display: fallback;
|
|
3426
|
-
font-weight: ${
|
|
3413
|
+
font-weight: ${s};
|
|
3427
3414
|
}
|
|
3428
3415
|
`.trim());
|
|
3429
3416
|
}
|
|
@@ -3455,37 +3442,37 @@ font-weight: ${l};
|
|
|
3455
3442
|
}
|
|
3456
3443
|
`, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
|
|
3457
3444
|
function Hn(e) {
|
|
3458
|
-
var V, A, O,
|
|
3459
|
-
const t =
|
|
3460
|
-
function n(
|
|
3461
|
-
var
|
|
3462
|
-
const
|
|
3445
|
+
var V, A, O, k, w, N, p;
|
|
3446
|
+
const t = Z(null);
|
|
3447
|
+
function n(b) {
|
|
3448
|
+
var S, C;
|
|
3449
|
+
const v = {
|
|
3463
3450
|
...e.builderContextSignal.rootState,
|
|
3464
|
-
...
|
|
3451
|
+
...b
|
|
3465
3452
|
};
|
|
3466
|
-
e.builderContextSignal.rootSetState ? (
|
|
3467
|
-
...
|
|
3468
|
-
rootState:
|
|
3453
|
+
e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((I) => ({
|
|
3454
|
+
...I,
|
|
3455
|
+
rootState: v
|
|
3469
3456
|
}));
|
|
3470
3457
|
}
|
|
3471
|
-
function i(
|
|
3472
|
-
var
|
|
3473
|
-
const
|
|
3458
|
+
function i(b) {
|
|
3459
|
+
var S, C, I, W, j;
|
|
3460
|
+
const v = {
|
|
3474
3461
|
...e.builderContextSignal.content,
|
|
3475
|
-
...
|
|
3462
|
+
...b,
|
|
3476
3463
|
data: {
|
|
3477
|
-
...(
|
|
3478
|
-
...
|
|
3464
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3465
|
+
...b == null ? void 0 : b.data
|
|
3479
3466
|
},
|
|
3480
3467
|
meta: {
|
|
3481
|
-
...(
|
|
3482
|
-
...
|
|
3483
|
-
breakpoints: ((
|
|
3468
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3469
|
+
...b == null ? void 0 : b.meta,
|
|
3470
|
+
breakpoints: ((I = b == null ? void 0 : b.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3484
3471
|
}
|
|
3485
3472
|
};
|
|
3486
3473
|
e.setBuilderContextSignal((F) => ({
|
|
3487
3474
|
...F,
|
|
3488
|
-
content:
|
|
3475
|
+
content: v
|
|
3489
3476
|
}));
|
|
3490
3477
|
}
|
|
3491
3478
|
function o() {
|
|
@@ -3494,37 +3481,37 @@ function Hn(e) {
|
|
|
3494
3481
|
"aria-hidden": !0
|
|
3495
3482
|
};
|
|
3496
3483
|
}
|
|
3497
|
-
const [
|
|
3484
|
+
const [a, r] = T(
|
|
3498
3485
|
() => e.contentWrapper || "div"
|
|
3499
3486
|
);
|
|
3500
|
-
function
|
|
3501
|
-
return
|
|
3487
|
+
function s(b) {
|
|
3488
|
+
return Ge({
|
|
3502
3489
|
model: e.model,
|
|
3503
3490
|
trustedHosts: e.trustedHosts,
|
|
3504
3491
|
callbacks: {
|
|
3505
|
-
configureSdk: (
|
|
3506
|
-
var
|
|
3507
|
-
const { breakpoints:
|
|
3508
|
-
!
|
|
3492
|
+
configureSdk: (v) => {
|
|
3493
|
+
var I;
|
|
3494
|
+
const { breakpoints: S, contentId: C } = v;
|
|
3495
|
+
!C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
|
|
3509
3496
|
meta: {
|
|
3510
|
-
breakpoints:
|
|
3497
|
+
breakpoints: S
|
|
3511
3498
|
}
|
|
3512
3499
|
});
|
|
3513
3500
|
},
|
|
3514
|
-
animation: (
|
|
3515
|
-
We(
|
|
3501
|
+
animation: (v) => {
|
|
3502
|
+
We(v);
|
|
3516
3503
|
},
|
|
3517
|
-
contentUpdate: (
|
|
3518
|
-
i(
|
|
3504
|
+
contentUpdate: (v) => {
|
|
3505
|
+
i(v);
|
|
3519
3506
|
}
|
|
3520
3507
|
}
|
|
3521
|
-
})(
|
|
3508
|
+
})(b);
|
|
3522
3509
|
}
|
|
3523
|
-
function
|
|
3524
|
-
var
|
|
3525
|
-
const
|
|
3526
|
-
|
|
3527
|
-
code:
|
|
3510
|
+
function d() {
|
|
3511
|
+
var v, S;
|
|
3512
|
+
const b = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
|
|
3513
|
+
b && K({
|
|
3514
|
+
code: b,
|
|
3528
3515
|
context: e.context || {},
|
|
3529
3516
|
localState: void 0,
|
|
3530
3517
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3535,30 +3522,30 @@ function Hn(e) {
|
|
|
3535
3522
|
enableCache: !1
|
|
3536
3523
|
});
|
|
3537
3524
|
}
|
|
3538
|
-
const [
|
|
3539
|
-
function
|
|
3540
|
-
var
|
|
3525
|
+
const [c, m] = T(() => ({})), [h, f] = T(() => ({})), [u, g] = T(() => !1);
|
|
3526
|
+
function x(b) {
|
|
3527
|
+
var v, S;
|
|
3541
3528
|
if (e.builderContextSignal.content) {
|
|
3542
|
-
const
|
|
3543
|
-
|
|
3529
|
+
const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3530
|
+
fe({
|
|
3544
3531
|
type: "click",
|
|
3545
3532
|
canTrack: Q(e.canTrack),
|
|
3546
|
-
contentId:
|
|
3533
|
+
contentId: I,
|
|
3547
3534
|
apiKey: e.apiKey,
|
|
3548
|
-
variationId:
|
|
3549
|
-
...$n(
|
|
3550
|
-
unique: !
|
|
3535
|
+
variationId: C !== I ? C : void 0,
|
|
3536
|
+
...$n(b),
|
|
3537
|
+
unique: !u
|
|
3551
3538
|
});
|
|
3552
3539
|
}
|
|
3553
|
-
|
|
3540
|
+
u || g(!0);
|
|
3554
3541
|
}
|
|
3555
|
-
function
|
|
3556
|
-
var
|
|
3557
|
-
const
|
|
3558
|
-
Object.entries(
|
|
3559
|
-
if (!W ||
|
|
3542
|
+
function y() {
|
|
3543
|
+
var v, S, C;
|
|
3544
|
+
const b = (C = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? C : {};
|
|
3545
|
+
Object.entries(b).forEach(([I, W]) => {
|
|
3546
|
+
if (!W || h[I] || c[I] && !$())
|
|
3560
3547
|
return;
|
|
3561
|
-
|
|
3548
|
+
h[I] = !0;
|
|
3562
3549
|
const j = W.replace(
|
|
3563
3550
|
/{{([^}]+)}}/g,
|
|
3564
3551
|
(F, He) => String(
|
|
@@ -3572,14 +3559,14 @@ function Hn(e) {
|
|
|
3572
3559
|
})
|
|
3573
3560
|
)
|
|
3574
3561
|
);
|
|
3575
|
-
|
|
3562
|
+
Qe(j).then((F) => F.json()).then((F) => {
|
|
3576
3563
|
n({
|
|
3577
|
-
[
|
|
3578
|
-
}),
|
|
3564
|
+
[I]: F
|
|
3565
|
+
}), c[I] = !0;
|
|
3579
3566
|
}).catch((F) => {
|
|
3580
3567
|
console.error("error fetching dynamic data", W, F);
|
|
3581
3568
|
}).finally(() => {
|
|
3582
|
-
|
|
3569
|
+
h[I] = !1;
|
|
3583
3570
|
});
|
|
3584
3571
|
});
|
|
3585
3572
|
}
|
|
@@ -3589,7 +3576,7 @@ function Hn(e) {
|
|
|
3589
3576
|
"builder:component:stateChange",
|
|
3590
3577
|
{
|
|
3591
3578
|
detail: {
|
|
3592
|
-
state:
|
|
3579
|
+
state: ce(e.builderContextSignal.rootState),
|
|
3593
3580
|
ref: {
|
|
3594
3581
|
name: e.model
|
|
3595
3582
|
}
|
|
@@ -3599,9 +3586,9 @@ function Hn(e) {
|
|
|
3599
3586
|
);
|
|
3600
3587
|
}
|
|
3601
3588
|
return B(() => {
|
|
3602
|
-
var
|
|
3589
|
+
var b, v;
|
|
3603
3590
|
if (M()) {
|
|
3604
|
-
if ($() && (window.addEventListener("message",
|
|
3591
|
+
if ($() && (window.addEventListener("message", s), _e(), Je({
|
|
3605
3592
|
...e.locale ? {
|
|
3606
3593
|
locale: e.locale
|
|
3607
3594
|
} : {},
|
|
@@ -3613,28 +3600,28 @@ function Hn(e) {
|
|
|
3613
3600
|
} : {}
|
|
3614
3601
|
}), Object.values(
|
|
3615
3602
|
e.builderContextSignal.componentInfos
|
|
3616
|
-
).forEach((
|
|
3603
|
+
).forEach((C) => {
|
|
3617
3604
|
var W;
|
|
3618
|
-
const
|
|
3619
|
-
(W = window.parent) == null || W.postMessage(
|
|
3605
|
+
const I = Ye(C);
|
|
3606
|
+
(W = window.parent) == null || W.postMessage(I, "*");
|
|
3620
3607
|
}), window.addEventListener(
|
|
3621
3608
|
"builder:component:stateChangeListenerActivated",
|
|
3622
3609
|
E
|
|
3623
3610
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3624
|
-
const
|
|
3625
|
-
|
|
3611
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
|
|
3612
|
+
fe({
|
|
3626
3613
|
type: "impression",
|
|
3627
3614
|
canTrack: !0,
|
|
3628
|
-
contentId:
|
|
3615
|
+
contentId: I,
|
|
3629
3616
|
apiKey: W,
|
|
3630
|
-
variationId:
|
|
3617
|
+
variationId: C !== I ? C : void 0
|
|
3631
3618
|
});
|
|
3632
3619
|
}
|
|
3633
|
-
if (
|
|
3634
|
-
const
|
|
3635
|
-
`builder.overrides.${
|
|
3636
|
-
), j =
|
|
3637
|
-
|
|
3620
|
+
if (Ie() && !$()) {
|
|
3621
|
+
const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
|
|
3622
|
+
`builder.overrides.${I}`
|
|
3623
|
+
), j = C.get("apiKey") || C.get("builder.space");
|
|
3624
|
+
I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
|
|
3638
3625
|
model: e.model,
|
|
3639
3626
|
apiKey: e.apiKey,
|
|
3640
3627
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3644,16 +3631,16 @@ function Hn(e) {
|
|
|
3644
3631
|
}
|
|
3645
3632
|
}
|
|
3646
3633
|
}, []), B(() => {
|
|
3647
|
-
e.apiKey ||
|
|
3634
|
+
e.apiKey || X.error(
|
|
3648
3635
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3649
|
-
),
|
|
3636
|
+
), d(), y(), E();
|
|
3650
3637
|
}, []), B(() => {
|
|
3651
3638
|
e.content && i(e.content);
|
|
3652
3639
|
}, [e.content]), B(() => {
|
|
3653
|
-
|
|
3640
|
+
d();
|
|
3654
3641
|
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3655
|
-
|
|
3656
|
-
}, [(
|
|
3642
|
+
y();
|
|
3643
|
+
}, [(k = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : k.httpRequests]), B(() => {
|
|
3657
3644
|
E();
|
|
3658
3645
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3659
3646
|
e.data && n(e.data);
|
|
@@ -3662,28 +3649,28 @@ function Hn(e) {
|
|
|
3662
3649
|
locale: e.locale
|
|
3663
3650
|
});
|
|
3664
3651
|
}, [e.locale]), B(() => () => {
|
|
3665
|
-
M() && (window.removeEventListener("message",
|
|
3652
|
+
M() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3666
3653
|
"builder:component:stateChangeListenerActivated",
|
|
3667
3654
|
E
|
|
3668
3655
|
));
|
|
3669
|
-
}, []), /* @__PURE__ */
|
|
3670
|
-
|
|
3656
|
+
}, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3657
|
+
a,
|
|
3671
3658
|
{
|
|
3672
3659
|
ref: t,
|
|
3673
|
-
onClick: (
|
|
3660
|
+
onClick: (b) => x(b),
|
|
3674
3661
|
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3675
3662
|
"builder-model": e.model,
|
|
3676
3663
|
...o(),
|
|
3677
3664
|
...e.contentWrapperProps,
|
|
3678
3665
|
className: Mn(
|
|
3679
|
-
((N = e.content) == null ? void 0 : N.testVariationId) || ((
|
|
3666
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
3680
3667
|
),
|
|
3681
3668
|
children: e.children
|
|
3682
3669
|
}
|
|
3683
3670
|
) : null });
|
|
3684
3671
|
}
|
|
3685
3672
|
function qn(e) {
|
|
3686
|
-
const [t, n] =
|
|
3673
|
+
const [t, n] = T(
|
|
3687
3674
|
() => `
|
|
3688
3675
|
${On({
|
|
3689
3676
|
cssCode: e.cssCode,
|
|
@@ -3695,8 +3682,8 @@ ${Ln({
|
|
|
3695
3682
|
${Un(e.isNestedRender)}
|
|
3696
3683
|
`.trim()
|
|
3697
3684
|
);
|
|
3698
|
-
return /* @__PURE__ */
|
|
3699
|
-
|
|
3685
|
+
return /* @__PURE__ */ l(
|
|
3686
|
+
te,
|
|
3700
3687
|
{
|
|
3701
3688
|
id: "builderio-content",
|
|
3702
3689
|
styles: t,
|
|
@@ -3709,10 +3696,10 @@ const Kn = ({
|
|
|
3709
3696
|
data: t,
|
|
3710
3697
|
locale: n
|
|
3711
3698
|
}) => {
|
|
3712
|
-
var
|
|
3713
|
-
const i = {}, o = ((
|
|
3714
|
-
return (
|
|
3715
|
-
|
|
3699
|
+
var a, r, s;
|
|
3700
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3701
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3702
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3716
3703
|
}), {
|
|
3717
3704
|
...i,
|
|
3718
3705
|
...o,
|
|
@@ -3732,40 +3719,40 @@ const Kn = ({
|
|
|
3732
3719
|
},
|
|
3733
3720
|
meta: e == null ? void 0 : e.meta
|
|
3734
3721
|
} : void 0;
|
|
3735
|
-
function
|
|
3736
|
-
var c,
|
|
3737
|
-
const [t, n] =
|
|
3722
|
+
function Te(e) {
|
|
3723
|
+
var d, c, m, h, f, u, g;
|
|
3724
|
+
const [t, n] = T(
|
|
3738
3725
|
() => {
|
|
3739
|
-
var
|
|
3726
|
+
var x, y;
|
|
3740
3727
|
return Nn({
|
|
3741
3728
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3742
|
-
variationId: (
|
|
3729
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3743
3730
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3744
|
-
contentId: (
|
|
3731
|
+
contentId: (y = e.content) == null ? void 0 : y.id
|
|
3745
3732
|
});
|
|
3746
3733
|
}
|
|
3747
3734
|
);
|
|
3748
|
-
function i(
|
|
3749
|
-
|
|
3750
|
-
...
|
|
3751
|
-
rootState:
|
|
3735
|
+
function i(x) {
|
|
3736
|
+
s((y) => ({
|
|
3737
|
+
...y,
|
|
3738
|
+
rootState: x
|
|
3752
3739
|
}));
|
|
3753
3740
|
}
|
|
3754
|
-
const [o,
|
|
3741
|
+
const [o, a] = T(
|
|
3755
3742
|
() => [
|
|
3756
|
-
...
|
|
3743
|
+
...Se(),
|
|
3757
3744
|
...e.customComponents || []
|
|
3758
3745
|
].reduce(
|
|
3759
|
-
(
|
|
3760
|
-
...
|
|
3746
|
+
(x, { component: y, ...E }) => ({
|
|
3747
|
+
...x,
|
|
3761
3748
|
[E.name]: {
|
|
3762
|
-
component:
|
|
3763
|
-
...
|
|
3749
|
+
component: y,
|
|
3750
|
+
...he(E)
|
|
3764
3751
|
}
|
|
3765
3752
|
}),
|
|
3766
3753
|
{}
|
|
3767
3754
|
)
|
|
3768
|
-
), [
|
|
3755
|
+
), [r, s] = T(() => ({
|
|
3769
3756
|
content: zn({
|
|
3770
3757
|
content: e.content,
|
|
3771
3758
|
data: e.data
|
|
@@ -3782,12 +3769,12 @@ function Ie(e) {
|
|
|
3782
3769
|
apiKey: e.apiKey,
|
|
3783
3770
|
apiVersion: e.apiVersion,
|
|
3784
3771
|
componentInfos: [
|
|
3785
|
-
...
|
|
3772
|
+
...Se(),
|
|
3786
3773
|
...e.customComponents || []
|
|
3787
3774
|
].reduce(
|
|
3788
|
-
(
|
|
3789
|
-
...
|
|
3790
|
-
[E.name]:
|
|
3775
|
+
(x, { component: y, ...E }) => ({
|
|
3776
|
+
...x,
|
|
3777
|
+
[E.name]: he(E)
|
|
3791
3778
|
}),
|
|
3792
3779
|
{}
|
|
3793
3780
|
),
|
|
@@ -3796,7 +3783,7 @@ function Ie(e) {
|
|
|
3796
3783
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3797
3784
|
nonce: e.nonce || ""
|
|
3798
3785
|
}));
|
|
3799
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ l(
|
|
3800
3787
|
Be.Provider,
|
|
3801
3788
|
{
|
|
3802
3789
|
value: {
|
|
@@ -3815,35 +3802,35 @@ function Ie(e) {
|
|
|
3815
3802
|
locale: e.locale,
|
|
3816
3803
|
enrich: e.enrich,
|
|
3817
3804
|
showContent: e.showContent,
|
|
3818
|
-
builderContextSignal:
|
|
3805
|
+
builderContextSignal: r,
|
|
3819
3806
|
contentWrapper: e.contentWrapper,
|
|
3820
3807
|
contentWrapperProps: e.contentWrapperProps,
|
|
3821
3808
|
trustedHosts: e.trustedHosts,
|
|
3822
|
-
setBuilderContextSignal:
|
|
3809
|
+
setBuilderContextSignal: s,
|
|
3823
3810
|
children: [
|
|
3824
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3825
|
-
|
|
3811
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3812
|
+
se,
|
|
3826
3813
|
{
|
|
3827
3814
|
id: "builderio-variant-visibility",
|
|
3828
3815
|
scriptStr: t,
|
|
3829
3816
|
nonce: e.nonce || ""
|
|
3830
3817
|
}
|
|
3831
3818
|
) : null,
|
|
3832
|
-
/* @__PURE__ */
|
|
3819
|
+
/* @__PURE__ */ l(
|
|
3833
3820
|
qn,
|
|
3834
3821
|
{
|
|
3835
3822
|
nonce: e.nonce || "",
|
|
3836
3823
|
isNestedRender: e.isNestedRender,
|
|
3837
|
-
contentId: (
|
|
3838
|
-
cssCode: (
|
|
3839
|
-
customFonts: (
|
|
3824
|
+
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
3825
|
+
cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3826
|
+
customFonts: (f = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : f.customFonts
|
|
3840
3827
|
}
|
|
3841
3828
|
),
|
|
3842
|
-
/* @__PURE__ */
|
|
3829
|
+
/* @__PURE__ */ l(
|
|
3843
3830
|
D,
|
|
3844
3831
|
{
|
|
3845
|
-
blocks: (
|
|
3846
|
-
context:
|
|
3832
|
+
blocks: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.blocks,
|
|
3833
|
+
context: r,
|
|
3847
3834
|
registeredComponents: o,
|
|
3848
3835
|
linkComponent: e.linkComponent
|
|
3849
3836
|
}
|
|
@@ -3855,32 +3842,32 @@ function Ie(e) {
|
|
|
3855
3842
|
);
|
|
3856
3843
|
}
|
|
3857
3844
|
function _n(e) {
|
|
3858
|
-
var
|
|
3859
|
-
const [t, n] =
|
|
3845
|
+
var r;
|
|
3846
|
+
const [t, n] = T(
|
|
3860
3847
|
() => Bn({
|
|
3861
3848
|
canTrack: Q(e.canTrack),
|
|
3862
3849
|
content: e.content
|
|
3863
3850
|
})
|
|
3864
3851
|
);
|
|
3865
3852
|
function i() {
|
|
3866
|
-
var
|
|
3853
|
+
var s;
|
|
3867
3854
|
return An(
|
|
3868
|
-
Y(e.content).map((
|
|
3869
|
-
id:
|
|
3870
|
-
testRatio:
|
|
3855
|
+
Y(e.content).map((d) => ({
|
|
3856
|
+
id: d.testVariationId,
|
|
3857
|
+
testRatio: d.testRatio
|
|
3871
3858
|
})),
|
|
3872
|
-
((
|
|
3859
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3873
3860
|
);
|
|
3874
3861
|
}
|
|
3875
3862
|
function o() {
|
|
3876
|
-
return Y(e.content).map((
|
|
3863
|
+
return Y(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3877
3864
|
}
|
|
3878
|
-
function
|
|
3879
|
-
var
|
|
3865
|
+
function a() {
|
|
3866
|
+
var s;
|
|
3880
3867
|
return t ? {
|
|
3881
3868
|
...e.content,
|
|
3882
|
-
testVariationId: (
|
|
3883
|
-
} :
|
|
3869
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3870
|
+
} : Xe({
|
|
3884
3871
|
item: e.content,
|
|
3885
3872
|
canTrack: Q(e.canTrack)
|
|
3886
3873
|
});
|
|
@@ -3888,8 +3875,8 @@ function _n(e) {
|
|
|
3888
3875
|
return B(() => {
|
|
3889
3876
|
}, []), B(() => {
|
|
3890
3877
|
}), /* @__PURE__ */ P(R, { children: [
|
|
3891
|
-
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */
|
|
3892
|
-
|
|
3878
|
+
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ l(
|
|
3879
|
+
se,
|
|
3893
3880
|
{
|
|
3894
3881
|
id: "builderio-init-variants-fns",
|
|
3895
3882
|
scriptStr: Vn(),
|
|
@@ -3897,28 +3884,28 @@ function _n(e) {
|
|
|
3897
3884
|
}
|
|
3898
3885
|
) : null,
|
|
3899
3886
|
t ? /* @__PURE__ */ P(R, { children: [
|
|
3900
|
-
/* @__PURE__ */
|
|
3901
|
-
|
|
3887
|
+
/* @__PURE__ */ l(
|
|
3888
|
+
te,
|
|
3902
3889
|
{
|
|
3903
3890
|
id: "builderio-variants",
|
|
3904
3891
|
styles: o(),
|
|
3905
3892
|
nonce: e.nonce || ""
|
|
3906
3893
|
}
|
|
3907
3894
|
),
|
|
3908
|
-
/* @__PURE__ */
|
|
3909
|
-
|
|
3895
|
+
/* @__PURE__ */ l(
|
|
3896
|
+
se,
|
|
3910
3897
|
{
|
|
3911
3898
|
id: "builderio-variants-visibility",
|
|
3912
3899
|
scriptStr: i(),
|
|
3913
3900
|
nonce: e.nonce || ""
|
|
3914
3901
|
}
|
|
3915
3902
|
),
|
|
3916
|
-
(
|
|
3917
|
-
|
|
3903
|
+
(r = Y(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3904
|
+
Te,
|
|
3918
3905
|
{
|
|
3919
3906
|
isNestedRender: e.isNestedRender,
|
|
3920
3907
|
nonce: e.nonce,
|
|
3921
|
-
content:
|
|
3908
|
+
content: s,
|
|
3922
3909
|
showContent: !1,
|
|
3923
3910
|
model: e.model,
|
|
3924
3911
|
data: e.data,
|
|
@@ -3937,15 +3924,15 @@ function _n(e) {
|
|
|
3937
3924
|
contentWrapperProps: e.contentWrapperProps,
|
|
3938
3925
|
trustedHosts: e.trustedHosts
|
|
3939
3926
|
},
|
|
3940
|
-
|
|
3927
|
+
s.testVariationId
|
|
3941
3928
|
))
|
|
3942
3929
|
] }) : null,
|
|
3943
|
-
/* @__PURE__ */
|
|
3944
|
-
|
|
3930
|
+
/* @__PURE__ */ l(
|
|
3931
|
+
Te,
|
|
3945
3932
|
{
|
|
3946
3933
|
nonce: e.nonce,
|
|
3947
3934
|
isNestedRender: e.isNestedRender,
|
|
3948
|
-
content:
|
|
3935
|
+
content: a(),
|
|
3949
3936
|
showContent: !0,
|
|
3950
3937
|
model: e.model,
|
|
3951
3938
|
data: e.data,
|
|
@@ -3983,11 +3970,11 @@ const Jn = async ({
|
|
|
3983
3970
|
}
|
|
3984
3971
|
}
|
|
3985
3972
|
}).catch((n) => {
|
|
3986
|
-
|
|
3973
|
+
X.error("Could not fetch symbol content: ", n);
|
|
3987
3974
|
});
|
|
3988
3975
|
};
|
|
3989
3976
|
function Yn(e) {
|
|
3990
|
-
var
|
|
3977
|
+
var s, d, c, m;
|
|
3991
3978
|
function t() {
|
|
3992
3979
|
return "div";
|
|
3993
3980
|
}
|
|
@@ -3995,30 +3982,30 @@ function Yn(e) {
|
|
|
3995
3982
|
return "div";
|
|
3996
3983
|
}
|
|
3997
3984
|
function i() {
|
|
3998
|
-
var
|
|
3985
|
+
var h, f;
|
|
3999
3986
|
return [
|
|
4000
3987
|
e.attributes[q()],
|
|
4001
3988
|
"builder-symbol",
|
|
4002
|
-
(
|
|
4003
|
-
(
|
|
3989
|
+
(h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
|
|
3990
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4004
3991
|
].filter(Boolean).join(" ");
|
|
4005
3992
|
}
|
|
4006
|
-
const [o,
|
|
4007
|
-
var
|
|
4008
|
-
return (
|
|
3993
|
+
const [o, a] = T(() => {
|
|
3994
|
+
var h;
|
|
3995
|
+
return (h = e.symbol) == null ? void 0 : h.content;
|
|
4009
3996
|
});
|
|
4010
|
-
function
|
|
3997
|
+
function r() {
|
|
4011
3998
|
o || Jn({
|
|
4012
3999
|
symbol: e.symbol,
|
|
4013
4000
|
builderContextValue: e.builderContext
|
|
4014
|
-
}).then((
|
|
4015
|
-
|
|
4001
|
+
}).then((h) => {
|
|
4002
|
+
h && a(h);
|
|
4016
4003
|
});
|
|
4017
4004
|
}
|
|
4018
4005
|
return B(() => {
|
|
4019
4006
|
}, []), B(() => {
|
|
4020
|
-
|
|
4021
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4007
|
+
r();
|
|
4008
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4022
4009
|
_n,
|
|
4023
4010
|
{
|
|
4024
4011
|
nonce: e.builderContext.nonce,
|
|
@@ -4027,16 +4014,16 @@ function Yn(e) {
|
|
|
4027
4014
|
apiKey: e.builderContext.apiKey,
|
|
4028
4015
|
context: {
|
|
4029
4016
|
...e.builderContext.context,
|
|
4030
|
-
symbolId: (
|
|
4017
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4031
4018
|
},
|
|
4032
4019
|
customComponents: Object.values(e.builderComponents),
|
|
4033
4020
|
data: {
|
|
4034
|
-
...(
|
|
4021
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4035
4022
|
...e.builderContext.localState,
|
|
4036
|
-
...(
|
|
4023
|
+
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4037
4024
|
},
|
|
4038
4025
|
canTrack: e.builderContext.canTrack,
|
|
4039
|
-
model: (
|
|
4026
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
4040
4027
|
content: o,
|
|
4041
4028
|
linkComponent: e.builderLinkComponent,
|
|
4042
4029
|
blocksWrapper: t(),
|
|
@@ -4046,8 +4033,8 @@ function Yn(e) {
|
|
|
4046
4033
|
}
|
|
4047
4034
|
export {
|
|
4048
4035
|
D as Blocks,
|
|
4049
|
-
|
|
4050
|
-
|
|
4036
|
+
ue as BuilderContext,
|
|
4037
|
+
tt as Button,
|
|
4051
4038
|
$t as Columns,
|
|
4052
4039
|
_n as Content,
|
|
4053
4040
|
Dt as Fragment,
|