@builder.io/sdk-react 5.2.2 → 5.2.3
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 +32 -62
- package/lib/browser/blocks-exports.mjs +433 -467
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-44ac782f.cjs → server-entry-4bf14bc1.cjs} +1 -1
- package/lib/browser/{server-entry-aff2c5ee.js → server-entry-a6f43f98.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-3144e69e.js → accordion-52741334.js} +1 -1
- package/lib/edge/{accordion-8b1afed8.cjs → accordion-6c708d49.cjs} +1 -1
- package/lib/edge/{blocks-817f9485.js → blocks-af5e55f6.js} +2 -2
- package/lib/edge/{blocks-5b2c456f.cjs → blocks-e94e371c.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-cfe682cf.js → button-2a5bf939.js} +2 -2
- package/lib/edge/{button-ac5a0022.cjs → button-df76a8b2.cjs} +1 -1
- package/lib/edge/{columns-e400b435.cjs → columns-044891a6.cjs} +1 -1
- package/lib/edge/{columns-1de197aa.js → columns-dc5fc496.js} +3 -3
- package/lib/edge/{content-variants-7113e9cf.cjs → content-variants-9ee0d895.cjs} +23 -53
- package/lib/edge/{content-variants-c6ff157f.js → content-variants-d950ffc8.js} +301 -335
- package/lib/edge/{custom-code-7616d00a.cjs → custom-code-2403d3d3.cjs} +1 -1
- package/lib/edge/{custom-code-143b5a84.js → custom-code-685e8b43.js} +1 -1
- package/lib/edge/{embed-e6116e90.js → embed-462f3730.js} +1 -1
- package/lib/edge/{embed-f68db9ab.cjs → embed-cdbaa40e.cjs} +1 -1
- package/lib/edge/{form-bbe1e30e.js → form-1a9b42a0.js} +3 -3
- package/lib/edge/{form-3b66981f.cjs → form-43c8dbf3.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-541f7abc.js → get-class-prop-name-e944471a.js} +1 -1
- package/lib/edge/{get-class-prop-name-13da1e6d.cjs → get-class-prop-name-fbedc76f.cjs} +1 -1
- package/lib/edge/{img-e4fe298b.cjs → img-d3819e49.cjs} +1 -1
- package/lib/edge/{img-89400807.js → img-fb540382.js} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-4b0e20ac.js → input-0efc2cf0.js} +1 -1
- package/lib/edge/{input-9fd73d5f.cjs → input-6c53f2f3.cjs} +1 -1
- package/lib/edge/{personalization-container-d4bfb7a9.js → personalization-container-63d25e42.js} +4 -4
- package/lib/edge/{personalization-container-adbe238a.cjs → personalization-container-a9c09c80.cjs} +1 -1
- package/lib/edge/{select-93ec2e99.cjs → select-391ac558.cjs} +1 -1
- package/lib/edge/{select-53fe8822.js → select-61deb890.js} +1 -1
- package/lib/edge/{server-entry-92cd5eeb.cjs → server-entry-4528f206.cjs} +1 -1
- package/lib/edge/{server-entry-17b8ed52.js → server-entry-5182bda7.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-1d00a5ae.cjs → slot-373f1e81.cjs} +1 -1
- package/lib/edge/{slot-31cbb5b2.js → slot-6f93fc15.js} +3 -3
- package/lib/edge/{symbol-9aca7157.js → symbol-2ad1da28.js} +2 -2
- package/lib/edge/{symbol-84c1857b.cjs → symbol-a1651207.cjs} +1 -1
- package/lib/edge/{tabs-a7d93c37.cjs → tabs-a0eccabc.cjs} +1 -1
- package/lib/edge/{tabs-f8858f81.js → tabs-c4e43a9c.js} +3 -3
- package/lib/node/blocks-exports.cjs +30 -60
- package/lib/node/blocks-exports.mjs +500 -534
- 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-c3bc01a9.js → server-entry-52b9a881.js} +1 -1
- package/lib/node/{server-entry-99ae937a.cjs → server-entry-88c9db7d.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-f74f2921.js → setIvm-25463972.js} +1 -1
- package/lib/node/{setIvm-4dccb8f3.cjs → setIvm-5e533ce2.cjs} +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-131d268b.cjs → should-force-browser-runtime-in-node-a8019095.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1af30e6f.js → should-force-browser-runtime-in-node-d883c014.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +0 -1
- 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 ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-a6f43f98.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-a6f43f98.js";
|
|
4
|
+
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
|
+
import * as gt from "react";
|
|
6
|
+
import { createContext as Ue, useEffect as B, useState as k, useContext as pe, useRef as z, createElement as He } from "react";
|
|
7
|
+
const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
|
|
8
8
|
function xe(e) {
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
9
|
+
return /* @__PURE__ */ s(w, { children: pt(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const K = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const z = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function vt(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +46,7 @@ function xt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const se =
|
|
49
|
+
const se = Ue({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = He({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), Me = Ue({ registeredComponents: {} }), qe = (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
|
+
}, xt = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,11 +76,11 @@ const se = He({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
79
|
+
}), St = (e) => ({
|
|
80
80
|
isEditing: _(),
|
|
81
81
|
isBrowser: J(),
|
|
82
82
|
isServer: !J(),
|
|
83
|
-
getUserAttributes: () =>
|
|
83
|
+
getUserAttributes: () => ut(),
|
|
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 = He({
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), kt = (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 je({
|
|
104
104
|
rootState: e,
|
|
105
105
|
localState: t,
|
|
106
106
|
rootSetState: n
|
|
@@ -110,7 +110,7 @@ function Ke({
|
|
|
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 ? je({
|
|
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 = xt({
|
|
138
138
|
builder: t,
|
|
139
139
|
context: n,
|
|
140
140
|
event: i,
|
|
141
|
-
state:
|
|
141
|
+
state: je({
|
|
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 Ct() {
|
|
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 Tt = ({
|
|
154
154
|
shouldLogWarning: e
|
|
155
155
|
}) => {
|
|
156
156
|
var r;
|
|
157
|
-
if (!
|
|
157
|
+
if (!Ct())
|
|
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
|
+
}, It = (e) => (J() || Tt({
|
|
162
162
|
shouldLogWarning: !0
|
|
163
|
-
}), Ee(e)),
|
|
163
|
+
}), Ee(e)), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
|
|
164
164
|
var t, n, i, r, a, o;
|
|
165
|
-
return ((i = (n = (t =
|
|
165
|
+
return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
|
|
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 = Rt(e.trim());
|
|
180
180
|
if (c)
|
|
181
|
-
return
|
|
181
|
+
return qe({
|
|
182
182
|
...i,
|
|
183
183
|
...n
|
|
184
184
|
}, c);
|
|
185
185
|
const d = {
|
|
186
|
-
code:
|
|
186
|
+
code: kt(e, {
|
|
187
187
|
isExpression: o
|
|
188
188
|
}),
|
|
189
|
-
builder:
|
|
189
|
+
builder: St(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 It(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 Pt(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
|
+
...Vt(e, t)
|
|
211
211
|
};
|
|
212
212
|
}
|
|
213
|
-
const
|
|
213
|
+
const Vt = (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 At = (e, t) => {
|
|
|
224
224
|
}))
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function At(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 Bt(e) {
|
|
254
254
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
255
255
|
return !1;
|
|
256
256
|
let t = !1;
|
|
@@ -261,7 +261,7 @@ function Nt(e) {
|
|
|
261
261
|
}
|
|
262
262
|
}), t;
|
|
263
263
|
}
|
|
264
|
-
function
|
|
264
|
+
function Nt(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 $t(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 && Bt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Nt(e.component.options, t != null ? t : "Default")), e;
|
|
273
273
|
}
|
|
274
|
-
const Se = (e) => JSON.parse(JSON.stringify(e)),
|
|
274
|
+
const Se = (e) => JSON.parse(JSON.stringify(e)), Ke = (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 $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) => {
|
|
293
|
+
if ($t) {
|
|
294
294
|
const t = Se(e);
|
|
295
295
|
return {
|
|
296
296
|
...t,
|
|
@@ -302,7 +302,7 @@ const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ot = (e) =
|
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
} else {
|
|
305
|
-
const t = ve(
|
|
305
|
+
const t = ve(At(e, "children", "meta"));
|
|
306
306
|
return {
|
|
307
307
|
...t,
|
|
308
308
|
properties: {
|
|
@@ -315,7 +315,7 @@ const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ot = (e) =
|
|
|
315
315
|
meta: e.meta
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
},
|
|
318
|
+
}, Ot = ({
|
|
319
319
|
block: e,
|
|
320
320
|
context: t,
|
|
321
321
|
localState: n,
|
|
@@ -324,7 +324,7 @@ const Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ot = (e) =
|
|
|
324
324
|
}) => {
|
|
325
325
|
if (!e.bindings)
|
|
326
326
|
return e;
|
|
327
|
-
const a =
|
|
327
|
+
const a = Dt(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 Dt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ot = (e) =
|
|
|
333
333
|
rootSetState: r,
|
|
334
334
|
context: t
|
|
335
335
|
});
|
|
336
|
-
|
|
336
|
+
Ke(a, o, c);
|
|
337
337
|
}
|
|
338
338
|
return a;
|
|
339
339
|
};
|
|
340
|
-
function
|
|
340
|
+
function Ft({
|
|
341
341
|
block: e,
|
|
342
342
|
context: t,
|
|
343
343
|
localState: n,
|
|
@@ -345,7 +345,7 @@ function Lt({
|
|
|
345
345
|
rootSetState: r
|
|
346
346
|
}) {
|
|
347
347
|
let a = e;
|
|
348
|
-
return a =
|
|
348
|
+
return a = Ot({
|
|
349
349
|
block: a,
|
|
350
350
|
localState: n,
|
|
351
351
|
rootState: i,
|
|
@@ -354,7 +354,7 @@ function Lt({
|
|
|
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 Lt(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 _t(e) {
|
|
380
380
|
for (const t of e)
|
|
381
381
|
switch (t.trigger) {
|
|
382
382
|
case "pageLoad":
|
|
383
|
-
|
|
383
|
+
Qe(t);
|
|
384
384
|
break;
|
|
385
385
|
case "scrollInView":
|
|
386
|
-
|
|
386
|
+
Ht(t);
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Je(e) {
|
|
391
391
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
const n =
|
|
393
|
+
function Ge(e, t) {
|
|
394
|
+
const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
|
|
395
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 Ut(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 Qe(e) {
|
|
407
407
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
408
408
|
if (!t.length) {
|
|
409
|
-
|
|
409
|
+
Je(e.elementId || e.id || "");
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
Array.from(t).forEach((n) => {
|
|
413
|
-
|
|
413
|
+
Ge(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 Ht(e) {
|
|
421
421
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
422
422
|
if (!t.length) {
|
|
423
|
-
|
|
423
|
+
Je(e.elementId || e.id || "");
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
Array.from(t).forEach((n) => {
|
|
427
|
-
|
|
427
|
+
Ge(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 Mt(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 = Lt(a, 200, {
|
|
437
437
|
leading: !1
|
|
438
438
|
});
|
|
439
439
|
function l(h) {
|
|
@@ -452,42 +452,42 @@ function Mt(e) {
|
|
|
452
452
|
}), a();
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
|
-
const
|
|
455
|
+
const Ye = (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), Mt = (e) => Ye(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
|
+
${Mt(n)}
|
|
466
466
|
}`;
|
|
467
467
|
return e ? `${e} {
|
|
468
468
|
${i}
|
|
469
469
|
}` : i;
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function qt({
|
|
472
472
|
style: e
|
|
473
473
|
}) {
|
|
474
474
|
return e;
|
|
475
475
|
}
|
|
476
|
-
const
|
|
476
|
+
const jt = ({
|
|
477
477
|
block: e,
|
|
478
478
|
context: t
|
|
479
|
-
}) =>
|
|
479
|
+
}) => Xe(qt({
|
|
480
480
|
style: e.style || {},
|
|
481
481
|
context: t,
|
|
482
482
|
block: e
|
|
483
483
|
}));
|
|
484
|
-
function
|
|
484
|
+
function Xe(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 Ye(e).join(" ");
|
|
491
491
|
case "qwik":
|
|
492
492
|
case "reactNative":
|
|
493
493
|
case "react":
|
|
@@ -495,7 +495,7 @@ function Ze(e) {
|
|
|
495
495
|
return e;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
const
|
|
498
|
+
const Ze = (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 et = (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 || Ze(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
|
+
}, Kt = ({
|
|
516
516
|
block: e,
|
|
517
517
|
context: t
|
|
518
518
|
}) => {
|
|
@@ -545,31 +545,31 @@ const et = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
545
545
|
},
|
|
546
546
|
block: i
|
|
547
547
|
}));
|
|
548
|
-
},
|
|
548
|
+
}, Jt = (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
|
+
}, Gt = (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]) => !Ze(o, n)))
|
|
557
557
|
} : {};
|
|
558
|
-
},
|
|
558
|
+
}, Qt = (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
|
+
}, Yt = (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 Xt(e) {
|
|
570
570
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
571
571
|
}
|
|
572
|
-
const
|
|
572
|
+
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
|
|
573
573
|
code: e,
|
|
574
574
|
context: t.context,
|
|
575
575
|
localState: t.localState,
|
|
@@ -579,14 +579,14 @@ const en = (e) => `on${Zt(e)}`, tn = (e, t) => (n) => Y({
|
|
|
579
579
|
isExpression: !1,
|
|
580
580
|
trackingContext: t.trackingContext
|
|
581
581
|
});
|
|
582
|
-
function
|
|
582
|
+
function et(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 = Zt(r);
|
|
590
590
|
if (e.stripPrefix)
|
|
591
591
|
switch (O) {
|
|
592
592
|
case "vue":
|
|
@@ -596,16 +596,16 @@ function tt(e) {
|
|
|
596
596
|
o = o.replace("on:", "");
|
|
597
597
|
break;
|
|
598
598
|
}
|
|
599
|
-
t[o] =
|
|
599
|
+
t[o] = en(a, e);
|
|
600
600
|
}
|
|
601
601
|
return t;
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function tn({
|
|
604
604
|
properties: e
|
|
605
605
|
}) {
|
|
606
606
|
return e;
|
|
607
607
|
}
|
|
608
|
-
const
|
|
608
|
+
const nn = (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
|
+
...nn(e),
|
|
618
618
|
...e.properties,
|
|
619
619
|
"builder-id": e.id,
|
|
620
|
-
style:
|
|
620
|
+
style: jt({
|
|
621
621
|
block: e,
|
|
622
622
|
context: t
|
|
623
623
|
}),
|
|
624
|
-
[
|
|
624
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
625
625
|
};
|
|
626
|
-
return
|
|
626
|
+
return tn({
|
|
627
627
|
properties: n,
|
|
628
628
|
context: t,
|
|
629
629
|
block: e
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function rn(e) {
|
|
633
633
|
var t, n, i;
|
|
634
634
|
return /* @__PURE__ */ s(
|
|
635
635
|
xe,
|
|
@@ -639,7 +639,7 @@ function an(e) {
|
|
|
639
639
|
block: e.block,
|
|
640
640
|
context: e.context
|
|
641
641
|
}),
|
|
642
|
-
actionAttributes:
|
|
642
|
+
actionAttributes: et({
|
|
643
643
|
block: e.block,
|
|
644
644
|
rootState: e.context.rootState,
|
|
645
645
|
rootSetState: e.context.rootSetState,
|
|
@@ -657,11 +657,11 @@ function an(e) {
|
|
|
657
657
|
}
|
|
658
658
|
);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function an(e) {
|
|
661
661
|
return B(() => {
|
|
662
|
-
}, []), /* @__PURE__ */ s(
|
|
662
|
+
}, []), /* @__PURE__ */ s(w, { children: e.children });
|
|
663
663
|
}
|
|
664
|
-
function
|
|
664
|
+
function on(e) {
|
|
665
665
|
var i, r;
|
|
666
666
|
k(() => 0);
|
|
667
667
|
function t() {
|
|
@@ -671,7 +671,7 @@ function ln(e) {
|
|
|
671
671
|
block: e.block,
|
|
672
672
|
context: e.context
|
|
673
673
|
}),
|
|
674
|
-
...
|
|
674
|
+
...et({
|
|
675
675
|
block: e.block,
|
|
676
676
|
rootState: e.context.rootState,
|
|
677
677
|
rootSetState: e.context.rootSetState,
|
|
@@ -690,8 +690,8 @@ function ln(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(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
694
|
+
an,
|
|
695
695
|
{
|
|
696
696
|
load: e.Wrapper.load,
|
|
697
697
|
fallback: e.Wrapper.fallback,
|
|
@@ -701,7 +701,7 @@ function ln(e) {
|
|
|
701
701
|
}
|
|
702
702
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
703
703
|
}
|
|
704
|
-
const
|
|
704
|
+
const ln = ({
|
|
705
705
|
componentOptions: e,
|
|
706
706
|
builderBlock: t,
|
|
707
707
|
context: n,
|
|
@@ -735,15 +735,15 @@ function Pe(e) {
|
|
|
735
735
|
var r;
|
|
736
736
|
k(() => !1);
|
|
737
737
|
const [t, n] = k(
|
|
738
|
-
() => e.isInteractive ?
|
|
738
|
+
() => e.isInteractive ? on : e.componentRef
|
|
739
739
|
);
|
|
740
740
|
function i() {
|
|
741
741
|
return e.componentRef ? e.blockChildren : [];
|
|
742
742
|
}
|
|
743
|
-
return /* @__PURE__ */ s(
|
|
743
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
744
744
|
t,
|
|
745
745
|
{
|
|
746
|
-
...
|
|
746
|
+
...ln({
|
|
747
747
|
componentOptions: e.componentOptions,
|
|
748
748
|
builderBlock: e.builderBlock,
|
|
749
749
|
context: e.context,
|
|
@@ -780,7 +780,7 @@ function Ve(e) {
|
|
|
780
780
|
}
|
|
781
781
|
) });
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const tt = {
|
|
784
784
|
xsmall: {
|
|
785
785
|
min: 0,
|
|
786
786
|
default: 160,
|
|
@@ -801,8 +801,8 @@ const nt = {
|
|
|
801
801
|
default: 991,
|
|
802
802
|
max: 1200
|
|
803
803
|
}
|
|
804
|
-
}, de = (e, t =
|
|
805
|
-
const t = Se(
|
|
804
|
+
}, de = (e, t = tt) => `@media (max-width: ${t[e].max}px)`, nt = (e) => {
|
|
805
|
+
const t = Se(tt);
|
|
806
806
|
if (!e)
|
|
807
807
|
return t;
|
|
808
808
|
const {
|
|
@@ -856,10 +856,10 @@ function Ae(e) {
|
|
|
856
856
|
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
857
857
|
}
|
|
858
858
|
function n() {
|
|
859
|
-
var T,
|
|
860
|
-
const i = e.block, r = i.responsiveStyles, a = e.context.content, o =
|
|
859
|
+
var T, E, U, H, q;
|
|
860
|
+
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = nt(
|
|
861
861
|
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
862
|
-
), l = !!((U = (
|
|
862
|
+
), l = !!((U = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
863
863
|
if (!u)
|
|
864
864
|
return "";
|
|
865
865
|
const S = c ? X({
|
|
@@ -909,7 +909,7 @@ function Ae(e) {
|
|
|
909
909
|
v
|
|
910
910
|
].join(" ");
|
|
911
911
|
}
|
|
912
|
-
return /* @__PURE__ */ s(
|
|
912
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
913
913
|
te,
|
|
914
914
|
{
|
|
915
915
|
id: "builderio-block",
|
|
@@ -918,16 +918,16 @@ function Ae(e) {
|
|
|
918
918
|
}
|
|
919
919
|
) }) : null });
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function sn(e) {
|
|
922
922
|
k(() => !1);
|
|
923
923
|
const [t, n] = k(() => !1);
|
|
924
924
|
return pe(se), B(() => {
|
|
925
|
-
}, []), /* @__PURE__ */ s(
|
|
925
|
+
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
|
|
926
926
|
}
|
|
927
927
|
function ue(e) {
|
|
928
928
|
var h, g, u, S;
|
|
929
929
|
function t() {
|
|
930
|
-
return
|
|
930
|
+
return Kt({
|
|
931
931
|
block: e.block,
|
|
932
932
|
context: e.context
|
|
933
933
|
});
|
|
@@ -940,7 +940,7 @@ function ue(e) {
|
|
|
940
940
|
var b;
|
|
941
941
|
if (n.value && !n.update && !le())
|
|
942
942
|
return n.value;
|
|
943
|
-
const m = (b = e.block.repeat) != null && b.collection ? e.block :
|
|
943
|
+
const m = (b = e.block.repeat) != null && b.collection ? e.block : Ft({
|
|
944
944
|
block: e.block,
|
|
945
945
|
localState: e.context.localState,
|
|
946
946
|
rootState: e.context.rootState,
|
|
@@ -977,11 +977,11 @@ function ue(e) {
|
|
|
977
977
|
blockChildren: (m = r().children) != null ? m : [],
|
|
978
978
|
componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
|
|
979
979
|
componentOptions: {
|
|
980
|
-
...
|
|
981
|
-
...
|
|
982
|
-
...
|
|
983
|
-
...
|
|
984
|
-
...
|
|
980
|
+
...Pt(r(), e.context),
|
|
981
|
+
...Qt(a(), r()),
|
|
982
|
+
...Yt(a(), e.context),
|
|
983
|
+
...Jt(a(), e.linkComponent),
|
|
984
|
+
...Gt(
|
|
985
985
|
a(),
|
|
986
986
|
e.registeredComponents,
|
|
987
987
|
e.context.model
|
|
@@ -997,7 +997,7 @@ function ue(e) {
|
|
|
997
997
|
}
|
|
998
998
|
return B(() => {
|
|
999
999
|
const m = r().id, b = r().animations;
|
|
1000
|
-
b && m &&
|
|
1000
|
+
b && m && _t(
|
|
1001
1001
|
b.map((p) => ({
|
|
1002
1002
|
...p,
|
|
1003
1003
|
elementId: m
|
|
@@ -1005,16 +1005,16 @@ function ue(e) {
|
|
|
1005
1005
|
);
|
|
1006
1006
|
}, []), B(() => {
|
|
1007
1007
|
n.update = !0;
|
|
1008
|
-
}), /* @__PURE__ */ s(
|
|
1008
|
+
}), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
|
|
1009
1009
|
/* @__PURE__ */ s(
|
|
1010
|
-
|
|
1010
|
+
sn,
|
|
1011
1011
|
{
|
|
1012
1012
|
block: r(),
|
|
1013
1013
|
context: e.context,
|
|
1014
1014
|
id: e.block.id
|
|
1015
1015
|
}
|
|
1016
1016
|
),
|
|
1017
|
-
(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(w, { children: (S = t()) == null ? void 0 : S.map((m, b) => /* @__PURE__ */ s(
|
|
1018
1018
|
Ve,
|
|
1019
1019
|
{
|
|
1020
1020
|
repeatContext: m.context,
|
|
@@ -1036,7 +1036,7 @@ function ue(e) {
|
|
|
1036
1036
|
includeBlockProps: d().includeBlockProps,
|
|
1037
1037
|
isInteractive: d().isInteractive
|
|
1038
1038
|
}
|
|
1039
|
-
) : /* @__PURE__ */ s(
|
|
1039
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
|
|
1040
1040
|
Ve,
|
|
1041
1041
|
{
|
|
1042
1042
|
repeatContext: m.context,
|
|
@@ -1046,7 +1046,7 @@ function ue(e) {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
Re(b)
|
|
1048
1048
|
)) }) : /* @__PURE__ */ D(
|
|
1049
|
-
|
|
1049
|
+
rn,
|
|
1050
1050
|
{
|
|
1051
1051
|
Wrapper: o(),
|
|
1052
1052
|
block: r(),
|
|
@@ -1081,8 +1081,8 @@ function ue(e) {
|
|
|
1081
1081
|
) })
|
|
1082
1082
|
] }) : null });
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const t =
|
|
1084
|
+
function cn(e) {
|
|
1085
|
+
const t = z(null);
|
|
1086
1086
|
k(() => !1);
|
|
1087
1087
|
function n() {
|
|
1088
1088
|
var o;
|
|
@@ -1126,7 +1126,7 @@ function un(e) {
|
|
|
1126
1126
|
}
|
|
1127
1127
|
return B(() => {
|
|
1128
1128
|
}, []), B(() => {
|
|
1129
|
-
}, [e.blocks]), /* @__PURE__ */ D(
|
|
1129
|
+
}, [e.blocks]), /* @__PURE__ */ D(w, { children: [
|
|
1130
1130
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1131
1131
|
display: flex;
|
|
1132
1132
|
flex-direction: column;
|
|
@@ -1151,9 +1151,9 @@ function un(e) {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
function M(e) {
|
|
1153
1153
|
var i, r, a;
|
|
1154
|
-
const t = pe(se), n = pe(
|
|
1154
|
+
const t = pe(se), n = pe(Me);
|
|
1155
1155
|
return /* @__PURE__ */ D(
|
|
1156
|
-
|
|
1156
|
+
cn,
|
|
1157
1157
|
{
|
|
1158
1158
|
blocks: e.blocks,
|
|
1159
1159
|
parent: e.parent,
|
|
@@ -1164,7 +1164,7 @@ function M(e) {
|
|
|
1164
1164
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1165
1165
|
children: [
|
|
1166
1166
|
e.children,
|
|
1167
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1167
|
+
e.blocks ? /* @__PURE__ */ s(w, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
|
|
1168
1168
|
ue,
|
|
1169
1169
|
{
|
|
1170
1170
|
block: o,
|
|
@@ -1178,8 +1178,8 @@ function M(e) {
|
|
|
1178
1178
|
}
|
|
1179
1179
|
);
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1182
|
-
function
|
|
1181
|
+
const un = (e) => `builder-columns ${e}-breakpoints`;
|
|
1182
|
+
function dn(e) {
|
|
1183
1183
|
var b, p;
|
|
1184
1184
|
function t() {
|
|
1185
1185
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1226,7 +1226,7 @@ function mn(e) {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
}
|
|
1228
1228
|
function g(f) {
|
|
1229
|
-
const v = f === 0 ? 0 : t(), T = o(f),
|
|
1229
|
+
const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, U = "100%", H = 0;
|
|
1230
1230
|
return {
|
|
1231
1231
|
...{
|
|
1232
1232
|
display: "flex",
|
|
@@ -1234,14 +1234,14 @@ function mn(e) {
|
|
|
1234
1234
|
alignItems: "stretch"
|
|
1235
1235
|
},
|
|
1236
1236
|
width: T,
|
|
1237
|
-
["marginLeft"]:
|
|
1237
|
+
["marginLeft"]: E,
|
|
1238
1238
|
"--column-width-mobile": c({
|
|
1239
1239
|
stackedStyle: U,
|
|
1240
1240
|
desktopStyle: T
|
|
1241
1241
|
}),
|
|
1242
1242
|
"--column-margin-left-mobile": c({
|
|
1243
1243
|
stackedStyle: H,
|
|
1244
|
-
desktopStyle:
|
|
1244
|
+
desktopStyle: E
|
|
1245
1245
|
}),
|
|
1246
1246
|
"--column-width-tablet": l({
|
|
1247
1247
|
stackedStyle: U,
|
|
@@ -1249,14 +1249,14 @@ function mn(e) {
|
|
|
1249
1249
|
}),
|
|
1250
1250
|
"--column-margin-left-tablet": l({
|
|
1251
1251
|
stackedStyle: H,
|
|
1252
|
-
desktopStyle:
|
|
1252
|
+
desktopStyle: E
|
|
1253
1253
|
})
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
1256
|
function u(f) {
|
|
1257
|
-
var T,
|
|
1258
|
-
return
|
|
1259
|
-
((
|
|
1257
|
+
var T, E;
|
|
1258
|
+
return nt(
|
|
1259
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1260
1260
|
)[f].max;
|
|
1261
1261
|
}
|
|
1262
1262
|
function S() {
|
|
@@ -1292,11 +1292,11 @@ function mn(e) {
|
|
|
1292
1292
|
...f.link ? {
|
|
1293
1293
|
href: f.link
|
|
1294
1294
|
} : {},
|
|
1295
|
-
[
|
|
1296
|
-
style:
|
|
1295
|
+
[K()]: "builder-column",
|
|
1296
|
+
style: Xe(g(v))
|
|
1297
1297
|
};
|
|
1298
1298
|
}
|
|
1299
|
-
return /* @__PURE__ */ D(
|
|
1299
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
1300
1300
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1301
1301
|
display: flex;
|
|
1302
1302
|
line-height: normal;
|
|
@@ -1305,7 +1305,7 @@ function mn(e) {
|
|
|
1305
1305
|
/* @__PURE__ */ D(
|
|
1306
1306
|
"div",
|
|
1307
1307
|
{
|
|
1308
|
-
className:
|
|
1308
|
+
className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
|
|
1309
1309
|
style: h(),
|
|
1310
1310
|
children: [
|
|
1311
1311
|
/* @__PURE__ */ s(
|
|
@@ -1344,17 +1344,17 @@ function mn(e) {
|
|
|
1344
1344
|
)
|
|
1345
1345
|
] });
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function mn(e) {
|
|
1348
1348
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1349
1349
|
}
|
|
1350
1350
|
function Be(e) {
|
|
1351
1351
|
return e.replace(/http(s)?:/, "");
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function fn(e = "", t, n) {
|
|
1354
1354
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1355
1355
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function hn(e, t) {
|
|
1358
1358
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1359
1359
|
return e;
|
|
1360
1360
|
if (t === "master")
|
|
@@ -1373,11 +1373,11 @@ function me(e) {
|
|
|
1373
1373
|
if (e.match(/builder\.io/)) {
|
|
1374
1374
|
let n = e;
|
|
1375
1375
|
const i = Number(e.split("?width=")[1]);
|
|
1376
|
-
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) => `${fn(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1377
1377
|
}
|
|
1378
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1378
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function bn(e) {
|
|
1381
1381
|
var r, a, o, l, c, d;
|
|
1382
1382
|
function t() {
|
|
1383
1383
|
var u;
|
|
@@ -1410,7 +1410,7 @@ function gn(e) {
|
|
|
1410
1410
|
return e.aspectRatio ? h : void 0;
|
|
1411
1411
|
}
|
|
1412
1412
|
return B(() => {
|
|
1413
|
-
}, []), /* @__PURE__ */ D(
|
|
1413
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
1414
1414
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1415
1415
|
opacity: 1;
|
|
1416
1416
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1428,7 +1428,7 @@ function gn(e) {
|
|
|
1428
1428
|
width: 100%;
|
|
1429
1429
|
height: 100%;
|
|
1430
1430
|
}` }),
|
|
1431
|
-
/* @__PURE__ */ D(
|
|
1431
|
+
/* @__PURE__ */ D(w, { children: [
|
|
1432
1432
|
/* @__PURE__ */ D("picture", { children: [
|
|
1433
1433
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1434
1434
|
/* @__PURE__ */ s(
|
|
@@ -1460,12 +1460,12 @@ function gn(e) {
|
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
) : null,
|
|
1463
|
-
(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(w, { children: e.children }) : null,
|
|
1464
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
|
|
1465
1465
|
] })
|
|
1466
1466
|
] });
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function gn(e) {
|
|
1469
1469
|
return /* @__PURE__ */ s(
|
|
1470
1470
|
"section",
|
|
1471
1471
|
{
|
|
@@ -1486,7 +1486,7 @@ function yn(e) {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
1488
|
}
|
|
1489
|
-
function
|
|
1489
|
+
function yn(e, t, n, i) {
|
|
1490
1490
|
function r(d) {
|
|
1491
1491
|
return typeof d == "string";
|
|
1492
1492
|
}
|
|
@@ -1543,7 +1543,7 @@ function pn(e, t, n, i) {
|
|
|
1543
1543
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1544
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));
|
|
1545
1545
|
}
|
|
1546
|
-
const
|
|
1546
|
+
const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1547
1547
|
if (!navigator.cookieEnabled) {
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
@@ -1588,7 +1588,7 @@ const vn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1588
1588
|
thisScript.remove();
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
}`,
|
|
1591
|
+
}`, vn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1592
1592
|
function isString(val) {
|
|
1593
1593
|
return typeof val === 'string';
|
|
1594
1594
|
}
|
|
@@ -1666,7 +1666,7 @@ const vn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1666
1666
|
return item.query.every(filter => {
|
|
1667
1667
|
return objectMatchesQuery(userAttributes, filter);
|
|
1668
1668
|
});
|
|
1669
|
-
}`,
|
|
1669
|
+
}`, xn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1670
1670
|
function getCookie(name) {
|
|
1671
1671
|
const nameEQ = name + '=';
|
|
1672
1672
|
const ca = document.cookie.split(';');
|
|
@@ -1704,11 +1704,11 @@ const vn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1704
1704
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
}`, ne = "default",
|
|
1708
|
-
function
|
|
1707
|
+
}`, ne = "default", Sn = "filterWithCustomTargeting", it = "builderIoPersonalization", rt = "updateVisibilityStylesScript", at = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1708
|
+
function kn(e, t) {
|
|
1709
1709
|
return !(e && e.length > 0) || !t ? !1 : ie.includes(O) ? !0 : !J();
|
|
1710
1710
|
}
|
|
1711
|
-
function
|
|
1711
|
+
function Cn({
|
|
1712
1712
|
variants: e,
|
|
1713
1713
|
previewingIndex: t,
|
|
1714
1714
|
isHydrated: n,
|
|
@@ -1747,11 +1747,11 @@ function Tn({
|
|
|
1747
1747
|
}
|
|
1748
1748
|
return a;
|
|
1749
1749
|
}
|
|
1750
|
-
const
|
|
1751
|
-
window.${
|
|
1752
|
-
window.${
|
|
1753
|
-
window.${
|
|
1754
|
-
`,
|
|
1750
|
+
const Tn = () => `
|
|
1751
|
+
window.${Sn} = ${vn}
|
|
1752
|
+
window.${it} = ${pn}
|
|
1753
|
+
window.${rt} = ${xn}
|
|
1754
|
+
`, ot = O === "react", In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, fe = {
|
|
1755
1755
|
"@type": "@builder.io/sdk:Element",
|
|
1756
1756
|
layerName: "Accordion item title",
|
|
1757
1757
|
responsiveStyles: {
|
|
@@ -1811,7 +1811,7 @@ const In = () => `
|
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
1813
|
}]
|
|
1814
|
-
},
|
|
1814
|
+
}, En = {
|
|
1815
1815
|
name: "Builder:Accordion",
|
|
1816
1816
|
canHaveChildren: !0,
|
|
1817
1817
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1876,7 +1876,7 @@ const In = () => `
|
|
|
1876
1876
|
builderLinkComponent: !0
|
|
1877
1877
|
}
|
|
1878
1878
|
}, Ne = (e) => e.toString();
|
|
1879
|
-
function
|
|
1879
|
+
function Rn(e) {
|
|
1880
1880
|
var g;
|
|
1881
1881
|
const [t, n] = k(() => []);
|
|
1882
1882
|
function i() {
|
|
@@ -1954,7 +1954,7 @@ function Pn(e) {
|
|
|
1954
1954
|
function h(u) {
|
|
1955
1955
|
t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
|
|
1956
1956
|
}
|
|
1957
|
-
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(gt.Fragment, { children: [
|
|
1958
1958
|
/* @__PURE__ */ s(
|
|
1959
1959
|
"div",
|
|
1960
1960
|
{
|
|
@@ -2001,7 +2001,7 @@ function Pn(e) {
|
|
|
2001
2001
|
) : null
|
|
2002
2002
|
] }, S)) });
|
|
2003
2003
|
}
|
|
2004
|
-
const
|
|
2004
|
+
const Pn = {
|
|
2005
2005
|
name: "Core:Button",
|
|
2006
2006
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2007
2007
|
defaultStyles: {
|
|
@@ -2037,7 +2037,7 @@ const Vn = {
|
|
|
2037
2037
|
shouldReceiveBuilderProps: {
|
|
2038
2038
|
builderLinkComponent: !0
|
|
2039
2039
|
}
|
|
2040
|
-
},
|
|
2040
|
+
}, Vn = {
|
|
2041
2041
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2042
2042
|
name: "Columns",
|
|
2043
2043
|
isRSC: !0,
|
|
@@ -2244,13 +2244,13 @@ const Vn = {
|
|
|
2244
2244
|
builderComponents: !0,
|
|
2245
2245
|
builderLinkComponent: !0
|
|
2246
2246
|
}
|
|
2247
|
-
},
|
|
2247
|
+
}, An = {
|
|
2248
2248
|
name: "Fragment",
|
|
2249
2249
|
static: !0,
|
|
2250
2250
|
hidden: !0,
|
|
2251
2251
|
canHaveChildren: !0,
|
|
2252
2252
|
noWrap: !0
|
|
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"],
|
|
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"], Bn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Nn = {
|
|
2254
2254
|
name: "Image",
|
|
2255
2255
|
static: !0,
|
|
2256
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",
|
|
@@ -2409,14 +2409,14 @@ function G(e) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2413
|
-
var v, T,
|
|
2414
|
-
const t =
|
|
2412
|
+
function $n(e) {
|
|
2413
|
+
var v, T, E, U, H, q, y, x, V, A, W, R, P;
|
|
2414
|
+
const t = z(null), [n, i] = k(
|
|
2415
2415
|
() => Ie.getUserAttributes()
|
|
2416
2416
|
), [r, a] = k(
|
|
2417
2417
|
() => {
|
|
2418
2418
|
var I, N, C;
|
|
2419
|
-
return
|
|
2419
|
+
return In(
|
|
2420
2420
|
e.variants,
|
|
2421
2421
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2422
2422
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
@@ -2425,7 +2425,7 @@ function Dn(e) {
|
|
|
2425
2425
|
), [o, l] = k(
|
|
2426
2426
|
() => {
|
|
2427
2427
|
var I, N, C;
|
|
2428
|
-
return
|
|
2428
|
+
return wn(
|
|
2429
2429
|
e.variants,
|
|
2430
2430
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2431
2431
|
(C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
|
|
@@ -2434,7 +2434,7 @@ function Dn(e) {
|
|
|
2434
2434
|
), [c, d] = k(() => []), [h, g] = k(
|
|
2435
2435
|
() => {
|
|
2436
2436
|
var I;
|
|
2437
|
-
return
|
|
2437
|
+
return kn(
|
|
2438
2438
|
e.variants,
|
|
2439
2439
|
ee((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2440
2440
|
);
|
|
@@ -2443,16 +2443,16 @@ function Dn(e) {
|
|
|
2443
2443
|
function m() {
|
|
2444
2444
|
return {
|
|
2445
2445
|
...e.attributes,
|
|
2446
|
-
[
|
|
2446
|
+
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2447
2447
|
};
|
|
2448
2448
|
}
|
|
2449
2449
|
function b() {
|
|
2450
2450
|
return (e.variants || []).filter((I) => {
|
|
2451
|
-
var N, C,
|
|
2452
|
-
return
|
|
2451
|
+
var N, C, $, F;
|
|
2452
|
+
return yn(
|
|
2453
2453
|
{
|
|
2454
2454
|
...(C = (N = e.builderContext) == null ? void 0 : N.rootState) != null && C.locale ? {
|
|
2455
|
-
locale: (F = (
|
|
2455
|
+
locale: (F = ($ = e.builderContext) == null ? void 0 : $.rootState) == null ? void 0 : F.locale
|
|
2456
2456
|
} : {},
|
|
2457
2457
|
...n
|
|
2458
2458
|
},
|
|
@@ -2464,7 +2464,7 @@ function Dn(e) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
function p() {
|
|
2466
2466
|
var I;
|
|
2467
|
-
return
|
|
2467
|
+
return Cn({
|
|
2468
2468
|
variants: e.variants,
|
|
2469
2469
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2470
2470
|
isHydrated: u,
|
|
@@ -2530,12 +2530,12 @@ function Dn(e) {
|
|
|
2530
2530
|
registeredComponents: e.builderComponents,
|
|
2531
2531
|
BlocksWrapperProps: {
|
|
2532
2532
|
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2533
|
-
"data-variant-id": `${(
|
|
2533
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
) : null,
|
|
2537
|
-
!u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(
|
|
2538
|
-
h ? /* @__PURE__ */ D(
|
|
2537
|
+
!u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(w, { children: [
|
|
2538
|
+
h ? /* @__PURE__ */ D(w, { children: [
|
|
2539
2539
|
/* @__PURE__ */ s(
|
|
2540
2540
|
te,
|
|
2541
2541
|
{
|
|
@@ -2553,7 +2553,7 @@ function Dn(e) {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
),
|
|
2555
2555
|
(x = e.variants) == null ? void 0 : x.map((I, N) => {
|
|
2556
|
-
var C,
|
|
2556
|
+
var C, $, F, L, j, Te;
|
|
2557
2557
|
return /* @__PURE__ */ s(
|
|
2558
2558
|
M,
|
|
2559
2559
|
{
|
|
@@ -2561,7 +2561,7 @@ function Dn(e) {
|
|
|
2561
2561
|
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2562
2562
|
"aria-hidden": !0,
|
|
2563
2563
|
hidden: !0,
|
|
2564
|
-
"data-variant-id": `${(
|
|
2564
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${N}`
|
|
2565
2565
|
},
|
|
2566
2566
|
blocks: I.blocks,
|
|
2567
2567
|
parent: (F = e.builderBlock) == null ? void 0 : F.id,
|
|
@@ -2591,14 +2591,14 @@ function Dn(e) {
|
|
|
2591
2591
|
registeredComponents: e.builderComponents,
|
|
2592
2592
|
BlocksWrapperProps: {
|
|
2593
2593
|
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2594
|
-
"data-variant-id": `${(
|
|
2594
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2595
2595
|
},
|
|
2596
2596
|
children: h ? /* @__PURE__ */ s(
|
|
2597
2597
|
G,
|
|
2598
2598
|
{
|
|
2599
|
-
nonce: ((
|
|
2599
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2600
2600
|
scriptStr: r,
|
|
2601
|
-
id: `variants-script-${(
|
|
2601
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
|
|
2602
2602
|
}
|
|
2603
2603
|
) : null
|
|
2604
2604
|
}
|
|
@@ -2606,7 +2606,7 @@ function Dn(e) {
|
|
|
2606
2606
|
] }) : null
|
|
2607
2607
|
] });
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2609
|
+
const Dn = {
|
|
2610
2610
|
name: "Core:Section",
|
|
2611
2611
|
static: !0,
|
|
2612
2612
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2645,7 +2645,7 @@ const On = {
|
|
|
2645
2645
|
}
|
|
2646
2646
|
}
|
|
2647
2647
|
}]
|
|
2648
|
-
},
|
|
2648
|
+
}, On = {
|
|
2649
2649
|
name: "Slot",
|
|
2650
2650
|
isRSC: !0,
|
|
2651
2651
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2663,7 +2663,7 @@ const On = {
|
|
|
2663
2663
|
builderComponents: !0
|
|
2664
2664
|
}
|
|
2665
2665
|
};
|
|
2666
|
-
function
|
|
2666
|
+
function Fn(e) {
|
|
2667
2667
|
var t, n, i;
|
|
2668
2668
|
return /* @__PURE__ */ s(
|
|
2669
2669
|
"div",
|
|
@@ -2687,7 +2687,7 @@ function Ln(e) {
|
|
|
2687
2687
|
}
|
|
2688
2688
|
);
|
|
2689
2689
|
}
|
|
2690
|
-
const
|
|
2690
|
+
const Ln = {
|
|
2691
2691
|
name: "Symbol",
|
|
2692
2692
|
noWrap: !0,
|
|
2693
2693
|
static: !0,
|
|
@@ -2764,7 +2764,7 @@ const _n = {
|
|
|
2764
2764
|
text: "New tab content "
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
},
|
|
2767
|
+
}, _n = {
|
|
2768
2768
|
name: "Builder: Tabs",
|
|
2769
2769
|
inputs: [{
|
|
2770
2770
|
name: "tabs",
|
|
@@ -2868,7 +2868,7 @@ const _n = {
|
|
|
2868
2868
|
builderLinkComponent: !0
|
|
2869
2869
|
}
|
|
2870
2870
|
};
|
|
2871
|
-
function
|
|
2871
|
+
function Un(e) {
|
|
2872
2872
|
var o;
|
|
2873
2873
|
const [t, n] = k(
|
|
2874
2874
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2928,7 +2928,7 @@ function Hn(e) {
|
|
|
2928
2928
|
) }) : null
|
|
2929
2929
|
] });
|
|
2930
2930
|
}
|
|
2931
|
-
const
|
|
2931
|
+
const Hn = {
|
|
2932
2932
|
shouldReceiveBuilderProps: {},
|
|
2933
2933
|
name: "Text",
|
|
2934
2934
|
static: !0,
|
|
@@ -2947,7 +2947,7 @@ const Mn = {
|
|
|
2947
2947
|
textAlign: "center"
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
|
-
function
|
|
2950
|
+
function Mn(e) {
|
|
2951
2951
|
var t;
|
|
2952
2952
|
return /* @__PURE__ */ s(
|
|
2953
2953
|
"div",
|
|
@@ -2960,7 +2960,7 @@ function qn(e) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
);
|
|
2962
2962
|
}
|
|
2963
|
-
const
|
|
2963
|
+
const qn = {
|
|
2964
2964
|
name: "Custom Code",
|
|
2965
2965
|
static: !0,
|
|
2966
2966
|
requiredPermissions: ["editCode"],
|
|
@@ -2983,8 +2983,8 @@ const jn = {
|
|
|
2983
2983
|
advanced: !0
|
|
2984
2984
|
}]
|
|
2985
2985
|
};
|
|
2986
|
-
function
|
|
2987
|
-
const t =
|
|
2986
|
+
function jn(e) {
|
|
2987
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []);
|
|
2988
2988
|
function o() {
|
|
2989
2989
|
var c;
|
|
2990
2990
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -3044,9 +3044,9 @@ const zn = {
|
|
|
3044
3044
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3045
3045
|
hideFromUI: !0
|
|
3046
3046
|
}]
|
|
3047
|
-
},
|
|
3048
|
-
function
|
|
3049
|
-
const t =
|
|
3047
|
+
}, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => Kn.includes(e.type);
|
|
3048
|
+
function Gn(e) {
|
|
3049
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
|
|
3050
3050
|
function c() {
|
|
3051
3051
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3052
3052
|
return;
|
|
@@ -3057,7 +3057,7 @@ function Qn(e) {
|
|
|
3057
3057
|
n.push(g.src);
|
|
3058
3058
|
const u = document.createElement("script");
|
|
3059
3059
|
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
3060
|
-
} else if (
|
|
3060
|
+
} else if (Jn(g) && !r.includes(g.innerText))
|
|
3061
3061
|
try {
|
|
3062
3062
|
r.push(g.innerText), new Function(g.innerText)();
|
|
3063
3063
|
} catch (u) {
|
|
@@ -3076,7 +3076,7 @@ function Qn(e) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
);
|
|
3078
3078
|
}
|
|
3079
|
-
const
|
|
3079
|
+
const Qn = {
|
|
3080
3080
|
name: "Form:Form",
|
|
3081
3081
|
// editableTags: ['builder-form-error']
|
|
3082
3082
|
defaults: {
|
|
@@ -3313,12 +3313,12 @@ const Yn = {
|
|
|
3313
3313
|
builderComponents: !0,
|
|
3314
3314
|
builderLinkComponent: !0
|
|
3315
3315
|
}
|
|
3316
|
-
},
|
|
3316
|
+
}, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xn = () => {
|
|
3317
3317
|
const e = process.env.NODE_ENV || "production";
|
|
3318
|
-
return
|
|
3318
|
+
return Yn.includes(e) ? e : "production";
|
|
3319
3319
|
};
|
|
3320
|
-
function
|
|
3321
|
-
const t =
|
|
3320
|
+
function Zn(e) {
|
|
3321
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3322
3322
|
function c(u) {
|
|
3323
3323
|
var m, b;
|
|
3324
3324
|
const S = {
|
|
@@ -3372,18 +3372,18 @@ function ei(e) {
|
|
|
3372
3372
|
value: x
|
|
3373
3373
|
};
|
|
3374
3374
|
});
|
|
3375
|
-
let
|
|
3376
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3377
|
-
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (
|
|
3378
|
-
}),
|
|
3375
|
+
let E = e.contentType;
|
|
3376
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
|
|
3377
|
+
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
|
|
3378
|
+
}), E !== "application/json")
|
|
3379
3379
|
f = v;
|
|
3380
3380
|
else {
|
|
3381
3381
|
const y = {};
|
|
3382
3382
|
Array.from(T).forEach(({ value: x, key: V }) => {
|
|
3383
|
-
|
|
3383
|
+
Ke(y, V, x);
|
|
3384
3384
|
}), f = JSON.stringify(y);
|
|
3385
3385
|
}
|
|
3386
|
-
|
|
3386
|
+
E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
|
|
3387
3387
|
const U = new CustomEvent("presubmit", { detail: { body: f } });
|
|
3388
3388
|
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3389
3389
|
return;
|
|
@@ -3392,40 +3392,40 @@ function ei(e) {
|
|
|
3392
3392
|
console.error(y), i("error"), c({ formErrorMessage: y });
|
|
3393
3393
|
return;
|
|
3394
3394
|
}
|
|
3395
|
-
const H = `${
|
|
3395
|
+
const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3396
3396
|
e.sendSubmissionsToEmail || ""
|
|
3397
3397
|
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3398
|
-
|
|
3398
|
+
Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
|
|
3399
3399
|
async (y) => {
|
|
3400
|
-
var A,
|
|
3400
|
+
var A, W;
|
|
3401
3401
|
let x;
|
|
3402
3402
|
const V = y.headers.get("content-type");
|
|
3403
3403
|
if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
|
|
3404
|
-
const
|
|
3404
|
+
const R = new CustomEvent("submit:error", {
|
|
3405
3405
|
detail: { error: x, status: y.status }
|
|
3406
3406
|
});
|
|
3407
|
-
if ((A = t.current) != null && A.nativeElement && ((
|
|
3407
|
+
if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3408
3408
|
return;
|
|
3409
3409
|
a(x), i("error");
|
|
3410
|
-
let
|
|
3411
|
-
typeof
|
|
3410
|
+
let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3411
|
+
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3412
3412
|
return;
|
|
3413
3413
|
}
|
|
3414
3414
|
if (a(x), i(y.ok ? "success" : "error"), y.ok) {
|
|
3415
|
-
const
|
|
3415
|
+
const R = new CustomEvent("submit:success", {
|
|
3416
3416
|
detail: { res: y, body: x }
|
|
3417
3417
|
});
|
|
3418
3418
|
if (t.current) {
|
|
3419
|
-
if (t.current.dispatchEvent(
|
|
3419
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3420
3420
|
return;
|
|
3421
3421
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3422
3422
|
}
|
|
3423
3423
|
if (e.successUrl)
|
|
3424
3424
|
if (t.current) {
|
|
3425
|
-
const
|
|
3425
|
+
const P = new CustomEvent("route", {
|
|
3426
3426
|
detail: { url: e.successUrl }
|
|
3427
3427
|
});
|
|
3428
|
-
t.current.dispatchEvent(
|
|
3428
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3429
3429
|
} else
|
|
3430
3430
|
location.href = e.successUrl;
|
|
3431
3431
|
}
|
|
@@ -3439,7 +3439,7 @@ function ei(e) {
|
|
|
3439
3439
|
);
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
3442
|
-
return /* @__PURE__ */ D(
|
|
3442
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
3443
3443
|
" ",
|
|
3444
3444
|
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3445
3445
|
" ",
|
|
@@ -3486,7 +3486,7 @@ function ei(e) {
|
|
|
3486
3486
|
" "
|
|
3487
3487
|
] });
|
|
3488
3488
|
}
|
|
3489
|
-
const
|
|
3489
|
+
const ei = {
|
|
3490
3490
|
name: "Form:Input",
|
|
3491
3491
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3492
3492
|
inputs: [
|
|
@@ -3538,8 +3538,8 @@ const ti = {
|
|
|
3538
3538
|
borderColor: "#ccc"
|
|
3539
3539
|
}
|
|
3540
3540
|
};
|
|
3541
|
-
function
|
|
3542
|
-
return /* @__PURE__ */
|
|
3541
|
+
function ti(e) {
|
|
3542
|
+
return /* @__PURE__ */ He(
|
|
3543
3543
|
"input",
|
|
3544
3544
|
{
|
|
3545
3545
|
...e.attributes,
|
|
@@ -3553,7 +3553,7 @@ function ni(e) {
|
|
|
3553
3553
|
}
|
|
3554
3554
|
);
|
|
3555
3555
|
}
|
|
3556
|
-
const
|
|
3556
|
+
const ni = {
|
|
3557
3557
|
name: "Form:Select",
|
|
3558
3558
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3559
3559
|
defaultStyles: {
|
|
@@ -3596,9 +3596,9 @@ const ii = {
|
|
|
3596
3596
|
static: !0,
|
|
3597
3597
|
noWrap: !0
|
|
3598
3598
|
};
|
|
3599
|
-
function
|
|
3599
|
+
function ii(e) {
|
|
3600
3600
|
var t;
|
|
3601
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ He(
|
|
3602
3602
|
"select",
|
|
3603
3603
|
{
|
|
3604
3604
|
...e.attributes,
|
|
@@ -3611,7 +3611,7 @@ function ri(e) {
|
|
|
3611
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}`))
|
|
3612
3612
|
);
|
|
3613
3613
|
}
|
|
3614
|
-
const
|
|
3614
|
+
const ri = {
|
|
3615
3615
|
name: "Form:SubmitButton",
|
|
3616
3616
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3617
3617
|
defaultStyles: {
|
|
@@ -3637,10 +3637,10 @@ const ai = {
|
|
|
3637
3637
|
// TODO: defaultChildren
|
|
3638
3638
|
// canHaveChildren: true,
|
|
3639
3639
|
};
|
|
3640
|
-
function
|
|
3640
|
+
function ai(e) {
|
|
3641
3641
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3642
3642
|
}
|
|
3643
|
-
const
|
|
3643
|
+
const oi = {
|
|
3644
3644
|
name: "Form:TextArea",
|
|
3645
3645
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3646
3646
|
inputs: [{
|
|
@@ -3677,7 +3677,7 @@ const li = {
|
|
|
3677
3677
|
static: !0,
|
|
3678
3678
|
noWrap: !0
|
|
3679
3679
|
};
|
|
3680
|
-
function
|
|
3680
|
+
function li(e) {
|
|
3681
3681
|
return /* @__PURE__ */ s(
|
|
3682
3682
|
"textarea",
|
|
3683
3683
|
{
|
|
@@ -3690,7 +3690,7 @@ function si(e) {
|
|
|
3690
3690
|
}
|
|
3691
3691
|
);
|
|
3692
3692
|
}
|
|
3693
|
-
const
|
|
3693
|
+
const si = {
|
|
3694
3694
|
name: "Raw:Img",
|
|
3695
3695
|
hideFromInsertMenu: !0,
|
|
3696
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",
|
|
@@ -3735,12 +3735,12 @@ const ci = {
|
|
|
3735
3735
|
}],
|
|
3736
3736
|
noWrap: !0
|
|
3737
3737
|
};
|
|
3738
|
-
function
|
|
3738
|
+
function ci(e) {
|
|
3739
3739
|
var n;
|
|
3740
3740
|
function t() {
|
|
3741
3741
|
const i = {
|
|
3742
3742
|
...e.attributes,
|
|
3743
|
-
[
|
|
3743
|
+
[K()]: `builder-raw-img ${e.attributes[K()] || ""}`
|
|
3744
3744
|
};
|
|
3745
3745
|
return delete i.style, i;
|
|
3746
3746
|
}
|
|
@@ -3762,7 +3762,7 @@ function ui(e) {
|
|
|
3762
3762
|
_() && e.imgSrc || "default-key"
|
|
3763
3763
|
);
|
|
3764
3764
|
}
|
|
3765
|
-
const
|
|
3765
|
+
const ui = {
|
|
3766
3766
|
name: "Video",
|
|
3767
3767
|
canHaveChildren: !0,
|
|
3768
3768
|
defaultStyles: {
|
|
@@ -3773,7 +3773,7 @@ const di = {
|
|
|
3773
3773
|
inputs: [{
|
|
3774
3774
|
name: "video",
|
|
3775
3775
|
type: "file",
|
|
3776
|
-
allowedFileTypes:
|
|
3776
|
+
allowedFileTypes: Bn,
|
|
3777
3777
|
bubble: !0,
|
|
3778
3778
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3779
3779
|
required: !0
|
|
@@ -3847,9 +3847,9 @@ const di = {
|
|
|
3847
3847
|
builderBlock: !0
|
|
3848
3848
|
}
|
|
3849
3849
|
};
|
|
3850
|
-
function
|
|
3850
|
+
function di(e) {
|
|
3851
3851
|
var o, l, c, d, h, g, u;
|
|
3852
|
-
const t =
|
|
3852
|
+
const t = z(null);
|
|
3853
3853
|
function n() {
|
|
3854
3854
|
return {
|
|
3855
3855
|
...e.autoPlay === !0 ? {
|
|
@@ -3983,67 +3983,67 @@ function mi(e) {
|
|
|
3983
3983
|
}
|
|
3984
3984
|
);
|
|
3985
3985
|
}
|
|
3986
|
-
const
|
|
3987
|
-
component:
|
|
3988
|
-
...
|
|
3986
|
+
const mi = () => [{
|
|
3987
|
+
component: jn,
|
|
3988
|
+
...qn
|
|
3989
3989
|
}, {
|
|
3990
|
-
component:
|
|
3990
|
+
component: Gn,
|
|
3991
3991
|
...zn
|
|
3992
3992
|
}, {
|
|
3993
|
-
component:
|
|
3994
|
-
...
|
|
3993
|
+
component: Zn,
|
|
3994
|
+
...Qn
|
|
3995
|
+
}, {
|
|
3996
|
+
component: ti,
|
|
3997
|
+
...ei
|
|
3995
3998
|
}, {
|
|
3996
|
-
component:
|
|
3997
|
-
...
|
|
3999
|
+
component: ai,
|
|
4000
|
+
...ri
|
|
3998
4001
|
}, {
|
|
3999
|
-
component:
|
|
4000
|
-
...
|
|
4002
|
+
component: ii,
|
|
4003
|
+
...ni
|
|
4001
4004
|
}, {
|
|
4002
|
-
component:
|
|
4003
|
-
...
|
|
4005
|
+
component: li,
|
|
4006
|
+
...oi
|
|
4004
4007
|
}, {
|
|
4005
|
-
component:
|
|
4006
|
-
...
|
|
4008
|
+
component: ci,
|
|
4009
|
+
...si
|
|
4007
4010
|
}, {
|
|
4008
|
-
component:
|
|
4009
|
-
...
|
|
4011
|
+
component: di,
|
|
4012
|
+
...ui
|
|
4013
|
+
}], We = () => [{
|
|
4014
|
+
component: vt,
|
|
4015
|
+
...Pn
|
|
4010
4016
|
}, {
|
|
4011
|
-
component:
|
|
4012
|
-
...di
|
|
4013
|
-
}], $e = () => [{
|
|
4014
|
-
component: xt,
|
|
4017
|
+
component: dn,
|
|
4015
4018
|
...Vn
|
|
4016
4019
|
}, {
|
|
4017
4020
|
component: mn,
|
|
4018
4021
|
...An
|
|
4019
4022
|
}, {
|
|
4020
|
-
component:
|
|
4021
|
-
...
|
|
4023
|
+
component: bn,
|
|
4024
|
+
...Nn
|
|
4022
4025
|
}, {
|
|
4023
4026
|
component: gn,
|
|
4024
|
-
|
|
4027
|
+
...Dn
|
|
4025
4028
|
}, {
|
|
4026
|
-
component:
|
|
4029
|
+
component: Fn,
|
|
4027
4030
|
...On
|
|
4028
4031
|
}, {
|
|
4029
|
-
component:
|
|
4030
|
-
...
|
|
4031
|
-
}, {
|
|
4032
|
-
component: Fi,
|
|
4033
|
-
..._n
|
|
4032
|
+
component: Oi,
|
|
4033
|
+
...Ln
|
|
4034
4034
|
}, {
|
|
4035
|
-
component:
|
|
4036
|
-
...
|
|
4037
|
-
}, ...
|
|
4038
|
-
component:
|
|
4035
|
+
component: Mn,
|
|
4036
|
+
...Hn
|
|
4037
|
+
}, ...at.includes(O) ? [{
|
|
4038
|
+
component: $n,
|
|
4039
4039
|
...Wn
|
|
4040
4040
|
}] : [], {
|
|
4041
|
-
component:
|
|
4042
|
-
...
|
|
4041
|
+
component: Un,
|
|
4042
|
+
..._n
|
|
4043
4043
|
}, {
|
|
4044
|
-
component:
|
|
4045
|
-
...
|
|
4046
|
-
}, ...
|
|
4044
|
+
component: Rn,
|
|
4045
|
+
...En
|
|
4046
|
+
}, ...mi()], fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4047
4047
|
function getAndSetVariantId() {
|
|
4048
4048
|
function setCookie(name, value, days) {
|
|
4049
4049
|
let expires = '';
|
|
@@ -4102,7 +4102,7 @@ const fi = () => [{
|
|
|
4102
4102
|
}).join('');
|
|
4103
4103
|
styleEl.innerHTML = newStyleStr;
|
|
4104
4104
|
}
|
|
4105
|
-
}`,
|
|
4105
|
+
}`, hi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4106
4106
|
if (!navigator.cookieEnabled) {
|
|
4107
4107
|
return;
|
|
4108
4108
|
}
|
|
@@ -4136,59 +4136,29 @@ const fi = () => [{
|
|
|
4136
4136
|
thisScriptEl?.remove();
|
|
4137
4137
|
}
|
|
4138
4138
|
return;
|
|
4139
|
-
}`,
|
|
4139
|
+
}`, lt = "builderIoAbTest", st = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4140
4140
|
...t,
|
|
4141
4141
|
testVariationId: t.id,
|
|
4142
4142
|
id: e == null ? void 0 : e.id
|
|
4143
|
-
})),
|
|
4143
|
+
})), bi = ({
|
|
4144
4144
|
canTrack: e,
|
|
4145
4145
|
content: t
|
|
4146
|
-
}) => !(!(re(t).length > 0) || !e || J()),
|
|
4147
|
-
|
|
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 = () => `
|
|
4146
|
+
}) => !(!(re(t).length > 0) || !e || J()), gi = (e) => e === "react" || e === "reactNative", yi = O === "angular", ct = gi(O), pi = () => `
|
|
4147
|
+
window.${lt} = ${fi}
|
|
4177
4148
|
window.${st} = ${hi}
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
)`, Si = ({
|
|
4149
|
+
`, vi = (e, t) => `
|
|
4150
|
+
window.${lt}(
|
|
4151
|
+
"${t}",${JSON.stringify(e)}, ${ct}, ${yi}
|
|
4152
|
+
)`, xi = ({
|
|
4183
4153
|
contentId: e,
|
|
4184
4154
|
variationId: t
|
|
4185
|
-
}) => `window.${
|
|
4186
|
-
"${t}", "${e}", ${
|
|
4155
|
+
}) => `window.${st}(
|
|
4156
|
+
"${t}", "${e}", ${ct}
|
|
4187
4157
|
)`;
|
|
4188
|
-
function
|
|
4158
|
+
function $e(e) {
|
|
4189
4159
|
return Math.round(e * 1e3) / 1e3;
|
|
4190
4160
|
}
|
|
4191
|
-
const
|
|
4161
|
+
const Si = (e, t, n = !0) => {
|
|
4192
4162
|
if (!(e instanceof HTMLElement))
|
|
4193
4163
|
return null;
|
|
4194
4164
|
let i = n ? e : e.parentElement;
|
|
@@ -4199,35 +4169,35 @@ const ki = (e, t, n = !0) => {
|
|
|
4199
4169
|
return i;
|
|
4200
4170
|
} while (i = i.parentElement);
|
|
4201
4171
|
return null;
|
|
4202
|
-
},
|
|
4172
|
+
}, ki = (e) => Si(e, (t) => {
|
|
4203
4173
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4204
4174
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4205
|
-
}),
|
|
4175
|
+
}), De = ({
|
|
4206
4176
|
event: e,
|
|
4207
4177
|
target: t
|
|
4208
4178
|
}) => {
|
|
4209
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a =
|
|
4179
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = $e(i / n.width), o = $e(r / n.height);
|
|
4210
4180
|
return {
|
|
4211
4181
|
x: a,
|
|
4212
4182
|
y: o
|
|
4213
4183
|
};
|
|
4214
|
-
},
|
|
4215
|
-
const t = e.target, n = t &&
|
|
4184
|
+
}, Ci = (e) => {
|
|
4185
|
+
const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4216
4186
|
return {
|
|
4217
4187
|
targetBuilderElement: i || void 0,
|
|
4218
4188
|
metadata: {
|
|
4219
|
-
targetOffset: t ?
|
|
4189
|
+
targetOffset: t ? De({
|
|
4220
4190
|
event: e,
|
|
4221
4191
|
target: t
|
|
4222
4192
|
}) : void 0,
|
|
4223
|
-
builderTargetOffset: n ?
|
|
4193
|
+
builderTargetOffset: n ? De({
|
|
4224
4194
|
event: e,
|
|
4225
4195
|
target: n
|
|
4226
4196
|
}) : void 0,
|
|
4227
4197
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4228
4198
|
}
|
|
4229
4199
|
};
|
|
4230
|
-
},
|
|
4200
|
+
}, Ti = ["svelte", "qwik", "vue"], Oe = () => Ti.includes(O) && (_() || le()), Ii = (e) => {
|
|
4231
4201
|
var a, o;
|
|
4232
4202
|
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;
|
|
4233
4203
|
let r = "";
|
|
@@ -4253,15 +4223,15 @@ font-weight: ${l};
|
|
|
4253
4223
|
`.trim());
|
|
4254
4224
|
}
|
|
4255
4225
|
return r;
|
|
4256
|
-
},
|
|
4226
|
+
}, wi = ({
|
|
4257
4227
|
customFonts: e
|
|
4258
4228
|
}) => {
|
|
4259
4229
|
var t;
|
|
4260
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4261
|
-
},
|
|
4230
|
+
return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4231
|
+
}, Ei = ({
|
|
4262
4232
|
cssCode: e,
|
|
4263
4233
|
contentId: t
|
|
4264
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4234
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
|
|
4265
4235
|
.builder-button {
|
|
4266
4236
|
all: unset;
|
|
4267
4237
|
}
|
|
@@ -4278,41 +4248,41 @@ font-weight: ${l};
|
|
|
4278
4248
|
text-align: inherit;
|
|
4279
4249
|
font-family: inherit;
|
|
4280
4250
|
}
|
|
4281
|
-
`,
|
|
4282
|
-
function
|
|
4251
|
+
`, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
|
|
4252
|
+
function Ai(e) {
|
|
4283
4253
|
var H, q, y;
|
|
4284
|
-
const t =
|
|
4254
|
+
const t = z(null);
|
|
4285
4255
|
k(() => !1), k(
|
|
4286
4256
|
() => e.builderContextSignal
|
|
4287
4257
|
);
|
|
4288
4258
|
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4289
4259
|
function o(x, V) {
|
|
4290
|
-
var
|
|
4260
|
+
var W, R;
|
|
4291
4261
|
const A = {
|
|
4292
4262
|
...e.builderContextSignal.rootState,
|
|
4293
4263
|
...x
|
|
4294
4264
|
};
|
|
4295
|
-
e.builderContextSignal.rootSetState ? (
|
|
4296
|
-
...
|
|
4265
|
+
e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
|
|
4266
|
+
...P,
|
|
4297
4267
|
rootState: A
|
|
4298
|
-
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((
|
|
4299
|
-
...
|
|
4268
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
|
|
4269
|
+
...P,
|
|
4300
4270
|
rootState: A
|
|
4301
4271
|
}));
|
|
4302
4272
|
}
|
|
4303
4273
|
function l(x, V) {
|
|
4304
|
-
var
|
|
4274
|
+
var W, R, P, I, N;
|
|
4305
4275
|
const A = {
|
|
4306
4276
|
...e.builderContextSignal.content,
|
|
4307
4277
|
...x,
|
|
4308
4278
|
data: {
|
|
4309
|
-
...(
|
|
4279
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
|
|
4310
4280
|
...x == null ? void 0 : x.data
|
|
4311
4281
|
},
|
|
4312
4282
|
meta: {
|
|
4313
|
-
...(
|
|
4283
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4314
4284
|
...x == null ? void 0 : x.meta,
|
|
4315
|
-
breakpoints: ((
|
|
4285
|
+
breakpoints: ((P = x == null ? void 0 : x.meta) == null ? void 0 : P.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
|
|
4316
4286
|
}
|
|
4317
4287
|
};
|
|
4318
4288
|
e.setBuilderContextSignal((C) => ({
|
|
@@ -4330,21 +4300,21 @@ function Bi(e) {
|
|
|
4330
4300
|
() => e.contentWrapper || "div"
|
|
4331
4301
|
);
|
|
4332
4302
|
function g(x) {
|
|
4333
|
-
return
|
|
4303
|
+
return ht({
|
|
4334
4304
|
model: e.model,
|
|
4335
4305
|
trustedHosts: e.trustedHosts,
|
|
4336
4306
|
callbacks: {
|
|
4337
4307
|
configureSdk: (V) => {
|
|
4338
|
-
var
|
|
4339
|
-
const { breakpoints: A, contentId:
|
|
4340
|
-
|
|
4308
|
+
var R;
|
|
4309
|
+
const { breakpoints: A, contentId: W } = V;
|
|
4310
|
+
!W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
|
|
4341
4311
|
meta: {
|
|
4342
4312
|
breakpoints: A
|
|
4343
4313
|
}
|
|
4344
4314
|
});
|
|
4345
4315
|
},
|
|
4346
4316
|
animation: (V) => {
|
|
4347
|
-
|
|
4317
|
+
Qe(V);
|
|
4348
4318
|
},
|
|
4349
4319
|
contentUpdate: (V, A) => {
|
|
4350
4320
|
l(V);
|
|
@@ -4359,32 +4329,32 @@ function Bi(e) {
|
|
|
4359
4329
|
function v(x) {
|
|
4360
4330
|
var V, A;
|
|
4361
4331
|
if (e.builderContextSignal.content) {
|
|
4362
|
-
const
|
|
4332
|
+
const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4363
4333
|
ye({
|
|
4364
4334
|
apiHost: e.apiHost,
|
|
4365
4335
|
type: "click",
|
|
4366
4336
|
canTrack: ee(e.canTrack),
|
|
4367
|
-
contentId:
|
|
4337
|
+
contentId: R,
|
|
4368
4338
|
apiKey: e.apiKey,
|
|
4369
|
-
variationId:
|
|
4370
|
-
...
|
|
4339
|
+
variationId: W !== R ? W : void 0,
|
|
4340
|
+
...Ci(x),
|
|
4371
4341
|
unique: !p
|
|
4372
4342
|
});
|
|
4373
4343
|
}
|
|
4374
4344
|
p || f(!0);
|
|
4375
4345
|
}
|
|
4376
4346
|
function T() {
|
|
4377
|
-
var V, A,
|
|
4378
|
-
const x = (
|
|
4347
|
+
var V, A, W;
|
|
4348
|
+
const x = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
|
|
4379
4349
|
Object.entries(x).forEach(
|
|
4380
|
-
([
|
|
4381
|
-
if (!
|
|
4350
|
+
([R, P]) => {
|
|
4351
|
+
if (!P)
|
|
4382
4352
|
return;
|
|
4383
|
-
const I = typeof
|
|
4384
|
-
if (m[
|
|
4353
|
+
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4354
|
+
if (m[R] || u[R] && !_())
|
|
4385
4355
|
return;
|
|
4386
|
-
const N = I ?
|
|
4387
|
-
m[
|
|
4356
|
+
const N = I ? P.request.url : P;
|
|
4357
|
+
m[R] = !0;
|
|
4388
4358
|
const C = N.replace(
|
|
4389
4359
|
/{{([^}]+)}}/g,
|
|
4390
4360
|
(L, j) => String(
|
|
@@ -4396,38 +4366,38 @@ function Bi(e) {
|
|
|
4396
4366
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4397
4367
|
})
|
|
4398
4368
|
)
|
|
4399
|
-
),
|
|
4369
|
+
), $ = I ? {
|
|
4400
4370
|
url: C,
|
|
4401
|
-
method:
|
|
4402
|
-
headers:
|
|
4403
|
-
body:
|
|
4371
|
+
method: P.request.method,
|
|
4372
|
+
headers: P.request.headers,
|
|
4373
|
+
body: P.request.body
|
|
4404
4374
|
} : {
|
|
4405
4375
|
url: C,
|
|
4406
4376
|
method: "GET"
|
|
4407
4377
|
};
|
|
4408
|
-
|
|
4378
|
+
Le(JSON.stringify($));
|
|
4409
4379
|
const F = {
|
|
4410
|
-
method:
|
|
4411
|
-
headers:
|
|
4412
|
-
body:
|
|
4380
|
+
method: $.method,
|
|
4381
|
+
headers: $.headers,
|
|
4382
|
+
body: $.body
|
|
4413
4383
|
};
|
|
4414
|
-
|
|
4384
|
+
$.method === "GET" && delete F.body, fetch($.url, F).then((L) => L.json()).then((L) => {
|
|
4415
4385
|
o({
|
|
4416
|
-
[
|
|
4417
|
-
}), u[
|
|
4386
|
+
[R]: L
|
|
4387
|
+
}), u[R] = !0;
|
|
4418
4388
|
}).catch((L) => {
|
|
4419
4389
|
console.error(
|
|
4420
4390
|
"error fetching dynamic data",
|
|
4421
|
-
JSON.stringify(
|
|
4391
|
+
JSON.stringify(P),
|
|
4422
4392
|
L
|
|
4423
4393
|
);
|
|
4424
4394
|
}).finally(() => {
|
|
4425
|
-
m[
|
|
4395
|
+
m[R] = !1;
|
|
4426
4396
|
});
|
|
4427
4397
|
}
|
|
4428
4398
|
);
|
|
4429
4399
|
}
|
|
4430
|
-
function
|
|
4400
|
+
function E() {
|
|
4431
4401
|
_() && window.dispatchEvent(
|
|
4432
4402
|
new CustomEvent(
|
|
4433
4403
|
"builder:component:stateChange",
|
|
@@ -4442,11 +4412,11 @@ function Bi(e) {
|
|
|
4442
4412
|
)
|
|
4443
4413
|
);
|
|
4444
4414
|
}
|
|
4445
|
-
const U =
|
|
4446
|
-
return U.current || (T(),
|
|
4447
|
-
var x, V, A,
|
|
4415
|
+
const U = z(!1);
|
|
4416
|
+
return U.current || (T(), E(), U.current = !0), B(() => {
|
|
4417
|
+
var x, V, A, W, R;
|
|
4448
4418
|
if (J()) {
|
|
4449
|
-
_() && !e.isNestedRender && (window.addEventListener("message", g),
|
|
4419
|
+
_() && !e.isNestedRender && (window.addEventListener("message", g), dt({
|
|
4450
4420
|
...e.locale ? {
|
|
4451
4421
|
locale: e.locale
|
|
4452
4422
|
} : {},
|
|
@@ -4461,39 +4431,39 @@ function Bi(e) {
|
|
|
4461
4431
|
}), Object.values(
|
|
4462
4432
|
e.builderContextSignal.componentInfos
|
|
4463
4433
|
).forEach((C) => {
|
|
4464
|
-
var
|
|
4465
|
-
if (!((
|
|
4466
|
-
const L =
|
|
4434
|
+
var $, F;
|
|
4435
|
+
if (!(($ = C.models) != null && $.length) || C.models.includes(e.model)) {
|
|
4436
|
+
const L = mt(C);
|
|
4467
4437
|
(F = window.parent) == null || F.postMessage(L, "*");
|
|
4468
4438
|
}
|
|
4469
4439
|
}), window.addEventListener(
|
|
4470
4440
|
"builder:component:stateChangeListenerActivated",
|
|
4471
|
-
|
|
4441
|
+
E
|
|
4472
4442
|
));
|
|
4473
|
-
const
|
|
4443
|
+
const P = e.builderContextSignal.content && ee(e.canTrack), I = ft({
|
|
4474
4444
|
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4475
4445
|
canTrack: !0
|
|
4476
4446
|
}), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4477
|
-
if (
|
|
4478
|
-
const C = (
|
|
4447
|
+
if (P && N === I) {
|
|
4448
|
+
const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
|
|
4479
4449
|
ye({
|
|
4480
4450
|
apiHost: e.apiHost,
|
|
4481
4451
|
type: "impression",
|
|
4482
4452
|
canTrack: !0,
|
|
4483
4453
|
contentId: C,
|
|
4484
|
-
apiKey:
|
|
4454
|
+
apiKey: $,
|
|
4485
4455
|
variationId: I !== C ? I : void 0
|
|
4486
4456
|
});
|
|
4487
4457
|
}
|
|
4488
4458
|
if (le() && !_()) {
|
|
4489
|
-
const C = new URL(location.href).searchParams,
|
|
4490
|
-
`builder.overrides.${
|
|
4459
|
+
const C = new URL(location.href).searchParams, $ = C.get("builder.preview"), F = C.get(
|
|
4460
|
+
`builder.overrides.${$}`
|
|
4491
4461
|
), L = C.get("apiKey") || C.get("builder.space");
|
|
4492
|
-
(
|
|
4462
|
+
($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && _e({
|
|
4493
4463
|
model: e.model,
|
|
4494
4464
|
apiKey: e.apiKey,
|
|
4495
4465
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4496
|
-
|
|
4466
|
+
...$ === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4497
4467
|
query: {
|
|
4498
4468
|
id: e.context.symbolId
|
|
4499
4469
|
}
|
|
@@ -4506,7 +4476,7 @@ function Bi(e) {
|
|
|
4506
4476
|
}, []), B(() => {
|
|
4507
4477
|
e.content && l(e.content);
|
|
4508
4478
|
}, [e.content]), B(() => {
|
|
4509
|
-
|
|
4479
|
+
E();
|
|
4510
4480
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4511
4481
|
if (e.data) {
|
|
4512
4482
|
if (n === e.data)
|
|
@@ -4524,20 +4494,20 @@ function Bi(e) {
|
|
|
4524
4494
|
}, [e.locale]), B(() => () => {
|
|
4525
4495
|
J() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4526
4496
|
"builder:component:stateChangeListenerActivated",
|
|
4527
|
-
|
|
4497
|
+
E
|
|
4528
4498
|
));
|
|
4529
|
-
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4499
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Oe() ? /* @__PURE__ */ s(
|
|
4530
4500
|
d,
|
|
4531
4501
|
{
|
|
4532
4502
|
ref: t,
|
|
4533
4503
|
onClick: (x) => v(x),
|
|
4534
4504
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4535
4505
|
"builder-model": e.model,
|
|
4536
|
-
className:
|
|
4506
|
+
className: Vi(
|
|
4537
4507
|
((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
4538
4508
|
),
|
|
4539
4509
|
style: {
|
|
4540
|
-
display: !e.builderContextSignal.content &&
|
|
4510
|
+
display: !e.builderContextSignal.content && Oe() ? "none" : void 0
|
|
4541
4511
|
},
|
|
4542
4512
|
...c(),
|
|
4543
4513
|
...e.contentWrapperProps,
|
|
@@ -4545,17 +4515,17 @@ function Bi(e) {
|
|
|
4545
4515
|
}
|
|
4546
4516
|
) : null });
|
|
4547
4517
|
}
|
|
4548
|
-
function
|
|
4518
|
+
function Bi(e) {
|
|
4549
4519
|
const [t, n] = k(
|
|
4550
4520
|
() => `
|
|
4551
|
-
${
|
|
4521
|
+
${Ei({
|
|
4552
4522
|
cssCode: e.cssCode,
|
|
4553
4523
|
contentId: e.contentId
|
|
4554
4524
|
})}
|
|
4555
|
-
${
|
|
4525
|
+
${wi({
|
|
4556
4526
|
customFonts: e.customFonts
|
|
4557
4527
|
})}
|
|
4558
|
-
${
|
|
4528
|
+
${Pi(e.isNestedRender)}
|
|
4559
4529
|
`.trim()
|
|
4560
4530
|
);
|
|
4561
4531
|
return /* @__PURE__ */ s(
|
|
@@ -4567,7 +4537,7 @@ ${Vi(e.isNestedRender)}
|
|
|
4567
4537
|
}
|
|
4568
4538
|
);
|
|
4569
4539
|
}
|
|
4570
|
-
const
|
|
4540
|
+
const Ni = ({
|
|
4571
4541
|
content: e,
|
|
4572
4542
|
data: t,
|
|
4573
4543
|
locale: n
|
|
@@ -4595,12 +4565,12 @@ const $i = ({
|
|
|
4595
4565
|
},
|
|
4596
4566
|
meta: e == null ? void 0 : e.meta
|
|
4597
4567
|
} : void 0;
|
|
4598
|
-
function
|
|
4568
|
+
function Fe(e) {
|
|
4599
4569
|
var d, h, g, u, S, m, b, p, f;
|
|
4600
4570
|
const [t, n] = k(
|
|
4601
4571
|
() => {
|
|
4602
4572
|
var v, T;
|
|
4603
|
-
return
|
|
4573
|
+
return xi({
|
|
4604
4574
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4605
4575
|
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
4606
4576
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4616,14 +4586,14 @@ function Le(e) {
|
|
|
4616
4586
|
}
|
|
4617
4587
|
const [r, a] = k(
|
|
4618
4588
|
() => [
|
|
4619
|
-
|
|
4589
|
+
...We(),
|
|
4620
4590
|
...e.customComponents || []
|
|
4621
4591
|
].reduce(
|
|
4622
|
-
(v, { component: T, ...
|
|
4592
|
+
(v, { component: T, ...E }) => ({
|
|
4623
4593
|
...v,
|
|
4624
|
-
[
|
|
4594
|
+
[E.name]: {
|
|
4625
4595
|
component: T,
|
|
4626
|
-
...we(
|
|
4596
|
+
...we(E)
|
|
4627
4597
|
}
|
|
4628
4598
|
}),
|
|
4629
4599
|
{}
|
|
@@ -4634,7 +4604,7 @@ function Le(e) {
|
|
|
4634
4604
|
data: e.data
|
|
4635
4605
|
}),
|
|
4636
4606
|
localState: void 0,
|
|
4637
|
-
rootState:
|
|
4607
|
+
rootState: Ni({
|
|
4638
4608
|
content: e.content,
|
|
4639
4609
|
data: e.data,
|
|
4640
4610
|
locale: e.locale
|
|
@@ -4645,12 +4615,12 @@ function Le(e) {
|
|
|
4645
4615
|
apiKey: e.apiKey,
|
|
4646
4616
|
apiVersion: e.apiVersion,
|
|
4647
4617
|
componentInfos: [
|
|
4648
|
-
|
|
4618
|
+
...We(),
|
|
4649
4619
|
...e.customComponents || []
|
|
4650
4620
|
].reduce(
|
|
4651
|
-
(v, { component: T, ...
|
|
4621
|
+
(v, { component: T, ...E }) => ({
|
|
4652
4622
|
...v,
|
|
4653
|
-
[
|
|
4623
|
+
[E.name]: we(E)
|
|
4654
4624
|
}),
|
|
4655
4625
|
{}
|
|
4656
4626
|
),
|
|
@@ -4659,7 +4629,7 @@ function Le(e) {
|
|
|
4659
4629
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4660
4630
|
nonce: e.nonce || "",
|
|
4661
4631
|
model: e.model
|
|
4662
|
-
})), c =
|
|
4632
|
+
})), c = z(!1);
|
|
4663
4633
|
if (!c.current) {
|
|
4664
4634
|
e.apiKey || Q.error(
|
|
4665
4635
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
@@ -4678,13 +4648,13 @@ function Le(e) {
|
|
|
4678
4648
|
}
|
|
4679
4649
|
return B(() => {
|
|
4680
4650
|
}, [e.content, e.data, e.locale]), /* @__PURE__ */ s(
|
|
4681
|
-
|
|
4651
|
+
Me.Provider,
|
|
4682
4652
|
{
|
|
4683
4653
|
value: {
|
|
4684
4654
|
registeredComponents: r
|
|
4685
4655
|
},
|
|
4686
4656
|
children: /* @__PURE__ */ D(
|
|
4687
|
-
|
|
4657
|
+
Ai,
|
|
4688
4658
|
{
|
|
4689
4659
|
apiHost: e.apiHost,
|
|
4690
4660
|
nonce: e.nonce,
|
|
@@ -4713,7 +4683,7 @@ function Le(e) {
|
|
|
4713
4683
|
}
|
|
4714
4684
|
) : null,
|
|
4715
4685
|
/* @__PURE__ */ s(
|
|
4716
|
-
|
|
4686
|
+
Bi,
|
|
4717
4687
|
{
|
|
4718
4688
|
nonce: e.nonce || "",
|
|
4719
4689
|
isNestedRender: e.isNestedRender,
|
|
@@ -4737,17 +4707,17 @@ function Le(e) {
|
|
|
4737
4707
|
}
|
|
4738
4708
|
);
|
|
4739
4709
|
}
|
|
4740
|
-
function
|
|
4710
|
+
function $i(e) {
|
|
4741
4711
|
var o;
|
|
4742
4712
|
const [t, n] = k(
|
|
4743
|
-
() =>
|
|
4713
|
+
() => bi({
|
|
4744
4714
|
canTrack: ee(e.canTrack),
|
|
4745
4715
|
content: e.content
|
|
4746
4716
|
})
|
|
4747
4717
|
);
|
|
4748
4718
|
function i() {
|
|
4749
4719
|
var l;
|
|
4750
|
-
return
|
|
4720
|
+
return vi(
|
|
4751
4721
|
re(e.content).map((c) => ({
|
|
4752
4722
|
id: c.testVariationId,
|
|
4753
4723
|
testRatio: c.testRatio
|
|
@@ -4763,36 +4733,32 @@ function Di(e) {
|
|
|
4763
4733
|
return t ? {
|
|
4764
4734
|
...e.content,
|
|
4765
4735
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4766
|
-
} :
|
|
4736
|
+
} : bt({
|
|
4767
4737
|
item: e.content,
|
|
4768
4738
|
canTrack: ee(e.canTrack)
|
|
4769
4739
|
});
|
|
4770
4740
|
}
|
|
4771
4741
|
return B(() => {
|
|
4772
|
-
}, []), /* @__PURE__ */ D(
|
|
4773
|
-
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
)
|
|
4793
|
-
}
|
|
4794
|
-
) : null,
|
|
4795
|
-
t ? /* @__PURE__ */ D(P, { children: [
|
|
4742
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
4743
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
|
|
4744
|
+
/* @__PURE__ */ s(
|
|
4745
|
+
G,
|
|
4746
|
+
{
|
|
4747
|
+
id: "builderio-init-variants-fns",
|
|
4748
|
+
scriptStr: pi(),
|
|
4749
|
+
nonce: e.nonce || ""
|
|
4750
|
+
}
|
|
4751
|
+
),
|
|
4752
|
+
at.includes(O) ? /* @__PURE__ */ s(
|
|
4753
|
+
G,
|
|
4754
|
+
{
|
|
4755
|
+
id: "builderio-init-personalization-variants-fns",
|
|
4756
|
+
nonce: e.nonce || "",
|
|
4757
|
+
scriptStr: Tn()
|
|
4758
|
+
}
|
|
4759
|
+
) : null
|
|
4760
|
+
] }) : null,
|
|
4761
|
+
t ? /* @__PURE__ */ D(w, { children: [
|
|
4796
4762
|
/* @__PURE__ */ s(
|
|
4797
4763
|
te,
|
|
4798
4764
|
{
|
|
@@ -4810,7 +4776,7 @@ function Di(e) {
|
|
|
4810
4776
|
}
|
|
4811
4777
|
),
|
|
4812
4778
|
(o = re(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4813
|
-
|
|
4779
|
+
Fe,
|
|
4814
4780
|
{
|
|
4815
4781
|
apiHost: e.apiHost,
|
|
4816
4782
|
isNestedRender: e.isNestedRender,
|
|
@@ -4838,7 +4804,7 @@ function Di(e) {
|
|
|
4838
4804
|
))
|
|
4839
4805
|
] }) : null,
|
|
4840
4806
|
/* @__PURE__ */ s(
|
|
4841
|
-
|
|
4807
|
+
Fe,
|
|
4842
4808
|
{
|
|
4843
4809
|
apiHost: e.apiHost,
|
|
4844
4810
|
nonce: e.nonce,
|
|
@@ -4865,13 +4831,13 @@ function Di(e) {
|
|
|
4865
4831
|
)
|
|
4866
4832
|
] });
|
|
4867
4833
|
}
|
|
4868
|
-
const
|
|
4834
|
+
const Di = async ({
|
|
4869
4835
|
builderContextValue: e,
|
|
4870
4836
|
symbol: t
|
|
4871
4837
|
}) => {
|
|
4872
4838
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4873
4839
|
(e != null && e.apiKey))
|
|
4874
|
-
return
|
|
4840
|
+
return _e({
|
|
4875
4841
|
model: t.model,
|
|
4876
4842
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
4877
4843
|
apiVersion: e.apiVersion,
|
|
@@ -4884,7 +4850,7 @@ const Oi = async ({
|
|
|
4884
4850
|
Q.error("Could not fetch symbol content: ", n);
|
|
4885
4851
|
});
|
|
4886
4852
|
};
|
|
4887
|
-
function
|
|
4853
|
+
function Oi(e) {
|
|
4888
4854
|
var h, g, u, S, m, b, p;
|
|
4889
4855
|
function t() {
|
|
4890
4856
|
return "div";
|
|
@@ -4898,7 +4864,7 @@ function Fi(e) {
|
|
|
4898
4864
|
function r() {
|
|
4899
4865
|
var f, v;
|
|
4900
4866
|
return [
|
|
4901
|
-
e.attributes[
|
|
4867
|
+
e.attributes[K()],
|
|
4902
4868
|
"builder-symbol",
|
|
4903
4869
|
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
4904
4870
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4913,7 +4879,7 @@ function Fi(e) {
|
|
|
4913
4879
|
});
|
|
4914
4880
|
function d() {
|
|
4915
4881
|
var f;
|
|
4916
|
-
a && l === ((f = e.symbol) == null ? void 0 : f.entry) ||
|
|
4882
|
+
a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
|
|
4917
4883
|
symbol: e.symbol,
|
|
4918
4884
|
builderContextValue: e.builderContext
|
|
4919
4885
|
}).then((v) => {
|
|
@@ -4925,7 +4891,7 @@ function Fi(e) {
|
|
|
4925
4891
|
}, []), B(() => {
|
|
4926
4892
|
d();
|
|
4927
4893
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4928
|
-
|
|
4894
|
+
$i,
|
|
4929
4895
|
{
|
|
4930
4896
|
nonce: e.builderContext.nonce,
|
|
4931
4897
|
isNestedRender: !0,
|
|
@@ -4953,14 +4919,14 @@ function Fi(e) {
|
|
|
4953
4919
|
export {
|
|
4954
4920
|
M as Blocks,
|
|
4955
4921
|
se as BuilderContext,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4922
|
+
vt as Button,
|
|
4923
|
+
dn as Columns,
|
|
4924
|
+
$i as Content,
|
|
4925
|
+
mn as Fragment,
|
|
4926
|
+
bn as Image,
|
|
4927
|
+
gn as Section,
|
|
4928
|
+
Oi as Symbol,
|
|
4929
|
+
Mn as Text,
|
|
4930
|
+
di as Video,
|
|
4931
|
+
Mi as setClientUserAttributes
|
|
4966
4932
|
};
|