@builder.io/sdk-react 1.0.27 → 1.0.28
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 +29 -29
- package/lib/browser/blocks-exports.mjs +1029 -784
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-60c3f2b2.cjs → server-entry-39389b02.cjs} +1 -1
- package/lib/browser/{server-entry-805a2c2a.js → server-entry-b2b0b732.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-a6b84a1a.cjs +1 -0
- package/lib/edge/accordion-e074c3c9.js +131 -0
- package/lib/edge/{blocks-a1399a78.js → blocks-bdc7647a.js} +198 -198
- package/lib/edge/{blocks-af5c8ecf.cjs → blocks-e4a4eaeb.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-0820a5bc.js → button-01688cf0.js} +2 -2
- package/lib/edge/{button-16076ac7.cjs → button-4bbf8eb4.cjs} +1 -1
- package/lib/edge/{columns-688cc205.js → columns-790f93f0.js} +3 -3
- package/lib/edge/{columns-6b8c03be.cjs → columns-c34d9298.cjs} +1 -1
- package/lib/edge/content-variants-705d1eae.cjs +134 -0
- package/lib/edge/{content-variants-efa4f81b.js → content-variants-843cb1a2.js} +304 -183
- package/lib/edge/{form-91166ed6.cjs → form-41fb03d8.cjs} +1 -1
- package/lib/edge/{form-cbe7d822.js → form-76a1e4e7.js} +3 -3
- package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-6fd942e6.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-7cac71a7.js} +1 -1
- package/lib/edge/{img-14849a5b.js → img-0d46e11b.js} +1 -1
- package/lib/edge/{img-d3420f5d.cjs → img-630ec97f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-534b9f95.js → input-35460b08.js} +1 -1
- package/lib/edge/{input-07becc4d.cjs → input-73e27d61.cjs} +1 -1
- package/lib/edge/{select-b05ef24f.js → select-6cf907d7.js} +1 -1
- package/lib/edge/{select-e576d7d0.cjs → select-a19b35fb.cjs} +1 -1
- package/lib/edge/{server-entry-ee324b22.cjs → server-entry-043747bd.cjs} +1 -1
- package/lib/edge/{server-entry-6aaf6054.js → server-entry-0dd5f119.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-944437dd.js → slot-d4235700.js} +3 -3
- package/lib/edge/{slot-e139f9b4.cjs → slot-e0434389.cjs} +1 -1
- package/lib/edge/{symbol-f7f42446.cjs → symbol-e0e1a334.cjs} +1 -1
- package/lib/edge/{symbol-75d1c60d.js → symbol-e58cb0f1.js} +2 -2
- package/lib/edge/tabs-a92bfa51.cjs +1 -0
- package/lib/edge/{tabs-62e415e1.js → tabs-d5cfc172.js} +20 -20
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +1029 -784
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-e167306c.js → node-runtime-29789d59.js} +1 -1
- package/lib/node/{node-runtime-1bee7133.cjs → node-runtime-ee646b73.cjs} +1 -1
- package/lib/node/{server-entry-38fb2258.js → server-entry-0cd65827.js} +1 -1
- package/lib/node/{server-entry-db936548.cjs → server-entry-1111c8d8.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/blocks/accordion/accordion.d.ts +4 -0
- package/types/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/blocks/accordion/component-info.d.ts +2 -0
- package/types/blocks/accordion/helpers.d.ts +1 -0
- package/types/blocks/accordion/index.d.ts +1 -0
- package/types/components/block/animator.d.ts +0 -1
- package/types/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/camel-to-kebab-case.d.ts +1 -1
- package/lib/edge/content-variants-4679172a.cjs +0 -134
- package/lib/edge/tabs-4860ef6d.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as
|
|
6
|
-
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
var He = Object.defineProperty;
|
|
3
|
+
var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as q, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-0cd65827.js";
|
|
7
|
+
import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-29789d59.js";
|
|
9
|
+
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
|
+
function ue(e) {
|
|
11
|
+
return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
13
|
const H = () => {
|
|
14
14
|
switch (q) {
|
|
@@ -24,7 +24,7 @@ const H = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ot(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function tt(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
ue,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function tt(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = we({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -61,8 +61,8 @@ const ce = Ce({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Ve = we({ registeredComponents: {} });
|
|
65
|
+
function at(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -73,28 +73,28 @@ function nt(e) {
|
|
|
73
73
|
builderBlock: e
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const rt = ({
|
|
77
77
|
code: e,
|
|
78
78
|
builder: t,
|
|
79
79
|
context: n,
|
|
80
80
|
event: i,
|
|
81
81
|
localState: o,
|
|
82
82
|
rootSetState: l,
|
|
83
|
-
rootState:
|
|
83
|
+
rootState: a
|
|
84
84
|
}) => {
|
|
85
|
-
const
|
|
85
|
+
const r = Xe({
|
|
86
86
|
builder: t,
|
|
87
87
|
context: n,
|
|
88
88
|
event: i,
|
|
89
|
-
state:
|
|
90
|
-
rootState:
|
|
89
|
+
state: Pe({
|
|
90
|
+
rootState: a,
|
|
91
91
|
localState: o,
|
|
92
92
|
rootSetState: l
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
|
-
return new Function(...
|
|
95
|
+
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
96
96
|
};
|
|
97
|
-
function
|
|
97
|
+
function Pe({
|
|
98
98
|
rootState: e,
|
|
99
99
|
localState: t,
|
|
100
100
|
rootSetState: n
|
|
@@ -104,11 +104,11 @@ function Ee({
|
|
|
104
104
|
if (t && o in t)
|
|
105
105
|
return t[o];
|
|
106
106
|
const l = i[o];
|
|
107
|
-
return typeof l == "object" && l !== null ?
|
|
107
|
+
return typeof l == "object" && l !== null ? Pe({
|
|
108
108
|
rootState: l,
|
|
109
109
|
localState: void 0,
|
|
110
|
-
rootSetState: n ? (
|
|
111
|
-
i[o] =
|
|
110
|
+
rootSetState: n ? (a) => {
|
|
111
|
+
i[o] = a, n(i);
|
|
112
112
|
} : void 0
|
|
113
113
|
}) : l;
|
|
114
114
|
},
|
|
@@ -119,17 +119,17 @@ function Ee({
|
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function lt() {
|
|
123
123
|
var e;
|
|
124
124
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
126
|
+
const st = () => {
|
|
127
127
|
var i;
|
|
128
|
-
if (!
|
|
128
|
+
if (!lt())
|
|
129
129
|
return !1;
|
|
130
130
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
131
131
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
132
|
-
},
|
|
132
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
|
|
133
133
|
static getCacheKey(t) {
|
|
134
134
|
return JSON.stringify({
|
|
135
135
|
...t,
|
|
@@ -147,7 +147,7 @@ const at = () => {
|
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
};
|
|
150
|
-
|
|
150
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
151
151
|
let U = L;
|
|
152
152
|
function K({
|
|
153
153
|
code: e,
|
|
@@ -156,42 +156,42 @@ function K({
|
|
|
156
156
|
rootState: i,
|
|
157
157
|
rootSetState: o,
|
|
158
158
|
event: l,
|
|
159
|
-
isExpression:
|
|
160
|
-
enableCache:
|
|
159
|
+
isExpression: a = !0,
|
|
160
|
+
enableCache: r
|
|
161
161
|
}) {
|
|
162
162
|
if (e === "")
|
|
163
163
|
return;
|
|
164
164
|
const c = {
|
|
165
|
-
code:
|
|
166
|
-
isExpression:
|
|
165
|
+
code: et(e, {
|
|
166
|
+
isExpression: a
|
|
167
167
|
}),
|
|
168
|
-
builder:
|
|
168
|
+
builder: tt(),
|
|
169
169
|
context: t,
|
|
170
170
|
event: l,
|
|
171
171
|
rootSetState: o,
|
|
172
172
|
rootState: i,
|
|
173
173
|
localState: n
|
|
174
174
|
};
|
|
175
|
-
if (
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
return
|
|
175
|
+
if (r) {
|
|
176
|
+
const u = U.getCacheKey(c), f = U.getCachedValue(u);
|
|
177
|
+
if (f)
|
|
178
|
+
return f.value;
|
|
179
179
|
}
|
|
180
180
|
try {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
U.setCachedValue(
|
|
181
|
+
const u = ct(c);
|
|
182
|
+
if (r) {
|
|
183
|
+
const f = U.getCacheKey(c);
|
|
184
|
+
U.setCachedValue(f, u);
|
|
185
185
|
}
|
|
186
|
-
return
|
|
187
|
-
} catch (
|
|
188
|
-
Z.error("Failed code evaluation: " +
|
|
186
|
+
return u;
|
|
187
|
+
} catch (u) {
|
|
188
|
+
Z.error("Failed code evaluation: " + u.message, {
|
|
189
189
|
code: e
|
|
190
190
|
});
|
|
191
191
|
return;
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const dt = ({
|
|
195
195
|
block: e,
|
|
196
196
|
context: t,
|
|
197
197
|
localState: n,
|
|
@@ -200,7 +200,7 @@ const lt = ({
|
|
|
200
200
|
}) => {
|
|
201
201
|
if (!e.bindings)
|
|
202
202
|
return e;
|
|
203
|
-
const l =
|
|
203
|
+
const l = de(e), a = {
|
|
204
204
|
...l,
|
|
205
205
|
properties: {
|
|
206
206
|
...l.properties
|
|
@@ -209,8 +209,8 @@ const lt = ({
|
|
|
209
209
|
...l.actions
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
|
-
for (const
|
|
213
|
-
const c = e.bindings[
|
|
212
|
+
for (const r in e.bindings) {
|
|
213
|
+
const c = e.bindings[r], u = K({
|
|
214
214
|
code: c,
|
|
215
215
|
localState: n,
|
|
216
216
|
rootState: i,
|
|
@@ -218,9 +218,9 @@ const lt = ({
|
|
|
218
218
|
context: t,
|
|
219
219
|
enableCache: !0
|
|
220
220
|
});
|
|
221
|
-
|
|
221
|
+
Re(a, r, u);
|
|
222
222
|
}
|
|
223
|
-
return
|
|
223
|
+
return a;
|
|
224
224
|
};
|
|
225
225
|
function X({
|
|
226
226
|
block: e,
|
|
@@ -230,28 +230,29 @@ function X({
|
|
|
230
230
|
rootState: o,
|
|
231
231
|
rootSetState: l
|
|
232
232
|
}) {
|
|
233
|
-
const
|
|
234
|
-
return n ?
|
|
235
|
-
block:
|
|
233
|
+
const a = e;
|
|
234
|
+
return n ? dt({
|
|
235
|
+
block: a,
|
|
236
236
|
localState: i,
|
|
237
237
|
rootState: o,
|
|
238
238
|
rootSetState: l,
|
|
239
239
|
context: t
|
|
240
|
-
}) :
|
|
240
|
+
}) : a;
|
|
241
241
|
}
|
|
242
|
-
|
|
243
|
-
|
|
242
|
+
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
243
|
+
function ut(e, t, n = {}) {
|
|
244
|
+
let i, o, l, a = null, r = 0;
|
|
244
245
|
const c = function() {
|
|
245
|
-
|
|
246
|
+
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
246
247
|
};
|
|
247
248
|
return function() {
|
|
248
|
-
const
|
|
249
|
-
!
|
|
250
|
-
const
|
|
251
|
-
return i = this, o = arguments,
|
|
249
|
+
const u = Date.now();
|
|
250
|
+
!r && n.leading === !1 && (r = u);
|
|
251
|
+
const f = t - (u - r);
|
|
252
|
+
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
|
|
252
253
|
};
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function M(e, ...t) {
|
|
255
256
|
const n = Object(e);
|
|
256
257
|
for (let i = 1; i < arguments.length; i++) {
|
|
257
258
|
const o = arguments[i];
|
|
@@ -261,119 +262,118 @@ function O(e, ...t) {
|
|
|
261
262
|
}
|
|
262
263
|
return n;
|
|
263
264
|
}
|
|
264
|
-
|
|
265
|
-
function ct(e) {
|
|
265
|
+
function mt(e) {
|
|
266
266
|
for (const t of e)
|
|
267
267
|
switch (t.trigger) {
|
|
268
268
|
case "pageLoad":
|
|
269
|
-
|
|
269
|
+
Ne(t);
|
|
270
270
|
break;
|
|
271
271
|
case "scrollInView":
|
|
272
|
-
|
|
272
|
+
ht(t);
|
|
273
273
|
break;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Be(e) {
|
|
277
277
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
278
278
|
}
|
|
279
|
-
function
|
|
280
|
-
const n =
|
|
281
|
-
for (const
|
|
279
|
+
function Ae(e, t) {
|
|
280
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
281
|
+
for (const r of a)
|
|
282
282
|
for (const c of n)
|
|
283
|
-
c in
|
|
283
|
+
c in r || (r[c] = i[c]);
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function ft(e) {
|
|
286
286
|
const t = [];
|
|
287
287
|
for (const n of e.steps)
|
|
288
288
|
for (const i in n.styles)
|
|
289
289
|
t.indexOf(i) === -1 && t.push(i);
|
|
290
290
|
return t;
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Ne(e) {
|
|
293
293
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
294
294
|
if (!t.length) {
|
|
295
|
-
|
|
295
|
+
Be(e.elementId || e.id || "");
|
|
296
296
|
return;
|
|
297
297
|
}
|
|
298
298
|
Array.from(t).forEach((n) => {
|
|
299
|
-
|
|
300
|
-
n.style.transition = `all ${e.duration}s ${
|
|
299
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
|
|
300
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(n.style, e.steps[1].styles), setTimeout(() => {
|
|
301
301
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
302
302
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
303
303
|
});
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ht(e) {
|
|
307
307
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
308
308
|
if (!t.length) {
|
|
309
|
-
|
|
309
|
+
Be(e.elementId || e.id || "");
|
|
310
310
|
return;
|
|
311
311
|
}
|
|
312
312
|
Array.from(t).forEach((n) => {
|
|
313
|
-
|
|
313
|
+
Ae(e, n);
|
|
314
314
|
let i = !1, o = !1;
|
|
315
315
|
function l() {
|
|
316
|
-
!i &&
|
|
317
|
-
|
|
316
|
+
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
317
|
+
M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
318
318
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
319
319
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
320
|
-
})) : e.repeat && i && !o && !
|
|
320
|
+
})) : e.repeat && i && !o && !r(n) && (i = !1, M(n.style, e.steps[0].styles));
|
|
321
321
|
}
|
|
322
|
-
const
|
|
322
|
+
const a = ut(l, 200, {
|
|
323
323
|
leading: !1
|
|
324
324
|
});
|
|
325
|
-
function
|
|
326
|
-
const
|
|
327
|
-
return
|
|
325
|
+
function r(f) {
|
|
326
|
+
const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
|
|
327
|
+
return d.bottom > p && d.top < m - p;
|
|
328
328
|
}
|
|
329
329
|
const c = e.steps[0].styles;
|
|
330
|
-
function
|
|
331
|
-
|
|
330
|
+
function u() {
|
|
331
|
+
M(n.style, c);
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
n.style.transition = `all ${e.duration}s ${
|
|
335
|
-
}), document.addEventListener("scroll",
|
|
333
|
+
u(), setTimeout(() => {
|
|
334
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
335
|
+
}), document.addEventListener("scroll", a, {
|
|
336
336
|
capture: !0,
|
|
337
337
|
passive: !0
|
|
338
338
|
}), l();
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
const
|
|
341
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
342
342
|
if (typeof i == "string")
|
|
343
|
-
return `${
|
|
344
|
-
}).filter(Y),
|
|
343
|
+
return `${te(n)}: ${i};`;
|
|
344
|
+
}).filter(Y), gt = (e) => We(e).join(`
|
|
345
345
|
`), z = ({
|
|
346
346
|
mediaQuery: e,
|
|
347
347
|
className: t,
|
|
348
348
|
styles: n
|
|
349
349
|
}) => {
|
|
350
350
|
const i = `.${t} {
|
|
351
|
-
${
|
|
351
|
+
${gt(n)}
|
|
352
352
|
}`;
|
|
353
353
|
return e ? `${e} {
|
|
354
354
|
${i}
|
|
355
355
|
}` : i;
|
|
356
356
|
};
|
|
357
|
-
function
|
|
357
|
+
function bt({
|
|
358
358
|
style: e
|
|
359
359
|
}) {
|
|
360
360
|
return e;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const pt = ({
|
|
363
363
|
block: e,
|
|
364
364
|
context: t
|
|
365
|
-
}) =>
|
|
365
|
+
}) => Fe(bt({
|
|
366
366
|
style: e.style || {},
|
|
367
367
|
context: t,
|
|
368
368
|
block: e
|
|
369
369
|
}));
|
|
370
|
-
function
|
|
370
|
+
function Fe(e) {
|
|
371
371
|
switch (q) {
|
|
372
372
|
case "svelte":
|
|
373
373
|
case "vue":
|
|
374
374
|
case "solid":
|
|
375
375
|
case "angular":
|
|
376
|
-
return
|
|
376
|
+
return We(e).join(" ");
|
|
377
377
|
case "qwik":
|
|
378
378
|
case "reactNative":
|
|
379
379
|
case "react":
|
|
@@ -381,7 +381,7 @@ function Ne(e) {
|
|
|
381
381
|
return e;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
const
|
|
384
|
+
const yt = ({
|
|
385
385
|
block: e,
|
|
386
386
|
context: t,
|
|
387
387
|
registeredComponents: n
|
|
@@ -403,7 +403,7 @@ const bt = ({
|
|
|
403
403
|
console.warn(`
|
|
404
404
|
Could not find a registered component named "${i}".
|
|
405
405
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
406
|
-
},
|
|
406
|
+
}, xt = ({
|
|
407
407
|
block: e,
|
|
408
408
|
context: t
|
|
409
409
|
}) => {
|
|
@@ -423,21 +423,21 @@ const bt = ({
|
|
|
423
423
|
});
|
|
424
424
|
if (!Array.isArray(o))
|
|
425
425
|
return;
|
|
426
|
-
const l = n.collection.split(".").pop(),
|
|
427
|
-
return o.map((c,
|
|
426
|
+
const l = n.collection.split(".").pop(), a = n.itemName || (l ? l + "Item" : "item");
|
|
427
|
+
return o.map((c, u) => ({
|
|
428
428
|
context: {
|
|
429
429
|
...t,
|
|
430
430
|
localState: {
|
|
431
431
|
...t.localState,
|
|
432
|
-
$index:
|
|
432
|
+
$index: u,
|
|
433
433
|
$item: c,
|
|
434
|
-
[
|
|
435
|
-
[`$${
|
|
434
|
+
[a]: c,
|
|
435
|
+
[`$${a}Index`]: u
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
block: i
|
|
439
439
|
}));
|
|
440
|
-
},
|
|
440
|
+
}, St = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), vt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), $e = {
|
|
441
441
|
small: {
|
|
442
442
|
min: 320,
|
|
443
443
|
default: 321,
|
|
@@ -453,11 +453,11 @@ const bt = ({
|
|
|
453
453
|
default: 991,
|
|
454
454
|
max: 1200
|
|
455
455
|
}
|
|
456
|
-
},
|
|
456
|
+
}, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
457
457
|
small: e,
|
|
458
458
|
medium: t
|
|
459
459
|
}) => {
|
|
460
|
-
const n =
|
|
460
|
+
const n = de($e);
|
|
461
461
|
if (!e || !t)
|
|
462
462
|
return n;
|
|
463
463
|
const i = Math.floor(e / 2);
|
|
@@ -480,7 +480,7 @@ const bt = ({
|
|
|
480
480
|
default: l + 1
|
|
481
481
|
}, n;
|
|
482
482
|
};
|
|
483
|
-
function
|
|
483
|
+
function ne(e) {
|
|
484
484
|
return /* @__PURE__ */ s(
|
|
485
485
|
"style",
|
|
486
486
|
{
|
|
@@ -489,7 +489,7 @@ function te(e) {
|
|
|
489
489
|
}
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
|
-
function
|
|
492
|
+
function kt(e) {
|
|
493
493
|
function t() {
|
|
494
494
|
const i = X({
|
|
495
495
|
block: e.block,
|
|
@@ -502,7 +502,7 @@ function St(e) {
|
|
|
502
502
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
503
503
|
}
|
|
504
504
|
function n() {
|
|
505
|
-
var
|
|
505
|
+
var S, R, P;
|
|
506
506
|
const i = X({
|
|
507
507
|
block: e.block,
|
|
508
508
|
localState: e.context.localState,
|
|
@@ -510,56 +510,56 @@ function St(e) {
|
|
|
510
510
|
rootSetState: e.context.rootSetState,
|
|
511
511
|
context: e.context.context,
|
|
512
512
|
shouldEvaluateBindings: !0
|
|
513
|
-
}), o = i.responsiveStyles, l = e.context.content,
|
|
514
|
-
((
|
|
515
|
-
),
|
|
516
|
-
if (!
|
|
513
|
+
}), o = i.responsiveStyles, l = e.context.content, a = De(
|
|
514
|
+
((S = l == null ? void 0 : l.meta) == null ? void 0 : S.breakpoints) || {}
|
|
515
|
+
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
516
|
+
if (!f)
|
|
517
517
|
return "";
|
|
518
|
-
const
|
|
519
|
-
className:
|
|
520
|
-
styles:
|
|
521
|
-
}) : "",
|
|
522
|
-
className:
|
|
518
|
+
const d = r ? z({
|
|
519
|
+
className: f,
|
|
520
|
+
styles: r
|
|
521
|
+
}) : "", m = c ? z({
|
|
522
|
+
className: f,
|
|
523
523
|
styles: c,
|
|
524
|
-
mediaQuery:
|
|
524
|
+
mediaQuery: pe(
|
|
525
525
|
"medium",
|
|
526
|
-
|
|
526
|
+
a
|
|
527
527
|
)
|
|
528
|
-
}) : "",
|
|
529
|
-
className:
|
|
530
|
-
styles:
|
|
531
|
-
mediaQuery:
|
|
528
|
+
}) : "", g = u ? z({
|
|
529
|
+
className: f,
|
|
530
|
+
styles: u,
|
|
531
|
+
mediaQuery: pe(
|
|
532
532
|
"small",
|
|
533
|
-
|
|
533
|
+
a
|
|
534
534
|
)
|
|
535
|
-
}) : "",
|
|
535
|
+
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
536
536
|
let I = "";
|
|
537
|
-
if (
|
|
538
|
-
const
|
|
537
|
+
if (p) {
|
|
538
|
+
const A = ((P = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : P.styles) || {};
|
|
539
539
|
I = z({
|
|
540
|
-
className: `${
|
|
540
|
+
className: `${f}:hover`,
|
|
541
541
|
styles: {
|
|
542
|
-
...
|
|
543
|
-
transition: `all ${
|
|
544
|
-
|
|
542
|
+
...A,
|
|
543
|
+
transition: `all ${p.duration}s ${te(
|
|
544
|
+
p.easing
|
|
545
545
|
)}`,
|
|
546
|
-
transitionDelay:
|
|
546
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
547
547
|
}
|
|
548
548
|
}) || "";
|
|
549
549
|
}
|
|
550
550
|
return [
|
|
551
|
-
|
|
551
|
+
d,
|
|
552
|
+
m,
|
|
552
553
|
g,
|
|
553
|
-
p,
|
|
554
554
|
I
|
|
555
555
|
].join(" ");
|
|
556
556
|
}
|
|
557
|
-
return /* @__PURE__ */ s(
|
|
557
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Ct(e) {
|
|
560
560
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => K({
|
|
563
563
|
code: e,
|
|
564
564
|
context: t.context,
|
|
565
565
|
localState: t.localState,
|
|
@@ -569,66 +569,66 @@ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => K({
|
|
|
569
569
|
isExpression: !1,
|
|
570
570
|
enableCache: !0
|
|
571
571
|
});
|
|
572
|
-
function
|
|
572
|
+
function Le(e) {
|
|
573
573
|
var i;
|
|
574
574
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
575
575
|
for (const o in n) {
|
|
576
576
|
if (!n.hasOwnProperty(o))
|
|
577
577
|
continue;
|
|
578
578
|
const l = n[o];
|
|
579
|
-
let
|
|
579
|
+
let a = Tt(o);
|
|
580
580
|
if (e.stripPrefix)
|
|
581
581
|
switch (q) {
|
|
582
582
|
case "vue":
|
|
583
|
-
|
|
583
|
+
a = a.replace("v-on:", "");
|
|
584
584
|
break;
|
|
585
585
|
case "svelte":
|
|
586
|
-
|
|
586
|
+
a = a.replace("on:", "");
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
|
-
t[
|
|
589
|
+
t[a] = It(l, e);
|
|
590
590
|
}
|
|
591
591
|
return t;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function wt({
|
|
594
594
|
properties: e
|
|
595
595
|
}) {
|
|
596
596
|
return e;
|
|
597
597
|
}
|
|
598
|
-
const
|
|
598
|
+
const Et = (e) => ({
|
|
599
599
|
href: e.href
|
|
600
600
|
});
|
|
601
|
-
function
|
|
601
|
+
function fe({
|
|
602
602
|
block: e,
|
|
603
603
|
context: t
|
|
604
604
|
}) {
|
|
605
605
|
var i;
|
|
606
606
|
const n = {
|
|
607
|
-
...
|
|
607
|
+
...Et(e),
|
|
608
608
|
...e.properties,
|
|
609
609
|
"builder-id": e.id,
|
|
610
|
-
style:
|
|
610
|
+
style: pt({
|
|
611
611
|
block: e,
|
|
612
612
|
context: t
|
|
613
613
|
}),
|
|
614
614
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
615
615
|
};
|
|
616
|
-
return
|
|
616
|
+
return wt({
|
|
617
617
|
properties: n,
|
|
618
618
|
context: t,
|
|
619
619
|
block: e
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Rt(e) {
|
|
623
623
|
return /* @__PURE__ */ s(
|
|
624
|
-
|
|
624
|
+
ue,
|
|
625
625
|
{
|
|
626
626
|
TagName: e.Wrapper,
|
|
627
|
-
attributes:
|
|
627
|
+
attributes: fe({
|
|
628
628
|
block: e.block,
|
|
629
629
|
context: e.context
|
|
630
630
|
}),
|
|
631
|
-
actionAttributes:
|
|
631
|
+
actionAttributes: Le({
|
|
632
632
|
block: e.block,
|
|
633
633
|
rootState: e.context.rootState,
|
|
634
634
|
rootSetState: e.context.rootSetState,
|
|
@@ -640,14 +640,14 @@ function It(e) {
|
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function Vt(e) {
|
|
644
644
|
function t() {
|
|
645
645
|
return e.includeBlockProps ? {
|
|
646
|
-
...
|
|
646
|
+
...fe({
|
|
647
647
|
block: e.block,
|
|
648
648
|
context: e.context
|
|
649
649
|
}),
|
|
650
|
-
|
|
650
|
+
...Le({
|
|
651
651
|
block: e.block,
|
|
652
652
|
rootState: e.context.rootState,
|
|
653
653
|
rootSetState: e.context.rootSetState,
|
|
@@ -658,25 +658,25 @@ function Et(e) {
|
|
|
658
658
|
}
|
|
659
659
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
660
660
|
}
|
|
661
|
-
const
|
|
661
|
+
const Pt = ({
|
|
662
662
|
componentOptions: e,
|
|
663
663
|
builderBlock: t,
|
|
664
664
|
context: n,
|
|
665
665
|
componentRef: i,
|
|
666
666
|
includeBlockProps: o,
|
|
667
667
|
isInteractive: l,
|
|
668
|
-
contextValue:
|
|
668
|
+
contextValue: a
|
|
669
669
|
}) => {
|
|
670
|
-
const
|
|
670
|
+
const r = {
|
|
671
671
|
...e,
|
|
672
672
|
/**
|
|
673
673
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
674
674
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
675
675
|
*/
|
|
676
676
|
...o ? {
|
|
677
|
-
attributes:
|
|
677
|
+
attributes: fe({
|
|
678
678
|
block: t,
|
|
679
|
-
context:
|
|
679
|
+
context: a
|
|
680
680
|
})
|
|
681
681
|
} : {}
|
|
682
682
|
};
|
|
@@ -686,17 +686,17 @@ const Rt = ({
|
|
|
686
686
|
context: n,
|
|
687
687
|
wrapperProps: e,
|
|
688
688
|
includeBlockProps: o
|
|
689
|
-
} :
|
|
689
|
+
} : r;
|
|
690
690
|
};
|
|
691
|
-
function
|
|
691
|
+
function ye(e) {
|
|
692
692
|
var i;
|
|
693
693
|
const [t, n] = C(
|
|
694
|
-
() => e.isInteractive ?
|
|
694
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
695
695
|
);
|
|
696
|
-
return /* @__PURE__ */ s(
|
|
696
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
697
697
|
t,
|
|
698
698
|
{
|
|
699
|
-
...
|
|
699
|
+
...Pt({
|
|
700
700
|
componentOptions: e.componentOptions,
|
|
701
701
|
builderBlock: e.builderBlock,
|
|
702
702
|
context: e.context,
|
|
@@ -719,9 +719,9 @@ function be(e) {
|
|
|
719
719
|
}
|
|
720
720
|
) }) : null });
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Bt(e) {
|
|
723
723
|
const [t, n] = C(() => e.repeatContext);
|
|
724
|
-
return /* @__PURE__ */ s(
|
|
724
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
725
725
|
_,
|
|
726
726
|
{
|
|
727
727
|
block: e.block,
|
|
@@ -732,23 +732,23 @@ function Pt(e) {
|
|
|
732
732
|
) });
|
|
733
733
|
}
|
|
734
734
|
function _(e) {
|
|
735
|
-
var c,
|
|
735
|
+
var c, u, f;
|
|
736
736
|
function t() {
|
|
737
|
-
return
|
|
737
|
+
return yt({
|
|
738
738
|
block: e.block,
|
|
739
739
|
context: e.context,
|
|
740
740
|
registeredComponents: e.registeredComponents
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
743
|
function n() {
|
|
744
|
-
return
|
|
744
|
+
return xt({
|
|
745
745
|
block: e.block,
|
|
746
746
|
context: e.context
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
749
|
function i() {
|
|
750
|
-
var
|
|
751
|
-
return (
|
|
750
|
+
var d;
|
|
751
|
+
return (d = e.block.repeat) != null && d.collection ? e.block : X({
|
|
752
752
|
block: e.block,
|
|
753
753
|
localState: e.context.localState,
|
|
754
754
|
rootState: e.context.rootState,
|
|
@@ -758,32 +758,32 @@ function _(e) {
|
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
function o() {
|
|
761
|
-
var
|
|
762
|
-
return e.block.tagName === "a" || ((
|
|
761
|
+
var m;
|
|
762
|
+
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
763
763
|
}
|
|
764
764
|
function l() {
|
|
765
|
-
var p, S;
|
|
766
|
-
if ((p = e.block.repeat) != null && p.collection)
|
|
767
|
-
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
768
|
-
const u = "hide" in i() ? i().hide : !1;
|
|
769
|
-
return ("show" in i() ? i().show : !0) && !u;
|
|
770
|
-
}
|
|
771
|
-
function r() {
|
|
772
765
|
var g, p;
|
|
773
|
-
|
|
766
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
767
|
+
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
768
|
+
const d = "hide" in i() ? i().hide : !1;
|
|
769
|
+
return ("show" in i() ? i().show : !0) && !d;
|
|
774
770
|
}
|
|
775
771
|
function a() {
|
|
776
|
-
var
|
|
772
|
+
var m, g;
|
|
773
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
774
|
+
}
|
|
775
|
+
function r() {
|
|
776
|
+
var d, m, g, p;
|
|
777
777
|
return {
|
|
778
|
-
blockChildren: (
|
|
779
|
-
componentRef: (
|
|
778
|
+
blockChildren: (d = i().children) != null ? d : [],
|
|
779
|
+
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
780
780
|
componentOptions: {
|
|
781
|
-
...
|
|
781
|
+
...at(i()),
|
|
782
782
|
builderContext: e.context,
|
|
783
|
-
...
|
|
783
|
+
...St(t()) ? {
|
|
784
784
|
builderLinkComponent: e.linkComponent
|
|
785
785
|
} : {},
|
|
786
|
-
...
|
|
786
|
+
...vt(t()) ? {
|
|
787
787
|
builderComponents: e.registeredComponents
|
|
788
788
|
} : {}
|
|
789
789
|
},
|
|
@@ -791,44 +791,44 @@ function _(e) {
|
|
|
791
791
|
linkComponent: e.linkComponent,
|
|
792
792
|
registeredComponents: e.registeredComponents,
|
|
793
793
|
builderBlock: i(),
|
|
794
|
-
includeBlockProps: ((
|
|
795
|
-
isInteractive: !((
|
|
794
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
795
|
+
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
|
-
return
|
|
799
|
-
const
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
...
|
|
803
|
-
elementId:
|
|
798
|
+
return B(() => {
|
|
799
|
+
const d = i().id, m = i().animations;
|
|
800
|
+
m && d && mt(
|
|
801
|
+
m.map((g) => ({
|
|
802
|
+
...g,
|
|
803
|
+
elementId: d
|
|
804
804
|
}))
|
|
805
805
|
);
|
|
806
|
-
}, []), /* @__PURE__ */ s(
|
|
807
|
-
/* @__PURE__ */ s(
|
|
808
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
809
|
-
|
|
806
|
+
}, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ V(E, { children: [
|
|
807
|
+
/* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
|
|
808
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
809
|
+
ye,
|
|
810
810
|
{
|
|
811
|
-
componentRef:
|
|
812
|
-
componentOptions:
|
|
813
|
-
blockChildren:
|
|
814
|
-
context:
|
|
815
|
-
registeredComponents:
|
|
816
|
-
linkComponent:
|
|
817
|
-
builderBlock:
|
|
818
|
-
includeBlockProps:
|
|
819
|
-
isInteractive:
|
|
811
|
+
componentRef: r().componentRef,
|
|
812
|
+
componentOptions: r().componentOptions,
|
|
813
|
+
blockChildren: r().blockChildren,
|
|
814
|
+
context: r().context,
|
|
815
|
+
registeredComponents: r().registeredComponents,
|
|
816
|
+
linkComponent: r().linkComponent,
|
|
817
|
+
builderBlock: r().builderBlock,
|
|
818
|
+
includeBlockProps: r().includeBlockProps,
|
|
819
|
+
isInteractive: r().isInteractive
|
|
820
820
|
}
|
|
821
|
-
) }) : /* @__PURE__ */ s(
|
|
822
|
-
|
|
821
|
+
) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
822
|
+
Bt,
|
|
823
823
|
{
|
|
824
|
-
repeatContext:
|
|
825
|
-
block:
|
|
824
|
+
repeatContext: d.context,
|
|
825
|
+
block: d.block,
|
|
826
826
|
registeredComponents: e.registeredComponents,
|
|
827
827
|
linkComponent: e.linkComponent
|
|
828
828
|
},
|
|
829
|
-
|
|
829
|
+
m
|
|
830
830
|
)) }) : /* @__PURE__ */ V(
|
|
831
|
-
|
|
831
|
+
Rt,
|
|
832
832
|
{
|
|
833
833
|
Wrapper: o(),
|
|
834
834
|
block: i(),
|
|
@@ -836,42 +836,42 @@ function _(e) {
|
|
|
836
836
|
linkComponent: e.linkComponent,
|
|
837
837
|
children: [
|
|
838
838
|
/* @__PURE__ */ s(
|
|
839
|
-
|
|
839
|
+
ye,
|
|
840
840
|
{
|
|
841
|
-
componentRef:
|
|
842
|
-
componentOptions:
|
|
843
|
-
blockChildren:
|
|
844
|
-
context:
|
|
845
|
-
registeredComponents:
|
|
846
|
-
linkComponent:
|
|
847
|
-
builderBlock:
|
|
848
|
-
includeBlockProps:
|
|
849
|
-
isInteractive:
|
|
841
|
+
componentRef: r().componentRef,
|
|
842
|
+
componentOptions: r().componentOptions,
|
|
843
|
+
blockChildren: r().blockChildren,
|
|
844
|
+
context: r().context,
|
|
845
|
+
registeredComponents: r().registeredComponents,
|
|
846
|
+
linkComponent: r().linkComponent,
|
|
847
|
+
builderBlock: r().builderBlock,
|
|
848
|
+
includeBlockProps: r().includeBlockProps,
|
|
849
|
+
isInteractive: r().isInteractive
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
|
-
(
|
|
852
|
+
(u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
|
|
853
853
|
_,
|
|
854
854
|
{
|
|
855
|
-
block:
|
|
855
|
+
block: d,
|
|
856
856
|
registeredComponents: e.registeredComponents,
|
|
857
857
|
linkComponent: e.linkComponent,
|
|
858
858
|
context: e.context
|
|
859
859
|
},
|
|
860
|
-
|
|
860
|
+
d.id
|
|
861
861
|
))
|
|
862
862
|
]
|
|
863
863
|
}
|
|
864
864
|
) })
|
|
865
865
|
] }) : null });
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function At(e) {
|
|
868
868
|
function t() {
|
|
869
869
|
var o;
|
|
870
870
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
871
871
|
}
|
|
872
872
|
function n() {
|
|
873
873
|
var o, l;
|
|
874
|
-
|
|
874
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
875
875
|
{
|
|
876
876
|
type: "builder.clickEmptyBlocks",
|
|
877
877
|
data: {
|
|
@@ -884,7 +884,7 @@ function Vt(e) {
|
|
|
884
884
|
}
|
|
885
885
|
function i() {
|
|
886
886
|
var o, l;
|
|
887
|
-
|
|
887
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
888
888
|
{
|
|
889
889
|
type: "builder.hoverEmptyBlocks",
|
|
890
890
|
data: {
|
|
@@ -895,7 +895,7 @@ function Vt(e) {
|
|
|
895
895
|
"*"
|
|
896
896
|
));
|
|
897
897
|
}
|
|
898
|
-
return /* @__PURE__ */ V(
|
|
898
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
899
899
|
/* @__PURE__ */ s(
|
|
900
900
|
e.BlocksWrapper,
|
|
901
901
|
{
|
|
@@ -917,11 +917,11 @@ function Vt(e) {
|
|
|
917
917
|
}` })
|
|
918
918
|
] });
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function D(e) {
|
|
921
921
|
var i, o, l;
|
|
922
|
-
const t =
|
|
922
|
+
const t = be(me), n = be(Ve);
|
|
923
923
|
return /* @__PURE__ */ s(
|
|
924
|
-
|
|
924
|
+
At,
|
|
925
925
|
{
|
|
926
926
|
blocks: e.blocks,
|
|
927
927
|
parent: e.parent,
|
|
@@ -929,99 +929,99 @@ function j(e) {
|
|
|
929
929
|
styleProp: e.styleProp,
|
|
930
930
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
931
931
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
932
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
932
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
|
|
933
933
|
_,
|
|
934
934
|
{
|
|
935
|
-
block:
|
|
935
|
+
block: a,
|
|
936
936
|
linkComponent: e.linkComponent,
|
|
937
937
|
context: e.context || t,
|
|
938
938
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
939
939
|
},
|
|
940
|
-
|
|
940
|
+
a.id
|
|
941
941
|
)) }) : null
|
|
942
942
|
}
|
|
943
943
|
);
|
|
944
944
|
}
|
|
945
|
-
const
|
|
946
|
-
function
|
|
947
|
-
var
|
|
945
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
946
|
+
function Wt(e) {
|
|
947
|
+
var A, O;
|
|
948
948
|
const [t, n] = C(
|
|
949
949
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
950
|
-
), [i, o] = C(() => e.columns || []), [l,
|
|
950
|
+
), [i, o] = C(() => e.columns || []), [l, a] = C(
|
|
951
951
|
() => e.stackColumnsAt || "tablet"
|
|
952
952
|
);
|
|
953
|
-
function
|
|
954
|
-
return
|
|
953
|
+
function r(v) {
|
|
954
|
+
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
955
955
|
}
|
|
956
|
-
function c(
|
|
957
|
-
var
|
|
958
|
-
return ((
|
|
956
|
+
function c(v) {
|
|
957
|
+
var w;
|
|
958
|
+
return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
961
|
-
const
|
|
962
|
-
return `calc(${c(
|
|
960
|
+
function u(v) {
|
|
961
|
+
const w = t * (i.length - 1) / i.length;
|
|
962
|
+
return `calc(${c(v)}% - ${w}px)`;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
stackedStyle:
|
|
966
|
-
desktopStyle:
|
|
964
|
+
function f({
|
|
965
|
+
stackedStyle: v,
|
|
966
|
+
desktopStyle: w
|
|
967
967
|
}) {
|
|
968
|
-
return l === "tablet" ?
|
|
968
|
+
return l === "tablet" ? v : w;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
971
|
-
stackedStyle:
|
|
972
|
-
desktopStyle:
|
|
970
|
+
function d({
|
|
971
|
+
stackedStyle: v,
|
|
972
|
+
desktopStyle: w
|
|
973
973
|
}) {
|
|
974
|
-
return l === "never" ?
|
|
974
|
+
return l === "never" ? w : v;
|
|
975
975
|
}
|
|
976
|
-
const [
|
|
976
|
+
const [m, g] = C(
|
|
977
977
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
978
978
|
);
|
|
979
|
-
function
|
|
979
|
+
function p() {
|
|
980
980
|
return {
|
|
981
|
-
"--flex-dir":
|
|
982
|
-
"--flex-dir-tablet":
|
|
983
|
-
stackedStyle:
|
|
981
|
+
"--flex-dir": m,
|
|
982
|
+
"--flex-dir-tablet": f({
|
|
983
|
+
stackedStyle: m,
|
|
984
984
|
desktopStyle: "row"
|
|
985
985
|
})
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
|
-
function I(
|
|
989
|
-
const
|
|
988
|
+
function I(v) {
|
|
989
|
+
const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
|
|
990
990
|
return {
|
|
991
991
|
...{
|
|
992
992
|
display: "flex",
|
|
993
993
|
flexDirection: "column",
|
|
994
994
|
alignItems: "stretch"
|
|
995
995
|
},
|
|
996
|
-
width:
|
|
997
|
-
["marginLeft"]:
|
|
998
|
-
"--column-width-mobile":
|
|
999
|
-
stackedStyle:
|
|
1000
|
-
desktopStyle:
|
|
996
|
+
width: W,
|
|
997
|
+
["marginLeft"]: b,
|
|
998
|
+
"--column-width-mobile": d({
|
|
999
|
+
stackedStyle: h,
|
|
1000
|
+
desktopStyle: W
|
|
1001
1001
|
}),
|
|
1002
|
-
"--column-margin-left-mobile":
|
|
1003
|
-
stackedStyle:
|
|
1004
|
-
desktopStyle:
|
|
1002
|
+
"--column-margin-left-mobile": d({
|
|
1003
|
+
stackedStyle: y,
|
|
1004
|
+
desktopStyle: b
|
|
1005
1005
|
}),
|
|
1006
|
-
"--column-width-tablet":
|
|
1007
|
-
stackedStyle:
|
|
1008
|
-
desktopStyle:
|
|
1006
|
+
"--column-width-tablet": f({
|
|
1007
|
+
stackedStyle: h,
|
|
1008
|
+
desktopStyle: W
|
|
1009
1009
|
}),
|
|
1010
|
-
"--column-margin-left-tablet":
|
|
1011
|
-
stackedStyle:
|
|
1012
|
-
desktopStyle:
|
|
1010
|
+
"--column-margin-left-tablet": f({
|
|
1011
|
+
stackedStyle: y,
|
|
1012
|
+
desktopStyle: b
|
|
1013
1013
|
})
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var
|
|
1018
|
-
return
|
|
1019
|
-
((
|
|
1020
|
-
)[
|
|
1016
|
+
function S(v) {
|
|
1017
|
+
var W, b;
|
|
1018
|
+
return De(
|
|
1019
|
+
((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1020
|
+
)[v].max;
|
|
1021
1021
|
}
|
|
1022
1022
|
function R() {
|
|
1023
1023
|
return `
|
|
1024
|
-
@media (max-width: ${
|
|
1024
|
+
@media (max-width: ${S("medium")}px) {
|
|
1025
1025
|
.${e.builderBlock.id}-breakpoints {
|
|
1026
1026
|
flex-direction: var(--flex-dir-tablet);
|
|
1027
1027
|
align-items: stretch;
|
|
@@ -1033,7 +1033,7 @@ function Nt(e) {
|
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
-
@media (max-width: ${
|
|
1036
|
+
@media (max-width: ${S("small")}px) {
|
|
1037
1037
|
.${e.builderBlock.id}-breakpoints {
|
|
1038
1038
|
flex-direction: var(--flex-dir);
|
|
1039
1039
|
align-items: stretch;
|
|
@@ -1046,33 +1046,33 @@ function Nt(e) {
|
|
|
1046
1046
|
},
|
|
1047
1047
|
`;
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function P(v, w) {
|
|
1050
1050
|
return {
|
|
1051
|
-
...
|
|
1052
|
-
href:
|
|
1051
|
+
...v.link ? {
|
|
1052
|
+
href: v.link
|
|
1053
1053
|
} : {},
|
|
1054
1054
|
[H()]: "builder-column",
|
|
1055
|
-
style:
|
|
1055
|
+
style: Fe(I(w))
|
|
1056
1056
|
};
|
|
1057
1057
|
}
|
|
1058
|
-
return /* @__PURE__ */ V(
|
|
1058
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1059
1059
|
/* @__PURE__ */ V(
|
|
1060
1060
|
"div",
|
|
1061
1061
|
{
|
|
1062
|
-
className:
|
|
1063
|
-
style:
|
|
1062
|
+
className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-00cb97e2",
|
|
1063
|
+
style: p(),
|
|
1064
1064
|
children: [
|
|
1065
|
-
/* @__PURE__ */ s(
|
|
1066
|
-
(
|
|
1067
|
-
|
|
1065
|
+
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
|
|
1066
|
+
(O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
|
|
1067
|
+
ue,
|
|
1068
1068
|
{
|
|
1069
|
-
TagName:
|
|
1069
|
+
TagName: r(v),
|
|
1070
1070
|
actionAttributes: {},
|
|
1071
|
-
attributes:
|
|
1071
|
+
attributes: P(v, w),
|
|
1072
1072
|
children: /* @__PURE__ */ s(
|
|
1073
|
-
|
|
1073
|
+
D,
|
|
1074
1074
|
{
|
|
1075
|
-
path: `component.options.columns.${
|
|
1075
|
+
path: `component.options.columns.${w}.blocks`,
|
|
1076
1076
|
parent: e.builderBlock.id,
|
|
1077
1077
|
styleProp: {
|
|
1078
1078
|
flexGrow: "1"
|
|
@@ -1080,11 +1080,11 @@ function Nt(e) {
|
|
|
1080
1080
|
context: e.builderContext,
|
|
1081
1081
|
registeredComponents: e.builderComponents,
|
|
1082
1082
|
linkComponent: e.builderLinkComponent,
|
|
1083
|
-
blocks:
|
|
1083
|
+
blocks: v.blocks
|
|
1084
1084
|
}
|
|
1085
1085
|
)
|
|
1086
1086
|
},
|
|
1087
|
-
|
|
1087
|
+
w
|
|
1088
1088
|
))
|
|
1089
1089
|
]
|
|
1090
1090
|
}
|
|
@@ -1095,71 +1095,71 @@ function Nt(e) {
|
|
|
1095
1095
|
}` })
|
|
1096
1096
|
] });
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Ft(e) {
|
|
1099
1099
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function xe(e) {
|
|
1102
1102
|
return e.replace(/http(s)?:/, "");
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function $t(e = "", t, n) {
|
|
1105
1105
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1106
1106
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function Dt(e, t) {
|
|
1109
1109
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1110
1110
|
return e;
|
|
1111
1111
|
if (t === "master")
|
|
1112
|
-
return
|
|
1112
|
+
return xe(e);
|
|
1113
1113
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1114
1114
|
if (n) {
|
|
1115
1115
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1116
|
-
return
|
|
1116
|
+
return xe(`${i[0]}_${l}${o}`);
|
|
1117
1117
|
}
|
|
1118
1118
|
return null;
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function oe(e) {
|
|
1121
1121
|
if (!e)
|
|
1122
1122
|
return e;
|
|
1123
1123
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1124
1124
|
if (e.match(/builder\.io/)) {
|
|
1125
1125
|
let n = e;
|
|
1126
1126
|
const i = Number(e.split("?width=")[1]);
|
|
1127
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1127
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1128
1128
|
}
|
|
1129
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1129
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1132
|
-
var o, l,
|
|
1131
|
+
function Lt(e) {
|
|
1132
|
+
var o, l, a, r, c, u;
|
|
1133
1133
|
function t() {
|
|
1134
|
-
var
|
|
1135
|
-
const
|
|
1136
|
-
if (!
|
|
1134
|
+
var m;
|
|
1135
|
+
const d = e.image || e.src;
|
|
1136
|
+
if (!d || // We can auto add srcset for cdn.builder.io and shopify
|
|
1137
1137
|
// images, otherwise you can supply this prop manually
|
|
1138
|
-
!(
|
|
1138
|
+
!(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
|
|
1139
1139
|
return e.srcset;
|
|
1140
|
-
if (e.srcset && ((
|
|
1140
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1141
1141
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1142
|
-
return console.debug("Removed given srcset"),
|
|
1142
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1143
1143
|
} else if (e.image && !e.srcset)
|
|
1144
|
-
return
|
|
1145
|
-
return
|
|
1144
|
+
return oe(d);
|
|
1145
|
+
return oe(d);
|
|
1146
1146
|
}
|
|
1147
1147
|
function n() {
|
|
1148
|
-
var
|
|
1149
|
-
return (
|
|
1148
|
+
var f;
|
|
1149
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1150
1150
|
}
|
|
1151
1151
|
function i() {
|
|
1152
|
-
const
|
|
1152
|
+
const f = {
|
|
1153
1153
|
position: "absolute",
|
|
1154
1154
|
height: "100%",
|
|
1155
1155
|
width: "100%",
|
|
1156
1156
|
left: "0px",
|
|
1157
1157
|
top: "0px"
|
|
1158
1158
|
};
|
|
1159
|
-
return e.aspectRatio ?
|
|
1159
|
+
return e.aspectRatio ? f : void 0;
|
|
1160
1160
|
}
|
|
1161
|
-
return /* @__PURE__ */ V(
|
|
1162
|
-
/* @__PURE__ */ V(
|
|
1161
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1162
|
+
/* @__PURE__ */ V(E, { children: [
|
|
1163
1163
|
/* @__PURE__ */ V("picture", { children: [
|
|
1164
1164
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1165
1165
|
/* @__PURE__ */ s(
|
|
@@ -1189,8 +1189,8 @@ function Ft(e) {
|
|
|
1189
1189
|
}
|
|
1190
1190
|
}
|
|
1191
1191
|
) : null,
|
|
1192
|
-
(
|
|
1193
|
-
!e.fitContent && ((
|
|
1192
|
+
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1193
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1194
1194
|
] }),
|
|
1195
1195
|
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
1196
1196
|
opacity: 1;
|
|
@@ -1211,7 +1211,7 @@ function Ft(e) {
|
|
|
1211
1211
|
}` })
|
|
1212
1212
|
] });
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Ot(e) {
|
|
1215
1215
|
return /* @__PURE__ */ s(
|
|
1216
1216
|
"section",
|
|
1217
1217
|
{
|
|
@@ -1232,7 +1232,7 @@ function Lt(e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1235
|
+
const jt = {
|
|
1236
1236
|
name: "Core:Button",
|
|
1237
1237
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1238
1238
|
defaultStyles: {
|
|
@@ -1265,7 +1265,7 @@ const Dt = {
|
|
|
1265
1265
|
}],
|
|
1266
1266
|
static: !0,
|
|
1267
1267
|
noWrap: !0
|
|
1268
|
-
},
|
|
1268
|
+
}, Ut = {
|
|
1269
1269
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1270
1270
|
name: "Columns",
|
|
1271
1271
|
isRSC: !0,
|
|
@@ -1444,7 +1444,7 @@ const Dt = {
|
|
|
1444
1444
|
});
|
|
1445
1445
|
}
|
|
1446
1446
|
const n = e.get("columns");
|
|
1447
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((
|
|
1447
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((r, c) => r + c.get("width"), 0) !== 100) && t();
|
|
1448
1448
|
}
|
|
1449
1449
|
}, {
|
|
1450
1450
|
name: "space",
|
|
@@ -1472,7 +1472,7 @@ const Dt = {
|
|
|
1472
1472
|
hidden: !0,
|
|
1473
1473
|
canHaveChildren: !0,
|
|
1474
1474
|
noWrap: !0
|
|
1475
|
-
},
|
|
1475
|
+
}, Ht = {
|
|
1476
1476
|
name: "Image",
|
|
1477
1477
|
static: !0,
|
|
1478
1478
|
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",
|
|
@@ -1492,29 +1492,29 @@ const Dt = {
|
|
|
1492
1492
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1493
1493
|
onChange: (e) => {
|
|
1494
1494
|
e.delete("srcset"), e.delete("noWebp");
|
|
1495
|
-
function n(
|
|
1496
|
-
return new Promise((c,
|
|
1497
|
-
const
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
},
|
|
1502
|
-
console.warn("Image load failed",
|
|
1503
|
-
}),
|
|
1504
|
-
|
|
1505
|
-
},
|
|
1495
|
+
function n(a, r = 6e4) {
|
|
1496
|
+
return new Promise((c, u) => {
|
|
1497
|
+
const f = document.createElement("img");
|
|
1498
|
+
let d = !1;
|
|
1499
|
+
f.onload = () => {
|
|
1500
|
+
d = !0, c(f);
|
|
1501
|
+
}, f.addEventListener("error", (m) => {
|
|
1502
|
+
console.warn("Image load failed", m.error), u(m.error);
|
|
1503
|
+
}), f.src = a, setTimeout(() => {
|
|
1504
|
+
d || u(new Error("Image load timed out"));
|
|
1505
|
+
}, r);
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
|
-
function i(
|
|
1509
|
-
return Math.round(
|
|
1508
|
+
function i(a) {
|
|
1509
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1510
1510
|
}
|
|
1511
1511
|
const o = e.get("image"), l = e.get("aspectRatio");
|
|
1512
|
-
if (fetch(o).then((
|
|
1513
|
-
|
|
1512
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1513
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1514
1514
|
}), o && (!l || l === 0.7041))
|
|
1515
|
-
return n(o).then((
|
|
1516
|
-
const
|
|
1517
|
-
e.get("image") === o && (!
|
|
1515
|
+
return n(o).then((a) => {
|
|
1516
|
+
const r = e.get("aspectRatio");
|
|
1517
|
+
e.get("image") === o && (!r || r === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1518
1518
|
});
|
|
1519
1519
|
}
|
|
1520
1520
|
}, {
|
|
@@ -1572,7 +1572,7 @@ const Dt = {
|
|
|
1572
1572
|
advanced: !0,
|
|
1573
1573
|
defaultValue: 0.7041
|
|
1574
1574
|
}]
|
|
1575
|
-
},
|
|
1575
|
+
}, Kt = {
|
|
1576
1576
|
name: "Core:Section",
|
|
1577
1577
|
static: !0,
|
|
1578
1578
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1611,7 +1611,7 @@ const Dt = {
|
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
1613
|
}]
|
|
1614
|
-
},
|
|
1614
|
+
}, qt = {
|
|
1615
1615
|
name: "Slot",
|
|
1616
1616
|
isRSC: !0,
|
|
1617
1617
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1625,7 +1625,7 @@ const Dt = {
|
|
|
1625
1625
|
defaultValue: "children"
|
|
1626
1626
|
}]
|
|
1627
1627
|
};
|
|
1628
|
-
function
|
|
1628
|
+
function _t(e) {
|
|
1629
1629
|
var t, n, i;
|
|
1630
1630
|
return /* @__PURE__ */ s(
|
|
1631
1631
|
"div",
|
|
@@ -1637,7 +1637,7 @@ function Kt(e) {
|
|
|
1637
1637
|
"builder-slot": e.name
|
|
1638
1638
|
},
|
|
1639
1639
|
children: /* @__PURE__ */ s(
|
|
1640
|
-
|
|
1640
|
+
D,
|
|
1641
1641
|
{
|
|
1642
1642
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1643
1643
|
path: `symbol.data.${e.name}`,
|
|
@@ -1648,7 +1648,7 @@ function Kt(e) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
);
|
|
1650
1650
|
}
|
|
1651
|
-
const
|
|
1651
|
+
const zt = {
|
|
1652
1652
|
name: "Symbol",
|
|
1653
1653
|
noWrap: !0,
|
|
1654
1654
|
static: !0,
|
|
@@ -1681,7 +1681,7 @@ const qt = {
|
|
|
1681
1681
|
hideFromUI: !0,
|
|
1682
1682
|
type: "boolean"
|
|
1683
1683
|
}]
|
|
1684
|
-
},
|
|
1684
|
+
}, ae = {
|
|
1685
1685
|
"@type": "@builder.io/sdk:Element",
|
|
1686
1686
|
responsiveStyles: {
|
|
1687
1687
|
large: {
|
|
@@ -1703,7 +1703,7 @@ const qt = {
|
|
|
1703
1703
|
text: "New tab"
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
},
|
|
1706
|
+
}, re = {
|
|
1707
1707
|
"@type": "@builder.io/sdk:Element",
|
|
1708
1708
|
responsiveStyles: {
|
|
1709
1709
|
large: {
|
|
@@ -1719,7 +1719,7 @@ const qt = {
|
|
|
1719
1719
|
text: "New tab content "
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
|
-
},
|
|
1722
|
+
}, Jt = {
|
|
1723
1723
|
name: "Builder: Tabs",
|
|
1724
1724
|
inputs: [{
|
|
1725
1725
|
name: "tabs",
|
|
@@ -1729,16 +1729,16 @@ const qt = {
|
|
|
1729
1729
|
name: "label",
|
|
1730
1730
|
type: "uiBlocks",
|
|
1731
1731
|
hideFromUI: !0,
|
|
1732
|
-
defaultValue: [
|
|
1732
|
+
defaultValue: [ae]
|
|
1733
1733
|
}, {
|
|
1734
1734
|
name: "content",
|
|
1735
1735
|
type: "uiBlocks",
|
|
1736
1736
|
hideFromUI: !0,
|
|
1737
|
-
defaultValue: [
|
|
1737
|
+
defaultValue: [re]
|
|
1738
1738
|
}],
|
|
1739
1739
|
defaultValue: [{
|
|
1740
1740
|
label: [{
|
|
1741
|
-
...
|
|
1741
|
+
...ae,
|
|
1742
1742
|
component: {
|
|
1743
1743
|
name: "Text",
|
|
1744
1744
|
options: {
|
|
@@ -1747,7 +1747,7 @@ const qt = {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
}],
|
|
1749
1749
|
content: [{
|
|
1750
|
-
...
|
|
1750
|
+
...re,
|
|
1751
1751
|
component: {
|
|
1752
1752
|
name: "Text",
|
|
1753
1753
|
options: {
|
|
@@ -1757,7 +1757,7 @@ const qt = {
|
|
|
1757
1757
|
}]
|
|
1758
1758
|
}, {
|
|
1759
1759
|
label: [{
|
|
1760
|
-
...
|
|
1760
|
+
...ae,
|
|
1761
1761
|
component: {
|
|
1762
1762
|
name: "Text",
|
|
1763
1763
|
options: {
|
|
@@ -1766,7 +1766,7 @@ const qt = {
|
|
|
1766
1766
|
}
|
|
1767
1767
|
}],
|
|
1768
1768
|
content: [{
|
|
1769
|
-
...
|
|
1769
|
+
...re,
|
|
1770
1770
|
component: {
|
|
1771
1771
|
name: "Text",
|
|
1772
1772
|
options: {
|
|
@@ -1817,16 +1817,16 @@ const qt = {
|
|
|
1817
1817
|
}]
|
|
1818
1818
|
}]
|
|
1819
1819
|
};
|
|
1820
|
-
function
|
|
1820
|
+
function Yt(e) {
|
|
1821
1821
|
var l;
|
|
1822
1822
|
const [t, n] = C(
|
|
1823
1823
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
1824
1824
|
);
|
|
1825
|
-
function i(
|
|
1826
|
-
return e.tabs && e.tabs[
|
|
1825
|
+
function i(a) {
|
|
1826
|
+
return e.tabs && e.tabs[a].content;
|
|
1827
1827
|
}
|
|
1828
|
-
function o(
|
|
1829
|
-
|
|
1828
|
+
function o(a) {
|
|
1829
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
1830
1830
|
}
|
|
1831
1831
|
return /* @__PURE__ */ V("div", { children: [
|
|
1832
1832
|
/* @__PURE__ */ s(
|
|
@@ -1839,32 +1839,32 @@ function zt(e) {
|
|
|
1839
1839
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1840
1840
|
overflow: "auto"
|
|
1841
1841
|
},
|
|
1842
|
-
children: (l = e.tabs) == null ? void 0 : l.map((
|
|
1842
|
+
children: (l = e.tabs) == null ? void 0 : l.map((a, r) => /* @__PURE__ */ s(
|
|
1843
1843
|
"span",
|
|
1844
1844
|
{
|
|
1845
|
-
className: `builder-tab-wrap ${t ===
|
|
1846
|
-
style:
|
|
1847
|
-
|
|
1848
|
-
a === t && e.collapsible ? n(-1) : n(a);
|
|
1845
|
+
className: `builder-tab-wrap ${t === r ? "builder-tab-active" : ""}`,
|
|
1846
|
+
style: {
|
|
1847
|
+
...t === r ? e.activeTabStyle : {}
|
|
1849
1848
|
},
|
|
1849
|
+
onClick: (c) => o(r),
|
|
1850
1850
|
children: /* @__PURE__ */ s(
|
|
1851
|
-
|
|
1851
|
+
D,
|
|
1852
1852
|
{
|
|
1853
1853
|
parent: e.builderBlock.id,
|
|
1854
|
-
path: `component.options.tabs.${
|
|
1855
|
-
blocks:
|
|
1854
|
+
path: `component.options.tabs.${r}.label`,
|
|
1855
|
+
blocks: a.label,
|
|
1856
1856
|
context: e.builderContext,
|
|
1857
1857
|
registeredComponents: e.builderComponents,
|
|
1858
1858
|
linkComponent: e.builderLinkComponent
|
|
1859
1859
|
}
|
|
1860
1860
|
)
|
|
1861
1861
|
},
|
|
1862
|
-
|
|
1862
|
+
r
|
|
1863
1863
|
))
|
|
1864
1864
|
}
|
|
1865
1865
|
),
|
|
1866
1866
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1867
|
-
|
|
1867
|
+
D,
|
|
1868
1868
|
{
|
|
1869
1869
|
parent: e.builderBlock.id,
|
|
1870
1870
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -1876,7 +1876,7 @@ function zt(e) {
|
|
|
1876
1876
|
) }) : null
|
|
1877
1877
|
] });
|
|
1878
1878
|
}
|
|
1879
|
-
const
|
|
1879
|
+
const Gt = {
|
|
1880
1880
|
name: "Text",
|
|
1881
1881
|
static: !0,
|
|
1882
1882
|
isRSC: !0,
|
|
@@ -1895,7 +1895,7 @@ const Jt = {
|
|
|
1895
1895
|
textAlign: "center"
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
|
-
function
|
|
1898
|
+
function Qt(e) {
|
|
1899
1899
|
var t;
|
|
1900
1900
|
return /* @__PURE__ */ s(
|
|
1901
1901
|
"div",
|
|
@@ -1908,7 +1908,249 @@ function Yt(e) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
);
|
|
1910
1910
|
}
|
|
1911
|
-
const
|
|
1911
|
+
const Se = (e) => e.toString();
|
|
1912
|
+
function Xt(e) {
|
|
1913
|
+
var d;
|
|
1914
|
+
const [t, n] = C(() => []);
|
|
1915
|
+
function i() {
|
|
1916
|
+
return !!(e.grid || e.oneAtATime);
|
|
1917
|
+
}
|
|
1918
|
+
function o() {
|
|
1919
|
+
return {
|
|
1920
|
+
display: "flex",
|
|
1921
|
+
alignItems: "stretch",
|
|
1922
|
+
flexDirection: "column",
|
|
1923
|
+
...e.grid && {
|
|
1924
|
+
flexDirection: "row",
|
|
1925
|
+
alignItems: "flex-start",
|
|
1926
|
+
flexWrap: "wrap"
|
|
1927
|
+
}
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
function l() {
|
|
1931
|
+
const g = {
|
|
1932
|
+
...{
|
|
1933
|
+
display: "flex",
|
|
1934
|
+
flexDirection: "column"
|
|
1935
|
+
},
|
|
1936
|
+
alignItems: "stretch",
|
|
1937
|
+
cursor: "pointer"
|
|
1938
|
+
};
|
|
1939
|
+
return Object.fromEntries(
|
|
1940
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1941
|
+
);
|
|
1942
|
+
}
|
|
1943
|
+
function a(m) {
|
|
1944
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1945
|
+
}
|
|
1946
|
+
function r(m) {
|
|
1947
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1948
|
+
}
|
|
1949
|
+
function c() {
|
|
1950
|
+
let m = null;
|
|
1951
|
+
if (e.grid && t.length && document) {
|
|
1952
|
+
const p = t[0];
|
|
1953
|
+
let S = document.querySelector(
|
|
1954
|
+
`.builder-accordion-title[data-index="${p}"]`
|
|
1955
|
+
);
|
|
1956
|
+
if (m = p, S) {
|
|
1957
|
+
let R = S.getBoundingClientRect();
|
|
1958
|
+
for (; S = S && S.nextElementSibling; )
|
|
1959
|
+
if (S) {
|
|
1960
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1961
|
+
continue;
|
|
1962
|
+
const P = S.getBoundingClientRect();
|
|
1963
|
+
if (P.left > R.left) {
|
|
1964
|
+
const A = parseInt(
|
|
1965
|
+
S.getAttribute("data-index") || "",
|
|
1966
|
+
10
|
|
1967
|
+
);
|
|
1968
|
+
isNaN(A) || (R = P, m = A);
|
|
1969
|
+
} else
|
|
1970
|
+
break;
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1975
|
+
}
|
|
1976
|
+
function u() {
|
|
1977
|
+
const m = {
|
|
1978
|
+
order: typeof c() == "number" ? c() : void 0,
|
|
1979
|
+
...e.grid && {
|
|
1980
|
+
width: "100%"
|
|
1981
|
+
}
|
|
1982
|
+
};
|
|
1983
|
+
return Object.fromEntries(
|
|
1984
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1985
|
+
);
|
|
1986
|
+
}
|
|
1987
|
+
function f(m) {
|
|
1988
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1989
|
+
}
|
|
1990
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
|
|
1991
|
+
/* @__PURE__ */ s(
|
|
1992
|
+
"div",
|
|
1993
|
+
{
|
|
1994
|
+
className: a(g),
|
|
1995
|
+
style: {
|
|
1996
|
+
...l(),
|
|
1997
|
+
width: e.grid ? e.gridRowWidth : void 0,
|
|
1998
|
+
order: c() !== null ? Se(g) : Se(g + 1)
|
|
1999
|
+
},
|
|
2000
|
+
"data-index": g,
|
|
2001
|
+
onClick: (p) => f(g),
|
|
2002
|
+
children: /* @__PURE__ */ s(
|
|
2003
|
+
D,
|
|
2004
|
+
{
|
|
2005
|
+
blocks: m.title,
|
|
2006
|
+
path: `items.${g}.title`,
|
|
2007
|
+
parent: e.builderBlock.id,
|
|
2008
|
+
context: e.builderContext,
|
|
2009
|
+
registeredComponents: e.builderComponents,
|
|
2010
|
+
linkComponent: e.builderLinkComponent
|
|
2011
|
+
}
|
|
2012
|
+
)
|
|
2013
|
+
}
|
|
2014
|
+
),
|
|
2015
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
2016
|
+
"div",
|
|
2017
|
+
{
|
|
2018
|
+
className: r(g),
|
|
2019
|
+
style: u(),
|
|
2020
|
+
children: /* @__PURE__ */ s(
|
|
2021
|
+
D,
|
|
2022
|
+
{
|
|
2023
|
+
blocks: m.detail,
|
|
2024
|
+
path: `items.${g}.detail`,
|
|
2025
|
+
parent: e.builderBlock.id,
|
|
2026
|
+
context: e.builderContext,
|
|
2027
|
+
registeredComponents: e.builderComponents,
|
|
2028
|
+
linkComponent: e.builderLinkComponent
|
|
2029
|
+
}
|
|
2030
|
+
)
|
|
2031
|
+
}
|
|
2032
|
+
) : null
|
|
2033
|
+
] })) });
|
|
2034
|
+
}
|
|
2035
|
+
const le = {
|
|
2036
|
+
"@type": "@builder.io/sdk:Element",
|
|
2037
|
+
layerName: "Accordion item title",
|
|
2038
|
+
responsiveStyles: {
|
|
2039
|
+
large: {
|
|
2040
|
+
marginTop: "10px",
|
|
2041
|
+
position: "relative",
|
|
2042
|
+
display: "flex",
|
|
2043
|
+
alignItems: "stretch",
|
|
2044
|
+
flexDirection: "column",
|
|
2045
|
+
paddingBottom: "10px"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
children: [{
|
|
2049
|
+
"@type": "@builder.io/sdk:Element",
|
|
2050
|
+
responsiveStyles: {
|
|
2051
|
+
large: {
|
|
2052
|
+
textAlign: "left",
|
|
2053
|
+
display: "flex",
|
|
2054
|
+
flexDirection: "column"
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
component: {
|
|
2058
|
+
name: "Text",
|
|
2059
|
+
options: {
|
|
2060
|
+
text: "I am an accordion title. Click me!"
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
}]
|
|
2064
|
+
}, se = {
|
|
2065
|
+
"@type": "@builder.io/sdk:Element",
|
|
2066
|
+
layerName: "Accordion item detail",
|
|
2067
|
+
responsiveStyles: {
|
|
2068
|
+
large: {
|
|
2069
|
+
position: "relative",
|
|
2070
|
+
display: "flex",
|
|
2071
|
+
alignItems: "stretch",
|
|
2072
|
+
flexDirection: "column",
|
|
2073
|
+
marginTop: "10px",
|
|
2074
|
+
paddingBottom: "10px"
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
children: [{
|
|
2078
|
+
"@type": "@builder.io/sdk:Element",
|
|
2079
|
+
responsiveStyles: {
|
|
2080
|
+
large: {
|
|
2081
|
+
paddingTop: "50px",
|
|
2082
|
+
textAlign: "left",
|
|
2083
|
+
display: "flex",
|
|
2084
|
+
flexDirection: "column",
|
|
2085
|
+
paddingBottom: "50px"
|
|
2086
|
+
}
|
|
2087
|
+
},
|
|
2088
|
+
component: {
|
|
2089
|
+
name: "Text",
|
|
2090
|
+
options: {
|
|
2091
|
+
text: "I am an accordion detail, hello!"
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
}]
|
|
2095
|
+
}, Zt = {
|
|
2096
|
+
name: "Builder:Accordion",
|
|
2097
|
+
canHaveChildren: !0,
|
|
2098
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
2099
|
+
defaultStyles: {
|
|
2100
|
+
display: "flex",
|
|
2101
|
+
flexDirection: "column",
|
|
2102
|
+
alignItems: "stretch"
|
|
2103
|
+
},
|
|
2104
|
+
inputs: [{
|
|
2105
|
+
name: "items",
|
|
2106
|
+
type: "list",
|
|
2107
|
+
broadcast: !0,
|
|
2108
|
+
subFields: [{
|
|
2109
|
+
name: "title",
|
|
2110
|
+
type: "uiBlocks",
|
|
2111
|
+
hideFromUI: !0,
|
|
2112
|
+
defaultValue: [le]
|
|
2113
|
+
}, {
|
|
2114
|
+
name: "detail",
|
|
2115
|
+
type: "uiBlocks",
|
|
2116
|
+
hideFromUI: !0,
|
|
2117
|
+
defaultValue: [se]
|
|
2118
|
+
}],
|
|
2119
|
+
defaultValue: [{
|
|
2120
|
+
title: [le],
|
|
2121
|
+
detail: [se]
|
|
2122
|
+
}, {
|
|
2123
|
+
title: [le],
|
|
2124
|
+
detail: [se]
|
|
2125
|
+
}],
|
|
2126
|
+
showIf: (e) => !e.get("useChildrenForItems")
|
|
2127
|
+
}, {
|
|
2128
|
+
name: "oneAtATime",
|
|
2129
|
+
helperText: "Only allow opening one at a time (collapse all others when new item openned)",
|
|
2130
|
+
type: "boolean",
|
|
2131
|
+
defaultValue: !1
|
|
2132
|
+
}, {
|
|
2133
|
+
name: "grid",
|
|
2134
|
+
helperText: "Display as a grid",
|
|
2135
|
+
type: "boolean",
|
|
2136
|
+
defaultValue: !1
|
|
2137
|
+
}, {
|
|
2138
|
+
name: "gridRowWidth",
|
|
2139
|
+
helperText: "Display as a grid",
|
|
2140
|
+
type: "string",
|
|
2141
|
+
showIf: (e) => e.get("grid"),
|
|
2142
|
+
defaultValue: "25%"
|
|
2143
|
+
}, {
|
|
2144
|
+
name: "useChildrenForItems",
|
|
2145
|
+
type: "boolean",
|
|
2146
|
+
helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
|
|
2147
|
+
advanced: !0,
|
|
2148
|
+
defaultValue: !1,
|
|
2149
|
+
onChange: (e) => {
|
|
2150
|
+
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
2151
|
+
}
|
|
2152
|
+
}]
|
|
2153
|
+
}, en = {
|
|
1912
2154
|
name: "Custom Code",
|
|
1913
2155
|
static: !0,
|
|
1914
2156
|
requiredPermissions: ["editCode"],
|
|
@@ -1931,32 +2173,32 @@ const Gt = {
|
|
|
1931
2173
|
advanced: !0
|
|
1932
2174
|
}]
|
|
1933
2175
|
};
|
|
1934
|
-
function
|
|
2176
|
+
function tn(e) {
|
|
1935
2177
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
1936
|
-
return
|
|
1937
|
-
var
|
|
1938
|
-
if (!((
|
|
2178
|
+
return B(() => {
|
|
2179
|
+
var r;
|
|
2180
|
+
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
1939
2181
|
return;
|
|
1940
|
-
const
|
|
1941
|
-
for (let c = 0; c <
|
|
1942
|
-
const
|
|
1943
|
-
if (
|
|
1944
|
-
if (n.includes(
|
|
2182
|
+
const a = t.current.getElementsByTagName("script");
|
|
2183
|
+
for (let c = 0; c < a.length; c++) {
|
|
2184
|
+
const u = a[c];
|
|
2185
|
+
if (u.src) {
|
|
2186
|
+
if (n.includes(u.src))
|
|
1945
2187
|
continue;
|
|
1946
|
-
n.push(
|
|
1947
|
-
const
|
|
1948
|
-
|
|
1949
|
-
} else if (!
|
|
2188
|
+
n.push(u.src);
|
|
2189
|
+
const f = document.createElement("script");
|
|
2190
|
+
f.async = !0, f.src = u.src, document.head.appendChild(f);
|
|
2191
|
+
} else if (!u.type || [
|
|
1950
2192
|
"text/javascript",
|
|
1951
2193
|
"application/javascript",
|
|
1952
2194
|
"application/ecmascript"
|
|
1953
|
-
].includes(
|
|
1954
|
-
if (o.includes(
|
|
2195
|
+
].includes(u.type)) {
|
|
2196
|
+
if (o.includes(u.innerText))
|
|
1955
2197
|
continue;
|
|
1956
2198
|
try {
|
|
1957
|
-
o.push(
|
|
1958
|
-
} catch (
|
|
1959
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2199
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
2200
|
+
} catch (f) {
|
|
2201
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
1960
2202
|
}
|
|
1961
2203
|
}
|
|
1962
2204
|
}
|
|
@@ -1969,7 +2211,7 @@ function Qt(e) {
|
|
|
1969
2211
|
}
|
|
1970
2212
|
);
|
|
1971
2213
|
}
|
|
1972
|
-
const
|
|
2214
|
+
const nn = {
|
|
1973
2215
|
name: "Embed",
|
|
1974
2216
|
static: !0,
|
|
1975
2217
|
inputs: [{
|
|
@@ -1994,30 +2236,30 @@ const Xt = {
|
|
|
1994
2236
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
1995
2237
|
hideFromUI: !0
|
|
1996
2238
|
}]
|
|
1997
|
-
},
|
|
1998
|
-
function
|
|
1999
|
-
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [
|
|
2239
|
+
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2240
|
+
function rn(e) {
|
|
2241
|
+
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2000
2242
|
function c() {
|
|
2001
2243
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2002
2244
|
return;
|
|
2003
|
-
const
|
|
2004
|
-
for (let
|
|
2005
|
-
const
|
|
2006
|
-
if (
|
|
2007
|
-
n.push(
|
|
2008
|
-
const
|
|
2009
|
-
|
|
2010
|
-
} else if (
|
|
2245
|
+
const u = t.current.getElementsByTagName("script");
|
|
2246
|
+
for (let f = 0; f < u.length; f++) {
|
|
2247
|
+
const d = u[f];
|
|
2248
|
+
if (d.src && !n.includes(d.src)) {
|
|
2249
|
+
n.push(d.src);
|
|
2250
|
+
const m = document.createElement("script");
|
|
2251
|
+
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2252
|
+
} else if (an(d) && !o.includes(d.innerText))
|
|
2011
2253
|
try {
|
|
2012
|
-
o.push(
|
|
2013
|
-
} catch (
|
|
2014
|
-
console.warn("`Embed`: Error running script:",
|
|
2254
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
2255
|
+
} catch (m) {
|
|
2256
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2015
2257
|
}
|
|
2016
2258
|
}
|
|
2017
2259
|
}
|
|
2018
|
-
return
|
|
2019
|
-
t.current && !
|
|
2020
|
-
}, [t.current,
|
|
2260
|
+
return B(() => {
|
|
2261
|
+
t.current && !a && (r(!0), c());
|
|
2262
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2021
2263
|
"div",
|
|
2022
2264
|
{
|
|
2023
2265
|
className: "builder-embed",
|
|
@@ -2026,7 +2268,7 @@ function tn(e) {
|
|
|
2026
2268
|
}
|
|
2027
2269
|
);
|
|
2028
2270
|
}
|
|
2029
|
-
const
|
|
2271
|
+
const ln = {
|
|
2030
2272
|
name: "Form:Form",
|
|
2031
2273
|
// editableTags: ['builder-form-error']
|
|
2032
2274
|
defaults: {
|
|
@@ -2257,125 +2499,125 @@ const nn = {
|
|
|
2257
2499
|
}
|
|
2258
2500
|
}
|
|
2259
2501
|
}]
|
|
2260
|
-
},
|
|
2502
|
+
}, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
|
|
2261
2503
|
const e = process.env.NODE_ENV || "production";
|
|
2262
|
-
return
|
|
2263
|
-
},
|
|
2504
|
+
return sn.includes(e) ? e : "production";
|
|
2505
|
+
}, dn = (e, t, n) => {
|
|
2264
2506
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2265
2507
|
return i === void 0 || i === e ? n : i;
|
|
2266
2508
|
};
|
|
2267
|
-
function
|
|
2268
|
-
var
|
|
2269
|
-
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [
|
|
2270
|
-
function c(
|
|
2271
|
-
var I,
|
|
2272
|
-
const
|
|
2509
|
+
function un(e) {
|
|
2510
|
+
var d, m;
|
|
2511
|
+
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2512
|
+
function c(g) {
|
|
2513
|
+
var I, S;
|
|
2514
|
+
const p = {
|
|
2273
2515
|
...e.builderContext.rootState,
|
|
2274
|
-
...
|
|
2516
|
+
...g
|
|
2275
2517
|
};
|
|
2276
|
-
e.builderContext.rootSetState ? (
|
|
2518
|
+
e.builderContext.rootSetState ? (S = (I = e.builderContext).rootSetState) == null || S.call(I, p) : e.builderContext.rootState = p;
|
|
2277
2519
|
}
|
|
2278
|
-
function
|
|
2279
|
-
return
|
|
2520
|
+
function u() {
|
|
2521
|
+
return $() && e.previewState || n;
|
|
2280
2522
|
}
|
|
2281
|
-
function
|
|
2523
|
+
function f(g) {
|
|
2282
2524
|
var I;
|
|
2283
|
-
const
|
|
2525
|
+
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2284
2526
|
if (e.sendSubmissionsTo === "zapier")
|
|
2285
|
-
|
|
2286
|
-
else if (
|
|
2527
|
+
g.preventDefault();
|
|
2528
|
+
else if (p) {
|
|
2287
2529
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2288
|
-
|
|
2530
|
+
g.preventDefault();
|
|
2289
2531
|
return;
|
|
2290
2532
|
}
|
|
2291
|
-
|
|
2292
|
-
const
|
|
2293
|
-
let
|
|
2294
|
-
const
|
|
2295
|
-
|
|
2296
|
-
).filter((
|
|
2297
|
-
let
|
|
2298
|
-
const
|
|
2299
|
-
if (
|
|
2300
|
-
if (
|
|
2301
|
-
if (
|
|
2302
|
-
return
|
|
2303
|
-
key:
|
|
2304
|
-
value:
|
|
2533
|
+
g.preventDefault();
|
|
2534
|
+
const S = g.currentTarget, R = e.customHeaders || {};
|
|
2535
|
+
let P;
|
|
2536
|
+
const A = new FormData(S), O = Array.from(
|
|
2537
|
+
g.currentTarget.querySelectorAll("input,select,textarea")
|
|
2538
|
+
).filter((b) => !!b.name).map((b) => {
|
|
2539
|
+
let h;
|
|
2540
|
+
const y = b.name;
|
|
2541
|
+
if (b instanceof HTMLInputElement)
|
|
2542
|
+
if (b.type === "radio") {
|
|
2543
|
+
if (b.checked)
|
|
2544
|
+
return h = b.name, {
|
|
2545
|
+
key: y,
|
|
2546
|
+
value: h
|
|
2305
2547
|
};
|
|
2306
|
-
} else if (
|
|
2307
|
-
|
|
2308
|
-
else if (
|
|
2309
|
-
const
|
|
2310
|
-
isNaN(
|
|
2548
|
+
} else if (b.type === "checkbox")
|
|
2549
|
+
h = b.checked;
|
|
2550
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2551
|
+
const x = b.valueAsNumber;
|
|
2552
|
+
isNaN(x) || (h = x);
|
|
2311
2553
|
} else
|
|
2312
|
-
|
|
2554
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2313
2555
|
else
|
|
2314
|
-
|
|
2556
|
+
h = b.value;
|
|
2315
2557
|
return {
|
|
2316
|
-
key:
|
|
2317
|
-
value:
|
|
2558
|
+
key: y,
|
|
2559
|
+
value: h
|
|
2318
2560
|
};
|
|
2319
2561
|
});
|
|
2320
|
-
let
|
|
2321
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2322
|
-
(
|
|
2323
|
-
}),
|
|
2324
|
-
|
|
2562
|
+
let v = e.contentType;
|
|
2563
|
+
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2564
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
|
|
2565
|
+
}), v !== "application/json")
|
|
2566
|
+
P = A;
|
|
2325
2567
|
else {
|
|
2326
|
-
const
|
|
2327
|
-
Array.from(
|
|
2328
|
-
|
|
2329
|
-
}),
|
|
2568
|
+
const b = {};
|
|
2569
|
+
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2570
|
+
Re(b, y, h);
|
|
2571
|
+
}), P = JSON.stringify(b);
|
|
2330
2572
|
}
|
|
2331
|
-
|
|
2332
|
-
const
|
|
2333
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2573
|
+
v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
|
|
2574
|
+
const w = new CustomEvent("presubmit", { detail: { body: P } });
|
|
2575
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2334
2576
|
return;
|
|
2335
2577
|
i("sending");
|
|
2336
|
-
const
|
|
2578
|
+
const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2337
2579
|
e.sendSubmissionsToEmail || ""
|
|
2338
2580
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2339
2581
|
fetch(
|
|
2340
|
-
e.sendSubmissionsTo === "email" ?
|
|
2341
|
-
{ body:
|
|
2582
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2583
|
+
{ body: P, headers: R, method: e.method || "post" }
|
|
2342
2584
|
).then(
|
|
2343
|
-
async (
|
|
2344
|
-
let
|
|
2345
|
-
const
|
|
2346
|
-
if (
|
|
2347
|
-
let
|
|
2348
|
-
|
|
2585
|
+
async (b) => {
|
|
2586
|
+
let h;
|
|
2587
|
+
const y = b.headers.get("content-type");
|
|
2588
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2589
|
+
let x = dn(h, e.errorMessagePath);
|
|
2590
|
+
x && (typeof x != "string" && (x = JSON.stringify(x)), r(x), c({ formErrorMessage: x }));
|
|
2349
2591
|
}
|
|
2350
|
-
if (l(
|
|
2351
|
-
const
|
|
2352
|
-
detail: { res:
|
|
2592
|
+
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2593
|
+
const x = new CustomEvent("submit:success", {
|
|
2594
|
+
detail: { res: b, body: h }
|
|
2353
2595
|
});
|
|
2354
2596
|
if (t.current) {
|
|
2355
|
-
if (t.current.dispatchEvent(
|
|
2597
|
+
if (t.current.dispatchEvent(x), x.defaultPrevented)
|
|
2356
2598
|
return;
|
|
2357
2599
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2358
2600
|
}
|
|
2359
2601
|
if (e.successUrl)
|
|
2360
2602
|
if (t.current) {
|
|
2361
|
-
const
|
|
2603
|
+
const k = new CustomEvent("route", {
|
|
2362
2604
|
detail: { url: e.successUrl }
|
|
2363
2605
|
});
|
|
2364
|
-
t.current.dispatchEvent(
|
|
2606
|
+
t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
|
|
2365
2607
|
} else
|
|
2366
2608
|
location.href = e.successUrl;
|
|
2367
2609
|
}
|
|
2368
2610
|
},
|
|
2369
|
-
(
|
|
2370
|
-
const
|
|
2371
|
-
detail: { error:
|
|
2611
|
+
(b) => {
|
|
2612
|
+
const h = new CustomEvent("submit:error", {
|
|
2613
|
+
detail: { error: b }
|
|
2372
2614
|
});
|
|
2373
|
-
t.current && (t.current.dispatchEvent(
|
|
2615
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
|
|
2374
2616
|
}
|
|
2375
2617
|
);
|
|
2376
2618
|
}
|
|
2377
2619
|
}
|
|
2378
|
-
return /* @__PURE__ */ V(
|
|
2620
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
2379
2621
|
" ",
|
|
2380
2622
|
/* @__PURE__ */ V(
|
|
2381
2623
|
"form",
|
|
@@ -2385,38 +2627,38 @@ function ln(e) {
|
|
|
2385
2627
|
action: !e.sendWithJs && e.action,
|
|
2386
2628
|
method: e.method,
|
|
2387
2629
|
name: e.name,
|
|
2388
|
-
onSubmit: (
|
|
2630
|
+
onSubmit: (g) => f(g),
|
|
2389
2631
|
...e.attributes,
|
|
2390
2632
|
children: [
|
|
2391
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2633
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2392
2634
|
_,
|
|
2393
2635
|
{
|
|
2394
|
-
block:
|
|
2636
|
+
block: g,
|
|
2395
2637
|
context: e.builderContext,
|
|
2396
2638
|
registeredComponents: e.builderComponents,
|
|
2397
2639
|
linkComponent: e.builderLinkComponent
|
|
2398
2640
|
},
|
|
2399
|
-
`form-block-${
|
|
2641
|
+
`form-block-${p}`
|
|
2400
2642
|
)) }) : null,
|
|
2401
|
-
|
|
2402
|
-
|
|
2643
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
2644
|
+
D,
|
|
2403
2645
|
{
|
|
2404
2646
|
path: "errorMessage",
|
|
2405
2647
|
blocks: e.errorMessage,
|
|
2406
2648
|
context: e.builderContext
|
|
2407
2649
|
}
|
|
2408
2650
|
) : null,
|
|
2409
|
-
|
|
2410
|
-
|
|
2651
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
2652
|
+
D,
|
|
2411
2653
|
{
|
|
2412
2654
|
path: "sendingMessage",
|
|
2413
2655
|
blocks: e.sendingMessage,
|
|
2414
2656
|
context: e.builderContext
|
|
2415
2657
|
}
|
|
2416
2658
|
) : null,
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2659
|
+
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
|
|
2660
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
2661
|
+
D,
|
|
2420
2662
|
{
|
|
2421
2663
|
path: "successMessage",
|
|
2422
2664
|
blocks: e.successMessage,
|
|
@@ -2431,7 +2673,7 @@ function ln(e) {
|
|
|
2431
2673
|
" "
|
|
2432
2674
|
] });
|
|
2433
2675
|
}
|
|
2434
|
-
const
|
|
2676
|
+
const mn = {
|
|
2435
2677
|
name: "Form:Input",
|
|
2436
2678
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2437
2679
|
inputs: [
|
|
@@ -2483,12 +2725,12 @@ const sn = {
|
|
|
2483
2725
|
borderColor: "#ccc"
|
|
2484
2726
|
}
|
|
2485
2727
|
};
|
|
2486
|
-
function
|
|
2487
|
-
return /* @__PURE__ */
|
|
2728
|
+
function fn(e) {
|
|
2729
|
+
return /* @__PURE__ */ Ee(
|
|
2488
2730
|
"input",
|
|
2489
2731
|
{
|
|
2490
2732
|
...e.attributes,
|
|
2491
|
-
key:
|
|
2733
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2492
2734
|
placeholder: e.placeholder,
|
|
2493
2735
|
type: e.type,
|
|
2494
2736
|
name: e.name,
|
|
@@ -2498,7 +2740,7 @@ function cn(e) {
|
|
|
2498
2740
|
}
|
|
2499
2741
|
);
|
|
2500
2742
|
}
|
|
2501
|
-
const
|
|
2743
|
+
const hn = {
|
|
2502
2744
|
name: "Form:Select",
|
|
2503
2745
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2504
2746
|
defaultStyles: {
|
|
@@ -2541,21 +2783,21 @@ const dn = {
|
|
|
2541
2783
|
static: !0,
|
|
2542
2784
|
noWrap: !0
|
|
2543
2785
|
};
|
|
2544
|
-
function
|
|
2786
|
+
function gn(e) {
|
|
2545
2787
|
var t;
|
|
2546
|
-
return /* @__PURE__ */
|
|
2788
|
+
return /* @__PURE__ */ Ee(
|
|
2547
2789
|
"select",
|
|
2548
2790
|
{
|
|
2549
2791
|
...e.attributes,
|
|
2550
2792
|
value: e.value,
|
|
2551
|
-
key:
|
|
2793
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2552
2794
|
defaultValue: e.defaultValue,
|
|
2553
2795
|
name: e.name
|
|
2554
2796
|
},
|
|
2555
2797
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2556
2798
|
);
|
|
2557
2799
|
}
|
|
2558
|
-
const
|
|
2800
|
+
const bn = {
|
|
2559
2801
|
name: "Form:SubmitButton",
|
|
2560
2802
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2561
2803
|
defaultStyles: {
|
|
@@ -2581,10 +2823,10 @@ const mn = {
|
|
|
2581
2823
|
// TODO: defaultChildren
|
|
2582
2824
|
// canHaveChildren: true,
|
|
2583
2825
|
};
|
|
2584
|
-
function
|
|
2826
|
+
function pn(e) {
|
|
2585
2827
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2586
2828
|
}
|
|
2587
|
-
const
|
|
2829
|
+
const yn = {
|
|
2588
2830
|
// friendlyName?
|
|
2589
2831
|
name: "Raw:Img",
|
|
2590
2832
|
hideFromInsertMenu: !0,
|
|
@@ -2599,7 +2841,7 @@ const hn = {
|
|
|
2599
2841
|
noWrap: !0,
|
|
2600
2842
|
static: !0
|
|
2601
2843
|
};
|
|
2602
|
-
function
|
|
2844
|
+
function xn(e) {
|
|
2603
2845
|
return /* @__PURE__ */ s(
|
|
2604
2846
|
"img",
|
|
2605
2847
|
{
|
|
@@ -2611,10 +2853,10 @@ function gn(e) {
|
|
|
2611
2853
|
src: e.imgSrc || e.image,
|
|
2612
2854
|
...e.attributes
|
|
2613
2855
|
},
|
|
2614
|
-
|
|
2856
|
+
$() && e.imgSrc || "default-key"
|
|
2615
2857
|
);
|
|
2616
2858
|
}
|
|
2617
|
-
const
|
|
2859
|
+
const Sn = {
|
|
2618
2860
|
name: "Video",
|
|
2619
2861
|
canHaveChildren: !0,
|
|
2620
2862
|
defaultStyles: {
|
|
@@ -2696,8 +2938,8 @@ const bn = {
|
|
|
2696
2938
|
advanced: !0
|
|
2697
2939
|
}]
|
|
2698
2940
|
};
|
|
2699
|
-
function
|
|
2700
|
-
var i, o, l,
|
|
2941
|
+
function vn(e) {
|
|
2942
|
+
var i, o, l, a, r, c, u;
|
|
2701
2943
|
function t() {
|
|
2702
2944
|
return {
|
|
2703
2945
|
...e.autoPlay === !0 ? {
|
|
@@ -2765,7 +3007,7 @@ function pn(e) {
|
|
|
2765
3007
|
}
|
|
2766
3008
|
}
|
|
2767
3009
|
) : null,
|
|
2768
|
-
(
|
|
3010
|
+
(r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(
|
|
2769
3011
|
"div",
|
|
2770
3012
|
{
|
|
2771
3013
|
style: {
|
|
@@ -2776,7 +3018,7 @@ function pn(e) {
|
|
|
2776
3018
|
children: e.children
|
|
2777
3019
|
}
|
|
2778
3020
|
) : null,
|
|
2779
|
-
(
|
|
3021
|
+
(u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2780
3022
|
"div",
|
|
2781
3023
|
{
|
|
2782
3024
|
style: {
|
|
@@ -2797,58 +3039,61 @@ function pn(e) {
|
|
|
2797
3039
|
}
|
|
2798
3040
|
);
|
|
2799
3041
|
}
|
|
2800
|
-
const
|
|
2801
|
-
component: Qt,
|
|
2802
|
-
...Gt
|
|
2803
|
-
}, {
|
|
3042
|
+
const kn = () => [{
|
|
2804
3043
|
component: tn,
|
|
2805
|
-
...
|
|
3044
|
+
...en
|
|
2806
3045
|
}, {
|
|
2807
|
-
component:
|
|
3046
|
+
component: rn,
|
|
2808
3047
|
...nn
|
|
2809
3048
|
}, {
|
|
2810
|
-
component:
|
|
2811
|
-
...
|
|
3049
|
+
component: un,
|
|
3050
|
+
...ln
|
|
2812
3051
|
}, {
|
|
2813
3052
|
component: fn,
|
|
2814
3053
|
...mn
|
|
2815
3054
|
}, {
|
|
2816
|
-
component:
|
|
2817
|
-
...
|
|
3055
|
+
component: pn,
|
|
3056
|
+
...bn
|
|
2818
3057
|
}, {
|
|
2819
3058
|
component: gn,
|
|
2820
3059
|
...hn
|
|
2821
3060
|
}, {
|
|
2822
|
-
component:
|
|
2823
|
-
...
|
|
2824
|
-
}], ye = () => [{
|
|
2825
|
-
component: tt,
|
|
2826
|
-
...Dt
|
|
3061
|
+
component: xn,
|
|
3062
|
+
...yn
|
|
2827
3063
|
}, {
|
|
2828
|
-
component:
|
|
3064
|
+
component: vn,
|
|
3065
|
+
...Sn
|
|
3066
|
+
}], ve = () => [{
|
|
3067
|
+
component: ot,
|
|
2829
3068
|
...jt
|
|
2830
3069
|
}, {
|
|
2831
3070
|
component: Wt,
|
|
2832
|
-
...
|
|
3071
|
+
...Ut
|
|
2833
3072
|
}, {
|
|
2834
3073
|
component: Ft,
|
|
2835
|
-
...
|
|
3074
|
+
...Mt
|
|
2836
3075
|
}, {
|
|
2837
3076
|
component: Lt,
|
|
2838
|
-
...Ot
|
|
2839
|
-
}, {
|
|
2840
|
-
component: Kt,
|
|
2841
3077
|
...Ht
|
|
2842
3078
|
}, {
|
|
2843
|
-
component:
|
|
3079
|
+
component: Ot,
|
|
3080
|
+
...Kt
|
|
3081
|
+
}, {
|
|
3082
|
+
component: _t,
|
|
2844
3083
|
...qt
|
|
3084
|
+
}, {
|
|
3085
|
+
component: qn,
|
|
3086
|
+
...zt
|
|
3087
|
+
}, {
|
|
3088
|
+
component: Qt,
|
|
3089
|
+
...Gt
|
|
2845
3090
|
}, {
|
|
2846
3091
|
component: Yt,
|
|
2847
3092
|
...Jt
|
|
2848
3093
|
}, {
|
|
2849
|
-
component:
|
|
2850
|
-
...
|
|
2851
|
-
}, ...
|
|
3094
|
+
component: Xt,
|
|
3095
|
+
...Zt
|
|
3096
|
+
}, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2852
3097
|
function getAndSetVariantId() {
|
|
2853
3098
|
function setCookie(name, value, days) {
|
|
2854
3099
|
let expires = '';
|
|
@@ -2904,7 +3149,7 @@ const yn = () => [{
|
|
|
2904
3149
|
}).join('');
|
|
2905
3150
|
styleEl.innerHTML = newStyleStr;
|
|
2906
3151
|
}
|
|
2907
|
-
}`,
|
|
3152
|
+
}`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2908
3153
|
if (!navigator.cookieEnabled) {
|
|
2909
3154
|
return;
|
|
2910
3155
|
}
|
|
@@ -2938,26 +3183,26 @@ const yn = () => [{
|
|
|
2938
3183
|
thisScriptEl?.remove();
|
|
2939
3184
|
}
|
|
2940
3185
|
return;
|
|
2941
|
-
}`,
|
|
3186
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2942
3187
|
...t,
|
|
2943
3188
|
testVariationId: t.id,
|
|
2944
3189
|
id: e == null ? void 0 : e.id
|
|
2945
|
-
})),
|
|
3190
|
+
})), In = ({
|
|
2946
3191
|
canTrack: e,
|
|
2947
3192
|
content: t
|
|
2948
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
2949
|
-
window.${
|
|
2950
|
-
window.${
|
|
2951
|
-
`,
|
|
2952
|
-
window.${
|
|
2953
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
2954
|
-
)`,
|
|
3193
|
+
}) => !(!(J(t).length > 0) || !e || G()), wn = (e) => e === "react" || e === "reactNative", Ue = wn(q), En = () => `
|
|
3194
|
+
window.${Oe} = ${Cn}
|
|
3195
|
+
window.${je} = ${Tn}
|
|
3196
|
+
`, Rn = (e, t) => `
|
|
3197
|
+
window.${Oe}(
|
|
3198
|
+
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3199
|
+
)`, Vn = ({
|
|
2955
3200
|
contentId: e,
|
|
2956
3201
|
variationId: t
|
|
2957
|
-
}) => `window.${
|
|
2958
|
-
"${t}", "${e}", ${
|
|
3202
|
+
}) => `window.${je}(
|
|
3203
|
+
"${t}", "${e}", ${Ue}
|
|
2959
3204
|
)`;
|
|
2960
|
-
function
|
|
3205
|
+
function ce(e) {
|
|
2961
3206
|
return /* @__PURE__ */ s(
|
|
2962
3207
|
"script",
|
|
2963
3208
|
{
|
|
@@ -2966,10 +3211,10 @@ function re(e) {
|
|
|
2966
3211
|
}
|
|
2967
3212
|
);
|
|
2968
3213
|
}
|
|
2969
|
-
function
|
|
3214
|
+
function ke(e) {
|
|
2970
3215
|
return Math.round(e * 1e3) / 1e3;
|
|
2971
3216
|
}
|
|
2972
|
-
const
|
|
3217
|
+
const Pn = (e, t, n = !0) => {
|
|
2973
3218
|
if (!(e instanceof HTMLElement))
|
|
2974
3219
|
return null;
|
|
2975
3220
|
let i = n ? e : e.parentElement;
|
|
@@ -2980,37 +3225,37 @@ const In = (e, t, n = !0) => {
|
|
|
2980
3225
|
return i;
|
|
2981
3226
|
} while (i = i.parentElement);
|
|
2982
3227
|
return null;
|
|
2983
|
-
},
|
|
3228
|
+
}, Bn = (e) => Pn(e, (t) => {
|
|
2984
3229
|
const n = t.getAttribute("builder-id") || t.id;
|
|
2985
3230
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
2986
|
-
}),
|
|
3231
|
+
}), Ce = ({
|
|
2987
3232
|
event: e,
|
|
2988
3233
|
target: t
|
|
2989
3234
|
}) => {
|
|
2990
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3235
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
|
|
2991
3236
|
return {
|
|
2992
3237
|
x: l,
|
|
2993
|
-
y:
|
|
3238
|
+
y: a
|
|
2994
3239
|
};
|
|
2995
|
-
},
|
|
2996
|
-
const t = e.target, n = t &&
|
|
3240
|
+
}, An = (e) => {
|
|
3241
|
+
const t = e.target, n = t && Bn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2997
3242
|
return {
|
|
2998
3243
|
targetBuilderElement: i || void 0,
|
|
2999
3244
|
metadata: {
|
|
3000
|
-
targetOffset: t ?
|
|
3245
|
+
targetOffset: t ? Ce({
|
|
3001
3246
|
event: e,
|
|
3002
3247
|
target: t
|
|
3003
3248
|
}) : void 0,
|
|
3004
|
-
builderTargetOffset: n ?
|
|
3249
|
+
builderTargetOffset: n ? Ce({
|
|
3005
3250
|
event: e,
|
|
3006
3251
|
target: n
|
|
3007
3252
|
}) : void 0,
|
|
3008
3253
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3009
3254
|
}
|
|
3010
3255
|
};
|
|
3011
|
-
},
|
|
3012
|
-
var l,
|
|
3013
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3256
|
+
}, Nn = (e) => {
|
|
3257
|
+
var l, a;
|
|
3258
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
|
|
3014
3259
|
let o = "";
|
|
3015
3260
|
if (i && t && n && (o += `
|
|
3016
3261
|
@font-face {
|
|
@@ -3020,29 +3265,29 @@ font-display: fallback;
|
|
|
3020
3265
|
font-weight: 400;
|
|
3021
3266
|
}
|
|
3022
3267
|
`.trim()), e.files)
|
|
3023
|
-
for (const
|
|
3024
|
-
if (!(String(Number(
|
|
3268
|
+
for (const r in e.files) {
|
|
3269
|
+
if (!(String(Number(r)) === r))
|
|
3025
3270
|
continue;
|
|
3026
|
-
const
|
|
3027
|
-
|
|
3271
|
+
const u = e.files[r];
|
|
3272
|
+
u && u !== i && (o += `
|
|
3028
3273
|
@font-face {
|
|
3029
3274
|
font-family: "${t}";
|
|
3030
|
-
src: url('${
|
|
3275
|
+
src: url('${u}') format('woff2');
|
|
3031
3276
|
font-display: fallback;
|
|
3032
|
-
font-weight: ${
|
|
3277
|
+
font-weight: ${r};
|
|
3033
3278
|
}
|
|
3034
3279
|
`.trim());
|
|
3035
3280
|
}
|
|
3036
3281
|
return o;
|
|
3037
|
-
},
|
|
3282
|
+
}, Wn = ({
|
|
3038
3283
|
customFonts: e
|
|
3039
3284
|
}) => {
|
|
3040
3285
|
var t;
|
|
3041
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3042
|
-
},
|
|
3286
|
+
return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3287
|
+
}, Fn = ({
|
|
3043
3288
|
cssCode: e,
|
|
3044
3289
|
contentId: t
|
|
3045
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3290
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
|
|
3046
3291
|
.builder-button {
|
|
3047
3292
|
all: unset;
|
|
3048
3293
|
}
|
|
@@ -3059,39 +3304,39 @@ font-weight: ${a};
|
|
|
3059
3304
|
text-align: inherit;
|
|
3060
3305
|
font-family: inherit;
|
|
3061
3306
|
}
|
|
3062
|
-
`,
|
|
3063
|
-
function
|
|
3064
|
-
var
|
|
3307
|
+
`, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
|
|
3308
|
+
function On(e) {
|
|
3309
|
+
var P, A, O, v, w, W, b;
|
|
3065
3310
|
const t = ee(null);
|
|
3066
|
-
function n(
|
|
3067
|
-
var
|
|
3068
|
-
const
|
|
3311
|
+
function n(h) {
|
|
3312
|
+
var x, k;
|
|
3313
|
+
const y = {
|
|
3069
3314
|
...e.builderContextSignal.rootState,
|
|
3070
|
-
...
|
|
3315
|
+
...h
|
|
3071
3316
|
};
|
|
3072
|
-
e.builderContextSignal.rootSetState ? (
|
|
3073
|
-
...
|
|
3074
|
-
rootState:
|
|
3317
|
+
e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, y) : e.setBuilderContextSignal((T) => ({
|
|
3318
|
+
...T,
|
|
3319
|
+
rootState: y
|
|
3075
3320
|
}));
|
|
3076
3321
|
}
|
|
3077
|
-
function i(
|
|
3078
|
-
var
|
|
3079
|
-
const
|
|
3322
|
+
function i(h) {
|
|
3323
|
+
var x, k, T, N, j;
|
|
3324
|
+
const y = {
|
|
3080
3325
|
...e.builderContextSignal.content,
|
|
3081
|
-
...
|
|
3326
|
+
...h,
|
|
3082
3327
|
data: {
|
|
3083
|
-
...(
|
|
3084
|
-
...
|
|
3328
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
|
|
3329
|
+
...h == null ? void 0 : h.data
|
|
3085
3330
|
},
|
|
3086
3331
|
meta: {
|
|
3087
|
-
...(
|
|
3088
|
-
...
|
|
3089
|
-
breakpoints: ((
|
|
3332
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3333
|
+
...h == null ? void 0 : h.meta,
|
|
3334
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
|
|
3090
3335
|
}
|
|
3091
3336
|
};
|
|
3092
|
-
e.setBuilderContextSignal((
|
|
3093
|
-
|
|
3094
|
-
content:
|
|
3337
|
+
e.setBuilderContextSignal((F) => ({
|
|
3338
|
+
...F,
|
|
3339
|
+
content: y
|
|
3095
3340
|
}));
|
|
3096
3341
|
}
|
|
3097
3342
|
function o() {
|
|
@@ -3100,37 +3345,37 @@ function $n(e) {
|
|
|
3100
3345
|
"aria-hidden": !0
|
|
3101
3346
|
};
|
|
3102
3347
|
}
|
|
3103
|
-
const [l,
|
|
3348
|
+
const [l, a] = C(
|
|
3104
3349
|
() => e.contentWrapper || "div"
|
|
3105
3350
|
);
|
|
3106
|
-
function
|
|
3107
|
-
return
|
|
3351
|
+
function r(h) {
|
|
3352
|
+
return Ye({
|
|
3108
3353
|
model: e.model,
|
|
3109
3354
|
trustedHosts: e.trustedHosts,
|
|
3110
3355
|
callbacks: {
|
|
3111
|
-
configureSdk: (
|
|
3112
|
-
var
|
|
3113
|
-
const { breakpoints:
|
|
3114
|
-
!
|
|
3356
|
+
configureSdk: (y) => {
|
|
3357
|
+
var T;
|
|
3358
|
+
const { breakpoints: x, contentId: k } = y;
|
|
3359
|
+
!k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || x && i({
|
|
3115
3360
|
meta: {
|
|
3116
|
-
breakpoints:
|
|
3361
|
+
breakpoints: x
|
|
3117
3362
|
}
|
|
3118
3363
|
});
|
|
3119
3364
|
},
|
|
3120
|
-
animation: (
|
|
3121
|
-
|
|
3365
|
+
animation: (y) => {
|
|
3366
|
+
Ne(y);
|
|
3122
3367
|
},
|
|
3123
|
-
contentUpdate: (
|
|
3124
|
-
i(
|
|
3368
|
+
contentUpdate: (y) => {
|
|
3369
|
+
i(y);
|
|
3125
3370
|
}
|
|
3126
3371
|
}
|
|
3127
|
-
})(
|
|
3372
|
+
})(h);
|
|
3128
3373
|
}
|
|
3129
3374
|
function c() {
|
|
3130
|
-
var
|
|
3131
|
-
const
|
|
3132
|
-
|
|
3133
|
-
code:
|
|
3375
|
+
var y, x;
|
|
3376
|
+
const h = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.jsCode;
|
|
3377
|
+
h && K({
|
|
3378
|
+
code: h,
|
|
3134
3379
|
context: e.context || {},
|
|
3135
3380
|
localState: void 0,
|
|
3136
3381
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3141,35 +3386,35 @@ function $n(e) {
|
|
|
3141
3386
|
enableCache: !1
|
|
3142
3387
|
});
|
|
3143
3388
|
}
|
|
3144
|
-
const [
|
|
3145
|
-
function I(
|
|
3146
|
-
var
|
|
3389
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3390
|
+
function I(h) {
|
|
3391
|
+
var y, x;
|
|
3147
3392
|
if (e.builderContextSignal.content) {
|
|
3148
|
-
const
|
|
3149
|
-
|
|
3393
|
+
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
|
|
3394
|
+
he({
|
|
3150
3395
|
type: "click",
|
|
3151
3396
|
canTrack: Q(e.canTrack),
|
|
3152
|
-
contentId:
|
|
3397
|
+
contentId: T,
|
|
3153
3398
|
apiKey: e.apiKey,
|
|
3154
|
-
variationId:
|
|
3155
|
-
...
|
|
3156
|
-
unique: !
|
|
3399
|
+
variationId: k !== T ? k : void 0,
|
|
3400
|
+
...An(h),
|
|
3401
|
+
unique: !g
|
|
3157
3402
|
});
|
|
3158
3403
|
}
|
|
3159
|
-
|
|
3404
|
+
g || p(!0);
|
|
3160
3405
|
}
|
|
3161
|
-
function
|
|
3162
|
-
var
|
|
3163
|
-
const
|
|
3164
|
-
Object.entries(
|
|
3165
|
-
if (!
|
|
3406
|
+
function S() {
|
|
3407
|
+
var y, x, k;
|
|
3408
|
+
const h = (k = (x = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : x.httpRequests) != null ? k : {};
|
|
3409
|
+
Object.entries(h).forEach(([T, N]) => {
|
|
3410
|
+
if (!N || d[T] || u[T] && !$())
|
|
3166
3411
|
return;
|
|
3167
|
-
|
|
3168
|
-
const
|
|
3412
|
+
d[T] = !0;
|
|
3413
|
+
const j = N.replace(
|
|
3169
3414
|
/{{([^}]+)}}/g,
|
|
3170
|
-
(
|
|
3415
|
+
(F, Me) => String(
|
|
3171
3416
|
K({
|
|
3172
|
-
code:
|
|
3417
|
+
code: Me,
|
|
3173
3418
|
context: e.context || {},
|
|
3174
3419
|
localState: void 0,
|
|
3175
3420
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3178,24 +3423,24 @@ function $n(e) {
|
|
|
3178
3423
|
})
|
|
3179
3424
|
)
|
|
3180
3425
|
);
|
|
3181
|
-
|
|
3426
|
+
Ge(j).then((F) => F.json()).then((F) => {
|
|
3182
3427
|
n({
|
|
3183
|
-
[
|
|
3184
|
-
}),
|
|
3185
|
-
}).catch((
|
|
3186
|
-
console.error("error fetching dynamic data",
|
|
3428
|
+
[T]: F
|
|
3429
|
+
}), u[T] = !0;
|
|
3430
|
+
}).catch((F) => {
|
|
3431
|
+
console.error("error fetching dynamic data", N, F);
|
|
3187
3432
|
}).finally(() => {
|
|
3188
|
-
|
|
3433
|
+
d[T] = !1;
|
|
3189
3434
|
});
|
|
3190
3435
|
});
|
|
3191
3436
|
}
|
|
3192
3437
|
function R() {
|
|
3193
|
-
|
|
3438
|
+
$() && window.dispatchEvent(
|
|
3194
3439
|
new CustomEvent(
|
|
3195
3440
|
"builder:component:stateChange",
|
|
3196
3441
|
{
|
|
3197
3442
|
detail: {
|
|
3198
|
-
state:
|
|
3443
|
+
state: de(e.builderContextSignal.rootState),
|
|
3199
3444
|
ref: {
|
|
3200
3445
|
name: e.model
|
|
3201
3446
|
}
|
|
@@ -3204,10 +3449,10 @@ function $n(e) {
|
|
|
3204
3449
|
)
|
|
3205
3450
|
);
|
|
3206
3451
|
}
|
|
3207
|
-
return
|
|
3208
|
-
var
|
|
3452
|
+
return B(() => {
|
|
3453
|
+
var h, y;
|
|
3209
3454
|
if (G()) {
|
|
3210
|
-
if (
|
|
3455
|
+
if ($() && (window.addEventListener("message", r), qe(), _e({
|
|
3211
3456
|
...e.locale ? {
|
|
3212
3457
|
locale: e.locale
|
|
3213
3458
|
} : {},
|
|
@@ -3219,98 +3464,98 @@ function $n(e) {
|
|
|
3219
3464
|
} : {}
|
|
3220
3465
|
}), Object.values(
|
|
3221
3466
|
e.builderContextSignal.componentInfos
|
|
3222
|
-
).forEach((
|
|
3223
|
-
var
|
|
3224
|
-
const
|
|
3225
|
-
(
|
|
3467
|
+
).forEach((k) => {
|
|
3468
|
+
var N;
|
|
3469
|
+
const T = ze(k);
|
|
3470
|
+
(N = window.parent) == null || N.postMessage(T, "*");
|
|
3226
3471
|
}), window.addEventListener(
|
|
3227
3472
|
"builder:component:stateChangeListenerActivated",
|
|
3228
3473
|
R
|
|
3229
3474
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3230
|
-
const
|
|
3231
|
-
|
|
3475
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
|
|
3476
|
+
he({
|
|
3232
3477
|
type: "impression",
|
|
3233
3478
|
canTrack: !0,
|
|
3234
|
-
contentId:
|
|
3235
|
-
apiKey:
|
|
3236
|
-
variationId:
|
|
3479
|
+
contentId: T,
|
|
3480
|
+
apiKey: N,
|
|
3481
|
+
variationId: k !== T ? k : void 0
|
|
3237
3482
|
});
|
|
3238
3483
|
}
|
|
3239
|
-
if (
|
|
3240
|
-
const
|
|
3241
|
-
`builder.preview.${
|
|
3242
|
-
),
|
|
3243
|
-
|
|
3484
|
+
if (Je() && !$()) {
|
|
3485
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3486
|
+
`builder.preview.${T}`
|
|
3487
|
+
), j = k.get("apiKey") || k.get("builder.space");
|
|
3488
|
+
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && Ie({
|
|
3244
3489
|
model: e.model,
|
|
3245
3490
|
apiKey: e.apiKey,
|
|
3246
3491
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3247
|
-
}).then((
|
|
3248
|
-
|
|
3492
|
+
}).then((F) => {
|
|
3493
|
+
F && i(F);
|
|
3249
3494
|
});
|
|
3250
3495
|
}
|
|
3251
3496
|
}
|
|
3252
|
-
}, []),
|
|
3497
|
+
}, []), B(() => {
|
|
3253
3498
|
e.apiKey || Z.error(
|
|
3254
|
-
"No API key provided to `
|
|
3255
|
-
), c(),
|
|
3256
|
-
}, []),
|
|
3499
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3500
|
+
), c(), S(), R();
|
|
3501
|
+
}, []), B(() => {
|
|
3257
3502
|
e.content && i(e.content);
|
|
3258
|
-
}, [e.content]),
|
|
3503
|
+
}, [e.content]), B(() => {
|
|
3259
3504
|
c();
|
|
3260
|
-
}, [(
|
|
3261
|
-
|
|
3262
|
-
}, [(
|
|
3505
|
+
}, [(A = (P = e.builderContextSignal.content) == null ? void 0 : P.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3506
|
+
S();
|
|
3507
|
+
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), B(() => {
|
|
3263
3508
|
R();
|
|
3264
|
-
}, [e.builderContextSignal.rootState]),
|
|
3509
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3265
3510
|
e.data && n(e.data);
|
|
3266
|
-
}, [e.data]),
|
|
3511
|
+
}, [e.data]), B(() => {
|
|
3267
3512
|
e.locale && n({
|
|
3268
3513
|
locale: e.locale
|
|
3269
3514
|
});
|
|
3270
|
-
}, [e.locale]),
|
|
3271
|
-
G() && (window.removeEventListener("message",
|
|
3515
|
+
}, [e.locale]), B(() => () => {
|
|
3516
|
+
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3272
3517
|
"builder:component:stateChangeListenerActivated",
|
|
3273
3518
|
R
|
|
3274
3519
|
));
|
|
3275
|
-
}, []), /* @__PURE__ */ s(
|
|
3520
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3276
3521
|
l,
|
|
3277
3522
|
{
|
|
3278
3523
|
ref: t,
|
|
3279
|
-
onClick: (
|
|
3280
|
-
"builder-content-id": (
|
|
3524
|
+
onClick: (h) => I(h),
|
|
3525
|
+
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3281
3526
|
"builder-model": e.model,
|
|
3282
3527
|
...o(),
|
|
3283
3528
|
...e.contentWrapperProps,
|
|
3284
|
-
className:
|
|
3285
|
-
((
|
|
3529
|
+
className: Ln(
|
|
3530
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3286
3531
|
),
|
|
3287
3532
|
children: e.children
|
|
3288
3533
|
}
|
|
3289
3534
|
) : null });
|
|
3290
3535
|
}
|
|
3291
|
-
function
|
|
3536
|
+
function jn(e) {
|
|
3292
3537
|
const [t, n] = C(
|
|
3293
3538
|
() => `
|
|
3294
|
-
${
|
|
3539
|
+
${Fn({
|
|
3295
3540
|
cssCode: e.cssCode,
|
|
3296
3541
|
contentId: e.contentId
|
|
3297
3542
|
})}
|
|
3298
|
-
${
|
|
3543
|
+
${Wn({
|
|
3299
3544
|
customFonts: e.customFonts
|
|
3300
3545
|
})}
|
|
3301
|
-
${
|
|
3546
|
+
${Dn(e.isNestedRender)}
|
|
3302
3547
|
`.trim()
|
|
3303
3548
|
);
|
|
3304
|
-
return /* @__PURE__ */ s(
|
|
3549
|
+
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3305
3550
|
}
|
|
3306
|
-
const
|
|
3551
|
+
const Un = ({
|
|
3307
3552
|
content: e,
|
|
3308
3553
|
data: t,
|
|
3309
3554
|
locale: n
|
|
3310
3555
|
}) => {
|
|
3311
|
-
var l,
|
|
3556
|
+
var l, a, r;
|
|
3312
3557
|
const i = {}, o = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
|
|
3313
|
-
return (
|
|
3558
|
+
return (r = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || r.forEach((c) => {
|
|
3314
3559
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
3315
3560
|
}), {
|
|
3316
3561
|
...i,
|
|
@@ -3320,7 +3565,7 @@ const Ln = ({
|
|
|
3320
3565
|
locale: n
|
|
3321
3566
|
} : {}
|
|
3322
3567
|
};
|
|
3323
|
-
},
|
|
3568
|
+
}, Mn = ({
|
|
3324
3569
|
content: e,
|
|
3325
3570
|
data: t
|
|
3326
3571
|
}) => e ? {
|
|
@@ -3331,46 +3576,46 @@ const Ln = ({
|
|
|
3331
3576
|
},
|
|
3332
3577
|
meta: e == null ? void 0 : e.meta
|
|
3333
3578
|
} : void 0;
|
|
3334
|
-
function
|
|
3335
|
-
var c, d, m,
|
|
3579
|
+
function Te(e) {
|
|
3580
|
+
var c, u, f, d, m, g, p;
|
|
3336
3581
|
const [t, n] = C(
|
|
3337
3582
|
() => {
|
|
3338
|
-
var I,
|
|
3339
|
-
return
|
|
3583
|
+
var I, S;
|
|
3584
|
+
return Vn({
|
|
3340
3585
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3341
3586
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3342
3587
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3343
|
-
contentId: (
|
|
3588
|
+
contentId: (S = e.content) == null ? void 0 : S.id
|
|
3344
3589
|
});
|
|
3345
3590
|
}
|
|
3346
3591
|
);
|
|
3347
3592
|
function i(I) {
|
|
3348
|
-
|
|
3349
|
-
...
|
|
3593
|
+
r((S) => ({
|
|
3594
|
+
...S,
|
|
3350
3595
|
rootState: I
|
|
3351
3596
|
}));
|
|
3352
3597
|
}
|
|
3353
3598
|
const [o, l] = C(
|
|
3354
3599
|
() => [
|
|
3355
|
-
...
|
|
3600
|
+
...ve(),
|
|
3356
3601
|
...e.customComponents || []
|
|
3357
3602
|
].reduce(
|
|
3358
|
-
(I, { component:
|
|
3603
|
+
(I, { component: S, ...R }) => ({
|
|
3359
3604
|
...I,
|
|
3360
3605
|
[R.name]: {
|
|
3361
|
-
component:
|
|
3362
|
-
...
|
|
3606
|
+
component: S,
|
|
3607
|
+
...ge(R)
|
|
3363
3608
|
}
|
|
3364
3609
|
}),
|
|
3365
3610
|
{}
|
|
3366
3611
|
)
|
|
3367
|
-
), [
|
|
3368
|
-
content:
|
|
3612
|
+
), [a, r] = C(() => ({
|
|
3613
|
+
content: Mn({
|
|
3369
3614
|
content: e.content,
|
|
3370
3615
|
data: e.data
|
|
3371
3616
|
}),
|
|
3372
3617
|
localState: void 0,
|
|
3373
|
-
rootState:
|
|
3618
|
+
rootState: Un({
|
|
3374
3619
|
content: e.content,
|
|
3375
3620
|
data: e.data,
|
|
3376
3621
|
locale: e.locale
|
|
@@ -3380,12 +3625,12 @@ function ve(e) {
|
|
|
3380
3625
|
apiKey: e.apiKey,
|
|
3381
3626
|
apiVersion: e.apiVersion,
|
|
3382
3627
|
componentInfos: [
|
|
3383
|
-
...
|
|
3628
|
+
...ve(),
|
|
3384
3629
|
...e.customComponents || []
|
|
3385
3630
|
].reduce(
|
|
3386
|
-
(I, { component:
|
|
3631
|
+
(I, { component: S, ...R }) => ({
|
|
3387
3632
|
...I,
|
|
3388
|
-
[R.name]:
|
|
3633
|
+
[R.name]: ge(R)
|
|
3389
3634
|
}),
|
|
3390
3635
|
{}
|
|
3391
3636
|
),
|
|
@@ -3394,13 +3639,13 @@ function ve(e) {
|
|
|
3394
3639
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3395
3640
|
}));
|
|
3396
3641
|
return /* @__PURE__ */ s(
|
|
3397
|
-
|
|
3642
|
+
Ve.Provider,
|
|
3398
3643
|
{
|
|
3399
3644
|
value: {
|
|
3400
3645
|
registeredComponents: o
|
|
3401
3646
|
},
|
|
3402
3647
|
children: /* @__PURE__ */ V(
|
|
3403
|
-
|
|
3648
|
+
On,
|
|
3404
3649
|
{
|
|
3405
3650
|
content: e.content,
|
|
3406
3651
|
data: e.data,
|
|
@@ -3411,34 +3656,34 @@ function ve(e) {
|
|
|
3411
3656
|
locale: e.locale,
|
|
3412
3657
|
enrich: e.enrich,
|
|
3413
3658
|
showContent: e.showContent,
|
|
3414
|
-
builderContextSignal:
|
|
3659
|
+
builderContextSignal: a,
|
|
3415
3660
|
contentWrapper: e.contentWrapper,
|
|
3416
3661
|
contentWrapperProps: e.contentWrapperProps,
|
|
3417
3662
|
linkComponent: e.linkComponent,
|
|
3418
3663
|
trustedHosts: e.trustedHosts,
|
|
3419
|
-
setBuilderContextSignal:
|
|
3664
|
+
setBuilderContextSignal: r,
|
|
3420
3665
|
children: [
|
|
3421
3666
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3422
|
-
|
|
3667
|
+
ce,
|
|
3423
3668
|
{
|
|
3424
3669
|
id: "builderio-variant-visibility",
|
|
3425
3670
|
scriptStr: t
|
|
3426
3671
|
}
|
|
3427
3672
|
) : null,
|
|
3428
3673
|
/* @__PURE__ */ s(
|
|
3429
|
-
|
|
3674
|
+
jn,
|
|
3430
3675
|
{
|
|
3431
3676
|
isNestedRender: e.isNestedRender,
|
|
3432
|
-
contentId: (c =
|
|
3433
|
-
cssCode: (
|
|
3434
|
-
customFonts: (
|
|
3677
|
+
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3678
|
+
cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
|
|
3679
|
+
customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
|
|
3435
3680
|
}
|
|
3436
3681
|
),
|
|
3437
3682
|
/* @__PURE__ */ s(
|
|
3438
|
-
|
|
3683
|
+
D,
|
|
3439
3684
|
{
|
|
3440
|
-
blocks: (
|
|
3441
|
-
context:
|
|
3685
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3686
|
+
context: a,
|
|
3442
3687
|
registeredComponents: o,
|
|
3443
3688
|
linkComponent: e.linkComponent
|
|
3444
3689
|
}
|
|
@@ -3449,66 +3694,66 @@ function ve(e) {
|
|
|
3449
3694
|
}
|
|
3450
3695
|
);
|
|
3451
3696
|
}
|
|
3452
|
-
function
|
|
3453
|
-
var
|
|
3697
|
+
function Hn(e) {
|
|
3698
|
+
var a;
|
|
3454
3699
|
const [t, n] = C(
|
|
3455
|
-
() =>
|
|
3700
|
+
() => In({
|
|
3456
3701
|
canTrack: Q(e.canTrack),
|
|
3457
3702
|
content: e.content
|
|
3458
3703
|
})
|
|
3459
3704
|
);
|
|
3460
3705
|
function i() {
|
|
3461
|
-
var
|
|
3462
|
-
return
|
|
3706
|
+
var r;
|
|
3707
|
+
return Rn(
|
|
3463
3708
|
J(e.content).map((c) => ({
|
|
3464
3709
|
id: c.testVariationId,
|
|
3465
3710
|
testRatio: c.testRatio
|
|
3466
3711
|
})),
|
|
3467
|
-
((
|
|
3712
|
+
((r = e.content) == null ? void 0 : r.id) || ""
|
|
3468
3713
|
);
|
|
3469
3714
|
}
|
|
3470
3715
|
function o() {
|
|
3471
|
-
return J(e.content).map((
|
|
3716
|
+
return J(e.content).map((r) => `.variant-${r.testVariationId} { display: none; } `).join("");
|
|
3472
3717
|
}
|
|
3473
3718
|
function l() {
|
|
3474
|
-
var
|
|
3719
|
+
var r;
|
|
3475
3720
|
return t ? {
|
|
3476
3721
|
...e.content,
|
|
3477
|
-
testVariationId: (
|
|
3478
|
-
} :
|
|
3722
|
+
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3723
|
+
} : Qe({
|
|
3479
3724
|
item: e.content,
|
|
3480
3725
|
canTrack: Q(e.canTrack)
|
|
3481
3726
|
});
|
|
3482
3727
|
}
|
|
3483
|
-
return
|
|
3484
|
-
}, []), /* @__PURE__ */ V(
|
|
3728
|
+
return B(() => {
|
|
3729
|
+
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3485
3730
|
!e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
|
|
3486
|
-
|
|
3731
|
+
ce,
|
|
3487
3732
|
{
|
|
3488
3733
|
id: "builderio-init-variants-fns",
|
|
3489
|
-
scriptStr:
|
|
3734
|
+
scriptStr: En()
|
|
3490
3735
|
}
|
|
3491
3736
|
) : null,
|
|
3492
|
-
t ? /* @__PURE__ */ V(
|
|
3737
|
+
t ? /* @__PURE__ */ V(E, { children: [
|
|
3493
3738
|
/* @__PURE__ */ s(
|
|
3494
|
-
|
|
3739
|
+
ne,
|
|
3495
3740
|
{
|
|
3496
3741
|
id: "builderio-variants",
|
|
3497
3742
|
styles: o()
|
|
3498
3743
|
}
|
|
3499
3744
|
),
|
|
3500
3745
|
/* @__PURE__ */ s(
|
|
3501
|
-
|
|
3746
|
+
ce,
|
|
3502
3747
|
{
|
|
3503
3748
|
id: "builderio-variants-visibility",
|
|
3504
3749
|
scriptStr: i()
|
|
3505
3750
|
}
|
|
3506
3751
|
),
|
|
3507
|
-
(
|
|
3508
|
-
|
|
3752
|
+
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3753
|
+
Te,
|
|
3509
3754
|
{
|
|
3510
3755
|
isNestedRender: e.isNestedRender,
|
|
3511
|
-
content:
|
|
3756
|
+
content: r,
|
|
3512
3757
|
showContent: !1,
|
|
3513
3758
|
model: e.model,
|
|
3514
3759
|
data: e.data,
|
|
@@ -3527,11 +3772,11 @@ function jn(e) {
|
|
|
3527
3772
|
contentWrapperProps: e.contentWrapperProps,
|
|
3528
3773
|
trustedHosts: e.trustedHosts
|
|
3529
3774
|
},
|
|
3530
|
-
|
|
3775
|
+
r.testVariationId
|
|
3531
3776
|
))
|
|
3532
3777
|
] }) : null,
|
|
3533
3778
|
/* @__PURE__ */ s(
|
|
3534
|
-
|
|
3779
|
+
Te,
|
|
3535
3780
|
{
|
|
3536
3781
|
isNestedRender: e.isNestedRender,
|
|
3537
3782
|
content: l(),
|
|
@@ -3556,13 +3801,13 @@ function jn(e) {
|
|
|
3556
3801
|
)
|
|
3557
3802
|
] });
|
|
3558
3803
|
}
|
|
3559
|
-
const
|
|
3804
|
+
const Kn = async ({
|
|
3560
3805
|
builderContextValue: e,
|
|
3561
3806
|
symbol: t
|
|
3562
3807
|
}) => {
|
|
3563
3808
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3564
3809
|
(e != null && e.apiKey))
|
|
3565
|
-
return
|
|
3810
|
+
return Ie({
|
|
3566
3811
|
model: t.model,
|
|
3567
3812
|
apiKey: e.apiKey,
|
|
3568
3813
|
apiVersion: e.apiVersion,
|
|
@@ -3575,8 +3820,8 @@ const Mn = async ({
|
|
|
3575
3820
|
Z.error("Could not fetch symbol content: ", n);
|
|
3576
3821
|
});
|
|
3577
3822
|
};
|
|
3578
|
-
function
|
|
3579
|
-
var
|
|
3823
|
+
function qn(e) {
|
|
3824
|
+
var r, c, u, f;
|
|
3580
3825
|
function t() {
|
|
3581
3826
|
return "div";
|
|
3582
3827
|
}
|
|
@@ -3584,46 +3829,46 @@ function Un(e) {
|
|
|
3584
3829
|
return "div";
|
|
3585
3830
|
}
|
|
3586
3831
|
function i() {
|
|
3587
|
-
var
|
|
3832
|
+
var d, m;
|
|
3588
3833
|
return [
|
|
3589
3834
|
e.attributes[H()],
|
|
3590
3835
|
"builder-symbol",
|
|
3591
|
-
(
|
|
3592
|
-
(
|
|
3836
|
+
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3837
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3593
3838
|
].filter(Boolean).join(" ");
|
|
3594
3839
|
}
|
|
3595
3840
|
const [o, l] = C(() => {
|
|
3596
|
-
var
|
|
3597
|
-
return (
|
|
3841
|
+
var d;
|
|
3842
|
+
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3598
3843
|
});
|
|
3599
|
-
function
|
|
3600
|
-
o ||
|
|
3844
|
+
function a() {
|
|
3845
|
+
o || Kn({
|
|
3601
3846
|
symbol: e.symbol,
|
|
3602
3847
|
builderContextValue: e.builderContext
|
|
3603
|
-
}).then((
|
|
3604
|
-
|
|
3848
|
+
}).then((d) => {
|
|
3849
|
+
d && l(d);
|
|
3605
3850
|
});
|
|
3606
3851
|
}
|
|
3607
|
-
return
|
|
3608
|
-
}, []),
|
|
3609
|
-
|
|
3852
|
+
return B(() => {
|
|
3853
|
+
}, []), B(() => {
|
|
3854
|
+
a();
|
|
3610
3855
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3611
|
-
|
|
3856
|
+
Hn,
|
|
3612
3857
|
{
|
|
3613
3858
|
isNestedRender: !0,
|
|
3614
3859
|
apiVersion: e.builderContext.apiVersion,
|
|
3615
3860
|
apiKey: e.builderContext.apiKey,
|
|
3616
3861
|
context: {
|
|
3617
3862
|
...e.builderContext.context,
|
|
3618
|
-
symbolId: (
|
|
3863
|
+
symbolId: (r = e.builderBlock) == null ? void 0 : r.id
|
|
3619
3864
|
},
|
|
3620
3865
|
customComponents: Object.values(e.builderComponents),
|
|
3621
3866
|
data: {
|
|
3622
3867
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3623
3868
|
...e.builderContext.localState,
|
|
3624
|
-
...(
|
|
3869
|
+
...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
|
|
3625
3870
|
},
|
|
3626
|
-
model: (
|
|
3871
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
3627
3872
|
content: o,
|
|
3628
3873
|
linkComponent: e.builderLinkComponent,
|
|
3629
3874
|
blocksWrapper: t(),
|
|
@@ -3632,15 +3877,15 @@ function Un(e) {
|
|
|
3632
3877
|
) });
|
|
3633
3878
|
}
|
|
3634
3879
|
export {
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3880
|
+
D as Blocks,
|
|
3881
|
+
me as BuilderContext,
|
|
3882
|
+
ot as Button,
|
|
3883
|
+
Wt as Columns,
|
|
3884
|
+
Hn as Content,
|
|
3885
|
+
Ft as Fragment,
|
|
3886
|
+
Lt as Image,
|
|
3887
|
+
Ot as Section,
|
|
3888
|
+
qn as Symbol,
|
|
3889
|
+
Qt as Text,
|
|
3890
|
+
vn as Video
|
|
3646
3891
|
};
|