@builder.io/sdk-react 5.0.1 → 5.1.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 +15 -15
- package/lib/browser/blocks-exports.mjs +400 -368
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-54562695.cjs → server-entry-85aa99e6.cjs} +2 -2
- package/lib/browser/{server-entry-48d8b908.js → server-entry-a3b5302c.js} +126 -126
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-8b1f60fc.cjs → accordion-1e467b30.cjs} +1 -1
- package/lib/edge/{accordion-66ebf67c.js → accordion-83f68de4.js} +1 -1
- package/lib/edge/{blocks-1dc43011.cjs → blocks-4d57d38f.cjs} +12 -12
- package/lib/edge/{blocks-c00ca88f.js → blocks-6b821501.js} +359 -327
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-041e711c.js → button-52af8a54.js} +2 -2
- package/lib/edge/{button-1984c901.cjs → button-b2eb1d64.cjs} +1 -1
- package/lib/edge/{columns-2b2cf661.cjs → columns-8eb66fad.cjs} +1 -1
- package/lib/edge/{columns-92e5946e.js → columns-e0489b50.js} +3 -3
- package/lib/edge/{content-variants-cce99ed6.js → content-variants-5003144d.js} +12 -12
- package/lib/edge/{content-variants-bc4a2651.cjs → content-variants-6c1ee307.cjs} +2 -2
- package/lib/edge/{custom-code-f7e6cd68.js → custom-code-4e76fc0d.js} +1 -1
- package/lib/edge/{custom-code-1f128470.cjs → custom-code-bc787526.cjs} +1 -1
- package/lib/edge/{embed-bc36f168.cjs → embed-8ef248c5.cjs} +1 -1
- package/lib/edge/{embed-52205349.js → embed-fd344d6d.js} +1 -1
- package/lib/edge/{form-5786e8d3.cjs → form-107c9eae.cjs} +1 -1
- package/lib/edge/{form-3df2f242.js → form-4efa40a5.js} +3 -3
- package/lib/edge/{get-class-prop-name-0276175d.cjs → get-class-prop-name-2c2513e9.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-219095c0.js → get-class-prop-name-e6f7321f.js} +1 -1
- package/lib/edge/{img-b5312e74.js → img-a32b0723.js} +2 -2
- package/lib/edge/{img-e7eefcb8.cjs → img-ab241f22.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-46b7c2f4.cjs → input-ada30ffb.cjs} +1 -1
- package/lib/edge/{input-0ae31d0b.js → input-c48fe23a.js} +1 -1
- package/lib/edge/{personalization-container-8000ecb8.cjs → personalization-container-375a1501.cjs} +1 -1
- package/lib/edge/{personalization-container-31c5a316.js → personalization-container-ad7cf89c.js} +4 -4
- package/lib/edge/{select-c02d2710.cjs → select-879c52dd.cjs} +1 -1
- package/lib/edge/{select-b32b2a7b.js → select-a49d819c.js} +1 -1
- package/lib/edge/{server-entry-5edd9be5.cjs → server-entry-560732da.cjs} +1 -1
- package/lib/edge/{server-entry-406d9576.js → server-entry-68d59577.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-63da11c0.js → slot-005d6258.js} +3 -3
- package/lib/edge/{slot-d9dad534.cjs → slot-5da991d1.cjs} +1 -1
- package/lib/edge/{symbol-a6bc073a.js → symbol-155906ed.js} +2 -2
- package/lib/edge/{symbol-9c9940fb.cjs → symbol-7e6ac72e.cjs} +1 -1
- package/lib/edge/{tabs-bb475169.js → tabs-69a36a5c.js} +3 -3
- package/lib/edge/{tabs-57b3f986.cjs → tabs-96367bf5.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +5 -5
- package/lib/node/blocks-exports.mjs +143 -127
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-92d43cb8.cjs → server-entry-2529c06e.cjs} +2 -2
- package/lib/node/{server-entry-f9e5ab97.js → server-entry-fc7f08d8.js} +126 -126
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-fb14c72b.js → setIvm-41d8b067.js} +90 -68
- package/lib/node/setIvm-b97cfb8b.cjs +48 -0
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-e9c386f7.cjs → should-force-browser-runtime-in-node-1d85a066.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-7a57d156.js → should-force-browser-runtime-in-node-fc5c3a06.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/evaluate.d.ts +1 -1
- package/types/functions/evaluate/helpers.d.ts +9 -1
- package/types/functions/get-block-actions-handler.d.ts +2 -0
- package/types/functions/get-block-actions.d.ts +2 -0
- package/lib/node/setIvm-b11f9172.cjs +0 -48
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, checkIsDefined as
|
|
3
|
-
import { setClientUserAttributes as Mi } from "./server-entry-
|
|
2
|
+
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-a3b5302c.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-a3b5302c.js";
|
|
4
4
|
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as Ue, useEffect as B, useState as k, useContext as
|
|
5
|
+
import * as gt from "react";
|
|
6
|
+
import { createContext as Ue, useEffect as B, useState as k, useContext as pe, useRef as z, createElement as He } from "react";
|
|
7
7
|
const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
|
|
8
|
-
function
|
|
8
|
+
function xe(e) {
|
|
9
9
|
return /* @__PURE__ */ s(w, { children: pt(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const K = () => {
|
|
@@ -37,7 +37,7 @@ function vt(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
xe,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -62,7 +62,7 @@ const se = Ue({
|
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
64
|
}), Me = Ue({ registeredComponents: {} }), qe = (e, t, n) => {
|
|
65
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
65
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, a) => r != null ? r[a] : r, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
67
|
}, xt = ({
|
|
68
68
|
builder: e,
|
|
@@ -76,11 +76,27 @@ const se = Ue({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}), St = () => ({
|
|
79
|
+
}), St = (e) => ({
|
|
80
80
|
isEditing: _(),
|
|
81
81
|
isBrowser: J(),
|
|
82
82
|
isServer: !J(),
|
|
83
|
-
getUserAttributes: () => ut()
|
|
83
|
+
getUserAttributes: () => ut(),
|
|
84
|
+
trackConversion: (t, n) => {
|
|
85
|
+
var i;
|
|
86
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ye({
|
|
87
|
+
type: "conversion",
|
|
88
|
+
apiKey: e.apiKey,
|
|
89
|
+
canTrack: (i = e.canTrack) != null ? i : !0,
|
|
90
|
+
contentId: e.contentId,
|
|
91
|
+
variationId: e.variationId !== e.contentId ? e.variationId : void 0,
|
|
92
|
+
metadata: {
|
|
93
|
+
...n || {},
|
|
94
|
+
...t !== void 0 ? {
|
|
95
|
+
amount: t
|
|
96
|
+
} : {}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
84
100
|
}), kt = (e, {
|
|
85
101
|
isExpression: t = !0
|
|
86
102
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
@@ -93,19 +109,19 @@ function je({
|
|
|
93
109
|
get: (i, r) => {
|
|
94
110
|
if (t && r in t)
|
|
95
111
|
return t[r];
|
|
96
|
-
const
|
|
97
|
-
return typeof
|
|
98
|
-
rootState:
|
|
112
|
+
const a = i[r];
|
|
113
|
+
return typeof a == "object" && a !== null ? je({
|
|
114
|
+
rootState: a,
|
|
99
115
|
localState: void 0,
|
|
100
|
-
rootSetState: n ? (
|
|
101
|
-
i[r] =
|
|
116
|
+
rootSetState: n ? (o) => {
|
|
117
|
+
i[r] = o, n(i);
|
|
102
118
|
} : void 0
|
|
103
|
-
}) :
|
|
119
|
+
}) : a;
|
|
104
120
|
},
|
|
105
|
-
set: (i, r,
|
|
121
|
+
set: (i, r, a) => {
|
|
106
122
|
if (t && r in t)
|
|
107
123
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
108
|
-
return i[r] =
|
|
124
|
+
return i[r] = a, n == null || n(i), !0;
|
|
109
125
|
}
|
|
110
126
|
});
|
|
111
127
|
}
|
|
@@ -115,24 +131,24 @@ const Ee = ({
|
|
|
115
131
|
context: n,
|
|
116
132
|
event: i,
|
|
117
133
|
localState: r,
|
|
118
|
-
rootSetState:
|
|
119
|
-
rootState:
|
|
134
|
+
rootSetState: a,
|
|
135
|
+
rootState: o
|
|
120
136
|
}) => {
|
|
121
137
|
const l = xt({
|
|
122
138
|
builder: t,
|
|
123
139
|
context: n,
|
|
124
140
|
event: i,
|
|
125
141
|
state: je({
|
|
126
|
-
rootState:
|
|
142
|
+
rootState: o,
|
|
127
143
|
localState: r,
|
|
128
|
-
rootSetState:
|
|
144
|
+
rootSetState: a
|
|
129
145
|
})
|
|
130
146
|
});
|
|
131
147
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
132
148
|
};
|
|
133
149
|
function Ct() {
|
|
134
150
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
151
|
+
return typeof process != "undefined" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
152
|
}
|
|
137
153
|
const Tt = ({
|
|
138
154
|
shouldLogWarning: e
|
|
@@ -145,8 +161,8 @@ const Tt = ({
|
|
|
145
161
|
}, It = (e) => (J() || Tt({
|
|
146
162
|
shouldLogWarning: !0
|
|
147
163
|
}), Ee(e)), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
|
|
148
|
-
var t, n, i, r,
|
|
149
|
-
return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
164
|
+
var t, n, i, r, a, o;
|
|
165
|
+
return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
|
|
150
166
|
};
|
|
151
167
|
function Y({
|
|
152
168
|
code: e,
|
|
@@ -154,32 +170,33 @@ function Y({
|
|
|
154
170
|
localState: n,
|
|
155
171
|
rootState: i,
|
|
156
172
|
rootSetState: r,
|
|
157
|
-
event:
|
|
158
|
-
isExpression:
|
|
173
|
+
event: a,
|
|
174
|
+
isExpression: o = !0,
|
|
175
|
+
trackingContext: l
|
|
159
176
|
}) {
|
|
160
177
|
if (e.trim() === "")
|
|
161
178
|
return;
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
179
|
+
const c = Rt(e.trim());
|
|
180
|
+
if (c)
|
|
164
181
|
return qe({
|
|
165
182
|
...i,
|
|
166
183
|
...n
|
|
167
|
-
},
|
|
168
|
-
const
|
|
184
|
+
}, c);
|
|
185
|
+
const d = {
|
|
169
186
|
code: kt(e, {
|
|
170
|
-
isExpression:
|
|
187
|
+
isExpression: o
|
|
171
188
|
}),
|
|
172
|
-
builder: St(),
|
|
189
|
+
builder: St(l),
|
|
173
190
|
context: t,
|
|
174
|
-
event:
|
|
191
|
+
event: a,
|
|
175
192
|
rootSetState: r,
|
|
176
193
|
rootState: i,
|
|
177
194
|
localState: n
|
|
178
195
|
};
|
|
179
196
|
try {
|
|
180
|
-
return It(
|
|
181
|
-
} catch (
|
|
182
|
-
Q.error("Failed code evaluation: " +
|
|
197
|
+
return It(d);
|
|
198
|
+
} catch (h) {
|
|
199
|
+
Q.error("Failed code evaluation: " + h.message, {
|
|
183
200
|
code: e
|
|
184
201
|
});
|
|
185
202
|
return;
|
|
@@ -198,8 +215,8 @@ const Vt = (e, t) => {
|
|
|
198
215
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
216
|
return {
|
|
200
217
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r,
|
|
202
|
-
code:
|
|
218
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, a) => Y({
|
|
219
|
+
code: a,
|
|
203
220
|
context: t,
|
|
204
221
|
localState: t.localState,
|
|
205
222
|
rootState: t.rootState,
|
|
@@ -213,21 +230,21 @@ function At(e, ...t) {
|
|
|
213
230
|
delete n[i];
|
|
214
231
|
return n;
|
|
215
232
|
}
|
|
216
|
-
function
|
|
233
|
+
function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
217
234
|
if (e == null || typeof e != "object") {
|
|
218
|
-
t(e, (
|
|
219
|
-
n !== null && i !== null && (n[i] =
|
|
235
|
+
t(e, (a) => {
|
|
236
|
+
n !== null && i !== null && (n[i] = a);
|
|
220
237
|
});
|
|
221
238
|
return;
|
|
222
239
|
}
|
|
223
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((
|
|
224
|
-
t(o, (c) => {
|
|
225
|
-
e[a] = c;
|
|
226
|
-
}), ae(o, t, e, a, r);
|
|
227
|
-
}) : Object.entries(e).forEach(([o, a]) => {
|
|
240
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((a, o) => {
|
|
228
241
|
t(a, (c) => {
|
|
229
242
|
e[o] = c;
|
|
230
|
-
}),
|
|
243
|
+
}), oe(a, t, e, o, r);
|
|
244
|
+
}) : Object.entries(e).forEach(([a, o]) => {
|
|
245
|
+
t(o, (c) => {
|
|
246
|
+
e[a] = c;
|
|
247
|
+
}), oe(o, t, e, a, r);
|
|
231
248
|
}));
|
|
232
249
|
}
|
|
233
250
|
function ze(e) {
|
|
@@ -237,7 +254,7 @@ function Bt(e) {
|
|
|
237
254
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
255
|
return !1;
|
|
239
256
|
let t = !1;
|
|
240
|
-
return
|
|
257
|
+
return oe(e, (n) => {
|
|
241
258
|
if (ze(n)) {
|
|
242
259
|
t = !0;
|
|
243
260
|
return;
|
|
@@ -245,7 +262,7 @@ function Bt(e) {
|
|
|
245
262
|
}), t;
|
|
246
263
|
}
|
|
247
264
|
function Nt(e, t) {
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
265
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (oe(e, (n, i) => {
|
|
249
266
|
var r;
|
|
250
267
|
ze(n) && i((r = n[t]) != null ? r : void 0);
|
|
251
268
|
}), e);
|
|
@@ -254,27 +271,27 @@ function Wt(e, t) {
|
|
|
254
271
|
var n, i;
|
|
255
272
|
return (n = e.component) != null && n.options && Bt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Nt(e.component.options, t != null ? t : "Default")), e;
|
|
256
273
|
}
|
|
257
|
-
const
|
|
274
|
+
const Se = (e) => JSON.parse(JSON.stringify(e)), Ke = (e, t, n) => {
|
|
258
275
|
if (Object(e) !== e)
|
|
259
276
|
return e;
|
|
260
277
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
261
|
-
return i.slice(0, -1).reduce((r,
|
|
278
|
+
return i.slice(0, -1).reduce((r, a, o) => Object(r[a]) === r[a] ? r[a] : r[a] = Math.abs(Number(i[o + 1])) >> 0 === +i[o + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
279
|
};
|
|
263
|
-
function
|
|
280
|
+
function ve(e) {
|
|
264
281
|
if (e === null || typeof e != "object")
|
|
265
282
|
return e;
|
|
266
283
|
if (Array.isArray(e))
|
|
267
|
-
return e.map((n) =>
|
|
284
|
+
return e.map((n) => ve(n));
|
|
268
285
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
269
286
|
return e;
|
|
270
287
|
const t = {};
|
|
271
288
|
for (const n in e)
|
|
272
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
289
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ve(e[n]));
|
|
273
290
|
return t;
|
|
274
291
|
}
|
|
275
292
|
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) => {
|
|
276
293
|
if ($t) {
|
|
277
|
-
const t =
|
|
294
|
+
const t = Se(e);
|
|
278
295
|
return {
|
|
279
296
|
...t,
|
|
280
297
|
properties: {
|
|
@@ -285,7 +302,7 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
285
302
|
}
|
|
286
303
|
};
|
|
287
304
|
} else {
|
|
288
|
-
const t =
|
|
305
|
+
const t = ve(At(e, "children", "meta"));
|
|
289
306
|
return {
|
|
290
307
|
...t,
|
|
291
308
|
properties: {
|
|
@@ -307,18 +324,18 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
307
324
|
}) => {
|
|
308
325
|
if (!e.bindings)
|
|
309
326
|
return e;
|
|
310
|
-
const
|
|
311
|
-
for (const
|
|
312
|
-
const l = e.bindings[
|
|
327
|
+
const a = Dt(e);
|
|
328
|
+
for (const o in e.bindings) {
|
|
329
|
+
const l = e.bindings[o], c = Y({
|
|
313
330
|
code: l,
|
|
314
331
|
localState: n,
|
|
315
332
|
rootState: i,
|
|
316
333
|
rootSetState: r,
|
|
317
334
|
context: t
|
|
318
335
|
});
|
|
319
|
-
Ke(
|
|
336
|
+
Ke(a, o, c);
|
|
320
337
|
}
|
|
321
|
-
return
|
|
338
|
+
return a;
|
|
322
339
|
};
|
|
323
340
|
function Ft({
|
|
324
341
|
block: e,
|
|
@@ -327,26 +344,26 @@ function Ft({
|
|
|
327
344
|
rootState: i,
|
|
328
345
|
rootSetState: r
|
|
329
346
|
}) {
|
|
330
|
-
let
|
|
331
|
-
return
|
|
332
|
-
block:
|
|
347
|
+
let a = e;
|
|
348
|
+
return a = Ot({
|
|
349
|
+
block: a,
|
|
333
350
|
localState: n,
|
|
334
351
|
rootState: i,
|
|
335
352
|
rootSetState: r,
|
|
336
353
|
context: t
|
|
337
|
-
}),
|
|
354
|
+
}), a = Wt(a, i.locale), a;
|
|
338
355
|
}
|
|
339
356
|
const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
357
|
function Lt(e, t, n = {}) {
|
|
341
|
-
let i, r,
|
|
358
|
+
let i, r, a, o = null, l = 0;
|
|
342
359
|
const c = function() {
|
|
343
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
360
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
|
|
344
361
|
};
|
|
345
362
|
return function() {
|
|
346
363
|
const d = Date.now();
|
|
347
364
|
!l && n.leading === !1 && (l = d);
|
|
348
365
|
const h = t - (d - l);
|
|
349
|
-
return i = this, r = arguments, h <= 0 || h > t ? (
|
|
366
|
+
return i = this, r = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, a = e.apply(i, r), o || (i = r = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), a;
|
|
350
367
|
};
|
|
351
368
|
}
|
|
352
369
|
function Z(e, ...t) {
|
|
@@ -354,8 +371,8 @@ function Z(e, ...t) {
|
|
|
354
371
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
372
|
const r = arguments[i];
|
|
356
373
|
if (r != null)
|
|
357
|
-
for (const
|
|
358
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
374
|
+
for (const a in r)
|
|
375
|
+
Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
|
|
359
376
|
}
|
|
360
377
|
return n;
|
|
361
378
|
}
|
|
@@ -374,8 +391,8 @@ function Je(e) {
|
|
|
374
391
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
392
|
}
|
|
376
393
|
function Ge(e, t) {
|
|
377
|
-
const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles,
|
|
378
|
-
for (const l of
|
|
394
|
+
const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
|
|
395
|
+
for (const l of o)
|
|
379
396
|
for (const c of n)
|
|
380
397
|
c in l || (l[c] = i[c]);
|
|
381
398
|
}
|
|
@@ -409,19 +426,19 @@ function Ht(e) {
|
|
|
409
426
|
Array.from(t).forEach((n) => {
|
|
410
427
|
Ge(e, n);
|
|
411
428
|
let i = !1, r = !1;
|
|
412
|
-
function
|
|
429
|
+
function a() {
|
|
413
430
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
414
|
-
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
431
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
415
432
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
433
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
434
|
})) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
|
|
418
435
|
}
|
|
419
|
-
const
|
|
436
|
+
const o = Lt(a, 200, {
|
|
420
437
|
leading: !1
|
|
421
438
|
});
|
|
422
439
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
440
|
+
const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
441
|
+
return g.bottom > f && g.top < u - f;
|
|
425
442
|
}
|
|
426
443
|
const c = e.steps[0].styles;
|
|
427
444
|
function d() {
|
|
@@ -429,16 +446,16 @@ function Ht(e) {
|
|
|
429
446
|
}
|
|
430
447
|
d(), setTimeout(() => {
|
|
431
448
|
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
|
-
}), document.addEventListener("scroll",
|
|
449
|
+
}), document.addEventListener("scroll", o, {
|
|
433
450
|
capture: !0,
|
|
434
451
|
passive: !0
|
|
435
|
-
}),
|
|
452
|
+
}), a();
|
|
436
453
|
});
|
|
437
454
|
}
|
|
438
455
|
const Ye = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
456
|
if (typeof i == "string")
|
|
440
457
|
return `${ce(n)}: ${i};`;
|
|
441
|
-
}).filter(
|
|
458
|
+
}).filter(ae), Mt = (e) => Ye(e).join(`
|
|
442
459
|
`), X = ({
|
|
443
460
|
mediaQuery: e,
|
|
444
461
|
className: t,
|
|
@@ -483,8 +500,8 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
483
500
|
registeredComponents: t,
|
|
484
501
|
model: n
|
|
485
502
|
}) => {
|
|
486
|
-
var
|
|
487
|
-
const i = (
|
|
503
|
+
var a;
|
|
504
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
488
505
|
if (!i)
|
|
489
506
|
return null;
|
|
490
507
|
const r = t[i];
|
|
@@ -514,7 +531,7 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
514
531
|
});
|
|
515
532
|
if (!Array.isArray(r))
|
|
516
533
|
return;
|
|
517
|
-
const
|
|
534
|
+
const a = n.collection.split(".").pop(), o = n.itemName || (a ? a + "Item" : "item");
|
|
518
535
|
return r.map((c, d) => ({
|
|
519
536
|
context: {
|
|
520
537
|
...t,
|
|
@@ -522,8 +539,8 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
522
539
|
...t.localState,
|
|
523
540
|
$index: d,
|
|
524
541
|
$item: c,
|
|
525
|
-
[
|
|
526
|
-
[`$${
|
|
542
|
+
[o]: c,
|
|
543
|
+
[`$${o}Index`]: d
|
|
527
544
|
}
|
|
528
545
|
},
|
|
529
546
|
block: i
|
|
@@ -536,7 +553,7 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
536
553
|
}, Gt = (e, t, n) => {
|
|
537
554
|
var i;
|
|
538
555
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
556
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !Ze(o, n)))
|
|
540
557
|
} : {};
|
|
541
558
|
}, Qt = (e, t) => {
|
|
542
559
|
var n;
|
|
@@ -559,7 +576,8 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
|
|
|
559
576
|
rootState: t.rootState,
|
|
560
577
|
rootSetState: t.rootSetState,
|
|
561
578
|
event: n,
|
|
562
|
-
isExpression: !1
|
|
579
|
+
isExpression: !1,
|
|
580
|
+
trackingContext: t.trackingContext
|
|
563
581
|
});
|
|
564
582
|
function et(e) {
|
|
565
583
|
var i;
|
|
@@ -567,18 +585,18 @@ function et(e) {
|
|
|
567
585
|
for (const r in n) {
|
|
568
586
|
if (!n.hasOwnProperty(r))
|
|
569
587
|
continue;
|
|
570
|
-
const
|
|
571
|
-
let
|
|
588
|
+
const a = n[r];
|
|
589
|
+
let o = Zt(r);
|
|
572
590
|
if (e.stripPrefix)
|
|
573
591
|
switch (O) {
|
|
574
592
|
case "vue":
|
|
575
|
-
|
|
593
|
+
o = o.replace("v-on:", "");
|
|
576
594
|
break;
|
|
577
595
|
case "svelte":
|
|
578
|
-
|
|
596
|
+
o = o.replace("on:", "");
|
|
579
597
|
break;
|
|
580
598
|
}
|
|
581
|
-
t[
|
|
599
|
+
t[o] = en(a, e);
|
|
582
600
|
}
|
|
583
601
|
return t;
|
|
584
602
|
}
|
|
@@ -590,7 +608,7 @@ function tn({
|
|
|
590
608
|
const nn = (e) => ({
|
|
591
609
|
href: e.href
|
|
592
610
|
});
|
|
593
|
-
function
|
|
611
|
+
function ke({
|
|
594
612
|
block: e,
|
|
595
613
|
context: t
|
|
596
614
|
}) {
|
|
@@ -612,11 +630,12 @@ function Se({
|
|
|
612
630
|
});
|
|
613
631
|
}
|
|
614
632
|
function rn(e) {
|
|
633
|
+
var t, n, i;
|
|
615
634
|
return /* @__PURE__ */ s(
|
|
616
|
-
|
|
635
|
+
xe,
|
|
617
636
|
{
|
|
618
637
|
TagName: e.Wrapper,
|
|
619
|
-
attributes:
|
|
638
|
+
attributes: ke({
|
|
620
639
|
block: e.block,
|
|
621
640
|
context: e.context
|
|
622
641
|
}),
|
|
@@ -626,22 +645,29 @@ function rn(e) {
|
|
|
626
645
|
rootSetState: e.context.rootSetState,
|
|
627
646
|
localState: e.context.localState,
|
|
628
647
|
context: e.context.context,
|
|
629
|
-
stripPrefix: !0
|
|
648
|
+
stripPrefix: !0,
|
|
649
|
+
trackingContext: {
|
|
650
|
+
apiKey: e.context.apiKey,
|
|
651
|
+
canTrack: (t = e.context.canTrack) != null ? t : !0,
|
|
652
|
+
contentId: (n = e.context.content) == null ? void 0 : n.id,
|
|
653
|
+
variationId: (i = e.context.content) == null ? void 0 : i.testVariationId
|
|
654
|
+
}
|
|
630
655
|
}),
|
|
631
656
|
children: e.children
|
|
632
657
|
}
|
|
633
658
|
);
|
|
634
659
|
}
|
|
635
|
-
function
|
|
660
|
+
function an(e) {
|
|
636
661
|
return B(() => {
|
|
637
662
|
}, []), /* @__PURE__ */ s(w, { children: e.children });
|
|
638
663
|
}
|
|
639
|
-
function
|
|
664
|
+
function on(e) {
|
|
640
665
|
var i, r;
|
|
641
666
|
k(() => 0);
|
|
642
667
|
function t() {
|
|
668
|
+
var a, o, l;
|
|
643
669
|
return e.includeBlockProps ? {
|
|
644
|
-
...
|
|
670
|
+
...ke({
|
|
645
671
|
block: e.block,
|
|
646
672
|
context: e.context
|
|
647
673
|
}),
|
|
@@ -650,7 +676,13 @@ function an(e) {
|
|
|
650
676
|
rootState: e.context.rootState,
|
|
651
677
|
rootSetState: e.context.rootSetState,
|
|
652
678
|
localState: e.context.localState,
|
|
653
|
-
context: e.context.context
|
|
679
|
+
context: e.context.context,
|
|
680
|
+
trackingContext: {
|
|
681
|
+
apiKey: e.context.apiKey,
|
|
682
|
+
canTrack: (a = e.context.canTrack) != null ? a : !0,
|
|
683
|
+
contentId: (o = e.context.content) == null ? void 0 : o.id,
|
|
684
|
+
variationId: (l = e.context.content) == null ? void 0 : l.testVariationId
|
|
685
|
+
}
|
|
654
686
|
})
|
|
655
687
|
} : {};
|
|
656
688
|
}
|
|
@@ -659,7 +691,7 @@ function an(e) {
|
|
|
659
691
|
}
|
|
660
692
|
return B(() => {
|
|
661
693
|
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
662
|
-
|
|
694
|
+
an,
|
|
663
695
|
{
|
|
664
696
|
load: e.Wrapper.load,
|
|
665
697
|
fallback: e.Wrapper.fallback,
|
|
@@ -675,8 +707,8 @@ const ln = ({
|
|
|
675
707
|
context: n,
|
|
676
708
|
componentRef: i,
|
|
677
709
|
includeBlockProps: r,
|
|
678
|
-
isInteractive:
|
|
679
|
-
contextValue:
|
|
710
|
+
isInteractive: a,
|
|
711
|
+
contextValue: o
|
|
680
712
|
}) => {
|
|
681
713
|
const l = {
|
|
682
714
|
...e,
|
|
@@ -685,13 +717,13 @@ const ln = ({
|
|
|
685
717
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
686
718
|
*/
|
|
687
719
|
...r ? {
|
|
688
|
-
attributes:
|
|
720
|
+
attributes: ke({
|
|
689
721
|
block: t,
|
|
690
|
-
context:
|
|
722
|
+
context: o
|
|
691
723
|
})
|
|
692
724
|
} : {}
|
|
693
725
|
};
|
|
694
|
-
return
|
|
726
|
+
return a ? {
|
|
695
727
|
Wrapper: i,
|
|
696
728
|
block: t,
|
|
697
729
|
context: n,
|
|
@@ -703,7 +735,7 @@ function Pe(e) {
|
|
|
703
735
|
var i;
|
|
704
736
|
k(() => !1);
|
|
705
737
|
const [t, n] = k(
|
|
706
|
-
() => e.isInteractive ?
|
|
738
|
+
() => e.isInteractive ? on : e.componentRef
|
|
707
739
|
);
|
|
708
740
|
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
709
741
|
t,
|
|
@@ -767,7 +799,7 @@ const tt = {
|
|
|
767
799
|
max: 1200
|
|
768
800
|
}
|
|
769
801
|
}, de = (e, t = tt) => `@media (max-width: ${t[e].max}px)`, nt = (e) => {
|
|
770
|
-
const t =
|
|
802
|
+
const t = Se(tt);
|
|
771
803
|
if (!e)
|
|
772
804
|
return t;
|
|
773
805
|
const {
|
|
@@ -785,17 +817,17 @@ const tt = {
|
|
|
785
817
|
}
|
|
786
818
|
if (!i || !r)
|
|
787
819
|
return t;
|
|
788
|
-
const
|
|
820
|
+
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
789
821
|
t.small = {
|
|
790
822
|
max: i,
|
|
791
|
-
min:
|
|
792
|
-
default:
|
|
823
|
+
min: a,
|
|
824
|
+
default: a + 1
|
|
793
825
|
};
|
|
794
|
-
const
|
|
826
|
+
const o = t.small.max + 1;
|
|
795
827
|
t.medium = {
|
|
796
828
|
max: r,
|
|
797
|
-
min:
|
|
798
|
-
default:
|
|
829
|
+
min: o,
|
|
830
|
+
default: o + 1
|
|
799
831
|
};
|
|
800
832
|
const l = t.medium.max + 1;
|
|
801
833
|
return t.large = {
|
|
@@ -818,13 +850,13 @@ function te(e) {
|
|
|
818
850
|
function Ae(e) {
|
|
819
851
|
function t() {
|
|
820
852
|
const i = e.block;
|
|
821
|
-
return
|
|
853
|
+
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
822
854
|
}
|
|
823
855
|
function n() {
|
|
824
856
|
var T, E, U, H, q;
|
|
825
|
-
const i = e.block, r = i.responsiveStyles,
|
|
826
|
-
((T =
|
|
827
|
-
), l = !!((U = (E =
|
|
857
|
+
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = nt(
|
|
858
|
+
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
859
|
+
), l = !!((U = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
828
860
|
if (!u)
|
|
829
861
|
return "";
|
|
830
862
|
const x = c ? X({
|
|
@@ -835,34 +867,34 @@ function Ae(e) {
|
|
|
835
867
|
styles: d,
|
|
836
868
|
mediaQuery: de(
|
|
837
869
|
"medium",
|
|
838
|
-
|
|
870
|
+
o
|
|
839
871
|
)
|
|
840
872
|
}) : "", m = h ? X({
|
|
841
873
|
className: u,
|
|
842
874
|
styles: h,
|
|
843
875
|
mediaQuery: de(
|
|
844
876
|
"small",
|
|
845
|
-
|
|
877
|
+
o
|
|
846
878
|
)
|
|
847
|
-
}) : "", y =
|
|
879
|
+
}) : "", y = g && l ? X({
|
|
848
880
|
className: u,
|
|
849
|
-
styles:
|
|
881
|
+
styles: g,
|
|
850
882
|
mediaQuery: de(
|
|
851
883
|
"xsmall",
|
|
852
|
-
|
|
884
|
+
o
|
|
853
885
|
)
|
|
854
|
-
}) : "",
|
|
886
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
855
887
|
let S = "";
|
|
856
|
-
if (
|
|
857
|
-
const p = ((q = (H =
|
|
888
|
+
if (b) {
|
|
889
|
+
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
858
890
|
S = X({
|
|
859
891
|
className: `${u}:hover`,
|
|
860
892
|
styles: {
|
|
861
893
|
...p,
|
|
862
|
-
transition: `all ${
|
|
863
|
-
|
|
894
|
+
transition: `all ${b.duration}s ${ce(
|
|
895
|
+
b.easing
|
|
864
896
|
)}`,
|
|
865
|
-
transitionDelay:
|
|
897
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
866
898
|
}
|
|
867
899
|
}) || "";
|
|
868
900
|
}
|
|
@@ -886,11 +918,11 @@ function Ae(e) {
|
|
|
886
918
|
function sn(e) {
|
|
887
919
|
k(() => !1);
|
|
888
920
|
const [t, n] = k(() => !1);
|
|
889
|
-
return
|
|
921
|
+
return pe(se), B(() => {
|
|
890
922
|
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
|
|
891
923
|
}
|
|
892
924
|
function ue(e) {
|
|
893
|
-
var h,
|
|
925
|
+
var h, g, u, x;
|
|
894
926
|
function t() {
|
|
895
927
|
return Kt({
|
|
896
928
|
block: e.block,
|
|
@@ -914,40 +946,40 @@ function ue(e) {
|
|
|
914
946
|
});
|
|
915
947
|
return n.value = f, n.update = !1, f;
|
|
916
948
|
}
|
|
917
|
-
function
|
|
949
|
+
function a() {
|
|
918
950
|
return zt({
|
|
919
951
|
block: r(),
|
|
920
952
|
registeredComponents: e.registeredComponents,
|
|
921
953
|
model: e.context.model
|
|
922
954
|
});
|
|
923
955
|
}
|
|
924
|
-
function
|
|
956
|
+
function o() {
|
|
925
957
|
var m;
|
|
926
958
|
return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
927
959
|
}
|
|
928
960
|
function l() {
|
|
929
|
-
var y,
|
|
961
|
+
var y, b;
|
|
930
962
|
if ((y = e.block.repeat) != null && y.collection)
|
|
931
|
-
return !!((
|
|
963
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
932
964
|
const f = "hide" in r() ? r().hide : !1;
|
|
933
965
|
return ("show" in r() ? r().show : !0) && !f;
|
|
934
966
|
}
|
|
935
967
|
function c() {
|
|
936
968
|
var m, y;
|
|
937
|
-
return !((m =
|
|
969
|
+
return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
|
|
938
970
|
}
|
|
939
971
|
function d() {
|
|
940
|
-
var f, m, y,
|
|
972
|
+
var f, m, y, b;
|
|
941
973
|
return {
|
|
942
974
|
blockChildren: (f = r().children) != null ? f : [],
|
|
943
|
-
componentRef: (m =
|
|
975
|
+
componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
|
|
944
976
|
componentOptions: {
|
|
945
977
|
...Pt(r(), e.context),
|
|
946
|
-
...Qt(
|
|
947
|
-
...Yt(
|
|
948
|
-
...Jt(
|
|
978
|
+
...Qt(a(), r()),
|
|
979
|
+
...Yt(a(), e.context),
|
|
980
|
+
...Jt(a(), e.linkComponent),
|
|
949
981
|
...Gt(
|
|
950
|
-
|
|
982
|
+
a(),
|
|
951
983
|
e.registeredComponents,
|
|
952
984
|
e.context.model
|
|
953
985
|
)
|
|
@@ -956,8 +988,8 @@ function ue(e) {
|
|
|
956
988
|
linkComponent: e.linkComponent,
|
|
957
989
|
registeredComponents: e.registeredComponents,
|
|
958
990
|
builderBlock: r(),
|
|
959
|
-
includeBlockProps: ((y =
|
|
960
|
-
isInteractive: !((
|
|
991
|
+
includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
|
|
992
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && O === "rsc")
|
|
961
993
|
};
|
|
962
994
|
}
|
|
963
995
|
return B(() => {
|
|
@@ -979,7 +1011,7 @@ function ue(e) {
|
|
|
979
1011
|
id: e.block.id
|
|
980
1012
|
}
|
|
981
1013
|
),
|
|
982
|
-
(h =
|
|
1014
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
983
1015
|
Ve,
|
|
984
1016
|
{
|
|
985
1017
|
repeatContext: f.context,
|
|
@@ -1013,7 +1045,7 @@ function ue(e) {
|
|
|
1013
1045
|
)) }) : /* @__PURE__ */ D(
|
|
1014
1046
|
rn,
|
|
1015
1047
|
{
|
|
1016
|
-
Wrapper:
|
|
1048
|
+
Wrapper: o(),
|
|
1017
1049
|
block: r(),
|
|
1018
1050
|
context: e.context,
|
|
1019
1051
|
children: [
|
|
@@ -1031,7 +1063,7 @@ function ue(e) {
|
|
|
1031
1063
|
isInteractive: d().isInteractive
|
|
1032
1064
|
}
|
|
1033
1065
|
),
|
|
1034
|
-
(
|
|
1066
|
+
(g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
1035
1067
|
ue,
|
|
1036
1068
|
{
|
|
1037
1069
|
block: f,
|
|
@@ -1050,22 +1082,22 @@ function cn(e) {
|
|
|
1050
1082
|
const t = z(null);
|
|
1051
1083
|
k(() => !1);
|
|
1052
1084
|
function n() {
|
|
1053
|
-
var
|
|
1085
|
+
var o;
|
|
1054
1086
|
return [
|
|
1055
1087
|
"builder-blocks",
|
|
1056
|
-
(
|
|
1088
|
+
(o = e.blocks) != null && o.length ? "" : "no-blocks",
|
|
1057
1089
|
e.classNameProp
|
|
1058
1090
|
].filter(Boolean).join(" ");
|
|
1059
1091
|
}
|
|
1060
1092
|
function i() {
|
|
1061
1093
|
if (!e.path)
|
|
1062
1094
|
return;
|
|
1063
|
-
const
|
|
1064
|
-
return e.path.startsWith(
|
|
1095
|
+
const o = "this.", l = "component.options.";
|
|
1096
|
+
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
1065
1097
|
}
|
|
1066
1098
|
function r() {
|
|
1067
|
-
var
|
|
1068
|
-
_() && !((
|
|
1099
|
+
var o, l;
|
|
1100
|
+
_() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1069
1101
|
{
|
|
1070
1102
|
type: "builder.clickEmptyBlocks",
|
|
1071
1103
|
data: {
|
|
@@ -1076,9 +1108,9 @@ function cn(e) {
|
|
|
1076
1108
|
"*"
|
|
1077
1109
|
));
|
|
1078
1110
|
}
|
|
1079
|
-
function
|
|
1080
|
-
var
|
|
1081
|
-
_() && !((
|
|
1111
|
+
function a() {
|
|
1112
|
+
var o, l;
|
|
1113
|
+
_() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1082
1114
|
{
|
|
1083
1115
|
type: "builder.hoverEmptyBlocks",
|
|
1084
1116
|
data: {
|
|
@@ -1105,9 +1137,9 @@ function cn(e) {
|
|
|
1105
1137
|
"builder-path": i(),
|
|
1106
1138
|
"builder-parent-id": e.parent,
|
|
1107
1139
|
style: e.styleProp,
|
|
1108
|
-
onClick: (
|
|
1109
|
-
onMouseEnter: (
|
|
1110
|
-
onKeyPress: (
|
|
1140
|
+
onClick: (o) => r(),
|
|
1141
|
+
onMouseEnter: (o) => a(),
|
|
1142
|
+
onKeyPress: (o) => r(),
|
|
1111
1143
|
...e.BlocksWrapperProps,
|
|
1112
1144
|
children: e.children
|
|
1113
1145
|
}
|
|
@@ -1115,8 +1147,8 @@ function cn(e) {
|
|
|
1115
1147
|
] });
|
|
1116
1148
|
}
|
|
1117
1149
|
function M(e) {
|
|
1118
|
-
var i, r,
|
|
1119
|
-
const t =
|
|
1150
|
+
var i, r, a;
|
|
1151
|
+
const t = pe(se), n = pe(Me);
|
|
1120
1152
|
return /* @__PURE__ */ D(
|
|
1121
1153
|
cn,
|
|
1122
1154
|
{
|
|
@@ -1129,15 +1161,15 @@ function M(e) {
|
|
|
1129
1161
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1130
1162
|
children: [
|
|
1131
1163
|
e.children,
|
|
1132
|
-
e.blocks ? /* @__PURE__ */ s(w, { children: (
|
|
1164
|
+
e.blocks ? /* @__PURE__ */ s(w, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
|
|
1133
1165
|
ue,
|
|
1134
1166
|
{
|
|
1135
|
-
block:
|
|
1167
|
+
block: o,
|
|
1136
1168
|
linkComponent: e.linkComponent,
|
|
1137
1169
|
context: e.context || t,
|
|
1138
1170
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1139
1171
|
},
|
|
1140
|
-
|
|
1172
|
+
o.id
|
|
1141
1173
|
)) }) : null
|
|
1142
1174
|
]
|
|
1143
1175
|
}
|
|
@@ -1155,28 +1187,28 @@ function dn(e) {
|
|
|
1155
1187
|
function i() {
|
|
1156
1188
|
return e.stackColumnsAt || "tablet";
|
|
1157
1189
|
}
|
|
1158
|
-
function r(
|
|
1159
|
-
return
|
|
1190
|
+
function r(b) {
|
|
1191
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1160
1192
|
}
|
|
1161
|
-
function
|
|
1193
|
+
function a(b) {
|
|
1162
1194
|
var S;
|
|
1163
|
-
return ((S = n()[
|
|
1195
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1164
1196
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const S =
|
|
1197
|
+
function o(b) {
|
|
1198
|
+
const S = a(b), T = t() * (n().length - 1) * (S / 100);
|
|
1167
1199
|
return `calc(${S}% - ${T}px)`;
|
|
1168
1200
|
}
|
|
1169
1201
|
function l({
|
|
1170
|
-
stackedStyle:
|
|
1202
|
+
stackedStyle: b,
|
|
1171
1203
|
desktopStyle: S
|
|
1172
1204
|
}) {
|
|
1173
|
-
return i() === "tablet" ?
|
|
1205
|
+
return i() === "tablet" ? b : S;
|
|
1174
1206
|
}
|
|
1175
1207
|
function c({
|
|
1176
|
-
stackedStyle:
|
|
1208
|
+
stackedStyle: b,
|
|
1177
1209
|
desktopStyle: S
|
|
1178
1210
|
}) {
|
|
1179
|
-
return i() === "never" ? S :
|
|
1211
|
+
return i() === "never" ? S : b;
|
|
1180
1212
|
}
|
|
1181
1213
|
function d() {
|
|
1182
1214
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1190,8 +1222,8 @@ function dn(e) {
|
|
|
1190
1222
|
})
|
|
1191
1223
|
};
|
|
1192
1224
|
}
|
|
1193
|
-
function b
|
|
1194
|
-
const S =
|
|
1225
|
+
function g(b) {
|
|
1226
|
+
const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, U = "100%", H = 0;
|
|
1195
1227
|
return {
|
|
1196
1228
|
...{
|
|
1197
1229
|
display: "flex",
|
|
@@ -1218,14 +1250,14 @@ function dn(e) {
|
|
|
1218
1250
|
})
|
|
1219
1251
|
};
|
|
1220
1252
|
}
|
|
1221
|
-
function u(
|
|
1253
|
+
function u(b) {
|
|
1222
1254
|
var T, E;
|
|
1223
1255
|
return nt(
|
|
1224
1256
|
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1225
|
-
)[
|
|
1257
|
+
)[b].max;
|
|
1226
1258
|
}
|
|
1227
1259
|
function x() {
|
|
1228
|
-
const
|
|
1260
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1229
1261
|
return `
|
|
1230
1262
|
@media (max-width: ${u("medium")}px) {
|
|
1231
1263
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1233,7 +1265,7 @@ function dn(e) {
|
|
|
1233
1265
|
align-items: stretch;
|
|
1234
1266
|
}
|
|
1235
1267
|
|
|
1236
|
-
${
|
|
1268
|
+
${b} {
|
|
1237
1269
|
width: var(--column-width-tablet) !important;
|
|
1238
1270
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1239
1271
|
}
|
|
@@ -1245,20 +1277,20 @@ function dn(e) {
|
|
|
1245
1277
|
align-items: stretch;
|
|
1246
1278
|
}
|
|
1247
1279
|
|
|
1248
|
-
${
|
|
1280
|
+
${b} {
|
|
1249
1281
|
width: var(--column-width-mobile) !important;
|
|
1250
1282
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1251
1283
|
}
|
|
1252
1284
|
},
|
|
1253
1285
|
`;
|
|
1254
1286
|
}
|
|
1255
|
-
function f(
|
|
1287
|
+
function f(b, S) {
|
|
1256
1288
|
return {
|
|
1257
|
-
...
|
|
1258
|
-
href:
|
|
1289
|
+
...b.link ? {
|
|
1290
|
+
href: b.link
|
|
1259
1291
|
} : {},
|
|
1260
1292
|
[K()]: "builder-column",
|
|
1261
|
-
style: Xe(
|
|
1293
|
+
style: Xe(g(S))
|
|
1262
1294
|
};
|
|
1263
1295
|
}
|
|
1264
1296
|
return /* @__PURE__ */ D(w, { children: [
|
|
@@ -1281,12 +1313,12 @@ function dn(e) {
|
|
|
1281
1313
|
nonce: e.builderContext.nonce
|
|
1282
1314
|
}
|
|
1283
1315
|
),
|
|
1284
|
-
(y = e.columns) == null ? void 0 : y.map((
|
|
1285
|
-
|
|
1316
|
+
(y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
|
|
1317
|
+
xe,
|
|
1286
1318
|
{
|
|
1287
|
-
TagName: r(
|
|
1319
|
+
TagName: r(b),
|
|
1288
1320
|
actionAttributes: {},
|
|
1289
|
-
attributes: f(
|
|
1321
|
+
attributes: f(b, S),
|
|
1290
1322
|
children: /* @__PURE__ */ s(
|
|
1291
1323
|
M,
|
|
1292
1324
|
{
|
|
@@ -1295,7 +1327,7 @@ function dn(e) {
|
|
|
1295
1327
|
context: e.builderContext,
|
|
1296
1328
|
registeredComponents: e.builderComponents,
|
|
1297
1329
|
linkComponent: e.builderLinkComponent,
|
|
1298
|
-
blocks:
|
|
1330
|
+
blocks: b.blocks,
|
|
1299
1331
|
styleProp: {
|
|
1300
1332
|
flexGrow: "1"
|
|
1301
1333
|
}
|
|
@@ -1326,8 +1358,8 @@ function hn(e, t) {
|
|
|
1326
1358
|
return Be(e);
|
|
1327
1359
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1328
1360
|
if (n) {
|
|
1329
|
-
const i = e.split(n[0]), r = n[3],
|
|
1330
|
-
return Be(`${i[0]}_${
|
|
1361
|
+
const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1362
|
+
return Be(`${i[0]}_${a}${r}`);
|
|
1331
1363
|
}
|
|
1332
1364
|
return null;
|
|
1333
1365
|
}
|
|
@@ -1342,22 +1374,22 @@ function me(e) {
|
|
|
1342
1374
|
}
|
|
1343
1375
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1344
1376
|
}
|
|
1345
|
-
function
|
|
1346
|
-
var r,
|
|
1377
|
+
function bn(e) {
|
|
1378
|
+
var r, a, o, l, c, d;
|
|
1347
1379
|
function t() {
|
|
1348
1380
|
var u;
|
|
1349
|
-
const
|
|
1350
|
-
if (!
|
|
1381
|
+
const g = e.image || e.src;
|
|
1382
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1351
1383
|
// images, otherwise you can supply this prop manually
|
|
1352
|
-
!(typeof
|
|
1384
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1353
1385
|
return e.srcset;
|
|
1354
1386
|
if (!e.noWebp) {
|
|
1355
1387
|
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1356
1388
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1357
|
-
return console.debug("Removed given srcset"), me(
|
|
1389
|
+
return console.debug("Removed given srcset"), me(g);
|
|
1358
1390
|
} else if (e.image && !e.srcset)
|
|
1359
|
-
return me(
|
|
1360
|
-
return me(
|
|
1391
|
+
return me(g);
|
|
1392
|
+
return me(g);
|
|
1361
1393
|
}
|
|
1362
1394
|
}
|
|
1363
1395
|
function n() {
|
|
@@ -1416,7 +1448,7 @@ function gn(e) {
|
|
|
1416
1448
|
}
|
|
1417
1449
|
)
|
|
1418
1450
|
] }),
|
|
1419
|
-
e.aspectRatio && !((
|
|
1451
|
+
e.aspectRatio && !((a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1420
1452
|
"div",
|
|
1421
1453
|
{
|
|
1422
1454
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1425,12 +1457,12 @@ function gn(e) {
|
|
|
1425
1457
|
}
|
|
1426
1458
|
}
|
|
1427
1459
|
) : null,
|
|
1428
|
-
(l = (
|
|
1460
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1429
1461
|
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1430
1462
|
] })
|
|
1431
1463
|
] });
|
|
1432
1464
|
}
|
|
1433
|
-
function
|
|
1465
|
+
function gn(e) {
|
|
1434
1466
|
return /* @__PURE__ */ s(
|
|
1435
1467
|
"section",
|
|
1436
1468
|
{
|
|
@@ -1455,21 +1487,21 @@ function yn(e, t, n, i) {
|
|
|
1455
1487
|
function r(d) {
|
|
1456
1488
|
return typeof d == "string";
|
|
1457
1489
|
}
|
|
1458
|
-
function
|
|
1490
|
+
function a(d) {
|
|
1459
1491
|
return typeof d == "number";
|
|
1460
1492
|
}
|
|
1461
|
-
function
|
|
1493
|
+
function o(d, h) {
|
|
1462
1494
|
return (() => {
|
|
1463
1495
|
const u = h.property, x = h.operator;
|
|
1464
1496
|
let f = h.value;
|
|
1465
1497
|
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1466
1498
|
return !0;
|
|
1467
1499
|
if (Array.isArray(f))
|
|
1468
|
-
return x === "isNot" ? f.every((y) =>
|
|
1500
|
+
return x === "isNot" ? f.every((y) => o(d, {
|
|
1469
1501
|
property: u,
|
|
1470
1502
|
operator: x,
|
|
1471
1503
|
value: y
|
|
1472
|
-
})) : !!f.find((y) =>
|
|
1504
|
+
})) : !!f.find((y) => o(d, {
|
|
1473
1505
|
property: u,
|
|
1474
1506
|
operator: x,
|
|
1475
1507
|
value: y
|
|
@@ -1489,13 +1521,13 @@ function yn(e, t, n, i) {
|
|
|
1489
1521
|
case "endsWith":
|
|
1490
1522
|
return r(m) && m.endsWith(String(f));
|
|
1491
1523
|
case "greaterThan":
|
|
1492
|
-
return
|
|
1524
|
+
return a(m) && a(f) && m > f;
|
|
1493
1525
|
case "lessThan":
|
|
1494
|
-
return
|
|
1526
|
+
return a(m) && a(f) && m < f;
|
|
1495
1527
|
case "greaterThanOrEqualTo":
|
|
1496
|
-
return
|
|
1528
|
+
return a(m) && a(f) && m >= f;
|
|
1497
1529
|
case "lessThanOrEqualTo":
|
|
1498
|
-
return
|
|
1530
|
+
return a(m) && a(f) && m <= f;
|
|
1499
1531
|
default:
|
|
1500
1532
|
return !1;
|
|
1501
1533
|
}
|
|
@@ -1506,7 +1538,7 @@ function yn(e, t, n, i) {
|
|
|
1506
1538
|
startDate: n,
|
|
1507
1539
|
endDate: i
|
|
1508
1540
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1509
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) =>
|
|
1541
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => o(e, d));
|
|
1510
1542
|
}
|
|
1511
1543
|
const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1512
1544
|
if (!navigator.cookieEnabled) {
|
|
@@ -1669,7 +1701,7 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1669
1701
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1670
1702
|
}
|
|
1671
1703
|
}
|
|
1672
|
-
}`, ne = "default", Sn = "filterWithCustomTargeting", it = "builderIoPersonalization", rt = "updateVisibilityStylesScript",
|
|
1704
|
+
}`, ne = "default", Sn = "filterWithCustomTargeting", it = "builderIoPersonalization", rt = "updateVisibilityStylesScript", at = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1673
1705
|
function kn(e, t) {
|
|
1674
1706
|
return !(e && e.length > 0) || !t ? !1 : ie.includes(O) ? !0 : !J();
|
|
1675
1707
|
}
|
|
@@ -1680,14 +1712,14 @@ function Cn({
|
|
|
1680
1712
|
filteredVariants: i,
|
|
1681
1713
|
fallbackBlocks: r
|
|
1682
1714
|
}) {
|
|
1683
|
-
var
|
|
1684
|
-
const
|
|
1715
|
+
var o;
|
|
1716
|
+
const a = {
|
|
1685
1717
|
blocks: r != null ? r : [],
|
|
1686
1718
|
path: "this.children",
|
|
1687
1719
|
index: ne
|
|
1688
1720
|
};
|
|
1689
1721
|
if (n && _()) {
|
|
1690
|
-
if (typeof t == "number" && t < ((
|
|
1722
|
+
if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
|
|
1691
1723
|
const l = e == null ? void 0 : e[t];
|
|
1692
1724
|
if (l)
|
|
1693
1725
|
return {
|
|
@@ -1696,7 +1728,7 @@ function Cn({
|
|
|
1696
1728
|
index: t
|
|
1697
1729
|
};
|
|
1698
1730
|
}
|
|
1699
|
-
return
|
|
1731
|
+
return a;
|
|
1700
1732
|
}
|
|
1701
1733
|
if (J()) {
|
|
1702
1734
|
const l = i == null ? void 0 : i[0];
|
|
@@ -1710,13 +1742,13 @@ function Cn({
|
|
|
1710
1742
|
};
|
|
1711
1743
|
}
|
|
1712
1744
|
}
|
|
1713
|
-
return
|
|
1745
|
+
return a;
|
|
1714
1746
|
}
|
|
1715
1747
|
const Tn = () => `
|
|
1716
1748
|
window.${Sn} = ${vn}
|
|
1717
1749
|
window.${it} = ${pn}
|
|
1718
1750
|
window.${rt} = ${xn}
|
|
1719
|
-
`,
|
|
1751
|
+
`, ot = O === "react", In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, fe = {
|
|
1720
1752
|
"@type": "@builder.io/sdk:Element",
|
|
1721
1753
|
layerName: "Accordion item title",
|
|
1722
1754
|
responsiveStyles: {
|
|
@@ -1842,7 +1874,7 @@ const Tn = () => `
|
|
|
1842
1874
|
}
|
|
1843
1875
|
}, Ne = (e) => e.toString();
|
|
1844
1876
|
function Rn(e) {
|
|
1845
|
-
var
|
|
1877
|
+
var g;
|
|
1846
1878
|
const [t, n] = k(() => []);
|
|
1847
1879
|
function i() {
|
|
1848
1880
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1859,7 +1891,7 @@ function Rn(e) {
|
|
|
1859
1891
|
}
|
|
1860
1892
|
};
|
|
1861
1893
|
}
|
|
1862
|
-
function
|
|
1894
|
+
function a() {
|
|
1863
1895
|
const x = {
|
|
1864
1896
|
...{
|
|
1865
1897
|
display: "flex",
|
|
@@ -1872,7 +1904,7 @@ function Rn(e) {
|
|
|
1872
1904
|
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1873
1905
|
);
|
|
1874
1906
|
}
|
|
1875
|
-
function
|
|
1907
|
+
function o(u) {
|
|
1876
1908
|
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1877
1909
|
}
|
|
1878
1910
|
function l(u) {
|
|
@@ -1886,18 +1918,18 @@ function Rn(e) {
|
|
|
1886
1918
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1887
1919
|
);
|
|
1888
1920
|
if (u = f, y) {
|
|
1889
|
-
let
|
|
1921
|
+
let b = y.getBoundingClientRect();
|
|
1890
1922
|
for (; y = y && y.nextElementSibling; )
|
|
1891
1923
|
if (y) {
|
|
1892
1924
|
if (y.classList.contains("builder-accordion-detail"))
|
|
1893
1925
|
continue;
|
|
1894
1926
|
const S = y.getBoundingClientRect();
|
|
1895
|
-
if (S.left >
|
|
1927
|
+
if (S.left > b.left) {
|
|
1896
1928
|
const T = parseInt(
|
|
1897
1929
|
y.getAttribute("data-index") || "",
|
|
1898
1930
|
10
|
|
1899
1931
|
);
|
|
1900
|
-
isNaN(T) || (
|
|
1932
|
+
isNaN(T) || (b = S, u = T);
|
|
1901
1933
|
} else
|
|
1902
1934
|
break;
|
|
1903
1935
|
}
|
|
@@ -1919,13 +1951,13 @@ function Rn(e) {
|
|
|
1919
1951
|
function h(u) {
|
|
1920
1952
|
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1921
1953
|
}
|
|
1922
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (
|
|
1954
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(gt.Fragment, { children: [
|
|
1923
1955
|
/* @__PURE__ */ s(
|
|
1924
1956
|
"div",
|
|
1925
1957
|
{
|
|
1926
|
-
className:
|
|
1958
|
+
className: o(x),
|
|
1927
1959
|
style: {
|
|
1928
|
-
...
|
|
1960
|
+
...a(),
|
|
1929
1961
|
...e.grid && {
|
|
1930
1962
|
width: e.gridRowWidth,
|
|
1931
1963
|
order: c() !== null ? Ne(x) : Ne(x + 1)
|
|
@@ -2181,7 +2213,7 @@ const Pn = {
|
|
|
2181
2213
|
});
|
|
2182
2214
|
}
|
|
2183
2215
|
const n = e.get("columns");
|
|
2184
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2216
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2185
2217
|
}
|
|
2186
2218
|
}, {
|
|
2187
2219
|
name: "space",
|
|
@@ -2215,7 +2247,7 @@ const Pn = {
|
|
|
2215
2247
|
hidden: !0,
|
|
2216
2248
|
canHaveChildren: !0,
|
|
2217
2249
|
noWrap: !0
|
|
2218
|
-
},
|
|
2250
|
+
}, Ce = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Bn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Nn = {
|
|
2219
2251
|
name: "Image",
|
|
2220
2252
|
static: !0,
|
|
2221
2253
|
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",
|
|
@@ -2230,34 +2262,34 @@ const Pn = {
|
|
|
2230
2262
|
name: "image",
|
|
2231
2263
|
type: "file",
|
|
2232
2264
|
bubble: !0,
|
|
2233
|
-
allowedFileTypes:
|
|
2265
|
+
allowedFileTypes: Ce,
|
|
2234
2266
|
required: !0,
|
|
2235
2267
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2236
2268
|
onChange: (e) => {
|
|
2237
2269
|
e.delete("srcset"), e.delete("noWebp");
|
|
2238
|
-
function n(
|
|
2270
|
+
function n(o, l = 6e4) {
|
|
2239
2271
|
return new Promise((c, d) => {
|
|
2240
2272
|
const h = document.createElement("img");
|
|
2241
|
-
let
|
|
2273
|
+
let g = !1;
|
|
2242
2274
|
h.onload = () => {
|
|
2243
|
-
|
|
2275
|
+
g = !0, c(h);
|
|
2244
2276
|
}, h.addEventListener("error", (u) => {
|
|
2245
2277
|
console.warn("Image load failed", u.error), d(u.error);
|
|
2246
|
-
}), h.src =
|
|
2247
|
-
|
|
2278
|
+
}), h.src = o, setTimeout(() => {
|
|
2279
|
+
g || d(new Error("Image load timed out"));
|
|
2248
2280
|
}, l);
|
|
2249
2281
|
});
|
|
2250
2282
|
}
|
|
2251
|
-
function i(
|
|
2252
|
-
return Math.round(
|
|
2283
|
+
function i(o) {
|
|
2284
|
+
return Math.round(o * 1e3) / 1e3;
|
|
2253
2285
|
}
|
|
2254
|
-
const r = e.get("image"),
|
|
2255
|
-
if (fetch(r).then((
|
|
2256
|
-
|
|
2257
|
-
}), r && (!
|
|
2258
|
-
return n(r).then((
|
|
2286
|
+
const r = e.get("image"), a = e.get("aspectRatio");
|
|
2287
|
+
if (fetch(r).then((o) => o.blob()).then((o) => {
|
|
2288
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
2289
|
+
}), r && (!a || a === 0.7041))
|
|
2290
|
+
return n(r).then((o) => {
|
|
2259
2291
|
const l = e.get("aspectRatio");
|
|
2260
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2292
|
+
e.get("image") === r && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
2261
2293
|
});
|
|
2262
2294
|
}
|
|
2263
2295
|
}, {
|
|
@@ -2377,8 +2409,8 @@ function G(e) {
|
|
|
2377
2409
|
function $n(e) {
|
|
2378
2410
|
var S, T, E, U, H, q, p, v, V, A, W, R, P;
|
|
2379
2411
|
const t = z(null), [n, i] = k(
|
|
2380
|
-
() =>
|
|
2381
|
-
), [r,
|
|
2412
|
+
() => Ie.getUserAttributes()
|
|
2413
|
+
), [r, a] = k(
|
|
2382
2414
|
() => {
|
|
2383
2415
|
var I, N, C;
|
|
2384
2416
|
return In(
|
|
@@ -2387,7 +2419,7 @@ function $n(e) {
|
|
|
2387
2419
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
2388
2420
|
);
|
|
2389
2421
|
}
|
|
2390
|
-
), [
|
|
2422
|
+
), [o, l] = k(
|
|
2391
2423
|
() => {
|
|
2392
2424
|
var I, N, C;
|
|
2393
2425
|
return wn(
|
|
@@ -2396,7 +2428,7 @@ function $n(e) {
|
|
|
2396
2428
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
2397
2429
|
);
|
|
2398
2430
|
}
|
|
2399
|
-
), [c, d] = k(() => []), [h,
|
|
2431
|
+
), [c, d] = k(() => []), [h, g] = k(
|
|
2400
2432
|
() => {
|
|
2401
2433
|
var I;
|
|
2402
2434
|
return kn(
|
|
@@ -2437,7 +2469,7 @@ function $n(e) {
|
|
|
2437
2469
|
previewingIndex: e.previewingIndex
|
|
2438
2470
|
});
|
|
2439
2471
|
}
|
|
2440
|
-
function
|
|
2472
|
+
function b() {
|
|
2441
2473
|
return (e.variants || []).map(
|
|
2442
2474
|
(I, N) => {
|
|
2443
2475
|
var C;
|
|
@@ -2448,7 +2480,7 @@ function $n(e) {
|
|
|
2448
2480
|
return B(() => {
|
|
2449
2481
|
var N;
|
|
2450
2482
|
x(!0);
|
|
2451
|
-
const I =
|
|
2483
|
+
const I = Ie.subscribeOnUserAttributesChange(
|
|
2452
2484
|
(C) => {
|
|
2453
2485
|
i(C);
|
|
2454
2486
|
},
|
|
@@ -2505,7 +2537,7 @@ function $n(e) {
|
|
|
2505
2537
|
te,
|
|
2506
2538
|
{
|
|
2507
2539
|
nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
|
|
2508
|
-
styles:
|
|
2540
|
+
styles: b(),
|
|
2509
2541
|
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2510
2542
|
}
|
|
2511
2543
|
),
|
|
@@ -2513,12 +2545,12 @@ function $n(e) {
|
|
|
2513
2545
|
G,
|
|
2514
2546
|
{
|
|
2515
2547
|
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2516
|
-
scriptStr:
|
|
2548
|
+
scriptStr: o,
|
|
2517
2549
|
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2518
2550
|
}
|
|
2519
2551
|
),
|
|
2520
2552
|
(v = e.variants) == null ? void 0 : v.map((I, N) => {
|
|
2521
|
-
var C, $, F, L, j,
|
|
2553
|
+
var C, $, F, L, j, Te;
|
|
2522
2554
|
return /* @__PURE__ */ s(
|
|
2523
2555
|
M,
|
|
2524
2556
|
{
|
|
@@ -2542,7 +2574,7 @@ function $n(e) {
|
|
|
2542
2574
|
}
|
|
2543
2575
|
)
|
|
2544
2576
|
},
|
|
2545
|
-
`${(
|
|
2577
|
+
`${(Te = e.builderBlock) == null ? void 0 : Te.id}-${N}`
|
|
2546
2578
|
);
|
|
2547
2579
|
})
|
|
2548
2580
|
] }) : null,
|
|
@@ -2691,7 +2723,7 @@ const Ln = {
|
|
|
2691
2723
|
builderComponents: !0,
|
|
2692
2724
|
builderLinkComponent: !0
|
|
2693
2725
|
}
|
|
2694
|
-
},
|
|
2726
|
+
}, be = {
|
|
2695
2727
|
"@type": "@builder.io/sdk:Element",
|
|
2696
2728
|
responsiveStyles: {
|
|
2697
2729
|
large: {
|
|
@@ -2713,7 +2745,7 @@ const Ln = {
|
|
|
2713
2745
|
text: "New tab"
|
|
2714
2746
|
}
|
|
2715
2747
|
}
|
|
2716
|
-
},
|
|
2748
|
+
}, ge = {
|
|
2717
2749
|
"@type": "@builder.io/sdk:Element",
|
|
2718
2750
|
responsiveStyles: {
|
|
2719
2751
|
large: {
|
|
@@ -2739,16 +2771,16 @@ const Ln = {
|
|
|
2739
2771
|
name: "label",
|
|
2740
2772
|
type: "uiBlocks",
|
|
2741
2773
|
hideFromUI: !0,
|
|
2742
|
-
defaultValue: [
|
|
2774
|
+
defaultValue: [be]
|
|
2743
2775
|
}, {
|
|
2744
2776
|
name: "content",
|
|
2745
2777
|
type: "uiBlocks",
|
|
2746
2778
|
hideFromUI: !0,
|
|
2747
|
-
defaultValue: [
|
|
2779
|
+
defaultValue: [ge]
|
|
2748
2780
|
}],
|
|
2749
2781
|
defaultValue: [{
|
|
2750
2782
|
label: [{
|
|
2751
|
-
...
|
|
2783
|
+
...be,
|
|
2752
2784
|
component: {
|
|
2753
2785
|
name: "Text",
|
|
2754
2786
|
options: {
|
|
@@ -2757,7 +2789,7 @@ const Ln = {
|
|
|
2757
2789
|
}
|
|
2758
2790
|
}],
|
|
2759
2791
|
content: [{
|
|
2760
|
-
...
|
|
2792
|
+
...ge,
|
|
2761
2793
|
component: {
|
|
2762
2794
|
name: "Text",
|
|
2763
2795
|
options: {
|
|
@@ -2767,7 +2799,7 @@ const Ln = {
|
|
|
2767
2799
|
}]
|
|
2768
2800
|
}, {
|
|
2769
2801
|
label: [{
|
|
2770
|
-
...
|
|
2802
|
+
...be,
|
|
2771
2803
|
component: {
|
|
2772
2804
|
name: "Text",
|
|
2773
2805
|
options: {
|
|
@@ -2776,7 +2808,7 @@ const Ln = {
|
|
|
2776
2808
|
}
|
|
2777
2809
|
}],
|
|
2778
2810
|
content: [{
|
|
2779
|
-
...
|
|
2811
|
+
...ge,
|
|
2780
2812
|
component: {
|
|
2781
2813
|
name: "Text",
|
|
2782
2814
|
options: {
|
|
@@ -2834,7 +2866,7 @@ const Ln = {
|
|
|
2834
2866
|
}
|
|
2835
2867
|
};
|
|
2836
2868
|
function Un(e) {
|
|
2837
|
-
var
|
|
2869
|
+
var o;
|
|
2838
2870
|
const [t, n] = k(
|
|
2839
2871
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2840
2872
|
);
|
|
@@ -2844,7 +2876,7 @@ function Un(e) {
|
|
|
2844
2876
|
function r(l) {
|
|
2845
2877
|
return l === t ? e.activeTabStyle : {};
|
|
2846
2878
|
}
|
|
2847
|
-
function
|
|
2879
|
+
function a(l) {
|
|
2848
2880
|
l === t && e.collapsible ? n(-1) : n(l);
|
|
2849
2881
|
}
|
|
2850
2882
|
return /* @__PURE__ */ D("div", { children: [
|
|
@@ -2858,12 +2890,12 @@ function Un(e) {
|
|
|
2858
2890
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2859
2891
|
overflow: "auto"
|
|
2860
2892
|
},
|
|
2861
|
-
children: (
|
|
2893
|
+
children: (o = e.tabs) == null ? void 0 : o.map((l, c) => /* @__PURE__ */ s(
|
|
2862
2894
|
"span",
|
|
2863
2895
|
{
|
|
2864
2896
|
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2865
2897
|
style: r(c),
|
|
2866
|
-
onClick: (d) =>
|
|
2898
|
+
onClick: (d) => a(c),
|
|
2867
2899
|
children: /* @__PURE__ */ s(
|
|
2868
2900
|
M,
|
|
2869
2901
|
{
|
|
@@ -2949,8 +2981,8 @@ const qn = {
|
|
|
2949
2981
|
}]
|
|
2950
2982
|
};
|
|
2951
2983
|
function jn(e) {
|
|
2952
|
-
const t = z(null), [n, i] = k(() => []), [r,
|
|
2953
|
-
function
|
|
2984
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []);
|
|
2985
|
+
function o() {
|
|
2954
2986
|
var c;
|
|
2955
2987
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2956
2988
|
return;
|
|
@@ -2961,8 +2993,8 @@ function jn(e) {
|
|
|
2961
2993
|
if (n.includes(h.src))
|
|
2962
2994
|
continue;
|
|
2963
2995
|
n.push(h.src);
|
|
2964
|
-
const
|
|
2965
|
-
|
|
2996
|
+
const g = document.createElement("script");
|
|
2997
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2966
2998
|
} else if (!h.type || [
|
|
2967
2999
|
"text/javascript",
|
|
2968
3000
|
"application/javascript",
|
|
@@ -2972,19 +3004,19 @@ function jn(e) {
|
|
|
2972
3004
|
continue;
|
|
2973
3005
|
try {
|
|
2974
3006
|
r.push(h.innerText), new Function(h.innerText)();
|
|
2975
|
-
} catch (
|
|
3007
|
+
} catch (g) {
|
|
2976
3008
|
Q.warn(
|
|
2977
3009
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2978
|
-
|
|
3010
|
+
g
|
|
2979
3011
|
);
|
|
2980
3012
|
}
|
|
2981
3013
|
}
|
|
2982
3014
|
}
|
|
2983
3015
|
}
|
|
2984
3016
|
return B(() => {
|
|
2985
|
-
|
|
3017
|
+
o();
|
|
2986
3018
|
}, []), B(() => {
|
|
2987
|
-
_() &&
|
|
3019
|
+
_() && o();
|
|
2988
3020
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2989
3021
|
"div",
|
|
2990
3022
|
{
|
|
@@ -3011,28 +3043,28 @@ const zn = {
|
|
|
3011
3043
|
}]
|
|
3012
3044
|
}, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => Kn.includes(e.type);
|
|
3013
3045
|
function Gn(e) {
|
|
3014
|
-
const t = z(null), [n, i] = k(() => []), [r,
|
|
3046
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
|
|
3015
3047
|
function c() {
|
|
3016
3048
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3017
3049
|
return;
|
|
3018
3050
|
const d = t.current.getElementsByTagName("script");
|
|
3019
3051
|
for (let h = 0; h < d.length; h++) {
|
|
3020
|
-
const
|
|
3021
|
-
if (
|
|
3022
|
-
n.push(
|
|
3052
|
+
const g = d[h];
|
|
3053
|
+
if (g.src && !n.includes(g.src)) {
|
|
3054
|
+
n.push(g.src);
|
|
3023
3055
|
const u = document.createElement("script");
|
|
3024
|
-
u.async = !0, u.src =
|
|
3025
|
-
} else if (Jn(
|
|
3056
|
+
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
3057
|
+
} else if (Jn(g) && !r.includes(g.innerText))
|
|
3026
3058
|
try {
|
|
3027
|
-
r.push(
|
|
3059
|
+
r.push(g.innerText), new Function(g.innerText)();
|
|
3028
3060
|
} catch (u) {
|
|
3029
3061
|
Q.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
3030
3062
|
}
|
|
3031
3063
|
}
|
|
3032
3064
|
}
|
|
3033
3065
|
return B(() => {
|
|
3034
|
-
t.current && !
|
|
3035
|
-
}, [t.current,
|
|
3066
|
+
t.current && !o && (l(!0), c());
|
|
3067
|
+
}, [t.current, o]), /* @__PURE__ */ s(
|
|
3036
3068
|
"div",
|
|
3037
3069
|
{
|
|
3038
3070
|
className: "builder-embed",
|
|
@@ -3283,7 +3315,7 @@ const Qn = {
|
|
|
3283
3315
|
return Yn.includes(e) ? e : "production";
|
|
3284
3316
|
};
|
|
3285
3317
|
function Zn(e) {
|
|
3286
|
-
const t = z(null), [n, i] = k(() => "unsubmitted"), [r,
|
|
3318
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3287
3319
|
function c(u) {
|
|
3288
3320
|
var f, m;
|
|
3289
3321
|
const x = {
|
|
@@ -3298,7 +3330,7 @@ function Zn(e) {
|
|
|
3298
3330
|
function h(u) {
|
|
3299
3331
|
return JSON.stringify(u, null, 2);
|
|
3300
3332
|
}
|
|
3301
|
-
function
|
|
3333
|
+
function g(u) {
|
|
3302
3334
|
var f;
|
|
3303
3335
|
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3304
3336
|
if (e.sendSubmissionsTo === "zapier")
|
|
@@ -3310,7 +3342,7 @@ function Zn(e) {
|
|
|
3310
3342
|
}
|
|
3311
3343
|
u.preventDefault();
|
|
3312
3344
|
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3313
|
-
let
|
|
3345
|
+
let b;
|
|
3314
3346
|
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3315
3347
|
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3316
3348
|
).map((p) => {
|
|
@@ -3341,15 +3373,15 @@ function Zn(e) {
|
|
|
3341
3373
|
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3342
3374
|
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3343
3375
|
}), E !== "application/json")
|
|
3344
|
-
|
|
3376
|
+
b = S;
|
|
3345
3377
|
else {
|
|
3346
3378
|
const p = {};
|
|
3347
3379
|
Array.from(T).forEach(({ value: v, key: V }) => {
|
|
3348
3380
|
Ke(p, V, v);
|
|
3349
|
-
}),
|
|
3381
|
+
}), b = JSON.stringify(p);
|
|
3350
3382
|
}
|
|
3351
3383
|
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3352
|
-
const U = new CustomEvent("presubmit", { detail: { body:
|
|
3384
|
+
const U = new CustomEvent("presubmit", { detail: { body: b } });
|
|
3353
3385
|
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3354
3386
|
return;
|
|
3355
3387
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
@@ -3360,7 +3392,7 @@ function Zn(e) {
|
|
|
3360
3392
|
const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3361
3393
|
e.sendSubmissionsToEmail || ""
|
|
3362
3394
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3363
|
-
Le(q), fetch(q, { body:
|
|
3395
|
+
Le(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
|
|
3364
3396
|
async (p) => {
|
|
3365
3397
|
var A, W;
|
|
3366
3398
|
let v;
|
|
@@ -3371,12 +3403,12 @@ function Zn(e) {
|
|
|
3371
3403
|
});
|
|
3372
3404
|
if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3373
3405
|
return;
|
|
3374
|
-
|
|
3406
|
+
a(v), i("error");
|
|
3375
3407
|
let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3376
3408
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3377
3409
|
return;
|
|
3378
3410
|
}
|
|
3379
|
-
if (
|
|
3411
|
+
if (a(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3380
3412
|
const R = new CustomEvent("submit:success", {
|
|
3381
3413
|
detail: { res: p, body: v }
|
|
3382
3414
|
});
|
|
@@ -3399,7 +3431,7 @@ function Zn(e) {
|
|
|
3399
3431
|
const v = new CustomEvent("submit:error", {
|
|
3400
3432
|
detail: { error: p }
|
|
3401
3433
|
});
|
|
3402
|
-
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (
|
|
3434
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
|
|
3403
3435
|
}
|
|
3404
3436
|
);
|
|
3405
3437
|
}
|
|
@@ -3416,7 +3448,7 @@ function Zn(e) {
|
|
|
3416
3448
|
action: !e.sendWithJs && e.action,
|
|
3417
3449
|
method: e.method,
|
|
3418
3450
|
name: e.name,
|
|
3419
|
-
onSubmit: (u) =>
|
|
3451
|
+
onSubmit: (u) => g(u),
|
|
3420
3452
|
...e.attributes,
|
|
3421
3453
|
children: [
|
|
3422
3454
|
e.children,
|
|
@@ -3602,10 +3634,10 @@ const ri = {
|
|
|
3602
3634
|
// TODO: defaultChildren
|
|
3603
3635
|
// canHaveChildren: true,
|
|
3604
3636
|
};
|
|
3605
|
-
function
|
|
3637
|
+
function ai(e) {
|
|
3606
3638
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3607
3639
|
}
|
|
3608
|
-
const
|
|
3640
|
+
const oi = {
|
|
3609
3641
|
name: "Form:TextArea",
|
|
3610
3642
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3611
3643
|
inputs: [{
|
|
@@ -3663,7 +3695,7 @@ const si = {
|
|
|
3663
3695
|
name: "image",
|
|
3664
3696
|
bubble: !0,
|
|
3665
3697
|
type: "file",
|
|
3666
|
-
allowedFileTypes:
|
|
3698
|
+
allowedFileTypes: Ce,
|
|
3667
3699
|
required: !0
|
|
3668
3700
|
}, {
|
|
3669
3701
|
name: "backgroundSize",
|
|
@@ -3745,7 +3777,7 @@ const ui = {
|
|
|
3745
3777
|
}, {
|
|
3746
3778
|
name: "posterImage",
|
|
3747
3779
|
type: "file",
|
|
3748
|
-
allowedFileTypes:
|
|
3780
|
+
allowedFileTypes: Ce,
|
|
3749
3781
|
helperText: "Image to show before the video plays"
|
|
3750
3782
|
}, {
|
|
3751
3783
|
name: "autoPlay",
|
|
@@ -3813,7 +3845,7 @@ const ui = {
|
|
|
3813
3845
|
}
|
|
3814
3846
|
};
|
|
3815
3847
|
function di(e) {
|
|
3816
|
-
var
|
|
3848
|
+
var o, l, c, d, h, g, u;
|
|
3817
3849
|
const t = z(null);
|
|
3818
3850
|
function n() {
|
|
3819
3851
|
return {
|
|
@@ -3839,7 +3871,7 @@ function di(e) {
|
|
|
3839
3871
|
...n()
|
|
3840
3872
|
};
|
|
3841
3873
|
}
|
|
3842
|
-
const [r,
|
|
3874
|
+
const [r, a] = k(() => {
|
|
3843
3875
|
});
|
|
3844
3876
|
return B(() => {
|
|
3845
3877
|
if (e.lazyLoad) {
|
|
@@ -3850,17 +3882,17 @@ function di(e) {
|
|
|
3850
3882
|
const y = m.target;
|
|
3851
3883
|
try {
|
|
3852
3884
|
Array.from(y.children).filter(
|
|
3853
|
-
(
|
|
3854
|
-
).forEach((
|
|
3855
|
-
const S =
|
|
3856
|
-
S && (
|
|
3885
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3886
|
+
).forEach((b) => {
|
|
3887
|
+
const S = b.dataset.src;
|
|
3888
|
+
S && (b.src = S);
|
|
3857
3889
|
}), y.load(), x.unobserve(y);
|
|
3858
|
-
} catch (
|
|
3859
|
-
console.error("Error loading lazy video:",
|
|
3890
|
+
} catch (b) {
|
|
3891
|
+
console.error("Error loading lazy video:", b);
|
|
3860
3892
|
}
|
|
3861
3893
|
});
|
|
3862
3894
|
});
|
|
3863
|
-
t.current && x.observe(t.current),
|
|
3895
|
+
t.current && x.observe(t.current), a(x);
|
|
3864
3896
|
}
|
|
3865
3897
|
}, []), B(() => () => {
|
|
3866
3898
|
r && r.disconnect();
|
|
@@ -3881,7 +3913,7 @@ function di(e) {
|
|
|
3881
3913
|
style: {
|
|
3882
3914
|
width: "100%",
|
|
3883
3915
|
height: "100%",
|
|
3884
|
-
...(
|
|
3916
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
3885
3917
|
objectFit: e.fit,
|
|
3886
3918
|
objectPosition: e.position,
|
|
3887
3919
|
// Hack to get object fit to work as expected and
|
|
@@ -3927,7 +3959,7 @@ function di(e) {
|
|
|
3927
3959
|
children: e.children
|
|
3928
3960
|
}
|
|
3929
3961
|
) : null,
|
|
3930
|
-
(u = (
|
|
3962
|
+
(u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3931
3963
|
"div",
|
|
3932
3964
|
{
|
|
3933
3965
|
style: {
|
|
@@ -3961,14 +3993,14 @@ const mi = () => [{
|
|
|
3961
3993
|
component: ti,
|
|
3962
3994
|
...ei
|
|
3963
3995
|
}, {
|
|
3964
|
-
component:
|
|
3996
|
+
component: ai,
|
|
3965
3997
|
...ri
|
|
3966
3998
|
}, {
|
|
3967
3999
|
component: ii,
|
|
3968
4000
|
...ni
|
|
3969
4001
|
}, {
|
|
3970
4002
|
component: li,
|
|
3971
|
-
...
|
|
4003
|
+
...oi
|
|
3972
4004
|
}, {
|
|
3973
4005
|
component: ci,
|
|
3974
4006
|
...si
|
|
@@ -3985,10 +4017,10 @@ const mi = () => [{
|
|
|
3985
4017
|
component: mn,
|
|
3986
4018
|
...An
|
|
3987
4019
|
}, {
|
|
3988
|
-
component:
|
|
4020
|
+
component: bn,
|
|
3989
4021
|
...Nn
|
|
3990
4022
|
}, {
|
|
3991
|
-
component:
|
|
4023
|
+
component: gn,
|
|
3992
4024
|
...Dn
|
|
3993
4025
|
}, {
|
|
3994
4026
|
component: Fn,
|
|
@@ -3999,7 +4031,7 @@ const mi = () => [{
|
|
|
3999
4031
|
}, {
|
|
4000
4032
|
component: Mn,
|
|
4001
4033
|
...Hn
|
|
4002
|
-
}, ...
|
|
4034
|
+
}, ...at.includes(O) ? [{
|
|
4003
4035
|
component: $n,
|
|
4004
4036
|
...Wn
|
|
4005
4037
|
}] : [], {
|
|
@@ -4105,10 +4137,10 @@ const mi = () => [{
|
|
|
4105
4137
|
...t,
|
|
4106
4138
|
testVariationId: t.id,
|
|
4107
4139
|
id: e == null ? void 0 : e.id
|
|
4108
|
-
})),
|
|
4140
|
+
})), bi = ({
|
|
4109
4141
|
canTrack: e,
|
|
4110
4142
|
content: t
|
|
4111
|
-
}) => !(!(re(t).length > 0) || !e || J()),
|
|
4143
|
+
}) => !(!(re(t).length > 0) || !e || J()), gi = (e) => e === "react" || e === "reactNative", yi = O === "angular", ct = gi(O), pi = () => `
|
|
4112
4144
|
window.${lt} = ${fi}
|
|
4113
4145
|
window.${st} = ${hi}
|
|
4114
4146
|
`, vi = (e, t) => `
|
|
@@ -4141,10 +4173,10 @@ const Si = (e, t, n = !0) => {
|
|
|
4141
4173
|
event: e,
|
|
4142
4174
|
target: t
|
|
4143
4175
|
}) => {
|
|
4144
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top,
|
|
4176
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = $e(i / n.width), o = $e(r / n.height);
|
|
4145
4177
|
return {
|
|
4146
|
-
x:
|
|
4147
|
-
y:
|
|
4178
|
+
x: a,
|
|
4179
|
+
y: o
|
|
4148
4180
|
};
|
|
4149
4181
|
}, Ci = (e) => {
|
|
4150
4182
|
const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -4163,8 +4195,8 @@ const Si = (e, t, n = !0) => {
|
|
|
4163
4195
|
}
|
|
4164
4196
|
};
|
|
4165
4197
|
}, Ti = ["svelte", "qwik", "vue"], Oe = () => Ti.includes(O) && (_() || le()), Ii = (e) => {
|
|
4166
|
-
var
|
|
4167
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4198
|
+
var a, o;
|
|
4199
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4168
4200
|
let r = "";
|
|
4169
4201
|
if (i && t && n && (r += `
|
|
4170
4202
|
@font-face {
|
|
@@ -4220,8 +4252,8 @@ function Ai(e) {
|
|
|
4220
4252
|
k(() => !1), k(
|
|
4221
4253
|
() => e.builderContextSignal
|
|
4222
4254
|
);
|
|
4223
|
-
const [n, i] = k(() => null), [r,
|
|
4224
|
-
function
|
|
4255
|
+
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4256
|
+
function o(v, V) {
|
|
4225
4257
|
var W, R;
|
|
4226
4258
|
const A = {
|
|
4227
4259
|
...e.builderContextSignal.rootState,
|
|
@@ -4264,7 +4296,7 @@ function Ai(e) {
|
|
|
4264
4296
|
const [d, h] = k(
|
|
4265
4297
|
() => e.contentWrapper || "div"
|
|
4266
4298
|
);
|
|
4267
|
-
function
|
|
4299
|
+
function g(v) {
|
|
4268
4300
|
return ht({
|
|
4269
4301
|
model: e.model,
|
|
4270
4302
|
trustedHosts: e.trustedHosts,
|
|
@@ -4285,17 +4317,17 @@ function Ai(e) {
|
|
|
4285
4317
|
l(V);
|
|
4286
4318
|
},
|
|
4287
4319
|
stateUpdate: (V, A) => {
|
|
4288
|
-
|
|
4320
|
+
o(V);
|
|
4289
4321
|
}
|
|
4290
4322
|
}
|
|
4291
4323
|
})(v);
|
|
4292
4324
|
}
|
|
4293
|
-
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y,
|
|
4325
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
|
|
4294
4326
|
function S(v) {
|
|
4295
4327
|
var V, A;
|
|
4296
4328
|
if (e.builderContextSignal.content) {
|
|
4297
4329
|
const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4298
|
-
|
|
4330
|
+
ye({
|
|
4299
4331
|
apiHost: e.apiHost,
|
|
4300
4332
|
type: "click",
|
|
4301
4333
|
canTrack: ee(e.canTrack),
|
|
@@ -4306,7 +4338,7 @@ function Ai(e) {
|
|
|
4306
4338
|
unique: !y
|
|
4307
4339
|
});
|
|
4308
4340
|
}
|
|
4309
|
-
y ||
|
|
4341
|
+
y || b(!0);
|
|
4310
4342
|
}
|
|
4311
4343
|
function T() {
|
|
4312
4344
|
var V, A, W;
|
|
@@ -4347,7 +4379,7 @@ function Ai(e) {
|
|
|
4347
4379
|
body: $.body
|
|
4348
4380
|
};
|
|
4349
4381
|
$.method === "GET" && delete F.body, fetch($.url, F).then((L) => L.json()).then((L) => {
|
|
4350
|
-
|
|
4382
|
+
o({
|
|
4351
4383
|
[R]: L
|
|
4352
4384
|
}), u[R] = !0;
|
|
4353
4385
|
}).catch((L) => {
|
|
@@ -4368,7 +4400,7 @@ function Ai(e) {
|
|
|
4368
4400
|
"builder:component:stateChange",
|
|
4369
4401
|
{
|
|
4370
4402
|
detail: {
|
|
4371
|
-
state:
|
|
4403
|
+
state: Se(e.builderContextSignal.rootState),
|
|
4372
4404
|
ref: {
|
|
4373
4405
|
name: e.model
|
|
4374
4406
|
}
|
|
@@ -4381,7 +4413,7 @@ function Ai(e) {
|
|
|
4381
4413
|
return U.current || (T(), E(), U.current = !0), B(() => {
|
|
4382
4414
|
var v, V, A, W, R;
|
|
4383
4415
|
if (J()) {
|
|
4384
|
-
_() && !e.isNestedRender && (window.addEventListener("message",
|
|
4416
|
+
_() && !e.isNestedRender && (window.addEventListener("message", g), dt({
|
|
4385
4417
|
...e.locale ? {
|
|
4386
4418
|
locale: e.locale
|
|
4387
4419
|
} : {},
|
|
@@ -4411,7 +4443,7 @@ function Ai(e) {
|
|
|
4411
4443
|
}), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4412
4444
|
if (P && N === I) {
|
|
4413
4445
|
const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
|
|
4414
|
-
|
|
4446
|
+
ye({
|
|
4415
4447
|
apiHost: e.apiHost,
|
|
4416
4448
|
type: "impression",
|
|
4417
4449
|
canTrack: !0,
|
|
@@ -4446,18 +4478,18 @@ function Ai(e) {
|
|
|
4446
4478
|
if (e.data) {
|
|
4447
4479
|
if (n === e.data)
|
|
4448
4480
|
return;
|
|
4449
|
-
|
|
4481
|
+
o(e.data), i(e.data);
|
|
4450
4482
|
}
|
|
4451
4483
|
}, [e.data]), B(() => {
|
|
4452
4484
|
if (e.locale) {
|
|
4453
4485
|
if (r === e.locale)
|
|
4454
4486
|
return;
|
|
4455
|
-
|
|
4487
|
+
o({
|
|
4456
4488
|
locale: e.locale
|
|
4457
|
-
}),
|
|
4489
|
+
}), a(e.locale);
|
|
4458
4490
|
}
|
|
4459
4491
|
}, [e.locale]), B(() => () => {
|
|
4460
|
-
J() && (window.removeEventListener("message",
|
|
4492
|
+
J() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4461
4493
|
"builder:component:stateChangeListenerActivated",
|
|
4462
4494
|
E
|
|
4463
4495
|
));
|
|
@@ -4507,9 +4539,9 @@ const Ni = ({
|
|
|
4507
4539
|
data: t,
|
|
4508
4540
|
locale: n
|
|
4509
4541
|
}) => {
|
|
4510
|
-
var
|
|
4511
|
-
const i = {}, r = ((
|
|
4512
|
-
return (l = (
|
|
4542
|
+
var a, o, l;
|
|
4543
|
+
const i = {}, r = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4544
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
|
|
4513
4545
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4514
4546
|
}), {
|
|
4515
4547
|
...i,
|
|
@@ -4531,7 +4563,7 @@ const Ni = ({
|
|
|
4531
4563
|
meta: e == null ? void 0 : e.meta
|
|
4532
4564
|
} : void 0;
|
|
4533
4565
|
function Fe(e) {
|
|
4534
|
-
var d, h,
|
|
4566
|
+
var d, h, g, u, x, f, m, y, b;
|
|
4535
4567
|
const [t, n] = k(
|
|
4536
4568
|
() => {
|
|
4537
4569
|
var S, T;
|
|
@@ -4549,7 +4581,7 @@ function Fe(e) {
|
|
|
4549
4581
|
rootState: S
|
|
4550
4582
|
}));
|
|
4551
4583
|
}
|
|
4552
|
-
const [r,
|
|
4584
|
+
const [r, a] = k(
|
|
4553
4585
|
() => [
|
|
4554
4586
|
...We(),
|
|
4555
4587
|
...e.customComponents || []
|
|
@@ -4563,7 +4595,7 @@ function Fe(e) {
|
|
|
4563
4595
|
}),
|
|
4564
4596
|
{}
|
|
4565
4597
|
)
|
|
4566
|
-
), [
|
|
4598
|
+
), [o, l] = k(() => ({
|
|
4567
4599
|
content: Wi({
|
|
4568
4600
|
content: e.content,
|
|
4569
4601
|
data: e.data
|
|
@@ -4599,14 +4631,14 @@ function Fe(e) {
|
|
|
4599
4631
|
e.apiKey || Q.error(
|
|
4600
4632
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4601
4633
|
);
|
|
4602
|
-
const S = (h = (d =
|
|
4634
|
+
const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4603
4635
|
S && Y({
|
|
4604
4636
|
code: S,
|
|
4605
4637
|
context: e.context || {},
|
|
4606
4638
|
localState: void 0,
|
|
4607
|
-
rootState:
|
|
4639
|
+
rootState: o.rootState,
|
|
4608
4640
|
rootSetState: (T) => {
|
|
4609
|
-
Object.assign(
|
|
4641
|
+
Object.assign(o.rootState, T);
|
|
4610
4642
|
},
|
|
4611
4643
|
isExpression: !1
|
|
4612
4644
|
}), c.current = !0;
|
|
@@ -4632,7 +4664,7 @@ function Fe(e) {
|
|
|
4632
4664
|
locale: e.locale,
|
|
4633
4665
|
enrich: e.enrich,
|
|
4634
4666
|
showContent: e.showContent,
|
|
4635
|
-
builderContextSignal:
|
|
4667
|
+
builderContextSignal: o,
|
|
4636
4668
|
contentWrapper: e.contentWrapper,
|
|
4637
4669
|
contentWrapperProps: e.contentWrapperProps,
|
|
4638
4670
|
trustedHosts: e.trustedHosts,
|
|
@@ -4652,16 +4684,16 @@ function Fe(e) {
|
|
|
4652
4684
|
{
|
|
4653
4685
|
nonce: e.nonce || "",
|
|
4654
4686
|
isNestedRender: e.isNestedRender,
|
|
4655
|
-
contentId: (
|
|
4656
|
-
cssCode: (x = (u =
|
|
4657
|
-
customFonts: (m = (f =
|
|
4687
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4688
|
+
cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4689
|
+
customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4658
4690
|
}
|
|
4659
4691
|
),
|
|
4660
4692
|
/* @__PURE__ */ s(
|
|
4661
4693
|
M,
|
|
4662
4694
|
{
|
|
4663
|
-
blocks: (
|
|
4664
|
-
context:
|
|
4695
|
+
blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4696
|
+
context: o,
|
|
4665
4697
|
registeredComponents: r,
|
|
4666
4698
|
linkComponent: e.linkComponent
|
|
4667
4699
|
}
|
|
@@ -4673,9 +4705,9 @@ function Fe(e) {
|
|
|
4673
4705
|
);
|
|
4674
4706
|
}
|
|
4675
4707
|
function $i(e) {
|
|
4676
|
-
var
|
|
4708
|
+
var o;
|
|
4677
4709
|
const [t, n] = k(
|
|
4678
|
-
() =>
|
|
4710
|
+
() => bi({
|
|
4679
4711
|
canTrack: ee(e.canTrack),
|
|
4680
4712
|
content: e.content
|
|
4681
4713
|
})
|
|
@@ -4693,12 +4725,12 @@ function $i(e) {
|
|
|
4693
4725
|
function r() {
|
|
4694
4726
|
return re(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4695
4727
|
}
|
|
4696
|
-
function
|
|
4728
|
+
function a() {
|
|
4697
4729
|
var l;
|
|
4698
4730
|
return t ? {
|
|
4699
4731
|
...e.content,
|
|
4700
4732
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4701
|
-
} :
|
|
4733
|
+
} : bt({
|
|
4702
4734
|
item: e.content,
|
|
4703
4735
|
canTrack: ee(e.canTrack)
|
|
4704
4736
|
});
|
|
@@ -4714,7 +4746,7 @@ function $i(e) {
|
|
|
4714
4746
|
nonce: e.nonce || ""
|
|
4715
4747
|
}
|
|
4716
4748
|
),
|
|
4717
|
-
|
|
4749
|
+
at.includes(O) ? /* @__PURE__ */ s(
|
|
4718
4750
|
G,
|
|
4719
4751
|
{
|
|
4720
4752
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -4740,7 +4772,7 @@ function $i(e) {
|
|
|
4740
4772
|
nonce: e.nonce || ""
|
|
4741
4773
|
}
|
|
4742
4774
|
),
|
|
4743
|
-
(
|
|
4775
|
+
(o = re(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4744
4776
|
Fe,
|
|
4745
4777
|
{
|
|
4746
4778
|
apiHost: e.apiHost,
|
|
@@ -4774,7 +4806,7 @@ function $i(e) {
|
|
|
4774
4806
|
apiHost: e.apiHost,
|
|
4775
4807
|
nonce: e.nonce,
|
|
4776
4808
|
isNestedRender: e.isNestedRender,
|
|
4777
|
-
content:
|
|
4809
|
+
content: a(),
|
|
4778
4810
|
showContent: !0,
|
|
4779
4811
|
model: e.model,
|
|
4780
4812
|
data: e.data,
|
|
@@ -4816,7 +4848,7 @@ const Di = async ({
|
|
|
4816
4848
|
});
|
|
4817
4849
|
};
|
|
4818
4850
|
function Oi(e) {
|
|
4819
|
-
var h,
|
|
4851
|
+
var h, g, u, x, f;
|
|
4820
4852
|
function t() {
|
|
4821
4853
|
return "div";
|
|
4822
4854
|
}
|
|
@@ -4835,7 +4867,7 @@ function Oi(e) {
|
|
|
4835
4867
|
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4836
4868
|
].filter(Boolean).join(" ");
|
|
4837
4869
|
}
|
|
4838
|
-
const [
|
|
4870
|
+
const [a, o] = k(() => {
|
|
4839
4871
|
var m;
|
|
4840
4872
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4841
4873
|
}), [l, c] = k(() => {
|
|
@@ -4844,12 +4876,12 @@ function Oi(e) {
|
|
|
4844
4876
|
});
|
|
4845
4877
|
function d() {
|
|
4846
4878
|
var m;
|
|
4847
|
-
|
|
4879
|
+
a && l === ((m = e.symbol) == null ? void 0 : m.entry) || Di({
|
|
4848
4880
|
symbol: e.symbol,
|
|
4849
4881
|
builderContextValue: e.builderContext
|
|
4850
4882
|
}).then((y) => {
|
|
4851
|
-
var
|
|
4852
|
-
y && (
|
|
4883
|
+
var b;
|
|
4884
|
+
y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
|
|
4853
4885
|
});
|
|
4854
4886
|
}
|
|
4855
4887
|
return B(() => {
|
|
@@ -4868,13 +4900,13 @@ function Oi(e) {
|
|
|
4868
4900
|
},
|
|
4869
4901
|
customComponents: i(),
|
|
4870
4902
|
data: {
|
|
4871
|
-
...(
|
|
4903
|
+
...(g = e.symbol) == null ? void 0 : g.data,
|
|
4872
4904
|
...e.builderContext.localState,
|
|
4873
|
-
...(u =
|
|
4905
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4874
4906
|
},
|
|
4875
4907
|
canTrack: e.builderContext.canTrack,
|
|
4876
4908
|
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4877
|
-
content:
|
|
4909
|
+
content: a,
|
|
4878
4910
|
linkComponent: e.builderLinkComponent,
|
|
4879
4911
|
blocksWrapper: t(),
|
|
4880
4912
|
contentWrapper: n()
|
|
@@ -4888,8 +4920,8 @@ export {
|
|
|
4888
4920
|
dn as Columns,
|
|
4889
4921
|
$i as Content,
|
|
4890
4922
|
mn as Fragment,
|
|
4891
|
-
|
|
4892
|
-
|
|
4923
|
+
bn as Image,
|
|
4924
|
+
gn as Section,
|
|
4893
4925
|
Oi as Symbol,
|
|
4894
4926
|
Mn as Text,
|
|
4895
4927
|
di as Video,
|