@builder.io/sdk-react 5.2.2 → 5.2.4-dev.0
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/README.md +0 -4
- package/lib/browser/blocks-exports.cjs +36 -58
- package/lib/browser/blocks-exports.mjs +453 -481
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-32fde7d6.cjs +2 -0
- package/lib/browser/{server-entry-aff2c5ee.js → server-entry-3a0f3268.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-8b1afed8.cjs → accordion-0ac4b4bc.cjs} +1 -1
- package/lib/edge/{accordion-3144e69e.js → accordion-281685a7.js} +1 -1
- package/lib/edge/{blocks-5b2c456f.cjs → blocks-2bbe2b28.cjs} +1 -1
- package/lib/edge/{blocks-817f9485.js → blocks-ae2a49a7.js} +2 -2
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-ac5a0022.cjs → button-23adb9d5.cjs} +1 -1
- package/lib/edge/{button-cfe682cf.js → button-feb2e4c9.js} +2 -2
- package/lib/edge/{columns-1de197aa.js → columns-2bd52875.js} +3 -3
- package/lib/edge/{columns-e400b435.cjs → columns-def305cf.cjs} +1 -1
- package/lib/edge/{content-variants-c6ff157f.js → content-variants-415eac79.js} +303 -331
- package/lib/edge/{content-variants-7113e9cf.cjs → content-variants-ec418e63.cjs} +29 -51
- package/lib/edge/{custom-code-143b5a84.js → custom-code-14d05bee.js} +1 -1
- package/lib/edge/{custom-code-7616d00a.cjs → custom-code-e11c0386.cjs} +1 -1
- package/lib/edge/{embed-e6116e90.js → embed-16e83d02.js} +1 -1
- package/lib/edge/{embed-f68db9ab.cjs → embed-f9b142c0.cjs} +1 -1
- package/lib/edge/{form-bbe1e30e.js → form-74774087.js} +3 -3
- package/lib/edge/{form-3b66981f.cjs → form-9ffabbba.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-13da1e6d.cjs → get-class-prop-name-2b1ea4eb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-541f7abc.js → get-class-prop-name-33cafbde.js} +1 -1
- package/lib/edge/{img-e4fe298b.cjs → img-1be5d2b3.cjs} +1 -1
- package/lib/edge/{img-89400807.js → img-8f36ecb0.js} +2 -2
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-4b0e20ac.js → input-11bbe245.js} +1 -1
- package/lib/edge/{input-9fd73d5f.cjs → input-8c205b02.cjs} +1 -1
- package/lib/edge/{personalization-container-adbe238a.cjs → personalization-container-22d0d6da.cjs} +1 -1
- package/lib/edge/{personalization-container-d4bfb7a9.js → personalization-container-9f86e2a4.js} +4 -4
- package/lib/edge/{select-53fe8822.js → select-badee915.js} +1 -1
- package/lib/edge/{select-93ec2e99.cjs → select-eadae9ec.cjs} +1 -1
- package/lib/edge/{server-entry-17b8ed52.js → server-entry-2c77147b.js} +1 -1
- package/lib/edge/{server-entry-92cd5eeb.cjs → server-entry-48caf9b2.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-31cbb5b2.js → slot-0eab4674.js} +3 -3
- package/lib/edge/{slot-1d00a5ae.cjs → slot-7538f944.cjs} +1 -1
- package/lib/edge/{symbol-9aca7157.js → symbol-6e406f55.js} +2 -2
- package/lib/edge/{symbol-84c1857b.cjs → symbol-c8f06cf6.cjs} +1 -1
- package/lib/edge/{tabs-f8858f81.js → tabs-60cfbeee.js} +3 -3
- package/lib/edge/{tabs-a7d93c37.cjs → tabs-7bcc75e3.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +36 -58
- package/lib/node/blocks-exports.mjs +538 -566
- 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-519cd30a.cjs +2 -0
- package/lib/node/{server-entry-c3bc01a9.js → server-entry-91bd4af2.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-4dccb8f3.cjs → setIvm-c64cc674.cjs} +1 -1
- package/lib/node/{setIvm-f74f2921.js → setIvm-f5aa8580.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-1af30e6f.js → should-force-browser-runtime-in-node-098c4aa9.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-131d268b.cjs → should-force-browser-runtime-in-node-d60cd7d1.cjs} +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
- package/lib/browser/server-entry-44ac782f.cjs +0 -2
- package/lib/node/server-entry-99ae937a.cjs +0 -2
|
@@ -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
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
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 Re, getDefaultCanTrack as ee, logFetch as He, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as Me, createEditorListener as ht, serializeIncludingFunctions as Pe, handleABTestingSync as bt } from "./server-entry-3a0f3268.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-3a0f3268.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 qe, useEffect as B, useState as k, useContext as pe, useRef as z, createElement as je } 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
|
+
function ke(e) {
|
|
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,
|
|
@@ -37,7 +37,7 @@ function xt(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
ke,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function xt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const se =
|
|
49
|
+
const se = qe({
|
|
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
|
+
}), ze = qe({ registeredComponents: {} }), Ke = (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) => {
|
|
@@ -125,7 +125,7 @@ function Ke({
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
const
|
|
128
|
+
const Ve = ({
|
|
129
129
|
code: e,
|
|
130
130
|
builder: t,
|
|
131
131
|
context: n,
|
|
@@ -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
|
-
}),
|
|
163
|
+
}), Ve(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 Ke({
|
|
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];
|
|
@@ -247,31 +247,31 @@ function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
247
247
|
}), oe(o, t, e, a, r);
|
|
248
248
|
}));
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function Ge(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;
|
|
257
257
|
return oe(e, (n) => {
|
|
258
|
-
if (
|
|
258
|
+
if (Ge(n)) {
|
|
259
259
|
t = !0;
|
|
260
260
|
return;
|
|
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
|
+
Ge(n) && i((r = n[t]) != null ? r : void 0);
|
|
268
268
|
}), e);
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function $t(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
|
|
274
|
+
const Ce = (e) => JSON.parse(JSON.stringify(e)), Qe = (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,9 +289,9 @@ 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 (
|
|
294
|
-
const t =
|
|
292
|
+
const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) => {
|
|
293
|
+
if (Wt) {
|
|
294
|
+
const t = Ce(e);
|
|
295
295
|
return {
|
|
296
296
|
...t,
|
|
297
297
|
properties: {
|
|
@@ -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
|
+
Qe(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,16 +345,16 @@ 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,
|
|
352
352
|
rootSetState: r,
|
|
353
353
|
context: t
|
|
354
|
-
}), a =
|
|
354
|
+
}), a = $t(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
|
+
Ze(t);
|
|
384
384
|
break;
|
|
385
385
|
case "scrollInView":
|
|
386
|
-
|
|
386
|
+
Ht(t);
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Ye(e) {
|
|
391
391
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
const n =
|
|
393
|
+
function Xe(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 Ze(e) {
|
|
407
407
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
408
408
|
if (!t.length) {
|
|
409
|
-
|
|
409
|
+
Ye(e.elementId || e.id || "");
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
412
412
|
Array.from(t).forEach((n) => {
|
|
413
|
-
|
|
413
|
+
Xe(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
|
+
Ye(e.elementId || e.id || "");
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
426
|
Array.from(t).forEach((n) => {
|
|
427
|
-
|
|
427
|
+
Xe(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 et = (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) => et(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
|
+
}) => tt(qt({
|
|
480
480
|
style: e.style || {},
|
|
481
481
|
context: t,
|
|
482
482
|
block: e
|
|
483
483
|
}));
|
|
484
|
-
function
|
|
484
|
+
function tt(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 et(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 nt = (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 || nt(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]) => !nt(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
|
-
},
|
|
569
|
-
function
|
|
568
|
+
}, Ae = (e) => e.toString();
|
|
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 it(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,50 +596,50 @@ 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
|
-
function
|
|
611
|
+
function Te({
|
|
612
612
|
block: e,
|
|
613
613
|
context: t
|
|
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
|
+
ke,
|
|
636
636
|
{
|
|
637
637
|
TagName: e.Wrapper,
|
|
638
|
-
attributes:
|
|
638
|
+
attributes: Te({
|
|
639
639
|
block: e.block,
|
|
640
640
|
context: e.context
|
|
641
641
|
}),
|
|
642
|
-
actionAttributes:
|
|
642
|
+
actionAttributes: it({
|
|
643
643
|
block: e.block,
|
|
644
644
|
rootState: e.context.rootState,
|
|
645
645
|
rootSetState: e.context.rootSetState,
|
|
@@ -657,21 +657,21 @@ 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() {
|
|
668
668
|
var a, o, l;
|
|
669
669
|
return e.includeBlockProps ? {
|
|
670
|
-
...
|
|
670
|
+
...Te({
|
|
671
671
|
block: e.block,
|
|
672
672
|
context: e.context
|
|
673
673
|
}),
|
|
674
|
-
...
|
|
674
|
+
...it({
|
|
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,
|
|
@@ -717,7 +717,7 @@ const sn = ({
|
|
|
717
717
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
718
718
|
*/
|
|
719
719
|
...r ? {
|
|
720
|
-
attributes:
|
|
720
|
+
attributes: Te({
|
|
721
721
|
block: t,
|
|
722
722
|
context: o
|
|
723
723
|
})
|
|
@@ -731,19 +731,19 @@ const sn = ({
|
|
|
731
731
|
includeBlockProps: r
|
|
732
732
|
} : l;
|
|
733
733
|
};
|
|
734
|
-
function
|
|
734
|
+
function Be(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,
|
|
@@ -766,7 +766,7 @@ function Pe(e) {
|
|
|
766
766
|
}
|
|
767
767
|
) }) : null });
|
|
768
768
|
}
|
|
769
|
-
function
|
|
769
|
+
function Ne(e) {
|
|
770
770
|
const [t, n] = k(() => e.repeatContext);
|
|
771
771
|
return B(() => {
|
|
772
772
|
n(e.repeatContext);
|
|
@@ -780,7 +780,7 @@ function Ve(e) {
|
|
|
780
780
|
}
|
|
781
781
|
) });
|
|
782
782
|
}
|
|
783
|
-
const
|
|
783
|
+
const rt = {
|
|
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 =
|
|
804
|
+
}, de = (e, t = rt) => `@media (max-width: ${t[e].max}px)`, at = (e) => {
|
|
805
|
+
const t = Ce(rt);
|
|
806
806
|
if (!e)
|
|
807
807
|
return t;
|
|
808
808
|
const {
|
|
@@ -850,16 +850,16 @@ function te(e) {
|
|
|
850
850
|
}
|
|
851
851
|
);
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function $e(e) {
|
|
854
854
|
function t() {
|
|
855
855
|
const i = e.block;
|
|
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 = at(
|
|
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($e, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s($e, { 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,26 +1005,26 @@ 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(
|
|
1018
|
-
|
|
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
|
+
Ne,
|
|
1019
1019
|
{
|
|
1020
1020
|
repeatContext: m.context,
|
|
1021
1021
|
block: m.block,
|
|
1022
1022
|
registeredComponents: e.registeredComponents,
|
|
1023
1023
|
linkComponent: e.linkComponent
|
|
1024
1024
|
},
|
|
1025
|
-
|
|
1025
|
+
Ae(b)
|
|
1026
1026
|
)) }) : /* @__PURE__ */ s(
|
|
1027
|
-
|
|
1027
|
+
Be,
|
|
1028
1028
|
{
|
|
1029
1029
|
componentRef: d().componentRef,
|
|
1030
1030
|
componentOptions: d().componentOptions,
|
|
@@ -1036,24 +1036,24 @@ function ue(e) {
|
|
|
1036
1036
|
includeBlockProps: d().includeBlockProps,
|
|
1037
1037
|
isInteractive: d().isInteractive
|
|
1038
1038
|
}
|
|
1039
|
-
) : /* @__PURE__ */ s(
|
|
1040
|
-
|
|
1039
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
|
|
1040
|
+
Ne,
|
|
1041
1041
|
{
|
|
1042
1042
|
repeatContext: m.context,
|
|
1043
1043
|
block: m.block,
|
|
1044
1044
|
registeredComponents: e.registeredComponents,
|
|
1045
1045
|
linkComponent: e.linkComponent
|
|
1046
1046
|
},
|
|
1047
|
-
|
|
1047
|
+
Ae(b)
|
|
1048
1048
|
)) }) : /* @__PURE__ */ D(
|
|
1049
|
-
|
|
1049
|
+
rn,
|
|
1050
1050
|
{
|
|
1051
1051
|
Wrapper: o(),
|
|
1052
1052
|
block: r(),
|
|
1053
1053
|
context: e.context,
|
|
1054
1054
|
children: [
|
|
1055
1055
|
/* @__PURE__ */ s(
|
|
1056
|
-
|
|
1056
|
+
Be,
|
|
1057
1057
|
{
|
|
1058
1058
|
componentRef: d().componentRef,
|
|
1059
1059
|
componentOptions: d().componentOptions,
|
|
@@ -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(ze);
|
|
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 at(
|
|
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: tt(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(
|
|
@@ -1317,7 +1317,7 @@ function mn(e) {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
),
|
|
1319
1319
|
(p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
|
|
1320
|
-
|
|
1320
|
+
ke,
|
|
1321
1321
|
{
|
|
1322
1322
|
TagName: r(f),
|
|
1323
1323
|
actionAttributes: {},
|
|
@@ -1344,25 +1344,25 @@ 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
|
-
function
|
|
1350
|
+
function We(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")
|
|
1361
|
-
return
|
|
1361
|
+
return We(e);
|
|
1362
1362
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1363
1363
|
if (n) {
|
|
1364
1364
|
const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1365
|
-
return
|
|
1365
|
+
return We(`${i[0]}_${a}${r}`);
|
|
1366
1366
|
}
|
|
1367
1367
|
return null;
|
|
1368
1368
|
}
|
|
@@ -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", ot = "builderIoPersonalization", lt = "updateVisibilityStylesScript", st = ["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.${ot} = ${pn}
|
|
1753
|
+
window.${lt} = ${xn}
|
|
1754
|
+
`, ct = O === "react", In = (e, t, n) => `window.${ot}(${JSON.stringify(e)}, "${t}", ${ct}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${lt}(${JSON.stringify(e)}, "${t}", ${ct}${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",
|
|
@@ -1875,8 +1875,8 @@ const In = () => `
|
|
|
1875
1875
|
builderComponents: !0,
|
|
1876
1876
|
builderLinkComponent: !0
|
|
1877
1877
|
}
|
|
1878
|
-
},
|
|
1879
|
-
function
|
|
1878
|
+
}, De = (e) => e.toString();
|
|
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
|
{
|
|
@@ -1963,7 +1963,7 @@ function Pn(e) {
|
|
|
1963
1963
|
...a(),
|
|
1964
1964
|
...e.grid && {
|
|
1965
1965
|
width: e.gridRowWidth,
|
|
1966
|
-
order: c() !== null ?
|
|
1966
|
+
order: c() !== null ? De(S) : De(S + 1)
|
|
1967
1967
|
}
|
|
1968
1968
|
},
|
|
1969
1969
|
"data-index": S,
|
|
@@ -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
|
-
},
|
|
2253
|
+
}, Ie = ["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",
|
|
@@ -2265,7 +2265,7 @@ const Vn = {
|
|
|
2265
2265
|
name: "image",
|
|
2266
2266
|
type: "file",
|
|
2267
2267
|
bubble: !0,
|
|
2268
|
-
allowedFileTypes:
|
|
2268
|
+
allowedFileTypes: Ie,
|
|
2269
2269
|
required: !0,
|
|
2270
2270
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2271
2271
|
onChange: (e) => {
|
|
@@ -2362,7 +2362,7 @@ const Vn = {
|
|
|
2362
2362
|
shouldReceiveBuilderProps: {
|
|
2363
2363
|
builderBlock: !0
|
|
2364
2364
|
}
|
|
2365
|
-
},
|
|
2365
|
+
}, $n = {
|
|
2366
2366
|
name: "PersonalizationContainer",
|
|
2367
2367
|
shouldReceiveBuilderProps: {
|
|
2368
2368
|
builderBlock: !0,
|
|
@@ -2409,14 +2409,14 @@ function G(e) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
);
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2413
|
-
var v, T,
|
|
2414
|
-
const t =
|
|
2415
|
-
() =>
|
|
2412
|
+
function Wn(e) {
|
|
2413
|
+
var v, T, E, U, H, q, y, x, V, A, $, R, P;
|
|
2414
|
+
const t = z(null), [n, i] = k(
|
|
2415
|
+
() => Re.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,13 +2443,13 @@ 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
2451
|
var N, C, W, F;
|
|
2452
|
-
return
|
|
2452
|
+
return yn(
|
|
2453
2453
|
{
|
|
2454
2454
|
...(C = (N = e.builderContext) == null ? void 0 : N.rootState) != null && C.locale ? {
|
|
2455
2455
|
locale: (F = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : F.locale
|
|
@@ -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,
|
|
@@ -2483,7 +2483,7 @@ function Dn(e) {
|
|
|
2483
2483
|
return B(() => {
|
|
2484
2484
|
var N;
|
|
2485
2485
|
S(!0);
|
|
2486
|
-
const I =
|
|
2486
|
+
const I = Re.subscribeOnUserAttributesChange(
|
|
2487
2487
|
(C) => {
|
|
2488
2488
|
i(C);
|
|
2489
2489
|
},
|
|
@@ -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, W, F, L, j,
|
|
2556
|
+
var C, W, F, L, j, Ee;
|
|
2557
2557
|
return /* @__PURE__ */ s(
|
|
2558
2558
|
M,
|
|
2559
2559
|
{
|
|
@@ -2577,7 +2577,7 @@ function Dn(e) {
|
|
|
2577
2577
|
}
|
|
2578
2578
|
)
|
|
2579
2579
|
},
|
|
2580
|
-
`${(
|
|
2580
|
+
`${(Ee = e.builderBlock) == null ? void 0 : Ee.id}-${N}`
|
|
2581
2581
|
);
|
|
2582
2582
|
})
|
|
2583
2583
|
] }) : null,
|
|
@@ -2596,9 +2596,9 @@ function Dn(e) {
|
|
|
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
|
+
Qe(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
|
+
He(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
|
|
3399
3399
|
async (y) => {
|
|
3400
3400
|
var A, $;
|
|
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 && (($ = t.current) == null || $.nativeElement.dispatchEvent(
|
|
3407
|
+
if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3408
3408
|
return;
|
|
3409
3409
|
a(x), i("error");
|
|
3410
|
-
let
|
|
3411
|
-
typeof
|
|
3410
|
+
let P = e.errorMessagePath ? Ke(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__ */ je(
|
|
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__ */ je(
|
|
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",
|
|
@@ -3698,7 +3698,7 @@ const ci = {
|
|
|
3698
3698
|
name: "image",
|
|
3699
3699
|
bubble: !0,
|
|
3700
3700
|
type: "file",
|
|
3701
|
-
allowedFileTypes:
|
|
3701
|
+
allowedFileTypes: Ie,
|
|
3702
3702
|
required: !0
|
|
3703
3703
|
}, {
|
|
3704
3704
|
name: "backgroundSize",
|
|
@@ -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,14 +3773,14 @@ 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
|
|
3780
3780
|
}, {
|
|
3781
3781
|
name: "posterImage",
|
|
3782
3782
|
type: "file",
|
|
3783
|
-
allowedFileTypes:
|
|
3783
|
+
allowedFileTypes: Ie,
|
|
3784
3784
|
helperText: "Image to show before the video plays"
|
|
3785
3785
|
}, {
|
|
3786
3786
|
name: "autoPlay",
|
|
@@ -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
|
+
}], Oe = () => [{
|
|
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:
|
|
4039
|
-
|
|
4035
|
+
component: Mn,
|
|
4036
|
+
...Hn
|
|
4037
|
+
}, ...st.includes(O) ? [{
|
|
4038
|
+
component: Wn,
|
|
4039
|
+
...$n
|
|
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,37 @@ const fi = () => [{
|
|
|
4136
4136
|
thisScriptEl?.remove();
|
|
4137
4137
|
}
|
|
4138
4138
|
return;
|
|
4139
|
-
}`,
|
|
4139
|
+
}`, xe = "builderIoAbTest", Se = "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()),
|
|
4146
|
+
}) => !(!(re(t).length > 0) || !e || J()), gi = (e) => e === "react" || e === "reactNative", yi = O === "angular", we = gi(O), pi = () => `
|
|
4147
4147
|
(function() {
|
|
4148
|
-
|
|
4149
|
-
|
|
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}
|
|
4148
|
+
if (!window.${xe}) {
|
|
4149
|
+
window.${xe} = ${fi};
|
|
4174
4150
|
}
|
|
4151
|
+
if (!window.${Se}) {
|
|
4152
|
+
window.${Se} = ${hi};
|
|
4153
|
+
}${we ? `
|
|
4154
|
+
var thisScriptEl = document.currentScript;
|
|
4155
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4175
4156
|
})();
|
|
4176
|
-
`, vi = () => `
|
|
4177
|
-
window.${
|
|
4178
|
-
|
|
4179
|
-
`, xi = (
|
|
4180
|
-
window.${st}(
|
|
4181
|
-
"${t}",${JSON.stringify(e)}, ${ut}, ${pi}
|
|
4182
|
-
)`, Si = ({
|
|
4157
|
+
`, vi = (e, t) => `
|
|
4158
|
+
window.${xe}(
|
|
4159
|
+
"${t}",${JSON.stringify(e)}, ${we}, ${yi}
|
|
4160
|
+
)`, xi = ({
|
|
4183
4161
|
contentId: e,
|
|
4184
4162
|
variationId: t
|
|
4185
|
-
}) => `window.${
|
|
4186
|
-
"${t}", "${e}", ${
|
|
4163
|
+
}) => `window.${Se}(
|
|
4164
|
+
"${t}", "${e}", ${we}
|
|
4187
4165
|
)`;
|
|
4188
|
-
function
|
|
4166
|
+
function Fe(e) {
|
|
4189
4167
|
return Math.round(e * 1e3) / 1e3;
|
|
4190
4168
|
}
|
|
4191
|
-
const
|
|
4169
|
+
const Si = (e, t, n = !0) => {
|
|
4192
4170
|
if (!(e instanceof HTMLElement))
|
|
4193
4171
|
return null;
|
|
4194
4172
|
let i = n ? e : e.parentElement;
|
|
@@ -4199,35 +4177,35 @@ const ki = (e, t, n = !0) => {
|
|
|
4199
4177
|
return i;
|
|
4200
4178
|
} while (i = i.parentElement);
|
|
4201
4179
|
return null;
|
|
4202
|
-
},
|
|
4180
|
+
}, ki = (e) => Si(e, (t) => {
|
|
4203
4181
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4204
4182
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4205
|
-
}),
|
|
4183
|
+
}), Le = ({
|
|
4206
4184
|
event: e,
|
|
4207
4185
|
target: t
|
|
4208
4186
|
}) => {
|
|
4209
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a =
|
|
4187
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = Fe(i / n.width), o = Fe(r / n.height);
|
|
4210
4188
|
return {
|
|
4211
4189
|
x: a,
|
|
4212
4190
|
y: o
|
|
4213
4191
|
};
|
|
4214
|
-
},
|
|
4215
|
-
const t = e.target, n = t &&
|
|
4192
|
+
}, Ci = (e) => {
|
|
4193
|
+
const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4216
4194
|
return {
|
|
4217
4195
|
targetBuilderElement: i || void 0,
|
|
4218
4196
|
metadata: {
|
|
4219
|
-
targetOffset: t ?
|
|
4197
|
+
targetOffset: t ? Le({
|
|
4220
4198
|
event: e,
|
|
4221
4199
|
target: t
|
|
4222
4200
|
}) : void 0,
|
|
4223
|
-
builderTargetOffset: n ?
|
|
4201
|
+
builderTargetOffset: n ? Le({
|
|
4224
4202
|
event: e,
|
|
4225
4203
|
target: n
|
|
4226
4204
|
}) : void 0,
|
|
4227
4205
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4228
4206
|
}
|
|
4229
4207
|
};
|
|
4230
|
-
},
|
|
4208
|
+
}, Ti = ["svelte", "qwik", "vue"], _e = () => Ti.includes(O) && (_() || le()), Ii = (e) => {
|
|
4231
4209
|
var a, o;
|
|
4232
4210
|
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
4211
|
let r = "";
|
|
@@ -4253,15 +4231,15 @@ font-weight: ${l};
|
|
|
4253
4231
|
`.trim());
|
|
4254
4232
|
}
|
|
4255
4233
|
return r;
|
|
4256
|
-
},
|
|
4234
|
+
}, wi = ({
|
|
4257
4235
|
customFonts: e
|
|
4258
4236
|
}) => {
|
|
4259
4237
|
var t;
|
|
4260
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4261
|
-
},
|
|
4238
|
+
return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4239
|
+
}, Ei = ({
|
|
4262
4240
|
cssCode: e,
|
|
4263
4241
|
contentId: t
|
|
4264
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4242
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
|
|
4265
4243
|
.builder-button {
|
|
4266
4244
|
all: unset;
|
|
4267
4245
|
}
|
|
@@ -4278,30 +4256,30 @@ font-weight: ${l};
|
|
|
4278
4256
|
text-align: inherit;
|
|
4279
4257
|
font-family: inherit;
|
|
4280
4258
|
}
|
|
4281
|
-
`,
|
|
4282
|
-
function
|
|
4259
|
+
`, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
|
|
4260
|
+
function Ai(e) {
|
|
4283
4261
|
var H, q, y;
|
|
4284
|
-
const t =
|
|
4262
|
+
const t = z(null);
|
|
4285
4263
|
k(() => !1), k(
|
|
4286
4264
|
() => e.builderContextSignal
|
|
4287
4265
|
);
|
|
4288
4266
|
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4289
4267
|
function o(x, V) {
|
|
4290
|
-
var $,
|
|
4268
|
+
var $, R;
|
|
4291
4269
|
const A = {
|
|
4292
4270
|
...e.builderContextSignal.rootState,
|
|
4293
4271
|
...x
|
|
4294
4272
|
};
|
|
4295
|
-
e.builderContextSignal.rootSetState ? (
|
|
4296
|
-
...
|
|
4273
|
+
e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
|
|
4274
|
+
...P,
|
|
4297
4275
|
rootState: A
|
|
4298
|
-
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((
|
|
4299
|
-
...
|
|
4276
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
|
|
4277
|
+
...P,
|
|
4300
4278
|
rootState: A
|
|
4301
4279
|
}));
|
|
4302
4280
|
}
|
|
4303
4281
|
function l(x, V) {
|
|
4304
|
-
var $,
|
|
4282
|
+
var $, R, P, I, N;
|
|
4305
4283
|
const A = {
|
|
4306
4284
|
...e.builderContextSignal.content,
|
|
4307
4285
|
...x,
|
|
@@ -4310,9 +4288,9 @@ function Bi(e) {
|
|
|
4310
4288
|
...x == null ? void 0 : x.data
|
|
4311
4289
|
},
|
|
4312
4290
|
meta: {
|
|
4313
|
-
...(
|
|
4291
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4314
4292
|
...x == null ? void 0 : x.meta,
|
|
4315
|
-
breakpoints: ((
|
|
4293
|
+
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
4294
|
}
|
|
4317
4295
|
};
|
|
4318
4296
|
e.setBuilderContextSignal((C) => ({
|
|
@@ -4330,21 +4308,21 @@ function Bi(e) {
|
|
|
4330
4308
|
() => e.contentWrapper || "div"
|
|
4331
4309
|
);
|
|
4332
4310
|
function g(x) {
|
|
4333
|
-
return
|
|
4311
|
+
return ht({
|
|
4334
4312
|
model: e.model,
|
|
4335
4313
|
trustedHosts: e.trustedHosts,
|
|
4336
4314
|
callbacks: {
|
|
4337
4315
|
configureSdk: (V) => {
|
|
4338
|
-
var
|
|
4316
|
+
var R;
|
|
4339
4317
|
const { breakpoints: A, contentId: $ } = V;
|
|
4340
|
-
!$ || $ !== ((
|
|
4318
|
+
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
|
|
4341
4319
|
meta: {
|
|
4342
4320
|
breakpoints: A
|
|
4343
4321
|
}
|
|
4344
4322
|
});
|
|
4345
4323
|
},
|
|
4346
4324
|
animation: (V) => {
|
|
4347
|
-
|
|
4325
|
+
Ze(V);
|
|
4348
4326
|
},
|
|
4349
4327
|
contentUpdate: (V, A) => {
|
|
4350
4328
|
l(V);
|
|
@@ -4359,15 +4337,15 @@ function Bi(e) {
|
|
|
4359
4337
|
function v(x) {
|
|
4360
4338
|
var V, A;
|
|
4361
4339
|
if (e.builderContextSignal.content) {
|
|
4362
|
-
const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId,
|
|
4340
|
+
const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4363
4341
|
ye({
|
|
4364
4342
|
apiHost: e.apiHost,
|
|
4365
4343
|
type: "click",
|
|
4366
4344
|
canTrack: ee(e.canTrack),
|
|
4367
|
-
contentId:
|
|
4345
|
+
contentId: R,
|
|
4368
4346
|
apiKey: e.apiKey,
|
|
4369
|
-
variationId: $ !==
|
|
4370
|
-
...
|
|
4347
|
+
variationId: $ !== R ? $ : void 0,
|
|
4348
|
+
...Ci(x),
|
|
4371
4349
|
unique: !p
|
|
4372
4350
|
});
|
|
4373
4351
|
}
|
|
@@ -4377,14 +4355,14 @@ function Bi(e) {
|
|
|
4377
4355
|
var V, A, $;
|
|
4378
4356
|
const x = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
|
|
4379
4357
|
Object.entries(x).forEach(
|
|
4380
|
-
([
|
|
4381
|
-
if (!
|
|
4358
|
+
([R, P]) => {
|
|
4359
|
+
if (!P)
|
|
4382
4360
|
return;
|
|
4383
|
-
const I = typeof
|
|
4384
|
-
if (m[
|
|
4361
|
+
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4362
|
+
if (m[R] || u[R] && !_())
|
|
4385
4363
|
return;
|
|
4386
|
-
const N = I ?
|
|
4387
|
-
m[
|
|
4364
|
+
const N = I ? P.request.url : P;
|
|
4365
|
+
m[R] = !0;
|
|
4388
4366
|
const C = N.replace(
|
|
4389
4367
|
/{{([^}]+)}}/g,
|
|
4390
4368
|
(L, j) => String(
|
|
@@ -4398,14 +4376,14 @@ function Bi(e) {
|
|
|
4398
4376
|
)
|
|
4399
4377
|
), W = I ? {
|
|
4400
4378
|
url: C,
|
|
4401
|
-
method:
|
|
4402
|
-
headers:
|
|
4403
|
-
body:
|
|
4379
|
+
method: P.request.method,
|
|
4380
|
+
headers: P.request.headers,
|
|
4381
|
+
body: P.request.body
|
|
4404
4382
|
} : {
|
|
4405
4383
|
url: C,
|
|
4406
4384
|
method: "GET"
|
|
4407
4385
|
};
|
|
4408
|
-
|
|
4386
|
+
He(JSON.stringify(W));
|
|
4409
4387
|
const F = {
|
|
4410
4388
|
method: W.method,
|
|
4411
4389
|
headers: W.headers,
|
|
@@ -4413,27 +4391,27 @@ function Bi(e) {
|
|
|
4413
4391
|
};
|
|
4414
4392
|
W.method === "GET" && delete F.body, fetch(W.url, F).then((L) => L.json()).then((L) => {
|
|
4415
4393
|
o({
|
|
4416
|
-
[
|
|
4417
|
-
}), u[
|
|
4394
|
+
[R]: L
|
|
4395
|
+
}), u[R] = !0;
|
|
4418
4396
|
}).catch((L) => {
|
|
4419
4397
|
console.error(
|
|
4420
4398
|
"error fetching dynamic data",
|
|
4421
|
-
JSON.stringify(
|
|
4399
|
+
JSON.stringify(P),
|
|
4422
4400
|
L
|
|
4423
4401
|
);
|
|
4424
4402
|
}).finally(() => {
|
|
4425
|
-
m[
|
|
4403
|
+
m[R] = !1;
|
|
4426
4404
|
});
|
|
4427
4405
|
}
|
|
4428
4406
|
);
|
|
4429
4407
|
}
|
|
4430
|
-
function
|
|
4408
|
+
function E() {
|
|
4431
4409
|
_() && window.dispatchEvent(
|
|
4432
4410
|
new CustomEvent(
|
|
4433
4411
|
"builder:component:stateChange",
|
|
4434
4412
|
{
|
|
4435
4413
|
detail: {
|
|
4436
|
-
state:
|
|
4414
|
+
state: Ce(e.builderContextSignal.rootState),
|
|
4437
4415
|
ref: {
|
|
4438
4416
|
name: e.model
|
|
4439
4417
|
}
|
|
@@ -4442,11 +4420,11 @@ function Bi(e) {
|
|
|
4442
4420
|
)
|
|
4443
4421
|
);
|
|
4444
4422
|
}
|
|
4445
|
-
const U =
|
|
4446
|
-
return U.current || (T(),
|
|
4447
|
-
var x, V, A, $,
|
|
4423
|
+
const U = z(!1);
|
|
4424
|
+
return U.current || (T(), E(), U.current = !0), B(() => {
|
|
4425
|
+
var x, V, A, $, R;
|
|
4448
4426
|
if (J()) {
|
|
4449
|
-
_() && !e.isNestedRender && (window.addEventListener("message", g),
|
|
4427
|
+
_() && !e.isNestedRender && (window.addEventListener("message", g), dt({
|
|
4450
4428
|
...e.locale ? {
|
|
4451
4429
|
locale: e.locale
|
|
4452
4430
|
} : {},
|
|
@@ -4463,18 +4441,18 @@ function Bi(e) {
|
|
|
4463
4441
|
).forEach((C) => {
|
|
4464
4442
|
var W, F;
|
|
4465
4443
|
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4466
|
-
const L =
|
|
4444
|
+
const L = mt(C);
|
|
4467
4445
|
(F = window.parent) == null || F.postMessage(L, "*");
|
|
4468
4446
|
}
|
|
4469
4447
|
}), window.addEventListener(
|
|
4470
4448
|
"builder:component:stateChangeListenerActivated",
|
|
4471
|
-
|
|
4449
|
+
E
|
|
4472
4450
|
));
|
|
4473
|
-
const
|
|
4451
|
+
const P = e.builderContextSignal.content && ee(e.canTrack), I = ft({
|
|
4474
4452
|
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4475
4453
|
canTrack: !0
|
|
4476
4454
|
}), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4477
|
-
if (
|
|
4455
|
+
if (P && N === I) {
|
|
4478
4456
|
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4479
4457
|
ye({
|
|
4480
4458
|
apiHost: e.apiHost,
|
|
@@ -4489,11 +4467,11 @@ function Bi(e) {
|
|
|
4489
4467
|
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), F = C.get(
|
|
4490
4468
|
`builder.overrides.${W}`
|
|
4491
4469
|
), L = C.get("apiKey") || C.get("builder.space");
|
|
4492
|
-
(W === "BUILDER_STUDIO" || W === e.model && L === e.apiKey && (!e.content || F === e.content.id)) &&
|
|
4470
|
+
(W === "BUILDER_STUDIO" || W === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && Me({
|
|
4493
4471
|
model: e.model,
|
|
4494
4472
|
apiKey: e.apiKey,
|
|
4495
4473
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4496
|
-
...W === "BUILDER_STUDIO" && ((
|
|
4474
|
+
...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4497
4475
|
query: {
|
|
4498
4476
|
id: e.context.symbolId
|
|
4499
4477
|
}
|
|
@@ -4506,7 +4484,7 @@ function Bi(e) {
|
|
|
4506
4484
|
}, []), B(() => {
|
|
4507
4485
|
e.content && l(e.content);
|
|
4508
4486
|
}, [e.content]), B(() => {
|
|
4509
|
-
|
|
4487
|
+
E();
|
|
4510
4488
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4511
4489
|
if (e.data) {
|
|
4512
4490
|
if (n === e.data)
|
|
@@ -4524,20 +4502,20 @@ function Bi(e) {
|
|
|
4524
4502
|
}, [e.locale]), B(() => () => {
|
|
4525
4503
|
J() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4526
4504
|
"builder:component:stateChangeListenerActivated",
|
|
4527
|
-
|
|
4505
|
+
E
|
|
4528
4506
|
));
|
|
4529
|
-
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4507
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || _e() ? /* @__PURE__ */ s(
|
|
4530
4508
|
d,
|
|
4531
4509
|
{
|
|
4532
4510
|
ref: t,
|
|
4533
4511
|
onClick: (x) => v(x),
|
|
4534
4512
|
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4535
4513
|
"builder-model": e.model,
|
|
4536
|
-
className:
|
|
4514
|
+
className: Vi(
|
|
4537
4515
|
((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
4538
4516
|
),
|
|
4539
4517
|
style: {
|
|
4540
|
-
display: !e.builderContextSignal.content &&
|
|
4518
|
+
display: !e.builderContextSignal.content && _e() ? "none" : void 0
|
|
4541
4519
|
},
|
|
4542
4520
|
...c(),
|
|
4543
4521
|
...e.contentWrapperProps,
|
|
@@ -4545,17 +4523,17 @@ function Bi(e) {
|
|
|
4545
4523
|
}
|
|
4546
4524
|
) : null });
|
|
4547
4525
|
}
|
|
4548
|
-
function
|
|
4526
|
+
function Bi(e) {
|
|
4549
4527
|
const [t, n] = k(
|
|
4550
4528
|
() => `
|
|
4551
|
-
${
|
|
4529
|
+
${Ei({
|
|
4552
4530
|
cssCode: e.cssCode,
|
|
4553
4531
|
contentId: e.contentId
|
|
4554
4532
|
})}
|
|
4555
|
-
${
|
|
4533
|
+
${wi({
|
|
4556
4534
|
customFonts: e.customFonts
|
|
4557
4535
|
})}
|
|
4558
|
-
${
|
|
4536
|
+
${Pi(e.isNestedRender)}
|
|
4559
4537
|
`.trim()
|
|
4560
4538
|
);
|
|
4561
4539
|
return /* @__PURE__ */ s(
|
|
@@ -4567,7 +4545,7 @@ ${Vi(e.isNestedRender)}
|
|
|
4567
4545
|
}
|
|
4568
4546
|
);
|
|
4569
4547
|
}
|
|
4570
|
-
const
|
|
4548
|
+
const Ni = ({
|
|
4571
4549
|
content: e,
|
|
4572
4550
|
data: t,
|
|
4573
4551
|
locale: n
|
|
@@ -4584,7 +4562,7 @@ const $i = ({
|
|
|
4584
4562
|
locale: n
|
|
4585
4563
|
} : {}
|
|
4586
4564
|
};
|
|
4587
|
-
},
|
|
4565
|
+
}, $i = ({
|
|
4588
4566
|
content: e,
|
|
4589
4567
|
data: t
|
|
4590
4568
|
}) => e ? {
|
|
@@ -4595,12 +4573,12 @@ const $i = ({
|
|
|
4595
4573
|
},
|
|
4596
4574
|
meta: e == null ? void 0 : e.meta
|
|
4597
4575
|
} : void 0;
|
|
4598
|
-
function
|
|
4576
|
+
function Ue(e) {
|
|
4599
4577
|
var d, h, g, u, S, m, b, p, f;
|
|
4600
4578
|
const [t, n] = k(
|
|
4601
4579
|
() => {
|
|
4602
4580
|
var v, T;
|
|
4603
|
-
return
|
|
4581
|
+
return xi({
|
|
4604
4582
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4605
4583
|
variationId: (v = e.content) == null ? void 0 : v.testVariationId,
|
|
4606
4584
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4616,25 +4594,25 @@ function Le(e) {
|
|
|
4616
4594
|
}
|
|
4617
4595
|
const [r, a] = k(
|
|
4618
4596
|
() => [
|
|
4619
|
-
|
|
4597
|
+
...Oe(),
|
|
4620
4598
|
...e.customComponents || []
|
|
4621
4599
|
].reduce(
|
|
4622
|
-
(v, { component: T, ...
|
|
4600
|
+
(v, { component: T, ...E }) => ({
|
|
4623
4601
|
...v,
|
|
4624
|
-
[
|
|
4602
|
+
[E.name]: {
|
|
4625
4603
|
component: T,
|
|
4626
|
-
...
|
|
4604
|
+
...Pe(E)
|
|
4627
4605
|
}
|
|
4628
4606
|
}),
|
|
4629
4607
|
{}
|
|
4630
4608
|
)
|
|
4631
4609
|
), [o, l] = k(() => ({
|
|
4632
|
-
content:
|
|
4610
|
+
content: $i({
|
|
4633
4611
|
content: e.content,
|
|
4634
4612
|
data: e.data
|
|
4635
4613
|
}),
|
|
4636
4614
|
localState: void 0,
|
|
4637
|
-
rootState:
|
|
4615
|
+
rootState: Ni({
|
|
4638
4616
|
content: e.content,
|
|
4639
4617
|
data: e.data,
|
|
4640
4618
|
locale: e.locale
|
|
@@ -4645,12 +4623,12 @@ function Le(e) {
|
|
|
4645
4623
|
apiKey: e.apiKey,
|
|
4646
4624
|
apiVersion: e.apiVersion,
|
|
4647
4625
|
componentInfos: [
|
|
4648
|
-
|
|
4626
|
+
...Oe(),
|
|
4649
4627
|
...e.customComponents || []
|
|
4650
4628
|
].reduce(
|
|
4651
|
-
(v, { component: T, ...
|
|
4629
|
+
(v, { component: T, ...E }) => ({
|
|
4652
4630
|
...v,
|
|
4653
|
-
[
|
|
4631
|
+
[E.name]: Pe(E)
|
|
4654
4632
|
}),
|
|
4655
4633
|
{}
|
|
4656
4634
|
),
|
|
@@ -4659,7 +4637,7 @@ function Le(e) {
|
|
|
4659
4637
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4660
4638
|
nonce: e.nonce || "",
|
|
4661
4639
|
model: e.model
|
|
4662
|
-
})), c =
|
|
4640
|
+
})), c = z(!1);
|
|
4663
4641
|
if (!c.current) {
|
|
4664
4642
|
e.apiKey || Q.error(
|
|
4665
4643
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
@@ -4678,13 +4656,13 @@ function Le(e) {
|
|
|
4678
4656
|
}
|
|
4679
4657
|
return B(() => {
|
|
4680
4658
|
}, [e.content, e.data, e.locale]), /* @__PURE__ */ s(
|
|
4681
|
-
|
|
4659
|
+
ze.Provider,
|
|
4682
4660
|
{
|
|
4683
4661
|
value: {
|
|
4684
4662
|
registeredComponents: r
|
|
4685
4663
|
},
|
|
4686
4664
|
children: /* @__PURE__ */ D(
|
|
4687
|
-
|
|
4665
|
+
Ai,
|
|
4688
4666
|
{
|
|
4689
4667
|
apiHost: e.apiHost,
|
|
4690
4668
|
nonce: e.nonce,
|
|
@@ -4713,7 +4691,7 @@ function Le(e) {
|
|
|
4713
4691
|
}
|
|
4714
4692
|
) : null,
|
|
4715
4693
|
/* @__PURE__ */ s(
|
|
4716
|
-
|
|
4694
|
+
Bi,
|
|
4717
4695
|
{
|
|
4718
4696
|
nonce: e.nonce || "",
|
|
4719
4697
|
isNestedRender: e.isNestedRender,
|
|
@@ -4737,17 +4715,17 @@ function Le(e) {
|
|
|
4737
4715
|
}
|
|
4738
4716
|
);
|
|
4739
4717
|
}
|
|
4740
|
-
function
|
|
4718
|
+
function Wi(e) {
|
|
4741
4719
|
var o;
|
|
4742
4720
|
const [t, n] = k(
|
|
4743
|
-
() =>
|
|
4721
|
+
() => bi({
|
|
4744
4722
|
canTrack: ee(e.canTrack),
|
|
4745
4723
|
content: e.content
|
|
4746
4724
|
})
|
|
4747
4725
|
);
|
|
4748
4726
|
function i() {
|
|
4749
4727
|
var l;
|
|
4750
|
-
return
|
|
4728
|
+
return vi(
|
|
4751
4729
|
re(e.content).map((c) => ({
|
|
4752
4730
|
id: c.testVariationId,
|
|
4753
4731
|
testRatio: c.testRatio
|
|
@@ -4763,36 +4741,30 @@ function Di(e) {
|
|
|
4763
4741
|
return t ? {
|
|
4764
4742
|
...e.content,
|
|
4765
4743
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4766
|
-
} :
|
|
4744
|
+
} : bt({
|
|
4767
4745
|
item: e.content,
|
|
4768
4746
|
canTrack: ee(e.canTrack)
|
|
4769
4747
|
});
|
|
4770
4748
|
}
|
|
4771
4749
|
return B(() => {
|
|
4772
|
-
}, []), /* @__PURE__ */ D(
|
|
4773
|
-
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4774
|
-
G,
|
|
4775
|
-
{
|
|
4776
|
-
id: "builderio-init-variants-fns",
|
|
4777
|
-
scriptStr: We(
|
|
4778
|
-
"builderio-init-variants-fns",
|
|
4779
|
-
vi()
|
|
4780
|
-
),
|
|
4781
|
-
nonce: e.nonce || ""
|
|
4782
|
-
}
|
|
4783
|
-
) : null,
|
|
4784
|
-
!e.isNestedRender && O !== "reactNative" && ot.includes(O) ? /* @__PURE__ */ s(
|
|
4750
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
4751
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(w, { children: st.includes(O) ? /* @__PURE__ */ s(
|
|
4785
4752
|
G,
|
|
4786
4753
|
{
|
|
4787
4754
|
id: "builderio-init-personalization-variants-fns",
|
|
4788
4755
|
nonce: e.nonce || "",
|
|
4789
|
-
scriptStr:
|
|
4790
|
-
"builderio-init-personalization-variants-fns",
|
|
4791
|
-
In()
|
|
4792
|
-
)
|
|
4756
|
+
scriptStr: Tn()
|
|
4793
4757
|
}
|
|
4794
|
-
) : null,
|
|
4795
|
-
t ? /* @__PURE__ */ D(
|
|
4758
|
+
) : null }) : null,
|
|
4759
|
+
t ? /* @__PURE__ */ D(w, { children: [
|
|
4760
|
+
/* @__PURE__ */ s(
|
|
4761
|
+
G,
|
|
4762
|
+
{
|
|
4763
|
+
id: "builderio-init-variants-fns",
|
|
4764
|
+
scriptStr: pi(),
|
|
4765
|
+
nonce: e.nonce || ""
|
|
4766
|
+
}
|
|
4767
|
+
),
|
|
4796
4768
|
/* @__PURE__ */ s(
|
|
4797
4769
|
te,
|
|
4798
4770
|
{
|
|
@@ -4810,7 +4782,7 @@ function Di(e) {
|
|
|
4810
4782
|
}
|
|
4811
4783
|
),
|
|
4812
4784
|
(o = re(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4813
|
-
|
|
4785
|
+
Ue,
|
|
4814
4786
|
{
|
|
4815
4787
|
apiHost: e.apiHost,
|
|
4816
4788
|
isNestedRender: e.isNestedRender,
|
|
@@ -4838,7 +4810,7 @@ function Di(e) {
|
|
|
4838
4810
|
))
|
|
4839
4811
|
] }) : null,
|
|
4840
4812
|
/* @__PURE__ */ s(
|
|
4841
|
-
|
|
4813
|
+
Ue,
|
|
4842
4814
|
{
|
|
4843
4815
|
apiHost: e.apiHost,
|
|
4844
4816
|
nonce: e.nonce,
|
|
@@ -4865,13 +4837,13 @@ function Di(e) {
|
|
|
4865
4837
|
)
|
|
4866
4838
|
] });
|
|
4867
4839
|
}
|
|
4868
|
-
const
|
|
4840
|
+
const Di = async ({
|
|
4869
4841
|
builderContextValue: e,
|
|
4870
4842
|
symbol: t
|
|
4871
4843
|
}) => {
|
|
4872
4844
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4873
4845
|
(e != null && e.apiKey))
|
|
4874
|
-
return
|
|
4846
|
+
return Me({
|
|
4875
4847
|
model: t.model,
|
|
4876
4848
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
4877
4849
|
apiVersion: e.apiVersion,
|
|
@@ -4884,7 +4856,7 @@ const Oi = async ({
|
|
|
4884
4856
|
Q.error("Could not fetch symbol content: ", n);
|
|
4885
4857
|
});
|
|
4886
4858
|
};
|
|
4887
|
-
function
|
|
4859
|
+
function Oi(e) {
|
|
4888
4860
|
var h, g, u, S, m, b, p;
|
|
4889
4861
|
function t() {
|
|
4890
4862
|
return "div";
|
|
@@ -4898,7 +4870,7 @@ function Fi(e) {
|
|
|
4898
4870
|
function r() {
|
|
4899
4871
|
var f, v;
|
|
4900
4872
|
return [
|
|
4901
|
-
e.attributes[
|
|
4873
|
+
e.attributes[K()],
|
|
4902
4874
|
"builder-symbol",
|
|
4903
4875
|
(f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
|
|
4904
4876
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4913,7 +4885,7 @@ function Fi(e) {
|
|
|
4913
4885
|
});
|
|
4914
4886
|
function d() {
|
|
4915
4887
|
var f;
|
|
4916
|
-
a && l === ((f = e.symbol) == null ? void 0 : f.entry) ||
|
|
4888
|
+
a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
|
|
4917
4889
|
symbol: e.symbol,
|
|
4918
4890
|
builderContextValue: e.builderContext
|
|
4919
4891
|
}).then((v) => {
|
|
@@ -4925,7 +4897,7 @@ function Fi(e) {
|
|
|
4925
4897
|
}, []), B(() => {
|
|
4926
4898
|
d();
|
|
4927
4899
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4928
|
-
|
|
4900
|
+
Wi,
|
|
4929
4901
|
{
|
|
4930
4902
|
nonce: e.builderContext.nonce,
|
|
4931
4903
|
isNestedRender: !0,
|
|
@@ -4953,14 +4925,14 @@ function Fi(e) {
|
|
|
4953
4925
|
export {
|
|
4954
4926
|
M as Blocks,
|
|
4955
4927
|
se as BuilderContext,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4928
|
+
vt as Button,
|
|
4929
|
+
dn as Columns,
|
|
4930
|
+
Wi as Content,
|
|
4931
|
+
mn as Fragment,
|
|
4932
|
+
bn as Image,
|
|
4933
|
+
gn as Section,
|
|
4934
|
+
Oi as Symbol,
|
|
4935
|
+
Mn as Text,
|
|
4936
|
+
di as Video,
|
|
4937
|
+
Mi as setClientUserAttributes
|
|
4966
4938
|
};
|