@builder.io/sdk-react 3.0.1 → 3.0.2
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 +21 -21
- package/lib/browser/blocks-exports.mjs +657 -658
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-75ce8600.cjs +2 -0
- package/lib/browser/server-entry-a2495a20.js +748 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-decb24cf.cjs → accordion-1c16f65e.cjs} +1 -1
- package/lib/edge/{accordion-1572cb0d.js → accordion-c020e15b.js} +1 -1
- package/lib/edge/blocks-27ac5b23.js +3534 -0
- package/lib/edge/blocks-cd946d16.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-0709893d.js → button-5cdb4f26.js} +2 -2
- package/lib/edge/{button-cf66cf8d.cjs → button-8572fca5.cjs} +1 -1
- package/lib/edge/{columns-e234acc6.js → columns-3ac1fa96.js} +5 -6
- package/lib/edge/columns-c8a9cb89.cjs +28 -0
- package/lib/edge/{content-variants-3ab9230f.js → content-variants-23c8eec6.js} +209 -205
- package/lib/edge/content-variants-caa23bf7.cjs +134 -0
- package/lib/edge/form-3d9bf265.cjs +1 -0
- package/lib/edge/{form-27bcc23a.js → form-7fc5691b.js} +14 -15
- package/lib/edge/{get-class-prop-name-0b3d48a4.cjs → get-class-prop-name-29fd576a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-a3bd113c.js → get-class-prop-name-a4845b04.js} +1 -1
- package/lib/edge/{img-e0c8f7f9.cjs → img-102acaa2.cjs} +1 -1
- package/lib/edge/{img-80be6914.js → img-388698cb.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-f5ba6b1e.cjs → input-10e350a9.cjs} +1 -1
- package/lib/edge/{input-920922d5.js → input-5484e9e7.js} +1 -1
- package/lib/edge/{select-673864b7.js → select-b8406bcf.js} +1 -1
- package/lib/edge/{select-2ced1aca.cjs → select-f11be7a7.cjs} +1 -1
- package/lib/edge/server-entry-1879cbc4.cjs +2 -0
- package/lib/edge/server-entry-7ce03a4e.js +746 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-68f2b177.js → slot-23f75377.js} +5 -6
- package/lib/edge/slot-4ab390ec.cjs +1 -0
- package/lib/edge/{symbol-7e260a70.js → symbol-2eafb4e0.js} +2 -2
- package/lib/edge/{symbol-ded9dba9.cjs → symbol-fa343d77.cjs} +1 -1
- package/lib/edge/{tabs-5156494d.js → tabs-4c9c64f6.js} +15 -16
- package/lib/edge/tabs-7d258d82.cjs +1 -0
- package/lib/edge/text-5915f038.js +17 -0
- package/lib/edge/text-e6dbb721.cjs +1 -0
- package/lib/node/blocks-exports.cjs +22 -22
- package/lib/node/blocks-exports.mjs +542 -543
- 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/node/server-entry-2b263dde.js +749 -0
- package/lib/node/server-entry-ec330556.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-aba1bed8.cjs → setIvm-1e6f0b60.cjs} +1 -1
- package/lib/node/{setIvm-8b303d4e.js → setIvm-7eb67cd6.js} +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-491a9b55.cjs → should-force-browser-runtime-in-node-23218b19.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-0a037bde.js → should-force-browser-runtime-in-node-cdae9360.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-block-component-options.d.ts +2 -1
- package/types/functions/get-processed-block.d.ts +1 -6
- package/types/helpers/flatten.d.ts +6 -0
- package/types/server-index.d.ts +1 -1
- package/lib/browser/server-entry-017b8439.js +0 -717
- package/lib/browser/server-entry-9f80066e.cjs +0 -2
- package/lib/edge/blocks-9c35be74.js +0 -916
- package/lib/edge/blocks-d3823063.cjs +0 -12
- package/lib/edge/columns-2fdf0656.cjs +0 -28
- package/lib/edge/content-variants-616a6c0f.cjs +0 -134
- package/lib/edge/evaluate-ccf1ad96.cjs +0 -19
- package/lib/edge/evaluate-f0b82ede.js +0 -2612
- package/lib/edge/form-7c61693d.cjs +0 -1
- package/lib/edge/server-entry-6c0047ea.js +0 -715
- package/lib/edge/server-entry-de142ee8.cjs +0 -2
- package/lib/edge/slot-cc8b4e5b.cjs +0 -1
- package/lib/edge/tabs-d422921f.cjs +0 -1
- package/lib/edge/text-27a917c0.js +0 -37
- package/lib/edge/text-5796f488.cjs +0 -1
- package/lib/node/server-entry-e91e06a3.cjs +0 -2
- package/lib/node/server-entry-fdedc1aa.js +0 -718
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-
|
|
4
|
-
import { createContext as we, useEffect as A, useState as
|
|
5
|
-
import { getFunctionArguments as Ge, flattenState as Ye, runInNode as Qe, parseCode as Xe, getBuilderGlobals as Ze, set as Re, fastClone as re } from "./setIvm-
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as et } from "./should-force-browser-runtime-in-node-
|
|
2
|
+
import { jsx as l, Fragment as T, jsxs as W } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-2b263dde.js";
|
|
4
|
+
import { createContext as we, useEffect as A, useState as E, useRef as D, useContext as fe, createElement as Ee } from "react";
|
|
5
|
+
import { getFunctionArguments as Ge, flattenState as Ye, runInNode as Qe, parseCode as Xe, getBuilderGlobals as Ze, set as Re, fastClone as re } from "./setIvm-7eb67cd6.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as et } from "./should-force-browser-runtime-in-node-cdae9360.js";
|
|
7
7
|
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
8
8
|
function le(e) {
|
|
9
|
-
return /* @__PURE__ */
|
|
9
|
+
return /* @__PURE__ */ l(T, { children: nt(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const _ = () => {
|
|
12
12
|
switch ($) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -26,7 +26,7 @@ function it(e) {
|
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -36,7 +36,7 @@ function it(e) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ l(
|
|
40
40
|
le,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
@@ -61,24 +61,10 @@ const se = we({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}), Pe = we({ registeredComponents: {} })
|
|
65
|
-
function ot(e) {
|
|
66
|
-
var t;
|
|
67
|
-
return {
|
|
68
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
69
|
-
...e.options
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function at(e, ...t) {
|
|
73
|
-
const n = Object.assign({}, e);
|
|
74
|
-
for (const i of t)
|
|
75
|
-
delete n[i];
|
|
76
|
-
return n;
|
|
77
|
-
}
|
|
78
|
-
const Be = (e, t, n) => {
|
|
64
|
+
}), Pe = we({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
79
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
80
66
|
return i === void 0 || i === e ? n : i;
|
|
81
|
-
},
|
|
67
|
+
}, ot = ({
|
|
82
68
|
code: e,
|
|
83
69
|
builder: t,
|
|
84
70
|
context: n,
|
|
@@ -87,7 +73,7 @@ const Be = (e, t, n) => {
|
|
|
87
73
|
rootSetState: r,
|
|
88
74
|
rootState: a
|
|
89
75
|
}) => {
|
|
90
|
-
const
|
|
76
|
+
const s = Ge({
|
|
91
77
|
builder: t,
|
|
92
78
|
context: n,
|
|
93
79
|
event: i,
|
|
@@ -97,14 +83,14 @@ const Be = (e, t, n) => {
|
|
|
97
83
|
rootSetState: r
|
|
98
84
|
})
|
|
99
85
|
});
|
|
100
|
-
return new Function(...
|
|
101
|
-
},
|
|
86
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
87
|
+
}, at = (e) => q() || et({
|
|
102
88
|
shouldLogWarning: !0
|
|
103
|
-
}) ?
|
|
89
|
+
}) ? ot(e) : Qe(e), rt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, lt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, st = (e) => {
|
|
104
90
|
var t, n, i, o, r, a;
|
|
105
|
-
return ((i = (n = (t =
|
|
91
|
+
return ((i = (n = (t = rt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = lt.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
106
92
|
};
|
|
107
|
-
function
|
|
93
|
+
function O({
|
|
108
94
|
code: e,
|
|
109
95
|
context: t,
|
|
110
96
|
localState: n,
|
|
@@ -115,12 +101,12 @@ function D({
|
|
|
115
101
|
}) {
|
|
116
102
|
if (e.trim() === "")
|
|
117
103
|
return;
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
104
|
+
const s = st(e.trim());
|
|
105
|
+
if (s)
|
|
120
106
|
return Be({
|
|
121
107
|
...i,
|
|
122
108
|
...n
|
|
123
|
-
},
|
|
109
|
+
}, s);
|
|
124
110
|
const d = {
|
|
125
111
|
code: Xe(e, {
|
|
126
112
|
isExpression: a
|
|
@@ -133,7 +119,7 @@ function D({
|
|
|
133
119
|
localState: n
|
|
134
120
|
};
|
|
135
121
|
try {
|
|
136
|
-
return
|
|
122
|
+
return at(d);
|
|
137
123
|
} catch (c) {
|
|
138
124
|
oe.error("Failed code evaluation: " + c.message, {
|
|
139
125
|
code: e
|
|
@@ -141,6 +127,34 @@ function D({
|
|
|
141
127
|
return;
|
|
142
128
|
}
|
|
143
129
|
}
|
|
130
|
+
function ct(e, t) {
|
|
131
|
+
var n;
|
|
132
|
+
return {
|
|
133
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
134
|
+
...e.options,
|
|
135
|
+
...dt(e, t)
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
const dt = (e, t) => {
|
|
139
|
+
var n, i;
|
|
140
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
141
|
+
return {
|
|
142
|
+
...e.component.options,
|
|
143
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, r) => O({
|
|
144
|
+
code: r,
|
|
145
|
+
context: t,
|
|
146
|
+
localState: t.localState,
|
|
147
|
+
rootState: t.rootState,
|
|
148
|
+
rootSetState: t.rootSetState
|
|
149
|
+
}))
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
function ut(e, ...t) {
|
|
153
|
+
const n = Object.assign({}, e);
|
|
154
|
+
for (const i of t)
|
|
155
|
+
delete n[i];
|
|
156
|
+
return n;
|
|
157
|
+
}
|
|
144
158
|
function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
145
159
|
if (e == null || typeof e != "object") {
|
|
146
160
|
t(e, (r) => {
|
|
@@ -161,7 +175,7 @@ function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
161
175
|
function Ve(e) {
|
|
162
176
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
163
177
|
}
|
|
164
|
-
function
|
|
178
|
+
function mt(e) {
|
|
165
179
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
166
180
|
return !1;
|
|
167
181
|
let t = !1;
|
|
@@ -172,15 +186,15 @@ function ut(e) {
|
|
|
172
186
|
}
|
|
173
187
|
}), t;
|
|
174
188
|
}
|
|
175
|
-
function
|
|
189
|
+
function ft(e, t) {
|
|
176
190
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
177
191
|
var o;
|
|
178
192
|
Ve(n) && i((o = n[t]) != null ? o : void 0);
|
|
179
193
|
}), e);
|
|
180
194
|
}
|
|
181
|
-
function
|
|
195
|
+
function ht(e, t) {
|
|
182
196
|
var n, i;
|
|
183
|
-
return (n = e.component) != null && n.options &&
|
|
197
|
+
return (n = e.component) != null && n.options && mt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = ft(e.component.options, t != null ? t : "Default")), e;
|
|
184
198
|
}
|
|
185
199
|
function ne(e) {
|
|
186
200
|
if (e === null || typeof e != "object")
|
|
@@ -194,8 +208,8 @@ function ne(e) {
|
|
|
194
208
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
195
209
|
return t;
|
|
196
210
|
}
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
211
|
+
const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) => {
|
|
212
|
+
if (gt) {
|
|
199
213
|
const t = re(e);
|
|
200
214
|
return {
|
|
201
215
|
...t,
|
|
@@ -207,7 +221,7 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
|
|
|
207
221
|
}
|
|
208
222
|
};
|
|
209
223
|
} else {
|
|
210
|
-
const t = ne(
|
|
224
|
+
const t = ne(ut(e, "children", "meta"));
|
|
211
225
|
return {
|
|
212
226
|
...t,
|
|
213
227
|
properties: {
|
|
@@ -220,7 +234,7 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
|
|
|
220
234
|
meta: e.meta
|
|
221
235
|
};
|
|
222
236
|
}
|
|
223
|
-
},
|
|
237
|
+
}, pt = ({
|
|
224
238
|
block: e,
|
|
225
239
|
context: t,
|
|
226
240
|
localState: n,
|
|
@@ -229,10 +243,10 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
|
|
|
229
243
|
}) => {
|
|
230
244
|
if (!e.bindings)
|
|
231
245
|
return e;
|
|
232
|
-
const r =
|
|
246
|
+
const r = bt(e);
|
|
233
247
|
for (const a in e.bindings) {
|
|
234
|
-
const
|
|
235
|
-
code:
|
|
248
|
+
const s = e.bindings[a], d = O({
|
|
249
|
+
code: s,
|
|
236
250
|
localState: n,
|
|
237
251
|
rootState: i,
|
|
238
252
|
rootSetState: o,
|
|
@@ -242,37 +256,36 @@ const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) =
|
|
|
242
256
|
}
|
|
243
257
|
return r;
|
|
244
258
|
};
|
|
245
|
-
function
|
|
259
|
+
function yt({
|
|
246
260
|
block: e,
|
|
247
261
|
context: t,
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
rootSetState: r
|
|
262
|
+
localState: n,
|
|
263
|
+
rootState: i,
|
|
264
|
+
rootSetState: o
|
|
252
265
|
}) {
|
|
253
|
-
let
|
|
254
|
-
return
|
|
255
|
-
block:
|
|
256
|
-
localState:
|
|
257
|
-
rootState:
|
|
258
|
-
rootSetState:
|
|
266
|
+
let r = ht(e, i.locale);
|
|
267
|
+
return r = r, pt({
|
|
268
|
+
block: r,
|
|
269
|
+
localState: n,
|
|
270
|
+
rootState: i,
|
|
271
|
+
rootSetState: o,
|
|
259
272
|
context: t
|
|
260
|
-
})
|
|
273
|
+
});
|
|
261
274
|
}
|
|
262
275
|
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
263
|
-
function
|
|
264
|
-
let i, o, r, a = null,
|
|
276
|
+
function xt(e, t, n = {}) {
|
|
277
|
+
let i, o, r, a = null, s = 0;
|
|
265
278
|
const d = function() {
|
|
266
|
-
|
|
279
|
+
s = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
267
280
|
};
|
|
268
281
|
return function() {
|
|
269
282
|
const c = Date.now();
|
|
270
|
-
!
|
|
271
|
-
const h = t - (c -
|
|
272
|
-
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null),
|
|
283
|
+
!s && n.leading === !1 && (s = c);
|
|
284
|
+
const h = t - (c - s);
|
|
285
|
+
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), s = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
|
|
273
286
|
};
|
|
274
287
|
}
|
|
275
|
-
function
|
|
288
|
+
function U(e, ...t) {
|
|
276
289
|
const n = Object(e);
|
|
277
290
|
for (let i = 1; i < arguments.length; i++) {
|
|
278
291
|
const o = arguments[i];
|
|
@@ -282,14 +295,14 @@ function O(e, ...t) {
|
|
|
282
295
|
}
|
|
283
296
|
return n;
|
|
284
297
|
}
|
|
285
|
-
function
|
|
298
|
+
function vt(e) {
|
|
286
299
|
for (const t of e)
|
|
287
300
|
switch (t.trigger) {
|
|
288
301
|
case "pageLoad":
|
|
289
302
|
Ne(t);
|
|
290
303
|
break;
|
|
291
304
|
case "scrollInView":
|
|
292
|
-
|
|
305
|
+
kt(t);
|
|
293
306
|
break;
|
|
294
307
|
}
|
|
295
308
|
}
|
|
@@ -297,12 +310,12 @@ function Ae(e) {
|
|
|
297
310
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
298
311
|
}
|
|
299
312
|
function We(e, t) {
|
|
300
|
-
const n =
|
|
301
|
-
for (const
|
|
313
|
+
const n = St(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
314
|
+
for (const s of a)
|
|
302
315
|
for (const d of n)
|
|
303
|
-
d in
|
|
316
|
+
d in s || (s[d] = i[d]);
|
|
304
317
|
}
|
|
305
|
-
function
|
|
318
|
+
function St(e) {
|
|
306
319
|
const t = [];
|
|
307
320
|
for (const n of e.steps)
|
|
308
321
|
for (const i in n.styles)
|
|
@@ -316,14 +329,14 @@ function Ne(e) {
|
|
|
316
329
|
return;
|
|
317
330
|
}
|
|
318
331
|
Array.from(t).forEach((n) => {
|
|
319
|
-
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
320
|
-
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
332
|
+
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
333
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
321
334
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
322
335
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
323
336
|
});
|
|
324
337
|
});
|
|
325
338
|
}
|
|
326
|
-
function
|
|
339
|
+
function kt(e) {
|
|
327
340
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
328
341
|
if (!t.length) {
|
|
329
342
|
Ae(e.elementId || e.id || "");
|
|
@@ -333,22 +346,22 @@ function St(e) {
|
|
|
333
346
|
We(e, n);
|
|
334
347
|
let i = !1, o = !1;
|
|
335
348
|
function r() {
|
|
336
|
-
!i &&
|
|
337
|
-
|
|
349
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
350
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
338
351
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
339
352
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
340
|
-
})) : e.repeat && i && !o && !
|
|
353
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
341
354
|
}
|
|
342
|
-
const a =
|
|
355
|
+
const a = xt(r, 200, {
|
|
343
356
|
leading: !1
|
|
344
357
|
});
|
|
345
|
-
function
|
|
358
|
+
function s(h) {
|
|
346
359
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
347
360
|
return g.bottom > f && g.top < m - f;
|
|
348
361
|
}
|
|
349
362
|
const d = e.steps[0].styles;
|
|
350
363
|
function c() {
|
|
351
|
-
|
|
364
|
+
U(n.style, d);
|
|
352
365
|
}
|
|
353
366
|
c(), setTimeout(() => {
|
|
354
367
|
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -361,28 +374,28 @@ function St(e) {
|
|
|
361
374
|
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
362
375
|
if (typeof i == "string")
|
|
363
376
|
return `${J(n)}: ${i};`;
|
|
364
|
-
}).filter(te),
|
|
377
|
+
}).filter(te), Ct = (e) => Fe(e).join(`
|
|
365
378
|
`), M = ({
|
|
366
379
|
mediaQuery: e,
|
|
367
380
|
className: t,
|
|
368
381
|
styles: n
|
|
369
382
|
}) => {
|
|
370
383
|
const i = `.${t} {
|
|
371
|
-
${
|
|
384
|
+
${Ct(n)}
|
|
372
385
|
}`;
|
|
373
386
|
return e ? `${e} {
|
|
374
387
|
${i}
|
|
375
388
|
}` : i;
|
|
376
389
|
};
|
|
377
|
-
function
|
|
390
|
+
function Tt({
|
|
378
391
|
style: e
|
|
379
392
|
}) {
|
|
380
393
|
return e;
|
|
381
394
|
}
|
|
382
|
-
const
|
|
395
|
+
const It = ({
|
|
383
396
|
block: e,
|
|
384
397
|
context: t
|
|
385
|
-
}) => $e(
|
|
398
|
+
}) => $e(Tt({
|
|
386
399
|
style: e.style || {},
|
|
387
400
|
context: t,
|
|
388
401
|
block: e
|
|
@@ -401,7 +414,7 @@ function $e(e) {
|
|
|
401
414
|
return e;
|
|
402
415
|
}
|
|
403
416
|
}
|
|
404
|
-
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
417
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, wt = ({
|
|
405
418
|
block: e,
|
|
406
419
|
registeredComponents: t,
|
|
407
420
|
model: n
|
|
@@ -418,7 +431,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
418
431
|
return;
|
|
419
432
|
} else
|
|
420
433
|
return o;
|
|
421
|
-
},
|
|
434
|
+
}, Et = ({
|
|
422
435
|
block: e,
|
|
423
436
|
context: t
|
|
424
437
|
}) => {
|
|
@@ -428,7 +441,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
428
441
|
} = e;
|
|
429
442
|
if (!(n != null && n.collection))
|
|
430
443
|
return;
|
|
431
|
-
const o =
|
|
444
|
+
const o = O({
|
|
432
445
|
code: n.collection,
|
|
433
446
|
localState: t.localState,
|
|
434
447
|
rootState: t.rootState,
|
|
@@ -451,22 +464,22 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
451
464
|
},
|
|
452
465
|
block: i
|
|
453
466
|
}));
|
|
454
|
-
},
|
|
467
|
+
}, Rt = (e, t) => {
|
|
455
468
|
var n;
|
|
456
469
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
457
470
|
builderLinkComponent: t
|
|
458
471
|
} : {};
|
|
459
|
-
},
|
|
472
|
+
}, Pt = (e, t, n) => {
|
|
460
473
|
var i;
|
|
461
474
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
462
475
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
|
|
463
476
|
} : {};
|
|
464
|
-
},
|
|
477
|
+
}, Bt = (e, t) => {
|
|
465
478
|
var n;
|
|
466
479
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
467
480
|
builderBlock: t
|
|
468
481
|
} : {};
|
|
469
|
-
},
|
|
482
|
+
}, Vt = (e, t) => {
|
|
470
483
|
var n;
|
|
471
484
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
472
485
|
builderContext: t
|
|
@@ -515,7 +528,7 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
528
|
}, n;
|
|
516
529
|
};
|
|
517
530
|
function G(e) {
|
|
518
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ l(
|
|
519
532
|
"style",
|
|
520
533
|
{
|
|
521
534
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -524,7 +537,7 @@ function G(e) {
|
|
|
524
537
|
}
|
|
525
538
|
);
|
|
526
539
|
}
|
|
527
|
-
function
|
|
540
|
+
function At(e) {
|
|
528
541
|
function t() {
|
|
529
542
|
const i = e.block;
|
|
530
543
|
return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
|
|
@@ -533,12 +546,12 @@ function Vt(e) {
|
|
|
533
546
|
var x, b, p;
|
|
534
547
|
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
|
|
535
548
|
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
536
|
-
),
|
|
549
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
537
550
|
if (!h)
|
|
538
551
|
return "";
|
|
539
|
-
const g =
|
|
552
|
+
const g = s ? M({
|
|
540
553
|
className: h,
|
|
541
|
-
styles:
|
|
554
|
+
styles: s
|
|
542
555
|
}) : "", m = d ? M({
|
|
543
556
|
className: h,
|
|
544
557
|
styles: d,
|
|
@@ -575,7 +588,7 @@ function Vt(e) {
|
|
|
575
588
|
v
|
|
576
589
|
].join(" ");
|
|
577
590
|
}
|
|
578
|
-
return /* @__PURE__ */
|
|
591
|
+
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
579
592
|
G,
|
|
580
593
|
{
|
|
581
594
|
id: "builderio-block",
|
|
@@ -584,10 +597,10 @@ function Vt(e) {
|
|
|
584
597
|
}
|
|
585
598
|
) }) : null });
|
|
586
599
|
}
|
|
587
|
-
function
|
|
600
|
+
function Wt(e) {
|
|
588
601
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
589
602
|
}
|
|
590
|
-
const
|
|
603
|
+
const Nt = (e) => `on${Wt(e)}`, Ft = (e, t) => (n) => O({
|
|
591
604
|
code: e,
|
|
592
605
|
context: t.context,
|
|
593
606
|
localState: t.localState,
|
|
@@ -603,7 +616,7 @@ function Ue(e) {
|
|
|
603
616
|
if (!n.hasOwnProperty(o))
|
|
604
617
|
continue;
|
|
605
618
|
const r = n[o];
|
|
606
|
-
let a =
|
|
619
|
+
let a = Nt(o);
|
|
607
620
|
if (e.stripPrefix)
|
|
608
621
|
switch ($) {
|
|
609
622
|
case "vue":
|
|
@@ -613,16 +626,16 @@ function Ue(e) {
|
|
|
613
626
|
a = a.replace("on:", "");
|
|
614
627
|
break;
|
|
615
628
|
}
|
|
616
|
-
t[a] =
|
|
629
|
+
t[a] = Ft(r, e);
|
|
617
630
|
}
|
|
618
631
|
return t;
|
|
619
632
|
}
|
|
620
|
-
function
|
|
633
|
+
function $t({
|
|
621
634
|
properties: e
|
|
622
635
|
}) {
|
|
623
636
|
return e;
|
|
624
637
|
}
|
|
625
|
-
const
|
|
638
|
+
const Lt = (e) => ({
|
|
626
639
|
href: e.href
|
|
627
640
|
});
|
|
628
641
|
function ce({
|
|
@@ -631,23 +644,23 @@ function ce({
|
|
|
631
644
|
}) {
|
|
632
645
|
var i;
|
|
633
646
|
const n = {
|
|
634
|
-
|
|
647
|
+
...Lt(e),
|
|
635
648
|
...e.properties,
|
|
636
649
|
"builder-id": e.id,
|
|
637
|
-
style:
|
|
650
|
+
style: It({
|
|
638
651
|
block: e,
|
|
639
652
|
context: t
|
|
640
653
|
}),
|
|
641
|
-
[
|
|
654
|
+
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
642
655
|
};
|
|
643
|
-
return
|
|
656
|
+
return $t({
|
|
644
657
|
properties: n,
|
|
645
658
|
context: t,
|
|
646
659
|
block: e
|
|
647
660
|
});
|
|
648
661
|
}
|
|
649
|
-
function
|
|
650
|
-
return /* @__PURE__ */
|
|
662
|
+
function Dt(e) {
|
|
663
|
+
return /* @__PURE__ */ l(
|
|
651
664
|
le,
|
|
652
665
|
{
|
|
653
666
|
TagName: e.Wrapper,
|
|
@@ -667,11 +680,11 @@ function Lt(e) {
|
|
|
667
680
|
}
|
|
668
681
|
);
|
|
669
682
|
}
|
|
670
|
-
function
|
|
683
|
+
function Ot(e) {
|
|
671
684
|
return A(() => {
|
|
672
|
-
}, []), /* @__PURE__ */
|
|
685
|
+
}, []), /* @__PURE__ */ l(T, { children: e.children });
|
|
673
686
|
}
|
|
674
|
-
function
|
|
687
|
+
function Ut(e) {
|
|
675
688
|
function t() {
|
|
676
689
|
return e.includeBlockProps ? {
|
|
677
690
|
...ce({
|
|
@@ -687,8 +700,8 @@ function Ot(e) {
|
|
|
687
700
|
})
|
|
688
701
|
} : {};
|
|
689
702
|
}
|
|
690
|
-
return /* @__PURE__ */
|
|
691
|
-
|
|
703
|
+
return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
704
|
+
Ot,
|
|
692
705
|
{
|
|
693
706
|
load: e.Wrapper.load,
|
|
694
707
|
fallback: e.Wrapper.fallback,
|
|
@@ -696,9 +709,9 @@ function Ot(e) {
|
|
|
696
709
|
attributes: t(),
|
|
697
710
|
children: e.children
|
|
698
711
|
}
|
|
699
|
-
) }) : /* @__PURE__ */
|
|
712
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
700
713
|
}
|
|
701
|
-
const
|
|
714
|
+
const _t = ({
|
|
702
715
|
componentOptions: e,
|
|
703
716
|
builderBlock: t,
|
|
704
717
|
context: n,
|
|
@@ -707,7 +720,7 @@ const Ut = ({
|
|
|
707
720
|
isInteractive: r,
|
|
708
721
|
contextValue: a
|
|
709
722
|
}) => {
|
|
710
|
-
const
|
|
723
|
+
const s = {
|
|
711
724
|
...e,
|
|
712
725
|
/**
|
|
713
726
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -726,17 +739,17 @@ const Ut = ({
|
|
|
726
739
|
context: n,
|
|
727
740
|
wrapperProps: e,
|
|
728
741
|
includeBlockProps: o
|
|
729
|
-
} :
|
|
742
|
+
} : s;
|
|
730
743
|
};
|
|
731
744
|
function ge(e) {
|
|
732
745
|
var i;
|
|
733
|
-
const [t, n] =
|
|
734
|
-
() => e.isInteractive ?
|
|
746
|
+
const [t, n] = E(
|
|
747
|
+
() => e.isInteractive ? Ut : e.componentRef
|
|
735
748
|
);
|
|
736
|
-
return /* @__PURE__ */
|
|
749
|
+
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
737
750
|
t,
|
|
738
751
|
{
|
|
739
|
-
...
|
|
752
|
+
..._t({
|
|
740
753
|
componentOptions: e.componentOptions,
|
|
741
754
|
builderBlock: e.builderBlock,
|
|
742
755
|
context: e.context,
|
|
@@ -746,7 +759,7 @@ function ge(e) {
|
|
|
746
759
|
isInteractive: e.isInteractive,
|
|
747
760
|
contextValue: e.context
|
|
748
761
|
}),
|
|
749
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
762
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
750
763
|
H,
|
|
751
764
|
{
|
|
752
765
|
block: o,
|
|
@@ -760,8 +773,8 @@ function ge(e) {
|
|
|
760
773
|
) }) : null });
|
|
761
774
|
}
|
|
762
775
|
function be(e) {
|
|
763
|
-
const [t, n] =
|
|
764
|
-
return /* @__PURE__ */
|
|
776
|
+
const [t, n] = E(() => e.repeatContext);
|
|
777
|
+
return /* @__PURE__ */ l(se.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
765
778
|
H,
|
|
766
779
|
{
|
|
767
780
|
block: e.block,
|
|
@@ -774,12 +787,12 @@ function be(e) {
|
|
|
774
787
|
function H(e) {
|
|
775
788
|
var h, g, m, y;
|
|
776
789
|
function t() {
|
|
777
|
-
return
|
|
790
|
+
return Et({
|
|
778
791
|
block: e.block,
|
|
779
792
|
context: e.context
|
|
780
793
|
});
|
|
781
794
|
}
|
|
782
|
-
const [n, i] =
|
|
795
|
+
const [n, i] = E(() => ({
|
|
783
796
|
value: null,
|
|
784
797
|
update: !1
|
|
785
798
|
}));
|
|
@@ -787,18 +800,17 @@ function H(e) {
|
|
|
787
800
|
var v;
|
|
788
801
|
if (n.value && !n.update && !ae())
|
|
789
802
|
return n.value;
|
|
790
|
-
const f = (v = e.block.repeat) != null && v.collection ? e.block :
|
|
803
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : yt({
|
|
791
804
|
block: e.block,
|
|
792
805
|
localState: e.context.localState,
|
|
793
806
|
rootState: e.context.rootState,
|
|
794
807
|
rootSetState: e.context.rootSetState,
|
|
795
|
-
context: e.context.context
|
|
796
|
-
shouldEvaluateBindings: !0
|
|
808
|
+
context: e.context.context
|
|
797
809
|
});
|
|
798
810
|
return n.value = f, n.update = !1, f;
|
|
799
811
|
}
|
|
800
812
|
function r() {
|
|
801
|
-
return
|
|
813
|
+
return wt({
|
|
802
814
|
block: o(),
|
|
803
815
|
registeredComponents: e.registeredComponents,
|
|
804
816
|
model: e.context.model
|
|
@@ -808,7 +820,7 @@ function H(e) {
|
|
|
808
820
|
var v;
|
|
809
821
|
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
810
822
|
}
|
|
811
|
-
function
|
|
823
|
+
function s() {
|
|
812
824
|
var x, b;
|
|
813
825
|
if ((x = e.block.repeat) != null && x.collection)
|
|
814
826
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
@@ -825,11 +837,11 @@ function H(e) {
|
|
|
825
837
|
blockChildren: (f = o().children) != null ? f : [],
|
|
826
838
|
componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
|
|
827
839
|
componentOptions: {
|
|
828
|
-
...
|
|
829
|
-
...
|
|
830
|
-
...
|
|
831
|
-
...
|
|
832
|
-
...
|
|
840
|
+
...ct(o(), e.context),
|
|
841
|
+
...Bt(r(), o()),
|
|
842
|
+
...Vt(r(), e.context),
|
|
843
|
+
...Rt(r(), e.linkComponent),
|
|
844
|
+
...Pt(
|
|
833
845
|
r(),
|
|
834
846
|
e.registeredComponents,
|
|
835
847
|
e.context.model
|
|
@@ -845,7 +857,7 @@ function H(e) {
|
|
|
845
857
|
}
|
|
846
858
|
return A(() => {
|
|
847
859
|
const f = o().id, v = o().animations;
|
|
848
|
-
v && f &&
|
|
860
|
+
v && f && vt(
|
|
849
861
|
v.map((x) => ({
|
|
850
862
|
...x,
|
|
851
863
|
elementId: f
|
|
@@ -853,9 +865,9 @@ function H(e) {
|
|
|
853
865
|
);
|
|
854
866
|
}, []), A(() => {
|
|
855
867
|
n.update = !0;
|
|
856
|
-
}), /* @__PURE__ */
|
|
857
|
-
/* @__PURE__ */
|
|
858
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */
|
|
868
|
+
}), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ W(T, { children: [
|
|
869
|
+
/* @__PURE__ */ l(At, { block: o(), context: e.context }),
|
|
870
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
|
|
859
871
|
be,
|
|
860
872
|
{
|
|
861
873
|
repeatContext: f.context,
|
|
@@ -864,7 +876,7 @@ function H(e) {
|
|
|
864
876
|
linkComponent: e.linkComponent
|
|
865
877
|
},
|
|
866
878
|
v
|
|
867
|
-
)) }) : /* @__PURE__ */
|
|
879
|
+
)) }) : /* @__PURE__ */ l(
|
|
868
880
|
ge,
|
|
869
881
|
{
|
|
870
882
|
componentRef: c().componentRef,
|
|
@@ -877,7 +889,7 @@ function H(e) {
|
|
|
877
889
|
includeBlockProps: c().includeBlockProps,
|
|
878
890
|
isInteractive: c().isInteractive
|
|
879
891
|
}
|
|
880
|
-
) : /* @__PURE__ */
|
|
892
|
+
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
|
|
881
893
|
be,
|
|
882
894
|
{
|
|
883
895
|
repeatContext: f.context,
|
|
@@ -887,13 +899,13 @@ function H(e) {
|
|
|
887
899
|
},
|
|
888
900
|
v
|
|
889
901
|
)) }) : /* @__PURE__ */ W(
|
|
890
|
-
|
|
902
|
+
Dt,
|
|
891
903
|
{
|
|
892
904
|
Wrapper: a(),
|
|
893
905
|
block: o(),
|
|
894
906
|
context: e.context,
|
|
895
907
|
children: [
|
|
896
|
-
/* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ l(
|
|
897
909
|
ge,
|
|
898
910
|
{
|
|
899
911
|
componentRef: c().componentRef,
|
|
@@ -907,7 +919,7 @@ function H(e) {
|
|
|
907
919
|
isInteractive: c().isInteractive
|
|
908
920
|
}
|
|
909
921
|
),
|
|
910
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
922
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
911
923
|
H,
|
|
912
924
|
{
|
|
913
925
|
block: f,
|
|
@@ -923,7 +935,7 @@ function H(e) {
|
|
|
923
935
|
] }) : null });
|
|
924
936
|
}
|
|
925
937
|
function Ht(e) {
|
|
926
|
-
const t =
|
|
938
|
+
const t = D(null);
|
|
927
939
|
function n() {
|
|
928
940
|
var a;
|
|
929
941
|
return [
|
|
@@ -939,8 +951,8 @@ function Ht(e) {
|
|
|
939
951
|
return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
|
|
940
952
|
}
|
|
941
953
|
function o() {
|
|
942
|
-
var a,
|
|
943
|
-
N() && !((a = e.blocks) != null && a.length) && ((
|
|
954
|
+
var a, s;
|
|
955
|
+
N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
944
956
|
{
|
|
945
957
|
type: "builder.clickEmptyBlocks",
|
|
946
958
|
data: {
|
|
@@ -952,8 +964,8 @@ function Ht(e) {
|
|
|
952
964
|
));
|
|
953
965
|
}
|
|
954
966
|
function r() {
|
|
955
|
-
var a,
|
|
956
|
-
N() && !((a = e.blocks) != null && a.length) && ((
|
|
967
|
+
var a, s;
|
|
968
|
+
N() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
957
969
|
{
|
|
958
970
|
type: "builder.hoverEmptyBlocks",
|
|
959
971
|
data: {
|
|
@@ -965,8 +977,8 @@ function Ht(e) {
|
|
|
965
977
|
));
|
|
966
978
|
}
|
|
967
979
|
return A(() => {
|
|
968
|
-
}, []), /* @__PURE__ */ W(
|
|
969
|
-
/* @__PURE__ */
|
|
980
|
+
}, []), /* @__PURE__ */ W(T, { children: [
|
|
981
|
+
/* @__PURE__ */ l(
|
|
970
982
|
e.BlocksWrapper,
|
|
971
983
|
{
|
|
972
984
|
ref: t,
|
|
@@ -981,7 +993,7 @@ function Ht(e) {
|
|
|
981
993
|
children: e.children
|
|
982
994
|
}
|
|
983
995
|
),
|
|
984
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
985
997
|
display: flex;
|
|
986
998
|
flex-direction: column;
|
|
987
999
|
align-items: stretch;
|
|
@@ -991,7 +1003,7 @@ function Ht(e) {
|
|
|
991
1003
|
function F(e) {
|
|
992
1004
|
var i, o, r;
|
|
993
1005
|
const t = fe(se), n = fe(Pe);
|
|
994
|
-
return /* @__PURE__ */
|
|
1006
|
+
return /* @__PURE__ */ l(
|
|
995
1007
|
Ht,
|
|
996
1008
|
{
|
|
997
1009
|
blocks: e.blocks,
|
|
@@ -1001,7 +1013,7 @@ function F(e) {
|
|
|
1001
1013
|
classNameProp: e.className,
|
|
1002
1014
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1003
1015
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1004
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1016
|
+
children: e.blocks ? /* @__PURE__ */ l(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
|
|
1005
1017
|
H,
|
|
1006
1018
|
{
|
|
1007
1019
|
block: a,
|
|
@@ -1014,8 +1026,8 @@ function F(e) {
|
|
|
1014
1026
|
}
|
|
1015
1027
|
);
|
|
1016
1028
|
}
|
|
1017
|
-
const
|
|
1018
|
-
function
|
|
1029
|
+
const Mt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1030
|
+
function jt(e) {
|
|
1019
1031
|
var v, x;
|
|
1020
1032
|
function t() {
|
|
1021
1033
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1037,7 +1049,7 @@ function Mt(e) {
|
|
|
1037
1049
|
const p = r(b), C = t() * (n().length - 1) * (p / 100);
|
|
1038
1050
|
return `calc(${p}% - ${C}px)`;
|
|
1039
1051
|
}
|
|
1040
|
-
function
|
|
1052
|
+
function s({
|
|
1041
1053
|
stackedStyle: b,
|
|
1042
1054
|
desktopStyle: p
|
|
1043
1055
|
}) {
|
|
@@ -1055,14 +1067,14 @@ function Mt(e) {
|
|
|
1055
1067
|
function h() {
|
|
1056
1068
|
return {
|
|
1057
1069
|
"--flex-dir": c(),
|
|
1058
|
-
"--flex-dir-tablet":
|
|
1070
|
+
"--flex-dir-tablet": s({
|
|
1059
1071
|
stackedStyle: c(),
|
|
1060
1072
|
desktopStyle: "row"
|
|
1061
1073
|
})
|
|
1062
1074
|
};
|
|
1063
1075
|
}
|
|
1064
1076
|
function g(b) {
|
|
1065
|
-
const p = b === 0 ? 0 : t(), C = a(b),
|
|
1077
|
+
const p = b === 0 ? 0 : t(), C = a(b), V = `${p}px`, k = "100%", I = 0;
|
|
1066
1078
|
return {
|
|
1067
1079
|
...{
|
|
1068
1080
|
display: "flex",
|
|
@@ -1070,29 +1082,29 @@ function Mt(e) {
|
|
|
1070
1082
|
alignItems: "stretch"
|
|
1071
1083
|
},
|
|
1072
1084
|
width: C,
|
|
1073
|
-
["marginLeft"]:
|
|
1085
|
+
["marginLeft"]: V,
|
|
1074
1086
|
"--column-width-mobile": d({
|
|
1075
|
-
stackedStyle:
|
|
1087
|
+
stackedStyle: k,
|
|
1076
1088
|
desktopStyle: C
|
|
1077
1089
|
}),
|
|
1078
1090
|
"--column-margin-left-mobile": d({
|
|
1079
|
-
stackedStyle:
|
|
1080
|
-
desktopStyle:
|
|
1091
|
+
stackedStyle: I,
|
|
1092
|
+
desktopStyle: V
|
|
1081
1093
|
}),
|
|
1082
|
-
"--column-width-tablet":
|
|
1083
|
-
stackedStyle:
|
|
1094
|
+
"--column-width-tablet": s({
|
|
1095
|
+
stackedStyle: k,
|
|
1084
1096
|
desktopStyle: C
|
|
1085
1097
|
}),
|
|
1086
|
-
"--column-margin-left-tablet":
|
|
1087
|
-
stackedStyle:
|
|
1088
|
-
desktopStyle:
|
|
1098
|
+
"--column-margin-left-tablet": s({
|
|
1099
|
+
stackedStyle: I,
|
|
1100
|
+
desktopStyle: V
|
|
1089
1101
|
})
|
|
1090
1102
|
};
|
|
1091
1103
|
}
|
|
1092
1104
|
function m(b) {
|
|
1093
|
-
var C,
|
|
1105
|
+
var C, V;
|
|
1094
1106
|
return Oe(
|
|
1095
|
-
((
|
|
1107
|
+
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1096
1108
|
)[b].max;
|
|
1097
1109
|
}
|
|
1098
1110
|
function y() {
|
|
@@ -1128,18 +1140,18 @@ function Mt(e) {
|
|
|
1128
1140
|
...b.link ? {
|
|
1129
1141
|
href: b.link
|
|
1130
1142
|
} : {},
|
|
1131
|
-
[
|
|
1143
|
+
[_()]: "builder-column",
|
|
1132
1144
|
style: $e(g(p))
|
|
1133
1145
|
};
|
|
1134
1146
|
}
|
|
1135
|
-
return /* @__PURE__ */ W(
|
|
1147
|
+
return /* @__PURE__ */ W(T, { children: [
|
|
1136
1148
|
/* @__PURE__ */ W(
|
|
1137
1149
|
"div",
|
|
1138
1150
|
{
|
|
1139
|
-
className:
|
|
1151
|
+
className: Mt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
|
|
1140
1152
|
style: h(),
|
|
1141
1153
|
children: [
|
|
1142
|
-
/* @__PURE__ */
|
|
1154
|
+
/* @__PURE__ */ l(
|
|
1143
1155
|
G,
|
|
1144
1156
|
{
|
|
1145
1157
|
id: "builderio-columns",
|
|
@@ -1147,13 +1159,13 @@ function Mt(e) {
|
|
|
1147
1159
|
nonce: e.builderContext.nonce
|
|
1148
1160
|
}
|
|
1149
1161
|
),
|
|
1150
|
-
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */
|
|
1162
|
+
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
|
|
1151
1163
|
le,
|
|
1152
1164
|
{
|
|
1153
1165
|
TagName: o(b),
|
|
1154
1166
|
actionAttributes: {},
|
|
1155
1167
|
attributes: f(b, p),
|
|
1156
|
-
children: /* @__PURE__ */
|
|
1168
|
+
children: /* @__PURE__ */ l(
|
|
1157
1169
|
F,
|
|
1158
1170
|
{
|
|
1159
1171
|
path: `columns.${p}.blocks`,
|
|
@@ -1173,23 +1185,23 @@ function Mt(e) {
|
|
|
1173
1185
|
]
|
|
1174
1186
|
}
|
|
1175
1187
|
),
|
|
1176
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ l("style", { children: `.div-49f40bae {
|
|
1177
1189
|
display: flex;
|
|
1178
1190
|
line-height: normal;
|
|
1179
1191
|
}` })
|
|
1180
1192
|
] });
|
|
1181
1193
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return /* @__PURE__ */
|
|
1194
|
+
function qt(e) {
|
|
1195
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1184
1196
|
}
|
|
1185
1197
|
function pe(e) {
|
|
1186
1198
|
return e.replace(/http(s)?:/, "");
|
|
1187
1199
|
}
|
|
1188
|
-
function
|
|
1200
|
+
function zt(e = "", t, n) {
|
|
1189
1201
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1190
1202
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1191
1203
|
}
|
|
1192
|
-
function
|
|
1204
|
+
function Kt(e, t) {
|
|
1193
1205
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1194
1206
|
return e;
|
|
1195
1207
|
if (t === "master")
|
|
@@ -1208,12 +1220,12 @@ function Y(e) {
|
|
|
1208
1220
|
if (e.match(/builder\.io/)) {
|
|
1209
1221
|
let n = e;
|
|
1210
1222
|
const i = Number(e.split("?width=")[1]);
|
|
1211
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1223
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${zt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1212
1224
|
}
|
|
1213
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1225
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1214
1226
|
}
|
|
1215
|
-
function
|
|
1216
|
-
var o, r, a,
|
|
1227
|
+
function Jt(e) {
|
|
1228
|
+
var o, r, a, s, d, c;
|
|
1217
1229
|
function t() {
|
|
1218
1230
|
var m;
|
|
1219
1231
|
const g = e.image || e.src;
|
|
@@ -1245,11 +1257,11 @@ function Kt(e) {
|
|
|
1245
1257
|
return e.aspectRatio ? h : void 0;
|
|
1246
1258
|
}
|
|
1247
1259
|
return A(() => {
|
|
1248
|
-
}, []), /* @__PURE__ */ W(
|
|
1249
|
-
/* @__PURE__ */ W(
|
|
1260
|
+
}, []), /* @__PURE__ */ W(T, { children: [
|
|
1261
|
+
/* @__PURE__ */ W(T, { children: [
|
|
1250
1262
|
/* @__PURE__ */ W("picture", { children: [
|
|
1251
|
-
n() ? /* @__PURE__ */
|
|
1252
|
-
/* @__PURE__ */
|
|
1263
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1264
|
+
/* @__PURE__ */ l(
|
|
1253
1265
|
"img",
|
|
1254
1266
|
{
|
|
1255
1267
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1268,7 +1280,7 @@ function Kt(e) {
|
|
|
1268
1280
|
}
|
|
1269
1281
|
)
|
|
1270
1282
|
] }),
|
|
1271
|
-
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */
|
|
1283
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1272
1284
|
"div",
|
|
1273
1285
|
{
|
|
1274
1286
|
className: "builder-image-sizer div-c071ff08",
|
|
@@ -1277,10 +1289,10 @@ function Kt(e) {
|
|
|
1277
1289
|
}
|
|
1278
1290
|
}
|
|
1279
1291
|
) : null,
|
|
1280
|
-
(
|
|
1281
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1292
|
+
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
|
|
1293
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-c071ff08-2", children: e.children }) : null
|
|
1282
1294
|
] }),
|
|
1283
|
-
/* @__PURE__ */
|
|
1295
|
+
/* @__PURE__ */ l("style", { children: `.img-c071ff08 {
|
|
1284
1296
|
opacity: 1;
|
|
1285
1297
|
transition: opacity 0.2s ease-in-out;
|
|
1286
1298
|
}.div-c071ff08 {
|
|
@@ -1299,8 +1311,8 @@ function Kt(e) {
|
|
|
1299
1311
|
}` })
|
|
1300
1312
|
] });
|
|
1301
1313
|
}
|
|
1302
|
-
function
|
|
1303
|
-
return /* @__PURE__ */
|
|
1314
|
+
function Gt(e) {
|
|
1315
|
+
return /* @__PURE__ */ l(
|
|
1304
1316
|
"section",
|
|
1305
1317
|
{
|
|
1306
1318
|
...e.attributes,
|
|
@@ -1380,7 +1392,7 @@ const Q = {
|
|
|
1380
1392
|
}
|
|
1381
1393
|
}
|
|
1382
1394
|
}]
|
|
1383
|
-
},
|
|
1395
|
+
}, Yt = {
|
|
1384
1396
|
name: "Builder:Accordion",
|
|
1385
1397
|
canHaveChildren: !0,
|
|
1386
1398
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1445,9 +1457,9 @@ const Q = {
|
|
|
1445
1457
|
builderLinkComponent: !0
|
|
1446
1458
|
}
|
|
1447
1459
|
}, ye = (e) => e.toString();
|
|
1448
|
-
function
|
|
1460
|
+
function Qt(e) {
|
|
1449
1461
|
var g;
|
|
1450
|
-
const [t, n] =
|
|
1462
|
+
const [t, n] = E(() => []);
|
|
1451
1463
|
function i() {
|
|
1452
1464
|
return !!(e.grid || e.oneAtATime);
|
|
1453
1465
|
}
|
|
@@ -1479,7 +1491,7 @@ function Yt(e) {
|
|
|
1479
1491
|
function a(m) {
|
|
1480
1492
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1481
1493
|
}
|
|
1482
|
-
function
|
|
1494
|
+
function s(m) {
|
|
1483
1495
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1484
1496
|
}
|
|
1485
1497
|
function d() {
|
|
@@ -1523,8 +1535,8 @@ function Yt(e) {
|
|
|
1523
1535
|
function h(m) {
|
|
1524
1536
|
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1525
1537
|
}
|
|
1526
|
-
return /* @__PURE__ */
|
|
1527
|
-
/* @__PURE__ */
|
|
1538
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(T, { children: [
|
|
1539
|
+
/* @__PURE__ */ l(
|
|
1528
1540
|
"div",
|
|
1529
1541
|
{
|
|
1530
1542
|
className: a(y),
|
|
@@ -1537,7 +1549,7 @@ function Yt(e) {
|
|
|
1537
1549
|
},
|
|
1538
1550
|
"data-index": y,
|
|
1539
1551
|
onClick: (f) => h(y),
|
|
1540
|
-
children: /* @__PURE__ */
|
|
1552
|
+
children: /* @__PURE__ */ l(
|
|
1541
1553
|
F,
|
|
1542
1554
|
{
|
|
1543
1555
|
blocks: m.title,
|
|
@@ -1550,12 +1562,12 @@ function Yt(e) {
|
|
|
1550
1562
|
)
|
|
1551
1563
|
}
|
|
1552
1564
|
),
|
|
1553
|
-
t.includes(y) ? /* @__PURE__ */
|
|
1565
|
+
t.includes(y) ? /* @__PURE__ */ l(
|
|
1554
1566
|
"div",
|
|
1555
1567
|
{
|
|
1556
|
-
className:
|
|
1568
|
+
className: s(y),
|
|
1557
1569
|
style: c(),
|
|
1558
|
-
children: /* @__PURE__ */
|
|
1570
|
+
children: /* @__PURE__ */ l(
|
|
1559
1571
|
F,
|
|
1560
1572
|
{
|
|
1561
1573
|
blocks: m.detail,
|
|
@@ -1570,7 +1582,7 @@ function Yt(e) {
|
|
|
1570
1582
|
) : null
|
|
1571
1583
|
] })) });
|
|
1572
1584
|
}
|
|
1573
|
-
const
|
|
1585
|
+
const Xt = {
|
|
1574
1586
|
name: "Core:Button",
|
|
1575
1587
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1576
1588
|
defaultStyles: {
|
|
@@ -1606,7 +1618,7 @@ const Qt = {
|
|
|
1606
1618
|
shouldReceiveBuilderProps: {
|
|
1607
1619
|
builderLinkComponent: !0
|
|
1608
1620
|
}
|
|
1609
|
-
},
|
|
1621
|
+
}, Zt = {
|
|
1610
1622
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1611
1623
|
name: "Columns",
|
|
1612
1624
|
isRSC: !0,
|
|
@@ -1785,7 +1797,7 @@ const Qt = {
|
|
|
1785
1797
|
});
|
|
1786
1798
|
}
|
|
1787
1799
|
const n = e.get("columns");
|
|
1788
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((
|
|
1800
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1789
1801
|
}
|
|
1790
1802
|
}, {
|
|
1791
1803
|
name: "space",
|
|
@@ -1813,13 +1825,13 @@ const Qt = {
|
|
|
1813
1825
|
builderComponents: !0,
|
|
1814
1826
|
builderLinkComponent: !0
|
|
1815
1827
|
}
|
|
1816
|
-
},
|
|
1828
|
+
}, en = {
|
|
1817
1829
|
name: "Fragment",
|
|
1818
1830
|
static: !0,
|
|
1819
1831
|
hidden: !0,
|
|
1820
1832
|
canHaveChildren: !0,
|
|
1821
1833
|
noWrap: !0
|
|
1822
|
-
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
1834
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], tn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], nn = {
|
|
1823
1835
|
name: "Image",
|
|
1824
1836
|
static: !0,
|
|
1825
1837
|
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",
|
|
@@ -1839,7 +1851,7 @@ const Qt = {
|
|
|
1839
1851
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1840
1852
|
onChange: (e) => {
|
|
1841
1853
|
e.delete("srcset"), e.delete("noWebp");
|
|
1842
|
-
function n(a,
|
|
1854
|
+
function n(a, s = 6e4) {
|
|
1843
1855
|
return new Promise((d, c) => {
|
|
1844
1856
|
const h = document.createElement("img");
|
|
1845
1857
|
let g = !1;
|
|
@@ -1849,7 +1861,7 @@ const Qt = {
|
|
|
1849
1861
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1850
1862
|
}), h.src = a, setTimeout(() => {
|
|
1851
1863
|
g || c(new Error("Image load timed out"));
|
|
1852
|
-
},
|
|
1864
|
+
}, s);
|
|
1853
1865
|
});
|
|
1854
1866
|
}
|
|
1855
1867
|
function i(a) {
|
|
@@ -1860,8 +1872,8 @@ const Qt = {
|
|
|
1860
1872
|
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1861
1873
|
}), o && (!r || r === 0.7041))
|
|
1862
1874
|
return n(o).then((a) => {
|
|
1863
|
-
const
|
|
1864
|
-
e.get("image") === o && (!
|
|
1875
|
+
const s = e.get("aspectRatio");
|
|
1876
|
+
e.get("image") === o && (!s || s === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1865
1877
|
});
|
|
1866
1878
|
}
|
|
1867
1879
|
}, {
|
|
@@ -1927,7 +1939,7 @@ const Qt = {
|
|
|
1927
1939
|
shouldReceiveBuilderProps: {
|
|
1928
1940
|
builderBlock: !0
|
|
1929
1941
|
}
|
|
1930
|
-
},
|
|
1942
|
+
}, on = {
|
|
1931
1943
|
name: "Core:Section",
|
|
1932
1944
|
static: !0,
|
|
1933
1945
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1966,7 +1978,7 @@ const Qt = {
|
|
|
1966
1978
|
}
|
|
1967
1979
|
}
|
|
1968
1980
|
}]
|
|
1969
|
-
},
|
|
1981
|
+
}, an = {
|
|
1970
1982
|
name: "Slot",
|
|
1971
1983
|
isRSC: !0,
|
|
1972
1984
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1984,9 +1996,9 @@ const Qt = {
|
|
|
1984
1996
|
builderComponents: !0
|
|
1985
1997
|
}
|
|
1986
1998
|
};
|
|
1987
|
-
function
|
|
1999
|
+
function rn(e) {
|
|
1988
2000
|
var t, n, i;
|
|
1989
|
-
return /* @__PURE__ */
|
|
2001
|
+
return /* @__PURE__ */ l(
|
|
1990
2002
|
"div",
|
|
1991
2003
|
{
|
|
1992
2004
|
style: {
|
|
@@ -1995,7 +2007,7 @@ function an(e) {
|
|
|
1995
2007
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1996
2008
|
"builder-slot": e.name
|
|
1997
2009
|
},
|
|
1998
|
-
children: /* @__PURE__ */
|
|
2010
|
+
children: /* @__PURE__ */ l(
|
|
1999
2011
|
F,
|
|
2000
2012
|
{
|
|
2001
2013
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2008,7 +2020,7 @@ function an(e) {
|
|
|
2008
2020
|
}
|
|
2009
2021
|
);
|
|
2010
2022
|
}
|
|
2011
|
-
const
|
|
2023
|
+
const ln = {
|
|
2012
2024
|
name: "Symbol",
|
|
2013
2025
|
noWrap: !0,
|
|
2014
2026
|
static: !0,
|
|
@@ -2085,7 +2097,7 @@ const rn = {
|
|
|
2085
2097
|
text: "New tab content "
|
|
2086
2098
|
}
|
|
2087
2099
|
}
|
|
2088
|
-
},
|
|
2100
|
+
}, sn = {
|
|
2089
2101
|
name: "Builder: Tabs",
|
|
2090
2102
|
inputs: [{
|
|
2091
2103
|
name: "tabs",
|
|
@@ -2189,9 +2201,9 @@ const rn = {
|
|
|
2189
2201
|
builderLinkComponent: !0
|
|
2190
2202
|
}
|
|
2191
2203
|
};
|
|
2192
|
-
function
|
|
2204
|
+
function cn(e) {
|
|
2193
2205
|
var r;
|
|
2194
|
-
const [t, n] =
|
|
2206
|
+
const [t, n] = E(
|
|
2195
2207
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2196
2208
|
);
|
|
2197
2209
|
function i(a) {
|
|
@@ -2201,7 +2213,7 @@ function sn(e) {
|
|
|
2201
2213
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2202
2214
|
}
|
|
2203
2215
|
return /* @__PURE__ */ W("div", { children: [
|
|
2204
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ l(
|
|
2205
2217
|
"div",
|
|
2206
2218
|
{
|
|
2207
2219
|
className: "builder-tabs-wrap",
|
|
@@ -2211,19 +2223,19 @@ function sn(e) {
|
|
|
2211
2223
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2212
2224
|
overflow: "auto"
|
|
2213
2225
|
},
|
|
2214
|
-
children: (r = e.tabs) == null ? void 0 : r.map((a,
|
|
2226
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, s) => /* @__PURE__ */ l(
|
|
2215
2227
|
"span",
|
|
2216
2228
|
{
|
|
2217
|
-
className: `builder-tab-wrap ${t ===
|
|
2229
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2218
2230
|
style: {
|
|
2219
|
-
...t ===
|
|
2231
|
+
...t === s ? e.activeTabStyle : {}
|
|
2220
2232
|
},
|
|
2221
|
-
onClick: (d) => o(
|
|
2222
|
-
children: /* @__PURE__ */
|
|
2233
|
+
onClick: (d) => o(s),
|
|
2234
|
+
children: /* @__PURE__ */ l(
|
|
2223
2235
|
F,
|
|
2224
2236
|
{
|
|
2225
2237
|
parent: e.builderBlock.id,
|
|
2226
|
-
path: `tabs.${
|
|
2238
|
+
path: `tabs.${s}.label`,
|
|
2227
2239
|
blocks: a.label,
|
|
2228
2240
|
context: e.builderContext,
|
|
2229
2241
|
registeredComponents: e.builderComponents,
|
|
@@ -2231,11 +2243,11 @@ function sn(e) {
|
|
|
2231
2243
|
}
|
|
2232
2244
|
)
|
|
2233
2245
|
},
|
|
2234
|
-
|
|
2246
|
+
s
|
|
2235
2247
|
))
|
|
2236
2248
|
}
|
|
2237
2249
|
),
|
|
2238
|
-
i(t) ? /* @__PURE__ */
|
|
2250
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2239
2251
|
F,
|
|
2240
2252
|
{
|
|
2241
2253
|
parent: e.builderBlock.id,
|
|
@@ -2248,7 +2260,7 @@ function sn(e) {
|
|
|
2248
2260
|
) }) : null
|
|
2249
2261
|
] });
|
|
2250
2262
|
}
|
|
2251
|
-
const
|
|
2263
|
+
const dn = {
|
|
2252
2264
|
shouldReceiveBuilderProps: {
|
|
2253
2265
|
builderBlock: !1,
|
|
2254
2266
|
builderContext: !0
|
|
@@ -2271,38 +2283,20 @@ const cn = {
|
|
|
2271
2283
|
textAlign: "center"
|
|
2272
2284
|
}
|
|
2273
2285
|
};
|
|
2274
|
-
function
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
const n = e.builderContext, {
|
|
2278
|
-
context: i,
|
|
2279
|
-
localState: o,
|
|
2280
|
-
rootState: r,
|
|
2281
|
-
rootSetState: a
|
|
2282
|
-
} = n;
|
|
2283
|
-
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2284
|
-
/{{([^}]+)}}/g,
|
|
2285
|
-
(d, c) => D({
|
|
2286
|
-
code: c,
|
|
2287
|
-
context: i,
|
|
2288
|
-
localState: o,
|
|
2289
|
-
rootState: r,
|
|
2290
|
-
rootSetState: a
|
|
2291
|
-
})
|
|
2292
|
-
);
|
|
2293
|
-
}
|
|
2294
|
-
return /* @__PURE__ */ s(
|
|
2286
|
+
function un(e) {
|
|
2287
|
+
var t;
|
|
2288
|
+
return /* @__PURE__ */ l(
|
|
2295
2289
|
"div",
|
|
2296
2290
|
{
|
|
2297
2291
|
className: "builder-text",
|
|
2298
|
-
dangerouslySetInnerHTML: { __html: t() },
|
|
2292
|
+
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
2299
2293
|
style: {
|
|
2300
2294
|
outline: "none"
|
|
2301
2295
|
}
|
|
2302
2296
|
}
|
|
2303
2297
|
);
|
|
2304
2298
|
}
|
|
2305
|
-
const
|
|
2299
|
+
const mn = {
|
|
2306
2300
|
name: "Custom Code",
|
|
2307
2301
|
static: !0,
|
|
2308
2302
|
requiredPermissions: ["editCode"],
|
|
@@ -2325,11 +2319,11 @@ const un = {
|
|
|
2325
2319
|
advanced: !0
|
|
2326
2320
|
}]
|
|
2327
2321
|
};
|
|
2328
|
-
function
|
|
2329
|
-
const t =
|
|
2322
|
+
function fn(e) {
|
|
2323
|
+
const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []);
|
|
2330
2324
|
return A(() => {
|
|
2331
|
-
var
|
|
2332
|
-
if (!((
|
|
2325
|
+
var s;
|
|
2326
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2333
2327
|
return;
|
|
2334
2328
|
const a = t.current.getElementsByTagName("script");
|
|
2335
2329
|
for (let d = 0; d < a.length; d++) {
|
|
@@ -2354,7 +2348,7 @@ function mn(e) {
|
|
|
2354
2348
|
}
|
|
2355
2349
|
}
|
|
2356
2350
|
}
|
|
2357
|
-
}, []), /* @__PURE__ */
|
|
2351
|
+
}, []), /* @__PURE__ */ l(
|
|
2358
2352
|
"div",
|
|
2359
2353
|
{
|
|
2360
2354
|
ref: t,
|
|
@@ -2363,7 +2357,7 @@ function mn(e) {
|
|
|
2363
2357
|
}
|
|
2364
2358
|
);
|
|
2365
2359
|
}
|
|
2366
|
-
const
|
|
2360
|
+
const hn = {
|
|
2367
2361
|
name: "Embed",
|
|
2368
2362
|
static: !0,
|
|
2369
2363
|
inputs: [{
|
|
@@ -2378,9 +2372,9 @@ const fn = {
|
|
|
2378
2372
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2379
2373
|
hideFromUI: !0
|
|
2380
2374
|
}]
|
|
2381
|
-
},
|
|
2382
|
-
function
|
|
2383
|
-
const t =
|
|
2375
|
+
}, gn = ["text/javascript", "application/javascript", "application/ecmascript"], bn = (e) => gn.includes(e.type);
|
|
2376
|
+
function pn(e) {
|
|
2377
|
+
const t = D(null), [n, i] = E(() => []), [o, r] = E(() => []), [a, s] = E(() => !1);
|
|
2384
2378
|
function d() {
|
|
2385
2379
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2386
2380
|
return;
|
|
@@ -2391,7 +2385,7 @@ function bn(e) {
|
|
|
2391
2385
|
n.push(g.src);
|
|
2392
2386
|
const m = document.createElement("script");
|
|
2393
2387
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2394
|
-
} else if (
|
|
2388
|
+
} else if (bn(g) && !o.includes(g.innerText))
|
|
2395
2389
|
try {
|
|
2396
2390
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2397
2391
|
} catch (m) {
|
|
@@ -2400,8 +2394,8 @@ function bn(e) {
|
|
|
2400
2394
|
}
|
|
2401
2395
|
}
|
|
2402
2396
|
return A(() => {
|
|
2403
|
-
t.current && !a && (
|
|
2404
|
-
}, [t.current, a]), /* @__PURE__ */
|
|
2397
|
+
t.current && !a && (s(!0), d());
|
|
2398
|
+
}, [t.current, a]), /* @__PURE__ */ l(
|
|
2405
2399
|
"div",
|
|
2406
2400
|
{
|
|
2407
2401
|
className: "builder-embed",
|
|
@@ -2410,7 +2404,7 @@ function bn(e) {
|
|
|
2410
2404
|
}
|
|
2411
2405
|
);
|
|
2412
2406
|
}
|
|
2413
|
-
const
|
|
2407
|
+
const yn = {
|
|
2414
2408
|
name: "Form:Form",
|
|
2415
2409
|
// editableTags: ['builder-form-error']
|
|
2416
2410
|
defaults: {
|
|
@@ -2647,13 +2641,13 @@ const pn = {
|
|
|
2647
2641
|
builderComponents: !0,
|
|
2648
2642
|
builderLinkComponent: !0
|
|
2649
2643
|
}
|
|
2650
|
-
},
|
|
2644
|
+
}, xn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], vn = () => {
|
|
2651
2645
|
const e = process.env.NODE_ENV || "production";
|
|
2652
|
-
return
|
|
2646
|
+
return xn.includes(e) ? e : "production";
|
|
2653
2647
|
};
|
|
2654
|
-
function
|
|
2648
|
+
function Sn(e) {
|
|
2655
2649
|
var g, m;
|
|
2656
|
-
const t =
|
|
2650
|
+
const t = D(null), [n, i] = E(() => "unsubmitted"), [o, r] = E(() => null), [a, s] = E(() => "");
|
|
2657
2651
|
function d(y) {
|
|
2658
2652
|
var v, x;
|
|
2659
2653
|
const f = {
|
|
@@ -2678,86 +2672,86 @@ function vn(e) {
|
|
|
2678
2672
|
y.preventDefault();
|
|
2679
2673
|
const x = y.currentTarget || y.target, b = e.customHeaders || {};
|
|
2680
2674
|
let p;
|
|
2681
|
-
const C = new FormData(x),
|
|
2682
|
-
let
|
|
2683
|
-
const
|
|
2675
|
+
const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2676
|
+
let S;
|
|
2677
|
+
const P = u.name;
|
|
2684
2678
|
if (u instanceof HTMLInputElement)
|
|
2685
2679
|
if (u.type === "radio") {
|
|
2686
2680
|
if (u.checked)
|
|
2687
|
-
return
|
|
2688
|
-
key:
|
|
2689
|
-
value:
|
|
2681
|
+
return S = u.name, {
|
|
2682
|
+
key: P,
|
|
2683
|
+
value: S
|
|
2690
2684
|
};
|
|
2691
2685
|
} else if (u.type === "checkbox")
|
|
2692
|
-
|
|
2686
|
+
S = u.checked;
|
|
2693
2687
|
else if (u.type === "number" || u.type === "range") {
|
|
2694
|
-
const
|
|
2695
|
-
isNaN(
|
|
2688
|
+
const w = u.valueAsNumber;
|
|
2689
|
+
isNaN(w) || (S = w);
|
|
2696
2690
|
} else
|
|
2697
|
-
u.type === "file" ?
|
|
2691
|
+
u.type === "file" ? S = u.files : S = u.value;
|
|
2698
2692
|
else
|
|
2699
|
-
|
|
2693
|
+
S = u.value;
|
|
2700
2694
|
return {
|
|
2701
|
-
key:
|
|
2702
|
-
value:
|
|
2695
|
+
key: P,
|
|
2696
|
+
value: S
|
|
2703
2697
|
};
|
|
2704
2698
|
});
|
|
2705
|
-
let
|
|
2706
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2707
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2708
|
-
}),
|
|
2699
|
+
let k = e.contentType;
|
|
2700
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
|
|
2701
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2702
|
+
}), k !== "application/json")
|
|
2709
2703
|
p = C;
|
|
2710
2704
|
else {
|
|
2711
2705
|
const u = {};
|
|
2712
|
-
Array.from(
|
|
2713
|
-
Re(u,
|
|
2706
|
+
Array.from(V).forEach(({ value: S, key: P }) => {
|
|
2707
|
+
Re(u, P, S);
|
|
2714
2708
|
}), p = JSON.stringify(u);
|
|
2715
2709
|
}
|
|
2716
|
-
|
|
2717
|
-
const
|
|
2718
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2710
|
+
k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
|
|
2711
|
+
const I = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2712
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2719
2713
|
return;
|
|
2720
2714
|
i("sending");
|
|
2721
|
-
const
|
|
2715
|
+
const R = `${vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2722
2716
|
e.sendSubmissionsToEmail || ""
|
|
2723
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2724
|
-
Te(
|
|
2717
|
+
)}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
|
|
2718
|
+
Te(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
|
|
2725
2719
|
async (u) => {
|
|
2726
|
-
let
|
|
2727
|
-
const
|
|
2728
|
-
if (
|
|
2729
|
-
let
|
|
2730
|
-
|
|
2720
|
+
let S;
|
|
2721
|
+
const P = u.headers.get("content-type");
|
|
2722
|
+
if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2723
|
+
let w = Be(S, e.errorMessagePath);
|
|
2724
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), s(w), d({ formErrorMessage: w }));
|
|
2731
2725
|
}
|
|
2732
|
-
if (r(
|
|
2733
|
-
const
|
|
2734
|
-
detail: { res: u, body:
|
|
2726
|
+
if (r(S), i(u.ok ? "success" : "error"), u.ok) {
|
|
2727
|
+
const w = new CustomEvent("submit:success", {
|
|
2728
|
+
detail: { res: u, body: S }
|
|
2735
2729
|
});
|
|
2736
2730
|
if (t.current) {
|
|
2737
|
-
if (t.current.dispatchEvent(
|
|
2731
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2738
2732
|
return;
|
|
2739
2733
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2740
2734
|
}
|
|
2741
2735
|
if (e.successUrl)
|
|
2742
2736
|
if (t.current) {
|
|
2743
|
-
const
|
|
2737
|
+
const L = new CustomEvent("route", {
|
|
2744
2738
|
detail: { url: e.successUrl }
|
|
2745
2739
|
});
|
|
2746
|
-
t.current.dispatchEvent(
|
|
2740
|
+
t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
|
|
2747
2741
|
} else
|
|
2748
2742
|
location.href = e.successUrl;
|
|
2749
2743
|
}
|
|
2750
2744
|
},
|
|
2751
2745
|
(u) => {
|
|
2752
|
-
const
|
|
2746
|
+
const S = new CustomEvent("submit:error", {
|
|
2753
2747
|
detail: { error: u }
|
|
2754
2748
|
});
|
|
2755
|
-
t.current && (t.current.dispatchEvent(
|
|
2749
|
+
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (r(u), i("error"));
|
|
2756
2750
|
}
|
|
2757
2751
|
);
|
|
2758
2752
|
}
|
|
2759
2753
|
}
|
|
2760
|
-
return /* @__PURE__ */ W(
|
|
2754
|
+
return /* @__PURE__ */ W(T, { children: [
|
|
2761
2755
|
" ",
|
|
2762
2756
|
/* @__PURE__ */ W(
|
|
2763
2757
|
"form",
|
|
@@ -2770,7 +2764,7 @@ function vn(e) {
|
|
|
2770
2764
|
onSubmit: (y) => h(y),
|
|
2771
2765
|
...e.attributes,
|
|
2772
2766
|
children: [
|
|
2773
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2767
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
|
|
2774
2768
|
H,
|
|
2775
2769
|
{
|
|
2776
2770
|
block: y,
|
|
@@ -2780,7 +2774,7 @@ function vn(e) {
|
|
|
2780
2774
|
},
|
|
2781
2775
|
`form-block-${f}`
|
|
2782
2776
|
)) }) : null,
|
|
2783
|
-
c() === "error" ? /* @__PURE__ */
|
|
2777
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2784
2778
|
F,
|
|
2785
2779
|
{
|
|
2786
2780
|
path: "errorMessage",
|
|
@@ -2788,7 +2782,7 @@ function vn(e) {
|
|
|
2788
2782
|
context: e.builderContext
|
|
2789
2783
|
}
|
|
2790
2784
|
) : null,
|
|
2791
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2785
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2792
2786
|
F,
|
|
2793
2787
|
{
|
|
2794
2788
|
path: "sendingMessage",
|
|
@@ -2796,8 +2790,8 @@ function vn(e) {
|
|
|
2796
2790
|
context: e.builderContext
|
|
2797
2791
|
}
|
|
2798
2792
|
) : null,
|
|
2799
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2800
|
-
c() === "success" ? /* @__PURE__ */
|
|
2793
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
|
|
2794
|
+
c() === "success" ? /* @__PURE__ */ l(
|
|
2801
2795
|
F,
|
|
2802
2796
|
{
|
|
2803
2797
|
path: "successMessage",
|
|
@@ -2809,11 +2803,11 @@ function vn(e) {
|
|
|
2809
2803
|
}
|
|
2810
2804
|
),
|
|
2811
2805
|
" ",
|
|
2812
|
-
/* @__PURE__ */
|
|
2806
|
+
/* @__PURE__ */ l("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2813
2807
|
" "
|
|
2814
2808
|
] });
|
|
2815
2809
|
}
|
|
2816
|
-
const
|
|
2810
|
+
const kn = {
|
|
2817
2811
|
name: "Form:Input",
|
|
2818
2812
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2819
2813
|
inputs: [
|
|
@@ -2865,7 +2859,7 @@ const Sn = {
|
|
|
2865
2859
|
borderColor: "#ccc"
|
|
2866
2860
|
}
|
|
2867
2861
|
};
|
|
2868
|
-
function
|
|
2862
|
+
function Cn(e) {
|
|
2869
2863
|
return /* @__PURE__ */ Ee(
|
|
2870
2864
|
"input",
|
|
2871
2865
|
{
|
|
@@ -2880,7 +2874,7 @@ function kn(e) {
|
|
|
2880
2874
|
}
|
|
2881
2875
|
);
|
|
2882
2876
|
}
|
|
2883
|
-
const
|
|
2877
|
+
const Tn = {
|
|
2884
2878
|
name: "Form:Select",
|
|
2885
2879
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2886
2880
|
defaultStyles: {
|
|
@@ -2923,7 +2917,7 @@ const Cn = {
|
|
|
2923
2917
|
static: !0,
|
|
2924
2918
|
noWrap: !0
|
|
2925
2919
|
};
|
|
2926
|
-
function
|
|
2920
|
+
function In(e) {
|
|
2927
2921
|
var t;
|
|
2928
2922
|
return /* @__PURE__ */ Ee(
|
|
2929
2923
|
"select",
|
|
@@ -2935,10 +2929,10 @@ function Tn(e) {
|
|
|
2935
2929
|
name: e.name,
|
|
2936
2930
|
required: e.required
|
|
2937
2931
|
},
|
|
2938
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2932
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2939
2933
|
);
|
|
2940
2934
|
}
|
|
2941
|
-
const
|
|
2935
|
+
const wn = {
|
|
2942
2936
|
name: "Form:SubmitButton",
|
|
2943
2937
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2944
2938
|
defaultStyles: {
|
|
@@ -2964,10 +2958,10 @@ const In = {
|
|
|
2964
2958
|
// TODO: defaultChildren
|
|
2965
2959
|
// canHaveChildren: true,
|
|
2966
2960
|
};
|
|
2967
|
-
function
|
|
2968
|
-
return /* @__PURE__ */
|
|
2961
|
+
function En(e) {
|
|
2962
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2969
2963
|
}
|
|
2970
|
-
const
|
|
2964
|
+
const Rn = {
|
|
2971
2965
|
name: "Form:TextArea",
|
|
2972
2966
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2973
2967
|
inputs: [{
|
|
@@ -3004,8 +2998,8 @@ const En = {
|
|
|
3004
2998
|
static: !0,
|
|
3005
2999
|
noWrap: !0
|
|
3006
3000
|
};
|
|
3007
|
-
function
|
|
3008
|
-
return /* @__PURE__ */
|
|
3001
|
+
function Pn(e) {
|
|
3002
|
+
return /* @__PURE__ */ l(
|
|
3009
3003
|
"textarea",
|
|
3010
3004
|
{
|
|
3011
3005
|
...e.attributes,
|
|
@@ -3017,7 +3011,7 @@ function Rn(e) {
|
|
|
3017
3011
|
}
|
|
3018
3012
|
);
|
|
3019
3013
|
}
|
|
3020
|
-
const
|
|
3014
|
+
const Bn = {
|
|
3021
3015
|
// friendlyName?
|
|
3022
3016
|
name: "Raw:Img",
|
|
3023
3017
|
hideFromInsertMenu: !0,
|
|
@@ -3032,8 +3026,8 @@ const Pn = {
|
|
|
3032
3026
|
noWrap: !0,
|
|
3033
3027
|
static: !0
|
|
3034
3028
|
};
|
|
3035
|
-
function
|
|
3036
|
-
return /* @__PURE__ */
|
|
3029
|
+
function Vn(e) {
|
|
3030
|
+
return /* @__PURE__ */ l(
|
|
3037
3031
|
"img",
|
|
3038
3032
|
{
|
|
3039
3033
|
style: {
|
|
@@ -3047,7 +3041,7 @@ function Bn(e) {
|
|
|
3047
3041
|
N() && e.imgSrc || "default-key"
|
|
3048
3042
|
);
|
|
3049
3043
|
}
|
|
3050
|
-
const
|
|
3044
|
+
const An = {
|
|
3051
3045
|
name: "Video",
|
|
3052
3046
|
canHaveChildren: !0,
|
|
3053
3047
|
defaultStyles: {
|
|
@@ -3058,7 +3052,7 @@ const Vn = {
|
|
|
3058
3052
|
inputs: [{
|
|
3059
3053
|
name: "video",
|
|
3060
3054
|
type: "file",
|
|
3061
|
-
allowedFileTypes:
|
|
3055
|
+
allowedFileTypes: tn,
|
|
3062
3056
|
bubble: !0,
|
|
3063
3057
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3064
3058
|
required: !0
|
|
@@ -3132,8 +3126,8 @@ const Vn = {
|
|
|
3132
3126
|
builderBlock: !0
|
|
3133
3127
|
}
|
|
3134
3128
|
};
|
|
3135
|
-
function
|
|
3136
|
-
var i, o, r, a,
|
|
3129
|
+
function Wn(e) {
|
|
3130
|
+
var i, o, r, a, s, d, c;
|
|
3137
3131
|
function t() {
|
|
3138
3132
|
return {
|
|
3139
3133
|
...e.autoPlay === !0 ? {
|
|
@@ -3165,7 +3159,7 @@ function An(e) {
|
|
|
3165
3159
|
position: "relative"
|
|
3166
3160
|
},
|
|
3167
3161
|
children: [
|
|
3168
|
-
/* @__PURE__ */
|
|
3162
|
+
/* @__PURE__ */ l(
|
|
3169
3163
|
"video",
|
|
3170
3164
|
{
|
|
3171
3165
|
className: "builder-video",
|
|
@@ -3187,10 +3181,10 @@ function An(e) {
|
|
|
3187
3181
|
},
|
|
3188
3182
|
src: e.video || "no-src",
|
|
3189
3183
|
poster: e.posterImage,
|
|
3190
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3184
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3191
3185
|
}
|
|
3192
3186
|
),
|
|
3193
|
-
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */
|
|
3187
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ l(
|
|
3194
3188
|
"div",
|
|
3195
3189
|
{
|
|
3196
3190
|
style: {
|
|
@@ -3201,7 +3195,7 @@ function An(e) {
|
|
|
3201
3195
|
}
|
|
3202
3196
|
}
|
|
3203
3197
|
) : null,
|
|
3204
|
-
(
|
|
3198
|
+
(s = (a = e.builderBlock) == null ? void 0 : a.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3205
3199
|
"div",
|
|
3206
3200
|
{
|
|
3207
3201
|
style: {
|
|
@@ -3212,7 +3206,7 @@ function An(e) {
|
|
|
3212
3206
|
children: e.children
|
|
3213
3207
|
}
|
|
3214
3208
|
) : null,
|
|
3215
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3209
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
3216
3210
|
"div",
|
|
3217
3211
|
{
|
|
3218
3212
|
style: {
|
|
@@ -3233,64 +3227,64 @@ function An(e) {
|
|
|
3233
3227
|
}
|
|
3234
3228
|
);
|
|
3235
3229
|
}
|
|
3236
|
-
const
|
|
3237
|
-
component:
|
|
3238
|
-
...
|
|
3230
|
+
const Nn = () => [{
|
|
3231
|
+
component: fn,
|
|
3232
|
+
...mn
|
|
3239
3233
|
}, {
|
|
3240
|
-
component:
|
|
3241
|
-
...
|
|
3234
|
+
component: pn,
|
|
3235
|
+
...hn
|
|
3242
3236
|
}, {
|
|
3243
|
-
component:
|
|
3244
|
-
...
|
|
3237
|
+
component: Sn,
|
|
3238
|
+
...yn
|
|
3245
3239
|
}, {
|
|
3246
|
-
component:
|
|
3247
|
-
...
|
|
3240
|
+
component: Cn,
|
|
3241
|
+
...kn
|
|
3248
3242
|
}, {
|
|
3249
|
-
component:
|
|
3250
|
-
...
|
|
3243
|
+
component: En,
|
|
3244
|
+
...wn
|
|
3251
3245
|
}, {
|
|
3252
|
-
component:
|
|
3253
|
-
...
|
|
3246
|
+
component: In,
|
|
3247
|
+
...Tn
|
|
3254
3248
|
}, {
|
|
3255
|
-
component:
|
|
3256
|
-
...
|
|
3249
|
+
component: Pn,
|
|
3250
|
+
...Rn
|
|
3257
3251
|
}, {
|
|
3258
|
-
component:
|
|
3259
|
-
...
|
|
3252
|
+
component: Vn,
|
|
3253
|
+
...Bn
|
|
3260
3254
|
}, {
|
|
3261
|
-
component:
|
|
3262
|
-
...
|
|
3255
|
+
component: Wn,
|
|
3256
|
+
...An
|
|
3263
3257
|
}], xe = () => [{
|
|
3264
3258
|
component: it,
|
|
3265
|
-
...Qt
|
|
3266
|
-
}, {
|
|
3267
|
-
component: Mt,
|
|
3268
3259
|
...Xt
|
|
3269
3260
|
}, {
|
|
3270
3261
|
component: jt,
|
|
3271
3262
|
...Zt
|
|
3272
3263
|
}, {
|
|
3273
|
-
component:
|
|
3274
|
-
...
|
|
3264
|
+
component: qt,
|
|
3265
|
+
...en
|
|
3275
3266
|
}, {
|
|
3276
3267
|
component: Jt,
|
|
3277
3268
|
...nn
|
|
3278
3269
|
}, {
|
|
3279
|
-
component:
|
|
3270
|
+
component: Gt,
|
|
3280
3271
|
...on
|
|
3281
3272
|
}, {
|
|
3282
|
-
component:
|
|
3283
|
-
...
|
|
3284
|
-
}, {
|
|
3285
|
-
component: dn,
|
|
3286
|
-
...cn
|
|
3273
|
+
component: rn,
|
|
3274
|
+
...an
|
|
3287
3275
|
}, {
|
|
3288
|
-
component:
|
|
3276
|
+
component: oi,
|
|
3289
3277
|
...ln
|
|
3290
3278
|
}, {
|
|
3291
|
-
component:
|
|
3292
|
-
...
|
|
3293
|
-
},
|
|
3279
|
+
component: un,
|
|
3280
|
+
...dn
|
|
3281
|
+
}, {
|
|
3282
|
+
component: cn,
|
|
3283
|
+
...sn
|
|
3284
|
+
}, {
|
|
3285
|
+
component: Qt,
|
|
3286
|
+
...Yt
|
|
3287
|
+
}, ...Nn()], Fn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3294
3288
|
function getAndSetVariantId() {
|
|
3295
3289
|
function setCookie(name, value, days) {
|
|
3296
3290
|
let expires = '';
|
|
@@ -3346,7 +3340,7 @@ const Wn = () => [{
|
|
|
3346
3340
|
}).join('');
|
|
3347
3341
|
styleEl.innerHTML = newStyleStr;
|
|
3348
3342
|
}
|
|
3349
|
-
}`,
|
|
3343
|
+
}`, $n = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3350
3344
|
if (!navigator.cookieEnabled) {
|
|
3351
3345
|
return;
|
|
3352
3346
|
}
|
|
@@ -3380,27 +3374,27 @@ const Wn = () => [{
|
|
|
3380
3374
|
thisScriptEl?.remove();
|
|
3381
3375
|
}
|
|
3382
3376
|
return;
|
|
3383
|
-
}`,
|
|
3377
|
+
}`, _e = "builderIoAbTest", He = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3384
3378
|
...t,
|
|
3385
3379
|
testVariationId: t.id,
|
|
3386
3380
|
id: e == null ? void 0 : e.id
|
|
3387
|
-
})),
|
|
3381
|
+
})), Ln = ({
|
|
3388
3382
|
canTrack: e,
|
|
3389
3383
|
content: t
|
|
3390
|
-
}) => !(!(j(t).length > 0) || !e || q()),
|
|
3391
|
-
window.${He} = ${Nn}
|
|
3384
|
+
}) => !(!(j(t).length > 0) || !e || q()), Dn = (e) => e === "react" || e === "reactNative", Me = Dn($), On = () => `
|
|
3392
3385
|
window.${_e} = ${Fn}
|
|
3393
|
-
|
|
3394
|
-
|
|
3386
|
+
window.${He} = ${$n}
|
|
3387
|
+
`, Un = (e, t) => `
|
|
3388
|
+
window.${_e}(
|
|
3395
3389
|
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3396
|
-
)`,
|
|
3390
|
+
)`, _n = ({
|
|
3397
3391
|
contentId: e,
|
|
3398
3392
|
variationId: t
|
|
3399
|
-
}) => `window.${
|
|
3393
|
+
}) => `window.${He}(
|
|
3400
3394
|
"${t}", "${e}", ${Me}
|
|
3401
3395
|
)`;
|
|
3402
3396
|
function ie(e) {
|
|
3403
|
-
return /* @__PURE__ */
|
|
3397
|
+
return /* @__PURE__ */ l(
|
|
3404
3398
|
"script",
|
|
3405
3399
|
{
|
|
3406
3400
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3423,7 +3417,7 @@ const Hn = (e, t, n = !0) => {
|
|
|
3423
3417
|
return i;
|
|
3424
3418
|
} while (i = i.parentElement);
|
|
3425
3419
|
return null;
|
|
3426
|
-
},
|
|
3420
|
+
}, Mn = (e) => Hn(e, (t) => {
|
|
3427
3421
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3428
3422
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3429
3423
|
}), Se = ({
|
|
@@ -3435,8 +3429,8 @@ const Hn = (e, t, n = !0) => {
|
|
|
3435
3429
|
x: r,
|
|
3436
3430
|
y: a
|
|
3437
3431
|
};
|
|
3438
|
-
},
|
|
3439
|
-
const t = e.target, n = t &&
|
|
3432
|
+
}, jn = (e) => {
|
|
3433
|
+
const t = e.target, n = t && Mn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3440
3434
|
return {
|
|
3441
3435
|
targetBuilderElement: i || void 0,
|
|
3442
3436
|
metadata: {
|
|
@@ -3451,7 +3445,7 @@ const Hn = (e, t, n = !0) => {
|
|
|
3451
3445
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3452
3446
|
}
|
|
3453
3447
|
};
|
|
3454
|
-
},
|
|
3448
|
+
}, qn = ["svelte", "qwik", "vue"], ke = () => qn.includes($) && (N() || ae()), zn = (e) => {
|
|
3455
3449
|
var r, a;
|
|
3456
3450
|
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;
|
|
3457
3451
|
let o = "";
|
|
@@ -3463,29 +3457,29 @@ font-display: fallback;
|
|
|
3463
3457
|
font-weight: 400;
|
|
3464
3458
|
}
|
|
3465
3459
|
`.trim()), e.files)
|
|
3466
|
-
for (const
|
|
3467
|
-
if (!(String(Number(
|
|
3460
|
+
for (const s in e.files) {
|
|
3461
|
+
if (!(String(Number(s)) === s))
|
|
3468
3462
|
continue;
|
|
3469
|
-
const c = e.files[
|
|
3463
|
+
const c = e.files[s];
|
|
3470
3464
|
c && c !== i && (o += `
|
|
3471
3465
|
@font-face {
|
|
3472
3466
|
font-family: "${t}";
|
|
3473
3467
|
src: url('${c}') format('woff2');
|
|
3474
3468
|
font-display: fallback;
|
|
3475
|
-
font-weight: ${
|
|
3469
|
+
font-weight: ${s};
|
|
3476
3470
|
}
|
|
3477
3471
|
`.trim());
|
|
3478
3472
|
}
|
|
3479
3473
|
return o;
|
|
3480
|
-
},
|
|
3474
|
+
}, Kn = ({
|
|
3481
3475
|
customFonts: e
|
|
3482
3476
|
}) => {
|
|
3483
3477
|
var t;
|
|
3484
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3485
|
-
},
|
|
3478
|
+
return ((t = e == null ? void 0 : e.map((n) => zn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3479
|
+
}, Jn = ({
|
|
3486
3480
|
cssCode: e,
|
|
3487
3481
|
contentId: t
|
|
3488
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3482
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Gn = `
|
|
3489
3483
|
.builder-button {
|
|
3490
3484
|
all: unset;
|
|
3491
3485
|
}
|
|
@@ -3502,39 +3496,39 @@ font-weight: ${l};
|
|
|
3502
3496
|
text-align: inherit;
|
|
3503
3497
|
font-family: inherit;
|
|
3504
3498
|
}
|
|
3505
|
-
`,
|
|
3506
|
-
function
|
|
3507
|
-
var p, C,
|
|
3508
|
-
const t =
|
|
3509
|
-
function n(
|
|
3510
|
-
var
|
|
3511
|
-
const
|
|
3499
|
+
`, Yn = (e) => e ? "" : Gn, Qn = (e) => `variant-${e}`;
|
|
3500
|
+
function Xn(e) {
|
|
3501
|
+
var p, C, V;
|
|
3502
|
+
const t = D(null);
|
|
3503
|
+
function n(k) {
|
|
3504
|
+
var R, B;
|
|
3505
|
+
const I = {
|
|
3512
3506
|
...e.builderContextSignal.rootState,
|
|
3513
|
-
...
|
|
3507
|
+
...k
|
|
3514
3508
|
};
|
|
3515
|
-
e.builderContextSignal.rootSetState ? (
|
|
3509
|
+
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, I) : e.setBuilderContextSignal((u) => ({
|
|
3516
3510
|
...u,
|
|
3517
|
-
rootState:
|
|
3511
|
+
rootState: I
|
|
3518
3512
|
}));
|
|
3519
3513
|
}
|
|
3520
|
-
function i(
|
|
3521
|
-
var
|
|
3522
|
-
const
|
|
3514
|
+
function i(k) {
|
|
3515
|
+
var R, B, u, S, P;
|
|
3516
|
+
const I = {
|
|
3523
3517
|
...e.builderContextSignal.content,
|
|
3524
|
-
...
|
|
3518
|
+
...k,
|
|
3525
3519
|
data: {
|
|
3526
|
-
...(
|
|
3527
|
-
...
|
|
3520
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
|
|
3521
|
+
...k == null ? void 0 : k.data
|
|
3528
3522
|
},
|
|
3529
3523
|
meta: {
|
|
3530
|
-
...(
|
|
3531
|
-
...
|
|
3532
|
-
breakpoints: ((u =
|
|
3524
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
|
|
3525
|
+
...k == null ? void 0 : k.meta,
|
|
3526
|
+
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
|
|
3533
3527
|
}
|
|
3534
3528
|
};
|
|
3535
|
-
e.setBuilderContextSignal((
|
|
3536
|
-
...
|
|
3537
|
-
content:
|
|
3529
|
+
e.setBuilderContextSignal((w) => ({
|
|
3530
|
+
...w,
|
|
3531
|
+
content: I
|
|
3538
3532
|
}));
|
|
3539
3533
|
}
|
|
3540
3534
|
function o() {
|
|
@@ -3543,62 +3537,62 @@ function Qn(e) {
|
|
|
3543
3537
|
"aria-hidden": !0
|
|
3544
3538
|
};
|
|
3545
3539
|
}
|
|
3546
|
-
const [r, a] =
|
|
3540
|
+
const [r, a] = E(
|
|
3547
3541
|
() => e.contentWrapper || "div"
|
|
3548
3542
|
);
|
|
3549
|
-
function
|
|
3543
|
+
function s(k) {
|
|
3550
3544
|
return Ke({
|
|
3551
3545
|
model: e.model,
|
|
3552
3546
|
trustedHosts: e.trustedHosts,
|
|
3553
3547
|
callbacks: {
|
|
3554
|
-
configureSdk: (
|
|
3548
|
+
configureSdk: (I) => {
|
|
3555
3549
|
var u;
|
|
3556
|
-
const { breakpoints:
|
|
3557
|
-
!
|
|
3550
|
+
const { breakpoints: R, contentId: B } = I;
|
|
3551
|
+
!B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
|
|
3558
3552
|
meta: {
|
|
3559
|
-
breakpoints:
|
|
3553
|
+
breakpoints: R
|
|
3560
3554
|
}
|
|
3561
3555
|
});
|
|
3562
3556
|
},
|
|
3563
|
-
animation: (
|
|
3564
|
-
Ne(
|
|
3557
|
+
animation: (I) => {
|
|
3558
|
+
Ne(I);
|
|
3565
3559
|
},
|
|
3566
|
-
contentUpdate: (
|
|
3567
|
-
i(
|
|
3560
|
+
contentUpdate: (I) => {
|
|
3561
|
+
i(I);
|
|
3568
3562
|
}
|
|
3569
3563
|
}
|
|
3570
|
-
})(
|
|
3564
|
+
})(k);
|
|
3571
3565
|
}
|
|
3572
|
-
const [d, c] =
|
|
3573
|
-
function f(
|
|
3574
|
-
var
|
|
3566
|
+
const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
|
|
3567
|
+
function f(k) {
|
|
3568
|
+
var I, R;
|
|
3575
3569
|
if (e.builderContextSignal.content) {
|
|
3576
|
-
const
|
|
3570
|
+
const B = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
|
|
3577
3571
|
ue({
|
|
3578
3572
|
apiHost: e.apiHost,
|
|
3579
3573
|
type: "click",
|
|
3580
3574
|
canTrack: z(e.canTrack),
|
|
3581
3575
|
contentId: u,
|
|
3582
3576
|
apiKey: e.apiKey,
|
|
3583
|
-
variationId:
|
|
3584
|
-
...
|
|
3577
|
+
variationId: B !== u ? B : void 0,
|
|
3578
|
+
...jn(k),
|
|
3585
3579
|
unique: !m
|
|
3586
3580
|
});
|
|
3587
3581
|
}
|
|
3588
3582
|
m || y(!0);
|
|
3589
3583
|
}
|
|
3590
3584
|
function v() {
|
|
3591
|
-
var
|
|
3592
|
-
const
|
|
3593
|
-
Object.entries(
|
|
3594
|
-
if (!
|
|
3585
|
+
var I, R, B;
|
|
3586
|
+
const k = (B = (R = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : R.httpRequests) != null ? B : {};
|
|
3587
|
+
Object.entries(k).forEach(([u, S]) => {
|
|
3588
|
+
if (!S || h[u] || d[u] && !N())
|
|
3595
3589
|
return;
|
|
3596
3590
|
h[u] = !0;
|
|
3597
|
-
const
|
|
3591
|
+
const P = S.replace(
|
|
3598
3592
|
/{{([^}]+)}}/g,
|
|
3599
|
-
(
|
|
3600
|
-
|
|
3601
|
-
code:
|
|
3593
|
+
(w, L) => String(
|
|
3594
|
+
O({
|
|
3595
|
+
code: L,
|
|
3602
3596
|
context: e.context || {},
|
|
3603
3597
|
localState: void 0,
|
|
3604
3598
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3606,12 +3600,12 @@ function Qn(e) {
|
|
|
3606
3600
|
})
|
|
3607
3601
|
)
|
|
3608
3602
|
);
|
|
3609
|
-
Te(
|
|
3603
|
+
Te(P), fetch(P).then((w) => w.json()).then((w) => {
|
|
3610
3604
|
n({
|
|
3611
|
-
[u]:
|
|
3605
|
+
[u]: w
|
|
3612
3606
|
}), d[u] = !0;
|
|
3613
|
-
}).catch((
|
|
3614
|
-
console.error("error fetching dynamic data",
|
|
3607
|
+
}).catch((w) => {
|
|
3608
|
+
console.error("error fetching dynamic data", S, w);
|
|
3615
3609
|
}).finally(() => {
|
|
3616
3610
|
h[u] = !1;
|
|
3617
3611
|
});
|
|
@@ -3632,11 +3626,11 @@ function Qn(e) {
|
|
|
3632
3626
|
)
|
|
3633
3627
|
);
|
|
3634
3628
|
}
|
|
3635
|
-
const b =
|
|
3629
|
+
const b = D(!1);
|
|
3636
3630
|
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3637
|
-
var
|
|
3631
|
+
var k, I, R;
|
|
3638
3632
|
if (q()) {
|
|
3639
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message",
|
|
3633
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", s), je(), qe({
|
|
3640
3634
|
...e.locale ? {
|
|
3641
3635
|
locale: e.locale
|
|
3642
3636
|
} : {},
|
|
@@ -3648,36 +3642,41 @@ function Qn(e) {
|
|
|
3648
3642
|
} : {}
|
|
3649
3643
|
}), Object.values(
|
|
3650
3644
|
e.builderContextSignal.componentInfos
|
|
3651
|
-
).forEach((
|
|
3652
|
-
var
|
|
3653
|
-
if (!e.model || !((
|
|
3654
|
-
const
|
|
3655
|
-
(
|
|
3645
|
+
).forEach((u) => {
|
|
3646
|
+
var S, P;
|
|
3647
|
+
if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
|
|
3648
|
+
const w = ze(u);
|
|
3649
|
+
(P = window.parent) == null || P.postMessage(w, "*");
|
|
3656
3650
|
}
|
|
3657
3651
|
}), window.addEventListener(
|
|
3658
3652
|
"builder:component:stateChangeListenerActivated",
|
|
3659
3653
|
x
|
|
3660
3654
|
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3661
|
-
const
|
|
3655
|
+
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (I = e.builderContextSignal.content) == null ? void 0 : I.id, P = e.apiKey;
|
|
3662
3656
|
ue({
|
|
3663
3657
|
apiHost: e.apiHost,
|
|
3664
3658
|
type: "impression",
|
|
3665
3659
|
canTrack: !0,
|
|
3666
|
-
contentId:
|
|
3667
|
-
apiKey:
|
|
3668
|
-
variationId:
|
|
3660
|
+
contentId: S,
|
|
3661
|
+
apiKey: P,
|
|
3662
|
+
variationId: u !== S ? u : void 0
|
|
3669
3663
|
});
|
|
3670
3664
|
}
|
|
3671
3665
|
if (ae() && !N()) {
|
|
3672
|
-
const
|
|
3673
|
-
`builder.overrides.${
|
|
3674
|
-
),
|
|
3675
|
-
|
|
3676
|
-
model: e.model,
|
|
3666
|
+
const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
|
|
3667
|
+
`builder.overrides.${S}`
|
|
3668
|
+
), w = u.get("apiKey") || u.get("builder.space");
|
|
3669
|
+
(S === "BUILDER_STUDIO" || S === e.model && w === e.apiKey && (!e.content || P === e.content.id)) && Ie({
|
|
3670
|
+
model: e.model || "",
|
|
3677
3671
|
apiKey: e.apiKey,
|
|
3678
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
3679
|
-
|
|
3680
|
-
|
|
3672
|
+
apiVersion: e.builderContextSignal.apiVersion,
|
|
3673
|
+
...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
3674
|
+
query: {
|
|
3675
|
+
id: e.context.symbolId
|
|
3676
|
+
}
|
|
3677
|
+
} : {}
|
|
3678
|
+
}).then((L) => {
|
|
3679
|
+
L && i(L);
|
|
3681
3680
|
});
|
|
3682
3681
|
}
|
|
3683
3682
|
}
|
|
@@ -3692,19 +3691,19 @@ function Qn(e) {
|
|
|
3692
3691
|
locale: e.locale
|
|
3693
3692
|
});
|
|
3694
3693
|
}, [e.locale]), A(() => () => {
|
|
3695
|
-
q() && (window.removeEventListener("message",
|
|
3694
|
+
q() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3696
3695
|
"builder:component:stateChangeListenerActivated",
|
|
3697
3696
|
x
|
|
3698
3697
|
));
|
|
3699
|
-
}, []), /* @__PURE__ */
|
|
3698
|
+
}, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ l(
|
|
3700
3699
|
r,
|
|
3701
3700
|
{
|
|
3702
3701
|
ref: t,
|
|
3703
|
-
onClick: (
|
|
3702
|
+
onClick: (k) => f(k),
|
|
3704
3703
|
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3705
3704
|
"builder-model": e.model,
|
|
3706
|
-
className:
|
|
3707
|
-
((C = e.content) == null ? void 0 : C.testVariationId) || ((
|
|
3705
|
+
className: Qn(
|
|
3706
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
3708
3707
|
),
|
|
3709
3708
|
style: {
|
|
3710
3709
|
display: !e.builderContextSignal.content && ke() ? "none" : void 0
|
|
@@ -3715,20 +3714,20 @@ function Qn(e) {
|
|
|
3715
3714
|
}
|
|
3716
3715
|
) : null });
|
|
3717
3716
|
}
|
|
3718
|
-
function
|
|
3719
|
-
const [t, n] =
|
|
3717
|
+
function Zn(e) {
|
|
3718
|
+
const [t, n] = E(
|
|
3720
3719
|
() => `
|
|
3721
|
-
${
|
|
3720
|
+
${Jn({
|
|
3722
3721
|
cssCode: e.cssCode,
|
|
3723
3722
|
contentId: e.contentId
|
|
3724
3723
|
})}
|
|
3725
|
-
${
|
|
3724
|
+
${Kn({
|
|
3726
3725
|
customFonts: e.customFonts
|
|
3727
3726
|
})}
|
|
3728
|
-
${
|
|
3727
|
+
${Yn(e.isNestedRender)}
|
|
3729
3728
|
`.trim()
|
|
3730
3729
|
);
|
|
3731
|
-
return /* @__PURE__ */
|
|
3730
|
+
return /* @__PURE__ */ l(
|
|
3732
3731
|
G,
|
|
3733
3732
|
{
|
|
3734
3733
|
id: "builderio-content",
|
|
@@ -3737,14 +3736,14 @@ ${Gn(e.isNestedRender)}
|
|
|
3737
3736
|
}
|
|
3738
3737
|
);
|
|
3739
3738
|
}
|
|
3740
|
-
const
|
|
3739
|
+
const ei = ({
|
|
3741
3740
|
content: e,
|
|
3742
3741
|
data: t,
|
|
3743
3742
|
locale: n
|
|
3744
3743
|
}) => {
|
|
3745
|
-
var r, a,
|
|
3744
|
+
var r, a, s;
|
|
3746
3745
|
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3747
|
-
return (
|
|
3746
|
+
return (s = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || s.forEach((d) => {
|
|
3748
3747
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3749
3748
|
}), {
|
|
3750
3749
|
...i,
|
|
@@ -3754,7 +3753,7 @@ const Zn = ({
|
|
|
3754
3753
|
locale: n
|
|
3755
3754
|
} : {}
|
|
3756
3755
|
};
|
|
3757
|
-
},
|
|
3756
|
+
}, ti = ({
|
|
3758
3757
|
content: e,
|
|
3759
3758
|
data: t
|
|
3760
3759
|
}) => e ? {
|
|
@@ -3767,10 +3766,10 @@ const Zn = ({
|
|
|
3767
3766
|
} : void 0;
|
|
3768
3767
|
function Ce(e) {
|
|
3769
3768
|
var c, h, g, m, y, f, v, x, b;
|
|
3770
|
-
const [t, n] =
|
|
3769
|
+
const [t, n] = E(
|
|
3771
3770
|
() => {
|
|
3772
3771
|
var p, C;
|
|
3773
|
-
return
|
|
3772
|
+
return _n({
|
|
3774
3773
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3775
3774
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3776
3775
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3779,32 +3778,32 @@ function Ce(e) {
|
|
|
3779
3778
|
}
|
|
3780
3779
|
);
|
|
3781
3780
|
function i(p) {
|
|
3782
|
-
|
|
3781
|
+
s((C) => ({
|
|
3783
3782
|
...C,
|
|
3784
3783
|
rootState: p
|
|
3785
3784
|
}));
|
|
3786
3785
|
}
|
|
3787
|
-
const [o, r] =
|
|
3786
|
+
const [o, r] = E(
|
|
3788
3787
|
() => [
|
|
3789
3788
|
...xe(),
|
|
3790
3789
|
...e.customComponents || []
|
|
3791
3790
|
].reduce(
|
|
3792
|
-
(p, { component: C, ...
|
|
3791
|
+
(p, { component: C, ...V }) => ({
|
|
3793
3792
|
...p,
|
|
3794
|
-
[
|
|
3793
|
+
[V.name]: {
|
|
3795
3794
|
component: C,
|
|
3796
|
-
...me(
|
|
3795
|
+
...me(V)
|
|
3797
3796
|
}
|
|
3798
3797
|
}),
|
|
3799
3798
|
{}
|
|
3800
3799
|
)
|
|
3801
|
-
), [a,
|
|
3802
|
-
content:
|
|
3800
|
+
), [a, s] = E(() => ({
|
|
3801
|
+
content: ti({
|
|
3803
3802
|
content: e.content,
|
|
3804
3803
|
data: e.data
|
|
3805
3804
|
}),
|
|
3806
3805
|
localState: void 0,
|
|
3807
|
-
rootState:
|
|
3806
|
+
rootState: ei({
|
|
3808
3807
|
content: e.content,
|
|
3809
3808
|
data: e.data,
|
|
3810
3809
|
locale: e.locale
|
|
@@ -3818,9 +3817,9 @@ function Ce(e) {
|
|
|
3818
3817
|
...xe(),
|
|
3819
3818
|
...e.customComponents || []
|
|
3820
3819
|
].reduce(
|
|
3821
|
-
(p, { component: C, ...
|
|
3820
|
+
(p, { component: C, ...V }) => ({
|
|
3822
3821
|
...p,
|
|
3823
|
-
[
|
|
3822
|
+
[V.name]: me(V)
|
|
3824
3823
|
}),
|
|
3825
3824
|
{}
|
|
3826
3825
|
),
|
|
@@ -3829,13 +3828,13 @@ function Ce(e) {
|
|
|
3829
3828
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3830
3829
|
nonce: e.nonce || "",
|
|
3831
3830
|
model: e.model || ""
|
|
3832
|
-
})), d =
|
|
3831
|
+
})), d = D(!1);
|
|
3833
3832
|
if (!d.current) {
|
|
3834
3833
|
e.apiKey || oe.error(
|
|
3835
3834
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3836
3835
|
);
|
|
3837
3836
|
const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3838
|
-
p &&
|
|
3837
|
+
p && O({
|
|
3839
3838
|
code: p,
|
|
3840
3839
|
context: e.context || {},
|
|
3841
3840
|
localState: void 0,
|
|
@@ -3846,14 +3845,14 @@ function Ce(e) {
|
|
|
3846
3845
|
isExpression: !1
|
|
3847
3846
|
}), d.current = !0;
|
|
3848
3847
|
}
|
|
3849
|
-
return /* @__PURE__ */
|
|
3848
|
+
return /* @__PURE__ */ l(
|
|
3850
3849
|
Pe.Provider,
|
|
3851
3850
|
{
|
|
3852
3851
|
value: {
|
|
3853
3852
|
registeredComponents: o
|
|
3854
3853
|
},
|
|
3855
3854
|
children: /* @__PURE__ */ W(
|
|
3856
|
-
|
|
3855
|
+
Xn,
|
|
3857
3856
|
{
|
|
3858
3857
|
apiHost: e.apiHost,
|
|
3859
3858
|
nonce: e.nonce,
|
|
@@ -3871,9 +3870,9 @@ function Ce(e) {
|
|
|
3871
3870
|
contentWrapperProps: e.contentWrapperProps,
|
|
3872
3871
|
trustedHosts: e.trustedHosts,
|
|
3873
3872
|
isNestedRender: e.isNestedRender,
|
|
3874
|
-
setBuilderContextSignal:
|
|
3873
|
+
setBuilderContextSignal: s,
|
|
3875
3874
|
children: [
|
|
3876
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3875
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3877
3876
|
ie,
|
|
3878
3877
|
{
|
|
3879
3878
|
id: "builderio-variant-visibility",
|
|
@@ -3881,8 +3880,8 @@ function Ce(e) {
|
|
|
3881
3880
|
nonce: e.nonce || ""
|
|
3882
3881
|
}
|
|
3883
3882
|
) : null,
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
|
|
3883
|
+
/* @__PURE__ */ l(
|
|
3884
|
+
Zn,
|
|
3886
3885
|
{
|
|
3887
3886
|
nonce: e.nonce || "",
|
|
3888
3887
|
isNestedRender: e.isNestedRender,
|
|
@@ -3891,7 +3890,7 @@ function Ce(e) {
|
|
|
3891
3890
|
customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
3892
3891
|
}
|
|
3893
3892
|
),
|
|
3894
|
-
/* @__PURE__ */
|
|
3893
|
+
/* @__PURE__ */ l(
|
|
3895
3894
|
F,
|
|
3896
3895
|
{
|
|
3897
3896
|
blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
@@ -3906,49 +3905,49 @@ function Ce(e) {
|
|
|
3906
3905
|
}
|
|
3907
3906
|
);
|
|
3908
3907
|
}
|
|
3909
|
-
function
|
|
3908
|
+
function ni(e) {
|
|
3910
3909
|
var a;
|
|
3911
|
-
const [t, n] =
|
|
3912
|
-
() =>
|
|
3910
|
+
const [t, n] = E(
|
|
3911
|
+
() => Ln({
|
|
3913
3912
|
canTrack: z(e.canTrack),
|
|
3914
3913
|
content: e.content
|
|
3915
3914
|
})
|
|
3916
3915
|
);
|
|
3917
3916
|
function i() {
|
|
3918
|
-
var
|
|
3919
|
-
return
|
|
3917
|
+
var s;
|
|
3918
|
+
return Un(
|
|
3920
3919
|
j(e.content).map((d) => ({
|
|
3921
3920
|
id: d.testVariationId,
|
|
3922
3921
|
testRatio: d.testRatio
|
|
3923
3922
|
})),
|
|
3924
|
-
((
|
|
3923
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3925
3924
|
);
|
|
3926
3925
|
}
|
|
3927
3926
|
function o() {
|
|
3928
|
-
return j(e.content).map((
|
|
3927
|
+
return j(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3929
3928
|
}
|
|
3930
3929
|
function r() {
|
|
3931
|
-
var
|
|
3930
|
+
var s;
|
|
3932
3931
|
return t ? {
|
|
3933
3932
|
...e.content,
|
|
3934
|
-
testVariationId: (
|
|
3933
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3935
3934
|
} : Je({
|
|
3936
3935
|
item: e.content,
|
|
3937
3936
|
canTrack: z(e.canTrack)
|
|
3938
3937
|
});
|
|
3939
3938
|
}
|
|
3940
3939
|
return A(() => {
|
|
3941
|
-
}, []), /* @__PURE__ */ W(
|
|
3942
|
-
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */
|
|
3940
|
+
}, []), /* @__PURE__ */ W(T, { children: [
|
|
3941
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
3943
3942
|
ie,
|
|
3944
3943
|
{
|
|
3945
3944
|
id: "builderio-init-variants-fns",
|
|
3946
|
-
scriptStr:
|
|
3945
|
+
scriptStr: On(),
|
|
3947
3946
|
nonce: e.nonce || ""
|
|
3948
3947
|
}
|
|
3949
3948
|
) : null,
|
|
3950
|
-
t ? /* @__PURE__ */ W(
|
|
3951
|
-
/* @__PURE__ */
|
|
3949
|
+
t ? /* @__PURE__ */ W(T, { children: [
|
|
3950
|
+
/* @__PURE__ */ l(
|
|
3952
3951
|
G,
|
|
3953
3952
|
{
|
|
3954
3953
|
id: "builderio-variants",
|
|
@@ -3956,7 +3955,7 @@ function ti(e) {
|
|
|
3956
3955
|
nonce: e.nonce || ""
|
|
3957
3956
|
}
|
|
3958
3957
|
),
|
|
3959
|
-
/* @__PURE__ */
|
|
3958
|
+
/* @__PURE__ */ l(
|
|
3960
3959
|
ie,
|
|
3961
3960
|
{
|
|
3962
3961
|
id: "builderio-variants-visibility",
|
|
@@ -3964,13 +3963,13 @@ function ti(e) {
|
|
|
3964
3963
|
nonce: e.nonce || ""
|
|
3965
3964
|
}
|
|
3966
3965
|
),
|
|
3967
|
-
(a = j(e.content)) == null ? void 0 : a.map((
|
|
3966
|
+
(a = j(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ l(
|
|
3968
3967
|
Ce,
|
|
3969
3968
|
{
|
|
3970
3969
|
apiHost: e.apiHost,
|
|
3971
3970
|
isNestedRender: e.isNestedRender,
|
|
3972
3971
|
nonce: e.nonce,
|
|
3973
|
-
content:
|
|
3972
|
+
content: s,
|
|
3974
3973
|
showContent: !1,
|
|
3975
3974
|
model: e.model,
|
|
3976
3975
|
data: e.data,
|
|
@@ -3989,10 +3988,10 @@ function ti(e) {
|
|
|
3989
3988
|
contentWrapperProps: e.contentWrapperProps,
|
|
3990
3989
|
trustedHosts: e.trustedHosts
|
|
3991
3990
|
},
|
|
3992
|
-
|
|
3991
|
+
s.testVariationId
|
|
3993
3992
|
))
|
|
3994
3993
|
] }) : null,
|
|
3995
|
-
/* @__PURE__ */
|
|
3994
|
+
/* @__PURE__ */ l(
|
|
3996
3995
|
Ce,
|
|
3997
3996
|
{
|
|
3998
3997
|
apiHost: e.apiHost,
|
|
@@ -4020,7 +4019,7 @@ function ti(e) {
|
|
|
4020
4019
|
)
|
|
4021
4020
|
] });
|
|
4022
4021
|
}
|
|
4023
|
-
const
|
|
4022
|
+
const ii = async ({
|
|
4024
4023
|
builderContextValue: e,
|
|
4025
4024
|
symbol: t
|
|
4026
4025
|
}) => {
|
|
@@ -4039,8 +4038,8 @@ const ni = async ({
|
|
|
4039
4038
|
oe.error("Could not fetch symbol content: ", n);
|
|
4040
4039
|
});
|
|
4041
4040
|
};
|
|
4042
|
-
function
|
|
4043
|
-
var
|
|
4041
|
+
function oi(e) {
|
|
4042
|
+
var s, d, c, h;
|
|
4044
4043
|
function t() {
|
|
4045
4044
|
return "div";
|
|
4046
4045
|
}
|
|
@@ -4050,18 +4049,18 @@ function ii(e) {
|
|
|
4050
4049
|
function i() {
|
|
4051
4050
|
var g, m;
|
|
4052
4051
|
return [
|
|
4053
|
-
e.attributes[
|
|
4052
|
+
e.attributes[_()],
|
|
4054
4053
|
"builder-symbol",
|
|
4055
4054
|
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4056
4055
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4057
4056
|
].filter(Boolean).join(" ");
|
|
4058
4057
|
}
|
|
4059
|
-
const [o, r] =
|
|
4058
|
+
const [o, r] = E(() => {
|
|
4060
4059
|
var g;
|
|
4061
4060
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4062
4061
|
});
|
|
4063
4062
|
function a() {
|
|
4064
|
-
o ||
|
|
4063
|
+
o || ii({
|
|
4065
4064
|
symbol: e.symbol,
|
|
4066
4065
|
builderContextValue: e.builderContext
|
|
4067
4066
|
}).then((g) => {
|
|
@@ -4071,8 +4070,8 @@ function ii(e) {
|
|
|
4071
4070
|
return A(() => {
|
|
4072
4071
|
}, []), A(() => {
|
|
4073
4072
|
a();
|
|
4074
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4075
|
-
|
|
4073
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4074
|
+
ni,
|
|
4076
4075
|
{
|
|
4077
4076
|
nonce: e.builderContext.nonce,
|
|
4078
4077
|
isNestedRender: !0,
|
|
@@ -4080,7 +4079,7 @@ function ii(e) {
|
|
|
4080
4079
|
apiKey: e.builderContext.apiKey,
|
|
4081
4080
|
context: {
|
|
4082
4081
|
...e.builderContext.context,
|
|
4083
|
-
symbolId: (
|
|
4082
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4084
4083
|
},
|
|
4085
4084
|
customComponents: Object.values(e.builderComponents),
|
|
4086
4085
|
data: {
|
|
@@ -4101,12 +4100,12 @@ export {
|
|
|
4101
4100
|
F as Blocks,
|
|
4102
4101
|
se as BuilderContext,
|
|
4103
4102
|
it as Button,
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4103
|
+
jt as Columns,
|
|
4104
|
+
ni as Content,
|
|
4105
|
+
qt as Fragment,
|
|
4106
|
+
Jt as Image,
|
|
4107
|
+
Gt as Section,
|
|
4108
|
+
oi as Symbol,
|
|
4109
|
+
un as Text,
|
|
4110
|
+
Wn as Video
|
|
4112
4111
|
};
|