@builder.io/sdk-react 2.0.28 → 2.0.30
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 +18 -18
- package/lib/browser/blocks-exports.mjs +819 -814
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-ffd47885.js → server-entry-d133a206.js} +104 -95
- package/lib/browser/server-entry-d4ea1a12.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-616460c1.js → accordion-359367e6.js} +5 -3
- package/lib/edge/{accordion-7ef6a928.cjs → accordion-93512a19.cjs} +1 -1
- package/lib/edge/{blocks-896a56b0.cjs → blocks-44a0617b.cjs} +3 -3
- package/lib/edge/{blocks-dd91ae28.js → blocks-d7ba8f6a.js} +63 -57
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-1fa8b647.cjs → button-0ae65c1d.cjs} +1 -1
- package/lib/edge/{button-f917a1c0.js → button-ae26a553.js} +2 -2
- package/lib/edge/{columns-dacb342b.js → columns-957c0468.js} +20 -20
- package/lib/edge/{columns-5756d7b8.cjs → columns-f7da8908.cjs} +3 -3
- package/lib/edge/{content-variants-afc4a718.cjs → content-variants-9bb0b7e9.cjs} +4 -4
- package/lib/edge/{content-variants-cd80b703.js → content-variants-d8a859a2.js} +118 -118
- package/lib/edge/{evaluate-2fcda9ec.cjs → evaluate-21c48a1d.cjs} +1 -1
- package/lib/edge/{evaluate-17c2cadd.js → evaluate-8e8c9fec.js} +1 -1
- package/lib/edge/form-0b09120c.cjs +1 -0
- package/lib/edge/{form-dc7f56c9.js → form-68fc4d5a.js} +30 -33
- package/lib/edge/{get-class-prop-name-5437ca23.js → get-class-prop-name-a6f0f92d.js} +1 -1
- package/lib/edge/{get-class-prop-name-2ce20e98.cjs → get-class-prop-name-ffeda28e.cjs} +1 -1
- package/lib/edge/{img-35a1343f.cjs → img-89e32a84.cjs} +1 -1
- package/lib/edge/{img-d187da14.js → img-912b190b.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-9a6498fd.cjs → input-5ff8ae2e.cjs} +1 -1
- package/lib/edge/{input-38f565ce.js → input-96ba83eb.js} +1 -1
- package/lib/edge/{select-135b7397.cjs → select-5f5fed1c.cjs} +1 -1
- package/lib/edge/{select-6cb0b4b7.js → select-f66026e1.js} +1 -1
- package/lib/edge/{server-entry-216eb1bf.js → server-entry-e26008c1.js} +110 -101
- package/lib/edge/server-entry-f09ee4f4.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-d692126c.js → slot-d09faa0a.js} +4 -4
- package/lib/edge/{slot-b0728030.cjs → slot-d3473421.cjs} +1 -1
- package/lib/edge/{symbol-df30241a.js → symbol-285d196c.js} +2 -2
- package/lib/edge/{symbol-0ac2655e.cjs → symbol-ebccca9b.cjs} +1 -1
- package/lib/edge/{tabs-b925777d.js → tabs-39d86f86.js} +15 -15
- package/lib/edge/tabs-61c59e0f.cjs +1 -0
- package/lib/edge/{text-0f85a76c.cjs → text-40a616f5.cjs} +1 -1
- package/lib/edge/{text-337389ba.js → text-dce27428.js} +2 -2
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +802 -797
- 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-8e901e75.cjs +2 -0
- package/lib/node/{server-entry-ca0dcb45.js → server-entry-c7147616.js} +104 -95
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-2100f4f5.js → setIvm-5ab140ad.js} +1 -1
- package/lib/node/{setIvm-2d47478e.cjs → setIvm-a85e255e.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-fd3ca2a8.cjs → should-force-browser-runtime-in-node-16ceec99.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-a77d7cfc.js → should-force-browser-runtime-in-node-1d3a044a.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/log-fetch.d.ts +1 -0
- package/lib/browser/server-entry-7260e494.cjs +0 -2
- package/lib/edge/form-efce5c78.cjs +0 -1
- package/lib/edge/server-entry-3e6518b6.cjs +0 -2
- package/lib/edge/tabs-47ed7dde.cjs +0 -1
- package/lib/node/server-entry-3e017173.cjs +0 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as
|
|
4
|
-
import { createContext as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as He, checkIsDefined as K, logger as J, isPreviewing as Se, logFetch as ke, registerInsertMenu as je, setupBrowserForEditing as Me, createRegisterComponentMessage as _e, getDefaultCanTrack as z, _track as se, fetchOneEntry as Ce, createEditorListener as qe, serializeIncludingFunctions as ce, handleABTestingSync as Ke } from "./server-entry-d133a206.js";
|
|
4
|
+
import { createContext as Te, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Ie } from "react";
|
|
5
|
+
const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Je = (e) => typeof e == "string" && ze.has(e.toLowerCase());
|
|
6
|
+
function oe(e) {
|
|
7
|
+
return /* @__PURE__ */ s(I, { children: Je(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
8
8
|
}
|
|
9
9
|
const H = () => {
|
|
10
10
|
switch (D) {
|
|
@@ -20,7 +20,7 @@ const H = () => {
|
|
|
20
20
|
return "class";
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function Ge(e) {
|
|
24
24
|
function t() {
|
|
25
25
|
return {
|
|
26
26
|
...e.attributes,
|
|
@@ -34,8 +34,8 @@ function Je(e) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
|
|
37
|
+
return /* @__PURE__ */ s(
|
|
38
|
+
oe,
|
|
39
39
|
{
|
|
40
40
|
attributes: t(),
|
|
41
41
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -44,7 +44,7 @@ function Je(e) {
|
|
|
44
44
|
}
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const ae = Te({
|
|
48
48
|
content: null,
|
|
49
49
|
context: {},
|
|
50
50
|
localState: void 0,
|
|
@@ -58,24 +58,24 @@ const oe = ke({
|
|
|
58
58
|
BlocksWrapper: "div",
|
|
59
59
|
BlocksWrapperProps: {},
|
|
60
60
|
nonce: ""
|
|
61
|
-
}),
|
|
62
|
-
function
|
|
61
|
+
}), we = Te({ registeredComponents: {} });
|
|
62
|
+
function Ye(e) {
|
|
63
63
|
var t;
|
|
64
64
|
return {
|
|
65
65
|
...(t = e.component) == null ? void 0 : t.options,
|
|
66
66
|
...e.options
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function Qe(e, ...t) {
|
|
70
70
|
const n = Object.assign({}, e);
|
|
71
71
|
for (const i of t)
|
|
72
72
|
delete n[i];
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
|
-
const
|
|
76
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
75
|
+
const Ee = (e, t, n) => {
|
|
76
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
77
77
|
return i === void 0 || i === e ? n : i;
|
|
78
|
-
},
|
|
78
|
+
}, Xe = ({
|
|
79
79
|
builder: e,
|
|
80
80
|
context: t,
|
|
81
81
|
event: n,
|
|
@@ -87,15 +87,15 @@ const Ie = (e, t, n) => {
|
|
|
87
87
|
builder: e,
|
|
88
88
|
context: t,
|
|
89
89
|
event: n
|
|
90
|
-
}),
|
|
90
|
+
}), Ze = () => ({
|
|
91
91
|
isEditing: W(),
|
|
92
92
|
isBrowser: L(),
|
|
93
93
|
isServer: !L(),
|
|
94
|
-
getUserAttributes: () =>
|
|
95
|
-
}),
|
|
94
|
+
getUserAttributes: () => He()
|
|
95
|
+
}), et = (e, {
|
|
96
96
|
isExpression: t = !0
|
|
97
97
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
98
|
-
function
|
|
98
|
+
function Re({
|
|
99
99
|
rootState: e,
|
|
100
100
|
localState: t,
|
|
101
101
|
rootSetState: n
|
|
@@ -104,60 +104,60 @@ function we({
|
|
|
104
104
|
get: (i, o) => {
|
|
105
105
|
if (t && o in t)
|
|
106
106
|
return t[o];
|
|
107
|
-
const
|
|
108
|
-
return typeof
|
|
109
|
-
rootState:
|
|
107
|
+
const r = i[o];
|
|
108
|
+
return typeof r == "object" && r !== null ? Re({
|
|
109
|
+
rootState: r,
|
|
110
110
|
localState: void 0,
|
|
111
|
-
rootSetState: n ? (
|
|
112
|
-
i[o] =
|
|
111
|
+
rootSetState: n ? (a) => {
|
|
112
|
+
i[o] = a, n(i);
|
|
113
113
|
} : void 0
|
|
114
|
-
}) :
|
|
114
|
+
}) : r;
|
|
115
115
|
},
|
|
116
|
-
set: (i, o,
|
|
116
|
+
set: (i, o, r) => {
|
|
117
117
|
if (t && o in t)
|
|
118
118
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
119
|
-
return i[o] =
|
|
119
|
+
return i[o] = r, n == null || n(i), !0;
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const ue = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
127
127
|
event: i,
|
|
128
128
|
localState: o,
|
|
129
|
-
rootSetState:
|
|
130
|
-
rootState:
|
|
129
|
+
rootSetState: r,
|
|
130
|
+
rootState: a
|
|
131
131
|
}) => {
|
|
132
|
-
const
|
|
132
|
+
const l = Xe({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: i,
|
|
136
|
-
state:
|
|
137
|
-
rootState:
|
|
136
|
+
state: Re({
|
|
137
|
+
rootState: a,
|
|
138
138
|
localState: o,
|
|
139
|
-
rootSetState:
|
|
139
|
+
rootSetState: r
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
|
-
return new Function(...
|
|
142
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
143
143
|
};
|
|
144
|
-
function
|
|
144
|
+
function tt() {
|
|
145
145
|
var e;
|
|
146
|
-
return typeof process != "undefined" &&
|
|
146
|
+
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
148
|
+
const nt = ({
|
|
149
149
|
shouldLogWarning: e
|
|
150
150
|
}) => {
|
|
151
151
|
var o;
|
|
152
|
-
if (!
|
|
152
|
+
if (!tt())
|
|
153
153
|
return !1;
|
|
154
154
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
155
|
-
return t && n && !i ? (e &&
|
|
156
|
-
},
|
|
155
|
+
return t && n && !i ? (e && J.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;
|
|
156
|
+
}, it = (e) => (L() || nt({
|
|
157
157
|
shouldLogWarning: !0
|
|
158
|
-
}),
|
|
159
|
-
var t, n, i, o,
|
|
160
|
-
return ((i = (n = (t =
|
|
158
|
+
}), ue(e)), ot = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, at = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, rt = (e) => {
|
|
159
|
+
var t, n, i, o, r, a;
|
|
160
|
+
return ((i = (n = (t = ot.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = at.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
161
161
|
};
|
|
162
162
|
function O({
|
|
163
163
|
code: e,
|
|
@@ -165,58 +165,58 @@ function O({
|
|
|
165
165
|
localState: n,
|
|
166
166
|
rootState: i,
|
|
167
167
|
rootSetState: o,
|
|
168
|
-
event:
|
|
169
|
-
isExpression:
|
|
168
|
+
event: r,
|
|
169
|
+
isExpression: a = !0
|
|
170
170
|
}) {
|
|
171
171
|
if (e.trim() === "")
|
|
172
172
|
return;
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
175
|
-
return
|
|
173
|
+
const l = rt(e.trim());
|
|
174
|
+
if (l)
|
|
175
|
+
return Ee({
|
|
176
176
|
...i,
|
|
177
177
|
...n
|
|
178
|
-
},
|
|
178
|
+
}, l);
|
|
179
179
|
const d = {
|
|
180
|
-
code:
|
|
181
|
-
isExpression:
|
|
180
|
+
code: et(e, {
|
|
181
|
+
isExpression: a
|
|
182
182
|
}),
|
|
183
|
-
builder:
|
|
183
|
+
builder: Ze(),
|
|
184
184
|
context: t,
|
|
185
|
-
event:
|
|
185
|
+
event: r,
|
|
186
186
|
rootSetState: o,
|
|
187
187
|
rootState: i,
|
|
188
188
|
localState: n
|
|
189
189
|
};
|
|
190
190
|
try {
|
|
191
|
-
return
|
|
191
|
+
return it(d);
|
|
192
192
|
} catch (c) {
|
|
193
|
-
|
|
193
|
+
J.error("Failed code evaluation: " + c.message, {
|
|
194
194
|
code: e
|
|
195
195
|
});
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const re = (e) => JSON.parse(JSON.stringify(e)), Pe = (e, t, n) => {
|
|
200
200
|
if (Object(e) !== e)
|
|
201
201
|
return e;
|
|
202
202
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
203
|
-
return i.slice(0, -1).reduce((o,
|
|
203
|
+
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
204
204
|
};
|
|
205
|
-
function
|
|
205
|
+
function ne(e) {
|
|
206
206
|
if (e === null || typeof e != "object")
|
|
207
207
|
return e;
|
|
208
208
|
if (Array.isArray(e))
|
|
209
|
-
return e.map((n) =>
|
|
209
|
+
return e.map((n) => ne(n));
|
|
210
210
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
211
211
|
return e;
|
|
212
212
|
const t = {};
|
|
213
213
|
for (const n in e)
|
|
214
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
214
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
|
-
const
|
|
218
|
-
if (
|
|
219
|
-
const t =
|
|
217
|
+
const lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), st = (e) => {
|
|
218
|
+
if (lt) {
|
|
219
|
+
const t = re(e);
|
|
220
220
|
return {
|
|
221
221
|
...t,
|
|
222
222
|
properties: {
|
|
@@ -227,7 +227,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
} else {
|
|
230
|
-
const t =
|
|
230
|
+
const t = ne(Qe(e, "children", "meta"));
|
|
231
231
|
return {
|
|
232
232
|
...t,
|
|
233
233
|
properties: {
|
|
@@ -240,7 +240,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
240
240
|
meta: e.meta
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
},
|
|
243
|
+
}, ct = ({
|
|
244
244
|
block: e,
|
|
245
245
|
context: t,
|
|
246
246
|
localState: n,
|
|
@@ -249,47 +249,47 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
249
249
|
}) => {
|
|
250
250
|
if (!e.bindings)
|
|
251
251
|
return e;
|
|
252
|
-
const
|
|
253
|
-
for (const
|
|
254
|
-
const
|
|
255
|
-
code:
|
|
252
|
+
const r = st(e);
|
|
253
|
+
for (const a in e.bindings) {
|
|
254
|
+
const l = e.bindings[a], d = O({
|
|
255
|
+
code: l,
|
|
256
256
|
localState: n,
|
|
257
257
|
rootState: i,
|
|
258
258
|
rootSetState: o,
|
|
259
259
|
context: t
|
|
260
260
|
});
|
|
261
|
-
|
|
261
|
+
Pe(r, a, d);
|
|
262
262
|
}
|
|
263
|
-
return
|
|
263
|
+
return r;
|
|
264
264
|
};
|
|
265
|
-
function
|
|
265
|
+
function dt({
|
|
266
266
|
block: e,
|
|
267
267
|
context: t,
|
|
268
268
|
shouldEvaluateBindings: n,
|
|
269
269
|
localState: i,
|
|
270
270
|
rootState: o,
|
|
271
|
-
rootSetState:
|
|
271
|
+
rootSetState: r
|
|
272
272
|
}) {
|
|
273
|
-
const
|
|
274
|
-
return n ?
|
|
275
|
-
block:
|
|
273
|
+
const a = e;
|
|
274
|
+
return n ? ct({
|
|
275
|
+
block: a,
|
|
276
276
|
localState: i,
|
|
277
277
|
rootState: o,
|
|
278
|
-
rootSetState:
|
|
278
|
+
rootSetState: r,
|
|
279
279
|
context: t
|
|
280
|
-
}) :
|
|
280
|
+
}) : a;
|
|
281
281
|
}
|
|
282
|
-
const
|
|
283
|
-
function
|
|
284
|
-
let i, o,
|
|
282
|
+
const G = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
283
|
+
function ut(e, t, n = {}) {
|
|
284
|
+
let i, o, r, a = null, l = 0;
|
|
285
285
|
const d = function() {
|
|
286
|
-
|
|
286
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
287
287
|
};
|
|
288
288
|
return function() {
|
|
289
289
|
const c = Date.now();
|
|
290
|
-
!
|
|
291
|
-
const h = t - (c -
|
|
292
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
290
|
+
!l && n.leading === !1 && (l = c);
|
|
291
|
+
const h = t - (c - l);
|
|
292
|
+
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
function U(e, ...t) {
|
|
@@ -297,72 +297,72 @@ function U(e, ...t) {
|
|
|
297
297
|
for (let i = 1; i < arguments.length; i++) {
|
|
298
298
|
const o = arguments[i];
|
|
299
299
|
if (o != null)
|
|
300
|
-
for (const
|
|
301
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
300
|
+
for (const r in o)
|
|
301
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
302
302
|
}
|
|
303
303
|
return n;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function mt(e) {
|
|
306
306
|
for (const t of e)
|
|
307
307
|
switch (t.trigger) {
|
|
308
308
|
case "pageLoad":
|
|
309
|
-
|
|
309
|
+
Ae(t);
|
|
310
310
|
break;
|
|
311
311
|
case "scrollInView":
|
|
312
|
-
|
|
312
|
+
ht(t);
|
|
313
313
|
break;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Be(e) {
|
|
317
317
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
const n =
|
|
321
|
-
for (const
|
|
319
|
+
function Ve(e, t) {
|
|
320
|
+
const n = ft(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
321
|
+
for (const l of a)
|
|
322
322
|
for (const d of n)
|
|
323
|
-
d in
|
|
323
|
+
d in l || (l[d] = i[d]);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function ft(e) {
|
|
326
326
|
const t = [];
|
|
327
327
|
for (const n of e.steps)
|
|
328
328
|
for (const i in n.styles)
|
|
329
329
|
t.indexOf(i) === -1 && t.push(i);
|
|
330
330
|
return t;
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ae(e) {
|
|
333
333
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
334
334
|
if (!t.length) {
|
|
335
|
-
|
|
335
|
+
Be(e.elementId || e.id || "");
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
338
|
Array.from(t).forEach((n) => {
|
|
339
|
-
|
|
340
|
-
n.style.transition = `all ${e.duration}s ${
|
|
339
|
+
Ve(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
340
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
341
341
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
342
342
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
343
343
|
});
|
|
344
344
|
});
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function ht(e) {
|
|
347
347
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
348
348
|
if (!t.length) {
|
|
349
|
-
|
|
349
|
+
Be(e.elementId || e.id || "");
|
|
350
350
|
return;
|
|
351
351
|
}
|
|
352
352
|
Array.from(t).forEach((n) => {
|
|
353
|
-
|
|
353
|
+
Ve(e, n);
|
|
354
354
|
let i = !1, o = !1;
|
|
355
|
-
function
|
|
356
|
-
!i &&
|
|
357
|
-
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
355
|
+
function r() {
|
|
356
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
357
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
358
358
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
359
359
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
360
|
-
})) : e.repeat && i && !o && !
|
|
360
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const a = ut(r, 200, {
|
|
363
363
|
leading: !1
|
|
364
364
|
});
|
|
365
|
-
function
|
|
365
|
+
function l(h) {
|
|
366
366
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
367
367
|
return g.bottom > f && g.top < m - f;
|
|
368
368
|
}
|
|
@@ -371,49 +371,49 @@ function ft(e) {
|
|
|
371
371
|
U(n.style, d);
|
|
372
372
|
}
|
|
373
373
|
c(), setTimeout(() => {
|
|
374
|
-
n.style.transition = `all ${e.duration}s ${
|
|
375
|
-
}), document.addEventListener("scroll",
|
|
374
|
+
n.style.transition = `all ${e.duration}s ${G(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
375
|
+
}), document.addEventListener("scroll", a, {
|
|
376
376
|
capture: !0,
|
|
377
377
|
passive: !0
|
|
378
|
-
}),
|
|
378
|
+
}), r();
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
const
|
|
381
|
+
const Ne = (e) => Object.entries(e).map(([n, i]) => {
|
|
382
382
|
if (typeof i == "string")
|
|
383
|
-
return `${
|
|
384
|
-
}).filter(
|
|
385
|
-
`),
|
|
383
|
+
return `${G(n)}: ${i};`;
|
|
384
|
+
}).filter(K), gt = (e) => Ne(e).join(`
|
|
385
|
+
`), _ = ({
|
|
386
386
|
mediaQuery: e,
|
|
387
387
|
className: t,
|
|
388
388
|
styles: n
|
|
389
389
|
}) => {
|
|
390
390
|
const i = `.${t} {
|
|
391
|
-
${
|
|
391
|
+
${gt(n)}
|
|
392
392
|
}`;
|
|
393
393
|
return e ? `${e} {
|
|
394
394
|
${i}
|
|
395
395
|
}` : i;
|
|
396
396
|
};
|
|
397
|
-
function
|
|
397
|
+
function bt({
|
|
398
398
|
style: e
|
|
399
399
|
}) {
|
|
400
400
|
return e;
|
|
401
401
|
}
|
|
402
|
-
const
|
|
402
|
+
const pt = ({
|
|
403
403
|
block: e,
|
|
404
404
|
context: t
|
|
405
|
-
}) =>
|
|
405
|
+
}) => We(bt({
|
|
406
406
|
style: e.style || {},
|
|
407
407
|
context: t,
|
|
408
408
|
block: e
|
|
409
409
|
}));
|
|
410
|
-
function
|
|
410
|
+
function We(e) {
|
|
411
411
|
switch (D) {
|
|
412
412
|
case "svelte":
|
|
413
413
|
case "vue":
|
|
414
414
|
case "solid":
|
|
415
415
|
case "angular":
|
|
416
|
-
return
|
|
416
|
+
return Ne(e).join(" ");
|
|
417
417
|
case "qwik":
|
|
418
418
|
case "reactNative":
|
|
419
419
|
case "react":
|
|
@@ -421,7 +421,7 @@ function Ae(e) {
|
|
|
421
421
|
return e;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
const
|
|
424
|
+
const yt = ({
|
|
425
425
|
block: e,
|
|
426
426
|
registeredComponents: t
|
|
427
427
|
}) => {
|
|
@@ -435,7 +435,7 @@ const pt = ({
|
|
|
435
435
|
console.warn(`
|
|
436
436
|
Could not find a registered component named "${n}".
|
|
437
437
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
438
|
-
},
|
|
438
|
+
}, xt = ({
|
|
439
439
|
block: e,
|
|
440
440
|
context: t
|
|
441
441
|
}) => {
|
|
@@ -454,7 +454,7 @@ const pt = ({
|
|
|
454
454
|
});
|
|
455
455
|
if (!Array.isArray(o))
|
|
456
456
|
return;
|
|
457
|
-
const
|
|
457
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
458
458
|
return o.map((d, c) => ({
|
|
459
459
|
context: {
|
|
460
460
|
...t,
|
|
@@ -462,33 +462,33 @@ const pt = ({
|
|
|
462
462
|
...t.localState,
|
|
463
463
|
$index: c,
|
|
464
464
|
$item: d,
|
|
465
|
-
[
|
|
466
|
-
[`$${
|
|
465
|
+
[a]: d,
|
|
466
|
+
[`$${a}Index`]: c
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
block: i
|
|
470
470
|
}));
|
|
471
|
-
},
|
|
471
|
+
}, vt = (e, t) => {
|
|
472
472
|
var n;
|
|
473
473
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
474
474
|
builderLinkComponent: t
|
|
475
475
|
} : {};
|
|
476
|
-
},
|
|
476
|
+
}, St = (e, t) => {
|
|
477
477
|
var n;
|
|
478
478
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
479
479
|
builderComponents: t
|
|
480
480
|
} : {};
|
|
481
|
-
},
|
|
481
|
+
}, kt = (e, t) => {
|
|
482
482
|
var n;
|
|
483
483
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
484
484
|
builderBlock: t
|
|
485
485
|
} : {};
|
|
486
|
-
},
|
|
486
|
+
}, Ct = (e, t) => {
|
|
487
487
|
var n;
|
|
488
488
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
489
489
|
builderContext: t
|
|
490
490
|
} : {};
|
|
491
|
-
},
|
|
491
|
+
}, Fe = {
|
|
492
492
|
small: {
|
|
493
493
|
min: 320,
|
|
494
494
|
default: 321,
|
|
@@ -504,11 +504,11 @@ const pt = ({
|
|
|
504
504
|
default: 991,
|
|
505
505
|
max: 1200
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, me = (e, t = Fe) => `@media (max-width: ${t[e].max}px)`, $e = ({
|
|
508
508
|
small: e,
|
|
509
509
|
medium: t
|
|
510
510
|
}) => {
|
|
511
|
-
const n =
|
|
511
|
+
const n = re(Fe);
|
|
512
512
|
if (!e || !t)
|
|
513
513
|
return n;
|
|
514
514
|
const i = Math.floor(e / 2);
|
|
@@ -523,16 +523,16 @@ const pt = ({
|
|
|
523
523
|
min: o,
|
|
524
524
|
default: o + 1
|
|
525
525
|
};
|
|
526
|
-
const
|
|
526
|
+
const r = n.medium.max + 1;
|
|
527
527
|
return n.large = {
|
|
528
528
|
max: 2e3,
|
|
529
529
|
// TODO: decide upper limit
|
|
530
|
-
min:
|
|
531
|
-
default:
|
|
530
|
+
min: r,
|
|
531
|
+
default: r + 1
|
|
532
532
|
}, n;
|
|
533
533
|
};
|
|
534
|
-
function
|
|
535
|
-
return /* @__PURE__ */
|
|
534
|
+
function Y(e) {
|
|
535
|
+
return /* @__PURE__ */ s(
|
|
536
536
|
"style",
|
|
537
537
|
{
|
|
538
538
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -541,44 +541,44 @@ function G(e) {
|
|
|
541
541
|
}
|
|
542
542
|
);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Tt(e) {
|
|
545
545
|
function t() {
|
|
546
546
|
const i = e.block;
|
|
547
|
-
return
|
|
547
|
+
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
548
548
|
}
|
|
549
549
|
function n() {
|
|
550
|
-
var
|
|
551
|
-
const i = e.block, o = i.responsiveStyles,
|
|
552
|
-
((
|
|
553
|
-
),
|
|
550
|
+
var v, p, b;
|
|
551
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = $e(
|
|
552
|
+
((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
|
|
553
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
554
554
|
if (!h)
|
|
555
555
|
return "";
|
|
556
|
-
const g =
|
|
556
|
+
const g = l ? _({
|
|
557
557
|
className: h,
|
|
558
|
-
styles:
|
|
559
|
-
}) : "", m = d ?
|
|
558
|
+
styles: l
|
|
559
|
+
}) : "", m = d ? _({
|
|
560
560
|
className: h,
|
|
561
561
|
styles: d,
|
|
562
|
-
mediaQuery:
|
|
562
|
+
mediaQuery: me(
|
|
563
563
|
"medium",
|
|
564
|
-
|
|
564
|
+
a
|
|
565
565
|
)
|
|
566
|
-
}) : "",
|
|
566
|
+
}) : "", x = c ? _({
|
|
567
567
|
className: h,
|
|
568
568
|
styles: c,
|
|
569
|
-
mediaQuery:
|
|
569
|
+
mediaQuery: me(
|
|
570
570
|
"small",
|
|
571
|
-
|
|
571
|
+
a
|
|
572
572
|
)
|
|
573
|
-
}) : "", f = i.animations && i.animations.find((
|
|
574
|
-
let
|
|
573
|
+
}) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
574
|
+
let S = "";
|
|
575
575
|
if (f) {
|
|
576
|
-
const
|
|
577
|
-
|
|
576
|
+
const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
577
|
+
S = _({
|
|
578
578
|
className: `${h}:hover`,
|
|
579
579
|
styles: {
|
|
580
|
-
...
|
|
581
|
-
transition: `all ${f.duration}s ${
|
|
580
|
+
...y,
|
|
581
|
+
transition: `all ${f.duration}s ${G(
|
|
582
582
|
f.easing
|
|
583
583
|
)}`,
|
|
584
584
|
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
@@ -588,12 +588,12 @@ function Ct(e) {
|
|
|
588
588
|
return [
|
|
589
589
|
g,
|
|
590
590
|
m,
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
x,
|
|
592
|
+
S
|
|
593
593
|
].join(" ");
|
|
594
594
|
}
|
|
595
|
-
return /* @__PURE__ */
|
|
596
|
-
|
|
595
|
+
return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
596
|
+
Y,
|
|
597
597
|
{
|
|
598
598
|
id: "builderio-block",
|
|
599
599
|
styles: n(),
|
|
@@ -601,10 +601,10 @@ function Ct(e) {
|
|
|
601
601
|
}
|
|
602
602
|
) }) : null });
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function It(e) {
|
|
605
605
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
606
606
|
}
|
|
607
|
-
const
|
|
607
|
+
const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => O({
|
|
608
608
|
code: e,
|
|
609
609
|
context: t.context,
|
|
610
610
|
localState: t.localState,
|
|
@@ -613,66 +613,66 @@ const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => O({
|
|
|
613
613
|
event: n,
|
|
614
614
|
isExpression: !1
|
|
615
615
|
});
|
|
616
|
-
function
|
|
616
|
+
function De(e) {
|
|
617
617
|
var i;
|
|
618
618
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
619
619
|
for (const o in n) {
|
|
620
620
|
if (!n.hasOwnProperty(o))
|
|
621
621
|
continue;
|
|
622
|
-
const
|
|
623
|
-
let
|
|
622
|
+
const r = n[o];
|
|
623
|
+
let a = wt(o);
|
|
624
624
|
if (e.stripPrefix)
|
|
625
625
|
switch (D) {
|
|
626
626
|
case "vue":
|
|
627
|
-
|
|
627
|
+
a = a.replace("v-on:", "");
|
|
628
628
|
break;
|
|
629
629
|
case "svelte":
|
|
630
|
-
|
|
630
|
+
a = a.replace("on:", "");
|
|
631
631
|
break;
|
|
632
632
|
}
|
|
633
|
-
t[
|
|
633
|
+
t[a] = Et(r, e);
|
|
634
634
|
}
|
|
635
635
|
return t;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Rt({
|
|
638
638
|
properties: e
|
|
639
639
|
}) {
|
|
640
640
|
return e;
|
|
641
641
|
}
|
|
642
|
-
const
|
|
642
|
+
const Pt = (e) => ({
|
|
643
643
|
href: e.href
|
|
644
644
|
});
|
|
645
|
-
function
|
|
645
|
+
function le({
|
|
646
646
|
block: e,
|
|
647
647
|
context: t
|
|
648
648
|
}) {
|
|
649
649
|
var i;
|
|
650
650
|
const n = {
|
|
651
|
-
...
|
|
651
|
+
...Pt(e),
|
|
652
652
|
...e.properties,
|
|
653
653
|
"builder-id": e.id,
|
|
654
|
-
style:
|
|
654
|
+
style: pt({
|
|
655
655
|
block: e,
|
|
656
656
|
context: t
|
|
657
657
|
}),
|
|
658
658
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
659
659
|
};
|
|
660
|
-
return
|
|
660
|
+
return Rt({
|
|
661
661
|
properties: n,
|
|
662
662
|
context: t,
|
|
663
663
|
block: e
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
return /* @__PURE__ */
|
|
668
|
-
|
|
666
|
+
function Bt(e) {
|
|
667
|
+
return /* @__PURE__ */ s(
|
|
668
|
+
oe,
|
|
669
669
|
{
|
|
670
670
|
TagName: e.Wrapper,
|
|
671
|
-
attributes:
|
|
671
|
+
attributes: le({
|
|
672
672
|
block: e.block,
|
|
673
673
|
context: e.context
|
|
674
674
|
}),
|
|
675
|
-
actionAttributes:
|
|
675
|
+
actionAttributes: De({
|
|
676
676
|
block: e.block,
|
|
677
677
|
rootState: e.context.rootState,
|
|
678
678
|
rootSetState: e.context.rootSetState,
|
|
@@ -684,18 +684,18 @@ function Pt(e) {
|
|
|
684
684
|
}
|
|
685
685
|
);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function Vt(e) {
|
|
688
688
|
return B(() => {
|
|
689
|
-
}, []), /* @__PURE__ */
|
|
689
|
+
}, []), /* @__PURE__ */ s(I, { children: e.children });
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function At(e) {
|
|
692
692
|
function t() {
|
|
693
693
|
return e.includeBlockProps ? {
|
|
694
|
-
...
|
|
694
|
+
...le({
|
|
695
695
|
block: e.block,
|
|
696
696
|
context: e.context
|
|
697
697
|
}),
|
|
698
|
-
...
|
|
698
|
+
...De({
|
|
699
699
|
block: e.block,
|
|
700
700
|
rootState: e.context.rootState,
|
|
701
701
|
rootSetState: e.context.rootSetState,
|
|
@@ -704,8 +704,8 @@ function Vt(e) {
|
|
|
704
704
|
})
|
|
705
705
|
} : {};
|
|
706
706
|
}
|
|
707
|
-
return /* @__PURE__ */
|
|
708
|
-
|
|
707
|
+
return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
708
|
+
Vt,
|
|
709
709
|
{
|
|
710
710
|
load: e.Wrapper.load,
|
|
711
711
|
fallback: e.Wrapper.fallback,
|
|
@@ -713,47 +713,47 @@ function Vt(e) {
|
|
|
713
713
|
attributes: t(),
|
|
714
714
|
children: e.children
|
|
715
715
|
}
|
|
716
|
-
) }) : /* @__PURE__ */
|
|
716
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
717
717
|
}
|
|
718
|
-
const
|
|
718
|
+
const Nt = ({
|
|
719
719
|
componentOptions: e,
|
|
720
720
|
builderBlock: t,
|
|
721
721
|
context: n,
|
|
722
722
|
componentRef: i,
|
|
723
723
|
includeBlockProps: o,
|
|
724
|
-
isInteractive:
|
|
725
|
-
contextValue:
|
|
724
|
+
isInteractive: r,
|
|
725
|
+
contextValue: a
|
|
726
726
|
}) => {
|
|
727
|
-
const
|
|
727
|
+
const l = {
|
|
728
728
|
...e,
|
|
729
729
|
/**
|
|
730
730
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
731
731
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
732
732
|
*/
|
|
733
733
|
...o ? {
|
|
734
|
-
attributes:
|
|
734
|
+
attributes: le({
|
|
735
735
|
block: t,
|
|
736
|
-
context:
|
|
736
|
+
context: a
|
|
737
737
|
})
|
|
738
738
|
} : {}
|
|
739
739
|
};
|
|
740
|
-
return
|
|
740
|
+
return r ? {
|
|
741
741
|
Wrapper: i,
|
|
742
742
|
block: t,
|
|
743
743
|
context: n,
|
|
744
744
|
wrapperProps: e,
|
|
745
745
|
includeBlockProps: o
|
|
746
|
-
} :
|
|
746
|
+
} : l;
|
|
747
747
|
};
|
|
748
|
-
function
|
|
748
|
+
function fe(e) {
|
|
749
749
|
var i;
|
|
750
|
-
const [t, n] =
|
|
751
|
-
() => e.isInteractive ?
|
|
750
|
+
const [t, n] = R(
|
|
751
|
+
() => e.isInteractive ? At : e.componentRef
|
|
752
752
|
);
|
|
753
|
-
return /* @__PURE__ */
|
|
753
|
+
return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
754
754
|
t,
|
|
755
755
|
{
|
|
756
|
-
...
|
|
756
|
+
...Nt({
|
|
757
757
|
componentOptions: e.componentOptions,
|
|
758
758
|
builderBlock: e.builderBlock,
|
|
759
759
|
context: e.context,
|
|
@@ -763,7 +763,7 @@ function me(e) {
|
|
|
763
763
|
isInteractive: e.isInteractive,
|
|
764
764
|
contextValue: e.context
|
|
765
765
|
}),
|
|
766
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
766
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
767
767
|
j,
|
|
768
768
|
{
|
|
769
769
|
block: o,
|
|
@@ -776,9 +776,9 @@ function me(e) {
|
|
|
776
776
|
}
|
|
777
777
|
) }) : null });
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
const [t, n] =
|
|
781
|
-
return /* @__PURE__ */
|
|
779
|
+
function he(e) {
|
|
780
|
+
const [t, n] = R(() => e.repeatContext);
|
|
781
|
+
return /* @__PURE__ */ s(ae.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
782
782
|
j,
|
|
783
783
|
{
|
|
784
784
|
block: e.block,
|
|
@@ -789,22 +789,22 @@ function fe(e) {
|
|
|
789
789
|
) });
|
|
790
790
|
}
|
|
791
791
|
function j(e) {
|
|
792
|
-
var h, g, m,
|
|
792
|
+
var h, g, m, x;
|
|
793
793
|
function t() {
|
|
794
|
-
return
|
|
794
|
+
return xt({
|
|
795
795
|
block: e.block,
|
|
796
796
|
context: e.context
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
const [n, i] =
|
|
799
|
+
const [n, i] = R(() => ({
|
|
800
800
|
value: null,
|
|
801
801
|
update: !1
|
|
802
802
|
}));
|
|
803
803
|
function o() {
|
|
804
|
-
var
|
|
805
|
-
if (n.value && !n.update && !
|
|
804
|
+
var S;
|
|
805
|
+
if (n.value && !n.update && !Se())
|
|
806
806
|
return n.value;
|
|
807
|
-
const f = (
|
|
807
|
+
const f = (S = e.block.repeat) != null && S.collection ? e.block : dt({
|
|
808
808
|
block: e.block,
|
|
809
809
|
localState: e.context.localState,
|
|
810
810
|
rootState: e.context.rootState,
|
|
@@ -814,39 +814,39 @@ function j(e) {
|
|
|
814
814
|
});
|
|
815
815
|
return n.value = f, n.update = !1, f;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
818
|
-
return
|
|
817
|
+
function r() {
|
|
818
|
+
return yt({
|
|
819
819
|
block: o(),
|
|
820
820
|
registeredComponents: e.registeredComponents
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
var
|
|
825
|
-
return e.block.tagName === "a" || ((
|
|
823
|
+
function a() {
|
|
824
|
+
var S;
|
|
825
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
var
|
|
829
|
-
if ((
|
|
827
|
+
function l() {
|
|
828
|
+
var v, p;
|
|
829
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
830
830
|
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
831
831
|
const f = "hide" in o() ? o().hide : !1;
|
|
832
832
|
return ("show" in o() ? o().show : !0) && !f;
|
|
833
833
|
}
|
|
834
834
|
function d() {
|
|
835
|
-
var
|
|
836
|
-
return !((
|
|
835
|
+
var S, v;
|
|
836
|
+
return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
|
|
837
837
|
}
|
|
838
838
|
function c() {
|
|
839
|
-
var f,
|
|
839
|
+
var f, S, v, p;
|
|
840
840
|
return {
|
|
841
841
|
blockChildren: (f = o().children) != null ? f : [],
|
|
842
|
-
componentRef: (
|
|
842
|
+
componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
|
|
843
843
|
componentOptions: {
|
|
844
|
-
...
|
|
845
|
-
...
|
|
846
|
-
...
|
|
847
|
-
...
|
|
848
|
-
...
|
|
849
|
-
|
|
844
|
+
...Ye(o()),
|
|
845
|
+
...kt(r(), o()),
|
|
846
|
+
...Ct(r(), e.context),
|
|
847
|
+
...vt(r(), e.linkComponent),
|
|
848
|
+
...St(
|
|
849
|
+
r(),
|
|
850
850
|
e.registeredComponents
|
|
851
851
|
)
|
|
852
852
|
},
|
|
@@ -854,33 +854,33 @@ function j(e) {
|
|
|
854
854
|
linkComponent: e.linkComponent,
|
|
855
855
|
registeredComponents: e.registeredComponents,
|
|
856
856
|
builderBlock: o(),
|
|
857
|
-
includeBlockProps: ((
|
|
858
|
-
isInteractive: !((p =
|
|
857
|
+
includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
|
|
858
|
+
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
return B(() => {
|
|
862
|
-
const f = o().id,
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
...
|
|
862
|
+
const f = o().id, S = o().animations;
|
|
863
|
+
S && f && mt(
|
|
864
|
+
S.map((v) => ({
|
|
865
|
+
...v,
|
|
866
866
|
elementId: f
|
|
867
867
|
}))
|
|
868
868
|
);
|
|
869
869
|
}, []), B(() => {
|
|
870
870
|
n.update = !0;
|
|
871
|
-
}), /* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
(h =
|
|
874
|
-
|
|
871
|
+
}), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
|
|
872
|
+
/* @__PURE__ */ s(Tt, { block: o(), context: e.context }),
|
|
873
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
|
|
874
|
+
he,
|
|
875
875
|
{
|
|
876
876
|
repeatContext: f.context,
|
|
877
877
|
block: f.block,
|
|
878
878
|
registeredComponents: e.registeredComponents,
|
|
879
879
|
linkComponent: e.linkComponent
|
|
880
880
|
},
|
|
881
|
-
|
|
882
|
-
)) }) : /* @__PURE__ */
|
|
883
|
-
|
|
881
|
+
S
|
|
882
|
+
)) }) : /* @__PURE__ */ s(
|
|
883
|
+
fe,
|
|
884
884
|
{
|
|
885
885
|
componentRef: c().componentRef,
|
|
886
886
|
componentOptions: c().componentOptions,
|
|
@@ -892,24 +892,24 @@ function j(e) {
|
|
|
892
892
|
includeBlockProps: c().includeBlockProps,
|
|
893
893
|
isInteractive: c().isInteractive
|
|
894
894
|
}
|
|
895
|
-
) : /* @__PURE__ */
|
|
896
|
-
|
|
895
|
+
) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
|
|
896
|
+
he,
|
|
897
897
|
{
|
|
898
898
|
repeatContext: f.context,
|
|
899
899
|
block: f.block,
|
|
900
900
|
registeredComponents: e.registeredComponents,
|
|
901
901
|
linkComponent: e.linkComponent
|
|
902
902
|
},
|
|
903
|
-
|
|
903
|
+
S
|
|
904
904
|
)) }) : /* @__PURE__ */ V(
|
|
905
|
-
|
|
905
|
+
Bt,
|
|
906
906
|
{
|
|
907
|
-
Wrapper:
|
|
907
|
+
Wrapper: a(),
|
|
908
908
|
block: o(),
|
|
909
909
|
context: e.context,
|
|
910
910
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
912
|
-
|
|
911
|
+
/* @__PURE__ */ s(
|
|
912
|
+
fe,
|
|
913
913
|
{
|
|
914
914
|
componentRef: c().componentRef,
|
|
915
915
|
componentOptions: c().componentOptions,
|
|
@@ -922,7 +922,7 @@ function j(e) {
|
|
|
922
922
|
isInteractive: c().isInteractive
|
|
923
923
|
}
|
|
924
924
|
),
|
|
925
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
925
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
926
926
|
j,
|
|
927
927
|
{
|
|
928
928
|
block: f,
|
|
@@ -937,7 +937,7 @@ function j(e) {
|
|
|
937
937
|
) })
|
|
938
938
|
] }) : null });
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Wt(e) {
|
|
941
941
|
const t = $(null);
|
|
942
942
|
function n() {
|
|
943
943
|
var a;
|
|
@@ -948,49 +948,55 @@ function Nt(e) {
|
|
|
948
948
|
].filter(Boolean).join(" ");
|
|
949
949
|
}
|
|
950
950
|
function i() {
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
if (!e.path)
|
|
952
|
+
return;
|
|
953
|
+
const a = "component.options.";
|
|
954
|
+
return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
|
|
955
|
+
}
|
|
956
|
+
function o() {
|
|
957
|
+
var a, l;
|
|
958
|
+
W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
953
959
|
{
|
|
954
960
|
type: "builder.clickEmptyBlocks",
|
|
955
961
|
data: {
|
|
956
962
|
parentElementId: e.parent,
|
|
957
|
-
dataPath:
|
|
963
|
+
dataPath: i()
|
|
958
964
|
}
|
|
959
965
|
},
|
|
960
966
|
"*"
|
|
961
967
|
));
|
|
962
968
|
}
|
|
963
|
-
function
|
|
964
|
-
var a,
|
|
965
|
-
W() && !((a = e.blocks) != null && a.length) && ((
|
|
969
|
+
function r() {
|
|
970
|
+
var a, l;
|
|
971
|
+
W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
966
972
|
{
|
|
967
973
|
type: "builder.hoverEmptyBlocks",
|
|
968
974
|
data: {
|
|
969
975
|
parentElementId: e.parent,
|
|
970
|
-
dataPath:
|
|
976
|
+
dataPath: i()
|
|
971
977
|
}
|
|
972
978
|
},
|
|
973
979
|
"*"
|
|
974
980
|
));
|
|
975
981
|
}
|
|
976
982
|
return B(() => {
|
|
977
|
-
}, []), /* @__PURE__ */ V(
|
|
978
|
-
/* @__PURE__ */
|
|
983
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
984
|
+
/* @__PURE__ */ s(
|
|
979
985
|
e.BlocksWrapper,
|
|
980
986
|
{
|
|
981
987
|
ref: t,
|
|
982
|
-
className: n() + " props-blocks-wrapper-
|
|
983
|
-
"builder-path":
|
|
988
|
+
className: n() + " props-blocks-wrapper-215a41e0",
|
|
989
|
+
"builder-path": i(),
|
|
984
990
|
"builder-parent-id": e.parent,
|
|
985
991
|
style: e.styleProp,
|
|
986
|
-
onClick: (a) =>
|
|
987
|
-
onMouseEnter: (a) =>
|
|
988
|
-
onKeyPress: (a) =>
|
|
992
|
+
onClick: (a) => o(),
|
|
993
|
+
onMouseEnter: (a) => r(),
|
|
994
|
+
onKeyPress: (a) => o(),
|
|
989
995
|
...e.BlocksWrapperProps,
|
|
990
996
|
children: e.children
|
|
991
997
|
}
|
|
992
998
|
),
|
|
993
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
994
1000
|
display: flex;
|
|
995
1001
|
flex-direction: column;
|
|
996
1002
|
align-items: stretch;
|
|
@@ -998,10 +1004,10 @@ function Nt(e) {
|
|
|
998
1004
|
] });
|
|
999
1005
|
}
|
|
1000
1006
|
function F(e) {
|
|
1001
|
-
var i, o,
|
|
1002
|
-
const t =
|
|
1003
|
-
return /* @__PURE__ */
|
|
1004
|
-
|
|
1007
|
+
var i, o, r;
|
|
1008
|
+
const t = de(ae), n = de(we);
|
|
1009
|
+
return /* @__PURE__ */ s(
|
|
1010
|
+
Wt,
|
|
1005
1011
|
{
|
|
1006
1012
|
blocks: e.blocks,
|
|
1007
1013
|
parent: e.parent,
|
|
@@ -1010,22 +1016,22 @@ function F(e) {
|
|
|
1010
1016
|
classNameProp: e.className,
|
|
1011
1017
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1012
1018
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1013
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1019
|
+
children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
1014
1020
|
j,
|
|
1015
1021
|
{
|
|
1016
|
-
block:
|
|
1022
|
+
block: a,
|
|
1017
1023
|
linkComponent: e.linkComponent,
|
|
1018
1024
|
context: e.context || t,
|
|
1019
1025
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1020
1026
|
},
|
|
1021
|
-
|
|
1027
|
+
a.id
|
|
1022
1028
|
)) }) : null
|
|
1023
1029
|
}
|
|
1024
1030
|
);
|
|
1025
1031
|
}
|
|
1026
|
-
const
|
|
1027
|
-
function
|
|
1028
|
-
var
|
|
1032
|
+
const Ft = (e) => `builder-columns ${e}-breakpoints`;
|
|
1033
|
+
function $t(e) {
|
|
1034
|
+
var S, v;
|
|
1029
1035
|
function t() {
|
|
1030
1036
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1031
1037
|
}
|
|
@@ -1038,15 +1044,15 @@ function Ft(e) {
|
|
|
1038
1044
|
function o(p) {
|
|
1039
1045
|
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
1040
1046
|
}
|
|
1041
|
-
function
|
|
1047
|
+
function r(p) {
|
|
1042
1048
|
var b;
|
|
1043
1049
|
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
1044
1050
|
}
|
|
1045
|
-
function
|
|
1046
|
-
const b =
|
|
1047
|
-
return `calc(${b}% - ${
|
|
1051
|
+
function a(p) {
|
|
1052
|
+
const b = r(p), y = t() * (n().length - 1) * (b / 100);
|
|
1053
|
+
return `calc(${b}% - ${y}px)`;
|
|
1048
1054
|
}
|
|
1049
|
-
function
|
|
1055
|
+
function l({
|
|
1050
1056
|
stackedStyle: p,
|
|
1051
1057
|
desktopStyle: b
|
|
1052
1058
|
}) {
|
|
@@ -1064,47 +1070,47 @@ function Ft(e) {
|
|
|
1064
1070
|
function h() {
|
|
1065
1071
|
return {
|
|
1066
1072
|
"--flex-dir": c(),
|
|
1067
|
-
"--flex-dir-tablet":
|
|
1073
|
+
"--flex-dir-tablet": l({
|
|
1068
1074
|
stackedStyle: c(),
|
|
1069
1075
|
desktopStyle: "row"
|
|
1070
1076
|
})
|
|
1071
1077
|
};
|
|
1072
1078
|
}
|
|
1073
1079
|
function g(p) {
|
|
1074
|
-
const b = p === 0 ? 0 : t(),
|
|
1080
|
+
const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
|
|
1075
1081
|
return {
|
|
1076
1082
|
...{
|
|
1077
1083
|
display: "flex",
|
|
1078
1084
|
flexDirection: "column",
|
|
1079
1085
|
alignItems: "stretch"
|
|
1080
1086
|
},
|
|
1081
|
-
width:
|
|
1087
|
+
width: y,
|
|
1082
1088
|
["marginLeft"]: A,
|
|
1083
1089
|
"--column-width-mobile": d({
|
|
1084
|
-
stackedStyle:
|
|
1085
|
-
desktopStyle:
|
|
1090
|
+
stackedStyle: k,
|
|
1091
|
+
desktopStyle: y
|
|
1086
1092
|
}),
|
|
1087
1093
|
"--column-margin-left-mobile": d({
|
|
1088
|
-
stackedStyle:
|
|
1094
|
+
stackedStyle: w,
|
|
1089
1095
|
desktopStyle: A
|
|
1090
1096
|
}),
|
|
1091
|
-
"--column-width-tablet":
|
|
1092
|
-
stackedStyle:
|
|
1093
|
-
desktopStyle:
|
|
1097
|
+
"--column-width-tablet": l({
|
|
1098
|
+
stackedStyle: k,
|
|
1099
|
+
desktopStyle: y
|
|
1094
1100
|
}),
|
|
1095
|
-
"--column-margin-left-tablet":
|
|
1096
|
-
stackedStyle:
|
|
1101
|
+
"--column-margin-left-tablet": l({
|
|
1102
|
+
stackedStyle: w,
|
|
1097
1103
|
desktopStyle: A
|
|
1098
1104
|
})
|
|
1099
1105
|
};
|
|
1100
1106
|
}
|
|
1101
1107
|
function m(p) {
|
|
1102
|
-
var
|
|
1103
|
-
return
|
|
1104
|
-
((A = (
|
|
1108
|
+
var y, A;
|
|
1109
|
+
return $e(
|
|
1110
|
+
((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1105
1111
|
)[p].max;
|
|
1106
1112
|
}
|
|
1107
|
-
function
|
|
1113
|
+
function x() {
|
|
1108
1114
|
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1109
1115
|
return `
|
|
1110
1116
|
@media (max-width: ${m("medium")}px) {
|
|
@@ -1138,34 +1144,34 @@ function Ft(e) {
|
|
|
1138
1144
|
href: p.link
|
|
1139
1145
|
} : {},
|
|
1140
1146
|
[H()]: "builder-column",
|
|
1141
|
-
style:
|
|
1147
|
+
style: We(g(b))
|
|
1142
1148
|
};
|
|
1143
1149
|
}
|
|
1144
|
-
return /* @__PURE__ */ V(
|
|
1150
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
1145
1151
|
/* @__PURE__ */ V(
|
|
1146
1152
|
"div",
|
|
1147
1153
|
{
|
|
1148
|
-
className:
|
|
1154
|
+
className: Ft((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
|
|
1149
1155
|
style: h(),
|
|
1150
1156
|
children: [
|
|
1151
|
-
/* @__PURE__ */
|
|
1152
|
-
|
|
1157
|
+
/* @__PURE__ */ s(
|
|
1158
|
+
Y,
|
|
1153
1159
|
{
|
|
1154
1160
|
id: "builderio-columns",
|
|
1155
|
-
styles:
|
|
1161
|
+
styles: x(),
|
|
1156
1162
|
nonce: e.builderContext.nonce
|
|
1157
1163
|
}
|
|
1158
1164
|
),
|
|
1159
|
-
(
|
|
1160
|
-
|
|
1165
|
+
(v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
|
|
1166
|
+
oe,
|
|
1161
1167
|
{
|
|
1162
1168
|
TagName: o(p),
|
|
1163
1169
|
actionAttributes: {},
|
|
1164
1170
|
attributes: f(p, b),
|
|
1165
|
-
children: /* @__PURE__ */
|
|
1171
|
+
children: /* @__PURE__ */ s(
|
|
1166
1172
|
F,
|
|
1167
1173
|
{
|
|
1168
|
-
path: `
|
|
1174
|
+
path: `columns.${b}.blocks`,
|
|
1169
1175
|
parent: e.builderBlock.id,
|
|
1170
1176
|
styleProp: {
|
|
1171
1177
|
flexGrow: "1"
|
|
@@ -1182,47 +1188,47 @@ function Ft(e) {
|
|
|
1182
1188
|
]
|
|
1183
1189
|
}
|
|
1184
1190
|
),
|
|
1185
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ s("style", { children: `.div-49f40bae {
|
|
1186
1192
|
display: flex;
|
|
1187
1193
|
line-height: normal;
|
|
1188
1194
|
}` })
|
|
1189
1195
|
] });
|
|
1190
1196
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return /* @__PURE__ */
|
|
1197
|
+
function Dt(e) {
|
|
1198
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1193
1199
|
}
|
|
1194
|
-
function
|
|
1200
|
+
function ge(e) {
|
|
1195
1201
|
return e.replace(/http(s)?:/, "");
|
|
1196
1202
|
}
|
|
1197
|
-
function
|
|
1203
|
+
function Lt(e = "", t, n) {
|
|
1198
1204
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1199
1205
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1200
1206
|
}
|
|
1201
|
-
function
|
|
1207
|
+
function Ot(e, t) {
|
|
1202
1208
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1203
1209
|
return e;
|
|
1204
1210
|
if (t === "master")
|
|
1205
|
-
return
|
|
1211
|
+
return ge(e);
|
|
1206
1212
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1207
1213
|
if (n) {
|
|
1208
|
-
const i = e.split(n[0]), o = n[3],
|
|
1209
|
-
return
|
|
1214
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1215
|
+
return ge(`${i[0]}_${r}${o}`);
|
|
1210
1216
|
}
|
|
1211
1217
|
return null;
|
|
1212
1218
|
}
|
|
1213
|
-
function
|
|
1219
|
+
function Q(e) {
|
|
1214
1220
|
if (!e)
|
|
1215
1221
|
return e;
|
|
1216
1222
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1217
1223
|
if (e.match(/builder\.io/)) {
|
|
1218
1224
|
let n = e;
|
|
1219
1225
|
const i = Number(e.split("?width=")[1]);
|
|
1220
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1226
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1221
1227
|
}
|
|
1222
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1228
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1223
1229
|
}
|
|
1224
|
-
function
|
|
1225
|
-
var o,
|
|
1230
|
+
function Ut(e) {
|
|
1231
|
+
var o, r, a, l, d, c;
|
|
1226
1232
|
function t() {
|
|
1227
1233
|
var m;
|
|
1228
1234
|
const g = e.image || e.src;
|
|
@@ -1233,10 +1239,10 @@ function Ot(e) {
|
|
|
1233
1239
|
if (!e.noWebp) {
|
|
1234
1240
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1235
1241
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1236
|
-
return console.debug("Removed given srcset"),
|
|
1242
|
+
return console.debug("Removed given srcset"), Q(g);
|
|
1237
1243
|
} else if (e.image && !e.srcset)
|
|
1238
|
-
return
|
|
1239
|
-
return
|
|
1244
|
+
return Q(g);
|
|
1245
|
+
return Q(g);
|
|
1240
1246
|
}
|
|
1241
1247
|
}
|
|
1242
1248
|
function n() {
|
|
@@ -1254,11 +1260,11 @@ function Ot(e) {
|
|
|
1254
1260
|
return e.aspectRatio ? h : void 0;
|
|
1255
1261
|
}
|
|
1256
1262
|
return B(() => {
|
|
1257
|
-
}, []), /* @__PURE__ */ V(
|
|
1258
|
-
/* @__PURE__ */ V(
|
|
1263
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
1264
|
+
/* @__PURE__ */ V(I, { children: [
|
|
1259
1265
|
/* @__PURE__ */ V("picture", { children: [
|
|
1260
|
-
n() ? /* @__PURE__ */
|
|
1261
|
-
/* @__PURE__ */
|
|
1266
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1267
|
+
/* @__PURE__ */ s(
|
|
1262
1268
|
"img",
|
|
1263
1269
|
{
|
|
1264
1270
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1277,7 +1283,7 @@ function Ot(e) {
|
|
|
1277
1283
|
}
|
|
1278
1284
|
)
|
|
1279
1285
|
] }),
|
|
1280
|
-
e.aspectRatio && !((
|
|
1286
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1281
1287
|
"div",
|
|
1282
1288
|
{
|
|
1283
1289
|
className: "builder-image-sizer div-7a292ab8",
|
|
@@ -1286,10 +1292,10 @@ function Ot(e) {
|
|
|
1286
1292
|
}
|
|
1287
1293
|
}
|
|
1288
1294
|
) : null,
|
|
1289
|
-
(
|
|
1290
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1295
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
|
|
1296
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1291
1297
|
] }),
|
|
1292
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
1293
1299
|
opacity: 1;
|
|
1294
1300
|
transition: opacity 0.2s ease-in-out;
|
|
1295
1301
|
}.div-7a292ab8 {
|
|
@@ -1308,8 +1314,8 @@ function Ot(e) {
|
|
|
1308
1314
|
}` })
|
|
1309
1315
|
] });
|
|
1310
1316
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return /* @__PURE__ */
|
|
1317
|
+
function Ht(e) {
|
|
1318
|
+
return /* @__PURE__ */ s(
|
|
1313
1319
|
"section",
|
|
1314
1320
|
{
|
|
1315
1321
|
...e.attributes,
|
|
@@ -1329,7 +1335,7 @@ function Ut(e) {
|
|
|
1329
1335
|
}
|
|
1330
1336
|
);
|
|
1331
1337
|
}
|
|
1332
|
-
const
|
|
1338
|
+
const X = {
|
|
1333
1339
|
"@type": "@builder.io/sdk:Element",
|
|
1334
1340
|
layerName: "Accordion item title",
|
|
1335
1341
|
responsiveStyles: {
|
|
@@ -1358,7 +1364,7 @@ const Q = {
|
|
|
1358
1364
|
}
|
|
1359
1365
|
}
|
|
1360
1366
|
}]
|
|
1361
|
-
},
|
|
1367
|
+
}, Z = {
|
|
1362
1368
|
"@type": "@builder.io/sdk:Element",
|
|
1363
1369
|
layerName: "Accordion item detail",
|
|
1364
1370
|
responsiveStyles: {
|
|
@@ -1389,7 +1395,7 @@ const Q = {
|
|
|
1389
1395
|
}
|
|
1390
1396
|
}
|
|
1391
1397
|
}]
|
|
1392
|
-
},
|
|
1398
|
+
}, jt = {
|
|
1393
1399
|
name: "Builder:Accordion",
|
|
1394
1400
|
canHaveChildren: !0,
|
|
1395
1401
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1406,19 +1412,19 @@ const Q = {
|
|
|
1406
1412
|
name: "title",
|
|
1407
1413
|
type: "uiBlocks",
|
|
1408
1414
|
hideFromUI: !0,
|
|
1409
|
-
defaultValue: [
|
|
1415
|
+
defaultValue: [X]
|
|
1410
1416
|
}, {
|
|
1411
1417
|
name: "detail",
|
|
1412
1418
|
type: "uiBlocks",
|
|
1413
1419
|
hideFromUI: !0,
|
|
1414
|
-
defaultValue: [
|
|
1420
|
+
defaultValue: [Z]
|
|
1415
1421
|
}],
|
|
1416
1422
|
defaultValue: [{
|
|
1417
|
-
title: [
|
|
1418
|
-
detail: [
|
|
1423
|
+
title: [X],
|
|
1424
|
+
detail: [Z]
|
|
1419
1425
|
}, {
|
|
1420
|
-
title: [
|
|
1421
|
-
detail: [
|
|
1426
|
+
title: [X],
|
|
1427
|
+
detail: [Z]
|
|
1422
1428
|
}],
|
|
1423
1429
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1424
1430
|
}, {
|
|
@@ -1453,10 +1459,10 @@ const Q = {
|
|
|
1453
1459
|
builderComponents: !0,
|
|
1454
1460
|
builderLinkComponent: !0
|
|
1455
1461
|
}
|
|
1456
|
-
},
|
|
1457
|
-
function
|
|
1462
|
+
}, be = (e) => e.toString();
|
|
1463
|
+
function Mt(e) {
|
|
1458
1464
|
var g;
|
|
1459
|
-
const [t, n] =
|
|
1465
|
+
const [t, n] = R(() => []);
|
|
1460
1466
|
function i() {
|
|
1461
1467
|
return !!(e.grid || e.oneAtATime);
|
|
1462
1468
|
}
|
|
@@ -1472,8 +1478,8 @@ function jt(e) {
|
|
|
1472
1478
|
}
|
|
1473
1479
|
};
|
|
1474
1480
|
}
|
|
1475
|
-
function
|
|
1476
|
-
const
|
|
1481
|
+
function r() {
|
|
1482
|
+
const x = {
|
|
1477
1483
|
...{
|
|
1478
1484
|
display: "flex",
|
|
1479
1485
|
flexDirection: "column"
|
|
@@ -1482,35 +1488,35 @@ function jt(e) {
|
|
|
1482
1488
|
cursor: "pointer"
|
|
1483
1489
|
};
|
|
1484
1490
|
return Object.fromEntries(
|
|
1485
|
-
Object.entries(
|
|
1491
|
+
Object.entries(x).filter(([f, S]) => S !== void 0)
|
|
1486
1492
|
);
|
|
1487
1493
|
}
|
|
1488
|
-
function
|
|
1494
|
+
function a(m) {
|
|
1489
1495
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1490
1496
|
}
|
|
1491
|
-
function
|
|
1497
|
+
function l(m) {
|
|
1492
1498
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1493
1499
|
}
|
|
1494
1500
|
function d() {
|
|
1495
1501
|
let m = null;
|
|
1496
1502
|
if (e.grid && t.length && document) {
|
|
1497
1503
|
const f = t[0];
|
|
1498
|
-
let
|
|
1504
|
+
let v = document.querySelector(
|
|
1499
1505
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1500
1506
|
);
|
|
1501
|
-
if (m = f,
|
|
1502
|
-
let p =
|
|
1503
|
-
for (;
|
|
1504
|
-
if (
|
|
1505
|
-
if (
|
|
1507
|
+
if (m = f, v) {
|
|
1508
|
+
let p = v.getBoundingClientRect();
|
|
1509
|
+
for (; v = v && v.nextElementSibling; )
|
|
1510
|
+
if (v) {
|
|
1511
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1506
1512
|
continue;
|
|
1507
|
-
const b =
|
|
1513
|
+
const b = v.getBoundingClientRect();
|
|
1508
1514
|
if (b.left > p.left) {
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1515
|
+
const y = parseInt(
|
|
1516
|
+
v.getAttribute("data-index") || "",
|
|
1511
1517
|
10
|
|
1512
1518
|
);
|
|
1513
|
-
isNaN(
|
|
1519
|
+
isNaN(y) || (p = b, m = y);
|
|
1514
1520
|
} else
|
|
1515
1521
|
break;
|
|
1516
1522
|
}
|
|
@@ -1526,29 +1532,31 @@ function jt(e) {
|
|
|
1526
1532
|
}
|
|
1527
1533
|
};
|
|
1528
1534
|
return Object.fromEntries(
|
|
1529
|
-
Object.entries(m).filter(([
|
|
1535
|
+
Object.entries(m).filter(([x, f]) => f !== void 0)
|
|
1530
1536
|
);
|
|
1531
1537
|
}
|
|
1532
1538
|
function h(m) {
|
|
1533
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1539
|
+
t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
|
|
1534
1540
|
}
|
|
1535
|
-
return /* @__PURE__ */
|
|
1536
|
-
/* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
|
|
1542
|
+
/* @__PURE__ */ s(
|
|
1537
1543
|
"div",
|
|
1538
1544
|
{
|
|
1539
|
-
className:
|
|
1545
|
+
className: a(x),
|
|
1540
1546
|
style: {
|
|
1541
|
-
...
|
|
1542
|
-
|
|
1543
|
-
|
|
1547
|
+
...r(),
|
|
1548
|
+
...e.grid && {
|
|
1549
|
+
width: e.gridRowWidth,
|
|
1550
|
+
order: d() !== null ? be(x) : be(x + 1)
|
|
1551
|
+
}
|
|
1544
1552
|
},
|
|
1545
|
-
"data-index":
|
|
1546
|
-
onClick: (f) => h(
|
|
1547
|
-
children: /* @__PURE__ */
|
|
1553
|
+
"data-index": x,
|
|
1554
|
+
onClick: (f) => h(x),
|
|
1555
|
+
children: /* @__PURE__ */ s(
|
|
1548
1556
|
F,
|
|
1549
1557
|
{
|
|
1550
1558
|
blocks: m.title,
|
|
1551
|
-
path: `items.${
|
|
1559
|
+
path: `items.${x}.title`,
|
|
1552
1560
|
parent: e.builderBlock.id,
|
|
1553
1561
|
context: e.builderContext,
|
|
1554
1562
|
registeredComponents: e.builderComponents,
|
|
@@ -1557,16 +1565,16 @@ function jt(e) {
|
|
|
1557
1565
|
)
|
|
1558
1566
|
}
|
|
1559
1567
|
),
|
|
1560
|
-
t.includes(
|
|
1568
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1561
1569
|
"div",
|
|
1562
1570
|
{
|
|
1563
|
-
className:
|
|
1571
|
+
className: l(x),
|
|
1564
1572
|
style: c(),
|
|
1565
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ s(
|
|
1566
1574
|
F,
|
|
1567
1575
|
{
|
|
1568
1576
|
blocks: m.detail,
|
|
1569
|
-
path: `items.${
|
|
1577
|
+
path: `items.${x}.detail`,
|
|
1570
1578
|
parent: e.builderBlock.id,
|
|
1571
1579
|
context: e.builderContext,
|
|
1572
1580
|
registeredComponents: e.builderComponents,
|
|
@@ -1577,7 +1585,7 @@ function jt(e) {
|
|
|
1577
1585
|
) : null
|
|
1578
1586
|
] })) });
|
|
1579
1587
|
}
|
|
1580
|
-
const
|
|
1588
|
+
const _t = {
|
|
1581
1589
|
name: "Core:Button",
|
|
1582
1590
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1583
1591
|
defaultStyles: {
|
|
@@ -1613,7 +1621,7 @@ const Mt = {
|
|
|
1613
1621
|
shouldReceiveBuilderProps: {
|
|
1614
1622
|
builderLinkComponent: !0
|
|
1615
1623
|
}
|
|
1616
|
-
},
|
|
1624
|
+
}, qt = {
|
|
1617
1625
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1618
1626
|
name: "Columns",
|
|
1619
1627
|
isRSC: !0,
|
|
@@ -1792,7 +1800,7 @@ const Mt = {
|
|
|
1792
1800
|
});
|
|
1793
1801
|
}
|
|
1794
1802
|
const n = e.get("columns");
|
|
1795
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1803
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1796
1804
|
}
|
|
1797
1805
|
}, {
|
|
1798
1806
|
name: "space",
|
|
@@ -1820,13 +1828,13 @@ const Mt = {
|
|
|
1820
1828
|
builderComponents: !0,
|
|
1821
1829
|
builderLinkComponent: !0
|
|
1822
1830
|
}
|
|
1823
|
-
},
|
|
1831
|
+
}, Kt = {
|
|
1824
1832
|
name: "Fragment",
|
|
1825
1833
|
static: !0,
|
|
1826
1834
|
hidden: !0,
|
|
1827
1835
|
canHaveChildren: !0,
|
|
1828
1836
|
noWrap: !0
|
|
1829
|
-
},
|
|
1837
|
+
}, zt = {
|
|
1830
1838
|
name: "Image",
|
|
1831
1839
|
static: !0,
|
|
1832
1840
|
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",
|
|
@@ -1846,7 +1854,7 @@ const Mt = {
|
|
|
1846
1854
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1847
1855
|
onChange: (e) => {
|
|
1848
1856
|
e.delete("srcset"), e.delete("noWebp");
|
|
1849
|
-
function n(
|
|
1857
|
+
function n(a, l = 6e4) {
|
|
1850
1858
|
return new Promise((d, c) => {
|
|
1851
1859
|
const h = document.createElement("img");
|
|
1852
1860
|
let g = !1;
|
|
@@ -1854,21 +1862,21 @@ const Mt = {
|
|
|
1854
1862
|
g = !0, d(h);
|
|
1855
1863
|
}, h.addEventListener("error", (m) => {
|
|
1856
1864
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1857
|
-
}), h.src =
|
|
1865
|
+
}), h.src = a, setTimeout(() => {
|
|
1858
1866
|
g || c(new Error("Image load timed out"));
|
|
1859
|
-
},
|
|
1867
|
+
}, l);
|
|
1860
1868
|
});
|
|
1861
1869
|
}
|
|
1862
|
-
function i(
|
|
1863
|
-
return Math.round(
|
|
1870
|
+
function i(a) {
|
|
1871
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1864
1872
|
}
|
|
1865
|
-
const o = e.get("image"),
|
|
1866
|
-
if (fetch(o).then((
|
|
1867
|
-
|
|
1868
|
-
}), o && (!
|
|
1869
|
-
return n(o).then((
|
|
1870
|
-
const
|
|
1871
|
-
e.get("image") === o && (!
|
|
1873
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1874
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1875
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1876
|
+
}), o && (!r || r === 0.7041))
|
|
1877
|
+
return n(o).then((a) => {
|
|
1878
|
+
const l = e.get("aspectRatio");
|
|
1879
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1872
1880
|
});
|
|
1873
1881
|
}
|
|
1874
1882
|
}, {
|
|
@@ -1934,7 +1942,7 @@ const Mt = {
|
|
|
1934
1942
|
shouldReceiveBuilderProps: {
|
|
1935
1943
|
builderBlock: !0
|
|
1936
1944
|
}
|
|
1937
|
-
},
|
|
1945
|
+
}, Jt = {
|
|
1938
1946
|
name: "Core:Section",
|
|
1939
1947
|
static: !0,
|
|
1940
1948
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1973,7 +1981,7 @@ const Mt = {
|
|
|
1973
1981
|
}
|
|
1974
1982
|
}
|
|
1975
1983
|
}]
|
|
1976
|
-
},
|
|
1984
|
+
}, Gt = {
|
|
1977
1985
|
name: "Slot",
|
|
1978
1986
|
isRSC: !0,
|
|
1979
1987
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1991,9 +1999,9 @@ const Mt = {
|
|
|
1991
1999
|
builderComponents: !0
|
|
1992
2000
|
}
|
|
1993
2001
|
};
|
|
1994
|
-
function
|
|
2002
|
+
function Yt(e) {
|
|
1995
2003
|
var t, n, i;
|
|
1996
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ s(
|
|
1997
2005
|
"div",
|
|
1998
2006
|
{
|
|
1999
2007
|
style: {
|
|
@@ -2002,7 +2010,7 @@ function Gt(e) {
|
|
|
2002
2010
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2003
2011
|
"builder-slot": e.name
|
|
2004
2012
|
},
|
|
2005
|
-
children: /* @__PURE__ */
|
|
2013
|
+
children: /* @__PURE__ */ s(
|
|
2006
2014
|
F,
|
|
2007
2015
|
{
|
|
2008
2016
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2015,7 +2023,7 @@ function Gt(e) {
|
|
|
2015
2023
|
}
|
|
2016
2024
|
);
|
|
2017
2025
|
}
|
|
2018
|
-
const
|
|
2026
|
+
const Qt = {
|
|
2019
2027
|
name: "Symbol",
|
|
2020
2028
|
noWrap: !0,
|
|
2021
2029
|
static: !0,
|
|
@@ -2054,7 +2062,7 @@ const Yt = {
|
|
|
2054
2062
|
builderComponents: !0,
|
|
2055
2063
|
builderLinkComponent: !0
|
|
2056
2064
|
}
|
|
2057
|
-
},
|
|
2065
|
+
}, ee = {
|
|
2058
2066
|
"@type": "@builder.io/sdk:Element",
|
|
2059
2067
|
responsiveStyles: {
|
|
2060
2068
|
large: {
|
|
@@ -2076,7 +2084,7 @@ const Yt = {
|
|
|
2076
2084
|
text: "New tab"
|
|
2077
2085
|
}
|
|
2078
2086
|
}
|
|
2079
|
-
},
|
|
2087
|
+
}, te = {
|
|
2080
2088
|
"@type": "@builder.io/sdk:Element",
|
|
2081
2089
|
responsiveStyles: {
|
|
2082
2090
|
large: {
|
|
@@ -2092,7 +2100,7 @@ const Yt = {
|
|
|
2092
2100
|
text: "New tab content "
|
|
2093
2101
|
}
|
|
2094
2102
|
}
|
|
2095
|
-
},
|
|
2103
|
+
}, Xt = {
|
|
2096
2104
|
name: "Builder: Tabs",
|
|
2097
2105
|
inputs: [{
|
|
2098
2106
|
name: "tabs",
|
|
@@ -2102,16 +2110,16 @@ const Yt = {
|
|
|
2102
2110
|
name: "label",
|
|
2103
2111
|
type: "uiBlocks",
|
|
2104
2112
|
hideFromUI: !0,
|
|
2105
|
-
defaultValue: [
|
|
2113
|
+
defaultValue: [ee]
|
|
2106
2114
|
}, {
|
|
2107
2115
|
name: "content",
|
|
2108
2116
|
type: "uiBlocks",
|
|
2109
2117
|
hideFromUI: !0,
|
|
2110
|
-
defaultValue: [
|
|
2118
|
+
defaultValue: [te]
|
|
2111
2119
|
}],
|
|
2112
2120
|
defaultValue: [{
|
|
2113
2121
|
label: [{
|
|
2114
|
-
...
|
|
2122
|
+
...ee,
|
|
2115
2123
|
component: {
|
|
2116
2124
|
name: "Text",
|
|
2117
2125
|
options: {
|
|
@@ -2120,7 +2128,7 @@ const Yt = {
|
|
|
2120
2128
|
}
|
|
2121
2129
|
}],
|
|
2122
2130
|
content: [{
|
|
2123
|
-
...
|
|
2131
|
+
...te,
|
|
2124
2132
|
component: {
|
|
2125
2133
|
name: "Text",
|
|
2126
2134
|
options: {
|
|
@@ -2130,7 +2138,7 @@ const Yt = {
|
|
|
2130
2138
|
}]
|
|
2131
2139
|
}, {
|
|
2132
2140
|
label: [{
|
|
2133
|
-
...
|
|
2141
|
+
...ee,
|
|
2134
2142
|
component: {
|
|
2135
2143
|
name: "Text",
|
|
2136
2144
|
options: {
|
|
@@ -2139,7 +2147,7 @@ const Yt = {
|
|
|
2139
2147
|
}
|
|
2140
2148
|
}],
|
|
2141
2149
|
content: [{
|
|
2142
|
-
...
|
|
2150
|
+
...te,
|
|
2143
2151
|
component: {
|
|
2144
2152
|
name: "Text",
|
|
2145
2153
|
options: {
|
|
@@ -2196,19 +2204,19 @@ const Yt = {
|
|
|
2196
2204
|
builderLinkComponent: !0
|
|
2197
2205
|
}
|
|
2198
2206
|
};
|
|
2199
|
-
function
|
|
2200
|
-
var
|
|
2201
|
-
const [t, n] =
|
|
2207
|
+
function Zt(e) {
|
|
2208
|
+
var r;
|
|
2209
|
+
const [t, n] = R(
|
|
2202
2210
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2203
2211
|
);
|
|
2204
|
-
function i(
|
|
2205
|
-
return e.tabs && e.tabs[
|
|
2212
|
+
function i(a) {
|
|
2213
|
+
return e.tabs && e.tabs[a].content;
|
|
2206
2214
|
}
|
|
2207
|
-
function o(
|
|
2208
|
-
|
|
2215
|
+
function o(a) {
|
|
2216
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2209
2217
|
}
|
|
2210
2218
|
return /* @__PURE__ */ V("div", { children: [
|
|
2211
|
-
/* @__PURE__ */
|
|
2219
|
+
/* @__PURE__ */ s(
|
|
2212
2220
|
"div",
|
|
2213
2221
|
{
|
|
2214
2222
|
className: "builder-tabs-wrap",
|
|
@@ -2218,35 +2226,35 @@ function Xt(e) {
|
|
|
2218
2226
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2219
2227
|
overflow: "auto"
|
|
2220
2228
|
},
|
|
2221
|
-
children: (
|
|
2229
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
2222
2230
|
"span",
|
|
2223
2231
|
{
|
|
2224
|
-
className: `builder-tab-wrap ${t ===
|
|
2232
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2225
2233
|
style: {
|
|
2226
|
-
...t ===
|
|
2234
|
+
...t === l ? e.activeTabStyle : {}
|
|
2227
2235
|
},
|
|
2228
|
-
onClick: (d) => o(
|
|
2229
|
-
children: /* @__PURE__ */
|
|
2236
|
+
onClick: (d) => o(l),
|
|
2237
|
+
children: /* @__PURE__ */ s(
|
|
2230
2238
|
F,
|
|
2231
2239
|
{
|
|
2232
2240
|
parent: e.builderBlock.id,
|
|
2233
|
-
path: `
|
|
2234
|
-
blocks:
|
|
2241
|
+
path: `tabs.${l}.label`,
|
|
2242
|
+
blocks: a.label,
|
|
2235
2243
|
context: e.builderContext,
|
|
2236
2244
|
registeredComponents: e.builderComponents,
|
|
2237
2245
|
linkComponent: e.builderLinkComponent
|
|
2238
2246
|
}
|
|
2239
2247
|
)
|
|
2240
2248
|
},
|
|
2241
|
-
|
|
2249
|
+
l
|
|
2242
2250
|
))
|
|
2243
2251
|
}
|
|
2244
2252
|
),
|
|
2245
|
-
i(t) ? /* @__PURE__ */
|
|
2253
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2246
2254
|
F,
|
|
2247
2255
|
{
|
|
2248
2256
|
parent: e.builderBlock.id,
|
|
2249
|
-
path: `
|
|
2257
|
+
path: `tabs.${t}.content`,
|
|
2250
2258
|
blocks: i(t),
|
|
2251
2259
|
context: e.builderContext,
|
|
2252
2260
|
registeredComponents: e.builderComponents,
|
|
@@ -2255,7 +2263,7 @@ function Xt(e) {
|
|
|
2255
2263
|
) }) : null
|
|
2256
2264
|
] });
|
|
2257
2265
|
}
|
|
2258
|
-
const
|
|
2266
|
+
const en = {
|
|
2259
2267
|
shouldReceiveBuilderProps: {
|
|
2260
2268
|
builderBlock: !1,
|
|
2261
2269
|
builderContext: !0
|
|
@@ -2278,27 +2286,27 @@ const Zt = {
|
|
|
2278
2286
|
textAlign: "center"
|
|
2279
2287
|
}
|
|
2280
2288
|
};
|
|
2281
|
-
function
|
|
2289
|
+
function tn(e) {
|
|
2282
2290
|
function t() {
|
|
2283
|
-
var
|
|
2291
|
+
var l;
|
|
2284
2292
|
const n = e.builderContext, {
|
|
2285
2293
|
context: i,
|
|
2286
2294
|
localState: o,
|
|
2287
|
-
rootState:
|
|
2288
|
-
rootSetState:
|
|
2295
|
+
rootState: r,
|
|
2296
|
+
rootSetState: a
|
|
2289
2297
|
} = n;
|
|
2290
|
-
return String(((
|
|
2298
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2291
2299
|
/{{([^}]+)}}/g,
|
|
2292
2300
|
(d, c) => O({
|
|
2293
2301
|
code: c,
|
|
2294
2302
|
context: i,
|
|
2295
2303
|
localState: o,
|
|
2296
|
-
rootState:
|
|
2297
|
-
rootSetState:
|
|
2304
|
+
rootState: r,
|
|
2305
|
+
rootSetState: a
|
|
2298
2306
|
})
|
|
2299
2307
|
);
|
|
2300
2308
|
}
|
|
2301
|
-
return /* @__PURE__ */
|
|
2309
|
+
return /* @__PURE__ */ s(
|
|
2302
2310
|
"div",
|
|
2303
2311
|
{
|
|
2304
2312
|
className: "builder-text",
|
|
@@ -2309,7 +2317,7 @@ function en(e) {
|
|
|
2309
2317
|
}
|
|
2310
2318
|
);
|
|
2311
2319
|
}
|
|
2312
|
-
const
|
|
2320
|
+
const nn = {
|
|
2313
2321
|
name: "Custom Code",
|
|
2314
2322
|
static: !0,
|
|
2315
2323
|
requiredPermissions: ["editCode"],
|
|
@@ -2332,15 +2340,15 @@ const tn = {
|
|
|
2332
2340
|
advanced: !0
|
|
2333
2341
|
}]
|
|
2334
2342
|
};
|
|
2335
|
-
function
|
|
2336
|
-
const t = $(null), [n, i] =
|
|
2343
|
+
function on(e) {
|
|
2344
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
|
|
2337
2345
|
return B(() => {
|
|
2338
|
-
var
|
|
2339
|
-
if (!((
|
|
2346
|
+
var l;
|
|
2347
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2340
2348
|
return;
|
|
2341
|
-
const
|
|
2342
|
-
for (let d = 0; d <
|
|
2343
|
-
const c =
|
|
2349
|
+
const a = t.current.getElementsByTagName("script");
|
|
2350
|
+
for (let d = 0; d < a.length; d++) {
|
|
2351
|
+
const c = a[d];
|
|
2344
2352
|
if (c.src) {
|
|
2345
2353
|
if (n.includes(c.src))
|
|
2346
2354
|
continue;
|
|
@@ -2361,7 +2369,7 @@ function nn(e) {
|
|
|
2361
2369
|
}
|
|
2362
2370
|
}
|
|
2363
2371
|
}
|
|
2364
|
-
}, []), /* @__PURE__ */
|
|
2372
|
+
}, []), /* @__PURE__ */ s(
|
|
2365
2373
|
"div",
|
|
2366
2374
|
{
|
|
2367
2375
|
ref: t,
|
|
@@ -2370,7 +2378,7 @@ function nn(e) {
|
|
|
2370
2378
|
}
|
|
2371
2379
|
);
|
|
2372
2380
|
}
|
|
2373
|
-
const
|
|
2381
|
+
const an = {
|
|
2374
2382
|
name: "Embed",
|
|
2375
2383
|
static: !0,
|
|
2376
2384
|
inputs: [{
|
|
@@ -2385,9 +2393,9 @@ const on = {
|
|
|
2385
2393
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2386
2394
|
hideFromUI: !0
|
|
2387
2395
|
}]
|
|
2388
|
-
},
|
|
2389
|
-
function
|
|
2390
|
-
const t = $(null), [n, i] =
|
|
2396
|
+
}, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
|
|
2397
|
+
function sn(e) {
|
|
2398
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
|
|
2391
2399
|
function d() {
|
|
2392
2400
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2393
2401
|
return;
|
|
@@ -2398,7 +2406,7 @@ function ln(e) {
|
|
|
2398
2406
|
n.push(g.src);
|
|
2399
2407
|
const m = document.createElement("script");
|
|
2400
2408
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2401
|
-
} else if (
|
|
2409
|
+
} else if (ln(g) && !o.includes(g.innerText))
|
|
2402
2410
|
try {
|
|
2403
2411
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2404
2412
|
} catch (m) {
|
|
@@ -2407,8 +2415,8 @@ function ln(e) {
|
|
|
2407
2415
|
}
|
|
2408
2416
|
}
|
|
2409
2417
|
return B(() => {
|
|
2410
|
-
t.current && !
|
|
2411
|
-
}, [t.current,
|
|
2418
|
+
t.current && !a && (l(!0), d());
|
|
2419
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2412
2420
|
"div",
|
|
2413
2421
|
{
|
|
2414
2422
|
className: "builder-embed",
|
|
@@ -2417,7 +2425,7 @@ function ln(e) {
|
|
|
2417
2425
|
}
|
|
2418
2426
|
);
|
|
2419
2427
|
}
|
|
2420
|
-
const
|
|
2428
|
+
const cn = {
|
|
2421
2429
|
name: "Form:Form",
|
|
2422
2430
|
// editableTags: ['builder-form-error']
|
|
2423
2431
|
defaults: {
|
|
@@ -2654,120 +2662,117 @@ const sn = {
|
|
|
2654
2662
|
builderComponents: !0,
|
|
2655
2663
|
builderLinkComponent: !0
|
|
2656
2664
|
}
|
|
2657
|
-
},
|
|
2665
|
+
}, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
|
|
2658
2666
|
const e = process.env.NODE_ENV || "production";
|
|
2659
|
-
return
|
|
2667
|
+
return dn.includes(e) ? e : "production";
|
|
2660
2668
|
};
|
|
2661
|
-
function
|
|
2669
|
+
function mn(e) {
|
|
2662
2670
|
var g, m;
|
|
2663
|
-
const t = $(null), [n, i] =
|
|
2664
|
-
function d(
|
|
2665
|
-
var
|
|
2671
|
+
const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
|
|
2672
|
+
function d(x) {
|
|
2673
|
+
var S, v;
|
|
2666
2674
|
const f = {
|
|
2667
2675
|
...e.builderContext.rootState,
|
|
2668
|
-
...
|
|
2676
|
+
...x
|
|
2669
2677
|
};
|
|
2670
|
-
e.builderContext.rootSetState ? (
|
|
2678
|
+
e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
|
|
2671
2679
|
}
|
|
2672
2680
|
function c() {
|
|
2673
2681
|
return W() && e.previewState || n;
|
|
2674
2682
|
}
|
|
2675
|
-
function h(
|
|
2676
|
-
var
|
|
2683
|
+
function h(x) {
|
|
2684
|
+
var S;
|
|
2677
2685
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2678
2686
|
if (e.sendSubmissionsTo === "zapier")
|
|
2679
|
-
|
|
2687
|
+
x.preventDefault();
|
|
2680
2688
|
else if (f) {
|
|
2681
2689
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2682
|
-
|
|
2690
|
+
x.preventDefault();
|
|
2683
2691
|
return;
|
|
2684
2692
|
}
|
|
2685
|
-
|
|
2686
|
-
const
|
|
2693
|
+
x.preventDefault();
|
|
2694
|
+
const v = x.currentTarget || x.target, p = e.customHeaders || {};
|
|
2687
2695
|
let b;
|
|
2688
|
-
const
|
|
2689
|
-
let
|
|
2690
|
-
const
|
|
2696
|
+
const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2697
|
+
let C;
|
|
2698
|
+
const N = u.name;
|
|
2691
2699
|
if (u instanceof HTMLInputElement)
|
|
2692
2700
|
if (u.type === "radio") {
|
|
2693
2701
|
if (u.checked)
|
|
2694
|
-
return
|
|
2695
|
-
key:
|
|
2696
|
-
value:
|
|
2702
|
+
return C = u.name, {
|
|
2703
|
+
key: N,
|
|
2704
|
+
value: C
|
|
2697
2705
|
};
|
|
2698
2706
|
} else if (u.type === "checkbox")
|
|
2699
|
-
|
|
2707
|
+
C = u.checked;
|
|
2700
2708
|
else if (u.type === "number" || u.type === "range") {
|
|
2701
|
-
const
|
|
2702
|
-
isNaN(
|
|
2709
|
+
const E = u.valueAsNumber;
|
|
2710
|
+
isNaN(E) || (C = E);
|
|
2703
2711
|
} else
|
|
2704
|
-
u.type === "file" ?
|
|
2712
|
+
u.type === "file" ? C = u.files : C = u.value;
|
|
2705
2713
|
else
|
|
2706
|
-
|
|
2714
|
+
C = u.value;
|
|
2707
2715
|
return {
|
|
2708
|
-
key:
|
|
2709
|
-
value:
|
|
2716
|
+
key: N,
|
|
2717
|
+
value: C
|
|
2710
2718
|
};
|
|
2711
2719
|
});
|
|
2712
|
-
let
|
|
2713
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2714
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2715
|
-
}),
|
|
2716
|
-
b =
|
|
2720
|
+
let k = e.contentType;
|
|
2721
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2722
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2723
|
+
}), k !== "application/json")
|
|
2724
|
+
b = y;
|
|
2717
2725
|
else {
|
|
2718
2726
|
const u = {};
|
|
2719
|
-
Array.from(A).forEach(({ value:
|
|
2720
|
-
|
|
2727
|
+
Array.from(A).forEach(({ value: C, key: N }) => {
|
|
2728
|
+
Pe(u, N, C);
|
|
2721
2729
|
}), b = JSON.stringify(u);
|
|
2722
2730
|
}
|
|
2723
|
-
|
|
2724
|
-
const
|
|
2725
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2731
|
+
k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
|
|
2732
|
+
const w = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2733
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2726
2734
|
return;
|
|
2727
2735
|
i("sending");
|
|
2728
|
-
const P = `${
|
|
2736
|
+
const P = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2729
2737
|
e.sendSubmissionsToEmail || ""
|
|
2730
|
-
)}&name=${encodeURIComponent(e.name || "")}
|
|
2731
|
-
fetch(
|
|
2732
|
-
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2733
|
-
{ body: b, headers: p, method: e.method || "post" }
|
|
2734
|
-
).then(
|
|
2738
|
+
)}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
|
|
2739
|
+
ke(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
|
|
2735
2740
|
async (u) => {
|
|
2736
|
-
let
|
|
2737
|
-
const
|
|
2738
|
-
if (
|
|
2739
|
-
let
|
|
2740
|
-
|
|
2741
|
+
let C;
|
|
2742
|
+
const N = u.headers.get("content-type");
|
|
2743
|
+
if (N && N.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2744
|
+
let E = Ee(C, e.errorMessagePath);
|
|
2745
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
2741
2746
|
}
|
|
2742
|
-
if (
|
|
2743
|
-
const
|
|
2744
|
-
detail: { res: u, body:
|
|
2747
|
+
if (r(C), i(u.ok ? "success" : "error"), u.ok) {
|
|
2748
|
+
const E = new CustomEvent("submit:success", {
|
|
2749
|
+
detail: { res: u, body: C }
|
|
2745
2750
|
});
|
|
2746
2751
|
if (t.current) {
|
|
2747
|
-
if (t.current.dispatchEvent(
|
|
2752
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
2748
2753
|
return;
|
|
2749
2754
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2750
2755
|
}
|
|
2751
2756
|
if (e.successUrl)
|
|
2752
2757
|
if (t.current) {
|
|
2753
|
-
const
|
|
2758
|
+
const M = new CustomEvent("route", {
|
|
2754
2759
|
detail: { url: e.successUrl }
|
|
2755
2760
|
});
|
|
2756
|
-
t.current.dispatchEvent(
|
|
2761
|
+
t.current.dispatchEvent(M), M.defaultPrevented || (location.href = e.successUrl);
|
|
2757
2762
|
} else
|
|
2758
2763
|
location.href = e.successUrl;
|
|
2759
2764
|
}
|
|
2760
2765
|
},
|
|
2761
2766
|
(u) => {
|
|
2762
|
-
const
|
|
2767
|
+
const C = new CustomEvent("submit:error", {
|
|
2763
2768
|
detail: { error: u }
|
|
2764
2769
|
});
|
|
2765
|
-
t.current && (t.current.dispatchEvent(
|
|
2770
|
+
t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
|
|
2766
2771
|
}
|
|
2767
2772
|
);
|
|
2768
2773
|
}
|
|
2769
2774
|
}
|
|
2770
|
-
return /* @__PURE__ */ V(
|
|
2775
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
2771
2776
|
" ",
|
|
2772
2777
|
/* @__PURE__ */ V(
|
|
2773
2778
|
"form",
|
|
@@ -2777,20 +2782,20 @@ function un(e) {
|
|
|
2777
2782
|
action: !e.sendWithJs && e.action,
|
|
2778
2783
|
method: e.method,
|
|
2779
2784
|
name: e.name,
|
|
2780
|
-
onSubmit: (
|
|
2785
|
+
onSubmit: (x) => h(x),
|
|
2781
2786
|
...e.attributes,
|
|
2782
2787
|
children: [
|
|
2783
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2788
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
|
|
2784
2789
|
j,
|
|
2785
2790
|
{
|
|
2786
|
-
block:
|
|
2791
|
+
block: x,
|
|
2787
2792
|
context: e.builderContext,
|
|
2788
2793
|
registeredComponents: e.builderComponents,
|
|
2789
2794
|
linkComponent: e.builderLinkComponent
|
|
2790
2795
|
},
|
|
2791
2796
|
`form-block-${f}`
|
|
2792
2797
|
)) }) : null,
|
|
2793
|
-
c() === "error" ? /* @__PURE__ */
|
|
2798
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2794
2799
|
F,
|
|
2795
2800
|
{
|
|
2796
2801
|
path: "errorMessage",
|
|
@@ -2798,7 +2803,7 @@ function un(e) {
|
|
|
2798
2803
|
context: e.builderContext
|
|
2799
2804
|
}
|
|
2800
2805
|
) : null,
|
|
2801
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2806
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2802
2807
|
F,
|
|
2803
2808
|
{
|
|
2804
2809
|
path: "sendingMessage",
|
|
@@ -2806,8 +2811,8 @@ function un(e) {
|
|
|
2806
2811
|
context: e.builderContext
|
|
2807
2812
|
}
|
|
2808
2813
|
) : null,
|
|
2809
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2810
|
-
c() === "success" ? /* @__PURE__ */
|
|
2814
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
|
|
2815
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2811
2816
|
F,
|
|
2812
2817
|
{
|
|
2813
2818
|
path: "successMessage",
|
|
@@ -2819,11 +2824,11 @@ function un(e) {
|
|
|
2819
2824
|
}
|
|
2820
2825
|
),
|
|
2821
2826
|
" ",
|
|
2822
|
-
/* @__PURE__ */
|
|
2827
|
+
/* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2823
2828
|
" "
|
|
2824
2829
|
] });
|
|
2825
2830
|
}
|
|
2826
|
-
const
|
|
2831
|
+
const fn = {
|
|
2827
2832
|
name: "Form:Input",
|
|
2828
2833
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2829
2834
|
inputs: [
|
|
@@ -2875,8 +2880,8 @@ const mn = {
|
|
|
2875
2880
|
borderColor: "#ccc"
|
|
2876
2881
|
}
|
|
2877
2882
|
};
|
|
2878
|
-
function
|
|
2879
|
-
return /* @__PURE__ */
|
|
2883
|
+
function hn(e) {
|
|
2884
|
+
return /* @__PURE__ */ Ie(
|
|
2880
2885
|
"input",
|
|
2881
2886
|
{
|
|
2882
2887
|
...e.attributes,
|
|
@@ -2890,7 +2895,7 @@ function fn(e) {
|
|
|
2890
2895
|
}
|
|
2891
2896
|
);
|
|
2892
2897
|
}
|
|
2893
|
-
const
|
|
2898
|
+
const gn = {
|
|
2894
2899
|
name: "Form:Select",
|
|
2895
2900
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2896
2901
|
defaultStyles: {
|
|
@@ -2933,9 +2938,9 @@ const hn = {
|
|
|
2933
2938
|
static: !0,
|
|
2934
2939
|
noWrap: !0
|
|
2935
2940
|
};
|
|
2936
|
-
function
|
|
2941
|
+
function bn(e) {
|
|
2937
2942
|
var t;
|
|
2938
|
-
return /* @__PURE__ */
|
|
2943
|
+
return /* @__PURE__ */ Ie(
|
|
2939
2944
|
"select",
|
|
2940
2945
|
{
|
|
2941
2946
|
...e.attributes,
|
|
@@ -2945,10 +2950,10 @@ function gn(e) {
|
|
|
2945
2950
|
name: e.name,
|
|
2946
2951
|
required: e.required
|
|
2947
2952
|
},
|
|
2948
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2953
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2949
2954
|
);
|
|
2950
2955
|
}
|
|
2951
|
-
const
|
|
2956
|
+
const pn = {
|
|
2952
2957
|
name: "Form:SubmitButton",
|
|
2953
2958
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2954
2959
|
defaultStyles: {
|
|
@@ -2974,10 +2979,10 @@ const bn = {
|
|
|
2974
2979
|
// TODO: defaultChildren
|
|
2975
2980
|
// canHaveChildren: true,
|
|
2976
2981
|
};
|
|
2977
|
-
function
|
|
2978
|
-
return /* @__PURE__ */
|
|
2982
|
+
function yn(e) {
|
|
2983
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2979
2984
|
}
|
|
2980
|
-
const
|
|
2985
|
+
const xn = {
|
|
2981
2986
|
name: "Form:TextArea",
|
|
2982
2987
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2983
2988
|
inputs: [{
|
|
@@ -3014,8 +3019,8 @@ const yn = {
|
|
|
3014
3019
|
static: !0,
|
|
3015
3020
|
noWrap: !0
|
|
3016
3021
|
};
|
|
3017
|
-
function
|
|
3018
|
-
return /* @__PURE__ */
|
|
3022
|
+
function vn(e) {
|
|
3023
|
+
return /* @__PURE__ */ s(
|
|
3019
3024
|
"textarea",
|
|
3020
3025
|
{
|
|
3021
3026
|
...e.attributes,
|
|
@@ -3027,7 +3032,7 @@ function xn(e) {
|
|
|
3027
3032
|
}
|
|
3028
3033
|
);
|
|
3029
3034
|
}
|
|
3030
|
-
const
|
|
3035
|
+
const Sn = {
|
|
3031
3036
|
// friendlyName?
|
|
3032
3037
|
name: "Raw:Img",
|
|
3033
3038
|
hideFromInsertMenu: !0,
|
|
@@ -3042,8 +3047,8 @@ const vn = {
|
|
|
3042
3047
|
noWrap: !0,
|
|
3043
3048
|
static: !0
|
|
3044
3049
|
};
|
|
3045
|
-
function
|
|
3046
|
-
return /* @__PURE__ */
|
|
3050
|
+
function kn(e) {
|
|
3051
|
+
return /* @__PURE__ */ s(
|
|
3047
3052
|
"img",
|
|
3048
3053
|
{
|
|
3049
3054
|
style: {
|
|
@@ -3057,7 +3062,7 @@ function Sn(e) {
|
|
|
3057
3062
|
W() && e.imgSrc || "default-key"
|
|
3058
3063
|
);
|
|
3059
3064
|
}
|
|
3060
|
-
const
|
|
3065
|
+
const Cn = {
|
|
3061
3066
|
name: "Video",
|
|
3062
3067
|
canHaveChildren: !0,
|
|
3063
3068
|
defaultStyles: {
|
|
@@ -3142,8 +3147,8 @@ const kn = {
|
|
|
3142
3147
|
builderBlock: !0
|
|
3143
3148
|
}
|
|
3144
3149
|
};
|
|
3145
|
-
function
|
|
3146
|
-
var i, o,
|
|
3150
|
+
function Tn(e) {
|
|
3151
|
+
var i, o, r, a, l, d, c;
|
|
3147
3152
|
function t() {
|
|
3148
3153
|
return {
|
|
3149
3154
|
...e.autoPlay === !0 ? {
|
|
@@ -3175,7 +3180,7 @@ function Cn(e) {
|
|
|
3175
3180
|
position: "relative"
|
|
3176
3181
|
},
|
|
3177
3182
|
children: [
|
|
3178
|
-
/* @__PURE__ */
|
|
3183
|
+
/* @__PURE__ */ s(
|
|
3179
3184
|
"video",
|
|
3180
3185
|
{
|
|
3181
3186
|
className: "builder-video",
|
|
@@ -3197,10 +3202,10 @@ function Cn(e) {
|
|
|
3197
3202
|
},
|
|
3198
3203
|
src: e.video || "no-src",
|
|
3199
3204
|
poster: e.posterImage,
|
|
3200
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3205
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3201
3206
|
}
|
|
3202
3207
|
),
|
|
3203
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3208
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3204
3209
|
"div",
|
|
3205
3210
|
{
|
|
3206
3211
|
style: {
|
|
@@ -3211,7 +3216,7 @@ function Cn(e) {
|
|
|
3211
3216
|
}
|
|
3212
3217
|
}
|
|
3213
3218
|
) : null,
|
|
3214
|
-
(
|
|
3219
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3215
3220
|
"div",
|
|
3216
3221
|
{
|
|
3217
3222
|
style: {
|
|
@@ -3222,7 +3227,7 @@ function Cn(e) {
|
|
|
3222
3227
|
children: e.children
|
|
3223
3228
|
}
|
|
3224
3229
|
) : null,
|
|
3225
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3230
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3226
3231
|
"div",
|
|
3227
3232
|
{
|
|
3228
3233
|
style: {
|
|
@@ -3243,64 +3248,64 @@ function Cn(e) {
|
|
|
3243
3248
|
}
|
|
3244
3249
|
);
|
|
3245
3250
|
}
|
|
3246
|
-
const
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3249
|
-
}, {
|
|
3250
|
-
component: ln,
|
|
3251
|
-
...on
|
|
3251
|
+
const In = () => [{
|
|
3252
|
+
component: on,
|
|
3253
|
+
...nn
|
|
3252
3254
|
}, {
|
|
3253
|
-
component:
|
|
3254
|
-
...
|
|
3255
|
+
component: sn,
|
|
3256
|
+
...an
|
|
3255
3257
|
}, {
|
|
3256
|
-
component:
|
|
3257
|
-
...
|
|
3258
|
+
component: mn,
|
|
3259
|
+
...cn
|
|
3258
3260
|
}, {
|
|
3259
|
-
component:
|
|
3260
|
-
...
|
|
3261
|
+
component: hn,
|
|
3262
|
+
...fn
|
|
3261
3263
|
}, {
|
|
3262
|
-
component:
|
|
3263
|
-
...
|
|
3264
|
+
component: yn,
|
|
3265
|
+
...pn
|
|
3264
3266
|
}, {
|
|
3265
|
-
component:
|
|
3266
|
-
...
|
|
3267
|
+
component: bn,
|
|
3268
|
+
...gn
|
|
3267
3269
|
}, {
|
|
3268
|
-
component:
|
|
3269
|
-
...
|
|
3270
|
+
component: vn,
|
|
3271
|
+
...xn
|
|
3270
3272
|
}, {
|
|
3271
|
-
component:
|
|
3272
|
-
...
|
|
3273
|
-
}], be = () => [{
|
|
3274
|
-
component: Je,
|
|
3275
|
-
...Mt
|
|
3273
|
+
component: kn,
|
|
3274
|
+
...Sn
|
|
3276
3275
|
}, {
|
|
3277
|
-
component:
|
|
3276
|
+
component: Tn,
|
|
3277
|
+
...Cn
|
|
3278
|
+
}], pe = () => [{
|
|
3279
|
+
component: Ge,
|
|
3278
3280
|
..._t
|
|
3279
3281
|
}, {
|
|
3280
3282
|
component: $t,
|
|
3281
3283
|
...qt
|
|
3282
3284
|
}, {
|
|
3283
|
-
component:
|
|
3285
|
+
component: Dt,
|
|
3284
3286
|
...Kt
|
|
3285
3287
|
}, {
|
|
3286
3288
|
component: Ut,
|
|
3287
3289
|
...zt
|
|
3288
3290
|
}, {
|
|
3289
|
-
component:
|
|
3291
|
+
component: Ht,
|
|
3290
3292
|
...Jt
|
|
3291
3293
|
}, {
|
|
3292
|
-
component:
|
|
3293
|
-
...
|
|
3294
|
+
component: Yt,
|
|
3295
|
+
...Gt
|
|
3294
3296
|
}, {
|
|
3295
|
-
component:
|
|
3296
|
-
...Zt
|
|
3297
|
-
}, {
|
|
3298
|
-
component: Xt,
|
|
3297
|
+
component: Jn,
|
|
3299
3298
|
...Qt
|
|
3300
3299
|
}, {
|
|
3301
|
-
component:
|
|
3302
|
-
...
|
|
3303
|
-
},
|
|
3300
|
+
component: tn,
|
|
3301
|
+
...en
|
|
3302
|
+
}, {
|
|
3303
|
+
component: Zt,
|
|
3304
|
+
...Xt
|
|
3305
|
+
}, {
|
|
3306
|
+
component: Mt,
|
|
3307
|
+
...jt
|
|
3308
|
+
}, ...In()], wn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3304
3309
|
function getAndSetVariantId() {
|
|
3305
3310
|
function setCookie(name, value, days) {
|
|
3306
3311
|
let expires = '';
|
|
@@ -3356,7 +3361,7 @@ const Tn = () => [{
|
|
|
3356
3361
|
}).join('');
|
|
3357
3362
|
styleEl.innerHTML = newStyleStr;
|
|
3358
3363
|
}
|
|
3359
|
-
}`,
|
|
3364
|
+
}`, En = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3360
3365
|
if (!navigator.cookieEnabled) {
|
|
3361
3366
|
return;
|
|
3362
3367
|
}
|
|
@@ -3390,27 +3395,27 @@ const Tn = () => [{
|
|
|
3390
3395
|
thisScriptEl?.remove();
|
|
3391
3396
|
}
|
|
3392
3397
|
return;
|
|
3393
|
-
}`,
|
|
3398
|
+
}`, Le = "builderIoAbTest", Oe = "builderIoRenderContent", q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3394
3399
|
...t,
|
|
3395
3400
|
testVariationId: t.id,
|
|
3396
3401
|
id: e == null ? void 0 : e.id
|
|
3397
|
-
})),
|
|
3402
|
+
})), Rn = ({
|
|
3398
3403
|
canTrack: e,
|
|
3399
3404
|
content: t
|
|
3400
|
-
}) => !(!(
|
|
3401
|
-
window.${
|
|
3402
|
-
window.${
|
|
3403
|
-
`,
|
|
3404
|
-
window.${
|
|
3405
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3406
|
-
)`,
|
|
3405
|
+
}) => !(!(q(t).length > 0) || !e || L()), Pn = (e) => e === "react" || e === "reactNative", Ue = Pn(D), Bn = () => `
|
|
3406
|
+
window.${Le} = ${wn}
|
|
3407
|
+
window.${Oe} = ${En}
|
|
3408
|
+
`, Vn = (e, t) => `
|
|
3409
|
+
window.${Le}(
|
|
3410
|
+
"${t}",${JSON.stringify(e)}, ${Ue}
|
|
3411
|
+
)`, An = ({
|
|
3407
3412
|
contentId: e,
|
|
3408
3413
|
variationId: t
|
|
3409
|
-
}) => `window.${
|
|
3410
|
-
"${t}", "${e}", ${
|
|
3414
|
+
}) => `window.${Oe}(
|
|
3415
|
+
"${t}", "${e}", ${Ue}
|
|
3411
3416
|
)`;
|
|
3412
|
-
function
|
|
3413
|
-
return /* @__PURE__ */
|
|
3417
|
+
function ie(e) {
|
|
3418
|
+
return /* @__PURE__ */ s(
|
|
3414
3419
|
"script",
|
|
3415
3420
|
{
|
|
3416
3421
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3419,10 +3424,10 @@ function ne(e) {
|
|
|
3419
3424
|
}
|
|
3420
3425
|
);
|
|
3421
3426
|
}
|
|
3422
|
-
function
|
|
3427
|
+
function ye(e) {
|
|
3423
3428
|
return Math.round(e * 1e3) / 1e3;
|
|
3424
3429
|
}
|
|
3425
|
-
const
|
|
3430
|
+
const Nn = (e, t, n = !0) => {
|
|
3426
3431
|
if (!(e instanceof HTMLElement))
|
|
3427
3432
|
return null;
|
|
3428
3433
|
let i = n ? e : e.parentElement;
|
|
@@ -3433,37 +3438,37 @@ const An = (e, t, n = !0) => {
|
|
|
3433
3438
|
return i;
|
|
3434
3439
|
} while (i = i.parentElement);
|
|
3435
3440
|
return null;
|
|
3436
|
-
},
|
|
3441
|
+
}, Wn = (e) => Nn(e, (t) => {
|
|
3437
3442
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3438
3443
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3439
|
-
}),
|
|
3444
|
+
}), xe = ({
|
|
3440
3445
|
event: e,
|
|
3441
3446
|
target: t
|
|
3442
3447
|
}) => {
|
|
3443
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3448
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ye(i / n.width), a = ye(o / n.height);
|
|
3444
3449
|
return {
|
|
3445
|
-
x:
|
|
3446
|
-
y:
|
|
3450
|
+
x: r,
|
|
3451
|
+
y: a
|
|
3447
3452
|
};
|
|
3448
|
-
},
|
|
3449
|
-
const t = e.target, n = t &&
|
|
3453
|
+
}, Fn = (e) => {
|
|
3454
|
+
const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3450
3455
|
return {
|
|
3451
3456
|
targetBuilderElement: i || void 0,
|
|
3452
3457
|
metadata: {
|
|
3453
|
-
targetOffset: t ?
|
|
3458
|
+
targetOffset: t ? xe({
|
|
3454
3459
|
event: e,
|
|
3455
3460
|
target: t
|
|
3456
3461
|
}) : void 0,
|
|
3457
|
-
builderTargetOffset: n ?
|
|
3462
|
+
builderTargetOffset: n ? xe({
|
|
3458
3463
|
event: e,
|
|
3459
3464
|
target: n
|
|
3460
3465
|
}) : void 0,
|
|
3461
3466
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3462
3467
|
}
|
|
3463
3468
|
};
|
|
3464
|
-
},
|
|
3465
|
-
var
|
|
3466
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3469
|
+
}, $n = (e) => {
|
|
3470
|
+
var r, a;
|
|
3471
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3467
3472
|
let o = "";
|
|
3468
3473
|
if (i && t && n && (o += `
|
|
3469
3474
|
@font-face {
|
|
@@ -3473,29 +3478,29 @@ font-display: fallback;
|
|
|
3473
3478
|
font-weight: 400;
|
|
3474
3479
|
}
|
|
3475
3480
|
`.trim()), e.files)
|
|
3476
|
-
for (const
|
|
3477
|
-
if (!(String(Number(
|
|
3481
|
+
for (const l in e.files) {
|
|
3482
|
+
if (!(String(Number(l)) === l))
|
|
3478
3483
|
continue;
|
|
3479
|
-
const c = e.files[
|
|
3484
|
+
const c = e.files[l];
|
|
3480
3485
|
c && c !== i && (o += `
|
|
3481
3486
|
@font-face {
|
|
3482
3487
|
font-family: "${t}";
|
|
3483
3488
|
src: url('${c}') format('woff2');
|
|
3484
3489
|
font-display: fallback;
|
|
3485
|
-
font-weight: ${
|
|
3490
|
+
font-weight: ${l};
|
|
3486
3491
|
}
|
|
3487
3492
|
`.trim());
|
|
3488
3493
|
}
|
|
3489
3494
|
return o;
|
|
3490
|
-
},
|
|
3495
|
+
}, Dn = ({
|
|
3491
3496
|
customFonts: e
|
|
3492
3497
|
}) => {
|
|
3493
3498
|
var t;
|
|
3494
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3495
|
-
},
|
|
3499
|
+
return ((t = e == null ? void 0 : e.map((n) => $n(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3500
|
+
}, Ln = ({
|
|
3496
3501
|
cssCode: e,
|
|
3497
3502
|
contentId: t
|
|
3498
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3503
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", On = `
|
|
3499
3504
|
.builder-button {
|
|
3500
3505
|
all: unset;
|
|
3501
3506
|
}
|
|
@@ -3512,39 +3517,39 @@ font-weight: ${s};
|
|
|
3512
3517
|
text-align: inherit;
|
|
3513
3518
|
font-family: inherit;
|
|
3514
3519
|
}
|
|
3515
|
-
`,
|
|
3516
|
-
function
|
|
3517
|
-
var b,
|
|
3520
|
+
`, Un = (e) => e ? "" : On, Hn = (e) => `variant-${e}`;
|
|
3521
|
+
function jn(e) {
|
|
3522
|
+
var b, y, A;
|
|
3518
3523
|
const t = $(null);
|
|
3519
|
-
function n(
|
|
3520
|
-
var P,
|
|
3521
|
-
const
|
|
3524
|
+
function n(k) {
|
|
3525
|
+
var P, T;
|
|
3526
|
+
const w = {
|
|
3522
3527
|
...e.builderContextSignal.rootState,
|
|
3523
|
-
...
|
|
3528
|
+
...k
|
|
3524
3529
|
};
|
|
3525
|
-
e.builderContextSignal.rootSetState ? (
|
|
3526
|
-
...
|
|
3527
|
-
rootState:
|
|
3530
|
+
e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
|
|
3531
|
+
...u,
|
|
3532
|
+
rootState: w
|
|
3528
3533
|
}));
|
|
3529
3534
|
}
|
|
3530
|
-
function i(
|
|
3531
|
-
var P,
|
|
3532
|
-
const
|
|
3535
|
+
function i(k) {
|
|
3536
|
+
var P, T, u, C, N;
|
|
3537
|
+
const w = {
|
|
3533
3538
|
...e.builderContextSignal.content,
|
|
3534
|
-
...
|
|
3539
|
+
...k,
|
|
3535
3540
|
data: {
|
|
3536
3541
|
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3537
|
-
...
|
|
3542
|
+
...k == null ? void 0 : k.data
|
|
3538
3543
|
},
|
|
3539
3544
|
meta: {
|
|
3540
|
-
...(
|
|
3541
|
-
...
|
|
3542
|
-
breakpoints: ((
|
|
3545
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
|
|
3546
|
+
...k == null ? void 0 : k.meta,
|
|
3547
|
+
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((N = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : N.breakpoints)
|
|
3543
3548
|
}
|
|
3544
3549
|
};
|
|
3545
|
-
e.setBuilderContextSignal((
|
|
3546
|
-
...
|
|
3547
|
-
content:
|
|
3550
|
+
e.setBuilderContextSignal((E) => ({
|
|
3551
|
+
...E,
|
|
3552
|
+
content: w
|
|
3548
3553
|
}));
|
|
3549
3554
|
}
|
|
3550
3555
|
function o() {
|
|
@@ -3553,62 +3558,62 @@ function Hn(e) {
|
|
|
3553
3558
|
"aria-hidden": !0
|
|
3554
3559
|
};
|
|
3555
3560
|
}
|
|
3556
|
-
const [
|
|
3561
|
+
const [r, a] = R(
|
|
3557
3562
|
() => e.contentWrapper || "div"
|
|
3558
3563
|
);
|
|
3559
|
-
function
|
|
3560
|
-
return
|
|
3564
|
+
function l(k) {
|
|
3565
|
+
return qe({
|
|
3561
3566
|
model: e.model,
|
|
3562
3567
|
trustedHosts: e.trustedHosts,
|
|
3563
3568
|
callbacks: {
|
|
3564
|
-
configureSdk: (
|
|
3565
|
-
var
|
|
3566
|
-
const { breakpoints: P, contentId:
|
|
3567
|
-
!
|
|
3569
|
+
configureSdk: (w) => {
|
|
3570
|
+
var u;
|
|
3571
|
+
const { breakpoints: P, contentId: T } = w;
|
|
3572
|
+
!T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
|
|
3568
3573
|
meta: {
|
|
3569
3574
|
breakpoints: P
|
|
3570
3575
|
}
|
|
3571
3576
|
});
|
|
3572
3577
|
},
|
|
3573
|
-
animation: (
|
|
3574
|
-
|
|
3578
|
+
animation: (w) => {
|
|
3579
|
+
Ae(w);
|
|
3575
3580
|
},
|
|
3576
|
-
contentUpdate: (
|
|
3577
|
-
i(
|
|
3581
|
+
contentUpdate: (w) => {
|
|
3582
|
+
i(w);
|
|
3578
3583
|
}
|
|
3579
3584
|
}
|
|
3580
|
-
})(
|
|
3585
|
+
})(k);
|
|
3581
3586
|
}
|
|
3582
|
-
const [d, c] =
|
|
3583
|
-
function f(
|
|
3584
|
-
var
|
|
3587
|
+
const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
|
|
3588
|
+
function f(k) {
|
|
3589
|
+
var w, P;
|
|
3585
3590
|
if (e.builderContextSignal.content) {
|
|
3586
|
-
const
|
|
3587
|
-
|
|
3591
|
+
const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3592
|
+
se({
|
|
3588
3593
|
apiHost: e.apiHost,
|
|
3589
3594
|
type: "click",
|
|
3590
|
-
canTrack:
|
|
3591
|
-
contentId:
|
|
3595
|
+
canTrack: z(e.canTrack),
|
|
3596
|
+
contentId: u,
|
|
3592
3597
|
apiKey: e.apiKey,
|
|
3593
|
-
variationId:
|
|
3594
|
-
...
|
|
3598
|
+
variationId: T !== u ? T : void 0,
|
|
3599
|
+
...Fn(k),
|
|
3595
3600
|
unique: !m
|
|
3596
3601
|
});
|
|
3597
3602
|
}
|
|
3598
|
-
m ||
|
|
3603
|
+
m || x(!0);
|
|
3599
3604
|
}
|
|
3600
|
-
function
|
|
3601
|
-
var
|
|
3602
|
-
const
|
|
3603
|
-
Object.entries(
|
|
3604
|
-
if (!
|
|
3605
|
+
function S() {
|
|
3606
|
+
var w, P, T;
|
|
3607
|
+
const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
|
|
3608
|
+
Object.entries(k).forEach(([u, C]) => {
|
|
3609
|
+
if (!C || h[u] || d[u] && !W())
|
|
3605
3610
|
return;
|
|
3606
|
-
h[
|
|
3607
|
-
const
|
|
3611
|
+
h[u] = !0;
|
|
3612
|
+
const N = C.replace(
|
|
3608
3613
|
/{{([^}]+)}}/g,
|
|
3609
|
-
(
|
|
3614
|
+
(E, M) => String(
|
|
3610
3615
|
O({
|
|
3611
|
-
code:
|
|
3616
|
+
code: M,
|
|
3612
3617
|
context: e.context || {},
|
|
3613
3618
|
localState: void 0,
|
|
3614
3619
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3616,24 +3621,24 @@ function Hn(e) {
|
|
|
3616
3621
|
})
|
|
3617
3622
|
)
|
|
3618
3623
|
);
|
|
3619
|
-
fetch(
|
|
3624
|
+
ke(N), fetch(N).then((E) => E.json()).then((E) => {
|
|
3620
3625
|
n({
|
|
3621
|
-
[
|
|
3622
|
-
}), d[
|
|
3623
|
-
}).catch((
|
|
3624
|
-
console.error("error fetching dynamic data",
|
|
3626
|
+
[u]: E
|
|
3627
|
+
}), d[u] = !0;
|
|
3628
|
+
}).catch((E) => {
|
|
3629
|
+
console.error("error fetching dynamic data", C, E);
|
|
3625
3630
|
}).finally(() => {
|
|
3626
|
-
h[
|
|
3631
|
+
h[u] = !1;
|
|
3627
3632
|
});
|
|
3628
3633
|
});
|
|
3629
3634
|
}
|
|
3630
|
-
function
|
|
3635
|
+
function v() {
|
|
3631
3636
|
W() && window.dispatchEvent(
|
|
3632
3637
|
new CustomEvent(
|
|
3633
3638
|
"builder:component:stateChange",
|
|
3634
3639
|
{
|
|
3635
3640
|
detail: {
|
|
3636
|
-
state:
|
|
3641
|
+
state: re(e.builderContextSignal.rootState),
|
|
3637
3642
|
ref: {
|
|
3638
3643
|
name: e.model
|
|
3639
3644
|
}
|
|
@@ -3643,10 +3648,10 @@ function Hn(e) {
|
|
|
3643
3648
|
);
|
|
3644
3649
|
}
|
|
3645
3650
|
const p = $(!1);
|
|
3646
|
-
return p.current || (
|
|
3647
|
-
var
|
|
3651
|
+
return p.current || (S(), v(), p.current = !0), B(() => {
|
|
3652
|
+
var k, w;
|
|
3648
3653
|
if (L()) {
|
|
3649
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
3654
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), je(), Me({
|
|
3650
3655
|
...e.locale ? {
|
|
3651
3656
|
locale: e.locale
|
|
3652
3657
|
} : {},
|
|
@@ -3658,41 +3663,41 @@ function Hn(e) {
|
|
|
3658
3663
|
} : {}
|
|
3659
3664
|
}), Object.values(
|
|
3660
3665
|
e.builderContextSignal.componentInfos
|
|
3661
|
-
).forEach((
|
|
3662
|
-
var
|
|
3663
|
-
const
|
|
3664
|
-
(
|
|
3666
|
+
).forEach((T) => {
|
|
3667
|
+
var C;
|
|
3668
|
+
const u = _e(T);
|
|
3669
|
+
(C = window.parent) == null || C.postMessage(u, "*");
|
|
3665
3670
|
}), window.addEventListener(
|
|
3666
3671
|
"builder:component:stateChangeListenerActivated",
|
|
3667
|
-
|
|
3668
|
-
)), e.builderContextSignal.content &&
|
|
3669
|
-
const
|
|
3670
|
-
|
|
3672
|
+
v
|
|
3673
|
+
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3674
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
|
|
3675
|
+
se({
|
|
3671
3676
|
apiHost: e.apiHost,
|
|
3672
3677
|
type: "impression",
|
|
3673
3678
|
canTrack: !0,
|
|
3674
|
-
contentId:
|
|
3675
|
-
apiKey:
|
|
3676
|
-
variationId:
|
|
3679
|
+
contentId: u,
|
|
3680
|
+
apiKey: C,
|
|
3681
|
+
variationId: T !== u ? T : void 0
|
|
3677
3682
|
});
|
|
3678
3683
|
}
|
|
3679
|
-
if (
|
|
3680
|
-
const
|
|
3681
|
-
`builder.overrides.${
|
|
3682
|
-
),
|
|
3683
|
-
|
|
3684
|
+
if (Se() && !W()) {
|
|
3685
|
+
const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
|
|
3686
|
+
`builder.overrides.${u}`
|
|
3687
|
+
), N = T.get("apiKey") || T.get("builder.space");
|
|
3688
|
+
u === e.model && N === e.apiKey && (!e.content || C === e.content.id) && Ce({
|
|
3684
3689
|
model: e.model,
|
|
3685
3690
|
apiKey: e.apiKey,
|
|
3686
3691
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3687
|
-
}).then((
|
|
3688
|
-
|
|
3692
|
+
}).then((E) => {
|
|
3693
|
+
E && i(E);
|
|
3689
3694
|
});
|
|
3690
3695
|
}
|
|
3691
3696
|
}
|
|
3692
3697
|
}, []), B(() => {
|
|
3693
3698
|
e.content && i(e.content);
|
|
3694
3699
|
}, [e.content]), B(() => {
|
|
3695
|
-
|
|
3700
|
+
v();
|
|
3696
3701
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3697
3702
|
e.data && n(e.data);
|
|
3698
3703
|
}, [e.data]), B(() => {
|
|
@@ -3700,19 +3705,19 @@ function Hn(e) {
|
|
|
3700
3705
|
locale: e.locale
|
|
3701
3706
|
});
|
|
3702
3707
|
}, [e.locale]), B(() => () => {
|
|
3703
|
-
L() && (window.removeEventListener("message",
|
|
3708
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3704
3709
|
"builder:component:stateChangeListenerActivated",
|
|
3705
|
-
|
|
3710
|
+
v
|
|
3706
3711
|
));
|
|
3707
|
-
}, []), /* @__PURE__ */
|
|
3708
|
-
|
|
3712
|
+
}, []), /* @__PURE__ */ s(ae.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3713
|
+
r,
|
|
3709
3714
|
{
|
|
3710
3715
|
ref: t,
|
|
3711
|
-
onClick: (
|
|
3716
|
+
onClick: (k) => f(k),
|
|
3712
3717
|
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3713
3718
|
"builder-model": e.model,
|
|
3714
|
-
className:
|
|
3715
|
-
((
|
|
3719
|
+
className: Hn(
|
|
3720
|
+
((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3716
3721
|
),
|
|
3717
3722
|
...o(),
|
|
3718
3723
|
...e.contentWrapperProps,
|
|
@@ -3720,21 +3725,21 @@ function Hn(e) {
|
|
|
3720
3725
|
}
|
|
3721
3726
|
) : null });
|
|
3722
3727
|
}
|
|
3723
|
-
function
|
|
3724
|
-
const [t, n] =
|
|
3728
|
+
function Mn(e) {
|
|
3729
|
+
const [t, n] = R(
|
|
3725
3730
|
() => `
|
|
3726
|
-
${
|
|
3731
|
+
${Ln({
|
|
3727
3732
|
cssCode: e.cssCode,
|
|
3728
3733
|
contentId: e.contentId
|
|
3729
3734
|
})}
|
|
3730
|
-
${
|
|
3735
|
+
${Dn({
|
|
3731
3736
|
customFonts: e.customFonts
|
|
3732
3737
|
})}
|
|
3733
|
-
${
|
|
3738
|
+
${Un(e.isNestedRender)}
|
|
3734
3739
|
`.trim()
|
|
3735
3740
|
);
|
|
3736
|
-
return /* @__PURE__ */
|
|
3737
|
-
|
|
3741
|
+
return /* @__PURE__ */ s(
|
|
3742
|
+
Y,
|
|
3738
3743
|
{
|
|
3739
3744
|
id: "builderio-content",
|
|
3740
3745
|
styles: t,
|
|
@@ -3742,14 +3747,14 @@ ${On(e.isNestedRender)}
|
|
|
3742
3747
|
}
|
|
3743
3748
|
);
|
|
3744
3749
|
}
|
|
3745
|
-
const
|
|
3750
|
+
const _n = ({
|
|
3746
3751
|
content: e,
|
|
3747
3752
|
data: t,
|
|
3748
3753
|
locale: n
|
|
3749
3754
|
}) => {
|
|
3750
|
-
var
|
|
3751
|
-
const i = {}, o = ((
|
|
3752
|
-
return (
|
|
3755
|
+
var r, a, l;
|
|
3756
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3757
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
3753
3758
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3754
3759
|
}), {
|
|
3755
3760
|
...i,
|
|
@@ -3759,7 +3764,7 @@ const Mn = ({
|
|
|
3759
3764
|
locale: n
|
|
3760
3765
|
} : {}
|
|
3761
3766
|
};
|
|
3762
|
-
},
|
|
3767
|
+
}, qn = ({
|
|
3763
3768
|
content: e,
|
|
3764
3769
|
data: t
|
|
3765
3770
|
}) => e ? {
|
|
@@ -3770,51 +3775,51 @@ const Mn = ({
|
|
|
3770
3775
|
},
|
|
3771
3776
|
meta: e == null ? void 0 : e.meta
|
|
3772
3777
|
} : void 0;
|
|
3773
|
-
function
|
|
3774
|
-
var c, h, g, m,
|
|
3775
|
-
const [t, n] =
|
|
3778
|
+
function ve(e) {
|
|
3779
|
+
var c, h, g, m, x, f, S, v, p;
|
|
3780
|
+
const [t, n] = R(
|
|
3776
3781
|
() => {
|
|
3777
|
-
var b,
|
|
3778
|
-
return
|
|
3782
|
+
var b, y;
|
|
3783
|
+
return An({
|
|
3779
3784
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3780
3785
|
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3781
3786
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3782
|
-
contentId: (
|
|
3787
|
+
contentId: (y = e.content) == null ? void 0 : y.id
|
|
3783
3788
|
});
|
|
3784
3789
|
}
|
|
3785
3790
|
);
|
|
3786
3791
|
function i(b) {
|
|
3787
|
-
|
|
3788
|
-
...
|
|
3792
|
+
l((y) => ({
|
|
3793
|
+
...y,
|
|
3789
3794
|
rootState: b
|
|
3790
3795
|
}));
|
|
3791
3796
|
}
|
|
3792
|
-
const [o,
|
|
3797
|
+
const [o, r] = R(
|
|
3793
3798
|
() => {
|
|
3794
3799
|
var b;
|
|
3795
3800
|
return [
|
|
3796
|
-
...
|
|
3797
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3801
|
+
...pe(),
|
|
3802
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3798
3803
|
].reduce(
|
|
3799
|
-
(
|
|
3800
|
-
...
|
|
3801
|
-
[
|
|
3804
|
+
(y, { component: A, ...k }) => ({
|
|
3805
|
+
...y,
|
|
3806
|
+
[k.name]: {
|
|
3802
3807
|
component: A,
|
|
3803
|
-
...
|
|
3808
|
+
...ce(k)
|
|
3804
3809
|
}
|
|
3805
3810
|
}),
|
|
3806
3811
|
{}
|
|
3807
3812
|
);
|
|
3808
3813
|
}
|
|
3809
|
-
), [
|
|
3814
|
+
), [a, l] = R(() => {
|
|
3810
3815
|
var b;
|
|
3811
3816
|
return {
|
|
3812
|
-
content:
|
|
3817
|
+
content: qn({
|
|
3813
3818
|
content: e.content,
|
|
3814
3819
|
data: e.data
|
|
3815
3820
|
}),
|
|
3816
3821
|
localState: void 0,
|
|
3817
|
-
rootState:
|
|
3822
|
+
rootState: _n({
|
|
3818
3823
|
content: e.content,
|
|
3819
3824
|
data: e.data,
|
|
3820
3825
|
locale: e.locale
|
|
@@ -3825,12 +3830,12 @@ function xe(e) {
|
|
|
3825
3830
|
apiKey: e.apiKey,
|
|
3826
3831
|
apiVersion: e.apiVersion,
|
|
3827
3832
|
componentInfos: [
|
|
3828
|
-
...
|
|
3829
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3833
|
+
...pe(),
|
|
3834
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3830
3835
|
].reduce(
|
|
3831
|
-
(
|
|
3832
|
-
...
|
|
3833
|
-
[
|
|
3836
|
+
(y, { component: A, ...k }) => ({
|
|
3837
|
+
...y,
|
|
3838
|
+
[k.name]: ce(k)
|
|
3834
3839
|
}),
|
|
3835
3840
|
{}
|
|
3836
3841
|
),
|
|
@@ -3841,29 +3846,29 @@ function xe(e) {
|
|
|
3841
3846
|
};
|
|
3842
3847
|
}), d = $(!1);
|
|
3843
3848
|
if (!d.current) {
|
|
3844
|
-
e.apiKey ||
|
|
3849
|
+
e.apiKey || J.error(
|
|
3845
3850
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3846
3851
|
);
|
|
3847
|
-
const b = (h = (c =
|
|
3852
|
+
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3848
3853
|
b && O({
|
|
3849
3854
|
code: b,
|
|
3850
3855
|
context: e.context || {},
|
|
3851
3856
|
localState: void 0,
|
|
3852
|
-
rootState:
|
|
3853
|
-
rootSetState: (
|
|
3854
|
-
Object.assign(
|
|
3857
|
+
rootState: a.rootState,
|
|
3858
|
+
rootSetState: (y) => {
|
|
3859
|
+
Object.assign(a.rootState, y);
|
|
3855
3860
|
},
|
|
3856
3861
|
isExpression: !1
|
|
3857
3862
|
}), d.current = !0;
|
|
3858
3863
|
}
|
|
3859
|
-
return /* @__PURE__ */
|
|
3860
|
-
|
|
3864
|
+
return /* @__PURE__ */ s(
|
|
3865
|
+
we.Provider,
|
|
3861
3866
|
{
|
|
3862
3867
|
value: {
|
|
3863
3868
|
registeredComponents: o
|
|
3864
3869
|
},
|
|
3865
3870
|
children: /* @__PURE__ */ V(
|
|
3866
|
-
|
|
3871
|
+
jn,
|
|
3867
3872
|
{
|
|
3868
3873
|
apiHost: e.apiHost,
|
|
3869
3874
|
nonce: e.nonce,
|
|
@@ -3876,36 +3881,36 @@ function xe(e) {
|
|
|
3876
3881
|
locale: e.locale,
|
|
3877
3882
|
enrich: e.enrich,
|
|
3878
3883
|
showContent: e.showContent,
|
|
3879
|
-
builderContextSignal:
|
|
3884
|
+
builderContextSignal: a,
|
|
3880
3885
|
contentWrapper: e.contentWrapper,
|
|
3881
3886
|
contentWrapperProps: e.contentWrapperProps,
|
|
3882
3887
|
trustedHosts: e.trustedHosts,
|
|
3883
3888
|
isNestedRender: e.isNestedRender,
|
|
3884
|
-
setBuilderContextSignal:
|
|
3889
|
+
setBuilderContextSignal: l,
|
|
3885
3890
|
children: [
|
|
3886
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3887
|
-
|
|
3891
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3892
|
+
ie,
|
|
3888
3893
|
{
|
|
3889
3894
|
id: "builderio-variant-visibility",
|
|
3890
3895
|
scriptStr: t,
|
|
3891
3896
|
nonce: e.nonce || ""
|
|
3892
3897
|
}
|
|
3893
3898
|
) : null,
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
|
|
3899
|
+
/* @__PURE__ */ s(
|
|
3900
|
+
Mn,
|
|
3896
3901
|
{
|
|
3897
3902
|
nonce: e.nonce || "",
|
|
3898
3903
|
isNestedRender: e.isNestedRender,
|
|
3899
|
-
contentId: (g =
|
|
3900
|
-
cssCode: (
|
|
3901
|
-
customFonts: (
|
|
3904
|
+
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3905
|
+
cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
|
|
3906
|
+
customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
|
|
3902
3907
|
}
|
|
3903
3908
|
),
|
|
3904
|
-
/* @__PURE__ */
|
|
3909
|
+
/* @__PURE__ */ s(
|
|
3905
3910
|
F,
|
|
3906
3911
|
{
|
|
3907
|
-
blocks: (p = (
|
|
3908
|
-
context:
|
|
3912
|
+
blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
|
|
3913
|
+
context: a,
|
|
3909
3914
|
registeredComponents: o,
|
|
3910
3915
|
linkComponent: e.linkComponent
|
|
3911
3916
|
}
|
|
@@ -3916,71 +3921,71 @@ function xe(e) {
|
|
|
3916
3921
|
}
|
|
3917
3922
|
);
|
|
3918
3923
|
}
|
|
3919
|
-
function
|
|
3920
|
-
var
|
|
3921
|
-
const [t, n] =
|
|
3922
|
-
() =>
|
|
3923
|
-
canTrack:
|
|
3924
|
+
function Kn(e) {
|
|
3925
|
+
var a;
|
|
3926
|
+
const [t, n] = R(
|
|
3927
|
+
() => Rn({
|
|
3928
|
+
canTrack: z(e.canTrack),
|
|
3924
3929
|
content: e.content
|
|
3925
3930
|
})
|
|
3926
3931
|
);
|
|
3927
3932
|
function i() {
|
|
3928
|
-
var
|
|
3929
|
-
return
|
|
3930
|
-
|
|
3933
|
+
var l;
|
|
3934
|
+
return Vn(
|
|
3935
|
+
q(e.content).map((d) => ({
|
|
3931
3936
|
id: d.testVariationId,
|
|
3932
3937
|
testRatio: d.testRatio
|
|
3933
3938
|
})),
|
|
3934
|
-
((
|
|
3939
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3935
3940
|
);
|
|
3936
3941
|
}
|
|
3937
3942
|
function o() {
|
|
3938
|
-
return
|
|
3943
|
+
return q(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3939
3944
|
}
|
|
3940
|
-
function
|
|
3941
|
-
var
|
|
3945
|
+
function r() {
|
|
3946
|
+
var l;
|
|
3942
3947
|
return t ? {
|
|
3943
3948
|
...e.content,
|
|
3944
|
-
testVariationId: (
|
|
3945
|
-
} :
|
|
3949
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3950
|
+
} : Ke({
|
|
3946
3951
|
item: e.content,
|
|
3947
|
-
canTrack:
|
|
3952
|
+
canTrack: z(e.canTrack)
|
|
3948
3953
|
});
|
|
3949
3954
|
}
|
|
3950
3955
|
return B(() => {
|
|
3951
|
-
}, []), /* @__PURE__ */ V(
|
|
3952
|
-
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */
|
|
3953
|
-
|
|
3956
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
3957
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3958
|
+
ie,
|
|
3954
3959
|
{
|
|
3955
3960
|
id: "builderio-init-variants-fns",
|
|
3956
|
-
scriptStr:
|
|
3961
|
+
scriptStr: Bn(),
|
|
3957
3962
|
nonce: e.nonce || ""
|
|
3958
3963
|
}
|
|
3959
3964
|
) : null,
|
|
3960
|
-
t ? /* @__PURE__ */ V(
|
|
3961
|
-
/* @__PURE__ */
|
|
3962
|
-
|
|
3965
|
+
t ? /* @__PURE__ */ V(I, { children: [
|
|
3966
|
+
/* @__PURE__ */ s(
|
|
3967
|
+
Y,
|
|
3963
3968
|
{
|
|
3964
3969
|
id: "builderio-variants",
|
|
3965
3970
|
styles: o(),
|
|
3966
3971
|
nonce: e.nonce || ""
|
|
3967
3972
|
}
|
|
3968
3973
|
),
|
|
3969
|
-
/* @__PURE__ */
|
|
3970
|
-
|
|
3974
|
+
/* @__PURE__ */ s(
|
|
3975
|
+
ie,
|
|
3971
3976
|
{
|
|
3972
3977
|
id: "builderio-variants-visibility",
|
|
3973
3978
|
scriptStr: i(),
|
|
3974
3979
|
nonce: e.nonce || ""
|
|
3975
3980
|
}
|
|
3976
3981
|
),
|
|
3977
|
-
(
|
|
3978
|
-
|
|
3982
|
+
(a = q(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3983
|
+
ve,
|
|
3979
3984
|
{
|
|
3980
3985
|
apiHost: e.apiHost,
|
|
3981
3986
|
isNestedRender: e.isNestedRender,
|
|
3982
3987
|
nonce: e.nonce,
|
|
3983
|
-
content:
|
|
3988
|
+
content: l,
|
|
3984
3989
|
showContent: !1,
|
|
3985
3990
|
model: e.model,
|
|
3986
3991
|
data: e.data,
|
|
@@ -3999,16 +4004,16 @@ function qn(e) {
|
|
|
3999
4004
|
contentWrapperProps: e.contentWrapperProps,
|
|
4000
4005
|
trustedHosts: e.trustedHosts
|
|
4001
4006
|
},
|
|
4002
|
-
|
|
4007
|
+
l.testVariationId
|
|
4003
4008
|
))
|
|
4004
4009
|
] }) : null,
|
|
4005
|
-
/* @__PURE__ */
|
|
4006
|
-
|
|
4010
|
+
/* @__PURE__ */ s(
|
|
4011
|
+
ve,
|
|
4007
4012
|
{
|
|
4008
4013
|
apiHost: e.apiHost,
|
|
4009
4014
|
nonce: e.nonce,
|
|
4010
4015
|
isNestedRender: e.isNestedRender,
|
|
4011
|
-
content:
|
|
4016
|
+
content: r(),
|
|
4012
4017
|
showContent: !0,
|
|
4013
4018
|
model: e.model,
|
|
4014
4019
|
data: e.data,
|
|
@@ -4030,13 +4035,13 @@ function qn(e) {
|
|
|
4030
4035
|
)
|
|
4031
4036
|
] });
|
|
4032
4037
|
}
|
|
4033
|
-
const
|
|
4038
|
+
const zn = async ({
|
|
4034
4039
|
builderContextValue: e,
|
|
4035
4040
|
symbol: t
|
|
4036
4041
|
}) => {
|
|
4037
4042
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4038
4043
|
(e != null && e.apiKey))
|
|
4039
|
-
return
|
|
4044
|
+
return Ce({
|
|
4040
4045
|
model: t.model,
|
|
4041
4046
|
apiKey: e.apiKey,
|
|
4042
4047
|
apiVersion: e.apiVersion,
|
|
@@ -4046,11 +4051,11 @@ const Kn = async ({
|
|
|
4046
4051
|
}
|
|
4047
4052
|
}
|
|
4048
4053
|
}).catch((n) => {
|
|
4049
|
-
|
|
4054
|
+
J.error("Could not fetch symbol content: ", n);
|
|
4050
4055
|
});
|
|
4051
4056
|
};
|
|
4052
|
-
function
|
|
4053
|
-
var
|
|
4057
|
+
function Jn(e) {
|
|
4058
|
+
var l, d, c, h;
|
|
4054
4059
|
function t() {
|
|
4055
4060
|
return "div";
|
|
4056
4061
|
}
|
|
@@ -4066,23 +4071,23 @@ function zn(e) {
|
|
|
4066
4071
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4067
4072
|
].filter(Boolean).join(" ");
|
|
4068
4073
|
}
|
|
4069
|
-
const [o,
|
|
4074
|
+
const [o, r] = R(() => {
|
|
4070
4075
|
var g;
|
|
4071
4076
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4072
4077
|
});
|
|
4073
|
-
function
|
|
4074
|
-
o ||
|
|
4078
|
+
function a() {
|
|
4079
|
+
o || zn({
|
|
4075
4080
|
symbol: e.symbol,
|
|
4076
4081
|
builderContextValue: e.builderContext
|
|
4077
4082
|
}).then((g) => {
|
|
4078
|
-
g &&
|
|
4083
|
+
g && r(g);
|
|
4079
4084
|
});
|
|
4080
4085
|
}
|
|
4081
4086
|
return B(() => {
|
|
4082
4087
|
}, []), B(() => {
|
|
4083
|
-
|
|
4084
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4085
|
-
|
|
4088
|
+
a();
|
|
4089
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4090
|
+
Kn,
|
|
4086
4091
|
{
|
|
4087
4092
|
nonce: e.builderContext.nonce,
|
|
4088
4093
|
isNestedRender: !0,
|
|
@@ -4090,7 +4095,7 @@ function zn(e) {
|
|
|
4090
4095
|
apiKey: e.builderContext.apiKey,
|
|
4091
4096
|
context: {
|
|
4092
4097
|
...e.builderContext.context,
|
|
4093
|
-
symbolId: (
|
|
4098
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4094
4099
|
},
|
|
4095
4100
|
customComponents: Object.values(e.builderComponents),
|
|
4096
4101
|
data: {
|
|
@@ -4109,14 +4114,14 @@ function zn(e) {
|
|
|
4109
4114
|
}
|
|
4110
4115
|
export {
|
|
4111
4116
|
F as Blocks,
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4117
|
+
ae as BuilderContext,
|
|
4118
|
+
Ge as Button,
|
|
4119
|
+
$t as Columns,
|
|
4120
|
+
Kn as Content,
|
|
4121
|
+
Dt as Fragment,
|
|
4122
|
+
Ut as Image,
|
|
4123
|
+
Ht as Section,
|
|
4124
|
+
Jn as Symbol,
|
|
4125
|
+
tn as Text,
|
|
4126
|
+
Tn as Video
|
|
4122
4127
|
};
|