@builder.io/sdk-react 2.0.8 → 2.0.12
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 +28 -28
- package/lib/browser/blocks-exports.mjs +991 -966
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/init.cjs +3 -3
- package/lib/browser/init.mjs +3 -3
- package/lib/browser/server-entry-acf08871.cjs +2 -0
- package/lib/{node/server-entry-f6ee5d92.js → browser/server-entry-dc66de59.js} +346 -342
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-ef5e6161.js → accordion-37ff8319.js} +1 -1
- package/lib/edge/{accordion-88007399.cjs → accordion-b3b8c262.cjs} +1 -1
- package/lib/edge/blocks-793430a0.cjs +12 -0
- package/lib/edge/blocks-e0e60319.js +833 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-8d307faf.js → button-15992755.js} +2 -2
- package/lib/edge/{button-228f448d.cjs → button-875ac10b.cjs} +1 -1
- package/lib/edge/{columns-3547be8c.cjs → columns-11ead988.cjs} +1 -1
- package/lib/edge/{columns-77b7011a.js → columns-cfe663b2.js} +4 -4
- package/lib/edge/{content-variants-4f7cad1a.js → content-variants-e780597b.js} +11 -11
- package/lib/edge/{content-variants-f0edf280.cjs → content-variants-f8ef104d.cjs} +4 -4
- package/lib/edge/{evaluate-384a03ed.js → evaluate-6408d64d.js} +87 -87
- package/lib/edge/{evaluate-39c2c786.cjs → evaluate-938a955e.cjs} +6 -6
- package/lib/edge/{form-c6da17f5.cjs → form-75a774bc.cjs} +1 -1
- package/lib/edge/{form-d40e9eca.js → form-7735178f.js} +4 -4
- package/lib/edge/{get-class-prop-name-767dbeb0.js → get-class-prop-name-d005a2bb.js} +1 -1
- package/lib/edge/{get-class-prop-name-4f8743e9.cjs → get-class-prop-name-e596650d.cjs} +1 -1
- package/lib/edge/{img-d650b796.js → img-045bb860.js} +1 -1
- package/lib/edge/{img-c50b3839.cjs → img-dd79e34b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/init.cjs +3 -3
- package/lib/edge/init.mjs +3 -3
- package/lib/edge/{input-aaba7df0.cjs → input-3bd0ac03.cjs} +1 -1
- package/lib/edge/{input-5646dcb2.js → input-adf80016.js} +1 -1
- package/lib/edge/{select-2e7bf7d0.cjs → select-882193d4.cjs} +1 -1
- package/lib/edge/{select-d3905dcd.js → select-90b076db.js} +1 -1
- package/lib/edge/{server-entry-29a170e3.js → server-entry-84c3cdd6.js} +59 -58
- package/lib/edge/server-entry-d5ae6221.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-82c0b340.js → slot-293114eb.js} +4 -4
- package/lib/edge/{slot-695259cf.cjs → slot-42b9b358.cjs} +1 -1
- package/lib/edge/{symbol-5a6a783f.cjs → symbol-3e0799b8.cjs} +1 -1
- package/lib/edge/{symbol-91897bd4.js → symbol-aed9cd2b.js} +2 -2
- package/lib/edge/{tabs-a191e7b1.js → tabs-0cf37bf4.js} +4 -4
- package/lib/edge/{tabs-4c4a6b19.cjs → tabs-f5c4f350.cjs} +1 -1
- package/lib/edge/{text-ca974245.js → text-9e2166c7.js} +2 -2
- package/lib/edge/{text-7a00e2f8.cjs → text-abb84188.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +983 -958
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-a6fb6ac7.cjs → node-runtime-11912803.cjs} +4 -4
- package/lib/node/{node-runtime-d8e6d827.js → node-runtime-49e4c6cb.js} +3 -3
- package/lib/node/server-entry-acf08871.cjs +2 -0
- package/lib/{browser/server-entry-f6ee5d92.js → node/server-entry-dc66de59.js} +346 -342
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/components/block/block.helpers.d.ts +1 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/functions/get-processed-block.d.ts +1 -0
- package/types/functions/register-component.d.ts +1 -1
- package/lib/browser/server-entry-ba3e0524.cjs +0 -2
- package/lib/edge/blocks-90fd2fd8.js +0 -808
- package/lib/edge/blocks-dc478c97.cjs +0 -12
- package/lib/edge/server-entry-b0e7430b.cjs +0 -2
- package/lib/node/server-entry-ba3e0524.cjs +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var qe = Object.defineProperty;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { createContext as
|
|
3
|
+
var _e = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var ne = (e, t, n) => (_e(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as l, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as U, isEditing as $, isBrowser as H, getUserAttributes as ze, checkIsDefined as Q, logger as Z, isPreviewing as we, registerInsertMenu as Je, setupBrowserForEditing as Ye, createRegisterComponentMessage as Ge, getDefaultCanTrack as X, _track as he, fetchOneEntry as Re, createEditorListener as Qe, fetch as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-dc66de59.js";
|
|
7
|
+
import { createContext as Ee, useState as T, useEffect as P, useRef as z, useContext as be, createElement as Be } from "react";
|
|
8
8
|
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
9
9
|
function de(e) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ l(R, { children: tt(e.TagName) ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
11
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
12
|
+
const _ = () => {
|
|
13
|
+
switch (U) {
|
|
14
14
|
case "react":
|
|
15
15
|
case "reactNative":
|
|
16
16
|
case "rsc":
|
|
@@ -27,7 +27,7 @@ function nt(e) {
|
|
|
27
27
|
function t() {
|
|
28
28
|
return {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[_()]: `${e.link ? "" : "builder-button"} ${e.attributes[_()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +37,7 @@ function nt(e) {
|
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ l(
|
|
41
41
|
de,
|
|
42
42
|
{
|
|
43
43
|
attributes: t(),
|
|
@@ -47,7 +47,7 @@ function nt(e) {
|
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
|
-
const ue =
|
|
50
|
+
const ue = Ee({
|
|
51
51
|
content: null,
|
|
52
52
|
context: {},
|
|
53
53
|
localState: void 0,
|
|
@@ -61,7 +61,7 @@ const ue = Re({
|
|
|
61
61
|
BlocksWrapper: "div",
|
|
62
62
|
BlocksWrapperProps: {},
|
|
63
63
|
nonce: ""
|
|
64
|
-
}),
|
|
64
|
+
}), Pe = Ee({ registeredComponents: {} });
|
|
65
65
|
function it(e) {
|
|
66
66
|
var t;
|
|
67
67
|
return {
|
|
@@ -69,7 +69,13 @@ function it(e) {
|
|
|
69
69
|
...e.options
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
function ot(e, ...t) {
|
|
73
|
+
const n = Object.assign({}, e);
|
|
74
|
+
for (const i of t)
|
|
75
|
+
delete n[i];
|
|
76
|
+
return n;
|
|
77
|
+
}
|
|
78
|
+
const at = ({
|
|
73
79
|
builder: e,
|
|
74
80
|
context: t,
|
|
75
81
|
event: n,
|
|
@@ -81,12 +87,12 @@ const ot = ({
|
|
|
81
87
|
builder: e,
|
|
82
88
|
context: t,
|
|
83
89
|
event: n
|
|
84
|
-
}),
|
|
85
|
-
isEditing:
|
|
86
|
-
isBrowser:
|
|
87
|
-
isServer: !
|
|
90
|
+
}), rt = () => ({
|
|
91
|
+
isEditing: $(),
|
|
92
|
+
isBrowser: H(),
|
|
93
|
+
isServer: !H(),
|
|
88
94
|
getUserAttributes: () => ze()
|
|
89
|
-
}),
|
|
95
|
+
}), lt = (e, {
|
|
90
96
|
isExpression: t = !0
|
|
91
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, pe = ({
|
|
92
98
|
code: e,
|
|
@@ -94,22 +100,22 @@ const ot = ({
|
|
|
94
100
|
context: n,
|
|
95
101
|
event: i,
|
|
96
102
|
localState: o,
|
|
97
|
-
rootSetState:
|
|
98
|
-
rootState:
|
|
103
|
+
rootSetState: a,
|
|
104
|
+
rootState: r
|
|
99
105
|
}) => {
|
|
100
|
-
const
|
|
106
|
+
const s = at({
|
|
101
107
|
builder: t,
|
|
102
108
|
context: n,
|
|
103
109
|
event: i,
|
|
104
|
-
state:
|
|
105
|
-
rootState:
|
|
110
|
+
state: Ve({
|
|
111
|
+
rootState: r,
|
|
106
112
|
localState: o,
|
|
107
|
-
rootSetState:
|
|
113
|
+
rootSetState: a
|
|
108
114
|
})
|
|
109
115
|
});
|
|
110
|
-
return new Function(...
|
|
116
|
+
return new Function(...s.map(([d]) => d), e)(...s.map(([, d]) => d));
|
|
111
117
|
};
|
|
112
|
-
function
|
|
118
|
+
function Ve({
|
|
113
119
|
rootState: e,
|
|
114
120
|
localState: t,
|
|
115
121
|
rootSetState: n
|
|
@@ -118,33 +124,33 @@ function Pe({
|
|
|
118
124
|
get: (i, o) => {
|
|
119
125
|
if (t && o in t)
|
|
120
126
|
return t[o];
|
|
121
|
-
const
|
|
122
|
-
return typeof
|
|
123
|
-
rootState:
|
|
127
|
+
const a = i[o];
|
|
128
|
+
return typeof a == "object" && a !== null ? Ve({
|
|
129
|
+
rootState: a,
|
|
124
130
|
localState: void 0,
|
|
125
|
-
rootSetState: n ? (
|
|
126
|
-
i[o] =
|
|
131
|
+
rootSetState: n ? (r) => {
|
|
132
|
+
i[o] = r, n(i);
|
|
127
133
|
} : void 0
|
|
128
|
-
}) :
|
|
134
|
+
}) : a;
|
|
129
135
|
},
|
|
130
|
-
set: (i, o,
|
|
136
|
+
set: (i, o, a) => {
|
|
131
137
|
if (t && o in t)
|
|
132
138
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
133
|
-
return i[o] =
|
|
139
|
+
return i[o] = a, n == null || n(i), !0;
|
|
134
140
|
}
|
|
135
141
|
});
|
|
136
142
|
}
|
|
137
|
-
function
|
|
143
|
+
function st() {
|
|
138
144
|
var e;
|
|
139
|
-
return typeof process != "undefined" &&
|
|
145
|
+
return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
140
146
|
}
|
|
141
|
-
const
|
|
147
|
+
const ct = () => {
|
|
142
148
|
var i;
|
|
143
|
-
if (!
|
|
149
|
+
if (!st())
|
|
144
150
|
return !1;
|
|
145
151
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
|
|
146
152
|
return e && t && !n ? (Z.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;
|
|
147
|
-
},
|
|
153
|
+
}, dt = (e) => (H() || ct(), pe(e)), ut = !0, L = class L {
|
|
148
154
|
static getCacheKey(t) {
|
|
149
155
|
return JSON.stringify({
|
|
150
156
|
...t,
|
|
@@ -162,57 +168,95 @@ const st = () => {
|
|
|
162
168
|
});
|
|
163
169
|
}
|
|
164
170
|
};
|
|
165
|
-
|
|
166
|
-
let
|
|
167
|
-
function
|
|
171
|
+
ne(L, "cacheLimit", 20), ne(L, "cache", /* @__PURE__ */ new Map());
|
|
172
|
+
let j = L;
|
|
173
|
+
function K({
|
|
168
174
|
code: e,
|
|
169
175
|
context: t,
|
|
170
176
|
localState: n,
|
|
171
177
|
rootState: i,
|
|
172
178
|
rootSetState: o,
|
|
173
|
-
event:
|
|
174
|
-
isExpression:
|
|
175
|
-
enableCache:
|
|
179
|
+
event: a,
|
|
180
|
+
isExpression: r = !0,
|
|
181
|
+
enableCache: s
|
|
176
182
|
}) {
|
|
177
183
|
if (e === "")
|
|
178
184
|
return;
|
|
179
|
-
const
|
|
180
|
-
code:
|
|
181
|
-
isExpression:
|
|
185
|
+
const d = {
|
|
186
|
+
code: lt(e, {
|
|
187
|
+
isExpression: r
|
|
182
188
|
}),
|
|
183
|
-
builder:
|
|
189
|
+
builder: rt(),
|
|
184
190
|
context: t,
|
|
185
|
-
event:
|
|
191
|
+
event: a,
|
|
186
192
|
rootSetState: o,
|
|
187
193
|
rootState: i,
|
|
188
194
|
localState: n
|
|
189
195
|
};
|
|
190
|
-
if (
|
|
191
|
-
const
|
|
192
|
-
if (
|
|
193
|
-
return
|
|
196
|
+
if (s && !ut) {
|
|
197
|
+
const c = j.getCacheKey(d), m = j.getCachedValue(c);
|
|
198
|
+
if (m)
|
|
199
|
+
return m.value;
|
|
194
200
|
}
|
|
195
201
|
try {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
}
|
|
201
|
-
return
|
|
202
|
-
} catch (
|
|
203
|
-
Z.error("Failed code evaluation: " +
|
|
202
|
+
const c = dt(d);
|
|
203
|
+
if (s) {
|
|
204
|
+
const m = j.getCacheKey(d);
|
|
205
|
+
j.setCachedValue(m, c);
|
|
206
|
+
}
|
|
207
|
+
return c;
|
|
208
|
+
} catch (c) {
|
|
209
|
+
Z.error("Failed code evaluation: " + c.message, {
|
|
204
210
|
code: e
|
|
205
211
|
});
|
|
206
212
|
return;
|
|
207
213
|
}
|
|
208
214
|
}
|
|
209
|
-
const me = (e) => JSON.parse(JSON.stringify(e)),
|
|
215
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Ae = (e, t, n) => {
|
|
210
216
|
if (Object(e) !== e)
|
|
211
217
|
return e;
|
|
212
218
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
213
|
-
return i.slice(0, -1).reduce((o,
|
|
219
|
+
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
214
220
|
};
|
|
215
|
-
|
|
221
|
+
function se(e) {
|
|
222
|
+
if (e === null || typeof e != "object")
|
|
223
|
+
return e;
|
|
224
|
+
if (Array.isArray(e))
|
|
225
|
+
return e.map((n) => se(n));
|
|
226
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
227
|
+
return e;
|
|
228
|
+
const t = {};
|
|
229
|
+
for (const n in e)
|
|
230
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
|
|
231
|
+
return t;
|
|
232
|
+
}
|
|
233
|
+
const mt = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), ft = (e) => {
|
|
234
|
+
if (mt) {
|
|
235
|
+
const t = me(e);
|
|
236
|
+
return {
|
|
237
|
+
...t,
|
|
238
|
+
properties: {
|
|
239
|
+
...t.properties
|
|
240
|
+
},
|
|
241
|
+
actions: {
|
|
242
|
+
...t.actions
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
} else {
|
|
246
|
+
const t = se(ot(e, "children", "meta"));
|
|
247
|
+
return {
|
|
248
|
+
...t,
|
|
249
|
+
properties: {
|
|
250
|
+
...t.properties
|
|
251
|
+
},
|
|
252
|
+
actions: {
|
|
253
|
+
...t.actions
|
|
254
|
+
},
|
|
255
|
+
children: e.children,
|
|
256
|
+
meta: e.meta
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
}, ht = ({
|
|
216
260
|
block: e,
|
|
217
261
|
context: t,
|
|
218
262
|
localState: n,
|
|
@@ -221,175 +265,167 @@ const dt = ({
|
|
|
221
265
|
}) => {
|
|
222
266
|
if (!e.bindings)
|
|
223
267
|
return e;
|
|
224
|
-
const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
actions: {
|
|
230
|
-
...r.actions
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
for (const l in e.bindings) {
|
|
234
|
-
const c = e.bindings[l], d = H({
|
|
235
|
-
code: c,
|
|
268
|
+
const a = ft(e);
|
|
269
|
+
for (const r in e.bindings) {
|
|
270
|
+
const s = e.bindings[r], d = K({
|
|
271
|
+
code: s,
|
|
236
272
|
localState: n,
|
|
237
273
|
rootState: i,
|
|
238
274
|
rootSetState: o,
|
|
239
275
|
context: t,
|
|
240
276
|
enableCache: !0
|
|
241
277
|
});
|
|
242
|
-
|
|
278
|
+
Ae(a, r, d);
|
|
243
279
|
}
|
|
244
280
|
return a;
|
|
245
281
|
};
|
|
246
|
-
function
|
|
282
|
+
function gt({
|
|
247
283
|
block: e,
|
|
248
284
|
context: t,
|
|
249
285
|
shouldEvaluateBindings: n,
|
|
250
286
|
localState: i,
|
|
251
287
|
rootState: o,
|
|
252
|
-
rootSetState:
|
|
288
|
+
rootSetState: a
|
|
253
289
|
}) {
|
|
254
|
-
const
|
|
255
|
-
return n ?
|
|
256
|
-
block:
|
|
290
|
+
const r = e;
|
|
291
|
+
return n ? ht({
|
|
292
|
+
block: r,
|
|
257
293
|
localState: i,
|
|
258
294
|
rootState: o,
|
|
259
|
-
rootSetState:
|
|
295
|
+
rootSetState: a,
|
|
260
296
|
context: t
|
|
261
|
-
}) :
|
|
297
|
+
}) : r;
|
|
262
298
|
}
|
|
263
|
-
const
|
|
264
|
-
function
|
|
265
|
-
let i, o,
|
|
266
|
-
const
|
|
267
|
-
|
|
299
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
300
|
+
function bt(e, t, n = {}) {
|
|
301
|
+
let i, o, a, r = null, s = 0;
|
|
302
|
+
const d = function() {
|
|
303
|
+
s = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
268
304
|
};
|
|
269
305
|
return function() {
|
|
270
|
-
const
|
|
271
|
-
!
|
|
272
|
-
const
|
|
273
|
-
return i = this, o = arguments,
|
|
306
|
+
const c = Date.now();
|
|
307
|
+
!s && n.leading === !1 && (s = c);
|
|
308
|
+
const m = t - (c - s);
|
|
309
|
+
return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), s = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
|
|
274
310
|
};
|
|
275
311
|
}
|
|
276
|
-
function
|
|
312
|
+
function q(e, ...t) {
|
|
277
313
|
const n = Object(e);
|
|
278
314
|
for (let i = 1; i < arguments.length; i++) {
|
|
279
315
|
const o = arguments[i];
|
|
280
316
|
if (o != null)
|
|
281
|
-
for (const
|
|
282
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
317
|
+
for (const a in o)
|
|
318
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
283
319
|
}
|
|
284
320
|
return n;
|
|
285
321
|
}
|
|
286
|
-
function
|
|
322
|
+
function pt(e) {
|
|
287
323
|
for (const t of e)
|
|
288
324
|
switch (t.trigger) {
|
|
289
325
|
case "pageLoad":
|
|
290
|
-
|
|
326
|
+
Fe(t);
|
|
291
327
|
break;
|
|
292
328
|
case "scrollInView":
|
|
293
|
-
|
|
329
|
+
xt(t);
|
|
294
330
|
break;
|
|
295
331
|
}
|
|
296
332
|
}
|
|
297
|
-
function
|
|
333
|
+
function Ne(e) {
|
|
298
334
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
299
335
|
}
|
|
300
|
-
function
|
|
301
|
-
const n =
|
|
302
|
-
for (const
|
|
303
|
-
for (const
|
|
304
|
-
|
|
336
|
+
function We(e, t) {
|
|
337
|
+
const n = yt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
338
|
+
for (const s of r)
|
|
339
|
+
for (const d of n)
|
|
340
|
+
d in s || (s[d] = i[d]);
|
|
305
341
|
}
|
|
306
|
-
function
|
|
342
|
+
function yt(e) {
|
|
307
343
|
const t = [];
|
|
308
344
|
for (const n of e.steps)
|
|
309
345
|
for (const i in n.styles)
|
|
310
346
|
t.indexOf(i) === -1 && t.push(i);
|
|
311
347
|
return t;
|
|
312
348
|
}
|
|
313
|
-
function
|
|
349
|
+
function Fe(e) {
|
|
314
350
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
315
351
|
if (!t.length) {
|
|
316
|
-
|
|
352
|
+
Ne(e.elementId || e.id || "");
|
|
317
353
|
return;
|
|
318
354
|
}
|
|
319
355
|
Array.from(t).forEach((n) => {
|
|
320
|
-
|
|
321
|
-
n.style.transition = `all ${e.duration}s ${
|
|
356
|
+
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
357
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
322
358
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
323
359
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
324
360
|
});
|
|
325
361
|
});
|
|
326
362
|
}
|
|
327
|
-
function
|
|
363
|
+
function xt(e) {
|
|
328
364
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
365
|
if (!t.length) {
|
|
330
|
-
|
|
366
|
+
Ne(e.elementId || e.id || "");
|
|
331
367
|
return;
|
|
332
368
|
}
|
|
333
369
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
370
|
+
We(e, n);
|
|
335
371
|
let i = !1, o = !1;
|
|
336
|
-
function
|
|
337
|
-
!i &&
|
|
338
|
-
|
|
372
|
+
function a() {
|
|
373
|
+
!i && s(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
374
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
339
375
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
340
376
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
341
|
-
})) : e.repeat && i && !o && !
|
|
377
|
+
})) : e.repeat && i && !o && !s(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
342
378
|
}
|
|
343
|
-
const
|
|
379
|
+
const r = bt(a, 200, {
|
|
344
380
|
leading: !1
|
|
345
381
|
});
|
|
346
|
-
function
|
|
347
|
-
const
|
|
348
|
-
return
|
|
382
|
+
function s(m) {
|
|
383
|
+
const h = m.getBoundingClientRect(), f = window.innerHeight, g = (e.thresholdPercent || 0) / 100 * f;
|
|
384
|
+
return h.bottom > g && h.top < f - g;
|
|
349
385
|
}
|
|
350
|
-
const
|
|
351
|
-
function
|
|
352
|
-
|
|
386
|
+
const d = e.steps[0].styles;
|
|
387
|
+
function c() {
|
|
388
|
+
q(n.style, d);
|
|
353
389
|
}
|
|
354
|
-
|
|
355
|
-
n.style.transition = `all ${e.duration}s ${
|
|
356
|
-
}), document.addEventListener("scroll",
|
|
390
|
+
c(), setTimeout(() => {
|
|
391
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
392
|
+
}), document.addEventListener("scroll", r, {
|
|
357
393
|
capture: !0,
|
|
358
394
|
passive: !0
|
|
359
|
-
}),
|
|
395
|
+
}), a();
|
|
360
396
|
});
|
|
361
397
|
}
|
|
362
398
|
const $e = (e) => Object.entries(e).map(([n, i]) => {
|
|
363
399
|
if (typeof i == "string")
|
|
364
|
-
return `${
|
|
365
|
-
}).filter(
|
|
366
|
-
`),
|
|
400
|
+
return `${ee(n)}: ${i};`;
|
|
401
|
+
}).filter(Q), vt = (e) => $e(e).join(`
|
|
402
|
+
`), Y = ({
|
|
367
403
|
mediaQuery: e,
|
|
368
404
|
className: t,
|
|
369
405
|
styles: n
|
|
370
406
|
}) => {
|
|
371
407
|
const i = `.${t} {
|
|
372
|
-
${
|
|
408
|
+
${vt(n)}
|
|
373
409
|
}`;
|
|
374
410
|
return e ? `${e} {
|
|
375
411
|
${i}
|
|
376
412
|
}` : i;
|
|
377
413
|
};
|
|
378
|
-
function
|
|
414
|
+
function St({
|
|
379
415
|
style: e
|
|
380
416
|
}) {
|
|
381
417
|
return e;
|
|
382
418
|
}
|
|
383
|
-
const
|
|
419
|
+
const kt = ({
|
|
384
420
|
block: e,
|
|
385
421
|
context: t
|
|
386
|
-
}) =>
|
|
422
|
+
}) => De(St({
|
|
387
423
|
style: e.style || {},
|
|
388
424
|
context: t,
|
|
389
425
|
block: e
|
|
390
426
|
}));
|
|
391
|
-
function
|
|
392
|
-
switch (
|
|
427
|
+
function De(e) {
|
|
428
|
+
switch (U) {
|
|
393
429
|
case "svelte":
|
|
394
430
|
case "vue":
|
|
395
431
|
case "solid":
|
|
@@ -402,29 +438,21 @@ function Fe(e) {
|
|
|
402
438
|
return e;
|
|
403
439
|
}
|
|
404
440
|
}
|
|
405
|
-
const
|
|
441
|
+
const Ct = ({
|
|
406
442
|
block: e,
|
|
407
|
-
|
|
408
|
-
registeredComponents: n
|
|
443
|
+
registeredComponents: t
|
|
409
444
|
}) => {
|
|
410
|
-
var
|
|
411
|
-
const
|
|
412
|
-
|
|
413
|
-
localState: t.localState,
|
|
414
|
-
rootState: t.rootState,
|
|
415
|
-
rootSetState: t.rootSetState,
|
|
416
|
-
context: t.context,
|
|
417
|
-
shouldEvaluateBindings: !1
|
|
418
|
-
}).component) == null ? void 0 : r.name;
|
|
419
|
-
if (!i)
|
|
445
|
+
var o;
|
|
446
|
+
const n = (o = e.component) == null ? void 0 : o.name;
|
|
447
|
+
if (!n)
|
|
420
448
|
return null;
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
return
|
|
449
|
+
const i = t[n];
|
|
450
|
+
if (i)
|
|
451
|
+
return i;
|
|
424
452
|
console.warn(`
|
|
425
|
-
Could not find a registered component named "${
|
|
453
|
+
Could not find a registered component named "${n}".
|
|
426
454
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
427
|
-
},
|
|
455
|
+
}, Tt = ({
|
|
428
456
|
block: e,
|
|
429
457
|
context: t
|
|
430
458
|
}) => {
|
|
@@ -434,7 +462,7 @@ const yt = ({
|
|
|
434
462
|
} = e;
|
|
435
463
|
if (!(n != null && n.collection))
|
|
436
464
|
return;
|
|
437
|
-
const o =
|
|
465
|
+
const o = K({
|
|
438
466
|
code: n.collection,
|
|
439
467
|
localState: t.localState,
|
|
440
468
|
rootState: t.rootState,
|
|
@@ -444,41 +472,41 @@ const yt = ({
|
|
|
444
472
|
});
|
|
445
473
|
if (!Array.isArray(o))
|
|
446
474
|
return;
|
|
447
|
-
const
|
|
448
|
-
return o.map((
|
|
475
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
476
|
+
return o.map((d, c) => ({
|
|
449
477
|
context: {
|
|
450
478
|
...t,
|
|
451
479
|
localState: {
|
|
452
480
|
...t.localState,
|
|
453
|
-
$index:
|
|
454
|
-
$item:
|
|
455
|
-
[
|
|
456
|
-
[`$${
|
|
481
|
+
$index: c,
|
|
482
|
+
$item: d,
|
|
483
|
+
[r]: d,
|
|
484
|
+
[`$${r}Index`]: c
|
|
457
485
|
}
|
|
458
486
|
},
|
|
459
487
|
block: i
|
|
460
488
|
}));
|
|
461
|
-
},
|
|
489
|
+
}, It = (e, t) => {
|
|
462
490
|
var n;
|
|
463
491
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
464
492
|
builderLinkComponent: t
|
|
465
493
|
} : {};
|
|
466
|
-
},
|
|
494
|
+
}, wt = (e, t) => {
|
|
467
495
|
var n;
|
|
468
496
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
469
497
|
builderComponents: t
|
|
470
498
|
} : {};
|
|
471
|
-
},
|
|
499
|
+
}, Rt = (e, t) => {
|
|
472
500
|
var n;
|
|
473
501
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
474
502
|
builderBlock: t
|
|
475
503
|
} : {};
|
|
476
|
-
},
|
|
504
|
+
}, Et = (e, t) => {
|
|
477
505
|
var n;
|
|
478
506
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
479
507
|
builderContext: t
|
|
480
508
|
} : {};
|
|
481
|
-
},
|
|
509
|
+
}, Le = {
|
|
482
510
|
small: {
|
|
483
511
|
min: 320,
|
|
484
512
|
default: 321,
|
|
@@ -494,11 +522,11 @@ const yt = ({
|
|
|
494
522
|
default: 991,
|
|
495
523
|
max: 1200
|
|
496
524
|
}
|
|
497
|
-
}, ye = (e, t =
|
|
525
|
+
}, ye = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Oe = ({
|
|
498
526
|
small: e,
|
|
499
527
|
medium: t
|
|
500
528
|
}) => {
|
|
501
|
-
const n = me(
|
|
529
|
+
const n = me(Le);
|
|
502
530
|
if (!e || !t)
|
|
503
531
|
return n;
|
|
504
532
|
const i = Math.floor(e / 2);
|
|
@@ -513,16 +541,16 @@ const yt = ({
|
|
|
513
541
|
min: o,
|
|
514
542
|
default: o + 1
|
|
515
543
|
};
|
|
516
|
-
const
|
|
544
|
+
const a = n.medium.max + 1;
|
|
517
545
|
return n.large = {
|
|
518
546
|
max: 2e3,
|
|
519
547
|
// TODO: decide upper limit
|
|
520
|
-
min:
|
|
521
|
-
default:
|
|
548
|
+
min: a,
|
|
549
|
+
default: a + 1
|
|
522
550
|
}, n;
|
|
523
551
|
};
|
|
524
|
-
function
|
|
525
|
-
return /* @__PURE__ */
|
|
552
|
+
function te(e) {
|
|
553
|
+
return /* @__PURE__ */ l(
|
|
526
554
|
"style",
|
|
527
555
|
{
|
|
528
556
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -531,73 +559,59 @@ function ne(e) {
|
|
|
531
559
|
}
|
|
532
560
|
);
|
|
533
561
|
}
|
|
534
|
-
function
|
|
562
|
+
function Bt(e) {
|
|
535
563
|
function t() {
|
|
536
|
-
const i =
|
|
537
|
-
|
|
538
|
-
localState: e.context.localState,
|
|
539
|
-
rootState: e.context.rootState,
|
|
540
|
-
rootSetState: e.context.rootSetState,
|
|
541
|
-
context: e.context.context,
|
|
542
|
-
shouldEvaluateBindings: !0
|
|
543
|
-
});
|
|
544
|
-
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
564
|
+
const i = e.block;
|
|
565
|
+
return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
|
|
545
566
|
}
|
|
546
567
|
function n() {
|
|
547
|
-
var
|
|
548
|
-
const i =
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
rootSetState: e.context.rootSetState,
|
|
553
|
-
context: e.context.context,
|
|
554
|
-
shouldEvaluateBindings: !0
|
|
555
|
-
}), o = i.responsiveStyles, r = e.context.content, a = Le(
|
|
556
|
-
((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
|
|
557
|
-
), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
|
|
558
|
-
if (!f)
|
|
568
|
+
var b, B, E;
|
|
569
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = Oe(
|
|
570
|
+
((b = a == null ? void 0 : a.meta) == null ? void 0 : b.breakpoints) || {}
|
|
571
|
+
), s = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
|
|
572
|
+
if (!m)
|
|
559
573
|
return "";
|
|
560
|
-
const
|
|
561
|
-
className:
|
|
562
|
-
styles:
|
|
563
|
-
}) : "",
|
|
564
|
-
className:
|
|
565
|
-
styles:
|
|
574
|
+
const h = s ? Y({
|
|
575
|
+
className: m,
|
|
576
|
+
styles: s
|
|
577
|
+
}) : "", f = d ? Y({
|
|
578
|
+
className: m,
|
|
579
|
+
styles: d,
|
|
566
580
|
mediaQuery: ye(
|
|
567
581
|
"medium",
|
|
568
|
-
|
|
582
|
+
r
|
|
569
583
|
)
|
|
570
|
-
}) : "",
|
|
571
|
-
className:
|
|
572
|
-
styles:
|
|
584
|
+
}) : "", u = c ? Y({
|
|
585
|
+
className: m,
|
|
586
|
+
styles: c,
|
|
573
587
|
mediaQuery: ye(
|
|
574
588
|
"small",
|
|
575
|
-
|
|
589
|
+
r
|
|
576
590
|
)
|
|
577
|
-
}) : "",
|
|
578
|
-
let
|
|
579
|
-
if (
|
|
580
|
-
const A = ((E = (B =
|
|
581
|
-
|
|
582
|
-
className: `${
|
|
591
|
+
}) : "", g = i.animations && i.animations.find((A) => A.trigger === "hover");
|
|
592
|
+
let x = "";
|
|
593
|
+
if (g) {
|
|
594
|
+
const A = ((E = (B = g.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
|
|
595
|
+
x = Y({
|
|
596
|
+
className: `${m}:hover`,
|
|
583
597
|
styles: {
|
|
584
598
|
...A,
|
|
585
|
-
transition: `all ${
|
|
586
|
-
|
|
599
|
+
transition: `all ${g.duration}s ${ee(
|
|
600
|
+
g.easing
|
|
587
601
|
)}`,
|
|
588
|
-
transitionDelay:
|
|
602
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
589
603
|
}
|
|
590
604
|
}) || "";
|
|
591
605
|
}
|
|
592
606
|
return [
|
|
607
|
+
h,
|
|
608
|
+
f,
|
|
593
609
|
u,
|
|
594
|
-
|
|
595
|
-
g,
|
|
596
|
-
C
|
|
610
|
+
x
|
|
597
611
|
].join(" ");
|
|
598
612
|
}
|
|
599
|
-
return /* @__PURE__ */
|
|
600
|
-
|
|
613
|
+
return /* @__PURE__ */ l(R, { children: n() && t() ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
614
|
+
te,
|
|
601
615
|
{
|
|
602
616
|
id: "builderio-block",
|
|
603
617
|
styles: n(),
|
|
@@ -605,10 +619,10 @@ function Tt(e) {
|
|
|
605
619
|
}
|
|
606
620
|
) }) : null });
|
|
607
621
|
}
|
|
608
|
-
function
|
|
622
|
+
function Pt(e) {
|
|
609
623
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
610
624
|
}
|
|
611
|
-
const
|
|
625
|
+
const Vt = (e) => `on${Pt(e)}`, At = (e, t) => (n) => K({
|
|
612
626
|
code: e,
|
|
613
627
|
context: t.context,
|
|
614
628
|
localState: t.localState,
|
|
@@ -618,33 +632,33 @@ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
|
|
|
618
632
|
isExpression: !1,
|
|
619
633
|
enableCache: !0
|
|
620
634
|
});
|
|
621
|
-
function
|
|
635
|
+
function Ue(e) {
|
|
622
636
|
var i;
|
|
623
637
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
624
638
|
for (const o in n) {
|
|
625
639
|
if (!n.hasOwnProperty(o))
|
|
626
640
|
continue;
|
|
627
|
-
const
|
|
628
|
-
let
|
|
641
|
+
const a = n[o];
|
|
642
|
+
let r = Vt(o);
|
|
629
643
|
if (e.stripPrefix)
|
|
630
|
-
switch (
|
|
644
|
+
switch (U) {
|
|
631
645
|
case "vue":
|
|
632
|
-
|
|
646
|
+
r = r.replace("v-on:", "");
|
|
633
647
|
break;
|
|
634
648
|
case "svelte":
|
|
635
|
-
|
|
649
|
+
r = r.replace("on:", "");
|
|
636
650
|
break;
|
|
637
651
|
}
|
|
638
|
-
t[
|
|
652
|
+
t[r] = At(a, e);
|
|
639
653
|
}
|
|
640
654
|
return t;
|
|
641
655
|
}
|
|
642
|
-
function
|
|
656
|
+
function Nt({
|
|
643
657
|
properties: e
|
|
644
658
|
}) {
|
|
645
659
|
return e;
|
|
646
660
|
}
|
|
647
|
-
const
|
|
661
|
+
const Wt = (e) => ({
|
|
648
662
|
href: e.href
|
|
649
663
|
});
|
|
650
664
|
function fe({
|
|
@@ -653,23 +667,23 @@ function fe({
|
|
|
653
667
|
}) {
|
|
654
668
|
var i;
|
|
655
669
|
const n = {
|
|
656
|
-
...
|
|
670
|
+
...Wt(e),
|
|
657
671
|
...e.properties,
|
|
658
672
|
"builder-id": e.id,
|
|
659
|
-
style:
|
|
673
|
+
style: kt({
|
|
660
674
|
block: e,
|
|
661
675
|
context: t
|
|
662
676
|
}),
|
|
663
|
-
[
|
|
677
|
+
[_()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
664
678
|
};
|
|
665
|
-
return
|
|
679
|
+
return Nt({
|
|
666
680
|
properties: n,
|
|
667
681
|
context: t,
|
|
668
682
|
block: e
|
|
669
683
|
});
|
|
670
684
|
}
|
|
671
|
-
function
|
|
672
|
-
return /* @__PURE__ */
|
|
685
|
+
function Ft(e) {
|
|
686
|
+
return /* @__PURE__ */ l(
|
|
673
687
|
de,
|
|
674
688
|
{
|
|
675
689
|
TagName: e.Wrapper,
|
|
@@ -677,7 +691,7 @@ function Pt(e) {
|
|
|
677
691
|
block: e.block,
|
|
678
692
|
context: e.context
|
|
679
693
|
}),
|
|
680
|
-
actionAttributes:
|
|
694
|
+
actionAttributes: Ue({
|
|
681
695
|
block: e.block,
|
|
682
696
|
rootState: e.context.rootState,
|
|
683
697
|
rootSetState: e.context.rootSetState,
|
|
@@ -689,14 +703,14 @@ function Pt(e) {
|
|
|
689
703
|
}
|
|
690
704
|
);
|
|
691
705
|
}
|
|
692
|
-
function
|
|
706
|
+
function $t(e) {
|
|
693
707
|
function t() {
|
|
694
708
|
return e.includeBlockProps ? {
|
|
695
709
|
...fe({
|
|
696
710
|
block: e.block,
|
|
697
711
|
context: e.context
|
|
698
712
|
}),
|
|
699
|
-
...
|
|
713
|
+
...Ue({
|
|
700
714
|
block: e.block,
|
|
701
715
|
rootState: e.context.rootState,
|
|
702
716
|
rootSetState: e.context.rootSetState,
|
|
@@ -705,18 +719,18 @@ function Vt(e) {
|
|
|
705
719
|
})
|
|
706
720
|
} : {};
|
|
707
721
|
}
|
|
708
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
709
723
|
}
|
|
710
|
-
const
|
|
724
|
+
const Dt = ({
|
|
711
725
|
componentOptions: e,
|
|
712
726
|
builderBlock: t,
|
|
713
727
|
context: n,
|
|
714
728
|
componentRef: i,
|
|
715
729
|
includeBlockProps: o,
|
|
716
|
-
isInteractive:
|
|
717
|
-
contextValue:
|
|
730
|
+
isInteractive: a,
|
|
731
|
+
contextValue: r
|
|
718
732
|
}) => {
|
|
719
|
-
const
|
|
733
|
+
const s = {
|
|
720
734
|
...e,
|
|
721
735
|
/**
|
|
722
736
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -725,27 +739,27 @@ const At = ({
|
|
|
725
739
|
...o ? {
|
|
726
740
|
attributes: fe({
|
|
727
741
|
block: t,
|
|
728
|
-
context:
|
|
742
|
+
context: r
|
|
729
743
|
})
|
|
730
744
|
} : {}
|
|
731
745
|
};
|
|
732
|
-
return
|
|
746
|
+
return a ? {
|
|
733
747
|
Wrapper: i,
|
|
734
748
|
block: t,
|
|
735
749
|
context: n,
|
|
736
750
|
wrapperProps: e,
|
|
737
751
|
includeBlockProps: o
|
|
738
|
-
} :
|
|
752
|
+
} : s;
|
|
739
753
|
};
|
|
740
754
|
function xe(e) {
|
|
741
755
|
var i;
|
|
742
756
|
const [t, n] = T(
|
|
743
|
-
() => e.isInteractive ?
|
|
757
|
+
() => e.isInteractive ? $t : e.componentRef
|
|
744
758
|
);
|
|
745
|
-
return /* @__PURE__ */
|
|
759
|
+
return /* @__PURE__ */ l(R, { children: e.componentRef ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
746
760
|
t,
|
|
747
761
|
{
|
|
748
|
-
...
|
|
762
|
+
...Dt({
|
|
749
763
|
componentOptions: e.componentOptions,
|
|
750
764
|
builderBlock: e.builderBlock,
|
|
751
765
|
context: e.context,
|
|
@@ -755,8 +769,8 @@ function xe(e) {
|
|
|
755
769
|
isInteractive: e.isInteractive,
|
|
756
770
|
contextValue: e.context
|
|
757
771
|
}),
|
|
758
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
759
|
-
|
|
772
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
|
|
773
|
+
J,
|
|
760
774
|
{
|
|
761
775
|
block: o,
|
|
762
776
|
context: e.context,
|
|
@@ -768,10 +782,10 @@ function xe(e) {
|
|
|
768
782
|
}
|
|
769
783
|
) }) : null });
|
|
770
784
|
}
|
|
771
|
-
function
|
|
785
|
+
function Lt(e) {
|
|
772
786
|
const [t, n] = T(() => e.repeatContext);
|
|
773
|
-
return /* @__PURE__ */
|
|
774
|
-
|
|
787
|
+
return /* @__PURE__ */ l(ue.Provider, { value: t, children: /* @__PURE__ */ l(
|
|
788
|
+
J,
|
|
775
789
|
{
|
|
776
790
|
block: e.block,
|
|
777
791
|
context: t,
|
|
@@ -780,24 +794,23 @@ function Nt(e) {
|
|
|
780
794
|
}
|
|
781
795
|
) });
|
|
782
796
|
}
|
|
783
|
-
function
|
|
784
|
-
var
|
|
797
|
+
function J(e) {
|
|
798
|
+
var m, h, f;
|
|
785
799
|
function t() {
|
|
786
|
-
return
|
|
787
|
-
block: e.block,
|
|
788
|
-
context: e.context,
|
|
789
|
-
registeredComponents: e.registeredComponents
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
function n() {
|
|
793
|
-
return xt({
|
|
800
|
+
return Tt({
|
|
794
801
|
block: e.block,
|
|
795
802
|
context: e.context
|
|
796
803
|
});
|
|
797
804
|
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
805
|
+
const [n, i] = T(() => ({
|
|
806
|
+
value: null,
|
|
807
|
+
update: !1
|
|
808
|
+
}));
|
|
809
|
+
function o() {
|
|
810
|
+
var g;
|
|
811
|
+
if (n.value && !n.update && !we())
|
|
812
|
+
return n.value;
|
|
813
|
+
const u = (g = e.block.repeat) != null && g.collection ? e.block : gt({
|
|
801
814
|
block: e.block,
|
|
802
815
|
localState: e.context.localState,
|
|
803
816
|
rootState: e.context.rootState,
|
|
@@ -805,100 +818,109 @@ function _(e) {
|
|
|
805
818
|
context: e.context.context,
|
|
806
819
|
shouldEvaluateBindings: !0
|
|
807
820
|
});
|
|
821
|
+
return n.value = u, n.update = !1, u;
|
|
808
822
|
}
|
|
809
|
-
function
|
|
810
|
-
|
|
811
|
-
|
|
823
|
+
function a() {
|
|
824
|
+
return Ct({
|
|
825
|
+
block: o(),
|
|
826
|
+
registeredComponents: e.registeredComponents
|
|
827
|
+
});
|
|
812
828
|
}
|
|
813
829
|
function r() {
|
|
814
|
-
var g
|
|
815
|
-
|
|
816
|
-
return !!((y = n == null ? void 0 : n()) != null && y.length);
|
|
817
|
-
const u = "hide" in i() ? i().hide : !1;
|
|
818
|
-
return ("show" in i() ? i().show : !0) && !u;
|
|
830
|
+
var g;
|
|
831
|
+
return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
819
832
|
}
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
|
|
833
|
+
function s() {
|
|
834
|
+
var x, b;
|
|
835
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
836
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
837
|
+
const u = "hide" in o() ? o().hide : !1;
|
|
838
|
+
return ("show" in o() ? o().show : !0) && !u;
|
|
839
|
+
}
|
|
840
|
+
function d() {
|
|
841
|
+
var g, x;
|
|
842
|
+
return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
823
843
|
}
|
|
824
|
-
function
|
|
825
|
-
var u,
|
|
844
|
+
function c() {
|
|
845
|
+
var u, g, x, b;
|
|
826
846
|
return {
|
|
827
|
-
blockChildren: (u =
|
|
828
|
-
componentRef: (
|
|
847
|
+
blockChildren: (u = o().children) != null ? u : [],
|
|
848
|
+
componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
|
|
829
849
|
componentOptions: {
|
|
830
|
-
...it(
|
|
831
|
-
...
|
|
832
|
-
...
|
|
833
|
-
...
|
|
834
|
-
...
|
|
835
|
-
|
|
850
|
+
...it(o()),
|
|
851
|
+
...Rt(a(), o()),
|
|
852
|
+
...Et(a(), e.context),
|
|
853
|
+
...It(a(), e.linkComponent),
|
|
854
|
+
...wt(
|
|
855
|
+
a(),
|
|
836
856
|
e.registeredComponents
|
|
837
857
|
)
|
|
838
858
|
},
|
|
839
859
|
context: e.context,
|
|
840
860
|
linkComponent: e.linkComponent,
|
|
841
861
|
registeredComponents: e.registeredComponents,
|
|
842
|
-
builderBlock:
|
|
843
|
-
includeBlockProps: ((
|
|
844
|
-
isInteractive: !((
|
|
862
|
+
builderBlock: o(),
|
|
863
|
+
includeBlockProps: ((x = a == null ? void 0 : a()) == null ? void 0 : x.noWrap) === !0,
|
|
864
|
+
isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && U === "rsc")
|
|
845
865
|
};
|
|
846
866
|
}
|
|
847
867
|
return P(() => {
|
|
848
|
-
const u =
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
...
|
|
868
|
+
const u = o().id, g = o().animations;
|
|
869
|
+
g && u && pt(
|
|
870
|
+
g.map((x) => ({
|
|
871
|
+
...x,
|
|
852
872
|
elementId: u
|
|
853
873
|
}))
|
|
854
874
|
);
|
|
855
|
-
}, []),
|
|
856
|
-
|
|
857
|
-
|
|
875
|
+
}, []), P(() => {
|
|
876
|
+
n.update = !0;
|
|
877
|
+
}), /* @__PURE__ */ l(R, { children: s() ? /* @__PURE__ */ V(R, { children: [
|
|
878
|
+
/* @__PURE__ */ l(Bt, { block: o(), context: e.context }),
|
|
879
|
+
(m = a == null ? void 0 : a()) != null && m.noWrap ? /* @__PURE__ */ l(R, { children: /* @__PURE__ */ l(
|
|
858
880
|
xe,
|
|
859
881
|
{
|
|
860
|
-
componentRef:
|
|
861
|
-
componentOptions:
|
|
862
|
-
blockChildren:
|
|
863
|
-
context:
|
|
864
|
-
registeredComponents:
|
|
865
|
-
linkComponent:
|
|
866
|
-
builderBlock:
|
|
867
|
-
includeBlockProps:
|
|
868
|
-
isInteractive:
|
|
882
|
+
componentRef: c().componentRef,
|
|
883
|
+
componentOptions: c().componentOptions,
|
|
884
|
+
blockChildren: c().blockChildren,
|
|
885
|
+
context: c().context,
|
|
886
|
+
registeredComponents: c().registeredComponents,
|
|
887
|
+
linkComponent: c().linkComponent,
|
|
888
|
+
builderBlock: c().builderBlock,
|
|
889
|
+
includeBlockProps: c().includeBlockProps,
|
|
890
|
+
isInteractive: c().isInteractive
|
|
869
891
|
}
|
|
870
|
-
) }) : /* @__PURE__ */
|
|
871
|
-
|
|
892
|
+
) }) : /* @__PURE__ */ l(R, { children: t() ? /* @__PURE__ */ l(R, { children: (f = t()) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
893
|
+
Lt,
|
|
872
894
|
{
|
|
873
895
|
repeatContext: u.context,
|
|
874
896
|
block: u.block,
|
|
875
897
|
registeredComponents: e.registeredComponents,
|
|
876
898
|
linkComponent: e.linkComponent
|
|
877
899
|
},
|
|
878
|
-
|
|
900
|
+
g
|
|
879
901
|
)) }) : /* @__PURE__ */ V(
|
|
880
|
-
|
|
902
|
+
Ft,
|
|
881
903
|
{
|
|
882
|
-
Wrapper:
|
|
883
|
-
block:
|
|
904
|
+
Wrapper: r(),
|
|
905
|
+
block: o(),
|
|
884
906
|
context: e.context,
|
|
885
907
|
children: [
|
|
886
|
-
/* @__PURE__ */
|
|
908
|
+
/* @__PURE__ */ l(
|
|
887
909
|
xe,
|
|
888
910
|
{
|
|
889
|
-
componentRef:
|
|
890
|
-
componentOptions:
|
|
891
|
-
blockChildren:
|
|
892
|
-
context:
|
|
893
|
-
registeredComponents:
|
|
894
|
-
linkComponent:
|
|
895
|
-
builderBlock:
|
|
896
|
-
includeBlockProps:
|
|
897
|
-
isInteractive:
|
|
911
|
+
componentRef: c().componentRef,
|
|
912
|
+
componentOptions: c().componentOptions,
|
|
913
|
+
blockChildren: c().blockChildren,
|
|
914
|
+
context: c().context,
|
|
915
|
+
registeredComponents: c().registeredComponents,
|
|
916
|
+
linkComponent: c().linkComponent,
|
|
917
|
+
builderBlock: c().builderBlock,
|
|
918
|
+
includeBlockProps: c().includeBlockProps,
|
|
919
|
+
isInteractive: c().isInteractive
|
|
898
920
|
}
|
|
899
921
|
),
|
|
900
|
-
(
|
|
901
|
-
|
|
922
|
+
(h = d()) == null ? void 0 : h.map((u) => /* @__PURE__ */ l(
|
|
923
|
+
J,
|
|
902
924
|
{
|
|
903
925
|
block: u,
|
|
904
926
|
registeredComponents: e.registeredComponents,
|
|
@@ -912,14 +934,15 @@ function _(e) {
|
|
|
912
934
|
) })
|
|
913
935
|
] }) : null });
|
|
914
936
|
}
|
|
915
|
-
function
|
|
916
|
-
|
|
917
|
-
var o;
|
|
918
|
-
return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
|
|
919
|
-
}
|
|
937
|
+
function Ot(e) {
|
|
938
|
+
const t = z(null);
|
|
920
939
|
function n() {
|
|
921
|
-
var
|
|
922
|
-
|
|
940
|
+
var a;
|
|
941
|
+
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
942
|
+
}
|
|
943
|
+
function i() {
|
|
944
|
+
var a, r;
|
|
945
|
+
$() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
923
946
|
{
|
|
924
947
|
type: "builder.clickEmptyBlocks",
|
|
925
948
|
data: {
|
|
@@ -930,9 +953,9 @@ function Wt(e) {
|
|
|
930
953
|
"*"
|
|
931
954
|
));
|
|
932
955
|
}
|
|
933
|
-
function
|
|
934
|
-
var
|
|
935
|
-
|
|
956
|
+
function o() {
|
|
957
|
+
var a, r;
|
|
958
|
+
$() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
|
|
936
959
|
{
|
|
937
960
|
type: "builder.hoverEmptyBlocks",
|
|
938
961
|
data: {
|
|
@@ -943,22 +966,24 @@ function Wt(e) {
|
|
|
943
966
|
"*"
|
|
944
967
|
));
|
|
945
968
|
}
|
|
946
|
-
return
|
|
947
|
-
|
|
969
|
+
return P(() => {
|
|
970
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
971
|
+
/* @__PURE__ */ l(
|
|
948
972
|
e.BlocksWrapper,
|
|
949
973
|
{
|
|
950
|
-
|
|
974
|
+
ref: t,
|
|
975
|
+
className: n() + " props-blocks-wrapper-51ef31b4",
|
|
951
976
|
"builder-path": e.path,
|
|
952
977
|
"builder-parent-id": e.parent,
|
|
953
978
|
style: e.styleProp,
|
|
954
|
-
onClick: (
|
|
955
|
-
onMouseEnter: (
|
|
956
|
-
onKeyPress: (
|
|
979
|
+
onClick: (a) => i(),
|
|
980
|
+
onMouseEnter: (a) => o(),
|
|
981
|
+
onKeyPress: (a) => i(),
|
|
957
982
|
...e.BlocksWrapperProps,
|
|
958
983
|
children: e.children
|
|
959
984
|
}
|
|
960
985
|
),
|
|
961
|
-
/* @__PURE__ */
|
|
986
|
+
/* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
962
987
|
display: flex;
|
|
963
988
|
flex-direction: column;
|
|
964
989
|
align-items: stretch;
|
|
@@ -966,10 +991,10 @@ function Wt(e) {
|
|
|
966
991
|
] });
|
|
967
992
|
}
|
|
968
993
|
function D(e) {
|
|
969
|
-
var i, o,
|
|
970
|
-
const t = be(ue), n = be(
|
|
971
|
-
return /* @__PURE__ */
|
|
972
|
-
|
|
994
|
+
var i, o, a;
|
|
995
|
+
const t = be(ue), n = be(Pe);
|
|
996
|
+
return /* @__PURE__ */ l(
|
|
997
|
+
Ot,
|
|
973
998
|
{
|
|
974
999
|
blocks: e.blocks,
|
|
975
1000
|
parent: e.parent,
|
|
@@ -977,64 +1002,64 @@ function D(e) {
|
|
|
977
1002
|
styleProp: e.styleProp,
|
|
978
1003
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || t.BlocksWrapper,
|
|
979
1004
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || t.BlocksWrapperProps,
|
|
980
|
-
children: e.blocks ? /* @__PURE__ */
|
|
981
|
-
|
|
1005
|
+
children: e.blocks ? /* @__PURE__ */ l(R, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
|
|
1006
|
+
J,
|
|
982
1007
|
{
|
|
983
|
-
block:
|
|
1008
|
+
block: r,
|
|
984
1009
|
linkComponent: e.linkComponent,
|
|
985
1010
|
context: e.context || t,
|
|
986
1011
|
registeredComponents: e.registeredComponents || n.registeredComponents
|
|
987
1012
|
},
|
|
988
|
-
|
|
1013
|
+
r.id
|
|
989
1014
|
)) }) : null
|
|
990
1015
|
}
|
|
991
1016
|
);
|
|
992
1017
|
}
|
|
993
|
-
const
|
|
994
|
-
function
|
|
1018
|
+
const Ut = (e) => `builder-columns ${e}-breakpoints`;
|
|
1019
|
+
function Mt(e) {
|
|
995
1020
|
var A, O;
|
|
996
1021
|
const [t, n] = T(
|
|
997
1022
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
998
|
-
), [i, o] = T(() => e.columns || []), [
|
|
1023
|
+
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
999
1024
|
() => e.stackColumnsAt || "tablet"
|
|
1000
1025
|
);
|
|
1001
|
-
function
|
|
1002
|
-
return
|
|
1026
|
+
function s(v) {
|
|
1027
|
+
return v.link ? e.builderLinkComponent || "a" : "div";
|
|
1003
1028
|
}
|
|
1004
|
-
function
|
|
1029
|
+
function d(v) {
|
|
1005
1030
|
var w;
|
|
1006
|
-
return ((w = i[
|
|
1031
|
+
return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
|
|
1007
1032
|
}
|
|
1008
|
-
function
|
|
1009
|
-
const w =
|
|
1033
|
+
function c(v) {
|
|
1034
|
+
const w = d(v), N = t * (i.length - 1) * (w / 100);
|
|
1010
1035
|
return `calc(${w}% - ${N}px)`;
|
|
1011
1036
|
}
|
|
1012
|
-
function
|
|
1013
|
-
stackedStyle:
|
|
1037
|
+
function m({
|
|
1038
|
+
stackedStyle: v,
|
|
1014
1039
|
desktopStyle: w
|
|
1015
1040
|
}) {
|
|
1016
|
-
return
|
|
1041
|
+
return a === "tablet" ? v : w;
|
|
1017
1042
|
}
|
|
1018
|
-
function
|
|
1019
|
-
stackedStyle:
|
|
1043
|
+
function h({
|
|
1044
|
+
stackedStyle: v,
|
|
1020
1045
|
desktopStyle: w
|
|
1021
1046
|
}) {
|
|
1022
|
-
return
|
|
1047
|
+
return a === "never" ? w : v;
|
|
1023
1048
|
}
|
|
1024
|
-
const [
|
|
1049
|
+
const [f, u] = T(
|
|
1025
1050
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
1026
1051
|
);
|
|
1027
|
-
function
|
|
1052
|
+
function g() {
|
|
1028
1053
|
return {
|
|
1029
|
-
"--flex-dir":
|
|
1030
|
-
"--flex-dir-tablet":
|
|
1031
|
-
stackedStyle:
|
|
1054
|
+
"--flex-dir": f,
|
|
1055
|
+
"--flex-dir-tablet": m({
|
|
1056
|
+
stackedStyle: f,
|
|
1032
1057
|
desktopStyle: "row"
|
|
1033
1058
|
})
|
|
1034
1059
|
};
|
|
1035
1060
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const w =
|
|
1061
|
+
function x(v) {
|
|
1062
|
+
const w = v === 0 ? 0 : t, N = c(v), y = `${w}px`, p = "100%", S = 0;
|
|
1038
1063
|
return {
|
|
1039
1064
|
...{
|
|
1040
1065
|
display: "flex",
|
|
@@ -1042,90 +1067,90 @@ function Ft(e) {
|
|
|
1042
1067
|
alignItems: "stretch"
|
|
1043
1068
|
},
|
|
1044
1069
|
width: N,
|
|
1045
|
-
["marginLeft"]:
|
|
1046
|
-
"--column-width-mobile":
|
|
1047
|
-
stackedStyle:
|
|
1070
|
+
["marginLeft"]: y,
|
|
1071
|
+
"--column-width-mobile": h({
|
|
1072
|
+
stackedStyle: p,
|
|
1048
1073
|
desktopStyle: N
|
|
1049
1074
|
}),
|
|
1050
|
-
"--column-margin-left-mobile":
|
|
1051
|
-
stackedStyle:
|
|
1052
|
-
desktopStyle:
|
|
1075
|
+
"--column-margin-left-mobile": h({
|
|
1076
|
+
stackedStyle: S,
|
|
1077
|
+
desktopStyle: y
|
|
1053
1078
|
}),
|
|
1054
|
-
"--column-width-tablet":
|
|
1055
|
-
stackedStyle:
|
|
1079
|
+
"--column-width-tablet": m({
|
|
1080
|
+
stackedStyle: p,
|
|
1056
1081
|
desktopStyle: N
|
|
1057
1082
|
}),
|
|
1058
|
-
"--column-margin-left-tablet":
|
|
1059
|
-
stackedStyle:
|
|
1060
|
-
desktopStyle:
|
|
1083
|
+
"--column-margin-left-tablet": m({
|
|
1084
|
+
stackedStyle: S,
|
|
1085
|
+
desktopStyle: y
|
|
1061
1086
|
})
|
|
1062
1087
|
};
|
|
1063
1088
|
}
|
|
1064
|
-
function
|
|
1065
|
-
var N,
|
|
1066
|
-
return
|
|
1067
|
-
((
|
|
1068
|
-
)[
|
|
1089
|
+
function b(v) {
|
|
1090
|
+
var N, y;
|
|
1091
|
+
return Oe(
|
|
1092
|
+
((y = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : y.breakpoints) || {}
|
|
1093
|
+
)[v].max;
|
|
1069
1094
|
}
|
|
1070
1095
|
function B() {
|
|
1071
|
-
const
|
|
1096
|
+
const v = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1072
1097
|
return `
|
|
1073
|
-
@media (max-width: ${
|
|
1098
|
+
@media (max-width: ${b("medium")}px) {
|
|
1074
1099
|
.${e.builderBlock.id}-breakpoints {
|
|
1075
1100
|
flex-direction: var(--flex-dir-tablet);
|
|
1076
1101
|
align-items: stretch;
|
|
1077
1102
|
}
|
|
1078
1103
|
|
|
1079
|
-
${
|
|
1104
|
+
${v} {
|
|
1080
1105
|
width: var(--column-width-tablet) !important;
|
|
1081
1106
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1082
1107
|
}
|
|
1083
1108
|
}
|
|
1084
1109
|
|
|
1085
|
-
@media (max-width: ${
|
|
1110
|
+
@media (max-width: ${b("small")}px) {
|
|
1086
1111
|
.${e.builderBlock.id}-breakpoints {
|
|
1087
1112
|
flex-direction: var(--flex-dir);
|
|
1088
1113
|
align-items: stretch;
|
|
1089
1114
|
}
|
|
1090
1115
|
|
|
1091
|
-
${
|
|
1116
|
+
${v} {
|
|
1092
1117
|
width: var(--column-width-mobile) !important;
|
|
1093
1118
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1094
1119
|
}
|
|
1095
1120
|
},
|
|
1096
1121
|
`;
|
|
1097
1122
|
}
|
|
1098
|
-
function E(
|
|
1123
|
+
function E(v, w) {
|
|
1099
1124
|
return {
|
|
1100
|
-
...
|
|
1101
|
-
href:
|
|
1125
|
+
...v.link ? {
|
|
1126
|
+
href: v.link
|
|
1102
1127
|
} : {},
|
|
1103
|
-
[
|
|
1104
|
-
style:
|
|
1128
|
+
[_()]: "builder-column",
|
|
1129
|
+
style: De(x(w))
|
|
1105
1130
|
};
|
|
1106
1131
|
}
|
|
1107
1132
|
return /* @__PURE__ */ V(R, { children: [
|
|
1108
1133
|
/* @__PURE__ */ V(
|
|
1109
1134
|
"div",
|
|
1110
1135
|
{
|
|
1111
|
-
className:
|
|
1112
|
-
style:
|
|
1136
|
+
className: Ut((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
|
|
1137
|
+
style: g(),
|
|
1113
1138
|
children: [
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
|
|
1139
|
+
/* @__PURE__ */ l(
|
|
1140
|
+
te,
|
|
1116
1141
|
{
|
|
1117
1142
|
id: "builderio-columns",
|
|
1118
1143
|
styles: B(),
|
|
1119
1144
|
nonce: e.builderContext.nonce
|
|
1120
1145
|
}
|
|
1121
1146
|
),
|
|
1122
|
-
(O = e.columns) == null ? void 0 : O.map((
|
|
1147
|
+
(O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ l(
|
|
1123
1148
|
de,
|
|
1124
1149
|
{
|
|
1125
|
-
TagName:
|
|
1150
|
+
TagName: s(v),
|
|
1126
1151
|
actionAttributes: {},
|
|
1127
|
-
attributes: E(
|
|
1128
|
-
children: /* @__PURE__ */
|
|
1152
|
+
attributes: E(v, w),
|
|
1153
|
+
children: /* @__PURE__ */ l(
|
|
1129
1154
|
D,
|
|
1130
1155
|
{
|
|
1131
1156
|
path: `component.options.columns.${w}.blocks`,
|
|
@@ -1136,7 +1161,7 @@ function Ft(e) {
|
|
|
1136
1161
|
context: e.builderContext,
|
|
1137
1162
|
registeredComponents: e.builderComponents,
|
|
1138
1163
|
linkComponent: e.builderLinkComponent,
|
|
1139
|
-
blocks:
|
|
1164
|
+
blocks: v.blocks
|
|
1140
1165
|
}
|
|
1141
1166
|
)
|
|
1142
1167
|
},
|
|
@@ -1145,83 +1170,83 @@ function Ft(e) {
|
|
|
1145
1170
|
]
|
|
1146
1171
|
}
|
|
1147
1172
|
),
|
|
1148
|
-
/* @__PURE__ */
|
|
1173
|
+
/* @__PURE__ */ l("style", { children: `.div-34f576bb {
|
|
1149
1174
|
display: flex;
|
|
1150
1175
|
line-height: normal;
|
|
1151
1176
|
}` })
|
|
1152
1177
|
] });
|
|
1153
1178
|
}
|
|
1154
|
-
function
|
|
1155
|
-
return /* @__PURE__ */
|
|
1179
|
+
function jt(e) {
|
|
1180
|
+
return /* @__PURE__ */ l("span", { children: e.children });
|
|
1156
1181
|
}
|
|
1157
1182
|
function ve(e) {
|
|
1158
1183
|
return e.replace(/http(s)?:/, "");
|
|
1159
1184
|
}
|
|
1160
|
-
function
|
|
1185
|
+
function Ht(e = "", t, n) {
|
|
1161
1186
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1162
1187
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1163
1188
|
}
|
|
1164
|
-
function
|
|
1189
|
+
function Kt(e, t) {
|
|
1165
1190
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1166
1191
|
return e;
|
|
1167
1192
|
if (t === "master")
|
|
1168
1193
|
return ve(e);
|
|
1169
1194
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1170
1195
|
if (n) {
|
|
1171
|
-
const i = e.split(n[0]), o = n[3],
|
|
1172
|
-
return ve(`${i[0]}_${
|
|
1196
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1197
|
+
return ve(`${i[0]}_${a}${o}`);
|
|
1173
1198
|
}
|
|
1174
1199
|
return null;
|
|
1175
1200
|
}
|
|
1176
|
-
function
|
|
1201
|
+
function ie(e) {
|
|
1177
1202
|
if (!e)
|
|
1178
1203
|
return e;
|
|
1179
1204
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1180
1205
|
if (e.match(/builder\.io/)) {
|
|
1181
1206
|
let n = e;
|
|
1182
1207
|
const i = Number(e.split("?width=")[1]);
|
|
1183
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1208
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Ht(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1184
1209
|
}
|
|
1185
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1210
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Kt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1186
1211
|
}
|
|
1187
|
-
function
|
|
1188
|
-
var o, r,
|
|
1212
|
+
function qt(e) {
|
|
1213
|
+
var o, a, r, s, d, c;
|
|
1189
1214
|
function t() {
|
|
1190
|
-
var
|
|
1191
|
-
const
|
|
1192
|
-
if (!
|
|
1215
|
+
var f;
|
|
1216
|
+
const h = e.image || e.src;
|
|
1217
|
+
if (!h || // We can auto add srcset for cdn.builder.io and shopify
|
|
1193
1218
|
// images, otherwise you can supply this prop manually
|
|
1194
|
-
!(
|
|
1219
|
+
!(h.match(/builder\.io/) || h.match(/cdn\.shopify\.com/)))
|
|
1195
1220
|
return e.srcset;
|
|
1196
1221
|
if (!e.noWebp) {
|
|
1197
|
-
if (e.srcset && ((
|
|
1222
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1198
1223
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1199
|
-
return console.debug("Removed given srcset"),
|
|
1224
|
+
return console.debug("Removed given srcset"), ie(h);
|
|
1200
1225
|
} else if (e.image && !e.srcset)
|
|
1201
|
-
return
|
|
1202
|
-
return
|
|
1226
|
+
return ie(h);
|
|
1227
|
+
return ie(h);
|
|
1203
1228
|
}
|
|
1204
1229
|
}
|
|
1205
1230
|
function n() {
|
|
1206
|
-
var
|
|
1207
|
-
return (
|
|
1231
|
+
var m;
|
|
1232
|
+
return (m = t == null ? void 0 : t()) != null && m.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1208
1233
|
}
|
|
1209
1234
|
function i() {
|
|
1210
|
-
const
|
|
1235
|
+
const m = {
|
|
1211
1236
|
position: "absolute",
|
|
1212
1237
|
height: "100%",
|
|
1213
1238
|
width: "100%",
|
|
1214
1239
|
left: "0px",
|
|
1215
1240
|
top: "0px"
|
|
1216
1241
|
};
|
|
1217
|
-
return e.aspectRatio ?
|
|
1242
|
+
return e.aspectRatio ? m : void 0;
|
|
1218
1243
|
}
|
|
1219
1244
|
return P(() => {
|
|
1220
1245
|
}, []), /* @__PURE__ */ V(R, { children: [
|
|
1221
1246
|
/* @__PURE__ */ V(R, { children: [
|
|
1222
1247
|
/* @__PURE__ */ V("picture", { children: [
|
|
1223
|
-
n() ? /* @__PURE__ */
|
|
1224
|
-
/* @__PURE__ */
|
|
1248
|
+
n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1249
|
+
/* @__PURE__ */ l(
|
|
1225
1250
|
"img",
|
|
1226
1251
|
{
|
|
1227
1252
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1240,7 +1265,7 @@ function jt(e) {
|
|
|
1240
1265
|
}
|
|
1241
1266
|
)
|
|
1242
1267
|
] }),
|
|
1243
|
-
e.aspectRatio && !((
|
|
1268
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
|
|
1244
1269
|
"div",
|
|
1245
1270
|
{
|
|
1246
1271
|
className: "builder-image-sizer div-2d6925f2",
|
|
@@ -1249,10 +1274,10 @@ function jt(e) {
|
|
|
1249
1274
|
}
|
|
1250
1275
|
}
|
|
1251
1276
|
) : null,
|
|
1252
|
-
(
|
|
1253
|
-
!e.fitContent && ((
|
|
1277
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(R, { children: e.children }) : null,
|
|
1278
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
1254
1279
|
] }),
|
|
1255
|
-
/* @__PURE__ */
|
|
1280
|
+
/* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
|
|
1256
1281
|
opacity: 1;
|
|
1257
1282
|
transition: opacity 0.2s ease-in-out;
|
|
1258
1283
|
}.div-2d6925f2 {
|
|
@@ -1271,8 +1296,8 @@ function jt(e) {
|
|
|
1271
1296
|
}` })
|
|
1272
1297
|
] });
|
|
1273
1298
|
}
|
|
1274
|
-
function
|
|
1275
|
-
return /* @__PURE__ */
|
|
1299
|
+
function _t(e) {
|
|
1300
|
+
return /* @__PURE__ */ l(
|
|
1276
1301
|
"section",
|
|
1277
1302
|
{
|
|
1278
1303
|
...e.attributes,
|
|
@@ -1292,7 +1317,7 @@ function Ut(e) {
|
|
|
1292
1317
|
}
|
|
1293
1318
|
);
|
|
1294
1319
|
}
|
|
1295
|
-
const
|
|
1320
|
+
const oe = {
|
|
1296
1321
|
"@type": "@builder.io/sdk:Element",
|
|
1297
1322
|
layerName: "Accordion item title",
|
|
1298
1323
|
responsiveStyles: {
|
|
@@ -1321,7 +1346,7 @@ const ae = {
|
|
|
1321
1346
|
}
|
|
1322
1347
|
}
|
|
1323
1348
|
}]
|
|
1324
|
-
},
|
|
1349
|
+
}, ae = {
|
|
1325
1350
|
"@type": "@builder.io/sdk:Element",
|
|
1326
1351
|
layerName: "Accordion item detail",
|
|
1327
1352
|
responsiveStyles: {
|
|
@@ -1352,7 +1377,7 @@ const ae = {
|
|
|
1352
1377
|
}
|
|
1353
1378
|
}
|
|
1354
1379
|
}]
|
|
1355
|
-
},
|
|
1380
|
+
}, zt = {
|
|
1356
1381
|
name: "Builder:Accordion",
|
|
1357
1382
|
canHaveChildren: !0,
|
|
1358
1383
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1369,19 +1394,19 @@ const ae = {
|
|
|
1369
1394
|
name: "title",
|
|
1370
1395
|
type: "uiBlocks",
|
|
1371
1396
|
hideFromUI: !0,
|
|
1372
|
-
defaultValue: [
|
|
1397
|
+
defaultValue: [oe]
|
|
1373
1398
|
}, {
|
|
1374
1399
|
name: "detail",
|
|
1375
1400
|
type: "uiBlocks",
|
|
1376
1401
|
hideFromUI: !0,
|
|
1377
|
-
defaultValue: [
|
|
1402
|
+
defaultValue: [ae]
|
|
1378
1403
|
}],
|
|
1379
1404
|
defaultValue: [{
|
|
1380
|
-
title: [
|
|
1381
|
-
detail: [
|
|
1405
|
+
title: [oe],
|
|
1406
|
+
detail: [ae]
|
|
1382
1407
|
}, {
|
|
1383
|
-
title: [
|
|
1384
|
-
detail: [
|
|
1408
|
+
title: [oe],
|
|
1409
|
+
detail: [ae]
|
|
1385
1410
|
}],
|
|
1386
1411
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1387
1412
|
}, {
|
|
@@ -1417,8 +1442,8 @@ const ae = {
|
|
|
1417
1442
|
builderLinkComponent: !0
|
|
1418
1443
|
}
|
|
1419
1444
|
}, Se = (e) => e.toString();
|
|
1420
|
-
function
|
|
1421
|
-
var
|
|
1445
|
+
function Jt(e) {
|
|
1446
|
+
var h;
|
|
1422
1447
|
const [t, n] = T(() => []);
|
|
1423
1448
|
function i() {
|
|
1424
1449
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1435,8 +1460,8 @@ function Ht(e) {
|
|
|
1435
1460
|
}
|
|
1436
1461
|
};
|
|
1437
1462
|
}
|
|
1438
|
-
function
|
|
1439
|
-
const
|
|
1463
|
+
function a() {
|
|
1464
|
+
const u = {
|
|
1440
1465
|
...{
|
|
1441
1466
|
display: "flex",
|
|
1442
1467
|
flexDirection: "column"
|
|
@@ -1445,73 +1470,73 @@ function Ht(e) {
|
|
|
1445
1470
|
cursor: "pointer"
|
|
1446
1471
|
};
|
|
1447
1472
|
return Object.fromEntries(
|
|
1448
|
-
Object.entries(
|
|
1473
|
+
Object.entries(u).filter(([g, x]) => x !== void 0)
|
|
1449
1474
|
);
|
|
1450
1475
|
}
|
|
1451
|
-
function
|
|
1452
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1476
|
+
function r(f) {
|
|
1477
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1453
1478
|
}
|
|
1454
|
-
function
|
|
1455
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1479
|
+
function s(f) {
|
|
1480
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1456
1481
|
}
|
|
1457
|
-
function
|
|
1458
|
-
let
|
|
1482
|
+
function d() {
|
|
1483
|
+
let f = null;
|
|
1459
1484
|
if (e.grid && t.length && document) {
|
|
1460
|
-
const
|
|
1461
|
-
let
|
|
1462
|
-
`.builder-accordion-title[data-index="${
|
|
1485
|
+
const g = t[0];
|
|
1486
|
+
let b = document.querySelector(
|
|
1487
|
+
`.builder-accordion-title[data-index="${g}"]`
|
|
1463
1488
|
);
|
|
1464
|
-
if (
|
|
1465
|
-
let B =
|
|
1466
|
-
for (;
|
|
1467
|
-
if (
|
|
1468
|
-
if (
|
|
1489
|
+
if (f = g, b) {
|
|
1490
|
+
let B = b.getBoundingClientRect();
|
|
1491
|
+
for (; b = b && b.nextElementSibling; )
|
|
1492
|
+
if (b) {
|
|
1493
|
+
if (b.classList.contains("builder-accordion-detail"))
|
|
1469
1494
|
continue;
|
|
1470
|
-
const E =
|
|
1495
|
+
const E = b.getBoundingClientRect();
|
|
1471
1496
|
if (E.left > B.left) {
|
|
1472
1497
|
const A = parseInt(
|
|
1473
|
-
|
|
1498
|
+
b.getAttribute("data-index") || "",
|
|
1474
1499
|
10
|
|
1475
1500
|
);
|
|
1476
|
-
isNaN(A) || (B = E,
|
|
1501
|
+
isNaN(A) || (B = E, f = A);
|
|
1477
1502
|
} else
|
|
1478
1503
|
break;
|
|
1479
1504
|
}
|
|
1480
1505
|
}
|
|
1481
1506
|
}
|
|
1482
|
-
return typeof
|
|
1507
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1483
1508
|
}
|
|
1484
|
-
function
|
|
1485
|
-
const
|
|
1486
|
-
order: typeof
|
|
1509
|
+
function c() {
|
|
1510
|
+
const f = {
|
|
1511
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1487
1512
|
...e.grid && {
|
|
1488
1513
|
width: "100%"
|
|
1489
1514
|
}
|
|
1490
1515
|
};
|
|
1491
1516
|
return Object.fromEntries(
|
|
1492
|
-
Object.entries(
|
|
1517
|
+
Object.entries(f).filter(([u, g]) => g !== void 0)
|
|
1493
1518
|
);
|
|
1494
1519
|
}
|
|
1495
|
-
function f
|
|
1496
|
-
t.includes(
|
|
1520
|
+
function m(f) {
|
|
1521
|
+
t.includes(f) ? n(i() ? [] : t.filter((u) => u !== f)) : n(i() ? [f] : t.concat(f));
|
|
1497
1522
|
}
|
|
1498
|
-
return /* @__PURE__ */
|
|
1499
|
-
/* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ l("div", { className: "builder-accordion", style: o(), children: (h = e.items) == null ? void 0 : h.map((f, u) => /* @__PURE__ */ V(R, { children: [
|
|
1524
|
+
/* @__PURE__ */ l(
|
|
1500
1525
|
"div",
|
|
1501
1526
|
{
|
|
1502
|
-
className:
|
|
1527
|
+
className: r(u),
|
|
1503
1528
|
style: {
|
|
1504
|
-
...
|
|
1529
|
+
...a(),
|
|
1505
1530
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
1506
|
-
order:
|
|
1531
|
+
order: d() !== null ? Se(u) : Se(u + 1)
|
|
1507
1532
|
},
|
|
1508
|
-
"data-index":
|
|
1509
|
-
onClick: (
|
|
1510
|
-
children: /* @__PURE__ */
|
|
1533
|
+
"data-index": u,
|
|
1534
|
+
onClick: (g) => m(u),
|
|
1535
|
+
children: /* @__PURE__ */ l(
|
|
1511
1536
|
D,
|
|
1512
1537
|
{
|
|
1513
|
-
blocks:
|
|
1514
|
-
path: `items.${
|
|
1538
|
+
blocks: f.title,
|
|
1539
|
+
path: `items.${u}.title`,
|
|
1515
1540
|
parent: e.builderBlock.id,
|
|
1516
1541
|
context: e.builderContext,
|
|
1517
1542
|
registeredComponents: e.builderComponents,
|
|
@@ -1520,16 +1545,16 @@ function Ht(e) {
|
|
|
1520
1545
|
)
|
|
1521
1546
|
}
|
|
1522
1547
|
),
|
|
1523
|
-
t.includes(
|
|
1548
|
+
t.includes(u) ? /* @__PURE__ */ l(
|
|
1524
1549
|
"div",
|
|
1525
1550
|
{
|
|
1526
|
-
className:
|
|
1527
|
-
style:
|
|
1528
|
-
children: /* @__PURE__ */
|
|
1551
|
+
className: s(u),
|
|
1552
|
+
style: c(),
|
|
1553
|
+
children: /* @__PURE__ */ l(
|
|
1529
1554
|
D,
|
|
1530
1555
|
{
|
|
1531
|
-
blocks:
|
|
1532
|
-
path: `items.${
|
|
1556
|
+
blocks: f.detail,
|
|
1557
|
+
path: `items.${u}.detail`,
|
|
1533
1558
|
parent: e.builderBlock.id,
|
|
1534
1559
|
context: e.builderContext,
|
|
1535
1560
|
registeredComponents: e.builderComponents,
|
|
@@ -1540,7 +1565,7 @@ function Ht(e) {
|
|
|
1540
1565
|
) : null
|
|
1541
1566
|
] })) });
|
|
1542
1567
|
}
|
|
1543
|
-
const
|
|
1568
|
+
const Yt = {
|
|
1544
1569
|
name: "Core:Button",
|
|
1545
1570
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1546
1571
|
defaultStyles: {
|
|
@@ -1576,7 +1601,7 @@ const qt = {
|
|
|
1576
1601
|
shouldReceiveBuilderProps: {
|
|
1577
1602
|
builderLinkComponent: !0
|
|
1578
1603
|
}
|
|
1579
|
-
},
|
|
1604
|
+
}, Gt = {
|
|
1580
1605
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1581
1606
|
name: "Columns",
|
|
1582
1607
|
isRSC: !0,
|
|
@@ -1755,7 +1780,7 @@ const qt = {
|
|
|
1755
1780
|
});
|
|
1756
1781
|
}
|
|
1757
1782
|
const n = e.get("columns");
|
|
1758
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1783
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((s, d) => s + d.get("width"), 0) !== 100) && t();
|
|
1759
1784
|
}
|
|
1760
1785
|
}, {
|
|
1761
1786
|
name: "space",
|
|
@@ -1783,13 +1808,13 @@ const qt = {
|
|
|
1783
1808
|
builderComponents: !0,
|
|
1784
1809
|
builderLinkComponent: !0
|
|
1785
1810
|
}
|
|
1786
|
-
},
|
|
1811
|
+
}, Qt = {
|
|
1787
1812
|
name: "Fragment",
|
|
1788
1813
|
static: !0,
|
|
1789
1814
|
hidden: !0,
|
|
1790
1815
|
canHaveChildren: !0,
|
|
1791
1816
|
noWrap: !0
|
|
1792
|
-
},
|
|
1817
|
+
}, Xt = {
|
|
1793
1818
|
name: "Image",
|
|
1794
1819
|
static: !0,
|
|
1795
1820
|
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",
|
|
@@ -1809,29 +1834,29 @@ const qt = {
|
|
|
1809
1834
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1810
1835
|
onChange: (e) => {
|
|
1811
1836
|
e.delete("srcset"), e.delete("noWebp");
|
|
1812
|
-
function n(
|
|
1813
|
-
return new Promise((
|
|
1814
|
-
const
|
|
1815
|
-
let
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
},
|
|
1819
|
-
console.warn("Image load failed",
|
|
1820
|
-
}),
|
|
1821
|
-
|
|
1822
|
-
},
|
|
1837
|
+
function n(r, s = 6e4) {
|
|
1838
|
+
return new Promise((d, c) => {
|
|
1839
|
+
const m = document.createElement("img");
|
|
1840
|
+
let h = !1;
|
|
1841
|
+
m.onload = () => {
|
|
1842
|
+
h = !0, d(m);
|
|
1843
|
+
}, m.addEventListener("error", (f) => {
|
|
1844
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1845
|
+
}), m.src = r, setTimeout(() => {
|
|
1846
|
+
h || c(new Error("Image load timed out"));
|
|
1847
|
+
}, s);
|
|
1823
1848
|
});
|
|
1824
1849
|
}
|
|
1825
|
-
function i(
|
|
1826
|
-
return Math.round(
|
|
1850
|
+
function i(r) {
|
|
1851
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1827
1852
|
}
|
|
1828
|
-
const o = e.get("image"),
|
|
1829
|
-
if (fetch(o).then((
|
|
1830
|
-
|
|
1831
|
-
}), o && (!
|
|
1832
|
-
return n(o).then((
|
|
1833
|
-
const
|
|
1834
|
-
e.get("image") === o && (!
|
|
1853
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1854
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1855
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1856
|
+
}), o && (!a || a === 0.7041))
|
|
1857
|
+
return n(o).then((r) => {
|
|
1858
|
+
const s = e.get("aspectRatio");
|
|
1859
|
+
e.get("image") === o && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1835
1860
|
});
|
|
1836
1861
|
}
|
|
1837
1862
|
}, {
|
|
@@ -1897,7 +1922,7 @@ const qt = {
|
|
|
1897
1922
|
shouldReceiveBuilderProps: {
|
|
1898
1923
|
builderBlock: !0
|
|
1899
1924
|
}
|
|
1900
|
-
},
|
|
1925
|
+
}, Zt = {
|
|
1901
1926
|
name: "Core:Section",
|
|
1902
1927
|
static: !0,
|
|
1903
1928
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1936,7 +1961,7 @@ const qt = {
|
|
|
1936
1961
|
}
|
|
1937
1962
|
}
|
|
1938
1963
|
}]
|
|
1939
|
-
},
|
|
1964
|
+
}, en = {
|
|
1940
1965
|
name: "Slot",
|
|
1941
1966
|
isRSC: !0,
|
|
1942
1967
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1953,9 +1978,9 @@ const qt = {
|
|
|
1953
1978
|
builderContext: !0
|
|
1954
1979
|
}
|
|
1955
1980
|
};
|
|
1956
|
-
function
|
|
1981
|
+
function tn(e) {
|
|
1957
1982
|
var t, n, i;
|
|
1958
|
-
return /* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ l(
|
|
1959
1984
|
"div",
|
|
1960
1985
|
{
|
|
1961
1986
|
style: {
|
|
@@ -1964,7 +1989,7 @@ function Gt(e) {
|
|
|
1964
1989
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1965
1990
|
"builder-slot": e.name
|
|
1966
1991
|
},
|
|
1967
|
-
children: /* @__PURE__ */
|
|
1992
|
+
children: /* @__PURE__ */ l(
|
|
1968
1993
|
D,
|
|
1969
1994
|
{
|
|
1970
1995
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -1976,7 +2001,7 @@ function Gt(e) {
|
|
|
1976
2001
|
}
|
|
1977
2002
|
);
|
|
1978
2003
|
}
|
|
1979
|
-
const
|
|
2004
|
+
const nn = {
|
|
1980
2005
|
name: "Symbol",
|
|
1981
2006
|
noWrap: !0,
|
|
1982
2007
|
static: !0,
|
|
@@ -2015,7 +2040,7 @@ const Qt = {
|
|
|
2015
2040
|
builderComponents: !0,
|
|
2016
2041
|
builderLinkComponent: !0
|
|
2017
2042
|
}
|
|
2018
|
-
},
|
|
2043
|
+
}, re = {
|
|
2019
2044
|
"@type": "@builder.io/sdk:Element",
|
|
2020
2045
|
responsiveStyles: {
|
|
2021
2046
|
large: {
|
|
@@ -2037,7 +2062,7 @@ const Qt = {
|
|
|
2037
2062
|
text: "New tab"
|
|
2038
2063
|
}
|
|
2039
2064
|
}
|
|
2040
|
-
},
|
|
2065
|
+
}, le = {
|
|
2041
2066
|
"@type": "@builder.io/sdk:Element",
|
|
2042
2067
|
responsiveStyles: {
|
|
2043
2068
|
large: {
|
|
@@ -2053,7 +2078,7 @@ const Qt = {
|
|
|
2053
2078
|
text: "New tab content "
|
|
2054
2079
|
}
|
|
2055
2080
|
}
|
|
2056
|
-
},
|
|
2081
|
+
}, on = {
|
|
2057
2082
|
name: "Builder: Tabs",
|
|
2058
2083
|
inputs: [{
|
|
2059
2084
|
name: "tabs",
|
|
@@ -2063,16 +2088,16 @@ const Qt = {
|
|
|
2063
2088
|
name: "label",
|
|
2064
2089
|
type: "uiBlocks",
|
|
2065
2090
|
hideFromUI: !0,
|
|
2066
|
-
defaultValue: [
|
|
2091
|
+
defaultValue: [re]
|
|
2067
2092
|
}, {
|
|
2068
2093
|
name: "content",
|
|
2069
2094
|
type: "uiBlocks",
|
|
2070
2095
|
hideFromUI: !0,
|
|
2071
|
-
defaultValue: [
|
|
2096
|
+
defaultValue: [le]
|
|
2072
2097
|
}],
|
|
2073
2098
|
defaultValue: [{
|
|
2074
2099
|
label: [{
|
|
2075
|
-
...
|
|
2100
|
+
...re,
|
|
2076
2101
|
component: {
|
|
2077
2102
|
name: "Text",
|
|
2078
2103
|
options: {
|
|
@@ -2081,7 +2106,7 @@ const Qt = {
|
|
|
2081
2106
|
}
|
|
2082
2107
|
}],
|
|
2083
2108
|
content: [{
|
|
2084
|
-
...
|
|
2109
|
+
...le,
|
|
2085
2110
|
component: {
|
|
2086
2111
|
name: "Text",
|
|
2087
2112
|
options: {
|
|
@@ -2091,7 +2116,7 @@ const Qt = {
|
|
|
2091
2116
|
}]
|
|
2092
2117
|
}, {
|
|
2093
2118
|
label: [{
|
|
2094
|
-
...
|
|
2119
|
+
...re,
|
|
2095
2120
|
component: {
|
|
2096
2121
|
name: "Text",
|
|
2097
2122
|
options: {
|
|
@@ -2100,7 +2125,7 @@ const Qt = {
|
|
|
2100
2125
|
}
|
|
2101
2126
|
}],
|
|
2102
2127
|
content: [{
|
|
2103
|
-
...
|
|
2128
|
+
...le,
|
|
2104
2129
|
component: {
|
|
2105
2130
|
name: "Text",
|
|
2106
2131
|
options: {
|
|
@@ -2157,19 +2182,19 @@ const Qt = {
|
|
|
2157
2182
|
builderLinkComponent: !0
|
|
2158
2183
|
}
|
|
2159
2184
|
};
|
|
2160
|
-
function
|
|
2161
|
-
var
|
|
2185
|
+
function an(e) {
|
|
2186
|
+
var a;
|
|
2162
2187
|
const [t, n] = T(
|
|
2163
2188
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2164
2189
|
);
|
|
2165
|
-
function i(
|
|
2166
|
-
return e.tabs && e.tabs[
|
|
2190
|
+
function i(r) {
|
|
2191
|
+
return e.tabs && e.tabs[r].content;
|
|
2167
2192
|
}
|
|
2168
|
-
function o(
|
|
2169
|
-
|
|
2193
|
+
function o(r) {
|
|
2194
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2170
2195
|
}
|
|
2171
2196
|
return /* @__PURE__ */ V("div", { children: [
|
|
2172
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ l(
|
|
2173
2198
|
"div",
|
|
2174
2199
|
{
|
|
2175
2200
|
className: "builder-tabs-wrap",
|
|
@@ -2179,31 +2204,31 @@ function Zt(e) {
|
|
|
2179
2204
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2180
2205
|
overflow: "auto"
|
|
2181
2206
|
},
|
|
2182
|
-
children: (
|
|
2207
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, s) => /* @__PURE__ */ l(
|
|
2183
2208
|
"span",
|
|
2184
2209
|
{
|
|
2185
|
-
className: `builder-tab-wrap ${t ===
|
|
2210
|
+
className: `builder-tab-wrap ${t === s ? "builder-tab-active" : ""}`,
|
|
2186
2211
|
style: {
|
|
2187
|
-
...t ===
|
|
2212
|
+
...t === s ? e.activeTabStyle : {}
|
|
2188
2213
|
},
|
|
2189
|
-
onClick: (
|
|
2190
|
-
children: /* @__PURE__ */
|
|
2214
|
+
onClick: (d) => o(s),
|
|
2215
|
+
children: /* @__PURE__ */ l(
|
|
2191
2216
|
D,
|
|
2192
2217
|
{
|
|
2193
2218
|
parent: e.builderBlock.id,
|
|
2194
|
-
path: `component.options.tabs.${
|
|
2195
|
-
blocks:
|
|
2219
|
+
path: `component.options.tabs.${s}.label`,
|
|
2220
|
+
blocks: r.label,
|
|
2196
2221
|
context: e.builderContext,
|
|
2197
2222
|
registeredComponents: e.builderComponents,
|
|
2198
2223
|
linkComponent: e.builderLinkComponent
|
|
2199
2224
|
}
|
|
2200
2225
|
)
|
|
2201
2226
|
},
|
|
2202
|
-
|
|
2227
|
+
s
|
|
2203
2228
|
))
|
|
2204
2229
|
}
|
|
2205
2230
|
),
|
|
2206
|
-
i(t) ? /* @__PURE__ */
|
|
2231
|
+
i(t) ? /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(
|
|
2207
2232
|
D,
|
|
2208
2233
|
{
|
|
2209
2234
|
parent: e.builderBlock.id,
|
|
@@ -2216,7 +2241,7 @@ function Zt(e) {
|
|
|
2216
2241
|
) }) : null
|
|
2217
2242
|
] });
|
|
2218
2243
|
}
|
|
2219
|
-
const
|
|
2244
|
+
const rn = {
|
|
2220
2245
|
shouldReceiveBuilderProps: {
|
|
2221
2246
|
builderBlock: !1,
|
|
2222
2247
|
builderContext: !0
|
|
@@ -2239,28 +2264,28 @@ const en = {
|
|
|
2239
2264
|
textAlign: "center"
|
|
2240
2265
|
}
|
|
2241
2266
|
};
|
|
2242
|
-
function
|
|
2267
|
+
function ln(e) {
|
|
2243
2268
|
function t() {
|
|
2244
|
-
var
|
|
2269
|
+
var s;
|
|
2245
2270
|
const n = e.builderContext, {
|
|
2246
2271
|
context: i,
|
|
2247
2272
|
localState: o,
|
|
2248
|
-
rootState:
|
|
2249
|
-
rootSetState:
|
|
2273
|
+
rootState: a,
|
|
2274
|
+
rootSetState: r
|
|
2250
2275
|
} = n;
|
|
2251
|
-
return String(((
|
|
2276
|
+
return String(((s = e.text) == null ? void 0 : s.toString()) || "").replace(
|
|
2252
2277
|
/{{([^}]+)}}/g,
|
|
2253
|
-
(
|
|
2254
|
-
code:
|
|
2278
|
+
(d, c) => K({
|
|
2279
|
+
code: c,
|
|
2255
2280
|
context: i,
|
|
2256
2281
|
localState: o,
|
|
2257
|
-
rootState:
|
|
2258
|
-
rootSetState:
|
|
2282
|
+
rootState: a,
|
|
2283
|
+
rootSetState: r,
|
|
2259
2284
|
enableCache: !1
|
|
2260
2285
|
})
|
|
2261
2286
|
);
|
|
2262
2287
|
}
|
|
2263
|
-
return /* @__PURE__ */
|
|
2288
|
+
return /* @__PURE__ */ l(
|
|
2264
2289
|
"div",
|
|
2265
2290
|
{
|
|
2266
2291
|
className: "builder-text",
|
|
@@ -2271,7 +2296,7 @@ function tn(e) {
|
|
|
2271
2296
|
}
|
|
2272
2297
|
);
|
|
2273
2298
|
}
|
|
2274
|
-
const
|
|
2299
|
+
const sn = {
|
|
2275
2300
|
name: "Custom Code",
|
|
2276
2301
|
static: !0,
|
|
2277
2302
|
requiredPermissions: ["editCode"],
|
|
@@ -2294,36 +2319,36 @@ const nn = {
|
|
|
2294
2319
|
advanced: !0
|
|
2295
2320
|
}]
|
|
2296
2321
|
};
|
|
2297
|
-
function
|
|
2298
|
-
const t =
|
|
2322
|
+
function cn(e) {
|
|
2323
|
+
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []);
|
|
2299
2324
|
return P(() => {
|
|
2300
|
-
var
|
|
2301
|
-
if (!((
|
|
2325
|
+
var s;
|
|
2326
|
+
if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
|
|
2302
2327
|
return;
|
|
2303
|
-
const
|
|
2304
|
-
for (let
|
|
2305
|
-
const
|
|
2306
|
-
if (
|
|
2307
|
-
if (n.includes(
|
|
2328
|
+
const r = t.current.getElementsByTagName("script");
|
|
2329
|
+
for (let d = 0; d < r.length; d++) {
|
|
2330
|
+
const c = r[d];
|
|
2331
|
+
if (c.src) {
|
|
2332
|
+
if (n.includes(c.src))
|
|
2308
2333
|
continue;
|
|
2309
|
-
n.push(
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2312
|
-
} else if (!
|
|
2334
|
+
n.push(c.src);
|
|
2335
|
+
const m = document.createElement("script");
|
|
2336
|
+
m.async = !0, m.src = c.src, document.head.appendChild(m);
|
|
2337
|
+
} else if (!c.type || [
|
|
2313
2338
|
"text/javascript",
|
|
2314
2339
|
"application/javascript",
|
|
2315
2340
|
"application/ecmascript"
|
|
2316
|
-
].includes(
|
|
2317
|
-
if (o.includes(
|
|
2341
|
+
].includes(c.type)) {
|
|
2342
|
+
if (o.includes(c.innerText))
|
|
2318
2343
|
continue;
|
|
2319
2344
|
try {
|
|
2320
|
-
o.push(
|
|
2321
|
-
} catch (
|
|
2322
|
-
console.warn("`CustomCode`: Error running script:",
|
|
2345
|
+
o.push(c.innerText), new Function(c.innerText)();
|
|
2346
|
+
} catch (m) {
|
|
2347
|
+
console.warn("`CustomCode`: Error running script:", m);
|
|
2323
2348
|
}
|
|
2324
2349
|
}
|
|
2325
2350
|
}
|
|
2326
|
-
}, []), /* @__PURE__ */
|
|
2351
|
+
}, []), /* @__PURE__ */ l(
|
|
2327
2352
|
"div",
|
|
2328
2353
|
{
|
|
2329
2354
|
ref: t,
|
|
@@ -2332,7 +2357,7 @@ function on(e) {
|
|
|
2332
2357
|
}
|
|
2333
2358
|
);
|
|
2334
2359
|
}
|
|
2335
|
-
const
|
|
2360
|
+
const dn = {
|
|
2336
2361
|
name: "Embed",
|
|
2337
2362
|
static: !0,
|
|
2338
2363
|
inputs: [{
|
|
@@ -2347,30 +2372,30 @@ const an = {
|
|
|
2347
2372
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2348
2373
|
hideFromUI: !0
|
|
2349
2374
|
}]
|
|
2350
|
-
},
|
|
2351
|
-
function
|
|
2352
|
-
const t =
|
|
2353
|
-
function
|
|
2375
|
+
}, un = ["text/javascript", "application/javascript", "application/ecmascript"], mn = (e) => un.includes(e.type);
|
|
2376
|
+
function fn(e) {
|
|
2377
|
+
const t = z(null), [n, i] = T(() => []), [o, a] = T(() => []), [r, s] = T(() => !1);
|
|
2378
|
+
function d() {
|
|
2354
2379
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2355
2380
|
return;
|
|
2356
|
-
const
|
|
2357
|
-
for (let
|
|
2358
|
-
const
|
|
2359
|
-
if (
|
|
2360
|
-
n.push(
|
|
2361
|
-
const
|
|
2362
|
-
|
|
2363
|
-
} else if (
|
|
2381
|
+
const c = t.current.getElementsByTagName("script");
|
|
2382
|
+
for (let m = 0; m < c.length; m++) {
|
|
2383
|
+
const h = c[m];
|
|
2384
|
+
if (h.src && !n.includes(h.src)) {
|
|
2385
|
+
n.push(h.src);
|
|
2386
|
+
const f = document.createElement("script");
|
|
2387
|
+
f.async = !0, f.src = h.src, document.head.appendChild(f);
|
|
2388
|
+
} else if (mn(h) && !o.includes(h.innerText))
|
|
2364
2389
|
try {
|
|
2365
|
-
o.push(
|
|
2366
|
-
} catch (
|
|
2367
|
-
console.warn("`Embed`: Error running script:",
|
|
2390
|
+
o.push(h.innerText), new Function(h.innerText)();
|
|
2391
|
+
} catch (f) {
|
|
2392
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2368
2393
|
}
|
|
2369
2394
|
}
|
|
2370
2395
|
}
|
|
2371
2396
|
return P(() => {
|
|
2372
|
-
t.current && !
|
|
2373
|
-
}, [t.current,
|
|
2397
|
+
t.current && !r && (s(!0), d());
|
|
2398
|
+
}, [t.current, r]), /* @__PURE__ */ l(
|
|
2374
2399
|
"div",
|
|
2375
2400
|
{
|
|
2376
2401
|
className: "builder-embed",
|
|
@@ -2379,7 +2404,7 @@ function sn(e) {
|
|
|
2379
2404
|
}
|
|
2380
2405
|
);
|
|
2381
2406
|
}
|
|
2382
|
-
const
|
|
2407
|
+
const hn = {
|
|
2383
2408
|
name: "Form:Form",
|
|
2384
2409
|
// editableTags: ['builder-form-error']
|
|
2385
2410
|
defaults: {
|
|
@@ -2616,118 +2641,118 @@ const cn = {
|
|
|
2616
2641
|
builderComponents: !0,
|
|
2617
2642
|
builderLinkComponent: !0
|
|
2618
2643
|
}
|
|
2619
|
-
},
|
|
2644
|
+
}, gn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], bn = () => {
|
|
2620
2645
|
const e = process.env.NODE_ENV || "production";
|
|
2621
|
-
return
|
|
2622
|
-
},
|
|
2623
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
2646
|
+
return gn.includes(e) ? e : "production";
|
|
2647
|
+
}, pn = (e, t, n) => {
|
|
2648
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
2624
2649
|
return i === void 0 || i === e ? n : i;
|
|
2625
2650
|
};
|
|
2626
|
-
function
|
|
2627
|
-
var
|
|
2628
|
-
const t =
|
|
2629
|
-
function
|
|
2630
|
-
var
|
|
2631
|
-
const
|
|
2651
|
+
function yn(e) {
|
|
2652
|
+
var h, f;
|
|
2653
|
+
const t = z(null), [n, i] = T(() => "unsubmitted"), [o, a] = T(() => null), [r, s] = T(() => "");
|
|
2654
|
+
function d(u) {
|
|
2655
|
+
var x, b;
|
|
2656
|
+
const g = {
|
|
2632
2657
|
...e.builderContext.rootState,
|
|
2633
|
-
...
|
|
2658
|
+
...u
|
|
2634
2659
|
};
|
|
2635
|
-
e.builderContext.rootSetState ? (
|
|
2660
|
+
e.builderContext.rootSetState ? (b = (x = e.builderContext).rootSetState) == null || b.call(x, g) : e.builderContext.rootState = g;
|
|
2636
2661
|
}
|
|
2637
|
-
function
|
|
2638
|
-
return
|
|
2662
|
+
function c() {
|
|
2663
|
+
return $() && e.previewState || n;
|
|
2639
2664
|
}
|
|
2640
|
-
function
|
|
2641
|
-
var
|
|
2642
|
-
const
|
|
2665
|
+
function m(u) {
|
|
2666
|
+
var x;
|
|
2667
|
+
const g = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2643
2668
|
if (e.sendSubmissionsTo === "zapier")
|
|
2644
|
-
|
|
2645
|
-
else if (
|
|
2669
|
+
u.preventDefault();
|
|
2670
|
+
else if (g) {
|
|
2646
2671
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2647
|
-
|
|
2672
|
+
u.preventDefault();
|
|
2648
2673
|
return;
|
|
2649
2674
|
}
|
|
2650
|
-
|
|
2651
|
-
const
|
|
2675
|
+
u.preventDefault();
|
|
2676
|
+
const b = u.currentTarget || u.target, B = e.customHeaders || {};
|
|
2652
2677
|
let E;
|
|
2653
|
-
const A = new FormData(
|
|
2654
|
-
let
|
|
2655
|
-
const
|
|
2656
|
-
if (
|
|
2657
|
-
if (
|
|
2658
|
-
if (
|
|
2659
|
-
return
|
|
2660
|
-
key:
|
|
2661
|
-
value:
|
|
2678
|
+
const A = new FormData(b), O = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).map((y) => {
|
|
2679
|
+
let p;
|
|
2680
|
+
const S = y.name;
|
|
2681
|
+
if (y instanceof HTMLInputElement)
|
|
2682
|
+
if (y.type === "radio") {
|
|
2683
|
+
if (y.checked)
|
|
2684
|
+
return p = y.name, {
|
|
2685
|
+
key: S,
|
|
2686
|
+
value: p
|
|
2662
2687
|
};
|
|
2663
|
-
} else if (
|
|
2664
|
-
|
|
2665
|
-
else if (
|
|
2666
|
-
const
|
|
2667
|
-
isNaN(
|
|
2688
|
+
} else if (y.type === "checkbox")
|
|
2689
|
+
p = y.checked;
|
|
2690
|
+
else if (y.type === "number" || y.type === "range") {
|
|
2691
|
+
const k = y.valueAsNumber;
|
|
2692
|
+
isNaN(k) || (p = k);
|
|
2668
2693
|
} else
|
|
2669
|
-
|
|
2694
|
+
y.type === "file" ? p = y.files : p = y.value;
|
|
2670
2695
|
else
|
|
2671
|
-
|
|
2696
|
+
p = y.value;
|
|
2672
2697
|
return {
|
|
2673
|
-
key:
|
|
2674
|
-
value:
|
|
2698
|
+
key: S,
|
|
2699
|
+
value: p
|
|
2675
2700
|
};
|
|
2676
2701
|
});
|
|
2677
|
-
let
|
|
2678
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2679
|
-
(
|
|
2680
|
-
}),
|
|
2702
|
+
let v = e.contentType;
|
|
2703
|
+
if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: y }) => {
|
|
2704
|
+
(y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (v = "multipart/form-data");
|
|
2705
|
+
}), v !== "application/json")
|
|
2681
2706
|
E = A;
|
|
2682
2707
|
else {
|
|
2683
|
-
const
|
|
2684
|
-
Array.from(O).forEach(({ value:
|
|
2685
|
-
|
|
2686
|
-
}), E = JSON.stringify(
|
|
2708
|
+
const y = {};
|
|
2709
|
+
Array.from(O).forEach(({ value: p, key: S }) => {
|
|
2710
|
+
Ae(y, S, p);
|
|
2711
|
+
}), E = JSON.stringify(y);
|
|
2687
2712
|
}
|
|
2688
|
-
|
|
2713
|
+
v && v !== "multipart/form-data" && (g && ((x = e.action) != null && x.includes("zapier.com")) || (B["content-type"] = v));
|
|
2689
2714
|
const w = new CustomEvent("presubmit", { detail: { body: E } });
|
|
2690
2715
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2691
2716
|
return;
|
|
2692
2717
|
i("sending");
|
|
2693
|
-
const N = `${
|
|
2718
|
+
const N = `${bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2694
2719
|
e.sendSubmissionsToEmail || ""
|
|
2695
2720
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2696
2721
|
fetch(
|
|
2697
2722
|
e.sendSubmissionsTo === "email" ? N : e.action,
|
|
2698
2723
|
{ body: E, headers: B, method: e.method || "post" }
|
|
2699
2724
|
).then(
|
|
2700
|
-
async (
|
|
2701
|
-
let
|
|
2702
|
-
const
|
|
2703
|
-
if (
|
|
2704
|
-
let
|
|
2705
|
-
|
|
2725
|
+
async (y) => {
|
|
2726
|
+
let p;
|
|
2727
|
+
const S = y.headers.get("content-type");
|
|
2728
|
+
if (S && S.indexOf("application/json") !== -1 ? p = await y.json() : p = await y.text(), !y.ok && e.errorMessagePath) {
|
|
2729
|
+
let k = pn(p, e.errorMessagePath);
|
|
2730
|
+
k && (typeof k != "string" && (k = JSON.stringify(k)), s(k), d({ formErrorMessage: k }));
|
|
2706
2731
|
}
|
|
2707
|
-
if (
|
|
2708
|
-
const
|
|
2709
|
-
detail: { res:
|
|
2732
|
+
if (a(p), i(y.ok ? "success" : "error"), y.ok) {
|
|
2733
|
+
const k = new CustomEvent("submit:success", {
|
|
2734
|
+
detail: { res: y, body: p }
|
|
2710
2735
|
});
|
|
2711
2736
|
if (t.current) {
|
|
2712
|
-
if (t.current.dispatchEvent(
|
|
2737
|
+
if (t.current.dispatchEvent(k), k.defaultPrevented)
|
|
2713
2738
|
return;
|
|
2714
2739
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2715
2740
|
}
|
|
2716
2741
|
if (e.successUrl)
|
|
2717
2742
|
if (t.current) {
|
|
2718
|
-
const
|
|
2743
|
+
const C = new CustomEvent("route", {
|
|
2719
2744
|
detail: { url: e.successUrl }
|
|
2720
2745
|
});
|
|
2721
|
-
t.current.dispatchEvent(
|
|
2746
|
+
t.current.dispatchEvent(C), C.defaultPrevented || (location.href = e.successUrl);
|
|
2722
2747
|
} else
|
|
2723
2748
|
location.href = e.successUrl;
|
|
2724
2749
|
}
|
|
2725
2750
|
},
|
|
2726
|
-
(
|
|
2727
|
-
const
|
|
2728
|
-
detail: { error:
|
|
2751
|
+
(y) => {
|
|
2752
|
+
const p = new CustomEvent("submit:error", {
|
|
2753
|
+
detail: { error: y }
|
|
2729
2754
|
});
|
|
2730
|
-
t.current && (t.current.dispatchEvent(
|
|
2755
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (a(y), i("error"));
|
|
2731
2756
|
}
|
|
2732
2757
|
);
|
|
2733
2758
|
}
|
|
@@ -2742,20 +2767,20 @@ function fn(e) {
|
|
|
2742
2767
|
action: !e.sendWithJs && e.action,
|
|
2743
2768
|
method: e.method,
|
|
2744
2769
|
name: e.name,
|
|
2745
|
-
onSubmit: (
|
|
2770
|
+
onSubmit: (u) => m(u),
|
|
2746
2771
|
...e.attributes,
|
|
2747
2772
|
children: [
|
|
2748
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2749
|
-
|
|
2773
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ l(R, { children: (f = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : f.map((u, g) => /* @__PURE__ */ l(
|
|
2774
|
+
J,
|
|
2750
2775
|
{
|
|
2751
|
-
block:
|
|
2776
|
+
block: u,
|
|
2752
2777
|
context: e.builderContext,
|
|
2753
2778
|
registeredComponents: e.builderComponents,
|
|
2754
2779
|
linkComponent: e.builderLinkComponent
|
|
2755
2780
|
},
|
|
2756
|
-
`form-block-${
|
|
2781
|
+
`form-block-${g}`
|
|
2757
2782
|
)) }) : null,
|
|
2758
|
-
|
|
2783
|
+
c() === "error" ? /* @__PURE__ */ l(
|
|
2759
2784
|
D,
|
|
2760
2785
|
{
|
|
2761
2786
|
path: "errorMessage",
|
|
@@ -2763,7 +2788,7 @@ function fn(e) {
|
|
|
2763
2788
|
context: e.builderContext
|
|
2764
2789
|
}
|
|
2765
2790
|
) : null,
|
|
2766
|
-
|
|
2791
|
+
c() === "sending" ? /* @__PURE__ */ l(
|
|
2767
2792
|
D,
|
|
2768
2793
|
{
|
|
2769
2794
|
path: "sendingMessage",
|
|
@@ -2771,8 +2796,8 @@ function fn(e) {
|
|
|
2771
2796
|
context: e.builderContext
|
|
2772
2797
|
}
|
|
2773
2798
|
) : null,
|
|
2774
|
-
|
|
2775
|
-
|
|
2799
|
+
c() === "error" && o ? /* @__PURE__ */ l("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2800
|
+
c() === "success" ? /* @__PURE__ */ l(
|
|
2776
2801
|
D,
|
|
2777
2802
|
{
|
|
2778
2803
|
path: "successMessage",
|
|
@@ -2784,11 +2809,11 @@ function fn(e) {
|
|
|
2784
2809
|
}
|
|
2785
2810
|
),
|
|
2786
2811
|
" ",
|
|
2787
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ l("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2788
2813
|
" "
|
|
2789
2814
|
] });
|
|
2790
2815
|
}
|
|
2791
|
-
const
|
|
2816
|
+
const xn = {
|
|
2792
2817
|
name: "Form:Input",
|
|
2793
2818
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2794
2819
|
inputs: [
|
|
@@ -2840,12 +2865,12 @@ const hn = {
|
|
|
2840
2865
|
borderColor: "#ccc"
|
|
2841
2866
|
}
|
|
2842
2867
|
};
|
|
2843
|
-
function
|
|
2844
|
-
return /* @__PURE__ */
|
|
2868
|
+
function vn(e) {
|
|
2869
|
+
return /* @__PURE__ */ Be(
|
|
2845
2870
|
"input",
|
|
2846
2871
|
{
|
|
2847
2872
|
...e.attributes,
|
|
2848
|
-
key:
|
|
2873
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2849
2874
|
placeholder: e.placeholder,
|
|
2850
2875
|
type: e.type,
|
|
2851
2876
|
name: e.name,
|
|
@@ -2855,7 +2880,7 @@ function gn(e) {
|
|
|
2855
2880
|
}
|
|
2856
2881
|
);
|
|
2857
2882
|
}
|
|
2858
|
-
const
|
|
2883
|
+
const Sn = {
|
|
2859
2884
|
name: "Form:Select",
|
|
2860
2885
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2861
2886
|
defaultStyles: {
|
|
@@ -2898,22 +2923,22 @@ const bn = {
|
|
|
2898
2923
|
static: !0,
|
|
2899
2924
|
noWrap: !0
|
|
2900
2925
|
};
|
|
2901
|
-
function
|
|
2926
|
+
function kn(e) {
|
|
2902
2927
|
var t;
|
|
2903
|
-
return /* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */ Be(
|
|
2904
2929
|
"select",
|
|
2905
2930
|
{
|
|
2906
2931
|
...e.attributes,
|
|
2907
2932
|
value: e.value,
|
|
2908
|
-
key:
|
|
2933
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2909
2934
|
defaultValue: e.defaultValue,
|
|
2910
2935
|
name: e.name,
|
|
2911
2936
|
required: e.required
|
|
2912
2937
|
},
|
|
2913
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2938
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ l("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2914
2939
|
);
|
|
2915
2940
|
}
|
|
2916
|
-
const
|
|
2941
|
+
const Cn = {
|
|
2917
2942
|
name: "Form:SubmitButton",
|
|
2918
2943
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2919
2944
|
defaultStyles: {
|
|
@@ -2939,10 +2964,10 @@ const yn = {
|
|
|
2939
2964
|
// TODO: defaultChildren
|
|
2940
2965
|
// canHaveChildren: true,
|
|
2941
2966
|
};
|
|
2942
|
-
function
|
|
2943
|
-
return /* @__PURE__ */
|
|
2967
|
+
function Tn(e) {
|
|
2968
|
+
return /* @__PURE__ */ l("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2944
2969
|
}
|
|
2945
|
-
const
|
|
2970
|
+
const In = {
|
|
2946
2971
|
name: "Form:TextArea",
|
|
2947
2972
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2948
2973
|
inputs: [{
|
|
@@ -2979,8 +3004,8 @@ const vn = {
|
|
|
2979
3004
|
static: !0,
|
|
2980
3005
|
noWrap: !0
|
|
2981
3006
|
};
|
|
2982
|
-
function
|
|
2983
|
-
return /* @__PURE__ */
|
|
3007
|
+
function wn(e) {
|
|
3008
|
+
return /* @__PURE__ */ l(
|
|
2984
3009
|
"textarea",
|
|
2985
3010
|
{
|
|
2986
3011
|
...e.attributes,
|
|
@@ -2992,7 +3017,7 @@ function Sn(e) {
|
|
|
2992
3017
|
}
|
|
2993
3018
|
);
|
|
2994
3019
|
}
|
|
2995
|
-
const
|
|
3020
|
+
const Rn = {
|
|
2996
3021
|
// friendlyName?
|
|
2997
3022
|
name: "Raw:Img",
|
|
2998
3023
|
hideFromInsertMenu: !0,
|
|
@@ -3007,8 +3032,8 @@ const kn = {
|
|
|
3007
3032
|
noWrap: !0,
|
|
3008
3033
|
static: !0
|
|
3009
3034
|
};
|
|
3010
|
-
function
|
|
3011
|
-
return /* @__PURE__ */
|
|
3035
|
+
function En(e) {
|
|
3036
|
+
return /* @__PURE__ */ l(
|
|
3012
3037
|
"img",
|
|
3013
3038
|
{
|
|
3014
3039
|
style: {
|
|
@@ -3019,10 +3044,10 @@ function Cn(e) {
|
|
|
3019
3044
|
src: e.imgSrc || e.image,
|
|
3020
3045
|
...e.attributes
|
|
3021
3046
|
},
|
|
3022
|
-
|
|
3047
|
+
$() && e.imgSrc || "default-key"
|
|
3023
3048
|
);
|
|
3024
3049
|
}
|
|
3025
|
-
const
|
|
3050
|
+
const Bn = {
|
|
3026
3051
|
name: "Video",
|
|
3027
3052
|
canHaveChildren: !0,
|
|
3028
3053
|
defaultStyles: {
|
|
@@ -3107,8 +3132,8 @@ const Tn = {
|
|
|
3107
3132
|
builderBlock: !0
|
|
3108
3133
|
}
|
|
3109
3134
|
};
|
|
3110
|
-
function
|
|
3111
|
-
var i, o, r,
|
|
3135
|
+
function Pn(e) {
|
|
3136
|
+
var i, o, a, r, s, d, c;
|
|
3112
3137
|
function t() {
|
|
3113
3138
|
return {
|
|
3114
3139
|
...e.autoPlay === !0 ? {
|
|
@@ -3140,7 +3165,7 @@ function In(e) {
|
|
|
3140
3165
|
position: "relative"
|
|
3141
3166
|
},
|
|
3142
3167
|
children: [
|
|
3143
|
-
/* @__PURE__ */
|
|
3168
|
+
/* @__PURE__ */ l(
|
|
3144
3169
|
"video",
|
|
3145
3170
|
{
|
|
3146
3171
|
className: "builder-video",
|
|
@@ -3162,10 +3187,10 @@ function In(e) {
|
|
|
3162
3187
|
},
|
|
3163
3188
|
src: e.video || "no-src",
|
|
3164
3189
|
poster: e.posterImage,
|
|
3165
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3190
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
|
|
3166
3191
|
}
|
|
3167
3192
|
),
|
|
3168
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3193
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
|
|
3169
3194
|
"div",
|
|
3170
3195
|
{
|
|
3171
3196
|
style: {
|
|
@@ -3176,7 +3201,7 @@ function In(e) {
|
|
|
3176
3201
|
}
|
|
3177
3202
|
}
|
|
3178
3203
|
) : null,
|
|
3179
|
-
(
|
|
3204
|
+
(s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(
|
|
3180
3205
|
"div",
|
|
3181
3206
|
{
|
|
3182
3207
|
style: {
|
|
@@ -3187,7 +3212,7 @@ function In(e) {
|
|
|
3187
3212
|
children: e.children
|
|
3188
3213
|
}
|
|
3189
3214
|
) : null,
|
|
3190
|
-
(
|
|
3215
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ l(
|
|
3191
3216
|
"div",
|
|
3192
3217
|
{
|
|
3193
3218
|
style: {
|
|
@@ -3208,64 +3233,64 @@ function In(e) {
|
|
|
3208
3233
|
}
|
|
3209
3234
|
);
|
|
3210
3235
|
}
|
|
3211
|
-
const
|
|
3212
|
-
component:
|
|
3213
|
-
...
|
|
3214
|
-
}, {
|
|
3215
|
-
component: sn,
|
|
3216
|
-
...an
|
|
3236
|
+
const Vn = () => [{
|
|
3237
|
+
component: cn,
|
|
3238
|
+
...sn
|
|
3217
3239
|
}, {
|
|
3218
3240
|
component: fn,
|
|
3219
|
-
...
|
|
3241
|
+
...dn
|
|
3220
3242
|
}, {
|
|
3221
|
-
component:
|
|
3243
|
+
component: yn,
|
|
3222
3244
|
...hn
|
|
3223
3245
|
}, {
|
|
3224
|
-
component:
|
|
3225
|
-
...
|
|
3246
|
+
component: vn,
|
|
3247
|
+
...xn
|
|
3248
|
+
}, {
|
|
3249
|
+
component: Tn,
|
|
3250
|
+
...Cn
|
|
3226
3251
|
}, {
|
|
3227
|
-
component:
|
|
3228
|
-
...
|
|
3252
|
+
component: kn,
|
|
3253
|
+
...Sn
|
|
3229
3254
|
}, {
|
|
3230
|
-
component:
|
|
3231
|
-
...
|
|
3255
|
+
component: wn,
|
|
3256
|
+
...In
|
|
3232
3257
|
}, {
|
|
3233
|
-
component:
|
|
3234
|
-
...
|
|
3258
|
+
component: En,
|
|
3259
|
+
...Rn
|
|
3235
3260
|
}, {
|
|
3236
|
-
component:
|
|
3237
|
-
...
|
|
3261
|
+
component: Pn,
|
|
3262
|
+
...Bn
|
|
3238
3263
|
}], ke = () => [{
|
|
3239
3264
|
component: nt,
|
|
3240
|
-
...
|
|
3241
|
-
}, {
|
|
3242
|
-
component: Ft,
|
|
3243
|
-
...Kt
|
|
3265
|
+
...Yt
|
|
3244
3266
|
}, {
|
|
3245
|
-
component:
|
|
3246
|
-
...
|
|
3267
|
+
component: Mt,
|
|
3268
|
+
...Gt
|
|
3247
3269
|
}, {
|
|
3248
3270
|
component: jt,
|
|
3249
|
-
...
|
|
3250
|
-
}, {
|
|
3251
|
-
component: Ut,
|
|
3252
|
-
...Jt
|
|
3271
|
+
...Qt
|
|
3253
3272
|
}, {
|
|
3254
|
-
component:
|
|
3255
|
-
...
|
|
3273
|
+
component: qt,
|
|
3274
|
+
...Xt
|
|
3256
3275
|
}, {
|
|
3257
|
-
component:
|
|
3258
|
-
...
|
|
3276
|
+
component: _t,
|
|
3277
|
+
...Zt
|
|
3259
3278
|
}, {
|
|
3260
3279
|
component: tn,
|
|
3261
3280
|
...en
|
|
3262
3281
|
}, {
|
|
3263
|
-
component:
|
|
3264
|
-
...
|
|
3282
|
+
component: ei,
|
|
3283
|
+
...nn
|
|
3284
|
+
}, {
|
|
3285
|
+
component: ln,
|
|
3286
|
+
...rn
|
|
3287
|
+
}, {
|
|
3288
|
+
component: an,
|
|
3289
|
+
...on
|
|
3265
3290
|
}, {
|
|
3266
|
-
component:
|
|
3267
|
-
...
|
|
3268
|
-
}, ...
|
|
3291
|
+
component: Jt,
|
|
3292
|
+
...zt
|
|
3293
|
+
}, ...Vn()], An = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3269
3294
|
function getAndSetVariantId() {
|
|
3270
3295
|
function setCookie(name, value, days) {
|
|
3271
3296
|
let expires = '';
|
|
@@ -3321,7 +3346,7 @@ const wn = () => [{
|
|
|
3321
3346
|
}).join('');
|
|
3322
3347
|
styleEl.innerHTML = newStyleStr;
|
|
3323
3348
|
}
|
|
3324
|
-
}`,
|
|
3349
|
+
}`, Nn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3325
3350
|
if (!navigator.cookieEnabled) {
|
|
3326
3351
|
return;
|
|
3327
3352
|
}
|
|
@@ -3355,27 +3380,27 @@ const wn = () => [{
|
|
|
3355
3380
|
thisScriptEl?.remove();
|
|
3356
3381
|
}
|
|
3357
3382
|
return;
|
|
3358
|
-
}`,
|
|
3383
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3359
3384
|
...t,
|
|
3360
3385
|
testVariationId: t.id,
|
|
3361
3386
|
id: e == null ? void 0 : e.id
|
|
3362
|
-
})),
|
|
3387
|
+
})), Wn = ({
|
|
3363
3388
|
canTrack: e,
|
|
3364
3389
|
content: t
|
|
3365
|
-
}) => !(!(
|
|
3366
|
-
window.${
|
|
3367
|
-
window.${
|
|
3368
|
-
`,
|
|
3369
|
-
window.${
|
|
3370
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3371
|
-
)`,
|
|
3390
|
+
}) => !(!(G(t).length > 0) || !e || H()), Fn = (e) => e === "react" || e === "reactNative", He = Fn(U), $n = () => `
|
|
3391
|
+
window.${Me} = ${An}
|
|
3392
|
+
window.${je} = ${Nn}
|
|
3393
|
+
`, Dn = (e, t) => `
|
|
3394
|
+
window.${Me}(
|
|
3395
|
+
"${t}",${JSON.stringify(e)}, ${He}
|
|
3396
|
+
)`, Ln = ({
|
|
3372
3397
|
contentId: e,
|
|
3373
3398
|
variationId: t
|
|
3374
|
-
}) => `window.${
|
|
3375
|
-
"${t}", "${e}", ${
|
|
3399
|
+
}) => `window.${je}(
|
|
3400
|
+
"${t}", "${e}", ${He}
|
|
3376
3401
|
)`;
|
|
3377
3402
|
function ce(e) {
|
|
3378
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ l(
|
|
3379
3404
|
"script",
|
|
3380
3405
|
{
|
|
3381
3406
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3387,7 +3412,7 @@ function ce(e) {
|
|
|
3387
3412
|
function Ce(e) {
|
|
3388
3413
|
return Math.round(e * 1e3) / 1e3;
|
|
3389
3414
|
}
|
|
3390
|
-
const
|
|
3415
|
+
const On = (e, t, n = !0) => {
|
|
3391
3416
|
if (!(e instanceof HTMLElement))
|
|
3392
3417
|
return null;
|
|
3393
3418
|
let i = n ? e : e.parentElement;
|
|
@@ -3398,20 +3423,20 @@ const Wn = (e, t, n = !0) => {
|
|
|
3398
3423
|
return i;
|
|
3399
3424
|
} while (i = i.parentElement);
|
|
3400
3425
|
return null;
|
|
3401
|
-
},
|
|
3426
|
+
}, Un = (e) => On(e, (t) => {
|
|
3402
3427
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3403
3428
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3404
3429
|
}), Te = ({
|
|
3405
3430
|
event: e,
|
|
3406
3431
|
target: t
|
|
3407
3432
|
}) => {
|
|
3408
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3433
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = Ce(i / n.width), r = Ce(o / n.height);
|
|
3409
3434
|
return {
|
|
3410
|
-
x:
|
|
3411
|
-
y:
|
|
3435
|
+
x: a,
|
|
3436
|
+
y: r
|
|
3412
3437
|
};
|
|
3413
|
-
},
|
|
3414
|
-
const t = e.target, n = t &&
|
|
3438
|
+
}, Mn = (e) => {
|
|
3439
|
+
const t = e.target, n = t && Un(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3415
3440
|
return {
|
|
3416
3441
|
targetBuilderElement: i || void 0,
|
|
3417
3442
|
metadata: {
|
|
@@ -3426,9 +3451,9 @@ const Wn = (e, t, n = !0) => {
|
|
|
3426
3451
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3427
3452
|
}
|
|
3428
3453
|
};
|
|
3429
|
-
},
|
|
3430
|
-
var
|
|
3431
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3454
|
+
}, jn = (e) => {
|
|
3455
|
+
var a, r;
|
|
3456
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3432
3457
|
let o = "";
|
|
3433
3458
|
if (i && t && n && (o += `
|
|
3434
3459
|
@font-face {
|
|
@@ -3438,29 +3463,29 @@ font-display: fallback;
|
|
|
3438
3463
|
font-weight: 400;
|
|
3439
3464
|
}
|
|
3440
3465
|
`.trim()), e.files)
|
|
3441
|
-
for (const
|
|
3442
|
-
if (!(String(Number(
|
|
3466
|
+
for (const s in e.files) {
|
|
3467
|
+
if (!(String(Number(s)) === s))
|
|
3443
3468
|
continue;
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3469
|
+
const c = e.files[s];
|
|
3470
|
+
c && c !== i && (o += `
|
|
3446
3471
|
@font-face {
|
|
3447
3472
|
font-family: "${t}";
|
|
3448
|
-
src: url('${
|
|
3473
|
+
src: url('${c}') format('woff2');
|
|
3449
3474
|
font-display: fallback;
|
|
3450
|
-
font-weight: ${
|
|
3475
|
+
font-weight: ${s};
|
|
3451
3476
|
}
|
|
3452
3477
|
`.trim());
|
|
3453
3478
|
}
|
|
3454
3479
|
return o;
|
|
3455
|
-
},
|
|
3480
|
+
}, Hn = ({
|
|
3456
3481
|
customFonts: e
|
|
3457
3482
|
}) => {
|
|
3458
3483
|
var t;
|
|
3459
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3460
|
-
},
|
|
3484
|
+
return ((t = e == null ? void 0 : e.map((n) => jn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3485
|
+
}, Kn = ({
|
|
3461
3486
|
cssCode: e,
|
|
3462
3487
|
contentId: t
|
|
3463
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3488
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", qn = `
|
|
3464
3489
|
.builder-button {
|
|
3465
3490
|
all: unset;
|
|
3466
3491
|
}
|
|
@@ -3477,39 +3502,39 @@ font-weight: ${l};
|
|
|
3477
3502
|
text-align: inherit;
|
|
3478
3503
|
font-family: inherit;
|
|
3479
3504
|
}
|
|
3480
|
-
`,
|
|
3481
|
-
function
|
|
3482
|
-
var E, A, O,
|
|
3483
|
-
const t =
|
|
3484
|
-
function n(
|
|
3485
|
-
var
|
|
3486
|
-
const
|
|
3505
|
+
`, _n = (e) => e ? "" : qn, zn = (e) => `variant-${e}`;
|
|
3506
|
+
function Jn(e) {
|
|
3507
|
+
var E, A, O, v, w, N, y;
|
|
3508
|
+
const t = z(null);
|
|
3509
|
+
function n(p) {
|
|
3510
|
+
var k, C;
|
|
3511
|
+
const S = {
|
|
3487
3512
|
...e.builderContextSignal.rootState,
|
|
3488
|
-
...
|
|
3513
|
+
...p
|
|
3489
3514
|
};
|
|
3490
|
-
e.builderContextSignal.rootSetState ? (
|
|
3515
|
+
e.builderContextSignal.rootSetState ? (C = (k = e.builderContextSignal).rootSetState) == null || C.call(k, S) : e.setBuilderContextSignal((I) => ({
|
|
3491
3516
|
...I,
|
|
3492
|
-
rootState:
|
|
3517
|
+
rootState: S
|
|
3493
3518
|
}));
|
|
3494
3519
|
}
|
|
3495
|
-
function i(
|
|
3496
|
-
var
|
|
3497
|
-
const
|
|
3520
|
+
function i(p) {
|
|
3521
|
+
var k, C, I, W, M;
|
|
3522
|
+
const S = {
|
|
3498
3523
|
...e.builderContextSignal.content,
|
|
3499
|
-
...
|
|
3524
|
+
...p,
|
|
3500
3525
|
data: {
|
|
3501
|
-
...(
|
|
3502
|
-
...
|
|
3526
|
+
...(k = e.builderContextSignal.content) == null ? void 0 : k.data,
|
|
3527
|
+
...p == null ? void 0 : p.data
|
|
3503
3528
|
},
|
|
3504
3529
|
meta: {
|
|
3505
|
-
...(
|
|
3506
|
-
...
|
|
3507
|
-
breakpoints: ((I =
|
|
3530
|
+
...(C = e.builderContextSignal.content) == null ? void 0 : C.meta,
|
|
3531
|
+
...p == null ? void 0 : p.meta,
|
|
3532
|
+
breakpoints: ((I = p == null ? void 0 : p.meta) == null ? void 0 : I.breakpoints) || ((M = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : M.breakpoints)
|
|
3508
3533
|
}
|
|
3509
3534
|
};
|
|
3510
|
-
e.setBuilderContextSignal((
|
|
3511
|
-
|
|
3512
|
-
content:
|
|
3535
|
+
e.setBuilderContextSignal((F) => ({
|
|
3536
|
+
...F,
|
|
3537
|
+
content: S
|
|
3513
3538
|
}));
|
|
3514
3539
|
}
|
|
3515
3540
|
function o() {
|
|
@@ -3518,37 +3543,37 @@ function Hn(e) {
|
|
|
3518
3543
|
"aria-hidden": !0
|
|
3519
3544
|
};
|
|
3520
3545
|
}
|
|
3521
|
-
const [
|
|
3546
|
+
const [a, r] = T(
|
|
3522
3547
|
() => e.contentWrapper || "div"
|
|
3523
3548
|
);
|
|
3524
|
-
function
|
|
3549
|
+
function s(p) {
|
|
3525
3550
|
return Qe({
|
|
3526
3551
|
model: e.model,
|
|
3527
3552
|
trustedHosts: e.trustedHosts,
|
|
3528
3553
|
callbacks: {
|
|
3529
|
-
configureSdk: (
|
|
3554
|
+
configureSdk: (S) => {
|
|
3530
3555
|
var I;
|
|
3531
|
-
const { breakpoints:
|
|
3532
|
-
!
|
|
3556
|
+
const { breakpoints: k, contentId: C } = S;
|
|
3557
|
+
!C || C !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || k && i({
|
|
3533
3558
|
meta: {
|
|
3534
|
-
breakpoints:
|
|
3559
|
+
breakpoints: k
|
|
3535
3560
|
}
|
|
3536
3561
|
});
|
|
3537
3562
|
},
|
|
3538
|
-
animation: (
|
|
3539
|
-
|
|
3563
|
+
animation: (S) => {
|
|
3564
|
+
Fe(S);
|
|
3540
3565
|
},
|
|
3541
|
-
contentUpdate: (
|
|
3542
|
-
i(
|
|
3566
|
+
contentUpdate: (S) => {
|
|
3567
|
+
i(S);
|
|
3543
3568
|
}
|
|
3544
3569
|
}
|
|
3545
|
-
})(
|
|
3570
|
+
})(p);
|
|
3546
3571
|
}
|
|
3547
|
-
function
|
|
3548
|
-
var
|
|
3549
|
-
const
|
|
3550
|
-
|
|
3551
|
-
code:
|
|
3572
|
+
function d() {
|
|
3573
|
+
var S, k;
|
|
3574
|
+
const p = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.jsCode;
|
|
3575
|
+
p && K({
|
|
3576
|
+
code: p,
|
|
3552
3577
|
context: e.context || {},
|
|
3553
3578
|
localState: void 0,
|
|
3554
3579
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3559,35 +3584,35 @@ function Hn(e) {
|
|
|
3559
3584
|
enableCache: !1
|
|
3560
3585
|
});
|
|
3561
3586
|
}
|
|
3562
|
-
const [
|
|
3563
|
-
function
|
|
3564
|
-
var
|
|
3587
|
+
const [c, m] = T(() => ({})), [h, f] = T(() => ({})), [u, g] = T(() => !1);
|
|
3588
|
+
function x(p) {
|
|
3589
|
+
var S, k;
|
|
3565
3590
|
if (e.builderContextSignal.content) {
|
|
3566
|
-
const
|
|
3591
|
+
const C = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, I = (k = e.builderContextSignal.content) == null ? void 0 : k.id;
|
|
3567
3592
|
he({
|
|
3568
3593
|
type: "click",
|
|
3569
|
-
canTrack:
|
|
3594
|
+
canTrack: X(e.canTrack),
|
|
3570
3595
|
contentId: I,
|
|
3571
3596
|
apiKey: e.apiKey,
|
|
3572
|
-
variationId:
|
|
3573
|
-
...
|
|
3574
|
-
unique: !
|
|
3597
|
+
variationId: C !== I ? C : void 0,
|
|
3598
|
+
...Mn(p),
|
|
3599
|
+
unique: !u
|
|
3575
3600
|
});
|
|
3576
3601
|
}
|
|
3577
|
-
|
|
3602
|
+
u || g(!0);
|
|
3578
3603
|
}
|
|
3579
|
-
function
|
|
3580
|
-
var
|
|
3581
|
-
const
|
|
3582
|
-
Object.entries(
|
|
3583
|
-
if (!W ||
|
|
3604
|
+
function b() {
|
|
3605
|
+
var S, k, C;
|
|
3606
|
+
const p = (C = (k = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : k.httpRequests) != null ? C : {};
|
|
3607
|
+
Object.entries(p).forEach(([I, W]) => {
|
|
3608
|
+
if (!W || h[I] || c[I] && !$())
|
|
3584
3609
|
return;
|
|
3585
|
-
|
|
3586
|
-
const
|
|
3610
|
+
h[I] = !0;
|
|
3611
|
+
const M = W.replace(
|
|
3587
3612
|
/{{([^}]+)}}/g,
|
|
3588
|
-
(
|
|
3589
|
-
|
|
3590
|
-
code:
|
|
3613
|
+
(F, Ke) => String(
|
|
3614
|
+
K({
|
|
3615
|
+
code: Ke,
|
|
3591
3616
|
context: e.context || {},
|
|
3592
3617
|
localState: void 0,
|
|
3593
3618
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3596,19 +3621,19 @@ function Hn(e) {
|
|
|
3596
3621
|
})
|
|
3597
3622
|
)
|
|
3598
3623
|
);
|
|
3599
|
-
Xe(
|
|
3624
|
+
Xe(M).then((F) => F.json()).then((F) => {
|
|
3600
3625
|
n({
|
|
3601
|
-
[I]:
|
|
3602
|
-
}),
|
|
3603
|
-
}).catch((
|
|
3604
|
-
console.error("error fetching dynamic data", W,
|
|
3626
|
+
[I]: F
|
|
3627
|
+
}), c[I] = !0;
|
|
3628
|
+
}).catch((F) => {
|
|
3629
|
+
console.error("error fetching dynamic data", W, F);
|
|
3605
3630
|
}).finally(() => {
|
|
3606
|
-
|
|
3631
|
+
h[I] = !1;
|
|
3607
3632
|
});
|
|
3608
3633
|
});
|
|
3609
3634
|
}
|
|
3610
3635
|
function B() {
|
|
3611
|
-
|
|
3636
|
+
$() && window.dispatchEvent(
|
|
3612
3637
|
new CustomEvent(
|
|
3613
3638
|
"builder:component:stateChange",
|
|
3614
3639
|
{
|
|
@@ -3623,9 +3648,9 @@ function Hn(e) {
|
|
|
3623
3648
|
);
|
|
3624
3649
|
}
|
|
3625
3650
|
return P(() => {
|
|
3626
|
-
var
|
|
3627
|
-
if (
|
|
3628
|
-
if (
|
|
3651
|
+
var p, S;
|
|
3652
|
+
if (H()) {
|
|
3653
|
+
if ($() && (window.addEventListener("message", s), Je(), Ye({
|
|
3629
3654
|
...e.locale ? {
|
|
3630
3655
|
locale: e.locale
|
|
3631
3656
|
} : {},
|
|
@@ -3637,47 +3662,47 @@ function Hn(e) {
|
|
|
3637
3662
|
} : {}
|
|
3638
3663
|
}), Object.values(
|
|
3639
3664
|
e.builderContextSignal.componentInfos
|
|
3640
|
-
).forEach((
|
|
3665
|
+
).forEach((C) => {
|
|
3641
3666
|
var W;
|
|
3642
|
-
const I =
|
|
3667
|
+
const I = Ge(C);
|
|
3643
3668
|
(W = window.parent) == null || W.postMessage(I, "*");
|
|
3644
3669
|
}), window.addEventListener(
|
|
3645
3670
|
"builder:component:stateChangeListenerActivated",
|
|
3646
3671
|
B
|
|
3647
|
-
)), e.builderContextSignal.content &&
|
|
3648
|
-
const
|
|
3672
|
+
)), e.builderContextSignal.content && X(e.canTrack)) {
|
|
3673
|
+
const C = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id, W = e.apiKey;
|
|
3649
3674
|
he({
|
|
3650
3675
|
type: "impression",
|
|
3651
3676
|
canTrack: !0,
|
|
3652
3677
|
contentId: I,
|
|
3653
3678
|
apiKey: W,
|
|
3654
|
-
variationId:
|
|
3679
|
+
variationId: C !== I ? C : void 0
|
|
3655
3680
|
});
|
|
3656
3681
|
}
|
|
3657
|
-
if (
|
|
3658
|
-
const
|
|
3682
|
+
if (we() && !$()) {
|
|
3683
|
+
const C = new URL(location.href).searchParams, I = C.get("builder.preview"), W = C.get(
|
|
3659
3684
|
`builder.overrides.${I}`
|
|
3660
|
-
),
|
|
3661
|
-
I === e.model &&
|
|
3685
|
+
), M = C.get("apiKey") || C.get("builder.space");
|
|
3686
|
+
I === e.model && M === e.apiKey && (!e.content || W === e.content.id) && Re({
|
|
3662
3687
|
model: e.model,
|
|
3663
3688
|
apiKey: e.apiKey,
|
|
3664
3689
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3665
|
-
}).then((
|
|
3666
|
-
|
|
3690
|
+
}).then((F) => {
|
|
3691
|
+
F && i(F);
|
|
3667
3692
|
});
|
|
3668
3693
|
}
|
|
3669
3694
|
}
|
|
3670
3695
|
}, []), P(() => {
|
|
3671
3696
|
e.apiKey || Z.error(
|
|
3672
3697
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3673
|
-
),
|
|
3698
|
+
), d(), b(), B();
|
|
3674
3699
|
}, []), P(() => {
|
|
3675
3700
|
e.content && i(e.content);
|
|
3676
3701
|
}, [e.content]), P(() => {
|
|
3677
|
-
|
|
3702
|
+
d();
|
|
3678
3703
|
}, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
|
|
3679
|
-
|
|
3680
|
-
}, [(
|
|
3704
|
+
b();
|
|
3705
|
+
}, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
|
|
3681
3706
|
B();
|
|
3682
3707
|
}, [e.builderContextSignal.rootState]), P(() => {
|
|
3683
3708
|
e.data && n(e.data);
|
|
@@ -3686,41 +3711,41 @@ function Hn(e) {
|
|
|
3686
3711
|
locale: e.locale
|
|
3687
3712
|
});
|
|
3688
3713
|
}, [e.locale]), P(() => () => {
|
|
3689
|
-
|
|
3714
|
+
H() && (window.removeEventListener("message", s), window.removeEventListener(
|
|
3690
3715
|
"builder:component:stateChangeListenerActivated",
|
|
3691
3716
|
B
|
|
3692
3717
|
));
|
|
3693
|
-
}, []), /* @__PURE__ */
|
|
3694
|
-
|
|
3718
|
+
}, []), /* @__PURE__ */ l(ue.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
|
|
3719
|
+
a,
|
|
3695
3720
|
{
|
|
3696
3721
|
ref: t,
|
|
3697
|
-
onClick: (
|
|
3722
|
+
onClick: (p) => x(p),
|
|
3698
3723
|
"builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
|
|
3699
3724
|
"builder-model": e.model,
|
|
3700
3725
|
...o(),
|
|
3701
3726
|
...e.contentWrapperProps,
|
|
3702
|
-
className:
|
|
3703
|
-
((N = e.content) == null ? void 0 : N.testVariationId) || ((
|
|
3727
|
+
className: zn(
|
|
3728
|
+
((N = e.content) == null ? void 0 : N.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
|
|
3704
3729
|
),
|
|
3705
3730
|
children: e.children
|
|
3706
3731
|
}
|
|
3707
3732
|
) : null });
|
|
3708
3733
|
}
|
|
3709
|
-
function
|
|
3734
|
+
function Yn(e) {
|
|
3710
3735
|
const [t, n] = T(
|
|
3711
3736
|
() => `
|
|
3712
|
-
${
|
|
3737
|
+
${Kn({
|
|
3713
3738
|
cssCode: e.cssCode,
|
|
3714
3739
|
contentId: e.contentId
|
|
3715
3740
|
})}
|
|
3716
|
-
${
|
|
3741
|
+
${Hn({
|
|
3717
3742
|
customFonts: e.customFonts
|
|
3718
3743
|
})}
|
|
3719
|
-
${
|
|
3744
|
+
${_n(e.isNestedRender)}
|
|
3720
3745
|
`.trim()
|
|
3721
3746
|
);
|
|
3722
|
-
return /* @__PURE__ */
|
|
3723
|
-
|
|
3747
|
+
return /* @__PURE__ */ l(
|
|
3748
|
+
te,
|
|
3724
3749
|
{
|
|
3725
3750
|
id: "builderio-content",
|
|
3726
3751
|
styles: t,
|
|
@@ -3728,15 +3753,15 @@ ${Un(e.isNestedRender)}
|
|
|
3728
3753
|
}
|
|
3729
3754
|
);
|
|
3730
3755
|
}
|
|
3731
|
-
const
|
|
3756
|
+
const Gn = ({
|
|
3732
3757
|
content: e,
|
|
3733
3758
|
data: t,
|
|
3734
3759
|
locale: n
|
|
3735
3760
|
}) => {
|
|
3736
|
-
var
|
|
3737
|
-
const i = {}, o = ((
|
|
3738
|
-
return (
|
|
3739
|
-
|
|
3761
|
+
var a, r, s;
|
|
3762
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
3763
|
+
return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((d) => {
|
|
3764
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3740
3765
|
}), {
|
|
3741
3766
|
...i,
|
|
3742
3767
|
...o,
|
|
@@ -3745,7 +3770,7 @@ const Kn = ({
|
|
|
3745
3770
|
locale: n
|
|
3746
3771
|
} : {}
|
|
3747
3772
|
};
|
|
3748
|
-
},
|
|
3773
|
+
}, Qn = ({
|
|
3749
3774
|
content: e,
|
|
3750
3775
|
data: t
|
|
3751
3776
|
}) => e ? {
|
|
@@ -3757,33 +3782,33 @@ const Kn = ({
|
|
|
3757
3782
|
meta: e == null ? void 0 : e.meta
|
|
3758
3783
|
} : void 0;
|
|
3759
3784
|
function Ie(e) {
|
|
3760
|
-
var c,
|
|
3785
|
+
var d, c, m, h, f, u, g;
|
|
3761
3786
|
const [t, n] = T(
|
|
3762
3787
|
() => {
|
|
3763
|
-
var
|
|
3764
|
-
return
|
|
3788
|
+
var x, b;
|
|
3789
|
+
return Ln({
|
|
3765
3790
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3766
|
-
variationId: (
|
|
3791
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3767
3792
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3768
|
-
contentId: (
|
|
3793
|
+
contentId: (b = e.content) == null ? void 0 : b.id
|
|
3769
3794
|
});
|
|
3770
3795
|
}
|
|
3771
3796
|
);
|
|
3772
|
-
function i(
|
|
3773
|
-
|
|
3774
|
-
...
|
|
3775
|
-
rootState:
|
|
3797
|
+
function i(x) {
|
|
3798
|
+
s((b) => ({
|
|
3799
|
+
...b,
|
|
3800
|
+
rootState: x
|
|
3776
3801
|
}));
|
|
3777
3802
|
}
|
|
3778
|
-
const [o,
|
|
3803
|
+
const [o, a] = T(
|
|
3779
3804
|
() => {
|
|
3780
|
-
var
|
|
3805
|
+
var x;
|
|
3781
3806
|
return [
|
|
3782
3807
|
...ke(),
|
|
3783
|
-
...((
|
|
3808
|
+
...((x = e.customComponents) == null ? void 0 : x.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
|
|
3784
3809
|
].reduce(
|
|
3785
|
-
(
|
|
3786
|
-
...
|
|
3810
|
+
(b, { component: B, ...E }) => ({
|
|
3811
|
+
...b,
|
|
3787
3812
|
[E.name]: {
|
|
3788
3813
|
component: B,
|
|
3789
3814
|
...ge(E)
|
|
@@ -3792,15 +3817,15 @@ function Ie(e) {
|
|
|
3792
3817
|
{}
|
|
3793
3818
|
);
|
|
3794
3819
|
}
|
|
3795
|
-
), [
|
|
3796
|
-
var
|
|
3820
|
+
), [r, s] = T(() => {
|
|
3821
|
+
var x;
|
|
3797
3822
|
return {
|
|
3798
|
-
content:
|
|
3823
|
+
content: Qn({
|
|
3799
3824
|
content: e.content,
|
|
3800
3825
|
data: e.data
|
|
3801
3826
|
}),
|
|
3802
3827
|
localState: void 0,
|
|
3803
|
-
rootState:
|
|
3828
|
+
rootState: Gn({
|
|
3804
3829
|
content: e.content,
|
|
3805
3830
|
data: e.data,
|
|
3806
3831
|
locale: e.locale
|
|
@@ -3812,10 +3837,10 @@ function Ie(e) {
|
|
|
3812
3837
|
apiVersion: e.apiVersion,
|
|
3813
3838
|
componentInfos: [
|
|
3814
3839
|
...ke(),
|
|
3815
|
-
...((
|
|
3840
|
+
...((x = e.customComponents) == null ? void 0 : x.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
|
|
3816
3841
|
].reduce(
|
|
3817
|
-
(
|
|
3818
|
-
...
|
|
3842
|
+
(b, { component: B, ...E }) => ({
|
|
3843
|
+
...b,
|
|
3819
3844
|
[E.name]: ge(E)
|
|
3820
3845
|
}),
|
|
3821
3846
|
{}
|
|
@@ -3826,14 +3851,14 @@ function Ie(e) {
|
|
|
3826
3851
|
nonce: e.nonce || ""
|
|
3827
3852
|
};
|
|
3828
3853
|
});
|
|
3829
|
-
return /* @__PURE__ */
|
|
3830
|
-
|
|
3854
|
+
return /* @__PURE__ */ l(
|
|
3855
|
+
Pe.Provider,
|
|
3831
3856
|
{
|
|
3832
3857
|
value: {
|
|
3833
3858
|
registeredComponents: o
|
|
3834
3859
|
},
|
|
3835
3860
|
children: /* @__PURE__ */ V(
|
|
3836
|
-
|
|
3861
|
+
Jn,
|
|
3837
3862
|
{
|
|
3838
3863
|
nonce: e.nonce,
|
|
3839
3864
|
content: e.content,
|
|
@@ -3845,13 +3870,13 @@ function Ie(e) {
|
|
|
3845
3870
|
locale: e.locale,
|
|
3846
3871
|
enrich: e.enrich,
|
|
3847
3872
|
showContent: e.showContent,
|
|
3848
|
-
builderContextSignal:
|
|
3873
|
+
builderContextSignal: r,
|
|
3849
3874
|
contentWrapper: e.contentWrapper,
|
|
3850
3875
|
contentWrapperProps: e.contentWrapperProps,
|
|
3851
3876
|
trustedHosts: e.trustedHosts,
|
|
3852
|
-
setBuilderContextSignal:
|
|
3877
|
+
setBuilderContextSignal: s,
|
|
3853
3878
|
children: [
|
|
3854
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3879
|
+
e.isSsrAbTest ? /* @__PURE__ */ l(
|
|
3855
3880
|
ce,
|
|
3856
3881
|
{
|
|
3857
3882
|
id: "builderio-variant-visibility",
|
|
@@ -3859,21 +3884,21 @@ function Ie(e) {
|
|
|
3859
3884
|
nonce: e.nonce || ""
|
|
3860
3885
|
}
|
|
3861
3886
|
) : null,
|
|
3862
|
-
/* @__PURE__ */
|
|
3863
|
-
|
|
3887
|
+
/* @__PURE__ */ l(
|
|
3888
|
+
Yn,
|
|
3864
3889
|
{
|
|
3865
3890
|
nonce: e.nonce || "",
|
|
3866
3891
|
isNestedRender: e.isNestedRender,
|
|
3867
|
-
contentId: (
|
|
3868
|
-
cssCode: (
|
|
3869
|
-
customFonts: (
|
|
3892
|
+
contentId: (d = r.content) == null ? void 0 : d.id,
|
|
3893
|
+
cssCode: (m = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : m.cssCode,
|
|
3894
|
+
customFonts: (f = (h = r.content) == null ? void 0 : h.data) == null ? void 0 : f.customFonts
|
|
3870
3895
|
}
|
|
3871
3896
|
),
|
|
3872
|
-
/* @__PURE__ */
|
|
3897
|
+
/* @__PURE__ */ l(
|
|
3873
3898
|
D,
|
|
3874
3899
|
{
|
|
3875
|
-
blocks: (
|
|
3876
|
-
context:
|
|
3900
|
+
blocks: (g = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : g.blocks,
|
|
3901
|
+
context: r,
|
|
3877
3902
|
registeredComponents: o,
|
|
3878
3903
|
linkComponent: e.linkComponent
|
|
3879
3904
|
}
|
|
@@ -3884,57 +3909,57 @@ function Ie(e) {
|
|
|
3884
3909
|
}
|
|
3885
3910
|
);
|
|
3886
3911
|
}
|
|
3887
|
-
function
|
|
3888
|
-
var
|
|
3912
|
+
function Xn(e) {
|
|
3913
|
+
var r;
|
|
3889
3914
|
const [t, n] = T(
|
|
3890
|
-
() =>
|
|
3891
|
-
canTrack:
|
|
3915
|
+
() => Wn({
|
|
3916
|
+
canTrack: X(e.canTrack),
|
|
3892
3917
|
content: e.content
|
|
3893
3918
|
})
|
|
3894
3919
|
);
|
|
3895
3920
|
function i() {
|
|
3896
|
-
var
|
|
3897
|
-
return
|
|
3898
|
-
|
|
3899
|
-
id:
|
|
3900
|
-
testRatio:
|
|
3921
|
+
var s;
|
|
3922
|
+
return Dn(
|
|
3923
|
+
G(e.content).map((d) => ({
|
|
3924
|
+
id: d.testVariationId,
|
|
3925
|
+
testRatio: d.testRatio
|
|
3901
3926
|
})),
|
|
3902
|
-
((
|
|
3927
|
+
((s = e.content) == null ? void 0 : s.id) || ""
|
|
3903
3928
|
);
|
|
3904
3929
|
}
|
|
3905
3930
|
function o() {
|
|
3906
|
-
return
|
|
3931
|
+
return G(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
|
|
3907
3932
|
}
|
|
3908
|
-
function
|
|
3909
|
-
var
|
|
3933
|
+
function a() {
|
|
3934
|
+
var s;
|
|
3910
3935
|
return t ? {
|
|
3911
3936
|
...e.content,
|
|
3912
|
-
testVariationId: (
|
|
3937
|
+
testVariationId: (s = e.content) == null ? void 0 : s.id
|
|
3913
3938
|
} : Ze({
|
|
3914
3939
|
item: e.content,
|
|
3915
|
-
canTrack:
|
|
3940
|
+
canTrack: X(e.canTrack)
|
|
3916
3941
|
});
|
|
3917
3942
|
}
|
|
3918
3943
|
return P(() => {
|
|
3919
3944
|
}, []), /* @__PURE__ */ V(R, { children: [
|
|
3920
|
-
!e.isNestedRender &&
|
|
3945
|
+
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(
|
|
3921
3946
|
ce,
|
|
3922
3947
|
{
|
|
3923
3948
|
id: "builderio-init-variants-fns",
|
|
3924
|
-
scriptStr:
|
|
3949
|
+
scriptStr: $n(),
|
|
3925
3950
|
nonce: e.nonce || ""
|
|
3926
3951
|
}
|
|
3927
3952
|
) : null,
|
|
3928
3953
|
t ? /* @__PURE__ */ V(R, { children: [
|
|
3929
|
-
/* @__PURE__ */
|
|
3930
|
-
|
|
3954
|
+
/* @__PURE__ */ l(
|
|
3955
|
+
te,
|
|
3931
3956
|
{
|
|
3932
3957
|
id: "builderio-variants",
|
|
3933
3958
|
styles: o(),
|
|
3934
3959
|
nonce: e.nonce || ""
|
|
3935
3960
|
}
|
|
3936
3961
|
),
|
|
3937
|
-
/* @__PURE__ */
|
|
3962
|
+
/* @__PURE__ */ l(
|
|
3938
3963
|
ce,
|
|
3939
3964
|
{
|
|
3940
3965
|
id: "builderio-variants-visibility",
|
|
@@ -3942,12 +3967,12 @@ function _n(e) {
|
|
|
3942
3967
|
nonce: e.nonce || ""
|
|
3943
3968
|
}
|
|
3944
3969
|
),
|
|
3945
|
-
(
|
|
3970
|
+
(r = G(e.content)) == null ? void 0 : r.map((s) => /* @__PURE__ */ l(
|
|
3946
3971
|
Ie,
|
|
3947
3972
|
{
|
|
3948
3973
|
isNestedRender: e.isNestedRender,
|
|
3949
3974
|
nonce: e.nonce,
|
|
3950
|
-
content:
|
|
3975
|
+
content: s,
|
|
3951
3976
|
showContent: !1,
|
|
3952
3977
|
model: e.model,
|
|
3953
3978
|
data: e.data,
|
|
@@ -3966,15 +3991,15 @@ function _n(e) {
|
|
|
3966
3991
|
contentWrapperProps: e.contentWrapperProps,
|
|
3967
3992
|
trustedHosts: e.trustedHosts
|
|
3968
3993
|
},
|
|
3969
|
-
|
|
3994
|
+
s.testVariationId
|
|
3970
3995
|
))
|
|
3971
3996
|
] }) : null,
|
|
3972
|
-
/* @__PURE__ */
|
|
3997
|
+
/* @__PURE__ */ l(
|
|
3973
3998
|
Ie,
|
|
3974
3999
|
{
|
|
3975
4000
|
nonce: e.nonce,
|
|
3976
4001
|
isNestedRender: e.isNestedRender,
|
|
3977
|
-
content:
|
|
4002
|
+
content: a(),
|
|
3978
4003
|
showContent: !0,
|
|
3979
4004
|
model: e.model,
|
|
3980
4005
|
data: e.data,
|
|
@@ -3996,13 +4021,13 @@ function _n(e) {
|
|
|
3996
4021
|
)
|
|
3997
4022
|
] });
|
|
3998
4023
|
}
|
|
3999
|
-
const
|
|
4024
|
+
const Zn = async ({
|
|
4000
4025
|
builderContextValue: e,
|
|
4001
4026
|
symbol: t
|
|
4002
4027
|
}) => {
|
|
4003
4028
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4004
4029
|
(e != null && e.apiKey))
|
|
4005
|
-
return
|
|
4030
|
+
return Re({
|
|
4006
4031
|
model: t.model,
|
|
4007
4032
|
apiKey: e.apiKey,
|
|
4008
4033
|
apiVersion: e.apiVersion,
|
|
@@ -4015,8 +4040,8 @@ const Jn = async ({
|
|
|
4015
4040
|
Z.error("Could not fetch symbol content: ", n);
|
|
4016
4041
|
});
|
|
4017
4042
|
};
|
|
4018
|
-
function
|
|
4019
|
-
var
|
|
4043
|
+
function ei(e) {
|
|
4044
|
+
var s, d, c, m;
|
|
4020
4045
|
function t() {
|
|
4021
4046
|
return "div";
|
|
4022
4047
|
}
|
|
@@ -4024,31 +4049,31 @@ function Yn(e) {
|
|
|
4024
4049
|
return "div";
|
|
4025
4050
|
}
|
|
4026
4051
|
function i() {
|
|
4027
|
-
var
|
|
4052
|
+
var h, f;
|
|
4028
4053
|
return [
|
|
4029
|
-
e.attributes[
|
|
4054
|
+
e.attributes[_()],
|
|
4030
4055
|
"builder-symbol",
|
|
4031
|
-
(
|
|
4032
|
-
(
|
|
4056
|
+
(h = e.symbol) != null && h.inline ? "builder-inline-symbol" : void 0,
|
|
4057
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4033
4058
|
].filter(Boolean).join(" ");
|
|
4034
4059
|
}
|
|
4035
|
-
const [o,
|
|
4036
|
-
var
|
|
4037
|
-
return (
|
|
4060
|
+
const [o, a] = T(() => {
|
|
4061
|
+
var h;
|
|
4062
|
+
return (h = e.symbol) == null ? void 0 : h.content;
|
|
4038
4063
|
});
|
|
4039
|
-
function
|
|
4040
|
-
o ||
|
|
4064
|
+
function r() {
|
|
4065
|
+
o || Zn({
|
|
4041
4066
|
symbol: e.symbol,
|
|
4042
4067
|
builderContextValue: e.builderContext
|
|
4043
|
-
}).then((
|
|
4044
|
-
|
|
4068
|
+
}).then((h) => {
|
|
4069
|
+
h && a(h);
|
|
4045
4070
|
});
|
|
4046
4071
|
}
|
|
4047
4072
|
return P(() => {
|
|
4048
4073
|
}, []), P(() => {
|
|
4049
|
-
|
|
4050
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4051
|
-
|
|
4074
|
+
r();
|
|
4075
|
+
}, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
|
|
4076
|
+
Xn,
|
|
4052
4077
|
{
|
|
4053
4078
|
nonce: e.builderContext.nonce,
|
|
4054
4079
|
isNestedRender: !0,
|
|
@@ -4056,16 +4081,16 @@ function Yn(e) {
|
|
|
4056
4081
|
apiKey: e.builderContext.apiKey,
|
|
4057
4082
|
context: {
|
|
4058
4083
|
...e.builderContext.context,
|
|
4059
|
-
symbolId: (
|
|
4084
|
+
symbolId: (s = e.builderBlock) == null ? void 0 : s.id
|
|
4060
4085
|
},
|
|
4061
4086
|
customComponents: Object.values(e.builderComponents),
|
|
4062
4087
|
data: {
|
|
4063
|
-
...(
|
|
4088
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4064
4089
|
...e.builderContext.localState,
|
|
4065
|
-
...(
|
|
4090
|
+
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4066
4091
|
},
|
|
4067
4092
|
canTrack: e.builderContext.canTrack,
|
|
4068
|
-
model: (
|
|
4093
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
4069
4094
|
content: o,
|
|
4070
4095
|
linkComponent: e.builderLinkComponent,
|
|
4071
4096
|
blocksWrapper: t(),
|
|
@@ -4077,12 +4102,12 @@ export {
|
|
|
4077
4102
|
D as Blocks,
|
|
4078
4103
|
ue as BuilderContext,
|
|
4079
4104
|
nt as Button,
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4105
|
+
Mt as Columns,
|
|
4106
|
+
Xn as Content,
|
|
4107
|
+
jt as Fragment,
|
|
4108
|
+
qt as Image,
|
|
4109
|
+
_t as Section,
|
|
4110
|
+
ei as Symbol,
|
|
4111
|
+
ln as Text,
|
|
4112
|
+
Pn as Video
|
|
4088
4113
|
};
|