@builder.io/sdk-react 3.0.6 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +32 -32
- package/lib/browser/blocks-exports.mjs +923 -860
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-df5e89e5.js → server-entry-422fad84.js} +51 -40
- package/lib/browser/server-entry-916191b4.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-fbfb71f4.cjs → accordion-2f83fc75.cjs} +1 -1
- package/lib/edge/{accordion-289f3464.js → accordion-e1b77652.js} +1 -1
- package/lib/edge/{blocks-582a7fd7.js → blocks-0885e182.js} +1305 -1280
- package/lib/edge/blocks-5165c164.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-da357144.cjs → button-d7197e96.cjs} +1 -1
- package/lib/edge/{button-9b112da6.js → button-d878f35c.js} +2 -2
- package/lib/edge/{columns-a211113f.cjs → columns-46729516.cjs} +1 -1
- package/lib/edge/{columns-aba58dda.js → columns-b365c86a.js} +3 -3
- package/lib/edge/{content-variants-08f4371c.js → content-variants-1594c868.js} +281 -279
- package/lib/edge/content-variants-c6cab1c3.cjs +134 -0
- package/lib/edge/{form-e3a3afd4.cjs → form-9844766c.cjs} +1 -1
- package/lib/edge/{form-4d4553c2.js → form-b66c20a3.js} +3 -3
- package/lib/edge/{get-class-prop-name-fbe244e3.cjs → get-class-prop-name-0b992cfb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-38c2baca.js → get-class-prop-name-dac81472.js} +1 -1
- package/lib/edge/{img-c49066fa.js → img-c4a772a8.js} +1 -1
- package/lib/edge/{img-8d549af8.cjs → img-fb35350a.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-1ae3842f.cjs → input-122768ac.cjs} +1 -1
- package/lib/edge/{input-e7301f4e.js → input-57c5b097.js} +1 -1
- package/lib/edge/{personalization-container-035be6ba.js → personalization-container-7e63edce.js} +4 -4
- package/lib/edge/{personalization-container-25cd8b5e.cjs → personalization-container-a17ae615.cjs} +1 -1
- package/lib/edge/{select-4187b229.js → select-3d4324ef.js} +1 -1
- package/lib/edge/{select-64fdaa79.cjs → select-7f750b70.cjs} +1 -1
- package/lib/edge/server-entry-77166102.cjs +2 -0
- package/lib/edge/{server-entry-61fca4f7.js → server-entry-c1673af2.js} +55 -44
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-d6c46a42.js → slot-05ef18a0.js} +3 -3
- package/lib/edge/{slot-995f63c2.cjs → slot-123c0993.cjs} +1 -1
- package/lib/edge/symbol-ee314d5a.cjs +1 -0
- package/lib/edge/{symbol-623dc717.js → symbol-f488bea0.js} +25 -25
- package/lib/edge/{tabs-12ba41b1.js → tabs-244d53fa.js} +3 -3
- package/lib/edge/{tabs-d39499cd.cjs → tabs-edb82022.cjs} +1 -1
- package/lib/edge/{video-a3f10439.js → video-52df64e2.js} +54 -17
- package/lib/edge/video-cc58dd83.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +912 -849
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-27d9d31e.js → server-entry-4df60fc5.js} +51 -40
- package/lib/node/server-entry-8ab8c78b.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-2dde9074.js → setIvm-0edfc727.js} +1 -1
- package/lib/node/{setIvm-784fe19f.cjs → setIvm-6405aa63.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-cd6baa94.cjs → should-force-browser-runtime-in-node-6d4dbff9.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-80f081c8.js → should-force-browser-runtime-in-node-7a39b073.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +2 -2
- package/types/constants/device-sizes.d.ts +3 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +13 -13
- package/types/scripts/init-editing.d.ts +3 -1
- package/types/types/builder-block.d.ts +0 -1
- package/types/types/builder-content.d.ts +1 -0
- package/lib/browser/server-entry-a1c64831.cjs +0 -2
- package/lib/edge/blocks-459a090b.cjs +0 -30
- package/lib/edge/content-variants-4b5899b5.cjs +0 -134
- package/lib/edge/server-entry-2ef4e66a.cjs +0 -2
- package/lib/edge/symbol-498daa97.cjs +0 -1
- package/lib/edge/video-4ecfd08b.cjs +0 -1
- package/lib/node/server-entry-98ebff74.cjs +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as W, isBrowser 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 O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-422fad84.js";
|
|
3
|
+
import { setClientUserAttributes as ki } from "./server-entry-422fad84.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as A } from "react/jsx-runtime";
|
|
5
|
+
import * as et from "react";
|
|
6
|
+
import { createContext as Pe, useEffect as B, useState as E, useRef as $, useContext as be, createElement as Ve } from "react";
|
|
7
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
8
|
+
function le(e) {
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: nt(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
|
|
11
|
+
const H = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const q = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function it(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +37,7 @@ function nt(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
le,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function nt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const se = Pe({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const le = Re({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), Be = Pe({ registeredComponents: {} }), Ne = (e, t, n) => {
|
|
65
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, ot = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,15 +76,15 @@ const le = Re({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
79
|
+
}), at = () => ({
|
|
80
80
|
isEditing: W(),
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer:
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
81
|
+
isBrowser: F(),
|
|
82
|
+
isServer: !F(),
|
|
83
|
+
getUserAttributes: () => Je()
|
|
84
|
+
}), rt = (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 Ae({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function Ne({
|
|
|
94
94
|
if (t && o in t)
|
|
95
95
|
return t[o];
|
|
96
96
|
const a = i[o];
|
|
97
|
-
return typeof a == "object" && a !== null ?
|
|
97
|
+
return typeof a == "object" && a !== null ? Ae({
|
|
98
98
|
rootState: a,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -109,7 +109,7 @@ function Ne({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const pe = ({
|
|
113
113
|
code: e,
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
@@ -118,35 +118,35 @@ const ge = ({
|
|
|
118
118
|
rootSetState: a,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = ot({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: Ae({
|
|
126
126
|
rootState: r,
|
|
127
127
|
localState: o,
|
|
128
128
|
rootSetState: a
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
|
-
return new Function(...l.map(([
|
|
131
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function lt() {
|
|
134
134
|
var e;
|
|
135
135
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const st = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
140
|
var o;
|
|
141
|
-
if (!
|
|
141
|
+
if (!lt())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
144
144
|
return t && n && !i ? (e && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
-
},
|
|
145
|
+
}, ct = (e) => (F() || st({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
147
|
+
}), pe(e)), ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, mt = (e) => {
|
|
148
148
|
var t, n, i, o, a, r;
|
|
149
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = dt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
151
|
function L({
|
|
152
152
|
code: e,
|
|
@@ -159,17 +159,17 @@ function L({
|
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = mt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return Ne({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
|
-
const
|
|
169
|
-
code:
|
|
168
|
+
const d = {
|
|
169
|
+
code: rt(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: at(),
|
|
173
173
|
context: t,
|
|
174
174
|
event: a,
|
|
175
175
|
rootSetState: o,
|
|
@@ -177,7 +177,7 @@ function L({
|
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ct(d);
|
|
181
181
|
} catch (c) {
|
|
182
182
|
Q.error("Failed code evaluation: " + c.message, {
|
|
183
183
|
code: e
|
|
@@ -185,15 +185,15 @@ function L({
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ft(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
|
+
...ht(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const ht = (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 {
|
|
@@ -207,7 +207,7 @@ const ft = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function gt(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
@@ -221,60 +221,60 @@ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
224
|
-
t(a, (
|
|
225
|
-
e[r] =
|
|
224
|
+
t(a, (d) => {
|
|
225
|
+
e[r] = d;
|
|
226
226
|
}), J(a, t, e, r, o);
|
|
227
227
|
}) : Object.entries(e).forEach(([a, r]) => {
|
|
228
|
-
t(r, (
|
|
229
|
-
e[a] =
|
|
228
|
+
t(r, (d) => {
|
|
229
|
+
e[a] = d;
|
|
230
230
|
}), J(r, t, e, a, o);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function We(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function bt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
240
|
return J(e, (n) => {
|
|
241
|
-
if (
|
|
241
|
+
if (We(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function pt(e, t) {
|
|
248
248
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
249
249
|
var o;
|
|
250
|
-
|
|
250
|
+
We(n) && i((o = n[t]) != null ? o : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function yt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && bt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = pt(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const ce = (e) => JSON.parse(JSON.stringify(e)), De = (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((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function re(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) => re(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] = re(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const t =
|
|
275
|
+
const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) => {
|
|
276
|
+
if (vt) {
|
|
277
|
+
const t = ce(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
280
280
|
properties: {
|
|
@@ -285,7 +285,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t =
|
|
288
|
+
const t = re(gt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,7 +298,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, St = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
@@ -307,28 +307,28 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const a =
|
|
310
|
+
const a = xt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r],
|
|
312
|
+
const l = e.bindings[r], d = L({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
316
|
rootSetState: o,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
De(a, r, d);
|
|
320
320
|
}
|
|
321
321
|
return a;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function kt({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
327
327
|
rootState: i,
|
|
328
328
|
rootSetState: o
|
|
329
329
|
}) {
|
|
330
|
-
let a =
|
|
331
|
-
return a = a,
|
|
330
|
+
let a = yt(e, i.locale);
|
|
331
|
+
return a = a, St({
|
|
332
332
|
block: a,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
@@ -337,19 +337,19 @@ function St({
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
340
|
+
function Ct(e, t, n = {}) {
|
|
341
341
|
let i, o, a, r = null, l = 0;
|
|
342
|
-
const
|
|
342
|
+
const d = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
346
|
const c = Date.now();
|
|
347
347
|
!l && n.leading === !1 && (l = c);
|
|
348
348
|
const h = t - (c - l);
|
|
349
|
-
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(
|
|
349
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function q(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const o = arguments[i];
|
|
@@ -359,73 +359,73 @@ function U(e, ...t) {
|
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Tt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
Oe(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
It(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function $e(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Fe(e, t) {
|
|
377
|
+
const n = wt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
378
378
|
for (const l of r)
|
|
379
|
-
for (const
|
|
380
|
-
|
|
379
|
+
for (const d of n)
|
|
380
|
+
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function wt(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 Oe(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
$e(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 ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(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 It(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
$e(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
410
|
+
Fe(e, n);
|
|
411
411
|
let i = !1, o = !1;
|
|
412
412
|
function a() {
|
|
413
413
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
415
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Ct(a, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
423
|
+
const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
424
|
+
return y.bottom > f && y.top < u - f;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const d = e.steps[0].styles;
|
|
427
427
|
function c() {
|
|
428
|
-
|
|
428
|
+
q(n.style, d);
|
|
429
429
|
}
|
|
430
430
|
c(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -435,42 +435,42 @@ function wt(e) {
|
|
|
435
435
|
}), a();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${X(n)}: ${i};`;
|
|
441
|
-
}).filter(K),
|
|
442
|
-
`),
|
|
441
|
+
}).filter(K), Et = (e) => Le(e).join(`
|
|
442
|
+
`), _ = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Et(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Rt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Pt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Ue(Rt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
467
|
+
function Ue(e) {
|
|
468
468
|
switch (O) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return Le(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,7 +478,7 @@ function Le(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
@@ -488,14 +488,14 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
490
|
const o = t[i];
|
|
491
|
-
if (!o ||
|
|
491
|
+
if (!o || _e(o, 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 o;
|
|
498
|
-
},
|
|
498
|
+
}, Bt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -515,42 +515,47 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(o))
|
|
516
516
|
return;
|
|
517
517
|
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
518
|
-
return o.map((
|
|
518
|
+
return o.map((d, c) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
523
|
$index: c,
|
|
524
|
-
$item:
|
|
525
|
-
[r]:
|
|
524
|
+
$item: d,
|
|
525
|
+
[r]: d,
|
|
526
526
|
[`$${r}Index`]: c
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Nt = (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
|
+
}, At = (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(([a, r]) => !
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !_e(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Wt = (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
|
+
}, Dt = (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
|
+
}, qe = {
|
|
552
|
+
xsmall: {
|
|
553
|
+
min: 0,
|
|
554
|
+
default: 160,
|
|
555
|
+
max: 320
|
|
556
|
+
},
|
|
552
557
|
small: {
|
|
553
|
-
min:
|
|
558
|
+
min: 321,
|
|
554
559
|
default: 321,
|
|
555
560
|
max: 640
|
|
556
561
|
},
|
|
@@ -564,34 +569,46 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
564
569
|
default: 991,
|
|
565
570
|
max: 1200
|
|
566
571
|
}
|
|
567
|
-
},
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
const
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
572
|
+
}, ee = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
|
|
573
|
+
const t = ce(qe);
|
|
574
|
+
if (!e)
|
|
575
|
+
return t;
|
|
576
|
+
const {
|
|
577
|
+
xsmall: n,
|
|
578
|
+
small: i,
|
|
579
|
+
medium: o
|
|
580
|
+
} = e;
|
|
581
|
+
if (n) {
|
|
582
|
+
const d = Math.floor(n / 2);
|
|
583
|
+
t.xsmall = {
|
|
584
|
+
max: n,
|
|
585
|
+
min: d,
|
|
586
|
+
default: d + 1
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
if (!i || !o)
|
|
590
|
+
return t;
|
|
591
|
+
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
592
|
+
t.small = {
|
|
593
|
+
max: i,
|
|
594
|
+
min: a,
|
|
595
|
+
default: a + 1
|
|
579
596
|
};
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
max:
|
|
583
|
-
min:
|
|
584
|
-
default:
|
|
597
|
+
const r = t.small.max + 1;
|
|
598
|
+
t.medium = {
|
|
599
|
+
max: o,
|
|
600
|
+
min: r,
|
|
601
|
+
default: r + 1
|
|
585
602
|
};
|
|
586
|
-
const
|
|
587
|
-
return
|
|
603
|
+
const l = t.medium.max + 1;
|
|
604
|
+
return t.large = {
|
|
588
605
|
max: 2e3,
|
|
589
606
|
// TODO: decide upper limit
|
|
590
|
-
min:
|
|
591
|
-
default:
|
|
592
|
-
},
|
|
607
|
+
min: l,
|
|
608
|
+
default: l + 1
|
|
609
|
+
}, t;
|
|
593
610
|
};
|
|
594
|
-
function
|
|
611
|
+
function j(e) {
|
|
595
612
|
return /* @__PURE__ */ s(
|
|
596
613
|
"style",
|
|
597
614
|
{
|
|
@@ -601,59 +618,67 @@ function H(e) {
|
|
|
601
618
|
}
|
|
602
619
|
);
|
|
603
620
|
}
|
|
604
|
-
function
|
|
621
|
+
function $t(e) {
|
|
605
622
|
function t() {
|
|
606
623
|
const i = e.block;
|
|
607
624
|
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
608
625
|
}
|
|
609
626
|
function n() {
|
|
610
|
-
var
|
|
611
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
612
|
-
((
|
|
613
|
-
), l = o == null ? void 0 : o.large,
|
|
614
|
-
if (!
|
|
627
|
+
var C, P, w, k, m;
|
|
628
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Me(
|
|
629
|
+
((C = a == null ? void 0 : a.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
+
), l = !!((w = (P = a == null ? void 0 : a.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, h = o == null ? void 0 : o.small, y = o == null ? void 0 : o.xsmall, u = i.id;
|
|
631
|
+
if (!u)
|
|
615
632
|
return "";
|
|
616
|
-
const
|
|
617
|
-
className:
|
|
618
|
-
styles:
|
|
619
|
-
}) : "", f =
|
|
620
|
-
className:
|
|
621
|
-
styles:
|
|
622
|
-
mediaQuery:
|
|
633
|
+
const v = d ? _({
|
|
634
|
+
className: u,
|
|
635
|
+
styles: d
|
|
636
|
+
}) : "", f = c ? _({
|
|
637
|
+
className: u,
|
|
638
|
+
styles: c,
|
|
639
|
+
mediaQuery: ee(
|
|
623
640
|
"medium",
|
|
624
641
|
r
|
|
625
642
|
)
|
|
626
|
-
}) : "",
|
|
627
|
-
className:
|
|
628
|
-
styles:
|
|
629
|
-
mediaQuery:
|
|
643
|
+
}) : "", g = h ? _({
|
|
644
|
+
className: u,
|
|
645
|
+
styles: h,
|
|
646
|
+
mediaQuery: ee(
|
|
630
647
|
"small",
|
|
631
648
|
r
|
|
632
649
|
)
|
|
633
|
-
}) : "",
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
650
|
+
}) : "", x = y && l ? _({
|
|
651
|
+
className: u,
|
|
652
|
+
styles: y,
|
|
653
|
+
mediaQuery: ee(
|
|
654
|
+
"xsmall",
|
|
655
|
+
r
|
|
656
|
+
)
|
|
657
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
|
+
let S = "";
|
|
659
|
+
if (b) {
|
|
660
|
+
const p = ((m = (k = b.steps) == null ? void 0 : k[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
S = _({
|
|
662
|
+
className: `${u}:hover`,
|
|
639
663
|
styles: {
|
|
640
|
-
...
|
|
641
|
-
transition: `all ${
|
|
642
|
-
|
|
664
|
+
...p,
|
|
665
|
+
transition: `all ${b.duration}s ${X(
|
|
666
|
+
b.easing
|
|
643
667
|
)}`,
|
|
644
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
645
669
|
}
|
|
646
670
|
}) || "";
|
|
647
671
|
}
|
|
648
672
|
return [
|
|
649
|
-
|
|
673
|
+
v,
|
|
650
674
|
f,
|
|
651
|
-
|
|
652
|
-
|
|
675
|
+
g,
|
|
676
|
+
x,
|
|
677
|
+
S
|
|
653
678
|
].join(" ");
|
|
654
679
|
}
|
|
655
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
656
|
-
|
|
681
|
+
j,
|
|
657
682
|
{
|
|
658
683
|
id: "builderio-block",
|
|
659
684
|
styles: n(),
|
|
@@ -661,10 +686,10 @@ function Dt(e) {
|
|
|
661
686
|
}
|
|
662
687
|
) }) : null });
|
|
663
688
|
}
|
|
664
|
-
function
|
|
689
|
+
function Ft(e) {
|
|
665
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
666
691
|
}
|
|
667
|
-
const
|
|
692
|
+
const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
|
|
668
693
|
code: e,
|
|
669
694
|
context: t.context,
|
|
670
695
|
localState: t.localState,
|
|
@@ -680,7 +705,7 @@ function He(e) {
|
|
|
680
705
|
if (!n.hasOwnProperty(o))
|
|
681
706
|
continue;
|
|
682
707
|
const a = n[o];
|
|
683
|
-
let r =
|
|
708
|
+
let r = Ot(o);
|
|
684
709
|
if (e.stripPrefix)
|
|
685
710
|
switch (O) {
|
|
686
711
|
case "vue":
|
|
@@ -690,45 +715,45 @@ function He(e) {
|
|
|
690
715
|
r = r.replace("on:", "");
|
|
691
716
|
break;
|
|
692
717
|
}
|
|
693
|
-
t[r] =
|
|
718
|
+
t[r] = Lt(a, e);
|
|
694
719
|
}
|
|
695
720
|
return t;
|
|
696
721
|
}
|
|
697
|
-
function
|
|
722
|
+
function Ut({
|
|
698
723
|
properties: e
|
|
699
724
|
}) {
|
|
700
725
|
return e;
|
|
701
726
|
}
|
|
702
|
-
const
|
|
727
|
+
const _t = (e) => ({
|
|
703
728
|
href: e.href
|
|
704
729
|
});
|
|
705
|
-
function
|
|
730
|
+
function ue({
|
|
706
731
|
block: e,
|
|
707
732
|
context: t
|
|
708
733
|
}) {
|
|
709
734
|
var i;
|
|
710
735
|
const n = {
|
|
711
|
-
...
|
|
736
|
+
..._t(e),
|
|
712
737
|
...e.properties,
|
|
713
738
|
"builder-id": e.id,
|
|
714
|
-
style:
|
|
739
|
+
style: Pt({
|
|
715
740
|
block: e,
|
|
716
741
|
context: t
|
|
717
742
|
}),
|
|
718
|
-
[
|
|
743
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
719
744
|
};
|
|
720
|
-
return
|
|
745
|
+
return Ut({
|
|
721
746
|
properties: n,
|
|
722
747
|
context: t,
|
|
723
748
|
block: e
|
|
724
749
|
});
|
|
725
750
|
}
|
|
726
|
-
function
|
|
751
|
+
function qt(e) {
|
|
727
752
|
return /* @__PURE__ */ s(
|
|
728
|
-
|
|
753
|
+
le,
|
|
729
754
|
{
|
|
730
755
|
TagName: e.Wrapper,
|
|
731
|
-
attributes:
|
|
756
|
+
attributes: ue({
|
|
732
757
|
block: e.block,
|
|
733
758
|
context: e.context
|
|
734
759
|
}),
|
|
@@ -744,14 +769,14 @@ function _t(e) {
|
|
|
744
769
|
}
|
|
745
770
|
);
|
|
746
771
|
}
|
|
747
|
-
function
|
|
748
|
-
return
|
|
772
|
+
function Mt(e) {
|
|
773
|
+
return B(() => {
|
|
749
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
750
775
|
}
|
|
751
776
|
function Ht(e) {
|
|
752
777
|
function t() {
|
|
753
778
|
return e.includeBlockProps ? {
|
|
754
|
-
...
|
|
779
|
+
...ue({
|
|
755
780
|
block: e.block,
|
|
756
781
|
context: e.context
|
|
757
782
|
}),
|
|
@@ -765,7 +790,7 @@ function Ht(e) {
|
|
|
765
790
|
} : {};
|
|
766
791
|
}
|
|
767
792
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
768
|
-
|
|
793
|
+
Mt,
|
|
769
794
|
{
|
|
770
795
|
load: e.Wrapper.load,
|
|
771
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -775,7 +800,7 @@ function Ht(e) {
|
|
|
775
800
|
}
|
|
776
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
777
802
|
}
|
|
778
|
-
const
|
|
803
|
+
const jt = ({
|
|
779
804
|
componentOptions: e,
|
|
780
805
|
builderBlock: t,
|
|
781
806
|
context: n,
|
|
@@ -791,7 +816,7 @@ const Mt = ({
|
|
|
791
816
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
792
817
|
*/
|
|
793
818
|
...o ? {
|
|
794
|
-
attributes:
|
|
819
|
+
attributes: ue({
|
|
795
820
|
block: t,
|
|
796
821
|
context: r
|
|
797
822
|
})
|
|
@@ -805,7 +830,7 @@ const Mt = ({
|
|
|
805
830
|
includeBlockProps: o
|
|
806
831
|
} : l;
|
|
807
832
|
};
|
|
808
|
-
function
|
|
833
|
+
function ye(e) {
|
|
809
834
|
var i;
|
|
810
835
|
const [t, n] = E(
|
|
811
836
|
() => e.isInteractive ? Ht : e.componentRef
|
|
@@ -813,7 +838,7 @@ function pe(e) {
|
|
|
813
838
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
814
839
|
t,
|
|
815
840
|
{
|
|
816
|
-
...
|
|
841
|
+
...jt({
|
|
817
842
|
componentOptions: e.componentOptions,
|
|
818
843
|
builderBlock: e.builderBlock,
|
|
819
844
|
context: e.context,
|
|
@@ -836,9 +861,9 @@ function pe(e) {
|
|
|
836
861
|
}
|
|
837
862
|
) }) : null });
|
|
838
863
|
}
|
|
839
|
-
function
|
|
864
|
+
function ve(e) {
|
|
840
865
|
const [t, n] = E(() => e.repeatContext);
|
|
841
|
-
return /* @__PURE__ */ s(
|
|
866
|
+
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
842
867
|
Z,
|
|
843
868
|
{
|
|
844
869
|
block: e.block,
|
|
@@ -849,9 +874,9 @@ function ye(e) {
|
|
|
849
874
|
) });
|
|
850
875
|
}
|
|
851
876
|
function Z(e) {
|
|
852
|
-
var h,
|
|
877
|
+
var h, y, u, v;
|
|
853
878
|
function t() {
|
|
854
|
-
return
|
|
879
|
+
return Bt({
|
|
855
880
|
block: e.block,
|
|
856
881
|
context: e.context
|
|
857
882
|
});
|
|
@@ -861,51 +886,51 @@ function Z(e) {
|
|
|
861
886
|
update: !1
|
|
862
887
|
}));
|
|
863
888
|
function o() {
|
|
864
|
-
var
|
|
889
|
+
var g;
|
|
865
890
|
if (n.value && !n.update && !Y())
|
|
866
891
|
return n.value;
|
|
867
|
-
const
|
|
892
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : kt({
|
|
868
893
|
block: e.block,
|
|
869
894
|
localState: e.context.localState,
|
|
870
895
|
rootState: e.context.rootState,
|
|
871
896
|
rootSetState: e.context.rootSetState,
|
|
872
897
|
context: e.context.context
|
|
873
898
|
});
|
|
874
|
-
return n.value =
|
|
899
|
+
return n.value = f, n.update = !1, f;
|
|
875
900
|
}
|
|
876
901
|
function a() {
|
|
877
|
-
return
|
|
902
|
+
return Vt({
|
|
878
903
|
block: o(),
|
|
879
904
|
registeredComponents: e.registeredComponents,
|
|
880
905
|
model: e.context.model
|
|
881
906
|
});
|
|
882
907
|
}
|
|
883
908
|
function r() {
|
|
884
|
-
var
|
|
885
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var g;
|
|
910
|
+
return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
886
911
|
}
|
|
887
912
|
function l() {
|
|
888
|
-
var
|
|
889
|
-
if ((
|
|
890
|
-
return !!((
|
|
891
|
-
const
|
|
892
|
-
return ("show" in o() ? o().show : !0) && !
|
|
913
|
+
var x, b;
|
|
914
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
915
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
916
|
+
const f = "hide" in o() ? o().hide : !1;
|
|
917
|
+
return ("show" in o() ? o().show : !0) && !f;
|
|
893
918
|
}
|
|
894
|
-
function
|
|
895
|
-
var
|
|
896
|
-
return !((
|
|
919
|
+
function d() {
|
|
920
|
+
var g, x;
|
|
921
|
+
return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
897
922
|
}
|
|
898
923
|
function c() {
|
|
899
|
-
var
|
|
924
|
+
var f, g, x, b;
|
|
900
925
|
return {
|
|
901
|
-
blockChildren: (
|
|
902
|
-
componentRef: (
|
|
926
|
+
blockChildren: (f = o().children) != null ? f : [],
|
|
927
|
+
componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
|
|
903
928
|
componentOptions: {
|
|
904
|
-
...
|
|
905
|
-
...
|
|
906
|
-
...
|
|
907
|
-
...
|
|
908
|
-
...
|
|
929
|
+
...ft(o(), e.context),
|
|
930
|
+
...Wt(a(), o()),
|
|
931
|
+
...Dt(a(), e.context),
|
|
932
|
+
...Nt(a(), e.linkComponent),
|
|
933
|
+
...At(
|
|
909
934
|
a(),
|
|
910
935
|
e.registeredComponents,
|
|
911
936
|
e.context.model
|
|
@@ -915,33 +940,33 @@ function Z(e) {
|
|
|
915
940
|
linkComponent: e.linkComponent,
|
|
916
941
|
registeredComponents: e.registeredComponents,
|
|
917
942
|
builderBlock: o(),
|
|
918
|
-
includeBlockProps: ((
|
|
919
|
-
isInteractive: !((
|
|
943
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
944
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && O === "rsc")
|
|
920
945
|
};
|
|
921
946
|
}
|
|
922
|
-
return
|
|
923
|
-
const
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
...
|
|
927
|
-
elementId:
|
|
947
|
+
return B(() => {
|
|
948
|
+
const f = o().id, g = o().animations;
|
|
949
|
+
g && f && Tt(
|
|
950
|
+
g.map((x) => ({
|
|
951
|
+
...x,
|
|
952
|
+
elementId: f
|
|
928
953
|
}))
|
|
929
954
|
);
|
|
930
|
-
}, []),
|
|
955
|
+
}, []), B(() => {
|
|
931
956
|
n.update = !0;
|
|
932
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
933
|
-
/* @__PURE__ */ s(
|
|
934
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (
|
|
935
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ A(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s($t, { block: o(), context: e.context }),
|
|
959
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
960
|
+
ve,
|
|
936
961
|
{
|
|
937
|
-
repeatContext:
|
|
938
|
-
block:
|
|
962
|
+
repeatContext: f.context,
|
|
963
|
+
block: f.block,
|
|
939
964
|
registeredComponents: e.registeredComponents,
|
|
940
965
|
linkComponent: e.linkComponent
|
|
941
966
|
},
|
|
942
|
-
|
|
967
|
+
g
|
|
943
968
|
)) }) : /* @__PURE__ */ s(
|
|
944
|
-
|
|
969
|
+
ye,
|
|
945
970
|
{
|
|
946
971
|
componentRef: c().componentRef,
|
|
947
972
|
componentOptions: c().componentOptions,
|
|
@@ -953,24 +978,24 @@ function Z(e) {
|
|
|
953
978
|
includeBlockProps: c().includeBlockProps,
|
|
954
979
|
isInteractive: c().isInteractive
|
|
955
980
|
}
|
|
956
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
957
|
-
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
982
|
+
ve,
|
|
958
983
|
{
|
|
959
|
-
repeatContext:
|
|
960
|
-
block:
|
|
984
|
+
repeatContext: f.context,
|
|
985
|
+
block: f.block,
|
|
961
986
|
registeredComponents: e.registeredComponents,
|
|
962
987
|
linkComponent: e.linkComponent
|
|
963
988
|
},
|
|
964
|
-
|
|
965
|
-
)) }) : /* @__PURE__ */
|
|
966
|
-
|
|
989
|
+
g
|
|
990
|
+
)) }) : /* @__PURE__ */ A(
|
|
991
|
+
qt,
|
|
967
992
|
{
|
|
968
993
|
Wrapper: r(),
|
|
969
994
|
block: o(),
|
|
970
995
|
context: e.context,
|
|
971
996
|
children: [
|
|
972
997
|
/* @__PURE__ */ s(
|
|
973
|
-
|
|
998
|
+
ye,
|
|
974
999
|
{
|
|
975
1000
|
componentRef: c().componentRef,
|
|
976
1001
|
componentOptions: c().componentOptions,
|
|
@@ -983,23 +1008,23 @@ function Z(e) {
|
|
|
983
1008
|
isInteractive: c().isInteractive
|
|
984
1009
|
}
|
|
985
1010
|
),
|
|
986
|
-
(
|
|
1011
|
+
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
987
1012
|
Z,
|
|
988
1013
|
{
|
|
989
|
-
block:
|
|
1014
|
+
block: f,
|
|
990
1015
|
registeredComponents: e.registeredComponents,
|
|
991
1016
|
linkComponent: e.linkComponent,
|
|
992
1017
|
context: e.context
|
|
993
1018
|
},
|
|
994
|
-
|
|
1019
|
+
f.id
|
|
995
1020
|
))
|
|
996
1021
|
]
|
|
997
1022
|
}
|
|
998
1023
|
) })
|
|
999
1024
|
] }) : null });
|
|
1000
1025
|
}
|
|
1001
|
-
function
|
|
1002
|
-
const t =
|
|
1026
|
+
function zt(e) {
|
|
1027
|
+
const t = $(null);
|
|
1003
1028
|
function n() {
|
|
1004
1029
|
var r;
|
|
1005
1030
|
return [
|
|
@@ -1040,8 +1065,8 @@ function jt(e) {
|
|
|
1040
1065
|
"*"
|
|
1041
1066
|
));
|
|
1042
1067
|
}
|
|
1043
|
-
return
|
|
1044
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return B(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
1045
1070
|
/* @__PURE__ */ s(
|
|
1046
1071
|
e.BlocksWrapper,
|
|
1047
1072
|
{
|
|
@@ -1066,9 +1091,9 @@ function jt(e) {
|
|
|
1066
1091
|
}
|
|
1067
1092
|
function D(e) {
|
|
1068
1093
|
var i, o, a;
|
|
1069
|
-
const t =
|
|
1094
|
+
const t = be(se), n = be(Be);
|
|
1070
1095
|
return /* @__PURE__ */ s(
|
|
1071
|
-
|
|
1096
|
+
zt,
|
|
1072
1097
|
{
|
|
1073
1098
|
blocks: e.blocks,
|
|
1074
1099
|
parent: e.parent,
|
|
@@ -1090,9 +1115,9 @@ function D(e) {
|
|
|
1090
1115
|
}
|
|
1091
1116
|
);
|
|
1092
1117
|
}
|
|
1093
|
-
const
|
|
1094
|
-
function
|
|
1095
|
-
var
|
|
1118
|
+
const Kt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Jt(e) {
|
|
1120
|
+
var g, x;
|
|
1096
1121
|
function t() {
|
|
1097
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1098
1123
|
}
|
|
@@ -1102,28 +1127,28 @@ function Kt(e) {
|
|
|
1102
1127
|
function i() {
|
|
1103
1128
|
return e.stackColumnsAt || "tablet";
|
|
1104
1129
|
}
|
|
1105
|
-
function o(
|
|
1106
|
-
return
|
|
1130
|
+
function o(b) {
|
|
1131
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1107
1132
|
}
|
|
1108
|
-
function a(
|
|
1109
|
-
var
|
|
1110
|
-
return ((
|
|
1133
|
+
function a(b) {
|
|
1134
|
+
var S;
|
|
1135
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1111
1136
|
}
|
|
1112
|
-
function r(
|
|
1113
|
-
const
|
|
1114
|
-
return `calc(${
|
|
1137
|
+
function r(b) {
|
|
1138
|
+
const S = a(b), C = t() * (n().length - 1) * (S / 100);
|
|
1139
|
+
return `calc(${S}% - ${C}px)`;
|
|
1115
1140
|
}
|
|
1116
1141
|
function l({
|
|
1117
|
-
stackedStyle:
|
|
1118
|
-
desktopStyle:
|
|
1142
|
+
stackedStyle: b,
|
|
1143
|
+
desktopStyle: S
|
|
1119
1144
|
}) {
|
|
1120
|
-
return i() === "tablet" ?
|
|
1145
|
+
return i() === "tablet" ? b : S;
|
|
1121
1146
|
}
|
|
1122
|
-
function
|
|
1123
|
-
stackedStyle:
|
|
1124
|
-
desktopStyle:
|
|
1147
|
+
function d({
|
|
1148
|
+
stackedStyle: b,
|
|
1149
|
+
desktopStyle: S
|
|
1125
1150
|
}) {
|
|
1126
|
-
return i() === "never" ?
|
|
1151
|
+
return i() === "never" ? S : b;
|
|
1127
1152
|
}
|
|
1128
1153
|
function c() {
|
|
1129
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1137,114 +1162,114 @@ function Kt(e) {
|
|
|
1137
1162
|
})
|
|
1138
1163
|
};
|
|
1139
1164
|
}
|
|
1140
|
-
function
|
|
1141
|
-
const
|
|
1165
|
+
function y(b) {
|
|
1166
|
+
const S = b === 0 ? 0 : t(), C = r(b), P = `${S}px`, w = "100%", k = 0;
|
|
1142
1167
|
return {
|
|
1143
1168
|
...{
|
|
1144
1169
|
display: "flex",
|
|
1145
1170
|
flexDirection: "column",
|
|
1146
1171
|
alignItems: "stretch"
|
|
1147
1172
|
},
|
|
1148
|
-
width:
|
|
1173
|
+
width: C,
|
|
1149
1174
|
["marginLeft"]: P,
|
|
1150
|
-
"--column-width-mobile":
|
|
1151
|
-
stackedStyle:
|
|
1152
|
-
desktopStyle:
|
|
1175
|
+
"--column-width-mobile": d({
|
|
1176
|
+
stackedStyle: w,
|
|
1177
|
+
desktopStyle: C
|
|
1153
1178
|
}),
|
|
1154
|
-
"--column-margin-left-mobile":
|
|
1155
|
-
stackedStyle:
|
|
1179
|
+
"--column-margin-left-mobile": d({
|
|
1180
|
+
stackedStyle: k,
|
|
1156
1181
|
desktopStyle: P
|
|
1157
1182
|
}),
|
|
1158
1183
|
"--column-width-tablet": l({
|
|
1159
|
-
stackedStyle:
|
|
1160
|
-
desktopStyle:
|
|
1184
|
+
stackedStyle: w,
|
|
1185
|
+
desktopStyle: C
|
|
1161
1186
|
}),
|
|
1162
1187
|
"--column-margin-left-tablet": l({
|
|
1163
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: k,
|
|
1164
1189
|
desktopStyle: P
|
|
1165
1190
|
})
|
|
1166
1191
|
};
|
|
1167
1192
|
}
|
|
1168
|
-
function
|
|
1169
|
-
var
|
|
1170
|
-
return
|
|
1171
|
-
((P = (
|
|
1172
|
-
)[
|
|
1193
|
+
function u(b) {
|
|
1194
|
+
var C, P;
|
|
1195
|
+
return Me(
|
|
1196
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
+
)[b].max;
|
|
1173
1198
|
}
|
|
1174
|
-
function
|
|
1175
|
-
const
|
|
1199
|
+
function v() {
|
|
1200
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1176
1201
|
return `
|
|
1177
|
-
@media (max-width: ${
|
|
1202
|
+
@media (max-width: ${u("medium")}px) {
|
|
1178
1203
|
.${e.builderBlock.id}-breakpoints {
|
|
1179
1204
|
flex-direction: var(--flex-dir-tablet);
|
|
1180
1205
|
align-items: stretch;
|
|
1181
1206
|
}
|
|
1182
1207
|
|
|
1183
|
-
${
|
|
1208
|
+
${b} {
|
|
1184
1209
|
width: var(--column-width-tablet) !important;
|
|
1185
1210
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1186
1211
|
}
|
|
1187
1212
|
}
|
|
1188
1213
|
|
|
1189
|
-
@media (max-width: ${
|
|
1214
|
+
@media (max-width: ${u("small")}px) {
|
|
1190
1215
|
.${e.builderBlock.id}-breakpoints {
|
|
1191
1216
|
flex-direction: var(--flex-dir);
|
|
1192
1217
|
align-items: stretch;
|
|
1193
1218
|
}
|
|
1194
1219
|
|
|
1195
|
-
${
|
|
1220
|
+
${b} {
|
|
1196
1221
|
width: var(--column-width-mobile) !important;
|
|
1197
1222
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1198
1223
|
}
|
|
1199
1224
|
},
|
|
1200
1225
|
`;
|
|
1201
1226
|
}
|
|
1202
|
-
function
|
|
1227
|
+
function f(b, S) {
|
|
1203
1228
|
return {
|
|
1204
|
-
...
|
|
1205
|
-
href:
|
|
1229
|
+
...b.link ? {
|
|
1230
|
+
href: b.link
|
|
1206
1231
|
} : {},
|
|
1207
|
-
[
|
|
1208
|
-
style:
|
|
1232
|
+
[H()]: "builder-column",
|
|
1233
|
+
style: Ue(y(S))
|
|
1209
1234
|
};
|
|
1210
1235
|
}
|
|
1211
|
-
return /* @__PURE__ */
|
|
1212
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ A(
|
|
1213
1238
|
"div",
|
|
1214
1239
|
{
|
|
1215
|
-
className:
|
|
1240
|
+
className: Kt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1216
1241
|
style: h(),
|
|
1217
1242
|
children: [
|
|
1218
1243
|
/* @__PURE__ */ s(
|
|
1219
|
-
|
|
1244
|
+
j,
|
|
1220
1245
|
{
|
|
1221
1246
|
id: "builderio-columns",
|
|
1222
|
-
styles:
|
|
1247
|
+
styles: v(),
|
|
1223
1248
|
nonce: e.builderContext.nonce
|
|
1224
1249
|
}
|
|
1225
1250
|
),
|
|
1226
|
-
(
|
|
1227
|
-
|
|
1251
|
+
(x = e.columns) == null ? void 0 : x.map((b, S) => /* @__PURE__ */ s(
|
|
1252
|
+
le,
|
|
1228
1253
|
{
|
|
1229
|
-
TagName: o(
|
|
1254
|
+
TagName: o(b),
|
|
1230
1255
|
actionAttributes: {},
|
|
1231
|
-
attributes:
|
|
1256
|
+
attributes: f(b, S),
|
|
1232
1257
|
children: /* @__PURE__ */ s(
|
|
1233
1258
|
D,
|
|
1234
1259
|
{
|
|
1235
|
-
path: `columns.${
|
|
1260
|
+
path: `columns.${S}.blocks`,
|
|
1236
1261
|
parent: e.builderBlock.id,
|
|
1237
1262
|
context: e.builderContext,
|
|
1238
1263
|
registeredComponents: e.builderComponents,
|
|
1239
1264
|
linkComponent: e.builderLinkComponent,
|
|
1240
|
-
blocks:
|
|
1265
|
+
blocks: b.blocks,
|
|
1241
1266
|
styleProp: {
|
|
1242
1267
|
flexGrow: "1"
|
|
1243
1268
|
}
|
|
1244
1269
|
}
|
|
1245
1270
|
)
|
|
1246
1271
|
},
|
|
1247
|
-
|
|
1272
|
+
S
|
|
1248
1273
|
))
|
|
1249
1274
|
]
|
|
1250
1275
|
}
|
|
@@ -1255,55 +1280,55 @@ function Kt(e) {
|
|
|
1255
1280
|
}` })
|
|
1256
1281
|
] });
|
|
1257
1282
|
}
|
|
1258
|
-
function
|
|
1283
|
+
function Gt(e) {
|
|
1259
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1260
1285
|
}
|
|
1261
|
-
function
|
|
1286
|
+
function xe(e) {
|
|
1262
1287
|
return e.replace(/http(s)?:/, "");
|
|
1263
1288
|
}
|
|
1264
|
-
function
|
|
1289
|
+
function Qt(e = "", t, n) {
|
|
1265
1290
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1266
1291
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1267
1292
|
}
|
|
1268
|
-
function
|
|
1293
|
+
function Yt(e, t) {
|
|
1269
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1270
1295
|
return e;
|
|
1271
1296
|
if (t === "master")
|
|
1272
|
-
return
|
|
1297
|
+
return xe(e);
|
|
1273
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1274
1299
|
if (n) {
|
|
1275
1300
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1276
|
-
return
|
|
1301
|
+
return xe(`${i[0]}_${a}${o}`);
|
|
1277
1302
|
}
|
|
1278
1303
|
return null;
|
|
1279
1304
|
}
|
|
1280
|
-
function
|
|
1305
|
+
function te(e) {
|
|
1281
1306
|
if (!e)
|
|
1282
1307
|
return e;
|
|
1283
1308
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1284
1309
|
if (e.match(/builder\.io/)) {
|
|
1285
1310
|
let n = e;
|
|
1286
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1287
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Qt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1288
1313
|
}
|
|
1289
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Yt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1290
1315
|
}
|
|
1291
|
-
function
|
|
1292
|
-
var o, a, r, l,
|
|
1316
|
+
function Xt(e) {
|
|
1317
|
+
var o, a, r, l, d, c;
|
|
1293
1318
|
function t() {
|
|
1294
|
-
var
|
|
1295
|
-
const
|
|
1296
|
-
if (!
|
|
1319
|
+
var u;
|
|
1320
|
+
const y = e.image || e.src;
|
|
1321
|
+
if (!y || // We can auto add srcset for cdn.builder.io and shopify
|
|
1297
1322
|
// images, otherwise you can supply this prop manually
|
|
1298
|
-
!(typeof
|
|
1323
|
+
!(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
|
|
1299
1324
|
return e.srcset;
|
|
1300
1325
|
if (!e.noWebp) {
|
|
1301
|
-
if (e.srcset && ((
|
|
1326
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1302
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1303
|
-
return console.debug("Removed given srcset"),
|
|
1328
|
+
return console.debug("Removed given srcset"), te(y);
|
|
1304
1329
|
} else if (e.image && !e.srcset)
|
|
1305
|
-
return
|
|
1306
|
-
return
|
|
1330
|
+
return te(y);
|
|
1331
|
+
return te(y);
|
|
1307
1332
|
}
|
|
1308
1333
|
}
|
|
1309
1334
|
function n() {
|
|
@@ -1320,9 +1345,9 @@ function Yt(e) {
|
|
|
1320
1345
|
};
|
|
1321
1346
|
return e.aspectRatio ? h : void 0;
|
|
1322
1347
|
}
|
|
1323
|
-
return /* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ A(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ A("picture", { children: [
|
|
1326
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1327
1352
|
/* @__PURE__ */ s(
|
|
1328
1353
|
"img",
|
|
@@ -1353,7 +1378,7 @@ function Yt(e) {
|
|
|
1353
1378
|
}
|
|
1354
1379
|
) : null,
|
|
1355
1380
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1356
|
-
!e.fitContent && ((c = (
|
|
1381
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1357
1382
|
] }),
|
|
1358
1383
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1359
1384
|
opacity: 1;
|
|
@@ -1374,7 +1399,7 @@ function Yt(e) {
|
|
|
1374
1399
|
}` })
|
|
1375
1400
|
] });
|
|
1376
1401
|
}
|
|
1377
|
-
function
|
|
1402
|
+
function Zt(e) {
|
|
1378
1403
|
return /* @__PURE__ */ s(
|
|
1379
1404
|
"section",
|
|
1380
1405
|
{
|
|
@@ -1395,7 +1420,7 @@ function Xt(e) {
|
|
|
1395
1420
|
}
|
|
1396
1421
|
);
|
|
1397
1422
|
}
|
|
1398
|
-
const
|
|
1423
|
+
const ne = {
|
|
1399
1424
|
"@type": "@builder.io/sdk:Element",
|
|
1400
1425
|
layerName: "Accordion item title",
|
|
1401
1426
|
responsiveStyles: {
|
|
@@ -1424,7 +1449,7 @@ const te = {
|
|
|
1424
1449
|
}
|
|
1425
1450
|
}
|
|
1426
1451
|
}]
|
|
1427
|
-
},
|
|
1452
|
+
}, ie = {
|
|
1428
1453
|
"@type": "@builder.io/sdk:Element",
|
|
1429
1454
|
layerName: "Accordion item detail",
|
|
1430
1455
|
responsiveStyles: {
|
|
@@ -1455,7 +1480,7 @@ const te = {
|
|
|
1455
1480
|
}
|
|
1456
1481
|
}
|
|
1457
1482
|
}]
|
|
1458
|
-
},
|
|
1483
|
+
}, en = {
|
|
1459
1484
|
name: "Builder:Accordion",
|
|
1460
1485
|
canHaveChildren: !0,
|
|
1461
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1472,19 +1497,19 @@ const te = {
|
|
|
1472
1497
|
name: "title",
|
|
1473
1498
|
type: "uiBlocks",
|
|
1474
1499
|
hideFromUI: !0,
|
|
1475
|
-
defaultValue: [
|
|
1500
|
+
defaultValue: [ne]
|
|
1476
1501
|
}, {
|
|
1477
1502
|
name: "detail",
|
|
1478
1503
|
type: "uiBlocks",
|
|
1479
1504
|
hideFromUI: !0,
|
|
1480
|
-
defaultValue: [
|
|
1505
|
+
defaultValue: [ie]
|
|
1481
1506
|
}],
|
|
1482
1507
|
defaultValue: [{
|
|
1483
|
-
title: [
|
|
1484
|
-
detail: [
|
|
1508
|
+
title: [ne],
|
|
1509
|
+
detail: [ie]
|
|
1485
1510
|
}, {
|
|
1486
|
-
title: [
|
|
1487
|
-
detail: [
|
|
1511
|
+
title: [ne],
|
|
1512
|
+
detail: [ie]
|
|
1488
1513
|
}],
|
|
1489
1514
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1490
1515
|
}, {
|
|
@@ -1519,9 +1544,9 @@ const te = {
|
|
|
1519
1544
|
builderComponents: !0,
|
|
1520
1545
|
builderLinkComponent: !0
|
|
1521
1546
|
}
|
|
1522
|
-
},
|
|
1523
|
-
function
|
|
1524
|
-
var
|
|
1547
|
+
}, Se = (e) => e.toString();
|
|
1548
|
+
function tn(e) {
|
|
1549
|
+
var y;
|
|
1525
1550
|
const [t, n] = E(() => []);
|
|
1526
1551
|
function i() {
|
|
1527
1552
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1539,7 +1564,7 @@ function en(e) {
|
|
|
1539
1564
|
};
|
|
1540
1565
|
}
|
|
1541
1566
|
function a() {
|
|
1542
|
-
const
|
|
1567
|
+
const v = {
|
|
1543
1568
|
...{
|
|
1544
1569
|
display: "flex",
|
|
1545
1570
|
flexDirection: "column"
|
|
@@ -1548,75 +1573,75 @@ function en(e) {
|
|
|
1548
1573
|
cursor: "pointer"
|
|
1549
1574
|
};
|
|
1550
1575
|
return Object.fromEntries(
|
|
1551
|
-
Object.entries(
|
|
1576
|
+
Object.entries(v).filter(([f, g]) => g !== void 0)
|
|
1552
1577
|
);
|
|
1553
1578
|
}
|
|
1554
|
-
function r(
|
|
1555
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1579
|
+
function r(u) {
|
|
1580
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1556
1581
|
}
|
|
1557
|
-
function l(
|
|
1558
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1582
|
+
function l(u) {
|
|
1583
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1559
1584
|
}
|
|
1560
|
-
function
|
|
1561
|
-
let
|
|
1585
|
+
function d() {
|
|
1586
|
+
let u = null;
|
|
1562
1587
|
if (e.grid && t.length && document) {
|
|
1563
|
-
const
|
|
1564
|
-
let
|
|
1565
|
-
`.builder-accordion-title[data-index="${
|
|
1588
|
+
const f = t[0];
|
|
1589
|
+
let x = document.querySelector(
|
|
1590
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1566
1591
|
);
|
|
1567
|
-
if (
|
|
1568
|
-
let
|
|
1569
|
-
for (;
|
|
1570
|
-
if (
|
|
1571
|
-
if (
|
|
1592
|
+
if (u = f, x) {
|
|
1593
|
+
let b = x.getBoundingClientRect();
|
|
1594
|
+
for (; x = x && x.nextElementSibling; )
|
|
1595
|
+
if (x) {
|
|
1596
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1572
1597
|
continue;
|
|
1573
|
-
const
|
|
1574
|
-
if (
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1598
|
+
const S = x.getBoundingClientRect();
|
|
1599
|
+
if (S.left > b.left) {
|
|
1600
|
+
const C = parseInt(
|
|
1601
|
+
x.getAttribute("data-index") || "",
|
|
1577
1602
|
10
|
|
1578
1603
|
);
|
|
1579
|
-
isNaN(
|
|
1604
|
+
isNaN(C) || (b = S, u = C);
|
|
1580
1605
|
} else
|
|
1581
1606
|
break;
|
|
1582
1607
|
}
|
|
1583
1608
|
}
|
|
1584
1609
|
}
|
|
1585
|
-
return typeof
|
|
1610
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1586
1611
|
}
|
|
1587
1612
|
function c() {
|
|
1588
|
-
const
|
|
1589
|
-
order: typeof
|
|
1613
|
+
const u = {
|
|
1614
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1590
1615
|
...e.grid && {
|
|
1591
1616
|
width: "100%"
|
|
1592
1617
|
}
|
|
1593
1618
|
};
|
|
1594
1619
|
return Object.fromEntries(
|
|
1595
|
-
Object.entries(
|
|
1620
|
+
Object.entries(u).filter(([v, f]) => f !== void 0)
|
|
1596
1621
|
);
|
|
1597
1622
|
}
|
|
1598
|
-
function h(
|
|
1599
|
-
t.includes(
|
|
1623
|
+
function h(u) {
|
|
1624
|
+
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1600
1625
|
}
|
|
1601
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
|
|
1602
1627
|
/* @__PURE__ */ s(
|
|
1603
1628
|
"div",
|
|
1604
1629
|
{
|
|
1605
|
-
className: r(
|
|
1630
|
+
className: r(v),
|
|
1606
1631
|
style: {
|
|
1607
1632
|
...a(),
|
|
1608
1633
|
...e.grid && {
|
|
1609
1634
|
width: e.gridRowWidth,
|
|
1610
|
-
order:
|
|
1635
|
+
order: d() !== null ? Se(v) : Se(v + 1)
|
|
1611
1636
|
}
|
|
1612
1637
|
},
|
|
1613
|
-
"data-index":
|
|
1614
|
-
onClick: (
|
|
1638
|
+
"data-index": v,
|
|
1639
|
+
onClick: (f) => h(v),
|
|
1615
1640
|
children: /* @__PURE__ */ s(
|
|
1616
1641
|
D,
|
|
1617
1642
|
{
|
|
1618
|
-
blocks:
|
|
1619
|
-
path: `items.${
|
|
1643
|
+
blocks: u.title,
|
|
1644
|
+
path: `items.${v}.title`,
|
|
1620
1645
|
parent: e.builderBlock.id,
|
|
1621
1646
|
context: e.builderContext,
|
|
1622
1647
|
registeredComponents: e.builderComponents,
|
|
@@ -1625,16 +1650,16 @@ function en(e) {
|
|
|
1625
1650
|
)
|
|
1626
1651
|
}
|
|
1627
1652
|
),
|
|
1628
|
-
t.includes(
|
|
1653
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1629
1654
|
"div",
|
|
1630
1655
|
{
|
|
1631
|
-
className: l(
|
|
1656
|
+
className: l(v),
|
|
1632
1657
|
style: c(),
|
|
1633
1658
|
children: /* @__PURE__ */ s(
|
|
1634
1659
|
D,
|
|
1635
1660
|
{
|
|
1636
|
-
blocks:
|
|
1637
|
-
path: `items.${
|
|
1661
|
+
blocks: u.detail,
|
|
1662
|
+
path: `items.${v}.detail`,
|
|
1638
1663
|
parent: e.builderBlock.id,
|
|
1639
1664
|
context: e.builderContext,
|
|
1640
1665
|
registeredComponents: e.builderComponents,
|
|
@@ -1643,9 +1668,9 @@ function en(e) {
|
|
|
1643
1668
|
)
|
|
1644
1669
|
}
|
|
1645
1670
|
) : null
|
|
1646
|
-
] },
|
|
1671
|
+
] }, v)) });
|
|
1647
1672
|
}
|
|
1648
|
-
const
|
|
1673
|
+
const nn = {
|
|
1649
1674
|
name: "Core:Button",
|
|
1650
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1651
1676
|
defaultStyles: {
|
|
@@ -1681,7 +1706,7 @@ const tn = {
|
|
|
1681
1706
|
shouldReceiveBuilderProps: {
|
|
1682
1707
|
builderLinkComponent: !0
|
|
1683
1708
|
}
|
|
1684
|
-
},
|
|
1709
|
+
}, on = {
|
|
1685
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1686
1711
|
name: "Columns",
|
|
1687
1712
|
isRSC: !0,
|
|
@@ -1860,7 +1885,7 @@ const tn = {
|
|
|
1860
1885
|
});
|
|
1861
1886
|
}
|
|
1862
1887
|
const n = e.get("columns");
|
|
1863
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l,
|
|
1888
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1864
1889
|
}
|
|
1865
1890
|
}, {
|
|
1866
1891
|
name: "space",
|
|
@@ -1888,13 +1913,13 @@ const tn = {
|
|
|
1888
1913
|
builderComponents: !0,
|
|
1889
1914
|
builderLinkComponent: !0
|
|
1890
1915
|
}
|
|
1891
|
-
},
|
|
1916
|
+
}, an = {
|
|
1892
1917
|
name: "Fragment",
|
|
1893
1918
|
static: !0,
|
|
1894
1919
|
hidden: !0,
|
|
1895
1920
|
canHaveChildren: !0,
|
|
1896
1921
|
noWrap: !0
|
|
1897
|
-
},
|
|
1922
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], rn = ["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"], ln = {
|
|
1898
1923
|
name: "Image",
|
|
1899
1924
|
static: !0,
|
|
1900
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",
|
|
@@ -1909,21 +1934,21 @@ const tn = {
|
|
|
1909
1934
|
name: "image",
|
|
1910
1935
|
type: "file",
|
|
1911
1936
|
bubble: !0,
|
|
1912
|
-
allowedFileTypes:
|
|
1937
|
+
allowedFileTypes: de,
|
|
1913
1938
|
required: !0,
|
|
1914
1939
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1915
1940
|
onChange: (e) => {
|
|
1916
1941
|
e.delete("srcset"), e.delete("noWebp");
|
|
1917
1942
|
function n(r, l = 6e4) {
|
|
1918
|
-
return new Promise((
|
|
1943
|
+
return new Promise((d, c) => {
|
|
1919
1944
|
const h = document.createElement("img");
|
|
1920
|
-
let
|
|
1945
|
+
let y = !1;
|
|
1921
1946
|
h.onload = () => {
|
|
1922
|
-
|
|
1923
|
-
}, h.addEventListener("error", (
|
|
1924
|
-
console.warn("Image load failed",
|
|
1947
|
+
y = !0, d(h);
|
|
1948
|
+
}, h.addEventListener("error", (u) => {
|
|
1949
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1925
1950
|
}), h.src = r, setTimeout(() => {
|
|
1926
|
-
|
|
1951
|
+
y || c(new Error("Image load timed out"));
|
|
1927
1952
|
}, l);
|
|
1928
1953
|
});
|
|
1929
1954
|
}
|
|
@@ -2002,7 +2027,7 @@ const tn = {
|
|
|
2002
2027
|
shouldReceiveBuilderProps: {
|
|
2003
2028
|
builderBlock: !0
|
|
2004
2029
|
}
|
|
2005
|
-
},
|
|
2030
|
+
}, sn = {
|
|
2006
2031
|
name: "PersonalizationContainer",
|
|
2007
2032
|
shouldReceiveBuilderProps: {
|
|
2008
2033
|
builderBlock: !0,
|
|
@@ -2048,7 +2073,7 @@ function G(e) {
|
|
|
2048
2073
|
}
|
|
2049
2074
|
);
|
|
2050
2075
|
}
|
|
2051
|
-
function
|
|
2076
|
+
function cn(e, t, n, i) {
|
|
2052
2077
|
function o(c) {
|
|
2053
2078
|
return typeof c == "string";
|
|
2054
2079
|
}
|
|
@@ -2057,42 +2082,42 @@ function sn(e, t, n, i) {
|
|
|
2057
2082
|
}
|
|
2058
2083
|
function r(c, h) {
|
|
2059
2084
|
return (() => {
|
|
2060
|
-
const
|
|
2061
|
-
let
|
|
2062
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (
|
|
2085
|
+
const u = h.property, v = h.operator;
|
|
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)), !(u && v))
|
|
2063
2088
|
return !0;
|
|
2064
|
-
if (Array.isArray(
|
|
2065
|
-
return
|
|
2066
|
-
property:
|
|
2067
|
-
operator:
|
|
2068
|
-
value:
|
|
2069
|
-
})) : !!
|
|
2070
|
-
property:
|
|
2071
|
-
operator:
|
|
2072
|
-
value:
|
|
2089
|
+
if (Array.isArray(f))
|
|
2090
|
+
return v === "isNot" ? f.every((x) => r(c, {
|
|
2091
|
+
property: u,
|
|
2092
|
+
operator: v,
|
|
2093
|
+
value: x
|
|
2094
|
+
})) : !!f.find((x) => r(c, {
|
|
2095
|
+
property: u,
|
|
2096
|
+
operator: v,
|
|
2097
|
+
value: x
|
|
2073
2098
|
}));
|
|
2074
|
-
const
|
|
2075
|
-
if (Array.isArray(
|
|
2076
|
-
return
|
|
2077
|
-
switch (
|
|
2099
|
+
const g = c[u];
|
|
2100
|
+
if (Array.isArray(g))
|
|
2101
|
+
return g.includes(f);
|
|
2102
|
+
switch (v) {
|
|
2078
2103
|
case "is":
|
|
2079
|
-
return
|
|
2104
|
+
return g === f;
|
|
2080
2105
|
case "isNot":
|
|
2081
|
-
return
|
|
2106
|
+
return g !== f;
|
|
2082
2107
|
case "contains":
|
|
2083
|
-
return (o(
|
|
2108
|
+
return (o(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2084
2109
|
case "startsWith":
|
|
2085
|
-
return o(
|
|
2110
|
+
return o(g) && g.startsWith(String(f));
|
|
2086
2111
|
case "endsWith":
|
|
2087
|
-
return o(
|
|
2112
|
+
return o(g) && g.endsWith(String(f));
|
|
2088
2113
|
case "greaterThan":
|
|
2089
|
-
return a(
|
|
2114
|
+
return a(g) && a(f) && g > f;
|
|
2090
2115
|
case "lessThan":
|
|
2091
|
-
return a(
|
|
2116
|
+
return a(g) && a(f) && g < f;
|
|
2092
2117
|
case "greaterThanOrEqualTo":
|
|
2093
|
-
return a(
|
|
2118
|
+
return a(g) && a(f) && g >= f;
|
|
2094
2119
|
case "lessThanOrEqualTo":
|
|
2095
|
-
return a(
|
|
2120
|
+
return a(g) && a(f) && g <= f;
|
|
2096
2121
|
default:
|
|
2097
2122
|
return !1;
|
|
2098
2123
|
}
|
|
@@ -2102,10 +2127,10 @@ function sn(e, t, n, i) {
|
|
|
2102
2127
|
query: t,
|
|
2103
2128
|
startDate: n,
|
|
2104
2129
|
endDate: i
|
|
2105
|
-
},
|
|
2106
|
-
return l.startDate && new Date(l.startDate) >
|
|
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((c) => r(e, c));
|
|
2107
2132
|
}
|
|
2108
|
-
const
|
|
2133
|
+
const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2109
2134
|
if (!navigator.cookieEnabled) {
|
|
2110
2135
|
return;
|
|
2111
2136
|
}
|
|
@@ -2158,7 +2183,7 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2158
2183
|
} else if (variants && variants.length > 0) {
|
|
2159
2184
|
removeVariants();
|
|
2160
2185
|
}
|
|
2161
|
-
}`,
|
|
2186
|
+
}`, dn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2162
2187
|
function isString(val) {
|
|
2163
2188
|
return typeof val === 'string';
|
|
2164
2189
|
}
|
|
@@ -2237,10 +2262,10 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2237
2262
|
return objectMatchesQuery(userAttributes, filter);
|
|
2238
2263
|
});
|
|
2239
2264
|
}`;
|
|
2240
|
-
function
|
|
2241
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2265
|
+
function mn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || F());
|
|
2242
2267
|
}
|
|
2243
|
-
function
|
|
2268
|
+
function fn({
|
|
2244
2269
|
variants: e,
|
|
2245
2270
|
previewingIndex: t,
|
|
2246
2271
|
isHydrated: n,
|
|
@@ -2257,7 +2282,7 @@ function mn({
|
|
|
2257
2282
|
blocks: e[t].blocks,
|
|
2258
2283
|
path: `component.options.variants.${t}.blocks`
|
|
2259
2284
|
} : a;
|
|
2260
|
-
if (
|
|
2285
|
+
if (F()) {
|
|
2261
2286
|
const l = i == null ? void 0 : i[0];
|
|
2262
2287
|
if (l)
|
|
2263
2288
|
return {
|
|
@@ -2267,79 +2292,79 @@ function mn({
|
|
|
2267
2292
|
}
|
|
2268
2293
|
return a;
|
|
2269
2294
|
}
|
|
2270
|
-
const
|
|
2295
|
+
const hn = (e, t, n) => `
|
|
2271
2296
|
(function() {
|
|
2297
|
+
${dn}
|
|
2272
2298
|
${un}
|
|
2273
|
-
${cn}
|
|
2274
2299
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2275
2300
|
})();
|
|
2276
2301
|
`;
|
|
2277
|
-
function
|
|
2278
|
-
var
|
|
2279
|
-
const t =
|
|
2280
|
-
() =>
|
|
2302
|
+
function gn(e) {
|
|
2303
|
+
var g, x, b, S, C, P, w;
|
|
2304
|
+
const t = $(null), [n, i] = E(
|
|
2305
|
+
() => fe.getUserAttributes()
|
|
2281
2306
|
), [o, a] = E(
|
|
2282
2307
|
() => {
|
|
2283
|
-
var
|
|
2284
|
-
return
|
|
2308
|
+
var k, m, p;
|
|
2309
|
+
return hn(
|
|
2285
2310
|
e.variants,
|
|
2286
|
-
((
|
|
2311
|
+
((k = e.builderBlock) == null ? void 0 : k.id) || "none",
|
|
2287
2312
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2288
2313
|
);
|
|
2289
2314
|
}
|
|
2290
|
-
), [r, l] = E(() => []), [
|
|
2315
|
+
), [r, l] = E(() => []), [d, c] = E(
|
|
2291
2316
|
() => {
|
|
2292
|
-
var
|
|
2293
|
-
return
|
|
2317
|
+
var k;
|
|
2318
|
+
return mn(
|
|
2294
2319
|
e.variants,
|
|
2295
|
-
|
|
2320
|
+
M((k = e.builderContext) == null ? void 0 : k.canTrack)
|
|
2296
2321
|
);
|
|
2297
2322
|
}
|
|
2298
|
-
), [h,
|
|
2299
|
-
function
|
|
2300
|
-
return (e.variants || []).filter((
|
|
2301
|
-
var m, p,
|
|
2302
|
-
return
|
|
2323
|
+
), [h, y] = E(() => !1);
|
|
2324
|
+
function u() {
|
|
2325
|
+
return (e.variants || []).filter((k) => {
|
|
2326
|
+
var m, p, I, T;
|
|
2327
|
+
return cn(
|
|
2303
2328
|
{
|
|
2304
2329
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2305
|
-
locale: (
|
|
2330
|
+
locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
|
|
2306
2331
|
} : {},
|
|
2307
2332
|
...n
|
|
2308
2333
|
},
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2334
|
+
k.query,
|
|
2335
|
+
k.startDate,
|
|
2336
|
+
k.endDate
|
|
2312
2337
|
);
|
|
2313
2338
|
});
|
|
2314
2339
|
}
|
|
2315
|
-
function
|
|
2316
|
-
var
|
|
2317
|
-
return
|
|
2340
|
+
function v() {
|
|
2341
|
+
var k;
|
|
2342
|
+
return fn({
|
|
2318
2343
|
variants: e.variants,
|
|
2319
|
-
fallbackBlocks: (
|
|
2344
|
+
fallbackBlocks: (k = e.builderBlock) == null ? void 0 : k.children,
|
|
2320
2345
|
isHydrated: h,
|
|
2321
|
-
filteredVariants:
|
|
2346
|
+
filteredVariants: u(),
|
|
2322
2347
|
previewingIndex: e.previewingIndex
|
|
2323
2348
|
});
|
|
2324
2349
|
}
|
|
2325
|
-
function
|
|
2350
|
+
function f() {
|
|
2326
2351
|
return (e.variants || []).map(
|
|
2327
|
-
(
|
|
2352
|
+
(k, m) => {
|
|
2328
2353
|
var p;
|
|
2329
2354
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2330
2355
|
}
|
|
2331
2356
|
).join("");
|
|
2332
2357
|
}
|
|
2333
|
-
return
|
|
2358
|
+
return B(() => {
|
|
2334
2359
|
var m;
|
|
2335
|
-
|
|
2336
|
-
const
|
|
2360
|
+
y(!0);
|
|
2361
|
+
const k = fe.subscribeOnUserAttributesChange(
|
|
2337
2362
|
(p) => {
|
|
2338
2363
|
i(p);
|
|
2339
2364
|
}
|
|
2340
2365
|
);
|
|
2341
2366
|
if (!(W() || Y())) {
|
|
2342
|
-
const p =
|
|
2367
|
+
const p = u()[0];
|
|
2343
2368
|
t.current && (t.current.dispatchEvent(
|
|
2344
2369
|
new CustomEvent("builder.variantLoaded", {
|
|
2345
2370
|
detail: {
|
|
@@ -2348,14 +2373,14 @@ function hn(e) {
|
|
|
2348
2373
|
},
|
|
2349
2374
|
bubbles: !0
|
|
2350
2375
|
})
|
|
2351
|
-
), new IntersectionObserver((
|
|
2352
|
-
|
|
2353
|
-
var
|
|
2354
|
-
|
|
2376
|
+
), new IntersectionObserver((T) => {
|
|
2377
|
+
T.forEach((V) => {
|
|
2378
|
+
var N;
|
|
2379
|
+
V.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2355
2380
|
new CustomEvent("builder.variantDisplayed", {
|
|
2356
2381
|
detail: {
|
|
2357
2382
|
variant: p || "default",
|
|
2358
|
-
content: (
|
|
2383
|
+
content: (N = e.builderContext) == null ? void 0 : N.content
|
|
2359
2384
|
},
|
|
2360
2385
|
bubbles: !0
|
|
2361
2386
|
})
|
|
@@ -2363,19 +2388,19 @@ function hn(e) {
|
|
|
2363
2388
|
});
|
|
2364
2389
|
}).observe(t.current));
|
|
2365
2390
|
}
|
|
2366
|
-
r.push(
|
|
2367
|
-
}, []),
|
|
2368
|
-
r.forEach((
|
|
2369
|
-
}, []), /* @__PURE__ */
|
|
2391
|
+
r.push(k);
|
|
2392
|
+
}, []), B(() => () => {
|
|
2393
|
+
r.forEach((k) => k());
|
|
2394
|
+
}, []), /* @__PURE__ */ A(
|
|
2370
2395
|
"div",
|
|
2371
2396
|
{
|
|
2372
2397
|
ref: t,
|
|
2373
2398
|
...e.attributes,
|
|
2374
|
-
className: `builder-personalization-container ${((
|
|
2399
|
+
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2375
2400
|
children: [
|
|
2376
|
-
|
|
2377
|
-
(
|
|
2378
|
-
var p,
|
|
2401
|
+
d ? /* @__PURE__ */ A(R, { children: [
|
|
2402
|
+
(x = e.variants) == null ? void 0 : x.map((k, m) => {
|
|
2403
|
+
var p, I;
|
|
2379
2404
|
return /* @__PURE__ */ s(
|
|
2380
2405
|
"template",
|
|
2381
2406
|
{
|
|
@@ -2383,8 +2408,8 @@ function hn(e) {
|
|
|
2383
2408
|
children: /* @__PURE__ */ s(
|
|
2384
2409
|
D,
|
|
2385
2410
|
{
|
|
2386
|
-
blocks:
|
|
2387
|
-
parent: (
|
|
2411
|
+
blocks: k.blocks,
|
|
2412
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2388
2413
|
path: `component.options.variants.${m}.blocks`
|
|
2389
2414
|
}
|
|
2390
2415
|
)
|
|
@@ -2393,17 +2418,17 @@ function hn(e) {
|
|
|
2393
2418
|
);
|
|
2394
2419
|
}),
|
|
2395
2420
|
/* @__PURE__ */ s(
|
|
2396
|
-
|
|
2421
|
+
j,
|
|
2397
2422
|
{
|
|
2398
|
-
nonce: ((
|
|
2399
|
-
styles:
|
|
2400
|
-
id: `variants-styles-${(
|
|
2423
|
+
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2424
|
+
styles: f(),
|
|
2425
|
+
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
2401
2426
|
}
|
|
2402
2427
|
),
|
|
2403
2428
|
/* @__PURE__ */ s(
|
|
2404
2429
|
G,
|
|
2405
2430
|
{
|
|
2406
|
-
nonce: ((
|
|
2431
|
+
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2407
2432
|
scriptStr: o,
|
|
2408
2433
|
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2409
2434
|
}
|
|
@@ -2412,16 +2437,16 @@ function hn(e) {
|
|
|
2412
2437
|
/* @__PURE__ */ s(
|
|
2413
2438
|
D,
|
|
2414
2439
|
{
|
|
2415
|
-
blocks:
|
|
2416
|
-
parent: (
|
|
2417
|
-
path:
|
|
2440
|
+
blocks: v().blocks,
|
|
2441
|
+
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
2442
|
+
path: v().path
|
|
2418
2443
|
}
|
|
2419
2444
|
)
|
|
2420
2445
|
]
|
|
2421
2446
|
}
|
|
2422
2447
|
);
|
|
2423
2448
|
}
|
|
2424
|
-
const
|
|
2449
|
+
const bn = {
|
|
2425
2450
|
name: "Core:Section",
|
|
2426
2451
|
static: !0,
|
|
2427
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2460,7 +2485,7 @@ const gn = {
|
|
|
2460
2485
|
}
|
|
2461
2486
|
}
|
|
2462
2487
|
}]
|
|
2463
|
-
},
|
|
2488
|
+
}, pn = {
|
|
2464
2489
|
name: "Slot",
|
|
2465
2490
|
isRSC: !0,
|
|
2466
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2478,7 +2503,7 @@ const gn = {
|
|
|
2478
2503
|
builderComponents: !0
|
|
2479
2504
|
}
|
|
2480
2505
|
};
|
|
2481
|
-
function
|
|
2506
|
+
function yn(e) {
|
|
2482
2507
|
var t, n, i;
|
|
2483
2508
|
return /* @__PURE__ */ s(
|
|
2484
2509
|
"div",
|
|
@@ -2502,7 +2527,7 @@ function pn(e) {
|
|
|
2502
2527
|
}
|
|
2503
2528
|
);
|
|
2504
2529
|
}
|
|
2505
|
-
const
|
|
2530
|
+
const vn = {
|
|
2506
2531
|
name: "Symbol",
|
|
2507
2532
|
noWrap: !0,
|
|
2508
2533
|
static: !0,
|
|
@@ -2541,7 +2566,7 @@ const yn = {
|
|
|
2541
2566
|
builderComponents: !0,
|
|
2542
2567
|
builderLinkComponent: !0
|
|
2543
2568
|
}
|
|
2544
|
-
},
|
|
2569
|
+
}, oe = {
|
|
2545
2570
|
"@type": "@builder.io/sdk:Element",
|
|
2546
2571
|
responsiveStyles: {
|
|
2547
2572
|
large: {
|
|
@@ -2563,7 +2588,7 @@ const yn = {
|
|
|
2563
2588
|
text: "New tab"
|
|
2564
2589
|
}
|
|
2565
2590
|
}
|
|
2566
|
-
},
|
|
2591
|
+
}, ae = {
|
|
2567
2592
|
"@type": "@builder.io/sdk:Element",
|
|
2568
2593
|
responsiveStyles: {
|
|
2569
2594
|
large: {
|
|
@@ -2579,7 +2604,7 @@ const yn = {
|
|
|
2579
2604
|
text: "New tab content "
|
|
2580
2605
|
}
|
|
2581
2606
|
}
|
|
2582
|
-
},
|
|
2607
|
+
}, xn = {
|
|
2583
2608
|
name: "Builder: Tabs",
|
|
2584
2609
|
inputs: [{
|
|
2585
2610
|
name: "tabs",
|
|
@@ -2589,16 +2614,16 @@ const yn = {
|
|
|
2589
2614
|
name: "label",
|
|
2590
2615
|
type: "uiBlocks",
|
|
2591
2616
|
hideFromUI: !0,
|
|
2592
|
-
defaultValue: [
|
|
2617
|
+
defaultValue: [oe]
|
|
2593
2618
|
}, {
|
|
2594
2619
|
name: "content",
|
|
2595
2620
|
type: "uiBlocks",
|
|
2596
2621
|
hideFromUI: !0,
|
|
2597
|
-
defaultValue: [
|
|
2622
|
+
defaultValue: [ae]
|
|
2598
2623
|
}],
|
|
2599
2624
|
defaultValue: [{
|
|
2600
2625
|
label: [{
|
|
2601
|
-
...
|
|
2626
|
+
...oe,
|
|
2602
2627
|
component: {
|
|
2603
2628
|
name: "Text",
|
|
2604
2629
|
options: {
|
|
@@ -2607,7 +2632,7 @@ const yn = {
|
|
|
2607
2632
|
}
|
|
2608
2633
|
}],
|
|
2609
2634
|
content: [{
|
|
2610
|
-
...
|
|
2635
|
+
...ae,
|
|
2611
2636
|
component: {
|
|
2612
2637
|
name: "Text",
|
|
2613
2638
|
options: {
|
|
@@ -2617,7 +2642,7 @@ const yn = {
|
|
|
2617
2642
|
}]
|
|
2618
2643
|
}, {
|
|
2619
2644
|
label: [{
|
|
2620
|
-
...
|
|
2645
|
+
...oe,
|
|
2621
2646
|
component: {
|
|
2622
2647
|
name: "Text",
|
|
2623
2648
|
options: {
|
|
@@ -2626,7 +2651,7 @@ const yn = {
|
|
|
2626
2651
|
}
|
|
2627
2652
|
}],
|
|
2628
2653
|
content: [{
|
|
2629
|
-
...
|
|
2654
|
+
...ae,
|
|
2630
2655
|
component: {
|
|
2631
2656
|
name: "Text",
|
|
2632
2657
|
options: {
|
|
@@ -2683,7 +2708,7 @@ const yn = {
|
|
|
2683
2708
|
builderLinkComponent: !0
|
|
2684
2709
|
}
|
|
2685
2710
|
};
|
|
2686
|
-
function
|
|
2711
|
+
function Sn(e) {
|
|
2687
2712
|
var a;
|
|
2688
2713
|
const [t, n] = E(
|
|
2689
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2694,7 +2719,7 @@ function xn(e) {
|
|
|
2694
2719
|
function o(r) {
|
|
2695
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2696
2721
|
}
|
|
2697
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ A("div", { children: [
|
|
2698
2723
|
/* @__PURE__ */ s(
|
|
2699
2724
|
"div",
|
|
2700
2725
|
{
|
|
@@ -2712,7 +2737,7 @@ function xn(e) {
|
|
|
2712
2737
|
style: {
|
|
2713
2738
|
...t === l ? e.activeTabStyle : {}
|
|
2714
2739
|
},
|
|
2715
|
-
onClick: (
|
|
2740
|
+
onClick: (d) => o(l),
|
|
2716
2741
|
children: /* @__PURE__ */ s(
|
|
2717
2742
|
D,
|
|
2718
2743
|
{
|
|
@@ -2742,7 +2767,7 @@ function xn(e) {
|
|
|
2742
2767
|
) }) : null
|
|
2743
2768
|
] });
|
|
2744
2769
|
}
|
|
2745
|
-
const
|
|
2770
|
+
const kn = {
|
|
2746
2771
|
shouldReceiveBuilderProps: {
|
|
2747
2772
|
builderBlock: !1,
|
|
2748
2773
|
builderContext: !0
|
|
@@ -2765,7 +2790,7 @@ const Sn = {
|
|
|
2765
2790
|
textAlign: "center"
|
|
2766
2791
|
}
|
|
2767
2792
|
};
|
|
2768
|
-
function
|
|
2793
|
+
function Cn(e) {
|
|
2769
2794
|
var t;
|
|
2770
2795
|
return /* @__PURE__ */ s(
|
|
2771
2796
|
"div",
|
|
@@ -2778,7 +2803,7 @@ function kn(e) {
|
|
|
2778
2803
|
}
|
|
2779
2804
|
);
|
|
2780
2805
|
}
|
|
2781
|
-
const
|
|
2806
|
+
const Tn = {
|
|
2782
2807
|
name: "Custom Code",
|
|
2783
2808
|
static: !0,
|
|
2784
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2801,15 +2826,15 @@ const Cn = {
|
|
|
2801
2826
|
advanced: !0
|
|
2802
2827
|
}]
|
|
2803
2828
|
};
|
|
2804
|
-
function
|
|
2805
|
-
const t =
|
|
2806
|
-
return
|
|
2829
|
+
function wn(e) {
|
|
2830
|
+
const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2831
|
+
return B(() => {
|
|
2807
2832
|
var l;
|
|
2808
2833
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2809
2834
|
return;
|
|
2810
2835
|
const r = t.current.getElementsByTagName("script");
|
|
2811
|
-
for (let
|
|
2812
|
-
const c = r[
|
|
2836
|
+
for (let d = 0; d < r.length; d++) {
|
|
2837
|
+
const c = r[d];
|
|
2813
2838
|
if (c.src) {
|
|
2814
2839
|
if (n.includes(c.src))
|
|
2815
2840
|
continue;
|
|
@@ -2839,7 +2864,7 @@ function Tn(e) {
|
|
|
2839
2864
|
}
|
|
2840
2865
|
);
|
|
2841
2866
|
}
|
|
2842
|
-
const
|
|
2867
|
+
const In = {
|
|
2843
2868
|
name: "Embed",
|
|
2844
2869
|
static: !0,
|
|
2845
2870
|
inputs: [{
|
|
@@ -2854,29 +2879,29 @@ const wn = {
|
|
|
2854
2879
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2855
2880
|
hideFromUI: !0
|
|
2856
2881
|
}]
|
|
2857
|
-
},
|
|
2858
|
-
function
|
|
2859
|
-
const t =
|
|
2860
|
-
function
|
|
2882
|
+
}, En = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => En.includes(e.type);
|
|
2883
|
+
function Pn(e) {
|
|
2884
|
+
const t = $(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, l] = E(() => !1);
|
|
2885
|
+
function d() {
|
|
2861
2886
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2862
2887
|
return;
|
|
2863
2888
|
const c = t.current.getElementsByTagName("script");
|
|
2864
2889
|
for (let h = 0; h < c.length; h++) {
|
|
2865
|
-
const
|
|
2866
|
-
if (
|
|
2867
|
-
n.push(
|
|
2868
|
-
const
|
|
2869
|
-
|
|
2870
|
-
} else if (
|
|
2890
|
+
const y = c[h];
|
|
2891
|
+
if (y.src && !n.includes(y.src)) {
|
|
2892
|
+
n.push(y.src);
|
|
2893
|
+
const u = document.createElement("script");
|
|
2894
|
+
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2895
|
+
} else if (Rn(y) && !o.includes(y.innerText))
|
|
2871
2896
|
try {
|
|
2872
|
-
o.push(
|
|
2873
|
-
} catch (
|
|
2874
|
-
console.warn("`Embed`: Error running script:",
|
|
2897
|
+
o.push(y.innerText), new Function(y.innerText)();
|
|
2898
|
+
} catch (u) {
|
|
2899
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2875
2900
|
}
|
|
2876
2901
|
}
|
|
2877
2902
|
}
|
|
2878
|
-
return
|
|
2879
|
-
t.current && !r && (l(!0),
|
|
2903
|
+
return B(() => {
|
|
2904
|
+
t.current && !r && (l(!0), d());
|
|
2880
2905
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2881
2906
|
"div",
|
|
2882
2907
|
{
|
|
@@ -2886,7 +2911,7 @@ function Rn(e) {
|
|
|
2886
2911
|
}
|
|
2887
2912
|
);
|
|
2888
2913
|
}
|
|
2889
|
-
const
|
|
2914
|
+
const Vn = {
|
|
2890
2915
|
name: "Form:Form",
|
|
2891
2916
|
// editableTags: ['builder-form-error']
|
|
2892
2917
|
defaults: {
|
|
@@ -3123,102 +3148,102 @@ const Pn = {
|
|
|
3123
3148
|
builderComponents: !0,
|
|
3124
3149
|
builderLinkComponent: !0
|
|
3125
3150
|
}
|
|
3126
|
-
},
|
|
3151
|
+
}, Bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Nn = () => {
|
|
3127
3152
|
const e = process.env.NODE_ENV || "production";
|
|
3128
|
-
return
|
|
3153
|
+
return Bn.includes(e) ? e : "production";
|
|
3129
3154
|
};
|
|
3130
|
-
function
|
|
3131
|
-
const t =
|
|
3132
|
-
function
|
|
3133
|
-
var
|
|
3134
|
-
const
|
|
3155
|
+
function An(e) {
|
|
3156
|
+
const t = $(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, l] = E(() => "");
|
|
3157
|
+
function d(y) {
|
|
3158
|
+
var v, f;
|
|
3159
|
+
const u = {
|
|
3135
3160
|
...e.builderContext.rootState,
|
|
3136
|
-
...
|
|
3161
|
+
...y
|
|
3137
3162
|
};
|
|
3138
|
-
e.builderContext.rootSetState ? (
|
|
3163
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3139
3164
|
}
|
|
3140
3165
|
function c() {
|
|
3141
3166
|
return W() && e.previewState || n;
|
|
3142
3167
|
}
|
|
3143
|
-
function h(
|
|
3144
|
-
var
|
|
3145
|
-
const
|
|
3168
|
+
function h(y) {
|
|
3169
|
+
var v;
|
|
3170
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3146
3171
|
if (e.sendSubmissionsTo === "zapier")
|
|
3147
|
-
|
|
3148
|
-
else if (
|
|
3172
|
+
y.preventDefault();
|
|
3173
|
+
else if (u) {
|
|
3149
3174
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3150
|
-
|
|
3175
|
+
y.preventDefault();
|
|
3151
3176
|
return;
|
|
3152
3177
|
}
|
|
3153
|
-
|
|
3154
|
-
const
|
|
3155
|
-
let
|
|
3156
|
-
const
|
|
3178
|
+
y.preventDefault();
|
|
3179
|
+
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3180
|
+
let x;
|
|
3181
|
+
const b = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3157
3182
|
let p;
|
|
3158
|
-
const
|
|
3183
|
+
const I = m.name;
|
|
3159
3184
|
if (m instanceof HTMLInputElement)
|
|
3160
3185
|
if (m.type === "radio") {
|
|
3161
3186
|
if (m.checked)
|
|
3162
3187
|
return p = m.name, {
|
|
3163
|
-
key:
|
|
3188
|
+
key: I,
|
|
3164
3189
|
value: p
|
|
3165
3190
|
};
|
|
3166
3191
|
} else if (m.type === "checkbox")
|
|
3167
3192
|
p = m.checked;
|
|
3168
3193
|
else if (m.type === "number" || m.type === "range") {
|
|
3169
|
-
const
|
|
3170
|
-
isNaN(
|
|
3194
|
+
const T = m.valueAsNumber;
|
|
3195
|
+
isNaN(T) || (p = T);
|
|
3171
3196
|
} else
|
|
3172
3197
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3173
3198
|
else
|
|
3174
3199
|
p = m.value;
|
|
3175
3200
|
return {
|
|
3176
|
-
key:
|
|
3201
|
+
key: I,
|
|
3177
3202
|
value: p
|
|
3178
3203
|
};
|
|
3179
3204
|
});
|
|
3180
|
-
let
|
|
3181
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3182
|
-
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (
|
|
3183
|
-
}),
|
|
3184
|
-
|
|
3205
|
+
let C = e.contentType;
|
|
3206
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
|
|
3207
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
|
+
}), C !== "application/json")
|
|
3209
|
+
x = b;
|
|
3185
3210
|
else {
|
|
3186
3211
|
const m = {};
|
|
3187
|
-
Array.from(
|
|
3188
|
-
|
|
3189
|
-
}),
|
|
3212
|
+
Array.from(S).forEach(({ value: p, key: I }) => {
|
|
3213
|
+
De(m, I, p);
|
|
3214
|
+
}), x = JSON.stringify(m);
|
|
3190
3215
|
}
|
|
3191
|
-
|
|
3192
|
-
const P = new CustomEvent("presubmit", { detail: { body:
|
|
3216
|
+
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3217
|
+
const P = new CustomEvent("presubmit", { detail: { body: x } });
|
|
3193
3218
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3194
3219
|
return;
|
|
3195
3220
|
i("sending");
|
|
3196
|
-
const
|
|
3221
|
+
const w = `${Nn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3197
3222
|
e.sendSubmissionsToEmail || ""
|
|
3198
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3199
|
-
|
|
3223
|
+
)}&name=${encodeURIComponent(e.name || "")}`, k = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
+
Ee(k), fetch(k, { body: x, headers: g, method: e.method || "post" }).then(
|
|
3200
3225
|
async (m) => {
|
|
3201
3226
|
let p;
|
|
3202
|
-
const
|
|
3203
|
-
if (
|
|
3204
|
-
let
|
|
3205
|
-
|
|
3227
|
+
const I = m.headers.get("content-type");
|
|
3228
|
+
if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3229
|
+
let T = Ne(p, e.errorMessagePath);
|
|
3230
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
3206
3231
|
}
|
|
3207
3232
|
if (a(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3208
|
-
const
|
|
3233
|
+
const T = new CustomEvent("submit:success", {
|
|
3209
3234
|
detail: { res: m, body: p }
|
|
3210
3235
|
});
|
|
3211
3236
|
if (t.current) {
|
|
3212
|
-
if (t.current.dispatchEvent(
|
|
3237
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
3213
3238
|
return;
|
|
3214
3239
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3215
3240
|
}
|
|
3216
3241
|
if (e.successUrl)
|
|
3217
3242
|
if (t.current) {
|
|
3218
|
-
const
|
|
3243
|
+
const V = new CustomEvent("route", {
|
|
3219
3244
|
detail: { url: e.successUrl }
|
|
3220
3245
|
});
|
|
3221
|
-
t.current.dispatchEvent(
|
|
3246
|
+
t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
|
|
3222
3247
|
} else
|
|
3223
3248
|
location.href = e.successUrl;
|
|
3224
3249
|
}
|
|
@@ -3232,9 +3257,9 @@ function Nn(e) {
|
|
|
3232
3257
|
);
|
|
3233
3258
|
}
|
|
3234
3259
|
}
|
|
3235
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
3236
3261
|
" ",
|
|
3237
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ A(
|
|
3238
3263
|
"form",
|
|
3239
3264
|
{
|
|
3240
3265
|
validate: e.validate,
|
|
@@ -3242,7 +3267,7 @@ function Nn(e) {
|
|
|
3242
3267
|
action: !e.sendWithJs && e.action,
|
|
3243
3268
|
method: e.method,
|
|
3244
3269
|
name: e.name,
|
|
3245
|
-
onSubmit: (
|
|
3270
|
+
onSubmit: (y) => h(y),
|
|
3246
3271
|
...e.attributes,
|
|
3247
3272
|
children: [
|
|
3248
3273
|
e.children,
|
|
@@ -3279,7 +3304,7 @@ function Nn(e) {
|
|
|
3279
3304
|
" "
|
|
3280
3305
|
] });
|
|
3281
3306
|
}
|
|
3282
|
-
const
|
|
3307
|
+
const Wn = {
|
|
3283
3308
|
name: "Form:Input",
|
|
3284
3309
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3285
3310
|
inputs: [
|
|
@@ -3331,8 +3356,8 @@ const An = {
|
|
|
3331
3356
|
borderColor: "#ccc"
|
|
3332
3357
|
}
|
|
3333
3358
|
};
|
|
3334
|
-
function
|
|
3335
|
-
return /* @__PURE__ */
|
|
3359
|
+
function Dn(e) {
|
|
3360
|
+
return /* @__PURE__ */ Ve(
|
|
3336
3361
|
"input",
|
|
3337
3362
|
{
|
|
3338
3363
|
...e.attributes,
|
|
@@ -3346,7 +3371,7 @@ function Wn(e) {
|
|
|
3346
3371
|
}
|
|
3347
3372
|
);
|
|
3348
3373
|
}
|
|
3349
|
-
const
|
|
3374
|
+
const $n = {
|
|
3350
3375
|
name: "Form:Select",
|
|
3351
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3352
3377
|
defaultStyles: {
|
|
@@ -3389,9 +3414,9 @@ const Dn = {
|
|
|
3389
3414
|
static: !0,
|
|
3390
3415
|
noWrap: !0
|
|
3391
3416
|
};
|
|
3392
|
-
function
|
|
3417
|
+
function Fn(e) {
|
|
3393
3418
|
var t;
|
|
3394
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ Ve(
|
|
3395
3420
|
"select",
|
|
3396
3421
|
{
|
|
3397
3422
|
...e.attributes,
|
|
@@ -3404,7 +3429,7 @@ function $n(e) {
|
|
|
3404
3429
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3405
3430
|
);
|
|
3406
3431
|
}
|
|
3407
|
-
const
|
|
3432
|
+
const On = {
|
|
3408
3433
|
name: "Form:SubmitButton",
|
|
3409
3434
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3410
3435
|
defaultStyles: {
|
|
@@ -3430,10 +3455,10 @@ const Fn = {
|
|
|
3430
3455
|
// TODO: defaultChildren
|
|
3431
3456
|
// canHaveChildren: true,
|
|
3432
3457
|
};
|
|
3433
|
-
function
|
|
3458
|
+
function Ln(e) {
|
|
3434
3459
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3435
3460
|
}
|
|
3436
|
-
const
|
|
3461
|
+
const Un = {
|
|
3437
3462
|
name: "Form:TextArea",
|
|
3438
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3439
3464
|
inputs: [{
|
|
@@ -3470,7 +3495,7 @@ const Ln = {
|
|
|
3470
3495
|
static: !0,
|
|
3471
3496
|
noWrap: !0
|
|
3472
3497
|
};
|
|
3473
|
-
function
|
|
3498
|
+
function _n(e) {
|
|
3474
3499
|
return /* @__PURE__ */ s(
|
|
3475
3500
|
"textarea",
|
|
3476
3501
|
{
|
|
@@ -3483,7 +3508,7 @@ function Un(e) {
|
|
|
3483
3508
|
}
|
|
3484
3509
|
);
|
|
3485
3510
|
}
|
|
3486
|
-
const
|
|
3511
|
+
const qn = {
|
|
3487
3512
|
// friendlyName?
|
|
3488
3513
|
name: "Raw:Img",
|
|
3489
3514
|
hideFromInsertMenu: !0,
|
|
@@ -3492,13 +3517,13 @@ const _n = {
|
|
|
3492
3517
|
name: "image",
|
|
3493
3518
|
bubble: !0,
|
|
3494
3519
|
type: "file",
|
|
3495
|
-
allowedFileTypes:
|
|
3520
|
+
allowedFileTypes: de,
|
|
3496
3521
|
required: !0
|
|
3497
3522
|
}],
|
|
3498
3523
|
noWrap: !0,
|
|
3499
3524
|
static: !0
|
|
3500
3525
|
};
|
|
3501
|
-
function
|
|
3526
|
+
function Mn(e) {
|
|
3502
3527
|
return /* @__PURE__ */ s(
|
|
3503
3528
|
"img",
|
|
3504
3529
|
{
|
|
@@ -3524,14 +3549,14 @@ const Hn = {
|
|
|
3524
3549
|
inputs: [{
|
|
3525
3550
|
name: "video",
|
|
3526
3551
|
type: "file",
|
|
3527
|
-
allowedFileTypes:
|
|
3552
|
+
allowedFileTypes: rn,
|
|
3528
3553
|
bubble: !0,
|
|
3529
3554
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3530
3555
|
required: !0
|
|
3531
3556
|
}, {
|
|
3532
3557
|
name: "posterImage",
|
|
3533
3558
|
type: "file",
|
|
3534
|
-
allowedFileTypes:
|
|
3559
|
+
allowedFileTypes: de,
|
|
3535
3560
|
helperText: "Image to show before the video plays"
|
|
3536
3561
|
}, {
|
|
3537
3562
|
name: "autoPlay",
|
|
@@ -3598,9 +3623,10 @@ const Hn = {
|
|
|
3598
3623
|
builderBlock: !0
|
|
3599
3624
|
}
|
|
3600
3625
|
};
|
|
3601
|
-
function
|
|
3602
|
-
var
|
|
3603
|
-
|
|
3626
|
+
function jn(e) {
|
|
3627
|
+
var r, l, d, c, h, y, u;
|
|
3628
|
+
const t = $(null);
|
|
3629
|
+
function n() {
|
|
3604
3630
|
return {
|
|
3605
3631
|
...e.autoPlay === !0 ? {
|
|
3606
3632
|
autoPlay: !0
|
|
@@ -3619,12 +3645,37 @@ function Mn(e) {
|
|
|
3619
3645
|
} : {}
|
|
3620
3646
|
};
|
|
3621
3647
|
}
|
|
3622
|
-
function
|
|
3648
|
+
function i() {
|
|
3623
3649
|
return {
|
|
3624
|
-
...
|
|
3650
|
+
...n()
|
|
3625
3651
|
};
|
|
3626
3652
|
}
|
|
3627
|
-
|
|
3653
|
+
const [o, a] = E(() => {
|
|
3654
|
+
});
|
|
3655
|
+
return B(() => {
|
|
3656
|
+
if (e.lazyLoad) {
|
|
3657
|
+
const v = new IntersectionObserver(function(f) {
|
|
3658
|
+
f.forEach(function(g) {
|
|
3659
|
+
if (!g.isIntersecting)
|
|
3660
|
+
return;
|
|
3661
|
+
const x = g.target;
|
|
3662
|
+
try {
|
|
3663
|
+
Array.from(x.children).filter(
|
|
3664
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3665
|
+
).forEach((b) => {
|
|
3666
|
+
const S = b.dataset.src;
|
|
3667
|
+
S && (b.src = S);
|
|
3668
|
+
}), x.load(), v.unobserve(x);
|
|
3669
|
+
} catch (b) {
|
|
3670
|
+
console.error("Error loading lazy video:", b);
|
|
3671
|
+
}
|
|
3672
|
+
});
|
|
3673
|
+
});
|
|
3674
|
+
t.current && v.observe(t.current), a(v);
|
|
3675
|
+
}
|
|
3676
|
+
}, []), B(() => () => {
|
|
3677
|
+
o && o.disconnect();
|
|
3678
|
+
}, []), /* @__PURE__ */ A(
|
|
3628
3679
|
"div",
|
|
3629
3680
|
{
|
|
3630
3681
|
style: {
|
|
@@ -3635,12 +3686,13 @@ function Mn(e) {
|
|
|
3635
3686
|
"video",
|
|
3636
3687
|
{
|
|
3637
3688
|
className: "builder-video",
|
|
3638
|
-
...
|
|
3639
|
-
|
|
3689
|
+
...i(),
|
|
3690
|
+
ref: t,
|
|
3691
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
3640
3692
|
style: {
|
|
3641
3693
|
width: "100%",
|
|
3642
3694
|
height: "100%",
|
|
3643
|
-
...(
|
|
3695
|
+
...(r = e.attributes) == null ? void 0 : r.style,
|
|
3644
3696
|
objectFit: e.fit,
|
|
3645
3697
|
objectPosition: e.position,
|
|
3646
3698
|
// Hack to get object fit to work as expected and
|
|
@@ -3650,12 +3702,21 @@ function Mn(e) {
|
|
|
3650
3702
|
position: "absolute"
|
|
3651
3703
|
} : null
|
|
3652
3704
|
},
|
|
3653
|
-
src: e.video || "no-src",
|
|
3654
3705
|
poster: e.posterImage,
|
|
3655
|
-
children:
|
|
3706
|
+
children: /* @__PURE__ */ s(
|
|
3707
|
+
"source",
|
|
3708
|
+
{
|
|
3709
|
+
type: "video/mp4",
|
|
3710
|
+
...e.lazyLoad ? {
|
|
3711
|
+
"data-src": e.video
|
|
3712
|
+
} : {
|
|
3713
|
+
src: e.video
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
)
|
|
3656
3717
|
}
|
|
3657
3718
|
),
|
|
3658
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3719
|
+
e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
|
|
3659
3720
|
"div",
|
|
3660
3721
|
{
|
|
3661
3722
|
style: {
|
|
@@ -3666,7 +3727,7 @@ function Mn(e) {
|
|
|
3666
3727
|
}
|
|
3667
3728
|
}
|
|
3668
3729
|
) : null,
|
|
3669
|
-
(
|
|
3730
|
+
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3670
3731
|
"div",
|
|
3671
3732
|
{
|
|
3672
3733
|
style: {
|
|
@@ -3677,7 +3738,7 @@ function Mn(e) {
|
|
|
3677
3738
|
children: e.children
|
|
3678
3739
|
}
|
|
3679
3740
|
) : null,
|
|
3680
|
-
(
|
|
3741
|
+
(u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3681
3742
|
"div",
|
|
3682
3743
|
{
|
|
3683
3744
|
style: {
|
|
@@ -3698,67 +3759,67 @@ function Mn(e) {
|
|
|
3698
3759
|
}
|
|
3699
3760
|
);
|
|
3700
3761
|
}
|
|
3701
|
-
const
|
|
3702
|
-
component:
|
|
3703
|
-
...
|
|
3704
|
-
}, {
|
|
3705
|
-
component: Rn,
|
|
3706
|
-
...wn
|
|
3762
|
+
const zn = () => [{
|
|
3763
|
+
component: wn,
|
|
3764
|
+
...Tn
|
|
3707
3765
|
}, {
|
|
3708
|
-
component:
|
|
3709
|
-
...
|
|
3766
|
+
component: Pn,
|
|
3767
|
+
...In
|
|
3710
3768
|
}, {
|
|
3711
|
-
component:
|
|
3712
|
-
...
|
|
3769
|
+
component: An,
|
|
3770
|
+
...Vn
|
|
3713
3771
|
}, {
|
|
3714
|
-
component:
|
|
3715
|
-
...
|
|
3772
|
+
component: Dn,
|
|
3773
|
+
...Wn
|
|
3716
3774
|
}, {
|
|
3717
|
-
component:
|
|
3718
|
-
...
|
|
3775
|
+
component: Ln,
|
|
3776
|
+
...On
|
|
3719
3777
|
}, {
|
|
3720
|
-
component:
|
|
3721
|
-
|
|
3778
|
+
component: Fn,
|
|
3779
|
+
...$n
|
|
3722
3780
|
}, {
|
|
3723
|
-
component:
|
|
3724
|
-
...
|
|
3781
|
+
component: _n,
|
|
3782
|
+
...Un
|
|
3725
3783
|
}, {
|
|
3726
3784
|
component: Mn,
|
|
3727
|
-
...
|
|
3728
|
-
}], Se = () => [{
|
|
3729
|
-
component: nt,
|
|
3730
|
-
...tn
|
|
3785
|
+
...qn
|
|
3731
3786
|
}, {
|
|
3732
|
-
component:
|
|
3787
|
+
component: jn,
|
|
3788
|
+
...Hn
|
|
3789
|
+
}], ke = () => [{
|
|
3790
|
+
component: it,
|
|
3733
3791
|
...nn
|
|
3734
3792
|
}, {
|
|
3735
3793
|
component: Jt,
|
|
3736
3794
|
...on
|
|
3737
3795
|
}, {
|
|
3738
|
-
component:
|
|
3739
|
-
...
|
|
3796
|
+
component: Gt,
|
|
3797
|
+
...an
|
|
3740
3798
|
}, {
|
|
3741
3799
|
component: Xt,
|
|
3742
|
-
...
|
|
3800
|
+
...ln
|
|
3743
3801
|
}, {
|
|
3744
|
-
component:
|
|
3802
|
+
component: Zt,
|
|
3745
3803
|
...bn
|
|
3746
3804
|
}, {
|
|
3747
|
-
component:
|
|
3748
|
-
...
|
|
3805
|
+
component: yn,
|
|
3806
|
+
...pn
|
|
3807
|
+
}, {
|
|
3808
|
+
component: bi,
|
|
3809
|
+
...vn
|
|
3749
3810
|
}, {
|
|
3750
|
-
component:
|
|
3751
|
-
...
|
|
3811
|
+
component: Cn,
|
|
3812
|
+
...kn
|
|
3752
3813
|
}, {
|
|
3753
|
-
component:
|
|
3754
|
-
...
|
|
3814
|
+
component: gn,
|
|
3815
|
+
...sn
|
|
3755
3816
|
}, {
|
|
3756
|
-
component:
|
|
3757
|
-
...
|
|
3817
|
+
component: Sn,
|
|
3818
|
+
...xn
|
|
3758
3819
|
}, {
|
|
3759
|
-
component:
|
|
3760
|
-
...
|
|
3761
|
-
}, ...
|
|
3820
|
+
component: tn,
|
|
3821
|
+
...en
|
|
3822
|
+
}, ...zn()], Kn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3762
3823
|
function getAndSetVariantId() {
|
|
3763
3824
|
function setCookie(name, value, days) {
|
|
3764
3825
|
let expires = '';
|
|
@@ -3814,7 +3875,7 @@ const jn = () => [{
|
|
|
3814
3875
|
}).join('');
|
|
3815
3876
|
styleEl.innerHTML = newStyleStr;
|
|
3816
3877
|
}
|
|
3817
|
-
}`,
|
|
3878
|
+
}`, Jn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3818
3879
|
if (!navigator.cookieEnabled) {
|
|
3819
3880
|
return;
|
|
3820
3881
|
}
|
|
@@ -3848,29 +3909,29 @@ const jn = () => [{
|
|
|
3848
3909
|
thisScriptEl?.remove();
|
|
3849
3910
|
}
|
|
3850
3911
|
return;
|
|
3851
|
-
}`,
|
|
3912
|
+
}`, je = "builderIoAbTest", ze = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3852
3913
|
...t,
|
|
3853
3914
|
testVariationId: t.id,
|
|
3854
3915
|
id: e == null ? void 0 : e.id
|
|
3855
|
-
})),
|
|
3916
|
+
})), Gn = ({
|
|
3856
3917
|
canTrack: e,
|
|
3857
3918
|
content: t
|
|
3858
|
-
}) => !(!(z(t).length > 0) || !e ||
|
|
3859
|
-
window.${Me} = ${zn}
|
|
3919
|
+
}) => !(!(z(t).length > 0) || !e || F()), Qn = (e) => e === "react" || e === "reactNative", Ke = Qn(O), Yn = () => `
|
|
3860
3920
|
window.${je} = ${Kn}
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3921
|
+
window.${ze} = ${Jn}
|
|
3922
|
+
`, Xn = (e, t) => `
|
|
3923
|
+
window.${je}(
|
|
3924
|
+
"${t}",${JSON.stringify(e)}, ${Ke}
|
|
3925
|
+
)`, Zn = ({
|
|
3865
3926
|
contentId: e,
|
|
3866
3927
|
variationId: t
|
|
3867
|
-
}) => `window.${
|
|
3868
|
-
"${t}", "${e}", ${
|
|
3928
|
+
}) => `window.${ze}(
|
|
3929
|
+
"${t}", "${e}", ${Ke}
|
|
3869
3930
|
)`;
|
|
3870
|
-
function
|
|
3931
|
+
function Ce(e) {
|
|
3871
3932
|
return Math.round(e * 1e3) / 1e3;
|
|
3872
3933
|
}
|
|
3873
|
-
const
|
|
3934
|
+
const ei = (e, t, n = !0) => {
|
|
3874
3935
|
if (!(e instanceof HTMLElement))
|
|
3875
3936
|
return null;
|
|
3876
3937
|
let i = n ? e : e.parentElement;
|
|
@@ -3881,35 +3942,35 @@ const Zn = (e, t, n = !0) => {
|
|
|
3881
3942
|
return i;
|
|
3882
3943
|
} while (i = i.parentElement);
|
|
3883
3944
|
return null;
|
|
3884
|
-
},
|
|
3945
|
+
}, ti = (e) => ei(e, (t) => {
|
|
3885
3946
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3886
3947
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3887
|
-
}),
|
|
3948
|
+
}), Te = ({
|
|
3888
3949
|
event: e,
|
|
3889
3950
|
target: t
|
|
3890
3951
|
}) => {
|
|
3891
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3952
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
|
|
3892
3953
|
return {
|
|
3893
3954
|
x: a,
|
|
3894
3955
|
y: r
|
|
3895
3956
|
};
|
|
3896
|
-
},
|
|
3897
|
-
const t = e.target, n = t &&
|
|
3957
|
+
}, ni = (e) => {
|
|
3958
|
+
const t = e.target, n = t && ti(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3898
3959
|
return {
|
|
3899
3960
|
targetBuilderElement: i || void 0,
|
|
3900
3961
|
metadata: {
|
|
3901
|
-
targetOffset: t ?
|
|
3962
|
+
targetOffset: t ? Te({
|
|
3902
3963
|
event: e,
|
|
3903
3964
|
target: t
|
|
3904
3965
|
}) : void 0,
|
|
3905
|
-
builderTargetOffset: n ?
|
|
3966
|
+
builderTargetOffset: n ? Te({
|
|
3906
3967
|
event: e,
|
|
3907
3968
|
target: n
|
|
3908
3969
|
}) : void 0,
|
|
3909
3970
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3910
3971
|
}
|
|
3911
3972
|
};
|
|
3912
|
-
},
|
|
3973
|
+
}, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), oi = (e) => {
|
|
3913
3974
|
var a, r;
|
|
3914
3975
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3915
3976
|
let o = "";
|
|
@@ -3935,15 +3996,15 @@ font-weight: ${l};
|
|
|
3935
3996
|
`.trim());
|
|
3936
3997
|
}
|
|
3937
3998
|
return o;
|
|
3938
|
-
},
|
|
3999
|
+
}, ai = ({
|
|
3939
4000
|
customFonts: e
|
|
3940
4001
|
}) => {
|
|
3941
4002
|
var t;
|
|
3942
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3943
|
-
},
|
|
4003
|
+
return ((t = e == null ? void 0 : e.map((n) => oi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4004
|
+
}, ri = ({
|
|
3944
4005
|
cssCode: e,
|
|
3945
4006
|
contentId: t
|
|
3946
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4007
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
|
|
3947
4008
|
.builder-button {
|
|
3948
4009
|
all: unset;
|
|
3949
4010
|
}
|
|
@@ -3960,39 +4021,39 @@ font-weight: ${l};
|
|
|
3960
4021
|
text-align: inherit;
|
|
3961
4022
|
font-family: inherit;
|
|
3962
4023
|
}
|
|
3963
|
-
`,
|
|
3964
|
-
function
|
|
3965
|
-
var
|
|
3966
|
-
const t =
|
|
3967
|
-
function n(
|
|
4024
|
+
`, si = (e) => e ? "" : li, ci = (e) => `variant-${e}`;
|
|
4025
|
+
function ui(e) {
|
|
4026
|
+
var S, C, P;
|
|
4027
|
+
const t = $(null);
|
|
4028
|
+
function n(w) {
|
|
3968
4029
|
var m, p;
|
|
3969
|
-
const
|
|
4030
|
+
const k = {
|
|
3970
4031
|
...e.builderContextSignal.rootState,
|
|
3971
|
-
...
|
|
4032
|
+
...w
|
|
3972
4033
|
};
|
|
3973
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
3974
|
-
...
|
|
3975
|
-
rootState:
|
|
4034
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, k) : e.setBuilderContextSignal((I) => ({
|
|
4035
|
+
...I,
|
|
4036
|
+
rootState: k
|
|
3976
4037
|
}));
|
|
3977
4038
|
}
|
|
3978
|
-
function i(
|
|
3979
|
-
var m, p,
|
|
3980
|
-
const
|
|
4039
|
+
function i(w) {
|
|
4040
|
+
var m, p, I, T, V;
|
|
4041
|
+
const k = {
|
|
3981
4042
|
...e.builderContextSignal.content,
|
|
3982
|
-
...
|
|
4043
|
+
...w,
|
|
3983
4044
|
data: {
|
|
3984
4045
|
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
3985
|
-
...
|
|
4046
|
+
...w == null ? void 0 : w.data
|
|
3986
4047
|
},
|
|
3987
4048
|
meta: {
|
|
3988
4049
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3989
|
-
...
|
|
3990
|
-
breakpoints: ((
|
|
4050
|
+
...w == null ? void 0 : w.meta,
|
|
4051
|
+
breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
|
|
3991
4052
|
}
|
|
3992
4053
|
};
|
|
3993
|
-
e.setBuilderContextSignal((
|
|
3994
|
-
...
|
|
3995
|
-
content:
|
|
4054
|
+
e.setBuilderContextSignal((N) => ({
|
|
4055
|
+
...N,
|
|
4056
|
+
content: k
|
|
3996
4057
|
}));
|
|
3997
4058
|
}
|
|
3998
4059
|
function o() {
|
|
@@ -4004,59 +4065,59 @@ function ci(e) {
|
|
|
4004
4065
|
const [a, r] = E(
|
|
4005
4066
|
() => e.contentWrapper || "div"
|
|
4006
4067
|
);
|
|
4007
|
-
function l(
|
|
4008
|
-
return
|
|
4068
|
+
function l(w) {
|
|
4069
|
+
return Xe({
|
|
4009
4070
|
model: e.model,
|
|
4010
4071
|
trustedHosts: e.trustedHosts,
|
|
4011
4072
|
callbacks: {
|
|
4012
|
-
configureSdk: (
|
|
4013
|
-
var
|
|
4014
|
-
const { breakpoints: m, contentId: p } =
|
|
4015
|
-
!p || p !== ((
|
|
4073
|
+
configureSdk: (k) => {
|
|
4074
|
+
var I;
|
|
4075
|
+
const { breakpoints: m, contentId: p } = k;
|
|
4076
|
+
!p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
|
|
4016
4077
|
meta: {
|
|
4017
4078
|
breakpoints: m
|
|
4018
4079
|
}
|
|
4019
4080
|
});
|
|
4020
4081
|
},
|
|
4021
|
-
animation: (
|
|
4022
|
-
|
|
4082
|
+
animation: (k) => {
|
|
4083
|
+
Oe(k);
|
|
4023
4084
|
},
|
|
4024
|
-
contentUpdate: (
|
|
4025
|
-
i(
|
|
4085
|
+
contentUpdate: (k) => {
|
|
4086
|
+
i(k);
|
|
4026
4087
|
}
|
|
4027
4088
|
}
|
|
4028
|
-
})(
|
|
4089
|
+
})(w);
|
|
4029
4090
|
}
|
|
4030
|
-
const [
|
|
4031
|
-
function
|
|
4032
|
-
var
|
|
4091
|
+
const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
|
|
4092
|
+
function f(w) {
|
|
4093
|
+
var k, m;
|
|
4033
4094
|
if (e.builderContextSignal.content) {
|
|
4034
|
-
const p = (
|
|
4035
|
-
|
|
4095
|
+
const p = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4096
|
+
he({
|
|
4036
4097
|
apiHost: e.apiHost,
|
|
4037
4098
|
type: "click",
|
|
4038
|
-
canTrack:
|
|
4039
|
-
contentId:
|
|
4099
|
+
canTrack: M(e.canTrack),
|
|
4100
|
+
contentId: I,
|
|
4040
4101
|
apiKey: e.apiKey,
|
|
4041
|
-
variationId: p !==
|
|
4042
|
-
...
|
|
4043
|
-
unique: !
|
|
4102
|
+
variationId: p !== I ? p : void 0,
|
|
4103
|
+
...ni(w),
|
|
4104
|
+
unique: !u
|
|
4044
4105
|
});
|
|
4045
4106
|
}
|
|
4046
|
-
|
|
4107
|
+
u || v(!0);
|
|
4047
4108
|
}
|
|
4048
|
-
function
|
|
4049
|
-
var
|
|
4050
|
-
const
|
|
4051
|
-
Object.entries(
|
|
4052
|
-
if (!
|
|
4109
|
+
function g() {
|
|
4110
|
+
var k, m, p;
|
|
4111
|
+
const w = (p = (m = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4112
|
+
Object.entries(w).forEach(([I, T]) => {
|
|
4113
|
+
if (!T || h[I] || d[I] && !W())
|
|
4053
4114
|
return;
|
|
4054
|
-
h[
|
|
4055
|
-
const
|
|
4115
|
+
h[I] = !0;
|
|
4116
|
+
const V = T.replace(
|
|
4056
4117
|
/{{([^}]+)}}/g,
|
|
4057
|
-
(
|
|
4118
|
+
(N, U) => String(
|
|
4058
4119
|
L({
|
|
4059
|
-
code:
|
|
4120
|
+
code: U,
|
|
4060
4121
|
context: e.context || {},
|
|
4061
4122
|
localState: void 0,
|
|
4062
4123
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4064,24 +4125,24 @@ function ci(e) {
|
|
|
4064
4125
|
})
|
|
4065
4126
|
)
|
|
4066
4127
|
);
|
|
4067
|
-
|
|
4128
|
+
Ee(V), fetch(V).then((N) => N.json()).then((N) => {
|
|
4068
4129
|
n({
|
|
4069
|
-
[
|
|
4070
|
-
}),
|
|
4071
|
-
}).catch((
|
|
4072
|
-
console.error("error fetching dynamic data",
|
|
4130
|
+
[I]: N
|
|
4131
|
+
}), d[I] = !0;
|
|
4132
|
+
}).catch((N) => {
|
|
4133
|
+
console.error("error fetching dynamic data", T, N);
|
|
4073
4134
|
}).finally(() => {
|
|
4074
|
-
h[
|
|
4135
|
+
h[I] = !1;
|
|
4075
4136
|
});
|
|
4076
4137
|
});
|
|
4077
4138
|
}
|
|
4078
|
-
function
|
|
4139
|
+
function x() {
|
|
4079
4140
|
W() && window.dispatchEvent(
|
|
4080
4141
|
new CustomEvent(
|
|
4081
4142
|
"builder:component:stateChange",
|
|
4082
4143
|
{
|
|
4083
4144
|
detail: {
|
|
4084
|
-
state:
|
|
4145
|
+
state: ce(e.builderContextSignal.rootState),
|
|
4085
4146
|
ref: {
|
|
4086
4147
|
name: e.model
|
|
4087
4148
|
}
|
|
@@ -4090,11 +4151,11 @@ function ci(e) {
|
|
|
4090
4151
|
)
|
|
4091
4152
|
);
|
|
4092
4153
|
}
|
|
4093
|
-
const
|
|
4094
|
-
return
|
|
4095
|
-
var
|
|
4096
|
-
if (
|
|
4097
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4154
|
+
const b = $(!1);
|
|
4155
|
+
return b.current || (g(), x(), b.current = !0), B(() => {
|
|
4156
|
+
var w, k, m, p;
|
|
4157
|
+
if (F()) {
|
|
4158
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
|
|
4098
4159
|
...e.locale ? {
|
|
4099
4160
|
locale: e.locale
|
|
4100
4161
|
} : {},
|
|
@@ -4103,74 +4164,76 @@ function ci(e) {
|
|
|
4103
4164
|
} : {},
|
|
4104
4165
|
...e.trustedHosts ? {
|
|
4105
4166
|
trustedHosts: e.trustedHosts
|
|
4106
|
-
} : {}
|
|
4167
|
+
} : {},
|
|
4168
|
+
modelName: (w = e.model) != null ? w : "",
|
|
4169
|
+
apiKey: e.apiKey
|
|
4107
4170
|
}), Object.values(
|
|
4108
4171
|
e.builderContextSignal.componentInfos
|
|
4109
|
-
).forEach((
|
|
4110
|
-
var
|
|
4111
|
-
if (!
|
|
4112
|
-
const
|
|
4113
|
-
(
|
|
4172
|
+
).forEach((T) => {
|
|
4173
|
+
var V, N;
|
|
4174
|
+
if (!((V = T.models) != null && V.length) || T.models.includes(e.model)) {
|
|
4175
|
+
const U = Ye(T);
|
|
4176
|
+
(N = window.parent) == null || N.postMessage(U, "*");
|
|
4114
4177
|
}
|
|
4115
4178
|
}), window.addEventListener(
|
|
4116
4179
|
"builder:component:stateChangeListenerActivated",
|
|
4117
|
-
|
|
4118
|
-
)), e.builderContextSignal.content &&
|
|
4119
|
-
const
|
|
4120
|
-
|
|
4180
|
+
x
|
|
4181
|
+
)), e.builderContextSignal.content && M(e.canTrack)) {
|
|
4182
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
|
|
4183
|
+
he({
|
|
4121
4184
|
apiHost: e.apiHost,
|
|
4122
4185
|
type: "impression",
|
|
4123
4186
|
canTrack: !0,
|
|
4124
|
-
contentId:
|
|
4125
|
-
apiKey:
|
|
4126
|
-
variationId:
|
|
4187
|
+
contentId: V,
|
|
4188
|
+
apiKey: N,
|
|
4189
|
+
variationId: T !== V ? T : void 0
|
|
4127
4190
|
});
|
|
4128
4191
|
}
|
|
4129
4192
|
if (Y() && !W()) {
|
|
4130
|
-
const
|
|
4131
|
-
`builder.overrides.${
|
|
4132
|
-
),
|
|
4133
|
-
(
|
|
4134
|
-
model: e.model
|
|
4193
|
+
const T = new URL(location.href).searchParams, V = T.get("builder.preview"), N = T.get(
|
|
4194
|
+
`builder.overrides.${V}`
|
|
4195
|
+
), U = T.get("apiKey") || T.get("builder.space");
|
|
4196
|
+
(V === "BUILDER_STUDIO" || V === e.model && U === e.apiKey && (!e.content || N === e.content.id)) && Re({
|
|
4197
|
+
model: e.model,
|
|
4135
4198
|
apiKey: e.apiKey,
|
|
4136
4199
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4137
|
-
...
|
|
4200
|
+
...V === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
|
|
4138
4201
|
query: {
|
|
4139
4202
|
id: e.context.symbolId
|
|
4140
4203
|
}
|
|
4141
4204
|
} : {}
|
|
4142
|
-
}).then((
|
|
4143
|
-
|
|
4205
|
+
}).then((me) => {
|
|
4206
|
+
me && i(me);
|
|
4144
4207
|
});
|
|
4145
4208
|
}
|
|
4146
4209
|
}
|
|
4147
|
-
}, []),
|
|
4210
|
+
}, []), B(() => {
|
|
4148
4211
|
e.content && i(e.content);
|
|
4149
|
-
}, [e.content]),
|
|
4150
|
-
|
|
4151
|
-
}, [e.builderContextSignal.rootState]),
|
|
4212
|
+
}, [e.content]), B(() => {
|
|
4213
|
+
x();
|
|
4214
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4152
4215
|
e.data && n(e.data);
|
|
4153
|
-
}, [e.data]),
|
|
4216
|
+
}, [e.data]), B(() => {
|
|
4154
4217
|
e.locale && n({
|
|
4155
4218
|
locale: e.locale
|
|
4156
4219
|
});
|
|
4157
|
-
}, [e.locale]),
|
|
4158
|
-
|
|
4220
|
+
}, [e.locale]), B(() => () => {
|
|
4221
|
+
F() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4159
4222
|
"builder:component:stateChangeListenerActivated",
|
|
4160
|
-
|
|
4223
|
+
x
|
|
4161
4224
|
));
|
|
4162
|
-
}, []), /* @__PURE__ */ s(
|
|
4225
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
|
|
4163
4226
|
a,
|
|
4164
4227
|
{
|
|
4165
4228
|
ref: t,
|
|
4166
|
-
onClick: (
|
|
4167
|
-
"builder-content-id": (
|
|
4229
|
+
onClick: (w) => f(w),
|
|
4230
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4168
4231
|
"builder-model": e.model,
|
|
4169
|
-
className:
|
|
4170
|
-
((
|
|
4232
|
+
className: ci(
|
|
4233
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4171
4234
|
),
|
|
4172
4235
|
style: {
|
|
4173
|
-
display: !e.builderContextSignal.content &&
|
|
4236
|
+
display: !e.builderContextSignal.content && we() ? "none" : void 0
|
|
4174
4237
|
},
|
|
4175
4238
|
...o(),
|
|
4176
4239
|
...e.contentWrapperProps,
|
|
@@ -4178,21 +4241,21 @@ function ci(e) {
|
|
|
4178
4241
|
}
|
|
4179
4242
|
) : null });
|
|
4180
4243
|
}
|
|
4181
|
-
function
|
|
4244
|
+
function di(e) {
|
|
4182
4245
|
const [t, n] = E(
|
|
4183
4246
|
() => `
|
|
4184
|
-
${
|
|
4247
|
+
${ri({
|
|
4185
4248
|
cssCode: e.cssCode,
|
|
4186
4249
|
contentId: e.contentId
|
|
4187
4250
|
})}
|
|
4188
|
-
${
|
|
4251
|
+
${ai({
|
|
4189
4252
|
customFonts: e.customFonts
|
|
4190
4253
|
})}
|
|
4191
|
-
${
|
|
4254
|
+
${si(e.isNestedRender)}
|
|
4192
4255
|
`.trim()
|
|
4193
4256
|
);
|
|
4194
4257
|
return /* @__PURE__ */ s(
|
|
4195
|
-
|
|
4258
|
+
j,
|
|
4196
4259
|
{
|
|
4197
4260
|
id: "builderio-content",
|
|
4198
4261
|
styles: t,
|
|
@@ -4200,15 +4263,15 @@ ${li(e.isNestedRender)}
|
|
|
4200
4263
|
}
|
|
4201
4264
|
);
|
|
4202
4265
|
}
|
|
4203
|
-
const
|
|
4266
|
+
const mi = ({
|
|
4204
4267
|
content: e,
|
|
4205
4268
|
data: t,
|
|
4206
4269
|
locale: n
|
|
4207
4270
|
}) => {
|
|
4208
4271
|
var a, r, l;
|
|
4209
4272
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4210
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
4211
|
-
|
|
4273
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
4274
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4212
4275
|
}), {
|
|
4213
4276
|
...i,
|
|
4214
4277
|
...o,
|
|
@@ -4217,7 +4280,7 @@ const di = ({
|
|
|
4217
4280
|
locale: n
|
|
4218
4281
|
} : {}
|
|
4219
4282
|
};
|
|
4220
|
-
},
|
|
4283
|
+
}, fi = ({
|
|
4221
4284
|
content: e,
|
|
4222
4285
|
data: t
|
|
4223
4286
|
}) => e ? {
|
|
@@ -4228,46 +4291,46 @@ const di = ({
|
|
|
4228
4291
|
},
|
|
4229
4292
|
meta: e == null ? void 0 : e.meta
|
|
4230
4293
|
} : void 0;
|
|
4231
|
-
function
|
|
4232
|
-
var c, h,
|
|
4294
|
+
function Ie(e) {
|
|
4295
|
+
var c, h, y, u, v, f, g, x, b;
|
|
4233
4296
|
const [t, n] = E(
|
|
4234
4297
|
() => {
|
|
4235
|
-
var
|
|
4236
|
-
return
|
|
4298
|
+
var S, C;
|
|
4299
|
+
return Zn({
|
|
4237
4300
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4238
|
-
variationId: (
|
|
4301
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4239
4302
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4240
|
-
contentId: (
|
|
4303
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4241
4304
|
});
|
|
4242
4305
|
}
|
|
4243
4306
|
);
|
|
4244
|
-
function i(
|
|
4245
|
-
l((
|
|
4246
|
-
...
|
|
4247
|
-
rootState:
|
|
4307
|
+
function i(S) {
|
|
4308
|
+
l((C) => ({
|
|
4309
|
+
...C,
|
|
4310
|
+
rootState: S
|
|
4248
4311
|
}));
|
|
4249
4312
|
}
|
|
4250
4313
|
const [o, a] = E(
|
|
4251
4314
|
() => [
|
|
4252
|
-
...
|
|
4315
|
+
...ke(),
|
|
4253
4316
|
...e.customComponents || []
|
|
4254
4317
|
].reduce(
|
|
4255
|
-
(
|
|
4256
|
-
...
|
|
4318
|
+
(S, { component: C, ...P }) => ({
|
|
4319
|
+
...S,
|
|
4257
4320
|
[P.name]: {
|
|
4258
|
-
component:
|
|
4259
|
-
...
|
|
4321
|
+
component: C,
|
|
4322
|
+
...ge(P)
|
|
4260
4323
|
}
|
|
4261
4324
|
}),
|
|
4262
4325
|
{}
|
|
4263
4326
|
)
|
|
4264
4327
|
), [r, l] = E(() => ({
|
|
4265
|
-
content:
|
|
4328
|
+
content: fi({
|
|
4266
4329
|
content: e.content,
|
|
4267
4330
|
data: e.data
|
|
4268
4331
|
}),
|
|
4269
4332
|
localState: void 0,
|
|
4270
|
-
rootState:
|
|
4333
|
+
rootState: mi({
|
|
4271
4334
|
content: e.content,
|
|
4272
4335
|
data: e.data,
|
|
4273
4336
|
locale: e.locale
|
|
@@ -4278,12 +4341,12 @@ function we(e) {
|
|
|
4278
4341
|
apiKey: e.apiKey,
|
|
4279
4342
|
apiVersion: e.apiVersion,
|
|
4280
4343
|
componentInfos: [
|
|
4281
|
-
...
|
|
4344
|
+
...ke(),
|
|
4282
4345
|
...e.customComponents || []
|
|
4283
4346
|
].reduce(
|
|
4284
|
-
(
|
|
4285
|
-
...
|
|
4286
|
-
[P.name]:
|
|
4347
|
+
(S, { component: C, ...P }) => ({
|
|
4348
|
+
...S,
|
|
4349
|
+
[P.name]: ge(P)
|
|
4287
4350
|
}),
|
|
4288
4351
|
{}
|
|
4289
4352
|
),
|
|
@@ -4291,32 +4354,32 @@ function we(e) {
|
|
|
4291
4354
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4292
4355
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4293
4356
|
nonce: e.nonce || "",
|
|
4294
|
-
model: e.model
|
|
4295
|
-
})),
|
|
4296
|
-
if (!
|
|
4357
|
+
model: e.model
|
|
4358
|
+
})), d = $(!1);
|
|
4359
|
+
if (!d.current) {
|
|
4297
4360
|
e.apiKey || Q.error(
|
|
4298
4361
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4299
4362
|
);
|
|
4300
|
-
const
|
|
4301
|
-
|
|
4302
|
-
code:
|
|
4363
|
+
const S = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4364
|
+
S && L({
|
|
4365
|
+
code: S,
|
|
4303
4366
|
context: e.context || {},
|
|
4304
4367
|
localState: void 0,
|
|
4305
4368
|
rootState: r.rootState,
|
|
4306
|
-
rootSetState: (
|
|
4307
|
-
Object.assign(r.rootState,
|
|
4369
|
+
rootSetState: (C) => {
|
|
4370
|
+
Object.assign(r.rootState, C);
|
|
4308
4371
|
},
|
|
4309
4372
|
isExpression: !1
|
|
4310
|
-
}),
|
|
4373
|
+
}), d.current = !0;
|
|
4311
4374
|
}
|
|
4312
4375
|
return /* @__PURE__ */ s(
|
|
4313
|
-
|
|
4376
|
+
Be.Provider,
|
|
4314
4377
|
{
|
|
4315
4378
|
value: {
|
|
4316
4379
|
registeredComponents: o
|
|
4317
4380
|
},
|
|
4318
|
-
children: /* @__PURE__ */
|
|
4319
|
-
|
|
4381
|
+
children: /* @__PURE__ */ A(
|
|
4382
|
+
ui,
|
|
4320
4383
|
{
|
|
4321
4384
|
apiHost: e.apiHost,
|
|
4322
4385
|
nonce: e.nonce,
|
|
@@ -4345,19 +4408,19 @@ function we(e) {
|
|
|
4345
4408
|
}
|
|
4346
4409
|
) : null,
|
|
4347
4410
|
/* @__PURE__ */ s(
|
|
4348
|
-
|
|
4411
|
+
di,
|
|
4349
4412
|
{
|
|
4350
4413
|
nonce: e.nonce || "",
|
|
4351
4414
|
isNestedRender: e.isNestedRender,
|
|
4352
|
-
contentId: (
|
|
4353
|
-
cssCode: (
|
|
4354
|
-
customFonts: (
|
|
4415
|
+
contentId: (y = r.content) == null ? void 0 : y.id,
|
|
4416
|
+
cssCode: (v = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
|
|
4417
|
+
customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
|
|
4355
4418
|
}
|
|
4356
4419
|
),
|
|
4357
4420
|
/* @__PURE__ */ s(
|
|
4358
4421
|
D,
|
|
4359
4422
|
{
|
|
4360
|
-
blocks: (
|
|
4423
|
+
blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
4361
4424
|
context: r,
|
|
4362
4425
|
registeredComponents: o,
|
|
4363
4426
|
linkComponent: e.linkComponent
|
|
@@ -4369,20 +4432,20 @@ function we(e) {
|
|
|
4369
4432
|
}
|
|
4370
4433
|
);
|
|
4371
4434
|
}
|
|
4372
|
-
function
|
|
4435
|
+
function hi(e) {
|
|
4373
4436
|
var r;
|
|
4374
4437
|
const [t, n] = E(
|
|
4375
|
-
() =>
|
|
4376
|
-
canTrack:
|
|
4438
|
+
() => Gn({
|
|
4439
|
+
canTrack: M(e.canTrack),
|
|
4377
4440
|
content: e.content
|
|
4378
4441
|
})
|
|
4379
4442
|
);
|
|
4380
4443
|
function i() {
|
|
4381
4444
|
var l;
|
|
4382
|
-
return
|
|
4383
|
-
z(e.content).map((
|
|
4384
|
-
id:
|
|
4385
|
-
testRatio:
|
|
4445
|
+
return Xn(
|
|
4446
|
+
z(e.content).map((d) => ({
|
|
4447
|
+
id: d.testVariationId,
|
|
4448
|
+
testRatio: d.testRatio
|
|
4386
4449
|
})),
|
|
4387
4450
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4388
4451
|
);
|
|
@@ -4395,24 +4458,24 @@ function fi(e) {
|
|
|
4395
4458
|
return t ? {
|
|
4396
4459
|
...e.content,
|
|
4397
4460
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4398
|
-
} :
|
|
4461
|
+
} : Ze({
|
|
4399
4462
|
item: e.content,
|
|
4400
|
-
canTrack:
|
|
4463
|
+
canTrack: M(e.canTrack)
|
|
4401
4464
|
});
|
|
4402
4465
|
}
|
|
4403
|
-
return
|
|
4404
|
-
}, []), /* @__PURE__ */
|
|
4466
|
+
return B(() => {
|
|
4467
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
4405
4468
|
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4406
4469
|
G,
|
|
4407
4470
|
{
|
|
4408
4471
|
id: "builderio-init-variants-fns",
|
|
4409
|
-
scriptStr:
|
|
4472
|
+
scriptStr: Yn(),
|
|
4410
4473
|
nonce: e.nonce || ""
|
|
4411
4474
|
}
|
|
4412
4475
|
) : null,
|
|
4413
|
-
t ? /* @__PURE__ */
|
|
4476
|
+
t ? /* @__PURE__ */ A(R, { children: [
|
|
4414
4477
|
/* @__PURE__ */ s(
|
|
4415
|
-
|
|
4478
|
+
j,
|
|
4416
4479
|
{
|
|
4417
4480
|
id: "builderio-variants",
|
|
4418
4481
|
styles: o(),
|
|
@@ -4428,7 +4491,7 @@ function fi(e) {
|
|
|
4428
4491
|
}
|
|
4429
4492
|
),
|
|
4430
4493
|
(r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4431
|
-
|
|
4494
|
+
Ie,
|
|
4432
4495
|
{
|
|
4433
4496
|
apiHost: e.apiHost,
|
|
4434
4497
|
isNestedRender: e.isNestedRender,
|
|
@@ -4456,7 +4519,7 @@ function fi(e) {
|
|
|
4456
4519
|
))
|
|
4457
4520
|
] }) : null,
|
|
4458
4521
|
/* @__PURE__ */ s(
|
|
4459
|
-
|
|
4522
|
+
Ie,
|
|
4460
4523
|
{
|
|
4461
4524
|
apiHost: e.apiHost,
|
|
4462
4525
|
nonce: e.nonce,
|
|
@@ -4483,13 +4546,13 @@ function fi(e) {
|
|
|
4483
4546
|
)
|
|
4484
4547
|
] });
|
|
4485
4548
|
}
|
|
4486
|
-
const
|
|
4549
|
+
const gi = async ({
|
|
4487
4550
|
builderContextValue: e,
|
|
4488
4551
|
symbol: t
|
|
4489
4552
|
}) => {
|
|
4490
4553
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4491
4554
|
(e != null && e.apiKey))
|
|
4492
|
-
return
|
|
4555
|
+
return Re({
|
|
4493
4556
|
model: t.model,
|
|
4494
4557
|
apiKey: e.apiKey,
|
|
4495
4558
|
apiVersion: e.apiVersion,
|
|
@@ -4502,8 +4565,8 @@ const hi = async ({
|
|
|
4502
4565
|
Q.error("Could not fetch symbol content: ", n);
|
|
4503
4566
|
});
|
|
4504
4567
|
};
|
|
4505
|
-
function
|
|
4506
|
-
var l,
|
|
4568
|
+
function bi(e) {
|
|
4569
|
+
var l, d, c, h, y;
|
|
4507
4570
|
function t() {
|
|
4508
4571
|
return "div";
|
|
4509
4572
|
}
|
|
@@ -4511,31 +4574,31 @@ function gi(e) {
|
|
|
4511
4574
|
return "div";
|
|
4512
4575
|
}
|
|
4513
4576
|
function i() {
|
|
4514
|
-
var
|
|
4577
|
+
var u, v;
|
|
4515
4578
|
return [
|
|
4516
|
-
e.attributes[
|
|
4579
|
+
e.attributes[H()],
|
|
4517
4580
|
"builder-symbol",
|
|
4518
|
-
(
|
|
4519
|
-
(
|
|
4581
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4582
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4520
4583
|
].filter(Boolean).join(" ");
|
|
4521
4584
|
}
|
|
4522
4585
|
const [o, a] = E(() => {
|
|
4523
|
-
var
|
|
4524
|
-
return (
|
|
4586
|
+
var u;
|
|
4587
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4525
4588
|
});
|
|
4526
4589
|
function r() {
|
|
4527
|
-
o ||
|
|
4590
|
+
o || gi({
|
|
4528
4591
|
symbol: e.symbol,
|
|
4529
4592
|
builderContextValue: e.builderContext
|
|
4530
|
-
}).then((
|
|
4531
|
-
|
|
4593
|
+
}).then((u) => {
|
|
4594
|
+
u && a(u);
|
|
4532
4595
|
});
|
|
4533
4596
|
}
|
|
4534
|
-
return
|
|
4535
|
-
}, []),
|
|
4597
|
+
return B(() => {
|
|
4598
|
+
}, []), B(() => {
|
|
4536
4599
|
r();
|
|
4537
4600
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4538
|
-
|
|
4601
|
+
hi,
|
|
4539
4602
|
{
|
|
4540
4603
|
nonce: e.builderContext.nonce,
|
|
4541
4604
|
isNestedRender: !0,
|
|
@@ -4547,12 +4610,12 @@ function gi(e) {
|
|
|
4547
4610
|
},
|
|
4548
4611
|
customComponents: Object.values(e.builderComponents),
|
|
4549
4612
|
data: {
|
|
4550
|
-
...(
|
|
4613
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4551
4614
|
...e.builderContext.localState,
|
|
4552
4615
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4553
4616
|
},
|
|
4554
4617
|
canTrack: e.builderContext.canTrack,
|
|
4555
|
-
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4618
|
+
model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
|
|
4556
4619
|
content: o,
|
|
4557
4620
|
linkComponent: e.builderLinkComponent,
|
|
4558
4621
|
blocksWrapper: t(),
|
|
@@ -4562,15 +4625,15 @@ function gi(e) {
|
|
|
4562
4625
|
}
|
|
4563
4626
|
export {
|
|
4564
4627
|
D as Blocks,
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4628
|
+
se as BuilderContext,
|
|
4629
|
+
it as Button,
|
|
4630
|
+
Jt as Columns,
|
|
4631
|
+
hi as Content,
|
|
4632
|
+
Gt as Fragment,
|
|
4633
|
+
Xt as Image,
|
|
4634
|
+
Zt as Section,
|
|
4635
|
+
bi as Symbol,
|
|
4636
|
+
Cn as Text,
|
|
4637
|
+
jn as Video,
|
|
4638
|
+
ki as setClientUserAttributes
|
|
4576
4639
|
};
|