@builder.io/sdk-react 1.1.2 → 2.0.1
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 +24 -24
- package/lib/browser/blocks-exports.mjs +524 -555
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-754040fc.cjs → server-entry-29c5c31c.cjs} +1 -1
- package/lib/browser/{server-entry-ed2ca723.js → server-entry-f9067095.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-3e3c0eb7.js → accordion-4a70912d.js} +1 -1
- package/lib/edge/{accordion-dfb7894d.cjs → accordion-6ad2cec7.cjs} +1 -1
- package/lib/edge/{blocks-e68d1b90.cjs → blocks-0bd38a83.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +4 -3
- package/lib/edge/{blocks-b47dedc1.js → blocks-fedde8d2.js} +697 -685
- package/lib/edge/{button-03e45213.js → button-af35e8de.js} +2 -2
- package/lib/edge/{button-eacbdcad.cjs → button-f6426eff.cjs} +1 -1
- package/lib/edge/{columns-858746ca.js → columns-1065c0ae.js} +59 -52
- package/lib/edge/columns-f607250b.cjs +28 -0
- package/lib/edge/{content-variants-c4559dfb.js → content-variants-3d57a82f.js} +183 -235
- package/lib/edge/content-variants-773afb9f.cjs +134 -0
- package/lib/edge/{form-6f2d1077.js → form-0a58d0e4.js} +3 -3
- package/lib/edge/{form-241a699e.cjs → form-5762c22a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-87b96bca.js → get-class-prop-name-268b0f61.js} +1 -1
- package/lib/edge/{get-class-prop-name-d471c28c.cjs → get-class-prop-name-3061c329.cjs} +1 -1
- package/lib/edge/{img-be88cdbc.js → img-252c9967.js} +1 -1
- package/lib/edge/{img-a7bbfda3.cjs → img-59bb70c7.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-f1fbe38b.cjs → input-2163d4dc.cjs} +1 -1
- package/lib/edge/{input-22d61335.js → input-7ae243e2.js} +1 -1
- package/lib/edge/{select-c58f67e3.cjs → select-39231177.cjs} +1 -1
- package/lib/edge/{select-6371cc39.js → select-cfa0eb8e.js} +1 -1
- package/lib/edge/{server-entry-048c3043.cjs → server-entry-4750de9c.cjs} +1 -1
- package/lib/edge/{server-entry-97c99c4d.js → server-entry-681e8e79.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7666ffaf.cjs → slot-69da8c56.cjs} +1 -1
- package/lib/edge/{slot-e6c31d6c.js → slot-7c61542f.js} +3 -3
- package/lib/edge/symbol-4a8a6cda.js +85 -0
- package/lib/edge/symbol-bd999a19.cjs +1 -0
- package/lib/edge/{tabs-02f569d1.cjs → tabs-3d0e242e.cjs} +1 -1
- package/lib/edge/{tabs-20114ebb.js → tabs-c3ff0c70.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +518 -549
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-819e5520.cjs → node-runtime-3bfd8465.cjs} +1 -1
- package/lib/node/{node-runtime-36670c0e.js → node-runtime-78262e65.js} +1 -1
- package/lib/node/{server-entry-2910f126.js → server-entry-5f9f100f.js} +1 -1
- package/lib/node/{server-entry-cc7910d7.cjs → server-entry-63058f3f.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +15 -15
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/components/content/components/styles.d.ts +2 -1
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/inlined-script.d.ts +2 -1
- package/types/components/inlined-styles.d.ts +2 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/types/builder-props.d.ts +3 -0
- package/lib/edge/columns-26be75b9.cjs +0 -28
- package/lib/edge/content-variants-0c5ae6d6.cjs +0 -134
- package/lib/edge/symbol-8e3447aa.js +0 -84
- package/lib/edge/symbol-a0838c62.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
6
|
-
import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
var qe = Object.defineProperty;
|
|
3
|
+
var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-f9067095.js";
|
|
7
|
+
import { createContext as Re, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
|
+
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
|
+
function ue(e) {
|
|
10
|
+
return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
12
|
const q = () => {
|
|
13
13
|
switch (z) {
|
|
@@ -23,7 +23,7 @@ const q = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function nt(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
@@ -38,7 +38,7 @@ function it(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ s(
|
|
41
|
-
|
|
41
|
+
ue,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function it(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const me = Re({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -59,16 +59,17 @@ const fe = Be({
|
|
|
59
59
|
componentInfos: {},
|
|
60
60
|
inheritedStyles: {},
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
|
-
BlocksWrapperProps: {}
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
BlocksWrapperProps: {},
|
|
63
|
+
nonce: ""
|
|
64
|
+
}), Be = Re({ registeredComponents: {} });
|
|
65
|
+
function it(e) {
|
|
65
66
|
var t;
|
|
66
67
|
return {
|
|
67
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
68
69
|
...e.options
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
+
const ot = ({
|
|
72
73
|
builder: e,
|
|
73
74
|
context: t,
|
|
74
75
|
event: n,
|
|
@@ -80,14 +81,14 @@ const at = ({
|
|
|
80
81
|
builder: e,
|
|
81
82
|
context: t,
|
|
82
83
|
event: n
|
|
83
|
-
}),
|
|
84
|
+
}), at = () => ({
|
|
84
85
|
isEditing: $(),
|
|
85
86
|
isBrowser: M(),
|
|
86
87
|
isServer: !M(),
|
|
87
|
-
getUserAttributes: () =>
|
|
88
|
-
}),
|
|
88
|
+
getUserAttributes: () => ze()
|
|
89
|
+
}), rt = (e, {
|
|
89
90
|
isExpression: t = !0
|
|
90
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
91
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
|
|
91
92
|
code: e,
|
|
92
93
|
builder: t,
|
|
93
94
|
context: n,
|
|
@@ -96,11 +97,11 @@ const at = ({
|
|
|
96
97
|
rootSetState: r,
|
|
97
98
|
rootState: a
|
|
98
99
|
}) => {
|
|
99
|
-
const l =
|
|
100
|
+
const l = ot({
|
|
100
101
|
builder: t,
|
|
101
102
|
context: n,
|
|
102
103
|
event: i,
|
|
103
|
-
state:
|
|
104
|
+
state: Pe({
|
|
104
105
|
rootState: a,
|
|
105
106
|
localState: o,
|
|
106
107
|
rootSetState: r
|
|
@@ -108,7 +109,7 @@ const at = ({
|
|
|
108
109
|
});
|
|
109
110
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
110
111
|
};
|
|
111
|
-
function
|
|
112
|
+
function Pe({
|
|
112
113
|
rootState: e,
|
|
113
114
|
localState: t,
|
|
114
115
|
rootSetState: n
|
|
@@ -118,7 +119,7 @@ function Ve({
|
|
|
118
119
|
if (t && o in t)
|
|
119
120
|
return t[o];
|
|
120
121
|
const r = i[o];
|
|
121
|
-
return typeof r == "object" && r !== null ?
|
|
122
|
+
return typeof r == "object" && r !== null ? Pe({
|
|
122
123
|
rootState: r,
|
|
123
124
|
localState: void 0,
|
|
124
125
|
rootSetState: n ? (a) => {
|
|
@@ -133,17 +134,17 @@ function Ve({
|
|
|
133
134
|
}
|
|
134
135
|
});
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
+
function lt() {
|
|
137
138
|
var e;
|
|
138
139
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
139
140
|
}
|
|
140
|
-
const
|
|
141
|
+
const st = () => {
|
|
141
142
|
var i;
|
|
142
|
-
if (!
|
|
143
|
+
if (!lt())
|
|
143
144
|
return !1;
|
|
144
145
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
145
146
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
146
|
-
},
|
|
147
|
+
}, ct = (e) => (M() || st(), pe(e)), L = class L {
|
|
147
148
|
static getCacheKey(t) {
|
|
148
149
|
return JSON.stringify({
|
|
149
150
|
...t,
|
|
@@ -153,16 +154,16 @@ const ct = () => {
|
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
156
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
157
|
+
return L.cache.get(t);
|
|
157
158
|
}
|
|
158
159
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
160
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
160
161
|
value: n
|
|
161
162
|
});
|
|
162
163
|
}
|
|
163
164
|
};
|
|
164
|
-
|
|
165
|
-
let U =
|
|
165
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
166
|
+
let U = L;
|
|
166
167
|
function K({
|
|
167
168
|
code: e,
|
|
168
169
|
context: t,
|
|
@@ -176,10 +177,10 @@ function K({
|
|
|
176
177
|
if (e === "")
|
|
177
178
|
return;
|
|
178
179
|
const c = {
|
|
179
|
-
code:
|
|
180
|
+
code: rt(e, {
|
|
180
181
|
isExpression: a
|
|
181
182
|
}),
|
|
182
|
-
builder:
|
|
183
|
+
builder: at(),
|
|
183
184
|
context: t,
|
|
184
185
|
event: r,
|
|
185
186
|
rootSetState: o,
|
|
@@ -192,7 +193,7 @@ function K({
|
|
|
192
193
|
return f.value;
|
|
193
194
|
}
|
|
194
195
|
try {
|
|
195
|
-
const u =
|
|
196
|
+
const u = ct(c);
|
|
196
197
|
if (l) {
|
|
197
198
|
const f = U.getCacheKey(c);
|
|
198
199
|
U.setCachedValue(f, u);
|
|
@@ -205,13 +206,13 @@ function K({
|
|
|
205
206
|
return;
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
|
-
const
|
|
209
|
+
const Ve = (e, t, n) => {
|
|
209
210
|
if (Object(e) !== e)
|
|
210
211
|
return e;
|
|
211
212
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
212
213
|
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
213
214
|
};
|
|
214
|
-
const
|
|
215
|
+
const dt = ({
|
|
215
216
|
block: e,
|
|
216
217
|
context: t,
|
|
217
218
|
localState: n,
|
|
@@ -220,7 +221,7 @@ const ut = ({
|
|
|
220
221
|
}) => {
|
|
221
222
|
if (!e.bindings)
|
|
222
223
|
return e;
|
|
223
|
-
const r =
|
|
224
|
+
const r = de(e), a = {
|
|
224
225
|
...r,
|
|
225
226
|
properties: {
|
|
226
227
|
...r.properties
|
|
@@ -238,7 +239,7 @@ const ut = ({
|
|
|
238
239
|
context: t,
|
|
239
240
|
enableCache: !0
|
|
240
241
|
});
|
|
241
|
-
|
|
242
|
+
Ve(a, l, u);
|
|
242
243
|
}
|
|
243
244
|
return a;
|
|
244
245
|
};
|
|
@@ -251,7 +252,7 @@ function X({
|
|
|
251
252
|
rootSetState: r
|
|
252
253
|
}) {
|
|
253
254
|
const a = e;
|
|
254
|
-
return n ?
|
|
255
|
+
return n ? dt({
|
|
255
256
|
block: a,
|
|
256
257
|
localState: i,
|
|
257
258
|
rootState: o,
|
|
@@ -260,7 +261,7 @@ function X({
|
|
|
260
261
|
}) : a;
|
|
261
262
|
}
|
|
262
263
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
263
|
-
function
|
|
264
|
+
function ut(e, t, n = {}) {
|
|
264
265
|
let i, o, r, a = null, l = 0;
|
|
265
266
|
const c = function() {
|
|
266
267
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
@@ -282,55 +283,55 @@ function H(e, ...t) {
|
|
|
282
283
|
}
|
|
283
284
|
return n;
|
|
284
285
|
}
|
|
285
|
-
function
|
|
286
|
+
function mt(e) {
|
|
286
287
|
for (const t of e)
|
|
287
288
|
switch (t.trigger) {
|
|
288
289
|
case "pageLoad":
|
|
289
|
-
|
|
290
|
+
We(t);
|
|
290
291
|
break;
|
|
291
292
|
case "scrollInView":
|
|
292
|
-
|
|
293
|
+
ht(t);
|
|
293
294
|
break;
|
|
294
295
|
}
|
|
295
296
|
}
|
|
296
|
-
function
|
|
297
|
+
function Ae(e) {
|
|
297
298
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
-
const n =
|
|
300
|
+
function Ne(e, t) {
|
|
301
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
301
302
|
for (const l of a)
|
|
302
303
|
for (const c of n)
|
|
303
304
|
c in l || (l[c] = i[c]);
|
|
304
305
|
}
|
|
305
|
-
function
|
|
306
|
+
function ft(e) {
|
|
306
307
|
const t = [];
|
|
307
308
|
for (const n of e.steps)
|
|
308
309
|
for (const i in n.styles)
|
|
309
310
|
t.indexOf(i) === -1 && t.push(i);
|
|
310
311
|
return t;
|
|
311
312
|
}
|
|
312
|
-
function
|
|
313
|
+
function We(e) {
|
|
313
314
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
314
315
|
if (!t.length) {
|
|
315
|
-
|
|
316
|
+
Ae(e.elementId || e.id || "");
|
|
316
317
|
return;
|
|
317
318
|
}
|
|
318
319
|
Array.from(t).forEach((n) => {
|
|
319
|
-
|
|
320
|
+
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
320
321
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
321
322
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
322
323
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
323
324
|
});
|
|
324
325
|
});
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function ht(e) {
|
|
327
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
328
329
|
if (!t.length) {
|
|
329
|
-
|
|
330
|
+
Ae(e.elementId || e.id || "");
|
|
330
331
|
return;
|
|
331
332
|
}
|
|
332
333
|
Array.from(t).forEach((n) => {
|
|
333
|
-
|
|
334
|
+
Ne(e, n);
|
|
334
335
|
let i = !1, o = !1;
|
|
335
336
|
function r() {
|
|
336
337
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -339,7 +340,7 @@ function bt(e) {
|
|
|
339
340
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
340
341
|
})) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
341
342
|
}
|
|
342
|
-
const a =
|
|
343
|
+
const a = ut(r, 200, {
|
|
343
344
|
leading: !1
|
|
344
345
|
});
|
|
345
346
|
function l(f) {
|
|
@@ -358,10 +359,10 @@ function bt(e) {
|
|
|
358
359
|
}), r();
|
|
359
360
|
});
|
|
360
361
|
}
|
|
361
|
-
const
|
|
362
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
362
363
|
if (typeof i == "string")
|
|
363
364
|
return `${te(n)}: ${i};`;
|
|
364
|
-
}).filter(G), gt = (e) =>
|
|
365
|
+
}).filter(G), gt = (e) => Fe(e).join(`
|
|
365
366
|
`), J = ({
|
|
366
367
|
mediaQuery: e,
|
|
367
368
|
className: t,
|
|
@@ -374,26 +375,26 @@ const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
374
375
|
${i}
|
|
375
376
|
}` : i;
|
|
376
377
|
};
|
|
377
|
-
function
|
|
378
|
+
function bt({
|
|
378
379
|
style: e
|
|
379
380
|
}) {
|
|
380
381
|
return e;
|
|
381
382
|
}
|
|
382
|
-
const
|
|
383
|
+
const pt = ({
|
|
383
384
|
block: e,
|
|
384
385
|
context: t
|
|
385
|
-
}) =>
|
|
386
|
+
}) => $e(bt({
|
|
386
387
|
style: e.style || {},
|
|
387
388
|
context: t,
|
|
388
389
|
block: e
|
|
389
390
|
}));
|
|
390
|
-
function
|
|
391
|
+
function $e(e) {
|
|
391
392
|
switch (z) {
|
|
392
393
|
case "svelte":
|
|
393
394
|
case "vue":
|
|
394
395
|
case "solid":
|
|
395
396
|
case "angular":
|
|
396
|
-
return
|
|
397
|
+
return Fe(e).join(" ");
|
|
397
398
|
case "qwik":
|
|
398
399
|
case "reactNative":
|
|
399
400
|
case "react":
|
|
@@ -401,7 +402,7 @@ function Le(e) {
|
|
|
401
402
|
return e;
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
|
-
const
|
|
405
|
+
const yt = ({
|
|
405
406
|
block: e,
|
|
406
407
|
context: t,
|
|
407
408
|
registeredComponents: n
|
|
@@ -423,7 +424,7 @@ const xt = ({
|
|
|
423
424
|
console.warn(`
|
|
424
425
|
Could not find a registered component named "${i}".
|
|
425
426
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
426
|
-
},
|
|
427
|
+
}, xt = ({
|
|
427
428
|
block: e,
|
|
428
429
|
context: t
|
|
429
430
|
}) => {
|
|
@@ -457,23 +458,27 @@ const xt = ({
|
|
|
457
458
|
},
|
|
458
459
|
block: i
|
|
459
460
|
}));
|
|
460
|
-
},
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
} : {}
|
|
475
|
-
|
|
476
|
-
|
|
461
|
+
}, vt = (e, t) => {
|
|
462
|
+
var n;
|
|
463
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
464
|
+
builderLinkComponent: t
|
|
465
|
+
} : {};
|
|
466
|
+
}, St = (e, t) => {
|
|
467
|
+
var n;
|
|
468
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
469
|
+
builderComponents: t
|
|
470
|
+
} : {};
|
|
471
|
+
}, kt = (e, t) => {
|
|
472
|
+
var n;
|
|
473
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
474
|
+
builderBlock: t
|
|
475
|
+
} : {};
|
|
476
|
+
}, Ct = (e, t) => {
|
|
477
|
+
var n;
|
|
478
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
479
|
+
builderContext: t
|
|
480
|
+
} : {};
|
|
481
|
+
}, De = {
|
|
477
482
|
small: {
|
|
478
483
|
min: 320,
|
|
479
484
|
default: 321,
|
|
@@ -489,11 +494,11 @@ const xt = ({
|
|
|
489
494
|
default: 991,
|
|
490
495
|
max: 1200
|
|
491
496
|
}
|
|
492
|
-
},
|
|
497
|
+
}, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
|
|
493
498
|
small: e,
|
|
494
499
|
medium: t
|
|
495
500
|
}) => {
|
|
496
|
-
const n =
|
|
501
|
+
const n = de(De);
|
|
497
502
|
if (!e || !t)
|
|
498
503
|
return n;
|
|
499
504
|
const i = Math.floor(e / 2);
|
|
@@ -516,16 +521,17 @@ const xt = ({
|
|
|
516
521
|
default: r + 1
|
|
517
522
|
}, n;
|
|
518
523
|
};
|
|
519
|
-
function
|
|
524
|
+
function ne(e) {
|
|
520
525
|
return /* @__PURE__ */ s(
|
|
521
526
|
"style",
|
|
522
527
|
{
|
|
523
528
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
524
|
-
"data-id": e.id
|
|
529
|
+
"data-id": e.id,
|
|
530
|
+
nonce: e.nonce
|
|
525
531
|
}
|
|
526
532
|
);
|
|
527
533
|
}
|
|
528
|
-
function
|
|
534
|
+
function Tt(e) {
|
|
529
535
|
function t() {
|
|
530
536
|
const i = X({
|
|
531
537
|
block: e.block,
|
|
@@ -538,7 +544,7 @@ function It(e) {
|
|
|
538
544
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
539
545
|
}
|
|
540
546
|
function n() {
|
|
541
|
-
var x,
|
|
547
|
+
var x, E, V;
|
|
542
548
|
const i = X({
|
|
543
549
|
block: e.block,
|
|
544
550
|
localState: e.context.localState,
|
|
@@ -546,7 +552,7 @@ function It(e) {
|
|
|
546
552
|
rootSetState: e.context.rootSetState,
|
|
547
553
|
context: e.context.context,
|
|
548
554
|
shouldEvaluateBindings: !0
|
|
549
|
-
}), o = i.responsiveStyles, r = e.context.content, a =
|
|
555
|
+
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
550
556
|
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
551
557
|
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
552
558
|
if (!f)
|
|
@@ -557,21 +563,21 @@ function It(e) {
|
|
|
557
563
|
}) : "", m = c ? J({
|
|
558
564
|
className: f,
|
|
559
565
|
styles: c,
|
|
560
|
-
mediaQuery:
|
|
566
|
+
mediaQuery: ye(
|
|
561
567
|
"medium",
|
|
562
568
|
a
|
|
563
569
|
)
|
|
564
|
-
}) : "",
|
|
570
|
+
}) : "", g = u ? J({
|
|
565
571
|
className: f,
|
|
566
572
|
styles: u,
|
|
567
|
-
mediaQuery:
|
|
573
|
+
mediaQuery: ye(
|
|
568
574
|
"small",
|
|
569
575
|
a
|
|
570
576
|
)
|
|
571
577
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
572
578
|
let I = "";
|
|
573
579
|
if (p) {
|
|
574
|
-
const A = ((V = (
|
|
580
|
+
const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
575
581
|
I = J({
|
|
576
582
|
className: `${f}:hover`,
|
|
577
583
|
styles: {
|
|
@@ -586,16 +592,23 @@ function It(e) {
|
|
|
586
592
|
return [
|
|
587
593
|
d,
|
|
588
594
|
m,
|
|
589
|
-
|
|
595
|
+
g,
|
|
590
596
|
I
|
|
591
597
|
].join(" ");
|
|
592
598
|
}
|
|
593
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
599
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
600
|
+
ne,
|
|
601
|
+
{
|
|
602
|
+
id: "builderio-block",
|
|
603
|
+
styles: n(),
|
|
604
|
+
nonce: e.context.nonce
|
|
605
|
+
}
|
|
606
|
+
) }) : null });
|
|
594
607
|
}
|
|
595
|
-
function
|
|
608
|
+
function It(e) {
|
|
596
609
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
597
610
|
}
|
|
598
|
-
const
|
|
611
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
|
|
599
612
|
code: e,
|
|
600
613
|
context: t.context,
|
|
601
614
|
localState: t.localState,
|
|
@@ -605,14 +618,14 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
|
|
|
605
618
|
isExpression: !1,
|
|
606
619
|
enableCache: !0
|
|
607
620
|
});
|
|
608
|
-
function
|
|
621
|
+
function Oe(e) {
|
|
609
622
|
var i;
|
|
610
623
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
611
624
|
for (const o in n) {
|
|
612
625
|
if (!n.hasOwnProperty(o))
|
|
613
626
|
continue;
|
|
614
627
|
const r = n[o];
|
|
615
|
-
let a =
|
|
628
|
+
let a = wt(o);
|
|
616
629
|
if (e.stripPrefix)
|
|
617
630
|
switch (z) {
|
|
618
631
|
case "vue":
|
|
@@ -622,49 +635,49 @@ function je(e) {
|
|
|
622
635
|
a = a.replace("on:", "");
|
|
623
636
|
break;
|
|
624
637
|
}
|
|
625
|
-
t[a] =
|
|
638
|
+
t[a] = Rt(r, e);
|
|
626
639
|
}
|
|
627
640
|
return t;
|
|
628
641
|
}
|
|
629
|
-
function
|
|
642
|
+
function Et({
|
|
630
643
|
properties: e
|
|
631
644
|
}) {
|
|
632
645
|
return e;
|
|
633
646
|
}
|
|
634
|
-
const
|
|
647
|
+
const Bt = (e) => ({
|
|
635
648
|
href: e.href
|
|
636
649
|
});
|
|
637
|
-
function
|
|
650
|
+
function fe({
|
|
638
651
|
block: e,
|
|
639
652
|
context: t
|
|
640
653
|
}) {
|
|
641
654
|
var i;
|
|
642
655
|
const n = {
|
|
643
|
-
...
|
|
656
|
+
...Bt(e),
|
|
644
657
|
...e.properties,
|
|
645
658
|
"builder-id": e.id,
|
|
646
|
-
style:
|
|
659
|
+
style: pt({
|
|
647
660
|
block: e,
|
|
648
661
|
context: t
|
|
649
662
|
}),
|
|
650
663
|
[q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
651
664
|
};
|
|
652
|
-
return
|
|
665
|
+
return Et({
|
|
653
666
|
properties: n,
|
|
654
667
|
context: t,
|
|
655
668
|
block: e
|
|
656
669
|
});
|
|
657
670
|
}
|
|
658
|
-
function
|
|
671
|
+
function Pt(e) {
|
|
659
672
|
return /* @__PURE__ */ s(
|
|
660
|
-
|
|
673
|
+
ue,
|
|
661
674
|
{
|
|
662
675
|
TagName: e.Wrapper,
|
|
663
|
-
attributes:
|
|
676
|
+
attributes: fe({
|
|
664
677
|
block: e.block,
|
|
665
678
|
context: e.context
|
|
666
679
|
}),
|
|
667
|
-
actionAttributes:
|
|
680
|
+
actionAttributes: Oe({
|
|
668
681
|
block: e.block,
|
|
669
682
|
rootState: e.context.rootState,
|
|
670
683
|
rootSetState: e.context.rootSetState,
|
|
@@ -676,14 +689,14 @@ function Vt(e) {
|
|
|
676
689
|
}
|
|
677
690
|
);
|
|
678
691
|
}
|
|
679
|
-
function
|
|
692
|
+
function Vt(e) {
|
|
680
693
|
function t() {
|
|
681
694
|
return e.includeBlockProps ? {
|
|
682
|
-
...
|
|
695
|
+
...fe({
|
|
683
696
|
block: e.block,
|
|
684
697
|
context: e.context
|
|
685
698
|
}),
|
|
686
|
-
...
|
|
699
|
+
...Oe({
|
|
687
700
|
block: e.block,
|
|
688
701
|
rootState: e.context.rootState,
|
|
689
702
|
rootSetState: e.context.rootSetState,
|
|
@@ -694,7 +707,7 @@ function At(e) {
|
|
|
694
707
|
}
|
|
695
708
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
696
709
|
}
|
|
697
|
-
const
|
|
710
|
+
const At = ({
|
|
698
711
|
componentOptions: e,
|
|
699
712
|
builderBlock: t,
|
|
700
713
|
context: n,
|
|
@@ -710,7 +723,7 @@ const Nt = ({
|
|
|
710
723
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
711
724
|
*/
|
|
712
725
|
...o ? {
|
|
713
|
-
attributes:
|
|
726
|
+
attributes: fe({
|
|
714
727
|
block: t,
|
|
715
728
|
context: a
|
|
716
729
|
})
|
|
@@ -724,15 +737,15 @@ const Nt = ({
|
|
|
724
737
|
includeBlockProps: o
|
|
725
738
|
} : l;
|
|
726
739
|
};
|
|
727
|
-
function
|
|
740
|
+
function xe(e) {
|
|
728
741
|
var i;
|
|
729
742
|
const [t, n] = C(
|
|
730
|
-
() => e.isInteractive ?
|
|
743
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
731
744
|
);
|
|
732
745
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
733
746
|
t,
|
|
734
747
|
{
|
|
735
|
-
...
|
|
748
|
+
...At({
|
|
736
749
|
componentOptions: e.componentOptions,
|
|
737
750
|
builderBlock: e.builderBlock,
|
|
738
751
|
context: e.context,
|
|
@@ -755,9 +768,9 @@ function ve(e) {
|
|
|
755
768
|
}
|
|
756
769
|
) }) : null });
|
|
757
770
|
}
|
|
758
|
-
function
|
|
771
|
+
function Nt(e) {
|
|
759
772
|
const [t, n] = C(() => e.repeatContext);
|
|
760
|
-
return /* @__PURE__ */ s(
|
|
773
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
761
774
|
_,
|
|
762
775
|
{
|
|
763
776
|
block: e.block,
|
|
@@ -770,14 +783,14 @@ function Wt(e) {
|
|
|
770
783
|
function _(e) {
|
|
771
784
|
var c, u, f;
|
|
772
785
|
function t() {
|
|
773
|
-
return
|
|
786
|
+
return yt({
|
|
774
787
|
block: e.block,
|
|
775
788
|
context: e.context,
|
|
776
789
|
registeredComponents: e.registeredComponents
|
|
777
790
|
});
|
|
778
791
|
}
|
|
779
792
|
function n() {
|
|
780
|
-
return
|
|
793
|
+
return xt({
|
|
781
794
|
block: e.block,
|
|
782
795
|
context: e.context
|
|
783
796
|
});
|
|
@@ -798,27 +811,27 @@ function _(e) {
|
|
|
798
811
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
799
812
|
}
|
|
800
813
|
function r() {
|
|
801
|
-
var
|
|
802
|
-
if ((
|
|
814
|
+
var g, p;
|
|
815
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
803
816
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
804
817
|
const d = "hide" in i() ? i().hide : !1;
|
|
805
818
|
return ("show" in i() ? i().show : !0) && !d;
|
|
806
819
|
}
|
|
807
820
|
function a() {
|
|
808
|
-
var m,
|
|
809
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
821
|
+
var m, g;
|
|
822
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
810
823
|
}
|
|
811
824
|
function l() {
|
|
812
|
-
var d, m,
|
|
825
|
+
var d, m, g, p;
|
|
813
826
|
return {
|
|
814
827
|
blockChildren: (d = i().children) != null ? d : [],
|
|
815
828
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
816
829
|
componentOptions: {
|
|
817
|
-
...
|
|
818
|
-
...
|
|
819
|
-
...
|
|
820
|
-
...
|
|
821
|
-
...
|
|
830
|
+
...it(i()),
|
|
831
|
+
...kt(t(), i()),
|
|
832
|
+
...Ct(t(), e.context),
|
|
833
|
+
...vt(t(), e.linkComponent),
|
|
834
|
+
...St(
|
|
822
835
|
t(),
|
|
823
836
|
e.registeredComponents
|
|
824
837
|
)
|
|
@@ -827,22 +840,22 @@ function _(e) {
|
|
|
827
840
|
linkComponent: e.linkComponent,
|
|
828
841
|
registeredComponents: e.registeredComponents,
|
|
829
842
|
builderBlock: i(),
|
|
830
|
-
includeBlockProps: ((
|
|
843
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
831
844
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
832
845
|
};
|
|
833
846
|
}
|
|
834
|
-
return
|
|
847
|
+
return B(() => {
|
|
835
848
|
const d = i().id, m = i().animations;
|
|
836
|
-
m && d &&
|
|
837
|
-
m.map((
|
|
838
|
-
...
|
|
849
|
+
m && d && mt(
|
|
850
|
+
m.map((g) => ({
|
|
851
|
+
...g,
|
|
839
852
|
elementId: d
|
|
840
853
|
}))
|
|
841
854
|
);
|
|
842
|
-
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */
|
|
843
|
-
/* @__PURE__ */ s(
|
|
855
|
+
}, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ P(R, { children: [
|
|
856
|
+
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
844
857
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
845
|
-
|
|
858
|
+
xe,
|
|
846
859
|
{
|
|
847
860
|
componentRef: l().componentRef,
|
|
848
861
|
componentOptions: l().componentOptions,
|
|
@@ -855,7 +868,7 @@ function _(e) {
|
|
|
855
868
|
isInteractive: l().isInteractive
|
|
856
869
|
}
|
|
857
870
|
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
858
|
-
|
|
871
|
+
Nt,
|
|
859
872
|
{
|
|
860
873
|
repeatContext: d.context,
|
|
861
874
|
block: d.block,
|
|
@@ -863,15 +876,15 @@ function _(e) {
|
|
|
863
876
|
linkComponent: e.linkComponent
|
|
864
877
|
},
|
|
865
878
|
m
|
|
866
|
-
)) }) : /* @__PURE__ */
|
|
867
|
-
|
|
879
|
+
)) }) : /* @__PURE__ */ P(
|
|
880
|
+
Pt,
|
|
868
881
|
{
|
|
869
882
|
Wrapper: o(),
|
|
870
883
|
block: i(),
|
|
871
884
|
context: e.context,
|
|
872
885
|
children: [
|
|
873
886
|
/* @__PURE__ */ s(
|
|
874
|
-
|
|
887
|
+
xe,
|
|
875
888
|
{
|
|
876
889
|
componentRef: l().componentRef,
|
|
877
890
|
componentOptions: l().componentOptions,
|
|
@@ -899,7 +912,7 @@ function _(e) {
|
|
|
899
912
|
) })
|
|
900
913
|
] }) : null });
|
|
901
914
|
}
|
|
902
|
-
function
|
|
915
|
+
function Wt(e) {
|
|
903
916
|
function t() {
|
|
904
917
|
var o;
|
|
905
918
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
@@ -930,7 +943,7 @@ function Ft(e) {
|
|
|
930
943
|
"*"
|
|
931
944
|
));
|
|
932
945
|
}
|
|
933
|
-
return /* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
934
947
|
/* @__PURE__ */ s(
|
|
935
948
|
e.BlocksWrapper,
|
|
936
949
|
{
|
|
@@ -952,11 +965,11 @@ function Ft(e) {
|
|
|
952
965
|
}` })
|
|
953
966
|
] });
|
|
954
967
|
}
|
|
955
|
-
function
|
|
968
|
+
function D(e) {
|
|
956
969
|
var i, o, r;
|
|
957
|
-
const t =
|
|
970
|
+
const t = be(me), n = be(Be);
|
|
958
971
|
return /* @__PURE__ */ s(
|
|
959
|
-
|
|
972
|
+
Wt,
|
|
960
973
|
{
|
|
961
974
|
blocks: e.blocks,
|
|
962
975
|
parent: e.parent,
|
|
@@ -977,8 +990,8 @@ function L(e) {
|
|
|
977
990
|
}
|
|
978
991
|
);
|
|
979
992
|
}
|
|
980
|
-
const
|
|
981
|
-
function
|
|
993
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
994
|
+
function $t(e) {
|
|
982
995
|
var A, O;
|
|
983
996
|
const [t, n] = C(
|
|
984
997
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -993,8 +1006,8 @@ function Lt(e) {
|
|
|
993
1006
|
return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
|
|
994
1007
|
}
|
|
995
1008
|
function u(S) {
|
|
996
|
-
const w = t * (i.length - 1) /
|
|
997
|
-
return `calc(${
|
|
1009
|
+
const w = c(S), N = t * (i.length - 1) * (w / 100);
|
|
1010
|
+
return `calc(${w}% - ${N}px)`;
|
|
998
1011
|
}
|
|
999
1012
|
function f({
|
|
1000
1013
|
stackedStyle: S,
|
|
@@ -1008,7 +1021,7 @@ function Lt(e) {
|
|
|
1008
1021
|
}) {
|
|
1009
1022
|
return r === "never" ? w : S;
|
|
1010
1023
|
}
|
|
1011
|
-
const [m,
|
|
1024
|
+
const [m, g] = C(
|
|
1012
1025
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1013
1026
|
);
|
|
1014
1027
|
function p() {
|
|
@@ -1021,40 +1034,40 @@ function Lt(e) {
|
|
|
1021
1034
|
};
|
|
1022
1035
|
}
|
|
1023
1036
|
function I(S) {
|
|
1024
|
-
const w = S === 0 ? 0 : t,
|
|
1037
|
+
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
|
|
1025
1038
|
return {
|
|
1026
1039
|
...{
|
|
1027
1040
|
display: "flex",
|
|
1028
1041
|
flexDirection: "column",
|
|
1029
1042
|
alignItems: "stretch"
|
|
1030
1043
|
},
|
|
1031
|
-
width:
|
|
1032
|
-
["marginLeft"]:
|
|
1044
|
+
width: N,
|
|
1045
|
+
["marginLeft"]: b,
|
|
1033
1046
|
"--column-width-mobile": d({
|
|
1034
1047
|
stackedStyle: h,
|
|
1035
|
-
desktopStyle:
|
|
1048
|
+
desktopStyle: N
|
|
1036
1049
|
}),
|
|
1037
1050
|
"--column-margin-left-mobile": d({
|
|
1038
1051
|
stackedStyle: y,
|
|
1039
|
-
desktopStyle:
|
|
1052
|
+
desktopStyle: b
|
|
1040
1053
|
}),
|
|
1041
1054
|
"--column-width-tablet": f({
|
|
1042
1055
|
stackedStyle: h,
|
|
1043
|
-
desktopStyle:
|
|
1056
|
+
desktopStyle: N
|
|
1044
1057
|
}),
|
|
1045
1058
|
"--column-margin-left-tablet": f({
|
|
1046
1059
|
stackedStyle: y,
|
|
1047
|
-
desktopStyle:
|
|
1060
|
+
desktopStyle: b
|
|
1048
1061
|
})
|
|
1049
1062
|
};
|
|
1050
1063
|
}
|
|
1051
1064
|
function x(S) {
|
|
1052
|
-
var
|
|
1053
|
-
return
|
|
1054
|
-
((
|
|
1065
|
+
var N, b;
|
|
1066
|
+
return Le(
|
|
1067
|
+
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1055
1068
|
)[S].max;
|
|
1056
1069
|
}
|
|
1057
|
-
function
|
|
1070
|
+
function E() {
|
|
1058
1071
|
return `
|
|
1059
1072
|
@media (max-width: ${x("medium")}px) {
|
|
1060
1073
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1087,25 +1100,32 @@ function Lt(e) {
|
|
|
1087
1100
|
href: S.link
|
|
1088
1101
|
} : {},
|
|
1089
1102
|
[q()]: "builder-column",
|
|
1090
|
-
style:
|
|
1103
|
+
style: $e(I(w))
|
|
1091
1104
|
};
|
|
1092
1105
|
}
|
|
1093
|
-
return /* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1107
|
+
/* @__PURE__ */ P(
|
|
1095
1108
|
"div",
|
|
1096
1109
|
{
|
|
1097
|
-
className:
|
|
1110
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
|
|
1098
1111
|
style: p(),
|
|
1099
1112
|
children: [
|
|
1100
|
-
/* @__PURE__ */ s(
|
|
1113
|
+
/* @__PURE__ */ s(
|
|
1114
|
+
ne,
|
|
1115
|
+
{
|
|
1116
|
+
id: "builderio-columns",
|
|
1117
|
+
styles: E(),
|
|
1118
|
+
nonce: e.builderContext.nonce
|
|
1119
|
+
}
|
|
1120
|
+
),
|
|
1101
1121
|
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1102
|
-
|
|
1122
|
+
ue,
|
|
1103
1123
|
{
|
|
1104
1124
|
TagName: l(S),
|
|
1105
1125
|
actionAttributes: {},
|
|
1106
1126
|
attributes: V(S, w),
|
|
1107
1127
|
children: /* @__PURE__ */ s(
|
|
1108
|
-
|
|
1128
|
+
D,
|
|
1109
1129
|
{
|
|
1110
1130
|
path: `component.options.columns.${w}.blocks`,
|
|
1111
1131
|
parent: e.builderBlock.id,
|
|
@@ -1124,7 +1144,7 @@ function Lt(e) {
|
|
|
1124
1144
|
]
|
|
1125
1145
|
}
|
|
1126
1146
|
),
|
|
1127
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1147
|
+
/* @__PURE__ */ s("style", { children: `.div-fe220f58 {
|
|
1128
1148
|
display: flex;
|
|
1129
1149
|
line-height: normal;
|
|
1130
1150
|
}` })
|
|
@@ -1133,37 +1153,37 @@ function Lt(e) {
|
|
|
1133
1153
|
function Dt(e) {
|
|
1134
1154
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1135
1155
|
}
|
|
1136
|
-
function
|
|
1156
|
+
function ve(e) {
|
|
1137
1157
|
return e.replace(/http(s)?:/, "");
|
|
1138
1158
|
}
|
|
1139
|
-
function
|
|
1159
|
+
function Lt(e = "", t, n) {
|
|
1140
1160
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1141
1161
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1142
1162
|
}
|
|
1143
|
-
function
|
|
1163
|
+
function Ot(e, t) {
|
|
1144
1164
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1145
1165
|
return e;
|
|
1146
1166
|
if (t === "master")
|
|
1147
|
-
return
|
|
1167
|
+
return ve(e);
|
|
1148
1168
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1149
1169
|
if (n) {
|
|
1150
1170
|
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1151
|
-
return
|
|
1171
|
+
return ve(`${i[0]}_${r}${o}`);
|
|
1152
1172
|
}
|
|
1153
1173
|
return null;
|
|
1154
1174
|
}
|
|
1155
|
-
function
|
|
1175
|
+
function oe(e) {
|
|
1156
1176
|
if (!e)
|
|
1157
1177
|
return e;
|
|
1158
1178
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1159
1179
|
if (e.match(/builder\.io/)) {
|
|
1160
1180
|
let n = e;
|
|
1161
1181
|
const i = Number(e.split("?width=")[1]);
|
|
1162
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1182
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1163
1183
|
}
|
|
1164
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1184
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1165
1185
|
}
|
|
1166
|
-
function
|
|
1186
|
+
function jt(e) {
|
|
1167
1187
|
var o, r, a, l, c, u;
|
|
1168
1188
|
function t() {
|
|
1169
1189
|
var m;
|
|
@@ -1174,10 +1194,10 @@ function Ut(e) {
|
|
|
1174
1194
|
return e.srcset;
|
|
1175
1195
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1176
1196
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1177
|
-
return console.debug("Removed given srcset"),
|
|
1197
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1178
1198
|
} else if (e.image && !e.srcset)
|
|
1179
|
-
return
|
|
1180
|
-
return
|
|
1199
|
+
return oe(d);
|
|
1200
|
+
return oe(d);
|
|
1181
1201
|
}
|
|
1182
1202
|
function n() {
|
|
1183
1203
|
var f;
|
|
@@ -1193,9 +1213,9 @@ function Ut(e) {
|
|
|
1193
1213
|
};
|
|
1194
1214
|
return e.aspectRatio ? f : void 0;
|
|
1195
1215
|
}
|
|
1196
|
-
return /* @__PURE__ */
|
|
1197
|
-
/* @__PURE__ */
|
|
1198
|
-
/* @__PURE__ */
|
|
1216
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1217
|
+
/* @__PURE__ */ P(R, { children: [
|
|
1218
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1199
1219
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1200
1220
|
/* @__PURE__ */ s(
|
|
1201
1221
|
"img",
|
|
@@ -1247,7 +1267,7 @@ function Ut(e) {
|
|
|
1247
1267
|
}` })
|
|
1248
1268
|
] });
|
|
1249
1269
|
}
|
|
1250
|
-
function
|
|
1270
|
+
function Ut(e) {
|
|
1251
1271
|
return /* @__PURE__ */ s(
|
|
1252
1272
|
"section",
|
|
1253
1273
|
{
|
|
@@ -1268,7 +1288,7 @@ function Mt(e) {
|
|
|
1268
1288
|
}
|
|
1269
1289
|
);
|
|
1270
1290
|
}
|
|
1271
|
-
const
|
|
1291
|
+
const ae = {
|
|
1272
1292
|
"@type": "@builder.io/sdk:Element",
|
|
1273
1293
|
layerName: "Accordion item title",
|
|
1274
1294
|
responsiveStyles: {
|
|
@@ -1297,7 +1317,7 @@ const re = {
|
|
|
1297
1317
|
}
|
|
1298
1318
|
}
|
|
1299
1319
|
}]
|
|
1300
|
-
},
|
|
1320
|
+
}, re = {
|
|
1301
1321
|
"@type": "@builder.io/sdk:Element",
|
|
1302
1322
|
layerName: "Accordion item detail",
|
|
1303
1323
|
responsiveStyles: {
|
|
@@ -1328,7 +1348,7 @@ const re = {
|
|
|
1328
1348
|
}
|
|
1329
1349
|
}
|
|
1330
1350
|
}]
|
|
1331
|
-
},
|
|
1351
|
+
}, Mt = {
|
|
1332
1352
|
name: "Builder:Accordion",
|
|
1333
1353
|
canHaveChildren: !0,
|
|
1334
1354
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1345,19 +1365,19 @@ const re = {
|
|
|
1345
1365
|
name: "title",
|
|
1346
1366
|
type: "uiBlocks",
|
|
1347
1367
|
hideFromUI: !0,
|
|
1348
|
-
defaultValue: [
|
|
1368
|
+
defaultValue: [ae]
|
|
1349
1369
|
}, {
|
|
1350
1370
|
name: "detail",
|
|
1351
1371
|
type: "uiBlocks",
|
|
1352
1372
|
hideFromUI: !0,
|
|
1353
|
-
defaultValue: [
|
|
1373
|
+
defaultValue: [re]
|
|
1354
1374
|
}],
|
|
1355
1375
|
defaultValue: [{
|
|
1356
|
-
title: [
|
|
1357
|
-
detail: [
|
|
1376
|
+
title: [ae],
|
|
1377
|
+
detail: [re]
|
|
1358
1378
|
}, {
|
|
1359
|
-
title: [
|
|
1360
|
-
detail: [
|
|
1379
|
+
title: [ae],
|
|
1380
|
+
detail: [re]
|
|
1361
1381
|
}],
|
|
1362
1382
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1363
1383
|
}, {
|
|
@@ -1392,8 +1412,8 @@ const re = {
|
|
|
1392
1412
|
builderComponents: !0,
|
|
1393
1413
|
builderLinkComponent: !0
|
|
1394
1414
|
}
|
|
1395
|
-
},
|
|
1396
|
-
function
|
|
1415
|
+
}, Se = (e) => e.toString();
|
|
1416
|
+
function Ht(e) {
|
|
1397
1417
|
var d;
|
|
1398
1418
|
const [t, n] = C(() => []);
|
|
1399
1419
|
function i() {
|
|
@@ -1412,7 +1432,7 @@ function qt(e) {
|
|
|
1412
1432
|
};
|
|
1413
1433
|
}
|
|
1414
1434
|
function r() {
|
|
1415
|
-
const
|
|
1435
|
+
const g = {
|
|
1416
1436
|
...{
|
|
1417
1437
|
display: "flex",
|
|
1418
1438
|
flexDirection: "column"
|
|
@@ -1421,7 +1441,7 @@ function qt(e) {
|
|
|
1421
1441
|
cursor: "pointer"
|
|
1422
1442
|
};
|
|
1423
1443
|
return Object.fromEntries(
|
|
1424
|
-
Object.entries(
|
|
1444
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1425
1445
|
);
|
|
1426
1446
|
}
|
|
1427
1447
|
function a(m) {
|
|
@@ -1438,18 +1458,18 @@ function qt(e) {
|
|
|
1438
1458
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1439
1459
|
);
|
|
1440
1460
|
if (m = p, x) {
|
|
1441
|
-
let
|
|
1461
|
+
let E = x.getBoundingClientRect();
|
|
1442
1462
|
for (; x = x && x.nextElementSibling; )
|
|
1443
1463
|
if (x) {
|
|
1444
1464
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1445
1465
|
continue;
|
|
1446
1466
|
const V = x.getBoundingClientRect();
|
|
1447
|
-
if (V.left >
|
|
1467
|
+
if (V.left > E.left) {
|
|
1448
1468
|
const A = parseInt(
|
|
1449
1469
|
x.getAttribute("data-index") || "",
|
|
1450
1470
|
10
|
|
1451
1471
|
);
|
|
1452
|
-
isNaN(A) || (
|
|
1472
|
+
isNaN(A) || (E = V, m = A);
|
|
1453
1473
|
} else
|
|
1454
1474
|
break;
|
|
1455
1475
|
}
|
|
@@ -1465,29 +1485,29 @@ function qt(e) {
|
|
|
1465
1485
|
}
|
|
1466
1486
|
};
|
|
1467
1487
|
return Object.fromEntries(
|
|
1468
|
-
Object.entries(m).filter(([
|
|
1488
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1469
1489
|
);
|
|
1470
1490
|
}
|
|
1471
1491
|
function f(m) {
|
|
1472
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1492
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1473
1493
|
}
|
|
1474
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1494
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
|
|
1475
1495
|
/* @__PURE__ */ s(
|
|
1476
1496
|
"div",
|
|
1477
1497
|
{
|
|
1478
|
-
className: a(
|
|
1498
|
+
className: a(g),
|
|
1479
1499
|
style: {
|
|
1480
1500
|
...r(),
|
|
1481
1501
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1482
|
-
order: c() !== null ?
|
|
1502
|
+
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1483
1503
|
},
|
|
1484
|
-
"data-index":
|
|
1485
|
-
onClick: (p) => f(
|
|
1504
|
+
"data-index": g,
|
|
1505
|
+
onClick: (p) => f(g),
|
|
1486
1506
|
children: /* @__PURE__ */ s(
|
|
1487
|
-
|
|
1507
|
+
D,
|
|
1488
1508
|
{
|
|
1489
1509
|
blocks: m.title,
|
|
1490
|
-
path: `items.${
|
|
1510
|
+
path: `items.${g}.title`,
|
|
1491
1511
|
parent: e.builderBlock.id,
|
|
1492
1512
|
context: e.builderContext,
|
|
1493
1513
|
registeredComponents: e.builderComponents,
|
|
@@ -1496,16 +1516,16 @@ function qt(e) {
|
|
|
1496
1516
|
)
|
|
1497
1517
|
}
|
|
1498
1518
|
),
|
|
1499
|
-
t.includes(
|
|
1519
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1500
1520
|
"div",
|
|
1501
1521
|
{
|
|
1502
|
-
className: l(
|
|
1522
|
+
className: l(g),
|
|
1503
1523
|
style: u(),
|
|
1504
1524
|
children: /* @__PURE__ */ s(
|
|
1505
|
-
|
|
1525
|
+
D,
|
|
1506
1526
|
{
|
|
1507
1527
|
blocks: m.detail,
|
|
1508
|
-
path: `items.${
|
|
1528
|
+
path: `items.${g}.detail`,
|
|
1509
1529
|
parent: e.builderBlock.id,
|
|
1510
1530
|
context: e.builderContext,
|
|
1511
1531
|
registeredComponents: e.builderComponents,
|
|
@@ -1516,7 +1536,7 @@ function qt(e) {
|
|
|
1516
1536
|
) : null
|
|
1517
1537
|
] })) });
|
|
1518
1538
|
}
|
|
1519
|
-
const
|
|
1539
|
+
const qt = {
|
|
1520
1540
|
name: "Core:Button",
|
|
1521
1541
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1522
1542
|
defaultStyles: {
|
|
@@ -1550,12 +1570,9 @@ const Kt = {
|
|
|
1550
1570
|
static: !0,
|
|
1551
1571
|
noWrap: !0,
|
|
1552
1572
|
shouldReceiveBuilderProps: {
|
|
1553
|
-
builderBlock: !1,
|
|
1554
|
-
builderContext: !1,
|
|
1555
|
-
builderComponents: !1,
|
|
1556
1573
|
builderLinkComponent: !0
|
|
1557
1574
|
}
|
|
1558
|
-
},
|
|
1575
|
+
}, Kt = {
|
|
1559
1576
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1560
1577
|
name: "Columns",
|
|
1561
1578
|
isRSC: !0,
|
|
@@ -1762,19 +1779,13 @@ const Kt = {
|
|
|
1762
1779
|
builderComponents: !0,
|
|
1763
1780
|
builderLinkComponent: !0
|
|
1764
1781
|
}
|
|
1765
|
-
},
|
|
1766
|
-
shouldReceiveBuilderProps: {
|
|
1767
|
-
builderBlock: !1,
|
|
1768
|
-
builderContext: !1,
|
|
1769
|
-
builderComponents: !1,
|
|
1770
|
-
builderLinkComponent: !1
|
|
1771
|
-
},
|
|
1782
|
+
}, zt = {
|
|
1772
1783
|
name: "Fragment",
|
|
1773
1784
|
static: !0,
|
|
1774
1785
|
hidden: !0,
|
|
1775
1786
|
canHaveChildren: !0,
|
|
1776
1787
|
noWrap: !0
|
|
1777
|
-
},
|
|
1788
|
+
}, _t = {
|
|
1778
1789
|
name: "Image",
|
|
1779
1790
|
static: !0,
|
|
1780
1791
|
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",
|
|
@@ -1880,18 +1891,9 @@ const Kt = {
|
|
|
1880
1891
|
defaultValue: 0.7041
|
|
1881
1892
|
}],
|
|
1882
1893
|
shouldReceiveBuilderProps: {
|
|
1883
|
-
builderBlock: !0
|
|
1884
|
-
builderContext: !1,
|
|
1885
|
-
builderComponents: !1,
|
|
1886
|
-
builderLinkComponent: !1
|
|
1894
|
+
builderBlock: !0
|
|
1887
1895
|
}
|
|
1888
|
-
},
|
|
1889
|
-
shouldReceiveBuilderProps: {
|
|
1890
|
-
builderBlock: !1,
|
|
1891
|
-
builderContext: !1,
|
|
1892
|
-
builderComponents: !1,
|
|
1893
|
-
builderLinkComponent: !1
|
|
1894
|
-
},
|
|
1896
|
+
}, Jt = {
|
|
1895
1897
|
name: "Core:Section",
|
|
1896
1898
|
static: !0,
|
|
1897
1899
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1930,7 +1932,7 @@ const Kt = {
|
|
|
1930
1932
|
}
|
|
1931
1933
|
}
|
|
1932
1934
|
}]
|
|
1933
|
-
},
|
|
1935
|
+
}, Yt = {
|
|
1934
1936
|
name: "Slot",
|
|
1935
1937
|
isRSC: !0,
|
|
1936
1938
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1944,13 +1946,10 @@ const Kt = {
|
|
|
1944
1946
|
defaultValue: "children"
|
|
1945
1947
|
}],
|
|
1946
1948
|
shouldReceiveBuilderProps: {
|
|
1947
|
-
|
|
1948
|
-
builderContext: !0,
|
|
1949
|
-
builderComponents: !1,
|
|
1950
|
-
builderLinkComponent: !1
|
|
1949
|
+
builderContext: !0
|
|
1951
1950
|
}
|
|
1952
1951
|
};
|
|
1953
|
-
function
|
|
1952
|
+
function Gt(e) {
|
|
1954
1953
|
var t, n, i;
|
|
1955
1954
|
return /* @__PURE__ */ s(
|
|
1956
1955
|
"div",
|
|
@@ -1962,7 +1961,7 @@ function Qt(e) {
|
|
|
1962
1961
|
"builder-slot": e.name
|
|
1963
1962
|
},
|
|
1964
1963
|
children: /* @__PURE__ */ s(
|
|
1965
|
-
|
|
1964
|
+
D,
|
|
1966
1965
|
{
|
|
1967
1966
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1968
1967
|
path: `symbol.data.${e.name}`,
|
|
@@ -1973,7 +1972,7 @@ function Qt(e) {
|
|
|
1973
1972
|
}
|
|
1974
1973
|
);
|
|
1975
1974
|
}
|
|
1976
|
-
const
|
|
1975
|
+
const Qt = {
|
|
1977
1976
|
name: "Symbol",
|
|
1978
1977
|
noWrap: !0,
|
|
1979
1978
|
static: !0,
|
|
@@ -2012,7 +2011,7 @@ const Xt = {
|
|
|
2012
2011
|
builderComponents: !0,
|
|
2013
2012
|
builderLinkComponent: !0
|
|
2014
2013
|
}
|
|
2015
|
-
},
|
|
2014
|
+
}, le = {
|
|
2016
2015
|
"@type": "@builder.io/sdk:Element",
|
|
2017
2016
|
responsiveStyles: {
|
|
2018
2017
|
large: {
|
|
@@ -2034,7 +2033,7 @@ const Xt = {
|
|
|
2034
2033
|
text: "New tab"
|
|
2035
2034
|
}
|
|
2036
2035
|
}
|
|
2037
|
-
},
|
|
2036
|
+
}, se = {
|
|
2038
2037
|
"@type": "@builder.io/sdk:Element",
|
|
2039
2038
|
responsiveStyles: {
|
|
2040
2039
|
large: {
|
|
@@ -2050,7 +2049,7 @@ const Xt = {
|
|
|
2050
2049
|
text: "New tab content "
|
|
2051
2050
|
}
|
|
2052
2051
|
}
|
|
2053
|
-
},
|
|
2052
|
+
}, Xt = {
|
|
2054
2053
|
name: "Builder: Tabs",
|
|
2055
2054
|
inputs: [{
|
|
2056
2055
|
name: "tabs",
|
|
@@ -2060,16 +2059,16 @@ const Xt = {
|
|
|
2060
2059
|
name: "label",
|
|
2061
2060
|
type: "uiBlocks",
|
|
2062
2061
|
hideFromUI: !0,
|
|
2063
|
-
defaultValue: [
|
|
2062
|
+
defaultValue: [le]
|
|
2064
2063
|
}, {
|
|
2065
2064
|
name: "content",
|
|
2066
2065
|
type: "uiBlocks",
|
|
2067
2066
|
hideFromUI: !0,
|
|
2068
|
-
defaultValue: [
|
|
2067
|
+
defaultValue: [se]
|
|
2069
2068
|
}],
|
|
2070
2069
|
defaultValue: [{
|
|
2071
2070
|
label: [{
|
|
2072
|
-
...
|
|
2071
|
+
...le,
|
|
2073
2072
|
component: {
|
|
2074
2073
|
name: "Text",
|
|
2075
2074
|
options: {
|
|
@@ -2078,7 +2077,7 @@ const Xt = {
|
|
|
2078
2077
|
}
|
|
2079
2078
|
}],
|
|
2080
2079
|
content: [{
|
|
2081
|
-
...
|
|
2080
|
+
...se,
|
|
2082
2081
|
component: {
|
|
2083
2082
|
name: "Text",
|
|
2084
2083
|
options: {
|
|
@@ -2088,7 +2087,7 @@ const Xt = {
|
|
|
2088
2087
|
}]
|
|
2089
2088
|
}, {
|
|
2090
2089
|
label: [{
|
|
2091
|
-
...
|
|
2090
|
+
...le,
|
|
2092
2091
|
component: {
|
|
2093
2092
|
name: "Text",
|
|
2094
2093
|
options: {
|
|
@@ -2097,7 +2096,7 @@ const Xt = {
|
|
|
2097
2096
|
}
|
|
2098
2097
|
}],
|
|
2099
2098
|
content: [{
|
|
2100
|
-
...
|
|
2099
|
+
...se,
|
|
2101
2100
|
component: {
|
|
2102
2101
|
name: "Text",
|
|
2103
2102
|
options: {
|
|
@@ -2154,7 +2153,7 @@ const Xt = {
|
|
|
2154
2153
|
builderLinkComponent: !0
|
|
2155
2154
|
}
|
|
2156
2155
|
};
|
|
2157
|
-
function
|
|
2156
|
+
function Zt(e) {
|
|
2158
2157
|
var r;
|
|
2159
2158
|
const [t, n] = C(
|
|
2160
2159
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2165,7 +2164,7 @@ function en(e) {
|
|
|
2165
2164
|
function o(a) {
|
|
2166
2165
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2167
2166
|
}
|
|
2168
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ P("div", { children: [
|
|
2169
2168
|
/* @__PURE__ */ s(
|
|
2170
2169
|
"div",
|
|
2171
2170
|
{
|
|
@@ -2185,7 +2184,7 @@ function en(e) {
|
|
|
2185
2184
|
},
|
|
2186
2185
|
onClick: (c) => o(l),
|
|
2187
2186
|
children: /* @__PURE__ */ s(
|
|
2188
|
-
|
|
2187
|
+
D,
|
|
2189
2188
|
{
|
|
2190
2189
|
parent: e.builderBlock.id,
|
|
2191
2190
|
path: `component.options.tabs.${l}.label`,
|
|
@@ -2201,7 +2200,7 @@ function en(e) {
|
|
|
2201
2200
|
}
|
|
2202
2201
|
),
|
|
2203
2202
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2204
|
-
|
|
2203
|
+
D,
|
|
2205
2204
|
{
|
|
2206
2205
|
parent: e.builderBlock.id,
|
|
2207
2206
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2213,12 +2212,9 @@ function en(e) {
|
|
|
2213
2212
|
) }) : null
|
|
2214
2213
|
] });
|
|
2215
2214
|
}
|
|
2216
|
-
const
|
|
2215
|
+
const en = {
|
|
2217
2216
|
shouldReceiveBuilderProps: {
|
|
2218
|
-
builderBlock: !1
|
|
2219
|
-
builderContext: !1,
|
|
2220
|
-
builderComponents: !1,
|
|
2221
|
-
builderLinkComponent: !1
|
|
2217
|
+
builderBlock: !1
|
|
2222
2218
|
},
|
|
2223
2219
|
name: "Text",
|
|
2224
2220
|
static: !0,
|
|
@@ -2238,7 +2234,7 @@ const tn = {
|
|
|
2238
2234
|
textAlign: "center"
|
|
2239
2235
|
}
|
|
2240
2236
|
};
|
|
2241
|
-
function
|
|
2237
|
+
function tn(e) {
|
|
2242
2238
|
var t;
|
|
2243
2239
|
return /* @__PURE__ */ s(
|
|
2244
2240
|
"div",
|
|
@@ -2251,13 +2247,7 @@ function nn(e) {
|
|
|
2251
2247
|
}
|
|
2252
2248
|
);
|
|
2253
2249
|
}
|
|
2254
|
-
const
|
|
2255
|
-
shouldReceiveBuilderProps: {
|
|
2256
|
-
builderBlock: !1,
|
|
2257
|
-
builderContext: !1,
|
|
2258
|
-
builderComponents: !1,
|
|
2259
|
-
builderLinkComponent: !1
|
|
2260
|
-
},
|
|
2250
|
+
const nn = {
|
|
2261
2251
|
name: "Custom Code",
|
|
2262
2252
|
static: !0,
|
|
2263
2253
|
requiredPermissions: ["editCode"],
|
|
@@ -2280,9 +2270,9 @@ const on = {
|
|
|
2280
2270
|
advanced: !0
|
|
2281
2271
|
}]
|
|
2282
2272
|
};
|
|
2283
|
-
function
|
|
2273
|
+
function on(e) {
|
|
2284
2274
|
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
|
|
2285
|
-
return
|
|
2275
|
+
return B(() => {
|
|
2286
2276
|
var l;
|
|
2287
2277
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2288
2278
|
return;
|
|
@@ -2318,13 +2308,7 @@ function an(e) {
|
|
|
2318
2308
|
}
|
|
2319
2309
|
);
|
|
2320
2310
|
}
|
|
2321
|
-
const
|
|
2322
|
-
shouldReceiveBuilderProps: {
|
|
2323
|
-
builderBlock: !1,
|
|
2324
|
-
builderContext: !1,
|
|
2325
|
-
builderComponents: !1,
|
|
2326
|
-
builderLinkComponent: !1
|
|
2327
|
-
},
|
|
2311
|
+
const an = {
|
|
2328
2312
|
name: "Embed",
|
|
2329
2313
|
static: !0,
|
|
2330
2314
|
inputs: [{
|
|
@@ -2339,8 +2323,8 @@ const rn = {
|
|
|
2339
2323
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2340
2324
|
hideFromUI: !0
|
|
2341
2325
|
}]
|
|
2342
|
-
},
|
|
2343
|
-
function
|
|
2326
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2327
|
+
function sn(e) {
|
|
2344
2328
|
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
|
|
2345
2329
|
function c() {
|
|
2346
2330
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2352,7 +2336,7 @@ function cn(e) {
|
|
|
2352
2336
|
n.push(d.src);
|
|
2353
2337
|
const m = document.createElement("script");
|
|
2354
2338
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2355
|
-
} else if (
|
|
2339
|
+
} else if (ln(d) && !o.includes(d.innerText))
|
|
2356
2340
|
try {
|
|
2357
2341
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2358
2342
|
} catch (m) {
|
|
@@ -2360,7 +2344,7 @@ function cn(e) {
|
|
|
2360
2344
|
}
|
|
2361
2345
|
}
|
|
2362
2346
|
}
|
|
2363
|
-
return
|
|
2347
|
+
return B(() => {
|
|
2364
2348
|
t.current && !a && (l(!0), c());
|
|
2365
2349
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2366
2350
|
"div",
|
|
@@ -2371,7 +2355,7 @@ function cn(e) {
|
|
|
2371
2355
|
}
|
|
2372
2356
|
);
|
|
2373
2357
|
}
|
|
2374
|
-
const
|
|
2358
|
+
const cn = {
|
|
2375
2359
|
name: "Form:Form",
|
|
2376
2360
|
// editableTags: ['builder-form-error']
|
|
2377
2361
|
defaults: {
|
|
@@ -2608,97 +2592,97 @@ const dn = {
|
|
|
2608
2592
|
builderComponents: !0,
|
|
2609
2593
|
builderLinkComponent: !0
|
|
2610
2594
|
}
|
|
2611
|
-
},
|
|
2595
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2612
2596
|
const e = process.env.NODE_ENV || "production";
|
|
2613
|
-
return
|
|
2614
|
-
},
|
|
2597
|
+
return dn.includes(e) ? e : "production";
|
|
2598
|
+
}, mn = (e, t, n) => {
|
|
2615
2599
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
2616
2600
|
return i === void 0 || i === e ? n : i;
|
|
2617
2601
|
};
|
|
2618
|
-
function
|
|
2602
|
+
function fn(e) {
|
|
2619
2603
|
var d, m;
|
|
2620
2604
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
|
|
2621
|
-
function c(
|
|
2605
|
+
function c(g) {
|
|
2622
2606
|
var I, x;
|
|
2623
2607
|
const p = {
|
|
2624
2608
|
...e.builderContext.rootState,
|
|
2625
|
-
...
|
|
2609
|
+
...g
|
|
2626
2610
|
};
|
|
2627
2611
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2628
2612
|
}
|
|
2629
2613
|
function u() {
|
|
2630
2614
|
return $() && e.previewState || n;
|
|
2631
2615
|
}
|
|
2632
|
-
function f(
|
|
2616
|
+
function f(g) {
|
|
2633
2617
|
var I;
|
|
2634
2618
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2635
2619
|
if (e.sendSubmissionsTo === "zapier")
|
|
2636
|
-
|
|
2620
|
+
g.preventDefault();
|
|
2637
2621
|
else if (p) {
|
|
2638
2622
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2639
|
-
|
|
2623
|
+
g.preventDefault();
|
|
2640
2624
|
return;
|
|
2641
2625
|
}
|
|
2642
|
-
|
|
2643
|
-
const x =
|
|
2626
|
+
g.preventDefault();
|
|
2627
|
+
const x = g.currentTarget || g.target, E = e.customHeaders || {};
|
|
2644
2628
|
let V;
|
|
2645
|
-
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((
|
|
2629
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2646
2630
|
let h;
|
|
2647
|
-
const y =
|
|
2648
|
-
if (
|
|
2649
|
-
if (
|
|
2650
|
-
if (
|
|
2651
|
-
return h =
|
|
2631
|
+
const y = b.name;
|
|
2632
|
+
if (b instanceof HTMLInputElement)
|
|
2633
|
+
if (b.type === "radio") {
|
|
2634
|
+
if (b.checked)
|
|
2635
|
+
return h = b.name, {
|
|
2652
2636
|
key: y,
|
|
2653
2637
|
value: h
|
|
2654
2638
|
};
|
|
2655
|
-
} else if (
|
|
2656
|
-
h =
|
|
2657
|
-
else if (
|
|
2658
|
-
const v =
|
|
2639
|
+
} else if (b.type === "checkbox")
|
|
2640
|
+
h = b.checked;
|
|
2641
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2642
|
+
const v = b.valueAsNumber;
|
|
2659
2643
|
isNaN(v) || (h = v);
|
|
2660
2644
|
} else
|
|
2661
|
-
|
|
2645
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2662
2646
|
else
|
|
2663
|
-
h =
|
|
2647
|
+
h = b.value;
|
|
2664
2648
|
return {
|
|
2665
2649
|
key: y,
|
|
2666
2650
|
value: h
|
|
2667
2651
|
};
|
|
2668
2652
|
});
|
|
2669
2653
|
let S = e.contentType;
|
|
2670
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value:
|
|
2671
|
-
(
|
|
2654
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2655
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
|
|
2672
2656
|
}), S !== "application/json")
|
|
2673
2657
|
V = A;
|
|
2674
2658
|
else {
|
|
2675
|
-
const
|
|
2659
|
+
const b = {};
|
|
2676
2660
|
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2677
|
-
|
|
2678
|
-
}), V = JSON.stringify(
|
|
2661
|
+
Ve(b, y, h);
|
|
2662
|
+
}), V = JSON.stringify(b);
|
|
2679
2663
|
}
|
|
2680
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2664
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
|
|
2681
2665
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2682
2666
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2683
2667
|
return;
|
|
2684
2668
|
i("sending");
|
|
2685
|
-
const
|
|
2669
|
+
const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2686
2670
|
e.sendSubmissionsToEmail || ""
|
|
2687
2671
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2688
2672
|
fetch(
|
|
2689
|
-
e.sendSubmissionsTo === "email" ?
|
|
2690
|
-
{ body: V, headers:
|
|
2673
|
+
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2674
|
+
{ body: V, headers: E, method: e.method || "post" }
|
|
2691
2675
|
).then(
|
|
2692
|
-
async (
|
|
2676
|
+
async (b) => {
|
|
2693
2677
|
let h;
|
|
2694
|
-
const y =
|
|
2695
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2696
|
-
let v =
|
|
2678
|
+
const y = b.headers.get("content-type");
|
|
2679
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2680
|
+
let v = mn(h, e.errorMessagePath);
|
|
2697
2681
|
v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
|
|
2698
2682
|
}
|
|
2699
|
-
if (r(h), i(
|
|
2683
|
+
if (r(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2700
2684
|
const v = new CustomEvent("submit:success", {
|
|
2701
|
-
detail: { res:
|
|
2685
|
+
detail: { res: b, body: h }
|
|
2702
2686
|
});
|
|
2703
2687
|
if (t.current) {
|
|
2704
2688
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2715,18 +2699,18 @@ function hn(e) {
|
|
|
2715
2699
|
location.href = e.successUrl;
|
|
2716
2700
|
}
|
|
2717
2701
|
},
|
|
2718
|
-
(
|
|
2702
|
+
(b) => {
|
|
2719
2703
|
const h = new CustomEvent("submit:error", {
|
|
2720
|
-
detail: { error:
|
|
2704
|
+
detail: { error: b }
|
|
2721
2705
|
});
|
|
2722
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(
|
|
2706
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
|
|
2723
2707
|
}
|
|
2724
2708
|
);
|
|
2725
2709
|
}
|
|
2726
2710
|
}
|
|
2727
|
-
return /* @__PURE__ */
|
|
2711
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
2728
2712
|
" ",
|
|
2729
|
-
/* @__PURE__ */
|
|
2713
|
+
/* @__PURE__ */ P(
|
|
2730
2714
|
"form",
|
|
2731
2715
|
{
|
|
2732
2716
|
validate: e.validate,
|
|
@@ -2734,13 +2718,13 @@ function hn(e) {
|
|
|
2734
2718
|
action: !e.sendWithJs && e.action,
|
|
2735
2719
|
method: e.method,
|
|
2736
2720
|
name: e.name,
|
|
2737
|
-
onSubmit: (
|
|
2721
|
+
onSubmit: (g) => f(g),
|
|
2738
2722
|
...e.attributes,
|
|
2739
2723
|
children: [
|
|
2740
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((
|
|
2724
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2741
2725
|
_,
|
|
2742
2726
|
{
|
|
2743
|
-
block:
|
|
2727
|
+
block: g,
|
|
2744
2728
|
context: e.builderContext,
|
|
2745
2729
|
registeredComponents: e.builderComponents,
|
|
2746
2730
|
linkComponent: e.builderLinkComponent
|
|
@@ -2748,7 +2732,7 @@ function hn(e) {
|
|
|
2748
2732
|
`form-block-${p}`
|
|
2749
2733
|
)) }) : null,
|
|
2750
2734
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2751
|
-
|
|
2735
|
+
D,
|
|
2752
2736
|
{
|
|
2753
2737
|
path: "errorMessage",
|
|
2754
2738
|
blocks: e.errorMessage,
|
|
@@ -2756,7 +2740,7 @@ function hn(e) {
|
|
|
2756
2740
|
}
|
|
2757
2741
|
) : null,
|
|
2758
2742
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2759
|
-
|
|
2743
|
+
D,
|
|
2760
2744
|
{
|
|
2761
2745
|
path: "sendingMessage",
|
|
2762
2746
|
blocks: e.sendingMessage,
|
|
@@ -2765,7 +2749,7 @@ function hn(e) {
|
|
|
2765
2749
|
) : null,
|
|
2766
2750
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2767
2751
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2768
|
-
|
|
2752
|
+
D,
|
|
2769
2753
|
{
|
|
2770
2754
|
path: "successMessage",
|
|
2771
2755
|
blocks: e.successMessage,
|
|
@@ -2780,13 +2764,7 @@ function hn(e) {
|
|
|
2780
2764
|
" "
|
|
2781
2765
|
] });
|
|
2782
2766
|
}
|
|
2783
|
-
const
|
|
2784
|
-
shouldReceiveBuilderProps: {
|
|
2785
|
-
builderBlock: !1,
|
|
2786
|
-
builderContext: !1,
|
|
2787
|
-
builderComponents: !1,
|
|
2788
|
-
builderLinkComponent: !1
|
|
2789
|
-
},
|
|
2767
|
+
const hn = {
|
|
2790
2768
|
name: "Form:Input",
|
|
2791
2769
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2792
2770
|
inputs: [
|
|
@@ -2839,7 +2817,7 @@ const bn = {
|
|
|
2839
2817
|
}
|
|
2840
2818
|
};
|
|
2841
2819
|
function gn(e) {
|
|
2842
|
-
return /* @__PURE__ */
|
|
2820
|
+
return /* @__PURE__ */ Ee(
|
|
2843
2821
|
"input",
|
|
2844
2822
|
{
|
|
2845
2823
|
...e.attributes,
|
|
@@ -2853,13 +2831,7 @@ function gn(e) {
|
|
|
2853
2831
|
}
|
|
2854
2832
|
);
|
|
2855
2833
|
}
|
|
2856
|
-
const
|
|
2857
|
-
shouldReceiveBuilderProps: {
|
|
2858
|
-
builderBlock: !1,
|
|
2859
|
-
builderContext: !1,
|
|
2860
|
-
builderComponents: !1,
|
|
2861
|
-
builderLinkComponent: !1
|
|
2862
|
-
},
|
|
2834
|
+
const bn = {
|
|
2863
2835
|
name: "Form:Select",
|
|
2864
2836
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2865
2837
|
defaultStyles: {
|
|
@@ -2902,9 +2874,9 @@ const pn = {
|
|
|
2902
2874
|
static: !0,
|
|
2903
2875
|
noWrap: !0
|
|
2904
2876
|
};
|
|
2905
|
-
function
|
|
2877
|
+
function pn(e) {
|
|
2906
2878
|
var t;
|
|
2907
|
-
return /* @__PURE__ */
|
|
2879
|
+
return /* @__PURE__ */ Ee(
|
|
2908
2880
|
"select",
|
|
2909
2881
|
{
|
|
2910
2882
|
...e.attributes,
|
|
@@ -2917,13 +2889,7 @@ function yn(e) {
|
|
|
2917
2889
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2918
2890
|
);
|
|
2919
2891
|
}
|
|
2920
|
-
const
|
|
2921
|
-
shouldReceiveBuilderProps: {
|
|
2922
|
-
builderBlock: !1,
|
|
2923
|
-
builderContext: !1,
|
|
2924
|
-
builderComponents: !1,
|
|
2925
|
-
builderLinkComponent: !1
|
|
2926
|
-
},
|
|
2892
|
+
const yn = {
|
|
2927
2893
|
name: "Form:SubmitButton",
|
|
2928
2894
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2929
2895
|
defaultStyles: {
|
|
@@ -2949,16 +2915,10 @@ const xn = {
|
|
|
2949
2915
|
// TODO: defaultChildren
|
|
2950
2916
|
// canHaveChildren: true,
|
|
2951
2917
|
};
|
|
2952
|
-
function
|
|
2918
|
+
function xn(e) {
|
|
2953
2919
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2954
2920
|
}
|
|
2955
|
-
const
|
|
2956
|
-
shouldReceiveBuilderProps: {
|
|
2957
|
-
builderBlock: !1,
|
|
2958
|
-
builderContext: !1,
|
|
2959
|
-
builderComponents: !1,
|
|
2960
|
-
builderLinkComponent: !1
|
|
2961
|
-
},
|
|
2921
|
+
const vn = {
|
|
2962
2922
|
name: "Form:TextArea",
|
|
2963
2923
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2964
2924
|
inputs: [{
|
|
@@ -2995,7 +2955,7 @@ const Sn = {
|
|
|
2995
2955
|
static: !0,
|
|
2996
2956
|
noWrap: !0
|
|
2997
2957
|
};
|
|
2998
|
-
function
|
|
2958
|
+
function Sn(e) {
|
|
2999
2959
|
return /* @__PURE__ */ s(
|
|
3000
2960
|
"textarea",
|
|
3001
2961
|
{
|
|
@@ -3008,13 +2968,7 @@ function kn(e) {
|
|
|
3008
2968
|
}
|
|
3009
2969
|
);
|
|
3010
2970
|
}
|
|
3011
|
-
const
|
|
3012
|
-
shouldReceiveBuilderProps: {
|
|
3013
|
-
builderBlock: !1,
|
|
3014
|
-
builderContext: !1,
|
|
3015
|
-
builderComponents: !1,
|
|
3016
|
-
builderLinkComponent: !1
|
|
3017
|
-
},
|
|
2971
|
+
const kn = {
|
|
3018
2972
|
// friendlyName?
|
|
3019
2973
|
name: "Raw:Img",
|
|
3020
2974
|
hideFromInsertMenu: !0,
|
|
@@ -3029,7 +2983,7 @@ const Cn = {
|
|
|
3029
2983
|
noWrap: !0,
|
|
3030
2984
|
static: !0
|
|
3031
2985
|
};
|
|
3032
|
-
function
|
|
2986
|
+
function Cn(e) {
|
|
3033
2987
|
return /* @__PURE__ */ s(
|
|
3034
2988
|
"img",
|
|
3035
2989
|
{
|
|
@@ -3044,7 +2998,7 @@ function Tn(e) {
|
|
|
3044
2998
|
$() && e.imgSrc || "default-key"
|
|
3045
2999
|
);
|
|
3046
3000
|
}
|
|
3047
|
-
const
|
|
3001
|
+
const Tn = {
|
|
3048
3002
|
name: "Video",
|
|
3049
3003
|
canHaveChildren: !0,
|
|
3050
3004
|
defaultStyles: {
|
|
@@ -3126,13 +3080,10 @@ const In = {
|
|
|
3126
3080
|
advanced: !0
|
|
3127
3081
|
}],
|
|
3128
3082
|
shouldReceiveBuilderProps: {
|
|
3129
|
-
builderBlock: !0
|
|
3130
|
-
builderContext: !1,
|
|
3131
|
-
builderComponents: !1,
|
|
3132
|
-
builderLinkComponent: !1
|
|
3083
|
+
builderBlock: !0
|
|
3133
3084
|
}
|
|
3134
3085
|
};
|
|
3135
|
-
function
|
|
3086
|
+
function In(e) {
|
|
3136
3087
|
var i, o, r, a, l, c, u;
|
|
3137
3088
|
function t() {
|
|
3138
3089
|
return {
|
|
@@ -3158,7 +3109,7 @@ function wn(e) {
|
|
|
3158
3109
|
...t()
|
|
3159
3110
|
};
|
|
3160
3111
|
}
|
|
3161
|
-
return /* @__PURE__ */
|
|
3112
|
+
return /* @__PURE__ */ P(
|
|
3162
3113
|
"div",
|
|
3163
3114
|
{
|
|
3164
3115
|
style: {
|
|
@@ -3233,64 +3184,64 @@ function wn(e) {
|
|
|
3233
3184
|
}
|
|
3234
3185
|
);
|
|
3235
3186
|
}
|
|
3236
|
-
const
|
|
3237
|
-
component:
|
|
3238
|
-
...
|
|
3187
|
+
const wn = () => [{
|
|
3188
|
+
component: on,
|
|
3189
|
+
...nn
|
|
3239
3190
|
}, {
|
|
3240
|
-
component:
|
|
3241
|
-
...
|
|
3191
|
+
component: sn,
|
|
3192
|
+
...an
|
|
3242
3193
|
}, {
|
|
3243
|
-
component:
|
|
3244
|
-
...
|
|
3194
|
+
component: fn,
|
|
3195
|
+
...cn
|
|
3245
3196
|
}, {
|
|
3246
3197
|
component: gn,
|
|
3247
|
-
...
|
|
3198
|
+
...hn
|
|
3248
3199
|
}, {
|
|
3249
|
-
component:
|
|
3250
|
-
...
|
|
3200
|
+
component: xn,
|
|
3201
|
+
...yn
|
|
3251
3202
|
}, {
|
|
3252
|
-
component:
|
|
3253
|
-
...
|
|
3203
|
+
component: pn,
|
|
3204
|
+
...bn
|
|
3254
3205
|
}, {
|
|
3255
|
-
component:
|
|
3256
|
-
...
|
|
3206
|
+
component: Sn,
|
|
3207
|
+
...vn
|
|
3257
3208
|
}, {
|
|
3258
|
-
component:
|
|
3259
|
-
...
|
|
3209
|
+
component: Cn,
|
|
3210
|
+
...kn
|
|
3260
3211
|
}, {
|
|
3261
|
-
component:
|
|
3262
|
-
...
|
|
3263
|
-
}],
|
|
3264
|
-
component:
|
|
3212
|
+
component: In,
|
|
3213
|
+
...Tn
|
|
3214
|
+
}], ke = () => [{
|
|
3215
|
+
component: nt,
|
|
3216
|
+
...qt
|
|
3217
|
+
}, {
|
|
3218
|
+
component: $t,
|
|
3265
3219
|
...Kt
|
|
3266
3220
|
}, {
|
|
3267
|
-
component:
|
|
3221
|
+
component: Dt,
|
|
3268
3222
|
...zt
|
|
3269
3223
|
}, {
|
|
3270
|
-
component:
|
|
3224
|
+
component: jt,
|
|
3271
3225
|
..._t
|
|
3272
3226
|
}, {
|
|
3273
3227
|
component: Ut,
|
|
3274
3228
|
...Jt
|
|
3275
3229
|
}, {
|
|
3276
|
-
component:
|
|
3230
|
+
component: Gt,
|
|
3277
3231
|
...Yt
|
|
3278
3232
|
}, {
|
|
3279
|
-
component:
|
|
3280
|
-
...
|
|
3281
|
-
}, {
|
|
3282
|
-
component: Gn,
|
|
3283
|
-
...Xt
|
|
3233
|
+
component: Yn,
|
|
3234
|
+
...Qt
|
|
3284
3235
|
}, {
|
|
3285
|
-
component:
|
|
3286
|
-
...
|
|
3236
|
+
component: tn,
|
|
3237
|
+
...en
|
|
3287
3238
|
}, {
|
|
3288
|
-
component:
|
|
3289
|
-
...
|
|
3239
|
+
component: Zt,
|
|
3240
|
+
...Xt
|
|
3290
3241
|
}, {
|
|
3291
|
-
component:
|
|
3292
|
-
...
|
|
3293
|
-
}, ...
|
|
3242
|
+
component: Ht,
|
|
3243
|
+
...Mt
|
|
3244
|
+
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3294
3245
|
function getAndSetVariantId() {
|
|
3295
3246
|
function setCookie(name, value, days) {
|
|
3296
3247
|
let expires = '';
|
|
@@ -3346,7 +3297,7 @@ const Rn = () => [{
|
|
|
3346
3297
|
}).join('');
|
|
3347
3298
|
styleEl.innerHTML = newStyleStr;
|
|
3348
3299
|
}
|
|
3349
|
-
}`,
|
|
3300
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3350
3301
|
if (!navigator.cookieEnabled) {
|
|
3351
3302
|
return;
|
|
3352
3303
|
}
|
|
@@ -3380,38 +3331,39 @@ const Rn = () => [{
|
|
|
3380
3331
|
thisScriptEl?.remove();
|
|
3381
3332
|
}
|
|
3382
3333
|
return;
|
|
3383
|
-
}`,
|
|
3334
|
+
}`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3384
3335
|
...t,
|
|
3385
3336
|
testVariationId: t.id,
|
|
3386
3337
|
id: e == null ? void 0 : e.id
|
|
3387
|
-
})),
|
|
3338
|
+
})), Bn = ({
|
|
3388
3339
|
canTrack: e,
|
|
3389
3340
|
content: t
|
|
3390
|
-
}) => !(!(Y(t).length > 0) || !e || M()),
|
|
3391
|
-
window.${
|
|
3392
|
-
window.${
|
|
3393
|
-
`,
|
|
3394
|
-
window.${
|
|
3395
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3396
|
-
)`,
|
|
3341
|
+
}) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(z), Vn = () => `
|
|
3342
|
+
window.${je} = ${Rn}
|
|
3343
|
+
window.${Ue} = ${En}
|
|
3344
|
+
`, An = (e, t) => `
|
|
3345
|
+
window.${je}(
|
|
3346
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3347
|
+
)`, Nn = ({
|
|
3397
3348
|
contentId: e,
|
|
3398
3349
|
variationId: t
|
|
3399
|
-
}) => `window.${
|
|
3400
|
-
"${t}", "${e}", ${
|
|
3350
|
+
}) => `window.${Ue}(
|
|
3351
|
+
"${t}", "${e}", ${Me}
|
|
3401
3352
|
)`;
|
|
3402
|
-
function
|
|
3353
|
+
function ce(e) {
|
|
3403
3354
|
return /* @__PURE__ */ s(
|
|
3404
3355
|
"script",
|
|
3405
3356
|
{
|
|
3406
3357
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3407
|
-
"data-id": e.id
|
|
3358
|
+
"data-id": e.id,
|
|
3359
|
+
nonce: e.nonce || ""
|
|
3408
3360
|
}
|
|
3409
3361
|
);
|
|
3410
3362
|
}
|
|
3411
|
-
function
|
|
3363
|
+
function Ce(e) {
|
|
3412
3364
|
return Math.round(e * 1e3) / 1e3;
|
|
3413
3365
|
}
|
|
3414
|
-
const
|
|
3366
|
+
const Wn = (e, t, n = !0) => {
|
|
3415
3367
|
if (!(e instanceof HTMLElement))
|
|
3416
3368
|
return null;
|
|
3417
3369
|
let i = n ? e : e.parentElement;
|
|
@@ -3422,28 +3374,28 @@ const Fn = (e, t, n = !0) => {
|
|
|
3422
3374
|
return i;
|
|
3423
3375
|
} while (i = i.parentElement);
|
|
3424
3376
|
return null;
|
|
3425
|
-
},
|
|
3377
|
+
}, Fn = (e) => Wn(e, (t) => {
|
|
3426
3378
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3427
3379
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3428
|
-
}),
|
|
3380
|
+
}), Te = ({
|
|
3429
3381
|
event: e,
|
|
3430
3382
|
target: t
|
|
3431
3383
|
}) => {
|
|
3432
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r =
|
|
3384
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
|
|
3433
3385
|
return {
|
|
3434
3386
|
x: r,
|
|
3435
3387
|
y: a
|
|
3436
3388
|
};
|
|
3437
|
-
},
|
|
3438
|
-
const t = e.target, n = t &&
|
|
3389
|
+
}, $n = (e) => {
|
|
3390
|
+
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3439
3391
|
return {
|
|
3440
3392
|
targetBuilderElement: i || void 0,
|
|
3441
3393
|
metadata: {
|
|
3442
|
-
targetOffset: t ?
|
|
3394
|
+
targetOffset: t ? Te({
|
|
3443
3395
|
event: e,
|
|
3444
3396
|
target: t
|
|
3445
3397
|
}) : void 0,
|
|
3446
|
-
builderTargetOffset: n ?
|
|
3398
|
+
builderTargetOffset: n ? Te({
|
|
3447
3399
|
event: e,
|
|
3448
3400
|
target: n
|
|
3449
3401
|
}) : void 0,
|
|
@@ -3476,15 +3428,15 @@ font-weight: ${l};
|
|
|
3476
3428
|
`.trim());
|
|
3477
3429
|
}
|
|
3478
3430
|
return o;
|
|
3479
|
-
},
|
|
3431
|
+
}, Ln = ({
|
|
3480
3432
|
customFonts: e
|
|
3481
3433
|
}) => {
|
|
3482
3434
|
var t;
|
|
3483
3435
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3484
|
-
},
|
|
3436
|
+
}, On = ({
|
|
3485
3437
|
cssCode: e,
|
|
3486
3438
|
contentId: t
|
|
3487
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3439
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
|
|
3488
3440
|
.builder-button {
|
|
3489
3441
|
all: unset;
|
|
3490
3442
|
}
|
|
@@ -3501,9 +3453,9 @@ font-weight: ${l};
|
|
|
3501
3453
|
text-align: inherit;
|
|
3502
3454
|
font-family: inherit;
|
|
3503
3455
|
}
|
|
3504
|
-
`,
|
|
3505
|
-
function
|
|
3506
|
-
var V, A, O, S, w,
|
|
3456
|
+
`, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
|
|
3457
|
+
function Hn(e) {
|
|
3458
|
+
var V, A, O, S, w, N, b;
|
|
3507
3459
|
const t = ee(null);
|
|
3508
3460
|
function n(h) {
|
|
3509
3461
|
var v, k;
|
|
@@ -3517,7 +3469,7 @@ function qn(e) {
|
|
|
3517
3469
|
}));
|
|
3518
3470
|
}
|
|
3519
3471
|
function i(h) {
|
|
3520
|
-
var v, k, T,
|
|
3472
|
+
var v, k, T, W, j;
|
|
3521
3473
|
const y = {
|
|
3522
3474
|
...e.builderContextSignal.content,
|
|
3523
3475
|
...h,
|
|
@@ -3528,7 +3480,7 @@ function qn(e) {
|
|
|
3528
3480
|
meta: {
|
|
3529
3481
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3530
3482
|
...h == null ? void 0 : h.meta,
|
|
3531
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (
|
|
3483
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3532
3484
|
}
|
|
3533
3485
|
};
|
|
3534
3486
|
e.setBuilderContextSignal((F) => ({
|
|
@@ -3546,7 +3498,7 @@ function qn(e) {
|
|
|
3546
3498
|
() => e.contentWrapper || "div"
|
|
3547
3499
|
);
|
|
3548
3500
|
function l(h) {
|
|
3549
|
-
return
|
|
3501
|
+
return Qe({
|
|
3550
3502
|
model: e.model,
|
|
3551
3503
|
trustedHosts: e.trustedHosts,
|
|
3552
3504
|
callbacks: {
|
|
@@ -3560,7 +3512,7 @@ function qn(e) {
|
|
|
3560
3512
|
});
|
|
3561
3513
|
},
|
|
3562
3514
|
animation: (y) => {
|
|
3563
|
-
|
|
3515
|
+
We(y);
|
|
3564
3516
|
},
|
|
3565
3517
|
contentUpdate: (y) => {
|
|
3566
3518
|
i(y);
|
|
@@ -3583,35 +3535,35 @@ function qn(e) {
|
|
|
3583
3535
|
enableCache: !1
|
|
3584
3536
|
});
|
|
3585
3537
|
}
|
|
3586
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3538
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3587
3539
|
function I(h) {
|
|
3588
3540
|
var y, v;
|
|
3589
3541
|
if (e.builderContextSignal.content) {
|
|
3590
3542
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3591
|
-
|
|
3543
|
+
he({
|
|
3592
3544
|
type: "click",
|
|
3593
3545
|
canTrack: Q(e.canTrack),
|
|
3594
3546
|
contentId: T,
|
|
3595
3547
|
apiKey: e.apiKey,
|
|
3596
3548
|
variationId: k !== T ? k : void 0,
|
|
3597
|
-
|
|
3598
|
-
unique: !
|
|
3549
|
+
...$n(h),
|
|
3550
|
+
unique: !g
|
|
3599
3551
|
});
|
|
3600
3552
|
}
|
|
3601
|
-
|
|
3553
|
+
g || p(!0);
|
|
3602
3554
|
}
|
|
3603
3555
|
function x() {
|
|
3604
3556
|
var y, v, k;
|
|
3605
3557
|
const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3606
|
-
Object.entries(h).forEach(([T,
|
|
3607
|
-
if (!
|
|
3558
|
+
Object.entries(h).forEach(([T, W]) => {
|
|
3559
|
+
if (!W || d[T] || u[T] && !$())
|
|
3608
3560
|
return;
|
|
3609
3561
|
d[T] = !0;
|
|
3610
|
-
const j =
|
|
3562
|
+
const j = W.replace(
|
|
3611
3563
|
/{{([^}]+)}}/g,
|
|
3612
|
-
(F,
|
|
3564
|
+
(F, He) => String(
|
|
3613
3565
|
K({
|
|
3614
|
-
code:
|
|
3566
|
+
code: He,
|
|
3615
3567
|
context: e.context || {},
|
|
3616
3568
|
localState: void 0,
|
|
3617
3569
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3620,24 +3572,24 @@ function qn(e) {
|
|
|
3620
3572
|
})
|
|
3621
3573
|
)
|
|
3622
3574
|
);
|
|
3623
|
-
|
|
3575
|
+
Xe(j).then((F) => F.json()).then((F) => {
|
|
3624
3576
|
n({
|
|
3625
3577
|
[T]: F
|
|
3626
3578
|
}), u[T] = !0;
|
|
3627
3579
|
}).catch((F) => {
|
|
3628
|
-
console.error("error fetching dynamic data",
|
|
3580
|
+
console.error("error fetching dynamic data", W, F);
|
|
3629
3581
|
}).finally(() => {
|
|
3630
3582
|
d[T] = !1;
|
|
3631
3583
|
});
|
|
3632
3584
|
});
|
|
3633
3585
|
}
|
|
3634
|
-
function
|
|
3586
|
+
function E() {
|
|
3635
3587
|
$() && window.dispatchEvent(
|
|
3636
3588
|
new CustomEvent(
|
|
3637
3589
|
"builder:component:stateChange",
|
|
3638
3590
|
{
|
|
3639
3591
|
detail: {
|
|
3640
|
-
state:
|
|
3592
|
+
state: de(e.builderContextSignal.rootState),
|
|
3641
3593
|
ref: {
|
|
3642
3594
|
name: e.model
|
|
3643
3595
|
}
|
|
@@ -3646,10 +3598,10 @@ function qn(e) {
|
|
|
3646
3598
|
)
|
|
3647
3599
|
);
|
|
3648
3600
|
}
|
|
3649
|
-
return
|
|
3601
|
+
return B(() => {
|
|
3650
3602
|
var h, y;
|
|
3651
3603
|
if (M()) {
|
|
3652
|
-
if ($() && (window.addEventListener("message", l),
|
|
3604
|
+
if ($() && (window.addEventListener("message", l), _e(), Je({
|
|
3653
3605
|
...e.locale ? {
|
|
3654
3606
|
locale: e.locale
|
|
3655
3607
|
} : {},
|
|
@@ -3662,27 +3614,27 @@ function qn(e) {
|
|
|
3662
3614
|
}), Object.values(
|
|
3663
3615
|
e.builderContextSignal.componentInfos
|
|
3664
3616
|
).forEach((k) => {
|
|
3665
|
-
var
|
|
3666
|
-
const T =
|
|
3667
|
-
(
|
|
3617
|
+
var W;
|
|
3618
|
+
const T = Ye(k);
|
|
3619
|
+
(W = window.parent) == null || W.postMessage(T, "*");
|
|
3668
3620
|
}), window.addEventListener(
|
|
3669
3621
|
"builder:component:stateChangeListenerActivated",
|
|
3670
|
-
|
|
3622
|
+
E
|
|
3671
3623
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3672
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
3673
|
-
|
|
3624
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
|
|
3625
|
+
he({
|
|
3674
3626
|
type: "impression",
|
|
3675
3627
|
canTrack: !0,
|
|
3676
3628
|
contentId: T,
|
|
3677
|
-
apiKey:
|
|
3629
|
+
apiKey: W,
|
|
3678
3630
|
variationId: k !== T ? k : void 0
|
|
3679
3631
|
});
|
|
3680
3632
|
}
|
|
3681
|
-
if (
|
|
3682
|
-
const k = new URL(location.href).searchParams, T = k.get("builder.preview"),
|
|
3633
|
+
if (Ge() && !$()) {
|
|
3634
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
|
|
3683
3635
|
`builder.overrides.${T}`
|
|
3684
3636
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3685
|
-
T === e.model && j === e.apiKey && (!e.content ||
|
|
3637
|
+
T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
|
|
3686
3638
|
model: e.model,
|
|
3687
3639
|
apiKey: e.apiKey,
|
|
3688
3640
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3691,30 +3643,30 @@ function qn(e) {
|
|
|
3691
3643
|
});
|
|
3692
3644
|
}
|
|
3693
3645
|
}
|
|
3694
|
-
}, []),
|
|
3646
|
+
}, []), B(() => {
|
|
3695
3647
|
e.apiKey || Z.error(
|
|
3696
3648
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3697
|
-
), c(), x(),
|
|
3698
|
-
}, []),
|
|
3649
|
+
), c(), x(), E();
|
|
3650
|
+
}, []), B(() => {
|
|
3699
3651
|
e.content && i(e.content);
|
|
3700
|
-
}, [e.content]),
|
|
3652
|
+
}, [e.content]), B(() => {
|
|
3701
3653
|
c();
|
|
3702
|
-
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]),
|
|
3654
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3703
3655
|
x();
|
|
3704
|
-
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]),
|
|
3705
|
-
|
|
3706
|
-
}, [e.builderContextSignal.rootState]),
|
|
3656
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
|
|
3657
|
+
E();
|
|
3658
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3707
3659
|
e.data && n(e.data);
|
|
3708
|
-
}, [e.data]),
|
|
3660
|
+
}, [e.data]), B(() => {
|
|
3709
3661
|
e.locale && n({
|
|
3710
3662
|
locale: e.locale
|
|
3711
3663
|
});
|
|
3712
|
-
}, [e.locale]),
|
|
3664
|
+
}, [e.locale]), B(() => () => {
|
|
3713
3665
|
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3714
3666
|
"builder:component:stateChangeListenerActivated",
|
|
3715
|
-
|
|
3667
|
+
E
|
|
3716
3668
|
));
|
|
3717
|
-
}, []), /* @__PURE__ */ s(
|
|
3669
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3718
3670
|
r,
|
|
3719
3671
|
{
|
|
3720
3672
|
ref: t,
|
|
@@ -3723,29 +3675,36 @@ function qn(e) {
|
|
|
3723
3675
|
"builder-model": e.model,
|
|
3724
3676
|
...o(),
|
|
3725
3677
|
...e.contentWrapperProps,
|
|
3726
|
-
className:
|
|
3727
|
-
((
|
|
3678
|
+
className: Mn(
|
|
3679
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3728
3680
|
),
|
|
3729
3681
|
children: e.children
|
|
3730
3682
|
}
|
|
3731
3683
|
) : null });
|
|
3732
3684
|
}
|
|
3733
|
-
function
|
|
3685
|
+
function qn(e) {
|
|
3734
3686
|
const [t, n] = C(
|
|
3735
3687
|
() => `
|
|
3736
|
-
${
|
|
3688
|
+
${On({
|
|
3737
3689
|
cssCode: e.cssCode,
|
|
3738
3690
|
contentId: e.contentId
|
|
3739
3691
|
})}
|
|
3740
|
-
${
|
|
3692
|
+
${Ln({
|
|
3741
3693
|
customFonts: e.customFonts
|
|
3742
3694
|
})}
|
|
3743
|
-
${
|
|
3695
|
+
${Un(e.isNestedRender)}
|
|
3744
3696
|
`.trim()
|
|
3745
3697
|
);
|
|
3746
|
-
return /* @__PURE__ */ s(
|
|
3698
|
+
return /* @__PURE__ */ s(
|
|
3699
|
+
ne,
|
|
3700
|
+
{
|
|
3701
|
+
id: "builderio-content",
|
|
3702
|
+
styles: t,
|
|
3703
|
+
nonce: e.nonce
|
|
3704
|
+
}
|
|
3705
|
+
);
|
|
3747
3706
|
}
|
|
3748
|
-
const
|
|
3707
|
+
const Kn = ({
|
|
3749
3708
|
content: e,
|
|
3750
3709
|
data: t,
|
|
3751
3710
|
locale: n
|
|
@@ -3762,7 +3721,7 @@ const zn = ({
|
|
|
3762
3721
|
locale: n
|
|
3763
3722
|
} : {}
|
|
3764
3723
|
};
|
|
3765
|
-
},
|
|
3724
|
+
}, zn = ({
|
|
3766
3725
|
content: e,
|
|
3767
3726
|
data: t
|
|
3768
3727
|
}) => e ? {
|
|
@@ -3773,12 +3732,12 @@ const zn = ({
|
|
|
3773
3732
|
},
|
|
3774
3733
|
meta: e == null ? void 0 : e.meta
|
|
3775
3734
|
} : void 0;
|
|
3776
|
-
function
|
|
3777
|
-
var c, u, f, d, m,
|
|
3735
|
+
function Ie(e) {
|
|
3736
|
+
var c, u, f, d, m, g, p;
|
|
3778
3737
|
const [t, n] = C(
|
|
3779
3738
|
() => {
|
|
3780
3739
|
var I, x;
|
|
3781
|
-
return
|
|
3740
|
+
return Nn({
|
|
3782
3741
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3783
3742
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3784
3743
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3794,25 +3753,25 @@ function we(e) {
|
|
|
3794
3753
|
}
|
|
3795
3754
|
const [o, r] = C(
|
|
3796
3755
|
() => [
|
|
3797
|
-
...
|
|
3756
|
+
...ke(),
|
|
3798
3757
|
...e.customComponents || []
|
|
3799
3758
|
].reduce(
|
|
3800
|
-
(I, { component: x, ...
|
|
3759
|
+
(I, { component: x, ...E }) => ({
|
|
3801
3760
|
...I,
|
|
3802
|
-
[
|
|
3761
|
+
[E.name]: {
|
|
3803
3762
|
component: x,
|
|
3804
|
-
...ge(
|
|
3763
|
+
...ge(E)
|
|
3805
3764
|
}
|
|
3806
3765
|
}),
|
|
3807
3766
|
{}
|
|
3808
3767
|
)
|
|
3809
3768
|
), [a, l] = C(() => ({
|
|
3810
|
-
content:
|
|
3769
|
+
content: zn({
|
|
3811
3770
|
content: e.content,
|
|
3812
3771
|
data: e.data
|
|
3813
3772
|
}),
|
|
3814
3773
|
localState: void 0,
|
|
3815
|
-
rootState:
|
|
3774
|
+
rootState: Kn({
|
|
3816
3775
|
content: e.content,
|
|
3817
3776
|
data: e.data,
|
|
3818
3777
|
locale: e.locale
|
|
@@ -3823,28 +3782,30 @@ function we(e) {
|
|
|
3823
3782
|
apiKey: e.apiKey,
|
|
3824
3783
|
apiVersion: e.apiVersion,
|
|
3825
3784
|
componentInfos: [
|
|
3826
|
-
...
|
|
3785
|
+
...ke(),
|
|
3827
3786
|
...e.customComponents || []
|
|
3828
3787
|
].reduce(
|
|
3829
|
-
(I, { component: x, ...
|
|
3788
|
+
(I, { component: x, ...E }) => ({
|
|
3830
3789
|
...I,
|
|
3831
|
-
[
|
|
3790
|
+
[E.name]: ge(E)
|
|
3832
3791
|
}),
|
|
3833
3792
|
{}
|
|
3834
3793
|
),
|
|
3835
3794
|
inheritedStyles: {},
|
|
3836
3795
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
3837
|
-
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3796
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3797
|
+
nonce: e.nonce || ""
|
|
3838
3798
|
}));
|
|
3839
3799
|
return /* @__PURE__ */ s(
|
|
3840
|
-
|
|
3800
|
+
Be.Provider,
|
|
3841
3801
|
{
|
|
3842
3802
|
value: {
|
|
3843
3803
|
registeredComponents: o
|
|
3844
3804
|
},
|
|
3845
|
-
children: /* @__PURE__ */
|
|
3846
|
-
|
|
3805
|
+
children: /* @__PURE__ */ P(
|
|
3806
|
+
Hn,
|
|
3847
3807
|
{
|
|
3808
|
+
nonce: e.nonce,
|
|
3848
3809
|
content: e.content,
|
|
3849
3810
|
data: e.data,
|
|
3850
3811
|
model: e.model,
|
|
@@ -3861,15 +3822,17 @@ function we(e) {
|
|
|
3861
3822
|
setBuilderContextSignal: l,
|
|
3862
3823
|
children: [
|
|
3863
3824
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3864
|
-
|
|
3825
|
+
ce,
|
|
3865
3826
|
{
|
|
3866
3827
|
id: "builderio-variant-visibility",
|
|
3867
|
-
scriptStr: t
|
|
3828
|
+
scriptStr: t,
|
|
3829
|
+
nonce: e.nonce || ""
|
|
3868
3830
|
}
|
|
3869
3831
|
) : null,
|
|
3870
3832
|
/* @__PURE__ */ s(
|
|
3871
|
-
|
|
3833
|
+
qn,
|
|
3872
3834
|
{
|
|
3835
|
+
nonce: e.nonce || "",
|
|
3873
3836
|
isNestedRender: e.isNestedRender,
|
|
3874
3837
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3875
3838
|
cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
|
|
@@ -3877,9 +3840,9 @@ function we(e) {
|
|
|
3877
3840
|
}
|
|
3878
3841
|
),
|
|
3879
3842
|
/* @__PURE__ */ s(
|
|
3880
|
-
|
|
3843
|
+
D,
|
|
3881
3844
|
{
|
|
3882
|
-
blocks: (p = (
|
|
3845
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3883
3846
|
context: a,
|
|
3884
3847
|
registeredComponents: o,
|
|
3885
3848
|
linkComponent: e.linkComponent
|
|
@@ -3891,17 +3854,17 @@ function we(e) {
|
|
|
3891
3854
|
}
|
|
3892
3855
|
);
|
|
3893
3856
|
}
|
|
3894
|
-
function
|
|
3857
|
+
function _n(e) {
|
|
3895
3858
|
var a;
|
|
3896
3859
|
const [t, n] = C(
|
|
3897
|
-
() =>
|
|
3860
|
+
() => Bn({
|
|
3898
3861
|
canTrack: Q(e.canTrack),
|
|
3899
3862
|
content: e.content
|
|
3900
3863
|
})
|
|
3901
3864
|
);
|
|
3902
3865
|
function i() {
|
|
3903
3866
|
var l;
|
|
3904
|
-
return
|
|
3867
|
+
return An(
|
|
3905
3868
|
Y(e.content).map((c) => ({
|
|
3906
3869
|
id: c.testVariationId,
|
|
3907
3870
|
testRatio: c.testRatio
|
|
@@ -3917,40 +3880,44 @@ function Jn(e) {
|
|
|
3917
3880
|
return t ? {
|
|
3918
3881
|
...e.content,
|
|
3919
3882
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3920
|
-
} :
|
|
3883
|
+
} : Ze({
|
|
3921
3884
|
item: e.content,
|
|
3922
3885
|
canTrack: Q(e.canTrack)
|
|
3923
3886
|
});
|
|
3924
3887
|
}
|
|
3925
|
-
return
|
|
3926
|
-
}, []),
|
|
3927
|
-
}), /* @__PURE__ */
|
|
3888
|
+
return B(() => {
|
|
3889
|
+
}, []), B(() => {
|
|
3890
|
+
}), /* @__PURE__ */ P(R, { children: [
|
|
3928
3891
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
|
|
3929
|
-
|
|
3892
|
+
ce,
|
|
3930
3893
|
{
|
|
3931
3894
|
id: "builderio-init-variants-fns",
|
|
3932
|
-
scriptStr:
|
|
3895
|
+
scriptStr: Vn(),
|
|
3896
|
+
nonce: e.nonce || ""
|
|
3933
3897
|
}
|
|
3934
3898
|
) : null,
|
|
3935
|
-
t ? /* @__PURE__ */
|
|
3899
|
+
t ? /* @__PURE__ */ P(R, { children: [
|
|
3936
3900
|
/* @__PURE__ */ s(
|
|
3937
|
-
|
|
3901
|
+
ne,
|
|
3938
3902
|
{
|
|
3939
3903
|
id: "builderio-variants",
|
|
3940
|
-
styles: o()
|
|
3904
|
+
styles: o(),
|
|
3905
|
+
nonce: e.nonce || ""
|
|
3941
3906
|
}
|
|
3942
3907
|
),
|
|
3943
3908
|
/* @__PURE__ */ s(
|
|
3944
|
-
|
|
3909
|
+
ce,
|
|
3945
3910
|
{
|
|
3946
3911
|
id: "builderio-variants-visibility",
|
|
3947
|
-
scriptStr: i()
|
|
3912
|
+
scriptStr: i(),
|
|
3913
|
+
nonce: e.nonce || ""
|
|
3948
3914
|
}
|
|
3949
3915
|
),
|
|
3950
3916
|
(a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3951
|
-
|
|
3917
|
+
Ie,
|
|
3952
3918
|
{
|
|
3953
3919
|
isNestedRender: e.isNestedRender,
|
|
3920
|
+
nonce: e.nonce,
|
|
3954
3921
|
content: l,
|
|
3955
3922
|
showContent: !1,
|
|
3956
3923
|
model: e.model,
|
|
@@ -3974,8 +3941,9 @@ function Jn(e) {
|
|
|
3974
3941
|
))
|
|
3975
3942
|
] }) : null,
|
|
3976
3943
|
/* @__PURE__ */ s(
|
|
3977
|
-
|
|
3944
|
+
Ie,
|
|
3978
3945
|
{
|
|
3946
|
+
nonce: e.nonce,
|
|
3979
3947
|
isNestedRender: e.isNestedRender,
|
|
3980
3948
|
content: r(),
|
|
3981
3949
|
showContent: !0,
|
|
@@ -3999,13 +3967,13 @@ function Jn(e) {
|
|
|
3999
3967
|
)
|
|
4000
3968
|
] });
|
|
4001
3969
|
}
|
|
4002
|
-
const
|
|
3970
|
+
const Jn = async ({
|
|
4003
3971
|
builderContextValue: e,
|
|
4004
3972
|
symbol: t
|
|
4005
3973
|
}) => {
|
|
4006
3974
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4007
3975
|
(e != null && e.apiKey))
|
|
4008
|
-
return
|
|
3976
|
+
return we({
|
|
4009
3977
|
model: t.model,
|
|
4010
3978
|
apiKey: e.apiKey,
|
|
4011
3979
|
apiVersion: e.apiVersion,
|
|
@@ -4018,7 +3986,7 @@ const Yn = async ({
|
|
|
4018
3986
|
Z.error("Could not fetch symbol content: ", n);
|
|
4019
3987
|
});
|
|
4020
3988
|
};
|
|
4021
|
-
function
|
|
3989
|
+
function Yn(e) {
|
|
4022
3990
|
var l, c, u, f;
|
|
4023
3991
|
function t() {
|
|
4024
3992
|
return "div";
|
|
@@ -4040,19 +4008,20 @@ function Gn(e) {
|
|
|
4040
4008
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4041
4009
|
});
|
|
4042
4010
|
function a() {
|
|
4043
|
-
o ||
|
|
4011
|
+
o || Jn({
|
|
4044
4012
|
symbol: e.symbol,
|
|
4045
4013
|
builderContextValue: e.builderContext
|
|
4046
4014
|
}).then((d) => {
|
|
4047
4015
|
d && r(d);
|
|
4048
4016
|
});
|
|
4049
4017
|
}
|
|
4050
|
-
return
|
|
4051
|
-
}, []),
|
|
4018
|
+
return B(() => {
|
|
4019
|
+
}, []), B(() => {
|
|
4052
4020
|
a();
|
|
4053
4021
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4054
|
-
|
|
4022
|
+
_n,
|
|
4055
4023
|
{
|
|
4024
|
+
nonce: e.builderContext.nonce,
|
|
4056
4025
|
isNestedRender: !0,
|
|
4057
4026
|
apiVersion: e.builderContext.apiVersion,
|
|
4058
4027
|
apiKey: e.builderContext.apiKey,
|
|
@@ -4076,15 +4045,15 @@ function Gn(e) {
|
|
|
4076
4045
|
) });
|
|
4077
4046
|
}
|
|
4078
4047
|
export {
|
|
4079
|
-
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4048
|
+
D as Blocks,
|
|
4049
|
+
me as BuilderContext,
|
|
4050
|
+
nt as Button,
|
|
4051
|
+
$t as Columns,
|
|
4052
|
+
_n as Content,
|
|
4084
4053
|
Dt as Fragment,
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4054
|
+
jt as Image,
|
|
4055
|
+
Ut as Section,
|
|
4056
|
+
Yn as Symbol,
|
|
4057
|
+
tn as Text,
|
|
4058
|
+
In as Video
|
|
4090
4059
|
};
|