@builder.io/sdk-react 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +40 -37
- package/lib/browser/blocks-exports.mjs +859 -842
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-0e0758cb.cjs → server-entry-c40e781d.cjs} +2 -2
- package/lib/{node/server-entry-a017e97a.js → browser/server-entry-e6ae7704.js} +2 -2
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-02a74a7b.cjs → accordion-8934ef4b.cjs} +1 -1
- package/lib/edge/{accordion-46e5b47a.js → accordion-e657c96d.js} +1 -1
- package/lib/edge/{blocks-27f4c960.js → blocks-513223a7.js} +2 -2
- package/lib/edge/{blocks-43b7cd64.cjs → blocks-a6ffbf92.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-c26a8cc8.js → button-3522aac2.js} +2 -2
- package/lib/edge/{button-b1f2e20e.cjs → button-49563e3b.cjs} +1 -1
- package/lib/edge/{columns-5a3e9ac8.cjs → columns-092b6fac.cjs} +1 -1
- package/lib/edge/{columns-9a6cd1b4.js → columns-ea0b3b30.js} +3 -3
- package/lib/edge/{content-variants-3085ec74.js → content-variants-6c1e3b13.js} +316 -307
- package/lib/edge/content-variants-75ff40ca.cjs +137 -0
- package/lib/edge/custom-code-1a43bbd7.js +52 -0
- package/lib/edge/custom-code-ae3262be.cjs +1 -0
- package/lib/edge/embed-106f0066.js +38 -0
- package/lib/edge/embed-8d302933.cjs +1 -0
- package/lib/edge/{form-f2aa1c12.js → form-0c0d5bf5.js} +3 -3
- package/lib/edge/{form-bf3ca65d.cjs → form-46e4d997.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-7cdcaf94.cjs → get-class-prop-name-dad1ee7e.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-e41a3976.js → get-class-prop-name-e44df0c8.js} +1 -1
- package/lib/edge/{img-2a060e61.js → img-8bdeb666.js} +1 -1
- package/lib/edge/{img-2c718c5f.cjs → img-e49acb58.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-213f973c.cjs → input-92aaa4f2.cjs} +1 -1
- package/lib/edge/{input-f270ae3b.js → input-d6338de6.js} +1 -1
- package/lib/edge/{personalization-container-b85b14c3.js → personalization-container-1307218b.js} +4 -4
- package/lib/edge/{personalization-container-b03bc073.cjs → personalization-container-965bec51.cjs} +1 -1
- package/lib/edge/{select-e12e1a87.js → select-1538b41a.js} +1 -1
- package/lib/edge/{select-d6ff55b2.cjs → select-5ce728b4.cjs} +1 -1
- package/lib/edge/{server-entry-b94c45af.js → server-entry-2e94ad2c.js} +2 -1
- package/lib/edge/{server-entry-d0313f00.cjs → server-entry-46e686b9.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-5ee0ac5d.cjs → slot-3b6aa7ec.cjs} +1 -1
- package/lib/edge/{slot-2670ac48.js → slot-516f176d.js} +3 -3
- package/lib/edge/{symbol-a0b2e083.js → symbol-3b2e7ebf.js} +2 -2
- package/lib/edge/{symbol-7e58faf5.cjs → symbol-cd10b6f0.cjs} +1 -1
- package/lib/edge/{tabs-1f475bd4.cjs → tabs-cec51291.cjs} +1 -1
- package/lib/edge/{tabs-931291c4.js → tabs-f0945019.js} +3 -3
- package/lib/node/blocks-exports.cjs +40 -37
- package/lib/node/blocks-exports.mjs +831 -814
- 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-24943b12.cjs → server-entry-6b05381c.cjs} +2 -2
- package/lib/{browser/server-entry-403d3877.js → node/server-entry-c1000f54.js} +3 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-0a7e7bf0.js → setIvm-011d6eb2.js} +1 -1
- package/lib/node/{setIvm-dcd69a69.cjs → setIvm-4ae0308c.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-0ca8d8b1.cjs → should-force-browser-runtime-in-node-5d513614.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-c51ac820.js → should-force-browser-runtime-in-node-abf8d0a7.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/content-variants-eff73ca9.cjs +0 -134
- package/lib/edge/custom-code-7786788e.js +0 -43
- package/lib/edge/custom-code-8119ea3f.cjs +0 -1
- package/lib/edge/embed-32bdd007.cjs +0 -1
- package/lib/edge/embed-5c1bbe12.js +0 -37
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Ye, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-e6ae7704.js";
|
|
3
|
+
import { setClientUserAttributes as Ei } from "./server-entry-e6ae7704.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
|
+
import * as at from "react";
|
|
6
|
+
import { createContext as Ae, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ne } from "react";
|
|
7
|
+
const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
|
|
8
|
+
function ue(e) {
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: rt(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 }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
switch (
|
|
11
|
+
const z = () => {
|
|
12
|
+
switch (L) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
15
15
|
case "rsc":
|
|
@@ -22,11 +22,11 @@ const H = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function lt(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +37,7 @@ function it(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
ue,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function it(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const de = Ae({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = Pe({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), We = Ae({ registeredComponents: {} }), De = (e, t, n) => {
|
|
65
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, st = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,15 +76,15 @@ const se = Pe({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
80
|
-
isEditing:
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
79
|
+
}), ct = () => ({
|
|
80
|
+
isEditing: A(),
|
|
81
|
+
isBrowser: U(),
|
|
82
|
+
isServer: !U(),
|
|
83
|
+
getUserAttributes: () => Ye()
|
|
84
|
+
}), ut = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
86
86
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
87
|
-
function
|
|
87
|
+
function $e({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function Ae({
|
|
|
94
94
|
if (t && a in t)
|
|
95
95
|
return t[a];
|
|
96
96
|
const o = i[a];
|
|
97
|
-
return typeof o == "object" && o !== null ?
|
|
97
|
+
return typeof o == "object" && o !== null ? $e({
|
|
98
98
|
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -109,7 +109,7 @@ function Ae({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const xe = ({
|
|
113
113
|
code: e,
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
@@ -118,11 +118,11 @@ const pe = ({
|
|
|
118
118
|
rootSetState: o,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = st({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: $e({
|
|
126
126
|
rootState: r,
|
|
127
127
|
localState: a,
|
|
128
128
|
rootSetState: o
|
|
@@ -130,25 +130,25 @@ const pe = ({
|
|
|
130
130
|
});
|
|
131
131
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function dt() {
|
|
134
134
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const mt = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
140
|
var a;
|
|
141
|
-
if (!
|
|
141
|
+
if (!dt())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
},
|
|
144
|
+
return t && n && !i ? (e && _.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
+
}, ft = (e) => (U() || mt({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
147
|
+
}), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
|
|
148
148
|
var t, n, i, a, o, r;
|
|
149
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function q({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
@@ -159,17 +159,17 @@ function L({
|
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = bt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return De({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
168
|
const d = {
|
|
169
|
-
code:
|
|
169
|
+
code: ut(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: ct(),
|
|
173
173
|
context: t,
|
|
174
174
|
event: o,
|
|
175
175
|
rootSetState: a,
|
|
@@ -177,28 +177,28 @@ function L({
|
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
181
|
-
} catch (
|
|
182
|
-
|
|
180
|
+
return ft(d);
|
|
181
|
+
} catch (u) {
|
|
182
|
+
_.error("Failed code evaluation: " + u.message, {
|
|
183
183
|
code: e
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function pt(e, t) {
|
|
189
189
|
var n;
|
|
190
190
|
return {
|
|
191
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
192
192
|
...e.options,
|
|
193
|
-
...
|
|
193
|
+
...yt(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const yt = (e, t) => {
|
|
197
197
|
var n, i;
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
200
200
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) =>
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => q({
|
|
202
202
|
code: o,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
@@ -207,13 +207,13 @@ const ht = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function vt(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
214
214
|
return n;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function Y(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
217
217
|
if (e == null || typeof e != "object") {
|
|
218
218
|
t(e, (o) => {
|
|
219
219
|
n !== null && i !== null && (n[i] = o);
|
|
@@ -223,58 +223,58 @@ function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
223
223
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
224
224
|
t(o, (d) => {
|
|
225
225
|
e[r] = d;
|
|
226
|
-
}),
|
|
226
|
+
}), Y(o, t, e, r, a);
|
|
227
227
|
}) : Object.entries(e).forEach(([o, r]) => {
|
|
228
228
|
t(r, (d) => {
|
|
229
229
|
e[o] = d;
|
|
230
|
-
}),
|
|
230
|
+
}), Y(r, t, e, o, a);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Fe(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function xt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
|
-
return
|
|
241
|
-
if (
|
|
240
|
+
return Y(e, (n) => {
|
|
241
|
+
if (Fe(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
247
|
+
function St(e, t) {
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Y(e, (n, i) => {
|
|
249
249
|
var a;
|
|
250
|
-
|
|
250
|
+
Fe(n) && i((a = n[t]) != null ? a : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function kt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && xt((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 = St(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
|
|
258
258
|
if (Object(e) !== e)
|
|
259
259
|
return e;
|
|
260
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
261
261
|
return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function ce(e) {
|
|
264
264
|
if (e === null || typeof e != "object")
|
|
265
265
|
return e;
|
|
266
266
|
if (Array.isArray(e))
|
|
267
|
-
return e.map((n) =>
|
|
267
|
+
return e.map((n) => ce(n));
|
|
268
268
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
269
269
|
return e;
|
|
270
270
|
const t = {};
|
|
271
271
|
for (const n in e)
|
|
272
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
272
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const t =
|
|
275
|
+
const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) => {
|
|
276
|
+
if (Ct) {
|
|
277
|
+
const t = me(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
280
280
|
properties: {
|
|
@@ -285,7 +285,7 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t =
|
|
288
|
+
const t = ce(vt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,7 +298,7 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, wt = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
@@ -307,28 +307,28 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
|
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const o =
|
|
310
|
+
const o = Tt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r], d =
|
|
312
|
+
const l = e.bindings[r], d = q({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
316
|
rootSetState: a,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
Oe(o, r, d);
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function It({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
327
327
|
rootState: i,
|
|
328
328
|
rootSetState: a
|
|
329
329
|
}) {
|
|
330
|
-
let o =
|
|
331
|
-
return o = o,
|
|
330
|
+
let o = kt(e, i.locale);
|
|
331
|
+
return o = o, wt({
|
|
332
332
|
block: o,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
@@ -336,20 +336,20 @@ function kt({
|
|
|
336
336
|
context: t
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
339
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
+
function Et(e, t, n = {}) {
|
|
341
341
|
let i, a, o, r = null, l = 0;
|
|
342
342
|
const d = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
|
-
const
|
|
347
|
-
!l && n.leading === !1 && (l =
|
|
348
|
-
const h = t - (
|
|
349
|
-
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l =
|
|
346
|
+
const u = Date.now();
|
|
347
|
+
!l && n.leading === !1 && (l = u);
|
|
348
|
+
const h = t - (u - l);
|
|
349
|
+
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function H(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const a = arguments[i];
|
|
@@ -359,118 +359,118 @@ function q(e, ...t) {
|
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Rt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
_e(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
Vt(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Le(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Ue(e, t) {
|
|
377
|
+
const n = Pt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
|
|
378
378
|
for (const l of r)
|
|
379
379
|
for (const d of n)
|
|
380
380
|
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Pt(e) {
|
|
383
383
|
const t = [];
|
|
384
384
|
for (const n of e.steps)
|
|
385
385
|
for (const i in n.styles)
|
|
386
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
387
387
|
return t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function _e(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
Le(e.elementId || e.id || "");
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Vt(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
Le(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
410
|
+
Ue(e, n);
|
|
411
411
|
let i = !1, a = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
415
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Et(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
423
|
+
const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
424
|
+
return g.bottom > f && g.top < c - f;
|
|
425
425
|
}
|
|
426
426
|
const d = e.steps[0].styles;
|
|
427
|
-
function
|
|
428
|
-
|
|
427
|
+
function u() {
|
|
428
|
+
H(n.style, d);
|
|
429
429
|
}
|
|
430
|
-
|
|
431
|
-
n.style.transition = `all ${e.duration}s ${
|
|
430
|
+
u(), setTimeout(() => {
|
|
431
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", r, {
|
|
433
433
|
capture: !0,
|
|
434
434
|
passive: !0
|
|
435
435
|
}), o();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const qe = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
|
-
return `${
|
|
441
|
-
}).filter(
|
|
442
|
-
`),
|
|
440
|
+
return `${ee(n)}: ${i};`;
|
|
441
|
+
}).filter(Q), Bt = (e) => qe(e).join(`
|
|
442
|
+
`), M = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Bt(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function At({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Nt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Me(At({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
468
|
-
switch (
|
|
467
|
+
function Me(e) {
|
|
468
|
+
switch (L) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return qe(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,7 +478,7 @@ function Ue(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
@@ -488,14 +488,14 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
490
|
const a = t[i];
|
|
491
|
-
if (!a ||
|
|
491
|
+
if (!a || He(a, n)) {
|
|
492
492
|
console.warn(`
|
|
493
493
|
Could not find a registered component named "${i}".
|
|
494
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
495
495
|
return;
|
|
496
496
|
} else
|
|
497
497
|
return a;
|
|
498
|
-
},
|
|
498
|
+
}, Dt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -505,7 +505,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
} = e;
|
|
506
506
|
if (!(n != null && n.collection))
|
|
507
507
|
return;
|
|
508
|
-
const a =
|
|
508
|
+
const a = q({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
@@ -515,40 +515,40 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(a))
|
|
516
516
|
return;
|
|
517
517
|
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
-
return a.map((d,
|
|
518
|
+
return a.map((d, u) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
|
-
$index:
|
|
523
|
+
$index: u,
|
|
524
524
|
$item: d,
|
|
525
525
|
[r]: d,
|
|
526
|
-
[`$${r}Index`]:
|
|
526
|
+
[`$${r}Index`]: u
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, $t = (e, t) => {
|
|
532
532
|
var n;
|
|
533
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
534
|
builderLinkComponent: t
|
|
535
535
|
} : {};
|
|
536
|
-
},
|
|
536
|
+
}, Ft = (e, t, n) => {
|
|
537
537
|
var i;
|
|
538
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !He(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Ot = (e, t) => {
|
|
542
542
|
var n;
|
|
543
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
544
544
|
builderBlock: t
|
|
545
545
|
} : {};
|
|
546
|
-
},
|
|
546
|
+
}, Lt = (e, t) => {
|
|
547
547
|
var n;
|
|
548
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
549
549
|
builderContext: t
|
|
550
550
|
} : {};
|
|
551
|
-
},
|
|
551
|
+
}, je = {
|
|
552
552
|
xsmall: {
|
|
553
553
|
min: 0,
|
|
554
554
|
default: 160,
|
|
@@ -569,8 +569,8 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
569
569
|
default: 991,
|
|
570
570
|
max: 1200
|
|
571
571
|
}
|
|
572
|
-
},
|
|
573
|
-
const t =
|
|
572
|
+
}, ie = (e, t = je) => `@media (max-width: ${t[e].max}px)`, ze = (e) => {
|
|
573
|
+
const t = me(je);
|
|
574
574
|
if (!e)
|
|
575
575
|
return t;
|
|
576
576
|
const {
|
|
@@ -608,7 +608,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function K(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -618,67 +618,67 @@ function j(e) {
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Ut(e) {
|
|
622
622
|
function t() {
|
|
623
623
|
const i = e.block;
|
|
624
|
-
return
|
|
624
|
+
return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
627
|
var C, P, w, x, m;
|
|
628
|
-
const i = e.block, a = i.responsiveStyles, o = e.context.content, r =
|
|
628
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
|
|
629
629
|
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
-
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large,
|
|
631
|
-
if (!
|
|
630
|
+
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
|
|
631
|
+
if (!c)
|
|
632
632
|
return "";
|
|
633
|
-
const v = d ?
|
|
634
|
-
className:
|
|
633
|
+
const v = d ? M({
|
|
634
|
+
className: c,
|
|
635
635
|
styles: d
|
|
636
|
-
}) : "", f =
|
|
637
|
-
className:
|
|
638
|
-
styles:
|
|
639
|
-
mediaQuery:
|
|
636
|
+
}) : "", f = u ? M({
|
|
637
|
+
className: c,
|
|
638
|
+
styles: u,
|
|
639
|
+
mediaQuery: ie(
|
|
640
640
|
"medium",
|
|
641
641
|
r
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
644
|
-
className:
|
|
643
|
+
}) : "", b = h ? M({
|
|
644
|
+
className: c,
|
|
645
645
|
styles: h,
|
|
646
|
-
mediaQuery:
|
|
646
|
+
mediaQuery: ie(
|
|
647
647
|
"small",
|
|
648
648
|
r
|
|
649
649
|
)
|
|
650
|
-
}) : "", S =
|
|
651
|
-
className:
|
|
652
|
-
styles:
|
|
653
|
-
mediaQuery:
|
|
650
|
+
}) : "", S = g && l ? M({
|
|
651
|
+
className: c,
|
|
652
|
+
styles: g,
|
|
653
|
+
mediaQuery: ie(
|
|
654
654
|
"xsmall",
|
|
655
655
|
r
|
|
656
656
|
)
|
|
657
|
-
}) : "",
|
|
657
|
+
}) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
658
658
|
let k = "";
|
|
659
|
-
if (
|
|
660
|
-
const
|
|
661
|
-
k =
|
|
662
|
-
className: `${
|
|
659
|
+
if (p) {
|
|
660
|
+
const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
k = M({
|
|
662
|
+
className: `${c}:hover`,
|
|
663
663
|
styles: {
|
|
664
|
-
...
|
|
665
|
-
transition: `all ${
|
|
666
|
-
|
|
664
|
+
...y,
|
|
665
|
+
transition: `all ${p.duration}s ${ee(
|
|
666
|
+
p.easing
|
|
667
667
|
)}`,
|
|
668
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
669
669
|
}
|
|
670
670
|
}) || "";
|
|
671
671
|
}
|
|
672
672
|
return [
|
|
673
673
|
v,
|
|
674
674
|
f,
|
|
675
|
-
|
|
675
|
+
b,
|
|
676
676
|
S,
|
|
677
677
|
k
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
|
|
681
|
+
K,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -686,10 +686,10 @@ function $t(e) {
|
|
|
686
686
|
}
|
|
687
687
|
) }) : null });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function _t(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -698,16 +698,16 @@ const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
|
|
|
698
698
|
event: n,
|
|
699
699
|
isExpression: !1
|
|
700
700
|
});
|
|
701
|
-
function
|
|
701
|
+
function Ke(e) {
|
|
702
702
|
var i;
|
|
703
703
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
704
704
|
for (const a in n) {
|
|
705
705
|
if (!n.hasOwnProperty(a))
|
|
706
706
|
continue;
|
|
707
707
|
const o = n[a];
|
|
708
|
-
let r =
|
|
708
|
+
let r = qt(a);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
|
-
switch (
|
|
710
|
+
switch (L) {
|
|
711
711
|
case "vue":
|
|
712
712
|
r = r.replace("v-on:", "");
|
|
713
713
|
break;
|
|
@@ -715,49 +715,49 @@ function He(e) {
|
|
|
715
715
|
r = r.replace("on:", "");
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
t[r] =
|
|
718
|
+
t[r] = Mt(o, e);
|
|
719
719
|
}
|
|
720
720
|
return t;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Ht({
|
|
723
723
|
properties: e
|
|
724
724
|
}) {
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const jt = (e) => ({
|
|
728
728
|
href: e.href
|
|
729
729
|
});
|
|
730
|
-
function
|
|
730
|
+
function fe({
|
|
731
731
|
block: e,
|
|
732
732
|
context: t
|
|
733
733
|
}) {
|
|
734
734
|
var i;
|
|
735
735
|
const n = {
|
|
736
|
-
...
|
|
736
|
+
...jt(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: Nt({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Ht({
|
|
746
746
|
properties: n,
|
|
747
747
|
context: t,
|
|
748
748
|
block: e
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function zt(e) {
|
|
752
752
|
return /* @__PURE__ */ s(
|
|
753
|
-
|
|
753
|
+
ue,
|
|
754
754
|
{
|
|
755
755
|
TagName: e.Wrapper,
|
|
756
|
-
attributes:
|
|
756
|
+
attributes: fe({
|
|
757
757
|
block: e.block,
|
|
758
758
|
context: e.context
|
|
759
759
|
}),
|
|
760
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: Ke({
|
|
761
761
|
block: e.block,
|
|
762
762
|
rootState: e.context.rootState,
|
|
763
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -769,18 +769,18 @@ function qt(e) {
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
return
|
|
772
|
+
function Kt(e) {
|
|
773
|
+
return V(() => {
|
|
774
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Jt(e) {
|
|
777
777
|
function t() {
|
|
778
778
|
return e.includeBlockProps ? {
|
|
779
|
-
...
|
|
779
|
+
...fe({
|
|
780
780
|
block: e.block,
|
|
781
781
|
context: e.context
|
|
782
782
|
}),
|
|
783
|
-
...
|
|
783
|
+
...Ke({
|
|
784
784
|
block: e.block,
|
|
785
785
|
rootState: e.context.rootState,
|
|
786
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -790,7 +790,7 @@ function Ht(e) {
|
|
|
790
790
|
} : {};
|
|
791
791
|
}
|
|
792
792
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
-
|
|
793
|
+
Kt,
|
|
794
794
|
{
|
|
795
795
|
load: e.Wrapper.load,
|
|
796
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -800,7 +800,7 @@ function Ht(e) {
|
|
|
800
800
|
}
|
|
801
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const Gt = ({
|
|
804
804
|
componentOptions: e,
|
|
805
805
|
builderBlock: t,
|
|
806
806
|
context: n,
|
|
@@ -816,7 +816,7 @@ const jt = ({
|
|
|
816
816
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
817
817
|
*/
|
|
818
818
|
...a ? {
|
|
819
|
-
attributes:
|
|
819
|
+
attributes: fe({
|
|
820
820
|
block: t,
|
|
821
821
|
context: r
|
|
822
822
|
})
|
|
@@ -830,15 +830,15 @@ const jt = ({
|
|
|
830
830
|
includeBlockProps: a
|
|
831
831
|
} : l;
|
|
832
832
|
};
|
|
833
|
-
function
|
|
833
|
+
function Se(e) {
|
|
834
834
|
var i;
|
|
835
|
-
const [t, n] =
|
|
836
|
-
() => e.isInteractive ?
|
|
835
|
+
const [t, n] = I(
|
|
836
|
+
() => e.isInteractive ? Jt : e.componentRef
|
|
837
837
|
);
|
|
838
838
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
839
839
|
t,
|
|
840
840
|
{
|
|
841
|
-
...
|
|
841
|
+
...Gt({
|
|
842
842
|
componentOptions: e.componentOptions,
|
|
843
843
|
builderBlock: e.builderBlock,
|
|
844
844
|
context: e.context,
|
|
@@ -849,7 +849,7 @@ function ye(e) {
|
|
|
849
849
|
contextValue: e.context
|
|
850
850
|
}),
|
|
851
851
|
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
852
|
-
|
|
852
|
+
te,
|
|
853
853
|
{
|
|
854
854
|
block: a,
|
|
855
855
|
context: e.context,
|
|
@@ -861,10 +861,10 @@ function ye(e) {
|
|
|
861
861
|
}
|
|
862
862
|
) }) : null });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const [t, n] =
|
|
866
|
-
return /* @__PURE__ */ s(
|
|
867
|
-
|
|
864
|
+
function ke(e) {
|
|
865
|
+
const [t, n] = I(() => e.repeatContext);
|
|
866
|
+
return /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
867
|
+
te,
|
|
868
868
|
{
|
|
869
869
|
block: e.block,
|
|
870
870
|
context: t,
|
|
@@ -873,23 +873,23 @@ function ve(e) {
|
|
|
873
873
|
}
|
|
874
874
|
) });
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
var h,
|
|
876
|
+
function te(e) {
|
|
877
|
+
var h, g, c, v;
|
|
878
878
|
function t() {
|
|
879
|
-
return
|
|
879
|
+
return Dt({
|
|
880
880
|
block: e.block,
|
|
881
881
|
context: e.context
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
const [n, i] =
|
|
884
|
+
const [n, i] = I(() => ({
|
|
885
885
|
value: null,
|
|
886
886
|
update: !1
|
|
887
887
|
}));
|
|
888
888
|
function a() {
|
|
889
|
-
var
|
|
890
|
-
if (n.value && !n.update && !
|
|
889
|
+
var b;
|
|
890
|
+
if (n.value && !n.update && !Z())
|
|
891
891
|
return n.value;
|
|
892
|
-
const f = (
|
|
892
|
+
const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
|
|
893
893
|
block: e.block,
|
|
894
894
|
localState: e.context.localState,
|
|
895
895
|
rootState: e.context.rootState,
|
|
@@ -899,38 +899,38 @@ function Z(e) {
|
|
|
899
899
|
return n.value = f, n.update = !1, f;
|
|
900
900
|
}
|
|
901
901
|
function o() {
|
|
902
|
-
return
|
|
902
|
+
return Wt({
|
|
903
903
|
block: a(),
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
model: e.context.model
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
function r() {
|
|
909
|
-
var
|
|
910
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var b;
|
|
910
|
+
return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
911
911
|
}
|
|
912
912
|
function l() {
|
|
913
|
-
var S,
|
|
913
|
+
var S, p;
|
|
914
914
|
if ((S = e.block.repeat) != null && S.collection)
|
|
915
|
-
return !!((
|
|
915
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
916
916
|
const f = "hide" in a() ? a().hide : !1;
|
|
917
917
|
return ("show" in a() ? a().show : !0) && !f;
|
|
918
918
|
}
|
|
919
919
|
function d() {
|
|
920
|
-
var
|
|
921
|
-
return !((
|
|
920
|
+
var b, S;
|
|
921
|
+
return !((b = o == null ? void 0 : o()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
924
|
-
var f,
|
|
923
|
+
function u() {
|
|
924
|
+
var f, b, S, p;
|
|
925
925
|
return {
|
|
926
926
|
blockChildren: (f = a().children) != null ? f : [],
|
|
927
|
-
componentRef: (
|
|
927
|
+
componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
|
|
928
928
|
componentOptions: {
|
|
929
|
-
...
|
|
930
|
-
...
|
|
931
|
-
...
|
|
932
|
-
|
|
933
|
-
...
|
|
929
|
+
...pt(a(), e.context),
|
|
930
|
+
...Ot(o(), a()),
|
|
931
|
+
...Lt(o(), e.context),
|
|
932
|
+
...$t(o(), e.linkComponent),
|
|
933
|
+
...Ft(
|
|
934
934
|
o(),
|
|
935
935
|
e.registeredComponents,
|
|
936
936
|
e.context.model
|
|
@@ -941,75 +941,75 @@ function Z(e) {
|
|
|
941
941
|
registeredComponents: e.registeredComponents,
|
|
942
942
|
builderBlock: a(),
|
|
943
943
|
includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
|
|
944
|
-
isInteractive: !((
|
|
944
|
+
isInteractive: !((p = o == null ? void 0 : o()) != null && p.isRSC && L === "rsc")
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
return
|
|
948
|
-
const f = a().id,
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
return V(() => {
|
|
948
|
+
const f = a().id, b = a().animations;
|
|
949
|
+
b && f && Rt(
|
|
950
|
+
b.map((S) => ({
|
|
951
951
|
...S,
|
|
952
952
|
elementId: f
|
|
953
953
|
}))
|
|
954
954
|
);
|
|
955
|
-
}, []),
|
|
955
|
+
}, []), V(() => {
|
|
956
956
|
n.update = !0;
|
|
957
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */ s(
|
|
959
|
-
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f,
|
|
960
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
|
|
959
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
|
|
960
|
+
ke,
|
|
961
961
|
{
|
|
962
962
|
repeatContext: f.context,
|
|
963
963
|
block: f.block,
|
|
964
964
|
registeredComponents: e.registeredComponents,
|
|
965
965
|
linkComponent: e.linkComponent
|
|
966
966
|
},
|
|
967
|
-
|
|
967
|
+
b
|
|
968
968
|
)) }) : /* @__PURE__ */ s(
|
|
969
|
-
|
|
969
|
+
Se,
|
|
970
970
|
{
|
|
971
|
-
componentRef:
|
|
972
|
-
componentOptions:
|
|
973
|
-
blockChildren:
|
|
974
|
-
context:
|
|
975
|
-
registeredComponents:
|
|
976
|
-
linkComponent:
|
|
977
|
-
builderBlock:
|
|
978
|
-
includeBlockProps:
|
|
979
|
-
isInteractive:
|
|
971
|
+
componentRef: u().componentRef,
|
|
972
|
+
componentOptions: u().componentOptions,
|
|
973
|
+
blockChildren: u().blockChildren,
|
|
974
|
+
context: u().context,
|
|
975
|
+
registeredComponents: u().registeredComponents,
|
|
976
|
+
linkComponent: u().linkComponent,
|
|
977
|
+
builderBlock: u().builderBlock,
|
|
978
|
+
includeBlockProps: u().includeBlockProps,
|
|
979
|
+
isInteractive: u().isInteractive
|
|
980
980
|
}
|
|
981
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
982
|
-
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
|
|
982
|
+
ke,
|
|
983
983
|
{
|
|
984
984
|
repeatContext: f.context,
|
|
985
985
|
block: f.block,
|
|
986
986
|
registeredComponents: e.registeredComponents,
|
|
987
987
|
linkComponent: e.linkComponent
|
|
988
988
|
},
|
|
989
|
-
|
|
990
|
-
)) }) : /* @__PURE__ */
|
|
991
|
-
|
|
989
|
+
b
|
|
990
|
+
)) }) : /* @__PURE__ */ B(
|
|
991
|
+
zt,
|
|
992
992
|
{
|
|
993
993
|
Wrapper: r(),
|
|
994
994
|
block: a(),
|
|
995
995
|
context: e.context,
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ s(
|
|
998
|
-
|
|
998
|
+
Se,
|
|
999
999
|
{
|
|
1000
|
-
componentRef:
|
|
1001
|
-
componentOptions:
|
|
1002
|
-
blockChildren:
|
|
1003
|
-
context:
|
|
1004
|
-
registeredComponents:
|
|
1005
|
-
linkComponent:
|
|
1006
|
-
builderBlock:
|
|
1007
|
-
includeBlockProps:
|
|
1008
|
-
isInteractive:
|
|
1000
|
+
componentRef: u().componentRef,
|
|
1001
|
+
componentOptions: u().componentOptions,
|
|
1002
|
+
blockChildren: u().blockChildren,
|
|
1003
|
+
context: u().context,
|
|
1004
|
+
registeredComponents: u().registeredComponents,
|
|
1005
|
+
linkComponent: u().linkComponent,
|
|
1006
|
+
builderBlock: u().builderBlock,
|
|
1007
|
+
includeBlockProps: u().includeBlockProps,
|
|
1008
|
+
isInteractive: u().isInteractive
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
(
|
|
1012
|
-
|
|
1011
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
1012
|
+
te,
|
|
1013
1013
|
{
|
|
1014
1014
|
block: f,
|
|
1015
1015
|
registeredComponents: e.registeredComponents,
|
|
@@ -1023,8 +1023,8 @@ function Z(e) {
|
|
|
1023
1023
|
) })
|
|
1024
1024
|
] }) : null });
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const t =
|
|
1026
|
+
function Qt(e) {
|
|
1027
|
+
const t = O(null);
|
|
1028
1028
|
function n() {
|
|
1029
1029
|
var r;
|
|
1030
1030
|
return [
|
|
@@ -1041,7 +1041,7 @@ function zt(e) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
function a() {
|
|
1043
1043
|
var r, l;
|
|
1044
|
-
|
|
1044
|
+
A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1045
1045
|
{
|
|
1046
1046
|
type: "builder.clickEmptyBlocks",
|
|
1047
1047
|
data: {
|
|
@@ -1054,7 +1054,7 @@ function zt(e) {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
function o() {
|
|
1056
1056
|
var r, l;
|
|
1057
|
-
|
|
1057
|
+
A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1058
1058
|
{
|
|
1059
1059
|
type: "builder.hoverEmptyBlocks",
|
|
1060
1060
|
data: {
|
|
@@ -1065,8 +1065,8 @@ function zt(e) {
|
|
|
1065
1065
|
"*"
|
|
1066
1066
|
));
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1069
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return V(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
1070
1070
|
/* @__PURE__ */ s(
|
|
1071
1071
|
e.BlocksWrapper,
|
|
1072
1072
|
{
|
|
@@ -1089,11 +1089,11 @@ function zt(e) {
|
|
|
1089
1089
|
}` })
|
|
1090
1090
|
] });
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function $(e) {
|
|
1093
1093
|
var i, a, o;
|
|
1094
|
-
const t =
|
|
1094
|
+
const t = ve(de), n = ve(We);
|
|
1095
1095
|
return /* @__PURE__ */ s(
|
|
1096
|
-
|
|
1096
|
+
Qt,
|
|
1097
1097
|
{
|
|
1098
1098
|
blocks: e.blocks,
|
|
1099
1099
|
parent: e.parent,
|
|
@@ -1103,7 +1103,7 @@ function D(e) {
|
|
|
1103
1103
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1104
1104
|
BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1105
1105
|
children: e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
|
|
1106
|
-
|
|
1106
|
+
te,
|
|
1107
1107
|
{
|
|
1108
1108
|
block: r,
|
|
1109
1109
|
linkComponent: e.linkComponent,
|
|
@@ -1115,9 +1115,9 @@ function D(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1118
|
+
const Yt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Xt(e) {
|
|
1120
|
+
var b, S;
|
|
1121
1121
|
function t() {
|
|
1122
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1123
1123
|
}
|
|
@@ -1127,43 +1127,43 @@ function Jt(e) {
|
|
|
1127
1127
|
function i() {
|
|
1128
1128
|
return e.stackColumnsAt || "tablet";
|
|
1129
1129
|
}
|
|
1130
|
-
function a(
|
|
1131
|
-
return
|
|
1130
|
+
function a(p) {
|
|
1131
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
1132
1132
|
}
|
|
1133
|
-
function o(
|
|
1133
|
+
function o(p) {
|
|
1134
1134
|
var k;
|
|
1135
|
-
return ((k = n()[
|
|
1135
|
+
return ((k = n()[p]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1136
1136
|
}
|
|
1137
|
-
function r(
|
|
1138
|
-
const k = o(
|
|
1137
|
+
function r(p) {
|
|
1138
|
+
const k = o(p), C = t() * (n().length - 1) * (k / 100);
|
|
1139
1139
|
return `calc(${k}% - ${C}px)`;
|
|
1140
1140
|
}
|
|
1141
1141
|
function l({
|
|
1142
|
-
stackedStyle:
|
|
1142
|
+
stackedStyle: p,
|
|
1143
1143
|
desktopStyle: k
|
|
1144
1144
|
}) {
|
|
1145
|
-
return i() === "tablet" ?
|
|
1145
|
+
return i() === "tablet" ? p : k;
|
|
1146
1146
|
}
|
|
1147
1147
|
function d({
|
|
1148
|
-
stackedStyle:
|
|
1148
|
+
stackedStyle: p,
|
|
1149
1149
|
desktopStyle: k
|
|
1150
1150
|
}) {
|
|
1151
|
-
return i() === "never" ? k :
|
|
1151
|
+
return i() === "never" ? k : p;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function u() {
|
|
1154
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1155
1155
|
}
|
|
1156
1156
|
function h() {
|
|
1157
1157
|
return {
|
|
1158
|
-
"--flex-dir":
|
|
1158
|
+
"--flex-dir": u(),
|
|
1159
1159
|
"--flex-dir-tablet": l({
|
|
1160
|
-
stackedStyle:
|
|
1160
|
+
stackedStyle: u(),
|
|
1161
1161
|
desktopStyle: "row"
|
|
1162
1162
|
})
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const k =
|
|
1165
|
+
function g(p) {
|
|
1166
|
+
const k = p === 0 ? 0 : t(), C = r(p), P = `${k}px`, w = "100%", x = 0;
|
|
1167
1167
|
return {
|
|
1168
1168
|
...{
|
|
1169
1169
|
display: "flex",
|
|
@@ -1190,79 +1190,79 @@ function Jt(e) {
|
|
|
1190
1190
|
})
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1193
|
+
function c(p) {
|
|
1194
1194
|
var C, P;
|
|
1195
|
-
return
|
|
1195
|
+
return ze(
|
|
1196
1196
|
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
-
)[
|
|
1197
|
+
)[p].max;
|
|
1198
1198
|
}
|
|
1199
1199
|
function v() {
|
|
1200
|
-
const
|
|
1200
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1201
1201
|
return `
|
|
1202
|
-
@media (max-width: ${
|
|
1202
|
+
@media (max-width: ${c("medium")}px) {
|
|
1203
1203
|
.${e.builderBlock.id}-breakpoints {
|
|
1204
1204
|
flex-direction: var(--flex-dir-tablet);
|
|
1205
1205
|
align-items: stretch;
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
${
|
|
1208
|
+
${p} {
|
|
1209
1209
|
width: var(--column-width-tablet) !important;
|
|
1210
1210
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
@media (max-width: ${
|
|
1214
|
+
@media (max-width: ${c("small")}px) {
|
|
1215
1215
|
.${e.builderBlock.id}-breakpoints {
|
|
1216
1216
|
flex-direction: var(--flex-dir);
|
|
1217
1217
|
align-items: stretch;
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
|
-
${
|
|
1220
|
+
${p} {
|
|
1221
1221
|
width: var(--column-width-mobile) !important;
|
|
1222
1222
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
`;
|
|
1226
1226
|
}
|
|
1227
|
-
function f(
|
|
1227
|
+
function f(p, k) {
|
|
1228
1228
|
return {
|
|
1229
|
-
...
|
|
1230
|
-
href:
|
|
1229
|
+
...p.link ? {
|
|
1230
|
+
href: p.link
|
|
1231
1231
|
} : {},
|
|
1232
|
-
[
|
|
1233
|
-
style:
|
|
1232
|
+
[z()]: "builder-column",
|
|
1233
|
+
style: Me(g(k))
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ B(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className:
|
|
1240
|
+
className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1241
1241
|
style: h(),
|
|
1242
1242
|
children: [
|
|
1243
1243
|
/* @__PURE__ */ s(
|
|
1244
|
-
|
|
1244
|
+
K,
|
|
1245
1245
|
{
|
|
1246
1246
|
id: "builderio-columns",
|
|
1247
1247
|
styles: v(),
|
|
1248
1248
|
nonce: e.builderContext.nonce
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
(S = e.columns) == null ? void 0 : S.map((
|
|
1252
|
-
|
|
1251
|
+
(S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
|
|
1252
|
+
ue,
|
|
1253
1253
|
{
|
|
1254
|
-
TagName: a(
|
|
1254
|
+
TagName: a(p),
|
|
1255
1255
|
actionAttributes: {},
|
|
1256
|
-
attributes: f(
|
|
1256
|
+
attributes: f(p, k),
|
|
1257
1257
|
children: /* @__PURE__ */ s(
|
|
1258
|
-
|
|
1258
|
+
$,
|
|
1259
1259
|
{
|
|
1260
1260
|
path: `columns.${k}.blocks`,
|
|
1261
1261
|
parent: e.builderBlock.id,
|
|
1262
1262
|
context: e.builderContext,
|
|
1263
1263
|
registeredComponents: e.builderComponents,
|
|
1264
1264
|
linkComponent: e.builderLinkComponent,
|
|
1265
|
-
blocks:
|
|
1265
|
+
blocks: p.blocks,
|
|
1266
1266
|
styleProp: {
|
|
1267
1267
|
flexGrow: "1"
|
|
1268
1268
|
}
|
|
@@ -1280,55 +1280,55 @@ function Jt(e) {
|
|
|
1280
1280
|
}` })
|
|
1281
1281
|
] });
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Zt(e) {
|
|
1284
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Ce(e) {
|
|
1287
1287
|
return e.replace(/http(s)?:/, "");
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function en(e = "", t, n) {
|
|
1290
1290
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1291
1291
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function tn(e, t) {
|
|
1294
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1295
1295
|
return e;
|
|
1296
1296
|
if (t === "master")
|
|
1297
|
-
return
|
|
1297
|
+
return Ce(e);
|
|
1298
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1299
1299
|
if (n) {
|
|
1300
1300
|
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1301
|
-
return
|
|
1301
|
+
return Ce(`${i[0]}_${o}${a}`);
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function ae(e) {
|
|
1306
1306
|
if (!e)
|
|
1307
1307
|
return e;
|
|
1308
1308
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1309
1309
|
if (e.match(/builder\.io/)) {
|
|
1310
1310
|
let n = e;
|
|
1311
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1312
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1313
1313
|
}
|
|
1314
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var a, o, r, l, d,
|
|
1316
|
+
function nn(e) {
|
|
1317
|
+
var a, o, r, l, d, u;
|
|
1318
1318
|
function t() {
|
|
1319
|
-
var
|
|
1320
|
-
const
|
|
1321
|
-
if (!
|
|
1319
|
+
var c;
|
|
1320
|
+
const g = e.image || e.src;
|
|
1321
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1322
1322
|
// images, otherwise you can supply this prop manually
|
|
1323
|
-
!(typeof
|
|
1323
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1324
1324
|
return e.srcset;
|
|
1325
1325
|
if (!e.noWebp) {
|
|
1326
|
-
if (e.srcset && ((
|
|
1326
|
+
if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
|
|
1327
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1328
|
-
return console.debug("Removed given srcset"),
|
|
1328
|
+
return console.debug("Removed given srcset"), ae(g);
|
|
1329
1329
|
} else if (e.image && !e.srcset)
|
|
1330
|
-
return
|
|
1331
|
-
return
|
|
1330
|
+
return ae(g);
|
|
1331
|
+
return ae(g);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function n() {
|
|
@@ -1345,9 +1345,9 @@ function Xt(e) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
return e.aspectRatio ? h : void 0;
|
|
1347
1347
|
}
|
|
1348
|
-
return /* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ B(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1351
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1352
1352
|
/* @__PURE__ */ s(
|
|
1353
1353
|
"img",
|
|
@@ -1378,7 +1378,7 @@ function Xt(e) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
) : null,
|
|
1380
1380
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1381
|
-
!e.fitContent && ((
|
|
1381
|
+
!e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1382
1382
|
] }),
|
|
1383
1383
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1384
1384
|
opacity: 1;
|
|
@@ -1399,7 +1399,7 @@ function Xt(e) {
|
|
|
1399
1399
|
}` })
|
|
1400
1400
|
] });
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function an(e) {
|
|
1403
1403
|
return /* @__PURE__ */ s(
|
|
1404
1404
|
"section",
|
|
1405
1405
|
{
|
|
@@ -1420,7 +1420,7 @@ function Zt(e) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
);
|
|
1422
1422
|
}
|
|
1423
|
-
const
|
|
1423
|
+
const oe = {
|
|
1424
1424
|
"@type": "@builder.io/sdk:Element",
|
|
1425
1425
|
layerName: "Accordion item title",
|
|
1426
1426
|
responsiveStyles: {
|
|
@@ -1449,7 +1449,7 @@ const ne = {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
}]
|
|
1452
|
-
},
|
|
1452
|
+
}, re = {
|
|
1453
1453
|
"@type": "@builder.io/sdk:Element",
|
|
1454
1454
|
layerName: "Accordion item detail",
|
|
1455
1455
|
responsiveStyles: {
|
|
@@ -1480,7 +1480,7 @@ const ne = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}]
|
|
1483
|
-
},
|
|
1483
|
+
}, on = {
|
|
1484
1484
|
name: "Builder:Accordion",
|
|
1485
1485
|
canHaveChildren: !0,
|
|
1486
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1497,19 +1497,19 @@ const ne = {
|
|
|
1497
1497
|
name: "title",
|
|
1498
1498
|
type: "uiBlocks",
|
|
1499
1499
|
hideFromUI: !0,
|
|
1500
|
-
defaultValue: [
|
|
1500
|
+
defaultValue: [oe]
|
|
1501
1501
|
}, {
|
|
1502
1502
|
name: "detail",
|
|
1503
1503
|
type: "uiBlocks",
|
|
1504
1504
|
hideFromUI: !0,
|
|
1505
|
-
defaultValue: [
|
|
1505
|
+
defaultValue: [re]
|
|
1506
1506
|
}],
|
|
1507
1507
|
defaultValue: [{
|
|
1508
|
-
title: [
|
|
1509
|
-
detail: [
|
|
1508
|
+
title: [oe],
|
|
1509
|
+
detail: [re]
|
|
1510
1510
|
}, {
|
|
1511
|
-
title: [
|
|
1512
|
-
detail: [
|
|
1511
|
+
title: [oe],
|
|
1512
|
+
detail: [re]
|
|
1513
1513
|
}],
|
|
1514
1514
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1515
1515
|
}, {
|
|
@@ -1544,10 +1544,10 @@ const ne = {
|
|
|
1544
1544
|
builderComponents: !0,
|
|
1545
1545
|
builderLinkComponent: !0
|
|
1546
1546
|
}
|
|
1547
|
-
},
|
|
1548
|
-
function
|
|
1549
|
-
var
|
|
1550
|
-
const [t, n] =
|
|
1547
|
+
}, Te = (e) => e.toString();
|
|
1548
|
+
function rn(e) {
|
|
1549
|
+
var g;
|
|
1550
|
+
const [t, n] = I(() => []);
|
|
1551
1551
|
function i() {
|
|
1552
1552
|
return !!(e.grid || e.oneAtATime);
|
|
1553
1553
|
}
|
|
@@ -1573,57 +1573,57 @@ function tn(e) {
|
|
|
1573
1573
|
cursor: "pointer"
|
|
1574
1574
|
};
|
|
1575
1575
|
return Object.fromEntries(
|
|
1576
|
-
Object.entries(v).filter(([f,
|
|
1576
|
+
Object.entries(v).filter(([f, b]) => b !== void 0)
|
|
1577
1577
|
);
|
|
1578
1578
|
}
|
|
1579
|
-
function r(
|
|
1580
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1579
|
+
function r(c) {
|
|
1580
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
|
|
1581
1581
|
}
|
|
1582
|
-
function l(
|
|
1583
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1582
|
+
function l(c) {
|
|
1583
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
|
|
1584
1584
|
}
|
|
1585
1585
|
function d() {
|
|
1586
|
-
let
|
|
1586
|
+
let c = null;
|
|
1587
1587
|
if (e.grid && t.length && document) {
|
|
1588
1588
|
const f = t[0];
|
|
1589
1589
|
let S = document.querySelector(
|
|
1590
1590
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1591
1591
|
);
|
|
1592
|
-
if (
|
|
1593
|
-
let
|
|
1592
|
+
if (c = f, S) {
|
|
1593
|
+
let p = S.getBoundingClientRect();
|
|
1594
1594
|
for (; S = S && S.nextElementSibling; )
|
|
1595
1595
|
if (S) {
|
|
1596
1596
|
if (S.classList.contains("builder-accordion-detail"))
|
|
1597
1597
|
continue;
|
|
1598
1598
|
const k = S.getBoundingClientRect();
|
|
1599
|
-
if (k.left >
|
|
1599
|
+
if (k.left > p.left) {
|
|
1600
1600
|
const C = parseInt(
|
|
1601
1601
|
S.getAttribute("data-index") || "",
|
|
1602
1602
|
10
|
|
1603
1603
|
);
|
|
1604
|
-
isNaN(C) || (
|
|
1604
|
+
isNaN(C) || (p = k, c = C);
|
|
1605
1605
|
} else
|
|
1606
1606
|
break;
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
|
-
return typeof
|
|
1610
|
+
return typeof c == "number" && (c = c + 1), c;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1613
|
-
const
|
|
1612
|
+
function u() {
|
|
1613
|
+
const c = {
|
|
1614
1614
|
order: typeof d() == "number" ? d() : void 0,
|
|
1615
1615
|
...e.grid && {
|
|
1616
1616
|
width: "100%"
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
return Object.fromEntries(
|
|
1620
|
-
Object.entries(
|
|
1620
|
+
Object.entries(c).filter(([v, f]) => f !== void 0)
|
|
1621
1621
|
);
|
|
1622
1622
|
}
|
|
1623
|
-
function h(
|
|
1624
|
-
t.includes(
|
|
1623
|
+
function h(c) {
|
|
1624
|
+
t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
|
|
1625
1625
|
}
|
|
1626
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(at.Fragment, { children: [
|
|
1627
1627
|
/* @__PURE__ */ s(
|
|
1628
1628
|
"div",
|
|
1629
1629
|
{
|
|
@@ -1632,15 +1632,15 @@ function tn(e) {
|
|
|
1632
1632
|
...o(),
|
|
1633
1633
|
...e.grid && {
|
|
1634
1634
|
width: e.gridRowWidth,
|
|
1635
|
-
order: d() !== null ?
|
|
1635
|
+
order: d() !== null ? Te(v) : Te(v + 1)
|
|
1636
1636
|
}
|
|
1637
1637
|
},
|
|
1638
1638
|
"data-index": v,
|
|
1639
1639
|
onClick: (f) => h(v),
|
|
1640
1640
|
children: /* @__PURE__ */ s(
|
|
1641
|
-
|
|
1641
|
+
$,
|
|
1642
1642
|
{
|
|
1643
|
-
blocks:
|
|
1643
|
+
blocks: c.title,
|
|
1644
1644
|
path: `items.${v}.title`,
|
|
1645
1645
|
parent: e.builderBlock.id,
|
|
1646
1646
|
context: e.builderContext,
|
|
@@ -1654,11 +1654,11 @@ function tn(e) {
|
|
|
1654
1654
|
"div",
|
|
1655
1655
|
{
|
|
1656
1656
|
className: l(v),
|
|
1657
|
-
style:
|
|
1657
|
+
style: u(),
|
|
1658
1658
|
children: /* @__PURE__ */ s(
|
|
1659
|
-
|
|
1659
|
+
$,
|
|
1660
1660
|
{
|
|
1661
|
-
blocks:
|
|
1661
|
+
blocks: c.detail,
|
|
1662
1662
|
path: `items.${v}.detail`,
|
|
1663
1663
|
parent: e.builderBlock.id,
|
|
1664
1664
|
context: e.builderContext,
|
|
@@ -1670,7 +1670,7 @@ function tn(e) {
|
|
|
1670
1670
|
) : null
|
|
1671
1671
|
] }, v)) });
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const ln = {
|
|
1674
1674
|
name: "Core:Button",
|
|
1675
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1676
1676
|
defaultStyles: {
|
|
@@ -1706,7 +1706,7 @@ const nn = {
|
|
|
1706
1706
|
shouldReceiveBuilderProps: {
|
|
1707
1707
|
builderLinkComponent: !0
|
|
1708
1708
|
}
|
|
1709
|
-
},
|
|
1709
|
+
}, sn = {
|
|
1710
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1711
1711
|
name: "Columns",
|
|
1712
1712
|
isRSC: !0,
|
|
@@ -1913,13 +1913,13 @@ const nn = {
|
|
|
1913
1913
|
builderComponents: !0,
|
|
1914
1914
|
builderLinkComponent: !0
|
|
1915
1915
|
}
|
|
1916
|
-
},
|
|
1916
|
+
}, cn = {
|
|
1917
1917
|
name: "Fragment",
|
|
1918
1918
|
static: !0,
|
|
1919
1919
|
hidden: !0,
|
|
1920
1920
|
canHaveChildren: !0,
|
|
1921
1921
|
noWrap: !0
|
|
1922
|
-
},
|
|
1922
|
+
}, he = ["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"], un = ["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"], dn = {
|
|
1923
1923
|
name: "Image",
|
|
1924
1924
|
static: !0,
|
|
1925
1925
|
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",
|
|
@@ -1934,21 +1934,21 @@ const nn = {
|
|
|
1934
1934
|
name: "image",
|
|
1935
1935
|
type: "file",
|
|
1936
1936
|
bubble: !0,
|
|
1937
|
-
allowedFileTypes:
|
|
1937
|
+
allowedFileTypes: he,
|
|
1938
1938
|
required: !0,
|
|
1939
1939
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1940
1940
|
onChange: (e) => {
|
|
1941
1941
|
e.delete("srcset"), e.delete("noWebp");
|
|
1942
1942
|
function n(r, l = 6e4) {
|
|
1943
|
-
return new Promise((d,
|
|
1943
|
+
return new Promise((d, u) => {
|
|
1944
1944
|
const h = document.createElement("img");
|
|
1945
|
-
let
|
|
1945
|
+
let g = !1;
|
|
1946
1946
|
h.onload = () => {
|
|
1947
|
-
|
|
1948
|
-
}, h.addEventListener("error", (
|
|
1949
|
-
console.warn("Image load failed",
|
|
1947
|
+
g = !0, d(h);
|
|
1948
|
+
}, h.addEventListener("error", (c) => {
|
|
1949
|
+
console.warn("Image load failed", c.error), u(c.error);
|
|
1950
1950
|
}), h.src = r, setTimeout(() => {
|
|
1951
|
-
|
|
1951
|
+
g || u(new Error("Image load timed out"));
|
|
1952
1952
|
}, l);
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
@@ -2027,7 +2027,7 @@ const nn = {
|
|
|
2027
2027
|
shouldReceiveBuilderProps: {
|
|
2028
2028
|
builderBlock: !0
|
|
2029
2029
|
}
|
|
2030
|
-
},
|
|
2030
|
+
}, mn = {
|
|
2031
2031
|
name: "PersonalizationContainer",
|
|
2032
2032
|
shouldReceiveBuilderProps: {
|
|
2033
2033
|
builderBlock: !0,
|
|
@@ -2063,7 +2063,7 @@ const nn = {
|
|
|
2063
2063
|
}]
|
|
2064
2064
|
}]
|
|
2065
2065
|
};
|
|
2066
|
-
function
|
|
2066
|
+
function X(e) {
|
|
2067
2067
|
return /* @__PURE__ */ s(
|
|
2068
2068
|
"script",
|
|
2069
2069
|
{
|
|
@@ -2073,51 +2073,51 @@ function G(e) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
function a(
|
|
2078
|
-
return typeof
|
|
2076
|
+
function fn(e, t, n, i) {
|
|
2077
|
+
function a(u) {
|
|
2078
|
+
return typeof u == "string";
|
|
2079
2079
|
}
|
|
2080
|
-
function o(
|
|
2081
|
-
return typeof
|
|
2080
|
+
function o(u) {
|
|
2081
|
+
return typeof u == "number";
|
|
2082
2082
|
}
|
|
2083
|
-
function r(
|
|
2083
|
+
function r(u, h) {
|
|
2084
2084
|
return (() => {
|
|
2085
|
-
const
|
|
2085
|
+
const c = h.property, v = h.operator;
|
|
2086
2086
|
let f = h.value;
|
|
2087
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(
|
|
2087
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
|
|
2088
2088
|
return !0;
|
|
2089
2089
|
if (Array.isArray(f))
|
|
2090
|
-
return v === "isNot" ? f.every((S) => r(
|
|
2091
|
-
property:
|
|
2090
|
+
return v === "isNot" ? f.every((S) => r(u, {
|
|
2091
|
+
property: c,
|
|
2092
2092
|
operator: v,
|
|
2093
2093
|
value: S
|
|
2094
|
-
})) : !!f.find((S) => r(
|
|
2095
|
-
property:
|
|
2094
|
+
})) : !!f.find((S) => r(u, {
|
|
2095
|
+
property: c,
|
|
2096
2096
|
operator: v,
|
|
2097
2097
|
value: S
|
|
2098
2098
|
}));
|
|
2099
|
-
const
|
|
2100
|
-
if (Array.isArray(
|
|
2101
|
-
return
|
|
2099
|
+
const b = u[c];
|
|
2100
|
+
if (Array.isArray(b))
|
|
2101
|
+
return b.includes(f);
|
|
2102
2102
|
switch (v) {
|
|
2103
2103
|
case "is":
|
|
2104
|
-
return
|
|
2104
|
+
return b === f;
|
|
2105
2105
|
case "isNot":
|
|
2106
|
-
return
|
|
2106
|
+
return b !== f;
|
|
2107
2107
|
case "contains":
|
|
2108
|
-
return (a(
|
|
2108
|
+
return (a(b) || Array.isArray(b)) && b.includes(String(f));
|
|
2109
2109
|
case "startsWith":
|
|
2110
|
-
return a(
|
|
2110
|
+
return a(b) && b.startsWith(String(f));
|
|
2111
2111
|
case "endsWith":
|
|
2112
|
-
return a(
|
|
2112
|
+
return a(b) && b.endsWith(String(f));
|
|
2113
2113
|
case "greaterThan":
|
|
2114
|
-
return o(
|
|
2114
|
+
return o(b) && o(f) && b > f;
|
|
2115
2115
|
case "lessThan":
|
|
2116
|
-
return o(
|
|
2116
|
+
return o(b) && o(f) && b < f;
|
|
2117
2117
|
case "greaterThanOrEqualTo":
|
|
2118
|
-
return o(
|
|
2118
|
+
return o(b) && o(f) && b >= f;
|
|
2119
2119
|
case "lessThanOrEqualTo":
|
|
2120
|
-
return o(
|
|
2120
|
+
return o(b) && o(f) && b <= f;
|
|
2121
2121
|
default:
|
|
2122
2122
|
return !1;
|
|
2123
2123
|
}
|
|
@@ -2128,9 +2128,9 @@ function cn(e, t, n, i) {
|
|
|
2128
2128
|
startDate: n,
|
|
2129
2129
|
endDate: i
|
|
2130
2130
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
|
-
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((
|
|
2131
|
+
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((u) => r(e, u));
|
|
2132
2132
|
}
|
|
2133
|
-
const
|
|
2133
|
+
const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
2134
|
if (!navigator.cookieEnabled) {
|
|
2135
2135
|
return;
|
|
2136
2136
|
}
|
|
@@ -2183,7 +2183,7 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2183
2183
|
} else if (variants && variants.length > 0) {
|
|
2184
2184
|
removeVariants();
|
|
2185
2185
|
}
|
|
2186
|
-
}`,
|
|
2186
|
+
}`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2187
2187
|
function isString(val) {
|
|
2188
2188
|
return typeof val === 'string';
|
|
2189
2189
|
}
|
|
@@ -2262,10 +2262,10 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2262
2262
|
return objectMatchesQuery(userAttributes, filter);
|
|
2263
2263
|
});
|
|
2264
2264
|
}`;
|
|
2265
|
-
function
|
|
2266
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2265
|
+
function bn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || U());
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function pn({
|
|
2269
2269
|
variants: e,
|
|
2270
2270
|
previewingIndex: t,
|
|
2271
2271
|
isHydrated: n,
|
|
@@ -2277,12 +2277,12 @@ function fn({
|
|
|
2277
2277
|
blocks: a != null ? a : [],
|
|
2278
2278
|
path: "this.children"
|
|
2279
2279
|
};
|
|
2280
|
-
if (n &&
|
|
2280
|
+
if (n && A())
|
|
2281
2281
|
return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
|
|
2282
2282
|
blocks: e[t].blocks,
|
|
2283
2283
|
path: `component.options.variants.${t}.blocks`
|
|
2284
2284
|
} : o;
|
|
2285
|
-
if (
|
|
2285
|
+
if (U()) {
|
|
2286
2286
|
const l = i == null ? void 0 : i[0];
|
|
2287
2287
|
if (l)
|
|
2288
2288
|
return {
|
|
@@ -2292,42 +2292,42 @@ function fn({
|
|
|
2292
2292
|
}
|
|
2293
2293
|
return o;
|
|
2294
2294
|
}
|
|
2295
|
-
const
|
|
2295
|
+
const yn = (e, t, n) => `
|
|
2296
2296
|
(function() {
|
|
2297
|
-
${
|
|
2298
|
-
${
|
|
2297
|
+
${gn}
|
|
2298
|
+
${hn}
|
|
2299
2299
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2300
2300
|
})();
|
|
2301
2301
|
`;
|
|
2302
|
-
function
|
|
2303
|
-
var
|
|
2304
|
-
const t =
|
|
2305
|
-
() =>
|
|
2306
|
-
), [a, o] =
|
|
2302
|
+
function vn(e) {
|
|
2303
|
+
var b, S, p, k, C, P, w;
|
|
2304
|
+
const t = O(null), [n, i] = I(
|
|
2305
|
+
() => be.getUserAttributes()
|
|
2306
|
+
), [a, o] = I(
|
|
2307
2307
|
() => {
|
|
2308
|
-
var x, m,
|
|
2309
|
-
return
|
|
2308
|
+
var x, m, y;
|
|
2309
|
+
return yn(
|
|
2310
2310
|
e.variants,
|
|
2311
2311
|
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2312
|
-
(
|
|
2312
|
+
(y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
|
-
), [r, l] =
|
|
2315
|
+
), [r, l] = I(() => []), [d, u] = I(
|
|
2316
2316
|
() => {
|
|
2317
2317
|
var x;
|
|
2318
|
-
return
|
|
2318
|
+
return bn(
|
|
2319
2319
|
e.variants,
|
|
2320
|
-
|
|
2320
|
+
j((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
), [h,
|
|
2324
|
-
function
|
|
2323
|
+
), [h, g] = I(() => !1);
|
|
2324
|
+
function c() {
|
|
2325
2325
|
return (e.variants || []).filter((x) => {
|
|
2326
|
-
var m,
|
|
2327
|
-
return
|
|
2326
|
+
var m, y, T, E;
|
|
2327
|
+
return fn(
|
|
2328
2328
|
{
|
|
2329
|
-
...(
|
|
2330
|
-
locale: (
|
|
2329
|
+
...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
|
|
2330
|
+
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
2331
2331
|
} : {},
|
|
2332
2332
|
...n
|
|
2333
2333
|
},
|
|
@@ -2339,48 +2339,48 @@ function gn(e) {
|
|
|
2339
2339
|
}
|
|
2340
2340
|
function v() {
|
|
2341
2341
|
var x;
|
|
2342
|
-
return
|
|
2342
|
+
return pn({
|
|
2343
2343
|
variants: e.variants,
|
|
2344
2344
|
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2345
2345
|
isHydrated: h,
|
|
2346
|
-
filteredVariants:
|
|
2346
|
+
filteredVariants: c(),
|
|
2347
2347
|
previewingIndex: e.previewingIndex
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
2350
|
function f() {
|
|
2351
2351
|
return (e.variants || []).map(
|
|
2352
2352
|
(x, m) => {
|
|
2353
|
-
var
|
|
2354
|
-
return `[data-variant-id="${(
|
|
2353
|
+
var y;
|
|
2354
|
+
return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
|
|
2355
2355
|
}
|
|
2356
2356
|
).join("");
|
|
2357
2357
|
}
|
|
2358
|
-
return
|
|
2358
|
+
return V(() => {
|
|
2359
2359
|
var m;
|
|
2360
|
-
|
|
2361
|
-
const x =
|
|
2362
|
-
(
|
|
2363
|
-
i(
|
|
2360
|
+
g(!0);
|
|
2361
|
+
const x = be.subscribeOnUserAttributesChange(
|
|
2362
|
+
(y) => {
|
|
2363
|
+
i(y);
|
|
2364
2364
|
}
|
|
2365
2365
|
);
|
|
2366
|
-
if (!(
|
|
2367
|
-
const
|
|
2366
|
+
if (!(A() || Z())) {
|
|
2367
|
+
const y = c()[0];
|
|
2368
2368
|
t.current && (t.current.dispatchEvent(
|
|
2369
2369
|
new CustomEvent("builder.variantLoaded", {
|
|
2370
2370
|
detail: {
|
|
2371
|
-
variant:
|
|
2371
|
+
variant: y || "default",
|
|
2372
2372
|
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2373
2373
|
},
|
|
2374
2374
|
bubbles: !0
|
|
2375
2375
|
})
|
|
2376
|
-
), new IntersectionObserver((
|
|
2377
|
-
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2376
|
+
), new IntersectionObserver((E) => {
|
|
2377
|
+
E.forEach((N) => {
|
|
2378
|
+
var W;
|
|
2379
|
+
N.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
2380
|
new CustomEvent("builder.variantDisplayed", {
|
|
2381
2381
|
detail: {
|
|
2382
|
-
variant:
|
|
2383
|
-
content: (
|
|
2382
|
+
variant: y || "default",
|
|
2383
|
+
content: (W = e.builderContext) == null ? void 0 : W.content
|
|
2384
2384
|
},
|
|
2385
2385
|
bubbles: !0
|
|
2386
2386
|
})
|
|
@@ -2389,27 +2389,27 @@ function gn(e) {
|
|
|
2389
2389
|
}).observe(t.current));
|
|
2390
2390
|
}
|
|
2391
2391
|
r.push(x);
|
|
2392
|
-
}, []),
|
|
2392
|
+
}, []), V(() => () => {
|
|
2393
2393
|
r.forEach((x) => x());
|
|
2394
|
-
}, []), /* @__PURE__ */
|
|
2394
|
+
}, []), /* @__PURE__ */ B(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
ref: t,
|
|
2398
2398
|
...e.attributes,
|
|
2399
|
-
className: `builder-personalization-container ${((
|
|
2399
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2400
2400
|
children: [
|
|
2401
|
-
d ? /* @__PURE__ */
|
|
2401
|
+
d ? /* @__PURE__ */ B(R, { children: [
|
|
2402
2402
|
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2403
|
-
var
|
|
2403
|
+
var y, T;
|
|
2404
2404
|
return /* @__PURE__ */ s(
|
|
2405
2405
|
"template",
|
|
2406
2406
|
{
|
|
2407
|
-
"data-variant-id": `${(
|
|
2407
|
+
"data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
|
|
2408
2408
|
children: /* @__PURE__ */ s(
|
|
2409
|
-
|
|
2409
|
+
$,
|
|
2410
2410
|
{
|
|
2411
2411
|
blocks: x.blocks,
|
|
2412
|
-
parent: (
|
|
2412
|
+
parent: (T = e.builderBlock) == null ? void 0 : T.id,
|
|
2413
2413
|
path: `component.options.variants.${m}.blocks`
|
|
2414
2414
|
}
|
|
2415
2415
|
)
|
|
@@ -2418,15 +2418,15 @@ function gn(e) {
|
|
|
2418
2418
|
);
|
|
2419
2419
|
}),
|
|
2420
2420
|
/* @__PURE__ */ s(
|
|
2421
|
-
|
|
2421
|
+
K,
|
|
2422
2422
|
{
|
|
2423
|
-
nonce: ((
|
|
2423
|
+
nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
|
|
2424
2424
|
styles: f(),
|
|
2425
2425
|
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2426
2426
|
}
|
|
2427
2427
|
),
|
|
2428
2428
|
/* @__PURE__ */ s(
|
|
2429
|
-
|
|
2429
|
+
X,
|
|
2430
2430
|
{
|
|
2431
2431
|
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2432
2432
|
scriptStr: a,
|
|
@@ -2435,7 +2435,7 @@ function gn(e) {
|
|
|
2435
2435
|
)
|
|
2436
2436
|
] }) : null,
|
|
2437
2437
|
/* @__PURE__ */ s(
|
|
2438
|
-
|
|
2438
|
+
$,
|
|
2439
2439
|
{
|
|
2440
2440
|
blocks: v().blocks,
|
|
2441
2441
|
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
@@ -2446,7 +2446,7 @@ function gn(e) {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
|
-
const
|
|
2449
|
+
const xn = {
|
|
2450
2450
|
name: "Core:Section",
|
|
2451
2451
|
static: !0,
|
|
2452
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2485,7 +2485,7 @@ const bn = {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
}]
|
|
2488
|
-
},
|
|
2488
|
+
}, Sn = {
|
|
2489
2489
|
name: "Slot",
|
|
2490
2490
|
isRSC: !0,
|
|
2491
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2503,7 +2503,7 @@ const bn = {
|
|
|
2503
2503
|
builderComponents: !0
|
|
2504
2504
|
}
|
|
2505
2505
|
};
|
|
2506
|
-
function
|
|
2506
|
+
function kn(e) {
|
|
2507
2507
|
var t, n, i;
|
|
2508
2508
|
return /* @__PURE__ */ s(
|
|
2509
2509
|
"div",
|
|
@@ -2515,7 +2515,7 @@ function yn(e) {
|
|
|
2515
2515
|
"builder-slot": e.name
|
|
2516
2516
|
},
|
|
2517
2517
|
children: /* @__PURE__ */ s(
|
|
2518
|
-
|
|
2518
|
+
$,
|
|
2519
2519
|
{
|
|
2520
2520
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2521
2521
|
path: `symbol.data.${e.name}`,
|
|
@@ -2527,7 +2527,7 @@ function yn(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
2530
|
-
const
|
|
2530
|
+
const Cn = {
|
|
2531
2531
|
name: "Symbol",
|
|
2532
2532
|
noWrap: !0,
|
|
2533
2533
|
static: !0,
|
|
@@ -2566,7 +2566,7 @@ const vn = {
|
|
|
2566
2566
|
builderComponents: !0,
|
|
2567
2567
|
builderLinkComponent: !0
|
|
2568
2568
|
}
|
|
2569
|
-
},
|
|
2569
|
+
}, le = {
|
|
2570
2570
|
"@type": "@builder.io/sdk:Element",
|
|
2571
2571
|
responsiveStyles: {
|
|
2572
2572
|
large: {
|
|
@@ -2588,7 +2588,7 @@ const vn = {
|
|
|
2588
2588
|
text: "New tab"
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
},
|
|
2591
|
+
}, se = {
|
|
2592
2592
|
"@type": "@builder.io/sdk:Element",
|
|
2593
2593
|
responsiveStyles: {
|
|
2594
2594
|
large: {
|
|
@@ -2604,7 +2604,7 @@ const vn = {
|
|
|
2604
2604
|
text: "New tab content "
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
},
|
|
2607
|
+
}, Tn = {
|
|
2608
2608
|
name: "Builder: Tabs",
|
|
2609
2609
|
inputs: [{
|
|
2610
2610
|
name: "tabs",
|
|
@@ -2614,16 +2614,16 @@ const vn = {
|
|
|
2614
2614
|
name: "label",
|
|
2615
2615
|
type: "uiBlocks",
|
|
2616
2616
|
hideFromUI: !0,
|
|
2617
|
-
defaultValue: [
|
|
2617
|
+
defaultValue: [le]
|
|
2618
2618
|
}, {
|
|
2619
2619
|
name: "content",
|
|
2620
2620
|
type: "uiBlocks",
|
|
2621
2621
|
hideFromUI: !0,
|
|
2622
|
-
defaultValue: [
|
|
2622
|
+
defaultValue: [se]
|
|
2623
2623
|
}],
|
|
2624
2624
|
defaultValue: [{
|
|
2625
2625
|
label: [{
|
|
2626
|
-
...
|
|
2626
|
+
...le,
|
|
2627
2627
|
component: {
|
|
2628
2628
|
name: "Text",
|
|
2629
2629
|
options: {
|
|
@@ -2632,7 +2632,7 @@ const vn = {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
}],
|
|
2634
2634
|
content: [{
|
|
2635
|
-
...
|
|
2635
|
+
...se,
|
|
2636
2636
|
component: {
|
|
2637
2637
|
name: "Text",
|
|
2638
2638
|
options: {
|
|
@@ -2642,7 +2642,7 @@ const vn = {
|
|
|
2642
2642
|
}]
|
|
2643
2643
|
}, {
|
|
2644
2644
|
label: [{
|
|
2645
|
-
...
|
|
2645
|
+
...le,
|
|
2646
2646
|
component: {
|
|
2647
2647
|
name: "Text",
|
|
2648
2648
|
options: {
|
|
@@ -2651,7 +2651,7 @@ const vn = {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
}],
|
|
2653
2653
|
content: [{
|
|
2654
|
-
...
|
|
2654
|
+
...se,
|
|
2655
2655
|
component: {
|
|
2656
2656
|
name: "Text",
|
|
2657
2657
|
options: {
|
|
@@ -2708,9 +2708,9 @@ const vn = {
|
|
|
2708
2708
|
builderLinkComponent: !0
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
|
-
function
|
|
2711
|
+
function wn(e) {
|
|
2712
2712
|
var o;
|
|
2713
|
-
const [t, n] =
|
|
2713
|
+
const [t, n] = I(
|
|
2714
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2715
2715
|
);
|
|
2716
2716
|
function i(r) {
|
|
@@ -2719,7 +2719,7 @@ function Sn(e) {
|
|
|
2719
2719
|
function a(r) {
|
|
2720
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2721
2721
|
}
|
|
2722
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2723
2723
|
/* @__PURE__ */ s(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
@@ -2739,7 +2739,7 @@ function Sn(e) {
|
|
|
2739
2739
|
},
|
|
2740
2740
|
onClick: (d) => a(l),
|
|
2741
2741
|
children: /* @__PURE__ */ s(
|
|
2742
|
-
|
|
2742
|
+
$,
|
|
2743
2743
|
{
|
|
2744
2744
|
parent: e.builderBlock.id,
|
|
2745
2745
|
path: `tabs.${l}.label`,
|
|
@@ -2755,7 +2755,7 @@ function Sn(e) {
|
|
|
2755
2755
|
}
|
|
2756
2756
|
),
|
|
2757
2757
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2758
|
-
|
|
2758
|
+
$,
|
|
2759
2759
|
{
|
|
2760
2760
|
parent: e.builderBlock.id,
|
|
2761
2761
|
path: `tabs.${t}.content`,
|
|
@@ -2767,7 +2767,7 @@ function Sn(e) {
|
|
|
2767
2767
|
) }) : null
|
|
2768
2768
|
] });
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2770
|
+
const In = {
|
|
2771
2771
|
shouldReceiveBuilderProps: {
|
|
2772
2772
|
builderBlock: !1,
|
|
2773
2773
|
builderContext: !0
|
|
@@ -2790,7 +2790,7 @@ const kn = {
|
|
|
2790
2790
|
textAlign: "center"
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
|
-
function
|
|
2793
|
+
function En(e) {
|
|
2794
2794
|
var t;
|
|
2795
2795
|
return /* @__PURE__ */ s(
|
|
2796
2796
|
"div",
|
|
@@ -2803,7 +2803,7 @@ function Cn(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const Rn = {
|
|
2807
2807
|
name: "Custom Code",
|
|
2808
2808
|
static: !0,
|
|
2809
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2826,36 +2826,44 @@ const Tn = {
|
|
|
2826
2826
|
advanced: !0
|
|
2827
2827
|
}]
|
|
2828
2828
|
};
|
|
2829
|
-
function
|
|
2830
|
-
const t =
|
|
2831
|
-
|
|
2832
|
-
var
|
|
2833
|
-
if (!((
|
|
2829
|
+
function Pn(e) {
|
|
2830
|
+
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
|
|
2831
|
+
function r() {
|
|
2832
|
+
var d;
|
|
2833
|
+
if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
|
|
2834
2834
|
return;
|
|
2835
|
-
const
|
|
2836
|
-
for (let
|
|
2837
|
-
const
|
|
2838
|
-
if (
|
|
2839
|
-
if (n.includes(
|
|
2835
|
+
const l = t.current.getElementsByTagName("script");
|
|
2836
|
+
for (let u = 0; u < l.length; u++) {
|
|
2837
|
+
const h = l[u];
|
|
2838
|
+
if (h.src) {
|
|
2839
|
+
if (n.includes(h.src))
|
|
2840
2840
|
continue;
|
|
2841
|
-
n.push(
|
|
2842
|
-
const
|
|
2843
|
-
|
|
2844
|
-
} else if (!
|
|
2841
|
+
n.push(h.src);
|
|
2842
|
+
const g = document.createElement("script");
|
|
2843
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2844
|
+
} else if (!h.type || [
|
|
2845
2845
|
"text/javascript",
|
|
2846
2846
|
"application/javascript",
|
|
2847
2847
|
"application/ecmascript"
|
|
2848
|
-
].includes(
|
|
2849
|
-
if (a.includes(
|
|
2848
|
+
].includes(h.type)) {
|
|
2849
|
+
if (a.includes(h.innerText))
|
|
2850
2850
|
continue;
|
|
2851
2851
|
try {
|
|
2852
|
-
a.push(
|
|
2853
|
-
} catch (
|
|
2854
|
-
|
|
2852
|
+
a.push(h.innerText), new Function(h.innerText)();
|
|
2853
|
+
} catch (g) {
|
|
2854
|
+
_.warn(
|
|
2855
|
+
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2856
|
+
g
|
|
2857
|
+
);
|
|
2855
2858
|
}
|
|
2856
2859
|
}
|
|
2857
2860
|
}
|
|
2858
|
-
}
|
|
2861
|
+
}
|
|
2862
|
+
return V(() => {
|
|
2863
|
+
r();
|
|
2864
|
+
}, []), V(() => {
|
|
2865
|
+
A() && r();
|
|
2866
|
+
}, [e.code]), /* @__PURE__ */ s(
|
|
2859
2867
|
"div",
|
|
2860
2868
|
{
|
|
2861
2869
|
ref: t,
|
|
@@ -2864,7 +2872,7 @@ function wn(e) {
|
|
|
2864
2872
|
}
|
|
2865
2873
|
);
|
|
2866
2874
|
}
|
|
2867
|
-
const
|
|
2875
|
+
const Vn = {
|
|
2868
2876
|
name: "Embed",
|
|
2869
2877
|
static: !0,
|
|
2870
2878
|
inputs: [{
|
|
@@ -2879,28 +2887,28 @@ const In = {
|
|
|
2879
2887
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2888
|
hideFromUI: !0
|
|
2881
2889
|
}]
|
|
2882
|
-
},
|
|
2883
|
-
function
|
|
2884
|
-
const t =
|
|
2890
|
+
}, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], An = (e) => Bn.includes(e.type);
|
|
2891
|
+
function Nn(e) {
|
|
2892
|
+
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
|
|
2885
2893
|
function d() {
|
|
2886
2894
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2887
2895
|
return;
|
|
2888
|
-
const
|
|
2889
|
-
for (let h = 0; h <
|
|
2890
|
-
const
|
|
2891
|
-
if (
|
|
2892
|
-
n.push(
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
} else if (
|
|
2896
|
+
const u = t.current.getElementsByTagName("script");
|
|
2897
|
+
for (let h = 0; h < u.length; h++) {
|
|
2898
|
+
const g = u[h];
|
|
2899
|
+
if (g.src && !n.includes(g.src)) {
|
|
2900
|
+
n.push(g.src);
|
|
2901
|
+
const c = document.createElement("script");
|
|
2902
|
+
c.async = !0, c.src = g.src, document.head.appendChild(c);
|
|
2903
|
+
} else if (An(g) && !a.includes(g.innerText))
|
|
2896
2904
|
try {
|
|
2897
|
-
a.push(
|
|
2898
|
-
} catch (
|
|
2899
|
-
|
|
2905
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2906
|
+
} catch (c) {
|
|
2907
|
+
_.warn("[BUILDER.IO] `Embed`: Error running script:", c);
|
|
2900
2908
|
}
|
|
2901
2909
|
}
|
|
2902
2910
|
}
|
|
2903
|
-
return
|
|
2911
|
+
return V(() => {
|
|
2904
2912
|
t.current && !r && (l(!0), d());
|
|
2905
2913
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2906
2914
|
"div",
|
|
@@ -2911,7 +2919,7 @@ function Pn(e) {
|
|
|
2911
2919
|
}
|
|
2912
2920
|
);
|
|
2913
2921
|
}
|
|
2914
|
-
const
|
|
2922
|
+
const Wn = {
|
|
2915
2923
|
name: "Form:Form",
|
|
2916
2924
|
// editableTags: ['builder-form-error']
|
|
2917
2925
|
defaults: {
|
|
@@ -3148,118 +3156,118 @@ const Vn = {
|
|
|
3148
3156
|
builderComponents: !0,
|
|
3149
3157
|
builderLinkComponent: !0
|
|
3150
3158
|
}
|
|
3151
|
-
},
|
|
3159
|
+
}, Dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
|
|
3152
3160
|
const e = process.env.NODE_ENV || "production";
|
|
3153
|
-
return
|
|
3161
|
+
return Dn.includes(e) ? e : "production";
|
|
3154
3162
|
};
|
|
3155
|
-
function
|
|
3156
|
-
const t =
|
|
3157
|
-
function d(
|
|
3163
|
+
function Fn(e) {
|
|
3164
|
+
const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
|
|
3165
|
+
function d(g) {
|
|
3158
3166
|
var v, f;
|
|
3159
|
-
const
|
|
3167
|
+
const c = {
|
|
3160
3168
|
...e.builderContext.rootState,
|
|
3161
|
-
...
|
|
3169
|
+
...g
|
|
3162
3170
|
};
|
|
3163
|
-
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v,
|
|
3171
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
|
|
3164
3172
|
}
|
|
3165
|
-
function
|
|
3166
|
-
return
|
|
3173
|
+
function u() {
|
|
3174
|
+
return A() && e.previewState || n;
|
|
3167
3175
|
}
|
|
3168
|
-
function h(
|
|
3176
|
+
function h(g) {
|
|
3169
3177
|
var v;
|
|
3170
|
-
const
|
|
3178
|
+
const c = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3171
3179
|
if (e.sendSubmissionsTo === "zapier")
|
|
3172
|
-
|
|
3173
|
-
else if (
|
|
3180
|
+
g.preventDefault();
|
|
3181
|
+
else if (c) {
|
|
3174
3182
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3175
|
-
|
|
3183
|
+
g.preventDefault();
|
|
3176
3184
|
return;
|
|
3177
3185
|
}
|
|
3178
|
-
|
|
3179
|
-
const f =
|
|
3186
|
+
g.preventDefault();
|
|
3187
|
+
const f = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3180
3188
|
let S;
|
|
3181
|
-
const
|
|
3182
|
-
let
|
|
3183
|
-
const
|
|
3189
|
+
const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3190
|
+
let y;
|
|
3191
|
+
const T = m.name;
|
|
3184
3192
|
if (m instanceof HTMLInputElement)
|
|
3185
3193
|
if (m.type === "radio") {
|
|
3186
3194
|
if (m.checked)
|
|
3187
|
-
return
|
|
3188
|
-
key:
|
|
3189
|
-
value:
|
|
3195
|
+
return y = m.name, {
|
|
3196
|
+
key: T,
|
|
3197
|
+
value: y
|
|
3190
3198
|
};
|
|
3191
3199
|
} else if (m.type === "checkbox")
|
|
3192
|
-
|
|
3200
|
+
y = m.checked;
|
|
3193
3201
|
else if (m.type === "number" || m.type === "range") {
|
|
3194
|
-
const
|
|
3195
|
-
isNaN(
|
|
3202
|
+
const E = m.valueAsNumber;
|
|
3203
|
+
isNaN(E) || (y = E);
|
|
3196
3204
|
} else
|
|
3197
|
-
m.type === "file" ?
|
|
3205
|
+
m.type === "file" ? y = m.files : y = m.value;
|
|
3198
3206
|
else
|
|
3199
|
-
|
|
3207
|
+
y = m.value;
|
|
3200
3208
|
return {
|
|
3201
|
-
key:
|
|
3202
|
-
value:
|
|
3209
|
+
key: T,
|
|
3210
|
+
value: y
|
|
3203
3211
|
};
|
|
3204
3212
|
});
|
|
3205
3213
|
let C = e.contentType;
|
|
3206
3214
|
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3207
3215
|
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
3216
|
}), C !== "application/json")
|
|
3209
|
-
S =
|
|
3217
|
+
S = p;
|
|
3210
3218
|
else {
|
|
3211
3219
|
const m = {};
|
|
3212
|
-
Array.from(k).forEach(({ value:
|
|
3213
|
-
|
|
3220
|
+
Array.from(k).forEach(({ value: y, key: T }) => {
|
|
3221
|
+
Oe(m, T, y);
|
|
3214
3222
|
}), S = JSON.stringify(m);
|
|
3215
3223
|
}
|
|
3216
|
-
C && C !== "multipart/form-data" && (
|
|
3224
|
+
C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
|
|
3217
3225
|
const P = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3218
3226
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3219
3227
|
return;
|
|
3220
3228
|
i("sending");
|
|
3221
|
-
const w = `${
|
|
3229
|
+
const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3222
3230
|
e.sendSubmissionsToEmail || ""
|
|
3223
3231
|
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
-
|
|
3232
|
+
Ve(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
|
|
3225
3233
|
async (m) => {
|
|
3226
|
-
let
|
|
3227
|
-
const
|
|
3228
|
-
if (
|
|
3229
|
-
let
|
|
3230
|
-
|
|
3234
|
+
let y;
|
|
3235
|
+
const T = m.headers.get("content-type");
|
|
3236
|
+
if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3237
|
+
let E = De(y, e.errorMessagePath);
|
|
3238
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3231
3239
|
}
|
|
3232
|
-
if (o(
|
|
3233
|
-
const
|
|
3234
|
-
detail: { res: m, body:
|
|
3240
|
+
if (o(y), i(m.ok ? "success" : "error"), m.ok) {
|
|
3241
|
+
const E = new CustomEvent("submit:success", {
|
|
3242
|
+
detail: { res: m, body: y }
|
|
3235
3243
|
});
|
|
3236
3244
|
if (t.current) {
|
|
3237
|
-
if (t.current.dispatchEvent(
|
|
3245
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
3238
3246
|
return;
|
|
3239
3247
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3240
3248
|
}
|
|
3241
3249
|
if (e.successUrl)
|
|
3242
3250
|
if (t.current) {
|
|
3243
|
-
const
|
|
3251
|
+
const N = new CustomEvent("route", {
|
|
3244
3252
|
detail: { url: e.successUrl }
|
|
3245
3253
|
});
|
|
3246
|
-
t.current.dispatchEvent(
|
|
3254
|
+
t.current.dispatchEvent(N), N.defaultPrevented || (location.href = e.successUrl);
|
|
3247
3255
|
} else
|
|
3248
3256
|
location.href = e.successUrl;
|
|
3249
3257
|
}
|
|
3250
3258
|
},
|
|
3251
3259
|
(m) => {
|
|
3252
|
-
const
|
|
3260
|
+
const y = new CustomEvent("submit:error", {
|
|
3253
3261
|
detail: { error: m }
|
|
3254
3262
|
});
|
|
3255
|
-
t.current && (t.current.dispatchEvent(
|
|
3263
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (o(m), i("error"));
|
|
3256
3264
|
}
|
|
3257
3265
|
);
|
|
3258
3266
|
}
|
|
3259
3267
|
}
|
|
3260
|
-
return /* @__PURE__ */
|
|
3268
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
3261
3269
|
" ",
|
|
3262
|
-
/* @__PURE__ */
|
|
3270
|
+
/* @__PURE__ */ B(
|
|
3263
3271
|
"form",
|
|
3264
3272
|
{
|
|
3265
3273
|
validate: e.validate,
|
|
@@ -3267,29 +3275,29 @@ function An(e) {
|
|
|
3267
3275
|
action: !e.sendWithJs && e.action,
|
|
3268
3276
|
method: e.method,
|
|
3269
3277
|
name: e.name,
|
|
3270
|
-
onSubmit: (
|
|
3278
|
+
onSubmit: (g) => h(g),
|
|
3271
3279
|
...e.attributes,
|
|
3272
3280
|
children: [
|
|
3273
3281
|
e.children,
|
|
3274
|
-
|
|
3275
|
-
|
|
3282
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
3283
|
+
$,
|
|
3276
3284
|
{
|
|
3277
3285
|
path: "errorMessage",
|
|
3278
3286
|
blocks: e.errorMessage,
|
|
3279
3287
|
context: e.builderContext
|
|
3280
3288
|
}
|
|
3281
3289
|
) : null,
|
|
3282
|
-
|
|
3283
|
-
|
|
3290
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
3291
|
+
$,
|
|
3284
3292
|
{
|
|
3285
3293
|
path: "sendingMessage",
|
|
3286
3294
|
blocks: e.sendingMessage,
|
|
3287
3295
|
context: e.builderContext
|
|
3288
3296
|
}
|
|
3289
3297
|
) : null,
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3298
|
+
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3299
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
3300
|
+
$,
|
|
3293
3301
|
{
|
|
3294
3302
|
path: "successMessage",
|
|
3295
3303
|
blocks: e.successMessage,
|
|
@@ -3304,7 +3312,7 @@ function An(e) {
|
|
|
3304
3312
|
" "
|
|
3305
3313
|
] });
|
|
3306
3314
|
}
|
|
3307
|
-
const
|
|
3315
|
+
const On = {
|
|
3308
3316
|
name: "Form:Input",
|
|
3309
3317
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3310
3318
|
inputs: [
|
|
@@ -3356,12 +3364,12 @@ const Wn = {
|
|
|
3356
3364
|
borderColor: "#ccc"
|
|
3357
3365
|
}
|
|
3358
3366
|
};
|
|
3359
|
-
function
|
|
3360
|
-
return /* @__PURE__ */
|
|
3367
|
+
function Ln(e) {
|
|
3368
|
+
return /* @__PURE__ */ Ne(
|
|
3361
3369
|
"input",
|
|
3362
3370
|
{
|
|
3363
3371
|
...e.attributes,
|
|
3364
|
-
key:
|
|
3372
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3365
3373
|
placeholder: e.placeholder,
|
|
3366
3374
|
type: e.type,
|
|
3367
3375
|
name: e.name,
|
|
@@ -3371,7 +3379,7 @@ function Dn(e) {
|
|
|
3371
3379
|
}
|
|
3372
3380
|
);
|
|
3373
3381
|
}
|
|
3374
|
-
const
|
|
3382
|
+
const Un = {
|
|
3375
3383
|
name: "Form:Select",
|
|
3376
3384
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3377
3385
|
defaultStyles: {
|
|
@@ -3414,14 +3422,14 @@ const $n = {
|
|
|
3414
3422
|
static: !0,
|
|
3415
3423
|
noWrap: !0
|
|
3416
3424
|
};
|
|
3417
|
-
function
|
|
3425
|
+
function _n(e) {
|
|
3418
3426
|
var t;
|
|
3419
|
-
return /* @__PURE__ */
|
|
3427
|
+
return /* @__PURE__ */ Ne(
|
|
3420
3428
|
"select",
|
|
3421
3429
|
{
|
|
3422
3430
|
...e.attributes,
|
|
3423
3431
|
value: e.value,
|
|
3424
|
-
key:
|
|
3432
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3425
3433
|
defaultValue: e.defaultValue,
|
|
3426
3434
|
name: e.name,
|
|
3427
3435
|
required: e.required
|
|
@@ -3429,7 +3437,7 @@ function Fn(e) {
|
|
|
3429
3437
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3430
3438
|
);
|
|
3431
3439
|
}
|
|
3432
|
-
const
|
|
3440
|
+
const qn = {
|
|
3433
3441
|
name: "Form:SubmitButton",
|
|
3434
3442
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3435
3443
|
defaultStyles: {
|
|
@@ -3455,10 +3463,10 @@ const On = {
|
|
|
3455
3463
|
// TODO: defaultChildren
|
|
3456
3464
|
// canHaveChildren: true,
|
|
3457
3465
|
};
|
|
3458
|
-
function
|
|
3466
|
+
function Mn(e) {
|
|
3459
3467
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3460
3468
|
}
|
|
3461
|
-
const
|
|
3469
|
+
const Hn = {
|
|
3462
3470
|
name: "Form:TextArea",
|
|
3463
3471
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3464
3472
|
inputs: [{
|
|
@@ -3495,7 +3503,7 @@ const Un = {
|
|
|
3495
3503
|
static: !0,
|
|
3496
3504
|
noWrap: !0
|
|
3497
3505
|
};
|
|
3498
|
-
function
|
|
3506
|
+
function jn(e) {
|
|
3499
3507
|
return /* @__PURE__ */ s(
|
|
3500
3508
|
"textarea",
|
|
3501
3509
|
{
|
|
@@ -3508,7 +3516,7 @@ function _n(e) {
|
|
|
3508
3516
|
}
|
|
3509
3517
|
);
|
|
3510
3518
|
}
|
|
3511
|
-
const
|
|
3519
|
+
const zn = {
|
|
3512
3520
|
// friendlyName?
|
|
3513
3521
|
name: "Raw:Img",
|
|
3514
3522
|
hideFromInsertMenu: !0,
|
|
@@ -3517,13 +3525,13 @@ const qn = {
|
|
|
3517
3525
|
name: "image",
|
|
3518
3526
|
bubble: !0,
|
|
3519
3527
|
type: "file",
|
|
3520
|
-
allowedFileTypes:
|
|
3528
|
+
allowedFileTypes: he,
|
|
3521
3529
|
required: !0
|
|
3522
3530
|
}],
|
|
3523
3531
|
noWrap: !0,
|
|
3524
3532
|
static: !0
|
|
3525
3533
|
};
|
|
3526
|
-
function
|
|
3534
|
+
function Kn(e) {
|
|
3527
3535
|
return /* @__PURE__ */ s(
|
|
3528
3536
|
"img",
|
|
3529
3537
|
{
|
|
@@ -3535,10 +3543,10 @@ function Mn(e) {
|
|
|
3535
3543
|
src: e.imgSrc || e.image,
|
|
3536
3544
|
...e.attributes
|
|
3537
3545
|
},
|
|
3538
|
-
|
|
3546
|
+
A() && e.imgSrc || "default-key"
|
|
3539
3547
|
);
|
|
3540
3548
|
}
|
|
3541
|
-
const
|
|
3549
|
+
const Jn = {
|
|
3542
3550
|
name: "Video",
|
|
3543
3551
|
canHaveChildren: !0,
|
|
3544
3552
|
defaultStyles: {
|
|
@@ -3549,14 +3557,14 @@ const Hn = {
|
|
|
3549
3557
|
inputs: [{
|
|
3550
3558
|
name: "video",
|
|
3551
3559
|
type: "file",
|
|
3552
|
-
allowedFileTypes:
|
|
3560
|
+
allowedFileTypes: un,
|
|
3553
3561
|
bubble: !0,
|
|
3554
3562
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3555
3563
|
required: !0
|
|
3556
3564
|
}, {
|
|
3557
3565
|
name: "posterImage",
|
|
3558
3566
|
type: "file",
|
|
3559
|
-
allowedFileTypes:
|
|
3567
|
+
allowedFileTypes: he,
|
|
3560
3568
|
helperText: "Image to show before the video plays"
|
|
3561
3569
|
}, {
|
|
3562
3570
|
name: "autoPlay",
|
|
@@ -3623,9 +3631,9 @@ const Hn = {
|
|
|
3623
3631
|
builderBlock: !0
|
|
3624
3632
|
}
|
|
3625
3633
|
};
|
|
3626
|
-
function
|
|
3627
|
-
var r, l, d,
|
|
3628
|
-
const t =
|
|
3634
|
+
function Gn(e) {
|
|
3635
|
+
var r, l, d, u, h, g, c;
|
|
3636
|
+
const t = O(null);
|
|
3629
3637
|
function n() {
|
|
3630
3638
|
return {
|
|
3631
3639
|
...e.autoPlay === !0 ? {
|
|
@@ -3650,32 +3658,32 @@ function jn(e) {
|
|
|
3650
3658
|
...n()
|
|
3651
3659
|
};
|
|
3652
3660
|
}
|
|
3653
|
-
const [a, o] =
|
|
3661
|
+
const [a, o] = I(() => {
|
|
3654
3662
|
});
|
|
3655
|
-
return
|
|
3663
|
+
return V(() => {
|
|
3656
3664
|
if (e.lazyLoad) {
|
|
3657
3665
|
const v = new IntersectionObserver(function(f) {
|
|
3658
|
-
f.forEach(function(
|
|
3659
|
-
if (!
|
|
3666
|
+
f.forEach(function(b) {
|
|
3667
|
+
if (!b.isIntersecting)
|
|
3660
3668
|
return;
|
|
3661
|
-
const S =
|
|
3669
|
+
const S = b.target;
|
|
3662
3670
|
try {
|
|
3663
3671
|
Array.from(S.children).filter(
|
|
3664
|
-
(
|
|
3665
|
-
).forEach((
|
|
3666
|
-
const k =
|
|
3667
|
-
k && (
|
|
3672
|
+
(p) => p instanceof HTMLElement && p.tagName === "SOURCE"
|
|
3673
|
+
).forEach((p) => {
|
|
3674
|
+
const k = p.dataset.src;
|
|
3675
|
+
k && (p.src = k);
|
|
3668
3676
|
}), S.load(), v.unobserve(S);
|
|
3669
|
-
} catch (
|
|
3670
|
-
console.error("Error loading lazy video:",
|
|
3677
|
+
} catch (p) {
|
|
3678
|
+
console.error("Error loading lazy video:", p);
|
|
3671
3679
|
}
|
|
3672
3680
|
});
|
|
3673
3681
|
});
|
|
3674
3682
|
t.current && v.observe(t.current), o(v);
|
|
3675
3683
|
}
|
|
3676
|
-
}, []),
|
|
3684
|
+
}, []), V(() => () => {
|
|
3677
3685
|
a && a.disconnect();
|
|
3678
|
-
}, []), /* @__PURE__ */
|
|
3686
|
+
}, []), /* @__PURE__ */ B(
|
|
3679
3687
|
"div",
|
|
3680
3688
|
{
|
|
3681
3689
|
style: {
|
|
@@ -3727,7 +3735,7 @@ function jn(e) {
|
|
|
3727
3735
|
}
|
|
3728
3736
|
}
|
|
3729
3737
|
) : null,
|
|
3730
|
-
(h = (
|
|
3738
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3731
3739
|
"div",
|
|
3732
3740
|
{
|
|
3733
3741
|
style: {
|
|
@@ -3738,7 +3746,7 @@ function jn(e) {
|
|
|
3738
3746
|
children: e.children
|
|
3739
3747
|
}
|
|
3740
3748
|
) : null,
|
|
3741
|
-
(
|
|
3749
|
+
(c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3742
3750
|
"div",
|
|
3743
3751
|
{
|
|
3744
3752
|
style: {
|
|
@@ -3759,67 +3767,67 @@ function jn(e) {
|
|
|
3759
3767
|
}
|
|
3760
3768
|
);
|
|
3761
3769
|
}
|
|
3762
|
-
const
|
|
3763
|
-
component: wn,
|
|
3764
|
-
...Tn
|
|
3765
|
-
}, {
|
|
3770
|
+
const Qn = () => [{
|
|
3766
3771
|
component: Pn,
|
|
3767
|
-
...
|
|
3772
|
+
...Rn
|
|
3768
3773
|
}, {
|
|
3769
|
-
component:
|
|
3774
|
+
component: Nn,
|
|
3770
3775
|
...Vn
|
|
3771
3776
|
}, {
|
|
3772
|
-
component:
|
|
3777
|
+
component: Fn,
|
|
3773
3778
|
...Wn
|
|
3774
3779
|
}, {
|
|
3775
3780
|
component: Ln,
|
|
3776
3781
|
...On
|
|
3777
3782
|
}, {
|
|
3778
|
-
component:
|
|
3779
|
-
|
|
3783
|
+
component: Mn,
|
|
3784
|
+
...qn
|
|
3780
3785
|
}, {
|
|
3781
3786
|
component: _n,
|
|
3782
3787
|
...Un
|
|
3783
|
-
}, {
|
|
3784
|
-
component: Mn,
|
|
3785
|
-
...qn
|
|
3786
3788
|
}, {
|
|
3787
3789
|
component: jn,
|
|
3788
3790
|
...Hn
|
|
3789
|
-
}], ke = () => [{
|
|
3790
|
-
component: it,
|
|
3791
|
-
...nn
|
|
3792
3791
|
}, {
|
|
3793
|
-
component:
|
|
3794
|
-
...
|
|
3792
|
+
component: Kn,
|
|
3793
|
+
...zn
|
|
3795
3794
|
}, {
|
|
3796
|
-
component:
|
|
3797
|
-
...
|
|
3795
|
+
component: Gn,
|
|
3796
|
+
...Jn
|
|
3797
|
+
}], we = () => [{
|
|
3798
|
+
component: lt,
|
|
3799
|
+
...ln
|
|
3798
3800
|
}, {
|
|
3799
3801
|
component: Xt,
|
|
3800
|
-
...
|
|
3802
|
+
...sn
|
|
3801
3803
|
}, {
|
|
3802
3804
|
component: Zt,
|
|
3803
|
-
...
|
|
3805
|
+
...cn
|
|
3804
3806
|
}, {
|
|
3805
|
-
component:
|
|
3806
|
-
...
|
|
3807
|
+
component: nn,
|
|
3808
|
+
...dn
|
|
3807
3809
|
}, {
|
|
3808
|
-
component:
|
|
3809
|
-
...
|
|
3810
|
+
component: an,
|
|
3811
|
+
...xn
|
|
3810
3812
|
}, {
|
|
3811
|
-
component:
|
|
3812
|
-
...
|
|
3813
|
+
component: kn,
|
|
3814
|
+
...Sn
|
|
3813
3815
|
}, {
|
|
3814
|
-
component:
|
|
3815
|
-
...
|
|
3816
|
+
component: Si,
|
|
3817
|
+
...Cn
|
|
3816
3818
|
}, {
|
|
3817
|
-
component:
|
|
3818
|
-
...
|
|
3819
|
+
component: En,
|
|
3820
|
+
...In
|
|
3819
3821
|
}, {
|
|
3820
|
-
component:
|
|
3821
|
-
...
|
|
3822
|
-
},
|
|
3822
|
+
component: vn,
|
|
3823
|
+
...mn
|
|
3824
|
+
}, {
|
|
3825
|
+
component: wn,
|
|
3826
|
+
...Tn
|
|
3827
|
+
}, {
|
|
3828
|
+
component: rn,
|
|
3829
|
+
...on
|
|
3830
|
+
}, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3823
3831
|
function getAndSetVariantId() {
|
|
3824
3832
|
function setCookie(name, value, days) {
|
|
3825
3833
|
let expires = '';
|
|
@@ -3861,7 +3869,10 @@ const zn = () => [{
|
|
|
3861
3869
|
return contentId;
|
|
3862
3870
|
}
|
|
3863
3871
|
const winningVariantId = getAndSetVariantId();
|
|
3864
|
-
|
|
3872
|
+
let styleEl = document.currentScript?.previousElementSibling;
|
|
3873
|
+
if (isAngularSDK) {
|
|
3874
|
+
styleEl = document.currentScript?.parentElement?.previousElementSibling?.querySelector('style');
|
|
3875
|
+
}
|
|
3865
3876
|
if (isHydrationTarget) {
|
|
3866
3877
|
styleEl.remove();
|
|
3867
3878
|
const thisScriptEl = document.currentScript;
|
|
@@ -3875,7 +3886,7 @@ const zn = () => [{
|
|
|
3875
3886
|
}).join('');
|
|
3876
3887
|
styleEl.innerHTML = newStyleStr;
|
|
3877
3888
|
}
|
|
3878
|
-
}`,
|
|
3889
|
+
}`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3879
3890
|
if (!navigator.cookieEnabled) {
|
|
3880
3891
|
return;
|
|
3881
3892
|
}
|
|
@@ -3909,29 +3920,29 @@ const zn = () => [{
|
|
|
3909
3920
|
thisScriptEl?.remove();
|
|
3910
3921
|
}
|
|
3911
3922
|
return;
|
|
3912
|
-
}`,
|
|
3923
|
+
}`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3913
3924
|
...t,
|
|
3914
3925
|
testVariationId: t.id,
|
|
3915
3926
|
id: e == null ? void 0 : e.id
|
|
3916
|
-
})),
|
|
3927
|
+
})), Zn = ({
|
|
3917
3928
|
canTrack: e,
|
|
3918
3929
|
content: t
|
|
3919
|
-
}) => !(!(
|
|
3920
|
-
window.${
|
|
3921
|
-
window.${
|
|
3922
|
-
`,
|
|
3923
|
-
window.${
|
|
3924
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3925
|
-
)`,
|
|
3930
|
+
}) => !(!(G(t).length > 0) || !e || U()), ei = (e) => e === "react" || e === "reactNative", ti = L === "angular", Qe = ei(L), ni = () => `
|
|
3931
|
+
window.${Je} = ${Yn}
|
|
3932
|
+
window.${Ge} = ${Xn}
|
|
3933
|
+
`, ii = (e, t) => `
|
|
3934
|
+
window.${Je}(
|
|
3935
|
+
"${t}",${JSON.stringify(e)}, ${Qe}, ${ti}
|
|
3936
|
+
)`, ai = ({
|
|
3926
3937
|
contentId: e,
|
|
3927
3938
|
variationId: t
|
|
3928
|
-
}) => `window.${
|
|
3929
|
-
"${t}", "${e}", ${
|
|
3939
|
+
}) => `window.${Ge}(
|
|
3940
|
+
"${t}", "${e}", ${Qe}
|
|
3930
3941
|
)`;
|
|
3931
|
-
function
|
|
3942
|
+
function Ie(e) {
|
|
3932
3943
|
return Math.round(e * 1e3) / 1e3;
|
|
3933
3944
|
}
|
|
3934
|
-
const
|
|
3945
|
+
const oi = (e, t, n = !0) => {
|
|
3935
3946
|
if (!(e instanceof HTMLElement))
|
|
3936
3947
|
return null;
|
|
3937
3948
|
let i = n ? e : e.parentElement;
|
|
@@ -3942,35 +3953,35 @@ const ei = (e, t, n = !0) => {
|
|
|
3942
3953
|
return i;
|
|
3943
3954
|
} while (i = i.parentElement);
|
|
3944
3955
|
return null;
|
|
3945
|
-
},
|
|
3956
|
+
}, ri = (e) => oi(e, (t) => {
|
|
3946
3957
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3947
3958
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3948
|
-
}),
|
|
3959
|
+
}), Ee = ({
|
|
3949
3960
|
event: e,
|
|
3950
3961
|
target: t
|
|
3951
3962
|
}) => {
|
|
3952
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o =
|
|
3963
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ie(i / n.width), r = Ie(a / n.height);
|
|
3953
3964
|
return {
|
|
3954
3965
|
x: o,
|
|
3955
3966
|
y: r
|
|
3956
3967
|
};
|
|
3957
|
-
},
|
|
3958
|
-
const t = e.target, n = t &&
|
|
3968
|
+
}, li = (e) => {
|
|
3969
|
+
const t = e.target, n = t && ri(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3959
3970
|
return {
|
|
3960
3971
|
targetBuilderElement: i || void 0,
|
|
3961
3972
|
metadata: {
|
|
3962
|
-
targetOffset: t ?
|
|
3973
|
+
targetOffset: t ? Ee({
|
|
3963
3974
|
event: e,
|
|
3964
3975
|
target: t
|
|
3965
3976
|
}) : void 0,
|
|
3966
|
-
builderTargetOffset: n ?
|
|
3977
|
+
builderTargetOffset: n ? Ee({
|
|
3967
3978
|
event: e,
|
|
3968
3979
|
target: n
|
|
3969
3980
|
}) : void 0,
|
|
3970
3981
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3971
3982
|
}
|
|
3972
3983
|
};
|
|
3973
|
-
},
|
|
3984
|
+
}, si = ["svelte", "qwik", "vue"], Re = () => si.includes(L) && (A() || Z()), ci = (e) => {
|
|
3974
3985
|
var o, r;
|
|
3975
3986
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
3976
3987
|
let a = "";
|
|
@@ -3985,26 +3996,26 @@ font-weight: 400;
|
|
|
3985
3996
|
for (const l in e.files) {
|
|
3986
3997
|
if (!(String(Number(l)) === l))
|
|
3987
3998
|
continue;
|
|
3988
|
-
const
|
|
3989
|
-
|
|
3999
|
+
const u = e.files[l];
|
|
4000
|
+
u && u !== i && (a += `
|
|
3990
4001
|
@font-face {
|
|
3991
4002
|
font-family: "${t}";
|
|
3992
|
-
src: url('${
|
|
4003
|
+
src: url('${u}') format('woff2');
|
|
3993
4004
|
font-display: fallback;
|
|
3994
4005
|
font-weight: ${l};
|
|
3995
4006
|
}
|
|
3996
4007
|
`.trim());
|
|
3997
4008
|
}
|
|
3998
4009
|
return a;
|
|
3999
|
-
},
|
|
4010
|
+
}, ui = ({
|
|
4000
4011
|
customFonts: e
|
|
4001
4012
|
}) => {
|
|
4002
4013
|
var t;
|
|
4003
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4004
|
-
},
|
|
4014
|
+
return ((t = e == null ? void 0 : e.map((n) => ci(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4015
|
+
}, di = ({
|
|
4005
4016
|
cssCode: e,
|
|
4006
4017
|
contentId: t
|
|
4007
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4018
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", mi = `
|
|
4008
4019
|
.builder-button {
|
|
4009
4020
|
all: unset;
|
|
4010
4021
|
}
|
|
@@ -4021,23 +4032,24 @@ font-weight: ${l};
|
|
|
4021
4032
|
text-align: inherit;
|
|
4022
4033
|
font-family: inherit;
|
|
4023
4034
|
}
|
|
4024
|
-
`,
|
|
4025
|
-
function
|
|
4035
|
+
`, fi = (e) => e ? "" : mi, hi = (e) => `variant-${e}`;
|
|
4036
|
+
function gi(e) {
|
|
4026
4037
|
var k, C, P;
|
|
4027
|
-
const t =
|
|
4038
|
+
const t = O(null);
|
|
4039
|
+
I(() => !1);
|
|
4028
4040
|
function n(w) {
|
|
4029
|
-
var m,
|
|
4041
|
+
var m, y;
|
|
4030
4042
|
const x = {
|
|
4031
4043
|
...e.builderContextSignal.rootState,
|
|
4032
4044
|
...w
|
|
4033
4045
|
};
|
|
4034
|
-
e.builderContextSignal.rootSetState ? (
|
|
4035
|
-
...
|
|
4046
|
+
e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
|
|
4047
|
+
...T,
|
|
4036
4048
|
rootState: x
|
|
4037
4049
|
}));
|
|
4038
4050
|
}
|
|
4039
4051
|
function i(w) {
|
|
4040
|
-
var m,
|
|
4052
|
+
var m, y, T, E, N;
|
|
4041
4053
|
const x = {
|
|
4042
4054
|
...e.builderContextSignal.content,
|
|
4043
4055
|
...w,
|
|
@@ -4046,13 +4058,13 @@ function ui(e) {
|
|
|
4046
4058
|
...w == null ? void 0 : w.data
|
|
4047
4059
|
},
|
|
4048
4060
|
meta: {
|
|
4049
|
-
...(
|
|
4061
|
+
...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
|
|
4050
4062
|
...w == null ? void 0 : w.meta,
|
|
4051
|
-
breakpoints: ((
|
|
4063
|
+
breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((N = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : N.breakpoints)
|
|
4052
4064
|
}
|
|
4053
4065
|
};
|
|
4054
|
-
e.setBuilderContextSignal((
|
|
4055
|
-
...
|
|
4066
|
+
e.setBuilderContextSignal((W) => ({
|
|
4067
|
+
...W,
|
|
4056
4068
|
content: x
|
|
4057
4069
|
}));
|
|
4058
4070
|
}
|
|
@@ -4062,25 +4074,25 @@ function ui(e) {
|
|
|
4062
4074
|
"aria-hidden": !0
|
|
4063
4075
|
};
|
|
4064
4076
|
}
|
|
4065
|
-
const [o, r] =
|
|
4077
|
+
const [o, r] = I(
|
|
4066
4078
|
() => e.contentWrapper || "div"
|
|
4067
4079
|
);
|
|
4068
4080
|
function l(w) {
|
|
4069
|
-
return
|
|
4081
|
+
return nt({
|
|
4070
4082
|
model: e.model,
|
|
4071
4083
|
trustedHosts: e.trustedHosts,
|
|
4072
4084
|
callbacks: {
|
|
4073
4085
|
configureSdk: (x) => {
|
|
4074
|
-
var
|
|
4075
|
-
const { breakpoints: m, contentId:
|
|
4076
|
-
!
|
|
4086
|
+
var T;
|
|
4087
|
+
const { breakpoints: m, contentId: y } = x;
|
|
4088
|
+
!y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
|
|
4077
4089
|
meta: {
|
|
4078
4090
|
breakpoints: m
|
|
4079
4091
|
}
|
|
4080
4092
|
});
|
|
4081
4093
|
},
|
|
4082
4094
|
animation: (x) => {
|
|
4083
|
-
|
|
4095
|
+
_e(x);
|
|
4084
4096
|
},
|
|
4085
4097
|
contentUpdate: (x) => {
|
|
4086
4098
|
i(x);
|
|
@@ -4091,36 +4103,36 @@ function ui(e) {
|
|
|
4091
4103
|
}
|
|
4092
4104
|
})(w);
|
|
4093
4105
|
}
|
|
4094
|
-
const [d,
|
|
4106
|
+
const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
|
|
4095
4107
|
function f(w) {
|
|
4096
4108
|
var x, m;
|
|
4097
4109
|
if (e.builderContextSignal.content) {
|
|
4098
|
-
const
|
|
4099
|
-
|
|
4110
|
+
const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4111
|
+
pe({
|
|
4100
4112
|
apiHost: e.apiHost,
|
|
4101
4113
|
type: "click",
|
|
4102
|
-
canTrack:
|
|
4103
|
-
contentId:
|
|
4114
|
+
canTrack: j(e.canTrack),
|
|
4115
|
+
contentId: T,
|
|
4104
4116
|
apiKey: e.apiKey,
|
|
4105
|
-
variationId:
|
|
4106
|
-
...
|
|
4107
|
-
unique: !
|
|
4117
|
+
variationId: y !== T ? y : void 0,
|
|
4118
|
+
...li(w),
|
|
4119
|
+
unique: !c
|
|
4108
4120
|
});
|
|
4109
4121
|
}
|
|
4110
|
-
|
|
4122
|
+
c || v(!0);
|
|
4111
4123
|
}
|
|
4112
|
-
function
|
|
4113
|
-
var x, m,
|
|
4114
|
-
const w = (
|
|
4115
|
-
Object.entries(w).forEach(([
|
|
4116
|
-
if (!
|
|
4124
|
+
function b() {
|
|
4125
|
+
var x, m, y;
|
|
4126
|
+
const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
|
|
4127
|
+
Object.entries(w).forEach(([T, E]) => {
|
|
4128
|
+
if (!E || h[T] || d[T] && !A())
|
|
4117
4129
|
return;
|
|
4118
|
-
h[
|
|
4119
|
-
const
|
|
4130
|
+
h[T] = !0;
|
|
4131
|
+
const N = E.replace(
|
|
4120
4132
|
/{{([^}]+)}}/g,
|
|
4121
|
-
(
|
|
4122
|
-
|
|
4123
|
-
code:
|
|
4133
|
+
(W, D) => String(
|
|
4134
|
+
q({
|
|
4135
|
+
code: D,
|
|
4124
4136
|
context: e.context || {},
|
|
4125
4137
|
localState: void 0,
|
|
4126
4138
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4128,24 +4140,24 @@ function ui(e) {
|
|
|
4128
4140
|
})
|
|
4129
4141
|
)
|
|
4130
4142
|
);
|
|
4131
|
-
|
|
4143
|
+
Ve(N), fetch(N).then((W) => W.json()).then((W) => {
|
|
4132
4144
|
n({
|
|
4133
|
-
[
|
|
4134
|
-
}), d[
|
|
4135
|
-
}).catch((
|
|
4136
|
-
console.error("error fetching dynamic data",
|
|
4145
|
+
[T]: W
|
|
4146
|
+
}), d[T] = !0;
|
|
4147
|
+
}).catch((W) => {
|
|
4148
|
+
console.error("error fetching dynamic data", E, W);
|
|
4137
4149
|
}).finally(() => {
|
|
4138
|
-
h[
|
|
4150
|
+
h[T] = !1;
|
|
4139
4151
|
});
|
|
4140
4152
|
});
|
|
4141
4153
|
}
|
|
4142
4154
|
function S() {
|
|
4143
|
-
|
|
4155
|
+
A() && window.dispatchEvent(
|
|
4144
4156
|
new CustomEvent(
|
|
4145
4157
|
"builder:component:stateChange",
|
|
4146
4158
|
{
|
|
4147
4159
|
detail: {
|
|
4148
|
-
state:
|
|
4160
|
+
state: me(e.builderContextSignal.rootState),
|
|
4149
4161
|
ref: {
|
|
4150
4162
|
name: e.model
|
|
4151
4163
|
}
|
|
@@ -4154,11 +4166,11 @@ function ui(e) {
|
|
|
4154
4166
|
)
|
|
4155
4167
|
);
|
|
4156
4168
|
}
|
|
4157
|
-
const
|
|
4158
|
-
return
|
|
4159
|
-
var w, x, m,
|
|
4160
|
-
if (
|
|
4161
|
-
|
|
4169
|
+
const p = O(!1);
|
|
4170
|
+
return p.current || (b(), S(), p.current = !0), V(() => {
|
|
4171
|
+
var w, x, m, y, T;
|
|
4172
|
+
if (U()) {
|
|
4173
|
+
A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
|
|
4162
4174
|
...e.locale ? {
|
|
4163
4175
|
locale: e.locale
|
|
4164
4176
|
} : {},
|
|
@@ -4172,71 +4184,76 @@ function ui(e) {
|
|
|
4172
4184
|
apiKey: e.apiKey
|
|
4173
4185
|
}), Object.values(
|
|
4174
4186
|
e.builderContextSignal.componentInfos
|
|
4175
|
-
).forEach((
|
|
4176
|
-
var
|
|
4177
|
-
if (!((
|
|
4178
|
-
const
|
|
4179
|
-
(
|
|
4187
|
+
).forEach((D) => {
|
|
4188
|
+
var F, J;
|
|
4189
|
+
if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
|
|
4190
|
+
const ne = et(D);
|
|
4191
|
+
(J = window.parent) == null || J.postMessage(ne, "*");
|
|
4180
4192
|
}
|
|
4181
4193
|
}), window.addEventListener(
|
|
4182
4194
|
"builder:component:stateChangeListenerActivated",
|
|
4183
4195
|
S
|
|
4184
|
-
))
|
|
4185
|
-
|
|
4186
|
-
|
|
4196
|
+
));
|
|
4197
|
+
const E = e.builderContextSignal.content && j(e.canTrack), N = tt({
|
|
4198
|
+
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4199
|
+
canTrack: !0
|
|
4200
|
+
}), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
4201
|
+
if (E && W === N) {
|
|
4202
|
+
const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
|
|
4203
|
+
pe({
|
|
4187
4204
|
apiHost: e.apiHost,
|
|
4188
4205
|
type: "impression",
|
|
4189
4206
|
canTrack: !0,
|
|
4190
|
-
contentId:
|
|
4191
|
-
apiKey:
|
|
4192
|
-
variationId:
|
|
4207
|
+
contentId: D,
|
|
4208
|
+
apiKey: F,
|
|
4209
|
+
variationId: N !== D ? N : void 0
|
|
4193
4210
|
});
|
|
4194
4211
|
}
|
|
4195
|
-
if (
|
|
4196
|
-
const
|
|
4197
|
-
`builder.overrides.${
|
|
4198
|
-
),
|
|
4199
|
-
(
|
|
4212
|
+
if (Z() && !A()) {
|
|
4213
|
+
const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
|
|
4214
|
+
`builder.overrides.${F}`
|
|
4215
|
+
), ne = D.get("apiKey") || D.get("builder.space");
|
|
4216
|
+
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Be({
|
|
4200
4217
|
model: e.model,
|
|
4201
4218
|
apiKey: e.apiKey,
|
|
4202
4219
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4203
|
-
...
|
|
4220
|
+
...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
|
|
4204
4221
|
query: {
|
|
4205
4222
|
id: e.context.symbolId
|
|
4206
4223
|
}
|
|
4207
4224
|
} : {}
|
|
4208
|
-
}).then((
|
|
4209
|
-
|
|
4225
|
+
}).then((ge) => {
|
|
4226
|
+
ge && i(ge);
|
|
4210
4227
|
});
|
|
4211
4228
|
}
|
|
4212
4229
|
}
|
|
4213
|
-
}, []),
|
|
4230
|
+
}, []), V(() => {
|
|
4214
4231
|
e.content && i(e.content);
|
|
4215
|
-
}, [e.content]),
|
|
4232
|
+
}, [e.content]), V(() => {
|
|
4216
4233
|
S();
|
|
4217
|
-
}, [e.builderContextSignal.rootState]),
|
|
4234
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
4218
4235
|
e.data && n(e.data);
|
|
4219
|
-
}, [e.data]),
|
|
4236
|
+
}, [e.data]), V(() => {
|
|
4220
4237
|
e.locale && n({
|
|
4221
4238
|
locale: e.locale
|
|
4222
4239
|
});
|
|
4223
|
-
}, [e.locale]),
|
|
4224
|
-
|
|
4240
|
+
}, [e.locale]), V(() => () => {
|
|
4241
|
+
U() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4225
4242
|
"builder:component:stateChangeListenerActivated",
|
|
4226
4243
|
S
|
|
4227
4244
|
));
|
|
4228
|
-
}, []), /* @__PURE__ */ s(
|
|
4245
|
+
}, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
|
|
4229
4246
|
o,
|
|
4230
4247
|
{
|
|
4231
4248
|
ref: t,
|
|
4232
4249
|
onClick: (w) => f(w),
|
|
4233
4250
|
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4234
4251
|
"builder-model": e.model,
|
|
4235
|
-
className:
|
|
4252
|
+
className: hi(
|
|
4236
4253
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4237
4254
|
),
|
|
4238
4255
|
style: {
|
|
4239
|
-
display: !e.builderContextSignal.content &&
|
|
4256
|
+
display: !e.builderContextSignal.content && Re() ? "none" : void 0
|
|
4240
4257
|
},
|
|
4241
4258
|
...a(),
|
|
4242
4259
|
...e.contentWrapperProps,
|
|
@@ -4244,21 +4261,21 @@ function ui(e) {
|
|
|
4244
4261
|
}
|
|
4245
4262
|
) : null });
|
|
4246
4263
|
}
|
|
4247
|
-
function
|
|
4248
|
-
const [t, n] =
|
|
4264
|
+
function bi(e) {
|
|
4265
|
+
const [t, n] = I(
|
|
4249
4266
|
() => `
|
|
4250
|
-
${
|
|
4267
|
+
${di({
|
|
4251
4268
|
cssCode: e.cssCode,
|
|
4252
4269
|
contentId: e.contentId
|
|
4253
4270
|
})}
|
|
4254
|
-
${
|
|
4271
|
+
${ui({
|
|
4255
4272
|
customFonts: e.customFonts
|
|
4256
4273
|
})}
|
|
4257
|
-
${
|
|
4274
|
+
${fi(e.isNestedRender)}
|
|
4258
4275
|
`.trim()
|
|
4259
4276
|
);
|
|
4260
4277
|
return /* @__PURE__ */ s(
|
|
4261
|
-
|
|
4278
|
+
K,
|
|
4262
4279
|
{
|
|
4263
4280
|
id: "builderio-content",
|
|
4264
4281
|
styles: t,
|
|
@@ -4266,7 +4283,7 @@ ${si(e.isNestedRender)}
|
|
|
4266
4283
|
}
|
|
4267
4284
|
);
|
|
4268
4285
|
}
|
|
4269
|
-
const
|
|
4286
|
+
const pi = ({
|
|
4270
4287
|
content: e,
|
|
4271
4288
|
data: t,
|
|
4272
4289
|
locale: n
|
|
@@ -4283,7 +4300,7 @@ const mi = ({
|
|
|
4283
4300
|
locale: n
|
|
4284
4301
|
} : {}
|
|
4285
4302
|
};
|
|
4286
|
-
},
|
|
4303
|
+
}, yi = ({
|
|
4287
4304
|
content: e,
|
|
4288
4305
|
data: t
|
|
4289
4306
|
}) => e ? {
|
|
@@ -4294,12 +4311,12 @@ const mi = ({
|
|
|
4294
4311
|
},
|
|
4295
4312
|
meta: e == null ? void 0 : e.meta
|
|
4296
4313
|
} : void 0;
|
|
4297
|
-
function
|
|
4298
|
-
var
|
|
4299
|
-
const [t, n] =
|
|
4314
|
+
function Pe(e) {
|
|
4315
|
+
var u, h, g, c, v, f, b, S, p;
|
|
4316
|
+
const [t, n] = I(
|
|
4300
4317
|
() => {
|
|
4301
4318
|
var k, C;
|
|
4302
|
-
return
|
|
4319
|
+
return ai({
|
|
4303
4320
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4304
4321
|
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4305
4322
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4313,27 +4330,27 @@ function Ie(e) {
|
|
|
4313
4330
|
rootState: k
|
|
4314
4331
|
}));
|
|
4315
4332
|
}
|
|
4316
|
-
const [a, o] =
|
|
4333
|
+
const [a, o] = I(
|
|
4317
4334
|
() => [
|
|
4318
|
-
...
|
|
4335
|
+
...we(),
|
|
4319
4336
|
...e.customComponents || []
|
|
4320
4337
|
].reduce(
|
|
4321
4338
|
(k, { component: C, ...P }) => ({
|
|
4322
4339
|
...k,
|
|
4323
4340
|
[P.name]: {
|
|
4324
4341
|
component: C,
|
|
4325
|
-
...
|
|
4342
|
+
...ye(P)
|
|
4326
4343
|
}
|
|
4327
4344
|
}),
|
|
4328
4345
|
{}
|
|
4329
4346
|
)
|
|
4330
|
-
), [r, l] =
|
|
4331
|
-
content:
|
|
4347
|
+
), [r, l] = I(() => ({
|
|
4348
|
+
content: yi({
|
|
4332
4349
|
content: e.content,
|
|
4333
4350
|
data: e.data
|
|
4334
4351
|
}),
|
|
4335
4352
|
localState: void 0,
|
|
4336
|
-
rootState:
|
|
4353
|
+
rootState: pi({
|
|
4337
4354
|
content: e.content,
|
|
4338
4355
|
data: e.data,
|
|
4339
4356
|
locale: e.locale
|
|
@@ -4344,12 +4361,12 @@ function Ie(e) {
|
|
|
4344
4361
|
apiKey: e.apiKey,
|
|
4345
4362
|
apiVersion: e.apiVersion,
|
|
4346
4363
|
componentInfos: [
|
|
4347
|
-
...
|
|
4364
|
+
...we(),
|
|
4348
4365
|
...e.customComponents || []
|
|
4349
4366
|
].reduce(
|
|
4350
4367
|
(k, { component: C, ...P }) => ({
|
|
4351
4368
|
...k,
|
|
4352
|
-
[P.name]:
|
|
4369
|
+
[P.name]: ye(P)
|
|
4353
4370
|
}),
|
|
4354
4371
|
{}
|
|
4355
4372
|
),
|
|
@@ -4358,13 +4375,13 @@ function Ie(e) {
|
|
|
4358
4375
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4359
4376
|
nonce: e.nonce || "",
|
|
4360
4377
|
model: e.model
|
|
4361
|
-
})), d =
|
|
4378
|
+
})), d = O(!1);
|
|
4362
4379
|
if (!d.current) {
|
|
4363
|
-
e.apiKey ||
|
|
4380
|
+
e.apiKey || _.error(
|
|
4364
4381
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4365
4382
|
);
|
|
4366
|
-
const k = (h = (
|
|
4367
|
-
k &&
|
|
4383
|
+
const k = (h = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
|
|
4384
|
+
k && q({
|
|
4368
4385
|
code: k,
|
|
4369
4386
|
context: e.context || {},
|
|
4370
4387
|
localState: void 0,
|
|
@@ -4376,13 +4393,13 @@ function Ie(e) {
|
|
|
4376
4393
|
}), d.current = !0;
|
|
4377
4394
|
}
|
|
4378
4395
|
return /* @__PURE__ */ s(
|
|
4379
|
-
|
|
4396
|
+
We.Provider,
|
|
4380
4397
|
{
|
|
4381
4398
|
value: {
|
|
4382
4399
|
registeredComponents: a
|
|
4383
4400
|
},
|
|
4384
|
-
children: /* @__PURE__ */
|
|
4385
|
-
|
|
4401
|
+
children: /* @__PURE__ */ B(
|
|
4402
|
+
gi,
|
|
4386
4403
|
{
|
|
4387
4404
|
apiHost: e.apiHost,
|
|
4388
4405
|
nonce: e.nonce,
|
|
@@ -4403,7 +4420,7 @@ function Ie(e) {
|
|
|
4403
4420
|
setBuilderContextSignal: l,
|
|
4404
4421
|
children: [
|
|
4405
4422
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4406
|
-
|
|
4423
|
+
X,
|
|
4407
4424
|
{
|
|
4408
4425
|
id: "builderio-variant-visibility",
|
|
4409
4426
|
scriptStr: t,
|
|
@@ -4411,19 +4428,19 @@ function Ie(e) {
|
|
|
4411
4428
|
}
|
|
4412
4429
|
) : null,
|
|
4413
4430
|
/* @__PURE__ */ s(
|
|
4414
|
-
|
|
4431
|
+
bi,
|
|
4415
4432
|
{
|
|
4416
4433
|
nonce: e.nonce || "",
|
|
4417
4434
|
isNestedRender: e.isNestedRender,
|
|
4418
|
-
contentId: (
|
|
4419
|
-
cssCode: (v = (
|
|
4420
|
-
customFonts: (
|
|
4435
|
+
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
4436
|
+
cssCode: (v = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
|
|
4437
|
+
customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
4421
4438
|
}
|
|
4422
4439
|
),
|
|
4423
4440
|
/* @__PURE__ */ s(
|
|
4424
|
-
|
|
4441
|
+
$,
|
|
4425
4442
|
{
|
|
4426
|
-
blocks: (
|
|
4443
|
+
blocks: (p = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
4427
4444
|
context: r,
|
|
4428
4445
|
registeredComponents: a,
|
|
4429
4446
|
linkComponent: e.linkComponent
|
|
@@ -4435,18 +4452,18 @@ function Ie(e) {
|
|
|
4435
4452
|
}
|
|
4436
4453
|
);
|
|
4437
4454
|
}
|
|
4438
|
-
function
|
|
4455
|
+
function vi(e) {
|
|
4439
4456
|
var r;
|
|
4440
|
-
const [t, n] =
|
|
4441
|
-
() =>
|
|
4442
|
-
canTrack:
|
|
4457
|
+
const [t, n] = I(
|
|
4458
|
+
() => Zn({
|
|
4459
|
+
canTrack: j(e.canTrack),
|
|
4443
4460
|
content: e.content
|
|
4444
4461
|
})
|
|
4445
4462
|
);
|
|
4446
4463
|
function i() {
|
|
4447
4464
|
var l;
|
|
4448
|
-
return
|
|
4449
|
-
|
|
4465
|
+
return ii(
|
|
4466
|
+
G(e.content).map((d) => ({
|
|
4450
4467
|
id: d.testVariationId,
|
|
4451
4468
|
testRatio: d.testRatio
|
|
4452
4469
|
})),
|
|
@@ -4454,31 +4471,31 @@ function hi(e) {
|
|
|
4454
4471
|
);
|
|
4455
4472
|
}
|
|
4456
4473
|
function a() {
|
|
4457
|
-
return
|
|
4474
|
+
return G(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4458
4475
|
}
|
|
4459
4476
|
function o() {
|
|
4460
4477
|
var l;
|
|
4461
4478
|
return t ? {
|
|
4462
4479
|
...e.content,
|
|
4463
4480
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4464
|
-
} :
|
|
4481
|
+
} : it({
|
|
4465
4482
|
item: e.content,
|
|
4466
|
-
canTrack:
|
|
4483
|
+
canTrack: j(e.canTrack)
|
|
4467
4484
|
});
|
|
4468
4485
|
}
|
|
4469
|
-
return
|
|
4470
|
-
}, []), /* @__PURE__ */
|
|
4471
|
-
!e.isNestedRender &&
|
|
4472
|
-
|
|
4486
|
+
return V(() => {
|
|
4487
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
4488
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
|
|
4489
|
+
X,
|
|
4473
4490
|
{
|
|
4474
4491
|
id: "builderio-init-variants-fns",
|
|
4475
|
-
scriptStr:
|
|
4492
|
+
scriptStr: ni(),
|
|
4476
4493
|
nonce: e.nonce || ""
|
|
4477
4494
|
}
|
|
4478
4495
|
) : null,
|
|
4479
|
-
t ? /* @__PURE__ */
|
|
4496
|
+
t ? /* @__PURE__ */ B(R, { children: [
|
|
4480
4497
|
/* @__PURE__ */ s(
|
|
4481
|
-
|
|
4498
|
+
K,
|
|
4482
4499
|
{
|
|
4483
4500
|
id: "builderio-variants",
|
|
4484
4501
|
styles: a(),
|
|
@@ -4486,15 +4503,15 @@ function hi(e) {
|
|
|
4486
4503
|
}
|
|
4487
4504
|
),
|
|
4488
4505
|
/* @__PURE__ */ s(
|
|
4489
|
-
|
|
4506
|
+
X,
|
|
4490
4507
|
{
|
|
4491
4508
|
id: "builderio-variants-visibility",
|
|
4492
4509
|
scriptStr: i(),
|
|
4493
4510
|
nonce: e.nonce || ""
|
|
4494
4511
|
}
|
|
4495
4512
|
),
|
|
4496
|
-
(r =
|
|
4497
|
-
|
|
4513
|
+
(r = G(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4514
|
+
Pe,
|
|
4498
4515
|
{
|
|
4499
4516
|
apiHost: e.apiHost,
|
|
4500
4517
|
isNestedRender: e.isNestedRender,
|
|
@@ -4522,7 +4539,7 @@ function hi(e) {
|
|
|
4522
4539
|
))
|
|
4523
4540
|
] }) : null,
|
|
4524
4541
|
/* @__PURE__ */ s(
|
|
4525
|
-
|
|
4542
|
+
Pe,
|
|
4526
4543
|
{
|
|
4527
4544
|
apiHost: e.apiHost,
|
|
4528
4545
|
nonce: e.nonce,
|
|
@@ -4549,13 +4566,13 @@ function hi(e) {
|
|
|
4549
4566
|
)
|
|
4550
4567
|
] });
|
|
4551
4568
|
}
|
|
4552
|
-
const
|
|
4569
|
+
const xi = async ({
|
|
4553
4570
|
builderContextValue: e,
|
|
4554
4571
|
symbol: t
|
|
4555
4572
|
}) => {
|
|
4556
4573
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4557
4574
|
(e != null && e.apiKey))
|
|
4558
|
-
return
|
|
4575
|
+
return Be({
|
|
4559
4576
|
model: t.model,
|
|
4560
4577
|
apiKey: e.apiKey,
|
|
4561
4578
|
apiVersion: e.apiVersion,
|
|
@@ -4565,11 +4582,11 @@ const gi = async ({
|
|
|
4565
4582
|
}
|
|
4566
4583
|
}
|
|
4567
4584
|
}).catch((n) => {
|
|
4568
|
-
|
|
4585
|
+
_.error("Could not fetch symbol content: ", n);
|
|
4569
4586
|
});
|
|
4570
4587
|
};
|
|
4571
|
-
function
|
|
4572
|
-
var l, d,
|
|
4588
|
+
function Si(e) {
|
|
4589
|
+
var l, d, u, h, g;
|
|
4573
4590
|
function t() {
|
|
4574
4591
|
return "div";
|
|
4575
4592
|
}
|
|
@@ -4577,31 +4594,31 @@ function bi(e) {
|
|
|
4577
4594
|
return "div";
|
|
4578
4595
|
}
|
|
4579
4596
|
function i() {
|
|
4580
|
-
var
|
|
4597
|
+
var c, v;
|
|
4581
4598
|
return [
|
|
4582
|
-
e.attributes[
|
|
4599
|
+
e.attributes[z()],
|
|
4583
4600
|
"builder-symbol",
|
|
4584
|
-
(
|
|
4601
|
+
(c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
|
|
4585
4602
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4586
4603
|
].filter(Boolean).join(" ");
|
|
4587
4604
|
}
|
|
4588
|
-
const [a, o] =
|
|
4589
|
-
var
|
|
4590
|
-
return (
|
|
4605
|
+
const [a, o] = I(() => {
|
|
4606
|
+
var c;
|
|
4607
|
+
return (c = e.symbol) == null ? void 0 : c.content;
|
|
4591
4608
|
});
|
|
4592
4609
|
function r() {
|
|
4593
|
-
a ||
|
|
4610
|
+
a || xi({
|
|
4594
4611
|
symbol: e.symbol,
|
|
4595
4612
|
builderContextValue: e.builderContext
|
|
4596
|
-
}).then((
|
|
4597
|
-
|
|
4613
|
+
}).then((c) => {
|
|
4614
|
+
c && o(c);
|
|
4598
4615
|
});
|
|
4599
4616
|
}
|
|
4600
|
-
return
|
|
4601
|
-
}, []),
|
|
4617
|
+
return V(() => {
|
|
4618
|
+
}, []), V(() => {
|
|
4602
4619
|
r();
|
|
4603
4620
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4604
|
-
|
|
4621
|
+
vi,
|
|
4605
4622
|
{
|
|
4606
4623
|
nonce: e.builderContext.nonce,
|
|
4607
4624
|
isNestedRender: !0,
|
|
@@ -4615,10 +4632,10 @@ function bi(e) {
|
|
|
4615
4632
|
data: {
|
|
4616
4633
|
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4617
4634
|
...e.builderContext.localState,
|
|
4618
|
-
...(
|
|
4635
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4619
4636
|
},
|
|
4620
4637
|
canTrack: e.builderContext.canTrack,
|
|
4621
|
-
model: (
|
|
4638
|
+
model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
|
|
4622
4639
|
content: a,
|
|
4623
4640
|
linkComponent: e.builderLinkComponent,
|
|
4624
4641
|
blocksWrapper: t(),
|
|
@@ -4627,16 +4644,16 @@ function bi(e) {
|
|
|
4627
4644
|
) });
|
|
4628
4645
|
}
|
|
4629
4646
|
export {
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4647
|
+
$ as Blocks,
|
|
4648
|
+
de as BuilderContext,
|
|
4649
|
+
lt as Button,
|
|
4650
|
+
Xt as Columns,
|
|
4651
|
+
vi as Content,
|
|
4652
|
+
Zt as Fragment,
|
|
4653
|
+
nn as Image,
|
|
4654
|
+
an as Section,
|
|
4655
|
+
Si as Symbol,
|
|
4656
|
+
En as Text,
|
|
4657
|
+
Gn as Video,
|
|
4658
|
+
Ei as setClientUserAttributes
|
|
4642
4659
|
};
|