@builder.io/sdk-react 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +23 -23
- package/lib/browser/blocks-exports.mjs +284 -283
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-75ce8600.cjs → server-entry-5eafc5bd.cjs} +1 -1
- package/lib/browser/{server-entry-a2495a20.js → server-entry-c904f136.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-032726a7.cjs +1 -0
- package/lib/edge/{accordion-c020e15b.js → accordion-c786f197.js} +17 -16
- package/lib/edge/{blocks-27ac5b23.js → blocks-105e50e5.js} +4 -4
- package/lib/edge/{blocks-cd946d16.cjs → blocks-827b0a87.cjs} +8 -8
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8572fca5.cjs → button-5cbfe22c.cjs} +1 -1
- package/lib/edge/{button-5cdb4f26.js → button-f0e0ea72.js} +2 -2
- package/lib/edge/{columns-3ac1fa96.js → columns-9e187314.js} +12 -12
- package/lib/edge/{columns-c8a9cb89.cjs → columns-d07da61d.cjs} +2 -2
- package/lib/edge/{content-variants-caa23bf7.cjs → content-variants-0db90715.cjs} +6 -6
- package/lib/edge/{content-variants-23c8eec6.js → content-variants-59dc0824.js} +10 -10
- package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
- package/lib/edge/{form-3d9bf265.cjs → form-79639135.cjs} +1 -1
- package/lib/edge/{form-7fc5691b.js → form-7a7b98cf.js} +13 -13
- package/lib/edge/{get-class-prop-name-a4845b04.js → get-class-prop-name-6b143ec7.js} +1 -1
- package/lib/edge/{get-class-prop-name-29fd576a.cjs → get-class-prop-name-8fb0e5ad.cjs} +1 -1
- package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
- package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
- package/lib/edge/{img-388698cb.js → img-2c4c6b78.js} +1 -1
- package/lib/edge/{img-102acaa2.cjs → img-72bf9d21.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-10e350a9.cjs → input-6eca8427.cjs} +1 -1
- package/lib/edge/{input-5484e9e7.js → input-752f3ce9.js} +1 -1
- package/lib/edge/{select-f11be7a7.cjs → select-49a73a0b.cjs} +1 -1
- package/lib/edge/{select-b8406bcf.js → select-a1d6e80e.js} +1 -1
- package/lib/edge/{server-entry-7ce03a4e.js → server-entry-35f12729.js} +1 -1
- package/lib/edge/{server-entry-1879cbc4.cjs → server-entry-6b2058e2.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-4ab390ec.cjs → slot-2327e009.cjs} +1 -1
- package/lib/edge/{slot-23f75377.js → slot-b9bcbd41.js} +3 -3
- package/lib/edge/{symbol-2eafb4e0.js → symbol-33e7736f.js} +2 -2
- package/lib/edge/{symbol-fa343d77.cjs → symbol-3527699b.cjs} +1 -1
- package/lib/edge/{tabs-7d258d82.cjs → tabs-2df0eaa2.cjs} +1 -1
- package/lib/edge/{tabs-4c9c64f6.js → tabs-bc422e4c.js} +3 -3
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +282 -281
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/{server-entry-ec330556.cjs → server-entry-606ce65a.cjs} +1 -1
- package/lib/node/{server-entry-2b263dde.js → server-entry-d1ed35c5.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-7eb67cd6.js → setIvm-6675714a.js} +1 -1
- package/lib/node/{setIvm-1e6f0b60.cjs → setIvm-e4deba11.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-23218b19.cjs → should-force-browser-runtime-in-node-03adae17.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cdae9360.js → should-force-browser-runtime-in-node-75b2b3a0.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/builder-content.d.ts +1 -0
- package/types/types/input.d.ts +10 -0
- package/lib/edge/accordion-1c16f65e.cjs +0 -1
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-
|
|
2
|
+
import { jsx as l, Fragment as w, jsxs as W } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-d1ed35c5.js";
|
|
4
|
+
import * as Ge from "react";
|
|
4
5
|
import { createContext as we, useEffect as A, useState as E, useRef as D, useContext as fe, createElement as Ee } from "react";
|
|
5
|
-
import { getFunctionArguments as
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
7
|
-
const
|
|
6
|
+
import { getFunctionArguments as Ye, flattenState as Qe, runInNode as Xe, parseCode as Ze, getBuilderGlobals as et, set as Re, fastClone as re } from "./setIvm-6675714a.js";
|
|
7
|
+
import { shouldForceBrowserRuntimeInNode as tt } from "./should-force-browser-runtime-in-node-75b2b3a0.js";
|
|
8
|
+
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
8
9
|
function le(e) {
|
|
9
|
-
return /* @__PURE__ */ l(
|
|
10
|
+
return /* @__PURE__ */ l(w, { children: it(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
11
|
}
|
|
11
12
|
const _ = () => {
|
|
12
13
|
switch ($) {
|
|
@@ -22,7 +23,7 @@ const _ = () => {
|
|
|
22
23
|
return "class";
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
+
function ot(e) {
|
|
26
27
|
function t() {
|
|
27
28
|
return {
|
|
28
29
|
...e.attributes,
|
|
@@ -64,7 +65,7 @@ const se = we({
|
|
|
64
65
|
}), Pe = we({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
65
66
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
66
67
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
68
|
+
}, at = ({
|
|
68
69
|
code: e,
|
|
69
70
|
builder: t,
|
|
70
71
|
context: n,
|
|
@@ -73,22 +74,22 @@ const se = we({
|
|
|
73
74
|
rootSetState: r,
|
|
74
75
|
rootState: a
|
|
75
76
|
}) => {
|
|
76
|
-
const s =
|
|
77
|
+
const s = Ye({
|
|
77
78
|
builder: t,
|
|
78
79
|
context: n,
|
|
79
80
|
event: i,
|
|
80
|
-
state:
|
|
81
|
+
state: Qe({
|
|
81
82
|
rootState: a,
|
|
82
83
|
localState: o,
|
|
83
84
|
rootSetState: r
|
|
84
85
|
})
|
|
85
86
|
});
|
|
86
87
|
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
87
|
-
},
|
|
88
|
+
}, rt = (e) => q() || tt({
|
|
88
89
|
shouldLogWarning: !0
|
|
89
|
-
}) ?
|
|
90
|
+
}) ? at(e) : Xe(e), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
|
|
90
91
|
var t, n, i, o, r, a;
|
|
91
|
-
return ((i = (n = (t =
|
|
92
|
+
return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
92
93
|
};
|
|
93
94
|
function O({
|
|
94
95
|
code: e,
|
|
@@ -101,17 +102,17 @@ function O({
|
|
|
101
102
|
}) {
|
|
102
103
|
if (e.trim() === "")
|
|
103
104
|
return;
|
|
104
|
-
const s =
|
|
105
|
+
const s = ct(e.trim());
|
|
105
106
|
if (s)
|
|
106
107
|
return Be({
|
|
107
108
|
...i,
|
|
108
109
|
...n
|
|
109
110
|
}, s);
|
|
110
111
|
const d = {
|
|
111
|
-
code:
|
|
112
|
+
code: Ze(e, {
|
|
112
113
|
isExpression: a
|
|
113
114
|
}),
|
|
114
|
-
builder:
|
|
115
|
+
builder: et(),
|
|
115
116
|
context: t,
|
|
116
117
|
event: r,
|
|
117
118
|
rootSetState: o,
|
|
@@ -119,7 +120,7 @@ function O({
|
|
|
119
120
|
localState: n
|
|
120
121
|
};
|
|
121
122
|
try {
|
|
122
|
-
return
|
|
123
|
+
return rt(d);
|
|
123
124
|
} catch (c) {
|
|
124
125
|
oe.error("Failed code evaluation: " + c.message, {
|
|
125
126
|
code: e
|
|
@@ -127,15 +128,15 @@ function O({
|
|
|
127
128
|
return;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
|
-
function
|
|
131
|
+
function dt(e, t) {
|
|
131
132
|
var n;
|
|
132
133
|
return {
|
|
133
134
|
...(n = e.component) == null ? void 0 : n.options,
|
|
134
135
|
...e.options,
|
|
135
|
-
...
|
|
136
|
+
...ut(e, t)
|
|
136
137
|
};
|
|
137
138
|
}
|
|
138
|
-
const
|
|
139
|
+
const ut = (e, t) => {
|
|
139
140
|
var n, i;
|
|
140
141
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
141
142
|
return {
|
|
@@ -149,7 +150,7 @@ const dt = (e, t) => {
|
|
|
149
150
|
}))
|
|
150
151
|
};
|
|
151
152
|
};
|
|
152
|
-
function
|
|
153
|
+
function mt(e, ...t) {
|
|
153
154
|
const n = Object.assign({}, e);
|
|
154
155
|
for (const i of t)
|
|
155
156
|
delete n[i];
|
|
@@ -175,7 +176,7 @@ function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
175
176
|
function Ve(e) {
|
|
176
177
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function ft(e) {
|
|
179
180
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
180
181
|
return !1;
|
|
181
182
|
let t = !1;
|
|
@@ -186,15 +187,15 @@ function mt(e) {
|
|
|
186
187
|
}
|
|
187
188
|
}), t;
|
|
188
189
|
}
|
|
189
|
-
function
|
|
190
|
+
function ht(e, t) {
|
|
190
191
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
191
192
|
var o;
|
|
192
193
|
Ve(n) && i((o = n[t]) != null ? o : void 0);
|
|
193
194
|
}), e);
|
|
194
195
|
}
|
|
195
|
-
function
|
|
196
|
+
function gt(e, t) {
|
|
196
197
|
var n, i;
|
|
197
|
-
return (n = e.component) != null && n.options &&
|
|
198
|
+
return (n = e.component) != null && n.options && ft((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ht(e.component.options, t != null ? t : "Default")), e;
|
|
198
199
|
}
|
|
199
200
|
function ne(e) {
|
|
200
201
|
if (e === null || typeof e != "object")
|
|
@@ -208,8 +209,8 @@ function ne(e) {
|
|
|
208
209
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
209
210
|
return t;
|
|
210
211
|
}
|
|
211
|
-
const
|
|
212
|
-
if (
|
|
212
|
+
const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
|
|
213
|
+
if (bt) {
|
|
213
214
|
const t = re(e);
|
|
214
215
|
return {
|
|
215
216
|
...t,
|
|
@@ -221,7 +222,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
221
222
|
}
|
|
222
223
|
};
|
|
223
224
|
} else {
|
|
224
|
-
const t = ne(
|
|
225
|
+
const t = ne(mt(e, "children", "meta"));
|
|
225
226
|
return {
|
|
226
227
|
...t,
|
|
227
228
|
properties: {
|
|
@@ -234,7 +235,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
234
235
|
meta: e.meta
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
|
-
},
|
|
238
|
+
}, yt = ({
|
|
238
239
|
block: e,
|
|
239
240
|
context: t,
|
|
240
241
|
localState: n,
|
|
@@ -243,7 +244,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
243
244
|
}) => {
|
|
244
245
|
if (!e.bindings)
|
|
245
246
|
return e;
|
|
246
|
-
const r =
|
|
247
|
+
const r = pt(e);
|
|
247
248
|
for (const a in e.bindings) {
|
|
248
249
|
const s = e.bindings[a], d = O({
|
|
249
250
|
code: s,
|
|
@@ -256,15 +257,15 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
256
257
|
}
|
|
257
258
|
return r;
|
|
258
259
|
};
|
|
259
|
-
function
|
|
260
|
+
function xt({
|
|
260
261
|
block: e,
|
|
261
262
|
context: t,
|
|
262
263
|
localState: n,
|
|
263
264
|
rootState: i,
|
|
264
265
|
rootSetState: o
|
|
265
266
|
}) {
|
|
266
|
-
let r =
|
|
267
|
-
return r = r,
|
|
267
|
+
let r = gt(e, i.locale);
|
|
268
|
+
return r = r, yt({
|
|
268
269
|
block: r,
|
|
269
270
|
localState: n,
|
|
270
271
|
rootState: i,
|
|
@@ -273,7 +274,7 @@ function yt({
|
|
|
273
274
|
});
|
|
274
275
|
}
|
|
275
276
|
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
276
|
-
function
|
|
277
|
+
function vt(e, t, n = {}) {
|
|
277
278
|
let i, o, r, a = null, s = 0;
|
|
278
279
|
const d = function() {
|
|
279
280
|
s = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
@@ -295,14 +296,14 @@ function U(e, ...t) {
|
|
|
295
296
|
}
|
|
296
297
|
return n;
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
+
function St(e) {
|
|
299
300
|
for (const t of e)
|
|
300
301
|
switch (t.trigger) {
|
|
301
302
|
case "pageLoad":
|
|
302
303
|
Ne(t);
|
|
303
304
|
break;
|
|
304
305
|
case "scrollInView":
|
|
305
|
-
|
|
306
|
+
Ct(t);
|
|
306
307
|
break;
|
|
307
308
|
}
|
|
308
309
|
}
|
|
@@ -310,12 +311,12 @@ function Ae(e) {
|
|
|
310
311
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
311
312
|
}
|
|
312
313
|
function We(e, t) {
|
|
313
|
-
const n =
|
|
314
|
+
const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
314
315
|
for (const s of a)
|
|
315
316
|
for (const d of n)
|
|
316
317
|
d in s || (s[d] = i[d]);
|
|
317
318
|
}
|
|
318
|
-
function
|
|
319
|
+
function kt(e) {
|
|
319
320
|
const t = [];
|
|
320
321
|
for (const n of e.steps)
|
|
321
322
|
for (const i in n.styles)
|
|
@@ -336,7 +337,7 @@ function Ne(e) {
|
|
|
336
337
|
});
|
|
337
338
|
});
|
|
338
339
|
}
|
|
339
|
-
function
|
|
340
|
+
function Ct(e) {
|
|
340
341
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
341
342
|
if (!t.length) {
|
|
342
343
|
Ae(e.elementId || e.id || "");
|
|
@@ -352,7 +353,7 @@ function kt(e) {
|
|
|
352
353
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
353
354
|
})) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
354
355
|
}
|
|
355
|
-
const a =
|
|
356
|
+
const a = vt(r, 200, {
|
|
356
357
|
leading: !1
|
|
357
358
|
});
|
|
358
359
|
function s(h) {
|
|
@@ -374,28 +375,28 @@ function kt(e) {
|
|
|
374
375
|
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
375
376
|
if (typeof i == "string")
|
|
376
377
|
return `${J(n)}: ${i};`;
|
|
377
|
-
}).filter(te),
|
|
378
|
+
}).filter(te), Tt = (e) => Fe(e).join(`
|
|
378
379
|
`), M = ({
|
|
379
380
|
mediaQuery: e,
|
|
380
381
|
className: t,
|
|
381
382
|
styles: n
|
|
382
383
|
}) => {
|
|
383
384
|
const i = `.${t} {
|
|
384
|
-
${
|
|
385
|
+
${Tt(n)}
|
|
385
386
|
}`;
|
|
386
387
|
return e ? `${e} {
|
|
387
388
|
${i}
|
|
388
389
|
}` : i;
|
|
389
390
|
};
|
|
390
|
-
function
|
|
391
|
+
function It({
|
|
391
392
|
style: e
|
|
392
393
|
}) {
|
|
393
394
|
return e;
|
|
394
395
|
}
|
|
395
|
-
const
|
|
396
|
+
const wt = ({
|
|
396
397
|
block: e,
|
|
397
398
|
context: t
|
|
398
|
-
}) => $e(
|
|
399
|
+
}) => $e(It({
|
|
399
400
|
style: e.style || {},
|
|
400
401
|
context: t,
|
|
401
402
|
block: e
|
|
@@ -414,7 +415,7 @@ function $e(e) {
|
|
|
414
415
|
return e;
|
|
415
416
|
}
|
|
416
417
|
}
|
|
417
|
-
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
418
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
|
|
418
419
|
block: e,
|
|
419
420
|
registeredComponents: t,
|
|
420
421
|
model: n
|
|
@@ -431,7 +432,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
431
432
|
return;
|
|
432
433
|
} else
|
|
433
434
|
return o;
|
|
434
|
-
},
|
|
435
|
+
}, Rt = ({
|
|
435
436
|
block: e,
|
|
436
437
|
context: t
|
|
437
438
|
}) => {
|
|
@@ -464,22 +465,22 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
464
465
|
},
|
|
465
466
|
block: i
|
|
466
467
|
}));
|
|
467
|
-
},
|
|
468
|
+
}, Pt = (e, t) => {
|
|
468
469
|
var n;
|
|
469
470
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
470
471
|
builderLinkComponent: t
|
|
471
472
|
} : {};
|
|
472
|
-
},
|
|
473
|
+
}, Bt = (e, t, n) => {
|
|
473
474
|
var i;
|
|
474
475
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
475
476
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
|
|
476
477
|
} : {};
|
|
477
|
-
},
|
|
478
|
+
}, Vt = (e, t) => {
|
|
478
479
|
var n;
|
|
479
480
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
480
481
|
builderBlock: t
|
|
481
482
|
} : {};
|
|
482
|
-
},
|
|
483
|
+
}, At = (e, t) => {
|
|
483
484
|
var n;
|
|
484
485
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
485
486
|
builderContext: t
|
|
@@ -537,7 +538,7 @@ function G(e) {
|
|
|
537
538
|
}
|
|
538
539
|
);
|
|
539
540
|
}
|
|
540
|
-
function
|
|
541
|
+
function Wt(e) {
|
|
541
542
|
function t() {
|
|
542
543
|
const i = e.block;
|
|
543
544
|
return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
|
|
@@ -588,7 +589,7 @@ function At(e) {
|
|
|
588
589
|
v
|
|
589
590
|
].join(" ");
|
|
590
591
|
}
|
|
591
|
-
return /* @__PURE__ */ l(
|
|
592
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
592
593
|
G,
|
|
593
594
|
{
|
|
594
595
|
id: "builderio-block",
|
|
@@ -597,10 +598,10 @@ function At(e) {
|
|
|
597
598
|
}
|
|
598
599
|
) }) : null });
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
+
function Nt(e) {
|
|
601
602
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
602
603
|
}
|
|
603
|
-
const
|
|
604
|
+
const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => O({
|
|
604
605
|
code: e,
|
|
605
606
|
context: t.context,
|
|
606
607
|
localState: t.localState,
|
|
@@ -616,7 +617,7 @@ function Ue(e) {
|
|
|
616
617
|
if (!n.hasOwnProperty(o))
|
|
617
618
|
continue;
|
|
618
619
|
const r = n[o];
|
|
619
|
-
let a =
|
|
620
|
+
let a = Ft(o);
|
|
620
621
|
if (e.stripPrefix)
|
|
621
622
|
switch ($) {
|
|
622
623
|
case "vue":
|
|
@@ -626,16 +627,16 @@ function Ue(e) {
|
|
|
626
627
|
a = a.replace("on:", "");
|
|
627
628
|
break;
|
|
628
629
|
}
|
|
629
|
-
t[a] =
|
|
630
|
+
t[a] = $t(r, e);
|
|
630
631
|
}
|
|
631
632
|
return t;
|
|
632
633
|
}
|
|
633
|
-
function
|
|
634
|
+
function Lt({
|
|
634
635
|
properties: e
|
|
635
636
|
}) {
|
|
636
637
|
return e;
|
|
637
638
|
}
|
|
638
|
-
const
|
|
639
|
+
const Dt = (e) => ({
|
|
639
640
|
href: e.href
|
|
640
641
|
});
|
|
641
642
|
function ce({
|
|
@@ -644,22 +645,22 @@ function ce({
|
|
|
644
645
|
}) {
|
|
645
646
|
var i;
|
|
646
647
|
const n = {
|
|
647
|
-
...
|
|
648
|
+
...Dt(e),
|
|
648
649
|
...e.properties,
|
|
649
650
|
"builder-id": e.id,
|
|
650
|
-
style:
|
|
651
|
+
style: wt({
|
|
651
652
|
block: e,
|
|
652
653
|
context: t
|
|
653
654
|
}),
|
|
654
655
|
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
655
656
|
};
|
|
656
|
-
return
|
|
657
|
+
return Lt({
|
|
657
658
|
properties: n,
|
|
658
659
|
context: t,
|
|
659
660
|
block: e
|
|
660
661
|
});
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
+
function Ot(e) {
|
|
663
664
|
return /* @__PURE__ */ l(
|
|
664
665
|
le,
|
|
665
666
|
{
|
|
@@ -680,11 +681,11 @@ function Dt(e) {
|
|
|
680
681
|
}
|
|
681
682
|
);
|
|
682
683
|
}
|
|
683
|
-
function
|
|
684
|
+
function Ut(e) {
|
|
684
685
|
return A(() => {
|
|
685
|
-
}, []), /* @__PURE__ */ l(
|
|
686
|
+
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
686
687
|
}
|
|
687
|
-
function
|
|
688
|
+
function _t(e) {
|
|
688
689
|
function t() {
|
|
689
690
|
return e.includeBlockProps ? {
|
|
690
691
|
...ce({
|
|
@@ -700,8 +701,8 @@ function Ut(e) {
|
|
|
700
701
|
})
|
|
701
702
|
} : {};
|
|
702
703
|
}
|
|
703
|
-
return /* @__PURE__ */ l(
|
|
704
|
-
|
|
704
|
+
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
705
|
+
Ut,
|
|
705
706
|
{
|
|
706
707
|
load: e.Wrapper.load,
|
|
707
708
|
fallback: e.Wrapper.fallback,
|
|
@@ -711,7 +712,7 @@ function Ut(e) {
|
|
|
711
712
|
}
|
|
712
713
|
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
713
714
|
}
|
|
714
|
-
const
|
|
715
|
+
const Ht = ({
|
|
715
716
|
componentOptions: e,
|
|
716
717
|
builderBlock: t,
|
|
717
718
|
context: n,
|
|
@@ -744,12 +745,12 @@ const _t = ({
|
|
|
744
745
|
function ge(e) {
|
|
745
746
|
var i;
|
|
746
747
|
const [t, n] = E(
|
|
747
|
-
() => e.isInteractive ?
|
|
748
|
+
() => e.isInteractive ? _t : e.componentRef
|
|
748
749
|
);
|
|
749
|
-
return /* @__PURE__ */ l(
|
|
750
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
750
751
|
t,
|
|
751
752
|
{
|
|
752
|
-
...
|
|
753
|
+
...Ht({
|
|
753
754
|
componentOptions: e.componentOptions,
|
|
754
755
|
builderBlock: e.builderBlock,
|
|
755
756
|
context: e.context,
|
|
@@ -787,7 +788,7 @@ function be(e) {
|
|
|
787
788
|
function H(e) {
|
|
788
789
|
var h, g, m, y;
|
|
789
790
|
function t() {
|
|
790
|
-
return
|
|
791
|
+
return Rt({
|
|
791
792
|
block: e.block,
|
|
792
793
|
context: e.context
|
|
793
794
|
});
|
|
@@ -800,7 +801,7 @@ function H(e) {
|
|
|
800
801
|
var v;
|
|
801
802
|
if (n.value && !n.update && !ae())
|
|
802
803
|
return n.value;
|
|
803
|
-
const f = (v = e.block.repeat) != null && v.collection ? e.block :
|
|
804
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
|
|
804
805
|
block: e.block,
|
|
805
806
|
localState: e.context.localState,
|
|
806
807
|
rootState: e.context.rootState,
|
|
@@ -810,7 +811,7 @@ function H(e) {
|
|
|
810
811
|
return n.value = f, n.update = !1, f;
|
|
811
812
|
}
|
|
812
813
|
function r() {
|
|
813
|
-
return
|
|
814
|
+
return Et({
|
|
814
815
|
block: o(),
|
|
815
816
|
registeredComponents: e.registeredComponents,
|
|
816
817
|
model: e.context.model
|
|
@@ -837,11 +838,11 @@ function H(e) {
|
|
|
837
838
|
blockChildren: (f = o().children) != null ? f : [],
|
|
838
839
|
componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
|
|
839
840
|
componentOptions: {
|
|
840
|
-
...
|
|
841
|
-
...
|
|
842
|
-
...
|
|
843
|
-
...
|
|
844
|
-
...
|
|
841
|
+
...dt(o(), e.context),
|
|
842
|
+
...Vt(r(), o()),
|
|
843
|
+
...At(r(), e.context),
|
|
844
|
+
...Pt(r(), e.linkComponent),
|
|
845
|
+
...Bt(
|
|
845
846
|
r(),
|
|
846
847
|
e.registeredComponents,
|
|
847
848
|
e.context.model
|
|
@@ -857,7 +858,7 @@ function H(e) {
|
|
|
857
858
|
}
|
|
858
859
|
return A(() => {
|
|
859
860
|
const f = o().id, v = o().animations;
|
|
860
|
-
v && f &&
|
|
861
|
+
v && f && St(
|
|
861
862
|
v.map((x) => ({
|
|
862
863
|
...x,
|
|
863
864
|
elementId: f
|
|
@@ -865,9 +866,9 @@ function H(e) {
|
|
|
865
866
|
);
|
|
866
867
|
}, []), A(() => {
|
|
867
868
|
n.update = !0;
|
|
868
|
-
}), /* @__PURE__ */ l(
|
|
869
|
-
/* @__PURE__ */ l(
|
|
870
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(
|
|
869
|
+
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ W(w, { children: [
|
|
870
|
+
/* @__PURE__ */ l(Wt, { block: o(), context: e.context }),
|
|
871
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
|
|
871
872
|
be,
|
|
872
873
|
{
|
|
873
874
|
repeatContext: f.context,
|
|
@@ -889,7 +890,7 @@ function H(e) {
|
|
|
889
890
|
includeBlockProps: c().includeBlockProps,
|
|
890
891
|
isInteractive: c().isInteractive
|
|
891
892
|
}
|
|
892
|
-
) : /* @__PURE__ */ l(
|
|
893
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
|
|
893
894
|
be,
|
|
894
895
|
{
|
|
895
896
|
repeatContext: f.context,
|
|
@@ -899,7 +900,7 @@ function H(e) {
|
|
|
899
900
|
},
|
|
900
901
|
v
|
|
901
902
|
)) }) : /* @__PURE__ */ W(
|
|
902
|
-
|
|
903
|
+
Ot,
|
|
903
904
|
{
|
|
904
905
|
Wrapper: a(),
|
|
905
906
|
block: o(),
|
|
@@ -934,7 +935,7 @@ function H(e) {
|
|
|
934
935
|
) })
|
|
935
936
|
] }) : null });
|
|
936
937
|
}
|
|
937
|
-
function
|
|
938
|
+
function Mt(e) {
|
|
938
939
|
const t = D(null);
|
|
939
940
|
function n() {
|
|
940
941
|
var a;
|
|
@@ -977,12 +978,12 @@ function Ht(e) {
|
|
|
977
978
|
));
|
|
978
979
|
}
|
|
979
980
|
return A(() => {
|
|
980
|
-
}, []), /* @__PURE__ */ W(
|
|
981
|
+
}, []), /* @__PURE__ */ W(w, { children: [
|
|
981
982
|
/* @__PURE__ */ l(
|
|
982
983
|
e.BlocksWrapper,
|
|
983
984
|
{
|
|
984
985
|
ref: t,
|
|
985
|
-
className: n() + " props-blocks-wrapper-
|
|
986
|
+
className: n() + " props-blocks-wrapper-2c6a6d88",
|
|
986
987
|
"builder-path": i(),
|
|
987
988
|
"builder-parent-id": e.parent,
|
|
988
989
|
style: e.styleProp,
|
|
@@ -993,7 +994,7 @@ function Ht(e) {
|
|
|
993
994
|
children: e.children
|
|
994
995
|
}
|
|
995
996
|
),
|
|
996
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
997
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-2c6a6d88 {
|
|
997
998
|
display: flex;
|
|
998
999
|
flex-direction: column;
|
|
999
1000
|
align-items: stretch;
|
|
@@ -1004,7 +1005,7 @@ function F(e) {
|
|
|
1004
1005
|
var i, o, r;
|
|
1005
1006
|
const t = fe(se), n = fe(Pe);
|
|
1006
1007
|
return /* @__PURE__ */ l(
|
|
1007
|
-
|
|
1008
|
+
Mt,
|
|
1008
1009
|
{
|
|
1009
1010
|
blocks: e.blocks,
|
|
1010
1011
|
parent: e.parent,
|
|
@@ -1013,7 +1014,7 @@ function F(e) {
|
|
|
1013
1014
|
classNameProp: e.className,
|
|
1014
1015
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1015
1016
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1016
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
1017
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
|
|
1017
1018
|
H,
|
|
1018
1019
|
{
|
|
1019
1020
|
block: a,
|
|
@@ -1026,8 +1027,8 @@ function F(e) {
|
|
|
1026
1027
|
}
|
|
1027
1028
|
);
|
|
1028
1029
|
}
|
|
1029
|
-
const
|
|
1030
|
-
function
|
|
1030
|
+
const jt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1031
|
+
function qt(e) {
|
|
1031
1032
|
var v, x;
|
|
1032
1033
|
function t() {
|
|
1033
1034
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1074,7 +1075,7 @@ function jt(e) {
|
|
|
1074
1075
|
};
|
|
1075
1076
|
}
|
|
1076
1077
|
function g(b) {
|
|
1077
|
-
const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%",
|
|
1078
|
+
const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%", T = 0;
|
|
1078
1079
|
return {
|
|
1079
1080
|
...{
|
|
1080
1081
|
display: "flex",
|
|
@@ -1088,7 +1089,7 @@ function jt(e) {
|
|
|
1088
1089
|
desktopStyle: C
|
|
1089
1090
|
}),
|
|
1090
1091
|
"--column-margin-left-mobile": d({
|
|
1091
|
-
stackedStyle:
|
|
1092
|
+
stackedStyle: T,
|
|
1092
1093
|
desktopStyle: V
|
|
1093
1094
|
}),
|
|
1094
1095
|
"--column-width-tablet": s({
|
|
@@ -1096,7 +1097,7 @@ function jt(e) {
|
|
|
1096
1097
|
desktopStyle: C
|
|
1097
1098
|
}),
|
|
1098
1099
|
"--column-margin-left-tablet": s({
|
|
1099
|
-
stackedStyle:
|
|
1100
|
+
stackedStyle: T,
|
|
1100
1101
|
desktopStyle: V
|
|
1101
1102
|
})
|
|
1102
1103
|
};
|
|
@@ -1144,11 +1145,11 @@ function jt(e) {
|
|
|
1144
1145
|
style: $e(g(p))
|
|
1145
1146
|
};
|
|
1146
1147
|
}
|
|
1147
|
-
return /* @__PURE__ */ W(
|
|
1148
|
+
return /* @__PURE__ */ W(w, { children: [
|
|
1148
1149
|
/* @__PURE__ */ W(
|
|
1149
1150
|
"div",
|
|
1150
1151
|
{
|
|
1151
|
-
className:
|
|
1152
|
+
className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-d55bdf5c",
|
|
1152
1153
|
style: h(),
|
|
1153
1154
|
children: [
|
|
1154
1155
|
/* @__PURE__ */ l(
|
|
@@ -1185,23 +1186,23 @@ function jt(e) {
|
|
|
1185
1186
|
]
|
|
1186
1187
|
}
|
|
1187
1188
|
),
|
|
1188
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1189
|
+
/* @__PURE__ */ l("style", { children: `.div-d55bdf5c {
|
|
1189
1190
|
display: flex;
|
|
1190
1191
|
line-height: normal;
|
|
1191
1192
|
}` })
|
|
1192
1193
|
] });
|
|
1193
1194
|
}
|
|
1194
|
-
function
|
|
1195
|
+
function zt(e) {
|
|
1195
1196
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1196
1197
|
}
|
|
1197
1198
|
function pe(e) {
|
|
1198
1199
|
return e.replace(/http(s)?:/, "");
|
|
1199
1200
|
}
|
|
1200
|
-
function
|
|
1201
|
+
function Kt(e = "", t, n) {
|
|
1201
1202
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1202
1203
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1203
1204
|
}
|
|
1204
|
-
function
|
|
1205
|
+
function Jt(e, t) {
|
|
1205
1206
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1206
1207
|
return e;
|
|
1207
1208
|
if (t === "master")
|
|
@@ -1220,11 +1221,11 @@ function Y(e) {
|
|
|
1220
1221
|
if (e.match(/builder\.io/)) {
|
|
1221
1222
|
let n = e;
|
|
1222
1223
|
const i = Number(e.split("?width=")[1]);
|
|
1223
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1224
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1224
1225
|
}
|
|
1225
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1226
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1226
1227
|
}
|
|
1227
|
-
function
|
|
1228
|
+
function Gt(e) {
|
|
1228
1229
|
var o, r, a, s, d, c;
|
|
1229
1230
|
function t() {
|
|
1230
1231
|
var m;
|
|
@@ -1257,8 +1258,8 @@ function Jt(e) {
|
|
|
1257
1258
|
return e.aspectRatio ? h : void 0;
|
|
1258
1259
|
}
|
|
1259
1260
|
return A(() => {
|
|
1260
|
-
}, []), /* @__PURE__ */ W(
|
|
1261
|
-
/* @__PURE__ */ W(
|
|
1261
|
+
}, []), /* @__PURE__ */ W(w, { children: [
|
|
1262
|
+
/* @__PURE__ */ W(w, { children: [
|
|
1262
1263
|
/* @__PURE__ */ W("picture", { children: [
|
|
1263
1264
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1264
1265
|
/* @__PURE__ */ l(
|
|
@@ -1273,7 +1274,7 @@ function Jt(e) {
|
|
|
1273
1274
|
objectFit: e.backgroundSize || "cover",
|
|
1274
1275
|
...i()
|
|
1275
1276
|
},
|
|
1276
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1277
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
|
|
1277
1278
|
src: e.image,
|
|
1278
1279
|
srcSet: t(),
|
|
1279
1280
|
sizes: e.sizes
|
|
@@ -1283,23 +1284,23 @@ function Jt(e) {
|
|
|
1283
1284
|
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1284
1285
|
"div",
|
|
1285
1286
|
{
|
|
1286
|
-
className: "builder-image-sizer div-
|
|
1287
|
+
className: "builder-image-sizer div-11a47ef4",
|
|
1287
1288
|
style: {
|
|
1288
1289
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1289
1290
|
}
|
|
1290
1291
|
}
|
|
1291
1292
|
) : null,
|
|
1292
|
-
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1293
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1293
|
+
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1294
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-11a47ef4-2", children: e.children }) : null
|
|
1294
1295
|
] }),
|
|
1295
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1296
|
+
/* @__PURE__ */ l("style", { children: `.img-11a47ef4 {
|
|
1296
1297
|
opacity: 1;
|
|
1297
1298
|
transition: opacity 0.2s ease-in-out;
|
|
1298
|
-
}.div-
|
|
1299
|
+
}.div-11a47ef4 {
|
|
1299
1300
|
width: 100%;
|
|
1300
1301
|
pointer-events: none;
|
|
1301
1302
|
font-size: 0;
|
|
1302
|
-
}.div-
|
|
1303
|
+
}.div-11a47ef4-2 {
|
|
1303
1304
|
display: flex;
|
|
1304
1305
|
flex-direction: column;
|
|
1305
1306
|
align-items: stretch;
|
|
@@ -1311,7 +1312,7 @@ function Jt(e) {
|
|
|
1311
1312
|
}` })
|
|
1312
1313
|
] });
|
|
1313
1314
|
}
|
|
1314
|
-
function
|
|
1315
|
+
function Yt(e) {
|
|
1315
1316
|
return /* @__PURE__ */ l(
|
|
1316
1317
|
"section",
|
|
1317
1318
|
{
|
|
@@ -1392,7 +1393,7 @@ const Q = {
|
|
|
1392
1393
|
}
|
|
1393
1394
|
}
|
|
1394
1395
|
}]
|
|
1395
|
-
},
|
|
1396
|
+
}, Qt = {
|
|
1396
1397
|
name: "Builder:Accordion",
|
|
1397
1398
|
canHaveChildren: !0,
|
|
1398
1399
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1457,7 +1458,7 @@ const Q = {
|
|
|
1457
1458
|
builderLinkComponent: !0
|
|
1458
1459
|
}
|
|
1459
1460
|
}, ye = (e) => e.toString();
|
|
1460
|
-
function
|
|
1461
|
+
function Xt(e) {
|
|
1461
1462
|
var g;
|
|
1462
1463
|
const [t, n] = E(() => []);
|
|
1463
1464
|
function i() {
|
|
@@ -1535,7 +1536,7 @@ function Qt(e) {
|
|
|
1535
1536
|
function h(m) {
|
|
1536
1537
|
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1537
1538
|
}
|
|
1538
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(
|
|
1539
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(Ge.Fragment, { children: [
|
|
1539
1540
|
/* @__PURE__ */ l(
|
|
1540
1541
|
"div",
|
|
1541
1542
|
{
|
|
@@ -1580,9 +1581,9 @@ function Qt(e) {
|
|
|
1580
1581
|
)
|
|
1581
1582
|
}
|
|
1582
1583
|
) : null
|
|
1583
|
-
] })) });
|
|
1584
|
+
] }, y)) });
|
|
1584
1585
|
}
|
|
1585
|
-
const
|
|
1586
|
+
const Zt = {
|
|
1586
1587
|
name: "Core:Button",
|
|
1587
1588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1588
1589
|
defaultStyles: {
|
|
@@ -1618,7 +1619,7 @@ const Xt = {
|
|
|
1618
1619
|
shouldReceiveBuilderProps: {
|
|
1619
1620
|
builderLinkComponent: !0
|
|
1620
1621
|
}
|
|
1621
|
-
},
|
|
1622
|
+
}, en = {
|
|
1622
1623
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1623
1624
|
name: "Columns",
|
|
1624
1625
|
isRSC: !0,
|
|
@@ -1825,13 +1826,13 @@ const Xt = {
|
|
|
1825
1826
|
builderComponents: !0,
|
|
1826
1827
|
builderLinkComponent: !0
|
|
1827
1828
|
}
|
|
1828
|
-
},
|
|
1829
|
+
}, tn = {
|
|
1829
1830
|
name: "Fragment",
|
|
1830
1831
|
static: !0,
|
|
1831
1832
|
hidden: !0,
|
|
1832
1833
|
canHaveChildren: !0,
|
|
1833
1834
|
noWrap: !0
|
|
1834
|
-
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
1835
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], nn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
|
|
1835
1836
|
name: "Image",
|
|
1836
1837
|
static: !0,
|
|
1837
1838
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1939,7 +1940,7 @@ const Xt = {
|
|
|
1939
1940
|
shouldReceiveBuilderProps: {
|
|
1940
1941
|
builderBlock: !0
|
|
1941
1942
|
}
|
|
1942
|
-
},
|
|
1943
|
+
}, an = {
|
|
1943
1944
|
name: "Core:Section",
|
|
1944
1945
|
static: !0,
|
|
1945
1946
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1978,7 +1979,7 @@ const Xt = {
|
|
|
1978
1979
|
}
|
|
1979
1980
|
}
|
|
1980
1981
|
}]
|
|
1981
|
-
},
|
|
1982
|
+
}, rn = {
|
|
1982
1983
|
name: "Slot",
|
|
1983
1984
|
isRSC: !0,
|
|
1984
1985
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1996,7 +1997,7 @@ const Xt = {
|
|
|
1996
1997
|
builderComponents: !0
|
|
1997
1998
|
}
|
|
1998
1999
|
};
|
|
1999
|
-
function
|
|
2000
|
+
function ln(e) {
|
|
2000
2001
|
var t, n, i;
|
|
2001
2002
|
return /* @__PURE__ */ l(
|
|
2002
2003
|
"div",
|
|
@@ -2020,7 +2021,7 @@ function rn(e) {
|
|
|
2020
2021
|
}
|
|
2021
2022
|
);
|
|
2022
2023
|
}
|
|
2023
|
-
const
|
|
2024
|
+
const sn = {
|
|
2024
2025
|
name: "Symbol",
|
|
2025
2026
|
noWrap: !0,
|
|
2026
2027
|
static: !0,
|
|
@@ -2097,7 +2098,7 @@ const ln = {
|
|
|
2097
2098
|
text: "New tab content "
|
|
2098
2099
|
}
|
|
2099
2100
|
}
|
|
2100
|
-
},
|
|
2101
|
+
}, cn = {
|
|
2101
2102
|
name: "Builder: Tabs",
|
|
2102
2103
|
inputs: [{
|
|
2103
2104
|
name: "tabs",
|
|
@@ -2201,7 +2202,7 @@ const ln = {
|
|
|
2201
2202
|
builderLinkComponent: !0
|
|
2202
2203
|
}
|
|
2203
2204
|
};
|
|
2204
|
-
function
|
|
2205
|
+
function dn(e) {
|
|
2205
2206
|
var r;
|
|
2206
2207
|
const [t, n] = E(
|
|
2207
2208
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2260,7 +2261,7 @@ function cn(e) {
|
|
|
2260
2261
|
) }) : null
|
|
2261
2262
|
] });
|
|
2262
2263
|
}
|
|
2263
|
-
const
|
|
2264
|
+
const un = {
|
|
2264
2265
|
shouldReceiveBuilderProps: {
|
|
2265
2266
|
builderBlock: !1,
|
|
2266
2267
|
builderContext: !0
|
|
@@ -2283,7 +2284,7 @@ const dn = {
|
|
|
2283
2284
|
textAlign: "center"
|
|
2284
2285
|
}
|
|
2285
2286
|
};
|
|
2286
|
-
function
|
|
2287
|
+
function mn(e) {
|
|
2287
2288
|
var t;
|
|
2288
2289
|
return /* @__PURE__ */ l(
|
|
2289
2290
|
"div",
|
|
@@ -2296,7 +2297,7 @@ function un(e) {
|
|
|
2296
2297
|
}
|
|
2297
2298
|
);
|
|
2298
2299
|
}
|
|
2299
|
-
const
|
|
2300
|
+
const fn = {
|
|
2300
2301
|
name: "Custom Code",
|
|
2301
2302
|
static: !0,
|
|
2302
2303
|
requiredPermissions: ["editCode"],
|
|
@@ -2319,7 +2320,7 @@ const mn = {
|
|
|
2319
2320
|
advanced: !0
|
|
2320
2321
|
}]
|
|
2321
2322
|
};
|
|
2322
|
-
function
|
|
2323
|
+
function hn(e) {
|
|
2323
2324
|
const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []);
|
|
2324
2325
|
return A(() => {
|
|
2325
2326
|
var s;
|
|
@@ -2357,7 +2358,7 @@ function fn(e) {
|
|
|
2357
2358
|
}
|
|
2358
2359
|
);
|
|
2359
2360
|
}
|
|
2360
|
-
const
|
|
2361
|
+
const gn = {
|
|
2361
2362
|
name: "Embed",
|
|
2362
2363
|
static: !0,
|
|
2363
2364
|
inputs: [{
|
|
@@ -2372,8 +2373,8 @@ const hn = {
|
|
|
2372
2373
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2373
2374
|
hideFromUI: !0
|
|
2374
2375
|
}]
|
|
2375
|
-
},
|
|
2376
|
-
function
|
|
2376
|
+
}, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
|
|
2377
|
+
function yn(e) {
|
|
2377
2378
|
const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []), [a, s] = E(() => !1);
|
|
2378
2379
|
function d() {
|
|
2379
2380
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2385,7 +2386,7 @@ function pn(e) {
|
|
|
2385
2386
|
n.push(g.src);
|
|
2386
2387
|
const m = document.createElement("script");
|
|
2387
2388
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2388
|
-
} else if (
|
|
2389
|
+
} else if (pn(g) && !o.includes(g.innerText))
|
|
2389
2390
|
try {
|
|
2390
2391
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2391
2392
|
} catch (m) {
|
|
@@ -2404,7 +2405,7 @@ function pn(e) {
|
|
|
2404
2405
|
}
|
|
2405
2406
|
);
|
|
2406
2407
|
}
|
|
2407
|
-
const
|
|
2408
|
+
const xn = {
|
|
2408
2409
|
name: "Form:Form",
|
|
2409
2410
|
// editableTags: ['builder-form-error']
|
|
2410
2411
|
defaults: {
|
|
@@ -2641,11 +2642,11 @@ const yn = {
|
|
|
2641
2642
|
builderComponents: !0,
|
|
2642
2643
|
builderLinkComponent: !0
|
|
2643
2644
|
}
|
|
2644
|
-
},
|
|
2645
|
+
}, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
|
|
2645
2646
|
const e = process.env.NODE_ENV || "production";
|
|
2646
|
-
return
|
|
2647
|
+
return vn.includes(e) ? e : "production";
|
|
2647
2648
|
};
|
|
2648
|
-
function
|
|
2649
|
+
function kn(e) {
|
|
2649
2650
|
var g, m;
|
|
2650
2651
|
const t = D(null), [n, i] = E(() => "unsubmitted"), [o, r] = E(() => null), [a, s] = E(() => "");
|
|
2651
2652
|
function d(y) {
|
|
@@ -2685,8 +2686,8 @@ function Sn(e) {
|
|
|
2685
2686
|
} else if (u.type === "checkbox")
|
|
2686
2687
|
S = u.checked;
|
|
2687
2688
|
else if (u.type === "number" || u.type === "range") {
|
|
2688
|
-
const
|
|
2689
|
-
isNaN(
|
|
2689
|
+
const I = u.valueAsNumber;
|
|
2690
|
+
isNaN(I) || (S = I);
|
|
2690
2691
|
} else
|
|
2691
2692
|
u.type === "file" ? S = u.files : S = u.value;
|
|
2692
2693
|
else
|
|
@@ -2708,11 +2709,11 @@ function Sn(e) {
|
|
|
2708
2709
|
}), p = JSON.stringify(u);
|
|
2709
2710
|
}
|
|
2710
2711
|
k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
|
|
2711
|
-
const
|
|
2712
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2712
|
+
const T = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2713
|
+
if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
|
|
2713
2714
|
return;
|
|
2714
2715
|
i("sending");
|
|
2715
|
-
const R = `${
|
|
2716
|
+
const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2716
2717
|
e.sendSubmissionsToEmail || ""
|
|
2717
2718
|
)}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
|
|
2718
2719
|
Te(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
|
|
@@ -2720,15 +2721,15 @@ function Sn(e) {
|
|
|
2720
2721
|
let S;
|
|
2721
2722
|
const P = u.headers.get("content-type");
|
|
2722
2723
|
if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2723
|
-
let
|
|
2724
|
-
|
|
2724
|
+
let I = Be(S, e.errorMessagePath);
|
|
2725
|
+
I && (typeof I != "string" && (I = JSON.stringify(I)), s(I), d({ formErrorMessage: I }));
|
|
2725
2726
|
}
|
|
2726
2727
|
if (r(S), i(u.ok ? "success" : "error"), u.ok) {
|
|
2727
|
-
const
|
|
2728
|
+
const I = new CustomEvent("submit:success", {
|
|
2728
2729
|
detail: { res: u, body: S }
|
|
2729
2730
|
});
|
|
2730
2731
|
if (t.current) {
|
|
2731
|
-
if (t.current.dispatchEvent(
|
|
2732
|
+
if (t.current.dispatchEvent(I), I.defaultPrevented)
|
|
2732
2733
|
return;
|
|
2733
2734
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2734
2735
|
}
|
|
@@ -2751,7 +2752,7 @@ function Sn(e) {
|
|
|
2751
2752
|
);
|
|
2752
2753
|
}
|
|
2753
2754
|
}
|
|
2754
|
-
return /* @__PURE__ */ W(
|
|
2755
|
+
return /* @__PURE__ */ W(w, { children: [
|
|
2755
2756
|
" ",
|
|
2756
2757
|
/* @__PURE__ */ W(
|
|
2757
2758
|
"form",
|
|
@@ -2764,7 +2765,7 @@ function Sn(e) {
|
|
|
2764
2765
|
onSubmit: (y) => h(y),
|
|
2765
2766
|
...e.attributes,
|
|
2766
2767
|
children: [
|
|
2767
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2768
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
|
|
2768
2769
|
H,
|
|
2769
2770
|
{
|
|
2770
2771
|
block: y,
|
|
@@ -2790,7 +2791,7 @@ function Sn(e) {
|
|
|
2790
2791
|
context: e.builderContext
|
|
2791
2792
|
}
|
|
2792
2793
|
) : null,
|
|
2793
|
-
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-
|
|
2794
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
|
|
2794
2795
|
c() === "success" ? /* @__PURE__ */ l(
|
|
2795
2796
|
F,
|
|
2796
2797
|
{
|
|
@@ -2803,11 +2804,11 @@ function Sn(e) {
|
|
|
2803
2804
|
}
|
|
2804
2805
|
),
|
|
2805
2806
|
" ",
|
|
2806
|
-
/* @__PURE__ */ l("style", { children: ".pre-
|
|
2807
|
+
/* @__PURE__ */ l("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
|
|
2807
2808
|
" "
|
|
2808
2809
|
] });
|
|
2809
2810
|
}
|
|
2810
|
-
const
|
|
2811
|
+
const Cn = {
|
|
2811
2812
|
name: "Form:Input",
|
|
2812
2813
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2813
2814
|
inputs: [
|
|
@@ -2859,7 +2860,7 @@ const kn = {
|
|
|
2859
2860
|
borderColor: "#ccc"
|
|
2860
2861
|
}
|
|
2861
2862
|
};
|
|
2862
|
-
function
|
|
2863
|
+
function Tn(e) {
|
|
2863
2864
|
return /* @__PURE__ */ Ee(
|
|
2864
2865
|
"input",
|
|
2865
2866
|
{
|
|
@@ -2874,7 +2875,7 @@ function Cn(e) {
|
|
|
2874
2875
|
}
|
|
2875
2876
|
);
|
|
2876
2877
|
}
|
|
2877
|
-
const
|
|
2878
|
+
const In = {
|
|
2878
2879
|
name: "Form:Select",
|
|
2879
2880
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2880
2881
|
defaultStyles: {
|
|
@@ -2917,7 +2918,7 @@ const Tn = {
|
|
|
2917
2918
|
static: !0,
|
|
2918
2919
|
noWrap: !0
|
|
2919
2920
|
};
|
|
2920
|
-
function
|
|
2921
|
+
function wn(e) {
|
|
2921
2922
|
var t;
|
|
2922
2923
|
return /* @__PURE__ */ Ee(
|
|
2923
2924
|
"select",
|
|
@@ -2932,7 +2933,7 @@ function In(e) {
|
|
|
2932
2933
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2933
2934
|
);
|
|
2934
2935
|
}
|
|
2935
|
-
const
|
|
2936
|
+
const En = {
|
|
2936
2937
|
name: "Form:SubmitButton",
|
|
2937
2938
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2938
2939
|
defaultStyles: {
|
|
@@ -2958,10 +2959,10 @@ const wn = {
|
|
|
2958
2959
|
// TODO: defaultChildren
|
|
2959
2960
|
// canHaveChildren: true,
|
|
2960
2961
|
};
|
|
2961
|
-
function
|
|
2962
|
+
function Rn(e) {
|
|
2962
2963
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2963
2964
|
}
|
|
2964
|
-
const
|
|
2965
|
+
const Pn = {
|
|
2965
2966
|
name: "Form:TextArea",
|
|
2966
2967
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2967
2968
|
inputs: [{
|
|
@@ -2998,7 +2999,7 @@ const Rn = {
|
|
|
2998
2999
|
static: !0,
|
|
2999
3000
|
noWrap: !0
|
|
3000
3001
|
};
|
|
3001
|
-
function
|
|
3002
|
+
function Bn(e) {
|
|
3002
3003
|
return /* @__PURE__ */ l(
|
|
3003
3004
|
"textarea",
|
|
3004
3005
|
{
|
|
@@ -3011,7 +3012,7 @@ function Pn(e) {
|
|
|
3011
3012
|
}
|
|
3012
3013
|
);
|
|
3013
3014
|
}
|
|
3014
|
-
const
|
|
3015
|
+
const Vn = {
|
|
3015
3016
|
// friendlyName?
|
|
3016
3017
|
name: "Raw:Img",
|
|
3017
3018
|
hideFromInsertMenu: !0,
|
|
@@ -3026,7 +3027,7 @@ const Bn = {
|
|
|
3026
3027
|
noWrap: !0,
|
|
3027
3028
|
static: !0
|
|
3028
3029
|
};
|
|
3029
|
-
function
|
|
3030
|
+
function An(e) {
|
|
3030
3031
|
return /* @__PURE__ */ l(
|
|
3031
3032
|
"img",
|
|
3032
3033
|
{
|
|
@@ -3041,7 +3042,7 @@ function Vn(e) {
|
|
|
3041
3042
|
N() && e.imgSrc || "default-key"
|
|
3042
3043
|
);
|
|
3043
3044
|
}
|
|
3044
|
-
const
|
|
3045
|
+
const Wn = {
|
|
3045
3046
|
name: "Video",
|
|
3046
3047
|
canHaveChildren: !0,
|
|
3047
3048
|
defaultStyles: {
|
|
@@ -3052,7 +3053,7 @@ const An = {
|
|
|
3052
3053
|
inputs: [{
|
|
3053
3054
|
name: "video",
|
|
3054
3055
|
type: "file",
|
|
3055
|
-
allowedFileTypes:
|
|
3056
|
+
allowedFileTypes: nn,
|
|
3056
3057
|
bubble: !0,
|
|
3057
3058
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3058
3059
|
required: !0
|
|
@@ -3126,7 +3127,7 @@ const An = {
|
|
|
3126
3127
|
builderBlock: !0
|
|
3127
3128
|
}
|
|
3128
3129
|
};
|
|
3129
|
-
function
|
|
3130
|
+
function Nn(e) {
|
|
3130
3131
|
var i, o, r, a, s, d, c;
|
|
3131
3132
|
function t() {
|
|
3132
3133
|
return {
|
|
@@ -3227,64 +3228,64 @@ function Wn(e) {
|
|
|
3227
3228
|
}
|
|
3228
3229
|
);
|
|
3229
3230
|
}
|
|
3230
|
-
const
|
|
3231
|
-
component:
|
|
3232
|
-
...
|
|
3231
|
+
const Fn = () => [{
|
|
3232
|
+
component: hn,
|
|
3233
|
+
...fn
|
|
3233
3234
|
}, {
|
|
3234
|
-
component:
|
|
3235
|
-
...
|
|
3235
|
+
component: yn,
|
|
3236
|
+
...gn
|
|
3236
3237
|
}, {
|
|
3237
|
-
component:
|
|
3238
|
-
...
|
|
3238
|
+
component: kn,
|
|
3239
|
+
...xn
|
|
3239
3240
|
}, {
|
|
3240
|
-
component:
|
|
3241
|
-
...
|
|
3241
|
+
component: Tn,
|
|
3242
|
+
...Cn
|
|
3242
3243
|
}, {
|
|
3243
|
-
component:
|
|
3244
|
-
...
|
|
3244
|
+
component: Rn,
|
|
3245
|
+
...En
|
|
3245
3246
|
}, {
|
|
3246
|
-
component:
|
|
3247
|
-
...
|
|
3247
|
+
component: wn,
|
|
3248
|
+
...In
|
|
3248
3249
|
}, {
|
|
3249
|
-
component:
|
|
3250
|
-
...
|
|
3250
|
+
component: Bn,
|
|
3251
|
+
...Pn
|
|
3251
3252
|
}, {
|
|
3252
|
-
component:
|
|
3253
|
-
...
|
|
3253
|
+
component: An,
|
|
3254
|
+
...Vn
|
|
3254
3255
|
}, {
|
|
3255
|
-
component:
|
|
3256
|
-
...
|
|
3256
|
+
component: Nn,
|
|
3257
|
+
...Wn
|
|
3257
3258
|
}], xe = () => [{
|
|
3258
|
-
component:
|
|
3259
|
-
...Xt
|
|
3260
|
-
}, {
|
|
3261
|
-
component: jt,
|
|
3259
|
+
component: ot,
|
|
3262
3260
|
...Zt
|
|
3263
3261
|
}, {
|
|
3264
3262
|
component: qt,
|
|
3265
3263
|
...en
|
|
3266
3264
|
}, {
|
|
3267
|
-
component:
|
|
3268
|
-
...
|
|
3265
|
+
component: zt,
|
|
3266
|
+
...tn
|
|
3269
3267
|
}, {
|
|
3270
3268
|
component: Gt,
|
|
3271
3269
|
...on
|
|
3272
3270
|
}, {
|
|
3273
|
-
component:
|
|
3271
|
+
component: Yt,
|
|
3274
3272
|
...an
|
|
3275
3273
|
}, {
|
|
3276
|
-
component:
|
|
3277
|
-
...
|
|
3278
|
-
}, {
|
|
3279
|
-
component: un,
|
|
3280
|
-
...dn
|
|
3274
|
+
component: ln,
|
|
3275
|
+
...rn
|
|
3281
3276
|
}, {
|
|
3282
|
-
component:
|
|
3277
|
+
component: ai,
|
|
3283
3278
|
...sn
|
|
3284
3279
|
}, {
|
|
3285
|
-
component:
|
|
3286
|
-
...
|
|
3287
|
-
},
|
|
3280
|
+
component: mn,
|
|
3281
|
+
...un
|
|
3282
|
+
}, {
|
|
3283
|
+
component: dn,
|
|
3284
|
+
...cn
|
|
3285
|
+
}, {
|
|
3286
|
+
component: Xt,
|
|
3287
|
+
...Qt
|
|
3288
|
+
}, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3288
3289
|
function getAndSetVariantId() {
|
|
3289
3290
|
function setCookie(name, value, days) {
|
|
3290
3291
|
let expires = '';
|
|
@@ -3340,7 +3341,7 @@ const Nn = () => [{
|
|
|
3340
3341
|
}).join('');
|
|
3341
3342
|
styleEl.innerHTML = newStyleStr;
|
|
3342
3343
|
}
|
|
3343
|
-
}`,
|
|
3344
|
+
}`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3344
3345
|
if (!navigator.cookieEnabled) {
|
|
3345
3346
|
return;
|
|
3346
3347
|
}
|
|
@@ -3378,16 +3379,16 @@ const Nn = () => [{
|
|
|
3378
3379
|
...t,
|
|
3379
3380
|
testVariationId: t.id,
|
|
3380
3381
|
id: e == null ? void 0 : e.id
|
|
3381
|
-
})),
|
|
3382
|
+
})), Dn = ({
|
|
3382
3383
|
canTrack: e,
|
|
3383
3384
|
content: t
|
|
3384
|
-
}) => !(!(j(t).length > 0) || !e || q()),
|
|
3385
|
-
window.${_e} = ${
|
|
3386
|
-
window.${He} = ${
|
|
3387
|
-
`,
|
|
3385
|
+
}) => !(!(j(t).length > 0) || !e || q()), On = (e) => e === "react" || e === "reactNative", Me = On($), Un = () => `
|
|
3386
|
+
window.${_e} = ${$n}
|
|
3387
|
+
window.${He} = ${Ln}
|
|
3388
|
+
`, _n = (e, t) => `
|
|
3388
3389
|
window.${_e}(
|
|
3389
3390
|
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3390
|
-
)`,
|
|
3391
|
+
)`, Hn = ({
|
|
3391
3392
|
contentId: e,
|
|
3392
3393
|
variationId: t
|
|
3393
3394
|
}) => `window.${He}(
|
|
@@ -3406,7 +3407,7 @@ function ie(e) {
|
|
|
3406
3407
|
function ve(e) {
|
|
3407
3408
|
return Math.round(e * 1e3) / 1e3;
|
|
3408
3409
|
}
|
|
3409
|
-
const
|
|
3410
|
+
const Mn = (e, t, n = !0) => {
|
|
3410
3411
|
if (!(e instanceof HTMLElement))
|
|
3411
3412
|
return null;
|
|
3412
3413
|
let i = n ? e : e.parentElement;
|
|
@@ -3417,7 +3418,7 @@ const Hn = (e, t, n = !0) => {
|
|
|
3417
3418
|
return i;
|
|
3418
3419
|
} while (i = i.parentElement);
|
|
3419
3420
|
return null;
|
|
3420
|
-
},
|
|
3421
|
+
}, jn = (e) => Mn(e, (t) => {
|
|
3421
3422
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3422
3423
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3423
3424
|
}), Se = ({
|
|
@@ -3429,8 +3430,8 @@ const Hn = (e, t, n = !0) => {
|
|
|
3429
3430
|
x: r,
|
|
3430
3431
|
y: a
|
|
3431
3432
|
};
|
|
3432
|
-
},
|
|
3433
|
-
const t = e.target, n = t &&
|
|
3433
|
+
}, qn = (e) => {
|
|
3434
|
+
const t = e.target, n = t && jn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3434
3435
|
return {
|
|
3435
3436
|
targetBuilderElement: i || void 0,
|
|
3436
3437
|
metadata: {
|
|
@@ -3445,7 +3446,7 @@ const Hn = (e, t, n = !0) => {
|
|
|
3445
3446
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3446
3447
|
}
|
|
3447
3448
|
};
|
|
3448
|
-
},
|
|
3449
|
+
}, zn = ["svelte", "qwik", "vue"], ke = () => zn.includes($) && (N() || ae()), Kn = (e) => {
|
|
3449
3450
|
var r, a;
|
|
3450
3451
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3451
3452
|
let o = "";
|
|
@@ -3471,15 +3472,15 @@ font-weight: ${s};
|
|
|
3471
3472
|
`.trim());
|
|
3472
3473
|
}
|
|
3473
3474
|
return o;
|
|
3474
|
-
},
|
|
3475
|
+
}, Jn = ({
|
|
3475
3476
|
customFonts: e
|
|
3476
3477
|
}) => {
|
|
3477
3478
|
var t;
|
|
3478
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3479
|
-
},
|
|
3479
|
+
return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3480
|
+
}, Gn = ({
|
|
3480
3481
|
cssCode: e,
|
|
3481
3482
|
contentId: t
|
|
3482
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3483
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yn = `
|
|
3483
3484
|
.builder-button {
|
|
3484
3485
|
all: unset;
|
|
3485
3486
|
}
|
|
@@ -3496,24 +3497,24 @@ font-weight: ${s};
|
|
|
3496
3497
|
text-align: inherit;
|
|
3497
3498
|
font-family: inherit;
|
|
3498
3499
|
}
|
|
3499
|
-
`,
|
|
3500
|
-
function
|
|
3500
|
+
`, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
|
|
3501
|
+
function Zn(e) {
|
|
3501
3502
|
var p, C, V;
|
|
3502
3503
|
const t = D(null);
|
|
3503
3504
|
function n(k) {
|
|
3504
3505
|
var R, B;
|
|
3505
|
-
const
|
|
3506
|
+
const T = {
|
|
3506
3507
|
...e.builderContextSignal.rootState,
|
|
3507
3508
|
...k
|
|
3508
3509
|
};
|
|
3509
|
-
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R,
|
|
3510
|
+
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, T) : e.setBuilderContextSignal((u) => ({
|
|
3510
3511
|
...u,
|
|
3511
|
-
rootState:
|
|
3512
|
+
rootState: T
|
|
3512
3513
|
}));
|
|
3513
3514
|
}
|
|
3514
3515
|
function i(k) {
|
|
3515
3516
|
var R, B, u, S, P;
|
|
3516
|
-
const
|
|
3517
|
+
const T = {
|
|
3517
3518
|
...e.builderContextSignal.content,
|
|
3518
3519
|
...k,
|
|
3519
3520
|
data: {
|
|
@@ -3526,9 +3527,9 @@ function Xn(e) {
|
|
|
3526
3527
|
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
|
|
3527
3528
|
}
|
|
3528
3529
|
};
|
|
3529
|
-
e.setBuilderContextSignal((
|
|
3530
|
-
...
|
|
3531
|
-
content:
|
|
3530
|
+
e.setBuilderContextSignal((I) => ({
|
|
3531
|
+
...I,
|
|
3532
|
+
content: T
|
|
3532
3533
|
}));
|
|
3533
3534
|
}
|
|
3534
3535
|
function o() {
|
|
@@ -3545,29 +3546,29 @@ function Xn(e) {
|
|
|
3545
3546
|
model: e.model,
|
|
3546
3547
|
trustedHosts: e.trustedHosts,
|
|
3547
3548
|
callbacks: {
|
|
3548
|
-
configureSdk: (
|
|
3549
|
+
configureSdk: (T) => {
|
|
3549
3550
|
var u;
|
|
3550
|
-
const { breakpoints: R, contentId: B } =
|
|
3551
|
+
const { breakpoints: R, contentId: B } = T;
|
|
3551
3552
|
!B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
|
|
3552
3553
|
meta: {
|
|
3553
3554
|
breakpoints: R
|
|
3554
3555
|
}
|
|
3555
3556
|
});
|
|
3556
3557
|
},
|
|
3557
|
-
animation: (
|
|
3558
|
-
Ne(
|
|
3558
|
+
animation: (T) => {
|
|
3559
|
+
Ne(T);
|
|
3559
3560
|
},
|
|
3560
|
-
contentUpdate: (
|
|
3561
|
-
i(
|
|
3561
|
+
contentUpdate: (T) => {
|
|
3562
|
+
i(T);
|
|
3562
3563
|
}
|
|
3563
3564
|
}
|
|
3564
3565
|
})(k);
|
|
3565
3566
|
}
|
|
3566
3567
|
const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
|
|
3567
3568
|
function f(k) {
|
|
3568
|
-
var
|
|
3569
|
+
var T, R;
|
|
3569
3570
|
if (e.builderContextSignal.content) {
|
|
3570
|
-
const B = (
|
|
3571
|
+
const B = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
|
|
3571
3572
|
ue({
|
|
3572
3573
|
apiHost: e.apiHost,
|
|
3573
3574
|
type: "click",
|
|
@@ -3575,22 +3576,22 @@ function Xn(e) {
|
|
|
3575
3576
|
contentId: u,
|
|
3576
3577
|
apiKey: e.apiKey,
|
|
3577
3578
|
variationId: B !== u ? B : void 0,
|
|
3578
|
-
...
|
|
3579
|
+
...qn(k),
|
|
3579
3580
|
unique: !m
|
|
3580
3581
|
});
|
|
3581
3582
|
}
|
|
3582
3583
|
m || y(!0);
|
|
3583
3584
|
}
|
|
3584
3585
|
function v() {
|
|
3585
|
-
var
|
|
3586
|
-
const k = (B = (R = (
|
|
3586
|
+
var T, R, B;
|
|
3587
|
+
const k = (B = (R = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : R.httpRequests) != null ? B : {};
|
|
3587
3588
|
Object.entries(k).forEach(([u, S]) => {
|
|
3588
3589
|
if (!S || h[u] || d[u] && !N())
|
|
3589
3590
|
return;
|
|
3590
3591
|
h[u] = !0;
|
|
3591
3592
|
const P = S.replace(
|
|
3592
3593
|
/{{([^}]+)}}/g,
|
|
3593
|
-
(
|
|
3594
|
+
(I, L) => String(
|
|
3594
3595
|
O({
|
|
3595
3596
|
code: L,
|
|
3596
3597
|
context: e.context || {},
|
|
@@ -3600,12 +3601,12 @@ function Xn(e) {
|
|
|
3600
3601
|
})
|
|
3601
3602
|
)
|
|
3602
3603
|
);
|
|
3603
|
-
Te(P), fetch(P).then((
|
|
3604
|
+
Te(P), fetch(P).then((I) => I.json()).then((I) => {
|
|
3604
3605
|
n({
|
|
3605
|
-
[u]:
|
|
3606
|
+
[u]: I
|
|
3606
3607
|
}), d[u] = !0;
|
|
3607
|
-
}).catch((
|
|
3608
|
-
console.error("error fetching dynamic data", S,
|
|
3608
|
+
}).catch((I) => {
|
|
3609
|
+
console.error("error fetching dynamic data", S, I);
|
|
3609
3610
|
}).finally(() => {
|
|
3610
3611
|
h[u] = !1;
|
|
3611
3612
|
});
|
|
@@ -3628,7 +3629,7 @@ function Xn(e) {
|
|
|
3628
3629
|
}
|
|
3629
3630
|
const b = D(!1);
|
|
3630
3631
|
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3631
|
-
var k,
|
|
3632
|
+
var k, T, R;
|
|
3632
3633
|
if (q()) {
|
|
3633
3634
|
if (N() && !e.isNestedRender && (window.addEventListener("message", s), je(), qe({
|
|
3634
3635
|
...e.locale ? {
|
|
@@ -3645,14 +3646,14 @@ function Xn(e) {
|
|
|
3645
3646
|
).forEach((u) => {
|
|
3646
3647
|
var S, P;
|
|
3647
3648
|
if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
|
|
3648
|
-
const
|
|
3649
|
-
(P = window.parent) == null || P.postMessage(
|
|
3649
|
+
const I = ze(u);
|
|
3650
|
+
(P = window.parent) == null || P.postMessage(I, "*");
|
|
3650
3651
|
}
|
|
3651
3652
|
}), window.addEventListener(
|
|
3652
3653
|
"builder:component:stateChangeListenerActivated",
|
|
3653
3654
|
x
|
|
3654
3655
|
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3655
|
-
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (
|
|
3656
|
+
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (T = e.builderContextSignal.content) == null ? void 0 : T.id, P = e.apiKey;
|
|
3656
3657
|
ue({
|
|
3657
3658
|
apiHost: e.apiHost,
|
|
3658
3659
|
type: "impression",
|
|
@@ -3665,8 +3666,8 @@ function Xn(e) {
|
|
|
3665
3666
|
if (ae() && !N()) {
|
|
3666
3667
|
const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
|
|
3667
3668
|
`builder.overrides.${S}`
|
|
3668
|
-
),
|
|
3669
|
-
(S === "BUILDER_STUDIO" || S === e.model &&
|
|
3669
|
+
), I = u.get("apiKey") || u.get("builder.space");
|
|
3670
|
+
(S === "BUILDER_STUDIO" || S === e.model && I === e.apiKey && (!e.content || P === e.content.id)) && Ie({
|
|
3670
3671
|
model: e.model || "",
|
|
3671
3672
|
apiKey: e.apiKey,
|
|
3672
3673
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -3702,7 +3703,7 @@ function Xn(e) {
|
|
|
3702
3703
|
onClick: (k) => f(k),
|
|
3703
3704
|
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3704
3705
|
"builder-model": e.model,
|
|
3705
|
-
className:
|
|
3706
|
+
className: Xn(
|
|
3706
3707
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
3707
3708
|
),
|
|
3708
3709
|
style: {
|
|
@@ -3714,17 +3715,17 @@ function Xn(e) {
|
|
|
3714
3715
|
}
|
|
3715
3716
|
) : null });
|
|
3716
3717
|
}
|
|
3717
|
-
function
|
|
3718
|
+
function ei(e) {
|
|
3718
3719
|
const [t, n] = E(
|
|
3719
3720
|
() => `
|
|
3720
|
-
${
|
|
3721
|
+
${Gn({
|
|
3721
3722
|
cssCode: e.cssCode,
|
|
3722
3723
|
contentId: e.contentId
|
|
3723
3724
|
})}
|
|
3724
|
-
${
|
|
3725
|
+
${Jn({
|
|
3725
3726
|
customFonts: e.customFonts
|
|
3726
3727
|
})}
|
|
3727
|
-
${
|
|
3728
|
+
${Qn(e.isNestedRender)}
|
|
3728
3729
|
`.trim()
|
|
3729
3730
|
);
|
|
3730
3731
|
return /* @__PURE__ */ l(
|
|
@@ -3736,7 +3737,7 @@ ${Yn(e.isNestedRender)}
|
|
|
3736
3737
|
}
|
|
3737
3738
|
);
|
|
3738
3739
|
}
|
|
3739
|
-
const
|
|
3740
|
+
const ti = ({
|
|
3740
3741
|
content: e,
|
|
3741
3742
|
data: t,
|
|
3742
3743
|
locale: n
|
|
@@ -3753,7 +3754,7 @@ const ei = ({
|
|
|
3753
3754
|
locale: n
|
|
3754
3755
|
} : {}
|
|
3755
3756
|
};
|
|
3756
|
-
},
|
|
3757
|
+
}, ni = ({
|
|
3757
3758
|
content: e,
|
|
3758
3759
|
data: t
|
|
3759
3760
|
}) => e ? {
|
|
@@ -3769,7 +3770,7 @@ function Ce(e) {
|
|
|
3769
3770
|
const [t, n] = E(
|
|
3770
3771
|
() => {
|
|
3771
3772
|
var p, C;
|
|
3772
|
-
return
|
|
3773
|
+
return Hn({
|
|
3773
3774
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3774
3775
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3775
3776
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3798,12 +3799,12 @@ function Ce(e) {
|
|
|
3798
3799
|
{}
|
|
3799
3800
|
)
|
|
3800
3801
|
), [a, s] = E(() => ({
|
|
3801
|
-
content:
|
|
3802
|
+
content: ni({
|
|
3802
3803
|
content: e.content,
|
|
3803
3804
|
data: e.data
|
|
3804
3805
|
}),
|
|
3805
3806
|
localState: void 0,
|
|
3806
|
-
rootState:
|
|
3807
|
+
rootState: ti({
|
|
3807
3808
|
content: e.content,
|
|
3808
3809
|
data: e.data,
|
|
3809
3810
|
locale: e.locale
|
|
@@ -3852,7 +3853,7 @@ function Ce(e) {
|
|
|
3852
3853
|
registeredComponents: o
|
|
3853
3854
|
},
|
|
3854
3855
|
children: /* @__PURE__ */ W(
|
|
3855
|
-
|
|
3856
|
+
Zn,
|
|
3856
3857
|
{
|
|
3857
3858
|
apiHost: e.apiHost,
|
|
3858
3859
|
nonce: e.nonce,
|
|
@@ -3881,7 +3882,7 @@ function Ce(e) {
|
|
|
3881
3882
|
}
|
|
3882
3883
|
) : null,
|
|
3883
3884
|
/* @__PURE__ */ l(
|
|
3884
|
-
|
|
3885
|
+
ei,
|
|
3885
3886
|
{
|
|
3886
3887
|
nonce: e.nonce || "",
|
|
3887
3888
|
isNestedRender: e.isNestedRender,
|
|
@@ -3905,17 +3906,17 @@ function Ce(e) {
|
|
|
3905
3906
|
}
|
|
3906
3907
|
);
|
|
3907
3908
|
}
|
|
3908
|
-
function
|
|
3909
|
+
function ii(e) {
|
|
3909
3910
|
var a;
|
|
3910
3911
|
const [t, n] = E(
|
|
3911
|
-
() =>
|
|
3912
|
+
() => Dn({
|
|
3912
3913
|
canTrack: z(e.canTrack),
|
|
3913
3914
|
content: e.content
|
|
3914
3915
|
})
|
|
3915
3916
|
);
|
|
3916
3917
|
function i() {
|
|
3917
3918
|
var s;
|
|
3918
|
-
return
|
|
3919
|
+
return _n(
|
|
3919
3920
|
j(e.content).map((d) => ({
|
|
3920
3921
|
id: d.testVariationId,
|
|
3921
3922
|
testRatio: d.testRatio
|
|
@@ -3937,16 +3938,16 @@ function ni(e) {
|
|
|
3937
3938
|
});
|
|
3938
3939
|
}
|
|
3939
3940
|
return A(() => {
|
|
3940
|
-
}, []), /* @__PURE__ */ W(
|
|
3941
|
+
}, []), /* @__PURE__ */ W(w, { children: [
|
|
3941
3942
|
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
3942
3943
|
ie,
|
|
3943
3944
|
{
|
|
3944
3945
|
id: "builderio-init-variants-fns",
|
|
3945
|
-
scriptStr:
|
|
3946
|
+
scriptStr: Un(),
|
|
3946
3947
|
nonce: e.nonce || ""
|
|
3947
3948
|
}
|
|
3948
3949
|
) : null,
|
|
3949
|
-
t ? /* @__PURE__ */ W(
|
|
3950
|
+
t ? /* @__PURE__ */ W(w, { children: [
|
|
3950
3951
|
/* @__PURE__ */ l(
|
|
3951
3952
|
G,
|
|
3952
3953
|
{
|
|
@@ -4019,7 +4020,7 @@ function ni(e) {
|
|
|
4019
4020
|
)
|
|
4020
4021
|
] });
|
|
4021
4022
|
}
|
|
4022
|
-
const
|
|
4023
|
+
const oi = async ({
|
|
4023
4024
|
builderContextValue: e,
|
|
4024
4025
|
symbol: t
|
|
4025
4026
|
}) => {
|
|
@@ -4038,7 +4039,7 @@ const ii = async ({
|
|
|
4038
4039
|
oe.error("Could not fetch symbol content: ", n);
|
|
4039
4040
|
});
|
|
4040
4041
|
};
|
|
4041
|
-
function
|
|
4042
|
+
function ai(e) {
|
|
4042
4043
|
var s, d, c, h;
|
|
4043
4044
|
function t() {
|
|
4044
4045
|
return "div";
|
|
@@ -4060,7 +4061,7 @@ function oi(e) {
|
|
|
4060
4061
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4061
4062
|
});
|
|
4062
4063
|
function a() {
|
|
4063
|
-
o ||
|
|
4064
|
+
o || oi({
|
|
4064
4065
|
symbol: e.symbol,
|
|
4065
4066
|
builderContextValue: e.builderContext
|
|
4066
4067
|
}).then((g) => {
|
|
@@ -4071,7 +4072,7 @@ function oi(e) {
|
|
|
4071
4072
|
}, []), A(() => {
|
|
4072
4073
|
a();
|
|
4073
4074
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4074
|
-
|
|
4075
|
+
ii,
|
|
4075
4076
|
{
|
|
4076
4077
|
nonce: e.builderContext.nonce,
|
|
4077
4078
|
isNestedRender: !0,
|
|
@@ -4099,13 +4100,13 @@ function oi(e) {
|
|
|
4099
4100
|
export {
|
|
4100
4101
|
F as Blocks,
|
|
4101
4102
|
se as BuilderContext,
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4103
|
+
ot as Button,
|
|
4104
|
+
qt as Columns,
|
|
4105
|
+
ii as Content,
|
|
4106
|
+
zt as Fragment,
|
|
4107
|
+
Gt as Image,
|
|
4108
|
+
Yt as Section,
|
|
4109
|
+
ai as Symbol,
|
|
4110
|
+
mn as Text,
|
|
4111
|
+
Nn as Video
|
|
4111
4112
|
};
|