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