@builder.io/sdk-react 3.0.3 → 3.0.6
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 +169 -32
- package/lib/browser/blocks-exports.mjs +1286 -884
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -16
- package/lib/browser/server-entry-a1c64831.cjs +2 -0
- package/lib/browser/{server-entry-c904f136.js → server-entry-df5e89e5.js} +279 -237
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-c786f197.js → accordion-289f3464.js} +1 -1
- package/lib/edge/{accordion-032726a7.cjs → accordion-fbfb71f4.cjs} +1 -1
- package/lib/edge/{blocks-827b0a87.cjs → blocks-459a090b.cjs} +11 -11
- package/lib/edge/{blocks-105e50e5.js → blocks-582a7fd7.js} +87 -88
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +13 -12
- package/lib/edge/{button-f0e0ea72.js → button-9b112da6.js} +2 -2
- package/lib/edge/{button-5cbfe22c.cjs → button-da357144.cjs} +1 -1
- package/lib/edge/{columns-d07da61d.cjs → columns-a211113f.cjs} +2 -2
- package/lib/edge/{columns-9e187314.js → columns-aba58dda.js} +18 -18
- package/lib/edge/{content-variants-59dc0824.js → content-variants-08f4371c.js} +165 -124
- package/lib/edge/content-variants-4b5899b5.cjs +134 -0
- package/lib/edge/dynamic-blocks-exports.cjs +3 -1
- package/lib/edge/dynamic-blocks-exports.mjs +5 -2
- package/lib/edge/form-4d4553c2.js +166 -0
- package/lib/edge/form-e3a3afd4.cjs +1 -0
- package/lib/edge/{get-class-prop-name-6b143ec7.js → get-class-prop-name-38c2baca.js} +1 -1
- package/lib/edge/{get-class-prop-name-8fb0e5ad.cjs → get-class-prop-name-fbe244e3.cjs} +1 -1
- package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
- package/lib/edge/image-590e36ae.cjs +17 -0
- package/lib/edge/{img-72bf9d21.cjs → img-8d549af8.cjs} +1 -1
- package/lib/edge/{img-2c4c6b78.js → img-c49066fa.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +18 -17
- package/lib/edge/{input-6eca8427.cjs → input-1ae3842f.cjs} +1 -1
- package/lib/edge/{input-752f3ce9.js → input-e7301f4e.js} +1 -1
- package/lib/edge/personalization-container-035be6ba.js +384 -0
- package/lib/edge/personalization-container-25cd8b5e.cjs +138 -0
- package/lib/edge/{select-a1d6e80e.js → select-4187b229.js} +1 -1
- package/lib/edge/{select-49a73a0b.cjs → select-64fdaa79.cjs} +1 -1
- package/lib/edge/server-entry-2ef4e66a.cjs +2 -0
- package/lib/edge/{server-entry-35f12729.js → server-entry-61fca4f7.js} +322 -280
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-2327e009.cjs → slot-995f63c2.cjs} +1 -1
- package/lib/edge/{slot-b9bcbd41.js → slot-d6c46a42.js} +3 -3
- package/lib/edge/{symbol-3527699b.cjs → symbol-498daa97.cjs} +1 -1
- package/lib/edge/{symbol-33e7736f.js → symbol-623dc717.js} +2 -2
- package/lib/edge/{tabs-bc422e4c.js → tabs-12ba41b1.js} +3 -3
- package/lib/edge/{tabs-2df0eaa2.cjs → tabs-d39499cd.cjs} +1 -1
- package/lib/edge/video-4ecfd08b.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
- package/lib/node/blocks-exports.cjs +170 -33
- package/lib/node/blocks-exports.mjs +1372 -970
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +17 -16
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-d1ed35c5.js → server-entry-27d9d31e.js} +279 -237
- package/lib/node/server-entry-98ebff74.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-6675714a.js → setIvm-2dde9074.js} +1 -1
- package/lib/node/{setIvm-e4deba11.cjs → setIvm-784fe19f.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-75b2b3a0.js → should-force-browser-runtime-in-node-80f081c8.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-03adae17.cjs → should-force-browser-runtime-in-node-cd6baa94.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/form/form/form.d.ts +1 -0
- package/types/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/types/blocks/personalization-container/helpers.d.ts +27 -0
- package/types/blocks/personalization-container/index.d.ts +1 -0
- package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
- package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/user-attributes.d.ts +17 -0
- package/types/index-helpers/blocks-exports.d.ts +1 -0
- package/types/types/components.d.ts +2 -2
- package/types/types/input.d.ts +1 -0
- package/lib/browser/server-entry-5eafc5bd.cjs +0 -2
- package/lib/edge/content-variants-0db90715.cjs +0 -134
- package/lib/edge/form-79639135.cjs +0 -1
- package/lib/edge/form-7a7b98cf.js +0 -176
- package/lib/edge/image-4db81d72.cjs +0 -17
- package/lib/edge/server-entry-6b2058e2.cjs +0 -2
- package/lib/edge/video-e20dcbbc.cjs +0 -1
- package/lib/node/server-entry-606ce65a.cjs +0 -2
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
2
|
+
import { TARGET as O, isEditing as W, isBrowser as $, getUserAttributes as Ke, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as de, getDefaultCanTrack as _, logFetch as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, _track as me, fetchOneEntry as Ee, createEditorListener as Ye, serializeIncludingFunctions as fe, handleABTestingSync as Xe } from "./server-entry-df5e89e5.js";
|
|
3
|
+
import { setClientUserAttributes as Si } from "./server-entry-df5e89e5.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
5
|
+
import * as Ze from "react";
|
|
6
|
+
import { createContext as Re, useEffect as N, useState as E, useRef as F, useContext as he, createElement as Pe } from "react";
|
|
7
|
+
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
7
8
|
function re(e) {
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: tt(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 }) }) });
|
|
9
10
|
}
|
|
10
|
-
const
|
|
11
|
-
switch (
|
|
11
|
+
const q = () => {
|
|
12
|
+
switch (O) {
|
|
12
13
|
case "react":
|
|
13
14
|
case "reactNative":
|
|
14
15
|
case "rsc":
|
|
@@ -21,11 +22,11 @@ const H = () => {
|
|
|
21
22
|
return "class";
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
+
function nt(e) {
|
|
25
26
|
function t() {
|
|
26
27
|
return {
|
|
27
28
|
...e.attributes,
|
|
28
|
-
[
|
|
29
|
+
[q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
|
|
29
30
|
...e.link ? {
|
|
30
31
|
href: e.link,
|
|
31
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -35,7 +36,7 @@ function tt(e) {
|
|
|
35
36
|
}
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ s(
|
|
39
40
|
re,
|
|
40
41
|
{
|
|
41
42
|
attributes: t(),
|
|
@@ -45,7 +46,7 @@ function tt(e) {
|
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
}
|
|
48
|
-
const le =
|
|
49
|
+
const le = Re({
|
|
49
50
|
content: null,
|
|
50
51
|
context: {},
|
|
51
52
|
localState: void 0,
|
|
@@ -60,10 +61,10 @@ const le = Ee({
|
|
|
60
61
|
BlocksWrapperProps: {},
|
|
61
62
|
nonce: "",
|
|
62
63
|
model: ""
|
|
63
|
-
}),
|
|
64
|
+
}), Ve = Re({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
64
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
65
66
|
return i === void 0 || i === e ? n : i;
|
|
66
|
-
},
|
|
67
|
+
}, it = ({
|
|
67
68
|
builder: e,
|
|
68
69
|
context: t,
|
|
69
70
|
event: n,
|
|
@@ -75,15 +76,15 @@ const le = Ee({
|
|
|
75
76
|
builder: e,
|
|
76
77
|
context: t,
|
|
77
78
|
event: n
|
|
78
|
-
}),
|
|
79
|
+
}), ot = () => ({
|
|
79
80
|
isEditing: W(),
|
|
80
|
-
isBrowser:
|
|
81
|
-
isServer:
|
|
82
|
-
getUserAttributes: () =>
|
|
83
|
-
}),
|
|
81
|
+
isBrowser: $(),
|
|
82
|
+
isServer: !$(),
|
|
83
|
+
getUserAttributes: () => Ke()
|
|
84
|
+
}), at = (e, {
|
|
84
85
|
isExpression: t = !0
|
|
85
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;
|
|
86
|
-
function
|
|
87
|
+
function Ne({
|
|
87
88
|
rootState: e,
|
|
88
89
|
localState: t,
|
|
89
90
|
rootSetState: n
|
|
@@ -93,7 +94,7 @@ function Ve({
|
|
|
93
94
|
if (t && o in t)
|
|
94
95
|
return t[o];
|
|
95
96
|
const a = i[o];
|
|
96
|
-
return typeof a == "object" && a !== null ?
|
|
97
|
+
return typeof a == "object" && a !== null ? Ne({
|
|
97
98
|
rootState: a,
|
|
98
99
|
localState: void 0,
|
|
99
100
|
rootSetState: n ? (r) => {
|
|
@@ -108,7 +109,7 @@ function Ve({
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
+
const ge = ({
|
|
112
113
|
code: e,
|
|
113
114
|
builder: t,
|
|
114
115
|
context: n,
|
|
@@ -117,37 +118,37 @@ const he = ({
|
|
|
117
118
|
rootSetState: a,
|
|
118
119
|
rootState: r
|
|
119
120
|
}) => {
|
|
120
|
-
const
|
|
121
|
+
const l = it({
|
|
121
122
|
builder: t,
|
|
122
123
|
context: n,
|
|
123
124
|
event: i,
|
|
124
|
-
state:
|
|
125
|
+
state: Ne({
|
|
125
126
|
rootState: r,
|
|
126
127
|
localState: o,
|
|
127
128
|
rootSetState: a
|
|
128
129
|
})
|
|
129
130
|
});
|
|
130
|
-
return new Function(...
|
|
131
|
+
return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
|
|
131
132
|
};
|
|
132
|
-
function
|
|
133
|
+
function rt() {
|
|
133
134
|
var e;
|
|
134
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
+
const lt = ({
|
|
137
138
|
shouldLogWarning: e
|
|
138
139
|
}) => {
|
|
139
140
|
var o;
|
|
140
|
-
if (!
|
|
141
|
+
if (!rt())
|
|
141
142
|
return !1;
|
|
142
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");
|
|
143
|
-
return t && n && !i ? (e &&
|
|
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
|
+
}, st = (e) => ($() || lt({
|
|
145
146
|
shouldLogWarning: !0
|
|
146
|
-
}),
|
|
147
|
+
}), ge(e)), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ut = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
147
148
|
var t, n, i, o, a, r;
|
|
148
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ut.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
149
150
|
};
|
|
150
|
-
function
|
|
151
|
+
function L({
|
|
151
152
|
code: e,
|
|
152
153
|
context: t,
|
|
153
154
|
localState: n,
|
|
@@ -158,17 +159,17 @@ function U({
|
|
|
158
159
|
}) {
|
|
159
160
|
if (e.trim() === "")
|
|
160
161
|
return;
|
|
161
|
-
const
|
|
162
|
-
if (
|
|
162
|
+
const l = dt(e.trim());
|
|
163
|
+
if (l)
|
|
163
164
|
return Be({
|
|
164
165
|
...i,
|
|
165
166
|
...n
|
|
166
|
-
},
|
|
167
|
-
const
|
|
168
|
-
code:
|
|
167
|
+
}, l);
|
|
168
|
+
const u = {
|
|
169
|
+
code: at(e, {
|
|
169
170
|
isExpression: r
|
|
170
171
|
}),
|
|
171
|
-
builder:
|
|
172
|
+
builder: ot(),
|
|
172
173
|
context: t,
|
|
173
174
|
event: a,
|
|
174
175
|
rootSetState: o,
|
|
@@ -176,28 +177,28 @@ function U({
|
|
|
176
177
|
localState: n
|
|
177
178
|
};
|
|
178
179
|
try {
|
|
179
|
-
return
|
|
180
|
+
return st(u);
|
|
180
181
|
} catch (c) {
|
|
181
|
-
|
|
182
|
+
Q.error("Failed code evaluation: " + c.message, {
|
|
182
183
|
code: e
|
|
183
184
|
});
|
|
184
185
|
return;
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function mt(e, t) {
|
|
188
189
|
var n;
|
|
189
190
|
return {
|
|
190
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
192
|
...e.options,
|
|
192
|
-
...
|
|
193
|
+
...ft(e, t)
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
|
-
const
|
|
196
|
+
const ft = (e, t) => {
|
|
196
197
|
var n, i;
|
|
197
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
198
199
|
return {
|
|
199
200
|
...e.component.options,
|
|
200
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) =>
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => L({
|
|
201
202
|
code: a,
|
|
202
203
|
context: t,
|
|
203
204
|
localState: t.localState,
|
|
@@ -206,7 +207,7 @@ const mt = (e, t) => {
|
|
|
206
207
|
}))
|
|
207
208
|
};
|
|
208
209
|
};
|
|
209
|
-
function
|
|
210
|
+
function ht(e, ...t) {
|
|
210
211
|
const n = Object.assign({}, e);
|
|
211
212
|
for (const i of t)
|
|
212
213
|
delete n[i];
|
|
@@ -220,19 +221,19 @@ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
220
221
|
return;
|
|
221
222
|
}
|
|
222
223
|
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
223
|
-
t(a, (
|
|
224
|
-
e[r] =
|
|
224
|
+
t(a, (u) => {
|
|
225
|
+
e[r] = u;
|
|
225
226
|
}), J(a, t, e, r, o);
|
|
226
227
|
}) : Object.entries(e).forEach(([a, r]) => {
|
|
227
|
-
t(r, (
|
|
228
|
-
e[a] =
|
|
228
|
+
t(r, (u) => {
|
|
229
|
+
e[a] = u;
|
|
229
230
|
}), J(r, t, e, a, o);
|
|
230
231
|
}));
|
|
231
232
|
}
|
|
232
233
|
function Ae(e) {
|
|
233
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function gt(e) {
|
|
236
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
237
238
|
return !1;
|
|
238
239
|
let t = !1;
|
|
@@ -243,36 +244,36 @@ function ht(e) {
|
|
|
243
244
|
}
|
|
244
245
|
}), t;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
+
function bt(e, t) {
|
|
247
248
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
248
249
|
var o;
|
|
249
250
|
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
250
251
|
}), e);
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function pt(e, t) {
|
|
253
254
|
var n, i;
|
|
254
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && gt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = bt(e.component.options, t != null ? t : "Default")), e;
|
|
255
256
|
}
|
|
256
|
-
const se = (e) => JSON.parse(JSON.stringify(e)),
|
|
257
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
257
258
|
if (Object(e) !== e)
|
|
258
259
|
return e;
|
|
259
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
260
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;
|
|
261
262
|
};
|
|
262
|
-
function
|
|
263
|
+
function ae(e) {
|
|
263
264
|
if (e === null || typeof e != "object")
|
|
264
265
|
return e;
|
|
265
266
|
if (Array.isArray(e))
|
|
266
|
-
return e.map((n) =>
|
|
267
|
+
return e.map((n) => ae(n));
|
|
267
268
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
268
269
|
return e;
|
|
269
270
|
const t = {};
|
|
270
271
|
for (const n in e)
|
|
271
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
272
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
272
273
|
return t;
|
|
273
274
|
}
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
275
|
+
const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) => {
|
|
276
|
+
if (yt) {
|
|
276
277
|
const t = se(e);
|
|
277
278
|
return {
|
|
278
279
|
...t,
|
|
@@ -284,7 +285,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) =
|
|
|
284
285
|
}
|
|
285
286
|
};
|
|
286
287
|
} else {
|
|
287
|
-
const t =
|
|
288
|
+
const t = ae(ht(e, "children", "meta"));
|
|
288
289
|
return {
|
|
289
290
|
...t,
|
|
290
291
|
properties: {
|
|
@@ -306,27 +307,27 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) =
|
|
|
306
307
|
}) => {
|
|
307
308
|
if (!e.bindings)
|
|
308
309
|
return e;
|
|
309
|
-
const a =
|
|
310
|
+
const a = vt(e);
|
|
310
311
|
for (const r in e.bindings) {
|
|
311
|
-
const
|
|
312
|
-
code:
|
|
312
|
+
const l = e.bindings[r], u = L({
|
|
313
|
+
code: l,
|
|
313
314
|
localState: n,
|
|
314
315
|
rootState: i,
|
|
315
316
|
rootSetState: o,
|
|
316
317
|
context: t
|
|
317
318
|
});
|
|
318
|
-
|
|
319
|
+
We(a, r, u);
|
|
319
320
|
}
|
|
320
321
|
return a;
|
|
321
322
|
};
|
|
322
|
-
function
|
|
323
|
+
function St({
|
|
323
324
|
block: e,
|
|
324
325
|
context: t,
|
|
325
326
|
localState: n,
|
|
326
327
|
rootState: i,
|
|
327
328
|
rootSetState: o
|
|
328
329
|
}) {
|
|
329
|
-
let a =
|
|
330
|
+
let a = pt(e, i.locale);
|
|
330
331
|
return a = a, xt({
|
|
331
332
|
block: a,
|
|
332
333
|
localState: n,
|
|
@@ -335,20 +336,20 @@ function vt({
|
|
|
335
336
|
context: t
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
340
|
-
let i, o, a, r = null,
|
|
341
|
-
const
|
|
342
|
-
|
|
339
|
+
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
+
function kt(e, t, n = {}) {
|
|
341
|
+
let i, o, a, r = null, l = 0;
|
|
342
|
+
const u = function() {
|
|
343
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
343
344
|
};
|
|
344
345
|
return function() {
|
|
345
346
|
const c = Date.now();
|
|
346
|
-
!
|
|
347
|
-
const h = t - (c -
|
|
348
|
-
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null),
|
|
347
|
+
!l && n.leading === !1 && (l = c);
|
|
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(u, h)), a;
|
|
349
350
|
};
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function U(e, ...t) {
|
|
352
353
|
const n = Object(e);
|
|
353
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
354
355
|
const o = arguments[i];
|
|
@@ -358,86 +359,86 @@ function _(e, ...t) {
|
|
|
358
359
|
}
|
|
359
360
|
return n;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function Ct(e) {
|
|
362
363
|
for (const t of e)
|
|
363
364
|
switch (t.trigger) {
|
|
364
365
|
case "pageLoad":
|
|
365
|
-
|
|
366
|
+
Fe(t);
|
|
366
367
|
break;
|
|
367
368
|
case "scrollInView":
|
|
368
|
-
|
|
369
|
+
wt(t);
|
|
369
370
|
break;
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
+
function De(e) {
|
|
373
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
-
const n =
|
|
377
|
-
for (const
|
|
378
|
-
for (const
|
|
379
|
-
|
|
376
|
+
function $e(e, t) {
|
|
377
|
+
const n = Tt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
378
|
+
for (const l of r)
|
|
379
|
+
for (const u of n)
|
|
380
|
+
u in l || (l[u] = i[u]);
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
+
function Tt(e) {
|
|
382
383
|
const t = [];
|
|
383
384
|
for (const n of e.steps)
|
|
384
385
|
for (const i in n.styles)
|
|
385
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
386
387
|
return t;
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
+
function Fe(e) {
|
|
389
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
390
391
|
if (!t.length) {
|
|
391
|
-
|
|
392
|
+
De(e.elementId || e.id || "");
|
|
392
393
|
return;
|
|
393
394
|
}
|
|
394
395
|
Array.from(t).forEach((n) => {
|
|
395
|
-
|
|
396
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
$e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(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"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
397
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
398
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
399
400
|
});
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
+
function wt(e) {
|
|
403
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
404
405
|
if (!t.length) {
|
|
405
|
-
|
|
406
|
+
De(e.elementId || e.id || "");
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
409
|
Array.from(t).forEach((n) => {
|
|
409
|
-
|
|
410
|
+
$e(e, n);
|
|
410
411
|
let i = !1, o = !1;
|
|
411
412
|
function a() {
|
|
412
|
-
!i &&
|
|
413
|
-
|
|
413
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
414
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
414
415
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
415
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
416
|
-
})) : e.repeat && i && !o && !
|
|
417
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
417
418
|
}
|
|
418
|
-
const r =
|
|
419
|
+
const r = kt(a, 200, {
|
|
419
420
|
leading: !1
|
|
420
421
|
});
|
|
421
|
-
function
|
|
422
|
-
const g = h.getBoundingClientRect(),
|
|
423
|
-
return g.bottom >
|
|
422
|
+
function l(h) {
|
|
423
|
+
const g = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
|
|
424
|
+
return g.bottom > d && g.top < f - d;
|
|
424
425
|
}
|
|
425
|
-
const
|
|
426
|
+
const u = e.steps[0].styles;
|
|
426
427
|
function c() {
|
|
427
|
-
|
|
428
|
+
U(n.style, u);
|
|
428
429
|
}
|
|
429
430
|
c(), setTimeout(() => {
|
|
430
|
-
n.style.transition = `all ${e.duration}s ${
|
|
431
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
431
432
|
}), document.addEventListener("scroll", r, {
|
|
432
433
|
capture: !0,
|
|
433
434
|
passive: !0
|
|
434
435
|
}), a();
|
|
435
436
|
});
|
|
436
437
|
}
|
|
437
|
-
const
|
|
438
|
+
const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
438
439
|
if (typeof i == "string")
|
|
439
|
-
return `${
|
|
440
|
-
}).filter(
|
|
440
|
+
return `${X(n)}: ${i};`;
|
|
441
|
+
}).filter(K), It = (e) => Oe(e).join(`
|
|
441
442
|
`), j = ({
|
|
442
443
|
mediaQuery: e,
|
|
443
444
|
className: t,
|
|
@@ -450,26 +451,26 @@ const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
450
451
|
${i}
|
|
451
452
|
}` : i;
|
|
452
453
|
};
|
|
453
|
-
function
|
|
454
|
+
function Et({
|
|
454
455
|
style: e
|
|
455
456
|
}) {
|
|
456
457
|
return e;
|
|
457
458
|
}
|
|
458
|
-
const
|
|
459
|
+
const Rt = ({
|
|
459
460
|
block: e,
|
|
460
461
|
context: t
|
|
461
|
-
}) =>
|
|
462
|
+
}) => Le(Et({
|
|
462
463
|
style: e.style || {},
|
|
463
464
|
context: t,
|
|
464
465
|
block: e
|
|
465
466
|
}));
|
|
466
|
-
function
|
|
467
|
-
switch (
|
|
467
|
+
function Le(e) {
|
|
468
|
+
switch (O) {
|
|
468
469
|
case "svelte":
|
|
469
470
|
case "vue":
|
|
470
471
|
case "solid":
|
|
471
472
|
case "angular":
|
|
472
|
-
return
|
|
473
|
+
return Oe(e).join(" ");
|
|
473
474
|
case "qwik":
|
|
474
475
|
case "reactNative":
|
|
475
476
|
case "react":
|
|
@@ -477,7 +478,7 @@ function Oe(e) {
|
|
|
477
478
|
return e;
|
|
478
479
|
}
|
|
479
480
|
}
|
|
480
|
-
const
|
|
481
|
+
const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Pt = ({
|
|
481
482
|
block: e,
|
|
482
483
|
registeredComponents: t,
|
|
483
484
|
model: n
|
|
@@ -487,14 +488,14 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
487
488
|
if (!i)
|
|
488
489
|
return null;
|
|
489
490
|
const o = t[i];
|
|
490
|
-
if (!o ||
|
|
491
|
+
if (!o || Ue(o, n)) {
|
|
491
492
|
console.warn(`
|
|
492
493
|
Could not find a registered component named "${i}".
|
|
493
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
494
495
|
return;
|
|
495
496
|
} else
|
|
496
497
|
return o;
|
|
497
|
-
},
|
|
498
|
+
}, Vt = ({
|
|
498
499
|
block: e,
|
|
499
500
|
context: t
|
|
500
501
|
}) => {
|
|
@@ -504,7 +505,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
504
505
|
} = e;
|
|
505
506
|
if (!(n != null && n.collection))
|
|
506
507
|
return;
|
|
507
|
-
const o =
|
|
508
|
+
const o = L({
|
|
508
509
|
code: n.collection,
|
|
509
510
|
localState: t.localState,
|
|
510
511
|
rootState: t.rootState,
|
|
@@ -514,14 +515,14 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
514
515
|
if (!Array.isArray(o))
|
|
515
516
|
return;
|
|
516
517
|
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
517
|
-
return o.map((
|
|
518
|
+
return o.map((u, c) => ({
|
|
518
519
|
context: {
|
|
519
520
|
...t,
|
|
520
521
|
localState: {
|
|
521
522
|
...t.localState,
|
|
522
523
|
$index: c,
|
|
523
|
-
$item:
|
|
524
|
-
[r]:
|
|
524
|
+
$item: u,
|
|
525
|
+
[r]: u,
|
|
525
526
|
[`$${r}Index`]: c
|
|
526
527
|
}
|
|
527
528
|
},
|
|
@@ -532,22 +533,22 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
532
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
533
534
|
builderLinkComponent: t
|
|
534
535
|
} : {};
|
|
535
|
-
},
|
|
536
|
+
}, Nt = (e, t, n) => {
|
|
536
537
|
var i;
|
|
537
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
538
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !Ue(r, n)))
|
|
539
540
|
} : {};
|
|
540
541
|
}, At = (e, t) => {
|
|
541
542
|
var n;
|
|
542
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
543
544
|
builderBlock: t
|
|
544
545
|
} : {};
|
|
545
|
-
},
|
|
546
|
+
}, Wt = (e, t) => {
|
|
546
547
|
var n;
|
|
547
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
548
549
|
builderContext: t
|
|
549
550
|
} : {};
|
|
550
|
-
},
|
|
551
|
+
}, _e = {
|
|
551
552
|
small: {
|
|
552
553
|
min: 320,
|
|
553
554
|
default: 321,
|
|
@@ -563,11 +564,11 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
563
564
|
default: 991,
|
|
564
565
|
max: 1200
|
|
565
566
|
}
|
|
566
|
-
},
|
|
567
|
+
}, be = (e, t = _e) => `@media (max-width: ${t[e].max}px)`, qe = ({
|
|
567
568
|
small: e,
|
|
568
569
|
medium: t
|
|
569
570
|
}) => {
|
|
570
|
-
const n = se(
|
|
571
|
+
const n = se(_e);
|
|
571
572
|
if (!e || !t)
|
|
572
573
|
return n;
|
|
573
574
|
const i = Math.floor(e / 2);
|
|
@@ -590,8 +591,8 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
590
591
|
default: a + 1
|
|
591
592
|
}, n;
|
|
592
593
|
};
|
|
593
|
-
function
|
|
594
|
-
return /* @__PURE__ */
|
|
594
|
+
function H(e) {
|
|
595
|
+
return /* @__PURE__ */ s(
|
|
595
596
|
"style",
|
|
596
597
|
{
|
|
597
598
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -600,59 +601,59 @@ function Q(e) {
|
|
|
600
601
|
}
|
|
601
602
|
);
|
|
602
603
|
}
|
|
603
|
-
function
|
|
604
|
+
function Dt(e) {
|
|
604
605
|
function t() {
|
|
605
606
|
const i = e.block;
|
|
606
|
-
return
|
|
607
|
+
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
607
608
|
}
|
|
608
609
|
function n() {
|
|
609
|
-
var
|
|
610
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
611
|
-
((
|
|
612
|
-
),
|
|
610
|
+
var v, y, x;
|
|
611
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = qe(
|
|
612
|
+
((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
|
|
613
|
+
), l = o == null ? void 0 : o.large, u = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
613
614
|
if (!h)
|
|
614
615
|
return "";
|
|
615
|
-
const g =
|
|
616
|
+
const g = l ? j({
|
|
616
617
|
className: h,
|
|
617
|
-
styles:
|
|
618
|
-
}) : "",
|
|
618
|
+
styles: l
|
|
619
|
+
}) : "", f = u ? j({
|
|
619
620
|
className: h,
|
|
620
|
-
styles:
|
|
621
|
-
mediaQuery:
|
|
621
|
+
styles: u,
|
|
622
|
+
mediaQuery: be(
|
|
622
623
|
"medium",
|
|
623
624
|
r
|
|
624
625
|
)
|
|
625
|
-
}) : "",
|
|
626
|
+
}) : "", k = c ? j({
|
|
626
627
|
className: h,
|
|
627
628
|
styles: c,
|
|
628
|
-
mediaQuery:
|
|
629
|
+
mediaQuery: be(
|
|
629
630
|
"small",
|
|
630
631
|
r
|
|
631
632
|
)
|
|
632
|
-
}) : "",
|
|
633
|
-
let
|
|
634
|
-
if (
|
|
635
|
-
const
|
|
636
|
-
|
|
633
|
+
}) : "", d = i.animations && i.animations.find((T) => T.trigger === "hover");
|
|
634
|
+
let b = "";
|
|
635
|
+
if (d) {
|
|
636
|
+
const T = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
|
|
637
|
+
b = j({
|
|
637
638
|
className: `${h}:hover`,
|
|
638
639
|
styles: {
|
|
639
|
-
...
|
|
640
|
-
transition: `all ${
|
|
641
|
-
|
|
640
|
+
...T,
|
|
641
|
+
transition: `all ${d.duration}s ${X(
|
|
642
|
+
d.easing
|
|
642
643
|
)}`,
|
|
643
|
-
transitionDelay:
|
|
644
|
+
transitionDelay: d.delay ? `${d.delay}s` : "0s"
|
|
644
645
|
}
|
|
645
646
|
}) || "";
|
|
646
647
|
}
|
|
647
648
|
return [
|
|
648
649
|
g,
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
650
|
+
f,
|
|
651
|
+
k,
|
|
652
|
+
b
|
|
652
653
|
].join(" ");
|
|
653
654
|
}
|
|
654
|
-
return /* @__PURE__ */
|
|
655
|
-
|
|
655
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
656
|
+
H,
|
|
656
657
|
{
|
|
657
658
|
id: "builderio-block",
|
|
658
659
|
styles: n(),
|
|
@@ -660,10 +661,10 @@ function Wt(e) {
|
|
|
660
661
|
}
|
|
661
662
|
) }) : null });
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
+
function $t(e) {
|
|
664
665
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
665
666
|
}
|
|
666
|
-
const
|
|
667
|
+
const Ft = (e) => `on${$t(e)}`, Ot = (e, t) => (n) => L({
|
|
667
668
|
code: e,
|
|
668
669
|
context: t.context,
|
|
669
670
|
localState: t.localState,
|
|
@@ -679,9 +680,9 @@ function He(e) {
|
|
|
679
680
|
if (!n.hasOwnProperty(o))
|
|
680
681
|
continue;
|
|
681
682
|
const a = n[o];
|
|
682
|
-
let r =
|
|
683
|
+
let r = Ft(o);
|
|
683
684
|
if (e.stripPrefix)
|
|
684
|
-
switch (
|
|
685
|
+
switch (O) {
|
|
685
686
|
case "vue":
|
|
686
687
|
r = r.replace("v-on:", "");
|
|
687
688
|
break;
|
|
@@ -689,16 +690,16 @@ function He(e) {
|
|
|
689
690
|
r = r.replace("on:", "");
|
|
690
691
|
break;
|
|
691
692
|
}
|
|
692
|
-
t[r] =
|
|
693
|
+
t[r] = Ot(a, e);
|
|
693
694
|
}
|
|
694
695
|
return t;
|
|
695
696
|
}
|
|
696
|
-
function
|
|
697
|
+
function Lt({
|
|
697
698
|
properties: e
|
|
698
699
|
}) {
|
|
699
700
|
return e;
|
|
700
701
|
}
|
|
701
|
-
const
|
|
702
|
+
const Ut = (e) => ({
|
|
702
703
|
href: e.href
|
|
703
704
|
});
|
|
704
705
|
function ce({
|
|
@@ -707,23 +708,23 @@ function ce({
|
|
|
707
708
|
}) {
|
|
708
709
|
var i;
|
|
709
710
|
const n = {
|
|
710
|
-
...
|
|
711
|
+
...Ut(e),
|
|
711
712
|
...e.properties,
|
|
712
713
|
"builder-id": e.id,
|
|
713
|
-
style:
|
|
714
|
+
style: Rt({
|
|
714
715
|
block: e,
|
|
715
716
|
context: t
|
|
716
717
|
}),
|
|
717
|
-
[
|
|
718
|
+
[q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
718
719
|
};
|
|
719
|
-
return
|
|
720
|
+
return Lt({
|
|
720
721
|
properties: n,
|
|
721
722
|
context: t,
|
|
722
723
|
block: e
|
|
723
724
|
});
|
|
724
725
|
}
|
|
725
|
-
function
|
|
726
|
-
return /* @__PURE__ */
|
|
726
|
+
function _t(e) {
|
|
727
|
+
return /* @__PURE__ */ s(
|
|
727
728
|
re,
|
|
728
729
|
{
|
|
729
730
|
TagName: e.Wrapper,
|
|
@@ -743,9 +744,9 @@ function Ut(e) {
|
|
|
743
744
|
}
|
|
744
745
|
);
|
|
745
746
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
748
|
-
}, []), /* @__PURE__ */
|
|
747
|
+
function qt(e) {
|
|
748
|
+
return N(() => {
|
|
749
|
+
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
749
750
|
}
|
|
750
751
|
function Ht(e) {
|
|
751
752
|
function t() {
|
|
@@ -763,8 +764,8 @@ function Ht(e) {
|
|
|
763
764
|
})
|
|
764
765
|
} : {};
|
|
765
766
|
}
|
|
766
|
-
return /* @__PURE__ */
|
|
767
|
-
|
|
767
|
+
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
768
|
+
qt,
|
|
768
769
|
{
|
|
769
770
|
load: e.Wrapper.load,
|
|
770
771
|
fallback: e.Wrapper.fallback,
|
|
@@ -772,7 +773,7 @@ function Ht(e) {
|
|
|
772
773
|
attributes: t(),
|
|
773
774
|
children: e.children
|
|
774
775
|
}
|
|
775
|
-
) }) : /* @__PURE__ */
|
|
776
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
776
777
|
}
|
|
777
778
|
const Mt = ({
|
|
778
779
|
componentOptions: e,
|
|
@@ -783,7 +784,7 @@ const Mt = ({
|
|
|
783
784
|
isInteractive: a,
|
|
784
785
|
contextValue: r
|
|
785
786
|
}) => {
|
|
786
|
-
const
|
|
787
|
+
const l = {
|
|
787
788
|
...e,
|
|
788
789
|
/**
|
|
789
790
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -802,14 +803,14 @@ const Mt = ({
|
|
|
802
803
|
context: n,
|
|
803
804
|
wrapperProps: e,
|
|
804
805
|
includeBlockProps: o
|
|
805
|
-
} :
|
|
806
|
+
} : l;
|
|
806
807
|
};
|
|
807
|
-
function
|
|
808
|
+
function pe(e) {
|
|
808
809
|
var i;
|
|
809
810
|
const [t, n] = E(
|
|
810
811
|
() => e.isInteractive ? Ht : e.componentRef
|
|
811
812
|
);
|
|
812
|
-
return /* @__PURE__ */
|
|
813
|
+
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
813
814
|
t,
|
|
814
815
|
{
|
|
815
816
|
...Mt({
|
|
@@ -822,8 +823,8 @@ function be(e) {
|
|
|
822
823
|
isInteractive: e.isInteractive,
|
|
823
824
|
contextValue: e.context
|
|
824
825
|
}),
|
|
825
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
826
|
-
|
|
826
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
827
|
+
Z,
|
|
827
828
|
{
|
|
828
829
|
block: o,
|
|
829
830
|
context: e.context,
|
|
@@ -835,10 +836,10 @@ function be(e) {
|
|
|
835
836
|
}
|
|
836
837
|
) }) : null });
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
+
function ye(e) {
|
|
839
840
|
const [t, n] = E(() => e.repeatContext);
|
|
840
|
-
return /* @__PURE__ */
|
|
841
|
-
|
|
841
|
+
return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
842
|
+
Z,
|
|
842
843
|
{
|
|
843
844
|
block: e.block,
|
|
844
845
|
context: t,
|
|
@@ -847,10 +848,10 @@ function pe(e) {
|
|
|
847
848
|
}
|
|
848
849
|
) });
|
|
849
850
|
}
|
|
850
|
-
function
|
|
851
|
-
var h, g,
|
|
851
|
+
function Z(e) {
|
|
852
|
+
var h, g, f, k;
|
|
852
853
|
function t() {
|
|
853
|
-
return
|
|
854
|
+
return Vt({
|
|
854
855
|
block: e.block,
|
|
855
856
|
context: e.context
|
|
856
857
|
});
|
|
@@ -860,51 +861,51 @@ function M(e) {
|
|
|
860
861
|
update: !1
|
|
861
862
|
}));
|
|
862
863
|
function o() {
|
|
863
|
-
var
|
|
864
|
-
if (n.value && !n.update && !
|
|
864
|
+
var b;
|
|
865
|
+
if (n.value && !n.update && !Y())
|
|
865
866
|
return n.value;
|
|
866
|
-
const
|
|
867
|
+
const d = (b = e.block.repeat) != null && b.collection ? e.block : St({
|
|
867
868
|
block: e.block,
|
|
868
869
|
localState: e.context.localState,
|
|
869
870
|
rootState: e.context.rootState,
|
|
870
871
|
rootSetState: e.context.rootSetState,
|
|
871
872
|
context: e.context.context
|
|
872
873
|
});
|
|
873
|
-
return n.value =
|
|
874
|
+
return n.value = d, n.update = !1, d;
|
|
874
875
|
}
|
|
875
876
|
function a() {
|
|
876
|
-
return
|
|
877
|
+
return Pt({
|
|
877
878
|
block: o(),
|
|
878
879
|
registeredComponents: e.registeredComponents,
|
|
879
880
|
model: e.context.model
|
|
880
881
|
});
|
|
881
882
|
}
|
|
882
883
|
function r() {
|
|
883
|
-
var
|
|
884
|
-
return e.block.tagName === "a" || ((
|
|
884
|
+
var b;
|
|
885
|
+
return e.block.tagName === "a" || ((b = o().properties) == null ? void 0 : b.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
885
886
|
}
|
|
886
|
-
function
|
|
887
|
-
var
|
|
888
|
-
if ((
|
|
889
|
-
return !!((
|
|
890
|
-
const
|
|
891
|
-
return ("show" in o() ? o().show : !0) && !
|
|
887
|
+
function l() {
|
|
888
|
+
var v, y;
|
|
889
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
890
|
+
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
891
|
+
const d = "hide" in o() ? o().hide : !1;
|
|
892
|
+
return ("show" in o() ? o().show : !0) && !d;
|
|
892
893
|
}
|
|
893
|
-
function
|
|
894
|
-
var
|
|
895
|
-
return !((
|
|
894
|
+
function u() {
|
|
895
|
+
var b, v;
|
|
896
|
+
return !((b = a == null ? void 0 : a()) != null && b.component) && !t() ? (v = o().children) != null ? v : [] : [];
|
|
896
897
|
}
|
|
897
898
|
function c() {
|
|
898
|
-
var
|
|
899
|
+
var d, b, v, y;
|
|
899
900
|
return {
|
|
900
|
-
blockChildren: (
|
|
901
|
-
componentRef: (
|
|
901
|
+
blockChildren: (d = o().children) != null ? d : [],
|
|
902
|
+
componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
|
|
902
903
|
componentOptions: {
|
|
903
|
-
...
|
|
904
|
+
...mt(o(), e.context),
|
|
904
905
|
...At(a(), o()),
|
|
905
|
-
...
|
|
906
|
+
...Wt(a(), e.context),
|
|
906
907
|
...Bt(a(), e.linkComponent),
|
|
907
|
-
...
|
|
908
|
+
...Nt(
|
|
908
909
|
a(),
|
|
909
910
|
e.registeredComponents,
|
|
910
911
|
e.context.model
|
|
@@ -914,33 +915,33 @@ function M(e) {
|
|
|
914
915
|
linkComponent: e.linkComponent,
|
|
915
916
|
registeredComponents: e.registeredComponents,
|
|
916
917
|
builderBlock: o(),
|
|
917
|
-
includeBlockProps: ((
|
|
918
|
-
isInteractive: !((
|
|
918
|
+
includeBlockProps: ((v = a == null ? void 0 : a()) == null ? void 0 : v.noWrap) === !0,
|
|
919
|
+
isInteractive: !((y = a == null ? void 0 : a()) != null && y.isRSC && O === "rsc")
|
|
919
920
|
};
|
|
920
921
|
}
|
|
921
|
-
return
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
...
|
|
926
|
-
elementId:
|
|
922
|
+
return N(() => {
|
|
923
|
+
const d = o().id, b = o().animations;
|
|
924
|
+
b && d && Ct(
|
|
925
|
+
b.map((v) => ({
|
|
926
|
+
...v,
|
|
927
|
+
elementId: d
|
|
927
928
|
}))
|
|
928
929
|
);
|
|
929
|
-
}, []),
|
|
930
|
+
}, []), N(() => {
|
|
930
931
|
n.update = !0;
|
|
931
|
-
}), /* @__PURE__ */
|
|
932
|
-
/* @__PURE__ */
|
|
933
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */
|
|
934
|
-
|
|
932
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
|
|
933
|
+
/* @__PURE__ */ s(Dt, { block: o(), context: e.context }),
|
|
934
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((d, b) => /* @__PURE__ */ s(
|
|
935
|
+
ye,
|
|
935
936
|
{
|
|
936
|
-
repeatContext:
|
|
937
|
-
block:
|
|
937
|
+
repeatContext: d.context,
|
|
938
|
+
block: d.block,
|
|
938
939
|
registeredComponents: e.registeredComponents,
|
|
939
940
|
linkComponent: e.linkComponent
|
|
940
941
|
},
|
|
941
|
-
|
|
942
|
-
)) }) : /* @__PURE__ */
|
|
943
|
-
|
|
942
|
+
b
|
|
943
|
+
)) }) : /* @__PURE__ */ s(
|
|
944
|
+
pe,
|
|
944
945
|
{
|
|
945
946
|
componentRef: c().componentRef,
|
|
946
947
|
componentOptions: c().componentOptions,
|
|
@@ -952,24 +953,24 @@ function M(e) {
|
|
|
952
953
|
includeBlockProps: c().includeBlockProps,
|
|
953
954
|
isInteractive: c().isInteractive
|
|
954
955
|
}
|
|
955
|
-
) : /* @__PURE__ */
|
|
956
|
-
|
|
956
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (f = t()) == null ? void 0 : f.map((d, b) => /* @__PURE__ */ s(
|
|
957
|
+
ye,
|
|
957
958
|
{
|
|
958
|
-
repeatContext:
|
|
959
|
-
block:
|
|
959
|
+
repeatContext: d.context,
|
|
960
|
+
block: d.block,
|
|
960
961
|
registeredComponents: e.registeredComponents,
|
|
961
962
|
linkComponent: e.linkComponent
|
|
962
963
|
},
|
|
963
|
-
|
|
964
|
-
)) }) : /* @__PURE__ */
|
|
965
|
-
|
|
964
|
+
b
|
|
965
|
+
)) }) : /* @__PURE__ */ V(
|
|
966
|
+
_t,
|
|
966
967
|
{
|
|
967
968
|
Wrapper: r(),
|
|
968
969
|
block: o(),
|
|
969
970
|
context: e.context,
|
|
970
971
|
children: [
|
|
971
|
-
/* @__PURE__ */
|
|
972
|
-
|
|
972
|
+
/* @__PURE__ */ s(
|
|
973
|
+
pe,
|
|
973
974
|
{
|
|
974
975
|
componentRef: c().componentRef,
|
|
975
976
|
componentOptions: c().componentOptions,
|
|
@@ -982,15 +983,15 @@ function M(e) {
|
|
|
982
983
|
isInteractive: c().isInteractive
|
|
983
984
|
}
|
|
984
985
|
),
|
|
985
|
-
(g =
|
|
986
|
-
|
|
986
|
+
(g = u()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
|
|
987
|
+
Z,
|
|
987
988
|
{
|
|
988
|
-
block:
|
|
989
|
+
block: d,
|
|
989
990
|
registeredComponents: e.registeredComponents,
|
|
990
991
|
linkComponent: e.linkComponent,
|
|
991
992
|
context: e.context
|
|
992
993
|
},
|
|
993
|
-
|
|
994
|
+
d.id
|
|
994
995
|
))
|
|
995
996
|
]
|
|
996
997
|
}
|
|
@@ -998,7 +999,7 @@ function M(e) {
|
|
|
998
999
|
] }) : null });
|
|
999
1000
|
}
|
|
1000
1001
|
function jt(e) {
|
|
1001
|
-
const t =
|
|
1002
|
+
const t = F(null);
|
|
1002
1003
|
function n() {
|
|
1003
1004
|
var r;
|
|
1004
1005
|
return [
|
|
@@ -1010,12 +1011,12 @@ function jt(e) {
|
|
|
1010
1011
|
function i() {
|
|
1011
1012
|
if (!e.path)
|
|
1012
1013
|
return;
|
|
1013
|
-
const r = "component.options.";
|
|
1014
|
-
return e.path.startsWith(r) ? e.path : `${
|
|
1014
|
+
const r = "this.", l = "component.options.";
|
|
1015
|
+
return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
1015
1016
|
}
|
|
1016
1017
|
function o() {
|
|
1017
|
-
var r,
|
|
1018
|
-
W() && !((r = e.blocks) != null && r.length) && ((
|
|
1018
|
+
var r, l;
|
|
1019
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1019
1020
|
{
|
|
1020
1021
|
type: "builder.clickEmptyBlocks",
|
|
1021
1022
|
data: {
|
|
@@ -1027,8 +1028,8 @@ function jt(e) {
|
|
|
1027
1028
|
));
|
|
1028
1029
|
}
|
|
1029
1030
|
function a() {
|
|
1030
|
-
var r,
|
|
1031
|
-
W() && !((r = e.blocks) != null && r.length) && ((
|
|
1031
|
+
var r, l;
|
|
1032
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1032
1033
|
{
|
|
1033
1034
|
type: "builder.hoverEmptyBlocks",
|
|
1034
1035
|
data: {
|
|
@@ -1039,13 +1040,13 @@ function jt(e) {
|
|
|
1039
1040
|
"*"
|
|
1040
1041
|
));
|
|
1041
1042
|
}
|
|
1042
|
-
return
|
|
1043
|
-
}, []), /* @__PURE__ */
|
|
1044
|
-
/* @__PURE__ */
|
|
1043
|
+
return N(() => {
|
|
1044
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
1045
|
+
/* @__PURE__ */ s(
|
|
1045
1046
|
e.BlocksWrapper,
|
|
1046
1047
|
{
|
|
1047
1048
|
ref: t,
|
|
1048
|
-
className: n() + " props-blocks-wrapper-
|
|
1049
|
+
className: n() + " props-blocks-wrapper-2936bbfc",
|
|
1049
1050
|
"builder-path": i(),
|
|
1050
1051
|
"builder-parent-id": e.parent,
|
|
1051
1052
|
style: e.styleProp,
|
|
@@ -1056,17 +1057,17 @@ function jt(e) {
|
|
|
1056
1057
|
children: e.children
|
|
1057
1058
|
}
|
|
1058
1059
|
),
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2936bbfc {
|
|
1060
1061
|
display: flex;
|
|
1061
1062
|
flex-direction: column;
|
|
1062
1063
|
align-items: stretch;
|
|
1063
1064
|
}` })
|
|
1064
1065
|
] });
|
|
1065
1066
|
}
|
|
1066
|
-
function
|
|
1067
|
+
function D(e) {
|
|
1067
1068
|
var i, o, a;
|
|
1068
|
-
const t =
|
|
1069
|
-
return /* @__PURE__ */
|
|
1069
|
+
const t = he(le), n = he(Ve);
|
|
1070
|
+
return /* @__PURE__ */ s(
|
|
1070
1071
|
jt,
|
|
1071
1072
|
{
|
|
1072
1073
|
blocks: e.blocks,
|
|
@@ -1076,8 +1077,8 @@ function F(e) {
|
|
|
1076
1077
|
classNameProp: e.className,
|
|
1077
1078
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1078
1079
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1079
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1080
|
-
|
|
1080
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
1081
|
+
Z,
|
|
1081
1082
|
{
|
|
1082
1083
|
block: r,
|
|
1083
1084
|
linkComponent: e.linkComponent,
|
|
@@ -1089,9 +1090,9 @@ function F(e) {
|
|
|
1089
1090
|
}
|
|
1090
1091
|
);
|
|
1091
1092
|
}
|
|
1092
|
-
const
|
|
1093
|
-
function
|
|
1094
|
-
var
|
|
1093
|
+
const zt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1094
|
+
function Kt(e) {
|
|
1095
|
+
var b, v;
|
|
1095
1096
|
function t() {
|
|
1096
1097
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1097
1098
|
}
|
|
@@ -1101,28 +1102,28 @@ function zt(e) {
|
|
|
1101
1102
|
function i() {
|
|
1102
1103
|
return e.stackColumnsAt || "tablet";
|
|
1103
1104
|
}
|
|
1104
|
-
function o(
|
|
1105
|
-
return
|
|
1105
|
+
function o(y) {
|
|
1106
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1106
1107
|
}
|
|
1107
|
-
function a(
|
|
1108
|
-
var
|
|
1109
|
-
return ((
|
|
1108
|
+
function a(y) {
|
|
1109
|
+
var x;
|
|
1110
|
+
return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
|
|
1110
1111
|
}
|
|
1111
|
-
function r(
|
|
1112
|
-
const
|
|
1113
|
-
return `calc(${
|
|
1112
|
+
function r(y) {
|
|
1113
|
+
const x = a(y), T = t() * (n().length - 1) * (x / 100);
|
|
1114
|
+
return `calc(${x}% - ${T}px)`;
|
|
1114
1115
|
}
|
|
1115
|
-
function
|
|
1116
|
-
stackedStyle:
|
|
1117
|
-
desktopStyle:
|
|
1116
|
+
function l({
|
|
1117
|
+
stackedStyle: y,
|
|
1118
|
+
desktopStyle: x
|
|
1118
1119
|
}) {
|
|
1119
|
-
return i() === "tablet" ?
|
|
1120
|
+
return i() === "tablet" ? y : x;
|
|
1120
1121
|
}
|
|
1121
|
-
function
|
|
1122
|
-
stackedStyle:
|
|
1123
|
-
desktopStyle:
|
|
1122
|
+
function u({
|
|
1123
|
+
stackedStyle: y,
|
|
1124
|
+
desktopStyle: x
|
|
1124
1125
|
}) {
|
|
1125
|
-
return i() === "never" ?
|
|
1126
|
+
return i() === "never" ? x : y;
|
|
1126
1127
|
}
|
|
1127
1128
|
function c() {
|
|
1128
1129
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1130,179 +1131,179 @@ function zt(e) {
|
|
|
1130
1131
|
function h() {
|
|
1131
1132
|
return {
|
|
1132
1133
|
"--flex-dir": c(),
|
|
1133
|
-
"--flex-dir-tablet":
|
|
1134
|
+
"--flex-dir-tablet": l({
|
|
1134
1135
|
stackedStyle: c(),
|
|
1135
1136
|
desktopStyle: "row"
|
|
1136
1137
|
})
|
|
1137
1138
|
};
|
|
1138
1139
|
}
|
|
1139
|
-
function g(
|
|
1140
|
-
const
|
|
1140
|
+
function g(y) {
|
|
1141
|
+
const x = y === 0 ? 0 : t(), T = r(y), P = `${x}px`, I = "100%", S = 0;
|
|
1141
1142
|
return {
|
|
1142
1143
|
...{
|
|
1143
1144
|
display: "flex",
|
|
1144
1145
|
flexDirection: "column",
|
|
1145
1146
|
alignItems: "stretch"
|
|
1146
1147
|
},
|
|
1147
|
-
width:
|
|
1148
|
-
["marginLeft"]:
|
|
1149
|
-
"--column-width-mobile":
|
|
1150
|
-
stackedStyle:
|
|
1151
|
-
desktopStyle:
|
|
1148
|
+
width: T,
|
|
1149
|
+
["marginLeft"]: P,
|
|
1150
|
+
"--column-width-mobile": u({
|
|
1151
|
+
stackedStyle: I,
|
|
1152
|
+
desktopStyle: T
|
|
1152
1153
|
}),
|
|
1153
|
-
"--column-margin-left-mobile":
|
|
1154
|
-
stackedStyle:
|
|
1155
|
-
desktopStyle:
|
|
1154
|
+
"--column-margin-left-mobile": u({
|
|
1155
|
+
stackedStyle: S,
|
|
1156
|
+
desktopStyle: P
|
|
1156
1157
|
}),
|
|
1157
|
-
"--column-width-tablet":
|
|
1158
|
-
stackedStyle:
|
|
1159
|
-
desktopStyle:
|
|
1158
|
+
"--column-width-tablet": l({
|
|
1159
|
+
stackedStyle: I,
|
|
1160
|
+
desktopStyle: T
|
|
1160
1161
|
}),
|
|
1161
|
-
"--column-margin-left-tablet":
|
|
1162
|
-
stackedStyle:
|
|
1163
|
-
desktopStyle:
|
|
1162
|
+
"--column-margin-left-tablet": l({
|
|
1163
|
+
stackedStyle: S,
|
|
1164
|
+
desktopStyle: P
|
|
1164
1165
|
})
|
|
1165
1166
|
};
|
|
1166
1167
|
}
|
|
1167
|
-
function
|
|
1168
|
-
var
|
|
1169
|
-
return
|
|
1170
|
-
((
|
|
1171
|
-
)[
|
|
1168
|
+
function f(y) {
|
|
1169
|
+
var T, P;
|
|
1170
|
+
return qe(
|
|
1171
|
+
((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1172
|
+
)[y].max;
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
-
const
|
|
1174
|
+
function k() {
|
|
1175
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1175
1176
|
return `
|
|
1176
|
-
@media (max-width: ${
|
|
1177
|
+
@media (max-width: ${f("medium")}px) {
|
|
1177
1178
|
.${e.builderBlock.id}-breakpoints {
|
|
1178
1179
|
flex-direction: var(--flex-dir-tablet);
|
|
1179
1180
|
align-items: stretch;
|
|
1180
1181
|
}
|
|
1181
1182
|
|
|
1182
|
-
${
|
|
1183
|
+
${y} {
|
|
1183
1184
|
width: var(--column-width-tablet) !important;
|
|
1184
1185
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1185
1186
|
}
|
|
1186
1187
|
}
|
|
1187
1188
|
|
|
1188
|
-
@media (max-width: ${
|
|
1189
|
+
@media (max-width: ${f("small")}px) {
|
|
1189
1190
|
.${e.builderBlock.id}-breakpoints {
|
|
1190
1191
|
flex-direction: var(--flex-dir);
|
|
1191
1192
|
align-items: stretch;
|
|
1192
1193
|
}
|
|
1193
1194
|
|
|
1194
|
-
${
|
|
1195
|
+
${y} {
|
|
1195
1196
|
width: var(--column-width-mobile) !important;
|
|
1196
1197
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1197
1198
|
}
|
|
1198
1199
|
},
|
|
1199
1200
|
`;
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
+
function d(y, x) {
|
|
1202
1203
|
return {
|
|
1203
|
-
...
|
|
1204
|
-
href:
|
|
1204
|
+
...y.link ? {
|
|
1205
|
+
href: y.link
|
|
1205
1206
|
} : {},
|
|
1206
|
-
[
|
|
1207
|
-
style:
|
|
1207
|
+
[q()]: "builder-column",
|
|
1208
|
+
style: Le(g(x))
|
|
1208
1209
|
};
|
|
1209
1210
|
}
|
|
1210
|
-
return /* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1211
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1212
|
+
/* @__PURE__ */ V(
|
|
1212
1213
|
"div",
|
|
1213
1214
|
{
|
|
1214
|
-
className:
|
|
1215
|
+
className: zt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1215
1216
|
style: h(),
|
|
1216
1217
|
children: [
|
|
1217
|
-
/* @__PURE__ */
|
|
1218
|
-
|
|
1218
|
+
/* @__PURE__ */ s(
|
|
1219
|
+
H,
|
|
1219
1220
|
{
|
|
1220
1221
|
id: "builderio-columns",
|
|
1221
|
-
styles:
|
|
1222
|
+
styles: k(),
|
|
1222
1223
|
nonce: e.builderContext.nonce
|
|
1223
1224
|
}
|
|
1224
1225
|
),
|
|
1225
|
-
(
|
|
1226
|
+
(v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
|
|
1226
1227
|
re,
|
|
1227
1228
|
{
|
|
1228
|
-
TagName: o(
|
|
1229
|
+
TagName: o(y),
|
|
1229
1230
|
actionAttributes: {},
|
|
1230
|
-
attributes:
|
|
1231
|
-
children: /* @__PURE__ */
|
|
1232
|
-
|
|
1231
|
+
attributes: d(y, x),
|
|
1232
|
+
children: /* @__PURE__ */ s(
|
|
1233
|
+
D,
|
|
1233
1234
|
{
|
|
1234
|
-
path: `columns.${
|
|
1235
|
+
path: `columns.${x}.blocks`,
|
|
1235
1236
|
parent: e.builderBlock.id,
|
|
1236
|
-
styleProp: {
|
|
1237
|
-
flexGrow: "1"
|
|
1238
|
-
},
|
|
1239
1237
|
context: e.builderContext,
|
|
1240
1238
|
registeredComponents: e.builderComponents,
|
|
1241
1239
|
linkComponent: e.builderLinkComponent,
|
|
1242
|
-
blocks:
|
|
1240
|
+
blocks: y.blocks,
|
|
1241
|
+
styleProp: {
|
|
1242
|
+
flexGrow: "1"
|
|
1243
|
+
}
|
|
1243
1244
|
}
|
|
1244
1245
|
)
|
|
1245
1246
|
},
|
|
1246
|
-
|
|
1247
|
+
x
|
|
1247
1248
|
))
|
|
1248
1249
|
]
|
|
1249
1250
|
}
|
|
1250
1251
|
),
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
+
/* @__PURE__ */ s("style", { children: `.div-a6f3faac {
|
|
1252
1253
|
display: flex;
|
|
1253
1254
|
line-height: normal;
|
|
1254
1255
|
}` })
|
|
1255
1256
|
] });
|
|
1256
1257
|
}
|
|
1257
|
-
function
|
|
1258
|
-
return /* @__PURE__ */
|
|
1258
|
+
function Jt(e) {
|
|
1259
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1259
1260
|
}
|
|
1260
|
-
function
|
|
1261
|
+
function ve(e) {
|
|
1261
1262
|
return e.replace(/http(s)?:/, "");
|
|
1262
1263
|
}
|
|
1263
|
-
function
|
|
1264
|
+
function Gt(e = "", t, n) {
|
|
1264
1265
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1265
1266
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1266
1267
|
}
|
|
1267
|
-
function
|
|
1268
|
+
function Qt(e, t) {
|
|
1268
1269
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1269
1270
|
return e;
|
|
1270
1271
|
if (t === "master")
|
|
1271
|
-
return
|
|
1272
|
+
return ve(e);
|
|
1272
1273
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1273
1274
|
if (n) {
|
|
1274
1275
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1275
|
-
return
|
|
1276
|
+
return ve(`${i[0]}_${a}${o}`);
|
|
1276
1277
|
}
|
|
1277
1278
|
return null;
|
|
1278
1279
|
}
|
|
1279
|
-
function
|
|
1280
|
+
function ee(e) {
|
|
1280
1281
|
if (!e)
|
|
1281
1282
|
return e;
|
|
1282
1283
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1283
1284
|
if (e.match(/builder\.io/)) {
|
|
1284
1285
|
let n = e;
|
|
1285
1286
|
const i = Number(e.split("?width=")[1]);
|
|
1286
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1287
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Gt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1287
1288
|
}
|
|
1288
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1289
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1289
1290
|
}
|
|
1290
1291
|
function Yt(e) {
|
|
1291
|
-
var o, a, r,
|
|
1292
|
+
var o, a, r, l, u, c;
|
|
1292
1293
|
function t() {
|
|
1293
|
-
var
|
|
1294
|
+
var f;
|
|
1294
1295
|
const g = e.image || e.src;
|
|
1295
1296
|
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1296
1297
|
// images, otherwise you can supply this prop manually
|
|
1297
1298
|
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1298
1299
|
return e.srcset;
|
|
1299
1300
|
if (!e.noWebp) {
|
|
1300
|
-
if (e.srcset && ((
|
|
1301
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1301
1302
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1302
|
-
return console.debug("Removed given srcset"),
|
|
1303
|
+
return console.debug("Removed given srcset"), ee(g);
|
|
1303
1304
|
} else if (e.image && !e.srcset)
|
|
1304
|
-
return
|
|
1305
|
-
return
|
|
1305
|
+
return ee(g);
|
|
1306
|
+
return ee(g);
|
|
1306
1307
|
}
|
|
1307
1308
|
}
|
|
1308
1309
|
function n() {
|
|
@@ -1319,12 +1320,11 @@ function Yt(e) {
|
|
|
1319
1320
|
};
|
|
1320
1321
|
return e.aspectRatio ? h : void 0;
|
|
1321
1322
|
}
|
|
1322
|
-
return
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
/* @__PURE__ */ l(
|
|
1323
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1324
|
+
/* @__PURE__ */ V(R, { children: [
|
|
1325
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1326
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1327
|
+
/* @__PURE__ */ s(
|
|
1328
1328
|
"img",
|
|
1329
1329
|
{
|
|
1330
1330
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1336,33 +1336,33 @@ function Yt(e) {
|
|
|
1336
1336
|
objectFit: e.backgroundSize || "cover",
|
|
1337
1337
|
...i()
|
|
1338
1338
|
},
|
|
1339
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1339
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
|
|
1340
1340
|
src: e.image,
|
|
1341
1341
|
srcSet: t(),
|
|
1342
1342
|
sizes: e.sizes
|
|
1343
1343
|
}
|
|
1344
1344
|
)
|
|
1345
1345
|
] }),
|
|
1346
|
-
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
1346
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1347
1347
|
"div",
|
|
1348
1348
|
{
|
|
1349
|
-
className: "builder-image-sizer div-
|
|
1349
|
+
className: "builder-image-sizer div-9dac2184",
|
|
1350
1350
|
style: {
|
|
1351
1351
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
) : null,
|
|
1355
|
-
(
|
|
1356
|
-
!e.fitContent && ((c = (
|
|
1355
|
+
(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 = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1357
1357
|
] }),
|
|
1358
|
-
/* @__PURE__ */
|
|
1358
|
+
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1359
1359
|
opacity: 1;
|
|
1360
1360
|
transition: opacity 0.2s ease-in-out;
|
|
1361
|
-
}.div-
|
|
1361
|
+
}.div-9dac2184 {
|
|
1362
1362
|
width: 100%;
|
|
1363
1363
|
pointer-events: none;
|
|
1364
1364
|
font-size: 0;
|
|
1365
|
-
}.div-
|
|
1365
|
+
}.div-9dac2184-2 {
|
|
1366
1366
|
display: flex;
|
|
1367
1367
|
flex-direction: column;
|
|
1368
1368
|
align-items: stretch;
|
|
@@ -1374,8 +1374,8 @@ function Yt(e) {
|
|
|
1374
1374
|
}` })
|
|
1375
1375
|
] });
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return /* @__PURE__ */
|
|
1377
|
+
function Xt(e) {
|
|
1378
|
+
return /* @__PURE__ */ s(
|
|
1379
1379
|
"section",
|
|
1380
1380
|
{
|
|
1381
1381
|
...e.attributes,
|
|
@@ -1395,7 +1395,7 @@ function Qt(e) {
|
|
|
1395
1395
|
}
|
|
1396
1396
|
);
|
|
1397
1397
|
}
|
|
1398
|
-
const
|
|
1398
|
+
const te = {
|
|
1399
1399
|
"@type": "@builder.io/sdk:Element",
|
|
1400
1400
|
layerName: "Accordion item title",
|
|
1401
1401
|
responsiveStyles: {
|
|
@@ -1424,7 +1424,7 @@ const Z = {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
1426
|
}]
|
|
1427
|
-
},
|
|
1427
|
+
}, ne = {
|
|
1428
1428
|
"@type": "@builder.io/sdk:Element",
|
|
1429
1429
|
layerName: "Accordion item detail",
|
|
1430
1430
|
responsiveStyles: {
|
|
@@ -1455,7 +1455,7 @@ const Z = {
|
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
1457
|
}]
|
|
1458
|
-
},
|
|
1458
|
+
}, Zt = {
|
|
1459
1459
|
name: "Builder:Accordion",
|
|
1460
1460
|
canHaveChildren: !0,
|
|
1461
1461
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1472,19 +1472,19 @@ const Z = {
|
|
|
1472
1472
|
name: "title",
|
|
1473
1473
|
type: "uiBlocks",
|
|
1474
1474
|
hideFromUI: !0,
|
|
1475
|
-
defaultValue: [
|
|
1475
|
+
defaultValue: [te]
|
|
1476
1476
|
}, {
|
|
1477
1477
|
name: "detail",
|
|
1478
1478
|
type: "uiBlocks",
|
|
1479
1479
|
hideFromUI: !0,
|
|
1480
|
-
defaultValue: [
|
|
1480
|
+
defaultValue: [ne]
|
|
1481
1481
|
}],
|
|
1482
1482
|
defaultValue: [{
|
|
1483
|
-
title: [
|
|
1484
|
-
detail: [
|
|
1483
|
+
title: [te],
|
|
1484
|
+
detail: [ne]
|
|
1485
1485
|
}, {
|
|
1486
|
-
title: [
|
|
1487
|
-
detail: [
|
|
1486
|
+
title: [te],
|
|
1487
|
+
detail: [ne]
|
|
1488
1488
|
}],
|
|
1489
1489
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1490
1490
|
}, {
|
|
@@ -1520,7 +1520,7 @@ const Z = {
|
|
|
1520
1520
|
builderLinkComponent: !0
|
|
1521
1521
|
}
|
|
1522
1522
|
}, xe = (e) => e.toString();
|
|
1523
|
-
function
|
|
1523
|
+
function en(e) {
|
|
1524
1524
|
var g;
|
|
1525
1525
|
const [t, n] = E(() => []);
|
|
1526
1526
|
function i() {
|
|
@@ -1539,7 +1539,7 @@ function Zt(e) {
|
|
|
1539
1539
|
};
|
|
1540
1540
|
}
|
|
1541
1541
|
function a() {
|
|
1542
|
-
const
|
|
1542
|
+
const k = {
|
|
1543
1543
|
...{
|
|
1544
1544
|
display: "flex",
|
|
1545
1545
|
flexDirection: "column"
|
|
@@ -1548,75 +1548,75 @@ function Zt(e) {
|
|
|
1548
1548
|
cursor: "pointer"
|
|
1549
1549
|
};
|
|
1550
1550
|
return Object.fromEntries(
|
|
1551
|
-
Object.entries(
|
|
1551
|
+
Object.entries(k).filter(([d, b]) => b !== void 0)
|
|
1552
1552
|
);
|
|
1553
1553
|
}
|
|
1554
|
-
function r(
|
|
1555
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1554
|
+
function r(f) {
|
|
1555
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1557
|
+
function l(f) {
|
|
1558
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1561
|
-
let
|
|
1560
|
+
function u() {
|
|
1561
|
+
let f = null;
|
|
1562
1562
|
if (e.grid && t.length && document) {
|
|
1563
|
-
const
|
|
1564
|
-
let
|
|
1565
|
-
`.builder-accordion-title[data-index="${
|
|
1563
|
+
const d = t[0];
|
|
1564
|
+
let v = document.querySelector(
|
|
1565
|
+
`.builder-accordion-title[data-index="${d}"]`
|
|
1566
1566
|
);
|
|
1567
|
-
if (
|
|
1568
|
-
let
|
|
1569
|
-
for (;
|
|
1570
|
-
if (
|
|
1571
|
-
if (
|
|
1567
|
+
if (f = d, v) {
|
|
1568
|
+
let y = v.getBoundingClientRect();
|
|
1569
|
+
for (; v = v && v.nextElementSibling; )
|
|
1570
|
+
if (v) {
|
|
1571
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1572
1572
|
continue;
|
|
1573
|
-
const
|
|
1574
|
-
if (
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1573
|
+
const x = v.getBoundingClientRect();
|
|
1574
|
+
if (x.left > y.left) {
|
|
1575
|
+
const T = parseInt(
|
|
1576
|
+
v.getAttribute("data-index") || "",
|
|
1577
1577
|
10
|
|
1578
1578
|
);
|
|
1579
|
-
isNaN(
|
|
1579
|
+
isNaN(T) || (y = x, f = T);
|
|
1580
1580
|
} else
|
|
1581
1581
|
break;
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
}
|
|
1585
|
-
return typeof
|
|
1585
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1586
1586
|
}
|
|
1587
1587
|
function c() {
|
|
1588
|
-
const
|
|
1589
|
-
order: typeof
|
|
1588
|
+
const f = {
|
|
1589
|
+
order: typeof u() == "number" ? u() : void 0,
|
|
1590
1590
|
...e.grid && {
|
|
1591
1591
|
width: "100%"
|
|
1592
1592
|
}
|
|
1593
1593
|
};
|
|
1594
1594
|
return Object.fromEntries(
|
|
1595
|
-
Object.entries(
|
|
1595
|
+
Object.entries(f).filter(([k, d]) => d !== void 0)
|
|
1596
1596
|
);
|
|
1597
1597
|
}
|
|
1598
|
-
function h(
|
|
1599
|
-
t.includes(
|
|
1598
|
+
function h(f) {
|
|
1599
|
+
t.includes(f) ? n(i() ? [] : t.filter((k) => k !== f)) : n(i() ? [f] : t.concat(f));
|
|
1600
1600
|
}
|
|
1601
|
-
return /* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
1601
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((f, k) => /* @__PURE__ */ V(Ze.Fragment, { children: [
|
|
1602
|
+
/* @__PURE__ */ s(
|
|
1603
1603
|
"div",
|
|
1604
1604
|
{
|
|
1605
|
-
className: r(
|
|
1605
|
+
className: r(k),
|
|
1606
1606
|
style: {
|
|
1607
1607
|
...a(),
|
|
1608
1608
|
...e.grid && {
|
|
1609
1609
|
width: e.gridRowWidth,
|
|
1610
|
-
order:
|
|
1610
|
+
order: u() !== null ? xe(k) : xe(k + 1)
|
|
1611
1611
|
}
|
|
1612
1612
|
},
|
|
1613
|
-
"data-index":
|
|
1614
|
-
onClick: (
|
|
1615
|
-
children: /* @__PURE__ */
|
|
1616
|
-
|
|
1613
|
+
"data-index": k,
|
|
1614
|
+
onClick: (d) => h(k),
|
|
1615
|
+
children: /* @__PURE__ */ s(
|
|
1616
|
+
D,
|
|
1617
1617
|
{
|
|
1618
|
-
blocks:
|
|
1619
|
-
path: `items.${
|
|
1618
|
+
blocks: f.title,
|
|
1619
|
+
path: `items.${k}.title`,
|
|
1620
1620
|
parent: e.builderBlock.id,
|
|
1621
1621
|
context: e.builderContext,
|
|
1622
1622
|
registeredComponents: e.builderComponents,
|
|
@@ -1625,16 +1625,16 @@ function Zt(e) {
|
|
|
1625
1625
|
)
|
|
1626
1626
|
}
|
|
1627
1627
|
),
|
|
1628
|
-
t.includes(
|
|
1628
|
+
t.includes(k) ? /* @__PURE__ */ s(
|
|
1629
1629
|
"div",
|
|
1630
1630
|
{
|
|
1631
|
-
className:
|
|
1631
|
+
className: l(k),
|
|
1632
1632
|
style: c(),
|
|
1633
|
-
children: /* @__PURE__ */
|
|
1634
|
-
|
|
1633
|
+
children: /* @__PURE__ */ s(
|
|
1634
|
+
D,
|
|
1635
1635
|
{
|
|
1636
|
-
blocks:
|
|
1637
|
-
path: `items.${
|
|
1636
|
+
blocks: f.detail,
|
|
1637
|
+
path: `items.${k}.detail`,
|
|
1638
1638
|
parent: e.builderBlock.id,
|
|
1639
1639
|
context: e.builderContext,
|
|
1640
1640
|
registeredComponents: e.builderComponents,
|
|
@@ -1643,9 +1643,9 @@ function Zt(e) {
|
|
|
1643
1643
|
)
|
|
1644
1644
|
}
|
|
1645
1645
|
) : null
|
|
1646
|
-
] },
|
|
1646
|
+
] }, k)) });
|
|
1647
1647
|
}
|
|
1648
|
-
const
|
|
1648
|
+
const tn = {
|
|
1649
1649
|
name: "Core:Button",
|
|
1650
1650
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1651
1651
|
defaultStyles: {
|
|
@@ -1681,7 +1681,7 @@ const en = {
|
|
|
1681
1681
|
shouldReceiveBuilderProps: {
|
|
1682
1682
|
builderLinkComponent: !0
|
|
1683
1683
|
}
|
|
1684
|
-
},
|
|
1684
|
+
}, nn = {
|
|
1685
1685
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1686
1686
|
name: "Columns",
|
|
1687
1687
|
isRSC: !0,
|
|
@@ -1860,7 +1860,7 @@ const en = {
|
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
1862
|
const n = e.get("columns");
|
|
1863
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
1863
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
|
|
1864
1864
|
}
|
|
1865
1865
|
}, {
|
|
1866
1866
|
name: "space",
|
|
@@ -1888,13 +1888,13 @@ const en = {
|
|
|
1888
1888
|
builderComponents: !0,
|
|
1889
1889
|
builderLinkComponent: !0
|
|
1890
1890
|
}
|
|
1891
|
-
},
|
|
1891
|
+
}, on = {
|
|
1892
1892
|
name: "Fragment",
|
|
1893
1893
|
static: !0,
|
|
1894
1894
|
hidden: !0,
|
|
1895
1895
|
canHaveChildren: !0,
|
|
1896
1896
|
noWrap: !0
|
|
1897
|
-
},
|
|
1897
|
+
}, ue = ["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"], an = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], rn = {
|
|
1898
1898
|
name: "Image",
|
|
1899
1899
|
static: !0,
|
|
1900
1900
|
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,22 +1909,22 @@ const en = {
|
|
|
1909
1909
|
name: "image",
|
|
1910
1910
|
type: "file",
|
|
1911
1911
|
bubble: !0,
|
|
1912
|
-
allowedFileTypes:
|
|
1912
|
+
allowedFileTypes: ue,
|
|
1913
1913
|
required: !0,
|
|
1914
1914
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1915
1915
|
onChange: (e) => {
|
|
1916
1916
|
e.delete("srcset"), e.delete("noWebp");
|
|
1917
|
-
function n(r,
|
|
1918
|
-
return new Promise((
|
|
1917
|
+
function n(r, l = 6e4) {
|
|
1918
|
+
return new Promise((u, c) => {
|
|
1919
1919
|
const h = document.createElement("img");
|
|
1920
1920
|
let g = !1;
|
|
1921
1921
|
h.onload = () => {
|
|
1922
|
-
g = !0,
|
|
1923
|
-
}, h.addEventListener("error", (
|
|
1924
|
-
console.warn("Image load failed",
|
|
1922
|
+
g = !0, u(h);
|
|
1923
|
+
}, h.addEventListener("error", (f) => {
|
|
1924
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1925
1925
|
}), h.src = r, setTimeout(() => {
|
|
1926
1926
|
g || c(new Error("Image load timed out"));
|
|
1927
|
-
},
|
|
1927
|
+
}, l);
|
|
1928
1928
|
});
|
|
1929
1929
|
}
|
|
1930
1930
|
function i(r) {
|
|
@@ -1935,8 +1935,8 @@ const en = {
|
|
|
1935
1935
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1936
1936
|
}), o && (!a || a === 0.7041))
|
|
1937
1937
|
return n(o).then((r) => {
|
|
1938
|
-
const
|
|
1939
|
-
e.get("image") === o && (!
|
|
1938
|
+
const l = e.get("aspectRatio");
|
|
1939
|
+
e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1940
1940
|
});
|
|
1941
1941
|
}
|
|
1942
1942
|
}, {
|
|
@@ -2002,7 +2002,426 @@ const en = {
|
|
|
2002
2002
|
shouldReceiveBuilderProps: {
|
|
2003
2003
|
builderBlock: !0
|
|
2004
2004
|
}
|
|
2005
|
-
},
|
|
2005
|
+
}, ln = {
|
|
2006
|
+
name: "PersonalizationContainer",
|
|
2007
|
+
shouldReceiveBuilderProps: {
|
|
2008
|
+
builderBlock: !0,
|
|
2009
|
+
builderContext: !0
|
|
2010
|
+
},
|
|
2011
|
+
noWrap: !0,
|
|
2012
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
2013
|
+
canHaveChildren: !0,
|
|
2014
|
+
inputs: [{
|
|
2015
|
+
name: "variants",
|
|
2016
|
+
defaultValue: [],
|
|
2017
|
+
behavior: "personalizationVariantList",
|
|
2018
|
+
type: "list",
|
|
2019
|
+
subFields: [{
|
|
2020
|
+
name: "name",
|
|
2021
|
+
type: "text"
|
|
2022
|
+
}, {
|
|
2023
|
+
name: "query",
|
|
2024
|
+
friendlyName: "Targeting rules",
|
|
2025
|
+
type: "BuilderQuery",
|
|
2026
|
+
defaultValue: []
|
|
2027
|
+
}, {
|
|
2028
|
+
name: "startDate",
|
|
2029
|
+
type: "date"
|
|
2030
|
+
}, {
|
|
2031
|
+
name: "endDate",
|
|
2032
|
+
type: "date"
|
|
2033
|
+
}, {
|
|
2034
|
+
name: "blocks",
|
|
2035
|
+
type: "uiBlocks",
|
|
2036
|
+
hideFromUI: !0,
|
|
2037
|
+
defaultValue: []
|
|
2038
|
+
}]
|
|
2039
|
+
}]
|
|
2040
|
+
};
|
|
2041
|
+
function G(e) {
|
|
2042
|
+
return /* @__PURE__ */ s(
|
|
2043
|
+
"script",
|
|
2044
|
+
{
|
|
2045
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2046
|
+
"data-id": e.id,
|
|
2047
|
+
nonce: e.nonce || ""
|
|
2048
|
+
}
|
|
2049
|
+
);
|
|
2050
|
+
}
|
|
2051
|
+
function sn(e, t, n, i) {
|
|
2052
|
+
function o(c) {
|
|
2053
|
+
return typeof c == "string";
|
|
2054
|
+
}
|
|
2055
|
+
function a(c) {
|
|
2056
|
+
return typeof c == "number";
|
|
2057
|
+
}
|
|
2058
|
+
function r(c, h) {
|
|
2059
|
+
return (() => {
|
|
2060
|
+
const f = h.property, k = h.operator;
|
|
2061
|
+
let d = h.value;
|
|
2062
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && k))
|
|
2063
|
+
return !0;
|
|
2064
|
+
if (Array.isArray(d))
|
|
2065
|
+
return k === "isNot" ? d.every((v) => r(c, {
|
|
2066
|
+
property: f,
|
|
2067
|
+
operator: k,
|
|
2068
|
+
value: v
|
|
2069
|
+
})) : !!d.find((v) => r(c, {
|
|
2070
|
+
property: f,
|
|
2071
|
+
operator: k,
|
|
2072
|
+
value: v
|
|
2073
|
+
}));
|
|
2074
|
+
const b = c[f];
|
|
2075
|
+
if (Array.isArray(b))
|
|
2076
|
+
return b.includes(d);
|
|
2077
|
+
switch (k) {
|
|
2078
|
+
case "is":
|
|
2079
|
+
return b === d;
|
|
2080
|
+
case "isNot":
|
|
2081
|
+
return b !== d;
|
|
2082
|
+
case "contains":
|
|
2083
|
+
return (o(b) || Array.isArray(b)) && b.includes(String(d));
|
|
2084
|
+
case "startsWith":
|
|
2085
|
+
return o(b) && b.startsWith(String(d));
|
|
2086
|
+
case "endsWith":
|
|
2087
|
+
return o(b) && b.endsWith(String(d));
|
|
2088
|
+
case "greaterThan":
|
|
2089
|
+
return a(b) && a(d) && b > d;
|
|
2090
|
+
case "lessThan":
|
|
2091
|
+
return a(b) && a(d) && b < d;
|
|
2092
|
+
case "greaterThanOrEqualTo":
|
|
2093
|
+
return a(b) && a(d) && b >= d;
|
|
2094
|
+
case "lessThanOrEqualTo":
|
|
2095
|
+
return a(b) && a(d) && b <= d;
|
|
2096
|
+
default:
|
|
2097
|
+
return !1;
|
|
2098
|
+
}
|
|
2099
|
+
})();
|
|
2100
|
+
}
|
|
2101
|
+
const l = {
|
|
2102
|
+
query: t,
|
|
2103
|
+
startDate: n,
|
|
2104
|
+
endDate: i
|
|
2105
|
+
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2106
|
+
return l.startDate && new Date(l.startDate) > u || l.endDate && new Date(l.endDate) < u ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2107
|
+
}
|
|
2108
|
+
const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2109
|
+
if (!navigator.cookieEnabled) {
|
|
2110
|
+
return;
|
|
2111
|
+
}
|
|
2112
|
+
function getCookie(name) {
|
|
2113
|
+
const nameEQ = name + '=';
|
|
2114
|
+
const ca = document.cookie.split(';');
|
|
2115
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2116
|
+
let c = ca[i];
|
|
2117
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2118
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2119
|
+
}
|
|
2120
|
+
return null;
|
|
2121
|
+
}
|
|
2122
|
+
function removeVariants() {
|
|
2123
|
+
variants?.forEach(function (_, index) {
|
|
2124
|
+
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2125
|
+
});
|
|
2126
|
+
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2127
|
+
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2128
|
+
}
|
|
2129
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2130
|
+
if (locale) {
|
|
2131
|
+
attributes.locale = locale;
|
|
2132
|
+
}
|
|
2133
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2134
|
+
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2135
|
+
});
|
|
2136
|
+
const isDebug = location.href.includes('builder.debug=true');
|
|
2137
|
+
if (isDebug) {
|
|
2138
|
+
console.debug('PersonalizationContainer', {
|
|
2139
|
+
attributes,
|
|
2140
|
+
variants,
|
|
2141
|
+
winningVariantIndex
|
|
2142
|
+
});
|
|
2143
|
+
}
|
|
2144
|
+
if (winningVariantIndex !== -1) {
|
|
2145
|
+
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2146
|
+
if (winningVariant) {
|
|
2147
|
+
const parentNode = winningVariant.parentNode;
|
|
2148
|
+
if (parentNode) {
|
|
2149
|
+
const newParent = parentNode.cloneNode(false);
|
|
2150
|
+
newParent.appendChild(winningVariant.content.firstChild);
|
|
2151
|
+
newParent.appendChild(winningVariant.content.lastChild);
|
|
2152
|
+
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2153
|
+
}
|
|
2154
|
+
if (isDebug) {
|
|
2155
|
+
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
} else if (variants && variants.length > 0) {
|
|
2159
|
+
removeVariants();
|
|
2160
|
+
}
|
|
2161
|
+
}`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2162
|
+
function isString(val) {
|
|
2163
|
+
return typeof val === 'string';
|
|
2164
|
+
}
|
|
2165
|
+
function isNumber(val) {
|
|
2166
|
+
return typeof val === 'number';
|
|
2167
|
+
}
|
|
2168
|
+
function objectMatchesQuery(userattr, query) {
|
|
2169
|
+
const result = (() => {
|
|
2170
|
+
const property = query.property;
|
|
2171
|
+
const operator = query.operator;
|
|
2172
|
+
let testValue = query.value;
|
|
2173
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2174
|
+
testValue = query.value.slice(0, -1);
|
|
2175
|
+
}
|
|
2176
|
+
if (!(property && operator)) {
|
|
2177
|
+
return true;
|
|
2178
|
+
}
|
|
2179
|
+
if (Array.isArray(testValue)) {
|
|
2180
|
+
if (operator === 'isNot') {
|
|
2181
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2182
|
+
property,
|
|
2183
|
+
operator,
|
|
2184
|
+
value: val
|
|
2185
|
+
}));
|
|
2186
|
+
}
|
|
2187
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2188
|
+
property,
|
|
2189
|
+
operator,
|
|
2190
|
+
value: val
|
|
2191
|
+
}));
|
|
2192
|
+
}
|
|
2193
|
+
const value = userattr[property];
|
|
2194
|
+
if (Array.isArray(value)) {
|
|
2195
|
+
return value.includes(testValue);
|
|
2196
|
+
}
|
|
2197
|
+
switch (operator) {
|
|
2198
|
+
case 'is':
|
|
2199
|
+
return value === testValue;
|
|
2200
|
+
case 'isNot':
|
|
2201
|
+
return value !== testValue;
|
|
2202
|
+
case 'contains':
|
|
2203
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2204
|
+
case 'startsWith':
|
|
2205
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
2206
|
+
case 'endsWith':
|
|
2207
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
2208
|
+
case 'greaterThan':
|
|
2209
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2210
|
+
case 'lessThan':
|
|
2211
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2212
|
+
case 'greaterThanOrEqualTo':
|
|
2213
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2214
|
+
case 'lessThanOrEqualTo':
|
|
2215
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2216
|
+
default:
|
|
2217
|
+
return false;
|
|
2218
|
+
}
|
|
2219
|
+
})();
|
|
2220
|
+
return result;
|
|
2221
|
+
}
|
|
2222
|
+
const item = {
|
|
2223
|
+
query,
|
|
2224
|
+
startDate,
|
|
2225
|
+
endDate
|
|
2226
|
+
};
|
|
2227
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2228
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
2229
|
+
return false;
|
|
2230
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2231
|
+
return false;
|
|
2232
|
+
}
|
|
2233
|
+
if (!item.query || !item.query.length) {
|
|
2234
|
+
return true;
|
|
2235
|
+
}
|
|
2236
|
+
return item.query.every(filter => {
|
|
2237
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
2238
|
+
});
|
|
2239
|
+
}`;
|
|
2240
|
+
function dn(e, t) {
|
|
2241
|
+
return !(!(e && e.length > 0) || !t || $());
|
|
2242
|
+
}
|
|
2243
|
+
function mn({
|
|
2244
|
+
variants: e,
|
|
2245
|
+
previewingIndex: t,
|
|
2246
|
+
isHydrated: n,
|
|
2247
|
+
filteredVariants: i,
|
|
2248
|
+
fallbackBlocks: o
|
|
2249
|
+
}) {
|
|
2250
|
+
var r;
|
|
2251
|
+
const a = {
|
|
2252
|
+
blocks: o != null ? o : [],
|
|
2253
|
+
path: "this.children"
|
|
2254
|
+
};
|
|
2255
|
+
if (n && W())
|
|
2256
|
+
return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
|
|
2257
|
+
blocks: e[t].blocks,
|
|
2258
|
+
path: `component.options.variants.${t}.blocks`
|
|
2259
|
+
} : a;
|
|
2260
|
+
if ($()) {
|
|
2261
|
+
const l = i == null ? void 0 : i[0];
|
|
2262
|
+
if (l)
|
|
2263
|
+
return {
|
|
2264
|
+
blocks: l.blocks,
|
|
2265
|
+
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2266
|
+
};
|
|
2267
|
+
}
|
|
2268
|
+
return a;
|
|
2269
|
+
}
|
|
2270
|
+
const fn = (e, t, n) => `
|
|
2271
|
+
(function() {
|
|
2272
|
+
${un}
|
|
2273
|
+
${cn}
|
|
2274
|
+
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2275
|
+
})();
|
|
2276
|
+
`;
|
|
2277
|
+
function hn(e) {
|
|
2278
|
+
var b, v, y, x, T, P, I;
|
|
2279
|
+
const t = F(null), [n, i] = E(
|
|
2280
|
+
() => de.getUserAttributes()
|
|
2281
|
+
), [o, a] = E(
|
|
2282
|
+
() => {
|
|
2283
|
+
var S, m, p;
|
|
2284
|
+
return fn(
|
|
2285
|
+
e.variants,
|
|
2286
|
+
((S = e.builderBlock) == null ? void 0 : S.id) || "none",
|
|
2287
|
+
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2288
|
+
);
|
|
2289
|
+
}
|
|
2290
|
+
), [r, l] = E(() => []), [u, c] = E(
|
|
2291
|
+
() => {
|
|
2292
|
+
var S;
|
|
2293
|
+
return dn(
|
|
2294
|
+
e.variants,
|
|
2295
|
+
_((S = e.builderContext) == null ? void 0 : S.canTrack)
|
|
2296
|
+
);
|
|
2297
|
+
}
|
|
2298
|
+
), [h, g] = E(() => !1);
|
|
2299
|
+
function f() {
|
|
2300
|
+
return (e.variants || []).filter((S) => {
|
|
2301
|
+
var m, p, C, w;
|
|
2302
|
+
return sn(
|
|
2303
|
+
{
|
|
2304
|
+
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2305
|
+
locale: (w = (C = e.builderContext) == null ? void 0 : C.rootState) == null ? void 0 : w.locale
|
|
2306
|
+
} : {},
|
|
2307
|
+
...n
|
|
2308
|
+
},
|
|
2309
|
+
S.query,
|
|
2310
|
+
S.startDate,
|
|
2311
|
+
S.endDate
|
|
2312
|
+
);
|
|
2313
|
+
});
|
|
2314
|
+
}
|
|
2315
|
+
function k() {
|
|
2316
|
+
var S;
|
|
2317
|
+
return mn({
|
|
2318
|
+
variants: e.variants,
|
|
2319
|
+
fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
|
|
2320
|
+
isHydrated: h,
|
|
2321
|
+
filteredVariants: f(),
|
|
2322
|
+
previewingIndex: e.previewingIndex
|
|
2323
|
+
});
|
|
2324
|
+
}
|
|
2325
|
+
function d() {
|
|
2326
|
+
return (e.variants || []).map(
|
|
2327
|
+
(S, m) => {
|
|
2328
|
+
var p;
|
|
2329
|
+
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2330
|
+
}
|
|
2331
|
+
).join("");
|
|
2332
|
+
}
|
|
2333
|
+
return N(() => {
|
|
2334
|
+
var m;
|
|
2335
|
+
g(!0);
|
|
2336
|
+
const S = de.subscribeOnUserAttributesChange(
|
|
2337
|
+
(p) => {
|
|
2338
|
+
i(p);
|
|
2339
|
+
}
|
|
2340
|
+
);
|
|
2341
|
+
if (!(W() || Y())) {
|
|
2342
|
+
const p = f()[0];
|
|
2343
|
+
t.current && (t.current.dispatchEvent(
|
|
2344
|
+
new CustomEvent("builder.variantLoaded", {
|
|
2345
|
+
detail: {
|
|
2346
|
+
variant: p || "default",
|
|
2347
|
+
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2348
|
+
},
|
|
2349
|
+
bubbles: !0
|
|
2350
|
+
})
|
|
2351
|
+
), new IntersectionObserver((w) => {
|
|
2352
|
+
w.forEach((B) => {
|
|
2353
|
+
var A;
|
|
2354
|
+
B.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2355
|
+
new CustomEvent("builder.variantDisplayed", {
|
|
2356
|
+
detail: {
|
|
2357
|
+
variant: p || "default",
|
|
2358
|
+
content: (A = e.builderContext) == null ? void 0 : A.content
|
|
2359
|
+
},
|
|
2360
|
+
bubbles: !0
|
|
2361
|
+
})
|
|
2362
|
+
);
|
|
2363
|
+
});
|
|
2364
|
+
}).observe(t.current));
|
|
2365
|
+
}
|
|
2366
|
+
r.push(S);
|
|
2367
|
+
}, []), N(() => () => {
|
|
2368
|
+
r.forEach((S) => S());
|
|
2369
|
+
}, []), /* @__PURE__ */ V(
|
|
2370
|
+
"div",
|
|
2371
|
+
{
|
|
2372
|
+
ref: t,
|
|
2373
|
+
...e.attributes,
|
|
2374
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2375
|
+
children: [
|
|
2376
|
+
u ? /* @__PURE__ */ V(R, { children: [
|
|
2377
|
+
(v = e.variants) == null ? void 0 : v.map((S, m) => {
|
|
2378
|
+
var p, C;
|
|
2379
|
+
return /* @__PURE__ */ s(
|
|
2380
|
+
"template",
|
|
2381
|
+
{
|
|
2382
|
+
"data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
|
|
2383
|
+
children: /* @__PURE__ */ s(
|
|
2384
|
+
D,
|
|
2385
|
+
{
|
|
2386
|
+
blocks: S.blocks,
|
|
2387
|
+
parent: (C = e.builderBlock) == null ? void 0 : C.id,
|
|
2388
|
+
path: `component.options.variants.${m}.blocks`
|
|
2389
|
+
}
|
|
2390
|
+
)
|
|
2391
|
+
},
|
|
2392
|
+
m
|
|
2393
|
+
);
|
|
2394
|
+
}),
|
|
2395
|
+
/* @__PURE__ */ s(
|
|
2396
|
+
H,
|
|
2397
|
+
{
|
|
2398
|
+
nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
|
|
2399
|
+
styles: d(),
|
|
2400
|
+
id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2401
|
+
}
|
|
2402
|
+
),
|
|
2403
|
+
/* @__PURE__ */ s(
|
|
2404
|
+
G,
|
|
2405
|
+
{
|
|
2406
|
+
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2407
|
+
scriptStr: o,
|
|
2408
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2409
|
+
}
|
|
2410
|
+
)
|
|
2411
|
+
] }) : null,
|
|
2412
|
+
/* @__PURE__ */ s(
|
|
2413
|
+
D,
|
|
2414
|
+
{
|
|
2415
|
+
blocks: k().blocks,
|
|
2416
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2417
|
+
path: k().path
|
|
2418
|
+
}
|
|
2419
|
+
)
|
|
2420
|
+
]
|
|
2421
|
+
}
|
|
2422
|
+
);
|
|
2423
|
+
}
|
|
2424
|
+
const gn = {
|
|
2006
2425
|
name: "Core:Section",
|
|
2007
2426
|
static: !0,
|
|
2008
2427
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2041,7 +2460,7 @@ const en = {
|
|
|
2041
2460
|
}
|
|
2042
2461
|
}
|
|
2043
2462
|
}]
|
|
2044
|
-
},
|
|
2463
|
+
}, bn = {
|
|
2045
2464
|
name: "Slot",
|
|
2046
2465
|
isRSC: !0,
|
|
2047
2466
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2059,9 +2478,9 @@ const en = {
|
|
|
2059
2478
|
builderComponents: !0
|
|
2060
2479
|
}
|
|
2061
2480
|
};
|
|
2062
|
-
function
|
|
2481
|
+
function pn(e) {
|
|
2063
2482
|
var t, n, i;
|
|
2064
|
-
return /* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ s(
|
|
2065
2484
|
"div",
|
|
2066
2485
|
{
|
|
2067
2486
|
style: {
|
|
@@ -2070,8 +2489,8 @@ function sn(e) {
|
|
|
2070
2489
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2071
2490
|
"builder-slot": e.name
|
|
2072
2491
|
},
|
|
2073
|
-
children: /* @__PURE__ */
|
|
2074
|
-
|
|
2492
|
+
children: /* @__PURE__ */ s(
|
|
2493
|
+
D,
|
|
2075
2494
|
{
|
|
2076
2495
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2077
2496
|
path: `symbol.data.${e.name}`,
|
|
@@ -2083,7 +2502,7 @@ function sn(e) {
|
|
|
2083
2502
|
}
|
|
2084
2503
|
);
|
|
2085
2504
|
}
|
|
2086
|
-
const
|
|
2505
|
+
const yn = {
|
|
2087
2506
|
name: "Symbol",
|
|
2088
2507
|
noWrap: !0,
|
|
2089
2508
|
static: !0,
|
|
@@ -2122,7 +2541,7 @@ const cn = {
|
|
|
2122
2541
|
builderComponents: !0,
|
|
2123
2542
|
builderLinkComponent: !0
|
|
2124
2543
|
}
|
|
2125
|
-
},
|
|
2544
|
+
}, ie = {
|
|
2126
2545
|
"@type": "@builder.io/sdk:Element",
|
|
2127
2546
|
responsiveStyles: {
|
|
2128
2547
|
large: {
|
|
@@ -2144,7 +2563,7 @@ const cn = {
|
|
|
2144
2563
|
text: "New tab"
|
|
2145
2564
|
}
|
|
2146
2565
|
}
|
|
2147
|
-
},
|
|
2566
|
+
}, oe = {
|
|
2148
2567
|
"@type": "@builder.io/sdk:Element",
|
|
2149
2568
|
responsiveStyles: {
|
|
2150
2569
|
large: {
|
|
@@ -2160,7 +2579,7 @@ const cn = {
|
|
|
2160
2579
|
text: "New tab content "
|
|
2161
2580
|
}
|
|
2162
2581
|
}
|
|
2163
|
-
},
|
|
2582
|
+
}, vn = {
|
|
2164
2583
|
name: "Builder: Tabs",
|
|
2165
2584
|
inputs: [{
|
|
2166
2585
|
name: "tabs",
|
|
@@ -2170,16 +2589,16 @@ const cn = {
|
|
|
2170
2589
|
name: "label",
|
|
2171
2590
|
type: "uiBlocks",
|
|
2172
2591
|
hideFromUI: !0,
|
|
2173
|
-
defaultValue: [
|
|
2592
|
+
defaultValue: [ie]
|
|
2174
2593
|
}, {
|
|
2175
2594
|
name: "content",
|
|
2176
2595
|
type: "uiBlocks",
|
|
2177
2596
|
hideFromUI: !0,
|
|
2178
|
-
defaultValue: [
|
|
2597
|
+
defaultValue: [oe]
|
|
2179
2598
|
}],
|
|
2180
2599
|
defaultValue: [{
|
|
2181
2600
|
label: [{
|
|
2182
|
-
...
|
|
2601
|
+
...ie,
|
|
2183
2602
|
component: {
|
|
2184
2603
|
name: "Text",
|
|
2185
2604
|
options: {
|
|
@@ -2188,7 +2607,7 @@ const cn = {
|
|
|
2188
2607
|
}
|
|
2189
2608
|
}],
|
|
2190
2609
|
content: [{
|
|
2191
|
-
...
|
|
2610
|
+
...oe,
|
|
2192
2611
|
component: {
|
|
2193
2612
|
name: "Text",
|
|
2194
2613
|
options: {
|
|
@@ -2198,7 +2617,7 @@ const cn = {
|
|
|
2198
2617
|
}]
|
|
2199
2618
|
}, {
|
|
2200
2619
|
label: [{
|
|
2201
|
-
...
|
|
2620
|
+
...ie,
|
|
2202
2621
|
component: {
|
|
2203
2622
|
name: "Text",
|
|
2204
2623
|
options: {
|
|
@@ -2207,7 +2626,7 @@ const cn = {
|
|
|
2207
2626
|
}
|
|
2208
2627
|
}],
|
|
2209
2628
|
content: [{
|
|
2210
|
-
...
|
|
2629
|
+
...oe,
|
|
2211
2630
|
component: {
|
|
2212
2631
|
name: "Text",
|
|
2213
2632
|
options: {
|
|
@@ -2264,7 +2683,7 @@ const cn = {
|
|
|
2264
2683
|
builderLinkComponent: !0
|
|
2265
2684
|
}
|
|
2266
2685
|
};
|
|
2267
|
-
function
|
|
2686
|
+
function xn(e) {
|
|
2268
2687
|
var a;
|
|
2269
2688
|
const [t, n] = E(
|
|
2270
2689
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2275,8 +2694,8 @@ function un(e) {
|
|
|
2275
2694
|
function o(r) {
|
|
2276
2695
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2277
2696
|
}
|
|
2278
|
-
return /* @__PURE__ */
|
|
2279
|
-
/* @__PURE__ */
|
|
2697
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
2698
|
+
/* @__PURE__ */ s(
|
|
2280
2699
|
"div",
|
|
2281
2700
|
{
|
|
2282
2701
|
className: "builder-tabs-wrap",
|
|
@@ -2286,19 +2705,19 @@ function un(e) {
|
|
|
2286
2705
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2287
2706
|
overflow: "auto"
|
|
2288
2707
|
},
|
|
2289
|
-
children: (a = e.tabs) == null ? void 0 : a.map((r,
|
|
2708
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
|
|
2290
2709
|
"span",
|
|
2291
2710
|
{
|
|
2292
|
-
className: `builder-tab-wrap ${t ===
|
|
2711
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2293
2712
|
style: {
|
|
2294
|
-
...t ===
|
|
2713
|
+
...t === l ? e.activeTabStyle : {}
|
|
2295
2714
|
},
|
|
2296
|
-
onClick: (
|
|
2297
|
-
children: /* @__PURE__ */
|
|
2298
|
-
|
|
2715
|
+
onClick: (u) => o(l),
|
|
2716
|
+
children: /* @__PURE__ */ s(
|
|
2717
|
+
D,
|
|
2299
2718
|
{
|
|
2300
2719
|
parent: e.builderBlock.id,
|
|
2301
|
-
path: `tabs.${
|
|
2720
|
+
path: `tabs.${l}.label`,
|
|
2302
2721
|
blocks: r.label,
|
|
2303
2722
|
context: e.builderContext,
|
|
2304
2723
|
registeredComponents: e.builderComponents,
|
|
@@ -2306,12 +2725,12 @@ function un(e) {
|
|
|
2306
2725
|
}
|
|
2307
2726
|
)
|
|
2308
2727
|
},
|
|
2309
|
-
|
|
2728
|
+
l
|
|
2310
2729
|
))
|
|
2311
2730
|
}
|
|
2312
2731
|
),
|
|
2313
|
-
i(t) ? /* @__PURE__ */
|
|
2314
|
-
|
|
2732
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2733
|
+
D,
|
|
2315
2734
|
{
|
|
2316
2735
|
parent: e.builderBlock.id,
|
|
2317
2736
|
path: `tabs.${t}.content`,
|
|
@@ -2323,7 +2742,7 @@ function un(e) {
|
|
|
2323
2742
|
) }) : null
|
|
2324
2743
|
] });
|
|
2325
2744
|
}
|
|
2326
|
-
const
|
|
2745
|
+
const Sn = {
|
|
2327
2746
|
shouldReceiveBuilderProps: {
|
|
2328
2747
|
builderBlock: !1,
|
|
2329
2748
|
builderContext: !0
|
|
@@ -2346,9 +2765,9 @@ const mn = {
|
|
|
2346
2765
|
textAlign: "center"
|
|
2347
2766
|
}
|
|
2348
2767
|
};
|
|
2349
|
-
function
|
|
2768
|
+
function kn(e) {
|
|
2350
2769
|
var t;
|
|
2351
|
-
return /* @__PURE__ */
|
|
2770
|
+
return /* @__PURE__ */ s(
|
|
2352
2771
|
"div",
|
|
2353
2772
|
{
|
|
2354
2773
|
className: "builder-text",
|
|
@@ -2359,7 +2778,7 @@ function fn(e) {
|
|
|
2359
2778
|
}
|
|
2360
2779
|
);
|
|
2361
2780
|
}
|
|
2362
|
-
const
|
|
2781
|
+
const Cn = {
|
|
2363
2782
|
name: "Custom Code",
|
|
2364
2783
|
static: !0,
|
|
2365
2784
|
requiredPermissions: ["editCode"],
|
|
@@ -2382,15 +2801,15 @@ const hn = {
|
|
|
2382
2801
|
advanced: !0
|
|
2383
2802
|
}]
|
|
2384
2803
|
};
|
|
2385
|
-
function
|
|
2386
|
-
const t =
|
|
2387
|
-
return
|
|
2388
|
-
var
|
|
2389
|
-
if (!((
|
|
2804
|
+
function Tn(e) {
|
|
2805
|
+
const t = F(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2806
|
+
return N(() => {
|
|
2807
|
+
var l;
|
|
2808
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2390
2809
|
return;
|
|
2391
2810
|
const r = t.current.getElementsByTagName("script");
|
|
2392
|
-
for (let
|
|
2393
|
-
const c = r[
|
|
2811
|
+
for (let u = 0; u < r.length; u++) {
|
|
2812
|
+
const c = r[u];
|
|
2394
2813
|
if (c.src) {
|
|
2395
2814
|
if (n.includes(c.src))
|
|
2396
2815
|
continue;
|
|
@@ -2411,7 +2830,7 @@ function gn(e) {
|
|
|
2411
2830
|
}
|
|
2412
2831
|
}
|
|
2413
2832
|
}
|
|
2414
|
-
}, []), /* @__PURE__ */
|
|
2833
|
+
}, []), /* @__PURE__ */ s(
|
|
2415
2834
|
"div",
|
|
2416
2835
|
{
|
|
2417
2836
|
ref: t,
|
|
@@ -2420,7 +2839,7 @@ function gn(e) {
|
|
|
2420
2839
|
}
|
|
2421
2840
|
);
|
|
2422
2841
|
}
|
|
2423
|
-
const
|
|
2842
|
+
const wn = {
|
|
2424
2843
|
name: "Embed",
|
|
2425
2844
|
static: !0,
|
|
2426
2845
|
inputs: [{
|
|
@@ -2435,10 +2854,10 @@ const bn = {
|
|
|
2435
2854
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2436
2855
|
hideFromUI: !0
|
|
2437
2856
|
}]
|
|
2438
|
-
},
|
|
2439
|
-
function
|
|
2440
|
-
const t =
|
|
2441
|
-
function
|
|
2857
|
+
}, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
|
|
2858
|
+
function Rn(e) {
|
|
2859
|
+
const t = F(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, l] = E(() => !1);
|
|
2860
|
+
function u() {
|
|
2442
2861
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2443
2862
|
return;
|
|
2444
2863
|
const c = t.current.getElementsByTagName("script");
|
|
@@ -2446,19 +2865,19 @@ function xn(e) {
|
|
|
2446
2865
|
const g = c[h];
|
|
2447
2866
|
if (g.src && !n.includes(g.src)) {
|
|
2448
2867
|
n.push(g.src);
|
|
2449
|
-
const
|
|
2450
|
-
|
|
2451
|
-
} else if (
|
|
2868
|
+
const f = document.createElement("script");
|
|
2869
|
+
f.async = !0, f.src = g.src, document.head.appendChild(f);
|
|
2870
|
+
} else if (En(g) && !o.includes(g.innerText))
|
|
2452
2871
|
try {
|
|
2453
2872
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2454
|
-
} catch (
|
|
2455
|
-
console.warn("`Embed`: Error running script:",
|
|
2873
|
+
} catch (f) {
|
|
2874
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2456
2875
|
}
|
|
2457
2876
|
}
|
|
2458
2877
|
}
|
|
2459
|
-
return
|
|
2460
|
-
t.current && !r && (
|
|
2461
|
-
}, [t.current, r]), /* @__PURE__ */
|
|
2878
|
+
return N(() => {
|
|
2879
|
+
t.current && !r && (l(!0), u());
|
|
2880
|
+
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2462
2881
|
"div",
|
|
2463
2882
|
{
|
|
2464
2883
|
className: "builder-embed",
|
|
@@ -2467,7 +2886,7 @@ function xn(e) {
|
|
|
2467
2886
|
}
|
|
2468
2887
|
);
|
|
2469
2888
|
}
|
|
2470
|
-
const
|
|
2889
|
+
const Pn = {
|
|
2471
2890
|
name: "Form:Form",
|
|
2472
2891
|
// editableTags: ['builder-form-error']
|
|
2473
2892
|
defaults: {
|
|
@@ -2704,119 +3123,118 @@ const vn = {
|
|
|
2704
3123
|
builderComponents: !0,
|
|
2705
3124
|
builderLinkComponent: !0
|
|
2706
3125
|
}
|
|
2707
|
-
},
|
|
3126
|
+
}, Vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
|
|
2708
3127
|
const e = process.env.NODE_ENV || "production";
|
|
2709
|
-
return
|
|
3128
|
+
return Vn.includes(e) ? e : "production";
|
|
2710
3129
|
};
|
|
2711
|
-
function
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
var v, x;
|
|
3130
|
+
function Nn(e) {
|
|
3131
|
+
const t = F(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, l] = E(() => "");
|
|
3132
|
+
function u(g) {
|
|
3133
|
+
var k, d;
|
|
2716
3134
|
const f = {
|
|
2717
3135
|
...e.builderContext.rootState,
|
|
2718
|
-
...
|
|
3136
|
+
...g
|
|
2719
3137
|
};
|
|
2720
|
-
e.builderContext.rootSetState ? (
|
|
3138
|
+
e.builderContext.rootSetState ? (d = (k = e.builderContext).rootSetState) == null || d.call(k, f) : e.builderContext.rootState = f;
|
|
2721
3139
|
}
|
|
2722
3140
|
function c() {
|
|
2723
3141
|
return W() && e.previewState || n;
|
|
2724
3142
|
}
|
|
2725
|
-
function h(
|
|
2726
|
-
var
|
|
3143
|
+
function h(g) {
|
|
3144
|
+
var k;
|
|
2727
3145
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2728
3146
|
if (e.sendSubmissionsTo === "zapier")
|
|
2729
|
-
|
|
3147
|
+
g.preventDefault();
|
|
2730
3148
|
else if (f) {
|
|
2731
3149
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2732
|
-
|
|
3150
|
+
g.preventDefault();
|
|
2733
3151
|
return;
|
|
2734
3152
|
}
|
|
2735
|
-
|
|
2736
|
-
const
|
|
2737
|
-
let
|
|
2738
|
-
const
|
|
2739
|
-
let
|
|
2740
|
-
const
|
|
2741
|
-
if (
|
|
2742
|
-
if (
|
|
2743
|
-
if (
|
|
2744
|
-
return
|
|
2745
|
-
key:
|
|
2746
|
-
value:
|
|
3153
|
+
g.preventDefault();
|
|
3154
|
+
const d = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3155
|
+
let v;
|
|
3156
|
+
const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3157
|
+
let p;
|
|
3158
|
+
const C = m.name;
|
|
3159
|
+
if (m instanceof HTMLInputElement)
|
|
3160
|
+
if (m.type === "radio") {
|
|
3161
|
+
if (m.checked)
|
|
3162
|
+
return p = m.name, {
|
|
3163
|
+
key: C,
|
|
3164
|
+
value: p
|
|
2747
3165
|
};
|
|
2748
|
-
} else if (
|
|
2749
|
-
|
|
2750
|
-
else if (
|
|
2751
|
-
const
|
|
2752
|
-
isNaN(
|
|
3166
|
+
} else if (m.type === "checkbox")
|
|
3167
|
+
p = m.checked;
|
|
3168
|
+
else if (m.type === "number" || m.type === "range") {
|
|
3169
|
+
const w = m.valueAsNumber;
|
|
3170
|
+
isNaN(w) || (p = w);
|
|
2753
3171
|
} else
|
|
2754
|
-
|
|
3172
|
+
m.type === "file" ? p = m.files : p = m.value;
|
|
2755
3173
|
else
|
|
2756
|
-
|
|
3174
|
+
p = m.value;
|
|
2757
3175
|
return {
|
|
2758
|
-
key:
|
|
2759
|
-
value:
|
|
3176
|
+
key: C,
|
|
3177
|
+
value: p
|
|
2760
3178
|
};
|
|
2761
3179
|
});
|
|
2762
|
-
let
|
|
2763
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2764
|
-
(
|
|
2765
|
-
}),
|
|
2766
|
-
|
|
3180
|
+
let T = e.contentType;
|
|
3181
|
+
if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(x).forEach(({ value: m }) => {
|
|
3182
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
|
|
3183
|
+
}), T !== "application/json")
|
|
3184
|
+
v = y;
|
|
2767
3185
|
else {
|
|
2768
|
-
const
|
|
2769
|
-
Array.from(
|
|
2770
|
-
|
|
2771
|
-
}),
|
|
3186
|
+
const m = {};
|
|
3187
|
+
Array.from(x).forEach(({ value: p, key: C }) => {
|
|
3188
|
+
We(m, C, p);
|
|
3189
|
+
}), v = JSON.stringify(m);
|
|
2772
3190
|
}
|
|
2773
|
-
|
|
2774
|
-
const
|
|
2775
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3191
|
+
T && T !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
|
|
3192
|
+
const P = new CustomEvent("presubmit", { detail: { body: v } });
|
|
3193
|
+
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
2776
3194
|
return;
|
|
2777
3195
|
i("sending");
|
|
2778
|
-
const
|
|
3196
|
+
const I = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2779
3197
|
e.sendSubmissionsToEmail || ""
|
|
2780
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2781
|
-
Ie(
|
|
2782
|
-
async (
|
|
2783
|
-
let
|
|
2784
|
-
const
|
|
2785
|
-
if (
|
|
2786
|
-
let
|
|
2787
|
-
|
|
3198
|
+
)}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? I : e.action;
|
|
3199
|
+
Ie(S), fetch(S, { body: v, headers: b, method: e.method || "post" }).then(
|
|
3200
|
+
async (m) => {
|
|
3201
|
+
let p;
|
|
3202
|
+
const C = m.headers.get("content-type");
|
|
3203
|
+
if (C && C.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3204
|
+
let w = Be(p, e.errorMessagePath);
|
|
3205
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), l(w), u({ formErrorMessage: w }));
|
|
2788
3206
|
}
|
|
2789
|
-
if (a(
|
|
2790
|
-
const
|
|
2791
|
-
detail: { res:
|
|
3207
|
+
if (a(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3208
|
+
const w = new CustomEvent("submit:success", {
|
|
3209
|
+
detail: { res: m, body: p }
|
|
2792
3210
|
});
|
|
2793
3211
|
if (t.current) {
|
|
2794
|
-
if (t.current.dispatchEvent(
|
|
3212
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2795
3213
|
return;
|
|
2796
3214
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2797
3215
|
}
|
|
2798
3216
|
if (e.successUrl)
|
|
2799
3217
|
if (t.current) {
|
|
2800
|
-
const
|
|
3218
|
+
const B = new CustomEvent("route", {
|
|
2801
3219
|
detail: { url: e.successUrl }
|
|
2802
3220
|
});
|
|
2803
|
-
t.current.dispatchEvent(
|
|
3221
|
+
t.current.dispatchEvent(B), B.defaultPrevented || (location.href = e.successUrl);
|
|
2804
3222
|
} else
|
|
2805
3223
|
location.href = e.successUrl;
|
|
2806
3224
|
}
|
|
2807
3225
|
},
|
|
2808
|
-
(
|
|
2809
|
-
const
|
|
2810
|
-
detail: { error:
|
|
3226
|
+
(m) => {
|
|
3227
|
+
const p = new CustomEvent("submit:error", {
|
|
3228
|
+
detail: { error: m }
|
|
2811
3229
|
});
|
|
2812
|
-
t.current && (t.current.dispatchEvent(
|
|
3230
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(m), i("error"));
|
|
2813
3231
|
}
|
|
2814
3232
|
);
|
|
2815
3233
|
}
|
|
2816
3234
|
}
|
|
2817
|
-
return /* @__PURE__ */
|
|
3235
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
2818
3236
|
" ",
|
|
2819
|
-
/* @__PURE__ */
|
|
3237
|
+
/* @__PURE__ */ V(
|
|
2820
3238
|
"form",
|
|
2821
3239
|
{
|
|
2822
3240
|
validate: e.validate,
|
|
@@ -2824,38 +3242,29 @@ function Cn(e) {
|
|
|
2824
3242
|
action: !e.sendWithJs && e.action,
|
|
2825
3243
|
method: e.method,
|
|
2826
3244
|
name: e.name,
|
|
2827
|
-
onSubmit: (
|
|
3245
|
+
onSubmit: (g) => h(g),
|
|
2828
3246
|
...e.attributes,
|
|
2829
3247
|
children: [
|
|
2830
|
-
e.
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
block: y,
|
|
2834
|
-
context: e.builderContext,
|
|
2835
|
-
registeredComponents: e.builderComponents,
|
|
2836
|
-
linkComponent: e.builderLinkComponent
|
|
2837
|
-
},
|
|
2838
|
-
`form-block-${f}`
|
|
2839
|
-
)) }) : null,
|
|
2840
|
-
c() === "error" ? /* @__PURE__ */ l(
|
|
2841
|
-
F,
|
|
3248
|
+
e.children,
|
|
3249
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
3250
|
+
D,
|
|
2842
3251
|
{
|
|
2843
3252
|
path: "errorMessage",
|
|
2844
3253
|
blocks: e.errorMessage,
|
|
2845
3254
|
context: e.builderContext
|
|
2846
3255
|
}
|
|
2847
3256
|
) : null,
|
|
2848
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2849
|
-
|
|
3257
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
3258
|
+
D,
|
|
2850
3259
|
{
|
|
2851
3260
|
path: "sendingMessage",
|
|
2852
3261
|
blocks: e.sendingMessage,
|
|
2853
3262
|
context: e.builderContext
|
|
2854
3263
|
}
|
|
2855
3264
|
) : null,
|
|
2856
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2857
|
-
c() === "success" ? /* @__PURE__ */
|
|
2858
|
-
|
|
3265
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(o, null, 2) }) : null,
|
|
3266
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
3267
|
+
D,
|
|
2859
3268
|
{
|
|
2860
3269
|
path: "successMessage",
|
|
2861
3270
|
blocks: e.successMessage,
|
|
@@ -2866,11 +3275,11 @@ function Cn(e) {
|
|
|
2866
3275
|
}
|
|
2867
3276
|
),
|
|
2868
3277
|
" ",
|
|
2869
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
|
|
2870
3279
|
" "
|
|
2871
3280
|
] });
|
|
2872
3281
|
}
|
|
2873
|
-
const
|
|
3282
|
+
const An = {
|
|
2874
3283
|
name: "Form:Input",
|
|
2875
3284
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2876
3285
|
inputs: [
|
|
@@ -2922,8 +3331,8 @@ const Tn = {
|
|
|
2922
3331
|
borderColor: "#ccc"
|
|
2923
3332
|
}
|
|
2924
3333
|
};
|
|
2925
|
-
function
|
|
2926
|
-
return /* @__PURE__ */
|
|
3334
|
+
function Wn(e) {
|
|
3335
|
+
return /* @__PURE__ */ Pe(
|
|
2927
3336
|
"input",
|
|
2928
3337
|
{
|
|
2929
3338
|
...e.attributes,
|
|
@@ -2937,7 +3346,7 @@ function In(e) {
|
|
|
2937
3346
|
}
|
|
2938
3347
|
);
|
|
2939
3348
|
}
|
|
2940
|
-
const
|
|
3349
|
+
const Dn = {
|
|
2941
3350
|
name: "Form:Select",
|
|
2942
3351
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2943
3352
|
defaultStyles: {
|
|
@@ -2980,9 +3389,9 @@ const wn = {
|
|
|
2980
3389
|
static: !0,
|
|
2981
3390
|
noWrap: !0
|
|
2982
3391
|
};
|
|
2983
|
-
function
|
|
3392
|
+
function $n(e) {
|
|
2984
3393
|
var t;
|
|
2985
|
-
return /* @__PURE__ */
|
|
3394
|
+
return /* @__PURE__ */ Pe(
|
|
2986
3395
|
"select",
|
|
2987
3396
|
{
|
|
2988
3397
|
...e.attributes,
|
|
@@ -2992,10 +3401,10 @@ function En(e) {
|
|
|
2992
3401
|
name: e.name,
|
|
2993
3402
|
required: e.required
|
|
2994
3403
|
},
|
|
2995
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
3404
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2996
3405
|
);
|
|
2997
3406
|
}
|
|
2998
|
-
const
|
|
3407
|
+
const Fn = {
|
|
2999
3408
|
name: "Form:SubmitButton",
|
|
3000
3409
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3001
3410
|
defaultStyles: {
|
|
@@ -3021,10 +3430,10 @@ const Rn = {
|
|
|
3021
3430
|
// TODO: defaultChildren
|
|
3022
3431
|
// canHaveChildren: true,
|
|
3023
3432
|
};
|
|
3024
|
-
function
|
|
3025
|
-
return /* @__PURE__ */
|
|
3433
|
+
function On(e) {
|
|
3434
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3026
3435
|
}
|
|
3027
|
-
const
|
|
3436
|
+
const Ln = {
|
|
3028
3437
|
name: "Form:TextArea",
|
|
3029
3438
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3030
3439
|
inputs: [{
|
|
@@ -3061,8 +3470,8 @@ const Bn = {
|
|
|
3061
3470
|
static: !0,
|
|
3062
3471
|
noWrap: !0
|
|
3063
3472
|
};
|
|
3064
|
-
function
|
|
3065
|
-
return /* @__PURE__ */
|
|
3473
|
+
function Un(e) {
|
|
3474
|
+
return /* @__PURE__ */ s(
|
|
3066
3475
|
"textarea",
|
|
3067
3476
|
{
|
|
3068
3477
|
...e.attributes,
|
|
@@ -3074,7 +3483,7 @@ function Vn(e) {
|
|
|
3074
3483
|
}
|
|
3075
3484
|
);
|
|
3076
3485
|
}
|
|
3077
|
-
const
|
|
3486
|
+
const _n = {
|
|
3078
3487
|
// friendlyName?
|
|
3079
3488
|
name: "Raw:Img",
|
|
3080
3489
|
hideFromInsertMenu: !0,
|
|
@@ -3083,14 +3492,14 @@ const An = {
|
|
|
3083
3492
|
name: "image",
|
|
3084
3493
|
bubble: !0,
|
|
3085
3494
|
type: "file",
|
|
3086
|
-
allowedFileTypes:
|
|
3495
|
+
allowedFileTypes: ue,
|
|
3087
3496
|
required: !0
|
|
3088
3497
|
}],
|
|
3089
3498
|
noWrap: !0,
|
|
3090
3499
|
static: !0
|
|
3091
3500
|
};
|
|
3092
|
-
function
|
|
3093
|
-
return /* @__PURE__ */
|
|
3501
|
+
function qn(e) {
|
|
3502
|
+
return /* @__PURE__ */ s(
|
|
3094
3503
|
"img",
|
|
3095
3504
|
{
|
|
3096
3505
|
style: {
|
|
@@ -3104,7 +3513,7 @@ function Nn(e) {
|
|
|
3104
3513
|
W() && e.imgSrc || "default-key"
|
|
3105
3514
|
);
|
|
3106
3515
|
}
|
|
3107
|
-
const
|
|
3516
|
+
const Hn = {
|
|
3108
3517
|
name: "Video",
|
|
3109
3518
|
canHaveChildren: !0,
|
|
3110
3519
|
defaultStyles: {
|
|
@@ -3115,14 +3524,14 @@ const Wn = {
|
|
|
3115
3524
|
inputs: [{
|
|
3116
3525
|
name: "video",
|
|
3117
3526
|
type: "file",
|
|
3118
|
-
allowedFileTypes:
|
|
3527
|
+
allowedFileTypes: an,
|
|
3119
3528
|
bubble: !0,
|
|
3120
3529
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3121
3530
|
required: !0
|
|
3122
3531
|
}, {
|
|
3123
3532
|
name: "posterImage",
|
|
3124
3533
|
type: "file",
|
|
3125
|
-
allowedFileTypes:
|
|
3534
|
+
allowedFileTypes: ue,
|
|
3126
3535
|
helperText: "Image to show before the video plays"
|
|
3127
3536
|
}, {
|
|
3128
3537
|
name: "autoPlay",
|
|
@@ -3189,8 +3598,8 @@ const Wn = {
|
|
|
3189
3598
|
builderBlock: !0
|
|
3190
3599
|
}
|
|
3191
3600
|
};
|
|
3192
|
-
function
|
|
3193
|
-
var i, o, a, r,
|
|
3601
|
+
function Mn(e) {
|
|
3602
|
+
var i, o, a, r, l, u, c;
|
|
3194
3603
|
function t() {
|
|
3195
3604
|
return {
|
|
3196
3605
|
...e.autoPlay === !0 ? {
|
|
@@ -3215,14 +3624,14 @@ function Fn(e) {
|
|
|
3215
3624
|
...t()
|
|
3216
3625
|
};
|
|
3217
3626
|
}
|
|
3218
|
-
return /* @__PURE__ */
|
|
3627
|
+
return /* @__PURE__ */ V(
|
|
3219
3628
|
"div",
|
|
3220
3629
|
{
|
|
3221
3630
|
style: {
|
|
3222
3631
|
position: "relative"
|
|
3223
3632
|
},
|
|
3224
3633
|
children: [
|
|
3225
|
-
/* @__PURE__ */
|
|
3634
|
+
/* @__PURE__ */ s(
|
|
3226
3635
|
"video",
|
|
3227
3636
|
{
|
|
3228
3637
|
className: "builder-video",
|
|
@@ -3236,7 +3645,6 @@ function Fn(e) {
|
|
|
3236
3645
|
objectPosition: e.position,
|
|
3237
3646
|
// Hack to get object fit to work as expected and
|
|
3238
3647
|
// not have the video overflow
|
|
3239
|
-
zIndex: 2,
|
|
3240
3648
|
borderRadius: "1px",
|
|
3241
3649
|
...e.aspectRatio ? {
|
|
3242
3650
|
position: "absolute"
|
|
@@ -3244,10 +3652,10 @@ function Fn(e) {
|
|
|
3244
3652
|
},
|
|
3245
3653
|
src: e.video || "no-src",
|
|
3246
3654
|
poster: e.posterImage,
|
|
3247
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3655
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3248
3656
|
}
|
|
3249
3657
|
),
|
|
3250
|
-
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */
|
|
3658
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
|
|
3251
3659
|
"div",
|
|
3252
3660
|
{
|
|
3253
3661
|
style: {
|
|
@@ -3258,7 +3666,7 @@ function Fn(e) {
|
|
|
3258
3666
|
}
|
|
3259
3667
|
}
|
|
3260
3668
|
) : null,
|
|
3261
|
-
(
|
|
3669
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3262
3670
|
"div",
|
|
3263
3671
|
{
|
|
3264
3672
|
style: {
|
|
@@ -3269,7 +3677,7 @@ function Fn(e) {
|
|
|
3269
3677
|
children: e.children
|
|
3270
3678
|
}
|
|
3271
3679
|
) : null,
|
|
3272
|
-
(c = (
|
|
3680
|
+
(c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3273
3681
|
"div",
|
|
3274
3682
|
{
|
|
3275
3683
|
style: {
|
|
@@ -3290,64 +3698,67 @@ function Fn(e) {
|
|
|
3290
3698
|
}
|
|
3291
3699
|
);
|
|
3292
3700
|
}
|
|
3293
|
-
const
|
|
3294
|
-
component:
|
|
3295
|
-
...
|
|
3701
|
+
const jn = () => [{
|
|
3702
|
+
component: Tn,
|
|
3703
|
+
...Cn
|
|
3296
3704
|
}, {
|
|
3297
|
-
component:
|
|
3298
|
-
...
|
|
3299
|
-
}, {
|
|
3300
|
-
component: Cn,
|
|
3301
|
-
...vn
|
|
3705
|
+
component: Rn,
|
|
3706
|
+
...wn
|
|
3302
3707
|
}, {
|
|
3303
|
-
component:
|
|
3304
|
-
...
|
|
3708
|
+
component: Nn,
|
|
3709
|
+
...Pn
|
|
3305
3710
|
}, {
|
|
3306
|
-
component:
|
|
3307
|
-
...
|
|
3711
|
+
component: Wn,
|
|
3712
|
+
...An
|
|
3308
3713
|
}, {
|
|
3309
|
-
component:
|
|
3310
|
-
...
|
|
3714
|
+
component: On,
|
|
3715
|
+
...Fn
|
|
3311
3716
|
}, {
|
|
3312
|
-
component:
|
|
3313
|
-
...
|
|
3717
|
+
component: $n,
|
|
3718
|
+
...Dn
|
|
3314
3719
|
}, {
|
|
3315
|
-
component:
|
|
3316
|
-
...
|
|
3720
|
+
component: Un,
|
|
3721
|
+
...Ln
|
|
3317
3722
|
}, {
|
|
3318
|
-
component:
|
|
3319
|
-
...
|
|
3320
|
-
}], ve = () => [{
|
|
3321
|
-
component: tt,
|
|
3322
|
-
...en
|
|
3723
|
+
component: qn,
|
|
3724
|
+
..._n
|
|
3323
3725
|
}, {
|
|
3324
|
-
component:
|
|
3726
|
+
component: Mn,
|
|
3727
|
+
...Hn
|
|
3728
|
+
}], Se = () => [{
|
|
3729
|
+
component: nt,
|
|
3325
3730
|
...tn
|
|
3326
3731
|
}, {
|
|
3327
3732
|
component: Kt,
|
|
3328
3733
|
...nn
|
|
3329
3734
|
}, {
|
|
3330
|
-
component:
|
|
3331
|
-
...
|
|
3735
|
+
component: Jt,
|
|
3736
|
+
...on
|
|
3332
3737
|
}, {
|
|
3333
|
-
component:
|
|
3738
|
+
component: Yt,
|
|
3334
3739
|
...rn
|
|
3335
3740
|
}, {
|
|
3336
|
-
component:
|
|
3337
|
-
...
|
|
3741
|
+
component: Xt,
|
|
3742
|
+
...gn
|
|
3338
3743
|
}, {
|
|
3339
|
-
component:
|
|
3340
|
-
...
|
|
3744
|
+
component: pn,
|
|
3745
|
+
...bn
|
|
3341
3746
|
}, {
|
|
3342
|
-
component:
|
|
3343
|
-
...
|
|
3747
|
+
component: gi,
|
|
3748
|
+
...yn
|
|
3344
3749
|
}, {
|
|
3345
|
-
component:
|
|
3346
|
-
...
|
|
3750
|
+
component: kn,
|
|
3751
|
+
...Sn
|
|
3347
3752
|
}, {
|
|
3348
|
-
component:
|
|
3349
|
-
...
|
|
3350
|
-
},
|
|
3753
|
+
component: hn,
|
|
3754
|
+
...ln
|
|
3755
|
+
}, {
|
|
3756
|
+
component: xn,
|
|
3757
|
+
...vn
|
|
3758
|
+
}, {
|
|
3759
|
+
component: en,
|
|
3760
|
+
...Zt
|
|
3761
|
+
}, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3351
3762
|
function getAndSetVariantId() {
|
|
3352
3763
|
function setCookie(name, value, days) {
|
|
3353
3764
|
let expires = '';
|
|
@@ -3403,7 +3814,7 @@ const $n = () => [{
|
|
|
3403
3814
|
}).join('');
|
|
3404
3815
|
styleEl.innerHTML = newStyleStr;
|
|
3405
3816
|
}
|
|
3406
|
-
}`,
|
|
3817
|
+
}`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3407
3818
|
if (!navigator.cookieEnabled) {
|
|
3408
3819
|
return;
|
|
3409
3820
|
}
|
|
@@ -3437,39 +3848,29 @@ const $n = () => [{
|
|
|
3437
3848
|
thisScriptEl?.remove();
|
|
3438
3849
|
}
|
|
3439
3850
|
return;
|
|
3440
|
-
}`, Me = "builderIoAbTest", je = "builderIoRenderContent",
|
|
3851
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3441
3852
|
...t,
|
|
3442
3853
|
testVariationId: t.id,
|
|
3443
3854
|
id: e == null ? void 0 : e.id
|
|
3444
|
-
})),
|
|
3855
|
+
})), Jn = ({
|
|
3445
3856
|
canTrack: e,
|
|
3446
3857
|
content: t
|
|
3447
|
-
}) => !(!(
|
|
3448
|
-
window.${Me} = ${
|
|
3449
|
-
window.${je} = ${
|
|
3450
|
-
`,
|
|
3858
|
+
}) => !(!(z(t).length > 0) || !e || $()), Gn = (e) => e === "react" || e === "reactNative", ze = Gn(O), Qn = () => `
|
|
3859
|
+
window.${Me} = ${zn}
|
|
3860
|
+
window.${je} = ${Kn}
|
|
3861
|
+
`, Yn = (e, t) => `
|
|
3451
3862
|
window.${Me}(
|
|
3452
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3453
|
-
)`,
|
|
3863
|
+
"${t}",${JSON.stringify(e)}, ${ze}
|
|
3864
|
+
)`, Xn = ({
|
|
3454
3865
|
contentId: e,
|
|
3455
3866
|
variationId: t
|
|
3456
3867
|
}) => `window.${je}(
|
|
3457
|
-
"${t}", "${e}", ${
|
|
3868
|
+
"${t}", "${e}", ${ze}
|
|
3458
3869
|
)`;
|
|
3459
|
-
function
|
|
3460
|
-
return /* @__PURE__ */ l(
|
|
3461
|
-
"script",
|
|
3462
|
-
{
|
|
3463
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3464
|
-
"data-id": e.id,
|
|
3465
|
-
nonce: e.nonce || ""
|
|
3466
|
-
}
|
|
3467
|
-
);
|
|
3468
|
-
}
|
|
3469
|
-
function Se(e) {
|
|
3870
|
+
function ke(e) {
|
|
3470
3871
|
return Math.round(e * 1e3) / 1e3;
|
|
3471
3872
|
}
|
|
3472
|
-
const
|
|
3873
|
+
const Zn = (e, t, n = !0) => {
|
|
3473
3874
|
if (!(e instanceof HTMLElement))
|
|
3474
3875
|
return null;
|
|
3475
3876
|
let i = n ? e : e.parentElement;
|
|
@@ -3480,35 +3881,35 @@ const jn = (e, t, n = !0) => {
|
|
|
3480
3881
|
return i;
|
|
3481
3882
|
} while (i = i.parentElement);
|
|
3482
3883
|
return null;
|
|
3483
|
-
},
|
|
3884
|
+
}, ei = (e) => Zn(e, (t) => {
|
|
3484
3885
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3485
3886
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3486
|
-
}),
|
|
3887
|
+
}), Ce = ({
|
|
3487
3888
|
event: e,
|
|
3488
3889
|
target: t
|
|
3489
3890
|
}) => {
|
|
3490
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3891
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ke(i / n.width), r = ke(o / n.height);
|
|
3491
3892
|
return {
|
|
3492
3893
|
x: a,
|
|
3493
3894
|
y: r
|
|
3494
3895
|
};
|
|
3495
|
-
},
|
|
3496
|
-
const t = e.target, n = t &&
|
|
3896
|
+
}, ti = (e) => {
|
|
3897
|
+
const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3497
3898
|
return {
|
|
3498
3899
|
targetBuilderElement: i || void 0,
|
|
3499
3900
|
metadata: {
|
|
3500
|
-
targetOffset: t ?
|
|
3901
|
+
targetOffset: t ? Ce({
|
|
3501
3902
|
event: e,
|
|
3502
3903
|
target: t
|
|
3503
3904
|
}) : void 0,
|
|
3504
|
-
builderTargetOffset: n ?
|
|
3905
|
+
builderTargetOffset: n ? Ce({
|
|
3505
3906
|
event: e,
|
|
3506
3907
|
target: n
|
|
3507
3908
|
}) : void 0,
|
|
3508
3909
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3509
3910
|
}
|
|
3510
3911
|
};
|
|
3511
|
-
},
|
|
3912
|
+
}, ni = ["svelte", "qwik", "vue"], Te = () => ni.includes(O) && (W() || Y()), ii = (e) => {
|
|
3512
3913
|
var a, r;
|
|
3513
3914
|
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;
|
|
3514
3915
|
let o = "";
|
|
@@ -3520,29 +3921,29 @@ font-display: fallback;
|
|
|
3520
3921
|
font-weight: 400;
|
|
3521
3922
|
}
|
|
3522
3923
|
`.trim()), e.files)
|
|
3523
|
-
for (const
|
|
3524
|
-
if (!(String(Number(
|
|
3924
|
+
for (const l in e.files) {
|
|
3925
|
+
if (!(String(Number(l)) === l))
|
|
3525
3926
|
continue;
|
|
3526
|
-
const c = e.files[
|
|
3927
|
+
const c = e.files[l];
|
|
3527
3928
|
c && c !== i && (o += `
|
|
3528
3929
|
@font-face {
|
|
3529
3930
|
font-family: "${t}";
|
|
3530
3931
|
src: url('${c}') format('woff2');
|
|
3531
3932
|
font-display: fallback;
|
|
3532
|
-
font-weight: ${
|
|
3933
|
+
font-weight: ${l};
|
|
3533
3934
|
}
|
|
3534
3935
|
`.trim());
|
|
3535
3936
|
}
|
|
3536
3937
|
return o;
|
|
3537
|
-
},
|
|
3938
|
+
}, oi = ({
|
|
3538
3939
|
customFonts: e
|
|
3539
3940
|
}) => {
|
|
3540
3941
|
var t;
|
|
3541
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3542
|
-
},
|
|
3942
|
+
return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3943
|
+
}, ai = ({
|
|
3543
3944
|
cssCode: e,
|
|
3544
3945
|
contentId: t
|
|
3545
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3946
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
|
|
3546
3947
|
.builder-button {
|
|
3547
3948
|
all: unset;
|
|
3548
3949
|
}
|
|
@@ -3559,39 +3960,39 @@ font-weight: ${s};
|
|
|
3559
3960
|
text-align: inherit;
|
|
3560
3961
|
font-family: inherit;
|
|
3561
3962
|
}
|
|
3562
|
-
`,
|
|
3563
|
-
function
|
|
3564
|
-
var
|
|
3565
|
-
const t =
|
|
3566
|
-
function n(
|
|
3567
|
-
var
|
|
3568
|
-
const
|
|
3963
|
+
`, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
|
|
3964
|
+
function ci(e) {
|
|
3965
|
+
var x, T, P;
|
|
3966
|
+
const t = F(null);
|
|
3967
|
+
function n(I) {
|
|
3968
|
+
var m, p;
|
|
3969
|
+
const S = {
|
|
3569
3970
|
...e.builderContextSignal.rootState,
|
|
3570
|
-
...
|
|
3971
|
+
...I
|
|
3571
3972
|
};
|
|
3572
|
-
e.builderContextSignal.rootSetState ? (
|
|
3573
|
-
...
|
|
3574
|
-
rootState:
|
|
3973
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, S) : e.setBuilderContextSignal((C) => ({
|
|
3974
|
+
...C,
|
|
3975
|
+
rootState: S
|
|
3575
3976
|
}));
|
|
3576
3977
|
}
|
|
3577
|
-
function i(
|
|
3578
|
-
var
|
|
3579
|
-
const
|
|
3978
|
+
function i(I) {
|
|
3979
|
+
var m, p, C, w, B;
|
|
3980
|
+
const S = {
|
|
3580
3981
|
...e.builderContextSignal.content,
|
|
3581
|
-
...
|
|
3982
|
+
...I,
|
|
3582
3983
|
data: {
|
|
3583
|
-
...(
|
|
3584
|
-
...
|
|
3984
|
+
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
3985
|
+
...I == null ? void 0 : I.data
|
|
3585
3986
|
},
|
|
3586
3987
|
meta: {
|
|
3587
|
-
...(
|
|
3588
|
-
...
|
|
3589
|
-
breakpoints: ((
|
|
3988
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3989
|
+
...I == null ? void 0 : I.meta,
|
|
3990
|
+
breakpoints: ((C = I == null ? void 0 : I.meta) == null ? void 0 : C.breakpoints) || ((B = (w = e.builderContextSignal.content) == null ? void 0 : w.meta) == null ? void 0 : B.breakpoints)
|
|
3590
3991
|
}
|
|
3591
3992
|
};
|
|
3592
|
-
e.setBuilderContextSignal((
|
|
3593
|
-
...
|
|
3594
|
-
content:
|
|
3993
|
+
e.setBuilderContextSignal((A) => ({
|
|
3994
|
+
...A,
|
|
3995
|
+
content: S
|
|
3595
3996
|
}));
|
|
3596
3997
|
}
|
|
3597
3998
|
function o() {
|
|
@@ -3603,59 +4004,59 @@ function ei(e) {
|
|
|
3603
4004
|
const [a, r] = E(
|
|
3604
4005
|
() => e.contentWrapper || "div"
|
|
3605
4006
|
);
|
|
3606
|
-
function
|
|
4007
|
+
function l(I) {
|
|
3607
4008
|
return Ye({
|
|
3608
4009
|
model: e.model,
|
|
3609
4010
|
trustedHosts: e.trustedHosts,
|
|
3610
4011
|
callbacks: {
|
|
3611
|
-
configureSdk: (
|
|
3612
|
-
var
|
|
3613
|
-
const { breakpoints:
|
|
3614
|
-
!
|
|
4012
|
+
configureSdk: (S) => {
|
|
4013
|
+
var C;
|
|
4014
|
+
const { breakpoints: m, contentId: p } = S;
|
|
4015
|
+
!p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
|
|
3615
4016
|
meta: {
|
|
3616
|
-
breakpoints:
|
|
4017
|
+
breakpoints: m
|
|
3617
4018
|
}
|
|
3618
4019
|
});
|
|
3619
4020
|
},
|
|
3620
|
-
animation: (
|
|
3621
|
-
|
|
4021
|
+
animation: (S) => {
|
|
4022
|
+
Fe(S);
|
|
3622
4023
|
},
|
|
3623
|
-
contentUpdate: (
|
|
3624
|
-
i(
|
|
4024
|
+
contentUpdate: (S) => {
|
|
4025
|
+
i(S);
|
|
3625
4026
|
}
|
|
3626
4027
|
}
|
|
3627
|
-
})(
|
|
4028
|
+
})(I);
|
|
3628
4029
|
}
|
|
3629
|
-
const [
|
|
3630
|
-
function
|
|
3631
|
-
var
|
|
4030
|
+
const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [f, k] = E(() => !1);
|
|
4031
|
+
function d(I) {
|
|
4032
|
+
var S, m;
|
|
3632
4033
|
if (e.builderContextSignal.content) {
|
|
3633
|
-
const
|
|
3634
|
-
|
|
4034
|
+
const p = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4035
|
+
me({
|
|
3635
4036
|
apiHost: e.apiHost,
|
|
3636
4037
|
type: "click",
|
|
3637
|
-
canTrack:
|
|
3638
|
-
contentId:
|
|
4038
|
+
canTrack: _(e.canTrack),
|
|
4039
|
+
contentId: C,
|
|
3639
4040
|
apiKey: e.apiKey,
|
|
3640
|
-
variationId:
|
|
3641
|
-
...
|
|
3642
|
-
unique: !
|
|
4041
|
+
variationId: p !== C ? p : void 0,
|
|
4042
|
+
...ti(I),
|
|
4043
|
+
unique: !f
|
|
3643
4044
|
});
|
|
3644
4045
|
}
|
|
3645
|
-
|
|
4046
|
+
f || k(!0);
|
|
3646
4047
|
}
|
|
3647
|
-
function
|
|
3648
|
-
var
|
|
3649
|
-
const
|
|
3650
|
-
Object.entries(
|
|
3651
|
-
if (!
|
|
4048
|
+
function b() {
|
|
4049
|
+
var S, m, p;
|
|
4050
|
+
const I = (p = (m = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4051
|
+
Object.entries(I).forEach(([C, w]) => {
|
|
4052
|
+
if (!w || h[C] || u[C] && !W())
|
|
3652
4053
|
return;
|
|
3653
|
-
h[
|
|
3654
|
-
const
|
|
4054
|
+
h[C] = !0;
|
|
4055
|
+
const B = w.replace(
|
|
3655
4056
|
/{{([^}]+)}}/g,
|
|
3656
|
-
(
|
|
3657
|
-
|
|
3658
|
-
code:
|
|
4057
|
+
(A, M) => String(
|
|
4058
|
+
L({
|
|
4059
|
+
code: M,
|
|
3659
4060
|
context: e.context || {},
|
|
3660
4061
|
localState: void 0,
|
|
3661
4062
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3663,18 +4064,18 @@ function ei(e) {
|
|
|
3663
4064
|
})
|
|
3664
4065
|
)
|
|
3665
4066
|
);
|
|
3666
|
-
Ie(
|
|
4067
|
+
Ie(B), fetch(B).then((A) => A.json()).then((A) => {
|
|
3667
4068
|
n({
|
|
3668
|
-
[
|
|
3669
|
-
}),
|
|
3670
|
-
}).catch((
|
|
3671
|
-
console.error("error fetching dynamic data",
|
|
4069
|
+
[C]: A
|
|
4070
|
+
}), u[C] = !0;
|
|
4071
|
+
}).catch((A) => {
|
|
4072
|
+
console.error("error fetching dynamic data", w, A);
|
|
3672
4073
|
}).finally(() => {
|
|
3673
|
-
h[
|
|
4074
|
+
h[C] = !1;
|
|
3674
4075
|
});
|
|
3675
4076
|
});
|
|
3676
4077
|
}
|
|
3677
|
-
function
|
|
4078
|
+
function v() {
|
|
3678
4079
|
W() && window.dispatchEvent(
|
|
3679
4080
|
new CustomEvent(
|
|
3680
4081
|
"builder:component:stateChange",
|
|
@@ -3689,11 +4090,11 @@ function ei(e) {
|
|
|
3689
4090
|
)
|
|
3690
4091
|
);
|
|
3691
4092
|
}
|
|
3692
|
-
const
|
|
3693
|
-
return
|
|
3694
|
-
var
|
|
3695
|
-
if (
|
|
3696
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
4093
|
+
const y = F(!1);
|
|
4094
|
+
return y.current || (b(), v(), y.current = !0), N(() => {
|
|
4095
|
+
var I, S, m;
|
|
4096
|
+
if ($()) {
|
|
4097
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Je(), Ge({
|
|
3697
4098
|
...e.locale ? {
|
|
3698
4099
|
locale: e.locale
|
|
3699
4100
|
} : {},
|
|
@@ -3705,71 +4106,71 @@ function ei(e) {
|
|
|
3705
4106
|
} : {}
|
|
3706
4107
|
}), Object.values(
|
|
3707
4108
|
e.builderContextSignal.componentInfos
|
|
3708
|
-
).forEach((
|
|
3709
|
-
var
|
|
3710
|
-
if (!e.model || !((
|
|
3711
|
-
const
|
|
3712
|
-
(
|
|
4109
|
+
).forEach((C) => {
|
|
4110
|
+
var w, B;
|
|
4111
|
+
if (!e.model || !((w = C.models) != null && w.length) || C.models.includes(e.model)) {
|
|
4112
|
+
const A = Qe(C);
|
|
4113
|
+
(B = window.parent) == null || B.postMessage(A, "*");
|
|
3713
4114
|
}
|
|
3714
4115
|
}), window.addEventListener(
|
|
3715
4116
|
"builder:component:stateChangeListenerActivated",
|
|
3716
|
-
|
|
3717
|
-
)), e.builderContextSignal.content &&
|
|
3718
|
-
const
|
|
3719
|
-
|
|
4117
|
+
v
|
|
4118
|
+
)), e.builderContextSignal.content && _(e.canTrack)) {
|
|
4119
|
+
const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, B = e.apiKey;
|
|
4120
|
+
me({
|
|
3720
4121
|
apiHost: e.apiHost,
|
|
3721
4122
|
type: "impression",
|
|
3722
4123
|
canTrack: !0,
|
|
3723
|
-
contentId:
|
|
3724
|
-
apiKey:
|
|
3725
|
-
variationId:
|
|
4124
|
+
contentId: w,
|
|
4125
|
+
apiKey: B,
|
|
4126
|
+
variationId: C !== w ? C : void 0
|
|
3726
4127
|
});
|
|
3727
4128
|
}
|
|
3728
|
-
if (
|
|
3729
|
-
const
|
|
3730
|
-
`builder.overrides.${
|
|
3731
|
-
),
|
|
3732
|
-
(
|
|
4129
|
+
if (Y() && !W()) {
|
|
4130
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), B = C.get(
|
|
4131
|
+
`builder.overrides.${w}`
|
|
4132
|
+
), A = C.get("apiKey") || C.get("builder.space");
|
|
4133
|
+
(w === "BUILDER_STUDIO" || w === e.model && A === e.apiKey && (!e.content || B === e.content.id)) && Ee({
|
|
3733
4134
|
model: e.model || "",
|
|
3734
4135
|
apiKey: e.apiKey,
|
|
3735
4136
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
3736
|
-
...
|
|
4137
|
+
...w === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
|
|
3737
4138
|
query: {
|
|
3738
4139
|
id: e.context.symbolId
|
|
3739
4140
|
}
|
|
3740
4141
|
} : {}
|
|
3741
|
-
}).then((
|
|
3742
|
-
|
|
4142
|
+
}).then((M) => {
|
|
4143
|
+
M && i(M);
|
|
3743
4144
|
});
|
|
3744
4145
|
}
|
|
3745
4146
|
}
|
|
3746
|
-
}, []),
|
|
4147
|
+
}, []), N(() => {
|
|
3747
4148
|
e.content && i(e.content);
|
|
3748
|
-
}, [e.content]),
|
|
3749
|
-
|
|
3750
|
-
}, [e.builderContextSignal.rootState]),
|
|
4149
|
+
}, [e.content]), N(() => {
|
|
4150
|
+
v();
|
|
4151
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
3751
4152
|
e.data && n(e.data);
|
|
3752
|
-
}, [e.data]),
|
|
4153
|
+
}, [e.data]), N(() => {
|
|
3753
4154
|
e.locale && n({
|
|
3754
4155
|
locale: e.locale
|
|
3755
4156
|
});
|
|
3756
|
-
}, [e.locale]),
|
|
3757
|
-
|
|
4157
|
+
}, [e.locale]), N(() => () => {
|
|
4158
|
+
$() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3758
4159
|
"builder:component:stateChangeListenerActivated",
|
|
3759
|
-
|
|
4160
|
+
v
|
|
3760
4161
|
));
|
|
3761
|
-
}, []), /* @__PURE__ */
|
|
4162
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Te() ? /* @__PURE__ */ s(
|
|
3762
4163
|
a,
|
|
3763
4164
|
{
|
|
3764
4165
|
ref: t,
|
|
3765
|
-
onClick: (
|
|
3766
|
-
"builder-content-id": (
|
|
4166
|
+
onClick: (I) => d(I),
|
|
4167
|
+
"builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
|
|
3767
4168
|
"builder-model": e.model,
|
|
3768
|
-
className:
|
|
3769
|
-
((
|
|
4169
|
+
className: si(
|
|
4170
|
+
((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
3770
4171
|
),
|
|
3771
4172
|
style: {
|
|
3772
|
-
display: !e.builderContextSignal.content &&
|
|
4173
|
+
display: !e.builderContextSignal.content && Te() ? "none" : void 0
|
|
3773
4174
|
},
|
|
3774
4175
|
...o(),
|
|
3775
4176
|
...e.contentWrapperProps,
|
|
@@ -3777,21 +4178,21 @@ function ei(e) {
|
|
|
3777
4178
|
}
|
|
3778
4179
|
) : null });
|
|
3779
4180
|
}
|
|
3780
|
-
function
|
|
4181
|
+
function ui(e) {
|
|
3781
4182
|
const [t, n] = E(
|
|
3782
4183
|
() => `
|
|
3783
|
-
${
|
|
4184
|
+
${ai({
|
|
3784
4185
|
cssCode: e.cssCode,
|
|
3785
4186
|
contentId: e.contentId
|
|
3786
4187
|
})}
|
|
3787
|
-
${
|
|
4188
|
+
${oi({
|
|
3788
4189
|
customFonts: e.customFonts
|
|
3789
4190
|
})}
|
|
3790
|
-
${
|
|
4191
|
+
${li(e.isNestedRender)}
|
|
3791
4192
|
`.trim()
|
|
3792
4193
|
);
|
|
3793
|
-
return /* @__PURE__ */
|
|
3794
|
-
|
|
4194
|
+
return /* @__PURE__ */ s(
|
|
4195
|
+
H,
|
|
3795
4196
|
{
|
|
3796
4197
|
id: "builderio-content",
|
|
3797
4198
|
styles: t,
|
|
@@ -3799,15 +4200,15 @@ ${Xn(e.isNestedRender)}
|
|
|
3799
4200
|
}
|
|
3800
4201
|
);
|
|
3801
4202
|
}
|
|
3802
|
-
const
|
|
4203
|
+
const di = ({
|
|
3803
4204
|
content: e,
|
|
3804
4205
|
data: t,
|
|
3805
4206
|
locale: n
|
|
3806
4207
|
}) => {
|
|
3807
|
-
var a, r,
|
|
4208
|
+
var a, r, l;
|
|
3808
4209
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3809
|
-
return (
|
|
3810
|
-
|
|
4210
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((u) => {
|
|
4211
|
+
u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
|
|
3811
4212
|
}), {
|
|
3812
4213
|
...i,
|
|
3813
4214
|
...o,
|
|
@@ -3816,7 +4217,7 @@ const ni = ({
|
|
|
3816
4217
|
locale: n
|
|
3817
4218
|
} : {}
|
|
3818
4219
|
};
|
|
3819
|
-
},
|
|
4220
|
+
}, mi = ({
|
|
3820
4221
|
content: e,
|
|
3821
4222
|
data: t
|
|
3822
4223
|
}) => e ? {
|
|
@@ -3827,46 +4228,46 @@ const ni = ({
|
|
|
3827
4228
|
},
|
|
3828
4229
|
meta: e == null ? void 0 : e.meta
|
|
3829
4230
|
} : void 0;
|
|
3830
|
-
function
|
|
3831
|
-
var c, h, g,
|
|
4231
|
+
function we(e) {
|
|
4232
|
+
var c, h, g, f, k, d, b, v, y;
|
|
3832
4233
|
const [t, n] = E(
|
|
3833
4234
|
() => {
|
|
3834
|
-
var
|
|
3835
|
-
return
|
|
4235
|
+
var x, T;
|
|
4236
|
+
return Xn({
|
|
3836
4237
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3837
|
-
variationId: (
|
|
4238
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3838
4239
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3839
|
-
contentId: (
|
|
4240
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
3840
4241
|
});
|
|
3841
4242
|
}
|
|
3842
4243
|
);
|
|
3843
|
-
function i(
|
|
3844
|
-
|
|
3845
|
-
...
|
|
3846
|
-
rootState:
|
|
4244
|
+
function i(x) {
|
|
4245
|
+
l((T) => ({
|
|
4246
|
+
...T,
|
|
4247
|
+
rootState: x
|
|
3847
4248
|
}));
|
|
3848
4249
|
}
|
|
3849
4250
|
const [o, a] = E(
|
|
3850
4251
|
() => [
|
|
3851
|
-
...
|
|
4252
|
+
...Se(),
|
|
3852
4253
|
...e.customComponents || []
|
|
3853
4254
|
].reduce(
|
|
3854
|
-
(
|
|
3855
|
-
...
|
|
3856
|
-
[
|
|
3857
|
-
component:
|
|
3858
|
-
...
|
|
4255
|
+
(x, { component: T, ...P }) => ({
|
|
4256
|
+
...x,
|
|
4257
|
+
[P.name]: {
|
|
4258
|
+
component: T,
|
|
4259
|
+
...fe(P)
|
|
3859
4260
|
}
|
|
3860
4261
|
}),
|
|
3861
4262
|
{}
|
|
3862
4263
|
)
|
|
3863
|
-
), [r,
|
|
3864
|
-
content:
|
|
4264
|
+
), [r, l] = E(() => ({
|
|
4265
|
+
content: mi({
|
|
3865
4266
|
content: e.content,
|
|
3866
4267
|
data: e.data
|
|
3867
4268
|
}),
|
|
3868
4269
|
localState: void 0,
|
|
3869
|
-
rootState:
|
|
4270
|
+
rootState: di({
|
|
3870
4271
|
content: e.content,
|
|
3871
4272
|
data: e.data,
|
|
3872
4273
|
locale: e.locale
|
|
@@ -3877,12 +4278,12 @@ function Te(e) {
|
|
|
3877
4278
|
apiKey: e.apiKey,
|
|
3878
4279
|
apiVersion: e.apiVersion,
|
|
3879
4280
|
componentInfos: [
|
|
3880
|
-
...
|
|
4281
|
+
...Se(),
|
|
3881
4282
|
...e.customComponents || []
|
|
3882
4283
|
].reduce(
|
|
3883
|
-
(
|
|
3884
|
-
...
|
|
3885
|
-
[
|
|
4284
|
+
(x, { component: T, ...P }) => ({
|
|
4285
|
+
...x,
|
|
4286
|
+
[P.name]: fe(P)
|
|
3886
4287
|
}),
|
|
3887
4288
|
{}
|
|
3888
4289
|
),
|
|
@@ -3891,31 +4292,31 @@ function Te(e) {
|
|
|
3891
4292
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3892
4293
|
nonce: e.nonce || "",
|
|
3893
4294
|
model: e.model || ""
|
|
3894
|
-
})),
|
|
3895
|
-
if (!
|
|
3896
|
-
e.apiKey ||
|
|
4295
|
+
})), u = F(!1);
|
|
4296
|
+
if (!u.current) {
|
|
4297
|
+
e.apiKey || Q.error(
|
|
3897
4298
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3898
4299
|
);
|
|
3899
|
-
const
|
|
3900
|
-
|
|
3901
|
-
code:
|
|
4300
|
+
const x = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4301
|
+
x && L({
|
|
4302
|
+
code: x,
|
|
3902
4303
|
context: e.context || {},
|
|
3903
4304
|
localState: void 0,
|
|
3904
4305
|
rootState: r.rootState,
|
|
3905
|
-
rootSetState: (
|
|
3906
|
-
Object.assign(r.rootState,
|
|
4306
|
+
rootSetState: (T) => {
|
|
4307
|
+
Object.assign(r.rootState, T);
|
|
3907
4308
|
},
|
|
3908
4309
|
isExpression: !1
|
|
3909
|
-
}),
|
|
4310
|
+
}), u.current = !0;
|
|
3910
4311
|
}
|
|
3911
|
-
return /* @__PURE__ */
|
|
3912
|
-
|
|
4312
|
+
return /* @__PURE__ */ s(
|
|
4313
|
+
Ve.Provider,
|
|
3913
4314
|
{
|
|
3914
4315
|
value: {
|
|
3915
4316
|
registeredComponents: o
|
|
3916
4317
|
},
|
|
3917
|
-
children: /* @__PURE__ */
|
|
3918
|
-
|
|
4318
|
+
children: /* @__PURE__ */ V(
|
|
4319
|
+
ci,
|
|
3919
4320
|
{
|
|
3920
4321
|
apiHost: e.apiHost,
|
|
3921
4322
|
nonce: e.nonce,
|
|
@@ -3933,30 +4334,30 @@ function Te(e) {
|
|
|
3933
4334
|
contentWrapperProps: e.contentWrapperProps,
|
|
3934
4335
|
trustedHosts: e.trustedHosts,
|
|
3935
4336
|
isNestedRender: e.isNestedRender,
|
|
3936
|
-
setBuilderContextSignal:
|
|
4337
|
+
setBuilderContextSignal: l,
|
|
3937
4338
|
children: [
|
|
3938
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3939
|
-
|
|
4339
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4340
|
+
G,
|
|
3940
4341
|
{
|
|
3941
4342
|
id: "builderio-variant-visibility",
|
|
3942
4343
|
scriptStr: t,
|
|
3943
4344
|
nonce: e.nonce || ""
|
|
3944
4345
|
}
|
|
3945
4346
|
) : null,
|
|
3946
|
-
/* @__PURE__ */
|
|
3947
|
-
|
|
4347
|
+
/* @__PURE__ */ s(
|
|
4348
|
+
ui,
|
|
3948
4349
|
{
|
|
3949
4350
|
nonce: e.nonce || "",
|
|
3950
4351
|
isNestedRender: e.isNestedRender,
|
|
3951
4352
|
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
3952
|
-
cssCode: (
|
|
3953
|
-
customFonts: (
|
|
4353
|
+
cssCode: (k = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : k.cssCode,
|
|
4354
|
+
customFonts: (b = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : b.customFonts
|
|
3954
4355
|
}
|
|
3955
4356
|
),
|
|
3956
|
-
/* @__PURE__ */
|
|
3957
|
-
|
|
4357
|
+
/* @__PURE__ */ s(
|
|
4358
|
+
D,
|
|
3958
4359
|
{
|
|
3959
|
-
blocks: (
|
|
4360
|
+
blocks: (y = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
|
|
3960
4361
|
context: r,
|
|
3961
4362
|
registeredComponents: o,
|
|
3962
4363
|
linkComponent: e.linkComponent
|
|
@@ -3968,71 +4369,71 @@ function Te(e) {
|
|
|
3968
4369
|
}
|
|
3969
4370
|
);
|
|
3970
4371
|
}
|
|
3971
|
-
function
|
|
4372
|
+
function fi(e) {
|
|
3972
4373
|
var r;
|
|
3973
4374
|
const [t, n] = E(
|
|
3974
|
-
() =>
|
|
3975
|
-
canTrack:
|
|
4375
|
+
() => Jn({
|
|
4376
|
+
canTrack: _(e.canTrack),
|
|
3976
4377
|
content: e.content
|
|
3977
4378
|
})
|
|
3978
4379
|
);
|
|
3979
4380
|
function i() {
|
|
3980
|
-
var
|
|
3981
|
-
return
|
|
3982
|
-
|
|
3983
|
-
id:
|
|
3984
|
-
testRatio:
|
|
4381
|
+
var l;
|
|
4382
|
+
return Yn(
|
|
4383
|
+
z(e.content).map((u) => ({
|
|
4384
|
+
id: u.testVariationId,
|
|
4385
|
+
testRatio: u.testRatio
|
|
3985
4386
|
})),
|
|
3986
|
-
((
|
|
4387
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3987
4388
|
);
|
|
3988
4389
|
}
|
|
3989
4390
|
function o() {
|
|
3990
|
-
return
|
|
4391
|
+
return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3991
4392
|
}
|
|
3992
4393
|
function a() {
|
|
3993
|
-
var
|
|
4394
|
+
var l;
|
|
3994
4395
|
return t ? {
|
|
3995
4396
|
...e.content,
|
|
3996
|
-
testVariationId: (
|
|
3997
|
-
} :
|
|
4397
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4398
|
+
} : Xe({
|
|
3998
4399
|
item: e.content,
|
|
3999
|
-
canTrack:
|
|
4400
|
+
canTrack: _(e.canTrack)
|
|
4000
4401
|
});
|
|
4001
4402
|
}
|
|
4002
|
-
return
|
|
4003
|
-
}, []), /* @__PURE__ */
|
|
4004
|
-
!e.isNestedRender &&
|
|
4005
|
-
|
|
4403
|
+
return N(() => {
|
|
4404
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
4405
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4406
|
+
G,
|
|
4006
4407
|
{
|
|
4007
4408
|
id: "builderio-init-variants-fns",
|
|
4008
|
-
scriptStr:
|
|
4409
|
+
scriptStr: Qn(),
|
|
4009
4410
|
nonce: e.nonce || ""
|
|
4010
4411
|
}
|
|
4011
4412
|
) : null,
|
|
4012
|
-
t ? /* @__PURE__ */
|
|
4013
|
-
/* @__PURE__ */
|
|
4014
|
-
|
|
4413
|
+
t ? /* @__PURE__ */ V(R, { children: [
|
|
4414
|
+
/* @__PURE__ */ s(
|
|
4415
|
+
H,
|
|
4015
4416
|
{
|
|
4016
4417
|
id: "builderio-variants",
|
|
4017
4418
|
styles: o(),
|
|
4018
4419
|
nonce: e.nonce || ""
|
|
4019
4420
|
}
|
|
4020
4421
|
),
|
|
4021
|
-
/* @__PURE__ */
|
|
4022
|
-
|
|
4422
|
+
/* @__PURE__ */ s(
|
|
4423
|
+
G,
|
|
4023
4424
|
{
|
|
4024
4425
|
id: "builderio-variants-visibility",
|
|
4025
4426
|
scriptStr: i(),
|
|
4026
4427
|
nonce: e.nonce || ""
|
|
4027
4428
|
}
|
|
4028
4429
|
),
|
|
4029
|
-
(r =
|
|
4030
|
-
|
|
4430
|
+
(r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4431
|
+
we,
|
|
4031
4432
|
{
|
|
4032
4433
|
apiHost: e.apiHost,
|
|
4033
4434
|
isNestedRender: e.isNestedRender,
|
|
4034
4435
|
nonce: e.nonce,
|
|
4035
|
-
content:
|
|
4436
|
+
content: l,
|
|
4036
4437
|
showContent: !1,
|
|
4037
4438
|
model: e.model,
|
|
4038
4439
|
data: e.data,
|
|
@@ -4051,11 +4452,11 @@ function oi(e) {
|
|
|
4051
4452
|
contentWrapperProps: e.contentWrapperProps,
|
|
4052
4453
|
trustedHosts: e.trustedHosts
|
|
4053
4454
|
},
|
|
4054
|
-
|
|
4455
|
+
l.testVariationId
|
|
4055
4456
|
))
|
|
4056
4457
|
] }) : null,
|
|
4057
|
-
/* @__PURE__ */
|
|
4058
|
-
|
|
4458
|
+
/* @__PURE__ */ s(
|
|
4459
|
+
we,
|
|
4059
4460
|
{
|
|
4060
4461
|
apiHost: e.apiHost,
|
|
4061
4462
|
nonce: e.nonce,
|
|
@@ -4082,13 +4483,13 @@ function oi(e) {
|
|
|
4082
4483
|
)
|
|
4083
4484
|
] });
|
|
4084
4485
|
}
|
|
4085
|
-
const
|
|
4486
|
+
const hi = async ({
|
|
4086
4487
|
builderContextValue: e,
|
|
4087
4488
|
symbol: t
|
|
4088
4489
|
}) => {
|
|
4089
4490
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4090
4491
|
(e != null && e.apiKey))
|
|
4091
|
-
return
|
|
4492
|
+
return Ee({
|
|
4092
4493
|
model: t.model,
|
|
4093
4494
|
apiKey: e.apiKey,
|
|
4094
4495
|
apiVersion: e.apiVersion,
|
|
@@ -4098,11 +4499,11 @@ const ai = async ({
|
|
|
4098
4499
|
}
|
|
4099
4500
|
}
|
|
4100
4501
|
}).catch((n) => {
|
|
4101
|
-
|
|
4502
|
+
Q.error("Could not fetch symbol content: ", n);
|
|
4102
4503
|
});
|
|
4103
4504
|
};
|
|
4104
|
-
function
|
|
4105
|
-
var
|
|
4505
|
+
function gi(e) {
|
|
4506
|
+
var l, u, c, h;
|
|
4106
4507
|
function t() {
|
|
4107
4508
|
return "div";
|
|
4108
4509
|
}
|
|
@@ -4110,12 +4511,12 @@ function ri(e) {
|
|
|
4110
4511
|
return "div";
|
|
4111
4512
|
}
|
|
4112
4513
|
function i() {
|
|
4113
|
-
var g,
|
|
4514
|
+
var g, f;
|
|
4114
4515
|
return [
|
|
4115
|
-
e.attributes[
|
|
4516
|
+
e.attributes[q()],
|
|
4116
4517
|
"builder-symbol",
|
|
4117
4518
|
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4118
|
-
(
|
|
4519
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4119
4520
|
].filter(Boolean).join(" ");
|
|
4120
4521
|
}
|
|
4121
4522
|
const [o, a] = E(() => {
|
|
@@ -4123,18 +4524,18 @@ function ri(e) {
|
|
|
4123
4524
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4124
4525
|
});
|
|
4125
4526
|
function r() {
|
|
4126
|
-
o ||
|
|
4527
|
+
o || hi({
|
|
4127
4528
|
symbol: e.symbol,
|
|
4128
4529
|
builderContextValue: e.builderContext
|
|
4129
4530
|
}).then((g) => {
|
|
4130
4531
|
g && a(g);
|
|
4131
4532
|
});
|
|
4132
4533
|
}
|
|
4133
|
-
return
|
|
4134
|
-
}, []),
|
|
4534
|
+
return N(() => {
|
|
4535
|
+
}, []), N(() => {
|
|
4135
4536
|
r();
|
|
4136
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4137
|
-
|
|
4537
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4538
|
+
fi,
|
|
4138
4539
|
{
|
|
4139
4540
|
nonce: e.builderContext.nonce,
|
|
4140
4541
|
isNestedRender: !0,
|
|
@@ -4142,11 +4543,11 @@ function ri(e) {
|
|
|
4142
4543
|
apiKey: e.builderContext.apiKey,
|
|
4143
4544
|
context: {
|
|
4144
4545
|
...e.builderContext.context,
|
|
4145
|
-
symbolId: (
|
|
4546
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4146
4547
|
},
|
|
4147
4548
|
customComponents: Object.values(e.builderComponents),
|
|
4148
4549
|
data: {
|
|
4149
|
-
...(
|
|
4550
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
4150
4551
|
...e.builderContext.localState,
|
|
4151
4552
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4152
4553
|
},
|
|
@@ -4160,15 +4561,16 @@ function ri(e) {
|
|
|
4160
4561
|
) });
|
|
4161
4562
|
}
|
|
4162
4563
|
export {
|
|
4163
|
-
|
|
4564
|
+
D as Blocks,
|
|
4164
4565
|
le as BuilderContext,
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4566
|
+
nt as Button,
|
|
4567
|
+
Kt as Columns,
|
|
4568
|
+
fi as Content,
|
|
4569
|
+
Jt as Fragment,
|
|
4169
4570
|
Yt as Image,
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4571
|
+
Xt as Section,
|
|
4572
|
+
gi as Symbol,
|
|
4573
|
+
kn as Text,
|
|
4574
|
+
Mn as Video,
|
|
4575
|
+
Si as setClientUserAttributes
|
|
4174
4576
|
};
|