@builder.io/sdk-react 5.2.0 → 5.2.2
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 +62 -32
- package/lib/browser/blocks-exports.mjs +475 -438
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-1549d863.cjs → server-entry-44ac782f.cjs} +1 -1
- package/lib/browser/{server-entry-81390e9b.js → server-entry-aff2c5ee.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-90d607ca.js → accordion-3144e69e.js} +1 -1
- package/lib/edge/{accordion-ba377db1.cjs → accordion-8b1afed8.cjs} +1 -1
- package/lib/edge/{blocks-49400750.cjs → blocks-5b2c456f.cjs} +2 -2
- package/lib/edge/{blocks-482bd303.js → blocks-817f9485.js} +50 -47
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-1dd20b20.cjs → button-ac5a0022.cjs} +1 -1
- package/lib/edge/{button-76b09bda.js → button-cfe682cf.js} +2 -2
- package/lib/edge/{columns-89f6f5b7.js → columns-1de197aa.js} +3 -3
- package/lib/edge/{columns-ed698360.cjs → columns-e400b435.cjs} +1 -1
- package/lib/edge/{content-variants-98b86c90.cjs → content-variants-7113e9cf.cjs} +53 -23
- package/lib/edge/{content-variants-6e54d1d8.js → content-variants-c6ff157f.js} +335 -301
- package/lib/edge/{custom-code-3387f2ee.js → custom-code-143b5a84.js} +1 -1
- package/lib/edge/{custom-code-62511fce.cjs → custom-code-7616d00a.cjs} +1 -1
- package/lib/edge/{embed-e24c574a.js → embed-e6116e90.js} +1 -1
- package/lib/edge/{embed-54bfd2b5.cjs → embed-f68db9ab.cjs} +1 -1
- package/lib/edge/{form-5c77fb87.cjs → form-3b66981f.cjs} +1 -1
- package/lib/edge/{form-b3b23e9b.js → form-bbe1e30e.js} +3 -3
- package/lib/edge/{get-class-prop-name-3347a655.cjs → get-class-prop-name-13da1e6d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-2e01e11c.js → get-class-prop-name-541f7abc.js} +1 -1
- package/lib/edge/{img-d900f0a6.js → img-89400807.js} +2 -2
- package/lib/edge/{img-8430be52.cjs → img-e4fe298b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-6b9d2f0d.js → input-4b0e20ac.js} +1 -1
- package/lib/edge/{input-e522b3f8.cjs → input-9fd73d5f.cjs} +1 -1
- package/lib/edge/{personalization-container-9469f576.cjs → personalization-container-adbe238a.cjs} +1 -1
- package/lib/edge/{personalization-container-42afbf21.js → personalization-container-d4bfb7a9.js} +4 -4
- package/lib/edge/{select-e1a9f4c9.js → select-53fe8822.js} +1 -1
- package/lib/edge/{select-38371935.cjs → select-93ec2e99.cjs} +1 -1
- package/lib/edge/{server-entry-954fe774.js → server-entry-17b8ed52.js} +1 -1
- package/lib/edge/{server-entry-a2bf7e77.cjs → server-entry-92cd5eeb.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-562ee3ff.cjs → slot-1d00a5ae.cjs} +1 -1
- package/lib/edge/{slot-cc86bcca.js → slot-31cbb5b2.js} +3 -3
- package/lib/edge/{symbol-099ae199.cjs → symbol-84c1857b.cjs} +1 -1
- package/lib/edge/{symbol-6224d576.js → symbol-9aca7157.js} +2 -2
- package/lib/edge/{tabs-e1cf9ee7.cjs → tabs-a7d93c37.cjs} +1 -1
- package/lib/edge/{tabs-51cb7107.js → tabs-f8858f81.js} +3 -3
- package/lib/node/blocks-exports.cjs +60 -30
- package/lib/node/blocks-exports.mjs +542 -505
- 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-1c10e3d9.cjs → server-entry-99ae937a.cjs} +1 -1
- package/lib/node/{server-entry-85c98f9a.js → server-entry-c3bc01a9.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-a5e6d580.cjs → setIvm-4dccb8f3.cjs} +1 -1
- package/lib/node/{setIvm-ed61fc8c.js → setIvm-f74f2921.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-36ea59a2.cjs → should-force-browser-runtime-in-node-131d268b.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-03c2678b.js → should-force-browser-runtime-in-node-1af30e6f.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
2
|
+
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as dt, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as _e, setupBrowserForEditing as mt, createRegisterComponentMessage as ft, getCookieSync as ht, fetchOneEntry as Ue, createEditorListener as bt, serializeIncludingFunctions as we, handleABTestingSync as gt } from "./server-entry-aff2c5ee.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-aff2c5ee.js";
|
|
4
|
+
import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
|
|
5
|
+
import * as yt from "react";
|
|
6
|
+
import { createContext as He, useEffect as B, useState as k, useContext as pe, useRef as K, createElement as Me } from "react";
|
|
7
|
+
const pt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), vt = (e) => typeof e == "string" && pt.has(e.toLowerCase());
|
|
8
8
|
function xe(e) {
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
9
|
+
return /* @__PURE__ */ s(P, { children: vt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { 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
|
-
const
|
|
11
|
+
const z = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const K = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function xt(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +46,7 @@ function vt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const se =
|
|
49
|
+
const se = He({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = Ue({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), qe = He({ registeredComponents: {} }), je = (e, t, n) => {
|
|
65
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
|
+
}, St = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,11 +76,11 @@ const se = Ue({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
79
|
+
}), kt = (e) => ({
|
|
80
80
|
isEditing: _(),
|
|
81
81
|
isBrowser: J(),
|
|
82
82
|
isServer: !J(),
|
|
83
|
-
getUserAttributes: () =>
|
|
83
|
+
getUserAttributes: () => dt(),
|
|
84
84
|
trackConversion: (t, n) => {
|
|
85
85
|
var i;
|
|
86
86
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ye({
|
|
@@ -97,10 +97,10 @@ const se = Ue({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), Ct = (e, {
|
|
101
101
|
isExpression: t = !0
|
|
102
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;
|
|
103
|
-
function
|
|
103
|
+
function Ke({
|
|
104
104
|
rootState: e,
|
|
105
105
|
localState: t,
|
|
106
106
|
rootSetState: n
|
|
@@ -110,7 +110,7 @@ function je({
|
|
|
110
110
|
if (t && r in t)
|
|
111
111
|
return t[r];
|
|
112
112
|
const a = i[r];
|
|
113
|
-
return typeof a == "object" && a !== null ?
|
|
113
|
+
return typeof a == "object" && a !== null ? Ke({
|
|
114
114
|
rootState: a,
|
|
115
115
|
localState: void 0,
|
|
116
116
|
rootSetState: n ? (o) => {
|
|
@@ -134,11 +134,11 @@ const Ee = ({
|
|
|
134
134
|
rootSetState: a,
|
|
135
135
|
rootState: o
|
|
136
136
|
}) => {
|
|
137
|
-
const l =
|
|
137
|
+
const l = St({
|
|
138
138
|
builder: t,
|
|
139
139
|
context: n,
|
|
140
140
|
event: i,
|
|
141
|
-
state:
|
|
141
|
+
state: Ke({
|
|
142
142
|
rootState: o,
|
|
143
143
|
localState: r,
|
|
144
144
|
rootSetState: a
|
|
@@ -146,23 +146,23 @@ const Ee = ({
|
|
|
146
146
|
});
|
|
147
147
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
148
148
|
};
|
|
149
|
-
function
|
|
149
|
+
function Tt() {
|
|
150
150
|
var e;
|
|
151
151
|
return typeof process != "undefined" && ae((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
153
|
+
const It = ({
|
|
154
154
|
shouldLogWarning: e
|
|
155
155
|
}) => {
|
|
156
156
|
var r;
|
|
157
|
-
if (!
|
|
157
|
+
if (!Tt())
|
|
158
158
|
return !1;
|
|
159
159
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
160
160
|
return t && n && !i ? (e && Q.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;
|
|
161
|
-
},
|
|
161
|
+
}, wt = (e) => (J() || It({
|
|
162
162
|
shouldLogWarning: !0
|
|
163
|
-
}), Ee(e)),
|
|
163
|
+
}), Ee(e)), Et = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Rt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Pt = (e) => {
|
|
164
164
|
var t, n, i, r, a, o;
|
|
165
|
-
return ((i = (n = (t =
|
|
165
|
+
return ((i = (n = (t = Et.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = Rt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
|
|
166
166
|
};
|
|
167
167
|
function Y({
|
|
168
168
|
code: e,
|
|
@@ -176,17 +176,17 @@ function Y({
|
|
|
176
176
|
}) {
|
|
177
177
|
if (e.trim() === "")
|
|
178
178
|
return;
|
|
179
|
-
const c =
|
|
179
|
+
const c = Pt(e.trim());
|
|
180
180
|
if (c)
|
|
181
|
-
return
|
|
181
|
+
return je({
|
|
182
182
|
...i,
|
|
183
183
|
...n
|
|
184
184
|
}, c);
|
|
185
185
|
const d = {
|
|
186
|
-
code:
|
|
186
|
+
code: Ct(e, {
|
|
187
187
|
isExpression: o
|
|
188
188
|
}),
|
|
189
|
-
builder:
|
|
189
|
+
builder: kt(l),
|
|
190
190
|
context: t,
|
|
191
191
|
event: a,
|
|
192
192
|
rootSetState: r,
|
|
@@ -194,7 +194,7 @@ function Y({
|
|
|
194
194
|
localState: n
|
|
195
195
|
};
|
|
196
196
|
try {
|
|
197
|
-
return
|
|
197
|
+
return wt(d);
|
|
198
198
|
} catch (h) {
|
|
199
199
|
Q.error("Failed code evaluation: " + h.message, {
|
|
200
200
|
code: e
|
|
@@ -202,15 +202,15 @@ function Y({
|
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function Vt(e, t) {
|
|
206
206
|
var n;
|
|
207
207
|
return {
|
|
208
208
|
...(n = e.component) == null ? void 0 : n.options,
|
|
209
209
|
...e.options,
|
|
210
|
-
...
|
|
210
|
+
...At(e, t)
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const At = (e, t) => {
|
|
214
214
|
var n, i;
|
|
215
215
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
216
216
|
return {
|
|
@@ -224,7 +224,7 @@ const Vt = (e, t) => {
|
|
|
224
224
|
}))
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function Bt(e, ...t) {
|
|
228
228
|
const n = Object.assign({}, e);
|
|
229
229
|
for (const i of t)
|
|
230
230
|
delete n[i];
|
|
@@ -250,7 +250,7 @@ function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
250
250
|
function ze(e) {
|
|
251
251
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Nt(e) {
|
|
254
254
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
255
255
|
return !1;
|
|
256
256
|
let t = !1;
|
|
@@ -261,7 +261,7 @@ function Bt(e) {
|
|
|
261
261
|
}
|
|
262
262
|
}), t;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function $t(e, t) {
|
|
265
265
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (oe(e, (n, i) => {
|
|
266
266
|
var r;
|
|
267
267
|
ze(n) && i((r = n[t]) != null ? r : void 0);
|
|
@@ -269,9 +269,9 @@ function Nt(e, t) {
|
|
|
269
269
|
}
|
|
270
270
|
function Wt(e, t) {
|
|
271
271
|
var n, i;
|
|
272
|
-
return (n = e.component) != null && n.options &&
|
|
272
|
+
return (n = e.component) != null && n.options && Nt((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 = $t(e.component.options, t != null ? t : "Default")), e;
|
|
273
273
|
}
|
|
274
|
-
const Se = (e) => JSON.parse(JSON.stringify(e)),
|
|
274
|
+
const Se = (e) => JSON.parse(JSON.stringify(e)), Je = (e, t, n) => {
|
|
275
275
|
if (Object(e) !== e)
|
|
276
276
|
return e;
|
|
277
277
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -289,8 +289,8 @@ function ve(e) {
|
|
|
289
289
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ve(e[n]));
|
|
290
290
|
return t;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
292
|
+
const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ot = (e) => {
|
|
293
|
+
if (Dt) {
|
|
294
294
|
const t = Se(e);
|
|
295
295
|
return {
|
|
296
296
|
...t,
|
|
@@ -302,7 +302,7 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
} else {
|
|
305
|
-
const t = ve(
|
|
305
|
+
const t = ve(Bt(e, "children", "meta"));
|
|
306
306
|
return {
|
|
307
307
|
...t,
|
|
308
308
|
properties: {
|
|
@@ -315,7 +315,7 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
315
315
|
meta: e.meta
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
},
|
|
318
|
+
}, Ft = ({
|
|
319
319
|
block: e,
|
|
320
320
|
context: t,
|
|
321
321
|
localState: n,
|
|
@@ -324,7 +324,7 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
324
324
|
}) => {
|
|
325
325
|
if (!e.bindings)
|
|
326
326
|
return e;
|
|
327
|
-
const a =
|
|
327
|
+
const a = Ot(e);
|
|
328
328
|
for (const o in e.bindings) {
|
|
329
329
|
const l = e.bindings[o], c = Y({
|
|
330
330
|
code: l,
|
|
@@ -333,11 +333,11 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) =
|
|
|
333
333
|
rootSetState: r,
|
|
334
334
|
context: t
|
|
335
335
|
});
|
|
336
|
-
|
|
336
|
+
Je(a, o, c);
|
|
337
337
|
}
|
|
338
338
|
return a;
|
|
339
339
|
};
|
|
340
|
-
function
|
|
340
|
+
function Lt({
|
|
341
341
|
block: e,
|
|
342
342
|
context: t,
|
|
343
343
|
localState: n,
|
|
@@ -345,7 +345,7 @@ function Ft({
|
|
|
345
345
|
rootSetState: r
|
|
346
346
|
}) {
|
|
347
347
|
let a = e;
|
|
348
|
-
return a =
|
|
348
|
+
return a = Ft({
|
|
349
349
|
block: a,
|
|
350
350
|
localState: n,
|
|
351
351
|
rootState: i,
|
|
@@ -354,7 +354,7 @@ function Ft({
|
|
|
354
354
|
}), a = Wt(a, i.locale), a;
|
|
355
355
|
}
|
|
356
356
|
const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
357
|
-
function
|
|
357
|
+
function _t(e, t, n = {}) {
|
|
358
358
|
let i, r, a, o = null, l = 0;
|
|
359
359
|
const c = function() {
|
|
360
360
|
l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
|
|
@@ -376,55 +376,55 @@ function Z(e, ...t) {
|
|
|
376
376
|
}
|
|
377
377
|
return n;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function Ut(e) {
|
|
380
380
|
for (const t of e)
|
|
381
381
|
switch (t.trigger) {
|
|
382
382
|
case "pageLoad":
|
|
383
|
-
|
|
383
|
+
Ye(t);
|
|
384
384
|
break;
|
|
385
385
|
case "scrollInView":
|
|
386
|
-
|
|
386
|
+
Mt(t);
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ge(e) {
|
|
391
391
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
const n =
|
|
393
|
+
function Qe(e, t) {
|
|
394
|
+
const n = Ht(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
|
|
395
395
|
for (const l of o)
|
|
396
396
|
for (const c of n)
|
|
397
397
|
c in l || (l[c] = i[c]);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function Ht(e) {
|
|
400
400
|
const t = [];
|
|
401
401
|
for (const n of e.steps)
|
|
402
402
|
for (const i in n.styles)
|
|
403
403
|
t.indexOf(i) === -1 && t.push(i);
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Ye(e) {
|
|
407
407
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
408
408
|
if (!t.length) {
|
|
409
|
-
|
|
409
|
+
Ge(e.elementId || e.id || "");
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
Array.from(t).forEach((n) => {
|
|
413
|
-
|
|
413
|
+
Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
414
414
|
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
415
415
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
416
416
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
417
417
|
});
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Mt(e) {
|
|
421
421
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
422
422
|
if (!t.length) {
|
|
423
|
-
|
|
423
|
+
Ge(e.elementId || e.id || "");
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
Array.from(t).forEach((n) => {
|
|
427
|
-
|
|
427
|
+
Qe(e, n);
|
|
428
428
|
let i = !1, r = !1;
|
|
429
429
|
function a() {
|
|
430
430
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
@@ -433,7 +433,7 @@ function Ht(e) {
|
|
|
433
433
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
434
434
|
})) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
|
|
435
435
|
}
|
|
436
|
-
const o =
|
|
436
|
+
const o = _t(a, 200, {
|
|
437
437
|
leading: !1
|
|
438
438
|
});
|
|
439
439
|
function l(h) {
|
|
@@ -452,42 +452,42 @@ function Ht(e) {
|
|
|
452
452
|
}), a();
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const Xe = (e) => Object.entries(e).map(([n, i]) => {
|
|
456
456
|
if (typeof i == "string")
|
|
457
457
|
return `${ce(n)}: ${i};`;
|
|
458
|
-
}).filter(ae),
|
|
458
|
+
}).filter(ae), qt = (e) => Xe(e).join(`
|
|
459
459
|
`), X = ({
|
|
460
460
|
mediaQuery: e,
|
|
461
461
|
className: t,
|
|
462
462
|
styles: n
|
|
463
463
|
}) => {
|
|
464
464
|
const i = `.${t} {
|
|
465
|
-
${
|
|
465
|
+
${qt(n)}
|
|
466
466
|
}`;
|
|
467
467
|
return e ? `${e} {
|
|
468
468
|
${i}
|
|
469
469
|
}` : i;
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function jt({
|
|
472
472
|
style: e
|
|
473
473
|
}) {
|
|
474
474
|
return e;
|
|
475
475
|
}
|
|
476
|
-
const
|
|
476
|
+
const Kt = ({
|
|
477
477
|
block: e,
|
|
478
478
|
context: t
|
|
479
|
-
}) =>
|
|
479
|
+
}) => Ze(jt({
|
|
480
480
|
style: e.style || {},
|
|
481
481
|
context: t,
|
|
482
482
|
block: e
|
|
483
483
|
}));
|
|
484
|
-
function
|
|
484
|
+
function Ze(e) {
|
|
485
485
|
switch (O) {
|
|
486
486
|
case "svelte":
|
|
487
487
|
case "vue":
|
|
488
488
|
case "solid":
|
|
489
489
|
case "angular":
|
|
490
|
-
return
|
|
490
|
+
return Xe(e).join(" ");
|
|
491
491
|
case "qwik":
|
|
492
492
|
case "reactNative":
|
|
493
493
|
case "react":
|
|
@@ -495,7 +495,7 @@ function Xe(e) {
|
|
|
495
495
|
return e;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
const
|
|
498
|
+
const et = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, zt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
registeredComponents: t,
|
|
501
501
|
model: n
|
|
@@ -505,14 +505,14 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
if (!i)
|
|
506
506
|
return null;
|
|
507
507
|
const r = t[i];
|
|
508
|
-
if (!r ||
|
|
508
|
+
if (!r || et(r, n)) {
|
|
509
509
|
console.warn(`
|
|
510
510
|
Could not find a registered component named "${i}".
|
|
511
511
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
512
512
|
return;
|
|
513
513
|
} else
|
|
514
514
|
return r;
|
|
515
|
-
},
|
|
515
|
+
}, Jt = ({
|
|
516
516
|
block: e,
|
|
517
517
|
context: t
|
|
518
518
|
}) => {
|
|
@@ -545,31 +545,31 @@ const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
545
545
|
},
|
|
546
546
|
block: i
|
|
547
547
|
}));
|
|
548
|
-
},
|
|
548
|
+
}, Gt = (e, t) => {
|
|
549
549
|
var n;
|
|
550
550
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
551
551
|
builderLinkComponent: t
|
|
552
552
|
} : {};
|
|
553
|
-
},
|
|
553
|
+
}, Qt = (e, t, n) => {
|
|
554
554
|
var i;
|
|
555
555
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
556
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !
|
|
556
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !et(o, n)))
|
|
557
557
|
} : {};
|
|
558
|
-
},
|
|
558
|
+
}, Yt = (e, t) => {
|
|
559
559
|
var n;
|
|
560
560
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
561
561
|
builderBlock: t
|
|
562
562
|
} : {};
|
|
563
|
-
},
|
|
563
|
+
}, Xt = (e, t) => {
|
|
564
564
|
var n;
|
|
565
565
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
566
566
|
builderContext: t
|
|
567
567
|
} : {};
|
|
568
568
|
}, Re = (e) => e.toString();
|
|
569
|
-
function
|
|
569
|
+
function Zt(e) {
|
|
570
570
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
571
571
|
}
|
|
572
|
-
const
|
|
572
|
+
const en = (e) => `on${Zt(e)}`, tn = (e, t) => (n) => Y({
|
|
573
573
|
code: e,
|
|
574
574
|
context: t.context,
|
|
575
575
|
localState: t.localState,
|
|
@@ -579,14 +579,14 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
|
|
|
579
579
|
isExpression: !1,
|
|
580
580
|
trackingContext: t.trackingContext
|
|
581
581
|
});
|
|
582
|
-
function
|
|
582
|
+
function tt(e) {
|
|
583
583
|
var i;
|
|
584
584
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
585
585
|
for (const r in n) {
|
|
586
586
|
if (!n.hasOwnProperty(r))
|
|
587
587
|
continue;
|
|
588
588
|
const a = n[r];
|
|
589
|
-
let o =
|
|
589
|
+
let o = en(r);
|
|
590
590
|
if (e.stripPrefix)
|
|
591
591
|
switch (O) {
|
|
592
592
|
case "vue":
|
|
@@ -596,16 +596,16 @@ function et(e) {
|
|
|
596
596
|
o = o.replace("on:", "");
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
t[o] =
|
|
599
|
+
t[o] = tn(a, e);
|
|
600
600
|
}
|
|
601
601
|
return t;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function nn({
|
|
604
604
|
properties: e
|
|
605
605
|
}) {
|
|
606
606
|
return e;
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const rn = (e) => ({
|
|
609
609
|
href: e.href
|
|
610
610
|
});
|
|
611
611
|
function ke({
|
|
@@ -614,22 +614,22 @@ function ke({
|
|
|
614
614
|
}) {
|
|
615
615
|
var i;
|
|
616
616
|
const n = {
|
|
617
|
-
...
|
|
617
|
+
...rn(e),
|
|
618
618
|
...e.properties,
|
|
619
619
|
"builder-id": e.id,
|
|
620
|
-
style:
|
|
620
|
+
style: Kt({
|
|
621
621
|
block: e,
|
|
622
622
|
context: t
|
|
623
623
|
}),
|
|
624
|
-
[
|
|
624
|
+
[z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
625
625
|
};
|
|
626
|
-
return
|
|
626
|
+
return nn({
|
|
627
627
|
properties: n,
|
|
628
628
|
context: t,
|
|
629
629
|
block: e
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function an(e) {
|
|
633
633
|
var t, n, i;
|
|
634
634
|
return /* @__PURE__ */ s(
|
|
635
635
|
xe,
|
|
@@ -639,7 +639,7 @@ function rn(e) {
|
|
|
639
639
|
block: e.block,
|
|
640
640
|
context: e.context
|
|
641
641
|
}),
|
|
642
|
-
actionAttributes:
|
|
642
|
+
actionAttributes: tt({
|
|
643
643
|
block: e.block,
|
|
644
644
|
rootState: e.context.rootState,
|
|
645
645
|
rootSetState: e.context.rootSetState,
|
|
@@ -657,11 +657,11 @@ function rn(e) {
|
|
|
657
657
|
}
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function on(e) {
|
|
661
661
|
return B(() => {
|
|
662
|
-
}, []), /* @__PURE__ */ s(
|
|
662
|
+
}, []), /* @__PURE__ */ s(P, { children: e.children });
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function ln(e) {
|
|
665
665
|
var i, r;
|
|
666
666
|
k(() => 0);
|
|
667
667
|
function t() {
|
|
@@ -671,7 +671,7 @@ function on(e) {
|
|
|
671
671
|
block: e.block,
|
|
672
672
|
context: e.context
|
|
673
673
|
}),
|
|
674
|
-
...
|
|
674
|
+
...tt({
|
|
675
675
|
block: e.block,
|
|
676
676
|
rootState: e.context.rootState,
|
|
677
677
|
rootSetState: e.context.rootSetState,
|
|
@@ -690,8 +690,8 @@ function on(e) {
|
|
|
690
690
|
return e.wrapperProps;
|
|
691
691
|
}
|
|
692
692
|
return B(() => {
|
|
693
|
-
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(
|
|
694
|
-
|
|
693
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
694
|
+
on,
|
|
695
695
|
{
|
|
696
696
|
load: e.Wrapper.load,
|
|
697
697
|
fallback: e.Wrapper.fallback,
|
|
@@ -701,7 +701,7 @@ function on(e) {
|
|
|
701
701
|
}
|
|
702
702
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
703
703
|
}
|
|
704
|
-
const
|
|
704
|
+
const sn = ({
|
|
705
705
|
componentOptions: e,
|
|
706
706
|
builderBlock: t,
|
|
707
707
|
context: n,
|
|
@@ -732,15 +732,18 @@ const ln = ({
|
|
|
732
732
|
} : l;
|
|
733
733
|
};
|
|
734
734
|
function Pe(e) {
|
|
735
|
-
var
|
|
735
|
+
var r;
|
|
736
736
|
k(() => !1);
|
|
737
737
|
const [t, n] = k(
|
|
738
|
-
() => e.isInteractive ?
|
|
738
|
+
() => e.isInteractive ? ln : e.componentRef
|
|
739
739
|
);
|
|
740
|
-
|
|
740
|
+
function i() {
|
|
741
|
+
return e.componentRef ? e.blockChildren : [];
|
|
742
|
+
}
|
|
743
|
+
return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
741
744
|
t,
|
|
742
745
|
{
|
|
743
|
-
...
|
|
746
|
+
...sn({
|
|
744
747
|
componentOptions: e.componentOptions,
|
|
745
748
|
builderBlock: e.builderBlock,
|
|
746
749
|
context: e.context,
|
|
@@ -750,16 +753,16 @@ function Pe(e) {
|
|
|
750
753
|
isInteractive: e.isInteractive,
|
|
751
754
|
contextValue: e.context
|
|
752
755
|
}),
|
|
753
|
-
children:
|
|
756
|
+
children: (r = i()) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
754
757
|
ue,
|
|
755
758
|
{
|
|
756
|
-
block:
|
|
759
|
+
block: a,
|
|
757
760
|
context: e.context,
|
|
758
761
|
registeredComponents: e.registeredComponents,
|
|
759
762
|
linkComponent: e.linkComponent
|
|
760
763
|
},
|
|
761
|
-
|
|
762
|
-
))
|
|
764
|
+
a.id
|
|
765
|
+
))
|
|
763
766
|
}
|
|
764
767
|
) }) : null });
|
|
765
768
|
}
|
|
@@ -777,7 +780,7 @@ function Ve(e) {
|
|
|
777
780
|
}
|
|
778
781
|
) });
|
|
779
782
|
}
|
|
780
|
-
const
|
|
783
|
+
const nt = {
|
|
781
784
|
xsmall: {
|
|
782
785
|
min: 0,
|
|
783
786
|
default: 160,
|
|
@@ -798,8 +801,8 @@ const tt = {
|
|
|
798
801
|
default: 991,
|
|
799
802
|
max: 1200
|
|
800
803
|
}
|
|
801
|
-
}, de = (e, t =
|
|
802
|
-
const t = Se(
|
|
804
|
+
}, de = (e, t = nt) => `@media (max-width: ${t[e].max}px)`, it = (e) => {
|
|
805
|
+
const t = Se(nt);
|
|
803
806
|
if (!e)
|
|
804
807
|
return t;
|
|
805
808
|
const {
|
|
@@ -853,10 +856,10 @@ function Ae(e) {
|
|
|
853
856
|
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
854
857
|
}
|
|
855
858
|
function n() {
|
|
856
|
-
var T,
|
|
857
|
-
const i = e.block, r = i.responsiveStyles, a = e.context.content, o =
|
|
859
|
+
var T, w, U, H, q;
|
|
860
|
+
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = it(
|
|
858
861
|
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
859
|
-
), l = !!((U = (
|
|
862
|
+
), l = !!((U = (w = a == null ? void 0 : a.meta) == null ? void 0 : w.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;
|
|
860
863
|
if (!u)
|
|
861
864
|
return "";
|
|
862
865
|
const S = c ? X({
|
|
@@ -906,7 +909,7 @@ function Ae(e) {
|
|
|
906
909
|
v
|
|
907
910
|
].join(" ");
|
|
908
911
|
}
|
|
909
|
-
return /* @__PURE__ */ s(
|
|
912
|
+
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
910
913
|
te,
|
|
911
914
|
{
|
|
912
915
|
id: "builderio-block",
|
|
@@ -915,16 +918,16 @@ function Ae(e) {
|
|
|
915
918
|
}
|
|
916
919
|
) }) : null });
|
|
917
920
|
}
|
|
918
|
-
function
|
|
921
|
+
function cn(e) {
|
|
919
922
|
k(() => !1);
|
|
920
923
|
const [t, n] = k(() => !1);
|
|
921
924
|
return pe(se), B(() => {
|
|
922
|
-
}, []), /* @__PURE__ */ s(
|
|
925
|
+
}, []), /* @__PURE__ */ s(P, { children: t ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
|
|
923
926
|
}
|
|
924
927
|
function ue(e) {
|
|
925
928
|
var h, g, u, S;
|
|
926
929
|
function t() {
|
|
927
|
-
return
|
|
930
|
+
return Jt({
|
|
928
931
|
block: e.block,
|
|
929
932
|
context: e.context
|
|
930
933
|
});
|
|
@@ -937,7 +940,7 @@ function ue(e) {
|
|
|
937
940
|
var b;
|
|
938
941
|
if (n.value && !n.update && !le())
|
|
939
942
|
return n.value;
|
|
940
|
-
const m = (b = e.block.repeat) != null && b.collection ? e.block :
|
|
943
|
+
const m = (b = e.block.repeat) != null && b.collection ? e.block : Lt({
|
|
941
944
|
block: e.block,
|
|
942
945
|
localState: e.context.localState,
|
|
943
946
|
rootState: e.context.rootState,
|
|
@@ -974,11 +977,11 @@ function ue(e) {
|
|
|
974
977
|
blockChildren: (m = r().children) != null ? m : [],
|
|
975
978
|
componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
|
|
976
979
|
componentOptions: {
|
|
977
|
-
...
|
|
978
|
-
...
|
|
979
|
-
...
|
|
980
|
-
...
|
|
981
|
-
...
|
|
980
|
+
...Vt(r(), e.context),
|
|
981
|
+
...Yt(a(), r()),
|
|
982
|
+
...Xt(a(), e.context),
|
|
983
|
+
...Gt(a(), e.linkComponent),
|
|
984
|
+
...Qt(
|
|
982
985
|
a(),
|
|
983
986
|
e.registeredComponents,
|
|
984
987
|
e.context.model
|
|
@@ -994,7 +997,7 @@ function ue(e) {
|
|
|
994
997
|
}
|
|
995
998
|
return B(() => {
|
|
996
999
|
const m = r().id, b = r().animations;
|
|
997
|
-
b && m &&
|
|
1000
|
+
b && m && Ut(
|
|
998
1001
|
b.map((p) => ({
|
|
999
1002
|
...p,
|
|
1000
1003
|
elementId: m
|
|
@@ -1002,16 +1005,16 @@ function ue(e) {
|
|
|
1002
1005
|
);
|
|
1003
1006
|
}, []), B(() => {
|
|
1004
1007
|
n.update = !0;
|
|
1005
|
-
}), /* @__PURE__ */ s(
|
|
1008
|
+
}), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
|
|
1006
1009
|
/* @__PURE__ */ s(
|
|
1007
|
-
|
|
1010
|
+
cn,
|
|
1008
1011
|
{
|
|
1009
1012
|
block: r(),
|
|
1010
1013
|
context: e.context,
|
|
1011
1014
|
id: e.block.id
|
|
1012
1015
|
}
|
|
1013
1016
|
),
|
|
1014
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(
|
|
1017
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (S = t()) == null ? void 0 : S.map((m, b) => /* @__PURE__ */ s(
|
|
1015
1018
|
Ve,
|
|
1016
1019
|
{
|
|
1017
1020
|
repeatContext: m.context,
|
|
@@ -1033,7 +1036,7 @@ function ue(e) {
|
|
|
1033
1036
|
includeBlockProps: d().includeBlockProps,
|
|
1034
1037
|
isInteractive: d().isInteractive
|
|
1035
1038
|
}
|
|
1036
|
-
) : /* @__PURE__ */ s(
|
|
1039
|
+
) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
|
|
1037
1040
|
Ve,
|
|
1038
1041
|
{
|
|
1039
1042
|
repeatContext: m.context,
|
|
@@ -1043,7 +1046,7 @@ function ue(e) {
|
|
|
1043
1046
|
},
|
|
1044
1047
|
Re(b)
|
|
1045
1048
|
)) }) : /* @__PURE__ */ D(
|
|
1046
|
-
|
|
1049
|
+
an,
|
|
1047
1050
|
{
|
|
1048
1051
|
Wrapper: o(),
|
|
1049
1052
|
block: r(),
|
|
@@ -1078,8 +1081,8 @@ function ue(e) {
|
|
|
1078
1081
|
) })
|
|
1079
1082
|
] }) : null });
|
|
1080
1083
|
}
|
|
1081
|
-
function
|
|
1082
|
-
const t =
|
|
1084
|
+
function un(e) {
|
|
1085
|
+
const t = K(null);
|
|
1083
1086
|
k(() => !1);
|
|
1084
1087
|
function n() {
|
|
1085
1088
|
var o;
|
|
@@ -1123,7 +1126,7 @@ function cn(e) {
|
|
|
1123
1126
|
}
|
|
1124
1127
|
return B(() => {
|
|
1125
1128
|
}, []), B(() => {
|
|
1126
|
-
}, [e.blocks]), /* @__PURE__ */ D(
|
|
1129
|
+
}, [e.blocks]), /* @__PURE__ */ D(P, { children: [
|
|
1127
1130
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1128
1131
|
display: flex;
|
|
1129
1132
|
flex-direction: column;
|
|
@@ -1148,9 +1151,9 @@ function cn(e) {
|
|
|
1148
1151
|
}
|
|
1149
1152
|
function M(e) {
|
|
1150
1153
|
var i, r, a;
|
|
1151
|
-
const t = pe(se), n = pe(
|
|
1154
|
+
const t = pe(se), n = pe(qe);
|
|
1152
1155
|
return /* @__PURE__ */ D(
|
|
1153
|
-
|
|
1156
|
+
un,
|
|
1154
1157
|
{
|
|
1155
1158
|
blocks: e.blocks,
|
|
1156
1159
|
parent: e.parent,
|
|
@@ -1161,7 +1164,7 @@ function M(e) {
|
|
|
1161
1164
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1162
1165
|
children: [
|
|
1163
1166
|
e.children,
|
|
1164
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1167
|
+
e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
|
|
1165
1168
|
ue,
|
|
1166
1169
|
{
|
|
1167
1170
|
block: o,
|
|
@@ -1175,8 +1178,8 @@ function M(e) {
|
|
|
1175
1178
|
}
|
|
1176
1179
|
);
|
|
1177
1180
|
}
|
|
1178
|
-
const
|
|
1179
|
-
function
|
|
1181
|
+
const dn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1182
|
+
function mn(e) {
|
|
1180
1183
|
var b, p;
|
|
1181
1184
|
function t() {
|
|
1182
1185
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1223,7 +1226,7 @@ function dn(e) {
|
|
|
1223
1226
|
};
|
|
1224
1227
|
}
|
|
1225
1228
|
function g(f) {
|
|
1226
|
-
const v = f === 0 ? 0 : t(), T = o(f),
|
|
1229
|
+
const v = f === 0 ? 0 : t(), T = o(f), w = `${v}px`, U = "100%", H = 0;
|
|
1227
1230
|
return {
|
|
1228
1231
|
...{
|
|
1229
1232
|
display: "flex",
|
|
@@ -1231,14 +1234,14 @@ function dn(e) {
|
|
|
1231
1234
|
alignItems: "stretch"
|
|
1232
1235
|
},
|
|
1233
1236
|
width: T,
|
|
1234
|
-
["marginLeft"]:
|
|
1237
|
+
["marginLeft"]: w,
|
|
1235
1238
|
"--column-width-mobile": c({
|
|
1236
1239
|
stackedStyle: U,
|
|
1237
1240
|
desktopStyle: T
|
|
1238
1241
|
}),
|
|
1239
1242
|
"--column-margin-left-mobile": c({
|
|
1240
1243
|
stackedStyle: H,
|
|
1241
|
-
desktopStyle:
|
|
1244
|
+
desktopStyle: w
|
|
1242
1245
|
}),
|
|
1243
1246
|
"--column-width-tablet": l({
|
|
1244
1247
|
stackedStyle: U,
|
|
@@ -1246,14 +1249,14 @@ function dn(e) {
|
|
|
1246
1249
|
}),
|
|
1247
1250
|
"--column-margin-left-tablet": l({
|
|
1248
1251
|
stackedStyle: H,
|
|
1249
|
-
desktopStyle:
|
|
1252
|
+
desktopStyle: w
|
|
1250
1253
|
})
|
|
1251
1254
|
};
|
|
1252
1255
|
}
|
|
1253
1256
|
function u(f) {
|
|
1254
|
-
var T,
|
|
1255
|
-
return
|
|
1256
|
-
((
|
|
1257
|
+
var T, w;
|
|
1258
|
+
return it(
|
|
1259
|
+
((w = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || {}
|
|
1257
1260
|
)[f].max;
|
|
1258
1261
|
}
|
|
1259
1262
|
function S() {
|
|
@@ -1289,11 +1292,11 @@ function dn(e) {
|
|
|
1289
1292
|
...f.link ? {
|
|
1290
1293
|
href: f.link
|
|
1291
1294
|
} : {},
|
|
1292
|
-
[
|
|
1293
|
-
style:
|
|
1295
|
+
[z()]: "builder-column",
|
|
1296
|
+
style: Ze(g(v))
|
|
1294
1297
|
};
|
|
1295
1298
|
}
|
|
1296
|
-
return /* @__PURE__ */ D(
|
|
1299
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
1297
1300
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1298
1301
|
display: flex;
|
|
1299
1302
|
line-height: normal;
|
|
@@ -1302,7 +1305,7 @@ function dn(e) {
|
|
|
1302
1305
|
/* @__PURE__ */ D(
|
|
1303
1306
|
"div",
|
|
1304
1307
|
{
|
|
1305
|
-
className:
|
|
1308
|
+
className: dn((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
|
|
1306
1309
|
style: h(),
|
|
1307
1310
|
children: [
|
|
1308
1311
|
/* @__PURE__ */ s(
|
|
@@ -1341,17 +1344,17 @@ function dn(e) {
|
|
|
1341
1344
|
)
|
|
1342
1345
|
] });
|
|
1343
1346
|
}
|
|
1344
|
-
function
|
|
1347
|
+
function fn(e) {
|
|
1345
1348
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1346
1349
|
}
|
|
1347
1350
|
function Be(e) {
|
|
1348
1351
|
return e.replace(/http(s)?:/, "");
|
|
1349
1352
|
}
|
|
1350
|
-
function
|
|
1353
|
+
function hn(e = "", t, n) {
|
|
1351
1354
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1352
1355
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1353
1356
|
}
|
|
1354
|
-
function
|
|
1357
|
+
function bn(e, t) {
|
|
1355
1358
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1356
1359
|
return e;
|
|
1357
1360
|
if (t === "master")
|
|
@@ -1370,11 +1373,11 @@ function me(e) {
|
|
|
1370
1373
|
if (e.match(/builder\.io/)) {
|
|
1371
1374
|
let n = e;
|
|
1372
1375
|
const i = Number(e.split("?width=")[1]);
|
|
1373
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${
|
|
1376
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${hn(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1374
1377
|
}
|
|
1375
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1378
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [bn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1376
1379
|
}
|
|
1377
|
-
function
|
|
1380
|
+
function gn(e) {
|
|
1378
1381
|
var r, a, o, l, c, d;
|
|
1379
1382
|
function t() {
|
|
1380
1383
|
var u;
|
|
@@ -1407,7 +1410,7 @@ function bn(e) {
|
|
|
1407
1410
|
return e.aspectRatio ? h : void 0;
|
|
1408
1411
|
}
|
|
1409
1412
|
return B(() => {
|
|
1410
|
-
}, []), /* @__PURE__ */ D(
|
|
1413
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
1411
1414
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1412
1415
|
opacity: 1;
|
|
1413
1416
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1425,7 +1428,7 @@ function bn(e) {
|
|
|
1425
1428
|
width: 100%;
|
|
1426
1429
|
height: 100%;
|
|
1427
1430
|
}` }),
|
|
1428
|
-
/* @__PURE__ */ D(
|
|
1431
|
+
/* @__PURE__ */ D(P, { children: [
|
|
1429
1432
|
/* @__PURE__ */ D("picture", { children: [
|
|
1430
1433
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1431
1434
|
/* @__PURE__ */ s(
|
|
@@ -1457,12 +1460,12 @@ function bn(e) {
|
|
|
1457
1460
|
}
|
|
1458
1461
|
}
|
|
1459
1462
|
) : null,
|
|
1460
|
-
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1463
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
|
|
1461
1464
|
!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
|
|
1462
1465
|
] })
|
|
1463
1466
|
] });
|
|
1464
1467
|
}
|
|
1465
|
-
function
|
|
1468
|
+
function yn(e) {
|
|
1466
1469
|
return /* @__PURE__ */ s(
|
|
1467
1470
|
"section",
|
|
1468
1471
|
{
|
|
@@ -1483,7 +1486,7 @@ function gn(e) {
|
|
|
1483
1486
|
}
|
|
1484
1487
|
);
|
|
1485
1488
|
}
|
|
1486
|
-
function
|
|
1489
|
+
function pn(e, t, n, i) {
|
|
1487
1490
|
function r(d) {
|
|
1488
1491
|
return typeof d == "string";
|
|
1489
1492
|
}
|
|
@@ -1540,7 +1543,7 @@ function yn(e, t, n, i) {
|
|
|
1540
1543
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1541
1544
|
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));
|
|
1542
1545
|
}
|
|
1543
|
-
const
|
|
1546
|
+
const vn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1544
1547
|
if (!navigator.cookieEnabled) {
|
|
1545
1548
|
return;
|
|
1546
1549
|
}
|
|
@@ -1585,7 +1588,7 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1585
1588
|
thisScript.remove();
|
|
1586
1589
|
}
|
|
1587
1590
|
}
|
|
1588
|
-
}`,
|
|
1591
|
+
}`, xn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1589
1592
|
function isString(val) {
|
|
1590
1593
|
return typeof val === 'string';
|
|
1591
1594
|
}
|
|
@@ -1663,7 +1666,7 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1663
1666
|
return item.query.every(filter => {
|
|
1664
1667
|
return objectMatchesQuery(userAttributes, filter);
|
|
1665
1668
|
});
|
|
1666
|
-
}`,
|
|
1669
|
+
}`, Sn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1667
1670
|
function getCookie(name) {
|
|
1668
1671
|
const nameEQ = name + '=';
|
|
1669
1672
|
const ca = document.cookie.split(';');
|
|
@@ -1701,11 +1704,11 @@ const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1701
1704
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1702
1705
|
}
|
|
1703
1706
|
}
|
|
1704
|
-
}`, ne = "default",
|
|
1705
|
-
function
|
|
1707
|
+
}`, ne = "default", kn = "filterWithCustomTargeting", rt = "builderIoPersonalization", at = "updateVisibilityStylesScript", ot = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1708
|
+
function Cn(e, t) {
|
|
1706
1709
|
return !(e && e.length > 0) || !t ? !1 : ie.includes(O) ? !0 : !J();
|
|
1707
1710
|
}
|
|
1708
|
-
function
|
|
1711
|
+
function Tn({
|
|
1709
1712
|
variants: e,
|
|
1710
1713
|
previewingIndex: t,
|
|
1711
1714
|
isHydrated: n,
|
|
@@ -1744,11 +1747,11 @@ function Cn({
|
|
|
1744
1747
|
}
|
|
1745
1748
|
return a;
|
|
1746
1749
|
}
|
|
1747
|
-
const
|
|
1748
|
-
window.${
|
|
1749
|
-
window.${
|
|
1750
|
-
window.${
|
|
1751
|
-
`,
|
|
1750
|
+
const In = () => `
|
|
1751
|
+
window.${kn} = ${xn}
|
|
1752
|
+
window.${rt} = ${vn}
|
|
1753
|
+
window.${at} = ${Sn}
|
|
1754
|
+
`, lt = O === "react", wn = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, En = (e, t, n) => `window.${at}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, fe = {
|
|
1752
1755
|
"@type": "@builder.io/sdk:Element",
|
|
1753
1756
|
layerName: "Accordion item title",
|
|
1754
1757
|
responsiveStyles: {
|
|
@@ -1808,7 +1811,7 @@ const Tn = () => `
|
|
|
1808
1811
|
}
|
|
1809
1812
|
}
|
|
1810
1813
|
}]
|
|
1811
|
-
},
|
|
1814
|
+
}, Rn = {
|
|
1812
1815
|
name: "Builder:Accordion",
|
|
1813
1816
|
canHaveChildren: !0,
|
|
1814
1817
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1873,7 +1876,7 @@ const Tn = () => `
|
|
|
1873
1876
|
builderLinkComponent: !0
|
|
1874
1877
|
}
|
|
1875
1878
|
}, Ne = (e) => e.toString();
|
|
1876
|
-
function
|
|
1879
|
+
function Pn(e) {
|
|
1877
1880
|
var g;
|
|
1878
1881
|
const [t, n] = k(() => []);
|
|
1879
1882
|
function i() {
|
|
@@ -1951,7 +1954,7 @@ function Rn(e) {
|
|
|
1951
1954
|
function h(u) {
|
|
1952
1955
|
t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
|
|
1953
1956
|
}
|
|
1954
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, S) => /* @__PURE__ */ D(
|
|
1957
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, S) => /* @__PURE__ */ D(yt.Fragment, { children: [
|
|
1955
1958
|
/* @__PURE__ */ s(
|
|
1956
1959
|
"div",
|
|
1957
1960
|
{
|
|
@@ -1998,7 +2001,7 @@ function Rn(e) {
|
|
|
1998
2001
|
) : null
|
|
1999
2002
|
] }, S)) });
|
|
2000
2003
|
}
|
|
2001
|
-
const
|
|
2004
|
+
const Vn = {
|
|
2002
2005
|
name: "Core:Button",
|
|
2003
2006
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2004
2007
|
defaultStyles: {
|
|
@@ -2034,7 +2037,7 @@ const Pn = {
|
|
|
2034
2037
|
shouldReceiveBuilderProps: {
|
|
2035
2038
|
builderLinkComponent: !0
|
|
2036
2039
|
}
|
|
2037
|
-
},
|
|
2040
|
+
}, An = {
|
|
2038
2041
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2039
2042
|
name: "Columns",
|
|
2040
2043
|
isRSC: !0,
|
|
@@ -2241,13 +2244,13 @@ const Pn = {
|
|
|
2241
2244
|
builderComponents: !0,
|
|
2242
2245
|
builderLinkComponent: !0
|
|
2243
2246
|
}
|
|
2244
|
-
},
|
|
2247
|
+
}, Bn = {
|
|
2245
2248
|
name: "Fragment",
|
|
2246
2249
|
static: !0,
|
|
2247
2250
|
hidden: !0,
|
|
2248
2251
|
canHaveChildren: !0,
|
|
2249
2252
|
noWrap: !0
|
|
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"],
|
|
2253
|
+
}, 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"], Nn = ["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"], $n = {
|
|
2251
2254
|
name: "Image",
|
|
2252
2255
|
static: !0,
|
|
2253
2256
|
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",
|
|
@@ -2406,14 +2409,14 @@ function G(e) {
|
|
|
2406
2409
|
}
|
|
2407
2410
|
);
|
|
2408
2411
|
}
|
|
2409
|
-
function
|
|
2410
|
-
var v, T,
|
|
2411
|
-
const t =
|
|
2412
|
+
function Dn(e) {
|
|
2413
|
+
var v, T, w, U, H, q, y, x, V, A, $, E, R;
|
|
2414
|
+
const t = K(null), [n, i] = k(
|
|
2412
2415
|
() => Ie.getUserAttributes()
|
|
2413
2416
|
), [r, a] = k(
|
|
2414
2417
|
() => {
|
|
2415
2418
|
var I, N, C;
|
|
2416
|
-
return
|
|
2419
|
+
return wn(
|
|
2417
2420
|
e.variants,
|
|
2418
2421
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2419
2422
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
@@ -2422,7 +2425,7 @@ function $n(e) {
|
|
|
2422
2425
|
), [o, l] = k(
|
|
2423
2426
|
() => {
|
|
2424
2427
|
var I, N, C;
|
|
2425
|
-
return
|
|
2428
|
+
return En(
|
|
2426
2429
|
e.variants,
|
|
2427
2430
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2428
2431
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
@@ -2431,7 +2434,7 @@ function $n(e) {
|
|
|
2431
2434
|
), [c, d] = k(() => []), [h, g] = k(
|
|
2432
2435
|
() => {
|
|
2433
2436
|
var I;
|
|
2434
|
-
return
|
|
2437
|
+
return Cn(
|
|
2435
2438
|
e.variants,
|
|
2436
2439
|
ee((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2437
2440
|
);
|
|
@@ -2440,16 +2443,16 @@ function $n(e) {
|
|
|
2440
2443
|
function m() {
|
|
2441
2444
|
return {
|
|
2442
2445
|
...e.attributes,
|
|
2443
|
-
[
|
|
2446
|
+
[z()]: `builder-personalization-container ${e.attributes[z()] || ""}`
|
|
2444
2447
|
};
|
|
2445
2448
|
}
|
|
2446
2449
|
function b() {
|
|
2447
2450
|
return (e.variants || []).filter((I) => {
|
|
2448
|
-
var N, C,
|
|
2449
|
-
return
|
|
2451
|
+
var N, C, W, F;
|
|
2452
|
+
return pn(
|
|
2450
2453
|
{
|
|
2451
2454
|
...(C = (N = e.builderContext) == null ? void 0 : N.rootState) != null && C.locale ? {
|
|
2452
|
-
locale: (F = (
|
|
2455
|
+
locale: (F = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : F.locale
|
|
2453
2456
|
} : {},
|
|
2454
2457
|
...n
|
|
2455
2458
|
},
|
|
@@ -2461,7 +2464,7 @@ function $n(e) {
|
|
|
2461
2464
|
}
|
|
2462
2465
|
function p() {
|
|
2463
2466
|
var I;
|
|
2464
|
-
return
|
|
2467
|
+
return Tn({
|
|
2465
2468
|
variants: e.variants,
|
|
2466
2469
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2467
2470
|
isHydrated: u,
|
|
@@ -2527,12 +2530,12 @@ function $n(e) {
|
|
|
2527
2530
|
registeredComponents: e.builderComponents,
|
|
2528
2531
|
BlocksWrapperProps: {
|
|
2529
2532
|
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2530
|
-
"data-variant-id": `${(
|
|
2533
|
+
"data-variant-id": `${(w = e.builderBlock) == null ? void 0 : w.id}-${p().index}`
|
|
2531
2534
|
}
|
|
2532
2535
|
}
|
|
2533
2536
|
) : null,
|
|
2534
|
-
!u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(
|
|
2535
|
-
h ? /* @__PURE__ */ D(
|
|
2537
|
+
!u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(P, { children: [
|
|
2538
|
+
h ? /* @__PURE__ */ D(P, { children: [
|
|
2536
2539
|
/* @__PURE__ */ s(
|
|
2537
2540
|
te,
|
|
2538
2541
|
{
|
|
@@ -2550,7 +2553,7 @@ function $n(e) {
|
|
|
2550
2553
|
}
|
|
2551
2554
|
),
|
|
2552
2555
|
(x = e.variants) == null ? void 0 : x.map((I, N) => {
|
|
2553
|
-
var C,
|
|
2556
|
+
var C, W, F, L, j, Te;
|
|
2554
2557
|
return /* @__PURE__ */ s(
|
|
2555
2558
|
M,
|
|
2556
2559
|
{
|
|
@@ -2558,7 +2561,7 @@ function $n(e) {
|
|
|
2558
2561
|
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2559
2562
|
"aria-hidden": !0,
|
|
2560
2563
|
hidden: !0,
|
|
2561
|
-
"data-variant-id": `${(
|
|
2564
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${N}`
|
|
2562
2565
|
},
|
|
2563
2566
|
blocks: I.blocks,
|
|
2564
2567
|
parent: (F = e.builderBlock) == null ? void 0 : F.id,
|
|
@@ -2588,14 +2591,14 @@ function $n(e) {
|
|
|
2588
2591
|
registeredComponents: e.builderComponents,
|
|
2589
2592
|
BlocksWrapperProps: {
|
|
2590
2593
|
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2591
|
-
"data-variant-id": `${(
|
|
2594
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${p().index}`
|
|
2592
2595
|
},
|
|
2593
2596
|
children: h ? /* @__PURE__ */ s(
|
|
2594
2597
|
G,
|
|
2595
2598
|
{
|
|
2596
|
-
nonce: ((
|
|
2599
|
+
nonce: ((E = e.builderContext) == null ? void 0 : E.nonce) || "",
|
|
2597
2600
|
scriptStr: r,
|
|
2598
|
-
id: `variants-script-${(
|
|
2601
|
+
id: `variants-script-${(R = e.builderBlock) == null ? void 0 : R.id}-${ne}`
|
|
2599
2602
|
}
|
|
2600
2603
|
) : null
|
|
2601
2604
|
}
|
|
@@ -2603,7 +2606,7 @@ function $n(e) {
|
|
|
2603
2606
|
] }) : null
|
|
2604
2607
|
] });
|
|
2605
2608
|
}
|
|
2606
|
-
const
|
|
2609
|
+
const On = {
|
|
2607
2610
|
name: "Core:Section",
|
|
2608
2611
|
static: !0,
|
|
2609
2612
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2642,7 +2645,7 @@ const Dn = {
|
|
|
2642
2645
|
}
|
|
2643
2646
|
}
|
|
2644
2647
|
}]
|
|
2645
|
-
},
|
|
2648
|
+
}, Fn = {
|
|
2646
2649
|
name: "Slot",
|
|
2647
2650
|
isRSC: !0,
|
|
2648
2651
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2660,7 +2663,7 @@ const Dn = {
|
|
|
2660
2663
|
builderComponents: !0
|
|
2661
2664
|
}
|
|
2662
2665
|
};
|
|
2663
|
-
function
|
|
2666
|
+
function Ln(e) {
|
|
2664
2667
|
var t, n, i;
|
|
2665
2668
|
return /* @__PURE__ */ s(
|
|
2666
2669
|
"div",
|
|
@@ -2684,7 +2687,7 @@ function Fn(e) {
|
|
|
2684
2687
|
}
|
|
2685
2688
|
);
|
|
2686
2689
|
}
|
|
2687
|
-
const
|
|
2690
|
+
const _n = {
|
|
2688
2691
|
name: "Symbol",
|
|
2689
2692
|
noWrap: !0,
|
|
2690
2693
|
static: !0,
|
|
@@ -2761,7 +2764,7 @@ const Ln = {
|
|
|
2761
2764
|
text: "New tab content "
|
|
2762
2765
|
}
|
|
2763
2766
|
}
|
|
2764
|
-
},
|
|
2767
|
+
}, Un = {
|
|
2765
2768
|
name: "Builder: Tabs",
|
|
2766
2769
|
inputs: [{
|
|
2767
2770
|
name: "tabs",
|
|
@@ -2865,7 +2868,7 @@ const Ln = {
|
|
|
2865
2868
|
builderLinkComponent: !0
|
|
2866
2869
|
}
|
|
2867
2870
|
};
|
|
2868
|
-
function
|
|
2871
|
+
function Hn(e) {
|
|
2869
2872
|
var o;
|
|
2870
2873
|
const [t, n] = k(
|
|
2871
2874
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2925,7 +2928,7 @@ function Un(e) {
|
|
|
2925
2928
|
) }) : null
|
|
2926
2929
|
] });
|
|
2927
2930
|
}
|
|
2928
|
-
const
|
|
2931
|
+
const Mn = {
|
|
2929
2932
|
shouldReceiveBuilderProps: {},
|
|
2930
2933
|
name: "Text",
|
|
2931
2934
|
static: !0,
|
|
@@ -2944,7 +2947,7 @@ const Hn = {
|
|
|
2944
2947
|
textAlign: "center"
|
|
2945
2948
|
}
|
|
2946
2949
|
};
|
|
2947
|
-
function
|
|
2950
|
+
function qn(e) {
|
|
2948
2951
|
var t;
|
|
2949
2952
|
return /* @__PURE__ */ s(
|
|
2950
2953
|
"div",
|
|
@@ -2957,7 +2960,7 @@ function Mn(e) {
|
|
|
2957
2960
|
}
|
|
2958
2961
|
);
|
|
2959
2962
|
}
|
|
2960
|
-
const
|
|
2963
|
+
const jn = {
|
|
2961
2964
|
name: "Custom Code",
|
|
2962
2965
|
static: !0,
|
|
2963
2966
|
requiredPermissions: ["editCode"],
|
|
@@ -2980,8 +2983,8 @@ const qn = {
|
|
|
2980
2983
|
advanced: !0
|
|
2981
2984
|
}]
|
|
2982
2985
|
};
|
|
2983
|
-
function
|
|
2984
|
-
const t =
|
|
2986
|
+
function Kn(e) {
|
|
2987
|
+
const t = K(null), [n, i] = k(() => []), [r, a] = k(() => []);
|
|
2985
2988
|
function o() {
|
|
2986
2989
|
var c;
|
|
2987
2990
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -3041,9 +3044,9 @@ const zn = {
|
|
|
3041
3044
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3042
3045
|
hideFromUI: !0
|
|
3043
3046
|
}]
|
|
3044
|
-
},
|
|
3045
|
-
function
|
|
3046
|
-
const t =
|
|
3047
|
+
}, Jn = ["text/javascript", "application/javascript", "application/ecmascript"], Gn = (e) => Jn.includes(e.type);
|
|
3048
|
+
function Qn(e) {
|
|
3049
|
+
const t = K(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
|
|
3047
3050
|
function c() {
|
|
3048
3051
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3049
3052
|
return;
|
|
@@ -3054,7 +3057,7 @@ function Gn(e) {
|
|
|
3054
3057
|
n.push(g.src);
|
|
3055
3058
|
const u = document.createElement("script");
|
|
3056
3059
|
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
3057
|
-
} else if (
|
|
3060
|
+
} else if (Gn(g) && !r.includes(g.innerText))
|
|
3058
3061
|
try {
|
|
3059
3062
|
r.push(g.innerText), new Function(g.innerText)();
|
|
3060
3063
|
} catch (u) {
|
|
@@ -3073,7 +3076,7 @@ function Gn(e) {
|
|
|
3073
3076
|
}
|
|
3074
3077
|
);
|
|
3075
3078
|
}
|
|
3076
|
-
const
|
|
3079
|
+
const Yn = {
|
|
3077
3080
|
name: "Form:Form",
|
|
3078
3081
|
// editableTags: ['builder-form-error']
|
|
3079
3082
|
defaults: {
|
|
@@ -3310,12 +3313,12 @@ const Qn = {
|
|
|
3310
3313
|
builderComponents: !0,
|
|
3311
3314
|
builderLinkComponent: !0
|
|
3312
3315
|
}
|
|
3313
|
-
},
|
|
3316
|
+
}, Xn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Zn = () => {
|
|
3314
3317
|
const e = process.env.NODE_ENV || "production";
|
|
3315
|
-
return
|
|
3318
|
+
return Xn.includes(e) ? e : "production";
|
|
3316
3319
|
};
|
|
3317
|
-
function
|
|
3318
|
-
const t =
|
|
3320
|
+
function ei(e) {
|
|
3321
|
+
const t = K(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3319
3322
|
function c(u) {
|
|
3320
3323
|
var m, b;
|
|
3321
3324
|
const S = {
|
|
@@ -3369,18 +3372,18 @@ function Zn(e) {
|
|
|
3369
3372
|
value: x
|
|
3370
3373
|
};
|
|
3371
3374
|
});
|
|
3372
|
-
let
|
|
3373
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3374
|
-
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (
|
|
3375
|
-
}),
|
|
3375
|
+
let w = e.contentType;
|
|
3376
|
+
if (e.sendSubmissionsTo === "email" && (w = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
|
|
3377
|
+
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (w = "multipart/form-data");
|
|
3378
|
+
}), w !== "application/json")
|
|
3376
3379
|
f = v;
|
|
3377
3380
|
else {
|
|
3378
3381
|
const y = {};
|
|
3379
3382
|
Array.from(T).forEach(({ value: x, key: V }) => {
|
|
3380
|
-
|
|
3383
|
+
Je(y, V, x);
|
|
3381
3384
|
}), f = JSON.stringify(y);
|
|
3382
3385
|
}
|
|
3383
|
-
|
|
3386
|
+
w && w !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = w));
|
|
3384
3387
|
const U = new CustomEvent("presubmit", { detail: { body: f } });
|
|
3385
3388
|
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3386
3389
|
return;
|
|
@@ -3389,40 +3392,40 @@ function Zn(e) {
|
|
|
3389
3392
|
console.error(y), i("error"), c({ formErrorMessage: y });
|
|
3390
3393
|
return;
|
|
3391
3394
|
}
|
|
3392
|
-
const H = `${
|
|
3395
|
+
const H = `${Zn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3393
3396
|
e.sendSubmissionsToEmail || ""
|
|
3394
3397
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3395
|
-
|
|
3398
|
+
_e(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
|
|
3396
3399
|
async (y) => {
|
|
3397
|
-
var A,
|
|
3400
|
+
var A, $;
|
|
3398
3401
|
let x;
|
|
3399
3402
|
const V = y.headers.get("content-type");
|
|
3400
3403
|
if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
|
|
3401
|
-
const
|
|
3404
|
+
const E = new CustomEvent("submit:error", {
|
|
3402
3405
|
detail: { error: x, status: y.status }
|
|
3403
3406
|
});
|
|
3404
|
-
if ((A = t.current) != null && A.nativeElement && ((
|
|
3407
|
+
if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(E), E.defaultPrevented))
|
|
3405
3408
|
return;
|
|
3406
3409
|
a(x), i("error");
|
|
3407
|
-
let
|
|
3408
|
-
typeof
|
|
3410
|
+
let R = e.errorMessagePath ? je(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3411
|
+
typeof R != "string" && (R = JSON.stringify(R)), l(R), c({ formErrorMessage: R });
|
|
3409
3412
|
return;
|
|
3410
3413
|
}
|
|
3411
3414
|
if (a(x), i(y.ok ? "success" : "error"), y.ok) {
|
|
3412
|
-
const
|
|
3415
|
+
const E = new CustomEvent("submit:success", {
|
|
3413
3416
|
detail: { res: y, body: x }
|
|
3414
3417
|
});
|
|
3415
3418
|
if (t.current) {
|
|
3416
|
-
if (t.current.dispatchEvent(
|
|
3419
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
3417
3420
|
return;
|
|
3418
3421
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3419
3422
|
}
|
|
3420
3423
|
if (e.successUrl)
|
|
3421
3424
|
if (t.current) {
|
|
3422
|
-
const
|
|
3425
|
+
const R = new CustomEvent("route", {
|
|
3423
3426
|
detail: { url: e.successUrl }
|
|
3424
3427
|
});
|
|
3425
|
-
t.current.dispatchEvent(
|
|
3428
|
+
t.current.dispatchEvent(R), R.defaultPrevented || (location.href = e.successUrl);
|
|
3426
3429
|
} else
|
|
3427
3430
|
location.href = e.successUrl;
|
|
3428
3431
|
}
|
|
@@ -3436,7 +3439,7 @@ function Zn(e) {
|
|
|
3436
3439
|
);
|
|
3437
3440
|
}
|
|
3438
3441
|
}
|
|
3439
|
-
return /* @__PURE__ */ D(
|
|
3442
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
3440
3443
|
" ",
|
|
3441
3444
|
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3442
3445
|
" ",
|
|
@@ -3483,7 +3486,7 @@ function Zn(e) {
|
|
|
3483
3486
|
" "
|
|
3484
3487
|
] });
|
|
3485
3488
|
}
|
|
3486
|
-
const
|
|
3489
|
+
const ti = {
|
|
3487
3490
|
name: "Form:Input",
|
|
3488
3491
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3489
3492
|
inputs: [
|
|
@@ -3535,8 +3538,8 @@ const ei = {
|
|
|
3535
3538
|
borderColor: "#ccc"
|
|
3536
3539
|
}
|
|
3537
3540
|
};
|
|
3538
|
-
function
|
|
3539
|
-
return /* @__PURE__ */
|
|
3541
|
+
function ni(e) {
|
|
3542
|
+
return /* @__PURE__ */ Me(
|
|
3540
3543
|
"input",
|
|
3541
3544
|
{
|
|
3542
3545
|
...e.attributes,
|
|
@@ -3550,7 +3553,7 @@ function ti(e) {
|
|
|
3550
3553
|
}
|
|
3551
3554
|
);
|
|
3552
3555
|
}
|
|
3553
|
-
const
|
|
3556
|
+
const ii = {
|
|
3554
3557
|
name: "Form:Select",
|
|
3555
3558
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3556
3559
|
defaultStyles: {
|
|
@@ -3593,9 +3596,9 @@ const ni = {
|
|
|
3593
3596
|
static: !0,
|
|
3594
3597
|
noWrap: !0
|
|
3595
3598
|
};
|
|
3596
|
-
function
|
|
3599
|
+
function ri(e) {
|
|
3597
3600
|
var t;
|
|
3598
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ Me(
|
|
3599
3602
|
"select",
|
|
3600
3603
|
{
|
|
3601
3604
|
...e.attributes,
|
|
@@ -3608,7 +3611,7 @@ function ii(e) {
|
|
|
3608
3611
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3609
3612
|
);
|
|
3610
3613
|
}
|
|
3611
|
-
const
|
|
3614
|
+
const ai = {
|
|
3612
3615
|
name: "Form:SubmitButton",
|
|
3613
3616
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3614
3617
|
defaultStyles: {
|
|
@@ -3634,10 +3637,10 @@ const ri = {
|
|
|
3634
3637
|
// TODO: defaultChildren
|
|
3635
3638
|
// canHaveChildren: true,
|
|
3636
3639
|
};
|
|
3637
|
-
function
|
|
3640
|
+
function oi(e) {
|
|
3638
3641
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3639
3642
|
}
|
|
3640
|
-
const
|
|
3643
|
+
const li = {
|
|
3641
3644
|
name: "Form:TextArea",
|
|
3642
3645
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3643
3646
|
inputs: [{
|
|
@@ -3674,7 +3677,7 @@ const oi = {
|
|
|
3674
3677
|
static: !0,
|
|
3675
3678
|
noWrap: !0
|
|
3676
3679
|
};
|
|
3677
|
-
function
|
|
3680
|
+
function si(e) {
|
|
3678
3681
|
return /* @__PURE__ */ s(
|
|
3679
3682
|
"textarea",
|
|
3680
3683
|
{
|
|
@@ -3687,7 +3690,7 @@ function li(e) {
|
|
|
3687
3690
|
}
|
|
3688
3691
|
);
|
|
3689
3692
|
}
|
|
3690
|
-
const
|
|
3693
|
+
const ci = {
|
|
3691
3694
|
name: "Raw:Img",
|
|
3692
3695
|
hideFromInsertMenu: !0,
|
|
3693
3696
|
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",
|
|
@@ -3732,12 +3735,12 @@ const si = {
|
|
|
3732
3735
|
}],
|
|
3733
3736
|
noWrap: !0
|
|
3734
3737
|
};
|
|
3735
|
-
function
|
|
3738
|
+
function ui(e) {
|
|
3736
3739
|
var n;
|
|
3737
3740
|
function t() {
|
|
3738
3741
|
const i = {
|
|
3739
3742
|
...e.attributes,
|
|
3740
|
-
[
|
|
3743
|
+
[z()]: `builder-raw-img ${e.attributes[z()] || ""}`
|
|
3741
3744
|
};
|
|
3742
3745
|
return delete i.style, i;
|
|
3743
3746
|
}
|
|
@@ -3759,7 +3762,7 @@ function ci(e) {
|
|
|
3759
3762
|
_() && e.imgSrc || "default-key"
|
|
3760
3763
|
);
|
|
3761
3764
|
}
|
|
3762
|
-
const
|
|
3765
|
+
const di = {
|
|
3763
3766
|
name: "Video",
|
|
3764
3767
|
canHaveChildren: !0,
|
|
3765
3768
|
defaultStyles: {
|
|
@@ -3770,7 +3773,7 @@ const ui = {
|
|
|
3770
3773
|
inputs: [{
|
|
3771
3774
|
name: "video",
|
|
3772
3775
|
type: "file",
|
|
3773
|
-
allowedFileTypes:
|
|
3776
|
+
allowedFileTypes: Nn,
|
|
3774
3777
|
bubble: !0,
|
|
3775
3778
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3776
3779
|
required: !0
|
|
@@ -3844,9 +3847,9 @@ const ui = {
|
|
|
3844
3847
|
builderBlock: !0
|
|
3845
3848
|
}
|
|
3846
3849
|
};
|
|
3847
|
-
function
|
|
3850
|
+
function mi(e) {
|
|
3848
3851
|
var o, l, c, d, h, g, u;
|
|
3849
|
-
const t =
|
|
3852
|
+
const t = K(null);
|
|
3850
3853
|
function n() {
|
|
3851
3854
|
return {
|
|
3852
3855
|
...e.autoPlay === !0 ? {
|
|
@@ -3980,67 +3983,67 @@ function di(e) {
|
|
|
3980
3983
|
}
|
|
3981
3984
|
);
|
|
3982
3985
|
}
|
|
3983
|
-
const
|
|
3984
|
-
component:
|
|
3985
|
-
...
|
|
3986
|
+
const fi = () => [{
|
|
3987
|
+
component: Kn,
|
|
3988
|
+
...jn
|
|
3986
3989
|
}, {
|
|
3987
|
-
component:
|
|
3990
|
+
component: Qn,
|
|
3988
3991
|
...zn
|
|
3989
3992
|
}, {
|
|
3990
|
-
component:
|
|
3991
|
-
...
|
|
3992
|
-
}, {
|
|
3993
|
-
component: ti,
|
|
3994
|
-
...ei
|
|
3993
|
+
component: ei,
|
|
3994
|
+
...Yn
|
|
3995
3995
|
}, {
|
|
3996
|
-
component:
|
|
3997
|
-
...
|
|
3996
|
+
component: ni,
|
|
3997
|
+
...ti
|
|
3998
3998
|
}, {
|
|
3999
|
-
component:
|
|
4000
|
-
...
|
|
3999
|
+
component: oi,
|
|
4000
|
+
...ai
|
|
4001
4001
|
}, {
|
|
4002
|
-
component:
|
|
4003
|
-
...
|
|
4002
|
+
component: ri,
|
|
4003
|
+
...ii
|
|
4004
4004
|
}, {
|
|
4005
|
-
component:
|
|
4006
|
-
...
|
|
4005
|
+
component: si,
|
|
4006
|
+
...li
|
|
4007
4007
|
}, {
|
|
4008
|
-
component:
|
|
4009
|
-
...
|
|
4010
|
-
}], We = () => [{
|
|
4011
|
-
component: vt,
|
|
4012
|
-
...Pn
|
|
4008
|
+
component: ui,
|
|
4009
|
+
...ci
|
|
4013
4010
|
}, {
|
|
4014
|
-
component:
|
|
4011
|
+
component: mi,
|
|
4012
|
+
...di
|
|
4013
|
+
}], $e = () => [{
|
|
4014
|
+
component: xt,
|
|
4015
4015
|
...Vn
|
|
4016
4016
|
}, {
|
|
4017
4017
|
component: mn,
|
|
4018
4018
|
...An
|
|
4019
4019
|
}, {
|
|
4020
|
-
component:
|
|
4021
|
-
...
|
|
4020
|
+
component: fn,
|
|
4021
|
+
...Bn
|
|
4022
4022
|
}, {
|
|
4023
4023
|
component: gn,
|
|
4024
|
-
|
|
4024
|
+
...$n
|
|
4025
4025
|
}, {
|
|
4026
|
-
component:
|
|
4026
|
+
component: yn,
|
|
4027
4027
|
...On
|
|
4028
4028
|
}, {
|
|
4029
|
-
component:
|
|
4030
|
-
...
|
|
4029
|
+
component: Ln,
|
|
4030
|
+
...Fn
|
|
4031
|
+
}, {
|
|
4032
|
+
component: Fi,
|
|
4033
|
+
..._n
|
|
4031
4034
|
}, {
|
|
4032
|
-
component:
|
|
4033
|
-
...
|
|
4034
|
-
}, ...
|
|
4035
|
-
component:
|
|
4035
|
+
component: qn,
|
|
4036
|
+
...Mn
|
|
4037
|
+
}, ...ot.includes(O) ? [{
|
|
4038
|
+
component: Dn,
|
|
4036
4039
|
...Wn
|
|
4037
4040
|
}] : [], {
|
|
4038
|
-
component:
|
|
4039
|
-
...
|
|
4041
|
+
component: Hn,
|
|
4042
|
+
...Un
|
|
4040
4043
|
}, {
|
|
4041
|
-
component:
|
|
4042
|
-
...
|
|
4043
|
-
}, ...
|
|
4044
|
+
component: Pn,
|
|
4045
|
+
...Rn
|
|
4046
|
+
}, ...fi()], hi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4044
4047
|
function getAndSetVariantId() {
|
|
4045
4048
|
function setCookie(name, value, days) {
|
|
4046
4049
|
let expires = '';
|
|
@@ -4099,7 +4102,7 @@ const mi = () => [{
|
|
|
4099
4102
|
}).join('');
|
|
4100
4103
|
styleEl.innerHTML = newStyleStr;
|
|
4101
4104
|
}
|
|
4102
|
-
}`,
|
|
4105
|
+
}`, bi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4103
4106
|
if (!navigator.cookieEnabled) {
|
|
4104
4107
|
return;
|
|
4105
4108
|
}
|
|
@@ -4133,29 +4136,59 @@ const mi = () => [{
|
|
|
4133
4136
|
thisScriptEl?.remove();
|
|
4134
4137
|
}
|
|
4135
4138
|
return;
|
|
4136
|
-
}`,
|
|
4139
|
+
}`, st = "builderIoAbTest", ct = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4137
4140
|
...t,
|
|
4138
4141
|
testVariationId: t.id,
|
|
4139
4142
|
id: e == null ? void 0 : e.id
|
|
4140
|
-
})),
|
|
4143
|
+
})), gi = ({
|
|
4141
4144
|
canTrack: e,
|
|
4142
4145
|
content: t
|
|
4143
|
-
}) => !(!(re(t).length > 0) || !e || J()),
|
|
4144
|
-
|
|
4146
|
+
}) => !(!(re(t).length > 0) || !e || J()), yi = (e) => e === "react" || e === "reactNative", pi = O === "angular", ut = yi(O), We = (e, t) => `
|
|
4147
|
+
(function() {
|
|
4148
|
+
var selector = 'script[data-id="${e}"]';
|
|
4149
|
+
var scriptKey = '__builderioScriptInitialized_${e}';
|
|
4150
|
+
var observerKey = '__builderioScriptObserver_${e}';
|
|
4151
|
+
|
|
4152
|
+
// Synchronously remove any duplicates already in the DOM
|
|
4153
|
+
var existing = document.querySelectorAll(selector);
|
|
4154
|
+
existing.forEach(function(script, index) {
|
|
4155
|
+
if (index > 0) {
|
|
4156
|
+
script.parentNode && script.parentNode.removeChild(script);
|
|
4157
|
+
}
|
|
4158
|
+
});
|
|
4159
|
+
|
|
4160
|
+
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
4161
|
+
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
4162
|
+
window[observerKey] = new MutationObserver(function() {
|
|
4163
|
+
var all = document.querySelectorAll(selector);
|
|
4164
|
+
for (var i = 1; i < all.length; i++) {
|
|
4165
|
+
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
4166
|
+
}
|
|
4167
|
+
});
|
|
4168
|
+
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
if (!window[scriptKey]) {
|
|
4172
|
+
window[scriptKey] = true;
|
|
4173
|
+
${t}
|
|
4174
|
+
}
|
|
4175
|
+
})();
|
|
4176
|
+
`, vi = () => `
|
|
4145
4177
|
window.${st} = ${hi}
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4178
|
+
window.${ct} = ${bi}
|
|
4179
|
+
`, xi = (e, t) => `
|
|
4180
|
+
window.${st}(
|
|
4181
|
+
"${t}",${JSON.stringify(e)}, ${ut}, ${pi}
|
|
4182
|
+
)`, Si = ({
|
|
4150
4183
|
contentId: e,
|
|
4151
4184
|
variationId: t
|
|
4152
|
-
}) => `window.${
|
|
4153
|
-
"${t}", "${e}", ${
|
|
4185
|
+
}) => `window.${ct}(
|
|
4186
|
+
"${t}", "${e}", ${ut}
|
|
4154
4187
|
)`;
|
|
4155
|
-
function
|
|
4188
|
+
function De(e) {
|
|
4156
4189
|
return Math.round(e * 1e3) / 1e3;
|
|
4157
4190
|
}
|
|
4158
|
-
const
|
|
4191
|
+
const ki = (e, t, n = !0) => {
|
|
4159
4192
|
if (!(e instanceof HTMLElement))
|
|
4160
4193
|
return null;
|
|
4161
4194
|
let i = n ? e : e.parentElement;
|
|
@@ -4166,35 +4199,35 @@ const Si = (e, t, n = !0) => {
|
|
|
4166
4199
|
return i;
|
|
4167
4200
|
} while (i = i.parentElement);
|
|
4168
4201
|
return null;
|
|
4169
|
-
},
|
|
4202
|
+
}, Ci = (e) => ki(e, (t) => {
|
|
4170
4203
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4171
4204
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4172
|
-
}),
|
|
4205
|
+
}), Oe = ({
|
|
4173
4206
|
event: e,
|
|
4174
4207
|
target: t
|
|
4175
4208
|
}) => {
|
|
4176
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a =
|
|
4209
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = De(i / n.width), o = De(r / n.height);
|
|
4177
4210
|
return {
|
|
4178
4211
|
x: a,
|
|
4179
4212
|
y: o
|
|
4180
4213
|
};
|
|
4181
|
-
},
|
|
4182
|
-
const t = e.target, n = t &&
|
|
4214
|
+
}, Ti = (e) => {
|
|
4215
|
+
const t = e.target, n = t && Ci(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4183
4216
|
return {
|
|
4184
4217
|
targetBuilderElement: i || void 0,
|
|
4185
4218
|
metadata: {
|
|
4186
|
-
targetOffset: t ?
|
|
4219
|
+
targetOffset: t ? Oe({
|
|
4187
4220
|
event: e,
|
|
4188
4221
|
target: t
|
|
4189
4222
|
}) : void 0,
|
|
4190
|
-
builderTargetOffset: n ?
|
|
4223
|
+
builderTargetOffset: n ? Oe({
|
|
4191
4224
|
event: e,
|
|
4192
4225
|
target: n
|
|
4193
4226
|
}) : void 0,
|
|
4194
4227
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4195
4228
|
}
|
|
4196
4229
|
};
|
|
4197
|
-
},
|
|
4230
|
+
}, Ii = ["svelte", "qwik", "vue"], Fe = () => Ii.includes(O) && (_() || le()), wi = (e) => {
|
|
4198
4231
|
var a, o;
|
|
4199
4232
|
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;
|
|
4200
4233
|
let r = "";
|
|
@@ -4220,15 +4253,15 @@ font-weight: ${l};
|
|
|
4220
4253
|
`.trim());
|
|
4221
4254
|
}
|
|
4222
4255
|
return r;
|
|
4223
|
-
},
|
|
4256
|
+
}, Ei = ({
|
|
4224
4257
|
customFonts: e
|
|
4225
4258
|
}) => {
|
|
4226
4259
|
var t;
|
|
4227
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4228
|
-
},
|
|
4260
|
+
return ((t = e == null ? void 0 : e.map((n) => wi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4261
|
+
}, Ri = ({
|
|
4229
4262
|
cssCode: e,
|
|
4230
4263
|
contentId: t
|
|
4231
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4264
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Pi = `
|
|
4232
4265
|
.builder-button {
|
|
4233
4266
|
all: unset;
|
|
4234
4267
|
}
|
|
@@ -4245,41 +4278,41 @@ font-weight: ${l};
|
|
|
4245
4278
|
text-align: inherit;
|
|
4246
4279
|
font-family: inherit;
|
|
4247
4280
|
}
|
|
4248
|
-
`,
|
|
4249
|
-
function
|
|
4281
|
+
`, Vi = (e) => e ? "" : Pi, Ai = (e) => `variant-${e}`;
|
|
4282
|
+
function Bi(e) {
|
|
4250
4283
|
var H, q, y;
|
|
4251
|
-
const t =
|
|
4284
|
+
const t = K(null);
|
|
4252
4285
|
k(() => !1), k(
|
|
4253
4286
|
() => e.builderContextSignal
|
|
4254
4287
|
);
|
|
4255
4288
|
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4256
4289
|
function o(x, V) {
|
|
4257
|
-
var
|
|
4290
|
+
var $, E;
|
|
4258
4291
|
const A = {
|
|
4259
4292
|
...e.builderContextSignal.rootState,
|
|
4260
4293
|
...x
|
|
4261
4294
|
};
|
|
4262
|
-
e.builderContextSignal.rootSetState ? (
|
|
4263
|
-
...
|
|
4295
|
+
e.builderContextSignal.rootSetState ? (E = ($ = e.builderContextSignal).rootSetState) == null || E.call($, A) : e.setBuilderContextSignal((R) => ({
|
|
4296
|
+
...R,
|
|
4264
4297
|
rootState: A
|
|
4265
|
-
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((
|
|
4266
|
-
...
|
|
4298
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((R) => ({
|
|
4299
|
+
...R,
|
|
4267
4300
|
rootState: A
|
|
4268
4301
|
}));
|
|
4269
4302
|
}
|
|
4270
4303
|
function l(x, V) {
|
|
4271
|
-
var
|
|
4304
|
+
var $, E, R, I, N;
|
|
4272
4305
|
const A = {
|
|
4273
4306
|
...e.builderContextSignal.content,
|
|
4274
4307
|
...x,
|
|
4275
4308
|
data: {
|
|
4276
|
-
...(
|
|
4309
|
+
...($ = e.builderContextSignal.content) == null ? void 0 : $.data,
|
|
4277
4310
|
...x == null ? void 0 : x.data
|
|
4278
4311
|
},
|
|
4279
4312
|
meta: {
|
|
4280
|
-
...(
|
|
4313
|
+
...(E = e.builderContextSignal.content) == null ? void 0 : E.meta,
|
|
4281
4314
|
...x == null ? void 0 : x.meta,
|
|
4282
|
-
breakpoints: ((
|
|
4315
|
+
breakpoints: ((R = x == null ? void 0 : x.meta) == null ? void 0 : R.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
|
|
4283
4316
|
}
|
|
4284
4317
|
};
|
|
4285
4318
|
e.setBuilderContextSignal((C) => ({
|
|
@@ -4297,21 +4330,21 @@ function Ai(e) {
|
|
|
4297
4330
|
() => e.contentWrapper || "div"
|
|
4298
4331
|
);
|
|
4299
4332
|
function g(x) {
|
|
4300
|
-
return
|
|
4333
|
+
return bt({
|
|
4301
4334
|
model: e.model,
|
|
4302
4335
|
trustedHosts: e.trustedHosts,
|
|
4303
4336
|
callbacks: {
|
|
4304
4337
|
configureSdk: (V) => {
|
|
4305
|
-
var
|
|
4306
|
-
const { breakpoints: A, contentId:
|
|
4307
|
-
|
|
4338
|
+
var E;
|
|
4339
|
+
const { breakpoints: A, contentId: $ } = V;
|
|
4340
|
+
!$ || $ !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || A && l({
|
|
4308
4341
|
meta: {
|
|
4309
4342
|
breakpoints: A
|
|
4310
4343
|
}
|
|
4311
4344
|
});
|
|
4312
4345
|
},
|
|
4313
4346
|
animation: (V) => {
|
|
4314
|
-
|
|
4347
|
+
Ye(V);
|
|
4315
4348
|
},
|
|
4316
4349
|
contentUpdate: (V, A) => {
|
|
4317
4350
|
l(V);
|
|
@@ -4326,32 +4359,32 @@ function Ai(e) {
|
|
|
4326
4359
|
function v(x) {
|
|
4327
4360
|
var V, A;
|
|
4328
4361
|
if (e.builderContextSignal.content) {
|
|
4329
|
-
const
|
|
4362
|
+
const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, E = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4330
4363
|
ye({
|
|
4331
4364
|
apiHost: e.apiHost,
|
|
4332
4365
|
type: "click",
|
|
4333
4366
|
canTrack: ee(e.canTrack),
|
|
4334
|
-
contentId:
|
|
4367
|
+
contentId: E,
|
|
4335
4368
|
apiKey: e.apiKey,
|
|
4336
|
-
variationId:
|
|
4337
|
-
...
|
|
4369
|
+
variationId: $ !== E ? $ : void 0,
|
|
4370
|
+
...Ti(x),
|
|
4338
4371
|
unique: !p
|
|
4339
4372
|
});
|
|
4340
4373
|
}
|
|
4341
4374
|
p || f(!0);
|
|
4342
4375
|
}
|
|
4343
4376
|
function T() {
|
|
4344
|
-
var V, A,
|
|
4345
|
-
const x = (
|
|
4377
|
+
var V, A, $;
|
|
4378
|
+
const x = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
|
|
4346
4379
|
Object.entries(x).forEach(
|
|
4347
|
-
([
|
|
4348
|
-
if (!
|
|
4380
|
+
([E, R]) => {
|
|
4381
|
+
if (!R)
|
|
4349
4382
|
return;
|
|
4350
|
-
const I = typeof
|
|
4351
|
-
if (m[
|
|
4383
|
+
const I = typeof R == "object" && R["@type"] === "@builder.io/core:Request";
|
|
4384
|
+
if (m[E] || u[E] && !_())
|
|
4352
4385
|
return;
|
|
4353
|
-
const N = I ?
|
|
4354
|
-
m[
|
|
4386
|
+
const N = I ? R.request.url : R;
|
|
4387
|
+
m[E] = !0;
|
|
4355
4388
|
const C = N.replace(
|
|
4356
4389
|
/{{([^}]+)}}/g,
|
|
4357
4390
|
(L, j) => String(
|
|
@@ -4363,38 +4396,38 @@ function Ai(e) {
|
|
|
4363
4396
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4364
4397
|
})
|
|
4365
4398
|
)
|
|
4366
|
-
),
|
|
4399
|
+
), W = I ? {
|
|
4367
4400
|
url: C,
|
|
4368
|
-
method:
|
|
4369
|
-
headers:
|
|
4370
|
-
body:
|
|
4401
|
+
method: R.request.method,
|
|
4402
|
+
headers: R.request.headers,
|
|
4403
|
+
body: R.request.body
|
|
4371
4404
|
} : {
|
|
4372
4405
|
url: C,
|
|
4373
4406
|
method: "GET"
|
|
4374
4407
|
};
|
|
4375
|
-
|
|
4408
|
+
_e(JSON.stringify(W));
|
|
4376
4409
|
const F = {
|
|
4377
|
-
method:
|
|
4378
|
-
headers:
|
|
4379
|
-
body:
|
|
4410
|
+
method: W.method,
|
|
4411
|
+
headers: W.headers,
|
|
4412
|
+
body: W.body
|
|
4380
4413
|
};
|
|
4381
|
-
|
|
4414
|
+
W.method === "GET" && delete F.body, fetch(W.url, F).then((L) => L.json()).then((L) => {
|
|
4382
4415
|
o({
|
|
4383
|
-
[
|
|
4384
|
-
}), u[
|
|
4416
|
+
[E]: L
|
|
4417
|
+
}), u[E] = !0;
|
|
4385
4418
|
}).catch((L) => {
|
|
4386
4419
|
console.error(
|
|
4387
4420
|
"error fetching dynamic data",
|
|
4388
|
-
JSON.stringify(
|
|
4421
|
+
JSON.stringify(R),
|
|
4389
4422
|
L
|
|
4390
4423
|
);
|
|
4391
4424
|
}).finally(() => {
|
|
4392
|
-
m[
|
|
4425
|
+
m[E] = !1;
|
|
4393
4426
|
});
|
|
4394
4427
|
}
|
|
4395
4428
|
);
|
|
4396
4429
|
}
|
|
4397
|
-
function
|
|
4430
|
+
function w() {
|
|
4398
4431
|
_() && window.dispatchEvent(
|
|
4399
4432
|
new CustomEvent(
|
|
4400
4433
|
"builder:component:stateChange",
|
|
@@ -4409,11 +4442,11 @@ function Ai(e) {
|
|
|
4409
4442
|
)
|
|
4410
4443
|
);
|
|
4411
4444
|
}
|
|
4412
|
-
const U =
|
|
4413
|
-
return U.current || (T(),
|
|
4414
|
-
var x, V, A,
|
|
4445
|
+
const U = K(!1);
|
|
4446
|
+
return U.current || (T(), w(), U.current = !0), B(() => {
|
|
4447
|
+
var x, V, A, $, E;
|
|
4415
4448
|
if (J()) {
|
|
4416
|
-
_() && !e.isNestedRender && (window.addEventListener("message", g),
|
|
4449
|
+
_() && !e.isNestedRender && (window.addEventListener("message", g), mt({
|
|
4417
4450
|
...e.locale ? {
|
|
4418
4451
|
locale: e.locale
|
|
4419
4452
|
} : {},
|
|
@@ -4428,39 +4461,39 @@ function Ai(e) {
|
|
|
4428
4461
|
}), Object.values(
|
|
4429
4462
|
e.builderContextSignal.componentInfos
|
|
4430
4463
|
).forEach((C) => {
|
|
4431
|
-
var
|
|
4432
|
-
if (!((
|
|
4433
|
-
const L =
|
|
4464
|
+
var W, F;
|
|
4465
|
+
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4466
|
+
const L = ft(C);
|
|
4434
4467
|
(F = window.parent) == null || F.postMessage(L, "*");
|
|
4435
4468
|
}
|
|
4436
4469
|
}), window.addEventListener(
|
|
4437
4470
|
"builder:component:stateChangeListenerActivated",
|
|
4438
|
-
|
|
4471
|
+
w
|
|
4439
4472
|
));
|
|
4440
|
-
const
|
|
4473
|
+
const R = e.builderContextSignal.content && ee(e.canTrack), I = ht({
|
|
4441
4474
|
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4442
4475
|
canTrack: !0
|
|
4443
4476
|
}), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4444
|
-
if (
|
|
4445
|
-
const C = (
|
|
4477
|
+
if (R && N === I) {
|
|
4478
|
+
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4446
4479
|
ye({
|
|
4447
4480
|
apiHost: e.apiHost,
|
|
4448
4481
|
type: "impression",
|
|
4449
4482
|
canTrack: !0,
|
|
4450
4483
|
contentId: C,
|
|
4451
|
-
apiKey:
|
|
4484
|
+
apiKey: W,
|
|
4452
4485
|
variationId: I !== C ? I : void 0
|
|
4453
4486
|
});
|
|
4454
4487
|
}
|
|
4455
4488
|
if (le() && !_()) {
|
|
4456
|
-
const C = new URL(location.href).searchParams,
|
|
4457
|
-
`builder.overrides.${
|
|
4489
|
+
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), F = C.get(
|
|
4490
|
+
`builder.overrides.${W}`
|
|
4458
4491
|
), L = C.get("apiKey") || C.get("builder.space");
|
|
4459
|
-
(
|
|
4492
|
+
(W === "BUILDER_STUDIO" || W === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && Ue({
|
|
4460
4493
|
model: e.model,
|
|
4461
4494
|
apiKey: e.apiKey,
|
|
4462
4495
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4463
|
-
|
|
4496
|
+
...W === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
|
|
4464
4497
|
query: {
|
|
4465
4498
|
id: e.context.symbolId
|
|
4466
4499
|
}
|
|
@@ -4473,7 +4506,7 @@ function Ai(e) {
|
|
|
4473
4506
|
}, []), B(() => {
|
|
4474
4507
|
e.content && l(e.content);
|
|
4475
4508
|
}, [e.content]), B(() => {
|
|
4476
|
-
|
|
4509
|
+
w();
|
|
4477
4510
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4478
4511
|
if (e.data) {
|
|
4479
4512
|
if (n === e.data)
|
|
@@ -4491,20 +4524,20 @@ function Ai(e) {
|
|
|
4491
4524
|
}, [e.locale]), B(() => () => {
|
|
4492
4525
|
J() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4493
4526
|
"builder:component:stateChangeListenerActivated",
|
|
4494
|
-
|
|
4527
|
+
w
|
|
4495
4528
|
));
|
|
4496
|
-
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4529
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Fe() ? /* @__PURE__ */ s(
|
|
4497
4530
|
d,
|
|
4498
4531
|
{
|
|
4499
4532
|
ref: t,
|
|
4500
4533
|
onClick: (x) => v(x),
|
|
4501
4534
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4502
4535
|
"builder-model": e.model,
|
|
4503
|
-
className:
|
|
4536
|
+
className: Ai(
|
|
4504
4537
|
((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
4505
4538
|
),
|
|
4506
4539
|
style: {
|
|
4507
|
-
display: !e.builderContextSignal.content &&
|
|
4540
|
+
display: !e.builderContextSignal.content && Fe() ? "none" : void 0
|
|
4508
4541
|
},
|
|
4509
4542
|
...c(),
|
|
4510
4543
|
...e.contentWrapperProps,
|
|
@@ -4512,17 +4545,17 @@ function Ai(e) {
|
|
|
4512
4545
|
}
|
|
4513
4546
|
) : null });
|
|
4514
4547
|
}
|
|
4515
|
-
function
|
|
4548
|
+
function Ni(e) {
|
|
4516
4549
|
const [t, n] = k(
|
|
4517
4550
|
() => `
|
|
4518
|
-
${
|
|
4551
|
+
${Ri({
|
|
4519
4552
|
cssCode: e.cssCode,
|
|
4520
4553
|
contentId: e.contentId
|
|
4521
4554
|
})}
|
|
4522
|
-
${
|
|
4555
|
+
${Ei({
|
|
4523
4556
|
customFonts: e.customFonts
|
|
4524
4557
|
})}
|
|
4525
|
-
${
|
|
4558
|
+
${Vi(e.isNestedRender)}
|
|
4526
4559
|
`.trim()
|
|
4527
4560
|
);
|
|
4528
4561
|
return /* @__PURE__ */ s(
|
|
@@ -4534,7 +4567,7 @@ ${Pi(e.isNestedRender)}
|
|
|
4534
4567
|
}
|
|
4535
4568
|
);
|
|
4536
4569
|
}
|
|
4537
|
-
const
|
|
4570
|
+
const $i = ({
|
|
4538
4571
|
content: e,
|
|
4539
4572
|
data: t,
|
|
4540
4573
|
locale: n
|
|
@@ -4562,12 +4595,12 @@ const Ni = ({
|
|
|
4562
4595
|
},
|
|
4563
4596
|
meta: e == null ? void 0 : e.meta
|
|
4564
4597
|
} : void 0;
|
|
4565
|
-
function
|
|
4598
|
+
function Le(e) {
|
|
4566
4599
|
var d, h, g, u, S, m, b, p, f;
|
|
4567
4600
|
const [t, n] = k(
|
|
4568
4601
|
() => {
|
|
4569
4602
|
var v, T;
|
|
4570
|
-
return
|
|
4603
|
+
return Si({
|
|
4571
4604
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4572
4605
|
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
4573
4606
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4583,14 +4616,14 @@ function Fe(e) {
|
|
|
4583
4616
|
}
|
|
4584
4617
|
const [r, a] = k(
|
|
4585
4618
|
() => [
|
|
4586
|
-
|
|
4619
|
+
...$e(),
|
|
4587
4620
|
...e.customComponents || []
|
|
4588
4621
|
].reduce(
|
|
4589
|
-
(v, { component: T, ...
|
|
4622
|
+
(v, { component: T, ...w }) => ({
|
|
4590
4623
|
...v,
|
|
4591
|
-
[
|
|
4624
|
+
[w.name]: {
|
|
4592
4625
|
component: T,
|
|
4593
|
-
...we(
|
|
4626
|
+
...we(w)
|
|
4594
4627
|
}
|
|
4595
4628
|
}),
|
|
4596
4629
|
{}
|
|
@@ -4601,7 +4634,7 @@ function Fe(e) {
|
|
|
4601
4634
|
data: e.data
|
|
4602
4635
|
}),
|
|
4603
4636
|
localState: void 0,
|
|
4604
|
-
rootState:
|
|
4637
|
+
rootState: $i({
|
|
4605
4638
|
content: e.content,
|
|
4606
4639
|
data: e.data,
|
|
4607
4640
|
locale: e.locale
|
|
@@ -4612,12 +4645,12 @@ function Fe(e) {
|
|
|
4612
4645
|
apiKey: e.apiKey,
|
|
4613
4646
|
apiVersion: e.apiVersion,
|
|
4614
4647
|
componentInfos: [
|
|
4615
|
-
|
|
4648
|
+
...$e(),
|
|
4616
4649
|
...e.customComponents || []
|
|
4617
4650
|
].reduce(
|
|
4618
|
-
(v, { component: T, ...
|
|
4651
|
+
(v, { component: T, ...w }) => ({
|
|
4619
4652
|
...v,
|
|
4620
|
-
[
|
|
4653
|
+
[w.name]: we(w)
|
|
4621
4654
|
}),
|
|
4622
4655
|
{}
|
|
4623
4656
|
),
|
|
@@ -4626,7 +4659,7 @@ function Fe(e) {
|
|
|
4626
4659
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4627
4660
|
nonce: e.nonce || "",
|
|
4628
4661
|
model: e.model
|
|
4629
|
-
})), c =
|
|
4662
|
+
})), c = K(!1);
|
|
4630
4663
|
if (!c.current) {
|
|
4631
4664
|
e.apiKey || Q.error(
|
|
4632
4665
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
@@ -4645,13 +4678,13 @@ function Fe(e) {
|
|
|
4645
4678
|
}
|
|
4646
4679
|
return B(() => {
|
|
4647
4680
|
}, [e.content, e.data, e.locale]), /* @__PURE__ */ s(
|
|
4648
|
-
|
|
4681
|
+
qe.Provider,
|
|
4649
4682
|
{
|
|
4650
4683
|
value: {
|
|
4651
4684
|
registeredComponents: r
|
|
4652
4685
|
},
|
|
4653
4686
|
children: /* @__PURE__ */ D(
|
|
4654
|
-
|
|
4687
|
+
Bi,
|
|
4655
4688
|
{
|
|
4656
4689
|
apiHost: e.apiHost,
|
|
4657
4690
|
nonce: e.nonce,
|
|
@@ -4680,7 +4713,7 @@ function Fe(e) {
|
|
|
4680
4713
|
}
|
|
4681
4714
|
) : null,
|
|
4682
4715
|
/* @__PURE__ */ s(
|
|
4683
|
-
|
|
4716
|
+
Ni,
|
|
4684
4717
|
{
|
|
4685
4718
|
nonce: e.nonce || "",
|
|
4686
4719
|
isNestedRender: e.isNestedRender,
|
|
@@ -4704,17 +4737,17 @@ function Fe(e) {
|
|
|
4704
4737
|
}
|
|
4705
4738
|
);
|
|
4706
4739
|
}
|
|
4707
|
-
function
|
|
4740
|
+
function Di(e) {
|
|
4708
4741
|
var o;
|
|
4709
4742
|
const [t, n] = k(
|
|
4710
|
-
() =>
|
|
4743
|
+
() => gi({
|
|
4711
4744
|
canTrack: ee(e.canTrack),
|
|
4712
4745
|
content: e.content
|
|
4713
4746
|
})
|
|
4714
4747
|
);
|
|
4715
4748
|
function i() {
|
|
4716
4749
|
var l;
|
|
4717
|
-
return
|
|
4750
|
+
return xi(
|
|
4718
4751
|
re(e.content).map((c) => ({
|
|
4719
4752
|
id: c.testVariationId,
|
|
4720
4753
|
testRatio: c.testRatio
|
|
@@ -4730,32 +4763,36 @@ function $i(e) {
|
|
|
4730
4763
|
return t ? {
|
|
4731
4764
|
...e.content,
|
|
4732
4765
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4733
|
-
} :
|
|
4766
|
+
} : gt({
|
|
4734
4767
|
item: e.content,
|
|
4735
4768
|
canTrack: ee(e.canTrack)
|
|
4736
4769
|
});
|
|
4737
4770
|
}
|
|
4738
4771
|
return B(() => {
|
|
4739
|
-
}, []), /* @__PURE__ */ D(
|
|
4740
|
-
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4772
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
4773
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4774
|
+
G,
|
|
4775
|
+
{
|
|
4776
|
+
id: "builderio-init-variants-fns",
|
|
4777
|
+
scriptStr: We(
|
|
4778
|
+
"builderio-init-variants-fns",
|
|
4779
|
+
vi()
|
|
4780
|
+
),
|
|
4781
|
+
nonce: e.nonce || ""
|
|
4782
|
+
}
|
|
4783
|
+
) : null,
|
|
4784
|
+
!e.isNestedRender && O !== "reactNative" && ot.includes(O) ? /* @__PURE__ */ s(
|
|
4785
|
+
G,
|
|
4786
|
+
{
|
|
4787
|
+
id: "builderio-init-personalization-variants-fns",
|
|
4788
|
+
nonce: e.nonce || "",
|
|
4789
|
+
scriptStr: We(
|
|
4790
|
+
"builderio-init-personalization-variants-fns",
|
|
4791
|
+
In()
|
|
4792
|
+
)
|
|
4793
|
+
}
|
|
4794
|
+
) : null,
|
|
4795
|
+
t ? /* @__PURE__ */ D(P, { children: [
|
|
4759
4796
|
/* @__PURE__ */ s(
|
|
4760
4797
|
te,
|
|
4761
4798
|
{
|
|
@@ -4773,7 +4810,7 @@ function $i(e) {
|
|
|
4773
4810
|
}
|
|
4774
4811
|
),
|
|
4775
4812
|
(o = re(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4776
|
-
|
|
4813
|
+
Le,
|
|
4777
4814
|
{
|
|
4778
4815
|
apiHost: e.apiHost,
|
|
4779
4816
|
isNestedRender: e.isNestedRender,
|
|
@@ -4801,7 +4838,7 @@ function $i(e) {
|
|
|
4801
4838
|
))
|
|
4802
4839
|
] }) : null,
|
|
4803
4840
|
/* @__PURE__ */ s(
|
|
4804
|
-
|
|
4841
|
+
Le,
|
|
4805
4842
|
{
|
|
4806
4843
|
apiHost: e.apiHost,
|
|
4807
4844
|
nonce: e.nonce,
|
|
@@ -4828,13 +4865,13 @@ function $i(e) {
|
|
|
4828
4865
|
)
|
|
4829
4866
|
] });
|
|
4830
4867
|
}
|
|
4831
|
-
const
|
|
4868
|
+
const Oi = async ({
|
|
4832
4869
|
builderContextValue: e,
|
|
4833
4870
|
symbol: t
|
|
4834
4871
|
}) => {
|
|
4835
4872
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4836
4873
|
(e != null && e.apiKey))
|
|
4837
|
-
return
|
|
4874
|
+
return Ue({
|
|
4838
4875
|
model: t.model,
|
|
4839
4876
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
4840
4877
|
apiVersion: e.apiVersion,
|
|
@@ -4847,7 +4884,7 @@ const Di = async ({
|
|
|
4847
4884
|
Q.error("Could not fetch symbol content: ", n);
|
|
4848
4885
|
});
|
|
4849
4886
|
};
|
|
4850
|
-
function
|
|
4887
|
+
function Fi(e) {
|
|
4851
4888
|
var h, g, u, S, m, b, p;
|
|
4852
4889
|
function t() {
|
|
4853
4890
|
return "div";
|
|
@@ -4861,7 +4898,7 @@ function Oi(e) {
|
|
|
4861
4898
|
function r() {
|
|
4862
4899
|
var f, v;
|
|
4863
4900
|
return [
|
|
4864
|
-
e.attributes[
|
|
4901
|
+
e.attributes[z()],
|
|
4865
4902
|
"builder-symbol",
|
|
4866
4903
|
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
4867
4904
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4876,7 +4913,7 @@ function Oi(e) {
|
|
|
4876
4913
|
});
|
|
4877
4914
|
function d() {
|
|
4878
4915
|
var f;
|
|
4879
|
-
a && l === ((f = e.symbol) == null ? void 0 : f.entry) ||
|
|
4916
|
+
a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Oi({
|
|
4880
4917
|
symbol: e.symbol,
|
|
4881
4918
|
builderContextValue: e.builderContext
|
|
4882
4919
|
}).then((v) => {
|
|
@@ -4888,7 +4925,7 @@ function Oi(e) {
|
|
|
4888
4925
|
}, []), B(() => {
|
|
4889
4926
|
d();
|
|
4890
4927
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4891
|
-
|
|
4928
|
+
Di,
|
|
4892
4929
|
{
|
|
4893
4930
|
nonce: e.builderContext.nonce,
|
|
4894
4931
|
isNestedRender: !0,
|
|
@@ -4916,14 +4953,14 @@ function Oi(e) {
|
|
|
4916
4953
|
export {
|
|
4917
4954
|
M as Blocks,
|
|
4918
4955
|
se as BuilderContext,
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4956
|
+
xt as Button,
|
|
4957
|
+
mn as Columns,
|
|
4958
|
+
Di as Content,
|
|
4959
|
+
fn as Fragment,
|
|
4960
|
+
gn as Image,
|
|
4961
|
+
yn as Section,
|
|
4962
|
+
Fi as Symbol,
|
|
4963
|
+
qn as Text,
|
|
4964
|
+
mi as Video,
|
|
4965
|
+
qi as setClientUserAttributes
|
|
4929
4966
|
};
|