@builder.io/sdk-react 2.0.16 → 2.0.21
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 +852 -829
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +22 -23
- package/lib/browser/{server-entry-c1666709.cjs → server-entry-6e52be8e.cjs} +2 -2
- package/lib/browser/{server-entry-1db0d96b.js → server-entry-8f273525.js} +1 -3
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-7c1c7c56.js → accordion-0fa0cd9f.js} +1 -1
- package/lib/edge/{accordion-09162a27.cjs → accordion-98e5d925.cjs} +1 -1
- package/lib/edge/blocks-4dac2e8c.cjs +12 -0
- package/lib/edge/{blocks-46c07b56.js → blocks-805edb5d.js} +296 -276
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-f2daea13.cjs → button-04692c59.cjs} +1 -1
- package/lib/edge/{button-a923f8ff.js → button-8c912189.js} +2 -2
- package/lib/edge/columns-4d8db53c.cjs +28 -0
- package/lib/edge/{columns-eee4f51c.js → columns-70a13cfe.js} +8 -9
- package/lib/edge/content-variants-7570438f.cjs +134 -0
- package/lib/edge/{content-variants-1368cab1.js → content-variants-d11198bc.js} +306 -309
- package/lib/edge/{evaluate-93701356.js → evaluate-29e9d055.js} +736 -711
- package/lib/edge/{evaluate-4c9b2e86.cjs → evaluate-826010e9.cjs} +13 -15
- package/lib/edge/form-13c77d47.cjs +1 -0
- package/lib/edge/{form-d0eb0af4.js → form-28c6dcde.js} +16 -17
- package/lib/edge/{get-class-prop-name-7cd1376f.cjs → get-class-prop-name-182b0edb.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-1c373615.js → get-class-prop-name-c9e11804.js} +1 -1
- package/lib/edge/{image-eebfcbac.cjs → image-54d2f755.cjs} +3 -3
- package/lib/edge/{image-6a074aab.js → image-6970c193.js} +24 -24
- package/lib/edge/{img-6c8139db.cjs → img-8f2d03d2.cjs} +1 -1
- package/lib/edge/{img-6e16ade6.js → img-ca1be569.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-c78fef2b.cjs → input-0456a323.cjs} +1 -1
- package/lib/edge/{input-a7e9c157.js → input-3db08208.js} +1 -1
- package/lib/edge/{select-3cf593bd.js → select-251dfaa4.js} +1 -1
- package/lib/edge/{select-bd1e231b.cjs → select-b851ff58.cjs} +1 -1
- package/lib/edge/{server-entry-6b3ad048.js → server-entry-05e6ebef.js} +1 -3
- package/lib/edge/{server-entry-d09af943.cjs → server-entry-75427eb3.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/slot-279f992e.cjs +1 -0
- package/lib/edge/{slot-a5a9a30f.js → slot-76c2cebc.js} +6 -7
- package/lib/edge/{symbol-9de15518.cjs → symbol-020487c5.cjs} +1 -1
- package/lib/edge/{symbol-77d331c6.js → symbol-47130603.js} +2 -2
- package/lib/edge/{tabs-63d6ea85.js → tabs-3cc397e4.js} +13 -14
- package/lib/edge/tabs-c6053c2d.cjs +1 -0
- package/lib/edge/{text-4d508bbc.js → text-29ef4fd5.js} +8 -9
- package/lib/edge/text-c9d83141.cjs +1 -0
- package/lib/node/blocks-exports.cjs +31 -31
- package/lib/node/blocks-exports.mjs +807 -822
- 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/{server-entry-1db0d96b.js → server-entry-83392238.js} +1 -2
- package/lib/node/{server-entry-c1666709.cjs → server-entry-b5908591.cjs} +2 -2
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-1188ea7b.js → should-force-browser-runtime-in-node-31b1e2f2.js} +57 -30
- package/lib/node/should-force-browser-runtime-in-node-391032cf.cjs +48 -0
- package/package.json +1 -1
- package/types/components/awaiter.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/component-reference-types.d.ts +4 -0
- package/types/context/types.d.ts +2 -1
- package/types/functions/evaluate/browser-runtime/browser.d.ts +0 -6
- package/types/functions/evaluate/helpers.d.ts +5 -0
- package/lib/browser/init.cjs +0 -8
- package/lib/browser/init.mjs +0 -64
- package/lib/browser/should-force-browser-runtime-in-node-00f3cfef.js +0 -17
- package/lib/browser/should-force-browser-runtime-in-node-f768fb5d.cjs +0 -1
- package/lib/edge/blocks-273f24cc.cjs +0 -12
- package/lib/edge/columns-0b8c2260.cjs +0 -28
- package/lib/edge/content-variants-575b5dbf.cjs +0 -134
- package/lib/edge/form-bd184008.cjs +0 -1
- package/lib/edge/init.cjs +0 -8
- package/lib/edge/init.mjs +0 -64
- package/lib/edge/should-force-browser-runtime-in-node-2b14e4a8.cjs +0 -1
- package/lib/edge/should-force-browser-runtime-in-node-560bddfb.js +0 -17
- package/lib/edge/slot-ab7fc875.cjs +0 -1
- package/lib/edge/tabs-e6fa664e.cjs +0 -1
- package/lib/edge/text-ab5d2747.cjs +0 -1
- package/lib/node/should-force-browser-runtime-in-node-37010e2f.cjs +0 -48
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as l, Fragment as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ l(
|
|
12
|
-
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
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 G = (e, t, n) => (je(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as w, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as L, isBrowser as _, logger as ae, checkIsDefined as ne, isPreviewing as ke, isEditing as F, registerInsertMenu as Me, setupBrowserForEditing as He, createRegisterComponentMessage as Ke, getDefaultCanTrack as z, _track as de, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ue, handleABTestingSync as _e } from "./server-entry-83392238.js";
|
|
7
|
+
import { createContext as Te, useEffect as P, useState as T, useRef as D, useContext as me, createElement as Ie } from "react";
|
|
8
|
+
import { getFunctionArguments as ze, flattenState as Je, shouldForceBrowserRuntimeInNode as Ye, runInNode as Ge, parseCode as Qe, getBuilderGlobals as Xe, set as we, fastClone as re } from "./should-force-browser-runtime-in-node-31b1e2f2.js";
|
|
9
|
+
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
10
|
+
function le(e) {
|
|
11
|
+
return /* @__PURE__ */ l(w, { children: et(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
|
+
}
|
|
13
|
+
const M = () => {
|
|
14
|
+
switch (L) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -24,11 +24,11 @@ const q = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function tt(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function rt(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ l(
|
|
42
|
-
|
|
42
|
+
le,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function rt(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const se = Te({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -62,21 +62,21 @@ const me = Ee({
|
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: ""
|
|
65
|
-
}),
|
|
66
|
-
function
|
|
65
|
+
}), Re = Te({ registeredComponents: {} });
|
|
66
|
+
function nt(e) {
|
|
67
67
|
var t;
|
|
68
68
|
return {
|
|
69
69
|
...(t = e.component) == null ? void 0 : t.options,
|
|
70
70
|
...e.options
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function it(e, ...t) {
|
|
74
74
|
const n = Object.assign({}, e);
|
|
75
75
|
for (const i of t)
|
|
76
76
|
delete n[i];
|
|
77
77
|
return n;
|
|
78
78
|
}
|
|
79
|
-
const
|
|
79
|
+
const ot = ({
|
|
80
80
|
code: e,
|
|
81
81
|
builder: t,
|
|
82
82
|
context: n,
|
|
@@ -85,46 +85,20 @@ const ct = ({
|
|
|
85
85
|
rootSetState: a,
|
|
86
86
|
rootState: r
|
|
87
87
|
}) => {
|
|
88
|
-
const s =
|
|
88
|
+
const s = ze({
|
|
89
89
|
builder: t,
|
|
90
90
|
context: n,
|
|
91
91
|
event: i,
|
|
92
|
-
state:
|
|
92
|
+
state: Je({
|
|
93
93
|
rootState: r,
|
|
94
94
|
localState: o,
|
|
95
95
|
rootSetState: a
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
99
|
-
}
|
|
100
|
-
function Ae({
|
|
101
|
-
rootState: e,
|
|
102
|
-
localState: t,
|
|
103
|
-
rootSetState: n
|
|
104
|
-
}) {
|
|
105
|
-
return new Proxy(e, {
|
|
106
|
-
get: (i, o) => {
|
|
107
|
-
if (t && o in t)
|
|
108
|
-
return t[o];
|
|
109
|
-
const a = i[o];
|
|
110
|
-
return typeof a == "object" && a !== null ? Ae({
|
|
111
|
-
rootState: a,
|
|
112
|
-
localState: void 0,
|
|
113
|
-
rootSetState: n ? (r) => {
|
|
114
|
-
i[o] = r, n(i);
|
|
115
|
-
} : void 0
|
|
116
|
-
}) : a;
|
|
117
|
-
},
|
|
118
|
-
set: (i, o, a) => {
|
|
119
|
-
if (t && o in t)
|
|
120
|
-
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
121
|
-
return i[o] = a, n == null || n(i), !0;
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
const dt = (e) => G() || et({
|
|
99
|
+
}, at = (e) => _() || Ye({
|
|
126
100
|
shouldLogWarning: !0
|
|
127
|
-
}) ?
|
|
101
|
+
}) ? ot(e) : Ge(e), rt = !0, $ = class $ {
|
|
128
102
|
static getCacheKey(t) {
|
|
129
103
|
return JSON.stringify({
|
|
130
104
|
...t,
|
|
@@ -134,17 +108,17 @@ const dt = (e) => G() || et({
|
|
|
134
108
|
});
|
|
135
109
|
}
|
|
136
110
|
static getCachedValue(t) {
|
|
137
|
-
return
|
|
111
|
+
return $.cache.get(t);
|
|
138
112
|
}
|
|
139
113
|
static setCachedValue(t, n) {
|
|
140
|
-
|
|
114
|
+
$.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
|
|
141
115
|
value: n
|
|
142
116
|
});
|
|
143
117
|
}
|
|
144
118
|
};
|
|
145
|
-
|
|
146
|
-
let
|
|
147
|
-
function
|
|
119
|
+
G($, "cacheLimit", 20), G($, "cache", /* @__PURE__ */ new Map());
|
|
120
|
+
let O = $;
|
|
121
|
+
function U({
|
|
148
122
|
code: e,
|
|
149
123
|
context: t,
|
|
150
124
|
localState: n,
|
|
@@ -157,50 +131,50 @@ function H({
|
|
|
157
131
|
if (e === "")
|
|
158
132
|
return;
|
|
159
133
|
const d = {
|
|
160
|
-
code:
|
|
134
|
+
code: Qe(e, {
|
|
161
135
|
isExpression: r
|
|
162
136
|
}),
|
|
163
|
-
builder:
|
|
137
|
+
builder: Xe(),
|
|
164
138
|
context: t,
|
|
165
139
|
event: a,
|
|
166
140
|
rootSetState: o,
|
|
167
141
|
rootState: i,
|
|
168
142
|
localState: n
|
|
169
143
|
};
|
|
170
|
-
if (s && !
|
|
171
|
-
const c =
|
|
172
|
-
if (
|
|
173
|
-
return
|
|
144
|
+
if (s && !rt) {
|
|
145
|
+
const c = O.getCacheKey(d), f = O.getCachedValue(c);
|
|
146
|
+
if (f)
|
|
147
|
+
return f.value;
|
|
174
148
|
}
|
|
175
149
|
try {
|
|
176
|
-
const c =
|
|
150
|
+
const c = at(d);
|
|
177
151
|
if (s) {
|
|
178
|
-
const
|
|
179
|
-
|
|
152
|
+
const f = O.getCacheKey(d);
|
|
153
|
+
O.setCachedValue(f, c);
|
|
180
154
|
}
|
|
181
155
|
return c;
|
|
182
156
|
} catch (c) {
|
|
183
|
-
|
|
157
|
+
ae.error("Failed code evaluation: " + c.message, {
|
|
184
158
|
code: e
|
|
185
159
|
});
|
|
186
160
|
return;
|
|
187
161
|
}
|
|
188
162
|
}
|
|
189
|
-
function
|
|
163
|
+
function ie(e) {
|
|
190
164
|
if (e === null || typeof e != "object")
|
|
191
165
|
return e;
|
|
192
166
|
if (Array.isArray(e))
|
|
193
|
-
return e.map((n) =>
|
|
167
|
+
return e.map((n) => ie(n));
|
|
194
168
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
195
169
|
return e;
|
|
196
170
|
const t = {};
|
|
197
171
|
for (const n in e)
|
|
198
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
172
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
199
173
|
return t;
|
|
200
174
|
}
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
const t =
|
|
175
|
+
const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), st = (e) => {
|
|
176
|
+
if (lt) {
|
|
177
|
+
const t = re(e);
|
|
204
178
|
return {
|
|
205
179
|
...t,
|
|
206
180
|
properties: {
|
|
@@ -211,7 +185,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
211
185
|
}
|
|
212
186
|
};
|
|
213
187
|
} else {
|
|
214
|
-
const t =
|
|
188
|
+
const t = ie(it(e, "children", "meta"));
|
|
215
189
|
return {
|
|
216
190
|
...t,
|
|
217
191
|
properties: {
|
|
@@ -224,7 +198,7 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
224
198
|
meta: e.meta
|
|
225
199
|
};
|
|
226
200
|
}
|
|
227
|
-
},
|
|
201
|
+
}, ct = ({
|
|
228
202
|
block: e,
|
|
229
203
|
context: t,
|
|
230
204
|
localState: n,
|
|
@@ -233,9 +207,9 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
233
207
|
}) => {
|
|
234
208
|
if (!e.bindings)
|
|
235
209
|
return e;
|
|
236
|
-
const a =
|
|
210
|
+
const a = st(e);
|
|
237
211
|
for (const r in e.bindings) {
|
|
238
|
-
const s = e.bindings[r], d =
|
|
212
|
+
const s = e.bindings[r], d = U({
|
|
239
213
|
code: s,
|
|
240
214
|
localState: n,
|
|
241
215
|
rootState: i,
|
|
@@ -243,11 +217,11 @@ const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) =
|
|
|
243
217
|
context: t,
|
|
244
218
|
enableCache: !0
|
|
245
219
|
});
|
|
246
|
-
|
|
220
|
+
we(a, r, d);
|
|
247
221
|
}
|
|
248
222
|
return a;
|
|
249
223
|
};
|
|
250
|
-
function
|
|
224
|
+
function dt({
|
|
251
225
|
block: e,
|
|
252
226
|
context: t,
|
|
253
227
|
shouldEvaluateBindings: n,
|
|
@@ -256,7 +230,7 @@ function gt({
|
|
|
256
230
|
rootSetState: a
|
|
257
231
|
}) {
|
|
258
232
|
const r = e;
|
|
259
|
-
return n ?
|
|
233
|
+
return n ? ct({
|
|
260
234
|
block: r,
|
|
261
235
|
localState: i,
|
|
262
236
|
rootState: o,
|
|
@@ -264,8 +238,8 @@ function gt({
|
|
|
264
238
|
context: t
|
|
265
239
|
}) : r;
|
|
266
240
|
}
|
|
267
|
-
const
|
|
268
|
-
function
|
|
241
|
+
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
242
|
+
function ut(e, t, n = {}) {
|
|
269
243
|
let i, o, a, r = null, s = 0;
|
|
270
244
|
const d = function() {
|
|
271
245
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -273,11 +247,11 @@ function bt(e, t, n = {}) {
|
|
|
273
247
|
return function() {
|
|
274
248
|
const c = Date.now();
|
|
275
249
|
!s && n.leading === !1 && (s = c);
|
|
276
|
-
const
|
|
277
|
-
return i = this, o = arguments,
|
|
250
|
+
const f = t - (c - s);
|
|
251
|
+
return i = this, o = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, f)), a;
|
|
278
252
|
};
|
|
279
253
|
}
|
|
280
|
-
function
|
|
254
|
+
function j(e, ...t) {
|
|
281
255
|
const n = Object(e);
|
|
282
256
|
for (let i = 1; i < arguments.length; i++) {
|
|
283
257
|
const o = arguments[i];
|
|
@@ -287,118 +261,118 @@ function K(e, ...t) {
|
|
|
287
261
|
}
|
|
288
262
|
return n;
|
|
289
263
|
}
|
|
290
|
-
function
|
|
264
|
+
function mt(e) {
|
|
291
265
|
for (const t of e)
|
|
292
266
|
switch (t.trigger) {
|
|
293
267
|
case "pageLoad":
|
|
294
|
-
|
|
268
|
+
Pe(t);
|
|
295
269
|
break;
|
|
296
270
|
case "scrollInView":
|
|
297
|
-
|
|
271
|
+
ht(t);
|
|
298
272
|
break;
|
|
299
273
|
}
|
|
300
274
|
}
|
|
301
|
-
function
|
|
275
|
+
function Ee(e) {
|
|
302
276
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
303
277
|
}
|
|
304
|
-
function
|
|
305
|
-
const n =
|
|
278
|
+
function Be(e, t) {
|
|
279
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
306
280
|
for (const s of r)
|
|
307
281
|
for (const d of n)
|
|
308
282
|
d in s || (s[d] = i[d]);
|
|
309
283
|
}
|
|
310
|
-
function
|
|
284
|
+
function ft(e) {
|
|
311
285
|
const t = [];
|
|
312
286
|
for (const n of e.steps)
|
|
313
287
|
for (const i in n.styles)
|
|
314
288
|
t.indexOf(i) === -1 && t.push(i);
|
|
315
289
|
return t;
|
|
316
290
|
}
|
|
317
|
-
function
|
|
291
|
+
function Pe(e) {
|
|
318
292
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
319
293
|
if (!t.length) {
|
|
320
|
-
|
|
294
|
+
Ee(e.elementId || e.id || "");
|
|
321
295
|
return;
|
|
322
296
|
}
|
|
323
297
|
Array.from(t).forEach((n) => {
|
|
324
|
-
|
|
325
|
-
n.style.transition = `all ${e.duration}s ${
|
|
298
|
+
Be(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
|
|
299
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
|
|
326
300
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
327
301
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
328
302
|
});
|
|
329
303
|
});
|
|
330
304
|
}
|
|
331
|
-
function
|
|
305
|
+
function ht(e) {
|
|
332
306
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
333
307
|
if (!t.length) {
|
|
334
|
-
|
|
308
|
+
Ee(e.elementId || e.id || "");
|
|
335
309
|
return;
|
|
336
310
|
}
|
|
337
311
|
Array.from(t).forEach((n) => {
|
|
338
|
-
|
|
312
|
+
Be(e, n);
|
|
339
313
|
let i = !1, o = !1;
|
|
340
314
|
function a() {
|
|
341
315
|
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
342
|
-
|
|
316
|
+
j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
343
317
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
344
318
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
345
|
-
})) : e.repeat && i && !o && !s(n) && (i = !1,
|
|
319
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, j(n.style, e.steps[0].styles));
|
|
346
320
|
}
|
|
347
|
-
const r =
|
|
321
|
+
const r = ut(a, 200, {
|
|
348
322
|
leading: !1
|
|
349
323
|
});
|
|
350
|
-
function s(
|
|
351
|
-
const
|
|
352
|
-
return
|
|
324
|
+
function s(f) {
|
|
325
|
+
const b = f.getBoundingClientRect(), h = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * h;
|
|
326
|
+
return b.bottom > g && b.top < h - g;
|
|
353
327
|
}
|
|
354
328
|
const d = e.steps[0].styles;
|
|
355
329
|
function c() {
|
|
356
|
-
|
|
330
|
+
j(n.style, d);
|
|
357
331
|
}
|
|
358
332
|
c(), setTimeout(() => {
|
|
359
|
-
n.style.transition = `all ${e.duration}s ${
|
|
333
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
360
334
|
}), document.addEventListener("scroll", r, {
|
|
361
335
|
capture: !0,
|
|
362
336
|
passive: !0
|
|
363
337
|
}), a();
|
|
364
338
|
});
|
|
365
339
|
}
|
|
366
|
-
const
|
|
340
|
+
const Ve = (e) => Object.entries(e).map(([n, i]) => {
|
|
367
341
|
if (typeof i == "string")
|
|
368
|
-
return `${
|
|
369
|
-
}).filter(
|
|
370
|
-
`),
|
|
342
|
+
return `${J(n)}: ${i};`;
|
|
343
|
+
}).filter(ne), gt = (e) => Ve(e).join(`
|
|
344
|
+
`), K = ({
|
|
371
345
|
mediaQuery: e,
|
|
372
346
|
className: t,
|
|
373
347
|
styles: n
|
|
374
348
|
}) => {
|
|
375
349
|
const i = `.${t} {
|
|
376
|
-
${
|
|
350
|
+
${gt(n)}
|
|
377
351
|
}`;
|
|
378
352
|
return e ? `${e} {
|
|
379
353
|
${i}
|
|
380
354
|
}` : i;
|
|
381
355
|
};
|
|
382
|
-
function
|
|
356
|
+
function bt({
|
|
383
357
|
style: e
|
|
384
358
|
}) {
|
|
385
359
|
return e;
|
|
386
360
|
}
|
|
387
|
-
const
|
|
361
|
+
const pt = ({
|
|
388
362
|
block: e,
|
|
389
363
|
context: t
|
|
390
|
-
}) =>
|
|
364
|
+
}) => Ae(bt({
|
|
391
365
|
style: e.style || {},
|
|
392
366
|
context: t,
|
|
393
367
|
block: e
|
|
394
368
|
}));
|
|
395
|
-
function
|
|
396
|
-
switch (
|
|
369
|
+
function Ae(e) {
|
|
370
|
+
switch (L) {
|
|
397
371
|
case "svelte":
|
|
398
372
|
case "vue":
|
|
399
373
|
case "solid":
|
|
400
374
|
case "angular":
|
|
401
|
-
return
|
|
375
|
+
return Ve(e).join(" ");
|
|
402
376
|
case "qwik":
|
|
403
377
|
case "reactNative":
|
|
404
378
|
case "react":
|
|
@@ -406,7 +380,7 @@ function De(e) {
|
|
|
406
380
|
return e;
|
|
407
381
|
}
|
|
408
382
|
}
|
|
409
|
-
const
|
|
383
|
+
const yt = ({
|
|
410
384
|
block: e,
|
|
411
385
|
registeredComponents: t
|
|
412
386
|
}) => {
|
|
@@ -420,7 +394,7 @@ const Ct = ({
|
|
|
420
394
|
console.warn(`
|
|
421
395
|
Could not find a registered component named "${n}".
|
|
422
396
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
423
|
-
},
|
|
397
|
+
}, xt = ({
|
|
424
398
|
block: e,
|
|
425
399
|
context: t
|
|
426
400
|
}) => {
|
|
@@ -430,7 +404,7 @@ const Ct = ({
|
|
|
430
404
|
} = e;
|
|
431
405
|
if (!(n != null && n.collection))
|
|
432
406
|
return;
|
|
433
|
-
const o =
|
|
407
|
+
const o = U({
|
|
434
408
|
code: n.collection,
|
|
435
409
|
localState: t.localState,
|
|
436
410
|
rootState: t.rootState,
|
|
@@ -454,27 +428,27 @@ const Ct = ({
|
|
|
454
428
|
},
|
|
455
429
|
block: i
|
|
456
430
|
}));
|
|
457
|
-
},
|
|
431
|
+
}, vt = (e, t) => {
|
|
458
432
|
var n;
|
|
459
433
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
460
434
|
builderLinkComponent: t
|
|
461
435
|
} : {};
|
|
462
|
-
},
|
|
436
|
+
}, St = (e, t) => {
|
|
463
437
|
var n;
|
|
464
438
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
465
439
|
builderComponents: t
|
|
466
440
|
} : {};
|
|
467
|
-
},
|
|
441
|
+
}, kt = (e, t) => {
|
|
468
442
|
var n;
|
|
469
443
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
470
444
|
builderBlock: t
|
|
471
445
|
} : {};
|
|
472
|
-
},
|
|
446
|
+
}, Ct = (e, t) => {
|
|
473
447
|
var n;
|
|
474
448
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
475
449
|
builderContext: t
|
|
476
450
|
} : {};
|
|
477
|
-
},
|
|
451
|
+
}, We = {
|
|
478
452
|
small: {
|
|
479
453
|
min: 320,
|
|
480
454
|
default: 321,
|
|
@@ -490,11 +464,11 @@ const Ct = ({
|
|
|
490
464
|
default: 991,
|
|
491
465
|
max: 1200
|
|
492
466
|
}
|
|
493
|
-
},
|
|
467
|
+
}, fe = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Fe = ({
|
|
494
468
|
small: e,
|
|
495
469
|
medium: t
|
|
496
470
|
}) => {
|
|
497
|
-
const n =
|
|
471
|
+
const n = re(We);
|
|
498
472
|
if (!e || !t)
|
|
499
473
|
return n;
|
|
500
474
|
const i = Math.floor(e / 2);
|
|
@@ -517,7 +491,7 @@ const Ct = ({
|
|
|
517
491
|
default: a + 1
|
|
518
492
|
}, n;
|
|
519
493
|
};
|
|
520
|
-
function
|
|
494
|
+
function Y(e) {
|
|
521
495
|
return /* @__PURE__ */ l(
|
|
522
496
|
"style",
|
|
523
497
|
{
|
|
@@ -527,59 +501,59 @@ function Z(e) {
|
|
|
527
501
|
}
|
|
528
502
|
);
|
|
529
503
|
}
|
|
530
|
-
function
|
|
504
|
+
function Tt(e) {
|
|
531
505
|
function t() {
|
|
532
506
|
const i = e.block;
|
|
533
|
-
return
|
|
507
|
+
return ne(i.hide) ? !i.hide : ne(i.show) ? i.show : !0;
|
|
534
508
|
}
|
|
535
509
|
function n() {
|
|
536
|
-
var
|
|
537
|
-
const i = e.block, o = i.responsiveStyles, a = e.context.content, r =
|
|
538
|
-
((
|
|
539
|
-
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small,
|
|
540
|
-
if (!
|
|
510
|
+
var x, E, C;
|
|
511
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Fe(
|
|
512
|
+
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
513
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, f = i.id;
|
|
514
|
+
if (!f)
|
|
541
515
|
return "";
|
|
542
|
-
const
|
|
543
|
-
className:
|
|
516
|
+
const b = s ? K({
|
|
517
|
+
className: f,
|
|
544
518
|
styles: s
|
|
545
|
-
}) : "",
|
|
546
|
-
className:
|
|
519
|
+
}) : "", h = d ? K({
|
|
520
|
+
className: f,
|
|
547
521
|
styles: d,
|
|
548
|
-
mediaQuery:
|
|
522
|
+
mediaQuery: fe(
|
|
549
523
|
"medium",
|
|
550
524
|
r
|
|
551
525
|
)
|
|
552
|
-
}) : "",
|
|
553
|
-
className:
|
|
526
|
+
}) : "", v = c ? K({
|
|
527
|
+
className: f,
|
|
554
528
|
styles: c,
|
|
555
|
-
mediaQuery:
|
|
529
|
+
mediaQuery: fe(
|
|
556
530
|
"small",
|
|
557
531
|
r
|
|
558
532
|
)
|
|
559
|
-
}) : "",
|
|
560
|
-
let
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
className: `${
|
|
533
|
+
}) : "", g = i.animations && i.animations.find((k) => k.trigger === "hover");
|
|
534
|
+
let S = "";
|
|
535
|
+
if (g) {
|
|
536
|
+
const k = ((C = (E = g.steps) == null ? void 0 : E[1]) == null ? void 0 : C.styles) || {};
|
|
537
|
+
S = K({
|
|
538
|
+
className: `${f}:hover`,
|
|
565
539
|
styles: {
|
|
566
|
-
...
|
|
567
|
-
transition: `all ${
|
|
568
|
-
|
|
540
|
+
...k,
|
|
541
|
+
transition: `all ${g.duration}s ${J(
|
|
542
|
+
g.easing
|
|
569
543
|
)}`,
|
|
570
|
-
transitionDelay:
|
|
544
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
571
545
|
}
|
|
572
546
|
}) || "";
|
|
573
547
|
}
|
|
574
548
|
return [
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
549
|
+
b,
|
|
550
|
+
h,
|
|
551
|
+
v,
|
|
552
|
+
S
|
|
579
553
|
].join(" ");
|
|
580
554
|
}
|
|
581
|
-
return /* @__PURE__ */ l(
|
|
582
|
-
|
|
555
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
556
|
+
Y,
|
|
583
557
|
{
|
|
584
558
|
id: "builderio-block",
|
|
585
559
|
styles: n(),
|
|
@@ -587,10 +561,10 @@ function Bt(e) {
|
|
|
587
561
|
}
|
|
588
562
|
) }) : null });
|
|
589
563
|
}
|
|
590
|
-
function
|
|
564
|
+
function It(e) {
|
|
591
565
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
592
566
|
}
|
|
593
|
-
const
|
|
567
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
|
|
594
568
|
code: e,
|
|
595
569
|
context: t.context,
|
|
596
570
|
localState: t.localState,
|
|
@@ -600,16 +574,16 @@ const Vt = (e) => `on${Pt(e)}`, At = (e, t) => (n) => H({
|
|
|
600
574
|
isExpression: !1,
|
|
601
575
|
enableCache: !0
|
|
602
576
|
});
|
|
603
|
-
function
|
|
577
|
+
function Ne(e) {
|
|
604
578
|
var i;
|
|
605
579
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
606
580
|
for (const o in n) {
|
|
607
581
|
if (!n.hasOwnProperty(o))
|
|
608
582
|
continue;
|
|
609
583
|
const a = n[o];
|
|
610
|
-
let r =
|
|
584
|
+
let r = wt(o);
|
|
611
585
|
if (e.stripPrefix)
|
|
612
|
-
switch (
|
|
586
|
+
switch (L) {
|
|
613
587
|
case "vue":
|
|
614
588
|
r = r.replace("v-on:", "");
|
|
615
589
|
break;
|
|
@@ -617,49 +591,49 @@ function Ue(e) {
|
|
|
617
591
|
r = r.replace("on:", "");
|
|
618
592
|
break;
|
|
619
593
|
}
|
|
620
|
-
t[r] =
|
|
594
|
+
t[r] = Rt(a, e);
|
|
621
595
|
}
|
|
622
596
|
return t;
|
|
623
597
|
}
|
|
624
|
-
function
|
|
598
|
+
function Et({
|
|
625
599
|
properties: e
|
|
626
600
|
}) {
|
|
627
601
|
return e;
|
|
628
602
|
}
|
|
629
|
-
const
|
|
603
|
+
const Bt = (e) => ({
|
|
630
604
|
href: e.href
|
|
631
605
|
});
|
|
632
|
-
function
|
|
606
|
+
function ce({
|
|
633
607
|
block: e,
|
|
634
608
|
context: t
|
|
635
609
|
}) {
|
|
636
610
|
var i;
|
|
637
611
|
const n = {
|
|
638
|
-
...
|
|
612
|
+
...Bt(e),
|
|
639
613
|
...e.properties,
|
|
640
614
|
"builder-id": e.id,
|
|
641
|
-
style:
|
|
615
|
+
style: pt({
|
|
642
616
|
block: e,
|
|
643
617
|
context: t
|
|
644
618
|
}),
|
|
645
|
-
[
|
|
619
|
+
[M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
646
620
|
};
|
|
647
|
-
return
|
|
621
|
+
return Et({
|
|
648
622
|
properties: n,
|
|
649
623
|
context: t,
|
|
650
624
|
block: e
|
|
651
625
|
});
|
|
652
626
|
}
|
|
653
|
-
function
|
|
627
|
+
function Pt(e) {
|
|
654
628
|
return /* @__PURE__ */ l(
|
|
655
|
-
|
|
629
|
+
le,
|
|
656
630
|
{
|
|
657
631
|
TagName: e.Wrapper,
|
|
658
|
-
attributes:
|
|
632
|
+
attributes: ce({
|
|
659
633
|
block: e.block,
|
|
660
634
|
context: e.context
|
|
661
635
|
}),
|
|
662
|
-
actionAttributes:
|
|
636
|
+
actionAttributes: Ne({
|
|
663
637
|
block: e.block,
|
|
664
638
|
rootState: e.context.rootState,
|
|
665
639
|
rootSetState: e.context.rootSetState,
|
|
@@ -671,14 +645,18 @@ function Nt(e) {
|
|
|
671
645
|
}
|
|
672
646
|
);
|
|
673
647
|
}
|
|
674
|
-
function
|
|
648
|
+
function Vt(e) {
|
|
649
|
+
return P(() => {
|
|
650
|
+
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
651
|
+
}
|
|
652
|
+
function At(e) {
|
|
675
653
|
function t() {
|
|
676
654
|
return e.includeBlockProps ? {
|
|
677
|
-
...
|
|
655
|
+
...ce({
|
|
678
656
|
block: e.block,
|
|
679
657
|
context: e.context
|
|
680
658
|
}),
|
|
681
|
-
...
|
|
659
|
+
...Ne({
|
|
682
660
|
block: e.block,
|
|
683
661
|
rootState: e.context.rootState,
|
|
684
662
|
rootSetState: e.context.rootSetState,
|
|
@@ -687,9 +665,18 @@ function $t(e) {
|
|
|
687
665
|
})
|
|
688
666
|
} : {};
|
|
689
667
|
}
|
|
690
|
-
return /* @__PURE__ */ l(
|
|
668
|
+
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
669
|
+
Vt,
|
|
670
|
+
{
|
|
671
|
+
load: e.Wrapper.load,
|
|
672
|
+
fallback: e.Wrapper.fallback,
|
|
673
|
+
props: e.wrapperProps,
|
|
674
|
+
attributes: t(),
|
|
675
|
+
children: e.children
|
|
676
|
+
}
|
|
677
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
691
678
|
}
|
|
692
|
-
const
|
|
679
|
+
const Wt = ({
|
|
693
680
|
componentOptions: e,
|
|
694
681
|
builderBlock: t,
|
|
695
682
|
context: n,
|
|
@@ -705,7 +692,7 @@ const Dt = ({
|
|
|
705
692
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
706
693
|
*/
|
|
707
694
|
...o ? {
|
|
708
|
-
attributes:
|
|
695
|
+
attributes: ce({
|
|
709
696
|
block: t,
|
|
710
697
|
context: r
|
|
711
698
|
})
|
|
@@ -719,15 +706,15 @@ const Dt = ({
|
|
|
719
706
|
includeBlockProps: o
|
|
720
707
|
} : s;
|
|
721
708
|
};
|
|
722
|
-
function
|
|
709
|
+
function he(e) {
|
|
723
710
|
var i;
|
|
724
711
|
const [t, n] = T(
|
|
725
|
-
() => e.isInteractive ?
|
|
712
|
+
() => e.isInteractive ? At : e.componentRef
|
|
726
713
|
);
|
|
727
|
-
return /* @__PURE__ */ l(
|
|
714
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
728
715
|
t,
|
|
729
716
|
{
|
|
730
|
-
...
|
|
717
|
+
...Wt({
|
|
731
718
|
componentOptions: e.componentOptions,
|
|
732
719
|
builderBlock: e.builderBlock,
|
|
733
720
|
context: e.context,
|
|
@@ -738,7 +725,7 @@ function ye(e) {
|
|
|
738
725
|
contextValue: e.context
|
|
739
726
|
}),
|
|
740
727
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
741
|
-
|
|
728
|
+
H,
|
|
742
729
|
{
|
|
743
730
|
block: o,
|
|
744
731
|
context: e.context,
|
|
@@ -750,10 +737,10 @@ function ye(e) {
|
|
|
750
737
|
}
|
|
751
738
|
) }) : null });
|
|
752
739
|
}
|
|
753
|
-
function
|
|
740
|
+
function ge(e) {
|
|
754
741
|
const [t, n] = T(() => e.repeatContext);
|
|
755
|
-
return /* @__PURE__ */ l(
|
|
756
|
-
|
|
742
|
+
return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
743
|
+
H,
|
|
757
744
|
{
|
|
758
745
|
block: e.block,
|
|
759
746
|
context: t,
|
|
@@ -762,10 +749,10 @@ function xe(e) {
|
|
|
762
749
|
}
|
|
763
750
|
) });
|
|
764
751
|
}
|
|
765
|
-
function
|
|
766
|
-
var
|
|
752
|
+
function H(e) {
|
|
753
|
+
var f, b, h, v;
|
|
767
754
|
function t() {
|
|
768
|
-
return
|
|
755
|
+
return xt({
|
|
769
756
|
block: e.block,
|
|
770
757
|
context: e.context
|
|
771
758
|
});
|
|
@@ -775,10 +762,10 @@ function z(e) {
|
|
|
775
762
|
update: !1
|
|
776
763
|
}));
|
|
777
764
|
function o() {
|
|
778
|
-
var
|
|
779
|
-
if (n.value && !n.update && !
|
|
765
|
+
var S;
|
|
766
|
+
if (n.value && !n.update && !ke())
|
|
780
767
|
return n.value;
|
|
781
|
-
const
|
|
768
|
+
const g = (S = e.block.repeat) != null && S.collection ? e.block : dt({
|
|
782
769
|
block: e.block,
|
|
783
770
|
localState: e.context.localState,
|
|
784
771
|
rootState: e.context.rootState,
|
|
@@ -786,40 +773,40 @@ function z(e) {
|
|
|
786
773
|
context: e.context.context,
|
|
787
774
|
shouldEvaluateBindings: !0
|
|
788
775
|
});
|
|
789
|
-
return n.value =
|
|
776
|
+
return n.value = g, n.update = !1, g;
|
|
790
777
|
}
|
|
791
778
|
function a() {
|
|
792
|
-
return
|
|
779
|
+
return yt({
|
|
793
780
|
block: o(),
|
|
794
781
|
registeredComponents: e.registeredComponents
|
|
795
782
|
});
|
|
796
783
|
}
|
|
797
784
|
function r() {
|
|
798
|
-
var
|
|
799
|
-
return e.block.tagName === "a" || ((
|
|
785
|
+
var S;
|
|
786
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
800
787
|
}
|
|
801
788
|
function s() {
|
|
802
|
-
var
|
|
803
|
-
if ((
|
|
804
|
-
return !!((
|
|
805
|
-
const
|
|
806
|
-
return ("show" in o() ? o().show : !0) && !
|
|
789
|
+
var x, E;
|
|
790
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
791
|
+
return !!((E = t == null ? void 0 : t()) != null && E.length);
|
|
792
|
+
const g = "hide" in o() ? o().hide : !1;
|
|
793
|
+
return ("show" in o() ? o().show : !0) && !g;
|
|
807
794
|
}
|
|
808
795
|
function d() {
|
|
809
|
-
var
|
|
810
|
-
return !((
|
|
796
|
+
var S, x;
|
|
797
|
+
return !((S = a == null ? void 0 : a()) != null && S.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
811
798
|
}
|
|
812
799
|
function c() {
|
|
813
|
-
var
|
|
800
|
+
var g, S, x, E;
|
|
814
801
|
return {
|
|
815
|
-
blockChildren: (
|
|
816
|
-
componentRef: (
|
|
802
|
+
blockChildren: (g = o().children) != null ? g : [],
|
|
803
|
+
componentRef: (S = a == null ? void 0 : a()) == null ? void 0 : S.component,
|
|
817
804
|
componentOptions: {
|
|
818
|
-
...
|
|
819
|
-
...
|
|
820
|
-
...
|
|
821
|
-
...
|
|
822
|
-
...
|
|
805
|
+
...nt(o()),
|
|
806
|
+
...kt(a(), o()),
|
|
807
|
+
...Ct(a(), e.context),
|
|
808
|
+
...vt(a(), e.linkComponent),
|
|
809
|
+
...St(
|
|
823
810
|
a(),
|
|
824
811
|
e.registeredComponents
|
|
825
812
|
)
|
|
@@ -828,33 +815,33 @@ function z(e) {
|
|
|
828
815
|
linkComponent: e.linkComponent,
|
|
829
816
|
registeredComponents: e.registeredComponents,
|
|
830
817
|
builderBlock: o(),
|
|
831
|
-
includeBlockProps: ((
|
|
832
|
-
isInteractive: !((
|
|
818
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
819
|
+
isInteractive: !((E = a == null ? void 0 : a()) != null && E.isRSC && L === "rsc")
|
|
833
820
|
};
|
|
834
821
|
}
|
|
835
822
|
return P(() => {
|
|
836
|
-
const
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
...
|
|
840
|
-
elementId:
|
|
823
|
+
const g = o().id, S = o().animations;
|
|
824
|
+
S && g && mt(
|
|
825
|
+
S.map((x) => ({
|
|
826
|
+
...x,
|
|
827
|
+
elementId: g
|
|
841
828
|
}))
|
|
842
829
|
);
|
|
843
830
|
}, []), P(() => {
|
|
844
831
|
n.update = !0;
|
|
845
|
-
}), /* @__PURE__ */ l(
|
|
846
|
-
/* @__PURE__ */ l(
|
|
847
|
-
(
|
|
848
|
-
|
|
832
|
+
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ V(w, { children: [
|
|
833
|
+
/* @__PURE__ */ l(Tt, { block: o(), context: e.context }),
|
|
834
|
+
(f = a == null ? void 0 : a()) != null && f.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (v = t()) == null ? void 0 : v.map((g, S) => /* @__PURE__ */ l(
|
|
835
|
+
ge,
|
|
849
836
|
{
|
|
850
|
-
repeatContext:
|
|
851
|
-
block:
|
|
837
|
+
repeatContext: g.context,
|
|
838
|
+
block: g.block,
|
|
852
839
|
registeredComponents: e.registeredComponents,
|
|
853
840
|
linkComponent: e.linkComponent
|
|
854
841
|
},
|
|
855
|
-
|
|
842
|
+
S
|
|
856
843
|
)) }) : /* @__PURE__ */ l(
|
|
857
|
-
|
|
844
|
+
he,
|
|
858
845
|
{
|
|
859
846
|
componentRef: c().componentRef,
|
|
860
847
|
componentOptions: c().componentOptions,
|
|
@@ -866,24 +853,24 @@ function z(e) {
|
|
|
866
853
|
includeBlockProps: c().includeBlockProps,
|
|
867
854
|
isInteractive: c().isInteractive
|
|
868
855
|
}
|
|
869
|
-
) : /* @__PURE__ */ l(
|
|
870
|
-
|
|
856
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (h = t()) == null ? void 0 : h.map((g, S) => /* @__PURE__ */ l(
|
|
857
|
+
ge,
|
|
871
858
|
{
|
|
872
|
-
repeatContext:
|
|
873
|
-
block:
|
|
859
|
+
repeatContext: g.context,
|
|
860
|
+
block: g.block,
|
|
874
861
|
registeredComponents: e.registeredComponents,
|
|
875
862
|
linkComponent: e.linkComponent
|
|
876
863
|
},
|
|
877
|
-
|
|
864
|
+
S
|
|
878
865
|
)) }) : /* @__PURE__ */ V(
|
|
879
|
-
|
|
866
|
+
Pt,
|
|
880
867
|
{
|
|
881
868
|
Wrapper: r(),
|
|
882
869
|
block: o(),
|
|
883
870
|
context: e.context,
|
|
884
871
|
children: [
|
|
885
872
|
/* @__PURE__ */ l(
|
|
886
|
-
|
|
873
|
+
he,
|
|
887
874
|
{
|
|
888
875
|
componentRef: c().componentRef,
|
|
889
876
|
componentOptions: c().componentOptions,
|
|
@@ -896,30 +883,30 @@ function z(e) {
|
|
|
896
883
|
isInteractive: c().isInteractive
|
|
897
884
|
}
|
|
898
885
|
),
|
|
899
|
-
(
|
|
900
|
-
|
|
886
|
+
(b = d()) == null ? void 0 : b.map((g) => /* @__PURE__ */ l(
|
|
887
|
+
H,
|
|
901
888
|
{
|
|
902
|
-
block:
|
|
889
|
+
block: g,
|
|
903
890
|
registeredComponents: e.registeredComponents,
|
|
904
891
|
linkComponent: e.linkComponent,
|
|
905
892
|
context: e.context
|
|
906
893
|
},
|
|
907
|
-
|
|
894
|
+
g.id
|
|
908
895
|
))
|
|
909
896
|
]
|
|
910
897
|
}
|
|
911
898
|
) })
|
|
912
899
|
] }) : null });
|
|
913
900
|
}
|
|
914
|
-
function
|
|
915
|
-
const t =
|
|
901
|
+
function Ft(e) {
|
|
902
|
+
const t = D(null);
|
|
916
903
|
function n() {
|
|
917
904
|
var a;
|
|
918
905
|
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
919
906
|
}
|
|
920
907
|
function i() {
|
|
921
908
|
var a, r;
|
|
922
|
-
|
|
909
|
+
F() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
923
910
|
{
|
|
924
911
|
type: "builder.clickEmptyBlocks",
|
|
925
912
|
data: {
|
|
@@ -932,7 +919,7 @@ function Lt(e) {
|
|
|
932
919
|
}
|
|
933
920
|
function o() {
|
|
934
921
|
var a, r;
|
|
935
|
-
|
|
922
|
+
F() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
936
923
|
{
|
|
937
924
|
type: "builder.hoverEmptyBlocks",
|
|
938
925
|
data: {
|
|
@@ -944,12 +931,12 @@ function Lt(e) {
|
|
|
944
931
|
));
|
|
945
932
|
}
|
|
946
933
|
return P(() => {
|
|
947
|
-
}, []), /* @__PURE__ */ V(
|
|
934
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
948
935
|
/* @__PURE__ */ l(
|
|
949
936
|
e.BlocksWrapper,
|
|
950
937
|
{
|
|
951
938
|
ref: t,
|
|
952
|
-
className: n() + " props-blocks-wrapper-
|
|
939
|
+
className: n() + " props-blocks-wrapper-77bdc7c6",
|
|
953
940
|
"builder-path": e.path,
|
|
954
941
|
"builder-parent-id": e.parent,
|
|
955
942
|
style: e.styleProp,
|
|
@@ -960,18 +947,18 @@ function Lt(e) {
|
|
|
960
947
|
children: e.children
|
|
961
948
|
}
|
|
962
949
|
),
|
|
963
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
950
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-77bdc7c6 {
|
|
964
951
|
display: flex;
|
|
965
952
|
flex-direction: column;
|
|
966
953
|
align-items: stretch;
|
|
967
954
|
}` })
|
|
968
955
|
] });
|
|
969
956
|
}
|
|
970
|
-
function
|
|
957
|
+
function N(e) {
|
|
971
958
|
var i, o, a;
|
|
972
|
-
const t =
|
|
959
|
+
const t = me(se), n = me(Re);
|
|
973
960
|
return /* @__PURE__ */ l(
|
|
974
|
-
|
|
961
|
+
Ft,
|
|
975
962
|
{
|
|
976
963
|
blocks: e.blocks,
|
|
977
964
|
parent: e.parent,
|
|
@@ -979,8 +966,8 @@ function D(e) {
|
|
|
979
966
|
styleProp: e.styleProp,
|
|
980
967
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
981
968
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
982
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
983
|
-
|
|
969
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
970
|
+
H,
|
|
984
971
|
{
|
|
985
972
|
block: r,
|
|
986
973
|
linkComponent: e.linkComponent,
|
|
@@ -992,145 +979,145 @@ function D(e) {
|
|
|
992
979
|
}
|
|
993
980
|
);
|
|
994
981
|
}
|
|
995
|
-
const
|
|
996
|
-
function
|
|
997
|
-
var
|
|
982
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
983
|
+
function $t(e) {
|
|
984
|
+
var k, W;
|
|
998
985
|
const [t, n] = T(
|
|
999
986
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
1000
987
|
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
1001
988
|
() => e.stackColumnsAt || "tablet"
|
|
1002
989
|
);
|
|
1003
|
-
function s(
|
|
1004
|
-
return
|
|
990
|
+
function s(m) {
|
|
991
|
+
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
1005
992
|
}
|
|
1006
|
-
function d(
|
|
1007
|
-
var
|
|
1008
|
-
return ((
|
|
993
|
+
function d(m) {
|
|
994
|
+
var y;
|
|
995
|
+
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
1009
996
|
}
|
|
1010
|
-
function c(
|
|
1011
|
-
const
|
|
1012
|
-
return `calc(${
|
|
997
|
+
function c(m) {
|
|
998
|
+
const y = d(m), I = t * (i.length - 1) * (y / 100);
|
|
999
|
+
return `calc(${y}% - ${I}px)`;
|
|
1013
1000
|
}
|
|
1014
|
-
function
|
|
1015
|
-
stackedStyle:
|
|
1016
|
-
desktopStyle:
|
|
1001
|
+
function f({
|
|
1002
|
+
stackedStyle: m,
|
|
1003
|
+
desktopStyle: y
|
|
1017
1004
|
}) {
|
|
1018
|
-
return a === "tablet" ?
|
|
1005
|
+
return a === "tablet" ? m : y;
|
|
1019
1006
|
}
|
|
1020
|
-
function
|
|
1021
|
-
stackedStyle:
|
|
1022
|
-
desktopStyle:
|
|
1007
|
+
function b({
|
|
1008
|
+
stackedStyle: m,
|
|
1009
|
+
desktopStyle: y
|
|
1023
1010
|
}) {
|
|
1024
|
-
return a === "never" ?
|
|
1011
|
+
return a === "never" ? y : m;
|
|
1025
1012
|
}
|
|
1026
|
-
const [
|
|
1013
|
+
const [h, v] = T(
|
|
1027
1014
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1028
1015
|
);
|
|
1029
|
-
function
|
|
1016
|
+
function g() {
|
|
1030
1017
|
return {
|
|
1031
|
-
"--flex-dir":
|
|
1032
|
-
"--flex-dir-tablet":
|
|
1033
|
-
stackedStyle:
|
|
1018
|
+
"--flex-dir": h,
|
|
1019
|
+
"--flex-dir-tablet": f({
|
|
1020
|
+
stackedStyle: h,
|
|
1034
1021
|
desktopStyle: "row"
|
|
1035
1022
|
})
|
|
1036
1023
|
};
|
|
1037
1024
|
}
|
|
1038
|
-
function
|
|
1039
|
-
const
|
|
1025
|
+
function S(m) {
|
|
1026
|
+
const y = m === 0 ? 0 : t, I = c(m), u = `${y}px`, p = "100%", R = 0;
|
|
1040
1027
|
return {
|
|
1041
1028
|
...{
|
|
1042
1029
|
display: "flex",
|
|
1043
1030
|
flexDirection: "column",
|
|
1044
1031
|
alignItems: "stretch"
|
|
1045
1032
|
},
|
|
1046
|
-
width:
|
|
1047
|
-
["marginLeft"]:
|
|
1048
|
-
"--column-width-mobile":
|
|
1049
|
-
stackedStyle:
|
|
1050
|
-
desktopStyle:
|
|
1033
|
+
width: I,
|
|
1034
|
+
["marginLeft"]: u,
|
|
1035
|
+
"--column-width-mobile": b({
|
|
1036
|
+
stackedStyle: p,
|
|
1037
|
+
desktopStyle: I
|
|
1051
1038
|
}),
|
|
1052
|
-
"--column-margin-left-mobile":
|
|
1053
|
-
stackedStyle:
|
|
1054
|
-
desktopStyle:
|
|
1039
|
+
"--column-margin-left-mobile": b({
|
|
1040
|
+
stackedStyle: R,
|
|
1041
|
+
desktopStyle: u
|
|
1055
1042
|
}),
|
|
1056
|
-
"--column-width-tablet":
|
|
1057
|
-
stackedStyle:
|
|
1058
|
-
desktopStyle:
|
|
1043
|
+
"--column-width-tablet": f({
|
|
1044
|
+
stackedStyle: p,
|
|
1045
|
+
desktopStyle: I
|
|
1059
1046
|
}),
|
|
1060
|
-
"--column-margin-left-tablet":
|
|
1061
|
-
stackedStyle:
|
|
1062
|
-
desktopStyle:
|
|
1047
|
+
"--column-margin-left-tablet": f({
|
|
1048
|
+
stackedStyle: R,
|
|
1049
|
+
desktopStyle: u
|
|
1063
1050
|
})
|
|
1064
1051
|
};
|
|
1065
1052
|
}
|
|
1066
|
-
function
|
|
1067
|
-
var
|
|
1068
|
-
return
|
|
1069
|
-
((
|
|
1070
|
-
)[
|
|
1053
|
+
function x(m) {
|
|
1054
|
+
var I, u;
|
|
1055
|
+
return Fe(
|
|
1056
|
+
((u = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : u.breakpoints) || {}
|
|
1057
|
+
)[m].max;
|
|
1071
1058
|
}
|
|
1072
|
-
function
|
|
1073
|
-
const
|
|
1059
|
+
function E() {
|
|
1060
|
+
const m = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1074
1061
|
return `
|
|
1075
|
-
@media (max-width: ${
|
|
1062
|
+
@media (max-width: ${x("medium")}px) {
|
|
1076
1063
|
.${e.builderBlock.id}-breakpoints {
|
|
1077
1064
|
flex-direction: var(--flex-dir-tablet);
|
|
1078
1065
|
align-items: stretch;
|
|
1079
1066
|
}
|
|
1080
1067
|
|
|
1081
|
-
${
|
|
1068
|
+
${m} {
|
|
1082
1069
|
width: var(--column-width-tablet) !important;
|
|
1083
1070
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1084
1071
|
}
|
|
1085
1072
|
}
|
|
1086
1073
|
|
|
1087
|
-
@media (max-width: ${
|
|
1074
|
+
@media (max-width: ${x("small")}px) {
|
|
1088
1075
|
.${e.builderBlock.id}-breakpoints {
|
|
1089
1076
|
flex-direction: var(--flex-dir);
|
|
1090
1077
|
align-items: stretch;
|
|
1091
1078
|
}
|
|
1092
1079
|
|
|
1093
|
-
${
|
|
1080
|
+
${m} {
|
|
1094
1081
|
width: var(--column-width-mobile) !important;
|
|
1095
1082
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1096
1083
|
}
|
|
1097
1084
|
},
|
|
1098
1085
|
`;
|
|
1099
1086
|
}
|
|
1100
|
-
function
|
|
1087
|
+
function C(m, y) {
|
|
1101
1088
|
return {
|
|
1102
|
-
...
|
|
1103
|
-
href:
|
|
1089
|
+
...m.link ? {
|
|
1090
|
+
href: m.link
|
|
1104
1091
|
} : {},
|
|
1105
|
-
[
|
|
1106
|
-
style:
|
|
1092
|
+
[M()]: "builder-column",
|
|
1093
|
+
style: Ae(S(y))
|
|
1107
1094
|
};
|
|
1108
1095
|
}
|
|
1109
|
-
return /* @__PURE__ */ V(
|
|
1096
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
1110
1097
|
/* @__PURE__ */ V(
|
|
1111
1098
|
"div",
|
|
1112
1099
|
{
|
|
1113
|
-
className:
|
|
1114
|
-
style:
|
|
1100
|
+
className: Nt((k = e.builderBlock) == null ? void 0 : k.id) + " div-3b0f6fe2",
|
|
1101
|
+
style: g(),
|
|
1115
1102
|
children: [
|
|
1116
1103
|
/* @__PURE__ */ l(
|
|
1117
|
-
|
|
1104
|
+
Y,
|
|
1118
1105
|
{
|
|
1119
1106
|
id: "builderio-columns",
|
|
1120
|
-
styles:
|
|
1107
|
+
styles: E(),
|
|
1121
1108
|
nonce: e.builderContext.nonce
|
|
1122
1109
|
}
|
|
1123
1110
|
),
|
|
1124
|
-
(
|
|
1125
|
-
|
|
1111
|
+
(W = e.columns) == null ? void 0 : W.map((m, y) => /* @__PURE__ */ l(
|
|
1112
|
+
le,
|
|
1126
1113
|
{
|
|
1127
|
-
TagName: s(
|
|
1114
|
+
TagName: s(m),
|
|
1128
1115
|
actionAttributes: {},
|
|
1129
|
-
attributes:
|
|
1116
|
+
attributes: C(m, y),
|
|
1130
1117
|
children: /* @__PURE__ */ l(
|
|
1131
|
-
|
|
1118
|
+
N,
|
|
1132
1119
|
{
|
|
1133
|
-
path: `component.options.columns.${
|
|
1120
|
+
path: `component.options.columns.${y}.blocks`,
|
|
1134
1121
|
parent: e.builderBlock.id,
|
|
1135
1122
|
styleProp: {
|
|
1136
1123
|
flexGrow: "1"
|
|
@@ -1138,89 +1125,89 @@ function Ut(e) {
|
|
|
1138
1125
|
context: e.builderContext,
|
|
1139
1126
|
registeredComponents: e.builderComponents,
|
|
1140
1127
|
linkComponent: e.builderLinkComponent,
|
|
1141
|
-
blocks:
|
|
1128
|
+
blocks: m.blocks
|
|
1142
1129
|
}
|
|
1143
1130
|
)
|
|
1144
1131
|
},
|
|
1145
|
-
|
|
1132
|
+
y
|
|
1146
1133
|
))
|
|
1147
1134
|
]
|
|
1148
1135
|
}
|
|
1149
1136
|
),
|
|
1150
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1137
|
+
/* @__PURE__ */ l("style", { children: `.div-3b0f6fe2 {
|
|
1151
1138
|
display: flex;
|
|
1152
1139
|
line-height: normal;
|
|
1153
1140
|
}` })
|
|
1154
1141
|
] });
|
|
1155
1142
|
}
|
|
1156
|
-
function
|
|
1143
|
+
function Dt(e) {
|
|
1157
1144
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1158
1145
|
}
|
|
1159
|
-
function
|
|
1146
|
+
function be(e) {
|
|
1160
1147
|
return e.replace(/http(s)?:/, "");
|
|
1161
1148
|
}
|
|
1162
|
-
function
|
|
1149
|
+
function Lt(e = "", t, n) {
|
|
1163
1150
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1164
1151
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1165
1152
|
}
|
|
1166
|
-
function
|
|
1153
|
+
function Ot(e, t) {
|
|
1167
1154
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1168
1155
|
return e;
|
|
1169
1156
|
if (t === "master")
|
|
1170
|
-
return
|
|
1157
|
+
return be(e);
|
|
1171
1158
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1172
1159
|
if (n) {
|
|
1173
1160
|
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1174
|
-
return
|
|
1161
|
+
return be(`${i[0]}_${a}${o}`);
|
|
1175
1162
|
}
|
|
1176
1163
|
return null;
|
|
1177
1164
|
}
|
|
1178
|
-
function
|
|
1165
|
+
function Q(e) {
|
|
1179
1166
|
if (!e)
|
|
1180
1167
|
return e;
|
|
1181
1168
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1182
1169
|
if (e.match(/builder\.io/)) {
|
|
1183
1170
|
let n = e;
|
|
1184
1171
|
const i = Number(e.split("?width=")[1]);
|
|
1185
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1172
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1186
1173
|
}
|
|
1187
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1174
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1188
1175
|
}
|
|
1189
|
-
function
|
|
1176
|
+
function Ut(e) {
|
|
1190
1177
|
var o, a, r, s, d, c;
|
|
1191
1178
|
function t() {
|
|
1192
|
-
var
|
|
1193
|
-
const
|
|
1194
|
-
if (!
|
|
1179
|
+
var h;
|
|
1180
|
+
const b = e.image || e.src;
|
|
1181
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1195
1182
|
// images, otherwise you can supply this prop manually
|
|
1196
|
-
!(
|
|
1183
|
+
!(b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/)))
|
|
1197
1184
|
return e.srcset;
|
|
1198
1185
|
if (!e.noWebp) {
|
|
1199
|
-
if (e.srcset && ((
|
|
1186
|
+
if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
|
|
1200
1187
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1201
|
-
return console.debug("Removed given srcset"),
|
|
1188
|
+
return console.debug("Removed given srcset"), Q(b);
|
|
1202
1189
|
} else if (e.image && !e.srcset)
|
|
1203
|
-
return
|
|
1204
|
-
return
|
|
1190
|
+
return Q(b);
|
|
1191
|
+
return Q(b);
|
|
1205
1192
|
}
|
|
1206
1193
|
}
|
|
1207
1194
|
function n() {
|
|
1208
|
-
var
|
|
1209
|
-
return (
|
|
1195
|
+
var f;
|
|
1196
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1210
1197
|
}
|
|
1211
1198
|
function i() {
|
|
1212
|
-
const
|
|
1199
|
+
const f = {
|
|
1213
1200
|
position: "absolute",
|
|
1214
1201
|
height: "100%",
|
|
1215
1202
|
width: "100%",
|
|
1216
1203
|
left: "0px",
|
|
1217
1204
|
top: "0px"
|
|
1218
1205
|
};
|
|
1219
|
-
return e.aspectRatio ?
|
|
1206
|
+
return e.aspectRatio ? f : void 0;
|
|
1220
1207
|
}
|
|
1221
1208
|
return P(() => {
|
|
1222
|
-
}, []), /* @__PURE__ */ V(
|
|
1223
|
-
/* @__PURE__ */ V(
|
|
1209
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
1210
|
+
/* @__PURE__ */ V(w, { children: [
|
|
1224
1211
|
/* @__PURE__ */ V("picture", { children: [
|
|
1225
1212
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1226
1213
|
/* @__PURE__ */ l(
|
|
@@ -1235,7 +1222,7 @@ function Kt(e) {
|
|
|
1235
1222
|
objectFit: e.backgroundSize || "cover",
|
|
1236
1223
|
...i()
|
|
1237
1224
|
},
|
|
1238
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1225
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-7a292ab8",
|
|
1239
1226
|
src: e.image,
|
|
1240
1227
|
srcSet: t(),
|
|
1241
1228
|
sizes: e.sizes
|
|
@@ -1245,23 +1232,23 @@ function Kt(e) {
|
|
|
1245
1232
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1246
1233
|
"div",
|
|
1247
1234
|
{
|
|
1248
|
-
className: "builder-image-sizer div-
|
|
1235
|
+
className: "builder-image-sizer div-7a292ab8",
|
|
1249
1236
|
style: {
|
|
1250
1237
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1251
1238
|
}
|
|
1252
1239
|
}
|
|
1253
1240
|
) : null,
|
|
1254
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1255
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1241
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1242
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1256
1243
|
] }),
|
|
1257
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1244
|
+
/* @__PURE__ */ l("style", { children: `.img-7a292ab8 {
|
|
1258
1245
|
opacity: 1;
|
|
1259
1246
|
transition: opacity 0.2s ease-in-out;
|
|
1260
|
-
}.div-
|
|
1247
|
+
}.div-7a292ab8 {
|
|
1261
1248
|
width: 100%;
|
|
1262
1249
|
pointer-events: none;
|
|
1263
1250
|
font-size: 0;
|
|
1264
|
-
}.div-
|
|
1251
|
+
}.div-7a292ab8-2 {
|
|
1265
1252
|
display: flex;
|
|
1266
1253
|
flex-direction: column;
|
|
1267
1254
|
align-items: stretch;
|
|
@@ -1273,7 +1260,7 @@ function Kt(e) {
|
|
|
1273
1260
|
}` })
|
|
1274
1261
|
] });
|
|
1275
1262
|
}
|
|
1276
|
-
function
|
|
1263
|
+
function jt(e) {
|
|
1277
1264
|
return /* @__PURE__ */ l(
|
|
1278
1265
|
"section",
|
|
1279
1266
|
{
|
|
@@ -1294,7 +1281,7 @@ function qt(e) {
|
|
|
1294
1281
|
}
|
|
1295
1282
|
);
|
|
1296
1283
|
}
|
|
1297
|
-
const
|
|
1284
|
+
const X = {
|
|
1298
1285
|
"@type": "@builder.io/sdk:Element",
|
|
1299
1286
|
layerName: "Accordion item title",
|
|
1300
1287
|
responsiveStyles: {
|
|
@@ -1323,7 +1310,7 @@ const ne = {
|
|
|
1323
1310
|
}
|
|
1324
1311
|
}
|
|
1325
1312
|
}]
|
|
1326
|
-
},
|
|
1313
|
+
}, Z = {
|
|
1327
1314
|
"@type": "@builder.io/sdk:Element",
|
|
1328
1315
|
layerName: "Accordion item detail",
|
|
1329
1316
|
responsiveStyles: {
|
|
@@ -1354,7 +1341,7 @@ const ne = {
|
|
|
1354
1341
|
}
|
|
1355
1342
|
}
|
|
1356
1343
|
}]
|
|
1357
|
-
},
|
|
1344
|
+
}, Mt = {
|
|
1358
1345
|
name: "Builder:Accordion",
|
|
1359
1346
|
canHaveChildren: !0,
|
|
1360
1347
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1371,19 +1358,19 @@ const ne = {
|
|
|
1371
1358
|
name: "title",
|
|
1372
1359
|
type: "uiBlocks",
|
|
1373
1360
|
hideFromUI: !0,
|
|
1374
|
-
defaultValue: [
|
|
1361
|
+
defaultValue: [X]
|
|
1375
1362
|
}, {
|
|
1376
1363
|
name: "detail",
|
|
1377
1364
|
type: "uiBlocks",
|
|
1378
1365
|
hideFromUI: !0,
|
|
1379
|
-
defaultValue: [
|
|
1366
|
+
defaultValue: [Z]
|
|
1380
1367
|
}],
|
|
1381
1368
|
defaultValue: [{
|
|
1382
|
-
title: [
|
|
1383
|
-
detail: [
|
|
1369
|
+
title: [X],
|
|
1370
|
+
detail: [Z]
|
|
1384
1371
|
}, {
|
|
1385
|
-
title: [
|
|
1386
|
-
detail: [
|
|
1372
|
+
title: [X],
|
|
1373
|
+
detail: [Z]
|
|
1387
1374
|
}],
|
|
1388
1375
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1389
1376
|
}, {
|
|
@@ -1418,9 +1405,9 @@ const ne = {
|
|
|
1418
1405
|
builderComponents: !0,
|
|
1419
1406
|
builderLinkComponent: !0
|
|
1420
1407
|
}
|
|
1421
|
-
},
|
|
1422
|
-
function
|
|
1423
|
-
var
|
|
1408
|
+
}, pe = (e) => e.toString();
|
|
1409
|
+
function Ht(e) {
|
|
1410
|
+
var b;
|
|
1424
1411
|
const [t, n] = T(() => []);
|
|
1425
1412
|
function i() {
|
|
1426
1413
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1438,7 +1425,7 @@ function zt(e) {
|
|
|
1438
1425
|
};
|
|
1439
1426
|
}
|
|
1440
1427
|
function a() {
|
|
1441
|
-
const
|
|
1428
|
+
const v = {
|
|
1442
1429
|
...{
|
|
1443
1430
|
display: "flex",
|
|
1444
1431
|
flexDirection: "column"
|
|
@@ -1447,73 +1434,73 @@ function zt(e) {
|
|
|
1447
1434
|
cursor: "pointer"
|
|
1448
1435
|
};
|
|
1449
1436
|
return Object.fromEntries(
|
|
1450
|
-
Object.entries(
|
|
1437
|
+
Object.entries(v).filter(([g, S]) => S !== void 0)
|
|
1451
1438
|
);
|
|
1452
1439
|
}
|
|
1453
|
-
function r(
|
|
1454
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1440
|
+
function r(h) {
|
|
1441
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(h) ? "open" : "closed"}`;
|
|
1455
1442
|
}
|
|
1456
|
-
function s(
|
|
1457
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1443
|
+
function s(h) {
|
|
1444
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(h) ? "open" : "closed"}`;
|
|
1458
1445
|
}
|
|
1459
1446
|
function d() {
|
|
1460
|
-
let
|
|
1447
|
+
let h = null;
|
|
1461
1448
|
if (e.grid && t.length && document) {
|
|
1462
|
-
const
|
|
1463
|
-
let
|
|
1464
|
-
`.builder-accordion-title[data-index="${
|
|
1449
|
+
const g = t[0];
|
|
1450
|
+
let x = document.querySelector(
|
|
1451
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1465
1452
|
);
|
|
1466
|
-
if (
|
|
1467
|
-
let
|
|
1468
|
-
for (;
|
|
1469
|
-
if (
|
|
1470
|
-
if (
|
|
1453
|
+
if (h = g, x) {
|
|
1454
|
+
let E = x.getBoundingClientRect();
|
|
1455
|
+
for (; x = x && x.nextElementSibling; )
|
|
1456
|
+
if (x) {
|
|
1457
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1471
1458
|
continue;
|
|
1472
|
-
const
|
|
1473
|
-
if (
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1459
|
+
const C = x.getBoundingClientRect();
|
|
1460
|
+
if (C.left > E.left) {
|
|
1461
|
+
const k = parseInt(
|
|
1462
|
+
x.getAttribute("data-index") || "",
|
|
1476
1463
|
10
|
|
1477
1464
|
);
|
|
1478
|
-
isNaN(
|
|
1465
|
+
isNaN(k) || (E = C, h = k);
|
|
1479
1466
|
} else
|
|
1480
1467
|
break;
|
|
1481
1468
|
}
|
|
1482
1469
|
}
|
|
1483
1470
|
}
|
|
1484
|
-
return typeof
|
|
1471
|
+
return typeof h == "number" && (h = h + 1), h;
|
|
1485
1472
|
}
|
|
1486
1473
|
function c() {
|
|
1487
|
-
const
|
|
1474
|
+
const h = {
|
|
1488
1475
|
order: typeof d() == "number" ? d() : void 0,
|
|
1489
1476
|
...e.grid && {
|
|
1490
1477
|
width: "100%"
|
|
1491
1478
|
}
|
|
1492
1479
|
};
|
|
1493
1480
|
return Object.fromEntries(
|
|
1494
|
-
Object.entries(
|
|
1481
|
+
Object.entries(h).filter(([v, g]) => g !== void 0)
|
|
1495
1482
|
);
|
|
1496
1483
|
}
|
|
1497
|
-
function
|
|
1498
|
-
t.includes(
|
|
1484
|
+
function f(h) {
|
|
1485
|
+
t.includes(h) ? n(i() ? [] : t.filter((v) => v !== h)) : n(i() ? [h] : t.concat(h));
|
|
1499
1486
|
}
|
|
1500
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (
|
|
1487
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((h, v) => /* @__PURE__ */ V(w, { children: [
|
|
1501
1488
|
/* @__PURE__ */ l(
|
|
1502
1489
|
"div",
|
|
1503
1490
|
{
|
|
1504
|
-
className: r(
|
|
1491
|
+
className: r(v),
|
|
1505
1492
|
style: {
|
|
1506
1493
|
...a(),
|
|
1507
1494
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1508
|
-
order: d() !== null ?
|
|
1495
|
+
order: d() !== null ? pe(v) : pe(v + 1)
|
|
1509
1496
|
},
|
|
1510
|
-
"data-index":
|
|
1511
|
-
onClick: (
|
|
1497
|
+
"data-index": v,
|
|
1498
|
+
onClick: (g) => f(v),
|
|
1512
1499
|
children: /* @__PURE__ */ l(
|
|
1513
|
-
|
|
1500
|
+
N,
|
|
1514
1501
|
{
|
|
1515
|
-
blocks:
|
|
1516
|
-
path: `items.${
|
|
1502
|
+
blocks: h.title,
|
|
1503
|
+
path: `items.${v}.title`,
|
|
1517
1504
|
parent: e.builderBlock.id,
|
|
1518
1505
|
context: e.builderContext,
|
|
1519
1506
|
registeredComponents: e.builderComponents,
|
|
@@ -1522,16 +1509,16 @@ function zt(e) {
|
|
|
1522
1509
|
)
|
|
1523
1510
|
}
|
|
1524
1511
|
),
|
|
1525
|
-
t.includes(
|
|
1512
|
+
t.includes(v) ? /* @__PURE__ */ l(
|
|
1526
1513
|
"div",
|
|
1527
1514
|
{
|
|
1528
|
-
className: s(
|
|
1515
|
+
className: s(v),
|
|
1529
1516
|
style: c(),
|
|
1530
1517
|
children: /* @__PURE__ */ l(
|
|
1531
|
-
|
|
1518
|
+
N,
|
|
1532
1519
|
{
|
|
1533
|
-
blocks:
|
|
1534
|
-
path: `items.${
|
|
1520
|
+
blocks: h.detail,
|
|
1521
|
+
path: `items.${v}.detail`,
|
|
1535
1522
|
parent: e.builderBlock.id,
|
|
1536
1523
|
context: e.builderContext,
|
|
1537
1524
|
registeredComponents: e.builderComponents,
|
|
@@ -1542,7 +1529,7 @@ function zt(e) {
|
|
|
1542
1529
|
) : null
|
|
1543
1530
|
] })) });
|
|
1544
1531
|
}
|
|
1545
|
-
const
|
|
1532
|
+
const Kt = {
|
|
1546
1533
|
name: "Core:Button",
|
|
1547
1534
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1548
1535
|
defaultStyles: {
|
|
@@ -1578,7 +1565,7 @@ const Jt = {
|
|
|
1578
1565
|
shouldReceiveBuilderProps: {
|
|
1579
1566
|
builderLinkComponent: !0
|
|
1580
1567
|
}
|
|
1581
|
-
},
|
|
1568
|
+
}, qt = {
|
|
1582
1569
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1583
1570
|
name: "Columns",
|
|
1584
1571
|
isRSC: !0,
|
|
@@ -1785,13 +1772,13 @@ const Jt = {
|
|
|
1785
1772
|
builderComponents: !0,
|
|
1786
1773
|
builderLinkComponent: !0
|
|
1787
1774
|
}
|
|
1788
|
-
},
|
|
1775
|
+
}, _t = {
|
|
1789
1776
|
name: "Fragment",
|
|
1790
1777
|
static: !0,
|
|
1791
1778
|
hidden: !0,
|
|
1792
1779
|
canHaveChildren: !0,
|
|
1793
1780
|
noWrap: !0
|
|
1794
|
-
},
|
|
1781
|
+
}, zt = {
|
|
1795
1782
|
name: "Image",
|
|
1796
1783
|
static: !0,
|
|
1797
1784
|
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",
|
|
@@ -1813,14 +1800,14 @@ const Jt = {
|
|
|
1813
1800
|
e.delete("srcset"), e.delete("noWebp");
|
|
1814
1801
|
function n(r, s = 6e4) {
|
|
1815
1802
|
return new Promise((d, c) => {
|
|
1816
|
-
const
|
|
1817
|
-
let
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
},
|
|
1821
|
-
console.warn("Image load failed",
|
|
1822
|
-
}),
|
|
1823
|
-
|
|
1803
|
+
const f = document.createElement("img");
|
|
1804
|
+
let b = !1;
|
|
1805
|
+
f.onload = () => {
|
|
1806
|
+
b = !0, d(f);
|
|
1807
|
+
}, f.addEventListener("error", (h) => {
|
|
1808
|
+
console.warn("Image load failed", h.error), c(h.error);
|
|
1809
|
+
}), f.src = r, setTimeout(() => {
|
|
1810
|
+
b || c(new Error("Image load timed out"));
|
|
1824
1811
|
}, s);
|
|
1825
1812
|
});
|
|
1826
1813
|
}
|
|
@@ -1899,7 +1886,7 @@ const Jt = {
|
|
|
1899
1886
|
shouldReceiveBuilderProps: {
|
|
1900
1887
|
builderBlock: !0
|
|
1901
1888
|
}
|
|
1902
|
-
},
|
|
1889
|
+
}, Jt = {
|
|
1903
1890
|
name: "Core:Section",
|
|
1904
1891
|
static: !0,
|
|
1905
1892
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1938,7 +1925,7 @@ const Jt = {
|
|
|
1938
1925
|
}
|
|
1939
1926
|
}
|
|
1940
1927
|
}]
|
|
1941
|
-
},
|
|
1928
|
+
}, Yt = {
|
|
1942
1929
|
name: "Slot",
|
|
1943
1930
|
isRSC: !0,
|
|
1944
1931
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1956,7 +1943,7 @@ const Jt = {
|
|
|
1956
1943
|
builderComponents: !0
|
|
1957
1944
|
}
|
|
1958
1945
|
};
|
|
1959
|
-
function
|
|
1946
|
+
function Gt(e) {
|
|
1960
1947
|
var t, n, i;
|
|
1961
1948
|
return /* @__PURE__ */ l(
|
|
1962
1949
|
"div",
|
|
@@ -1968,7 +1955,7 @@ function en(e) {
|
|
|
1968
1955
|
"builder-slot": e.name
|
|
1969
1956
|
},
|
|
1970
1957
|
children: /* @__PURE__ */ l(
|
|
1971
|
-
|
|
1958
|
+
N,
|
|
1972
1959
|
{
|
|
1973
1960
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1974
1961
|
path: `symbol.data.${e.name}`,
|
|
@@ -1980,7 +1967,7 @@ function en(e) {
|
|
|
1980
1967
|
}
|
|
1981
1968
|
);
|
|
1982
1969
|
}
|
|
1983
|
-
const
|
|
1970
|
+
const Qt = {
|
|
1984
1971
|
name: "Symbol",
|
|
1985
1972
|
noWrap: !0,
|
|
1986
1973
|
static: !0,
|
|
@@ -2019,7 +2006,7 @@ const tn = {
|
|
|
2019
2006
|
builderComponents: !0,
|
|
2020
2007
|
builderLinkComponent: !0
|
|
2021
2008
|
}
|
|
2022
|
-
},
|
|
2009
|
+
}, ee = {
|
|
2023
2010
|
"@type": "@builder.io/sdk:Element",
|
|
2024
2011
|
responsiveStyles: {
|
|
2025
2012
|
large: {
|
|
@@ -2041,7 +2028,7 @@ const tn = {
|
|
|
2041
2028
|
text: "New tab"
|
|
2042
2029
|
}
|
|
2043
2030
|
}
|
|
2044
|
-
},
|
|
2031
|
+
}, te = {
|
|
2045
2032
|
"@type": "@builder.io/sdk:Element",
|
|
2046
2033
|
responsiveStyles: {
|
|
2047
2034
|
large: {
|
|
@@ -2057,7 +2044,7 @@ const tn = {
|
|
|
2057
2044
|
text: "New tab content "
|
|
2058
2045
|
}
|
|
2059
2046
|
}
|
|
2060
|
-
},
|
|
2047
|
+
}, Xt = {
|
|
2061
2048
|
name: "Builder: Tabs",
|
|
2062
2049
|
inputs: [{
|
|
2063
2050
|
name: "tabs",
|
|
@@ -2067,16 +2054,16 @@ const tn = {
|
|
|
2067
2054
|
name: "label",
|
|
2068
2055
|
type: "uiBlocks",
|
|
2069
2056
|
hideFromUI: !0,
|
|
2070
|
-
defaultValue: [
|
|
2057
|
+
defaultValue: [ee]
|
|
2071
2058
|
}, {
|
|
2072
2059
|
name: "content",
|
|
2073
2060
|
type: "uiBlocks",
|
|
2074
2061
|
hideFromUI: !0,
|
|
2075
|
-
defaultValue: [
|
|
2062
|
+
defaultValue: [te]
|
|
2076
2063
|
}],
|
|
2077
2064
|
defaultValue: [{
|
|
2078
2065
|
label: [{
|
|
2079
|
-
...
|
|
2066
|
+
...ee,
|
|
2080
2067
|
component: {
|
|
2081
2068
|
name: "Text",
|
|
2082
2069
|
options: {
|
|
@@ -2085,7 +2072,7 @@ const tn = {
|
|
|
2085
2072
|
}
|
|
2086
2073
|
}],
|
|
2087
2074
|
content: [{
|
|
2088
|
-
...
|
|
2075
|
+
...te,
|
|
2089
2076
|
component: {
|
|
2090
2077
|
name: "Text",
|
|
2091
2078
|
options: {
|
|
@@ -2095,7 +2082,7 @@ const tn = {
|
|
|
2095
2082
|
}]
|
|
2096
2083
|
}, {
|
|
2097
2084
|
label: [{
|
|
2098
|
-
...
|
|
2085
|
+
...ee,
|
|
2099
2086
|
component: {
|
|
2100
2087
|
name: "Text",
|
|
2101
2088
|
options: {
|
|
@@ -2104,7 +2091,7 @@ const tn = {
|
|
|
2104
2091
|
}
|
|
2105
2092
|
}],
|
|
2106
2093
|
content: [{
|
|
2107
|
-
...
|
|
2094
|
+
...te,
|
|
2108
2095
|
component: {
|
|
2109
2096
|
name: "Text",
|
|
2110
2097
|
options: {
|
|
@@ -2161,7 +2148,7 @@ const tn = {
|
|
|
2161
2148
|
builderLinkComponent: !0
|
|
2162
2149
|
}
|
|
2163
2150
|
};
|
|
2164
|
-
function
|
|
2151
|
+
function Zt(e) {
|
|
2165
2152
|
var a;
|
|
2166
2153
|
const [t, n] = T(
|
|
2167
2154
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2192,7 +2179,7 @@ function on(e) {
|
|
|
2192
2179
|
},
|
|
2193
2180
|
onClick: (d) => o(s),
|
|
2194
2181
|
children: /* @__PURE__ */ l(
|
|
2195
|
-
|
|
2182
|
+
N,
|
|
2196
2183
|
{
|
|
2197
2184
|
parent: e.builderBlock.id,
|
|
2198
2185
|
path: `component.options.tabs.${s}.label`,
|
|
@@ -2208,7 +2195,7 @@ function on(e) {
|
|
|
2208
2195
|
}
|
|
2209
2196
|
),
|
|
2210
2197
|
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2211
|
-
|
|
2198
|
+
N,
|
|
2212
2199
|
{
|
|
2213
2200
|
parent: e.builderBlock.id,
|
|
2214
2201
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2220,7 +2207,7 @@ function on(e) {
|
|
|
2220
2207
|
) }) : null
|
|
2221
2208
|
] });
|
|
2222
2209
|
}
|
|
2223
|
-
const
|
|
2210
|
+
const en = {
|
|
2224
2211
|
shouldReceiveBuilderProps: {
|
|
2225
2212
|
builderBlock: !1,
|
|
2226
2213
|
builderContext: !0
|
|
@@ -2243,7 +2230,7 @@ const an = {
|
|
|
2243
2230
|
textAlign: "center"
|
|
2244
2231
|
}
|
|
2245
2232
|
};
|
|
2246
|
-
function
|
|
2233
|
+
function tn(e) {
|
|
2247
2234
|
function t() {
|
|
2248
2235
|
var s;
|
|
2249
2236
|
const n = e.builderContext, {
|
|
@@ -2254,7 +2241,7 @@ function rn(e) {
|
|
|
2254
2241
|
} = n;
|
|
2255
2242
|
return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2256
2243
|
/{{([^}]+)}}/g,
|
|
2257
|
-
(d, c) =>
|
|
2244
|
+
(d, c) => U({
|
|
2258
2245
|
code: c,
|
|
2259
2246
|
context: i,
|
|
2260
2247
|
localState: o,
|
|
@@ -2275,7 +2262,7 @@ function rn(e) {
|
|
|
2275
2262
|
}
|
|
2276
2263
|
);
|
|
2277
2264
|
}
|
|
2278
|
-
const
|
|
2265
|
+
const nn = {
|
|
2279
2266
|
name: "Custom Code",
|
|
2280
2267
|
static: !0,
|
|
2281
2268
|
requiredPermissions: ["editCode"],
|
|
@@ -2298,8 +2285,8 @@ const ln = {
|
|
|
2298
2285
|
advanced: !0
|
|
2299
2286
|
}]
|
|
2300
2287
|
};
|
|
2301
|
-
function
|
|
2302
|
-
const t =
|
|
2288
|
+
function on(e) {
|
|
2289
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2303
2290
|
return P(() => {
|
|
2304
2291
|
var s;
|
|
2305
2292
|
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2311,8 +2298,8 @@ function sn(e) {
|
|
|
2311
2298
|
if (n.includes(c.src))
|
|
2312
2299
|
continue;
|
|
2313
2300
|
n.push(c.src);
|
|
2314
|
-
const
|
|
2315
|
-
|
|
2301
|
+
const f = document.createElement("script");
|
|
2302
|
+
f.async = !0, f.src = c.src, document.head.appendChild(f);
|
|
2316
2303
|
} else if (!c.type || [
|
|
2317
2304
|
"text/javascript",
|
|
2318
2305
|
"application/javascript",
|
|
@@ -2322,8 +2309,8 @@ function sn(e) {
|
|
|
2322
2309
|
continue;
|
|
2323
2310
|
try {
|
|
2324
2311
|
o.push(c.innerText), new Function(c.innerText)();
|
|
2325
|
-
} catch (
|
|
2326
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2312
|
+
} catch (f) {
|
|
2313
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
2327
2314
|
}
|
|
2328
2315
|
}
|
|
2329
2316
|
}
|
|
@@ -2336,7 +2323,7 @@ function sn(e) {
|
|
|
2336
2323
|
}
|
|
2337
2324
|
);
|
|
2338
2325
|
}
|
|
2339
|
-
const
|
|
2326
|
+
const an = {
|
|
2340
2327
|
name: "Embed",
|
|
2341
2328
|
static: !0,
|
|
2342
2329
|
inputs: [{
|
|
@@ -2351,24 +2338,24 @@ const cn = {
|
|
|
2351
2338
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2352
2339
|
hideFromUI: !0
|
|
2353
2340
|
}]
|
|
2354
|
-
},
|
|
2355
|
-
function
|
|
2356
|
-
const t =
|
|
2341
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2342
|
+
function sn(e) {
|
|
2343
|
+
const t = D(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2357
2344
|
function d() {
|
|
2358
2345
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2359
2346
|
return;
|
|
2360
2347
|
const c = t.current.getElementsByTagName("script");
|
|
2361
|
-
for (let
|
|
2362
|
-
const
|
|
2363
|
-
if (
|
|
2364
|
-
n.push(
|
|
2365
|
-
const
|
|
2366
|
-
|
|
2367
|
-
} else if (
|
|
2348
|
+
for (let f = 0; f < c.length; f++) {
|
|
2349
|
+
const b = c[f];
|
|
2350
|
+
if (b.src && !n.includes(b.src)) {
|
|
2351
|
+
n.push(b.src);
|
|
2352
|
+
const h = document.createElement("script");
|
|
2353
|
+
h.async = !0, h.src = b.src, document.head.appendChild(h);
|
|
2354
|
+
} else if (ln(b) && !o.includes(b.innerText))
|
|
2368
2355
|
try {
|
|
2369
|
-
o.push(
|
|
2370
|
-
} catch (
|
|
2371
|
-
console.warn("`Embed`: Error running script:",
|
|
2356
|
+
o.push(b.innerText), new Function(b.innerText)();
|
|
2357
|
+
} catch (h) {
|
|
2358
|
+
console.warn("`Embed`: Error running script:", h);
|
|
2372
2359
|
}
|
|
2373
2360
|
}
|
|
2374
2361
|
}
|
|
@@ -2383,7 +2370,7 @@ function mn(e) {
|
|
|
2383
2370
|
}
|
|
2384
2371
|
);
|
|
2385
2372
|
}
|
|
2386
|
-
const
|
|
2373
|
+
const cn = {
|
|
2387
2374
|
name: "Form:Form",
|
|
2388
2375
|
// editableTags: ['builder-form-error']
|
|
2389
2376
|
defaults: {
|
|
@@ -2620,123 +2607,123 @@ const fn = {
|
|
|
2620
2607
|
builderComponents: !0,
|
|
2621
2608
|
builderLinkComponent: !0
|
|
2622
2609
|
}
|
|
2623
|
-
},
|
|
2610
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2624
2611
|
const e = process.env.NODE_ENV || "production";
|
|
2625
|
-
return
|
|
2626
|
-
},
|
|
2612
|
+
return dn.includes(e) ? e : "production";
|
|
2613
|
+
}, mn = (e, t, n) => {
|
|
2627
2614
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2628
2615
|
return i === void 0 || i === e ? n : i;
|
|
2629
2616
|
};
|
|
2630
|
-
function
|
|
2631
|
-
var
|
|
2632
|
-
const t =
|
|
2633
|
-
function d(
|
|
2634
|
-
var
|
|
2635
|
-
const
|
|
2617
|
+
function fn(e) {
|
|
2618
|
+
var b, h;
|
|
2619
|
+
const t = D(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2620
|
+
function d(v) {
|
|
2621
|
+
var S, x;
|
|
2622
|
+
const g = {
|
|
2636
2623
|
...e.builderContext.rootState,
|
|
2637
|
-
...
|
|
2624
|
+
...v
|
|
2638
2625
|
};
|
|
2639
|
-
e.builderContext.rootSetState ? (
|
|
2626
|
+
e.builderContext.rootSetState ? (x = (S = e.builderContext).rootSetState) == null || x.call(S, g) : e.builderContext.rootState = g;
|
|
2640
2627
|
}
|
|
2641
2628
|
function c() {
|
|
2642
|
-
return
|
|
2629
|
+
return F() && e.previewState || n;
|
|
2643
2630
|
}
|
|
2644
|
-
function
|
|
2645
|
-
var
|
|
2646
|
-
const
|
|
2631
|
+
function f(v) {
|
|
2632
|
+
var S;
|
|
2633
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2647
2634
|
if (e.sendSubmissionsTo === "zapier")
|
|
2648
|
-
|
|
2649
|
-
else if (
|
|
2635
|
+
v.preventDefault();
|
|
2636
|
+
else if (g) {
|
|
2650
2637
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2651
|
-
|
|
2638
|
+
v.preventDefault();
|
|
2652
2639
|
return;
|
|
2653
2640
|
}
|
|
2654
|
-
|
|
2655
|
-
const
|
|
2656
|
-
let
|
|
2657
|
-
const
|
|
2658
|
-
let
|
|
2659
|
-
const
|
|
2660
|
-
if (
|
|
2661
|
-
if (
|
|
2662
|
-
if (
|
|
2663
|
-
return
|
|
2664
|
-
key:
|
|
2665
|
-
value:
|
|
2641
|
+
v.preventDefault();
|
|
2642
|
+
const x = v.currentTarget || v.target, E = e.customHeaders || {};
|
|
2643
|
+
let C;
|
|
2644
|
+
const k = new FormData(x), W = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2645
|
+
let p;
|
|
2646
|
+
const R = u.name;
|
|
2647
|
+
if (u instanceof HTMLInputElement)
|
|
2648
|
+
if (u.type === "radio") {
|
|
2649
|
+
if (u.checked)
|
|
2650
|
+
return p = u.name, {
|
|
2651
|
+
key: R,
|
|
2652
|
+
value: p
|
|
2666
2653
|
};
|
|
2667
|
-
} else if (
|
|
2668
|
-
|
|
2669
|
-
else if (
|
|
2670
|
-
const
|
|
2671
|
-
isNaN(
|
|
2654
|
+
} else if (u.type === "checkbox")
|
|
2655
|
+
p = u.checked;
|
|
2656
|
+
else if (u.type === "number" || u.type === "range") {
|
|
2657
|
+
const B = u.valueAsNumber;
|
|
2658
|
+
isNaN(B) || (p = B);
|
|
2672
2659
|
} else
|
|
2673
|
-
|
|
2660
|
+
u.type === "file" ? p = u.files : p = u.value;
|
|
2674
2661
|
else
|
|
2675
|
-
|
|
2662
|
+
p = u.value;
|
|
2676
2663
|
return {
|
|
2677
|
-
key:
|
|
2678
|
-
value:
|
|
2664
|
+
key: R,
|
|
2665
|
+
value: p
|
|
2679
2666
|
};
|
|
2680
2667
|
});
|
|
2681
|
-
let
|
|
2682
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2683
|
-
(
|
|
2684
|
-
}),
|
|
2685
|
-
|
|
2668
|
+
let m = e.contentType;
|
|
2669
|
+
if (e.sendSubmissionsTo === "email" && (m = "multipart/form-data"), Array.from(W).forEach(({ value: u }) => {
|
|
2670
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (m = "multipart/form-data");
|
|
2671
|
+
}), m !== "application/json")
|
|
2672
|
+
C = k;
|
|
2686
2673
|
else {
|
|
2687
|
-
const
|
|
2688
|
-
Array.from(
|
|
2689
|
-
|
|
2690
|
-
}),
|
|
2674
|
+
const u = {};
|
|
2675
|
+
Array.from(W).forEach(({ value: p, key: R }) => {
|
|
2676
|
+
we(u, R, p);
|
|
2677
|
+
}), C = JSON.stringify(u);
|
|
2691
2678
|
}
|
|
2692
|
-
|
|
2693
|
-
const
|
|
2694
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2679
|
+
m && m !== "multipart/form-data" && (g && ((S = e.action) != null && S.includes("zapier.com")) || (E["content-type"] = m));
|
|
2680
|
+
const y = new CustomEvent("presubmit", { detail: { body: C } });
|
|
2681
|
+
if (t.current && (t.current.dispatchEvent(y), y.defaultPrevented))
|
|
2695
2682
|
return;
|
|
2696
2683
|
i("sending");
|
|
2697
|
-
const
|
|
2684
|
+
const I = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2698
2685
|
e.sendSubmissionsToEmail || ""
|
|
2699
2686
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2700
2687
|
fetch(
|
|
2701
|
-
e.sendSubmissionsTo === "email" ?
|
|
2702
|
-
{ body:
|
|
2688
|
+
e.sendSubmissionsTo === "email" ? I : e.action,
|
|
2689
|
+
{ body: C, headers: E, method: e.method || "post" }
|
|
2703
2690
|
).then(
|
|
2704
|
-
async (
|
|
2705
|
-
let
|
|
2706
|
-
const
|
|
2707
|
-
if (
|
|
2708
|
-
let
|
|
2709
|
-
|
|
2691
|
+
async (u) => {
|
|
2692
|
+
let p;
|
|
2693
|
+
const R = u.headers.get("content-type");
|
|
2694
|
+
if (R && R.indexOf("application/json") !== -1 ? p = await u.json() : p = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2695
|
+
let B = mn(p, e.errorMessagePath);
|
|
2696
|
+
B && (typeof B != "string" && (B = JSON.stringify(B)), s(B), d({ formErrorMessage: B }));
|
|
2710
2697
|
}
|
|
2711
|
-
if (a(
|
|
2712
|
-
const
|
|
2713
|
-
detail: { res:
|
|
2698
|
+
if (a(p), i(u.ok ? "success" : "error"), u.ok) {
|
|
2699
|
+
const B = new CustomEvent("submit:success", {
|
|
2700
|
+
detail: { res: u, body: p }
|
|
2714
2701
|
});
|
|
2715
2702
|
if (t.current) {
|
|
2716
|
-
if (t.current.dispatchEvent(
|
|
2703
|
+
if (t.current.dispatchEvent(B), B.defaultPrevented)
|
|
2717
2704
|
return;
|
|
2718
2705
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2719
2706
|
}
|
|
2720
2707
|
if (e.successUrl)
|
|
2721
2708
|
if (t.current) {
|
|
2722
|
-
const
|
|
2709
|
+
const A = new CustomEvent("route", {
|
|
2723
2710
|
detail: { url: e.successUrl }
|
|
2724
2711
|
});
|
|
2725
|
-
t.current.dispatchEvent(
|
|
2712
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
2726
2713
|
} else
|
|
2727
2714
|
location.href = e.successUrl;
|
|
2728
2715
|
}
|
|
2729
2716
|
},
|
|
2730
|
-
(
|
|
2731
|
-
const
|
|
2732
|
-
detail: { error:
|
|
2717
|
+
(u) => {
|
|
2718
|
+
const p = new CustomEvent("submit:error", {
|
|
2719
|
+
detail: { error: u }
|
|
2733
2720
|
});
|
|
2734
|
-
t.current && (t.current.dispatchEvent(
|
|
2721
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(u), i("error"));
|
|
2735
2722
|
}
|
|
2736
2723
|
);
|
|
2737
2724
|
}
|
|
2738
2725
|
}
|
|
2739
|
-
return /* @__PURE__ */ V(
|
|
2726
|
+
return /* @__PURE__ */ V(w, { children: [
|
|
2740
2727
|
" ",
|
|
2741
2728
|
/* @__PURE__ */ V(
|
|
2742
2729
|
"form",
|
|
@@ -2746,21 +2733,21 @@ function pn(e) {
|
|
|
2746
2733
|
action: !e.sendWithJs && e.action,
|
|
2747
2734
|
method: e.method,
|
|
2748
2735
|
name: e.name,
|
|
2749
|
-
onSubmit: (
|
|
2736
|
+
onSubmit: (v) => f(v),
|
|
2750
2737
|
...e.attributes,
|
|
2751
2738
|
children: [
|
|
2752
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2753
|
-
|
|
2739
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (h = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : h.map((v, g) => /* @__PURE__ */ l(
|
|
2740
|
+
H,
|
|
2754
2741
|
{
|
|
2755
|
-
block:
|
|
2742
|
+
block: v,
|
|
2756
2743
|
context: e.builderContext,
|
|
2757
2744
|
registeredComponents: e.builderComponents,
|
|
2758
2745
|
linkComponent: e.builderLinkComponent
|
|
2759
2746
|
},
|
|
2760
|
-
`form-block-${
|
|
2747
|
+
`form-block-${g}`
|
|
2761
2748
|
)) }) : null,
|
|
2762
2749
|
c() === "error" ? /* @__PURE__ */ l(
|
|
2763
|
-
|
|
2750
|
+
N,
|
|
2764
2751
|
{
|
|
2765
2752
|
path: "errorMessage",
|
|
2766
2753
|
blocks: e.errorMessage,
|
|
@@ -2768,7 +2755,7 @@ function pn(e) {
|
|
|
2768
2755
|
}
|
|
2769
2756
|
) : null,
|
|
2770
2757
|
c() === "sending" ? /* @__PURE__ */ l(
|
|
2771
|
-
|
|
2758
|
+
N,
|
|
2772
2759
|
{
|
|
2773
2760
|
path: "sendingMessage",
|
|
2774
2761
|
blocks: e.sendingMessage,
|
|
@@ -2777,7 +2764,7 @@ function pn(e) {
|
|
|
2777
2764
|
) : null,
|
|
2778
2765
|
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2779
2766
|
c() === "success" ? /* @__PURE__ */ l(
|
|
2780
|
-
|
|
2767
|
+
N,
|
|
2781
2768
|
{
|
|
2782
2769
|
path: "successMessage",
|
|
2783
2770
|
blocks: e.successMessage,
|
|
@@ -2792,7 +2779,7 @@ function pn(e) {
|
|
|
2792
2779
|
" "
|
|
2793
2780
|
] });
|
|
2794
2781
|
}
|
|
2795
|
-
const
|
|
2782
|
+
const hn = {
|
|
2796
2783
|
name: "Form:Input",
|
|
2797
2784
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2798
2785
|
inputs: [
|
|
@@ -2844,12 +2831,12 @@ const yn = {
|
|
|
2844
2831
|
borderColor: "#ccc"
|
|
2845
2832
|
}
|
|
2846
2833
|
};
|
|
2847
|
-
function
|
|
2848
|
-
return /* @__PURE__ */
|
|
2834
|
+
function gn(e) {
|
|
2835
|
+
return /* @__PURE__ */ Ie(
|
|
2849
2836
|
"input",
|
|
2850
2837
|
{
|
|
2851
2838
|
...e.attributes,
|
|
2852
|
-
key:
|
|
2839
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2853
2840
|
placeholder: e.placeholder,
|
|
2854
2841
|
type: e.type,
|
|
2855
2842
|
name: e.name,
|
|
@@ -2859,7 +2846,7 @@ function xn(e) {
|
|
|
2859
2846
|
}
|
|
2860
2847
|
);
|
|
2861
2848
|
}
|
|
2862
|
-
const
|
|
2849
|
+
const bn = {
|
|
2863
2850
|
name: "Form:Select",
|
|
2864
2851
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2865
2852
|
defaultStyles: {
|
|
@@ -2902,14 +2889,14 @@ const vn = {
|
|
|
2902
2889
|
static: !0,
|
|
2903
2890
|
noWrap: !0
|
|
2904
2891
|
};
|
|
2905
|
-
function
|
|
2892
|
+
function pn(e) {
|
|
2906
2893
|
var t;
|
|
2907
|
-
return /* @__PURE__ */
|
|
2894
|
+
return /* @__PURE__ */ Ie(
|
|
2908
2895
|
"select",
|
|
2909
2896
|
{
|
|
2910
2897
|
...e.attributes,
|
|
2911
2898
|
value: e.value,
|
|
2912
|
-
key:
|
|
2899
|
+
key: F() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2913
2900
|
defaultValue: e.defaultValue,
|
|
2914
2901
|
name: e.name,
|
|
2915
2902
|
required: e.required
|
|
@@ -2917,7 +2904,7 @@ function Sn(e) {
|
|
|
2917
2904
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2918
2905
|
);
|
|
2919
2906
|
}
|
|
2920
|
-
const
|
|
2907
|
+
const yn = {
|
|
2921
2908
|
name: "Form:SubmitButton",
|
|
2922
2909
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2923
2910
|
defaultStyles: {
|
|
@@ -2943,10 +2930,10 @@ const kn = {
|
|
|
2943
2930
|
// TODO: defaultChildren
|
|
2944
2931
|
// canHaveChildren: true,
|
|
2945
2932
|
};
|
|
2946
|
-
function
|
|
2933
|
+
function xn(e) {
|
|
2947
2934
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2948
2935
|
}
|
|
2949
|
-
const
|
|
2936
|
+
const vn = {
|
|
2950
2937
|
name: "Form:TextArea",
|
|
2951
2938
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2952
2939
|
inputs: [{
|
|
@@ -2983,7 +2970,7 @@ const Tn = {
|
|
|
2983
2970
|
static: !0,
|
|
2984
2971
|
noWrap: !0
|
|
2985
2972
|
};
|
|
2986
|
-
function
|
|
2973
|
+
function Sn(e) {
|
|
2987
2974
|
return /* @__PURE__ */ l(
|
|
2988
2975
|
"textarea",
|
|
2989
2976
|
{
|
|
@@ -2996,7 +2983,7 @@ function In(e) {
|
|
|
2996
2983
|
}
|
|
2997
2984
|
);
|
|
2998
2985
|
}
|
|
2999
|
-
const
|
|
2986
|
+
const kn = {
|
|
3000
2987
|
// friendlyName?
|
|
3001
2988
|
name: "Raw:Img",
|
|
3002
2989
|
hideFromInsertMenu: !0,
|
|
@@ -3011,7 +2998,7 @@ const wn = {
|
|
|
3011
2998
|
noWrap: !0,
|
|
3012
2999
|
static: !0
|
|
3013
3000
|
};
|
|
3014
|
-
function
|
|
3001
|
+
function Cn(e) {
|
|
3015
3002
|
return /* @__PURE__ */ l(
|
|
3016
3003
|
"img",
|
|
3017
3004
|
{
|
|
@@ -3023,10 +3010,10 @@ function Rn(e) {
|
|
|
3023
3010
|
src: e.imgSrc || e.image,
|
|
3024
3011
|
...e.attributes
|
|
3025
3012
|
},
|
|
3026
|
-
|
|
3013
|
+
F() && e.imgSrc || "default-key"
|
|
3027
3014
|
);
|
|
3028
3015
|
}
|
|
3029
|
-
const
|
|
3016
|
+
const Tn = {
|
|
3030
3017
|
name: "Video",
|
|
3031
3018
|
canHaveChildren: !0,
|
|
3032
3019
|
defaultStyles: {
|
|
@@ -3111,7 +3098,7 @@ const En = {
|
|
|
3111
3098
|
builderBlock: !0
|
|
3112
3099
|
}
|
|
3113
3100
|
};
|
|
3114
|
-
function
|
|
3101
|
+
function In(e) {
|
|
3115
3102
|
var i, o, a, r, s, d, c;
|
|
3116
3103
|
function t() {
|
|
3117
3104
|
return {
|
|
@@ -3212,64 +3199,64 @@ function Bn(e) {
|
|
|
3212
3199
|
}
|
|
3213
3200
|
);
|
|
3214
3201
|
}
|
|
3215
|
-
const
|
|
3202
|
+
const wn = () => [{
|
|
3203
|
+
component: on,
|
|
3204
|
+
...nn
|
|
3205
|
+
}, {
|
|
3216
3206
|
component: sn,
|
|
3217
|
-
...
|
|
3207
|
+
...an
|
|
3218
3208
|
}, {
|
|
3219
|
-
component:
|
|
3209
|
+
component: fn,
|
|
3220
3210
|
...cn
|
|
3221
3211
|
}, {
|
|
3222
|
-
component:
|
|
3223
|
-
...
|
|
3212
|
+
component: gn,
|
|
3213
|
+
...hn
|
|
3224
3214
|
}, {
|
|
3225
3215
|
component: xn,
|
|
3226
3216
|
...yn
|
|
3227
3217
|
}, {
|
|
3228
|
-
component:
|
|
3229
|
-
...
|
|
3218
|
+
component: pn,
|
|
3219
|
+
...bn
|
|
3230
3220
|
}, {
|
|
3231
3221
|
component: Sn,
|
|
3232
3222
|
...vn
|
|
3223
|
+
}, {
|
|
3224
|
+
component: Cn,
|
|
3225
|
+
...kn
|
|
3233
3226
|
}, {
|
|
3234
3227
|
component: In,
|
|
3235
3228
|
...Tn
|
|
3229
|
+
}], ye = () => [{
|
|
3230
|
+
component: tt,
|
|
3231
|
+
...Kt
|
|
3236
3232
|
}, {
|
|
3237
|
-
component:
|
|
3238
|
-
...
|
|
3233
|
+
component: $t,
|
|
3234
|
+
...qt
|
|
3239
3235
|
}, {
|
|
3240
|
-
component:
|
|
3241
|
-
...
|
|
3242
|
-
}], ke = () => [{
|
|
3243
|
-
component: rt,
|
|
3244
|
-
...Jt
|
|
3236
|
+
component: Dt,
|
|
3237
|
+
..._t
|
|
3245
3238
|
}, {
|
|
3246
3239
|
component: Ut,
|
|
3247
|
-
...
|
|
3240
|
+
...zt
|
|
3248
3241
|
}, {
|
|
3249
3242
|
component: jt,
|
|
3250
|
-
...
|
|
3251
|
-
}, {
|
|
3252
|
-
component: Kt,
|
|
3253
|
-
...Qt
|
|
3254
|
-
}, {
|
|
3255
|
-
component: qt,
|
|
3256
|
-
...Xt
|
|
3243
|
+
...Jt
|
|
3257
3244
|
}, {
|
|
3258
|
-
component:
|
|
3259
|
-
...
|
|
3245
|
+
component: Gt,
|
|
3246
|
+
...Yt
|
|
3260
3247
|
}, {
|
|
3261
|
-
component:
|
|
3262
|
-
...
|
|
3248
|
+
component: Yn,
|
|
3249
|
+
...Qt
|
|
3263
3250
|
}, {
|
|
3264
|
-
component:
|
|
3265
|
-
...
|
|
3251
|
+
component: tn,
|
|
3252
|
+
...en
|
|
3266
3253
|
}, {
|
|
3267
|
-
component:
|
|
3268
|
-
...
|
|
3254
|
+
component: Zt,
|
|
3255
|
+
...Xt
|
|
3269
3256
|
}, {
|
|
3270
|
-
component:
|
|
3271
|
-
...
|
|
3272
|
-
}, ...
|
|
3257
|
+
component: Ht,
|
|
3258
|
+
...Mt
|
|
3259
|
+
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3273
3260
|
function getAndSetVariantId() {
|
|
3274
3261
|
function setCookie(name, value, days) {
|
|
3275
3262
|
let expires = '';
|
|
@@ -3325,7 +3312,7 @@ const Pn = () => [{
|
|
|
3325
3312
|
}).join('');
|
|
3326
3313
|
styleEl.innerHTML = newStyleStr;
|
|
3327
3314
|
}
|
|
3328
|
-
}`,
|
|
3315
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3329
3316
|
if (!navigator.cookieEnabled) {
|
|
3330
3317
|
return;
|
|
3331
3318
|
}
|
|
@@ -3359,26 +3346,26 @@ const Pn = () => [{
|
|
|
3359
3346
|
thisScriptEl?.remove();
|
|
3360
3347
|
}
|
|
3361
3348
|
return;
|
|
3362
|
-
}`,
|
|
3349
|
+
}`, $e = "builderIoAbTest", De = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3363
3350
|
...t,
|
|
3364
3351
|
testVariationId: t.id,
|
|
3365
3352
|
id: e == null ? void 0 : e.id
|
|
3366
|
-
})),
|
|
3353
|
+
})), Bn = ({
|
|
3367
3354
|
canTrack: e,
|
|
3368
3355
|
content: t
|
|
3369
|
-
}) => !(!(
|
|
3370
|
-
window.${
|
|
3371
|
-
window.${
|
|
3372
|
-
`,
|
|
3373
|
-
window.${
|
|
3374
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3375
|
-
)`,
|
|
3356
|
+
}) => !(!(q(t).length > 0) || !e || _()), Pn = (e) => e === "react" || e === "reactNative", Le = Pn(L), Vn = () => `
|
|
3357
|
+
window.${$e} = ${Rn}
|
|
3358
|
+
window.${De} = ${En}
|
|
3359
|
+
`, An = (e, t) => `
|
|
3360
|
+
window.${$e}(
|
|
3361
|
+
"${t}",${JSON.stringify(e)}, ${Le}
|
|
3362
|
+
)`, Wn = ({
|
|
3376
3363
|
contentId: e,
|
|
3377
3364
|
variationId: t
|
|
3378
|
-
}) => `window.${
|
|
3379
|
-
"${t}", "${e}", ${
|
|
3365
|
+
}) => `window.${De}(
|
|
3366
|
+
"${t}", "${e}", ${Le}
|
|
3380
3367
|
)`;
|
|
3381
|
-
function
|
|
3368
|
+
function oe(e) {
|
|
3382
3369
|
return /* @__PURE__ */ l(
|
|
3383
3370
|
"script",
|
|
3384
3371
|
{
|
|
@@ -3388,10 +3375,10 @@ function se(e) {
|
|
|
3388
3375
|
}
|
|
3389
3376
|
);
|
|
3390
3377
|
}
|
|
3391
|
-
function
|
|
3378
|
+
function xe(e) {
|
|
3392
3379
|
return Math.round(e * 1e3) / 1e3;
|
|
3393
3380
|
}
|
|
3394
|
-
const
|
|
3381
|
+
const Fn = (e, t, n = !0) => {
|
|
3395
3382
|
if (!(e instanceof HTMLElement))
|
|
3396
3383
|
return null;
|
|
3397
3384
|
let i = n ? e : e.parentElement;
|
|
@@ -3402,35 +3389,35 @@ const Ln = (e, t, n = !0) => {
|
|
|
3402
3389
|
return i;
|
|
3403
3390
|
} while (i = i.parentElement);
|
|
3404
3391
|
return null;
|
|
3405
|
-
},
|
|
3392
|
+
}, Nn = (e) => Fn(e, (t) => {
|
|
3406
3393
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3407
3394
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3408
|
-
}),
|
|
3395
|
+
}), ve = ({
|
|
3409
3396
|
event: e,
|
|
3410
3397
|
target: t
|
|
3411
3398
|
}) => {
|
|
3412
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a =
|
|
3399
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
|
|
3413
3400
|
return {
|
|
3414
3401
|
x: a,
|
|
3415
3402
|
y: r
|
|
3416
3403
|
};
|
|
3417
|
-
},
|
|
3418
|
-
const t = e.target, n = t &&
|
|
3404
|
+
}, $n = (e) => {
|
|
3405
|
+
const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3419
3406
|
return {
|
|
3420
3407
|
targetBuilderElement: i || void 0,
|
|
3421
3408
|
metadata: {
|
|
3422
|
-
targetOffset: t ?
|
|
3409
|
+
targetOffset: t ? ve({
|
|
3423
3410
|
event: e,
|
|
3424
3411
|
target: t
|
|
3425
3412
|
}) : void 0,
|
|
3426
|
-
builderTargetOffset: n ?
|
|
3413
|
+
builderTargetOffset: n ? ve({
|
|
3427
3414
|
event: e,
|
|
3428
3415
|
target: n
|
|
3429
3416
|
}) : void 0,
|
|
3430
3417
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3431
3418
|
}
|
|
3432
3419
|
};
|
|
3433
|
-
},
|
|
3420
|
+
}, Dn = (e) => {
|
|
3434
3421
|
var a, r;
|
|
3435
3422
|
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;
|
|
3436
3423
|
let o = "";
|
|
@@ -3456,15 +3443,15 @@ font-weight: ${s};
|
|
|
3456
3443
|
`.trim());
|
|
3457
3444
|
}
|
|
3458
3445
|
return o;
|
|
3459
|
-
},
|
|
3446
|
+
}, Ln = ({
|
|
3460
3447
|
customFonts: e
|
|
3461
3448
|
}) => {
|
|
3462
3449
|
var t;
|
|
3463
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3464
|
-
},
|
|
3450
|
+
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3451
|
+
}, On = ({
|
|
3465
3452
|
cssCode: e,
|
|
3466
3453
|
contentId: t
|
|
3467
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3454
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Un = `
|
|
3468
3455
|
.builder-button {
|
|
3469
3456
|
all: unset;
|
|
3470
3457
|
}
|
|
@@ -3481,39 +3468,39 @@ font-weight: ${s};
|
|
|
3481
3468
|
text-align: inherit;
|
|
3482
3469
|
font-family: inherit;
|
|
3483
3470
|
}
|
|
3484
|
-
`,
|
|
3485
|
-
function
|
|
3486
|
-
var
|
|
3487
|
-
const t =
|
|
3488
|
-
function n(
|
|
3489
|
-
var
|
|
3490
|
-
const
|
|
3471
|
+
`, jn = (e) => e ? "" : Un, Mn = (e) => `variant-${e}`;
|
|
3472
|
+
function Hn(e) {
|
|
3473
|
+
var C, k, W;
|
|
3474
|
+
const t = D(null);
|
|
3475
|
+
function n(m) {
|
|
3476
|
+
var I, u;
|
|
3477
|
+
const y = {
|
|
3491
3478
|
...e.builderContextSignal.rootState,
|
|
3492
|
-
...
|
|
3479
|
+
...m
|
|
3493
3480
|
};
|
|
3494
|
-
e.builderContextSignal.rootSetState ? (
|
|
3495
|
-
...
|
|
3496
|
-
rootState:
|
|
3481
|
+
e.builderContextSignal.rootSetState ? (u = (I = e.builderContextSignal).rootSetState) == null || u.call(I, y) : e.setBuilderContextSignal((p) => ({
|
|
3482
|
+
...p,
|
|
3483
|
+
rootState: y
|
|
3497
3484
|
}));
|
|
3498
3485
|
}
|
|
3499
|
-
function i(
|
|
3500
|
-
var
|
|
3501
|
-
const
|
|
3486
|
+
function i(m) {
|
|
3487
|
+
var I, u, p, R, B;
|
|
3488
|
+
const y = {
|
|
3502
3489
|
...e.builderContextSignal.content,
|
|
3503
|
-
...
|
|
3490
|
+
...m,
|
|
3504
3491
|
data: {
|
|
3505
|
-
...(
|
|
3506
|
-
...
|
|
3492
|
+
...(I = e.builderContextSignal.content) == null ? void 0 : I.data,
|
|
3493
|
+
...m == null ? void 0 : m.data
|
|
3507
3494
|
},
|
|
3508
3495
|
meta: {
|
|
3509
|
-
...(
|
|
3510
|
-
...
|
|
3511
|
-
breakpoints: ((
|
|
3496
|
+
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3497
|
+
...m == null ? void 0 : m.meta,
|
|
3498
|
+
breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((B = (R = e.builderContextSignal.content) == null ? void 0 : R.meta) == null ? void 0 : B.breakpoints)
|
|
3512
3499
|
}
|
|
3513
3500
|
};
|
|
3514
|
-
e.setBuilderContextSignal((
|
|
3515
|
-
...
|
|
3516
|
-
content:
|
|
3501
|
+
e.setBuilderContextSignal((A) => ({
|
|
3502
|
+
...A,
|
|
3503
|
+
content: y
|
|
3517
3504
|
}));
|
|
3518
3505
|
}
|
|
3519
3506
|
function o() {
|
|
@@ -3525,73 +3512,58 @@ function zn(e) {
|
|
|
3525
3512
|
const [a, r] = T(
|
|
3526
3513
|
() => e.contentWrapper || "div"
|
|
3527
3514
|
);
|
|
3528
|
-
function s(
|
|
3529
|
-
return
|
|
3515
|
+
function s(m) {
|
|
3516
|
+
return qe({
|
|
3530
3517
|
model: e.model,
|
|
3531
3518
|
trustedHosts: e.trustedHosts,
|
|
3532
3519
|
callbacks: {
|
|
3533
|
-
configureSdk: (
|
|
3534
|
-
var
|
|
3535
|
-
const { breakpoints:
|
|
3536
|
-
!
|
|
3520
|
+
configureSdk: (y) => {
|
|
3521
|
+
var p;
|
|
3522
|
+
const { breakpoints: I, contentId: u } = y;
|
|
3523
|
+
!u || u !== ((p = e.builderContextSignal.content) == null ? void 0 : p.id) || I && i({
|
|
3537
3524
|
meta: {
|
|
3538
|
-
breakpoints:
|
|
3525
|
+
breakpoints: I
|
|
3539
3526
|
}
|
|
3540
3527
|
});
|
|
3541
3528
|
},
|
|
3542
|
-
animation: (
|
|
3543
|
-
|
|
3529
|
+
animation: (y) => {
|
|
3530
|
+
Pe(y);
|
|
3544
3531
|
},
|
|
3545
|
-
contentUpdate: (
|
|
3546
|
-
i(
|
|
3532
|
+
contentUpdate: (y) => {
|
|
3533
|
+
i(y);
|
|
3547
3534
|
}
|
|
3548
3535
|
}
|
|
3549
|
-
})(
|
|
3536
|
+
})(m);
|
|
3550
3537
|
}
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
b && H({
|
|
3555
|
-
code: b,
|
|
3556
|
-
context: e.context || {},
|
|
3557
|
-
localState: void 0,
|
|
3558
|
-
rootState: e.builderContextSignal.rootState,
|
|
3559
|
-
rootSetState: e.builderContextSignal.rootSetState,
|
|
3560
|
-
/**
|
|
3561
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3562
|
-
*/
|
|
3563
|
-
enableCache: !1
|
|
3564
|
-
});
|
|
3565
|
-
}
|
|
3566
|
-
const [c, u] = T(() => ({})), [g, m] = T(() => ({})), [x, h] = T(() => !1);
|
|
3567
|
-
function p(b) {
|
|
3568
|
-
var S, k;
|
|
3538
|
+
const [d, c] = T(() => ({})), [f, b] = T(() => ({})), [h, v] = T(() => !1);
|
|
3539
|
+
function g(m) {
|
|
3540
|
+
var y, I;
|
|
3569
3541
|
if (e.builderContextSignal.content) {
|
|
3570
|
-
const
|
|
3571
|
-
|
|
3542
|
+
const u = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, p = (I = e.builderContextSignal.content) == null ? void 0 : I.id;
|
|
3543
|
+
de({
|
|
3572
3544
|
type: "click",
|
|
3573
|
-
canTrack:
|
|
3574
|
-
contentId:
|
|
3545
|
+
canTrack: z(e.canTrack),
|
|
3546
|
+
contentId: p,
|
|
3575
3547
|
apiKey: e.apiKey,
|
|
3576
|
-
variationId:
|
|
3577
|
-
|
|
3578
|
-
unique: !
|
|
3548
|
+
variationId: u !== p ? u : void 0,
|
|
3549
|
+
...$n(m),
|
|
3550
|
+
unique: !h
|
|
3579
3551
|
});
|
|
3580
3552
|
}
|
|
3581
|
-
|
|
3553
|
+
h || v(!0);
|
|
3582
3554
|
}
|
|
3583
|
-
function
|
|
3584
|
-
var
|
|
3585
|
-
const
|
|
3586
|
-
Object.entries(
|
|
3587
|
-
if (!
|
|
3555
|
+
function S() {
|
|
3556
|
+
var y, I, u;
|
|
3557
|
+
const m = (u = (I = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : I.httpRequests) != null ? u : {};
|
|
3558
|
+
Object.entries(m).forEach(([p, R]) => {
|
|
3559
|
+
if (!R || f[p] || d[p] && !F())
|
|
3588
3560
|
return;
|
|
3589
|
-
|
|
3590
|
-
const
|
|
3561
|
+
f[p] = !0;
|
|
3562
|
+
const B = R.replace(
|
|
3591
3563
|
/{{([^}]+)}}/g,
|
|
3592
|
-
(
|
|
3593
|
-
|
|
3594
|
-
code:
|
|
3564
|
+
(A, Oe) => String(
|
|
3565
|
+
U({
|
|
3566
|
+
code: Oe,
|
|
3595
3567
|
context: e.context || {},
|
|
3596
3568
|
localState: void 0,
|
|
3597
3569
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3600,24 +3572,24 @@ function zn(e) {
|
|
|
3600
3572
|
})
|
|
3601
3573
|
)
|
|
3602
3574
|
);
|
|
3603
|
-
|
|
3575
|
+
fetch(B).then((A) => A.json()).then((A) => {
|
|
3604
3576
|
n({
|
|
3605
|
-
[
|
|
3606
|
-
}),
|
|
3607
|
-
}).catch((
|
|
3608
|
-
console.error("error fetching dynamic data",
|
|
3577
|
+
[p]: A
|
|
3578
|
+
}), d[p] = !0;
|
|
3579
|
+
}).catch((A) => {
|
|
3580
|
+
console.error("error fetching dynamic data", R, A);
|
|
3609
3581
|
}).finally(() => {
|
|
3610
|
-
|
|
3582
|
+
f[p] = !1;
|
|
3611
3583
|
});
|
|
3612
3584
|
});
|
|
3613
3585
|
}
|
|
3614
|
-
function
|
|
3615
|
-
|
|
3586
|
+
function x() {
|
|
3587
|
+
F() && window.dispatchEvent(
|
|
3616
3588
|
new CustomEvent(
|
|
3617
3589
|
"builder:component:stateChange",
|
|
3618
3590
|
{
|
|
3619
3591
|
detail: {
|
|
3620
|
-
state:
|
|
3592
|
+
state: re(e.builderContextSignal.rootState),
|
|
3621
3593
|
ref: {
|
|
3622
3594
|
name: e.model
|
|
3623
3595
|
}
|
|
@@ -3626,10 +3598,11 @@ function zn(e) {
|
|
|
3626
3598
|
)
|
|
3627
3599
|
);
|
|
3628
3600
|
}
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3601
|
+
const E = D(!1);
|
|
3602
|
+
return E.current || (S(), x(), E.current = !0), P(() => {
|
|
3603
|
+
var m, y;
|
|
3604
|
+
if (_()) {
|
|
3605
|
+
if (F() && (window.addEventListener("message", s), Me(), He({
|
|
3633
3606
|
...e.locale ? {
|
|
3634
3607
|
locale: e.locale
|
|
3635
3608
|
} : {},
|
|
@@ -3641,48 +3614,40 @@ function zn(e) {
|
|
|
3641
3614
|
} : {}
|
|
3642
3615
|
}), Object.values(
|
|
3643
3616
|
e.builderContextSignal.componentInfos
|
|
3644
|
-
).forEach((
|
|
3645
|
-
var
|
|
3646
|
-
const
|
|
3647
|
-
(
|
|
3617
|
+
).forEach((u) => {
|
|
3618
|
+
var R;
|
|
3619
|
+
const p = Ke(u);
|
|
3620
|
+
(R = window.parent) == null || R.postMessage(p, "*");
|
|
3648
3621
|
}), window.addEventListener(
|
|
3649
3622
|
"builder:component:stateChangeListenerActivated",
|
|
3650
|
-
|
|
3651
|
-
)), e.builderContextSignal.content &&
|
|
3652
|
-
const
|
|
3653
|
-
|
|
3623
|
+
x
|
|
3624
|
+
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3625
|
+
const u = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (y = e.builderContextSignal.content) == null ? void 0 : y.id, R = e.apiKey;
|
|
3626
|
+
de({
|
|
3654
3627
|
type: "impression",
|
|
3655
3628
|
canTrack: !0,
|
|
3656
|
-
contentId:
|
|
3657
|
-
apiKey:
|
|
3658
|
-
variationId:
|
|
3629
|
+
contentId: p,
|
|
3630
|
+
apiKey: R,
|
|
3631
|
+
variationId: u !== p ? u : void 0
|
|
3659
3632
|
});
|
|
3660
3633
|
}
|
|
3661
|
-
if (
|
|
3662
|
-
const
|
|
3663
|
-
`builder.overrides.${
|
|
3664
|
-
),
|
|
3665
|
-
|
|
3634
|
+
if (ke() && !F()) {
|
|
3635
|
+
const u = new URL(location.href).searchParams, p = u.get("builder.preview"), R = u.get(
|
|
3636
|
+
`builder.overrides.${p}`
|
|
3637
|
+
), B = u.get("apiKey") || u.get("builder.space");
|
|
3638
|
+
p === e.model && B === e.apiKey && (!e.content || R === e.content.id) && Ce({
|
|
3666
3639
|
model: e.model,
|
|
3667
3640
|
apiKey: e.apiKey,
|
|
3668
3641
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3669
|
-
}).then((
|
|
3670
|
-
|
|
3642
|
+
}).then((A) => {
|
|
3643
|
+
A && i(A);
|
|
3671
3644
|
});
|
|
3672
3645
|
}
|
|
3673
3646
|
}
|
|
3674
|
-
}, []), P(() => {
|
|
3675
|
-
e.apiKey || ce.error(
|
|
3676
|
-
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3677
|
-
), d(), f(), w();
|
|
3678
3647
|
}, []), P(() => {
|
|
3679
3648
|
e.content && i(e.content);
|
|
3680
3649
|
}, [e.content]), P(() => {
|
|
3681
|
-
|
|
3682
|
-
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3683
|
-
f();
|
|
3684
|
-
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3685
|
-
w();
|
|
3650
|
+
x();
|
|
3686
3651
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3687
3652
|
e.data && n(e.data);
|
|
3688
3653
|
}, [e.data]), P(() => {
|
|
@@ -3690,41 +3655,41 @@ function zn(e) {
|
|
|
3690
3655
|
locale: e.locale
|
|
3691
3656
|
});
|
|
3692
3657
|
}, [e.locale]), P(() => () => {
|
|
3693
|
-
|
|
3658
|
+
_() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3694
3659
|
"builder:component:stateChangeListenerActivated",
|
|
3695
|
-
|
|
3660
|
+
x
|
|
3696
3661
|
));
|
|
3697
|
-
}, []), /* @__PURE__ */ l(
|
|
3662
|
+
}, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3698
3663
|
a,
|
|
3699
3664
|
{
|
|
3700
3665
|
ref: t,
|
|
3701
|
-
onClick: (
|
|
3702
|
-
"builder-content-id": (
|
|
3666
|
+
onClick: (m) => g(m),
|
|
3667
|
+
"builder-content-id": (C = e.builderContextSignal.content) == null ? void 0 : C.id,
|
|
3703
3668
|
"builder-model": e.model,
|
|
3669
|
+
className: Mn(
|
|
3670
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((W = e.content) == null ? void 0 : W.id)
|
|
3671
|
+
),
|
|
3704
3672
|
...o(),
|
|
3705
3673
|
...e.contentWrapperProps,
|
|
3706
|
-
className: _n(
|
|
3707
|
-
((W = e.content) == null ? void 0 : W.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3708
|
-
),
|
|
3709
3674
|
children: e.children
|
|
3710
3675
|
}
|
|
3711
3676
|
) : null });
|
|
3712
3677
|
}
|
|
3713
|
-
function
|
|
3678
|
+
function Kn(e) {
|
|
3714
3679
|
const [t, n] = T(
|
|
3715
3680
|
() => `
|
|
3716
|
-
${
|
|
3681
|
+
${On({
|
|
3717
3682
|
cssCode: e.cssCode,
|
|
3718
3683
|
contentId: e.contentId
|
|
3719
3684
|
})}
|
|
3720
|
-
${
|
|
3685
|
+
${Ln({
|
|
3721
3686
|
customFonts: e.customFonts
|
|
3722
3687
|
})}
|
|
3723
|
-
${
|
|
3688
|
+
${jn(e.isNestedRender)}
|
|
3724
3689
|
`.trim()
|
|
3725
3690
|
);
|
|
3726
3691
|
return /* @__PURE__ */ l(
|
|
3727
|
-
|
|
3692
|
+
Y,
|
|
3728
3693
|
{
|
|
3729
3694
|
id: "builderio-content",
|
|
3730
3695
|
styles: t,
|
|
@@ -3732,7 +3697,7 @@ ${qn(e.isNestedRender)}
|
|
|
3732
3697
|
}
|
|
3733
3698
|
);
|
|
3734
3699
|
}
|
|
3735
|
-
const
|
|
3700
|
+
const qn = ({
|
|
3736
3701
|
content: e,
|
|
3737
3702
|
data: t,
|
|
3738
3703
|
locale: n
|
|
@@ -3749,7 +3714,7 @@ const Yn = ({
|
|
|
3749
3714
|
locale: n
|
|
3750
3715
|
} : {}
|
|
3751
3716
|
};
|
|
3752
|
-
},
|
|
3717
|
+
}, _n = ({
|
|
3753
3718
|
content: e,
|
|
3754
3719
|
data: t
|
|
3755
3720
|
}) => e ? {
|
|
@@ -3760,51 +3725,51 @@ const Yn = ({
|
|
|
3760
3725
|
},
|
|
3761
3726
|
meta: e == null ? void 0 : e.meta
|
|
3762
3727
|
} : void 0;
|
|
3763
|
-
function
|
|
3764
|
-
var
|
|
3728
|
+
function Se(e) {
|
|
3729
|
+
var c, f, b, h, v, g, S, x, E;
|
|
3765
3730
|
const [t, n] = T(
|
|
3766
3731
|
() => {
|
|
3767
|
-
var
|
|
3768
|
-
return
|
|
3732
|
+
var C, k;
|
|
3733
|
+
return Wn({
|
|
3769
3734
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3770
|
-
variationId: (
|
|
3735
|
+
variationId: (C = e.content) == null ? void 0 : C.testVariationId,
|
|
3771
3736
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3772
|
-
contentId: (
|
|
3737
|
+
contentId: (k = e.content) == null ? void 0 : k.id
|
|
3773
3738
|
});
|
|
3774
3739
|
}
|
|
3775
3740
|
);
|
|
3776
|
-
function i(
|
|
3777
|
-
s((
|
|
3778
|
-
...
|
|
3779
|
-
rootState:
|
|
3741
|
+
function i(C) {
|
|
3742
|
+
s((k) => ({
|
|
3743
|
+
...k,
|
|
3744
|
+
rootState: C
|
|
3780
3745
|
}));
|
|
3781
3746
|
}
|
|
3782
3747
|
const [o, a] = T(
|
|
3783
3748
|
() => {
|
|
3784
|
-
var
|
|
3749
|
+
var C;
|
|
3785
3750
|
return [
|
|
3786
|
-
...
|
|
3787
|
-
...((
|
|
3751
|
+
...ye(),
|
|
3752
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3788
3753
|
].reduce(
|
|
3789
|
-
(
|
|
3790
|
-
...
|
|
3791
|
-
[
|
|
3792
|
-
component:
|
|
3793
|
-
...
|
|
3754
|
+
(k, { component: W, ...m }) => ({
|
|
3755
|
+
...k,
|
|
3756
|
+
[m.name]: {
|
|
3757
|
+
component: W,
|
|
3758
|
+
...ue(m)
|
|
3794
3759
|
}
|
|
3795
3760
|
}),
|
|
3796
3761
|
{}
|
|
3797
3762
|
);
|
|
3798
3763
|
}
|
|
3799
3764
|
), [r, s] = T(() => {
|
|
3800
|
-
var
|
|
3765
|
+
var C;
|
|
3801
3766
|
return {
|
|
3802
|
-
content:
|
|
3767
|
+
content: _n({
|
|
3803
3768
|
content: e.content,
|
|
3804
3769
|
data: e.data
|
|
3805
3770
|
}),
|
|
3806
3771
|
localState: void 0,
|
|
3807
|
-
rootState:
|
|
3772
|
+
rootState: qn({
|
|
3808
3773
|
content: e.content,
|
|
3809
3774
|
data: e.data,
|
|
3810
3775
|
locale: e.locale
|
|
@@ -3815,12 +3780,12 @@ function Ie(e) {
|
|
|
3815
3780
|
apiKey: e.apiKey,
|
|
3816
3781
|
apiVersion: e.apiVersion,
|
|
3817
3782
|
componentInfos: [
|
|
3818
|
-
...
|
|
3819
|
-
...((
|
|
3783
|
+
...ye(),
|
|
3784
|
+
...((C = e.customComponents) == null ? void 0 : C.filter(({ models: k }) => !(k != null && k.length) || !e.model ? !0 : k.includes(e.model))) || []
|
|
3820
3785
|
].reduce(
|
|
3821
|
-
(
|
|
3822
|
-
...
|
|
3823
|
-
[
|
|
3786
|
+
(k, { component: W, ...m }) => ({
|
|
3787
|
+
...k,
|
|
3788
|
+
[m.name]: ue(m)
|
|
3824
3789
|
}),
|
|
3825
3790
|
{}
|
|
3826
3791
|
),
|
|
@@ -3829,15 +3794,35 @@ function Ie(e) {
|
|
|
3829
3794
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3830
3795
|
nonce: e.nonce || ""
|
|
3831
3796
|
};
|
|
3832
|
-
});
|
|
3797
|
+
}), d = D(!1);
|
|
3798
|
+
if (!d.current) {
|
|
3799
|
+
e.apiKey || ae.error(
|
|
3800
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3801
|
+
);
|
|
3802
|
+
const C = (f = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : f.jsCode;
|
|
3803
|
+
C && U({
|
|
3804
|
+
code: C,
|
|
3805
|
+
context: e.context || {},
|
|
3806
|
+
localState: void 0,
|
|
3807
|
+
rootState: r.rootState,
|
|
3808
|
+
rootSetState: (k) => {
|
|
3809
|
+
Object.assign(r.rootState, k);
|
|
3810
|
+
},
|
|
3811
|
+
isExpression: !1,
|
|
3812
|
+
/**
|
|
3813
|
+
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
3814
|
+
*/
|
|
3815
|
+
enableCache: !1
|
|
3816
|
+
}), d.current = !0;
|
|
3817
|
+
}
|
|
3833
3818
|
return /* @__PURE__ */ l(
|
|
3834
|
-
|
|
3819
|
+
Re.Provider,
|
|
3835
3820
|
{
|
|
3836
3821
|
value: {
|
|
3837
3822
|
registeredComponents: o
|
|
3838
3823
|
},
|
|
3839
3824
|
children: /* @__PURE__ */ V(
|
|
3840
|
-
|
|
3825
|
+
Hn,
|
|
3841
3826
|
{
|
|
3842
3827
|
nonce: e.nonce,
|
|
3843
3828
|
content: e.content,
|
|
@@ -3856,7 +3841,7 @@ function Ie(e) {
|
|
|
3856
3841
|
setBuilderContextSignal: s,
|
|
3857
3842
|
children: [
|
|
3858
3843
|
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3859
|
-
|
|
3844
|
+
oe,
|
|
3860
3845
|
{
|
|
3861
3846
|
id: "builderio-variant-visibility",
|
|
3862
3847
|
scriptStr: t,
|
|
@@ -3864,19 +3849,19 @@ function Ie(e) {
|
|
|
3864
3849
|
}
|
|
3865
3850
|
) : null,
|
|
3866
3851
|
/* @__PURE__ */ l(
|
|
3867
|
-
|
|
3852
|
+
Kn,
|
|
3868
3853
|
{
|
|
3869
3854
|
nonce: e.nonce || "",
|
|
3870
3855
|
isNestedRender: e.isNestedRender,
|
|
3871
|
-
contentId: (
|
|
3872
|
-
cssCode: (
|
|
3873
|
-
customFonts: (
|
|
3856
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
3857
|
+
cssCode: (v = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : v.cssCode,
|
|
3858
|
+
customFonts: (S = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
|
|
3874
3859
|
}
|
|
3875
3860
|
),
|
|
3876
3861
|
/* @__PURE__ */ l(
|
|
3877
|
-
|
|
3862
|
+
N,
|
|
3878
3863
|
{
|
|
3879
|
-
blocks: (
|
|
3864
|
+
blocks: (E = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : E.blocks,
|
|
3880
3865
|
context: r,
|
|
3881
3866
|
registeredComponents: o,
|
|
3882
3867
|
linkComponent: e.linkComponent
|
|
@@ -3888,18 +3873,18 @@ function Ie(e) {
|
|
|
3888
3873
|
}
|
|
3889
3874
|
);
|
|
3890
3875
|
}
|
|
3891
|
-
function
|
|
3876
|
+
function zn(e) {
|
|
3892
3877
|
var r;
|
|
3893
3878
|
const [t, n] = T(
|
|
3894
|
-
() =>
|
|
3895
|
-
canTrack:
|
|
3879
|
+
() => Bn({
|
|
3880
|
+
canTrack: z(e.canTrack),
|
|
3896
3881
|
content: e.content
|
|
3897
3882
|
})
|
|
3898
3883
|
);
|
|
3899
3884
|
function i() {
|
|
3900
3885
|
var s;
|
|
3901
|
-
return
|
|
3902
|
-
|
|
3886
|
+
return An(
|
|
3887
|
+
q(e.content).map((d) => ({
|
|
3903
3888
|
id: d.testVariationId,
|
|
3904
3889
|
testRatio: d.testRatio
|
|
3905
3890
|
})),
|
|
@@ -3907,31 +3892,31 @@ function Qn(e) {
|
|
|
3907
3892
|
);
|
|
3908
3893
|
}
|
|
3909
3894
|
function o() {
|
|
3910
|
-
return
|
|
3895
|
+
return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3911
3896
|
}
|
|
3912
3897
|
function a() {
|
|
3913
3898
|
var s;
|
|
3914
3899
|
return t ? {
|
|
3915
3900
|
...e.content,
|
|
3916
3901
|
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3917
|
-
} :
|
|
3902
|
+
} : _e({
|
|
3918
3903
|
item: e.content,
|
|
3919
|
-
canTrack:
|
|
3904
|
+
canTrack: z(e.canTrack)
|
|
3920
3905
|
});
|
|
3921
3906
|
}
|
|
3922
3907
|
return P(() => {
|
|
3923
|
-
}, []), /* @__PURE__ */ V(
|
|
3924
|
-
!e.isNestedRender &&
|
|
3925
|
-
|
|
3908
|
+
}, []), /* @__PURE__ */ V(w, { children: [
|
|
3909
|
+
!e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(
|
|
3910
|
+
oe,
|
|
3926
3911
|
{
|
|
3927
3912
|
id: "builderio-init-variants-fns",
|
|
3928
|
-
scriptStr:
|
|
3913
|
+
scriptStr: Vn(),
|
|
3929
3914
|
nonce: e.nonce || ""
|
|
3930
3915
|
}
|
|
3931
3916
|
) : null,
|
|
3932
|
-
t ? /* @__PURE__ */ V(
|
|
3917
|
+
t ? /* @__PURE__ */ V(w, { children: [
|
|
3933
3918
|
/* @__PURE__ */ l(
|
|
3934
|
-
|
|
3919
|
+
Y,
|
|
3935
3920
|
{
|
|
3936
3921
|
id: "builderio-variants",
|
|
3937
3922
|
styles: o(),
|
|
@@ -3939,15 +3924,15 @@ function Qn(e) {
|
|
|
3939
3924
|
}
|
|
3940
3925
|
),
|
|
3941
3926
|
/* @__PURE__ */ l(
|
|
3942
|
-
|
|
3927
|
+
oe,
|
|
3943
3928
|
{
|
|
3944
3929
|
id: "builderio-variants-visibility",
|
|
3945
3930
|
scriptStr: i(),
|
|
3946
3931
|
nonce: e.nonce || ""
|
|
3947
3932
|
}
|
|
3948
3933
|
),
|
|
3949
|
-
(r =
|
|
3950
|
-
|
|
3934
|
+
(r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3935
|
+
Se,
|
|
3951
3936
|
{
|
|
3952
3937
|
isNestedRender: e.isNestedRender,
|
|
3953
3938
|
nonce: e.nonce,
|
|
@@ -3974,7 +3959,7 @@ function Qn(e) {
|
|
|
3974
3959
|
))
|
|
3975
3960
|
] }) : null,
|
|
3976
3961
|
/* @__PURE__ */ l(
|
|
3977
|
-
|
|
3962
|
+
Se,
|
|
3978
3963
|
{
|
|
3979
3964
|
nonce: e.nonce,
|
|
3980
3965
|
isNestedRender: e.isNestedRender,
|
|
@@ -4000,13 +3985,13 @@ function Qn(e) {
|
|
|
4000
3985
|
)
|
|
4001
3986
|
] });
|
|
4002
3987
|
}
|
|
4003
|
-
const
|
|
3988
|
+
const Jn = async ({
|
|
4004
3989
|
builderContextValue: e,
|
|
4005
3990
|
symbol: t
|
|
4006
3991
|
}) => {
|
|
4007
3992
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4008
3993
|
(e != null && e.apiKey))
|
|
4009
|
-
return
|
|
3994
|
+
return Ce({
|
|
4010
3995
|
model: t.model,
|
|
4011
3996
|
apiKey: e.apiKey,
|
|
4012
3997
|
apiVersion: e.apiVersion,
|
|
@@ -4016,11 +4001,11 @@ const Xn = async ({
|
|
|
4016
4001
|
}
|
|
4017
4002
|
}
|
|
4018
4003
|
}).catch((n) => {
|
|
4019
|
-
|
|
4004
|
+
ae.error("Could not fetch symbol content: ", n);
|
|
4020
4005
|
});
|
|
4021
4006
|
};
|
|
4022
|
-
function
|
|
4023
|
-
var s, d, c,
|
|
4007
|
+
function Yn(e) {
|
|
4008
|
+
var s, d, c, f;
|
|
4024
4009
|
function t() {
|
|
4025
4010
|
return "div";
|
|
4026
4011
|
}
|
|
@@ -4028,31 +4013,31 @@ function Zn(e) {
|
|
|
4028
4013
|
return "div";
|
|
4029
4014
|
}
|
|
4030
4015
|
function i() {
|
|
4031
|
-
var
|
|
4016
|
+
var b, h;
|
|
4032
4017
|
return [
|
|
4033
|
-
e.attributes[
|
|
4018
|
+
e.attributes[M()],
|
|
4034
4019
|
"builder-symbol",
|
|
4035
|
-
(
|
|
4036
|
-
(
|
|
4020
|
+
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
4021
|
+
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4037
4022
|
].filter(Boolean).join(" ");
|
|
4038
4023
|
}
|
|
4039
4024
|
const [o, a] = T(() => {
|
|
4040
|
-
var
|
|
4041
|
-
return (
|
|
4025
|
+
var b;
|
|
4026
|
+
return (b = e.symbol) == null ? void 0 : b.content;
|
|
4042
4027
|
});
|
|
4043
4028
|
function r() {
|
|
4044
|
-
o ||
|
|
4029
|
+
o || Jn({
|
|
4045
4030
|
symbol: e.symbol,
|
|
4046
4031
|
builderContextValue: e.builderContext
|
|
4047
|
-
}).then((
|
|
4048
|
-
|
|
4032
|
+
}).then((b) => {
|
|
4033
|
+
b && a(b);
|
|
4049
4034
|
});
|
|
4050
4035
|
}
|
|
4051
4036
|
return P(() => {
|
|
4052
4037
|
}, []), P(() => {
|
|
4053
4038
|
r();
|
|
4054
4039
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4055
|
-
|
|
4040
|
+
zn,
|
|
4056
4041
|
{
|
|
4057
4042
|
nonce: e.builderContext.nonce,
|
|
4058
4043
|
isNestedRender: !0,
|
|
@@ -4069,7 +4054,7 @@ function Zn(e) {
|
|
|
4069
4054
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4070
4055
|
},
|
|
4071
4056
|
canTrack: e.builderContext.canTrack,
|
|
4072
|
-
model: (
|
|
4057
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
4073
4058
|
content: o,
|
|
4074
4059
|
linkComponent: e.builderLinkComponent,
|
|
4075
4060
|
blocksWrapper: t(),
|
|
@@ -4078,15 +4063,15 @@ function Zn(e) {
|
|
|
4078
4063
|
) });
|
|
4079
4064
|
}
|
|
4080
4065
|
export {
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4066
|
+
N as Blocks,
|
|
4067
|
+
se as BuilderContext,
|
|
4068
|
+
tt as Button,
|
|
4069
|
+
$t as Columns,
|
|
4070
|
+
zn as Content,
|
|
4071
|
+
Dt as Fragment,
|
|
4072
|
+
Ut as Image,
|
|
4073
|
+
jt as Section,
|
|
4074
|
+
Yn as Symbol,
|
|
4075
|
+
tn as Text,
|
|
4076
|
+
In as Video
|
|
4092
4077
|
};
|