@builder.io/sdk-react 2.0.31 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +31 -31
- package/lib/browser/blocks-exports.mjs +743 -696
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-77f4513c.js → server-entry-017b8439.js} +24 -26
- package/lib/browser/server-entry-9f80066e.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-d1213549.js → accordion-1572cb0d.js} +1 -1
- package/lib/edge/{accordion-696fad97.cjs → accordion-decb24cf.cjs} +1 -1
- package/lib/edge/{blocks-9ef79098.js → blocks-9c35be74.js} +314 -268
- package/lib/edge/blocks-d3823063.cjs +12 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +8 -7
- package/lib/edge/{button-b41f1129.js → button-0709893d.js} +2 -2
- package/lib/edge/{button-2ed05d22.cjs → button-cf66cf8d.cjs} +1 -1
- package/lib/edge/{columns-ca9ac444.cjs → columns-2fdf0656.cjs} +1 -1
- package/lib/edge/{columns-5f8497fb.js → columns-e234acc6.js} +4 -4
- package/lib/edge/{content-variants-9c4db669.js → content-variants-3ab9230f.js} +323 -323
- package/lib/edge/content-variants-616a6c0f.cjs +134 -0
- package/lib/edge/{evaluate-8453ffc0.cjs → evaluate-ccf1ad96.cjs} +1 -1
- package/lib/edge/{evaluate-f626f584.js → evaluate-f0b82ede.js} +1 -1
- package/lib/edge/{form-a5407307.js → form-27bcc23a.js} +4 -4
- package/lib/edge/{form-b0c5418b.cjs → form-7c61693d.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-86f0330a.cjs → get-class-prop-name-0b3d48a4.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-40d6defb.js → get-class-prop-name-a3bd113c.js} +1 -1
- package/lib/edge/{image-6970c193.js → image-5c9e156f.js} +28 -28
- package/lib/edge/image-94922c87.cjs +17 -0
- package/lib/edge/{img-fa36f926.js → img-80be6914.js} +1 -1
- package/lib/edge/{img-83ed868e.cjs → img-e0c8f7f9.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-93e42e28.js → input-920922d5.js} +1 -1
- package/lib/edge/{input-3106b577.cjs → input-f5ba6b1e.cjs} +1 -1
- package/lib/edge/{select-29495824.cjs → select-2ced1aca.cjs} +1 -1
- package/lib/edge/{select-4cf4356a.js → select-673864b7.js} +1 -1
- package/lib/edge/{server-entry-ea35faa6.js → server-entry-6c0047ea.js} +24 -26
- package/lib/edge/server-entry-de142ee8.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-6ad4152e.js → slot-68f2b177.js} +4 -4
- package/lib/edge/{slot-c8ab71b6.cjs → slot-cc8b4e5b.cjs} +1 -1
- package/lib/edge/{symbol-d2b48e54.js → symbol-7e260a70.js} +2 -2
- package/lib/edge/{symbol-74313a4b.cjs → symbol-ded9dba9.cjs} +1 -1
- package/lib/edge/{tabs-6d924c90.js → tabs-5156494d.js} +4 -4
- package/lib/edge/{tabs-f699b318.cjs → tabs-d422921f.cjs} +1 -1
- package/lib/edge/{text-7137a306.js → text-27a917c0.js} +2 -2
- package/lib/edge/{text-7120ee0c.cjs → text-5796f488.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +30 -30
- package/lib/node/blocks-exports.mjs +710 -663
- 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-e91e06a3.cjs +2 -0
- package/lib/node/{server-entry-32ef60c0.js → server-entry-fdedc1aa.js} +24 -26
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-26e65816.js → setIvm-8b303d4e.js} +1 -1
- package/lib/node/{setIvm-bf1ad328.cjs → setIvm-aba1bed8.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-343fd6c7.js → should-force-browser-runtime-in-node-0a037bde.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-000957e3.cjs → should-force-browser-runtime-in-node-491a9b55.cjs} +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +6 -3
- package/types/components/content/components/enable-editor.helpers.d.ts +11 -0
- package/types/constants/file-types.d.ts +2 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/context/types.d.ts +1 -0
- package/types/functions/extract-localized-values.d.ts +2 -0
- package/types/functions/traverse.d.ts +34 -0
- package/types/types/components.d.ts +3 -0
- package/lib/browser/server-entry-d7a13b14.cjs +0 -2
- package/lib/edge/blocks-aa67fee8.cjs +0 -12
- package/lib/edge/content-variants-2f5a6ccd.cjs +0 -134
- package/lib/edge/image-54d2f755.cjs +0 -17
- package/lib/edge/server-entry-4cd5389e.cjs +0 -2
- package/lib/node/server-entry-9c026e49.cjs +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as s, Fragment as I, jsxs as
|
|
3
|
-
import { TARGET as
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { getFunctionArguments as
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(I, { children:
|
|
2
|
+
import { jsx as s, Fragment as I, jsxs as W } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as $, isBrowser as q, logger as oe, checkIsDefined as te, isPreviewing as ae, isEditing as N, logFetch as Te, registerInsertMenu as je, setupBrowserForEditing as qe, createRegisterComponentMessage as ze, getDefaultCanTrack as z, _track as ue, fetchOneEntry as Ie, createEditorListener as Ke, serializeIncludingFunctions as me, handleABTestingSync as Je } from "./server-entry-fdedc1aa.js";
|
|
4
|
+
import { createContext as we, useEffect as A, useState as R, useRef as L, useContext as fe, createElement as Ee } from "react";
|
|
5
|
+
import { getFunctionArguments as Ge, flattenState as Ye, runInNode as Qe, parseCode as Xe, getBuilderGlobals as Ze, set as Re, fastClone as re } from "./setIvm-8b303d4e.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as et } from "./should-force-browser-runtime-in-node-0a037bde.js";
|
|
7
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
8
|
+
function le(e) {
|
|
9
|
+
return /* @__PURE__ */ s(I, { children: nt(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const U = () => {
|
|
12
|
-
switch (
|
|
12
|
+
switch ($) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
15
15
|
case "rsc":
|
|
@@ -22,7 +22,7 @@ const U = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function it(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
@@ -37,7 +37,7 @@ function Xe(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
le,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function Xe(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const se = we({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -59,25 +59,26 @@ const re = Ce({
|
|
|
59
59
|
inheritedStyles: {},
|
|
60
60
|
BlocksWrapper: "div",
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
|
-
nonce: ""
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
nonce: "",
|
|
63
|
+
model: ""
|
|
64
|
+
}), Pe = we({ registeredComponents: {} });
|
|
65
|
+
function ot(e) {
|
|
65
66
|
var t;
|
|
66
67
|
return {
|
|
67
68
|
...(t = e.component) == null ? void 0 : t.options,
|
|
68
69
|
...e.options
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
|
-
function
|
|
72
|
+
function at(e, ...t) {
|
|
72
73
|
const n = Object.assign({}, e);
|
|
73
74
|
for (const i of t)
|
|
74
75
|
delete n[i];
|
|
75
76
|
return n;
|
|
76
77
|
}
|
|
77
|
-
const
|
|
78
|
+
const Be = (e, t, n) => {
|
|
78
79
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
79
80
|
return i === void 0 || i === e ? n : i;
|
|
80
|
-
},
|
|
81
|
+
}, rt = ({
|
|
81
82
|
code: e,
|
|
82
83
|
builder: t,
|
|
83
84
|
context: n,
|
|
@@ -86,24 +87,24 @@ const Ee = (e, t, n) => {
|
|
|
86
87
|
rootSetState: r,
|
|
87
88
|
rootState: a
|
|
88
89
|
}) => {
|
|
89
|
-
const l =
|
|
90
|
+
const l = Ge({
|
|
90
91
|
builder: t,
|
|
91
92
|
context: n,
|
|
92
93
|
event: i,
|
|
93
|
-
state:
|
|
94
|
+
state: Ye({
|
|
94
95
|
rootState: a,
|
|
95
96
|
localState: o,
|
|
96
97
|
rootSetState: r
|
|
97
98
|
})
|
|
98
99
|
});
|
|
99
100
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
100
|
-
},
|
|
101
|
+
}, lt = (e) => q() || et({
|
|
101
102
|
shouldLogWarning: !0
|
|
102
|
-
}) ?
|
|
103
|
+
}) ? rt(e) : Qe(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) => {
|
|
103
104
|
var t, n, i, o, r, a;
|
|
104
|
-
return ((i = (n = (t =
|
|
105
|
+
return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ct.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
105
106
|
};
|
|
106
|
-
function
|
|
107
|
+
function D({
|
|
107
108
|
code: e,
|
|
108
109
|
context: t,
|
|
109
110
|
localState: n,
|
|
@@ -114,17 +115,17 @@ function L({
|
|
|
114
115
|
}) {
|
|
115
116
|
if (e.trim() === "")
|
|
116
117
|
return;
|
|
117
|
-
const l =
|
|
118
|
+
const l = dt(e.trim());
|
|
118
119
|
if (l)
|
|
119
|
-
return
|
|
120
|
+
return Be({
|
|
120
121
|
...i,
|
|
121
122
|
...n
|
|
122
123
|
}, l);
|
|
123
124
|
const d = {
|
|
124
|
-
code:
|
|
125
|
+
code: Xe(e, {
|
|
125
126
|
isExpression: a
|
|
126
127
|
}),
|
|
127
|
-
builder:
|
|
128
|
+
builder: Ze(),
|
|
128
129
|
context: t,
|
|
129
130
|
event: r,
|
|
130
131
|
rootSetState: o,
|
|
@@ -132,29 +133,70 @@ function L({
|
|
|
132
133
|
localState: n
|
|
133
134
|
};
|
|
134
135
|
try {
|
|
135
|
-
return
|
|
136
|
+
return lt(d);
|
|
136
137
|
} catch (c) {
|
|
137
|
-
|
|
138
|
+
oe.error("Failed code evaluation: " + c.message, {
|
|
138
139
|
code: e
|
|
139
140
|
});
|
|
140
141
|
return;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function K(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
145
|
+
if (e == null || typeof e != "object") {
|
|
146
|
+
t(e, (r) => {
|
|
147
|
+
n !== null && i !== null && (n[i] = r);
|
|
148
|
+
});
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((r, a) => {
|
|
152
|
+
t(r, (d) => {
|
|
153
|
+
e[a] = d;
|
|
154
|
+
}), K(r, t, e, a, o);
|
|
155
|
+
}) : Object.entries(e).forEach(([r, a]) => {
|
|
156
|
+
t(a, (d) => {
|
|
157
|
+
e[r] = d;
|
|
158
|
+
}), K(a, t, e, r, o);
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
function Ve(e) {
|
|
162
|
+
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
163
|
+
}
|
|
164
|
+
function ut(e) {
|
|
165
|
+
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
166
|
+
return !1;
|
|
167
|
+
let t = !1;
|
|
168
|
+
return K(e, (n) => {
|
|
169
|
+
if (Ve(n)) {
|
|
170
|
+
t = !0;
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
173
|
+
}), t;
|
|
174
|
+
}
|
|
175
|
+
function mt(e, t) {
|
|
176
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
177
|
+
var o;
|
|
178
|
+
Ve(n) && i((o = n[t]) != null ? o : void 0);
|
|
179
|
+
}), e);
|
|
180
|
+
}
|
|
181
|
+
function ft(e, t) {
|
|
182
|
+
var n, i;
|
|
183
|
+
return (n = e.component) != null && n.options && ut((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 = mt(e.component.options, t != null ? t : "Default")), e;
|
|
184
|
+
}
|
|
185
|
+
function ne(e) {
|
|
144
186
|
if (e === null || typeof e != "object")
|
|
145
187
|
return e;
|
|
146
188
|
if (Array.isArray(e))
|
|
147
|
-
return e.map((n) =>
|
|
189
|
+
return e.map((n) => ne(n));
|
|
148
190
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
149
191
|
return e;
|
|
150
192
|
const t = {};
|
|
151
193
|
for (const n in e)
|
|
152
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
194
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
|
|
153
195
|
return t;
|
|
154
196
|
}
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
const t =
|
|
197
|
+
const ht = ["svelte", "vue", "angular", "qwik", "solid"].includes($), gt = (e) => {
|
|
198
|
+
if (ht) {
|
|
199
|
+
const t = re(e);
|
|
158
200
|
return {
|
|
159
201
|
...t,
|
|
160
202
|
properties: {
|
|
@@ -165,7 +207,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
165
207
|
}
|
|
166
208
|
};
|
|
167
209
|
} else {
|
|
168
|
-
const t =
|
|
210
|
+
const t = ne(at(e, "children", "meta"));
|
|
169
211
|
return {
|
|
170
212
|
...t,
|
|
171
213
|
properties: {
|
|
@@ -178,7 +220,7 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
178
220
|
meta: e.meta
|
|
179
221
|
};
|
|
180
222
|
}
|
|
181
|
-
},
|
|
223
|
+
}, bt = ({
|
|
182
224
|
block: e,
|
|
183
225
|
context: t,
|
|
184
226
|
localState: n,
|
|
@@ -187,20 +229,20 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
187
229
|
}) => {
|
|
188
230
|
if (!e.bindings)
|
|
189
231
|
return e;
|
|
190
|
-
const r =
|
|
232
|
+
const r = gt(e);
|
|
191
233
|
for (const a in e.bindings) {
|
|
192
|
-
const l = e.bindings[a], d =
|
|
234
|
+
const l = e.bindings[a], d = D({
|
|
193
235
|
code: l,
|
|
194
236
|
localState: n,
|
|
195
237
|
rootState: i,
|
|
196
238
|
rootSetState: o,
|
|
197
239
|
context: t
|
|
198
240
|
});
|
|
199
|
-
|
|
241
|
+
Re(r, a, d);
|
|
200
242
|
}
|
|
201
243
|
return r;
|
|
202
244
|
};
|
|
203
|
-
function
|
|
245
|
+
function pt({
|
|
204
246
|
block: e,
|
|
205
247
|
context: t,
|
|
206
248
|
shouldEvaluateBindings: n,
|
|
@@ -208,8 +250,8 @@ function ct({
|
|
|
208
250
|
rootState: o,
|
|
209
251
|
rootSetState: r
|
|
210
252
|
}) {
|
|
211
|
-
|
|
212
|
-
return n ?
|
|
253
|
+
let a = ft(e, o.locale);
|
|
254
|
+
return a = a, n ? bt({
|
|
213
255
|
block: a,
|
|
214
256
|
localState: i,
|
|
215
257
|
rootState: o,
|
|
@@ -217,8 +259,8 @@ function ct({
|
|
|
217
259
|
context: t
|
|
218
260
|
}) : a;
|
|
219
261
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
262
|
+
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
263
|
+
function yt(e, t, n = {}) {
|
|
222
264
|
let i, o, r, a = null, l = 0;
|
|
223
265
|
const d = function() {
|
|
224
266
|
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
@@ -240,55 +282,55 @@ function O(e, ...t) {
|
|
|
240
282
|
}
|
|
241
283
|
return n;
|
|
242
284
|
}
|
|
243
|
-
function
|
|
285
|
+
function xt(e) {
|
|
244
286
|
for (const t of e)
|
|
245
287
|
switch (t.trigger) {
|
|
246
288
|
case "pageLoad":
|
|
247
|
-
|
|
289
|
+
Ne(t);
|
|
248
290
|
break;
|
|
249
291
|
case "scrollInView":
|
|
250
|
-
|
|
292
|
+
St(t);
|
|
251
293
|
break;
|
|
252
294
|
}
|
|
253
295
|
}
|
|
254
|
-
function
|
|
296
|
+
function Ae(e) {
|
|
255
297
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
256
298
|
}
|
|
257
|
-
function
|
|
258
|
-
const n =
|
|
299
|
+
function We(e, t) {
|
|
300
|
+
const n = vt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
259
301
|
for (const l of a)
|
|
260
302
|
for (const d of n)
|
|
261
303
|
d in l || (l[d] = i[d]);
|
|
262
304
|
}
|
|
263
|
-
function
|
|
305
|
+
function vt(e) {
|
|
264
306
|
const t = [];
|
|
265
307
|
for (const n of e.steps)
|
|
266
308
|
for (const i in n.styles)
|
|
267
309
|
t.indexOf(i) === -1 && t.push(i);
|
|
268
310
|
return t;
|
|
269
311
|
}
|
|
270
|
-
function
|
|
312
|
+
function Ne(e) {
|
|
271
313
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
272
314
|
if (!t.length) {
|
|
273
|
-
|
|
315
|
+
Ae(e.elementId || e.id || "");
|
|
274
316
|
return;
|
|
275
317
|
}
|
|
276
318
|
Array.from(t).forEach((n) => {
|
|
277
|
-
|
|
278
|
-
n.style.transition = `all ${e.duration}s ${
|
|
319
|
+
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
|
|
320
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
|
|
279
321
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
280
322
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
281
323
|
});
|
|
282
324
|
});
|
|
283
325
|
}
|
|
284
|
-
function
|
|
326
|
+
function St(e) {
|
|
285
327
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
286
328
|
if (!t.length) {
|
|
287
|
-
|
|
329
|
+
Ae(e.elementId || e.id || "");
|
|
288
330
|
return;
|
|
289
331
|
}
|
|
290
332
|
Array.from(t).forEach((n) => {
|
|
291
|
-
|
|
333
|
+
We(e, n);
|
|
292
334
|
let i = !1, o = !1;
|
|
293
335
|
function r() {
|
|
294
336
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
@@ -297,7 +339,7 @@ function ft(e) {
|
|
|
297
339
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
298
340
|
})) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
299
341
|
}
|
|
300
|
-
const a =
|
|
342
|
+
const a = yt(r, 200, {
|
|
301
343
|
leading: !1
|
|
302
344
|
});
|
|
303
345
|
function l(h) {
|
|
@@ -309,49 +351,49 @@ function ft(e) {
|
|
|
309
351
|
O(n.style, d);
|
|
310
352
|
}
|
|
311
353
|
c(), setTimeout(() => {
|
|
312
|
-
n.style.transition = `all ${e.duration}s ${
|
|
354
|
+
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
313
355
|
}), document.addEventListener("scroll", a, {
|
|
314
356
|
capture: !0,
|
|
315
357
|
passive: !0
|
|
316
358
|
}), r();
|
|
317
359
|
});
|
|
318
360
|
}
|
|
319
|
-
const
|
|
361
|
+
const Fe = (e) => Object.entries(e).map(([n, i]) => {
|
|
320
362
|
if (typeof i == "string")
|
|
321
|
-
return `${
|
|
322
|
-
}).filter(
|
|
363
|
+
return `${J(n)}: ${i};`;
|
|
364
|
+
}).filter(te), kt = (e) => Fe(e).join(`
|
|
323
365
|
`), M = ({
|
|
324
366
|
mediaQuery: e,
|
|
325
367
|
className: t,
|
|
326
368
|
styles: n
|
|
327
369
|
}) => {
|
|
328
370
|
const i = `.${t} {
|
|
329
|
-
${
|
|
371
|
+
${kt(n)}
|
|
330
372
|
}`;
|
|
331
373
|
return e ? `${e} {
|
|
332
374
|
${i}
|
|
333
375
|
}` : i;
|
|
334
376
|
};
|
|
335
|
-
function
|
|
377
|
+
function Ct({
|
|
336
378
|
style: e
|
|
337
379
|
}) {
|
|
338
380
|
return e;
|
|
339
381
|
}
|
|
340
|
-
const
|
|
382
|
+
const Tt = ({
|
|
341
383
|
block: e,
|
|
342
384
|
context: t
|
|
343
|
-
}) =>
|
|
385
|
+
}) => $e(Ct({
|
|
344
386
|
style: e.style || {},
|
|
345
387
|
context: t,
|
|
346
388
|
block: e
|
|
347
389
|
}));
|
|
348
|
-
function
|
|
349
|
-
switch (
|
|
390
|
+
function $e(e) {
|
|
391
|
+
switch ($) {
|
|
350
392
|
case "svelte":
|
|
351
393
|
case "vue":
|
|
352
394
|
case "solid":
|
|
353
395
|
case "angular":
|
|
354
|
-
return
|
|
396
|
+
return Fe(e).join(" ");
|
|
355
397
|
case "qwik":
|
|
356
398
|
case "reactNative":
|
|
357
399
|
case "react":
|
|
@@ -359,21 +401,24 @@ function Ae(e) {
|
|
|
359
401
|
return e;
|
|
360
402
|
}
|
|
361
403
|
}
|
|
362
|
-
const
|
|
404
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, It = ({
|
|
363
405
|
block: e,
|
|
364
|
-
registeredComponents: t
|
|
406
|
+
registeredComponents: t,
|
|
407
|
+
model: n
|
|
365
408
|
}) => {
|
|
366
|
-
var
|
|
367
|
-
const
|
|
368
|
-
if (!
|
|
409
|
+
var r;
|
|
410
|
+
const i = (r = e.component) == null ? void 0 : r.name;
|
|
411
|
+
if (!i)
|
|
369
412
|
return null;
|
|
370
|
-
const
|
|
371
|
-
if (
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
Could not find a registered component named "${n}".
|
|
413
|
+
const o = t[i];
|
|
414
|
+
if (!o || Le(o, n)) {
|
|
415
|
+
console.warn(`
|
|
416
|
+
Could not find a registered component named "${i}".
|
|
375
417
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
376
|
-
|
|
418
|
+
return;
|
|
419
|
+
} else
|
|
420
|
+
return o;
|
|
421
|
+
}, wt = ({
|
|
377
422
|
block: e,
|
|
378
423
|
context: t
|
|
379
424
|
}) => {
|
|
@@ -383,7 +428,7 @@ const pt = ({
|
|
|
383
428
|
} = e;
|
|
384
429
|
if (!(n != null && n.collection))
|
|
385
430
|
return;
|
|
386
|
-
const o =
|
|
431
|
+
const o = D({
|
|
387
432
|
code: n.collection,
|
|
388
433
|
localState: t.localState,
|
|
389
434
|
rootState: t.rootState,
|
|
@@ -406,27 +451,27 @@ const pt = ({
|
|
|
406
451
|
},
|
|
407
452
|
block: i
|
|
408
453
|
}));
|
|
409
|
-
},
|
|
454
|
+
}, Et = (e, t) => {
|
|
410
455
|
var n;
|
|
411
456
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
412
457
|
builderLinkComponent: t
|
|
413
458
|
} : {};
|
|
414
|
-
},
|
|
415
|
-
var
|
|
416
|
-
return (
|
|
417
|
-
builderComponents: t
|
|
459
|
+
}, Rt = (e, t, n) => {
|
|
460
|
+
var i;
|
|
461
|
+
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
462
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, a]) => !Le(a, n)))
|
|
418
463
|
} : {};
|
|
419
|
-
},
|
|
464
|
+
}, Pt = (e, t) => {
|
|
420
465
|
var n;
|
|
421
466
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
422
467
|
builderBlock: t
|
|
423
468
|
} : {};
|
|
424
|
-
},
|
|
469
|
+
}, Bt = (e, t) => {
|
|
425
470
|
var n;
|
|
426
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
427
472
|
builderContext: t
|
|
428
473
|
} : {};
|
|
429
|
-
},
|
|
474
|
+
}, De = {
|
|
430
475
|
small: {
|
|
431
476
|
min: 320,
|
|
432
477
|
default: 321,
|
|
@@ -442,11 +487,11 @@ const pt = ({
|
|
|
442
487
|
default: 991,
|
|
443
488
|
max: 1200
|
|
444
489
|
}
|
|
445
|
-
},
|
|
490
|
+
}, he = (e, t = De) => `@media (max-width: ${t[e].max}px)`, Oe = ({
|
|
446
491
|
small: e,
|
|
447
492
|
medium: t
|
|
448
493
|
}) => {
|
|
449
|
-
const n =
|
|
494
|
+
const n = re(De);
|
|
450
495
|
if (!e || !t)
|
|
451
496
|
return n;
|
|
452
497
|
const i = Math.floor(e / 2);
|
|
@@ -469,7 +514,7 @@ const pt = ({
|
|
|
469
514
|
default: r + 1
|
|
470
515
|
}, n;
|
|
471
516
|
};
|
|
472
|
-
function
|
|
517
|
+
function G(e) {
|
|
473
518
|
return /* @__PURE__ */ s(
|
|
474
519
|
"style",
|
|
475
520
|
{
|
|
@@ -479,15 +524,15 @@ function J(e) {
|
|
|
479
524
|
}
|
|
480
525
|
);
|
|
481
526
|
}
|
|
482
|
-
function
|
|
527
|
+
function Vt(e) {
|
|
483
528
|
function t() {
|
|
484
529
|
const i = e.block;
|
|
485
|
-
return
|
|
530
|
+
return te(i.hide) ? !i.hide : te(i.show) ? i.show : !0;
|
|
486
531
|
}
|
|
487
532
|
function n() {
|
|
488
|
-
var
|
|
489
|
-
const i = e.block, o = i.responsiveStyles, r = e.context.content, a =
|
|
490
|
-
((
|
|
533
|
+
var x, b, p;
|
|
534
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Oe(
|
|
535
|
+
((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
|
|
491
536
|
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
492
537
|
if (!h)
|
|
493
538
|
return "";
|
|
@@ -497,26 +542,26 @@ function Ct(e) {
|
|
|
497
542
|
}) : "", m = d ? M({
|
|
498
543
|
className: h,
|
|
499
544
|
styles: d,
|
|
500
|
-
mediaQuery:
|
|
545
|
+
mediaQuery: he(
|
|
501
546
|
"medium",
|
|
502
547
|
a
|
|
503
548
|
)
|
|
504
|
-
}) : "",
|
|
549
|
+
}) : "", y = c ? M({
|
|
505
550
|
className: h,
|
|
506
551
|
styles: c,
|
|
507
|
-
mediaQuery:
|
|
552
|
+
mediaQuery: he(
|
|
508
553
|
"small",
|
|
509
554
|
a
|
|
510
555
|
)
|
|
511
|
-
}) : "", f = i.animations && i.animations.find((
|
|
512
|
-
let
|
|
556
|
+
}) : "", f = i.animations && i.animations.find((C) => C.trigger === "hover");
|
|
557
|
+
let v = "";
|
|
513
558
|
if (f) {
|
|
514
|
-
const
|
|
515
|
-
|
|
559
|
+
const C = ((p = (b = f.steps) == null ? void 0 : b[1]) == null ? void 0 : p.styles) || {};
|
|
560
|
+
v = M({
|
|
516
561
|
className: `${h}:hover`,
|
|
517
562
|
styles: {
|
|
518
|
-
...
|
|
519
|
-
transition: `all ${f.duration}s ${
|
|
563
|
+
...C,
|
|
564
|
+
transition: `all ${f.duration}s ${J(
|
|
520
565
|
f.easing
|
|
521
566
|
)}`,
|
|
522
567
|
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
@@ -526,12 +571,12 @@ function Ct(e) {
|
|
|
526
571
|
return [
|
|
527
572
|
g,
|
|
528
573
|
m,
|
|
529
|
-
|
|
530
|
-
|
|
574
|
+
y,
|
|
575
|
+
v
|
|
531
576
|
].join(" ");
|
|
532
577
|
}
|
|
533
578
|
return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
534
|
-
|
|
579
|
+
G,
|
|
535
580
|
{
|
|
536
581
|
id: "builderio-block",
|
|
537
582
|
styles: n(),
|
|
@@ -539,10 +584,10 @@ function Ct(e) {
|
|
|
539
584
|
}
|
|
540
585
|
) }) : null });
|
|
541
586
|
}
|
|
542
|
-
function
|
|
587
|
+
function At(e) {
|
|
543
588
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
544
589
|
}
|
|
545
|
-
const
|
|
590
|
+
const Wt = (e) => `on${At(e)}`, Nt = (e, t) => (n) => D({
|
|
546
591
|
code: e,
|
|
547
592
|
context: t.context,
|
|
548
593
|
localState: t.localState,
|
|
@@ -551,16 +596,16 @@ const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
|
|
|
551
596
|
event: n,
|
|
552
597
|
isExpression: !1
|
|
553
598
|
});
|
|
554
|
-
function
|
|
599
|
+
function Ue(e) {
|
|
555
600
|
var i;
|
|
556
601
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
557
602
|
for (const o in n) {
|
|
558
603
|
if (!n.hasOwnProperty(o))
|
|
559
604
|
continue;
|
|
560
605
|
const r = n[o];
|
|
561
|
-
let a =
|
|
606
|
+
let a = Wt(o);
|
|
562
607
|
if (e.stripPrefix)
|
|
563
|
-
switch (
|
|
608
|
+
switch ($) {
|
|
564
609
|
case "vue":
|
|
565
610
|
a = a.replace("v-on:", "");
|
|
566
611
|
break;
|
|
@@ -568,49 +613,49 @@ function Fe(e) {
|
|
|
568
613
|
a = a.replace("on:", "");
|
|
569
614
|
break;
|
|
570
615
|
}
|
|
571
|
-
t[a] =
|
|
616
|
+
t[a] = Nt(r, e);
|
|
572
617
|
}
|
|
573
618
|
return t;
|
|
574
619
|
}
|
|
575
|
-
function
|
|
620
|
+
function Ft({
|
|
576
621
|
properties: e
|
|
577
622
|
}) {
|
|
578
623
|
return e;
|
|
579
624
|
}
|
|
580
|
-
const
|
|
625
|
+
const $t = (e) => ({
|
|
581
626
|
href: e.href
|
|
582
627
|
});
|
|
583
|
-
function
|
|
628
|
+
function ce({
|
|
584
629
|
block: e,
|
|
585
630
|
context: t
|
|
586
631
|
}) {
|
|
587
632
|
var i;
|
|
588
633
|
const n = {
|
|
589
|
-
|
|
634
|
+
...$t(e),
|
|
590
635
|
...e.properties,
|
|
591
636
|
"builder-id": e.id,
|
|
592
|
-
style:
|
|
637
|
+
style: Tt({
|
|
593
638
|
block: e,
|
|
594
639
|
context: t
|
|
595
640
|
}),
|
|
596
641
|
[U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
597
642
|
};
|
|
598
|
-
return
|
|
643
|
+
return Ft({
|
|
599
644
|
properties: n,
|
|
600
645
|
context: t,
|
|
601
646
|
block: e
|
|
602
647
|
});
|
|
603
648
|
}
|
|
604
|
-
function
|
|
649
|
+
function Lt(e) {
|
|
605
650
|
return /* @__PURE__ */ s(
|
|
606
|
-
|
|
651
|
+
le,
|
|
607
652
|
{
|
|
608
653
|
TagName: e.Wrapper,
|
|
609
|
-
attributes:
|
|
654
|
+
attributes: ce({
|
|
610
655
|
block: e.block,
|
|
611
656
|
context: e.context
|
|
612
657
|
}),
|
|
613
|
-
actionAttributes:
|
|
658
|
+
actionAttributes: Ue({
|
|
614
659
|
block: e.block,
|
|
615
660
|
rootState: e.context.rootState,
|
|
616
661
|
rootSetState: e.context.rootSetState,
|
|
@@ -622,18 +667,18 @@ function Pt(e) {
|
|
|
622
667
|
}
|
|
623
668
|
);
|
|
624
669
|
}
|
|
625
|
-
function
|
|
626
|
-
return
|
|
670
|
+
function Dt(e) {
|
|
671
|
+
return A(() => {
|
|
627
672
|
}, []), /* @__PURE__ */ s(I, { children: e.children });
|
|
628
673
|
}
|
|
629
|
-
function
|
|
674
|
+
function Ot(e) {
|
|
630
675
|
function t() {
|
|
631
676
|
return e.includeBlockProps ? {
|
|
632
|
-
...
|
|
677
|
+
...ce({
|
|
633
678
|
block: e.block,
|
|
634
679
|
context: e.context
|
|
635
680
|
}),
|
|
636
|
-
...
|
|
681
|
+
...Ue({
|
|
637
682
|
block: e.block,
|
|
638
683
|
rootState: e.context.rootState,
|
|
639
684
|
rootSetState: e.context.rootSetState,
|
|
@@ -643,7 +688,7 @@ function Vt(e) {
|
|
|
643
688
|
} : {};
|
|
644
689
|
}
|
|
645
690
|
return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
646
|
-
|
|
691
|
+
Dt,
|
|
647
692
|
{
|
|
648
693
|
load: e.Wrapper.load,
|
|
649
694
|
fallback: e.Wrapper.fallback,
|
|
@@ -653,7 +698,7 @@ function Vt(e) {
|
|
|
653
698
|
}
|
|
654
699
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
655
700
|
}
|
|
656
|
-
const
|
|
701
|
+
const Ut = ({
|
|
657
702
|
componentOptions: e,
|
|
658
703
|
builderBlock: t,
|
|
659
704
|
context: n,
|
|
@@ -669,7 +714,7 @@ const At = ({
|
|
|
669
714
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
670
715
|
*/
|
|
671
716
|
...o ? {
|
|
672
|
-
attributes:
|
|
717
|
+
attributes: ce({
|
|
673
718
|
block: t,
|
|
674
719
|
context: a
|
|
675
720
|
})
|
|
@@ -683,15 +728,15 @@ const At = ({
|
|
|
683
728
|
includeBlockProps: o
|
|
684
729
|
} : l;
|
|
685
730
|
};
|
|
686
|
-
function
|
|
731
|
+
function ge(e) {
|
|
687
732
|
var i;
|
|
688
733
|
const [t, n] = R(
|
|
689
|
-
() => e.isInteractive ?
|
|
734
|
+
() => e.isInteractive ? Ot : e.componentRef
|
|
690
735
|
);
|
|
691
736
|
return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
692
737
|
t,
|
|
693
738
|
{
|
|
694
|
-
...
|
|
739
|
+
...Ut({
|
|
695
740
|
componentOptions: e.componentOptions,
|
|
696
741
|
builderBlock: e.builderBlock,
|
|
697
742
|
context: e.context,
|
|
@@ -714,9 +759,9 @@ function me(e) {
|
|
|
714
759
|
}
|
|
715
760
|
) }) : null });
|
|
716
761
|
}
|
|
717
|
-
function
|
|
762
|
+
function be(e) {
|
|
718
763
|
const [t, n] = R(() => e.repeatContext);
|
|
719
|
-
return /* @__PURE__ */ s(
|
|
764
|
+
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
720
765
|
H,
|
|
721
766
|
{
|
|
722
767
|
block: e.block,
|
|
@@ -727,9 +772,9 @@ function fe(e) {
|
|
|
727
772
|
) });
|
|
728
773
|
}
|
|
729
774
|
function H(e) {
|
|
730
|
-
var h, g, m,
|
|
775
|
+
var h, g, m, y;
|
|
731
776
|
function t() {
|
|
732
|
-
return
|
|
777
|
+
return wt({
|
|
733
778
|
block: e.block,
|
|
734
779
|
context: e.context
|
|
735
780
|
});
|
|
@@ -739,10 +784,10 @@ function H(e) {
|
|
|
739
784
|
update: !1
|
|
740
785
|
}));
|
|
741
786
|
function o() {
|
|
742
|
-
var
|
|
743
|
-
if (n.value && !n.update && !
|
|
787
|
+
var v;
|
|
788
|
+
if (n.value && !n.update && !ae())
|
|
744
789
|
return n.value;
|
|
745
|
-
const f = (
|
|
790
|
+
const f = (v = e.block.repeat) != null && v.collection ? e.block : pt({
|
|
746
791
|
block: e.block,
|
|
747
792
|
localState: e.context.localState,
|
|
748
793
|
rootState: e.context.rootState,
|
|
@@ -753,72 +798,74 @@ function H(e) {
|
|
|
753
798
|
return n.value = f, n.update = !1, f;
|
|
754
799
|
}
|
|
755
800
|
function r() {
|
|
756
|
-
return
|
|
801
|
+
return It({
|
|
757
802
|
block: o(),
|
|
758
|
-
registeredComponents: e.registeredComponents
|
|
803
|
+
registeredComponents: e.registeredComponents,
|
|
804
|
+
model: e.context.model
|
|
759
805
|
});
|
|
760
806
|
}
|
|
761
807
|
function a() {
|
|
762
|
-
var
|
|
763
|
-
return e.block.tagName === "a" || ((
|
|
808
|
+
var v;
|
|
809
|
+
return e.block.tagName === "a" || ((v = o().properties) == null ? void 0 : v.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
764
810
|
}
|
|
765
811
|
function l() {
|
|
766
|
-
var
|
|
767
|
-
if ((
|
|
768
|
-
return !!((
|
|
812
|
+
var x, b;
|
|
813
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
814
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
769
815
|
const f = "hide" in o() ? o().hide : !1;
|
|
770
816
|
return ("show" in o() ? o().show : !0) && !f;
|
|
771
817
|
}
|
|
772
818
|
function d() {
|
|
773
|
-
var
|
|
774
|
-
return !((
|
|
819
|
+
var v, x;
|
|
820
|
+
return !((v = r == null ? void 0 : r()) != null && v.component) && !t() ? (x = o().children) != null ? x : [] : [];
|
|
775
821
|
}
|
|
776
822
|
function c() {
|
|
777
|
-
var f,
|
|
823
|
+
var f, v, x, b;
|
|
778
824
|
return {
|
|
779
825
|
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
-
componentRef: (
|
|
826
|
+
componentRef: (v = r == null ? void 0 : r()) == null ? void 0 : v.component,
|
|
781
827
|
componentOptions: {
|
|
782
|
-
...
|
|
783
|
-
...
|
|
784
|
-
...
|
|
785
|
-
...
|
|
786
|
-
...
|
|
828
|
+
...ot(o()),
|
|
829
|
+
...Pt(r(), o()),
|
|
830
|
+
...Bt(r(), e.context),
|
|
831
|
+
...Et(r(), e.linkComponent),
|
|
832
|
+
...Rt(
|
|
787
833
|
r(),
|
|
788
|
-
e.registeredComponents
|
|
834
|
+
e.registeredComponents,
|
|
835
|
+
e.context.model
|
|
789
836
|
)
|
|
790
837
|
},
|
|
791
838
|
context: e.context,
|
|
792
839
|
linkComponent: e.linkComponent,
|
|
793
840
|
registeredComponents: e.registeredComponents,
|
|
794
841
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((
|
|
796
|
-
isInteractive: !((
|
|
842
|
+
includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
|
|
843
|
+
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && $ === "rsc")
|
|
797
844
|
};
|
|
798
845
|
}
|
|
799
|
-
return
|
|
800
|
-
const f = o().id,
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...
|
|
846
|
+
return A(() => {
|
|
847
|
+
const f = o().id, v = o().animations;
|
|
848
|
+
v && f && xt(
|
|
849
|
+
v.map((x) => ({
|
|
850
|
+
...x,
|
|
804
851
|
elementId: f
|
|
805
852
|
}))
|
|
806
853
|
);
|
|
807
|
-
}, []),
|
|
854
|
+
}, []), A(() => {
|
|
808
855
|
n.update = !0;
|
|
809
|
-
}), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */ s(
|
|
811
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (
|
|
812
|
-
|
|
856
|
+
}), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ W(I, { children: [
|
|
857
|
+
/* @__PURE__ */ s(Vt, { block: o(), context: e.context }),
|
|
858
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (y = t()) == null ? void 0 : y.map((f, v) => /* @__PURE__ */ s(
|
|
859
|
+
be,
|
|
813
860
|
{
|
|
814
861
|
repeatContext: f.context,
|
|
815
862
|
block: f.block,
|
|
816
863
|
registeredComponents: e.registeredComponents,
|
|
817
864
|
linkComponent: e.linkComponent
|
|
818
865
|
},
|
|
819
|
-
|
|
866
|
+
v
|
|
820
867
|
)) }) : /* @__PURE__ */ s(
|
|
821
|
-
|
|
868
|
+
ge,
|
|
822
869
|
{
|
|
823
870
|
componentRef: c().componentRef,
|
|
824
871
|
componentOptions: c().componentOptions,
|
|
@@ -830,24 +877,24 @@ function H(e) {
|
|
|
830
877
|
includeBlockProps: c().includeBlockProps,
|
|
831
878
|
isInteractive: c().isInteractive
|
|
832
879
|
}
|
|
833
|
-
) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f,
|
|
834
|
-
|
|
880
|
+
) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, v) => /* @__PURE__ */ s(
|
|
881
|
+
be,
|
|
835
882
|
{
|
|
836
883
|
repeatContext: f.context,
|
|
837
884
|
block: f.block,
|
|
838
885
|
registeredComponents: e.registeredComponents,
|
|
839
886
|
linkComponent: e.linkComponent
|
|
840
887
|
},
|
|
841
|
-
|
|
842
|
-
)) }) : /* @__PURE__ */
|
|
843
|
-
|
|
888
|
+
v
|
|
889
|
+
)) }) : /* @__PURE__ */ W(
|
|
890
|
+
Lt,
|
|
844
891
|
{
|
|
845
892
|
Wrapper: a(),
|
|
846
893
|
block: o(),
|
|
847
894
|
context: e.context,
|
|
848
895
|
children: [
|
|
849
896
|
/* @__PURE__ */ s(
|
|
850
|
-
|
|
897
|
+
ge,
|
|
851
898
|
{
|
|
852
899
|
componentRef: c().componentRef,
|
|
853
900
|
componentOptions: c().componentOptions,
|
|
@@ -875,8 +922,8 @@ function H(e) {
|
|
|
875
922
|
) })
|
|
876
923
|
] }) : null });
|
|
877
924
|
}
|
|
878
|
-
function
|
|
879
|
-
const t =
|
|
925
|
+
function Ht(e) {
|
|
926
|
+
const t = L(null);
|
|
880
927
|
function n() {
|
|
881
928
|
var a;
|
|
882
929
|
return [
|
|
@@ -917,8 +964,8 @@ function Wt(e) {
|
|
|
917
964
|
"*"
|
|
918
965
|
));
|
|
919
966
|
}
|
|
920
|
-
return
|
|
921
|
-
}, []), /* @__PURE__ */
|
|
967
|
+
return A(() => {
|
|
968
|
+
}, []), /* @__PURE__ */ W(I, { children: [
|
|
922
969
|
/* @__PURE__ */ s(
|
|
923
970
|
e.BlocksWrapper,
|
|
924
971
|
{
|
|
@@ -943,9 +990,9 @@ function Wt(e) {
|
|
|
943
990
|
}
|
|
944
991
|
function F(e) {
|
|
945
992
|
var i, o, r;
|
|
946
|
-
const t =
|
|
993
|
+
const t = fe(se), n = fe(Pe);
|
|
947
994
|
return /* @__PURE__ */ s(
|
|
948
|
-
|
|
995
|
+
Ht,
|
|
949
996
|
{
|
|
950
997
|
blocks: e.blocks,
|
|
951
998
|
parent: e.parent,
|
|
@@ -967,9 +1014,9 @@ function F(e) {
|
|
|
967
1014
|
}
|
|
968
1015
|
);
|
|
969
1016
|
}
|
|
970
|
-
const
|
|
971
|
-
function
|
|
972
|
-
var
|
|
1017
|
+
const _t = (e) => `builder-columns ${e}-breakpoints`;
|
|
1018
|
+
function Mt(e) {
|
|
1019
|
+
var v, x;
|
|
973
1020
|
function t() {
|
|
974
1021
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
975
1022
|
}
|
|
@@ -979,28 +1026,28 @@ function Ft(e) {
|
|
|
979
1026
|
function i() {
|
|
980
1027
|
return e.stackColumnsAt || "tablet";
|
|
981
1028
|
}
|
|
982
|
-
function o(
|
|
983
|
-
return
|
|
1029
|
+
function o(b) {
|
|
1030
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
984
1031
|
}
|
|
985
|
-
function r(
|
|
986
|
-
var
|
|
987
|
-
return ((
|
|
1032
|
+
function r(b) {
|
|
1033
|
+
var p;
|
|
1034
|
+
return ((p = n()[b]) == null ? void 0 : p.width) || 100 / n().length;
|
|
988
1035
|
}
|
|
989
|
-
function a(
|
|
990
|
-
const
|
|
991
|
-
return `calc(${
|
|
1036
|
+
function a(b) {
|
|
1037
|
+
const p = r(b), C = t() * (n().length - 1) * (p / 100);
|
|
1038
|
+
return `calc(${p}% - ${C}px)`;
|
|
992
1039
|
}
|
|
993
1040
|
function l({
|
|
994
|
-
stackedStyle:
|
|
995
|
-
desktopStyle:
|
|
1041
|
+
stackedStyle: b,
|
|
1042
|
+
desktopStyle: p
|
|
996
1043
|
}) {
|
|
997
|
-
return i() === "tablet" ?
|
|
1044
|
+
return i() === "tablet" ? b : p;
|
|
998
1045
|
}
|
|
999
1046
|
function d({
|
|
1000
|
-
stackedStyle:
|
|
1001
|
-
desktopStyle:
|
|
1047
|
+
stackedStyle: b,
|
|
1048
|
+
desktopStyle: p
|
|
1002
1049
|
}) {
|
|
1003
|
-
return i() === "never" ?
|
|
1050
|
+
return i() === "never" ? p : b;
|
|
1004
1051
|
}
|
|
1005
1052
|
function c() {
|
|
1006
1053
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1014,42 +1061,42 @@ function Ft(e) {
|
|
|
1014
1061
|
})
|
|
1015
1062
|
};
|
|
1016
1063
|
}
|
|
1017
|
-
function g(
|
|
1018
|
-
const
|
|
1064
|
+
function g(b) {
|
|
1065
|
+
const p = b === 0 ? 0 : t(), C = a(b), P = `${p}px`, S = "100%", w = 0;
|
|
1019
1066
|
return {
|
|
1020
1067
|
...{
|
|
1021
1068
|
display: "flex",
|
|
1022
1069
|
flexDirection: "column",
|
|
1023
1070
|
alignItems: "stretch"
|
|
1024
1071
|
},
|
|
1025
|
-
width:
|
|
1026
|
-
["marginLeft"]:
|
|
1072
|
+
width: C,
|
|
1073
|
+
["marginLeft"]: P,
|
|
1027
1074
|
"--column-width-mobile": d({
|
|
1028
|
-
stackedStyle:
|
|
1029
|
-
desktopStyle:
|
|
1075
|
+
stackedStyle: S,
|
|
1076
|
+
desktopStyle: C
|
|
1030
1077
|
}),
|
|
1031
1078
|
"--column-margin-left-mobile": d({
|
|
1032
1079
|
stackedStyle: w,
|
|
1033
|
-
desktopStyle:
|
|
1080
|
+
desktopStyle: P
|
|
1034
1081
|
}),
|
|
1035
1082
|
"--column-width-tablet": l({
|
|
1036
|
-
stackedStyle:
|
|
1037
|
-
desktopStyle:
|
|
1083
|
+
stackedStyle: S,
|
|
1084
|
+
desktopStyle: C
|
|
1038
1085
|
}),
|
|
1039
1086
|
"--column-margin-left-tablet": l({
|
|
1040
1087
|
stackedStyle: w,
|
|
1041
|
-
desktopStyle:
|
|
1088
|
+
desktopStyle: P
|
|
1042
1089
|
})
|
|
1043
1090
|
};
|
|
1044
1091
|
}
|
|
1045
|
-
function m(
|
|
1046
|
-
var
|
|
1047
|
-
return
|
|
1048
|
-
((
|
|
1049
|
-
)[
|
|
1092
|
+
function m(b) {
|
|
1093
|
+
var C, P;
|
|
1094
|
+
return Oe(
|
|
1095
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1096
|
+
)[b].max;
|
|
1050
1097
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const
|
|
1098
|
+
function y() {
|
|
1099
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1053
1100
|
return `
|
|
1054
1101
|
@media (max-width: ${m("medium")}px) {
|
|
1055
1102
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1057,7 +1104,7 @@ function Ft(e) {
|
|
|
1057
1104
|
align-items: stretch;
|
|
1058
1105
|
}
|
|
1059
1106
|
|
|
1060
|
-
${
|
|
1107
|
+
${b} {
|
|
1061
1108
|
width: var(--column-width-tablet) !important;
|
|
1062
1109
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1063
1110
|
}
|
|
@@ -1069,47 +1116,47 @@ function Ft(e) {
|
|
|
1069
1116
|
align-items: stretch;
|
|
1070
1117
|
}
|
|
1071
1118
|
|
|
1072
|
-
${
|
|
1119
|
+
${b} {
|
|
1073
1120
|
width: var(--column-width-mobile) !important;
|
|
1074
1121
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1075
1122
|
}
|
|
1076
1123
|
},
|
|
1077
1124
|
`;
|
|
1078
1125
|
}
|
|
1079
|
-
function f(
|
|
1126
|
+
function f(b, p) {
|
|
1080
1127
|
return {
|
|
1081
|
-
...
|
|
1082
|
-
href:
|
|
1128
|
+
...b.link ? {
|
|
1129
|
+
href: b.link
|
|
1083
1130
|
} : {},
|
|
1084
1131
|
[U()]: "builder-column",
|
|
1085
|
-
style:
|
|
1132
|
+
style: $e(g(p))
|
|
1086
1133
|
};
|
|
1087
1134
|
}
|
|
1088
|
-
return /* @__PURE__ */
|
|
1089
|
-
/* @__PURE__ */
|
|
1135
|
+
return /* @__PURE__ */ W(I, { children: [
|
|
1136
|
+
/* @__PURE__ */ W(
|
|
1090
1137
|
"div",
|
|
1091
1138
|
{
|
|
1092
|
-
className:
|
|
1139
|
+
className: _t((v = e.builderBlock) == null ? void 0 : v.id) + " div-49f40bae",
|
|
1093
1140
|
style: h(),
|
|
1094
1141
|
children: [
|
|
1095
1142
|
/* @__PURE__ */ s(
|
|
1096
|
-
|
|
1143
|
+
G,
|
|
1097
1144
|
{
|
|
1098
1145
|
id: "builderio-columns",
|
|
1099
|
-
styles:
|
|
1146
|
+
styles: y(),
|
|
1100
1147
|
nonce: e.builderContext.nonce
|
|
1101
1148
|
}
|
|
1102
1149
|
),
|
|
1103
|
-
(
|
|
1104
|
-
|
|
1150
|
+
(x = e.columns) == null ? void 0 : x.map((b, p) => /* @__PURE__ */ s(
|
|
1151
|
+
le,
|
|
1105
1152
|
{
|
|
1106
|
-
TagName: o(
|
|
1153
|
+
TagName: o(b),
|
|
1107
1154
|
actionAttributes: {},
|
|
1108
|
-
attributes: f(
|
|
1155
|
+
attributes: f(b, p),
|
|
1109
1156
|
children: /* @__PURE__ */ s(
|
|
1110
1157
|
F,
|
|
1111
1158
|
{
|
|
1112
|
-
path: `columns.${
|
|
1159
|
+
path: `columns.${p}.blocks`,
|
|
1113
1160
|
parent: e.builderBlock.id,
|
|
1114
1161
|
styleProp: {
|
|
1115
1162
|
flexGrow: "1"
|
|
@@ -1117,11 +1164,11 @@ function Ft(e) {
|
|
|
1117
1164
|
context: e.builderContext,
|
|
1118
1165
|
registeredComponents: e.builderComponents,
|
|
1119
1166
|
linkComponent: e.builderLinkComponent,
|
|
1120
|
-
blocks:
|
|
1167
|
+
blocks: b.blocks
|
|
1121
1168
|
}
|
|
1122
1169
|
)
|
|
1123
1170
|
},
|
|
1124
|
-
|
|
1171
|
+
p
|
|
1125
1172
|
))
|
|
1126
1173
|
]
|
|
1127
1174
|
}
|
|
@@ -1132,55 +1179,55 @@ function Ft(e) {
|
|
|
1132
1179
|
}` })
|
|
1133
1180
|
] });
|
|
1134
1181
|
}
|
|
1135
|
-
function
|
|
1182
|
+
function jt(e) {
|
|
1136
1183
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1137
1184
|
}
|
|
1138
|
-
function
|
|
1185
|
+
function pe(e) {
|
|
1139
1186
|
return e.replace(/http(s)?:/, "");
|
|
1140
1187
|
}
|
|
1141
|
-
function
|
|
1188
|
+
function qt(e = "", t, n) {
|
|
1142
1189
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1143
1190
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1144
1191
|
}
|
|
1145
|
-
function
|
|
1192
|
+
function zt(e, t) {
|
|
1146
1193
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1147
1194
|
return e;
|
|
1148
1195
|
if (t === "master")
|
|
1149
|
-
return
|
|
1196
|
+
return pe(e);
|
|
1150
1197
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1151
1198
|
if (n) {
|
|
1152
1199
|
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1153
|
-
return
|
|
1200
|
+
return pe(`${i[0]}_${r}${o}`);
|
|
1154
1201
|
}
|
|
1155
1202
|
return null;
|
|
1156
1203
|
}
|
|
1157
|
-
function
|
|
1204
|
+
function Y(e) {
|
|
1158
1205
|
if (!e)
|
|
1159
1206
|
return e;
|
|
1160
1207
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1161
1208
|
if (e.match(/builder\.io/)) {
|
|
1162
1209
|
let n = e;
|
|
1163
1210
|
const i = Number(e.split("?width=")[1]);
|
|
1164
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1211
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${qt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1165
1212
|
}
|
|
1166
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1213
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [zt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1167
1214
|
}
|
|
1168
|
-
function
|
|
1215
|
+
function Kt(e) {
|
|
1169
1216
|
var o, r, a, l, d, c;
|
|
1170
1217
|
function t() {
|
|
1171
1218
|
var m;
|
|
1172
1219
|
const g = e.image || e.src;
|
|
1173
1220
|
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1174
1221
|
// images, otherwise you can supply this prop manually
|
|
1175
|
-
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
1222
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1176
1223
|
return e.srcset;
|
|
1177
1224
|
if (!e.noWebp) {
|
|
1178
1225
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1179
1226
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1180
|
-
return console.debug("Removed given srcset"),
|
|
1227
|
+
return console.debug("Removed given srcset"), Y(g);
|
|
1181
1228
|
} else if (e.image && !e.srcset)
|
|
1182
|
-
return
|
|
1183
|
-
return
|
|
1229
|
+
return Y(g);
|
|
1230
|
+
return Y(g);
|
|
1184
1231
|
}
|
|
1185
1232
|
}
|
|
1186
1233
|
function n() {
|
|
@@ -1197,10 +1244,10 @@ function Ot(e) {
|
|
|
1197
1244
|
};
|
|
1198
1245
|
return e.aspectRatio ? h : void 0;
|
|
1199
1246
|
}
|
|
1200
|
-
return
|
|
1201
|
-
}, []), /* @__PURE__ */
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1247
|
+
return A(() => {
|
|
1248
|
+
}, []), /* @__PURE__ */ W(I, { children: [
|
|
1249
|
+
/* @__PURE__ */ W(I, { children: [
|
|
1250
|
+
/* @__PURE__ */ W("picture", { children: [
|
|
1204
1251
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1205
1252
|
/* @__PURE__ */ s(
|
|
1206
1253
|
"img",
|
|
@@ -1214,7 +1261,7 @@ function Ot(e) {
|
|
|
1214
1261
|
objectFit: e.backgroundSize || "cover",
|
|
1215
1262
|
...i()
|
|
1216
1263
|
},
|
|
1217
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1264
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-c071ff08",
|
|
1218
1265
|
src: e.image,
|
|
1219
1266
|
srcSet: t(),
|
|
1220
1267
|
sizes: e.sizes
|
|
@@ -1224,23 +1271,23 @@ function Ot(e) {
|
|
|
1224
1271
|
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1225
1272
|
"div",
|
|
1226
1273
|
{
|
|
1227
|
-
className: "builder-image-sizer div-
|
|
1274
|
+
className: "builder-image-sizer div-c071ff08",
|
|
1228
1275
|
style: {
|
|
1229
1276
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1230
1277
|
}
|
|
1231
1278
|
}
|
|
1232
1279
|
) : null,
|
|
1233
1280
|
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
|
|
1234
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-
|
|
1281
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-c071ff08-2", children: e.children }) : null
|
|
1235
1282
|
] }),
|
|
1236
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1283
|
+
/* @__PURE__ */ s("style", { children: `.img-c071ff08 {
|
|
1237
1284
|
opacity: 1;
|
|
1238
1285
|
transition: opacity 0.2s ease-in-out;
|
|
1239
|
-
}.div-
|
|
1286
|
+
}.div-c071ff08 {
|
|
1240
1287
|
width: 100%;
|
|
1241
1288
|
pointer-events: none;
|
|
1242
1289
|
font-size: 0;
|
|
1243
|
-
}.div-
|
|
1290
|
+
}.div-c071ff08-2 {
|
|
1244
1291
|
display: flex;
|
|
1245
1292
|
flex-direction: column;
|
|
1246
1293
|
align-items: stretch;
|
|
@@ -1252,7 +1299,7 @@ function Ot(e) {
|
|
|
1252
1299
|
}` })
|
|
1253
1300
|
] });
|
|
1254
1301
|
}
|
|
1255
|
-
function
|
|
1302
|
+
function Jt(e) {
|
|
1256
1303
|
return /* @__PURE__ */ s(
|
|
1257
1304
|
"section",
|
|
1258
1305
|
{
|
|
@@ -1273,7 +1320,7 @@ function Ut(e) {
|
|
|
1273
1320
|
}
|
|
1274
1321
|
);
|
|
1275
1322
|
}
|
|
1276
|
-
const
|
|
1323
|
+
const Q = {
|
|
1277
1324
|
"@type": "@builder.io/sdk:Element",
|
|
1278
1325
|
layerName: "Accordion item title",
|
|
1279
1326
|
responsiveStyles: {
|
|
@@ -1302,7 +1349,7 @@ const Y = {
|
|
|
1302
1349
|
}
|
|
1303
1350
|
}
|
|
1304
1351
|
}]
|
|
1305
|
-
},
|
|
1352
|
+
}, X = {
|
|
1306
1353
|
"@type": "@builder.io/sdk:Element",
|
|
1307
1354
|
layerName: "Accordion item detail",
|
|
1308
1355
|
responsiveStyles: {
|
|
@@ -1333,7 +1380,7 @@ const Y = {
|
|
|
1333
1380
|
}
|
|
1334
1381
|
}
|
|
1335
1382
|
}]
|
|
1336
|
-
},
|
|
1383
|
+
}, Gt = {
|
|
1337
1384
|
name: "Builder:Accordion",
|
|
1338
1385
|
canHaveChildren: !0,
|
|
1339
1386
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1350,19 +1397,19 @@ const Y = {
|
|
|
1350
1397
|
name: "title",
|
|
1351
1398
|
type: "uiBlocks",
|
|
1352
1399
|
hideFromUI: !0,
|
|
1353
|
-
defaultValue: [
|
|
1400
|
+
defaultValue: [Q]
|
|
1354
1401
|
}, {
|
|
1355
1402
|
name: "detail",
|
|
1356
1403
|
type: "uiBlocks",
|
|
1357
1404
|
hideFromUI: !0,
|
|
1358
|
-
defaultValue: [
|
|
1405
|
+
defaultValue: [X]
|
|
1359
1406
|
}],
|
|
1360
1407
|
defaultValue: [{
|
|
1361
|
-
title: [
|
|
1362
|
-
detail: [
|
|
1408
|
+
title: [Q],
|
|
1409
|
+
detail: [X]
|
|
1363
1410
|
}, {
|
|
1364
|
-
title: [
|
|
1365
|
-
detail: [
|
|
1411
|
+
title: [Q],
|
|
1412
|
+
detail: [X]
|
|
1366
1413
|
}],
|
|
1367
1414
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1368
1415
|
}, {
|
|
@@ -1397,8 +1444,8 @@ const Y = {
|
|
|
1397
1444
|
builderComponents: !0,
|
|
1398
1445
|
builderLinkComponent: !0
|
|
1399
1446
|
}
|
|
1400
|
-
},
|
|
1401
|
-
function
|
|
1447
|
+
}, ye = (e) => e.toString();
|
|
1448
|
+
function Yt(e) {
|
|
1402
1449
|
var g;
|
|
1403
1450
|
const [t, n] = R(() => []);
|
|
1404
1451
|
function i() {
|
|
@@ -1417,7 +1464,7 @@ function jt(e) {
|
|
|
1417
1464
|
};
|
|
1418
1465
|
}
|
|
1419
1466
|
function r() {
|
|
1420
|
-
const
|
|
1467
|
+
const y = {
|
|
1421
1468
|
...{
|
|
1422
1469
|
display: "flex",
|
|
1423
1470
|
flexDirection: "column"
|
|
@@ -1426,7 +1473,7 @@ function jt(e) {
|
|
|
1426
1473
|
cursor: "pointer"
|
|
1427
1474
|
};
|
|
1428
1475
|
return Object.fromEntries(
|
|
1429
|
-
Object.entries(
|
|
1476
|
+
Object.entries(y).filter(([f, v]) => v !== void 0)
|
|
1430
1477
|
);
|
|
1431
1478
|
}
|
|
1432
1479
|
function a(m) {
|
|
@@ -1439,22 +1486,22 @@ function jt(e) {
|
|
|
1439
1486
|
let m = null;
|
|
1440
1487
|
if (e.grid && t.length && document) {
|
|
1441
1488
|
const f = t[0];
|
|
1442
|
-
let
|
|
1489
|
+
let x = document.querySelector(
|
|
1443
1490
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1444
1491
|
);
|
|
1445
|
-
if (m = f,
|
|
1446
|
-
let
|
|
1447
|
-
for (;
|
|
1448
|
-
if (
|
|
1449
|
-
if (
|
|
1492
|
+
if (m = f, x) {
|
|
1493
|
+
let b = x.getBoundingClientRect();
|
|
1494
|
+
for (; x = x && x.nextElementSibling; )
|
|
1495
|
+
if (x) {
|
|
1496
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1450
1497
|
continue;
|
|
1451
|
-
const
|
|
1452
|
-
if (
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1498
|
+
const p = x.getBoundingClientRect();
|
|
1499
|
+
if (p.left > b.left) {
|
|
1500
|
+
const C = parseInt(
|
|
1501
|
+
x.getAttribute("data-index") || "",
|
|
1455
1502
|
10
|
|
1456
1503
|
);
|
|
1457
|
-
isNaN(
|
|
1504
|
+
isNaN(C) || (b = p, m = C);
|
|
1458
1505
|
} else
|
|
1459
1506
|
break;
|
|
1460
1507
|
}
|
|
@@ -1470,31 +1517,31 @@ function jt(e) {
|
|
|
1470
1517
|
}
|
|
1471
1518
|
};
|
|
1472
1519
|
return Object.fromEntries(
|
|
1473
|
-
Object.entries(m).filter(([
|
|
1520
|
+
Object.entries(m).filter(([y, f]) => f !== void 0)
|
|
1474
1521
|
);
|
|
1475
1522
|
}
|
|
1476
1523
|
function h(m) {
|
|
1477
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1524
|
+
t.includes(m) ? n(i() ? [] : t.filter((y) => y !== m)) : n(i() ? [m] : t.concat(m));
|
|
1478
1525
|
}
|
|
1479
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m,
|
|
1526
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, y) => /* @__PURE__ */ W(I, { children: [
|
|
1480
1527
|
/* @__PURE__ */ s(
|
|
1481
1528
|
"div",
|
|
1482
1529
|
{
|
|
1483
|
-
className: a(
|
|
1530
|
+
className: a(y),
|
|
1484
1531
|
style: {
|
|
1485
1532
|
...r(),
|
|
1486
1533
|
...e.grid && {
|
|
1487
1534
|
width: e.gridRowWidth,
|
|
1488
|
-
order: d() !== null ?
|
|
1535
|
+
order: d() !== null ? ye(y) : ye(y + 1)
|
|
1489
1536
|
}
|
|
1490
1537
|
},
|
|
1491
|
-
"data-index":
|
|
1492
|
-
onClick: (f) => h(
|
|
1538
|
+
"data-index": y,
|
|
1539
|
+
onClick: (f) => h(y),
|
|
1493
1540
|
children: /* @__PURE__ */ s(
|
|
1494
1541
|
F,
|
|
1495
1542
|
{
|
|
1496
1543
|
blocks: m.title,
|
|
1497
|
-
path: `items.${
|
|
1544
|
+
path: `items.${y}.title`,
|
|
1498
1545
|
parent: e.builderBlock.id,
|
|
1499
1546
|
context: e.builderContext,
|
|
1500
1547
|
registeredComponents: e.builderComponents,
|
|
@@ -1503,16 +1550,16 @@ function jt(e) {
|
|
|
1503
1550
|
)
|
|
1504
1551
|
}
|
|
1505
1552
|
),
|
|
1506
|
-
t.includes(
|
|
1553
|
+
t.includes(y) ? /* @__PURE__ */ s(
|
|
1507
1554
|
"div",
|
|
1508
1555
|
{
|
|
1509
|
-
className: l(
|
|
1556
|
+
className: l(y),
|
|
1510
1557
|
style: c(),
|
|
1511
1558
|
children: /* @__PURE__ */ s(
|
|
1512
1559
|
F,
|
|
1513
1560
|
{
|
|
1514
1561
|
blocks: m.detail,
|
|
1515
|
-
path: `items.${
|
|
1562
|
+
path: `items.${y}.detail`,
|
|
1516
1563
|
parent: e.builderBlock.id,
|
|
1517
1564
|
context: e.builderContext,
|
|
1518
1565
|
registeredComponents: e.builderComponents,
|
|
@@ -1523,7 +1570,7 @@ function jt(e) {
|
|
|
1523
1570
|
) : null
|
|
1524
1571
|
] })) });
|
|
1525
1572
|
}
|
|
1526
|
-
const
|
|
1573
|
+
const Qt = {
|
|
1527
1574
|
name: "Core:Button",
|
|
1528
1575
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1529
1576
|
defaultStyles: {
|
|
@@ -1559,7 +1606,7 @@ const Mt = {
|
|
|
1559
1606
|
shouldReceiveBuilderProps: {
|
|
1560
1607
|
builderLinkComponent: !0
|
|
1561
1608
|
}
|
|
1562
|
-
},
|
|
1609
|
+
}, Xt = {
|
|
1563
1610
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1564
1611
|
name: "Columns",
|
|
1565
1612
|
isRSC: !0,
|
|
@@ -1766,13 +1813,13 @@ const Mt = {
|
|
|
1766
1813
|
builderComponents: !0,
|
|
1767
1814
|
builderLinkComponent: !0
|
|
1768
1815
|
}
|
|
1769
|
-
},
|
|
1816
|
+
}, Zt = {
|
|
1770
1817
|
name: "Fragment",
|
|
1771
1818
|
static: !0,
|
|
1772
1819
|
hidden: !0,
|
|
1773
1820
|
canHaveChildren: !0,
|
|
1774
1821
|
noWrap: !0
|
|
1775
|
-
},
|
|
1822
|
+
}, 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"], en = ["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"], tn = {
|
|
1776
1823
|
name: "Image",
|
|
1777
1824
|
static: !0,
|
|
1778
1825
|
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",
|
|
@@ -1787,7 +1834,7 @@ const Mt = {
|
|
|
1787
1834
|
name: "image",
|
|
1788
1835
|
type: "file",
|
|
1789
1836
|
bubble: !0,
|
|
1790
|
-
allowedFileTypes:
|
|
1837
|
+
allowedFileTypes: de,
|
|
1791
1838
|
required: !0,
|
|
1792
1839
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1793
1840
|
onChange: (e) => {
|
|
@@ -1880,7 +1927,7 @@ const Mt = {
|
|
|
1880
1927
|
shouldReceiveBuilderProps: {
|
|
1881
1928
|
builderBlock: !0
|
|
1882
1929
|
}
|
|
1883
|
-
},
|
|
1930
|
+
}, nn = {
|
|
1884
1931
|
name: "Core:Section",
|
|
1885
1932
|
static: !0,
|
|
1886
1933
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1919,7 +1966,7 @@ const Mt = {
|
|
|
1919
1966
|
}
|
|
1920
1967
|
}
|
|
1921
1968
|
}]
|
|
1922
|
-
},
|
|
1969
|
+
}, on = {
|
|
1923
1970
|
name: "Slot",
|
|
1924
1971
|
isRSC: !0,
|
|
1925
1972
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1937,7 +1984,7 @@ const Mt = {
|
|
|
1937
1984
|
builderComponents: !0
|
|
1938
1985
|
}
|
|
1939
1986
|
};
|
|
1940
|
-
function
|
|
1987
|
+
function an(e) {
|
|
1941
1988
|
var t, n, i;
|
|
1942
1989
|
return /* @__PURE__ */ s(
|
|
1943
1990
|
"div",
|
|
@@ -1961,7 +2008,7 @@ function Gt(e) {
|
|
|
1961
2008
|
}
|
|
1962
2009
|
);
|
|
1963
2010
|
}
|
|
1964
|
-
const
|
|
2011
|
+
const rn = {
|
|
1965
2012
|
name: "Symbol",
|
|
1966
2013
|
noWrap: !0,
|
|
1967
2014
|
static: !0,
|
|
@@ -2000,7 +2047,7 @@ const Yt = {
|
|
|
2000
2047
|
builderComponents: !0,
|
|
2001
2048
|
builderLinkComponent: !0
|
|
2002
2049
|
}
|
|
2003
|
-
},
|
|
2050
|
+
}, Z = {
|
|
2004
2051
|
"@type": "@builder.io/sdk:Element",
|
|
2005
2052
|
responsiveStyles: {
|
|
2006
2053
|
large: {
|
|
@@ -2022,7 +2069,7 @@ const Yt = {
|
|
|
2022
2069
|
text: "New tab"
|
|
2023
2070
|
}
|
|
2024
2071
|
}
|
|
2025
|
-
},
|
|
2072
|
+
}, ee = {
|
|
2026
2073
|
"@type": "@builder.io/sdk:Element",
|
|
2027
2074
|
responsiveStyles: {
|
|
2028
2075
|
large: {
|
|
@@ -2038,7 +2085,7 @@ const Yt = {
|
|
|
2038
2085
|
text: "New tab content "
|
|
2039
2086
|
}
|
|
2040
2087
|
}
|
|
2041
|
-
},
|
|
2088
|
+
}, ln = {
|
|
2042
2089
|
name: "Builder: Tabs",
|
|
2043
2090
|
inputs: [{
|
|
2044
2091
|
name: "tabs",
|
|
@@ -2048,16 +2095,16 @@ const Yt = {
|
|
|
2048
2095
|
name: "label",
|
|
2049
2096
|
type: "uiBlocks",
|
|
2050
2097
|
hideFromUI: !0,
|
|
2051
|
-
defaultValue: [
|
|
2098
|
+
defaultValue: [Z]
|
|
2052
2099
|
}, {
|
|
2053
2100
|
name: "content",
|
|
2054
2101
|
type: "uiBlocks",
|
|
2055
2102
|
hideFromUI: !0,
|
|
2056
|
-
defaultValue: [
|
|
2103
|
+
defaultValue: [ee]
|
|
2057
2104
|
}],
|
|
2058
2105
|
defaultValue: [{
|
|
2059
2106
|
label: [{
|
|
2060
|
-
...
|
|
2107
|
+
...Z,
|
|
2061
2108
|
component: {
|
|
2062
2109
|
name: "Text",
|
|
2063
2110
|
options: {
|
|
@@ -2066,7 +2113,7 @@ const Yt = {
|
|
|
2066
2113
|
}
|
|
2067
2114
|
}],
|
|
2068
2115
|
content: [{
|
|
2069
|
-
...
|
|
2116
|
+
...ee,
|
|
2070
2117
|
component: {
|
|
2071
2118
|
name: "Text",
|
|
2072
2119
|
options: {
|
|
@@ -2076,7 +2123,7 @@ const Yt = {
|
|
|
2076
2123
|
}]
|
|
2077
2124
|
}, {
|
|
2078
2125
|
label: [{
|
|
2079
|
-
...
|
|
2126
|
+
...Z,
|
|
2080
2127
|
component: {
|
|
2081
2128
|
name: "Text",
|
|
2082
2129
|
options: {
|
|
@@ -2085,7 +2132,7 @@ const Yt = {
|
|
|
2085
2132
|
}
|
|
2086
2133
|
}],
|
|
2087
2134
|
content: [{
|
|
2088
|
-
...
|
|
2135
|
+
...ee,
|
|
2089
2136
|
component: {
|
|
2090
2137
|
name: "Text",
|
|
2091
2138
|
options: {
|
|
@@ -2142,7 +2189,7 @@ const Yt = {
|
|
|
2142
2189
|
builderLinkComponent: !0
|
|
2143
2190
|
}
|
|
2144
2191
|
};
|
|
2145
|
-
function
|
|
2192
|
+
function sn(e) {
|
|
2146
2193
|
var r;
|
|
2147
2194
|
const [t, n] = R(
|
|
2148
2195
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2153,7 +2200,7 @@ function Xt(e) {
|
|
|
2153
2200
|
function o(a) {
|
|
2154
2201
|
a === t && e.collapsible ? n(-1) : n(a);
|
|
2155
2202
|
}
|
|
2156
|
-
return /* @__PURE__ */
|
|
2203
|
+
return /* @__PURE__ */ W("div", { children: [
|
|
2157
2204
|
/* @__PURE__ */ s(
|
|
2158
2205
|
"div",
|
|
2159
2206
|
{
|
|
@@ -2201,7 +2248,7 @@ function Xt(e) {
|
|
|
2201
2248
|
) }) : null
|
|
2202
2249
|
] });
|
|
2203
2250
|
}
|
|
2204
|
-
const
|
|
2251
|
+
const cn = {
|
|
2205
2252
|
shouldReceiveBuilderProps: {
|
|
2206
2253
|
builderBlock: !1,
|
|
2207
2254
|
builderContext: !0
|
|
@@ -2224,7 +2271,7 @@ const Zt = {
|
|
|
2224
2271
|
textAlign: "center"
|
|
2225
2272
|
}
|
|
2226
2273
|
};
|
|
2227
|
-
function
|
|
2274
|
+
function dn(e) {
|
|
2228
2275
|
function t() {
|
|
2229
2276
|
var l;
|
|
2230
2277
|
const n = e.builderContext, {
|
|
@@ -2235,7 +2282,7 @@ function en(e) {
|
|
|
2235
2282
|
} = n;
|
|
2236
2283
|
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2237
2284
|
/{{([^}]+)}}/g,
|
|
2238
|
-
(d, c) =>
|
|
2285
|
+
(d, c) => D({
|
|
2239
2286
|
code: c,
|
|
2240
2287
|
context: i,
|
|
2241
2288
|
localState: o,
|
|
@@ -2255,7 +2302,7 @@ function en(e) {
|
|
|
2255
2302
|
}
|
|
2256
2303
|
);
|
|
2257
2304
|
}
|
|
2258
|
-
const
|
|
2305
|
+
const un = {
|
|
2259
2306
|
name: "Custom Code",
|
|
2260
2307
|
static: !0,
|
|
2261
2308
|
requiredPermissions: ["editCode"],
|
|
@@ -2278,9 +2325,9 @@ const tn = {
|
|
|
2278
2325
|
advanced: !0
|
|
2279
2326
|
}]
|
|
2280
2327
|
};
|
|
2281
|
-
function
|
|
2282
|
-
const t =
|
|
2283
|
-
return
|
|
2328
|
+
function mn(e) {
|
|
2329
|
+
const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []);
|
|
2330
|
+
return A(() => {
|
|
2284
2331
|
var l;
|
|
2285
2332
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2286
2333
|
return;
|
|
@@ -2316,7 +2363,7 @@ function nn(e) {
|
|
|
2316
2363
|
}
|
|
2317
2364
|
);
|
|
2318
2365
|
}
|
|
2319
|
-
const
|
|
2366
|
+
const fn = {
|
|
2320
2367
|
name: "Embed",
|
|
2321
2368
|
static: !0,
|
|
2322
2369
|
inputs: [{
|
|
@@ -2331,9 +2378,9 @@ const on = {
|
|
|
2331
2378
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2332
2379
|
hideFromUI: !0
|
|
2333
2380
|
}]
|
|
2334
|
-
},
|
|
2335
|
-
function
|
|
2336
|
-
const t =
|
|
2381
|
+
}, hn = ["text/javascript", "application/javascript", "application/ecmascript"], gn = (e) => hn.includes(e.type);
|
|
2382
|
+
function bn(e) {
|
|
2383
|
+
const t = L(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
|
|
2337
2384
|
function d() {
|
|
2338
2385
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2339
2386
|
return;
|
|
@@ -2344,7 +2391,7 @@ function ln(e) {
|
|
|
2344
2391
|
n.push(g.src);
|
|
2345
2392
|
const m = document.createElement("script");
|
|
2346
2393
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2347
|
-
} else if (
|
|
2394
|
+
} else if (gn(g) && !o.includes(g.innerText))
|
|
2348
2395
|
try {
|
|
2349
2396
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2350
2397
|
} catch (m) {
|
|
@@ -2352,7 +2399,7 @@ function ln(e) {
|
|
|
2352
2399
|
}
|
|
2353
2400
|
}
|
|
2354
2401
|
}
|
|
2355
|
-
return
|
|
2402
|
+
return A(() => {
|
|
2356
2403
|
t.current && !a && (l(!0), d());
|
|
2357
2404
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2358
2405
|
"div",
|
|
@@ -2363,7 +2410,7 @@ function ln(e) {
|
|
|
2363
2410
|
}
|
|
2364
2411
|
);
|
|
2365
2412
|
}
|
|
2366
|
-
const
|
|
2413
|
+
const pn = {
|
|
2367
2414
|
name: "Form:Form",
|
|
2368
2415
|
// editableTags: ['builder-form-error']
|
|
2369
2416
|
defaults: {
|
|
@@ -2600,91 +2647,91 @@ const sn = {
|
|
|
2600
2647
|
builderComponents: !0,
|
|
2601
2648
|
builderLinkComponent: !0
|
|
2602
2649
|
}
|
|
2603
|
-
},
|
|
2650
|
+
}, yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], xn = () => {
|
|
2604
2651
|
const e = process.env.NODE_ENV || "production";
|
|
2605
|
-
return
|
|
2652
|
+
return yn.includes(e) ? e : "production";
|
|
2606
2653
|
};
|
|
2607
|
-
function
|
|
2654
|
+
function vn(e) {
|
|
2608
2655
|
var g, m;
|
|
2609
|
-
const t =
|
|
2610
|
-
function d(
|
|
2611
|
-
var
|
|
2656
|
+
const t = L(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
|
|
2657
|
+
function d(y) {
|
|
2658
|
+
var v, x;
|
|
2612
2659
|
const f = {
|
|
2613
2660
|
...e.builderContext.rootState,
|
|
2614
|
-
...
|
|
2661
|
+
...y
|
|
2615
2662
|
};
|
|
2616
|
-
e.builderContext.rootSetState ? (
|
|
2663
|
+
e.builderContext.rootSetState ? (x = (v = e.builderContext).rootSetState) == null || x.call(v, f) : e.builderContext.rootState = f;
|
|
2617
2664
|
}
|
|
2618
2665
|
function c() {
|
|
2619
2666
|
return N() && e.previewState || n;
|
|
2620
2667
|
}
|
|
2621
|
-
function h(
|
|
2622
|
-
var
|
|
2668
|
+
function h(y) {
|
|
2669
|
+
var v;
|
|
2623
2670
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2624
2671
|
if (e.sendSubmissionsTo === "zapier")
|
|
2625
|
-
|
|
2672
|
+
y.preventDefault();
|
|
2626
2673
|
else if (f) {
|
|
2627
2674
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2628
|
-
|
|
2675
|
+
y.preventDefault();
|
|
2629
2676
|
return;
|
|
2630
2677
|
}
|
|
2631
|
-
|
|
2632
|
-
const
|
|
2633
|
-
let
|
|
2634
|
-
const
|
|
2635
|
-
let
|
|
2636
|
-
const
|
|
2678
|
+
y.preventDefault();
|
|
2679
|
+
const x = y.currentTarget || y.target, b = e.customHeaders || {};
|
|
2680
|
+
let p;
|
|
2681
|
+
const C = new FormData(x), P = Array.from(x.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2682
|
+
let k;
|
|
2683
|
+
const V = u.name;
|
|
2637
2684
|
if (u instanceof HTMLInputElement)
|
|
2638
2685
|
if (u.type === "radio") {
|
|
2639
2686
|
if (u.checked)
|
|
2640
|
-
return
|
|
2641
|
-
key:
|
|
2642
|
-
value:
|
|
2687
|
+
return k = u.name, {
|
|
2688
|
+
key: V,
|
|
2689
|
+
value: k
|
|
2643
2690
|
};
|
|
2644
2691
|
} else if (u.type === "checkbox")
|
|
2645
|
-
|
|
2692
|
+
k = u.checked;
|
|
2646
2693
|
else if (u.type === "number" || u.type === "range") {
|
|
2647
2694
|
const E = u.valueAsNumber;
|
|
2648
|
-
isNaN(E) || (
|
|
2695
|
+
isNaN(E) || (k = E);
|
|
2649
2696
|
} else
|
|
2650
|
-
u.type === "file" ?
|
|
2697
|
+
u.type === "file" ? k = u.files : k = u.value;
|
|
2651
2698
|
else
|
|
2652
|
-
|
|
2699
|
+
k = u.value;
|
|
2653
2700
|
return {
|
|
2654
|
-
key:
|
|
2655
|
-
value:
|
|
2701
|
+
key: V,
|
|
2702
|
+
value: k
|
|
2656
2703
|
};
|
|
2657
2704
|
});
|
|
2658
|
-
let
|
|
2659
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2660
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2661
|
-
}),
|
|
2662
|
-
|
|
2705
|
+
let S = e.contentType;
|
|
2706
|
+
if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
|
|
2707
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (S = "multipart/form-data");
|
|
2708
|
+
}), S !== "application/json")
|
|
2709
|
+
p = C;
|
|
2663
2710
|
else {
|
|
2664
2711
|
const u = {};
|
|
2665
|
-
Array.from(
|
|
2666
|
-
|
|
2667
|
-
}),
|
|
2712
|
+
Array.from(P).forEach(({ value: k, key: V }) => {
|
|
2713
|
+
Re(u, V, k);
|
|
2714
|
+
}), p = JSON.stringify(u);
|
|
2668
2715
|
}
|
|
2669
|
-
|
|
2670
|
-
const w = new CustomEvent("presubmit", { detail: { body:
|
|
2716
|
+
S && S !== "multipart/form-data" && (f && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = S));
|
|
2717
|
+
const w = new CustomEvent("presubmit", { detail: { body: p } });
|
|
2671
2718
|
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2672
2719
|
return;
|
|
2673
2720
|
i("sending");
|
|
2674
|
-
const
|
|
2721
|
+
const B = `${xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2675
2722
|
e.sendSubmissionsToEmail || ""
|
|
2676
|
-
)}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ?
|
|
2677
|
-
|
|
2723
|
+
)}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? B : e.action;
|
|
2724
|
+
Te(T), fetch(T, { body: p, headers: b, method: e.method || "post" }).then(
|
|
2678
2725
|
async (u) => {
|
|
2679
|
-
let
|
|
2680
|
-
const
|
|
2681
|
-
if (
|
|
2682
|
-
let E =
|
|
2726
|
+
let k;
|
|
2727
|
+
const V = u.headers.get("content-type");
|
|
2728
|
+
if (V && V.indexOf("application/json") !== -1 ? k = await u.json() : k = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2729
|
+
let E = Be(k, e.errorMessagePath);
|
|
2683
2730
|
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
2684
2731
|
}
|
|
2685
|
-
if (r(
|
|
2732
|
+
if (r(k), i(u.ok ? "success" : "error"), u.ok) {
|
|
2686
2733
|
const E = new CustomEvent("submit:success", {
|
|
2687
|
-
detail: { res: u, body:
|
|
2734
|
+
detail: { res: u, body: k }
|
|
2688
2735
|
});
|
|
2689
2736
|
if (t.current) {
|
|
2690
2737
|
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
@@ -2693,26 +2740,26 @@ function un(e) {
|
|
|
2693
2740
|
}
|
|
2694
2741
|
if (e.successUrl)
|
|
2695
2742
|
if (t.current) {
|
|
2696
|
-
const
|
|
2743
|
+
const _ = new CustomEvent("route", {
|
|
2697
2744
|
detail: { url: e.successUrl }
|
|
2698
2745
|
});
|
|
2699
|
-
t.current.dispatchEvent(
|
|
2746
|
+
t.current.dispatchEvent(_), _.defaultPrevented || (location.href = e.successUrl);
|
|
2700
2747
|
} else
|
|
2701
2748
|
location.href = e.successUrl;
|
|
2702
2749
|
}
|
|
2703
2750
|
},
|
|
2704
2751
|
(u) => {
|
|
2705
|
-
const
|
|
2752
|
+
const k = new CustomEvent("submit:error", {
|
|
2706
2753
|
detail: { error: u }
|
|
2707
2754
|
});
|
|
2708
|
-
t.current && (t.current.dispatchEvent(
|
|
2755
|
+
t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (r(u), i("error"));
|
|
2709
2756
|
}
|
|
2710
2757
|
);
|
|
2711
2758
|
}
|
|
2712
2759
|
}
|
|
2713
|
-
return /* @__PURE__ */
|
|
2760
|
+
return /* @__PURE__ */ W(I, { children: [
|
|
2714
2761
|
" ",
|
|
2715
|
-
/* @__PURE__ */
|
|
2762
|
+
/* @__PURE__ */ W(
|
|
2716
2763
|
"form",
|
|
2717
2764
|
{
|
|
2718
2765
|
validate: e.validate,
|
|
@@ -2720,13 +2767,13 @@ function un(e) {
|
|
|
2720
2767
|
action: !e.sendWithJs && e.action,
|
|
2721
2768
|
method: e.method,
|
|
2722
2769
|
name: e.name,
|
|
2723
|
-
onSubmit: (
|
|
2770
|
+
onSubmit: (y) => h(y),
|
|
2724
2771
|
...e.attributes,
|
|
2725
2772
|
children: [
|
|
2726
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((
|
|
2773
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((y, f) => /* @__PURE__ */ s(
|
|
2727
2774
|
H,
|
|
2728
2775
|
{
|
|
2729
|
-
block:
|
|
2776
|
+
block: y,
|
|
2730
2777
|
context: e.builderContext,
|
|
2731
2778
|
registeredComponents: e.builderComponents,
|
|
2732
2779
|
linkComponent: e.builderLinkComponent
|
|
@@ -2766,7 +2813,7 @@ function un(e) {
|
|
|
2766
2813
|
" "
|
|
2767
2814
|
] });
|
|
2768
2815
|
}
|
|
2769
|
-
const
|
|
2816
|
+
const Sn = {
|
|
2770
2817
|
name: "Form:Input",
|
|
2771
2818
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2772
2819
|
inputs: [
|
|
@@ -2818,8 +2865,8 @@ const mn = {
|
|
|
2818
2865
|
borderColor: "#ccc"
|
|
2819
2866
|
}
|
|
2820
2867
|
};
|
|
2821
|
-
function
|
|
2822
|
-
return /* @__PURE__ */
|
|
2868
|
+
function kn(e) {
|
|
2869
|
+
return /* @__PURE__ */ Ee(
|
|
2823
2870
|
"input",
|
|
2824
2871
|
{
|
|
2825
2872
|
...e.attributes,
|
|
@@ -2833,7 +2880,7 @@ function fn(e) {
|
|
|
2833
2880
|
}
|
|
2834
2881
|
);
|
|
2835
2882
|
}
|
|
2836
|
-
const
|
|
2883
|
+
const Cn = {
|
|
2837
2884
|
name: "Form:Select",
|
|
2838
2885
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2839
2886
|
defaultStyles: {
|
|
@@ -2876,9 +2923,9 @@ const hn = {
|
|
|
2876
2923
|
static: !0,
|
|
2877
2924
|
noWrap: !0
|
|
2878
2925
|
};
|
|
2879
|
-
function
|
|
2926
|
+
function Tn(e) {
|
|
2880
2927
|
var t;
|
|
2881
|
-
return /* @__PURE__ */
|
|
2928
|
+
return /* @__PURE__ */ Ee(
|
|
2882
2929
|
"select",
|
|
2883
2930
|
{
|
|
2884
2931
|
...e.attributes,
|
|
@@ -2891,7 +2938,7 @@ function gn(e) {
|
|
|
2891
2938
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2892
2939
|
);
|
|
2893
2940
|
}
|
|
2894
|
-
const
|
|
2941
|
+
const In = {
|
|
2895
2942
|
name: "Form:SubmitButton",
|
|
2896
2943
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2897
2944
|
defaultStyles: {
|
|
@@ -2917,10 +2964,10 @@ const bn = {
|
|
|
2917
2964
|
// TODO: defaultChildren
|
|
2918
2965
|
// canHaveChildren: true,
|
|
2919
2966
|
};
|
|
2920
|
-
function
|
|
2967
|
+
function wn(e) {
|
|
2921
2968
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2922
2969
|
}
|
|
2923
|
-
const
|
|
2970
|
+
const En = {
|
|
2924
2971
|
name: "Form:TextArea",
|
|
2925
2972
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2926
2973
|
inputs: [{
|
|
@@ -2957,7 +3004,7 @@ const yn = {
|
|
|
2957
3004
|
static: !0,
|
|
2958
3005
|
noWrap: !0
|
|
2959
3006
|
};
|
|
2960
|
-
function
|
|
3007
|
+
function Rn(e) {
|
|
2961
3008
|
return /* @__PURE__ */ s(
|
|
2962
3009
|
"textarea",
|
|
2963
3010
|
{
|
|
@@ -2970,7 +3017,7 @@ function xn(e) {
|
|
|
2970
3017
|
}
|
|
2971
3018
|
);
|
|
2972
3019
|
}
|
|
2973
|
-
const
|
|
3020
|
+
const Pn = {
|
|
2974
3021
|
// friendlyName?
|
|
2975
3022
|
name: "Raw:Img",
|
|
2976
3023
|
hideFromInsertMenu: !0,
|
|
@@ -2979,13 +3026,13 @@ const vn = {
|
|
|
2979
3026
|
name: "image",
|
|
2980
3027
|
bubble: !0,
|
|
2981
3028
|
type: "file",
|
|
2982
|
-
allowedFileTypes:
|
|
3029
|
+
allowedFileTypes: de,
|
|
2983
3030
|
required: !0
|
|
2984
3031
|
}],
|
|
2985
3032
|
noWrap: !0,
|
|
2986
3033
|
static: !0
|
|
2987
3034
|
};
|
|
2988
|
-
function
|
|
3035
|
+
function Bn(e) {
|
|
2989
3036
|
return /* @__PURE__ */ s(
|
|
2990
3037
|
"img",
|
|
2991
3038
|
{
|
|
@@ -3000,7 +3047,7 @@ function Sn(e) {
|
|
|
3000
3047
|
N() && e.imgSrc || "default-key"
|
|
3001
3048
|
);
|
|
3002
3049
|
}
|
|
3003
|
-
const
|
|
3050
|
+
const Vn = {
|
|
3004
3051
|
name: "Video",
|
|
3005
3052
|
canHaveChildren: !0,
|
|
3006
3053
|
defaultStyles: {
|
|
@@ -3011,14 +3058,14 @@ const kn = {
|
|
|
3011
3058
|
inputs: [{
|
|
3012
3059
|
name: "video",
|
|
3013
3060
|
type: "file",
|
|
3014
|
-
allowedFileTypes:
|
|
3061
|
+
allowedFileTypes: en,
|
|
3015
3062
|
bubble: !0,
|
|
3016
3063
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3017
3064
|
required: !0
|
|
3018
3065
|
}, {
|
|
3019
3066
|
name: "posterImage",
|
|
3020
3067
|
type: "file",
|
|
3021
|
-
allowedFileTypes:
|
|
3068
|
+
allowedFileTypes: de,
|
|
3022
3069
|
helperText: "Image to show before the video plays"
|
|
3023
3070
|
}, {
|
|
3024
3071
|
name: "autoPlay",
|
|
@@ -3085,7 +3132,7 @@ const kn = {
|
|
|
3085
3132
|
builderBlock: !0
|
|
3086
3133
|
}
|
|
3087
3134
|
};
|
|
3088
|
-
function
|
|
3135
|
+
function An(e) {
|
|
3089
3136
|
var i, o, r, a, l, d, c;
|
|
3090
3137
|
function t() {
|
|
3091
3138
|
return {
|
|
@@ -3111,7 +3158,7 @@ function Cn(e) {
|
|
|
3111
3158
|
...t()
|
|
3112
3159
|
};
|
|
3113
3160
|
}
|
|
3114
|
-
return /* @__PURE__ */
|
|
3161
|
+
return /* @__PURE__ */ W(
|
|
3115
3162
|
"div",
|
|
3116
3163
|
{
|
|
3117
3164
|
style: {
|
|
@@ -3186,64 +3233,64 @@ function Cn(e) {
|
|
|
3186
3233
|
}
|
|
3187
3234
|
);
|
|
3188
3235
|
}
|
|
3189
|
-
const
|
|
3190
|
-
component:
|
|
3191
|
-
...
|
|
3236
|
+
const Wn = () => [{
|
|
3237
|
+
component: mn,
|
|
3238
|
+
...un
|
|
3192
3239
|
}, {
|
|
3193
|
-
component:
|
|
3194
|
-
...
|
|
3240
|
+
component: bn,
|
|
3241
|
+
...fn
|
|
3195
3242
|
}, {
|
|
3196
|
-
component:
|
|
3197
|
-
...
|
|
3243
|
+
component: vn,
|
|
3244
|
+
...pn
|
|
3198
3245
|
}, {
|
|
3199
|
-
component:
|
|
3200
|
-
...
|
|
3246
|
+
component: kn,
|
|
3247
|
+
...Sn
|
|
3201
3248
|
}, {
|
|
3202
|
-
component:
|
|
3203
|
-
...
|
|
3249
|
+
component: wn,
|
|
3250
|
+
...In
|
|
3204
3251
|
}, {
|
|
3205
|
-
component:
|
|
3206
|
-
...
|
|
3252
|
+
component: Tn,
|
|
3253
|
+
...Cn
|
|
3207
3254
|
}, {
|
|
3208
|
-
component:
|
|
3209
|
-
...
|
|
3255
|
+
component: Rn,
|
|
3256
|
+
...En
|
|
3210
3257
|
}, {
|
|
3211
|
-
component:
|
|
3212
|
-
...
|
|
3258
|
+
component: Bn,
|
|
3259
|
+
...Pn
|
|
3213
3260
|
}, {
|
|
3214
|
-
component:
|
|
3215
|
-
...
|
|
3216
|
-
}],
|
|
3217
|
-
component:
|
|
3218
|
-
...
|
|
3261
|
+
component: An,
|
|
3262
|
+
...Vn
|
|
3263
|
+
}], xe = () => [{
|
|
3264
|
+
component: it,
|
|
3265
|
+
...Qt
|
|
3219
3266
|
}, {
|
|
3220
|
-
component:
|
|
3221
|
-
...
|
|
3267
|
+
component: Mt,
|
|
3268
|
+
...Xt
|
|
3222
3269
|
}, {
|
|
3223
|
-
component:
|
|
3224
|
-
...
|
|
3270
|
+
component: jt,
|
|
3271
|
+
...Zt
|
|
3225
3272
|
}, {
|
|
3226
|
-
component:
|
|
3227
|
-
...
|
|
3273
|
+
component: Kt,
|
|
3274
|
+
...tn
|
|
3228
3275
|
}, {
|
|
3229
|
-
component:
|
|
3230
|
-
...
|
|
3276
|
+
component: Jt,
|
|
3277
|
+
...nn
|
|
3231
3278
|
}, {
|
|
3232
|
-
component:
|
|
3233
|
-
...
|
|
3279
|
+
component: an,
|
|
3280
|
+
...on
|
|
3234
3281
|
}, {
|
|
3235
|
-
component:
|
|
3236
|
-
...
|
|
3282
|
+
component: ii,
|
|
3283
|
+
...rn
|
|
3237
3284
|
}, {
|
|
3238
|
-
component:
|
|
3239
|
-
...
|
|
3285
|
+
component: dn,
|
|
3286
|
+
...cn
|
|
3240
3287
|
}, {
|
|
3241
|
-
component:
|
|
3242
|
-
...
|
|
3288
|
+
component: sn,
|
|
3289
|
+
...ln
|
|
3243
3290
|
}, {
|
|
3244
|
-
component:
|
|
3245
|
-
...
|
|
3246
|
-
}, ...
|
|
3291
|
+
component: Yt,
|
|
3292
|
+
...Gt
|
|
3293
|
+
}, ...Wn()], Nn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3247
3294
|
function getAndSetVariantId() {
|
|
3248
3295
|
function setCookie(name, value, days) {
|
|
3249
3296
|
let expires = '';
|
|
@@ -3299,7 +3346,7 @@ const Tn = () => [{
|
|
|
3299
3346
|
}).join('');
|
|
3300
3347
|
styleEl.innerHTML = newStyleStr;
|
|
3301
3348
|
}
|
|
3302
|
-
}`,
|
|
3349
|
+
}`, Fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3303
3350
|
if (!navigator.cookieEnabled) {
|
|
3304
3351
|
return;
|
|
3305
3352
|
}
|
|
@@ -3333,26 +3380,26 @@ const Tn = () => [{
|
|
|
3333
3380
|
thisScriptEl?.remove();
|
|
3334
3381
|
}
|
|
3335
3382
|
return;
|
|
3336
|
-
}`,
|
|
3383
|
+
}`, He = "builderIoAbTest", _e = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3337
3384
|
...t,
|
|
3338
3385
|
testVariationId: t.id,
|
|
3339
3386
|
id: e == null ? void 0 : e.id
|
|
3340
|
-
})),
|
|
3387
|
+
})), $n = ({
|
|
3341
3388
|
canTrack: e,
|
|
3342
3389
|
content: t
|
|
3343
|
-
}) => !(!(
|
|
3344
|
-
window.${
|
|
3345
|
-
window.${
|
|
3346
|
-
`,
|
|
3347
|
-
window.${
|
|
3348
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3349
|
-
)`,
|
|
3390
|
+
}) => !(!(j(t).length > 0) || !e || q()), Ln = (e) => e === "react" || e === "reactNative", Me = Ln($), Dn = () => `
|
|
3391
|
+
window.${He} = ${Nn}
|
|
3392
|
+
window.${_e} = ${Fn}
|
|
3393
|
+
`, On = (e, t) => `
|
|
3394
|
+
window.${He}(
|
|
3395
|
+
"${t}",${JSON.stringify(e)}, ${Me}
|
|
3396
|
+
)`, Un = ({
|
|
3350
3397
|
contentId: e,
|
|
3351
3398
|
variationId: t
|
|
3352
|
-
}) => `window.${
|
|
3353
|
-
"${t}", "${e}", ${
|
|
3399
|
+
}) => `window.${_e}(
|
|
3400
|
+
"${t}", "${e}", ${Me}
|
|
3354
3401
|
)`;
|
|
3355
|
-
function
|
|
3402
|
+
function ie(e) {
|
|
3356
3403
|
return /* @__PURE__ */ s(
|
|
3357
3404
|
"script",
|
|
3358
3405
|
{
|
|
@@ -3362,10 +3409,10 @@ function ne(e) {
|
|
|
3362
3409
|
}
|
|
3363
3410
|
);
|
|
3364
3411
|
}
|
|
3365
|
-
function
|
|
3412
|
+
function ve(e) {
|
|
3366
3413
|
return Math.round(e * 1e3) / 1e3;
|
|
3367
3414
|
}
|
|
3368
|
-
const
|
|
3415
|
+
const Hn = (e, t, n = !0) => {
|
|
3369
3416
|
if (!(e instanceof HTMLElement))
|
|
3370
3417
|
return null;
|
|
3371
3418
|
let i = n ? e : e.parentElement;
|
|
@@ -3376,35 +3423,35 @@ const An = (e, t, n = !0) => {
|
|
|
3376
3423
|
return i;
|
|
3377
3424
|
} while (i = i.parentElement);
|
|
3378
3425
|
return null;
|
|
3379
|
-
},
|
|
3426
|
+
}, _n = (e) => Hn(e, (t) => {
|
|
3380
3427
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3381
3428
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3382
|
-
}),
|
|
3429
|
+
}), Se = ({
|
|
3383
3430
|
event: e,
|
|
3384
3431
|
target: t
|
|
3385
3432
|
}) => {
|
|
3386
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r =
|
|
3433
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = ve(i / n.width), a = ve(o / n.height);
|
|
3387
3434
|
return {
|
|
3388
3435
|
x: r,
|
|
3389
3436
|
y: a
|
|
3390
3437
|
};
|
|
3391
|
-
},
|
|
3392
|
-
const t = e.target, n = t &&
|
|
3438
|
+
}, Mn = (e) => {
|
|
3439
|
+
const t = e.target, n = t && _n(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3393
3440
|
return {
|
|
3394
3441
|
targetBuilderElement: i || void 0,
|
|
3395
3442
|
metadata: {
|
|
3396
|
-
targetOffset: t ?
|
|
3443
|
+
targetOffset: t ? Se({
|
|
3397
3444
|
event: e,
|
|
3398
3445
|
target: t
|
|
3399
3446
|
}) : void 0,
|
|
3400
|
-
builderTargetOffset: n ?
|
|
3447
|
+
builderTargetOffset: n ? Se({
|
|
3401
3448
|
event: e,
|
|
3402
3449
|
target: n
|
|
3403
3450
|
}) : void 0,
|
|
3404
3451
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3405
3452
|
}
|
|
3406
3453
|
};
|
|
3407
|
-
},
|
|
3454
|
+
}, jn = ["svelte", "qwik", "vue"], ke = () => jn.includes($) && (N() || ae()), qn = (e) => {
|
|
3408
3455
|
var r, a;
|
|
3409
3456
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3410
3457
|
let o = "";
|
|
@@ -3430,15 +3477,15 @@ font-weight: ${l};
|
|
|
3430
3477
|
`.trim());
|
|
3431
3478
|
}
|
|
3432
3479
|
return o;
|
|
3433
|
-
},
|
|
3480
|
+
}, zn = ({
|
|
3434
3481
|
customFonts: e
|
|
3435
3482
|
}) => {
|
|
3436
3483
|
var t;
|
|
3437
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3438
|
-
},
|
|
3484
|
+
return ((t = e == null ? void 0 : e.map((n) => qn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3485
|
+
}, Kn = ({
|
|
3439
3486
|
cssCode: e,
|
|
3440
3487
|
contentId: t
|
|
3441
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3488
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Jn = `
|
|
3442
3489
|
.builder-button {
|
|
3443
3490
|
all: unset;
|
|
3444
3491
|
}
|
|
@@ -3455,34 +3502,34 @@ font-weight: ${l};
|
|
|
3455
3502
|
text-align: inherit;
|
|
3456
3503
|
font-family: inherit;
|
|
3457
3504
|
}
|
|
3458
|
-
`,
|
|
3459
|
-
function
|
|
3460
|
-
var
|
|
3461
|
-
const t =
|
|
3462
|
-
function n(
|
|
3463
|
-
var
|
|
3505
|
+
`, Gn = (e) => e ? "" : Jn, Yn = (e) => `variant-${e}`;
|
|
3506
|
+
function Qn(e) {
|
|
3507
|
+
var p, C, P;
|
|
3508
|
+
const t = L(null);
|
|
3509
|
+
function n(S) {
|
|
3510
|
+
var B, T;
|
|
3464
3511
|
const w = {
|
|
3465
3512
|
...e.builderContextSignal.rootState,
|
|
3466
|
-
...
|
|
3513
|
+
...S
|
|
3467
3514
|
};
|
|
3468
|
-
e.builderContextSignal.rootSetState ? (T = (
|
|
3515
|
+
e.builderContextSignal.rootSetState ? (T = (B = e.builderContextSignal).rootSetState) == null || T.call(B, w) : e.setBuilderContextSignal((u) => ({
|
|
3469
3516
|
...u,
|
|
3470
3517
|
rootState: w
|
|
3471
3518
|
}));
|
|
3472
3519
|
}
|
|
3473
|
-
function i(
|
|
3474
|
-
var
|
|
3520
|
+
function i(S) {
|
|
3521
|
+
var B, T, u, k, V;
|
|
3475
3522
|
const w = {
|
|
3476
3523
|
...e.builderContextSignal.content,
|
|
3477
|
-
...
|
|
3524
|
+
...S,
|
|
3478
3525
|
data: {
|
|
3479
|
-
...(
|
|
3480
|
-
...
|
|
3526
|
+
...(B = e.builderContextSignal.content) == null ? void 0 : B.data,
|
|
3527
|
+
...S == null ? void 0 : S.data
|
|
3481
3528
|
},
|
|
3482
3529
|
meta: {
|
|
3483
3530
|
...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
|
|
3484
|
-
...
|
|
3485
|
-
breakpoints: ((u =
|
|
3531
|
+
...S == null ? void 0 : S.meta,
|
|
3532
|
+
breakpoints: ((u = S == null ? void 0 : S.meta) == null ? void 0 : u.breakpoints) || ((V = (k = e.builderContextSignal.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints)
|
|
3486
3533
|
}
|
|
3487
3534
|
};
|
|
3488
3535
|
e.setBuilderContextSignal((E) => ({
|
|
@@ -3499,59 +3546,59 @@ function Hn(e) {
|
|
|
3499
3546
|
const [r, a] = R(
|
|
3500
3547
|
() => e.contentWrapper || "div"
|
|
3501
3548
|
);
|
|
3502
|
-
function l(
|
|
3503
|
-
return
|
|
3549
|
+
function l(S) {
|
|
3550
|
+
return Ke({
|
|
3504
3551
|
model: e.model,
|
|
3505
3552
|
trustedHosts: e.trustedHosts,
|
|
3506
3553
|
callbacks: {
|
|
3507
3554
|
configureSdk: (w) => {
|
|
3508
3555
|
var u;
|
|
3509
|
-
const { breakpoints:
|
|
3510
|
-
!T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) ||
|
|
3556
|
+
const { breakpoints: B, contentId: T } = w;
|
|
3557
|
+
!T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || B && i({
|
|
3511
3558
|
meta: {
|
|
3512
|
-
breakpoints:
|
|
3559
|
+
breakpoints: B
|
|
3513
3560
|
}
|
|
3514
3561
|
});
|
|
3515
3562
|
},
|
|
3516
3563
|
animation: (w) => {
|
|
3517
|
-
|
|
3564
|
+
Ne(w);
|
|
3518
3565
|
},
|
|
3519
3566
|
contentUpdate: (w) => {
|
|
3520
3567
|
i(w);
|
|
3521
3568
|
}
|
|
3522
3569
|
}
|
|
3523
|
-
})(
|
|
3570
|
+
})(S);
|
|
3524
3571
|
}
|
|
3525
|
-
const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m,
|
|
3526
|
-
function f(
|
|
3527
|
-
var w,
|
|
3572
|
+
const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, y] = R(() => !1);
|
|
3573
|
+
function f(S) {
|
|
3574
|
+
var w, B;
|
|
3528
3575
|
if (e.builderContextSignal.content) {
|
|
3529
|
-
const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (
|
|
3530
|
-
|
|
3576
|
+
const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
3577
|
+
ue({
|
|
3531
3578
|
apiHost: e.apiHost,
|
|
3532
3579
|
type: "click",
|
|
3533
|
-
canTrack:
|
|
3580
|
+
canTrack: z(e.canTrack),
|
|
3534
3581
|
contentId: u,
|
|
3535
3582
|
apiKey: e.apiKey,
|
|
3536
3583
|
variationId: T !== u ? T : void 0,
|
|
3537
|
-
...
|
|
3584
|
+
...Mn(S),
|
|
3538
3585
|
unique: !m
|
|
3539
3586
|
});
|
|
3540
3587
|
}
|
|
3541
|
-
m ||
|
|
3588
|
+
m || y(!0);
|
|
3542
3589
|
}
|
|
3543
|
-
function
|
|
3544
|
-
var w,
|
|
3545
|
-
const
|
|
3546
|
-
Object.entries(
|
|
3547
|
-
if (!
|
|
3590
|
+
function v() {
|
|
3591
|
+
var w, B, T;
|
|
3592
|
+
const S = (T = (B = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : B.httpRequests) != null ? T : {};
|
|
3593
|
+
Object.entries(S).forEach(([u, k]) => {
|
|
3594
|
+
if (!k || h[u] || d[u] && !N())
|
|
3548
3595
|
return;
|
|
3549
3596
|
h[u] = !0;
|
|
3550
|
-
const
|
|
3597
|
+
const V = k.replace(
|
|
3551
3598
|
/{{([^}]+)}}/g,
|
|
3552
|
-
(E,
|
|
3553
|
-
|
|
3554
|
-
code:
|
|
3599
|
+
(E, _) => String(
|
|
3600
|
+
D({
|
|
3601
|
+
code: _,
|
|
3555
3602
|
context: e.context || {},
|
|
3556
3603
|
localState: void 0,
|
|
3557
3604
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3559,24 +3606,24 @@ function Hn(e) {
|
|
|
3559
3606
|
})
|
|
3560
3607
|
)
|
|
3561
3608
|
);
|
|
3562
|
-
|
|
3609
|
+
Te(V), fetch(V).then((E) => E.json()).then((E) => {
|
|
3563
3610
|
n({
|
|
3564
3611
|
[u]: E
|
|
3565
3612
|
}), d[u] = !0;
|
|
3566
3613
|
}).catch((E) => {
|
|
3567
|
-
console.error("error fetching dynamic data",
|
|
3614
|
+
console.error("error fetching dynamic data", k, E);
|
|
3568
3615
|
}).finally(() => {
|
|
3569
3616
|
h[u] = !1;
|
|
3570
3617
|
});
|
|
3571
3618
|
});
|
|
3572
3619
|
}
|
|
3573
|
-
function
|
|
3620
|
+
function x() {
|
|
3574
3621
|
N() && window.dispatchEvent(
|
|
3575
3622
|
new CustomEvent(
|
|
3576
3623
|
"builder:component:stateChange",
|
|
3577
3624
|
{
|
|
3578
3625
|
detail: {
|
|
3579
|
-
state:
|
|
3626
|
+
state: re(e.builderContextSignal.rootState),
|
|
3580
3627
|
ref: {
|
|
3581
3628
|
name: e.model
|
|
3582
3629
|
}
|
|
@@ -3585,11 +3632,11 @@ function Hn(e) {
|
|
|
3585
3632
|
)
|
|
3586
3633
|
);
|
|
3587
3634
|
}
|
|
3588
|
-
const
|
|
3589
|
-
return
|
|
3590
|
-
var
|
|
3635
|
+
const b = L(!1);
|
|
3636
|
+
return b.current || (v(), x(), b.current = !0), A(() => {
|
|
3637
|
+
var S, w;
|
|
3591
3638
|
if (q()) {
|
|
3592
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
3639
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", l), je(), qe({
|
|
3593
3640
|
...e.locale ? {
|
|
3594
3641
|
locale: e.locale
|
|
3595
3642
|
} : {},
|
|
@@ -3602,28 +3649,30 @@ function Hn(e) {
|
|
|
3602
3649
|
}), Object.values(
|
|
3603
3650
|
e.builderContextSignal.componentInfos
|
|
3604
3651
|
).forEach((T) => {
|
|
3605
|
-
var
|
|
3606
|
-
|
|
3607
|
-
|
|
3652
|
+
var u, k;
|
|
3653
|
+
if (!e.model || !((u = T.models) != null && u.length) || T.models.includes(e.model)) {
|
|
3654
|
+
const V = ze(T);
|
|
3655
|
+
(k = window.parent) == null || k.postMessage(V, "*");
|
|
3656
|
+
}
|
|
3608
3657
|
}), window.addEventListener(
|
|
3609
3658
|
"builder:component:stateChangeListenerActivated",
|
|
3610
|
-
|
|
3611
|
-
)), e.builderContextSignal.content &&
|
|
3612
|
-
const T = (
|
|
3613
|
-
|
|
3659
|
+
x
|
|
3660
|
+
)), e.builderContextSignal.content && z(e.canTrack)) {
|
|
3661
|
+
const T = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, k = e.apiKey;
|
|
3662
|
+
ue({
|
|
3614
3663
|
apiHost: e.apiHost,
|
|
3615
3664
|
type: "impression",
|
|
3616
3665
|
canTrack: !0,
|
|
3617
3666
|
contentId: u,
|
|
3618
|
-
apiKey:
|
|
3667
|
+
apiKey: k,
|
|
3619
3668
|
variationId: T !== u ? T : void 0
|
|
3620
3669
|
});
|
|
3621
3670
|
}
|
|
3622
|
-
if (
|
|
3623
|
-
const T = new URL(location.href).searchParams, u = T.get("builder.preview"),
|
|
3671
|
+
if (ae() && !N()) {
|
|
3672
|
+
const T = new URL(location.href).searchParams, u = T.get("builder.preview"), k = T.get(
|
|
3624
3673
|
`builder.overrides.${u}`
|
|
3625
|
-
),
|
|
3626
|
-
u === e.model &&
|
|
3674
|
+
), V = T.get("apiKey") || T.get("builder.space");
|
|
3675
|
+
u === e.model && V === e.apiKey && (!e.content || k === e.content.id) && Ie({
|
|
3627
3676
|
model: e.model,
|
|
3628
3677
|
apiKey: e.apiKey,
|
|
3629
3678
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -3632,52 +3681,55 @@ function Hn(e) {
|
|
|
3632
3681
|
});
|
|
3633
3682
|
}
|
|
3634
3683
|
}
|
|
3635
|
-
}, []),
|
|
3684
|
+
}, []), A(() => {
|
|
3636
3685
|
e.content && i(e.content);
|
|
3637
|
-
}, [e.content]),
|
|
3638
|
-
|
|
3639
|
-
}, [e.builderContextSignal.rootState]),
|
|
3686
|
+
}, [e.content]), A(() => {
|
|
3687
|
+
x();
|
|
3688
|
+
}, [e.builderContextSignal.rootState]), A(() => {
|
|
3640
3689
|
e.data && n(e.data);
|
|
3641
|
-
}, [e.data]),
|
|
3690
|
+
}, [e.data]), A(() => {
|
|
3642
3691
|
e.locale && n({
|
|
3643
3692
|
locale: e.locale
|
|
3644
3693
|
});
|
|
3645
|
-
}, [e.locale]),
|
|
3694
|
+
}, [e.locale]), A(() => () => {
|
|
3646
3695
|
q() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3647
3696
|
"builder:component:stateChangeListenerActivated",
|
|
3648
|
-
|
|
3697
|
+
x
|
|
3649
3698
|
));
|
|
3650
|
-
}, []), /* @__PURE__ */ s(
|
|
3699
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ke() ? /* @__PURE__ */ s(
|
|
3651
3700
|
r,
|
|
3652
3701
|
{
|
|
3653
3702
|
ref: t,
|
|
3654
|
-
onClick: (
|
|
3655
|
-
"builder-content-id": (
|
|
3703
|
+
onClick: (S) => f(S),
|
|
3704
|
+
"builder-content-id": (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
3656
3705
|
"builder-model": e.model,
|
|
3657
|
-
className:
|
|
3658
|
-
((
|
|
3706
|
+
className: Yn(
|
|
3707
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
3659
3708
|
),
|
|
3709
|
+
style: {
|
|
3710
|
+
display: !e.builderContextSignal.content && ke() ? "none" : void 0
|
|
3711
|
+
},
|
|
3660
3712
|
...o(),
|
|
3661
3713
|
...e.contentWrapperProps,
|
|
3662
3714
|
children: e.children
|
|
3663
3715
|
}
|
|
3664
3716
|
) : null });
|
|
3665
3717
|
}
|
|
3666
|
-
function
|
|
3718
|
+
function Xn(e) {
|
|
3667
3719
|
const [t, n] = R(
|
|
3668
3720
|
() => `
|
|
3669
|
-
${
|
|
3721
|
+
${Kn({
|
|
3670
3722
|
cssCode: e.cssCode,
|
|
3671
3723
|
contentId: e.contentId
|
|
3672
3724
|
})}
|
|
3673
|
-
${
|
|
3725
|
+
${zn({
|
|
3674
3726
|
customFonts: e.customFonts
|
|
3675
3727
|
})}
|
|
3676
|
-
${
|
|
3728
|
+
${Gn(e.isNestedRender)}
|
|
3677
3729
|
`.trim()
|
|
3678
3730
|
);
|
|
3679
3731
|
return /* @__PURE__ */ s(
|
|
3680
|
-
|
|
3732
|
+
G,
|
|
3681
3733
|
{
|
|
3682
3734
|
id: "builderio-content",
|
|
3683
3735
|
styles: t,
|
|
@@ -3685,7 +3737,7 @@ ${On(e.isNestedRender)}
|
|
|
3685
3737
|
}
|
|
3686
3738
|
);
|
|
3687
3739
|
}
|
|
3688
|
-
const
|
|
3740
|
+
const Zn = ({
|
|
3689
3741
|
content: e,
|
|
3690
3742
|
data: t,
|
|
3691
3743
|
locale: n
|
|
@@ -3702,7 +3754,7 @@ const Mn = ({
|
|
|
3702
3754
|
locale: n
|
|
3703
3755
|
} : {}
|
|
3704
3756
|
};
|
|
3705
|
-
},
|
|
3757
|
+
}, ei = ({
|
|
3706
3758
|
content: e,
|
|
3707
3759
|
data: t
|
|
3708
3760
|
}) => e ? {
|
|
@@ -3713,100 +3765,95 @@ const Mn = ({
|
|
|
3713
3765
|
},
|
|
3714
3766
|
meta: e == null ? void 0 : e.meta
|
|
3715
3767
|
} : void 0;
|
|
3716
|
-
function
|
|
3717
|
-
var c, h, g, m,
|
|
3768
|
+
function Ce(e) {
|
|
3769
|
+
var c, h, g, m, y, f, v, x, b;
|
|
3718
3770
|
const [t, n] = R(
|
|
3719
3771
|
() => {
|
|
3720
|
-
var
|
|
3721
|
-
return
|
|
3772
|
+
var p, C;
|
|
3773
|
+
return Un({
|
|
3722
3774
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3723
|
-
variationId: (
|
|
3775
|
+
variationId: (p = e.content) == null ? void 0 : p.testVariationId,
|
|
3724
3776
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3725
|
-
contentId: (
|
|
3777
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
3726
3778
|
});
|
|
3727
3779
|
}
|
|
3728
3780
|
);
|
|
3729
|
-
function i(
|
|
3730
|
-
l((
|
|
3731
|
-
...
|
|
3732
|
-
rootState:
|
|
3781
|
+
function i(p) {
|
|
3782
|
+
l((C) => ({
|
|
3783
|
+
...C,
|
|
3784
|
+
rootState: p
|
|
3733
3785
|
}));
|
|
3734
3786
|
}
|
|
3735
3787
|
const [o, r] = R(
|
|
3736
|
-
() =>
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
...ce(k)
|
|
3747
|
-
}
|
|
3748
|
-
}),
|
|
3749
|
-
{}
|
|
3750
|
-
);
|
|
3751
|
-
}
|
|
3752
|
-
), [a, l] = R(() => {
|
|
3753
|
-
var b;
|
|
3754
|
-
return {
|
|
3755
|
-
content: _n({
|
|
3756
|
-
content: e.content,
|
|
3757
|
-
data: e.data
|
|
3788
|
+
() => [
|
|
3789
|
+
...xe(),
|
|
3790
|
+
...e.customComponents || []
|
|
3791
|
+
].reduce(
|
|
3792
|
+
(p, { component: C, ...P }) => ({
|
|
3793
|
+
...p,
|
|
3794
|
+
[P.name]: {
|
|
3795
|
+
component: C,
|
|
3796
|
+
...me(P)
|
|
3797
|
+
}
|
|
3758
3798
|
}),
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3799
|
+
{}
|
|
3800
|
+
)
|
|
3801
|
+
), [a, l] = R(() => ({
|
|
3802
|
+
content: ei({
|
|
3803
|
+
content: e.content,
|
|
3804
|
+
data: e.data
|
|
3805
|
+
}),
|
|
3806
|
+
localState: void 0,
|
|
3807
|
+
rootState: Zn({
|
|
3808
|
+
content: e.content,
|
|
3809
|
+
data: e.data,
|
|
3810
|
+
locale: e.locale
|
|
3811
|
+
}),
|
|
3812
|
+
rootSetState: i,
|
|
3813
|
+
context: e.context || {},
|
|
3814
|
+
canTrack: e.canTrack,
|
|
3815
|
+
apiKey: e.apiKey,
|
|
3816
|
+
apiVersion: e.apiVersion,
|
|
3817
|
+
componentInfos: [
|
|
3818
|
+
...xe(),
|
|
3819
|
+
...e.customComponents || []
|
|
3820
|
+
].reduce(
|
|
3821
|
+
(p, { component: C, ...P }) => ({
|
|
3822
|
+
...p,
|
|
3823
|
+
[P.name]: me(P)
|
|
3764
3824
|
}),
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
].reduce(
|
|
3774
|
-
(y, { component: A, ...k }) => ({
|
|
3775
|
-
...y,
|
|
3776
|
-
[k.name]: ce(k)
|
|
3777
|
-
}),
|
|
3778
|
-
{}
|
|
3779
|
-
),
|
|
3780
|
-
inheritedStyles: {},
|
|
3781
|
-
BlocksWrapper: e.blocksWrapper || "div",
|
|
3782
|
-
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3783
|
-
nonce: e.nonce || ""
|
|
3784
|
-
};
|
|
3785
|
-
}), d = $(!1);
|
|
3825
|
+
{}
|
|
3826
|
+
),
|
|
3827
|
+
inheritedStyles: {},
|
|
3828
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
3829
|
+
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3830
|
+
nonce: e.nonce || "",
|
|
3831
|
+
model: e.model || ""
|
|
3832
|
+
})), d = L(!1);
|
|
3786
3833
|
if (!d.current) {
|
|
3787
|
-
e.apiKey ||
|
|
3834
|
+
e.apiKey || oe.error(
|
|
3788
3835
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3789
3836
|
);
|
|
3790
|
-
const
|
|
3791
|
-
|
|
3792
|
-
code:
|
|
3837
|
+
const p = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3838
|
+
p && D({
|
|
3839
|
+
code: p,
|
|
3793
3840
|
context: e.context || {},
|
|
3794
3841
|
localState: void 0,
|
|
3795
3842
|
rootState: a.rootState,
|
|
3796
|
-
rootSetState: (
|
|
3797
|
-
Object.assign(a.rootState,
|
|
3843
|
+
rootSetState: (C) => {
|
|
3844
|
+
Object.assign(a.rootState, C);
|
|
3798
3845
|
},
|
|
3799
3846
|
isExpression: !1
|
|
3800
3847
|
}), d.current = !0;
|
|
3801
3848
|
}
|
|
3802
3849
|
return /* @__PURE__ */ s(
|
|
3803
|
-
|
|
3850
|
+
Pe.Provider,
|
|
3804
3851
|
{
|
|
3805
3852
|
value: {
|
|
3806
3853
|
registeredComponents: o
|
|
3807
3854
|
},
|
|
3808
|
-
children: /* @__PURE__ */
|
|
3809
|
-
|
|
3855
|
+
children: /* @__PURE__ */ W(
|
|
3856
|
+
Qn,
|
|
3810
3857
|
{
|
|
3811
3858
|
apiHost: e.apiHost,
|
|
3812
3859
|
nonce: e.nonce,
|
|
@@ -3827,7 +3874,7 @@ function xe(e) {
|
|
|
3827
3874
|
setBuilderContextSignal: l,
|
|
3828
3875
|
children: [
|
|
3829
3876
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3830
|
-
|
|
3877
|
+
ie,
|
|
3831
3878
|
{
|
|
3832
3879
|
id: "builderio-variant-visibility",
|
|
3833
3880
|
scriptStr: t,
|
|
@@ -3835,19 +3882,19 @@ function xe(e) {
|
|
|
3835
3882
|
}
|
|
3836
3883
|
) : null,
|
|
3837
3884
|
/* @__PURE__ */ s(
|
|
3838
|
-
|
|
3885
|
+
Xn,
|
|
3839
3886
|
{
|
|
3840
3887
|
nonce: e.nonce || "",
|
|
3841
3888
|
isNestedRender: e.isNestedRender,
|
|
3842
3889
|
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3843
|
-
cssCode: (
|
|
3844
|
-
customFonts: (
|
|
3890
|
+
cssCode: (y = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
|
|
3891
|
+
customFonts: (v = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : v.customFonts
|
|
3845
3892
|
}
|
|
3846
3893
|
),
|
|
3847
3894
|
/* @__PURE__ */ s(
|
|
3848
3895
|
F,
|
|
3849
3896
|
{
|
|
3850
|
-
blocks: (
|
|
3897
|
+
blocks: (b = (x = a.content) == null ? void 0 : x.data) == null ? void 0 : b.blocks,
|
|
3851
3898
|
context: a,
|
|
3852
3899
|
registeredComponents: o,
|
|
3853
3900
|
linkComponent: e.linkComponent
|
|
@@ -3859,18 +3906,18 @@ function xe(e) {
|
|
|
3859
3906
|
}
|
|
3860
3907
|
);
|
|
3861
3908
|
}
|
|
3862
|
-
function
|
|
3909
|
+
function ti(e) {
|
|
3863
3910
|
var a;
|
|
3864
3911
|
const [t, n] = R(
|
|
3865
|
-
() =>
|
|
3866
|
-
canTrack:
|
|
3912
|
+
() => $n({
|
|
3913
|
+
canTrack: z(e.canTrack),
|
|
3867
3914
|
content: e.content
|
|
3868
3915
|
})
|
|
3869
3916
|
);
|
|
3870
3917
|
function i() {
|
|
3871
3918
|
var l;
|
|
3872
|
-
return
|
|
3873
|
-
|
|
3919
|
+
return On(
|
|
3920
|
+
j(e.content).map((d) => ({
|
|
3874
3921
|
id: d.testVariationId,
|
|
3875
3922
|
testRatio: d.testRatio
|
|
3876
3923
|
})),
|
|
@@ -3878,31 +3925,31 @@ function qn(e) {
|
|
|
3878
3925
|
);
|
|
3879
3926
|
}
|
|
3880
3927
|
function o() {
|
|
3881
|
-
return
|
|
3928
|
+
return j(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3882
3929
|
}
|
|
3883
3930
|
function r() {
|
|
3884
3931
|
var l;
|
|
3885
3932
|
return t ? {
|
|
3886
3933
|
...e.content,
|
|
3887
3934
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3888
|
-
} :
|
|
3935
|
+
} : Je({
|
|
3889
3936
|
item: e.content,
|
|
3890
|
-
canTrack:
|
|
3937
|
+
canTrack: z(e.canTrack)
|
|
3891
3938
|
});
|
|
3892
3939
|
}
|
|
3893
|
-
return
|
|
3894
|
-
}, []), /* @__PURE__ */
|
|
3895
|
-
!e.isNestedRender &&
|
|
3896
|
-
|
|
3940
|
+
return A(() => {
|
|
3941
|
+
}, []), /* @__PURE__ */ W(I, { children: [
|
|
3942
|
+
!e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ s(
|
|
3943
|
+
ie,
|
|
3897
3944
|
{
|
|
3898
3945
|
id: "builderio-init-variants-fns",
|
|
3899
|
-
scriptStr:
|
|
3946
|
+
scriptStr: Dn(),
|
|
3900
3947
|
nonce: e.nonce || ""
|
|
3901
3948
|
}
|
|
3902
3949
|
) : null,
|
|
3903
|
-
t ? /* @__PURE__ */
|
|
3950
|
+
t ? /* @__PURE__ */ W(I, { children: [
|
|
3904
3951
|
/* @__PURE__ */ s(
|
|
3905
|
-
|
|
3952
|
+
G,
|
|
3906
3953
|
{
|
|
3907
3954
|
id: "builderio-variants",
|
|
3908
3955
|
styles: o(),
|
|
@@ -3910,15 +3957,15 @@ function qn(e) {
|
|
|
3910
3957
|
}
|
|
3911
3958
|
),
|
|
3912
3959
|
/* @__PURE__ */ s(
|
|
3913
|
-
|
|
3960
|
+
ie,
|
|
3914
3961
|
{
|
|
3915
3962
|
id: "builderio-variants-visibility",
|
|
3916
3963
|
scriptStr: i(),
|
|
3917
3964
|
nonce: e.nonce || ""
|
|
3918
3965
|
}
|
|
3919
3966
|
),
|
|
3920
|
-
(a =
|
|
3921
|
-
|
|
3967
|
+
(a = j(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3968
|
+
Ce,
|
|
3922
3969
|
{
|
|
3923
3970
|
apiHost: e.apiHost,
|
|
3924
3971
|
isNestedRender: e.isNestedRender,
|
|
@@ -3946,7 +3993,7 @@ function qn(e) {
|
|
|
3946
3993
|
))
|
|
3947
3994
|
] }) : null,
|
|
3948
3995
|
/* @__PURE__ */ s(
|
|
3949
|
-
|
|
3996
|
+
Ce,
|
|
3950
3997
|
{
|
|
3951
3998
|
apiHost: e.apiHost,
|
|
3952
3999
|
nonce: e.nonce,
|
|
@@ -3973,13 +4020,13 @@ function qn(e) {
|
|
|
3973
4020
|
)
|
|
3974
4021
|
] });
|
|
3975
4022
|
}
|
|
3976
|
-
const
|
|
4023
|
+
const ni = async ({
|
|
3977
4024
|
builderContextValue: e,
|
|
3978
4025
|
symbol: t
|
|
3979
4026
|
}) => {
|
|
3980
4027
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3981
4028
|
(e != null && e.apiKey))
|
|
3982
|
-
return
|
|
4029
|
+
return Ie({
|
|
3983
4030
|
model: t.model,
|
|
3984
4031
|
apiKey: e.apiKey,
|
|
3985
4032
|
apiVersion: e.apiVersion,
|
|
@@ -3989,10 +4036,10 @@ const Kn = async ({
|
|
|
3989
4036
|
}
|
|
3990
4037
|
}
|
|
3991
4038
|
}).catch((n) => {
|
|
3992
|
-
|
|
4039
|
+
oe.error("Could not fetch symbol content: ", n);
|
|
3993
4040
|
});
|
|
3994
4041
|
};
|
|
3995
|
-
function
|
|
4042
|
+
function ii(e) {
|
|
3996
4043
|
var l, d, c, h;
|
|
3997
4044
|
function t() {
|
|
3998
4045
|
return "div";
|
|
@@ -4014,18 +4061,18 @@ function zn(e) {
|
|
|
4014
4061
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4015
4062
|
});
|
|
4016
4063
|
function a() {
|
|
4017
|
-
o ||
|
|
4064
|
+
o || ni({
|
|
4018
4065
|
symbol: e.symbol,
|
|
4019
4066
|
builderContextValue: e.builderContext
|
|
4020
4067
|
}).then((g) => {
|
|
4021
4068
|
g && r(g);
|
|
4022
4069
|
});
|
|
4023
4070
|
}
|
|
4024
|
-
return
|
|
4025
|
-
}, []),
|
|
4071
|
+
return A(() => {
|
|
4072
|
+
}, []), A(() => {
|
|
4026
4073
|
a();
|
|
4027
4074
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4028
|
-
|
|
4075
|
+
ti,
|
|
4029
4076
|
{
|
|
4030
4077
|
nonce: e.builderContext.nonce,
|
|
4031
4078
|
isNestedRender: !0,
|
|
@@ -4052,14 +4099,14 @@ function zn(e) {
|
|
|
4052
4099
|
}
|
|
4053
4100
|
export {
|
|
4054
4101
|
F as Blocks,
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4102
|
+
se as BuilderContext,
|
|
4103
|
+
it as Button,
|
|
4104
|
+
Mt as Columns,
|
|
4105
|
+
ti as Content,
|
|
4106
|
+
jt as Fragment,
|
|
4107
|
+
Kt as Image,
|
|
4108
|
+
Jt as Section,
|
|
4109
|
+
ii as Symbol,
|
|
4110
|
+
dn as Text,
|
|
4111
|
+
An as Video
|
|
4065
4112
|
};
|