@builder.io/sdk-react 4.0.9 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +10 -10
- package/lib/browser/blocks-exports.mjs +480 -459
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-9ed7eace.cjs +2 -0
- package/lib/{edge/server-entry-8dc3478a.js → browser/server-entry-cddec22e.js} +272 -265
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-e3f81e74.cjs → accordion-59aed902.cjs} +1 -1
- package/lib/edge/{accordion-b551e135.js → accordion-88f5ca79.js} +1 -1
- package/lib/edge/{blocks-cd1feef2.js → blocks-1bfa0619.js} +2 -2
- package/lib/edge/{blocks-eb6fa21f.cjs → blocks-e5610e53.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-f390f723.js → button-cfcad5ee.js} +2 -2
- package/lib/edge/{button-5c6a9392.cjs → button-d4969c10.cjs} +1 -1
- package/lib/edge/{columns-ad17139e.cjs → columns-4c22f5f9.cjs} +1 -1
- package/lib/edge/{columns-7018a027.js → columns-840b77f4.js} +3 -3
- package/lib/edge/{content-variants-dc54ce4f.js → content-variants-5b95a71c.js} +13 -13
- package/lib/edge/{content-variants-c72ca81f.cjs → content-variants-9084d7cf.cjs} +3 -3
- package/lib/edge/{custom-code-0daf1c91.js → custom-code-c12691cc.js} +1 -1
- package/lib/edge/{custom-code-e87af7b1.cjs → custom-code-f0f3bef1.cjs} +1 -1
- package/lib/edge/{embed-1dfcba43.js → embed-46acac57.js} +1 -1
- package/lib/edge/{embed-c695c98e.cjs → embed-95c874d3.cjs} +1 -1
- package/lib/edge/form-49928227.js +178 -0
- package/lib/edge/form-e74d90ef.cjs +1 -0
- package/lib/edge/{get-class-prop-name-c479656a.cjs → get-class-prop-name-5d642918.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-5edacc3b.js → get-class-prop-name-de337a1b.js} +1 -1
- package/lib/edge/image-209835f4.js +94 -0
- package/lib/edge/image-87a4e006.cjs +17 -0
- package/lib/edge/image.helpers-3e926d47.js +33 -0
- package/lib/edge/image.helpers-dba8a869.cjs +1 -0
- package/lib/edge/img-0fe56811.cjs +1 -0
- package/lib/edge/img-a0115c68.js +27 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-3d4f956b.js → input-2a39a1a8.js} +1 -1
- package/lib/edge/{input-8c7008b5.cjs → input-4f2e451f.cjs} +1 -1
- package/lib/edge/personalization-container-9ddd7a55.cjs +1 -0
- package/lib/edge/{personalization-container-3a8dc18a.js → personalization-container-d477347e.js} +35 -32
- package/lib/edge/{select-2efc7503.cjs → select-b5449eba.cjs} +1 -1
- package/lib/edge/{select-153586f8.js → select-d1902b94.js} +1 -1
- package/lib/{node/server-entry-f03c1146.js → edge/server-entry-50618347.js} +306 -303
- package/lib/edge/server-entry-a24928b8.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-f1f7513c.cjs → slot-e2f8c494.cjs} +1 -1
- package/lib/edge/{slot-d268693c.js → slot-f37576fc.js} +3 -3
- package/lib/edge/{symbol-0344516c.cjs → symbol-8424cd54.cjs} +1 -1
- package/lib/edge/{symbol-378e19ee.js → symbol-a34eea2a.js} +2 -2
- package/lib/edge/{tabs-29ff78a0.js → tabs-b97f9798.js} +3 -3
- package/lib/edge/{tabs-4e931765.cjs → tabs-e686d11f.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +16 -16
- package/lib/node/blocks-exports.mjs +502 -481
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/{browser/server-entry-231f8ecd.js → node/server-entry-1556528d.js} +205 -199
- package/lib/node/server-entry-ecee24b6.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-044ce9e7.js → setIvm-15c96eda.js} +1 -1
- package/lib/node/{setIvm-3761bb10.cjs → setIvm-432010ba.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-e760d4f2.cjs → should-force-browser-runtime-in-node-4128d124.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-f620dcdc.js → should-force-browser-runtime-in-node-d0bca779.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/no-serialize-wrapper.d.ts +1 -0
- package/types/helpers/user-attributes.d.ts +6 -2
- package/lib/browser/server-entry-bdbd3c0d.cjs +0 -2
- package/lib/edge/form-5a0c89d9.js +0 -166
- package/lib/edge/form-ba54942c.cjs +0 -1
- package/lib/edge/image-cce92f6c.cjs +0 -17
- package/lib/edge/image-d87761af.js +0 -123
- package/lib/edge/img-6982d6eb.cjs +0 -1
- package/lib/edge/img-882c7222.js +0 -20
- package/lib/edge/personalization-container-4557a50b.cjs +0 -1
- package/lib/edge/server-entry-9d269960.cjs +0 -2
- package/lib/node/server-entry-916c726c.cjs +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as qi } from "./server-entry-
|
|
2
|
+
import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as le, isEditing as O, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-1556528d.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-1556528d.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
|
|
5
5
|
import * as ft from "react";
|
|
6
|
-
import { createContext as Oe, useEffect as
|
|
7
|
-
import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-
|
|
6
|
+
import { createContext as Oe, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-15c96eda.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-d0bca779.js";
|
|
9
9
|
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
10
10
|
function pe(e) {
|
|
11
11
|
return /* @__PURE__ */ s(R, { children: St(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
13
|
const j = () => {
|
|
14
|
-
switch (
|
|
14
|
+
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -64,24 +64,24 @@ const ve = Oe({
|
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
66
|
}), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
69
|
}, Ct = ({
|
|
70
70
|
code: e,
|
|
71
71
|
builder: t,
|
|
72
72
|
context: n,
|
|
73
73
|
event: i,
|
|
74
|
-
localState:
|
|
74
|
+
localState: r,
|
|
75
75
|
rootSetState: o,
|
|
76
|
-
rootState:
|
|
76
|
+
rootState: a
|
|
77
77
|
}) => {
|
|
78
78
|
const l = ht({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
82
|
state: gt({
|
|
83
|
-
rootState:
|
|
84
|
-
localState:
|
|
83
|
+
rootState: a,
|
|
84
|
+
localState: r,
|
|
85
85
|
rootSetState: o
|
|
86
86
|
})
|
|
87
87
|
});
|
|
@@ -89,17 +89,17 @@ const ve = Oe({
|
|
|
89
89
|
}, Tt = (e) => K() || vt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
91
|
}) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
|
|
92
|
-
var t, n, i,
|
|
93
|
-
return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
92
|
+
var t, n, i, r, o, a;
|
|
93
|
+
return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = wt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
|
|
94
94
|
};
|
|
95
95
|
function J({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
|
-
rootSetState:
|
|
100
|
+
rootSetState: r,
|
|
101
101
|
event: o,
|
|
102
|
-
isExpression:
|
|
102
|
+
isExpression: a = !0
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
@@ -111,12 +111,12 @@ function J({
|
|
|
111
111
|
}, l);
|
|
112
112
|
const c = {
|
|
113
113
|
code: yt(e, {
|
|
114
|
-
isExpression:
|
|
114
|
+
isExpression: a
|
|
115
115
|
}),
|
|
116
116
|
builder: pt(),
|
|
117
117
|
context: t,
|
|
118
118
|
event: o,
|
|
119
|
-
rootSetState:
|
|
119
|
+
rootSetState: r,
|
|
120
120
|
rootState: i,
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
@@ -142,7 +142,7 @@ const Pt = (e, t) => {
|
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => J({
|
|
146
146
|
code: o,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
@@ -157,21 +157,21 @@ function Vt(e, ...t) {
|
|
|
157
157
|
delete n[i];
|
|
158
158
|
return n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
162
|
t(e, (o) => {
|
|
163
163
|
n !== null && i !== null && (n[i] = o);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
|
|
167
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
|
|
168
168
|
t(o, (c) => {
|
|
169
|
-
e[
|
|
170
|
-
}),
|
|
171
|
-
}) : Object.entries(e).forEach(([o,
|
|
172
|
-
t(
|
|
169
|
+
e[a] = c;
|
|
170
|
+
}), oe(o, t, e, a, r);
|
|
171
|
+
}) : Object.entries(e).forEach(([o, a]) => {
|
|
172
|
+
t(a, (c) => {
|
|
173
173
|
e[o] = c;
|
|
174
|
-
}),
|
|
174
|
+
}), oe(a, t, e, o, r);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
177
|
function qe(e) {
|
|
@@ -181,7 +181,7 @@ function At(e) {
|
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
|
-
return
|
|
184
|
+
return oe(e, (n) => {
|
|
185
185
|
if (qe(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
@@ -189,9 +189,9 @@ function At(e) {
|
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
191
|
function Bt(e, t) {
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
193
|
-
var
|
|
194
|
-
qe(n) && i((
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (oe(e, (n, i) => {
|
|
193
|
+
var r;
|
|
194
|
+
qe(n) && i((r = n[t]) != null ? r : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
197
|
function Nt(e, t) {
|
|
@@ -210,7 +210,7 @@ function be(e) {
|
|
|
210
210
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
213
|
+
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
|
|
214
214
|
if ($t) {
|
|
215
215
|
const t = ye(e);
|
|
216
216
|
return {
|
|
@@ -241,20 +241,20 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), Wt = (e) =
|
|
|
241
241
|
context: t,
|
|
242
242
|
localState: n,
|
|
243
243
|
rootState: i,
|
|
244
|
-
rootSetState:
|
|
244
|
+
rootSetState: r
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
248
|
const o = Wt(e);
|
|
249
|
-
for (const
|
|
250
|
-
const l = e.bindings[
|
|
249
|
+
for (const a in e.bindings) {
|
|
250
|
+
const l = e.bindings[a], c = J({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
|
-
rootSetState:
|
|
254
|
+
rootSetState: r,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
Ue(o,
|
|
257
|
+
Ue(o, a, c);
|
|
258
258
|
}
|
|
259
259
|
return o;
|
|
260
260
|
};
|
|
@@ -263,37 +263,37 @@ function Ft({
|
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
|
-
rootSetState:
|
|
266
|
+
rootSetState: r
|
|
267
267
|
}) {
|
|
268
268
|
let o = Nt(e, i.locale);
|
|
269
269
|
return o = o, Dt({
|
|
270
270
|
block: o,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
|
-
rootSetState:
|
|
273
|
+
rootSetState: r,
|
|
274
274
|
context: t
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
const
|
|
277
|
+
const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
278
|
function Lt(e, t, n = {}) {
|
|
279
|
-
let i,
|
|
279
|
+
let i, r, o, a = null, l = 0;
|
|
280
280
|
const c = function() {
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
284
|
const u = Date.now();
|
|
285
285
|
!l && n.leading === !1 && (l = u);
|
|
286
286
|
const f = t - (u - l);
|
|
287
|
-
return i = this,
|
|
287
|
+
return i = this, r = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), o;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
function Y(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
|
-
const
|
|
294
|
-
if (
|
|
295
|
-
for (const o in
|
|
296
|
-
Object.prototype.hasOwnProperty.call(
|
|
293
|
+
const r = arguments[i];
|
|
294
|
+
if (r != null)
|
|
295
|
+
for (const o in r)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
@@ -312,8 +312,8 @@ function je(e) {
|
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
314
|
function ze(e, t) {
|
|
315
|
-
const n = _t(e), i = getComputedStyle(t),
|
|
316
|
-
for (const l of
|
|
315
|
+
const n = _t(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
|
|
316
|
+
for (const l of a)
|
|
317
317
|
for (const c of n)
|
|
318
318
|
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
@@ -332,7 +332,7 @@ function Ke(e) {
|
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
334
|
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
@@ -346,28 +346,28 @@ function Ut(e) {
|
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
348
|
ze(e, n);
|
|
349
|
-
let i = !1,
|
|
349
|
+
let i = !1, r = !1;
|
|
350
350
|
function o() {
|
|
351
|
-
!i && l(n) ? (i = !0,
|
|
352
|
-
Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
353
|
-
|
|
351
|
+
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
352
|
+
Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
353
|
+
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !
|
|
355
|
+
})) : e.repeat && i && !r && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const a = Lt(o, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(f) {
|
|
361
|
-
const
|
|
362
|
-
return
|
|
361
|
+
const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
|
|
362
|
+
return b.bottom > d && b.top < m - d;
|
|
363
363
|
}
|
|
364
364
|
const c = e.steps[0].styles;
|
|
365
365
|
function u() {
|
|
366
366
|
Y(n.style, c);
|
|
367
367
|
}
|
|
368
368
|
u(), setTimeout(() => {
|
|
369
|
-
n.style.transition = `all ${e.duration}s ${
|
|
370
|
-
}), document.addEventListener("scroll",
|
|
369
|
+
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
+
}), document.addEventListener("scroll", a, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
373
|
}), o();
|
|
@@ -375,7 +375,7 @@ function Ut(e) {
|
|
|
375
375
|
}
|
|
376
376
|
const Je = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
|
-
return `${
|
|
378
|
+
return `${se(n)}: ${i};`;
|
|
379
379
|
}).filter(ge), Ht = (e) => Je(e).join(`
|
|
380
380
|
`), Q = ({
|
|
381
381
|
mediaQuery: e,
|
|
@@ -403,7 +403,7 @@ const qt = ({
|
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
405
|
function Ge(e) {
|
|
406
|
-
switch (
|
|
406
|
+
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
@@ -425,14 +425,14 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
425
425
|
const i = (o = e.component) == null ? void 0 : o.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const r = t[i];
|
|
429
|
+
if (!r || Qe(r, n)) {
|
|
430
430
|
console.warn(`
|
|
431
431
|
Could not find a registered component named "${i}".
|
|
432
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
433
433
|
return;
|
|
434
434
|
} else
|
|
435
|
-
return
|
|
435
|
+
return r;
|
|
436
436
|
}, zt = ({
|
|
437
437
|
block: e,
|
|
438
438
|
context: t
|
|
@@ -443,25 +443,25 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const
|
|
446
|
+
const r = J({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
450
450
|
rootSetState: t.rootSetState,
|
|
451
451
|
context: t.context
|
|
452
452
|
});
|
|
453
|
-
if (!Array.isArray(
|
|
453
|
+
if (!Array.isArray(r))
|
|
454
454
|
return;
|
|
455
|
-
const o = n.collection.split(".").pop(),
|
|
456
|
-
return
|
|
455
|
+
const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
|
|
456
|
+
return r.map((c, u) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
461
|
$index: u,
|
|
462
462
|
$item: c,
|
|
463
|
-
[
|
|
464
|
-
[`$${
|
|
463
|
+
[a]: c,
|
|
464
|
+
[`$${a}Index`]: u
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
@@ -474,7 +474,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
474
474
|
}, Jt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([o,
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Qe(a, n)))
|
|
478
478
|
} : {};
|
|
479
479
|
}, Gt = (e, t) => {
|
|
480
480
|
var n;
|
|
@@ -507,14 +507,14 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
507
507
|
default: 991,
|
|
508
508
|
max: 1200
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, ue = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
|
|
511
511
|
const t = ye(Ye);
|
|
512
512
|
if (!e)
|
|
513
513
|
return t;
|
|
514
514
|
const {
|
|
515
515
|
xsmall: n,
|
|
516
516
|
small: i,
|
|
517
|
-
medium:
|
|
517
|
+
medium: r
|
|
518
518
|
} = e;
|
|
519
519
|
if (n) {
|
|
520
520
|
const c = Math.floor(n / 2);
|
|
@@ -524,7 +524,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
524
524
|
default: c + 1
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
|
-
if (!i || !
|
|
527
|
+
if (!i || !r)
|
|
528
528
|
return t;
|
|
529
529
|
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
530
|
t.small = {
|
|
@@ -532,11 +532,11 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
532
532
|
min: o,
|
|
533
533
|
default: o + 1
|
|
534
534
|
};
|
|
535
|
-
const
|
|
535
|
+
const a = t.small.max + 1;
|
|
536
536
|
t.medium = {
|
|
537
|
-
max:
|
|
538
|
-
min:
|
|
539
|
-
default:
|
|
537
|
+
max: r,
|
|
538
|
+
min: a,
|
|
539
|
+
default: a + 1
|
|
540
540
|
};
|
|
541
541
|
const l = t.medium.max + 1;
|
|
542
542
|
return t.large = {
|
|
@@ -562,10 +562,10 @@ function Yt(e) {
|
|
|
562
562
|
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var k,
|
|
566
|
-
const i = e.block,
|
|
565
|
+
var k, A, T, I, g;
|
|
566
|
+
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = Xe(
|
|
567
567
|
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
568
|
-
), l = !!((T = (
|
|
568
|
+
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
|
|
569
569
|
if (!m)
|
|
570
570
|
return "";
|
|
571
571
|
const v = c ? Q({
|
|
@@ -574,33 +574,33 @@ function Yt(e) {
|
|
|
574
574
|
}) : "", d = u ? Q({
|
|
575
575
|
className: m,
|
|
576
576
|
styles: u,
|
|
577
|
-
mediaQuery:
|
|
577
|
+
mediaQuery: ue(
|
|
578
578
|
"medium",
|
|
579
|
-
|
|
579
|
+
a
|
|
580
580
|
)
|
|
581
581
|
}) : "", h = f ? Q({
|
|
582
582
|
className: m,
|
|
583
583
|
styles: f,
|
|
584
|
-
mediaQuery:
|
|
584
|
+
mediaQuery: ue(
|
|
585
585
|
"small",
|
|
586
|
-
|
|
586
|
+
a
|
|
587
587
|
)
|
|
588
|
-
}) : "", p =
|
|
588
|
+
}) : "", p = b && l ? Q({
|
|
589
589
|
className: m,
|
|
590
|
-
styles:
|
|
591
|
-
mediaQuery:
|
|
590
|
+
styles: b,
|
|
591
|
+
mediaQuery: ue(
|
|
592
592
|
"xsmall",
|
|
593
|
-
|
|
593
|
+
a
|
|
594
594
|
)
|
|
595
|
-
}) : "", y = i.animations && i.animations.find((
|
|
596
|
-
let
|
|
595
|
+
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
596
|
+
let S = "";
|
|
597
597
|
if (y) {
|
|
598
|
-
const
|
|
599
|
-
|
|
598
|
+
const x = ((g = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : g.styles) || {};
|
|
599
|
+
S = Q({
|
|
600
600
|
className: `${m}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${y.duration}s ${
|
|
602
|
+
...x,
|
|
603
|
+
transition: `all ${y.duration}s ${se(
|
|
604
604
|
y.easing
|
|
605
605
|
)}`,
|
|
606
606
|
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
@@ -612,7 +612,7 @@ function Yt(e) {
|
|
|
612
612
|
d,
|
|
613
613
|
h,
|
|
614
614
|
p,
|
|
615
|
-
|
|
615
|
+
S
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
618
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
@@ -639,21 +639,21 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => J({
|
|
|
639
639
|
function Ze(e) {
|
|
640
640
|
var i;
|
|
641
641
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
|
-
for (const
|
|
643
|
-
if (!n.hasOwnProperty(
|
|
642
|
+
for (const r in n) {
|
|
643
|
+
if (!n.hasOwnProperty(r))
|
|
644
644
|
continue;
|
|
645
|
-
const o = n[
|
|
646
|
-
let
|
|
645
|
+
const o = n[r];
|
|
646
|
+
let a = Zt(r);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
|
-
switch (
|
|
648
|
+
switch (F) {
|
|
649
649
|
case "vue":
|
|
650
|
-
|
|
650
|
+
a = a.replace("v-on:", "");
|
|
651
651
|
break;
|
|
652
652
|
case "svelte":
|
|
653
|
-
|
|
653
|
+
a = a.replace("on:", "");
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
t[
|
|
656
|
+
t[a] = en(o, e);
|
|
657
657
|
}
|
|
658
658
|
return t;
|
|
659
659
|
}
|
|
@@ -686,7 +686,7 @@ function xe({
|
|
|
686
686
|
block: e
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function rn(e) {
|
|
690
690
|
return /* @__PURE__ */ s(
|
|
691
691
|
pe,
|
|
692
692
|
{
|
|
@@ -707,12 +707,12 @@ function an(e) {
|
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
710
|
+
function an(e) {
|
|
711
|
+
return V(() => {
|
|
712
712
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
713
713
|
}
|
|
714
714
|
function on(e) {
|
|
715
|
-
var i,
|
|
715
|
+
var i, r;
|
|
716
716
|
C(() => 0);
|
|
717
717
|
function t() {
|
|
718
718
|
return e.includeBlockProps ? {
|
|
@@ -732,9 +732,9 @@ function on(e) {
|
|
|
732
732
|
function n() {
|
|
733
733
|
return e.wrapperProps;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
736
|
-
}, [e.wrapperProps, (
|
|
737
|
-
|
|
735
|
+
return V(() => {
|
|
736
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
737
|
+
an,
|
|
738
738
|
{
|
|
739
739
|
load: e.Wrapper.load,
|
|
740
740
|
fallback: e.Wrapper.fallback,
|
|
@@ -749,9 +749,9 @@ const ln = ({
|
|
|
749
749
|
builderBlock: t,
|
|
750
750
|
context: n,
|
|
751
751
|
componentRef: i,
|
|
752
|
-
includeBlockProps:
|
|
752
|
+
includeBlockProps: r,
|
|
753
753
|
isInteractive: o,
|
|
754
|
-
contextValue:
|
|
754
|
+
contextValue: a
|
|
755
755
|
}) => {
|
|
756
756
|
const l = {
|
|
757
757
|
...e,
|
|
@@ -759,10 +759,10 @@ const ln = ({
|
|
|
759
759
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
760
760
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
761
761
|
*/
|
|
762
|
-
...
|
|
762
|
+
...r ? {
|
|
763
763
|
attributes: xe({
|
|
764
764
|
block: t,
|
|
765
|
-
context:
|
|
765
|
+
context: a
|
|
766
766
|
})
|
|
767
767
|
} : {}
|
|
768
768
|
};
|
|
@@ -771,7 +771,7 @@ const ln = ({
|
|
|
771
771
|
block: t,
|
|
772
772
|
context: n,
|
|
773
773
|
wrapperProps: e,
|
|
774
|
-
includeBlockProps:
|
|
774
|
+
includeBlockProps: r
|
|
775
775
|
} : l;
|
|
776
776
|
};
|
|
777
777
|
function Re(e) {
|
|
@@ -780,7 +780,7 @@ function Re(e) {
|
|
|
780
780
|
const [t, n] = C(
|
|
781
781
|
() => e.isInteractive ? on : e.componentRef
|
|
782
782
|
);
|
|
783
|
-
return
|
|
783
|
+
return V(() => {
|
|
784
784
|
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
785
785
|
t,
|
|
786
786
|
{
|
|
@@ -794,25 +794,25 @@ function Re(e) {
|
|
|
794
794
|
isInteractive: e.isInteractive,
|
|
795
795
|
contextValue: e.context
|
|
796
796
|
}),
|
|
797
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
798
|
-
|
|
797
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
798
|
+
ce,
|
|
799
799
|
{
|
|
800
|
-
block:
|
|
800
|
+
block: r,
|
|
801
801
|
context: e.context,
|
|
802
802
|
registeredComponents: e.registeredComponents,
|
|
803
803
|
linkComponent: e.linkComponent
|
|
804
804
|
},
|
|
805
|
-
|
|
805
|
+
r.id
|
|
806
806
|
))
|
|
807
807
|
}
|
|
808
808
|
) }) : null });
|
|
809
809
|
}
|
|
810
810
|
function Pe(e) {
|
|
811
811
|
const [t, n] = C(() => e.repeatContext);
|
|
812
|
-
return
|
|
812
|
+
return V(() => {
|
|
813
813
|
n(e.repeatContext);
|
|
814
814
|
}, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
|
-
|
|
815
|
+
ce,
|
|
816
816
|
{
|
|
817
817
|
block: e.block,
|
|
818
818
|
context: t,
|
|
@@ -821,8 +821,8 @@ function Pe(e) {
|
|
|
821
821
|
}
|
|
822
822
|
) });
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
var f,
|
|
824
|
+
function ce(e) {
|
|
825
|
+
var f, b, m, v;
|
|
826
826
|
function t() {
|
|
827
827
|
return zt({
|
|
828
828
|
block: e.block,
|
|
@@ -833,9 +833,9 @@ function se(e) {
|
|
|
833
833
|
value: null,
|
|
834
834
|
update: !1
|
|
835
835
|
}));
|
|
836
|
-
function
|
|
836
|
+
function r() {
|
|
837
837
|
var h;
|
|
838
|
-
if (n.value && !n.update && !
|
|
838
|
+
if (n.value && !n.update && !le())
|
|
839
839
|
return n.value;
|
|
840
840
|
const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
|
|
841
841
|
block: e.block,
|
|
@@ -848,34 +848,34 @@ function se(e) {
|
|
|
848
848
|
}
|
|
849
849
|
function o() {
|
|
850
850
|
return jt({
|
|
851
|
-
block:
|
|
851
|
+
block: r(),
|
|
852
852
|
registeredComponents: e.registeredComponents,
|
|
853
853
|
model: e.context.model
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
856
|
+
function a() {
|
|
857
857
|
var h;
|
|
858
|
-
return e.block.tagName === "a" || ((h =
|
|
858
|
+
return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
859
|
}
|
|
860
860
|
function l() {
|
|
861
861
|
var p, y;
|
|
862
862
|
if ((p = e.block.repeat) != null && p.collection)
|
|
863
863
|
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
864
|
-
const d = "hide" in
|
|
865
|
-
return ("show" in
|
|
864
|
+
const d = "hide" in r() ? r().hide : !1;
|
|
865
|
+
return ("show" in r() ? r().show : !0) && !d;
|
|
866
866
|
}
|
|
867
867
|
function c() {
|
|
868
868
|
var h, p;
|
|
869
|
-
return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p =
|
|
869
|
+
return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
|
|
870
870
|
}
|
|
871
871
|
function u() {
|
|
872
872
|
var d, h, p, y;
|
|
873
873
|
return {
|
|
874
|
-
blockChildren: (d =
|
|
874
|
+
blockChildren: (d = r().children) != null ? d : [],
|
|
875
875
|
componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
|
|
876
876
|
componentOptions: {
|
|
877
|
-
...Rt(
|
|
878
|
-
...Gt(o(),
|
|
877
|
+
...Rt(r(), e.context),
|
|
878
|
+
...Gt(o(), r()),
|
|
879
879
|
...Qt(o(), e.context),
|
|
880
880
|
...Kt(o(), e.linkComponent),
|
|
881
881
|
...Jt(
|
|
@@ -887,23 +887,23 @@ function se(e) {
|
|
|
887
887
|
context: e.context,
|
|
888
888
|
linkComponent: e.linkComponent,
|
|
889
889
|
registeredComponents: e.registeredComponents,
|
|
890
|
-
builderBlock:
|
|
890
|
+
builderBlock: r(),
|
|
891
891
|
includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
|
|
892
|
-
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC &&
|
|
892
|
+
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
return
|
|
896
|
-
const d =
|
|
895
|
+
return V(() => {
|
|
896
|
+
const d = r().id, h = r().animations;
|
|
897
897
|
h && d && Ot(
|
|
898
898
|
h.map((p) => ({
|
|
899
899
|
...p,
|
|
900
900
|
elementId: d
|
|
901
901
|
}))
|
|
902
902
|
);
|
|
903
|
-
}, []),
|
|
903
|
+
}, []), V(() => {
|
|
904
904
|
n.update = !0;
|
|
905
905
|
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
|
|
906
|
-
/* @__PURE__ */ s(Yt, { block:
|
|
906
|
+
/* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
|
|
907
907
|
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
|
|
908
908
|
Pe,
|
|
909
909
|
{
|
|
@@ -936,10 +936,10 @@ function se(e) {
|
|
|
936
936
|
},
|
|
937
937
|
Ee(h)
|
|
938
938
|
)) }) : /* @__PURE__ */ $(
|
|
939
|
-
|
|
939
|
+
rn,
|
|
940
940
|
{
|
|
941
|
-
Wrapper:
|
|
942
|
-
block:
|
|
941
|
+
Wrapper: a(),
|
|
942
|
+
block: r(),
|
|
943
943
|
context: e.context,
|
|
944
944
|
children: [
|
|
945
945
|
/* @__PURE__ */ s(
|
|
@@ -956,8 +956,8 @@ function se(e) {
|
|
|
956
956
|
isInteractive: u().isInteractive
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
|
-
(
|
|
960
|
-
|
|
959
|
+
(b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
|
|
960
|
+
ce,
|
|
961
961
|
{
|
|
962
962
|
block: d,
|
|
963
963
|
registeredComponents: e.registeredComponents,
|
|
@@ -975,22 +975,22 @@ function sn(e) {
|
|
|
975
975
|
const t = H(null);
|
|
976
976
|
C(() => !1);
|
|
977
977
|
function n() {
|
|
978
|
-
var
|
|
978
|
+
var a;
|
|
979
979
|
return [
|
|
980
980
|
"builder-blocks",
|
|
981
|
-
(
|
|
981
|
+
(a = e.blocks) != null && a.length ? "" : "no-blocks",
|
|
982
982
|
e.classNameProp
|
|
983
983
|
].filter(Boolean).join(" ");
|
|
984
984
|
}
|
|
985
985
|
function i() {
|
|
986
986
|
if (!e.path)
|
|
987
987
|
return;
|
|
988
|
-
const
|
|
989
|
-
return e.path.startsWith(
|
|
988
|
+
const a = "this.", l = "component.options.";
|
|
989
|
+
return e.path.startsWith(a) ? e.path.replace(a, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
var
|
|
993
|
-
|
|
991
|
+
function r() {
|
|
992
|
+
var a, l;
|
|
993
|
+
O() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
994
|
{
|
|
995
995
|
type: "builder.clickEmptyBlocks",
|
|
996
996
|
data: {
|
|
@@ -1002,8 +1002,8 @@ function sn(e) {
|
|
|
1002
1002
|
));
|
|
1003
1003
|
}
|
|
1004
1004
|
function o() {
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1005
|
+
var a, l;
|
|
1006
|
+
O() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1007
|
{
|
|
1008
1008
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1009
|
data: {
|
|
@@ -1014,8 +1014,8 @@ function sn(e) {
|
|
|
1014
1014
|
"*"
|
|
1015
1015
|
));
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1017
|
+
return V(() => {
|
|
1018
|
+
}, []), V(() => {
|
|
1019
1019
|
}, [e.blocks]), /* @__PURE__ */ $(R, { children: [
|
|
1020
1020
|
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
|
|
1021
1021
|
display: flex;
|
|
@@ -1030,9 +1030,9 @@ function sn(e) {
|
|
|
1030
1030
|
"builder-path": i(),
|
|
1031
1031
|
"builder-parent-id": e.parent,
|
|
1032
1032
|
style: e.styleProp,
|
|
1033
|
-
onClick: (
|
|
1034
|
-
onMouseEnter: (
|
|
1035
|
-
onKeyPress: (
|
|
1033
|
+
onClick: (a) => r(),
|
|
1034
|
+
onMouseEnter: (a) => o(),
|
|
1035
|
+
onKeyPress: (a) => r(),
|
|
1036
1036
|
...e.BlocksWrapperProps,
|
|
1037
1037
|
children: e.children
|
|
1038
1038
|
}
|
|
@@ -1040,7 +1040,7 @@ function sn(e) {
|
|
|
1040
1040
|
] });
|
|
1041
1041
|
}
|
|
1042
1042
|
function _(e) {
|
|
1043
|
-
var i,
|
|
1043
|
+
var i, r, o;
|
|
1044
1044
|
const t = we(ve), n = we(He);
|
|
1045
1045
|
return /* @__PURE__ */ $(
|
|
1046
1046
|
sn,
|
|
@@ -1051,18 +1051,18 @@ function _(e) {
|
|
|
1051
1051
|
styleProp: e.styleProp,
|
|
1052
1052
|
BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1053
1053
|
classNameProp: e.className,
|
|
1054
|
-
BlocksWrapper: ((
|
|
1054
|
+
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1055
1055
|
children: [
|
|
1056
1056
|
e.children,
|
|
1057
|
-
e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((
|
|
1058
|
-
|
|
1057
|
+
e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
|
|
1058
|
+
ce,
|
|
1059
1059
|
{
|
|
1060
|
-
block:
|
|
1060
|
+
block: a,
|
|
1061
1061
|
linkComponent: e.linkComponent,
|
|
1062
1062
|
context: e.context || t,
|
|
1063
1063
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1064
1064
|
},
|
|
1065
|
-
|
|
1065
|
+
a.id
|
|
1066
1066
|
)) }) : null
|
|
1067
1067
|
]
|
|
1068
1068
|
}
|
|
@@ -1080,28 +1080,28 @@ function un(e) {
|
|
|
1080
1080
|
function i() {
|
|
1081
1081
|
return e.stackColumnsAt || "tablet";
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1083
|
+
function r(y) {
|
|
1084
1084
|
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1085
1085
|
}
|
|
1086
1086
|
function o(y) {
|
|
1087
|
-
var
|
|
1088
|
-
return ((
|
|
1087
|
+
var S;
|
|
1088
|
+
return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const
|
|
1092
|
-
return `calc(${
|
|
1090
|
+
function a(y) {
|
|
1091
|
+
const S = o(y), k = t() * (n().length - 1) * (S / 100);
|
|
1092
|
+
return `calc(${S}% - ${k}px)`;
|
|
1093
1093
|
}
|
|
1094
1094
|
function l({
|
|
1095
1095
|
stackedStyle: y,
|
|
1096
|
-
desktopStyle:
|
|
1096
|
+
desktopStyle: S
|
|
1097
1097
|
}) {
|
|
1098
|
-
return i() === "tablet" ? y :
|
|
1098
|
+
return i() === "tablet" ? y : S;
|
|
1099
1099
|
}
|
|
1100
1100
|
function c({
|
|
1101
1101
|
stackedStyle: y,
|
|
1102
|
-
desktopStyle:
|
|
1102
|
+
desktopStyle: S
|
|
1103
1103
|
}) {
|
|
1104
|
-
return i() === "never" ?
|
|
1104
|
+
return i() === "never" ? S : y;
|
|
1105
1105
|
}
|
|
1106
1106
|
function u() {
|
|
1107
1107
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1115,8 +1115,8 @@ function un(e) {
|
|
|
1115
1115
|
})
|
|
1116
1116
|
};
|
|
1117
1117
|
}
|
|
1118
|
-
function
|
|
1119
|
-
const
|
|
1118
|
+
function b(y) {
|
|
1119
|
+
const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", I = 0;
|
|
1120
1120
|
return {
|
|
1121
1121
|
...{
|
|
1122
1122
|
display: "flex",
|
|
@@ -1124,14 +1124,14 @@ function un(e) {
|
|
|
1124
1124
|
alignItems: "stretch"
|
|
1125
1125
|
},
|
|
1126
1126
|
width: k,
|
|
1127
|
-
["marginLeft"]:
|
|
1127
|
+
["marginLeft"]: A,
|
|
1128
1128
|
"--column-width-mobile": c({
|
|
1129
1129
|
stackedStyle: T,
|
|
1130
1130
|
desktopStyle: k
|
|
1131
1131
|
}),
|
|
1132
1132
|
"--column-margin-left-mobile": c({
|
|
1133
1133
|
stackedStyle: I,
|
|
1134
|
-
desktopStyle:
|
|
1134
|
+
desktopStyle: A
|
|
1135
1135
|
}),
|
|
1136
1136
|
"--column-width-tablet": l({
|
|
1137
1137
|
stackedStyle: T,
|
|
@@ -1139,14 +1139,14 @@ function un(e) {
|
|
|
1139
1139
|
}),
|
|
1140
1140
|
"--column-margin-left-tablet": l({
|
|
1141
1141
|
stackedStyle: I,
|
|
1142
|
-
desktopStyle:
|
|
1142
|
+
desktopStyle: A
|
|
1143
1143
|
})
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
1146
|
function m(y) {
|
|
1147
|
-
var k,
|
|
1147
|
+
var k, A;
|
|
1148
1148
|
return Xe(
|
|
1149
|
-
((
|
|
1149
|
+
((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1150
1150
|
)[y].max;
|
|
1151
1151
|
}
|
|
1152
1152
|
function v() {
|
|
@@ -1177,13 +1177,13 @@ function un(e) {
|
|
|
1177
1177
|
},
|
|
1178
1178
|
`;
|
|
1179
1179
|
}
|
|
1180
|
-
function d(y,
|
|
1180
|
+
function d(y, S) {
|
|
1181
1181
|
return {
|
|
1182
1182
|
...y.link ? {
|
|
1183
1183
|
href: y.link
|
|
1184
1184
|
} : {},
|
|
1185
1185
|
[j()]: "builder-column",
|
|
1186
|
-
style: Ge(
|
|
1186
|
+
style: Ge(b(S))
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
return /* @__PURE__ */ $(R, { children: [
|
|
@@ -1206,16 +1206,16 @@ function un(e) {
|
|
|
1206
1206
|
nonce: e.builderContext.nonce
|
|
1207
1207
|
}
|
|
1208
1208
|
),
|
|
1209
|
-
(p = e.columns) == null ? void 0 : p.map((y,
|
|
1209
|
+
(p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
|
|
1210
1210
|
pe,
|
|
1211
1211
|
{
|
|
1212
|
-
TagName:
|
|
1212
|
+
TagName: r(y),
|
|
1213
1213
|
actionAttributes: {},
|
|
1214
|
-
attributes: d(y,
|
|
1214
|
+
attributes: d(y, S),
|
|
1215
1215
|
children: /* @__PURE__ */ s(
|
|
1216
1216
|
_,
|
|
1217
1217
|
{
|
|
1218
|
-
path: `columns.${
|
|
1218
|
+
path: `columns.${S}.blocks`,
|
|
1219
1219
|
parent: e.builderBlock.id,
|
|
1220
1220
|
context: e.builderContext,
|
|
1221
1221
|
registeredComponents: e.builderComponents,
|
|
@@ -1227,7 +1227,7 @@ function un(e) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
)
|
|
1229
1229
|
},
|
|
1230
|
-
|
|
1230
|
+
S
|
|
1231
1231
|
))
|
|
1232
1232
|
]
|
|
1233
1233
|
}
|
|
@@ -1241,8 +1241,8 @@ function Ve(e) {
|
|
|
1241
1241
|
return e.replace(/http(s)?:/, "");
|
|
1242
1242
|
}
|
|
1243
1243
|
function mn(e = "", t, n) {
|
|
1244
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1245
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1244
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1245
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1246
1246
|
}
|
|
1247
1247
|
function fn(e, t) {
|
|
1248
1248
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
@@ -1251,38 +1251,38 @@ function fn(e, t) {
|
|
|
1251
1251
|
return Ve(e);
|
|
1252
1252
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1253
1253
|
if (n) {
|
|
1254
|
-
const i = e.split(n[0]),
|
|
1255
|
-
return Ve(`${i[0]}_${o}${
|
|
1254
|
+
const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1255
|
+
return Ve(`${i[0]}_${o}${r}`);
|
|
1256
1256
|
}
|
|
1257
1257
|
return null;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function ne(e) {
|
|
1260
1260
|
if (!e)
|
|
1261
1261
|
return e;
|
|
1262
1262
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1263
1263
|
if (e.match(/builder\.io/)) {
|
|
1264
1264
|
let n = e;
|
|
1265
1265
|
const i = Number(e.split("?width=")[1]);
|
|
1266
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1266
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${mn(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1267
1267
|
}
|
|
1268
1268
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1269
1269
|
}
|
|
1270
1270
|
function hn(e) {
|
|
1271
|
-
var
|
|
1271
|
+
var r, o, a, l, c, u;
|
|
1272
1272
|
function t() {
|
|
1273
1273
|
var m;
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1274
|
+
const b = e.image || e.src;
|
|
1275
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1276
1276
|
// images, otherwise you can supply this prop manually
|
|
1277
|
-
!(typeof
|
|
1277
|
+
!(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
|
|
1278
1278
|
return e.srcset;
|
|
1279
1279
|
if (!e.noWebp) {
|
|
1280
1280
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1281
1281
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1282
|
-
return console.debug("Removed given srcset"),
|
|
1282
|
+
return console.debug("Removed given srcset"), ne(b);
|
|
1283
1283
|
} else if (e.image && !e.srcset)
|
|
1284
|
-
return
|
|
1285
|
-
return
|
|
1284
|
+
return ne(b);
|
|
1285
|
+
return ne(b);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
function n() {
|
|
@@ -1299,7 +1299,7 @@ function hn(e) {
|
|
|
1299
1299
|
};
|
|
1300
1300
|
return e.aspectRatio ? f : void 0;
|
|
1301
1301
|
}
|
|
1302
|
-
return
|
|
1302
|
+
return V(() => {
|
|
1303
1303
|
}, []), /* @__PURE__ */ $(R, { children: [
|
|
1304
1304
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1305
|
opacity: 1;
|
|
@@ -1341,7 +1341,7 @@ function hn(e) {
|
|
|
1341
1341
|
}
|
|
1342
1342
|
)
|
|
1343
1343
|
] }),
|
|
1344
|
-
e.aspectRatio && !((o = (
|
|
1344
|
+
e.aspectRatio && !((o = (r = e.builderBlock) == null ? void 0 : r.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1345
1345
|
"div",
|
|
1346
1346
|
{
|
|
1347
1347
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1350,7 +1350,7 @@ function hn(e) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
}
|
|
1352
1352
|
) : null,
|
|
1353
|
-
(l = (
|
|
1353
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1354
1354
|
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1355
1355
|
] })
|
|
1356
1356
|
] });
|
|
@@ -1377,24 +1377,24 @@ function gn(e) {
|
|
|
1377
1377
|
);
|
|
1378
1378
|
}
|
|
1379
1379
|
function bn(e, t, n, i) {
|
|
1380
|
-
function
|
|
1380
|
+
function r(u) {
|
|
1381
1381
|
return typeof u == "string";
|
|
1382
1382
|
}
|
|
1383
1383
|
function o(u) {
|
|
1384
1384
|
return typeof u == "number";
|
|
1385
1385
|
}
|
|
1386
|
-
function
|
|
1386
|
+
function a(u, f) {
|
|
1387
1387
|
return (() => {
|
|
1388
1388
|
const m = f.property, v = f.operator;
|
|
1389
1389
|
let d = f.value;
|
|
1390
1390
|
if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
|
|
1391
1391
|
return !0;
|
|
1392
1392
|
if (Array.isArray(d))
|
|
1393
|
-
return v === "isNot" ? d.every((p) =>
|
|
1393
|
+
return v === "isNot" ? d.every((p) => a(u, {
|
|
1394
1394
|
property: m,
|
|
1395
1395
|
operator: v,
|
|
1396
1396
|
value: p
|
|
1397
|
-
})) : !!d.find((p) =>
|
|
1397
|
+
})) : !!d.find((p) => a(u, {
|
|
1398
1398
|
property: m,
|
|
1399
1399
|
operator: v,
|
|
1400
1400
|
value: p
|
|
@@ -1408,11 +1408,11 @@ function bn(e, t, n, i) {
|
|
|
1408
1408
|
case "isNot":
|
|
1409
1409
|
return h !== d;
|
|
1410
1410
|
case "contains":
|
|
1411
|
-
return (
|
|
1411
|
+
return (r(h) || Array.isArray(h)) && h.includes(String(d));
|
|
1412
1412
|
case "startsWith":
|
|
1413
|
-
return
|
|
1413
|
+
return r(h) && h.startsWith(String(d));
|
|
1414
1414
|
case "endsWith":
|
|
1415
|
-
return
|
|
1415
|
+
return r(h) && h.endsWith(String(d));
|
|
1416
1416
|
case "greaterThan":
|
|
1417
1417
|
return o(h) && o(d) && h > d;
|
|
1418
1418
|
case "lessThan":
|
|
@@ -1431,7 +1431,7 @@ function bn(e, t, n, i) {
|
|
|
1431
1431
|
startDate: n,
|
|
1432
1432
|
endDate: i
|
|
1433
1433
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1434
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) =>
|
|
1434
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => a(e, u));
|
|
1435
1435
|
}
|
|
1436
1436
|
const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1437
1437
|
if (!navigator.cookieEnabled) {
|
|
@@ -1594,25 +1594,25 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1594
1594
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
|
-
}`,
|
|
1597
|
+
}`, ie = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
|
|
1598
1598
|
function Sn(e, t) {
|
|
1599
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
1599
|
+
return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !K();
|
|
1600
1600
|
}
|
|
1601
1601
|
function kn({
|
|
1602
1602
|
variants: e,
|
|
1603
1603
|
previewingIndex: t,
|
|
1604
1604
|
isHydrated: n,
|
|
1605
1605
|
filteredVariants: i,
|
|
1606
|
-
fallbackBlocks:
|
|
1606
|
+
fallbackBlocks: r
|
|
1607
1607
|
}) {
|
|
1608
|
-
var
|
|
1608
|
+
var a;
|
|
1609
1609
|
const o = {
|
|
1610
|
-
blocks:
|
|
1610
|
+
blocks: r != null ? r : [],
|
|
1611
1611
|
path: "this.children",
|
|
1612
|
-
index:
|
|
1612
|
+
index: ie
|
|
1613
1613
|
};
|
|
1614
|
-
if (n &&
|
|
1615
|
-
if (typeof t == "number" && t < ((
|
|
1614
|
+
if (n && O()) {
|
|
1615
|
+
if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
|
|
1616
1616
|
const l = e == null ? void 0 : e[t];
|
|
1617
1617
|
if (l)
|
|
1618
1618
|
return {
|
|
@@ -1641,7 +1641,7 @@ const Cn = () => `
|
|
|
1641
1641
|
window.${xn} = ${pn}
|
|
1642
1642
|
window.${et} = ${yn}
|
|
1643
1643
|
window.${tt} = ${vn}
|
|
1644
|
-
`, it =
|
|
1644
|
+
`, it = F === "react", Tn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
|
|
1645
1645
|
"@type": "@builder.io/sdk:Element",
|
|
1646
1646
|
layerName: "Accordion item title",
|
|
1647
1647
|
responsiveStyles: {
|
|
@@ -1767,12 +1767,12 @@ const Cn = () => `
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}, Ae = (e) => e.toString();
|
|
1769
1769
|
function En(e) {
|
|
1770
|
-
var
|
|
1770
|
+
var b;
|
|
1771
1771
|
const [t, n] = C(() => []);
|
|
1772
1772
|
function i() {
|
|
1773
1773
|
return !!(e.grid || e.oneAtATime);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function r() {
|
|
1776
1776
|
return {
|
|
1777
1777
|
display: "flex",
|
|
1778
1778
|
alignItems: "stretch",
|
|
@@ -1797,7 +1797,7 @@ function En(e) {
|
|
|
1797
1797
|
Object.entries(v).filter(([d, h]) => h !== void 0)
|
|
1798
1798
|
);
|
|
1799
1799
|
}
|
|
1800
|
-
function
|
|
1800
|
+
function a(m) {
|
|
1801
1801
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1802
1802
|
}
|
|
1803
1803
|
function l(m) {
|
|
@@ -1816,13 +1816,13 @@ function En(e) {
|
|
|
1816
1816
|
if (p) {
|
|
1817
1817
|
if (p.classList.contains("builder-accordion-detail"))
|
|
1818
1818
|
continue;
|
|
1819
|
-
const
|
|
1820
|
-
if (
|
|
1819
|
+
const S = p.getBoundingClientRect();
|
|
1820
|
+
if (S.left > y.left) {
|
|
1821
1821
|
const k = parseInt(
|
|
1822
1822
|
p.getAttribute("data-index") || "",
|
|
1823
1823
|
10
|
|
1824
1824
|
);
|
|
1825
|
-
isNaN(k) || (y =
|
|
1825
|
+
isNaN(k) || (y = S, m = k);
|
|
1826
1826
|
} else
|
|
1827
1827
|
break;
|
|
1828
1828
|
}
|
|
@@ -1844,11 +1844,11 @@ function En(e) {
|
|
|
1844
1844
|
function f(m) {
|
|
1845
1845
|
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1846
1846
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1847
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
|
|
1848
1848
|
/* @__PURE__ */ s(
|
|
1849
1849
|
"div",
|
|
1850
1850
|
{
|
|
1851
|
-
className:
|
|
1851
|
+
className: a(v),
|
|
1852
1852
|
style: {
|
|
1853
1853
|
...o(),
|
|
1854
1854
|
...e.grid && {
|
|
@@ -2106,7 +2106,7 @@ const Rn = {
|
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
2108
2108
|
const n = e.get("columns");
|
|
2109
|
-
Array.isArray(n) && n.find((
|
|
2109
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2110
2110
|
}
|
|
2111
2111
|
}, {
|
|
2112
2112
|
name: "space",
|
|
@@ -2160,29 +2160,29 @@ const Rn = {
|
|
|
2160
2160
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2161
2161
|
onChange: (e) => {
|
|
2162
2162
|
e.delete("srcset"), e.delete("noWebp");
|
|
2163
|
-
function n(
|
|
2163
|
+
function n(a, l = 6e4) {
|
|
2164
2164
|
return new Promise((c, u) => {
|
|
2165
2165
|
const f = document.createElement("img");
|
|
2166
|
-
let
|
|
2166
|
+
let b = !1;
|
|
2167
2167
|
f.onload = () => {
|
|
2168
|
-
|
|
2168
|
+
b = !0, c(f);
|
|
2169
2169
|
}, f.addEventListener("error", (m) => {
|
|
2170
2170
|
console.warn("Image load failed", m.error), u(m.error);
|
|
2171
|
-
}), f.src =
|
|
2172
|
-
|
|
2171
|
+
}), f.src = a, setTimeout(() => {
|
|
2172
|
+
b || u(new Error("Image load timed out"));
|
|
2173
2173
|
}, l);
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
|
-
function i(
|
|
2177
|
-
return Math.round(
|
|
2176
|
+
function i(a) {
|
|
2177
|
+
return Math.round(a * 1e3) / 1e3;
|
|
2178
2178
|
}
|
|
2179
|
-
const
|
|
2180
|
-
if (fetch(
|
|
2181
|
-
|
|
2182
|
-
}),
|
|
2183
|
-
return n(
|
|
2179
|
+
const r = e.get("image"), o = e.get("aspectRatio");
|
|
2180
|
+
if (fetch(r).then((a) => a.blob()).then((a) => {
|
|
2181
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
2182
|
+
}), r && (!o || o === 0.7041))
|
|
2183
|
+
return n(r).then((a) => {
|
|
2184
2184
|
const l = e.get("aspectRatio");
|
|
2185
|
-
e.get("image") ===
|
|
2185
|
+
e.get("image") === r && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
2186
2186
|
});
|
|
2187
2187
|
}
|
|
2188
2188
|
}, {
|
|
@@ -2300,10 +2300,10 @@ function q(e) {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
}
|
|
2302
2302
|
function $n(e) {
|
|
2303
|
-
var
|
|
2303
|
+
var S, k, A, T, I, g, x, w, D, L, W, P, U;
|
|
2304
2304
|
const t = H(null), [n, i] = C(
|
|
2305
2305
|
() => Ce.getUserAttributes()
|
|
2306
|
-
), [
|
|
2306
|
+
), [r, o] = C(
|
|
2307
2307
|
() => {
|
|
2308
2308
|
var E, B, N;
|
|
2309
2309
|
return Tn(
|
|
@@ -2312,7 +2312,7 @@ function $n(e) {
|
|
|
2312
2312
|
(N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
|
-
), [
|
|
2315
|
+
), [a, l] = C(
|
|
2316
2316
|
() => {
|
|
2317
2317
|
var E, B, N;
|
|
2318
2318
|
return In(
|
|
@@ -2321,7 +2321,7 @@ function $n(e) {
|
|
|
2321
2321
|
(N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
|
|
2322
2322
|
);
|
|
2323
2323
|
}
|
|
2324
|
-
), [c, u] = C(() => []), [f,
|
|
2324
|
+
), [c, u] = C(() => []), [f, b] = C(
|
|
2325
2325
|
() => {
|
|
2326
2326
|
var E;
|
|
2327
2327
|
return Sn(
|
|
@@ -2370,20 +2370,23 @@ function $n(e) {
|
|
|
2370
2370
|
}
|
|
2371
2371
|
).join("");
|
|
2372
2372
|
}
|
|
2373
|
-
return
|
|
2373
|
+
return V(() => {
|
|
2374
2374
|
var B;
|
|
2375
2375
|
v(!0);
|
|
2376
2376
|
const E = Ce.subscribeOnUserAttributesChange(
|
|
2377
2377
|
(N) => {
|
|
2378
2378
|
i(N);
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
fireImmediately: F === "qwik"
|
|
2379
2382
|
}
|
|
2380
2383
|
);
|
|
2381
|
-
if (!(
|
|
2384
|
+
if (!(O() || le())) {
|
|
2382
2385
|
const N = h()[0];
|
|
2383
2386
|
t.current && (t.current.dispatchEvent(
|
|
2384
2387
|
new CustomEvent("builder.variantLoaded", {
|
|
2385
2388
|
detail: {
|
|
2386
|
-
variant: N ||
|
|
2389
|
+
variant: N || ie,
|
|
2387
2390
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2388
2391
|
},
|
|
2389
2392
|
bubbles: !0
|
|
@@ -2394,7 +2397,7 @@ function $n(e) {
|
|
|
2394
2397
|
te.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2395
2398
|
new CustomEvent("builder.variantDisplayed", {
|
|
2396
2399
|
detail: {
|
|
2397
|
-
variant: N ||
|
|
2400
|
+
variant: N || ie,
|
|
2398
2401
|
content: (G = e.builderContext) == null ? void 0 : G.content
|
|
2399
2402
|
},
|
|
2400
2403
|
bubbles: !0
|
|
@@ -2404,24 +2407,24 @@ function $n(e) {
|
|
|
2404
2407
|
}).observe(t.current));
|
|
2405
2408
|
}
|
|
2406
2409
|
c.push(E);
|
|
2407
|
-
}, []),
|
|
2410
|
+
}, []), V(() => () => {
|
|
2408
2411
|
c.forEach((E) => E());
|
|
2409
2412
|
}, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
|
|
2410
|
-
m &&
|
|
2413
|
+
m && re.includes(F) ? /* @__PURE__ */ s(
|
|
2411
2414
|
_,
|
|
2412
2415
|
{
|
|
2413
2416
|
blocks: p().blocks,
|
|
2414
|
-
parent: (
|
|
2417
|
+
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2415
2418
|
path: p().path,
|
|
2416
2419
|
context: e.builderContext,
|
|
2417
2420
|
registeredComponents: e.builderComponents,
|
|
2418
2421
|
BlocksWrapperProps: {
|
|
2419
2422
|
...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
|
|
2420
|
-
"data-variant-id": `${(
|
|
2423
|
+
"data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
|
|
2421
2424
|
}
|
|
2422
2425
|
}
|
|
2423
2426
|
) : null,
|
|
2424
|
-
!m &&
|
|
2427
|
+
!m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ $(R, { children: [
|
|
2425
2428
|
f ? /* @__PURE__ */ $(R, { children: [
|
|
2426
2429
|
/* @__PURE__ */ s(
|
|
2427
2430
|
ee,
|
|
@@ -2434,9 +2437,9 @@ function $n(e) {
|
|
|
2434
2437
|
/* @__PURE__ */ s(
|
|
2435
2438
|
q,
|
|
2436
2439
|
{
|
|
2437
|
-
nonce: ((
|
|
2438
|
-
scriptStr:
|
|
2439
|
-
id: `variants-visibility-script-${(
|
|
2440
|
+
nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
|
|
2441
|
+
scriptStr: a,
|
|
2442
|
+
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2440
2443
|
}
|
|
2441
2444
|
),
|
|
2442
2445
|
(w = e.variants) == null ? void 0 : w.map((E, B) => {
|
|
@@ -2459,7 +2462,7 @@ function $n(e) {
|
|
|
2459
2462
|
q,
|
|
2460
2463
|
{
|
|
2461
2464
|
nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
|
|
2462
|
-
scriptStr:
|
|
2465
|
+
scriptStr: r,
|
|
2463
2466
|
id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
|
|
2464
2467
|
}
|
|
2465
2468
|
)
|
|
@@ -2472,20 +2475,20 @@ function $n(e) {
|
|
|
2472
2475
|
_,
|
|
2473
2476
|
{
|
|
2474
2477
|
blocks: p().blocks,
|
|
2475
|
-
parent: (
|
|
2478
|
+
parent: (D = e.builderBlock) == null ? void 0 : D.id,
|
|
2476
2479
|
path: p().path,
|
|
2477
2480
|
context: e.builderContext,
|
|
2478
2481
|
registeredComponents: e.builderComponents,
|
|
2479
2482
|
BlocksWrapperProps: {
|
|
2480
|
-
...(
|
|
2481
|
-
"data-variant-id": `${(
|
|
2483
|
+
...(L = e.builderContext) == null ? void 0 : L.BlocksWrapperProps,
|
|
2484
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2482
2485
|
},
|
|
2483
2486
|
children: f ? /* @__PURE__ */ s(
|
|
2484
2487
|
q,
|
|
2485
2488
|
{
|
|
2486
|
-
nonce: ((
|
|
2487
|
-
scriptStr:
|
|
2488
|
-
id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${
|
|
2489
|
+
nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
|
|
2490
|
+
scriptStr: r,
|
|
2491
|
+
id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ie}`
|
|
2489
2492
|
}
|
|
2490
2493
|
) : null
|
|
2491
2494
|
}
|
|
@@ -2760,11 +2763,11 @@ function _n(e) {
|
|
|
2760
2763
|
const [t, n] = C(
|
|
2761
2764
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2762
2765
|
);
|
|
2763
|
-
function i(
|
|
2764
|
-
return e.tabs && e.tabs[
|
|
2766
|
+
function i(a) {
|
|
2767
|
+
return e.tabs && e.tabs[a].content;
|
|
2765
2768
|
}
|
|
2766
|
-
function a
|
|
2767
|
-
|
|
2769
|
+
function r(a) {
|
|
2770
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2768
2771
|
}
|
|
2769
2772
|
return /* @__PURE__ */ $("div", { children: [
|
|
2770
2773
|
/* @__PURE__ */ s(
|
|
@@ -2777,20 +2780,20 @@ function _n(e) {
|
|
|
2777
2780
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2778
2781
|
overflow: "auto"
|
|
2779
2782
|
},
|
|
2780
|
-
children: (o = e.tabs) == null ? void 0 : o.map((
|
|
2783
|
+
children: (o = e.tabs) == null ? void 0 : o.map((a, l) => /* @__PURE__ */ s(
|
|
2781
2784
|
"span",
|
|
2782
2785
|
{
|
|
2783
2786
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2784
2787
|
style: {
|
|
2785
2788
|
...t === l ? e.activeTabStyle : {}
|
|
2786
2789
|
},
|
|
2787
|
-
onClick: (c) =>
|
|
2790
|
+
onClick: (c) => r(l),
|
|
2788
2791
|
children: /* @__PURE__ */ s(
|
|
2789
2792
|
_,
|
|
2790
2793
|
{
|
|
2791
2794
|
parent: e.builderBlock.id,
|
|
2792
2795
|
path: `tabs.${l}.label`,
|
|
2793
|
-
blocks:
|
|
2796
|
+
blocks: a.label,
|
|
2794
2797
|
context: e.builderContext,
|
|
2795
2798
|
registeredComponents: e.builderComponents,
|
|
2796
2799
|
linkComponent: e.builderLinkComponent
|
|
@@ -2871,8 +2874,8 @@ const Mn = {
|
|
|
2871
2874
|
}]
|
|
2872
2875
|
};
|
|
2873
2876
|
function qn(e) {
|
|
2874
|
-
const t = H(null), [n, i] = C(() => []), [
|
|
2875
|
-
function
|
|
2877
|
+
const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []);
|
|
2878
|
+
function a() {
|
|
2876
2879
|
var c;
|
|
2877
2880
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2878
2881
|
return;
|
|
@@ -2883,30 +2886,30 @@ function qn(e) {
|
|
|
2883
2886
|
if (n.includes(f.src))
|
|
2884
2887
|
continue;
|
|
2885
2888
|
n.push(f.src);
|
|
2886
|
-
const
|
|
2887
|
-
|
|
2889
|
+
const b = document.createElement("script");
|
|
2890
|
+
b.async = !0, b.src = f.src, document.head.appendChild(b);
|
|
2888
2891
|
} else if (!f.type || [
|
|
2889
2892
|
"text/javascript",
|
|
2890
2893
|
"application/javascript",
|
|
2891
2894
|
"application/ecmascript"
|
|
2892
2895
|
].includes(f.type)) {
|
|
2893
|
-
if (
|
|
2896
|
+
if (r.includes(f.innerText))
|
|
2894
2897
|
continue;
|
|
2895
2898
|
try {
|
|
2896
|
-
|
|
2897
|
-
} catch (
|
|
2899
|
+
r.push(f.innerText), new Function(f.innerText)();
|
|
2900
|
+
} catch (b) {
|
|
2898
2901
|
Z.warn(
|
|
2899
2902
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2900
|
-
|
|
2903
|
+
b
|
|
2901
2904
|
);
|
|
2902
2905
|
}
|
|
2903
2906
|
}
|
|
2904
2907
|
}
|
|
2905
2908
|
}
|
|
2906
|
-
return
|
|
2907
|
-
|
|
2908
|
-
}, []),
|
|
2909
|
-
|
|
2909
|
+
return V(() => {
|
|
2910
|
+
a();
|
|
2911
|
+
}, []), V(() => {
|
|
2912
|
+
O() && a();
|
|
2910
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2911
2914
|
"div",
|
|
2912
2915
|
{
|
|
@@ -2933,28 +2936,28 @@ const jn = {
|
|
|
2933
2936
|
}]
|
|
2934
2937
|
}, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
|
|
2935
2938
|
function Jn(e) {
|
|
2936
|
-
const t = H(null), [n, i] = C(() => []), [
|
|
2939
|
+
const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []), [a, l] = C(() => !1);
|
|
2937
2940
|
function c() {
|
|
2938
2941
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2939
2942
|
return;
|
|
2940
2943
|
const u = t.current.getElementsByTagName("script");
|
|
2941
2944
|
for (let f = 0; f < u.length; f++) {
|
|
2942
|
-
const
|
|
2943
|
-
if (
|
|
2944
|
-
n.push(
|
|
2945
|
+
const b = u[f];
|
|
2946
|
+
if (b.src && !n.includes(b.src)) {
|
|
2947
|
+
n.push(b.src);
|
|
2945
2948
|
const m = document.createElement("script");
|
|
2946
|
-
m.async = !0, m.src =
|
|
2947
|
-
} else if (Kn(
|
|
2949
|
+
m.async = !0, m.src = b.src, document.head.appendChild(m);
|
|
2950
|
+
} else if (Kn(b) && !r.includes(b.innerText))
|
|
2948
2951
|
try {
|
|
2949
|
-
|
|
2952
|
+
r.push(b.innerText), new Function(b.innerText)();
|
|
2950
2953
|
} catch (m) {
|
|
2951
2954
|
Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
|
|
2952
2955
|
}
|
|
2953
2956
|
}
|
|
2954
2957
|
}
|
|
2955
|
-
return
|
|
2956
|
-
t.current && !
|
|
2957
|
-
}, [t.current,
|
|
2958
|
+
return V(() => {
|
|
2959
|
+
t.current && !a && (l(!0), c());
|
|
2960
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2958
2961
|
"div",
|
|
2959
2962
|
{
|
|
2960
2963
|
className: "builder-embed",
|
|
@@ -3205,113 +3208,125 @@ const Gn = {
|
|
|
3205
3208
|
return Qn.includes(e) ? e : "production";
|
|
3206
3209
|
};
|
|
3207
3210
|
function Xn(e) {
|
|
3208
|
-
const t = H(null), [n, i] = C(() => "unsubmitted"), [
|
|
3209
|
-
function c(
|
|
3211
|
+
const t = H(null), [n, i] = C(() => "unsubmitted"), [r, o] = C(() => null), [a, l] = C(() => "");
|
|
3212
|
+
function c(b) {
|
|
3210
3213
|
var v, d;
|
|
3211
3214
|
const m = {
|
|
3212
3215
|
...e.builderContext.rootState,
|
|
3213
|
-
...
|
|
3216
|
+
...b
|
|
3214
3217
|
};
|
|
3215
3218
|
e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
|
|
3216
3219
|
}
|
|
3217
3220
|
function u() {
|
|
3218
|
-
return
|
|
3221
|
+
return O() && e.previewState || n;
|
|
3219
3222
|
}
|
|
3220
|
-
function f(
|
|
3223
|
+
function f(b) {
|
|
3221
3224
|
var v;
|
|
3222
3225
|
const m = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3223
3226
|
if (e.sendSubmissionsTo === "zapier")
|
|
3224
|
-
|
|
3227
|
+
b.preventDefault();
|
|
3225
3228
|
else if (m) {
|
|
3226
3229
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3227
|
-
|
|
3230
|
+
b.preventDefault();
|
|
3228
3231
|
return;
|
|
3229
3232
|
}
|
|
3230
|
-
|
|
3231
|
-
const d =
|
|
3233
|
+
b.preventDefault();
|
|
3234
|
+
const d = b.currentTarget || b.target, h = e.customHeaders || {};
|
|
3232
3235
|
let p;
|
|
3233
|
-
const y = new FormData(d),
|
|
3234
|
-
let
|
|
3235
|
-
const w =
|
|
3236
|
-
if (
|
|
3237
|
-
if (
|
|
3238
|
-
if (
|
|
3239
|
-
return
|
|
3236
|
+
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
|
|
3237
|
+
let x;
|
|
3238
|
+
const w = g.name;
|
|
3239
|
+
if (g instanceof HTMLInputElement)
|
|
3240
|
+
if (g.type === "radio") {
|
|
3241
|
+
if (g.checked)
|
|
3242
|
+
return x = g.name, {
|
|
3240
3243
|
key: w,
|
|
3241
|
-
value:
|
|
3244
|
+
value: x
|
|
3242
3245
|
};
|
|
3243
|
-
} else if (
|
|
3244
|
-
|
|
3245
|
-
else if (
|
|
3246
|
-
const
|
|
3247
|
-
isNaN(
|
|
3246
|
+
} else if (g.type === "checkbox")
|
|
3247
|
+
x = g.checked;
|
|
3248
|
+
else if (g.type === "number" || g.type === "range") {
|
|
3249
|
+
const D = g.valueAsNumber;
|
|
3250
|
+
isNaN(D) || (x = D);
|
|
3248
3251
|
} else
|
|
3249
|
-
|
|
3252
|
+
g.type === "file" ? x = g.files : x = g.value;
|
|
3250
3253
|
else
|
|
3251
|
-
|
|
3254
|
+
x = g.value;
|
|
3252
3255
|
return {
|
|
3253
3256
|
key: w,
|
|
3254
|
-
value:
|
|
3257
|
+
value: x
|
|
3255
3258
|
};
|
|
3256
3259
|
});
|
|
3257
3260
|
let k = e.contentType;
|
|
3258
|
-
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(
|
|
3259
|
-
(
|
|
3261
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
|
|
3262
|
+
(g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
|
|
3260
3263
|
}), k !== "application/json")
|
|
3261
3264
|
p = y;
|
|
3262
3265
|
else {
|
|
3263
|
-
const
|
|
3264
|
-
Array.from(
|
|
3265
|
-
Ue(
|
|
3266
|
-
}), p = JSON.stringify(
|
|
3266
|
+
const g = {};
|
|
3267
|
+
Array.from(S).forEach(({ value: x, key: w }) => {
|
|
3268
|
+
Ue(g, w, x);
|
|
3269
|
+
}), p = JSON.stringify(g);
|
|
3267
3270
|
}
|
|
3268
3271
|
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
|
|
3269
|
-
const
|
|
3270
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3272
|
+
const A = new CustomEvent("presubmit", { detail: { body: p } });
|
|
3273
|
+
if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
|
|
3271
3274
|
return;
|
|
3272
|
-
i("sending")
|
|
3275
|
+
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3276
|
+
const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3277
|
+
console.error(g), i("error"), c({ formErrorMessage: g });
|
|
3278
|
+
return;
|
|
3279
|
+
}
|
|
3273
3280
|
const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3274
3281
|
e.sendSubmissionsToEmail || ""
|
|
3275
3282
|
)}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3276
3283
|
Fe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
|
|
3277
|
-
async (
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3284
|
+
async (g) => {
|
|
3285
|
+
var D, L;
|
|
3286
|
+
let x;
|
|
3287
|
+
const w = g.headers.get("content-type");
|
|
3288
|
+
if (w && w.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
|
|
3289
|
+
const W = new CustomEvent("submit:error", {
|
|
3290
|
+
detail: { error: x, status: g.status }
|
|
3291
|
+
});
|
|
3292
|
+
if ((D = t.current) != null && D.nativeElement && ((L = t.current) == null || L.nativeElement.dispatchEvent(W), W.defaultPrevented))
|
|
3293
|
+
return;
|
|
3294
|
+
o(x), i("error");
|
|
3295
|
+
let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3296
|
+
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3297
|
+
return;
|
|
3283
3298
|
}
|
|
3284
|
-
if (o(
|
|
3285
|
-
const
|
|
3286
|
-
detail: { res:
|
|
3299
|
+
if (o(x), i(g.ok ? "success" : "error"), g.ok) {
|
|
3300
|
+
const W = new CustomEvent("submit:success", {
|
|
3301
|
+
detail: { res: g, body: x }
|
|
3287
3302
|
});
|
|
3288
3303
|
if (t.current) {
|
|
3289
|
-
if (t.current.dispatchEvent(
|
|
3304
|
+
if (t.current.dispatchEvent(W), W.defaultPrevented)
|
|
3290
3305
|
return;
|
|
3291
3306
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3292
3307
|
}
|
|
3293
3308
|
if (e.successUrl)
|
|
3294
3309
|
if (t.current) {
|
|
3295
|
-
const
|
|
3310
|
+
const P = new CustomEvent("route", {
|
|
3296
3311
|
detail: { url: e.successUrl }
|
|
3297
3312
|
});
|
|
3298
|
-
t.current.dispatchEvent(
|
|
3313
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3299
3314
|
} else
|
|
3300
3315
|
location.href = e.successUrl;
|
|
3301
3316
|
}
|
|
3302
3317
|
},
|
|
3303
|
-
(
|
|
3304
|
-
const
|
|
3305
|
-
detail: { error:
|
|
3318
|
+
(g) => {
|
|
3319
|
+
const x = new CustomEvent("submit:error", {
|
|
3320
|
+
detail: { error: g }
|
|
3306
3321
|
});
|
|
3307
|
-
t.current && (t.current.dispatchEvent(
|
|
3322
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
|
|
3308
3323
|
}
|
|
3309
3324
|
);
|
|
3310
3325
|
}
|
|
3311
3326
|
}
|
|
3312
3327
|
return /* @__PURE__ */ $(R, { children: [
|
|
3313
3328
|
" ",
|
|
3314
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3329
|
+
/* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
|
|
3315
3330
|
" ",
|
|
3316
3331
|
/* @__PURE__ */ $(
|
|
3317
3332
|
"form",
|
|
@@ -3321,7 +3336,7 @@ function Xn(e) {
|
|
|
3321
3336
|
action: !e.sendWithJs && e.action,
|
|
3322
3337
|
method: e.method,
|
|
3323
3338
|
name: e.name,
|
|
3324
|
-
onSubmit: (
|
|
3339
|
+
onSubmit: (b) => f(b),
|
|
3325
3340
|
...e.attributes,
|
|
3326
3341
|
children: [
|
|
3327
3342
|
e.children,
|
|
@@ -3341,7 +3356,7 @@ function Xn(e) {
|
|
|
3341
3356
|
context: e.builderContext
|
|
3342
3357
|
}
|
|
3343
3358
|
) : null,
|
|
3344
|
-
u() === "error" &&
|
|
3359
|
+
u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
|
|
3345
3360
|
u() === "success" ? /* @__PURE__ */ s(
|
|
3346
3361
|
_,
|
|
3347
3362
|
{
|
|
@@ -3413,7 +3428,7 @@ function ei(e) {
|
|
|
3413
3428
|
"input",
|
|
3414
3429
|
{
|
|
3415
3430
|
...e.attributes,
|
|
3416
|
-
key:
|
|
3431
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3417
3432
|
placeholder: e.placeholder,
|
|
3418
3433
|
type: e.type,
|
|
3419
3434
|
name: e.name,
|
|
@@ -3473,7 +3488,7 @@ function ni(e) {
|
|
|
3473
3488
|
{
|
|
3474
3489
|
...e.attributes,
|
|
3475
3490
|
value: e.value,
|
|
3476
|
-
key:
|
|
3491
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3477
3492
|
defaultValue: e.defaultValue,
|
|
3478
3493
|
name: e.name,
|
|
3479
3494
|
required: e.required
|
|
@@ -3507,10 +3522,10 @@ const ii = {
|
|
|
3507
3522
|
// TODO: defaultChildren
|
|
3508
3523
|
// canHaveChildren: true,
|
|
3509
3524
|
};
|
|
3510
|
-
function
|
|
3525
|
+
function ri(e) {
|
|
3511
3526
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3512
3527
|
}
|
|
3513
|
-
const
|
|
3528
|
+
const ai = {
|
|
3514
3529
|
name: "Form:TextArea",
|
|
3515
3530
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3516
3531
|
inputs: [{
|
|
@@ -3576,6 +3591,11 @@ const li = {
|
|
|
3576
3591
|
static: !0
|
|
3577
3592
|
};
|
|
3578
3593
|
function si(e) {
|
|
3594
|
+
function t() {
|
|
3595
|
+
const n = e.imgSrc || e.image;
|
|
3596
|
+
if (!(!n || typeof n != "string") && n.match(/builder\.io/))
|
|
3597
|
+
return ne(n);
|
|
3598
|
+
}
|
|
3579
3599
|
return /* @__PURE__ */ s(
|
|
3580
3600
|
"img",
|
|
3581
3601
|
{
|
|
@@ -3585,9 +3605,10 @@ function si(e) {
|
|
|
3585
3605
|
},
|
|
3586
3606
|
alt: e.altText,
|
|
3587
3607
|
src: e.imgSrc || e.image,
|
|
3608
|
+
srcSet: t(),
|
|
3588
3609
|
...e.attributes
|
|
3589
3610
|
},
|
|
3590
|
-
|
|
3611
|
+
O() && e.imgSrc || "default-key"
|
|
3591
3612
|
);
|
|
3592
3613
|
}
|
|
3593
3614
|
const ci = {
|
|
@@ -3676,7 +3697,7 @@ const ci = {
|
|
|
3676
3697
|
}
|
|
3677
3698
|
};
|
|
3678
3699
|
function ui(e) {
|
|
3679
|
-
var
|
|
3700
|
+
var a, l, c, u, f, b, m;
|
|
3680
3701
|
const t = H(null);
|
|
3681
3702
|
function n() {
|
|
3682
3703
|
return {
|
|
@@ -3702,9 +3723,9 @@ function ui(e) {
|
|
|
3702
3723
|
...n()
|
|
3703
3724
|
};
|
|
3704
3725
|
}
|
|
3705
|
-
const [
|
|
3726
|
+
const [r, o] = C(() => {
|
|
3706
3727
|
});
|
|
3707
|
-
return
|
|
3728
|
+
return V(() => {
|
|
3708
3729
|
if (e.lazyLoad) {
|
|
3709
3730
|
const v = new IntersectionObserver(function(d) {
|
|
3710
3731
|
d.forEach(function(h) {
|
|
@@ -3715,8 +3736,8 @@ function ui(e) {
|
|
|
3715
3736
|
Array.from(p.children).filter(
|
|
3716
3737
|
(y) => y instanceof HTMLElement && y.tagName === "SOURCE"
|
|
3717
3738
|
).forEach((y) => {
|
|
3718
|
-
const
|
|
3719
|
-
|
|
3739
|
+
const S = y.dataset.src;
|
|
3740
|
+
S && (y.src = S);
|
|
3720
3741
|
}), p.load(), v.unobserve(p);
|
|
3721
3742
|
} catch (y) {
|
|
3722
3743
|
console.error("Error loading lazy video:", y);
|
|
@@ -3725,8 +3746,8 @@ function ui(e) {
|
|
|
3725
3746
|
});
|
|
3726
3747
|
t.current && v.observe(t.current), o(v);
|
|
3727
3748
|
}
|
|
3728
|
-
}, []),
|
|
3729
|
-
|
|
3749
|
+
}, []), V(() => () => {
|
|
3750
|
+
r && r.disconnect();
|
|
3730
3751
|
}, []), /* @__PURE__ */ $(
|
|
3731
3752
|
"div",
|
|
3732
3753
|
{
|
|
@@ -3744,7 +3765,7 @@ function ui(e) {
|
|
|
3744
3765
|
style: {
|
|
3745
3766
|
width: "100%",
|
|
3746
3767
|
height: "100%",
|
|
3747
|
-
...(
|
|
3768
|
+
...(a = e.attributes) == null ? void 0 : a.style,
|
|
3748
3769
|
objectFit: e.fit,
|
|
3749
3770
|
objectPosition: e.position,
|
|
3750
3771
|
// Hack to get object fit to work as expected and
|
|
@@ -3790,7 +3811,7 @@ function ui(e) {
|
|
|
3790
3811
|
children: e.children
|
|
3791
3812
|
}
|
|
3792
3813
|
) : null,
|
|
3793
|
-
(m = (
|
|
3814
|
+
(m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3794
3815
|
"div",
|
|
3795
3816
|
{
|
|
3796
3817
|
style: {
|
|
@@ -3824,14 +3845,14 @@ const di = () => [{
|
|
|
3824
3845
|
component: ei,
|
|
3825
3846
|
...Zn
|
|
3826
3847
|
}, {
|
|
3827
|
-
component:
|
|
3848
|
+
component: ri,
|
|
3828
3849
|
...ii
|
|
3829
3850
|
}, {
|
|
3830
3851
|
component: ni,
|
|
3831
3852
|
...ti
|
|
3832
3853
|
}, {
|
|
3833
3854
|
component: oi,
|
|
3834
|
-
...
|
|
3855
|
+
...ai
|
|
3835
3856
|
}, {
|
|
3836
3857
|
component: si,
|
|
3837
3858
|
...li
|
|
@@ -3862,7 +3883,7 @@ const di = () => [{
|
|
|
3862
3883
|
}, {
|
|
3863
3884
|
component: Hn,
|
|
3864
3885
|
...Un
|
|
3865
|
-
}, ...nt.includes(
|
|
3886
|
+
}, ...nt.includes(F) ? [{
|
|
3866
3887
|
component: $n,
|
|
3867
3888
|
...Nn
|
|
3868
3889
|
}] : [], {
|
|
@@ -3964,23 +3985,23 @@ const di = () => [{
|
|
|
3964
3985
|
thisScriptEl?.remove();
|
|
3965
3986
|
}
|
|
3966
3987
|
return;
|
|
3967
|
-
}`,
|
|
3988
|
+
}`, rt = "builderIoAbTest", at = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3968
3989
|
...t,
|
|
3969
3990
|
testVariationId: t.id,
|
|
3970
3991
|
id: e == null ? void 0 : e.id
|
|
3971
3992
|
})), hi = ({
|
|
3972
3993
|
canTrack: e,
|
|
3973
3994
|
content: t
|
|
3974
|
-
}) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi =
|
|
3975
|
-
window.${
|
|
3976
|
-
window.${
|
|
3995
|
+
}) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = gi(F), yi = () => `
|
|
3996
|
+
window.${rt} = ${mi}
|
|
3997
|
+
window.${at} = ${fi}
|
|
3977
3998
|
`, pi = (e, t) => `
|
|
3978
|
-
window.${
|
|
3999
|
+
window.${rt}(
|
|
3979
4000
|
"${t}",${JSON.stringify(e)}, ${ot}, ${bi}
|
|
3980
4001
|
)`, vi = ({
|
|
3981
4002
|
contentId: e,
|
|
3982
4003
|
variationId: t
|
|
3983
|
-
}) => `window.${
|
|
4004
|
+
}) => `window.${at}(
|
|
3984
4005
|
"${t}", "${e}", ${ot}
|
|
3985
4006
|
)`;
|
|
3986
4007
|
function Ne(e) {
|
|
@@ -4004,10 +4025,10 @@ const xi = (e, t, n = !0) => {
|
|
|
4004
4025
|
event: e,
|
|
4005
4026
|
target: t
|
|
4006
4027
|
}) => {
|
|
4007
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
4028
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = Ne(i / n.width), a = Ne(r / n.height);
|
|
4008
4029
|
return {
|
|
4009
4030
|
x: o,
|
|
4010
|
-
y:
|
|
4031
|
+
y: a
|
|
4011
4032
|
};
|
|
4012
4033
|
}, ki = (e) => {
|
|
4013
4034
|
const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -4025,11 +4046,11 @@ const xi = (e, t, n = !0) => {
|
|
|
4025
4046
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4026
4047
|
}
|
|
4027
4048
|
};
|
|
4028
|
-
}, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(
|
|
4029
|
-
var o,
|
|
4030
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4031
|
-
let
|
|
4032
|
-
if (i && t && n && (
|
|
4049
|
+
}, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(F) && (O() || le()), Ti = (e) => {
|
|
4050
|
+
var o, a;
|
|
4051
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4052
|
+
let r = "";
|
|
4053
|
+
if (i && t && n && (r += `
|
|
4033
4054
|
@font-face {
|
|
4034
4055
|
font-family: "${t}";
|
|
4035
4056
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -4041,7 +4062,7 @@ font-weight: 400;
|
|
|
4041
4062
|
if (!(String(Number(l)) === l))
|
|
4042
4063
|
continue;
|
|
4043
4064
|
const u = e.files[l];
|
|
4044
|
-
u && u !== i && (
|
|
4065
|
+
u && u !== i && (r += `
|
|
4045
4066
|
@font-face {
|
|
4046
4067
|
font-family: "${t}";
|
|
4047
4068
|
src: url('${u}') format('woff2');
|
|
@@ -4050,7 +4071,7 @@ font-weight: ${l};
|
|
|
4050
4071
|
}
|
|
4051
4072
|
`.trim());
|
|
4052
4073
|
}
|
|
4053
|
-
return
|
|
4074
|
+
return r;
|
|
4054
4075
|
}, Ii = ({
|
|
4055
4076
|
customFonts: e
|
|
4056
4077
|
}) => {
|
|
@@ -4078,47 +4099,47 @@ font-weight: ${l};
|
|
|
4078
4099
|
}
|
|
4079
4100
|
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4080
4101
|
function Vi(e) {
|
|
4081
|
-
var
|
|
4102
|
+
var S, k, A;
|
|
4082
4103
|
const t = H(null);
|
|
4083
4104
|
C(() => !1);
|
|
4084
4105
|
function n(T) {
|
|
4085
|
-
var
|
|
4106
|
+
var g, x;
|
|
4086
4107
|
const I = {
|
|
4087
4108
|
...e.builderContextSignal.rootState,
|
|
4088
4109
|
...T
|
|
4089
4110
|
};
|
|
4090
|
-
e.builderContextSignal.rootSetState ? (
|
|
4111
|
+
e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, I) : e.setBuilderContextSignal((w) => ({
|
|
4091
4112
|
...w,
|
|
4092
4113
|
rootState: I
|
|
4093
4114
|
}));
|
|
4094
4115
|
}
|
|
4095
4116
|
function i(T) {
|
|
4096
|
-
var
|
|
4117
|
+
var g, x, w, D, L;
|
|
4097
4118
|
const I = {
|
|
4098
4119
|
...e.builderContextSignal.content,
|
|
4099
4120
|
...T,
|
|
4100
4121
|
data: {
|
|
4101
|
-
...(
|
|
4122
|
+
...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
|
|
4102
4123
|
...T == null ? void 0 : T.data
|
|
4103
4124
|
},
|
|
4104
4125
|
meta: {
|
|
4105
|
-
...(
|
|
4126
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
4106
4127
|
...T == null ? void 0 : T.meta,
|
|
4107
|
-
breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((
|
|
4128
|
+
breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((L = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : L.breakpoints)
|
|
4108
4129
|
}
|
|
4109
4130
|
};
|
|
4110
|
-
e.setBuilderContextSignal((
|
|
4111
|
-
...
|
|
4131
|
+
e.setBuilderContextSignal((W) => ({
|
|
4132
|
+
...W,
|
|
4112
4133
|
content: I
|
|
4113
4134
|
}));
|
|
4114
4135
|
}
|
|
4115
|
-
function
|
|
4136
|
+
function r() {
|
|
4116
4137
|
return e.showContent ? {} : {
|
|
4117
4138
|
hidden: !0,
|
|
4118
4139
|
"aria-hidden": !0
|
|
4119
4140
|
};
|
|
4120
4141
|
}
|
|
4121
|
-
const [o,
|
|
4142
|
+
const [o, a] = C(
|
|
4122
4143
|
() => e.contentWrapper || "div"
|
|
4123
4144
|
);
|
|
4124
4145
|
function l(T) {
|
|
@@ -4128,10 +4149,10 @@ function Vi(e) {
|
|
|
4128
4149
|
callbacks: {
|
|
4129
4150
|
configureSdk: (I) => {
|
|
4130
4151
|
var w;
|
|
4131
|
-
const { breakpoints:
|
|
4132
|
-
!
|
|
4152
|
+
const { breakpoints: g, contentId: x } = I;
|
|
4153
|
+
!x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || g && i({
|
|
4133
4154
|
meta: {
|
|
4134
|
-
breakpoints:
|
|
4155
|
+
breakpoints: g
|
|
4135
4156
|
}
|
|
4136
4157
|
});
|
|
4137
4158
|
},
|
|
@@ -4147,18 +4168,18 @@ function Vi(e) {
|
|
|
4147
4168
|
}
|
|
4148
4169
|
})(T);
|
|
4149
4170
|
}
|
|
4150
|
-
const [c, u] = C(() => ({})), [f,
|
|
4171
|
+
const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
|
|
4151
4172
|
function d(T) {
|
|
4152
|
-
var I,
|
|
4173
|
+
var I, g;
|
|
4153
4174
|
if (e.builderContextSignal.content) {
|
|
4154
|
-
const
|
|
4175
|
+
const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
|
|
4155
4176
|
Te({
|
|
4156
4177
|
apiHost: e.apiHost,
|
|
4157
4178
|
type: "click",
|
|
4158
4179
|
canTrack: X(e.canTrack),
|
|
4159
4180
|
contentId: w,
|
|
4160
4181
|
apiKey: e.apiKey,
|
|
4161
|
-
variationId:
|
|
4182
|
+
variationId: x !== w ? x : void 0,
|
|
4162
4183
|
...ki(T),
|
|
4163
4184
|
unique: !m
|
|
4164
4185
|
});
|
|
@@ -4166,17 +4187,17 @@ function Vi(e) {
|
|
|
4166
4187
|
m || v(!0);
|
|
4167
4188
|
}
|
|
4168
4189
|
function h() {
|
|
4169
|
-
var I,
|
|
4170
|
-
const T = (
|
|
4171
|
-
Object.entries(T).forEach(([w,
|
|
4172
|
-
if (!
|
|
4190
|
+
var I, g, x;
|
|
4191
|
+
const T = (x = (g = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : g.httpRequests) != null ? x : {};
|
|
4192
|
+
Object.entries(T).forEach(([w, D]) => {
|
|
4193
|
+
if (!D || f[w] || c[w] && !O())
|
|
4173
4194
|
return;
|
|
4174
4195
|
f[w] = !0;
|
|
4175
|
-
const
|
|
4196
|
+
const L = D.replace(
|
|
4176
4197
|
/{{([^}]+)}}/g,
|
|
4177
|
-
(
|
|
4198
|
+
(W, P) => String(
|
|
4178
4199
|
J({
|
|
4179
|
-
code:
|
|
4200
|
+
code: P,
|
|
4180
4201
|
context: e.context || {},
|
|
4181
4202
|
localState: void 0,
|
|
4182
4203
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4184,19 +4205,19 @@ function Vi(e) {
|
|
|
4184
4205
|
})
|
|
4185
4206
|
)
|
|
4186
4207
|
);
|
|
4187
|
-
Fe(
|
|
4208
|
+
Fe(L), fetch(L).then((W) => W.json()).then((W) => {
|
|
4188
4209
|
n({
|
|
4189
|
-
[w]:
|
|
4210
|
+
[w]: W
|
|
4190
4211
|
}), c[w] = !0;
|
|
4191
|
-
}).catch((
|
|
4192
|
-
console.error("error fetching dynamic data",
|
|
4212
|
+
}).catch((W) => {
|
|
4213
|
+
console.error("error fetching dynamic data", D, W);
|
|
4193
4214
|
}).finally(() => {
|
|
4194
4215
|
f[w] = !1;
|
|
4195
4216
|
});
|
|
4196
4217
|
});
|
|
4197
4218
|
}
|
|
4198
4219
|
function p() {
|
|
4199
|
-
|
|
4220
|
+
O() && window.dispatchEvent(
|
|
4200
4221
|
new CustomEvent(
|
|
4201
4222
|
"builder:component:stateChange",
|
|
4202
4223
|
{
|
|
@@ -4211,10 +4232,10 @@ function Vi(e) {
|
|
|
4211
4232
|
);
|
|
4212
4233
|
}
|
|
4213
4234
|
const y = H(!1);
|
|
4214
|
-
return y.current || (h(), p(), y.current = !0),
|
|
4215
|
-
var T, I,
|
|
4235
|
+
return y.current || (h(), p(), y.current = !0), V(() => {
|
|
4236
|
+
var T, I, g, x, w;
|
|
4216
4237
|
if (K()) {
|
|
4217
|
-
|
|
4238
|
+
O() && !e.isNestedRender && (window.addEventListener("message", l), lt(), st({
|
|
4218
4239
|
...e.locale ? {
|
|
4219
4240
|
locale: e.locale
|
|
4220
4241
|
} : {},
|
|
@@ -4228,35 +4249,35 @@ function Vi(e) {
|
|
|
4228
4249
|
apiKey: e.apiKey
|
|
4229
4250
|
}), Object.values(
|
|
4230
4251
|
e.builderContextSignal.componentInfos
|
|
4231
|
-
).forEach((
|
|
4252
|
+
).forEach((P) => {
|
|
4232
4253
|
var U, E;
|
|
4233
|
-
if (!((U =
|
|
4234
|
-
const B = ct(
|
|
4254
|
+
if (!((U = P.models) != null && U.length) || P.models.includes(e.model)) {
|
|
4255
|
+
const B = ct(P);
|
|
4235
4256
|
(E = window.parent) == null || E.postMessage(B, "*");
|
|
4236
4257
|
}
|
|
4237
4258
|
}), window.addEventListener(
|
|
4238
4259
|
"builder:component:stateChangeListenerActivated",
|
|
4239
4260
|
p
|
|
4240
4261
|
));
|
|
4241
|
-
const
|
|
4262
|
+
const D = e.builderContextSignal.content && X(e.canTrack), L = ut({
|
|
4242
4263
|
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4243
4264
|
canTrack: !0
|
|
4244
|
-
}),
|
|
4245
|
-
if (
|
|
4246
|
-
const
|
|
4265
|
+
}), W = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
|
|
4266
|
+
if (D && W === L) {
|
|
4267
|
+
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, U = e.apiKey;
|
|
4247
4268
|
Te({
|
|
4248
4269
|
apiHost: e.apiHost,
|
|
4249
4270
|
type: "impression",
|
|
4250
4271
|
canTrack: !0,
|
|
4251
|
-
contentId:
|
|
4272
|
+
contentId: P,
|
|
4252
4273
|
apiKey: U,
|
|
4253
|
-
variationId:
|
|
4274
|
+
variationId: L !== P ? L : void 0
|
|
4254
4275
|
});
|
|
4255
4276
|
}
|
|
4256
|
-
if (
|
|
4257
|
-
const
|
|
4277
|
+
if (le() && !O()) {
|
|
4278
|
+
const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
|
|
4258
4279
|
`builder.overrides.${U}`
|
|
4259
|
-
), B =
|
|
4280
|
+
), B = P.get("apiKey") || P.get("builder.space");
|
|
4260
4281
|
(U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
|
|
4261
4282
|
model: e.model,
|
|
4262
4283
|
apiKey: e.apiKey,
|
|
@@ -4271,17 +4292,17 @@ function Vi(e) {
|
|
|
4271
4292
|
});
|
|
4272
4293
|
}
|
|
4273
4294
|
}
|
|
4274
|
-
}, []),
|
|
4295
|
+
}, []), V(() => {
|
|
4275
4296
|
e.content && i(e.content);
|
|
4276
|
-
}, [e.content]),
|
|
4297
|
+
}, [e.content]), V(() => {
|
|
4277
4298
|
p();
|
|
4278
|
-
}, [e.builderContextSignal.rootState]),
|
|
4299
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
4279
4300
|
e.data && n(e.data);
|
|
4280
|
-
}, [e.data]),
|
|
4301
|
+
}, [e.data]), V(() => {
|
|
4281
4302
|
e.locale && n({
|
|
4282
4303
|
locale: e.locale
|
|
4283
4304
|
});
|
|
4284
|
-
}, [e.locale]),
|
|
4305
|
+
}, [e.locale]), V(() => () => {
|
|
4285
4306
|
K() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4286
4307
|
"builder:component:stateChangeListenerActivated",
|
|
4287
4308
|
p
|
|
@@ -4291,15 +4312,15 @@ function Vi(e) {
|
|
|
4291
4312
|
{
|
|
4292
4313
|
ref: t,
|
|
4293
4314
|
onClick: (T) => d(T),
|
|
4294
|
-
"builder-content-id": (
|
|
4315
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4295
4316
|
"builder-model": e.model,
|
|
4296
4317
|
className: Pi(
|
|
4297
|
-
((k = e.content) == null ? void 0 : k.testVariationId) || ((
|
|
4318
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
4298
4319
|
),
|
|
4299
4320
|
style: {
|
|
4300
4321
|
display: !e.builderContextSignal.content && We() ? "none" : void 0
|
|
4301
4322
|
},
|
|
4302
|
-
...
|
|
4323
|
+
...r(),
|
|
4303
4324
|
...e.contentWrapperProps,
|
|
4304
4325
|
children: e.children
|
|
4305
4326
|
}
|
|
@@ -4332,13 +4353,13 @@ const Bi = ({
|
|
|
4332
4353
|
data: t,
|
|
4333
4354
|
locale: n
|
|
4334
4355
|
}) => {
|
|
4335
|
-
var o,
|
|
4336
|
-
const i = {},
|
|
4337
|
-
return (l = (
|
|
4356
|
+
var o, a, l;
|
|
4357
|
+
const i = {}, r = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
4358
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
|
|
4338
4359
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4339
4360
|
}), {
|
|
4340
4361
|
...i,
|
|
4341
|
-
...
|
|
4362
|
+
...r,
|
|
4342
4363
|
...t,
|
|
4343
4364
|
...n ? {
|
|
4344
4365
|
locale: n
|
|
@@ -4356,39 +4377,39 @@ const Bi = ({
|
|
|
4356
4377
|
meta: e == null ? void 0 : e.meta
|
|
4357
4378
|
} : void 0;
|
|
4358
4379
|
function De(e) {
|
|
4359
|
-
var u, f,
|
|
4380
|
+
var u, f, b, m, v, d, h, p, y;
|
|
4360
4381
|
const [t, n] = C(
|
|
4361
4382
|
() => {
|
|
4362
|
-
var
|
|
4383
|
+
var S, k;
|
|
4363
4384
|
return vi({
|
|
4364
4385
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4365
|
-
variationId: (
|
|
4386
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4366
4387
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4367
4388
|
contentId: (k = e.content) == null ? void 0 : k.id
|
|
4368
4389
|
});
|
|
4369
4390
|
}
|
|
4370
4391
|
);
|
|
4371
|
-
function i(
|
|
4392
|
+
function i(S) {
|
|
4372
4393
|
l((k) => ({
|
|
4373
4394
|
...k,
|
|
4374
|
-
rootState:
|
|
4395
|
+
rootState: S
|
|
4375
4396
|
}));
|
|
4376
4397
|
}
|
|
4377
|
-
const [
|
|
4398
|
+
const [r, o] = C(
|
|
4378
4399
|
() => [
|
|
4379
4400
|
...Be(),
|
|
4380
4401
|
...e.customComponents || []
|
|
4381
4402
|
].reduce(
|
|
4382
|
-
(
|
|
4383
|
-
...
|
|
4384
|
-
[
|
|
4403
|
+
(S, { component: k, ...A }) => ({
|
|
4404
|
+
...S,
|
|
4405
|
+
[A.name]: {
|
|
4385
4406
|
component: k,
|
|
4386
|
-
...Ie(
|
|
4407
|
+
...Ie(A)
|
|
4387
4408
|
}
|
|
4388
4409
|
}),
|
|
4389
4410
|
{}
|
|
4390
4411
|
)
|
|
4391
|
-
), [
|
|
4412
|
+
), [a, l] = C(() => ({
|
|
4392
4413
|
content: Ni({
|
|
4393
4414
|
content: e.content,
|
|
4394
4415
|
data: e.data
|
|
@@ -4408,9 +4429,9 @@ function De(e) {
|
|
|
4408
4429
|
...Be(),
|
|
4409
4430
|
...e.customComponents || []
|
|
4410
4431
|
].reduce(
|
|
4411
|
-
(
|
|
4412
|
-
...
|
|
4413
|
-
[
|
|
4432
|
+
(S, { component: k, ...A }) => ({
|
|
4433
|
+
...S,
|
|
4434
|
+
[A.name]: Ie(A)
|
|
4414
4435
|
}),
|
|
4415
4436
|
{}
|
|
4416
4437
|
),
|
|
@@ -4424,14 +4445,14 @@ function De(e) {
|
|
|
4424
4445
|
e.apiKey || Z.error(
|
|
4425
4446
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4426
4447
|
);
|
|
4427
|
-
const
|
|
4428
|
-
|
|
4429
|
-
code:
|
|
4448
|
+
const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
|
|
4449
|
+
S && J({
|
|
4450
|
+
code: S,
|
|
4430
4451
|
context: e.context || {},
|
|
4431
4452
|
localState: void 0,
|
|
4432
|
-
rootState:
|
|
4453
|
+
rootState: a.rootState,
|
|
4433
4454
|
rootSetState: (k) => {
|
|
4434
|
-
Object.assign(
|
|
4455
|
+
Object.assign(a.rootState, k);
|
|
4435
4456
|
},
|
|
4436
4457
|
isExpression: !1
|
|
4437
4458
|
}), c.current = !0;
|
|
@@ -4440,7 +4461,7 @@ function De(e) {
|
|
|
4440
4461
|
He.Provider,
|
|
4441
4462
|
{
|
|
4442
4463
|
value: {
|
|
4443
|
-
registeredComponents:
|
|
4464
|
+
registeredComponents: r
|
|
4444
4465
|
},
|
|
4445
4466
|
children: /* @__PURE__ */ $(
|
|
4446
4467
|
Vi,
|
|
@@ -4456,7 +4477,7 @@ function De(e) {
|
|
|
4456
4477
|
locale: e.locale,
|
|
4457
4478
|
enrich: e.enrich,
|
|
4458
4479
|
showContent: e.showContent,
|
|
4459
|
-
builderContextSignal:
|
|
4480
|
+
builderContextSignal: a,
|
|
4460
4481
|
contentWrapper: e.contentWrapper,
|
|
4461
4482
|
contentWrapperProps: e.contentWrapperProps,
|
|
4462
4483
|
trustedHosts: e.trustedHosts,
|
|
@@ -4476,17 +4497,17 @@ function De(e) {
|
|
|
4476
4497
|
{
|
|
4477
4498
|
nonce: e.nonce || "",
|
|
4478
4499
|
isNestedRender: e.isNestedRender,
|
|
4479
|
-
contentId: (
|
|
4480
|
-
cssCode: (v = (m =
|
|
4481
|
-
customFonts: (h = (d =
|
|
4500
|
+
contentId: (b = a.content) == null ? void 0 : b.id,
|
|
4501
|
+
cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
4502
|
+
customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
|
|
4482
4503
|
}
|
|
4483
4504
|
),
|
|
4484
4505
|
/* @__PURE__ */ s(
|
|
4485
4506
|
_,
|
|
4486
4507
|
{
|
|
4487
|
-
blocks: (y = (p =
|
|
4488
|
-
context:
|
|
4489
|
-
registeredComponents:
|
|
4508
|
+
blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
|
|
4509
|
+
context: a,
|
|
4510
|
+
registeredComponents: r,
|
|
4490
4511
|
linkComponent: e.linkComponent
|
|
4491
4512
|
}
|
|
4492
4513
|
)
|
|
@@ -4497,7 +4518,7 @@ function De(e) {
|
|
|
4497
4518
|
);
|
|
4498
4519
|
}
|
|
4499
4520
|
function $i(e) {
|
|
4500
|
-
var
|
|
4521
|
+
var a;
|
|
4501
4522
|
const [t, n] = C(
|
|
4502
4523
|
() => hi({
|
|
4503
4524
|
canTrack: X(e.canTrack),
|
|
@@ -4514,7 +4535,7 @@ function $i(e) {
|
|
|
4514
4535
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4515
4536
|
);
|
|
4516
4537
|
}
|
|
4517
|
-
function
|
|
4538
|
+
function r() {
|
|
4518
4539
|
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4519
4540
|
}
|
|
4520
4541
|
function o() {
|
|
@@ -4527,9 +4548,9 @@ function $i(e) {
|
|
|
4527
4548
|
canTrack: X(e.canTrack)
|
|
4528
4549
|
});
|
|
4529
4550
|
}
|
|
4530
|
-
return
|
|
4551
|
+
return V(() => {
|
|
4531
4552
|
}, []), /* @__PURE__ */ $(R, { children: [
|
|
4532
|
-
!e.isNestedRender &&
|
|
4553
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
|
|
4533
4554
|
/* @__PURE__ */ s(
|
|
4534
4555
|
q,
|
|
4535
4556
|
{
|
|
@@ -4538,7 +4559,7 @@ function $i(e) {
|
|
|
4538
4559
|
nonce: e.nonce || ""
|
|
4539
4560
|
}
|
|
4540
4561
|
),
|
|
4541
|
-
nt.includes(
|
|
4562
|
+
nt.includes(F) ? /* @__PURE__ */ s(
|
|
4542
4563
|
q,
|
|
4543
4564
|
{
|
|
4544
4565
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -4552,7 +4573,7 @@ function $i(e) {
|
|
|
4552
4573
|
ee,
|
|
4553
4574
|
{
|
|
4554
4575
|
id: "builderio-variants",
|
|
4555
|
-
styles:
|
|
4576
|
+
styles: r(),
|
|
4556
4577
|
nonce: e.nonce || ""
|
|
4557
4578
|
}
|
|
4558
4579
|
),
|
|
@@ -4564,7 +4585,7 @@ function $i(e) {
|
|
|
4564
4585
|
nonce: e.nonce || ""
|
|
4565
4586
|
}
|
|
4566
4587
|
),
|
|
4567
|
-
(
|
|
4588
|
+
(a = ae(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
4568
4589
|
De,
|
|
4569
4590
|
{
|
|
4570
4591
|
apiHost: e.apiHost,
|
|
@@ -4640,7 +4661,7 @@ const Wi = async ({
|
|
|
4640
4661
|
});
|
|
4641
4662
|
};
|
|
4642
4663
|
function Di(e) {
|
|
4643
|
-
var u, f,
|
|
4664
|
+
var u, f, b, m, v;
|
|
4644
4665
|
function t() {
|
|
4645
4666
|
return "div";
|
|
4646
4667
|
}
|
|
@@ -4656,16 +4677,16 @@ function Di(e) {
|
|
|
4656
4677
|
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4657
4678
|
].filter(Boolean).join(" ");
|
|
4658
4679
|
}
|
|
4659
|
-
const [
|
|
4680
|
+
const [r, o] = C(() => {
|
|
4660
4681
|
var d;
|
|
4661
4682
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4662
|
-
}), [
|
|
4683
|
+
}), [a, l] = C(() => {
|
|
4663
4684
|
var d;
|
|
4664
4685
|
return (d = e.symbol) == null ? void 0 : d.entry;
|
|
4665
4686
|
});
|
|
4666
4687
|
function c() {
|
|
4667
4688
|
var d;
|
|
4668
|
-
|
|
4689
|
+
r && a === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
|
|
4669
4690
|
symbol: e.symbol,
|
|
4670
4691
|
builderContextValue: e.builderContext
|
|
4671
4692
|
}).then((h) => {
|
|
@@ -4673,8 +4694,8 @@ function Di(e) {
|
|
|
4673
4694
|
h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
|
|
4674
4695
|
});
|
|
4675
4696
|
}
|
|
4676
|
-
return
|
|
4677
|
-
}, []),
|
|
4697
|
+
return V(() => {
|
|
4698
|
+
}, []), V(() => {
|
|
4678
4699
|
c();
|
|
4679
4700
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4680
4701
|
$i,
|
|
@@ -4691,11 +4712,11 @@ function Di(e) {
|
|
|
4691
4712
|
data: {
|
|
4692
4713
|
...(f = e.symbol) == null ? void 0 : f.data,
|
|
4693
4714
|
...e.builderContext.localState,
|
|
4694
|
-
...(
|
|
4715
|
+
...(b = r == null ? void 0 : r.data) == null ? void 0 : b.state
|
|
4695
4716
|
},
|
|
4696
4717
|
canTrack: e.builderContext.canTrack,
|
|
4697
4718
|
model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
|
|
4698
|
-
content:
|
|
4719
|
+
content: r,
|
|
4699
4720
|
linkComponent: e.builderLinkComponent,
|
|
4700
4721
|
blocksWrapper: t(),
|
|
4701
4722
|
contentWrapper: n()
|