@builder.io/sdk-react 1.0.27 → 1.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +29 -29
- package/lib/browser/blocks-exports.mjs +1031 -788
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +1 -1
- package/lib/browser/init.mjs +1 -1
- package/lib/browser/{server-entry-60c3f2b2.cjs → server-entry-29038134.cjs} +1 -1
- package/lib/browser/{server-entry-805a2c2a.js → server-entry-99f6be25.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-a922b6f1.js +131 -0
- package/lib/edge/accordion-cf80a119.cjs +1 -0
- package/lib/edge/{blocks-af5c8ecf.cjs → blocks-0b5854b9.cjs} +10 -10
- package/lib/edge/{blocks-a1399a78.js → blocks-2cd920f9.js} +198 -198
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-16076ac7.cjs → button-2e6cc4b7.cjs} +1 -1
- package/lib/edge/{button-0820a5bc.js → button-e343aea4.js} +2 -2
- package/lib/edge/{columns-688cc205.js → columns-5db55b04.js} +5 -5
- package/lib/edge/{columns-6b8c03be.cjs → columns-cf320d97.cjs} +2 -2
- package/lib/edge/content-variants-d7612a4d.cjs +134 -0
- package/lib/edge/{content-variants-efa4f81b.js → content-variants-dd520b38.js} +313 -192
- package/lib/edge/form-7248b44c.cjs +1 -0
- package/lib/edge/{form-cbe7d822.js → form-a0093dd2.js} +17 -19
- package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-890dc6a6.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-f14607dc.js} +1 -1
- package/lib/edge/{img-d3420f5d.cjs → img-960eef70.cjs} +1 -1
- package/lib/edge/{img-14849a5b.js → img-ff2f388e.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +1 -1
- package/lib/edge/init.mjs +1 -1
- package/lib/edge/{input-534b9f95.js → input-5934355a.js} +1 -1
- package/lib/edge/{input-07becc4d.cjs → input-e91374cc.cjs} +1 -1
- package/lib/edge/{select-b05ef24f.js → select-298649a8.js} +1 -1
- package/lib/edge/{select-e576d7d0.cjs → select-6e9fb36f.cjs} +1 -1
- package/lib/edge/{server-entry-ee324b22.cjs → server-entry-7feea5b4.cjs} +1 -1
- package/lib/edge/{server-entry-6aaf6054.js → server-entry-d8f1ea14.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-e139f9b4.cjs → slot-3a6d243c.cjs} +1 -1
- package/lib/edge/{slot-944437dd.js → slot-5676b4f4.js} +3 -3
- package/lib/edge/{symbol-75d1c60d.js → symbol-2df385d5.js} +2 -2
- package/lib/edge/{symbol-f7f42446.cjs → symbol-b5a02759.cjs} +1 -1
- package/lib/edge/tabs-036057d6.cjs +1 -0
- package/lib/edge/{tabs-62e415e1.js → tabs-c2055821.js} +20 -20
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +1034 -791
- 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-1bee7133.cjs → node-runtime-4dbd8a34.cjs} +1 -1
- package/lib/node/{node-runtime-e167306c.js → node-runtime-502f7164.js} +1 -1
- package/lib/node/{server-entry-db936548.cjs → server-entry-4c4c63b3.cjs} +1 -1
- package/lib/node/{server-entry-38fb2258.js → server-entry-95efff43.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/blocks/accordion/accordion.d.ts +4 -0
- package/types/blocks/accordion/accordion.types.d.ts +12 -0
- package/types/blocks/accordion/component-info.d.ts +2 -0
- package/types/blocks/accordion/helpers.d.ts +1 -0
- package/types/blocks/accordion/index.d.ts +1 -0
- package/types/components/block/animator.d.ts +0 -1
- package/types/components/content-variants/content-variants.types.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/camel-to-kebab-case.d.ts +1 -1
- package/lib/edge/content-variants-4679172a.cjs +0 -134
- package/lib/edge/form-91166ed6.cjs +0 -1
- package/lib/edge/tabs-4860ef6d.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
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
|
-
const
|
|
9
|
-
function
|
|
10
|
-
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 ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as _, isEditing as $, isBrowser as M, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-99f6be25.js";
|
|
7
|
+
import { createContext as Ee, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
|
|
8
|
+
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
|
+
function ue(e) {
|
|
10
|
+
return /* @__PURE__ */ s(E, { children: tt(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
12
|
const K = () => {
|
|
13
|
-
switch (
|
|
13
|
+
switch (_) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
16
16
|
case "rsc":
|
|
@@ -23,7 +23,7 @@ const K = () => {
|
|
|
23
23
|
return "class";
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
function
|
|
26
|
+
function nt(e) {
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
@@ -38,7 +38,7 @@ function Ze(e) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
return /* @__PURE__ */ s(
|
|
41
|
-
|
|
41
|
+
ue,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
44
44
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -47,7 +47,7 @@ function Ze(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const me = Ee({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -60,8 +60,8 @@ const ce = Te({
|
|
|
60
60
|
inheritedStyles: {},
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
62
|
BlocksWrapperProps: {}
|
|
63
|
-
}),
|
|
64
|
-
function
|
|
63
|
+
}), Ve = Ee({ registeredComponents: {} });
|
|
64
|
+
function it(e) {
|
|
65
65
|
var t;
|
|
66
66
|
return {
|
|
67
67
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -72,7 +72,7 @@ function et(e) {
|
|
|
72
72
|
builderBlock: e
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
const
|
|
75
|
+
const ot = ({
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n,
|
|
@@ -84,35 +84,35 @@ const tt = ({
|
|
|
84
84
|
builder: e,
|
|
85
85
|
context: t,
|
|
86
86
|
event: n
|
|
87
|
-
}),
|
|
88
|
-
isEditing:
|
|
89
|
-
isBrowser:
|
|
90
|
-
isServer: !
|
|
91
|
-
getUserAttributes: () =>
|
|
92
|
-
}),
|
|
87
|
+
}), at = () => ({
|
|
88
|
+
isEditing: $(),
|
|
89
|
+
isBrowser: M(),
|
|
90
|
+
isServer: !M(),
|
|
91
|
+
getUserAttributes: () => _e()
|
|
92
|
+
}), rt = (e, {
|
|
93
93
|
isExpression: t = !0
|
|
94
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
94
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
|
|
95
95
|
code: e,
|
|
96
96
|
builder: t,
|
|
97
97
|
context: n,
|
|
98
98
|
event: i,
|
|
99
99
|
localState: o,
|
|
100
|
-
rootSetState:
|
|
101
|
-
rootState:
|
|
100
|
+
rootSetState: r,
|
|
101
|
+
rootState: a
|
|
102
102
|
}) => {
|
|
103
|
-
const l =
|
|
103
|
+
const l = ot({
|
|
104
104
|
builder: t,
|
|
105
105
|
context: n,
|
|
106
106
|
event: i,
|
|
107
|
-
state:
|
|
108
|
-
rootState:
|
|
107
|
+
state: Be({
|
|
108
|
+
rootState: a,
|
|
109
109
|
localState: o,
|
|
110
|
-
rootSetState:
|
|
110
|
+
rootSetState: r
|
|
111
111
|
})
|
|
112
112
|
});
|
|
113
113
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
114
114
|
};
|
|
115
|
-
function
|
|
115
|
+
function Be({
|
|
116
116
|
rootState: e,
|
|
117
117
|
localState: t,
|
|
118
118
|
rootSetState: n
|
|
@@ -121,33 +121,33 @@ function Ee({
|
|
|
121
121
|
get: (i, o) => {
|
|
122
122
|
if (t && o in t)
|
|
123
123
|
return t[o];
|
|
124
|
-
const
|
|
125
|
-
return typeof
|
|
126
|
-
rootState:
|
|
124
|
+
const r = i[o];
|
|
125
|
+
return typeof r == "object" && r !== null ? Be({
|
|
126
|
+
rootState: r,
|
|
127
127
|
localState: void 0,
|
|
128
|
-
rootSetState: n ? (
|
|
129
|
-
i[o] =
|
|
128
|
+
rootSetState: n ? (a) => {
|
|
129
|
+
i[o] = a, n(i);
|
|
130
130
|
} : void 0
|
|
131
|
-
}) :
|
|
131
|
+
}) : r;
|
|
132
132
|
},
|
|
133
|
-
set: (i, o,
|
|
133
|
+
set: (i, o, r) => {
|
|
134
134
|
if (t && o in t)
|
|
135
135
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
136
|
-
return i[o] =
|
|
136
|
+
return i[o] = r, n == null || n(i), !0;
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function lt() {
|
|
141
141
|
var e;
|
|
142
142
|
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const st = () => {
|
|
145
145
|
var i;
|
|
146
|
-
if (!
|
|
146
|
+
if (!lt())
|
|
147
147
|
return !1;
|
|
148
148
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
149
149
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
150
|
-
},
|
|
150
|
+
}, ct = (e) => (M() || st(), pe(e)), L = class L {
|
|
151
151
|
static getCacheKey(t) {
|
|
152
152
|
return JSON.stringify({
|
|
153
153
|
...t,
|
|
@@ -165,7 +165,7 @@ const at = () => {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
|
|
168
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
169
169
|
let U = L;
|
|
170
170
|
function q({
|
|
171
171
|
code: e,
|
|
@@ -173,49 +173,49 @@ function q({
|
|
|
173
173
|
localState: n,
|
|
174
174
|
rootState: i,
|
|
175
175
|
rootSetState: o,
|
|
176
|
-
event:
|
|
177
|
-
isExpression:
|
|
176
|
+
event: r,
|
|
177
|
+
isExpression: a = !0,
|
|
178
178
|
enableCache: l
|
|
179
179
|
}) {
|
|
180
180
|
if (e === "")
|
|
181
181
|
return;
|
|
182
182
|
const c = {
|
|
183
|
-
code:
|
|
184
|
-
isExpression:
|
|
183
|
+
code: rt(e, {
|
|
184
|
+
isExpression: a
|
|
185
185
|
}),
|
|
186
|
-
builder:
|
|
186
|
+
builder: at(),
|
|
187
187
|
context: t,
|
|
188
|
-
event:
|
|
188
|
+
event: r,
|
|
189
189
|
rootSetState: o,
|
|
190
190
|
rootState: i,
|
|
191
191
|
localState: n
|
|
192
192
|
};
|
|
193
193
|
if (l) {
|
|
194
|
-
const
|
|
195
|
-
if (
|
|
196
|
-
return
|
|
194
|
+
const u = U.getCacheKey(c), f = U.getCachedValue(u);
|
|
195
|
+
if (f)
|
|
196
|
+
return f.value;
|
|
197
197
|
}
|
|
198
198
|
try {
|
|
199
|
-
const
|
|
199
|
+
const u = ct(c);
|
|
200
200
|
if (l) {
|
|
201
|
-
const
|
|
202
|
-
U.setCachedValue(
|
|
201
|
+
const f = U.getCacheKey(c);
|
|
202
|
+
U.setCachedValue(f, u);
|
|
203
203
|
}
|
|
204
|
-
return
|
|
205
|
-
} catch (
|
|
206
|
-
Z.error("Failed code evaluation: " +
|
|
204
|
+
return u;
|
|
205
|
+
} catch (u) {
|
|
206
|
+
Z.error("Failed code evaluation: " + u.message, {
|
|
207
207
|
code: e
|
|
208
208
|
});
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
const
|
|
212
|
+
const Pe = (e, t, n) => {
|
|
213
213
|
if (Object(e) !== e)
|
|
214
214
|
return e;
|
|
215
215
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
216
|
-
return i.slice(0, -1).reduce((o,
|
|
216
|
+
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
217
217
|
};
|
|
218
|
-
const
|
|
218
|
+
const dt = ({
|
|
219
219
|
block: e,
|
|
220
220
|
context: t,
|
|
221
221
|
localState: n,
|
|
@@ -224,17 +224,17 @@ const lt = ({
|
|
|
224
224
|
}) => {
|
|
225
225
|
if (!e.bindings)
|
|
226
226
|
return e;
|
|
227
|
-
const
|
|
228
|
-
...
|
|
227
|
+
const r = de(e), a = {
|
|
228
|
+
...r,
|
|
229
229
|
properties: {
|
|
230
|
-
...
|
|
230
|
+
...r.properties
|
|
231
231
|
},
|
|
232
232
|
actions: {
|
|
233
|
-
...
|
|
233
|
+
...r.actions
|
|
234
234
|
}
|
|
235
235
|
};
|
|
236
236
|
for (const l in e.bindings) {
|
|
237
|
-
const c = e.bindings[l],
|
|
237
|
+
const c = e.bindings[l], u = q({
|
|
238
238
|
code: c,
|
|
239
239
|
localState: n,
|
|
240
240
|
rootState: i,
|
|
@@ -242,9 +242,9 @@ const lt = ({
|
|
|
242
242
|
context: t,
|
|
243
243
|
enableCache: !0
|
|
244
244
|
});
|
|
245
|
-
|
|
245
|
+
Pe(a, l, u);
|
|
246
246
|
}
|
|
247
|
-
return
|
|
247
|
+
return a;
|
|
248
248
|
};
|
|
249
249
|
function X({
|
|
250
250
|
block: e,
|
|
@@ -252,27 +252,28 @@ function X({
|
|
|
252
252
|
shouldEvaluateBindings: n,
|
|
253
253
|
localState: i,
|
|
254
254
|
rootState: o,
|
|
255
|
-
rootSetState:
|
|
255
|
+
rootSetState: r
|
|
256
256
|
}) {
|
|
257
|
-
const
|
|
258
|
-
return n ?
|
|
259
|
-
block:
|
|
257
|
+
const a = e;
|
|
258
|
+
return n ? dt({
|
|
259
|
+
block: a,
|
|
260
260
|
localState: i,
|
|
261
261
|
rootState: o,
|
|
262
|
-
rootSetState:
|
|
262
|
+
rootSetState: r,
|
|
263
263
|
context: t
|
|
264
|
-
}) :
|
|
264
|
+
}) : a;
|
|
265
265
|
}
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
267
|
+
function ut(e, t, n = {}) {
|
|
268
|
+
let i, o, r, a = null, l = 0;
|
|
268
269
|
const c = function() {
|
|
269
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
270
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
270
271
|
};
|
|
271
272
|
return function() {
|
|
272
|
-
const
|
|
273
|
-
!l && n.leading === !1 && (l =
|
|
274
|
-
const
|
|
275
|
-
return i = this, o = arguments,
|
|
273
|
+
const u = Date.now();
|
|
274
|
+
!l && n.leading === !1 && (l = u);
|
|
275
|
+
const f = t - (u - l);
|
|
276
|
+
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
|
|
276
277
|
};
|
|
277
278
|
}
|
|
278
279
|
function H(e, ...t) {
|
|
@@ -280,124 +281,123 @@ function H(e, ...t) {
|
|
|
280
281
|
for (let i = 1; i < arguments.length; i++) {
|
|
281
282
|
const o = arguments[i];
|
|
282
283
|
if (o != null)
|
|
283
|
-
for (const
|
|
284
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
284
|
+
for (const r in o)
|
|
285
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
285
286
|
}
|
|
286
287
|
return n;
|
|
287
288
|
}
|
|
288
|
-
|
|
289
|
-
function ct(e) {
|
|
289
|
+
function mt(e) {
|
|
290
290
|
for (const t of e)
|
|
291
291
|
switch (t.trigger) {
|
|
292
292
|
case "pageLoad":
|
|
293
|
-
|
|
293
|
+
We(t);
|
|
294
294
|
break;
|
|
295
295
|
case "scrollInView":
|
|
296
|
-
|
|
296
|
+
ht(t);
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ae(e) {
|
|
301
301
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
302
302
|
}
|
|
303
|
-
function
|
|
304
|
-
const n =
|
|
305
|
-
for (const l of
|
|
303
|
+
function Ne(e, t) {
|
|
304
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
305
|
+
for (const l of a)
|
|
306
306
|
for (const c of n)
|
|
307
307
|
c in l || (l[c] = i[c]);
|
|
308
308
|
}
|
|
309
|
-
function
|
|
309
|
+
function ft(e) {
|
|
310
310
|
const t = [];
|
|
311
311
|
for (const n of e.steps)
|
|
312
312
|
for (const i in n.styles)
|
|
313
313
|
t.indexOf(i) === -1 && t.push(i);
|
|
314
314
|
return t;
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function We(e) {
|
|
317
317
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
318
318
|
if (!t.length) {
|
|
319
|
-
|
|
319
|
+
Ae(e.elementId || e.id || "");
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
Array.from(t).forEach((n) => {
|
|
323
|
-
|
|
324
|
-
n.style.transition = `all ${e.duration}s ${
|
|
323
|
+
Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
324
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
325
325
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
326
326
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
327
327
|
});
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
function
|
|
330
|
+
function ht(e) {
|
|
331
331
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
332
332
|
if (!t.length) {
|
|
333
|
-
|
|
333
|
+
Ae(e.elementId || e.id || "");
|
|
334
334
|
return;
|
|
335
335
|
}
|
|
336
336
|
Array.from(t).forEach((n) => {
|
|
337
|
-
|
|
337
|
+
Ne(e, n);
|
|
338
338
|
let i = !1, o = !1;
|
|
339
|
-
function
|
|
339
|
+
function r() {
|
|
340
340
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
341
|
-
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
341
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
342
342
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
343
343
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
344
344
|
})) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
345
345
|
}
|
|
346
|
-
const
|
|
346
|
+
const a = ut(r, 200, {
|
|
347
347
|
leading: !1
|
|
348
348
|
});
|
|
349
|
-
function l(
|
|
350
|
-
const
|
|
351
|
-
return
|
|
349
|
+
function l(f) {
|
|
350
|
+
const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
|
|
351
|
+
return d.bottom > p && d.top < m - p;
|
|
352
352
|
}
|
|
353
353
|
const c = e.steps[0].styles;
|
|
354
|
-
function
|
|
354
|
+
function u() {
|
|
355
355
|
H(n.style, c);
|
|
356
356
|
}
|
|
357
|
-
|
|
358
|
-
n.style.transition = `all ${e.duration}s ${
|
|
359
|
-
}), document.addEventListener("scroll",
|
|
357
|
+
u(), setTimeout(() => {
|
|
358
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
359
|
+
}), document.addEventListener("scroll", a, {
|
|
360
360
|
capture: !0,
|
|
361
361
|
passive: !0
|
|
362
|
-
}),
|
|
362
|
+
}), r();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
const
|
|
365
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
366
366
|
if (typeof i == "string")
|
|
367
|
-
return `${
|
|
368
|
-
}).filter(G),
|
|
367
|
+
return `${te(n)}: ${i};`;
|
|
368
|
+
}).filter(G), gt = (e) => Fe(e).join(`
|
|
369
369
|
`), J = ({
|
|
370
370
|
mediaQuery: e,
|
|
371
371
|
className: t,
|
|
372
372
|
styles: n
|
|
373
373
|
}) => {
|
|
374
374
|
const i = `.${t} {
|
|
375
|
-
${
|
|
375
|
+
${gt(n)}
|
|
376
376
|
}`;
|
|
377
377
|
return e ? `${e} {
|
|
378
378
|
${i}
|
|
379
379
|
}` : i;
|
|
380
380
|
};
|
|
381
|
-
function
|
|
381
|
+
function bt({
|
|
382
382
|
style: e
|
|
383
383
|
}) {
|
|
384
384
|
return e;
|
|
385
385
|
}
|
|
386
|
-
const
|
|
386
|
+
const pt = ({
|
|
387
387
|
block: e,
|
|
388
388
|
context: t
|
|
389
|
-
}) =>
|
|
389
|
+
}) => $e(bt({
|
|
390
390
|
style: e.style || {},
|
|
391
391
|
context: t,
|
|
392
392
|
block: e
|
|
393
393
|
}));
|
|
394
|
-
function
|
|
395
|
-
switch (
|
|
394
|
+
function $e(e) {
|
|
395
|
+
switch (_) {
|
|
396
396
|
case "svelte":
|
|
397
397
|
case "vue":
|
|
398
398
|
case "solid":
|
|
399
399
|
case "angular":
|
|
400
|
-
return
|
|
400
|
+
return Fe(e).join(" ");
|
|
401
401
|
case "qwik":
|
|
402
402
|
case "reactNative":
|
|
403
403
|
case "react":
|
|
@@ -405,20 +405,20 @@ function We(e) {
|
|
|
405
405
|
return e;
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
const
|
|
408
|
+
const yt = ({
|
|
409
409
|
block: e,
|
|
410
410
|
context: t,
|
|
411
411
|
registeredComponents: n
|
|
412
412
|
}) => {
|
|
413
|
-
var
|
|
414
|
-
const i = (
|
|
413
|
+
var r;
|
|
414
|
+
const i = (r = X({
|
|
415
415
|
block: e,
|
|
416
416
|
localState: t.localState,
|
|
417
417
|
rootState: t.rootState,
|
|
418
418
|
rootSetState: t.rootSetState,
|
|
419
419
|
context: t.context,
|
|
420
420
|
shouldEvaluateBindings: !1
|
|
421
|
-
}).component) == null ? void 0 :
|
|
421
|
+
}).component) == null ? void 0 : r.name;
|
|
422
422
|
if (!i)
|
|
423
423
|
return null;
|
|
424
424
|
const o = n[i];
|
|
@@ -427,7 +427,7 @@ const bt = ({
|
|
|
427
427
|
console.warn(`
|
|
428
428
|
Could not find a registered component named "${i}".
|
|
429
429
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
430
|
-
},
|
|
430
|
+
}, xt = ({
|
|
431
431
|
block: e,
|
|
432
432
|
context: t
|
|
433
433
|
}) => {
|
|
@@ -447,21 +447,21 @@ const bt = ({
|
|
|
447
447
|
});
|
|
448
448
|
if (!Array.isArray(o))
|
|
449
449
|
return;
|
|
450
|
-
const
|
|
451
|
-
return o.map((c,
|
|
450
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
451
|
+
return o.map((c, u) => ({
|
|
452
452
|
context: {
|
|
453
453
|
...t,
|
|
454
454
|
localState: {
|
|
455
455
|
...t.localState,
|
|
456
|
-
$index:
|
|
456
|
+
$index: u,
|
|
457
457
|
$item: c,
|
|
458
|
-
[
|
|
459
|
-
[`$${
|
|
458
|
+
[a]: c,
|
|
459
|
+
[`$${a}Index`]: u
|
|
460
460
|
}
|
|
461
461
|
},
|
|
462
462
|
block: i
|
|
463
463
|
}));
|
|
464
|
-
},
|
|
464
|
+
}, St = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), vt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), De = {
|
|
465
465
|
small: {
|
|
466
466
|
min: 320,
|
|
467
467
|
default: 321,
|
|
@@ -477,11 +477,11 @@ const bt = ({
|
|
|
477
477
|
default: 991,
|
|
478
478
|
max: 1200
|
|
479
479
|
}
|
|
480
|
-
},
|
|
480
|
+
}, ye = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Le = ({
|
|
481
481
|
small: e,
|
|
482
482
|
medium: t
|
|
483
483
|
}) => {
|
|
484
|
-
const n =
|
|
484
|
+
const n = de(De);
|
|
485
485
|
if (!e || !t)
|
|
486
486
|
return n;
|
|
487
487
|
const i = Math.floor(e / 2);
|
|
@@ -496,15 +496,15 @@ const bt = ({
|
|
|
496
496
|
min: o,
|
|
497
497
|
default: o + 1
|
|
498
498
|
};
|
|
499
|
-
const
|
|
499
|
+
const r = n.medium.max + 1;
|
|
500
500
|
return n.large = {
|
|
501
501
|
max: 2e3,
|
|
502
502
|
// TODO: decide upper limit
|
|
503
|
-
min:
|
|
504
|
-
default:
|
|
503
|
+
min: r,
|
|
504
|
+
default: r + 1
|
|
505
505
|
}, n;
|
|
506
506
|
};
|
|
507
|
-
function
|
|
507
|
+
function ne(e) {
|
|
508
508
|
return /* @__PURE__ */ s(
|
|
509
509
|
"style",
|
|
510
510
|
{
|
|
@@ -513,7 +513,7 @@ function te(e) {
|
|
|
513
513
|
}
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function kt(e) {
|
|
517
517
|
function t() {
|
|
518
518
|
const i = X({
|
|
519
519
|
block: e.block,
|
|
@@ -526,7 +526,7 @@ function St(e) {
|
|
|
526
526
|
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
527
527
|
}
|
|
528
528
|
function n() {
|
|
529
|
-
var
|
|
529
|
+
var x, R, B;
|
|
530
530
|
const i = X({
|
|
531
531
|
block: e.block,
|
|
532
532
|
localState: e.context.localState,
|
|
@@ -534,56 +534,56 @@ function St(e) {
|
|
|
534
534
|
rootSetState: e.context.rootSetState,
|
|
535
535
|
context: e.context.context,
|
|
536
536
|
shouldEvaluateBindings: !0
|
|
537
|
-
}), o = i.responsiveStyles,
|
|
538
|
-
((
|
|
539
|
-
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium,
|
|
540
|
-
if (!
|
|
537
|
+
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
538
|
+
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
539
|
+
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
540
|
+
if (!f)
|
|
541
541
|
return "";
|
|
542
|
-
const
|
|
543
|
-
className:
|
|
542
|
+
const d = l ? J({
|
|
543
|
+
className: f,
|
|
544
544
|
styles: l
|
|
545
|
-
}) : "",
|
|
546
|
-
className:
|
|
545
|
+
}) : "", m = c ? J({
|
|
546
|
+
className: f,
|
|
547
547
|
styles: c,
|
|
548
|
-
mediaQuery:
|
|
548
|
+
mediaQuery: ye(
|
|
549
549
|
"medium",
|
|
550
|
-
|
|
550
|
+
a
|
|
551
551
|
)
|
|
552
|
-
}) : "",
|
|
553
|
-
className:
|
|
554
|
-
styles:
|
|
555
|
-
mediaQuery:
|
|
552
|
+
}) : "", g = u ? J({
|
|
553
|
+
className: f,
|
|
554
|
+
styles: u,
|
|
555
|
+
mediaQuery: ye(
|
|
556
556
|
"small",
|
|
557
|
-
|
|
557
|
+
a
|
|
558
558
|
)
|
|
559
|
-
}) : "",
|
|
559
|
+
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
560
560
|
let I = "";
|
|
561
|
-
if (
|
|
562
|
-
const
|
|
561
|
+
if (p) {
|
|
562
|
+
const A = ((B = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
|
|
563
563
|
I = J({
|
|
564
|
-
className: `${
|
|
564
|
+
className: `${f}:hover`,
|
|
565
565
|
styles: {
|
|
566
|
-
...
|
|
567
|
-
transition: `all ${
|
|
568
|
-
|
|
566
|
+
...A,
|
|
567
|
+
transition: `all ${p.duration}s ${te(
|
|
568
|
+
p.easing
|
|
569
569
|
)}`,
|
|
570
|
-
transitionDelay:
|
|
570
|
+
transitionDelay: p.delay ? `${p.delay}s` : "0s"
|
|
571
571
|
}
|
|
572
572
|
}) || "";
|
|
573
573
|
}
|
|
574
574
|
return [
|
|
575
|
-
|
|
575
|
+
d,
|
|
576
|
+
m,
|
|
576
577
|
g,
|
|
577
|
-
y,
|
|
578
578
|
I
|
|
579
579
|
].join(" ");
|
|
580
580
|
}
|
|
581
|
-
return /* @__PURE__ */ s(
|
|
581
|
+
return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
582
582
|
}
|
|
583
|
-
function
|
|
583
|
+
function Ct(e) {
|
|
584
584
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
585
585
|
}
|
|
586
|
-
const
|
|
586
|
+
const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => q({
|
|
587
587
|
code: e,
|
|
588
588
|
context: t.context,
|
|
589
589
|
localState: t.localState,
|
|
@@ -593,66 +593,66 @@ const kt = (e) => `on${vt(e)}`, Ct = (e, t) => (n) => q({
|
|
|
593
593
|
isExpression: !1,
|
|
594
594
|
enableCache: !0
|
|
595
595
|
});
|
|
596
|
-
function
|
|
596
|
+
function Oe(e) {
|
|
597
597
|
var i;
|
|
598
598
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
599
599
|
for (const o in n) {
|
|
600
600
|
if (!n.hasOwnProperty(o))
|
|
601
601
|
continue;
|
|
602
|
-
const
|
|
603
|
-
let
|
|
602
|
+
const r = n[o];
|
|
603
|
+
let a = Tt(o);
|
|
604
604
|
if (e.stripPrefix)
|
|
605
|
-
switch (
|
|
605
|
+
switch (_) {
|
|
606
606
|
case "vue":
|
|
607
|
-
|
|
607
|
+
a = a.replace("v-on:", "");
|
|
608
608
|
break;
|
|
609
609
|
case "svelte":
|
|
610
|
-
|
|
610
|
+
a = a.replace("on:", "");
|
|
611
611
|
break;
|
|
612
612
|
}
|
|
613
|
-
t[
|
|
613
|
+
t[a] = It(r, e);
|
|
614
614
|
}
|
|
615
615
|
return t;
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function wt({
|
|
618
618
|
properties: e
|
|
619
619
|
}) {
|
|
620
620
|
return e;
|
|
621
621
|
}
|
|
622
|
-
const
|
|
622
|
+
const Et = (e) => ({
|
|
623
623
|
href: e.href
|
|
624
624
|
});
|
|
625
|
-
function
|
|
625
|
+
function fe({
|
|
626
626
|
block: e,
|
|
627
627
|
context: t
|
|
628
628
|
}) {
|
|
629
629
|
var i;
|
|
630
630
|
const n = {
|
|
631
|
-
...
|
|
631
|
+
...Et(e),
|
|
632
632
|
...e.properties,
|
|
633
633
|
"builder-id": e.id,
|
|
634
|
-
style:
|
|
634
|
+
style: pt({
|
|
635
635
|
block: e,
|
|
636
636
|
context: t
|
|
637
637
|
}),
|
|
638
638
|
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
639
639
|
};
|
|
640
|
-
return
|
|
640
|
+
return wt({
|
|
641
641
|
properties: n,
|
|
642
642
|
context: t,
|
|
643
643
|
block: e
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function Rt(e) {
|
|
647
647
|
return /* @__PURE__ */ s(
|
|
648
|
-
|
|
648
|
+
ue,
|
|
649
649
|
{
|
|
650
650
|
TagName: e.Wrapper,
|
|
651
|
-
attributes:
|
|
651
|
+
attributes: fe({
|
|
652
652
|
block: e.block,
|
|
653
653
|
context: e.context
|
|
654
654
|
}),
|
|
655
|
-
actionAttributes:
|
|
655
|
+
actionAttributes: Oe({
|
|
656
656
|
block: e.block,
|
|
657
657
|
rootState: e.context.rootState,
|
|
658
658
|
rootSetState: e.context.rootSetState,
|
|
@@ -664,14 +664,14 @@ function It(e) {
|
|
|
664
664
|
}
|
|
665
665
|
);
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function Vt(e) {
|
|
668
668
|
function t() {
|
|
669
669
|
return e.includeBlockProps ? {
|
|
670
|
-
...
|
|
670
|
+
...fe({
|
|
671
671
|
block: e.block,
|
|
672
672
|
context: e.context
|
|
673
673
|
}),
|
|
674
|
-
...
|
|
674
|
+
...Oe({
|
|
675
675
|
block: e.block,
|
|
676
676
|
rootState: e.context.rootState,
|
|
677
677
|
rootSetState: e.context.rootSetState,
|
|
@@ -682,14 +682,14 @@ function Et(e) {
|
|
|
682
682
|
}
|
|
683
683
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Bt = ({
|
|
686
686
|
componentOptions: e,
|
|
687
687
|
builderBlock: t,
|
|
688
688
|
context: n,
|
|
689
689
|
componentRef: i,
|
|
690
690
|
includeBlockProps: o,
|
|
691
|
-
isInteractive:
|
|
692
|
-
contextValue:
|
|
691
|
+
isInteractive: r,
|
|
692
|
+
contextValue: a
|
|
693
693
|
}) => {
|
|
694
694
|
const l = {
|
|
695
695
|
...e,
|
|
@@ -698,13 +698,13 @@ const Rt = ({
|
|
|
698
698
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
699
699
|
*/
|
|
700
700
|
...o ? {
|
|
701
|
-
attributes:
|
|
701
|
+
attributes: fe({
|
|
702
702
|
block: t,
|
|
703
|
-
context:
|
|
703
|
+
context: a
|
|
704
704
|
})
|
|
705
705
|
} : {}
|
|
706
706
|
};
|
|
707
|
-
return
|
|
707
|
+
return r ? {
|
|
708
708
|
Wrapper: i,
|
|
709
709
|
block: t,
|
|
710
710
|
context: n,
|
|
@@ -712,15 +712,15 @@ const Rt = ({
|
|
|
712
712
|
includeBlockProps: o
|
|
713
713
|
} : l;
|
|
714
714
|
};
|
|
715
|
-
function
|
|
715
|
+
function xe(e) {
|
|
716
716
|
var i;
|
|
717
717
|
const [t, n] = C(
|
|
718
|
-
() => e.isInteractive ?
|
|
718
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
719
719
|
);
|
|
720
|
-
return /* @__PURE__ */ s(
|
|
720
|
+
return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
721
721
|
t,
|
|
722
722
|
{
|
|
723
|
-
...
|
|
723
|
+
...Bt({
|
|
724
724
|
componentOptions: e.componentOptions,
|
|
725
725
|
builderBlock: e.builderBlock,
|
|
726
726
|
context: e.context,
|
|
@@ -731,7 +731,7 @@ function ye(e) {
|
|
|
731
731
|
contextValue: e.context
|
|
732
732
|
}),
|
|
733
733
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
734
|
-
|
|
734
|
+
z,
|
|
735
735
|
{
|
|
736
736
|
block: o,
|
|
737
737
|
context: e.context,
|
|
@@ -745,8 +745,8 @@ function ye(e) {
|
|
|
745
745
|
}
|
|
746
746
|
function Pt(e) {
|
|
747
747
|
const [t, n] = C(() => e.repeatContext);
|
|
748
|
-
return /* @__PURE__ */ s(
|
|
749
|
-
|
|
748
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
749
|
+
z,
|
|
750
750
|
{
|
|
751
751
|
block: e.block,
|
|
752
752
|
context: t,
|
|
@@ -755,24 +755,24 @@ function Pt(e) {
|
|
|
755
755
|
}
|
|
756
756
|
) });
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
var c,
|
|
758
|
+
function z(e) {
|
|
759
|
+
var c, u, f;
|
|
760
760
|
function t() {
|
|
761
|
-
return
|
|
761
|
+
return yt({
|
|
762
762
|
block: e.block,
|
|
763
763
|
context: e.context,
|
|
764
764
|
registeredComponents: e.registeredComponents
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
function n() {
|
|
768
|
-
return
|
|
768
|
+
return xt({
|
|
769
769
|
block: e.block,
|
|
770
770
|
context: e.context
|
|
771
771
|
});
|
|
772
772
|
}
|
|
773
773
|
function i() {
|
|
774
|
-
var
|
|
775
|
-
return (
|
|
774
|
+
var d;
|
|
775
|
+
return (d = e.block.repeat) != null && d.collection ? e.block : X({
|
|
776
776
|
block: e.block,
|
|
777
777
|
localState: e.context.localState,
|
|
778
778
|
rootState: e.context.rootState,
|
|
@@ -782,32 +782,32 @@ function _(e) {
|
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
784
|
function o() {
|
|
785
|
-
var
|
|
786
|
-
return e.block.tagName === "a" || ((
|
|
787
|
-
}
|
|
788
|
-
function a() {
|
|
789
|
-
var y, S;
|
|
790
|
-
if ((y = e.block.repeat) != null && y.collection)
|
|
791
|
-
return !!((S = n == null ? void 0 : n()) != null && S.length);
|
|
792
|
-
const u = "hide" in i() ? i().hide : !1;
|
|
793
|
-
return ("show" in i() ? i().show : !0) && !u;
|
|
785
|
+
var m;
|
|
786
|
+
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
794
787
|
}
|
|
795
788
|
function r() {
|
|
796
|
-
var g,
|
|
797
|
-
|
|
789
|
+
var g, p;
|
|
790
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
791
|
+
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
792
|
+
const d = "hide" in i() ? i().hide : !1;
|
|
793
|
+
return ("show" in i() ? i().show : !0) && !d;
|
|
794
|
+
}
|
|
795
|
+
function a() {
|
|
796
|
+
var m, g;
|
|
797
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
798
798
|
}
|
|
799
799
|
function l() {
|
|
800
|
-
var
|
|
800
|
+
var d, m, g, p;
|
|
801
801
|
return {
|
|
802
|
-
blockChildren: (
|
|
803
|
-
componentRef: (
|
|
802
|
+
blockChildren: (d = i().children) != null ? d : [],
|
|
803
|
+
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
804
804
|
componentOptions: {
|
|
805
|
-
...
|
|
805
|
+
...it(i()),
|
|
806
806
|
builderContext: e.context,
|
|
807
|
-
...
|
|
807
|
+
...St(t()) ? {
|
|
808
808
|
builderLinkComponent: e.linkComponent
|
|
809
809
|
} : {},
|
|
810
|
-
...
|
|
810
|
+
...vt(t()) ? {
|
|
811
811
|
builderComponents: e.registeredComponents
|
|
812
812
|
} : {}
|
|
813
813
|
},
|
|
@@ -815,22 +815,22 @@ function _(e) {
|
|
|
815
815
|
linkComponent: e.linkComponent,
|
|
816
816
|
registeredComponents: e.registeredComponents,
|
|
817
817
|
builderBlock: i(),
|
|
818
|
-
includeBlockProps: ((
|
|
819
|
-
isInteractive: !((
|
|
818
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
819
|
+
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
820
820
|
};
|
|
821
821
|
}
|
|
822
822
|
return P(() => {
|
|
823
|
-
const
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
...
|
|
827
|
-
elementId:
|
|
823
|
+
const d = i().id, m = i().animations;
|
|
824
|
+
m && d && mt(
|
|
825
|
+
m.map((g) => ({
|
|
826
|
+
...g,
|
|
827
|
+
elementId: d
|
|
828
828
|
}))
|
|
829
829
|
);
|
|
830
|
-
}, []), /* @__PURE__ */ s(
|
|
831
|
-
/* @__PURE__ */ s(
|
|
832
|
-
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(
|
|
833
|
-
|
|
830
|
+
}, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ V(E, { children: [
|
|
831
|
+
/* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
|
|
832
|
+
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
|
|
833
|
+
xe,
|
|
834
834
|
{
|
|
835
835
|
componentRef: l().componentRef,
|
|
836
836
|
componentOptions: l().componentOptions,
|
|
@@ -842,17 +842,17 @@ function _(e) {
|
|
|
842
842
|
includeBlockProps: l().includeBlockProps,
|
|
843
843
|
isInteractive: l().isInteractive
|
|
844
844
|
}
|
|
845
|
-
) }) : /* @__PURE__ */ s(
|
|
845
|
+
) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
846
846
|
Pt,
|
|
847
847
|
{
|
|
848
|
-
repeatContext:
|
|
849
|
-
block:
|
|
848
|
+
repeatContext: d.context,
|
|
849
|
+
block: d.block,
|
|
850
850
|
registeredComponents: e.registeredComponents,
|
|
851
851
|
linkComponent: e.linkComponent
|
|
852
852
|
},
|
|
853
|
-
|
|
853
|
+
m
|
|
854
854
|
)) }) : /* @__PURE__ */ V(
|
|
855
|
-
|
|
855
|
+
Rt,
|
|
856
856
|
{
|
|
857
857
|
Wrapper: o(),
|
|
858
858
|
block: i(),
|
|
@@ -860,7 +860,7 @@ function _(e) {
|
|
|
860
860
|
linkComponent: e.linkComponent,
|
|
861
861
|
children: [
|
|
862
862
|
/* @__PURE__ */ s(
|
|
863
|
-
|
|
863
|
+
xe,
|
|
864
864
|
{
|
|
865
865
|
componentRef: l().componentRef,
|
|
866
866
|
componentOptions: l().componentOptions,
|
|
@@ -873,29 +873,29 @@ function _(e) {
|
|
|
873
873
|
isInteractive: l().isInteractive
|
|
874
874
|
}
|
|
875
875
|
),
|
|
876
|
-
(
|
|
877
|
-
|
|
876
|
+
(u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
|
|
877
|
+
z,
|
|
878
878
|
{
|
|
879
|
-
block:
|
|
879
|
+
block: d,
|
|
880
880
|
registeredComponents: e.registeredComponents,
|
|
881
881
|
linkComponent: e.linkComponent,
|
|
882
882
|
context: e.context
|
|
883
883
|
},
|
|
884
|
-
|
|
884
|
+
d.id
|
|
885
885
|
))
|
|
886
886
|
]
|
|
887
887
|
}
|
|
888
888
|
) })
|
|
889
889
|
] }) : null });
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function At(e) {
|
|
892
892
|
function t() {
|
|
893
893
|
var o;
|
|
894
894
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
895
895
|
}
|
|
896
896
|
function n() {
|
|
897
|
-
var o,
|
|
898
|
-
|
|
897
|
+
var o, r;
|
|
898
|
+
$() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
899
899
|
{
|
|
900
900
|
type: "builder.clickEmptyBlocks",
|
|
901
901
|
data: {
|
|
@@ -907,8 +907,8 @@ function Vt(e) {
|
|
|
907
907
|
));
|
|
908
908
|
}
|
|
909
909
|
function i() {
|
|
910
|
-
var o,
|
|
911
|
-
|
|
910
|
+
var o, r;
|
|
911
|
+
$() && !((o = e.blocks) != null && o.length) && ((r = window.parent) == null || r.postMessage(
|
|
912
912
|
{
|
|
913
913
|
type: "builder.hoverEmptyBlocks",
|
|
914
914
|
data: {
|
|
@@ -919,7 +919,7 @@ function Vt(e) {
|
|
|
919
919
|
"*"
|
|
920
920
|
));
|
|
921
921
|
}
|
|
922
|
-
return /* @__PURE__ */ V(
|
|
922
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
923
923
|
/* @__PURE__ */ s(
|
|
924
924
|
e.BlocksWrapper,
|
|
925
925
|
{
|
|
@@ -941,11 +941,11 @@ function Vt(e) {
|
|
|
941
941
|
}` })
|
|
942
942
|
] });
|
|
943
943
|
}
|
|
944
|
-
function
|
|
945
|
-
var i, o,
|
|
946
|
-
const t =
|
|
944
|
+
function D(e) {
|
|
945
|
+
var i, o, r;
|
|
946
|
+
const t = be(me), n = be(Ve);
|
|
947
947
|
return /* @__PURE__ */ s(
|
|
948
|
-
|
|
948
|
+
At,
|
|
949
949
|
{
|
|
950
950
|
blocks: e.blocks,
|
|
951
951
|
parent: e.parent,
|
|
@@ -953,99 +953,99 @@ function M(e) {
|
|
|
953
953
|
styleProp: e.styleProp,
|
|
954
954
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
955
955
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
956
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
957
|
-
|
|
956
|
+
children: e.blocks ? /* @__PURE__ */ s(E, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
957
|
+
z,
|
|
958
958
|
{
|
|
959
|
-
block:
|
|
959
|
+
block: a,
|
|
960
960
|
linkComponent: e.linkComponent,
|
|
961
961
|
context: e.context || t,
|
|
962
962
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
963
963
|
},
|
|
964
|
-
|
|
964
|
+
a.id
|
|
965
965
|
)) }) : null
|
|
966
966
|
}
|
|
967
967
|
);
|
|
968
968
|
}
|
|
969
|
-
const
|
|
970
|
-
function
|
|
971
|
-
var
|
|
969
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
970
|
+
function Wt(e) {
|
|
971
|
+
var A, O;
|
|
972
972
|
const [t, n] = C(
|
|
973
973
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
974
|
-
), [i, o] = C(() => e.columns || []), [
|
|
974
|
+
), [i, o] = C(() => e.columns || []), [r, a] = C(
|
|
975
975
|
() => e.stackColumnsAt || "tablet"
|
|
976
976
|
);
|
|
977
|
-
function l(
|
|
978
|
-
return
|
|
977
|
+
function l(v) {
|
|
978
|
+
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
979
979
|
}
|
|
980
|
-
function c(
|
|
981
|
-
var
|
|
982
|
-
return ((
|
|
980
|
+
function c(v) {
|
|
981
|
+
var w;
|
|
982
|
+
return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
const
|
|
986
|
-
return `calc(${c(
|
|
984
|
+
function u(v) {
|
|
985
|
+
const w = t * (i.length - 1) / i.length;
|
|
986
|
+
return `calc(${c(v)}% - ${w}px)`;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
stackedStyle:
|
|
990
|
-
desktopStyle:
|
|
988
|
+
function f({
|
|
989
|
+
stackedStyle: v,
|
|
990
|
+
desktopStyle: w
|
|
991
991
|
}) {
|
|
992
|
-
return
|
|
992
|
+
return r === "tablet" ? v : w;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
stackedStyle:
|
|
996
|
-
desktopStyle:
|
|
994
|
+
function d({
|
|
995
|
+
stackedStyle: v,
|
|
996
|
+
desktopStyle: w
|
|
997
997
|
}) {
|
|
998
|
-
return
|
|
998
|
+
return r === "never" ? w : v;
|
|
999
999
|
}
|
|
1000
|
-
const [
|
|
1000
|
+
const [m, g] = C(
|
|
1001
1001
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1002
1002
|
);
|
|
1003
|
-
function
|
|
1003
|
+
function p() {
|
|
1004
1004
|
return {
|
|
1005
|
-
"--flex-dir":
|
|
1006
|
-
"--flex-dir-tablet":
|
|
1007
|
-
stackedStyle:
|
|
1005
|
+
"--flex-dir": m,
|
|
1006
|
+
"--flex-dir-tablet": f({
|
|
1007
|
+
stackedStyle: m,
|
|
1008
1008
|
desktopStyle: "row"
|
|
1009
1009
|
})
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
function I(
|
|
1013
|
-
const
|
|
1012
|
+
function I(v) {
|
|
1013
|
+
const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
|
|
1014
1014
|
return {
|
|
1015
1015
|
...{
|
|
1016
1016
|
display: "flex",
|
|
1017
1017
|
flexDirection: "column",
|
|
1018
1018
|
alignItems: "stretch"
|
|
1019
1019
|
},
|
|
1020
|
-
width:
|
|
1021
|
-
["marginLeft"]:
|
|
1022
|
-
"--column-width-mobile":
|
|
1023
|
-
stackedStyle:
|
|
1024
|
-
desktopStyle:
|
|
1020
|
+
width: W,
|
|
1021
|
+
["marginLeft"]: b,
|
|
1022
|
+
"--column-width-mobile": d({
|
|
1023
|
+
stackedStyle: h,
|
|
1024
|
+
desktopStyle: W
|
|
1025
1025
|
}),
|
|
1026
|
-
"--column-margin-left-mobile":
|
|
1027
|
-
stackedStyle:
|
|
1028
|
-
desktopStyle:
|
|
1026
|
+
"--column-margin-left-mobile": d({
|
|
1027
|
+
stackedStyle: y,
|
|
1028
|
+
desktopStyle: b
|
|
1029
1029
|
}),
|
|
1030
|
-
"--column-width-tablet":
|
|
1031
|
-
stackedStyle:
|
|
1032
|
-
desktopStyle:
|
|
1030
|
+
"--column-width-tablet": f({
|
|
1031
|
+
stackedStyle: h,
|
|
1032
|
+
desktopStyle: W
|
|
1033
1033
|
}),
|
|
1034
|
-
"--column-margin-left-tablet":
|
|
1035
|
-
stackedStyle:
|
|
1036
|
-
desktopStyle:
|
|
1034
|
+
"--column-margin-left-tablet": f({
|
|
1035
|
+
stackedStyle: y,
|
|
1036
|
+
desktopStyle: b
|
|
1037
1037
|
})
|
|
1038
1038
|
};
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1041
|
-
var
|
|
1042
|
-
return
|
|
1043
|
-
((
|
|
1044
|
-
)[
|
|
1040
|
+
function x(v) {
|
|
1041
|
+
var W, b;
|
|
1042
|
+
return Le(
|
|
1043
|
+
((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1044
|
+
)[v].max;
|
|
1045
1045
|
}
|
|
1046
1046
|
function R() {
|
|
1047
1047
|
return `
|
|
1048
|
-
@media (max-width: ${
|
|
1048
|
+
@media (max-width: ${x("medium")}px) {
|
|
1049
1049
|
.${e.builderBlock.id}-breakpoints {
|
|
1050
1050
|
flex-direction: var(--flex-dir-tablet);
|
|
1051
1051
|
align-items: stretch;
|
|
@@ -1057,7 +1057,7 @@ function At(e) {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
@media (max-width: ${
|
|
1060
|
+
@media (max-width: ${x("small")}px) {
|
|
1061
1061
|
.${e.builderBlock.id}-breakpoints {
|
|
1062
1062
|
flex-direction: var(--flex-dir);
|
|
1063
1063
|
align-items: stretch;
|
|
@@ -1070,33 +1070,33 @@ function At(e) {
|
|
|
1070
1070
|
},
|
|
1071
1071
|
`;
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1073
|
+
function B(v, w) {
|
|
1074
1074
|
return {
|
|
1075
|
-
...
|
|
1076
|
-
href:
|
|
1075
|
+
...v.link ? {
|
|
1076
|
+
href: v.link
|
|
1077
1077
|
} : {},
|
|
1078
1078
|
[K()]: "builder-column",
|
|
1079
|
-
style:
|
|
1079
|
+
style: $e(I(w))
|
|
1080
1080
|
};
|
|
1081
1081
|
}
|
|
1082
|
-
return /* @__PURE__ */ V(
|
|
1082
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1083
1083
|
/* @__PURE__ */ V(
|
|
1084
1084
|
"div",
|
|
1085
1085
|
{
|
|
1086
|
-
className:
|
|
1087
|
-
style:
|
|
1086
|
+
className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
|
|
1087
|
+
style: p(),
|
|
1088
1088
|
children: [
|
|
1089
|
-
/* @__PURE__ */ s(
|
|
1090
|
-
(
|
|
1091
|
-
|
|
1089
|
+
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
|
|
1090
|
+
(O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
|
|
1091
|
+
ue,
|
|
1092
1092
|
{
|
|
1093
|
-
TagName: l(
|
|
1093
|
+
TagName: l(v),
|
|
1094
1094
|
actionAttributes: {},
|
|
1095
|
-
attributes:
|
|
1095
|
+
attributes: B(v, w),
|
|
1096
1096
|
children: /* @__PURE__ */ s(
|
|
1097
|
-
|
|
1097
|
+
D,
|
|
1098
1098
|
{
|
|
1099
|
-
path: `component.options.columns.${
|
|
1099
|
+
path: `component.options.columns.${w}.blocks`,
|
|
1100
1100
|
parent: e.builderBlock.id,
|
|
1101
1101
|
styleProp: {
|
|
1102
1102
|
flexGrow: "1"
|
|
@@ -1104,86 +1104,86 @@ function At(e) {
|
|
|
1104
1104
|
context: e.builderContext,
|
|
1105
1105
|
registeredComponents: e.builderComponents,
|
|
1106
1106
|
linkComponent: e.builderLinkComponent,
|
|
1107
|
-
blocks:
|
|
1107
|
+
blocks: v.blocks
|
|
1108
1108
|
}
|
|
1109
1109
|
)
|
|
1110
1110
|
},
|
|
1111
|
-
|
|
1111
|
+
w
|
|
1112
1112
|
))
|
|
1113
1113
|
]
|
|
1114
1114
|
}
|
|
1115
1115
|
),
|
|
1116
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1116
|
+
/* @__PURE__ */ s("style", { children: `.div-bade6b34 {
|
|
1117
1117
|
display: flex;
|
|
1118
1118
|
line-height: normal;
|
|
1119
1119
|
}` })
|
|
1120
1120
|
] });
|
|
1121
1121
|
}
|
|
1122
|
-
function
|
|
1122
|
+
function Ft(e) {
|
|
1123
1123
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function Se(e) {
|
|
1126
1126
|
return e.replace(/http(s)?:/, "");
|
|
1127
1127
|
}
|
|
1128
|
-
function
|
|
1128
|
+
function $t(e = "", t, n) {
|
|
1129
1129
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1130
1130
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Dt(e, t) {
|
|
1133
1133
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1134
1134
|
return e;
|
|
1135
1135
|
if (t === "master")
|
|
1136
|
-
return
|
|
1136
|
+
return Se(e);
|
|
1137
1137
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1138
1138
|
if (n) {
|
|
1139
|
-
const i = e.split(n[0]), o = n[3],
|
|
1140
|
-
return
|
|
1139
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1140
|
+
return Se(`${i[0]}_${r}${o}`);
|
|
1141
1141
|
}
|
|
1142
1142
|
return null;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function oe(e) {
|
|
1145
1145
|
if (!e)
|
|
1146
1146
|
return e;
|
|
1147
1147
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1148
1148
|
if (e.match(/builder\.io/)) {
|
|
1149
1149
|
let n = e;
|
|
1150
1150
|
const i = Number(e.split("?width=")[1]);
|
|
1151
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1151
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1152
1152
|
}
|
|
1153
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1153
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
var o,
|
|
1155
|
+
function Lt(e) {
|
|
1156
|
+
var o, r, a, l, c, u;
|
|
1157
1157
|
function t() {
|
|
1158
|
-
var
|
|
1159
|
-
const
|
|
1160
|
-
if (!
|
|
1158
|
+
var m;
|
|
1159
|
+
const d = e.image || e.src;
|
|
1160
|
+
if (!d || // We can auto add srcset for cdn.builder.io and shopify
|
|
1161
1161
|
// images, otherwise you can supply this prop manually
|
|
1162
|
-
!(
|
|
1162
|
+
!(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
|
|
1163
1163
|
return e.srcset;
|
|
1164
|
-
if (e.srcset && ((
|
|
1164
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1165
1165
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1166
|
-
return console.debug("Removed given srcset"),
|
|
1166
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1167
1167
|
} else if (e.image && !e.srcset)
|
|
1168
|
-
return
|
|
1169
|
-
return
|
|
1168
|
+
return oe(d);
|
|
1169
|
+
return oe(d);
|
|
1170
1170
|
}
|
|
1171
1171
|
function n() {
|
|
1172
|
-
var
|
|
1173
|
-
return (
|
|
1172
|
+
var f;
|
|
1173
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1174
1174
|
}
|
|
1175
1175
|
function i() {
|
|
1176
|
-
const
|
|
1176
|
+
const f = {
|
|
1177
1177
|
position: "absolute",
|
|
1178
1178
|
height: "100%",
|
|
1179
1179
|
width: "100%",
|
|
1180
1180
|
left: "0px",
|
|
1181
1181
|
top: "0px"
|
|
1182
1182
|
};
|
|
1183
|
-
return e.aspectRatio ?
|
|
1183
|
+
return e.aspectRatio ? f : void 0;
|
|
1184
1184
|
}
|
|
1185
|
-
return /* @__PURE__ */ V(
|
|
1186
|
-
/* @__PURE__ */ V(
|
|
1185
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
1186
|
+
/* @__PURE__ */ V(E, { children: [
|
|
1187
1187
|
/* @__PURE__ */ V("picture", { children: [
|
|
1188
1188
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1189
1189
|
/* @__PURE__ */ s(
|
|
@@ -1204,7 +1204,7 @@ function Ft(e) {
|
|
|
1204
1204
|
}
|
|
1205
1205
|
)
|
|
1206
1206
|
] }),
|
|
1207
|
-
e.aspectRatio && !((
|
|
1207
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1208
1208
|
"div",
|
|
1209
1209
|
{
|
|
1210
1210
|
className: "builder-image-sizer div-3ac67dd4",
|
|
@@ -1213,8 +1213,8 @@ function Ft(e) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
1215
|
) : null,
|
|
1216
|
-
(l = (
|
|
1217
|
-
!e.fitContent && ((
|
|
1216
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
|
|
1217
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
|
|
1218
1218
|
] }),
|
|
1219
1219
|
/* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
|
|
1220
1220
|
opacity: 1;
|
|
@@ -1235,7 +1235,7 @@ function Ft(e) {
|
|
|
1235
1235
|
}` })
|
|
1236
1236
|
] });
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Ot(e) {
|
|
1239
1239
|
return /* @__PURE__ */ s(
|
|
1240
1240
|
"section",
|
|
1241
1241
|
{
|
|
@@ -1256,7 +1256,249 @@ function Lt(e) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
);
|
|
1258
1258
|
}
|
|
1259
|
-
const
|
|
1259
|
+
const ae = {
|
|
1260
|
+
"@type": "@builder.io/sdk:Element",
|
|
1261
|
+
layerName: "Accordion item title",
|
|
1262
|
+
responsiveStyles: {
|
|
1263
|
+
large: {
|
|
1264
|
+
marginTop: "10px",
|
|
1265
|
+
position: "relative",
|
|
1266
|
+
display: "flex",
|
|
1267
|
+
alignItems: "stretch",
|
|
1268
|
+
flexDirection: "column",
|
|
1269
|
+
paddingBottom: "10px"
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
children: [{
|
|
1273
|
+
"@type": "@builder.io/sdk:Element",
|
|
1274
|
+
responsiveStyles: {
|
|
1275
|
+
large: {
|
|
1276
|
+
textAlign: "left",
|
|
1277
|
+
display: "flex",
|
|
1278
|
+
flexDirection: "column"
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
component: {
|
|
1282
|
+
name: "Text",
|
|
1283
|
+
options: {
|
|
1284
|
+
text: "I am an accordion title. Click me!"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}]
|
|
1288
|
+
}, re = {
|
|
1289
|
+
"@type": "@builder.io/sdk:Element",
|
|
1290
|
+
layerName: "Accordion item detail",
|
|
1291
|
+
responsiveStyles: {
|
|
1292
|
+
large: {
|
|
1293
|
+
position: "relative",
|
|
1294
|
+
display: "flex",
|
|
1295
|
+
alignItems: "stretch",
|
|
1296
|
+
flexDirection: "column",
|
|
1297
|
+
marginTop: "10px",
|
|
1298
|
+
paddingBottom: "10px"
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
children: [{
|
|
1302
|
+
"@type": "@builder.io/sdk:Element",
|
|
1303
|
+
responsiveStyles: {
|
|
1304
|
+
large: {
|
|
1305
|
+
paddingTop: "50px",
|
|
1306
|
+
textAlign: "left",
|
|
1307
|
+
display: "flex",
|
|
1308
|
+
flexDirection: "column",
|
|
1309
|
+
paddingBottom: "50px"
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
component: {
|
|
1313
|
+
name: "Text",
|
|
1314
|
+
options: {
|
|
1315
|
+
text: "I am an accordion detail, hello!"
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
}]
|
|
1319
|
+
}, jt = {
|
|
1320
|
+
name: "Builder:Accordion",
|
|
1321
|
+
canHaveChildren: !0,
|
|
1322
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
1323
|
+
defaultStyles: {
|
|
1324
|
+
display: "flex",
|
|
1325
|
+
flexDirection: "column",
|
|
1326
|
+
alignItems: "stretch"
|
|
1327
|
+
},
|
|
1328
|
+
inputs: [{
|
|
1329
|
+
name: "items",
|
|
1330
|
+
type: "list",
|
|
1331
|
+
broadcast: !0,
|
|
1332
|
+
subFields: [{
|
|
1333
|
+
name: "title",
|
|
1334
|
+
type: "uiBlocks",
|
|
1335
|
+
hideFromUI: !0,
|
|
1336
|
+
defaultValue: [ae]
|
|
1337
|
+
}, {
|
|
1338
|
+
name: "detail",
|
|
1339
|
+
type: "uiBlocks",
|
|
1340
|
+
hideFromUI: !0,
|
|
1341
|
+
defaultValue: [re]
|
|
1342
|
+
}],
|
|
1343
|
+
defaultValue: [{
|
|
1344
|
+
title: [ae],
|
|
1345
|
+
detail: [re]
|
|
1346
|
+
}, {
|
|
1347
|
+
title: [ae],
|
|
1348
|
+
detail: [re]
|
|
1349
|
+
}],
|
|
1350
|
+
showIf: (e) => !e.get("useChildrenForItems")
|
|
1351
|
+
}, {
|
|
1352
|
+
name: "oneAtATime",
|
|
1353
|
+
helperText: "Only allow opening one at a time (collapse all others when new item openned)",
|
|
1354
|
+
type: "boolean",
|
|
1355
|
+
defaultValue: !1
|
|
1356
|
+
}, {
|
|
1357
|
+
name: "grid",
|
|
1358
|
+
helperText: "Display as a grid",
|
|
1359
|
+
type: "boolean",
|
|
1360
|
+
defaultValue: !1
|
|
1361
|
+
}, {
|
|
1362
|
+
name: "gridRowWidth",
|
|
1363
|
+
helperText: "Display as a grid",
|
|
1364
|
+
type: "string",
|
|
1365
|
+
showIf: (e) => e.get("grid"),
|
|
1366
|
+
defaultValue: "25%"
|
|
1367
|
+
}, {
|
|
1368
|
+
name: "useChildrenForItems",
|
|
1369
|
+
type: "boolean",
|
|
1370
|
+
helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
|
|
1371
|
+
advanced: !0,
|
|
1372
|
+
defaultValue: !1,
|
|
1373
|
+
onChange: (e) => {
|
|
1374
|
+
e.get("useChildrenForItems") === !0 && e.set("items", []);
|
|
1375
|
+
}
|
|
1376
|
+
}]
|
|
1377
|
+
}, ve = (e) => e.toString();
|
|
1378
|
+
function Ut(e) {
|
|
1379
|
+
var d;
|
|
1380
|
+
const [t, n] = C(() => []);
|
|
1381
|
+
function i() {
|
|
1382
|
+
return !!(e.grid || e.oneAtATime);
|
|
1383
|
+
}
|
|
1384
|
+
function o() {
|
|
1385
|
+
return {
|
|
1386
|
+
display: "flex",
|
|
1387
|
+
alignItems: "stretch",
|
|
1388
|
+
flexDirection: "column",
|
|
1389
|
+
...e.grid && {
|
|
1390
|
+
flexDirection: "row",
|
|
1391
|
+
alignItems: "flex-start",
|
|
1392
|
+
flexWrap: "wrap"
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
function r() {
|
|
1397
|
+
const g = {
|
|
1398
|
+
...{
|
|
1399
|
+
display: "flex",
|
|
1400
|
+
flexDirection: "column"
|
|
1401
|
+
},
|
|
1402
|
+
alignItems: "stretch",
|
|
1403
|
+
cursor: "pointer"
|
|
1404
|
+
};
|
|
1405
|
+
return Object.fromEntries(
|
|
1406
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1409
|
+
function a(m) {
|
|
1410
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1411
|
+
}
|
|
1412
|
+
function l(m) {
|
|
1413
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1414
|
+
}
|
|
1415
|
+
function c() {
|
|
1416
|
+
let m = null;
|
|
1417
|
+
if (e.grid && t.length && document) {
|
|
1418
|
+
const p = t[0];
|
|
1419
|
+
let x = document.querySelector(
|
|
1420
|
+
`.builder-accordion-title[data-index="${p}"]`
|
|
1421
|
+
);
|
|
1422
|
+
if (m = p, x) {
|
|
1423
|
+
let R = x.getBoundingClientRect();
|
|
1424
|
+
for (; x = x && x.nextElementSibling; )
|
|
1425
|
+
if (x) {
|
|
1426
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1427
|
+
continue;
|
|
1428
|
+
const B = x.getBoundingClientRect();
|
|
1429
|
+
if (B.left > R.left) {
|
|
1430
|
+
const A = parseInt(
|
|
1431
|
+
x.getAttribute("data-index") || "",
|
|
1432
|
+
10
|
|
1433
|
+
);
|
|
1434
|
+
isNaN(A) || (R = B, m = A);
|
|
1435
|
+
} else
|
|
1436
|
+
break;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1441
|
+
}
|
|
1442
|
+
function u() {
|
|
1443
|
+
const m = {
|
|
1444
|
+
order: typeof c() == "number" ? c() : void 0,
|
|
1445
|
+
...e.grid && {
|
|
1446
|
+
width: "100%"
|
|
1447
|
+
}
|
|
1448
|
+
};
|
|
1449
|
+
return Object.fromEntries(
|
|
1450
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1451
|
+
);
|
|
1452
|
+
}
|
|
1453
|
+
function f(m) {
|
|
1454
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1455
|
+
}
|
|
1456
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
|
|
1457
|
+
/* @__PURE__ */ s(
|
|
1458
|
+
"div",
|
|
1459
|
+
{
|
|
1460
|
+
className: a(g),
|
|
1461
|
+
style: {
|
|
1462
|
+
...r(),
|
|
1463
|
+
width: e.grid ? e.gridRowWidth : void 0,
|
|
1464
|
+
order: c() !== null ? ve(g) : ve(g + 1)
|
|
1465
|
+
},
|
|
1466
|
+
"data-index": g,
|
|
1467
|
+
onClick: (p) => f(g),
|
|
1468
|
+
children: /* @__PURE__ */ s(
|
|
1469
|
+
D,
|
|
1470
|
+
{
|
|
1471
|
+
blocks: m.title,
|
|
1472
|
+
path: `items.${g}.title`,
|
|
1473
|
+
parent: e.builderBlock.id,
|
|
1474
|
+
context: e.builderContext,
|
|
1475
|
+
registeredComponents: e.builderComponents,
|
|
1476
|
+
linkComponent: e.builderLinkComponent
|
|
1477
|
+
}
|
|
1478
|
+
)
|
|
1479
|
+
}
|
|
1480
|
+
),
|
|
1481
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1482
|
+
"div",
|
|
1483
|
+
{
|
|
1484
|
+
className: l(g),
|
|
1485
|
+
style: u(),
|
|
1486
|
+
children: /* @__PURE__ */ s(
|
|
1487
|
+
D,
|
|
1488
|
+
{
|
|
1489
|
+
blocks: m.detail,
|
|
1490
|
+
path: `items.${g}.detail`,
|
|
1491
|
+
parent: e.builderBlock.id,
|
|
1492
|
+
context: e.builderContext,
|
|
1493
|
+
registeredComponents: e.builderComponents,
|
|
1494
|
+
linkComponent: e.builderLinkComponent
|
|
1495
|
+
}
|
|
1496
|
+
)
|
|
1497
|
+
}
|
|
1498
|
+
) : null
|
|
1499
|
+
] })) });
|
|
1500
|
+
}
|
|
1501
|
+
const Mt = {
|
|
1260
1502
|
name: "Core:Button",
|
|
1261
1503
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1262
1504
|
defaultStyles: {
|
|
@@ -1289,7 +1531,7 @@ const Dt = {
|
|
|
1289
1531
|
}],
|
|
1290
1532
|
static: !0,
|
|
1291
1533
|
noWrap: !0
|
|
1292
|
-
},
|
|
1534
|
+
}, Ht = {
|
|
1293
1535
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1294
1536
|
name: "Columns",
|
|
1295
1537
|
isRSC: !0,
|
|
@@ -1468,7 +1710,7 @@ const Dt = {
|
|
|
1468
1710
|
});
|
|
1469
1711
|
}
|
|
1470
1712
|
const n = e.get("columns");
|
|
1471
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1713
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
1472
1714
|
}
|
|
1473
1715
|
}, {
|
|
1474
1716
|
name: "space",
|
|
@@ -1490,13 +1732,13 @@ const Dt = {
|
|
|
1490
1732
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
1491
1733
|
advanced: !0
|
|
1492
1734
|
}]
|
|
1493
|
-
},
|
|
1735
|
+
}, Kt = {
|
|
1494
1736
|
name: "Fragment",
|
|
1495
1737
|
static: !0,
|
|
1496
1738
|
hidden: !0,
|
|
1497
1739
|
canHaveChildren: !0,
|
|
1498
1740
|
noWrap: !0
|
|
1499
|
-
},
|
|
1741
|
+
}, qt = {
|
|
1500
1742
|
name: "Image",
|
|
1501
1743
|
static: !0,
|
|
1502
1744
|
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",
|
|
@@ -1516,29 +1758,29 @@ const Dt = {
|
|
|
1516
1758
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1517
1759
|
onChange: (e) => {
|
|
1518
1760
|
e.delete("srcset"), e.delete("noWebp");
|
|
1519
|
-
function n(
|
|
1520
|
-
return new Promise((c,
|
|
1521
|
-
const
|
|
1522
|
-
let
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1526
|
-
console.warn("Image load failed",
|
|
1527
|
-
}),
|
|
1528
|
-
|
|
1761
|
+
function n(a, l = 6e4) {
|
|
1762
|
+
return new Promise((c, u) => {
|
|
1763
|
+
const f = document.createElement("img");
|
|
1764
|
+
let d = !1;
|
|
1765
|
+
f.onload = () => {
|
|
1766
|
+
d = !0, c(f);
|
|
1767
|
+
}, f.addEventListener("error", (m) => {
|
|
1768
|
+
console.warn("Image load failed", m.error), u(m.error);
|
|
1769
|
+
}), f.src = a, setTimeout(() => {
|
|
1770
|
+
d || u(new Error("Image load timed out"));
|
|
1529
1771
|
}, l);
|
|
1530
1772
|
});
|
|
1531
1773
|
}
|
|
1532
|
-
function i(
|
|
1533
|
-
return Math.round(
|
|
1774
|
+
function i(a) {
|
|
1775
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1534
1776
|
}
|
|
1535
|
-
const o = e.get("image"),
|
|
1536
|
-
if (fetch(o).then((
|
|
1537
|
-
|
|
1538
|
-
}), o && (!
|
|
1539
|
-
return n(o).then((
|
|
1777
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1778
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1779
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1780
|
+
}), o && (!r || r === 0.7041))
|
|
1781
|
+
return n(o).then((a) => {
|
|
1540
1782
|
const l = e.get("aspectRatio");
|
|
1541
|
-
e.get("image") === o && (!l || l === 0.7041) &&
|
|
1783
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1542
1784
|
});
|
|
1543
1785
|
}
|
|
1544
1786
|
}, {
|
|
@@ -1596,7 +1838,7 @@ const Dt = {
|
|
|
1596
1838
|
advanced: !0,
|
|
1597
1839
|
defaultValue: 0.7041
|
|
1598
1840
|
}]
|
|
1599
|
-
},
|
|
1841
|
+
}, _t = {
|
|
1600
1842
|
name: "Core:Section",
|
|
1601
1843
|
static: !0,
|
|
1602
1844
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1635,7 +1877,7 @@ const Dt = {
|
|
|
1635
1877
|
}
|
|
1636
1878
|
}
|
|
1637
1879
|
}]
|
|
1638
|
-
},
|
|
1880
|
+
}, zt = {
|
|
1639
1881
|
name: "Slot",
|
|
1640
1882
|
isRSC: !0,
|
|
1641
1883
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1649,7 +1891,7 @@ const Dt = {
|
|
|
1649
1891
|
defaultValue: "children"
|
|
1650
1892
|
}]
|
|
1651
1893
|
};
|
|
1652
|
-
function
|
|
1894
|
+
function Jt(e) {
|
|
1653
1895
|
var t, n, i;
|
|
1654
1896
|
return /* @__PURE__ */ s(
|
|
1655
1897
|
"div",
|
|
@@ -1661,7 +1903,7 @@ function Kt(e) {
|
|
|
1661
1903
|
"builder-slot": e.name
|
|
1662
1904
|
},
|
|
1663
1905
|
children: /* @__PURE__ */ s(
|
|
1664
|
-
|
|
1906
|
+
D,
|
|
1665
1907
|
{
|
|
1666
1908
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1667
1909
|
path: `symbol.data.${e.name}`,
|
|
@@ -1672,7 +1914,7 @@ function Kt(e) {
|
|
|
1672
1914
|
}
|
|
1673
1915
|
);
|
|
1674
1916
|
}
|
|
1675
|
-
const
|
|
1917
|
+
const Yt = {
|
|
1676
1918
|
name: "Symbol",
|
|
1677
1919
|
noWrap: !0,
|
|
1678
1920
|
static: !0,
|
|
@@ -1705,7 +1947,7 @@ const qt = {
|
|
|
1705
1947
|
hideFromUI: !0,
|
|
1706
1948
|
type: "boolean"
|
|
1707
1949
|
}]
|
|
1708
|
-
},
|
|
1950
|
+
}, le = {
|
|
1709
1951
|
"@type": "@builder.io/sdk:Element",
|
|
1710
1952
|
responsiveStyles: {
|
|
1711
1953
|
large: {
|
|
@@ -1727,7 +1969,7 @@ const qt = {
|
|
|
1727
1969
|
text: "New tab"
|
|
1728
1970
|
}
|
|
1729
1971
|
}
|
|
1730
|
-
},
|
|
1972
|
+
}, se = {
|
|
1731
1973
|
"@type": "@builder.io/sdk:Element",
|
|
1732
1974
|
responsiveStyles: {
|
|
1733
1975
|
large: {
|
|
@@ -1743,7 +1985,7 @@ const qt = {
|
|
|
1743
1985
|
text: "New tab content "
|
|
1744
1986
|
}
|
|
1745
1987
|
}
|
|
1746
|
-
},
|
|
1988
|
+
}, Gt = {
|
|
1747
1989
|
name: "Builder: Tabs",
|
|
1748
1990
|
inputs: [{
|
|
1749
1991
|
name: "tabs",
|
|
@@ -1753,16 +1995,16 @@ const qt = {
|
|
|
1753
1995
|
name: "label",
|
|
1754
1996
|
type: "uiBlocks",
|
|
1755
1997
|
hideFromUI: !0,
|
|
1756
|
-
defaultValue: [
|
|
1998
|
+
defaultValue: [le]
|
|
1757
1999
|
}, {
|
|
1758
2000
|
name: "content",
|
|
1759
2001
|
type: "uiBlocks",
|
|
1760
2002
|
hideFromUI: !0,
|
|
1761
|
-
defaultValue: [
|
|
2003
|
+
defaultValue: [se]
|
|
1762
2004
|
}],
|
|
1763
2005
|
defaultValue: [{
|
|
1764
2006
|
label: [{
|
|
1765
|
-
...
|
|
2007
|
+
...le,
|
|
1766
2008
|
component: {
|
|
1767
2009
|
name: "Text",
|
|
1768
2010
|
options: {
|
|
@@ -1771,7 +2013,7 @@ const qt = {
|
|
|
1771
2013
|
}
|
|
1772
2014
|
}],
|
|
1773
2015
|
content: [{
|
|
1774
|
-
...
|
|
2016
|
+
...se,
|
|
1775
2017
|
component: {
|
|
1776
2018
|
name: "Text",
|
|
1777
2019
|
options: {
|
|
@@ -1781,7 +2023,7 @@ const qt = {
|
|
|
1781
2023
|
}]
|
|
1782
2024
|
}, {
|
|
1783
2025
|
label: [{
|
|
1784
|
-
...
|
|
2026
|
+
...le,
|
|
1785
2027
|
component: {
|
|
1786
2028
|
name: "Text",
|
|
1787
2029
|
options: {
|
|
@@ -1790,7 +2032,7 @@ const qt = {
|
|
|
1790
2032
|
}
|
|
1791
2033
|
}],
|
|
1792
2034
|
content: [{
|
|
1793
|
-
...
|
|
2035
|
+
...se,
|
|
1794
2036
|
component: {
|
|
1795
2037
|
name: "Text",
|
|
1796
2038
|
options: {
|
|
@@ -1841,16 +2083,16 @@ const qt = {
|
|
|
1841
2083
|
}]
|
|
1842
2084
|
}]
|
|
1843
2085
|
};
|
|
1844
|
-
function
|
|
1845
|
-
var
|
|
2086
|
+
function Qt(e) {
|
|
2087
|
+
var r;
|
|
1846
2088
|
const [t, n] = C(
|
|
1847
2089
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
1848
2090
|
);
|
|
1849
|
-
function i(
|
|
1850
|
-
return e.tabs && e.tabs[
|
|
2091
|
+
function i(a) {
|
|
2092
|
+
return e.tabs && e.tabs[a].content;
|
|
1851
2093
|
}
|
|
1852
|
-
function o(
|
|
1853
|
-
|
|
2094
|
+
function o(a) {
|
|
2095
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
1854
2096
|
}
|
|
1855
2097
|
return /* @__PURE__ */ V("div", { children: [
|
|
1856
2098
|
/* @__PURE__ */ s(
|
|
@@ -1863,20 +2105,20 @@ function _t(e) {
|
|
|
1863
2105
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
1864
2106
|
overflow: "auto"
|
|
1865
2107
|
},
|
|
1866
|
-
children: (
|
|
2108
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
1867
2109
|
"span",
|
|
1868
2110
|
{
|
|
1869
2111
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
1870
|
-
style:
|
|
1871
|
-
|
|
1872
|
-
l === t && e.collapsible ? n(-1) : n(l);
|
|
2112
|
+
style: {
|
|
2113
|
+
...t === l ? e.activeTabStyle : {}
|
|
1873
2114
|
},
|
|
2115
|
+
onClick: (c) => o(l),
|
|
1874
2116
|
children: /* @__PURE__ */ s(
|
|
1875
|
-
|
|
2117
|
+
D,
|
|
1876
2118
|
{
|
|
1877
2119
|
parent: e.builderBlock.id,
|
|
1878
2120
|
path: `component.options.tabs.${l}.label`,
|
|
1879
|
-
blocks:
|
|
2121
|
+
blocks: a.label,
|
|
1880
2122
|
context: e.builderContext,
|
|
1881
2123
|
registeredComponents: e.builderComponents,
|
|
1882
2124
|
linkComponent: e.builderLinkComponent
|
|
@@ -1888,7 +2130,7 @@ function _t(e) {
|
|
|
1888
2130
|
}
|
|
1889
2131
|
),
|
|
1890
2132
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
1891
|
-
|
|
2133
|
+
D,
|
|
1892
2134
|
{
|
|
1893
2135
|
parent: e.builderBlock.id,
|
|
1894
2136
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -1900,7 +2142,7 @@ function _t(e) {
|
|
|
1900
2142
|
) }) : null
|
|
1901
2143
|
] });
|
|
1902
2144
|
}
|
|
1903
|
-
const
|
|
2145
|
+
const Xt = {
|
|
1904
2146
|
name: "Text",
|
|
1905
2147
|
static: !0,
|
|
1906
2148
|
isRSC: !0,
|
|
@@ -1919,7 +2161,7 @@ const Jt = {
|
|
|
1919
2161
|
textAlign: "center"
|
|
1920
2162
|
}
|
|
1921
2163
|
};
|
|
1922
|
-
function
|
|
2164
|
+
function Zt(e) {
|
|
1923
2165
|
var t;
|
|
1924
2166
|
return /* @__PURE__ */ s(
|
|
1925
2167
|
"div",
|
|
@@ -1932,7 +2174,7 @@ function Yt(e) {
|
|
|
1932
2174
|
}
|
|
1933
2175
|
);
|
|
1934
2176
|
}
|
|
1935
|
-
const
|
|
2177
|
+
const en = {
|
|
1936
2178
|
name: "Custom Code",
|
|
1937
2179
|
static: !0,
|
|
1938
2180
|
requiredPermissions: ["editCode"],
|
|
@@ -1955,32 +2197,32 @@ const Gt = {
|
|
|
1955
2197
|
advanced: !0
|
|
1956
2198
|
}]
|
|
1957
2199
|
};
|
|
1958
|
-
function
|
|
1959
|
-
const t = ee(null), [n, i] = C(() => []), [o,
|
|
2200
|
+
function tn(e) {
|
|
2201
|
+
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
|
|
1960
2202
|
return P(() => {
|
|
1961
2203
|
var l;
|
|
1962
2204
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
1963
2205
|
return;
|
|
1964
|
-
const
|
|
1965
|
-
for (let c = 0; c <
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
if (n.includes(
|
|
2206
|
+
const a = t.current.getElementsByTagName("script");
|
|
2207
|
+
for (let c = 0; c < a.length; c++) {
|
|
2208
|
+
const u = a[c];
|
|
2209
|
+
if (u.src) {
|
|
2210
|
+
if (n.includes(u.src))
|
|
1969
2211
|
continue;
|
|
1970
|
-
n.push(
|
|
1971
|
-
const
|
|
1972
|
-
|
|
1973
|
-
} else if (!
|
|
2212
|
+
n.push(u.src);
|
|
2213
|
+
const f = document.createElement("script");
|
|
2214
|
+
f.async = !0, f.src = u.src, document.head.appendChild(f);
|
|
2215
|
+
} else if (!u.type || [
|
|
1974
2216
|
"text/javascript",
|
|
1975
2217
|
"application/javascript",
|
|
1976
2218
|
"application/ecmascript"
|
|
1977
|
-
].includes(
|
|
1978
|
-
if (o.includes(
|
|
2219
|
+
].includes(u.type)) {
|
|
2220
|
+
if (o.includes(u.innerText))
|
|
1979
2221
|
continue;
|
|
1980
2222
|
try {
|
|
1981
|
-
o.push(
|
|
1982
|
-
} catch (
|
|
1983
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2223
|
+
o.push(u.innerText), new Function(u.innerText)();
|
|
2224
|
+
} catch (f) {
|
|
2225
|
+
console.warn("`CustomCode`: Error running script:", f);
|
|
1984
2226
|
}
|
|
1985
2227
|
}
|
|
1986
2228
|
}
|
|
@@ -1993,7 +2235,7 @@ function Qt(e) {
|
|
|
1993
2235
|
}
|
|
1994
2236
|
);
|
|
1995
2237
|
}
|
|
1996
|
-
const
|
|
2238
|
+
const nn = {
|
|
1997
2239
|
name: "Embed",
|
|
1998
2240
|
static: !0,
|
|
1999
2241
|
inputs: [{
|
|
@@ -2018,30 +2260,30 @@ const Xt = {
|
|
|
2018
2260
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2019
2261
|
hideFromUI: !0
|
|
2020
2262
|
}]
|
|
2021
|
-
},
|
|
2022
|
-
function
|
|
2023
|
-
const t = ee(null), [n, i] = C(() => []), [o,
|
|
2263
|
+
}, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
|
|
2264
|
+
function rn(e) {
|
|
2265
|
+
const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
|
|
2024
2266
|
function c() {
|
|
2025
2267
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2026
2268
|
return;
|
|
2027
|
-
const
|
|
2028
|
-
for (let
|
|
2029
|
-
const
|
|
2030
|
-
if (
|
|
2031
|
-
n.push(
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2034
|
-
} else if (
|
|
2269
|
+
const u = t.current.getElementsByTagName("script");
|
|
2270
|
+
for (let f = 0; f < u.length; f++) {
|
|
2271
|
+
const d = u[f];
|
|
2272
|
+
if (d.src && !n.includes(d.src)) {
|
|
2273
|
+
n.push(d.src);
|
|
2274
|
+
const m = document.createElement("script");
|
|
2275
|
+
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2276
|
+
} else if (an(d) && !o.includes(d.innerText))
|
|
2035
2277
|
try {
|
|
2036
|
-
o.push(
|
|
2037
|
-
} catch (
|
|
2038
|
-
console.warn("`Embed`: Error running script:",
|
|
2278
|
+
o.push(d.innerText), new Function(d.innerText)();
|
|
2279
|
+
} catch (m) {
|
|
2280
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2039
2281
|
}
|
|
2040
2282
|
}
|
|
2041
2283
|
}
|
|
2042
2284
|
return P(() => {
|
|
2043
|
-
t.current && !
|
|
2044
|
-
}, [t.current,
|
|
2285
|
+
t.current && !a && (l(!0), c());
|
|
2286
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2045
2287
|
"div",
|
|
2046
2288
|
{
|
|
2047
2289
|
className: "builder-embed",
|
|
@@ -2050,7 +2292,7 @@ function tn(e) {
|
|
|
2050
2292
|
}
|
|
2051
2293
|
);
|
|
2052
2294
|
}
|
|
2053
|
-
const
|
|
2295
|
+
const ln = {
|
|
2054
2296
|
name: "Form:Form",
|
|
2055
2297
|
// editableTags: ['builder-form-error']
|
|
2056
2298
|
defaults: {
|
|
@@ -2281,125 +2523,123 @@ const nn = {
|
|
|
2281
2523
|
}
|
|
2282
2524
|
}
|
|
2283
2525
|
}]
|
|
2284
|
-
},
|
|
2526
|
+
}, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
|
|
2285
2527
|
const e = process.env.NODE_ENV || "production";
|
|
2286
|
-
return
|
|
2287
|
-
},
|
|
2288
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2528
|
+
return sn.includes(e) ? e : "production";
|
|
2529
|
+
}, dn = (e, t, n) => {
|
|
2530
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
2289
2531
|
return i === void 0 || i === e ? n : i;
|
|
2290
2532
|
};
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2293
|
-
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o,
|
|
2294
|
-
function c(
|
|
2295
|
-
var I,
|
|
2296
|
-
const
|
|
2533
|
+
function un(e) {
|
|
2534
|
+
var d, m;
|
|
2535
|
+
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
|
|
2536
|
+
function c(g) {
|
|
2537
|
+
var I, x;
|
|
2538
|
+
const p = {
|
|
2297
2539
|
...e.builderContext.rootState,
|
|
2298
|
-
...
|
|
2540
|
+
...g
|
|
2299
2541
|
};
|
|
2300
|
-
e.builderContext.rootSetState ? (
|
|
2542
|
+
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2301
2543
|
}
|
|
2302
|
-
function
|
|
2303
|
-
return
|
|
2544
|
+
function u() {
|
|
2545
|
+
return $() && e.previewState || n;
|
|
2304
2546
|
}
|
|
2305
|
-
function
|
|
2547
|
+
function f(g) {
|
|
2306
2548
|
var I;
|
|
2307
|
-
const
|
|
2549
|
+
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2308
2550
|
if (e.sendSubmissionsTo === "zapier")
|
|
2309
|
-
|
|
2310
|
-
else if (
|
|
2551
|
+
g.preventDefault();
|
|
2552
|
+
else if (p) {
|
|
2311
2553
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2312
|
-
|
|
2554
|
+
g.preventDefault();
|
|
2313
2555
|
return;
|
|
2314
2556
|
}
|
|
2315
|
-
|
|
2316
|
-
const
|
|
2317
|
-
let
|
|
2318
|
-
const
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
key: b,
|
|
2328
|
-
value: f
|
|
2557
|
+
g.preventDefault();
|
|
2558
|
+
const x = g.currentTarget || g.target, R = e.customHeaders || {};
|
|
2559
|
+
let B;
|
|
2560
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2561
|
+
let h;
|
|
2562
|
+
const y = b.name;
|
|
2563
|
+
if (b instanceof HTMLInputElement)
|
|
2564
|
+
if (b.type === "radio") {
|
|
2565
|
+
if (b.checked)
|
|
2566
|
+
return h = b.name, {
|
|
2567
|
+
key: y,
|
|
2568
|
+
value: h
|
|
2329
2569
|
};
|
|
2330
|
-
} else if (
|
|
2331
|
-
|
|
2332
|
-
else if (
|
|
2333
|
-
const
|
|
2334
|
-
isNaN(
|
|
2570
|
+
} else if (b.type === "checkbox")
|
|
2571
|
+
h = b.checked;
|
|
2572
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2573
|
+
const S = b.valueAsNumber;
|
|
2574
|
+
isNaN(S) || (h = S);
|
|
2335
2575
|
} else
|
|
2336
|
-
|
|
2576
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2337
2577
|
else
|
|
2338
|
-
|
|
2578
|
+
h = b.value;
|
|
2339
2579
|
return {
|
|
2340
|
-
key:
|
|
2341
|
-
value:
|
|
2580
|
+
key: y,
|
|
2581
|
+
value: h
|
|
2342
2582
|
};
|
|
2343
2583
|
});
|
|
2344
|
-
let
|
|
2345
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2346
|
-
(
|
|
2347
|
-
}),
|
|
2348
|
-
|
|
2584
|
+
let v = e.contentType;
|
|
2585
|
+
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2586
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
|
|
2587
|
+
}), v !== "application/json")
|
|
2588
|
+
B = A;
|
|
2349
2589
|
else {
|
|
2350
|
-
const
|
|
2351
|
-
Array.from(
|
|
2352
|
-
|
|
2353
|
-
}),
|
|
2590
|
+
const b = {};
|
|
2591
|
+
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2592
|
+
Pe(b, y, h);
|
|
2593
|
+
}), B = JSON.stringify(b);
|
|
2354
2594
|
}
|
|
2355
|
-
|
|
2356
|
-
const
|
|
2357
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2595
|
+
v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
|
|
2596
|
+
const w = new CustomEvent("presubmit", { detail: { body: B } });
|
|
2597
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2358
2598
|
return;
|
|
2359
2599
|
i("sending");
|
|
2360
|
-
const
|
|
2600
|
+
const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2361
2601
|
e.sendSubmissionsToEmail || ""
|
|
2362
2602
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2363
2603
|
fetch(
|
|
2364
|
-
e.sendSubmissionsTo === "email" ?
|
|
2365
|
-
{ body:
|
|
2604
|
+
e.sendSubmissionsTo === "email" ? W : e.action,
|
|
2605
|
+
{ body: B, headers: R, method: e.method || "post" }
|
|
2366
2606
|
).then(
|
|
2367
|
-
async (
|
|
2368
|
-
let
|
|
2369
|
-
const
|
|
2370
|
-
if (
|
|
2371
|
-
let
|
|
2372
|
-
|
|
2607
|
+
async (b) => {
|
|
2608
|
+
let h;
|
|
2609
|
+
const y = b.headers.get("content-type");
|
|
2610
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2611
|
+
let S = dn(h, e.errorMessagePath);
|
|
2612
|
+
S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
|
|
2373
2613
|
}
|
|
2374
|
-
if (
|
|
2375
|
-
const
|
|
2376
|
-
detail: { res:
|
|
2614
|
+
if (r(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2615
|
+
const S = new CustomEvent("submit:success", {
|
|
2616
|
+
detail: { res: b, body: h }
|
|
2377
2617
|
});
|
|
2378
2618
|
if (t.current) {
|
|
2379
|
-
if (t.current.dispatchEvent(
|
|
2619
|
+
if (t.current.dispatchEvent(S), S.defaultPrevented)
|
|
2380
2620
|
return;
|
|
2381
2621
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2382
2622
|
}
|
|
2383
2623
|
if (e.successUrl)
|
|
2384
2624
|
if (t.current) {
|
|
2385
|
-
const
|
|
2625
|
+
const k = new CustomEvent("route", {
|
|
2386
2626
|
detail: { url: e.successUrl }
|
|
2387
2627
|
});
|
|
2388
|
-
t.current.dispatchEvent(
|
|
2628
|
+
t.current.dispatchEvent(k), k.defaultPrevented || (location.href = e.successUrl);
|
|
2389
2629
|
} else
|
|
2390
2630
|
location.href = e.successUrl;
|
|
2391
2631
|
}
|
|
2392
2632
|
},
|
|
2393
|
-
(
|
|
2394
|
-
const
|
|
2395
|
-
detail: { error:
|
|
2633
|
+
(b) => {
|
|
2634
|
+
const h = new CustomEvent("submit:error", {
|
|
2635
|
+
detail: { error: b }
|
|
2396
2636
|
});
|
|
2397
|
-
t.current && (t.current.dispatchEvent(
|
|
2637
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (r(b), i("error"));
|
|
2398
2638
|
}
|
|
2399
2639
|
);
|
|
2400
2640
|
}
|
|
2401
2641
|
}
|
|
2402
|
-
return /* @__PURE__ */ V(
|
|
2642
|
+
return /* @__PURE__ */ V(E, { children: [
|
|
2403
2643
|
" ",
|
|
2404
2644
|
/* @__PURE__ */ V(
|
|
2405
2645
|
"form",
|
|
@@ -2409,38 +2649,38 @@ function ln(e) {
|
|
|
2409
2649
|
action: !e.sendWithJs && e.action,
|
|
2410
2650
|
method: e.method,
|
|
2411
2651
|
name: e.name,
|
|
2412
|
-
onSubmit: (
|
|
2652
|
+
onSubmit: (g) => f(g),
|
|
2413
2653
|
...e.attributes,
|
|
2414
2654
|
children: [
|
|
2415
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2416
|
-
|
|
2655
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(E, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2656
|
+
z,
|
|
2417
2657
|
{
|
|
2418
|
-
block:
|
|
2658
|
+
block: g,
|
|
2419
2659
|
context: e.builderContext,
|
|
2420
2660
|
registeredComponents: e.builderComponents,
|
|
2421
2661
|
linkComponent: e.builderLinkComponent
|
|
2422
2662
|
},
|
|
2423
|
-
`form-block-${
|
|
2663
|
+
`form-block-${p}`
|
|
2424
2664
|
)) }) : null,
|
|
2425
|
-
|
|
2426
|
-
|
|
2665
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
2666
|
+
D,
|
|
2427
2667
|
{
|
|
2428
2668
|
path: "errorMessage",
|
|
2429
2669
|
blocks: e.errorMessage,
|
|
2430
2670
|
context: e.builderContext
|
|
2431
2671
|
}
|
|
2432
2672
|
) : null,
|
|
2433
|
-
|
|
2434
|
-
|
|
2673
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
2674
|
+
D,
|
|
2435
2675
|
{
|
|
2436
2676
|
path: "sendingMessage",
|
|
2437
2677
|
blocks: e.sendingMessage,
|
|
2438
2678
|
context: e.builderContext
|
|
2439
2679
|
}
|
|
2440
2680
|
) : null,
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2681
|
+
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2682
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
2683
|
+
D,
|
|
2444
2684
|
{
|
|
2445
2685
|
path: "successMessage",
|
|
2446
2686
|
blocks: e.successMessage,
|
|
@@ -2451,11 +2691,11 @@ function ln(e) {
|
|
|
2451
2691
|
}
|
|
2452
2692
|
),
|
|
2453
2693
|
" ",
|
|
2454
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
2694
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2455
2695
|
" "
|
|
2456
2696
|
] });
|
|
2457
2697
|
}
|
|
2458
|
-
const
|
|
2698
|
+
const mn = {
|
|
2459
2699
|
name: "Form:Input",
|
|
2460
2700
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2461
2701
|
inputs: [
|
|
@@ -2507,12 +2747,12 @@ const sn = {
|
|
|
2507
2747
|
borderColor: "#ccc"
|
|
2508
2748
|
}
|
|
2509
2749
|
};
|
|
2510
|
-
function
|
|
2511
|
-
return /* @__PURE__ */
|
|
2750
|
+
function fn(e) {
|
|
2751
|
+
return /* @__PURE__ */ Re(
|
|
2512
2752
|
"input",
|
|
2513
2753
|
{
|
|
2514
2754
|
...e.attributes,
|
|
2515
|
-
key:
|
|
2755
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2516
2756
|
placeholder: e.placeholder,
|
|
2517
2757
|
type: e.type,
|
|
2518
2758
|
name: e.name,
|
|
@@ -2522,7 +2762,7 @@ function cn(e) {
|
|
|
2522
2762
|
}
|
|
2523
2763
|
);
|
|
2524
2764
|
}
|
|
2525
|
-
const
|
|
2765
|
+
const hn = {
|
|
2526
2766
|
name: "Form:Select",
|
|
2527
2767
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2528
2768
|
defaultStyles: {
|
|
@@ -2565,21 +2805,21 @@ const dn = {
|
|
|
2565
2805
|
static: !0,
|
|
2566
2806
|
noWrap: !0
|
|
2567
2807
|
};
|
|
2568
|
-
function
|
|
2808
|
+
function gn(e) {
|
|
2569
2809
|
var t;
|
|
2570
|
-
return /* @__PURE__ */
|
|
2810
|
+
return /* @__PURE__ */ Re(
|
|
2571
2811
|
"select",
|
|
2572
2812
|
{
|
|
2573
2813
|
...e.attributes,
|
|
2574
2814
|
value: e.value,
|
|
2575
|
-
key:
|
|
2815
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2576
2816
|
defaultValue: e.defaultValue,
|
|
2577
2817
|
name: e.name
|
|
2578
2818
|
},
|
|
2579
2819
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2580
2820
|
);
|
|
2581
2821
|
}
|
|
2582
|
-
const
|
|
2822
|
+
const bn = {
|
|
2583
2823
|
name: "Form:SubmitButton",
|
|
2584
2824
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2585
2825
|
defaultStyles: {
|
|
@@ -2605,10 +2845,10 @@ const mn = {
|
|
|
2605
2845
|
// TODO: defaultChildren
|
|
2606
2846
|
// canHaveChildren: true,
|
|
2607
2847
|
};
|
|
2608
|
-
function
|
|
2848
|
+
function pn(e) {
|
|
2609
2849
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2610
2850
|
}
|
|
2611
|
-
const
|
|
2851
|
+
const yn = {
|
|
2612
2852
|
// friendlyName?
|
|
2613
2853
|
name: "Raw:Img",
|
|
2614
2854
|
hideFromInsertMenu: !0,
|
|
@@ -2623,7 +2863,7 @@ const hn = {
|
|
|
2623
2863
|
noWrap: !0,
|
|
2624
2864
|
static: !0
|
|
2625
2865
|
};
|
|
2626
|
-
function
|
|
2866
|
+
function xn(e) {
|
|
2627
2867
|
return /* @__PURE__ */ s(
|
|
2628
2868
|
"img",
|
|
2629
2869
|
{
|
|
@@ -2635,10 +2875,10 @@ function gn(e) {
|
|
|
2635
2875
|
src: e.imgSrc || e.image,
|
|
2636
2876
|
...e.attributes
|
|
2637
2877
|
},
|
|
2638
|
-
|
|
2878
|
+
$() && e.imgSrc || "default-key"
|
|
2639
2879
|
);
|
|
2640
2880
|
}
|
|
2641
|
-
const
|
|
2881
|
+
const Sn = {
|
|
2642
2882
|
name: "Video",
|
|
2643
2883
|
canHaveChildren: !0,
|
|
2644
2884
|
defaultStyles: {
|
|
@@ -2720,8 +2960,8 @@ const bn = {
|
|
|
2720
2960
|
advanced: !0
|
|
2721
2961
|
}]
|
|
2722
2962
|
};
|
|
2723
|
-
function
|
|
2724
|
-
var i, o,
|
|
2963
|
+
function vn(e) {
|
|
2964
|
+
var i, o, r, a, l, c, u;
|
|
2725
2965
|
function t() {
|
|
2726
2966
|
return {
|
|
2727
2967
|
...e.autoPlay === !0 ? {
|
|
@@ -2778,7 +3018,7 @@ function yn(e) {
|
|
|
2778
3018
|
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
2779
3019
|
}
|
|
2780
3020
|
),
|
|
2781
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3021
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
2782
3022
|
"div",
|
|
2783
3023
|
{
|
|
2784
3024
|
style: {
|
|
@@ -2789,7 +3029,7 @@ function yn(e) {
|
|
|
2789
3029
|
}
|
|
2790
3030
|
}
|
|
2791
3031
|
) : null,
|
|
2792
|
-
(l = (
|
|
3032
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
2793
3033
|
"div",
|
|
2794
3034
|
{
|
|
2795
3035
|
style: {
|
|
@@ -2800,7 +3040,7 @@ function yn(e) {
|
|
|
2800
3040
|
children: e.children
|
|
2801
3041
|
}
|
|
2802
3042
|
) : null,
|
|
2803
|
-
(
|
|
3043
|
+
(u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
2804
3044
|
"div",
|
|
2805
3045
|
{
|
|
2806
3046
|
style: {
|
|
@@ -2821,58 +3061,61 @@ function yn(e) {
|
|
|
2821
3061
|
}
|
|
2822
3062
|
);
|
|
2823
3063
|
}
|
|
2824
|
-
const
|
|
2825
|
-
component: Qt,
|
|
2826
|
-
...Gt
|
|
2827
|
-
}, {
|
|
3064
|
+
const kn = () => [{
|
|
2828
3065
|
component: tn,
|
|
2829
|
-
...
|
|
3066
|
+
...en
|
|
2830
3067
|
}, {
|
|
2831
|
-
component:
|
|
3068
|
+
component: rn,
|
|
2832
3069
|
...nn
|
|
2833
3070
|
}, {
|
|
2834
|
-
component:
|
|
2835
|
-
...
|
|
3071
|
+
component: un,
|
|
3072
|
+
...ln
|
|
2836
3073
|
}, {
|
|
2837
3074
|
component: fn,
|
|
2838
3075
|
...mn
|
|
2839
3076
|
}, {
|
|
2840
|
-
component:
|
|
2841
|
-
...
|
|
3077
|
+
component: pn,
|
|
3078
|
+
...bn
|
|
2842
3079
|
}, {
|
|
2843
3080
|
component: gn,
|
|
2844
3081
|
...hn
|
|
2845
3082
|
}, {
|
|
2846
|
-
component:
|
|
2847
|
-
...
|
|
2848
|
-
}], xe = () => [{
|
|
2849
|
-
component: Ze,
|
|
2850
|
-
...Dt
|
|
3083
|
+
component: xn,
|
|
3084
|
+
...yn
|
|
2851
3085
|
}, {
|
|
2852
|
-
component:
|
|
3086
|
+
component: vn,
|
|
3087
|
+
...Sn
|
|
3088
|
+
}], ke = () => [{
|
|
3089
|
+
component: nt,
|
|
2853
3090
|
...Mt
|
|
2854
3091
|
}, {
|
|
2855
3092
|
component: Wt,
|
|
2856
|
-
...
|
|
3093
|
+
...Ht
|
|
2857
3094
|
}, {
|
|
2858
3095
|
component: Ft,
|
|
2859
|
-
...
|
|
3096
|
+
...Kt
|
|
2860
3097
|
}, {
|
|
2861
3098
|
component: Lt,
|
|
2862
|
-
...jt
|
|
2863
|
-
}, {
|
|
2864
|
-
component: Kt,
|
|
2865
|
-
...Ht
|
|
2866
|
-
}, {
|
|
2867
|
-
component: Un,
|
|
2868
3099
|
...qt
|
|
2869
3100
|
}, {
|
|
2870
|
-
component:
|
|
2871
|
-
...
|
|
3101
|
+
component: Ot,
|
|
3102
|
+
..._t
|
|
2872
3103
|
}, {
|
|
2873
|
-
component:
|
|
3104
|
+
component: Jt,
|
|
2874
3105
|
...zt
|
|
2875
|
-
},
|
|
3106
|
+
}, {
|
|
3107
|
+
component: qn,
|
|
3108
|
+
...Yt
|
|
3109
|
+
}, {
|
|
3110
|
+
component: Zt,
|
|
3111
|
+
...Xt
|
|
3112
|
+
}, {
|
|
3113
|
+
component: Qt,
|
|
3114
|
+
...Gt
|
|
3115
|
+
}, {
|
|
3116
|
+
component: Ut,
|
|
3117
|
+
...jt
|
|
3118
|
+
}, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
2876
3119
|
function getAndSetVariantId() {
|
|
2877
3120
|
function setCookie(name, value, days) {
|
|
2878
3121
|
let expires = '';
|
|
@@ -2928,7 +3171,7 @@ const pn = () => [{
|
|
|
2928
3171
|
}).join('');
|
|
2929
3172
|
styleEl.innerHTML = newStyleStr;
|
|
2930
3173
|
}
|
|
2931
|
-
}`,
|
|
3174
|
+
}`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
2932
3175
|
if (!navigator.cookieEnabled) {
|
|
2933
3176
|
return;
|
|
2934
3177
|
}
|
|
@@ -2962,26 +3205,26 @@ const pn = () => [{
|
|
|
2962
3205
|
thisScriptEl?.remove();
|
|
2963
3206
|
}
|
|
2964
3207
|
return;
|
|
2965
|
-
}`,
|
|
3208
|
+
}`, je = "builderIoAbTest", Ue = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
2966
3209
|
...t,
|
|
2967
3210
|
testVariationId: t.id,
|
|
2968
3211
|
id: e == null ? void 0 : e.id
|
|
2969
|
-
})),
|
|
3212
|
+
})), In = ({
|
|
2970
3213
|
canTrack: e,
|
|
2971
3214
|
content: t
|
|
2972
|
-
}) => !(!(Y(t).length > 0) || !e ||
|
|
2973
|
-
window.${
|
|
2974
|
-
window.${
|
|
2975
|
-
`,
|
|
2976
|
-
window.${
|
|
3215
|
+
}) => !(!(Y(t).length > 0) || !e || M()), wn = (e) => e === "react" || e === "reactNative", Me = wn(_), En = () => `
|
|
3216
|
+
window.${je} = ${Cn}
|
|
3217
|
+
window.${Ue} = ${Tn}
|
|
3218
|
+
`, Rn = (e, t) => `
|
|
3219
|
+
window.${je}(
|
|
2977
3220
|
"${t}",${JSON.stringify(e)}, ${Me}
|
|
2978
|
-
)`,
|
|
3221
|
+
)`, Vn = ({
|
|
2979
3222
|
contentId: e,
|
|
2980
3223
|
variationId: t
|
|
2981
|
-
}) => `window.${
|
|
3224
|
+
}) => `window.${Ue}(
|
|
2982
3225
|
"${t}", "${e}", ${Me}
|
|
2983
3226
|
)`;
|
|
2984
|
-
function
|
|
3227
|
+
function ce(e) {
|
|
2985
3228
|
return /* @__PURE__ */ s(
|
|
2986
3229
|
"script",
|
|
2987
3230
|
{
|
|
@@ -2990,10 +3233,10 @@ function re(e) {
|
|
|
2990
3233
|
}
|
|
2991
3234
|
);
|
|
2992
3235
|
}
|
|
2993
|
-
function
|
|
3236
|
+
function Ce(e) {
|
|
2994
3237
|
return Math.round(e * 1e3) / 1e3;
|
|
2995
3238
|
}
|
|
2996
|
-
const
|
|
3239
|
+
const Bn = (e, t, n = !0) => {
|
|
2997
3240
|
if (!(e instanceof HTMLElement))
|
|
2998
3241
|
return null;
|
|
2999
3242
|
let i = n ? e : e.parentElement;
|
|
@@ -3004,37 +3247,37 @@ const In = (e, t, n = !0) => {
|
|
|
3004
3247
|
return i;
|
|
3005
3248
|
} while (i = i.parentElement);
|
|
3006
3249
|
return null;
|
|
3007
|
-
},
|
|
3250
|
+
}, Pn = (e) => Bn(e, (t) => {
|
|
3008
3251
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3009
3252
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3010
|
-
}),
|
|
3253
|
+
}), Te = ({
|
|
3011
3254
|
event: e,
|
|
3012
3255
|
target: t
|
|
3013
3256
|
}) => {
|
|
3014
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3257
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = Ce(i / n.width), a = Ce(o / n.height);
|
|
3015
3258
|
return {
|
|
3016
|
-
x:
|
|
3017
|
-
y:
|
|
3259
|
+
x: r,
|
|
3260
|
+
y: a
|
|
3018
3261
|
};
|
|
3019
|
-
},
|
|
3020
|
-
const t = e.target, n = t &&
|
|
3262
|
+
}, An = (e) => {
|
|
3263
|
+
const t = e.target, n = t && Pn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3021
3264
|
return {
|
|
3022
3265
|
targetBuilderElement: i || void 0,
|
|
3023
3266
|
metadata: {
|
|
3024
|
-
targetOffset: t ?
|
|
3267
|
+
targetOffset: t ? Te({
|
|
3025
3268
|
event: e,
|
|
3026
3269
|
target: t
|
|
3027
3270
|
}) : void 0,
|
|
3028
|
-
builderTargetOffset: n ?
|
|
3271
|
+
builderTargetOffset: n ? Te({
|
|
3029
3272
|
event: e,
|
|
3030
3273
|
target: n
|
|
3031
3274
|
}) : void 0,
|
|
3032
3275
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3033
3276
|
}
|
|
3034
3277
|
};
|
|
3035
|
-
},
|
|
3036
|
-
var
|
|
3037
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3278
|
+
}, Nn = (e) => {
|
|
3279
|
+
var r, a;
|
|
3280
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3038
3281
|
let o = "";
|
|
3039
3282
|
if (i && t && n && (o += `
|
|
3040
3283
|
@font-face {
|
|
@@ -3047,26 +3290,26 @@ font-weight: 400;
|
|
|
3047
3290
|
for (const l in e.files) {
|
|
3048
3291
|
if (!(String(Number(l)) === l))
|
|
3049
3292
|
continue;
|
|
3050
|
-
const
|
|
3051
|
-
|
|
3293
|
+
const u = e.files[l];
|
|
3294
|
+
u && u !== i && (o += `
|
|
3052
3295
|
@font-face {
|
|
3053
3296
|
font-family: "${t}";
|
|
3054
|
-
src: url('${
|
|
3297
|
+
src: url('${u}') format('woff2');
|
|
3055
3298
|
font-display: fallback;
|
|
3056
3299
|
font-weight: ${l};
|
|
3057
3300
|
}
|
|
3058
3301
|
`.trim());
|
|
3059
3302
|
}
|
|
3060
3303
|
return o;
|
|
3061
|
-
},
|
|
3304
|
+
}, Wn = ({
|
|
3062
3305
|
customFonts: e
|
|
3063
3306
|
}) => {
|
|
3064
3307
|
var t;
|
|
3065
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3066
|
-
},
|
|
3308
|
+
return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3309
|
+
}, Fn = ({
|
|
3067
3310
|
cssCode: e,
|
|
3068
3311
|
contentId: t
|
|
3069
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3312
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
|
|
3070
3313
|
.builder-button {
|
|
3071
3314
|
all: unset;
|
|
3072
3315
|
}
|
|
@@ -3083,39 +3326,39 @@ font-weight: ${l};
|
|
|
3083
3326
|
text-align: inherit;
|
|
3084
3327
|
font-family: inherit;
|
|
3085
3328
|
}
|
|
3086
|
-
`,
|
|
3087
|
-
function
|
|
3088
|
-
var
|
|
3329
|
+
`, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
|
|
3330
|
+
function On(e) {
|
|
3331
|
+
var B, A, O, v, w, W, b;
|
|
3089
3332
|
const t = ee(null);
|
|
3090
|
-
function n(
|
|
3091
|
-
var
|
|
3092
|
-
const
|
|
3333
|
+
function n(h) {
|
|
3334
|
+
var S, k;
|
|
3335
|
+
const y = {
|
|
3093
3336
|
...e.builderContextSignal.rootState,
|
|
3094
|
-
...
|
|
3337
|
+
...h
|
|
3095
3338
|
};
|
|
3096
|
-
e.builderContextSignal.rootSetState ? (
|
|
3097
|
-
...
|
|
3098
|
-
rootState:
|
|
3339
|
+
e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
|
|
3340
|
+
...T,
|
|
3341
|
+
rootState: y
|
|
3099
3342
|
}));
|
|
3100
3343
|
}
|
|
3101
|
-
function i(
|
|
3102
|
-
var
|
|
3103
|
-
const
|
|
3344
|
+
function i(h) {
|
|
3345
|
+
var S, k, T, N, j;
|
|
3346
|
+
const y = {
|
|
3104
3347
|
...e.builderContextSignal.content,
|
|
3105
|
-
...
|
|
3348
|
+
...h,
|
|
3106
3349
|
data: {
|
|
3107
|
-
...(
|
|
3108
|
-
...
|
|
3350
|
+
...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
|
|
3351
|
+
...h == null ? void 0 : h.data
|
|
3109
3352
|
},
|
|
3110
3353
|
meta: {
|
|
3111
|
-
...(
|
|
3112
|
-
...
|
|
3113
|
-
breakpoints: ((
|
|
3354
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3355
|
+
...h == null ? void 0 : h.meta,
|
|
3356
|
+
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)
|
|
3114
3357
|
}
|
|
3115
3358
|
};
|
|
3116
|
-
e.setBuilderContextSignal((
|
|
3117
|
-
|
|
3118
|
-
content:
|
|
3359
|
+
e.setBuilderContextSignal((F) => ({
|
|
3360
|
+
...F,
|
|
3361
|
+
content: y
|
|
3119
3362
|
}));
|
|
3120
3363
|
}
|
|
3121
3364
|
function o() {
|
|
@@ -3124,37 +3367,37 @@ function $n(e) {
|
|
|
3124
3367
|
"aria-hidden": !0
|
|
3125
3368
|
};
|
|
3126
3369
|
}
|
|
3127
|
-
const [
|
|
3370
|
+
const [r, a] = C(
|
|
3128
3371
|
() => e.contentWrapper || "div"
|
|
3129
3372
|
);
|
|
3130
|
-
function l(
|
|
3131
|
-
return
|
|
3373
|
+
function l(h) {
|
|
3374
|
+
return Qe({
|
|
3132
3375
|
model: e.model,
|
|
3133
3376
|
trustedHosts: e.trustedHosts,
|
|
3134
3377
|
callbacks: {
|
|
3135
|
-
configureSdk: (
|
|
3136
|
-
var
|
|
3137
|
-
const { breakpoints:
|
|
3138
|
-
!
|
|
3378
|
+
configureSdk: (y) => {
|
|
3379
|
+
var T;
|
|
3380
|
+
const { breakpoints: S, contentId: k } = y;
|
|
3381
|
+
!k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
|
|
3139
3382
|
meta: {
|
|
3140
|
-
breakpoints:
|
|
3383
|
+
breakpoints: S
|
|
3141
3384
|
}
|
|
3142
3385
|
});
|
|
3143
3386
|
},
|
|
3144
|
-
animation: (
|
|
3145
|
-
|
|
3387
|
+
animation: (y) => {
|
|
3388
|
+
We(y);
|
|
3146
3389
|
},
|
|
3147
|
-
contentUpdate: (
|
|
3148
|
-
i(
|
|
3390
|
+
contentUpdate: (y) => {
|
|
3391
|
+
i(y);
|
|
3149
3392
|
}
|
|
3150
3393
|
}
|
|
3151
|
-
})(
|
|
3394
|
+
})(h);
|
|
3152
3395
|
}
|
|
3153
3396
|
function c() {
|
|
3154
|
-
var
|
|
3155
|
-
const
|
|
3156
|
-
|
|
3157
|
-
code:
|
|
3397
|
+
var y, S;
|
|
3398
|
+
const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
|
|
3399
|
+
h && q({
|
|
3400
|
+
code: h,
|
|
3158
3401
|
context: e.context || {},
|
|
3159
3402
|
localState: void 0,
|
|
3160
3403
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3165,35 +3408,35 @@ function $n(e) {
|
|
|
3165
3408
|
enableCache: !1
|
|
3166
3409
|
});
|
|
3167
3410
|
}
|
|
3168
|
-
const [
|
|
3169
|
-
function I(
|
|
3170
|
-
var
|
|
3411
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3412
|
+
function I(h) {
|
|
3413
|
+
var y, S;
|
|
3171
3414
|
if (e.builderContextSignal.content) {
|
|
3172
|
-
const
|
|
3173
|
-
|
|
3415
|
+
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
|
|
3416
|
+
he({
|
|
3174
3417
|
type: "click",
|
|
3175
3418
|
canTrack: Q(e.canTrack),
|
|
3176
|
-
contentId:
|
|
3419
|
+
contentId: T,
|
|
3177
3420
|
apiKey: e.apiKey,
|
|
3178
|
-
variationId:
|
|
3179
|
-
...
|
|
3180
|
-
unique: !
|
|
3421
|
+
variationId: k !== T ? k : void 0,
|
|
3422
|
+
...An(h),
|
|
3423
|
+
unique: !g
|
|
3181
3424
|
});
|
|
3182
3425
|
}
|
|
3183
|
-
|
|
3426
|
+
g || p(!0);
|
|
3184
3427
|
}
|
|
3185
|
-
function
|
|
3186
|
-
var
|
|
3187
|
-
const
|
|
3188
|
-
Object.entries(
|
|
3189
|
-
if (!
|
|
3428
|
+
function x() {
|
|
3429
|
+
var y, S, k;
|
|
3430
|
+
const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
|
|
3431
|
+
Object.entries(h).forEach(([T, N]) => {
|
|
3432
|
+
if (!N || d[T] || u[T] && !$())
|
|
3190
3433
|
return;
|
|
3191
|
-
|
|
3192
|
-
const
|
|
3434
|
+
d[T] = !0;
|
|
3435
|
+
const j = N.replace(
|
|
3193
3436
|
/{{([^}]+)}}/g,
|
|
3194
|
-
(
|
|
3437
|
+
(F, He) => String(
|
|
3195
3438
|
q({
|
|
3196
|
-
code:
|
|
3439
|
+
code: He,
|
|
3197
3440
|
context: e.context || {},
|
|
3198
3441
|
localState: void 0,
|
|
3199
3442
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3202,24 +3445,24 @@ function $n(e) {
|
|
|
3202
3445
|
})
|
|
3203
3446
|
)
|
|
3204
3447
|
);
|
|
3205
|
-
|
|
3448
|
+
Xe(j).then((F) => F.json()).then((F) => {
|
|
3206
3449
|
n({
|
|
3207
|
-
[
|
|
3208
|
-
}),
|
|
3209
|
-
}).catch((
|
|
3210
|
-
console.error("error fetching dynamic data",
|
|
3450
|
+
[T]: F
|
|
3451
|
+
}), u[T] = !0;
|
|
3452
|
+
}).catch((F) => {
|
|
3453
|
+
console.error("error fetching dynamic data", N, F);
|
|
3211
3454
|
}).finally(() => {
|
|
3212
|
-
|
|
3455
|
+
d[T] = !1;
|
|
3213
3456
|
});
|
|
3214
3457
|
});
|
|
3215
3458
|
}
|
|
3216
3459
|
function R() {
|
|
3217
|
-
|
|
3460
|
+
$() && window.dispatchEvent(
|
|
3218
3461
|
new CustomEvent(
|
|
3219
3462
|
"builder:component:stateChange",
|
|
3220
3463
|
{
|
|
3221
3464
|
detail: {
|
|
3222
|
-
state:
|
|
3465
|
+
state: de(e.builderContextSignal.rootState),
|
|
3223
3466
|
ref: {
|
|
3224
3467
|
name: e.model
|
|
3225
3468
|
}
|
|
@@ -3229,9 +3472,9 @@ function $n(e) {
|
|
|
3229
3472
|
);
|
|
3230
3473
|
}
|
|
3231
3474
|
return P(() => {
|
|
3232
|
-
var
|
|
3233
|
-
if (
|
|
3234
|
-
if (
|
|
3475
|
+
var h, y;
|
|
3476
|
+
if (M()) {
|
|
3477
|
+
if ($() && (window.addEventListener("message", l), ze(), Je({
|
|
3235
3478
|
...e.locale ? {
|
|
3236
3479
|
locale: e.locale
|
|
3237
3480
|
} : {},
|
|
@@ -3243,47 +3486,47 @@ function $n(e) {
|
|
|
3243
3486
|
} : {}
|
|
3244
3487
|
}), Object.values(
|
|
3245
3488
|
e.builderContextSignal.componentInfos
|
|
3246
|
-
).forEach((
|
|
3247
|
-
var
|
|
3248
|
-
const
|
|
3249
|
-
(
|
|
3489
|
+
).forEach((k) => {
|
|
3490
|
+
var N;
|
|
3491
|
+
const T = Ye(k);
|
|
3492
|
+
(N = window.parent) == null || N.postMessage(T, "*");
|
|
3250
3493
|
}), window.addEventListener(
|
|
3251
3494
|
"builder:component:stateChangeListenerActivated",
|
|
3252
3495
|
R
|
|
3253
3496
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3497
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, N = e.apiKey;
|
|
3498
|
+
he({
|
|
3256
3499
|
type: "impression",
|
|
3257
3500
|
canTrack: !0,
|
|
3258
|
-
contentId:
|
|
3259
|
-
apiKey:
|
|
3260
|
-
variationId:
|
|
3501
|
+
contentId: T,
|
|
3502
|
+
apiKey: N,
|
|
3503
|
+
variationId: k !== T ? k : void 0
|
|
3261
3504
|
});
|
|
3262
3505
|
}
|
|
3263
|
-
if (
|
|
3264
|
-
const
|
|
3265
|
-
`builder.
|
|
3266
|
-
),
|
|
3267
|
-
|
|
3506
|
+
if (Ge() && !$()) {
|
|
3507
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
|
|
3508
|
+
`builder.overrides.${T}`
|
|
3509
|
+
), j = k.get("apiKey") || k.get("builder.space");
|
|
3510
|
+
T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
|
|
3268
3511
|
model: e.model,
|
|
3269
3512
|
apiKey: e.apiKey,
|
|
3270
3513
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3271
|
-
}).then((
|
|
3272
|
-
|
|
3514
|
+
}).then((F) => {
|
|
3515
|
+
F && i(F);
|
|
3273
3516
|
});
|
|
3274
3517
|
}
|
|
3275
3518
|
}
|
|
3276
3519
|
}, []), P(() => {
|
|
3277
3520
|
e.apiKey || Z.error(
|
|
3278
|
-
"No API key provided to `
|
|
3279
|
-
), c(),
|
|
3521
|
+
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3522
|
+
), c(), x(), R();
|
|
3280
3523
|
}, []), P(() => {
|
|
3281
3524
|
e.content && i(e.content);
|
|
3282
3525
|
}, [e.content]), P(() => {
|
|
3283
3526
|
c();
|
|
3284
|
-
}, [(
|
|
3285
|
-
|
|
3286
|
-
}, [(
|
|
3527
|
+
}, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3528
|
+
x();
|
|
3529
|
+
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3287
3530
|
R();
|
|
3288
3531
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3289
3532
|
e.data && n(e.data);
|
|
@@ -3292,49 +3535,49 @@ function $n(e) {
|
|
|
3292
3535
|
locale: e.locale
|
|
3293
3536
|
});
|
|
3294
3537
|
}, [e.locale]), P(() => () => {
|
|
3295
|
-
|
|
3538
|
+
M() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3296
3539
|
"builder:component:stateChangeListenerActivated",
|
|
3297
3540
|
R
|
|
3298
3541
|
));
|
|
3299
|
-
}, []), /* @__PURE__ */ s(
|
|
3300
|
-
|
|
3542
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3543
|
+
r,
|
|
3301
3544
|
{
|
|
3302
3545
|
ref: t,
|
|
3303
|
-
onClick: (
|
|
3304
|
-
"builder-content-id": (
|
|
3546
|
+
onClick: (h) => I(h),
|
|
3547
|
+
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3305
3548
|
"builder-model": e.model,
|
|
3306
3549
|
...o(),
|
|
3307
3550
|
...e.contentWrapperProps,
|
|
3308
|
-
className:
|
|
3309
|
-
((
|
|
3551
|
+
className: Ln(
|
|
3552
|
+
((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3310
3553
|
),
|
|
3311
3554
|
children: e.children
|
|
3312
3555
|
}
|
|
3313
3556
|
) : null });
|
|
3314
3557
|
}
|
|
3315
|
-
function
|
|
3558
|
+
function jn(e) {
|
|
3316
3559
|
const [t, n] = C(
|
|
3317
3560
|
() => `
|
|
3318
|
-
${
|
|
3561
|
+
${Fn({
|
|
3319
3562
|
cssCode: e.cssCode,
|
|
3320
3563
|
contentId: e.contentId
|
|
3321
3564
|
})}
|
|
3322
|
-
${
|
|
3565
|
+
${Wn({
|
|
3323
3566
|
customFonts: e.customFonts
|
|
3324
3567
|
})}
|
|
3325
|
-
${
|
|
3568
|
+
${Dn(e.isNestedRender)}
|
|
3326
3569
|
`.trim()
|
|
3327
3570
|
);
|
|
3328
|
-
return /* @__PURE__ */ s(
|
|
3571
|
+
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3329
3572
|
}
|
|
3330
|
-
const
|
|
3573
|
+
const Un = ({
|
|
3331
3574
|
content: e,
|
|
3332
3575
|
data: t,
|
|
3333
3576
|
locale: n
|
|
3334
3577
|
}) => {
|
|
3335
|
-
var
|
|
3336
|
-
const i = {}, o = ((
|
|
3337
|
-
return (l = (
|
|
3578
|
+
var r, a, l;
|
|
3579
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3580
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((c) => {
|
|
3338
3581
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
3339
3582
|
}), {
|
|
3340
3583
|
...i,
|
|
@@ -3344,7 +3587,7 @@ const Ln = ({
|
|
|
3344
3587
|
locale: n
|
|
3345
3588
|
} : {}
|
|
3346
3589
|
};
|
|
3347
|
-
},
|
|
3590
|
+
}, Mn = ({
|
|
3348
3591
|
content: e,
|
|
3349
3592
|
data: t
|
|
3350
3593
|
}) => e ? {
|
|
@@ -3355,46 +3598,46 @@ const Ln = ({
|
|
|
3355
3598
|
},
|
|
3356
3599
|
meta: e == null ? void 0 : e.meta
|
|
3357
3600
|
} : void 0;
|
|
3358
|
-
function
|
|
3359
|
-
var c,
|
|
3601
|
+
function Ie(e) {
|
|
3602
|
+
var c, u, f, d, m, g, p;
|
|
3360
3603
|
const [t, n] = C(
|
|
3361
3604
|
() => {
|
|
3362
|
-
var I,
|
|
3363
|
-
return
|
|
3605
|
+
var I, x;
|
|
3606
|
+
return Vn({
|
|
3364
3607
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3365
3608
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3366
3609
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3367
|
-
contentId: (
|
|
3610
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3368
3611
|
});
|
|
3369
3612
|
}
|
|
3370
3613
|
);
|
|
3371
3614
|
function i(I) {
|
|
3372
|
-
l((
|
|
3373
|
-
...
|
|
3615
|
+
l((x) => ({
|
|
3616
|
+
...x,
|
|
3374
3617
|
rootState: I
|
|
3375
3618
|
}));
|
|
3376
3619
|
}
|
|
3377
|
-
const [o,
|
|
3620
|
+
const [o, r] = C(
|
|
3378
3621
|
() => [
|
|
3379
|
-
...
|
|
3622
|
+
...ke(),
|
|
3380
3623
|
...e.customComponents || []
|
|
3381
3624
|
].reduce(
|
|
3382
|
-
(I, { component:
|
|
3625
|
+
(I, { component: x, ...R }) => ({
|
|
3383
3626
|
...I,
|
|
3384
3627
|
[R.name]: {
|
|
3385
|
-
component:
|
|
3386
|
-
...
|
|
3628
|
+
component: x,
|
|
3629
|
+
...ge(R)
|
|
3387
3630
|
}
|
|
3388
3631
|
}),
|
|
3389
3632
|
{}
|
|
3390
3633
|
)
|
|
3391
|
-
), [
|
|
3392
|
-
content:
|
|
3634
|
+
), [a, l] = C(() => ({
|
|
3635
|
+
content: Mn({
|
|
3393
3636
|
content: e.content,
|
|
3394
3637
|
data: e.data
|
|
3395
3638
|
}),
|
|
3396
3639
|
localState: void 0,
|
|
3397
|
-
rootState:
|
|
3640
|
+
rootState: Un({
|
|
3398
3641
|
content: e.content,
|
|
3399
3642
|
data: e.data,
|
|
3400
3643
|
locale: e.locale
|
|
@@ -3404,12 +3647,12 @@ function ke(e) {
|
|
|
3404
3647
|
apiKey: e.apiKey,
|
|
3405
3648
|
apiVersion: e.apiVersion,
|
|
3406
3649
|
componentInfos: [
|
|
3407
|
-
...
|
|
3650
|
+
...ke(),
|
|
3408
3651
|
...e.customComponents || []
|
|
3409
3652
|
].reduce(
|
|
3410
|
-
(I, { component:
|
|
3653
|
+
(I, { component: x, ...R }) => ({
|
|
3411
3654
|
...I,
|
|
3412
|
-
[R.name]:
|
|
3655
|
+
[R.name]: ge(R)
|
|
3413
3656
|
}),
|
|
3414
3657
|
{}
|
|
3415
3658
|
),
|
|
@@ -3418,13 +3661,13 @@ function ke(e) {
|
|
|
3418
3661
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3419
3662
|
}));
|
|
3420
3663
|
return /* @__PURE__ */ s(
|
|
3421
|
-
|
|
3664
|
+
Ve.Provider,
|
|
3422
3665
|
{
|
|
3423
3666
|
value: {
|
|
3424
3667
|
registeredComponents: o
|
|
3425
3668
|
},
|
|
3426
3669
|
children: /* @__PURE__ */ V(
|
|
3427
|
-
|
|
3670
|
+
On,
|
|
3428
3671
|
{
|
|
3429
3672
|
content: e.content,
|
|
3430
3673
|
data: e.data,
|
|
@@ -3435,7 +3678,7 @@ function ke(e) {
|
|
|
3435
3678
|
locale: e.locale,
|
|
3436
3679
|
enrich: e.enrich,
|
|
3437
3680
|
showContent: e.showContent,
|
|
3438
|
-
builderContextSignal:
|
|
3681
|
+
builderContextSignal: a,
|
|
3439
3682
|
contentWrapper: e.contentWrapper,
|
|
3440
3683
|
contentWrapperProps: e.contentWrapperProps,
|
|
3441
3684
|
linkComponent: e.linkComponent,
|
|
@@ -3443,26 +3686,26 @@ function ke(e) {
|
|
|
3443
3686
|
setBuilderContextSignal: l,
|
|
3444
3687
|
children: [
|
|
3445
3688
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3446
|
-
|
|
3689
|
+
ce,
|
|
3447
3690
|
{
|
|
3448
3691
|
id: "builderio-variant-visibility",
|
|
3449
3692
|
scriptStr: t
|
|
3450
3693
|
}
|
|
3451
3694
|
) : null,
|
|
3452
3695
|
/* @__PURE__ */ s(
|
|
3453
|
-
|
|
3696
|
+
jn,
|
|
3454
3697
|
{
|
|
3455
3698
|
isNestedRender: e.isNestedRender,
|
|
3456
|
-
contentId: (c =
|
|
3457
|
-
cssCode: (
|
|
3458
|
-
customFonts: (
|
|
3699
|
+
contentId: (c = a.content) == null ? void 0 : c.id,
|
|
3700
|
+
cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
|
|
3701
|
+
customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
|
|
3459
3702
|
}
|
|
3460
3703
|
),
|
|
3461
3704
|
/* @__PURE__ */ s(
|
|
3462
|
-
|
|
3705
|
+
D,
|
|
3463
3706
|
{
|
|
3464
|
-
blocks: (
|
|
3465
|
-
context:
|
|
3707
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3708
|
+
context: a,
|
|
3466
3709
|
registeredComponents: o,
|
|
3467
3710
|
linkComponent: e.linkComponent
|
|
3468
3711
|
}
|
|
@@ -3473,17 +3716,17 @@ function ke(e) {
|
|
|
3473
3716
|
}
|
|
3474
3717
|
);
|
|
3475
3718
|
}
|
|
3476
|
-
function
|
|
3477
|
-
var
|
|
3719
|
+
function Hn(e) {
|
|
3720
|
+
var a;
|
|
3478
3721
|
const [t, n] = C(
|
|
3479
|
-
() =>
|
|
3722
|
+
() => In({
|
|
3480
3723
|
canTrack: Q(e.canTrack),
|
|
3481
3724
|
content: e.content
|
|
3482
3725
|
})
|
|
3483
3726
|
);
|
|
3484
3727
|
function i() {
|
|
3485
3728
|
var l;
|
|
3486
|
-
return
|
|
3729
|
+
return Rn(
|
|
3487
3730
|
Y(e.content).map((c) => ({
|
|
3488
3731
|
id: c.testVariationId,
|
|
3489
3732
|
testRatio: c.testRatio
|
|
@@ -3494,42 +3737,42 @@ function Mn(e) {
|
|
|
3494
3737
|
function o() {
|
|
3495
3738
|
return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3496
3739
|
}
|
|
3497
|
-
function
|
|
3740
|
+
function r() {
|
|
3498
3741
|
var l;
|
|
3499
3742
|
return t ? {
|
|
3500
3743
|
...e.content,
|
|
3501
3744
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3502
|
-
} :
|
|
3745
|
+
} : Ze({
|
|
3503
3746
|
item: e.content,
|
|
3504
3747
|
canTrack: Q(e.canTrack)
|
|
3505
3748
|
});
|
|
3506
3749
|
}
|
|
3507
3750
|
return P(() => {
|
|
3508
|
-
}, []), /* @__PURE__ */ V(
|
|
3509
|
-
!e.isNestedRender &&
|
|
3510
|
-
|
|
3751
|
+
}, []), /* @__PURE__ */ V(E, { children: [
|
|
3752
|
+
!e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
|
|
3753
|
+
ce,
|
|
3511
3754
|
{
|
|
3512
3755
|
id: "builderio-init-variants-fns",
|
|
3513
|
-
scriptStr:
|
|
3756
|
+
scriptStr: En()
|
|
3514
3757
|
}
|
|
3515
3758
|
) : null,
|
|
3516
|
-
t ? /* @__PURE__ */ V(
|
|
3759
|
+
t ? /* @__PURE__ */ V(E, { children: [
|
|
3517
3760
|
/* @__PURE__ */ s(
|
|
3518
|
-
|
|
3761
|
+
ne,
|
|
3519
3762
|
{
|
|
3520
3763
|
id: "builderio-variants",
|
|
3521
3764
|
styles: o()
|
|
3522
3765
|
}
|
|
3523
3766
|
),
|
|
3524
3767
|
/* @__PURE__ */ s(
|
|
3525
|
-
|
|
3768
|
+
ce,
|
|
3526
3769
|
{
|
|
3527
3770
|
id: "builderio-variants-visibility",
|
|
3528
3771
|
scriptStr: i()
|
|
3529
3772
|
}
|
|
3530
3773
|
),
|
|
3531
|
-
(
|
|
3532
|
-
|
|
3774
|
+
(a = Y(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3775
|
+
Ie,
|
|
3533
3776
|
{
|
|
3534
3777
|
isNestedRender: e.isNestedRender,
|
|
3535
3778
|
content: l,
|
|
@@ -3555,10 +3798,10 @@ function Mn(e) {
|
|
|
3555
3798
|
))
|
|
3556
3799
|
] }) : null,
|
|
3557
3800
|
/* @__PURE__ */ s(
|
|
3558
|
-
|
|
3801
|
+
Ie,
|
|
3559
3802
|
{
|
|
3560
3803
|
isNestedRender: e.isNestedRender,
|
|
3561
|
-
content:
|
|
3804
|
+
content: r(),
|
|
3562
3805
|
showContent: !0,
|
|
3563
3806
|
model: e.model,
|
|
3564
3807
|
data: e.data,
|
|
@@ -3580,13 +3823,13 @@ function Mn(e) {
|
|
|
3580
3823
|
)
|
|
3581
3824
|
] });
|
|
3582
3825
|
}
|
|
3583
|
-
const
|
|
3826
|
+
const Kn = async ({
|
|
3584
3827
|
builderContextValue: e,
|
|
3585
3828
|
symbol: t
|
|
3586
3829
|
}) => {
|
|
3587
3830
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3588
3831
|
(e != null && e.apiKey))
|
|
3589
|
-
return
|
|
3832
|
+
return we({
|
|
3590
3833
|
model: t.model,
|
|
3591
3834
|
apiKey: e.apiKey,
|
|
3592
3835
|
apiVersion: e.apiVersion,
|
|
@@ -3599,8 +3842,8 @@ const On = async ({
|
|
|
3599
3842
|
Z.error("Could not fetch symbol content: ", n);
|
|
3600
3843
|
});
|
|
3601
3844
|
};
|
|
3602
|
-
function
|
|
3603
|
-
var l, c,
|
|
3845
|
+
function qn(e) {
|
|
3846
|
+
var l, c, u, f;
|
|
3604
3847
|
function t() {
|
|
3605
3848
|
return "div";
|
|
3606
3849
|
}
|
|
@@ -3608,31 +3851,31 @@ function Un(e) {
|
|
|
3608
3851
|
return "div";
|
|
3609
3852
|
}
|
|
3610
3853
|
function i() {
|
|
3611
|
-
var
|
|
3854
|
+
var d, m;
|
|
3612
3855
|
return [
|
|
3613
3856
|
e.attributes[K()],
|
|
3614
3857
|
"builder-symbol",
|
|
3615
|
-
(
|
|
3616
|
-
(
|
|
3858
|
+
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
3859
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
3617
3860
|
].filter(Boolean).join(" ");
|
|
3618
3861
|
}
|
|
3619
|
-
const [o,
|
|
3620
|
-
var
|
|
3621
|
-
return (
|
|
3862
|
+
const [o, r] = C(() => {
|
|
3863
|
+
var d;
|
|
3864
|
+
return (d = e.symbol) == null ? void 0 : d.content;
|
|
3622
3865
|
});
|
|
3623
|
-
function
|
|
3624
|
-
o ||
|
|
3866
|
+
function a() {
|
|
3867
|
+
o || Kn({
|
|
3625
3868
|
symbol: e.symbol,
|
|
3626
3869
|
builderContextValue: e.builderContext
|
|
3627
|
-
}).then((
|
|
3628
|
-
|
|
3870
|
+
}).then((d) => {
|
|
3871
|
+
d && r(d);
|
|
3629
3872
|
});
|
|
3630
3873
|
}
|
|
3631
3874
|
return P(() => {
|
|
3632
3875
|
}, []), P(() => {
|
|
3633
|
-
|
|
3876
|
+
a();
|
|
3634
3877
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
3635
|
-
|
|
3878
|
+
Hn,
|
|
3636
3879
|
{
|
|
3637
3880
|
isNestedRender: !0,
|
|
3638
3881
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -3645,9 +3888,9 @@ function Un(e) {
|
|
|
3645
3888
|
data: {
|
|
3646
3889
|
...(c = e.symbol) == null ? void 0 : c.data,
|
|
3647
3890
|
...e.builderContext.localState,
|
|
3648
|
-
...(
|
|
3891
|
+
...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
|
|
3649
3892
|
},
|
|
3650
|
-
model: (
|
|
3893
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
3651
3894
|
content: o,
|
|
3652
3895
|
linkComponent: e.builderLinkComponent,
|
|
3653
3896
|
blocksWrapper: t(),
|
|
@@ -3656,15 +3899,15 @@ function Un(e) {
|
|
|
3656
3899
|
) });
|
|
3657
3900
|
}
|
|
3658
3901
|
export {
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3902
|
+
D as Blocks,
|
|
3903
|
+
me as BuilderContext,
|
|
3904
|
+
nt as Button,
|
|
3905
|
+
Wt as Columns,
|
|
3906
|
+
Hn as Content,
|
|
3907
|
+
Ft as Fragment,
|
|
3908
|
+
Lt as Image,
|
|
3909
|
+
Ot as Section,
|
|
3910
|
+
qn as Symbol,
|
|
3911
|
+
Zt as Text,
|
|
3912
|
+
vn as Video
|
|
3670
3913
|
};
|