@builder.io/sdk-react 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/lib/browser/blocks-exports.cjs +25 -25
- package/lib/browser/blocks-exports.mjs +505 -583
- 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-65ef631d.js → server-entry-709e09e3.js} +1 -1
- package/lib/browser/{server-entry-94ed11a2.cjs → server-entry-e0454364.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-72b84877.cjs → accordion-12c2d408.cjs} +1 -1
- package/lib/edge/{accordion-cbe33da4.js → accordion-bd80745a.js} +1 -1
- package/lib/edge/{blocks-88689ec9.js → blocks-6d6258ba.js} +688 -684
- package/lib/edge/{blocks-1afa415a.cjs → blocks-ac8970f1.cjs} +13 -13
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-841d9178.js → button-4e842584.js} +2 -2
- package/lib/edge/{button-25700a5b.cjs → button-c2e45e64.cjs} +1 -1
- package/lib/edge/{columns-17e098f2.js → columns-a51238cc.js} +16 -16
- package/lib/edge/columns-bc2b0674.cjs +28 -0
- package/lib/edge/content-variants-3fe9b1c0.cjs +134 -0
- package/lib/edge/{content-variants-27523e14.js → content-variants-f3c6baad.js} +166 -248
- package/lib/edge/{form-1b0ea78b.js → form-00c8cc55.js} +3 -3
- package/lib/edge/{form-a97b8e7f.cjs → form-b4cdf7cd.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-6096152c.js → get-class-prop-name-1bbed5bf.js} +1 -1
- package/lib/edge/{get-class-prop-name-a119460c.cjs → get-class-prop-name-3c5f7a7d.cjs} +1 -1
- package/lib/edge/{img-f9912657.cjs → img-6671da9a.cjs} +1 -1
- package/lib/edge/{img-ea259737.js → img-e7db1475.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-0cfeed6a.cjs → input-0f7a9f1c.cjs} +1 -1
- package/lib/edge/{input-32508fbe.js → input-2db47a83.js} +1 -1
- package/lib/edge/{select-d18bf3dd.js → select-2facacf2.js} +1 -1
- package/lib/edge/{select-19d699ed.cjs → select-f0859c5f.cjs} +1 -1
- package/lib/edge/{server-entry-ed17153b.js → server-entry-75aa714e.js} +1 -1
- package/lib/edge/{server-entry-f7ebd44f.cjs → server-entry-ff6a2e2d.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-7c690d3a.js → slot-8159ca1d.js} +3 -3
- package/lib/edge/{slot-c0a5ac83.cjs → slot-aee43b86.cjs} +1 -1
- package/lib/edge/{symbol-e3eb2159.js → symbol-36a155f3.js} +2 -2
- package/lib/edge/{symbol-4c9196cb.cjs → symbol-a244cc31.cjs} +1 -1
- package/lib/edge/{tabs-10e32767.cjs → tabs-4112a80e.cjs} +1 -1
- package/lib/edge/{tabs-46c4603d.js → tabs-f5357a4e.js} +3 -3
- package/lib/node/blocks-exports.cjs +25 -25
- package/lib/node/blocks-exports.mjs +504 -582
- 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-162b3ad2.js → node-runtime-80c4bfc8.js} +1 -1
- package/lib/node/{node-runtime-d5983829.cjs → node-runtime-eb72e084.cjs} +1 -1
- package/lib/node/{server-entry-879010db.cjs → server-entry-b2103255.cjs} +1 -1
- package/lib/node/{server-entry-771cfa6f.js → server-entry-e8ac67b5.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +8 -8
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-c934b550.cjs +0 -28
- package/lib/edge/content-variants-c7dd50a4.cjs +0 -134
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var qe = (e, t, n) => t in e ?
|
|
4
|
-
var
|
|
5
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
8
|
-
import { getFunctionArguments as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
var He = Object.defineProperty;
|
|
3
|
+
var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-e8ac67b5.js";
|
|
7
|
+
import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Re } from "react";
|
|
8
|
+
import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-80c4bfc8.js";
|
|
9
|
+
const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
|
|
10
|
+
function ue(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: it(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
13
|
const H = () => {
|
|
14
|
-
switch (
|
|
14
|
+
switch (K) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -24,7 +24,7 @@ const H = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ot(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function at(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
ue,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function at(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = we({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -61,15 +61,15 @@ const fe = Re({
|
|
|
61
61
|
inheritedStyles: {},
|
|
62
62
|
BlocksWrapper: "div",
|
|
63
63
|
BlocksWrapperProps: {}
|
|
64
|
-
}),
|
|
65
|
-
function
|
|
64
|
+
}), Be = we({ registeredComponents: {} });
|
|
65
|
+
function at(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
68
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const rt = ({
|
|
73
73
|
code: e,
|
|
74
74
|
builder: t,
|
|
75
75
|
context: n,
|
|
@@ -78,11 +78,11 @@ const lt = ({
|
|
|
78
78
|
rootSetState: l,
|
|
79
79
|
rootState: a
|
|
80
80
|
}) => {
|
|
81
|
-
const r =
|
|
81
|
+
const r = Xe({
|
|
82
82
|
builder: t,
|
|
83
83
|
context: n,
|
|
84
84
|
event: i,
|
|
85
|
-
state:
|
|
85
|
+
state: Pe({
|
|
86
86
|
rootState: a,
|
|
87
87
|
localState: o,
|
|
88
88
|
rootSetState: l
|
|
@@ -90,7 +90,7 @@ const lt = ({
|
|
|
90
90
|
});
|
|
91
91
|
return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
|
|
92
92
|
};
|
|
93
|
-
function
|
|
93
|
+
function Pe({
|
|
94
94
|
rootState: e,
|
|
95
95
|
localState: t,
|
|
96
96
|
rootSetState: n
|
|
@@ -100,7 +100,7 @@ function Ve({
|
|
|
100
100
|
if (t && o in t)
|
|
101
101
|
return t[o];
|
|
102
102
|
const l = i[o];
|
|
103
|
-
return typeof l == "object" && l !== null ?
|
|
103
|
+
return typeof l == "object" && l !== null ? Pe({
|
|
104
104
|
rootState: l,
|
|
105
105
|
localState: void 0,
|
|
106
106
|
rootSetState: n ? (a) => {
|
|
@@ -115,17 +115,17 @@ function Ve({
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function lt() {
|
|
119
119
|
var e;
|
|
120
120
|
return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const st = () => {
|
|
123
123
|
var i;
|
|
124
|
-
if (!
|
|
124
|
+
if (!lt())
|
|
125
125
|
return !1;
|
|
126
126
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
127
127
|
return e && t && !n ? (Z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
128
|
-
},
|
|
128
|
+
}, ct = (e) => G() || st() ? rt(e) : Ze(e), L = class L {
|
|
129
129
|
static getCacheKey(t) {
|
|
130
130
|
return JSON.stringify({
|
|
131
131
|
...t,
|
|
@@ -135,17 +135,17 @@ const ct = () => {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
static getCachedValue(t) {
|
|
138
|
-
return
|
|
138
|
+
return L.cache.get(t);
|
|
139
139
|
}
|
|
140
140
|
static setCachedValue(t, n) {
|
|
141
|
-
|
|
141
|
+
L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
|
|
142
142
|
value: n
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
let
|
|
148
|
-
function
|
|
146
|
+
ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
|
|
147
|
+
let M = L;
|
|
148
|
+
function q({
|
|
149
149
|
code: e,
|
|
150
150
|
context: t,
|
|
151
151
|
localState: n,
|
|
@@ -158,10 +158,10 @@ function K({
|
|
|
158
158
|
if (e === "")
|
|
159
159
|
return;
|
|
160
160
|
const c = {
|
|
161
|
-
code:
|
|
161
|
+
code: et(e, {
|
|
162
162
|
isExpression: a
|
|
163
163
|
}),
|
|
164
|
-
builder:
|
|
164
|
+
builder: tt(),
|
|
165
165
|
context: t,
|
|
166
166
|
event: l,
|
|
167
167
|
rootSetState: o,
|
|
@@ -169,15 +169,15 @@ function K({
|
|
|
169
169
|
localState: n
|
|
170
170
|
};
|
|
171
171
|
if (r) {
|
|
172
|
-
const u =
|
|
172
|
+
const u = M.getCacheKey(c), f = M.getCachedValue(u);
|
|
173
173
|
if (f)
|
|
174
174
|
return f.value;
|
|
175
175
|
}
|
|
176
176
|
try {
|
|
177
|
-
const u =
|
|
177
|
+
const u = ct(c);
|
|
178
178
|
if (r) {
|
|
179
|
-
const f =
|
|
180
|
-
|
|
179
|
+
const f = M.getCacheKey(c);
|
|
180
|
+
M.setCachedValue(f, u);
|
|
181
181
|
}
|
|
182
182
|
return u;
|
|
183
183
|
} catch (u) {
|
|
@@ -187,7 +187,7 @@ function K({
|
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const dt = ({
|
|
191
191
|
block: e,
|
|
192
192
|
context: t,
|
|
193
193
|
localState: n,
|
|
@@ -196,7 +196,7 @@ const ut = ({
|
|
|
196
196
|
}) => {
|
|
197
197
|
if (!e.bindings)
|
|
198
198
|
return e;
|
|
199
|
-
const l =
|
|
199
|
+
const l = de(e), a = {
|
|
200
200
|
...l,
|
|
201
201
|
properties: {
|
|
202
202
|
...l.properties
|
|
@@ -206,7 +206,7 @@ const ut = ({
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
for (const r in e.bindings) {
|
|
209
|
-
const c = e.bindings[r], u =
|
|
209
|
+
const c = e.bindings[r], u = q({
|
|
210
210
|
code: c,
|
|
211
211
|
localState: n,
|
|
212
212
|
rootState: i,
|
|
@@ -214,7 +214,7 @@ const ut = ({
|
|
|
214
214
|
context: t,
|
|
215
215
|
enableCache: !0
|
|
216
216
|
});
|
|
217
|
-
|
|
217
|
+
Ee(a, r, u);
|
|
218
218
|
}
|
|
219
219
|
return a;
|
|
220
220
|
};
|
|
@@ -227,7 +227,7 @@ function X({
|
|
|
227
227
|
rootSetState: l
|
|
228
228
|
}) {
|
|
229
229
|
const a = e;
|
|
230
|
-
return n ?
|
|
230
|
+
return n ? dt({
|
|
231
231
|
block: a,
|
|
232
232
|
localState: i,
|
|
233
233
|
rootState: o,
|
|
@@ -236,7 +236,7 @@ function X({
|
|
|
236
236
|
}) : a;
|
|
237
237
|
}
|
|
238
238
|
const te = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
239
|
-
function
|
|
239
|
+
function ut(e, t, n = {}) {
|
|
240
240
|
let i, o, l, a = null, r = 0;
|
|
241
241
|
const c = function() {
|
|
242
242
|
r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
|
|
@@ -248,7 +248,7 @@ function mt(e, t, n = {}) {
|
|
|
248
248
|
return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function U(e, ...t) {
|
|
252
252
|
const n = Object(e);
|
|
253
253
|
for (let i = 1; i < arguments.length; i++) {
|
|
254
254
|
const o = arguments[i];
|
|
@@ -258,64 +258,64 @@ function M(e, ...t) {
|
|
|
258
258
|
}
|
|
259
259
|
return n;
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function mt(e) {
|
|
262
262
|
for (const t of e)
|
|
263
263
|
switch (t.trigger) {
|
|
264
264
|
case "pageLoad":
|
|
265
|
-
|
|
265
|
+
Ne(t);
|
|
266
266
|
break;
|
|
267
267
|
case "scrollInView":
|
|
268
|
-
|
|
268
|
+
ht(t);
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Ve(e) {
|
|
273
273
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
const n =
|
|
275
|
+
function Ae(e, t) {
|
|
276
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, l = e.steps[e.steps.length - 1].styles, a = [o, l];
|
|
277
277
|
for (const r of a)
|
|
278
278
|
for (const c of n)
|
|
279
279
|
c in r || (r[c] = i[c]);
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ft(e) {
|
|
282
282
|
const t = [];
|
|
283
283
|
for (const n of e.steps)
|
|
284
284
|
for (const i in n.styles)
|
|
285
285
|
t.indexOf(i) === -1 && t.push(i);
|
|
286
286
|
return t;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Ne(e) {
|
|
289
289
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
290
290
|
if (!t.length) {
|
|
291
|
-
|
|
291
|
+
Ve(e.elementId || e.id || "");
|
|
292
292
|
return;
|
|
293
293
|
}
|
|
294
294
|
Array.from(t).forEach((n) => {
|
|
295
|
-
|
|
296
|
-
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
295
|
+
Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
296
|
+
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
297
297
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
298
298
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ht(e) {
|
|
303
303
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
304
304
|
if (!t.length) {
|
|
305
|
-
|
|
305
|
+
Ve(e.elementId || e.id || "");
|
|
306
306
|
return;
|
|
307
307
|
}
|
|
308
308
|
Array.from(t).forEach((n) => {
|
|
309
|
-
|
|
309
|
+
Ae(e, n);
|
|
310
310
|
let i = !1, o = !1;
|
|
311
311
|
function l() {
|
|
312
312
|
!i && r(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
313
|
-
|
|
313
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
314
314
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
315
315
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
316
|
-
})) : e.repeat && i && !o && !r(n) && (i = !1,
|
|
316
|
+
})) : e.repeat && i && !o && !r(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
317
317
|
}
|
|
318
|
-
const a =
|
|
318
|
+
const a = ut(l, 200, {
|
|
319
319
|
leading: !1
|
|
320
320
|
});
|
|
321
321
|
function r(f) {
|
|
@@ -324,7 +324,7 @@ function bt(e) {
|
|
|
324
324
|
}
|
|
325
325
|
const c = e.steps[0].styles;
|
|
326
326
|
function u() {
|
|
327
|
-
|
|
327
|
+
U(n.style, c);
|
|
328
328
|
}
|
|
329
329
|
u(), setTimeout(() => {
|
|
330
330
|
n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -334,11 +334,11 @@ function bt(e) {
|
|
|
334
334
|
}), l();
|
|
335
335
|
});
|
|
336
336
|
}
|
|
337
|
-
const
|
|
337
|
+
const We = (e) => Object.entries(e).map(([n, i]) => {
|
|
338
338
|
if (typeof i == "string")
|
|
339
339
|
return `${te(n)}: ${i};`;
|
|
340
|
-
}).filter(Y), gt = (e) =>
|
|
341
|
-
`),
|
|
340
|
+
}).filter(Y), gt = (e) => We(e).join(`
|
|
341
|
+
`), _ = ({
|
|
342
342
|
mediaQuery: e,
|
|
343
343
|
className: t,
|
|
344
344
|
styles: n
|
|
@@ -350,26 +350,26 @@ const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
350
350
|
${i}
|
|
351
351
|
}` : i;
|
|
352
352
|
};
|
|
353
|
-
function
|
|
353
|
+
function bt({
|
|
354
354
|
style: e
|
|
355
355
|
}) {
|
|
356
356
|
return e;
|
|
357
357
|
}
|
|
358
|
-
const
|
|
358
|
+
const pt = ({
|
|
359
359
|
block: e,
|
|
360
360
|
context: t
|
|
361
|
-
}) => Fe(
|
|
361
|
+
}) => Fe(bt({
|
|
362
362
|
style: e.style || {},
|
|
363
363
|
context: t,
|
|
364
364
|
block: e
|
|
365
365
|
}));
|
|
366
366
|
function Fe(e) {
|
|
367
|
-
switch (
|
|
367
|
+
switch (K) {
|
|
368
368
|
case "svelte":
|
|
369
369
|
case "vue":
|
|
370
370
|
case "solid":
|
|
371
371
|
case "angular":
|
|
372
|
-
return
|
|
372
|
+
return We(e).join(" ");
|
|
373
373
|
case "qwik":
|
|
374
374
|
case "reactNative":
|
|
375
375
|
case "react":
|
|
@@ -377,7 +377,7 @@ function Fe(e) {
|
|
|
377
377
|
return e;
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const yt = ({
|
|
381
381
|
block: e,
|
|
382
382
|
context: t,
|
|
383
383
|
registeredComponents: n
|
|
@@ -399,7 +399,7 @@ const xt = ({
|
|
|
399
399
|
console.warn(`
|
|
400
400
|
Could not find a registered component named "${i}".
|
|
401
401
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
402
|
-
},
|
|
402
|
+
}, xt = ({
|
|
403
403
|
block: e,
|
|
404
404
|
context: t
|
|
405
405
|
}) => {
|
|
@@ -409,7 +409,7 @@ const xt = ({
|
|
|
409
409
|
} = e;
|
|
410
410
|
if (!(n != null && n.collection))
|
|
411
411
|
return;
|
|
412
|
-
const o =
|
|
412
|
+
const o = q({
|
|
413
413
|
code: n.collection,
|
|
414
414
|
localState: t.localState,
|
|
415
415
|
rootState: t.rootState,
|
|
@@ -433,23 +433,27 @@ const xt = ({
|
|
|
433
433
|
},
|
|
434
434
|
block: i
|
|
435
435
|
}));
|
|
436
|
-
},
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
} : {}
|
|
451
|
-
|
|
452
|
-
|
|
436
|
+
}, vt = (e, t) => {
|
|
437
|
+
var n;
|
|
438
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
439
|
+
builderLinkComponent: t
|
|
440
|
+
} : {};
|
|
441
|
+
}, St = (e, t) => {
|
|
442
|
+
var n;
|
|
443
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
444
|
+
builderComponents: t
|
|
445
|
+
} : {};
|
|
446
|
+
}, kt = (e, t) => {
|
|
447
|
+
var n;
|
|
448
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
449
|
+
builderBlock: t
|
|
450
|
+
} : {};
|
|
451
|
+
}, Ct = (e, t) => {
|
|
452
|
+
var n;
|
|
453
|
+
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
454
|
+
builderContext: t
|
|
455
|
+
} : {};
|
|
456
|
+
}, $e = {
|
|
453
457
|
small: {
|
|
454
458
|
min: 320,
|
|
455
459
|
default: 321,
|
|
@@ -465,11 +469,11 @@ const xt = ({
|
|
|
465
469
|
default: 991,
|
|
466
470
|
max: 1200
|
|
467
471
|
}
|
|
468
|
-
},
|
|
472
|
+
}, pe = (e, t = $e) => `@media (max-width: ${t[e].max}px)`, De = ({
|
|
469
473
|
small: e,
|
|
470
474
|
medium: t
|
|
471
475
|
}) => {
|
|
472
|
-
const n =
|
|
476
|
+
const n = de($e);
|
|
473
477
|
if (!e || !t)
|
|
474
478
|
return n;
|
|
475
479
|
const i = Math.floor(e / 2);
|
|
@@ -492,7 +496,7 @@ const xt = ({
|
|
|
492
496
|
default: l + 1
|
|
493
497
|
}, n;
|
|
494
498
|
};
|
|
495
|
-
function
|
|
499
|
+
function ne(e) {
|
|
496
500
|
return /* @__PURE__ */ s(
|
|
497
501
|
"style",
|
|
498
502
|
{
|
|
@@ -501,7 +505,7 @@ function ie(e) {
|
|
|
501
505
|
}
|
|
502
506
|
);
|
|
503
507
|
}
|
|
504
|
-
function
|
|
508
|
+
function Tt(e) {
|
|
505
509
|
function t() {
|
|
506
510
|
const i = X({
|
|
507
511
|
block: e.block,
|
|
@@ -514,7 +518,7 @@ function It(e) {
|
|
|
514
518
|
return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
|
|
515
519
|
}
|
|
516
520
|
function n() {
|
|
517
|
-
var x,
|
|
521
|
+
var x, E, V;
|
|
518
522
|
const i = X({
|
|
519
523
|
block: e.block,
|
|
520
524
|
localState: e.context.localState,
|
|
@@ -527,28 +531,28 @@ function It(e) {
|
|
|
527
531
|
), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
|
|
528
532
|
if (!f)
|
|
529
533
|
return "";
|
|
530
|
-
const d = r ?
|
|
534
|
+
const d = r ? _({
|
|
531
535
|
className: f,
|
|
532
536
|
styles: r
|
|
533
|
-
}) : "", m = c ?
|
|
537
|
+
}) : "", m = c ? _({
|
|
534
538
|
className: f,
|
|
535
539
|
styles: c,
|
|
536
|
-
mediaQuery:
|
|
540
|
+
mediaQuery: pe(
|
|
537
541
|
"medium",
|
|
538
542
|
a
|
|
539
543
|
)
|
|
540
|
-
}) : "",
|
|
544
|
+
}) : "", g = u ? _({
|
|
541
545
|
className: f,
|
|
542
546
|
styles: u,
|
|
543
|
-
mediaQuery:
|
|
547
|
+
mediaQuery: pe(
|
|
544
548
|
"small",
|
|
545
549
|
a
|
|
546
550
|
)
|
|
547
551
|
}) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
548
552
|
let I = "";
|
|
549
553
|
if (p) {
|
|
550
|
-
const A = ((V = (
|
|
551
|
-
I =
|
|
554
|
+
const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
|
|
555
|
+
I = _({
|
|
552
556
|
className: `${f}:hover`,
|
|
553
557
|
styles: {
|
|
554
558
|
...A,
|
|
@@ -562,16 +566,16 @@ function It(e) {
|
|
|
562
566
|
return [
|
|
563
567
|
d,
|
|
564
568
|
m,
|
|
565
|
-
|
|
569
|
+
g,
|
|
566
570
|
I
|
|
567
571
|
].join(" ");
|
|
568
572
|
}
|
|
569
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
573
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
|
|
570
574
|
}
|
|
571
|
-
function
|
|
575
|
+
function It(e) {
|
|
572
576
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
573
577
|
}
|
|
574
|
-
const
|
|
578
|
+
const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
|
|
575
579
|
code: e,
|
|
576
580
|
context: t.context,
|
|
577
581
|
localState: t.localState,
|
|
@@ -581,16 +585,16 @@ const Rt = (e) => `on${wt(e)}`, Bt = (e, t) => (n) => K({
|
|
|
581
585
|
isExpression: !1,
|
|
582
586
|
enableCache: !0
|
|
583
587
|
});
|
|
584
|
-
function
|
|
588
|
+
function Le(e) {
|
|
585
589
|
var i;
|
|
586
590
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
587
591
|
for (const o in n) {
|
|
588
592
|
if (!n.hasOwnProperty(o))
|
|
589
593
|
continue;
|
|
590
594
|
const l = n[o];
|
|
591
|
-
let a =
|
|
595
|
+
let a = wt(o);
|
|
592
596
|
if (e.stripPrefix)
|
|
593
|
-
switch (
|
|
597
|
+
switch (K) {
|
|
594
598
|
case "vue":
|
|
595
599
|
a = a.replace("v-on:", "");
|
|
596
600
|
break;
|
|
@@ -598,49 +602,49 @@ function Oe(e) {
|
|
|
598
602
|
a = a.replace("on:", "");
|
|
599
603
|
break;
|
|
600
604
|
}
|
|
601
|
-
t[a] =
|
|
605
|
+
t[a] = Rt(l, e);
|
|
602
606
|
}
|
|
603
607
|
return t;
|
|
604
608
|
}
|
|
605
|
-
function
|
|
609
|
+
function Et({
|
|
606
610
|
properties: e
|
|
607
611
|
}) {
|
|
608
612
|
return e;
|
|
609
613
|
}
|
|
610
|
-
const
|
|
614
|
+
const Bt = (e) => ({
|
|
611
615
|
href: e.href
|
|
612
616
|
});
|
|
613
|
-
function
|
|
617
|
+
function fe({
|
|
614
618
|
block: e,
|
|
615
619
|
context: t
|
|
616
620
|
}) {
|
|
617
621
|
var i;
|
|
618
622
|
const n = {
|
|
619
|
-
...
|
|
623
|
+
...Bt(e),
|
|
620
624
|
...e.properties,
|
|
621
625
|
"builder-id": e.id,
|
|
622
|
-
style:
|
|
626
|
+
style: pt({
|
|
623
627
|
block: e,
|
|
624
628
|
context: t
|
|
625
629
|
}),
|
|
626
630
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
627
631
|
};
|
|
628
|
-
return
|
|
632
|
+
return Et({
|
|
629
633
|
properties: n,
|
|
630
634
|
context: t,
|
|
631
635
|
block: e
|
|
632
636
|
});
|
|
633
637
|
}
|
|
634
|
-
function
|
|
638
|
+
function Pt(e) {
|
|
635
639
|
return /* @__PURE__ */ s(
|
|
636
|
-
|
|
640
|
+
ue,
|
|
637
641
|
{
|
|
638
642
|
TagName: e.Wrapper,
|
|
639
|
-
attributes:
|
|
643
|
+
attributes: fe({
|
|
640
644
|
block: e.block,
|
|
641
645
|
context: e.context
|
|
642
646
|
}),
|
|
643
|
-
actionAttributes:
|
|
647
|
+
actionAttributes: Le({
|
|
644
648
|
block: e.block,
|
|
645
649
|
rootState: e.context.rootState,
|
|
646
650
|
rootSetState: e.context.rootSetState,
|
|
@@ -652,14 +656,14 @@ function Vt(e) {
|
|
|
652
656
|
}
|
|
653
657
|
);
|
|
654
658
|
}
|
|
655
|
-
function
|
|
659
|
+
function Vt(e) {
|
|
656
660
|
function t() {
|
|
657
661
|
return e.includeBlockProps ? {
|
|
658
|
-
...
|
|
662
|
+
...fe({
|
|
659
663
|
block: e.block,
|
|
660
664
|
context: e.context
|
|
661
665
|
}),
|
|
662
|
-
...
|
|
666
|
+
...Le({
|
|
663
667
|
block: e.block,
|
|
664
668
|
rootState: e.context.rootState,
|
|
665
669
|
rootSetState: e.context.rootSetState,
|
|
@@ -670,7 +674,7 @@ function At(e) {
|
|
|
670
674
|
}
|
|
671
675
|
return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
672
676
|
}
|
|
673
|
-
const
|
|
677
|
+
const At = ({
|
|
674
678
|
componentOptions: e,
|
|
675
679
|
builderBlock: t,
|
|
676
680
|
context: n,
|
|
@@ -686,7 +690,7 @@ const Nt = ({
|
|
|
686
690
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
687
691
|
*/
|
|
688
692
|
...o ? {
|
|
689
|
-
attributes:
|
|
693
|
+
attributes: fe({
|
|
690
694
|
block: t,
|
|
691
695
|
context: a
|
|
692
696
|
})
|
|
@@ -700,15 +704,15 @@ const Nt = ({
|
|
|
700
704
|
includeBlockProps: o
|
|
701
705
|
} : r;
|
|
702
706
|
};
|
|
703
|
-
function
|
|
707
|
+
function ye(e) {
|
|
704
708
|
var i;
|
|
705
709
|
const [t, n] = C(
|
|
706
|
-
() => e.isInteractive ?
|
|
710
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
707
711
|
);
|
|
708
712
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
709
713
|
t,
|
|
710
714
|
{
|
|
711
|
-
...
|
|
715
|
+
...At({
|
|
712
716
|
componentOptions: e.componentOptions,
|
|
713
717
|
builderBlock: e.builderBlock,
|
|
714
718
|
context: e.context,
|
|
@@ -719,7 +723,7 @@ function xe(e) {
|
|
|
719
723
|
contextValue: e.context
|
|
720
724
|
}),
|
|
721
725
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
722
|
-
|
|
726
|
+
z,
|
|
723
727
|
{
|
|
724
728
|
block: o,
|
|
725
729
|
context: e.context,
|
|
@@ -731,10 +735,10 @@ function xe(e) {
|
|
|
731
735
|
}
|
|
732
736
|
) }) : null });
|
|
733
737
|
}
|
|
734
|
-
function
|
|
738
|
+
function Nt(e) {
|
|
735
739
|
const [t, n] = C(() => e.repeatContext);
|
|
736
|
-
return /* @__PURE__ */ s(
|
|
737
|
-
|
|
740
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
741
|
+
z,
|
|
738
742
|
{
|
|
739
743
|
block: e.block,
|
|
740
744
|
context: t,
|
|
@@ -743,17 +747,17 @@ function Wt(e) {
|
|
|
743
747
|
}
|
|
744
748
|
) });
|
|
745
749
|
}
|
|
746
|
-
function
|
|
750
|
+
function z(e) {
|
|
747
751
|
var c, u, f;
|
|
748
752
|
function t() {
|
|
749
|
-
return
|
|
753
|
+
return yt({
|
|
750
754
|
block: e.block,
|
|
751
755
|
context: e.context,
|
|
752
756
|
registeredComponents: e.registeredComponents
|
|
753
757
|
});
|
|
754
758
|
}
|
|
755
759
|
function n() {
|
|
756
|
-
return
|
|
760
|
+
return xt({
|
|
757
761
|
block: e.block,
|
|
758
762
|
context: e.context
|
|
759
763
|
});
|
|
@@ -774,27 +778,27 @@ function _(e) {
|
|
|
774
778
|
return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
775
779
|
}
|
|
776
780
|
function l() {
|
|
777
|
-
var
|
|
778
|
-
if ((
|
|
781
|
+
var g, p;
|
|
782
|
+
if ((g = e.block.repeat) != null && g.collection)
|
|
779
783
|
return !!((p = n == null ? void 0 : n()) != null && p.length);
|
|
780
784
|
const d = "hide" in i() ? i().hide : !1;
|
|
781
785
|
return ("show" in i() ? i().show : !0) && !d;
|
|
782
786
|
}
|
|
783
787
|
function a() {
|
|
784
|
-
var m,
|
|
785
|
-
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (
|
|
788
|
+
var m, g;
|
|
789
|
+
return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
|
|
786
790
|
}
|
|
787
791
|
function r() {
|
|
788
|
-
var d, m,
|
|
792
|
+
var d, m, g, p;
|
|
789
793
|
return {
|
|
790
794
|
blockChildren: (d = i().children) != null ? d : [],
|
|
791
795
|
componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
|
|
792
796
|
componentOptions: {
|
|
793
|
-
...
|
|
794
|
-
...
|
|
795
|
-
...
|
|
796
|
-
...
|
|
797
|
-
...
|
|
797
|
+
...at(i()),
|
|
798
|
+
...kt(t(), i()),
|
|
799
|
+
...Ct(t(), e.context),
|
|
800
|
+
...vt(t(), e.linkComponent),
|
|
801
|
+
...St(
|
|
798
802
|
t(),
|
|
799
803
|
e.registeredComponents
|
|
800
804
|
)
|
|
@@ -803,22 +807,22 @@ function _(e) {
|
|
|
803
807
|
linkComponent: e.linkComponent,
|
|
804
808
|
registeredComponents: e.registeredComponents,
|
|
805
809
|
builderBlock: i(),
|
|
806
|
-
includeBlockProps: ((
|
|
810
|
+
includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
|
|
807
811
|
isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
|
|
808
812
|
};
|
|
809
813
|
}
|
|
810
|
-
return
|
|
814
|
+
return B(() => {
|
|
811
815
|
const d = i().id, m = i().animations;
|
|
812
|
-
m && d &&
|
|
813
|
-
m.map((
|
|
814
|
-
...
|
|
816
|
+
m && d && mt(
|
|
817
|
+
m.map((g) => ({
|
|
818
|
+
...g,
|
|
815
819
|
elementId: d
|
|
816
820
|
}))
|
|
817
821
|
);
|
|
818
|
-
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
819
|
-
/* @__PURE__ */ s(
|
|
822
|
+
}, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ P(R, { children: [
|
|
823
|
+
/* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
|
|
820
824
|
(c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
821
|
-
|
|
825
|
+
ye,
|
|
822
826
|
{
|
|
823
827
|
componentRef: r().componentRef,
|
|
824
828
|
componentOptions: r().componentOptions,
|
|
@@ -831,7 +835,7 @@ function _(e) {
|
|
|
831
835
|
isInteractive: r().isInteractive
|
|
832
836
|
}
|
|
833
837
|
) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
|
|
834
|
-
|
|
838
|
+
Nt,
|
|
835
839
|
{
|
|
836
840
|
repeatContext: d.context,
|
|
837
841
|
block: d.block,
|
|
@@ -839,15 +843,15 @@ function _(e) {
|
|
|
839
843
|
linkComponent: e.linkComponent
|
|
840
844
|
},
|
|
841
845
|
m
|
|
842
|
-
)) }) : /* @__PURE__ */
|
|
843
|
-
|
|
846
|
+
)) }) : /* @__PURE__ */ P(
|
|
847
|
+
Pt,
|
|
844
848
|
{
|
|
845
849
|
Wrapper: o(),
|
|
846
850
|
block: i(),
|
|
847
851
|
context: e.context,
|
|
848
852
|
children: [
|
|
849
853
|
/* @__PURE__ */ s(
|
|
850
|
-
|
|
854
|
+
ye,
|
|
851
855
|
{
|
|
852
856
|
componentRef: r().componentRef,
|
|
853
857
|
componentOptions: r().componentOptions,
|
|
@@ -861,7 +865,7 @@ function _(e) {
|
|
|
861
865
|
}
|
|
862
866
|
),
|
|
863
867
|
(u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
|
|
864
|
-
|
|
868
|
+
z,
|
|
865
869
|
{
|
|
866
870
|
block: d,
|
|
867
871
|
registeredComponents: e.registeredComponents,
|
|
@@ -875,14 +879,14 @@ function _(e) {
|
|
|
875
879
|
) })
|
|
876
880
|
] }) : null });
|
|
877
881
|
}
|
|
878
|
-
function
|
|
882
|
+
function Wt(e) {
|
|
879
883
|
function t() {
|
|
880
884
|
var o;
|
|
881
885
|
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
882
886
|
}
|
|
883
887
|
function n() {
|
|
884
888
|
var o, l;
|
|
885
|
-
|
|
889
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
886
890
|
{
|
|
887
891
|
type: "builder.clickEmptyBlocks",
|
|
888
892
|
data: {
|
|
@@ -895,7 +899,7 @@ function $t(e) {
|
|
|
895
899
|
}
|
|
896
900
|
function i() {
|
|
897
901
|
var o, l;
|
|
898
|
-
|
|
902
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
899
903
|
{
|
|
900
904
|
type: "builder.hoverEmptyBlocks",
|
|
901
905
|
data: {
|
|
@@ -906,7 +910,7 @@ function $t(e) {
|
|
|
906
910
|
"*"
|
|
907
911
|
));
|
|
908
912
|
}
|
|
909
|
-
return /* @__PURE__ */
|
|
913
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
910
914
|
/* @__PURE__ */ s(
|
|
911
915
|
e.BlocksWrapper,
|
|
912
916
|
{
|
|
@@ -928,11 +932,11 @@ function $t(e) {
|
|
|
928
932
|
}` })
|
|
929
933
|
] });
|
|
930
934
|
}
|
|
931
|
-
function
|
|
935
|
+
function D(e) {
|
|
932
936
|
var i, o, l;
|
|
933
|
-
const t =
|
|
937
|
+
const t = be(me), n = be(Be);
|
|
934
938
|
return /* @__PURE__ */ s(
|
|
935
|
-
|
|
939
|
+
Wt,
|
|
936
940
|
{
|
|
937
941
|
blocks: e.blocks,
|
|
938
942
|
parent: e.parent,
|
|
@@ -941,7 +945,7 @@ function L(e) {
|
|
|
941
945
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
942
946
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
943
947
|
children: e.blocks ? /* @__PURE__ */ s(R, { children: (l = e.blocks) == null ? void 0 : l.map((a) => /* @__PURE__ */ s(
|
|
944
|
-
|
|
948
|
+
z,
|
|
945
949
|
{
|
|
946
950
|
block: a,
|
|
947
951
|
linkComponent: e.linkComponent,
|
|
@@ -954,7 +958,7 @@ function L(e) {
|
|
|
954
958
|
);
|
|
955
959
|
}
|
|
956
960
|
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
957
|
-
function
|
|
961
|
+
function $t(e) {
|
|
958
962
|
var A, O;
|
|
959
963
|
const [t, n] = C(
|
|
960
964
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
@@ -969,8 +973,8 @@ function Lt(e) {
|
|
|
969
973
|
return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
|
|
970
974
|
}
|
|
971
975
|
function u(S) {
|
|
972
|
-
const w = t * (i.length - 1) /
|
|
973
|
-
return `calc(${
|
|
976
|
+
const w = c(S), N = t * (i.length - 1) * (w / 100);
|
|
977
|
+
return `calc(${w}% - ${N}px)`;
|
|
974
978
|
}
|
|
975
979
|
function f({
|
|
976
980
|
stackedStyle: S,
|
|
@@ -984,7 +988,7 @@ function Lt(e) {
|
|
|
984
988
|
}) {
|
|
985
989
|
return l === "never" ? w : S;
|
|
986
990
|
}
|
|
987
|
-
const [m,
|
|
991
|
+
const [m, g] = C(
|
|
988
992
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
989
993
|
);
|
|
990
994
|
function p() {
|
|
@@ -997,40 +1001,40 @@ function Lt(e) {
|
|
|
997
1001
|
};
|
|
998
1002
|
}
|
|
999
1003
|
function I(S) {
|
|
1000
|
-
const w = S === 0 ? 0 : t,
|
|
1004
|
+
const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
|
|
1001
1005
|
return {
|
|
1002
1006
|
...{
|
|
1003
1007
|
display: "flex",
|
|
1004
1008
|
flexDirection: "column",
|
|
1005
1009
|
alignItems: "stretch"
|
|
1006
1010
|
},
|
|
1007
|
-
width:
|
|
1008
|
-
["marginLeft"]:
|
|
1011
|
+
width: N,
|
|
1012
|
+
["marginLeft"]: b,
|
|
1009
1013
|
"--column-width-mobile": d({
|
|
1010
1014
|
stackedStyle: h,
|
|
1011
|
-
desktopStyle:
|
|
1015
|
+
desktopStyle: N
|
|
1012
1016
|
}),
|
|
1013
1017
|
"--column-margin-left-mobile": d({
|
|
1014
1018
|
stackedStyle: y,
|
|
1015
|
-
desktopStyle:
|
|
1019
|
+
desktopStyle: b
|
|
1016
1020
|
}),
|
|
1017
1021
|
"--column-width-tablet": f({
|
|
1018
1022
|
stackedStyle: h,
|
|
1019
|
-
desktopStyle:
|
|
1023
|
+
desktopStyle: N
|
|
1020
1024
|
}),
|
|
1021
1025
|
"--column-margin-left-tablet": f({
|
|
1022
1026
|
stackedStyle: y,
|
|
1023
|
-
desktopStyle:
|
|
1027
|
+
desktopStyle: b
|
|
1024
1028
|
})
|
|
1025
1029
|
};
|
|
1026
1030
|
}
|
|
1027
1031
|
function x(S) {
|
|
1028
|
-
var
|
|
1032
|
+
var N, b;
|
|
1029
1033
|
return De(
|
|
1030
|
-
((
|
|
1034
|
+
((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
|
|
1031
1035
|
)[S].max;
|
|
1032
1036
|
}
|
|
1033
|
-
function
|
|
1037
|
+
function E() {
|
|
1034
1038
|
return `
|
|
1035
1039
|
@media (max-width: ${x("medium")}px) {
|
|
1036
1040
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1066,22 +1070,22 @@ function Lt(e) {
|
|
|
1066
1070
|
style: Fe(I(w))
|
|
1067
1071
|
};
|
|
1068
1072
|
}
|
|
1069
|
-
return /* @__PURE__ */
|
|
1070
|
-
/* @__PURE__ */
|
|
1073
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1074
|
+
/* @__PURE__ */ P(
|
|
1071
1075
|
"div",
|
|
1072
1076
|
{
|
|
1073
|
-
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-
|
|
1077
|
+
className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-b622c1bc",
|
|
1074
1078
|
style: p(),
|
|
1075
1079
|
children: [
|
|
1076
|
-
/* @__PURE__ */ s(
|
|
1080
|
+
/* @__PURE__ */ s(ne, { id: "builderio-columns", styles: E() }),
|
|
1077
1081
|
(O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
|
|
1078
|
-
|
|
1082
|
+
ue,
|
|
1079
1083
|
{
|
|
1080
1084
|
TagName: r(S),
|
|
1081
1085
|
actionAttributes: {},
|
|
1082
1086
|
attributes: V(S, w),
|
|
1083
1087
|
children: /* @__PURE__ */ s(
|
|
1084
|
-
|
|
1088
|
+
D,
|
|
1085
1089
|
{
|
|
1086
1090
|
path: `component.options.columns.${w}.blocks`,
|
|
1087
1091
|
parent: e.builderBlock.id,
|
|
@@ -1100,7 +1104,7 @@ function Lt(e) {
|
|
|
1100
1104
|
]
|
|
1101
1105
|
}
|
|
1102
1106
|
),
|
|
1103
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1107
|
+
/* @__PURE__ */ s("style", { children: `.div-b622c1bc {
|
|
1104
1108
|
display: flex;
|
|
1105
1109
|
line-height: normal;
|
|
1106
1110
|
}` })
|
|
@@ -1109,37 +1113,37 @@ function Lt(e) {
|
|
|
1109
1113
|
function Dt(e) {
|
|
1110
1114
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1111
1115
|
}
|
|
1112
|
-
function
|
|
1116
|
+
function xe(e) {
|
|
1113
1117
|
return e.replace(/http(s)?:/, "");
|
|
1114
1118
|
}
|
|
1115
|
-
function
|
|
1119
|
+
function Lt(e = "", t, n) {
|
|
1116
1120
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1117
1121
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1118
1122
|
}
|
|
1119
|
-
function
|
|
1123
|
+
function Ot(e, t) {
|
|
1120
1124
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1121
1125
|
return e;
|
|
1122
1126
|
if (t === "master")
|
|
1123
|
-
return
|
|
1127
|
+
return xe(e);
|
|
1124
1128
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1125
1129
|
if (n) {
|
|
1126
1130
|
const i = e.split(n[0]), o = n[3], l = t.match("x") ? t : `${t}x`;
|
|
1127
|
-
return
|
|
1131
|
+
return xe(`${i[0]}_${l}${o}`);
|
|
1128
1132
|
}
|
|
1129
1133
|
return null;
|
|
1130
1134
|
}
|
|
1131
|
-
function
|
|
1135
|
+
function oe(e) {
|
|
1132
1136
|
if (!e)
|
|
1133
1137
|
return e;
|
|
1134
1138
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1135
1139
|
if (e.match(/builder\.io/)) {
|
|
1136
1140
|
let n = e;
|
|
1137
1141
|
const i = Number(e.split("?width=")[1]);
|
|
1138
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1142
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1139
1143
|
}
|
|
1140
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1144
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1141
1145
|
}
|
|
1142
|
-
function
|
|
1146
|
+
function jt(e) {
|
|
1143
1147
|
var o, l, a, r, c, u;
|
|
1144
1148
|
function t() {
|
|
1145
1149
|
var m;
|
|
@@ -1150,10 +1154,10 @@ function Ut(e) {
|
|
|
1150
1154
|
return e.srcset;
|
|
1151
1155
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1152
1156
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1153
|
-
return console.debug("Removed given srcset"),
|
|
1157
|
+
return console.debug("Removed given srcset"), oe(d);
|
|
1154
1158
|
} else if (e.image && !e.srcset)
|
|
1155
|
-
return
|
|
1156
|
-
return
|
|
1159
|
+
return oe(d);
|
|
1160
|
+
return oe(d);
|
|
1157
1161
|
}
|
|
1158
1162
|
function n() {
|
|
1159
1163
|
var f;
|
|
@@ -1169,9 +1173,9 @@ function Ut(e) {
|
|
|
1169
1173
|
};
|
|
1170
1174
|
return e.aspectRatio ? f : void 0;
|
|
1171
1175
|
}
|
|
1172
|
-
return /* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1176
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
1177
|
+
/* @__PURE__ */ P(R, { children: [
|
|
1178
|
+
/* @__PURE__ */ P("picture", { children: [
|
|
1175
1179
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1176
1180
|
/* @__PURE__ */ s(
|
|
1177
1181
|
"img",
|
|
@@ -1244,7 +1248,7 @@ function Mt(e) {
|
|
|
1244
1248
|
}
|
|
1245
1249
|
);
|
|
1246
1250
|
}
|
|
1247
|
-
const
|
|
1251
|
+
const ae = {
|
|
1248
1252
|
"@type": "@builder.io/sdk:Element",
|
|
1249
1253
|
layerName: "Accordion item title",
|
|
1250
1254
|
responsiveStyles: {
|
|
@@ -1273,7 +1277,7 @@ const re = {
|
|
|
1273
1277
|
}
|
|
1274
1278
|
}
|
|
1275
1279
|
}]
|
|
1276
|
-
},
|
|
1280
|
+
}, re = {
|
|
1277
1281
|
"@type": "@builder.io/sdk:Element",
|
|
1278
1282
|
layerName: "Accordion item detail",
|
|
1279
1283
|
responsiveStyles: {
|
|
@@ -1304,7 +1308,7 @@ const re = {
|
|
|
1304
1308
|
}
|
|
1305
1309
|
}
|
|
1306
1310
|
}]
|
|
1307
|
-
},
|
|
1311
|
+
}, Ut = {
|
|
1308
1312
|
name: "Builder:Accordion",
|
|
1309
1313
|
canHaveChildren: !0,
|
|
1310
1314
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1321,19 +1325,19 @@ const re = {
|
|
|
1321
1325
|
name: "title",
|
|
1322
1326
|
type: "uiBlocks",
|
|
1323
1327
|
hideFromUI: !0,
|
|
1324
|
-
defaultValue: [
|
|
1328
|
+
defaultValue: [ae]
|
|
1325
1329
|
}, {
|
|
1326
1330
|
name: "detail",
|
|
1327
1331
|
type: "uiBlocks",
|
|
1328
1332
|
hideFromUI: !0,
|
|
1329
|
-
defaultValue: [
|
|
1333
|
+
defaultValue: [re]
|
|
1330
1334
|
}],
|
|
1331
1335
|
defaultValue: [{
|
|
1332
|
-
title: [
|
|
1333
|
-
detail: [
|
|
1336
|
+
title: [ae],
|
|
1337
|
+
detail: [re]
|
|
1334
1338
|
}, {
|
|
1335
|
-
title: [
|
|
1336
|
-
detail: [
|
|
1339
|
+
title: [ae],
|
|
1340
|
+
detail: [re]
|
|
1337
1341
|
}],
|
|
1338
1342
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1339
1343
|
}, {
|
|
@@ -1368,8 +1372,8 @@ const re = {
|
|
|
1368
1372
|
builderComponents: !0,
|
|
1369
1373
|
builderLinkComponent: !0
|
|
1370
1374
|
}
|
|
1371
|
-
},
|
|
1372
|
-
function
|
|
1375
|
+
}, ve = (e) => e.toString();
|
|
1376
|
+
function Ht(e) {
|
|
1373
1377
|
var d;
|
|
1374
1378
|
const [t, n] = C(() => []);
|
|
1375
1379
|
function i() {
|
|
@@ -1388,7 +1392,7 @@ function Kt(e) {
|
|
|
1388
1392
|
};
|
|
1389
1393
|
}
|
|
1390
1394
|
function l() {
|
|
1391
|
-
const
|
|
1395
|
+
const g = {
|
|
1392
1396
|
...{
|
|
1393
1397
|
display: "flex",
|
|
1394
1398
|
flexDirection: "column"
|
|
@@ -1397,7 +1401,7 @@ function Kt(e) {
|
|
|
1397
1401
|
cursor: "pointer"
|
|
1398
1402
|
};
|
|
1399
1403
|
return Object.fromEntries(
|
|
1400
|
-
Object.entries(
|
|
1404
|
+
Object.entries(g).filter(([p, I]) => I !== void 0)
|
|
1401
1405
|
);
|
|
1402
1406
|
}
|
|
1403
1407
|
function a(m) {
|
|
@@ -1414,18 +1418,18 @@ function Kt(e) {
|
|
|
1414
1418
|
`.builder-accordion-title[data-index="${p}"]`
|
|
1415
1419
|
);
|
|
1416
1420
|
if (m = p, x) {
|
|
1417
|
-
let
|
|
1421
|
+
let E = x.getBoundingClientRect();
|
|
1418
1422
|
for (; x = x && x.nextElementSibling; )
|
|
1419
1423
|
if (x) {
|
|
1420
1424
|
if (x.classList.contains("builder-accordion-detail"))
|
|
1421
1425
|
continue;
|
|
1422
1426
|
const V = x.getBoundingClientRect();
|
|
1423
|
-
if (V.left >
|
|
1427
|
+
if (V.left > E.left) {
|
|
1424
1428
|
const A = parseInt(
|
|
1425
1429
|
x.getAttribute("data-index") || "",
|
|
1426
1430
|
10
|
|
1427
1431
|
);
|
|
1428
|
-
isNaN(A) || (
|
|
1432
|
+
isNaN(A) || (E = V, m = A);
|
|
1429
1433
|
} else
|
|
1430
1434
|
break;
|
|
1431
1435
|
}
|
|
@@ -1441,29 +1445,29 @@ function Kt(e) {
|
|
|
1441
1445
|
}
|
|
1442
1446
|
};
|
|
1443
1447
|
return Object.fromEntries(
|
|
1444
|
-
Object.entries(m).filter(([
|
|
1448
|
+
Object.entries(m).filter(([g, p]) => p !== void 0)
|
|
1445
1449
|
);
|
|
1446
1450
|
}
|
|
1447
1451
|
function f(m) {
|
|
1448
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1452
|
+
t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
|
|
1449
1453
|
}
|
|
1450
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m,
|
|
1454
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
|
|
1451
1455
|
/* @__PURE__ */ s(
|
|
1452
1456
|
"div",
|
|
1453
1457
|
{
|
|
1454
|
-
className: a(
|
|
1458
|
+
className: a(g),
|
|
1455
1459
|
style: {
|
|
1456
1460
|
...l(),
|
|
1457
1461
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1458
|
-
order: c() !== null ?
|
|
1462
|
+
order: c() !== null ? ve(g) : ve(g + 1)
|
|
1459
1463
|
},
|
|
1460
|
-
"data-index":
|
|
1461
|
-
onClick: (p) => f(
|
|
1464
|
+
"data-index": g,
|
|
1465
|
+
onClick: (p) => f(g),
|
|
1462
1466
|
children: /* @__PURE__ */ s(
|
|
1463
|
-
|
|
1467
|
+
D,
|
|
1464
1468
|
{
|
|
1465
1469
|
blocks: m.title,
|
|
1466
|
-
path: `items.${
|
|
1470
|
+
path: `items.${g}.title`,
|
|
1467
1471
|
parent: e.builderBlock.id,
|
|
1468
1472
|
context: e.builderContext,
|
|
1469
1473
|
registeredComponents: e.builderComponents,
|
|
@@ -1472,16 +1476,16 @@ function Kt(e) {
|
|
|
1472
1476
|
)
|
|
1473
1477
|
}
|
|
1474
1478
|
),
|
|
1475
|
-
t.includes(
|
|
1479
|
+
t.includes(g) ? /* @__PURE__ */ s(
|
|
1476
1480
|
"div",
|
|
1477
1481
|
{
|
|
1478
|
-
className: r(
|
|
1482
|
+
className: r(g),
|
|
1479
1483
|
style: u(),
|
|
1480
1484
|
children: /* @__PURE__ */ s(
|
|
1481
|
-
|
|
1485
|
+
D,
|
|
1482
1486
|
{
|
|
1483
1487
|
blocks: m.detail,
|
|
1484
|
-
path: `items.${
|
|
1488
|
+
path: `items.${g}.detail`,
|
|
1485
1489
|
parent: e.builderBlock.id,
|
|
1486
1490
|
context: e.builderContext,
|
|
1487
1491
|
registeredComponents: e.builderComponents,
|
|
@@ -1526,12 +1530,9 @@ const qt = {
|
|
|
1526
1530
|
static: !0,
|
|
1527
1531
|
noWrap: !0,
|
|
1528
1532
|
shouldReceiveBuilderProps: {
|
|
1529
|
-
builderBlock: !1,
|
|
1530
|
-
builderContext: !1,
|
|
1531
|
-
builderComponents: !1,
|
|
1532
1533
|
builderLinkComponent: !0
|
|
1533
1534
|
}
|
|
1534
|
-
},
|
|
1535
|
+
}, Kt = {
|
|
1535
1536
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1536
1537
|
name: "Columns",
|
|
1537
1538
|
isRSC: !0,
|
|
@@ -1739,18 +1740,12 @@ const qt = {
|
|
|
1739
1740
|
builderLinkComponent: !0
|
|
1740
1741
|
}
|
|
1741
1742
|
}, zt = {
|
|
1742
|
-
shouldReceiveBuilderProps: {
|
|
1743
|
-
builderBlock: !1,
|
|
1744
|
-
builderContext: !1,
|
|
1745
|
-
builderComponents: !1,
|
|
1746
|
-
builderLinkComponent: !1
|
|
1747
|
-
},
|
|
1748
1743
|
name: "Fragment",
|
|
1749
1744
|
static: !0,
|
|
1750
1745
|
hidden: !0,
|
|
1751
1746
|
canHaveChildren: !0,
|
|
1752
1747
|
noWrap: !0
|
|
1753
|
-
},
|
|
1748
|
+
}, _t = {
|
|
1754
1749
|
name: "Image",
|
|
1755
1750
|
static: !0,
|
|
1756
1751
|
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",
|
|
@@ -1856,18 +1851,9 @@ const qt = {
|
|
|
1856
1851
|
defaultValue: 0.7041
|
|
1857
1852
|
}],
|
|
1858
1853
|
shouldReceiveBuilderProps: {
|
|
1859
|
-
builderBlock: !0
|
|
1860
|
-
builderContext: !1,
|
|
1861
|
-
builderComponents: !1,
|
|
1862
|
-
builderLinkComponent: !1
|
|
1854
|
+
builderBlock: !0
|
|
1863
1855
|
}
|
|
1864
|
-
},
|
|
1865
|
-
shouldReceiveBuilderProps: {
|
|
1866
|
-
builderBlock: !1,
|
|
1867
|
-
builderContext: !1,
|
|
1868
|
-
builderComponents: !1,
|
|
1869
|
-
builderLinkComponent: !1
|
|
1870
|
-
},
|
|
1856
|
+
}, Jt = {
|
|
1871
1857
|
name: "Core:Section",
|
|
1872
1858
|
static: !0,
|
|
1873
1859
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1906,7 +1892,7 @@ const qt = {
|
|
|
1906
1892
|
}
|
|
1907
1893
|
}
|
|
1908
1894
|
}]
|
|
1909
|
-
},
|
|
1895
|
+
}, Yt = {
|
|
1910
1896
|
name: "Slot",
|
|
1911
1897
|
isRSC: !0,
|
|
1912
1898
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1920,13 +1906,10 @@ const qt = {
|
|
|
1920
1906
|
defaultValue: "children"
|
|
1921
1907
|
}],
|
|
1922
1908
|
shouldReceiveBuilderProps: {
|
|
1923
|
-
|
|
1924
|
-
builderContext: !0,
|
|
1925
|
-
builderComponents: !1,
|
|
1926
|
-
builderLinkComponent: !1
|
|
1909
|
+
builderContext: !0
|
|
1927
1910
|
}
|
|
1928
1911
|
};
|
|
1929
|
-
function
|
|
1912
|
+
function Gt(e) {
|
|
1930
1913
|
var t, n, i;
|
|
1931
1914
|
return /* @__PURE__ */ s(
|
|
1932
1915
|
"div",
|
|
@@ -1938,7 +1921,7 @@ function Qt(e) {
|
|
|
1938
1921
|
"builder-slot": e.name
|
|
1939
1922
|
},
|
|
1940
1923
|
children: /* @__PURE__ */ s(
|
|
1941
|
-
|
|
1924
|
+
D,
|
|
1942
1925
|
{
|
|
1943
1926
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
1944
1927
|
path: `symbol.data.${e.name}`,
|
|
@@ -1949,7 +1932,7 @@ function Qt(e) {
|
|
|
1949
1932
|
}
|
|
1950
1933
|
);
|
|
1951
1934
|
}
|
|
1952
|
-
const
|
|
1935
|
+
const Qt = {
|
|
1953
1936
|
name: "Symbol",
|
|
1954
1937
|
noWrap: !0,
|
|
1955
1938
|
static: !0,
|
|
@@ -1988,7 +1971,7 @@ const Xt = {
|
|
|
1988
1971
|
builderComponents: !0,
|
|
1989
1972
|
builderLinkComponent: !0
|
|
1990
1973
|
}
|
|
1991
|
-
},
|
|
1974
|
+
}, le = {
|
|
1992
1975
|
"@type": "@builder.io/sdk:Element",
|
|
1993
1976
|
responsiveStyles: {
|
|
1994
1977
|
large: {
|
|
@@ -2010,7 +1993,7 @@ const Xt = {
|
|
|
2010
1993
|
text: "New tab"
|
|
2011
1994
|
}
|
|
2012
1995
|
}
|
|
2013
|
-
},
|
|
1996
|
+
}, se = {
|
|
2014
1997
|
"@type": "@builder.io/sdk:Element",
|
|
2015
1998
|
responsiveStyles: {
|
|
2016
1999
|
large: {
|
|
@@ -2026,7 +2009,7 @@ const Xt = {
|
|
|
2026
2009
|
text: "New tab content "
|
|
2027
2010
|
}
|
|
2028
2011
|
}
|
|
2029
|
-
},
|
|
2012
|
+
}, Xt = {
|
|
2030
2013
|
name: "Builder: Tabs",
|
|
2031
2014
|
inputs: [{
|
|
2032
2015
|
name: "tabs",
|
|
@@ -2036,16 +2019,16 @@ const Xt = {
|
|
|
2036
2019
|
name: "label",
|
|
2037
2020
|
type: "uiBlocks",
|
|
2038
2021
|
hideFromUI: !0,
|
|
2039
|
-
defaultValue: [
|
|
2022
|
+
defaultValue: [le]
|
|
2040
2023
|
}, {
|
|
2041
2024
|
name: "content",
|
|
2042
2025
|
type: "uiBlocks",
|
|
2043
2026
|
hideFromUI: !0,
|
|
2044
|
-
defaultValue: [
|
|
2027
|
+
defaultValue: [se]
|
|
2045
2028
|
}],
|
|
2046
2029
|
defaultValue: [{
|
|
2047
2030
|
label: [{
|
|
2048
|
-
...
|
|
2031
|
+
...le,
|
|
2049
2032
|
component: {
|
|
2050
2033
|
name: "Text",
|
|
2051
2034
|
options: {
|
|
@@ -2054,7 +2037,7 @@ const Xt = {
|
|
|
2054
2037
|
}
|
|
2055
2038
|
}],
|
|
2056
2039
|
content: [{
|
|
2057
|
-
...
|
|
2040
|
+
...se,
|
|
2058
2041
|
component: {
|
|
2059
2042
|
name: "Text",
|
|
2060
2043
|
options: {
|
|
@@ -2064,7 +2047,7 @@ const Xt = {
|
|
|
2064
2047
|
}]
|
|
2065
2048
|
}, {
|
|
2066
2049
|
label: [{
|
|
2067
|
-
...
|
|
2050
|
+
...le,
|
|
2068
2051
|
component: {
|
|
2069
2052
|
name: "Text",
|
|
2070
2053
|
options: {
|
|
@@ -2073,7 +2056,7 @@ const Xt = {
|
|
|
2073
2056
|
}
|
|
2074
2057
|
}],
|
|
2075
2058
|
content: [{
|
|
2076
|
-
...
|
|
2059
|
+
...se,
|
|
2077
2060
|
component: {
|
|
2078
2061
|
name: "Text",
|
|
2079
2062
|
options: {
|
|
@@ -2130,7 +2113,7 @@ const Xt = {
|
|
|
2130
2113
|
builderLinkComponent: !0
|
|
2131
2114
|
}
|
|
2132
2115
|
};
|
|
2133
|
-
function
|
|
2116
|
+
function Zt(e) {
|
|
2134
2117
|
var l;
|
|
2135
2118
|
const [t, n] = C(
|
|
2136
2119
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2141,7 +2124,7 @@ function en(e) {
|
|
|
2141
2124
|
function o(a) {
|
|
2142
2125
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2143
2126
|
}
|
|
2144
|
-
return /* @__PURE__ */
|
|
2127
|
+
return /* @__PURE__ */ P("div", { children: [
|
|
2145
2128
|
/* @__PURE__ */ s(
|
|
2146
2129
|
"div",
|
|
2147
2130
|
{
|
|
@@ -2161,7 +2144,7 @@ function en(e) {
|
|
|
2161
2144
|
},
|
|
2162
2145
|
onClick: (c) => o(r),
|
|
2163
2146
|
children: /* @__PURE__ */ s(
|
|
2164
|
-
|
|
2147
|
+
D,
|
|
2165
2148
|
{
|
|
2166
2149
|
parent: e.builderBlock.id,
|
|
2167
2150
|
path: `component.options.tabs.${r}.label`,
|
|
@@ -2177,7 +2160,7 @@ function en(e) {
|
|
|
2177
2160
|
}
|
|
2178
2161
|
),
|
|
2179
2162
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2180
|
-
|
|
2163
|
+
D,
|
|
2181
2164
|
{
|
|
2182
2165
|
parent: e.builderBlock.id,
|
|
2183
2166
|
path: `component.options.tabs.${t}.content`,
|
|
@@ -2189,12 +2172,9 @@ function en(e) {
|
|
|
2189
2172
|
) }) : null
|
|
2190
2173
|
] });
|
|
2191
2174
|
}
|
|
2192
|
-
const
|
|
2175
|
+
const en = {
|
|
2193
2176
|
shouldReceiveBuilderProps: {
|
|
2194
|
-
builderBlock: !1
|
|
2195
|
-
builderContext: !1,
|
|
2196
|
-
builderComponents: !1,
|
|
2197
|
-
builderLinkComponent: !1
|
|
2177
|
+
builderBlock: !1
|
|
2198
2178
|
},
|
|
2199
2179
|
name: "Text",
|
|
2200
2180
|
static: !0,
|
|
@@ -2214,7 +2194,7 @@ const tn = {
|
|
|
2214
2194
|
textAlign: "center"
|
|
2215
2195
|
}
|
|
2216
2196
|
};
|
|
2217
|
-
function
|
|
2197
|
+
function tn(e) {
|
|
2218
2198
|
var t;
|
|
2219
2199
|
return /* @__PURE__ */ s(
|
|
2220
2200
|
"div",
|
|
@@ -2227,13 +2207,7 @@ function nn(e) {
|
|
|
2227
2207
|
}
|
|
2228
2208
|
);
|
|
2229
2209
|
}
|
|
2230
|
-
const
|
|
2231
|
-
shouldReceiveBuilderProps: {
|
|
2232
|
-
builderBlock: !1,
|
|
2233
|
-
builderContext: !1,
|
|
2234
|
-
builderComponents: !1,
|
|
2235
|
-
builderLinkComponent: !1
|
|
2236
|
-
},
|
|
2210
|
+
const nn = {
|
|
2237
2211
|
name: "Custom Code",
|
|
2238
2212
|
static: !0,
|
|
2239
2213
|
requiredPermissions: ["editCode"],
|
|
@@ -2256,9 +2230,9 @@ const on = {
|
|
|
2256
2230
|
advanced: !0
|
|
2257
2231
|
}]
|
|
2258
2232
|
};
|
|
2259
|
-
function
|
|
2233
|
+
function on(e) {
|
|
2260
2234
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
|
|
2261
|
-
return
|
|
2235
|
+
return B(() => {
|
|
2262
2236
|
var r;
|
|
2263
2237
|
if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
|
|
2264
2238
|
return;
|
|
@@ -2294,13 +2268,7 @@ function an(e) {
|
|
|
2294
2268
|
}
|
|
2295
2269
|
);
|
|
2296
2270
|
}
|
|
2297
|
-
const
|
|
2298
|
-
shouldReceiveBuilderProps: {
|
|
2299
|
-
builderBlock: !1,
|
|
2300
|
-
builderContext: !1,
|
|
2301
|
-
builderComponents: !1,
|
|
2302
|
-
builderLinkComponent: !1
|
|
2303
|
-
},
|
|
2271
|
+
const an = {
|
|
2304
2272
|
name: "Embed",
|
|
2305
2273
|
static: !0,
|
|
2306
2274
|
inputs: [{
|
|
@@ -2308,28 +2276,15 @@ const rn = {
|
|
|
2308
2276
|
type: "url",
|
|
2309
2277
|
required: !0,
|
|
2310
2278
|
defaultValue: "",
|
|
2311
|
-
helperText: "e.g. enter a youtube url, google map, etc"
|
|
2312
|
-
onChange: (e) => {
|
|
2313
|
-
const t = e.get("url");
|
|
2314
|
-
if (t) {
|
|
2315
|
-
e.set("content", "Loading...");
|
|
2316
|
-
const n = _iframelyApiKey;
|
|
2317
|
-
return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
|
|
2318
|
-
e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
|
|
2319
|
-
}).catch((i) => {
|
|
2320
|
-
e.set("content", "There was an error embedding this URL, please try again or another URL");
|
|
2321
|
-
});
|
|
2322
|
-
} else
|
|
2323
|
-
e.delete("content");
|
|
2324
|
-
}
|
|
2279
|
+
helperText: "e.g. enter a youtube url, google map, etc"
|
|
2325
2280
|
}, {
|
|
2326
2281
|
name: "content",
|
|
2327
2282
|
type: "html",
|
|
2328
2283
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2329
2284
|
hideFromUI: !0
|
|
2330
2285
|
}]
|
|
2331
|
-
},
|
|
2332
|
-
function
|
|
2286
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2287
|
+
function sn(e) {
|
|
2333
2288
|
const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
|
|
2334
2289
|
function c() {
|
|
2335
2290
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2341,7 +2296,7 @@ function cn(e) {
|
|
|
2341
2296
|
n.push(d.src);
|
|
2342
2297
|
const m = document.createElement("script");
|
|
2343
2298
|
m.async = !0, m.src = d.src, document.head.appendChild(m);
|
|
2344
|
-
} else if (
|
|
2299
|
+
} else if (ln(d) && !o.includes(d.innerText))
|
|
2345
2300
|
try {
|
|
2346
2301
|
o.push(d.innerText), new Function(d.innerText)();
|
|
2347
2302
|
} catch (m) {
|
|
@@ -2349,7 +2304,7 @@ function cn(e) {
|
|
|
2349
2304
|
}
|
|
2350
2305
|
}
|
|
2351
2306
|
}
|
|
2352
|
-
return
|
|
2307
|
+
return B(() => {
|
|
2353
2308
|
t.current && !a && (r(!0), c());
|
|
2354
2309
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2355
2310
|
"div",
|
|
@@ -2360,7 +2315,7 @@ function cn(e) {
|
|
|
2360
2315
|
}
|
|
2361
2316
|
);
|
|
2362
2317
|
}
|
|
2363
|
-
const
|
|
2318
|
+
const cn = {
|
|
2364
2319
|
name: "Form:Form",
|
|
2365
2320
|
// editableTags: ['builder-form-error']
|
|
2366
2321
|
defaults: {
|
|
@@ -2597,97 +2552,97 @@ const dn = {
|
|
|
2597
2552
|
builderComponents: !0,
|
|
2598
2553
|
builderLinkComponent: !0
|
|
2599
2554
|
}
|
|
2600
|
-
},
|
|
2555
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2601
2556
|
const e = process.env.NODE_ENV || "production";
|
|
2602
|
-
return
|
|
2603
|
-
},
|
|
2557
|
+
return dn.includes(e) ? e : "production";
|
|
2558
|
+
}, mn = (e, t, n) => {
|
|
2604
2559
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, l) => o != null ? o[l] : o, e);
|
|
2605
2560
|
return i === void 0 || i === e ? n : i;
|
|
2606
2561
|
};
|
|
2607
|
-
function
|
|
2562
|
+
function fn(e) {
|
|
2608
2563
|
var d, m;
|
|
2609
2564
|
const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
|
|
2610
|
-
function c(
|
|
2565
|
+
function c(g) {
|
|
2611
2566
|
var I, x;
|
|
2612
2567
|
const p = {
|
|
2613
2568
|
...e.builderContext.rootState,
|
|
2614
|
-
...
|
|
2569
|
+
...g
|
|
2615
2570
|
};
|
|
2616
2571
|
e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
|
|
2617
2572
|
}
|
|
2618
2573
|
function u() {
|
|
2619
|
-
return
|
|
2574
|
+
return $() && e.previewState || n;
|
|
2620
2575
|
}
|
|
2621
|
-
function f(
|
|
2576
|
+
function f(g) {
|
|
2622
2577
|
var I;
|
|
2623
2578
|
const p = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2624
2579
|
if (e.sendSubmissionsTo === "zapier")
|
|
2625
|
-
|
|
2580
|
+
g.preventDefault();
|
|
2626
2581
|
else if (p) {
|
|
2627
2582
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2628
|
-
|
|
2583
|
+
g.preventDefault();
|
|
2629
2584
|
return;
|
|
2630
2585
|
}
|
|
2631
|
-
|
|
2632
|
-
const x =
|
|
2586
|
+
g.preventDefault();
|
|
2587
|
+
const x = g.currentTarget || g.target, E = e.customHeaders || {};
|
|
2633
2588
|
let V;
|
|
2634
|
-
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((
|
|
2589
|
+
const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
|
|
2635
2590
|
let h;
|
|
2636
|
-
const y =
|
|
2637
|
-
if (
|
|
2638
|
-
if (
|
|
2639
|
-
if (
|
|
2640
|
-
return h =
|
|
2591
|
+
const y = b.name;
|
|
2592
|
+
if (b instanceof HTMLInputElement)
|
|
2593
|
+
if (b.type === "radio") {
|
|
2594
|
+
if (b.checked)
|
|
2595
|
+
return h = b.name, {
|
|
2641
2596
|
key: y,
|
|
2642
2597
|
value: h
|
|
2643
2598
|
};
|
|
2644
|
-
} else if (
|
|
2645
|
-
h =
|
|
2646
|
-
else if (
|
|
2647
|
-
const v =
|
|
2599
|
+
} else if (b.type === "checkbox")
|
|
2600
|
+
h = b.checked;
|
|
2601
|
+
else if (b.type === "number" || b.type === "range") {
|
|
2602
|
+
const v = b.valueAsNumber;
|
|
2648
2603
|
isNaN(v) || (h = v);
|
|
2649
2604
|
} else
|
|
2650
|
-
|
|
2605
|
+
b.type === "file" ? h = b.files : h = b.value;
|
|
2651
2606
|
else
|
|
2652
|
-
h =
|
|
2607
|
+
h = b.value;
|
|
2653
2608
|
return {
|
|
2654
2609
|
key: y,
|
|
2655
2610
|
value: h
|
|
2656
2611
|
};
|
|
2657
2612
|
});
|
|
2658
2613
|
let S = e.contentType;
|
|
2659
|
-
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value:
|
|
2660
|
-
(
|
|
2614
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
|
|
2615
|
+
(b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
|
|
2661
2616
|
}), S !== "application/json")
|
|
2662
2617
|
V = A;
|
|
2663
2618
|
else {
|
|
2664
|
-
const
|
|
2619
|
+
const b = {};
|
|
2665
2620
|
Array.from(O).forEach(({ value: h, key: y }) => {
|
|
2666
|
-
|
|
2667
|
-
}), V = JSON.stringify(
|
|
2621
|
+
Ee(b, y, h);
|
|
2622
|
+
}), V = JSON.stringify(b);
|
|
2668
2623
|
}
|
|
2669
|
-
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (
|
|
2624
|
+
S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
|
|
2670
2625
|
const w = new CustomEvent("presubmit", { detail: { body: V } });
|
|
2671
2626
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2672
2627
|
return;
|
|
2673
2628
|
i("sending");
|
|
2674
|
-
const
|
|
2629
|
+
const N = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2675
2630
|
e.sendSubmissionsToEmail || ""
|
|
2676
2631
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2677
2632
|
fetch(
|
|
2678
|
-
e.sendSubmissionsTo === "email" ?
|
|
2679
|
-
{ body: V, headers:
|
|
2633
|
+
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2634
|
+
{ body: V, headers: E, method: e.method || "post" }
|
|
2680
2635
|
).then(
|
|
2681
|
-
async (
|
|
2636
|
+
async (b) => {
|
|
2682
2637
|
let h;
|
|
2683
|
-
const y =
|
|
2684
|
-
if (y && y.indexOf("application/json") !== -1 ? h = await
|
|
2685
|
-
let v =
|
|
2638
|
+
const y = b.headers.get("content-type");
|
|
2639
|
+
if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
|
|
2640
|
+
let v = mn(h, e.errorMessagePath);
|
|
2686
2641
|
v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
|
|
2687
2642
|
}
|
|
2688
|
-
if (l(h), i(
|
|
2643
|
+
if (l(h), i(b.ok ? "success" : "error"), b.ok) {
|
|
2689
2644
|
const v = new CustomEvent("submit:success", {
|
|
2690
|
-
detail: { res:
|
|
2645
|
+
detail: { res: b, body: h }
|
|
2691
2646
|
});
|
|
2692
2647
|
if (t.current) {
|
|
2693
2648
|
if (t.current.dispatchEvent(v), v.defaultPrevented)
|
|
@@ -2704,18 +2659,18 @@ function hn(e) {
|
|
|
2704
2659
|
location.href = e.successUrl;
|
|
2705
2660
|
}
|
|
2706
2661
|
},
|
|
2707
|
-
(
|
|
2662
|
+
(b) => {
|
|
2708
2663
|
const h = new CustomEvent("submit:error", {
|
|
2709
|
-
detail: { error:
|
|
2664
|
+
detail: { error: b }
|
|
2710
2665
|
});
|
|
2711
|
-
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(
|
|
2666
|
+
t.current && (t.current.dispatchEvent(h), h.defaultPrevented) || (l(b), i("error"));
|
|
2712
2667
|
}
|
|
2713
2668
|
);
|
|
2714
2669
|
}
|
|
2715
2670
|
}
|
|
2716
|
-
return /* @__PURE__ */
|
|
2671
|
+
return /* @__PURE__ */ P(R, { children: [
|
|
2717
2672
|
" ",
|
|
2718
|
-
/* @__PURE__ */
|
|
2673
|
+
/* @__PURE__ */ P(
|
|
2719
2674
|
"form",
|
|
2720
2675
|
{
|
|
2721
2676
|
validate: e.validate,
|
|
@@ -2723,13 +2678,13 @@ function hn(e) {
|
|
|
2723
2678
|
action: !e.sendWithJs && e.action,
|
|
2724
2679
|
method: e.method,
|
|
2725
2680
|
name: e.name,
|
|
2726
|
-
onSubmit: (
|
|
2681
|
+
onSubmit: (g) => f(g),
|
|
2727
2682
|
...e.attributes,
|
|
2728
2683
|
children: [
|
|
2729
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((
|
|
2730
|
-
|
|
2684
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
|
|
2685
|
+
z,
|
|
2731
2686
|
{
|
|
2732
|
-
block:
|
|
2687
|
+
block: g,
|
|
2733
2688
|
context: e.builderContext,
|
|
2734
2689
|
registeredComponents: e.builderComponents,
|
|
2735
2690
|
linkComponent: e.builderLinkComponent
|
|
@@ -2737,7 +2692,7 @@ function hn(e) {
|
|
|
2737
2692
|
`form-block-${p}`
|
|
2738
2693
|
)) }) : null,
|
|
2739
2694
|
u() === "error" ? /* @__PURE__ */ s(
|
|
2740
|
-
|
|
2695
|
+
D,
|
|
2741
2696
|
{
|
|
2742
2697
|
path: "errorMessage",
|
|
2743
2698
|
blocks: e.errorMessage,
|
|
@@ -2745,7 +2700,7 @@ function hn(e) {
|
|
|
2745
2700
|
}
|
|
2746
2701
|
) : null,
|
|
2747
2702
|
u() === "sending" ? /* @__PURE__ */ s(
|
|
2748
|
-
|
|
2703
|
+
D,
|
|
2749
2704
|
{
|
|
2750
2705
|
path: "sendingMessage",
|
|
2751
2706
|
blocks: e.sendingMessage,
|
|
@@ -2754,7 +2709,7 @@ function hn(e) {
|
|
|
2754
2709
|
) : null,
|
|
2755
2710
|
u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2756
2711
|
u() === "success" ? /* @__PURE__ */ s(
|
|
2757
|
-
|
|
2712
|
+
D,
|
|
2758
2713
|
{
|
|
2759
2714
|
path: "successMessage",
|
|
2760
2715
|
blocks: e.successMessage,
|
|
@@ -2769,13 +2724,7 @@ function hn(e) {
|
|
|
2769
2724
|
" "
|
|
2770
2725
|
] });
|
|
2771
2726
|
}
|
|
2772
|
-
const
|
|
2773
|
-
shouldReceiveBuilderProps: {
|
|
2774
|
-
builderBlock: !1,
|
|
2775
|
-
builderContext: !1,
|
|
2776
|
-
builderComponents: !1,
|
|
2777
|
-
builderLinkComponent: !1
|
|
2778
|
-
},
|
|
2727
|
+
const hn = {
|
|
2779
2728
|
name: "Form:Input",
|
|
2780
2729
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2781
2730
|
inputs: [
|
|
@@ -2828,11 +2777,11 @@ const bn = {
|
|
|
2828
2777
|
}
|
|
2829
2778
|
};
|
|
2830
2779
|
function gn(e) {
|
|
2831
|
-
return /* @__PURE__ */
|
|
2780
|
+
return /* @__PURE__ */ Re(
|
|
2832
2781
|
"input",
|
|
2833
2782
|
{
|
|
2834
2783
|
...e.attributes,
|
|
2835
|
-
key:
|
|
2784
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2836
2785
|
placeholder: e.placeholder,
|
|
2837
2786
|
type: e.type,
|
|
2838
2787
|
name: e.name,
|
|
@@ -2842,13 +2791,7 @@ function gn(e) {
|
|
|
2842
2791
|
}
|
|
2843
2792
|
);
|
|
2844
2793
|
}
|
|
2845
|
-
const
|
|
2846
|
-
shouldReceiveBuilderProps: {
|
|
2847
|
-
builderBlock: !1,
|
|
2848
|
-
builderContext: !1,
|
|
2849
|
-
builderComponents: !1,
|
|
2850
|
-
builderLinkComponent: !1
|
|
2851
|
-
},
|
|
2794
|
+
const bn = {
|
|
2852
2795
|
name: "Form:Select",
|
|
2853
2796
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2854
2797
|
defaultStyles: {
|
|
@@ -2891,14 +2834,14 @@ const pn = {
|
|
|
2891
2834
|
static: !0,
|
|
2892
2835
|
noWrap: !0
|
|
2893
2836
|
};
|
|
2894
|
-
function
|
|
2837
|
+
function pn(e) {
|
|
2895
2838
|
var t;
|
|
2896
|
-
return /* @__PURE__ */
|
|
2839
|
+
return /* @__PURE__ */ Re(
|
|
2897
2840
|
"select",
|
|
2898
2841
|
{
|
|
2899
2842
|
...e.attributes,
|
|
2900
2843
|
value: e.value,
|
|
2901
|
-
key:
|
|
2844
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2902
2845
|
defaultValue: e.defaultValue,
|
|
2903
2846
|
name: e.name,
|
|
2904
2847
|
required: e.required
|
|
@@ -2906,13 +2849,7 @@ function yn(e) {
|
|
|
2906
2849
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2907
2850
|
);
|
|
2908
2851
|
}
|
|
2909
|
-
const
|
|
2910
|
-
shouldReceiveBuilderProps: {
|
|
2911
|
-
builderBlock: !1,
|
|
2912
|
-
builderContext: !1,
|
|
2913
|
-
builderComponents: !1,
|
|
2914
|
-
builderLinkComponent: !1
|
|
2915
|
-
},
|
|
2852
|
+
const yn = {
|
|
2916
2853
|
name: "Form:SubmitButton",
|
|
2917
2854
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2918
2855
|
defaultStyles: {
|
|
@@ -2938,16 +2875,10 @@ const xn = {
|
|
|
2938
2875
|
// TODO: defaultChildren
|
|
2939
2876
|
// canHaveChildren: true,
|
|
2940
2877
|
};
|
|
2941
|
-
function
|
|
2878
|
+
function xn(e) {
|
|
2942
2879
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2943
2880
|
}
|
|
2944
|
-
const
|
|
2945
|
-
shouldReceiveBuilderProps: {
|
|
2946
|
-
builderBlock: !1,
|
|
2947
|
-
builderContext: !1,
|
|
2948
|
-
builderComponents: !1,
|
|
2949
|
-
builderLinkComponent: !1
|
|
2950
|
-
},
|
|
2881
|
+
const vn = {
|
|
2951
2882
|
name: "Form:TextArea",
|
|
2952
2883
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2953
2884
|
inputs: [{
|
|
@@ -2984,7 +2915,7 @@ const Sn = {
|
|
|
2984
2915
|
static: !0,
|
|
2985
2916
|
noWrap: !0
|
|
2986
2917
|
};
|
|
2987
|
-
function
|
|
2918
|
+
function Sn(e) {
|
|
2988
2919
|
return /* @__PURE__ */ s(
|
|
2989
2920
|
"textarea",
|
|
2990
2921
|
{
|
|
@@ -2997,13 +2928,7 @@ function kn(e) {
|
|
|
2997
2928
|
}
|
|
2998
2929
|
);
|
|
2999
2930
|
}
|
|
3000
|
-
const
|
|
3001
|
-
shouldReceiveBuilderProps: {
|
|
3002
|
-
builderBlock: !1,
|
|
3003
|
-
builderContext: !1,
|
|
3004
|
-
builderComponents: !1,
|
|
3005
|
-
builderLinkComponent: !1
|
|
3006
|
-
},
|
|
2931
|
+
const kn = {
|
|
3007
2932
|
// friendlyName?
|
|
3008
2933
|
name: "Raw:Img",
|
|
3009
2934
|
hideFromInsertMenu: !0,
|
|
@@ -3018,7 +2943,7 @@ const Cn = {
|
|
|
3018
2943
|
noWrap: !0,
|
|
3019
2944
|
static: !0
|
|
3020
2945
|
};
|
|
3021
|
-
function
|
|
2946
|
+
function Cn(e) {
|
|
3022
2947
|
return /* @__PURE__ */ s(
|
|
3023
2948
|
"img",
|
|
3024
2949
|
{
|
|
@@ -3030,10 +2955,10 @@ function Tn(e) {
|
|
|
3030
2955
|
src: e.imgSrc || e.image,
|
|
3031
2956
|
...e.attributes
|
|
3032
2957
|
},
|
|
3033
|
-
|
|
2958
|
+
$() && e.imgSrc || "default-key"
|
|
3034
2959
|
);
|
|
3035
2960
|
}
|
|
3036
|
-
const
|
|
2961
|
+
const Tn = {
|
|
3037
2962
|
name: "Video",
|
|
3038
2963
|
canHaveChildren: !0,
|
|
3039
2964
|
defaultStyles: {
|
|
@@ -3115,13 +3040,10 @@ const In = {
|
|
|
3115
3040
|
advanced: !0
|
|
3116
3041
|
}],
|
|
3117
3042
|
shouldReceiveBuilderProps: {
|
|
3118
|
-
builderBlock: !0
|
|
3119
|
-
builderContext: !1,
|
|
3120
|
-
builderComponents: !1,
|
|
3121
|
-
builderLinkComponent: !1
|
|
3043
|
+
builderBlock: !0
|
|
3122
3044
|
}
|
|
3123
3045
|
};
|
|
3124
|
-
function
|
|
3046
|
+
function In(e) {
|
|
3125
3047
|
var i, o, l, a, r, c, u;
|
|
3126
3048
|
function t() {
|
|
3127
3049
|
return {
|
|
@@ -3147,7 +3069,7 @@ function wn(e) {
|
|
|
3147
3069
|
...t()
|
|
3148
3070
|
};
|
|
3149
3071
|
}
|
|
3150
|
-
return /* @__PURE__ */
|
|
3072
|
+
return /* @__PURE__ */ P(
|
|
3151
3073
|
"div",
|
|
3152
3074
|
{
|
|
3153
3075
|
style: {
|
|
@@ -3222,64 +3144,64 @@ function wn(e) {
|
|
|
3222
3144
|
}
|
|
3223
3145
|
);
|
|
3224
3146
|
}
|
|
3225
|
-
const
|
|
3226
|
-
component:
|
|
3227
|
-
...
|
|
3147
|
+
const wn = () => [{
|
|
3148
|
+
component: on,
|
|
3149
|
+
...nn
|
|
3228
3150
|
}, {
|
|
3229
|
-
component:
|
|
3230
|
-
...
|
|
3151
|
+
component: sn,
|
|
3152
|
+
...an
|
|
3231
3153
|
}, {
|
|
3232
|
-
component:
|
|
3233
|
-
...
|
|
3154
|
+
component: fn,
|
|
3155
|
+
...cn
|
|
3234
3156
|
}, {
|
|
3235
3157
|
component: gn,
|
|
3236
|
-
...
|
|
3158
|
+
...hn
|
|
3237
3159
|
}, {
|
|
3238
|
-
component:
|
|
3239
|
-
...
|
|
3160
|
+
component: xn,
|
|
3161
|
+
...yn
|
|
3240
3162
|
}, {
|
|
3241
|
-
component:
|
|
3242
|
-
...
|
|
3163
|
+
component: pn,
|
|
3164
|
+
...bn
|
|
3243
3165
|
}, {
|
|
3244
|
-
component:
|
|
3245
|
-
...
|
|
3166
|
+
component: Sn,
|
|
3167
|
+
...vn
|
|
3246
3168
|
}, {
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3169
|
+
component: Cn,
|
|
3170
|
+
...kn
|
|
3249
3171
|
}, {
|
|
3250
|
-
component:
|
|
3251
|
-
...
|
|
3252
|
-
}],
|
|
3253
|
-
component:
|
|
3172
|
+
component: In,
|
|
3173
|
+
...Tn
|
|
3174
|
+
}], Se = () => [{
|
|
3175
|
+
component: ot,
|
|
3254
3176
|
...qt
|
|
3255
3177
|
}, {
|
|
3256
|
-
component:
|
|
3257
|
-
...
|
|
3178
|
+
component: $t,
|
|
3179
|
+
...Kt
|
|
3258
3180
|
}, {
|
|
3259
3181
|
component: Dt,
|
|
3260
3182
|
...zt
|
|
3261
3183
|
}, {
|
|
3262
|
-
component:
|
|
3263
|
-
...
|
|
3184
|
+
component: jt,
|
|
3185
|
+
..._t
|
|
3264
3186
|
}, {
|
|
3265
3187
|
component: Mt,
|
|
3266
|
-
...
|
|
3188
|
+
...Jt
|
|
3267
3189
|
}, {
|
|
3268
|
-
component:
|
|
3269
|
-
...
|
|
3190
|
+
component: Gt,
|
|
3191
|
+
...Yt
|
|
3270
3192
|
}, {
|
|
3271
|
-
component:
|
|
3272
|
-
...
|
|
3193
|
+
component: Yn,
|
|
3194
|
+
...Qt
|
|
3273
3195
|
}, {
|
|
3274
|
-
component:
|
|
3275
|
-
...
|
|
3196
|
+
component: tn,
|
|
3197
|
+
...en
|
|
3276
3198
|
}, {
|
|
3277
|
-
component:
|
|
3278
|
-
...
|
|
3199
|
+
component: Zt,
|
|
3200
|
+
...Xt
|
|
3279
3201
|
}, {
|
|
3280
|
-
component:
|
|
3281
|
-
...
|
|
3282
|
-
}, ...
|
|
3202
|
+
component: Ht,
|
|
3203
|
+
...Ut
|
|
3204
|
+
}, ...wn()], Rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3283
3205
|
function getAndSetVariantId() {
|
|
3284
3206
|
function setCookie(name, value, days) {
|
|
3285
3207
|
let expires = '';
|
|
@@ -3335,7 +3257,7 @@ const Rn = () => [{
|
|
|
3335
3257
|
}).join('');
|
|
3336
3258
|
styleEl.innerHTML = newStyleStr;
|
|
3337
3259
|
}
|
|
3338
|
-
}`,
|
|
3260
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3339
3261
|
if (!navigator.cookieEnabled) {
|
|
3340
3262
|
return;
|
|
3341
3263
|
}
|
|
@@ -3369,26 +3291,26 @@ const Rn = () => [{
|
|
|
3369
3291
|
thisScriptEl?.remove();
|
|
3370
3292
|
}
|
|
3371
3293
|
return;
|
|
3372
|
-
}`,
|
|
3294
|
+
}`, Oe = "builderIoAbTest", je = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3373
3295
|
...t,
|
|
3374
3296
|
testVariationId: t.id,
|
|
3375
3297
|
id: e == null ? void 0 : e.id
|
|
3376
|
-
})),
|
|
3298
|
+
})), Bn = ({
|
|
3377
3299
|
canTrack: e,
|
|
3378
3300
|
content: t
|
|
3379
|
-
}) => !(!(J(t).length > 0) || !e || G()),
|
|
3380
|
-
window.${
|
|
3381
|
-
window.${
|
|
3382
|
-
`,
|
|
3383
|
-
window.${
|
|
3301
|
+
}) => !(!(J(t).length > 0) || !e || G()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(K), Vn = () => `
|
|
3302
|
+
window.${Oe} = ${Rn}
|
|
3303
|
+
window.${je} = ${En}
|
|
3304
|
+
`, An = (e, t) => `
|
|
3305
|
+
window.${Oe}(
|
|
3384
3306
|
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3385
|
-
)`,
|
|
3307
|
+
)`, Nn = ({
|
|
3386
3308
|
contentId: e,
|
|
3387
3309
|
variationId: t
|
|
3388
|
-
}) => `window.${
|
|
3310
|
+
}) => `window.${je}(
|
|
3389
3311
|
"${t}", "${e}", ${Me}
|
|
3390
3312
|
)`;
|
|
3391
|
-
function
|
|
3313
|
+
function ce(e) {
|
|
3392
3314
|
return /* @__PURE__ */ s(
|
|
3393
3315
|
"script",
|
|
3394
3316
|
{
|
|
@@ -3397,10 +3319,10 @@ function de(e) {
|
|
|
3397
3319
|
}
|
|
3398
3320
|
);
|
|
3399
3321
|
}
|
|
3400
|
-
function
|
|
3322
|
+
function ke(e) {
|
|
3401
3323
|
return Math.round(e * 1e3) / 1e3;
|
|
3402
3324
|
}
|
|
3403
|
-
const
|
|
3325
|
+
const Wn = (e, t, n = !0) => {
|
|
3404
3326
|
if (!(e instanceof HTMLElement))
|
|
3405
3327
|
return null;
|
|
3406
3328
|
let i = n ? e : e.parentElement;
|
|
@@ -3411,28 +3333,28 @@ const $n = (e, t, n = !0) => {
|
|
|
3411
3333
|
return i;
|
|
3412
3334
|
} while (i = i.parentElement);
|
|
3413
3335
|
return null;
|
|
3414
|
-
}, Fn = (e) =>
|
|
3336
|
+
}, Fn = (e) => Wn(e, (t) => {
|
|
3415
3337
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3416
3338
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3417
|
-
}),
|
|
3339
|
+
}), Ce = ({
|
|
3418
3340
|
event: e,
|
|
3419
3341
|
target: t
|
|
3420
3342
|
}) => {
|
|
3421
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l =
|
|
3343
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, l = ke(i / n.width), a = ke(o / n.height);
|
|
3422
3344
|
return {
|
|
3423
3345
|
x: l,
|
|
3424
3346
|
y: a
|
|
3425
3347
|
};
|
|
3426
|
-
},
|
|
3348
|
+
}, $n = (e) => {
|
|
3427
3349
|
const t = e.target, n = t && Fn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3428
3350
|
return {
|
|
3429
3351
|
targetBuilderElement: i || void 0,
|
|
3430
3352
|
metadata: {
|
|
3431
|
-
targetOffset: t ?
|
|
3353
|
+
targetOffset: t ? Ce({
|
|
3432
3354
|
event: e,
|
|
3433
3355
|
target: t
|
|
3434
3356
|
}) : void 0,
|
|
3435
|
-
builderTargetOffset: n ?
|
|
3357
|
+
builderTargetOffset: n ? Ce({
|
|
3436
3358
|
event: e,
|
|
3437
3359
|
target: n
|
|
3438
3360
|
}) : void 0,
|
|
@@ -3465,15 +3387,15 @@ font-weight: ${r};
|
|
|
3465
3387
|
`.trim());
|
|
3466
3388
|
}
|
|
3467
3389
|
return o;
|
|
3468
|
-
},
|
|
3390
|
+
}, Ln = ({
|
|
3469
3391
|
customFonts: e
|
|
3470
3392
|
}) => {
|
|
3471
3393
|
var t;
|
|
3472
3394
|
return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3473
|
-
},
|
|
3395
|
+
}, On = ({
|
|
3474
3396
|
cssCode: e,
|
|
3475
3397
|
contentId: t
|
|
3476
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3398
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
|
|
3477
3399
|
.builder-button {
|
|
3478
3400
|
all: unset;
|
|
3479
3401
|
}
|
|
@@ -3490,9 +3412,9 @@ font-weight: ${r};
|
|
|
3490
3412
|
text-align: inherit;
|
|
3491
3413
|
font-family: inherit;
|
|
3492
3414
|
}
|
|
3493
|
-
`, Mn = (e) => e ? "" :
|
|
3494
|
-
function
|
|
3495
|
-
var V, A, O, S, w,
|
|
3415
|
+
`, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
|
|
3416
|
+
function Hn(e) {
|
|
3417
|
+
var V, A, O, S, w, N, b;
|
|
3496
3418
|
const t = ee(null);
|
|
3497
3419
|
function n(h) {
|
|
3498
3420
|
var v, k;
|
|
@@ -3506,7 +3428,7 @@ function Kn(e) {
|
|
|
3506
3428
|
}));
|
|
3507
3429
|
}
|
|
3508
3430
|
function i(h) {
|
|
3509
|
-
var v, k, T,
|
|
3431
|
+
var v, k, T, W, j;
|
|
3510
3432
|
const y = {
|
|
3511
3433
|
...e.builderContextSignal.content,
|
|
3512
3434
|
...h,
|
|
@@ -3517,11 +3439,11 @@ function Kn(e) {
|
|
|
3517
3439
|
meta: {
|
|
3518
3440
|
...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
|
|
3519
3441
|
...h == null ? void 0 : h.meta,
|
|
3520
|
-
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (
|
|
3442
|
+
breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
|
|
3521
3443
|
}
|
|
3522
3444
|
};
|
|
3523
|
-
e.setBuilderContextSignal((
|
|
3524
|
-
|
|
3445
|
+
e.setBuilderContextSignal((F) => ({
|
|
3446
|
+
...F,
|
|
3525
3447
|
content: y
|
|
3526
3448
|
}));
|
|
3527
3449
|
}
|
|
@@ -3535,7 +3457,7 @@ function Kn(e) {
|
|
|
3535
3457
|
() => e.contentWrapper || "div"
|
|
3536
3458
|
);
|
|
3537
3459
|
function r(h) {
|
|
3538
|
-
return
|
|
3460
|
+
return Ye({
|
|
3539
3461
|
model: e.model,
|
|
3540
3462
|
trustedHosts: e.trustedHosts,
|
|
3541
3463
|
callbacks: {
|
|
@@ -3549,7 +3471,7 @@ function Kn(e) {
|
|
|
3549
3471
|
});
|
|
3550
3472
|
},
|
|
3551
3473
|
animation: (y) => {
|
|
3552
|
-
|
|
3474
|
+
Ne(y);
|
|
3553
3475
|
},
|
|
3554
3476
|
contentUpdate: (y) => {
|
|
3555
3477
|
i(y);
|
|
@@ -3560,7 +3482,7 @@ function Kn(e) {
|
|
|
3560
3482
|
function c() {
|
|
3561
3483
|
var y, v;
|
|
3562
3484
|
const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
|
|
3563
|
-
h &&
|
|
3485
|
+
h && q({
|
|
3564
3486
|
code: h,
|
|
3565
3487
|
context: e.context || {},
|
|
3566
3488
|
localState: void 0,
|
|
@@ -3572,35 +3494,35 @@ function Kn(e) {
|
|
|
3572
3494
|
enableCache: !1
|
|
3573
3495
|
});
|
|
3574
3496
|
}
|
|
3575
|
-
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [
|
|
3497
|
+
const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
|
|
3576
3498
|
function I(h) {
|
|
3577
3499
|
var y, v;
|
|
3578
3500
|
if (e.builderContextSignal.content) {
|
|
3579
3501
|
const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
|
|
3580
|
-
|
|
3502
|
+
he({
|
|
3581
3503
|
type: "click",
|
|
3582
3504
|
canTrack: Q(e.canTrack),
|
|
3583
3505
|
contentId: T,
|
|
3584
3506
|
apiKey: e.apiKey,
|
|
3585
3507
|
variationId: k !== T ? k : void 0,
|
|
3586
|
-
|
|
3587
|
-
unique: !
|
|
3508
|
+
...$n(h),
|
|
3509
|
+
unique: !g
|
|
3588
3510
|
});
|
|
3589
3511
|
}
|
|
3590
|
-
|
|
3512
|
+
g || p(!0);
|
|
3591
3513
|
}
|
|
3592
3514
|
function x() {
|
|
3593
3515
|
var y, v, k;
|
|
3594
3516
|
const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
|
|
3595
|
-
Object.entries(h).forEach(([T,
|
|
3596
|
-
if (!
|
|
3517
|
+
Object.entries(h).forEach(([T, W]) => {
|
|
3518
|
+
if (!W || d[T] || u[T] && !$())
|
|
3597
3519
|
return;
|
|
3598
3520
|
d[T] = !0;
|
|
3599
|
-
const j =
|
|
3521
|
+
const j = W.replace(
|
|
3600
3522
|
/{{([^}]+)}}/g,
|
|
3601
|
-
(
|
|
3602
|
-
|
|
3603
|
-
code:
|
|
3523
|
+
(F, Ue) => String(
|
|
3524
|
+
q({
|
|
3525
|
+
code: Ue,
|
|
3604
3526
|
context: e.context || {},
|
|
3605
3527
|
localState: void 0,
|
|
3606
3528
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3609,24 +3531,24 @@ function Kn(e) {
|
|
|
3609
3531
|
})
|
|
3610
3532
|
)
|
|
3611
3533
|
);
|
|
3612
|
-
|
|
3534
|
+
Ge(j).then((F) => F.json()).then((F) => {
|
|
3613
3535
|
n({
|
|
3614
|
-
[T]:
|
|
3536
|
+
[T]: F
|
|
3615
3537
|
}), u[T] = !0;
|
|
3616
|
-
}).catch((
|
|
3617
|
-
console.error("error fetching dynamic data",
|
|
3538
|
+
}).catch((F) => {
|
|
3539
|
+
console.error("error fetching dynamic data", W, F);
|
|
3618
3540
|
}).finally(() => {
|
|
3619
3541
|
d[T] = !1;
|
|
3620
3542
|
});
|
|
3621
3543
|
});
|
|
3622
3544
|
}
|
|
3623
|
-
function
|
|
3624
|
-
|
|
3545
|
+
function E() {
|
|
3546
|
+
$() && window.dispatchEvent(
|
|
3625
3547
|
new CustomEvent(
|
|
3626
3548
|
"builder:component:stateChange",
|
|
3627
3549
|
{
|
|
3628
3550
|
detail: {
|
|
3629
|
-
state:
|
|
3551
|
+
state: de(e.builderContextSignal.rootState),
|
|
3630
3552
|
ref: {
|
|
3631
3553
|
name: e.model
|
|
3632
3554
|
}
|
|
@@ -3635,10 +3557,10 @@ function Kn(e) {
|
|
|
3635
3557
|
)
|
|
3636
3558
|
);
|
|
3637
3559
|
}
|
|
3638
|
-
return
|
|
3560
|
+
return B(() => {
|
|
3639
3561
|
var h, y;
|
|
3640
3562
|
if (G()) {
|
|
3641
|
-
if (
|
|
3563
|
+
if ($() && (window.addEventListener("message", r), Ke(), ze({
|
|
3642
3564
|
...e.locale ? {
|
|
3643
3565
|
locale: e.locale
|
|
3644
3566
|
} : {},
|
|
@@ -3651,59 +3573,59 @@ function Kn(e) {
|
|
|
3651
3573
|
}), Object.values(
|
|
3652
3574
|
e.builderContextSignal.componentInfos
|
|
3653
3575
|
).forEach((k) => {
|
|
3654
|
-
var
|
|
3655
|
-
const T =
|
|
3656
|
-
(
|
|
3576
|
+
var W;
|
|
3577
|
+
const T = _e(k);
|
|
3578
|
+
(W = window.parent) == null || W.postMessage(T, "*");
|
|
3657
3579
|
}), window.addEventListener(
|
|
3658
3580
|
"builder:component:stateChangeListenerActivated",
|
|
3659
|
-
|
|
3581
|
+
E
|
|
3660
3582
|
)), e.builderContextSignal.content && Q(e.canTrack)) {
|
|
3661
|
-
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id,
|
|
3662
|
-
|
|
3583
|
+
const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
|
|
3584
|
+
he({
|
|
3663
3585
|
type: "impression",
|
|
3664
3586
|
canTrack: !0,
|
|
3665
3587
|
contentId: T,
|
|
3666
|
-
apiKey:
|
|
3588
|
+
apiKey: W,
|
|
3667
3589
|
variationId: k !== T ? k : void 0
|
|
3668
3590
|
});
|
|
3669
3591
|
}
|
|
3670
|
-
if (
|
|
3671
|
-
const k = new URL(location.href).searchParams, T = k.get("builder.preview"),
|
|
3592
|
+
if (Je() && !$()) {
|
|
3593
|
+
const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
|
|
3672
3594
|
`builder.overrides.${T}`
|
|
3673
3595
|
), j = k.get("apiKey") || k.get("builder.space");
|
|
3674
|
-
T === e.model && j === e.apiKey && (!e.content ||
|
|
3596
|
+
T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
|
|
3675
3597
|
model: e.model,
|
|
3676
3598
|
apiKey: e.apiKey,
|
|
3677
3599
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3678
|
-
}).then((
|
|
3679
|
-
|
|
3600
|
+
}).then((F) => {
|
|
3601
|
+
F && i(F);
|
|
3680
3602
|
});
|
|
3681
3603
|
}
|
|
3682
3604
|
}
|
|
3683
|
-
}, []),
|
|
3605
|
+
}, []), B(() => {
|
|
3684
3606
|
e.apiKey || Z.error(
|
|
3685
3607
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3686
|
-
), c(), x(),
|
|
3687
|
-
}, []),
|
|
3608
|
+
), c(), x(), E();
|
|
3609
|
+
}, []), B(() => {
|
|
3688
3610
|
e.content && i(e.content);
|
|
3689
|
-
}, [e.content]),
|
|
3611
|
+
}, [e.content]), B(() => {
|
|
3690
3612
|
c();
|
|
3691
|
-
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]),
|
|
3613
|
+
}, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
|
|
3692
3614
|
x();
|
|
3693
|
-
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]),
|
|
3694
|
-
|
|
3695
|
-
}, [e.builderContextSignal.rootState]),
|
|
3615
|
+
}, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
|
|
3616
|
+
E();
|
|
3617
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3696
3618
|
e.data && n(e.data);
|
|
3697
|
-
}, [e.data]),
|
|
3619
|
+
}, [e.data]), B(() => {
|
|
3698
3620
|
e.locale && n({
|
|
3699
3621
|
locale: e.locale
|
|
3700
3622
|
});
|
|
3701
|
-
}, [e.locale]),
|
|
3623
|
+
}, [e.locale]), B(() => () => {
|
|
3702
3624
|
G() && (window.removeEventListener("message", r), window.removeEventListener(
|
|
3703
3625
|
"builder:component:stateChangeListenerActivated",
|
|
3704
|
-
|
|
3626
|
+
E
|
|
3705
3627
|
));
|
|
3706
|
-
}, []), /* @__PURE__ */ s(
|
|
3628
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3707
3629
|
l,
|
|
3708
3630
|
{
|
|
3709
3631
|
ref: t,
|
|
@@ -3712,8 +3634,8 @@ function Kn(e) {
|
|
|
3712
3634
|
"builder-model": e.model,
|
|
3713
3635
|
...o(),
|
|
3714
3636
|
...e.contentWrapperProps,
|
|
3715
|
-
className:
|
|
3716
|
-
((
|
|
3637
|
+
className: Un(
|
|
3638
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
|
|
3717
3639
|
),
|
|
3718
3640
|
children: e.children
|
|
3719
3641
|
}
|
|
@@ -3722,19 +3644,19 @@ function Kn(e) {
|
|
|
3722
3644
|
function qn(e) {
|
|
3723
3645
|
const [t, n] = C(
|
|
3724
3646
|
() => `
|
|
3725
|
-
${
|
|
3647
|
+
${On({
|
|
3726
3648
|
cssCode: e.cssCode,
|
|
3727
3649
|
contentId: e.contentId
|
|
3728
3650
|
})}
|
|
3729
|
-
${
|
|
3651
|
+
${Ln({
|
|
3730
3652
|
customFonts: e.customFonts
|
|
3731
3653
|
})}
|
|
3732
3654
|
${Mn(e.isNestedRender)}
|
|
3733
3655
|
`.trim()
|
|
3734
3656
|
);
|
|
3735
|
-
return /* @__PURE__ */ s(
|
|
3657
|
+
return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
|
|
3736
3658
|
}
|
|
3737
|
-
const
|
|
3659
|
+
const Kn = ({
|
|
3738
3660
|
content: e,
|
|
3739
3661
|
data: t,
|
|
3740
3662
|
locale: n
|
|
@@ -3762,12 +3684,12 @@ const _n = ({
|
|
|
3762
3684
|
},
|
|
3763
3685
|
meta: e == null ? void 0 : e.meta
|
|
3764
3686
|
} : void 0;
|
|
3765
|
-
function
|
|
3766
|
-
var c, u, f, d, m,
|
|
3687
|
+
function Te(e) {
|
|
3688
|
+
var c, u, f, d, m, g, p;
|
|
3767
3689
|
const [t, n] = C(
|
|
3768
3690
|
() => {
|
|
3769
3691
|
var I, x;
|
|
3770
|
-
return
|
|
3692
|
+
return Nn({
|
|
3771
3693
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3772
3694
|
variationId: (I = e.content) == null ? void 0 : I.testVariationId,
|
|
3773
3695
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3783,14 +3705,14 @@ function Ie(e) {
|
|
|
3783
3705
|
}
|
|
3784
3706
|
const [o, l] = C(
|
|
3785
3707
|
() => [
|
|
3786
|
-
...
|
|
3708
|
+
...Se(),
|
|
3787
3709
|
...e.customComponents || []
|
|
3788
3710
|
].reduce(
|
|
3789
|
-
(I, { component: x, ...
|
|
3711
|
+
(I, { component: x, ...E }) => ({
|
|
3790
3712
|
...I,
|
|
3791
|
-
[
|
|
3713
|
+
[E.name]: {
|
|
3792
3714
|
component: x,
|
|
3793
|
-
...ge(
|
|
3715
|
+
...ge(E)
|
|
3794
3716
|
}
|
|
3795
3717
|
}),
|
|
3796
3718
|
{}
|
|
@@ -3801,7 +3723,7 @@ function Ie(e) {
|
|
|
3801
3723
|
data: e.data
|
|
3802
3724
|
}),
|
|
3803
3725
|
localState: void 0,
|
|
3804
|
-
rootState:
|
|
3726
|
+
rootState: Kn({
|
|
3805
3727
|
content: e.content,
|
|
3806
3728
|
data: e.data,
|
|
3807
3729
|
locale: e.locale
|
|
@@ -3812,12 +3734,12 @@ function Ie(e) {
|
|
|
3812
3734
|
apiKey: e.apiKey,
|
|
3813
3735
|
apiVersion: e.apiVersion,
|
|
3814
3736
|
componentInfos: [
|
|
3815
|
-
...
|
|
3737
|
+
...Se(),
|
|
3816
3738
|
...e.customComponents || []
|
|
3817
3739
|
].reduce(
|
|
3818
|
-
(I, { component: x, ...
|
|
3740
|
+
(I, { component: x, ...E }) => ({
|
|
3819
3741
|
...I,
|
|
3820
|
-
[
|
|
3742
|
+
[E.name]: ge(E)
|
|
3821
3743
|
}),
|
|
3822
3744
|
{}
|
|
3823
3745
|
),
|
|
@@ -3826,13 +3748,13 @@ function Ie(e) {
|
|
|
3826
3748
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
3827
3749
|
}));
|
|
3828
3750
|
return /* @__PURE__ */ s(
|
|
3829
|
-
|
|
3751
|
+
Be.Provider,
|
|
3830
3752
|
{
|
|
3831
3753
|
value: {
|
|
3832
3754
|
registeredComponents: o
|
|
3833
3755
|
},
|
|
3834
|
-
children: /* @__PURE__ */
|
|
3835
|
-
|
|
3756
|
+
children: /* @__PURE__ */ P(
|
|
3757
|
+
Hn,
|
|
3836
3758
|
{
|
|
3837
3759
|
content: e.content,
|
|
3838
3760
|
data: e.data,
|
|
@@ -3850,7 +3772,7 @@ function Ie(e) {
|
|
|
3850
3772
|
setBuilderContextSignal: r,
|
|
3851
3773
|
children: [
|
|
3852
3774
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3853
|
-
|
|
3775
|
+
ce,
|
|
3854
3776
|
{
|
|
3855
3777
|
id: "builderio-variant-visibility",
|
|
3856
3778
|
scriptStr: t
|
|
@@ -3866,9 +3788,9 @@ function Ie(e) {
|
|
|
3866
3788
|
}
|
|
3867
3789
|
),
|
|
3868
3790
|
/* @__PURE__ */ s(
|
|
3869
|
-
|
|
3791
|
+
D,
|
|
3870
3792
|
{
|
|
3871
|
-
blocks: (p = (
|
|
3793
|
+
blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
|
|
3872
3794
|
context: a,
|
|
3873
3795
|
registeredComponents: o,
|
|
3874
3796
|
linkComponent: e.linkComponent
|
|
@@ -3880,17 +3802,17 @@ function Ie(e) {
|
|
|
3880
3802
|
}
|
|
3881
3803
|
);
|
|
3882
3804
|
}
|
|
3883
|
-
function
|
|
3805
|
+
function _n(e) {
|
|
3884
3806
|
var a;
|
|
3885
3807
|
const [t, n] = C(
|
|
3886
|
-
() =>
|
|
3808
|
+
() => Bn({
|
|
3887
3809
|
canTrack: Q(e.canTrack),
|
|
3888
3810
|
content: e.content
|
|
3889
3811
|
})
|
|
3890
3812
|
);
|
|
3891
3813
|
function i() {
|
|
3892
3814
|
var r;
|
|
3893
|
-
return
|
|
3815
|
+
return An(
|
|
3894
3816
|
J(e.content).map((c) => ({
|
|
3895
3817
|
id: c.testVariationId,
|
|
3896
3818
|
testRatio: c.testRatio
|
|
@@ -3906,38 +3828,38 @@ function Jn(e) {
|
|
|
3906
3828
|
return t ? {
|
|
3907
3829
|
...e.content,
|
|
3908
3830
|
testVariationId: (r = e.content) == null ? void 0 : r.id
|
|
3909
|
-
} :
|
|
3831
|
+
} : Qe({
|
|
3910
3832
|
item: e.content,
|
|
3911
3833
|
canTrack: Q(e.canTrack)
|
|
3912
3834
|
});
|
|
3913
3835
|
}
|
|
3914
|
-
return
|
|
3915
|
-
}, []),
|
|
3916
|
-
}), /* @__PURE__ */
|
|
3917
|
-
!e.isNestedRender &&
|
|
3918
|
-
|
|
3836
|
+
return B(() => {
|
|
3837
|
+
}, []), B(() => {
|
|
3838
|
+
}), /* @__PURE__ */ P(R, { children: [
|
|
3839
|
+
!e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
|
|
3840
|
+
ce,
|
|
3919
3841
|
{
|
|
3920
3842
|
id: "builderio-init-variants-fns",
|
|
3921
|
-
scriptStr:
|
|
3843
|
+
scriptStr: Vn()
|
|
3922
3844
|
}
|
|
3923
3845
|
) : null,
|
|
3924
|
-
t ? /* @__PURE__ */
|
|
3846
|
+
t ? /* @__PURE__ */ P(R, { children: [
|
|
3925
3847
|
/* @__PURE__ */ s(
|
|
3926
|
-
|
|
3848
|
+
ne,
|
|
3927
3849
|
{
|
|
3928
3850
|
id: "builderio-variants",
|
|
3929
3851
|
styles: o()
|
|
3930
3852
|
}
|
|
3931
3853
|
),
|
|
3932
3854
|
/* @__PURE__ */ s(
|
|
3933
|
-
|
|
3855
|
+
ce,
|
|
3934
3856
|
{
|
|
3935
3857
|
id: "builderio-variants-visibility",
|
|
3936
3858
|
scriptStr: i()
|
|
3937
3859
|
}
|
|
3938
3860
|
),
|
|
3939
3861
|
(a = J(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
3940
|
-
|
|
3862
|
+
Te,
|
|
3941
3863
|
{
|
|
3942
3864
|
isNestedRender: e.isNestedRender,
|
|
3943
3865
|
content: r,
|
|
@@ -3963,7 +3885,7 @@ function Jn(e) {
|
|
|
3963
3885
|
))
|
|
3964
3886
|
] }) : null,
|
|
3965
3887
|
/* @__PURE__ */ s(
|
|
3966
|
-
|
|
3888
|
+
Te,
|
|
3967
3889
|
{
|
|
3968
3890
|
isNestedRender: e.isNestedRender,
|
|
3969
3891
|
content: l(),
|
|
@@ -3988,13 +3910,13 @@ function Jn(e) {
|
|
|
3988
3910
|
)
|
|
3989
3911
|
] });
|
|
3990
3912
|
}
|
|
3991
|
-
const
|
|
3913
|
+
const Jn = async ({
|
|
3992
3914
|
builderContextValue: e,
|
|
3993
3915
|
symbol: t
|
|
3994
3916
|
}) => {
|
|
3995
3917
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3996
3918
|
(e != null && e.apiKey))
|
|
3997
|
-
return
|
|
3919
|
+
return Ie({
|
|
3998
3920
|
model: t.model,
|
|
3999
3921
|
apiKey: e.apiKey,
|
|
4000
3922
|
apiVersion: e.apiVersion,
|
|
@@ -4007,7 +3929,7 @@ const Yn = async ({
|
|
|
4007
3929
|
Z.error("Could not fetch symbol content: ", n);
|
|
4008
3930
|
});
|
|
4009
3931
|
};
|
|
4010
|
-
function
|
|
3932
|
+
function Yn(e) {
|
|
4011
3933
|
var r, c, u, f;
|
|
4012
3934
|
function t() {
|
|
4013
3935
|
return "div";
|
|
@@ -4029,18 +3951,18 @@ function Gn(e) {
|
|
|
4029
3951
|
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4030
3952
|
});
|
|
4031
3953
|
function a() {
|
|
4032
|
-
o ||
|
|
3954
|
+
o || Jn({
|
|
4033
3955
|
symbol: e.symbol,
|
|
4034
3956
|
builderContextValue: e.builderContext
|
|
4035
3957
|
}).then((d) => {
|
|
4036
3958
|
d && l(d);
|
|
4037
3959
|
});
|
|
4038
3960
|
}
|
|
4039
|
-
return
|
|
4040
|
-
}, []),
|
|
3961
|
+
return B(() => {
|
|
3962
|
+
}, []), B(() => {
|
|
4041
3963
|
a();
|
|
4042
3964
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4043
|
-
|
|
3965
|
+
_n,
|
|
4044
3966
|
{
|
|
4045
3967
|
isNestedRender: !0,
|
|
4046
3968
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4065,15 +3987,15 @@ function Gn(e) {
|
|
|
4065
3987
|
) });
|
|
4066
3988
|
}
|
|
4067
3989
|
export {
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
3990
|
+
D as Blocks,
|
|
3991
|
+
me as BuilderContext,
|
|
3992
|
+
ot as Button,
|
|
3993
|
+
$t as Columns,
|
|
3994
|
+
_n as Content,
|
|
4073
3995
|
Dt as Fragment,
|
|
4074
|
-
|
|
3996
|
+
jt as Image,
|
|
4075
3997
|
Mt as Section,
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
3998
|
+
Yn as Symbol,
|
|
3999
|
+
tn as Text,
|
|
4000
|
+
In as Video
|
|
4079
4001
|
};
|