@builder.io/sdk-react 4.2.1 → 4.2.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 +17 -17
- package/lib/browser/blocks-exports.mjs +759 -742
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-4cf669a1.cjs → server-entry-06504dba.cjs} +1 -1
- package/lib/browser/{server-entry-5e98a993.js → server-entry-074665de.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4bab42b1.cjs → accordion-0768e15a.cjs} +1 -1
- package/lib/edge/{accordion-a8a363e4.js → accordion-d3831f48.js} +1 -1
- package/lib/edge/{blocks-e1f5b0d0.js → blocks-0269007e.js} +105 -106
- package/lib/edge/{blocks-d07d0261.cjs → blocks-2af1d7c9.cjs} +10 -10
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6734c0bb.cjs → button-050f4fef.cjs} +1 -1
- package/lib/edge/{button-bbcadacf.js → button-a478ff1a.js} +2 -2
- package/lib/edge/{columns-cf3081c6.js → columns-0b3181f1.js} +3 -3
- package/lib/edge/{columns-821cba14.cjs → columns-25375990.cjs} +1 -1
- package/lib/edge/{content-variants-a704e35c.js → content-variants-0dd65b50.js} +426 -415
- package/lib/edge/content-variants-4cab7215.cjs +302 -0
- package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-eb5aedd2.cjs} +1 -1
- package/lib/edge/{custom-code-f6c30129.js → custom-code-f7a0f1c1.js} +1 -1
- package/lib/edge/{embed-666d3cc4.cjs → embed-69114c35.cjs} +1 -1
- package/lib/edge/{embed-3c0b5564.js → embed-e4979560.js} +1 -1
- package/lib/edge/{form-8b068721.js → form-30fba682.js} +24 -21
- package/lib/edge/form-7b4bd399.cjs +1 -0
- package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-770bdff2.js} +1 -1
- package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
- package/lib/edge/{img-dfbd4080.js → img-3bb375bf.js} +1 -1
- package/lib/edge/{img-b04b9b6d.cjs → img-ddf74e12.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-d31d6451.cjs → input-a6caf021.cjs} +1 -1
- package/lib/edge/{input-665ef328.js → input-e4a9fe0b.js} +1 -1
- package/lib/edge/{personalization-container-e784836e.js → personalization-container-64f3cd71.js} +4 -4
- package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7030f08.cjs} +1 -1
- package/lib/edge/{select-c3085265.cjs → select-c217566c.cjs} +1 -1
- package/lib/edge/{select-5fe49bd4.js → select-c59c9ac6.js} +1 -1
- package/lib/edge/{server-entry-acf5ce7d.cjs → server-entry-67200cf1.cjs} +1 -1
- package/lib/edge/{server-entry-c9d5300f.js → server-entry-fb5f2b80.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a17ee2d7.js → slot-26ec2911.js} +3 -3
- package/lib/edge/{slot-cbbbb02e.cjs → slot-ccd946e2.cjs} +1 -1
- package/lib/edge/{symbol-9f960685.js → symbol-10cb2f77.js} +26 -23
- package/lib/edge/symbol-4548e942.cjs +1 -0
- package/lib/edge/tabs-82a9170c.cjs +1 -0
- package/lib/edge/{tabs-26ac5b2f.js → tabs-f9110171.js} +24 -23
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +919 -902
- 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-48724189.js → server-entry-83d3751d.js} +1 -1
- package/lib/node/{server-entry-562c0663.cjs → server-entry-d40e4b66.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-3b6199a0.cjs → setIvm-0a5b2ba2.cjs} +1 -1
- package/lib/node/{setIvm-a7aba6d2.js → setIvm-596668c3.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-fdc70f22.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/content-variants-ec180883.cjs +0 -302
- package/lib/edge/form-51f639ab.cjs +0 -1
- package/lib/edge/symbol-b56b5675.cjs +0 -1
- package/lib/edge/tabs-bf6643d7.cjs +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser as
|
|
3
|
-
import { setClientUserAttributes as Mi } from "./server-entry-
|
|
4
|
-
import { jsx as s, Fragment as
|
|
2
|
+
import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as le, isEditing as U, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as lt, createRegisterComponentMessage as st, getCookieSync as ct, _track as Te, fetchOneEntry as Le, createEditorListener as ut, serializeIncludingFunctions as Ie, handleABTestingSync as dt } from "./server-entry-83d3751d.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-83d3751d.js";
|
|
4
|
+
import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
|
|
5
5
|
import * as mt from "react";
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as ft, flattenState as ht, runInNode as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-
|
|
6
|
+
import { createContext as Oe, useEffect as N, useState as k, useRef as z, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ft, flattenState as ht, runInNode as bt, parseCode as gt, getBuilderGlobals as yt, set as Ue, fastClone as ye } from "./setIvm-596668c3.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as pt } from "./should-force-browser-runtime-in-node-180c3315.js";
|
|
9
9
|
const vt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && vt.has(e.toLowerCase());
|
|
10
10
|
function pe(e) {
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
11
|
+
return /* @__PURE__ */ s(P, { children: xt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const J = () => {
|
|
14
14
|
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
@@ -28,7 +28,7 @@ function St(e) {
|
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[J()]: `${e.link ? "" : "builder-button"} ${e.attributes[J()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -48,7 +48,7 @@ function St(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const ve =
|
|
51
|
+
const ve = Oe({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,8 +63,8 @@ const ve = Le({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}), He =
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r,
|
|
66
|
+
}), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, a) => r != null ? r[a] : r, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
69
|
}, kt = ({
|
|
70
70
|
code: e,
|
|
@@ -72,34 +72,34 @@ const ve = Le({
|
|
|
72
72
|
context: n,
|
|
73
73
|
event: i,
|
|
74
74
|
localState: r,
|
|
75
|
-
rootSetState:
|
|
76
|
-
rootState:
|
|
75
|
+
rootSetState: a,
|
|
76
|
+
rootState: o
|
|
77
77
|
}) => {
|
|
78
78
|
const l = ft({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
82
|
state: ht({
|
|
83
|
-
rootState:
|
|
83
|
+
rootState: o,
|
|
84
84
|
localState: r,
|
|
85
|
-
rootSetState:
|
|
85
|
+
rootSetState: a
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
89
|
-
}, Ct = (e) =>
|
|
89
|
+
}, Ct = (e) => G() || pt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ? kt(e) :
|
|
92
|
-
var t, n, i, r,
|
|
93
|
-
return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
91
|
+
}) ? kt(e) : bt(e), Tt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, It = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, wt = (e) => {
|
|
92
|
+
var t, n, i, r, a, o;
|
|
93
|
+
return ((i = (n = (t = Tt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (a = (r = It.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : a.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function Q({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
100
|
rootSetState: r,
|
|
101
|
-
event:
|
|
102
|
-
isExpression:
|
|
101
|
+
event: a,
|
|
102
|
+
isExpression: o = !0
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
@@ -110,20 +110,20 @@ function J({
|
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
112
|
const c = {
|
|
113
|
-
code:
|
|
114
|
-
isExpression:
|
|
113
|
+
code: gt(e, {
|
|
114
|
+
isExpression: o
|
|
115
115
|
}),
|
|
116
116
|
builder: yt(),
|
|
117
117
|
context: t,
|
|
118
|
-
event:
|
|
118
|
+
event: a,
|
|
119
119
|
rootSetState: r,
|
|
120
120
|
rootState: i,
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
124
|
return Ct(c);
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
125
|
+
} catch (d) {
|
|
126
|
+
ee.error("Failed code evaluation: " + d.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
@@ -142,8 +142,8 @@ const Rt = (e, t) => {
|
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r,
|
|
146
|
-
code:
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, a) => Q({
|
|
146
|
+
code: a,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
149
149
|
rootState: t.rootState,
|
|
@@ -159,19 +159,19 @@ function Pt(e, ...t) {
|
|
|
159
159
|
}
|
|
160
160
|
function oe(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
|
-
t(e, (
|
|
163
|
-
n !== null && i !== null && (n[i] =
|
|
162
|
+
t(e, (a) => {
|
|
163
|
+
n !== null && i !== null && (n[i] = a);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((
|
|
168
|
-
t(o, (c) => {
|
|
169
|
-
e[a] = c;
|
|
170
|
-
}), oe(o, t, e, a, r);
|
|
171
|
-
}) : Object.entries(e).forEach(([o, a]) => {
|
|
167
|
+
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((a, o) => {
|
|
172
168
|
t(a, (c) => {
|
|
173
169
|
e[o] = c;
|
|
174
170
|
}), oe(a, t, e, o, r);
|
|
171
|
+
}) : Object.entries(e).forEach(([a, o]) => {
|
|
172
|
+
t(o, (c) => {
|
|
173
|
+
e[a] = c;
|
|
174
|
+
}), oe(o, t, e, a, r);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
177
|
function qe(e) {
|
|
@@ -198,16 +198,16 @@ function Bt(e, t) {
|
|
|
198
198
|
var n, i;
|
|
199
199
|
return (n = e.component) != null && n.options && Vt((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 = At(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function ge(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => ge(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ge(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
213
|
const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) => {
|
|
@@ -223,7 +223,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = ge(Pt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -245,18 +245,18 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const
|
|
249
|
-
for (const
|
|
250
|
-
const l = e.bindings[
|
|
248
|
+
const a = $t(e);
|
|
249
|
+
for (const o in e.bindings) {
|
|
250
|
+
const l = e.bindings[o], c = Q({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
254
|
rootSetState: r,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
Ue(
|
|
257
|
+
Ue(a, o, c);
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return a;
|
|
260
260
|
};
|
|
261
261
|
function Dt({
|
|
262
262
|
block: e,
|
|
@@ -265,39 +265,39 @@ function Dt({
|
|
|
265
265
|
rootState: i,
|
|
266
266
|
rootSetState: r
|
|
267
267
|
}) {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
block:
|
|
268
|
+
let a = e;
|
|
269
|
+
return a = Wt({
|
|
270
|
+
block: a,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
273
|
rootSetState: r,
|
|
274
274
|
context: t
|
|
275
|
-
}),
|
|
275
|
+
}), a = Bt(a, i.locale), a;
|
|
276
276
|
}
|
|
277
277
|
const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
278
|
function Ft(e, t, n = {}) {
|
|
279
|
-
let i, r,
|
|
279
|
+
let i, r, a, o = null, l = 0;
|
|
280
280
|
const c = function() {
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, a = e.apply(i, r), o || (i = r = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
|
-
const
|
|
285
|
-
!l && n.leading === !1 && (l =
|
|
286
|
-
const
|
|
287
|
-
return i = this, r = arguments,
|
|
284
|
+
const d = Date.now();
|
|
285
|
+
!l && n.leading === !1 && (l = d);
|
|
286
|
+
const h = t - (d - l);
|
|
287
|
+
return i = this, r = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, a = e.apply(i, r), o || (i = r = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), a;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function X(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
293
|
const r = arguments[i];
|
|
294
294
|
if (r != null)
|
|
295
|
-
for (const
|
|
296
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
295
|
+
for (const a in r)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Lt(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
@@ -312,12 +312,12 @@ function je(e) {
|
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
314
|
function ze(e, t) {
|
|
315
|
-
const n =
|
|
316
|
-
for (const l of
|
|
315
|
+
const n = Ot(e), i = getComputedStyle(t), r = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, o = [r, a];
|
|
316
|
+
for (const l of o)
|
|
317
317
|
for (const c of n)
|
|
318
318
|
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Ot(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
@@ -331,8 +331,8 @@ function Ke(e) {
|
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
334
|
+
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
@@ -347,37 +347,37 @@ function _t(e) {
|
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
348
|
ze(e, n);
|
|
349
349
|
let i = !1, r = !1;
|
|
350
|
-
function
|
|
350
|
+
function a() {
|
|
351
351
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
352
|
-
|
|
352
|
+
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
353
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !r && !l(n) && (i = !1,
|
|
355
|
+
})) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const o = Ft(a, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
|
-
function l(
|
|
361
|
-
const
|
|
362
|
-
return
|
|
360
|
+
function l(h) {
|
|
361
|
+
const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
362
|
+
return g.bottom > f && g.top < u - f;
|
|
363
363
|
}
|
|
364
364
|
const c = e.steps[0].styles;
|
|
365
|
-
function
|
|
366
|
-
|
|
365
|
+
function d() {
|
|
366
|
+
X(n.style, c);
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
d(), setTimeout(() => {
|
|
369
369
|
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
-
}), document.addEventListener("scroll",
|
|
370
|
+
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
|
-
}),
|
|
373
|
+
}), a();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
376
|
const Je = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
378
|
return `${se(n)}: ${i};`;
|
|
379
|
-
}).filter(
|
|
380
|
-
`),
|
|
379
|
+
}).filter(be), Ut = (e) => Je(e).join(`
|
|
380
|
+
`), Y = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
@@ -421,8 +421,8 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
423
423
|
}) => {
|
|
424
|
-
var
|
|
425
|
-
const i = (
|
|
424
|
+
var a;
|
|
425
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
428
|
const r = t[i];
|
|
@@ -443,7 +443,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const r =
|
|
446
|
+
const r = Q({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
@@ -452,16 +452,16 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
452
452
|
});
|
|
453
453
|
if (!Array.isArray(r))
|
|
454
454
|
return;
|
|
455
|
-
const
|
|
456
|
-
return r.map((c,
|
|
455
|
+
const a = n.collection.split(".").pop(), o = n.itemName || (a ? a + "Item" : "item");
|
|
456
|
+
return r.map((c, d) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
|
-
$index:
|
|
461
|
+
$index: d,
|
|
462
462
|
$item: c,
|
|
463
|
-
[
|
|
464
|
-
[`$${
|
|
463
|
+
[o]: c,
|
|
464
|
+
[`$${o}Index`]: d
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
@@ -474,7 +474,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
474
474
|
}, Kt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, o]) => !Qe(o, n)))
|
|
478
478
|
} : {};
|
|
479
479
|
}, Jt = (e, t) => {
|
|
480
480
|
var n;
|
|
@@ -526,17 +526,17 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
526
526
|
}
|
|
527
527
|
if (!i || !r)
|
|
528
528
|
return t;
|
|
529
|
-
const
|
|
529
|
+
const a = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
530
|
t.small = {
|
|
531
531
|
max: i,
|
|
532
|
-
min:
|
|
533
|
-
default:
|
|
532
|
+
min: a,
|
|
533
|
+
default: a + 1
|
|
534
534
|
};
|
|
535
|
-
const
|
|
535
|
+
const o = t.small.max + 1;
|
|
536
536
|
t.medium = {
|
|
537
537
|
max: r,
|
|
538
|
-
min:
|
|
539
|
-
default:
|
|
538
|
+
min: o,
|
|
539
|
+
default: o + 1
|
|
540
540
|
};
|
|
541
541
|
const l = t.medium.max + 1;
|
|
542
542
|
return t.large = {
|
|
@@ -546,7 +546,7 @@ const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
546
546
|
default: l + 1
|
|
547
547
|
}, t;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function te(e) {
|
|
550
550
|
return /* @__PURE__ */ s(
|
|
551
551
|
"style",
|
|
552
552
|
{
|
|
@@ -559,64 +559,64 @@ function ee(e) {
|
|
|
559
559
|
function Qt(e) {
|
|
560
560
|
function t() {
|
|
561
561
|
const i = e.block;
|
|
562
|
-
return
|
|
562
|
+
return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var
|
|
566
|
-
const i = e.block, r = i.responsiveStyles,
|
|
567
|
-
((
|
|
568
|
-
), l = !!((
|
|
569
|
-
if (!
|
|
565
|
+
var T, E, _, H, q;
|
|
566
|
+
const i = e.block, r = i.responsiveStyles, a = e.context.content, o = Xe(
|
|
567
|
+
((T = a == null ? void 0 : a.meta) == null ? void 0 : T.breakpoints) || {}
|
|
568
|
+
), l = !!((_ = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
|
|
569
|
+
if (!u)
|
|
570
570
|
return "";
|
|
571
|
-
const
|
|
572
|
-
className:
|
|
571
|
+
const x = c ? Y({
|
|
572
|
+
className: u,
|
|
573
573
|
styles: c
|
|
574
|
-
}) : "",
|
|
575
|
-
className:
|
|
576
|
-
styles:
|
|
574
|
+
}) : "", f = d ? Y({
|
|
575
|
+
className: u,
|
|
576
|
+
styles: d,
|
|
577
577
|
mediaQuery: ue(
|
|
578
578
|
"medium",
|
|
579
|
-
|
|
579
|
+
o
|
|
580
580
|
)
|
|
581
|
-
}) : "",
|
|
582
|
-
className:
|
|
583
|
-
styles:
|
|
581
|
+
}) : "", m = h ? Y({
|
|
582
|
+
className: u,
|
|
583
|
+
styles: h,
|
|
584
584
|
mediaQuery: ue(
|
|
585
585
|
"small",
|
|
586
|
-
|
|
586
|
+
o
|
|
587
587
|
)
|
|
588
|
-
}) : "",
|
|
589
|
-
className:
|
|
590
|
-
styles:
|
|
588
|
+
}) : "", y = g && l ? Y({
|
|
589
|
+
className: u,
|
|
590
|
+
styles: g,
|
|
591
591
|
mediaQuery: ue(
|
|
592
592
|
"xsmall",
|
|
593
|
-
|
|
593
|
+
o
|
|
594
594
|
)
|
|
595
|
-
}) : "",
|
|
595
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
596
596
|
let S = "";
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
S =
|
|
600
|
-
className: `${
|
|
597
|
+
if (b) {
|
|
598
|
+
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
599
|
+
S = Y({
|
|
600
|
+
className: `${u}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${
|
|
604
|
-
|
|
602
|
+
...p,
|
|
603
|
+
transition: `all ${b.duration}s ${se(
|
|
604
|
+
b.easing
|
|
605
605
|
)}`,
|
|
606
|
-
transitionDelay:
|
|
606
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
607
607
|
}
|
|
608
608
|
}) || "";
|
|
609
609
|
}
|
|
610
610
|
return [
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
611
|
+
x,
|
|
612
|
+
f,
|
|
613
|
+
m,
|
|
614
|
+
y,
|
|
615
615
|
S
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
|
-
return /* @__PURE__ */ s(
|
|
619
|
-
|
|
618
|
+
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
619
|
+
te,
|
|
620
620
|
{
|
|
621
621
|
id: "builderio-block",
|
|
622
622
|
styles: n(),
|
|
@@ -627,7 +627,7 @@ function Qt(e) {
|
|
|
627
627
|
function Yt(e) {
|
|
628
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
629
|
}
|
|
630
|
-
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) =>
|
|
630
|
+
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
|
|
631
631
|
code: e,
|
|
632
632
|
context: t.context,
|
|
633
633
|
localState: t.localState,
|
|
@@ -642,18 +642,18 @@ function Ze(e) {
|
|
|
642
642
|
for (const r in n) {
|
|
643
643
|
if (!n.hasOwnProperty(r))
|
|
644
644
|
continue;
|
|
645
|
-
const
|
|
646
|
-
let
|
|
645
|
+
const a = n[r];
|
|
646
|
+
let o = Xt(r);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
648
|
switch (F) {
|
|
649
649
|
case "vue":
|
|
650
|
-
|
|
650
|
+
o = o.replace("v-on:", "");
|
|
651
651
|
break;
|
|
652
652
|
case "svelte":
|
|
653
|
-
|
|
653
|
+
o = o.replace("on:", "");
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
t[
|
|
656
|
+
t[o] = Zt(a, e);
|
|
657
657
|
}
|
|
658
658
|
return t;
|
|
659
659
|
}
|
|
@@ -678,7 +678,7 @@ function xe({
|
|
|
678
678
|
block: e,
|
|
679
679
|
context: t
|
|
680
680
|
}),
|
|
681
|
-
[
|
|
681
|
+
[J()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
682
|
};
|
|
683
683
|
return en({
|
|
684
684
|
properties: n,
|
|
@@ -708,12 +708,12 @@ function nn(e) {
|
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
710
|
function rn(e) {
|
|
711
|
-
return
|
|
712
|
-
}, []), /* @__PURE__ */ s(
|
|
711
|
+
return N(() => {
|
|
712
|
+
}, []), /* @__PURE__ */ s(P, { children: e.children });
|
|
713
713
|
}
|
|
714
714
|
function an(e) {
|
|
715
715
|
var i, r;
|
|
716
|
-
|
|
716
|
+
k(() => 0);
|
|
717
717
|
function t() {
|
|
718
718
|
return e.includeBlockProps ? {
|
|
719
719
|
...xe({
|
|
@@ -732,8 +732,8 @@ function an(e) {
|
|
|
732
732
|
function n() {
|
|
733
733
|
return e.wrapperProps;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
736
|
-
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(
|
|
735
|
+
return N(() => {
|
|
736
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
737
737
|
rn,
|
|
738
738
|
{
|
|
739
739
|
load: e.Wrapper.load,
|
|
@@ -750,8 +750,8 @@ const on = ({
|
|
|
750
750
|
context: n,
|
|
751
751
|
componentRef: i,
|
|
752
752
|
includeBlockProps: r,
|
|
753
|
-
isInteractive:
|
|
754
|
-
contextValue:
|
|
753
|
+
isInteractive: a,
|
|
754
|
+
contextValue: o
|
|
755
755
|
}) => {
|
|
756
756
|
const l = {
|
|
757
757
|
...e,
|
|
@@ -762,11 +762,11 @@ const on = ({
|
|
|
762
762
|
...r ? {
|
|
763
763
|
attributes: xe({
|
|
764
764
|
block: t,
|
|
765
|
-
context:
|
|
765
|
+
context: o
|
|
766
766
|
})
|
|
767
767
|
} : {}
|
|
768
768
|
};
|
|
769
|
-
return
|
|
769
|
+
return a ? {
|
|
770
770
|
Wrapper: i,
|
|
771
771
|
block: t,
|
|
772
772
|
context: n,
|
|
@@ -776,12 +776,11 @@ const on = ({
|
|
|
776
776
|
};
|
|
777
777
|
function Re(e) {
|
|
778
778
|
var i;
|
|
779
|
-
|
|
780
|
-
const [t, n] =
|
|
779
|
+
k(() => !1);
|
|
780
|
+
const [t, n] = k(
|
|
781
781
|
() => e.isInteractive ? an : e.componentRef
|
|
782
782
|
);
|
|
783
|
-
return
|
|
784
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
783
|
+
return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
785
784
|
t,
|
|
786
785
|
{
|
|
787
786
|
...on({
|
|
@@ -794,7 +793,7 @@ function Re(e) {
|
|
|
794
793
|
isInteractive: e.isInteractive,
|
|
795
794
|
contextValue: e.context
|
|
796
795
|
}),
|
|
797
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
796
|
+
children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
798
797
|
ce,
|
|
799
798
|
{
|
|
800
799
|
block: r,
|
|
@@ -803,13 +802,13 @@ function Re(e) {
|
|
|
803
802
|
linkComponent: e.linkComponent
|
|
804
803
|
},
|
|
805
804
|
r.id
|
|
806
|
-
))
|
|
805
|
+
)) }) : null
|
|
807
806
|
}
|
|
808
807
|
) }) : null });
|
|
809
808
|
}
|
|
810
809
|
function Pe(e) {
|
|
811
|
-
const [t, n] =
|
|
812
|
-
return
|
|
810
|
+
const [t, n] = k(() => e.repeatContext);
|
|
811
|
+
return N(() => {
|
|
813
812
|
n(e.repeatContext);
|
|
814
813
|
}, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
814
|
ce,
|
|
@@ -822,64 +821,64 @@ function Pe(e) {
|
|
|
822
821
|
) });
|
|
823
822
|
}
|
|
824
823
|
function ce(e) {
|
|
825
|
-
var
|
|
824
|
+
var h, g, u, x;
|
|
826
825
|
function t() {
|
|
827
826
|
return jt({
|
|
828
827
|
block: e.block,
|
|
829
828
|
context: e.context
|
|
830
829
|
});
|
|
831
830
|
}
|
|
832
|
-
const [n, i] =
|
|
831
|
+
const [n, i] = k(() => ({
|
|
833
832
|
value: null,
|
|
834
833
|
update: !1
|
|
835
834
|
}));
|
|
836
835
|
function r() {
|
|
837
|
-
var
|
|
836
|
+
var m;
|
|
838
837
|
if (n.value && !n.update && !le())
|
|
839
838
|
return n.value;
|
|
840
|
-
const
|
|
839
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Dt({
|
|
841
840
|
block: e.block,
|
|
842
841
|
localState: e.context.localState,
|
|
843
842
|
rootState: e.context.rootState,
|
|
844
843
|
rootSetState: e.context.rootSetState,
|
|
845
844
|
context: e.context.context
|
|
846
845
|
});
|
|
847
|
-
return n.value =
|
|
846
|
+
return n.value = f, n.update = !1, f;
|
|
848
847
|
}
|
|
849
|
-
function
|
|
848
|
+
function a() {
|
|
850
849
|
return qt({
|
|
851
850
|
block: r(),
|
|
852
851
|
registeredComponents: e.registeredComponents,
|
|
853
852
|
model: e.context.model
|
|
854
853
|
});
|
|
855
854
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
return e.block.tagName === "a" || ((
|
|
855
|
+
function o() {
|
|
856
|
+
var m;
|
|
857
|
+
return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
858
|
}
|
|
860
859
|
function l() {
|
|
861
|
-
var
|
|
862
|
-
if ((
|
|
863
|
-
return !!((
|
|
864
|
-
const
|
|
865
|
-
return ("show" in r() ? r().show : !0) && !
|
|
860
|
+
var y, b;
|
|
861
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
862
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
863
|
+
const f = "hide" in r() ? r().hide : !1;
|
|
864
|
+
return ("show" in r() ? r().show : !0) && !f;
|
|
866
865
|
}
|
|
867
866
|
function c() {
|
|
868
|
-
var
|
|
869
|
-
return !((
|
|
867
|
+
var m, y;
|
|
868
|
+
return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
|
|
870
869
|
}
|
|
871
|
-
function
|
|
872
|
-
var
|
|
870
|
+
function d() {
|
|
871
|
+
var f, m, y, b;
|
|
873
872
|
return {
|
|
874
|
-
blockChildren: (
|
|
875
|
-
componentRef: (
|
|
873
|
+
blockChildren: (f = r().children) != null ? f : [],
|
|
874
|
+
componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
|
|
876
875
|
componentOptions: {
|
|
877
876
|
...Et(r(), e.context),
|
|
878
|
-
...Jt(
|
|
879
|
-
...Gt(
|
|
880
|
-
...zt(
|
|
877
|
+
...Jt(a(), r()),
|
|
878
|
+
...Gt(a(), e.context),
|
|
879
|
+
...zt(a(), e.linkComponent),
|
|
881
880
|
...Kt(
|
|
882
|
-
|
|
881
|
+
a(),
|
|
883
882
|
e.registeredComponents,
|
|
884
883
|
e.context.model
|
|
885
884
|
)
|
|
@@ -888,83 +887,83 @@ function ce(e) {
|
|
|
888
887
|
linkComponent: e.linkComponent,
|
|
889
888
|
registeredComponents: e.registeredComponents,
|
|
890
889
|
builderBlock: r(),
|
|
891
|
-
includeBlockProps: ((
|
|
892
|
-
isInteractive: !((
|
|
890
|
+
includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
|
|
891
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && F === "rsc")
|
|
893
892
|
};
|
|
894
893
|
}
|
|
895
|
-
return
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...
|
|
900
|
-
elementId:
|
|
894
|
+
return N(() => {
|
|
895
|
+
const f = r().id, m = r().animations;
|
|
896
|
+
m && f && Lt(
|
|
897
|
+
m.map((y) => ({
|
|
898
|
+
...y,
|
|
899
|
+
elementId: f
|
|
901
900
|
}))
|
|
902
901
|
);
|
|
903
|
-
}, []),
|
|
902
|
+
}, []), N(() => {
|
|
904
903
|
n.update = !0;
|
|
905
|
-
}), /* @__PURE__ */ s(
|
|
904
|
+
}), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
|
|
906
905
|
/* @__PURE__ */ s(Qt, { block: r(), context: e.context }),
|
|
907
|
-
(
|
|
906
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
908
907
|
Pe,
|
|
909
908
|
{
|
|
910
|
-
repeatContext:
|
|
911
|
-
block:
|
|
909
|
+
repeatContext: f.context,
|
|
910
|
+
block: f.block,
|
|
912
911
|
registeredComponents: e.registeredComponents,
|
|
913
912
|
linkComponent: e.linkComponent
|
|
914
913
|
},
|
|
915
|
-
Ee(
|
|
914
|
+
Ee(m)
|
|
916
915
|
)) }) : /* @__PURE__ */ s(
|
|
917
916
|
Re,
|
|
918
917
|
{
|
|
919
|
-
componentRef:
|
|
920
|
-
componentOptions:
|
|
921
|
-
blockChildren:
|
|
922
|
-
context:
|
|
923
|
-
registeredComponents:
|
|
924
|
-
linkComponent:
|
|
925
|
-
builderBlock:
|
|
926
|
-
includeBlockProps:
|
|
927
|
-
isInteractive:
|
|
918
|
+
componentRef: d().componentRef,
|
|
919
|
+
componentOptions: d().componentOptions,
|
|
920
|
+
blockChildren: d().blockChildren,
|
|
921
|
+
context: d().context,
|
|
922
|
+
registeredComponents: d().registeredComponents,
|
|
923
|
+
linkComponent: d().linkComponent,
|
|
924
|
+
builderBlock: d().builderBlock,
|
|
925
|
+
includeBlockProps: d().includeBlockProps,
|
|
926
|
+
isInteractive: d().isInteractive
|
|
928
927
|
}
|
|
929
|
-
) : /* @__PURE__ */ s(
|
|
928
|
+
) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
930
929
|
Pe,
|
|
931
930
|
{
|
|
932
|
-
repeatContext:
|
|
933
|
-
block:
|
|
931
|
+
repeatContext: f.context,
|
|
932
|
+
block: f.block,
|
|
934
933
|
registeredComponents: e.registeredComponents,
|
|
935
934
|
linkComponent: e.linkComponent
|
|
936
935
|
},
|
|
937
|
-
Ee(
|
|
938
|
-
)) }) : /* @__PURE__ */
|
|
936
|
+
Ee(m)
|
|
937
|
+
)) }) : /* @__PURE__ */ D(
|
|
939
938
|
nn,
|
|
940
939
|
{
|
|
941
|
-
Wrapper:
|
|
940
|
+
Wrapper: o(),
|
|
942
941
|
block: r(),
|
|
943
942
|
context: e.context,
|
|
944
943
|
children: [
|
|
945
944
|
/* @__PURE__ */ s(
|
|
946
945
|
Re,
|
|
947
946
|
{
|
|
948
|
-
componentRef:
|
|
949
|
-
componentOptions:
|
|
950
|
-
blockChildren:
|
|
951
|
-
context:
|
|
952
|
-
registeredComponents:
|
|
953
|
-
linkComponent:
|
|
954
|
-
builderBlock:
|
|
955
|
-
includeBlockProps:
|
|
956
|
-
isInteractive:
|
|
947
|
+
componentRef: d().componentRef,
|
|
948
|
+
componentOptions: d().componentOptions,
|
|
949
|
+
blockChildren: d().blockChildren,
|
|
950
|
+
context: d().context,
|
|
951
|
+
registeredComponents: d().registeredComponents,
|
|
952
|
+
linkComponent: d().linkComponent,
|
|
953
|
+
builderBlock: d().builderBlock,
|
|
954
|
+
includeBlockProps: d().includeBlockProps,
|
|
955
|
+
isInteractive: d().isInteractive
|
|
957
956
|
}
|
|
958
957
|
),
|
|
959
|
-
(
|
|
958
|
+
(g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
960
959
|
ce,
|
|
961
960
|
{
|
|
962
|
-
block:
|
|
961
|
+
block: f,
|
|
963
962
|
registeredComponents: e.registeredComponents,
|
|
964
963
|
linkComponent: e.linkComponent,
|
|
965
964
|
context: e.context
|
|
966
965
|
},
|
|
967
|
-
|
|
966
|
+
f.id
|
|
968
967
|
))
|
|
969
968
|
]
|
|
970
969
|
}
|
|
@@ -972,25 +971,25 @@ function ce(e) {
|
|
|
972
971
|
] }) : null });
|
|
973
972
|
}
|
|
974
973
|
function ln(e) {
|
|
975
|
-
const t =
|
|
976
|
-
|
|
974
|
+
const t = z(null);
|
|
975
|
+
k(() => !1);
|
|
977
976
|
function n() {
|
|
978
|
-
var
|
|
977
|
+
var o;
|
|
979
978
|
return [
|
|
980
979
|
"builder-blocks",
|
|
981
|
-
(
|
|
980
|
+
(o = e.blocks) != null && o.length ? "" : "no-blocks",
|
|
982
981
|
e.classNameProp
|
|
983
982
|
].filter(Boolean).join(" ");
|
|
984
983
|
}
|
|
985
984
|
function i() {
|
|
986
985
|
if (!e.path)
|
|
987
986
|
return;
|
|
988
|
-
const
|
|
989
|
-
return e.path.startsWith(
|
|
987
|
+
const o = "this.", l = "component.options.";
|
|
988
|
+
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
990
989
|
}
|
|
991
990
|
function r() {
|
|
992
|
-
var
|
|
993
|
-
|
|
991
|
+
var o, l;
|
|
992
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
993
|
{
|
|
995
994
|
type: "builder.clickEmptyBlocks",
|
|
996
995
|
data: {
|
|
@@ -1001,9 +1000,9 @@ function ln(e) {
|
|
|
1001
1000
|
"*"
|
|
1002
1001
|
));
|
|
1003
1002
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1003
|
+
function a() {
|
|
1004
|
+
var o, l;
|
|
1005
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1006
|
{
|
|
1008
1007
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1008
|
data: {
|
|
@@ -1014,10 +1013,10 @@ function ln(e) {
|
|
|
1014
1013
|
"*"
|
|
1015
1014
|
));
|
|
1016
1015
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1019
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1016
|
+
return N(() => {
|
|
1017
|
+
}, []), N(() => {
|
|
1018
|
+
}, [e.blocks]), /* @__PURE__ */ D(P, { children: [
|
|
1019
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1021
1020
|
display: flex;
|
|
1022
1021
|
flex-direction: column;
|
|
1023
1022
|
align-items: stretch;
|
|
@@ -1026,23 +1025,23 @@ function ln(e) {
|
|
|
1026
1025
|
e.BlocksWrapper,
|
|
1027
1026
|
{
|
|
1028
1027
|
ref: t,
|
|
1029
|
-
className: n() + " props-blocks-wrapper-
|
|
1028
|
+
className: n() + " props-blocks-wrapper-b46bf284",
|
|
1030
1029
|
"builder-path": i(),
|
|
1031
1030
|
"builder-parent-id": e.parent,
|
|
1032
1031
|
style: e.styleProp,
|
|
1033
|
-
onClick: (
|
|
1034
|
-
onMouseEnter: (
|
|
1035
|
-
onKeyPress: (
|
|
1032
|
+
onClick: (o) => r(),
|
|
1033
|
+
onMouseEnter: (o) => a(),
|
|
1034
|
+
onKeyPress: (o) => r(),
|
|
1036
1035
|
...e.BlocksWrapperProps,
|
|
1037
1036
|
children: e.children
|
|
1038
1037
|
}
|
|
1039
1038
|
)
|
|
1040
1039
|
] });
|
|
1041
1040
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var i, r,
|
|
1041
|
+
function M(e) {
|
|
1042
|
+
var i, r, a;
|
|
1044
1043
|
const t = we(ve), n = we(He);
|
|
1045
|
-
return /* @__PURE__ */
|
|
1044
|
+
return /* @__PURE__ */ D(
|
|
1046
1045
|
ln,
|
|
1047
1046
|
{
|
|
1048
1047
|
blocks: e.blocks,
|
|
@@ -1054,15 +1053,15 @@ function U(e) {
|
|
|
1054
1053
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1055
1054
|
children: [
|
|
1056
1055
|
e.children,
|
|
1057
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1056
|
+
e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ s(
|
|
1058
1057
|
ce,
|
|
1059
1058
|
{
|
|
1060
|
-
block:
|
|
1059
|
+
block: o,
|
|
1061
1060
|
linkComponent: e.linkComponent,
|
|
1062
1061
|
context: e.context || t,
|
|
1063
1062
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1064
1063
|
},
|
|
1065
|
-
|
|
1064
|
+
o.id
|
|
1066
1065
|
)) }) : null
|
|
1067
1066
|
]
|
|
1068
1067
|
}
|
|
@@ -1070,7 +1069,7 @@ function U(e) {
|
|
|
1070
1069
|
}
|
|
1071
1070
|
const sn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1072
1071
|
function cn(e) {
|
|
1073
|
-
var
|
|
1072
|
+
var m, y;
|
|
1074
1073
|
function t() {
|
|
1075
1074
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1076
1075
|
}
|
|
@@ -1080,147 +1079,147 @@ function cn(e) {
|
|
|
1080
1079
|
function i() {
|
|
1081
1080
|
return e.stackColumnsAt || "tablet";
|
|
1082
1081
|
}
|
|
1083
|
-
function r(
|
|
1084
|
-
return
|
|
1082
|
+
function r(b) {
|
|
1083
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1085
1084
|
}
|
|
1086
|
-
function
|
|
1085
|
+
function a(b) {
|
|
1087
1086
|
var S;
|
|
1088
|
-
return ((S = n()[
|
|
1087
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1089
1088
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const S =
|
|
1092
|
-
return `calc(${S}% - ${
|
|
1089
|
+
function o(b) {
|
|
1090
|
+
const S = a(b), T = t() * (n().length - 1) * (S / 100);
|
|
1091
|
+
return `calc(${S}% - ${T}px)`;
|
|
1093
1092
|
}
|
|
1094
1093
|
function l({
|
|
1095
|
-
stackedStyle:
|
|
1094
|
+
stackedStyle: b,
|
|
1096
1095
|
desktopStyle: S
|
|
1097
1096
|
}) {
|
|
1098
|
-
return i() === "tablet" ?
|
|
1097
|
+
return i() === "tablet" ? b : S;
|
|
1099
1098
|
}
|
|
1100
1099
|
function c({
|
|
1101
|
-
stackedStyle:
|
|
1100
|
+
stackedStyle: b,
|
|
1102
1101
|
desktopStyle: S
|
|
1103
1102
|
}) {
|
|
1104
|
-
return i() === "never" ? S :
|
|
1103
|
+
return i() === "never" ? S : b;
|
|
1105
1104
|
}
|
|
1106
|
-
function
|
|
1105
|
+
function d() {
|
|
1107
1106
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1108
1107
|
}
|
|
1109
|
-
function
|
|
1108
|
+
function h() {
|
|
1110
1109
|
return {
|
|
1111
|
-
"--flex-dir":
|
|
1110
|
+
"--flex-dir": d(),
|
|
1112
1111
|
"--flex-dir-tablet": l({
|
|
1113
|
-
stackedStyle:
|
|
1112
|
+
stackedStyle: d(),
|
|
1114
1113
|
desktopStyle: "row"
|
|
1115
1114
|
})
|
|
1116
1115
|
};
|
|
1117
1116
|
}
|
|
1118
|
-
function b
|
|
1119
|
-
const S =
|
|
1117
|
+
function g(b) {
|
|
1118
|
+
const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, _ = "100%", H = 0;
|
|
1120
1119
|
return {
|
|
1121
1120
|
...{
|
|
1122
1121
|
display: "flex",
|
|
1123
1122
|
flexDirection: "column",
|
|
1124
1123
|
alignItems: "stretch"
|
|
1125
1124
|
},
|
|
1126
|
-
width:
|
|
1127
|
-
["marginLeft"]:
|
|
1125
|
+
width: T,
|
|
1126
|
+
["marginLeft"]: E,
|
|
1128
1127
|
"--column-width-mobile": c({
|
|
1129
|
-
stackedStyle:
|
|
1130
|
-
desktopStyle:
|
|
1128
|
+
stackedStyle: _,
|
|
1129
|
+
desktopStyle: T
|
|
1131
1130
|
}),
|
|
1132
1131
|
"--column-margin-left-mobile": c({
|
|
1133
|
-
stackedStyle:
|
|
1134
|
-
desktopStyle:
|
|
1132
|
+
stackedStyle: H,
|
|
1133
|
+
desktopStyle: E
|
|
1135
1134
|
}),
|
|
1136
1135
|
"--column-width-tablet": l({
|
|
1137
|
-
stackedStyle:
|
|
1138
|
-
desktopStyle:
|
|
1136
|
+
stackedStyle: _,
|
|
1137
|
+
desktopStyle: T
|
|
1139
1138
|
}),
|
|
1140
1139
|
"--column-margin-left-tablet": l({
|
|
1141
|
-
stackedStyle:
|
|
1142
|
-
desktopStyle:
|
|
1140
|
+
stackedStyle: H,
|
|
1141
|
+
desktopStyle: E
|
|
1143
1142
|
})
|
|
1144
1143
|
};
|
|
1145
1144
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var
|
|
1145
|
+
function u(b) {
|
|
1146
|
+
var T, E;
|
|
1148
1147
|
return Xe(
|
|
1149
|
-
((
|
|
1150
|
-
)[
|
|
1148
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1149
|
+
)[b].max;
|
|
1151
1150
|
}
|
|
1152
|
-
function
|
|
1153
|
-
const
|
|
1151
|
+
function x() {
|
|
1152
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1154
1153
|
return `
|
|
1155
|
-
@media (max-width: ${
|
|
1154
|
+
@media (max-width: ${u("medium")}px) {
|
|
1156
1155
|
.${e.builderBlock.id}-breakpoints {
|
|
1157
1156
|
flex-direction: var(--flex-dir-tablet);
|
|
1158
1157
|
align-items: stretch;
|
|
1159
1158
|
}
|
|
1160
1159
|
|
|
1161
|
-
${
|
|
1160
|
+
${b} {
|
|
1162
1161
|
width: var(--column-width-tablet) !important;
|
|
1163
1162
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1164
1163
|
}
|
|
1165
1164
|
}
|
|
1166
1165
|
|
|
1167
|
-
@media (max-width: ${
|
|
1166
|
+
@media (max-width: ${u("small")}px) {
|
|
1168
1167
|
.${e.builderBlock.id}-breakpoints {
|
|
1169
1168
|
flex-direction: var(--flex-dir);
|
|
1170
1169
|
align-items: stretch;
|
|
1171
1170
|
}
|
|
1172
1171
|
|
|
1173
|
-
${
|
|
1172
|
+
${b} {
|
|
1174
1173
|
width: var(--column-width-mobile) !important;
|
|
1175
1174
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1176
1175
|
}
|
|
1177
1176
|
},
|
|
1178
1177
|
`;
|
|
1179
1178
|
}
|
|
1180
|
-
function
|
|
1179
|
+
function f(b, S) {
|
|
1181
1180
|
return {
|
|
1182
|
-
...
|
|
1183
|
-
href:
|
|
1181
|
+
...b.link ? {
|
|
1182
|
+
href: b.link
|
|
1184
1183
|
} : {},
|
|
1185
|
-
[
|
|
1186
|
-
style: Ge(
|
|
1184
|
+
[J()]: "builder-column",
|
|
1185
|
+
style: Ge(g(S))
|
|
1187
1186
|
};
|
|
1188
1187
|
}
|
|
1189
|
-
return /* @__PURE__ */
|
|
1188
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
1190
1189
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1191
1190
|
display: flex;
|
|
1192
1191
|
line-height: normal;
|
|
1193
1192
|
height: 100%;
|
|
1194
1193
|
}` }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ D(
|
|
1196
1195
|
"div",
|
|
1197
1196
|
{
|
|
1198
|
-
className: sn((
|
|
1199
|
-
style:
|
|
1197
|
+
className: sn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1198
|
+
style: h(),
|
|
1200
1199
|
children: [
|
|
1201
1200
|
/* @__PURE__ */ s(
|
|
1202
|
-
|
|
1201
|
+
te,
|
|
1203
1202
|
{
|
|
1204
1203
|
id: "builderio-columns",
|
|
1205
|
-
styles:
|
|
1204
|
+
styles: x(),
|
|
1206
1205
|
nonce: e.builderContext.nonce
|
|
1207
1206
|
}
|
|
1208
1207
|
),
|
|
1209
|
-
(
|
|
1208
|
+
(y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
|
|
1210
1209
|
pe,
|
|
1211
1210
|
{
|
|
1212
|
-
TagName: r(
|
|
1211
|
+
TagName: r(b),
|
|
1213
1212
|
actionAttributes: {},
|
|
1214
|
-
attributes:
|
|
1213
|
+
attributes: f(b, S),
|
|
1215
1214
|
children: /* @__PURE__ */ s(
|
|
1216
|
-
|
|
1215
|
+
M,
|
|
1217
1216
|
{
|
|
1218
1217
|
path: `columns.${S}.blocks`,
|
|
1219
1218
|
parent: e.builderBlock.id,
|
|
1220
1219
|
context: e.builderContext,
|
|
1221
1220
|
registeredComponents: e.builderComponents,
|
|
1222
1221
|
linkComponent: e.builderLinkComponent,
|
|
1223
|
-
blocks:
|
|
1222
|
+
blocks: b.blocks,
|
|
1224
1223
|
styleProp: {
|
|
1225
1224
|
flexGrow: "1"
|
|
1226
1225
|
}
|
|
@@ -1251,8 +1250,8 @@ function mn(e, t) {
|
|
|
1251
1250
|
return Ve(e);
|
|
1252
1251
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1253
1252
|
if (n) {
|
|
1254
|
-
const i = e.split(n[0]), r = n[3],
|
|
1255
|
-
return Ve(`${i[0]}_${
|
|
1253
|
+
const i = e.split(n[0]), r = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1254
|
+
return Ve(`${i[0]}_${a}${r}`);
|
|
1256
1255
|
}
|
|
1257
1256
|
return null;
|
|
1258
1257
|
}
|
|
@@ -1268,39 +1267,39 @@ function ne(e) {
|
|
|
1268
1267
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1269
1268
|
}
|
|
1270
1269
|
function fn(e) {
|
|
1271
|
-
var r,
|
|
1270
|
+
var r, a, o, l, c, d;
|
|
1272
1271
|
function t() {
|
|
1273
|
-
var
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1272
|
+
var u;
|
|
1273
|
+
const g = e.image || e.src;
|
|
1274
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1276
1275
|
// images, otherwise you can supply this prop manually
|
|
1277
|
-
!(typeof
|
|
1276
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1278
1277
|
return e.srcset;
|
|
1279
1278
|
if (!e.noWebp) {
|
|
1280
|
-
if (e.srcset && ((
|
|
1279
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1281
1280
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1282
|
-
return console.debug("Removed given srcset"), ne(
|
|
1281
|
+
return console.debug("Removed given srcset"), ne(g);
|
|
1283
1282
|
} else if (e.image && !e.srcset)
|
|
1284
|
-
return ne(
|
|
1285
|
-
return ne(
|
|
1283
|
+
return ne(g);
|
|
1284
|
+
return ne(g);
|
|
1286
1285
|
}
|
|
1287
1286
|
}
|
|
1288
1287
|
function n() {
|
|
1289
|
-
var
|
|
1290
|
-
return (
|
|
1288
|
+
var h;
|
|
1289
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1291
1290
|
}
|
|
1292
1291
|
function i() {
|
|
1293
|
-
const
|
|
1292
|
+
const h = {
|
|
1294
1293
|
position: "absolute",
|
|
1295
1294
|
height: "100%",
|
|
1296
1295
|
width: "100%",
|
|
1297
1296
|
left: "0px",
|
|
1298
1297
|
top: "0px"
|
|
1299
1298
|
};
|
|
1300
|
-
return e.aspectRatio ?
|
|
1299
|
+
return e.aspectRatio ? h : void 0;
|
|
1301
1300
|
}
|
|
1302
|
-
return
|
|
1303
|
-
}, []), /* @__PURE__ */
|
|
1301
|
+
return N(() => {
|
|
1302
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
1304
1303
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1304
|
opacity: 1;
|
|
1306
1305
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1318,8 +1317,8 @@ function fn(e) {
|
|
|
1318
1317
|
width: 100%;
|
|
1319
1318
|
height: 100%;
|
|
1320
1319
|
}` }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1320
|
+
/* @__PURE__ */ D(P, { children: [
|
|
1321
|
+
/* @__PURE__ */ D("picture", { children: [
|
|
1323
1322
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1324
1323
|
/* @__PURE__ */ s(
|
|
1325
1324
|
"img",
|
|
@@ -1341,7 +1340,7 @@ function fn(e) {
|
|
|
1341
1340
|
}
|
|
1342
1341
|
)
|
|
1343
1342
|
] }),
|
|
1344
|
-
e.aspectRatio && !((
|
|
1343
|
+
e.aspectRatio && !((a = (r = e.builderBlock) == null ? void 0 : r.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1345
1344
|
"div",
|
|
1346
1345
|
{
|
|
1347
1346
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1350,8 +1349,8 @@ function fn(e) {
|
|
|
1350
1349
|
}
|
|
1351
1350
|
}
|
|
1352
1351
|
) : null,
|
|
1353
|
-
(l = (
|
|
1354
|
-
!e.fitContent && ((
|
|
1352
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
|
|
1353
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1355
1354
|
] })
|
|
1356
1355
|
] });
|
|
1357
1356
|
}
|
|
@@ -1376,51 +1375,51 @@ function hn(e) {
|
|
|
1376
1375
|
}
|
|
1377
1376
|
);
|
|
1378
1377
|
}
|
|
1379
|
-
function
|
|
1380
|
-
function r(
|
|
1381
|
-
return typeof
|
|
1378
|
+
function bn(e, t, n, i) {
|
|
1379
|
+
function r(d) {
|
|
1380
|
+
return typeof d == "string";
|
|
1382
1381
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return typeof
|
|
1382
|
+
function a(d) {
|
|
1383
|
+
return typeof d == "number";
|
|
1385
1384
|
}
|
|
1386
|
-
function
|
|
1385
|
+
function o(d, h) {
|
|
1387
1386
|
return (() => {
|
|
1388
|
-
const
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1387
|
+
const u = h.property, x = h.operator;
|
|
1388
|
+
let f = h.value;
|
|
1389
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1391
1390
|
return !0;
|
|
1392
|
-
if (Array.isArray(
|
|
1393
|
-
return
|
|
1394
|
-
property:
|
|
1395
|
-
operator:
|
|
1396
|
-
value:
|
|
1397
|
-
})) : !!
|
|
1398
|
-
property:
|
|
1399
|
-
operator:
|
|
1400
|
-
value:
|
|
1391
|
+
if (Array.isArray(f))
|
|
1392
|
+
return x === "isNot" ? f.every((y) => o(d, {
|
|
1393
|
+
property: u,
|
|
1394
|
+
operator: x,
|
|
1395
|
+
value: y
|
|
1396
|
+
})) : !!f.find((y) => o(d, {
|
|
1397
|
+
property: u,
|
|
1398
|
+
operator: x,
|
|
1399
|
+
value: y
|
|
1401
1400
|
}));
|
|
1402
|
-
const
|
|
1403
|
-
if (Array.isArray(
|
|
1404
|
-
return
|
|
1405
|
-
switch (
|
|
1401
|
+
const m = d[u];
|
|
1402
|
+
if (Array.isArray(m))
|
|
1403
|
+
return m.includes(f);
|
|
1404
|
+
switch (x) {
|
|
1406
1405
|
case "is":
|
|
1407
|
-
return
|
|
1406
|
+
return m === f;
|
|
1408
1407
|
case "isNot":
|
|
1409
|
-
return
|
|
1408
|
+
return m !== f;
|
|
1410
1409
|
case "contains":
|
|
1411
|
-
return (r(
|
|
1410
|
+
return (r(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1412
1411
|
case "startsWith":
|
|
1413
|
-
return r(
|
|
1412
|
+
return r(m) && m.startsWith(String(f));
|
|
1414
1413
|
case "endsWith":
|
|
1415
|
-
return r(
|
|
1414
|
+
return r(m) && m.endsWith(String(f));
|
|
1416
1415
|
case "greaterThan":
|
|
1417
|
-
return
|
|
1416
|
+
return a(m) && a(f) && m > f;
|
|
1418
1417
|
case "lessThan":
|
|
1419
|
-
return
|
|
1418
|
+
return a(m) && a(f) && m < f;
|
|
1420
1419
|
case "greaterThanOrEqualTo":
|
|
1421
|
-
return
|
|
1420
|
+
return a(m) && a(f) && m >= f;
|
|
1422
1421
|
case "lessThanOrEqualTo":
|
|
1423
|
-
return
|
|
1422
|
+
return a(m) && a(f) && m <= f;
|
|
1424
1423
|
default:
|
|
1425
1424
|
return !1;
|
|
1426
1425
|
}
|
|
@@ -1431,9 +1430,9 @@ function gn(e, t, n, i) {
|
|
|
1431
1430
|
startDate: n,
|
|
1432
1431
|
endDate: i
|
|
1433
1432
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1434
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((
|
|
1433
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => o(e, d));
|
|
1435
1434
|
}
|
|
1436
|
-
const
|
|
1435
|
+
const gn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1437
1436
|
if (!navigator.cookieEnabled) {
|
|
1438
1437
|
return;
|
|
1439
1438
|
}
|
|
@@ -1596,7 +1595,7 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1596
1595
|
}
|
|
1597
1596
|
}`, ie = "default", vn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
|
|
1598
1597
|
function xn(e, t) {
|
|
1599
|
-
return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !
|
|
1598
|
+
return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !G();
|
|
1600
1599
|
}
|
|
1601
1600
|
function Sn({
|
|
1602
1601
|
variants: e,
|
|
@@ -1605,14 +1604,14 @@ function Sn({
|
|
|
1605
1604
|
filteredVariants: i,
|
|
1606
1605
|
fallbackBlocks: r
|
|
1607
1606
|
}) {
|
|
1608
|
-
var
|
|
1609
|
-
const
|
|
1607
|
+
var o;
|
|
1608
|
+
const a = {
|
|
1610
1609
|
blocks: r != null ? r : [],
|
|
1611
1610
|
path: "this.children",
|
|
1612
1611
|
index: ie
|
|
1613
1612
|
};
|
|
1614
|
-
if (n &&
|
|
1615
|
-
if (typeof t == "number" && t < ((
|
|
1613
|
+
if (n && U()) {
|
|
1614
|
+
if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
|
|
1616
1615
|
const l = e == null ? void 0 : e[t];
|
|
1617
1616
|
if (l)
|
|
1618
1617
|
return {
|
|
@@ -1621,9 +1620,9 @@ function Sn({
|
|
|
1621
1620
|
index: t
|
|
1622
1621
|
};
|
|
1623
1622
|
}
|
|
1624
|
-
return
|
|
1623
|
+
return a;
|
|
1625
1624
|
}
|
|
1626
|
-
if (
|
|
1625
|
+
if (G()) {
|
|
1627
1626
|
const l = i == null ? void 0 : i[0];
|
|
1628
1627
|
if (l && e) {
|
|
1629
1628
|
const c = e.indexOf(l);
|
|
@@ -1635,11 +1634,11 @@ function Sn({
|
|
|
1635
1634
|
};
|
|
1636
1635
|
}
|
|
1637
1636
|
}
|
|
1638
|
-
return
|
|
1637
|
+
return a;
|
|
1639
1638
|
}
|
|
1640
1639
|
const kn = () => `
|
|
1641
1640
|
window.${vn} = ${yn}
|
|
1642
|
-
window.${et} = ${
|
|
1641
|
+
window.${et} = ${gn}
|
|
1643
1642
|
window.${tt} = ${pn}
|
|
1644
1643
|
`, it = F === "react", Cn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
|
|
1645
1644
|
"@type": "@builder.io/sdk:Element",
|
|
@@ -1767,8 +1766,8 @@ const kn = () => `
|
|
|
1767
1766
|
}
|
|
1768
1767
|
}, Ae = (e) => e.toString();
|
|
1769
1768
|
function wn(e) {
|
|
1770
|
-
var
|
|
1771
|
-
const [t, n] =
|
|
1769
|
+
var g;
|
|
1770
|
+
const [t, n] = k(() => []);
|
|
1772
1771
|
function i() {
|
|
1773
1772
|
return !!(e.grid || e.oneAtATime);
|
|
1774
1773
|
}
|
|
@@ -1784,8 +1783,8 @@ function wn(e) {
|
|
|
1784
1783
|
}
|
|
1785
1784
|
};
|
|
1786
1785
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const
|
|
1786
|
+
function a() {
|
|
1787
|
+
const x = {
|
|
1789
1788
|
...{
|
|
1790
1789
|
display: "flex",
|
|
1791
1790
|
flexDirection: "column"
|
|
@@ -1794,75 +1793,75 @@ function wn(e) {
|
|
|
1794
1793
|
cursor: "pointer"
|
|
1795
1794
|
};
|
|
1796
1795
|
return Object.fromEntries(
|
|
1797
|
-
Object.entries(
|
|
1796
|
+
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1798
1797
|
);
|
|
1799
1798
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1799
|
+
function o(u) {
|
|
1800
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1802
1801
|
}
|
|
1803
|
-
function l(
|
|
1804
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1802
|
+
function l(u) {
|
|
1803
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1805
1804
|
}
|
|
1806
1805
|
function c() {
|
|
1807
|
-
let
|
|
1806
|
+
let u = null;
|
|
1808
1807
|
if (e.grid && t.length && document) {
|
|
1809
|
-
const
|
|
1810
|
-
let
|
|
1811
|
-
`.builder-accordion-title[data-index="${
|
|
1808
|
+
const f = t[0];
|
|
1809
|
+
let y = document.querySelector(
|
|
1810
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1812
1811
|
);
|
|
1813
|
-
if (
|
|
1814
|
-
let
|
|
1815
|
-
for (;
|
|
1816
|
-
if (
|
|
1817
|
-
if (
|
|
1812
|
+
if (u = f, y) {
|
|
1813
|
+
let b = y.getBoundingClientRect();
|
|
1814
|
+
for (; y = y && y.nextElementSibling; )
|
|
1815
|
+
if (y) {
|
|
1816
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1818
1817
|
continue;
|
|
1819
|
-
const S =
|
|
1820
|
-
if (S.left >
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1818
|
+
const S = y.getBoundingClientRect();
|
|
1819
|
+
if (S.left > b.left) {
|
|
1820
|
+
const T = parseInt(
|
|
1821
|
+
y.getAttribute("data-index") || "",
|
|
1823
1822
|
10
|
|
1824
1823
|
);
|
|
1825
|
-
isNaN(
|
|
1824
|
+
isNaN(T) || (b = S, u = T);
|
|
1826
1825
|
} else
|
|
1827
1826
|
break;
|
|
1828
1827
|
}
|
|
1829
1828
|
}
|
|
1830
1829
|
}
|
|
1831
|
-
return typeof
|
|
1830
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1832
1831
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const
|
|
1832
|
+
function d() {
|
|
1833
|
+
const u = {
|
|
1835
1834
|
order: typeof c() == "number" ? c() : void 0,
|
|
1836
1835
|
...e.grid && {
|
|
1837
1836
|
width: "100%"
|
|
1838
1837
|
}
|
|
1839
1838
|
};
|
|
1840
1839
|
return Object.fromEntries(
|
|
1841
|
-
Object.entries(
|
|
1840
|
+
Object.entries(u).filter(([x, f]) => f !== void 0)
|
|
1842
1841
|
);
|
|
1843
1842
|
}
|
|
1844
|
-
function
|
|
1845
|
-
t.includes(
|
|
1843
|
+
function h(u) {
|
|
1844
|
+
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1846
1845
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (
|
|
1846
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(mt.Fragment, { children: [
|
|
1848
1847
|
/* @__PURE__ */ s(
|
|
1849
1848
|
"div",
|
|
1850
1849
|
{
|
|
1851
|
-
className:
|
|
1850
|
+
className: o(x),
|
|
1852
1851
|
style: {
|
|
1853
|
-
...
|
|
1852
|
+
...a(),
|
|
1854
1853
|
...e.grid && {
|
|
1855
1854
|
width: e.gridRowWidth,
|
|
1856
|
-
order: c() !== null ? Ae(
|
|
1855
|
+
order: c() !== null ? Ae(x) : Ae(x + 1)
|
|
1857
1856
|
}
|
|
1858
1857
|
},
|
|
1859
|
-
"data-index":
|
|
1860
|
-
onClick: (
|
|
1858
|
+
"data-index": x,
|
|
1859
|
+
onClick: (f) => h(x),
|
|
1861
1860
|
children: /* @__PURE__ */ s(
|
|
1862
|
-
|
|
1861
|
+
M,
|
|
1863
1862
|
{
|
|
1864
|
-
blocks:
|
|
1865
|
-
path: `items.${
|
|
1863
|
+
blocks: u.title,
|
|
1864
|
+
path: `items.${x}.title`,
|
|
1866
1865
|
parent: e.builderBlock.id,
|
|
1867
1866
|
context: e.builderContext,
|
|
1868
1867
|
registeredComponents: e.builderComponents,
|
|
@@ -1871,16 +1870,16 @@ function wn(e) {
|
|
|
1871
1870
|
)
|
|
1872
1871
|
}
|
|
1873
1872
|
),
|
|
1874
|
-
t.includes(
|
|
1873
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1875
1874
|
"div",
|
|
1876
1875
|
{
|
|
1877
|
-
className: l(
|
|
1878
|
-
style:
|
|
1876
|
+
className: l(x),
|
|
1877
|
+
style: d(),
|
|
1879
1878
|
children: /* @__PURE__ */ s(
|
|
1880
|
-
|
|
1879
|
+
M,
|
|
1881
1880
|
{
|
|
1882
|
-
blocks:
|
|
1883
|
-
path: `items.${
|
|
1881
|
+
blocks: u.detail,
|
|
1882
|
+
path: `items.${x}.detail`,
|
|
1884
1883
|
parent: e.builderBlock.id,
|
|
1885
1884
|
context: e.builderContext,
|
|
1886
1885
|
registeredComponents: e.builderComponents,
|
|
@@ -1889,7 +1888,7 @@ function wn(e) {
|
|
|
1889
1888
|
)
|
|
1890
1889
|
}
|
|
1891
1890
|
) : null
|
|
1892
|
-
] },
|
|
1891
|
+
] }, x)) });
|
|
1893
1892
|
}
|
|
1894
1893
|
const En = {
|
|
1895
1894
|
name: "Core:Button",
|
|
@@ -2106,7 +2105,7 @@ const En = {
|
|
|
2106
2105
|
});
|
|
2107
2106
|
}
|
|
2108
2107
|
const n = e.get("columns");
|
|
2109
|
-
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((
|
|
2108
|
+
Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2110
2109
|
}
|
|
2111
2110
|
}, {
|
|
2112
2111
|
name: "space",
|
|
@@ -2160,29 +2159,29 @@ const En = {
|
|
|
2160
2159
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2161
2160
|
onChange: (e) => {
|
|
2162
2161
|
e.delete("srcset"), e.delete("noWebp");
|
|
2163
|
-
function n(
|
|
2164
|
-
return new Promise((c,
|
|
2165
|
-
const
|
|
2166
|
-
let
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
},
|
|
2170
|
-
console.warn("Image load failed",
|
|
2171
|
-
}),
|
|
2172
|
-
|
|
2162
|
+
function n(o, l = 6e4) {
|
|
2163
|
+
return new Promise((c, d) => {
|
|
2164
|
+
const h = document.createElement("img");
|
|
2165
|
+
let g = !1;
|
|
2166
|
+
h.onload = () => {
|
|
2167
|
+
g = !0, c(h);
|
|
2168
|
+
}, h.addEventListener("error", (u) => {
|
|
2169
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
2170
|
+
}), h.src = o, setTimeout(() => {
|
|
2171
|
+
g || d(new Error("Image load timed out"));
|
|
2173
2172
|
}, l);
|
|
2174
2173
|
});
|
|
2175
2174
|
}
|
|
2176
|
-
function i(
|
|
2177
|
-
return Math.round(
|
|
2175
|
+
function i(o) {
|
|
2176
|
+
return Math.round(o * 1e3) / 1e3;
|
|
2178
2177
|
}
|
|
2179
|
-
const r = e.get("image"),
|
|
2180
|
-
if (fetch(r).then((
|
|
2181
|
-
|
|
2182
|
-
}), r && (!
|
|
2183
|
-
return n(r).then((
|
|
2178
|
+
const r = e.get("image"), a = e.get("aspectRatio");
|
|
2179
|
+
if (fetch(r).then((o) => o.blob()).then((o) => {
|
|
2180
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
2181
|
+
}), r && (!a || a === 0.7041))
|
|
2182
|
+
return n(r).then((o) => {
|
|
2184
2183
|
const l = e.get("aspectRatio");
|
|
2185
|
-
e.get("image") === r && (!l || l === 0.7041) &&
|
|
2184
|
+
e.get("image") === r && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
2186
2185
|
});
|
|
2187
2186
|
}
|
|
2188
2187
|
}, {
|
|
@@ -2289,7 +2288,7 @@ const En = {
|
|
|
2289
2288
|
}]
|
|
2290
2289
|
}]
|
|
2291
2290
|
};
|
|
2292
|
-
function
|
|
2291
|
+
function K(e) {
|
|
2293
2292
|
return /* @__PURE__ */ s(
|
|
2294
2293
|
"script",
|
|
2295
2294
|
{
|
|
@@ -2300,105 +2299,105 @@ function q(e) {
|
|
|
2300
2299
|
);
|
|
2301
2300
|
}
|
|
2302
2301
|
function Nn(e) {
|
|
2303
|
-
var S,
|
|
2304
|
-
const t =
|
|
2302
|
+
var S, T, E, _, H, q, p, v, I, V, $, R, A;
|
|
2303
|
+
const t = z(null), [n, i] = k(
|
|
2305
2304
|
() => Ce.getUserAttributes()
|
|
2306
|
-
), [r,
|
|
2305
|
+
), [r, a] = k(
|
|
2307
2306
|
() => {
|
|
2308
|
-
var
|
|
2307
|
+
var w, B, C;
|
|
2309
2308
|
return Cn(
|
|
2310
2309
|
e.variants,
|
|
2311
|
-
((
|
|
2312
|
-
(
|
|
2310
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2311
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2313
2312
|
);
|
|
2314
2313
|
}
|
|
2315
|
-
), [
|
|
2314
|
+
), [o, l] = k(
|
|
2316
2315
|
() => {
|
|
2317
|
-
var
|
|
2316
|
+
var w, B, C;
|
|
2318
2317
|
return Tn(
|
|
2319
2318
|
e.variants,
|
|
2320
|
-
((
|
|
2321
|
-
(
|
|
2319
|
+
((w = e.builderBlock) == null ? void 0 : w.id) || "none",
|
|
2320
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2322
2321
|
);
|
|
2323
2322
|
}
|
|
2324
|
-
), [c,
|
|
2323
|
+
), [c, d] = k(() => []), [h, g] = k(
|
|
2325
2324
|
() => {
|
|
2326
|
-
var
|
|
2325
|
+
var w;
|
|
2327
2326
|
return xn(
|
|
2328
2327
|
e.variants,
|
|
2329
|
-
|
|
2328
|
+
Z((w = e.builderContext) == null ? void 0 : w.canTrack)
|
|
2330
2329
|
);
|
|
2331
2330
|
}
|
|
2332
|
-
), [
|
|
2333
|
-
function
|
|
2331
|
+
), [u, x] = k(() => !1);
|
|
2332
|
+
function f() {
|
|
2334
2333
|
return {
|
|
2335
2334
|
...e.attributes,
|
|
2336
|
-
[
|
|
2335
|
+
[J()]: `builder-personalization-container ${e.attributes[J()] || ""}`
|
|
2337
2336
|
};
|
|
2338
2337
|
}
|
|
2339
|
-
function
|
|
2340
|
-
return (e.variants || []).filter((
|
|
2341
|
-
var B,
|
|
2342
|
-
return
|
|
2338
|
+
function m() {
|
|
2339
|
+
return (e.variants || []).filter((w) => {
|
|
2340
|
+
var B, C, W, L;
|
|
2341
|
+
return bn(
|
|
2343
2342
|
{
|
|
2344
|
-
...(
|
|
2345
|
-
locale: (
|
|
2343
|
+
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2344
|
+
locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
|
|
2346
2345
|
} : {},
|
|
2347
2346
|
...n
|
|
2348
2347
|
},
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2348
|
+
w.query,
|
|
2349
|
+
w.startDate,
|
|
2350
|
+
w.endDate
|
|
2352
2351
|
);
|
|
2353
2352
|
});
|
|
2354
2353
|
}
|
|
2355
|
-
function
|
|
2356
|
-
var
|
|
2354
|
+
function y() {
|
|
2355
|
+
var w;
|
|
2357
2356
|
return Sn({
|
|
2358
2357
|
variants: e.variants,
|
|
2359
|
-
fallbackBlocks: (
|
|
2360
|
-
isHydrated:
|
|
2361
|
-
filteredVariants:
|
|
2358
|
+
fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
|
|
2359
|
+
isHydrated: u,
|
|
2360
|
+
filteredVariants: m(),
|
|
2362
2361
|
previewingIndex: e.previewingIndex
|
|
2363
2362
|
});
|
|
2364
2363
|
}
|
|
2365
|
-
function
|
|
2364
|
+
function b() {
|
|
2366
2365
|
return (e.variants || []).map(
|
|
2367
|
-
(
|
|
2368
|
-
var
|
|
2369
|
-
return `div[data-variant-id="${(
|
|
2366
|
+
(w, B) => {
|
|
2367
|
+
var C;
|
|
2368
|
+
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2370
2369
|
}
|
|
2371
2370
|
).join("");
|
|
2372
2371
|
}
|
|
2373
|
-
return
|
|
2372
|
+
return N(() => {
|
|
2374
2373
|
var B;
|
|
2375
|
-
|
|
2376
|
-
const
|
|
2377
|
-
(
|
|
2378
|
-
i(
|
|
2374
|
+
x(!0);
|
|
2375
|
+
const w = Ce.subscribeOnUserAttributesChange(
|
|
2376
|
+
(C) => {
|
|
2377
|
+
i(C);
|
|
2379
2378
|
},
|
|
2380
2379
|
{
|
|
2381
2380
|
fireImmediately: F === "qwik"
|
|
2382
2381
|
}
|
|
2383
2382
|
);
|
|
2384
|
-
if (!(
|
|
2385
|
-
const
|
|
2383
|
+
if (!(U() || le())) {
|
|
2384
|
+
const C = m()[0];
|
|
2386
2385
|
t.current && (t.current.dispatchEvent(
|
|
2387
2386
|
new CustomEvent("builder.variantLoaded", {
|
|
2388
2387
|
detail: {
|
|
2389
|
-
variant:
|
|
2388
|
+
variant: C || ie,
|
|
2390
2389
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2391
2390
|
},
|
|
2392
2391
|
bubbles: !0
|
|
2393
2392
|
})
|
|
2394
|
-
), new IntersectionObserver((
|
|
2395
|
-
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2393
|
+
), new IntersectionObserver((L) => {
|
|
2394
|
+
L.forEach((O) => {
|
|
2395
|
+
var j;
|
|
2396
|
+
O.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2398
2397
|
new CustomEvent("builder.variantDisplayed", {
|
|
2399
2398
|
detail: {
|
|
2400
|
-
variant:
|
|
2401
|
-
content: (
|
|
2399
|
+
variant: C || ie,
|
|
2400
|
+
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2402
2401
|
},
|
|
2403
2402
|
bubbles: !0
|
|
2404
2403
|
})
|
|
@@ -2406,64 +2405,64 @@ function Nn(e) {
|
|
|
2406
2405
|
});
|
|
2407
2406
|
}).observe(t.current));
|
|
2408
2407
|
}
|
|
2409
|
-
c.push(
|
|
2410
|
-
}, []),
|
|
2411
|
-
c.forEach((
|
|
2412
|
-
}, []), /* @__PURE__ */
|
|
2413
|
-
|
|
2414
|
-
|
|
2408
|
+
c.push(w);
|
|
2409
|
+
}, []), N(() => () => {
|
|
2410
|
+
c.forEach((w) => w());
|
|
2411
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2412
|
+
u && re.includes(F) ? /* @__PURE__ */ s(
|
|
2413
|
+
M,
|
|
2415
2414
|
{
|
|
2416
|
-
blocks:
|
|
2415
|
+
blocks: y().blocks,
|
|
2417
2416
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2418
|
-
path:
|
|
2417
|
+
path: y().path,
|
|
2419
2418
|
context: e.builderContext,
|
|
2420
2419
|
registeredComponents: e.builderComponents,
|
|
2421
2420
|
BlocksWrapperProps: {
|
|
2422
|
-
...(
|
|
2423
|
-
"data-variant-id": `${(
|
|
2421
|
+
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2422
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
|
|
2424
2423
|
}
|
|
2425
2424
|
}
|
|
2426
2425
|
) : null,
|
|
2427
|
-
!
|
|
2428
|
-
|
|
2426
|
+
!u && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ D(P, { children: [
|
|
2427
|
+
h ? /* @__PURE__ */ D(P, { children: [
|
|
2429
2428
|
/* @__PURE__ */ s(
|
|
2430
|
-
|
|
2429
|
+
te,
|
|
2431
2430
|
{
|
|
2432
|
-
nonce: ((
|
|
2433
|
-
styles:
|
|
2434
|
-
id: `variants-styles-${(
|
|
2431
|
+
nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
|
|
2432
|
+
styles: b(),
|
|
2433
|
+
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2435
2434
|
}
|
|
2436
2435
|
),
|
|
2437
2436
|
/* @__PURE__ */ s(
|
|
2438
|
-
|
|
2437
|
+
K,
|
|
2439
2438
|
{
|
|
2440
|
-
nonce: ((
|
|
2441
|
-
scriptStr:
|
|
2442
|
-
id: `variants-visibility-script-${(
|
|
2439
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2440
|
+
scriptStr: o,
|
|
2441
|
+
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2443
2442
|
}
|
|
2444
2443
|
),
|
|
2445
|
-
(
|
|
2446
|
-
var
|
|
2444
|
+
(v = e.variants) == null ? void 0 : v.map((w, B) => {
|
|
2445
|
+
var C, W, L, O, j, ke;
|
|
2447
2446
|
return /* @__PURE__ */ s(
|
|
2448
|
-
|
|
2447
|
+
M,
|
|
2449
2448
|
{
|
|
2450
2449
|
BlocksWrapperProps: {
|
|
2451
|
-
...(
|
|
2450
|
+
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2452
2451
|
"aria-hidden": !0,
|
|
2453
2452
|
hidden: !0,
|
|
2454
|
-
"data-variant-id": `${(
|
|
2453
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${B}`
|
|
2455
2454
|
},
|
|
2456
|
-
blocks:
|
|
2457
|
-
parent: (
|
|
2455
|
+
blocks: w.blocks,
|
|
2456
|
+
parent: (L = e.builderBlock) == null ? void 0 : L.id,
|
|
2458
2457
|
path: `component.options.variants.${B}.blocks`,
|
|
2459
2458
|
context: e.builderContext,
|
|
2460
2459
|
registeredComponents: e.builderComponents,
|
|
2461
2460
|
children: /* @__PURE__ */ s(
|
|
2462
|
-
|
|
2461
|
+
K,
|
|
2463
2462
|
{
|
|
2464
|
-
nonce: ((
|
|
2463
|
+
nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
|
|
2465
2464
|
scriptStr: r,
|
|
2466
|
-
id: `variants-script-${(
|
|
2465
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2467
2466
|
}
|
|
2468
2467
|
)
|
|
2469
2468
|
},
|
|
@@ -2472,23 +2471,23 @@ function Nn(e) {
|
|
|
2472
2471
|
})
|
|
2473
2472
|
] }) : null,
|
|
2474
2473
|
/* @__PURE__ */ s(
|
|
2475
|
-
|
|
2474
|
+
M,
|
|
2476
2475
|
{
|
|
2477
|
-
blocks:
|
|
2478
|
-
parent: (
|
|
2479
|
-
path:
|
|
2476
|
+
blocks: y().blocks,
|
|
2477
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2478
|
+
path: y().path,
|
|
2480
2479
|
context: e.builderContext,
|
|
2481
2480
|
registeredComponents: e.builderComponents,
|
|
2482
2481
|
BlocksWrapperProps: {
|
|
2483
|
-
...(
|
|
2484
|
-
"data-variant-id": `${(
|
|
2482
|
+
...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
|
|
2483
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
|
|
2485
2484
|
},
|
|
2486
|
-
children:
|
|
2487
|
-
|
|
2485
|
+
children: h ? /* @__PURE__ */ s(
|
|
2486
|
+
K,
|
|
2488
2487
|
{
|
|
2489
|
-
nonce: ((
|
|
2488
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2490
2489
|
scriptStr: r,
|
|
2491
|
-
id: `variants-script-${(
|
|
2490
|
+
id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
|
|
2492
2491
|
}
|
|
2493
2492
|
) : null
|
|
2494
2493
|
}
|
|
@@ -2565,7 +2564,7 @@ function Dn(e) {
|
|
|
2565
2564
|
"builder-slot": e.name
|
|
2566
2565
|
},
|
|
2567
2566
|
children: /* @__PURE__ */ s(
|
|
2568
|
-
|
|
2567
|
+
M,
|
|
2569
2568
|
{
|
|
2570
2569
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2571
2570
|
path: `symbol.data.${e.name}`,
|
|
@@ -2654,7 +2653,7 @@ const Fn = {
|
|
|
2654
2653
|
text: "New tab content "
|
|
2655
2654
|
}
|
|
2656
2655
|
}
|
|
2657
|
-
},
|
|
2656
|
+
}, Ln = {
|
|
2658
2657
|
name: "Builder: Tabs",
|
|
2659
2658
|
inputs: [{
|
|
2660
2659
|
name: "tabs",
|
|
@@ -2758,18 +2757,21 @@ const Fn = {
|
|
|
2758
2757
|
builderLinkComponent: !0
|
|
2759
2758
|
}
|
|
2760
2759
|
};
|
|
2761
|
-
function
|
|
2760
|
+
function On(e) {
|
|
2762
2761
|
var o;
|
|
2763
|
-
const [t, n] =
|
|
2762
|
+
const [t, n] = k(
|
|
2764
2763
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2765
2764
|
);
|
|
2766
|
-
function i(
|
|
2767
|
-
return e.tabs && e.tabs[
|
|
2765
|
+
function i(l) {
|
|
2766
|
+
return e.tabs && e.tabs[l].content;
|
|
2767
|
+
}
|
|
2768
|
+
function r(l) {
|
|
2769
|
+
return l === t ? e.activeTabStyle : {};
|
|
2768
2770
|
}
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2771
|
+
function a(l) {
|
|
2772
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
2771
2773
|
}
|
|
2772
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
2773
2775
|
/* @__PURE__ */ s(
|
|
2774
2776
|
"div",
|
|
2775
2777
|
{
|
|
@@ -2780,32 +2782,30 @@ function Ln(e) {
|
|
|
2780
2782
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2781
2783
|
overflow: "auto"
|
|
2782
2784
|
},
|
|
2783
|
-
children: (o = e.tabs) == null ? void 0 : o.map((
|
|
2785
|
+
children: (o = e.tabs) == null ? void 0 : o.map((l, c) => /* @__PURE__ */ s(
|
|
2784
2786
|
"span",
|
|
2785
2787
|
{
|
|
2786
|
-
className: `builder-tab-wrap ${t ===
|
|
2787
|
-
style:
|
|
2788
|
-
|
|
2789
|
-
},
|
|
2790
|
-
onClick: (c) => r(l),
|
|
2788
|
+
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2789
|
+
style: r(c),
|
|
2790
|
+
onClick: (d) => a(c),
|
|
2791
2791
|
children: /* @__PURE__ */ s(
|
|
2792
|
-
|
|
2792
|
+
M,
|
|
2793
2793
|
{
|
|
2794
2794
|
parent: e.builderBlock.id,
|
|
2795
|
-
path: `tabs.${
|
|
2796
|
-
blocks:
|
|
2795
|
+
path: `tabs.${c}.label`,
|
|
2796
|
+
blocks: l.label,
|
|
2797
2797
|
context: e.builderContext,
|
|
2798
2798
|
registeredComponents: e.builderComponents,
|
|
2799
2799
|
linkComponent: e.builderLinkComponent
|
|
2800
2800
|
}
|
|
2801
2801
|
)
|
|
2802
2802
|
},
|
|
2803
|
-
|
|
2803
|
+
c
|
|
2804
2804
|
))
|
|
2805
2805
|
}
|
|
2806
2806
|
),
|
|
2807
2807
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2808
|
-
|
|
2808
|
+
M,
|
|
2809
2809
|
{
|
|
2810
2810
|
parent: e.builderBlock.id,
|
|
2811
2811
|
path: `tabs.${t}.content`,
|
|
@@ -2874,42 +2874,42 @@ const Hn = {
|
|
|
2874
2874
|
}]
|
|
2875
2875
|
};
|
|
2876
2876
|
function Mn(e) {
|
|
2877
|
-
const t =
|
|
2878
|
-
function
|
|
2877
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []);
|
|
2878
|
+
function o() {
|
|
2879
2879
|
var c;
|
|
2880
2880
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2881
2881
|
return;
|
|
2882
2882
|
const l = t.current.getElementsByTagName("script");
|
|
2883
|
-
for (let
|
|
2884
|
-
const
|
|
2885
|
-
if (
|
|
2886
|
-
if (n.includes(
|
|
2883
|
+
for (let d = 0; d < l.length; d++) {
|
|
2884
|
+
const h = l[d];
|
|
2885
|
+
if (h.src) {
|
|
2886
|
+
if (n.includes(h.src))
|
|
2887
2887
|
continue;
|
|
2888
|
-
n.push(
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
} else if (!
|
|
2888
|
+
n.push(h.src);
|
|
2889
|
+
const g = document.createElement("script");
|
|
2890
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2891
|
+
} else if (!h.type || [
|
|
2892
2892
|
"text/javascript",
|
|
2893
2893
|
"application/javascript",
|
|
2894
2894
|
"application/ecmascript"
|
|
2895
|
-
].includes(
|
|
2896
|
-
if (r.includes(
|
|
2895
|
+
].includes(h.type)) {
|
|
2896
|
+
if (r.includes(h.innerText))
|
|
2897
2897
|
continue;
|
|
2898
2898
|
try {
|
|
2899
|
-
r.push(
|
|
2900
|
-
} catch (
|
|
2901
|
-
|
|
2899
|
+
r.push(h.innerText), new Function(h.innerText)();
|
|
2900
|
+
} catch (g) {
|
|
2901
|
+
ee.warn(
|
|
2902
2902
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2903
|
-
|
|
2903
|
+
g
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
return
|
|
2910
|
-
|
|
2911
|
-
}, []),
|
|
2912
|
-
|
|
2909
|
+
return N(() => {
|
|
2910
|
+
o();
|
|
2911
|
+
}, []), N(() => {
|
|
2912
|
+
U() && o();
|
|
2913
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2914
2914
|
"div",
|
|
2915
2915
|
{
|
|
@@ -2936,28 +2936,28 @@ const qn = {
|
|
|
2936
2936
|
}]
|
|
2937
2937
|
}, jn = ["text/javascript", "application/javascript", "application/ecmascript"], zn = (e) => jn.includes(e.type);
|
|
2938
2938
|
function Kn(e) {
|
|
2939
|
-
const t =
|
|
2939
|
+
const t = z(null), [n, i] = k(() => []), [r, a] = k(() => []), [o, l] = k(() => !1);
|
|
2940
2940
|
function c() {
|
|
2941
2941
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2942
2942
|
return;
|
|
2943
|
-
const
|
|
2944
|
-
for (let
|
|
2945
|
-
const
|
|
2946
|
-
if (
|
|
2947
|
-
n.push(
|
|
2948
|
-
const
|
|
2949
|
-
|
|
2950
|
-
} else if (zn(
|
|
2943
|
+
const d = t.current.getElementsByTagName("script");
|
|
2944
|
+
for (let h = 0; h < d.length; h++) {
|
|
2945
|
+
const g = d[h];
|
|
2946
|
+
if (g.src && !n.includes(g.src)) {
|
|
2947
|
+
n.push(g.src);
|
|
2948
|
+
const u = document.createElement("script");
|
|
2949
|
+
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
2950
|
+
} else if (zn(g) && !r.includes(g.innerText))
|
|
2951
2951
|
try {
|
|
2952
|
-
r.push(
|
|
2953
|
-
} catch (
|
|
2954
|
-
|
|
2952
|
+
r.push(g.innerText), new Function(g.innerText)();
|
|
2953
|
+
} catch (u) {
|
|
2954
|
+
ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
2955
2955
|
}
|
|
2956
2956
|
}
|
|
2957
2957
|
}
|
|
2958
|
-
return
|
|
2959
|
-
t.current && !
|
|
2960
|
-
}, [t.current,
|
|
2958
|
+
return N(() => {
|
|
2959
|
+
t.current && !o && (l(!0), c());
|
|
2960
|
+
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2961
2961
|
"div",
|
|
2962
2962
|
{
|
|
2963
2963
|
className: "builder-embed",
|
|
@@ -3208,129 +3208,132 @@ const Jn = {
|
|
|
3208
3208
|
return Gn.includes(e) ? e : "production";
|
|
3209
3209
|
};
|
|
3210
3210
|
function Yn(e) {
|
|
3211
|
-
const t =
|
|
3212
|
-
function c(
|
|
3213
|
-
var
|
|
3214
|
-
const
|
|
3211
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
|
|
3212
|
+
function c(u) {
|
|
3213
|
+
var f, m;
|
|
3214
|
+
const x = {
|
|
3215
3215
|
...e.builderContext.rootState,
|
|
3216
|
-
...
|
|
3216
|
+
...u
|
|
3217
3217
|
};
|
|
3218
|
-
e.builderContext.rootSetState ? (
|
|
3218
|
+
e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3220
|
+
function d() {
|
|
3221
|
+
return U() && e.previewState || n;
|
|
3222
3222
|
}
|
|
3223
|
-
function
|
|
3224
|
-
|
|
3225
|
-
|
|
3223
|
+
function h(u) {
|
|
3224
|
+
return JSON.stringify(u, null, 2);
|
|
3225
|
+
}
|
|
3226
|
+
function g(u) {
|
|
3227
|
+
var f;
|
|
3228
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3226
3229
|
if (e.sendSubmissionsTo === "zapier")
|
|
3227
|
-
|
|
3228
|
-
else if (
|
|
3230
|
+
u.preventDefault();
|
|
3231
|
+
else if (x) {
|
|
3229
3232
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3230
|
-
|
|
3233
|
+
u.preventDefault();
|
|
3231
3234
|
return;
|
|
3232
3235
|
}
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3235
|
-
let
|
|
3236
|
-
const
|
|
3237
|
-
(
|
|
3238
|
-
).map((
|
|
3239
|
-
let
|
|
3240
|
-
const
|
|
3241
|
-
if (
|
|
3242
|
-
if (
|
|
3243
|
-
if (
|
|
3244
|
-
return
|
|
3245
|
-
key:
|
|
3246
|
-
value:
|
|
3236
|
+
u.preventDefault();
|
|
3237
|
+
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3238
|
+
let b;
|
|
3239
|
+
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3240
|
+
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3241
|
+
).map((p) => {
|
|
3242
|
+
let v;
|
|
3243
|
+
const I = p.name;
|
|
3244
|
+
if (p instanceof HTMLInputElement)
|
|
3245
|
+
if (p.type === "radio") {
|
|
3246
|
+
if (p.checked)
|
|
3247
|
+
return v = p.value, {
|
|
3248
|
+
key: I,
|
|
3249
|
+
value: v
|
|
3247
3250
|
};
|
|
3248
|
-
} else if (
|
|
3249
|
-
|
|
3250
|
-
else if (
|
|
3251
|
-
const
|
|
3252
|
-
isNaN(
|
|
3251
|
+
} else if (p.type === "checkbox")
|
|
3252
|
+
v = p.checked;
|
|
3253
|
+
else if (p.type === "number" || p.type === "range") {
|
|
3254
|
+
const V = p.valueAsNumber;
|
|
3255
|
+
isNaN(V) || (v = V);
|
|
3253
3256
|
} else
|
|
3254
|
-
|
|
3257
|
+
p.type === "file" ? v = p.files : v = p.value;
|
|
3255
3258
|
else
|
|
3256
|
-
|
|
3259
|
+
v = p.value;
|
|
3257
3260
|
return {
|
|
3258
|
-
key:
|
|
3259
|
-
value:
|
|
3261
|
+
key: I,
|
|
3262
|
+
value: v
|
|
3260
3263
|
};
|
|
3261
3264
|
});
|
|
3262
|
-
let
|
|
3263
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3264
|
-
(
|
|
3265
|
-
}),
|
|
3266
|
-
|
|
3265
|
+
let E = e.contentType;
|
|
3266
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3267
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3268
|
+
}), E !== "application/json")
|
|
3269
|
+
b = S;
|
|
3267
3270
|
else {
|
|
3268
|
-
const
|
|
3269
|
-
Array.from(
|
|
3270
|
-
Ue(
|
|
3271
|
-
}),
|
|
3271
|
+
const p = {};
|
|
3272
|
+
Array.from(T).forEach(({ value: v, key: I }) => {
|
|
3273
|
+
Ue(p, I, v);
|
|
3274
|
+
}), b = JSON.stringify(p);
|
|
3272
3275
|
}
|
|
3273
|
-
|
|
3274
|
-
const
|
|
3275
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3276
|
+
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3277
|
+
const _ = new CustomEvent("presubmit", { detail: { body: b } });
|
|
3278
|
+
if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
|
|
3276
3279
|
return;
|
|
3277
3280
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3278
|
-
const
|
|
3279
|
-
console.error(
|
|
3281
|
+
const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3282
|
+
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3280
3283
|
return;
|
|
3281
3284
|
}
|
|
3282
|
-
const
|
|
3285
|
+
const H = `${Qn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3283
3286
|
e.sendSubmissionsToEmail || ""
|
|
3284
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3285
|
-
Fe(
|
|
3286
|
-
async (
|
|
3287
|
-
var
|
|
3288
|
-
let
|
|
3289
|
-
const
|
|
3290
|
-
if (
|
|
3291
|
-
const
|
|
3292
|
-
detail: { error:
|
|
3287
|
+
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3288
|
+
Fe(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
|
|
3289
|
+
async (p) => {
|
|
3290
|
+
var V, $;
|
|
3291
|
+
let v;
|
|
3292
|
+
const I = p.headers.get("content-type");
|
|
3293
|
+
if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3294
|
+
const R = new CustomEvent("submit:error", {
|
|
3295
|
+
detail: { error: v, status: p.status }
|
|
3293
3296
|
});
|
|
3294
|
-
if ((
|
|
3297
|
+
if ((V = t.current) != null && V.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3295
3298
|
return;
|
|
3296
|
-
|
|
3297
|
-
let
|
|
3298
|
-
typeof
|
|
3299
|
+
a(v), i("error");
|
|
3300
|
+
let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3301
|
+
typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
|
|
3299
3302
|
return;
|
|
3300
3303
|
}
|
|
3301
|
-
if (
|
|
3302
|
-
const
|
|
3303
|
-
detail: { res:
|
|
3304
|
+
if (a(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3305
|
+
const R = new CustomEvent("submit:success", {
|
|
3306
|
+
detail: { res: p, body: v }
|
|
3304
3307
|
});
|
|
3305
3308
|
if (t.current) {
|
|
3306
|
-
if (t.current.dispatchEvent(
|
|
3309
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3307
3310
|
return;
|
|
3308
3311
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3309
3312
|
}
|
|
3310
3313
|
if (e.successUrl)
|
|
3311
3314
|
if (t.current) {
|
|
3312
|
-
const
|
|
3315
|
+
const A = new CustomEvent("route", {
|
|
3313
3316
|
detail: { url: e.successUrl }
|
|
3314
3317
|
});
|
|
3315
|
-
t.current.dispatchEvent(
|
|
3318
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
3316
3319
|
} else
|
|
3317
3320
|
location.href = e.successUrl;
|
|
3318
3321
|
}
|
|
3319
3322
|
},
|
|
3320
|
-
(
|
|
3321
|
-
const
|
|
3322
|
-
detail: { error:
|
|
3323
|
+
(p) => {
|
|
3324
|
+
const v = new CustomEvent("submit:error", {
|
|
3325
|
+
detail: { error: p }
|
|
3323
3326
|
});
|
|
3324
|
-
t.current && (t.current.dispatchEvent(
|
|
3327
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
|
|
3325
3328
|
}
|
|
3326
3329
|
);
|
|
3327
3330
|
}
|
|
3328
3331
|
}
|
|
3329
|
-
return /* @__PURE__ */
|
|
3332
|
+
return /* @__PURE__ */ D(P, { children: [
|
|
3330
3333
|
" ",
|
|
3331
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3334
|
+
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3332
3335
|
" ",
|
|
3333
|
-
/* @__PURE__ */
|
|
3336
|
+
/* @__PURE__ */ D(
|
|
3334
3337
|
"form",
|
|
3335
3338
|
{
|
|
3336
3339
|
validate: e.validate,
|
|
@@ -3338,29 +3341,29 @@ function Yn(e) {
|
|
|
3338
3341
|
action: !e.sendWithJs && e.action,
|
|
3339
3342
|
method: e.method,
|
|
3340
3343
|
name: e.name,
|
|
3341
|
-
onSubmit: (
|
|
3344
|
+
onSubmit: (u) => g(u),
|
|
3342
3345
|
...e.attributes,
|
|
3343
3346
|
children: [
|
|
3344
3347
|
e.children,
|
|
3345
|
-
|
|
3346
|
-
|
|
3348
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
3349
|
+
M,
|
|
3347
3350
|
{
|
|
3348
3351
|
path: "errorMessage",
|
|
3349
3352
|
blocks: e.errorMessage,
|
|
3350
3353
|
context: e.builderContext
|
|
3351
3354
|
}
|
|
3352
3355
|
) : null,
|
|
3353
|
-
|
|
3354
|
-
|
|
3356
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
3357
|
+
M,
|
|
3355
3358
|
{
|
|
3356
3359
|
path: "sendingMessage",
|
|
3357
3360
|
blocks: e.sendingMessage,
|
|
3358
3361
|
context: e.builderContext
|
|
3359
3362
|
}
|
|
3360
3363
|
) : null,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
+
d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
|
|
3365
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
3366
|
+
M,
|
|
3364
3367
|
{
|
|
3365
3368
|
path: "successMessage",
|
|
3366
3369
|
blocks: e.successMessage,
|
|
@@ -3430,7 +3433,7 @@ function Zn(e) {
|
|
|
3430
3433
|
"input",
|
|
3431
3434
|
{
|
|
3432
3435
|
...e.attributes,
|
|
3433
|
-
key:
|
|
3436
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3434
3437
|
placeholder: e.placeholder,
|
|
3435
3438
|
type: e.type,
|
|
3436
3439
|
name: e.name,
|
|
@@ -3490,7 +3493,7 @@ function ti(e) {
|
|
|
3490
3493
|
{
|
|
3491
3494
|
...e.attributes,
|
|
3492
3495
|
value: e.value,
|
|
3493
|
-
key:
|
|
3496
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3494
3497
|
defaultValue: e.defaultValue,
|
|
3495
3498
|
name: e.name,
|
|
3496
3499
|
required: e.required
|
|
@@ -3611,7 +3614,7 @@ function li(e) {
|
|
|
3611
3614
|
srcSet: t(),
|
|
3612
3615
|
...e.attributes
|
|
3613
3616
|
},
|
|
3614
|
-
|
|
3617
|
+
U() && e.imgSrc || "default-key"
|
|
3615
3618
|
);
|
|
3616
3619
|
}
|
|
3617
3620
|
const si = {
|
|
@@ -3700,8 +3703,8 @@ const si = {
|
|
|
3700
3703
|
}
|
|
3701
3704
|
};
|
|
3702
3705
|
function ci(e) {
|
|
3703
|
-
var
|
|
3704
|
-
const t =
|
|
3706
|
+
var o, l, c, d, h, g, u;
|
|
3707
|
+
const t = z(null);
|
|
3705
3708
|
function n() {
|
|
3706
3709
|
return {
|
|
3707
3710
|
...e.autoPlay === !0 ? {
|
|
@@ -3726,32 +3729,32 @@ function ci(e) {
|
|
|
3726
3729
|
...n()
|
|
3727
3730
|
};
|
|
3728
3731
|
}
|
|
3729
|
-
const [r,
|
|
3732
|
+
const [r, a] = k(() => {
|
|
3730
3733
|
});
|
|
3731
|
-
return
|
|
3734
|
+
return N(() => {
|
|
3732
3735
|
if (e.lazyLoad) {
|
|
3733
|
-
const
|
|
3734
|
-
|
|
3735
|
-
if (!
|
|
3736
|
+
const x = new IntersectionObserver(function(f) {
|
|
3737
|
+
f.forEach(function(m) {
|
|
3738
|
+
if (!m.isIntersecting)
|
|
3736
3739
|
return;
|
|
3737
|
-
const
|
|
3740
|
+
const y = m.target;
|
|
3738
3741
|
try {
|
|
3739
|
-
Array.from(
|
|
3740
|
-
(
|
|
3741
|
-
).forEach((
|
|
3742
|
-
const S =
|
|
3743
|
-
S && (
|
|
3744
|
-
}),
|
|
3745
|
-
} catch (
|
|
3746
|
-
console.error("Error loading lazy video:",
|
|
3742
|
+
Array.from(y.children).filter(
|
|
3743
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3744
|
+
).forEach((b) => {
|
|
3745
|
+
const S = b.dataset.src;
|
|
3746
|
+
S && (b.src = S);
|
|
3747
|
+
}), y.load(), x.unobserve(y);
|
|
3748
|
+
} catch (b) {
|
|
3749
|
+
console.error("Error loading lazy video:", b);
|
|
3747
3750
|
}
|
|
3748
3751
|
});
|
|
3749
3752
|
});
|
|
3750
|
-
t.current &&
|
|
3753
|
+
t.current && x.observe(t.current), a(x);
|
|
3751
3754
|
}
|
|
3752
|
-
}, []),
|
|
3755
|
+
}, []), N(() => () => {
|
|
3753
3756
|
r && r.disconnect();
|
|
3754
|
-
}, []), /* @__PURE__ */
|
|
3757
|
+
}, []), /* @__PURE__ */ D(
|
|
3755
3758
|
"div",
|
|
3756
3759
|
{
|
|
3757
3760
|
style: {
|
|
@@ -3768,7 +3771,7 @@ function ci(e) {
|
|
|
3768
3771
|
style: {
|
|
3769
3772
|
width: "100%",
|
|
3770
3773
|
height: "100%",
|
|
3771
|
-
...(
|
|
3774
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
3772
3775
|
objectFit: e.fit,
|
|
3773
3776
|
objectPosition: e.position,
|
|
3774
3777
|
// Hack to get object fit to work as expected and
|
|
@@ -3803,7 +3806,7 @@ function ci(e) {
|
|
|
3803
3806
|
}
|
|
3804
3807
|
}
|
|
3805
3808
|
) : null,
|
|
3806
|
-
(
|
|
3809
|
+
(h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3807
3810
|
"div",
|
|
3808
3811
|
{
|
|
3809
3812
|
style: {
|
|
@@ -3814,7 +3817,7 @@ function ci(e) {
|
|
|
3814
3817
|
children: e.children
|
|
3815
3818
|
}
|
|
3816
3819
|
) : null,
|
|
3817
|
-
(
|
|
3820
|
+
(u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3818
3821
|
"div",
|
|
3819
3822
|
{
|
|
3820
3823
|
style: {
|
|
@@ -3890,8 +3893,8 @@ const ui = () => [{
|
|
|
3890
3893
|
component: Nn,
|
|
3891
3894
|
...Bn
|
|
3892
3895
|
}] : [], {
|
|
3893
|
-
component:
|
|
3894
|
-
...
|
|
3896
|
+
component: On,
|
|
3897
|
+
...Ln
|
|
3895
3898
|
}, {
|
|
3896
3899
|
component: wn,
|
|
3897
3900
|
...In
|
|
@@ -3995,12 +3998,12 @@ const ui = () => [{
|
|
|
3995
3998
|
})), fi = ({
|
|
3996
3999
|
canTrack: e,
|
|
3997
4000
|
content: t
|
|
3998
|
-
}) => !(!(ae(t).length > 0) || !e ||
|
|
4001
|
+
}) => !(!(ae(t).length > 0) || !e || G()), hi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = hi(F), gi = () => `
|
|
3999
4002
|
window.${rt} = ${di}
|
|
4000
4003
|
window.${at} = ${mi}
|
|
4001
4004
|
`, yi = (e, t) => `
|
|
4002
4005
|
window.${rt}(
|
|
4003
|
-
"${t}",${JSON.stringify(e)}, ${ot}, ${
|
|
4006
|
+
"${t}",${JSON.stringify(e)}, ${ot}, ${bi}
|
|
4004
4007
|
)`, pi = ({
|
|
4005
4008
|
contentId: e,
|
|
4006
4009
|
variationId: t
|
|
@@ -4028,10 +4031,10 @@ const vi = (e, t, n = !0) => {
|
|
|
4028
4031
|
event: e,
|
|
4029
4032
|
target: t
|
|
4030
4033
|
}) => {
|
|
4031
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top,
|
|
4034
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, a = Ne(i / n.width), o = Ne(r / n.height);
|
|
4032
4035
|
return {
|
|
4033
|
-
x:
|
|
4034
|
-
y:
|
|
4036
|
+
x: a,
|
|
4037
|
+
y: o
|
|
4035
4038
|
};
|
|
4036
4039
|
}, Si = (e) => {
|
|
4037
4040
|
const t = e.target, n = t && xi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -4049,9 +4052,9 @@ const vi = (e, t, n = !0) => {
|
|
|
4049
4052
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4050
4053
|
}
|
|
4051
4054
|
};
|
|
4052
|
-
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (
|
|
4053
|
-
var
|
|
4054
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4055
|
+
}, ki = ["svelte", "qwik", "vue"], We = () => ki.includes(F) && (U() || le()), Ci = (e) => {
|
|
4056
|
+
var a, o;
|
|
4057
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4055
4058
|
let r = "";
|
|
4056
4059
|
if (i && t && n && (r += `
|
|
4057
4060
|
@font-face {
|
|
@@ -4064,11 +4067,11 @@ font-weight: 400;
|
|
|
4064
4067
|
for (const l in e.files) {
|
|
4065
4068
|
if (!(String(Number(l)) === l))
|
|
4066
4069
|
continue;
|
|
4067
|
-
const
|
|
4068
|
-
|
|
4070
|
+
const d = e.files[l];
|
|
4071
|
+
d && d !== i && (r += `
|
|
4069
4072
|
@font-face {
|
|
4070
4073
|
font-family: "${t}";
|
|
4071
|
-
src: url('${
|
|
4074
|
+
src: url('${d}') format('woff2');
|
|
4072
4075
|
font-display: fallback;
|
|
4073
4076
|
font-weight: ${l};
|
|
4074
4077
|
}
|
|
@@ -4102,147 +4105,150 @@ font-weight: ${l};
|
|
|
4102
4105
|
}
|
|
4103
4106
|
`, Ei = (e) => e ? "" : wi, Ri = (e) => `variant-${e}`;
|
|
4104
4107
|
function Pi(e) {
|
|
4105
|
-
var
|
|
4106
|
-
const t =
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4108
|
+
var H, q, p;
|
|
4109
|
+
const t = z(null);
|
|
4110
|
+
k(() => !1);
|
|
4111
|
+
const [n, i] = k(() => null), [r, a] = k(() => "");
|
|
4112
|
+
function o(v) {
|
|
4113
|
+
var V, $;
|
|
4114
|
+
const I = {
|
|
4111
4115
|
...e.builderContextSignal.rootState,
|
|
4112
|
-
...
|
|
4116
|
+
...v
|
|
4113
4117
|
};
|
|
4114
|
-
e.builderContextSignal.rootSetState ? (
|
|
4115
|
-
...
|
|
4116
|
-
rootState:
|
|
4118
|
+
e.builderContextSignal.rootSetState ? ($ = (V = e.builderContextSignal).rootSetState) == null || $.call(V, I) : e.setBuilderContextSignal((R) => ({
|
|
4119
|
+
...R,
|
|
4120
|
+
rootState: I
|
|
4117
4121
|
}));
|
|
4118
4122
|
}
|
|
4119
|
-
function
|
|
4120
|
-
var
|
|
4121
|
-
const
|
|
4123
|
+
function l(v) {
|
|
4124
|
+
var V, $, R, A, w;
|
|
4125
|
+
const I = {
|
|
4122
4126
|
...e.builderContextSignal.content,
|
|
4123
|
-
...
|
|
4127
|
+
...v,
|
|
4124
4128
|
data: {
|
|
4125
|
-
...(
|
|
4126
|
-
...
|
|
4129
|
+
...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
|
|
4130
|
+
...v == null ? void 0 : v.data
|
|
4127
4131
|
},
|
|
4128
4132
|
meta: {
|
|
4129
|
-
...(
|
|
4130
|
-
...
|
|
4131
|
-
breakpoints: ((
|
|
4133
|
+
...($ = e.builderContextSignal.content) == null ? void 0 : $.meta,
|
|
4134
|
+
...v == null ? void 0 : v.meta,
|
|
4135
|
+
breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
|
|
4132
4136
|
}
|
|
4133
4137
|
};
|
|
4134
|
-
e.setBuilderContextSignal((
|
|
4135
|
-
...
|
|
4136
|
-
content:
|
|
4138
|
+
e.setBuilderContextSignal((B) => ({
|
|
4139
|
+
...B,
|
|
4140
|
+
content: I
|
|
4137
4141
|
}));
|
|
4138
4142
|
}
|
|
4139
|
-
function
|
|
4143
|
+
function c() {
|
|
4140
4144
|
return e.showContent ? {} : {
|
|
4141
4145
|
hidden: !0,
|
|
4142
4146
|
"aria-hidden": !0
|
|
4143
4147
|
};
|
|
4144
4148
|
}
|
|
4145
|
-
const [
|
|
4149
|
+
const [d, h] = k(
|
|
4146
4150
|
() => e.contentWrapper || "div"
|
|
4147
4151
|
);
|
|
4148
|
-
function
|
|
4152
|
+
function g(v) {
|
|
4149
4153
|
return ut({
|
|
4150
4154
|
model: e.model,
|
|
4151
4155
|
trustedHosts: e.trustedHosts,
|
|
4152
4156
|
callbacks: {
|
|
4153
|
-
configureSdk: (
|
|
4154
|
-
var
|
|
4155
|
-
const { breakpoints:
|
|
4156
|
-
|
|
4157
|
+
configureSdk: (I) => {
|
|
4158
|
+
var R;
|
|
4159
|
+
const { breakpoints: V, contentId: $ } = I;
|
|
4160
|
+
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
|
|
4157
4161
|
meta: {
|
|
4158
|
-
breakpoints:
|
|
4162
|
+
breakpoints: V
|
|
4159
4163
|
}
|
|
4160
4164
|
});
|
|
4161
4165
|
},
|
|
4162
|
-
animation: (
|
|
4163
|
-
Ke(
|
|
4166
|
+
animation: (I) => {
|
|
4167
|
+
Ke(I);
|
|
4164
4168
|
},
|
|
4165
|
-
contentUpdate: (
|
|
4166
|
-
|
|
4169
|
+
contentUpdate: (I) => {
|
|
4170
|
+
l(I);
|
|
4167
4171
|
},
|
|
4168
|
-
stateUpdate: (
|
|
4169
|
-
|
|
4172
|
+
stateUpdate: (I) => {
|
|
4173
|
+
o(I);
|
|
4170
4174
|
}
|
|
4171
4175
|
}
|
|
4172
|
-
})(
|
|
4176
|
+
})(v);
|
|
4173
4177
|
}
|
|
4174
|
-
const [
|
|
4175
|
-
function
|
|
4176
|
-
var
|
|
4178
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
|
|
4179
|
+
function S(v) {
|
|
4180
|
+
var I, V;
|
|
4177
4181
|
if (e.builderContextSignal.content) {
|
|
4178
|
-
const
|
|
4182
|
+
const $ = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
|
|
4179
4183
|
Te({
|
|
4180
4184
|
apiHost: e.apiHost,
|
|
4181
4185
|
type: "click",
|
|
4182
|
-
canTrack:
|
|
4183
|
-
contentId:
|
|
4186
|
+
canTrack: Z(e.canTrack),
|
|
4187
|
+
contentId: R,
|
|
4184
4188
|
apiKey: e.apiKey,
|
|
4185
|
-
variationId:
|
|
4186
|
-
...Si(
|
|
4187
|
-
unique: !
|
|
4189
|
+
variationId: $ !== R ? $ : void 0,
|
|
4190
|
+
...Si(v),
|
|
4191
|
+
unique: !y
|
|
4188
4192
|
});
|
|
4189
4193
|
}
|
|
4190
|
-
|
|
4194
|
+
y || b(!0);
|
|
4191
4195
|
}
|
|
4192
|
-
function
|
|
4193
|
-
var
|
|
4194
|
-
const
|
|
4195
|
-
Object.entries(
|
|
4196
|
-
([
|
|
4197
|
-
if (!
|
|
4196
|
+
function T() {
|
|
4197
|
+
var I, V, $;
|
|
4198
|
+
const v = ($ = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? $ : {};
|
|
4199
|
+
Object.entries(v).forEach(
|
|
4200
|
+
([R, A]) => {
|
|
4201
|
+
if (!A)
|
|
4198
4202
|
return;
|
|
4199
|
-
const
|
|
4200
|
-
if (f[
|
|
4203
|
+
const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
|
|
4204
|
+
if (f[R] || u[R] && !U())
|
|
4201
4205
|
return;
|
|
4202
|
-
const
|
|
4203
|
-
f[
|
|
4204
|
-
const
|
|
4206
|
+
const B = w ? A.request.url : A;
|
|
4207
|
+
f[R] = !0;
|
|
4208
|
+
const C = B.replace(
|
|
4205
4209
|
/{{([^}]+)}}/g,
|
|
4206
|
-
(
|
|
4207
|
-
|
|
4208
|
-
code:
|
|
4210
|
+
(O, j) => String(
|
|
4211
|
+
Q({
|
|
4212
|
+
code: j,
|
|
4209
4213
|
context: e.context || {},
|
|
4210
4214
|
localState: void 0,
|
|
4211
4215
|
rootState: e.builderContextSignal.rootState,
|
|
4212
4216
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4213
4217
|
})
|
|
4214
4218
|
)
|
|
4215
|
-
),
|
|
4216
|
-
url:
|
|
4217
|
-
method:
|
|
4218
|
-
headers:
|
|
4219
|
-
body:
|
|
4219
|
+
), W = w ? {
|
|
4220
|
+
url: C,
|
|
4221
|
+
method: A.request.method,
|
|
4222
|
+
headers: A.request.headers,
|
|
4223
|
+
body: A.request.body
|
|
4220
4224
|
} : {
|
|
4221
|
-
url:
|
|
4225
|
+
url: C,
|
|
4222
4226
|
method: "GET"
|
|
4223
4227
|
};
|
|
4224
|
-
Fe(JSON.stringify(
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4228
|
+
Fe(JSON.stringify(W));
|
|
4229
|
+
const L = {
|
|
4230
|
+
method: W.method,
|
|
4231
|
+
headers: W.headers,
|
|
4232
|
+
body: W.body
|
|
4233
|
+
};
|
|
4234
|
+
W.method === "GET" && delete L.body, fetch(W.url, L).then((O) => O.json()).then((O) => {
|
|
4235
|
+
o({
|
|
4236
|
+
[R]: O
|
|
4237
|
+
}), u[R] = !0;
|
|
4238
|
+
}).catch((O) => {
|
|
4233
4239
|
console.error(
|
|
4234
4240
|
"error fetching dynamic data",
|
|
4235
|
-
JSON.stringify(
|
|
4236
|
-
|
|
4241
|
+
JSON.stringify(A),
|
|
4242
|
+
O
|
|
4237
4243
|
);
|
|
4238
4244
|
}).finally(() => {
|
|
4239
|
-
f[
|
|
4245
|
+
f[R] = !1;
|
|
4240
4246
|
});
|
|
4241
4247
|
}
|
|
4242
4248
|
);
|
|
4243
4249
|
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4250
|
+
function E() {
|
|
4251
|
+
U() && window.dispatchEvent(
|
|
4246
4252
|
new CustomEvent(
|
|
4247
4253
|
"builder:component:stateChange",
|
|
4248
4254
|
{
|
|
@@ -4256,11 +4262,11 @@ function Pi(e) {
|
|
|
4256
4262
|
)
|
|
4257
4263
|
);
|
|
4258
4264
|
}
|
|
4259
|
-
const
|
|
4260
|
-
return
|
|
4261
|
-
var
|
|
4262
|
-
if (
|
|
4263
|
-
|
|
4265
|
+
const _ = z(!1);
|
|
4266
|
+
return _.current || (T(), E(), _.current = !0), N(() => {
|
|
4267
|
+
var v, I, V, $, R;
|
|
4268
|
+
if (G()) {
|
|
4269
|
+
U() && !e.isNestedRender && (window.addEventListener("message", g), lt({
|
|
4264
4270
|
...e.locale ? {
|
|
4265
4271
|
locale: e.locale
|
|
4266
4272
|
} : {},
|
|
@@ -4270,89 +4276,97 @@ function Pi(e) {
|
|
|
4270
4276
|
...e.trustedHosts ? {
|
|
4271
4277
|
trustedHosts: e.trustedHosts
|
|
4272
4278
|
} : {},
|
|
4273
|
-
modelName: (
|
|
4279
|
+
modelName: (v = e.model) != null ? v : "",
|
|
4274
4280
|
apiKey: e.apiKey
|
|
4275
4281
|
}), Object.values(
|
|
4276
4282
|
e.builderContextSignal.componentInfos
|
|
4277
|
-
).forEach((
|
|
4278
|
-
var
|
|
4279
|
-
if (!((
|
|
4280
|
-
const
|
|
4281
|
-
(
|
|
4283
|
+
).forEach((C) => {
|
|
4284
|
+
var W, L;
|
|
4285
|
+
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4286
|
+
const O = st(C);
|
|
4287
|
+
(L = window.parent) == null || L.postMessage(O, "*");
|
|
4282
4288
|
}
|
|
4283
4289
|
}), window.addEventListener(
|
|
4284
4290
|
"builder:component:stateChangeListenerActivated",
|
|
4285
|
-
|
|
4291
|
+
E
|
|
4286
4292
|
));
|
|
4287
|
-
const
|
|
4288
|
-
name: `builder.tests.${(
|
|
4293
|
+
const A = e.builderContextSignal.content && Z(e.canTrack), w = ct({
|
|
4294
|
+
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4289
4295
|
canTrack: !0
|
|
4290
|
-
}),
|
|
4291
|
-
if (
|
|
4292
|
-
const
|
|
4296
|
+
}), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
|
|
4297
|
+
if (A && B === w) {
|
|
4298
|
+
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4293
4299
|
Te({
|
|
4294
4300
|
apiHost: e.apiHost,
|
|
4295
4301
|
type: "impression",
|
|
4296
4302
|
canTrack: !0,
|
|
4297
|
-
contentId:
|
|
4298
|
-
apiKey:
|
|
4299
|
-
variationId:
|
|
4303
|
+
contentId: C,
|
|
4304
|
+
apiKey: W,
|
|
4305
|
+
variationId: w !== C ? w : void 0
|
|
4300
4306
|
});
|
|
4301
4307
|
}
|
|
4302
|
-
if (le() && !
|
|
4303
|
-
const
|
|
4304
|
-
`builder.overrides.${
|
|
4305
|
-
),
|
|
4306
|
-
(
|
|
4308
|
+
if (le() && !U()) {
|
|
4309
|
+
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
|
|
4310
|
+
`builder.overrides.${W}`
|
|
4311
|
+
), O = C.get("apiKey") || C.get("builder.space");
|
|
4312
|
+
(W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Le({
|
|
4307
4313
|
model: e.model,
|
|
4308
4314
|
apiKey: e.apiKey,
|
|
4309
4315
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4310
|
-
...
|
|
4316
|
+
...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4311
4317
|
query: {
|
|
4312
4318
|
id: e.context.symbolId
|
|
4313
4319
|
}
|
|
4314
4320
|
} : {}
|
|
4315
|
-
}).then((
|
|
4316
|
-
|
|
4321
|
+
}).then((j) => {
|
|
4322
|
+
j && l(j);
|
|
4317
4323
|
});
|
|
4318
4324
|
}
|
|
4319
4325
|
}
|
|
4320
|
-
}, []),
|
|
4321
|
-
e.content &&
|
|
4322
|
-
}, [e.content]),
|
|
4323
|
-
|
|
4324
|
-
}, [e.builderContextSignal.rootState]),
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
}
|
|
4330
|
-
}, [e.
|
|
4331
|
-
|
|
4326
|
+
}, []), N(() => {
|
|
4327
|
+
e.content && l(e.content);
|
|
4328
|
+
}, [e.content]), N(() => {
|
|
4329
|
+
E();
|
|
4330
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
4331
|
+
if (e.data) {
|
|
4332
|
+
if (n === e.data)
|
|
4333
|
+
return;
|
|
4334
|
+
o(e.data), i(e.data);
|
|
4335
|
+
}
|
|
4336
|
+
}, [e.data]), N(() => {
|
|
4337
|
+
if (e.locale) {
|
|
4338
|
+
if (r === e.locale)
|
|
4339
|
+
return;
|
|
4340
|
+
o({
|
|
4341
|
+
locale: e.locale
|
|
4342
|
+
}), a(e.locale);
|
|
4343
|
+
}
|
|
4344
|
+
}, [e.locale]), N(() => () => {
|
|
4345
|
+
G() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4332
4346
|
"builder:component:stateChangeListenerActivated",
|
|
4333
|
-
|
|
4347
|
+
E
|
|
4334
4348
|
));
|
|
4335
4349
|
}, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
|
|
4336
|
-
|
|
4350
|
+
d,
|
|
4337
4351
|
{
|
|
4338
4352
|
ref: t,
|
|
4339
|
-
onClick: (
|
|
4340
|
-
"builder-content-id": (
|
|
4353
|
+
onClick: (v) => S(v),
|
|
4354
|
+
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4341
4355
|
"builder-model": e.model,
|
|
4342
4356
|
className: Ri(
|
|
4343
|
-
((
|
|
4357
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4344
4358
|
),
|
|
4345
4359
|
style: {
|
|
4346
4360
|
display: !e.builderContextSignal.content && We() ? "none" : void 0
|
|
4347
4361
|
},
|
|
4348
|
-
...
|
|
4362
|
+
...c(),
|
|
4349
4363
|
...e.contentWrapperProps,
|
|
4350
4364
|
children: e.children
|
|
4351
4365
|
}
|
|
4352
4366
|
) : null });
|
|
4353
4367
|
}
|
|
4354
4368
|
function Vi(e) {
|
|
4355
|
-
const [t, n] =
|
|
4369
|
+
const [t, n] = k(
|
|
4356
4370
|
() => `
|
|
4357
4371
|
${Ii({
|
|
4358
4372
|
cssCode: e.cssCode,
|
|
@@ -4365,7 +4379,7 @@ ${Ei(e.isNestedRender)}
|
|
|
4365
4379
|
`.trim()
|
|
4366
4380
|
);
|
|
4367
4381
|
return /* @__PURE__ */ s(
|
|
4368
|
-
|
|
4382
|
+
te,
|
|
4369
4383
|
{
|
|
4370
4384
|
id: "builderio-content",
|
|
4371
4385
|
styles: t,
|
|
@@ -4378,9 +4392,9 @@ const Ai = ({
|
|
|
4378
4392
|
data: t,
|
|
4379
4393
|
locale: n
|
|
4380
4394
|
}) => {
|
|
4381
|
-
var
|
|
4382
|
-
const i = {}, r = ((
|
|
4383
|
-
return (l = (
|
|
4395
|
+
var a, o, l;
|
|
4396
|
+
const i = {}, r = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4397
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
|
|
4384
4398
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4385
4399
|
}), {
|
|
4386
4400
|
...i,
|
|
@@ -4402,39 +4416,39 @@ const Ai = ({
|
|
|
4402
4416
|
meta: e == null ? void 0 : e.meta
|
|
4403
4417
|
} : void 0;
|
|
4404
4418
|
function De(e) {
|
|
4405
|
-
var
|
|
4406
|
-
const [t, n] =
|
|
4419
|
+
var d, h, g, u, x, f, m, y, b;
|
|
4420
|
+
const [t, n] = k(
|
|
4407
4421
|
() => {
|
|
4408
|
-
var S,
|
|
4422
|
+
var S, T;
|
|
4409
4423
|
return pi({
|
|
4410
4424
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4411
4425
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4412
4426
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4413
|
-
contentId: (
|
|
4427
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4414
4428
|
});
|
|
4415
4429
|
}
|
|
4416
4430
|
);
|
|
4417
4431
|
function i(S) {
|
|
4418
|
-
l((
|
|
4419
|
-
...
|
|
4432
|
+
l((T) => ({
|
|
4433
|
+
...T,
|
|
4420
4434
|
rootState: S
|
|
4421
4435
|
}));
|
|
4422
4436
|
}
|
|
4423
|
-
const [r,
|
|
4437
|
+
const [r, a] = k(
|
|
4424
4438
|
() => [
|
|
4425
4439
|
...Be(),
|
|
4426
4440
|
...e.customComponents || []
|
|
4427
4441
|
].reduce(
|
|
4428
|
-
(S, { component:
|
|
4442
|
+
(S, { component: T, ...E }) => ({
|
|
4429
4443
|
...S,
|
|
4430
|
-
[
|
|
4431
|
-
component:
|
|
4432
|
-
...Ie(
|
|
4444
|
+
[E.name]: {
|
|
4445
|
+
component: T,
|
|
4446
|
+
...Ie(E)
|
|
4433
4447
|
}
|
|
4434
4448
|
}),
|
|
4435
4449
|
{}
|
|
4436
4450
|
)
|
|
4437
|
-
), [
|
|
4451
|
+
), [o, l] = k(() => ({
|
|
4438
4452
|
content: Bi({
|
|
4439
4453
|
content: e.content,
|
|
4440
4454
|
data: e.data
|
|
@@ -4454,9 +4468,9 @@ function De(e) {
|
|
|
4454
4468
|
...Be(),
|
|
4455
4469
|
...e.customComponents || []
|
|
4456
4470
|
].reduce(
|
|
4457
|
-
(S, { component:
|
|
4471
|
+
(S, { component: T, ...E }) => ({
|
|
4458
4472
|
...S,
|
|
4459
|
-
[
|
|
4473
|
+
[E.name]: Ie(E)
|
|
4460
4474
|
}),
|
|
4461
4475
|
{}
|
|
4462
4476
|
),
|
|
@@ -4465,19 +4479,19 @@ function De(e) {
|
|
|
4465
4479
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4466
4480
|
nonce: e.nonce || "",
|
|
4467
4481
|
model: e.model
|
|
4468
|
-
})), c =
|
|
4482
|
+
})), c = z(!1);
|
|
4469
4483
|
if (!c.current) {
|
|
4470
|
-
e.apiKey ||
|
|
4484
|
+
e.apiKey || ee.error(
|
|
4471
4485
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4472
4486
|
);
|
|
4473
|
-
const S = (
|
|
4474
|
-
S &&
|
|
4487
|
+
const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4488
|
+
S && Q({
|
|
4475
4489
|
code: S,
|
|
4476
4490
|
context: e.context || {},
|
|
4477
4491
|
localState: void 0,
|
|
4478
|
-
rootState:
|
|
4479
|
-
rootSetState: (
|
|
4480
|
-
Object.assign(
|
|
4492
|
+
rootState: o.rootState,
|
|
4493
|
+
rootSetState: (T) => {
|
|
4494
|
+
Object.assign(o.rootState, T);
|
|
4481
4495
|
},
|
|
4482
4496
|
isExpression: !1
|
|
4483
4497
|
}), c.current = !0;
|
|
@@ -4488,7 +4502,7 @@ function De(e) {
|
|
|
4488
4502
|
value: {
|
|
4489
4503
|
registeredComponents: r
|
|
4490
4504
|
},
|
|
4491
|
-
children: /* @__PURE__ */
|
|
4505
|
+
children: /* @__PURE__ */ D(
|
|
4492
4506
|
Pi,
|
|
4493
4507
|
{
|
|
4494
4508
|
apiHost: e.apiHost,
|
|
@@ -4502,7 +4516,7 @@ function De(e) {
|
|
|
4502
4516
|
locale: e.locale,
|
|
4503
4517
|
enrich: e.enrich,
|
|
4504
4518
|
showContent: e.showContent,
|
|
4505
|
-
builderContextSignal:
|
|
4519
|
+
builderContextSignal: o,
|
|
4506
4520
|
contentWrapper: e.contentWrapper,
|
|
4507
4521
|
contentWrapperProps: e.contentWrapperProps,
|
|
4508
4522
|
trustedHosts: e.trustedHosts,
|
|
@@ -4510,7 +4524,7 @@ function De(e) {
|
|
|
4510
4524
|
setBuilderContextSignal: l,
|
|
4511
4525
|
children: [
|
|
4512
4526
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4513
|
-
|
|
4527
|
+
K,
|
|
4514
4528
|
{
|
|
4515
4529
|
id: "builderio-variant-visibility",
|
|
4516
4530
|
scriptStr: t,
|
|
@@ -4522,16 +4536,16 @@ function De(e) {
|
|
|
4522
4536
|
{
|
|
4523
4537
|
nonce: e.nonce || "",
|
|
4524
4538
|
isNestedRender: e.isNestedRender,
|
|
4525
|
-
contentId: (
|
|
4526
|
-
cssCode: (
|
|
4527
|
-
customFonts: (
|
|
4539
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4540
|
+
cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4541
|
+
customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4528
4542
|
}
|
|
4529
4543
|
),
|
|
4530
4544
|
/* @__PURE__ */ s(
|
|
4531
|
-
|
|
4545
|
+
M,
|
|
4532
4546
|
{
|
|
4533
|
-
blocks: (
|
|
4534
|
-
context:
|
|
4547
|
+
blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4548
|
+
context: o,
|
|
4535
4549
|
registeredComponents: r,
|
|
4536
4550
|
linkComponent: e.linkComponent
|
|
4537
4551
|
}
|
|
@@ -4543,10 +4557,10 @@ function De(e) {
|
|
|
4543
4557
|
);
|
|
4544
4558
|
}
|
|
4545
4559
|
function Ni(e) {
|
|
4546
|
-
var
|
|
4547
|
-
const [t, n] =
|
|
4560
|
+
var o;
|
|
4561
|
+
const [t, n] = k(
|
|
4548
4562
|
() => fi({
|
|
4549
|
-
canTrack:
|
|
4563
|
+
canTrack: Z(e.canTrack),
|
|
4550
4564
|
content: e.content
|
|
4551
4565
|
})
|
|
4552
4566
|
);
|
|
@@ -4563,29 +4577,29 @@ function Ni(e) {
|
|
|
4563
4577
|
function r() {
|
|
4564
4578
|
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4565
4579
|
}
|
|
4566
|
-
function
|
|
4580
|
+
function a() {
|
|
4567
4581
|
var l;
|
|
4568
4582
|
return t ? {
|
|
4569
4583
|
...e.content,
|
|
4570
4584
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4571
4585
|
} : dt({
|
|
4572
4586
|
item: e.content,
|
|
4573
|
-
canTrack:
|
|
4587
|
+
canTrack: Z(e.canTrack)
|
|
4574
4588
|
});
|
|
4575
4589
|
}
|
|
4576
|
-
return
|
|
4577
|
-
}, []), /* @__PURE__ */
|
|
4578
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */
|
|
4590
|
+
return N(() => {
|
|
4591
|
+
}, []), /* @__PURE__ */ D(P, { children: [
|
|
4592
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
|
|
4579
4593
|
/* @__PURE__ */ s(
|
|
4580
|
-
|
|
4594
|
+
K,
|
|
4581
4595
|
{
|
|
4582
4596
|
id: "builderio-init-variants-fns",
|
|
4583
|
-
scriptStr:
|
|
4597
|
+
scriptStr: gi(),
|
|
4584
4598
|
nonce: e.nonce || ""
|
|
4585
4599
|
}
|
|
4586
4600
|
),
|
|
4587
4601
|
nt.includes(F) ? /* @__PURE__ */ s(
|
|
4588
|
-
|
|
4602
|
+
K,
|
|
4589
4603
|
{
|
|
4590
4604
|
id: "builderio-init-personalization-variants-fns",
|
|
4591
4605
|
nonce: e.nonce || "",
|
|
@@ -4593,9 +4607,9 @@ function Ni(e) {
|
|
|
4593
4607
|
}
|
|
4594
4608
|
) : null
|
|
4595
4609
|
] }) : null,
|
|
4596
|
-
t ? /* @__PURE__ */
|
|
4610
|
+
t ? /* @__PURE__ */ D(P, { children: [
|
|
4597
4611
|
/* @__PURE__ */ s(
|
|
4598
|
-
|
|
4612
|
+
te,
|
|
4599
4613
|
{
|
|
4600
4614
|
id: "builderio-variants",
|
|
4601
4615
|
styles: r(),
|
|
@@ -4603,14 +4617,14 @@ function Ni(e) {
|
|
|
4603
4617
|
}
|
|
4604
4618
|
),
|
|
4605
4619
|
/* @__PURE__ */ s(
|
|
4606
|
-
|
|
4620
|
+
K,
|
|
4607
4621
|
{
|
|
4608
4622
|
id: "builderio-variants-visibility",
|
|
4609
4623
|
scriptStr: i(),
|
|
4610
4624
|
nonce: e.nonce || ""
|
|
4611
4625
|
}
|
|
4612
4626
|
),
|
|
4613
|
-
(
|
|
4627
|
+
(o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4614
4628
|
De,
|
|
4615
4629
|
{
|
|
4616
4630
|
apiHost: e.apiHost,
|
|
@@ -4644,7 +4658,7 @@ function Ni(e) {
|
|
|
4644
4658
|
apiHost: e.apiHost,
|
|
4645
4659
|
nonce: e.nonce,
|
|
4646
4660
|
isNestedRender: e.isNestedRender,
|
|
4647
|
-
content:
|
|
4661
|
+
content: a(),
|
|
4648
4662
|
showContent: !0,
|
|
4649
4663
|
model: e.model,
|
|
4650
4664
|
data: e.data,
|
|
@@ -4672,7 +4686,7 @@ const $i = async ({
|
|
|
4672
4686
|
}) => {
|
|
4673
4687
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4674
4688
|
(e != null && e.apiKey))
|
|
4675
|
-
return
|
|
4689
|
+
return Le({
|
|
4676
4690
|
model: t.model,
|
|
4677
4691
|
apiKey: e.apiKey,
|
|
4678
4692
|
apiVersion: e.apiVersion,
|
|
@@ -4682,11 +4696,11 @@ const $i = async ({
|
|
|
4682
4696
|
}
|
|
4683
4697
|
}
|
|
4684
4698
|
}).catch((n) => {
|
|
4685
|
-
|
|
4699
|
+
ee.error("Could not fetch symbol content: ", n);
|
|
4686
4700
|
});
|
|
4687
4701
|
};
|
|
4688
4702
|
function Wi(e) {
|
|
4689
|
-
var
|
|
4703
|
+
var h, g, u, x, f;
|
|
4690
4704
|
function t() {
|
|
4691
4705
|
return "div";
|
|
4692
4706
|
}
|
|
@@ -4694,35 +4708,38 @@ function Wi(e) {
|
|
|
4694
4708
|
return "div";
|
|
4695
4709
|
}
|
|
4696
4710
|
function i() {
|
|
4697
|
-
|
|
4711
|
+
return Object.values(e.builderComponents);
|
|
4712
|
+
}
|
|
4713
|
+
function r() {
|
|
4714
|
+
var m, y;
|
|
4698
4715
|
return [
|
|
4699
|
-
e.attributes[
|
|
4716
|
+
e.attributes[J()],
|
|
4700
4717
|
"builder-symbol",
|
|
4701
|
-
(
|
|
4702
|
-
(
|
|
4718
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4719
|
+
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4703
4720
|
].filter(Boolean).join(" ");
|
|
4704
4721
|
}
|
|
4705
|
-
const [
|
|
4706
|
-
var
|
|
4707
|
-
return (
|
|
4708
|
-
}), [
|
|
4709
|
-
var
|
|
4710
|
-
return (
|
|
4722
|
+
const [a, o] = k(() => {
|
|
4723
|
+
var m;
|
|
4724
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4725
|
+
}), [l, c] = k(() => {
|
|
4726
|
+
var m;
|
|
4727
|
+
return (m = e.symbol) == null ? void 0 : m.entry;
|
|
4711
4728
|
});
|
|
4712
|
-
function
|
|
4713
|
-
var
|
|
4714
|
-
|
|
4729
|
+
function d() {
|
|
4730
|
+
var m;
|
|
4731
|
+
a && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
|
|
4715
4732
|
symbol: e.symbol,
|
|
4716
4733
|
builderContextValue: e.builderContext
|
|
4717
|
-
}).then((
|
|
4718
|
-
var
|
|
4719
|
-
|
|
4734
|
+
}).then((y) => {
|
|
4735
|
+
var b;
|
|
4736
|
+
y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
|
|
4720
4737
|
});
|
|
4721
4738
|
}
|
|
4722
|
-
return
|
|
4723
|
-
}, []),
|
|
4724
|
-
|
|
4725
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4739
|
+
return N(() => {
|
|
4740
|
+
}, []), N(() => {
|
|
4741
|
+
d();
|
|
4742
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4726
4743
|
Ni,
|
|
4727
4744
|
{
|
|
4728
4745
|
nonce: e.builderContext.nonce,
|
|
@@ -4731,17 +4748,17 @@ function Wi(e) {
|
|
|
4731
4748
|
apiKey: e.builderContext.apiKey,
|
|
4732
4749
|
context: {
|
|
4733
4750
|
...e.builderContext.context,
|
|
4734
|
-
symbolId: (
|
|
4751
|
+
symbolId: (h = e.builderBlock) == null ? void 0 : h.id
|
|
4735
4752
|
},
|
|
4736
|
-
customComponents:
|
|
4753
|
+
customComponents: i(),
|
|
4737
4754
|
data: {
|
|
4738
|
-
...(
|
|
4755
|
+
...(g = e.symbol) == null ? void 0 : g.data,
|
|
4739
4756
|
...e.builderContext.localState,
|
|
4740
|
-
...(
|
|
4757
|
+
...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
|
|
4741
4758
|
},
|
|
4742
4759
|
canTrack: e.builderContext.canTrack,
|
|
4743
|
-
model: (
|
|
4744
|
-
content:
|
|
4760
|
+
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4761
|
+
content: a,
|
|
4745
4762
|
linkComponent: e.builderLinkComponent,
|
|
4746
4763
|
blocksWrapper: t(),
|
|
4747
4764
|
contentWrapper: n()
|
|
@@ -4749,7 +4766,7 @@ function Wi(e) {
|
|
|
4749
4766
|
) });
|
|
4750
4767
|
}
|
|
4751
4768
|
export {
|
|
4752
|
-
|
|
4769
|
+
M as Blocks,
|
|
4753
4770
|
ve as BuilderContext,
|
|
4754
4771
|
St as Button,
|
|
4755
4772
|
cn as Columns,
|