@builder.io/sdk-react 3.0.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +1008 -962
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-75ce8600.cjs +2 -0
- package/lib/browser/server-entry-a2495a20.js +748 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-98d9699d.cjs → accordion-1c16f65e.cjs} +1 -1
- package/lib/edge/{accordion-19141399.js → accordion-c020e15b.js} +1 -1
- package/lib/edge/blocks-27ac5b23.js +3534 -0
- package/lib/edge/blocks-cd946d16.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +8 -7
- package/lib/edge/{button-a335b33d.js → button-5cdb4f26.js} +2 -2
- package/lib/edge/{button-90d3b8fd.cjs → button-8572fca5.cjs} +1 -1
- package/lib/edge/{columns-34eb4f77.js → columns-3ac1fa96.js} +5 -6
- package/lib/edge/columns-c8a9cb89.cjs +28 -0
- package/lib/edge/{content-variants-eb0b71da.js → content-variants-23c8eec6.js} +348 -344
- package/lib/edge/content-variants-caa23bf7.cjs +134 -0
- package/lib/edge/form-3d9bf265.cjs +1 -0
- package/lib/edge/{form-f468b835.js → form-7fc5691b.js} +14 -15
- package/lib/edge/{get-class-prop-name-f431302d.cjs → get-class-prop-name-29fd576a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-79a17608.js → get-class-prop-name-a4845b04.js} +1 -1
- package/lib/edge/{image-6970c193.js → image-5c9e156f.js} +28 -28
- package/lib/edge/image-94922c87.cjs +17 -0
- package/lib/edge/{img-da07f7ae.cjs → img-102acaa2.cjs} +1 -1
- package/lib/edge/{img-0d66e9e1.js → img-388698cb.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-f7f73607.cjs → input-10e350a9.cjs} +1 -1
- package/lib/edge/{input-5962ba3b.js → input-5484e9e7.js} +1 -1
- package/lib/edge/{select-74305b69.js → select-b8406bcf.js} +1 -1
- package/lib/edge/{select-1f1bb9a6.cjs → select-f11be7a7.cjs} +1 -1
- package/lib/edge/server-entry-1879cbc4.cjs +2 -0
- package/lib/edge/server-entry-7ce03a4e.js +746 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-ad2d5248.js → slot-23f75377.js} +5 -6
- package/lib/edge/slot-4ab390ec.cjs +1 -0
- package/lib/edge/{symbol-70bb59b7.js → symbol-2eafb4e0.js} +2 -2
- package/lib/edge/{symbol-5baac842.cjs → symbol-fa343d77.cjs} +1 -1
- package/lib/edge/{tabs-0244ee23.js → tabs-4c9c64f6.js} +15 -16
- package/lib/edge/tabs-7d258d82.cjs +1 -0
- package/lib/edge/text-5915f038.js +17 -0
- package/lib/edge/text-e6dbb721.cjs +1 -0
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +903 -857
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-2b263dde.js +749 -0
- package/lib/node/server-entry-ec330556.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-97b6edac.cjs → setIvm-1e6f0b60.cjs} +1 -1
- package/lib/node/{setIvm-bcada801.js → setIvm-7eb67cd6.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-16d6b365.cjs → should-force-browser-runtime-in-node-23218b19.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-f1c78223.js → should-force-browser-runtime-in-node-cdae9360.js} +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +6 -3
- package/types/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/types/constants/file-types.d.ts +2 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/functions/extract-localized-values.d.ts +2 -0
- package/types/functions/get-block-component-options.d.ts +2 -1
- package/types/functions/get-processed-block.d.ts +1 -6
- package/types/functions/traverse.d.ts +34 -0
- package/types/helpers/flatten.d.ts +6 -0
- package/types/server-index.d.ts +1 -1
- package/types/types/components.d.ts +3 -0
- package/lib/browser/server-entry-52c69986.js +0 -717
- package/lib/browser/server-entry-f3c2ac77.cjs +0 -2
- package/lib/edge/blocks-672d29ca.cjs +0 -12
- package/lib/edge/blocks-7299cf1f.js +0 -870
- package/lib/edge/columns-96859531.cjs +0 -28
- package/lib/edge/content-variants-30e475b2.cjs +0 -134
- package/lib/edge/evaluate-0793c18a.js +0 -2612
- package/lib/edge/evaluate-84062c52.cjs +0 -19
- package/lib/edge/form-99fe0879.cjs +0 -1
- package/lib/edge/image-54d2f755.cjs +0 -17
- package/lib/edge/server-entry-4f813956.cjs +0 -2
- package/lib/edge/server-entry-c793e7d2.js +0 -715
- package/lib/edge/slot-0add1d03.cjs +0 -1
- package/lib/edge/tabs-a4146223.cjs +0 -1
- package/lib/edge/text-214ed248.cjs +0 -1
- package/lib/edge/text-2e3cf22b.js +0 -37
- package/lib/node/server-entry-60acf7c6.js +0 -718
- package/lib/node/server-entry-e3ec26c9.cjs +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as
|
|
4
|
-
import { createContext as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as l, Fragment as T, jsxs as N } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isEditing as W, isBrowser as D, getUserAttributes as ze, checkIsDefined as z, logger as G, isPreviewing as ae, logFetch as Ie, registerInsertMenu as Ke, setupBrowserForEditing as Je, createRegisterComponentMessage as Ge, getDefaultCanTrack as K, _track as ue, fetchOneEntry as we, createEditorListener as Ye, serializeIncludingFunctions as me, handleABTestingSync as Qe } from "./server-entry-a2495a20.js";
|
|
4
|
+
import { createContext as Ee, useEffect as A, useState as E, useRef as O, useContext as fe, createElement as Re } from "react";
|
|
5
|
+
const Xe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ze = (e) => typeof e == "string" && Xe.has(e.toLowerCase());
|
|
6
|
+
function re(e) {
|
|
7
|
+
return /* @__PURE__ */ l(T, { children: Ze(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
8
8
|
}
|
|
9
9
|
const H = () => {
|
|
10
|
-
switch (
|
|
10
|
+
switch ($) {
|
|
11
11
|
case "react":
|
|
12
12
|
case "reactNative":
|
|
13
13
|
case "rsc":
|
|
@@ -20,7 +20,7 @@ const H = () => {
|
|
|
20
20
|
return "class";
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function et(e) {
|
|
24
24
|
function t() {
|
|
25
25
|
return {
|
|
26
26
|
...e.attributes,
|
|
@@ -34,8 +34,8 @@ function Ge(e) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ l(
|
|
38
|
+
re,
|
|
39
39
|
{
|
|
40
40
|
attributes: t(),
|
|
41
41
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -44,7 +44,7 @@ function Ge(e) {
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const le = Ee({
|
|
48
48
|
content: null,
|
|
49
49
|
context: {},
|
|
50
50
|
localState: void 0,
|
|
@@ -57,25 +57,12 @@ const ae = Te({
|
|
|
57
57
|
inheritedStyles: {},
|
|
58
58
|
BlocksWrapper: "div",
|
|
59
59
|
BlocksWrapperProps: {},
|
|
60
|
-
nonce: ""
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
66
|
-
...e.options
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function Qe(e, ...t) {
|
|
70
|
-
const n = Object.assign({}, e);
|
|
71
|
-
for (const i of t)
|
|
72
|
-
delete n[i];
|
|
73
|
-
return n;
|
|
74
|
-
}
|
|
75
|
-
const Ee = (e, t, n) => {
|
|
76
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
60
|
+
nonce: "",
|
|
61
|
+
model: ""
|
|
62
|
+
}), Pe = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
63
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
77
64
|
return i === void 0 || i === e ? n : i;
|
|
78
|
-
},
|
|
65
|
+
}, tt = ({
|
|
79
66
|
builder: e,
|
|
80
67
|
context: t,
|
|
81
68
|
event: n,
|
|
@@ -87,15 +74,15 @@ const Ee = (e, t, n) => {
|
|
|
87
74
|
builder: e,
|
|
88
75
|
context: t,
|
|
89
76
|
event: n
|
|
90
|
-
}),
|
|
77
|
+
}), nt = () => ({
|
|
91
78
|
isEditing: W(),
|
|
92
|
-
isBrowser:
|
|
93
|
-
isServer: !
|
|
94
|
-
getUserAttributes: () =>
|
|
95
|
-
}),
|
|
79
|
+
isBrowser: D(),
|
|
80
|
+
isServer: !D(),
|
|
81
|
+
getUserAttributes: () => ze()
|
|
82
|
+
}), it = (e, {
|
|
96
83
|
isExpression: t = !0
|
|
97
84
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
98
|
-
function
|
|
85
|
+
function Ve({
|
|
99
86
|
rootState: e,
|
|
100
87
|
localState: t,
|
|
101
88
|
rootSetState: n
|
|
@@ -104,119 +91,188 @@ function Re({
|
|
|
104
91
|
get: (i, o) => {
|
|
105
92
|
if (t && o in t)
|
|
106
93
|
return t[o];
|
|
107
|
-
const
|
|
108
|
-
return typeof
|
|
109
|
-
rootState:
|
|
94
|
+
const a = i[o];
|
|
95
|
+
return typeof a == "object" && a !== null ? Ve({
|
|
96
|
+
rootState: a,
|
|
110
97
|
localState: void 0,
|
|
111
|
-
rootSetState: n ? (
|
|
112
|
-
i[o] =
|
|
98
|
+
rootSetState: n ? (r) => {
|
|
99
|
+
i[o] = r, n(i);
|
|
113
100
|
} : void 0
|
|
114
|
-
}) :
|
|
101
|
+
}) : a;
|
|
115
102
|
},
|
|
116
|
-
set: (i, o,
|
|
103
|
+
set: (i, o, a) => {
|
|
117
104
|
if (t && o in t)
|
|
118
105
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
119
|
-
return i[o] =
|
|
106
|
+
return i[o] = a, n == null || n(i), !0;
|
|
120
107
|
}
|
|
121
108
|
});
|
|
122
109
|
}
|
|
123
|
-
const
|
|
110
|
+
const he = ({
|
|
124
111
|
code: e,
|
|
125
112
|
builder: t,
|
|
126
113
|
context: n,
|
|
127
114
|
event: i,
|
|
128
115
|
localState: o,
|
|
129
|
-
rootSetState:
|
|
130
|
-
rootState:
|
|
116
|
+
rootSetState: a,
|
|
117
|
+
rootState: r
|
|
131
118
|
}) => {
|
|
132
|
-
const
|
|
119
|
+
const s = tt({
|
|
133
120
|
builder: t,
|
|
134
121
|
context: n,
|
|
135
122
|
event: i,
|
|
136
|
-
state:
|
|
137
|
-
rootState:
|
|
123
|
+
state: Ve({
|
|
124
|
+
rootState: r,
|
|
138
125
|
localState: o,
|
|
139
|
-
rootSetState:
|
|
126
|
+
rootSetState: a
|
|
140
127
|
})
|
|
141
128
|
});
|
|
142
|
-
return new Function(...
|
|
129
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
143
130
|
};
|
|
144
|
-
function
|
|
131
|
+
function ot() {
|
|
145
132
|
var e;
|
|
146
|
-
return typeof process != "undefined" &&
|
|
133
|
+
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
147
134
|
}
|
|
148
|
-
const
|
|
135
|
+
const at = ({
|
|
149
136
|
shouldLogWarning: e
|
|
150
137
|
}) => {
|
|
151
138
|
var o;
|
|
152
|
-
if (!
|
|
139
|
+
if (!ot())
|
|
153
140
|
return !1;
|
|
154
141
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
155
|
-
return t && n && !i ? (e &&
|
|
156
|
-
},
|
|
142
|
+
return t && n && !i ? (e && G.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
143
|
+
}, rt = (e) => (D() || at({
|
|
157
144
|
shouldLogWarning: !0
|
|
158
|
-
}),
|
|
159
|
-
var t, n, i, o,
|
|
160
|
-
return ((i = (n = (t =
|
|
145
|
+
}), he(e)), lt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, st = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ct = (e) => {
|
|
146
|
+
var t, n, i, o, a, r;
|
|
147
|
+
return ((i = (n = (t = lt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (a = (o = st.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
161
148
|
};
|
|
162
|
-
function
|
|
149
|
+
function U({
|
|
163
150
|
code: e,
|
|
164
151
|
context: t,
|
|
165
152
|
localState: n,
|
|
166
153
|
rootState: i,
|
|
167
154
|
rootSetState: o,
|
|
168
|
-
event:
|
|
169
|
-
isExpression:
|
|
155
|
+
event: a,
|
|
156
|
+
isExpression: r = !0
|
|
170
157
|
}) {
|
|
171
158
|
if (e.trim() === "")
|
|
172
159
|
return;
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
160
|
+
const s = ct(e.trim());
|
|
161
|
+
if (s)
|
|
162
|
+
return Be({
|
|
176
163
|
...i,
|
|
177
164
|
...n
|
|
178
|
-
},
|
|
165
|
+
}, s);
|
|
179
166
|
const d = {
|
|
180
|
-
code:
|
|
181
|
-
isExpression:
|
|
167
|
+
code: it(e, {
|
|
168
|
+
isExpression: r
|
|
182
169
|
}),
|
|
183
|
-
builder:
|
|
170
|
+
builder: nt(),
|
|
184
171
|
context: t,
|
|
185
|
-
event:
|
|
172
|
+
event: a,
|
|
186
173
|
rootSetState: o,
|
|
187
174
|
rootState: i,
|
|
188
175
|
localState: n
|
|
189
176
|
};
|
|
190
177
|
try {
|
|
191
|
-
return
|
|
178
|
+
return rt(d);
|
|
192
179
|
} catch (c) {
|
|
193
|
-
|
|
180
|
+
G.error("Failed code evaluation: " + c.message, {
|
|
194
181
|
code: e
|
|
195
182
|
});
|
|
196
183
|
return;
|
|
197
184
|
}
|
|
198
185
|
}
|
|
199
|
-
|
|
186
|
+
function dt(e, t) {
|
|
187
|
+
var n;
|
|
188
|
+
return {
|
|
189
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
190
|
+
...e.options,
|
|
191
|
+
...ut(e, t)
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
const ut = (e, t) => {
|
|
195
|
+
var n, i;
|
|
196
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
197
|
+
return {
|
|
198
|
+
...e.component.options,
|
|
199
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => U({
|
|
200
|
+
code: a,
|
|
201
|
+
context: t,
|
|
202
|
+
localState: t.localState,
|
|
203
|
+
rootState: t.rootState,
|
|
204
|
+
rootSetState: t.rootSetState
|
|
205
|
+
}))
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
function mt(e, ...t) {
|
|
209
|
+
const n = Object.assign({}, e);
|
|
210
|
+
for (const i of t)
|
|
211
|
+
delete n[i];
|
|
212
|
+
return n;
|
|
213
|
+
}
|
|
214
|
+
function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
215
|
+
if (e == null || typeof e != "object") {
|
|
216
|
+
t(e, (a) => {
|
|
217
|
+
n !== null && i !== null && (n[i] = a);
|
|
218
|
+
});
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
222
|
+
t(a, (d) => {
|
|
223
|
+
e[r] = d;
|
|
224
|
+
}), J(a, t, e, r, o);
|
|
225
|
+
}) : Object.entries(e).forEach(([a, r]) => {
|
|
226
|
+
t(r, (d) => {
|
|
227
|
+
e[a] = d;
|
|
228
|
+
}), J(r, t, e, a, o);
|
|
229
|
+
}));
|
|
230
|
+
}
|
|
231
|
+
function Ae(e) {
|
|
232
|
+
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
233
|
+
}
|
|
234
|
+
function ft(e) {
|
|
235
|
+
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
236
|
+
return !1;
|
|
237
|
+
let t = !1;
|
|
238
|
+
return J(e, (n) => {
|
|
239
|
+
if (Ae(n)) {
|
|
240
|
+
t = !0;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
}), t;
|
|
244
|
+
}
|
|
245
|
+
function ht(e, t) {
|
|
246
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
247
|
+
var o;
|
|
248
|
+
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
249
|
+
}), e);
|
|
250
|
+
}
|
|
251
|
+
function gt(e, t) {
|
|
252
|
+
var n, i;
|
|
253
|
+
return (n = e.component) != null && n.options && ft((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 = ht(e.component.options, t != null ? t : "Default")), e;
|
|
254
|
+
}
|
|
255
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
|
|
200
256
|
if (Object(e) !== e)
|
|
201
257
|
return e;
|
|
202
258
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
203
|
-
return i.slice(0, -1).reduce((o,
|
|
259
|
+
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
204
260
|
};
|
|
205
|
-
function
|
|
261
|
+
function ie(e) {
|
|
206
262
|
if (e === null || typeof e != "object")
|
|
207
263
|
return e;
|
|
208
264
|
if (Array.isArray(e))
|
|
209
|
-
return e.map((n) =>
|
|
265
|
+
return e.map((n) => ie(n));
|
|
210
266
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
211
267
|
return e;
|
|
212
268
|
const t = {};
|
|
213
269
|
for (const n in e)
|
|
214
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
270
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
215
271
|
return t;
|
|
216
272
|
}
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
const t =
|
|
273
|
+
const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
|
|
274
|
+
if (bt) {
|
|
275
|
+
const t = se(e);
|
|
220
276
|
return {
|
|
221
277
|
...t,
|
|
222
278
|
properties: {
|
|
@@ -227,7 +283,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
|
|
|
227
283
|
}
|
|
228
284
|
};
|
|
229
285
|
} else {
|
|
230
|
-
const t =
|
|
286
|
+
const t = ie(mt(e, "children", "meta"));
|
|
231
287
|
return {
|
|
232
288
|
...t,
|
|
233
289
|
properties: {
|
|
@@ -240,7 +296,7 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
|
|
|
240
296
|
meta: e.meta
|
|
241
297
|
};
|
|
242
298
|
}
|
|
243
|
-
},
|
|
299
|
+
}, yt = ({
|
|
244
300
|
block: e,
|
|
245
301
|
context: t,
|
|
246
302
|
localState: n,
|
|
@@ -249,171 +305,170 @@ const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) =
|
|
|
249
305
|
}) => {
|
|
250
306
|
if (!e.bindings)
|
|
251
307
|
return e;
|
|
252
|
-
const
|
|
253
|
-
for (const
|
|
254
|
-
const
|
|
255
|
-
code:
|
|
308
|
+
const a = pt(e);
|
|
309
|
+
for (const r in e.bindings) {
|
|
310
|
+
const s = e.bindings[r], d = U({
|
|
311
|
+
code: s,
|
|
256
312
|
localState: n,
|
|
257
313
|
rootState: i,
|
|
258
314
|
rootSetState: o,
|
|
259
315
|
context: t
|
|
260
316
|
});
|
|
261
|
-
|
|
317
|
+
Ne(a, r, d);
|
|
262
318
|
}
|
|
263
|
-
return
|
|
319
|
+
return a;
|
|
264
320
|
};
|
|
265
|
-
function
|
|
321
|
+
function xt({
|
|
266
322
|
block: e,
|
|
267
323
|
context: t,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
rootSetState: r
|
|
324
|
+
localState: n,
|
|
325
|
+
rootState: i,
|
|
326
|
+
rootSetState: o
|
|
272
327
|
}) {
|
|
273
|
-
|
|
274
|
-
return
|
|
328
|
+
let a = gt(e, i.locale);
|
|
329
|
+
return a = a, yt({
|
|
275
330
|
block: a,
|
|
276
|
-
localState:
|
|
277
|
-
rootState:
|
|
278
|
-
rootSetState:
|
|
331
|
+
localState: n,
|
|
332
|
+
rootState: i,
|
|
333
|
+
rootSetState: o,
|
|
279
334
|
context: t
|
|
280
|
-
})
|
|
335
|
+
});
|
|
281
336
|
}
|
|
282
|
-
const
|
|
283
|
-
function
|
|
284
|
-
let i, o,
|
|
337
|
+
const Y = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
338
|
+
function vt(e, t, n = {}) {
|
|
339
|
+
let i, o, a, r = null, s = 0;
|
|
285
340
|
const d = function() {
|
|
286
|
-
|
|
341
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
287
342
|
};
|
|
288
343
|
return function() {
|
|
289
344
|
const c = Date.now();
|
|
290
|
-
!
|
|
291
|
-
const h = t - (c -
|
|
292
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
345
|
+
!s && n.leading === !1 && (s = c);
|
|
346
|
+
const h = t - (c - s);
|
|
347
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), a;
|
|
293
348
|
};
|
|
294
349
|
}
|
|
295
|
-
function
|
|
350
|
+
function _(e, ...t) {
|
|
296
351
|
const n = Object(e);
|
|
297
352
|
for (let i = 1; i < arguments.length; i++) {
|
|
298
353
|
const o = arguments[i];
|
|
299
354
|
if (o != null)
|
|
300
|
-
for (const
|
|
301
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
355
|
+
for (const a in o)
|
|
356
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
302
357
|
}
|
|
303
358
|
return n;
|
|
304
359
|
}
|
|
305
|
-
function
|
|
360
|
+
function St(e) {
|
|
306
361
|
for (const t of e)
|
|
307
362
|
switch (t.trigger) {
|
|
308
363
|
case "pageLoad":
|
|
309
|
-
|
|
364
|
+
$e(t);
|
|
310
365
|
break;
|
|
311
366
|
case "scrollInView":
|
|
312
|
-
|
|
367
|
+
Ct(t);
|
|
313
368
|
break;
|
|
314
369
|
}
|
|
315
370
|
}
|
|
316
|
-
function
|
|
371
|
+
function We(e) {
|
|
317
372
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
318
373
|
}
|
|
319
|
-
function
|
|
320
|
-
const n =
|
|
321
|
-
for (const
|
|
374
|
+
function Fe(e, t) {
|
|
375
|
+
const n = kt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
376
|
+
for (const s of r)
|
|
322
377
|
for (const d of n)
|
|
323
|
-
d in
|
|
378
|
+
d in s || (s[d] = i[d]);
|
|
324
379
|
}
|
|
325
|
-
function
|
|
380
|
+
function kt(e) {
|
|
326
381
|
const t = [];
|
|
327
382
|
for (const n of e.steps)
|
|
328
383
|
for (const i in n.styles)
|
|
329
384
|
t.indexOf(i) === -1 && t.push(i);
|
|
330
385
|
return t;
|
|
331
386
|
}
|
|
332
|
-
function
|
|
387
|
+
function $e(e) {
|
|
333
388
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
334
389
|
if (!t.length) {
|
|
335
|
-
|
|
390
|
+
We(e.elementId || e.id || "");
|
|
336
391
|
return;
|
|
337
392
|
}
|
|
338
393
|
Array.from(t).forEach((n) => {
|
|
339
|
-
|
|
340
|
-
n.style.transition = `all ${e.duration}s ${
|
|
394
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
395
|
+
n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
341
396
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
342
397
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
343
398
|
});
|
|
344
399
|
});
|
|
345
400
|
}
|
|
346
|
-
function
|
|
401
|
+
function Ct(e) {
|
|
347
402
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
348
403
|
if (!t.length) {
|
|
349
|
-
|
|
404
|
+
We(e.elementId || e.id || "");
|
|
350
405
|
return;
|
|
351
406
|
}
|
|
352
407
|
Array.from(t).forEach((n) => {
|
|
353
|
-
|
|
408
|
+
Fe(e, n);
|
|
354
409
|
let i = !1, o = !1;
|
|
355
|
-
function
|
|
356
|
-
!i &&
|
|
357
|
-
|
|
410
|
+
function a() {
|
|
411
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
412
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
358
413
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
359
414
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
360
|
-
})) : e.repeat && i && !o && !
|
|
415
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, _(n.style, e.steps[0].styles));
|
|
361
416
|
}
|
|
362
|
-
const
|
|
417
|
+
const r = vt(a, 200, {
|
|
363
418
|
leading: !1
|
|
364
419
|
});
|
|
365
|
-
function
|
|
420
|
+
function s(h) {
|
|
366
421
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
367
422
|
return g.bottom > f && g.top < m - f;
|
|
368
423
|
}
|
|
369
424
|
const d = e.steps[0].styles;
|
|
370
425
|
function c() {
|
|
371
|
-
|
|
426
|
+
_(n.style, d);
|
|
372
427
|
}
|
|
373
428
|
c(), setTimeout(() => {
|
|
374
|
-
n.style.transition = `all ${e.duration}s ${
|
|
375
|
-
}), document.addEventListener("scroll",
|
|
429
|
+
n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
430
|
+
}), document.addEventListener("scroll", r, {
|
|
376
431
|
capture: !0,
|
|
377
432
|
passive: !0
|
|
378
|
-
}),
|
|
433
|
+
}), a();
|
|
379
434
|
});
|
|
380
435
|
}
|
|
381
|
-
const
|
|
436
|
+
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
382
437
|
if (typeof i == "string")
|
|
383
|
-
return `${
|
|
384
|
-
}).filter(
|
|
385
|
-
`),
|
|
438
|
+
return `${Y(n)}: ${i};`;
|
|
439
|
+
}).filter(z), Tt = (e) => Le(e).join(`
|
|
440
|
+
`), j = ({
|
|
386
441
|
mediaQuery: e,
|
|
387
442
|
className: t,
|
|
388
443
|
styles: n
|
|
389
444
|
}) => {
|
|
390
445
|
const i = `.${t} {
|
|
391
|
-
${
|
|
446
|
+
${Tt(n)}
|
|
392
447
|
}`;
|
|
393
448
|
return e ? `${e} {
|
|
394
449
|
${i}
|
|
395
450
|
}` : i;
|
|
396
451
|
};
|
|
397
|
-
function
|
|
452
|
+
function It({
|
|
398
453
|
style: e
|
|
399
454
|
}) {
|
|
400
455
|
return e;
|
|
401
456
|
}
|
|
402
|
-
const
|
|
457
|
+
const wt = ({
|
|
403
458
|
block: e,
|
|
404
459
|
context: t
|
|
405
|
-
}) =>
|
|
460
|
+
}) => Oe(It({
|
|
406
461
|
style: e.style || {},
|
|
407
462
|
context: t,
|
|
408
463
|
block: e
|
|
409
464
|
}));
|
|
410
|
-
function
|
|
411
|
-
switch (
|
|
465
|
+
function Oe(e) {
|
|
466
|
+
switch ($) {
|
|
412
467
|
case "svelte":
|
|
413
468
|
case "vue":
|
|
414
469
|
case "solid":
|
|
415
470
|
case "angular":
|
|
416
|
-
return
|
|
471
|
+
return Le(e).join(" ");
|
|
417
472
|
case "qwik":
|
|
418
473
|
case "reactNative":
|
|
419
474
|
case "react":
|
|
@@ -421,21 +476,24 @@ function We(e) {
|
|
|
421
476
|
return e;
|
|
422
477
|
}
|
|
423
478
|
}
|
|
424
|
-
const
|
|
479
|
+
const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
|
|
425
480
|
block: e,
|
|
426
|
-
registeredComponents: t
|
|
481
|
+
registeredComponents: t,
|
|
482
|
+
model: n
|
|
427
483
|
}) => {
|
|
428
|
-
var
|
|
429
|
-
const
|
|
430
|
-
if (!
|
|
484
|
+
var a;
|
|
485
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
486
|
+
if (!i)
|
|
431
487
|
return null;
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
Could not find a registered component named "${n}".
|
|
488
|
+
const o = t[i];
|
|
489
|
+
if (!o || De(o, n)) {
|
|
490
|
+
console.warn(`
|
|
491
|
+
Could not find a registered component named "${i}".
|
|
437
492
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
438
|
-
|
|
493
|
+
return;
|
|
494
|
+
} else
|
|
495
|
+
return o;
|
|
496
|
+
}, Rt = ({
|
|
439
497
|
block: e,
|
|
440
498
|
context: t
|
|
441
499
|
}) => {
|
|
@@ -445,7 +503,7 @@ const yt = ({
|
|
|
445
503
|
} = e;
|
|
446
504
|
if (!(n != null && n.collection))
|
|
447
505
|
return;
|
|
448
|
-
const o =
|
|
506
|
+
const o = U({
|
|
449
507
|
code: n.collection,
|
|
450
508
|
localState: t.localState,
|
|
451
509
|
rootState: t.rootState,
|
|
@@ -454,7 +512,7 @@ const yt = ({
|
|
|
454
512
|
});
|
|
455
513
|
if (!Array.isArray(o))
|
|
456
514
|
return;
|
|
457
|
-
const
|
|
515
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
458
516
|
return o.map((d, c) => ({
|
|
459
517
|
context: {
|
|
460
518
|
...t,
|
|
@@ -462,33 +520,33 @@ const yt = ({
|
|
|
462
520
|
...t.localState,
|
|
463
521
|
$index: c,
|
|
464
522
|
$item: d,
|
|
465
|
-
[
|
|
466
|
-
[`$${
|
|
523
|
+
[r]: d,
|
|
524
|
+
[`$${r}Index`]: c
|
|
467
525
|
}
|
|
468
526
|
},
|
|
469
527
|
block: i
|
|
470
528
|
}));
|
|
471
|
-
},
|
|
529
|
+
}, Pt = (e, t) => {
|
|
472
530
|
var n;
|
|
473
531
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
474
532
|
builderLinkComponent: t
|
|
475
533
|
} : {};
|
|
476
|
-
},
|
|
477
|
-
var
|
|
478
|
-
return (
|
|
479
|
-
builderComponents: t
|
|
534
|
+
}, Bt = (e, t, n) => {
|
|
535
|
+
var i;
|
|
536
|
+
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
537
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !De(r, n)))
|
|
480
538
|
} : {};
|
|
481
|
-
},
|
|
539
|
+
}, Vt = (e, t) => {
|
|
482
540
|
var n;
|
|
483
541
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
484
542
|
builderBlock: t
|
|
485
543
|
} : {};
|
|
486
|
-
},
|
|
544
|
+
}, At = (e, t) => {
|
|
487
545
|
var n;
|
|
488
546
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
489
547
|
builderContext: t
|
|
490
548
|
} : {};
|
|
491
|
-
},
|
|
549
|
+
}, Ue = {
|
|
492
550
|
small: {
|
|
493
551
|
min: 320,
|
|
494
552
|
default: 321,
|
|
@@ -504,11 +562,11 @@ const yt = ({
|
|
|
504
562
|
default: 991,
|
|
505
563
|
max: 1200
|
|
506
564
|
}
|
|
507
|
-
},
|
|
565
|
+
}, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = ({
|
|
508
566
|
small: e,
|
|
509
567
|
medium: t
|
|
510
568
|
}) => {
|
|
511
|
-
const n =
|
|
569
|
+
const n = se(Ue);
|
|
512
570
|
if (!e || !t)
|
|
513
571
|
return n;
|
|
514
572
|
const i = Math.floor(e / 2);
|
|
@@ -523,16 +581,16 @@ const yt = ({
|
|
|
523
581
|
min: o,
|
|
524
582
|
default: o + 1
|
|
525
583
|
};
|
|
526
|
-
const
|
|
584
|
+
const a = n.medium.max + 1;
|
|
527
585
|
return n.large = {
|
|
528
586
|
max: 2e3,
|
|
529
587
|
// TODO: decide upper limit
|
|
530
|
-
min:
|
|
531
|
-
default:
|
|
588
|
+
min: a,
|
|
589
|
+
default: a + 1
|
|
532
590
|
}, n;
|
|
533
591
|
};
|
|
534
|
-
function
|
|
535
|
-
return /* @__PURE__ */
|
|
592
|
+
function Q(e) {
|
|
593
|
+
return /* @__PURE__ */ l(
|
|
536
594
|
"style",
|
|
537
595
|
{
|
|
538
596
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -541,44 +599,44 @@ function Y(e) {
|
|
|
541
599
|
}
|
|
542
600
|
);
|
|
543
601
|
}
|
|
544
|
-
function
|
|
602
|
+
function Nt(e) {
|
|
545
603
|
function t() {
|
|
546
604
|
const i = e.block;
|
|
547
|
-
return
|
|
605
|
+
return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
|
|
548
606
|
}
|
|
549
607
|
function n() {
|
|
550
|
-
var
|
|
551
|
-
const i = e.block, o = i.responsiveStyles,
|
|
552
|
-
((
|
|
553
|
-
),
|
|
608
|
+
var x, b, p;
|
|
609
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = _e(
|
|
610
|
+
((x = a == null ? void 0 : a.meta) == null ? void 0 : x.breakpoints) || {}
|
|
611
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
554
612
|
if (!h)
|
|
555
613
|
return "";
|
|
556
|
-
const g =
|
|
614
|
+
const g = s ? j({
|
|
557
615
|
className: h,
|
|
558
|
-
styles:
|
|
559
|
-
}) : "", m = d ?
|
|
616
|
+
styles: s
|
|
617
|
+
}) : "", m = d ? j({
|
|
560
618
|
className: h,
|
|
561
619
|
styles: d,
|
|
562
|
-
mediaQuery:
|
|
620
|
+
mediaQuery: ge(
|
|
563
621
|
"medium",
|
|
564
|
-
|
|
622
|
+
r
|
|
565
623
|
)
|
|
566
|
-
}) : "",
|
|
624
|
+
}) : "", y = c ? j({
|
|
567
625
|
className: h,
|
|
568
626
|
styles: c,
|
|
569
|
-
mediaQuery:
|
|
627
|
+
mediaQuery: ge(
|
|
570
628
|
"small",
|
|
571
|
-
|
|
629
|
+
r
|
|
572
630
|
)
|
|
573
|
-
}) : "", f = i.animations && i.animations.find((
|
|
574
|
-
let
|
|
631
|
+
}) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
|
|
632
|
+
let v = "";
|
|
575
633
|
if (f) {
|
|
576
|
-
const
|
|
577
|
-
|
|
634
|
+
const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
|
|
635
|
+
v = j({
|
|
578
636
|
className: `${h}:hover`,
|
|
579
637
|
styles: {
|
|
580
|
-
...
|
|
581
|
-
transition: `all ${f.duration}s ${
|
|
638
|
+
...C,
|
|
639
|
+
transition: `all ${f.duration}s ${Y(
|
|
582
640
|
f.easing
|
|
583
641
|
)}`,
|
|
584
642
|
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
@@ -588,12 +646,12 @@ function Tt(e) {
|
|
|
588
646
|
return [
|
|
589
647
|
g,
|
|
590
648
|
m,
|
|
591
|
-
|
|
592
|
-
|
|
649
|
+
y,
|
|
650
|
+
v
|
|
593
651
|
].join(" ");
|
|
594
652
|
}
|
|
595
|
-
return /* @__PURE__ */
|
|
596
|
-
|
|
653
|
+
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
654
|
+
Q,
|
|
597
655
|
{
|
|
598
656
|
id: "builderio-block",
|
|
599
657
|
styles: n(),
|
|
@@ -601,10 +659,10 @@ function Tt(e) {
|
|
|
601
659
|
}
|
|
602
660
|
) }) : null });
|
|
603
661
|
}
|
|
604
|
-
function
|
|
662
|
+
function Wt(e) {
|
|
605
663
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
606
664
|
}
|
|
607
|
-
const
|
|
665
|
+
const Ft = (e) => `on${Wt(e)}`, $t = (e, t) => (n) => U({
|
|
608
666
|
code: e,
|
|
609
667
|
context: t.context,
|
|
610
668
|
localState: t.localState,
|
|
@@ -613,66 +671,66 @@ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => O({
|
|
|
613
671
|
event: n,
|
|
614
672
|
isExpression: !1
|
|
615
673
|
});
|
|
616
|
-
function
|
|
674
|
+
function He(e) {
|
|
617
675
|
var i;
|
|
618
676
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
619
677
|
for (const o in n) {
|
|
620
678
|
if (!n.hasOwnProperty(o))
|
|
621
679
|
continue;
|
|
622
|
-
const
|
|
623
|
-
let
|
|
680
|
+
const a = n[o];
|
|
681
|
+
let r = Ft(o);
|
|
624
682
|
if (e.stripPrefix)
|
|
625
|
-
switch (
|
|
683
|
+
switch ($) {
|
|
626
684
|
case "vue":
|
|
627
|
-
|
|
685
|
+
r = r.replace("v-on:", "");
|
|
628
686
|
break;
|
|
629
687
|
case "svelte":
|
|
630
|
-
|
|
688
|
+
r = r.replace("on:", "");
|
|
631
689
|
break;
|
|
632
690
|
}
|
|
633
|
-
t[
|
|
691
|
+
t[r] = $t(a, e);
|
|
634
692
|
}
|
|
635
693
|
return t;
|
|
636
694
|
}
|
|
637
|
-
function
|
|
695
|
+
function Lt({
|
|
638
696
|
properties: e
|
|
639
697
|
}) {
|
|
640
698
|
return e;
|
|
641
699
|
}
|
|
642
|
-
const
|
|
700
|
+
const Ot = (e) => ({
|
|
643
701
|
href: e.href
|
|
644
702
|
});
|
|
645
|
-
function
|
|
703
|
+
function ce({
|
|
646
704
|
block: e,
|
|
647
705
|
context: t
|
|
648
706
|
}) {
|
|
649
707
|
var i;
|
|
650
708
|
const n = {
|
|
651
|
-
...
|
|
709
|
+
...Ot(e),
|
|
652
710
|
...e.properties,
|
|
653
711
|
"builder-id": e.id,
|
|
654
|
-
style:
|
|
712
|
+
style: wt({
|
|
655
713
|
block: e,
|
|
656
714
|
context: t
|
|
657
715
|
}),
|
|
658
716
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
659
717
|
};
|
|
660
|
-
return
|
|
718
|
+
return Lt({
|
|
661
719
|
properties: n,
|
|
662
720
|
context: t,
|
|
663
721
|
block: e
|
|
664
722
|
});
|
|
665
723
|
}
|
|
666
|
-
function
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
|
|
724
|
+
function Dt(e) {
|
|
725
|
+
return /* @__PURE__ */ l(
|
|
726
|
+
re,
|
|
669
727
|
{
|
|
670
728
|
TagName: e.Wrapper,
|
|
671
|
-
attributes:
|
|
729
|
+
attributes: ce({
|
|
672
730
|
block: e.block,
|
|
673
731
|
context: e.context
|
|
674
732
|
}),
|
|
675
|
-
actionAttributes:
|
|
733
|
+
actionAttributes: He({
|
|
676
734
|
block: e.block,
|
|
677
735
|
rootState: e.context.rootState,
|
|
678
736
|
rootSetState: e.context.rootSetState,
|
|
@@ -684,18 +742,18 @@ function Bt(e) {
|
|
|
684
742
|
}
|
|
685
743
|
);
|
|
686
744
|
}
|
|
687
|
-
function
|
|
688
|
-
return
|
|
689
|
-
}, []), /* @__PURE__ */
|
|
745
|
+
function Ut(e) {
|
|
746
|
+
return A(() => {
|
|
747
|
+
}, []), /* @__PURE__ */ l(T, { children: e.children });
|
|
690
748
|
}
|
|
691
|
-
function
|
|
749
|
+
function _t(e) {
|
|
692
750
|
function t() {
|
|
693
751
|
return e.includeBlockProps ? {
|
|
694
|
-
...
|
|
752
|
+
...ce({
|
|
695
753
|
block: e.block,
|
|
696
754
|
context: e.context
|
|
697
755
|
}),
|
|
698
|
-
...
|
|
756
|
+
...He({
|
|
699
757
|
block: e.block,
|
|
700
758
|
rootState: e.context.rootState,
|
|
701
759
|
rootSetState: e.context.rootSetState,
|
|
@@ -704,8 +762,8 @@ function At(e) {
|
|
|
704
762
|
})
|
|
705
763
|
} : {};
|
|
706
764
|
}
|
|
707
|
-
return /* @__PURE__ */
|
|
708
|
-
|
|
765
|
+
return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
766
|
+
Ut,
|
|
709
767
|
{
|
|
710
768
|
load: e.Wrapper.load,
|
|
711
769
|
fallback: e.Wrapper.fallback,
|
|
@@ -713,47 +771,47 @@ function At(e) {
|
|
|
713
771
|
attributes: t(),
|
|
714
772
|
children: e.children
|
|
715
773
|
}
|
|
716
|
-
) }) : /* @__PURE__ */
|
|
774
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
717
775
|
}
|
|
718
|
-
const
|
|
776
|
+
const Ht = ({
|
|
719
777
|
componentOptions: e,
|
|
720
778
|
builderBlock: t,
|
|
721
779
|
context: n,
|
|
722
780
|
componentRef: i,
|
|
723
781
|
includeBlockProps: o,
|
|
724
|
-
isInteractive:
|
|
725
|
-
contextValue:
|
|
782
|
+
isInteractive: a,
|
|
783
|
+
contextValue: r
|
|
726
784
|
}) => {
|
|
727
|
-
const
|
|
785
|
+
const s = {
|
|
728
786
|
...e,
|
|
729
787
|
/**
|
|
730
788
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
731
789
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
732
790
|
*/
|
|
733
791
|
...o ? {
|
|
734
|
-
attributes:
|
|
792
|
+
attributes: ce({
|
|
735
793
|
block: t,
|
|
736
|
-
context:
|
|
794
|
+
context: r
|
|
737
795
|
})
|
|
738
796
|
} : {}
|
|
739
797
|
};
|
|
740
|
-
return
|
|
798
|
+
return a ? {
|
|
741
799
|
Wrapper: i,
|
|
742
800
|
block: t,
|
|
743
801
|
context: n,
|
|
744
802
|
wrapperProps: e,
|
|
745
803
|
includeBlockProps: o
|
|
746
|
-
} :
|
|
804
|
+
} : s;
|
|
747
805
|
};
|
|
748
|
-
function
|
|
806
|
+
function be(e) {
|
|
749
807
|
var i;
|
|
750
|
-
const [t, n] =
|
|
751
|
-
() => e.isInteractive ?
|
|
808
|
+
const [t, n] = E(
|
|
809
|
+
() => e.isInteractive ? _t : e.componentRef
|
|
752
810
|
);
|
|
753
|
-
return /* @__PURE__ */
|
|
811
|
+
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
754
812
|
t,
|
|
755
813
|
{
|
|
756
|
-
...
|
|
814
|
+
...Ht({
|
|
757
815
|
componentOptions: e.componentOptions,
|
|
758
816
|
builderBlock: e.builderBlock,
|
|
759
817
|
context: e.context,
|
|
@@ -763,8 +821,8 @@ function fe(e) {
|
|
|
763
821
|
isInteractive: e.isInteractive,
|
|
764
822
|
contextValue: e.context
|
|
765
823
|
}),
|
|
766
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
767
|
-
|
|
824
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
825
|
+
M,
|
|
768
826
|
{
|
|
769
827
|
block: o,
|
|
770
828
|
context: e.context,
|
|
@@ -776,10 +834,10 @@ function fe(e) {
|
|
|
776
834
|
}
|
|
777
835
|
) }) : null });
|
|
778
836
|
}
|
|
779
|
-
function
|
|
780
|
-
const [t, n] =
|
|
781
|
-
return /* @__PURE__ */
|
|
782
|
-
|
|
837
|
+
function pe(e) {
|
|
838
|
+
const [t, n] = E(() => e.repeatContext);
|
|
839
|
+
return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
840
|
+
M,
|
|
783
841
|
{
|
|
784
842
|
block: e.block,
|
|
785
843
|
context: t,
|
|
@@ -788,99 +846,100 @@ function he(e) {
|
|
|
788
846
|
}
|
|
789
847
|
) });
|
|
790
848
|
}
|
|
791
|
-
function
|
|
792
|
-
var h, g, m,
|
|
849
|
+
function M(e) {
|
|
850
|
+
var h, g, m, y;
|
|
793
851
|
function t() {
|
|
794
|
-
return
|
|
852
|
+
return Rt({
|
|
795
853
|
block: e.block,
|
|
796
854
|
context: e.context
|
|
797
855
|
});
|
|
798
856
|
}
|
|
799
|
-
const [n, i] =
|
|
857
|
+
const [n, i] = E(() => ({
|
|
800
858
|
value: null,
|
|
801
859
|
update: !1
|
|
802
860
|
}));
|
|
803
861
|
function o() {
|
|
804
|
-
var
|
|
805
|
-
if (n.value && !n.update && !
|
|
862
|
+
var v;
|
|
863
|
+
if (n.value && !n.update && !ae())
|
|
806
864
|
return n.value;
|
|
807
|
-
const f = (
|
|
865
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
|
|
808
866
|
block: e.block,
|
|
809
867
|
localState: e.context.localState,
|
|
810
868
|
rootState: e.context.rootState,
|
|
811
869
|
rootSetState: e.context.rootSetState,
|
|
812
|
-
context: e.context.context
|
|
813
|
-
shouldEvaluateBindings: !0
|
|
870
|
+
context: e.context.context
|
|
814
871
|
});
|
|
815
872
|
return n.value = f, n.update = !1, f;
|
|
816
873
|
}
|
|
817
|
-
function
|
|
818
|
-
return
|
|
874
|
+
function a() {
|
|
875
|
+
return Et({
|
|
819
876
|
block: o(),
|
|
820
|
-
registeredComponents: e.registeredComponents
|
|
877
|
+
registeredComponents: e.registeredComponents,
|
|
878
|
+
model: e.context.model
|
|
821
879
|
});
|
|
822
880
|
}
|
|
823
|
-
function
|
|
824
|
-
var
|
|
825
|
-
return e.block.tagName === "a" || ((
|
|
881
|
+
function r() {
|
|
882
|
+
var v;
|
|
883
|
+
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
826
884
|
}
|
|
827
|
-
function
|
|
828
|
-
var
|
|
829
|
-
if ((
|
|
830
|
-
return !!((
|
|
885
|
+
function s() {
|
|
886
|
+
var x, b;
|
|
887
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
888
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
831
889
|
const f = "hide" in o() ? o().hide : !1;
|
|
832
890
|
return ("show" in o() ? o().show : !0) && !f;
|
|
833
891
|
}
|
|
834
892
|
function d() {
|
|
835
|
-
var
|
|
836
|
-
return !((
|
|
893
|
+
var v, x;
|
|
894
|
+
return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
837
895
|
}
|
|
838
896
|
function c() {
|
|
839
|
-
var f,
|
|
897
|
+
var f, v, x, b;
|
|
840
898
|
return {
|
|
841
899
|
blockChildren: (f = o().children) != null ? f : [],
|
|
842
|
-
componentRef: (
|
|
900
|
+
componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
|
|
843
901
|
componentOptions: {
|
|
844
|
-
...
|
|
845
|
-
...
|
|
846
|
-
...
|
|
847
|
-
...
|
|
848
|
-
...
|
|
849
|
-
|
|
850
|
-
e.registeredComponents
|
|
902
|
+
...dt(o(), e.context),
|
|
903
|
+
...Vt(a(), o()),
|
|
904
|
+
...At(a(), e.context),
|
|
905
|
+
...Pt(a(), e.linkComponent),
|
|
906
|
+
...Bt(
|
|
907
|
+
a(),
|
|
908
|
+
e.registeredComponents,
|
|
909
|
+
e.context.model
|
|
851
910
|
)
|
|
852
911
|
},
|
|
853
912
|
context: e.context,
|
|
854
913
|
linkComponent: e.linkComponent,
|
|
855
914
|
registeredComponents: e.registeredComponents,
|
|
856
915
|
builderBlock: o(),
|
|
857
|
-
includeBlockProps: ((
|
|
858
|
-
isInteractive: !((
|
|
916
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
917
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && $ === "rsc")
|
|
859
918
|
};
|
|
860
919
|
}
|
|
861
|
-
return
|
|
862
|
-
const f = o().id,
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
...
|
|
920
|
+
return A(() => {
|
|
921
|
+
const f = o().id, v = o().animations;
|
|
922
|
+
v && f && St(
|
|
923
|
+
v.map((x) => ({
|
|
924
|
+
...x,
|
|
866
925
|
elementId: f
|
|
867
926
|
}))
|
|
868
927
|
);
|
|
869
|
-
}, []),
|
|
928
|
+
}, []), A(() => {
|
|
870
929
|
n.update = !0;
|
|
871
|
-
}), /* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
(h =
|
|
874
|
-
|
|
930
|
+
}), /* @__PURE__ */ l(T, { children: s() ? /* @__PURE__ */ N(T, { children: [
|
|
931
|
+
/* @__PURE__ */ l(Nt, { block: o(), context: e.context }),
|
|
932
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ l(
|
|
933
|
+
pe,
|
|
875
934
|
{
|
|
876
935
|
repeatContext: f.context,
|
|
877
936
|
block: f.block,
|
|
878
937
|
registeredComponents: e.registeredComponents,
|
|
879
938
|
linkComponent: e.linkComponent
|
|
880
939
|
},
|
|
881
|
-
|
|
882
|
-
)) }) : /* @__PURE__ */
|
|
883
|
-
|
|
940
|
+
v
|
|
941
|
+
)) }) : /* @__PURE__ */ l(
|
|
942
|
+
be,
|
|
884
943
|
{
|
|
885
944
|
componentRef: c().componentRef,
|
|
886
945
|
componentOptions: c().componentOptions,
|
|
@@ -892,24 +951,24 @@ function j(e) {
|
|
|
892
951
|
includeBlockProps: c().includeBlockProps,
|
|
893
952
|
isInteractive: c().isInteractive
|
|
894
953
|
}
|
|
895
|
-
) : /* @__PURE__ */
|
|
896
|
-
|
|
954
|
+
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
|
|
955
|
+
pe,
|
|
897
956
|
{
|
|
898
957
|
repeatContext: f.context,
|
|
899
958
|
block: f.block,
|
|
900
959
|
registeredComponents: e.registeredComponents,
|
|
901
960
|
linkComponent: e.linkComponent
|
|
902
961
|
},
|
|
903
|
-
|
|
904
|
-
)) }) : /* @__PURE__ */
|
|
905
|
-
|
|
962
|
+
v
|
|
963
|
+
)) }) : /* @__PURE__ */ N(
|
|
964
|
+
Dt,
|
|
906
965
|
{
|
|
907
|
-
Wrapper:
|
|
966
|
+
Wrapper: r(),
|
|
908
967
|
block: o(),
|
|
909
968
|
context: e.context,
|
|
910
969
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
|
|
970
|
+
/* @__PURE__ */ l(
|
|
971
|
+
be,
|
|
913
972
|
{
|
|
914
973
|
componentRef: c().componentRef,
|
|
915
974
|
componentOptions: c().componentOptions,
|
|
@@ -922,8 +981,8 @@ function j(e) {
|
|
|
922
981
|
isInteractive: c().isInteractive
|
|
923
982
|
}
|
|
924
983
|
),
|
|
925
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
926
|
-
|
|
984
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
985
|
+
M,
|
|
927
986
|
{
|
|
928
987
|
block: f,
|
|
929
988
|
registeredComponents: e.registeredComponents,
|
|
@@ -937,25 +996,25 @@ function j(e) {
|
|
|
937
996
|
) })
|
|
938
997
|
] }) : null });
|
|
939
998
|
}
|
|
940
|
-
function
|
|
941
|
-
const t =
|
|
999
|
+
function Mt(e) {
|
|
1000
|
+
const t = O(null);
|
|
942
1001
|
function n() {
|
|
943
|
-
var
|
|
1002
|
+
var r;
|
|
944
1003
|
return [
|
|
945
1004
|
"builder-blocks",
|
|
946
|
-
(
|
|
1005
|
+
(r = e.blocks) != null && r.length ? "" : "no-blocks",
|
|
947
1006
|
e.classNameProp
|
|
948
1007
|
].filter(Boolean).join(" ");
|
|
949
1008
|
}
|
|
950
1009
|
function i() {
|
|
951
1010
|
if (!e.path)
|
|
952
1011
|
return;
|
|
953
|
-
const
|
|
954
|
-
return e.path.startsWith(
|
|
1012
|
+
const r = "component.options.";
|
|
1013
|
+
return e.path.startsWith(r) ? e.path : `${r}${e.path || ""}`;
|
|
955
1014
|
}
|
|
956
1015
|
function o() {
|
|
957
|
-
var
|
|
958
|
-
W() && !((
|
|
1016
|
+
var r, s;
|
|
1017
|
+
W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
|
|
959
1018
|
{
|
|
960
1019
|
type: "builder.clickEmptyBlocks",
|
|
961
1020
|
data: {
|
|
@@ -966,9 +1025,9 @@ function Wt(e) {
|
|
|
966
1025
|
"*"
|
|
967
1026
|
));
|
|
968
1027
|
}
|
|
969
|
-
function
|
|
970
|
-
var
|
|
971
|
-
W() && !((
|
|
1028
|
+
function a() {
|
|
1029
|
+
var r, s;
|
|
1030
|
+
W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
|
|
972
1031
|
{
|
|
973
1032
|
type: "builder.hoverEmptyBlocks",
|
|
974
1033
|
data: {
|
|
@@ -979,9 +1038,9 @@ function Wt(e) {
|
|
|
979
1038
|
"*"
|
|
980
1039
|
));
|
|
981
1040
|
}
|
|
982
|
-
return
|
|
983
|
-
}, []), /* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */
|
|
1041
|
+
return A(() => {
|
|
1042
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
1043
|
+
/* @__PURE__ */ l(
|
|
985
1044
|
e.BlocksWrapper,
|
|
986
1045
|
{
|
|
987
1046
|
ref: t,
|
|
@@ -989,14 +1048,14 @@ function Wt(e) {
|
|
|
989
1048
|
"builder-path": i(),
|
|
990
1049
|
"builder-parent-id": e.parent,
|
|
991
1050
|
style: e.styleProp,
|
|
992
|
-
onClick: (
|
|
993
|
-
onMouseEnter: (
|
|
994
|
-
onKeyPress: (
|
|
1051
|
+
onClick: (r) => o(),
|
|
1052
|
+
onMouseEnter: (r) => a(),
|
|
1053
|
+
onKeyPress: (r) => o(),
|
|
995
1054
|
...e.BlocksWrapperProps,
|
|
996
1055
|
children: e.children
|
|
997
1056
|
}
|
|
998
1057
|
),
|
|
999
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
1000
1059
|
display: flex;
|
|
1001
1060
|
flex-direction: column;
|
|
1002
1061
|
align-items: stretch;
|
|
@@ -1004,10 +1063,10 @@ function Wt(e) {
|
|
|
1004
1063
|
] });
|
|
1005
1064
|
}
|
|
1006
1065
|
function F(e) {
|
|
1007
|
-
var i, o,
|
|
1008
|
-
const t =
|
|
1009
|
-
return /* @__PURE__ */
|
|
1010
|
-
|
|
1066
|
+
var i, o, a;
|
|
1067
|
+
const t = fe(le), n = fe(Pe);
|
|
1068
|
+
return /* @__PURE__ */ l(
|
|
1069
|
+
Mt,
|
|
1011
1070
|
{
|
|
1012
1071
|
blocks: e.blocks,
|
|
1013
1072
|
parent: e.parent,
|
|
@@ -1016,22 +1075,22 @@ function F(e) {
|
|
|
1016
1075
|
classNameProp: e.className,
|
|
1017
1076
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1018
1077
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1019
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1020
|
-
|
|
1078
|
+
children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1079
|
+
M,
|
|
1021
1080
|
{
|
|
1022
|
-
block:
|
|
1081
|
+
block: r,
|
|
1023
1082
|
linkComponent: e.linkComponent,
|
|
1024
1083
|
context: e.context || t,
|
|
1025
1084
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1026
1085
|
},
|
|
1027
|
-
|
|
1086
|
+
r.id
|
|
1028
1087
|
)) }) : null
|
|
1029
1088
|
}
|
|
1030
1089
|
);
|
|
1031
1090
|
}
|
|
1032
|
-
const
|
|
1033
|
-
function
|
|
1034
|
-
var
|
|
1091
|
+
const jt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1092
|
+
function qt(e) {
|
|
1093
|
+
var v, x;
|
|
1035
1094
|
function t() {
|
|
1036
1095
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1037
1096
|
}
|
|
@@ -1041,28 +1100,28 @@ function $t(e) {
|
|
|
1041
1100
|
function i() {
|
|
1042
1101
|
return e.stackColumnsAt || "tablet";
|
|
1043
1102
|
}
|
|
1044
|
-
function o(
|
|
1045
|
-
return
|
|
1103
|
+
function o(b) {
|
|
1104
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1046
1105
|
}
|
|
1047
|
-
function
|
|
1048
|
-
var
|
|
1049
|
-
return ((
|
|
1106
|
+
function a(b) {
|
|
1107
|
+
var p;
|
|
1108
|
+
return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
|
|
1050
1109
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const
|
|
1053
|
-
return `calc(${
|
|
1110
|
+
function r(b) {
|
|
1111
|
+
const p = a(b), C = t() * (n().length - 1) * (p / 100);
|
|
1112
|
+
return `calc(${p}% - ${C}px)`;
|
|
1054
1113
|
}
|
|
1055
|
-
function
|
|
1056
|
-
stackedStyle:
|
|
1057
|
-
desktopStyle:
|
|
1114
|
+
function s({
|
|
1115
|
+
stackedStyle: b,
|
|
1116
|
+
desktopStyle: p
|
|
1058
1117
|
}) {
|
|
1059
|
-
return i() === "tablet" ?
|
|
1118
|
+
return i() === "tablet" ? b : p;
|
|
1060
1119
|
}
|
|
1061
1120
|
function d({
|
|
1062
|
-
stackedStyle:
|
|
1063
|
-
desktopStyle:
|
|
1121
|
+
stackedStyle: b,
|
|
1122
|
+
desktopStyle: p
|
|
1064
1123
|
}) {
|
|
1065
|
-
return i() === "never" ?
|
|
1124
|
+
return i() === "never" ? p : b;
|
|
1066
1125
|
}
|
|
1067
1126
|
function c() {
|
|
1068
1127
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1070,48 +1129,48 @@ function $t(e) {
|
|
|
1070
1129
|
function h() {
|
|
1071
1130
|
return {
|
|
1072
1131
|
"--flex-dir": c(),
|
|
1073
|
-
"--flex-dir-tablet":
|
|
1132
|
+
"--flex-dir-tablet": s({
|
|
1074
1133
|
stackedStyle: c(),
|
|
1075
1134
|
desktopStyle: "row"
|
|
1076
1135
|
})
|
|
1077
1136
|
};
|
|
1078
1137
|
}
|
|
1079
|
-
function g(
|
|
1080
|
-
const
|
|
1138
|
+
function g(b) {
|
|
1139
|
+
const p = b === 0 ? 0 : t(), C = r(b), V = `${p}px`, k = "100%", I = 0;
|
|
1081
1140
|
return {
|
|
1082
1141
|
...{
|
|
1083
1142
|
display: "flex",
|
|
1084
1143
|
flexDirection: "column",
|
|
1085
1144
|
alignItems: "stretch"
|
|
1086
1145
|
},
|
|
1087
|
-
width:
|
|
1088
|
-
["marginLeft"]:
|
|
1146
|
+
width: C,
|
|
1147
|
+
["marginLeft"]: V,
|
|
1089
1148
|
"--column-width-mobile": d({
|
|
1090
1149
|
stackedStyle: k,
|
|
1091
|
-
desktopStyle:
|
|
1150
|
+
desktopStyle: C
|
|
1092
1151
|
}),
|
|
1093
1152
|
"--column-margin-left-mobile": d({
|
|
1094
|
-
stackedStyle:
|
|
1095
|
-
desktopStyle:
|
|
1153
|
+
stackedStyle: I,
|
|
1154
|
+
desktopStyle: V
|
|
1096
1155
|
}),
|
|
1097
|
-
"--column-width-tablet":
|
|
1156
|
+
"--column-width-tablet": s({
|
|
1098
1157
|
stackedStyle: k,
|
|
1099
|
-
desktopStyle:
|
|
1158
|
+
desktopStyle: C
|
|
1100
1159
|
}),
|
|
1101
|
-
"--column-margin-left-tablet":
|
|
1102
|
-
stackedStyle:
|
|
1103
|
-
desktopStyle:
|
|
1160
|
+
"--column-margin-left-tablet": s({
|
|
1161
|
+
stackedStyle: I,
|
|
1162
|
+
desktopStyle: V
|
|
1104
1163
|
})
|
|
1105
1164
|
};
|
|
1106
1165
|
}
|
|
1107
|
-
function m(
|
|
1108
|
-
var
|
|
1109
|
-
return
|
|
1110
|
-
((
|
|
1111
|
-
)[
|
|
1166
|
+
function m(b) {
|
|
1167
|
+
var C, V;
|
|
1168
|
+
return _e(
|
|
1169
|
+
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1170
|
+
)[b].max;
|
|
1112
1171
|
}
|
|
1113
|
-
function
|
|
1114
|
-
const
|
|
1172
|
+
function y() {
|
|
1173
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1115
1174
|
return `
|
|
1116
1175
|
@media (max-width: ${m("medium")}px) {
|
|
1117
1176
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1119,7 +1178,7 @@ function $t(e) {
|
|
|
1119
1178
|
align-items: stretch;
|
|
1120
1179
|
}
|
|
1121
1180
|
|
|
1122
|
-
${
|
|
1181
|
+
${b} {
|
|
1123
1182
|
width: var(--column-width-tablet) !important;
|
|
1124
1183
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1125
1184
|
}
|
|
@@ -1131,47 +1190,47 @@ function $t(e) {
|
|
|
1131
1190
|
align-items: stretch;
|
|
1132
1191
|
}
|
|
1133
1192
|
|
|
1134
|
-
${
|
|
1193
|
+
${b} {
|
|
1135
1194
|
width: var(--column-width-mobile) !important;
|
|
1136
1195
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1137
1196
|
}
|
|
1138
1197
|
},
|
|
1139
1198
|
`;
|
|
1140
1199
|
}
|
|
1141
|
-
function f(
|
|
1200
|
+
function f(b, p) {
|
|
1142
1201
|
return {
|
|
1143
|
-
...
|
|
1144
|
-
href:
|
|
1202
|
+
...b.link ? {
|
|
1203
|
+
href: b.link
|
|
1145
1204
|
} : {},
|
|
1146
1205
|
[H()]: "builder-column",
|
|
1147
|
-
style:
|
|
1206
|
+
style: Oe(g(p))
|
|
1148
1207
|
};
|
|
1149
1208
|
}
|
|
1150
|
-
return /* @__PURE__ */
|
|
1151
|
-
/* @__PURE__ */
|
|
1209
|
+
return /* @__PURE__ */ N(T, { children: [
|
|
1210
|
+
/* @__PURE__ */ N(
|
|
1152
1211
|
"div",
|
|
1153
1212
|
{
|
|
1154
|
-
className:
|
|
1213
|
+
className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
|
|
1155
1214
|
style: h(),
|
|
1156
1215
|
children: [
|
|
1157
|
-
/* @__PURE__ */
|
|
1158
|
-
|
|
1216
|
+
/* @__PURE__ */ l(
|
|
1217
|
+
Q,
|
|
1159
1218
|
{
|
|
1160
1219
|
id: "builderio-columns",
|
|
1161
|
-
styles:
|
|
1220
|
+
styles: y(),
|
|
1162
1221
|
nonce: e.builderContext.nonce
|
|
1163
1222
|
}
|
|
1164
1223
|
),
|
|
1165
|
-
(
|
|
1166
|
-
|
|
1224
|
+
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
|
|
1225
|
+
re,
|
|
1167
1226
|
{
|
|
1168
|
-
TagName: o(
|
|
1227
|
+
TagName: o(b),
|
|
1169
1228
|
actionAttributes: {},
|
|
1170
|
-
attributes: f(
|
|
1171
|
-
children: /* @__PURE__ */
|
|
1229
|
+
attributes: f(b, p),
|
|
1230
|
+
children: /* @__PURE__ */ l(
|
|
1172
1231
|
F,
|
|
1173
1232
|
{
|
|
1174
|
-
path: `columns.${
|
|
1233
|
+
path: `columns.${p}.blocks`,
|
|
1175
1234
|
parent: e.builderBlock.id,
|
|
1176
1235
|
styleProp: {
|
|
1177
1236
|
flexGrow: "1"
|
|
@@ -1179,70 +1238,70 @@ function $t(e) {
|
|
|
1179
1238
|
context: e.builderContext,
|
|
1180
1239
|
registeredComponents: e.builderComponents,
|
|
1181
1240
|
linkComponent: e.builderLinkComponent,
|
|
1182
|
-
blocks:
|
|
1241
|
+
blocks: b.blocks
|
|
1183
1242
|
}
|
|
1184
1243
|
)
|
|
1185
1244
|
},
|
|
1186
|
-
|
|
1245
|
+
p
|
|
1187
1246
|
))
|
|
1188
1247
|
]
|
|
1189
1248
|
}
|
|
1190
1249
|
),
|
|
1191
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ l("style", { children: `.div-49f40bae {
|
|
1192
1251
|
display: flex;
|
|
1193
1252
|
line-height: normal;
|
|
1194
1253
|
}` })
|
|
1195
1254
|
] });
|
|
1196
1255
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return /* @__PURE__ */
|
|
1256
|
+
function zt(e) {
|
|
1257
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1199
1258
|
}
|
|
1200
|
-
function
|
|
1259
|
+
function ye(e) {
|
|
1201
1260
|
return e.replace(/http(s)?:/, "");
|
|
1202
1261
|
}
|
|
1203
|
-
function
|
|
1262
|
+
function Kt(e = "", t, n) {
|
|
1204
1263
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1205
1264
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1206
1265
|
}
|
|
1207
|
-
function
|
|
1266
|
+
function Jt(e, t) {
|
|
1208
1267
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1209
1268
|
return e;
|
|
1210
1269
|
if (t === "master")
|
|
1211
|
-
return
|
|
1270
|
+
return ye(e);
|
|
1212
1271
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1213
1272
|
if (n) {
|
|
1214
|
-
const i = e.split(n[0]), o = n[3],
|
|
1215
|
-
return
|
|
1273
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1274
|
+
return ye(`${i[0]}_${a}${o}`);
|
|
1216
1275
|
}
|
|
1217
1276
|
return null;
|
|
1218
1277
|
}
|
|
1219
|
-
function
|
|
1278
|
+
function X(e) {
|
|
1220
1279
|
if (!e)
|
|
1221
1280
|
return e;
|
|
1222
1281
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1223
1282
|
if (e.match(/builder\.io/)) {
|
|
1224
1283
|
let n = e;
|
|
1225
1284
|
const i = Number(e.split("?width=")[1]);
|
|
1226
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1285
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Kt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1227
1286
|
}
|
|
1228
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1287
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Jt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1229
1288
|
}
|
|
1230
|
-
function
|
|
1231
|
-
var o,
|
|
1289
|
+
function Gt(e) {
|
|
1290
|
+
var o, a, r, s, d, c;
|
|
1232
1291
|
function t() {
|
|
1233
1292
|
var m;
|
|
1234
1293
|
const g = e.image || e.src;
|
|
1235
1294
|
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1236
1295
|
// images, otherwise you can supply this prop manually
|
|
1237
|
-
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
1296
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1238
1297
|
return e.srcset;
|
|
1239
1298
|
if (!e.noWebp) {
|
|
1240
1299
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1241
1300
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1242
|
-
return console.debug("Removed given srcset"),
|
|
1301
|
+
return console.debug("Removed given srcset"), X(g);
|
|
1243
1302
|
} else if (e.image && !e.srcset)
|
|
1244
|
-
return
|
|
1245
|
-
return
|
|
1303
|
+
return X(g);
|
|
1304
|
+
return X(g);
|
|
1246
1305
|
}
|
|
1247
1306
|
}
|
|
1248
1307
|
function n() {
|
|
@@ -1259,12 +1318,12 @@ function Ut(e) {
|
|
|
1259
1318
|
};
|
|
1260
1319
|
return e.aspectRatio ? h : void 0;
|
|
1261
1320
|
}
|
|
1262
|
-
return
|
|
1263
|
-
}, []), /* @__PURE__ */
|
|
1264
|
-
/* @__PURE__ */
|
|
1265
|
-
/* @__PURE__ */
|
|
1266
|
-
n() ? /* @__PURE__ */
|
|
1267
|
-
/* @__PURE__ */
|
|
1321
|
+
return A(() => {
|
|
1322
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
1323
|
+
/* @__PURE__ */ N(T, { children: [
|
|
1324
|
+
/* @__PURE__ */ N("picture", { children: [
|
|
1325
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1326
|
+
/* @__PURE__ */ l(
|
|
1268
1327
|
"img",
|
|
1269
1328
|
{
|
|
1270
1329
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1276,33 +1335,33 @@ function Ut(e) {
|
|
|
1276
1335
|
objectFit: e.backgroundSize || "cover",
|
|
1277
1336
|
...i()
|
|
1278
1337
|
},
|
|
1279
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1338
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
|
|
1280
1339
|
src: e.image,
|
|
1281
1340
|
srcSet: t(),
|
|
1282
1341
|
sizes: e.sizes
|
|
1283
1342
|
}
|
|
1284
1343
|
)
|
|
1285
1344
|
] }),
|
|
1286
|
-
e.aspectRatio && !((
|
|
1345
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1287
1346
|
"div",
|
|
1288
1347
|
{
|
|
1289
|
-
className: "builder-image-sizer div-
|
|
1348
|
+
className: "builder-image-sizer div-c071ff08",
|
|
1290
1349
|
style: {
|
|
1291
1350
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1292
1351
|
}
|
|
1293
1352
|
}
|
|
1294
1353
|
) : null,
|
|
1295
|
-
(
|
|
1296
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1354
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
|
|
1355
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-c071ff08-2", children: e.children }) : null
|
|
1297
1356
|
] }),
|
|
1298
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ l("style", { children: `.img-c071ff08 {
|
|
1299
1358
|
opacity: 1;
|
|
1300
1359
|
transition: opacity 0.2s ease-in-out;
|
|
1301
|
-
}.div-
|
|
1360
|
+
}.div-c071ff08 {
|
|
1302
1361
|
width: 100%;
|
|
1303
1362
|
pointer-events: none;
|
|
1304
1363
|
font-size: 0;
|
|
1305
|
-
}.div-
|
|
1364
|
+
}.div-c071ff08-2 {
|
|
1306
1365
|
display: flex;
|
|
1307
1366
|
flex-direction: column;
|
|
1308
1367
|
align-items: stretch;
|
|
@@ -1314,8 +1373,8 @@ function Ut(e) {
|
|
|
1314
1373
|
}` })
|
|
1315
1374
|
] });
|
|
1316
1375
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return /* @__PURE__ */
|
|
1376
|
+
function Yt(e) {
|
|
1377
|
+
return /* @__PURE__ */ l(
|
|
1319
1378
|
"section",
|
|
1320
1379
|
{
|
|
1321
1380
|
...e.attributes,
|
|
@@ -1335,7 +1394,7 @@ function Ht(e) {
|
|
|
1335
1394
|
}
|
|
1336
1395
|
);
|
|
1337
1396
|
}
|
|
1338
|
-
const
|
|
1397
|
+
const Z = {
|
|
1339
1398
|
"@type": "@builder.io/sdk:Element",
|
|
1340
1399
|
layerName: "Accordion item title",
|
|
1341
1400
|
responsiveStyles: {
|
|
@@ -1364,7 +1423,7 @@ const X = {
|
|
|
1364
1423
|
}
|
|
1365
1424
|
}
|
|
1366
1425
|
}]
|
|
1367
|
-
},
|
|
1426
|
+
}, ee = {
|
|
1368
1427
|
"@type": "@builder.io/sdk:Element",
|
|
1369
1428
|
layerName: "Accordion item detail",
|
|
1370
1429
|
responsiveStyles: {
|
|
@@ -1395,7 +1454,7 @@ const X = {
|
|
|
1395
1454
|
}
|
|
1396
1455
|
}
|
|
1397
1456
|
}]
|
|
1398
|
-
},
|
|
1457
|
+
}, Qt = {
|
|
1399
1458
|
name: "Builder:Accordion",
|
|
1400
1459
|
canHaveChildren: !0,
|
|
1401
1460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1412,19 +1471,19 @@ const X = {
|
|
|
1412
1471
|
name: "title",
|
|
1413
1472
|
type: "uiBlocks",
|
|
1414
1473
|
hideFromUI: !0,
|
|
1415
|
-
defaultValue: [
|
|
1474
|
+
defaultValue: [Z]
|
|
1416
1475
|
}, {
|
|
1417
1476
|
name: "detail",
|
|
1418
1477
|
type: "uiBlocks",
|
|
1419
1478
|
hideFromUI: !0,
|
|
1420
|
-
defaultValue: [
|
|
1479
|
+
defaultValue: [ee]
|
|
1421
1480
|
}],
|
|
1422
1481
|
defaultValue: [{
|
|
1423
|
-
title: [
|
|
1424
|
-
detail: [
|
|
1482
|
+
title: [Z],
|
|
1483
|
+
detail: [ee]
|
|
1425
1484
|
}, {
|
|
1426
|
-
title: [
|
|
1427
|
-
detail: [
|
|
1485
|
+
title: [Z],
|
|
1486
|
+
detail: [ee]
|
|
1428
1487
|
}],
|
|
1429
1488
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1430
1489
|
}, {
|
|
@@ -1459,10 +1518,10 @@ const X = {
|
|
|
1459
1518
|
builderComponents: !0,
|
|
1460
1519
|
builderLinkComponent: !0
|
|
1461
1520
|
}
|
|
1462
|
-
},
|
|
1463
|
-
function
|
|
1521
|
+
}, xe = (e) => e.toString();
|
|
1522
|
+
function Xt(e) {
|
|
1464
1523
|
var g;
|
|
1465
|
-
const [t, n] =
|
|
1524
|
+
const [t, n] = E(() => []);
|
|
1466
1525
|
function i() {
|
|
1467
1526
|
return !!(e.grid || e.oneAtATime);
|
|
1468
1527
|
}
|
|
@@ -1478,8 +1537,8 @@ function Mt(e) {
|
|
|
1478
1537
|
}
|
|
1479
1538
|
};
|
|
1480
1539
|
}
|
|
1481
|
-
function
|
|
1482
|
-
const
|
|
1540
|
+
function a() {
|
|
1541
|
+
const y = {
|
|
1483
1542
|
...{
|
|
1484
1543
|
display: "flex",
|
|
1485
1544
|
flexDirection: "column"
|
|
@@ -1488,35 +1547,35 @@ function Mt(e) {
|
|
|
1488
1547
|
cursor: "pointer"
|
|
1489
1548
|
};
|
|
1490
1549
|
return Object.fromEntries(
|
|
1491
|
-
Object.entries(
|
|
1550
|
+
Object.entries(y).filter(([f, v]) => v !== void 0)
|
|
1492
1551
|
);
|
|
1493
1552
|
}
|
|
1494
|
-
function
|
|
1553
|
+
function r(m) {
|
|
1495
1554
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1496
1555
|
}
|
|
1497
|
-
function
|
|
1556
|
+
function s(m) {
|
|
1498
1557
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1499
1558
|
}
|
|
1500
1559
|
function d() {
|
|
1501
1560
|
let m = null;
|
|
1502
1561
|
if (e.grid && t.length && document) {
|
|
1503
1562
|
const f = t[0];
|
|
1504
|
-
let
|
|
1563
|
+
let x = document.querySelector(
|
|
1505
1564
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1506
1565
|
);
|
|
1507
|
-
if (m = f,
|
|
1508
|
-
let
|
|
1509
|
-
for (;
|
|
1510
|
-
if (
|
|
1511
|
-
if (
|
|
1566
|
+
if (m = f, x) {
|
|
1567
|
+
let b = x.getBoundingClientRect();
|
|
1568
|
+
for (; x = x && x.nextElementSibling; )
|
|
1569
|
+
if (x) {
|
|
1570
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1512
1571
|
continue;
|
|
1513
|
-
const
|
|
1514
|
-
if (
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1572
|
+
const p = x.getBoundingClientRect();
|
|
1573
|
+
if (p.left > b.left) {
|
|
1574
|
+
const C = parseInt(
|
|
1575
|
+
x.getAttribute("data-index") || "",
|
|
1517
1576
|
10
|
|
1518
1577
|
);
|
|
1519
|
-
isNaN(
|
|
1578
|
+
isNaN(C) || (b = p, m = C);
|
|
1520
1579
|
} else
|
|
1521
1580
|
break;
|
|
1522
1581
|
}
|
|
@@ -1532,31 +1591,31 @@ function Mt(e) {
|
|
|
1532
1591
|
}
|
|
1533
1592
|
};
|
|
1534
1593
|
return Object.fromEntries(
|
|
1535
|
-
Object.entries(m).filter(([
|
|
1594
|
+
Object.entries(m).filter(([y, f]) => f !== void 0)
|
|
1536
1595
|
);
|
|
1537
1596
|
}
|
|
1538
1597
|
function h(m) {
|
|
1539
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1598
|
+
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1540
1599
|
}
|
|
1541
|
-
return /* @__PURE__ */
|
|
1542
|
-
/* @__PURE__ */
|
|
1600
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ N(T, { children: [
|
|
1601
|
+
/* @__PURE__ */ l(
|
|
1543
1602
|
"div",
|
|
1544
1603
|
{
|
|
1545
|
-
className:
|
|
1604
|
+
className: r(y),
|
|
1546
1605
|
style: {
|
|
1547
|
-
...
|
|
1606
|
+
...a(),
|
|
1548
1607
|
...e.grid && {
|
|
1549
1608
|
width: e.gridRowWidth,
|
|
1550
|
-
order: d() !== null ?
|
|
1609
|
+
order: d() !== null ? xe(y) : xe(y + 1)
|
|
1551
1610
|
}
|
|
1552
1611
|
},
|
|
1553
|
-
"data-index":
|
|
1554
|
-
onClick: (f) => h(
|
|
1555
|
-
children: /* @__PURE__ */
|
|
1612
|
+
"data-index": y,
|
|
1613
|
+
onClick: (f) => h(y),
|
|
1614
|
+
children: /* @__PURE__ */ l(
|
|
1556
1615
|
F,
|
|
1557
1616
|
{
|
|
1558
1617
|
blocks: m.title,
|
|
1559
|
-
path: `items.${
|
|
1618
|
+
path: `items.${y}.title`,
|
|
1560
1619
|
parent: e.builderBlock.id,
|
|
1561
1620
|
context: e.builderContext,
|
|
1562
1621
|
registeredComponents: e.builderComponents,
|
|
@@ -1565,16 +1624,16 @@ function Mt(e) {
|
|
|
1565
1624
|
)
|
|
1566
1625
|
}
|
|
1567
1626
|
),
|
|
1568
|
-
t.includes(
|
|
1627
|
+
t.includes(y) ? /* @__PURE__ */ l(
|
|
1569
1628
|
"div",
|
|
1570
1629
|
{
|
|
1571
|
-
className:
|
|
1630
|
+
className: s(y),
|
|
1572
1631
|
style: c(),
|
|
1573
|
-
children: /* @__PURE__ */
|
|
1632
|
+
children: /* @__PURE__ */ l(
|
|
1574
1633
|
F,
|
|
1575
1634
|
{
|
|
1576
1635
|
blocks: m.detail,
|
|
1577
|
-
path: `items.${
|
|
1636
|
+
path: `items.${y}.detail`,
|
|
1578
1637
|
parent: e.builderBlock.id,
|
|
1579
1638
|
context: e.builderContext,
|
|
1580
1639
|
registeredComponents: e.builderComponents,
|
|
@@ -1585,7 +1644,7 @@ function Mt(e) {
|
|
|
1585
1644
|
) : null
|
|
1586
1645
|
] })) });
|
|
1587
1646
|
}
|
|
1588
|
-
const
|
|
1647
|
+
const Zt = {
|
|
1589
1648
|
name: "Core:Button",
|
|
1590
1649
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1591
1650
|
defaultStyles: {
|
|
@@ -1621,7 +1680,7 @@ const _t = {
|
|
|
1621
1680
|
shouldReceiveBuilderProps: {
|
|
1622
1681
|
builderLinkComponent: !0
|
|
1623
1682
|
}
|
|
1624
|
-
},
|
|
1683
|
+
}, en = {
|
|
1625
1684
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1626
1685
|
name: "Columns",
|
|
1627
1686
|
isRSC: !0,
|
|
@@ -1800,7 +1859,7 @@ const _t = {
|
|
|
1800
1859
|
});
|
|
1801
1860
|
}
|
|
1802
1861
|
const n = e.get("columns");
|
|
1803
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1862
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1804
1863
|
}
|
|
1805
1864
|
}, {
|
|
1806
1865
|
name: "space",
|
|
@@ -1828,13 +1887,13 @@ const _t = {
|
|
|
1828
1887
|
builderComponents: !0,
|
|
1829
1888
|
builderLinkComponent: !0
|
|
1830
1889
|
}
|
|
1831
|
-
},
|
|
1890
|
+
}, tn = {
|
|
1832
1891
|
name: "Fragment",
|
|
1833
1892
|
static: !0,
|
|
1834
1893
|
hidden: !0,
|
|
1835
1894
|
canHaveChildren: !0,
|
|
1836
1895
|
noWrap: !0
|
|
1837
|
-
},
|
|
1896
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], nn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
|
|
1838
1897
|
name: "Image",
|
|
1839
1898
|
static: !0,
|
|
1840
1899
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1849,12 +1908,12 @@ const _t = {
|
|
|
1849
1908
|
name: "image",
|
|
1850
1909
|
type: "file",
|
|
1851
1910
|
bubble: !0,
|
|
1852
|
-
allowedFileTypes:
|
|
1911
|
+
allowedFileTypes: de,
|
|
1853
1912
|
required: !0,
|
|
1854
1913
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1855
1914
|
onChange: (e) => {
|
|
1856
1915
|
e.delete("srcset"), e.delete("noWebp");
|
|
1857
|
-
function n(
|
|
1916
|
+
function n(r, s = 6e4) {
|
|
1858
1917
|
return new Promise((d, c) => {
|
|
1859
1918
|
const h = document.createElement("img");
|
|
1860
1919
|
let g = !1;
|
|
@@ -1862,21 +1921,21 @@ const _t = {
|
|
|
1862
1921
|
g = !0, d(h);
|
|
1863
1922
|
}, h.addEventListener("error", (m) => {
|
|
1864
1923
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1865
|
-
}), h.src =
|
|
1924
|
+
}), h.src = r, setTimeout(() => {
|
|
1866
1925
|
g || c(new Error("Image load timed out"));
|
|
1867
|
-
},
|
|
1926
|
+
}, s);
|
|
1868
1927
|
});
|
|
1869
1928
|
}
|
|
1870
|
-
function i(
|
|
1871
|
-
return Math.round(
|
|
1929
|
+
function i(r) {
|
|
1930
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1872
1931
|
}
|
|
1873
|
-
const o = e.get("image"),
|
|
1874
|
-
if (fetch(o).then((
|
|
1875
|
-
|
|
1876
|
-
}), o && (!
|
|
1877
|
-
return n(o).then((
|
|
1878
|
-
const
|
|
1879
|
-
e.get("image") === o && (!
|
|
1932
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1933
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1934
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1935
|
+
}), o && (!a || a === 0.7041))
|
|
1936
|
+
return n(o).then((r) => {
|
|
1937
|
+
const s = e.get("aspectRatio");
|
|
1938
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1880
1939
|
});
|
|
1881
1940
|
}
|
|
1882
1941
|
}, {
|
|
@@ -1942,7 +2001,7 @@ const _t = {
|
|
|
1942
2001
|
shouldReceiveBuilderProps: {
|
|
1943
2002
|
builderBlock: !0
|
|
1944
2003
|
}
|
|
1945
|
-
},
|
|
2004
|
+
}, an = {
|
|
1946
2005
|
name: "Core:Section",
|
|
1947
2006
|
static: !0,
|
|
1948
2007
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1981,7 +2040,7 @@ const _t = {
|
|
|
1981
2040
|
}
|
|
1982
2041
|
}
|
|
1983
2042
|
}]
|
|
1984
|
-
},
|
|
2043
|
+
}, rn = {
|
|
1985
2044
|
name: "Slot",
|
|
1986
2045
|
isRSC: !0,
|
|
1987
2046
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1999,9 +2058,9 @@ const _t = {
|
|
|
1999
2058
|
builderComponents: !0
|
|
2000
2059
|
}
|
|
2001
2060
|
};
|
|
2002
|
-
function
|
|
2061
|
+
function ln(e) {
|
|
2003
2062
|
var t, n, i;
|
|
2004
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ l(
|
|
2005
2064
|
"div",
|
|
2006
2065
|
{
|
|
2007
2066
|
style: {
|
|
@@ -2010,7 +2069,7 @@ function Yt(e) {
|
|
|
2010
2069
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2011
2070
|
"builder-slot": e.name
|
|
2012
2071
|
},
|
|
2013
|
-
children: /* @__PURE__ */
|
|
2072
|
+
children: /* @__PURE__ */ l(
|
|
2014
2073
|
F,
|
|
2015
2074
|
{
|
|
2016
2075
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2023,7 +2082,7 @@ function Yt(e) {
|
|
|
2023
2082
|
}
|
|
2024
2083
|
);
|
|
2025
2084
|
}
|
|
2026
|
-
const
|
|
2085
|
+
const sn = {
|
|
2027
2086
|
name: "Symbol",
|
|
2028
2087
|
noWrap: !0,
|
|
2029
2088
|
static: !0,
|
|
@@ -2062,7 +2121,7 @@ const Qt = {
|
|
|
2062
2121
|
builderComponents: !0,
|
|
2063
2122
|
builderLinkComponent: !0
|
|
2064
2123
|
}
|
|
2065
|
-
},
|
|
2124
|
+
}, te = {
|
|
2066
2125
|
"@type": "@builder.io/sdk:Element",
|
|
2067
2126
|
responsiveStyles: {
|
|
2068
2127
|
large: {
|
|
@@ -2084,7 +2143,7 @@ const Qt = {
|
|
|
2084
2143
|
text: "New tab"
|
|
2085
2144
|
}
|
|
2086
2145
|
}
|
|
2087
|
-
},
|
|
2146
|
+
}, ne = {
|
|
2088
2147
|
"@type": "@builder.io/sdk:Element",
|
|
2089
2148
|
responsiveStyles: {
|
|
2090
2149
|
large: {
|
|
@@ -2100,7 +2159,7 @@ const Qt = {
|
|
|
2100
2159
|
text: "New tab content "
|
|
2101
2160
|
}
|
|
2102
2161
|
}
|
|
2103
|
-
},
|
|
2162
|
+
}, cn = {
|
|
2104
2163
|
name: "Builder: Tabs",
|
|
2105
2164
|
inputs: [{
|
|
2106
2165
|
name: "tabs",
|
|
@@ -2110,16 +2169,16 @@ const Qt = {
|
|
|
2110
2169
|
name: "label",
|
|
2111
2170
|
type: "uiBlocks",
|
|
2112
2171
|
hideFromUI: !0,
|
|
2113
|
-
defaultValue: [
|
|
2172
|
+
defaultValue: [te]
|
|
2114
2173
|
}, {
|
|
2115
2174
|
name: "content",
|
|
2116
2175
|
type: "uiBlocks",
|
|
2117
2176
|
hideFromUI: !0,
|
|
2118
|
-
defaultValue: [
|
|
2177
|
+
defaultValue: [ne]
|
|
2119
2178
|
}],
|
|
2120
2179
|
defaultValue: [{
|
|
2121
2180
|
label: [{
|
|
2122
|
-
...
|
|
2181
|
+
...te,
|
|
2123
2182
|
component: {
|
|
2124
2183
|
name: "Text",
|
|
2125
2184
|
options: {
|
|
@@ -2128,7 +2187,7 @@ const Qt = {
|
|
|
2128
2187
|
}
|
|
2129
2188
|
}],
|
|
2130
2189
|
content: [{
|
|
2131
|
-
...
|
|
2190
|
+
...ne,
|
|
2132
2191
|
component: {
|
|
2133
2192
|
name: "Text",
|
|
2134
2193
|
options: {
|
|
@@ -2138,7 +2197,7 @@ const Qt = {
|
|
|
2138
2197
|
}]
|
|
2139
2198
|
}, {
|
|
2140
2199
|
label: [{
|
|
2141
|
-
...
|
|
2200
|
+
...te,
|
|
2142
2201
|
component: {
|
|
2143
2202
|
name: "Text",
|
|
2144
2203
|
options: {
|
|
@@ -2147,7 +2206,7 @@ const Qt = {
|
|
|
2147
2206
|
}
|
|
2148
2207
|
}],
|
|
2149
2208
|
content: [{
|
|
2150
|
-
...
|
|
2209
|
+
...ne,
|
|
2151
2210
|
component: {
|
|
2152
2211
|
name: "Text",
|
|
2153
2212
|
options: {
|
|
@@ -2204,19 +2263,19 @@ const Qt = {
|
|
|
2204
2263
|
builderLinkComponent: !0
|
|
2205
2264
|
}
|
|
2206
2265
|
};
|
|
2207
|
-
function
|
|
2208
|
-
var
|
|
2209
|
-
const [t, n] =
|
|
2266
|
+
function dn(e) {
|
|
2267
|
+
var a;
|
|
2268
|
+
const [t, n] = E(
|
|
2210
2269
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2211
2270
|
);
|
|
2212
|
-
function i(
|
|
2213
|
-
return e.tabs && e.tabs[
|
|
2271
|
+
function i(r) {
|
|
2272
|
+
return e.tabs && e.tabs[r].content;
|
|
2214
2273
|
}
|
|
2215
|
-
function o(
|
|
2216
|
-
|
|
2274
|
+
function o(r) {
|
|
2275
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2217
2276
|
}
|
|
2218
|
-
return /* @__PURE__ */
|
|
2219
|
-
/* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ N("div", { children: [
|
|
2278
|
+
/* @__PURE__ */ l(
|
|
2220
2279
|
"div",
|
|
2221
2280
|
{
|
|
2222
2281
|
className: "builder-tabs-wrap",
|
|
@@ -2226,31 +2285,31 @@ function Zt(e) {
|
|
|
2226
2285
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2227
2286
|
overflow: "auto"
|
|
2228
2287
|
},
|
|
2229
|
-
children: (
|
|
2288
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
|
|
2230
2289
|
"span",
|
|
2231
2290
|
{
|
|
2232
|
-
className: `builder-tab-wrap ${t ===
|
|
2291
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2233
2292
|
style: {
|
|
2234
|
-
...t ===
|
|
2293
|
+
...t === s ? e.activeTabStyle : {}
|
|
2235
2294
|
},
|
|
2236
|
-
onClick: (d) => o(
|
|
2237
|
-
children: /* @__PURE__ */
|
|
2295
|
+
onClick: (d) => o(s),
|
|
2296
|
+
children: /* @__PURE__ */ l(
|
|
2238
2297
|
F,
|
|
2239
2298
|
{
|
|
2240
2299
|
parent: e.builderBlock.id,
|
|
2241
|
-
path: `tabs.${
|
|
2242
|
-
blocks:
|
|
2300
|
+
path: `tabs.${s}.label`,
|
|
2301
|
+
blocks: r.label,
|
|
2243
2302
|
context: e.builderContext,
|
|
2244
2303
|
registeredComponents: e.builderComponents,
|
|
2245
2304
|
linkComponent: e.builderLinkComponent
|
|
2246
2305
|
}
|
|
2247
2306
|
)
|
|
2248
2307
|
},
|
|
2249
|
-
|
|
2308
|
+
s
|
|
2250
2309
|
))
|
|
2251
2310
|
}
|
|
2252
2311
|
),
|
|
2253
|
-
i(t) ? /* @__PURE__ */
|
|
2312
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2254
2313
|
F,
|
|
2255
2314
|
{
|
|
2256
2315
|
parent: e.builderBlock.id,
|
|
@@ -2263,7 +2322,7 @@ function Zt(e) {
|
|
|
2263
2322
|
) }) : null
|
|
2264
2323
|
] });
|
|
2265
2324
|
}
|
|
2266
|
-
const
|
|
2325
|
+
const un = {
|
|
2267
2326
|
shouldReceiveBuilderProps: {
|
|
2268
2327
|
builderBlock: !1,
|
|
2269
2328
|
builderContext: !0
|
|
@@ -2286,38 +2345,20 @@ const en = {
|
|
|
2286
2345
|
textAlign: "center"
|
|
2287
2346
|
}
|
|
2288
2347
|
};
|
|
2289
|
-
function
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
const n = e.builderContext, {
|
|
2293
|
-
context: i,
|
|
2294
|
-
localState: o,
|
|
2295
|
-
rootState: r,
|
|
2296
|
-
rootSetState: a
|
|
2297
|
-
} = n;
|
|
2298
|
-
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2299
|
-
/{{([^}]+)}}/g,
|
|
2300
|
-
(d, c) => O({
|
|
2301
|
-
code: c,
|
|
2302
|
-
context: i,
|
|
2303
|
-
localState: o,
|
|
2304
|
-
rootState: r,
|
|
2305
|
-
rootSetState: a
|
|
2306
|
-
})
|
|
2307
|
-
);
|
|
2308
|
-
}
|
|
2309
|
-
return /* @__PURE__ */ s(
|
|
2348
|
+
function mn(e) {
|
|
2349
|
+
var t;
|
|
2350
|
+
return /* @__PURE__ */ l(
|
|
2310
2351
|
"div",
|
|
2311
2352
|
{
|
|
2312
2353
|
className: "builder-text",
|
|
2313
|
-
dangerouslySetInnerHTML: { __html: t() },
|
|
2354
|
+
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
2314
2355
|
style: {
|
|
2315
2356
|
outline: "none"
|
|
2316
2357
|
}
|
|
2317
2358
|
}
|
|
2318
2359
|
);
|
|
2319
2360
|
}
|
|
2320
|
-
const
|
|
2361
|
+
const fn = {
|
|
2321
2362
|
name: "Custom Code",
|
|
2322
2363
|
static: !0,
|
|
2323
2364
|
requiredPermissions: ["editCode"],
|
|
@@ -2340,15 +2381,15 @@ const nn = {
|
|
|
2340
2381
|
advanced: !0
|
|
2341
2382
|
}]
|
|
2342
2383
|
};
|
|
2343
|
-
function
|
|
2344
|
-
const t =
|
|
2345
|
-
return
|
|
2346
|
-
var
|
|
2347
|
-
if (!((
|
|
2384
|
+
function hn(e) {
|
|
2385
|
+
const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2386
|
+
return A(() => {
|
|
2387
|
+
var s;
|
|
2388
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2348
2389
|
return;
|
|
2349
|
-
const
|
|
2350
|
-
for (let d = 0; d <
|
|
2351
|
-
const c =
|
|
2390
|
+
const r = t.current.getElementsByTagName("script");
|
|
2391
|
+
for (let d = 0; d < r.length; d++) {
|
|
2392
|
+
const c = r[d];
|
|
2352
2393
|
if (c.src) {
|
|
2353
2394
|
if (n.includes(c.src))
|
|
2354
2395
|
continue;
|
|
@@ -2369,7 +2410,7 @@ function on(e) {
|
|
|
2369
2410
|
}
|
|
2370
2411
|
}
|
|
2371
2412
|
}
|
|
2372
|
-
}, []), /* @__PURE__ */
|
|
2413
|
+
}, []), /* @__PURE__ */ l(
|
|
2373
2414
|
"div",
|
|
2374
2415
|
{
|
|
2375
2416
|
ref: t,
|
|
@@ -2378,7 +2419,7 @@ function on(e) {
|
|
|
2378
2419
|
}
|
|
2379
2420
|
);
|
|
2380
2421
|
}
|
|
2381
|
-
const
|
|
2422
|
+
const gn = {
|
|
2382
2423
|
name: "Embed",
|
|
2383
2424
|
static: !0,
|
|
2384
2425
|
inputs: [{
|
|
@@ -2393,9 +2434,9 @@ const an = {
|
|
|
2393
2434
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2394
2435
|
hideFromUI: !0
|
|
2395
2436
|
}]
|
|
2396
|
-
},
|
|
2397
|
-
function
|
|
2398
|
-
const t =
|
|
2437
|
+
}, bn = ["text/javascript", "application/javascript", "application/ecmascript"], pn = (e) => bn.includes(e.type);
|
|
2438
|
+
function yn(e) {
|
|
2439
|
+
const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []), [r, s] = E(() => !1);
|
|
2399
2440
|
function d() {
|
|
2400
2441
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2401
2442
|
return;
|
|
@@ -2406,7 +2447,7 @@ function sn(e) {
|
|
|
2406
2447
|
n.push(g.src);
|
|
2407
2448
|
const m = document.createElement("script");
|
|
2408
2449
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2409
|
-
} else if (
|
|
2450
|
+
} else if (pn(g) && !o.includes(g.innerText))
|
|
2410
2451
|
try {
|
|
2411
2452
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2412
2453
|
} catch (m) {
|
|
@@ -2414,9 +2455,9 @@ function sn(e) {
|
|
|
2414
2455
|
}
|
|
2415
2456
|
}
|
|
2416
2457
|
}
|
|
2417
|
-
return
|
|
2418
|
-
t.current && !
|
|
2419
|
-
}, [t.current,
|
|
2458
|
+
return A(() => {
|
|
2459
|
+
t.current && !r && (s(!0), d());
|
|
2460
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2420
2461
|
"div",
|
|
2421
2462
|
{
|
|
2422
2463
|
className: "builder-embed",
|
|
@@ -2425,7 +2466,7 @@ function sn(e) {
|
|
|
2425
2466
|
}
|
|
2426
2467
|
);
|
|
2427
2468
|
}
|
|
2428
|
-
const
|
|
2469
|
+
const xn = {
|
|
2429
2470
|
name: "Form:Form",
|
|
2430
2471
|
// editableTags: ['builder-form-error']
|
|
2431
2472
|
defaults: {
|
|
@@ -2662,119 +2703,119 @@ const cn = {
|
|
|
2662
2703
|
builderComponents: !0,
|
|
2663
2704
|
builderLinkComponent: !0
|
|
2664
2705
|
}
|
|
2665
|
-
},
|
|
2706
|
+
}, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
|
|
2666
2707
|
const e = process.env.NODE_ENV || "production";
|
|
2667
|
-
return
|
|
2708
|
+
return vn.includes(e) ? e : "production";
|
|
2668
2709
|
};
|
|
2669
|
-
function
|
|
2710
|
+
function kn(e) {
|
|
2670
2711
|
var g, m;
|
|
2671
|
-
const t =
|
|
2672
|
-
function d(
|
|
2673
|
-
var
|
|
2712
|
+
const t = O(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, s] = E(() => "");
|
|
2713
|
+
function d(y) {
|
|
2714
|
+
var v, x;
|
|
2674
2715
|
const f = {
|
|
2675
2716
|
...e.builderContext.rootState,
|
|
2676
|
-
...
|
|
2717
|
+
...y
|
|
2677
2718
|
};
|
|
2678
|
-
e.builderContext.rootSetState ? (
|
|
2719
|
+
e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
|
|
2679
2720
|
}
|
|
2680
2721
|
function c() {
|
|
2681
2722
|
return W() && e.previewState || n;
|
|
2682
2723
|
}
|
|
2683
|
-
function h(
|
|
2684
|
-
var
|
|
2724
|
+
function h(y) {
|
|
2725
|
+
var v;
|
|
2685
2726
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2686
2727
|
if (e.sendSubmissionsTo === "zapier")
|
|
2687
|
-
|
|
2728
|
+
y.preventDefault();
|
|
2688
2729
|
else if (f) {
|
|
2689
2730
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2690
|
-
|
|
2731
|
+
y.preventDefault();
|
|
2691
2732
|
return;
|
|
2692
2733
|
}
|
|
2693
|
-
|
|
2694
|
-
const
|
|
2695
|
-
let
|
|
2696
|
-
const
|
|
2697
|
-
let
|
|
2698
|
-
const
|
|
2734
|
+
y.preventDefault();
|
|
2735
|
+
const x = y.currentTarget || y.target, b = e.customHeaders || {};
|
|
2736
|
+
let p;
|
|
2737
|
+
const C = new FormData(x), V = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2738
|
+
let S;
|
|
2739
|
+
const P = u.name;
|
|
2699
2740
|
if (u instanceof HTMLInputElement)
|
|
2700
2741
|
if (u.type === "radio") {
|
|
2701
2742
|
if (u.checked)
|
|
2702
|
-
return
|
|
2703
|
-
key:
|
|
2704
|
-
value:
|
|
2743
|
+
return S = u.name, {
|
|
2744
|
+
key: P,
|
|
2745
|
+
value: S
|
|
2705
2746
|
};
|
|
2706
2747
|
} else if (u.type === "checkbox")
|
|
2707
|
-
|
|
2748
|
+
S = u.checked;
|
|
2708
2749
|
else if (u.type === "number" || u.type === "range") {
|
|
2709
|
-
const
|
|
2710
|
-
isNaN(
|
|
2750
|
+
const w = u.valueAsNumber;
|
|
2751
|
+
isNaN(w) || (S = w);
|
|
2711
2752
|
} else
|
|
2712
|
-
u.type === "file" ?
|
|
2753
|
+
u.type === "file" ? S = u.files : S = u.value;
|
|
2713
2754
|
else
|
|
2714
|
-
|
|
2755
|
+
S = u.value;
|
|
2715
2756
|
return {
|
|
2716
|
-
key:
|
|
2717
|
-
value:
|
|
2757
|
+
key: P,
|
|
2758
|
+
value: S
|
|
2718
2759
|
};
|
|
2719
2760
|
});
|
|
2720
2761
|
let k = e.contentType;
|
|
2721
|
-
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(
|
|
2762
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
|
|
2722
2763
|
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2723
2764
|
}), k !== "application/json")
|
|
2724
|
-
|
|
2765
|
+
p = C;
|
|
2725
2766
|
else {
|
|
2726
2767
|
const u = {};
|
|
2727
|
-
Array.from(
|
|
2728
|
-
|
|
2729
|
-
}),
|
|
2768
|
+
Array.from(V).forEach(({ value: S, key: P }) => {
|
|
2769
|
+
Ne(u, P, S);
|
|
2770
|
+
}), p = JSON.stringify(u);
|
|
2730
2771
|
}
|
|
2731
|
-
k && k !== "multipart/form-data" && (f && ((
|
|
2732
|
-
const
|
|
2733
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2772
|
+
k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
|
|
2773
|
+
const I = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2774
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2734
2775
|
return;
|
|
2735
2776
|
i("sending");
|
|
2736
|
-
const
|
|
2777
|
+
const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2737
2778
|
e.sendSubmissionsToEmail || ""
|
|
2738
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2739
|
-
|
|
2779
|
+
)}&name=${encodeURIComponent(e.name || "")}`, B = e.sendSubmissionsTo === "email" ? R : e.action;
|
|
2780
|
+
Ie(B), fetch(B, { body: p, headers: b, method: e.method || "post" }).then(
|
|
2740
2781
|
async (u) => {
|
|
2741
|
-
let
|
|
2742
|
-
const
|
|
2743
|
-
if (
|
|
2744
|
-
let
|
|
2745
|
-
|
|
2782
|
+
let S;
|
|
2783
|
+
const P = u.headers.get("content-type");
|
|
2784
|
+
if (P && P.indexOf("application/json") !== -1 ? S = await u.json() : S = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2785
|
+
let w = Be(S, e.errorMessagePath);
|
|
2786
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), s(w), d({ formErrorMessage: w }));
|
|
2746
2787
|
}
|
|
2747
|
-
if (
|
|
2748
|
-
const
|
|
2749
|
-
detail: { res: u, body:
|
|
2788
|
+
if (a(S), i(u.ok ? "success" : "error"), u.ok) {
|
|
2789
|
+
const w = new CustomEvent("submit:success", {
|
|
2790
|
+
detail: { res: u, body: S }
|
|
2750
2791
|
});
|
|
2751
2792
|
if (t.current) {
|
|
2752
|
-
if (t.current.dispatchEvent(
|
|
2793
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2753
2794
|
return;
|
|
2754
2795
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2755
2796
|
}
|
|
2756
2797
|
if (e.successUrl)
|
|
2757
2798
|
if (t.current) {
|
|
2758
|
-
const
|
|
2799
|
+
const L = new CustomEvent("route", {
|
|
2759
2800
|
detail: { url: e.successUrl }
|
|
2760
2801
|
});
|
|
2761
|
-
t.current.dispatchEvent(
|
|
2802
|
+
t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
|
|
2762
2803
|
} else
|
|
2763
2804
|
location.href = e.successUrl;
|
|
2764
2805
|
}
|
|
2765
2806
|
},
|
|
2766
2807
|
(u) => {
|
|
2767
|
-
const
|
|
2808
|
+
const S = new CustomEvent("submit:error", {
|
|
2768
2809
|
detail: { error: u }
|
|
2769
2810
|
});
|
|
2770
|
-
t.current && (t.current.dispatchEvent(
|
|
2811
|
+
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(u), i("error"));
|
|
2771
2812
|
}
|
|
2772
2813
|
);
|
|
2773
2814
|
}
|
|
2774
2815
|
}
|
|
2775
|
-
return /* @__PURE__ */
|
|
2816
|
+
return /* @__PURE__ */ N(T, { children: [
|
|
2776
2817
|
" ",
|
|
2777
|
-
/* @__PURE__ */
|
|
2818
|
+
/* @__PURE__ */ N(
|
|
2778
2819
|
"form",
|
|
2779
2820
|
{
|
|
2780
2821
|
validate: e.validate,
|
|
@@ -2782,20 +2823,20 @@ function mn(e) {
|
|
|
2782
2823
|
action: !e.sendWithJs && e.action,
|
|
2783
2824
|
method: e.method,
|
|
2784
2825
|
name: e.name,
|
|
2785
|
-
onSubmit: (
|
|
2826
|
+
onSubmit: (y) => h(y),
|
|
2786
2827
|
...e.attributes,
|
|
2787
2828
|
children: [
|
|
2788
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2789
|
-
|
|
2829
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ l(
|
|
2830
|
+
M,
|
|
2790
2831
|
{
|
|
2791
|
-
block:
|
|
2832
|
+
block: y,
|
|
2792
2833
|
context: e.builderContext,
|
|
2793
2834
|
registeredComponents: e.builderComponents,
|
|
2794
2835
|
linkComponent: e.builderLinkComponent
|
|
2795
2836
|
},
|
|
2796
2837
|
`form-block-${f}`
|
|
2797
2838
|
)) }) : null,
|
|
2798
|
-
c() === "error" ? /* @__PURE__ */
|
|
2839
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2799
2840
|
F,
|
|
2800
2841
|
{
|
|
2801
2842
|
path: "errorMessage",
|
|
@@ -2803,7 +2844,7 @@ function mn(e) {
|
|
|
2803
2844
|
context: e.builderContext
|
|
2804
2845
|
}
|
|
2805
2846
|
) : null,
|
|
2806
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2847
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2807
2848
|
F,
|
|
2808
2849
|
{
|
|
2809
2850
|
path: "sendingMessage",
|
|
@@ -2811,8 +2852,8 @@ function mn(e) {
|
|
|
2811
2852
|
context: e.builderContext
|
|
2812
2853
|
}
|
|
2813
2854
|
) : null,
|
|
2814
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2815
|
-
c() === "success" ? /* @__PURE__ */
|
|
2855
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
|
|
2856
|
+
c() === "success" ? /* @__PURE__ */ l(
|
|
2816
2857
|
F,
|
|
2817
2858
|
{
|
|
2818
2859
|
path: "successMessage",
|
|
@@ -2824,11 +2865,11 @@ function mn(e) {
|
|
|
2824
2865
|
}
|
|
2825
2866
|
),
|
|
2826
2867
|
" ",
|
|
2827
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ l("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2828
2869
|
" "
|
|
2829
2870
|
] });
|
|
2830
2871
|
}
|
|
2831
|
-
const
|
|
2872
|
+
const Cn = {
|
|
2832
2873
|
name: "Form:Input",
|
|
2833
2874
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2834
2875
|
inputs: [
|
|
@@ -2880,8 +2921,8 @@ const fn = {
|
|
|
2880
2921
|
borderColor: "#ccc"
|
|
2881
2922
|
}
|
|
2882
2923
|
};
|
|
2883
|
-
function
|
|
2884
|
-
return /* @__PURE__ */
|
|
2924
|
+
function Tn(e) {
|
|
2925
|
+
return /* @__PURE__ */ Re(
|
|
2885
2926
|
"input",
|
|
2886
2927
|
{
|
|
2887
2928
|
...e.attributes,
|
|
@@ -2895,7 +2936,7 @@ function hn(e) {
|
|
|
2895
2936
|
}
|
|
2896
2937
|
);
|
|
2897
2938
|
}
|
|
2898
|
-
const
|
|
2939
|
+
const In = {
|
|
2899
2940
|
name: "Form:Select",
|
|
2900
2941
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2901
2942
|
defaultStyles: {
|
|
@@ -2938,9 +2979,9 @@ const gn = {
|
|
|
2938
2979
|
static: !0,
|
|
2939
2980
|
noWrap: !0
|
|
2940
2981
|
};
|
|
2941
|
-
function
|
|
2982
|
+
function wn(e) {
|
|
2942
2983
|
var t;
|
|
2943
|
-
return /* @__PURE__ */
|
|
2984
|
+
return /* @__PURE__ */ Re(
|
|
2944
2985
|
"select",
|
|
2945
2986
|
{
|
|
2946
2987
|
...e.attributes,
|
|
@@ -2950,10 +2991,10 @@ function bn(e) {
|
|
|
2950
2991
|
name: e.name,
|
|
2951
2992
|
required: e.required
|
|
2952
2993
|
},
|
|
2953
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2994
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2954
2995
|
);
|
|
2955
2996
|
}
|
|
2956
|
-
const
|
|
2997
|
+
const En = {
|
|
2957
2998
|
name: "Form:SubmitButton",
|
|
2958
2999
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2959
3000
|
defaultStyles: {
|
|
@@ -2979,10 +3020,10 @@ const pn = {
|
|
|
2979
3020
|
// TODO: defaultChildren
|
|
2980
3021
|
// canHaveChildren: true,
|
|
2981
3022
|
};
|
|
2982
|
-
function
|
|
2983
|
-
return /* @__PURE__ */
|
|
3023
|
+
function Rn(e) {
|
|
3024
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2984
3025
|
}
|
|
2985
|
-
const
|
|
3026
|
+
const Pn = {
|
|
2986
3027
|
name: "Form:TextArea",
|
|
2987
3028
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2988
3029
|
inputs: [{
|
|
@@ -3019,8 +3060,8 @@ const xn = {
|
|
|
3019
3060
|
static: !0,
|
|
3020
3061
|
noWrap: !0
|
|
3021
3062
|
};
|
|
3022
|
-
function
|
|
3023
|
-
return /* @__PURE__ */
|
|
3063
|
+
function Bn(e) {
|
|
3064
|
+
return /* @__PURE__ */ l(
|
|
3024
3065
|
"textarea",
|
|
3025
3066
|
{
|
|
3026
3067
|
...e.attributes,
|
|
@@ -3032,7 +3073,7 @@ function vn(e) {
|
|
|
3032
3073
|
}
|
|
3033
3074
|
);
|
|
3034
3075
|
}
|
|
3035
|
-
const
|
|
3076
|
+
const Vn = {
|
|
3036
3077
|
// friendlyName?
|
|
3037
3078
|
name: "Raw:Img",
|
|
3038
3079
|
hideFromInsertMenu: !0,
|
|
@@ -3041,14 +3082,14 @@ const Sn = {
|
|
|
3041
3082
|
name: "image",
|
|
3042
3083
|
bubble: !0,
|
|
3043
3084
|
type: "file",
|
|
3044
|
-
allowedFileTypes:
|
|
3085
|
+
allowedFileTypes: de,
|
|
3045
3086
|
required: !0
|
|
3046
3087
|
}],
|
|
3047
3088
|
noWrap: !0,
|
|
3048
3089
|
static: !0
|
|
3049
3090
|
};
|
|
3050
|
-
function
|
|
3051
|
-
return /* @__PURE__ */
|
|
3091
|
+
function An(e) {
|
|
3092
|
+
return /* @__PURE__ */ l(
|
|
3052
3093
|
"img",
|
|
3053
3094
|
{
|
|
3054
3095
|
style: {
|
|
@@ -3062,7 +3103,7 @@ function kn(e) {
|
|
|
3062
3103
|
W() && e.imgSrc || "default-key"
|
|
3063
3104
|
);
|
|
3064
3105
|
}
|
|
3065
|
-
const
|
|
3106
|
+
const Nn = {
|
|
3066
3107
|
name: "Video",
|
|
3067
3108
|
canHaveChildren: !0,
|
|
3068
3109
|
defaultStyles: {
|
|
@@ -3073,14 +3114,14 @@ const Cn = {
|
|
|
3073
3114
|
inputs: [{
|
|
3074
3115
|
name: "video",
|
|
3075
3116
|
type: "file",
|
|
3076
|
-
allowedFileTypes:
|
|
3117
|
+
allowedFileTypes: nn,
|
|
3077
3118
|
bubble: !0,
|
|
3078
3119
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3079
3120
|
required: !0
|
|
3080
3121
|
}, {
|
|
3081
3122
|
name: "posterImage",
|
|
3082
3123
|
type: "file",
|
|
3083
|
-
allowedFileTypes:
|
|
3124
|
+
allowedFileTypes: de,
|
|
3084
3125
|
helperText: "Image to show before the video plays"
|
|
3085
3126
|
}, {
|
|
3086
3127
|
name: "autoPlay",
|
|
@@ -3147,8 +3188,8 @@ const Cn = {
|
|
|
3147
3188
|
builderBlock: !0
|
|
3148
3189
|
}
|
|
3149
3190
|
};
|
|
3150
|
-
function
|
|
3151
|
-
var i, o,
|
|
3191
|
+
function Wn(e) {
|
|
3192
|
+
var i, o, a, r, s, d, c;
|
|
3152
3193
|
function t() {
|
|
3153
3194
|
return {
|
|
3154
3195
|
...e.autoPlay === !0 ? {
|
|
@@ -3173,14 +3214,14 @@ function Tn(e) {
|
|
|
3173
3214
|
...t()
|
|
3174
3215
|
};
|
|
3175
3216
|
}
|
|
3176
|
-
return /* @__PURE__ */
|
|
3217
|
+
return /* @__PURE__ */ N(
|
|
3177
3218
|
"div",
|
|
3178
3219
|
{
|
|
3179
3220
|
style: {
|
|
3180
3221
|
position: "relative"
|
|
3181
3222
|
},
|
|
3182
3223
|
children: [
|
|
3183
|
-
/* @__PURE__ */
|
|
3224
|
+
/* @__PURE__ */ l(
|
|
3184
3225
|
"video",
|
|
3185
3226
|
{
|
|
3186
3227
|
className: "builder-video",
|
|
@@ -3202,10 +3243,10 @@ function Tn(e) {
|
|
|
3202
3243
|
},
|
|
3203
3244
|
src: e.video || "no-src",
|
|
3204
3245
|
poster: e.posterImage,
|
|
3205
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3246
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3206
3247
|
}
|
|
3207
3248
|
),
|
|
3208
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3249
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
3209
3250
|
"div",
|
|
3210
3251
|
{
|
|
3211
3252
|
style: {
|
|
@@ -3216,7 +3257,7 @@ function Tn(e) {
|
|
|
3216
3257
|
}
|
|
3217
3258
|
}
|
|
3218
3259
|
) : null,
|
|
3219
|
-
(
|
|
3260
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3220
3261
|
"div",
|
|
3221
3262
|
{
|
|
3222
3263
|
style: {
|
|
@@ -3227,7 +3268,7 @@ function Tn(e) {
|
|
|
3227
3268
|
children: e.children
|
|
3228
3269
|
}
|
|
3229
3270
|
) : null,
|
|
3230
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3271
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
3231
3272
|
"div",
|
|
3232
3273
|
{
|
|
3233
3274
|
style: {
|
|
@@ -3248,64 +3289,64 @@ function Tn(e) {
|
|
|
3248
3289
|
}
|
|
3249
3290
|
);
|
|
3250
3291
|
}
|
|
3251
|
-
const
|
|
3252
|
-
component: on,
|
|
3253
|
-
...nn
|
|
3254
|
-
}, {
|
|
3255
|
-
component: sn,
|
|
3256
|
-
...an
|
|
3257
|
-
}, {
|
|
3258
|
-
component: mn,
|
|
3259
|
-
...cn
|
|
3260
|
-
}, {
|
|
3292
|
+
const Fn = () => [{
|
|
3261
3293
|
component: hn,
|
|
3262
3294
|
...fn
|
|
3263
3295
|
}, {
|
|
3264
3296
|
component: yn,
|
|
3265
|
-
...pn
|
|
3266
|
-
}, {
|
|
3267
|
-
component: bn,
|
|
3268
3297
|
...gn
|
|
3269
|
-
}, {
|
|
3270
|
-
component: vn,
|
|
3271
|
-
...xn
|
|
3272
3298
|
}, {
|
|
3273
3299
|
component: kn,
|
|
3274
|
-
...
|
|
3300
|
+
...xn
|
|
3275
3301
|
}, {
|
|
3276
3302
|
component: Tn,
|
|
3277
3303
|
...Cn
|
|
3278
|
-
}], pe = () => [{
|
|
3279
|
-
component: Ge,
|
|
3280
|
-
..._t
|
|
3281
3304
|
}, {
|
|
3282
|
-
component:
|
|
3283
|
-
...
|
|
3305
|
+
component: Rn,
|
|
3306
|
+
...En
|
|
3307
|
+
}, {
|
|
3308
|
+
component: wn,
|
|
3309
|
+
...In
|
|
3310
|
+
}, {
|
|
3311
|
+
component: Bn,
|
|
3312
|
+
...Pn
|
|
3284
3313
|
}, {
|
|
3285
|
-
component:
|
|
3286
|
-
...
|
|
3314
|
+
component: An,
|
|
3315
|
+
...Vn
|
|
3287
3316
|
}, {
|
|
3288
|
-
component:
|
|
3289
|
-
...
|
|
3317
|
+
component: Wn,
|
|
3318
|
+
...Nn
|
|
3319
|
+
}], ve = () => [{
|
|
3320
|
+
component: et,
|
|
3321
|
+
...Zt
|
|
3322
|
+
}, {
|
|
3323
|
+
component: qt,
|
|
3324
|
+
...en
|
|
3290
3325
|
}, {
|
|
3291
|
-
component:
|
|
3292
|
-
...
|
|
3326
|
+
component: zt,
|
|
3327
|
+
...tn
|
|
3328
|
+
}, {
|
|
3329
|
+
component: Gt,
|
|
3330
|
+
...on
|
|
3293
3331
|
}, {
|
|
3294
3332
|
component: Yt,
|
|
3295
|
-
...
|
|
3333
|
+
...an
|
|
3296
3334
|
}, {
|
|
3297
|
-
component:
|
|
3298
|
-
...
|
|
3335
|
+
component: ln,
|
|
3336
|
+
...rn
|
|
3299
3337
|
}, {
|
|
3300
|
-
component:
|
|
3301
|
-
...
|
|
3338
|
+
component: ai,
|
|
3339
|
+
...sn
|
|
3340
|
+
}, {
|
|
3341
|
+
component: mn,
|
|
3342
|
+
...un
|
|
3302
3343
|
}, {
|
|
3303
|
-
component:
|
|
3304
|
-
...
|
|
3344
|
+
component: dn,
|
|
3345
|
+
...cn
|
|
3305
3346
|
}, {
|
|
3306
|
-
component:
|
|
3307
|
-
...
|
|
3308
|
-
}, ...
|
|
3347
|
+
component: Xt,
|
|
3348
|
+
...Qt
|
|
3349
|
+
}, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3309
3350
|
function getAndSetVariantId() {
|
|
3310
3351
|
function setCookie(name, value, days) {
|
|
3311
3352
|
let expires = '';
|
|
@@ -3361,7 +3402,7 @@ const In = () => [{
|
|
|
3361
3402
|
}).join('');
|
|
3362
3403
|
styleEl.innerHTML = newStyleStr;
|
|
3363
3404
|
}
|
|
3364
|
-
}`,
|
|
3405
|
+
}`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3365
3406
|
if (!navigator.cookieEnabled) {
|
|
3366
3407
|
return;
|
|
3367
3408
|
}
|
|
@@ -3395,27 +3436,27 @@ const In = () => [{
|
|
|
3395
3436
|
thisScriptEl?.remove();
|
|
3396
3437
|
}
|
|
3397
3438
|
return;
|
|
3398
|
-
}`,
|
|
3439
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3399
3440
|
...t,
|
|
3400
3441
|
testVariationId: t.id,
|
|
3401
3442
|
id: e == null ? void 0 : e.id
|
|
3402
|
-
})),
|
|
3443
|
+
})), On = ({
|
|
3403
3444
|
canTrack: e,
|
|
3404
3445
|
content: t
|
|
3405
|
-
}) => !(!(q(t).length > 0) || !e ||
|
|
3406
|
-
window.${
|
|
3407
|
-
window.${
|
|
3408
|
-
`,
|
|
3409
|
-
window.${
|
|
3410
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3411
|
-
)`,
|
|
3446
|
+
}) => !(!(q(t).length > 0) || !e || D()), Dn = (e) => e === "react" || e === "reactNative", qe = Dn($), Un = () => `
|
|
3447
|
+
window.${Me} = ${$n}
|
|
3448
|
+
window.${je} = ${Ln}
|
|
3449
|
+
`, _n = (e, t) => `
|
|
3450
|
+
window.${Me}(
|
|
3451
|
+
"${t}",${JSON.stringify(e)}, ${qe}
|
|
3452
|
+
)`, Hn = ({
|
|
3412
3453
|
contentId: e,
|
|
3413
3454
|
variationId: t
|
|
3414
|
-
}) => `window.${
|
|
3415
|
-
"${t}", "${e}", ${
|
|
3455
|
+
}) => `window.${je}(
|
|
3456
|
+
"${t}", "${e}", ${qe}
|
|
3416
3457
|
)`;
|
|
3417
|
-
function
|
|
3418
|
-
return /* @__PURE__ */
|
|
3458
|
+
function oe(e) {
|
|
3459
|
+
return /* @__PURE__ */ l(
|
|
3419
3460
|
"script",
|
|
3420
3461
|
{
|
|
3421
3462
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3424,10 +3465,10 @@ function ie(e) {
|
|
|
3424
3465
|
}
|
|
3425
3466
|
);
|
|
3426
3467
|
}
|
|
3427
|
-
function
|
|
3468
|
+
function Se(e) {
|
|
3428
3469
|
return Math.round(e * 1e3) / 1e3;
|
|
3429
3470
|
}
|
|
3430
|
-
const
|
|
3471
|
+
const Mn = (e, t, n = !0) => {
|
|
3431
3472
|
if (!(e instanceof HTMLElement))
|
|
3432
3473
|
return null;
|
|
3433
3474
|
let i = n ? e : e.parentElement;
|
|
@@ -3438,37 +3479,37 @@ const Nn = (e, t, n = !0) => {
|
|
|
3438
3479
|
return i;
|
|
3439
3480
|
} while (i = i.parentElement);
|
|
3440
3481
|
return null;
|
|
3441
|
-
},
|
|
3482
|
+
}, jn = (e) => Mn(e, (t) => {
|
|
3442
3483
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3443
3484
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3444
|
-
}),
|
|
3485
|
+
}), ke = ({
|
|
3445
3486
|
event: e,
|
|
3446
3487
|
target: t
|
|
3447
3488
|
}) => {
|
|
3448
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3489
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Se(i / n.width), r = Se(o / n.height);
|
|
3449
3490
|
return {
|
|
3450
|
-
x:
|
|
3451
|
-
y:
|
|
3491
|
+
x: a,
|
|
3492
|
+
y: r
|
|
3452
3493
|
};
|
|
3453
|
-
},
|
|
3454
|
-
const t = e.target, n = t &&
|
|
3494
|
+
}, qn = (e) => {
|
|
3495
|
+
const t = e.target, n = t && jn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3455
3496
|
return {
|
|
3456
3497
|
targetBuilderElement: i || void 0,
|
|
3457
3498
|
metadata: {
|
|
3458
|
-
targetOffset: t ?
|
|
3499
|
+
targetOffset: t ? ke({
|
|
3459
3500
|
event: e,
|
|
3460
3501
|
target: t
|
|
3461
3502
|
}) : void 0,
|
|
3462
|
-
builderTargetOffset: n ?
|
|
3503
|
+
builderTargetOffset: n ? ke({
|
|
3463
3504
|
event: e,
|
|
3464
3505
|
target: n
|
|
3465
3506
|
}) : void 0,
|
|
3466
3507
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3467
3508
|
}
|
|
3468
3509
|
};
|
|
3469
|
-
}, $
|
|
3470
|
-
var
|
|
3471
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3510
|
+
}, zn = ["svelte", "qwik", "vue"], Ce = () => zn.includes($) && (W() || ae()), Kn = (e) => {
|
|
3511
|
+
var a, r;
|
|
3512
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3472
3513
|
let o = "";
|
|
3473
3514
|
if (i && t && n && (o += `
|
|
3474
3515
|
@font-face {
|
|
@@ -3478,29 +3519,29 @@ font-display: fallback;
|
|
|
3478
3519
|
font-weight: 400;
|
|
3479
3520
|
}
|
|
3480
3521
|
`.trim()), e.files)
|
|
3481
|
-
for (const
|
|
3482
|
-
if (!(String(Number(
|
|
3522
|
+
for (const s in e.files) {
|
|
3523
|
+
if (!(String(Number(s)) === s))
|
|
3483
3524
|
continue;
|
|
3484
|
-
const c = e.files[
|
|
3525
|
+
const c = e.files[s];
|
|
3485
3526
|
c && c !== i && (o += `
|
|
3486
3527
|
@font-face {
|
|
3487
3528
|
font-family: "${t}";
|
|
3488
3529
|
src: url('${c}') format('woff2');
|
|
3489
3530
|
font-display: fallback;
|
|
3490
|
-
font-weight: ${
|
|
3531
|
+
font-weight: ${s};
|
|
3491
3532
|
}
|
|
3492
3533
|
`.trim());
|
|
3493
3534
|
}
|
|
3494
3535
|
return o;
|
|
3495
|
-
},
|
|
3536
|
+
}, Jn = ({
|
|
3496
3537
|
customFonts: e
|
|
3497
3538
|
}) => {
|
|
3498
3539
|
var t;
|
|
3499
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3500
|
-
},
|
|
3540
|
+
return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3541
|
+
}, Gn = ({
|
|
3501
3542
|
cssCode: e,
|
|
3502
3543
|
contentId: t
|
|
3503
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3544
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yn = `
|
|
3504
3545
|
.builder-button {
|
|
3505
3546
|
all: unset;
|
|
3506
3547
|
}
|
|
@@ -3517,39 +3558,39 @@ font-weight: ${l};
|
|
|
3517
3558
|
text-align: inherit;
|
|
3518
3559
|
font-family: inherit;
|
|
3519
3560
|
}
|
|
3520
|
-
`,
|
|
3521
|
-
function
|
|
3522
|
-
var
|
|
3523
|
-
const t =
|
|
3561
|
+
`, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
|
|
3562
|
+
function Zn(e) {
|
|
3563
|
+
var p, C, V;
|
|
3564
|
+
const t = O(null);
|
|
3524
3565
|
function n(k) {
|
|
3525
|
-
var
|
|
3526
|
-
const
|
|
3566
|
+
var R, B;
|
|
3567
|
+
const I = {
|
|
3527
3568
|
...e.builderContextSignal.rootState,
|
|
3528
3569
|
...k
|
|
3529
3570
|
};
|
|
3530
|
-
e.builderContextSignal.rootSetState ? (
|
|
3571
|
+
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, I) : e.setBuilderContextSignal((u) => ({
|
|
3531
3572
|
...u,
|
|
3532
|
-
rootState:
|
|
3573
|
+
rootState: I
|
|
3533
3574
|
}));
|
|
3534
3575
|
}
|
|
3535
3576
|
function i(k) {
|
|
3536
|
-
var
|
|
3537
|
-
const
|
|
3577
|
+
var R, B, u, S, P;
|
|
3578
|
+
const I = {
|
|
3538
3579
|
...e.builderContextSignal.content,
|
|
3539
3580
|
...k,
|
|
3540
3581
|
data: {
|
|
3541
|
-
...(
|
|
3582
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
|
|
3542
3583
|
...k == null ? void 0 : k.data
|
|
3543
3584
|
},
|
|
3544
3585
|
meta: {
|
|
3545
|
-
...(
|
|
3586
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
|
|
3546
3587
|
...k == null ? void 0 : k.meta,
|
|
3547
|
-
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((
|
|
3588
|
+
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((P = (S = e.builderContextSignal.content) == null ? void 0 : S.meta) == null ? void 0 : P.breakpoints)
|
|
3548
3589
|
}
|
|
3549
3590
|
};
|
|
3550
|
-
e.setBuilderContextSignal((
|
|
3551
|
-
...
|
|
3552
|
-
content:
|
|
3591
|
+
e.setBuilderContextSignal((w) => ({
|
|
3592
|
+
...w,
|
|
3593
|
+
content: I
|
|
3553
3594
|
}));
|
|
3554
3595
|
}
|
|
3555
3596
|
function o() {
|
|
@@ -3558,62 +3599,62 @@ function jn(e) {
|
|
|
3558
3599
|
"aria-hidden": !0
|
|
3559
3600
|
};
|
|
3560
3601
|
}
|
|
3561
|
-
const [
|
|
3602
|
+
const [a, r] = E(
|
|
3562
3603
|
() => e.contentWrapper || "div"
|
|
3563
3604
|
);
|
|
3564
|
-
function
|
|
3565
|
-
return
|
|
3605
|
+
function s(k) {
|
|
3606
|
+
return Ye({
|
|
3566
3607
|
model: e.model,
|
|
3567
3608
|
trustedHosts: e.trustedHosts,
|
|
3568
3609
|
callbacks: {
|
|
3569
|
-
configureSdk: (
|
|
3610
|
+
configureSdk: (I) => {
|
|
3570
3611
|
var u;
|
|
3571
|
-
const { breakpoints:
|
|
3572
|
-
!
|
|
3612
|
+
const { breakpoints: R, contentId: B } = I;
|
|
3613
|
+
!B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
|
|
3573
3614
|
meta: {
|
|
3574
|
-
breakpoints:
|
|
3615
|
+
breakpoints: R
|
|
3575
3616
|
}
|
|
3576
3617
|
});
|
|
3577
3618
|
},
|
|
3578
|
-
animation: (
|
|
3579
|
-
|
|
3619
|
+
animation: (I) => {
|
|
3620
|
+
$e(I);
|
|
3580
3621
|
},
|
|
3581
|
-
contentUpdate: (
|
|
3582
|
-
i(
|
|
3622
|
+
contentUpdate: (I) => {
|
|
3623
|
+
i(I);
|
|
3583
3624
|
}
|
|
3584
3625
|
}
|
|
3585
3626
|
})(k);
|
|
3586
3627
|
}
|
|
3587
|
-
const [d, c] =
|
|
3628
|
+
const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
|
|
3588
3629
|
function f(k) {
|
|
3589
|
-
var
|
|
3630
|
+
var I, R;
|
|
3590
3631
|
if (e.builderContextSignal.content) {
|
|
3591
|
-
const
|
|
3592
|
-
|
|
3632
|
+
const B = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
|
|
3633
|
+
ue({
|
|
3593
3634
|
apiHost: e.apiHost,
|
|
3594
3635
|
type: "click",
|
|
3595
|
-
canTrack:
|
|
3636
|
+
canTrack: K(e.canTrack),
|
|
3596
3637
|
contentId: u,
|
|
3597
3638
|
apiKey: e.apiKey,
|
|
3598
|
-
variationId:
|
|
3599
|
-
...
|
|
3639
|
+
variationId: B !== u ? B : void 0,
|
|
3640
|
+
...qn(k),
|
|
3600
3641
|
unique: !m
|
|
3601
3642
|
});
|
|
3602
3643
|
}
|
|
3603
|
-
m ||
|
|
3644
|
+
m || y(!0);
|
|
3604
3645
|
}
|
|
3605
|
-
function
|
|
3606
|
-
var
|
|
3607
|
-
const k = (
|
|
3608
|
-
Object.entries(k).forEach(([u,
|
|
3609
|
-
if (!
|
|
3646
|
+
function v() {
|
|
3647
|
+
var I, R, B;
|
|
3648
|
+
const k = (B = (R = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : R.httpRequests) != null ? B : {};
|
|
3649
|
+
Object.entries(k).forEach(([u, S]) => {
|
|
3650
|
+
if (!S || h[u] || d[u] && !W())
|
|
3610
3651
|
return;
|
|
3611
3652
|
h[u] = !0;
|
|
3612
|
-
const
|
|
3653
|
+
const P = S.replace(
|
|
3613
3654
|
/{{([^}]+)}}/g,
|
|
3614
|
-
(
|
|
3615
|
-
|
|
3616
|
-
code:
|
|
3655
|
+
(w, L) => String(
|
|
3656
|
+
U({
|
|
3657
|
+
code: L,
|
|
3617
3658
|
context: e.context || {},
|
|
3618
3659
|
localState: void 0,
|
|
3619
3660
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3621,24 +3662,24 @@ function jn(e) {
|
|
|
3621
3662
|
})
|
|
3622
3663
|
)
|
|
3623
3664
|
);
|
|
3624
|
-
|
|
3665
|
+
Ie(P), fetch(P).then((w) => w.json()).then((w) => {
|
|
3625
3666
|
n({
|
|
3626
|
-
[u]:
|
|
3667
|
+
[u]: w
|
|
3627
3668
|
}), d[u] = !0;
|
|
3628
|
-
}).catch((
|
|
3629
|
-
console.error("error fetching dynamic data",
|
|
3669
|
+
}).catch((w) => {
|
|
3670
|
+
console.error("error fetching dynamic data", S, w);
|
|
3630
3671
|
}).finally(() => {
|
|
3631
3672
|
h[u] = !1;
|
|
3632
3673
|
});
|
|
3633
3674
|
});
|
|
3634
3675
|
}
|
|
3635
|
-
function
|
|
3676
|
+
function x() {
|
|
3636
3677
|
W() && window.dispatchEvent(
|
|
3637
3678
|
new CustomEvent(
|
|
3638
3679
|
"builder:component:stateChange",
|
|
3639
3680
|
{
|
|
3640
3681
|
detail: {
|
|
3641
|
-
state:
|
|
3682
|
+
state: se(e.builderContextSignal.rootState),
|
|
3642
3683
|
ref: {
|
|
3643
3684
|
name: e.model
|
|
3644
3685
|
}
|
|
@@ -3647,11 +3688,11 @@ function jn(e) {
|
|
|
3647
3688
|
)
|
|
3648
3689
|
);
|
|
3649
3690
|
}
|
|
3650
|
-
const
|
|
3651
|
-
return
|
|
3652
|
-
var k,
|
|
3653
|
-
if (
|
|
3654
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
3691
|
+
const b = O(!1);
|
|
3692
|
+
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3693
|
+
var k, I, R;
|
|
3694
|
+
if (D()) {
|
|
3695
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", s), Ke(), Je({
|
|
3655
3696
|
...e.locale ? {
|
|
3656
3697
|
locale: e.locale
|
|
3657
3698
|
} : {},
|
|
@@ -3663,83 +3704,93 @@ function jn(e) {
|
|
|
3663
3704
|
} : {}
|
|
3664
3705
|
}), Object.values(
|
|
3665
3706
|
e.builderContextSignal.componentInfos
|
|
3666
|
-
).forEach((
|
|
3667
|
-
var
|
|
3668
|
-
|
|
3669
|
-
|
|
3707
|
+
).forEach((u) => {
|
|
3708
|
+
var S, P;
|
|
3709
|
+
if (!e.model || !((S = u.models) != null && S.length) || u.models.includes(e.model)) {
|
|
3710
|
+
const w = Ge(u);
|
|
3711
|
+
(P = window.parent) == null || P.postMessage(w, "*");
|
|
3712
|
+
}
|
|
3670
3713
|
}), window.addEventListener(
|
|
3671
3714
|
"builder:component:stateChangeListenerActivated",
|
|
3672
|
-
|
|
3673
|
-
)), e.builderContextSignal.content &&
|
|
3674
|
-
const
|
|
3675
|
-
|
|
3715
|
+
x
|
|
3716
|
+
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3717
|
+
const u = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, S = (I = e.builderContextSignal.content) == null ? void 0 : I.id, P = e.apiKey;
|
|
3718
|
+
ue({
|
|
3676
3719
|
apiHost: e.apiHost,
|
|
3677
3720
|
type: "impression",
|
|
3678
3721
|
canTrack: !0,
|
|
3679
|
-
contentId:
|
|
3680
|
-
apiKey:
|
|
3681
|
-
variationId:
|
|
3722
|
+
contentId: S,
|
|
3723
|
+
apiKey: P,
|
|
3724
|
+
variationId: u !== S ? u : void 0
|
|
3682
3725
|
});
|
|
3683
3726
|
}
|
|
3684
|
-
if (
|
|
3685
|
-
const
|
|
3686
|
-
`builder.overrides.${
|
|
3687
|
-
),
|
|
3688
|
-
|
|
3689
|
-
model: e.model,
|
|
3727
|
+
if (ae() && !W()) {
|
|
3728
|
+
const u = new URL(location.href).searchParams, S = u.get("builder.preview"), P = u.get(
|
|
3729
|
+
`builder.overrides.${S}`
|
|
3730
|
+
), w = u.get("apiKey") || u.get("builder.space");
|
|
3731
|
+
(S === "BUILDER_STUDIO" || S === e.model && w === e.apiKey && (!e.content || P === e.content.id)) && we({
|
|
3732
|
+
model: e.model || "",
|
|
3690
3733
|
apiKey: e.apiKey,
|
|
3691
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
3692
|
-
|
|
3693
|
-
|
|
3734
|
+
apiVersion: e.builderContextSignal.apiVersion,
|
|
3735
|
+
...S === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
3736
|
+
query: {
|
|
3737
|
+
id: e.context.symbolId
|
|
3738
|
+
}
|
|
3739
|
+
} : {}
|
|
3740
|
+
}).then((L) => {
|
|
3741
|
+
L && i(L);
|
|
3694
3742
|
});
|
|
3695
3743
|
}
|
|
3696
3744
|
}
|
|
3697
|
-
}, []),
|
|
3745
|
+
}, []), A(() => {
|
|
3698
3746
|
e.content && i(e.content);
|
|
3699
|
-
}, [e.content]),
|
|
3700
|
-
|
|
3701
|
-
}, [e.builderContextSignal.rootState]),
|
|
3747
|
+
}, [e.content]), A(() => {
|
|
3748
|
+
x();
|
|
3749
|
+
}, [e.builderContextSignal.rootState]), A(() => {
|
|
3702
3750
|
e.data && n(e.data);
|
|
3703
|
-
}, [e.data]),
|
|
3751
|
+
}, [e.data]), A(() => {
|
|
3704
3752
|
e.locale && n({
|
|
3705
3753
|
locale: e.locale
|
|
3706
3754
|
});
|
|
3707
|
-
}, [e.locale]),
|
|
3708
|
-
|
|
3755
|
+
}, [e.locale]), A(() => () => {
|
|
3756
|
+
D() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3709
3757
|
"builder:component:stateChangeListenerActivated",
|
|
3710
|
-
|
|
3758
|
+
x
|
|
3711
3759
|
));
|
|
3712
|
-
}, []), /* @__PURE__ */
|
|
3713
|
-
|
|
3760
|
+
}, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ l(
|
|
3761
|
+
a,
|
|
3714
3762
|
{
|
|
3715
3763
|
ref: t,
|
|
3716
3764
|
onClick: (k) => f(k),
|
|
3717
|
-
"builder-content-id": (
|
|
3765
|
+
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3718
3766
|
"builder-model": e.model,
|
|
3719
|
-
className:
|
|
3720
|
-
((
|
|
3767
|
+
className: Xn(
|
|
3768
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
3721
3769
|
),
|
|
3770
|
+
style: {
|
|
3771
|
+
display: !e.builderContextSignal.content && Ce() ? "none" : void 0
|
|
3772
|
+
},
|
|
3722
3773
|
...o(),
|
|
3723
3774
|
...e.contentWrapperProps,
|
|
3724
3775
|
children: e.children
|
|
3725
3776
|
}
|
|
3726
3777
|
) : null });
|
|
3727
3778
|
}
|
|
3728
|
-
function
|
|
3729
|
-
const [t, n] =
|
|
3779
|
+
function ei(e) {
|
|
3780
|
+
const [t, n] = E(
|
|
3730
3781
|
() => `
|
|
3731
|
-
${
|
|
3782
|
+
${Gn({
|
|
3732
3783
|
cssCode: e.cssCode,
|
|
3733
3784
|
contentId: e.contentId
|
|
3734
3785
|
})}
|
|
3735
|
-
${
|
|
3786
|
+
${Jn({
|
|
3736
3787
|
customFonts: e.customFonts
|
|
3737
3788
|
})}
|
|
3738
|
-
${
|
|
3789
|
+
${Qn(e.isNestedRender)}
|
|
3739
3790
|
`.trim()
|
|
3740
3791
|
);
|
|
3741
|
-
return /* @__PURE__ */
|
|
3742
|
-
|
|
3792
|
+
return /* @__PURE__ */ l(
|
|
3793
|
+
Q,
|
|
3743
3794
|
{
|
|
3744
3795
|
id: "builderio-content",
|
|
3745
3796
|
styles: t,
|
|
@@ -3747,14 +3798,14 @@ ${Un(e.isNestedRender)}
|
|
|
3747
3798
|
}
|
|
3748
3799
|
);
|
|
3749
3800
|
}
|
|
3750
|
-
const
|
|
3801
|
+
const ti = ({
|
|
3751
3802
|
content: e,
|
|
3752
3803
|
data: t,
|
|
3753
3804
|
locale: n
|
|
3754
3805
|
}) => {
|
|
3755
|
-
var
|
|
3756
|
-
const i = {}, o = ((
|
|
3757
|
-
return (
|
|
3806
|
+
var a, r, s;
|
|
3807
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3808
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3758
3809
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3759
3810
|
}), {
|
|
3760
3811
|
...i,
|
|
@@ -3764,7 +3815,7 @@ const _n = ({
|
|
|
3764
3815
|
locale: n
|
|
3765
3816
|
} : {}
|
|
3766
3817
|
};
|
|
3767
|
-
},
|
|
3818
|
+
}, ni = ({
|
|
3768
3819
|
content: e,
|
|
3769
3820
|
data: t
|
|
3770
3821
|
}) => e ? {
|
|
@@ -3775,100 +3826,95 @@ const _n = ({
|
|
|
3775
3826
|
},
|
|
3776
3827
|
meta: e == null ? void 0 : e.meta
|
|
3777
3828
|
} : void 0;
|
|
3778
|
-
function
|
|
3779
|
-
var c, h, g, m,
|
|
3780
|
-
const [t, n] =
|
|
3829
|
+
function Te(e) {
|
|
3830
|
+
var c, h, g, m, y, f, v, x, b;
|
|
3831
|
+
const [t, n] = E(
|
|
3781
3832
|
() => {
|
|
3782
|
-
var
|
|
3783
|
-
return
|
|
3833
|
+
var p, C;
|
|
3834
|
+
return Hn({
|
|
3784
3835
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3785
|
-
variationId: (
|
|
3836
|
+
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3786
3837
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3787
|
-
contentId: (
|
|
3838
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
3788
3839
|
});
|
|
3789
3840
|
}
|
|
3790
3841
|
);
|
|
3791
|
-
function i(
|
|
3792
|
-
|
|
3793
|
-
...
|
|
3794
|
-
rootState:
|
|
3842
|
+
function i(p) {
|
|
3843
|
+
s((C) => ({
|
|
3844
|
+
...C,
|
|
3845
|
+
rootState: p
|
|
3795
3846
|
}));
|
|
3796
3847
|
}
|
|
3797
|
-
const [o,
|
|
3798
|
-
() =>
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
...ce(k)
|
|
3809
|
-
}
|
|
3810
|
-
}),
|
|
3811
|
-
{}
|
|
3812
|
-
);
|
|
3813
|
-
}
|
|
3814
|
-
), [a, l] = R(() => {
|
|
3815
|
-
var b;
|
|
3816
|
-
return {
|
|
3817
|
-
content: qn({
|
|
3818
|
-
content: e.content,
|
|
3819
|
-
data: e.data
|
|
3848
|
+
const [o, a] = E(
|
|
3849
|
+
() => [
|
|
3850
|
+
...ve(),
|
|
3851
|
+
...e.customComponents || []
|
|
3852
|
+
].reduce(
|
|
3853
|
+
(p, { component: C, ...V }) => ({
|
|
3854
|
+
...p,
|
|
3855
|
+
[V.name]: {
|
|
3856
|
+
component: C,
|
|
3857
|
+
...me(V)
|
|
3858
|
+
}
|
|
3820
3859
|
}),
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3860
|
+
{}
|
|
3861
|
+
)
|
|
3862
|
+
), [r, s] = E(() => ({
|
|
3863
|
+
content: ni({
|
|
3864
|
+
content: e.content,
|
|
3865
|
+
data: e.data
|
|
3866
|
+
}),
|
|
3867
|
+
localState: void 0,
|
|
3868
|
+
rootState: ti({
|
|
3869
|
+
content: e.content,
|
|
3870
|
+
data: e.data,
|
|
3871
|
+
locale: e.locale
|
|
3872
|
+
}),
|
|
3873
|
+
rootSetState: i,
|
|
3874
|
+
context: e.context || {},
|
|
3875
|
+
canTrack: e.canTrack,
|
|
3876
|
+
apiKey: e.apiKey,
|
|
3877
|
+
apiVersion: e.apiVersion,
|
|
3878
|
+
componentInfos: [
|
|
3879
|
+
...ve(),
|
|
3880
|
+
...e.customComponents || []
|
|
3881
|
+
].reduce(
|
|
3882
|
+
(p, { component: C, ...V }) => ({
|
|
3883
|
+
...p,
|
|
3884
|
+
[V.name]: me(V)
|
|
3826
3885
|
}),
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
].reduce(
|
|
3836
|
-
(y, { component: A, ...k }) => ({
|
|
3837
|
-
...y,
|
|
3838
|
-
[k.name]: ce(k)
|
|
3839
|
-
}),
|
|
3840
|
-
{}
|
|
3841
|
-
),
|
|
3842
|
-
inheritedStyles: {},
|
|
3843
|
-
BlocksWrapper: e.blocksWrapper || "div",
|
|
3844
|
-
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3845
|
-
nonce: e.nonce || ""
|
|
3846
|
-
};
|
|
3847
|
-
}), d = $(!1);
|
|
3886
|
+
{}
|
|
3887
|
+
),
|
|
3888
|
+
inheritedStyles: {},
|
|
3889
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
3890
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3891
|
+
nonce: e.nonce || "",
|
|
3892
|
+
model: e.model || ""
|
|
3893
|
+
})), d = O(!1);
|
|
3848
3894
|
if (!d.current) {
|
|
3849
|
-
e.apiKey ||
|
|
3895
|
+
e.apiKey || G.error(
|
|
3850
3896
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3851
3897
|
);
|
|
3852
|
-
const
|
|
3853
|
-
|
|
3854
|
-
code:
|
|
3898
|
+
const p = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3899
|
+
p && U({
|
|
3900
|
+
code: p,
|
|
3855
3901
|
context: e.context || {},
|
|
3856
3902
|
localState: void 0,
|
|
3857
|
-
rootState:
|
|
3858
|
-
rootSetState: (
|
|
3859
|
-
Object.assign(
|
|
3903
|
+
rootState: r.rootState,
|
|
3904
|
+
rootSetState: (C) => {
|
|
3905
|
+
Object.assign(r.rootState, C);
|
|
3860
3906
|
},
|
|
3861
3907
|
isExpression: !1
|
|
3862
3908
|
}), d.current = !0;
|
|
3863
3909
|
}
|
|
3864
|
-
return /* @__PURE__ */
|
|
3865
|
-
|
|
3910
|
+
return /* @__PURE__ */ l(
|
|
3911
|
+
Pe.Provider,
|
|
3866
3912
|
{
|
|
3867
3913
|
value: {
|
|
3868
3914
|
registeredComponents: o
|
|
3869
3915
|
},
|
|
3870
|
-
children: /* @__PURE__ */
|
|
3871
|
-
|
|
3916
|
+
children: /* @__PURE__ */ N(
|
|
3917
|
+
Zn,
|
|
3872
3918
|
{
|
|
3873
3919
|
apiHost: e.apiHost,
|
|
3874
3920
|
nonce: e.nonce,
|
|
@@ -3881,36 +3927,36 @@ function ve(e) {
|
|
|
3881
3927
|
locale: e.locale,
|
|
3882
3928
|
enrich: e.enrich,
|
|
3883
3929
|
showContent: e.showContent,
|
|
3884
|
-
builderContextSignal:
|
|
3930
|
+
builderContextSignal: r,
|
|
3885
3931
|
contentWrapper: e.contentWrapper,
|
|
3886
3932
|
contentWrapperProps: e.contentWrapperProps,
|
|
3887
3933
|
trustedHosts: e.trustedHosts,
|
|
3888
3934
|
isNestedRender: e.isNestedRender,
|
|
3889
|
-
setBuilderContextSignal:
|
|
3935
|
+
setBuilderContextSignal: s,
|
|
3890
3936
|
children: [
|
|
3891
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3892
|
-
|
|
3937
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3938
|
+
oe,
|
|
3893
3939
|
{
|
|
3894
3940
|
id: "builderio-variant-visibility",
|
|
3895
3941
|
scriptStr: t,
|
|
3896
3942
|
nonce: e.nonce || ""
|
|
3897
3943
|
}
|
|
3898
3944
|
) : null,
|
|
3899
|
-
/* @__PURE__ */
|
|
3900
|
-
|
|
3945
|
+
/* @__PURE__ */ l(
|
|
3946
|
+
ei,
|
|
3901
3947
|
{
|
|
3902
3948
|
nonce: e.nonce || "",
|
|
3903
3949
|
isNestedRender: e.isNestedRender,
|
|
3904
|
-
contentId: (g =
|
|
3905
|
-
cssCode: (
|
|
3906
|
-
customFonts: (
|
|
3950
|
+
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
3951
|
+
cssCode: (y = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
|
|
3952
|
+
customFonts: (v = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
3907
3953
|
}
|
|
3908
3954
|
),
|
|
3909
|
-
/* @__PURE__ */
|
|
3955
|
+
/* @__PURE__ */ l(
|
|
3910
3956
|
F,
|
|
3911
3957
|
{
|
|
3912
|
-
blocks: (
|
|
3913
|
-
context:
|
|
3958
|
+
blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
3959
|
+
context: r,
|
|
3914
3960
|
registeredComponents: o,
|
|
3915
3961
|
linkComponent: e.linkComponent
|
|
3916
3962
|
}
|
|
@@ -3921,71 +3967,71 @@ function ve(e) {
|
|
|
3921
3967
|
}
|
|
3922
3968
|
);
|
|
3923
3969
|
}
|
|
3924
|
-
function
|
|
3925
|
-
var
|
|
3926
|
-
const [t, n] =
|
|
3927
|
-
() =>
|
|
3928
|
-
canTrack:
|
|
3970
|
+
function ii(e) {
|
|
3971
|
+
var r;
|
|
3972
|
+
const [t, n] = E(
|
|
3973
|
+
() => On({
|
|
3974
|
+
canTrack: K(e.canTrack),
|
|
3929
3975
|
content: e.content
|
|
3930
3976
|
})
|
|
3931
3977
|
);
|
|
3932
3978
|
function i() {
|
|
3933
|
-
var
|
|
3934
|
-
return
|
|
3979
|
+
var s;
|
|
3980
|
+
return _n(
|
|
3935
3981
|
q(e.content).map((d) => ({
|
|
3936
3982
|
id: d.testVariationId,
|
|
3937
3983
|
testRatio: d.testRatio
|
|
3938
3984
|
})),
|
|
3939
|
-
((
|
|
3985
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3940
3986
|
);
|
|
3941
3987
|
}
|
|
3942
3988
|
function o() {
|
|
3943
|
-
return q(e.content).map((
|
|
3989
|
+
return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3944
3990
|
}
|
|
3945
|
-
function
|
|
3946
|
-
var
|
|
3991
|
+
function a() {
|
|
3992
|
+
var s;
|
|
3947
3993
|
return t ? {
|
|
3948
3994
|
...e.content,
|
|
3949
|
-
testVariationId: (
|
|
3950
|
-
} :
|
|
3995
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3996
|
+
} : Qe({
|
|
3951
3997
|
item: e.content,
|
|
3952
|
-
canTrack:
|
|
3998
|
+
canTrack: K(e.canTrack)
|
|
3953
3999
|
});
|
|
3954
4000
|
}
|
|
3955
|
-
return
|
|
3956
|
-
}, []), /* @__PURE__ */
|
|
3957
|
-
!e.isNestedRender &&
|
|
3958
|
-
|
|
4001
|
+
return A(() => {
|
|
4002
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
4003
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
4004
|
+
oe,
|
|
3959
4005
|
{
|
|
3960
4006
|
id: "builderio-init-variants-fns",
|
|
3961
|
-
scriptStr:
|
|
4007
|
+
scriptStr: Un(),
|
|
3962
4008
|
nonce: e.nonce || ""
|
|
3963
4009
|
}
|
|
3964
4010
|
) : null,
|
|
3965
|
-
t ? /* @__PURE__ */
|
|
3966
|
-
/* @__PURE__ */
|
|
3967
|
-
|
|
4011
|
+
t ? /* @__PURE__ */ N(T, { children: [
|
|
4012
|
+
/* @__PURE__ */ l(
|
|
4013
|
+
Q,
|
|
3968
4014
|
{
|
|
3969
4015
|
id: "builderio-variants",
|
|
3970
4016
|
styles: o(),
|
|
3971
4017
|
nonce: e.nonce || ""
|
|
3972
4018
|
}
|
|
3973
4019
|
),
|
|
3974
|
-
/* @__PURE__ */
|
|
3975
|
-
|
|
4020
|
+
/* @__PURE__ */ l(
|
|
4021
|
+
oe,
|
|
3976
4022
|
{
|
|
3977
4023
|
id: "builderio-variants-visibility",
|
|
3978
4024
|
scriptStr: i(),
|
|
3979
4025
|
nonce: e.nonce || ""
|
|
3980
4026
|
}
|
|
3981
4027
|
),
|
|
3982
|
-
(
|
|
3983
|
-
|
|
4028
|
+
(r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
4029
|
+
Te,
|
|
3984
4030
|
{
|
|
3985
4031
|
apiHost: e.apiHost,
|
|
3986
4032
|
isNestedRender: e.isNestedRender,
|
|
3987
4033
|
nonce: e.nonce,
|
|
3988
|
-
content:
|
|
4034
|
+
content: s,
|
|
3989
4035
|
showContent: !1,
|
|
3990
4036
|
model: e.model,
|
|
3991
4037
|
data: e.data,
|
|
@@ -4004,16 +4050,16 @@ function Kn(e) {
|
|
|
4004
4050
|
contentWrapperProps: e.contentWrapperProps,
|
|
4005
4051
|
trustedHosts: e.trustedHosts
|
|
4006
4052
|
},
|
|
4007
|
-
|
|
4053
|
+
s.testVariationId
|
|
4008
4054
|
))
|
|
4009
4055
|
] }) : null,
|
|
4010
|
-
/* @__PURE__ */
|
|
4011
|
-
|
|
4056
|
+
/* @__PURE__ */ l(
|
|
4057
|
+
Te,
|
|
4012
4058
|
{
|
|
4013
4059
|
apiHost: e.apiHost,
|
|
4014
4060
|
nonce: e.nonce,
|
|
4015
4061
|
isNestedRender: e.isNestedRender,
|
|
4016
|
-
content:
|
|
4062
|
+
content: a(),
|
|
4017
4063
|
showContent: !0,
|
|
4018
4064
|
model: e.model,
|
|
4019
4065
|
data: e.data,
|
|
@@ -4035,13 +4081,13 @@ function Kn(e) {
|
|
|
4035
4081
|
)
|
|
4036
4082
|
] });
|
|
4037
4083
|
}
|
|
4038
|
-
const
|
|
4084
|
+
const oi = async ({
|
|
4039
4085
|
builderContextValue: e,
|
|
4040
4086
|
symbol: t
|
|
4041
4087
|
}) => {
|
|
4042
4088
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4043
4089
|
(e != null && e.apiKey))
|
|
4044
|
-
return
|
|
4090
|
+
return we({
|
|
4045
4091
|
model: t.model,
|
|
4046
4092
|
apiKey: e.apiKey,
|
|
4047
4093
|
apiVersion: e.apiVersion,
|
|
@@ -4051,11 +4097,11 @@ const zn = async ({
|
|
|
4051
4097
|
}
|
|
4052
4098
|
}
|
|
4053
4099
|
}).catch((n) => {
|
|
4054
|
-
|
|
4100
|
+
G.error("Could not fetch symbol content: ", n);
|
|
4055
4101
|
});
|
|
4056
4102
|
};
|
|
4057
|
-
function
|
|
4058
|
-
var
|
|
4103
|
+
function ai(e) {
|
|
4104
|
+
var s, d, c, h;
|
|
4059
4105
|
function t() {
|
|
4060
4106
|
return "div";
|
|
4061
4107
|
}
|
|
@@ -4071,23 +4117,23 @@ function Jn(e) {
|
|
|
4071
4117
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4072
4118
|
].filter(Boolean).join(" ");
|
|
4073
4119
|
}
|
|
4074
|
-
const [o,
|
|
4120
|
+
const [o, a] = E(() => {
|
|
4075
4121
|
var g;
|
|
4076
4122
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4077
4123
|
});
|
|
4078
|
-
function
|
|
4079
|
-
o ||
|
|
4124
|
+
function r() {
|
|
4125
|
+
o || oi({
|
|
4080
4126
|
symbol: e.symbol,
|
|
4081
4127
|
builderContextValue: e.builderContext
|
|
4082
4128
|
}).then((g) => {
|
|
4083
|
-
g &&
|
|
4129
|
+
g && a(g);
|
|
4084
4130
|
});
|
|
4085
4131
|
}
|
|
4086
|
-
return
|
|
4087
|
-
}, []),
|
|
4088
|
-
|
|
4089
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4090
|
-
|
|
4132
|
+
return A(() => {
|
|
4133
|
+
}, []), A(() => {
|
|
4134
|
+
r();
|
|
4135
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4136
|
+
ii,
|
|
4091
4137
|
{
|
|
4092
4138
|
nonce: e.builderContext.nonce,
|
|
4093
4139
|
isNestedRender: !0,
|
|
@@ -4095,7 +4141,7 @@ function Jn(e) {
|
|
|
4095
4141
|
apiKey: e.builderContext.apiKey,
|
|
4096
4142
|
context: {
|
|
4097
4143
|
...e.builderContext.context,
|
|
4098
|
-
symbolId: (
|
|
4144
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4099
4145
|
},
|
|
4100
4146
|
customComponents: Object.values(e.builderComponents),
|
|
4101
4147
|
data: {
|
|
@@ -4114,14 +4160,14 @@ function Jn(e) {
|
|
|
4114
4160
|
}
|
|
4115
4161
|
export {
|
|
4116
4162
|
F as Blocks,
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4163
|
+
le as BuilderContext,
|
|
4164
|
+
et as Button,
|
|
4165
|
+
qt as Columns,
|
|
4166
|
+
ii as Content,
|
|
4167
|
+
zt as Fragment,
|
|
4168
|
+
Gt as Image,
|
|
4169
|
+
Yt as Section,
|
|
4170
|
+
ai as Symbol,
|
|
4171
|
+
mn as Text,
|
|
4172
|
+
Wn as Video
|
|
4127
4173
|
};
|