@builder.io/sdk-react 3.0.2 → 3.0.3
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 +23 -23
- package/lib/browser/blocks-exports.mjs +284 -283
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-75ce8600.cjs → server-entry-5eafc5bd.cjs} +1 -1
- package/lib/browser/{server-entry-a2495a20.js → server-entry-c904f136.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-032726a7.cjs +1 -0
- package/lib/edge/{accordion-c020e15b.js → accordion-c786f197.js} +17 -16
- package/lib/edge/{blocks-27ac5b23.js → blocks-105e50e5.js} +4 -4
- package/lib/edge/{blocks-cd946d16.cjs → blocks-827b0a87.cjs} +8 -8
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8572fca5.cjs → button-5cbfe22c.cjs} +1 -1
- package/lib/edge/{button-5cdb4f26.js → button-f0e0ea72.js} +2 -2
- package/lib/edge/{columns-3ac1fa96.js → columns-9e187314.js} +12 -12
- package/lib/edge/{columns-c8a9cb89.cjs → columns-d07da61d.cjs} +2 -2
- package/lib/edge/{content-variants-caa23bf7.cjs → content-variants-0db90715.cjs} +6 -6
- package/lib/edge/{content-variants-23c8eec6.js → content-variants-59dc0824.js} +10 -10
- package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
- package/lib/edge/{form-3d9bf265.cjs → form-79639135.cjs} +1 -1
- package/lib/edge/{form-7fc5691b.js → form-7a7b98cf.js} +13 -13
- package/lib/edge/{get-class-prop-name-a4845b04.js → get-class-prop-name-6b143ec7.js} +1 -1
- package/lib/edge/{get-class-prop-name-29fd576a.cjs → get-class-prop-name-8fb0e5ad.cjs} +1 -1
- package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
- package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
- package/lib/edge/{img-388698cb.js → img-2c4c6b78.js} +1 -1
- package/lib/edge/{img-102acaa2.cjs → img-72bf9d21.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-10e350a9.cjs → input-6eca8427.cjs} +1 -1
- package/lib/edge/{input-5484e9e7.js → input-752f3ce9.js} +1 -1
- package/lib/edge/{select-f11be7a7.cjs → select-49a73a0b.cjs} +1 -1
- package/lib/edge/{select-b8406bcf.js → select-a1d6e80e.js} +1 -1
- package/lib/edge/{server-entry-7ce03a4e.js → server-entry-35f12729.js} +1 -1
- package/lib/edge/{server-entry-1879cbc4.cjs → server-entry-6b2058e2.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-4ab390ec.cjs → slot-2327e009.cjs} +1 -1
- package/lib/edge/{slot-23f75377.js → slot-b9bcbd41.js} +3 -3
- package/lib/edge/{symbol-2eafb4e0.js → symbol-33e7736f.js} +2 -2
- package/lib/edge/{symbol-fa343d77.cjs → symbol-3527699b.cjs} +1 -1
- package/lib/edge/{tabs-7d258d82.cjs → tabs-2df0eaa2.cjs} +1 -1
- package/lib/edge/{tabs-4c9c64f6.js → tabs-bc422e4c.js} +3 -3
- package/lib/node/blocks-exports.cjs +23 -23
- package/lib/node/blocks-exports.mjs +282 -281
- 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-ec330556.cjs → server-entry-606ce65a.cjs} +1 -1
- package/lib/node/{server-entry-2b263dde.js → server-entry-d1ed35c5.js} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-7eb67cd6.js → setIvm-6675714a.js} +1 -1
- package/lib/node/{setIvm-1e6f0b60.cjs → setIvm-e4deba11.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-23218b19.cjs → should-force-browser-runtime-in-node-03adae17.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cdae9360.js → should-force-browser-runtime-in-node-75b2b3a0.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/types/builder-content.d.ts +1 -0
- package/types/types/input.d.ts +10 -0
- package/lib/edge/accordion-1c16f65e.cjs +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as l, Fragment as
|
|
3
|
-
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as z, logger as G, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as K, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-
|
|
2
|
+
import { jsx as l, Fragment as w, jsxs as N } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as z, logger as G, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as K, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-c904f136.js";
|
|
4
|
+
import * as Xe from "react";
|
|
4
5
|
import { createContext as Ee, useEffect as A, useState as E, useRef as O, useContext as fe, createElement as Re } from "react";
|
|
5
|
-
const
|
|
6
|
+
const Ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), et = (e) => typeof e == "string" && Ze.has(e.toLowerCase());
|
|
6
7
|
function re(e) {
|
|
7
|
-
return /* @__PURE__ */ l(
|
|
8
|
+
return /* @__PURE__ */ l(w, { children: et(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { 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 }) }) });
|
|
8
9
|
}
|
|
9
10
|
const H = () => {
|
|
10
11
|
switch ($) {
|
|
@@ -20,7 +21,7 @@ const H = () => {
|
|
|
20
21
|
return "class";
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
|
-
function
|
|
24
|
+
function tt(e) {
|
|
24
25
|
function t() {
|
|
25
26
|
return {
|
|
26
27
|
...e.attributes,
|
|
@@ -62,7 +63,7 @@ const le = Ee({
|
|
|
62
63
|
}), Pe = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
63
64
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
64
65
|
return i === void 0 || i === e ? n : i;
|
|
65
|
-
},
|
|
66
|
+
}, nt = ({
|
|
66
67
|
builder: e,
|
|
67
68
|
context: t,
|
|
68
69
|
event: n,
|
|
@@ -74,12 +75,12 @@ const le = Ee({
|
|
|
74
75
|
builder: e,
|
|
75
76
|
context: t,
|
|
76
77
|
event: n
|
|
77
|
-
}),
|
|
78
|
+
}), it = () => ({
|
|
78
79
|
isEditing: W(),
|
|
79
80
|
isBrowser: D(),
|
|
80
81
|
isServer: !D(),
|
|
81
82
|
getUserAttributes: () => ze()
|
|
82
|
-
}),
|
|
83
|
+
}), ot = (e, {
|
|
83
84
|
isExpression: t = !0
|
|
84
85
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
85
86
|
function Ve({
|
|
@@ -116,7 +117,7 @@ const he = ({
|
|
|
116
117
|
rootSetState: a,
|
|
117
118
|
rootState: r
|
|
118
119
|
}) => {
|
|
119
|
-
const s =
|
|
120
|
+
const s = nt({
|
|
120
121
|
builder: t,
|
|
121
122
|
context: n,
|
|
122
123
|
event: i,
|
|
@@ -128,23 +129,23 @@ const he = ({
|
|
|
128
129
|
});
|
|
129
130
|
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
130
131
|
};
|
|
131
|
-
function
|
|
132
|
+
function at() {
|
|
132
133
|
var e;
|
|
133
134
|
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
134
135
|
}
|
|
135
|
-
const
|
|
136
|
+
const rt = ({
|
|
136
137
|
shouldLogWarning: e
|
|
137
138
|
}) => {
|
|
138
139
|
var o;
|
|
139
|
-
if (!
|
|
140
|
+
if (!at())
|
|
140
141
|
return !1;
|
|
141
142
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
142
143
|
return t && n && !i ? (e && G.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
143
|
-
},
|
|
144
|
+
}, lt = (e) => (D() || rt({
|
|
144
145
|
shouldLogWarning: !0
|
|
145
|
-
}), he(e)),
|
|
146
|
+
}), he(e)), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
146
147
|
var t, n, i, o, a, r;
|
|
147
|
-
return ((i = (n = (t =
|
|
148
|
+
return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = ct.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
148
149
|
};
|
|
149
150
|
function U({
|
|
150
151
|
code: e,
|
|
@@ -157,17 +158,17 @@ function U({
|
|
|
157
158
|
}) {
|
|
158
159
|
if (e.trim() === "")
|
|
159
160
|
return;
|
|
160
|
-
const s =
|
|
161
|
+
const s = dt(e.trim());
|
|
161
162
|
if (s)
|
|
162
163
|
return Be({
|
|
163
164
|
...i,
|
|
164
165
|
...n
|
|
165
166
|
}, s);
|
|
166
167
|
const d = {
|
|
167
|
-
code:
|
|
168
|
+
code: ot(e, {
|
|
168
169
|
isExpression: r
|
|
169
170
|
}),
|
|
170
|
-
builder:
|
|
171
|
+
builder: it(),
|
|
171
172
|
context: t,
|
|
172
173
|
event: a,
|
|
173
174
|
rootSetState: o,
|
|
@@ -175,7 +176,7 @@ function U({
|
|
|
175
176
|
localState: n
|
|
176
177
|
};
|
|
177
178
|
try {
|
|
178
|
-
return
|
|
179
|
+
return lt(d);
|
|
179
180
|
} catch (c) {
|
|
180
181
|
G.error("Failed code evaluation: " + c.message, {
|
|
181
182
|
code: e
|
|
@@ -183,15 +184,15 @@ function U({
|
|
|
183
184
|
return;
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
|
-
function
|
|
187
|
+
function ut(e, t) {
|
|
187
188
|
var n;
|
|
188
189
|
return {
|
|
189
190
|
...(n = e.component) == null ? void 0 : n.options,
|
|
190
191
|
...e.options,
|
|
191
|
-
...
|
|
192
|
+
...mt(e, t)
|
|
192
193
|
};
|
|
193
194
|
}
|
|
194
|
-
const
|
|
195
|
+
const mt = (e, t) => {
|
|
195
196
|
var n, i;
|
|
196
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
197
198
|
return {
|
|
@@ -205,7 +206,7 @@ const ut = (e, t) => {
|
|
|
205
206
|
}))
|
|
206
207
|
};
|
|
207
208
|
};
|
|
208
|
-
function
|
|
209
|
+
function ft(e, ...t) {
|
|
209
210
|
const n = Object.assign({}, e);
|
|
210
211
|
for (const i of t)
|
|
211
212
|
delete n[i];
|
|
@@ -231,7 +232,7 @@ function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
|
231
232
|
function Ae(e) {
|
|
232
233
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
233
234
|
}
|
|
234
|
-
function
|
|
235
|
+
function ht(e) {
|
|
235
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
236
237
|
return !1;
|
|
237
238
|
let t = !1;
|
|
@@ -242,15 +243,15 @@ function ft(e) {
|
|
|
242
243
|
}
|
|
243
244
|
}), t;
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function gt(e, t) {
|
|
246
247
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
247
248
|
var o;
|
|
248
249
|
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
249
250
|
}), e);
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
+
function bt(e, t) {
|
|
252
253
|
var n, i;
|
|
253
|
-
return (n = e.component) != null && n.options &&
|
|
254
|
+
return (n = e.component) != null && n.options && ht((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 = gt(e.component.options, t != null ? t : "Default")), e;
|
|
254
255
|
}
|
|
255
256
|
const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
|
|
256
257
|
if (Object(e) !== e)
|
|
@@ -270,8 +271,8 @@ function ie(e) {
|
|
|
270
271
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
271
272
|
return t;
|
|
272
273
|
}
|
|
273
|
-
const
|
|
274
|
-
if (
|
|
274
|
+
const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) => {
|
|
275
|
+
if (pt) {
|
|
275
276
|
const t = se(e);
|
|
276
277
|
return {
|
|
277
278
|
...t,
|
|
@@ -283,7 +284,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
283
284
|
}
|
|
284
285
|
};
|
|
285
286
|
} else {
|
|
286
|
-
const t = ie(
|
|
287
|
+
const t = ie(ft(e, "children", "meta"));
|
|
287
288
|
return {
|
|
288
289
|
...t,
|
|
289
290
|
properties: {
|
|
@@ -296,7 +297,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
296
297
|
meta: e.meta
|
|
297
298
|
};
|
|
298
299
|
}
|
|
299
|
-
},
|
|
300
|
+
}, xt = ({
|
|
300
301
|
block: e,
|
|
301
302
|
context: t,
|
|
302
303
|
localState: n,
|
|
@@ -305,7 +306,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
305
306
|
}) => {
|
|
306
307
|
if (!e.bindings)
|
|
307
308
|
return e;
|
|
308
|
-
const a =
|
|
309
|
+
const a = yt(e);
|
|
309
310
|
for (const r in e.bindings) {
|
|
310
311
|
const s = e.bindings[r], d = U({
|
|
311
312
|
code: s,
|
|
@@ -318,15 +319,15 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
318
319
|
}
|
|
319
320
|
return a;
|
|
320
321
|
};
|
|
321
|
-
function
|
|
322
|
+
function vt({
|
|
322
323
|
block: e,
|
|
323
324
|
context: t,
|
|
324
325
|
localState: n,
|
|
325
326
|
rootState: i,
|
|
326
327
|
rootSetState: o
|
|
327
328
|
}) {
|
|
328
|
-
let a =
|
|
329
|
-
return a = a,
|
|
329
|
+
let a = bt(e, i.locale);
|
|
330
|
+
return a = a, xt({
|
|
330
331
|
block: a,
|
|
331
332
|
localState: n,
|
|
332
333
|
rootState: i,
|
|
@@ -335,7 +336,7 @@ function xt({
|
|
|
335
336
|
});
|
|
336
337
|
}
|
|
337
338
|
const Y = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
338
|
-
function
|
|
339
|
+
function St(e, t, n = {}) {
|
|
339
340
|
let i, o, a, r = null, s = 0;
|
|
340
341
|
const d = function() {
|
|
341
342
|
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
@@ -357,14 +358,14 @@ function _(e, ...t) {
|
|
|
357
358
|
}
|
|
358
359
|
return n;
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function kt(e) {
|
|
361
362
|
for (const t of e)
|
|
362
363
|
switch (t.trigger) {
|
|
363
364
|
case "pageLoad":
|
|
364
365
|
$e(t);
|
|
365
366
|
break;
|
|
366
367
|
case "scrollInView":
|
|
367
|
-
|
|
368
|
+
Tt(t);
|
|
368
369
|
break;
|
|
369
370
|
}
|
|
370
371
|
}
|
|
@@ -372,12 +373,12 @@ function We(e) {
|
|
|
372
373
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
373
374
|
}
|
|
374
375
|
function Fe(e, t) {
|
|
375
|
-
const n =
|
|
376
|
+
const n = Ct(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
376
377
|
for (const s of r)
|
|
377
378
|
for (const d of n)
|
|
378
379
|
d in s || (s[d] = i[d]);
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function Ct(e) {
|
|
381
382
|
const t = [];
|
|
382
383
|
for (const n of e.steps)
|
|
383
384
|
for (const i in n.styles)
|
|
@@ -398,7 +399,7 @@ function $e(e) {
|
|
|
398
399
|
});
|
|
399
400
|
});
|
|
400
401
|
}
|
|
401
|
-
function
|
|
402
|
+
function Tt(e) {
|
|
402
403
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
403
404
|
if (!t.length) {
|
|
404
405
|
We(e.elementId || e.id || "");
|
|
@@ -414,7 +415,7 @@ function Ct(e) {
|
|
|
414
415
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
415
416
|
})) : e.repeat && i && !o && !s(n) && (i = !1, _(n.style, e.steps[0].styles));
|
|
416
417
|
}
|
|
417
|
-
const r =
|
|
418
|
+
const r = St(a, 200, {
|
|
418
419
|
leading: !1
|
|
419
420
|
});
|
|
420
421
|
function s(h) {
|
|
@@ -436,28 +437,28 @@ function Ct(e) {
|
|
|
436
437
|
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
437
438
|
if (typeof i == "string")
|
|
438
439
|
return `${Y(n)}: ${i};`;
|
|
439
|
-
}).filter(z),
|
|
440
|
+
}).filter(z), It = (e) => Le(e).join(`
|
|
440
441
|
`), j = ({
|
|
441
442
|
mediaQuery: e,
|
|
442
443
|
className: t,
|
|
443
444
|
styles: n
|
|
444
445
|
}) => {
|
|
445
446
|
const i = `.${t} {
|
|
446
|
-
${
|
|
447
|
+
${It(n)}
|
|
447
448
|
}`;
|
|
448
449
|
return e ? `${e} {
|
|
449
450
|
${i}
|
|
450
451
|
}` : i;
|
|
451
452
|
};
|
|
452
|
-
function
|
|
453
|
+
function wt({
|
|
453
454
|
style: e
|
|
454
455
|
}) {
|
|
455
456
|
return e;
|
|
456
457
|
}
|
|
457
|
-
const
|
|
458
|
+
const Et = ({
|
|
458
459
|
block: e,
|
|
459
460
|
context: t
|
|
460
|
-
}) => Oe(
|
|
461
|
+
}) => Oe(wt({
|
|
461
462
|
style: e.style || {},
|
|
462
463
|
context: t,
|
|
463
464
|
block: e
|
|
@@ -476,7 +477,7 @@ function Oe(e) {
|
|
|
476
477
|
return e;
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
|
-
const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
480
|
+
const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
|
|
480
481
|
block: e,
|
|
481
482
|
registeredComponents: t,
|
|
482
483
|
model: n
|
|
@@ -493,7 +494,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
493
494
|
return;
|
|
494
495
|
} else
|
|
495
496
|
return o;
|
|
496
|
-
},
|
|
497
|
+
}, Pt = ({
|
|
497
498
|
block: e,
|
|
498
499
|
context: t
|
|
499
500
|
}) => {
|
|
@@ -526,22 +527,22 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
526
527
|
},
|
|
527
528
|
block: i
|
|
528
529
|
}));
|
|
529
|
-
},
|
|
530
|
+
}, Bt = (e, t) => {
|
|
530
531
|
var n;
|
|
531
532
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
532
533
|
builderLinkComponent: t
|
|
533
534
|
} : {};
|
|
534
|
-
},
|
|
535
|
+
}, Vt = (e, t, n) => {
|
|
535
536
|
var i;
|
|
536
537
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
537
538
|
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !De(r, n)))
|
|
538
539
|
} : {};
|
|
539
|
-
},
|
|
540
|
+
}, At = (e, t) => {
|
|
540
541
|
var n;
|
|
541
542
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
542
543
|
builderBlock: t
|
|
543
544
|
} : {};
|
|
544
|
-
},
|
|
545
|
+
}, Nt = (e, t) => {
|
|
545
546
|
var n;
|
|
546
547
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
547
548
|
builderContext: t
|
|
@@ -599,7 +600,7 @@ function Q(e) {
|
|
|
599
600
|
}
|
|
600
601
|
);
|
|
601
602
|
}
|
|
602
|
-
function
|
|
603
|
+
function Wt(e) {
|
|
603
604
|
function t() {
|
|
604
605
|
const i = e.block;
|
|
605
606
|
return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
|
|
@@ -650,7 +651,7 @@ function Nt(e) {
|
|
|
650
651
|
v
|
|
651
652
|
].join(" ");
|
|
652
653
|
}
|
|
653
|
-
return /* @__PURE__ */ l(
|
|
654
|
+
return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
654
655
|
Q,
|
|
655
656
|
{
|
|
656
657
|
id: "builderio-block",
|
|
@@ -659,10 +660,10 @@ function Nt(e) {
|
|
|
659
660
|
}
|
|
660
661
|
) }) : null });
|
|
661
662
|
}
|
|
662
|
-
function
|
|
663
|
+
function Ft(e) {
|
|
663
664
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
664
665
|
}
|
|
665
|
-
const
|
|
666
|
+
const $t = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => U({
|
|
666
667
|
code: e,
|
|
667
668
|
context: t.context,
|
|
668
669
|
localState: t.localState,
|
|
@@ -678,7 +679,7 @@ function He(e) {
|
|
|
678
679
|
if (!n.hasOwnProperty(o))
|
|
679
680
|
continue;
|
|
680
681
|
const a = n[o];
|
|
681
|
-
let r =
|
|
682
|
+
let r = $t(o);
|
|
682
683
|
if (e.stripPrefix)
|
|
683
684
|
switch ($) {
|
|
684
685
|
case "vue":
|
|
@@ -688,16 +689,16 @@ function He(e) {
|
|
|
688
689
|
r = r.replace("on:", "");
|
|
689
690
|
break;
|
|
690
691
|
}
|
|
691
|
-
t[r] =
|
|
692
|
+
t[r] = Lt(a, e);
|
|
692
693
|
}
|
|
693
694
|
return t;
|
|
694
695
|
}
|
|
695
|
-
function
|
|
696
|
+
function Ot({
|
|
696
697
|
properties: e
|
|
697
698
|
}) {
|
|
698
699
|
return e;
|
|
699
700
|
}
|
|
700
|
-
const
|
|
701
|
+
const Dt = (e) => ({
|
|
701
702
|
href: e.href
|
|
702
703
|
});
|
|
703
704
|
function ce({
|
|
@@ -706,22 +707,22 @@ function ce({
|
|
|
706
707
|
}) {
|
|
707
708
|
var i;
|
|
708
709
|
const n = {
|
|
709
|
-
...
|
|
710
|
+
...Dt(e),
|
|
710
711
|
...e.properties,
|
|
711
712
|
"builder-id": e.id,
|
|
712
|
-
style:
|
|
713
|
+
style: Et({
|
|
713
714
|
block: e,
|
|
714
715
|
context: t
|
|
715
716
|
}),
|
|
716
717
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
717
718
|
};
|
|
718
|
-
return
|
|
719
|
+
return Ot({
|
|
719
720
|
properties: n,
|
|
720
721
|
context: t,
|
|
721
722
|
block: e
|
|
722
723
|
});
|
|
723
724
|
}
|
|
724
|
-
function
|
|
725
|
+
function Ut(e) {
|
|
725
726
|
return /* @__PURE__ */ l(
|
|
726
727
|
re,
|
|
727
728
|
{
|
|
@@ -742,11 +743,11 @@ function Dt(e) {
|
|
|
742
743
|
}
|
|
743
744
|
);
|
|
744
745
|
}
|
|
745
|
-
function
|
|
746
|
+
function _t(e) {
|
|
746
747
|
return A(() => {
|
|
747
|
-
}, []), /* @__PURE__ */ l(
|
|
748
|
+
}, []), /* @__PURE__ */ l(w, { children: e.children });
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
+
function Ht(e) {
|
|
750
751
|
function t() {
|
|
751
752
|
return e.includeBlockProps ? {
|
|
752
753
|
...ce({
|
|
@@ -762,8 +763,8 @@ function _t(e) {
|
|
|
762
763
|
})
|
|
763
764
|
} : {};
|
|
764
765
|
}
|
|
765
|
-
return /* @__PURE__ */ l(
|
|
766
|
-
|
|
766
|
+
return /* @__PURE__ */ l(w, { children: e.Wrapper.load ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
767
|
+
_t,
|
|
767
768
|
{
|
|
768
769
|
load: e.Wrapper.load,
|
|
769
770
|
fallback: e.Wrapper.fallback,
|
|
@@ -773,7 +774,7 @@ function _t(e) {
|
|
|
773
774
|
}
|
|
774
775
|
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
775
776
|
}
|
|
776
|
-
const
|
|
777
|
+
const Mt = ({
|
|
777
778
|
componentOptions: e,
|
|
778
779
|
builderBlock: t,
|
|
779
780
|
context: n,
|
|
@@ -806,12 +807,12 @@ const Ht = ({
|
|
|
806
807
|
function be(e) {
|
|
807
808
|
var i;
|
|
808
809
|
const [t, n] = E(
|
|
809
|
-
() => e.isInteractive ?
|
|
810
|
+
() => e.isInteractive ? Ht : e.componentRef
|
|
810
811
|
);
|
|
811
|
-
return /* @__PURE__ */ l(
|
|
812
|
+
return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
|
|
812
813
|
t,
|
|
813
814
|
{
|
|
814
|
-
...
|
|
815
|
+
...Mt({
|
|
815
816
|
componentOptions: e.componentOptions,
|
|
816
817
|
builderBlock: e.builderBlock,
|
|
817
818
|
context: e.context,
|
|
@@ -849,7 +850,7 @@ function pe(e) {
|
|
|
849
850
|
function M(e) {
|
|
850
851
|
var h, g, m, y;
|
|
851
852
|
function t() {
|
|
852
|
-
return
|
|
853
|
+
return Pt({
|
|
853
854
|
block: e.block,
|
|
854
855
|
context: e.context
|
|
855
856
|
});
|
|
@@ -862,7 +863,7 @@ function M(e) {
|
|
|
862
863
|
var v;
|
|
863
864
|
if (n.value && !n.update && !ae())
|
|
864
865
|
return n.value;
|
|
865
|
-
const f = (v = e.block.repeat) != null && v.collection ? e.block :
|
|
866
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : vt({
|
|
866
867
|
block: e.block,
|
|
867
868
|
localState: e.context.localState,
|
|
868
869
|
rootState: e.context.rootState,
|
|
@@ -872,7 +873,7 @@ function M(e) {
|
|
|
872
873
|
return n.value = f, n.update = !1, f;
|
|
873
874
|
}
|
|
874
875
|
function a() {
|
|
875
|
-
return
|
|
876
|
+
return Rt({
|
|
876
877
|
block: o(),
|
|
877
878
|
registeredComponents: e.registeredComponents,
|
|
878
879
|
model: e.context.model
|
|
@@ -899,11 +900,11 @@ function M(e) {
|
|
|
899
900
|
blockChildren: (f = o().children) != null ? f : [],
|
|
900
901
|
componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
|
|
901
902
|
componentOptions: {
|
|
902
|
-
...
|
|
903
|
-
...
|
|
904
|
-
...
|
|
905
|
-
...
|
|
906
|
-
...
|
|
903
|
+
...ut(o(), e.context),
|
|
904
|
+
...At(a(), o()),
|
|
905
|
+
...Nt(a(), e.context),
|
|
906
|
+
...Bt(a(), e.linkComponent),
|
|
907
|
+
...Vt(
|
|
907
908
|
a(),
|
|
908
909
|
e.registeredComponents,
|
|
909
910
|
e.context.model
|
|
@@ -919,7 +920,7 @@ function M(e) {
|
|
|
919
920
|
}
|
|
920
921
|
return A(() => {
|
|
921
922
|
const f = o().id, v = o().animations;
|
|
922
|
-
v && f &&
|
|
923
|
+
v && f && kt(
|
|
923
924
|
v.map((x) => ({
|
|
924
925
|
...x,
|
|
925
926
|
elementId: f
|
|
@@ -927,9 +928,9 @@ function M(e) {
|
|
|
927
928
|
);
|
|
928
929
|
}, []), A(() => {
|
|
929
930
|
n.update = !0;
|
|
930
|
-
}), /* @__PURE__ */ l(
|
|
931
|
-
/* @__PURE__ */ l(
|
|
932
|
-
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(
|
|
931
|
+
}), /* @__PURE__ */ l(w, { children: s() ? /* @__PURE__ */ N(w, { children: [
|
|
932
|
+
/* @__PURE__ */ l(Wt, { block: o(), context: e.context }),
|
|
933
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(w, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
|
|
933
934
|
pe,
|
|
934
935
|
{
|
|
935
936
|
repeatContext: f.context,
|
|
@@ -951,7 +952,7 @@ function M(e) {
|
|
|
951
952
|
includeBlockProps: c().includeBlockProps,
|
|
952
953
|
isInteractive: c().isInteractive
|
|
953
954
|
}
|
|
954
|
-
) : /* @__PURE__ */ l(
|
|
955
|
+
) : /* @__PURE__ */ l(w, { children: t() ? /* @__PURE__ */ l(w, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
|
|
955
956
|
pe,
|
|
956
957
|
{
|
|
957
958
|
repeatContext: f.context,
|
|
@@ -961,7 +962,7 @@ function M(e) {
|
|
|
961
962
|
},
|
|
962
963
|
v
|
|
963
964
|
)) }) : /* @__PURE__ */ N(
|
|
964
|
-
|
|
965
|
+
Ut,
|
|
965
966
|
{
|
|
966
967
|
Wrapper: r(),
|
|
967
968
|
block: o(),
|
|
@@ -996,7 +997,7 @@ function M(e) {
|
|
|
996
997
|
) })
|
|
997
998
|
] }) : null });
|
|
998
999
|
}
|
|
999
|
-
function
|
|
1000
|
+
function jt(e) {
|
|
1000
1001
|
const t = O(null);
|
|
1001
1002
|
function n() {
|
|
1002
1003
|
var r;
|
|
@@ -1039,12 +1040,12 @@ function Mt(e) {
|
|
|
1039
1040
|
));
|
|
1040
1041
|
}
|
|
1041
1042
|
return A(() => {
|
|
1042
|
-
}, []), /* @__PURE__ */ N(
|
|
1043
|
+
}, []), /* @__PURE__ */ N(w, { children: [
|
|
1043
1044
|
/* @__PURE__ */ l(
|
|
1044
1045
|
e.BlocksWrapper,
|
|
1045
1046
|
{
|
|
1046
1047
|
ref: t,
|
|
1047
|
-
className: n() + " props-blocks-wrapper-
|
|
1048
|
+
className: n() + " props-blocks-wrapper-2c6a6d88",
|
|
1048
1049
|
"builder-path": i(),
|
|
1049
1050
|
"builder-parent-id": e.parent,
|
|
1050
1051
|
style: e.styleProp,
|
|
@@ -1055,7 +1056,7 @@ function Mt(e) {
|
|
|
1055
1056
|
children: e.children
|
|
1056
1057
|
}
|
|
1057
1058
|
),
|
|
1058
|
-
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-
|
|
1059
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-2c6a6d88 {
|
|
1059
1060
|
display: flex;
|
|
1060
1061
|
flex-direction: column;
|
|
1061
1062
|
align-items: stretch;
|
|
@@ -1066,7 +1067,7 @@ function F(e) {
|
|
|
1066
1067
|
var i, o, a;
|
|
1067
1068
|
const t = fe(le), n = fe(Pe);
|
|
1068
1069
|
return /* @__PURE__ */ l(
|
|
1069
|
-
|
|
1070
|
+
jt,
|
|
1070
1071
|
{
|
|
1071
1072
|
blocks: e.blocks,
|
|
1072
1073
|
parent: e.parent,
|
|
@@ -1075,7 +1076,7 @@ function F(e) {
|
|
|
1075
1076
|
classNameProp: e.className,
|
|
1076
1077
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1077
1078
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1078
|
-
children: e.blocks ? /* @__PURE__ */ l(
|
|
1079
|
+
children: e.blocks ? /* @__PURE__ */ l(w, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1079
1080
|
M,
|
|
1080
1081
|
{
|
|
1081
1082
|
block: r,
|
|
@@ -1088,8 +1089,8 @@ function F(e) {
|
|
|
1088
1089
|
}
|
|
1089
1090
|
);
|
|
1090
1091
|
}
|
|
1091
|
-
const
|
|
1092
|
-
function
|
|
1092
|
+
const qt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1093
|
+
function zt(e) {
|
|
1093
1094
|
var v, x;
|
|
1094
1095
|
function t() {
|
|
1095
1096
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1136,7 +1137,7 @@ function qt(e) {
|
|
|
1136
1137
|
};
|
|
1137
1138
|
}
|
|
1138
1139
|
function g(b) {
|
|
1139
|
-
const p = b === 0 ? 0 : t(), C = r(b), V = `${p}px`, k = "100%",
|
|
1140
|
+
const p = b === 0 ? 0 : t(), C = r(b), V = `${p}px`, k = "100%", T = 0;
|
|
1140
1141
|
return {
|
|
1141
1142
|
...{
|
|
1142
1143
|
display: "flex",
|
|
@@ -1150,7 +1151,7 @@ function qt(e) {
|
|
|
1150
1151
|
desktopStyle: C
|
|
1151
1152
|
}),
|
|
1152
1153
|
"--column-margin-left-mobile": d({
|
|
1153
|
-
stackedStyle:
|
|
1154
|
+
stackedStyle: T,
|
|
1154
1155
|
desktopStyle: V
|
|
1155
1156
|
}),
|
|
1156
1157
|
"--column-width-tablet": s({
|
|
@@ -1158,7 +1159,7 @@ function qt(e) {
|
|
|
1158
1159
|
desktopStyle: C
|
|
1159
1160
|
}),
|
|
1160
1161
|
"--column-margin-left-tablet": s({
|
|
1161
|
-
stackedStyle:
|
|
1162
|
+
stackedStyle: T,
|
|
1162
1163
|
desktopStyle: V
|
|
1163
1164
|
})
|
|
1164
1165
|
};
|
|
@@ -1206,11 +1207,11 @@ function qt(e) {
|
|
|
1206
1207
|
style: Oe(g(p))
|
|
1207
1208
|
};
|
|
1208
1209
|
}
|
|
1209
|
-
return /* @__PURE__ */ N(
|
|
1210
|
+
return /* @__PURE__ */ N(w, { children: [
|
|
1210
1211
|
/* @__PURE__ */ N(
|
|
1211
1212
|
"div",
|
|
1212
1213
|
{
|
|
1213
|
-
className:
|
|
1214
|
+
className: qt((v = e.builderBlock) == null ? void 0 : v.id) + " div-d55bdf5c",
|
|
1214
1215
|
style: h(),
|
|
1215
1216
|
children: [
|
|
1216
1217
|
/* @__PURE__ */ l(
|
|
@@ -1247,23 +1248,23 @@ function qt(e) {
|
|
|
1247
1248
|
]
|
|
1248
1249
|
}
|
|
1249
1250
|
),
|
|
1250
|
-
/* @__PURE__ */ l("style", { children: `.div-
|
|
1251
|
+
/* @__PURE__ */ l("style", { children: `.div-d55bdf5c {
|
|
1251
1252
|
display: flex;
|
|
1252
1253
|
line-height: normal;
|
|
1253
1254
|
}` })
|
|
1254
1255
|
] });
|
|
1255
1256
|
}
|
|
1256
|
-
function
|
|
1257
|
+
function Kt(e) {
|
|
1257
1258
|
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1258
1259
|
}
|
|
1259
1260
|
function ye(e) {
|
|
1260
1261
|
return e.replace(/http(s)?:/, "");
|
|
1261
1262
|
}
|
|
1262
|
-
function
|
|
1263
|
+
function Jt(e = "", t, n) {
|
|
1263
1264
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1264
1265
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1265
1266
|
}
|
|
1266
|
-
function
|
|
1267
|
+
function Gt(e, t) {
|
|
1267
1268
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1268
1269
|
return e;
|
|
1269
1270
|
if (t === "master")
|
|
@@ -1282,11 +1283,11 @@ function X(e) {
|
|
|
1282
1283
|
if (e.match(/builder\.io/)) {
|
|
1283
1284
|
let n = e;
|
|
1284
1285
|
const i = Number(e.split("?width=")[1]);
|
|
1285
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1286
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Jt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1286
1287
|
}
|
|
1287
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1288
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1288
1289
|
}
|
|
1289
|
-
function
|
|
1290
|
+
function Yt(e) {
|
|
1290
1291
|
var o, a, r, s, d, c;
|
|
1291
1292
|
function t() {
|
|
1292
1293
|
var m;
|
|
@@ -1319,8 +1320,8 @@ function Gt(e) {
|
|
|
1319
1320
|
return e.aspectRatio ? h : void 0;
|
|
1320
1321
|
}
|
|
1321
1322
|
return A(() => {
|
|
1322
|
-
}, []), /* @__PURE__ */ N(
|
|
1323
|
-
/* @__PURE__ */ N(
|
|
1323
|
+
}, []), /* @__PURE__ */ N(w, { children: [
|
|
1324
|
+
/* @__PURE__ */ N(w, { children: [
|
|
1324
1325
|
/* @__PURE__ */ N("picture", { children: [
|
|
1325
1326
|
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1326
1327
|
/* @__PURE__ */ l(
|
|
@@ -1335,7 +1336,7 @@ function Gt(e) {
|
|
|
1335
1336
|
objectFit: e.backgroundSize || "cover",
|
|
1336
1337
|
...i()
|
|
1337
1338
|
},
|
|
1338
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1339
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
|
|
1339
1340
|
src: e.image,
|
|
1340
1341
|
srcSet: t(),
|
|
1341
1342
|
sizes: e.sizes
|
|
@@ -1345,23 +1346,23 @@ function Gt(e) {
|
|
|
1345
1346
|
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1346
1347
|
"div",
|
|
1347
1348
|
{
|
|
1348
|
-
className: "builder-image-sizer div-
|
|
1349
|
+
className: "builder-image-sizer div-11a47ef4",
|
|
1349
1350
|
style: {
|
|
1350
1351
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1351
1352
|
}
|
|
1352
1353
|
}
|
|
1353
1354
|
) : null,
|
|
1354
|
-
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
1355
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-
|
|
1355
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
|
|
1356
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-11a47ef4-2", children: e.children }) : null
|
|
1356
1357
|
] }),
|
|
1357
|
-
/* @__PURE__ */ l("style", { children: `.img-
|
|
1358
|
+
/* @__PURE__ */ l("style", { children: `.img-11a47ef4 {
|
|
1358
1359
|
opacity: 1;
|
|
1359
1360
|
transition: opacity 0.2s ease-in-out;
|
|
1360
|
-
}.div-
|
|
1361
|
+
}.div-11a47ef4 {
|
|
1361
1362
|
width: 100%;
|
|
1362
1363
|
pointer-events: none;
|
|
1363
1364
|
font-size: 0;
|
|
1364
|
-
}.div-
|
|
1365
|
+
}.div-11a47ef4-2 {
|
|
1365
1366
|
display: flex;
|
|
1366
1367
|
flex-direction: column;
|
|
1367
1368
|
align-items: stretch;
|
|
@@ -1373,7 +1374,7 @@ function Gt(e) {
|
|
|
1373
1374
|
}` })
|
|
1374
1375
|
] });
|
|
1375
1376
|
}
|
|
1376
|
-
function
|
|
1377
|
+
function Qt(e) {
|
|
1377
1378
|
return /* @__PURE__ */ l(
|
|
1378
1379
|
"section",
|
|
1379
1380
|
{
|
|
@@ -1454,7 +1455,7 @@ const Z = {
|
|
|
1454
1455
|
}
|
|
1455
1456
|
}
|
|
1456
1457
|
}]
|
|
1457
|
-
},
|
|
1458
|
+
}, Xt = {
|
|
1458
1459
|
name: "Builder:Accordion",
|
|
1459
1460
|
canHaveChildren: !0,
|
|
1460
1461
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1519,7 +1520,7 @@ const Z = {
|
|
|
1519
1520
|
builderLinkComponent: !0
|
|
1520
1521
|
}
|
|
1521
1522
|
}, xe = (e) => e.toString();
|
|
1522
|
-
function
|
|
1523
|
+
function Zt(e) {
|
|
1523
1524
|
var g;
|
|
1524
1525
|
const [t, n] = E(() => []);
|
|
1525
1526
|
function i() {
|
|
@@ -1597,7 +1598,7 @@ function Xt(e) {
|
|
|
1597
1598
|
function h(m) {
|
|
1598
1599
|
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1599
1600
|
}
|
|
1600
|
-
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ N(
|
|
1601
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ N(Xe.Fragment, { children: [
|
|
1601
1602
|
/* @__PURE__ */ l(
|
|
1602
1603
|
"div",
|
|
1603
1604
|
{
|
|
@@ -1642,9 +1643,9 @@ function Xt(e) {
|
|
|
1642
1643
|
)
|
|
1643
1644
|
}
|
|
1644
1645
|
) : null
|
|
1645
|
-
] })) });
|
|
1646
|
+
] }, y)) });
|
|
1646
1647
|
}
|
|
1647
|
-
const
|
|
1648
|
+
const en = {
|
|
1648
1649
|
name: "Core:Button",
|
|
1649
1650
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1650
1651
|
defaultStyles: {
|
|
@@ -1680,7 +1681,7 @@ const Zt = {
|
|
|
1680
1681
|
shouldReceiveBuilderProps: {
|
|
1681
1682
|
builderLinkComponent: !0
|
|
1682
1683
|
}
|
|
1683
|
-
},
|
|
1684
|
+
}, tn = {
|
|
1684
1685
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1685
1686
|
name: "Columns",
|
|
1686
1687
|
isRSC: !0,
|
|
@@ -1887,13 +1888,13 @@ const Zt = {
|
|
|
1887
1888
|
builderComponents: !0,
|
|
1888
1889
|
builderLinkComponent: !0
|
|
1889
1890
|
}
|
|
1890
|
-
},
|
|
1891
|
+
}, nn = {
|
|
1891
1892
|
name: "Fragment",
|
|
1892
1893
|
static: !0,
|
|
1893
1894
|
hidden: !0,
|
|
1894
1895
|
canHaveChildren: !0,
|
|
1895
1896
|
noWrap: !0
|
|
1896
|
-
}, 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"],
|
|
1897
|
+
}, 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"], on = ["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"], an = {
|
|
1897
1898
|
name: "Image",
|
|
1898
1899
|
static: !0,
|
|
1899
1900
|
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",
|
|
@@ -2001,7 +2002,7 @@ const Zt = {
|
|
|
2001
2002
|
shouldReceiveBuilderProps: {
|
|
2002
2003
|
builderBlock: !0
|
|
2003
2004
|
}
|
|
2004
|
-
},
|
|
2005
|
+
}, rn = {
|
|
2005
2006
|
name: "Core:Section",
|
|
2006
2007
|
static: !0,
|
|
2007
2008
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2040,7 +2041,7 @@ const Zt = {
|
|
|
2040
2041
|
}
|
|
2041
2042
|
}
|
|
2042
2043
|
}]
|
|
2043
|
-
},
|
|
2044
|
+
}, ln = {
|
|
2044
2045
|
name: "Slot",
|
|
2045
2046
|
isRSC: !0,
|
|
2046
2047
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2058,7 +2059,7 @@ const Zt = {
|
|
|
2058
2059
|
builderComponents: !0
|
|
2059
2060
|
}
|
|
2060
2061
|
};
|
|
2061
|
-
function
|
|
2062
|
+
function sn(e) {
|
|
2062
2063
|
var t, n, i;
|
|
2063
2064
|
return /* @__PURE__ */ l(
|
|
2064
2065
|
"div",
|
|
@@ -2082,7 +2083,7 @@ function ln(e) {
|
|
|
2082
2083
|
}
|
|
2083
2084
|
);
|
|
2084
2085
|
}
|
|
2085
|
-
const
|
|
2086
|
+
const cn = {
|
|
2086
2087
|
name: "Symbol",
|
|
2087
2088
|
noWrap: !0,
|
|
2088
2089
|
static: !0,
|
|
@@ -2159,7 +2160,7 @@ const sn = {
|
|
|
2159
2160
|
text: "New tab content "
|
|
2160
2161
|
}
|
|
2161
2162
|
}
|
|
2162
|
-
},
|
|
2163
|
+
}, dn = {
|
|
2163
2164
|
name: "Builder: Tabs",
|
|
2164
2165
|
inputs: [{
|
|
2165
2166
|
name: "tabs",
|
|
@@ -2263,7 +2264,7 @@ const sn = {
|
|
|
2263
2264
|
builderLinkComponent: !0
|
|
2264
2265
|
}
|
|
2265
2266
|
};
|
|
2266
|
-
function
|
|
2267
|
+
function un(e) {
|
|
2267
2268
|
var a;
|
|
2268
2269
|
const [t, n] = E(
|
|
2269
2270
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2322,7 +2323,7 @@ function dn(e) {
|
|
|
2322
2323
|
) }) : null
|
|
2323
2324
|
] });
|
|
2324
2325
|
}
|
|
2325
|
-
const
|
|
2326
|
+
const mn = {
|
|
2326
2327
|
shouldReceiveBuilderProps: {
|
|
2327
2328
|
builderBlock: !1,
|
|
2328
2329
|
builderContext: !0
|
|
@@ -2345,7 +2346,7 @@ const un = {
|
|
|
2345
2346
|
textAlign: "center"
|
|
2346
2347
|
}
|
|
2347
2348
|
};
|
|
2348
|
-
function
|
|
2349
|
+
function fn(e) {
|
|
2349
2350
|
var t;
|
|
2350
2351
|
return /* @__PURE__ */ l(
|
|
2351
2352
|
"div",
|
|
@@ -2358,7 +2359,7 @@ function mn(e) {
|
|
|
2358
2359
|
}
|
|
2359
2360
|
);
|
|
2360
2361
|
}
|
|
2361
|
-
const
|
|
2362
|
+
const hn = {
|
|
2362
2363
|
name: "Custom Code",
|
|
2363
2364
|
static: !0,
|
|
2364
2365
|
requiredPermissions: ["editCode"],
|
|
@@ -2381,7 +2382,7 @@ const fn = {
|
|
|
2381
2382
|
advanced: !0
|
|
2382
2383
|
}]
|
|
2383
2384
|
};
|
|
2384
|
-
function
|
|
2385
|
+
function gn(e) {
|
|
2385
2386
|
const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2386
2387
|
return A(() => {
|
|
2387
2388
|
var s;
|
|
@@ -2419,7 +2420,7 @@ function hn(e) {
|
|
|
2419
2420
|
}
|
|
2420
2421
|
);
|
|
2421
2422
|
}
|
|
2422
|
-
const
|
|
2423
|
+
const bn = {
|
|
2423
2424
|
name: "Embed",
|
|
2424
2425
|
static: !0,
|
|
2425
2426
|
inputs: [{
|
|
@@ -2434,8 +2435,8 @@ const gn = {
|
|
|
2434
2435
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2435
2436
|
hideFromUI: !0
|
|
2436
2437
|
}]
|
|
2437
|
-
},
|
|
2438
|
-
function
|
|
2438
|
+
}, pn = ["text/javascript", "application/javascript", "application/ecmascript"], yn = (e) => pn.includes(e.type);
|
|
2439
|
+
function xn(e) {
|
|
2439
2440
|
const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, s] = E(() => !1);
|
|
2440
2441
|
function d() {
|
|
2441
2442
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2447,7 +2448,7 @@ function yn(e) {
|
|
|
2447
2448
|
n.push(g.src);
|
|
2448
2449
|
const m = document.createElement("script");
|
|
2449
2450
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2450
|
-
} else if (
|
|
2451
|
+
} else if (yn(g) && !o.includes(g.innerText))
|
|
2451
2452
|
try {
|
|
2452
2453
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2453
2454
|
} catch (m) {
|
|
@@ -2466,7 +2467,7 @@ function yn(e) {
|
|
|
2466
2467
|
}
|
|
2467
2468
|
);
|
|
2468
2469
|
}
|
|
2469
|
-
const
|
|
2470
|
+
const vn = {
|
|
2470
2471
|
name: "Form:Form",
|
|
2471
2472
|
// editableTags: ['builder-form-error']
|
|
2472
2473
|
defaults: {
|
|
@@ -2703,11 +2704,11 @@ const xn = {
|
|
|
2703
2704
|
builderComponents: !0,
|
|
2704
2705
|
builderLinkComponent: !0
|
|
2705
2706
|
}
|
|
2706
|
-
},
|
|
2707
|
+
}, Sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], kn = () => {
|
|
2707
2708
|
const e = process.env.NODE_ENV || "production";
|
|
2708
|
-
return
|
|
2709
|
+
return Sn.includes(e) ? e : "production";
|
|
2709
2710
|
};
|
|
2710
|
-
function
|
|
2711
|
+
function Cn(e) {
|
|
2711
2712
|
var g, m;
|
|
2712
2713
|
const t = O(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, s] = E(() => "");
|
|
2713
2714
|
function d(y) {
|
|
@@ -2747,8 +2748,8 @@ function kn(e) {
|
|
|
2747
2748
|
} else if (u.type === "checkbox")
|
|
2748
2749
|
S = u.checked;
|
|
2749
2750
|
else if (u.type === "number" || u.type === "range") {
|
|
2750
|
-
const
|
|
2751
|
-
isNaN(
|
|
2751
|
+
const I = u.valueAsNumber;
|
|
2752
|
+
isNaN(I) || (S = I);
|
|
2752
2753
|
} else
|
|
2753
2754
|
u.type === "file" ? S = u.files : S = u.value;
|
|
2754
2755
|
else
|
|
@@ -2770,11 +2771,11 @@ function kn(e) {
|
|
|
2770
2771
|
}), p = JSON.stringify(u);
|
|
2771
2772
|
}
|
|
2772
2773
|
k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
|
|
2773
|
-
const
|
|
2774
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2774
|
+
const T = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2775
|
+
if (t.current && (t.current.dispatchEvent(T), T.defaultPrevented))
|
|
2775
2776
|
return;
|
|
2776
2777
|
i("sending");
|
|
2777
|
-
const R = `${
|
|
2778
|
+
const R = `${kn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2778
2779
|
e.sendSubmissionsToEmail || ""
|
|
2779
2780
|
)}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
|
|
2780
2781
|
Ie(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
|
|
@@ -2782,15 +2783,15 @@ function kn(e) {
|
|
|
2782
2783
|
let S;
|
|
2783
2784
|
const P = u.headers.get("content-type");
|
|
2784
2785
|
if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2785
|
-
let
|
|
2786
|
-
|
|
2786
|
+
let I = Be(S, e.errorMessagePath);
|
|
2787
|
+
I && (typeof I != "string" && (I = JSON.stringify(I)), s(I), d({ formErrorMessage: I }));
|
|
2787
2788
|
}
|
|
2788
2789
|
if (a(S), i(u.ok ? "success" : "error"), u.ok) {
|
|
2789
|
-
const
|
|
2790
|
+
const I = new CustomEvent("submit:success", {
|
|
2790
2791
|
detail: { res: u, body: S }
|
|
2791
2792
|
});
|
|
2792
2793
|
if (t.current) {
|
|
2793
|
-
if (t.current.dispatchEvent(
|
|
2794
|
+
if (t.current.dispatchEvent(I), I.defaultPrevented)
|
|
2794
2795
|
return;
|
|
2795
2796
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2796
2797
|
}
|
|
@@ -2813,7 +2814,7 @@ function kn(e) {
|
|
|
2813
2814
|
);
|
|
2814
2815
|
}
|
|
2815
2816
|
}
|
|
2816
|
-
return /* @__PURE__ */ N(
|
|
2817
|
+
return /* @__PURE__ */ N(w, { children: [
|
|
2817
2818
|
" ",
|
|
2818
2819
|
/* @__PURE__ */ N(
|
|
2819
2820
|
"form",
|
|
@@ -2826,7 +2827,7 @@ function kn(e) {
|
|
|
2826
2827
|
onSubmit: (y) => h(y),
|
|
2827
2828
|
...e.attributes,
|
|
2828
2829
|
children: [
|
|
2829
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(
|
|
2830
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(w, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
|
|
2830
2831
|
M,
|
|
2831
2832
|
{
|
|
2832
2833
|
block: y,
|
|
@@ -2852,7 +2853,7 @@ function kn(e) {
|
|
|
2852
2853
|
context: e.builderContext
|
|
2853
2854
|
}
|
|
2854
2855
|
) : null,
|
|
2855
|
-
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-
|
|
2856
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
|
|
2856
2857
|
c() === "success" ? /* @__PURE__ */ l(
|
|
2857
2858
|
F,
|
|
2858
2859
|
{
|
|
@@ -2865,11 +2866,11 @@ function kn(e) {
|
|
|
2865
2866
|
}
|
|
2866
2867
|
),
|
|
2867
2868
|
" ",
|
|
2868
|
-
/* @__PURE__ */ l("style", { children: ".pre-
|
|
2869
|
+
/* @__PURE__ */ l("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
|
|
2869
2870
|
" "
|
|
2870
2871
|
] });
|
|
2871
2872
|
}
|
|
2872
|
-
const
|
|
2873
|
+
const Tn = {
|
|
2873
2874
|
name: "Form:Input",
|
|
2874
2875
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2875
2876
|
inputs: [
|
|
@@ -2921,7 +2922,7 @@ const Cn = {
|
|
|
2921
2922
|
borderColor: "#ccc"
|
|
2922
2923
|
}
|
|
2923
2924
|
};
|
|
2924
|
-
function
|
|
2925
|
+
function In(e) {
|
|
2925
2926
|
return /* @__PURE__ */ Re(
|
|
2926
2927
|
"input",
|
|
2927
2928
|
{
|
|
@@ -2936,7 +2937,7 @@ function Tn(e) {
|
|
|
2936
2937
|
}
|
|
2937
2938
|
);
|
|
2938
2939
|
}
|
|
2939
|
-
const
|
|
2940
|
+
const wn = {
|
|
2940
2941
|
name: "Form:Select",
|
|
2941
2942
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2942
2943
|
defaultStyles: {
|
|
@@ -2979,7 +2980,7 @@ const In = {
|
|
|
2979
2980
|
static: !0,
|
|
2980
2981
|
noWrap: !0
|
|
2981
2982
|
};
|
|
2982
|
-
function
|
|
2983
|
+
function En(e) {
|
|
2983
2984
|
var t;
|
|
2984
2985
|
return /* @__PURE__ */ Re(
|
|
2985
2986
|
"select",
|
|
@@ -2994,7 +2995,7 @@ function wn(e) {
|
|
|
2994
2995
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2995
2996
|
);
|
|
2996
2997
|
}
|
|
2997
|
-
const
|
|
2998
|
+
const Rn = {
|
|
2998
2999
|
name: "Form:SubmitButton",
|
|
2999
3000
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3000
3001
|
defaultStyles: {
|
|
@@ -3020,10 +3021,10 @@ const En = {
|
|
|
3020
3021
|
// TODO: defaultChildren
|
|
3021
3022
|
// canHaveChildren: true,
|
|
3022
3023
|
};
|
|
3023
|
-
function
|
|
3024
|
+
function Pn(e) {
|
|
3024
3025
|
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3025
3026
|
}
|
|
3026
|
-
const
|
|
3027
|
+
const Bn = {
|
|
3027
3028
|
name: "Form:TextArea",
|
|
3028
3029
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3029
3030
|
inputs: [{
|
|
@@ -3060,7 +3061,7 @@ const Pn = {
|
|
|
3060
3061
|
static: !0,
|
|
3061
3062
|
noWrap: !0
|
|
3062
3063
|
};
|
|
3063
|
-
function
|
|
3064
|
+
function Vn(e) {
|
|
3064
3065
|
return /* @__PURE__ */ l(
|
|
3065
3066
|
"textarea",
|
|
3066
3067
|
{
|
|
@@ -3073,7 +3074,7 @@ function Bn(e) {
|
|
|
3073
3074
|
}
|
|
3074
3075
|
);
|
|
3075
3076
|
}
|
|
3076
|
-
const
|
|
3077
|
+
const An = {
|
|
3077
3078
|
// friendlyName?
|
|
3078
3079
|
name: "Raw:Img",
|
|
3079
3080
|
hideFromInsertMenu: !0,
|
|
@@ -3088,7 +3089,7 @@ const Vn = {
|
|
|
3088
3089
|
noWrap: !0,
|
|
3089
3090
|
static: !0
|
|
3090
3091
|
};
|
|
3091
|
-
function
|
|
3092
|
+
function Nn(e) {
|
|
3092
3093
|
return /* @__PURE__ */ l(
|
|
3093
3094
|
"img",
|
|
3094
3095
|
{
|
|
@@ -3103,7 +3104,7 @@ function An(e) {
|
|
|
3103
3104
|
W() && e.imgSrc || "default-key"
|
|
3104
3105
|
);
|
|
3105
3106
|
}
|
|
3106
|
-
const
|
|
3107
|
+
const Wn = {
|
|
3107
3108
|
name: "Video",
|
|
3108
3109
|
canHaveChildren: !0,
|
|
3109
3110
|
defaultStyles: {
|
|
@@ -3114,7 +3115,7 @@ const Nn = {
|
|
|
3114
3115
|
inputs: [{
|
|
3115
3116
|
name: "video",
|
|
3116
3117
|
type: "file",
|
|
3117
|
-
allowedFileTypes:
|
|
3118
|
+
allowedFileTypes: on,
|
|
3118
3119
|
bubble: !0,
|
|
3119
3120
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3120
3121
|
required: !0
|
|
@@ -3188,7 +3189,7 @@ const Nn = {
|
|
|
3188
3189
|
builderBlock: !0
|
|
3189
3190
|
}
|
|
3190
3191
|
};
|
|
3191
|
-
function
|
|
3192
|
+
function Fn(e) {
|
|
3192
3193
|
var i, o, a, r, s, d, c;
|
|
3193
3194
|
function t() {
|
|
3194
3195
|
return {
|
|
@@ -3289,64 +3290,64 @@ function Wn(e) {
|
|
|
3289
3290
|
}
|
|
3290
3291
|
);
|
|
3291
3292
|
}
|
|
3292
|
-
const
|
|
3293
|
-
component:
|
|
3294
|
-
...
|
|
3293
|
+
const $n = () => [{
|
|
3294
|
+
component: gn,
|
|
3295
|
+
...hn
|
|
3295
3296
|
}, {
|
|
3296
|
-
component:
|
|
3297
|
-
...
|
|
3297
|
+
component: xn,
|
|
3298
|
+
...bn
|
|
3298
3299
|
}, {
|
|
3299
|
-
component:
|
|
3300
|
-
...
|
|
3300
|
+
component: Cn,
|
|
3301
|
+
...vn
|
|
3301
3302
|
}, {
|
|
3302
|
-
component:
|
|
3303
|
-
...
|
|
3303
|
+
component: In,
|
|
3304
|
+
...Tn
|
|
3304
3305
|
}, {
|
|
3305
|
-
component:
|
|
3306
|
-
...
|
|
3306
|
+
component: Pn,
|
|
3307
|
+
...Rn
|
|
3307
3308
|
}, {
|
|
3308
|
-
component:
|
|
3309
|
-
...
|
|
3309
|
+
component: En,
|
|
3310
|
+
...wn
|
|
3310
3311
|
}, {
|
|
3311
|
-
component:
|
|
3312
|
-
...
|
|
3312
|
+
component: Vn,
|
|
3313
|
+
...Bn
|
|
3313
3314
|
}, {
|
|
3314
|
-
component:
|
|
3315
|
-
...
|
|
3315
|
+
component: Nn,
|
|
3316
|
+
...An
|
|
3316
3317
|
}, {
|
|
3317
|
-
component:
|
|
3318
|
-
...
|
|
3318
|
+
component: Fn,
|
|
3319
|
+
...Wn
|
|
3319
3320
|
}], ve = () => [{
|
|
3320
|
-
component:
|
|
3321
|
-
...Zt
|
|
3322
|
-
}, {
|
|
3323
|
-
component: qt,
|
|
3321
|
+
component: tt,
|
|
3324
3322
|
...en
|
|
3325
3323
|
}, {
|
|
3326
3324
|
component: zt,
|
|
3327
3325
|
...tn
|
|
3328
3326
|
}, {
|
|
3329
|
-
component:
|
|
3330
|
-
...
|
|
3327
|
+
component: Kt,
|
|
3328
|
+
...nn
|
|
3331
3329
|
}, {
|
|
3332
3330
|
component: Yt,
|
|
3333
3331
|
...an
|
|
3334
3332
|
}, {
|
|
3335
|
-
component:
|
|
3333
|
+
component: Qt,
|
|
3336
3334
|
...rn
|
|
3337
3335
|
}, {
|
|
3338
|
-
component:
|
|
3339
|
-
...
|
|
3340
|
-
}, {
|
|
3341
|
-
component: mn,
|
|
3342
|
-
...un
|
|
3336
|
+
component: sn,
|
|
3337
|
+
...ln
|
|
3343
3338
|
}, {
|
|
3344
|
-
component:
|
|
3339
|
+
component: ri,
|
|
3345
3340
|
...cn
|
|
3346
3341
|
}, {
|
|
3347
|
-
component:
|
|
3348
|
-
...
|
|
3349
|
-
},
|
|
3342
|
+
component: fn,
|
|
3343
|
+
...mn
|
|
3344
|
+
}, {
|
|
3345
|
+
component: un,
|
|
3346
|
+
...dn
|
|
3347
|
+
}, {
|
|
3348
|
+
component: Zt,
|
|
3349
|
+
...Xt
|
|
3350
|
+
}, ...$n()], Ln = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3350
3351
|
function getAndSetVariantId() {
|
|
3351
3352
|
function setCookie(name, value, days) {
|
|
3352
3353
|
let expires = '';
|
|
@@ -3402,7 +3403,7 @@ const Fn = () => [{
|
|
|
3402
3403
|
}).join('');
|
|
3403
3404
|
styleEl.innerHTML = newStyleStr;
|
|
3404
3405
|
}
|
|
3405
|
-
}`,
|
|
3406
|
+
}`, On = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3406
3407
|
if (!navigator.cookieEnabled) {
|
|
3407
3408
|
return;
|
|
3408
3409
|
}
|
|
@@ -3440,16 +3441,16 @@ const Fn = () => [{
|
|
|
3440
3441
|
...t,
|
|
3441
3442
|
testVariationId: t.id,
|
|
3442
3443
|
id: e == null ? void 0 : e.id
|
|
3443
|
-
})),
|
|
3444
|
+
})), Dn = ({
|
|
3444
3445
|
canTrack: e,
|
|
3445
3446
|
content: t
|
|
3446
|
-
}) => !(!(q(t).length > 0) || !e || D()),
|
|
3447
|
-
window.${Me} = ${
|
|
3448
|
-
window.${je} = ${
|
|
3449
|
-
`,
|
|
3447
|
+
}) => !(!(q(t).length > 0) || !e || D()), Un = (e) => e === "react" || e === "reactNative", qe = Un($), _n = () => `
|
|
3448
|
+
window.${Me} = ${Ln}
|
|
3449
|
+
window.${je} = ${On}
|
|
3450
|
+
`, Hn = (e, t) => `
|
|
3450
3451
|
window.${Me}(
|
|
3451
3452
|
"${t}",${JSON.stringify(e)}, ${qe}
|
|
3452
|
-
)`,
|
|
3453
|
+
)`, Mn = ({
|
|
3453
3454
|
contentId: e,
|
|
3454
3455
|
variationId: t
|
|
3455
3456
|
}) => `window.${je}(
|
|
@@ -3468,7 +3469,7 @@ function oe(e) {
|
|
|
3468
3469
|
function Se(e) {
|
|
3469
3470
|
return Math.round(e * 1e3) / 1e3;
|
|
3470
3471
|
}
|
|
3471
|
-
const
|
|
3472
|
+
const jn = (e, t, n = !0) => {
|
|
3472
3473
|
if (!(e instanceof HTMLElement))
|
|
3473
3474
|
return null;
|
|
3474
3475
|
let i = n ? e : e.parentElement;
|
|
@@ -3479,7 +3480,7 @@ const Mn = (e, t, n = !0) => {
|
|
|
3479
3480
|
return i;
|
|
3480
3481
|
} while (i = i.parentElement);
|
|
3481
3482
|
return null;
|
|
3482
|
-
},
|
|
3483
|
+
}, qn = (e) => jn(e, (t) => {
|
|
3483
3484
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3484
3485
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3485
3486
|
}), ke = ({
|
|
@@ -3491,8 +3492,8 @@ const Mn = (e, t, n = !0) => {
|
|
|
3491
3492
|
x: a,
|
|
3492
3493
|
y: r
|
|
3493
3494
|
};
|
|
3494
|
-
},
|
|
3495
|
-
const t = e.target, n = t &&
|
|
3495
|
+
}, zn = (e) => {
|
|
3496
|
+
const t = e.target, n = t && qn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3496
3497
|
return {
|
|
3497
3498
|
targetBuilderElement: i || void 0,
|
|
3498
3499
|
metadata: {
|
|
@@ -3507,7 +3508,7 @@ const Mn = (e, t, n = !0) => {
|
|
|
3507
3508
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3508
3509
|
}
|
|
3509
3510
|
};
|
|
3510
|
-
},
|
|
3511
|
+
}, Kn = ["svelte", "qwik", "vue"], Ce = () => Kn.includes($) && (W() || ae()), Jn = (e) => {
|
|
3511
3512
|
var a, r;
|
|
3512
3513
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3513
3514
|
let o = "";
|
|
@@ -3533,15 +3534,15 @@ font-weight: ${s};
|
|
|
3533
3534
|
`.trim());
|
|
3534
3535
|
}
|
|
3535
3536
|
return o;
|
|
3536
|
-
},
|
|
3537
|
+
}, Gn = ({
|
|
3537
3538
|
customFonts: e
|
|
3538
3539
|
}) => {
|
|
3539
3540
|
var t;
|
|
3540
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3541
|
-
},
|
|
3541
|
+
return ((t = e == null ? void 0 : e.map((n) => Jn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3542
|
+
}, Yn = ({
|
|
3542
3543
|
cssCode: e,
|
|
3543
3544
|
contentId: t
|
|
3544
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3545
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Qn = `
|
|
3545
3546
|
.builder-button {
|
|
3546
3547
|
all: unset;
|
|
3547
3548
|
}
|
|
@@ -3558,24 +3559,24 @@ font-weight: ${s};
|
|
|
3558
3559
|
text-align: inherit;
|
|
3559
3560
|
font-family: inherit;
|
|
3560
3561
|
}
|
|
3561
|
-
`,
|
|
3562
|
-
function
|
|
3562
|
+
`, Xn = (e) => e ? "" : Qn, Zn = (e) => `variant-${e}`;
|
|
3563
|
+
function ei(e) {
|
|
3563
3564
|
var p, C, V;
|
|
3564
3565
|
const t = O(null);
|
|
3565
3566
|
function n(k) {
|
|
3566
3567
|
var R, B;
|
|
3567
|
-
const
|
|
3568
|
+
const T = {
|
|
3568
3569
|
...e.builderContextSignal.rootState,
|
|
3569
3570
|
...k
|
|
3570
3571
|
};
|
|
3571
|
-
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R,
|
|
3572
|
+
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, T) : e.setBuilderContextSignal((u) => ({
|
|
3572
3573
|
...u,
|
|
3573
|
-
rootState:
|
|
3574
|
+
rootState: T
|
|
3574
3575
|
}));
|
|
3575
3576
|
}
|
|
3576
3577
|
function i(k) {
|
|
3577
3578
|
var R, B, u, S, P;
|
|
3578
|
-
const
|
|
3579
|
+
const T = {
|
|
3579
3580
|
...e.builderContextSignal.content,
|
|
3580
3581
|
...k,
|
|
3581
3582
|
data: {
|
|
@@ -3588,9 +3589,9 @@ function Zn(e) {
|
|
|
3588
3589
|
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)
|
|
3589
3590
|
}
|
|
3590
3591
|
};
|
|
3591
|
-
e.setBuilderContextSignal((
|
|
3592
|
-
...
|
|
3593
|
-
content:
|
|
3592
|
+
e.setBuilderContextSignal((I) => ({
|
|
3593
|
+
...I,
|
|
3594
|
+
content: T
|
|
3594
3595
|
}));
|
|
3595
3596
|
}
|
|
3596
3597
|
function o() {
|
|
@@ -3607,29 +3608,29 @@ function Zn(e) {
|
|
|
3607
3608
|
model: e.model,
|
|
3608
3609
|
trustedHosts: e.trustedHosts,
|
|
3609
3610
|
callbacks: {
|
|
3610
|
-
configureSdk: (
|
|
3611
|
+
configureSdk: (T) => {
|
|
3611
3612
|
var u;
|
|
3612
|
-
const { breakpoints: R, contentId: B } =
|
|
3613
|
+
const { breakpoints: R, contentId: B } = T;
|
|
3613
3614
|
!B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
|
|
3614
3615
|
meta: {
|
|
3615
3616
|
breakpoints: R
|
|
3616
3617
|
}
|
|
3617
3618
|
});
|
|
3618
3619
|
},
|
|
3619
|
-
animation: (
|
|
3620
|
-
$e(
|
|
3620
|
+
animation: (T) => {
|
|
3621
|
+
$e(T);
|
|
3621
3622
|
},
|
|
3622
|
-
contentUpdate: (
|
|
3623
|
-
i(
|
|
3623
|
+
contentUpdate: (T) => {
|
|
3624
|
+
i(T);
|
|
3624
3625
|
}
|
|
3625
3626
|
}
|
|
3626
3627
|
})(k);
|
|
3627
3628
|
}
|
|
3628
3629
|
const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
|
|
3629
3630
|
function f(k) {
|
|
3630
|
-
var
|
|
3631
|
+
var T, R;
|
|
3631
3632
|
if (e.builderContextSignal.content) {
|
|
3632
|
-
const B = (
|
|
3633
|
+
const B = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
|
|
3633
3634
|
ue({
|
|
3634
3635
|
apiHost: e.apiHost,
|
|
3635
3636
|
type: "click",
|
|
@@ -3637,22 +3638,22 @@ function Zn(e) {
|
|
|
3637
3638
|
contentId: u,
|
|
3638
3639
|
apiKey: e.apiKey,
|
|
3639
3640
|
variationId: B !== u ? B : void 0,
|
|
3640
|
-
...
|
|
3641
|
+
...zn(k),
|
|
3641
3642
|
unique: !m
|
|
3642
3643
|
});
|
|
3643
3644
|
}
|
|
3644
3645
|
m || y(!0);
|
|
3645
3646
|
}
|
|
3646
3647
|
function v() {
|
|
3647
|
-
var
|
|
3648
|
-
const k = (B = (R = (
|
|
3648
|
+
var T, R, B;
|
|
3649
|
+
const k = (B = (R = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : R.httpRequests) != null ? B : {};
|
|
3649
3650
|
Object.entries(k).forEach(([u, S]) => {
|
|
3650
3651
|
if (!S || h[u] || d[u] && !W())
|
|
3651
3652
|
return;
|
|
3652
3653
|
h[u] = !0;
|
|
3653
3654
|
const P = S.replace(
|
|
3654
3655
|
/{{([^}]+)}}/g,
|
|
3655
|
-
(
|
|
3656
|
+
(I, L) => String(
|
|
3656
3657
|
U({
|
|
3657
3658
|
code: L,
|
|
3658
3659
|
context: e.context || {},
|
|
@@ -3662,12 +3663,12 @@ function Zn(e) {
|
|
|
3662
3663
|
})
|
|
3663
3664
|
)
|
|
3664
3665
|
);
|
|
3665
|
-
Ie(P), fetch(P).then((
|
|
3666
|
+
Ie(P), fetch(P).then((I) => I.json()).then((I) => {
|
|
3666
3667
|
n({
|
|
3667
|
-
[u]:
|
|
3668
|
+
[u]: I
|
|
3668
3669
|
}), d[u] = !0;
|
|
3669
|
-
}).catch((
|
|
3670
|
-
console.error("error fetching dynamic data", S,
|
|
3670
|
+
}).catch((I) => {
|
|
3671
|
+
console.error("error fetching dynamic data", S, I);
|
|
3671
3672
|
}).finally(() => {
|
|
3672
3673
|
h[u] = !1;
|
|
3673
3674
|
});
|
|
@@ -3690,7 +3691,7 @@ function Zn(e) {
|
|
|
3690
3691
|
}
|
|
3691
3692
|
const b = O(!1);
|
|
3692
3693
|
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3693
|
-
var k,
|
|
3694
|
+
var k, T, R;
|
|
3694
3695
|
if (D()) {
|
|
3695
3696
|
if (W() && !e.isNestedRender && (window.addEventListener("message", s), Ke(), Je({
|
|
3696
3697
|
...e.locale ? {
|
|
@@ -3707,14 +3708,14 @@ function Zn(e) {
|
|
|
3707
3708
|
).forEach((u) => {
|
|
3708
3709
|
var S, P;
|
|
3709
3710
|
if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
|
|
3710
|
-
const
|
|
3711
|
-
(P = window.parent) == null || P.postMessage(
|
|
3711
|
+
const I = Ge(u);
|
|
3712
|
+
(P = window.parent) == null || P.postMessage(I, "*");
|
|
3712
3713
|
}
|
|
3713
3714
|
}), window.addEventListener(
|
|
3714
3715
|
"builder:component:stateChangeListenerActivated",
|
|
3715
3716
|
x
|
|
3716
3717
|
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3717
|
-
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (
|
|
3718
|
+
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (T = e.builderContextSignal.content) == null ? void 0 : T.id, P = e.apiKey;
|
|
3718
3719
|
ue({
|
|
3719
3720
|
apiHost: e.apiHost,
|
|
3720
3721
|
type: "impression",
|
|
@@ -3727,8 +3728,8 @@ function Zn(e) {
|
|
|
3727
3728
|
if (ae() && !W()) {
|
|
3728
3729
|
const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
|
|
3729
3730
|
`builder.overrides.${S}`
|
|
3730
|
-
),
|
|
3731
|
-
(S === "BUILDER_STUDIO" || S === e.model &&
|
|
3731
|
+
), I = u.get("apiKey") || u.get("builder.space");
|
|
3732
|
+
(S === "BUILDER_STUDIO" || S === e.model && I === e.apiKey && (!e.content || P === e.content.id)) && we({
|
|
3732
3733
|
model: e.model || "",
|
|
3733
3734
|
apiKey: e.apiKey,
|
|
3734
3735
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -3764,7 +3765,7 @@ function Zn(e) {
|
|
|
3764
3765
|
onClick: (k) => f(k),
|
|
3765
3766
|
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3766
3767
|
"builder-model": e.model,
|
|
3767
|
-
className:
|
|
3768
|
+
className: Zn(
|
|
3768
3769
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
3769
3770
|
),
|
|
3770
3771
|
style: {
|
|
@@ -3776,17 +3777,17 @@ function Zn(e) {
|
|
|
3776
3777
|
}
|
|
3777
3778
|
) : null });
|
|
3778
3779
|
}
|
|
3779
|
-
function
|
|
3780
|
+
function ti(e) {
|
|
3780
3781
|
const [t, n] = E(
|
|
3781
3782
|
() => `
|
|
3782
|
-
${
|
|
3783
|
+
${Yn({
|
|
3783
3784
|
cssCode: e.cssCode,
|
|
3784
3785
|
contentId: e.contentId
|
|
3785
3786
|
})}
|
|
3786
|
-
${
|
|
3787
|
+
${Gn({
|
|
3787
3788
|
customFonts: e.customFonts
|
|
3788
3789
|
})}
|
|
3789
|
-
${
|
|
3790
|
+
${Xn(e.isNestedRender)}
|
|
3790
3791
|
`.trim()
|
|
3791
3792
|
);
|
|
3792
3793
|
return /* @__PURE__ */ l(
|
|
@@ -3798,7 +3799,7 @@ ${Qn(e.isNestedRender)}
|
|
|
3798
3799
|
}
|
|
3799
3800
|
);
|
|
3800
3801
|
}
|
|
3801
|
-
const
|
|
3802
|
+
const ni = ({
|
|
3802
3803
|
content: e,
|
|
3803
3804
|
data: t,
|
|
3804
3805
|
locale: n
|
|
@@ -3815,7 +3816,7 @@ const ti = ({
|
|
|
3815
3816
|
locale: n
|
|
3816
3817
|
} : {}
|
|
3817
3818
|
};
|
|
3818
|
-
},
|
|
3819
|
+
}, ii = ({
|
|
3819
3820
|
content: e,
|
|
3820
3821
|
data: t
|
|
3821
3822
|
}) => e ? {
|
|
@@ -3831,7 +3832,7 @@ function Te(e) {
|
|
|
3831
3832
|
const [t, n] = E(
|
|
3832
3833
|
() => {
|
|
3833
3834
|
var p, C;
|
|
3834
|
-
return
|
|
3835
|
+
return Mn({
|
|
3835
3836
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3836
3837
|
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3837
3838
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -3860,12 +3861,12 @@ function Te(e) {
|
|
|
3860
3861
|
{}
|
|
3861
3862
|
)
|
|
3862
3863
|
), [r, s] = E(() => ({
|
|
3863
|
-
content:
|
|
3864
|
+
content: ii({
|
|
3864
3865
|
content: e.content,
|
|
3865
3866
|
data: e.data
|
|
3866
3867
|
}),
|
|
3867
3868
|
localState: void 0,
|
|
3868
|
-
rootState:
|
|
3869
|
+
rootState: ni({
|
|
3869
3870
|
content: e.content,
|
|
3870
3871
|
data: e.data,
|
|
3871
3872
|
locale: e.locale
|
|
@@ -3914,7 +3915,7 @@ function Te(e) {
|
|
|
3914
3915
|
registeredComponents: o
|
|
3915
3916
|
},
|
|
3916
3917
|
children: /* @__PURE__ */ N(
|
|
3917
|
-
|
|
3918
|
+
ei,
|
|
3918
3919
|
{
|
|
3919
3920
|
apiHost: e.apiHost,
|
|
3920
3921
|
nonce: e.nonce,
|
|
@@ -3943,7 +3944,7 @@ function Te(e) {
|
|
|
3943
3944
|
}
|
|
3944
3945
|
) : null,
|
|
3945
3946
|
/* @__PURE__ */ l(
|
|
3946
|
-
|
|
3947
|
+
ti,
|
|
3947
3948
|
{
|
|
3948
3949
|
nonce: e.nonce || "",
|
|
3949
3950
|
isNestedRender: e.isNestedRender,
|
|
@@ -3967,17 +3968,17 @@ function Te(e) {
|
|
|
3967
3968
|
}
|
|
3968
3969
|
);
|
|
3969
3970
|
}
|
|
3970
|
-
function
|
|
3971
|
+
function oi(e) {
|
|
3971
3972
|
var r;
|
|
3972
3973
|
const [t, n] = E(
|
|
3973
|
-
() =>
|
|
3974
|
+
() => Dn({
|
|
3974
3975
|
canTrack: K(e.canTrack),
|
|
3975
3976
|
content: e.content
|
|
3976
3977
|
})
|
|
3977
3978
|
);
|
|
3978
3979
|
function i() {
|
|
3979
3980
|
var s;
|
|
3980
|
-
return
|
|
3981
|
+
return Hn(
|
|
3981
3982
|
q(e.content).map((d) => ({
|
|
3982
3983
|
id: d.testVariationId,
|
|
3983
3984
|
testRatio: d.testRatio
|
|
@@ -3999,16 +4000,16 @@ function ii(e) {
|
|
|
3999
4000
|
});
|
|
4000
4001
|
}
|
|
4001
4002
|
return A(() => {
|
|
4002
|
-
}, []), /* @__PURE__ */ N(
|
|
4003
|
+
}, []), /* @__PURE__ */ N(w, { children: [
|
|
4003
4004
|
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
4004
4005
|
oe,
|
|
4005
4006
|
{
|
|
4006
4007
|
id: "builderio-init-variants-fns",
|
|
4007
|
-
scriptStr:
|
|
4008
|
+
scriptStr: _n(),
|
|
4008
4009
|
nonce: e.nonce || ""
|
|
4009
4010
|
}
|
|
4010
4011
|
) : null,
|
|
4011
|
-
t ? /* @__PURE__ */ N(
|
|
4012
|
+
t ? /* @__PURE__ */ N(w, { children: [
|
|
4012
4013
|
/* @__PURE__ */ l(
|
|
4013
4014
|
Q,
|
|
4014
4015
|
{
|
|
@@ -4081,7 +4082,7 @@ function ii(e) {
|
|
|
4081
4082
|
)
|
|
4082
4083
|
] });
|
|
4083
4084
|
}
|
|
4084
|
-
const
|
|
4085
|
+
const ai = async ({
|
|
4085
4086
|
builderContextValue: e,
|
|
4086
4087
|
symbol: t
|
|
4087
4088
|
}) => {
|
|
@@ -4100,7 +4101,7 @@ const oi = async ({
|
|
|
4100
4101
|
G.error("Could not fetch symbol content: ", n);
|
|
4101
4102
|
});
|
|
4102
4103
|
};
|
|
4103
|
-
function
|
|
4104
|
+
function ri(e) {
|
|
4104
4105
|
var s, d, c, h;
|
|
4105
4106
|
function t() {
|
|
4106
4107
|
return "div";
|
|
@@ -4122,7 +4123,7 @@ function ai(e) {
|
|
|
4122
4123
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4123
4124
|
});
|
|
4124
4125
|
function r() {
|
|
4125
|
-
o ||
|
|
4126
|
+
o || ai({
|
|
4126
4127
|
symbol: e.symbol,
|
|
4127
4128
|
builderContextValue: e.builderContext
|
|
4128
4129
|
}).then((g) => {
|
|
@@ -4133,7 +4134,7 @@ function ai(e) {
|
|
|
4133
4134
|
}, []), A(() => {
|
|
4134
4135
|
r();
|
|
4135
4136
|
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4136
|
-
|
|
4137
|
+
oi,
|
|
4137
4138
|
{
|
|
4138
4139
|
nonce: e.builderContext.nonce,
|
|
4139
4140
|
isNestedRender: !0,
|
|
@@ -4161,13 +4162,13 @@ function ai(e) {
|
|
|
4161
4162
|
export {
|
|
4162
4163
|
F as Blocks,
|
|
4163
4164
|
le as BuilderContext,
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4165
|
+
tt as Button,
|
|
4166
|
+
zt as Columns,
|
|
4167
|
+
oi as Content,
|
|
4168
|
+
Kt as Fragment,
|
|
4169
|
+
Yt as Image,
|
|
4170
|
+
Qt as Section,
|
|
4171
|
+
ri as Symbol,
|
|
4172
|
+
fn as Text,
|
|
4173
|
+
Fn as Video
|
|
4173
4174
|
};
|