@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,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var He = Object.defineProperty;
|
|
3
3
|
var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
-
var
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as K, checkIsDefined as Y, logger as
|
|
7
|
-
import { createContext as we, useState as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */
|
|
4
|
+
var ne = (e, t, n) => (qe(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 K, checkIsDefined as Y, logger as X, isBrowser as G, fastClone as ce, isPreviewing as Te, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as fe, fetchOneEntry as Ie, createEditorListener as Je, fetch as Ye, serializeComponentInfo as he, handleABTestingSync as Ge } from "./server-entry-d45c1bf6.js";
|
|
7
|
+
import { createContext as we, useState as T, useEffect as B, useContext as ge, useRef as Z, createElement as Re } from "react";
|
|
8
|
+
import { getFunctionArguments as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Ee } from "./node-runtime-46d21495.js";
|
|
9
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
10
|
+
function de(e) {
|
|
11
|
+
return /* @__PURE__ */ l(R, { children: nt(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 }) }) });
|
|
12
12
|
}
|
|
13
13
|
const H = () => {
|
|
14
14
|
switch (K) {
|
|
@@ -24,7 +24,7 @@ const H = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function it(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -38,8 +38,8 @@ function ot(e) {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
return /* @__PURE__ */
|
|
42
|
-
|
|
41
|
+
return /* @__PURE__ */ l(
|
|
42
|
+
de,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function ot(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const ue = we({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,33 +63,33 @@ const me = we({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: ""
|
|
65
65
|
}), Be = we({ registeredComponents: {} });
|
|
66
|
-
function
|
|
66
|
+
function ot(e) {
|
|
67
67
|
var t;
|
|
68
68
|
return {
|
|
69
69
|
...(t = e.component) == null ? void 0 : t.options,
|
|
70
70
|
...e.options
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
const
|
|
73
|
+
const at = ({
|
|
74
74
|
code: e,
|
|
75
75
|
builder: t,
|
|
76
76
|
context: n,
|
|
77
77
|
event: i,
|
|
78
78
|
localState: o,
|
|
79
|
-
rootSetState:
|
|
80
|
-
rootState:
|
|
79
|
+
rootSetState: a,
|
|
80
|
+
rootState: r
|
|
81
81
|
}) => {
|
|
82
|
-
const
|
|
82
|
+
const s = Qe({
|
|
83
83
|
builder: t,
|
|
84
84
|
context: n,
|
|
85
85
|
event: i,
|
|
86
86
|
state: Pe({
|
|
87
|
-
rootState:
|
|
87
|
+
rootState: r,
|
|
88
88
|
localState: o,
|
|
89
|
-
rootSetState:
|
|
89
|
+
rootSetState: a
|
|
90
90
|
})
|
|
91
91
|
});
|
|
92
|
-
return new Function(...
|
|
92
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
93
93
|
};
|
|
94
94
|
function Pe({
|
|
95
95
|
rootState: e,
|
|
@@ -100,33 +100,33 @@ function Pe({
|
|
|
100
100
|
get: (i, o) => {
|
|
101
101
|
if (t && o in t)
|
|
102
102
|
return t[o];
|
|
103
|
-
const
|
|
104
|
-
return typeof
|
|
105
|
-
rootState:
|
|
103
|
+
const a = i[o];
|
|
104
|
+
return typeof a == "object" && a !== null ? Pe({
|
|
105
|
+
rootState: a,
|
|
106
106
|
localState: void 0,
|
|
107
|
-
rootSetState: n ? (
|
|
108
|
-
i[o] =
|
|
107
|
+
rootSetState: n ? (r) => {
|
|
108
|
+
i[o] = r, n(i);
|
|
109
109
|
} : void 0
|
|
110
|
-
}) :
|
|
110
|
+
}) : a;
|
|
111
111
|
},
|
|
112
|
-
set: (i, o,
|
|
112
|
+
set: (i, o, a) => {
|
|
113
113
|
if (t && o in t)
|
|
114
114
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
115
|
-
return i[o] =
|
|
115
|
+
return i[o] = a, n == null || n(i), !0;
|
|
116
116
|
}
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function rt() {
|
|
120
120
|
var e;
|
|
121
121
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const lt = () => {
|
|
124
124
|
var i;
|
|
125
|
-
if (!
|
|
125
|
+
if (!rt())
|
|
126
126
|
return !1;
|
|
127
127
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
128
|
-
return e && t && !n ? (
|
|
129
|
-
},
|
|
128
|
+
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;
|
|
129
|
+
}, st = (e) => G() || lt() ? at(e) : Xe(e), L = class L {
|
|
130
130
|
static getCacheKey(t) {
|
|
131
131
|
return JSON.stringify({
|
|
132
132
|
...t,
|
|
@@ -144,7 +144,7 @@ const st = () => {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
|
|
147
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
148
148
|
let M = L;
|
|
149
149
|
function q({
|
|
150
150
|
code: e,
|
|
@@ -152,43 +152,43 @@ function q({
|
|
|
152
152
|
localState: n,
|
|
153
153
|
rootState: i,
|
|
154
154
|
rootSetState: o,
|
|
155
|
-
event:
|
|
156
|
-
isExpression:
|
|
157
|
-
enableCache:
|
|
155
|
+
event: a,
|
|
156
|
+
isExpression: r = !0,
|
|
157
|
+
enableCache: s
|
|
158
158
|
}) {
|
|
159
159
|
if (e === "")
|
|
160
160
|
return;
|
|
161
|
-
const
|
|
162
|
-
code:
|
|
163
|
-
isExpression:
|
|
161
|
+
const d = {
|
|
162
|
+
code: Ze(e, {
|
|
163
|
+
isExpression: r
|
|
164
164
|
}),
|
|
165
|
-
builder:
|
|
165
|
+
builder: et(),
|
|
166
166
|
context: t,
|
|
167
|
-
event:
|
|
167
|
+
event: a,
|
|
168
168
|
rootSetState: o,
|
|
169
169
|
rootState: i,
|
|
170
170
|
localState: n
|
|
171
171
|
};
|
|
172
|
-
if (
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
172
|
+
if (s) {
|
|
173
|
+
const c = M.getCacheKey(d), m = M.getCachedValue(c);
|
|
174
|
+
if (m)
|
|
175
|
+
return m.value;
|
|
176
176
|
}
|
|
177
177
|
try {
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
const
|
|
181
|
-
M.setCachedValue(
|
|
178
|
+
const c = st(d);
|
|
179
|
+
if (s) {
|
|
180
|
+
const m = M.getCacheKey(d);
|
|
181
|
+
M.setCachedValue(m, c);
|
|
182
182
|
}
|
|
183
|
-
return
|
|
184
|
-
} catch (
|
|
185
|
-
|
|
183
|
+
return c;
|
|
184
|
+
} catch (c) {
|
|
185
|
+
X.error("Failed code evaluation: " + c.message, {
|
|
186
186
|
code: e
|
|
187
187
|
});
|
|
188
188
|
return;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
|
-
const
|
|
191
|
+
const ct = ({
|
|
192
192
|
block: e,
|
|
193
193
|
context: t,
|
|
194
194
|
localState: n,
|
|
@@ -197,56 +197,56 @@ const dt = ({
|
|
|
197
197
|
}) => {
|
|
198
198
|
if (!e.bindings)
|
|
199
199
|
return e;
|
|
200
|
-
const
|
|
201
|
-
...
|
|
200
|
+
const a = ce(e), r = {
|
|
201
|
+
...a,
|
|
202
202
|
properties: {
|
|
203
|
-
...
|
|
203
|
+
...a.properties
|
|
204
204
|
},
|
|
205
205
|
actions: {
|
|
206
|
-
...
|
|
206
|
+
...a.actions
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
for (const
|
|
210
|
-
const
|
|
211
|
-
code:
|
|
209
|
+
for (const s in e.bindings) {
|
|
210
|
+
const d = e.bindings[s], c = q({
|
|
211
|
+
code: d,
|
|
212
212
|
localState: n,
|
|
213
213
|
rootState: i,
|
|
214
214
|
rootSetState: o,
|
|
215
215
|
context: t,
|
|
216
216
|
enableCache: !0
|
|
217
217
|
});
|
|
218
|
-
Ee(
|
|
218
|
+
Ee(r, s, c);
|
|
219
219
|
}
|
|
220
|
-
return
|
|
220
|
+
return r;
|
|
221
221
|
};
|
|
222
|
-
function
|
|
222
|
+
function dt({
|
|
223
223
|
block: e,
|
|
224
224
|
context: t,
|
|
225
225
|
shouldEvaluateBindings: n,
|
|
226
226
|
localState: i,
|
|
227
227
|
rootState: o,
|
|
228
|
-
rootSetState:
|
|
228
|
+
rootSetState: a
|
|
229
229
|
}) {
|
|
230
|
-
const
|
|
231
|
-
return n ?
|
|
232
|
-
block:
|
|
230
|
+
const r = e;
|
|
231
|
+
return n ? ct({
|
|
232
|
+
block: r,
|
|
233
233
|
localState: i,
|
|
234
234
|
rootState: o,
|
|
235
|
-
rootSetState:
|
|
235
|
+
rootSetState: a,
|
|
236
236
|
context: t
|
|
237
|
-
}) :
|
|
237
|
+
}) : r;
|
|
238
238
|
}
|
|
239
|
-
const
|
|
239
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
240
240
|
function ut(e, t, n = {}) {
|
|
241
|
-
let i, o,
|
|
242
|
-
const
|
|
243
|
-
|
|
241
|
+
let i, o, a, r = null, s = 0;
|
|
242
|
+
const d = function() {
|
|
243
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
244
244
|
};
|
|
245
245
|
return function() {
|
|
246
|
-
const
|
|
247
|
-
!
|
|
248
|
-
const
|
|
249
|
-
return i = this, o = arguments,
|
|
246
|
+
const c = Date.now();
|
|
247
|
+
!s && n.leading === !1 && (s = c);
|
|
248
|
+
const m = t - (c - s);
|
|
249
|
+
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;
|
|
250
250
|
};
|
|
251
251
|
}
|
|
252
252
|
function U(e, ...t) {
|
|
@@ -254,8 +254,8 @@ function U(e, ...t) {
|
|
|
254
254
|
for (let i = 1; i < arguments.length; i++) {
|
|
255
255
|
const o = arguments[i];
|
|
256
256
|
if (o != null)
|
|
257
|
-
for (const
|
|
258
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
257
|
+
for (const a in o)
|
|
258
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
259
259
|
}
|
|
260
260
|
return n;
|
|
261
261
|
}
|
|
@@ -274,10 +274,10 @@ function Ve(e) {
|
|
|
274
274
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
275
275
|
}
|
|
276
276
|
function Ae(e, t) {
|
|
277
|
-
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles,
|
|
278
|
-
for (const
|
|
279
|
-
for (const
|
|
280
|
-
|
|
277
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
278
|
+
for (const s of r)
|
|
279
|
+
for (const d of n)
|
|
280
|
+
d in s || (s[d] = i[d]);
|
|
281
281
|
}
|
|
282
282
|
function ft(e) {
|
|
283
283
|
const t = [];
|
|
@@ -294,7 +294,7 @@ function Ne(e) {
|
|
|
294
294
|
}
|
|
295
295
|
Array.from(t).forEach((n) => {
|
|
296
296
|
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
297
|
-
n.style.transition = `all ${e.duration}s ${
|
|
297
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
298
298
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
299
299
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
300
300
|
});
|
|
@@ -309,37 +309,37 @@ function ht(e) {
|
|
|
309
309
|
Array.from(t).forEach((n) => {
|
|
310
310
|
Ae(e, n);
|
|
311
311
|
let i = !1, o = !1;
|
|
312
|
-
function
|
|
313
|
-
!i &&
|
|
314
|
-
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
312
|
+
function a() {
|
|
313
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
314
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
315
315
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
316
316
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
317
|
-
})) : e.repeat && i && !o && !
|
|
317
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const r = ut(a, 200, {
|
|
320
320
|
leading: !1
|
|
321
321
|
});
|
|
322
|
-
function
|
|
323
|
-
const
|
|
324
|
-
return
|
|
322
|
+
function s(m) {
|
|
323
|
+
const h = m.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
|
|
324
|
+
return h.bottom > g && h.top < f - g;
|
|
325
325
|
}
|
|
326
|
-
const
|
|
327
|
-
function
|
|
328
|
-
U(n.style,
|
|
326
|
+
const d = e.steps[0].styles;
|
|
327
|
+
function c() {
|
|
328
|
+
U(n.style, d);
|
|
329
329
|
}
|
|
330
|
-
|
|
331
|
-
n.style.transition = `all ${e.duration}s ${
|
|
332
|
-
}), document.addEventListener("scroll",
|
|
330
|
+
c(), setTimeout(() => {
|
|
331
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
332
|
+
}), document.addEventListener("scroll", r, {
|
|
333
333
|
capture: !0,
|
|
334
334
|
passive: !0
|
|
335
|
-
}),
|
|
335
|
+
}), a();
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
338
|
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
339
339
|
if (typeof i == "string")
|
|
340
|
-
return `${
|
|
340
|
+
return `${ee(n)}: ${i};`;
|
|
341
341
|
}).filter(Y), gt = (e) => We(e).join(`
|
|
342
|
-
`),
|
|
342
|
+
`), z = ({
|
|
343
343
|
mediaQuery: e,
|
|
344
344
|
className: t,
|
|
345
345
|
styles: n
|
|
@@ -380,25 +380,17 @@ function Fe(e) {
|
|
|
380
380
|
}
|
|
381
381
|
const yt = ({
|
|
382
382
|
block: e,
|
|
383
|
-
|
|
384
|
-
registeredComponents: n
|
|
383
|
+
registeredComponents: t
|
|
385
384
|
}) => {
|
|
386
|
-
var
|
|
387
|
-
const
|
|
388
|
-
|
|
389
|
-
localState: t.localState,
|
|
390
|
-
rootState: t.rootState,
|
|
391
|
-
rootSetState: t.rootSetState,
|
|
392
|
-
context: t.context,
|
|
393
|
-
shouldEvaluateBindings: !1
|
|
394
|
-
}).component) == null ? void 0 : l.name;
|
|
395
|
-
if (!i)
|
|
385
|
+
var o;
|
|
386
|
+
const n = (o = e.component) == null ? void 0 : o.name;
|
|
387
|
+
if (!n)
|
|
396
388
|
return null;
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
return
|
|
389
|
+
const i = t[n];
|
|
390
|
+
if (i)
|
|
391
|
+
return i;
|
|
400
392
|
console.warn(`
|
|
401
|
-
Could not find a registered component named "${
|
|
393
|
+
Could not find a registered component named "${n}".
|
|
402
394
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
403
395
|
}, xt = ({
|
|
404
396
|
block: e,
|
|
@@ -420,16 +412,16 @@ const yt = ({
|
|
|
420
412
|
});
|
|
421
413
|
if (!Array.isArray(o))
|
|
422
414
|
return;
|
|
423
|
-
const
|
|
424
|
-
return o.map((
|
|
415
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
416
|
+
return o.map((d, c) => ({
|
|
425
417
|
context: {
|
|
426
418
|
...t,
|
|
427
419
|
localState: {
|
|
428
420
|
...t.localState,
|
|
429
|
-
$index:
|
|
430
|
-
$item:
|
|
431
|
-
[
|
|
432
|
-
[`$${
|
|
421
|
+
$index: c,
|
|
422
|
+
$item: d,
|
|
423
|
+
[r]: d,
|
|
424
|
+
[`$${r}Index`]: c
|
|
433
425
|
}
|
|
434
426
|
},
|
|
435
427
|
block: i
|
|
@@ -470,11 +462,11 @@ const yt = ({
|
|
|
470
462
|
default: 991,
|
|
471
463
|
max: 1200
|
|
472
464
|
}
|
|
473
|
-
},
|
|
465
|
+
}, be = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
474
466
|
small: e,
|
|
475
467
|
medium: t
|
|
476
468
|
}) => {
|
|
477
|
-
const n =
|
|
469
|
+
const n = ce($e);
|
|
478
470
|
if (!e || !t)
|
|
479
471
|
return n;
|
|
480
472
|
const i = Math.floor(e / 2);
|
|
@@ -489,16 +481,16 @@ const yt = ({
|
|
|
489
481
|
min: o,
|
|
490
482
|
default: o + 1
|
|
491
483
|
};
|
|
492
|
-
const
|
|
484
|
+
const a = n.medium.max + 1;
|
|
493
485
|
return n.large = {
|
|
494
486
|
max: 2e3,
|
|
495
487
|
// TODO: decide upper limit
|
|
496
|
-
min:
|
|
497
|
-
default:
|
|
488
|
+
min: a,
|
|
489
|
+
default: a + 1
|
|
498
490
|
}, n;
|
|
499
491
|
};
|
|
500
|
-
function
|
|
501
|
-
return /* @__PURE__ */
|
|
492
|
+
function te(e) {
|
|
493
|
+
return /* @__PURE__ */ l(
|
|
502
494
|
"style",
|
|
503
495
|
{
|
|
504
496
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -509,71 +501,57 @@ function ne(e) {
|
|
|
509
501
|
}
|
|
510
502
|
function Tt(e) {
|
|
511
503
|
function t() {
|
|
512
|
-
const i =
|
|
513
|
-
block: e.block,
|
|
514
|
-
localState: e.context.localState,
|
|
515
|
-
rootState: e.context.rootState,
|
|
516
|
-
rootSetState: e.context.rootSetState,
|
|
517
|
-
context: e.context.context,
|
|
518
|
-
shouldEvaluateBindings: !0
|
|
519
|
-
});
|
|
504
|
+
const i = e.block;
|
|
520
505
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
521
506
|
}
|
|
522
507
|
function n() {
|
|
523
|
-
var
|
|
524
|
-
const i =
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
rootSetState: e.context.rootSetState,
|
|
529
|
-
context: e.context.context,
|
|
530
|
-
shouldEvaluateBindings: !0
|
|
531
|
-
}), o = i.responsiveStyles, l = e.context.content, a = De(
|
|
532
|
-
((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
|
|
533
|
-
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
534
|
-
if (!f)
|
|
508
|
+
var y, E, V;
|
|
509
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = De(
|
|
510
|
+
((y = a == null ? void 0 : a.meta) == null ? void 0 : y.breakpoints) || {}
|
|
511
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
512
|
+
if (!m)
|
|
535
513
|
return "";
|
|
536
|
-
const
|
|
537
|
-
className:
|
|
538
|
-
styles:
|
|
539
|
-
}) : "",
|
|
540
|
-
className:
|
|
541
|
-
styles:
|
|
542
|
-
mediaQuery:
|
|
514
|
+
const h = s ? z({
|
|
515
|
+
className: m,
|
|
516
|
+
styles: s
|
|
517
|
+
}) : "", f = d ? z({
|
|
518
|
+
className: m,
|
|
519
|
+
styles: d,
|
|
520
|
+
mediaQuery: be(
|
|
543
521
|
"medium",
|
|
544
|
-
|
|
522
|
+
r
|
|
545
523
|
)
|
|
546
|
-
}) : "",
|
|
547
|
-
className:
|
|
548
|
-
styles:
|
|
549
|
-
mediaQuery:
|
|
524
|
+
}) : "", u = c ? z({
|
|
525
|
+
className: m,
|
|
526
|
+
styles: c,
|
|
527
|
+
mediaQuery: be(
|
|
550
528
|
"small",
|
|
551
|
-
|
|
529
|
+
r
|
|
552
530
|
)
|
|
553
|
-
}) : "",
|
|
554
|
-
let
|
|
555
|
-
if (
|
|
556
|
-
const A = ((V = (E =
|
|
557
|
-
|
|
558
|
-
className: `${
|
|
531
|
+
}) : "", g = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
532
|
+
let x = "";
|
|
533
|
+
if (g) {
|
|
534
|
+
const A = ((V = (E = g.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
535
|
+
x = z({
|
|
536
|
+
className: `${m}:hover`,
|
|
559
537
|
styles: {
|
|
560
538
|
...A,
|
|
561
|
-
transition: `all ${
|
|
562
|
-
|
|
539
|
+
transition: `all ${g.duration}s ${ee(
|
|
540
|
+
g.easing
|
|
563
541
|
)}`,
|
|
564
|
-
transitionDelay:
|
|
542
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
565
543
|
}
|
|
566
544
|
}) || "";
|
|
567
545
|
}
|
|
568
546
|
return [
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
547
|
+
h,
|
|
548
|
+
f,
|
|
549
|
+
u,
|
|
550
|
+
x
|
|
573
551
|
].join(" ");
|
|
574
552
|
}
|
|
575
|
-
return /* @__PURE__ */
|
|
576
|
-
|
|
553
|
+
return /* @__PURE__ */ l(R, { children: n() && t() ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
554
|
+
te,
|
|
577
555
|
{
|
|
578
556
|
id: "builderio-block",
|
|
579
557
|
styles: n(),
|
|
@@ -600,18 +578,18 @@ function Le(e) {
|
|
|
600
578
|
for (const o in n) {
|
|
601
579
|
if (!n.hasOwnProperty(o))
|
|
602
580
|
continue;
|
|
603
|
-
const
|
|
604
|
-
let
|
|
581
|
+
const a = n[o];
|
|
582
|
+
let r = wt(o);
|
|
605
583
|
if (e.stripPrefix)
|
|
606
584
|
switch (K) {
|
|
607
585
|
case "vue":
|
|
608
|
-
|
|
586
|
+
r = r.replace("v-on:", "");
|
|
609
587
|
break;
|
|
610
588
|
case "svelte":
|
|
611
|
-
|
|
589
|
+
r = r.replace("on:", "");
|
|
612
590
|
break;
|
|
613
591
|
}
|
|
614
|
-
t[
|
|
592
|
+
t[r] = Rt(a, e);
|
|
615
593
|
}
|
|
616
594
|
return t;
|
|
617
595
|
}
|
|
@@ -623,7 +601,7 @@ function Et({
|
|
|
623
601
|
const Bt = (e) => ({
|
|
624
602
|
href: e.href
|
|
625
603
|
});
|
|
626
|
-
function
|
|
604
|
+
function me({
|
|
627
605
|
block: e,
|
|
628
606
|
context: t
|
|
629
607
|
}) {
|
|
@@ -645,11 +623,11 @@ function fe({
|
|
|
645
623
|
});
|
|
646
624
|
}
|
|
647
625
|
function Pt(e) {
|
|
648
|
-
return /* @__PURE__ */
|
|
649
|
-
|
|
626
|
+
return /* @__PURE__ */ l(
|
|
627
|
+
de,
|
|
650
628
|
{
|
|
651
629
|
TagName: e.Wrapper,
|
|
652
|
-
attributes:
|
|
630
|
+
attributes: me({
|
|
653
631
|
block: e.block,
|
|
654
632
|
context: e.context
|
|
655
633
|
}),
|
|
@@ -668,7 +646,7 @@ function Pt(e) {
|
|
|
668
646
|
function Vt(e) {
|
|
669
647
|
function t() {
|
|
670
648
|
return e.includeBlockProps ? {
|
|
671
|
-
...
|
|
649
|
+
...me({
|
|
672
650
|
block: e.block,
|
|
673
651
|
context: e.context
|
|
674
652
|
}),
|
|
@@ -681,7 +659,7 @@ function Vt(e) {
|
|
|
681
659
|
})
|
|
682
660
|
} : {};
|
|
683
661
|
}
|
|
684
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
685
663
|
}
|
|
686
664
|
const At = ({
|
|
687
665
|
componentOptions: e,
|
|
@@ -689,36 +667,36 @@ const At = ({
|
|
|
689
667
|
context: n,
|
|
690
668
|
componentRef: i,
|
|
691
669
|
includeBlockProps: o,
|
|
692
|
-
isInteractive:
|
|
693
|
-
contextValue:
|
|
670
|
+
isInteractive: a,
|
|
671
|
+
contextValue: r
|
|
694
672
|
}) => {
|
|
695
|
-
const
|
|
673
|
+
const s = {
|
|
696
674
|
...e,
|
|
697
675
|
/**
|
|
698
676
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
699
677
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
700
678
|
*/
|
|
701
679
|
...o ? {
|
|
702
|
-
attributes:
|
|
680
|
+
attributes: me({
|
|
703
681
|
block: t,
|
|
704
|
-
context:
|
|
682
|
+
context: r
|
|
705
683
|
})
|
|
706
684
|
} : {}
|
|
707
685
|
};
|
|
708
|
-
return
|
|
686
|
+
return a ? {
|
|
709
687
|
Wrapper: i,
|
|
710
688
|
block: t,
|
|
711
689
|
context: n,
|
|
712
690
|
wrapperProps: e,
|
|
713
691
|
includeBlockProps: o
|
|
714
|
-
} :
|
|
692
|
+
} : s;
|
|
715
693
|
};
|
|
716
|
-
function
|
|
694
|
+
function pe(e) {
|
|
717
695
|
var i;
|
|
718
|
-
const [t, n] =
|
|
696
|
+
const [t, n] = T(
|
|
719
697
|
() => e.isInteractive ? Vt : e.componentRef
|
|
720
698
|
);
|
|
721
|
-
return /* @__PURE__ */
|
|
699
|
+
return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
722
700
|
t,
|
|
723
701
|
{
|
|
724
702
|
...At({
|
|
@@ -731,8 +709,8 @@ function ye(e) {
|
|
|
731
709
|
isInteractive: e.isInteractive,
|
|
732
710
|
contextValue: e.context
|
|
733
711
|
}),
|
|
734
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
735
|
-
|
|
712
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
713
|
+
_,
|
|
736
714
|
{
|
|
737
715
|
block: o,
|
|
738
716
|
context: e.context,
|
|
@@ -745,9 +723,9 @@ function ye(e) {
|
|
|
745
723
|
) }) : null });
|
|
746
724
|
}
|
|
747
725
|
function Nt(e) {
|
|
748
|
-
const [t, n] =
|
|
749
|
-
return /* @__PURE__ */
|
|
750
|
-
|
|
726
|
+
const [t, n] = T(() => e.repeatContext);
|
|
727
|
+
return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
728
|
+
_,
|
|
751
729
|
{
|
|
752
730
|
block: e.block,
|
|
753
731
|
context: t,
|
|
@@ -756,11 +734,11 @@ function Nt(e) {
|
|
|
756
734
|
}
|
|
757
735
|
) });
|
|
758
736
|
}
|
|
759
|
-
function
|
|
760
|
-
var
|
|
737
|
+
function _(e) {
|
|
738
|
+
var m, h, f;
|
|
761
739
|
function t() {
|
|
762
740
|
return yt({
|
|
763
|
-
block:
|
|
741
|
+
block: a(),
|
|
764
742
|
context: e.context,
|
|
765
743
|
registeredComponents: e.registeredComponents
|
|
766
744
|
});
|
|
@@ -771,9 +749,15 @@ function z(e) {
|
|
|
771
749
|
context: e.context
|
|
772
750
|
});
|
|
773
751
|
}
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
752
|
+
const [i, o] = T(() => ({
|
|
753
|
+
value: null,
|
|
754
|
+
update: !1
|
|
755
|
+
}));
|
|
756
|
+
function a() {
|
|
757
|
+
var g;
|
|
758
|
+
if (i.value && !i.update && !Te())
|
|
759
|
+
return i.value;
|
|
760
|
+
const u = (g = e.block.repeat) != null && g.collection ? e.block : dt({
|
|
777
761
|
block: e.block,
|
|
778
762
|
localState: e.context.localState,
|
|
779
763
|
rootState: e.context.rootState,
|
|
@@ -781,30 +765,31 @@ function z(e) {
|
|
|
781
765
|
context: e.context.context,
|
|
782
766
|
shouldEvaluateBindings: !0
|
|
783
767
|
});
|
|
768
|
+
return i.value = u, i.update = !1, u;
|
|
784
769
|
}
|
|
785
|
-
function
|
|
786
|
-
var
|
|
787
|
-
return e.block.tagName === "a" || ((
|
|
770
|
+
function r() {
|
|
771
|
+
var g;
|
|
772
|
+
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
788
773
|
}
|
|
789
|
-
function
|
|
790
|
-
var
|
|
791
|
-
if ((
|
|
792
|
-
return !!((
|
|
793
|
-
const
|
|
794
|
-
return ("show" in
|
|
774
|
+
function s() {
|
|
775
|
+
var x, y;
|
|
776
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
777
|
+
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
778
|
+
const u = "hide" in a() ? a().hide : !1;
|
|
779
|
+
return ("show" in a() ? a().show : !0) && !u;
|
|
795
780
|
}
|
|
796
|
-
function
|
|
797
|
-
var
|
|
798
|
-
return !((
|
|
781
|
+
function d() {
|
|
782
|
+
var g, x;
|
|
783
|
+
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (x = a().children) != null ? x : [] : [];
|
|
799
784
|
}
|
|
800
|
-
function
|
|
801
|
-
var
|
|
785
|
+
function c() {
|
|
786
|
+
var u, g, x, y;
|
|
802
787
|
return {
|
|
803
|
-
blockChildren: (
|
|
804
|
-
componentRef: (
|
|
788
|
+
blockChildren: (u = a().children) != null ? u : [],
|
|
789
|
+
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
805
790
|
componentOptions: {
|
|
806
|
-
...
|
|
807
|
-
...kt(t(),
|
|
791
|
+
...ot(a()),
|
|
792
|
+
...kt(t(), a()),
|
|
808
793
|
...Ct(t(), e.context),
|
|
809
794
|
...vt(t(), e.linkComponent),
|
|
810
795
|
...St(
|
|
@@ -815,73 +800,75 @@ function z(e) {
|
|
|
815
800
|
context: e.context,
|
|
816
801
|
linkComponent: e.linkComponent,
|
|
817
802
|
registeredComponents: e.registeredComponents,
|
|
818
|
-
builderBlock:
|
|
819
|
-
includeBlockProps: ((
|
|
820
|
-
isInteractive: !((
|
|
803
|
+
builderBlock: a(),
|
|
804
|
+
includeBlockProps: ((x = t == null ? void 0 : t()) == null ? void 0 : x.noWrap) === !0,
|
|
805
|
+
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
821
806
|
};
|
|
822
807
|
}
|
|
823
808
|
return B(() => {
|
|
824
|
-
const
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
...
|
|
828
|
-
elementId:
|
|
809
|
+
const u = a().id, g = a().animations;
|
|
810
|
+
g && u && mt(
|
|
811
|
+
g.map((x) => ({
|
|
812
|
+
...x,
|
|
813
|
+
elementId: u
|
|
829
814
|
}))
|
|
830
815
|
);
|
|
831
|
-
}, []),
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
816
|
+
}, []), B(() => {
|
|
817
|
+
i.update = !0;
|
|
818
|
+
}), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ P(R, { children: [
|
|
819
|
+
/* @__PURE__ */ l(Tt, { block: a(), context: e.context }),
|
|
820
|
+
(m = t == null ? void 0 : t()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
821
|
+
pe,
|
|
835
822
|
{
|
|
836
|
-
componentRef:
|
|
837
|
-
componentOptions:
|
|
838
|
-
blockChildren:
|
|
839
|
-
context:
|
|
840
|
-
registeredComponents:
|
|
841
|
-
linkComponent:
|
|
842
|
-
builderBlock:
|
|
843
|
-
includeBlockProps:
|
|
844
|
-
isInteractive:
|
|
823
|
+
componentRef: c().componentRef,
|
|
824
|
+
componentOptions: c().componentOptions,
|
|
825
|
+
blockChildren: c().blockChildren,
|
|
826
|
+
context: c().context,
|
|
827
|
+
registeredComponents: c().registeredComponents,
|
|
828
|
+
linkComponent: c().linkComponent,
|
|
829
|
+
builderBlock: c().builderBlock,
|
|
830
|
+
includeBlockProps: c().includeBlockProps,
|
|
831
|
+
isInteractive: c().isInteractive
|
|
845
832
|
}
|
|
846
|
-
) }) : /* @__PURE__ */
|
|
833
|
+
) }) : /* @__PURE__ */ l(R, { children: n() ? /* @__PURE__ */ l(R, { children: (f = n()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
847
834
|
Nt,
|
|
848
835
|
{
|
|
849
|
-
repeatContext:
|
|
850
|
-
block:
|
|
836
|
+
repeatContext: u.context,
|
|
837
|
+
block: u.block,
|
|
851
838
|
registeredComponents: e.registeredComponents,
|
|
852
839
|
linkComponent: e.linkComponent
|
|
853
840
|
},
|
|
854
|
-
|
|
841
|
+
g
|
|
855
842
|
)) }) : /* @__PURE__ */ P(
|
|
856
843
|
Pt,
|
|
857
844
|
{
|
|
858
|
-
Wrapper:
|
|
859
|
-
block:
|
|
845
|
+
Wrapper: r(),
|
|
846
|
+
block: a(),
|
|
860
847
|
context: e.context,
|
|
861
848
|
children: [
|
|
862
|
-
/* @__PURE__ */
|
|
863
|
-
|
|
849
|
+
/* @__PURE__ */ l(
|
|
850
|
+
pe,
|
|
864
851
|
{
|
|
865
|
-
componentRef:
|
|
866
|
-
componentOptions:
|
|
867
|
-
blockChildren:
|
|
868
|
-
context:
|
|
869
|
-
registeredComponents:
|
|
870
|
-
linkComponent:
|
|
871
|
-
builderBlock:
|
|
872
|
-
includeBlockProps:
|
|
873
|
-
isInteractive:
|
|
852
|
+
componentRef: c().componentRef,
|
|
853
|
+
componentOptions: c().componentOptions,
|
|
854
|
+
blockChildren: c().blockChildren,
|
|
855
|
+
context: c().context,
|
|
856
|
+
registeredComponents: c().registeredComponents,
|
|
857
|
+
linkComponent: c().linkComponent,
|
|
858
|
+
builderBlock: c().builderBlock,
|
|
859
|
+
includeBlockProps: c().includeBlockProps,
|
|
860
|
+
isInteractive: c().isInteractive
|
|
874
861
|
}
|
|
875
862
|
),
|
|
876
|
-
(
|
|
877
|
-
|
|
863
|
+
(h = d()) == null ? void 0 : h.map((u) => /* @__PURE__ */ l(
|
|
864
|
+
_,
|
|
878
865
|
{
|
|
879
|
-
block:
|
|
866
|
+
block: u,
|
|
880
867
|
registeredComponents: e.registeredComponents,
|
|
881
868
|
linkComponent: e.linkComponent,
|
|
882
869
|
context: e.context
|
|
883
870
|
},
|
|
884
|
-
|
|
871
|
+
u.id
|
|
885
872
|
))
|
|
886
873
|
]
|
|
887
874
|
}
|
|
@@ -894,8 +881,8 @@ function Wt(e) {
|
|
|
894
881
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
895
882
|
}
|
|
896
883
|
function n() {
|
|
897
|
-
var o,
|
|
898
|
-
$() && !((o = e.blocks) != null && o.length) && ((
|
|
884
|
+
var o, a;
|
|
885
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
899
886
|
{
|
|
900
887
|
type: "builder.clickEmptyBlocks",
|
|
901
888
|
data: {
|
|
@@ -907,8 +894,8 @@ function Wt(e) {
|
|
|
907
894
|
));
|
|
908
895
|
}
|
|
909
896
|
function i() {
|
|
910
|
-
var o,
|
|
911
|
-
$() && !((o = e.blocks) != null && o.length) && ((
|
|
897
|
+
var o, a;
|
|
898
|
+
$() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
912
899
|
{
|
|
913
900
|
type: "builder.hoverEmptyBlocks",
|
|
914
901
|
data: {
|
|
@@ -920,7 +907,7 @@ function Wt(e) {
|
|
|
920
907
|
));
|
|
921
908
|
}
|
|
922
909
|
return /* @__PURE__ */ P(R, { children: [
|
|
923
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ l(
|
|
924
911
|
e.BlocksWrapper,
|
|
925
912
|
{
|
|
926
913
|
className: t() + " props-blocks-wrapper-7cd1560e",
|
|
@@ -934,7 +921,7 @@ function Wt(e) {
|
|
|
934
921
|
children: e.children
|
|
935
922
|
}
|
|
936
923
|
),
|
|
937
|
-
/* @__PURE__ */
|
|
924
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
|
|
938
925
|
display: flex;
|
|
939
926
|
flex-direction: column;
|
|
940
927
|
align-items: stretch;
|
|
@@ -942,9 +929,9 @@ function Wt(e) {
|
|
|
942
929
|
] });
|
|
943
930
|
}
|
|
944
931
|
function D(e) {
|
|
945
|
-
var i, o,
|
|
946
|
-
const t =
|
|
947
|
-
return /* @__PURE__ */
|
|
932
|
+
var i, o, a;
|
|
933
|
+
const t = ge(ue), n = ge(Be);
|
|
934
|
+
return /* @__PURE__ */ l(
|
|
948
935
|
Wt,
|
|
949
936
|
{
|
|
950
937
|
blocks: e.blocks,
|
|
@@ -953,15 +940,15 @@ function D(e) {
|
|
|
953
940
|
styleProp: e.styleProp,
|
|
954
941
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
955
942
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
956
|
-
children: e.blocks ? /* @__PURE__ */
|
|
957
|
-
|
|
943
|
+
children: e.blocks ? /* @__PURE__ */ l(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
944
|
+
_,
|
|
958
945
|
{
|
|
959
|
-
block:
|
|
946
|
+
block: r,
|
|
960
947
|
linkComponent: e.linkComponent,
|
|
961
948
|
context: e.context || t,
|
|
962
949
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
963
950
|
},
|
|
964
|
-
|
|
951
|
+
r.id
|
|
965
952
|
)) }) : null
|
|
966
953
|
}
|
|
967
954
|
);
|
|
@@ -969,48 +956,48 @@ function D(e) {
|
|
|
969
956
|
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
970
957
|
function $t(e) {
|
|
971
958
|
var A, O;
|
|
972
|
-
const [t, n] =
|
|
959
|
+
const [t, n] = T(
|
|
973
960
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
974
|
-
), [i, o] =
|
|
961
|
+
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
975
962
|
() => e.stackColumnsAt || "tablet"
|
|
976
963
|
);
|
|
977
|
-
function
|
|
978
|
-
return
|
|
964
|
+
function s(k) {
|
|
965
|
+
return k.link ? e.builderLinkComponent || "a" : "div";
|
|
979
966
|
}
|
|
980
|
-
function
|
|
967
|
+
function d(k) {
|
|
981
968
|
var w;
|
|
982
|
-
return ((w = i[
|
|
969
|
+
return ((w = i[k]) == null ? void 0 : w.width) || 100 / i.length;
|
|
983
970
|
}
|
|
984
|
-
function
|
|
985
|
-
const w =
|
|
971
|
+
function c(k) {
|
|
972
|
+
const w = d(k), N = t * (i.length - 1) * (w / 100);
|
|
986
973
|
return `calc(${w}% - ${N}px)`;
|
|
987
974
|
}
|
|
988
|
-
function
|
|
989
|
-
stackedStyle:
|
|
975
|
+
function m({
|
|
976
|
+
stackedStyle: k,
|
|
990
977
|
desktopStyle: w
|
|
991
978
|
}) {
|
|
992
|
-
return
|
|
979
|
+
return a === "tablet" ? k : w;
|
|
993
980
|
}
|
|
994
|
-
function
|
|
995
|
-
stackedStyle:
|
|
981
|
+
function h({
|
|
982
|
+
stackedStyle: k,
|
|
996
983
|
desktopStyle: w
|
|
997
984
|
}) {
|
|
998
|
-
return
|
|
985
|
+
return a === "never" ? w : k;
|
|
999
986
|
}
|
|
1000
|
-
const [
|
|
987
|
+
const [f, u] = T(
|
|
1001
988
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1002
989
|
);
|
|
1003
|
-
function
|
|
990
|
+
function g() {
|
|
1004
991
|
return {
|
|
1005
|
-
"--flex-dir":
|
|
1006
|
-
"--flex-dir-tablet":
|
|
1007
|
-
stackedStyle:
|
|
992
|
+
"--flex-dir": f,
|
|
993
|
+
"--flex-dir-tablet": m({
|
|
994
|
+
stackedStyle: f,
|
|
1008
995
|
desktopStyle: "row"
|
|
1009
996
|
})
|
|
1010
997
|
};
|
|
1011
998
|
}
|
|
1012
|
-
function
|
|
1013
|
-
const w =
|
|
999
|
+
function x(k) {
|
|
1000
|
+
const w = k === 0 ? 0 : t, N = c(k), p = `${w}px`, b = "100%", v = 0;
|
|
1014
1001
|
return {
|
|
1015
1002
|
...{
|
|
1016
1003
|
display: "flex",
|
|
@@ -1018,34 +1005,34 @@ function $t(e) {
|
|
|
1018
1005
|
alignItems: "stretch"
|
|
1019
1006
|
},
|
|
1020
1007
|
width: N,
|
|
1021
|
-
["marginLeft"]:
|
|
1022
|
-
"--column-width-mobile":
|
|
1023
|
-
stackedStyle:
|
|
1008
|
+
["marginLeft"]: p,
|
|
1009
|
+
"--column-width-mobile": h({
|
|
1010
|
+
stackedStyle: b,
|
|
1024
1011
|
desktopStyle: N
|
|
1025
1012
|
}),
|
|
1026
|
-
"--column-margin-left-mobile":
|
|
1027
|
-
stackedStyle:
|
|
1028
|
-
desktopStyle:
|
|
1013
|
+
"--column-margin-left-mobile": h({
|
|
1014
|
+
stackedStyle: v,
|
|
1015
|
+
desktopStyle: p
|
|
1029
1016
|
}),
|
|
1030
|
-
"--column-width-tablet":
|
|
1031
|
-
stackedStyle:
|
|
1017
|
+
"--column-width-tablet": m({
|
|
1018
|
+
stackedStyle: b,
|
|
1032
1019
|
desktopStyle: N
|
|
1033
1020
|
}),
|
|
1034
|
-
"--column-margin-left-tablet":
|
|
1035
|
-
stackedStyle:
|
|
1036
|
-
desktopStyle:
|
|
1021
|
+
"--column-margin-left-tablet": m({
|
|
1022
|
+
stackedStyle: v,
|
|
1023
|
+
desktopStyle: p
|
|
1037
1024
|
})
|
|
1038
1025
|
};
|
|
1039
1026
|
}
|
|
1040
|
-
function
|
|
1041
|
-
var N,
|
|
1027
|
+
function y(k) {
|
|
1028
|
+
var N, p;
|
|
1042
1029
|
return De(
|
|
1043
|
-
((
|
|
1044
|
-
)[
|
|
1030
|
+
((p = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : p.breakpoints) || {}
|
|
1031
|
+
)[k].max;
|
|
1045
1032
|
}
|
|
1046
1033
|
function E() {
|
|
1047
1034
|
return `
|
|
1048
|
-
@media (max-width: ${
|
|
1035
|
+
@media (max-width: ${y("medium")}px) {
|
|
1049
1036
|
.${e.builderBlock.id}-breakpoints {
|
|
1050
1037
|
flex-direction: var(--flex-dir-tablet);
|
|
1051
1038
|
align-items: stretch;
|
|
@@ -1057,7 +1044,7 @@ function $t(e) {
|
|
|
1057
1044
|
}
|
|
1058
1045
|
}
|
|
1059
1046
|
|
|
1060
|
-
@media (max-width: ${
|
|
1047
|
+
@media (max-width: ${y("small")}px) {
|
|
1061
1048
|
.${e.builderBlock.id}-breakpoints {
|
|
1062
1049
|
flex-direction: var(--flex-dir);
|
|
1063
1050
|
align-items: stretch;
|
|
@@ -1070,13 +1057,13 @@ function $t(e) {
|
|
|
1070
1057
|
},
|
|
1071
1058
|
`;
|
|
1072
1059
|
}
|
|
1073
|
-
function V(
|
|
1060
|
+
function V(k, w) {
|
|
1074
1061
|
return {
|
|
1075
|
-
...
|
|
1076
|
-
href:
|
|
1062
|
+
...k.link ? {
|
|
1063
|
+
href: k.link
|
|
1077
1064
|
} : {},
|
|
1078
1065
|
[H()]: "builder-column",
|
|
1079
|
-
style: Fe(
|
|
1066
|
+
style: Fe(x(w))
|
|
1080
1067
|
};
|
|
1081
1068
|
}
|
|
1082
1069
|
return /* @__PURE__ */ P(R, { children: [
|
|
@@ -1084,23 +1071,23 @@ function $t(e) {
|
|
|
1084
1071
|
"div",
|
|
1085
1072
|
{
|
|
1086
1073
|
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1087
|
-
style:
|
|
1074
|
+
style: g(),
|
|
1088
1075
|
children: [
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
|
|
1076
|
+
/* @__PURE__ */ l(
|
|
1077
|
+
te,
|
|
1091
1078
|
{
|
|
1092
1079
|
id: "builderio-columns",
|
|
1093
1080
|
styles: E(),
|
|
1094
1081
|
nonce: e.builderContext.nonce
|
|
1095
1082
|
}
|
|
1096
1083
|
),
|
|
1097
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
1098
|
-
|
|
1084
|
+
(O = e.columns) == null ? void 0 : O.map((k, w) => /* @__PURE__ */ l(
|
|
1085
|
+
de,
|
|
1099
1086
|
{
|
|
1100
|
-
TagName:
|
|
1087
|
+
TagName: s(k),
|
|
1101
1088
|
actionAttributes: {},
|
|
1102
|
-
attributes: V(
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1089
|
+
attributes: V(k, w),
|
|
1090
|
+
children: /* @__PURE__ */ l(
|
|
1104
1091
|
D,
|
|
1105
1092
|
{
|
|
1106
1093
|
path: `component.options.columns.${w}.blocks`,
|
|
@@ -1111,7 +1098,7 @@ function $t(e) {
|
|
|
1111
1098
|
context: e.builderContext,
|
|
1112
1099
|
registeredComponents: e.builderComponents,
|
|
1113
1100
|
linkComponent: e.builderLinkComponent,
|
|
1114
|
-
blocks:
|
|
1101
|
+
blocks: k.blocks
|
|
1115
1102
|
}
|
|
1116
1103
|
)
|
|
1117
1104
|
},
|
|
@@ -1120,16 +1107,16 @@ function $t(e) {
|
|
|
1120
1107
|
]
|
|
1121
1108
|
}
|
|
1122
1109
|
),
|
|
1123
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ l("style", { children: `.div-fe220f58 {
|
|
1124
1111
|
display: flex;
|
|
1125
1112
|
line-height: normal;
|
|
1126
1113
|
}` })
|
|
1127
1114
|
] });
|
|
1128
1115
|
}
|
|
1129
1116
|
function Dt(e) {
|
|
1130
|
-
return /* @__PURE__ */
|
|
1117
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1131
1118
|
}
|
|
1132
|
-
function
|
|
1119
|
+
function ye(e) {
|
|
1133
1120
|
return e.replace(/http(s)?:/, "");
|
|
1134
1121
|
}
|
|
1135
1122
|
function Lt(e = "", t, n) {
|
|
@@ -1140,15 +1127,15 @@ function Ot(e, t) {
|
|
|
1140
1127
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1141
1128
|
return e;
|
|
1142
1129
|
if (t === "master")
|
|
1143
|
-
return
|
|
1130
|
+
return ye(e);
|
|
1144
1131
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1145
1132
|
if (n) {
|
|
1146
|
-
const i = e.split(n[0]), o = n[3],
|
|
1147
|
-
return
|
|
1133
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1134
|
+
return ye(`${i[0]}_${a}${o}`);
|
|
1148
1135
|
}
|
|
1149
1136
|
return null;
|
|
1150
1137
|
}
|
|
1151
|
-
function
|
|
1138
|
+
function ie(e) {
|
|
1152
1139
|
if (!e)
|
|
1153
1140
|
return e;
|
|
1154
1141
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -1160,40 +1147,40 @@ function oe(e) {
|
|
|
1160
1147
|
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;
|
|
1161
1148
|
}
|
|
1162
1149
|
function jt(e) {
|
|
1163
|
-
var o,
|
|
1150
|
+
var o, a, r, s, d, c;
|
|
1164
1151
|
function t() {
|
|
1165
|
-
var
|
|
1166
|
-
const
|
|
1167
|
-
if (!
|
|
1152
|
+
var f;
|
|
1153
|
+
const h = e.image || e.src;
|
|
1154
|
+
if (!h || // We can auto add srcset for cdn.builder.io and shopify
|
|
1168
1155
|
// images, otherwise you can supply this prop manually
|
|
1169
|
-
!(
|
|
1156
|
+
!(h.match(/builder\.io/) || h.match(/cdn\.shopify\.com/)))
|
|
1170
1157
|
return e.srcset;
|
|
1171
|
-
if (e.srcset && ((
|
|
1158
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1172
1159
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1173
|
-
return console.debug("Removed given srcset"),
|
|
1160
|
+
return console.debug("Removed given srcset"), ie(h);
|
|
1174
1161
|
} else if (e.image && !e.srcset)
|
|
1175
|
-
return
|
|
1176
|
-
return
|
|
1162
|
+
return ie(h);
|
|
1163
|
+
return ie(h);
|
|
1177
1164
|
}
|
|
1178
1165
|
function n() {
|
|
1179
|
-
var
|
|
1180
|
-
return (
|
|
1166
|
+
var m;
|
|
1167
|
+
return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1181
1168
|
}
|
|
1182
1169
|
function i() {
|
|
1183
|
-
const
|
|
1170
|
+
const m = {
|
|
1184
1171
|
position: "absolute",
|
|
1185
1172
|
height: "100%",
|
|
1186
1173
|
width: "100%",
|
|
1187
1174
|
left: "0px",
|
|
1188
1175
|
top: "0px"
|
|
1189
1176
|
};
|
|
1190
|
-
return e.aspectRatio ?
|
|
1177
|
+
return e.aspectRatio ? m : void 0;
|
|
1191
1178
|
}
|
|
1192
1179
|
return /* @__PURE__ */ P(R, { children: [
|
|
1193
1180
|
/* @__PURE__ */ P(R, { children: [
|
|
1194
1181
|
/* @__PURE__ */ P("picture", { children: [
|
|
1195
|
-
n() ? /* @__PURE__ */
|
|
1196
|
-
/* @__PURE__ */
|
|
1182
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1183
|
+
/* @__PURE__ */ l(
|
|
1197
1184
|
"img",
|
|
1198
1185
|
{
|
|
1199
1186
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1212,7 +1199,7 @@ function jt(e) {
|
|
|
1212
1199
|
}
|
|
1213
1200
|
)
|
|
1214
1201
|
] }),
|
|
1215
|
-
e.aspectRatio && !((
|
|
1202
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1216
1203
|
"div",
|
|
1217
1204
|
{
|
|
1218
1205
|
className: "builder-image-sizer div-ac3dff4a",
|
|
@@ -1221,10 +1208,10 @@ function jt(e) {
|
|
|
1221
1208
|
}
|
|
1222
1209
|
}
|
|
1223
1210
|
) : null,
|
|
1224
|
-
(
|
|
1225
|
-
!e.fitContent && ((
|
|
1211
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(R, { children: e.children }) : null,
|
|
1212
|
+
!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
|
|
1226
1213
|
] }),
|
|
1227
|
-
/* @__PURE__ */
|
|
1214
|
+
/* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
|
|
1228
1215
|
opacity: 1;
|
|
1229
1216
|
transition: opacity 0.2s ease-in-out;
|
|
1230
1217
|
}.div-ac3dff4a {
|
|
@@ -1244,7 +1231,7 @@ function jt(e) {
|
|
|
1244
1231
|
] });
|
|
1245
1232
|
}
|
|
1246
1233
|
function Mt(e) {
|
|
1247
|
-
return /* @__PURE__ */
|
|
1234
|
+
return /* @__PURE__ */ l(
|
|
1248
1235
|
"section",
|
|
1249
1236
|
{
|
|
1250
1237
|
...e.attributes,
|
|
@@ -1264,7 +1251,7 @@ function Mt(e) {
|
|
|
1264
1251
|
}
|
|
1265
1252
|
);
|
|
1266
1253
|
}
|
|
1267
|
-
const
|
|
1254
|
+
const oe = {
|
|
1268
1255
|
"@type": "@builder.io/sdk:Element",
|
|
1269
1256
|
layerName: "Accordion item title",
|
|
1270
1257
|
responsiveStyles: {
|
|
@@ -1293,7 +1280,7 @@ const ae = {
|
|
|
1293
1280
|
}
|
|
1294
1281
|
}
|
|
1295
1282
|
}]
|
|
1296
|
-
},
|
|
1283
|
+
}, ae = {
|
|
1297
1284
|
"@type": "@builder.io/sdk:Element",
|
|
1298
1285
|
layerName: "Accordion item detail",
|
|
1299
1286
|
responsiveStyles: {
|
|
@@ -1341,19 +1328,19 @@ const ae = {
|
|
|
1341
1328
|
name: "title",
|
|
1342
1329
|
type: "uiBlocks",
|
|
1343
1330
|
hideFromUI: !0,
|
|
1344
|
-
defaultValue: [
|
|
1331
|
+
defaultValue: [oe]
|
|
1345
1332
|
}, {
|
|
1346
1333
|
name: "detail",
|
|
1347
1334
|
type: "uiBlocks",
|
|
1348
1335
|
hideFromUI: !0,
|
|
1349
|
-
defaultValue: [
|
|
1336
|
+
defaultValue: [ae]
|
|
1350
1337
|
}],
|
|
1351
1338
|
defaultValue: [{
|
|
1352
|
-
title: [
|
|
1353
|
-
detail: [
|
|
1339
|
+
title: [oe],
|
|
1340
|
+
detail: [ae]
|
|
1354
1341
|
}, {
|
|
1355
|
-
title: [
|
|
1356
|
-
detail: [
|
|
1342
|
+
title: [oe],
|
|
1343
|
+
detail: [ae]
|
|
1357
1344
|
}],
|
|
1358
1345
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1359
1346
|
}, {
|
|
@@ -1388,10 +1375,10 @@ const ae = {
|
|
|
1388
1375
|
builderComponents: !0,
|
|
1389
1376
|
builderLinkComponent: !0
|
|
1390
1377
|
}
|
|
1391
|
-
},
|
|
1378
|
+
}, xe = (e) => e.toString();
|
|
1392
1379
|
function Ht(e) {
|
|
1393
|
-
var
|
|
1394
|
-
const [t, n] =
|
|
1380
|
+
var h;
|
|
1381
|
+
const [t, n] = T(() => []);
|
|
1395
1382
|
function i() {
|
|
1396
1383
|
return !!(e.grid || e.oneAtATime);
|
|
1397
1384
|
}
|
|
@@ -1407,8 +1394,8 @@ function Ht(e) {
|
|
|
1407
1394
|
}
|
|
1408
1395
|
};
|
|
1409
1396
|
}
|
|
1410
|
-
function
|
|
1411
|
-
const
|
|
1397
|
+
function a() {
|
|
1398
|
+
const u = {
|
|
1412
1399
|
...{
|
|
1413
1400
|
display: "flex",
|
|
1414
1401
|
flexDirection: "column"
|
|
@@ -1417,73 +1404,73 @@ function Ht(e) {
|
|
|
1417
1404
|
cursor: "pointer"
|
|
1418
1405
|
};
|
|
1419
1406
|
return Object.fromEntries(
|
|
1420
|
-
Object.entries(
|
|
1407
|
+
Object.entries(u).filter(([g, x]) => x !== void 0)
|
|
1421
1408
|
);
|
|
1422
1409
|
}
|
|
1423
|
-
function
|
|
1424
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1410
|
+
function r(f) {
|
|
1411
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1425
1412
|
}
|
|
1426
|
-
function
|
|
1427
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1413
|
+
function s(f) {
|
|
1414
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1428
1415
|
}
|
|
1429
|
-
function
|
|
1430
|
-
let
|
|
1416
|
+
function d() {
|
|
1417
|
+
let f = null;
|
|
1431
1418
|
if (e.grid && t.length && document) {
|
|
1432
|
-
const
|
|
1433
|
-
let
|
|
1434
|
-
`.builder-accordion-title[data-index="${
|
|
1419
|
+
const g = t[0];
|
|
1420
|
+
let y = document.querySelector(
|
|
1421
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1435
1422
|
);
|
|
1436
|
-
if (
|
|
1437
|
-
let E =
|
|
1438
|
-
for (;
|
|
1439
|
-
if (
|
|
1440
|
-
if (
|
|
1423
|
+
if (f = g, y) {
|
|
1424
|
+
let E = y.getBoundingClientRect();
|
|
1425
|
+
for (; y = y && y.nextElementSibling; )
|
|
1426
|
+
if (y) {
|
|
1427
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1441
1428
|
continue;
|
|
1442
|
-
const V =
|
|
1429
|
+
const V = y.getBoundingClientRect();
|
|
1443
1430
|
if (V.left > E.left) {
|
|
1444
1431
|
const A = parseInt(
|
|
1445
|
-
|
|
1432
|
+
y.getAttribute("data-index") || "",
|
|
1446
1433
|
10
|
|
1447
1434
|
);
|
|
1448
|
-
isNaN(A) || (E = V,
|
|
1435
|
+
isNaN(A) || (E = V, f = A);
|
|
1449
1436
|
} else
|
|
1450
1437
|
break;
|
|
1451
1438
|
}
|
|
1452
1439
|
}
|
|
1453
1440
|
}
|
|
1454
|
-
return typeof
|
|
1441
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1455
1442
|
}
|
|
1456
|
-
function
|
|
1457
|
-
const
|
|
1458
|
-
order: typeof
|
|
1443
|
+
function c() {
|
|
1444
|
+
const f = {
|
|
1445
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1459
1446
|
...e.grid && {
|
|
1460
1447
|
width: "100%"
|
|
1461
1448
|
}
|
|
1462
1449
|
};
|
|
1463
1450
|
return Object.fromEntries(
|
|
1464
|
-
Object.entries(
|
|
1451
|
+
Object.entries(f).filter(([u, g]) => g !== void 0)
|
|
1465
1452
|
);
|
|
1466
1453
|
}
|
|
1467
|
-
function f
|
|
1468
|
-
t.includes(
|
|
1454
|
+
function m(f) {
|
|
1455
|
+
t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
|
|
1469
1456
|
}
|
|
1470
|
-
return /* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1457
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ P(R, { children: [
|
|
1458
|
+
/* @__PURE__ */ l(
|
|
1472
1459
|
"div",
|
|
1473
1460
|
{
|
|
1474
|
-
className:
|
|
1461
|
+
className: r(u),
|
|
1475
1462
|
style: {
|
|
1476
|
-
...
|
|
1463
|
+
...a(),
|
|
1477
1464
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1478
|
-
order:
|
|
1465
|
+
order: d() !== null ? xe(u) : xe(u + 1)
|
|
1479
1466
|
},
|
|
1480
|
-
"data-index":
|
|
1481
|
-
onClick: (
|
|
1482
|
-
children: /* @__PURE__ */
|
|
1467
|
+
"data-index": u,
|
|
1468
|
+
onClick: (g) => m(u),
|
|
1469
|
+
children: /* @__PURE__ */ l(
|
|
1483
1470
|
D,
|
|
1484
1471
|
{
|
|
1485
|
-
blocks:
|
|
1486
|
-
path: `items.${
|
|
1472
|
+
blocks: f.title,
|
|
1473
|
+
path: `items.${u}.title`,
|
|
1487
1474
|
parent: e.builderBlock.id,
|
|
1488
1475
|
context: e.builderContext,
|
|
1489
1476
|
registeredComponents: e.builderComponents,
|
|
@@ -1492,16 +1479,16 @@ function Ht(e) {
|
|
|
1492
1479
|
)
|
|
1493
1480
|
}
|
|
1494
1481
|
),
|
|
1495
|
-
t.includes(
|
|
1482
|
+
t.includes(u) ? /* @__PURE__ */ l(
|
|
1496
1483
|
"div",
|
|
1497
1484
|
{
|
|
1498
|
-
className:
|
|
1499
|
-
style:
|
|
1500
|
-
children: /* @__PURE__ */
|
|
1485
|
+
className: s(u),
|
|
1486
|
+
style: c(),
|
|
1487
|
+
children: /* @__PURE__ */ l(
|
|
1501
1488
|
D,
|
|
1502
1489
|
{
|
|
1503
|
-
blocks:
|
|
1504
|
-
path: `items.${
|
|
1490
|
+
blocks: f.detail,
|
|
1491
|
+
path: `items.${u}.detail`,
|
|
1505
1492
|
parent: e.builderBlock.id,
|
|
1506
1493
|
context: e.builderContext,
|
|
1507
1494
|
registeredComponents: e.builderComponents,
|
|
@@ -1727,7 +1714,7 @@ const qt = {
|
|
|
1727
1714
|
});
|
|
1728
1715
|
}
|
|
1729
1716
|
const n = e.get("columns");
|
|
1730
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1717
|
+
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();
|
|
1731
1718
|
}
|
|
1732
1719
|
}, {
|
|
1733
1720
|
name: "space",
|
|
@@ -1755,13 +1742,13 @@ const qt = {
|
|
|
1755
1742
|
builderComponents: !0,
|
|
1756
1743
|
builderLinkComponent: !0
|
|
1757
1744
|
}
|
|
1758
|
-
},
|
|
1745
|
+
}, _t = {
|
|
1759
1746
|
name: "Fragment",
|
|
1760
1747
|
static: !0,
|
|
1761
1748
|
hidden: !0,
|
|
1762
1749
|
canHaveChildren: !0,
|
|
1763
1750
|
noWrap: !0
|
|
1764
|
-
},
|
|
1751
|
+
}, zt = {
|
|
1765
1752
|
name: "Image",
|
|
1766
1753
|
static: !0,
|
|
1767
1754
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1781,29 +1768,29 @@ const qt = {
|
|
|
1781
1768
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1782
1769
|
onChange: (e) => {
|
|
1783
1770
|
e.delete("srcset"), e.delete("noWebp");
|
|
1784
|
-
function n(
|
|
1785
|
-
return new Promise((
|
|
1786
|
-
const
|
|
1787
|
-
let
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
},
|
|
1791
|
-
console.warn("Image load failed",
|
|
1792
|
-
}),
|
|
1793
|
-
|
|
1794
|
-
},
|
|
1771
|
+
function n(r, s = 6e4) {
|
|
1772
|
+
return new Promise((d, c) => {
|
|
1773
|
+
const m = document.createElement("img");
|
|
1774
|
+
let h = !1;
|
|
1775
|
+
m.onload = () => {
|
|
1776
|
+
h = !0, d(m);
|
|
1777
|
+
}, m.addEventListener("error", (f) => {
|
|
1778
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1779
|
+
}), m.src = r, setTimeout(() => {
|
|
1780
|
+
h || c(new Error("Image load timed out"));
|
|
1781
|
+
}, s);
|
|
1795
1782
|
});
|
|
1796
1783
|
}
|
|
1797
|
-
function i(
|
|
1798
|
-
return Math.round(
|
|
1784
|
+
function i(r) {
|
|
1785
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1799
1786
|
}
|
|
1800
|
-
const o = e.get("image"),
|
|
1801
|
-
if (fetch(o).then((
|
|
1802
|
-
|
|
1803
|
-
}), o && (!
|
|
1804
|
-
return n(o).then((
|
|
1805
|
-
const
|
|
1806
|
-
e.get("image") === o && (!
|
|
1787
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1788
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1789
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1790
|
+
}), o && (!a || a === 0.7041))
|
|
1791
|
+
return n(o).then((r) => {
|
|
1792
|
+
const s = e.get("aspectRatio");
|
|
1793
|
+
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));
|
|
1807
1794
|
});
|
|
1808
1795
|
}
|
|
1809
1796
|
}, {
|
|
@@ -1927,7 +1914,7 @@ const qt = {
|
|
|
1927
1914
|
};
|
|
1928
1915
|
function Gt(e) {
|
|
1929
1916
|
var t, n, i;
|
|
1930
|
-
return /* @__PURE__ */
|
|
1917
|
+
return /* @__PURE__ */ l(
|
|
1931
1918
|
"div",
|
|
1932
1919
|
{
|
|
1933
1920
|
style: {
|
|
@@ -1936,7 +1923,7 @@ function Gt(e) {
|
|
|
1936
1923
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1937
1924
|
"builder-slot": e.name
|
|
1938
1925
|
},
|
|
1939
|
-
children: /* @__PURE__ */
|
|
1926
|
+
children: /* @__PURE__ */ l(
|
|
1940
1927
|
D,
|
|
1941
1928
|
{
|
|
1942
1929
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -1987,7 +1974,7 @@ const Qt = {
|
|
|
1987
1974
|
builderComponents: !0,
|
|
1988
1975
|
builderLinkComponent: !0
|
|
1989
1976
|
}
|
|
1990
|
-
},
|
|
1977
|
+
}, re = {
|
|
1991
1978
|
"@type": "@builder.io/sdk:Element",
|
|
1992
1979
|
responsiveStyles: {
|
|
1993
1980
|
large: {
|
|
@@ -2009,7 +1996,7 @@ const Qt = {
|
|
|
2009
1996
|
text: "New tab"
|
|
2010
1997
|
}
|
|
2011
1998
|
}
|
|
2012
|
-
},
|
|
1999
|
+
}, le = {
|
|
2013
2000
|
"@type": "@builder.io/sdk:Element",
|
|
2014
2001
|
responsiveStyles: {
|
|
2015
2002
|
large: {
|
|
@@ -2035,16 +2022,16 @@ const Qt = {
|
|
|
2035
2022
|
name: "label",
|
|
2036
2023
|
type: "uiBlocks",
|
|
2037
2024
|
hideFromUI: !0,
|
|
2038
|
-
defaultValue: [
|
|
2025
|
+
defaultValue: [re]
|
|
2039
2026
|
}, {
|
|
2040
2027
|
name: "content",
|
|
2041
2028
|
type: "uiBlocks",
|
|
2042
2029
|
hideFromUI: !0,
|
|
2043
|
-
defaultValue: [
|
|
2030
|
+
defaultValue: [le]
|
|
2044
2031
|
}],
|
|
2045
2032
|
defaultValue: [{
|
|
2046
2033
|
label: [{
|
|
2047
|
-
...
|
|
2034
|
+
...re,
|
|
2048
2035
|
component: {
|
|
2049
2036
|
name: "Text",
|
|
2050
2037
|
options: {
|
|
@@ -2053,7 +2040,7 @@ const Qt = {
|
|
|
2053
2040
|
}
|
|
2054
2041
|
}],
|
|
2055
2042
|
content: [{
|
|
2056
|
-
...
|
|
2043
|
+
...le,
|
|
2057
2044
|
component: {
|
|
2058
2045
|
name: "Text",
|
|
2059
2046
|
options: {
|
|
@@ -2063,7 +2050,7 @@ const Qt = {
|
|
|
2063
2050
|
}]
|
|
2064
2051
|
}, {
|
|
2065
2052
|
label: [{
|
|
2066
|
-
...
|
|
2053
|
+
...re,
|
|
2067
2054
|
component: {
|
|
2068
2055
|
name: "Text",
|
|
2069
2056
|
options: {
|
|
@@ -2072,7 +2059,7 @@ const Qt = {
|
|
|
2072
2059
|
}
|
|
2073
2060
|
}],
|
|
2074
2061
|
content: [{
|
|
2075
|
-
...
|
|
2062
|
+
...le,
|
|
2076
2063
|
component: {
|
|
2077
2064
|
name: "Text",
|
|
2078
2065
|
options: {
|
|
@@ -2130,18 +2117,18 @@ const Qt = {
|
|
|
2130
2117
|
}
|
|
2131
2118
|
};
|
|
2132
2119
|
function Zt(e) {
|
|
2133
|
-
var
|
|
2134
|
-
const [t, n] =
|
|
2120
|
+
var a;
|
|
2121
|
+
const [t, n] = T(
|
|
2135
2122
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2136
2123
|
);
|
|
2137
|
-
function i(
|
|
2138
|
-
return e.tabs && e.tabs[
|
|
2124
|
+
function i(r) {
|
|
2125
|
+
return e.tabs && e.tabs[r].content;
|
|
2139
2126
|
}
|
|
2140
|
-
function o(
|
|
2141
|
-
|
|
2127
|
+
function o(r) {
|
|
2128
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2142
2129
|
}
|
|
2143
2130
|
return /* @__PURE__ */ P("div", { children: [
|
|
2144
|
-
/* @__PURE__ */
|
|
2131
|
+
/* @__PURE__ */ l(
|
|
2145
2132
|
"div",
|
|
2146
2133
|
{
|
|
2147
2134
|
className: "builder-tabs-wrap",
|
|
@@ -2151,31 +2138,31 @@ function Zt(e) {
|
|
|
2151
2138
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2152
2139
|
overflow: "auto"
|
|
2153
2140
|
},
|
|
2154
|
-
children: (
|
|
2141
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
|
|
2155
2142
|
"span",
|
|
2156
2143
|
{
|
|
2157
|
-
className: `builder-tab-wrap ${t ===
|
|
2144
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2158
2145
|
style: {
|
|
2159
|
-
...t ===
|
|
2146
|
+
...t === s ? e.activeTabStyle : {}
|
|
2160
2147
|
},
|
|
2161
|
-
onClick: (
|
|
2162
|
-
children: /* @__PURE__ */
|
|
2148
|
+
onClick: (d) => o(s),
|
|
2149
|
+
children: /* @__PURE__ */ l(
|
|
2163
2150
|
D,
|
|
2164
2151
|
{
|
|
2165
2152
|
parent: e.builderBlock.id,
|
|
2166
|
-
path: `component.options.tabs.${
|
|
2167
|
-
blocks:
|
|
2153
|
+
path: `component.options.tabs.${s}.label`,
|
|
2154
|
+
blocks: r.label,
|
|
2168
2155
|
context: e.builderContext,
|
|
2169
2156
|
registeredComponents: e.builderComponents,
|
|
2170
2157
|
linkComponent: e.builderLinkComponent
|
|
2171
2158
|
}
|
|
2172
2159
|
)
|
|
2173
2160
|
},
|
|
2174
|
-
|
|
2161
|
+
s
|
|
2175
2162
|
))
|
|
2176
2163
|
}
|
|
2177
2164
|
),
|
|
2178
|
-
i(t) ? /* @__PURE__ */
|
|
2165
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2179
2166
|
D,
|
|
2180
2167
|
{
|
|
2181
2168
|
parent: e.builderBlock.id,
|
|
@@ -2212,7 +2199,7 @@ const en = {
|
|
|
2212
2199
|
};
|
|
2213
2200
|
function tn(e) {
|
|
2214
2201
|
var t;
|
|
2215
|
-
return /* @__PURE__ */
|
|
2202
|
+
return /* @__PURE__ */ l(
|
|
2216
2203
|
"div",
|
|
2217
2204
|
{
|
|
2218
2205
|
className: "builder-text",
|
|
@@ -2247,35 +2234,35 @@ const nn = {
|
|
|
2247
2234
|
}]
|
|
2248
2235
|
};
|
|
2249
2236
|
function on(e) {
|
|
2250
|
-
const t =
|
|
2237
|
+
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2251
2238
|
return B(() => {
|
|
2252
|
-
var
|
|
2253
|
-
if (!((
|
|
2239
|
+
var s;
|
|
2240
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2254
2241
|
return;
|
|
2255
|
-
const
|
|
2256
|
-
for (let
|
|
2257
|
-
const
|
|
2258
|
-
if (
|
|
2259
|
-
if (n.includes(
|
|
2242
|
+
const r = t.current.getElementsByTagName("script");
|
|
2243
|
+
for (let d = 0; d < r.length; d++) {
|
|
2244
|
+
const c = r[d];
|
|
2245
|
+
if (c.src) {
|
|
2246
|
+
if (n.includes(c.src))
|
|
2260
2247
|
continue;
|
|
2261
|
-
n.push(
|
|
2262
|
-
const
|
|
2263
|
-
|
|
2264
|
-
} else if (!
|
|
2248
|
+
n.push(c.src);
|
|
2249
|
+
const m = document.createElement("script");
|
|
2250
|
+
m.async = !0, m.src = c.src, document.head.appendChild(m);
|
|
2251
|
+
} else if (!c.type || [
|
|
2265
2252
|
"text/javascript",
|
|
2266
2253
|
"application/javascript",
|
|
2267
2254
|
"application/ecmascript"
|
|
2268
|
-
].includes(
|
|
2269
|
-
if (o.includes(
|
|
2255
|
+
].includes(c.type)) {
|
|
2256
|
+
if (o.includes(c.innerText))
|
|
2270
2257
|
continue;
|
|
2271
2258
|
try {
|
|
2272
|
-
o.push(
|
|
2273
|
-
} catch (
|
|
2274
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2259
|
+
o.push(c.innerText), new Function(c.innerText)();
|
|
2260
|
+
} catch (m) {
|
|
2261
|
+
console.warn("`CustomCode`: Error running script:", m);
|
|
2275
2262
|
}
|
|
2276
2263
|
}
|
|
2277
2264
|
}
|
|
2278
|
-
}, []), /* @__PURE__ */
|
|
2265
|
+
}, []), /* @__PURE__ */ l(
|
|
2279
2266
|
"div",
|
|
2280
2267
|
{
|
|
2281
2268
|
ref: t,
|
|
@@ -2301,28 +2288,28 @@ const an = {
|
|
|
2301
2288
|
}]
|
|
2302
2289
|
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2303
2290
|
function sn(e) {
|
|
2304
|
-
const t =
|
|
2305
|
-
function
|
|
2291
|
+
const t = Z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2292
|
+
function d() {
|
|
2306
2293
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2307
2294
|
return;
|
|
2308
|
-
const
|
|
2309
|
-
for (let
|
|
2310
|
-
const
|
|
2311
|
-
if (
|
|
2312
|
-
n.push(
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
} else if (ln(
|
|
2295
|
+
const c = t.current.getElementsByTagName("script");
|
|
2296
|
+
for (let m = 0; m < c.length; m++) {
|
|
2297
|
+
const h = c[m];
|
|
2298
|
+
if (h.src && !n.includes(h.src)) {
|
|
2299
|
+
n.push(h.src);
|
|
2300
|
+
const f = document.createElement("script");
|
|
2301
|
+
f.async = !0, f.src = h.src, document.head.appendChild(f);
|
|
2302
|
+
} else if (ln(h) && !o.includes(h.innerText))
|
|
2316
2303
|
try {
|
|
2317
|
-
o.push(
|
|
2318
|
-
} catch (
|
|
2319
|
-
console.warn("`Embed`: Error running script:",
|
|
2304
|
+
o.push(h.innerText), new Function(h.innerText)();
|
|
2305
|
+
} catch (f) {
|
|
2306
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2320
2307
|
}
|
|
2321
2308
|
}
|
|
2322
2309
|
}
|
|
2323
2310
|
return B(() => {
|
|
2324
|
-
t.current && !
|
|
2325
|
-
}, [t.current,
|
|
2311
|
+
t.current && !r && (s(!0), d());
|
|
2312
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2326
2313
|
"div",
|
|
2327
2314
|
{
|
|
2328
2315
|
className: "builder-embed",
|
|
@@ -2572,72 +2559,72 @@ const cn = {
|
|
|
2572
2559
|
const e = process.env.NODE_ENV || "production";
|
|
2573
2560
|
return dn.includes(e) ? e : "production";
|
|
2574
2561
|
}, mn = (e, t, n) => {
|
|
2575
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2562
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2576
2563
|
return i === void 0 || i === e ? n : i;
|
|
2577
2564
|
};
|
|
2578
2565
|
function fn(e) {
|
|
2579
|
-
var
|
|
2580
|
-
const t =
|
|
2581
|
-
function
|
|
2582
|
-
var
|
|
2583
|
-
const
|
|
2566
|
+
var h, f;
|
|
2567
|
+
const t = Z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2568
|
+
function d(u) {
|
|
2569
|
+
var x, y;
|
|
2570
|
+
const g = {
|
|
2584
2571
|
...e.builderContext.rootState,
|
|
2585
|
-
...
|
|
2572
|
+
...u
|
|
2586
2573
|
};
|
|
2587
|
-
e.builderContext.rootSetState ? (
|
|
2574
|
+
e.builderContext.rootSetState ? (y = (x = e.builderContext).rootSetState) == null || y.call(x, g) : e.builderContext.rootState = g;
|
|
2588
2575
|
}
|
|
2589
|
-
function
|
|
2576
|
+
function c() {
|
|
2590
2577
|
return $() && e.previewState || n;
|
|
2591
2578
|
}
|
|
2592
|
-
function
|
|
2593
|
-
var
|
|
2594
|
-
const
|
|
2579
|
+
function m(u) {
|
|
2580
|
+
var x;
|
|
2581
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2595
2582
|
if (e.sendSubmissionsTo === "zapier")
|
|
2596
|
-
|
|
2597
|
-
else if (
|
|
2583
|
+
u.preventDefault();
|
|
2584
|
+
else if (g) {
|
|
2598
2585
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2599
|
-
|
|
2586
|
+
u.preventDefault();
|
|
2600
2587
|
return;
|
|
2601
2588
|
}
|
|
2602
|
-
|
|
2603
|
-
const
|
|
2589
|
+
u.preventDefault();
|
|
2590
|
+
const y = u.currentTarget || u.target, E = e.customHeaders || {};
|
|
2604
2591
|
let V;
|
|
2605
|
-
const A = new FormData(
|
|
2606
|
-
let
|
|
2607
|
-
const
|
|
2608
|
-
if (
|
|
2609
|
-
if (
|
|
2610
|
-
if (
|
|
2611
|
-
return
|
|
2612
|
-
key:
|
|
2613
|
-
value:
|
|
2592
|
+
const A = new FormData(y), O = Array.from(y.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).map((p) => {
|
|
2593
|
+
let b;
|
|
2594
|
+
const v = p.name;
|
|
2595
|
+
if (p instanceof HTMLInputElement)
|
|
2596
|
+
if (p.type === "radio") {
|
|
2597
|
+
if (p.checked)
|
|
2598
|
+
return b = p.name, {
|
|
2599
|
+
key: v,
|
|
2600
|
+
value: b
|
|
2614
2601
|
};
|
|
2615
|
-
} else if (
|
|
2616
|
-
|
|
2617
|
-
else if (
|
|
2618
|
-
const
|
|
2619
|
-
isNaN(
|
|
2602
|
+
} else if (p.type === "checkbox")
|
|
2603
|
+
b = p.checked;
|
|
2604
|
+
else if (p.type === "number" || p.type === "range") {
|
|
2605
|
+
const S = p.valueAsNumber;
|
|
2606
|
+
isNaN(S) || (b = S);
|
|
2620
2607
|
} else
|
|
2621
|
-
|
|
2608
|
+
p.type === "file" ? b = p.files : b = p.value;
|
|
2622
2609
|
else
|
|
2623
|
-
|
|
2610
|
+
b = p.value;
|
|
2624
2611
|
return {
|
|
2625
|
-
key:
|
|
2626
|
-
value:
|
|
2612
|
+
key: v,
|
|
2613
|
+
value: b
|
|
2627
2614
|
};
|
|
2628
2615
|
});
|
|
2629
|
-
let
|
|
2630
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2631
|
-
(
|
|
2632
|
-
}),
|
|
2616
|
+
let k = e.contentType;
|
|
2617
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(O).forEach(({ value: p }) => {
|
|
2618
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (k = "multipart/form-data");
|
|
2619
|
+
}), k !== "application/json")
|
|
2633
2620
|
V = A;
|
|
2634
2621
|
else {
|
|
2635
|
-
const
|
|
2636
|
-
Array.from(O).forEach(({ value:
|
|
2637
|
-
Ee(
|
|
2638
|
-
}), V = JSON.stringify(
|
|
2622
|
+
const p = {};
|
|
2623
|
+
Array.from(O).forEach(({ value: b, key: v }) => {
|
|
2624
|
+
Ee(p, v, b);
|
|
2625
|
+
}), V = JSON.stringify(p);
|
|
2639
2626
|
}
|
|
2640
|
-
|
|
2627
|
+
k && k !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (E["content-type"] = k));
|
|
2641
2628
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2642
2629
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2643
2630
|
return;
|
|
@@ -2649,37 +2636,37 @@ function fn(e) {
|
|
|
2649
2636
|
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2650
2637
|
{ body: V, headers: E, method: e.method || "post" }
|
|
2651
2638
|
).then(
|
|
2652
|
-
async (
|
|
2653
|
-
let
|
|
2654
|
-
const
|
|
2655
|
-
if (
|
|
2656
|
-
let
|
|
2657
|
-
|
|
2639
|
+
async (p) => {
|
|
2640
|
+
let b;
|
|
2641
|
+
const v = p.headers.get("content-type");
|
|
2642
|
+
if (v && v.indexOf("application/json") !== -1 ? b = await p.json() : b = await p.text(), !p.ok && e.errorMessagePath) {
|
|
2643
|
+
let S = mn(b, e.errorMessagePath);
|
|
2644
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), s(S), d({ formErrorMessage: S }));
|
|
2658
2645
|
}
|
|
2659
|
-
if (
|
|
2660
|
-
const
|
|
2661
|
-
detail: { res:
|
|
2646
|
+
if (a(b), i(p.ok ? "success" : "error"), p.ok) {
|
|
2647
|
+
const S = new CustomEvent("submit:success", {
|
|
2648
|
+
detail: { res: p, body: b }
|
|
2662
2649
|
});
|
|
2663
2650
|
if (t.current) {
|
|
2664
|
-
if (t.current.dispatchEvent(
|
|
2651
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2665
2652
|
return;
|
|
2666
2653
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2667
2654
|
}
|
|
2668
2655
|
if (e.successUrl)
|
|
2669
2656
|
if (t.current) {
|
|
2670
|
-
const
|
|
2657
|
+
const C = new CustomEvent("route", {
|
|
2671
2658
|
detail: { url: e.successUrl }
|
|
2672
2659
|
});
|
|
2673
|
-
t.current.dispatchEvent(
|
|
2660
|
+
t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
|
|
2674
2661
|
} else
|
|
2675
2662
|
location.href = e.successUrl;
|
|
2676
2663
|
}
|
|
2677
2664
|
},
|
|
2678
|
-
(
|
|
2679
|
-
const
|
|
2680
|
-
detail: { error:
|
|
2665
|
+
(p) => {
|
|
2666
|
+
const b = new CustomEvent("submit:error", {
|
|
2667
|
+
detail: { error: p }
|
|
2681
2668
|
});
|
|
2682
|
-
t.current && (t.current.dispatchEvent(
|
|
2669
|
+
t.current && (t.current.dispatchEvent(b), b.defaultPrevented) || (a(p), i("error"));
|
|
2683
2670
|
}
|
|
2684
2671
|
);
|
|
2685
2672
|
}
|
|
@@ -2694,20 +2681,20 @@ function fn(e) {
|
|
|
2694
2681
|
action: !e.sendWithJs && e.action,
|
|
2695
2682
|
method: e.method,
|
|
2696
2683
|
name: e.name,
|
|
2697
|
-
onSubmit: (
|
|
2684
|
+
onSubmit: (u) => m(u),
|
|
2698
2685
|
...e.attributes,
|
|
2699
2686
|
children: [
|
|
2700
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2701
|
-
|
|
2687
|
+
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(
|
|
2688
|
+
_,
|
|
2702
2689
|
{
|
|
2703
|
-
block:
|
|
2690
|
+
block: u,
|
|
2704
2691
|
context: e.builderContext,
|
|
2705
2692
|
registeredComponents: e.builderComponents,
|
|
2706
2693
|
linkComponent: e.builderLinkComponent
|
|
2707
2694
|
},
|
|
2708
|
-
`form-block-${
|
|
2695
|
+
`form-block-${g}`
|
|
2709
2696
|
)) }) : null,
|
|
2710
|
-
|
|
2697
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2711
2698
|
D,
|
|
2712
2699
|
{
|
|
2713
2700
|
path: "errorMessage",
|
|
@@ -2715,7 +2702,7 @@ function fn(e) {
|
|
|
2715
2702
|
context: e.builderContext
|
|
2716
2703
|
}
|
|
2717
2704
|
) : null,
|
|
2718
|
-
|
|
2705
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2719
2706
|
D,
|
|
2720
2707
|
{
|
|
2721
2708
|
path: "sendingMessage",
|
|
@@ -2723,8 +2710,8 @@ function fn(e) {
|
|
|
2723
2710
|
context: e.builderContext
|
|
2724
2711
|
}
|
|
2725
2712
|
) : null,
|
|
2726
|
-
|
|
2727
|
-
|
|
2713
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2714
|
+
c() === "success" ? /* @__PURE__ */ l(
|
|
2728
2715
|
D,
|
|
2729
2716
|
{
|
|
2730
2717
|
path: "successMessage",
|
|
@@ -2736,7 +2723,7 @@ function fn(e) {
|
|
|
2736
2723
|
}
|
|
2737
2724
|
),
|
|
2738
2725
|
" ",
|
|
2739
|
-
/* @__PURE__ */
|
|
2726
|
+
/* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2740
2727
|
" "
|
|
2741
2728
|
] });
|
|
2742
2729
|
}
|
|
@@ -2862,7 +2849,7 @@ function pn(e) {
|
|
|
2862
2849
|
name: e.name,
|
|
2863
2850
|
required: e.required
|
|
2864
2851
|
},
|
|
2865
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2852
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2866
2853
|
);
|
|
2867
2854
|
}
|
|
2868
2855
|
const yn = {
|
|
@@ -2892,7 +2879,7 @@ const yn = {
|
|
|
2892
2879
|
// canHaveChildren: true,
|
|
2893
2880
|
};
|
|
2894
2881
|
function xn(e) {
|
|
2895
|
-
return /* @__PURE__ */
|
|
2882
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2896
2883
|
}
|
|
2897
2884
|
const vn = {
|
|
2898
2885
|
name: "Form:TextArea",
|
|
@@ -2932,7 +2919,7 @@ const vn = {
|
|
|
2932
2919
|
noWrap: !0
|
|
2933
2920
|
};
|
|
2934
2921
|
function Sn(e) {
|
|
2935
|
-
return /* @__PURE__ */
|
|
2922
|
+
return /* @__PURE__ */ l(
|
|
2936
2923
|
"textarea",
|
|
2937
2924
|
{
|
|
2938
2925
|
...e.attributes,
|
|
@@ -2960,7 +2947,7 @@ const kn = {
|
|
|
2960
2947
|
static: !0
|
|
2961
2948
|
};
|
|
2962
2949
|
function Cn(e) {
|
|
2963
|
-
return /* @__PURE__ */
|
|
2950
|
+
return /* @__PURE__ */ l(
|
|
2964
2951
|
"img",
|
|
2965
2952
|
{
|
|
2966
2953
|
style: {
|
|
@@ -3060,7 +3047,7 @@ const Tn = {
|
|
|
3060
3047
|
}
|
|
3061
3048
|
};
|
|
3062
3049
|
function In(e) {
|
|
3063
|
-
var i, o,
|
|
3050
|
+
var i, o, a, r, s, d, c;
|
|
3064
3051
|
function t() {
|
|
3065
3052
|
return {
|
|
3066
3053
|
...e.autoPlay === !0 ? {
|
|
@@ -3092,7 +3079,7 @@ function In(e) {
|
|
|
3092
3079
|
position: "relative"
|
|
3093
3080
|
},
|
|
3094
3081
|
children: [
|
|
3095
|
-
/* @__PURE__ */
|
|
3082
|
+
/* @__PURE__ */ l(
|
|
3096
3083
|
"video",
|
|
3097
3084
|
{
|
|
3098
3085
|
className: "builder-video",
|
|
@@ -3114,10 +3101,10 @@ function In(e) {
|
|
|
3114
3101
|
},
|
|
3115
3102
|
src: e.video || "no-src",
|
|
3116
3103
|
poster: e.posterImage,
|
|
3117
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3104
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3118
3105
|
}
|
|
3119
3106
|
),
|
|
3120
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3107
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
3121
3108
|
"div",
|
|
3122
3109
|
{
|
|
3123
3110
|
style: {
|
|
@@ -3128,7 +3115,7 @@ function In(e) {
|
|
|
3128
3115
|
}
|
|
3129
3116
|
}
|
|
3130
3117
|
) : null,
|
|
3131
|
-
(
|
|
3118
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3132
3119
|
"div",
|
|
3133
3120
|
{
|
|
3134
3121
|
style: {
|
|
@@ -3139,7 +3126,7 @@ function In(e) {
|
|
|
3139
3126
|
children: e.children
|
|
3140
3127
|
}
|
|
3141
3128
|
) : null,
|
|
3142
|
-
(
|
|
3129
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
3143
3130
|
"div",
|
|
3144
3131
|
{
|
|
3145
3132
|
style: {
|
|
@@ -3187,18 +3174,18 @@ const wn = () => [{
|
|
|
3187
3174
|
}, {
|
|
3188
3175
|
component: In,
|
|
3189
3176
|
...Tn
|
|
3190
|
-
}],
|
|
3191
|
-
component:
|
|
3177
|
+
}], ve = () => [{
|
|
3178
|
+
component: it,
|
|
3192
3179
|
...qt
|
|
3193
3180
|
}, {
|
|
3194
3181
|
component: $t,
|
|
3195
3182
|
...Kt
|
|
3196
3183
|
}, {
|
|
3197
3184
|
component: Dt,
|
|
3198
|
-
...
|
|
3185
|
+
..._t
|
|
3199
3186
|
}, {
|
|
3200
3187
|
component: jt,
|
|
3201
|
-
...
|
|
3188
|
+
...zt
|
|
3202
3189
|
}, {
|
|
3203
3190
|
component: Mt,
|
|
3204
3191
|
...Jt
|
|
@@ -3326,8 +3313,8 @@ const wn = () => [{
|
|
|
3326
3313
|
}) => `window.${je}(
|
|
3327
3314
|
"${t}", "${e}", ${Me}
|
|
3328
3315
|
)`;
|
|
3329
|
-
function
|
|
3330
|
-
return /* @__PURE__ */
|
|
3316
|
+
function se(e) {
|
|
3317
|
+
return /* @__PURE__ */ l(
|
|
3331
3318
|
"script",
|
|
3332
3319
|
{
|
|
3333
3320
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3336,7 +3323,7 @@ function ce(e) {
|
|
|
3336
3323
|
}
|
|
3337
3324
|
);
|
|
3338
3325
|
}
|
|
3339
|
-
function
|
|
3326
|
+
function Se(e) {
|
|
3340
3327
|
return Math.round(e * 1e3) / 1e3;
|
|
3341
3328
|
}
|
|
3342
3329
|
const Wn = (e, t, n = !0) => {
|
|
@@ -3353,25 +3340,25 @@ const Wn = (e, t, n = !0) => {
|
|
|
3353
3340
|
}, Fn = (e) => Wn(e, (t) => {
|
|
3354
3341
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3355
3342
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3356
|
-
}),
|
|
3343
|
+
}), ke = ({
|
|
3357
3344
|
event: e,
|
|
3358
3345
|
target: t
|
|
3359
3346
|
}) => {
|
|
3360
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3347
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
|
|
3361
3348
|
return {
|
|
3362
|
-
x:
|
|
3363
|
-
y:
|
|
3349
|
+
x: a,
|
|
3350
|
+
y: r
|
|
3364
3351
|
};
|
|
3365
3352
|
}, $n = (e) => {
|
|
3366
3353
|
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3367
3354
|
return {
|
|
3368
3355
|
targetBuilderElement: i || void 0,
|
|
3369
3356
|
metadata: {
|
|
3370
|
-
targetOffset: t ?
|
|
3357
|
+
targetOffset: t ? ke({
|
|
3371
3358
|
event: e,
|
|
3372
3359
|
target: t
|
|
3373
3360
|
}) : void 0,
|
|
3374
|
-
builderTargetOffset: n ?
|
|
3361
|
+
builderTargetOffset: n ? ke({
|
|
3375
3362
|
event: e,
|
|
3376
3363
|
target: n
|
|
3377
3364
|
}) : void 0,
|
|
@@ -3379,8 +3366,8 @@ const Wn = (e, t, n = !0) => {
|
|
|
3379
3366
|
}
|
|
3380
3367
|
};
|
|
3381
3368
|
}, Dn = (e) => {
|
|
3382
|
-
var
|
|
3383
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3369
|
+
var a, r;
|
|
3370
|
+
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;
|
|
3384
3371
|
let o = "";
|
|
3385
3372
|
if (i && t && n && (o += `
|
|
3386
3373
|
@font-face {
|
|
@@ -3390,16 +3377,16 @@ font-display: fallback;
|
|
|
3390
3377
|
font-weight: 400;
|
|
3391
3378
|
}
|
|
3392
3379
|
`.trim()), e.files)
|
|
3393
|
-
for (const
|
|
3394
|
-
if (!(String(Number(
|
|
3380
|
+
for (const s in e.files) {
|
|
3381
|
+
if (!(String(Number(s)) === s))
|
|
3395
3382
|
continue;
|
|
3396
|
-
const
|
|
3397
|
-
|
|
3383
|
+
const c = e.files[s];
|
|
3384
|
+
c && c !== i && (o += `
|
|
3398
3385
|
@font-face {
|
|
3399
3386
|
font-family: "${t}";
|
|
3400
|
-
src: url('${
|
|
3387
|
+
src: url('${c}') format('woff2');
|
|
3401
3388
|
font-display: fallback;
|
|
3402
|
-
font-weight: ${
|
|
3389
|
+
font-weight: ${s};
|
|
3403
3390
|
}
|
|
3404
3391
|
`.trim());
|
|
3405
3392
|
}
|
|
@@ -3431,37 +3418,37 @@ font-weight: ${r};
|
|
|
3431
3418
|
}
|
|
3432
3419
|
`, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
|
|
3433
3420
|
function Hn(e) {
|
|
3434
|
-
var V, A, O,
|
|
3435
|
-
const t =
|
|
3436
|
-
function n(
|
|
3437
|
-
var
|
|
3438
|
-
const
|
|
3421
|
+
var V, A, O, k, w, N, p;
|
|
3422
|
+
const t = Z(null);
|
|
3423
|
+
function n(b) {
|
|
3424
|
+
var S, C;
|
|
3425
|
+
const v = {
|
|
3439
3426
|
...e.builderContextSignal.rootState,
|
|
3440
|
-
...
|
|
3427
|
+
...b
|
|
3441
3428
|
};
|
|
3442
|
-
e.builderContextSignal.rootSetState ? (
|
|
3443
|
-
...
|
|
3444
|
-
rootState:
|
|
3429
|
+
e.builderContextSignal.rootSetState ? (C = (S = e.builderContextSignal).rootSetState) == null || C.call(S, v) : e.setBuilderContextSignal((I) => ({
|
|
3430
|
+
...I,
|
|
3431
|
+
rootState: v
|
|
3445
3432
|
}));
|
|
3446
3433
|
}
|
|
3447
|
-
function i(
|
|
3448
|
-
var
|
|
3449
|
-
const
|
|
3434
|
+
function i(b) {
|
|
3435
|
+
var S, C, I, W, j;
|
|
3436
|
+
const v = {
|
|
3450
3437
|
...e.builderContextSignal.content,
|
|
3451
|
-
...
|
|
3438
|
+
...b,
|
|
3452
3439
|
data: {
|
|
3453
|
-
...(
|
|
3454
|
-
...
|
|
3440
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3441
|
+
...b == null ? void 0 : b.data
|
|
3455
3442
|
},
|
|
3456
3443
|
meta: {
|
|
3457
|
-
...(
|
|
3458
|
-
...
|
|
3459
|
-
breakpoints: ((
|
|
3444
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3445
|
+
...b == null ? void 0 : b.meta,
|
|
3446
|
+
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)
|
|
3460
3447
|
}
|
|
3461
3448
|
};
|
|
3462
3449
|
e.setBuilderContextSignal((F) => ({
|
|
3463
3450
|
...F,
|
|
3464
|
-
content:
|
|
3451
|
+
content: v
|
|
3465
3452
|
}));
|
|
3466
3453
|
}
|
|
3467
3454
|
function o() {
|
|
@@ -3470,37 +3457,37 @@ function Hn(e) {
|
|
|
3470
3457
|
"aria-hidden": !0
|
|
3471
3458
|
};
|
|
3472
3459
|
}
|
|
3473
|
-
const [
|
|
3460
|
+
const [a, r] = T(
|
|
3474
3461
|
() => e.contentWrapper || "div"
|
|
3475
3462
|
);
|
|
3476
|
-
function
|
|
3477
|
-
return
|
|
3463
|
+
function s(b) {
|
|
3464
|
+
return Je({
|
|
3478
3465
|
model: e.model,
|
|
3479
3466
|
trustedHosts: e.trustedHosts,
|
|
3480
3467
|
callbacks: {
|
|
3481
|
-
configureSdk: (
|
|
3482
|
-
var
|
|
3483
|
-
const { breakpoints:
|
|
3484
|
-
!
|
|
3468
|
+
configureSdk: (v) => {
|
|
3469
|
+
var I;
|
|
3470
|
+
const { breakpoints: S, contentId: C } = v;
|
|
3471
|
+
!C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
|
|
3485
3472
|
meta: {
|
|
3486
|
-
breakpoints:
|
|
3473
|
+
breakpoints: S
|
|
3487
3474
|
}
|
|
3488
3475
|
});
|
|
3489
3476
|
},
|
|
3490
|
-
animation: (
|
|
3491
|
-
Ne(
|
|
3477
|
+
animation: (v) => {
|
|
3478
|
+
Ne(v);
|
|
3492
3479
|
},
|
|
3493
|
-
contentUpdate: (
|
|
3494
|
-
i(
|
|
3480
|
+
contentUpdate: (v) => {
|
|
3481
|
+
i(v);
|
|
3495
3482
|
}
|
|
3496
3483
|
}
|
|
3497
|
-
})(
|
|
3484
|
+
})(b);
|
|
3498
3485
|
}
|
|
3499
|
-
function
|
|
3500
|
-
var
|
|
3501
|
-
const
|
|
3502
|
-
|
|
3503
|
-
code:
|
|
3486
|
+
function d() {
|
|
3487
|
+
var v, S;
|
|
3488
|
+
const b = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
|
|
3489
|
+
b && q({
|
|
3490
|
+
code: b,
|
|
3504
3491
|
context: e.context || {},
|
|
3505
3492
|
localState: void 0,
|
|
3506
3493
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3511,30 +3498,30 @@ function Hn(e) {
|
|
|
3511
3498
|
enableCache: !1
|
|
3512
3499
|
});
|
|
3513
3500
|
}
|
|
3514
|
-
const [
|
|
3515
|
-
function
|
|
3516
|
-
var
|
|
3501
|
+
const [c, m] = T(() => ({})), [h, f] = T(() => ({})), [u, g] = T(() => !1);
|
|
3502
|
+
function x(b) {
|
|
3503
|
+
var v, S;
|
|
3517
3504
|
if (e.builderContextSignal.content) {
|
|
3518
|
-
const
|
|
3519
|
-
|
|
3505
|
+
const C = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3506
|
+
fe({
|
|
3520
3507
|
type: "click",
|
|
3521
3508
|
canTrack: Q(e.canTrack),
|
|
3522
|
-
contentId:
|
|
3509
|
+
contentId: I,
|
|
3523
3510
|
apiKey: e.apiKey,
|
|
3524
|
-
variationId:
|
|
3525
|
-
...$n(
|
|
3526
|
-
unique: !
|
|
3511
|
+
variationId: C !== I ? C : void 0,
|
|
3512
|
+
...$n(b),
|
|
3513
|
+
unique: !u
|
|
3527
3514
|
});
|
|
3528
3515
|
}
|
|
3529
|
-
|
|
3516
|
+
u || g(!0);
|
|
3530
3517
|
}
|
|
3531
|
-
function
|
|
3532
|
-
var
|
|
3533
|
-
const
|
|
3534
|
-
Object.entries(
|
|
3535
|
-
if (!W ||
|
|
3518
|
+
function y() {
|
|
3519
|
+
var v, S, C;
|
|
3520
|
+
const b = (C = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? C : {};
|
|
3521
|
+
Object.entries(b).forEach(([I, W]) => {
|
|
3522
|
+
if (!W || h[I] || c[I] && !$())
|
|
3536
3523
|
return;
|
|
3537
|
-
|
|
3524
|
+
h[I] = !0;
|
|
3538
3525
|
const j = W.replace(
|
|
3539
3526
|
/{{([^}]+)}}/g,
|
|
3540
3527
|
(F, Ue) => String(
|
|
@@ -3548,14 +3535,14 @@ function Hn(e) {
|
|
|
3548
3535
|
})
|
|
3549
3536
|
)
|
|
3550
3537
|
);
|
|
3551
|
-
|
|
3538
|
+
Ye(j).then((F) => F.json()).then((F) => {
|
|
3552
3539
|
n({
|
|
3553
|
-
[
|
|
3554
|
-
}),
|
|
3540
|
+
[I]: F
|
|
3541
|
+
}), c[I] = !0;
|
|
3555
3542
|
}).catch((F) => {
|
|
3556
3543
|
console.error("error fetching dynamic data", W, F);
|
|
3557
3544
|
}).finally(() => {
|
|
3558
|
-
|
|
3545
|
+
h[I] = !1;
|
|
3559
3546
|
});
|
|
3560
3547
|
});
|
|
3561
3548
|
}
|
|
@@ -3565,7 +3552,7 @@ function Hn(e) {
|
|
|
3565
3552
|
"builder:component:stateChange",
|
|
3566
3553
|
{
|
|
3567
3554
|
detail: {
|
|
3568
|
-
state:
|
|
3555
|
+
state: ce(e.builderContextSignal.rootState),
|
|
3569
3556
|
ref: {
|
|
3570
3557
|
name: e.model
|
|
3571
3558
|
}
|
|
@@ -3575,9 +3562,9 @@ function Hn(e) {
|
|
|
3575
3562
|
);
|
|
3576
3563
|
}
|
|
3577
3564
|
return B(() => {
|
|
3578
|
-
var
|
|
3565
|
+
var b, v;
|
|
3579
3566
|
if (G()) {
|
|
3580
|
-
if ($() && (window.addEventListener("message",
|
|
3567
|
+
if ($() && (window.addEventListener("message", s), Ke(), _e({
|
|
3581
3568
|
...e.locale ? {
|
|
3582
3569
|
locale: e.locale
|
|
3583
3570
|
} : {},
|
|
@@ -3589,28 +3576,28 @@ function Hn(e) {
|
|
|
3589
3576
|
} : {}
|
|
3590
3577
|
}), Object.values(
|
|
3591
3578
|
e.builderContextSignal.componentInfos
|
|
3592
|
-
).forEach((
|
|
3579
|
+
).forEach((C) => {
|
|
3593
3580
|
var W;
|
|
3594
|
-
const
|
|
3595
|
-
(W = window.parent) == null || W.postMessage(
|
|
3581
|
+
const I = ze(C);
|
|
3582
|
+
(W = window.parent) == null || W.postMessage(I, "*");
|
|
3596
3583
|
}), window.addEventListener(
|
|
3597
3584
|
"builder:component:stateChangeListenerActivated",
|
|
3598
3585
|
E
|
|
3599
3586
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3600
|
-
const
|
|
3601
|
-
|
|
3587
|
+
const C = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
|
|
3588
|
+
fe({
|
|
3602
3589
|
type: "impression",
|
|
3603
3590
|
canTrack: !0,
|
|
3604
|
-
contentId:
|
|
3591
|
+
contentId: I,
|
|
3605
3592
|
apiKey: W,
|
|
3606
|
-
variationId:
|
|
3593
|
+
variationId: C !== I ? C : void 0
|
|
3607
3594
|
});
|
|
3608
3595
|
}
|
|
3609
|
-
if (
|
|
3610
|
-
const
|
|
3611
|
-
`builder.overrides.${
|
|
3612
|
-
), j =
|
|
3613
|
-
|
|
3596
|
+
if (Te() && !$()) {
|
|
3597
|
+
const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
|
|
3598
|
+
`builder.overrides.${I}`
|
|
3599
|
+
), j = C.get("apiKey") || C.get("builder.space");
|
|
3600
|
+
I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
|
|
3614
3601
|
model: e.model,
|
|
3615
3602
|
apiKey: e.apiKey,
|
|
3616
3603
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3620,16 +3607,16 @@ function Hn(e) {
|
|
|
3620
3607
|
}
|
|
3621
3608
|
}
|
|
3622
3609
|
}, []), B(() => {
|
|
3623
|
-
e.apiKey ||
|
|
3610
|
+
e.apiKey || X.error(
|
|
3624
3611
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3625
|
-
),
|
|
3612
|
+
), d(), y(), E();
|
|
3626
3613
|
}, []), B(() => {
|
|
3627
3614
|
e.content && i(e.content);
|
|
3628
3615
|
}, [e.content]), B(() => {
|
|
3629
|
-
|
|
3616
|
+
d();
|
|
3630
3617
|
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3631
|
-
|
|
3632
|
-
}, [(
|
|
3618
|
+
y();
|
|
3619
|
+
}, [(k = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : k.httpRequests]), B(() => {
|
|
3633
3620
|
E();
|
|
3634
3621
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3635
3622
|
e.data && n(e.data);
|
|
@@ -3638,28 +3625,28 @@ function Hn(e) {
|
|
|
3638
3625
|
locale: e.locale
|
|
3639
3626
|
});
|
|
3640
3627
|
}, [e.locale]), B(() => () => {
|
|
3641
|
-
G() && (window.removeEventListener("message",
|
|
3628
|
+
G() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3642
3629
|
"builder:component:stateChangeListenerActivated",
|
|
3643
3630
|
E
|
|
3644
3631
|
));
|
|
3645
|
-
}, []), /* @__PURE__ */
|
|
3646
|
-
|
|
3632
|
+
}, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3633
|
+
a,
|
|
3647
3634
|
{
|
|
3648
3635
|
ref: t,
|
|
3649
|
-
onClick: (
|
|
3636
|
+
onClick: (b) => x(b),
|
|
3650
3637
|
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3651
3638
|
"builder-model": e.model,
|
|
3652
3639
|
...o(),
|
|
3653
3640
|
...e.contentWrapperProps,
|
|
3654
3641
|
className: Un(
|
|
3655
|
-
((N = e.content) == null ? void 0 : N.testVariationId) || ((
|
|
3642
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
3656
3643
|
),
|
|
3657
3644
|
children: e.children
|
|
3658
3645
|
}
|
|
3659
3646
|
) : null });
|
|
3660
3647
|
}
|
|
3661
3648
|
function qn(e) {
|
|
3662
|
-
const [t, n] =
|
|
3649
|
+
const [t, n] = T(
|
|
3663
3650
|
() => `
|
|
3664
3651
|
${On({
|
|
3665
3652
|
cssCode: e.cssCode,
|
|
@@ -3671,8 +3658,8 @@ ${Ln({
|
|
|
3671
3658
|
${Mn(e.isNestedRender)}
|
|
3672
3659
|
`.trim()
|
|
3673
3660
|
);
|
|
3674
|
-
return /* @__PURE__ */
|
|
3675
|
-
|
|
3661
|
+
return /* @__PURE__ */ l(
|
|
3662
|
+
te,
|
|
3676
3663
|
{
|
|
3677
3664
|
id: "builderio-content",
|
|
3678
3665
|
styles: t,
|
|
@@ -3685,10 +3672,10 @@ const Kn = ({
|
|
|
3685
3672
|
data: t,
|
|
3686
3673
|
locale: n
|
|
3687
3674
|
}) => {
|
|
3688
|
-
var
|
|
3689
|
-
const i = {}, o = ((
|
|
3690
|
-
return (
|
|
3691
|
-
|
|
3675
|
+
var a, r, s;
|
|
3676
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3677
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3678
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3692
3679
|
}), {
|
|
3693
3680
|
...i,
|
|
3694
3681
|
...o,
|
|
@@ -3697,7 +3684,7 @@ const Kn = ({
|
|
|
3697
3684
|
locale: n
|
|
3698
3685
|
} : {}
|
|
3699
3686
|
};
|
|
3700
|
-
},
|
|
3687
|
+
}, _n = ({
|
|
3701
3688
|
content: e,
|
|
3702
3689
|
data: t
|
|
3703
3690
|
}) => e ? {
|
|
@@ -3708,41 +3695,41 @@ const Kn = ({
|
|
|
3708
3695
|
},
|
|
3709
3696
|
meta: e == null ? void 0 : e.meta
|
|
3710
3697
|
} : void 0;
|
|
3711
|
-
function
|
|
3712
|
-
var c,
|
|
3713
|
-
const [t, n] =
|
|
3698
|
+
function Ce(e) {
|
|
3699
|
+
var d, c, m, h, f, u, g;
|
|
3700
|
+
const [t, n] = T(
|
|
3714
3701
|
() => {
|
|
3715
|
-
var
|
|
3702
|
+
var x, y;
|
|
3716
3703
|
return Nn({
|
|
3717
3704
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3718
|
-
variationId: (
|
|
3705
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3719
3706
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3720
|
-
contentId: (
|
|
3707
|
+
contentId: (y = e.content) == null ? void 0 : y.id
|
|
3721
3708
|
});
|
|
3722
3709
|
}
|
|
3723
3710
|
);
|
|
3724
|
-
function i(
|
|
3725
|
-
|
|
3726
|
-
...
|
|
3727
|
-
rootState:
|
|
3711
|
+
function i(x) {
|
|
3712
|
+
s((y) => ({
|
|
3713
|
+
...y,
|
|
3714
|
+
rootState: x
|
|
3728
3715
|
}));
|
|
3729
3716
|
}
|
|
3730
|
-
const [o,
|
|
3717
|
+
const [o, a] = T(
|
|
3731
3718
|
() => [
|
|
3732
|
-
...
|
|
3719
|
+
...ve(),
|
|
3733
3720
|
...e.customComponents || []
|
|
3734
3721
|
].reduce(
|
|
3735
|
-
(
|
|
3736
|
-
...
|
|
3722
|
+
(x, { component: y, ...E }) => ({
|
|
3723
|
+
...x,
|
|
3737
3724
|
[E.name]: {
|
|
3738
|
-
component:
|
|
3739
|
-
...
|
|
3725
|
+
component: y,
|
|
3726
|
+
...he(E)
|
|
3740
3727
|
}
|
|
3741
3728
|
}),
|
|
3742
3729
|
{}
|
|
3743
3730
|
)
|
|
3744
|
-
), [
|
|
3745
|
-
content:
|
|
3731
|
+
), [r, s] = T(() => ({
|
|
3732
|
+
content: _n({
|
|
3746
3733
|
content: e.content,
|
|
3747
3734
|
data: e.data
|
|
3748
3735
|
}),
|
|
@@ -3758,12 +3745,12 @@ function Te(e) {
|
|
|
3758
3745
|
apiKey: e.apiKey,
|
|
3759
3746
|
apiVersion: e.apiVersion,
|
|
3760
3747
|
componentInfos: [
|
|
3761
|
-
...
|
|
3748
|
+
...ve(),
|
|
3762
3749
|
...e.customComponents || []
|
|
3763
3750
|
].reduce(
|
|
3764
|
-
(
|
|
3765
|
-
...
|
|
3766
|
-
[E.name]:
|
|
3751
|
+
(x, { component: y, ...E }) => ({
|
|
3752
|
+
...x,
|
|
3753
|
+
[E.name]: he(E)
|
|
3767
3754
|
}),
|
|
3768
3755
|
{}
|
|
3769
3756
|
),
|
|
@@ -3772,7 +3759,7 @@ function Te(e) {
|
|
|
3772
3759
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3773
3760
|
nonce: e.nonce || ""
|
|
3774
3761
|
}));
|
|
3775
|
-
return /* @__PURE__ */
|
|
3762
|
+
return /* @__PURE__ */ l(
|
|
3776
3763
|
Be.Provider,
|
|
3777
3764
|
{
|
|
3778
3765
|
value: {
|
|
@@ -3791,35 +3778,35 @@ function Te(e) {
|
|
|
3791
3778
|
locale: e.locale,
|
|
3792
3779
|
enrich: e.enrich,
|
|
3793
3780
|
showContent: e.showContent,
|
|
3794
|
-
builderContextSignal:
|
|
3781
|
+
builderContextSignal: r,
|
|
3795
3782
|
contentWrapper: e.contentWrapper,
|
|
3796
3783
|
contentWrapperProps: e.contentWrapperProps,
|
|
3797
3784
|
trustedHosts: e.trustedHosts,
|
|
3798
|
-
setBuilderContextSignal:
|
|
3785
|
+
setBuilderContextSignal: s,
|
|
3799
3786
|
children: [
|
|
3800
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3801
|
-
|
|
3787
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3788
|
+
se,
|
|
3802
3789
|
{
|
|
3803
3790
|
id: "builderio-variant-visibility",
|
|
3804
3791
|
scriptStr: t,
|
|
3805
3792
|
nonce: e.nonce || ""
|
|
3806
3793
|
}
|
|
3807
3794
|
) : null,
|
|
3808
|
-
/* @__PURE__ */
|
|
3795
|
+
/* @__PURE__ */ l(
|
|
3809
3796
|
qn,
|
|
3810
3797
|
{
|
|
3811
3798
|
nonce: e.nonce || "",
|
|
3812
3799
|
isNestedRender: e.isNestedRender,
|
|
3813
|
-
contentId: (
|
|
3814
|
-
cssCode: (
|
|
3815
|
-
customFonts: (
|
|
3800
|
+
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
3801
|
+
cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3802
|
+
customFonts: (f = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : f.customFonts
|
|
3816
3803
|
}
|
|
3817
3804
|
),
|
|
3818
|
-
/* @__PURE__ */
|
|
3805
|
+
/* @__PURE__ */ l(
|
|
3819
3806
|
D,
|
|
3820
3807
|
{
|
|
3821
|
-
blocks: (
|
|
3822
|
-
context:
|
|
3808
|
+
blocks: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.blocks,
|
|
3809
|
+
context: r,
|
|
3823
3810
|
registeredComponents: o,
|
|
3824
3811
|
linkComponent: e.linkComponent
|
|
3825
3812
|
}
|
|
@@ -3830,33 +3817,33 @@ function Te(e) {
|
|
|
3830
3817
|
}
|
|
3831
3818
|
);
|
|
3832
3819
|
}
|
|
3833
|
-
function
|
|
3834
|
-
var
|
|
3835
|
-
const [t, n] =
|
|
3820
|
+
function zn(e) {
|
|
3821
|
+
var r;
|
|
3822
|
+
const [t, n] = T(
|
|
3836
3823
|
() => Bn({
|
|
3837
3824
|
canTrack: Q(e.canTrack),
|
|
3838
3825
|
content: e.content
|
|
3839
3826
|
})
|
|
3840
3827
|
);
|
|
3841
3828
|
function i() {
|
|
3842
|
-
var
|
|
3829
|
+
var s;
|
|
3843
3830
|
return An(
|
|
3844
|
-
J(e.content).map((
|
|
3845
|
-
id:
|
|
3846
|
-
testRatio:
|
|
3831
|
+
J(e.content).map((d) => ({
|
|
3832
|
+
id: d.testVariationId,
|
|
3833
|
+
testRatio: d.testRatio
|
|
3847
3834
|
})),
|
|
3848
|
-
((
|
|
3835
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3849
3836
|
);
|
|
3850
3837
|
}
|
|
3851
3838
|
function o() {
|
|
3852
|
-
return J(e.content).map((
|
|
3839
|
+
return J(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3853
3840
|
}
|
|
3854
|
-
function
|
|
3855
|
-
var
|
|
3841
|
+
function a() {
|
|
3842
|
+
var s;
|
|
3856
3843
|
return t ? {
|
|
3857
3844
|
...e.content,
|
|
3858
|
-
testVariationId: (
|
|
3859
|
-
} :
|
|
3845
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3846
|
+
} : Ge({
|
|
3860
3847
|
item: e.content,
|
|
3861
3848
|
canTrack: Q(e.canTrack)
|
|
3862
3849
|
});
|
|
@@ -3864,8 +3851,8 @@ function _n(e) {
|
|
|
3864
3851
|
return B(() => {
|
|
3865
3852
|
}, []), B(() => {
|
|
3866
3853
|
}), /* @__PURE__ */ P(R, { children: [
|
|
3867
|
-
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */
|
|
3868
|
-
|
|
3854
|
+
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ l(
|
|
3855
|
+
se,
|
|
3869
3856
|
{
|
|
3870
3857
|
id: "builderio-init-variants-fns",
|
|
3871
3858
|
scriptStr: Vn(),
|
|
@@ -3873,28 +3860,28 @@ function _n(e) {
|
|
|
3873
3860
|
}
|
|
3874
3861
|
) : null,
|
|
3875
3862
|
t ? /* @__PURE__ */ P(R, { children: [
|
|
3876
|
-
/* @__PURE__ */
|
|
3877
|
-
|
|
3863
|
+
/* @__PURE__ */ l(
|
|
3864
|
+
te,
|
|
3878
3865
|
{
|
|
3879
3866
|
id: "builderio-variants",
|
|
3880
3867
|
styles: o(),
|
|
3881
3868
|
nonce: e.nonce || ""
|
|
3882
3869
|
}
|
|
3883
3870
|
),
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
|
|
3871
|
+
/* @__PURE__ */ l(
|
|
3872
|
+
se,
|
|
3886
3873
|
{
|
|
3887
3874
|
id: "builderio-variants-visibility",
|
|
3888
3875
|
scriptStr: i(),
|
|
3889
3876
|
nonce: e.nonce || ""
|
|
3890
3877
|
}
|
|
3891
3878
|
),
|
|
3892
|
-
(
|
|
3893
|
-
|
|
3879
|
+
(r = J(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3880
|
+
Ce,
|
|
3894
3881
|
{
|
|
3895
3882
|
isNestedRender: e.isNestedRender,
|
|
3896
3883
|
nonce: e.nonce,
|
|
3897
|
-
content:
|
|
3884
|
+
content: s,
|
|
3898
3885
|
showContent: !1,
|
|
3899
3886
|
model: e.model,
|
|
3900
3887
|
data: e.data,
|
|
@@ -3913,15 +3900,15 @@ function _n(e) {
|
|
|
3913
3900
|
contentWrapperProps: e.contentWrapperProps,
|
|
3914
3901
|
trustedHosts: e.trustedHosts
|
|
3915
3902
|
},
|
|
3916
|
-
|
|
3903
|
+
s.testVariationId
|
|
3917
3904
|
))
|
|
3918
3905
|
] }) : null,
|
|
3919
|
-
/* @__PURE__ */
|
|
3920
|
-
|
|
3906
|
+
/* @__PURE__ */ l(
|
|
3907
|
+
Ce,
|
|
3921
3908
|
{
|
|
3922
3909
|
nonce: e.nonce,
|
|
3923
3910
|
isNestedRender: e.isNestedRender,
|
|
3924
|
-
content:
|
|
3911
|
+
content: a(),
|
|
3925
3912
|
showContent: !0,
|
|
3926
3913
|
model: e.model,
|
|
3927
3914
|
data: e.data,
|
|
@@ -3959,11 +3946,11 @@ const Jn = async ({
|
|
|
3959
3946
|
}
|
|
3960
3947
|
}
|
|
3961
3948
|
}).catch((n) => {
|
|
3962
|
-
|
|
3949
|
+
X.error("Could not fetch symbol content: ", n);
|
|
3963
3950
|
});
|
|
3964
3951
|
};
|
|
3965
3952
|
function Yn(e) {
|
|
3966
|
-
var
|
|
3953
|
+
var s, d, c, m;
|
|
3967
3954
|
function t() {
|
|
3968
3955
|
return "div";
|
|
3969
3956
|
}
|
|
@@ -3971,31 +3958,31 @@ function Yn(e) {
|
|
|
3971
3958
|
return "div";
|
|
3972
3959
|
}
|
|
3973
3960
|
function i() {
|
|
3974
|
-
var
|
|
3961
|
+
var h, f;
|
|
3975
3962
|
return [
|
|
3976
3963
|
e.attributes[H()],
|
|
3977
3964
|
"builder-symbol",
|
|
3978
|
-
(
|
|
3979
|
-
(
|
|
3965
|
+
(h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
|
|
3966
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3980
3967
|
].filter(Boolean).join(" ");
|
|
3981
3968
|
}
|
|
3982
|
-
const [o,
|
|
3983
|
-
var
|
|
3984
|
-
return (
|
|
3969
|
+
const [o, a] = T(() => {
|
|
3970
|
+
var h;
|
|
3971
|
+
return (h = e.symbol) == null ? void 0 : h.content;
|
|
3985
3972
|
});
|
|
3986
|
-
function
|
|
3973
|
+
function r() {
|
|
3987
3974
|
o || Jn({
|
|
3988
3975
|
symbol: e.symbol,
|
|
3989
3976
|
builderContextValue: e.builderContext
|
|
3990
|
-
}).then((
|
|
3991
|
-
|
|
3977
|
+
}).then((h) => {
|
|
3978
|
+
h && a(h);
|
|
3992
3979
|
});
|
|
3993
3980
|
}
|
|
3994
3981
|
return B(() => {
|
|
3995
3982
|
}, []), B(() => {
|
|
3996
|
-
|
|
3997
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
3998
|
-
|
|
3983
|
+
r();
|
|
3984
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
3985
|
+
zn,
|
|
3999
3986
|
{
|
|
4000
3987
|
nonce: e.builderContext.nonce,
|
|
4001
3988
|
isNestedRender: !0,
|
|
@@ -4003,16 +3990,16 @@ function Yn(e) {
|
|
|
4003
3990
|
apiKey: e.builderContext.apiKey,
|
|
4004
3991
|
context: {
|
|
4005
3992
|
...e.builderContext.context,
|
|
4006
|
-
symbolId: (
|
|
3993
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4007
3994
|
},
|
|
4008
3995
|
customComponents: Object.values(e.builderComponents),
|
|
4009
3996
|
data: {
|
|
4010
|
-
...(
|
|
3997
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4011
3998
|
...e.builderContext.localState,
|
|
4012
|
-
...(
|
|
3999
|
+
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4013
4000
|
},
|
|
4014
4001
|
canTrack: e.builderContext.canTrack,
|
|
4015
|
-
model: (
|
|
4002
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
4016
4003
|
content: o,
|
|
4017
4004
|
linkComponent: e.builderLinkComponent,
|
|
4018
4005
|
blocksWrapper: t(),
|
|
@@ -4022,10 +4009,10 @@ function Yn(e) {
|
|
|
4022
4009
|
}
|
|
4023
4010
|
export {
|
|
4024
4011
|
D as Blocks,
|
|
4025
|
-
|
|
4026
|
-
|
|
4012
|
+
ue as BuilderContext,
|
|
4013
|
+
it as Button,
|
|
4027
4014
|
$t as Columns,
|
|
4028
|
-
|
|
4015
|
+
zn as Content,
|
|
4029
4016
|
Dt as Fragment,
|
|
4030
4017
|
jt as Image,
|
|
4031
4018
|
Mt as Section,
|