@builder.io/sdk-react 3.0.6 → 4.0.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/lib/browser/blocks-exports.cjs +32 -32
- package/lib/browser/blocks-exports.mjs +923 -860
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-df5e89e5.js → server-entry-422fad84.js} +51 -40
- package/lib/browser/server-entry-916191b4.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-fbfb71f4.cjs → accordion-2f83fc75.cjs} +1 -1
- package/lib/edge/{accordion-289f3464.js → accordion-e1b77652.js} +1 -1
- package/lib/edge/{blocks-582a7fd7.js → blocks-0885e182.js} +1305 -1280
- package/lib/edge/blocks-5165c164.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-da357144.cjs → button-d7197e96.cjs} +1 -1
- package/lib/edge/{button-9b112da6.js → button-d878f35c.js} +2 -2
- package/lib/edge/{columns-a211113f.cjs → columns-46729516.cjs} +1 -1
- package/lib/edge/{columns-aba58dda.js → columns-b365c86a.js} +3 -3
- package/lib/edge/{content-variants-08f4371c.js → content-variants-1594c868.js} +281 -279
- package/lib/edge/content-variants-c6cab1c3.cjs +134 -0
- package/lib/edge/{form-e3a3afd4.cjs → form-9844766c.cjs} +1 -1
- package/lib/edge/{form-4d4553c2.js → form-b66c20a3.js} +3 -3
- package/lib/edge/{get-class-prop-name-fbe244e3.cjs → get-class-prop-name-0b992cfb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-38c2baca.js → get-class-prop-name-dac81472.js} +1 -1
- package/lib/edge/{img-c49066fa.js → img-c4a772a8.js} +1 -1
- package/lib/edge/{img-8d549af8.cjs → img-fb35350a.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-1ae3842f.cjs → input-122768ac.cjs} +1 -1
- package/lib/edge/{input-e7301f4e.js → input-57c5b097.js} +1 -1
- package/lib/edge/{personalization-container-035be6ba.js → personalization-container-7e63edce.js} +4 -4
- package/lib/edge/{personalization-container-25cd8b5e.cjs → personalization-container-a17ae615.cjs} +1 -1
- package/lib/edge/{select-4187b229.js → select-3d4324ef.js} +1 -1
- package/lib/edge/{select-64fdaa79.cjs → select-7f750b70.cjs} +1 -1
- package/lib/edge/server-entry-77166102.cjs +2 -0
- package/lib/edge/{server-entry-61fca4f7.js → server-entry-c1673af2.js} +55 -44
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-d6c46a42.js → slot-05ef18a0.js} +3 -3
- package/lib/edge/{slot-995f63c2.cjs → slot-123c0993.cjs} +1 -1
- package/lib/edge/symbol-ee314d5a.cjs +1 -0
- package/lib/edge/{symbol-623dc717.js → symbol-f488bea0.js} +25 -25
- package/lib/edge/{tabs-12ba41b1.js → tabs-244d53fa.js} +3 -3
- package/lib/edge/{tabs-d39499cd.cjs → tabs-edb82022.cjs} +1 -1
- package/lib/edge/{video-a3f10439.js → video-52df64e2.js} +54 -17
- package/lib/edge/video-cc58dd83.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +912 -849
- 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-27d9d31e.js → server-entry-4df60fc5.js} +51 -40
- package/lib/node/server-entry-8ab8c78b.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-2dde9074.js → setIvm-0edfc727.js} +1 -1
- package/lib/node/{setIvm-784fe19f.cjs → setIvm-6405aa63.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-cd6baa94.cjs → should-force-browser-runtime-in-node-6d4dbff9.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-80f081c8.js → should-force-browser-runtime-in-node-7a39b073.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +2 -2
- package/types/constants/device-sizes.d.ts +3 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +13 -13
- package/types/scripts/init-editing.d.ts +3 -1
- package/types/types/builder-block.d.ts +0 -1
- package/types/types/builder-content.d.ts +1 -0
- package/lib/browser/server-entry-a1c64831.cjs +0 -2
- package/lib/edge/blocks-459a090b.cjs +0 -30
- package/lib/edge/content-variants-4b5899b5.cjs +0 -134
- package/lib/edge/server-entry-2ef4e66a.cjs +0 -2
- package/lib/edge/symbol-498daa97.cjs +0 -1
- package/lib/edge/video-4ecfd08b.cjs +0 -1
- package/lib/node/server-entry-98ebff74.cjs +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser as L, logger as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
import { TARGET as F, isBrowser as L, logger as re, checkIsDefined as ae, isPreviewing as G, isEditing as W, userAttributesService as fe, getDefaultCanTrack as H, logFetch as Ie, registerInsertMenu as ze, setupBrowserForEditing as Ke, createRegisterComponentMessage as Je, _track as he, fetchOneEntry as Ee, createEditorListener as Ge, serializeIncludingFunctions as ge, handleABTestingSync as Qe } from "./server-entry-4df60fc5.js";
|
|
3
|
+
import { setClientUserAttributes as Ci } from "./server-entry-4df60fc5.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as N } from "react/jsx-runtime";
|
|
5
|
+
import * as Ye from "react";
|
|
6
|
+
import { createContext as Re, useEffect as B, useState as E, useRef as D, useContext as be, createElement as Ve } from "react";
|
|
7
|
+
import { getFunctionArguments as Xe, flattenState as Ze, runInNode as et, parseCode as tt, getBuilderGlobals as nt, set as Pe, fastClone as le } from "./setIvm-0edfc727.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as it } from "./should-force-browser-runtime-in-node-7a39b073.js";
|
|
9
|
+
const at = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ot = (e) => typeof e == "string" && at.has(e.toLowerCase());
|
|
10
|
+
function se(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: ot(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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 }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const M = () => {
|
|
14
14
|
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
@@ -24,11 +24,11 @@ const q = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function rt(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function ot(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
se,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function ot(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const ce = Re({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,10 +63,10 @@ const se = Ee({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}),
|
|
66
|
+
}), Be = Re({ registeredComponents: {} }), Ae = (e, t, n) => {
|
|
67
67
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
|
-
},
|
|
69
|
+
}, lt = ({
|
|
70
70
|
code: e,
|
|
71
71
|
builder: t,
|
|
72
72
|
context: n,
|
|
@@ -75,22 +75,22 @@ const se = Ee({
|
|
|
75
75
|
rootSetState: r,
|
|
76
76
|
rootState: o
|
|
77
77
|
}) => {
|
|
78
|
-
const l =
|
|
78
|
+
const l = Xe({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
|
-
state:
|
|
82
|
+
state: Ze({
|
|
83
83
|
rootState: o,
|
|
84
84
|
localState: a,
|
|
85
85
|
rootSetState: r
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
return new Function(...l.map(([
|
|
89
|
-
},
|
|
88
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
89
|
+
}, st = (e) => L() || it({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ?
|
|
91
|
+
}) ? lt(e) : et(e), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ut = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
92
92
|
var t, n, i, a, r, o;
|
|
93
|
-
return ((i = (n = (t =
|
|
93
|
+
return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ut.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
95
|
function O({
|
|
96
96
|
code: e,
|
|
@@ -103,17 +103,17 @@ function O({
|
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
106
|
-
const l =
|
|
106
|
+
const l = dt(e.trim());
|
|
107
107
|
if (l)
|
|
108
|
-
return
|
|
108
|
+
return Ae({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
|
-
const
|
|
113
|
-
code:
|
|
112
|
+
const d = {
|
|
113
|
+
code: tt(e, {
|
|
114
114
|
isExpression: o
|
|
115
115
|
}),
|
|
116
|
-
builder:
|
|
116
|
+
builder: nt(),
|
|
117
117
|
context: t,
|
|
118
118
|
event: r,
|
|
119
119
|
rootSetState: a,
|
|
@@ -121,23 +121,23 @@ function O({
|
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return st(d);
|
|
125
125
|
} catch (c) {
|
|
126
|
-
|
|
126
|
+
re.error("Failed code evaluation: " + c.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function mt(e, t) {
|
|
133
133
|
var n;
|
|
134
134
|
return {
|
|
135
135
|
...(n = e.component) == null ? void 0 : n.options,
|
|
136
136
|
...e.options,
|
|
137
|
-
...
|
|
137
|
+
...ft(e, t)
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const ft = (e, t) => {
|
|
141
141
|
var n, i;
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
@@ -151,7 +151,7 @@ const mt = (e, t) => {
|
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function ht(e, ...t) {
|
|
155
155
|
const n = Object.assign({}, e);
|
|
156
156
|
for (const i of t)
|
|
157
157
|
delete n[i];
|
|
@@ -165,54 +165,54 @@ function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
|
-
t(r, (
|
|
169
|
-
e[o] =
|
|
168
|
+
t(r, (d) => {
|
|
169
|
+
e[o] = d;
|
|
170
170
|
}), K(r, t, e, o, a);
|
|
171
171
|
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
|
-
t(o, (
|
|
173
|
-
e[r] =
|
|
172
|
+
t(o, (d) => {
|
|
173
|
+
e[r] = d;
|
|
174
174
|
}), K(o, t, e, r, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ne(e) {
|
|
178
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function gt(e) {
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
184
|
return K(e, (n) => {
|
|
185
|
-
if (
|
|
185
|
+
if (Ne(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function bt(e, t) {
|
|
192
192
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
193
193
|
var a;
|
|
194
|
-
|
|
194
|
+
Ne(n) && i((a = n[t]) != null ? a : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function pt(e, t) {
|
|
198
198
|
var n, i;
|
|
199
|
-
return (n = e.component) != null && n.options &&
|
|
199
|
+
return (n = e.component) != null && n.options && gt((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 = bt(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function oe(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => oe(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const t =
|
|
213
|
+
const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) => {
|
|
214
|
+
if (yt) {
|
|
215
|
+
const t = le(e);
|
|
216
216
|
return {
|
|
217
217
|
...t,
|
|
218
218
|
properties: {
|
|
@@ -223,7 +223,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = oe(ht(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -236,7 +236,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
|
|
|
236
236
|
meta: e.meta
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, xt = ({
|
|
240
240
|
block: e,
|
|
241
241
|
context: t,
|
|
242
242
|
localState: n,
|
|
@@ -245,28 +245,28 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
|
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const r =
|
|
248
|
+
const r = vt(e);
|
|
249
249
|
for (const o in e.bindings) {
|
|
250
|
-
const l = e.bindings[o],
|
|
250
|
+
const l = e.bindings[o], d = O({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
254
|
rootSetState: a,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
Pe(r, o,
|
|
257
|
+
Pe(r, o, d);
|
|
258
258
|
}
|
|
259
259
|
return r;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function St({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
266
|
rootSetState: a
|
|
267
267
|
}) {
|
|
268
|
-
let r =
|
|
269
|
-
return r = r,
|
|
268
|
+
let r = pt(e, i.locale);
|
|
269
|
+
return r = r, xt({
|
|
270
270
|
block: r,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
@@ -275,19 +275,19 @@ function xt({
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
const Q = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
-
function
|
|
278
|
+
function kt(e, t, n = {}) {
|
|
279
279
|
let i, a, r, o = null, l = 0;
|
|
280
|
-
const
|
|
280
|
+
const d = function() {
|
|
281
281
|
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
284
|
const c = Date.now();
|
|
285
285
|
!l && n.leading === !1 && (l = c);
|
|
286
286
|
const h = t - (c - l);
|
|
287
|
-
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(
|
|
287
|
+
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function q(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
293
|
const a = arguments[i];
|
|
@@ -297,73 +297,73 @@ function U(e, ...t) {
|
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ct(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
304
|
-
|
|
304
|
+
De(t);
|
|
305
305
|
break;
|
|
306
306
|
case "scrollInView":
|
|
307
|
-
|
|
307
|
+
wt(t);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function We(e) {
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
const n =
|
|
314
|
+
function $e(e, t) {
|
|
315
|
+
const n = Tt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
|
|
316
316
|
for (const l of o)
|
|
317
|
-
for (const
|
|
318
|
-
|
|
317
|
+
for (const d of n)
|
|
318
|
+
d in l || (l[d] = i[d]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Tt(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
324
324
|
t.indexOf(i) === -1 && t.push(i);
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function De(e) {
|
|
328
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
329
|
if (!t.length) {
|
|
330
|
-
|
|
330
|
+
We(e.elementId || e.id || "");
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
334
|
+
$e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function wt(e) {
|
|
342
342
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
343
343
|
if (!t.length) {
|
|
344
|
-
|
|
344
|
+
We(e.elementId || e.id || "");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
|
-
|
|
348
|
+
$e(e, n);
|
|
349
349
|
let i = !1, a = !1;
|
|
350
350
|
function r() {
|
|
351
351
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
|
-
|
|
352
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
353
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const o =
|
|
357
|
+
const o = kt(r, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(h) {
|
|
361
|
-
const
|
|
362
|
-
return
|
|
361
|
+
const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
362
|
+
return y.bottom > f && y.top < u - f;
|
|
363
363
|
}
|
|
364
|
-
const
|
|
364
|
+
const d = e.steps[0].styles;
|
|
365
365
|
function c() {
|
|
366
|
-
|
|
366
|
+
q(n.style, d);
|
|
367
367
|
}
|
|
368
368
|
c(), setTimeout(() => {
|
|
369
369
|
n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -373,42 +373,42 @@ function Tt(e) {
|
|
|
373
373
|
}), r();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
378
|
return `${Q(n)}: ${i};`;
|
|
379
|
-
}).filter(
|
|
380
|
-
`),
|
|
379
|
+
}).filter(ae), It = (e) => Fe(e).join(`
|
|
380
|
+
`), _ = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
384
384
|
}) => {
|
|
385
385
|
const i = `.${t} {
|
|
386
|
-
${
|
|
386
|
+
${It(n)}
|
|
387
387
|
}`;
|
|
388
388
|
return e ? `${e} {
|
|
389
389
|
${i}
|
|
390
390
|
}` : i;
|
|
391
391
|
};
|
|
392
|
-
function
|
|
392
|
+
function Et({
|
|
393
393
|
style: e
|
|
394
394
|
}) {
|
|
395
395
|
return e;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const Rt = ({
|
|
398
398
|
block: e,
|
|
399
399
|
context: t
|
|
400
|
-
}) =>
|
|
400
|
+
}) => Le(Et({
|
|
401
401
|
style: e.style || {},
|
|
402
402
|
context: t,
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
|
-
function
|
|
405
|
+
function Le(e) {
|
|
406
406
|
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
410
410
|
case "angular":
|
|
411
|
-
return
|
|
411
|
+
return Fe(e).join(" ");
|
|
412
412
|
case "qwik":
|
|
413
413
|
case "reactNative":
|
|
414
414
|
case "react":
|
|
@@ -416,7 +416,7 @@ function Fe(e) {
|
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
|
|
420
420
|
block: e,
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
@@ -426,7 +426,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
428
|
const a = t[i];
|
|
429
|
-
if (!a ||
|
|
429
|
+
if (!a || Oe(a, n)) {
|
|
430
430
|
console.warn(`
|
|
431
431
|
Could not find a registered component named "${i}".
|
|
432
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -453,42 +453,47 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
453
453
|
if (!Array.isArray(a))
|
|
454
454
|
return;
|
|
455
455
|
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
456
|
-
return a.map((
|
|
456
|
+
return a.map((d, c) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
461
|
$index: c,
|
|
462
|
-
$item:
|
|
463
|
-
[o]:
|
|
462
|
+
$item: d,
|
|
463
|
+
[o]: d,
|
|
464
464
|
[`$${o}Index`]: c
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
468
468
|
}));
|
|
469
|
-
},
|
|
469
|
+
}, Bt = (e, t) => {
|
|
470
470
|
var n;
|
|
471
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
472
472
|
builderLinkComponent: t
|
|
473
473
|
} : {};
|
|
474
|
-
},
|
|
474
|
+
}, At = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Oe(o, n)))
|
|
478
478
|
} : {};
|
|
479
|
-
},
|
|
479
|
+
}, Nt = (e, t) => {
|
|
480
480
|
var n;
|
|
481
481
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
482
482
|
builderBlock: t
|
|
483
483
|
} : {};
|
|
484
|
-
},
|
|
484
|
+
}, Wt = (e, t) => {
|
|
485
485
|
var n;
|
|
486
486
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
487
487
|
builderContext: t
|
|
488
488
|
} : {};
|
|
489
|
-
},
|
|
489
|
+
}, Ue = {
|
|
490
|
+
xsmall: {
|
|
491
|
+
min: 0,
|
|
492
|
+
default: 160,
|
|
493
|
+
max: 320
|
|
494
|
+
},
|
|
490
495
|
small: {
|
|
491
|
-
min:
|
|
496
|
+
min: 321,
|
|
492
497
|
default: 321,
|
|
493
498
|
max: 640
|
|
494
499
|
},
|
|
@@ -502,34 +507,46 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
502
507
|
default: 991,
|
|
503
508
|
max: 1200
|
|
504
509
|
}
|
|
505
|
-
},
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
510
|
+
}, X = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = (e) => {
|
|
511
|
+
const t = le(Ue);
|
|
512
|
+
if (!e)
|
|
513
|
+
return t;
|
|
514
|
+
const {
|
|
515
|
+
xsmall: n,
|
|
516
|
+
small: i,
|
|
517
|
+
medium: a
|
|
518
|
+
} = e;
|
|
519
|
+
if (n) {
|
|
520
|
+
const d = Math.floor(n / 2);
|
|
521
|
+
t.xsmall = {
|
|
522
|
+
max: n,
|
|
523
|
+
min: d,
|
|
524
|
+
default: d + 1
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
if (!i || !a)
|
|
528
|
+
return t;
|
|
529
|
+
const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
|
+
t.small = {
|
|
531
|
+
max: i,
|
|
532
|
+
min: r,
|
|
533
|
+
default: r + 1
|
|
517
534
|
};
|
|
518
|
-
const
|
|
519
|
-
|
|
520
|
-
max:
|
|
521
|
-
min:
|
|
522
|
-
default:
|
|
535
|
+
const o = t.small.max + 1;
|
|
536
|
+
t.medium = {
|
|
537
|
+
max: a,
|
|
538
|
+
min: o,
|
|
539
|
+
default: o + 1
|
|
523
540
|
};
|
|
524
|
-
const
|
|
525
|
-
return
|
|
541
|
+
const l = t.medium.max + 1;
|
|
542
|
+
return t.large = {
|
|
526
543
|
max: 2e3,
|
|
527
544
|
// TODO: decide upper limit
|
|
528
|
-
min:
|
|
529
|
-
default:
|
|
530
|
-
},
|
|
545
|
+
min: l,
|
|
546
|
+
default: l + 1
|
|
547
|
+
}, t;
|
|
531
548
|
};
|
|
532
|
-
function
|
|
549
|
+
function j(e) {
|
|
533
550
|
return /* @__PURE__ */ s(
|
|
534
551
|
"style",
|
|
535
552
|
{
|
|
@@ -539,59 +556,67 @@ function H(e) {
|
|
|
539
556
|
}
|
|
540
557
|
);
|
|
541
558
|
}
|
|
542
|
-
function
|
|
559
|
+
function $t(e) {
|
|
543
560
|
function t() {
|
|
544
561
|
const i = e.block;
|
|
545
|
-
return
|
|
562
|
+
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
546
563
|
}
|
|
547
564
|
function n() {
|
|
548
|
-
var
|
|
549
|
-
const i = e.block, a = i.responsiveStyles, r = e.context.content, o =
|
|
550
|
-
((
|
|
551
|
-
), l = a == null ? void 0 : a.large,
|
|
552
|
-
if (!
|
|
565
|
+
var C, V, w, k, m;
|
|
566
|
+
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = _e(
|
|
567
|
+
((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
|
|
568
|
+
), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
|
|
569
|
+
if (!u)
|
|
553
570
|
return "";
|
|
554
|
-
const
|
|
555
|
-
className:
|
|
556
|
-
styles:
|
|
557
|
-
}) : "", f =
|
|
558
|
-
className:
|
|
559
|
-
styles:
|
|
560
|
-
mediaQuery:
|
|
571
|
+
const v = d ? _({
|
|
572
|
+
className: u,
|
|
573
|
+
styles: d
|
|
574
|
+
}) : "", f = c ? _({
|
|
575
|
+
className: u,
|
|
576
|
+
styles: c,
|
|
577
|
+
mediaQuery: X(
|
|
561
578
|
"medium",
|
|
562
579
|
o
|
|
563
580
|
)
|
|
564
|
-
}) : "",
|
|
565
|
-
className:
|
|
566
|
-
styles:
|
|
567
|
-
mediaQuery:
|
|
581
|
+
}) : "", g = h ? _({
|
|
582
|
+
className: u,
|
|
583
|
+
styles: h,
|
|
584
|
+
mediaQuery: X(
|
|
568
585
|
"small",
|
|
569
586
|
o
|
|
570
587
|
)
|
|
571
|
-
}) : "",
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
588
|
+
}) : "", x = y && l ? _({
|
|
589
|
+
className: u,
|
|
590
|
+
styles: y,
|
|
591
|
+
mediaQuery: X(
|
|
592
|
+
"xsmall",
|
|
593
|
+
o
|
|
594
|
+
)
|
|
595
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
596
|
+
let S = "";
|
|
597
|
+
if (b) {
|
|
598
|
+
const p = ((m = (k = b.steps) == null ? void 0 : k[1]) == null ? void 0 : m.styles) || {};
|
|
599
|
+
S = _({
|
|
600
|
+
className: `${u}:hover`,
|
|
577
601
|
styles: {
|
|
578
|
-
...
|
|
579
|
-
transition: `all ${
|
|
580
|
-
|
|
602
|
+
...p,
|
|
603
|
+
transition: `all ${b.duration}s ${Q(
|
|
604
|
+
b.easing
|
|
581
605
|
)}`,
|
|
582
|
-
transitionDelay:
|
|
606
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
583
607
|
}
|
|
584
608
|
}) || "";
|
|
585
609
|
}
|
|
586
610
|
return [
|
|
587
|
-
|
|
611
|
+
v,
|
|
588
612
|
f,
|
|
589
|
-
|
|
590
|
-
|
|
613
|
+
g,
|
|
614
|
+
x,
|
|
615
|
+
S
|
|
591
616
|
].join(" ");
|
|
592
617
|
}
|
|
593
618
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
594
|
-
|
|
619
|
+
j,
|
|
595
620
|
{
|
|
596
621
|
id: "builderio-block",
|
|
597
622
|
styles: n(),
|
|
@@ -599,10 +624,10 @@ function Wt(e) {
|
|
|
599
624
|
}
|
|
600
625
|
) }) : null });
|
|
601
626
|
}
|
|
602
|
-
function
|
|
627
|
+
function Dt(e) {
|
|
603
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
604
629
|
}
|
|
605
|
-
const
|
|
630
|
+
const Ft = (e) => `on${Dt(e)}`, Lt = (e, t) => (n) => O({
|
|
606
631
|
code: e,
|
|
607
632
|
context: t.context,
|
|
608
633
|
localState: t.localState,
|
|
@@ -611,14 +636,14 @@ const Dt = (e) => `on${$t(e)}`, Ft = (e, t) => (n) => O({
|
|
|
611
636
|
event: n,
|
|
612
637
|
isExpression: !1
|
|
613
638
|
});
|
|
614
|
-
function
|
|
639
|
+
function qe(e) {
|
|
615
640
|
var i;
|
|
616
641
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
617
642
|
for (const a in n) {
|
|
618
643
|
if (!n.hasOwnProperty(a))
|
|
619
644
|
continue;
|
|
620
645
|
const r = n[a];
|
|
621
|
-
let o =
|
|
646
|
+
let o = Ft(a);
|
|
622
647
|
if (e.stripPrefix)
|
|
623
648
|
switch (F) {
|
|
624
649
|
case "vue":
|
|
@@ -628,49 +653,49 @@ function _e(e) {
|
|
|
628
653
|
o = o.replace("on:", "");
|
|
629
654
|
break;
|
|
630
655
|
}
|
|
631
|
-
t[o] =
|
|
656
|
+
t[o] = Lt(r, e);
|
|
632
657
|
}
|
|
633
658
|
return t;
|
|
634
659
|
}
|
|
635
|
-
function
|
|
660
|
+
function Ot({
|
|
636
661
|
properties: e
|
|
637
662
|
}) {
|
|
638
663
|
return e;
|
|
639
664
|
}
|
|
640
|
-
const
|
|
665
|
+
const Ut = (e) => ({
|
|
641
666
|
href: e.href
|
|
642
667
|
});
|
|
643
|
-
function
|
|
668
|
+
function ue({
|
|
644
669
|
block: e,
|
|
645
670
|
context: t
|
|
646
671
|
}) {
|
|
647
672
|
var i;
|
|
648
673
|
const n = {
|
|
649
|
-
...
|
|
674
|
+
...Ut(e),
|
|
650
675
|
...e.properties,
|
|
651
676
|
"builder-id": e.id,
|
|
652
|
-
style:
|
|
677
|
+
style: Rt({
|
|
653
678
|
block: e,
|
|
654
679
|
context: t
|
|
655
680
|
}),
|
|
656
|
-
[
|
|
681
|
+
[M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
657
682
|
};
|
|
658
|
-
return
|
|
683
|
+
return Ot({
|
|
659
684
|
properties: n,
|
|
660
685
|
context: t,
|
|
661
686
|
block: e
|
|
662
687
|
});
|
|
663
688
|
}
|
|
664
|
-
function
|
|
689
|
+
function _t(e) {
|
|
665
690
|
return /* @__PURE__ */ s(
|
|
666
|
-
|
|
691
|
+
se,
|
|
667
692
|
{
|
|
668
693
|
TagName: e.Wrapper,
|
|
669
|
-
attributes:
|
|
694
|
+
attributes: ue({
|
|
670
695
|
block: e.block,
|
|
671
696
|
context: e.context
|
|
672
697
|
}),
|
|
673
|
-
actionAttributes:
|
|
698
|
+
actionAttributes: qe({
|
|
674
699
|
block: e.block,
|
|
675
700
|
rootState: e.context.rootState,
|
|
676
701
|
rootSetState: e.context.rootSetState,
|
|
@@ -682,18 +707,18 @@ function Ut(e) {
|
|
|
682
707
|
}
|
|
683
708
|
);
|
|
684
709
|
}
|
|
685
|
-
function
|
|
686
|
-
return
|
|
710
|
+
function qt(e) {
|
|
711
|
+
return B(() => {
|
|
687
712
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
688
713
|
}
|
|
689
|
-
function
|
|
714
|
+
function Ht(e) {
|
|
690
715
|
function t() {
|
|
691
716
|
return e.includeBlockProps ? {
|
|
692
|
-
...
|
|
717
|
+
...ue({
|
|
693
718
|
block: e.block,
|
|
694
719
|
context: e.context
|
|
695
720
|
}),
|
|
696
|
-
...
|
|
721
|
+
...qe({
|
|
697
722
|
block: e.block,
|
|
698
723
|
rootState: e.context.rootState,
|
|
699
724
|
rootSetState: e.context.rootSetState,
|
|
@@ -703,7 +728,7 @@ function qt(e) {
|
|
|
703
728
|
} : {};
|
|
704
729
|
}
|
|
705
730
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
706
|
-
|
|
731
|
+
qt,
|
|
707
732
|
{
|
|
708
733
|
load: e.Wrapper.load,
|
|
709
734
|
fallback: e.Wrapper.fallback,
|
|
@@ -713,7 +738,7 @@ function qt(e) {
|
|
|
713
738
|
}
|
|
714
739
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
715
740
|
}
|
|
716
|
-
const
|
|
741
|
+
const Mt = ({
|
|
717
742
|
componentOptions: e,
|
|
718
743
|
builderBlock: t,
|
|
719
744
|
context: n,
|
|
@@ -729,7 +754,7 @@ const Ht = ({
|
|
|
729
754
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
730
755
|
*/
|
|
731
756
|
...a ? {
|
|
732
|
-
attributes:
|
|
757
|
+
attributes: ue({
|
|
733
758
|
block: t,
|
|
734
759
|
context: o
|
|
735
760
|
})
|
|
@@ -743,15 +768,15 @@ const Ht = ({
|
|
|
743
768
|
includeBlockProps: a
|
|
744
769
|
} : l;
|
|
745
770
|
};
|
|
746
|
-
function
|
|
771
|
+
function pe(e) {
|
|
747
772
|
var i;
|
|
748
773
|
const [t, n] = E(
|
|
749
|
-
() => e.isInteractive ?
|
|
774
|
+
() => e.isInteractive ? Ht : e.componentRef
|
|
750
775
|
);
|
|
751
776
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
752
777
|
t,
|
|
753
778
|
{
|
|
754
|
-
...
|
|
779
|
+
...Mt({
|
|
755
780
|
componentOptions: e.componentOptions,
|
|
756
781
|
builderBlock: e.builderBlock,
|
|
757
782
|
context: e.context,
|
|
@@ -774,9 +799,9 @@ function be(e) {
|
|
|
774
799
|
}
|
|
775
800
|
) }) : null });
|
|
776
801
|
}
|
|
777
|
-
function
|
|
802
|
+
function ye(e) {
|
|
778
803
|
const [t, n] = E(() => e.repeatContext);
|
|
779
|
-
return /* @__PURE__ */ s(
|
|
804
|
+
return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
780
805
|
Y,
|
|
781
806
|
{
|
|
782
807
|
block: e.block,
|
|
@@ -787,7 +812,7 @@ function pe(e) {
|
|
|
787
812
|
) });
|
|
788
813
|
}
|
|
789
814
|
function Y(e) {
|
|
790
|
-
var h,
|
|
815
|
+
var h, y, u, v;
|
|
791
816
|
function t() {
|
|
792
817
|
return Pt({
|
|
793
818
|
block: e.block,
|
|
@@ -799,51 +824,51 @@ function Y(e) {
|
|
|
799
824
|
update: !1
|
|
800
825
|
}));
|
|
801
826
|
function a() {
|
|
802
|
-
var
|
|
827
|
+
var g;
|
|
803
828
|
if (n.value && !n.update && !G())
|
|
804
829
|
return n.value;
|
|
805
|
-
const
|
|
830
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : St({
|
|
806
831
|
block: e.block,
|
|
807
832
|
localState: e.context.localState,
|
|
808
833
|
rootState: e.context.rootState,
|
|
809
834
|
rootSetState: e.context.rootSetState,
|
|
810
835
|
context: e.context.context
|
|
811
836
|
});
|
|
812
|
-
return n.value =
|
|
837
|
+
return n.value = f, n.update = !1, f;
|
|
813
838
|
}
|
|
814
839
|
function r() {
|
|
815
|
-
return
|
|
840
|
+
return Vt({
|
|
816
841
|
block: a(),
|
|
817
842
|
registeredComponents: e.registeredComponents,
|
|
818
843
|
model: e.context.model
|
|
819
844
|
});
|
|
820
845
|
}
|
|
821
846
|
function o() {
|
|
822
|
-
var
|
|
823
|
-
return e.block.tagName === "a" || ((
|
|
847
|
+
var g;
|
|
848
|
+
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
824
849
|
}
|
|
825
850
|
function l() {
|
|
826
|
-
var
|
|
827
|
-
if ((
|
|
828
|
-
return !!((
|
|
829
|
-
const
|
|
830
|
-
return ("show" in a() ? a().show : !0) && !
|
|
851
|
+
var x, b;
|
|
852
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
853
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
854
|
+
const f = "hide" in a() ? a().hide : !1;
|
|
855
|
+
return ("show" in a() ? a().show : !0) && !f;
|
|
831
856
|
}
|
|
832
|
-
function
|
|
833
|
-
var
|
|
834
|
-
return !((
|
|
857
|
+
function d() {
|
|
858
|
+
var g, x;
|
|
859
|
+
return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (x = a().children) != null ? x : [] : [];
|
|
835
860
|
}
|
|
836
861
|
function c() {
|
|
837
|
-
var
|
|
862
|
+
var f, g, x, b;
|
|
838
863
|
return {
|
|
839
|
-
blockChildren: (
|
|
840
|
-
componentRef: (
|
|
864
|
+
blockChildren: (f = a().children) != null ? f : [],
|
|
865
|
+
componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
|
|
841
866
|
componentOptions: {
|
|
842
|
-
...
|
|
843
|
-
...
|
|
844
|
-
...
|
|
845
|
-
...
|
|
846
|
-
...
|
|
867
|
+
...mt(a(), e.context),
|
|
868
|
+
...Nt(r(), a()),
|
|
869
|
+
...Wt(r(), e.context),
|
|
870
|
+
...Bt(r(), e.linkComponent),
|
|
871
|
+
...At(
|
|
847
872
|
r(),
|
|
848
873
|
e.registeredComponents,
|
|
849
874
|
e.context.model
|
|
@@ -853,33 +878,33 @@ function Y(e) {
|
|
|
853
878
|
linkComponent: e.linkComponent,
|
|
854
879
|
registeredComponents: e.registeredComponents,
|
|
855
880
|
builderBlock: a(),
|
|
856
|
-
includeBlockProps: ((
|
|
857
|
-
isInteractive: !((
|
|
881
|
+
includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
|
|
882
|
+
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && F === "rsc")
|
|
858
883
|
};
|
|
859
884
|
}
|
|
860
|
-
return
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
...
|
|
865
|
-
elementId:
|
|
885
|
+
return B(() => {
|
|
886
|
+
const f = a().id, g = a().animations;
|
|
887
|
+
g && f && Ct(
|
|
888
|
+
g.map((x) => ({
|
|
889
|
+
...x,
|
|
890
|
+
elementId: f
|
|
866
891
|
}))
|
|
867
892
|
);
|
|
868
|
-
}, []),
|
|
893
|
+
}, []), B(() => {
|
|
869
894
|
n.update = !0;
|
|
870
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
871
|
-
/* @__PURE__ */ s(
|
|
872
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (
|
|
873
|
-
|
|
895
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ N(R, { children: [
|
|
896
|
+
/* @__PURE__ */ s($t, { block: a(), context: e.context }),
|
|
897
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
898
|
+
ye,
|
|
874
899
|
{
|
|
875
|
-
repeatContext:
|
|
876
|
-
block:
|
|
900
|
+
repeatContext: f.context,
|
|
901
|
+
block: f.block,
|
|
877
902
|
registeredComponents: e.registeredComponents,
|
|
878
903
|
linkComponent: e.linkComponent
|
|
879
904
|
},
|
|
880
|
-
|
|
905
|
+
g
|
|
881
906
|
)) }) : /* @__PURE__ */ s(
|
|
882
|
-
|
|
907
|
+
pe,
|
|
883
908
|
{
|
|
884
909
|
componentRef: c().componentRef,
|
|
885
910
|
componentOptions: c().componentOptions,
|
|
@@ -891,24 +916,24 @@ function Y(e) {
|
|
|
891
916
|
includeBlockProps: c().includeBlockProps,
|
|
892
917
|
isInteractive: c().isInteractive
|
|
893
918
|
}
|
|
894
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
895
|
-
|
|
919
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
920
|
+
ye,
|
|
896
921
|
{
|
|
897
|
-
repeatContext:
|
|
898
|
-
block:
|
|
922
|
+
repeatContext: f.context,
|
|
923
|
+
block: f.block,
|
|
899
924
|
registeredComponents: e.registeredComponents,
|
|
900
925
|
linkComponent: e.linkComponent
|
|
901
926
|
},
|
|
902
|
-
|
|
903
|
-
)) }) : /* @__PURE__ */
|
|
904
|
-
|
|
927
|
+
g
|
|
928
|
+
)) }) : /* @__PURE__ */ N(
|
|
929
|
+
_t,
|
|
905
930
|
{
|
|
906
931
|
Wrapper: o(),
|
|
907
932
|
block: a(),
|
|
908
933
|
context: e.context,
|
|
909
934
|
children: [
|
|
910
935
|
/* @__PURE__ */ s(
|
|
911
|
-
|
|
936
|
+
pe,
|
|
912
937
|
{
|
|
913
938
|
componentRef: c().componentRef,
|
|
914
939
|
componentOptions: c().componentOptions,
|
|
@@ -921,15 +946,15 @@ function Y(e) {
|
|
|
921
946
|
isInteractive: c().isInteractive
|
|
922
947
|
}
|
|
923
948
|
),
|
|
924
|
-
(
|
|
949
|
+
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
925
950
|
Y,
|
|
926
951
|
{
|
|
927
|
-
block:
|
|
952
|
+
block: f,
|
|
928
953
|
registeredComponents: e.registeredComponents,
|
|
929
954
|
linkComponent: e.linkComponent,
|
|
930
955
|
context: e.context
|
|
931
956
|
},
|
|
932
|
-
|
|
957
|
+
f.id
|
|
933
958
|
))
|
|
934
959
|
]
|
|
935
960
|
}
|
|
@@ -978,8 +1003,8 @@ function jt(e) {
|
|
|
978
1003
|
"*"
|
|
979
1004
|
));
|
|
980
1005
|
}
|
|
981
|
-
return
|
|
982
|
-
}, []), /* @__PURE__ */
|
|
1006
|
+
return B(() => {
|
|
1007
|
+
}, []), /* @__PURE__ */ N(R, { children: [
|
|
983
1008
|
/* @__PURE__ */ s(
|
|
984
1009
|
e.BlocksWrapper,
|
|
985
1010
|
{
|
|
@@ -1004,7 +1029,7 @@ function jt(e) {
|
|
|
1004
1029
|
}
|
|
1005
1030
|
function $(e) {
|
|
1006
1031
|
var i, a, r;
|
|
1007
|
-
const t =
|
|
1032
|
+
const t = be(ce), n = be(Be);
|
|
1008
1033
|
return /* @__PURE__ */ s(
|
|
1009
1034
|
jt,
|
|
1010
1035
|
{
|
|
@@ -1028,9 +1053,9 @@ function $(e) {
|
|
|
1028
1053
|
}
|
|
1029
1054
|
);
|
|
1030
1055
|
}
|
|
1031
|
-
const
|
|
1032
|
-
function
|
|
1033
|
-
var
|
|
1056
|
+
const zt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1057
|
+
function Kt(e) {
|
|
1058
|
+
var g, x;
|
|
1034
1059
|
function t() {
|
|
1035
1060
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1036
1061
|
}
|
|
@@ -1040,28 +1065,28 @@ function zt(e) {
|
|
|
1040
1065
|
function i() {
|
|
1041
1066
|
return e.stackColumnsAt || "tablet";
|
|
1042
1067
|
}
|
|
1043
|
-
function a(
|
|
1044
|
-
return
|
|
1068
|
+
function a(b) {
|
|
1069
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1045
1070
|
}
|
|
1046
|
-
function r(
|
|
1047
|
-
var
|
|
1048
|
-
return ((
|
|
1071
|
+
function r(b) {
|
|
1072
|
+
var S;
|
|
1073
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1049
1074
|
}
|
|
1050
|
-
function o(
|
|
1051
|
-
const
|
|
1052
|
-
return `calc(${
|
|
1075
|
+
function o(b) {
|
|
1076
|
+
const S = r(b), C = t() * (n().length - 1) * (S / 100);
|
|
1077
|
+
return `calc(${S}% - ${C}px)`;
|
|
1053
1078
|
}
|
|
1054
1079
|
function l({
|
|
1055
|
-
stackedStyle:
|
|
1056
|
-
desktopStyle:
|
|
1080
|
+
stackedStyle: b,
|
|
1081
|
+
desktopStyle: S
|
|
1057
1082
|
}) {
|
|
1058
|
-
return i() === "tablet" ?
|
|
1083
|
+
return i() === "tablet" ? b : S;
|
|
1059
1084
|
}
|
|
1060
|
-
function
|
|
1061
|
-
stackedStyle:
|
|
1062
|
-
desktopStyle:
|
|
1085
|
+
function d({
|
|
1086
|
+
stackedStyle: b,
|
|
1087
|
+
desktopStyle: S
|
|
1063
1088
|
}) {
|
|
1064
|
-
return i() === "never" ?
|
|
1089
|
+
return i() === "never" ? S : b;
|
|
1065
1090
|
}
|
|
1066
1091
|
function c() {
|
|
1067
1092
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1075,114 +1100,114 @@ function zt(e) {
|
|
|
1075
1100
|
})
|
|
1076
1101
|
};
|
|
1077
1102
|
}
|
|
1078
|
-
function
|
|
1079
|
-
const
|
|
1103
|
+
function y(b) {
|
|
1104
|
+
const S = b === 0 ? 0 : t(), C = o(b), V = `${S}px`, w = "100%", k = 0;
|
|
1080
1105
|
return {
|
|
1081
1106
|
...{
|
|
1082
1107
|
display: "flex",
|
|
1083
1108
|
flexDirection: "column",
|
|
1084
1109
|
alignItems: "stretch"
|
|
1085
1110
|
},
|
|
1086
|
-
width:
|
|
1087
|
-
["marginLeft"]:
|
|
1088
|
-
"--column-width-mobile":
|
|
1089
|
-
stackedStyle:
|
|
1090
|
-
desktopStyle:
|
|
1111
|
+
width: C,
|
|
1112
|
+
["marginLeft"]: V,
|
|
1113
|
+
"--column-width-mobile": d({
|
|
1114
|
+
stackedStyle: w,
|
|
1115
|
+
desktopStyle: C
|
|
1091
1116
|
}),
|
|
1092
|
-
"--column-margin-left-mobile":
|
|
1093
|
-
stackedStyle:
|
|
1094
|
-
desktopStyle:
|
|
1117
|
+
"--column-margin-left-mobile": d({
|
|
1118
|
+
stackedStyle: k,
|
|
1119
|
+
desktopStyle: V
|
|
1095
1120
|
}),
|
|
1096
1121
|
"--column-width-tablet": l({
|
|
1097
|
-
stackedStyle:
|
|
1098
|
-
desktopStyle:
|
|
1122
|
+
stackedStyle: w,
|
|
1123
|
+
desktopStyle: C
|
|
1099
1124
|
}),
|
|
1100
1125
|
"--column-margin-left-tablet": l({
|
|
1101
|
-
stackedStyle:
|
|
1102
|
-
desktopStyle:
|
|
1126
|
+
stackedStyle: k,
|
|
1127
|
+
desktopStyle: V
|
|
1103
1128
|
})
|
|
1104
1129
|
};
|
|
1105
1130
|
}
|
|
1106
|
-
function
|
|
1107
|
-
var
|
|
1108
|
-
return
|
|
1109
|
-
((
|
|
1110
|
-
)[
|
|
1131
|
+
function u(b) {
|
|
1132
|
+
var C, V;
|
|
1133
|
+
return _e(
|
|
1134
|
+
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1135
|
+
)[b].max;
|
|
1111
1136
|
}
|
|
1112
|
-
function
|
|
1113
|
-
const
|
|
1137
|
+
function v() {
|
|
1138
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1114
1139
|
return `
|
|
1115
|
-
@media (max-width: ${
|
|
1140
|
+
@media (max-width: ${u("medium")}px) {
|
|
1116
1141
|
.${e.builderBlock.id}-breakpoints {
|
|
1117
1142
|
flex-direction: var(--flex-dir-tablet);
|
|
1118
1143
|
align-items: stretch;
|
|
1119
1144
|
}
|
|
1120
1145
|
|
|
1121
|
-
${
|
|
1146
|
+
${b} {
|
|
1122
1147
|
width: var(--column-width-tablet) !important;
|
|
1123
1148
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1124
1149
|
}
|
|
1125
1150
|
}
|
|
1126
1151
|
|
|
1127
|
-
@media (max-width: ${
|
|
1152
|
+
@media (max-width: ${u("small")}px) {
|
|
1128
1153
|
.${e.builderBlock.id}-breakpoints {
|
|
1129
1154
|
flex-direction: var(--flex-dir);
|
|
1130
1155
|
align-items: stretch;
|
|
1131
1156
|
}
|
|
1132
1157
|
|
|
1133
|
-
${
|
|
1158
|
+
${b} {
|
|
1134
1159
|
width: var(--column-width-mobile) !important;
|
|
1135
1160
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1136
1161
|
}
|
|
1137
1162
|
},
|
|
1138
1163
|
`;
|
|
1139
1164
|
}
|
|
1140
|
-
function
|
|
1165
|
+
function f(b, S) {
|
|
1141
1166
|
return {
|
|
1142
|
-
...
|
|
1143
|
-
href:
|
|
1167
|
+
...b.link ? {
|
|
1168
|
+
href: b.link
|
|
1144
1169
|
} : {},
|
|
1145
|
-
[
|
|
1146
|
-
style:
|
|
1170
|
+
[M()]: "builder-column",
|
|
1171
|
+
style: Le(y(S))
|
|
1147
1172
|
};
|
|
1148
1173
|
}
|
|
1149
|
-
return /* @__PURE__ */
|
|
1150
|
-
/* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ N(R, { children: [
|
|
1175
|
+
/* @__PURE__ */ N(
|
|
1151
1176
|
"div",
|
|
1152
1177
|
{
|
|
1153
|
-
className:
|
|
1178
|
+
className: zt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1154
1179
|
style: h(),
|
|
1155
1180
|
children: [
|
|
1156
1181
|
/* @__PURE__ */ s(
|
|
1157
|
-
|
|
1182
|
+
j,
|
|
1158
1183
|
{
|
|
1159
1184
|
id: "builderio-columns",
|
|
1160
|
-
styles:
|
|
1185
|
+
styles: v(),
|
|
1161
1186
|
nonce: e.builderContext.nonce
|
|
1162
1187
|
}
|
|
1163
1188
|
),
|
|
1164
|
-
(
|
|
1165
|
-
|
|
1189
|
+
(x = e.columns) == null ? void 0 : x.map((b, S) => /* @__PURE__ */ s(
|
|
1190
|
+
se,
|
|
1166
1191
|
{
|
|
1167
|
-
TagName: a(
|
|
1192
|
+
TagName: a(b),
|
|
1168
1193
|
actionAttributes: {},
|
|
1169
|
-
attributes:
|
|
1194
|
+
attributes: f(b, S),
|
|
1170
1195
|
children: /* @__PURE__ */ s(
|
|
1171
1196
|
$,
|
|
1172
1197
|
{
|
|
1173
|
-
path: `columns.${
|
|
1198
|
+
path: `columns.${S}.blocks`,
|
|
1174
1199
|
parent: e.builderBlock.id,
|
|
1175
1200
|
context: e.builderContext,
|
|
1176
1201
|
registeredComponents: e.builderComponents,
|
|
1177
1202
|
linkComponent: e.builderLinkComponent,
|
|
1178
|
-
blocks:
|
|
1203
|
+
blocks: b.blocks,
|
|
1179
1204
|
styleProp: {
|
|
1180
1205
|
flexGrow: "1"
|
|
1181
1206
|
}
|
|
1182
1207
|
}
|
|
1183
1208
|
)
|
|
1184
1209
|
},
|
|
1185
|
-
|
|
1210
|
+
S
|
|
1186
1211
|
))
|
|
1187
1212
|
]
|
|
1188
1213
|
}
|
|
@@ -1193,55 +1218,55 @@ function zt(e) {
|
|
|
1193
1218
|
}` })
|
|
1194
1219
|
] });
|
|
1195
1220
|
}
|
|
1196
|
-
function
|
|
1221
|
+
function Jt(e) {
|
|
1197
1222
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1198
1223
|
}
|
|
1199
|
-
function
|
|
1224
|
+
function ve(e) {
|
|
1200
1225
|
return e.replace(/http(s)?:/, "");
|
|
1201
1226
|
}
|
|
1202
|
-
function
|
|
1227
|
+
function Gt(e = "", t, n) {
|
|
1203
1228
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1204
1229
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1205
1230
|
}
|
|
1206
|
-
function
|
|
1231
|
+
function Qt(e, t) {
|
|
1207
1232
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1208
1233
|
return e;
|
|
1209
1234
|
if (t === "master")
|
|
1210
|
-
return
|
|
1235
|
+
return ve(e);
|
|
1211
1236
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1212
1237
|
if (n) {
|
|
1213
1238
|
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1214
|
-
return
|
|
1239
|
+
return ve(`${i[0]}_${r}${a}`);
|
|
1215
1240
|
}
|
|
1216
1241
|
return null;
|
|
1217
1242
|
}
|
|
1218
|
-
function
|
|
1243
|
+
function Z(e) {
|
|
1219
1244
|
if (!e)
|
|
1220
1245
|
return e;
|
|
1221
1246
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1222
1247
|
if (e.match(/builder\.io/)) {
|
|
1223
1248
|
let n = e;
|
|
1224
1249
|
const i = Number(e.split("?width=")[1]);
|
|
1225
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1250
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Gt(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1226
1251
|
}
|
|
1227
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1252
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1228
1253
|
}
|
|
1229
|
-
function
|
|
1230
|
-
var a, r, o, l,
|
|
1254
|
+
function Yt(e) {
|
|
1255
|
+
var a, r, o, l, d, c;
|
|
1231
1256
|
function t() {
|
|
1232
|
-
var
|
|
1233
|
-
const
|
|
1234
|
-
if (!
|
|
1257
|
+
var u;
|
|
1258
|
+
const y = e.image || e.src;
|
|
1259
|
+
if (!y || // We can auto add srcset for cdn.builder.io and shopify
|
|
1235
1260
|
// images, otherwise you can supply this prop manually
|
|
1236
|
-
!(typeof
|
|
1261
|
+
!(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
|
|
1237
1262
|
return e.srcset;
|
|
1238
1263
|
if (!e.noWebp) {
|
|
1239
|
-
if (e.srcset && ((
|
|
1264
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1240
1265
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1241
|
-
return console.debug("Removed given srcset"),
|
|
1266
|
+
return console.debug("Removed given srcset"), Z(y);
|
|
1242
1267
|
} else if (e.image && !e.srcset)
|
|
1243
|
-
return
|
|
1244
|
-
return
|
|
1268
|
+
return Z(y);
|
|
1269
|
+
return Z(y);
|
|
1245
1270
|
}
|
|
1246
1271
|
}
|
|
1247
1272
|
function n() {
|
|
@@ -1258,9 +1283,9 @@ function Qt(e) {
|
|
|
1258
1283
|
};
|
|
1259
1284
|
return e.aspectRatio ? h : void 0;
|
|
1260
1285
|
}
|
|
1261
|
-
return /* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1263
|
-
/* @__PURE__ */
|
|
1286
|
+
return /* @__PURE__ */ N(R, { children: [
|
|
1287
|
+
/* @__PURE__ */ N(R, { children: [
|
|
1288
|
+
/* @__PURE__ */ N("picture", { children: [
|
|
1264
1289
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1265
1290
|
/* @__PURE__ */ s(
|
|
1266
1291
|
"img",
|
|
@@ -1291,7 +1316,7 @@ function Qt(e) {
|
|
|
1291
1316
|
}
|
|
1292
1317
|
) : null,
|
|
1293
1318
|
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1294
|
-
!e.fitContent && ((c = (
|
|
1319
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1295
1320
|
] }),
|
|
1296
1321
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1297
1322
|
opacity: 1;
|
|
@@ -1312,7 +1337,7 @@ function Qt(e) {
|
|
|
1312
1337
|
}` })
|
|
1313
1338
|
] });
|
|
1314
1339
|
}
|
|
1315
|
-
function
|
|
1340
|
+
function Xt(e) {
|
|
1316
1341
|
return /* @__PURE__ */ s(
|
|
1317
1342
|
"section",
|
|
1318
1343
|
{
|
|
@@ -1333,7 +1358,7 @@ function Yt(e) {
|
|
|
1333
1358
|
}
|
|
1334
1359
|
);
|
|
1335
1360
|
}
|
|
1336
|
-
const
|
|
1361
|
+
const ee = {
|
|
1337
1362
|
"@type": "@builder.io/sdk:Element",
|
|
1338
1363
|
layerName: "Accordion item title",
|
|
1339
1364
|
responsiveStyles: {
|
|
@@ -1362,7 +1387,7 @@ const Z = {
|
|
|
1362
1387
|
}
|
|
1363
1388
|
}
|
|
1364
1389
|
}]
|
|
1365
|
-
},
|
|
1390
|
+
}, te = {
|
|
1366
1391
|
"@type": "@builder.io/sdk:Element",
|
|
1367
1392
|
layerName: "Accordion item detail",
|
|
1368
1393
|
responsiveStyles: {
|
|
@@ -1393,7 +1418,7 @@ const Z = {
|
|
|
1393
1418
|
}
|
|
1394
1419
|
}
|
|
1395
1420
|
}]
|
|
1396
|
-
},
|
|
1421
|
+
}, Zt = {
|
|
1397
1422
|
name: "Builder:Accordion",
|
|
1398
1423
|
canHaveChildren: !0,
|
|
1399
1424
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1410,19 +1435,19 @@ const Z = {
|
|
|
1410
1435
|
name: "title",
|
|
1411
1436
|
type: "uiBlocks",
|
|
1412
1437
|
hideFromUI: !0,
|
|
1413
|
-
defaultValue: [
|
|
1438
|
+
defaultValue: [ee]
|
|
1414
1439
|
}, {
|
|
1415
1440
|
name: "detail",
|
|
1416
1441
|
type: "uiBlocks",
|
|
1417
1442
|
hideFromUI: !0,
|
|
1418
|
-
defaultValue: [
|
|
1443
|
+
defaultValue: [te]
|
|
1419
1444
|
}],
|
|
1420
1445
|
defaultValue: [{
|
|
1421
|
-
title: [
|
|
1422
|
-
detail: [
|
|
1446
|
+
title: [ee],
|
|
1447
|
+
detail: [te]
|
|
1423
1448
|
}, {
|
|
1424
|
-
title: [
|
|
1425
|
-
detail: [
|
|
1449
|
+
title: [ee],
|
|
1450
|
+
detail: [te]
|
|
1426
1451
|
}],
|
|
1427
1452
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1428
1453
|
}, {
|
|
@@ -1457,9 +1482,9 @@ const Z = {
|
|
|
1457
1482
|
builderComponents: !0,
|
|
1458
1483
|
builderLinkComponent: !0
|
|
1459
1484
|
}
|
|
1460
|
-
},
|
|
1461
|
-
function
|
|
1462
|
-
var
|
|
1485
|
+
}, xe = (e) => e.toString();
|
|
1486
|
+
function en(e) {
|
|
1487
|
+
var y;
|
|
1463
1488
|
const [t, n] = E(() => []);
|
|
1464
1489
|
function i() {
|
|
1465
1490
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1477,7 +1502,7 @@ function Zt(e) {
|
|
|
1477
1502
|
};
|
|
1478
1503
|
}
|
|
1479
1504
|
function r() {
|
|
1480
|
-
const
|
|
1505
|
+
const v = {
|
|
1481
1506
|
...{
|
|
1482
1507
|
display: "flex",
|
|
1483
1508
|
flexDirection: "column"
|
|
@@ -1486,75 +1511,75 @@ function Zt(e) {
|
|
|
1486
1511
|
cursor: "pointer"
|
|
1487
1512
|
};
|
|
1488
1513
|
return Object.fromEntries(
|
|
1489
|
-
Object.entries(
|
|
1514
|
+
Object.entries(v).filter(([f, g]) => g !== void 0)
|
|
1490
1515
|
);
|
|
1491
1516
|
}
|
|
1492
|
-
function o(
|
|
1493
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1517
|
+
function o(u) {
|
|
1518
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1494
1519
|
}
|
|
1495
|
-
function l(
|
|
1496
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1520
|
+
function l(u) {
|
|
1521
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1497
1522
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let
|
|
1523
|
+
function d() {
|
|
1524
|
+
let u = null;
|
|
1500
1525
|
if (e.grid && t.length && document) {
|
|
1501
|
-
const
|
|
1502
|
-
let
|
|
1503
|
-
`.builder-accordion-title[data-index="${
|
|
1526
|
+
const f = t[0];
|
|
1527
|
+
let x = document.querySelector(
|
|
1528
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1504
1529
|
);
|
|
1505
|
-
if (
|
|
1506
|
-
let
|
|
1507
|
-
for (;
|
|
1508
|
-
if (
|
|
1509
|
-
if (
|
|
1530
|
+
if (u = f, x) {
|
|
1531
|
+
let b = x.getBoundingClientRect();
|
|
1532
|
+
for (; x = x && x.nextElementSibling; )
|
|
1533
|
+
if (x) {
|
|
1534
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1510
1535
|
continue;
|
|
1511
|
-
const
|
|
1512
|
-
if (
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1536
|
+
const S = x.getBoundingClientRect();
|
|
1537
|
+
if (S.left > b.left) {
|
|
1538
|
+
const C = parseInt(
|
|
1539
|
+
x.getAttribute("data-index") || "",
|
|
1515
1540
|
10
|
|
1516
1541
|
);
|
|
1517
|
-
isNaN(
|
|
1542
|
+
isNaN(C) || (b = S, u = C);
|
|
1518
1543
|
} else
|
|
1519
1544
|
break;
|
|
1520
1545
|
}
|
|
1521
1546
|
}
|
|
1522
1547
|
}
|
|
1523
|
-
return typeof
|
|
1548
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1524
1549
|
}
|
|
1525
1550
|
function c() {
|
|
1526
|
-
const
|
|
1527
|
-
order: typeof
|
|
1551
|
+
const u = {
|
|
1552
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1528
1553
|
...e.grid && {
|
|
1529
1554
|
width: "100%"
|
|
1530
1555
|
}
|
|
1531
1556
|
};
|
|
1532
1557
|
return Object.fromEntries(
|
|
1533
|
-
Object.entries(
|
|
1558
|
+
Object.entries(u).filter(([v, f]) => f !== void 0)
|
|
1534
1559
|
);
|
|
1535
1560
|
}
|
|
1536
|
-
function h(
|
|
1537
|
-
t.includes(
|
|
1561
|
+
function h(u) {
|
|
1562
|
+
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1538
1563
|
}
|
|
1539
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1564
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ N(Ye.Fragment, { children: [
|
|
1540
1565
|
/* @__PURE__ */ s(
|
|
1541
1566
|
"div",
|
|
1542
1567
|
{
|
|
1543
|
-
className: o(
|
|
1568
|
+
className: o(v),
|
|
1544
1569
|
style: {
|
|
1545
1570
|
...r(),
|
|
1546
1571
|
...e.grid && {
|
|
1547
1572
|
width: e.gridRowWidth,
|
|
1548
|
-
order:
|
|
1573
|
+
order: d() !== null ? xe(v) : xe(v + 1)
|
|
1549
1574
|
}
|
|
1550
1575
|
},
|
|
1551
|
-
"data-index":
|
|
1552
|
-
onClick: (
|
|
1576
|
+
"data-index": v,
|
|
1577
|
+
onClick: (f) => h(v),
|
|
1553
1578
|
children: /* @__PURE__ */ s(
|
|
1554
1579
|
$,
|
|
1555
1580
|
{
|
|
1556
|
-
blocks:
|
|
1557
|
-
path: `items.${
|
|
1581
|
+
blocks: u.title,
|
|
1582
|
+
path: `items.${v}.title`,
|
|
1558
1583
|
parent: e.builderBlock.id,
|
|
1559
1584
|
context: e.builderContext,
|
|
1560
1585
|
registeredComponents: e.builderComponents,
|
|
@@ -1563,16 +1588,16 @@ function Zt(e) {
|
|
|
1563
1588
|
)
|
|
1564
1589
|
}
|
|
1565
1590
|
),
|
|
1566
|
-
t.includes(
|
|
1591
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1567
1592
|
"div",
|
|
1568
1593
|
{
|
|
1569
|
-
className: l(
|
|
1594
|
+
className: l(v),
|
|
1570
1595
|
style: c(),
|
|
1571
1596
|
children: /* @__PURE__ */ s(
|
|
1572
1597
|
$,
|
|
1573
1598
|
{
|
|
1574
|
-
blocks:
|
|
1575
|
-
path: `items.${
|
|
1599
|
+
blocks: u.detail,
|
|
1600
|
+
path: `items.${v}.detail`,
|
|
1576
1601
|
parent: e.builderBlock.id,
|
|
1577
1602
|
context: e.builderContext,
|
|
1578
1603
|
registeredComponents: e.builderComponents,
|
|
@@ -1581,9 +1606,9 @@ function Zt(e) {
|
|
|
1581
1606
|
)
|
|
1582
1607
|
}
|
|
1583
1608
|
) : null
|
|
1584
|
-
] },
|
|
1609
|
+
] }, v)) });
|
|
1585
1610
|
}
|
|
1586
|
-
const
|
|
1611
|
+
const tn = {
|
|
1587
1612
|
name: "Core:Button",
|
|
1588
1613
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1589
1614
|
defaultStyles: {
|
|
@@ -1619,7 +1644,7 @@ const en = {
|
|
|
1619
1644
|
shouldReceiveBuilderProps: {
|
|
1620
1645
|
builderLinkComponent: !0
|
|
1621
1646
|
}
|
|
1622
|
-
},
|
|
1647
|
+
}, nn = {
|
|
1623
1648
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1624
1649
|
name: "Columns",
|
|
1625
1650
|
isRSC: !0,
|
|
@@ -1798,7 +1823,7 @@ const en = {
|
|
|
1798
1823
|
});
|
|
1799
1824
|
}
|
|
1800
1825
|
const n = e.get("columns");
|
|
1801
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l,
|
|
1826
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1802
1827
|
}
|
|
1803
1828
|
}, {
|
|
1804
1829
|
name: "space",
|
|
@@ -1826,13 +1851,13 @@ const en = {
|
|
|
1826
1851
|
builderComponents: !0,
|
|
1827
1852
|
builderLinkComponent: !0
|
|
1828
1853
|
}
|
|
1829
|
-
},
|
|
1854
|
+
}, an = {
|
|
1830
1855
|
name: "Fragment",
|
|
1831
1856
|
static: !0,
|
|
1832
1857
|
hidden: !0,
|
|
1833
1858
|
canHaveChildren: !0,
|
|
1834
1859
|
noWrap: !0
|
|
1835
|
-
},
|
|
1860
|
+
}, de = ["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"], on = ["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"], rn = {
|
|
1836
1861
|
name: "Image",
|
|
1837
1862
|
static: !0,
|
|
1838
1863
|
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",
|
|
@@ -1847,21 +1872,21 @@ const en = {
|
|
|
1847
1872
|
name: "image",
|
|
1848
1873
|
type: "file",
|
|
1849
1874
|
bubble: !0,
|
|
1850
|
-
allowedFileTypes:
|
|
1875
|
+
allowedFileTypes: de,
|
|
1851
1876
|
required: !0,
|
|
1852
1877
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1853
1878
|
onChange: (e) => {
|
|
1854
1879
|
e.delete("srcset"), e.delete("noWebp");
|
|
1855
1880
|
function n(o, l = 6e4) {
|
|
1856
|
-
return new Promise((
|
|
1881
|
+
return new Promise((d, c) => {
|
|
1857
1882
|
const h = document.createElement("img");
|
|
1858
|
-
let
|
|
1883
|
+
let y = !1;
|
|
1859
1884
|
h.onload = () => {
|
|
1860
|
-
|
|
1861
|
-
}, h.addEventListener("error", (
|
|
1862
|
-
console.warn("Image load failed",
|
|
1885
|
+
y = !0, d(h);
|
|
1886
|
+
}, h.addEventListener("error", (u) => {
|
|
1887
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1863
1888
|
}), h.src = o, setTimeout(() => {
|
|
1864
|
-
|
|
1889
|
+
y || c(new Error("Image load timed out"));
|
|
1865
1890
|
}, l);
|
|
1866
1891
|
});
|
|
1867
1892
|
}
|
|
@@ -1940,7 +1965,7 @@ const en = {
|
|
|
1940
1965
|
shouldReceiveBuilderProps: {
|
|
1941
1966
|
builderBlock: !0
|
|
1942
1967
|
}
|
|
1943
|
-
},
|
|
1968
|
+
}, ln = {
|
|
1944
1969
|
name: "PersonalizationContainer",
|
|
1945
1970
|
shouldReceiveBuilderProps: {
|
|
1946
1971
|
builderBlock: !0,
|
|
@@ -1986,7 +2011,7 @@ function J(e) {
|
|
|
1986
2011
|
}
|
|
1987
2012
|
);
|
|
1988
2013
|
}
|
|
1989
|
-
function
|
|
2014
|
+
function sn(e, t, n, i) {
|
|
1990
2015
|
function a(c) {
|
|
1991
2016
|
return typeof c == "string";
|
|
1992
2017
|
}
|
|
@@ -1995,42 +2020,42 @@ function ln(e, t, n, i) {
|
|
|
1995
2020
|
}
|
|
1996
2021
|
function o(c, h) {
|
|
1997
2022
|
return (() => {
|
|
1998
|
-
const
|
|
1999
|
-
let
|
|
2000
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (
|
|
2023
|
+
const u = h.property, v = h.operator;
|
|
2024
|
+
let f = h.value;
|
|
2025
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
|
|
2001
2026
|
return !0;
|
|
2002
|
-
if (Array.isArray(
|
|
2003
|
-
return
|
|
2004
|
-
property:
|
|
2005
|
-
operator:
|
|
2006
|
-
value:
|
|
2007
|
-
})) : !!
|
|
2008
|
-
property:
|
|
2009
|
-
operator:
|
|
2010
|
-
value:
|
|
2027
|
+
if (Array.isArray(f))
|
|
2028
|
+
return v === "isNot" ? f.every((x) => o(c, {
|
|
2029
|
+
property: u,
|
|
2030
|
+
operator: v,
|
|
2031
|
+
value: x
|
|
2032
|
+
})) : !!f.find((x) => o(c, {
|
|
2033
|
+
property: u,
|
|
2034
|
+
operator: v,
|
|
2035
|
+
value: x
|
|
2011
2036
|
}));
|
|
2012
|
-
const
|
|
2013
|
-
if (Array.isArray(
|
|
2014
|
-
return
|
|
2015
|
-
switch (
|
|
2037
|
+
const g = c[u];
|
|
2038
|
+
if (Array.isArray(g))
|
|
2039
|
+
return g.includes(f);
|
|
2040
|
+
switch (v) {
|
|
2016
2041
|
case "is":
|
|
2017
|
-
return
|
|
2042
|
+
return g === f;
|
|
2018
2043
|
case "isNot":
|
|
2019
|
-
return
|
|
2044
|
+
return g !== f;
|
|
2020
2045
|
case "contains":
|
|
2021
|
-
return (a(
|
|
2046
|
+
return (a(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2022
2047
|
case "startsWith":
|
|
2023
|
-
return a(
|
|
2048
|
+
return a(g) && g.startsWith(String(f));
|
|
2024
2049
|
case "endsWith":
|
|
2025
|
-
return a(
|
|
2050
|
+
return a(g) && g.endsWith(String(f));
|
|
2026
2051
|
case "greaterThan":
|
|
2027
|
-
return r(
|
|
2052
|
+
return r(g) && r(f) && g > f;
|
|
2028
2053
|
case "lessThan":
|
|
2029
|
-
return r(
|
|
2054
|
+
return r(g) && r(f) && g < f;
|
|
2030
2055
|
case "greaterThanOrEqualTo":
|
|
2031
|
-
return r(
|
|
2056
|
+
return r(g) && r(f) && g >= f;
|
|
2032
2057
|
case "lessThanOrEqualTo":
|
|
2033
|
-
return r(
|
|
2058
|
+
return r(g) && r(f) && g <= f;
|
|
2034
2059
|
default:
|
|
2035
2060
|
return !1;
|
|
2036
2061
|
}
|
|
@@ -2040,10 +2065,10 @@ function ln(e, t, n, i) {
|
|
|
2040
2065
|
query: t,
|
|
2041
2066
|
startDate: n,
|
|
2042
2067
|
endDate: i
|
|
2043
|
-
},
|
|
2044
|
-
return l.startDate && new Date(l.startDate) >
|
|
2068
|
+
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2069
|
+
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
|
|
2045
2070
|
}
|
|
2046
|
-
const
|
|
2071
|
+
const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2047
2072
|
if (!navigator.cookieEnabled) {
|
|
2048
2073
|
return;
|
|
2049
2074
|
}
|
|
@@ -2096,7 +2121,7 @@ const sn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2096
2121
|
} else if (variants && variants.length > 0) {
|
|
2097
2122
|
removeVariants();
|
|
2098
2123
|
}
|
|
2099
|
-
}`,
|
|
2124
|
+
}`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2100
2125
|
function isString(val) {
|
|
2101
2126
|
return typeof val === 'string';
|
|
2102
2127
|
}
|
|
@@ -2175,10 +2200,10 @@ const sn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2175
2200
|
return objectMatchesQuery(userAttributes, filter);
|
|
2176
2201
|
});
|
|
2177
2202
|
}`;
|
|
2178
|
-
function
|
|
2203
|
+
function dn(e, t) {
|
|
2179
2204
|
return !(!(e && e.length > 0) || !t || L());
|
|
2180
2205
|
}
|
|
2181
|
-
function
|
|
2206
|
+
function mn({
|
|
2182
2207
|
variants: e,
|
|
2183
2208
|
previewingIndex: t,
|
|
2184
2209
|
isHydrated: n,
|
|
@@ -2205,79 +2230,79 @@ function dn({
|
|
|
2205
2230
|
}
|
|
2206
2231
|
return r;
|
|
2207
2232
|
}
|
|
2208
|
-
const
|
|
2233
|
+
const fn = (e, t, n) => `
|
|
2209
2234
|
(function() {
|
|
2235
|
+
${un}
|
|
2210
2236
|
${cn}
|
|
2211
|
-
${sn}
|
|
2212
2237
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2213
2238
|
})();
|
|
2214
2239
|
`;
|
|
2215
|
-
function
|
|
2216
|
-
var
|
|
2240
|
+
function hn(e) {
|
|
2241
|
+
var g, x, b, S, C, V, w;
|
|
2217
2242
|
const t = D(null), [n, i] = E(
|
|
2218
|
-
() =>
|
|
2243
|
+
() => fe.getUserAttributes()
|
|
2219
2244
|
), [a, r] = E(
|
|
2220
2245
|
() => {
|
|
2221
|
-
var
|
|
2222
|
-
return
|
|
2246
|
+
var k, m, p;
|
|
2247
|
+
return fn(
|
|
2223
2248
|
e.variants,
|
|
2224
|
-
((
|
|
2249
|
+
((k = e.builderBlock) == null ? void 0 : k.id) || "none",
|
|
2225
2250
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2226
2251
|
);
|
|
2227
2252
|
}
|
|
2228
|
-
), [o, l] = E(() => []), [
|
|
2253
|
+
), [o, l] = E(() => []), [d, c] = E(
|
|
2229
2254
|
() => {
|
|
2230
|
-
var
|
|
2231
|
-
return
|
|
2255
|
+
var k;
|
|
2256
|
+
return dn(
|
|
2232
2257
|
e.variants,
|
|
2233
|
-
|
|
2258
|
+
H((k = e.builderContext) == null ? void 0 : k.canTrack)
|
|
2234
2259
|
);
|
|
2235
2260
|
}
|
|
2236
|
-
), [h,
|
|
2237
|
-
function
|
|
2238
|
-
return (e.variants || []).filter((
|
|
2239
|
-
var m, p,
|
|
2240
|
-
return
|
|
2261
|
+
), [h, y] = E(() => !1);
|
|
2262
|
+
function u() {
|
|
2263
|
+
return (e.variants || []).filter((k) => {
|
|
2264
|
+
var m, p, I, T;
|
|
2265
|
+
return sn(
|
|
2241
2266
|
{
|
|
2242
2267
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2243
|
-
locale: (
|
|
2268
|
+
locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
|
|
2244
2269
|
} : {},
|
|
2245
2270
|
...n
|
|
2246
2271
|
},
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2272
|
+
k.query,
|
|
2273
|
+
k.startDate,
|
|
2274
|
+
k.endDate
|
|
2250
2275
|
);
|
|
2251
2276
|
});
|
|
2252
2277
|
}
|
|
2253
|
-
function
|
|
2254
|
-
var
|
|
2255
|
-
return
|
|
2278
|
+
function v() {
|
|
2279
|
+
var k;
|
|
2280
|
+
return mn({
|
|
2256
2281
|
variants: e.variants,
|
|
2257
|
-
fallbackBlocks: (
|
|
2282
|
+
fallbackBlocks: (k = e.builderBlock) == null ? void 0 : k.children,
|
|
2258
2283
|
isHydrated: h,
|
|
2259
|
-
filteredVariants:
|
|
2284
|
+
filteredVariants: u(),
|
|
2260
2285
|
previewingIndex: e.previewingIndex
|
|
2261
2286
|
});
|
|
2262
2287
|
}
|
|
2263
|
-
function
|
|
2288
|
+
function f() {
|
|
2264
2289
|
return (e.variants || []).map(
|
|
2265
|
-
(
|
|
2290
|
+
(k, m) => {
|
|
2266
2291
|
var p;
|
|
2267
2292
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2268
2293
|
}
|
|
2269
2294
|
).join("");
|
|
2270
2295
|
}
|
|
2271
|
-
return
|
|
2296
|
+
return B(() => {
|
|
2272
2297
|
var m;
|
|
2273
|
-
|
|
2274
|
-
const
|
|
2298
|
+
y(!0);
|
|
2299
|
+
const k = fe.subscribeOnUserAttributesChange(
|
|
2275
2300
|
(p) => {
|
|
2276
2301
|
i(p);
|
|
2277
2302
|
}
|
|
2278
2303
|
);
|
|
2279
2304
|
if (!(W() || G())) {
|
|
2280
|
-
const p =
|
|
2305
|
+
const p = u()[0];
|
|
2281
2306
|
t.current && (t.current.dispatchEvent(
|
|
2282
2307
|
new CustomEvent("builder.variantLoaded", {
|
|
2283
2308
|
detail: {
|
|
@@ -2286,14 +2311,14 @@ function fn(e) {
|
|
|
2286
2311
|
},
|
|
2287
2312
|
bubbles: !0
|
|
2288
2313
|
})
|
|
2289
|
-
), new IntersectionObserver((
|
|
2290
|
-
|
|
2291
|
-
var
|
|
2292
|
-
|
|
2314
|
+
), new IntersectionObserver((T) => {
|
|
2315
|
+
T.forEach((P) => {
|
|
2316
|
+
var A;
|
|
2317
|
+
P.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2293
2318
|
new CustomEvent("builder.variantDisplayed", {
|
|
2294
2319
|
detail: {
|
|
2295
2320
|
variant: p || "default",
|
|
2296
|
-
content: (
|
|
2321
|
+
content: (A = e.builderContext) == null ? void 0 : A.content
|
|
2297
2322
|
},
|
|
2298
2323
|
bubbles: !0
|
|
2299
2324
|
})
|
|
@@ -2301,19 +2326,19 @@ function fn(e) {
|
|
|
2301
2326
|
});
|
|
2302
2327
|
}).observe(t.current));
|
|
2303
2328
|
}
|
|
2304
|
-
o.push(
|
|
2305
|
-
}, []),
|
|
2306
|
-
o.forEach((
|
|
2307
|
-
}, []), /* @__PURE__ */
|
|
2329
|
+
o.push(k);
|
|
2330
|
+
}, []), B(() => () => {
|
|
2331
|
+
o.forEach((k) => k());
|
|
2332
|
+
}, []), /* @__PURE__ */ N(
|
|
2308
2333
|
"div",
|
|
2309
2334
|
{
|
|
2310
2335
|
ref: t,
|
|
2311
2336
|
...e.attributes,
|
|
2312
|
-
className: `builder-personalization-container ${((
|
|
2337
|
+
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2313
2338
|
children: [
|
|
2314
|
-
|
|
2315
|
-
(
|
|
2316
|
-
var p,
|
|
2339
|
+
d ? /* @__PURE__ */ N(R, { children: [
|
|
2340
|
+
(x = e.variants) == null ? void 0 : x.map((k, m) => {
|
|
2341
|
+
var p, I;
|
|
2317
2342
|
return /* @__PURE__ */ s(
|
|
2318
2343
|
"template",
|
|
2319
2344
|
{
|
|
@@ -2321,8 +2346,8 @@ function fn(e) {
|
|
|
2321
2346
|
children: /* @__PURE__ */ s(
|
|
2322
2347
|
$,
|
|
2323
2348
|
{
|
|
2324
|
-
blocks:
|
|
2325
|
-
parent: (
|
|
2349
|
+
blocks: k.blocks,
|
|
2350
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2326
2351
|
path: `component.options.variants.${m}.blocks`
|
|
2327
2352
|
}
|
|
2328
2353
|
)
|
|
@@ -2331,35 +2356,35 @@ function fn(e) {
|
|
|
2331
2356
|
);
|
|
2332
2357
|
}),
|
|
2333
2358
|
/* @__PURE__ */ s(
|
|
2334
|
-
|
|
2359
|
+
j,
|
|
2335
2360
|
{
|
|
2336
|
-
nonce: ((
|
|
2337
|
-
styles:
|
|
2338
|
-
id: `variants-styles-${(
|
|
2361
|
+
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2362
|
+
styles: f(),
|
|
2363
|
+
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
2339
2364
|
}
|
|
2340
2365
|
),
|
|
2341
2366
|
/* @__PURE__ */ s(
|
|
2342
2367
|
J,
|
|
2343
2368
|
{
|
|
2344
|
-
nonce: ((
|
|
2369
|
+
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2345
2370
|
scriptStr: a,
|
|
2346
|
-
id: `variants-script-${(
|
|
2371
|
+
id: `variants-script-${(V = e.builderBlock) == null ? void 0 : V.id}`
|
|
2347
2372
|
}
|
|
2348
2373
|
)
|
|
2349
2374
|
] }) : null,
|
|
2350
2375
|
/* @__PURE__ */ s(
|
|
2351
2376
|
$,
|
|
2352
2377
|
{
|
|
2353
|
-
blocks:
|
|
2354
|
-
parent: (
|
|
2355
|
-
path:
|
|
2378
|
+
blocks: v().blocks,
|
|
2379
|
+
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
2380
|
+
path: v().path
|
|
2356
2381
|
}
|
|
2357
2382
|
)
|
|
2358
2383
|
]
|
|
2359
2384
|
}
|
|
2360
2385
|
);
|
|
2361
2386
|
}
|
|
2362
|
-
const
|
|
2387
|
+
const gn = {
|
|
2363
2388
|
name: "Core:Section",
|
|
2364
2389
|
static: !0,
|
|
2365
2390
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2398,7 +2423,7 @@ const hn = {
|
|
|
2398
2423
|
}
|
|
2399
2424
|
}
|
|
2400
2425
|
}]
|
|
2401
|
-
},
|
|
2426
|
+
}, bn = {
|
|
2402
2427
|
name: "Slot",
|
|
2403
2428
|
isRSC: !0,
|
|
2404
2429
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2416,7 +2441,7 @@ const hn = {
|
|
|
2416
2441
|
builderComponents: !0
|
|
2417
2442
|
}
|
|
2418
2443
|
};
|
|
2419
|
-
function
|
|
2444
|
+
function pn(e) {
|
|
2420
2445
|
var t, n, i;
|
|
2421
2446
|
return /* @__PURE__ */ s(
|
|
2422
2447
|
"div",
|
|
@@ -2440,7 +2465,7 @@ function bn(e) {
|
|
|
2440
2465
|
}
|
|
2441
2466
|
);
|
|
2442
2467
|
}
|
|
2443
|
-
const
|
|
2468
|
+
const yn = {
|
|
2444
2469
|
name: "Symbol",
|
|
2445
2470
|
noWrap: !0,
|
|
2446
2471
|
static: !0,
|
|
@@ -2479,7 +2504,7 @@ const pn = {
|
|
|
2479
2504
|
builderComponents: !0,
|
|
2480
2505
|
builderLinkComponent: !0
|
|
2481
2506
|
}
|
|
2482
|
-
},
|
|
2507
|
+
}, ne = {
|
|
2483
2508
|
"@type": "@builder.io/sdk:Element",
|
|
2484
2509
|
responsiveStyles: {
|
|
2485
2510
|
large: {
|
|
@@ -2501,7 +2526,7 @@ const pn = {
|
|
|
2501
2526
|
text: "New tab"
|
|
2502
2527
|
}
|
|
2503
2528
|
}
|
|
2504
|
-
},
|
|
2529
|
+
}, ie = {
|
|
2505
2530
|
"@type": "@builder.io/sdk:Element",
|
|
2506
2531
|
responsiveStyles: {
|
|
2507
2532
|
large: {
|
|
@@ -2517,7 +2542,7 @@ const pn = {
|
|
|
2517
2542
|
text: "New tab content "
|
|
2518
2543
|
}
|
|
2519
2544
|
}
|
|
2520
|
-
},
|
|
2545
|
+
}, vn = {
|
|
2521
2546
|
name: "Builder: Tabs",
|
|
2522
2547
|
inputs: [{
|
|
2523
2548
|
name: "tabs",
|
|
@@ -2527,16 +2552,16 @@ const pn = {
|
|
|
2527
2552
|
name: "label",
|
|
2528
2553
|
type: "uiBlocks",
|
|
2529
2554
|
hideFromUI: !0,
|
|
2530
|
-
defaultValue: [
|
|
2555
|
+
defaultValue: [ne]
|
|
2531
2556
|
}, {
|
|
2532
2557
|
name: "content",
|
|
2533
2558
|
type: "uiBlocks",
|
|
2534
2559
|
hideFromUI: !0,
|
|
2535
|
-
defaultValue: [
|
|
2560
|
+
defaultValue: [ie]
|
|
2536
2561
|
}],
|
|
2537
2562
|
defaultValue: [{
|
|
2538
2563
|
label: [{
|
|
2539
|
-
...
|
|
2564
|
+
...ne,
|
|
2540
2565
|
component: {
|
|
2541
2566
|
name: "Text",
|
|
2542
2567
|
options: {
|
|
@@ -2545,7 +2570,7 @@ const pn = {
|
|
|
2545
2570
|
}
|
|
2546
2571
|
}],
|
|
2547
2572
|
content: [{
|
|
2548
|
-
...
|
|
2573
|
+
...ie,
|
|
2549
2574
|
component: {
|
|
2550
2575
|
name: "Text",
|
|
2551
2576
|
options: {
|
|
@@ -2555,7 +2580,7 @@ const pn = {
|
|
|
2555
2580
|
}]
|
|
2556
2581
|
}, {
|
|
2557
2582
|
label: [{
|
|
2558
|
-
...
|
|
2583
|
+
...ne,
|
|
2559
2584
|
component: {
|
|
2560
2585
|
name: "Text",
|
|
2561
2586
|
options: {
|
|
@@ -2564,7 +2589,7 @@ const pn = {
|
|
|
2564
2589
|
}
|
|
2565
2590
|
}],
|
|
2566
2591
|
content: [{
|
|
2567
|
-
...
|
|
2592
|
+
...ie,
|
|
2568
2593
|
component: {
|
|
2569
2594
|
name: "Text",
|
|
2570
2595
|
options: {
|
|
@@ -2621,7 +2646,7 @@ const pn = {
|
|
|
2621
2646
|
builderLinkComponent: !0
|
|
2622
2647
|
}
|
|
2623
2648
|
};
|
|
2624
|
-
function
|
|
2649
|
+
function xn(e) {
|
|
2625
2650
|
var r;
|
|
2626
2651
|
const [t, n] = E(
|
|
2627
2652
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2632,7 +2657,7 @@ function vn(e) {
|
|
|
2632
2657
|
function a(o) {
|
|
2633
2658
|
o === t && e.collapsible ? n(-1) : n(o);
|
|
2634
2659
|
}
|
|
2635
|
-
return /* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ N("div", { children: [
|
|
2636
2661
|
/* @__PURE__ */ s(
|
|
2637
2662
|
"div",
|
|
2638
2663
|
{
|
|
@@ -2650,7 +2675,7 @@ function vn(e) {
|
|
|
2650
2675
|
style: {
|
|
2651
2676
|
...t === l ? e.activeTabStyle : {}
|
|
2652
2677
|
},
|
|
2653
|
-
onClick: (
|
|
2678
|
+
onClick: (d) => a(l),
|
|
2654
2679
|
children: /* @__PURE__ */ s(
|
|
2655
2680
|
$,
|
|
2656
2681
|
{
|
|
@@ -2680,7 +2705,7 @@ function vn(e) {
|
|
|
2680
2705
|
) }) : null
|
|
2681
2706
|
] });
|
|
2682
2707
|
}
|
|
2683
|
-
const
|
|
2708
|
+
const Sn = {
|
|
2684
2709
|
shouldReceiveBuilderProps: {
|
|
2685
2710
|
builderBlock: !1,
|
|
2686
2711
|
builderContext: !0
|
|
@@ -2703,7 +2728,7 @@ const xn = {
|
|
|
2703
2728
|
textAlign: "center"
|
|
2704
2729
|
}
|
|
2705
2730
|
};
|
|
2706
|
-
function
|
|
2731
|
+
function kn(e) {
|
|
2707
2732
|
var t;
|
|
2708
2733
|
return /* @__PURE__ */ s(
|
|
2709
2734
|
"div",
|
|
@@ -2716,7 +2741,7 @@ function Sn(e) {
|
|
|
2716
2741
|
}
|
|
2717
2742
|
);
|
|
2718
2743
|
}
|
|
2719
|
-
const
|
|
2744
|
+
const Cn = {
|
|
2720
2745
|
name: "Custom Code",
|
|
2721
2746
|
static: !0,
|
|
2722
2747
|
requiredPermissions: ["editCode"],
|
|
@@ -2739,15 +2764,15 @@ const kn = {
|
|
|
2739
2764
|
advanced: !0
|
|
2740
2765
|
}]
|
|
2741
2766
|
};
|
|
2742
|
-
function
|
|
2767
|
+
function Tn(e) {
|
|
2743
2768
|
const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []);
|
|
2744
|
-
return
|
|
2769
|
+
return B(() => {
|
|
2745
2770
|
var l;
|
|
2746
2771
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2747
2772
|
return;
|
|
2748
2773
|
const o = t.current.getElementsByTagName("script");
|
|
2749
|
-
for (let
|
|
2750
|
-
const c = o[
|
|
2774
|
+
for (let d = 0; d < o.length; d++) {
|
|
2775
|
+
const c = o[d];
|
|
2751
2776
|
if (c.src) {
|
|
2752
2777
|
if (n.includes(c.src))
|
|
2753
2778
|
continue;
|
|
@@ -2777,7 +2802,7 @@ function Cn(e) {
|
|
|
2777
2802
|
}
|
|
2778
2803
|
);
|
|
2779
2804
|
}
|
|
2780
|
-
const
|
|
2805
|
+
const wn = {
|
|
2781
2806
|
name: "Embed",
|
|
2782
2807
|
static: !0,
|
|
2783
2808
|
inputs: [{
|
|
@@ -2792,29 +2817,29 @@ const Tn = {
|
|
|
2792
2817
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2793
2818
|
hideFromUI: !0
|
|
2794
2819
|
}]
|
|
2795
|
-
},
|
|
2796
|
-
function
|
|
2820
|
+
}, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
|
|
2821
|
+
function Rn(e) {
|
|
2797
2822
|
const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []), [o, l] = E(() => !1);
|
|
2798
|
-
function
|
|
2823
|
+
function d() {
|
|
2799
2824
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2800
2825
|
return;
|
|
2801
2826
|
const c = t.current.getElementsByTagName("script");
|
|
2802
2827
|
for (let h = 0; h < c.length; h++) {
|
|
2803
|
-
const
|
|
2804
|
-
if (
|
|
2805
|
-
n.push(
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2808
|
-
} else if (
|
|
2828
|
+
const y = c[h];
|
|
2829
|
+
if (y.src && !n.includes(y.src)) {
|
|
2830
|
+
n.push(y.src);
|
|
2831
|
+
const u = document.createElement("script");
|
|
2832
|
+
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2833
|
+
} else if (En(y) && !a.includes(y.innerText))
|
|
2809
2834
|
try {
|
|
2810
|
-
a.push(
|
|
2811
|
-
} catch (
|
|
2812
|
-
console.warn("`Embed`: Error running script:",
|
|
2835
|
+
a.push(y.innerText), new Function(y.innerText)();
|
|
2836
|
+
} catch (u) {
|
|
2837
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2813
2838
|
}
|
|
2814
2839
|
}
|
|
2815
2840
|
}
|
|
2816
|
-
return
|
|
2817
|
-
t.current && !o && (l(!0),
|
|
2841
|
+
return B(() => {
|
|
2842
|
+
t.current && !o && (l(!0), d());
|
|
2818
2843
|
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2819
2844
|
"div",
|
|
2820
2845
|
{
|
|
@@ -2824,7 +2849,7 @@ function En(e) {
|
|
|
2824
2849
|
}
|
|
2825
2850
|
);
|
|
2826
2851
|
}
|
|
2827
|
-
const
|
|
2852
|
+
const Vn = {
|
|
2828
2853
|
name: "Form:Form",
|
|
2829
2854
|
// editableTags: ['builder-form-error']
|
|
2830
2855
|
defaults: {
|
|
@@ -3061,102 +3086,102 @@ const Rn = {
|
|
|
3061
3086
|
builderComponents: !0,
|
|
3062
3087
|
builderLinkComponent: !0
|
|
3063
3088
|
}
|
|
3064
|
-
}, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"],
|
|
3089
|
+
}, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
|
|
3065
3090
|
const e = process.env.NODE_ENV || "production";
|
|
3066
3091
|
return Pn.includes(e) ? e : "production";
|
|
3067
3092
|
};
|
|
3068
|
-
function
|
|
3093
|
+
function An(e) {
|
|
3069
3094
|
const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
|
|
3070
|
-
function
|
|
3071
|
-
var
|
|
3072
|
-
const
|
|
3095
|
+
function d(y) {
|
|
3096
|
+
var v, f;
|
|
3097
|
+
const u = {
|
|
3073
3098
|
...e.builderContext.rootState,
|
|
3074
|
-
...
|
|
3099
|
+
...y
|
|
3075
3100
|
};
|
|
3076
|
-
e.builderContext.rootSetState ? (
|
|
3101
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3077
3102
|
}
|
|
3078
3103
|
function c() {
|
|
3079
3104
|
return W() && e.previewState || n;
|
|
3080
3105
|
}
|
|
3081
|
-
function h(
|
|
3082
|
-
var
|
|
3083
|
-
const
|
|
3106
|
+
function h(y) {
|
|
3107
|
+
var v;
|
|
3108
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3084
3109
|
if (e.sendSubmissionsTo === "zapier")
|
|
3085
|
-
|
|
3086
|
-
else if (
|
|
3110
|
+
y.preventDefault();
|
|
3111
|
+
else if (u) {
|
|
3087
3112
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3088
|
-
|
|
3113
|
+
y.preventDefault();
|
|
3089
3114
|
return;
|
|
3090
3115
|
}
|
|
3091
|
-
|
|
3092
|
-
const
|
|
3093
|
-
let
|
|
3094
|
-
const
|
|
3116
|
+
y.preventDefault();
|
|
3117
|
+
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3118
|
+
let x;
|
|
3119
|
+
const b = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3095
3120
|
let p;
|
|
3096
|
-
const
|
|
3121
|
+
const I = m.name;
|
|
3097
3122
|
if (m instanceof HTMLInputElement)
|
|
3098
3123
|
if (m.type === "radio") {
|
|
3099
3124
|
if (m.checked)
|
|
3100
3125
|
return p = m.name, {
|
|
3101
|
-
key:
|
|
3126
|
+
key: I,
|
|
3102
3127
|
value: p
|
|
3103
3128
|
};
|
|
3104
3129
|
} else if (m.type === "checkbox")
|
|
3105
3130
|
p = m.checked;
|
|
3106
3131
|
else if (m.type === "number" || m.type === "range") {
|
|
3107
|
-
const
|
|
3108
|
-
isNaN(
|
|
3132
|
+
const T = m.valueAsNumber;
|
|
3133
|
+
isNaN(T) || (p = T);
|
|
3109
3134
|
} else
|
|
3110
3135
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3111
3136
|
else
|
|
3112
3137
|
p = m.value;
|
|
3113
3138
|
return {
|
|
3114
|
-
key:
|
|
3139
|
+
key: I,
|
|
3115
3140
|
value: p
|
|
3116
3141
|
};
|
|
3117
3142
|
});
|
|
3118
|
-
let
|
|
3119
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3120
|
-
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (
|
|
3121
|
-
}),
|
|
3122
|
-
|
|
3143
|
+
let C = e.contentType;
|
|
3144
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
|
|
3145
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3146
|
+
}), C !== "application/json")
|
|
3147
|
+
x = b;
|
|
3123
3148
|
else {
|
|
3124
3149
|
const m = {};
|
|
3125
|
-
Array.from(
|
|
3126
|
-
Pe(m,
|
|
3127
|
-
}),
|
|
3150
|
+
Array.from(S).forEach(({ value: p, key: I }) => {
|
|
3151
|
+
Pe(m, I, p);
|
|
3152
|
+
}), x = JSON.stringify(m);
|
|
3128
3153
|
}
|
|
3129
|
-
|
|
3130
|
-
const
|
|
3131
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3154
|
+
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3155
|
+
const V = new CustomEvent("presubmit", { detail: { body: x } });
|
|
3156
|
+
if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
|
|
3132
3157
|
return;
|
|
3133
3158
|
i("sending");
|
|
3134
|
-
const
|
|
3159
|
+
const w = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3135
3160
|
e.sendSubmissionsToEmail || ""
|
|
3136
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3137
|
-
|
|
3161
|
+
)}&name=${encodeURIComponent(e.name || "")}`, k = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3162
|
+
Ie(k), fetch(k, { body: x, headers: g, method: e.method || "post" }).then(
|
|
3138
3163
|
async (m) => {
|
|
3139
3164
|
let p;
|
|
3140
|
-
const
|
|
3141
|
-
if (
|
|
3142
|
-
let
|
|
3143
|
-
|
|
3165
|
+
const I = m.headers.get("content-type");
|
|
3166
|
+
if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3167
|
+
let T = Ae(p, e.errorMessagePath);
|
|
3168
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
3144
3169
|
}
|
|
3145
3170
|
if (r(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3146
|
-
const
|
|
3171
|
+
const T = new CustomEvent("submit:success", {
|
|
3147
3172
|
detail: { res: m, body: p }
|
|
3148
3173
|
});
|
|
3149
3174
|
if (t.current) {
|
|
3150
|
-
if (t.current.dispatchEvent(
|
|
3175
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
3151
3176
|
return;
|
|
3152
3177
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3153
3178
|
}
|
|
3154
3179
|
if (e.successUrl)
|
|
3155
3180
|
if (t.current) {
|
|
3156
|
-
const
|
|
3181
|
+
const P = new CustomEvent("route", {
|
|
3157
3182
|
detail: { url: e.successUrl }
|
|
3158
3183
|
});
|
|
3159
|
-
t.current.dispatchEvent(
|
|
3184
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3160
3185
|
} else
|
|
3161
3186
|
location.href = e.successUrl;
|
|
3162
3187
|
}
|
|
@@ -3170,9 +3195,9 @@ function Bn(e) {
|
|
|
3170
3195
|
);
|
|
3171
3196
|
}
|
|
3172
3197
|
}
|
|
3173
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ N(R, { children: [
|
|
3174
3199
|
" ",
|
|
3175
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ N(
|
|
3176
3201
|
"form",
|
|
3177
3202
|
{
|
|
3178
3203
|
validate: e.validate,
|
|
@@ -3180,7 +3205,7 @@ function Bn(e) {
|
|
|
3180
3205
|
action: !e.sendWithJs && e.action,
|
|
3181
3206
|
method: e.method,
|
|
3182
3207
|
name: e.name,
|
|
3183
|
-
onSubmit: (
|
|
3208
|
+
onSubmit: (y) => h(y),
|
|
3184
3209
|
...e.attributes,
|
|
3185
3210
|
children: [
|
|
3186
3211
|
e.children,
|
|
@@ -3217,7 +3242,7 @@ function Bn(e) {
|
|
|
3217
3242
|
" "
|
|
3218
3243
|
] });
|
|
3219
3244
|
}
|
|
3220
|
-
const
|
|
3245
|
+
const Nn = {
|
|
3221
3246
|
name: "Form:Input",
|
|
3222
3247
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3223
3248
|
inputs: [
|
|
@@ -3269,8 +3294,8 @@ const An = {
|
|
|
3269
3294
|
borderColor: "#ccc"
|
|
3270
3295
|
}
|
|
3271
3296
|
};
|
|
3272
|
-
function
|
|
3273
|
-
return /* @__PURE__ */
|
|
3297
|
+
function Wn(e) {
|
|
3298
|
+
return /* @__PURE__ */ Ve(
|
|
3274
3299
|
"input",
|
|
3275
3300
|
{
|
|
3276
3301
|
...e.attributes,
|
|
@@ -3284,7 +3309,7 @@ function Nn(e) {
|
|
|
3284
3309
|
}
|
|
3285
3310
|
);
|
|
3286
3311
|
}
|
|
3287
|
-
const
|
|
3312
|
+
const $n = {
|
|
3288
3313
|
name: "Form:Select",
|
|
3289
3314
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3290
3315
|
defaultStyles: {
|
|
@@ -3327,9 +3352,9 @@ const Wn = {
|
|
|
3327
3352
|
static: !0,
|
|
3328
3353
|
noWrap: !0
|
|
3329
3354
|
};
|
|
3330
|
-
function
|
|
3355
|
+
function Dn(e) {
|
|
3331
3356
|
var t;
|
|
3332
|
-
return /* @__PURE__ */
|
|
3357
|
+
return /* @__PURE__ */ Ve(
|
|
3333
3358
|
"select",
|
|
3334
3359
|
{
|
|
3335
3360
|
...e.attributes,
|
|
@@ -3342,7 +3367,7 @@ function $n(e) {
|
|
|
3342
3367
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3343
3368
|
);
|
|
3344
3369
|
}
|
|
3345
|
-
const
|
|
3370
|
+
const Fn = {
|
|
3346
3371
|
name: "Form:SubmitButton",
|
|
3347
3372
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3348
3373
|
defaultStyles: {
|
|
@@ -3368,10 +3393,10 @@ const Dn = {
|
|
|
3368
3393
|
// TODO: defaultChildren
|
|
3369
3394
|
// canHaveChildren: true,
|
|
3370
3395
|
};
|
|
3371
|
-
function
|
|
3396
|
+
function Ln(e) {
|
|
3372
3397
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3373
3398
|
}
|
|
3374
|
-
const
|
|
3399
|
+
const On = {
|
|
3375
3400
|
name: "Form:TextArea",
|
|
3376
3401
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3377
3402
|
inputs: [{
|
|
@@ -3408,7 +3433,7 @@ const Ln = {
|
|
|
3408
3433
|
static: !0,
|
|
3409
3434
|
noWrap: !0
|
|
3410
3435
|
};
|
|
3411
|
-
function
|
|
3436
|
+
function Un(e) {
|
|
3412
3437
|
return /* @__PURE__ */ s(
|
|
3413
3438
|
"textarea",
|
|
3414
3439
|
{
|
|
@@ -3421,7 +3446,7 @@ function On(e) {
|
|
|
3421
3446
|
}
|
|
3422
3447
|
);
|
|
3423
3448
|
}
|
|
3424
|
-
const
|
|
3449
|
+
const _n = {
|
|
3425
3450
|
// friendlyName?
|
|
3426
3451
|
name: "Raw:Img",
|
|
3427
3452
|
hideFromInsertMenu: !0,
|
|
@@ -3430,13 +3455,13 @@ const Un = {
|
|
|
3430
3455
|
name: "image",
|
|
3431
3456
|
bubble: !0,
|
|
3432
3457
|
type: "file",
|
|
3433
|
-
allowedFileTypes:
|
|
3458
|
+
allowedFileTypes: de,
|
|
3434
3459
|
required: !0
|
|
3435
3460
|
}],
|
|
3436
3461
|
noWrap: !0,
|
|
3437
3462
|
static: !0
|
|
3438
3463
|
};
|
|
3439
|
-
function
|
|
3464
|
+
function qn(e) {
|
|
3440
3465
|
return /* @__PURE__ */ s(
|
|
3441
3466
|
"img",
|
|
3442
3467
|
{
|
|
@@ -3451,7 +3476,7 @@ function _n(e) {
|
|
|
3451
3476
|
W() && e.imgSrc || "default-key"
|
|
3452
3477
|
);
|
|
3453
3478
|
}
|
|
3454
|
-
const
|
|
3479
|
+
const Hn = {
|
|
3455
3480
|
name: "Video",
|
|
3456
3481
|
canHaveChildren: !0,
|
|
3457
3482
|
defaultStyles: {
|
|
@@ -3462,14 +3487,14 @@ const qn = {
|
|
|
3462
3487
|
inputs: [{
|
|
3463
3488
|
name: "video",
|
|
3464
3489
|
type: "file",
|
|
3465
|
-
allowedFileTypes:
|
|
3490
|
+
allowedFileTypes: on,
|
|
3466
3491
|
bubble: !0,
|
|
3467
3492
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3468
3493
|
required: !0
|
|
3469
3494
|
}, {
|
|
3470
3495
|
name: "posterImage",
|
|
3471
3496
|
type: "file",
|
|
3472
|
-
allowedFileTypes:
|
|
3497
|
+
allowedFileTypes: de,
|
|
3473
3498
|
helperText: "Image to show before the video plays"
|
|
3474
3499
|
}, {
|
|
3475
3500
|
name: "autoPlay",
|
|
@@ -3536,9 +3561,10 @@ const qn = {
|
|
|
3536
3561
|
builderBlock: !0
|
|
3537
3562
|
}
|
|
3538
3563
|
};
|
|
3539
|
-
function
|
|
3540
|
-
var
|
|
3541
|
-
|
|
3564
|
+
function Mn(e) {
|
|
3565
|
+
var o, l, d, c, h, y, u;
|
|
3566
|
+
const t = D(null);
|
|
3567
|
+
function n() {
|
|
3542
3568
|
return {
|
|
3543
3569
|
...e.autoPlay === !0 ? {
|
|
3544
3570
|
autoPlay: !0
|
|
@@ -3557,12 +3583,37 @@ function Hn(e) {
|
|
|
3557
3583
|
} : {}
|
|
3558
3584
|
};
|
|
3559
3585
|
}
|
|
3560
|
-
function
|
|
3586
|
+
function i() {
|
|
3561
3587
|
return {
|
|
3562
|
-
...
|
|
3588
|
+
...n()
|
|
3563
3589
|
};
|
|
3564
3590
|
}
|
|
3565
|
-
|
|
3591
|
+
const [a, r] = E(() => {
|
|
3592
|
+
});
|
|
3593
|
+
return B(() => {
|
|
3594
|
+
if (e.lazyLoad) {
|
|
3595
|
+
const v = new IntersectionObserver(function(f) {
|
|
3596
|
+
f.forEach(function(g) {
|
|
3597
|
+
if (!g.isIntersecting)
|
|
3598
|
+
return;
|
|
3599
|
+
const x = g.target;
|
|
3600
|
+
try {
|
|
3601
|
+
Array.from(x.children).filter(
|
|
3602
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3603
|
+
).forEach((b) => {
|
|
3604
|
+
const S = b.dataset.src;
|
|
3605
|
+
S && (b.src = S);
|
|
3606
|
+
}), x.load(), v.unobserve(x);
|
|
3607
|
+
} catch (b) {
|
|
3608
|
+
console.error("Error loading lazy video:", b);
|
|
3609
|
+
}
|
|
3610
|
+
});
|
|
3611
|
+
});
|
|
3612
|
+
t.current && v.observe(t.current), r(v);
|
|
3613
|
+
}
|
|
3614
|
+
}, []), B(() => () => {
|
|
3615
|
+
a && a.disconnect();
|
|
3616
|
+
}, []), /* @__PURE__ */ N(
|
|
3566
3617
|
"div",
|
|
3567
3618
|
{
|
|
3568
3619
|
style: {
|
|
@@ -3573,12 +3624,13 @@ function Hn(e) {
|
|
|
3573
3624
|
"video",
|
|
3574
3625
|
{
|
|
3575
3626
|
className: "builder-video",
|
|
3576
|
-
...
|
|
3577
|
-
|
|
3627
|
+
...i(),
|
|
3628
|
+
ref: t,
|
|
3629
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
3578
3630
|
style: {
|
|
3579
3631
|
width: "100%",
|
|
3580
3632
|
height: "100%",
|
|
3581
|
-
...(
|
|
3633
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
3582
3634
|
objectFit: e.fit,
|
|
3583
3635
|
objectPosition: e.position,
|
|
3584
3636
|
// Hack to get object fit to work as expected and
|
|
@@ -3588,12 +3640,21 @@ function Hn(e) {
|
|
|
3588
3640
|
position: "absolute"
|
|
3589
3641
|
} : null
|
|
3590
3642
|
},
|
|
3591
|
-
src: e.video || "no-src",
|
|
3592
3643
|
poster: e.posterImage,
|
|
3593
|
-
children:
|
|
3644
|
+
children: /* @__PURE__ */ s(
|
|
3645
|
+
"source",
|
|
3646
|
+
{
|
|
3647
|
+
type: "video/mp4",
|
|
3648
|
+
...e.lazyLoad ? {
|
|
3649
|
+
"data-src": e.video
|
|
3650
|
+
} : {
|
|
3651
|
+
src: e.video
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
)
|
|
3594
3655
|
}
|
|
3595
3656
|
),
|
|
3596
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3657
|
+
e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
|
|
3597
3658
|
"div",
|
|
3598
3659
|
{
|
|
3599
3660
|
style: {
|
|
@@ -3604,7 +3665,7 @@ function Hn(e) {
|
|
|
3604
3665
|
}
|
|
3605
3666
|
}
|
|
3606
3667
|
) : null,
|
|
3607
|
-
(
|
|
3668
|
+
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3608
3669
|
"div",
|
|
3609
3670
|
{
|
|
3610
3671
|
style: {
|
|
@@ -3615,7 +3676,7 @@ function Hn(e) {
|
|
|
3615
3676
|
children: e.children
|
|
3616
3677
|
}
|
|
3617
3678
|
) : null,
|
|
3618
|
-
(
|
|
3679
|
+
(u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3619
3680
|
"div",
|
|
3620
3681
|
{
|
|
3621
3682
|
style: {
|
|
@@ -3637,66 +3698,66 @@ function Hn(e) {
|
|
|
3637
3698
|
);
|
|
3638
3699
|
}
|
|
3639
3700
|
const jn = () => [{
|
|
3640
|
-
component:
|
|
3641
|
-
...
|
|
3701
|
+
component: Tn,
|
|
3702
|
+
...Cn
|
|
3642
3703
|
}, {
|
|
3643
|
-
component:
|
|
3644
|
-
...
|
|
3704
|
+
component: Rn,
|
|
3705
|
+
...wn
|
|
3645
3706
|
}, {
|
|
3646
|
-
component:
|
|
3647
|
-
...
|
|
3707
|
+
component: An,
|
|
3708
|
+
...Vn
|
|
3648
3709
|
}, {
|
|
3649
|
-
component:
|
|
3650
|
-
...
|
|
3710
|
+
component: Wn,
|
|
3711
|
+
...Nn
|
|
3651
3712
|
}, {
|
|
3652
|
-
component:
|
|
3653
|
-
...
|
|
3713
|
+
component: Ln,
|
|
3714
|
+
...Fn
|
|
3654
3715
|
}, {
|
|
3655
|
-
component:
|
|
3656
|
-
|
|
3716
|
+
component: Dn,
|
|
3717
|
+
...$n
|
|
3657
3718
|
}, {
|
|
3658
|
-
component:
|
|
3659
|
-
...
|
|
3719
|
+
component: Un,
|
|
3720
|
+
...On
|
|
3660
3721
|
}, {
|
|
3661
|
-
component:
|
|
3662
|
-
...
|
|
3722
|
+
component: qn,
|
|
3723
|
+
..._n
|
|
3663
3724
|
}, {
|
|
3664
|
-
component:
|
|
3665
|
-
...
|
|
3666
|
-
}],
|
|
3667
|
-
component:
|
|
3668
|
-
...en
|
|
3669
|
-
}, {
|
|
3670
|
-
component: zt,
|
|
3725
|
+
component: Mn,
|
|
3726
|
+
...Hn
|
|
3727
|
+
}], Se = () => [{
|
|
3728
|
+
component: rt,
|
|
3671
3729
|
...tn
|
|
3672
3730
|
}, {
|
|
3673
3731
|
component: Kt,
|
|
3674
3732
|
...nn
|
|
3675
3733
|
}, {
|
|
3676
|
-
component:
|
|
3677
|
-
...
|
|
3734
|
+
component: Jt,
|
|
3735
|
+
...an
|
|
3678
3736
|
}, {
|
|
3679
3737
|
component: Yt,
|
|
3680
|
-
...
|
|
3738
|
+
...rn
|
|
3681
3739
|
}, {
|
|
3682
|
-
component:
|
|
3740
|
+
component: Xt,
|
|
3683
3741
|
...gn
|
|
3684
3742
|
}, {
|
|
3685
|
-
component:
|
|
3686
|
-
...
|
|
3743
|
+
component: pn,
|
|
3744
|
+
...bn
|
|
3687
3745
|
}, {
|
|
3688
|
-
component:
|
|
3689
|
-
...
|
|
3746
|
+
component: gi,
|
|
3747
|
+
...yn
|
|
3690
3748
|
}, {
|
|
3691
|
-
component:
|
|
3692
|
-
...
|
|
3749
|
+
component: kn,
|
|
3750
|
+
...Sn
|
|
3693
3751
|
}, {
|
|
3694
|
-
component:
|
|
3695
|
-
...
|
|
3752
|
+
component: hn,
|
|
3753
|
+
...ln
|
|
3754
|
+
}, {
|
|
3755
|
+
component: xn,
|
|
3756
|
+
...vn
|
|
3696
3757
|
}, {
|
|
3697
|
-
component:
|
|
3698
|
-
...
|
|
3699
|
-
}, ...jn()],
|
|
3758
|
+
component: en,
|
|
3759
|
+
...Zt
|
|
3760
|
+
}, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3700
3761
|
function getAndSetVariantId() {
|
|
3701
3762
|
function setCookie(name, value, days) {
|
|
3702
3763
|
let expires = '';
|
|
@@ -3752,7 +3813,7 @@ const jn = () => [{
|
|
|
3752
3813
|
}).join('');
|
|
3753
3814
|
styleEl.innerHTML = newStyleStr;
|
|
3754
3815
|
}
|
|
3755
|
-
}`,
|
|
3816
|
+
}`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3756
3817
|
if (!navigator.cookieEnabled) {
|
|
3757
3818
|
return;
|
|
3758
3819
|
}
|
|
@@ -3786,29 +3847,29 @@ const jn = () => [{
|
|
|
3786
3847
|
thisScriptEl?.remove();
|
|
3787
3848
|
}
|
|
3788
3849
|
return;
|
|
3789
|
-
}`,
|
|
3850
|
+
}`, He = "builderIoAbTest", Me = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3790
3851
|
...t,
|
|
3791
3852
|
testVariationId: t.id,
|
|
3792
3853
|
id: e == null ? void 0 : e.id
|
|
3793
|
-
})),
|
|
3854
|
+
})), Jn = ({
|
|
3794
3855
|
canTrack: e,
|
|
3795
3856
|
content: t
|
|
3796
|
-
}) => !(!(z(t).length > 0) || !e || L()),
|
|
3797
|
-
window.${qe} = ${Mn}
|
|
3857
|
+
}) => !(!(z(t).length > 0) || !e || L()), Gn = (e) => e === "react" || e === "reactNative", je = Gn(F), Qn = () => `
|
|
3798
3858
|
window.${He} = ${zn}
|
|
3799
|
-
|
|
3800
|
-
|
|
3859
|
+
window.${Me} = ${Kn}
|
|
3860
|
+
`, Yn = (e, t) => `
|
|
3861
|
+
window.${He}(
|
|
3801
3862
|
"${t}",${JSON.stringify(e)}, ${je}
|
|
3802
|
-
)`,
|
|
3863
|
+
)`, Xn = ({
|
|
3803
3864
|
contentId: e,
|
|
3804
3865
|
variationId: t
|
|
3805
|
-
}) => `window.${
|
|
3866
|
+
}) => `window.${Me}(
|
|
3806
3867
|
"${t}", "${e}", ${je}
|
|
3807
3868
|
)`;
|
|
3808
|
-
function
|
|
3869
|
+
function ke(e) {
|
|
3809
3870
|
return Math.round(e * 1e3) / 1e3;
|
|
3810
3871
|
}
|
|
3811
|
-
const
|
|
3872
|
+
const Zn = (e, t, n = !0) => {
|
|
3812
3873
|
if (!(e instanceof HTMLElement))
|
|
3813
3874
|
return null;
|
|
3814
3875
|
let i = n ? e : e.parentElement;
|
|
@@ -3819,35 +3880,35 @@ const Xn = (e, t, n = !0) => {
|
|
|
3819
3880
|
return i;
|
|
3820
3881
|
} while (i = i.parentElement);
|
|
3821
3882
|
return null;
|
|
3822
|
-
},
|
|
3883
|
+
}, ei = (e) => Zn(e, (t) => {
|
|
3823
3884
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3824
3885
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3825
|
-
}),
|
|
3886
|
+
}), Ce = ({
|
|
3826
3887
|
event: e,
|
|
3827
3888
|
target: t
|
|
3828
3889
|
}) => {
|
|
3829
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r =
|
|
3890
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = ke(i / n.width), o = ke(a / n.height);
|
|
3830
3891
|
return {
|
|
3831
3892
|
x: r,
|
|
3832
3893
|
y: o
|
|
3833
3894
|
};
|
|
3834
|
-
},
|
|
3835
|
-
const t = e.target, n = t &&
|
|
3895
|
+
}, ti = (e) => {
|
|
3896
|
+
const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3836
3897
|
return {
|
|
3837
3898
|
targetBuilderElement: i || void 0,
|
|
3838
3899
|
metadata: {
|
|
3839
|
-
targetOffset: t ?
|
|
3900
|
+
targetOffset: t ? Ce({
|
|
3840
3901
|
event: e,
|
|
3841
3902
|
target: t
|
|
3842
3903
|
}) : void 0,
|
|
3843
|
-
builderTargetOffset: n ?
|
|
3904
|
+
builderTargetOffset: n ? Ce({
|
|
3844
3905
|
event: e,
|
|
3845
3906
|
target: n
|
|
3846
3907
|
}) : void 0,
|
|
3847
3908
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3848
3909
|
}
|
|
3849
3910
|
};
|
|
3850
|
-
},
|
|
3911
|
+
}, ni = ["svelte", "qwik", "vue"], Te = () => ni.includes(F) && (W() || G()), ii = (e) => {
|
|
3851
3912
|
var r, o;
|
|
3852
3913
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3853
3914
|
let a = "";
|
|
@@ -3873,15 +3934,15 @@ font-weight: ${l};
|
|
|
3873
3934
|
`.trim());
|
|
3874
3935
|
}
|
|
3875
3936
|
return a;
|
|
3876
|
-
},
|
|
3937
|
+
}, ai = ({
|
|
3877
3938
|
customFonts: e
|
|
3878
3939
|
}) => {
|
|
3879
3940
|
var t;
|
|
3880
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3881
|
-
},
|
|
3941
|
+
return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3942
|
+
}, oi = ({
|
|
3882
3943
|
cssCode: e,
|
|
3883
3944
|
contentId: t
|
|
3884
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3945
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
|
|
3885
3946
|
.builder-button {
|
|
3886
3947
|
all: unset;
|
|
3887
3948
|
}
|
|
@@ -3898,39 +3959,39 @@ font-weight: ${l};
|
|
|
3898
3959
|
text-align: inherit;
|
|
3899
3960
|
font-family: inherit;
|
|
3900
3961
|
}
|
|
3901
|
-
`,
|
|
3902
|
-
function
|
|
3903
|
-
var
|
|
3962
|
+
`, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
|
|
3963
|
+
function ci(e) {
|
|
3964
|
+
var S, C, V;
|
|
3904
3965
|
const t = D(null);
|
|
3905
|
-
function n(
|
|
3966
|
+
function n(w) {
|
|
3906
3967
|
var m, p;
|
|
3907
|
-
const
|
|
3968
|
+
const k = {
|
|
3908
3969
|
...e.builderContextSignal.rootState,
|
|
3909
|
-
...
|
|
3970
|
+
...w
|
|
3910
3971
|
};
|
|
3911
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
3912
|
-
...
|
|
3913
|
-
rootState:
|
|
3972
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, k) : e.setBuilderContextSignal((I) => ({
|
|
3973
|
+
...I,
|
|
3974
|
+
rootState: k
|
|
3914
3975
|
}));
|
|
3915
3976
|
}
|
|
3916
|
-
function i(
|
|
3917
|
-
var m, p,
|
|
3918
|
-
const
|
|
3977
|
+
function i(w) {
|
|
3978
|
+
var m, p, I, T, P;
|
|
3979
|
+
const k = {
|
|
3919
3980
|
...e.builderContextSignal.content,
|
|
3920
|
-
...
|
|
3981
|
+
...w,
|
|
3921
3982
|
data: {
|
|
3922
3983
|
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
3923
|
-
...
|
|
3984
|
+
...w == null ? void 0 : w.data
|
|
3924
3985
|
},
|
|
3925
3986
|
meta: {
|
|
3926
3987
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3927
|
-
...
|
|
3928
|
-
breakpoints: ((
|
|
3988
|
+
...w == null ? void 0 : w.meta,
|
|
3989
|
+
breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((P = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints)
|
|
3929
3990
|
}
|
|
3930
3991
|
};
|
|
3931
|
-
e.setBuilderContextSignal((
|
|
3932
|
-
...
|
|
3933
|
-
content:
|
|
3992
|
+
e.setBuilderContextSignal((A) => ({
|
|
3993
|
+
...A,
|
|
3994
|
+
content: k
|
|
3934
3995
|
}));
|
|
3935
3996
|
}
|
|
3936
3997
|
function a() {
|
|
@@ -3942,59 +4003,59 @@ function si(e) {
|
|
|
3942
4003
|
const [r, o] = E(
|
|
3943
4004
|
() => e.contentWrapper || "div"
|
|
3944
4005
|
);
|
|
3945
|
-
function l(
|
|
3946
|
-
return
|
|
4006
|
+
function l(w) {
|
|
4007
|
+
return Ge({
|
|
3947
4008
|
model: e.model,
|
|
3948
4009
|
trustedHosts: e.trustedHosts,
|
|
3949
4010
|
callbacks: {
|
|
3950
|
-
configureSdk: (
|
|
3951
|
-
var
|
|
3952
|
-
const { breakpoints: m, contentId: p } =
|
|
3953
|
-
!p || p !== ((
|
|
4011
|
+
configureSdk: (k) => {
|
|
4012
|
+
var I;
|
|
4013
|
+
const { breakpoints: m, contentId: p } = k;
|
|
4014
|
+
!p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
|
|
3954
4015
|
meta: {
|
|
3955
4016
|
breakpoints: m
|
|
3956
4017
|
}
|
|
3957
4018
|
});
|
|
3958
4019
|
},
|
|
3959
|
-
animation: (
|
|
3960
|
-
|
|
4020
|
+
animation: (k) => {
|
|
4021
|
+
De(k);
|
|
3961
4022
|
},
|
|
3962
|
-
contentUpdate: (
|
|
3963
|
-
i(
|
|
4023
|
+
contentUpdate: (k) => {
|
|
4024
|
+
i(k);
|
|
3964
4025
|
}
|
|
3965
4026
|
}
|
|
3966
|
-
})(
|
|
4027
|
+
})(w);
|
|
3967
4028
|
}
|
|
3968
|
-
const [
|
|
3969
|
-
function
|
|
3970
|
-
var
|
|
4029
|
+
const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
|
|
4030
|
+
function f(w) {
|
|
4031
|
+
var k, m;
|
|
3971
4032
|
if (e.builderContextSignal.content) {
|
|
3972
|
-
const p = (
|
|
3973
|
-
|
|
4033
|
+
const p = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4034
|
+
he({
|
|
3974
4035
|
apiHost: e.apiHost,
|
|
3975
4036
|
type: "click",
|
|
3976
|
-
canTrack:
|
|
3977
|
-
contentId:
|
|
4037
|
+
canTrack: H(e.canTrack),
|
|
4038
|
+
contentId: I,
|
|
3978
4039
|
apiKey: e.apiKey,
|
|
3979
|
-
variationId: p !==
|
|
3980
|
-
...
|
|
3981
|
-
unique: !
|
|
4040
|
+
variationId: p !== I ? p : void 0,
|
|
4041
|
+
...ti(w),
|
|
4042
|
+
unique: !u
|
|
3982
4043
|
});
|
|
3983
4044
|
}
|
|
3984
|
-
|
|
4045
|
+
u || v(!0);
|
|
3985
4046
|
}
|
|
3986
|
-
function
|
|
3987
|
-
var
|
|
3988
|
-
const
|
|
3989
|
-
Object.entries(
|
|
3990
|
-
if (!
|
|
4047
|
+
function g() {
|
|
4048
|
+
var k, m, p;
|
|
4049
|
+
const w = (p = (m = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4050
|
+
Object.entries(w).forEach(([I, T]) => {
|
|
4051
|
+
if (!T || h[I] || d[I] && !W())
|
|
3991
4052
|
return;
|
|
3992
|
-
h[
|
|
3993
|
-
const
|
|
4053
|
+
h[I] = !0;
|
|
4054
|
+
const P = T.replace(
|
|
3994
4055
|
/{{([^}]+)}}/g,
|
|
3995
|
-
(
|
|
4056
|
+
(A, U) => String(
|
|
3996
4057
|
O({
|
|
3997
|
-
code:
|
|
4058
|
+
code: U,
|
|
3998
4059
|
context: e.context || {},
|
|
3999
4060
|
localState: void 0,
|
|
4000
4061
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4002,24 +4063,24 @@ function si(e) {
|
|
|
4002
4063
|
})
|
|
4003
4064
|
)
|
|
4004
4065
|
);
|
|
4005
|
-
|
|
4066
|
+
Ie(P), fetch(P).then((A) => A.json()).then((A) => {
|
|
4006
4067
|
n({
|
|
4007
|
-
[
|
|
4008
|
-
}),
|
|
4009
|
-
}).catch((
|
|
4010
|
-
console.error("error fetching dynamic data",
|
|
4068
|
+
[I]: A
|
|
4069
|
+
}), d[I] = !0;
|
|
4070
|
+
}).catch((A) => {
|
|
4071
|
+
console.error("error fetching dynamic data", T, A);
|
|
4011
4072
|
}).finally(() => {
|
|
4012
|
-
h[
|
|
4073
|
+
h[I] = !1;
|
|
4013
4074
|
});
|
|
4014
4075
|
});
|
|
4015
4076
|
}
|
|
4016
|
-
function
|
|
4077
|
+
function x() {
|
|
4017
4078
|
W() && window.dispatchEvent(
|
|
4018
4079
|
new CustomEvent(
|
|
4019
4080
|
"builder:component:stateChange",
|
|
4020
4081
|
{
|
|
4021
4082
|
detail: {
|
|
4022
|
-
state:
|
|
4083
|
+
state: le(e.builderContextSignal.rootState),
|
|
4023
4084
|
ref: {
|
|
4024
4085
|
name: e.model
|
|
4025
4086
|
}
|
|
@@ -4028,11 +4089,11 @@ function si(e) {
|
|
|
4028
4089
|
)
|
|
4029
4090
|
);
|
|
4030
4091
|
}
|
|
4031
|
-
const
|
|
4032
|
-
return
|
|
4033
|
-
var
|
|
4092
|
+
const b = D(!1);
|
|
4093
|
+
return b.current || (g(), x(), b.current = !0), B(() => {
|
|
4094
|
+
var w, k, m, p;
|
|
4034
4095
|
if (L()) {
|
|
4035
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4096
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), ze(), Ke({
|
|
4036
4097
|
...e.locale ? {
|
|
4037
4098
|
locale: e.locale
|
|
4038
4099
|
} : {},
|
|
@@ -4041,74 +4102,76 @@ function si(e) {
|
|
|
4041
4102
|
} : {},
|
|
4042
4103
|
...e.trustedHosts ? {
|
|
4043
4104
|
trustedHosts: e.trustedHosts
|
|
4044
|
-
} : {}
|
|
4105
|
+
} : {},
|
|
4106
|
+
modelName: (w = e.model) != null ? w : "",
|
|
4107
|
+
apiKey: e.apiKey
|
|
4045
4108
|
}), Object.values(
|
|
4046
4109
|
e.builderContextSignal.componentInfos
|
|
4047
|
-
).forEach((
|
|
4048
|
-
var
|
|
4049
|
-
if (!
|
|
4050
|
-
const
|
|
4051
|
-
(
|
|
4110
|
+
).forEach((T) => {
|
|
4111
|
+
var P, A;
|
|
4112
|
+
if (!((P = T.models) != null && P.length) || T.models.includes(e.model)) {
|
|
4113
|
+
const U = Je(T);
|
|
4114
|
+
(A = window.parent) == null || A.postMessage(U, "*");
|
|
4052
4115
|
}
|
|
4053
4116
|
}), window.addEventListener(
|
|
4054
4117
|
"builder:component:stateChangeListenerActivated",
|
|
4055
|
-
|
|
4056
|
-
)), e.builderContextSignal.content &&
|
|
4057
|
-
const
|
|
4058
|
-
|
|
4118
|
+
x
|
|
4119
|
+
)), e.builderContextSignal.content && H(e.canTrack)) {
|
|
4120
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, P = (m = e.builderContextSignal.content) == null ? void 0 : m.id, A = e.apiKey;
|
|
4121
|
+
he({
|
|
4059
4122
|
apiHost: e.apiHost,
|
|
4060
4123
|
type: "impression",
|
|
4061
4124
|
canTrack: !0,
|
|
4062
|
-
contentId:
|
|
4063
|
-
apiKey:
|
|
4064
|
-
variationId:
|
|
4125
|
+
contentId: P,
|
|
4126
|
+
apiKey: A,
|
|
4127
|
+
variationId: T !== P ? T : void 0
|
|
4065
4128
|
});
|
|
4066
4129
|
}
|
|
4067
4130
|
if (G() && !W()) {
|
|
4068
|
-
const
|
|
4069
|
-
`builder.overrides.${
|
|
4070
|
-
),
|
|
4071
|
-
(
|
|
4072
|
-
model: e.model
|
|
4131
|
+
const T = new URL(location.href).searchParams, P = T.get("builder.preview"), A = T.get(
|
|
4132
|
+
`builder.overrides.${P}`
|
|
4133
|
+
), U = T.get("apiKey") || T.get("builder.space");
|
|
4134
|
+
(P === "BUILDER_STUDIO" || P === e.model && U === e.apiKey && (!e.content || A === e.content.id)) && Ee({
|
|
4135
|
+
model: e.model,
|
|
4073
4136
|
apiKey: e.apiKey,
|
|
4074
4137
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4075
|
-
...
|
|
4138
|
+
...P === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
|
|
4076
4139
|
query: {
|
|
4077
4140
|
id: e.context.symbolId
|
|
4078
4141
|
}
|
|
4079
4142
|
} : {}
|
|
4080
|
-
}).then((
|
|
4081
|
-
|
|
4143
|
+
}).then((me) => {
|
|
4144
|
+
me && i(me);
|
|
4082
4145
|
});
|
|
4083
4146
|
}
|
|
4084
4147
|
}
|
|
4085
|
-
}, []),
|
|
4148
|
+
}, []), B(() => {
|
|
4086
4149
|
e.content && i(e.content);
|
|
4087
|
-
}, [e.content]),
|
|
4088
|
-
|
|
4089
|
-
}, [e.builderContextSignal.rootState]),
|
|
4150
|
+
}, [e.content]), B(() => {
|
|
4151
|
+
x();
|
|
4152
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4090
4153
|
e.data && n(e.data);
|
|
4091
|
-
}, [e.data]),
|
|
4154
|
+
}, [e.data]), B(() => {
|
|
4092
4155
|
e.locale && n({
|
|
4093
4156
|
locale: e.locale
|
|
4094
4157
|
});
|
|
4095
|
-
}, [e.locale]),
|
|
4158
|
+
}, [e.locale]), B(() => () => {
|
|
4096
4159
|
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4097
4160
|
"builder:component:stateChangeListenerActivated",
|
|
4098
|
-
|
|
4161
|
+
x
|
|
4099
4162
|
));
|
|
4100
|
-
}, []), /* @__PURE__ */ s(
|
|
4163
|
+
}, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Te() ? /* @__PURE__ */ s(
|
|
4101
4164
|
r,
|
|
4102
4165
|
{
|
|
4103
4166
|
ref: t,
|
|
4104
|
-
onClick: (
|
|
4105
|
-
"builder-content-id": (
|
|
4167
|
+
onClick: (w) => f(w),
|
|
4168
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4106
4169
|
"builder-model": e.model,
|
|
4107
|
-
className:
|
|
4108
|
-
((
|
|
4170
|
+
className: si(
|
|
4171
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
4109
4172
|
),
|
|
4110
4173
|
style: {
|
|
4111
|
-
display: !e.builderContextSignal.content &&
|
|
4174
|
+
display: !e.builderContextSignal.content && Te() ? "none" : void 0
|
|
4112
4175
|
},
|
|
4113
4176
|
...a(),
|
|
4114
4177
|
...e.contentWrapperProps,
|
|
@@ -4116,21 +4179,21 @@ function si(e) {
|
|
|
4116
4179
|
}
|
|
4117
4180
|
) : null });
|
|
4118
4181
|
}
|
|
4119
|
-
function
|
|
4182
|
+
function ui(e) {
|
|
4120
4183
|
const [t, n] = E(
|
|
4121
4184
|
() => `
|
|
4122
|
-
${
|
|
4185
|
+
${oi({
|
|
4123
4186
|
cssCode: e.cssCode,
|
|
4124
4187
|
contentId: e.contentId
|
|
4125
4188
|
})}
|
|
4126
|
-
${
|
|
4189
|
+
${ai({
|
|
4127
4190
|
customFonts: e.customFonts
|
|
4128
4191
|
})}
|
|
4129
|
-
${
|
|
4192
|
+
${li(e.isNestedRender)}
|
|
4130
4193
|
`.trim()
|
|
4131
4194
|
);
|
|
4132
4195
|
return /* @__PURE__ */ s(
|
|
4133
|
-
|
|
4196
|
+
j,
|
|
4134
4197
|
{
|
|
4135
4198
|
id: "builderio-content",
|
|
4136
4199
|
styles: t,
|
|
@@ -4138,15 +4201,15 @@ ${ri(e.isNestedRender)}
|
|
|
4138
4201
|
}
|
|
4139
4202
|
);
|
|
4140
4203
|
}
|
|
4141
|
-
const
|
|
4204
|
+
const di = ({
|
|
4142
4205
|
content: e,
|
|
4143
4206
|
data: t,
|
|
4144
4207
|
locale: n
|
|
4145
4208
|
}) => {
|
|
4146
4209
|
var r, o, l;
|
|
4147
4210
|
const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
4148
|
-
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((
|
|
4149
|
-
|
|
4211
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((d) => {
|
|
4212
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4150
4213
|
}), {
|
|
4151
4214
|
...i,
|
|
4152
4215
|
...a,
|
|
@@ -4155,7 +4218,7 @@ const ui = ({
|
|
|
4155
4218
|
locale: n
|
|
4156
4219
|
} : {}
|
|
4157
4220
|
};
|
|
4158
|
-
},
|
|
4221
|
+
}, mi = ({
|
|
4159
4222
|
content: e,
|
|
4160
4223
|
data: t
|
|
4161
4224
|
}) => e ? {
|
|
@@ -4166,46 +4229,46 @@ const ui = ({
|
|
|
4166
4229
|
},
|
|
4167
4230
|
meta: e == null ? void 0 : e.meta
|
|
4168
4231
|
} : void 0;
|
|
4169
|
-
function
|
|
4170
|
-
var c, h,
|
|
4232
|
+
function we(e) {
|
|
4233
|
+
var c, h, y, u, v, f, g, x, b;
|
|
4171
4234
|
const [t, n] = E(
|
|
4172
4235
|
() => {
|
|
4173
|
-
var
|
|
4174
|
-
return
|
|
4236
|
+
var S, C;
|
|
4237
|
+
return Xn({
|
|
4175
4238
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4176
|
-
variationId: (
|
|
4239
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4177
4240
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4178
|
-
contentId: (
|
|
4241
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4179
4242
|
});
|
|
4180
4243
|
}
|
|
4181
4244
|
);
|
|
4182
|
-
function i(
|
|
4183
|
-
l((
|
|
4184
|
-
...
|
|
4185
|
-
rootState:
|
|
4245
|
+
function i(S) {
|
|
4246
|
+
l((C) => ({
|
|
4247
|
+
...C,
|
|
4248
|
+
rootState: S
|
|
4186
4249
|
}));
|
|
4187
4250
|
}
|
|
4188
4251
|
const [a, r] = E(
|
|
4189
4252
|
() => [
|
|
4190
|
-
...
|
|
4253
|
+
...Se(),
|
|
4191
4254
|
...e.customComponents || []
|
|
4192
4255
|
].reduce(
|
|
4193
|
-
(
|
|
4194
|
-
...
|
|
4195
|
-
[
|
|
4196
|
-
component:
|
|
4197
|
-
...
|
|
4256
|
+
(S, { component: C, ...V }) => ({
|
|
4257
|
+
...S,
|
|
4258
|
+
[V.name]: {
|
|
4259
|
+
component: C,
|
|
4260
|
+
...ge(V)
|
|
4198
4261
|
}
|
|
4199
4262
|
}),
|
|
4200
4263
|
{}
|
|
4201
4264
|
)
|
|
4202
4265
|
), [o, l] = E(() => ({
|
|
4203
|
-
content:
|
|
4266
|
+
content: mi({
|
|
4204
4267
|
content: e.content,
|
|
4205
4268
|
data: e.data
|
|
4206
4269
|
}),
|
|
4207
4270
|
localState: void 0,
|
|
4208
|
-
rootState:
|
|
4271
|
+
rootState: di({
|
|
4209
4272
|
content: e.content,
|
|
4210
4273
|
data: e.data,
|
|
4211
4274
|
locale: e.locale
|
|
@@ -4216,12 +4279,12 @@ function Te(e) {
|
|
|
4216
4279
|
apiKey: e.apiKey,
|
|
4217
4280
|
apiVersion: e.apiVersion,
|
|
4218
4281
|
componentInfos: [
|
|
4219
|
-
...
|
|
4282
|
+
...Se(),
|
|
4220
4283
|
...e.customComponents || []
|
|
4221
4284
|
].reduce(
|
|
4222
|
-
(
|
|
4223
|
-
...
|
|
4224
|
-
[
|
|
4285
|
+
(S, { component: C, ...V }) => ({
|
|
4286
|
+
...S,
|
|
4287
|
+
[V.name]: ge(V)
|
|
4225
4288
|
}),
|
|
4226
4289
|
{}
|
|
4227
4290
|
),
|
|
@@ -4229,32 +4292,32 @@ function Te(e) {
|
|
|
4229
4292
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4230
4293
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4231
4294
|
nonce: e.nonce || "",
|
|
4232
|
-
model: e.model
|
|
4233
|
-
})),
|
|
4234
|
-
if (!
|
|
4235
|
-
e.apiKey ||
|
|
4295
|
+
model: e.model
|
|
4296
|
+
})), d = D(!1);
|
|
4297
|
+
if (!d.current) {
|
|
4298
|
+
e.apiKey || re.error(
|
|
4236
4299
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4237
4300
|
);
|
|
4238
|
-
const
|
|
4239
|
-
|
|
4240
|
-
code:
|
|
4301
|
+
const S = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4302
|
+
S && O({
|
|
4303
|
+
code: S,
|
|
4241
4304
|
context: e.context || {},
|
|
4242
4305
|
localState: void 0,
|
|
4243
4306
|
rootState: o.rootState,
|
|
4244
|
-
rootSetState: (
|
|
4245
|
-
Object.assign(o.rootState,
|
|
4307
|
+
rootSetState: (C) => {
|
|
4308
|
+
Object.assign(o.rootState, C);
|
|
4246
4309
|
},
|
|
4247
4310
|
isExpression: !1
|
|
4248
|
-
}),
|
|
4311
|
+
}), d.current = !0;
|
|
4249
4312
|
}
|
|
4250
4313
|
return /* @__PURE__ */ s(
|
|
4251
|
-
|
|
4314
|
+
Be.Provider,
|
|
4252
4315
|
{
|
|
4253
4316
|
value: {
|
|
4254
4317
|
registeredComponents: a
|
|
4255
4318
|
},
|
|
4256
|
-
children: /* @__PURE__ */
|
|
4257
|
-
|
|
4319
|
+
children: /* @__PURE__ */ N(
|
|
4320
|
+
ci,
|
|
4258
4321
|
{
|
|
4259
4322
|
apiHost: e.apiHost,
|
|
4260
4323
|
nonce: e.nonce,
|
|
@@ -4283,19 +4346,19 @@ function Te(e) {
|
|
|
4283
4346
|
}
|
|
4284
4347
|
) : null,
|
|
4285
4348
|
/* @__PURE__ */ s(
|
|
4286
|
-
|
|
4349
|
+
ui,
|
|
4287
4350
|
{
|
|
4288
4351
|
nonce: e.nonce || "",
|
|
4289
4352
|
isNestedRender: e.isNestedRender,
|
|
4290
|
-
contentId: (
|
|
4291
|
-
cssCode: (
|
|
4292
|
-
customFonts: (
|
|
4353
|
+
contentId: (y = o.content) == null ? void 0 : y.id,
|
|
4354
|
+
cssCode: (v = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
|
|
4355
|
+
customFonts: (g = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
|
|
4293
4356
|
}
|
|
4294
4357
|
),
|
|
4295
4358
|
/* @__PURE__ */ s(
|
|
4296
4359
|
$,
|
|
4297
4360
|
{
|
|
4298
|
-
blocks: (
|
|
4361
|
+
blocks: (b = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
4299
4362
|
context: o,
|
|
4300
4363
|
registeredComponents: a,
|
|
4301
4364
|
linkComponent: e.linkComponent
|
|
@@ -4307,20 +4370,20 @@ function Te(e) {
|
|
|
4307
4370
|
}
|
|
4308
4371
|
);
|
|
4309
4372
|
}
|
|
4310
|
-
function
|
|
4373
|
+
function fi(e) {
|
|
4311
4374
|
var o;
|
|
4312
4375
|
const [t, n] = E(
|
|
4313
|
-
() =>
|
|
4314
|
-
canTrack:
|
|
4376
|
+
() => Jn({
|
|
4377
|
+
canTrack: H(e.canTrack),
|
|
4315
4378
|
content: e.content
|
|
4316
4379
|
})
|
|
4317
4380
|
);
|
|
4318
4381
|
function i() {
|
|
4319
4382
|
var l;
|
|
4320
|
-
return
|
|
4321
|
-
z(e.content).map((
|
|
4322
|
-
id:
|
|
4323
|
-
testRatio:
|
|
4383
|
+
return Yn(
|
|
4384
|
+
z(e.content).map((d) => ({
|
|
4385
|
+
id: d.testVariationId,
|
|
4386
|
+
testRatio: d.testRatio
|
|
4324
4387
|
})),
|
|
4325
4388
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4326
4389
|
);
|
|
@@ -4333,24 +4396,24 @@ function mi(e) {
|
|
|
4333
4396
|
return t ? {
|
|
4334
4397
|
...e.content,
|
|
4335
4398
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4336
|
-
} :
|
|
4399
|
+
} : Qe({
|
|
4337
4400
|
item: e.content,
|
|
4338
|
-
canTrack:
|
|
4401
|
+
canTrack: H(e.canTrack)
|
|
4339
4402
|
});
|
|
4340
4403
|
}
|
|
4341
|
-
return
|
|
4342
|
-
}, []), /* @__PURE__ */
|
|
4404
|
+
return B(() => {
|
|
4405
|
+
}, []), /* @__PURE__ */ N(R, { children: [
|
|
4343
4406
|
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
|
|
4344
4407
|
J,
|
|
4345
4408
|
{
|
|
4346
4409
|
id: "builderio-init-variants-fns",
|
|
4347
|
-
scriptStr:
|
|
4410
|
+
scriptStr: Qn(),
|
|
4348
4411
|
nonce: e.nonce || ""
|
|
4349
4412
|
}
|
|
4350
4413
|
) : null,
|
|
4351
|
-
t ? /* @__PURE__ */
|
|
4414
|
+
t ? /* @__PURE__ */ N(R, { children: [
|
|
4352
4415
|
/* @__PURE__ */ s(
|
|
4353
|
-
|
|
4416
|
+
j,
|
|
4354
4417
|
{
|
|
4355
4418
|
id: "builderio-variants",
|
|
4356
4419
|
styles: a(),
|
|
@@ -4366,7 +4429,7 @@ function mi(e) {
|
|
|
4366
4429
|
}
|
|
4367
4430
|
),
|
|
4368
4431
|
(o = z(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4369
|
-
|
|
4432
|
+
we,
|
|
4370
4433
|
{
|
|
4371
4434
|
apiHost: e.apiHost,
|
|
4372
4435
|
isNestedRender: e.isNestedRender,
|
|
@@ -4394,7 +4457,7 @@ function mi(e) {
|
|
|
4394
4457
|
))
|
|
4395
4458
|
] }) : null,
|
|
4396
4459
|
/* @__PURE__ */ s(
|
|
4397
|
-
|
|
4460
|
+
we,
|
|
4398
4461
|
{
|
|
4399
4462
|
apiHost: e.apiHost,
|
|
4400
4463
|
nonce: e.nonce,
|
|
@@ -4421,13 +4484,13 @@ function mi(e) {
|
|
|
4421
4484
|
)
|
|
4422
4485
|
] });
|
|
4423
4486
|
}
|
|
4424
|
-
const
|
|
4487
|
+
const hi = async ({
|
|
4425
4488
|
builderContextValue: e,
|
|
4426
4489
|
symbol: t
|
|
4427
4490
|
}) => {
|
|
4428
4491
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4429
4492
|
(e != null && e.apiKey))
|
|
4430
|
-
return
|
|
4493
|
+
return Ee({
|
|
4431
4494
|
model: t.model,
|
|
4432
4495
|
apiKey: e.apiKey,
|
|
4433
4496
|
apiVersion: e.apiVersion,
|
|
@@ -4437,11 +4500,11 @@ const fi = async ({
|
|
|
4437
4500
|
}
|
|
4438
4501
|
}
|
|
4439
4502
|
}).catch((n) => {
|
|
4440
|
-
|
|
4503
|
+
re.error("Could not fetch symbol content: ", n);
|
|
4441
4504
|
});
|
|
4442
4505
|
};
|
|
4443
|
-
function
|
|
4444
|
-
var l,
|
|
4506
|
+
function gi(e) {
|
|
4507
|
+
var l, d, c, h, y;
|
|
4445
4508
|
function t() {
|
|
4446
4509
|
return "div";
|
|
4447
4510
|
}
|
|
@@ -4449,31 +4512,31 @@ function hi(e) {
|
|
|
4449
4512
|
return "div";
|
|
4450
4513
|
}
|
|
4451
4514
|
function i() {
|
|
4452
|
-
var
|
|
4515
|
+
var u, v;
|
|
4453
4516
|
return [
|
|
4454
|
-
e.attributes[
|
|
4517
|
+
e.attributes[M()],
|
|
4455
4518
|
"builder-symbol",
|
|
4456
|
-
(
|
|
4457
|
-
(
|
|
4519
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4520
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4458
4521
|
].filter(Boolean).join(" ");
|
|
4459
4522
|
}
|
|
4460
4523
|
const [a, r] = E(() => {
|
|
4461
|
-
var
|
|
4462
|
-
return (
|
|
4524
|
+
var u;
|
|
4525
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4463
4526
|
});
|
|
4464
4527
|
function o() {
|
|
4465
|
-
a ||
|
|
4528
|
+
a || hi({
|
|
4466
4529
|
symbol: e.symbol,
|
|
4467
4530
|
builderContextValue: e.builderContext
|
|
4468
|
-
}).then((
|
|
4469
|
-
|
|
4531
|
+
}).then((u) => {
|
|
4532
|
+
u && r(u);
|
|
4470
4533
|
});
|
|
4471
4534
|
}
|
|
4472
|
-
return
|
|
4473
|
-
}, []),
|
|
4535
|
+
return B(() => {
|
|
4536
|
+
}, []), B(() => {
|
|
4474
4537
|
o();
|
|
4475
4538
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4476
|
-
|
|
4539
|
+
fi,
|
|
4477
4540
|
{
|
|
4478
4541
|
nonce: e.builderContext.nonce,
|
|
4479
4542
|
isNestedRender: !0,
|
|
@@ -4485,12 +4548,12 @@ function hi(e) {
|
|
|
4485
4548
|
},
|
|
4486
4549
|
customComponents: Object.values(e.builderComponents),
|
|
4487
4550
|
data: {
|
|
4488
|
-
...(
|
|
4551
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4489
4552
|
...e.builderContext.localState,
|
|
4490
4553
|
...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
|
|
4491
4554
|
},
|
|
4492
4555
|
canTrack: e.builderContext.canTrack,
|
|
4493
|
-
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4556
|
+
model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
|
|
4494
4557
|
content: a,
|
|
4495
4558
|
linkComponent: e.builderLinkComponent,
|
|
4496
4559
|
blocksWrapper: t(),
|
|
@@ -4500,15 +4563,15 @@ function hi(e) {
|
|
|
4500
4563
|
}
|
|
4501
4564
|
export {
|
|
4502
4565
|
$ as Blocks,
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4566
|
+
ce as BuilderContext,
|
|
4567
|
+
rt as Button,
|
|
4568
|
+
Kt as Columns,
|
|
4569
|
+
fi as Content,
|
|
4570
|
+
Jt as Fragment,
|
|
4571
|
+
Yt as Image,
|
|
4572
|
+
Xt as Section,
|
|
4573
|
+
gi as Symbol,
|
|
4574
|
+
kn as Text,
|
|
4575
|
+
Mn as Video,
|
|
4576
|
+
Ci as setClientUserAttributes
|
|
4514
4577
|
};
|