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