@builder.io/sdk-react 1.0.22 → 1.0.24
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 +31 -31
- package/lib/browser/blocks-exports.mjs +1008 -794
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-3e30c656.js → server-entry-85d7f359.js} +1 -1
- package/lib/browser/{server-entry-8951c0c5.cjs → server-entry-a540d463.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-59950370.cjs +32 -0
- package/lib/edge/{blocks-b1f5ec2b.js → blocks-e6873db2.js} +615 -620
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/button-8a6ae666.js +31 -0
- package/lib/edge/button-aff4f652.cjs +1 -0
- package/lib/edge/columns-0768e506.js +163 -0
- package/lib/edge/columns-8dca796d.cjs +28 -0
- package/lib/edge/{content-variants-f165fa88.js → content-variants-c8061bc0.js} +404 -262
- package/lib/edge/content-variants-e79859ac.cjs +134 -0
- package/lib/edge/{form-d0cfb830.js → form-c3d12c27.js} +3 -3
- package/lib/edge/{form-b0d65d74.cjs → form-e6847833.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-49d9b54f.js → get-class-prop-name-a023381f.js} +2 -1
- package/lib/edge/get-class-prop-name-a966a097.cjs +1 -0
- package/lib/edge/image-764070f8.cjs +17 -0
- package/lib/edge/{image-0008c792.js → image-9d24a962.js} +24 -24
- package/lib/edge/{img-e321016e.js → img-03949fec.js} +1 -1
- package/lib/edge/{img-fcf6e57f.cjs → img-1431a6ab.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-f0319ee6.cjs → input-f420d17a.cjs} +1 -1
- package/lib/edge/{input-27f575fe.js → input-f611f26d.js} +1 -1
- package/lib/edge/{select-e31522ee.cjs → select-aadf10db.cjs} +1 -1
- package/lib/edge/{select-dd4c61db.js → select-e056d1d3.js} +1 -1
- package/lib/edge/{server-entry-dd363108.cjs → server-entry-95f97e05.cjs} +1 -1
- package/lib/edge/{server-entry-253a0fa1.js → server-entry-bbf65248.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-fea27ccf.js → slot-2f6f1817.js} +3 -3
- package/lib/edge/{slot-a2388031.cjs → slot-3ed45869.cjs} +1 -1
- package/lib/edge/{symbol-686edeb8.js → symbol-853c210f.js} +32 -26
- package/lib/edge/symbol-c9d45cc8.cjs +1 -0
- package/lib/edge/tabs-28d0f021.js +69 -0
- package/lib/edge/tabs-34a12e52.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +1114 -900
- 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-6587ed2e.js → node-runtime-071b85f9.js} +1 -1
- package/lib/node/{node-runtime-fa43cf07.cjs → node-runtime-41e3da8e.cjs} +1 -1
- package/lib/node/{server-entry-3abae5dd.cjs → server-entry-b5031981.cjs} +1 -1
- package/lib/node/{server-entry-14d7a1d0.js → server-entry-fd29e8b4.js} +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/blocks/columns/columns.types.d.ts +1 -1
- package/types/blocks/columns/helpers.d.ts +1 -0
- package/types/blocks/tabs/component-info.d.ts +2 -0
- package/types/blocks/tabs/index.d.ts +1 -0
- package/types/blocks/tabs/tabs.d.ts +4 -0
- package/types/blocks/tabs/tabs.types.d.ts +13 -0
- package/types/blocks/text/text.types.d.ts +2 -1
- package/types/components/block/block.helpers.d.ts +2 -0
- package/types/components/content/components/styles.helpers.d.ts +1 -0
- package/types/components/dynamic-div.d.ts +15 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/targets.d.ts +1 -1
- package/lib/edge/blocks-5705f416.cjs +0 -32
- package/lib/edge/button-2b710146.js +0 -28
- package/lib/edge/button-3c20ccff.cjs +0 -1
- package/lib/edge/columns-38a397cd.js +0 -156
- package/lib/edge/columns-761d98c4.cjs +0 -28
- package/lib/edge/content-variants-befe3587.cjs +0 -134
- package/lib/edge/get-class-prop-name-27f8a4f1.cjs +0 -1
- package/lib/edge/image-ee3dd857.cjs +0 -17
- package/lib/edge/symbol-ba2c6245.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as z, isEditing as
|
|
7
|
-
import { createContext as
|
|
8
|
-
const
|
|
9
|
-
function
|
|
10
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var Ue = Object.defineProperty;
|
|
3
|
+
var je = (e, t, n) => t in e ? Ue(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ne = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as z, isEditing as F, isBrowser as j, getUserAttributes as He, checkIsDefined as G, logger as Z, fastClone as le, registerInsertMenu as Ke, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as me, isPreviewing as _e, fetchOneEntry as Ce, createEditorListener as Je, fetch as Ye, serializeComponentInfo as fe, handleABTestingSync as Ge } from "./server-entry-85d7f359.js";
|
|
7
|
+
import { createContext as Te, useState as C, useEffect as P, useContext as he, useRef as ee, createElement as we } from "react";
|
|
8
|
+
const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Xe = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
|
|
9
|
+
function se(e) {
|
|
10
|
+
return /* @__PURE__ */ s(E, { children: Xe(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
12
|
const K = () => {
|
|
13
13
|
switch (z) {
|
|
@@ -19,31 +19,35 @@ const K = () => {
|
|
|
19
19
|
case "vue":
|
|
20
20
|
case "solid":
|
|
21
21
|
case "qwik":
|
|
22
|
+
case "angular":
|
|
22
23
|
return "class";
|
|
23
24
|
}
|
|
24
25
|
};
|
|
25
|
-
function
|
|
26
|
+
function Ze(e) {
|
|
27
|
+
function t() {
|
|
28
|
+
return {
|
|
29
|
+
...e.attributes,
|
|
30
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
31
|
+
...e.link ? {
|
|
32
|
+
href: e.link,
|
|
33
|
+
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
34
|
+
role: "link"
|
|
35
|
+
} : {
|
|
36
|
+
role: "button"
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
26
40
|
return /* @__PURE__ */ s(
|
|
27
|
-
|
|
41
|
+
se,
|
|
28
42
|
{
|
|
29
|
-
attributes:
|
|
30
|
-
...e.attributes,
|
|
31
|
-
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
32
|
-
...e.link ? {
|
|
33
|
-
href: e.link,
|
|
34
|
-
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
35
|
-
role: "link"
|
|
36
|
-
} : {
|
|
37
|
-
role: "button"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
43
|
+
attributes: t(),
|
|
40
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
41
45
|
actionAttributes: {},
|
|
42
46
|
children: e.text
|
|
43
47
|
}
|
|
44
48
|
);
|
|
45
49
|
}
|
|
46
|
-
const
|
|
50
|
+
const ce = Te({
|
|
47
51
|
content: null,
|
|
48
52
|
context: {},
|
|
49
53
|
localState: void 0,
|
|
@@ -56,8 +60,8 @@ const re = ve({
|
|
|
56
60
|
inheritedStyles: {},
|
|
57
61
|
BlocksWrapper: "div",
|
|
58
62
|
BlocksWrapperProps: {}
|
|
59
|
-
}),
|
|
60
|
-
function
|
|
63
|
+
}), Ie = Te({ registeredComponents: {} });
|
|
64
|
+
function et(e) {
|
|
61
65
|
var t;
|
|
62
66
|
return {
|
|
63
67
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -68,7 +72,7 @@ function Qe(e) {
|
|
|
68
72
|
builderBlock: e
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
|
-
const
|
|
75
|
+
const tt = ({
|
|
72
76
|
builder: e,
|
|
73
77
|
context: t,
|
|
74
78
|
event: n,
|
|
@@ -80,14 +84,14 @@ const Xe = ({
|
|
|
80
84
|
builder: e,
|
|
81
85
|
context: t,
|
|
82
86
|
event: n
|
|
83
|
-
}),
|
|
84
|
-
isEditing:
|
|
85
|
-
isBrowser:
|
|
86
|
-
isServer: !
|
|
87
|
-
getUserAttributes: () =>
|
|
88
|
-
}),
|
|
87
|
+
}), nt = () => ({
|
|
88
|
+
isEditing: F(),
|
|
89
|
+
isBrowser: j(),
|
|
90
|
+
isServer: !j(),
|
|
91
|
+
getUserAttributes: () => He()
|
|
92
|
+
}), it = (e, {
|
|
89
93
|
isExpression: t = !0
|
|
90
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
94
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ge = ({
|
|
91
95
|
code: e,
|
|
92
96
|
builder: t,
|
|
93
97
|
context: n,
|
|
@@ -96,19 +100,19 @@ const Xe = ({
|
|
|
96
100
|
rootSetState: a,
|
|
97
101
|
rootState: r
|
|
98
102
|
}) => {
|
|
99
|
-
const l =
|
|
103
|
+
const l = tt({
|
|
100
104
|
builder: t,
|
|
101
105
|
context: n,
|
|
102
106
|
event: i,
|
|
103
|
-
state:
|
|
107
|
+
state: Ee({
|
|
104
108
|
rootState: r,
|
|
105
109
|
localState: o,
|
|
106
110
|
rootSetState: a
|
|
107
111
|
})
|
|
108
112
|
});
|
|
109
|
-
return new Function(...l.map(([
|
|
113
|
+
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
110
114
|
};
|
|
111
|
-
function
|
|
115
|
+
function Ee({
|
|
112
116
|
rootState: e,
|
|
113
117
|
localState: t,
|
|
114
118
|
rootSetState: n
|
|
@@ -118,7 +122,7 @@ function we({
|
|
|
118
122
|
if (t && o in t)
|
|
119
123
|
return t[o];
|
|
120
124
|
const a = i[o];
|
|
121
|
-
return typeof a == "object" && a !== null ?
|
|
125
|
+
return typeof a == "object" && a !== null ? Ee({
|
|
122
126
|
rootState: a,
|
|
123
127
|
localState: void 0,
|
|
124
128
|
rootSetState: n ? (r) => {
|
|
@@ -133,17 +137,17 @@ function we({
|
|
|
133
137
|
}
|
|
134
138
|
});
|
|
135
139
|
}
|
|
136
|
-
function
|
|
140
|
+
function ot() {
|
|
137
141
|
var e;
|
|
138
142
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
139
143
|
}
|
|
140
|
-
const
|
|
144
|
+
const at = () => {
|
|
141
145
|
var i;
|
|
142
|
-
if (!
|
|
146
|
+
if (!ot())
|
|
143
147
|
return !1;
|
|
144
148
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
145
|
-
return e && t && !n ? (
|
|
146
|
-
},
|
|
149
|
+
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;
|
|
150
|
+
}, rt = (e) => (j() || at(), ge(e)), L = class L {
|
|
147
151
|
static getCacheKey(t) {
|
|
148
152
|
return JSON.stringify({
|
|
149
153
|
...t,
|
|
@@ -153,16 +157,16 @@ const nt = () => {
|
|
|
153
157
|
});
|
|
154
158
|
}
|
|
155
159
|
static getCachedValue(t) {
|
|
156
|
-
return
|
|
160
|
+
return L.cache.get(t);
|
|
157
161
|
}
|
|
158
162
|
static setCachedValue(t, n) {
|
|
159
|
-
|
|
163
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
160
164
|
value: n
|
|
161
165
|
});
|
|
162
166
|
}
|
|
163
167
|
};
|
|
164
|
-
|
|
165
|
-
let
|
|
168
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
169
|
+
let U = L;
|
|
166
170
|
function q({
|
|
167
171
|
code: e,
|
|
168
172
|
context: t,
|
|
@@ -173,15 +177,13 @@ function q({
|
|
|
173
177
|
isExpression: r = !0,
|
|
174
178
|
enableCache: l
|
|
175
179
|
}) {
|
|
176
|
-
if (e === "")
|
|
177
|
-
H.warn("Skipping evaluation of empty code block.");
|
|
180
|
+
if (e === "")
|
|
178
181
|
return;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
code: et(e, {
|
|
182
|
+
const c = {
|
|
183
|
+
code: it(e, {
|
|
182
184
|
isExpression: r
|
|
183
185
|
}),
|
|
184
|
-
builder:
|
|
186
|
+
builder: nt(),
|
|
185
187
|
context: t,
|
|
186
188
|
event: a,
|
|
187
189
|
rootSetState: o,
|
|
@@ -189,31 +191,31 @@ function q({
|
|
|
189
191
|
localState: n
|
|
190
192
|
};
|
|
191
193
|
if (l) {
|
|
192
|
-
const
|
|
194
|
+
const d = U.getCacheKey(c), m = U.getCachedValue(d);
|
|
193
195
|
if (m)
|
|
194
196
|
return m.value;
|
|
195
197
|
}
|
|
196
198
|
try {
|
|
197
|
-
const
|
|
199
|
+
const d = rt(c);
|
|
198
200
|
if (l) {
|
|
199
|
-
const m =
|
|
200
|
-
|
|
201
|
+
const m = U.getCacheKey(c);
|
|
202
|
+
U.setCachedValue(m, d);
|
|
201
203
|
}
|
|
202
|
-
return
|
|
203
|
-
} catch (
|
|
204
|
-
|
|
204
|
+
return d;
|
|
205
|
+
} catch (d) {
|
|
206
|
+
Z.error("Failed code evaluation: " + d.message, {
|
|
205
207
|
code: e
|
|
206
208
|
});
|
|
207
209
|
return;
|
|
208
210
|
}
|
|
209
211
|
}
|
|
210
|
-
const
|
|
212
|
+
const Re = (e, t, n) => {
|
|
211
213
|
if (Object(e) !== e)
|
|
212
214
|
return e;
|
|
213
215
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
214
216
|
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
215
217
|
};
|
|
216
|
-
const
|
|
218
|
+
const lt = ({
|
|
217
219
|
block: e,
|
|
218
220
|
context: t,
|
|
219
221
|
localState: n,
|
|
@@ -222,7 +224,7 @@ const ot = ({
|
|
|
222
224
|
}) => {
|
|
223
225
|
if (!e.bindings)
|
|
224
226
|
return e;
|
|
225
|
-
const a =
|
|
227
|
+
const a = le(e), r = {
|
|
226
228
|
...a,
|
|
227
229
|
properties: {
|
|
228
230
|
...a.properties
|
|
@@ -232,15 +234,15 @@ const ot = ({
|
|
|
232
234
|
}
|
|
233
235
|
};
|
|
234
236
|
for (const l in e.bindings) {
|
|
235
|
-
const
|
|
236
|
-
code:
|
|
237
|
+
const c = e.bindings[l], d = q({
|
|
238
|
+
code: c,
|
|
237
239
|
localState: n,
|
|
238
240
|
rootState: i,
|
|
239
241
|
rootSetState: o,
|
|
240
242
|
context: t,
|
|
241
243
|
enableCache: !0
|
|
242
244
|
});
|
|
243
|
-
|
|
245
|
+
Re(r, l, d);
|
|
244
246
|
}
|
|
245
247
|
return r;
|
|
246
248
|
};
|
|
@@ -253,7 +255,7 @@ function X({
|
|
|
253
255
|
rootSetState: a
|
|
254
256
|
}) {
|
|
255
257
|
const r = e;
|
|
256
|
-
return n ?
|
|
258
|
+
return n ? lt({
|
|
257
259
|
block: r,
|
|
258
260
|
localState: i,
|
|
259
261
|
rootState: o,
|
|
@@ -261,19 +263,19 @@ function X({
|
|
|
261
263
|
context: t
|
|
262
264
|
}) : r;
|
|
263
265
|
}
|
|
264
|
-
function
|
|
266
|
+
function st(e, t, n = {}) {
|
|
265
267
|
let i, o, a, r = null, l = 0;
|
|
266
|
-
const
|
|
268
|
+
const c = function() {
|
|
267
269
|
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
268
270
|
};
|
|
269
271
|
return function() {
|
|
270
|
-
const
|
|
271
|
-
!l && n.leading === !1 && (l =
|
|
272
|
-
const m = t - (
|
|
273
|
-
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l =
|
|
272
|
+
const d = Date.now();
|
|
273
|
+
!l && n.leading === !1 && (l = d);
|
|
274
|
+
const m = t - (d - l);
|
|
275
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = d, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, m)), a;
|
|
274
276
|
};
|
|
275
277
|
}
|
|
276
|
-
function
|
|
278
|
+
function H(e, ...t) {
|
|
277
279
|
const n = Object(e);
|
|
278
280
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
281
|
const o = arguments[i];
|
|
@@ -283,118 +285,119 @@ function j(e, ...t) {
|
|
|
283
285
|
}
|
|
284
286
|
return n;
|
|
285
287
|
}
|
|
286
|
-
const
|
|
287
|
-
function
|
|
288
|
+
const de = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
289
|
+
function ct(e) {
|
|
288
290
|
for (const t of e)
|
|
289
291
|
switch (t.trigger) {
|
|
290
292
|
case "pageLoad":
|
|
291
|
-
|
|
293
|
+
Be(t);
|
|
292
294
|
break;
|
|
293
295
|
case "scrollInView":
|
|
294
|
-
|
|
296
|
+
ut(t);
|
|
295
297
|
break;
|
|
296
298
|
}
|
|
297
299
|
}
|
|
298
|
-
function
|
|
300
|
+
function Pe(e) {
|
|
299
301
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
300
302
|
}
|
|
301
|
-
function
|
|
302
|
-
const n =
|
|
303
|
+
function Ve(e, t) {
|
|
304
|
+
const n = dt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
303
305
|
for (const l of r)
|
|
304
|
-
for (const
|
|
305
|
-
|
|
306
|
+
for (const c of n)
|
|
307
|
+
c in l || (l[c] = i[c]);
|
|
306
308
|
}
|
|
307
|
-
function
|
|
309
|
+
function dt(e) {
|
|
308
310
|
const t = [];
|
|
309
311
|
for (const n of e.steps)
|
|
310
312
|
for (const i in n.styles)
|
|
311
313
|
t.indexOf(i) === -1 && t.push(i);
|
|
312
314
|
return t;
|
|
313
315
|
}
|
|
314
|
-
function
|
|
316
|
+
function Be(e) {
|
|
315
317
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
316
318
|
if (!t.length) {
|
|
317
|
-
|
|
319
|
+
Pe(e.elementId || e.id || "");
|
|
318
320
|
return;
|
|
319
321
|
}
|
|
320
322
|
Array.from(t).forEach((n) => {
|
|
321
|
-
|
|
322
|
-
n.style.transition = `all ${e.duration}s ${
|
|
323
|
+
Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
324
|
+
n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
323
325
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
324
326
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
325
327
|
});
|
|
326
328
|
});
|
|
327
329
|
}
|
|
328
|
-
function
|
|
330
|
+
function ut(e) {
|
|
329
331
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
330
332
|
if (!t.length) {
|
|
331
|
-
|
|
333
|
+
Pe(e.elementId || e.id || "");
|
|
332
334
|
return;
|
|
333
335
|
}
|
|
334
336
|
Array.from(t).forEach((n) => {
|
|
335
|
-
|
|
337
|
+
Ve(e, n);
|
|
336
338
|
let i = !1, o = !1;
|
|
337
339
|
function a() {
|
|
338
340
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
339
|
-
|
|
341
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
340
342
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
341
343
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
342
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
344
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
343
345
|
}
|
|
344
|
-
const r =
|
|
346
|
+
const r = st(a, 200, {
|
|
345
347
|
leading: !1
|
|
346
348
|
});
|
|
347
349
|
function l(m) {
|
|
348
|
-
const
|
|
349
|
-
return
|
|
350
|
+
const u = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
|
|
351
|
+
return u.bottom > S && u.top < g - S;
|
|
350
352
|
}
|
|
351
|
-
const
|
|
352
|
-
function
|
|
353
|
-
|
|
353
|
+
const c = e.steps[0].styles;
|
|
354
|
+
function d() {
|
|
355
|
+
H(n.style, c);
|
|
354
356
|
}
|
|
355
|
-
|
|
356
|
-
n.style.transition = `all ${e.duration}s ${
|
|
357
|
+
d(), setTimeout(() => {
|
|
358
|
+
n.style.transition = `all ${e.duration}s ${de(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
357
359
|
}), document.addEventListener("scroll", r, {
|
|
358
360
|
capture: !0,
|
|
359
361
|
passive: !0
|
|
360
362
|
}), a();
|
|
361
363
|
});
|
|
362
364
|
}
|
|
363
|
-
const
|
|
365
|
+
const mt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ae = (e) => Object.entries(e).map(([n, i]) => {
|
|
364
366
|
if (typeof i == "string")
|
|
365
|
-
return `${
|
|
366
|
-
}).filter(G),
|
|
367
|
+
return `${mt(n)}: ${i};`;
|
|
368
|
+
}).filter(G), ft = (e) => Ae(e).join(`
|
|
367
369
|
`), J = ({
|
|
368
370
|
mediaQuery: e,
|
|
369
371
|
className: t,
|
|
370
372
|
styles: n
|
|
371
373
|
}) => {
|
|
372
374
|
const i = `.${t} {
|
|
373
|
-
${
|
|
375
|
+
${ft(n)}
|
|
374
376
|
}`;
|
|
375
377
|
return e ? `${e} {
|
|
376
378
|
${i}
|
|
377
379
|
}` : i;
|
|
378
380
|
};
|
|
379
|
-
function
|
|
381
|
+
function ht({
|
|
380
382
|
style: e
|
|
381
383
|
}) {
|
|
382
384
|
return e;
|
|
383
385
|
}
|
|
384
|
-
const
|
|
386
|
+
const gt = ({
|
|
385
387
|
block: e,
|
|
386
388
|
context: t
|
|
387
|
-
}) =>
|
|
389
|
+
}) => We(ht({
|
|
388
390
|
style: e.style || {},
|
|
389
391
|
context: t,
|
|
390
392
|
block: e
|
|
391
393
|
}));
|
|
392
|
-
function
|
|
394
|
+
function We(e) {
|
|
393
395
|
switch (z) {
|
|
394
396
|
case "svelte":
|
|
395
397
|
case "vue":
|
|
396
398
|
case "solid":
|
|
397
|
-
|
|
399
|
+
case "angular":
|
|
400
|
+
return Ae(e).join(" ");
|
|
398
401
|
case "qwik":
|
|
399
402
|
case "reactNative":
|
|
400
403
|
case "react":
|
|
@@ -402,7 +405,7 @@ function Ve(e) {
|
|
|
402
405
|
return e;
|
|
403
406
|
}
|
|
404
407
|
}
|
|
405
|
-
const
|
|
408
|
+
const bt = ({
|
|
406
409
|
block: e,
|
|
407
410
|
context: t,
|
|
408
411
|
registeredComponents: n
|
|
@@ -424,7 +427,7 @@ const ft = ({
|
|
|
424
427
|
console.warn(`
|
|
425
428
|
Could not find a registered component named "${i}".
|
|
426
429
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
427
|
-
},
|
|
430
|
+
}, yt = ({
|
|
428
431
|
block: e,
|
|
429
432
|
context: t
|
|
430
433
|
}) => {
|
|
@@ -445,20 +448,20 @@ const ft = ({
|
|
|
445
448
|
if (!Array.isArray(o))
|
|
446
449
|
return;
|
|
447
450
|
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
448
|
-
return o.map((
|
|
451
|
+
return o.map((c, d) => ({
|
|
449
452
|
context: {
|
|
450
453
|
...t,
|
|
451
454
|
localState: {
|
|
452
455
|
...t.localState,
|
|
453
|
-
$index:
|
|
454
|
-
$item:
|
|
455
|
-
[r]:
|
|
456
|
-
[`$${r}Index`]:
|
|
456
|
+
$index: d,
|
|
457
|
+
$item: c,
|
|
458
|
+
[r]: c,
|
|
459
|
+
[`$${r}Index`]: d
|
|
457
460
|
}
|
|
458
461
|
},
|
|
459
462
|
block: i
|
|
460
463
|
}));
|
|
461
|
-
},
|
|
464
|
+
}, pt = (e) => e && ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), xt = (e) => e && ["Symbol", "Columns", "Form:Form", "Builder: Tabs"].includes(e), Ne = {
|
|
462
465
|
small: {
|
|
463
466
|
min: 320,
|
|
464
467
|
default: 321,
|
|
@@ -474,11 +477,11 @@ const ft = ({
|
|
|
474
477
|
default: 991,
|
|
475
478
|
max: 1200
|
|
476
479
|
}
|
|
477
|
-
},
|
|
480
|
+
}, be = (e, t = Ne) => `@media (max-width: ${t[e].max}px)`, $e = ({
|
|
478
481
|
small: e,
|
|
479
482
|
medium: t
|
|
480
483
|
}) => {
|
|
481
|
-
const n =
|
|
484
|
+
const n = le(Ne);
|
|
482
485
|
if (!e || !t)
|
|
483
486
|
return n;
|
|
484
487
|
const i = Math.floor(e / 2);
|
|
@@ -501,7 +504,7 @@ const ft = ({
|
|
|
501
504
|
default: a + 1
|
|
502
505
|
}, n;
|
|
503
506
|
};
|
|
504
|
-
function
|
|
507
|
+
function te(e) {
|
|
505
508
|
return /* @__PURE__ */ s(
|
|
506
509
|
"style",
|
|
507
510
|
{
|
|
@@ -510,7 +513,7 @@ function ee(e) {
|
|
|
510
513
|
}
|
|
511
514
|
);
|
|
512
515
|
}
|
|
513
|
-
function
|
|
516
|
+
function St(e) {
|
|
514
517
|
function t() {
|
|
515
518
|
const i = X({
|
|
516
519
|
block: e.block,
|
|
@@ -523,7 +526,7 @@ function gt(e) {
|
|
|
523
526
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
524
527
|
}
|
|
525
528
|
function n() {
|
|
526
|
-
var w,
|
|
529
|
+
var w, R, A;
|
|
527
530
|
const i = X({
|
|
528
531
|
block: e.block,
|
|
529
532
|
localState: e.context.localState,
|
|
@@ -531,56 +534,56 @@ function gt(e) {
|
|
|
531
534
|
rootSetState: e.context.rootSetState,
|
|
532
535
|
context: e.context.context,
|
|
533
536
|
shouldEvaluateBindings: !0
|
|
534
|
-
}), o = i.responsiveStyles, a = e.context.content, r =
|
|
537
|
+
}), o = i.responsiveStyles, a = e.context.content, r = $e(
|
|
535
538
|
((w = a == null ? void 0 : a.meta) == null ? void 0 : w.breakpoints) || {}
|
|
536
|
-
), l = o == null ? void 0 : o.large,
|
|
539
|
+
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, m = i.id;
|
|
537
540
|
if (!m)
|
|
538
541
|
return "";
|
|
539
|
-
const
|
|
542
|
+
const u = l ? J({
|
|
540
543
|
className: m,
|
|
541
544
|
styles: l
|
|
542
|
-
}) : "", g =
|
|
545
|
+
}) : "", g = c ? J({
|
|
543
546
|
className: m,
|
|
544
|
-
styles:
|
|
545
|
-
mediaQuery:
|
|
547
|
+
styles: c,
|
|
548
|
+
mediaQuery: be(
|
|
546
549
|
"medium",
|
|
547
550
|
r
|
|
548
551
|
)
|
|
549
|
-
}) : "", y =
|
|
552
|
+
}) : "", y = d ? J({
|
|
550
553
|
className: m,
|
|
551
|
-
styles:
|
|
552
|
-
mediaQuery:
|
|
554
|
+
styles: d,
|
|
555
|
+
mediaQuery: be(
|
|
553
556
|
"small",
|
|
554
557
|
r
|
|
555
558
|
)
|
|
556
|
-
}) : "",
|
|
557
|
-
let
|
|
558
|
-
if (
|
|
559
|
-
const
|
|
560
|
-
|
|
559
|
+
}) : "", S = i.animations && i.animations.find((W) => W.trigger === "hover");
|
|
560
|
+
let T = "";
|
|
561
|
+
if (S) {
|
|
562
|
+
const W = ((A = (R = S.steps) == null ? void 0 : R[1]) == null ? void 0 : A.styles) || {};
|
|
563
|
+
T = J({
|
|
561
564
|
className: `${m}:hover`,
|
|
562
565
|
styles: {
|
|
563
|
-
...
|
|
564
|
-
transition: `all ${
|
|
565
|
-
|
|
566
|
+
...W,
|
|
567
|
+
transition: `all ${S.duration}s ${de(
|
|
568
|
+
S.easing
|
|
566
569
|
)}`,
|
|
567
|
-
transitionDelay:
|
|
570
|
+
transitionDelay: S.delay ? `${S.delay}s` : "0s"
|
|
568
571
|
}
|
|
569
572
|
}) || "";
|
|
570
573
|
}
|
|
571
574
|
return [
|
|
572
|
-
|
|
575
|
+
u,
|
|
573
576
|
g,
|
|
574
577
|
y,
|
|
575
|
-
|
|
578
|
+
T
|
|
576
579
|
].join(" ");
|
|
577
580
|
}
|
|
578
|
-
return /* @__PURE__ */ s(
|
|
581
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(te, { id: "builderio-block", styles: n() }) }) : null });
|
|
579
582
|
}
|
|
580
|
-
function
|
|
583
|
+
function vt(e) {
|
|
581
584
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
582
585
|
}
|
|
583
|
-
const
|
|
586
|
+
const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => q({
|
|
584
587
|
code: e,
|
|
585
588
|
context: t.context,
|
|
586
589
|
localState: t.localState,
|
|
@@ -590,14 +593,14 @@ const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => q({
|
|
|
590
593
|
isExpression: !1,
|
|
591
594
|
enableCache: !0
|
|
592
595
|
});
|
|
593
|
-
function
|
|
596
|
+
function Fe(e) {
|
|
594
597
|
var i;
|
|
595
598
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
596
599
|
for (const o in n) {
|
|
597
600
|
if (!n.hasOwnProperty(o))
|
|
598
601
|
continue;
|
|
599
602
|
const a = n[o];
|
|
600
|
-
let r =
|
|
603
|
+
let r = kt(o);
|
|
601
604
|
if (e.stripPrefix)
|
|
602
605
|
switch (z) {
|
|
603
606
|
case "vue":
|
|
@@ -607,49 +610,49 @@ function Ae(e) {
|
|
|
607
610
|
r = r.replace("on:", "");
|
|
608
611
|
break;
|
|
609
612
|
}
|
|
610
|
-
t[r] =
|
|
613
|
+
t[r] = Ct(a, e);
|
|
611
614
|
}
|
|
612
615
|
return t;
|
|
613
616
|
}
|
|
614
|
-
function
|
|
617
|
+
function Tt({
|
|
615
618
|
properties: e
|
|
616
619
|
}) {
|
|
617
620
|
return e;
|
|
618
621
|
}
|
|
619
|
-
const
|
|
622
|
+
const wt = (e) => ({
|
|
620
623
|
href: e.href
|
|
621
624
|
});
|
|
622
|
-
function
|
|
625
|
+
function ue({
|
|
623
626
|
block: e,
|
|
624
627
|
context: t
|
|
625
628
|
}) {
|
|
626
629
|
var i;
|
|
627
630
|
const n = {
|
|
628
|
-
...
|
|
631
|
+
...wt(e),
|
|
629
632
|
...e.properties,
|
|
630
633
|
"builder-id": e.id,
|
|
631
|
-
style:
|
|
634
|
+
style: gt({
|
|
632
635
|
block: e,
|
|
633
636
|
context: t
|
|
634
637
|
}),
|
|
635
638
|
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
636
639
|
};
|
|
637
|
-
return
|
|
640
|
+
return Tt({
|
|
638
641
|
properties: n,
|
|
639
642
|
context: t,
|
|
640
643
|
block: e
|
|
641
644
|
});
|
|
642
645
|
}
|
|
643
|
-
function
|
|
646
|
+
function It(e) {
|
|
644
647
|
return /* @__PURE__ */ s(
|
|
645
|
-
|
|
648
|
+
se,
|
|
646
649
|
{
|
|
647
650
|
TagName: e.Wrapper,
|
|
648
|
-
attributes:
|
|
651
|
+
attributes: ue({
|
|
649
652
|
block: e.block,
|
|
650
653
|
context: e.context
|
|
651
654
|
}),
|
|
652
|
-
actionAttributes:
|
|
655
|
+
actionAttributes: Fe({
|
|
653
656
|
block: e.block,
|
|
654
657
|
rootState: e.context.rootState,
|
|
655
658
|
rootSetState: e.context.rootSetState,
|
|
@@ -661,29 +664,25 @@ function vt(e) {
|
|
|
661
664
|
}
|
|
662
665
|
);
|
|
663
666
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
e.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
} : {},
|
|
682
|
-
children: e.children
|
|
683
|
-
}
|
|
684
|
-
);
|
|
667
|
+
function Et(e) {
|
|
668
|
+
function t() {
|
|
669
|
+
return e.includeBlockProps ? {
|
|
670
|
+
...ue({
|
|
671
|
+
block: e.block,
|
|
672
|
+
context: e.context
|
|
673
|
+
}),
|
|
674
|
+
...Fe({
|
|
675
|
+
block: e.block,
|
|
676
|
+
rootState: e.context.rootState,
|
|
677
|
+
rootSetState: e.context.rootSetState,
|
|
678
|
+
localState: e.context.localState,
|
|
679
|
+
context: e.context.context
|
|
680
|
+
})
|
|
681
|
+
} : {};
|
|
682
|
+
}
|
|
683
|
+
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
685
684
|
}
|
|
686
|
-
const
|
|
685
|
+
const Rt = ({
|
|
687
686
|
componentOptions: e,
|
|
688
687
|
builderBlock: t,
|
|
689
688
|
context: n,
|
|
@@ -699,7 +698,7 @@ const Ct = ({
|
|
|
699
698
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
700
699
|
*/
|
|
701
700
|
...o ? {
|
|
702
|
-
attributes:
|
|
701
|
+
attributes: ue({
|
|
703
702
|
block: t,
|
|
704
703
|
context: r
|
|
705
704
|
})
|
|
@@ -713,15 +712,15 @@ const Ct = ({
|
|
|
713
712
|
includeBlockProps: o
|
|
714
713
|
} : l;
|
|
715
714
|
};
|
|
716
|
-
function
|
|
715
|
+
function ye(e) {
|
|
717
716
|
var i;
|
|
718
|
-
const [t, n] =
|
|
719
|
-
() => e.isInteractive ?
|
|
717
|
+
const [t, n] = C(
|
|
718
|
+
() => e.isInteractive ? Et : e.componentRef
|
|
720
719
|
);
|
|
721
|
-
return /* @__PURE__ */ s(
|
|
720
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
722
721
|
t,
|
|
723
722
|
{
|
|
724
|
-
...
|
|
723
|
+
...Rt({
|
|
725
724
|
componentOptions: e.componentOptions,
|
|
726
725
|
builderBlock: e.builderBlock,
|
|
727
726
|
context: e.context,
|
|
@@ -744,9 +743,9 @@ function he(e) {
|
|
|
744
743
|
}
|
|
745
744
|
) }) : null });
|
|
746
745
|
}
|
|
747
|
-
function
|
|
748
|
-
const [t, n] =
|
|
749
|
-
return /* @__PURE__ */ s(
|
|
746
|
+
function Pt(e) {
|
|
747
|
+
const [t, n] = C(() => e.repeatContext);
|
|
748
|
+
return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
750
749
|
_,
|
|
751
750
|
{
|
|
752
751
|
block: e.block,
|
|
@@ -757,23 +756,23 @@ function wt(e) {
|
|
|
757
756
|
) });
|
|
758
757
|
}
|
|
759
758
|
function _(e) {
|
|
760
|
-
var
|
|
759
|
+
var c, d, m;
|
|
761
760
|
function t() {
|
|
762
|
-
return
|
|
761
|
+
return bt({
|
|
763
762
|
block: e.block,
|
|
764
763
|
context: e.context,
|
|
765
764
|
registeredComponents: e.registeredComponents
|
|
766
765
|
});
|
|
767
766
|
}
|
|
768
767
|
function n() {
|
|
769
|
-
return
|
|
768
|
+
return yt({
|
|
770
769
|
block: e.block,
|
|
771
770
|
context: e.context
|
|
772
771
|
});
|
|
773
772
|
}
|
|
774
773
|
function i() {
|
|
775
|
-
var
|
|
776
|
-
return (
|
|
774
|
+
var u;
|
|
775
|
+
return (u = e.block.repeat) != null && u.collection ? e.block : X({
|
|
777
776
|
block: e.block,
|
|
778
777
|
localState: e.context.localState,
|
|
779
778
|
rootState: e.context.rootState,
|
|
@@ -787,28 +786,28 @@ function _(e) {
|
|
|
787
786
|
return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
788
787
|
}
|
|
789
788
|
function a() {
|
|
790
|
-
var y,
|
|
789
|
+
var y, S;
|
|
791
790
|
if ((y = e.block.repeat) != null && y.collection)
|
|
792
|
-
return !!((
|
|
793
|
-
const
|
|
794
|
-
return ("show" in i() ? i().show : !0) && !
|
|
791
|
+
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
792
|
+
const u = "hide" in i() ? i().hide : !1;
|
|
793
|
+
return ("show" in i() ? i().show : !0) && !u;
|
|
795
794
|
}
|
|
796
795
|
function r() {
|
|
797
796
|
var g, y;
|
|
798
797
|
return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
|
|
799
798
|
}
|
|
800
799
|
function l() {
|
|
801
|
-
var
|
|
800
|
+
var u, g, y, S, T, w;
|
|
802
801
|
return {
|
|
803
|
-
blockChildren: (
|
|
802
|
+
blockChildren: (u = i().children) != null ? u : [],
|
|
804
803
|
componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
|
|
805
804
|
componentOptions: {
|
|
806
|
-
...
|
|
805
|
+
...et(i()),
|
|
807
806
|
builderContext: e.context,
|
|
808
|
-
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name)
|
|
807
|
+
...pt((y = t == null ? void 0 : t()) == null ? void 0 : y.name) ? {
|
|
809
808
|
builderLinkComponent: e.linkComponent
|
|
810
809
|
} : {},
|
|
811
|
-
...((
|
|
810
|
+
...xt((S = t == null ? void 0 : t()) == null ? void 0 : S.name) ? {
|
|
812
811
|
builderComponents: e.registeredComponents
|
|
813
812
|
} : {}
|
|
814
813
|
},
|
|
@@ -816,22 +815,22 @@ function _(e) {
|
|
|
816
815
|
linkComponent: e.linkComponent,
|
|
817
816
|
registeredComponents: e.registeredComponents,
|
|
818
817
|
builderBlock: i(),
|
|
819
|
-
includeBlockProps: ((
|
|
820
|
-
isInteractive: !((
|
|
818
|
+
includeBlockProps: ((T = t == null ? void 0 : t()) == null ? void 0 : T.noWrap) === !0,
|
|
819
|
+
isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
|
|
821
820
|
};
|
|
822
821
|
}
|
|
823
|
-
return
|
|
824
|
-
const
|
|
825
|
-
g &&
|
|
822
|
+
return P(() => {
|
|
823
|
+
const u = i().id, g = i().animations;
|
|
824
|
+
g && u && ct(
|
|
826
825
|
g.map((y) => ({
|
|
827
826
|
...y,
|
|
828
|
-
elementId:
|
|
827
|
+
elementId: u
|
|
829
828
|
}))
|
|
830
829
|
);
|
|
831
|
-
}, []), /* @__PURE__ */ s(
|
|
832
|
-
/* @__PURE__ */ s(
|
|
833
|
-
(
|
|
834
|
-
|
|
830
|
+
}, []), /* @__PURE__ */ s(E, { children: a() ? /* @__PURE__ */ V(E, { children: [
|
|
831
|
+
/* @__PURE__ */ s(St, { block: e.block, context: e.context }),
|
|
832
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
833
|
+
ye,
|
|
835
834
|
{
|
|
836
835
|
componentRef: l().componentRef,
|
|
837
836
|
componentOptions: l().componentOptions,
|
|
@@ -843,17 +842,17 @@ function _(e) {
|
|
|
843
842
|
includeBlockProps: l().includeBlockProps,
|
|
844
843
|
isInteractive: l().isInteractive
|
|
845
844
|
}
|
|
846
|
-
) }) : /* @__PURE__ */ s(
|
|
847
|
-
|
|
845
|
+
) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (m = n()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
|
|
846
|
+
Pt,
|
|
848
847
|
{
|
|
849
|
-
repeatContext:
|
|
850
|
-
block:
|
|
848
|
+
repeatContext: u.context,
|
|
849
|
+
block: u.block,
|
|
851
850
|
registeredComponents: e.registeredComponents,
|
|
852
851
|
linkComponent: e.linkComponent
|
|
853
852
|
},
|
|
854
853
|
g
|
|
855
|
-
)) }) : /* @__PURE__ */
|
|
856
|
-
|
|
854
|
+
)) }) : /* @__PURE__ */ V(
|
|
855
|
+
It,
|
|
857
856
|
{
|
|
858
857
|
Wrapper: o(),
|
|
859
858
|
block: i(),
|
|
@@ -861,7 +860,7 @@ function _(e) {
|
|
|
861
860
|
linkComponent: e.linkComponent,
|
|
862
861
|
children: [
|
|
863
862
|
/* @__PURE__ */ s(
|
|
864
|
-
|
|
863
|
+
ye,
|
|
865
864
|
{
|
|
866
865
|
componentRef: l().componentRef,
|
|
867
866
|
componentOptions: l().componentOptions,
|
|
@@ -874,29 +873,29 @@ function _(e) {
|
|
|
874
873
|
isInteractive: l().isInteractive
|
|
875
874
|
}
|
|
876
875
|
),
|
|
877
|
-
(
|
|
876
|
+
(d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
|
|
878
877
|
_,
|
|
879
878
|
{
|
|
880
|
-
block:
|
|
879
|
+
block: u,
|
|
881
880
|
registeredComponents: e.registeredComponents,
|
|
882
881
|
linkComponent: e.linkComponent,
|
|
883
882
|
context: e.context
|
|
884
883
|
},
|
|
885
|
-
|
|
884
|
+
u.id
|
|
886
885
|
))
|
|
887
886
|
]
|
|
888
887
|
}
|
|
889
888
|
) })
|
|
890
889
|
] }) : null });
|
|
891
890
|
}
|
|
892
|
-
function
|
|
891
|
+
function Vt(e) {
|
|
893
892
|
function t() {
|
|
894
893
|
var o;
|
|
895
894
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
896
895
|
}
|
|
897
896
|
function n() {
|
|
898
897
|
var o, a;
|
|
899
|
-
|
|
898
|
+
F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
900
899
|
{
|
|
901
900
|
type: "builder.clickEmptyBlocks",
|
|
902
901
|
data: {
|
|
@@ -909,7 +908,7 @@ function It(e) {
|
|
|
909
908
|
}
|
|
910
909
|
function i() {
|
|
911
910
|
var o, a;
|
|
912
|
-
|
|
911
|
+
F() && !((o = e.blocks) != null && o.length) && ((a = window.parent) == null || a.postMessage(
|
|
913
912
|
{
|
|
914
913
|
type: "builder.hoverEmptyBlocks",
|
|
915
914
|
data: {
|
|
@@ -920,7 +919,7 @@ function It(e) {
|
|
|
920
919
|
"*"
|
|
921
920
|
));
|
|
922
921
|
}
|
|
923
|
-
return /* @__PURE__ */
|
|
922
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
924
923
|
/* @__PURE__ */ s(
|
|
925
924
|
e.BlocksWrapper,
|
|
926
925
|
{
|
|
@@ -942,11 +941,11 @@ function It(e) {
|
|
|
942
941
|
}` })
|
|
943
942
|
] });
|
|
944
943
|
}
|
|
945
|
-
function
|
|
944
|
+
function M(e) {
|
|
946
945
|
var i, o, a;
|
|
947
|
-
const t =
|
|
946
|
+
const t = he(ce), n = he(Ie);
|
|
948
947
|
return /* @__PURE__ */ s(
|
|
949
|
-
|
|
948
|
+
Vt,
|
|
950
949
|
{
|
|
951
950
|
blocks: e.blocks,
|
|
952
951
|
parent: e.parent,
|
|
@@ -954,7 +953,7 @@ function O(e) {
|
|
|
954
953
|
styleProp: e.styleProp,
|
|
955
954
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
956
955
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
957
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
956
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
958
957
|
_,
|
|
959
958
|
{
|
|
960
959
|
block: r,
|
|
@@ -967,82 +966,86 @@ function O(e) {
|
|
|
967
966
|
}
|
|
968
967
|
);
|
|
969
968
|
}
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
969
|
+
const Bt = (e) => `builder-columns ${e}-breakpoints`;
|
|
970
|
+
function At(e) {
|
|
971
|
+
var W, D;
|
|
972
|
+
const [t, n] = C(
|
|
973
973
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
974
|
-
), [i, o] =
|
|
974
|
+
), [i, o] = C(() => e.columns || []), [a, r] = C(
|
|
975
975
|
() => e.stackColumnsAt || "tablet"
|
|
976
976
|
);
|
|
977
|
-
function l(
|
|
978
|
-
|
|
979
|
-
return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
|
|
977
|
+
function l(x) {
|
|
978
|
+
return x.link ? e.builderLinkComponent || "a" : "div";
|
|
980
979
|
}
|
|
981
|
-
function
|
|
982
|
-
|
|
983
|
-
return
|
|
980
|
+
function c(x) {
|
|
981
|
+
var I;
|
|
982
|
+
return ((I = i[x]) == null ? void 0 : I.width) || 100 / i.length;
|
|
984
983
|
}
|
|
985
|
-
function
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
}) {
|
|
989
|
-
return a === "tablet" ? p : v;
|
|
984
|
+
function d(x) {
|
|
985
|
+
const I = t * (i.length - 1) / i.length;
|
|
986
|
+
return `calc(${c(x)}% - ${I}px)`;
|
|
990
987
|
}
|
|
991
988
|
function m({
|
|
992
|
-
stackedStyle:
|
|
993
|
-
desktopStyle:
|
|
989
|
+
stackedStyle: x,
|
|
990
|
+
desktopStyle: I
|
|
994
991
|
}) {
|
|
995
|
-
return a === "
|
|
992
|
+
return a === "tablet" ? x : I;
|
|
996
993
|
}
|
|
997
|
-
|
|
994
|
+
function u({
|
|
995
|
+
stackedStyle: x,
|
|
996
|
+
desktopStyle: I
|
|
997
|
+
}) {
|
|
998
|
+
return a === "never" ? I : x;
|
|
999
|
+
}
|
|
1000
|
+
const [g, y] = C(
|
|
998
1001
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
999
1002
|
);
|
|
1000
|
-
function
|
|
1003
|
+
function S() {
|
|
1001
1004
|
return {
|
|
1002
|
-
"--flex-dir":
|
|
1003
|
-
"--flex-dir-tablet":
|
|
1004
|
-
stackedStyle:
|
|
1005
|
+
"--flex-dir": g,
|
|
1006
|
+
"--flex-dir-tablet": m({
|
|
1007
|
+
stackedStyle: g,
|
|
1005
1008
|
desktopStyle: "row"
|
|
1006
1009
|
})
|
|
1007
1010
|
};
|
|
1008
1011
|
}
|
|
1009
|
-
function x
|
|
1010
|
-
const
|
|
1012
|
+
function T(x) {
|
|
1013
|
+
const I = x === 0 ? 0 : t, N = d(x), h = `${I}px`, f = "100%", b = 0;
|
|
1011
1014
|
return {
|
|
1012
1015
|
...{
|
|
1013
1016
|
display: "flex",
|
|
1014
1017
|
flexDirection: "column",
|
|
1015
1018
|
alignItems: "stretch"
|
|
1016
1019
|
},
|
|
1017
|
-
width:
|
|
1018
|
-
["marginLeft"]:
|
|
1019
|
-
"--column-width-mobile":
|
|
1020
|
-
stackedStyle:
|
|
1021
|
-
desktopStyle:
|
|
1020
|
+
width: N,
|
|
1021
|
+
["marginLeft"]: h,
|
|
1022
|
+
"--column-width-mobile": u({
|
|
1023
|
+
stackedStyle: f,
|
|
1024
|
+
desktopStyle: N
|
|
1022
1025
|
}),
|
|
1023
|
-
"--column-margin-left-mobile":
|
|
1024
|
-
stackedStyle:
|
|
1025
|
-
desktopStyle:
|
|
1026
|
+
"--column-margin-left-mobile": u({
|
|
1027
|
+
stackedStyle: b,
|
|
1028
|
+
desktopStyle: h
|
|
1026
1029
|
}),
|
|
1027
|
-
"--column-width-tablet":
|
|
1028
|
-
stackedStyle:
|
|
1029
|
-
desktopStyle:
|
|
1030
|
+
"--column-width-tablet": m({
|
|
1031
|
+
stackedStyle: f,
|
|
1032
|
+
desktopStyle: N
|
|
1030
1033
|
}),
|
|
1031
|
-
"--column-margin-left-tablet":
|
|
1032
|
-
stackedStyle:
|
|
1033
|
-
desktopStyle:
|
|
1034
|
+
"--column-margin-left-tablet": m({
|
|
1035
|
+
stackedStyle: b,
|
|
1036
|
+
desktopStyle: h
|
|
1034
1037
|
})
|
|
1035
1038
|
};
|
|
1036
1039
|
}
|
|
1037
|
-
function
|
|
1038
|
-
var
|
|
1039
|
-
return
|
|
1040
|
-
((
|
|
1041
|
-
)[
|
|
1040
|
+
function w(x) {
|
|
1041
|
+
var N, h;
|
|
1042
|
+
return $e(
|
|
1043
|
+
((h = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : h.breakpoints) || {}
|
|
1044
|
+
)[x].max;
|
|
1042
1045
|
}
|
|
1043
|
-
function
|
|
1046
|
+
function R() {
|
|
1044
1047
|
return `
|
|
1045
|
-
@media (max-width: ${
|
|
1048
|
+
@media (max-width: ${w("medium")}px) {
|
|
1046
1049
|
.${e.builderBlock.id}-breakpoints {
|
|
1047
1050
|
flex-direction: var(--flex-dir-tablet);
|
|
1048
1051
|
align-items: stretch;
|
|
@@ -1054,7 +1057,7 @@ function Tt(e) {
|
|
|
1054
1057
|
}
|
|
1055
1058
|
}
|
|
1056
1059
|
|
|
1057
|
-
@media (max-width: ${
|
|
1060
|
+
@media (max-width: ${w("small")}px) {
|
|
1058
1061
|
.${e.builderBlock.id}-breakpoints {
|
|
1059
1062
|
flex-direction: var(--flex-dir);
|
|
1060
1063
|
align-items: stretch;
|
|
@@ -1067,30 +1070,33 @@ function Tt(e) {
|
|
|
1067
1070
|
},
|
|
1068
1071
|
`;
|
|
1069
1072
|
}
|
|
1070
|
-
|
|
1071
|
-
|
|
1073
|
+
function A(x, I) {
|
|
1074
|
+
return {
|
|
1075
|
+
...x.link ? {
|
|
1076
|
+
href: x.link
|
|
1077
|
+
} : {},
|
|
1078
|
+
[K()]: "builder-column",
|
|
1079
|
+
style: We(T(I))
|
|
1080
|
+
};
|
|
1081
|
+
}
|
|
1082
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1083
|
+
/* @__PURE__ */ V(
|
|
1072
1084
|
"div",
|
|
1073
1085
|
{
|
|
1074
|
-
className:
|
|
1075
|
-
style:
|
|
1086
|
+
className: Bt((W = e.builderBlock) == null ? void 0 : W.id) + " div-00cb97e2",
|
|
1087
|
+
style: S(),
|
|
1076
1088
|
children: [
|
|
1077
|
-
/* @__PURE__ */ s(
|
|
1078
|
-
(
|
|
1079
|
-
|
|
1089
|
+
/* @__PURE__ */ s(te, { id: "builderio-columns", styles: R() }),
|
|
1090
|
+
(D = e.columns) == null ? void 0 : D.map((x, I) => /* @__PURE__ */ s(
|
|
1091
|
+
se,
|
|
1080
1092
|
{
|
|
1081
|
-
TagName:
|
|
1093
|
+
TagName: l(x),
|
|
1082
1094
|
actionAttributes: {},
|
|
1083
|
-
attributes:
|
|
1084
|
-
...p.link ? {
|
|
1085
|
-
href: p.link
|
|
1086
|
-
} : {},
|
|
1087
|
-
[K()]: "builder-column",
|
|
1088
|
-
style: Ve(x(v))
|
|
1089
|
-
},
|
|
1095
|
+
attributes: A(x, I),
|
|
1090
1096
|
children: /* @__PURE__ */ s(
|
|
1091
|
-
|
|
1097
|
+
M,
|
|
1092
1098
|
{
|
|
1093
|
-
path: `component.options.columns.${
|
|
1099
|
+
path: `component.options.columns.${I}.blocks`,
|
|
1094
1100
|
parent: e.builderBlock.id,
|
|
1095
1101
|
styleProp: {
|
|
1096
1102
|
flexGrow: "1"
|
|
@@ -1098,87 +1104,87 @@ function Tt(e) {
|
|
|
1098
1104
|
context: e.builderContext,
|
|
1099
1105
|
registeredComponents: e.builderComponents,
|
|
1100
1106
|
linkComponent: e.builderLinkComponent,
|
|
1101
|
-
blocks:
|
|
1107
|
+
blocks: x.blocks
|
|
1102
1108
|
}
|
|
1103
1109
|
)
|
|
1104
1110
|
},
|
|
1105
|
-
|
|
1111
|
+
I
|
|
1106
1112
|
))
|
|
1107
1113
|
]
|
|
1108
1114
|
}
|
|
1109
1115
|
),
|
|
1110
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1116
|
+
/* @__PURE__ */ s("style", { children: `.div-00cb97e2 {
|
|
1111
1117
|
display: flex;
|
|
1112
1118
|
line-height: normal;
|
|
1113
1119
|
}` })
|
|
1114
1120
|
] });
|
|
1115
1121
|
}
|
|
1116
|
-
function
|
|
1122
|
+
function Wt(e) {
|
|
1117
1123
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1118
1124
|
}
|
|
1119
|
-
function
|
|
1125
|
+
function pe(e) {
|
|
1120
1126
|
return e.replace(/http(s)?:/, "");
|
|
1121
1127
|
}
|
|
1122
|
-
function
|
|
1128
|
+
function Nt(e = "", t, n) {
|
|
1123
1129
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1124
1130
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1125
1131
|
}
|
|
1126
|
-
function
|
|
1132
|
+
function $t(e, t) {
|
|
1127
1133
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1128
1134
|
return e;
|
|
1129
1135
|
if (t === "master")
|
|
1130
|
-
return
|
|
1136
|
+
return pe(e);
|
|
1131
1137
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1132
1138
|
if (n) {
|
|
1133
1139
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1134
|
-
return
|
|
1140
|
+
return pe(`${i[0]}_${a}${o}`);
|
|
1135
1141
|
}
|
|
1136
1142
|
return null;
|
|
1137
1143
|
}
|
|
1138
|
-
function
|
|
1144
|
+
function ie(e) {
|
|
1139
1145
|
if (!e)
|
|
1140
1146
|
return e;
|
|
1141
1147
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1142
1148
|
if (e.match(/builder\.io/)) {
|
|
1143
1149
|
let n = e;
|
|
1144
1150
|
const i = Number(e.split("?width=")[1]);
|
|
1145
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1151
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Nt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1146
1152
|
}
|
|
1147
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1153
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [$t(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1148
1154
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var o, a, r, l;
|
|
1155
|
+
function Ft(e) {
|
|
1156
|
+
var o, a, r, l, c, d;
|
|
1151
1157
|
function t() {
|
|
1152
|
-
var
|
|
1153
|
-
const
|
|
1154
|
-
if (!
|
|
1158
|
+
var g;
|
|
1159
|
+
const u = e.image || e.src;
|
|
1160
|
+
if (!u || // We can auto add srcset for cdn.builder.io and shopify
|
|
1155
1161
|
// images, otherwise you can supply this prop manually
|
|
1156
|
-
!(
|
|
1162
|
+
!(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
|
|
1157
1163
|
return e.srcset;
|
|
1158
|
-
if (e.srcset && ((
|
|
1164
|
+
if (e.srcset && ((g = e.image) != null && g.includes("builder.io/api/v1/image"))) {
|
|
1159
1165
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1160
|
-
return console.debug("Removed given srcset"),
|
|
1166
|
+
return console.debug("Removed given srcset"), ie(u);
|
|
1161
1167
|
} else if (e.image && !e.srcset)
|
|
1162
|
-
return
|
|
1163
|
-
return
|
|
1168
|
+
return ie(u);
|
|
1169
|
+
return ie(u);
|
|
1164
1170
|
}
|
|
1165
1171
|
function n() {
|
|
1166
|
-
var
|
|
1167
|
-
return (
|
|
1172
|
+
var m;
|
|
1173
|
+
return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1168
1174
|
}
|
|
1169
1175
|
function i() {
|
|
1170
|
-
const
|
|
1176
|
+
const m = {
|
|
1171
1177
|
position: "absolute",
|
|
1172
1178
|
height: "100%",
|
|
1173
1179
|
width: "100%",
|
|
1174
1180
|
left: "0px",
|
|
1175
1181
|
top: "0px"
|
|
1176
1182
|
};
|
|
1177
|
-
return e.aspectRatio ?
|
|
1183
|
+
return e.aspectRatio ? m : void 0;
|
|
1178
1184
|
}
|
|
1179
|
-
return /* @__PURE__ */
|
|
1180
|
-
/* @__PURE__ */
|
|
1181
|
-
/* @__PURE__ */
|
|
1185
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1186
|
+
/* @__PURE__ */ V(E, { children: [
|
|
1187
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1182
1188
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1183
1189
|
/* @__PURE__ */ s(
|
|
1184
1190
|
"img",
|
|
@@ -1191,7 +1197,7 @@ function Vt(e) {
|
|
|
1191
1197
|
objectFit: e.backgroundSize || "cover",
|
|
1192
1198
|
...i()
|
|
1193
1199
|
},
|
|
1194
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1200
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-3ac67dd4",
|
|
1195
1201
|
src: e.image,
|
|
1196
1202
|
srcSet: t(),
|
|
1197
1203
|
sizes: e.sizes
|
|
@@ -1201,23 +1207,23 @@ function Vt(e) {
|
|
|
1201
1207
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1202
1208
|
"div",
|
|
1203
1209
|
{
|
|
1204
|
-
className: "builder-image-sizer div-
|
|
1210
|
+
className: "builder-image-sizer div-3ac67dd4",
|
|
1205
1211
|
style: {
|
|
1206
1212
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1207
1213
|
}
|
|
1208
1214
|
}
|
|
1209
1215
|
) : null,
|
|
1210
|
-
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1211
|
-
!e.fitContent && e.children ? /* @__PURE__ */ s("div", { className: "div-
|
|
1216
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1217
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1212
1218
|
] }),
|
|
1213
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1219
|
+
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
1214
1220
|
opacity: 1;
|
|
1215
1221
|
transition: opacity 0.2s ease-in-out;
|
|
1216
|
-
}.div-
|
|
1222
|
+
}.div-3ac67dd4 {
|
|
1217
1223
|
width: 100%;
|
|
1218
1224
|
pointer-events: none;
|
|
1219
1225
|
font-size: 0;
|
|
1220
|
-
}.div-
|
|
1226
|
+
}.div-3ac67dd4-2 {
|
|
1221
1227
|
display: flex;
|
|
1222
1228
|
flex-direction: column;
|
|
1223
1229
|
align-items: stretch;
|
|
@@ -1229,7 +1235,7 @@ function Vt(e) {
|
|
|
1229
1235
|
}` })
|
|
1230
1236
|
] });
|
|
1231
1237
|
}
|
|
1232
|
-
function
|
|
1238
|
+
function Lt(e) {
|
|
1233
1239
|
return /* @__PURE__ */ s(
|
|
1234
1240
|
"section",
|
|
1235
1241
|
{
|
|
@@ -1250,7 +1256,7 @@ function Bt(e) {
|
|
|
1250
1256
|
}
|
|
1251
1257
|
);
|
|
1252
1258
|
}
|
|
1253
|
-
const
|
|
1259
|
+
const Dt = {
|
|
1254
1260
|
name: "Core:Button",
|
|
1255
1261
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1256
1262
|
defaultStyles: {
|
|
@@ -1283,7 +1289,7 @@ const Wt = {
|
|
|
1283
1289
|
}],
|
|
1284
1290
|
static: !0,
|
|
1285
1291
|
noWrap: !0
|
|
1286
|
-
},
|
|
1292
|
+
}, Mt = {
|
|
1287
1293
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1288
1294
|
name: "Columns",
|
|
1289
1295
|
isRSC: !0,
|
|
@@ -1462,7 +1468,7 @@ const Wt = {
|
|
|
1462
1468
|
});
|
|
1463
1469
|
}
|
|
1464
1470
|
const n = e.get("columns");
|
|
1465
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l,
|
|
1471
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
1466
1472
|
}
|
|
1467
1473
|
}, {
|
|
1468
1474
|
name: "space",
|
|
@@ -1484,13 +1490,13 @@ const Wt = {
|
|
|
1484
1490
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1485
1491
|
advanced: !0
|
|
1486
1492
|
}]
|
|
1487
|
-
},
|
|
1493
|
+
}, Ot = {
|
|
1488
1494
|
name: "Fragment",
|
|
1489
1495
|
static: !0,
|
|
1490
1496
|
hidden: !0,
|
|
1491
1497
|
canHaveChildren: !0,
|
|
1492
1498
|
noWrap: !0
|
|
1493
|
-
},
|
|
1499
|
+
}, Ut = {
|
|
1494
1500
|
name: "Image",
|
|
1495
1501
|
static: !0,
|
|
1496
1502
|
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",
|
|
@@ -1511,15 +1517,15 @@ const Wt = {
|
|
|
1511
1517
|
onChange: (e) => {
|
|
1512
1518
|
e.delete("srcset"), e.delete("noWebp");
|
|
1513
1519
|
function n(r, l = 6e4) {
|
|
1514
|
-
return new Promise((
|
|
1520
|
+
return new Promise((c, d) => {
|
|
1515
1521
|
const m = document.createElement("img");
|
|
1516
|
-
let
|
|
1522
|
+
let u = !1;
|
|
1517
1523
|
m.onload = () => {
|
|
1518
|
-
|
|
1524
|
+
u = !0, c(m);
|
|
1519
1525
|
}, m.addEventListener("error", (g) => {
|
|
1520
|
-
console.warn("Image load failed", g.error),
|
|
1526
|
+
console.warn("Image load failed", g.error), d(g.error);
|
|
1521
1527
|
}), m.src = r, setTimeout(() => {
|
|
1522
|
-
|
|
1528
|
+
u || d(new Error("Image load timed out"));
|
|
1523
1529
|
}, l);
|
|
1524
1530
|
});
|
|
1525
1531
|
}
|
|
@@ -1590,7 +1596,7 @@ const Wt = {
|
|
|
1590
1596
|
advanced: !0,
|
|
1591
1597
|
defaultValue: 0.7041
|
|
1592
1598
|
}]
|
|
1593
|
-
},
|
|
1599
|
+
}, jt = {
|
|
1594
1600
|
name: "Core:Section",
|
|
1595
1601
|
static: !0,
|
|
1596
1602
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1629,7 +1635,7 @@ const Wt = {
|
|
|
1629
1635
|
}
|
|
1630
1636
|
}
|
|
1631
1637
|
}]
|
|
1632
|
-
},
|
|
1638
|
+
}, Ht = {
|
|
1633
1639
|
name: "Slot",
|
|
1634
1640
|
isRSC: !0,
|
|
1635
1641
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1643,7 +1649,7 @@ const Wt = {
|
|
|
1643
1649
|
defaultValue: "children"
|
|
1644
1650
|
}]
|
|
1645
1651
|
};
|
|
1646
|
-
function
|
|
1652
|
+
function Kt(e) {
|
|
1647
1653
|
var t, n, i;
|
|
1648
1654
|
return /* @__PURE__ */ s(
|
|
1649
1655
|
"div",
|
|
@@ -1655,7 +1661,7 @@ function Dt(e) {
|
|
|
1655
1661
|
"builder-slot": e.name
|
|
1656
1662
|
},
|
|
1657
1663
|
children: /* @__PURE__ */ s(
|
|
1658
|
-
|
|
1664
|
+
M,
|
|
1659
1665
|
{
|
|
1660
1666
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1661
1667
|
path: `symbol.data.${e.name}`,
|
|
@@ -1666,7 +1672,7 @@ function Dt(e) {
|
|
|
1666
1672
|
}
|
|
1667
1673
|
);
|
|
1668
1674
|
}
|
|
1669
|
-
const
|
|
1675
|
+
const qt = {
|
|
1670
1676
|
name: "Symbol",
|
|
1671
1677
|
noWrap: !0,
|
|
1672
1678
|
static: !0,
|
|
@@ -1699,7 +1705,202 @@ const Mt = {
|
|
|
1699
1705
|
hideFromUI: !0,
|
|
1700
1706
|
type: "boolean"
|
|
1701
1707
|
}]
|
|
1702
|
-
},
|
|
1708
|
+
}, oe = {
|
|
1709
|
+
"@type": "@builder.io/sdk:Element",
|
|
1710
|
+
responsiveStyles: {
|
|
1711
|
+
large: {
|
|
1712
|
+
paddingLeft: "20px",
|
|
1713
|
+
paddingRight: "20px",
|
|
1714
|
+
paddingTop: "10px",
|
|
1715
|
+
paddingBottom: "10px",
|
|
1716
|
+
minWidth: "100px",
|
|
1717
|
+
textAlign: "center",
|
|
1718
|
+
display: "flex",
|
|
1719
|
+
flexDirection: "column",
|
|
1720
|
+
cursor: "pointer",
|
|
1721
|
+
userSelect: "none"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
component: {
|
|
1725
|
+
name: "Text",
|
|
1726
|
+
options: {
|
|
1727
|
+
text: "New tab"
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
}, ae = {
|
|
1731
|
+
"@type": "@builder.io/sdk:Element",
|
|
1732
|
+
responsiveStyles: {
|
|
1733
|
+
large: {
|
|
1734
|
+
height: "200px",
|
|
1735
|
+
display: "flex",
|
|
1736
|
+
marginTop: "20px",
|
|
1737
|
+
flexDirection: "column"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
component: {
|
|
1741
|
+
name: "Text",
|
|
1742
|
+
options: {
|
|
1743
|
+
text: "New tab content "
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1746
|
+
}, zt = {
|
|
1747
|
+
name: "Builder: Tabs",
|
|
1748
|
+
inputs: [{
|
|
1749
|
+
name: "tabs",
|
|
1750
|
+
type: "list",
|
|
1751
|
+
broadcast: !0,
|
|
1752
|
+
subFields: [{
|
|
1753
|
+
name: "label",
|
|
1754
|
+
type: "uiBlocks",
|
|
1755
|
+
hideFromUI: !0,
|
|
1756
|
+
defaultValue: [oe]
|
|
1757
|
+
}, {
|
|
1758
|
+
name: "content",
|
|
1759
|
+
type: "uiBlocks",
|
|
1760
|
+
hideFromUI: !0,
|
|
1761
|
+
defaultValue: [ae]
|
|
1762
|
+
}],
|
|
1763
|
+
defaultValue: [{
|
|
1764
|
+
label: [{
|
|
1765
|
+
...oe,
|
|
1766
|
+
component: {
|
|
1767
|
+
name: "Text",
|
|
1768
|
+
options: {
|
|
1769
|
+
text: "Tab 1"
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}],
|
|
1773
|
+
content: [{
|
|
1774
|
+
...ae,
|
|
1775
|
+
component: {
|
|
1776
|
+
name: "Text",
|
|
1777
|
+
options: {
|
|
1778
|
+
text: "Tab 1 content"
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
}]
|
|
1782
|
+
}, {
|
|
1783
|
+
label: [{
|
|
1784
|
+
...oe,
|
|
1785
|
+
component: {
|
|
1786
|
+
name: "Text",
|
|
1787
|
+
options: {
|
|
1788
|
+
text: "Tab 2"
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
}],
|
|
1792
|
+
content: [{
|
|
1793
|
+
...ae,
|
|
1794
|
+
component: {
|
|
1795
|
+
name: "Text",
|
|
1796
|
+
options: {
|
|
1797
|
+
text: "Tab 2 content"
|
|
1798
|
+
}
|
|
1799
|
+
}
|
|
1800
|
+
}]
|
|
1801
|
+
}]
|
|
1802
|
+
}, {
|
|
1803
|
+
name: "activeTabStyle",
|
|
1804
|
+
type: "uiStyle",
|
|
1805
|
+
helperText: "CSS styles for the active tab",
|
|
1806
|
+
defaultValue: {
|
|
1807
|
+
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
1808
|
+
}
|
|
1809
|
+
}, {
|
|
1810
|
+
name: "defaultActiveTab",
|
|
1811
|
+
type: "number",
|
|
1812
|
+
helperText: 'Default tab to open to. Set to "1" for the first tab, "2" for the second, or choose "0" for none',
|
|
1813
|
+
defaultValue: 1,
|
|
1814
|
+
advanced: !0
|
|
1815
|
+
}, {
|
|
1816
|
+
name: "collapsible",
|
|
1817
|
+
type: "boolean",
|
|
1818
|
+
helperText: "If on, clicking an open tab closes it so no tabs are active",
|
|
1819
|
+
defaultValue: !1,
|
|
1820
|
+
advanced: !0
|
|
1821
|
+
}, {
|
|
1822
|
+
name: "tabHeaderLayout",
|
|
1823
|
+
type: "enum",
|
|
1824
|
+
helperText: "Change the layout of the tab headers (uses justify-content)",
|
|
1825
|
+
defaultValue: "flex-start",
|
|
1826
|
+
enum: [{
|
|
1827
|
+
label: "Center",
|
|
1828
|
+
value: "center"
|
|
1829
|
+
}, {
|
|
1830
|
+
label: "Space between",
|
|
1831
|
+
value: "space-between"
|
|
1832
|
+
}, {
|
|
1833
|
+
label: "Space around",
|
|
1834
|
+
value: "space-around"
|
|
1835
|
+
}, {
|
|
1836
|
+
label: "Left",
|
|
1837
|
+
value: "flex-start"
|
|
1838
|
+
}, {
|
|
1839
|
+
label: "Right",
|
|
1840
|
+
value: "flex-end"
|
|
1841
|
+
}]
|
|
1842
|
+
}]
|
|
1843
|
+
};
|
|
1844
|
+
function _t(e) {
|
|
1845
|
+
var a;
|
|
1846
|
+
const [t, n] = C(
|
|
1847
|
+
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
1848
|
+
);
|
|
1849
|
+
function i(r) {
|
|
1850
|
+
return e.tabs && e.tabs[r].content;
|
|
1851
|
+
}
|
|
1852
|
+
function o(r) {
|
|
1853
|
+
return t === r ? e.activeTabStyle : {};
|
|
1854
|
+
}
|
|
1855
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
1856
|
+
/* @__PURE__ */ s(
|
|
1857
|
+
"div",
|
|
1858
|
+
{
|
|
1859
|
+
className: "builder-tabs-wrap",
|
|
1860
|
+
style: {
|
|
1861
|
+
display: "flex",
|
|
1862
|
+
flexDirection: "row",
|
|
1863
|
+
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1864
|
+
overflow: "auto"
|
|
1865
|
+
},
|
|
1866
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
|
|
1867
|
+
"span",
|
|
1868
|
+
{
|
|
1869
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
1870
|
+
style: o(l),
|
|
1871
|
+
onClick: (c) => {
|
|
1872
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
1873
|
+
},
|
|
1874
|
+
children: /* @__PURE__ */ s(
|
|
1875
|
+
M,
|
|
1876
|
+
{
|
|
1877
|
+
parent: e.builderBlock.id,
|
|
1878
|
+
path: `component.options.tabs.${l}.label`,
|
|
1879
|
+
blocks: r.label,
|
|
1880
|
+
context: e.builderContext,
|
|
1881
|
+
registeredComponents: e.builderComponents,
|
|
1882
|
+
linkComponent: e.builderLinkComponent
|
|
1883
|
+
}
|
|
1884
|
+
)
|
|
1885
|
+
},
|
|
1886
|
+
l
|
|
1887
|
+
))
|
|
1888
|
+
}
|
|
1889
|
+
),
|
|
1890
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1891
|
+
M,
|
|
1892
|
+
{
|
|
1893
|
+
parent: e.builderBlock.id,
|
|
1894
|
+
path: `component.options.tabs.${t}.content`,
|
|
1895
|
+
blocks: i(t),
|
|
1896
|
+
context: e.builderContext,
|
|
1897
|
+
registeredComponents: e.builderComponents,
|
|
1898
|
+
linkComponent: e.builderLinkComponent
|
|
1899
|
+
}
|
|
1900
|
+
) }) : null
|
|
1901
|
+
] });
|
|
1902
|
+
}
|
|
1903
|
+
const Jt = {
|
|
1703
1904
|
name: "Text",
|
|
1704
1905
|
static: !0,
|
|
1705
1906
|
isRSC: !0,
|
|
@@ -1718,7 +1919,7 @@ const Mt = {
|
|
|
1718
1919
|
textAlign: "center"
|
|
1719
1920
|
}
|
|
1720
1921
|
};
|
|
1721
|
-
function
|
|
1922
|
+
function Yt(e) {
|
|
1722
1923
|
var t;
|
|
1723
1924
|
return /* @__PURE__ */ s(
|
|
1724
1925
|
"div",
|
|
@@ -1731,7 +1932,7 @@ function Ut(e) {
|
|
|
1731
1932
|
}
|
|
1732
1933
|
);
|
|
1733
1934
|
}
|
|
1734
|
-
const
|
|
1935
|
+
const Gt = {
|
|
1735
1936
|
name: "Custom Code",
|
|
1736
1937
|
static: !0,
|
|
1737
1938
|
requiredPermissions: ["editCode"],
|
|
@@ -1754,30 +1955,30 @@ const jt = {
|
|
|
1754
1955
|
advanced: !0
|
|
1755
1956
|
}]
|
|
1756
1957
|
};
|
|
1757
|
-
function
|
|
1758
|
-
const t =
|
|
1759
|
-
return
|
|
1958
|
+
function Qt(e) {
|
|
1959
|
+
const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []);
|
|
1960
|
+
return P(() => {
|
|
1760
1961
|
var l;
|
|
1761
1962
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
1762
1963
|
return;
|
|
1763
1964
|
const r = t.current.getElementsByTagName("script");
|
|
1764
|
-
for (let
|
|
1765
|
-
const
|
|
1766
|
-
if (
|
|
1767
|
-
if (n.includes(
|
|
1965
|
+
for (let c = 0; c < r.length; c++) {
|
|
1966
|
+
const d = r[c];
|
|
1967
|
+
if (d.src) {
|
|
1968
|
+
if (n.includes(d.src))
|
|
1768
1969
|
continue;
|
|
1769
|
-
n.push(
|
|
1970
|
+
n.push(d.src);
|
|
1770
1971
|
const m = document.createElement("script");
|
|
1771
|
-
m.async = !0, m.src =
|
|
1772
|
-
} else if (!
|
|
1972
|
+
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
1973
|
+
} else if (!d.type || [
|
|
1773
1974
|
"text/javascript",
|
|
1774
1975
|
"application/javascript",
|
|
1775
1976
|
"application/ecmascript"
|
|
1776
|
-
].includes(
|
|
1777
|
-
if (o.includes(
|
|
1977
|
+
].includes(d.type)) {
|
|
1978
|
+
if (o.includes(d.innerText))
|
|
1778
1979
|
continue;
|
|
1779
1980
|
try {
|
|
1780
|
-
o.push(
|
|
1981
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
1781
1982
|
} catch (m) {
|
|
1782
1983
|
console.warn("`CustomCode`: Error running script:", m);
|
|
1783
1984
|
}
|
|
@@ -1792,7 +1993,7 @@ function Ht(e) {
|
|
|
1792
1993
|
}
|
|
1793
1994
|
);
|
|
1794
1995
|
}
|
|
1795
|
-
const
|
|
1996
|
+
const Xt = {
|
|
1796
1997
|
name: "Embed",
|
|
1797
1998
|
static: !0,
|
|
1798
1999
|
inputs: [{
|
|
@@ -1817,29 +2018,29 @@ const Kt = {
|
|
|
1817
2018
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1818
2019
|
hideFromUI: !0
|
|
1819
2020
|
}]
|
|
1820
|
-
},
|
|
1821
|
-
function
|
|
1822
|
-
const t =
|
|
1823
|
-
function
|
|
2021
|
+
}, Zt = ["text/javascript", "application/javascript", "application/ecmascript"], en = (e) => Zt.includes(e.type);
|
|
2022
|
+
function tn(e) {
|
|
2023
|
+
const t = ee(null), [n, i] = C(() => []), [o, a] = C(() => []), [r, l] = C(() => !1);
|
|
2024
|
+
function c() {
|
|
1824
2025
|
if (!t.current || !t.current.getElementsByTagName)
|
|
1825
2026
|
return;
|
|
1826
|
-
const
|
|
1827
|
-
for (let m = 0; m <
|
|
1828
|
-
const
|
|
1829
|
-
if (
|
|
1830
|
-
n.push(
|
|
2027
|
+
const d = t.current.getElementsByTagName("script");
|
|
2028
|
+
for (let m = 0; m < d.length; m++) {
|
|
2029
|
+
const u = d[m];
|
|
2030
|
+
if (u.src && !n.includes(u.src)) {
|
|
2031
|
+
n.push(u.src);
|
|
1831
2032
|
const g = document.createElement("script");
|
|
1832
|
-
g.async = !0, g.src =
|
|
1833
|
-
} else if (
|
|
2033
|
+
g.async = !0, g.src = u.src, document.head.appendChild(g);
|
|
2034
|
+
} else if (en(u) && !o.includes(u.innerText))
|
|
1834
2035
|
try {
|
|
1835
|
-
o.push(
|
|
2036
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
1836
2037
|
} catch (g) {
|
|
1837
2038
|
console.warn("`Embed`: Error running script:", g);
|
|
1838
2039
|
}
|
|
1839
2040
|
}
|
|
1840
2041
|
}
|
|
1841
|
-
return
|
|
1842
|
-
t.current && !r && (l(!0),
|
|
2042
|
+
return P(() => {
|
|
2043
|
+
t.current && !r && (l(!0), c());
|
|
1843
2044
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
1844
2045
|
"div",
|
|
1845
2046
|
{
|
|
@@ -1849,7 +2050,7 @@ function _t(e) {
|
|
|
1849
2050
|
}
|
|
1850
2051
|
);
|
|
1851
2052
|
}
|
|
1852
|
-
const
|
|
2053
|
+
const nn = {
|
|
1853
2054
|
name: "Form:Form",
|
|
1854
2055
|
// editableTags: ['builder-form-error']
|
|
1855
2056
|
defaults: {
|
|
@@ -2080,127 +2281,127 @@ const Jt = {
|
|
|
2080
2281
|
}
|
|
2081
2282
|
}
|
|
2082
2283
|
}]
|
|
2083
|
-
},
|
|
2284
|
+
}, on = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], an = () => {
|
|
2084
2285
|
const e = process.env.NODE_ENV || "production";
|
|
2085
|
-
return
|
|
2086
|
-
},
|
|
2286
|
+
return on.includes(e) ? e : "production";
|
|
2287
|
+
}, rn = (e, t, n) => {
|
|
2087
2288
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2088
2289
|
return i === void 0 || i === e ? n : i;
|
|
2089
2290
|
};
|
|
2090
|
-
function
|
|
2091
|
-
var
|
|
2092
|
-
const t =
|
|
2093
|
-
function
|
|
2094
|
-
var
|
|
2095
|
-
const
|
|
2291
|
+
function ln(e) {
|
|
2292
|
+
var u, g;
|
|
2293
|
+
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, a] = C(() => null), [r, l] = C(() => "");
|
|
2294
|
+
function c(y) {
|
|
2295
|
+
var T, w;
|
|
2296
|
+
const S = {
|
|
2096
2297
|
...e.builderContext.rootState,
|
|
2097
2298
|
...y
|
|
2098
2299
|
};
|
|
2099
|
-
e.builderContext.rootSetState ? (w = (
|
|
2300
|
+
e.builderContext.rootSetState ? (w = (T = e.builderContext).rootSetState) == null || w.call(T, S) : e.builderContext.rootState = S;
|
|
2100
2301
|
}
|
|
2101
|
-
function
|
|
2102
|
-
return
|
|
2302
|
+
function d() {
|
|
2303
|
+
return F() && e.previewState || n;
|
|
2103
2304
|
}
|
|
2104
2305
|
function m(y) {
|
|
2105
|
-
var
|
|
2106
|
-
const
|
|
2306
|
+
var T;
|
|
2307
|
+
const S = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2107
2308
|
if (e.sendSubmissionsTo === "zapier")
|
|
2108
2309
|
y.preventDefault();
|
|
2109
|
-
else if (
|
|
2310
|
+
else if (S) {
|
|
2110
2311
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2111
2312
|
y.preventDefault();
|
|
2112
2313
|
return;
|
|
2113
2314
|
}
|
|
2114
2315
|
y.preventDefault();
|
|
2115
|
-
const w = y.currentTarget,
|
|
2116
|
-
let
|
|
2117
|
-
const
|
|
2316
|
+
const w = y.currentTarget, R = e.customHeaders || {};
|
|
2317
|
+
let A;
|
|
2318
|
+
const W = new FormData(w), D = Array.from(
|
|
2118
2319
|
y.currentTarget.querySelectorAll("input,select,textarea")
|
|
2119
|
-
).filter((
|
|
2120
|
-
let
|
|
2121
|
-
const
|
|
2122
|
-
if (
|
|
2123
|
-
if (
|
|
2124
|
-
if (
|
|
2125
|
-
return
|
|
2126
|
-
key:
|
|
2127
|
-
value:
|
|
2320
|
+
).filter((h) => !!h.name).map((h) => {
|
|
2321
|
+
let f;
|
|
2322
|
+
const b = h.name;
|
|
2323
|
+
if (h instanceof HTMLInputElement)
|
|
2324
|
+
if (h.type === "radio") {
|
|
2325
|
+
if (h.checked)
|
|
2326
|
+
return f = h.name, {
|
|
2327
|
+
key: b,
|
|
2328
|
+
value: f
|
|
2128
2329
|
};
|
|
2129
|
-
} else if (
|
|
2130
|
-
|
|
2131
|
-
else if (
|
|
2132
|
-
const
|
|
2133
|
-
isNaN(
|
|
2330
|
+
} else if (h.type === "checkbox")
|
|
2331
|
+
f = h.checked;
|
|
2332
|
+
else if (h.type === "number" || h.type === "range") {
|
|
2333
|
+
const p = h.valueAsNumber;
|
|
2334
|
+
isNaN(p) || (f = p);
|
|
2134
2335
|
} else
|
|
2135
|
-
|
|
2336
|
+
h.type === "file" ? f = h.files : f = h.value;
|
|
2136
2337
|
else
|
|
2137
|
-
|
|
2338
|
+
f = h.value;
|
|
2138
2339
|
return {
|
|
2139
|
-
key:
|
|
2140
|
-
value:
|
|
2340
|
+
key: b,
|
|
2341
|
+
value: f
|
|
2141
2342
|
};
|
|
2142
2343
|
});
|
|
2143
|
-
let
|
|
2144
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2145
|
-
(
|
|
2146
|
-
}),
|
|
2147
|
-
|
|
2344
|
+
let x = e.contentType;
|
|
2345
|
+
if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(D).forEach(({ value: h }) => {
|
|
2346
|
+
(h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (x = "multipart/form-data");
|
|
2347
|
+
}), x !== "application/json")
|
|
2348
|
+
A = W;
|
|
2148
2349
|
else {
|
|
2149
|
-
const
|
|
2150
|
-
Array.from(
|
|
2151
|
-
|
|
2152
|
-
}),
|
|
2350
|
+
const h = {};
|
|
2351
|
+
Array.from(D).forEach(({ value: f, key: b }) => {
|
|
2352
|
+
Re(h, b, f);
|
|
2353
|
+
}), A = JSON.stringify(h);
|
|
2153
2354
|
}
|
|
2154
|
-
|
|
2155
|
-
const
|
|
2156
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2355
|
+
x && x !== "multipart/form-data" && (S && ((T = e.action) != null && T.includes("zapier.com")) || (R["content-type"] = x));
|
|
2356
|
+
const I = new CustomEvent("presubmit", { detail: { body: A } });
|
|
2357
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2157
2358
|
return;
|
|
2158
2359
|
i("sending");
|
|
2159
|
-
const
|
|
2360
|
+
const N = `${an() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2160
2361
|
e.sendSubmissionsToEmail || ""
|
|
2161
2362
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2162
2363
|
fetch(
|
|
2163
|
-
e.sendSubmissionsTo === "email" ?
|
|
2164
|
-
{ body:
|
|
2364
|
+
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2365
|
+
{ body: A, headers: R, method: e.method || "post" }
|
|
2165
2366
|
).then(
|
|
2166
|
-
async (
|
|
2167
|
-
let
|
|
2168
|
-
const
|
|
2169
|
-
if (
|
|
2170
|
-
let
|
|
2171
|
-
|
|
2367
|
+
async (h) => {
|
|
2368
|
+
let f;
|
|
2369
|
+
const b = h.headers.get("content-type");
|
|
2370
|
+
if (b && b.indexOf("application/json") !== -1 ? f = await h.json() : f = await h.text(), !h.ok && e.errorMessagePath) {
|
|
2371
|
+
let p = rn(f, e.errorMessagePath);
|
|
2372
|
+
p && (typeof p != "string" && (p = JSON.stringify(p)), l(p), c({ formErrorMessage: p }));
|
|
2172
2373
|
}
|
|
2173
|
-
if (a(
|
|
2174
|
-
const
|
|
2175
|
-
detail: { res:
|
|
2374
|
+
if (a(f), i(h.ok ? "success" : "error"), h.ok) {
|
|
2375
|
+
const p = new CustomEvent("submit:success", {
|
|
2376
|
+
detail: { res: h, body: f }
|
|
2176
2377
|
});
|
|
2177
2378
|
if (t.current) {
|
|
2178
|
-
if (t.current.dispatchEvent(
|
|
2379
|
+
if (t.current.dispatchEvent(p), p.defaultPrevented)
|
|
2179
2380
|
return;
|
|
2180
2381
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2181
2382
|
}
|
|
2182
2383
|
if (e.successUrl)
|
|
2183
2384
|
if (t.current) {
|
|
2184
|
-
const
|
|
2385
|
+
const v = new CustomEvent("route", {
|
|
2185
2386
|
detail: { url: e.successUrl }
|
|
2186
2387
|
});
|
|
2187
|
-
t.current.dispatchEvent(
|
|
2388
|
+
t.current.dispatchEvent(v), v.defaultPrevented || (location.href = e.successUrl);
|
|
2188
2389
|
} else
|
|
2189
2390
|
location.href = e.successUrl;
|
|
2190
2391
|
}
|
|
2191
2392
|
},
|
|
2192
|
-
(
|
|
2193
|
-
const
|
|
2194
|
-
detail: { error:
|
|
2393
|
+
(h) => {
|
|
2394
|
+
const f = new CustomEvent("submit:error", {
|
|
2395
|
+
detail: { error: h }
|
|
2195
2396
|
});
|
|
2196
|
-
t.current && (t.current.dispatchEvent(
|
|
2397
|
+
t.current && (t.current.dispatchEvent(f), f.defaultPrevented) || (a(h), i("error"));
|
|
2197
2398
|
}
|
|
2198
2399
|
);
|
|
2199
2400
|
}
|
|
2200
2401
|
}
|
|
2201
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
2202
2403
|
" ",
|
|
2203
|
-
/* @__PURE__ */
|
|
2404
|
+
/* @__PURE__ */ V(
|
|
2204
2405
|
"form",
|
|
2205
2406
|
{
|
|
2206
2407
|
validate: e.validate,
|
|
@@ -2211,7 +2412,7 @@ function Xt(e) {
|
|
|
2211
2412
|
onSubmit: (y) => m(y),
|
|
2212
2413
|
...e.attributes,
|
|
2213
2414
|
children: [
|
|
2214
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2415
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (g = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
|
|
2215
2416
|
_,
|
|
2216
2417
|
{
|
|
2217
2418
|
block: y,
|
|
@@ -2219,27 +2420,27 @@ function Xt(e) {
|
|
|
2219
2420
|
registeredComponents: e.builderComponents,
|
|
2220
2421
|
linkComponent: e.builderLinkComponent
|
|
2221
2422
|
},
|
|
2222
|
-
`form-block-${
|
|
2423
|
+
`form-block-${S}`
|
|
2223
2424
|
)) }) : null,
|
|
2224
|
-
|
|
2225
|
-
|
|
2425
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
2426
|
+
M,
|
|
2226
2427
|
{
|
|
2227
2428
|
path: "errorMessage",
|
|
2228
2429
|
blocks: e.errorMessage,
|
|
2229
2430
|
context: e.builderContext
|
|
2230
2431
|
}
|
|
2231
2432
|
) : null,
|
|
2232
|
-
|
|
2233
|
-
|
|
2433
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
2434
|
+
M,
|
|
2234
2435
|
{
|
|
2235
2436
|
path: "sendingMessage",
|
|
2236
2437
|
blocks: e.sendingMessage,
|
|
2237
2438
|
context: e.builderContext
|
|
2238
2439
|
}
|
|
2239
2440
|
) : null,
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2441
|
+
d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
|
|
2442
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
2443
|
+
M,
|
|
2243
2444
|
{
|
|
2244
2445
|
path: "successMessage",
|
|
2245
2446
|
blocks: e.successMessage,
|
|
@@ -2254,7 +2455,7 @@ function Xt(e) {
|
|
|
2254
2455
|
" "
|
|
2255
2456
|
] });
|
|
2256
2457
|
}
|
|
2257
|
-
const
|
|
2458
|
+
const sn = {
|
|
2258
2459
|
name: "Form:Input",
|
|
2259
2460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2260
2461
|
inputs: [
|
|
@@ -2306,12 +2507,12 @@ const Zt = {
|
|
|
2306
2507
|
borderColor: "#ccc"
|
|
2307
2508
|
}
|
|
2308
2509
|
};
|
|
2309
|
-
function
|
|
2310
|
-
return /* @__PURE__ */
|
|
2510
|
+
function cn(e) {
|
|
2511
|
+
return /* @__PURE__ */ we(
|
|
2311
2512
|
"input",
|
|
2312
2513
|
{
|
|
2313
2514
|
...e.attributes,
|
|
2314
|
-
key:
|
|
2515
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2315
2516
|
placeholder: e.placeholder,
|
|
2316
2517
|
type: e.type,
|
|
2317
2518
|
name: e.name,
|
|
@@ -2321,7 +2522,7 @@ function en(e) {
|
|
|
2321
2522
|
}
|
|
2322
2523
|
);
|
|
2323
2524
|
}
|
|
2324
|
-
const
|
|
2525
|
+
const dn = {
|
|
2325
2526
|
name: "Form:Select",
|
|
2326
2527
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2327
2528
|
defaultStyles: {
|
|
@@ -2364,21 +2565,21 @@ const tn = {
|
|
|
2364
2565
|
static: !0,
|
|
2365
2566
|
noWrap: !0
|
|
2366
2567
|
};
|
|
2367
|
-
function
|
|
2568
|
+
function un(e) {
|
|
2368
2569
|
var t;
|
|
2369
|
-
return /* @__PURE__ */
|
|
2570
|
+
return /* @__PURE__ */ we(
|
|
2370
2571
|
"select",
|
|
2371
2572
|
{
|
|
2372
2573
|
...e.attributes,
|
|
2373
2574
|
value: e.value,
|
|
2374
|
-
key:
|
|
2575
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2375
2576
|
defaultValue: e.defaultValue,
|
|
2376
2577
|
name: e.name
|
|
2377
2578
|
},
|
|
2378
2579
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2379
2580
|
);
|
|
2380
2581
|
}
|
|
2381
|
-
const
|
|
2582
|
+
const mn = {
|
|
2382
2583
|
name: "Form:SubmitButton",
|
|
2383
2584
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2384
2585
|
defaultStyles: {
|
|
@@ -2404,10 +2605,10 @@ const on = {
|
|
|
2404
2605
|
// TODO: defaultChildren
|
|
2405
2606
|
// canHaveChildren: true,
|
|
2406
2607
|
};
|
|
2407
|
-
function
|
|
2608
|
+
function fn(e) {
|
|
2408
2609
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2409
2610
|
}
|
|
2410
|
-
const
|
|
2611
|
+
const hn = {
|
|
2411
2612
|
// friendlyName?
|
|
2412
2613
|
name: "Raw:Img",
|
|
2413
2614
|
hideFromInsertMenu: !0,
|
|
@@ -2422,7 +2623,7 @@ const rn = {
|
|
|
2422
2623
|
noWrap: !0,
|
|
2423
2624
|
static: !0
|
|
2424
2625
|
};
|
|
2425
|
-
function
|
|
2626
|
+
function gn(e) {
|
|
2426
2627
|
return /* @__PURE__ */ s(
|
|
2427
2628
|
"img",
|
|
2428
2629
|
{
|
|
@@ -2434,10 +2635,10 @@ function ln(e) {
|
|
|
2434
2635
|
src: e.imgSrc || e.image,
|
|
2435
2636
|
...e.attributes
|
|
2436
2637
|
},
|
|
2437
|
-
|
|
2638
|
+
F() && e.imgSrc || "default-key"
|
|
2438
2639
|
);
|
|
2439
2640
|
}
|
|
2440
|
-
const
|
|
2641
|
+
const bn = {
|
|
2441
2642
|
name: "Video",
|
|
2442
2643
|
canHaveChildren: !0,
|
|
2443
2644
|
defaultStyles: {
|
|
@@ -2519,8 +2720,8 @@ const sn = {
|
|
|
2519
2720
|
advanced: !0
|
|
2520
2721
|
}]
|
|
2521
2722
|
};
|
|
2522
|
-
function
|
|
2523
|
-
var i, o, a, r, l,
|
|
2723
|
+
function yn(e) {
|
|
2724
|
+
var i, o, a, r, l, c, d;
|
|
2524
2725
|
function t() {
|
|
2525
2726
|
return {
|
|
2526
2727
|
...e.autoPlay === !0 ? {
|
|
@@ -2545,7 +2746,7 @@ function cn(e) {
|
|
|
2545
2746
|
...t()
|
|
2546
2747
|
};
|
|
2547
2748
|
}
|
|
2548
|
-
return /* @__PURE__ */
|
|
2749
|
+
return /* @__PURE__ */ V(
|
|
2549
2750
|
"div",
|
|
2550
2751
|
{
|
|
2551
2752
|
style: {
|
|
@@ -2599,7 +2800,7 @@ function cn(e) {
|
|
|
2599
2800
|
children: e.children
|
|
2600
2801
|
}
|
|
2601
2802
|
) : null,
|
|
2602
|
-
(
|
|
2803
|
+
(d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2603
2804
|
"div",
|
|
2604
2805
|
{
|
|
2605
2806
|
style: {
|
|
@@ -2620,55 +2821,58 @@ function cn(e) {
|
|
|
2620
2821
|
}
|
|
2621
2822
|
);
|
|
2622
2823
|
}
|
|
2623
|
-
const
|
|
2624
|
-
component:
|
|
2625
|
-
...
|
|
2626
|
-
}, {
|
|
2627
|
-
component: _t,
|
|
2628
|
-
...Kt
|
|
2629
|
-
}, {
|
|
2630
|
-
component: Xt,
|
|
2631
|
-
...Jt
|
|
2632
|
-
}, {
|
|
2633
|
-
component: en,
|
|
2634
|
-
...Zt
|
|
2635
|
-
}, {
|
|
2636
|
-
component: an,
|
|
2637
|
-
...on
|
|
2824
|
+
const pn = () => [{
|
|
2825
|
+
component: Qt,
|
|
2826
|
+
...Gt
|
|
2638
2827
|
}, {
|
|
2639
|
-
component:
|
|
2640
|
-
...
|
|
2828
|
+
component: tn,
|
|
2829
|
+
...Xt
|
|
2641
2830
|
}, {
|
|
2642
2831
|
component: ln,
|
|
2643
|
-
...
|
|
2832
|
+
...nn
|
|
2644
2833
|
}, {
|
|
2645
2834
|
component: cn,
|
|
2646
2835
|
...sn
|
|
2647
|
-
}], be = () => [{
|
|
2648
|
-
component: Ge,
|
|
2649
|
-
...Wt
|
|
2650
2836
|
}, {
|
|
2651
|
-
component:
|
|
2652
|
-
...
|
|
2837
|
+
component: fn,
|
|
2838
|
+
...mn
|
|
2653
2839
|
}, {
|
|
2654
|
-
component:
|
|
2655
|
-
...
|
|
2840
|
+
component: un,
|
|
2841
|
+
...dn
|
|
2656
2842
|
}, {
|
|
2657
|
-
component:
|
|
2658
|
-
|
|
2843
|
+
component: gn,
|
|
2844
|
+
...hn
|
|
2659
2845
|
}, {
|
|
2660
|
-
component:
|
|
2661
|
-
...
|
|
2846
|
+
component: yn,
|
|
2847
|
+
...bn
|
|
2848
|
+
}], xe = () => [{
|
|
2849
|
+
component: Ze,
|
|
2850
|
+
...Dt
|
|
2662
2851
|
}, {
|
|
2663
|
-
component:
|
|
2664
|
-
...Lt
|
|
2665
|
-
}, {
|
|
2666
|
-
component: Wn,
|
|
2852
|
+
component: At,
|
|
2667
2853
|
...Mt
|
|
2668
2854
|
}, {
|
|
2669
|
-
component:
|
|
2855
|
+
component: Wt,
|
|
2670
2856
|
...Ot
|
|
2671
|
-
},
|
|
2857
|
+
}, {
|
|
2858
|
+
component: Ft,
|
|
2859
|
+
...Ut
|
|
2860
|
+
}, {
|
|
2861
|
+
component: Lt,
|
|
2862
|
+
...jt
|
|
2863
|
+
}, {
|
|
2864
|
+
component: Kt,
|
|
2865
|
+
...Ht
|
|
2866
|
+
}, {
|
|
2867
|
+
component: Un,
|
|
2868
|
+
...qt
|
|
2869
|
+
}, {
|
|
2870
|
+
component: Yt,
|
|
2871
|
+
...Jt
|
|
2872
|
+
}, {
|
|
2873
|
+
component: _t,
|
|
2874
|
+
...zt
|
|
2875
|
+
}, ...pn()], xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2672
2876
|
function getAndSetVariantId() {
|
|
2673
2877
|
function setCookie(name, value, days) {
|
|
2674
2878
|
let expires = '';
|
|
@@ -2724,7 +2928,7 @@ const dn = () => [{
|
|
|
2724
2928
|
}).join('');
|
|
2725
2929
|
styleEl.innerHTML = newStyleStr;
|
|
2726
2930
|
}
|
|
2727
|
-
}`,
|
|
2931
|
+
}`, Sn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2728
2932
|
if (!navigator.cookieEnabled) {
|
|
2729
2933
|
return;
|
|
2730
2934
|
}
|
|
@@ -2758,26 +2962,26 @@ const dn = () => [{
|
|
|
2758
2962
|
thisScriptEl?.remove();
|
|
2759
2963
|
}
|
|
2760
2964
|
return;
|
|
2761
|
-
}`,
|
|
2965
|
+
}`, Le = "builderIoAbTest", De = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2762
2966
|
...t,
|
|
2763
2967
|
testVariationId: t.id,
|
|
2764
2968
|
id: e == null ? void 0 : e.id
|
|
2765
|
-
})),
|
|
2969
|
+
})), vn = ({
|
|
2766
2970
|
canTrack: e,
|
|
2767
2971
|
content: t
|
|
2768
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
2769
|
-
window.${
|
|
2770
|
-
window.${
|
|
2771
|
-
`,
|
|
2772
|
-
window.${
|
|
2773
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2774
|
-
)`,
|
|
2972
|
+
}) => !(!(Y(t).length > 0) || !e || j()), kn = (e) => e === "react" || e === "reactNative", Me = kn(z), Cn = () => `
|
|
2973
|
+
window.${Le} = ${xn}
|
|
2974
|
+
window.${De} = ${Sn}
|
|
2975
|
+
`, Tn = (e, t) => `
|
|
2976
|
+
window.${Le}(
|
|
2977
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
2978
|
+
)`, wn = ({
|
|
2775
2979
|
contentId: e,
|
|
2776
2980
|
variationId: t
|
|
2777
|
-
}) => `window.${
|
|
2778
|
-
"${t}", "${e}", ${
|
|
2981
|
+
}) => `window.${De}(
|
|
2982
|
+
"${t}", "${e}", ${Me}
|
|
2779
2983
|
)`;
|
|
2780
|
-
function
|
|
2984
|
+
function re(e) {
|
|
2781
2985
|
return /* @__PURE__ */ s(
|
|
2782
2986
|
"script",
|
|
2783
2987
|
{
|
|
@@ -2786,10 +2990,10 @@ function ie(e) {
|
|
|
2786
2990
|
}
|
|
2787
2991
|
);
|
|
2788
2992
|
}
|
|
2789
|
-
function
|
|
2993
|
+
function Se(e) {
|
|
2790
2994
|
return Math.round(e * 1e3) / 1e3;
|
|
2791
2995
|
}
|
|
2792
|
-
const
|
|
2996
|
+
const In = (e, t, n = !0) => {
|
|
2793
2997
|
if (!(e instanceof HTMLElement))
|
|
2794
2998
|
return null;
|
|
2795
2999
|
let i = n ? e : e.parentElement;
|
|
@@ -2800,100 +3004,157 @@ const pn = (e, t, n = !0) => {
|
|
|
2800
3004
|
return i;
|
|
2801
3005
|
} while (i = i.parentElement);
|
|
2802
3006
|
return null;
|
|
2803
|
-
},
|
|
3007
|
+
}, En = (e) => In(e, (t) => {
|
|
2804
3008
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2805
3009
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2806
|
-
}),
|
|
3010
|
+
}), ve = ({
|
|
2807
3011
|
event: e,
|
|
2808
3012
|
target: t
|
|
2809
3013
|
}) => {
|
|
2810
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3014
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
|
|
2811
3015
|
return {
|
|
2812
3016
|
x: a,
|
|
2813
3017
|
y: r
|
|
2814
3018
|
};
|
|
2815
|
-
},
|
|
2816
|
-
const t = e.target, n = t &&
|
|
3019
|
+
}, Rn = (e) => {
|
|
3020
|
+
const t = e.target, n = t && En(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2817
3021
|
return {
|
|
2818
3022
|
targetBuilderElement: i || void 0,
|
|
2819
3023
|
metadata: {
|
|
2820
|
-
targetOffset: t ?
|
|
3024
|
+
targetOffset: t ? ve({
|
|
2821
3025
|
event: e,
|
|
2822
3026
|
target: t
|
|
2823
3027
|
}) : void 0,
|
|
2824
|
-
builderTargetOffset: n ?
|
|
3028
|
+
builderTargetOffset: n ? ve({
|
|
2825
3029
|
event: e,
|
|
2826
3030
|
target: n
|
|
2827
3031
|
}) : void 0,
|
|
2828
3032
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
2829
3033
|
}
|
|
2830
3034
|
};
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
3035
|
+
}, Pn = (e) => {
|
|
3036
|
+
var a, r;
|
|
3037
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3038
|
+
let o = "";
|
|
3039
|
+
if (i && t && n && (o += `
|
|
3040
|
+
@font-face {
|
|
3041
|
+
font-family: "${t}";
|
|
3042
|
+
src: local("${n}"), url('${i}') format('woff2');
|
|
3043
|
+
font-display: fallback;
|
|
3044
|
+
font-weight: 400;
|
|
3045
|
+
}
|
|
3046
|
+
`.trim()), e.files)
|
|
3047
|
+
for (const l in e.files) {
|
|
3048
|
+
if (!(String(Number(l)) === l))
|
|
3049
|
+
continue;
|
|
3050
|
+
const d = e.files[l];
|
|
3051
|
+
d && d !== i && (o += `
|
|
3052
|
+
@font-face {
|
|
3053
|
+
font-family: "${t}";
|
|
3054
|
+
src: url('${d}') format('woff2');
|
|
3055
|
+
font-display: fallback;
|
|
3056
|
+
font-weight: ${l};
|
|
3057
|
+
}
|
|
3058
|
+
`.trim());
|
|
3059
|
+
}
|
|
3060
|
+
return o;
|
|
3061
|
+
}, Vn = ({
|
|
3062
|
+
customFonts: e
|
|
3063
|
+
}) => {
|
|
3064
|
+
var t;
|
|
3065
|
+
return ((t = e == null ? void 0 : e.map((n) => Pn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3066
|
+
}, Bn = ({
|
|
3067
|
+
cssCode: e,
|
|
3068
|
+
contentId: t
|
|
3069
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", An = `
|
|
3070
|
+
.builder-button {
|
|
3071
|
+
all: unset;
|
|
3072
|
+
}
|
|
3073
|
+
|
|
3074
|
+
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3075
|
+
margin: 0;
|
|
3076
|
+
}
|
|
3077
|
+
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3078
|
+
color: inherit;
|
|
3079
|
+
line-height: inherit;
|
|
3080
|
+
letter-spacing: inherit;
|
|
3081
|
+
font-weight: inherit;
|
|
3082
|
+
font-size: inherit;
|
|
3083
|
+
text-align: inherit;
|
|
3084
|
+
font-family: inherit;
|
|
3085
|
+
}
|
|
3086
|
+
`, Wn = (e) => e ? "" : An, Nn = (e) => `variant-${e}`;
|
|
3087
|
+
function $n(e) {
|
|
3088
|
+
var A, W, D, x, I, N, h;
|
|
3089
|
+
const t = ee(null);
|
|
3090
|
+
function n(f) {
|
|
3091
|
+
var p, v;
|
|
3092
|
+
const b = {
|
|
2838
3093
|
...e.builderContextSignal.rootState,
|
|
2839
|
-
...
|
|
3094
|
+
...f
|
|
2840
3095
|
};
|
|
2841
|
-
e.builderContextSignal.rootSetState ? (
|
|
2842
|
-
...
|
|
2843
|
-
rootState:
|
|
3096
|
+
e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, b) : e.setBuilderContextSignal((k) => ({
|
|
3097
|
+
...k,
|
|
3098
|
+
rootState: b
|
|
2844
3099
|
}));
|
|
2845
3100
|
}
|
|
2846
|
-
function i(
|
|
2847
|
-
var
|
|
2848
|
-
const
|
|
3101
|
+
function i(f) {
|
|
3102
|
+
var p, v, k, B, O;
|
|
3103
|
+
const b = {
|
|
2849
3104
|
...e.builderContextSignal.content,
|
|
2850
|
-
...
|
|
3105
|
+
...f,
|
|
2851
3106
|
data: {
|
|
2852
|
-
...(
|
|
2853
|
-
...
|
|
3107
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
|
|
3108
|
+
...f == null ? void 0 : f.data
|
|
2854
3109
|
},
|
|
2855
3110
|
meta: {
|
|
2856
|
-
...(
|
|
2857
|
-
...
|
|
2858
|
-
breakpoints: ((
|
|
3111
|
+
...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
|
|
3112
|
+
...f == null ? void 0 : f.meta,
|
|
3113
|
+
breakpoints: ((k = f == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || ((O = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : O.breakpoints)
|
|
2859
3114
|
}
|
|
2860
3115
|
};
|
|
2861
|
-
e.setBuilderContextSignal((
|
|
2862
|
-
|
|
2863
|
-
content:
|
|
3116
|
+
e.setBuilderContextSignal(($) => ({
|
|
3117
|
+
...$,
|
|
3118
|
+
content: b
|
|
2864
3119
|
}));
|
|
2865
3120
|
}
|
|
2866
|
-
|
|
3121
|
+
function o() {
|
|
3122
|
+
return e.showContent ? {} : {
|
|
3123
|
+
hidden: !0,
|
|
3124
|
+
"aria-hidden": !0
|
|
3125
|
+
};
|
|
3126
|
+
}
|
|
3127
|
+
const [a, r] = C(
|
|
2867
3128
|
() => e.contentWrapper || "div"
|
|
2868
3129
|
);
|
|
2869
|
-
function
|
|
2870
|
-
return
|
|
3130
|
+
function l(f) {
|
|
3131
|
+
return Je({
|
|
2871
3132
|
model: e.model,
|
|
2872
3133
|
trustedHosts: e.trustedHosts,
|
|
2873
3134
|
callbacks: {
|
|
2874
|
-
configureSdk: (
|
|
2875
|
-
var
|
|
2876
|
-
const { breakpoints:
|
|
2877
|
-
!
|
|
3135
|
+
configureSdk: (b) => {
|
|
3136
|
+
var k;
|
|
3137
|
+
const { breakpoints: p, contentId: v } = b;
|
|
3138
|
+
!v || v !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || p && i({
|
|
2878
3139
|
meta: {
|
|
2879
|
-
breakpoints:
|
|
3140
|
+
breakpoints: p
|
|
2880
3141
|
}
|
|
2881
3142
|
});
|
|
2882
3143
|
},
|
|
2883
|
-
animation: (
|
|
2884
|
-
|
|
3144
|
+
animation: (b) => {
|
|
3145
|
+
Be(b);
|
|
2885
3146
|
},
|
|
2886
|
-
contentUpdate: (
|
|
2887
|
-
i(
|
|
3147
|
+
contentUpdate: (b) => {
|
|
3148
|
+
i(b);
|
|
2888
3149
|
}
|
|
2889
3150
|
}
|
|
2890
|
-
})(
|
|
3151
|
+
})(f);
|
|
2891
3152
|
}
|
|
2892
|
-
function
|
|
2893
|
-
var
|
|
2894
|
-
const
|
|
2895
|
-
|
|
2896
|
-
code:
|
|
3153
|
+
function c() {
|
|
3154
|
+
var b, p;
|
|
3155
|
+
const f = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.jsCode;
|
|
3156
|
+
f && q({
|
|
3157
|
+
code: f,
|
|
2897
3158
|
context: e.context || {},
|
|
2898
3159
|
localState: void 0,
|
|
2899
3160
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2904,35 +3165,35 @@ function vn(e) {
|
|
|
2904
3165
|
enableCache: !1
|
|
2905
3166
|
});
|
|
2906
3167
|
}
|
|
2907
|
-
const [d,
|
|
2908
|
-
function
|
|
2909
|
-
var
|
|
3168
|
+
const [d, m] = C(() => ({})), [u, g] = C(() => ({})), [y, S] = C(() => !1);
|
|
3169
|
+
function T(f) {
|
|
3170
|
+
var b, p;
|
|
2910
3171
|
if (e.builderContextSignal.content) {
|
|
2911
|
-
const
|
|
2912
|
-
|
|
3172
|
+
const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, k = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
|
|
3173
|
+
me({
|
|
2913
3174
|
type: "click",
|
|
2914
3175
|
canTrack: Q(e.canTrack),
|
|
2915
|
-
contentId:
|
|
3176
|
+
contentId: k,
|
|
2916
3177
|
apiKey: e.apiKey,
|
|
2917
|
-
variationId:
|
|
2918
|
-
...
|
|
2919
|
-
unique: !
|
|
3178
|
+
variationId: v !== k ? v : void 0,
|
|
3179
|
+
...Rn(f),
|
|
3180
|
+
unique: !y
|
|
2920
3181
|
});
|
|
2921
3182
|
}
|
|
2922
|
-
|
|
3183
|
+
y || S(!0);
|
|
2923
3184
|
}
|
|
2924
|
-
function
|
|
2925
|
-
var
|
|
2926
|
-
const
|
|
2927
|
-
Object.entries(
|
|
2928
|
-
if (!
|
|
3185
|
+
function w() {
|
|
3186
|
+
var b, p, v;
|
|
3187
|
+
const f = (v = (p = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : p.httpRequests) != null ? v : {};
|
|
3188
|
+
Object.entries(f).forEach(([k, B]) => {
|
|
3189
|
+
if (!B || u[k] || d[k] && !F())
|
|
2929
3190
|
return;
|
|
2930
|
-
|
|
2931
|
-
const
|
|
3191
|
+
u[k] = !0;
|
|
3192
|
+
const O = B.replace(
|
|
2932
3193
|
/{{([^}]+)}}/g,
|
|
2933
|
-
(
|
|
3194
|
+
($, Oe) => String(
|
|
2934
3195
|
q({
|
|
2935
|
-
code:
|
|
3196
|
+
code: Oe,
|
|
2936
3197
|
context: e.context || {},
|
|
2937
3198
|
localState: void 0,
|
|
2938
3199
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -2941,24 +3202,24 @@ function vn(e) {
|
|
|
2941
3202
|
})
|
|
2942
3203
|
)
|
|
2943
3204
|
);
|
|
2944
|
-
|
|
3205
|
+
Ye(O).then(($) => $.json()).then(($) => {
|
|
2945
3206
|
n({
|
|
2946
|
-
[
|
|
2947
|
-
}), d[
|
|
2948
|
-
}).catch((
|
|
2949
|
-
console.error("error fetching dynamic data",
|
|
3207
|
+
[k]: $
|
|
3208
|
+
}), d[k] = !0;
|
|
3209
|
+
}).catch(($) => {
|
|
3210
|
+
console.error("error fetching dynamic data", B, $);
|
|
2950
3211
|
}).finally(() => {
|
|
2951
|
-
|
|
3212
|
+
u[k] = !1;
|
|
2952
3213
|
});
|
|
2953
3214
|
});
|
|
2954
3215
|
}
|
|
2955
|
-
function
|
|
2956
|
-
|
|
3216
|
+
function R() {
|
|
3217
|
+
F() && window.dispatchEvent(
|
|
2957
3218
|
new CustomEvent(
|
|
2958
3219
|
"builder:component:stateChange",
|
|
2959
3220
|
{
|
|
2960
3221
|
detail: {
|
|
2961
|
-
state:
|
|
3222
|
+
state: le(e.builderContextSignal.rootState),
|
|
2962
3223
|
ref: {
|
|
2963
3224
|
name: e.model
|
|
2964
3225
|
}
|
|
@@ -2967,10 +3228,10 @@ function vn(e) {
|
|
|
2967
3228
|
)
|
|
2968
3229
|
);
|
|
2969
3230
|
}
|
|
2970
|
-
return
|
|
2971
|
-
var
|
|
2972
|
-
if (
|
|
2973
|
-
if (
|
|
3231
|
+
return P(() => {
|
|
3232
|
+
var f, b;
|
|
3233
|
+
if (j()) {
|
|
3234
|
+
if (F() && (window.addEventListener("message", l), Ke(), qe({
|
|
2974
3235
|
...e.locale ? {
|
|
2975
3236
|
locale: e.locale
|
|
2976
3237
|
} : {},
|
|
@@ -2982,152 +3243,99 @@ function vn(e) {
|
|
|
2982
3243
|
} : {}
|
|
2983
3244
|
}), Object.values(
|
|
2984
3245
|
e.builderContextSignal.componentInfos
|
|
2985
|
-
).forEach((
|
|
2986
|
-
var
|
|
2987
|
-
const
|
|
2988
|
-
(
|
|
3246
|
+
).forEach((v) => {
|
|
3247
|
+
var B;
|
|
3248
|
+
const k = ze(v);
|
|
3249
|
+
(B = window.parent) == null || B.postMessage(k, "*");
|
|
2989
3250
|
}), window.addEventListener(
|
|
2990
3251
|
"builder:component:stateChangeListenerActivated",
|
|
2991
|
-
|
|
3252
|
+
R
|
|
2992
3253
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
2993
|
-
const
|
|
2994
|
-
|
|
3254
|
+
const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id, B = e.apiKey;
|
|
3255
|
+
me({
|
|
2995
3256
|
type: "impression",
|
|
2996
3257
|
canTrack: !0,
|
|
2997
|
-
contentId:
|
|
2998
|
-
apiKey:
|
|
2999
|
-
variationId:
|
|
3258
|
+
contentId: k,
|
|
3259
|
+
apiKey: B,
|
|
3260
|
+
variationId: v !== k ? v : void 0
|
|
3000
3261
|
});
|
|
3001
3262
|
}
|
|
3002
|
-
if (
|
|
3003
|
-
const
|
|
3004
|
-
`builder.preview.${
|
|
3005
|
-
),
|
|
3006
|
-
|
|
3263
|
+
if (_e() && !F()) {
|
|
3264
|
+
const v = new URL(location.href).searchParams, k = v.get("builder.preview"), B = v.get(
|
|
3265
|
+
`builder.preview.${k}`
|
|
3266
|
+
), O = v.get("apiKey") || v.get("builder.space");
|
|
3267
|
+
k === e.model && O === e.apiKey && (!e.content || B === e.content.id) && Ce({
|
|
3007
3268
|
model: e.model,
|
|
3008
3269
|
apiKey: e.apiKey,
|
|
3009
3270
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3010
|
-
}).then((
|
|
3011
|
-
|
|
3271
|
+
}).then(($) => {
|
|
3272
|
+
$ && i($);
|
|
3012
3273
|
});
|
|
3013
3274
|
}
|
|
3014
3275
|
}
|
|
3015
|
-
}, []),
|
|
3016
|
-
e.apiKey ||
|
|
3276
|
+
}, []), P(() => {
|
|
3277
|
+
e.apiKey || Z.error(
|
|
3017
3278
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3018
|
-
),
|
|
3019
|
-
}, []),
|
|
3279
|
+
), c(), w(), R();
|
|
3280
|
+
}, []), P(() => {
|
|
3020
3281
|
e.content && i(e.content);
|
|
3021
|
-
}, [e.content]),
|
|
3022
|
-
|
|
3023
|
-
}, [(
|
|
3024
|
-
k();
|
|
3025
|
-
}, [(P = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : P.httpRequests]), V(() => {
|
|
3282
|
+
}, [e.content]), P(() => {
|
|
3283
|
+
c();
|
|
3284
|
+
}, [(W = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : W.jsCode]), P(() => {
|
|
3026
3285
|
w();
|
|
3027
|
-
}, [e.builderContextSignal.
|
|
3286
|
+
}, [(x = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : x.httpRequests]), P(() => {
|
|
3287
|
+
R();
|
|
3288
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3028
3289
|
e.data && n(e.data);
|
|
3029
|
-
}, [e.data]),
|
|
3290
|
+
}, [e.data]), P(() => {
|
|
3030
3291
|
e.locale && n({
|
|
3031
3292
|
locale: e.locale
|
|
3032
3293
|
});
|
|
3033
|
-
}, [e.locale]),
|
|
3034
|
-
|
|
3294
|
+
}, [e.locale]), P(() => () => {
|
|
3295
|
+
j() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3035
3296
|
"builder:component:stateChangeListenerActivated",
|
|
3036
|
-
|
|
3297
|
+
R
|
|
3037
3298
|
));
|
|
3038
|
-
}, []), /* @__PURE__ */ s(
|
|
3039
|
-
|
|
3299
|
+
}, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3300
|
+
a,
|
|
3040
3301
|
{
|
|
3041
3302
|
ref: t,
|
|
3042
|
-
onClick: (
|
|
3043
|
-
"builder-content-id": (
|
|
3303
|
+
onClick: (f) => T(f),
|
|
3304
|
+
"builder-content-id": (I = e.builderContextSignal.content) == null ? void 0 : I.id,
|
|
3044
3305
|
"builder-model": e.model,
|
|
3045
|
-
...
|
|
3046
|
-
hidden: !0,
|
|
3047
|
-
"aria-hidden": !0
|
|
3048
|
-
},
|
|
3306
|
+
...o(),
|
|
3049
3307
|
...e.contentWrapperProps,
|
|
3050
|
-
className:
|
|
3308
|
+
className: Nn(
|
|
3309
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((h = e.content) == null ? void 0 : h.id)
|
|
3310
|
+
),
|
|
3051
3311
|
children: e.children
|
|
3052
3312
|
}
|
|
3053
3313
|
) : null });
|
|
3054
3314
|
}
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3058
|
-
let o = "";
|
|
3059
|
-
if (i && t && n && (o += `
|
|
3060
|
-
@font-face {
|
|
3061
|
-
font-family: "${t}";
|
|
3062
|
-
src: local("${n}"), url('${i}') format('woff2');
|
|
3063
|
-
font-display: fallback;
|
|
3064
|
-
font-weight: 400;
|
|
3065
|
-
}
|
|
3066
|
-
`.trim()), e.files)
|
|
3067
|
-
for (const l in e.files) {
|
|
3068
|
-
if (!(String(Number(l)) === l))
|
|
3069
|
-
continue;
|
|
3070
|
-
const c = e.files[l];
|
|
3071
|
-
c && c !== i && (o += `
|
|
3072
|
-
@font-face {
|
|
3073
|
-
font-family: "${t}";
|
|
3074
|
-
src: url('${c}') format('woff2');
|
|
3075
|
-
font-display: fallback;
|
|
3076
|
-
font-weight: ${l};
|
|
3077
|
-
}
|
|
3078
|
-
`.trim());
|
|
3079
|
-
}
|
|
3080
|
-
return o;
|
|
3081
|
-
}, Cn = ({
|
|
3082
|
-
customFonts: e
|
|
3083
|
-
}) => {
|
|
3084
|
-
var t;
|
|
3085
|
-
return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3086
|
-
}, wn = ({
|
|
3087
|
-
cssCode: e,
|
|
3088
|
-
contentId: t
|
|
3089
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
|
|
3090
|
-
.builder-button {
|
|
3091
|
-
all: unset;
|
|
3092
|
-
}
|
|
3093
|
-
|
|
3094
|
-
.builder-text > p:first-of-type, .builder-text > .builder-paragraph:first-of-type {
|
|
3095
|
-
margin: 0;
|
|
3096
|
-
}
|
|
3097
|
-
.builder-text > p, .builder-text > .builder-paragraph {
|
|
3098
|
-
color: inherit;
|
|
3099
|
-
line-height: inherit;
|
|
3100
|
-
letter-spacing: inherit;
|
|
3101
|
-
font-weight: inherit;
|
|
3102
|
-
font-size: inherit;
|
|
3103
|
-
text-align: inherit;
|
|
3104
|
-
font-family: inherit;
|
|
3105
|
-
}
|
|
3106
|
-
`, Tn = (e) => e ? "" : In;
|
|
3107
|
-
function En(e) {
|
|
3108
|
-
const [t, n] = I(
|
|
3315
|
+
function Fn(e) {
|
|
3316
|
+
const [t, n] = C(
|
|
3109
3317
|
() => `
|
|
3110
|
-
${
|
|
3318
|
+
${Bn({
|
|
3111
3319
|
cssCode: e.cssCode,
|
|
3112
3320
|
contentId: e.contentId
|
|
3113
3321
|
})}
|
|
3114
|
-
${
|
|
3322
|
+
${Vn({
|
|
3115
3323
|
customFonts: e.customFonts
|
|
3116
3324
|
})}
|
|
3117
|
-
${
|
|
3325
|
+
${Wn(e.isNestedRender)}
|
|
3118
3326
|
`.trim()
|
|
3119
3327
|
);
|
|
3120
|
-
return /* @__PURE__ */ s(
|
|
3328
|
+
return /* @__PURE__ */ s(te, { id: "builderio-content", styles: t });
|
|
3121
3329
|
}
|
|
3122
|
-
const
|
|
3330
|
+
const Ln = ({
|
|
3123
3331
|
content: e,
|
|
3124
3332
|
data: t,
|
|
3125
3333
|
locale: n
|
|
3126
3334
|
}) => {
|
|
3127
3335
|
var a, r, l;
|
|
3128
3336
|
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3129
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
3130
|
-
|
|
3337
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
|
|
3338
|
+
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
3131
3339
|
}), {
|
|
3132
3340
|
...i,
|
|
3133
3341
|
...o,
|
|
@@ -3136,7 +3344,7 @@ const Rn = ({
|
|
|
3136
3344
|
locale: n
|
|
3137
3345
|
} : {}
|
|
3138
3346
|
};
|
|
3139
|
-
},
|
|
3347
|
+
}, Dn = ({
|
|
3140
3348
|
content: e,
|
|
3141
3349
|
data: t
|
|
3142
3350
|
}) => e ? {
|
|
@@ -3147,46 +3355,46 @@ const Rn = ({
|
|
|
3147
3355
|
},
|
|
3148
3356
|
meta: e == null ? void 0 : e.meta
|
|
3149
3357
|
} : void 0;
|
|
3150
|
-
function
|
|
3151
|
-
var
|
|
3152
|
-
const [t, n] =
|
|
3358
|
+
function ke(e) {
|
|
3359
|
+
var c, d, m, u, g, y, S;
|
|
3360
|
+
const [t, n] = C(
|
|
3153
3361
|
() => {
|
|
3154
|
-
var
|
|
3155
|
-
return
|
|
3362
|
+
var T, w;
|
|
3363
|
+
return wn({
|
|
3156
3364
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3157
|
-
variationId: (
|
|
3365
|
+
variationId: (T = e.content) == null ? void 0 : T.testVariationId,
|
|
3158
3366
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3159
3367
|
contentId: (w = e.content) == null ? void 0 : w.id
|
|
3160
3368
|
});
|
|
3161
3369
|
}
|
|
3162
3370
|
);
|
|
3163
|
-
function i(
|
|
3371
|
+
function i(T) {
|
|
3164
3372
|
l((w) => ({
|
|
3165
3373
|
...w,
|
|
3166
|
-
rootState:
|
|
3374
|
+
rootState: T
|
|
3167
3375
|
}));
|
|
3168
3376
|
}
|
|
3169
|
-
const [o, a] =
|
|
3377
|
+
const [o, a] = C(
|
|
3170
3378
|
() => [
|
|
3171
|
-
...
|
|
3379
|
+
...xe(),
|
|
3172
3380
|
...e.customComponents || []
|
|
3173
3381
|
].reduce(
|
|
3174
|
-
(
|
|
3175
|
-
...
|
|
3176
|
-
[
|
|
3382
|
+
(T, { component: w, ...R }) => ({
|
|
3383
|
+
...T,
|
|
3384
|
+
[R.name]: {
|
|
3177
3385
|
component: w,
|
|
3178
|
-
...
|
|
3386
|
+
...fe(R)
|
|
3179
3387
|
}
|
|
3180
3388
|
}),
|
|
3181
3389
|
{}
|
|
3182
3390
|
)
|
|
3183
|
-
), [r, l] =
|
|
3184
|
-
content:
|
|
3391
|
+
), [r, l] = C(() => ({
|
|
3392
|
+
content: Dn({
|
|
3185
3393
|
content: e.content,
|
|
3186
3394
|
data: e.data
|
|
3187
3395
|
}),
|
|
3188
3396
|
localState: void 0,
|
|
3189
|
-
rootState:
|
|
3397
|
+
rootState: Ln({
|
|
3190
3398
|
content: e.content,
|
|
3191
3399
|
data: e.data,
|
|
3192
3400
|
locale: e.locale
|
|
@@ -3196,12 +3404,12 @@ function xe(e) {
|
|
|
3196
3404
|
apiKey: e.apiKey,
|
|
3197
3405
|
apiVersion: e.apiVersion,
|
|
3198
3406
|
componentInfos: [
|
|
3199
|
-
...
|
|
3407
|
+
...xe(),
|
|
3200
3408
|
...e.customComponents || []
|
|
3201
3409
|
].reduce(
|
|
3202
|
-
(
|
|
3203
|
-
...
|
|
3204
|
-
[
|
|
3410
|
+
(T, { component: w, ...R }) => ({
|
|
3411
|
+
...T,
|
|
3412
|
+
[R.name]: fe(R)
|
|
3205
3413
|
}),
|
|
3206
3414
|
{}
|
|
3207
3415
|
),
|
|
@@ -3210,13 +3418,13 @@ function xe(e) {
|
|
|
3210
3418
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3211
3419
|
}));
|
|
3212
3420
|
return /* @__PURE__ */ s(
|
|
3213
|
-
|
|
3421
|
+
Ie.Provider,
|
|
3214
3422
|
{
|
|
3215
3423
|
value: {
|
|
3216
3424
|
registeredComponents: o
|
|
3217
3425
|
},
|
|
3218
|
-
children: /* @__PURE__ */
|
|
3219
|
-
|
|
3426
|
+
children: /* @__PURE__ */ V(
|
|
3427
|
+
$n,
|
|
3220
3428
|
{
|
|
3221
3429
|
content: e.content,
|
|
3222
3430
|
data: e.data,
|
|
@@ -3235,25 +3443,25 @@ function xe(e) {
|
|
|
3235
3443
|
setBuilderContextSignal: l,
|
|
3236
3444
|
children: [
|
|
3237
3445
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3238
|
-
|
|
3446
|
+
re,
|
|
3239
3447
|
{
|
|
3240
3448
|
id: "builderio-variant-visibility",
|
|
3241
3449
|
scriptStr: t
|
|
3242
3450
|
}
|
|
3243
3451
|
) : null,
|
|
3244
3452
|
/* @__PURE__ */ s(
|
|
3245
|
-
|
|
3453
|
+
Fn,
|
|
3246
3454
|
{
|
|
3247
3455
|
isNestedRender: e.isNestedRender,
|
|
3248
|
-
contentId: (
|
|
3249
|
-
cssCode: (m = (
|
|
3250
|
-
customFonts: (g = (
|
|
3456
|
+
contentId: (c = r.content) == null ? void 0 : c.id,
|
|
3457
|
+
cssCode: (m = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
3458
|
+
customFonts: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
|
|
3251
3459
|
}
|
|
3252
3460
|
),
|
|
3253
3461
|
/* @__PURE__ */ s(
|
|
3254
|
-
|
|
3462
|
+
M,
|
|
3255
3463
|
{
|
|
3256
|
-
blocks: (
|
|
3464
|
+
blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
|
|
3257
3465
|
context: r,
|
|
3258
3466
|
registeredComponents: o,
|
|
3259
3467
|
linkComponent: e.linkComponent
|
|
@@ -3265,20 +3473,20 @@ function xe(e) {
|
|
|
3265
3473
|
}
|
|
3266
3474
|
);
|
|
3267
3475
|
}
|
|
3268
|
-
function
|
|
3476
|
+
function Mn(e) {
|
|
3269
3477
|
var r;
|
|
3270
|
-
const [t, n] =
|
|
3271
|
-
() =>
|
|
3478
|
+
const [t, n] = C(
|
|
3479
|
+
() => vn({
|
|
3272
3480
|
canTrack: Q(e.canTrack),
|
|
3273
3481
|
content: e.content
|
|
3274
3482
|
})
|
|
3275
3483
|
);
|
|
3276
3484
|
function i() {
|
|
3277
3485
|
var l;
|
|
3278
|
-
return
|
|
3279
|
-
Y(e.content).map((
|
|
3280
|
-
id:
|
|
3281
|
-
testRatio:
|
|
3486
|
+
return Tn(
|
|
3487
|
+
Y(e.content).map((c) => ({
|
|
3488
|
+
id: c.testVariationId,
|
|
3489
|
+
testRatio: c.testRatio
|
|
3282
3490
|
})),
|
|
3283
3491
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3284
3492
|
);
|
|
@@ -3291,37 +3499,37 @@ function Vn(e) {
|
|
|
3291
3499
|
return t ? {
|
|
3292
3500
|
...e.content,
|
|
3293
3501
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3294
|
-
} :
|
|
3502
|
+
} : Ge({
|
|
3295
3503
|
item: e.content,
|
|
3296
3504
|
canTrack: Q(e.canTrack)
|
|
3297
3505
|
});
|
|
3298
3506
|
}
|
|
3299
|
-
return
|
|
3300
|
-
}, []), /* @__PURE__ */
|
|
3507
|
+
return P(() => {
|
|
3508
|
+
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3301
3509
|
!e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
|
|
3302
|
-
|
|
3510
|
+
re,
|
|
3303
3511
|
{
|
|
3304
3512
|
id: "builderio-init-variants-fns",
|
|
3305
|
-
scriptStr:
|
|
3513
|
+
scriptStr: Cn()
|
|
3306
3514
|
}
|
|
3307
3515
|
) : null,
|
|
3308
|
-
t ? /* @__PURE__ */
|
|
3516
|
+
t ? /* @__PURE__ */ V(E, { children: [
|
|
3309
3517
|
/* @__PURE__ */ s(
|
|
3310
|
-
|
|
3518
|
+
te,
|
|
3311
3519
|
{
|
|
3312
3520
|
id: "builderio-variants",
|
|
3313
3521
|
styles: o()
|
|
3314
3522
|
}
|
|
3315
3523
|
),
|
|
3316
3524
|
/* @__PURE__ */ s(
|
|
3317
|
-
|
|
3525
|
+
re,
|
|
3318
3526
|
{
|
|
3319
3527
|
id: "builderio-variants-visibility",
|
|
3320
3528
|
scriptStr: i()
|
|
3321
3529
|
}
|
|
3322
3530
|
),
|
|
3323
3531
|
(r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
3324
|
-
|
|
3532
|
+
ke,
|
|
3325
3533
|
{
|
|
3326
3534
|
isNestedRender: e.isNestedRender,
|
|
3327
3535
|
content: l,
|
|
@@ -3347,7 +3555,7 @@ function Vn(e) {
|
|
|
3347
3555
|
))
|
|
3348
3556
|
] }) : null,
|
|
3349
3557
|
/* @__PURE__ */ s(
|
|
3350
|
-
|
|
3558
|
+
ke,
|
|
3351
3559
|
{
|
|
3352
3560
|
isNestedRender: e.isNestedRender,
|
|
3353
3561
|
content: a(),
|
|
@@ -3372,13 +3580,13 @@ function Vn(e) {
|
|
|
3372
3580
|
)
|
|
3373
3581
|
] });
|
|
3374
3582
|
}
|
|
3375
|
-
const
|
|
3583
|
+
const On = async ({
|
|
3376
3584
|
builderContextValue: e,
|
|
3377
3585
|
symbol: t
|
|
3378
3586
|
}) => {
|
|
3379
3587
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3380
3588
|
(e != null && e.apiKey))
|
|
3381
|
-
return
|
|
3589
|
+
return Ce({
|
|
3382
3590
|
model: t.model,
|
|
3383
3591
|
apiKey: e.apiKey,
|
|
3384
3592
|
apiVersion: e.apiVersion,
|
|
@@ -3388,69 +3596,75 @@ const Bn = async ({
|
|
|
3388
3596
|
}
|
|
3389
3597
|
}
|
|
3390
3598
|
}).catch((n) => {
|
|
3391
|
-
|
|
3599
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
3392
3600
|
});
|
|
3393
3601
|
};
|
|
3394
|
-
function
|
|
3395
|
-
var
|
|
3602
|
+
function Un(e) {
|
|
3603
|
+
var l, c, d, m;
|
|
3396
3604
|
function t() {
|
|
3397
|
-
|
|
3605
|
+
return "div";
|
|
3606
|
+
}
|
|
3607
|
+
function n() {
|
|
3608
|
+
return "div";
|
|
3609
|
+
}
|
|
3610
|
+
function i() {
|
|
3611
|
+
var u, g;
|
|
3398
3612
|
return [
|
|
3399
3613
|
e.attributes[K()],
|
|
3400
3614
|
"builder-symbol",
|
|
3401
|
-
(
|
|
3402
|
-
(
|
|
3615
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
3616
|
+
(g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3403
3617
|
].filter(Boolean).join(" ");
|
|
3404
3618
|
}
|
|
3405
|
-
const [
|
|
3406
|
-
var
|
|
3407
|
-
return (
|
|
3619
|
+
const [o, a] = C(() => {
|
|
3620
|
+
var u;
|
|
3621
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
3408
3622
|
});
|
|
3409
|
-
function
|
|
3410
|
-
|
|
3623
|
+
function r() {
|
|
3624
|
+
o || On({
|
|
3411
3625
|
symbol: e.symbol,
|
|
3412
3626
|
builderContextValue: e.builderContext
|
|
3413
|
-
}).then((
|
|
3414
|
-
|
|
3627
|
+
}).then((u) => {
|
|
3628
|
+
u && a(u);
|
|
3415
3629
|
});
|
|
3416
3630
|
}
|
|
3417
|
-
return
|
|
3418
|
-
}, []),
|
|
3419
|
-
|
|
3420
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
3421
|
-
|
|
3631
|
+
return P(() => {
|
|
3632
|
+
}, []), P(() => {
|
|
3633
|
+
r();
|
|
3634
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3635
|
+
Mn,
|
|
3422
3636
|
{
|
|
3423
3637
|
isNestedRender: !0,
|
|
3424
3638
|
apiVersion: e.builderContext.apiVersion,
|
|
3425
3639
|
apiKey: e.builderContext.apiKey,
|
|
3426
3640
|
context: {
|
|
3427
3641
|
...e.builderContext.context,
|
|
3428
|
-
symbolId: (
|
|
3642
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
3429
3643
|
},
|
|
3430
3644
|
customComponents: Object.values(e.builderComponents),
|
|
3431
3645
|
data: {
|
|
3432
|
-
...(
|
|
3646
|
+
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3433
3647
|
...e.builderContext.localState,
|
|
3434
|
-
...(
|
|
3648
|
+
...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
|
|
3435
3649
|
},
|
|
3436
|
-
model: (
|
|
3437
|
-
content:
|
|
3650
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
3651
|
+
content: o,
|
|
3438
3652
|
linkComponent: e.builderLinkComponent,
|
|
3439
|
-
blocksWrapper:
|
|
3440
|
-
contentWrapper:
|
|
3653
|
+
blocksWrapper: t(),
|
|
3654
|
+
contentWrapper: n()
|
|
3441
3655
|
}
|
|
3442
3656
|
) });
|
|
3443
3657
|
}
|
|
3444
3658
|
export {
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3659
|
+
M as Blocks,
|
|
3660
|
+
ce as BuilderContext,
|
|
3661
|
+
Ze as Button,
|
|
3662
|
+
At as Columns,
|
|
3663
|
+
Mn as Content,
|
|
3664
|
+
Wt as Fragment,
|
|
3665
|
+
Ft as Image,
|
|
3666
|
+
Lt as Section,
|
|
3667
|
+
Un as Symbol,
|
|
3668
|
+
Yt as Text,
|
|
3669
|
+
yn as Video
|
|
3456
3670
|
};
|