@builder.io/sdk-react 2.0.29 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +18 -18
- package/lib/browser/blocks-exports.mjs +584 -587
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/{edge/server-entry-05dd3f4b.js → browser/server-entry-77f4513c.js} +245 -228
- package/lib/browser/server-entry-d7a13b14.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-200ac141.cjs → accordion-696fad97.cjs} +1 -1
- package/lib/edge/{accordion-1fae9bd5.js → accordion-d1213549.js} +1 -1
- package/lib/edge/{blocks-b47cd3fc.js → blocks-9ef79098.js} +3 -3
- package/lib/edge/{blocks-fd9e445c.cjs → blocks-aa67fee8.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-ffe70d17.cjs → button-2ed05d22.cjs} +1 -1
- package/lib/edge/{button-5cc9a94f.js → button-b41f1129.js} +2 -2
- package/lib/edge/{columns-9ad996bb.js → columns-5f8497fb.js} +4 -4
- package/lib/edge/{columns-7651ba21.cjs → columns-ca9ac444.cjs} +1 -1
- package/lib/edge/{content-variants-a9017964.cjs → content-variants-2f5a6ccd.cjs} +4 -4
- package/lib/edge/{content-variants-0ece6057.js → content-variants-9c4db669.js} +118 -118
- package/lib/edge/{evaluate-73e0df40.cjs → evaluate-8453ffc0.cjs} +1 -1
- package/lib/edge/{evaluate-5cfe10b0.js → evaluate-f626f584.js} +1 -1
- package/lib/edge/{form-186bf59f.js → form-a5407307.js} +30 -33
- package/lib/edge/form-b0c5418b.cjs +1 -0
- package/lib/edge/{get-class-prop-name-7d6a77a4.js → get-class-prop-name-40d6defb.js} +1 -1
- package/lib/edge/{get-class-prop-name-11734dbc.cjs → get-class-prop-name-86f0330a.cjs} +1 -1
- package/lib/edge/{img-ef160d2b.cjs → img-83ed868e.cjs} +1 -1
- package/lib/edge/{img-6c1f4ea4.js → img-fa36f926.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-97dc199a.cjs → input-3106b577.cjs} +1 -1
- package/lib/edge/{input-b4ee4339.js → input-93e42e28.js} +1 -1
- package/lib/edge/{select-2cdf2c8f.cjs → select-29495824.cjs} +1 -1
- package/lib/edge/{select-e79d6e1b.js → select-4cf4356a.js} +1 -1
- package/lib/edge/server-entry-4cd5389e.cjs +2 -0
- package/lib/{node/server-entry-00c52924.js → edge/server-entry-ea35faa6.js} +243 -231
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-680234a8.js → slot-6ad4152e.js} +4 -4
- package/lib/edge/{slot-66ba436b.cjs → slot-c8ab71b6.cjs} +1 -1
- package/lib/edge/{symbol-4d0b1228.cjs → symbol-74313a4b.cjs} +1 -1
- package/lib/edge/{symbol-e920f028.js → symbol-d2b48e54.js} +2 -2
- package/lib/edge/{tabs-1bea88d1.js → tabs-6d924c90.js} +4 -4
- package/lib/edge/{tabs-1f3f45cf.cjs → tabs-f699b318.cjs} +1 -1
- package/lib/edge/{text-9533b278.cjs → text-7120ee0c.cjs} +1 -1
- package/lib/edge/{text-fd78274f.js → text-7137a306.js} +2 -2
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +576 -579
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/{browser/server-entry-712b1faa.js → node/server-entry-32ef60c0.js} +213 -197
- package/lib/node/server-entry-9c026e49.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-156def75.js → setIvm-26e65816.js} +1 -1
- package/lib/node/{setIvm-ca4d1590.cjs → setIvm-bf1ad328.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-bc24fcdd.cjs → should-force-browser-runtime-in-node-000957e3.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-eb3eac6a.js → should-force-browser-runtime-in-node-343fd6c7.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/log-fetch.d.ts +1 -0
- package/lib/browser/server-entry-3e3279b7.cjs +0 -2
- package/lib/edge/form-c98c7fc1.cjs +0 -1
- package/lib/edge/server-entry-0224e0bb.cjs +0 -2
- package/lib/node/server-entry-0b1fe826.cjs +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, Fragment as
|
|
3
|
-
import { TARGET as D, isBrowser as
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { getFunctionArguments as
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isBrowser as q, logger as ie, checkIsDefined as ee, isPreviewing as ve, isEditing as N, logFetch as Se, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as He, getDefaultCanTrack as K, _track as se, fetchOneEntry as ke, createEditorListener as je, serializeIncludingFunctions as ce, handleABTestingSync as Me } from "./server-entry-32ef60c0.js";
|
|
4
|
+
import { createContext as Ce, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Te } from "react";
|
|
5
|
+
import { getFunctionArguments as _e, flattenState as qe, runInNode as Ke, parseCode as ze, getBuilderGlobals as Je, set as Ie, fastClone as oe } from "./setIvm-26e65816.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as Ge } from "./should-force-browser-runtime-in-node-343fd6c7.js";
|
|
7
|
+
const Ye = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ye.has(e.toLowerCase());
|
|
8
|
+
function ae(e) {
|
|
9
|
+
return /* @__PURE__ */ s(I, { children: Qe(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { 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 }) }) });
|
|
10
10
|
}
|
|
11
11
|
const U = () => {
|
|
12
12
|
switch (D) {
|
|
@@ -22,7 +22,7 @@ const U = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Xe(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
@@ -37,7 +37,7 @@ function Qe(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
ae,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function Qe(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const re = Ce({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -60,24 +60,24 @@ const ae = Se({
|
|
|
60
60
|
BlocksWrapper: "div",
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: ""
|
|
63
|
-
}),
|
|
64
|
-
function
|
|
63
|
+
}), we = Ce({ registeredComponents: {} });
|
|
64
|
+
function Ze(e) {
|
|
65
65
|
var t;
|
|
66
66
|
return {
|
|
67
67
|
...(t = e.component) == null ? void 0 : t.options,
|
|
68
68
|
...e.options
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function et(e, ...t) {
|
|
72
72
|
const n = Object.assign({}, e);
|
|
73
73
|
for (const i of t)
|
|
74
74
|
delete n[i];
|
|
75
75
|
return n;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Ee = (e, t, n) => {
|
|
78
78
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
79
79
|
return i === void 0 || i === e ? n : i;
|
|
80
|
-
},
|
|
80
|
+
}, tt = ({
|
|
81
81
|
code: e,
|
|
82
82
|
builder: t,
|
|
83
83
|
context: n,
|
|
@@ -86,22 +86,22 @@ const Ie = (e, t, n) => {
|
|
|
86
86
|
rootSetState: r,
|
|
87
87
|
rootState: a
|
|
88
88
|
}) => {
|
|
89
|
-
const l =
|
|
89
|
+
const l = _e({
|
|
90
90
|
builder: t,
|
|
91
91
|
context: n,
|
|
92
92
|
event: i,
|
|
93
|
-
state:
|
|
93
|
+
state: qe({
|
|
94
94
|
rootState: a,
|
|
95
95
|
localState: o,
|
|
96
96
|
rootSetState: r
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
99
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
100
|
-
},
|
|
100
|
+
}, nt = (e) => q() || Ge({
|
|
101
101
|
shouldLogWarning: !0
|
|
102
|
-
}) ?
|
|
102
|
+
}) ? tt(e) : Ke(e), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
|
|
103
103
|
var t, n, i, o, r, a;
|
|
104
|
-
return ((i = (n = (t =
|
|
104
|
+
return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
105
105
|
};
|
|
106
106
|
function L({
|
|
107
107
|
code: e,
|
|
@@ -114,17 +114,17 @@ function L({
|
|
|
114
114
|
}) {
|
|
115
115
|
if (e.trim() === "")
|
|
116
116
|
return;
|
|
117
|
-
const l =
|
|
117
|
+
const l = at(e.trim());
|
|
118
118
|
if (l)
|
|
119
|
-
return
|
|
119
|
+
return Ee({
|
|
120
120
|
...i,
|
|
121
121
|
...n
|
|
122
122
|
}, l);
|
|
123
123
|
const d = {
|
|
124
|
-
code:
|
|
124
|
+
code: ze(e, {
|
|
125
125
|
isExpression: a
|
|
126
126
|
}),
|
|
127
|
-
builder:
|
|
127
|
+
builder: Je(),
|
|
128
128
|
context: t,
|
|
129
129
|
event: r,
|
|
130
130
|
rootSetState: o,
|
|
@@ -132,29 +132,29 @@ function L({
|
|
|
132
132
|
localState: n
|
|
133
133
|
};
|
|
134
134
|
try {
|
|
135
|
-
return
|
|
135
|
+
return nt(d);
|
|
136
136
|
} catch (c) {
|
|
137
|
-
|
|
137
|
+
ie.error("Failed code evaluation: " + c.message, {
|
|
138
138
|
code: e
|
|
139
139
|
});
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function te(e) {
|
|
144
144
|
if (e === null || typeof e != "object")
|
|
145
145
|
return e;
|
|
146
146
|
if (Array.isArray(e))
|
|
147
|
-
return e.map((n) =>
|
|
147
|
+
return e.map((n) => te(n));
|
|
148
148
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
149
149
|
return e;
|
|
150
150
|
const t = {};
|
|
151
151
|
for (const n in e)
|
|
152
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
152
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
const t =
|
|
155
|
+
const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
|
|
156
|
+
if (rt) {
|
|
157
|
+
const t = oe(e);
|
|
158
158
|
return {
|
|
159
159
|
...t,
|
|
160
160
|
properties: {
|
|
@@ -165,7 +165,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
} else {
|
|
168
|
-
const t =
|
|
168
|
+
const t = te(et(e, "children", "meta"));
|
|
169
169
|
return {
|
|
170
170
|
...t,
|
|
171
171
|
properties: {
|
|
@@ -178,7 +178,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
178
178
|
meta: e.meta
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, st = ({
|
|
182
182
|
block: e,
|
|
183
183
|
context: t,
|
|
184
184
|
localState: n,
|
|
@@ -187,7 +187,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
187
187
|
}) => {
|
|
188
188
|
if (!e.bindings)
|
|
189
189
|
return e;
|
|
190
|
-
const r =
|
|
190
|
+
const r = lt(e);
|
|
191
191
|
for (const a in e.bindings) {
|
|
192
192
|
const l = e.bindings[a], d = L({
|
|
193
193
|
code: l,
|
|
@@ -196,11 +196,11 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
196
196
|
rootSetState: o,
|
|
197
197
|
context: t
|
|
198
198
|
});
|
|
199
|
-
|
|
199
|
+
Ie(r, a, d);
|
|
200
200
|
}
|
|
201
201
|
return r;
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function ct({
|
|
204
204
|
block: e,
|
|
205
205
|
context: t,
|
|
206
206
|
shouldEvaluateBindings: n,
|
|
@@ -209,7 +209,7 @@ function st({
|
|
|
209
209
|
rootSetState: r
|
|
210
210
|
}) {
|
|
211
211
|
const a = e;
|
|
212
|
-
return n ?
|
|
212
|
+
return n ? st({
|
|
213
213
|
block: a,
|
|
214
214
|
localState: i,
|
|
215
215
|
rootState: o,
|
|
@@ -217,8 +217,8 @@ function st({
|
|
|
217
217
|
context: t
|
|
218
218
|
}) : a;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
220
|
+
const z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
221
|
+
function dt(e, t, n = {}) {
|
|
222
222
|
let i, o, r, a = null, l = 0;
|
|
223
223
|
const d = function() {
|
|
224
224
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
@@ -240,55 +240,55 @@ function O(e, ...t) {
|
|
|
240
240
|
}
|
|
241
241
|
return n;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ut(e) {
|
|
244
244
|
for (const t of e)
|
|
245
245
|
switch (t.trigger) {
|
|
246
246
|
case "pageLoad":
|
|
247
|
-
|
|
247
|
+
Be(t);
|
|
248
248
|
break;
|
|
249
249
|
case "scrollInView":
|
|
250
|
-
|
|
250
|
+
ft(t);
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Re(e) {
|
|
255
255
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const n =
|
|
257
|
+
function Pe(e, t) {
|
|
258
|
+
const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
259
259
|
for (const l of a)
|
|
260
260
|
for (const d of n)
|
|
261
261
|
d in l || (l[d] = i[d]);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function mt(e) {
|
|
264
264
|
const t = [];
|
|
265
265
|
for (const n of e.steps)
|
|
266
266
|
for (const i in n.styles)
|
|
267
267
|
t.indexOf(i) === -1 && t.push(i);
|
|
268
268
|
return t;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Be(e) {
|
|
271
271
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
272
272
|
if (!t.length) {
|
|
273
|
-
|
|
273
|
+
Re(e.elementId || e.id || "");
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
Array.from(t).forEach((n) => {
|
|
277
|
-
|
|
278
|
-
n.style.transition = `all ${e.duration}s ${
|
|
277
|
+
Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
|
|
278
|
+
n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
|
|
279
279
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
280
280
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ft(e) {
|
|
285
285
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
286
286
|
if (!t.length) {
|
|
287
|
-
|
|
287
|
+
Re(e.elementId || e.id || "");
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
Array.from(t).forEach((n) => {
|
|
291
|
-
|
|
291
|
+
Pe(e, n);
|
|
292
292
|
let i = !1, o = !1;
|
|
293
293
|
function r() {
|
|
294
294
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -297,7 +297,7 @@ function mt(e) {
|
|
|
297
297
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
298
298
|
})) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
299
299
|
}
|
|
300
|
-
const a =
|
|
300
|
+
const a = dt(r, 200, {
|
|
301
301
|
leading: !1
|
|
302
302
|
});
|
|
303
303
|
function l(h) {
|
|
@@ -309,49 +309,49 @@ function mt(e) {
|
|
|
309
309
|
O(n.style, d);
|
|
310
310
|
}
|
|
311
311
|
c(), setTimeout(() => {
|
|
312
|
-
n.style.transition = `all ${e.duration}s ${
|
|
312
|
+
n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
313
313
|
}), document.addEventListener("scroll", a, {
|
|
314
314
|
capture: !0,
|
|
315
315
|
passive: !0
|
|
316
316
|
}), r();
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const Ve = (e) => Object.entries(e).map(([n, i]) => {
|
|
320
320
|
if (typeof i == "string")
|
|
321
|
-
return `${
|
|
322
|
-
}).filter(
|
|
323
|
-
`),
|
|
321
|
+
return `${z(n)}: ${i};`;
|
|
322
|
+
}).filter(ee), ht = (e) => Ve(e).join(`
|
|
323
|
+
`), M = ({
|
|
324
324
|
mediaQuery: e,
|
|
325
325
|
className: t,
|
|
326
326
|
styles: n
|
|
327
327
|
}) => {
|
|
328
328
|
const i = `.${t} {
|
|
329
|
-
${
|
|
329
|
+
${ht(n)}
|
|
330
330
|
}`;
|
|
331
331
|
return e ? `${e} {
|
|
332
332
|
${i}
|
|
333
333
|
}` : i;
|
|
334
334
|
};
|
|
335
|
-
function
|
|
335
|
+
function gt({
|
|
336
336
|
style: e
|
|
337
337
|
}) {
|
|
338
338
|
return e;
|
|
339
339
|
}
|
|
340
|
-
const
|
|
340
|
+
const bt = ({
|
|
341
341
|
block: e,
|
|
342
342
|
context: t
|
|
343
|
-
}) =>
|
|
343
|
+
}) => Ae(gt({
|
|
344
344
|
style: e.style || {},
|
|
345
345
|
context: t,
|
|
346
346
|
block: e
|
|
347
347
|
}));
|
|
348
|
-
function
|
|
348
|
+
function Ae(e) {
|
|
349
349
|
switch (D) {
|
|
350
350
|
case "svelte":
|
|
351
351
|
case "vue":
|
|
352
352
|
case "solid":
|
|
353
353
|
case "angular":
|
|
354
|
-
return
|
|
354
|
+
return Ve(e).join(" ");
|
|
355
355
|
case "qwik":
|
|
356
356
|
case "reactNative":
|
|
357
357
|
case "react":
|
|
@@ -359,7 +359,7 @@ function Be(e) {
|
|
|
359
359
|
return e;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const pt = ({
|
|
363
363
|
block: e,
|
|
364
364
|
registeredComponents: t
|
|
365
365
|
}) => {
|
|
@@ -373,7 +373,7 @@ const bt = ({
|
|
|
373
373
|
console.warn(`
|
|
374
374
|
Could not find a registered component named "${n}".
|
|
375
375
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
376
|
-
},
|
|
376
|
+
}, yt = ({
|
|
377
377
|
block: e,
|
|
378
378
|
context: t
|
|
379
379
|
}) => {
|
|
@@ -406,27 +406,27 @@ const bt = ({
|
|
|
406
406
|
},
|
|
407
407
|
block: i
|
|
408
408
|
}));
|
|
409
|
-
},
|
|
409
|
+
}, xt = (e, t) => {
|
|
410
410
|
var n;
|
|
411
411
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
412
412
|
builderLinkComponent: t
|
|
413
413
|
} : {};
|
|
414
|
-
},
|
|
414
|
+
}, vt = (e, t) => {
|
|
415
415
|
var n;
|
|
416
416
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
417
417
|
builderComponents: t
|
|
418
418
|
} : {};
|
|
419
|
-
},
|
|
419
|
+
}, St = (e, t) => {
|
|
420
420
|
var n;
|
|
421
421
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
422
422
|
builderBlock: t
|
|
423
423
|
} : {};
|
|
424
|
-
},
|
|
424
|
+
}, kt = (e, t) => {
|
|
425
425
|
var n;
|
|
426
426
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
427
427
|
builderContext: t
|
|
428
428
|
} : {};
|
|
429
|
-
},
|
|
429
|
+
}, We = {
|
|
430
430
|
small: {
|
|
431
431
|
min: 320,
|
|
432
432
|
default: 321,
|
|
@@ -442,11 +442,11 @@ const bt = ({
|
|
|
442
442
|
default: 991,
|
|
443
443
|
max: 1200
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, ue = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ne = ({
|
|
446
446
|
small: e,
|
|
447
447
|
medium: t
|
|
448
448
|
}) => {
|
|
449
|
-
const n =
|
|
449
|
+
const n = oe(We);
|
|
450
450
|
if (!e || !t)
|
|
451
451
|
return n;
|
|
452
452
|
const i = Math.floor(e / 2);
|
|
@@ -469,7 +469,7 @@ const bt = ({
|
|
|
469
469
|
default: r + 1
|
|
470
470
|
}, n;
|
|
471
471
|
};
|
|
472
|
-
function
|
|
472
|
+
function J(e) {
|
|
473
473
|
return /* @__PURE__ */ s(
|
|
474
474
|
"style",
|
|
475
475
|
{
|
|
@@ -479,44 +479,44 @@ function z(e) {
|
|
|
479
479
|
}
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ct(e) {
|
|
483
483
|
function t() {
|
|
484
484
|
const i = e.block;
|
|
485
|
-
return
|
|
485
|
+
return ee(i.hide) ? !i.hide : ee(i.show) ? i.show : !0;
|
|
486
486
|
}
|
|
487
487
|
function n() {
|
|
488
|
-
var
|
|
489
|
-
const i = e.block, o = i.responsiveStyles, r = e.context.content, a =
|
|
490
|
-
((
|
|
488
|
+
var v, p, b;
|
|
489
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Ne(
|
|
490
|
+
((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
|
|
491
491
|
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
492
492
|
if (!h)
|
|
493
493
|
return "";
|
|
494
|
-
const g = l ?
|
|
494
|
+
const g = l ? M({
|
|
495
495
|
className: h,
|
|
496
496
|
styles: l
|
|
497
|
-
}) : "", m = d ?
|
|
497
|
+
}) : "", m = d ? M({
|
|
498
498
|
className: h,
|
|
499
499
|
styles: d,
|
|
500
|
-
mediaQuery:
|
|
500
|
+
mediaQuery: ue(
|
|
501
501
|
"medium",
|
|
502
502
|
a
|
|
503
503
|
)
|
|
504
|
-
}) : "",
|
|
504
|
+
}) : "", x = c ? M({
|
|
505
505
|
className: h,
|
|
506
506
|
styles: c,
|
|
507
|
-
mediaQuery:
|
|
507
|
+
mediaQuery: ue(
|
|
508
508
|
"small",
|
|
509
509
|
a
|
|
510
510
|
)
|
|
511
|
-
}) : "", f = i.animations && i.animations.find((
|
|
512
|
-
let
|
|
511
|
+
}) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
512
|
+
let S = "";
|
|
513
513
|
if (f) {
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
515
|
+
S = M({
|
|
516
516
|
className: `${h}:hover`,
|
|
517
517
|
styles: {
|
|
518
|
-
...
|
|
519
|
-
transition: `all ${f.duration}s ${
|
|
518
|
+
...y,
|
|
519
|
+
transition: `all ${f.duration}s ${z(
|
|
520
520
|
f.easing
|
|
521
521
|
)}`,
|
|
522
522
|
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
@@ -526,12 +526,12 @@ function kt(e) {
|
|
|
526
526
|
return [
|
|
527
527
|
g,
|
|
528
528
|
m,
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
x,
|
|
530
|
+
S
|
|
531
531
|
].join(" ");
|
|
532
532
|
}
|
|
533
|
-
return /* @__PURE__ */ s(
|
|
534
|
-
|
|
533
|
+
return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
534
|
+
J,
|
|
535
535
|
{
|
|
536
536
|
id: "builderio-block",
|
|
537
537
|
styles: n(),
|
|
@@ -539,10 +539,10 @@ function kt(e) {
|
|
|
539
539
|
}
|
|
540
540
|
) }) : null });
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Tt(e) {
|
|
543
543
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
|
|
546
546
|
code: e,
|
|
547
547
|
context: t.context,
|
|
548
548
|
localState: t.localState,
|
|
@@ -551,14 +551,14 @@ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => L({
|
|
|
551
551
|
event: n,
|
|
552
552
|
isExpression: !1
|
|
553
553
|
});
|
|
554
|
-
function
|
|
554
|
+
function Fe(e) {
|
|
555
555
|
var i;
|
|
556
556
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
557
557
|
for (const o in n) {
|
|
558
558
|
if (!n.hasOwnProperty(o))
|
|
559
559
|
continue;
|
|
560
560
|
const r = n[o];
|
|
561
|
-
let a =
|
|
561
|
+
let a = It(o);
|
|
562
562
|
if (e.stripPrefix)
|
|
563
563
|
switch (D) {
|
|
564
564
|
case "vue":
|
|
@@ -568,49 +568,49 @@ function We(e) {
|
|
|
568
568
|
a = a.replace("on:", "");
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
t[a] =
|
|
571
|
+
t[a] = wt(r, e);
|
|
572
572
|
}
|
|
573
573
|
return t;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Et({
|
|
576
576
|
properties: e
|
|
577
577
|
}) {
|
|
578
578
|
return e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const Rt = (e) => ({
|
|
581
581
|
href: e.href
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function le({
|
|
584
584
|
block: e,
|
|
585
585
|
context: t
|
|
586
586
|
}) {
|
|
587
587
|
var i;
|
|
588
588
|
const n = {
|
|
589
|
-
...
|
|
589
|
+
...Rt(e),
|
|
590
590
|
...e.properties,
|
|
591
591
|
"builder-id": e.id,
|
|
592
|
-
style:
|
|
592
|
+
style: bt({
|
|
593
593
|
block: e,
|
|
594
594
|
context: t
|
|
595
595
|
}),
|
|
596
596
|
[U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
597
597
|
};
|
|
598
|
-
return
|
|
598
|
+
return Et({
|
|
599
599
|
properties: n,
|
|
600
600
|
context: t,
|
|
601
601
|
block: e
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Pt(e) {
|
|
605
605
|
return /* @__PURE__ */ s(
|
|
606
|
-
|
|
606
|
+
ae,
|
|
607
607
|
{
|
|
608
608
|
TagName: e.Wrapper,
|
|
609
|
-
attributes:
|
|
609
|
+
attributes: le({
|
|
610
610
|
block: e.block,
|
|
611
611
|
context: e.context
|
|
612
612
|
}),
|
|
613
|
-
actionAttributes:
|
|
613
|
+
actionAttributes: Fe({
|
|
614
614
|
block: e.block,
|
|
615
615
|
rootState: e.context.rootState,
|
|
616
616
|
rootSetState: e.context.rootSetState,
|
|
@@ -622,18 +622,18 @@ function Rt(e) {
|
|
|
622
622
|
}
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Bt(e) {
|
|
626
626
|
return B(() => {
|
|
627
|
-
}, []), /* @__PURE__ */ s(
|
|
627
|
+
}, []), /* @__PURE__ */ s(I, { children: e.children });
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Vt(e) {
|
|
630
630
|
function t() {
|
|
631
631
|
return e.includeBlockProps ? {
|
|
632
|
-
...
|
|
632
|
+
...le({
|
|
633
633
|
block: e.block,
|
|
634
634
|
context: e.context
|
|
635
635
|
}),
|
|
636
|
-
...
|
|
636
|
+
...Fe({
|
|
637
637
|
block: e.block,
|
|
638
638
|
rootState: e.context.rootState,
|
|
639
639
|
rootSetState: e.context.rootSetState,
|
|
@@ -642,8 +642,8 @@ function Bt(e) {
|
|
|
642
642
|
})
|
|
643
643
|
} : {};
|
|
644
644
|
}
|
|
645
|
-
return /* @__PURE__ */ s(
|
|
646
|
-
|
|
645
|
+
return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
646
|
+
Bt,
|
|
647
647
|
{
|
|
648
648
|
load: e.Wrapper.load,
|
|
649
649
|
fallback: e.Wrapper.fallback,
|
|
@@ -653,7 +653,7 @@ function Bt(e) {
|
|
|
653
653
|
}
|
|
654
654
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const At = ({
|
|
657
657
|
componentOptions: e,
|
|
658
658
|
builderBlock: t,
|
|
659
659
|
context: n,
|
|
@@ -669,7 +669,7 @@ const Vt = ({
|
|
|
669
669
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
670
670
|
*/
|
|
671
671
|
...o ? {
|
|
672
|
-
attributes:
|
|
672
|
+
attributes: le({
|
|
673
673
|
block: t,
|
|
674
674
|
context: a
|
|
675
675
|
})
|
|
@@ -683,15 +683,15 @@ const Vt = ({
|
|
|
683
683
|
includeBlockProps: o
|
|
684
684
|
} : l;
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function me(e) {
|
|
687
687
|
var i;
|
|
688
|
-
const [t, n] =
|
|
689
|
-
() => e.isInteractive ?
|
|
688
|
+
const [t, n] = R(
|
|
689
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
690
690
|
);
|
|
691
|
-
return /* @__PURE__ */ s(
|
|
691
|
+
return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
692
692
|
t,
|
|
693
693
|
{
|
|
694
|
-
...
|
|
694
|
+
...At({
|
|
695
695
|
componentOptions: e.componentOptions,
|
|
696
696
|
builderBlock: e.builderBlock,
|
|
697
697
|
context: e.context,
|
|
@@ -714,9 +714,9 @@ function ue(e) {
|
|
|
714
714
|
}
|
|
715
715
|
) }) : null });
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
const [t, n] =
|
|
719
|
-
return /* @__PURE__ */ s(
|
|
717
|
+
function fe(e) {
|
|
718
|
+
const [t, n] = R(() => e.repeatContext);
|
|
719
|
+
return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
720
720
|
H,
|
|
721
721
|
{
|
|
722
722
|
block: e.block,
|
|
@@ -727,22 +727,22 @@ function me(e) {
|
|
|
727
727
|
) });
|
|
728
728
|
}
|
|
729
729
|
function H(e) {
|
|
730
|
-
var h, g, m,
|
|
730
|
+
var h, g, m, x;
|
|
731
731
|
function t() {
|
|
732
|
-
return
|
|
732
|
+
return yt({
|
|
733
733
|
block: e.block,
|
|
734
734
|
context: e.context
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
const [n, i] =
|
|
737
|
+
const [n, i] = R(() => ({
|
|
738
738
|
value: null,
|
|
739
739
|
update: !1
|
|
740
740
|
}));
|
|
741
741
|
function o() {
|
|
742
|
-
var
|
|
743
|
-
if (n.value && !n.update && !
|
|
742
|
+
var S;
|
|
743
|
+
if (n.value && !n.update && !ve())
|
|
744
744
|
return n.value;
|
|
745
|
-
const f = (
|
|
745
|
+
const f = (S = e.block.repeat) != null && S.collection ? e.block : ct({
|
|
746
746
|
block: e.block,
|
|
747
747
|
localState: e.context.localState,
|
|
748
748
|
rootState: e.context.rootState,
|
|
@@ -753,37 +753,37 @@ function H(e) {
|
|
|
753
753
|
return n.value = f, n.update = !1, f;
|
|
754
754
|
}
|
|
755
755
|
function r() {
|
|
756
|
-
return
|
|
756
|
+
return pt({
|
|
757
757
|
block: o(),
|
|
758
758
|
registeredComponents: e.registeredComponents
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
function a() {
|
|
762
|
-
var
|
|
763
|
-
return e.block.tagName === "a" || ((
|
|
762
|
+
var S;
|
|
763
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
764
764
|
}
|
|
765
765
|
function l() {
|
|
766
|
-
var
|
|
767
|
-
if ((
|
|
766
|
+
var v, p;
|
|
767
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
768
768
|
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
769
769
|
const f = "hide" in o() ? o().hide : !1;
|
|
770
770
|
return ("show" in o() ? o().show : !0) && !f;
|
|
771
771
|
}
|
|
772
772
|
function d() {
|
|
773
|
-
var
|
|
774
|
-
return !((
|
|
773
|
+
var S, v;
|
|
774
|
+
return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
|
|
775
775
|
}
|
|
776
776
|
function c() {
|
|
777
|
-
var f,
|
|
777
|
+
var f, S, v, p;
|
|
778
778
|
return {
|
|
779
779
|
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
-
componentRef: (
|
|
780
|
+
componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
|
|
781
781
|
componentOptions: {
|
|
782
|
-
...
|
|
783
|
-
...
|
|
784
|
-
...
|
|
785
|
-
...
|
|
786
|
-
...
|
|
782
|
+
...Ze(o()),
|
|
783
|
+
...St(r(), o()),
|
|
784
|
+
...kt(r(), e.context),
|
|
785
|
+
...xt(r(), e.linkComponent),
|
|
786
|
+
...vt(
|
|
787
787
|
r(),
|
|
788
788
|
e.registeredComponents
|
|
789
789
|
)
|
|
@@ -792,33 +792,33 @@ function H(e) {
|
|
|
792
792
|
linkComponent: e.linkComponent,
|
|
793
793
|
registeredComponents: e.registeredComponents,
|
|
794
794
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((
|
|
795
|
+
includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
|
|
796
796
|
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
799
|
return B(() => {
|
|
800
|
-
const f = o().id,
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...
|
|
800
|
+
const f = o().id, S = o().animations;
|
|
801
|
+
S && f && ut(
|
|
802
|
+
S.map((v) => ({
|
|
803
|
+
...v,
|
|
804
804
|
elementId: f
|
|
805
805
|
}))
|
|
806
806
|
);
|
|
807
807
|
}, []), B(() => {
|
|
808
808
|
n.update = !0;
|
|
809
|
-
}), /* @__PURE__ */ s(
|
|
810
|
-
/* @__PURE__ */ s(
|
|
811
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(
|
|
812
|
-
|
|
809
|
+
}), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
|
|
810
|
+
/* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
|
|
811
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
|
|
812
|
+
fe,
|
|
813
813
|
{
|
|
814
814
|
repeatContext: f.context,
|
|
815
815
|
block: f.block,
|
|
816
816
|
registeredComponents: e.registeredComponents,
|
|
817
817
|
linkComponent: e.linkComponent
|
|
818
818
|
},
|
|
819
|
-
|
|
819
|
+
S
|
|
820
820
|
)) }) : /* @__PURE__ */ s(
|
|
821
|
-
|
|
821
|
+
me,
|
|
822
822
|
{
|
|
823
823
|
componentRef: c().componentRef,
|
|
824
824
|
componentOptions: c().componentOptions,
|
|
@@ -830,24 +830,24 @@ function H(e) {
|
|
|
830
830
|
includeBlockProps: c().includeBlockProps,
|
|
831
831
|
isInteractive: c().isInteractive
|
|
832
832
|
}
|
|
833
|
-
) : /* @__PURE__ */ s(
|
|
834
|
-
|
|
833
|
+
) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
|
|
834
|
+
fe,
|
|
835
835
|
{
|
|
836
836
|
repeatContext: f.context,
|
|
837
837
|
block: f.block,
|
|
838
838
|
registeredComponents: e.registeredComponents,
|
|
839
839
|
linkComponent: e.linkComponent
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
S
|
|
842
842
|
)) }) : /* @__PURE__ */ V(
|
|
843
|
-
|
|
843
|
+
Pt,
|
|
844
844
|
{
|
|
845
845
|
Wrapper: a(),
|
|
846
846
|
block: o(),
|
|
847
847
|
context: e.context,
|
|
848
848
|
children: [
|
|
849
849
|
/* @__PURE__ */ s(
|
|
850
|
-
|
|
850
|
+
me,
|
|
851
851
|
{
|
|
852
852
|
componentRef: c().componentRef,
|
|
853
853
|
componentOptions: c().componentOptions,
|
|
@@ -875,7 +875,7 @@ function H(e) {
|
|
|
875
875
|
) })
|
|
876
876
|
] }) : null });
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Wt(e) {
|
|
879
879
|
const t = $(null);
|
|
880
880
|
function n() {
|
|
881
881
|
var a;
|
|
@@ -918,7 +918,7 @@ function At(e) {
|
|
|
918
918
|
));
|
|
919
919
|
}
|
|
920
920
|
return B(() => {
|
|
921
|
-
}, []), /* @__PURE__ */ V(
|
|
921
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
922
922
|
/* @__PURE__ */ s(
|
|
923
923
|
e.BlocksWrapper,
|
|
924
924
|
{
|
|
@@ -943,9 +943,9 @@ function At(e) {
|
|
|
943
943
|
}
|
|
944
944
|
function F(e) {
|
|
945
945
|
var i, o, r;
|
|
946
|
-
const t =
|
|
946
|
+
const t = de(re), n = de(we);
|
|
947
947
|
return /* @__PURE__ */ s(
|
|
948
|
-
|
|
948
|
+
Wt,
|
|
949
949
|
{
|
|
950
950
|
blocks: e.blocks,
|
|
951
951
|
parent: e.parent,
|
|
@@ -954,7 +954,7 @@ function F(e) {
|
|
|
954
954
|
classNameProp: e.className,
|
|
955
955
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
956
956
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
957
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
957
|
+
children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
958
958
|
H,
|
|
959
959
|
{
|
|
960
960
|
block: a,
|
|
@@ -967,9 +967,9 @@ function F(e) {
|
|
|
967
967
|
}
|
|
968
968
|
);
|
|
969
969
|
}
|
|
970
|
-
const
|
|
971
|
-
function
|
|
972
|
-
var
|
|
970
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
971
|
+
function Ft(e) {
|
|
972
|
+
var S, v;
|
|
973
973
|
function t() {
|
|
974
974
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
975
975
|
}
|
|
@@ -987,8 +987,8 @@ function Nt(e) {
|
|
|
987
987
|
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
988
988
|
}
|
|
989
989
|
function a(p) {
|
|
990
|
-
const b = r(p),
|
|
991
|
-
return `calc(${b}% - ${
|
|
990
|
+
const b = r(p), y = t() * (n().length - 1) * (b / 100);
|
|
991
|
+
return `calc(${b}% - ${y}px)`;
|
|
992
992
|
}
|
|
993
993
|
function l({
|
|
994
994
|
stackedStyle: p,
|
|
@@ -1015,40 +1015,40 @@ function Nt(e) {
|
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
1017
|
function g(p) {
|
|
1018
|
-
const b = p === 0 ? 0 : t(),
|
|
1018
|
+
const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
|
|
1019
1019
|
return {
|
|
1020
1020
|
...{
|
|
1021
1021
|
display: "flex",
|
|
1022
1022
|
flexDirection: "column",
|
|
1023
1023
|
alignItems: "stretch"
|
|
1024
1024
|
},
|
|
1025
|
-
width:
|
|
1025
|
+
width: y,
|
|
1026
1026
|
["marginLeft"]: A,
|
|
1027
1027
|
"--column-width-mobile": d({
|
|
1028
|
-
stackedStyle:
|
|
1029
|
-
desktopStyle:
|
|
1028
|
+
stackedStyle: k,
|
|
1029
|
+
desktopStyle: y
|
|
1030
1030
|
}),
|
|
1031
1031
|
"--column-margin-left-mobile": d({
|
|
1032
|
-
stackedStyle:
|
|
1032
|
+
stackedStyle: w,
|
|
1033
1033
|
desktopStyle: A
|
|
1034
1034
|
}),
|
|
1035
1035
|
"--column-width-tablet": l({
|
|
1036
|
-
stackedStyle:
|
|
1037
|
-
desktopStyle:
|
|
1036
|
+
stackedStyle: k,
|
|
1037
|
+
desktopStyle: y
|
|
1038
1038
|
}),
|
|
1039
1039
|
"--column-margin-left-tablet": l({
|
|
1040
|
-
stackedStyle:
|
|
1040
|
+
stackedStyle: w,
|
|
1041
1041
|
desktopStyle: A
|
|
1042
1042
|
})
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
1045
|
function m(p) {
|
|
1046
|
-
var
|
|
1047
|
-
return
|
|
1048
|
-
((A = (
|
|
1046
|
+
var y, A;
|
|
1047
|
+
return Ne(
|
|
1048
|
+
((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1049
1049
|
)[p].max;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function x() {
|
|
1052
1052
|
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1053
1053
|
return `
|
|
1054
1054
|
@media (max-width: ${m("medium")}px) {
|
|
@@ -1082,26 +1082,26 @@ function Nt(e) {
|
|
|
1082
1082
|
href: p.link
|
|
1083
1083
|
} : {},
|
|
1084
1084
|
[U()]: "builder-column",
|
|
1085
|
-
style:
|
|
1085
|
+
style: Ae(g(b))
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
return /* @__PURE__ */ V(
|
|
1088
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
1089
1089
|
/* @__PURE__ */ V(
|
|
1090
1090
|
"div",
|
|
1091
1091
|
{
|
|
1092
|
-
className:
|
|
1092
|
+
className: Nt((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
|
|
1093
1093
|
style: h(),
|
|
1094
1094
|
children: [
|
|
1095
1095
|
/* @__PURE__ */ s(
|
|
1096
|
-
|
|
1096
|
+
J,
|
|
1097
1097
|
{
|
|
1098
1098
|
id: "builderio-columns",
|
|
1099
|
-
styles:
|
|
1099
|
+
styles: x(),
|
|
1100
1100
|
nonce: e.builderContext.nonce
|
|
1101
1101
|
}
|
|
1102
1102
|
),
|
|
1103
|
-
(
|
|
1104
|
-
|
|
1103
|
+
(v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
|
|
1104
|
+
ae,
|
|
1105
1105
|
{
|
|
1106
1106
|
TagName: o(p),
|
|
1107
1107
|
actionAttributes: {},
|
|
@@ -1132,40 +1132,40 @@ function Nt(e) {
|
|
|
1132
1132
|
}` })
|
|
1133
1133
|
] });
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1135
|
+
function $t(e) {
|
|
1136
1136
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1138
|
+
function he(e) {
|
|
1139
1139
|
return e.replace(/http(s)?:/, "");
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Dt(e = "", t, n) {
|
|
1142
1142
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1143
1143
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1144
1144
|
}
|
|
1145
|
-
function
|
|
1145
|
+
function Lt(e, t) {
|
|
1146
1146
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1147
1147
|
return e;
|
|
1148
1148
|
if (t === "master")
|
|
1149
|
-
return
|
|
1149
|
+
return he(e);
|
|
1150
1150
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1151
1151
|
if (n) {
|
|
1152
1152
|
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1153
|
-
return
|
|
1153
|
+
return he(`${i[0]}_${r}${o}`);
|
|
1154
1154
|
}
|
|
1155
1155
|
return null;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function G(e) {
|
|
1158
1158
|
if (!e)
|
|
1159
1159
|
return e;
|
|
1160
1160
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1161
1161
|
if (e.match(/builder\.io/)) {
|
|
1162
1162
|
let n = e;
|
|
1163
1163
|
const i = Number(e.split("?width=")[1]);
|
|
1164
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1164
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1165
1165
|
}
|
|
1166
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1166
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function Ot(e) {
|
|
1169
1169
|
var o, r, a, l, d, c;
|
|
1170
1170
|
function t() {
|
|
1171
1171
|
var m;
|
|
@@ -1177,10 +1177,10 @@ function Lt(e) {
|
|
|
1177
1177
|
if (!e.noWebp) {
|
|
1178
1178
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1179
1179
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1180
|
-
return console.debug("Removed given srcset"),
|
|
1180
|
+
return console.debug("Removed given srcset"), G(g);
|
|
1181
1181
|
} else if (e.image && !e.srcset)
|
|
1182
|
-
return
|
|
1183
|
-
return
|
|
1182
|
+
return G(g);
|
|
1183
|
+
return G(g);
|
|
1184
1184
|
}
|
|
1185
1185
|
}
|
|
1186
1186
|
function n() {
|
|
@@ -1198,8 +1198,8 @@ function Lt(e) {
|
|
|
1198
1198
|
return e.aspectRatio ? h : void 0;
|
|
1199
1199
|
}
|
|
1200
1200
|
return B(() => {
|
|
1201
|
-
}, []), /* @__PURE__ */ V(
|
|
1202
|
-
/* @__PURE__ */ V(
|
|
1201
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
1202
|
+
/* @__PURE__ */ V(I, { children: [
|
|
1203
1203
|
/* @__PURE__ */ V("picture", { children: [
|
|
1204
1204
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1205
1205
|
/* @__PURE__ */ s(
|
|
@@ -1230,7 +1230,7 @@ function Lt(e) {
|
|
|
1230
1230
|
}
|
|
1231
1231
|
}
|
|
1232
1232
|
) : null,
|
|
1233
|
-
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1233
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
|
|
1234
1234
|
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1235
1235
|
] }),
|
|
1236
1236
|
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
@@ -1252,7 +1252,7 @@ function Lt(e) {
|
|
|
1252
1252
|
}` })
|
|
1253
1253
|
] });
|
|
1254
1254
|
}
|
|
1255
|
-
function
|
|
1255
|
+
function Ut(e) {
|
|
1256
1256
|
return /* @__PURE__ */ s(
|
|
1257
1257
|
"section",
|
|
1258
1258
|
{
|
|
@@ -1273,7 +1273,7 @@ function Ot(e) {
|
|
|
1273
1273
|
}
|
|
1274
1274
|
);
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const Y = {
|
|
1277
1277
|
"@type": "@builder.io/sdk:Element",
|
|
1278
1278
|
layerName: "Accordion item title",
|
|
1279
1279
|
responsiveStyles: {
|
|
@@ -1302,7 +1302,7 @@ const G = {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
1304
|
}]
|
|
1305
|
-
},
|
|
1305
|
+
}, Q = {
|
|
1306
1306
|
"@type": "@builder.io/sdk:Element",
|
|
1307
1307
|
layerName: "Accordion item detail",
|
|
1308
1308
|
responsiveStyles: {
|
|
@@ -1333,7 +1333,7 @@ const G = {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
}]
|
|
1336
|
-
},
|
|
1336
|
+
}, Ht = {
|
|
1337
1337
|
name: "Builder:Accordion",
|
|
1338
1338
|
canHaveChildren: !0,
|
|
1339
1339
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1350,19 +1350,19 @@ const G = {
|
|
|
1350
1350
|
name: "title",
|
|
1351
1351
|
type: "uiBlocks",
|
|
1352
1352
|
hideFromUI: !0,
|
|
1353
|
-
defaultValue: [
|
|
1353
|
+
defaultValue: [Y]
|
|
1354
1354
|
}, {
|
|
1355
1355
|
name: "detail",
|
|
1356
1356
|
type: "uiBlocks",
|
|
1357
1357
|
hideFromUI: !0,
|
|
1358
|
-
defaultValue: [
|
|
1358
|
+
defaultValue: [Q]
|
|
1359
1359
|
}],
|
|
1360
1360
|
defaultValue: [{
|
|
1361
|
-
title: [
|
|
1362
|
-
detail: [
|
|
1361
|
+
title: [Y],
|
|
1362
|
+
detail: [Q]
|
|
1363
1363
|
}, {
|
|
1364
|
-
title: [
|
|
1365
|
-
detail: [
|
|
1364
|
+
title: [Y],
|
|
1365
|
+
detail: [Q]
|
|
1366
1366
|
}],
|
|
1367
1367
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1368
1368
|
}, {
|
|
@@ -1397,10 +1397,10 @@ const G = {
|
|
|
1397
1397
|
builderComponents: !0,
|
|
1398
1398
|
builderLinkComponent: !0
|
|
1399
1399
|
}
|
|
1400
|
-
},
|
|
1401
|
-
function
|
|
1400
|
+
}, ge = (e) => e.toString();
|
|
1401
|
+
function jt(e) {
|
|
1402
1402
|
var g;
|
|
1403
|
-
const [t, n] =
|
|
1403
|
+
const [t, n] = R(() => []);
|
|
1404
1404
|
function i() {
|
|
1405
1405
|
return !!(e.grid || e.oneAtATime);
|
|
1406
1406
|
}
|
|
@@ -1417,7 +1417,7 @@ function Ht(e) {
|
|
|
1417
1417
|
};
|
|
1418
1418
|
}
|
|
1419
1419
|
function r() {
|
|
1420
|
-
const
|
|
1420
|
+
const x = {
|
|
1421
1421
|
...{
|
|
1422
1422
|
display: "flex",
|
|
1423
1423
|
flexDirection: "column"
|
|
@@ -1426,7 +1426,7 @@ function Ht(e) {
|
|
|
1426
1426
|
cursor: "pointer"
|
|
1427
1427
|
};
|
|
1428
1428
|
return Object.fromEntries(
|
|
1429
|
-
Object.entries(
|
|
1429
|
+
Object.entries(x).filter(([f, S]) => S !== void 0)
|
|
1430
1430
|
);
|
|
1431
1431
|
}
|
|
1432
1432
|
function a(m) {
|
|
@@ -1439,22 +1439,22 @@ function Ht(e) {
|
|
|
1439
1439
|
let m = null;
|
|
1440
1440
|
if (e.grid && t.length && document) {
|
|
1441
1441
|
const f = t[0];
|
|
1442
|
-
let
|
|
1442
|
+
let v = document.querySelector(
|
|
1443
1443
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1444
1444
|
);
|
|
1445
|
-
if (m = f,
|
|
1446
|
-
let p =
|
|
1447
|
-
for (;
|
|
1448
|
-
if (
|
|
1449
|
-
if (
|
|
1445
|
+
if (m = f, v) {
|
|
1446
|
+
let p = v.getBoundingClientRect();
|
|
1447
|
+
for (; v = v && v.nextElementSibling; )
|
|
1448
|
+
if (v) {
|
|
1449
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1450
1450
|
continue;
|
|
1451
|
-
const b =
|
|
1451
|
+
const b = v.getBoundingClientRect();
|
|
1452
1452
|
if (b.left > p.left) {
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1453
|
+
const y = parseInt(
|
|
1454
|
+
v.getAttribute("data-index") || "",
|
|
1455
1455
|
10
|
|
1456
1456
|
);
|
|
1457
|
-
isNaN(
|
|
1457
|
+
isNaN(y) || (p = b, m = y);
|
|
1458
1458
|
} else
|
|
1459
1459
|
break;
|
|
1460
1460
|
}
|
|
@@ -1470,31 +1470,31 @@ function Ht(e) {
|
|
|
1470
1470
|
}
|
|
1471
1471
|
};
|
|
1472
1472
|
return Object.fromEntries(
|
|
1473
|
-
Object.entries(m).filter(([
|
|
1473
|
+
Object.entries(m).filter(([x, f]) => f !== void 0)
|
|
1474
1474
|
);
|
|
1475
1475
|
}
|
|
1476
1476
|
function h(m) {
|
|
1477
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1477
|
+
t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
|
|
1478
1478
|
}
|
|
1479
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m,
|
|
1479
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
|
|
1480
1480
|
/* @__PURE__ */ s(
|
|
1481
1481
|
"div",
|
|
1482
1482
|
{
|
|
1483
|
-
className: a(
|
|
1483
|
+
className: a(x),
|
|
1484
1484
|
style: {
|
|
1485
1485
|
...r(),
|
|
1486
1486
|
...e.grid && {
|
|
1487
1487
|
width: e.gridRowWidth,
|
|
1488
|
-
order: d() !== null ?
|
|
1488
|
+
order: d() !== null ? ge(x) : ge(x + 1)
|
|
1489
1489
|
}
|
|
1490
1490
|
},
|
|
1491
|
-
"data-index":
|
|
1492
|
-
onClick: (f) => h(
|
|
1491
|
+
"data-index": x,
|
|
1492
|
+
onClick: (f) => h(x),
|
|
1493
1493
|
children: /* @__PURE__ */ s(
|
|
1494
1494
|
F,
|
|
1495
1495
|
{
|
|
1496
1496
|
blocks: m.title,
|
|
1497
|
-
path: `items.${
|
|
1497
|
+
path: `items.${x}.title`,
|
|
1498
1498
|
parent: e.builderBlock.id,
|
|
1499
1499
|
context: e.builderContext,
|
|
1500
1500
|
registeredComponents: e.builderComponents,
|
|
@@ -1503,16 +1503,16 @@ function Ht(e) {
|
|
|
1503
1503
|
)
|
|
1504
1504
|
}
|
|
1505
1505
|
),
|
|
1506
|
-
t.includes(
|
|
1506
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1507
1507
|
"div",
|
|
1508
1508
|
{
|
|
1509
|
-
className: l(
|
|
1509
|
+
className: l(x),
|
|
1510
1510
|
style: c(),
|
|
1511
1511
|
children: /* @__PURE__ */ s(
|
|
1512
1512
|
F,
|
|
1513
1513
|
{
|
|
1514
1514
|
blocks: m.detail,
|
|
1515
|
-
path: `items.${
|
|
1515
|
+
path: `items.${x}.detail`,
|
|
1516
1516
|
parent: e.builderBlock.id,
|
|
1517
1517
|
context: e.builderContext,
|
|
1518
1518
|
registeredComponents: e.builderComponents,
|
|
@@ -1523,7 +1523,7 @@ function Ht(e) {
|
|
|
1523
1523
|
) : null
|
|
1524
1524
|
] })) });
|
|
1525
1525
|
}
|
|
1526
|
-
const
|
|
1526
|
+
const Mt = {
|
|
1527
1527
|
name: "Core:Button",
|
|
1528
1528
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1529
1529
|
defaultStyles: {
|
|
@@ -1559,7 +1559,7 @@ const jt = {
|
|
|
1559
1559
|
shouldReceiveBuilderProps: {
|
|
1560
1560
|
builderLinkComponent: !0
|
|
1561
1561
|
}
|
|
1562
|
-
},
|
|
1562
|
+
}, _t = {
|
|
1563
1563
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1564
1564
|
name: "Columns",
|
|
1565
1565
|
isRSC: !0,
|
|
@@ -1766,13 +1766,13 @@ const jt = {
|
|
|
1766
1766
|
builderComponents: !0,
|
|
1767
1767
|
builderLinkComponent: !0
|
|
1768
1768
|
}
|
|
1769
|
-
},
|
|
1769
|
+
}, qt = {
|
|
1770
1770
|
name: "Fragment",
|
|
1771
1771
|
static: !0,
|
|
1772
1772
|
hidden: !0,
|
|
1773
1773
|
canHaveChildren: !0,
|
|
1774
1774
|
noWrap: !0
|
|
1775
|
-
},
|
|
1775
|
+
}, Kt = {
|
|
1776
1776
|
name: "Image",
|
|
1777
1777
|
static: !0,
|
|
1778
1778
|
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",
|
|
@@ -1880,7 +1880,7 @@ const jt = {
|
|
|
1880
1880
|
shouldReceiveBuilderProps: {
|
|
1881
1881
|
builderBlock: !0
|
|
1882
1882
|
}
|
|
1883
|
-
},
|
|
1883
|
+
}, zt = {
|
|
1884
1884
|
name: "Core:Section",
|
|
1885
1885
|
static: !0,
|
|
1886
1886
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1919,7 +1919,7 @@ const jt = {
|
|
|
1919
1919
|
}
|
|
1920
1920
|
}
|
|
1921
1921
|
}]
|
|
1922
|
-
},
|
|
1922
|
+
}, Jt = {
|
|
1923
1923
|
name: "Slot",
|
|
1924
1924
|
isRSC: !0,
|
|
1925
1925
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1937,7 +1937,7 @@ const jt = {
|
|
|
1937
1937
|
builderComponents: !0
|
|
1938
1938
|
}
|
|
1939
1939
|
};
|
|
1940
|
-
function
|
|
1940
|
+
function Gt(e) {
|
|
1941
1941
|
var t, n, i;
|
|
1942
1942
|
return /* @__PURE__ */ s(
|
|
1943
1943
|
"div",
|
|
@@ -1961,7 +1961,7 @@ function Jt(e) {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
);
|
|
1963
1963
|
}
|
|
1964
|
-
const
|
|
1964
|
+
const Yt = {
|
|
1965
1965
|
name: "Symbol",
|
|
1966
1966
|
noWrap: !0,
|
|
1967
1967
|
static: !0,
|
|
@@ -2000,7 +2000,7 @@ const Gt = {
|
|
|
2000
2000
|
builderComponents: !0,
|
|
2001
2001
|
builderLinkComponent: !0
|
|
2002
2002
|
}
|
|
2003
|
-
},
|
|
2003
|
+
}, X = {
|
|
2004
2004
|
"@type": "@builder.io/sdk:Element",
|
|
2005
2005
|
responsiveStyles: {
|
|
2006
2006
|
large: {
|
|
@@ -2022,7 +2022,7 @@ const Gt = {
|
|
|
2022
2022
|
text: "New tab"
|
|
2023
2023
|
}
|
|
2024
2024
|
}
|
|
2025
|
-
},
|
|
2025
|
+
}, Z = {
|
|
2026
2026
|
"@type": "@builder.io/sdk:Element",
|
|
2027
2027
|
responsiveStyles: {
|
|
2028
2028
|
large: {
|
|
@@ -2038,7 +2038,7 @@ const Gt = {
|
|
|
2038
2038
|
text: "New tab content "
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
|
-
},
|
|
2041
|
+
}, Qt = {
|
|
2042
2042
|
name: "Builder: Tabs",
|
|
2043
2043
|
inputs: [{
|
|
2044
2044
|
name: "tabs",
|
|
@@ -2048,16 +2048,16 @@ const Gt = {
|
|
|
2048
2048
|
name: "label",
|
|
2049
2049
|
type: "uiBlocks",
|
|
2050
2050
|
hideFromUI: !0,
|
|
2051
|
-
defaultValue: [
|
|
2051
|
+
defaultValue: [X]
|
|
2052
2052
|
}, {
|
|
2053
2053
|
name: "content",
|
|
2054
2054
|
type: "uiBlocks",
|
|
2055
2055
|
hideFromUI: !0,
|
|
2056
|
-
defaultValue: [
|
|
2056
|
+
defaultValue: [Z]
|
|
2057
2057
|
}],
|
|
2058
2058
|
defaultValue: [{
|
|
2059
2059
|
label: [{
|
|
2060
|
-
...
|
|
2060
|
+
...X,
|
|
2061
2061
|
component: {
|
|
2062
2062
|
name: "Text",
|
|
2063
2063
|
options: {
|
|
@@ -2066,7 +2066,7 @@ const Gt = {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
}],
|
|
2068
2068
|
content: [{
|
|
2069
|
-
...
|
|
2069
|
+
...Z,
|
|
2070
2070
|
component: {
|
|
2071
2071
|
name: "Text",
|
|
2072
2072
|
options: {
|
|
@@ -2076,7 +2076,7 @@ const Gt = {
|
|
|
2076
2076
|
}]
|
|
2077
2077
|
}, {
|
|
2078
2078
|
label: [{
|
|
2079
|
-
...
|
|
2079
|
+
...X,
|
|
2080
2080
|
component: {
|
|
2081
2081
|
name: "Text",
|
|
2082
2082
|
options: {
|
|
@@ -2085,7 +2085,7 @@ const Gt = {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
}],
|
|
2087
2087
|
content: [{
|
|
2088
|
-
...
|
|
2088
|
+
...Z,
|
|
2089
2089
|
component: {
|
|
2090
2090
|
name: "Text",
|
|
2091
2091
|
options: {
|
|
@@ -2142,9 +2142,9 @@ const Gt = {
|
|
|
2142
2142
|
builderLinkComponent: !0
|
|
2143
2143
|
}
|
|
2144
2144
|
};
|
|
2145
|
-
function
|
|
2145
|
+
function Xt(e) {
|
|
2146
2146
|
var r;
|
|
2147
|
-
const [t, n] =
|
|
2147
|
+
const [t, n] = R(
|
|
2148
2148
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2149
2149
|
);
|
|
2150
2150
|
function i(a) {
|
|
@@ -2201,7 +2201,7 @@ function Qt(e) {
|
|
|
2201
2201
|
) }) : null
|
|
2202
2202
|
] });
|
|
2203
2203
|
}
|
|
2204
|
-
const
|
|
2204
|
+
const Zt = {
|
|
2205
2205
|
shouldReceiveBuilderProps: {
|
|
2206
2206
|
builderBlock: !1,
|
|
2207
2207
|
builderContext: !0
|
|
@@ -2224,7 +2224,7 @@ const Xt = {
|
|
|
2224
2224
|
textAlign: "center"
|
|
2225
2225
|
}
|
|
2226
2226
|
};
|
|
2227
|
-
function
|
|
2227
|
+
function en(e) {
|
|
2228
2228
|
function t() {
|
|
2229
2229
|
var l;
|
|
2230
2230
|
const n = e.builderContext, {
|
|
@@ -2255,7 +2255,7 @@ function Zt(e) {
|
|
|
2255
2255
|
}
|
|
2256
2256
|
);
|
|
2257
2257
|
}
|
|
2258
|
-
const
|
|
2258
|
+
const tn = {
|
|
2259
2259
|
name: "Custom Code",
|
|
2260
2260
|
static: !0,
|
|
2261
2261
|
requiredPermissions: ["editCode"],
|
|
@@ -2278,8 +2278,8 @@ const en = {
|
|
|
2278
2278
|
advanced: !0
|
|
2279
2279
|
}]
|
|
2280
2280
|
};
|
|
2281
|
-
function
|
|
2282
|
-
const t = $(null), [n, i] =
|
|
2281
|
+
function nn(e) {
|
|
2282
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
|
|
2283
2283
|
return B(() => {
|
|
2284
2284
|
var l;
|
|
2285
2285
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -2316,7 +2316,7 @@ function tn(e) {
|
|
|
2316
2316
|
}
|
|
2317
2317
|
);
|
|
2318
2318
|
}
|
|
2319
|
-
const
|
|
2319
|
+
const on = {
|
|
2320
2320
|
name: "Embed",
|
|
2321
2321
|
static: !0,
|
|
2322
2322
|
inputs: [{
|
|
@@ -2331,9 +2331,9 @@ const nn = {
|
|
|
2331
2331
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2332
2332
|
hideFromUI: !0
|
|
2333
2333
|
}]
|
|
2334
|
-
},
|
|
2335
|
-
function
|
|
2336
|
-
const t = $(null), [n, i] =
|
|
2334
|
+
}, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
|
|
2335
|
+
function ln(e) {
|
|
2336
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
|
|
2337
2337
|
function d() {
|
|
2338
2338
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2339
2339
|
return;
|
|
@@ -2344,7 +2344,7 @@ function rn(e) {
|
|
|
2344
2344
|
n.push(g.src);
|
|
2345
2345
|
const m = document.createElement("script");
|
|
2346
2346
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2347
|
-
} else if (
|
|
2347
|
+
} else if (rn(g) && !o.includes(g.innerText))
|
|
2348
2348
|
try {
|
|
2349
2349
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2350
2350
|
} catch (m) {
|
|
@@ -2363,7 +2363,7 @@ function rn(e) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
);
|
|
2365
2365
|
}
|
|
2366
|
-
const
|
|
2366
|
+
const sn = {
|
|
2367
2367
|
name: "Form:Form",
|
|
2368
2368
|
// editableTags: ['builder-form-error']
|
|
2369
2369
|
defaults: {
|
|
@@ -2600,120 +2600,117 @@ const ln = {
|
|
|
2600
2600
|
builderComponents: !0,
|
|
2601
2601
|
builderLinkComponent: !0
|
|
2602
2602
|
}
|
|
2603
|
-
},
|
|
2603
|
+
}, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
|
|
2604
2604
|
const e = process.env.NODE_ENV || "production";
|
|
2605
|
-
return
|
|
2605
|
+
return cn.includes(e) ? e : "production";
|
|
2606
2606
|
};
|
|
2607
|
-
function
|
|
2607
|
+
function un(e) {
|
|
2608
2608
|
var g, m;
|
|
2609
|
-
const t = $(null), [n, i] =
|
|
2610
|
-
function d(
|
|
2611
|
-
var
|
|
2609
|
+
const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
|
|
2610
|
+
function d(x) {
|
|
2611
|
+
var S, v;
|
|
2612
2612
|
const f = {
|
|
2613
2613
|
...e.builderContext.rootState,
|
|
2614
|
-
...
|
|
2614
|
+
...x
|
|
2615
2615
|
};
|
|
2616
|
-
e.builderContext.rootSetState ? (
|
|
2616
|
+
e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
|
|
2617
2617
|
}
|
|
2618
2618
|
function c() {
|
|
2619
2619
|
return N() && e.previewState || n;
|
|
2620
2620
|
}
|
|
2621
|
-
function h(
|
|
2622
|
-
var
|
|
2621
|
+
function h(x) {
|
|
2622
|
+
var S;
|
|
2623
2623
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2624
2624
|
if (e.sendSubmissionsTo === "zapier")
|
|
2625
|
-
|
|
2625
|
+
x.preventDefault();
|
|
2626
2626
|
else if (f) {
|
|
2627
2627
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2628
|
-
|
|
2628
|
+
x.preventDefault();
|
|
2629
2629
|
return;
|
|
2630
2630
|
}
|
|
2631
|
-
|
|
2632
|
-
const
|
|
2631
|
+
x.preventDefault();
|
|
2632
|
+
const v = x.currentTarget || x.target, p = e.customHeaders || {};
|
|
2633
2633
|
let b;
|
|
2634
|
-
const
|
|
2635
|
-
let
|
|
2636
|
-
const
|
|
2634
|
+
const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2635
|
+
let C;
|
|
2636
|
+
const W = u.name;
|
|
2637
2637
|
if (u instanceof HTMLInputElement)
|
|
2638
2638
|
if (u.type === "radio") {
|
|
2639
2639
|
if (u.checked)
|
|
2640
|
-
return
|
|
2641
|
-
key:
|
|
2642
|
-
value:
|
|
2640
|
+
return C = u.name, {
|
|
2641
|
+
key: W,
|
|
2642
|
+
value: C
|
|
2643
2643
|
};
|
|
2644
2644
|
} else if (u.type === "checkbox")
|
|
2645
|
-
|
|
2645
|
+
C = u.checked;
|
|
2646
2646
|
else if (u.type === "number" || u.type === "range") {
|
|
2647
|
-
const
|
|
2648
|
-
isNaN(
|
|
2647
|
+
const E = u.valueAsNumber;
|
|
2648
|
+
isNaN(E) || (C = E);
|
|
2649
2649
|
} else
|
|
2650
|
-
u.type === "file" ?
|
|
2650
|
+
u.type === "file" ? C = u.files : C = u.value;
|
|
2651
2651
|
else
|
|
2652
|
-
|
|
2652
|
+
C = u.value;
|
|
2653
2653
|
return {
|
|
2654
|
-
key:
|
|
2655
|
-
value:
|
|
2654
|
+
key: W,
|
|
2655
|
+
value: C
|
|
2656
2656
|
};
|
|
2657
2657
|
});
|
|
2658
|
-
let
|
|
2659
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2660
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2661
|
-
}),
|
|
2662
|
-
b =
|
|
2658
|
+
let k = e.contentType;
|
|
2659
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2660
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2661
|
+
}), k !== "application/json")
|
|
2662
|
+
b = y;
|
|
2663
2663
|
else {
|
|
2664
2664
|
const u = {};
|
|
2665
|
-
Array.from(A).forEach(({ value:
|
|
2666
|
-
|
|
2665
|
+
Array.from(A).forEach(({ value: C, key: W }) => {
|
|
2666
|
+
Ie(u, W, C);
|
|
2667
2667
|
}), b = JSON.stringify(u);
|
|
2668
2668
|
}
|
|
2669
|
-
|
|
2670
|
-
const
|
|
2671
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2669
|
+
k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
|
|
2670
|
+
const w = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2671
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2672
2672
|
return;
|
|
2673
2673
|
i("sending");
|
|
2674
|
-
const P = `${
|
|
2674
|
+
const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2675
2675
|
e.sendSubmissionsToEmail || ""
|
|
2676
|
-
)}&name=${encodeURIComponent(e.name || "")}
|
|
2677
|
-
fetch(
|
|
2678
|
-
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2679
|
-
{ body: b, headers: p, method: e.method || "post" }
|
|
2680
|
-
).then(
|
|
2676
|
+
)}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
|
|
2677
|
+
Se(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
|
|
2681
2678
|
async (u) => {
|
|
2682
|
-
let
|
|
2683
|
-
const
|
|
2684
|
-
if (
|
|
2685
|
-
let
|
|
2686
|
-
|
|
2679
|
+
let C;
|
|
2680
|
+
const W = u.headers.get("content-type");
|
|
2681
|
+
if (W && W.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2682
|
+
let E = Ee(C, e.errorMessagePath);
|
|
2683
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
2687
2684
|
}
|
|
2688
|
-
if (r(
|
|
2689
|
-
const
|
|
2690
|
-
detail: { res: u, body:
|
|
2685
|
+
if (r(C), i(u.ok ? "success" : "error"), u.ok) {
|
|
2686
|
+
const E = new CustomEvent("submit:success", {
|
|
2687
|
+
detail: { res: u, body: C }
|
|
2691
2688
|
});
|
|
2692
2689
|
if (t.current) {
|
|
2693
|
-
if (t.current.dispatchEvent(
|
|
2690
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
2694
2691
|
return;
|
|
2695
2692
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2696
2693
|
}
|
|
2697
2694
|
if (e.successUrl)
|
|
2698
2695
|
if (t.current) {
|
|
2699
|
-
const
|
|
2696
|
+
const j = new CustomEvent("route", {
|
|
2700
2697
|
detail: { url: e.successUrl }
|
|
2701
2698
|
});
|
|
2702
|
-
t.current.dispatchEvent(
|
|
2699
|
+
t.current.dispatchEvent(j), j.defaultPrevented || (location.href = e.successUrl);
|
|
2703
2700
|
} else
|
|
2704
2701
|
location.href = e.successUrl;
|
|
2705
2702
|
}
|
|
2706
2703
|
},
|
|
2707
2704
|
(u) => {
|
|
2708
|
-
const
|
|
2705
|
+
const C = new CustomEvent("submit:error", {
|
|
2709
2706
|
detail: { error: u }
|
|
2710
2707
|
});
|
|
2711
|
-
t.current && (t.current.dispatchEvent(
|
|
2708
|
+
t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
|
|
2712
2709
|
}
|
|
2713
2710
|
);
|
|
2714
2711
|
}
|
|
2715
2712
|
}
|
|
2716
|
-
return /* @__PURE__ */ V(
|
|
2713
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
2717
2714
|
" ",
|
|
2718
2715
|
/* @__PURE__ */ V(
|
|
2719
2716
|
"form",
|
|
@@ -2723,13 +2720,13 @@ function dn(e) {
|
|
|
2723
2720
|
action: !e.sendWithJs && e.action,
|
|
2724
2721
|
method: e.method,
|
|
2725
2722
|
name: e.name,
|
|
2726
|
-
onSubmit: (
|
|
2723
|
+
onSubmit: (x) => h(x),
|
|
2727
2724
|
...e.attributes,
|
|
2728
2725
|
children: [
|
|
2729
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2726
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
|
|
2730
2727
|
H,
|
|
2731
2728
|
{
|
|
2732
|
-
block:
|
|
2729
|
+
block: x,
|
|
2733
2730
|
context: e.builderContext,
|
|
2734
2731
|
registeredComponents: e.builderComponents,
|
|
2735
2732
|
linkComponent: e.builderLinkComponent
|
|
@@ -2752,7 +2749,7 @@ function dn(e) {
|
|
|
2752
2749
|
context: e.builderContext
|
|
2753
2750
|
}
|
|
2754
2751
|
) : null,
|
|
2755
|
-
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
2752
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
|
|
2756
2753
|
c() === "success" ? /* @__PURE__ */ s(
|
|
2757
2754
|
F,
|
|
2758
2755
|
{
|
|
@@ -2765,11 +2762,11 @@ function dn(e) {
|
|
|
2765
2762
|
}
|
|
2766
2763
|
),
|
|
2767
2764
|
" ",
|
|
2768
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
2765
|
+
/* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2769
2766
|
" "
|
|
2770
2767
|
] });
|
|
2771
2768
|
}
|
|
2772
|
-
const
|
|
2769
|
+
const mn = {
|
|
2773
2770
|
name: "Form:Input",
|
|
2774
2771
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2775
2772
|
inputs: [
|
|
@@ -2821,8 +2818,8 @@ const un = {
|
|
|
2821
2818
|
borderColor: "#ccc"
|
|
2822
2819
|
}
|
|
2823
2820
|
};
|
|
2824
|
-
function
|
|
2825
|
-
return /* @__PURE__ */
|
|
2821
|
+
function fn(e) {
|
|
2822
|
+
return /* @__PURE__ */ Te(
|
|
2826
2823
|
"input",
|
|
2827
2824
|
{
|
|
2828
2825
|
...e.attributes,
|
|
@@ -2836,7 +2833,7 @@ function mn(e) {
|
|
|
2836
2833
|
}
|
|
2837
2834
|
);
|
|
2838
2835
|
}
|
|
2839
|
-
const
|
|
2836
|
+
const hn = {
|
|
2840
2837
|
name: "Form:Select",
|
|
2841
2838
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2842
2839
|
defaultStyles: {
|
|
@@ -2879,9 +2876,9 @@ const fn = {
|
|
|
2879
2876
|
static: !0,
|
|
2880
2877
|
noWrap: !0
|
|
2881
2878
|
};
|
|
2882
|
-
function
|
|
2879
|
+
function gn(e) {
|
|
2883
2880
|
var t;
|
|
2884
|
-
return /* @__PURE__ */
|
|
2881
|
+
return /* @__PURE__ */ Te(
|
|
2885
2882
|
"select",
|
|
2886
2883
|
{
|
|
2887
2884
|
...e.attributes,
|
|
@@ -2894,7 +2891,7 @@ function hn(e) {
|
|
|
2894
2891
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2895
2892
|
);
|
|
2896
2893
|
}
|
|
2897
|
-
const
|
|
2894
|
+
const bn = {
|
|
2898
2895
|
name: "Form:SubmitButton",
|
|
2899
2896
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2900
2897
|
defaultStyles: {
|
|
@@ -2920,10 +2917,10 @@ const gn = {
|
|
|
2920
2917
|
// TODO: defaultChildren
|
|
2921
2918
|
// canHaveChildren: true,
|
|
2922
2919
|
};
|
|
2923
|
-
function
|
|
2920
|
+
function pn(e) {
|
|
2924
2921
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2925
2922
|
}
|
|
2926
|
-
const
|
|
2923
|
+
const yn = {
|
|
2927
2924
|
name: "Form:TextArea",
|
|
2928
2925
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2929
2926
|
inputs: [{
|
|
@@ -2960,7 +2957,7 @@ const pn = {
|
|
|
2960
2957
|
static: !0,
|
|
2961
2958
|
noWrap: !0
|
|
2962
2959
|
};
|
|
2963
|
-
function
|
|
2960
|
+
function xn(e) {
|
|
2964
2961
|
return /* @__PURE__ */ s(
|
|
2965
2962
|
"textarea",
|
|
2966
2963
|
{
|
|
@@ -2973,7 +2970,7 @@ function yn(e) {
|
|
|
2973
2970
|
}
|
|
2974
2971
|
);
|
|
2975
2972
|
}
|
|
2976
|
-
const
|
|
2973
|
+
const vn = {
|
|
2977
2974
|
// friendlyName?
|
|
2978
2975
|
name: "Raw:Img",
|
|
2979
2976
|
hideFromInsertMenu: !0,
|
|
@@ -2988,7 +2985,7 @@ const xn = {
|
|
|
2988
2985
|
noWrap: !0,
|
|
2989
2986
|
static: !0
|
|
2990
2987
|
};
|
|
2991
|
-
function
|
|
2988
|
+
function Sn(e) {
|
|
2992
2989
|
return /* @__PURE__ */ s(
|
|
2993
2990
|
"img",
|
|
2994
2991
|
{
|
|
@@ -3003,7 +3000,7 @@ function vn(e) {
|
|
|
3003
3000
|
N() && e.imgSrc || "default-key"
|
|
3004
3001
|
);
|
|
3005
3002
|
}
|
|
3006
|
-
const
|
|
3003
|
+
const kn = {
|
|
3007
3004
|
name: "Video",
|
|
3008
3005
|
canHaveChildren: !0,
|
|
3009
3006
|
defaultStyles: {
|
|
@@ -3088,7 +3085,7 @@ const Sn = {
|
|
|
3088
3085
|
builderBlock: !0
|
|
3089
3086
|
}
|
|
3090
3087
|
};
|
|
3091
|
-
function
|
|
3088
|
+
function Cn(e) {
|
|
3092
3089
|
var i, o, r, a, l, d, c;
|
|
3093
3090
|
function t() {
|
|
3094
3091
|
return {
|
|
@@ -3189,64 +3186,64 @@ function kn(e) {
|
|
|
3189
3186
|
}
|
|
3190
3187
|
);
|
|
3191
3188
|
}
|
|
3192
|
-
const
|
|
3193
|
-
component:
|
|
3194
|
-
...
|
|
3195
|
-
}, {
|
|
3196
|
-
component: rn,
|
|
3197
|
-
...nn
|
|
3189
|
+
const Tn = () => [{
|
|
3190
|
+
component: nn,
|
|
3191
|
+
...tn
|
|
3198
3192
|
}, {
|
|
3199
|
-
component:
|
|
3200
|
-
...
|
|
3193
|
+
component: ln,
|
|
3194
|
+
...on
|
|
3201
3195
|
}, {
|
|
3202
|
-
component:
|
|
3203
|
-
...
|
|
3196
|
+
component: un,
|
|
3197
|
+
...sn
|
|
3204
3198
|
}, {
|
|
3205
|
-
component:
|
|
3206
|
-
...
|
|
3199
|
+
component: fn,
|
|
3200
|
+
...mn
|
|
3207
3201
|
}, {
|
|
3208
|
-
component:
|
|
3209
|
-
...
|
|
3202
|
+
component: pn,
|
|
3203
|
+
...bn
|
|
3210
3204
|
}, {
|
|
3211
|
-
component:
|
|
3212
|
-
...
|
|
3205
|
+
component: gn,
|
|
3206
|
+
...hn
|
|
3213
3207
|
}, {
|
|
3214
|
-
component:
|
|
3215
|
-
...
|
|
3208
|
+
component: xn,
|
|
3209
|
+
...yn
|
|
3216
3210
|
}, {
|
|
3217
|
-
component:
|
|
3218
|
-
...
|
|
3219
|
-
}], ge = () => [{
|
|
3220
|
-
component: Qe,
|
|
3221
|
-
...jt
|
|
3211
|
+
component: Sn,
|
|
3212
|
+
...vn
|
|
3222
3213
|
}, {
|
|
3223
|
-
component:
|
|
3214
|
+
component: Cn,
|
|
3215
|
+
...kn
|
|
3216
|
+
}], be = () => [{
|
|
3217
|
+
component: Xe,
|
|
3224
3218
|
...Mt
|
|
3225
3219
|
}, {
|
|
3226
3220
|
component: Ft,
|
|
3227
3221
|
..._t
|
|
3228
3222
|
}, {
|
|
3229
|
-
component:
|
|
3223
|
+
component: $t,
|
|
3230
3224
|
...qt
|
|
3231
3225
|
}, {
|
|
3232
3226
|
component: Ot,
|
|
3233
3227
|
...Kt
|
|
3234
3228
|
}, {
|
|
3235
|
-
component:
|
|
3229
|
+
component: Ut,
|
|
3236
3230
|
...zt
|
|
3237
3231
|
}, {
|
|
3238
|
-
component:
|
|
3239
|
-
...
|
|
3232
|
+
component: Gt,
|
|
3233
|
+
...Jt
|
|
3240
3234
|
}, {
|
|
3241
|
-
component:
|
|
3242
|
-
...Xt
|
|
3243
|
-
}, {
|
|
3244
|
-
component: Qt,
|
|
3235
|
+
component: zn,
|
|
3245
3236
|
...Yt
|
|
3246
3237
|
}, {
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3249
|
-
},
|
|
3238
|
+
component: en,
|
|
3239
|
+
...Zt
|
|
3240
|
+
}, {
|
|
3241
|
+
component: Xt,
|
|
3242
|
+
...Qt
|
|
3243
|
+
}, {
|
|
3244
|
+
component: jt,
|
|
3245
|
+
...Ht
|
|
3246
|
+
}, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3250
3247
|
function getAndSetVariantId() {
|
|
3251
3248
|
function setCookie(name, value, days) {
|
|
3252
3249
|
let expires = '';
|
|
@@ -3302,7 +3299,7 @@ const Cn = () => [{
|
|
|
3302
3299
|
}).join('');
|
|
3303
3300
|
styleEl.innerHTML = newStyleStr;
|
|
3304
3301
|
}
|
|
3305
|
-
}`,
|
|
3302
|
+
}`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3306
3303
|
if (!navigator.cookieEnabled) {
|
|
3307
3304
|
return;
|
|
3308
3305
|
}
|
|
@@ -3336,26 +3333,26 @@ const Cn = () => [{
|
|
|
3336
3333
|
thisScriptEl?.remove();
|
|
3337
3334
|
}
|
|
3338
3335
|
return;
|
|
3339
|
-
}`,
|
|
3336
|
+
}`, $e = "builderIoAbTest", De = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3340
3337
|
...t,
|
|
3341
3338
|
testVariationId: t.id,
|
|
3342
3339
|
id: e == null ? void 0 : e.id
|
|
3343
|
-
})),
|
|
3340
|
+
})), En = ({
|
|
3344
3341
|
canTrack: e,
|
|
3345
3342
|
content: t
|
|
3346
|
-
}) => !(!(
|
|
3347
|
-
window.${
|
|
3348
|
-
window.${
|
|
3349
|
-
`,
|
|
3350
|
-
window.${
|
|
3351
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3352
|
-
)`,
|
|
3343
|
+
}) => !(!(_(t).length > 0) || !e || q()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
|
|
3344
|
+
window.${$e} = ${In}
|
|
3345
|
+
window.${De} = ${wn}
|
|
3346
|
+
`, Bn = (e, t) => `
|
|
3347
|
+
window.${$e}(
|
|
3348
|
+
"${t}",${JSON.stringify(e)}, ${Le}
|
|
3349
|
+
)`, Vn = ({
|
|
3353
3350
|
contentId: e,
|
|
3354
3351
|
variationId: t
|
|
3355
|
-
}) => `window.${
|
|
3356
|
-
"${t}", "${e}", ${
|
|
3352
|
+
}) => `window.${De}(
|
|
3353
|
+
"${t}", "${e}", ${Le}
|
|
3357
3354
|
)`;
|
|
3358
|
-
function
|
|
3355
|
+
function ne(e) {
|
|
3359
3356
|
return /* @__PURE__ */ s(
|
|
3360
3357
|
"script",
|
|
3361
3358
|
{
|
|
@@ -3365,10 +3362,10 @@ function te(e) {
|
|
|
3365
3362
|
}
|
|
3366
3363
|
);
|
|
3367
3364
|
}
|
|
3368
|
-
function
|
|
3365
|
+
function pe(e) {
|
|
3369
3366
|
return Math.round(e * 1e3) / 1e3;
|
|
3370
3367
|
}
|
|
3371
|
-
const
|
|
3368
|
+
const An = (e, t, n = !0) => {
|
|
3372
3369
|
if (!(e instanceof HTMLElement))
|
|
3373
3370
|
return null;
|
|
3374
3371
|
let i = n ? e : e.parentElement;
|
|
@@ -3379,35 +3376,35 @@ const Vn = (e, t, n = !0) => {
|
|
|
3379
3376
|
return i;
|
|
3380
3377
|
} while (i = i.parentElement);
|
|
3381
3378
|
return null;
|
|
3382
|
-
},
|
|
3379
|
+
}, Wn = (e) => An(e, (t) => {
|
|
3383
3380
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3384
3381
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3385
|
-
}),
|
|
3382
|
+
}), ye = ({
|
|
3386
3383
|
event: e,
|
|
3387
3384
|
target: t
|
|
3388
3385
|
}) => {
|
|
3389
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r =
|
|
3386
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
|
|
3390
3387
|
return {
|
|
3391
3388
|
x: r,
|
|
3392
3389
|
y: a
|
|
3393
3390
|
};
|
|
3394
|
-
},
|
|
3395
|
-
const t = e.target, n = t &&
|
|
3391
|
+
}, Nn = (e) => {
|
|
3392
|
+
const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3396
3393
|
return {
|
|
3397
3394
|
targetBuilderElement: i || void 0,
|
|
3398
3395
|
metadata: {
|
|
3399
|
-
targetOffset: t ?
|
|
3396
|
+
targetOffset: t ? ye({
|
|
3400
3397
|
event: e,
|
|
3401
3398
|
target: t
|
|
3402
3399
|
}) : void 0,
|
|
3403
|
-
builderTargetOffset: n ?
|
|
3400
|
+
builderTargetOffset: n ? ye({
|
|
3404
3401
|
event: e,
|
|
3405
3402
|
target: n
|
|
3406
3403
|
}) : void 0,
|
|
3407
3404
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3408
3405
|
}
|
|
3409
3406
|
};
|
|
3410
|
-
},
|
|
3407
|
+
}, Fn = (e) => {
|
|
3411
3408
|
var r, a;
|
|
3412
3409
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3413
3410
|
let o = "";
|
|
@@ -3433,15 +3430,15 @@ font-weight: ${l};
|
|
|
3433
3430
|
`.trim());
|
|
3434
3431
|
}
|
|
3435
3432
|
return o;
|
|
3436
|
-
},
|
|
3433
|
+
}, $n = ({
|
|
3437
3434
|
customFonts: e
|
|
3438
3435
|
}) => {
|
|
3439
3436
|
var t;
|
|
3440
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3441
|
-
},
|
|
3437
|
+
return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3438
|
+
}, Dn = ({
|
|
3442
3439
|
cssCode: e,
|
|
3443
3440
|
contentId: t
|
|
3444
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3441
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
|
|
3445
3442
|
.builder-button {
|
|
3446
3443
|
all: unset;
|
|
3447
3444
|
}
|
|
@@ -3458,39 +3455,39 @@ font-weight: ${l};
|
|
|
3458
3455
|
text-align: inherit;
|
|
3459
3456
|
font-family: inherit;
|
|
3460
3457
|
}
|
|
3461
|
-
`,
|
|
3462
|
-
function
|
|
3463
|
-
var b,
|
|
3458
|
+
`, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
|
|
3459
|
+
function Hn(e) {
|
|
3460
|
+
var b, y, A;
|
|
3464
3461
|
const t = $(null);
|
|
3465
|
-
function n(
|
|
3466
|
-
var P,
|
|
3467
|
-
const
|
|
3462
|
+
function n(k) {
|
|
3463
|
+
var P, T;
|
|
3464
|
+
const w = {
|
|
3468
3465
|
...e.builderContextSignal.rootState,
|
|
3469
|
-
...
|
|
3466
|
+
...k
|
|
3470
3467
|
};
|
|
3471
|
-
e.builderContextSignal.rootSetState ? (
|
|
3472
|
-
...
|
|
3473
|
-
rootState:
|
|
3468
|
+
e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
|
|
3469
|
+
...u,
|
|
3470
|
+
rootState: w
|
|
3474
3471
|
}));
|
|
3475
3472
|
}
|
|
3476
|
-
function i(
|
|
3477
|
-
var P,
|
|
3478
|
-
const
|
|
3473
|
+
function i(k) {
|
|
3474
|
+
var P, T, u, C, W;
|
|
3475
|
+
const w = {
|
|
3479
3476
|
...e.builderContextSignal.content,
|
|
3480
|
-
...
|
|
3477
|
+
...k,
|
|
3481
3478
|
data: {
|
|
3482
3479
|
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3483
|
-
...
|
|
3480
|
+
...k == null ? void 0 : k.data
|
|
3484
3481
|
},
|
|
3485
3482
|
meta: {
|
|
3486
|
-
...(
|
|
3487
|
-
...
|
|
3488
|
-
breakpoints: ((
|
|
3483
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
|
|
3484
|
+
...k == null ? void 0 : k.meta,
|
|
3485
|
+
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((W = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : W.breakpoints)
|
|
3489
3486
|
}
|
|
3490
3487
|
};
|
|
3491
|
-
e.setBuilderContextSignal((
|
|
3492
|
-
...
|
|
3493
|
-
content:
|
|
3488
|
+
e.setBuilderContextSignal((E) => ({
|
|
3489
|
+
...E,
|
|
3490
|
+
content: w
|
|
3494
3491
|
}));
|
|
3495
3492
|
}
|
|
3496
3493
|
function o() {
|
|
@@ -3499,62 +3496,62 @@ function Un(e) {
|
|
|
3499
3496
|
"aria-hidden": !0
|
|
3500
3497
|
};
|
|
3501
3498
|
}
|
|
3502
|
-
const [r, a] =
|
|
3499
|
+
const [r, a] = R(
|
|
3503
3500
|
() => e.contentWrapper || "div"
|
|
3504
3501
|
);
|
|
3505
|
-
function l(
|
|
3506
|
-
return
|
|
3502
|
+
function l(k) {
|
|
3503
|
+
return je({
|
|
3507
3504
|
model: e.model,
|
|
3508
3505
|
trustedHosts: e.trustedHosts,
|
|
3509
3506
|
callbacks: {
|
|
3510
|
-
configureSdk: (
|
|
3511
|
-
var
|
|
3512
|
-
const { breakpoints: P, contentId:
|
|
3513
|
-
!
|
|
3507
|
+
configureSdk: (w) => {
|
|
3508
|
+
var u;
|
|
3509
|
+
const { breakpoints: P, contentId: T } = w;
|
|
3510
|
+
!T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
|
|
3514
3511
|
meta: {
|
|
3515
3512
|
breakpoints: P
|
|
3516
3513
|
}
|
|
3517
3514
|
});
|
|
3518
3515
|
},
|
|
3519
|
-
animation: (
|
|
3520
|
-
|
|
3516
|
+
animation: (w) => {
|
|
3517
|
+
Be(w);
|
|
3521
3518
|
},
|
|
3522
|
-
contentUpdate: (
|
|
3523
|
-
i(
|
|
3519
|
+
contentUpdate: (w) => {
|
|
3520
|
+
i(w);
|
|
3524
3521
|
}
|
|
3525
3522
|
}
|
|
3526
|
-
})(
|
|
3523
|
+
})(k);
|
|
3527
3524
|
}
|
|
3528
|
-
const [d, c] =
|
|
3529
|
-
function f(
|
|
3530
|
-
var
|
|
3525
|
+
const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
|
|
3526
|
+
function f(k) {
|
|
3527
|
+
var w, P;
|
|
3531
3528
|
if (e.builderContextSignal.content) {
|
|
3532
|
-
const
|
|
3533
|
-
|
|
3529
|
+
const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3530
|
+
se({
|
|
3534
3531
|
apiHost: e.apiHost,
|
|
3535
3532
|
type: "click",
|
|
3536
|
-
canTrack:
|
|
3537
|
-
contentId:
|
|
3533
|
+
canTrack: K(e.canTrack),
|
|
3534
|
+
contentId: u,
|
|
3538
3535
|
apiKey: e.apiKey,
|
|
3539
|
-
variationId:
|
|
3540
|
-
...
|
|
3536
|
+
variationId: T !== u ? T : void 0,
|
|
3537
|
+
...Nn(k),
|
|
3541
3538
|
unique: !m
|
|
3542
3539
|
});
|
|
3543
3540
|
}
|
|
3544
|
-
m ||
|
|
3541
|
+
m || x(!0);
|
|
3545
3542
|
}
|
|
3546
|
-
function
|
|
3547
|
-
var
|
|
3548
|
-
const
|
|
3549
|
-
Object.entries(
|
|
3550
|
-
if (!
|
|
3543
|
+
function S() {
|
|
3544
|
+
var w, P, T;
|
|
3545
|
+
const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
|
|
3546
|
+
Object.entries(k).forEach(([u, C]) => {
|
|
3547
|
+
if (!C || h[u] || d[u] && !N())
|
|
3551
3548
|
return;
|
|
3552
|
-
h[
|
|
3553
|
-
const
|
|
3549
|
+
h[u] = !0;
|
|
3550
|
+
const W = C.replace(
|
|
3554
3551
|
/{{([^}]+)}}/g,
|
|
3555
|
-
(
|
|
3552
|
+
(E, j) => String(
|
|
3556
3553
|
L({
|
|
3557
|
-
code:
|
|
3554
|
+
code: j,
|
|
3558
3555
|
context: e.context || {},
|
|
3559
3556
|
localState: void 0,
|
|
3560
3557
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3562,24 +3559,24 @@ function Un(e) {
|
|
|
3562
3559
|
})
|
|
3563
3560
|
)
|
|
3564
3561
|
);
|
|
3565
|
-
fetch(
|
|
3562
|
+
Se(W), fetch(W).then((E) => E.json()).then((E) => {
|
|
3566
3563
|
n({
|
|
3567
|
-
[
|
|
3568
|
-
}), d[
|
|
3569
|
-
}).catch((
|
|
3570
|
-
console.error("error fetching dynamic data",
|
|
3564
|
+
[u]: E
|
|
3565
|
+
}), d[u] = !0;
|
|
3566
|
+
}).catch((E) => {
|
|
3567
|
+
console.error("error fetching dynamic data", C, E);
|
|
3571
3568
|
}).finally(() => {
|
|
3572
|
-
h[
|
|
3569
|
+
h[u] = !1;
|
|
3573
3570
|
});
|
|
3574
3571
|
});
|
|
3575
3572
|
}
|
|
3576
|
-
function
|
|
3573
|
+
function v() {
|
|
3577
3574
|
N() && window.dispatchEvent(
|
|
3578
3575
|
new CustomEvent(
|
|
3579
3576
|
"builder:component:stateChange",
|
|
3580
3577
|
{
|
|
3581
3578
|
detail: {
|
|
3582
|
-
state:
|
|
3579
|
+
state: oe(e.builderContextSignal.rootState),
|
|
3583
3580
|
ref: {
|
|
3584
3581
|
name: e.model
|
|
3585
3582
|
}
|
|
@@ -3589,10 +3586,10 @@ function Un(e) {
|
|
|
3589
3586
|
);
|
|
3590
3587
|
}
|
|
3591
3588
|
const p = $(!1);
|
|
3592
|
-
return p.current || (
|
|
3593
|
-
var
|
|
3594
|
-
if (
|
|
3595
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
3589
|
+
return p.current || (S(), v(), p.current = !0), B(() => {
|
|
3590
|
+
var k, w;
|
|
3591
|
+
if (q()) {
|
|
3592
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", l), Oe(), Ue({
|
|
3596
3593
|
...e.locale ? {
|
|
3597
3594
|
locale: e.locale
|
|
3598
3595
|
} : {},
|
|
@@ -3604,41 +3601,41 @@ function Un(e) {
|
|
|
3604
3601
|
} : {}
|
|
3605
3602
|
}), Object.values(
|
|
3606
3603
|
e.builderContextSignal.componentInfos
|
|
3607
|
-
).forEach((
|
|
3608
|
-
var
|
|
3609
|
-
const
|
|
3610
|
-
(
|
|
3604
|
+
).forEach((T) => {
|
|
3605
|
+
var C;
|
|
3606
|
+
const u = He(T);
|
|
3607
|
+
(C = window.parent) == null || C.postMessage(u, "*");
|
|
3611
3608
|
}), window.addEventListener(
|
|
3612
3609
|
"builder:component:stateChangeListenerActivated",
|
|
3613
|
-
|
|
3614
|
-
)), e.builderContextSignal.content &&
|
|
3615
|
-
const
|
|
3616
|
-
|
|
3610
|
+
v
|
|
3611
|
+
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3612
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
|
|
3613
|
+
se({
|
|
3617
3614
|
apiHost: e.apiHost,
|
|
3618
3615
|
type: "impression",
|
|
3619
3616
|
canTrack: !0,
|
|
3620
|
-
contentId:
|
|
3621
|
-
apiKey:
|
|
3622
|
-
variationId:
|
|
3617
|
+
contentId: u,
|
|
3618
|
+
apiKey: C,
|
|
3619
|
+
variationId: T !== u ? T : void 0
|
|
3623
3620
|
});
|
|
3624
3621
|
}
|
|
3625
|
-
if (
|
|
3626
|
-
const
|
|
3627
|
-
`builder.overrides.${
|
|
3628
|
-
),
|
|
3629
|
-
|
|
3622
|
+
if (ve() && !N()) {
|
|
3623
|
+
const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
|
|
3624
|
+
`builder.overrides.${u}`
|
|
3625
|
+
), W = T.get("apiKey") || T.get("builder.space");
|
|
3626
|
+
u === e.model && W === e.apiKey && (!e.content || C === e.content.id) && ke({
|
|
3630
3627
|
model: e.model,
|
|
3631
3628
|
apiKey: e.apiKey,
|
|
3632
3629
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3633
|
-
}).then((
|
|
3634
|
-
|
|
3630
|
+
}).then((E) => {
|
|
3631
|
+
E && i(E);
|
|
3635
3632
|
});
|
|
3636
3633
|
}
|
|
3637
3634
|
}
|
|
3638
3635
|
}, []), B(() => {
|
|
3639
3636
|
e.content && i(e.content);
|
|
3640
3637
|
}, [e.content]), B(() => {
|
|
3641
|
-
|
|
3638
|
+
v();
|
|
3642
3639
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3643
3640
|
e.data && n(e.data);
|
|
3644
3641
|
}, [e.data]), B(() => {
|
|
@@ -3646,19 +3643,19 @@ function Un(e) {
|
|
|
3646
3643
|
locale: e.locale
|
|
3647
3644
|
});
|
|
3648
3645
|
}, [e.locale]), B(() => () => {
|
|
3649
|
-
|
|
3646
|
+
q() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3650
3647
|
"builder:component:stateChangeListenerActivated",
|
|
3651
|
-
|
|
3648
|
+
v
|
|
3652
3649
|
));
|
|
3653
|
-
}, []), /* @__PURE__ */ s(
|
|
3650
|
+
}, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3654
3651
|
r,
|
|
3655
3652
|
{
|
|
3656
3653
|
ref: t,
|
|
3657
|
-
onClick: (
|
|
3654
|
+
onClick: (k) => f(k),
|
|
3658
3655
|
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3659
3656
|
"builder-model": e.model,
|
|
3660
|
-
className:
|
|
3661
|
-
((
|
|
3657
|
+
className: Un(
|
|
3658
|
+
((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3662
3659
|
),
|
|
3663
3660
|
...o(),
|
|
3664
3661
|
...e.contentWrapperProps,
|
|
@@ -3666,21 +3663,21 @@ function Un(e) {
|
|
|
3666
3663
|
}
|
|
3667
3664
|
) : null });
|
|
3668
3665
|
}
|
|
3669
|
-
function
|
|
3670
|
-
const [t, n] =
|
|
3666
|
+
function jn(e) {
|
|
3667
|
+
const [t, n] = R(
|
|
3671
3668
|
() => `
|
|
3672
|
-
${
|
|
3669
|
+
${Dn({
|
|
3673
3670
|
cssCode: e.cssCode,
|
|
3674
3671
|
contentId: e.contentId
|
|
3675
3672
|
})}
|
|
3676
|
-
${
|
|
3673
|
+
${$n({
|
|
3677
3674
|
customFonts: e.customFonts
|
|
3678
3675
|
})}
|
|
3679
|
-
${
|
|
3676
|
+
${On(e.isNestedRender)}
|
|
3680
3677
|
`.trim()
|
|
3681
3678
|
);
|
|
3682
3679
|
return /* @__PURE__ */ s(
|
|
3683
|
-
|
|
3680
|
+
J,
|
|
3684
3681
|
{
|
|
3685
3682
|
id: "builderio-content",
|
|
3686
3683
|
styles: t,
|
|
@@ -3688,7 +3685,7 @@ ${Ln(e.isNestedRender)}
|
|
|
3688
3685
|
}
|
|
3689
3686
|
);
|
|
3690
3687
|
}
|
|
3691
|
-
const
|
|
3688
|
+
const Mn = ({
|
|
3692
3689
|
content: e,
|
|
3693
3690
|
data: t,
|
|
3694
3691
|
locale: n
|
|
@@ -3705,7 +3702,7 @@ const jn = ({
|
|
|
3705
3702
|
locale: n
|
|
3706
3703
|
} : {}
|
|
3707
3704
|
};
|
|
3708
|
-
},
|
|
3705
|
+
}, _n = ({
|
|
3709
3706
|
content: e,
|
|
3710
3707
|
data: t
|
|
3711
3708
|
}) => e ? {
|
|
@@ -3716,51 +3713,51 @@ const jn = ({
|
|
|
3716
3713
|
},
|
|
3717
3714
|
meta: e == null ? void 0 : e.meta
|
|
3718
3715
|
} : void 0;
|
|
3719
|
-
function
|
|
3720
|
-
var c, h, g, m,
|
|
3721
|
-
const [t, n] =
|
|
3716
|
+
function xe(e) {
|
|
3717
|
+
var c, h, g, m, x, f, S, v, p;
|
|
3718
|
+
const [t, n] = R(
|
|
3722
3719
|
() => {
|
|
3723
|
-
var b,
|
|
3724
|
-
return
|
|
3720
|
+
var b, y;
|
|
3721
|
+
return Vn({
|
|
3725
3722
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3726
3723
|
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3727
3724
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3728
|
-
contentId: (
|
|
3725
|
+
contentId: (y = e.content) == null ? void 0 : y.id
|
|
3729
3726
|
});
|
|
3730
3727
|
}
|
|
3731
3728
|
);
|
|
3732
3729
|
function i(b) {
|
|
3733
|
-
l((
|
|
3734
|
-
...
|
|
3730
|
+
l((y) => ({
|
|
3731
|
+
...y,
|
|
3735
3732
|
rootState: b
|
|
3736
3733
|
}));
|
|
3737
3734
|
}
|
|
3738
|
-
const [o, r] =
|
|
3735
|
+
const [o, r] = R(
|
|
3739
3736
|
() => {
|
|
3740
3737
|
var b;
|
|
3741
3738
|
return [
|
|
3742
|
-
...
|
|
3743
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3739
|
+
...be(),
|
|
3740
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3744
3741
|
].reduce(
|
|
3745
|
-
(
|
|
3746
|
-
...
|
|
3747
|
-
[
|
|
3742
|
+
(y, { component: A, ...k }) => ({
|
|
3743
|
+
...y,
|
|
3744
|
+
[k.name]: {
|
|
3748
3745
|
component: A,
|
|
3749
|
-
...
|
|
3746
|
+
...ce(k)
|
|
3750
3747
|
}
|
|
3751
3748
|
}),
|
|
3752
3749
|
{}
|
|
3753
3750
|
);
|
|
3754
3751
|
}
|
|
3755
|
-
), [a, l] =
|
|
3752
|
+
), [a, l] = R(() => {
|
|
3756
3753
|
var b;
|
|
3757
3754
|
return {
|
|
3758
|
-
content:
|
|
3755
|
+
content: _n({
|
|
3759
3756
|
content: e.content,
|
|
3760
3757
|
data: e.data
|
|
3761
3758
|
}),
|
|
3762
3759
|
localState: void 0,
|
|
3763
|
-
rootState:
|
|
3760
|
+
rootState: Mn({
|
|
3764
3761
|
content: e.content,
|
|
3765
3762
|
data: e.data,
|
|
3766
3763
|
locale: e.locale
|
|
@@ -3771,12 +3768,12 @@ function ye(e) {
|
|
|
3771
3768
|
apiKey: e.apiKey,
|
|
3772
3769
|
apiVersion: e.apiVersion,
|
|
3773
3770
|
componentInfos: [
|
|
3774
|
-
...
|
|
3775
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3771
|
+
...be(),
|
|
3772
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3776
3773
|
].reduce(
|
|
3777
|
-
(
|
|
3778
|
-
...
|
|
3779
|
-
[
|
|
3774
|
+
(y, { component: A, ...k }) => ({
|
|
3775
|
+
...y,
|
|
3776
|
+
[k.name]: ce(k)
|
|
3780
3777
|
}),
|
|
3781
3778
|
{}
|
|
3782
3779
|
),
|
|
@@ -3787,7 +3784,7 @@ function ye(e) {
|
|
|
3787
3784
|
};
|
|
3788
3785
|
}), d = $(!1);
|
|
3789
3786
|
if (!d.current) {
|
|
3790
|
-
e.apiKey ||
|
|
3787
|
+
e.apiKey || ie.error(
|
|
3791
3788
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3792
3789
|
);
|
|
3793
3790
|
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
@@ -3796,20 +3793,20 @@ function ye(e) {
|
|
|
3796
3793
|
context: e.context || {},
|
|
3797
3794
|
localState: void 0,
|
|
3798
3795
|
rootState: a.rootState,
|
|
3799
|
-
rootSetState: (
|
|
3800
|
-
Object.assign(a.rootState,
|
|
3796
|
+
rootSetState: (y) => {
|
|
3797
|
+
Object.assign(a.rootState, y);
|
|
3801
3798
|
},
|
|
3802
3799
|
isExpression: !1
|
|
3803
3800
|
}), d.current = !0;
|
|
3804
3801
|
}
|
|
3805
3802
|
return /* @__PURE__ */ s(
|
|
3806
|
-
|
|
3803
|
+
we.Provider,
|
|
3807
3804
|
{
|
|
3808
3805
|
value: {
|
|
3809
3806
|
registeredComponents: o
|
|
3810
3807
|
},
|
|
3811
3808
|
children: /* @__PURE__ */ V(
|
|
3812
|
-
|
|
3809
|
+
Hn,
|
|
3813
3810
|
{
|
|
3814
3811
|
apiHost: e.apiHost,
|
|
3815
3812
|
nonce: e.nonce,
|
|
@@ -3830,7 +3827,7 @@ function ye(e) {
|
|
|
3830
3827
|
setBuilderContextSignal: l,
|
|
3831
3828
|
children: [
|
|
3832
3829
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3833
|
-
|
|
3830
|
+
ne,
|
|
3834
3831
|
{
|
|
3835
3832
|
id: "builderio-variant-visibility",
|
|
3836
3833
|
scriptStr: t,
|
|
@@ -3838,19 +3835,19 @@ function ye(e) {
|
|
|
3838
3835
|
}
|
|
3839
3836
|
) : null,
|
|
3840
3837
|
/* @__PURE__ */ s(
|
|
3841
|
-
|
|
3838
|
+
jn,
|
|
3842
3839
|
{
|
|
3843
3840
|
nonce: e.nonce || "",
|
|
3844
3841
|
isNestedRender: e.isNestedRender,
|
|
3845
3842
|
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3846
|
-
cssCode: (
|
|
3847
|
-
customFonts: (
|
|
3843
|
+
cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
|
|
3844
|
+
customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
|
|
3848
3845
|
}
|
|
3849
3846
|
),
|
|
3850
3847
|
/* @__PURE__ */ s(
|
|
3851
3848
|
F,
|
|
3852
3849
|
{
|
|
3853
|
-
blocks: (p = (
|
|
3850
|
+
blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
|
|
3854
3851
|
context: a,
|
|
3855
3852
|
registeredComponents: o,
|
|
3856
3853
|
linkComponent: e.linkComponent
|
|
@@ -3862,18 +3859,18 @@ function ye(e) {
|
|
|
3862
3859
|
}
|
|
3863
3860
|
);
|
|
3864
3861
|
}
|
|
3865
|
-
function
|
|
3862
|
+
function qn(e) {
|
|
3866
3863
|
var a;
|
|
3867
|
-
const [t, n] =
|
|
3868
|
-
() =>
|
|
3869
|
-
canTrack:
|
|
3864
|
+
const [t, n] = R(
|
|
3865
|
+
() => En({
|
|
3866
|
+
canTrack: K(e.canTrack),
|
|
3870
3867
|
content: e.content
|
|
3871
3868
|
})
|
|
3872
3869
|
);
|
|
3873
3870
|
function i() {
|
|
3874
3871
|
var l;
|
|
3875
|
-
return
|
|
3876
|
-
|
|
3872
|
+
return Bn(
|
|
3873
|
+
_(e.content).map((d) => ({
|
|
3877
3874
|
id: d.testVariationId,
|
|
3878
3875
|
testRatio: d.testRatio
|
|
3879
3876
|
})),
|
|
@@ -3881,31 +3878,31 @@ function _n(e) {
|
|
|
3881
3878
|
);
|
|
3882
3879
|
}
|
|
3883
3880
|
function o() {
|
|
3884
|
-
return
|
|
3881
|
+
return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3885
3882
|
}
|
|
3886
3883
|
function r() {
|
|
3887
3884
|
var l;
|
|
3888
3885
|
return t ? {
|
|
3889
3886
|
...e.content,
|
|
3890
3887
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3891
|
-
} :
|
|
3888
|
+
} : Me({
|
|
3892
3889
|
item: e.content,
|
|
3893
|
-
canTrack:
|
|
3890
|
+
canTrack: K(e.canTrack)
|
|
3894
3891
|
});
|
|
3895
3892
|
}
|
|
3896
3893
|
return B(() => {
|
|
3897
|
-
}, []), /* @__PURE__ */ V(
|
|
3894
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
3898
3895
|
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3899
|
-
|
|
3896
|
+
ne,
|
|
3900
3897
|
{
|
|
3901
3898
|
id: "builderio-init-variants-fns",
|
|
3902
|
-
scriptStr:
|
|
3899
|
+
scriptStr: Pn(),
|
|
3903
3900
|
nonce: e.nonce || ""
|
|
3904
3901
|
}
|
|
3905
3902
|
) : null,
|
|
3906
|
-
t ? /* @__PURE__ */ V(
|
|
3903
|
+
t ? /* @__PURE__ */ V(I, { children: [
|
|
3907
3904
|
/* @__PURE__ */ s(
|
|
3908
|
-
|
|
3905
|
+
J,
|
|
3909
3906
|
{
|
|
3910
3907
|
id: "builderio-variants",
|
|
3911
3908
|
styles: o(),
|
|
@@ -3913,15 +3910,15 @@ function _n(e) {
|
|
|
3913
3910
|
}
|
|
3914
3911
|
),
|
|
3915
3912
|
/* @__PURE__ */ s(
|
|
3916
|
-
|
|
3913
|
+
ne,
|
|
3917
3914
|
{
|
|
3918
3915
|
id: "builderio-variants-visibility",
|
|
3919
3916
|
scriptStr: i(),
|
|
3920
3917
|
nonce: e.nonce || ""
|
|
3921
3918
|
}
|
|
3922
3919
|
),
|
|
3923
|
-
(a =
|
|
3924
|
-
|
|
3920
|
+
(a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3921
|
+
xe,
|
|
3925
3922
|
{
|
|
3926
3923
|
apiHost: e.apiHost,
|
|
3927
3924
|
isNestedRender: e.isNestedRender,
|
|
@@ -3949,7 +3946,7 @@ function _n(e) {
|
|
|
3949
3946
|
))
|
|
3950
3947
|
] }) : null,
|
|
3951
3948
|
/* @__PURE__ */ s(
|
|
3952
|
-
|
|
3949
|
+
xe,
|
|
3953
3950
|
{
|
|
3954
3951
|
apiHost: e.apiHost,
|
|
3955
3952
|
nonce: e.nonce,
|
|
@@ -3976,13 +3973,13 @@ function _n(e) {
|
|
|
3976
3973
|
)
|
|
3977
3974
|
] });
|
|
3978
3975
|
}
|
|
3979
|
-
const
|
|
3976
|
+
const Kn = async ({
|
|
3980
3977
|
builderContextValue: e,
|
|
3981
3978
|
symbol: t
|
|
3982
3979
|
}) => {
|
|
3983
3980
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3984
3981
|
(e != null && e.apiKey))
|
|
3985
|
-
return
|
|
3982
|
+
return ke({
|
|
3986
3983
|
model: t.model,
|
|
3987
3984
|
apiKey: e.apiKey,
|
|
3988
3985
|
apiVersion: e.apiVersion,
|
|
@@ -3992,10 +3989,10 @@ const qn = async ({
|
|
|
3992
3989
|
}
|
|
3993
3990
|
}
|
|
3994
3991
|
}).catch((n) => {
|
|
3995
|
-
|
|
3992
|
+
ie.error("Could not fetch symbol content: ", n);
|
|
3996
3993
|
});
|
|
3997
3994
|
};
|
|
3998
|
-
function
|
|
3995
|
+
function zn(e) {
|
|
3999
3996
|
var l, d, c, h;
|
|
4000
3997
|
function t() {
|
|
4001
3998
|
return "div";
|
|
@@ -4012,12 +4009,12 @@ function Kn(e) {
|
|
|
4012
4009
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4013
4010
|
].filter(Boolean).join(" ");
|
|
4014
4011
|
}
|
|
4015
|
-
const [o, r] =
|
|
4012
|
+
const [o, r] = R(() => {
|
|
4016
4013
|
var g;
|
|
4017
4014
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4018
4015
|
});
|
|
4019
4016
|
function a() {
|
|
4020
|
-
o ||
|
|
4017
|
+
o || Kn({
|
|
4021
4018
|
symbol: e.symbol,
|
|
4022
4019
|
builderContextValue: e.builderContext
|
|
4023
4020
|
}).then((g) => {
|
|
@@ -4028,7 +4025,7 @@ function Kn(e) {
|
|
|
4028
4025
|
}, []), B(() => {
|
|
4029
4026
|
a();
|
|
4030
4027
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4031
|
-
|
|
4028
|
+
qn,
|
|
4032
4029
|
{
|
|
4033
4030
|
nonce: e.builderContext.nonce,
|
|
4034
4031
|
isNestedRender: !0,
|
|
@@ -4055,14 +4052,14 @@ function Kn(e) {
|
|
|
4055
4052
|
}
|
|
4056
4053
|
export {
|
|
4057
4054
|
F as Blocks,
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4055
|
+
re as BuilderContext,
|
|
4056
|
+
Xe as Button,
|
|
4057
|
+
Ft as Columns,
|
|
4058
|
+
qn as Content,
|
|
4059
|
+
$t as Fragment,
|
|
4060
|
+
Ot as Image,
|
|
4061
|
+
Ut as Section,
|
|
4062
|
+
zn as Symbol,
|
|
4063
|
+
en as Text,
|
|
4064
|
+
Cn as Video
|
|
4068
4065
|
};
|