@builder.io/sdk-react 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +21 -21
- package/lib/browser/blocks-exports.mjs +657 -658
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-75ce8600.cjs +2 -0
- package/lib/browser/server-entry-a2495a20.js +748 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-decb24cf.cjs → accordion-1c16f65e.cjs} +1 -1
- package/lib/edge/{accordion-1572cb0d.js → accordion-c020e15b.js} +1 -1
- package/lib/edge/blocks-27ac5b23.js +3534 -0
- package/lib/edge/blocks-cd946d16.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-0709893d.js → button-5cdb4f26.js} +2 -2
- package/lib/edge/{button-cf66cf8d.cjs → button-8572fca5.cjs} +1 -1
- package/lib/edge/{columns-e234acc6.js → columns-3ac1fa96.js} +5 -6
- package/lib/edge/columns-c8a9cb89.cjs +28 -0
- package/lib/edge/{content-variants-3ab9230f.js → content-variants-23c8eec6.js} +209 -205
- package/lib/edge/content-variants-caa23bf7.cjs +134 -0
- package/lib/edge/form-3d9bf265.cjs +1 -0
- package/lib/edge/{form-27bcc23a.js → form-7fc5691b.js} +14 -15
- package/lib/edge/{get-class-prop-name-0b3d48a4.cjs → get-class-prop-name-29fd576a.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-a3bd113c.js → get-class-prop-name-a4845b04.js} +1 -1
- package/lib/edge/{img-e0c8f7f9.cjs → img-102acaa2.cjs} +1 -1
- package/lib/edge/{img-80be6914.js → img-388698cb.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-f5ba6b1e.cjs → input-10e350a9.cjs} +1 -1
- package/lib/edge/{input-920922d5.js → input-5484e9e7.js} +1 -1
- package/lib/edge/{select-673864b7.js → select-b8406bcf.js} +1 -1
- package/lib/edge/{select-2ced1aca.cjs → select-f11be7a7.cjs} +1 -1
- package/lib/edge/server-entry-1879cbc4.cjs +2 -0
- package/lib/edge/server-entry-7ce03a4e.js +746 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-68f2b177.js → slot-23f75377.js} +5 -6
- package/lib/edge/slot-4ab390ec.cjs +1 -0
- package/lib/edge/{symbol-7e260a70.js → symbol-2eafb4e0.js} +2 -2
- package/lib/edge/{symbol-ded9dba9.cjs → symbol-fa343d77.cjs} +1 -1
- package/lib/edge/{tabs-5156494d.js → tabs-4c9c64f6.js} +15 -16
- package/lib/edge/tabs-7d258d82.cjs +1 -0
- package/lib/edge/text-5915f038.js +17 -0
- package/lib/edge/text-e6dbb721.cjs +1 -0
- package/lib/node/blocks-exports.cjs +22 -22
- package/lib/node/blocks-exports.mjs +542 -543
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-2b263dde.js +749 -0
- package/lib/node/server-entry-ec330556.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-aba1bed8.cjs → setIvm-1e6f0b60.cjs} +1 -1
- package/lib/node/{setIvm-8b303d4e.js → setIvm-7eb67cd6.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-491a9b55.cjs → should-force-browser-runtime-in-node-23218b19.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-0a037bde.js → should-force-browser-runtime-in-node-cdae9360.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-block-component-options.d.ts +2 -1
- package/types/functions/get-processed-block.d.ts +1 -6
- package/types/helpers/flatten.d.ts +6 -0
- package/types/server-index.d.ts +1 -1
- package/lib/browser/server-entry-017b8439.js +0 -717
- package/lib/browser/server-entry-9f80066e.cjs +0 -2
- package/lib/edge/blocks-9c35be74.js +0 -916
- package/lib/edge/blocks-d3823063.cjs +0 -12
- package/lib/edge/columns-2fdf0656.cjs +0 -28
- package/lib/edge/content-variants-616a6c0f.cjs +0 -134
- package/lib/edge/evaluate-ccf1ad96.cjs +0 -19
- package/lib/edge/evaluate-f0b82ede.js +0 -2612
- package/lib/edge/form-7c61693d.cjs +0 -1
- package/lib/edge/server-entry-6c0047ea.js +0 -715
- package/lib/edge/server-entry-de142ee8.cjs +0 -2
- package/lib/edge/slot-cc8b4e5b.cjs +0 -1
- package/lib/edge/tabs-d422921f.cjs +0 -1
- package/lib/edge/text-27a917c0.js +0 -37
- package/lib/edge/text-5796f488.cjs +0 -1
- package/lib/node/server-entry-e91e06a3.cjs +0 -2
- package/lib/node/server-entry-fdedc1aa.js +0 -718
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as $, isEditing as W, isBrowser as
|
|
4
|
-
import { createContext as Ee, useEffect as A, useState as
|
|
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
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
6
|
function re(e) {
|
|
7
|
-
return /* @__PURE__ */
|
|
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
10
|
switch ($) {
|
|
@@ -34,7 +34,7 @@ function et(e) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ l(
|
|
38
38
|
re,
|
|
39
39
|
{
|
|
40
40
|
attributes: t(),
|
|
@@ -59,24 +59,10 @@ const le = Ee({
|
|
|
59
59
|
BlocksWrapperProps: {},
|
|
60
60
|
nonce: "",
|
|
61
61
|
model: ""
|
|
62
|
-
}), Pe = Ee({ registeredComponents: {} })
|
|
63
|
-
|
|
64
|
-
var t;
|
|
65
|
-
return {
|
|
66
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
67
|
-
...e.options
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function nt(e, ...t) {
|
|
71
|
-
const n = Object.assign({}, e);
|
|
72
|
-
for (const i of t)
|
|
73
|
-
delete n[i];
|
|
74
|
-
return n;
|
|
75
|
-
}
|
|
76
|
-
const Be = (e, t, n) => {
|
|
77
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
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);
|
|
78
64
|
return i === void 0 || i === e ? n : i;
|
|
79
|
-
},
|
|
65
|
+
}, tt = ({
|
|
80
66
|
builder: e,
|
|
81
67
|
context: t,
|
|
82
68
|
event: n,
|
|
@@ -88,12 +74,12 @@ const Be = (e, t, n) => {
|
|
|
88
74
|
builder: e,
|
|
89
75
|
context: t,
|
|
90
76
|
event: n
|
|
91
|
-
}),
|
|
77
|
+
}), nt = () => ({
|
|
92
78
|
isEditing: W(),
|
|
93
|
-
isBrowser:
|
|
94
|
-
isServer: !
|
|
79
|
+
isBrowser: D(),
|
|
80
|
+
isServer: !D(),
|
|
95
81
|
getUserAttributes: () => ze()
|
|
96
|
-
}),
|
|
82
|
+
}), it = (e, {
|
|
97
83
|
isExpression: t = !0
|
|
98
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;
|
|
99
85
|
function Ve({
|
|
@@ -105,19 +91,19 @@ function Ve({
|
|
|
105
91
|
get: (i, o) => {
|
|
106
92
|
if (t && o in t)
|
|
107
93
|
return t[o];
|
|
108
|
-
const
|
|
109
|
-
return typeof
|
|
110
|
-
rootState:
|
|
94
|
+
const a = i[o];
|
|
95
|
+
return typeof a == "object" && a !== null ? Ve({
|
|
96
|
+
rootState: a,
|
|
111
97
|
localState: void 0,
|
|
112
|
-
rootSetState: n ? (
|
|
113
|
-
i[o] =
|
|
98
|
+
rootSetState: n ? (r) => {
|
|
99
|
+
i[o] = r, n(i);
|
|
114
100
|
} : void 0
|
|
115
|
-
}) :
|
|
101
|
+
}) : a;
|
|
116
102
|
},
|
|
117
|
-
set: (i, o,
|
|
103
|
+
set: (i, o, a) => {
|
|
118
104
|
if (t && o in t)
|
|
119
105
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
120
|
-
return i[o] =
|
|
106
|
+
return i[o] = a, n == null || n(i), !0;
|
|
121
107
|
}
|
|
122
108
|
});
|
|
123
109
|
}
|
|
@@ -127,69 +113,69 @@ const he = ({
|
|
|
127
113
|
context: n,
|
|
128
114
|
event: i,
|
|
129
115
|
localState: o,
|
|
130
|
-
rootSetState:
|
|
131
|
-
rootState:
|
|
116
|
+
rootSetState: a,
|
|
117
|
+
rootState: r
|
|
132
118
|
}) => {
|
|
133
|
-
const
|
|
119
|
+
const s = tt({
|
|
134
120
|
builder: t,
|
|
135
121
|
context: n,
|
|
136
122
|
event: i,
|
|
137
123
|
state: Ve({
|
|
138
|
-
rootState:
|
|
124
|
+
rootState: r,
|
|
139
125
|
localState: o,
|
|
140
|
-
rootSetState:
|
|
126
|
+
rootSetState: a
|
|
141
127
|
})
|
|
142
128
|
});
|
|
143
|
-
return new Function(...
|
|
129
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
144
130
|
};
|
|
145
|
-
function
|
|
131
|
+
function ot() {
|
|
146
132
|
var e;
|
|
147
133
|
return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
148
134
|
}
|
|
149
|
-
const
|
|
135
|
+
const at = ({
|
|
150
136
|
shouldLogWarning: e
|
|
151
137
|
}) => {
|
|
152
138
|
var o;
|
|
153
|
-
if (!
|
|
139
|
+
if (!ot())
|
|
154
140
|
return !1;
|
|
155
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");
|
|
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;
|
|
157
|
-
},
|
|
143
|
+
}, rt = (e) => (D() || at({
|
|
158
144
|
shouldLogWarning: !0
|
|
159
|
-
}), he(e)),
|
|
160
|
-
var t, n, i, o,
|
|
161
|
-
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));
|
|
162
148
|
};
|
|
163
|
-
function
|
|
149
|
+
function U({
|
|
164
150
|
code: e,
|
|
165
151
|
context: t,
|
|
166
152
|
localState: n,
|
|
167
153
|
rootState: i,
|
|
168
154
|
rootSetState: o,
|
|
169
|
-
event:
|
|
170
|
-
isExpression:
|
|
155
|
+
event: a,
|
|
156
|
+
isExpression: r = !0
|
|
171
157
|
}) {
|
|
172
158
|
if (e.trim() === "")
|
|
173
159
|
return;
|
|
174
|
-
const
|
|
175
|
-
if (
|
|
160
|
+
const s = ct(e.trim());
|
|
161
|
+
if (s)
|
|
176
162
|
return Be({
|
|
177
163
|
...i,
|
|
178
164
|
...n
|
|
179
|
-
},
|
|
165
|
+
}, s);
|
|
180
166
|
const d = {
|
|
181
|
-
code:
|
|
182
|
-
isExpression:
|
|
167
|
+
code: it(e, {
|
|
168
|
+
isExpression: r
|
|
183
169
|
}),
|
|
184
|
-
builder:
|
|
170
|
+
builder: nt(),
|
|
185
171
|
context: t,
|
|
186
|
-
event:
|
|
172
|
+
event: a,
|
|
187
173
|
rootSetState: o,
|
|
188
174
|
rootState: i,
|
|
189
175
|
localState: n
|
|
190
176
|
};
|
|
191
177
|
try {
|
|
192
|
-
return
|
|
178
|
+
return rt(d);
|
|
193
179
|
} catch (c) {
|
|
194
180
|
G.error("Failed code evaluation: " + c.message, {
|
|
195
181
|
code: e
|
|
@@ -197,27 +183,55 @@ function D({
|
|
|
197
183
|
return;
|
|
198
184
|
}
|
|
199
185
|
}
|
|
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
|
+
}
|
|
200
214
|
function J(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
201
215
|
if (e == null || typeof e != "object") {
|
|
202
|
-
t(e, (
|
|
203
|
-
n !== null && i !== null && (n[i] =
|
|
216
|
+
t(e, (a) => {
|
|
217
|
+
n !== null && i !== null && (n[i] = a);
|
|
204
218
|
});
|
|
205
219
|
return;
|
|
206
220
|
}
|
|
207
|
-
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((
|
|
208
|
-
t(r, (d) => {
|
|
209
|
-
e[a] = d;
|
|
210
|
-
}), J(r, t, e, a, o);
|
|
211
|
-
}) : Object.entries(e).forEach(([r, a]) => {
|
|
221
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
212
222
|
t(a, (d) => {
|
|
213
223
|
e[r] = d;
|
|
214
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);
|
|
215
229
|
}));
|
|
216
230
|
}
|
|
217
231
|
function Ae(e) {
|
|
218
232
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
219
233
|
}
|
|
220
|
-
function
|
|
234
|
+
function ft(e) {
|
|
221
235
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
222
236
|
return !1;
|
|
223
237
|
let t = !1;
|
|
@@ -228,21 +242,21 @@ function mt(e) {
|
|
|
228
242
|
}
|
|
229
243
|
}), t;
|
|
230
244
|
}
|
|
231
|
-
function
|
|
245
|
+
function ht(e, t) {
|
|
232
246
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
233
247
|
var o;
|
|
234
248
|
Ae(n) && i((o = n[t]) != null ? o : void 0);
|
|
235
249
|
}), e);
|
|
236
250
|
}
|
|
237
|
-
function
|
|
251
|
+
function gt(e, t) {
|
|
238
252
|
var n, i;
|
|
239
|
-
return (n = e.component) != null && n.options &&
|
|
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;
|
|
240
254
|
}
|
|
241
255
|
const se = (e) => JSON.parse(JSON.stringify(e)), Ne = (e, t, n) => {
|
|
242
256
|
if (Object(e) !== e)
|
|
243
257
|
return e;
|
|
244
258
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
245
|
-
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;
|
|
246
260
|
};
|
|
247
261
|
function ie(e) {
|
|
248
262
|
if (e === null || typeof e != "object")
|
|
@@ -256,8 +270,8 @@ function ie(e) {
|
|
|
256
270
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ie(e[n]));
|
|
257
271
|
return t;
|
|
258
272
|
}
|
|
259
|
-
const
|
|
260
|
-
if (
|
|
273
|
+
const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) => {
|
|
274
|
+
if (bt) {
|
|
261
275
|
const t = se(e);
|
|
262
276
|
return {
|
|
263
277
|
...t,
|
|
@@ -269,7 +283,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
269
283
|
}
|
|
270
284
|
};
|
|
271
285
|
} else {
|
|
272
|
-
const t = ie(
|
|
286
|
+
const t = ie(mt(e, "children", "meta"));
|
|
273
287
|
return {
|
|
274
288
|
...t,
|
|
275
289
|
properties: {
|
|
@@ -282,7 +296,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
282
296
|
meta: e.meta
|
|
283
297
|
};
|
|
284
298
|
}
|
|
285
|
-
},
|
|
299
|
+
}, yt = ({
|
|
286
300
|
block: e,
|
|
287
301
|
context: t,
|
|
288
302
|
localState: n,
|
|
@@ -291,67 +305,66 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
291
305
|
}) => {
|
|
292
306
|
if (!e.bindings)
|
|
293
307
|
return e;
|
|
294
|
-
const
|
|
295
|
-
for (const
|
|
296
|
-
const
|
|
297
|
-
code:
|
|
308
|
+
const a = pt(e);
|
|
309
|
+
for (const r in e.bindings) {
|
|
310
|
+
const s = e.bindings[r], d = U({
|
|
311
|
+
code: s,
|
|
298
312
|
localState: n,
|
|
299
313
|
rootState: i,
|
|
300
314
|
rootSetState: o,
|
|
301
315
|
context: t
|
|
302
316
|
});
|
|
303
|
-
Ne(
|
|
317
|
+
Ne(a, r, d);
|
|
304
318
|
}
|
|
305
|
-
return
|
|
319
|
+
return a;
|
|
306
320
|
};
|
|
307
|
-
function
|
|
321
|
+
function xt({
|
|
308
322
|
block: e,
|
|
309
323
|
context: t,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
rootSetState: r
|
|
324
|
+
localState: n,
|
|
325
|
+
rootState: i,
|
|
326
|
+
rootSetState: o
|
|
314
327
|
}) {
|
|
315
|
-
let a =
|
|
316
|
-
return a = a,
|
|
328
|
+
let a = gt(e, i.locale);
|
|
329
|
+
return a = a, yt({
|
|
317
330
|
block: a,
|
|
318
|
-
localState:
|
|
319
|
-
rootState:
|
|
320
|
-
rootSetState:
|
|
331
|
+
localState: n,
|
|
332
|
+
rootState: i,
|
|
333
|
+
rootSetState: o,
|
|
321
334
|
context: t
|
|
322
|
-
})
|
|
335
|
+
});
|
|
323
336
|
}
|
|
324
337
|
const Y = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
325
|
-
function
|
|
326
|
-
let i, o,
|
|
338
|
+
function vt(e, t, n = {}) {
|
|
339
|
+
let i, o, a, r = null, s = 0;
|
|
327
340
|
const d = function() {
|
|
328
|
-
|
|
341
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
329
342
|
};
|
|
330
343
|
return function() {
|
|
331
344
|
const c = Date.now();
|
|
332
|
-
!
|
|
333
|
-
const h = t - (c -
|
|
334
|
-
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;
|
|
335
348
|
};
|
|
336
349
|
}
|
|
337
|
-
function
|
|
350
|
+
function _(e, ...t) {
|
|
338
351
|
const n = Object(e);
|
|
339
352
|
for (let i = 1; i < arguments.length; i++) {
|
|
340
353
|
const o = arguments[i];
|
|
341
354
|
if (o != null)
|
|
342
|
-
for (const
|
|
343
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
355
|
+
for (const a in o)
|
|
356
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
344
357
|
}
|
|
345
358
|
return n;
|
|
346
359
|
}
|
|
347
|
-
function
|
|
360
|
+
function St(e) {
|
|
348
361
|
for (const t of e)
|
|
349
362
|
switch (t.trigger) {
|
|
350
363
|
case "pageLoad":
|
|
351
364
|
$e(t);
|
|
352
365
|
break;
|
|
353
366
|
case "scrollInView":
|
|
354
|
-
|
|
367
|
+
Ct(t);
|
|
355
368
|
break;
|
|
356
369
|
}
|
|
357
370
|
}
|
|
@@ -359,12 +372,12 @@ function We(e) {
|
|
|
359
372
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
360
373
|
}
|
|
361
374
|
function Fe(e, t) {
|
|
362
|
-
const n =
|
|
363
|
-
for (const
|
|
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)
|
|
364
377
|
for (const d of n)
|
|
365
|
-
d in
|
|
378
|
+
d in s || (s[d] = i[d]);
|
|
366
379
|
}
|
|
367
|
-
function
|
|
380
|
+
function kt(e) {
|
|
368
381
|
const t = [];
|
|
369
382
|
for (const n of e.steps)
|
|
370
383
|
for (const i in n.styles)
|
|
@@ -378,14 +391,14 @@ function $e(e) {
|
|
|
378
391
|
return;
|
|
379
392
|
}
|
|
380
393
|
Array.from(t).forEach((n) => {
|
|
381
|
-
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
382
|
-
n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "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(() => {
|
|
383
396
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
384
397
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
385
398
|
});
|
|
386
399
|
});
|
|
387
400
|
}
|
|
388
|
-
function
|
|
401
|
+
function Ct(e) {
|
|
389
402
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
390
403
|
if (!t.length) {
|
|
391
404
|
We(e.elementId || e.id || "");
|
|
@@ -394,49 +407,49 @@ function kt(e) {
|
|
|
394
407
|
Array.from(t).forEach((n) => {
|
|
395
408
|
Fe(e, n);
|
|
396
409
|
let i = !1, o = !1;
|
|
397
|
-
function
|
|
398
|
-
!i &&
|
|
399
|
-
|
|
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(() => {
|
|
400
413
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
401
414
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
402
|
-
})) : e.repeat && i && !o && !
|
|
415
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, _(n.style, e.steps[0].styles));
|
|
403
416
|
}
|
|
404
|
-
const
|
|
417
|
+
const r = vt(a, 200, {
|
|
405
418
|
leading: !1
|
|
406
419
|
});
|
|
407
|
-
function
|
|
420
|
+
function s(h) {
|
|
408
421
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
409
422
|
return g.bottom > f && g.top < m - f;
|
|
410
423
|
}
|
|
411
424
|
const d = e.steps[0].styles;
|
|
412
425
|
function c() {
|
|
413
|
-
|
|
426
|
+
_(n.style, d);
|
|
414
427
|
}
|
|
415
428
|
c(), setTimeout(() => {
|
|
416
429
|
n.style.transition = `all ${e.duration}s ${Y(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
417
|
-
}), document.addEventListener("scroll",
|
|
430
|
+
}), document.addEventListener("scroll", r, {
|
|
418
431
|
capture: !0,
|
|
419
432
|
passive: !0
|
|
420
|
-
}),
|
|
433
|
+
}), a();
|
|
421
434
|
});
|
|
422
435
|
}
|
|
423
436
|
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
424
437
|
if (typeof i == "string")
|
|
425
438
|
return `${Y(n)}: ${i};`;
|
|
426
|
-
}).filter(z),
|
|
439
|
+
}).filter(z), Tt = (e) => Le(e).join(`
|
|
427
440
|
`), j = ({
|
|
428
441
|
mediaQuery: e,
|
|
429
442
|
className: t,
|
|
430
443
|
styles: n
|
|
431
444
|
}) => {
|
|
432
445
|
const i = `.${t} {
|
|
433
|
-
${
|
|
446
|
+
${Tt(n)}
|
|
434
447
|
}`;
|
|
435
448
|
return e ? `${e} {
|
|
436
449
|
${i}
|
|
437
450
|
}` : i;
|
|
438
451
|
};
|
|
439
|
-
function
|
|
452
|
+
function It({
|
|
440
453
|
style: e
|
|
441
454
|
}) {
|
|
442
455
|
return e;
|
|
@@ -444,7 +457,7 @@ function Tt({
|
|
|
444
457
|
const wt = ({
|
|
445
458
|
block: e,
|
|
446
459
|
context: t
|
|
447
|
-
}) => Oe(
|
|
460
|
+
}) => Oe(It({
|
|
448
461
|
style: e.style || {},
|
|
449
462
|
context: t,
|
|
450
463
|
block: e
|
|
@@ -463,13 +476,13 @@ function Oe(e) {
|
|
|
463
476
|
return e;
|
|
464
477
|
}
|
|
465
478
|
}
|
|
466
|
-
const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
479
|
+
const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Et = ({
|
|
467
480
|
block: e,
|
|
468
481
|
registeredComponents: t,
|
|
469
482
|
model: n
|
|
470
483
|
}) => {
|
|
471
|
-
var
|
|
472
|
-
const i = (
|
|
484
|
+
var a;
|
|
485
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
473
486
|
if (!i)
|
|
474
487
|
return null;
|
|
475
488
|
const o = t[i];
|
|
@@ -480,7 +493,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
480
493
|
return;
|
|
481
494
|
} else
|
|
482
495
|
return o;
|
|
483
|
-
},
|
|
496
|
+
}, Rt = ({
|
|
484
497
|
block: e,
|
|
485
498
|
context: t
|
|
486
499
|
}) => {
|
|
@@ -490,7 +503,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
490
503
|
} = e;
|
|
491
504
|
if (!(n != null && n.collection))
|
|
492
505
|
return;
|
|
493
|
-
const o =
|
|
506
|
+
const o = U({
|
|
494
507
|
code: n.collection,
|
|
495
508
|
localState: t.localState,
|
|
496
509
|
rootState: t.rootState,
|
|
@@ -499,7 +512,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
499
512
|
});
|
|
500
513
|
if (!Array.isArray(o))
|
|
501
514
|
return;
|
|
502
|
-
const
|
|
515
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
503
516
|
return o.map((d, c) => ({
|
|
504
517
|
context: {
|
|
505
518
|
...t,
|
|
@@ -507,28 +520,28 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
507
520
|
...t.localState,
|
|
508
521
|
$index: c,
|
|
509
522
|
$item: d,
|
|
510
|
-
[
|
|
511
|
-
[`$${
|
|
523
|
+
[r]: d,
|
|
524
|
+
[`$${r}Index`]: c
|
|
512
525
|
}
|
|
513
526
|
},
|
|
514
527
|
block: i
|
|
515
528
|
}));
|
|
516
|
-
},
|
|
529
|
+
}, Pt = (e, t) => {
|
|
517
530
|
var n;
|
|
518
531
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
519
532
|
builderLinkComponent: t
|
|
520
533
|
} : {};
|
|
521
|
-
},
|
|
534
|
+
}, Bt = (e, t, n) => {
|
|
522
535
|
var i;
|
|
523
536
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
524
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
537
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !De(r, n)))
|
|
525
538
|
} : {};
|
|
526
|
-
},
|
|
539
|
+
}, Vt = (e, t) => {
|
|
527
540
|
var n;
|
|
528
541
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
529
542
|
builderBlock: t
|
|
530
543
|
} : {};
|
|
531
|
-
},
|
|
544
|
+
}, At = (e, t) => {
|
|
532
545
|
var n;
|
|
533
546
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
534
547
|
builderContext: t
|
|
@@ -549,7 +562,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
549
562
|
default: 991,
|
|
550
563
|
max: 1200
|
|
551
564
|
}
|
|
552
|
-
}, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`,
|
|
565
|
+
}, ge = (e, t = Ue) => `@media (max-width: ${t[e].max}px)`, _e = ({
|
|
553
566
|
small: e,
|
|
554
567
|
medium: t
|
|
555
568
|
}) => {
|
|
@@ -568,16 +581,16 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
568
581
|
min: o,
|
|
569
582
|
default: o + 1
|
|
570
583
|
};
|
|
571
|
-
const
|
|
584
|
+
const a = n.medium.max + 1;
|
|
572
585
|
return n.large = {
|
|
573
586
|
max: 2e3,
|
|
574
587
|
// TODO: decide upper limit
|
|
575
|
-
min:
|
|
576
|
-
default:
|
|
588
|
+
min: a,
|
|
589
|
+
default: a + 1
|
|
577
590
|
}, n;
|
|
578
591
|
};
|
|
579
592
|
function Q(e) {
|
|
580
|
-
return /* @__PURE__ */
|
|
593
|
+
return /* @__PURE__ */ l(
|
|
581
594
|
"style",
|
|
582
595
|
{
|
|
583
596
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -586,34 +599,34 @@ function Q(e) {
|
|
|
586
599
|
}
|
|
587
600
|
);
|
|
588
601
|
}
|
|
589
|
-
function
|
|
602
|
+
function Nt(e) {
|
|
590
603
|
function t() {
|
|
591
604
|
const i = e.block;
|
|
592
605
|
return z(i.hide) ? !i.hide : z(i.show) ? i.show : !0;
|
|
593
606
|
}
|
|
594
607
|
function n() {
|
|
595
608
|
var x, b, p;
|
|
596
|
-
const i = e.block, o = i.responsiveStyles,
|
|
597
|
-
((x =
|
|
598
|
-
),
|
|
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;
|
|
599
612
|
if (!h)
|
|
600
613
|
return "";
|
|
601
|
-
const g =
|
|
614
|
+
const g = s ? j({
|
|
602
615
|
className: h,
|
|
603
|
-
styles:
|
|
616
|
+
styles: s
|
|
604
617
|
}) : "", m = d ? j({
|
|
605
618
|
className: h,
|
|
606
619
|
styles: d,
|
|
607
620
|
mediaQuery: ge(
|
|
608
621
|
"medium",
|
|
609
|
-
|
|
622
|
+
r
|
|
610
623
|
)
|
|
611
624
|
}) : "", y = c ? j({
|
|
612
625
|
className: h,
|
|
613
626
|
styles: c,
|
|
614
627
|
mediaQuery: ge(
|
|
615
628
|
"small",
|
|
616
|
-
|
|
629
|
+
r
|
|
617
630
|
)
|
|
618
631
|
}) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
|
|
619
632
|
let v = "";
|
|
@@ -637,7 +650,7 @@ function At(e) {
|
|
|
637
650
|
v
|
|
638
651
|
].join(" ");
|
|
639
652
|
}
|
|
640
|
-
return /* @__PURE__ */
|
|
653
|
+
return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
641
654
|
Q,
|
|
642
655
|
{
|
|
643
656
|
id: "builderio-block",
|
|
@@ -646,10 +659,10 @@ function At(e) {
|
|
|
646
659
|
}
|
|
647
660
|
) }) : null });
|
|
648
661
|
}
|
|
649
|
-
function
|
|
662
|
+
function Wt(e) {
|
|
650
663
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
651
664
|
}
|
|
652
|
-
const
|
|
665
|
+
const Ft = (e) => `on${Wt(e)}`, $t = (e, t) => (n) => U({
|
|
653
666
|
code: e,
|
|
654
667
|
context: t.context,
|
|
655
668
|
localState: t.localState,
|
|
@@ -658,33 +671,33 @@ const Wt = (e) => `on${Nt(e)}`, Ft = (e, t) => (n) => D({
|
|
|
658
671
|
event: n,
|
|
659
672
|
isExpression: !1
|
|
660
673
|
});
|
|
661
|
-
function
|
|
674
|
+
function He(e) {
|
|
662
675
|
var i;
|
|
663
676
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
664
677
|
for (const o in n) {
|
|
665
678
|
if (!n.hasOwnProperty(o))
|
|
666
679
|
continue;
|
|
667
|
-
const
|
|
668
|
-
let
|
|
680
|
+
const a = n[o];
|
|
681
|
+
let r = Ft(o);
|
|
669
682
|
if (e.stripPrefix)
|
|
670
683
|
switch ($) {
|
|
671
684
|
case "vue":
|
|
672
|
-
|
|
685
|
+
r = r.replace("v-on:", "");
|
|
673
686
|
break;
|
|
674
687
|
case "svelte":
|
|
675
|
-
|
|
688
|
+
r = r.replace("on:", "");
|
|
676
689
|
break;
|
|
677
690
|
}
|
|
678
|
-
t[
|
|
691
|
+
t[r] = $t(a, e);
|
|
679
692
|
}
|
|
680
693
|
return t;
|
|
681
694
|
}
|
|
682
|
-
function
|
|
695
|
+
function Lt({
|
|
683
696
|
properties: e
|
|
684
697
|
}) {
|
|
685
698
|
return e;
|
|
686
699
|
}
|
|
687
|
-
const
|
|
700
|
+
const Ot = (e) => ({
|
|
688
701
|
href: e.href
|
|
689
702
|
});
|
|
690
703
|
function ce({
|
|
@@ -693,7 +706,7 @@ function ce({
|
|
|
693
706
|
}) {
|
|
694
707
|
var i;
|
|
695
708
|
const n = {
|
|
696
|
-
...
|
|
709
|
+
...Ot(e),
|
|
697
710
|
...e.properties,
|
|
698
711
|
"builder-id": e.id,
|
|
699
712
|
style: wt({
|
|
@@ -702,14 +715,14 @@ function ce({
|
|
|
702
715
|
}),
|
|
703
716
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
704
717
|
};
|
|
705
|
-
return
|
|
718
|
+
return Lt({
|
|
706
719
|
properties: n,
|
|
707
720
|
context: t,
|
|
708
721
|
block: e
|
|
709
722
|
});
|
|
710
723
|
}
|
|
711
|
-
function
|
|
712
|
-
return /* @__PURE__ */
|
|
724
|
+
function Dt(e) {
|
|
725
|
+
return /* @__PURE__ */ l(
|
|
713
726
|
re,
|
|
714
727
|
{
|
|
715
728
|
TagName: e.Wrapper,
|
|
@@ -717,7 +730,7 @@ function Ot(e) {
|
|
|
717
730
|
block: e.block,
|
|
718
731
|
context: e.context
|
|
719
732
|
}),
|
|
720
|
-
actionAttributes:
|
|
733
|
+
actionAttributes: He({
|
|
721
734
|
block: e.block,
|
|
722
735
|
rootState: e.context.rootState,
|
|
723
736
|
rootSetState: e.context.rootSetState,
|
|
@@ -729,18 +742,18 @@ function Ot(e) {
|
|
|
729
742
|
}
|
|
730
743
|
);
|
|
731
744
|
}
|
|
732
|
-
function
|
|
745
|
+
function Ut(e) {
|
|
733
746
|
return A(() => {
|
|
734
|
-
}, []), /* @__PURE__ */
|
|
747
|
+
}, []), /* @__PURE__ */ l(T, { children: e.children });
|
|
735
748
|
}
|
|
736
|
-
function
|
|
749
|
+
function _t(e) {
|
|
737
750
|
function t() {
|
|
738
751
|
return e.includeBlockProps ? {
|
|
739
752
|
...ce({
|
|
740
753
|
block: e.block,
|
|
741
754
|
context: e.context
|
|
742
755
|
}),
|
|
743
|
-
...
|
|
756
|
+
...He({
|
|
744
757
|
block: e.block,
|
|
745
758
|
rootState: e.context.rootState,
|
|
746
759
|
rootSetState: e.context.rootSetState,
|
|
@@ -749,8 +762,8 @@ function Ut(e) {
|
|
|
749
762
|
})
|
|
750
763
|
} : {};
|
|
751
764
|
}
|
|
752
|
-
return /* @__PURE__ */
|
|
753
|
-
|
|
765
|
+
return /* @__PURE__ */ l(T, { children: e.Wrapper.load ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
766
|
+
Ut,
|
|
754
767
|
{
|
|
755
768
|
load: e.Wrapper.load,
|
|
756
769
|
fallback: e.Wrapper.fallback,
|
|
@@ -758,7 +771,7 @@ function Ut(e) {
|
|
|
758
771
|
attributes: t(),
|
|
759
772
|
children: e.children
|
|
760
773
|
}
|
|
761
|
-
) }) : /* @__PURE__ */
|
|
774
|
+
) }) : /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
762
775
|
}
|
|
763
776
|
const Ht = ({
|
|
764
777
|
componentOptions: e,
|
|
@@ -766,10 +779,10 @@ const Ht = ({
|
|
|
766
779
|
context: n,
|
|
767
780
|
componentRef: i,
|
|
768
781
|
includeBlockProps: o,
|
|
769
|
-
isInteractive:
|
|
770
|
-
contextValue:
|
|
782
|
+
isInteractive: a,
|
|
783
|
+
contextValue: r
|
|
771
784
|
}) => {
|
|
772
|
-
const
|
|
785
|
+
const s = {
|
|
773
786
|
...e,
|
|
774
787
|
/**
|
|
775
788
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -778,24 +791,24 @@ const Ht = ({
|
|
|
778
791
|
...o ? {
|
|
779
792
|
attributes: ce({
|
|
780
793
|
block: t,
|
|
781
|
-
context:
|
|
794
|
+
context: r
|
|
782
795
|
})
|
|
783
796
|
} : {}
|
|
784
797
|
};
|
|
785
|
-
return
|
|
798
|
+
return a ? {
|
|
786
799
|
Wrapper: i,
|
|
787
800
|
block: t,
|
|
788
801
|
context: n,
|
|
789
802
|
wrapperProps: e,
|
|
790
803
|
includeBlockProps: o
|
|
791
|
-
} :
|
|
804
|
+
} : s;
|
|
792
805
|
};
|
|
793
806
|
function be(e) {
|
|
794
807
|
var i;
|
|
795
|
-
const [t, n] =
|
|
796
|
-
() => e.isInteractive ?
|
|
808
|
+
const [t, n] = E(
|
|
809
|
+
() => e.isInteractive ? _t : e.componentRef
|
|
797
810
|
);
|
|
798
|
-
return /* @__PURE__ */
|
|
811
|
+
return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
|
|
799
812
|
t,
|
|
800
813
|
{
|
|
801
814
|
...Ht({
|
|
@@ -808,8 +821,8 @@ function be(e) {
|
|
|
808
821
|
isInteractive: e.isInteractive,
|
|
809
822
|
contextValue: e.context
|
|
810
823
|
}),
|
|
811
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
812
|
-
|
|
824
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
825
|
+
M,
|
|
813
826
|
{
|
|
814
827
|
block: o,
|
|
815
828
|
context: e.context,
|
|
@@ -822,9 +835,9 @@ function be(e) {
|
|
|
822
835
|
) }) : null });
|
|
823
836
|
}
|
|
824
837
|
function pe(e) {
|
|
825
|
-
const [t, n] =
|
|
826
|
-
return /* @__PURE__ */
|
|
827
|
-
|
|
838
|
+
const [t, n] = E(() => e.repeatContext);
|
|
839
|
+
return /* @__PURE__ */ l(le.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
840
|
+
M,
|
|
828
841
|
{
|
|
829
842
|
block: e.block,
|
|
830
843
|
context: t,
|
|
@@ -833,15 +846,15 @@ function pe(e) {
|
|
|
833
846
|
}
|
|
834
847
|
) });
|
|
835
848
|
}
|
|
836
|
-
function
|
|
849
|
+
function M(e) {
|
|
837
850
|
var h, g, m, y;
|
|
838
851
|
function t() {
|
|
839
|
-
return
|
|
852
|
+
return Rt({
|
|
840
853
|
block: e.block,
|
|
841
854
|
context: e.context
|
|
842
855
|
});
|
|
843
856
|
}
|
|
844
|
-
const [n, i] =
|
|
857
|
+
const [n, i] = E(() => ({
|
|
845
858
|
value: null,
|
|
846
859
|
update: !1
|
|
847
860
|
}));
|
|
@@ -849,28 +862,27 @@ function _(e) {
|
|
|
849
862
|
var v;
|
|
850
863
|
if (n.value && !n.update && !ae())
|
|
851
864
|
return n.value;
|
|
852
|
-
const f = (v = e.block.repeat) != null && v.collection ? e.block :
|
|
865
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : xt({
|
|
853
866
|
block: e.block,
|
|
854
867
|
localState: e.context.localState,
|
|
855
868
|
rootState: e.context.rootState,
|
|
856
869
|
rootSetState: e.context.rootSetState,
|
|
857
|
-
context: e.context.context
|
|
858
|
-
shouldEvaluateBindings: !0
|
|
870
|
+
context: e.context.context
|
|
859
871
|
});
|
|
860
872
|
return n.value = f, n.update = !1, f;
|
|
861
873
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
874
|
+
function a() {
|
|
875
|
+
return Et({
|
|
864
876
|
block: o(),
|
|
865
877
|
registeredComponents: e.registeredComponents,
|
|
866
878
|
model: e.context.model
|
|
867
879
|
});
|
|
868
880
|
}
|
|
869
|
-
function
|
|
881
|
+
function r() {
|
|
870
882
|
var v;
|
|
871
883
|
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
872
884
|
}
|
|
873
|
-
function
|
|
885
|
+
function s() {
|
|
874
886
|
var x, b;
|
|
875
887
|
if ((x = e.block.repeat) != null && x.collection)
|
|
876
888
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
@@ -879,20 +891,20 @@ function _(e) {
|
|
|
879
891
|
}
|
|
880
892
|
function d() {
|
|
881
893
|
var v, x;
|
|
882
|
-
return !((v =
|
|
894
|
+
return !((v = a == null ? void 0 : a()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
883
895
|
}
|
|
884
896
|
function c() {
|
|
885
897
|
var f, v, x, b;
|
|
886
898
|
return {
|
|
887
899
|
blockChildren: (f = o().children) != null ? f : [],
|
|
888
|
-
componentRef: (v =
|
|
900
|
+
componentRef: (v = a == null ? void 0 : a()) == null ? void 0 : v.component,
|
|
889
901
|
componentOptions: {
|
|
890
|
-
...
|
|
891
|
-
...
|
|
892
|
-
...
|
|
893
|
-
...
|
|
894
|
-
...
|
|
895
|
-
|
|
902
|
+
...dt(o(), e.context),
|
|
903
|
+
...Vt(a(), o()),
|
|
904
|
+
...At(a(), e.context),
|
|
905
|
+
...Pt(a(), e.linkComponent),
|
|
906
|
+
...Bt(
|
|
907
|
+
a(),
|
|
896
908
|
e.registeredComponents,
|
|
897
909
|
e.context.model
|
|
898
910
|
)
|
|
@@ -901,13 +913,13 @@ function _(e) {
|
|
|
901
913
|
linkComponent: e.linkComponent,
|
|
902
914
|
registeredComponents: e.registeredComponents,
|
|
903
915
|
builderBlock: o(),
|
|
904
|
-
includeBlockProps: ((x =
|
|
905
|
-
isInteractive: !((b =
|
|
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")
|
|
906
918
|
};
|
|
907
919
|
}
|
|
908
920
|
return A(() => {
|
|
909
921
|
const f = o().id, v = o().animations;
|
|
910
|
-
v && f &&
|
|
922
|
+
v && f && St(
|
|
911
923
|
v.map((x) => ({
|
|
912
924
|
...x,
|
|
913
925
|
elementId: f
|
|
@@ -915,9 +927,9 @@ function _(e) {
|
|
|
915
927
|
);
|
|
916
928
|
}, []), A(() => {
|
|
917
929
|
n.update = !0;
|
|
918
|
-
}), /* @__PURE__ */
|
|
919
|
-
/* @__PURE__ */
|
|
920
|
-
(h =
|
|
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(
|
|
921
933
|
pe,
|
|
922
934
|
{
|
|
923
935
|
repeatContext: f.context,
|
|
@@ -926,7 +938,7 @@ function _(e) {
|
|
|
926
938
|
linkComponent: e.linkComponent
|
|
927
939
|
},
|
|
928
940
|
v
|
|
929
|
-
)) }) : /* @__PURE__ */
|
|
941
|
+
)) }) : /* @__PURE__ */ l(
|
|
930
942
|
be,
|
|
931
943
|
{
|
|
932
944
|
componentRef: c().componentRef,
|
|
@@ -939,7 +951,7 @@ function _(e) {
|
|
|
939
951
|
includeBlockProps: c().includeBlockProps,
|
|
940
952
|
isInteractive: c().isInteractive
|
|
941
953
|
}
|
|
942
|
-
) : /* @__PURE__ */
|
|
954
|
+
) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ l(
|
|
943
955
|
pe,
|
|
944
956
|
{
|
|
945
957
|
repeatContext: f.context,
|
|
@@ -949,13 +961,13 @@ function _(e) {
|
|
|
949
961
|
},
|
|
950
962
|
v
|
|
951
963
|
)) }) : /* @__PURE__ */ N(
|
|
952
|
-
|
|
964
|
+
Dt,
|
|
953
965
|
{
|
|
954
|
-
Wrapper:
|
|
966
|
+
Wrapper: r(),
|
|
955
967
|
block: o(),
|
|
956
968
|
context: e.context,
|
|
957
969
|
children: [
|
|
958
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ l(
|
|
959
971
|
be,
|
|
960
972
|
{
|
|
961
973
|
componentRef: c().componentRef,
|
|
@@ -969,8 +981,8 @@ function _(e) {
|
|
|
969
981
|
isInteractive: c().isInteractive
|
|
970
982
|
}
|
|
971
983
|
),
|
|
972
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
973
|
-
|
|
984
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ l(
|
|
985
|
+
M,
|
|
974
986
|
{
|
|
975
987
|
block: f,
|
|
976
988
|
registeredComponents: e.registeredComponents,
|
|
@@ -984,25 +996,25 @@ function _(e) {
|
|
|
984
996
|
) })
|
|
985
997
|
] }) : null });
|
|
986
998
|
}
|
|
987
|
-
function
|
|
988
|
-
const t =
|
|
999
|
+
function Mt(e) {
|
|
1000
|
+
const t = O(null);
|
|
989
1001
|
function n() {
|
|
990
|
-
var
|
|
1002
|
+
var r;
|
|
991
1003
|
return [
|
|
992
1004
|
"builder-blocks",
|
|
993
|
-
(
|
|
1005
|
+
(r = e.blocks) != null && r.length ? "" : "no-blocks",
|
|
994
1006
|
e.classNameProp
|
|
995
1007
|
].filter(Boolean).join(" ");
|
|
996
1008
|
}
|
|
997
1009
|
function i() {
|
|
998
1010
|
if (!e.path)
|
|
999
1011
|
return;
|
|
1000
|
-
const
|
|
1001
|
-
return e.path.startsWith(
|
|
1012
|
+
const r = "component.options.";
|
|
1013
|
+
return e.path.startsWith(r) ? e.path : `${r}${e.path || ""}`;
|
|
1002
1014
|
}
|
|
1003
1015
|
function o() {
|
|
1004
|
-
var
|
|
1005
|
-
W() && !((
|
|
1016
|
+
var r, s;
|
|
1017
|
+
W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
|
|
1006
1018
|
{
|
|
1007
1019
|
type: "builder.clickEmptyBlocks",
|
|
1008
1020
|
data: {
|
|
@@ -1013,9 +1025,9 @@ function _t(e) {
|
|
|
1013
1025
|
"*"
|
|
1014
1026
|
));
|
|
1015
1027
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var
|
|
1018
|
-
W() && !((
|
|
1028
|
+
function a() {
|
|
1029
|
+
var r, s;
|
|
1030
|
+
W() && !((r = e.blocks) != null && r.length) && ((s = window.parent) == null || s.postMessage(
|
|
1019
1031
|
{
|
|
1020
1032
|
type: "builder.hoverEmptyBlocks",
|
|
1021
1033
|
data: {
|
|
@@ -1027,8 +1039,8 @@ function _t(e) {
|
|
|
1027
1039
|
));
|
|
1028
1040
|
}
|
|
1029
1041
|
return A(() => {
|
|
1030
|
-
}, []), /* @__PURE__ */ N(
|
|
1031
|
-
/* @__PURE__ */
|
|
1042
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
1043
|
+
/* @__PURE__ */ l(
|
|
1032
1044
|
e.BlocksWrapper,
|
|
1033
1045
|
{
|
|
1034
1046
|
ref: t,
|
|
@@ -1036,14 +1048,14 @@ function _t(e) {
|
|
|
1036
1048
|
"builder-path": i(),
|
|
1037
1049
|
"builder-parent-id": e.parent,
|
|
1038
1050
|
style: e.styleProp,
|
|
1039
|
-
onClick: (
|
|
1040
|
-
onMouseEnter: (
|
|
1041
|
-
onKeyPress: (
|
|
1051
|
+
onClick: (r) => o(),
|
|
1052
|
+
onMouseEnter: (r) => a(),
|
|
1053
|
+
onKeyPress: (r) => o(),
|
|
1042
1054
|
...e.BlocksWrapperProps,
|
|
1043
1055
|
children: e.children
|
|
1044
1056
|
}
|
|
1045
1057
|
),
|
|
1046
|
-
/* @__PURE__ */
|
|
1058
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
1047
1059
|
display: flex;
|
|
1048
1060
|
flex-direction: column;
|
|
1049
1061
|
align-items: stretch;
|
|
@@ -1051,10 +1063,10 @@ function _t(e) {
|
|
|
1051
1063
|
] });
|
|
1052
1064
|
}
|
|
1053
1065
|
function F(e) {
|
|
1054
|
-
var i, o,
|
|
1066
|
+
var i, o, a;
|
|
1055
1067
|
const t = fe(le), n = fe(Pe);
|
|
1056
|
-
return /* @__PURE__ */
|
|
1057
|
-
|
|
1068
|
+
return /* @__PURE__ */ l(
|
|
1069
|
+
Mt,
|
|
1058
1070
|
{
|
|
1059
1071
|
blocks: e.blocks,
|
|
1060
1072
|
parent: e.parent,
|
|
@@ -1063,21 +1075,21 @@ function F(e) {
|
|
|
1063
1075
|
classNameProp: e.className,
|
|
1064
1076
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1065
1077
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1066
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1067
|
-
|
|
1078
|
+
children: e.blocks ? /* @__PURE__ */ l(T, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1079
|
+
M,
|
|
1068
1080
|
{
|
|
1069
|
-
block:
|
|
1081
|
+
block: r,
|
|
1070
1082
|
linkComponent: e.linkComponent,
|
|
1071
1083
|
context: e.context || t,
|
|
1072
1084
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1073
1085
|
},
|
|
1074
|
-
|
|
1086
|
+
r.id
|
|
1075
1087
|
)) }) : null
|
|
1076
1088
|
}
|
|
1077
1089
|
);
|
|
1078
1090
|
}
|
|
1079
|
-
const
|
|
1080
|
-
function
|
|
1091
|
+
const jt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1092
|
+
function qt(e) {
|
|
1081
1093
|
var v, x;
|
|
1082
1094
|
function t() {
|
|
1083
1095
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1091,15 +1103,15 @@ function jt(e) {
|
|
|
1091
1103
|
function o(b) {
|
|
1092
1104
|
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1093
1105
|
}
|
|
1094
|
-
function
|
|
1106
|
+
function a(b) {
|
|
1095
1107
|
var p;
|
|
1096
1108
|
return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
|
|
1097
1109
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const p =
|
|
1110
|
+
function r(b) {
|
|
1111
|
+
const p = a(b), C = t() * (n().length - 1) * (p / 100);
|
|
1100
1112
|
return `calc(${p}% - ${C}px)`;
|
|
1101
1113
|
}
|
|
1102
|
-
function
|
|
1114
|
+
function s({
|
|
1103
1115
|
stackedStyle: b,
|
|
1104
1116
|
desktopStyle: p
|
|
1105
1117
|
}) {
|
|
@@ -1117,14 +1129,14 @@ function jt(e) {
|
|
|
1117
1129
|
function h() {
|
|
1118
1130
|
return {
|
|
1119
1131
|
"--flex-dir": c(),
|
|
1120
|
-
"--flex-dir-tablet":
|
|
1132
|
+
"--flex-dir-tablet": s({
|
|
1121
1133
|
stackedStyle: c(),
|
|
1122
1134
|
desktopStyle: "row"
|
|
1123
1135
|
})
|
|
1124
1136
|
};
|
|
1125
1137
|
}
|
|
1126
1138
|
function g(b) {
|
|
1127
|
-
const p = b === 0 ? 0 : t(), C =
|
|
1139
|
+
const p = b === 0 ? 0 : t(), C = r(b), V = `${p}px`, k = "100%", I = 0;
|
|
1128
1140
|
return {
|
|
1129
1141
|
...{
|
|
1130
1142
|
display: "flex",
|
|
@@ -1132,29 +1144,29 @@ function jt(e) {
|
|
|
1132
1144
|
alignItems: "stretch"
|
|
1133
1145
|
},
|
|
1134
1146
|
width: C,
|
|
1135
|
-
["marginLeft"]:
|
|
1147
|
+
["marginLeft"]: V,
|
|
1136
1148
|
"--column-width-mobile": d({
|
|
1137
|
-
stackedStyle:
|
|
1149
|
+
stackedStyle: k,
|
|
1138
1150
|
desktopStyle: C
|
|
1139
1151
|
}),
|
|
1140
1152
|
"--column-margin-left-mobile": d({
|
|
1141
1153
|
stackedStyle: I,
|
|
1142
|
-
desktopStyle:
|
|
1154
|
+
desktopStyle: V
|
|
1143
1155
|
}),
|
|
1144
|
-
"--column-width-tablet":
|
|
1145
|
-
stackedStyle:
|
|
1156
|
+
"--column-width-tablet": s({
|
|
1157
|
+
stackedStyle: k,
|
|
1146
1158
|
desktopStyle: C
|
|
1147
1159
|
}),
|
|
1148
|
-
"--column-margin-left-tablet":
|
|
1160
|
+
"--column-margin-left-tablet": s({
|
|
1149
1161
|
stackedStyle: I,
|
|
1150
|
-
desktopStyle:
|
|
1162
|
+
desktopStyle: V
|
|
1151
1163
|
})
|
|
1152
1164
|
};
|
|
1153
1165
|
}
|
|
1154
1166
|
function m(b) {
|
|
1155
|
-
var C,
|
|
1156
|
-
return
|
|
1157
|
-
((
|
|
1167
|
+
var C, V;
|
|
1168
|
+
return _e(
|
|
1169
|
+
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1158
1170
|
)[b].max;
|
|
1159
1171
|
}
|
|
1160
1172
|
function y() {
|
|
@@ -1194,14 +1206,14 @@ function jt(e) {
|
|
|
1194
1206
|
style: Oe(g(p))
|
|
1195
1207
|
};
|
|
1196
1208
|
}
|
|
1197
|
-
return /* @__PURE__ */ N(
|
|
1209
|
+
return /* @__PURE__ */ N(T, { children: [
|
|
1198
1210
|
/* @__PURE__ */ N(
|
|
1199
1211
|
"div",
|
|
1200
1212
|
{
|
|
1201
|
-
className:
|
|
1213
|
+
className: jt((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
|
|
1202
1214
|
style: h(),
|
|
1203
1215
|
children: [
|
|
1204
|
-
/* @__PURE__ */
|
|
1216
|
+
/* @__PURE__ */ l(
|
|
1205
1217
|
Q,
|
|
1206
1218
|
{
|
|
1207
1219
|
id: "builderio-columns",
|
|
@@ -1209,13 +1221,13 @@ function jt(e) {
|
|
|
1209
1221
|
nonce: e.builderContext.nonce
|
|
1210
1222
|
}
|
|
1211
1223
|
),
|
|
1212
|
-
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */
|
|
1224
|
+
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ l(
|
|
1213
1225
|
re,
|
|
1214
1226
|
{
|
|
1215
1227
|
TagName: o(b),
|
|
1216
1228
|
actionAttributes: {},
|
|
1217
1229
|
attributes: f(b, p),
|
|
1218
|
-
children: /* @__PURE__ */
|
|
1230
|
+
children: /* @__PURE__ */ l(
|
|
1219
1231
|
F,
|
|
1220
1232
|
{
|
|
1221
1233
|
path: `columns.${p}.blocks`,
|
|
@@ -1235,31 +1247,31 @@ function jt(e) {
|
|
|
1235
1247
|
]
|
|
1236
1248
|
}
|
|
1237
1249
|
),
|
|
1238
|
-
/* @__PURE__ */
|
|
1250
|
+
/* @__PURE__ */ l("style", { children: `.div-49f40bae {
|
|
1239
1251
|
display: flex;
|
|
1240
1252
|
line-height: normal;
|
|
1241
1253
|
}` })
|
|
1242
1254
|
] });
|
|
1243
1255
|
}
|
|
1244
|
-
function
|
|
1245
|
-
return /* @__PURE__ */
|
|
1256
|
+
function zt(e) {
|
|
1257
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1246
1258
|
}
|
|
1247
1259
|
function ye(e) {
|
|
1248
1260
|
return e.replace(/http(s)?:/, "");
|
|
1249
1261
|
}
|
|
1250
|
-
function
|
|
1262
|
+
function Kt(e = "", t, n) {
|
|
1251
1263
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1252
1264
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1253
1265
|
}
|
|
1254
|
-
function
|
|
1266
|
+
function Jt(e, t) {
|
|
1255
1267
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1256
1268
|
return e;
|
|
1257
1269
|
if (t === "master")
|
|
1258
1270
|
return ye(e);
|
|
1259
1271
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1260
1272
|
if (n) {
|
|
1261
|
-
const i = e.split(n[0]), o = n[3],
|
|
1262
|
-
return ye(`${i[0]}_${
|
|
1273
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1274
|
+
return ye(`${i[0]}_${a}${o}`);
|
|
1263
1275
|
}
|
|
1264
1276
|
return null;
|
|
1265
1277
|
}
|
|
@@ -1270,12 +1282,12 @@ function X(e) {
|
|
|
1270
1282
|
if (e.match(/builder\.io/)) {
|
|
1271
1283
|
let n = e;
|
|
1272
1284
|
const i = Number(e.split("?width=")[1]);
|
|
1273
|
-
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(", ");
|
|
1274
1286
|
}
|
|
1275
|
-
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;
|
|
1276
1288
|
}
|
|
1277
|
-
function
|
|
1278
|
-
var o,
|
|
1289
|
+
function Gt(e) {
|
|
1290
|
+
var o, a, r, s, d, c;
|
|
1279
1291
|
function t() {
|
|
1280
1292
|
var m;
|
|
1281
1293
|
const g = e.image || e.src;
|
|
@@ -1307,11 +1319,11 @@ function Jt(e) {
|
|
|
1307
1319
|
return e.aspectRatio ? h : void 0;
|
|
1308
1320
|
}
|
|
1309
1321
|
return A(() => {
|
|
1310
|
-
}, []), /* @__PURE__ */ N(
|
|
1311
|
-
/* @__PURE__ */ N(
|
|
1322
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
1323
|
+
/* @__PURE__ */ N(T, { children: [
|
|
1312
1324
|
/* @__PURE__ */ N("picture", { children: [
|
|
1313
|
-
n() ? /* @__PURE__ */
|
|
1314
|
-
/* @__PURE__ */
|
|
1325
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1326
|
+
/* @__PURE__ */ l(
|
|
1315
1327
|
"img",
|
|
1316
1328
|
{
|
|
1317
1329
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1330,7 +1342,7 @@ function Jt(e) {
|
|
|
1330
1342
|
}
|
|
1331
1343
|
)
|
|
1332
1344
|
] }),
|
|
1333
|
-
e.aspectRatio && !((
|
|
1345
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1334
1346
|
"div",
|
|
1335
1347
|
{
|
|
1336
1348
|
className: "builder-image-sizer div-c071ff08",
|
|
@@ -1339,10 +1351,10 @@ function Jt(e) {
|
|
|
1339
1351
|
}
|
|
1340
1352
|
}
|
|
1341
1353
|
) : null,
|
|
1342
|
-
(
|
|
1343
|
-
!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
|
|
1344
1356
|
] }),
|
|
1345
|
-
/* @__PURE__ */
|
|
1357
|
+
/* @__PURE__ */ l("style", { children: `.img-c071ff08 {
|
|
1346
1358
|
opacity: 1;
|
|
1347
1359
|
transition: opacity 0.2s ease-in-out;
|
|
1348
1360
|
}.div-c071ff08 {
|
|
@@ -1361,8 +1373,8 @@ function Jt(e) {
|
|
|
1361
1373
|
}` })
|
|
1362
1374
|
] });
|
|
1363
1375
|
}
|
|
1364
|
-
function
|
|
1365
|
-
return /* @__PURE__ */
|
|
1376
|
+
function Yt(e) {
|
|
1377
|
+
return /* @__PURE__ */ l(
|
|
1366
1378
|
"section",
|
|
1367
1379
|
{
|
|
1368
1380
|
...e.attributes,
|
|
@@ -1442,7 +1454,7 @@ const Z = {
|
|
|
1442
1454
|
}
|
|
1443
1455
|
}
|
|
1444
1456
|
}]
|
|
1445
|
-
},
|
|
1457
|
+
}, Qt = {
|
|
1446
1458
|
name: "Builder:Accordion",
|
|
1447
1459
|
canHaveChildren: !0,
|
|
1448
1460
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1507,9 +1519,9 @@ const Z = {
|
|
|
1507
1519
|
builderLinkComponent: !0
|
|
1508
1520
|
}
|
|
1509
1521
|
}, xe = (e) => e.toString();
|
|
1510
|
-
function
|
|
1522
|
+
function Xt(e) {
|
|
1511
1523
|
var g;
|
|
1512
|
-
const [t, n] =
|
|
1524
|
+
const [t, n] = E(() => []);
|
|
1513
1525
|
function i() {
|
|
1514
1526
|
return !!(e.grid || e.oneAtATime);
|
|
1515
1527
|
}
|
|
@@ -1525,7 +1537,7 @@ function Qt(e) {
|
|
|
1525
1537
|
}
|
|
1526
1538
|
};
|
|
1527
1539
|
}
|
|
1528
|
-
function
|
|
1540
|
+
function a() {
|
|
1529
1541
|
const y = {
|
|
1530
1542
|
...{
|
|
1531
1543
|
display: "flex",
|
|
@@ -1538,10 +1550,10 @@ function Qt(e) {
|
|
|
1538
1550
|
Object.entries(y).filter(([f, v]) => v !== void 0)
|
|
1539
1551
|
);
|
|
1540
1552
|
}
|
|
1541
|
-
function
|
|
1553
|
+
function r(m) {
|
|
1542
1554
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1543
1555
|
}
|
|
1544
|
-
function
|
|
1556
|
+
function s(m) {
|
|
1545
1557
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1546
1558
|
}
|
|
1547
1559
|
function d() {
|
|
@@ -1585,13 +1597,13 @@ function Qt(e) {
|
|
|
1585
1597
|
function h(m) {
|
|
1586
1598
|
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1587
1599
|
}
|
|
1588
|
-
return /* @__PURE__ */
|
|
1589
|
-
/* @__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(
|
|
1590
1602
|
"div",
|
|
1591
1603
|
{
|
|
1592
|
-
className:
|
|
1604
|
+
className: r(y),
|
|
1593
1605
|
style: {
|
|
1594
|
-
...
|
|
1606
|
+
...a(),
|
|
1595
1607
|
...e.grid && {
|
|
1596
1608
|
width: e.gridRowWidth,
|
|
1597
1609
|
order: d() !== null ? xe(y) : xe(y + 1)
|
|
@@ -1599,7 +1611,7 @@ function Qt(e) {
|
|
|
1599
1611
|
},
|
|
1600
1612
|
"data-index": y,
|
|
1601
1613
|
onClick: (f) => h(y),
|
|
1602
|
-
children: /* @__PURE__ */
|
|
1614
|
+
children: /* @__PURE__ */ l(
|
|
1603
1615
|
F,
|
|
1604
1616
|
{
|
|
1605
1617
|
blocks: m.title,
|
|
@@ -1612,12 +1624,12 @@ function Qt(e) {
|
|
|
1612
1624
|
)
|
|
1613
1625
|
}
|
|
1614
1626
|
),
|
|
1615
|
-
t.includes(y) ? /* @__PURE__ */
|
|
1627
|
+
t.includes(y) ? /* @__PURE__ */ l(
|
|
1616
1628
|
"div",
|
|
1617
1629
|
{
|
|
1618
|
-
className:
|
|
1630
|
+
className: s(y),
|
|
1619
1631
|
style: c(),
|
|
1620
|
-
children: /* @__PURE__ */
|
|
1632
|
+
children: /* @__PURE__ */ l(
|
|
1621
1633
|
F,
|
|
1622
1634
|
{
|
|
1623
1635
|
blocks: m.detail,
|
|
@@ -1632,7 +1644,7 @@ function Qt(e) {
|
|
|
1632
1644
|
) : null
|
|
1633
1645
|
] })) });
|
|
1634
1646
|
}
|
|
1635
|
-
const
|
|
1647
|
+
const Zt = {
|
|
1636
1648
|
name: "Core:Button",
|
|
1637
1649
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1638
1650
|
defaultStyles: {
|
|
@@ -1668,7 +1680,7 @@ const Xt = {
|
|
|
1668
1680
|
shouldReceiveBuilderProps: {
|
|
1669
1681
|
builderLinkComponent: !0
|
|
1670
1682
|
}
|
|
1671
|
-
},
|
|
1683
|
+
}, en = {
|
|
1672
1684
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1673
1685
|
name: "Columns",
|
|
1674
1686
|
isRSC: !0,
|
|
@@ -1847,7 +1859,7 @@ const Xt = {
|
|
|
1847
1859
|
});
|
|
1848
1860
|
}
|
|
1849
1861
|
const n = e.get("columns");
|
|
1850
|
-
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();
|
|
1851
1863
|
}
|
|
1852
1864
|
}, {
|
|
1853
1865
|
name: "space",
|
|
@@ -1875,13 +1887,13 @@ const Xt = {
|
|
|
1875
1887
|
builderComponents: !0,
|
|
1876
1888
|
builderLinkComponent: !0
|
|
1877
1889
|
}
|
|
1878
|
-
},
|
|
1890
|
+
}, tn = {
|
|
1879
1891
|
name: "Fragment",
|
|
1880
1892
|
static: !0,
|
|
1881
1893
|
hidden: !0,
|
|
1882
1894
|
canHaveChildren: !0,
|
|
1883
1895
|
noWrap: !0
|
|
1884
|
-
}, 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"],
|
|
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 = {
|
|
1885
1897
|
name: "Image",
|
|
1886
1898
|
static: !0,
|
|
1887
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",
|
|
@@ -1901,7 +1913,7 @@ const Xt = {
|
|
|
1901
1913
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1902
1914
|
onChange: (e) => {
|
|
1903
1915
|
e.delete("srcset"), e.delete("noWebp");
|
|
1904
|
-
function n(
|
|
1916
|
+
function n(r, s = 6e4) {
|
|
1905
1917
|
return new Promise((d, c) => {
|
|
1906
1918
|
const h = document.createElement("img");
|
|
1907
1919
|
let g = !1;
|
|
@@ -1909,21 +1921,21 @@ const Xt = {
|
|
|
1909
1921
|
g = !0, d(h);
|
|
1910
1922
|
}, h.addEventListener("error", (m) => {
|
|
1911
1923
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1912
|
-
}), h.src =
|
|
1924
|
+
}), h.src = r, setTimeout(() => {
|
|
1913
1925
|
g || c(new Error("Image load timed out"));
|
|
1914
|
-
},
|
|
1926
|
+
}, s);
|
|
1915
1927
|
});
|
|
1916
1928
|
}
|
|
1917
|
-
function i(
|
|
1918
|
-
return Math.round(
|
|
1929
|
+
function i(r) {
|
|
1930
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1919
1931
|
}
|
|
1920
|
-
const o = e.get("image"),
|
|
1921
|
-
if (fetch(o).then((
|
|
1922
|
-
|
|
1923
|
-
}), o && (!
|
|
1924
|
-
return n(o).then((
|
|
1925
|
-
const
|
|
1926
|
-
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));
|
|
1927
1939
|
});
|
|
1928
1940
|
}
|
|
1929
1941
|
}, {
|
|
@@ -1989,7 +2001,7 @@ const Xt = {
|
|
|
1989
2001
|
shouldReceiveBuilderProps: {
|
|
1990
2002
|
builderBlock: !0
|
|
1991
2003
|
}
|
|
1992
|
-
},
|
|
2004
|
+
}, an = {
|
|
1993
2005
|
name: "Core:Section",
|
|
1994
2006
|
static: !0,
|
|
1995
2007
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2028,7 +2040,7 @@ const Xt = {
|
|
|
2028
2040
|
}
|
|
2029
2041
|
}
|
|
2030
2042
|
}]
|
|
2031
|
-
},
|
|
2043
|
+
}, rn = {
|
|
2032
2044
|
name: "Slot",
|
|
2033
2045
|
isRSC: !0,
|
|
2034
2046
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2046,9 +2058,9 @@ const Xt = {
|
|
|
2046
2058
|
builderComponents: !0
|
|
2047
2059
|
}
|
|
2048
2060
|
};
|
|
2049
|
-
function
|
|
2061
|
+
function ln(e) {
|
|
2050
2062
|
var t, n, i;
|
|
2051
|
-
return /* @__PURE__ */
|
|
2063
|
+
return /* @__PURE__ */ l(
|
|
2052
2064
|
"div",
|
|
2053
2065
|
{
|
|
2054
2066
|
style: {
|
|
@@ -2057,7 +2069,7 @@ function rn(e) {
|
|
|
2057
2069
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2058
2070
|
"builder-slot": e.name
|
|
2059
2071
|
},
|
|
2060
|
-
children: /* @__PURE__ */
|
|
2072
|
+
children: /* @__PURE__ */ l(
|
|
2061
2073
|
F,
|
|
2062
2074
|
{
|
|
2063
2075
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2070,7 +2082,7 @@ function rn(e) {
|
|
|
2070
2082
|
}
|
|
2071
2083
|
);
|
|
2072
2084
|
}
|
|
2073
|
-
const
|
|
2085
|
+
const sn = {
|
|
2074
2086
|
name: "Symbol",
|
|
2075
2087
|
noWrap: !0,
|
|
2076
2088
|
static: !0,
|
|
@@ -2147,7 +2159,7 @@ const ln = {
|
|
|
2147
2159
|
text: "New tab content "
|
|
2148
2160
|
}
|
|
2149
2161
|
}
|
|
2150
|
-
},
|
|
2162
|
+
}, cn = {
|
|
2151
2163
|
name: "Builder: Tabs",
|
|
2152
2164
|
inputs: [{
|
|
2153
2165
|
name: "tabs",
|
|
@@ -2251,19 +2263,19 @@ const ln = {
|
|
|
2251
2263
|
builderLinkComponent: !0
|
|
2252
2264
|
}
|
|
2253
2265
|
};
|
|
2254
|
-
function
|
|
2255
|
-
var
|
|
2256
|
-
const [t, n] =
|
|
2266
|
+
function dn(e) {
|
|
2267
|
+
var a;
|
|
2268
|
+
const [t, n] = E(
|
|
2257
2269
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2258
2270
|
);
|
|
2259
|
-
function i(
|
|
2260
|
-
return e.tabs && e.tabs[
|
|
2271
|
+
function i(r) {
|
|
2272
|
+
return e.tabs && e.tabs[r].content;
|
|
2261
2273
|
}
|
|
2262
|
-
function o(
|
|
2263
|
-
|
|
2274
|
+
function o(r) {
|
|
2275
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2264
2276
|
}
|
|
2265
2277
|
return /* @__PURE__ */ N("div", { children: [
|
|
2266
|
-
/* @__PURE__ */
|
|
2278
|
+
/* @__PURE__ */ l(
|
|
2267
2279
|
"div",
|
|
2268
2280
|
{
|
|
2269
2281
|
className: "builder-tabs-wrap",
|
|
@@ -2273,31 +2285,31 @@ function cn(e) {
|
|
|
2273
2285
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2274
2286
|
overflow: "auto"
|
|
2275
2287
|
},
|
|
2276
|
-
children: (
|
|
2288
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
|
|
2277
2289
|
"span",
|
|
2278
2290
|
{
|
|
2279
|
-
className: `builder-tab-wrap ${t ===
|
|
2291
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2280
2292
|
style: {
|
|
2281
|
-
...t ===
|
|
2293
|
+
...t === s ? e.activeTabStyle : {}
|
|
2282
2294
|
},
|
|
2283
|
-
onClick: (d) => o(
|
|
2284
|
-
children: /* @__PURE__ */
|
|
2295
|
+
onClick: (d) => o(s),
|
|
2296
|
+
children: /* @__PURE__ */ l(
|
|
2285
2297
|
F,
|
|
2286
2298
|
{
|
|
2287
2299
|
parent: e.builderBlock.id,
|
|
2288
|
-
path: `tabs.${
|
|
2289
|
-
blocks:
|
|
2300
|
+
path: `tabs.${s}.label`,
|
|
2301
|
+
blocks: r.label,
|
|
2290
2302
|
context: e.builderContext,
|
|
2291
2303
|
registeredComponents: e.builderComponents,
|
|
2292
2304
|
linkComponent: e.builderLinkComponent
|
|
2293
2305
|
}
|
|
2294
2306
|
)
|
|
2295
2307
|
},
|
|
2296
|
-
|
|
2308
|
+
s
|
|
2297
2309
|
))
|
|
2298
2310
|
}
|
|
2299
2311
|
),
|
|
2300
|
-
i(t) ? /* @__PURE__ */
|
|
2312
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2301
2313
|
F,
|
|
2302
2314
|
{
|
|
2303
2315
|
parent: e.builderBlock.id,
|
|
@@ -2310,7 +2322,7 @@ function cn(e) {
|
|
|
2310
2322
|
) }) : null
|
|
2311
2323
|
] });
|
|
2312
2324
|
}
|
|
2313
|
-
const
|
|
2325
|
+
const un = {
|
|
2314
2326
|
shouldReceiveBuilderProps: {
|
|
2315
2327
|
builderBlock: !1,
|
|
2316
2328
|
builderContext: !0
|
|
@@ -2333,38 +2345,20 @@ const dn = {
|
|
|
2333
2345
|
textAlign: "center"
|
|
2334
2346
|
}
|
|
2335
2347
|
};
|
|
2336
|
-
function
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
const n = e.builderContext, {
|
|
2340
|
-
context: i,
|
|
2341
|
-
localState: o,
|
|
2342
|
-
rootState: r,
|
|
2343
|
-
rootSetState: a
|
|
2344
|
-
} = n;
|
|
2345
|
-
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2346
|
-
/{{([^}]+)}}/g,
|
|
2347
|
-
(d, c) => D({
|
|
2348
|
-
code: c,
|
|
2349
|
-
context: i,
|
|
2350
|
-
localState: o,
|
|
2351
|
-
rootState: r,
|
|
2352
|
-
rootSetState: a
|
|
2353
|
-
})
|
|
2354
|
-
);
|
|
2355
|
-
}
|
|
2356
|
-
return /* @__PURE__ */ s(
|
|
2348
|
+
function mn(e) {
|
|
2349
|
+
var t;
|
|
2350
|
+
return /* @__PURE__ */ l(
|
|
2357
2351
|
"div",
|
|
2358
2352
|
{
|
|
2359
2353
|
className: "builder-text",
|
|
2360
|
-
dangerouslySetInnerHTML: { __html: t() },
|
|
2354
|
+
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
2361
2355
|
style: {
|
|
2362
2356
|
outline: "none"
|
|
2363
2357
|
}
|
|
2364
2358
|
}
|
|
2365
2359
|
);
|
|
2366
2360
|
}
|
|
2367
|
-
const
|
|
2361
|
+
const fn = {
|
|
2368
2362
|
name: "Custom Code",
|
|
2369
2363
|
static: !0,
|
|
2370
2364
|
requiredPermissions: ["editCode"],
|
|
@@ -2387,15 +2381,15 @@ const mn = {
|
|
|
2387
2381
|
advanced: !0
|
|
2388
2382
|
}]
|
|
2389
2383
|
};
|
|
2390
|
-
function
|
|
2391
|
-
const t =
|
|
2384
|
+
function hn(e) {
|
|
2385
|
+
const t = O(null), [n, i] = E(() => []), [o, a] = E(() => []);
|
|
2392
2386
|
return A(() => {
|
|
2393
|
-
var
|
|
2394
|
-
if (!((
|
|
2387
|
+
var s;
|
|
2388
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2395
2389
|
return;
|
|
2396
|
-
const
|
|
2397
|
-
for (let d = 0; d <
|
|
2398
|
-
const c =
|
|
2390
|
+
const r = t.current.getElementsByTagName("script");
|
|
2391
|
+
for (let d = 0; d < r.length; d++) {
|
|
2392
|
+
const c = r[d];
|
|
2399
2393
|
if (c.src) {
|
|
2400
2394
|
if (n.includes(c.src))
|
|
2401
2395
|
continue;
|
|
@@ -2416,7 +2410,7 @@ function fn(e) {
|
|
|
2416
2410
|
}
|
|
2417
2411
|
}
|
|
2418
2412
|
}
|
|
2419
|
-
}, []), /* @__PURE__ */
|
|
2413
|
+
}, []), /* @__PURE__ */ l(
|
|
2420
2414
|
"div",
|
|
2421
2415
|
{
|
|
2422
2416
|
ref: t,
|
|
@@ -2425,7 +2419,7 @@ function fn(e) {
|
|
|
2425
2419
|
}
|
|
2426
2420
|
);
|
|
2427
2421
|
}
|
|
2428
|
-
const
|
|
2422
|
+
const gn = {
|
|
2429
2423
|
name: "Embed",
|
|
2430
2424
|
static: !0,
|
|
2431
2425
|
inputs: [{
|
|
@@ -2440,9 +2434,9 @@ const hn = {
|
|
|
2440
2434
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2441
2435
|
hideFromUI: !0
|
|
2442
2436
|
}]
|
|
2443
|
-
},
|
|
2444
|
-
function
|
|
2445
|
-
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);
|
|
2446
2440
|
function d() {
|
|
2447
2441
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2448
2442
|
return;
|
|
@@ -2453,7 +2447,7 @@ function pn(e) {
|
|
|
2453
2447
|
n.push(g.src);
|
|
2454
2448
|
const m = document.createElement("script");
|
|
2455
2449
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2456
|
-
} else if (
|
|
2450
|
+
} else if (pn(g) && !o.includes(g.innerText))
|
|
2457
2451
|
try {
|
|
2458
2452
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2459
2453
|
} catch (m) {
|
|
@@ -2462,8 +2456,8 @@ function pn(e) {
|
|
|
2462
2456
|
}
|
|
2463
2457
|
}
|
|
2464
2458
|
return A(() => {
|
|
2465
|
-
t.current && !
|
|
2466
|
-
}, [t.current,
|
|
2459
|
+
t.current && !r && (s(!0), d());
|
|
2460
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2467
2461
|
"div",
|
|
2468
2462
|
{
|
|
2469
2463
|
className: "builder-embed",
|
|
@@ -2472,7 +2466,7 @@ function pn(e) {
|
|
|
2472
2466
|
}
|
|
2473
2467
|
);
|
|
2474
2468
|
}
|
|
2475
|
-
const
|
|
2469
|
+
const xn = {
|
|
2476
2470
|
name: "Form:Form",
|
|
2477
2471
|
// editableTags: ['builder-form-error']
|
|
2478
2472
|
defaults: {
|
|
@@ -2709,13 +2703,13 @@ const yn = {
|
|
|
2709
2703
|
builderComponents: !0,
|
|
2710
2704
|
builderLinkComponent: !0
|
|
2711
2705
|
}
|
|
2712
|
-
},
|
|
2706
|
+
}, vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Sn = () => {
|
|
2713
2707
|
const e = process.env.NODE_ENV || "production";
|
|
2714
|
-
return
|
|
2708
|
+
return vn.includes(e) ? e : "production";
|
|
2715
2709
|
};
|
|
2716
|
-
function
|
|
2710
|
+
function kn(e) {
|
|
2717
2711
|
var g, m;
|
|
2718
|
-
const t =
|
|
2712
|
+
const t = O(null), [n, i] = E(() => "unsubmitted"), [o, a] = E(() => null), [r, s] = E(() => "");
|
|
2719
2713
|
function d(y) {
|
|
2720
2714
|
var v, x;
|
|
2721
2715
|
const f = {
|
|
@@ -2740,86 +2734,86 @@ function Sn(e) {
|
|
|
2740
2734
|
y.preventDefault();
|
|
2741
2735
|
const x = y.currentTarget || y.target, b = e.customHeaders || {};
|
|
2742
2736
|
let p;
|
|
2743
|
-
const C = new FormData(x),
|
|
2744
|
-
let
|
|
2745
|
-
const
|
|
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;
|
|
2746
2740
|
if (u instanceof HTMLInputElement)
|
|
2747
2741
|
if (u.type === "radio") {
|
|
2748
2742
|
if (u.checked)
|
|
2749
|
-
return
|
|
2750
|
-
key:
|
|
2751
|
-
value:
|
|
2743
|
+
return S = u.name, {
|
|
2744
|
+
key: P,
|
|
2745
|
+
value: S
|
|
2752
2746
|
};
|
|
2753
2747
|
} else if (u.type === "checkbox")
|
|
2754
|
-
|
|
2748
|
+
S = u.checked;
|
|
2755
2749
|
else if (u.type === "number" || u.type === "range") {
|
|
2756
|
-
const
|
|
2757
|
-
isNaN(
|
|
2750
|
+
const w = u.valueAsNumber;
|
|
2751
|
+
isNaN(w) || (S = w);
|
|
2758
2752
|
} else
|
|
2759
|
-
u.type === "file" ?
|
|
2753
|
+
u.type === "file" ? S = u.files : S = u.value;
|
|
2760
2754
|
else
|
|
2761
|
-
|
|
2755
|
+
S = u.value;
|
|
2762
2756
|
return {
|
|
2763
|
-
key:
|
|
2764
|
-
value:
|
|
2757
|
+
key: P,
|
|
2758
|
+
value: S
|
|
2765
2759
|
};
|
|
2766
2760
|
});
|
|
2767
|
-
let
|
|
2768
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2769
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2770
|
-
}),
|
|
2761
|
+
let k = e.contentType;
|
|
2762
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(V).forEach(({ value: u }) => {
|
|
2763
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2764
|
+
}), k !== "application/json")
|
|
2771
2765
|
p = C;
|
|
2772
2766
|
else {
|
|
2773
2767
|
const u = {};
|
|
2774
|
-
Array.from(
|
|
2775
|
-
Ne(u,
|
|
2768
|
+
Array.from(V).forEach(({ value: S, key: P }) => {
|
|
2769
|
+
Ne(u, P, S);
|
|
2776
2770
|
}), p = JSON.stringify(u);
|
|
2777
2771
|
}
|
|
2778
|
-
|
|
2772
|
+
k && k !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = k));
|
|
2779
2773
|
const I = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2780
2774
|
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2781
2775
|
return;
|
|
2782
2776
|
i("sending");
|
|
2783
|
-
const
|
|
2777
|
+
const R = `${Sn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2784
2778
|
e.sendSubmissionsToEmail || ""
|
|
2785
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2786
|
-
|
|
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(
|
|
2787
2781
|
async (u) => {
|
|
2788
|
-
let
|
|
2789
|
-
const
|
|
2790
|
-
if (
|
|
2791
|
-
let
|
|
2792
|
-
|
|
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 }));
|
|
2793
2787
|
}
|
|
2794
|
-
if (
|
|
2795
|
-
const
|
|
2796
|
-
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 }
|
|
2797
2791
|
});
|
|
2798
2792
|
if (t.current) {
|
|
2799
|
-
if (t.current.dispatchEvent(
|
|
2793
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2800
2794
|
return;
|
|
2801
2795
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2802
2796
|
}
|
|
2803
2797
|
if (e.successUrl)
|
|
2804
2798
|
if (t.current) {
|
|
2805
|
-
const
|
|
2799
|
+
const L = new CustomEvent("route", {
|
|
2806
2800
|
detail: { url: e.successUrl }
|
|
2807
2801
|
});
|
|
2808
|
-
t.current.dispatchEvent(
|
|
2802
|
+
t.current.dispatchEvent(L), L.defaultPrevented || (location.href = e.successUrl);
|
|
2809
2803
|
} else
|
|
2810
2804
|
location.href = e.successUrl;
|
|
2811
2805
|
}
|
|
2812
2806
|
},
|
|
2813
2807
|
(u) => {
|
|
2814
|
-
const
|
|
2808
|
+
const S = new CustomEvent("submit:error", {
|
|
2815
2809
|
detail: { error: u }
|
|
2816
2810
|
});
|
|
2817
|
-
t.current && (t.current.dispatchEvent(
|
|
2811
|
+
t.current && (t.current.dispatchEvent(S), S.defaultPrevented) || (a(u), i("error"));
|
|
2818
2812
|
}
|
|
2819
2813
|
);
|
|
2820
2814
|
}
|
|
2821
2815
|
}
|
|
2822
|
-
return /* @__PURE__ */ N(
|
|
2816
|
+
return /* @__PURE__ */ N(T, { children: [
|
|
2823
2817
|
" ",
|
|
2824
2818
|
/* @__PURE__ */ N(
|
|
2825
2819
|
"form",
|
|
@@ -2832,8 +2826,8 @@ function Sn(e) {
|
|
|
2832
2826
|
onSubmit: (y) => h(y),
|
|
2833
2827
|
...e.attributes,
|
|
2834
2828
|
children: [
|
|
2835
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2836
|
-
|
|
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,
|
|
2837
2831
|
{
|
|
2838
2832
|
block: y,
|
|
2839
2833
|
context: e.builderContext,
|
|
@@ -2842,7 +2836,7 @@ function Sn(e) {
|
|
|
2842
2836
|
},
|
|
2843
2837
|
`form-block-${f}`
|
|
2844
2838
|
)) }) : null,
|
|
2845
|
-
c() === "error" ? /* @__PURE__ */
|
|
2839
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2846
2840
|
F,
|
|
2847
2841
|
{
|
|
2848
2842
|
path: "errorMessage",
|
|
@@ -2850,7 +2844,7 @@ function Sn(e) {
|
|
|
2850
2844
|
context: e.builderContext
|
|
2851
2845
|
}
|
|
2852
2846
|
) : null,
|
|
2853
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2847
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2854
2848
|
F,
|
|
2855
2849
|
{
|
|
2856
2850
|
path: "sendingMessage",
|
|
@@ -2858,8 +2852,8 @@ function Sn(e) {
|
|
|
2858
2852
|
context: e.builderContext
|
|
2859
2853
|
}
|
|
2860
2854
|
) : null,
|
|
2861
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2862
|
-
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(
|
|
2863
2857
|
F,
|
|
2864
2858
|
{
|
|
2865
2859
|
path: "successMessage",
|
|
@@ -2871,11 +2865,11 @@ function Sn(e) {
|
|
|
2871
2865
|
}
|
|
2872
2866
|
),
|
|
2873
2867
|
" ",
|
|
2874
|
-
/* @__PURE__ */
|
|
2868
|
+
/* @__PURE__ */ l("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2875
2869
|
" "
|
|
2876
2870
|
] });
|
|
2877
2871
|
}
|
|
2878
|
-
const
|
|
2872
|
+
const Cn = {
|
|
2879
2873
|
name: "Form:Input",
|
|
2880
2874
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2881
2875
|
inputs: [
|
|
@@ -2927,7 +2921,7 @@ const kn = {
|
|
|
2927
2921
|
borderColor: "#ccc"
|
|
2928
2922
|
}
|
|
2929
2923
|
};
|
|
2930
|
-
function
|
|
2924
|
+
function Tn(e) {
|
|
2931
2925
|
return /* @__PURE__ */ Re(
|
|
2932
2926
|
"input",
|
|
2933
2927
|
{
|
|
@@ -2942,7 +2936,7 @@ function Cn(e) {
|
|
|
2942
2936
|
}
|
|
2943
2937
|
);
|
|
2944
2938
|
}
|
|
2945
|
-
const
|
|
2939
|
+
const In = {
|
|
2946
2940
|
name: "Form:Select",
|
|
2947
2941
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2948
2942
|
defaultStyles: {
|
|
@@ -2997,10 +2991,10 @@ function wn(e) {
|
|
|
2997
2991
|
name: e.name,
|
|
2998
2992
|
required: e.required
|
|
2999
2993
|
},
|
|
3000
|
-
(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}`))
|
|
3001
2995
|
);
|
|
3002
2996
|
}
|
|
3003
|
-
const
|
|
2997
|
+
const En = {
|
|
3004
2998
|
name: "Form:SubmitButton",
|
|
3005
2999
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3006
3000
|
defaultStyles: {
|
|
@@ -3026,10 +3020,10 @@ const In = {
|
|
|
3026
3020
|
// TODO: defaultChildren
|
|
3027
3021
|
// canHaveChildren: true,
|
|
3028
3022
|
};
|
|
3029
|
-
function
|
|
3030
|
-
return /* @__PURE__ */
|
|
3023
|
+
function Rn(e) {
|
|
3024
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3031
3025
|
}
|
|
3032
|
-
const
|
|
3026
|
+
const Pn = {
|
|
3033
3027
|
name: "Form:TextArea",
|
|
3034
3028
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3035
3029
|
inputs: [{
|
|
@@ -3066,8 +3060,8 @@ const Rn = {
|
|
|
3066
3060
|
static: !0,
|
|
3067
3061
|
noWrap: !0
|
|
3068
3062
|
};
|
|
3069
|
-
function
|
|
3070
|
-
return /* @__PURE__ */
|
|
3063
|
+
function Bn(e) {
|
|
3064
|
+
return /* @__PURE__ */ l(
|
|
3071
3065
|
"textarea",
|
|
3072
3066
|
{
|
|
3073
3067
|
...e.attributes,
|
|
@@ -3079,7 +3073,7 @@ function Pn(e) {
|
|
|
3079
3073
|
}
|
|
3080
3074
|
);
|
|
3081
3075
|
}
|
|
3082
|
-
const
|
|
3076
|
+
const Vn = {
|
|
3083
3077
|
// friendlyName?
|
|
3084
3078
|
name: "Raw:Img",
|
|
3085
3079
|
hideFromInsertMenu: !0,
|
|
@@ -3094,8 +3088,8 @@ const Bn = {
|
|
|
3094
3088
|
noWrap: !0,
|
|
3095
3089
|
static: !0
|
|
3096
3090
|
};
|
|
3097
|
-
function
|
|
3098
|
-
return /* @__PURE__ */
|
|
3091
|
+
function An(e) {
|
|
3092
|
+
return /* @__PURE__ */ l(
|
|
3099
3093
|
"img",
|
|
3100
3094
|
{
|
|
3101
3095
|
style: {
|
|
@@ -3109,7 +3103,7 @@ function Vn(e) {
|
|
|
3109
3103
|
W() && e.imgSrc || "default-key"
|
|
3110
3104
|
);
|
|
3111
3105
|
}
|
|
3112
|
-
const
|
|
3106
|
+
const Nn = {
|
|
3113
3107
|
name: "Video",
|
|
3114
3108
|
canHaveChildren: !0,
|
|
3115
3109
|
defaultStyles: {
|
|
@@ -3120,7 +3114,7 @@ const An = {
|
|
|
3120
3114
|
inputs: [{
|
|
3121
3115
|
name: "video",
|
|
3122
3116
|
type: "file",
|
|
3123
|
-
allowedFileTypes:
|
|
3117
|
+
allowedFileTypes: nn,
|
|
3124
3118
|
bubble: !0,
|
|
3125
3119
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3126
3120
|
required: !0
|
|
@@ -3194,8 +3188,8 @@ const An = {
|
|
|
3194
3188
|
builderBlock: !0
|
|
3195
3189
|
}
|
|
3196
3190
|
};
|
|
3197
|
-
function
|
|
3198
|
-
var i, o,
|
|
3191
|
+
function Wn(e) {
|
|
3192
|
+
var i, o, a, r, s, d, c;
|
|
3199
3193
|
function t() {
|
|
3200
3194
|
return {
|
|
3201
3195
|
...e.autoPlay === !0 ? {
|
|
@@ -3227,7 +3221,7 @@ function Nn(e) {
|
|
|
3227
3221
|
position: "relative"
|
|
3228
3222
|
},
|
|
3229
3223
|
children: [
|
|
3230
|
-
/* @__PURE__ */
|
|
3224
|
+
/* @__PURE__ */ l(
|
|
3231
3225
|
"video",
|
|
3232
3226
|
{
|
|
3233
3227
|
className: "builder-video",
|
|
@@ -3249,10 +3243,10 @@ function Nn(e) {
|
|
|
3249
3243
|
},
|
|
3250
3244
|
src: e.video || "no-src",
|
|
3251
3245
|
poster: e.posterImage,
|
|
3252
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3246
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3253
3247
|
}
|
|
3254
3248
|
),
|
|
3255
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3249
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
3256
3250
|
"div",
|
|
3257
3251
|
{
|
|
3258
3252
|
style: {
|
|
@@ -3263,7 +3257,7 @@ function Nn(e) {
|
|
|
3263
3257
|
}
|
|
3264
3258
|
}
|
|
3265
3259
|
) : null,
|
|
3266
|
-
(
|
|
3260
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3267
3261
|
"div",
|
|
3268
3262
|
{
|
|
3269
3263
|
style: {
|
|
@@ -3274,7 +3268,7 @@ function Nn(e) {
|
|
|
3274
3268
|
children: e.children
|
|
3275
3269
|
}
|
|
3276
3270
|
) : null,
|
|
3277
|
-
(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(
|
|
3278
3272
|
"div",
|
|
3279
3273
|
{
|
|
3280
3274
|
style: {
|
|
@@ -3295,64 +3289,64 @@ function Nn(e) {
|
|
|
3295
3289
|
}
|
|
3296
3290
|
);
|
|
3297
3291
|
}
|
|
3298
|
-
const
|
|
3299
|
-
component:
|
|
3300
|
-
...
|
|
3292
|
+
const Fn = () => [{
|
|
3293
|
+
component: hn,
|
|
3294
|
+
...fn
|
|
3301
3295
|
}, {
|
|
3302
|
-
component:
|
|
3303
|
-
...
|
|
3296
|
+
component: yn,
|
|
3297
|
+
...gn
|
|
3304
3298
|
}, {
|
|
3305
|
-
component:
|
|
3306
|
-
...
|
|
3299
|
+
component: kn,
|
|
3300
|
+
...xn
|
|
3307
3301
|
}, {
|
|
3308
|
-
component:
|
|
3309
|
-
...
|
|
3302
|
+
component: Tn,
|
|
3303
|
+
...Cn
|
|
3310
3304
|
}, {
|
|
3311
|
-
component:
|
|
3312
|
-
...
|
|
3305
|
+
component: Rn,
|
|
3306
|
+
...En
|
|
3313
3307
|
}, {
|
|
3314
3308
|
component: wn,
|
|
3315
|
-
...
|
|
3309
|
+
...In
|
|
3316
3310
|
}, {
|
|
3317
|
-
component:
|
|
3318
|
-
...
|
|
3311
|
+
component: Bn,
|
|
3312
|
+
...Pn
|
|
3319
3313
|
}, {
|
|
3320
|
-
component:
|
|
3321
|
-
...
|
|
3314
|
+
component: An,
|
|
3315
|
+
...Vn
|
|
3322
3316
|
}, {
|
|
3323
|
-
component:
|
|
3324
|
-
...
|
|
3317
|
+
component: Wn,
|
|
3318
|
+
...Nn
|
|
3325
3319
|
}], ve = () => [{
|
|
3326
3320
|
component: et,
|
|
3327
|
-
...Xt
|
|
3328
|
-
}, {
|
|
3329
|
-
component: jt,
|
|
3330
3321
|
...Zt
|
|
3331
3322
|
}, {
|
|
3332
3323
|
component: qt,
|
|
3333
3324
|
...en
|
|
3334
3325
|
}, {
|
|
3335
|
-
component:
|
|
3336
|
-
...
|
|
3326
|
+
component: zt,
|
|
3327
|
+
...tn
|
|
3337
3328
|
}, {
|
|
3338
3329
|
component: Gt,
|
|
3339
3330
|
...on
|
|
3340
3331
|
}, {
|
|
3341
|
-
component:
|
|
3332
|
+
component: Yt,
|
|
3342
3333
|
...an
|
|
3343
3334
|
}, {
|
|
3344
|
-
component:
|
|
3345
|
-
...
|
|
3346
|
-
}, {
|
|
3347
|
-
component: un,
|
|
3348
|
-
...dn
|
|
3335
|
+
component: ln,
|
|
3336
|
+
...rn
|
|
3349
3337
|
}, {
|
|
3350
|
-
component:
|
|
3338
|
+
component: ai,
|
|
3351
3339
|
...sn
|
|
3352
3340
|
}, {
|
|
3353
|
-
component:
|
|
3354
|
-
...
|
|
3355
|
-
},
|
|
3341
|
+
component: mn,
|
|
3342
|
+
...un
|
|
3343
|
+
}, {
|
|
3344
|
+
component: dn,
|
|
3345
|
+
...cn
|
|
3346
|
+
}, {
|
|
3347
|
+
component: Xt,
|
|
3348
|
+
...Qt
|
|
3349
|
+
}, ...Fn()], $n = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3356
3350
|
function getAndSetVariantId() {
|
|
3357
3351
|
function setCookie(name, value, days) {
|
|
3358
3352
|
let expires = '';
|
|
@@ -3408,7 +3402,7 @@ const Wn = () => [{
|
|
|
3408
3402
|
}).join('');
|
|
3409
3403
|
styleEl.innerHTML = newStyleStr;
|
|
3410
3404
|
}
|
|
3411
|
-
}`,
|
|
3405
|
+
}`, Ln = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3412
3406
|
if (!navigator.cookieEnabled) {
|
|
3413
3407
|
return;
|
|
3414
3408
|
}
|
|
@@ -3446,13 +3440,13 @@ const Wn = () => [{
|
|
|
3446
3440
|
...t,
|
|
3447
3441
|
testVariationId: t.id,
|
|
3448
3442
|
id: e == null ? void 0 : e.id
|
|
3449
|
-
})),
|
|
3443
|
+
})), On = ({
|
|
3450
3444
|
canTrack: e,
|
|
3451
3445
|
content: t
|
|
3452
|
-
}) => !(!(q(t).length > 0) || !e ||
|
|
3453
|
-
window.${Me} = ${
|
|
3454
|
-
window.${je} = ${
|
|
3455
|
-
`,
|
|
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) => `
|
|
3456
3450
|
window.${Me}(
|
|
3457
3451
|
"${t}",${JSON.stringify(e)}, ${qe}
|
|
3458
3452
|
)`, Hn = ({
|
|
@@ -3462,7 +3456,7 @@ const Wn = () => [{
|
|
|
3462
3456
|
"${t}", "${e}", ${qe}
|
|
3463
3457
|
)`;
|
|
3464
3458
|
function oe(e) {
|
|
3465
|
-
return /* @__PURE__ */
|
|
3459
|
+
return /* @__PURE__ */ l(
|
|
3466
3460
|
"script",
|
|
3467
3461
|
{
|
|
3468
3462
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3474,7 +3468,7 @@ function oe(e) {
|
|
|
3474
3468
|
function Se(e) {
|
|
3475
3469
|
return Math.round(e * 1e3) / 1e3;
|
|
3476
3470
|
}
|
|
3477
|
-
const
|
|
3471
|
+
const Mn = (e, t, n = !0) => {
|
|
3478
3472
|
if (!(e instanceof HTMLElement))
|
|
3479
3473
|
return null;
|
|
3480
3474
|
let i = n ? e : e.parentElement;
|
|
@@ -3485,20 +3479,20 @@ const _n = (e, t, n = !0) => {
|
|
|
3485
3479
|
return i;
|
|
3486
3480
|
} while (i = i.parentElement);
|
|
3487
3481
|
return null;
|
|
3488
|
-
},
|
|
3482
|
+
}, jn = (e) => Mn(e, (t) => {
|
|
3489
3483
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3490
3484
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3491
3485
|
}), ke = ({
|
|
3492
3486
|
event: e,
|
|
3493
3487
|
target: t
|
|
3494
3488
|
}) => {
|
|
3495
|
-
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);
|
|
3496
3490
|
return {
|
|
3497
|
-
x:
|
|
3498
|
-
y:
|
|
3491
|
+
x: a,
|
|
3492
|
+
y: r
|
|
3499
3493
|
};
|
|
3500
|
-
},
|
|
3501
|
-
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);
|
|
3502
3496
|
return {
|
|
3503
3497
|
targetBuilderElement: i || void 0,
|
|
3504
3498
|
metadata: {
|
|
@@ -3513,9 +3507,9 @@ const _n = (e, t, n = !0) => {
|
|
|
3513
3507
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3514
3508
|
}
|
|
3515
3509
|
};
|
|
3516
|
-
},
|
|
3517
|
-
var
|
|
3518
|
-
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;
|
|
3519
3513
|
let o = "";
|
|
3520
3514
|
if (i && t && n && (o += `
|
|
3521
3515
|
@font-face {
|
|
@@ -3525,29 +3519,29 @@ font-display: fallback;
|
|
|
3525
3519
|
font-weight: 400;
|
|
3526
3520
|
}
|
|
3527
3521
|
`.trim()), e.files)
|
|
3528
|
-
for (const
|
|
3529
|
-
if (!(String(Number(
|
|
3522
|
+
for (const s in e.files) {
|
|
3523
|
+
if (!(String(Number(s)) === s))
|
|
3530
3524
|
continue;
|
|
3531
|
-
const c = e.files[
|
|
3525
|
+
const c = e.files[s];
|
|
3532
3526
|
c && c !== i && (o += `
|
|
3533
3527
|
@font-face {
|
|
3534
3528
|
font-family: "${t}";
|
|
3535
3529
|
src: url('${c}') format('woff2');
|
|
3536
3530
|
font-display: fallback;
|
|
3537
|
-
font-weight: ${
|
|
3531
|
+
font-weight: ${s};
|
|
3538
3532
|
}
|
|
3539
3533
|
`.trim());
|
|
3540
3534
|
}
|
|
3541
3535
|
return o;
|
|
3542
|
-
},
|
|
3536
|
+
}, Jn = ({
|
|
3543
3537
|
customFonts: e
|
|
3544
3538
|
}) => {
|
|
3545
3539
|
var t;
|
|
3546
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3547
|
-
},
|
|
3540
|
+
return ((t = e == null ? void 0 : e.map((n) => Kn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3541
|
+
}, Gn = ({
|
|
3548
3542
|
cssCode: e,
|
|
3549
3543
|
contentId: t
|
|
3550
|
-
}) => 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 = `
|
|
3551
3545
|
.builder-button {
|
|
3552
3546
|
all: unset;
|
|
3553
3547
|
}
|
|
@@ -3564,38 +3558,38 @@ font-weight: ${l};
|
|
|
3564
3558
|
text-align: inherit;
|
|
3565
3559
|
font-family: inherit;
|
|
3566
3560
|
}
|
|
3567
|
-
`,
|
|
3568
|
-
function
|
|
3569
|
-
var p, C,
|
|
3570
|
-
const t =
|
|
3571
|
-
function n(
|
|
3572
|
-
var
|
|
3561
|
+
`, Qn = (e) => e ? "" : Yn, Xn = (e) => `variant-${e}`;
|
|
3562
|
+
function Zn(e) {
|
|
3563
|
+
var p, C, V;
|
|
3564
|
+
const t = O(null);
|
|
3565
|
+
function n(k) {
|
|
3566
|
+
var R, B;
|
|
3573
3567
|
const I = {
|
|
3574
3568
|
...e.builderContextSignal.rootState,
|
|
3575
|
-
...
|
|
3569
|
+
...k
|
|
3576
3570
|
};
|
|
3577
|
-
e.builderContextSignal.rootSetState ? (
|
|
3571
|
+
e.builderContextSignal.rootSetState ? (B = (R = e.builderContextSignal).rootSetState) == null || B.call(R, I) : e.setBuilderContextSignal((u) => ({
|
|
3578
3572
|
...u,
|
|
3579
3573
|
rootState: I
|
|
3580
3574
|
}));
|
|
3581
3575
|
}
|
|
3582
|
-
function i(
|
|
3583
|
-
var
|
|
3576
|
+
function i(k) {
|
|
3577
|
+
var R, B, u, S, P;
|
|
3584
3578
|
const I = {
|
|
3585
3579
|
...e.builderContextSignal.content,
|
|
3586
|
-
...
|
|
3580
|
+
...k,
|
|
3587
3581
|
data: {
|
|
3588
|
-
...(
|
|
3589
|
-
...
|
|
3582
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.data,
|
|
3583
|
+
...k == null ? void 0 : k.data
|
|
3590
3584
|
},
|
|
3591
3585
|
meta: {
|
|
3592
|
-
...(
|
|
3593
|
-
...
|
|
3594
|
-
breakpoints: ((u =
|
|
3586
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.meta,
|
|
3587
|
+
...k == null ? void 0 : k.meta,
|
|
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)
|
|
3595
3589
|
}
|
|
3596
3590
|
};
|
|
3597
|
-
e.setBuilderContextSignal((
|
|
3598
|
-
...
|
|
3591
|
+
e.setBuilderContextSignal((w) => ({
|
|
3592
|
+
...w,
|
|
3599
3593
|
content: I
|
|
3600
3594
|
}));
|
|
3601
3595
|
}
|
|
@@ -3605,20 +3599,20 @@ function Xn(e) {
|
|
|
3605
3599
|
"aria-hidden": !0
|
|
3606
3600
|
};
|
|
3607
3601
|
}
|
|
3608
|
-
const [
|
|
3602
|
+
const [a, r] = E(
|
|
3609
3603
|
() => e.contentWrapper || "div"
|
|
3610
3604
|
);
|
|
3611
|
-
function
|
|
3605
|
+
function s(k) {
|
|
3612
3606
|
return Ye({
|
|
3613
3607
|
model: e.model,
|
|
3614
3608
|
trustedHosts: e.trustedHosts,
|
|
3615
3609
|
callbacks: {
|
|
3616
3610
|
configureSdk: (I) => {
|
|
3617
3611
|
var u;
|
|
3618
|
-
const { breakpoints:
|
|
3619
|
-
!
|
|
3612
|
+
const { breakpoints: R, contentId: B } = I;
|
|
3613
|
+
!B || B !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || R && i({
|
|
3620
3614
|
meta: {
|
|
3621
|
-
breakpoints:
|
|
3615
|
+
breakpoints: R
|
|
3622
3616
|
}
|
|
3623
3617
|
});
|
|
3624
3618
|
},
|
|
@@ -3629,38 +3623,38 @@ function Xn(e) {
|
|
|
3629
3623
|
i(I);
|
|
3630
3624
|
}
|
|
3631
3625
|
}
|
|
3632
|
-
})(
|
|
3626
|
+
})(k);
|
|
3633
3627
|
}
|
|
3634
|
-
const [d, c] =
|
|
3635
|
-
function f(
|
|
3636
|
-
var I,
|
|
3628
|
+
const [d, c] = E(() => ({})), [h, g] = E(() => ({})), [m, y] = E(() => !1);
|
|
3629
|
+
function f(k) {
|
|
3630
|
+
var I, R;
|
|
3637
3631
|
if (e.builderContextSignal.content) {
|
|
3638
|
-
const
|
|
3632
|
+
const B = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, u = (R = e.builderContextSignal.content) == null ? void 0 : R.id;
|
|
3639
3633
|
ue({
|
|
3640
3634
|
apiHost: e.apiHost,
|
|
3641
3635
|
type: "click",
|
|
3642
3636
|
canTrack: K(e.canTrack),
|
|
3643
3637
|
contentId: u,
|
|
3644
3638
|
apiKey: e.apiKey,
|
|
3645
|
-
variationId:
|
|
3646
|
-
...
|
|
3639
|
+
variationId: B !== u ? B : void 0,
|
|
3640
|
+
...qn(k),
|
|
3647
3641
|
unique: !m
|
|
3648
3642
|
});
|
|
3649
3643
|
}
|
|
3650
3644
|
m || y(!0);
|
|
3651
3645
|
}
|
|
3652
3646
|
function v() {
|
|
3653
|
-
var I,
|
|
3654
|
-
const
|
|
3655
|
-
Object.entries(
|
|
3656
|
-
if (!
|
|
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())
|
|
3657
3651
|
return;
|
|
3658
3652
|
h[u] = !0;
|
|
3659
|
-
const
|
|
3653
|
+
const P = S.replace(
|
|
3660
3654
|
/{{([^}]+)}}/g,
|
|
3661
|
-
(
|
|
3662
|
-
|
|
3663
|
-
code:
|
|
3655
|
+
(w, L) => String(
|
|
3656
|
+
U({
|
|
3657
|
+
code: L,
|
|
3664
3658
|
context: e.context || {},
|
|
3665
3659
|
localState: void 0,
|
|
3666
3660
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3668,12 +3662,12 @@ function Xn(e) {
|
|
|
3668
3662
|
})
|
|
3669
3663
|
)
|
|
3670
3664
|
);
|
|
3671
|
-
|
|
3665
|
+
Ie(P), fetch(P).then((w) => w.json()).then((w) => {
|
|
3672
3666
|
n({
|
|
3673
|
-
[u]:
|
|
3667
|
+
[u]: w
|
|
3674
3668
|
}), d[u] = !0;
|
|
3675
|
-
}).catch((
|
|
3676
|
-
console.error("error fetching dynamic data",
|
|
3669
|
+
}).catch((w) => {
|
|
3670
|
+
console.error("error fetching dynamic data", S, w);
|
|
3677
3671
|
}).finally(() => {
|
|
3678
3672
|
h[u] = !1;
|
|
3679
3673
|
});
|
|
@@ -3694,11 +3688,11 @@ function Xn(e) {
|
|
|
3694
3688
|
)
|
|
3695
3689
|
);
|
|
3696
3690
|
}
|
|
3697
|
-
const b =
|
|
3691
|
+
const b = O(!1);
|
|
3698
3692
|
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3699
|
-
var
|
|
3700
|
-
if (
|
|
3701
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
3693
|
+
var k, I, R;
|
|
3694
|
+
if (D()) {
|
|
3695
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", s), Ke(), Je({
|
|
3702
3696
|
...e.locale ? {
|
|
3703
3697
|
locale: e.locale
|
|
3704
3698
|
} : {},
|
|
@@ -3710,36 +3704,41 @@ function Xn(e) {
|
|
|
3710
3704
|
} : {}
|
|
3711
3705
|
}), Object.values(
|
|
3712
3706
|
e.builderContextSignal.componentInfos
|
|
3713
|
-
).forEach((
|
|
3714
|
-
var
|
|
3715
|
-
if (!e.model || !((
|
|
3716
|
-
const
|
|
3717
|
-
(
|
|
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, "*");
|
|
3718
3712
|
}
|
|
3719
3713
|
}), window.addEventListener(
|
|
3720
3714
|
"builder:component:stateChangeListenerActivated",
|
|
3721
3715
|
x
|
|
3722
3716
|
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3723
|
-
const
|
|
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;
|
|
3724
3718
|
ue({
|
|
3725
3719
|
apiHost: e.apiHost,
|
|
3726
3720
|
type: "impression",
|
|
3727
3721
|
canTrack: !0,
|
|
3728
|
-
contentId:
|
|
3729
|
-
apiKey:
|
|
3730
|
-
variationId:
|
|
3722
|
+
contentId: S,
|
|
3723
|
+
apiKey: P,
|
|
3724
|
+
variationId: u !== S ? u : void 0
|
|
3731
3725
|
});
|
|
3732
3726
|
}
|
|
3733
3727
|
if (ae() && !W()) {
|
|
3734
|
-
const
|
|
3735
|
-
`builder.overrides.${
|
|
3736
|
-
),
|
|
3737
|
-
|
|
3738
|
-
model: e.model,
|
|
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 || "",
|
|
3739
3733
|
apiKey: e.apiKey,
|
|
3740
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
3741
|
-
|
|
3742
|
-
|
|
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);
|
|
3743
3742
|
});
|
|
3744
3743
|
}
|
|
3745
3744
|
}
|
|
@@ -3754,19 +3753,19 @@ function Xn(e) {
|
|
|
3754
3753
|
locale: e.locale
|
|
3755
3754
|
});
|
|
3756
3755
|
}, [e.locale]), A(() => () => {
|
|
3757
|
-
|
|
3756
|
+
D() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3758
3757
|
"builder:component:stateChangeListenerActivated",
|
|
3759
3758
|
x
|
|
3760
3759
|
));
|
|
3761
|
-
}, []), /* @__PURE__ */
|
|
3762
|
-
|
|
3760
|
+
}, []), /* @__PURE__ */ l(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ l(
|
|
3761
|
+
a,
|
|
3763
3762
|
{
|
|
3764
3763
|
ref: t,
|
|
3765
|
-
onClick: (
|
|
3764
|
+
onClick: (k) => f(k),
|
|
3766
3765
|
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3767
3766
|
"builder-model": e.model,
|
|
3768
|
-
className:
|
|
3769
|
-
((C = e.content) == null ? void 0 : C.testVariationId) || ((
|
|
3767
|
+
className: Xn(
|
|
3768
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
3770
3769
|
),
|
|
3771
3770
|
style: {
|
|
3772
3771
|
display: !e.builderContextSignal.content && Ce() ? "none" : void 0
|
|
@@ -3777,20 +3776,20 @@ function Xn(e) {
|
|
|
3777
3776
|
}
|
|
3778
3777
|
) : null });
|
|
3779
3778
|
}
|
|
3780
|
-
function
|
|
3781
|
-
const [t, n] =
|
|
3779
|
+
function ei(e) {
|
|
3780
|
+
const [t, n] = E(
|
|
3782
3781
|
() => `
|
|
3783
|
-
${
|
|
3782
|
+
${Gn({
|
|
3784
3783
|
cssCode: e.cssCode,
|
|
3785
3784
|
contentId: e.contentId
|
|
3786
3785
|
})}
|
|
3787
|
-
${
|
|
3786
|
+
${Jn({
|
|
3788
3787
|
customFonts: e.customFonts
|
|
3789
3788
|
})}
|
|
3790
|
-
${
|
|
3789
|
+
${Qn(e.isNestedRender)}
|
|
3791
3790
|
`.trim()
|
|
3792
3791
|
);
|
|
3793
|
-
return /* @__PURE__ */
|
|
3792
|
+
return /* @__PURE__ */ l(
|
|
3794
3793
|
Q,
|
|
3795
3794
|
{
|
|
3796
3795
|
id: "builderio-content",
|
|
@@ -3799,14 +3798,14 @@ ${Yn(e.isNestedRender)}
|
|
|
3799
3798
|
}
|
|
3800
3799
|
);
|
|
3801
3800
|
}
|
|
3802
|
-
const
|
|
3801
|
+
const ti = ({
|
|
3803
3802
|
content: e,
|
|
3804
3803
|
data: t,
|
|
3805
3804
|
locale: n
|
|
3806
3805
|
}) => {
|
|
3807
|
-
var
|
|
3808
|
-
const i = {}, o = ((
|
|
3809
|
-
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) => {
|
|
3810
3809
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3811
3810
|
}), {
|
|
3812
3811
|
...i,
|
|
@@ -3816,7 +3815,7 @@ const ei = ({
|
|
|
3816
3815
|
locale: n
|
|
3817
3816
|
} : {}
|
|
3818
3817
|
};
|
|
3819
|
-
},
|
|
3818
|
+
}, ni = ({
|
|
3820
3819
|
content: e,
|
|
3821
3820
|
data: t
|
|
3822
3821
|
}) => e ? {
|
|
@@ -3829,7 +3828,7 @@ const ei = ({
|
|
|
3829
3828
|
} : void 0;
|
|
3830
3829
|
function Te(e) {
|
|
3831
3830
|
var c, h, g, m, y, f, v, x, b;
|
|
3832
|
-
const [t, n] =
|
|
3831
|
+
const [t, n] = E(
|
|
3833
3832
|
() => {
|
|
3834
3833
|
var p, C;
|
|
3835
3834
|
return Hn({
|
|
@@ -3841,32 +3840,32 @@ function Te(e) {
|
|
|
3841
3840
|
}
|
|
3842
3841
|
);
|
|
3843
3842
|
function i(p) {
|
|
3844
|
-
|
|
3843
|
+
s((C) => ({
|
|
3845
3844
|
...C,
|
|
3846
3845
|
rootState: p
|
|
3847
3846
|
}));
|
|
3848
3847
|
}
|
|
3849
|
-
const [o,
|
|
3848
|
+
const [o, a] = E(
|
|
3850
3849
|
() => [
|
|
3851
3850
|
...ve(),
|
|
3852
3851
|
...e.customComponents || []
|
|
3853
3852
|
].reduce(
|
|
3854
|
-
(p, { component: C, ...
|
|
3853
|
+
(p, { component: C, ...V }) => ({
|
|
3855
3854
|
...p,
|
|
3856
|
-
[
|
|
3855
|
+
[V.name]: {
|
|
3857
3856
|
component: C,
|
|
3858
|
-
...me(
|
|
3857
|
+
...me(V)
|
|
3859
3858
|
}
|
|
3860
3859
|
}),
|
|
3861
3860
|
{}
|
|
3862
3861
|
)
|
|
3863
|
-
), [
|
|
3864
|
-
content:
|
|
3862
|
+
), [r, s] = E(() => ({
|
|
3863
|
+
content: ni({
|
|
3865
3864
|
content: e.content,
|
|
3866
3865
|
data: e.data
|
|
3867
3866
|
}),
|
|
3868
3867
|
localState: void 0,
|
|
3869
|
-
rootState:
|
|
3868
|
+
rootState: ti({
|
|
3870
3869
|
content: e.content,
|
|
3871
3870
|
data: e.data,
|
|
3872
3871
|
locale: e.locale
|
|
@@ -3880,9 +3879,9 @@ function Te(e) {
|
|
|
3880
3879
|
...ve(),
|
|
3881
3880
|
...e.customComponents || []
|
|
3882
3881
|
].reduce(
|
|
3883
|
-
(p, { component: C, ...
|
|
3882
|
+
(p, { component: C, ...V }) => ({
|
|
3884
3883
|
...p,
|
|
3885
|
-
[
|
|
3884
|
+
[V.name]: me(V)
|
|
3886
3885
|
}),
|
|
3887
3886
|
{}
|
|
3888
3887
|
),
|
|
@@ -3891,31 +3890,31 @@ function Te(e) {
|
|
|
3891
3890
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3892
3891
|
nonce: e.nonce || "",
|
|
3893
3892
|
model: e.model || ""
|
|
3894
|
-
})), d =
|
|
3893
|
+
})), d = O(!1);
|
|
3895
3894
|
if (!d.current) {
|
|
3896
3895
|
e.apiKey || G.error(
|
|
3897
3896
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3898
3897
|
);
|
|
3899
|
-
const p = (h = (c =
|
|
3900
|
-
p &&
|
|
3898
|
+
const p = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3899
|
+
p && U({
|
|
3901
3900
|
code: p,
|
|
3902
3901
|
context: e.context || {},
|
|
3903
3902
|
localState: void 0,
|
|
3904
|
-
rootState:
|
|
3903
|
+
rootState: r.rootState,
|
|
3905
3904
|
rootSetState: (C) => {
|
|
3906
|
-
Object.assign(
|
|
3905
|
+
Object.assign(r.rootState, C);
|
|
3907
3906
|
},
|
|
3908
3907
|
isExpression: !1
|
|
3909
3908
|
}), d.current = !0;
|
|
3910
3909
|
}
|
|
3911
|
-
return /* @__PURE__ */
|
|
3910
|
+
return /* @__PURE__ */ l(
|
|
3912
3911
|
Pe.Provider,
|
|
3913
3912
|
{
|
|
3914
3913
|
value: {
|
|
3915
3914
|
registeredComponents: o
|
|
3916
3915
|
},
|
|
3917
3916
|
children: /* @__PURE__ */ N(
|
|
3918
|
-
|
|
3917
|
+
Zn,
|
|
3919
3918
|
{
|
|
3920
3919
|
apiHost: e.apiHost,
|
|
3921
3920
|
nonce: e.nonce,
|
|
@@ -3928,14 +3927,14 @@ function Te(e) {
|
|
|
3928
3927
|
locale: e.locale,
|
|
3929
3928
|
enrich: e.enrich,
|
|
3930
3929
|
showContent: e.showContent,
|
|
3931
|
-
builderContextSignal:
|
|
3930
|
+
builderContextSignal: r,
|
|
3932
3931
|
contentWrapper: e.contentWrapper,
|
|
3933
3932
|
contentWrapperProps: e.contentWrapperProps,
|
|
3934
3933
|
trustedHosts: e.trustedHosts,
|
|
3935
3934
|
isNestedRender: e.isNestedRender,
|
|
3936
|
-
setBuilderContextSignal:
|
|
3935
|
+
setBuilderContextSignal: s,
|
|
3937
3936
|
children: [
|
|
3938
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3937
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3939
3938
|
oe,
|
|
3940
3939
|
{
|
|
3941
3940
|
id: "builderio-variant-visibility",
|
|
@@ -3943,21 +3942,21 @@ function Te(e) {
|
|
|
3943
3942
|
nonce: e.nonce || ""
|
|
3944
3943
|
}
|
|
3945
3944
|
) : null,
|
|
3946
|
-
/* @__PURE__ */
|
|
3947
|
-
|
|
3945
|
+
/* @__PURE__ */ l(
|
|
3946
|
+
ei,
|
|
3948
3947
|
{
|
|
3949
3948
|
nonce: e.nonce || "",
|
|
3950
3949
|
isNestedRender: e.isNestedRender,
|
|
3951
|
-
contentId: (g =
|
|
3952
|
-
cssCode: (y = (m =
|
|
3953
|
-
customFonts: (v = (f =
|
|
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
|
|
3954
3953
|
}
|
|
3955
3954
|
),
|
|
3956
|
-
/* @__PURE__ */
|
|
3955
|
+
/* @__PURE__ */ l(
|
|
3957
3956
|
F,
|
|
3958
3957
|
{
|
|
3959
|
-
blocks: (b = (x =
|
|
3960
|
-
context:
|
|
3958
|
+
blocks: (b = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
3959
|
+
context: r,
|
|
3961
3960
|
registeredComponents: o,
|
|
3962
3961
|
linkComponent: e.linkComponent
|
|
3963
3962
|
}
|
|
@@ -3968,49 +3967,49 @@ function Te(e) {
|
|
|
3968
3967
|
}
|
|
3969
3968
|
);
|
|
3970
3969
|
}
|
|
3971
|
-
function
|
|
3972
|
-
var
|
|
3973
|
-
const [t, n] =
|
|
3974
|
-
() =>
|
|
3970
|
+
function ii(e) {
|
|
3971
|
+
var r;
|
|
3972
|
+
const [t, n] = E(
|
|
3973
|
+
() => On({
|
|
3975
3974
|
canTrack: K(e.canTrack),
|
|
3976
3975
|
content: e.content
|
|
3977
3976
|
})
|
|
3978
3977
|
);
|
|
3979
3978
|
function i() {
|
|
3980
|
-
var
|
|
3981
|
-
return
|
|
3979
|
+
var s;
|
|
3980
|
+
return _n(
|
|
3982
3981
|
q(e.content).map((d) => ({
|
|
3983
3982
|
id: d.testVariationId,
|
|
3984
3983
|
testRatio: d.testRatio
|
|
3985
3984
|
})),
|
|
3986
|
-
((
|
|
3985
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3987
3986
|
);
|
|
3988
3987
|
}
|
|
3989
3988
|
function o() {
|
|
3990
|
-
return q(e.content).map((
|
|
3989
|
+
return q(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3991
3990
|
}
|
|
3992
|
-
function
|
|
3993
|
-
var
|
|
3991
|
+
function a() {
|
|
3992
|
+
var s;
|
|
3994
3993
|
return t ? {
|
|
3995
3994
|
...e.content,
|
|
3996
|
-
testVariationId: (
|
|
3995
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3997
3996
|
} : Qe({
|
|
3998
3997
|
item: e.content,
|
|
3999
3998
|
canTrack: K(e.canTrack)
|
|
4000
3999
|
});
|
|
4001
4000
|
}
|
|
4002
4001
|
return A(() => {
|
|
4003
|
-
}, []), /* @__PURE__ */ N(
|
|
4004
|
-
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */
|
|
4002
|
+
}, []), /* @__PURE__ */ N(T, { children: [
|
|
4003
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
|
|
4005
4004
|
oe,
|
|
4006
4005
|
{
|
|
4007
4006
|
id: "builderio-init-variants-fns",
|
|
4008
|
-
scriptStr:
|
|
4007
|
+
scriptStr: Un(),
|
|
4009
4008
|
nonce: e.nonce || ""
|
|
4010
4009
|
}
|
|
4011
4010
|
) : null,
|
|
4012
|
-
t ? /* @__PURE__ */ N(
|
|
4013
|
-
/* @__PURE__ */
|
|
4011
|
+
t ? /* @__PURE__ */ N(T, { children: [
|
|
4012
|
+
/* @__PURE__ */ l(
|
|
4014
4013
|
Q,
|
|
4015
4014
|
{
|
|
4016
4015
|
id: "builderio-variants",
|
|
@@ -4018,7 +4017,7 @@ function ni(e) {
|
|
|
4018
4017
|
nonce: e.nonce || ""
|
|
4019
4018
|
}
|
|
4020
4019
|
),
|
|
4021
|
-
/* @__PURE__ */
|
|
4020
|
+
/* @__PURE__ */ l(
|
|
4022
4021
|
oe,
|
|
4023
4022
|
{
|
|
4024
4023
|
id: "builderio-variants-visibility",
|
|
@@ -4026,13 +4025,13 @@ function ni(e) {
|
|
|
4026
4025
|
nonce: e.nonce || ""
|
|
4027
4026
|
}
|
|
4028
4027
|
),
|
|
4029
|
-
(
|
|
4028
|
+
(r = q(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
4030
4029
|
Te,
|
|
4031
4030
|
{
|
|
4032
4031
|
apiHost: e.apiHost,
|
|
4033
4032
|
isNestedRender: e.isNestedRender,
|
|
4034
4033
|
nonce: e.nonce,
|
|
4035
|
-
content:
|
|
4034
|
+
content: s,
|
|
4036
4035
|
showContent: !1,
|
|
4037
4036
|
model: e.model,
|
|
4038
4037
|
data: e.data,
|
|
@@ -4051,16 +4050,16 @@ function ni(e) {
|
|
|
4051
4050
|
contentWrapperProps: e.contentWrapperProps,
|
|
4052
4051
|
trustedHosts: e.trustedHosts
|
|
4053
4052
|
},
|
|
4054
|
-
|
|
4053
|
+
s.testVariationId
|
|
4055
4054
|
))
|
|
4056
4055
|
] }) : null,
|
|
4057
|
-
/* @__PURE__ */
|
|
4056
|
+
/* @__PURE__ */ l(
|
|
4058
4057
|
Te,
|
|
4059
4058
|
{
|
|
4060
4059
|
apiHost: e.apiHost,
|
|
4061
4060
|
nonce: e.nonce,
|
|
4062
4061
|
isNestedRender: e.isNestedRender,
|
|
4063
|
-
content:
|
|
4062
|
+
content: a(),
|
|
4064
4063
|
showContent: !0,
|
|
4065
4064
|
model: e.model,
|
|
4066
4065
|
data: e.data,
|
|
@@ -4082,13 +4081,13 @@ function ni(e) {
|
|
|
4082
4081
|
)
|
|
4083
4082
|
] });
|
|
4084
4083
|
}
|
|
4085
|
-
const
|
|
4084
|
+
const oi = async ({
|
|
4086
4085
|
builderContextValue: e,
|
|
4087
4086
|
symbol: t
|
|
4088
4087
|
}) => {
|
|
4089
4088
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4090
4089
|
(e != null && e.apiKey))
|
|
4091
|
-
return
|
|
4090
|
+
return we({
|
|
4092
4091
|
model: t.model,
|
|
4093
4092
|
apiKey: e.apiKey,
|
|
4094
4093
|
apiVersion: e.apiVersion,
|
|
@@ -4101,8 +4100,8 @@ const ii = async ({
|
|
|
4101
4100
|
G.error("Could not fetch symbol content: ", n);
|
|
4102
4101
|
});
|
|
4103
4102
|
};
|
|
4104
|
-
function
|
|
4105
|
-
var
|
|
4103
|
+
function ai(e) {
|
|
4104
|
+
var s, d, c, h;
|
|
4106
4105
|
function t() {
|
|
4107
4106
|
return "div";
|
|
4108
4107
|
}
|
|
@@ -4118,23 +4117,23 @@ function oi(e) {
|
|
|
4118
4117
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4119
4118
|
].filter(Boolean).join(" ");
|
|
4120
4119
|
}
|
|
4121
|
-
const [o,
|
|
4120
|
+
const [o, a] = E(() => {
|
|
4122
4121
|
var g;
|
|
4123
4122
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4124
4123
|
});
|
|
4125
|
-
function
|
|
4126
|
-
o ||
|
|
4124
|
+
function r() {
|
|
4125
|
+
o || oi({
|
|
4127
4126
|
symbol: e.symbol,
|
|
4128
4127
|
builderContextValue: e.builderContext
|
|
4129
4128
|
}).then((g) => {
|
|
4130
|
-
g &&
|
|
4129
|
+
g && a(g);
|
|
4131
4130
|
});
|
|
4132
4131
|
}
|
|
4133
4132
|
return A(() => {
|
|
4134
4133
|
}, []), A(() => {
|
|
4135
|
-
|
|
4136
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4137
|
-
|
|
4134
|
+
r();
|
|
4135
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4136
|
+
ii,
|
|
4138
4137
|
{
|
|
4139
4138
|
nonce: e.builderContext.nonce,
|
|
4140
4139
|
isNestedRender: !0,
|
|
@@ -4142,7 +4141,7 @@ function oi(e) {
|
|
|
4142
4141
|
apiKey: e.builderContext.apiKey,
|
|
4143
4142
|
context: {
|
|
4144
4143
|
...e.builderContext.context,
|
|
4145
|
-
symbolId: (
|
|
4144
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4146
4145
|
},
|
|
4147
4146
|
customComponents: Object.values(e.builderComponents),
|
|
4148
4147
|
data: {
|
|
@@ -4163,12 +4162,12 @@ export {
|
|
|
4163
4162
|
F as Blocks,
|
|
4164
4163
|
le as BuilderContext,
|
|
4165
4164
|
et as Button,
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
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
|
|
4174
4173
|
};
|