@builder.io/sdk-react 1.0.36 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +22 -22
- package/lib/browser/blocks-exports.mjs +627 -504
- 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-4168b816.cjs → server-entry-4fb4a8b5.cjs} +1 -1
- package/lib/browser/{server-entry-b8f6be3b.js → server-entry-a2fe3a55.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-18fbb30e.js → accordion-a25dee70.js} +1 -1
- package/lib/edge/{accordion-e40979bc.cjs → accordion-d5929c1e.cjs} +1 -1
- package/lib/edge/{blocks-9b142e90.js → blocks-317ff1a5.js} +679 -671
- package/lib/edge/{blocks-48a9ac8c.cjs → blocks-5cb24de4.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-be9403e7.js → button-2f5bf5cf.js} +2 -2
- package/lib/edge/{button-c2ff97e9.cjs → button-b06330e4.cjs} +1 -1
- package/lib/edge/{columns-920ca800.js → columns-69453374.js} +3 -3
- package/lib/edge/{columns-118e1fc1.cjs → columns-ef105550.cjs} +1 -1
- package/lib/edge/{content-variants-ed1f803b.js → content-variants-336e3b7f.js} +318 -203
- package/lib/edge/content-variants-f2620a07.cjs +134 -0
- package/lib/edge/{form-cbcf22d5.js → form-30431d39.js} +3 -3
- package/lib/edge/{form-a9271b51.cjs → form-55ba7324.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-af6b922f.cjs → get-class-prop-name-5da28706.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-90c8ac6c.js → get-class-prop-name-8d9f271c.js} +1 -1
- package/lib/edge/{img-1f1b4871.js → img-02bb6d39.js} +1 -1
- package/lib/edge/{img-2deeb066.cjs → img-a85aa1f8.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-4b3e5f88.cjs → input-448b664a.cjs} +1 -1
- package/lib/edge/{input-514915f8.js → input-d7e84d5c.js} +1 -1
- package/lib/edge/{select-3925e227.js → select-744ccf82.js} +1 -1
- package/lib/edge/{select-82d8052d.cjs → select-7e98c1fc.cjs} +1 -1
- package/lib/edge/{server-entry-57fedeba.js → server-entry-7003c754.js} +1 -1
- package/lib/edge/{server-entry-a00fcff8.cjs → server-entry-f52f597d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-aa7280f8.js → slot-6ddfa828.js} +3 -3
- package/lib/edge/{slot-21fe373f.cjs → slot-fb11eb23.cjs} +1 -1
- package/lib/edge/{symbol-ac48d2ec.js → symbol-ced9c879.js} +2 -2
- package/lib/edge/{symbol-a0ab57ea.cjs → symbol-d82ac04c.cjs} +1 -1
- package/lib/edge/{tabs-df436d1e.cjs → tabs-93843650.cjs} +1 -1
- package/lib/edge/{tabs-9b5261d0.js → tabs-ffcc16e4.js} +3 -3
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +616 -493
- 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-1b85663b.js → node-runtime-13876a87.js} +1 -1
- package/lib/node/{node-runtime-d59eb154.cjs → node-runtime-b5d88fa0.cjs} +1 -1
- package/lib/node/{server-entry-8081c6b9.js → server-entry-9942a35a.js} +1 -1
- package/lib/node/{server-entry-dc1afebd.cjs → server-entry-d0ae23af.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/components/content-variants/inlined-fns.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/components.d.ts +31 -0
- package/lib/edge/content-variants-1eb4aebc.cjs +0 -134
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var Ke = Object.defineProperty;
|
|
3
|
+
var qe = (e, t, n) => t in e ? Ke(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var oe = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as E } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as ue, isEditing as F, registerInsertMenu as _e, setupBrowserForEditing as ze, createRegisterComponentMessage as Je, getDefaultCanTrack as Q, _track as be, isPreviewing as Ye, fetchOneEntry as we, createEditorListener as Ge, fetch as Qe, serializeComponentInfo as ge, handleABTestingSync as Xe } from "./server-entry-9942a35a.js";
|
|
7
|
+
import { createContext as Re, useState as C, useEffect as P, useContext as pe, useRef as ee, createElement as Be } from "react";
|
|
8
|
+
import { getFunctionArguments as Ze, runInNode as et, parseCode as tt, getBuilderGlobals as nt, set as Pe } from "./node-runtime-13876a87.js";
|
|
9
|
+
const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ot = (e) => typeof e == "string" && it.has(e.toLowerCase());
|
|
10
|
+
function me(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: ot(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
13
|
+
const H = () => {
|
|
14
|
+
switch (q) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -24,11 +24,11 @@ const K = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function at(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function ot(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
me,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function ot(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const fe = Re({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -61,15 +61,15 @@ const me = we({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Ee = Re({ registeredComponents: {} });
|
|
65
|
+
function rt(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const lt = ({
|
|
73
73
|
code: e,
|
|
74
74
|
builder: t,
|
|
75
75
|
context: n,
|
|
@@ -78,11 +78,11 @@ const rt = ({
|
|
|
78
78
|
rootSetState: l,
|
|
79
79
|
rootState: a
|
|
80
80
|
}) => {
|
|
81
|
-
const r =
|
|
81
|
+
const r = Ze({
|
|
82
82
|
builder: t,
|
|
83
83
|
context: n,
|
|
84
84
|
event: i,
|
|
85
|
-
state:
|
|
85
|
+
state: Ve({
|
|
86
86
|
rootState: a,
|
|
87
87
|
localState: o,
|
|
88
88
|
rootSetState: l
|
|
@@ -90,7 +90,7 @@ const rt = ({
|
|
|
90
90
|
});
|
|
91
91
|
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function Ve({
|
|
94
94
|
rootState: e,
|
|
95
95
|
localState: t,
|
|
96
96
|
rootSetState: n
|
|
@@ -100,7 +100,7 @@ function Be({
|
|
|
100
100
|
if (t && o in t)
|
|
101
101
|
return t[o];
|
|
102
102
|
const l = i[o];
|
|
103
|
-
return typeof l == "object" && l !== null ?
|
|
103
|
+
return typeof l == "object" && l !== null ? Ve({
|
|
104
104
|
rootState: l,
|
|
105
105
|
localState: void 0,
|
|
106
106
|
rootSetState: n ? (a) => {
|
|
@@ -115,17 +115,17 @@ function Be({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function st() {
|
|
119
119
|
var e;
|
|
120
120
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const ct = () => {
|
|
123
123
|
var i;
|
|
124
|
-
if (!
|
|
124
|
+
if (!st())
|
|
125
125
|
return !1;
|
|
126
126
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
127
127
|
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;
|
|
128
|
-
},
|
|
128
|
+
}, dt = (e) => G() || ct() ? lt(e) : et(e), D = class D {
|
|
129
129
|
static getCacheKey(t) {
|
|
130
130
|
return JSON.stringify({
|
|
131
131
|
...t,
|
|
@@ -135,17 +135,17 @@ const st = () => {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
static getCachedValue(t) {
|
|
138
|
-
return
|
|
138
|
+
return D.cache.get(t);
|
|
139
139
|
}
|
|
140
140
|
static setCachedValue(t, n) {
|
|
141
|
-
|
|
141
|
+
D.cache.size > 20 && D.cache.delete(D.cache.keys().next().value), D.cache.set(t, {
|
|
142
142
|
value: n
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
function
|
|
146
|
+
oe(D, "cacheLimit", 20), oe(D, "cache", /* @__PURE__ */ new Map());
|
|
147
|
+
let U = D;
|
|
148
|
+
function K({
|
|
149
149
|
code: e,
|
|
150
150
|
context: t,
|
|
151
151
|
localState: n,
|
|
@@ -158,10 +158,10 @@ function q({
|
|
|
158
158
|
if (e === "")
|
|
159
159
|
return;
|
|
160
160
|
const c = {
|
|
161
|
-
code:
|
|
161
|
+
code: tt(e, {
|
|
162
162
|
isExpression: a
|
|
163
163
|
}),
|
|
164
|
-
builder:
|
|
164
|
+
builder: nt(),
|
|
165
165
|
context: t,
|
|
166
166
|
event: l,
|
|
167
167
|
rootSetState: o,
|
|
@@ -169,15 +169,15 @@ function q({
|
|
|
169
169
|
localState: n
|
|
170
170
|
};
|
|
171
171
|
if (r) {
|
|
172
|
-
const u =
|
|
172
|
+
const u = U.getCacheKey(c), f = U.getCachedValue(u);
|
|
173
173
|
if (f)
|
|
174
174
|
return f.value;
|
|
175
175
|
}
|
|
176
176
|
try {
|
|
177
|
-
const u =
|
|
177
|
+
const u = dt(c);
|
|
178
178
|
if (r) {
|
|
179
|
-
const f =
|
|
180
|
-
|
|
179
|
+
const f = U.getCacheKey(c);
|
|
180
|
+
U.setCachedValue(f, u);
|
|
181
181
|
}
|
|
182
182
|
return u;
|
|
183
183
|
} catch (u) {
|
|
@@ -187,7 +187,7 @@ function q({
|
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const ut = ({
|
|
191
191
|
block: e,
|
|
192
192
|
context: t,
|
|
193
193
|
localState: n,
|
|
@@ -196,7 +196,7 @@ const dt = ({
|
|
|
196
196
|
}) => {
|
|
197
197
|
if (!e.bindings)
|
|
198
198
|
return e;
|
|
199
|
-
const l =
|
|
199
|
+
const l = ue(e), a = {
|
|
200
200
|
...l,
|
|
201
201
|
properties: {
|
|
202
202
|
...l.properties
|
|
@@ -206,7 +206,7 @@ const dt = ({
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
for (const r in e.bindings) {
|
|
209
|
-
const c = e.bindings[r], u =
|
|
209
|
+
const c = e.bindings[r], u = K({
|
|
210
210
|
code: c,
|
|
211
211
|
localState: n,
|
|
212
212
|
rootState: i,
|
|
@@ -214,7 +214,7 @@ const dt = ({
|
|
|
214
214
|
context: t,
|
|
215
215
|
enableCache: !0
|
|
216
216
|
});
|
|
217
|
-
|
|
217
|
+
Pe(a, r, u);
|
|
218
218
|
}
|
|
219
219
|
return a;
|
|
220
220
|
};
|
|
@@ -227,7 +227,7 @@ function X({
|
|
|
227
227
|
rootSetState: l
|
|
228
228
|
}) {
|
|
229
229
|
const a = e;
|
|
230
|
-
return n ?
|
|
230
|
+
return n ? ut({
|
|
231
231
|
block: a,
|
|
232
232
|
localState: i,
|
|
233
233
|
rootState: o,
|
|
@@ -236,7 +236,7 @@ function X({
|
|
|
236
236
|
}) : a;
|
|
237
237
|
}
|
|
238
238
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
239
|
-
function
|
|
239
|
+
function mt(e, t, n = {}) {
|
|
240
240
|
let i, o, l, a = null, r = 0;
|
|
241
241
|
const c = function() {
|
|
242
242
|
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
@@ -248,7 +248,7 @@ function ut(e, t, n = {}) {
|
|
|
248
248
|
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function M(e, ...t) {
|
|
252
252
|
const n = Object(e);
|
|
253
253
|
for (let i = 1; i < arguments.length; i++) {
|
|
254
254
|
const o = arguments[i];
|
|
@@ -258,64 +258,64 @@ function H(e, ...t) {
|
|
|
258
258
|
}
|
|
259
259
|
return n;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function ft(e) {
|
|
262
262
|
for (const t of e)
|
|
263
263
|
switch (t.trigger) {
|
|
264
264
|
case "pageLoad":
|
|
265
|
-
|
|
265
|
+
We(t);
|
|
266
266
|
break;
|
|
267
267
|
case "scrollInView":
|
|
268
|
-
|
|
268
|
+
bt(t);
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ae(e) {
|
|
273
273
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const n =
|
|
275
|
+
function Ne(e, t) {
|
|
276
|
+
const n = ht(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
277
277
|
for (const r of a)
|
|
278
278
|
for (const c of n)
|
|
279
279
|
c in r || (r[c] = i[c]);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ht(e) {
|
|
282
282
|
const t = [];
|
|
283
283
|
for (const n of e.steps)
|
|
284
284
|
for (const i in n.styles)
|
|
285
285
|
t.indexOf(i) === -1 && t.push(i);
|
|
286
286
|
return t;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function We(e) {
|
|
289
289
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
290
290
|
if (!t.length) {
|
|
291
|
-
|
|
291
|
+
Ae(e.elementId || e.id || "");
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
Array.from(t).forEach((n) => {
|
|
295
|
-
|
|
296
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
295
|
+
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
|
|
296
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
|
|
297
297
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
298
298
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function bt(e) {
|
|
303
303
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
304
304
|
if (!t.length) {
|
|
305
|
-
|
|
305
|
+
Ae(e.elementId || e.id || "");
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
Array.from(t).forEach((n) => {
|
|
309
|
-
|
|
309
|
+
Ne(e, n);
|
|
310
310
|
let i = !1, o = !1;
|
|
311
311
|
function l() {
|
|
312
312
|
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
313
|
-
|
|
313
|
+
M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
314
314
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
315
315
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
316
|
-
})) : e.repeat && i && !o && !r(n) && (i = !1,
|
|
316
|
+
})) : e.repeat && i && !o && !r(n) && (i = !1, M(n.style, e.steps[0].styles));
|
|
317
317
|
}
|
|
318
|
-
const a =
|
|
318
|
+
const a = mt(l, 200, {
|
|
319
319
|
leading: !1
|
|
320
320
|
});
|
|
321
321
|
function r(f) {
|
|
@@ -324,7 +324,7 @@ function ht(e) {
|
|
|
324
324
|
}
|
|
325
325
|
const c = e.steps[0].styles;
|
|
326
326
|
function u() {
|
|
327
|
-
|
|
327
|
+
M(n.style, c);
|
|
328
328
|
}
|
|
329
329
|
u(), setTimeout(() => {
|
|
330
330
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -334,10 +334,10 @@ function ht(e) {
|
|
|
334
334
|
}), l();
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
338
338
|
if (typeof i == "string")
|
|
339
339
|
return `${te(n)}: ${i};`;
|
|
340
|
-
}).filter(Y), gt = (e) =>
|
|
340
|
+
}).filter(Y), gt = (e) => $e(e).join(`
|
|
341
341
|
`), z = ({
|
|
342
342
|
mediaQuery: e,
|
|
343
343
|
className: t,
|
|
@@ -350,26 +350,26 @@ const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
350
350
|
${i}
|
|
351
351
|
}` : i;
|
|
352
352
|
};
|
|
353
|
-
function
|
|
353
|
+
function pt({
|
|
354
354
|
style: e
|
|
355
355
|
}) {
|
|
356
356
|
return e;
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const yt = ({
|
|
359
359
|
block: e,
|
|
360
360
|
context: t
|
|
361
|
-
}) =>
|
|
361
|
+
}) => Fe(pt({
|
|
362
362
|
style: e.style || {},
|
|
363
363
|
context: t,
|
|
364
364
|
block: e
|
|
365
365
|
}));
|
|
366
|
-
function
|
|
367
|
-
switch (
|
|
366
|
+
function Fe(e) {
|
|
367
|
+
switch (q) {
|
|
368
368
|
case "svelte":
|
|
369
369
|
case "vue":
|
|
370
370
|
case "solid":
|
|
371
371
|
case "angular":
|
|
372
|
-
return
|
|
372
|
+
return $e(e).join(" ");
|
|
373
373
|
case "qwik":
|
|
374
374
|
case "reactNative":
|
|
375
375
|
case "react":
|
|
@@ -377,7 +377,7 @@ function We(e) {
|
|
|
377
377
|
return e;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const xt = ({
|
|
381
381
|
block: e,
|
|
382
382
|
context: t,
|
|
383
383
|
registeredComponents: n
|
|
@@ -399,7 +399,7 @@ const yt = ({
|
|
|
399
399
|
console.warn(`
|
|
400
400
|
Could not find a registered component named "${i}".
|
|
401
401
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
402
|
-
},
|
|
402
|
+
}, vt = ({
|
|
403
403
|
block: e,
|
|
404
404
|
context: t
|
|
405
405
|
}) => {
|
|
@@ -409,7 +409,7 @@ const yt = ({
|
|
|
409
409
|
} = e;
|
|
410
410
|
if (!(n != null && n.collection))
|
|
411
411
|
return;
|
|
412
|
-
const o =
|
|
412
|
+
const o = K({
|
|
413
413
|
code: n.collection,
|
|
414
414
|
localState: t.localState,
|
|
415
415
|
rootState: t.rootState,
|
|
@@ -433,15 +433,23 @@ const yt = ({
|
|
|
433
433
|
},
|
|
434
434
|
block: i
|
|
435
435
|
}));
|
|
436
|
-
},
|
|
436
|
+
}, ne = (e) => ({
|
|
437
|
+
// once we bump to a major version, toggle this to `false`.
|
|
438
|
+
builderBlock: !0,
|
|
439
|
+
// once we bump to a major version, toggle this to `false`.
|
|
440
|
+
builderContext: !0,
|
|
441
|
+
builderComponents: !1,
|
|
442
|
+
builderLinkComponent: !1,
|
|
443
|
+
...e
|
|
444
|
+
}), St = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderLinkComponent ? {
|
|
437
445
|
builderLinkComponent: t
|
|
438
|
-
} : {},
|
|
446
|
+
} : {} : {}, kt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderComponents ? {
|
|
439
447
|
builderComponents: t
|
|
440
|
-
} : {},
|
|
448
|
+
} : {} : {}, Ct = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderBlock ? {
|
|
441
449
|
builderBlock: t
|
|
442
|
-
} : {},
|
|
450
|
+
} : {} : {}, Tt = (e, t) => e ? ne(e.shouldReceiveBuilderProps).builderContext ? {
|
|
443
451
|
builderContext: t
|
|
444
|
-
} : {},
|
|
452
|
+
} : {} : {}, Le = {
|
|
445
453
|
small: {
|
|
446
454
|
min: 320,
|
|
447
455
|
default: 321,
|
|
@@ -457,11 +465,11 @@ const yt = ({
|
|
|
457
465
|
default: 991,
|
|
458
466
|
max: 1200
|
|
459
467
|
}
|
|
460
|
-
},
|
|
468
|
+
}, ye = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
461
469
|
small: e,
|
|
462
470
|
medium: t
|
|
463
471
|
}) => {
|
|
464
|
-
const n =
|
|
472
|
+
const n = ue(Le);
|
|
465
473
|
if (!e || !t)
|
|
466
474
|
return n;
|
|
467
475
|
const i = Math.floor(e / 2);
|
|
@@ -484,7 +492,7 @@ const yt = ({
|
|
|
484
492
|
default: l + 1
|
|
485
493
|
}, n;
|
|
486
494
|
};
|
|
487
|
-
function
|
|
495
|
+
function ie(e) {
|
|
488
496
|
return /* @__PURE__ */ s(
|
|
489
497
|
"style",
|
|
490
498
|
{
|
|
@@ -493,7 +501,7 @@ function ne(e) {
|
|
|
493
501
|
}
|
|
494
502
|
);
|
|
495
503
|
}
|
|
496
|
-
function
|
|
504
|
+
function It(e) {
|
|
497
505
|
function t() {
|
|
498
506
|
const i = X({
|
|
499
507
|
block: e.block,
|
|
@@ -506,7 +514,7 @@ function Tt(e) {
|
|
|
506
514
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
507
515
|
}
|
|
508
516
|
function n() {
|
|
509
|
-
var x,
|
|
517
|
+
var x, B, V;
|
|
510
518
|
const i = X({
|
|
511
519
|
block: e.block,
|
|
512
520
|
localState: e.context.localState,
|
|
@@ -525,21 +533,21 @@ function Tt(e) {
|
|
|
525
533
|
}) : "", m = c ? z({
|
|
526
534
|
className: f,
|
|
527
535
|
styles: c,
|
|
528
|
-
mediaQuery:
|
|
536
|
+
mediaQuery: ye(
|
|
529
537
|
"medium",
|
|
530
538
|
a
|
|
531
539
|
)
|
|
532
|
-
}) : "",
|
|
540
|
+
}) : "", b = u ? z({
|
|
533
541
|
className: f,
|
|
534
542
|
styles: u,
|
|
535
|
-
mediaQuery:
|
|
543
|
+
mediaQuery: ye(
|
|
536
544
|
"small",
|
|
537
545
|
a
|
|
538
546
|
)
|
|
539
547
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
540
548
|
let I = "";
|
|
541
549
|
if (p) {
|
|
542
|
-
const A = ((
|
|
550
|
+
const A = ((V = (B = p.steps) == null ? void 0 : B[1]) == null ? void 0 : V.styles) || {};
|
|
543
551
|
I = z({
|
|
544
552
|
className: `${f}:hover`,
|
|
545
553
|
styles: {
|
|
@@ -554,16 +562,16 @@ function Tt(e) {
|
|
|
554
562
|
return [
|
|
555
563
|
d,
|
|
556
564
|
m,
|
|
557
|
-
|
|
565
|
+
b,
|
|
558
566
|
I
|
|
559
567
|
].join(" ");
|
|
560
568
|
}
|
|
561
|
-
return /* @__PURE__ */ s(
|
|
569
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ie, { id: "builderio-block", styles: n() }) }) : null });
|
|
562
570
|
}
|
|
563
|
-
function
|
|
571
|
+
function wt(e) {
|
|
564
572
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
565
573
|
}
|
|
566
|
-
const
|
|
574
|
+
const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
|
|
567
575
|
code: e,
|
|
568
576
|
context: t.context,
|
|
569
577
|
localState: t.localState,
|
|
@@ -573,16 +581,16 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => q({
|
|
|
573
581
|
isExpression: !1,
|
|
574
582
|
enableCache: !0
|
|
575
583
|
});
|
|
576
|
-
function
|
|
584
|
+
function Oe(e) {
|
|
577
585
|
var i;
|
|
578
586
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
579
587
|
for (const o in n) {
|
|
580
588
|
if (!n.hasOwnProperty(o))
|
|
581
589
|
continue;
|
|
582
590
|
const l = n[o];
|
|
583
|
-
let a =
|
|
591
|
+
let a = Rt(o);
|
|
584
592
|
if (e.stripPrefix)
|
|
585
|
-
switch (
|
|
593
|
+
switch (q) {
|
|
586
594
|
case "vue":
|
|
587
595
|
a = a.replace("v-on:", "");
|
|
588
596
|
break;
|
|
@@ -590,49 +598,49 @@ function Le(e) {
|
|
|
590
598
|
a = a.replace("on:", "");
|
|
591
599
|
break;
|
|
592
600
|
}
|
|
593
|
-
t[a] =
|
|
601
|
+
t[a] = Bt(l, e);
|
|
594
602
|
}
|
|
595
603
|
return t;
|
|
596
604
|
}
|
|
597
|
-
function
|
|
605
|
+
function Pt({
|
|
598
606
|
properties: e
|
|
599
607
|
}) {
|
|
600
608
|
return e;
|
|
601
609
|
}
|
|
602
|
-
const
|
|
610
|
+
const Et = (e) => ({
|
|
603
611
|
href: e.href
|
|
604
612
|
});
|
|
605
|
-
function
|
|
613
|
+
function he({
|
|
606
614
|
block: e,
|
|
607
615
|
context: t
|
|
608
616
|
}) {
|
|
609
617
|
var i;
|
|
610
618
|
const n = {
|
|
611
|
-
...
|
|
619
|
+
...Et(e),
|
|
612
620
|
...e.properties,
|
|
613
621
|
"builder-id": e.id,
|
|
614
|
-
style:
|
|
622
|
+
style: yt({
|
|
615
623
|
block: e,
|
|
616
624
|
context: t
|
|
617
625
|
}),
|
|
618
|
-
[
|
|
626
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
619
627
|
};
|
|
620
|
-
return
|
|
628
|
+
return Pt({
|
|
621
629
|
properties: n,
|
|
622
630
|
context: t,
|
|
623
631
|
block: e
|
|
624
632
|
});
|
|
625
633
|
}
|
|
626
|
-
function
|
|
634
|
+
function Vt(e) {
|
|
627
635
|
return /* @__PURE__ */ s(
|
|
628
|
-
|
|
636
|
+
me,
|
|
629
637
|
{
|
|
630
638
|
TagName: e.Wrapper,
|
|
631
|
-
attributes:
|
|
639
|
+
attributes: he({
|
|
632
640
|
block: e.block,
|
|
633
641
|
context: e.context
|
|
634
642
|
}),
|
|
635
|
-
actionAttributes:
|
|
643
|
+
actionAttributes: Oe({
|
|
636
644
|
block: e.block,
|
|
637
645
|
rootState: e.context.rootState,
|
|
638
646
|
rootSetState: e.context.rootSetState,
|
|
@@ -644,14 +652,14 @@ function Bt(e) {
|
|
|
644
652
|
}
|
|
645
653
|
);
|
|
646
654
|
}
|
|
647
|
-
function
|
|
655
|
+
function At(e) {
|
|
648
656
|
function t() {
|
|
649
657
|
return e.includeBlockProps ? {
|
|
650
|
-
...
|
|
658
|
+
...he({
|
|
651
659
|
block: e.block,
|
|
652
660
|
context: e.context
|
|
653
661
|
}),
|
|
654
|
-
...
|
|
662
|
+
...Oe({
|
|
655
663
|
block: e.block,
|
|
656
664
|
rootState: e.context.rootState,
|
|
657
665
|
rootSetState: e.context.rootSetState,
|
|
@@ -662,7 +670,7 @@ function Pt(e) {
|
|
|
662
670
|
}
|
|
663
671
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
664
672
|
}
|
|
665
|
-
const
|
|
673
|
+
const Nt = ({
|
|
666
674
|
componentOptions: e,
|
|
667
675
|
builderBlock: t,
|
|
668
676
|
context: n,
|
|
@@ -678,7 +686,7 @@ const At = ({
|
|
|
678
686
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
679
687
|
*/
|
|
680
688
|
...o ? {
|
|
681
|
-
attributes:
|
|
689
|
+
attributes: he({
|
|
682
690
|
block: t,
|
|
683
691
|
context: a
|
|
684
692
|
})
|
|
@@ -692,15 +700,15 @@ const At = ({
|
|
|
692
700
|
includeBlockProps: o
|
|
693
701
|
} : r;
|
|
694
702
|
};
|
|
695
|
-
function
|
|
703
|
+
function xe(e) {
|
|
696
704
|
var i;
|
|
697
705
|
const [t, n] = C(
|
|
698
|
-
() => e.isInteractive ?
|
|
706
|
+
() => e.isInteractive ? At : e.componentRef
|
|
699
707
|
);
|
|
700
|
-
return /* @__PURE__ */ s(
|
|
708
|
+
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
701
709
|
t,
|
|
702
710
|
{
|
|
703
|
-
...
|
|
711
|
+
...Nt({
|
|
704
712
|
componentOptions: e.componentOptions,
|
|
705
713
|
builderBlock: e.builderBlock,
|
|
706
714
|
context: e.context,
|
|
@@ -723,9 +731,9 @@ function ye(e) {
|
|
|
723
731
|
}
|
|
724
732
|
) }) : null });
|
|
725
733
|
}
|
|
726
|
-
function
|
|
734
|
+
function Wt(e) {
|
|
727
735
|
const [t, n] = C(() => e.repeatContext);
|
|
728
|
-
return /* @__PURE__ */ s(
|
|
736
|
+
return /* @__PURE__ */ s(fe.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
729
737
|
_,
|
|
730
738
|
{
|
|
731
739
|
block: e.block,
|
|
@@ -738,14 +746,14 @@ function Nt(e) {
|
|
|
738
746
|
function _(e) {
|
|
739
747
|
var c, u, f;
|
|
740
748
|
function t() {
|
|
741
|
-
return
|
|
749
|
+
return xt({
|
|
742
750
|
block: e.block,
|
|
743
751
|
context: e.context,
|
|
744
752
|
registeredComponents: e.registeredComponents
|
|
745
753
|
});
|
|
746
754
|
}
|
|
747
755
|
function n() {
|
|
748
|
-
return
|
|
756
|
+
return vt({
|
|
749
757
|
block: e.block,
|
|
750
758
|
context: e.context
|
|
751
759
|
});
|
|
@@ -766,27 +774,27 @@ function _(e) {
|
|
|
766
774
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
767
775
|
}
|
|
768
776
|
function l() {
|
|
769
|
-
var
|
|
770
|
-
if ((
|
|
777
|
+
var b, p;
|
|
778
|
+
if ((b = e.block.repeat) != null && b.collection)
|
|
771
779
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
772
780
|
const d = "hide" in i() ? i().hide : !1;
|
|
773
781
|
return ("show" in i() ? i().show : !0) && !d;
|
|
774
782
|
}
|
|
775
783
|
function a() {
|
|
776
|
-
var m,
|
|
777
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
784
|
+
var m, b;
|
|
785
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (b = i().children) != null ? b : [] : [];
|
|
778
786
|
}
|
|
779
787
|
function r() {
|
|
780
|
-
var d, m,
|
|
788
|
+
var d, m, b, p;
|
|
781
789
|
return {
|
|
782
790
|
blockChildren: (d = i().children) != null ? d : [],
|
|
783
791
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
784
792
|
componentOptions: {
|
|
785
|
-
...
|
|
786
|
-
...
|
|
787
|
-
...
|
|
788
|
-
...
|
|
789
|
-
...
|
|
793
|
+
...rt(i()),
|
|
794
|
+
...Ct(t(), i()),
|
|
795
|
+
...Tt(t(), e.context),
|
|
796
|
+
...St(t(), e.linkComponent),
|
|
797
|
+
...kt(
|
|
790
798
|
t(),
|
|
791
799
|
e.registeredComponents
|
|
792
800
|
)
|
|
@@ -795,22 +803,22 @@ function _(e) {
|
|
|
795
803
|
linkComponent: e.linkComponent,
|
|
796
804
|
registeredComponents: e.registeredComponents,
|
|
797
805
|
builderBlock: i(),
|
|
798
|
-
includeBlockProps: ((
|
|
806
|
+
includeBlockProps: ((b = t == null ? void 0 : t()) == null ? void 0 : b.noWrap) === !0,
|
|
799
807
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
800
808
|
};
|
|
801
809
|
}
|
|
802
810
|
return P(() => {
|
|
803
811
|
const d = i().id, m = i().animations;
|
|
804
|
-
m && d &&
|
|
805
|
-
m.map((
|
|
806
|
-
...
|
|
812
|
+
m && d && ft(
|
|
813
|
+
m.map((b) => ({
|
|
814
|
+
...b,
|
|
807
815
|
elementId: d
|
|
808
816
|
}))
|
|
809
817
|
);
|
|
810
|
-
}, []), /* @__PURE__ */ s(
|
|
811
|
-
/* @__PURE__ */ s(
|
|
812
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
813
|
-
|
|
818
|
+
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ E(R, { children: [
|
|
819
|
+
/* @__PURE__ */ s(It, { block: e.block, context: e.context }),
|
|
820
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
821
|
+
xe,
|
|
814
822
|
{
|
|
815
823
|
componentRef: r().componentRef,
|
|
816
824
|
componentOptions: r().componentOptions,
|
|
@@ -822,8 +830,8 @@ function _(e) {
|
|
|
822
830
|
includeBlockProps: r().includeBlockProps,
|
|
823
831
|
isInteractive: r().isInteractive
|
|
824
832
|
}
|
|
825
|
-
) }) : /* @__PURE__ */ s(
|
|
826
|
-
|
|
833
|
+
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
834
|
+
Wt,
|
|
827
835
|
{
|
|
828
836
|
repeatContext: d.context,
|
|
829
837
|
block: d.block,
|
|
@@ -831,15 +839,15 @@ function _(e) {
|
|
|
831
839
|
linkComponent: e.linkComponent
|
|
832
840
|
},
|
|
833
841
|
m
|
|
834
|
-
)) }) : /* @__PURE__ */
|
|
835
|
-
|
|
842
|
+
)) }) : /* @__PURE__ */ E(
|
|
843
|
+
Vt,
|
|
836
844
|
{
|
|
837
845
|
Wrapper: o(),
|
|
838
846
|
block: i(),
|
|
839
847
|
context: e.context,
|
|
840
848
|
children: [
|
|
841
849
|
/* @__PURE__ */ s(
|
|
842
|
-
|
|
850
|
+
xe,
|
|
843
851
|
{
|
|
844
852
|
componentRef: r().componentRef,
|
|
845
853
|
componentOptions: r().componentOptions,
|
|
@@ -867,14 +875,14 @@ function _(e) {
|
|
|
867
875
|
) })
|
|
868
876
|
] }) : null });
|
|
869
877
|
}
|
|
870
|
-
function
|
|
878
|
+
function $t(e) {
|
|
871
879
|
function t() {
|
|
872
880
|
var o;
|
|
873
881
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
874
882
|
}
|
|
875
883
|
function n() {
|
|
876
884
|
var o, l;
|
|
877
|
-
|
|
885
|
+
F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
878
886
|
{
|
|
879
887
|
type: "builder.clickEmptyBlocks",
|
|
880
888
|
data: {
|
|
@@ -887,7 +895,7 @@ function Ft(e) {
|
|
|
887
895
|
}
|
|
888
896
|
function i() {
|
|
889
897
|
var o, l;
|
|
890
|
-
|
|
898
|
+
F() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
891
899
|
{
|
|
892
900
|
type: "builder.hoverEmptyBlocks",
|
|
893
901
|
data: {
|
|
@@ -898,7 +906,7 @@ function Ft(e) {
|
|
|
898
906
|
"*"
|
|
899
907
|
));
|
|
900
908
|
}
|
|
901
|
-
return /* @__PURE__ */
|
|
909
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
902
910
|
/* @__PURE__ */ s(
|
|
903
911
|
e.BlocksWrapper,
|
|
904
912
|
{
|
|
@@ -920,11 +928,11 @@ function Ft(e) {
|
|
|
920
928
|
}` })
|
|
921
929
|
] });
|
|
922
930
|
}
|
|
923
|
-
function
|
|
931
|
+
function L(e) {
|
|
924
932
|
var i, o, l;
|
|
925
|
-
const t =
|
|
933
|
+
const t = pe(fe), n = pe(Ee);
|
|
926
934
|
return /* @__PURE__ */ s(
|
|
927
|
-
|
|
935
|
+
$t,
|
|
928
936
|
{
|
|
929
937
|
blocks: e.blocks,
|
|
930
938
|
parent: e.parent,
|
|
@@ -932,7 +940,7 @@ function D(e) {
|
|
|
932
940
|
styleProp: e.styleProp,
|
|
933
941
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
934
942
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
935
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
943
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
|
|
936
944
|
_,
|
|
937
945
|
{
|
|
938
946
|
block: a,
|
|
@@ -945,9 +953,9 @@ function D(e) {
|
|
|
945
953
|
}
|
|
946
954
|
);
|
|
947
955
|
}
|
|
948
|
-
const
|
|
949
|
-
function
|
|
950
|
-
var A,
|
|
956
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
957
|
+
function Lt(e) {
|
|
958
|
+
var A, O;
|
|
951
959
|
const [t, n] = C(
|
|
952
960
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
953
961
|
), [i, o] = C(() => e.columns || []), [l, a] = C(
|
|
@@ -976,7 +984,7 @@ function $t(e) {
|
|
|
976
984
|
}) {
|
|
977
985
|
return l === "never" ? w : S;
|
|
978
986
|
}
|
|
979
|
-
const [m,
|
|
987
|
+
const [m, b] = C(
|
|
980
988
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
981
989
|
);
|
|
982
990
|
function p() {
|
|
@@ -989,40 +997,40 @@ function $t(e) {
|
|
|
989
997
|
};
|
|
990
998
|
}
|
|
991
999
|
function I(S) {
|
|
992
|
-
const w = S === 0 ? 0 : t,
|
|
1000
|
+
const w = S === 0 ? 0 : t, W = u(S), g = `${w}px`, h = "100%", y = 0;
|
|
993
1001
|
return {
|
|
994
1002
|
...{
|
|
995
1003
|
display: "flex",
|
|
996
1004
|
flexDirection: "column",
|
|
997
1005
|
alignItems: "stretch"
|
|
998
1006
|
},
|
|
999
|
-
width:
|
|
1000
|
-
["marginLeft"]:
|
|
1007
|
+
width: W,
|
|
1008
|
+
["marginLeft"]: g,
|
|
1001
1009
|
"--column-width-mobile": d({
|
|
1002
1010
|
stackedStyle: h,
|
|
1003
|
-
desktopStyle:
|
|
1011
|
+
desktopStyle: W
|
|
1004
1012
|
}),
|
|
1005
1013
|
"--column-margin-left-mobile": d({
|
|
1006
1014
|
stackedStyle: y,
|
|
1007
|
-
desktopStyle:
|
|
1015
|
+
desktopStyle: g
|
|
1008
1016
|
}),
|
|
1009
1017
|
"--column-width-tablet": f({
|
|
1010
1018
|
stackedStyle: h,
|
|
1011
|
-
desktopStyle:
|
|
1019
|
+
desktopStyle: W
|
|
1012
1020
|
}),
|
|
1013
1021
|
"--column-margin-left-tablet": f({
|
|
1014
1022
|
stackedStyle: y,
|
|
1015
|
-
desktopStyle:
|
|
1023
|
+
desktopStyle: g
|
|
1016
1024
|
})
|
|
1017
1025
|
};
|
|
1018
1026
|
}
|
|
1019
1027
|
function x(S) {
|
|
1020
|
-
var
|
|
1028
|
+
var W, g;
|
|
1021
1029
|
return De(
|
|
1022
|
-
((
|
|
1030
|
+
((g = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : g.breakpoints) || {}
|
|
1023
1031
|
)[S].max;
|
|
1024
1032
|
}
|
|
1025
|
-
function
|
|
1033
|
+
function B() {
|
|
1026
1034
|
return `
|
|
1027
1035
|
@media (max-width: ${x("medium")}px) {
|
|
1028
1036
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1049,31 +1057,31 @@ function $t(e) {
|
|
|
1049
1057
|
},
|
|
1050
1058
|
`;
|
|
1051
1059
|
}
|
|
1052
|
-
function
|
|
1060
|
+
function V(S, w) {
|
|
1053
1061
|
return {
|
|
1054
1062
|
...S.link ? {
|
|
1055
1063
|
href: S.link
|
|
1056
1064
|
} : {},
|
|
1057
|
-
[
|
|
1058
|
-
style:
|
|
1065
|
+
[H()]: "builder-column",
|
|
1066
|
+
style: Fe(I(w))
|
|
1059
1067
|
};
|
|
1060
1068
|
}
|
|
1061
|
-
return /* @__PURE__ */
|
|
1062
|
-
/* @__PURE__ */
|
|
1069
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
1070
|
+
/* @__PURE__ */ E(
|
|
1063
1071
|
"div",
|
|
1064
1072
|
{
|
|
1065
|
-
className:
|
|
1073
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1066
1074
|
style: p(),
|
|
1067
1075
|
children: [
|
|
1068
|
-
/* @__PURE__ */ s(
|
|
1069
|
-
(
|
|
1070
|
-
|
|
1076
|
+
/* @__PURE__ */ s(ie, { id: "builderio-columns", styles: B() }),
|
|
1077
|
+
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1078
|
+
me,
|
|
1071
1079
|
{
|
|
1072
1080
|
TagName: r(S),
|
|
1073
1081
|
actionAttributes: {},
|
|
1074
|
-
attributes:
|
|
1082
|
+
attributes: V(S, w),
|
|
1075
1083
|
children: /* @__PURE__ */ s(
|
|
1076
|
-
|
|
1084
|
+
L,
|
|
1077
1085
|
{
|
|
1078
1086
|
path: `component.options.columns.${w}.blocks`,
|
|
1079
1087
|
parent: e.builderBlock.id,
|
|
@@ -1101,37 +1109,37 @@ function $t(e) {
|
|
|
1101
1109
|
function Dt(e) {
|
|
1102
1110
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1103
1111
|
}
|
|
1104
|
-
function
|
|
1112
|
+
function ve(e) {
|
|
1105
1113
|
return e.replace(/http(s)?:/, "");
|
|
1106
1114
|
}
|
|
1107
|
-
function
|
|
1115
|
+
function Ot(e = "", t, n) {
|
|
1108
1116
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1109
1117
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1110
1118
|
}
|
|
1111
|
-
function
|
|
1119
|
+
function jt(e, t) {
|
|
1112
1120
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1113
1121
|
return e;
|
|
1114
1122
|
if (t === "master")
|
|
1115
|
-
return
|
|
1123
|
+
return ve(e);
|
|
1116
1124
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1117
1125
|
if (n) {
|
|
1118
1126
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1119
|
-
return
|
|
1127
|
+
return ve(`${i[0]}_${l}${o}`);
|
|
1120
1128
|
}
|
|
1121
1129
|
return null;
|
|
1122
1130
|
}
|
|
1123
|
-
function
|
|
1131
|
+
function ae(e) {
|
|
1124
1132
|
if (!e)
|
|
1125
1133
|
return e;
|
|
1126
1134
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1127
1135
|
if (e.match(/builder\.io/)) {
|
|
1128
1136
|
let n = e;
|
|
1129
1137
|
const i = Number(e.split("?width=")[1]);
|
|
1130
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1138
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ot(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1131
1139
|
}
|
|
1132
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1140
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1133
1141
|
}
|
|
1134
|
-
function
|
|
1142
|
+
function Ut(e) {
|
|
1135
1143
|
var o, l, a, r, c, u;
|
|
1136
1144
|
function t() {
|
|
1137
1145
|
var m;
|
|
@@ -1142,10 +1150,10 @@ function jt(e) {
|
|
|
1142
1150
|
return e.srcset;
|
|
1143
1151
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1144
1152
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1145
|
-
return console.debug("Removed given srcset"),
|
|
1153
|
+
return console.debug("Removed given srcset"), ae(d);
|
|
1146
1154
|
} else if (e.image && !e.srcset)
|
|
1147
|
-
return
|
|
1148
|
-
return
|
|
1155
|
+
return ae(d);
|
|
1156
|
+
return ae(d);
|
|
1149
1157
|
}
|
|
1150
1158
|
function n() {
|
|
1151
1159
|
var f;
|
|
@@ -1161,9 +1169,9 @@ function jt(e) {
|
|
|
1161
1169
|
};
|
|
1162
1170
|
return e.aspectRatio ? f : void 0;
|
|
1163
1171
|
}
|
|
1164
|
-
return /* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1172
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
1173
|
+
/* @__PURE__ */ E(R, { children: [
|
|
1174
|
+
/* @__PURE__ */ E("picture", { children: [
|
|
1167
1175
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1168
1176
|
/* @__PURE__ */ s(
|
|
1169
1177
|
"img",
|
|
@@ -1193,7 +1201,7 @@ function jt(e) {
|
|
|
1193
1201
|
}
|
|
1194
1202
|
}
|
|
1195
1203
|
) : null,
|
|
1196
|
-
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1204
|
+
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1197
1205
|
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
|
|
1198
1206
|
] }),
|
|
1199
1207
|
/* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
|
|
@@ -1215,7 +1223,7 @@ function jt(e) {
|
|
|
1215
1223
|
}` })
|
|
1216
1224
|
] });
|
|
1217
1225
|
}
|
|
1218
|
-
function
|
|
1226
|
+
function Mt(e) {
|
|
1219
1227
|
return /* @__PURE__ */ s(
|
|
1220
1228
|
"section",
|
|
1221
1229
|
{
|
|
@@ -1236,7 +1244,7 @@ function Ut(e) {
|
|
|
1236
1244
|
}
|
|
1237
1245
|
);
|
|
1238
1246
|
}
|
|
1239
|
-
const
|
|
1247
|
+
const re = {
|
|
1240
1248
|
"@type": "@builder.io/sdk:Element",
|
|
1241
1249
|
layerName: "Accordion item title",
|
|
1242
1250
|
responsiveStyles: {
|
|
@@ -1265,7 +1273,7 @@ const ae = {
|
|
|
1265
1273
|
}
|
|
1266
1274
|
}
|
|
1267
1275
|
}]
|
|
1268
|
-
},
|
|
1276
|
+
}, le = {
|
|
1269
1277
|
"@type": "@builder.io/sdk:Element",
|
|
1270
1278
|
layerName: "Accordion item detail",
|
|
1271
1279
|
responsiveStyles: {
|
|
@@ -1296,7 +1304,7 @@ const ae = {
|
|
|
1296
1304
|
}
|
|
1297
1305
|
}
|
|
1298
1306
|
}]
|
|
1299
|
-
},
|
|
1307
|
+
}, Ht = {
|
|
1300
1308
|
name: "Builder:Accordion",
|
|
1301
1309
|
canHaveChildren: !0,
|
|
1302
1310
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1313,19 +1321,19 @@ const ae = {
|
|
|
1313
1321
|
name: "title",
|
|
1314
1322
|
type: "uiBlocks",
|
|
1315
1323
|
hideFromUI: !0,
|
|
1316
|
-
defaultValue: [
|
|
1324
|
+
defaultValue: [re]
|
|
1317
1325
|
}, {
|
|
1318
1326
|
name: "detail",
|
|
1319
1327
|
type: "uiBlocks",
|
|
1320
1328
|
hideFromUI: !0,
|
|
1321
|
-
defaultValue: [
|
|
1329
|
+
defaultValue: [le]
|
|
1322
1330
|
}],
|
|
1323
1331
|
defaultValue: [{
|
|
1324
|
-
title: [
|
|
1325
|
-
detail: [
|
|
1332
|
+
title: [re],
|
|
1333
|
+
detail: [le]
|
|
1326
1334
|
}, {
|
|
1327
|
-
title: [
|
|
1328
|
-
detail: [
|
|
1335
|
+
title: [re],
|
|
1336
|
+
detail: [le]
|
|
1329
1337
|
}],
|
|
1330
1338
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1331
1339
|
}, {
|
|
@@ -1353,9 +1361,15 @@ const ae = {
|
|
|
1353
1361
|
onChange: (e) => {
|
|
1354
1362
|
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1355
1363
|
}
|
|
1356
|
-
}]
|
|
1357
|
-
|
|
1358
|
-
|
|
1364
|
+
}],
|
|
1365
|
+
shouldReceiveBuilderProps: {
|
|
1366
|
+
builderBlock: !0,
|
|
1367
|
+
builderContext: !0,
|
|
1368
|
+
builderComponents: !0,
|
|
1369
|
+
builderLinkComponent: !0
|
|
1370
|
+
}
|
|
1371
|
+
}, Se = (e) => e.toString();
|
|
1372
|
+
function Kt(e) {
|
|
1359
1373
|
var d;
|
|
1360
1374
|
const [t, n] = C(() => []);
|
|
1361
1375
|
function i() {
|
|
@@ -1374,7 +1388,7 @@ function Ht(e) {
|
|
|
1374
1388
|
};
|
|
1375
1389
|
}
|
|
1376
1390
|
function l() {
|
|
1377
|
-
const
|
|
1391
|
+
const b = {
|
|
1378
1392
|
...{
|
|
1379
1393
|
display: "flex",
|
|
1380
1394
|
flexDirection: "column"
|
|
@@ -1383,7 +1397,7 @@ function Ht(e) {
|
|
|
1383
1397
|
cursor: "pointer"
|
|
1384
1398
|
};
|
|
1385
1399
|
return Object.fromEntries(
|
|
1386
|
-
Object.entries(
|
|
1400
|
+
Object.entries(b).filter(([p, I]) => I !== void 0)
|
|
1387
1401
|
);
|
|
1388
1402
|
}
|
|
1389
1403
|
function a(m) {
|
|
@@ -1400,18 +1414,18 @@ function Ht(e) {
|
|
|
1400
1414
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1401
1415
|
);
|
|
1402
1416
|
if (m = p, x) {
|
|
1403
|
-
let
|
|
1417
|
+
let B = x.getBoundingClientRect();
|
|
1404
1418
|
for (; x = x && x.nextElementSibling; )
|
|
1405
1419
|
if (x) {
|
|
1406
1420
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1407
1421
|
continue;
|
|
1408
|
-
const
|
|
1409
|
-
if (
|
|
1422
|
+
const V = x.getBoundingClientRect();
|
|
1423
|
+
if (V.left > B.left) {
|
|
1410
1424
|
const A = parseInt(
|
|
1411
1425
|
x.getAttribute("data-index") || "",
|
|
1412
1426
|
10
|
|
1413
1427
|
);
|
|
1414
|
-
isNaN(A) || (
|
|
1428
|
+
isNaN(A) || (B = V, m = A);
|
|
1415
1429
|
} else
|
|
1416
1430
|
break;
|
|
1417
1431
|
}
|
|
@@ -1427,29 +1441,29 @@ function Ht(e) {
|
|
|
1427
1441
|
}
|
|
1428
1442
|
};
|
|
1429
1443
|
return Object.fromEntries(
|
|
1430
|
-
Object.entries(m).filter(([
|
|
1444
|
+
Object.entries(m).filter(([b, p]) => p !== void 0)
|
|
1431
1445
|
);
|
|
1432
1446
|
}
|
|
1433
1447
|
function f(m) {
|
|
1434
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1448
|
+
t.includes(m) ? n(i() ? [] : t.filter((b) => b !== m)) : n(i() ? [m] : t.concat(m));
|
|
1435
1449
|
}
|
|
1436
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1450
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, b) => /* @__PURE__ */ E(R, { children: [
|
|
1437
1451
|
/* @__PURE__ */ s(
|
|
1438
1452
|
"div",
|
|
1439
1453
|
{
|
|
1440
|
-
className: a(
|
|
1454
|
+
className: a(b),
|
|
1441
1455
|
style: {
|
|
1442
1456
|
...l(),
|
|
1443
1457
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1444
|
-
order: c() !== null ?
|
|
1458
|
+
order: c() !== null ? Se(b) : Se(b + 1)
|
|
1445
1459
|
},
|
|
1446
|
-
"data-index":
|
|
1447
|
-
onClick: (p) => f(
|
|
1460
|
+
"data-index": b,
|
|
1461
|
+
onClick: (p) => f(b),
|
|
1448
1462
|
children: /* @__PURE__ */ s(
|
|
1449
|
-
|
|
1463
|
+
L,
|
|
1450
1464
|
{
|
|
1451
1465
|
blocks: m.title,
|
|
1452
|
-
path: `items.${
|
|
1466
|
+
path: `items.${b}.title`,
|
|
1453
1467
|
parent: e.builderBlock.id,
|
|
1454
1468
|
context: e.builderContext,
|
|
1455
1469
|
registeredComponents: e.builderComponents,
|
|
@@ -1458,16 +1472,16 @@ function Ht(e) {
|
|
|
1458
1472
|
)
|
|
1459
1473
|
}
|
|
1460
1474
|
),
|
|
1461
|
-
t.includes(
|
|
1475
|
+
t.includes(b) ? /* @__PURE__ */ s(
|
|
1462
1476
|
"div",
|
|
1463
1477
|
{
|
|
1464
|
-
className: r(
|
|
1478
|
+
className: r(b),
|
|
1465
1479
|
style: u(),
|
|
1466
1480
|
children: /* @__PURE__ */ s(
|
|
1467
|
-
|
|
1481
|
+
L,
|
|
1468
1482
|
{
|
|
1469
1483
|
blocks: m.detail,
|
|
1470
|
-
path: `items.${
|
|
1484
|
+
path: `items.${b}.detail`,
|
|
1471
1485
|
parent: e.builderBlock.id,
|
|
1472
1486
|
context: e.builderContext,
|
|
1473
1487
|
registeredComponents: e.builderComponents,
|
|
@@ -1478,7 +1492,7 @@ function Ht(e) {
|
|
|
1478
1492
|
) : null
|
|
1479
1493
|
] })) });
|
|
1480
1494
|
}
|
|
1481
|
-
const
|
|
1495
|
+
const qt = {
|
|
1482
1496
|
name: "Core:Button",
|
|
1483
1497
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1484
1498
|
defaultStyles: {
|
|
@@ -1510,8 +1524,14 @@ const Kt = {
|
|
|
1510
1524
|
friendlyName: "Open link in new tab"
|
|
1511
1525
|
}],
|
|
1512
1526
|
static: !0,
|
|
1513
|
-
noWrap: !0
|
|
1514
|
-
|
|
1527
|
+
noWrap: !0,
|
|
1528
|
+
shouldReceiveBuilderProps: {
|
|
1529
|
+
builderBlock: !1,
|
|
1530
|
+
builderContext: !1,
|
|
1531
|
+
builderComponents: !1,
|
|
1532
|
+
builderLinkComponent: !0
|
|
1533
|
+
}
|
|
1534
|
+
}, _t = {
|
|
1515
1535
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1516
1536
|
name: "Columns",
|
|
1517
1537
|
isRSC: !0,
|
|
@@ -1711,14 +1731,26 @@ const Kt = {
|
|
|
1711
1731
|
defaultValue: !1,
|
|
1712
1732
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1713
1733
|
advanced: !0
|
|
1714
|
-
}]
|
|
1715
|
-
|
|
1734
|
+
}],
|
|
1735
|
+
shouldReceiveBuilderProps: {
|
|
1736
|
+
builderBlock: !0,
|
|
1737
|
+
builderContext: !0,
|
|
1738
|
+
builderComponents: !0,
|
|
1739
|
+
builderLinkComponent: !0
|
|
1740
|
+
}
|
|
1741
|
+
}, zt = {
|
|
1742
|
+
shouldReceiveBuilderProps: {
|
|
1743
|
+
builderBlock: !1,
|
|
1744
|
+
builderContext: !1,
|
|
1745
|
+
builderComponents: !1,
|
|
1746
|
+
builderLinkComponent: !1
|
|
1747
|
+
},
|
|
1716
1748
|
name: "Fragment",
|
|
1717
1749
|
static: !0,
|
|
1718
1750
|
hidden: !0,
|
|
1719
1751
|
canHaveChildren: !0,
|
|
1720
1752
|
noWrap: !0
|
|
1721
|
-
},
|
|
1753
|
+
}, Jt = {
|
|
1722
1754
|
name: "Image",
|
|
1723
1755
|
static: !0,
|
|
1724
1756
|
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",
|
|
@@ -1822,8 +1854,20 @@ const Kt = {
|
|
|
1822
1854
|
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1823
1855
|
advanced: !0,
|
|
1824
1856
|
defaultValue: 0.7041
|
|
1825
|
-
}]
|
|
1826
|
-
|
|
1857
|
+
}],
|
|
1858
|
+
shouldReceiveBuilderProps: {
|
|
1859
|
+
builderBlock: !0,
|
|
1860
|
+
builderContext: !1,
|
|
1861
|
+
builderComponents: !1,
|
|
1862
|
+
builderLinkComponent: !1
|
|
1863
|
+
}
|
|
1864
|
+
}, Yt = {
|
|
1865
|
+
shouldReceiveBuilderProps: {
|
|
1866
|
+
builderBlock: !1,
|
|
1867
|
+
builderContext: !1,
|
|
1868
|
+
builderComponents: !1,
|
|
1869
|
+
builderLinkComponent: !1
|
|
1870
|
+
},
|
|
1827
1871
|
name: "Core:Section",
|
|
1828
1872
|
static: !0,
|
|
1829
1873
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1862,7 +1906,7 @@ const Kt = {
|
|
|
1862
1906
|
}
|
|
1863
1907
|
}
|
|
1864
1908
|
}]
|
|
1865
|
-
},
|
|
1909
|
+
}, Gt = {
|
|
1866
1910
|
name: "Slot",
|
|
1867
1911
|
isRSC: !0,
|
|
1868
1912
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1874,9 +1918,15 @@ const Kt = {
|
|
|
1874
1918
|
type: "string",
|
|
1875
1919
|
required: !0,
|
|
1876
1920
|
defaultValue: "children"
|
|
1877
|
-
}]
|
|
1921
|
+
}],
|
|
1922
|
+
shouldReceiveBuilderProps: {
|
|
1923
|
+
builderBlock: !1,
|
|
1924
|
+
builderContext: !0,
|
|
1925
|
+
builderComponents: !1,
|
|
1926
|
+
builderLinkComponent: !1
|
|
1927
|
+
}
|
|
1878
1928
|
};
|
|
1879
|
-
function
|
|
1929
|
+
function Qt(e) {
|
|
1880
1930
|
var t, n, i;
|
|
1881
1931
|
return /* @__PURE__ */ s(
|
|
1882
1932
|
"div",
|
|
@@ -1888,7 +1938,7 @@ function Gt(e) {
|
|
|
1888
1938
|
"builder-slot": e.name
|
|
1889
1939
|
},
|
|
1890
1940
|
children: /* @__PURE__ */ s(
|
|
1891
|
-
|
|
1941
|
+
L,
|
|
1892
1942
|
{
|
|
1893
1943
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1894
1944
|
path: `symbol.data.${e.name}`,
|
|
@@ -1899,7 +1949,7 @@ function Gt(e) {
|
|
|
1899
1949
|
}
|
|
1900
1950
|
);
|
|
1901
1951
|
}
|
|
1902
|
-
const
|
|
1952
|
+
const Xt = {
|
|
1903
1953
|
name: "Symbol",
|
|
1904
1954
|
noWrap: !0,
|
|
1905
1955
|
static: !0,
|
|
@@ -1931,8 +1981,14 @@ const Qt = {
|
|
|
1931
1981
|
name: "useChildren",
|
|
1932
1982
|
hideFromUI: !0,
|
|
1933
1983
|
type: "boolean"
|
|
1934
|
-
}]
|
|
1935
|
-
|
|
1984
|
+
}],
|
|
1985
|
+
shouldReceiveBuilderProps: {
|
|
1986
|
+
builderBlock: !0,
|
|
1987
|
+
builderContext: !0,
|
|
1988
|
+
builderComponents: !0,
|
|
1989
|
+
builderLinkComponent: !0
|
|
1990
|
+
}
|
|
1991
|
+
}, se = {
|
|
1936
1992
|
"@type": "@builder.io/sdk:Element",
|
|
1937
1993
|
responsiveStyles: {
|
|
1938
1994
|
large: {
|
|
@@ -1954,7 +2010,7 @@ const Qt = {
|
|
|
1954
2010
|
text: "New tab"
|
|
1955
2011
|
}
|
|
1956
2012
|
}
|
|
1957
|
-
},
|
|
2013
|
+
}, ce = {
|
|
1958
2014
|
"@type": "@builder.io/sdk:Element",
|
|
1959
2015
|
responsiveStyles: {
|
|
1960
2016
|
large: {
|
|
@@ -1970,7 +2026,7 @@ const Qt = {
|
|
|
1970
2026
|
text: "New tab content "
|
|
1971
2027
|
}
|
|
1972
2028
|
}
|
|
1973
|
-
},
|
|
2029
|
+
}, Zt = {
|
|
1974
2030
|
name: "Builder: Tabs",
|
|
1975
2031
|
inputs: [{
|
|
1976
2032
|
name: "tabs",
|
|
@@ -1980,16 +2036,16 @@ const Qt = {
|
|
|
1980
2036
|
name: "label",
|
|
1981
2037
|
type: "uiBlocks",
|
|
1982
2038
|
hideFromUI: !0,
|
|
1983
|
-
defaultValue: [
|
|
2039
|
+
defaultValue: [se]
|
|
1984
2040
|
}, {
|
|
1985
2041
|
name: "content",
|
|
1986
2042
|
type: "uiBlocks",
|
|
1987
2043
|
hideFromUI: !0,
|
|
1988
|
-
defaultValue: [
|
|
2044
|
+
defaultValue: [ce]
|
|
1989
2045
|
}],
|
|
1990
2046
|
defaultValue: [{
|
|
1991
2047
|
label: [{
|
|
1992
|
-
...
|
|
2048
|
+
...se,
|
|
1993
2049
|
component: {
|
|
1994
2050
|
name: "Text",
|
|
1995
2051
|
options: {
|
|
@@ -1998,7 +2054,7 @@ const Qt = {
|
|
|
1998
2054
|
}
|
|
1999
2055
|
}],
|
|
2000
2056
|
content: [{
|
|
2001
|
-
...
|
|
2057
|
+
...ce,
|
|
2002
2058
|
component: {
|
|
2003
2059
|
name: "Text",
|
|
2004
2060
|
options: {
|
|
@@ -2008,7 +2064,7 @@ const Qt = {
|
|
|
2008
2064
|
}]
|
|
2009
2065
|
}, {
|
|
2010
2066
|
label: [{
|
|
2011
|
-
...
|
|
2067
|
+
...se,
|
|
2012
2068
|
component: {
|
|
2013
2069
|
name: "Text",
|
|
2014
2070
|
options: {
|
|
@@ -2017,7 +2073,7 @@ const Qt = {
|
|
|
2017
2073
|
}
|
|
2018
2074
|
}],
|
|
2019
2075
|
content: [{
|
|
2020
|
-
...
|
|
2076
|
+
...ce,
|
|
2021
2077
|
component: {
|
|
2022
2078
|
name: "Text",
|
|
2023
2079
|
options: {
|
|
@@ -2066,9 +2122,15 @@ const Qt = {
|
|
|
2066
2122
|
label: "Right",
|
|
2067
2123
|
value: "flex-end"
|
|
2068
2124
|
}]
|
|
2069
|
-
}]
|
|
2125
|
+
}],
|
|
2126
|
+
shouldReceiveBuilderProps: {
|
|
2127
|
+
builderBlock: !0,
|
|
2128
|
+
builderContext: !0,
|
|
2129
|
+
builderComponents: !0,
|
|
2130
|
+
builderLinkComponent: !0
|
|
2131
|
+
}
|
|
2070
2132
|
};
|
|
2071
|
-
function
|
|
2133
|
+
function en(e) {
|
|
2072
2134
|
var l;
|
|
2073
2135
|
const [t, n] = C(
|
|
2074
2136
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2079,7 +2141,7 @@ function Zt(e) {
|
|
|
2079
2141
|
function o(a) {
|
|
2080
2142
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2081
2143
|
}
|
|
2082
|
-
return /* @__PURE__ */
|
|
2144
|
+
return /* @__PURE__ */ E("div", { children: [
|
|
2083
2145
|
/* @__PURE__ */ s(
|
|
2084
2146
|
"div",
|
|
2085
2147
|
{
|
|
@@ -2099,7 +2161,7 @@ function Zt(e) {
|
|
|
2099
2161
|
},
|
|
2100
2162
|
onClick: (c) => o(r),
|
|
2101
2163
|
children: /* @__PURE__ */ s(
|
|
2102
|
-
|
|
2164
|
+
L,
|
|
2103
2165
|
{
|
|
2104
2166
|
parent: e.builderBlock.id,
|
|
2105
2167
|
path: `component.options.tabs.${r}.label`,
|
|
@@ -2115,7 +2177,7 @@ function Zt(e) {
|
|
|
2115
2177
|
}
|
|
2116
2178
|
),
|
|
2117
2179
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2118
|
-
|
|
2180
|
+
L,
|
|
2119
2181
|
{
|
|
2120
2182
|
parent: e.builderBlock.id,
|
|
2121
2183
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2127,7 +2189,13 @@ function Zt(e) {
|
|
|
2127
2189
|
) }) : null
|
|
2128
2190
|
] });
|
|
2129
2191
|
}
|
|
2130
|
-
const
|
|
2192
|
+
const tn = {
|
|
2193
|
+
shouldReceiveBuilderProps: {
|
|
2194
|
+
builderBlock: !1,
|
|
2195
|
+
builderContext: !1,
|
|
2196
|
+
builderComponents: !1,
|
|
2197
|
+
builderLinkComponent: !1
|
|
2198
|
+
},
|
|
2131
2199
|
name: "Text",
|
|
2132
2200
|
static: !0,
|
|
2133
2201
|
isRSC: !0,
|
|
@@ -2146,7 +2214,7 @@ const en = {
|
|
|
2146
2214
|
textAlign: "center"
|
|
2147
2215
|
}
|
|
2148
2216
|
};
|
|
2149
|
-
function
|
|
2217
|
+
function nn(e) {
|
|
2150
2218
|
var t;
|
|
2151
2219
|
return /* @__PURE__ */ s(
|
|
2152
2220
|
"div",
|
|
@@ -2159,7 +2227,13 @@ function tn(e) {
|
|
|
2159
2227
|
}
|
|
2160
2228
|
);
|
|
2161
2229
|
}
|
|
2162
|
-
const
|
|
2230
|
+
const on = {
|
|
2231
|
+
shouldReceiveBuilderProps: {
|
|
2232
|
+
builderBlock: !1,
|
|
2233
|
+
builderContext: !1,
|
|
2234
|
+
builderComponents: !1,
|
|
2235
|
+
builderLinkComponent: !1
|
|
2236
|
+
},
|
|
2163
2237
|
name: "Custom Code",
|
|
2164
2238
|
static: !0,
|
|
2165
2239
|
requiredPermissions: ["editCode"],
|
|
@@ -2182,7 +2256,7 @@ const nn = {
|
|
|
2182
2256
|
advanced: !0
|
|
2183
2257
|
}]
|
|
2184
2258
|
};
|
|
2185
|
-
function
|
|
2259
|
+
function an(e) {
|
|
2186
2260
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
2187
2261
|
return P(() => {
|
|
2188
2262
|
var r;
|
|
@@ -2220,7 +2294,13 @@ function on(e) {
|
|
|
2220
2294
|
}
|
|
2221
2295
|
);
|
|
2222
2296
|
}
|
|
2223
|
-
const
|
|
2297
|
+
const rn = {
|
|
2298
|
+
shouldReceiveBuilderProps: {
|
|
2299
|
+
builderBlock: !1,
|
|
2300
|
+
builderContext: !1,
|
|
2301
|
+
builderComponents: !1,
|
|
2302
|
+
builderLinkComponent: !1
|
|
2303
|
+
},
|
|
2224
2304
|
name: "Embed",
|
|
2225
2305
|
static: !0,
|
|
2226
2306
|
inputs: [{
|
|
@@ -2248,8 +2328,8 @@ const an = {
|
|
|
2248
2328
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2249
2329
|
hideFromUI: !0
|
|
2250
2330
|
}]
|
|
2251
|
-
},
|
|
2252
|
-
function
|
|
2331
|
+
}, ln = ["text/javascript", "application/javascript", "application/ecmascript"], sn = (e) => ln.includes(e.type);
|
|
2332
|
+
function cn(e) {
|
|
2253
2333
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2254
2334
|
function c() {
|
|
2255
2335
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2261,7 +2341,7 @@ function sn(e) {
|
|
|
2261
2341
|
n.push(d.src);
|
|
2262
2342
|
const m = document.createElement("script");
|
|
2263
2343
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2264
|
-
} else if (
|
|
2344
|
+
} else if (sn(d) && !o.includes(d.innerText))
|
|
2265
2345
|
try {
|
|
2266
2346
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2267
2347
|
} catch (m) {
|
|
@@ -2280,7 +2360,7 @@ function sn(e) {
|
|
|
2280
2360
|
}
|
|
2281
2361
|
);
|
|
2282
2362
|
}
|
|
2283
|
-
const
|
|
2363
|
+
const dn = {
|
|
2284
2364
|
name: "Form:Form",
|
|
2285
2365
|
// editableTags: ['builder-form-error']
|
|
2286
2366
|
defaults: {
|
|
@@ -2510,98 +2590,104 @@ const cn = {
|
|
|
2510
2590
|
text: "Submit"
|
|
2511
2591
|
}
|
|
2512
2592
|
}
|
|
2513
|
-
}]
|
|
2514
|
-
|
|
2593
|
+
}],
|
|
2594
|
+
shouldReceiveBuilderProps: {
|
|
2595
|
+
builderBlock: !0,
|
|
2596
|
+
builderContext: !0,
|
|
2597
|
+
builderComponents: !0,
|
|
2598
|
+
builderLinkComponent: !0
|
|
2599
|
+
}
|
|
2600
|
+
}, un = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], mn = () => {
|
|
2515
2601
|
const e = process.env.NODE_ENV || "production";
|
|
2516
|
-
return
|
|
2517
|
-
},
|
|
2602
|
+
return un.includes(e) ? e : "production";
|
|
2603
|
+
}, fn = (e, t, n) => {
|
|
2518
2604
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2519
2605
|
return i === void 0 || i === e ? n : i;
|
|
2520
2606
|
};
|
|
2521
|
-
function
|
|
2607
|
+
function hn(e) {
|
|
2522
2608
|
var d, m;
|
|
2523
2609
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2524
|
-
function c(
|
|
2610
|
+
function c(b) {
|
|
2525
2611
|
var I, x;
|
|
2526
2612
|
const p = {
|
|
2527
2613
|
...e.builderContext.rootState,
|
|
2528
|
-
...
|
|
2614
|
+
...b
|
|
2529
2615
|
};
|
|
2530
2616
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2531
2617
|
}
|
|
2532
2618
|
function u() {
|
|
2533
|
-
return
|
|
2619
|
+
return F() && e.previewState || n;
|
|
2534
2620
|
}
|
|
2535
|
-
function f(
|
|
2621
|
+
function f(b) {
|
|
2536
2622
|
var I;
|
|
2537
2623
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2538
2624
|
if (e.sendSubmissionsTo === "zapier")
|
|
2539
|
-
|
|
2625
|
+
b.preventDefault();
|
|
2540
2626
|
else if (p) {
|
|
2541
2627
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2542
|
-
|
|
2628
|
+
b.preventDefault();
|
|
2543
2629
|
return;
|
|
2544
2630
|
}
|
|
2545
|
-
|
|
2546
|
-
const x =
|
|
2547
|
-
let
|
|
2548
|
-
const A = new FormData(x),
|
|
2631
|
+
b.preventDefault();
|
|
2632
|
+
const x = b.currentTarget || b.target, B = e.customHeaders || {};
|
|
2633
|
+
let V;
|
|
2634
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
|
|
2549
2635
|
let h;
|
|
2550
|
-
const y =
|
|
2551
|
-
if (
|
|
2552
|
-
if (
|
|
2553
|
-
if (
|
|
2554
|
-
return h =
|
|
2636
|
+
const y = g.name;
|
|
2637
|
+
if (g instanceof HTMLInputElement)
|
|
2638
|
+
if (g.type === "radio") {
|
|
2639
|
+
if (g.checked)
|
|
2640
|
+
return h = g.name, {
|
|
2555
2641
|
key: y,
|
|
2556
2642
|
value: h
|
|
2557
2643
|
};
|
|
2558
|
-
} else if (
|
|
2559
|
-
h =
|
|
2560
|
-
else if (
|
|
2561
|
-
const v =
|
|
2644
|
+
} else if (g.type === "checkbox")
|
|
2645
|
+
h = g.checked;
|
|
2646
|
+
else if (g.type === "number" || g.type === "range") {
|
|
2647
|
+
const v = g.valueAsNumber;
|
|
2562
2648
|
isNaN(v) || (h = v);
|
|
2563
2649
|
} else
|
|
2564
|
-
|
|
2650
|
+
g.type === "file" ? h = g.files : h = g.value;
|
|
2565
2651
|
else
|
|
2566
|
-
h =
|
|
2652
|
+
h = g.value;
|
|
2567
2653
|
return {
|
|
2568
2654
|
key: y,
|
|
2569
2655
|
value: h
|
|
2570
2656
|
};
|
|
2571
2657
|
});
|
|
2572
2658
|
let S = e.contentType;
|
|
2573
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(
|
|
2574
|
-
(
|
|
2659
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: g }) => {
|
|
2660
|
+
(g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (S = "multipart/form-data");
|
|
2575
2661
|
}), S !== "application/json")
|
|
2576
|
-
|
|
2662
|
+
V = A;
|
|
2577
2663
|
else {
|
|
2578
|
-
const
|
|
2579
|
-
Array.from(
|
|
2580
|
-
|
|
2581
|
-
}),
|
|
2664
|
+
const g = {};
|
|
2665
|
+
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2666
|
+
Pe(g, y, h);
|
|
2667
|
+
}), V = JSON.stringify(g);
|
|
2582
2668
|
}
|
|
2583
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2584
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2669
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (B["content-type"] = S));
|
|
2670
|
+
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2585
2671
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2586
2672
|
return;
|
|
2587
2673
|
i("sending");
|
|
2588
|
-
const
|
|
2674
|
+
const W = `${mn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2589
2675
|
e.sendSubmissionsToEmail || ""
|
|
2590
2676
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2591
2677
|
fetch(
|
|
2592
|
-
e.sendSubmissionsTo === "email" ?
|
|
2593
|
-
{ body:
|
|
2678
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2679
|
+
{ body: V, headers: B, method: e.method || "post" }
|
|
2594
2680
|
).then(
|
|
2595
|
-
async (
|
|
2681
|
+
async (g) => {
|
|
2596
2682
|
let h;
|
|
2597
|
-
const y =
|
|
2598
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2599
|
-
let v =
|
|
2683
|
+
const y = g.headers.get("content-type");
|
|
2684
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await g.json() : h = await g.text(), !g.ok && e.errorMessagePath) {
|
|
2685
|
+
let v = fn(h, e.errorMessagePath);
|
|
2600
2686
|
v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
|
|
2601
2687
|
}
|
|
2602
|
-
if (l(h), i(
|
|
2688
|
+
if (l(h), i(g.ok ? "success" : "error"), g.ok) {
|
|
2603
2689
|
const v = new CustomEvent("submit:success", {
|
|
2604
|
-
detail: { res:
|
|
2690
|
+
detail: { res: g, body: h }
|
|
2605
2691
|
});
|
|
2606
2692
|
if (t.current) {
|
|
2607
2693
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2618,18 +2704,18 @@ function fn(e) {
|
|
|
2618
2704
|
location.href = e.successUrl;
|
|
2619
2705
|
}
|
|
2620
2706
|
},
|
|
2621
|
-
(
|
|
2707
|
+
(g) => {
|
|
2622
2708
|
const h = new CustomEvent("submit:error", {
|
|
2623
|
-
detail: { error:
|
|
2709
|
+
detail: { error: g }
|
|
2624
2710
|
});
|
|
2625
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(
|
|
2711
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(g), i("error"));
|
|
2626
2712
|
}
|
|
2627
2713
|
);
|
|
2628
2714
|
}
|
|
2629
2715
|
}
|
|
2630
|
-
return /* @__PURE__ */
|
|
2716
|
+
return /* @__PURE__ */ E(R, { children: [
|
|
2631
2717
|
" ",
|
|
2632
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ E(
|
|
2633
2719
|
"form",
|
|
2634
2720
|
{
|
|
2635
2721
|
validate: e.validate,
|
|
@@ -2637,13 +2723,13 @@ function fn(e) {
|
|
|
2637
2723
|
action: !e.sendWithJs && e.action,
|
|
2638
2724
|
method: e.method,
|
|
2639
2725
|
name: e.name,
|
|
2640
|
-
onSubmit: (
|
|
2726
|
+
onSubmit: (b) => f(b),
|
|
2641
2727
|
...e.attributes,
|
|
2642
2728
|
children: [
|
|
2643
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2729
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((b, p) => /* @__PURE__ */ s(
|
|
2644
2730
|
_,
|
|
2645
2731
|
{
|
|
2646
|
-
block:
|
|
2732
|
+
block: b,
|
|
2647
2733
|
context: e.builderContext,
|
|
2648
2734
|
registeredComponents: e.builderComponents,
|
|
2649
2735
|
linkComponent: e.builderLinkComponent
|
|
@@ -2651,7 +2737,7 @@ function fn(e) {
|
|
|
2651
2737
|
`form-block-${p}`
|
|
2652
2738
|
)) }) : null,
|
|
2653
2739
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2654
|
-
|
|
2740
|
+
L,
|
|
2655
2741
|
{
|
|
2656
2742
|
path: "errorMessage",
|
|
2657
2743
|
blocks: e.errorMessage,
|
|
@@ -2659,7 +2745,7 @@ function fn(e) {
|
|
|
2659
2745
|
}
|
|
2660
2746
|
) : null,
|
|
2661
2747
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2662
|
-
|
|
2748
|
+
L,
|
|
2663
2749
|
{
|
|
2664
2750
|
path: "sendingMessage",
|
|
2665
2751
|
blocks: e.sendingMessage,
|
|
@@ -2668,7 +2754,7 @@ function fn(e) {
|
|
|
2668
2754
|
) : null,
|
|
2669
2755
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2670
2756
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2671
|
-
|
|
2757
|
+
L,
|
|
2672
2758
|
{
|
|
2673
2759
|
path: "successMessage",
|
|
2674
2760
|
blocks: e.successMessage,
|
|
@@ -2683,7 +2769,13 @@ function fn(e) {
|
|
|
2683
2769
|
" "
|
|
2684
2770
|
] });
|
|
2685
2771
|
}
|
|
2686
|
-
const
|
|
2772
|
+
const bn = {
|
|
2773
|
+
shouldReceiveBuilderProps: {
|
|
2774
|
+
builderBlock: !1,
|
|
2775
|
+
builderContext: !1,
|
|
2776
|
+
builderComponents: !1,
|
|
2777
|
+
builderLinkComponent: !1
|
|
2778
|
+
},
|
|
2687
2779
|
name: "Form:Input",
|
|
2688
2780
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2689
2781
|
inputs: [
|
|
@@ -2736,11 +2828,11 @@ const hn = {
|
|
|
2736
2828
|
}
|
|
2737
2829
|
};
|
|
2738
2830
|
function gn(e) {
|
|
2739
|
-
return /* @__PURE__ */
|
|
2831
|
+
return /* @__PURE__ */ Be(
|
|
2740
2832
|
"input",
|
|
2741
2833
|
{
|
|
2742
2834
|
...e.attributes,
|
|
2743
|
-
key:
|
|
2835
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2744
2836
|
placeholder: e.placeholder,
|
|
2745
2837
|
type: e.type,
|
|
2746
2838
|
name: e.name,
|
|
@@ -2750,7 +2842,13 @@ function gn(e) {
|
|
|
2750
2842
|
}
|
|
2751
2843
|
);
|
|
2752
2844
|
}
|
|
2753
|
-
const
|
|
2845
|
+
const pn = {
|
|
2846
|
+
shouldReceiveBuilderProps: {
|
|
2847
|
+
builderBlock: !1,
|
|
2848
|
+
builderContext: !1,
|
|
2849
|
+
builderComponents: !1,
|
|
2850
|
+
builderLinkComponent: !1
|
|
2851
|
+
},
|
|
2754
2852
|
name: "Form:Select",
|
|
2755
2853
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2756
2854
|
defaultStyles: {
|
|
@@ -2793,14 +2891,14 @@ const bn = {
|
|
|
2793
2891
|
static: !0,
|
|
2794
2892
|
noWrap: !0
|
|
2795
2893
|
};
|
|
2796
|
-
function
|
|
2894
|
+
function yn(e) {
|
|
2797
2895
|
var t;
|
|
2798
|
-
return /* @__PURE__ */
|
|
2896
|
+
return /* @__PURE__ */ Be(
|
|
2799
2897
|
"select",
|
|
2800
2898
|
{
|
|
2801
2899
|
...e.attributes,
|
|
2802
2900
|
value: e.value,
|
|
2803
|
-
key:
|
|
2901
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2804
2902
|
defaultValue: e.defaultValue,
|
|
2805
2903
|
name: e.name,
|
|
2806
2904
|
required: e.required
|
|
@@ -2808,7 +2906,13 @@ function pn(e) {
|
|
|
2808
2906
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2809
2907
|
);
|
|
2810
2908
|
}
|
|
2811
|
-
const
|
|
2909
|
+
const xn = {
|
|
2910
|
+
shouldReceiveBuilderProps: {
|
|
2911
|
+
builderBlock: !1,
|
|
2912
|
+
builderContext: !1,
|
|
2913
|
+
builderComponents: !1,
|
|
2914
|
+
builderLinkComponent: !1
|
|
2915
|
+
},
|
|
2812
2916
|
name: "Form:SubmitButton",
|
|
2813
2917
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2814
2918
|
defaultStyles: {
|
|
@@ -2834,10 +2938,16 @@ const yn = {
|
|
|
2834
2938
|
// TODO: defaultChildren
|
|
2835
2939
|
// canHaveChildren: true,
|
|
2836
2940
|
};
|
|
2837
|
-
function
|
|
2941
|
+
function vn(e) {
|
|
2838
2942
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2839
2943
|
}
|
|
2840
|
-
const
|
|
2944
|
+
const Sn = {
|
|
2945
|
+
shouldReceiveBuilderProps: {
|
|
2946
|
+
builderBlock: !1,
|
|
2947
|
+
builderContext: !1,
|
|
2948
|
+
builderComponents: !1,
|
|
2949
|
+
builderLinkComponent: !1
|
|
2950
|
+
},
|
|
2841
2951
|
name: "Form:TextArea",
|
|
2842
2952
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2843
2953
|
inputs: [{
|
|
@@ -2874,7 +2984,7 @@ const vn = {
|
|
|
2874
2984
|
static: !0,
|
|
2875
2985
|
noWrap: !0
|
|
2876
2986
|
};
|
|
2877
|
-
function
|
|
2987
|
+
function kn(e) {
|
|
2878
2988
|
return /* @__PURE__ */ s(
|
|
2879
2989
|
"textarea",
|
|
2880
2990
|
{
|
|
@@ -2887,7 +2997,13 @@ function Sn(e) {
|
|
|
2887
2997
|
}
|
|
2888
2998
|
);
|
|
2889
2999
|
}
|
|
2890
|
-
const
|
|
3000
|
+
const Cn = {
|
|
3001
|
+
shouldReceiveBuilderProps: {
|
|
3002
|
+
builderBlock: !1,
|
|
3003
|
+
builderContext: !1,
|
|
3004
|
+
builderComponents: !1,
|
|
3005
|
+
builderLinkComponent: !1
|
|
3006
|
+
},
|
|
2891
3007
|
// friendlyName?
|
|
2892
3008
|
name: "Raw:Img",
|
|
2893
3009
|
hideFromInsertMenu: !0,
|
|
@@ -2902,7 +3018,7 @@ const kn = {
|
|
|
2902
3018
|
noWrap: !0,
|
|
2903
3019
|
static: !0
|
|
2904
3020
|
};
|
|
2905
|
-
function
|
|
3021
|
+
function Tn(e) {
|
|
2906
3022
|
return /* @__PURE__ */ s(
|
|
2907
3023
|
"img",
|
|
2908
3024
|
{
|
|
@@ -2914,10 +3030,10 @@ function Cn(e) {
|
|
|
2914
3030
|
src: e.imgSrc || e.image,
|
|
2915
3031
|
...e.attributes
|
|
2916
3032
|
},
|
|
2917
|
-
|
|
3033
|
+
F() && e.imgSrc || "default-key"
|
|
2918
3034
|
);
|
|
2919
3035
|
}
|
|
2920
|
-
const
|
|
3036
|
+
const In = {
|
|
2921
3037
|
name: "Video",
|
|
2922
3038
|
canHaveChildren: !0,
|
|
2923
3039
|
defaultStyles: {
|
|
@@ -2997,9 +3113,15 @@ const Tn = {
|
|
|
2997
3113
|
helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
|
|
2998
3114
|
defaultValue: !0,
|
|
2999
3115
|
advanced: !0
|
|
3000
|
-
}]
|
|
3116
|
+
}],
|
|
3117
|
+
shouldReceiveBuilderProps: {
|
|
3118
|
+
builderBlock: !0,
|
|
3119
|
+
builderContext: !1,
|
|
3120
|
+
builderComponents: !1,
|
|
3121
|
+
builderLinkComponent: !1
|
|
3122
|
+
}
|
|
3001
3123
|
};
|
|
3002
|
-
function
|
|
3124
|
+
function wn(e) {
|
|
3003
3125
|
var i, o, l, a, r, c, u;
|
|
3004
3126
|
function t() {
|
|
3005
3127
|
return {
|
|
@@ -3025,7 +3147,7 @@ function In(e) {
|
|
|
3025
3147
|
...t()
|
|
3026
3148
|
};
|
|
3027
3149
|
}
|
|
3028
|
-
return /* @__PURE__ */
|
|
3150
|
+
return /* @__PURE__ */ E(
|
|
3029
3151
|
"div",
|
|
3030
3152
|
{
|
|
3031
3153
|
style: {
|
|
@@ -3100,64 +3222,64 @@ function In(e) {
|
|
|
3100
3222
|
}
|
|
3101
3223
|
);
|
|
3102
3224
|
}
|
|
3103
|
-
const
|
|
3104
|
-
component:
|
|
3105
|
-
...
|
|
3225
|
+
const Rn = () => [{
|
|
3226
|
+
component: an,
|
|
3227
|
+
...on
|
|
3106
3228
|
}, {
|
|
3107
|
-
component:
|
|
3108
|
-
...
|
|
3229
|
+
component: cn,
|
|
3230
|
+
...rn
|
|
3109
3231
|
}, {
|
|
3110
|
-
component:
|
|
3111
|
-
...
|
|
3232
|
+
component: hn,
|
|
3233
|
+
...dn
|
|
3112
3234
|
}, {
|
|
3113
3235
|
component: gn,
|
|
3114
|
-
...hn
|
|
3115
|
-
}, {
|
|
3116
|
-
component: xn,
|
|
3117
|
-
...yn
|
|
3118
|
-
}, {
|
|
3119
|
-
component: pn,
|
|
3120
3236
|
...bn
|
|
3121
3237
|
}, {
|
|
3122
|
-
component:
|
|
3123
|
-
...
|
|
3238
|
+
component: vn,
|
|
3239
|
+
...xn
|
|
3240
|
+
}, {
|
|
3241
|
+
component: yn,
|
|
3242
|
+
...pn
|
|
3124
3243
|
}, {
|
|
3125
|
-
component:
|
|
3126
|
-
...
|
|
3244
|
+
component: kn,
|
|
3245
|
+
...Sn
|
|
3127
3246
|
}, {
|
|
3128
|
-
component:
|
|
3129
|
-
...
|
|
3130
|
-
}], Se = () => [{
|
|
3131
|
-
component: ot,
|
|
3132
|
-
...Kt
|
|
3247
|
+
component: Tn,
|
|
3248
|
+
...Cn
|
|
3133
3249
|
}, {
|
|
3134
|
-
component:
|
|
3250
|
+
component: wn,
|
|
3251
|
+
...In
|
|
3252
|
+
}], ke = () => [{
|
|
3253
|
+
component: at,
|
|
3135
3254
|
...qt
|
|
3136
3255
|
}, {
|
|
3137
|
-
component:
|
|
3256
|
+
component: Lt,
|
|
3138
3257
|
..._t
|
|
3139
3258
|
}, {
|
|
3140
|
-
component:
|
|
3259
|
+
component: Dt,
|
|
3141
3260
|
...zt
|
|
3142
3261
|
}, {
|
|
3143
3262
|
component: Ut,
|
|
3144
3263
|
...Jt
|
|
3145
3264
|
}, {
|
|
3146
|
-
component:
|
|
3265
|
+
component: Mt,
|
|
3147
3266
|
...Yt
|
|
3148
3267
|
}, {
|
|
3149
|
-
component:
|
|
3150
|
-
...
|
|
3151
|
-
}, {
|
|
3152
|
-
component: tn,
|
|
3153
|
-
...en
|
|
3268
|
+
component: Qt,
|
|
3269
|
+
...Gt
|
|
3154
3270
|
}, {
|
|
3155
|
-
component:
|
|
3271
|
+
component: Gn,
|
|
3156
3272
|
...Xt
|
|
3157
3273
|
}, {
|
|
3158
|
-
component:
|
|
3159
|
-
...
|
|
3160
|
-
},
|
|
3274
|
+
component: nn,
|
|
3275
|
+
...tn
|
|
3276
|
+
}, {
|
|
3277
|
+
component: en,
|
|
3278
|
+
...Zt
|
|
3279
|
+
}, {
|
|
3280
|
+
component: Kt,
|
|
3281
|
+
...Ht
|
|
3282
|
+
}, ...Rn()], Bn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3161
3283
|
function getAndSetVariantId() {
|
|
3162
3284
|
function setCookie(name, value, days) {
|
|
3163
3285
|
let expires = '';
|
|
@@ -3213,7 +3335,7 @@ const wn = () => [{
|
|
|
3213
3335
|
}).join('');
|
|
3214
3336
|
styleEl.innerHTML = newStyleStr;
|
|
3215
3337
|
}
|
|
3216
|
-
}`,
|
|
3338
|
+
}`, Pn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3217
3339
|
if (!navigator.cookieEnabled) {
|
|
3218
3340
|
return;
|
|
3219
3341
|
}
|
|
@@ -3247,26 +3369,26 @@ const wn = () => [{
|
|
|
3247
3369
|
thisScriptEl?.remove();
|
|
3248
3370
|
}
|
|
3249
3371
|
return;
|
|
3250
|
-
}`,
|
|
3372
|
+
}`, je = "builderIoAbTest", Ue = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3251
3373
|
...t,
|
|
3252
3374
|
testVariationId: t.id,
|
|
3253
3375
|
id: e == null ? void 0 : e.id
|
|
3254
|
-
})),
|
|
3376
|
+
})), En = ({
|
|
3255
3377
|
canTrack: e,
|
|
3256
3378
|
content: t
|
|
3257
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
3258
|
-
window.${
|
|
3259
|
-
window.${
|
|
3260
|
-
`,
|
|
3261
|
-
window.${
|
|
3262
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3263
|
-
)`,
|
|
3379
|
+
}) => !(!(J(t).length > 0) || !e || G()), Vn = (e) => e === "react" || e === "reactNative", Me = Vn(q), An = () => `
|
|
3380
|
+
window.${je} = ${Bn}
|
|
3381
|
+
window.${Ue} = ${Pn}
|
|
3382
|
+
`, Nn = (e, t) => `
|
|
3383
|
+
window.${je}(
|
|
3384
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3385
|
+
)`, Wn = ({
|
|
3264
3386
|
contentId: e,
|
|
3265
3387
|
variationId: t
|
|
3266
|
-
}) => `window.${
|
|
3267
|
-
"${t}", "${e}", ${
|
|
3388
|
+
}) => `window.${Ue}(
|
|
3389
|
+
"${t}", "${e}", ${Me}
|
|
3268
3390
|
)`;
|
|
3269
|
-
function
|
|
3391
|
+
function de(e) {
|
|
3270
3392
|
return /* @__PURE__ */ s(
|
|
3271
3393
|
"script",
|
|
3272
3394
|
{
|
|
@@ -3275,10 +3397,10 @@ function ce(e) {
|
|
|
3275
3397
|
}
|
|
3276
3398
|
);
|
|
3277
3399
|
}
|
|
3278
|
-
function
|
|
3400
|
+
function Ce(e) {
|
|
3279
3401
|
return Math.round(e * 1e3) / 1e3;
|
|
3280
3402
|
}
|
|
3281
|
-
const
|
|
3403
|
+
const $n = (e, t, n = !0) => {
|
|
3282
3404
|
if (!(e instanceof HTMLElement))
|
|
3283
3405
|
return null;
|
|
3284
3406
|
let i = n ? e : e.parentElement;
|
|
@@ -3289,28 +3411,28 @@ const Fn = (e, t, n = !0) => {
|
|
|
3289
3411
|
return i;
|
|
3290
3412
|
} while (i = i.parentElement);
|
|
3291
3413
|
return null;
|
|
3292
|
-
},
|
|
3414
|
+
}, Fn = (e) => $n(e, (t) => {
|
|
3293
3415
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3294
3416
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3295
|
-
}),
|
|
3417
|
+
}), Te = ({
|
|
3296
3418
|
event: e,
|
|
3297
3419
|
target: t
|
|
3298
3420
|
}) => {
|
|
3299
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3421
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = Ce(i / n.width), a = Ce(o / n.height);
|
|
3300
3422
|
return {
|
|
3301
3423
|
x: l,
|
|
3302
3424
|
y: a
|
|
3303
3425
|
};
|
|
3304
|
-
},
|
|
3305
|
-
const t = e.target, n = t &&
|
|
3426
|
+
}, Ln = (e) => {
|
|
3427
|
+
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3306
3428
|
return {
|
|
3307
3429
|
targetBuilderElement: i || void 0,
|
|
3308
3430
|
metadata: {
|
|
3309
|
-
targetOffset: t ?
|
|
3431
|
+
targetOffset: t ? Te({
|
|
3310
3432
|
event: e,
|
|
3311
3433
|
target: t
|
|
3312
3434
|
}) : void 0,
|
|
3313
|
-
builderTargetOffset: n ?
|
|
3435
|
+
builderTargetOffset: n ? Te({
|
|
3314
3436
|
event: e,
|
|
3315
3437
|
target: n
|
|
3316
3438
|
}) : void 0,
|
|
@@ -3343,15 +3465,15 @@ font-weight: ${r};
|
|
|
3343
3465
|
`.trim());
|
|
3344
3466
|
}
|
|
3345
3467
|
return o;
|
|
3346
|
-
},
|
|
3468
|
+
}, On = ({
|
|
3347
3469
|
customFonts: e
|
|
3348
3470
|
}) => {
|
|
3349
3471
|
var t;
|
|
3350
3472
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3351
|
-
},
|
|
3473
|
+
}, jn = ({
|
|
3352
3474
|
cssCode: e,
|
|
3353
3475
|
contentId: t
|
|
3354
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3476
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
|
|
3355
3477
|
.builder-button {
|
|
3356
3478
|
all: unset;
|
|
3357
3479
|
}
|
|
@@ -3368,9 +3490,9 @@ font-weight: ${r};
|
|
|
3368
3490
|
text-align: inherit;
|
|
3369
3491
|
font-family: inherit;
|
|
3370
3492
|
}
|
|
3371
|
-
`,
|
|
3372
|
-
function
|
|
3373
|
-
var
|
|
3493
|
+
`, Mn = (e) => e ? "" : Un, Hn = (e) => `variant-${e}`;
|
|
3494
|
+
function Kn(e) {
|
|
3495
|
+
var V, A, O, S, w, W, g;
|
|
3374
3496
|
const t = ee(null);
|
|
3375
3497
|
function n(h) {
|
|
3376
3498
|
var v, k;
|
|
@@ -3384,7 +3506,7 @@ function Hn(e) {
|
|
|
3384
3506
|
}));
|
|
3385
3507
|
}
|
|
3386
3508
|
function i(h) {
|
|
3387
|
-
var v, k, T, N,
|
|
3509
|
+
var v, k, T, N, j;
|
|
3388
3510
|
const y = {
|
|
3389
3511
|
...e.builderContextSignal.content,
|
|
3390
3512
|
...h,
|
|
@@ -3395,11 +3517,11 @@ function Hn(e) {
|
|
|
3395
3517
|
meta: {
|
|
3396
3518
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3397
3519
|
...h == null ? void 0 : h.meta,
|
|
3398
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((
|
|
3520
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
|
|
3399
3521
|
}
|
|
3400
3522
|
};
|
|
3401
|
-
e.setBuilderContextSignal((
|
|
3402
|
-
|
|
3523
|
+
e.setBuilderContextSignal(($) => ({
|
|
3524
|
+
...$,
|
|
3403
3525
|
content: y
|
|
3404
3526
|
}));
|
|
3405
3527
|
}
|
|
@@ -3413,7 +3535,7 @@ function Hn(e) {
|
|
|
3413
3535
|
() => e.contentWrapper || "div"
|
|
3414
3536
|
);
|
|
3415
3537
|
function r(h) {
|
|
3416
|
-
return
|
|
3538
|
+
return Ge({
|
|
3417
3539
|
model: e.model,
|
|
3418
3540
|
trustedHosts: e.trustedHosts,
|
|
3419
3541
|
callbacks: {
|
|
@@ -3427,7 +3549,7 @@ function Hn(e) {
|
|
|
3427
3549
|
});
|
|
3428
3550
|
},
|
|
3429
3551
|
animation: (y) => {
|
|
3430
|
-
|
|
3552
|
+
We(y);
|
|
3431
3553
|
},
|
|
3432
3554
|
contentUpdate: (y) => {
|
|
3433
3555
|
i(y);
|
|
@@ -3438,7 +3560,7 @@ function Hn(e) {
|
|
|
3438
3560
|
function c() {
|
|
3439
3561
|
var y, v;
|
|
3440
3562
|
const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
|
|
3441
|
-
h &&
|
|
3563
|
+
h && K({
|
|
3442
3564
|
code: h,
|
|
3443
3565
|
context: e.context || {},
|
|
3444
3566
|
localState: void 0,
|
|
@@ -3450,35 +3572,35 @@ function Hn(e) {
|
|
|
3450
3572
|
enableCache: !1
|
|
3451
3573
|
});
|
|
3452
3574
|
}
|
|
3453
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3575
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [b, p] = C(() => !1);
|
|
3454
3576
|
function I(h) {
|
|
3455
3577
|
var y, v;
|
|
3456
3578
|
if (e.builderContextSignal.content) {
|
|
3457
3579
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3458
|
-
|
|
3580
|
+
be({
|
|
3459
3581
|
type: "click",
|
|
3460
3582
|
canTrack: Q(e.canTrack),
|
|
3461
3583
|
contentId: T,
|
|
3462
3584
|
apiKey: e.apiKey,
|
|
3463
3585
|
variationId: k !== T ? k : void 0,
|
|
3464
|
-
|
|
3465
|
-
unique: !
|
|
3586
|
+
...Ln(h),
|
|
3587
|
+
unique: !b
|
|
3466
3588
|
});
|
|
3467
3589
|
}
|
|
3468
|
-
|
|
3590
|
+
b || p(!0);
|
|
3469
3591
|
}
|
|
3470
3592
|
function x() {
|
|
3471
3593
|
var y, v, k;
|
|
3472
3594
|
const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3473
3595
|
Object.entries(h).forEach(([T, N]) => {
|
|
3474
|
-
if (!N || d[T] || u[T] &&
|
|
3596
|
+
if (!N || d[T] || u[T] && !F())
|
|
3475
3597
|
return;
|
|
3476
3598
|
d[T] = !0;
|
|
3477
|
-
const
|
|
3599
|
+
const j = N.replace(
|
|
3478
3600
|
/{{([^}]+)}}/g,
|
|
3479
|
-
(
|
|
3480
|
-
|
|
3481
|
-
code:
|
|
3601
|
+
($, He) => String(
|
|
3602
|
+
K({
|
|
3603
|
+
code: He,
|
|
3482
3604
|
context: e.context || {},
|
|
3483
3605
|
localState: void 0,
|
|
3484
3606
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3487,24 +3609,24 @@ function Hn(e) {
|
|
|
3487
3609
|
})
|
|
3488
3610
|
)
|
|
3489
3611
|
);
|
|
3490
|
-
|
|
3612
|
+
Qe(j).then(($) => $.json()).then(($) => {
|
|
3491
3613
|
n({
|
|
3492
|
-
[T]:
|
|
3614
|
+
[T]: $
|
|
3493
3615
|
}), u[T] = !0;
|
|
3494
|
-
}).catch((
|
|
3495
|
-
console.error("error fetching dynamic data", N,
|
|
3616
|
+
}).catch(($) => {
|
|
3617
|
+
console.error("error fetching dynamic data", N, $);
|
|
3496
3618
|
}).finally(() => {
|
|
3497
3619
|
d[T] = !1;
|
|
3498
3620
|
});
|
|
3499
3621
|
});
|
|
3500
3622
|
}
|
|
3501
|
-
function
|
|
3502
|
-
|
|
3623
|
+
function B() {
|
|
3624
|
+
F() && window.dispatchEvent(
|
|
3503
3625
|
new CustomEvent(
|
|
3504
3626
|
"builder:component:stateChange",
|
|
3505
3627
|
{
|
|
3506
3628
|
detail: {
|
|
3507
|
-
state:
|
|
3629
|
+
state: ue(e.builderContextSignal.rootState),
|
|
3508
3630
|
ref: {
|
|
3509
3631
|
name: e.model
|
|
3510
3632
|
}
|
|
@@ -3516,7 +3638,7 @@ function Hn(e) {
|
|
|
3516
3638
|
return P(() => {
|
|
3517
3639
|
var h, y;
|
|
3518
3640
|
if (G()) {
|
|
3519
|
-
if (
|
|
3641
|
+
if (F() && (window.addEventListener("message", r), _e(), ze({
|
|
3520
3642
|
...e.locale ? {
|
|
3521
3643
|
locale: e.locale
|
|
3522
3644
|
} : {},
|
|
@@ -3530,14 +3652,14 @@ function Hn(e) {
|
|
|
3530
3652
|
e.builderContextSignal.componentInfos
|
|
3531
3653
|
).forEach((k) => {
|
|
3532
3654
|
var N;
|
|
3533
|
-
const T =
|
|
3655
|
+
const T = Je(k);
|
|
3534
3656
|
(N = window.parent) == null || N.postMessage(T, "*");
|
|
3535
3657
|
}), window.addEventListener(
|
|
3536
3658
|
"builder:component:stateChangeListenerActivated",
|
|
3537
|
-
|
|
3659
|
+
B
|
|
3538
3660
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3539
3661
|
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
|
|
3540
|
-
|
|
3662
|
+
be({
|
|
3541
3663
|
type: "impression",
|
|
3542
3664
|
canTrack: !0,
|
|
3543
3665
|
contentId: T,
|
|
@@ -3545,31 +3667,31 @@ function Hn(e) {
|
|
|
3545
3667
|
variationId: k !== T ? k : void 0
|
|
3546
3668
|
});
|
|
3547
3669
|
}
|
|
3548
|
-
if (
|
|
3670
|
+
if (Ye() && !F()) {
|
|
3549
3671
|
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3550
3672
|
`builder.overrides.${T}`
|
|
3551
|
-
),
|
|
3552
|
-
T === e.model &&
|
|
3673
|
+
), j = k.get("apiKey") || k.get("builder.space");
|
|
3674
|
+
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
|
|
3553
3675
|
model: e.model,
|
|
3554
3676
|
apiKey: e.apiKey,
|
|
3555
3677
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3556
|
-
}).then((
|
|
3557
|
-
|
|
3678
|
+
}).then(($) => {
|
|
3679
|
+
$ && i($);
|
|
3558
3680
|
});
|
|
3559
3681
|
}
|
|
3560
3682
|
}
|
|
3561
3683
|
}, []), P(() => {
|
|
3562
3684
|
e.apiKey || Z.error(
|
|
3563
3685
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3564
|
-
), c(), x(),
|
|
3686
|
+
), c(), x(), B();
|
|
3565
3687
|
}, []), P(() => {
|
|
3566
3688
|
e.content && i(e.content);
|
|
3567
3689
|
}, [e.content]), P(() => {
|
|
3568
3690
|
c();
|
|
3569
|
-
}, [(A = (
|
|
3691
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3570
3692
|
x();
|
|
3571
|
-
}, [(S = (
|
|
3572
|
-
|
|
3693
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), P(() => {
|
|
3694
|
+
B();
|
|
3573
3695
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3574
3696
|
e.data && n(e.data);
|
|
3575
3697
|
}, [e.data]), P(() => {
|
|
@@ -3579,9 +3701,9 @@ function Hn(e) {
|
|
|
3579
3701
|
}, [e.locale]), P(() => () => {
|
|
3580
3702
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3581
3703
|
"builder:component:stateChangeListenerActivated",
|
|
3582
|
-
|
|
3704
|
+
B
|
|
3583
3705
|
));
|
|
3584
|
-
}, []), /* @__PURE__ */ s(
|
|
3706
|
+
}, []), /* @__PURE__ */ s(fe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3585
3707
|
l,
|
|
3586
3708
|
{
|
|
3587
3709
|
ref: t,
|
|
@@ -3590,29 +3712,29 @@ function Hn(e) {
|
|
|
3590
3712
|
"builder-model": e.model,
|
|
3591
3713
|
...o(),
|
|
3592
3714
|
...e.contentWrapperProps,
|
|
3593
|
-
className:
|
|
3594
|
-
((
|
|
3715
|
+
className: Hn(
|
|
3716
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((g = e.content) == null ? void 0 : g.id)
|
|
3595
3717
|
),
|
|
3596
3718
|
children: e.children
|
|
3597
3719
|
}
|
|
3598
3720
|
) : null });
|
|
3599
3721
|
}
|
|
3600
|
-
function
|
|
3722
|
+
function qn(e) {
|
|
3601
3723
|
const [t, n] = C(
|
|
3602
3724
|
() => `
|
|
3603
|
-
${
|
|
3725
|
+
${jn({
|
|
3604
3726
|
cssCode: e.cssCode,
|
|
3605
3727
|
contentId: e.contentId
|
|
3606
3728
|
})}
|
|
3607
|
-
${
|
|
3729
|
+
${On({
|
|
3608
3730
|
customFonts: e.customFonts
|
|
3609
3731
|
})}
|
|
3610
|
-
${
|
|
3732
|
+
${Mn(e.isNestedRender)}
|
|
3611
3733
|
`.trim()
|
|
3612
3734
|
);
|
|
3613
|
-
return /* @__PURE__ */ s(
|
|
3735
|
+
return /* @__PURE__ */ s(ie, { id: "builderio-content", styles: t });
|
|
3614
3736
|
}
|
|
3615
|
-
const
|
|
3737
|
+
const _n = ({
|
|
3616
3738
|
content: e,
|
|
3617
3739
|
data: t,
|
|
3618
3740
|
locale: n
|
|
@@ -3629,7 +3751,7 @@ const qn = ({
|
|
|
3629
3751
|
locale: n
|
|
3630
3752
|
} : {}
|
|
3631
3753
|
};
|
|
3632
|
-
},
|
|
3754
|
+
}, zn = ({
|
|
3633
3755
|
content: e,
|
|
3634
3756
|
data: t
|
|
3635
3757
|
}) => e ? {
|
|
@@ -3640,12 +3762,12 @@ const qn = ({
|
|
|
3640
3762
|
},
|
|
3641
3763
|
meta: e == null ? void 0 : e.meta
|
|
3642
3764
|
} : void 0;
|
|
3643
|
-
function
|
|
3644
|
-
var c, u, f, d, m,
|
|
3765
|
+
function Ie(e) {
|
|
3766
|
+
var c, u, f, d, m, b, p;
|
|
3645
3767
|
const [t, n] = C(
|
|
3646
3768
|
() => {
|
|
3647
3769
|
var I, x;
|
|
3648
|
-
return
|
|
3770
|
+
return Wn({
|
|
3649
3771
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3650
3772
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3651
3773
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3661,25 +3783,25 @@ function Te(e) {
|
|
|
3661
3783
|
}
|
|
3662
3784
|
const [o, l] = C(
|
|
3663
3785
|
() => [
|
|
3664
|
-
...
|
|
3786
|
+
...ke(),
|
|
3665
3787
|
...e.customComponents || []
|
|
3666
3788
|
].reduce(
|
|
3667
|
-
(I, { component: x, ...
|
|
3789
|
+
(I, { component: x, ...B }) => ({
|
|
3668
3790
|
...I,
|
|
3669
|
-
[
|
|
3791
|
+
[B.name]: {
|
|
3670
3792
|
component: x,
|
|
3671
|
-
...ge(
|
|
3793
|
+
...ge(B)
|
|
3672
3794
|
}
|
|
3673
3795
|
}),
|
|
3674
3796
|
{}
|
|
3675
3797
|
)
|
|
3676
3798
|
), [a, r] = C(() => ({
|
|
3677
|
-
content:
|
|
3799
|
+
content: zn({
|
|
3678
3800
|
content: e.content,
|
|
3679
3801
|
data: e.data
|
|
3680
3802
|
}),
|
|
3681
3803
|
localState: void 0,
|
|
3682
|
-
rootState:
|
|
3804
|
+
rootState: _n({
|
|
3683
3805
|
content: e.content,
|
|
3684
3806
|
data: e.data,
|
|
3685
3807
|
locale: e.locale
|
|
@@ -3690,12 +3812,12 @@ function Te(e) {
|
|
|
3690
3812
|
apiKey: e.apiKey,
|
|
3691
3813
|
apiVersion: e.apiVersion,
|
|
3692
3814
|
componentInfos: [
|
|
3693
|
-
...
|
|
3815
|
+
...ke(),
|
|
3694
3816
|
...e.customComponents || []
|
|
3695
3817
|
].reduce(
|
|
3696
|
-
(I, { component: x, ...
|
|
3818
|
+
(I, { component: x, ...B }) => ({
|
|
3697
3819
|
...I,
|
|
3698
|
-
[
|
|
3820
|
+
[B.name]: ge(B)
|
|
3699
3821
|
}),
|
|
3700
3822
|
{}
|
|
3701
3823
|
),
|
|
@@ -3704,13 +3826,13 @@ function Te(e) {
|
|
|
3704
3826
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3705
3827
|
}));
|
|
3706
3828
|
return /* @__PURE__ */ s(
|
|
3707
|
-
|
|
3829
|
+
Ee.Provider,
|
|
3708
3830
|
{
|
|
3709
3831
|
value: {
|
|
3710
3832
|
registeredComponents: o
|
|
3711
3833
|
},
|
|
3712
|
-
children: /* @__PURE__ */
|
|
3713
|
-
|
|
3834
|
+
children: /* @__PURE__ */ E(
|
|
3835
|
+
Kn,
|
|
3714
3836
|
{
|
|
3715
3837
|
content: e.content,
|
|
3716
3838
|
data: e.data,
|
|
@@ -3728,14 +3850,14 @@ function Te(e) {
|
|
|
3728
3850
|
setBuilderContextSignal: r,
|
|
3729
3851
|
children: [
|
|
3730
3852
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3731
|
-
|
|
3853
|
+
de,
|
|
3732
3854
|
{
|
|
3733
3855
|
id: "builderio-variant-visibility",
|
|
3734
3856
|
scriptStr: t
|
|
3735
3857
|
}
|
|
3736
3858
|
) : null,
|
|
3737
3859
|
/* @__PURE__ */ s(
|
|
3738
|
-
|
|
3860
|
+
qn,
|
|
3739
3861
|
{
|
|
3740
3862
|
isNestedRender: e.isNestedRender,
|
|
3741
3863
|
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
@@ -3744,9 +3866,9 @@ function Te(e) {
|
|
|
3744
3866
|
}
|
|
3745
3867
|
),
|
|
3746
3868
|
/* @__PURE__ */ s(
|
|
3747
|
-
|
|
3869
|
+
L,
|
|
3748
3870
|
{
|
|
3749
|
-
blocks: (p = (
|
|
3871
|
+
blocks: (p = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : p.blocks,
|
|
3750
3872
|
context: a,
|
|
3751
3873
|
registeredComponents: o,
|
|
3752
3874
|
linkComponent: e.linkComponent
|
|
@@ -3758,17 +3880,17 @@ function Te(e) {
|
|
|
3758
3880
|
}
|
|
3759
3881
|
);
|
|
3760
3882
|
}
|
|
3761
|
-
function
|
|
3883
|
+
function Jn(e) {
|
|
3762
3884
|
var a;
|
|
3763
3885
|
const [t, n] = C(
|
|
3764
|
-
() =>
|
|
3886
|
+
() => En({
|
|
3765
3887
|
canTrack: Q(e.canTrack),
|
|
3766
3888
|
content: e.content
|
|
3767
3889
|
})
|
|
3768
3890
|
);
|
|
3769
3891
|
function i() {
|
|
3770
3892
|
var r;
|
|
3771
|
-
return
|
|
3893
|
+
return Nn(
|
|
3772
3894
|
J(e.content).map((c) => ({
|
|
3773
3895
|
id: c.testVariationId,
|
|
3774
3896
|
testRatio: c.testRatio
|
|
@@ -3784,37 +3906,38 @@ function zn(e) {
|
|
|
3784
3906
|
return t ? {
|
|
3785
3907
|
...e.content,
|
|
3786
3908
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3787
|
-
} :
|
|
3909
|
+
} : Xe({
|
|
3788
3910
|
item: e.content,
|
|
3789
3911
|
canTrack: Q(e.canTrack)
|
|
3790
3912
|
});
|
|
3791
3913
|
}
|
|
3792
3914
|
return P(() => {
|
|
3793
|
-
}, []),
|
|
3794
|
-
|
|
3795
|
-
|
|
3915
|
+
}, []), P(() => {
|
|
3916
|
+
}), /* @__PURE__ */ E(R, { children: [
|
|
3917
|
+
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3918
|
+
de,
|
|
3796
3919
|
{
|
|
3797
3920
|
id: "builderio-init-variants-fns",
|
|
3798
|
-
scriptStr:
|
|
3921
|
+
scriptStr: An()
|
|
3799
3922
|
}
|
|
3800
3923
|
) : null,
|
|
3801
|
-
t ? /* @__PURE__ */
|
|
3924
|
+
t ? /* @__PURE__ */ E(R, { children: [
|
|
3802
3925
|
/* @__PURE__ */ s(
|
|
3803
|
-
|
|
3926
|
+
ie,
|
|
3804
3927
|
{
|
|
3805
3928
|
id: "builderio-variants",
|
|
3806
3929
|
styles: o()
|
|
3807
3930
|
}
|
|
3808
3931
|
),
|
|
3809
3932
|
/* @__PURE__ */ s(
|
|
3810
|
-
|
|
3933
|
+
de,
|
|
3811
3934
|
{
|
|
3812
3935
|
id: "builderio-variants-visibility",
|
|
3813
3936
|
scriptStr: i()
|
|
3814
3937
|
}
|
|
3815
3938
|
),
|
|
3816
3939
|
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3817
|
-
|
|
3940
|
+
Ie,
|
|
3818
3941
|
{
|
|
3819
3942
|
isNestedRender: e.isNestedRender,
|
|
3820
3943
|
content: r,
|
|
@@ -3840,7 +3963,7 @@ function zn(e) {
|
|
|
3840
3963
|
))
|
|
3841
3964
|
] }) : null,
|
|
3842
3965
|
/* @__PURE__ */ s(
|
|
3843
|
-
|
|
3966
|
+
Ie,
|
|
3844
3967
|
{
|
|
3845
3968
|
isNestedRender: e.isNestedRender,
|
|
3846
3969
|
content: l(),
|
|
@@ -3865,13 +3988,13 @@ function zn(e) {
|
|
|
3865
3988
|
)
|
|
3866
3989
|
] });
|
|
3867
3990
|
}
|
|
3868
|
-
const
|
|
3991
|
+
const Yn = async ({
|
|
3869
3992
|
builderContextValue: e,
|
|
3870
3993
|
symbol: t
|
|
3871
3994
|
}) => {
|
|
3872
3995
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3873
3996
|
(e != null && e.apiKey))
|
|
3874
|
-
return
|
|
3997
|
+
return we({
|
|
3875
3998
|
model: t.model,
|
|
3876
3999
|
apiKey: e.apiKey,
|
|
3877
4000
|
apiVersion: e.apiVersion,
|
|
@@ -3884,7 +4007,7 @@ const Jn = async ({
|
|
|
3884
4007
|
Z.error("Could not fetch symbol content: ", n);
|
|
3885
4008
|
});
|
|
3886
4009
|
};
|
|
3887
|
-
function
|
|
4010
|
+
function Gn(e) {
|
|
3888
4011
|
var r, c, u, f;
|
|
3889
4012
|
function t() {
|
|
3890
4013
|
return "div";
|
|
@@ -3895,7 +4018,7 @@ function Yn(e) {
|
|
|
3895
4018
|
function i() {
|
|
3896
4019
|
var d, m;
|
|
3897
4020
|
return [
|
|
3898
|
-
e.attributes[
|
|
4021
|
+
e.attributes[H()],
|
|
3899
4022
|
"builder-symbol",
|
|
3900
4023
|
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3901
4024
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -3906,7 +4029,7 @@ function Yn(e) {
|
|
|
3906
4029
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3907
4030
|
});
|
|
3908
4031
|
function a() {
|
|
3909
|
-
o ||
|
|
4032
|
+
o || Yn({
|
|
3910
4033
|
symbol: e.symbol,
|
|
3911
4034
|
builderContextValue: e.builderContext
|
|
3912
4035
|
}).then((d) => {
|
|
@@ -3917,7 +4040,7 @@ function Yn(e) {
|
|
|
3917
4040
|
}, []), P(() => {
|
|
3918
4041
|
a();
|
|
3919
4042
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3920
|
-
|
|
4043
|
+
Jn,
|
|
3921
4044
|
{
|
|
3922
4045
|
isNestedRender: !0,
|
|
3923
4046
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3942,15 +4065,15 @@ function Yn(e) {
|
|
|
3942
4065
|
) });
|
|
3943
4066
|
}
|
|
3944
4067
|
export {
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
4068
|
+
L as Blocks,
|
|
4069
|
+
fe as BuilderContext,
|
|
4070
|
+
at as Button,
|
|
4071
|
+
Lt as Columns,
|
|
4072
|
+
Jn as Content,
|
|
3950
4073
|
Dt as Fragment,
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
4074
|
+
Ut as Image,
|
|
4075
|
+
Mt as Section,
|
|
4076
|
+
Gn as Symbol,
|
|
4077
|
+
nn as Text,
|
|
4078
|
+
wn as Video
|
|
3956
4079
|
};
|