@builder.io/sdk-react 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +30 -30
- package/lib/browser/blocks-exports.mjs +834 -825
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-422fad84.js → server-entry-25e49efc.js} +9 -1
- package/lib/browser/server-entry-9e5daeda.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-e1b77652.js → accordion-5063d748.js} +1 -1
- package/lib/edge/{accordion-2f83fc75.cjs → accordion-f5e5687b.cjs} +1 -1
- package/lib/edge/{blocks-5165c164.cjs → blocks-d690074d.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-0885e182.js → blocks-f3b2fbd5.js} +2 -2
- package/lib/edge/{button-d878f35c.js → button-0d0430e9.js} +2 -2
- package/lib/edge/{button-d7197e96.cjs → button-7cac2c65.cjs} +1 -1
- package/lib/edge/{columns-b365c86a.js → columns-19b22772.js} +3 -3
- package/lib/edge/{columns-46729516.cjs → columns-87b82f2f.cjs} +1 -1
- package/lib/edge/{content-variants-1594c868.js → content-variants-0f0a71cb.js} +316 -307
- package/lib/edge/content-variants-80fc28d8.cjs +134 -0
- package/lib/edge/{form-9844766c.cjs → form-0b5bd2e3.cjs} +1 -1
- package/lib/edge/{form-b66c20a3.js → form-b8f74b68.js} +3 -3
- package/lib/edge/{get-class-prop-name-0b992cfb.cjs → get-class-prop-name-6ef08339.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-dac81472.js → get-class-prop-name-f3ce6ca4.js} +1 -1
- package/lib/edge/{img-fb35350a.cjs → img-20126279.cjs} +1 -1
- package/lib/edge/{img-c4a772a8.js → img-4becc0d4.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-122768ac.cjs → input-6884ec2d.cjs} +1 -1
- package/lib/edge/{input-57c5b097.js → input-768a5984.js} +1 -1
- package/lib/edge/{personalization-container-a17ae615.cjs → personalization-container-8b32ce9d.cjs} +1 -1
- package/lib/edge/{personalization-container-7e63edce.js → personalization-container-b581d0f6.js} +4 -4
- package/lib/edge/{select-7f750b70.cjs → select-ac5b39d8.cjs} +1 -1
- package/lib/edge/{select-3d4324ef.js → select-e54dc6bc.js} +1 -1
- package/lib/edge/{server-entry-c1673af2.js → server-entry-818ae9c6.js} +9 -1
- package/lib/edge/server-entry-a60fb569.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-05ef18a0.js → slot-05218273.js} +3 -3
- package/lib/edge/{slot-123c0993.cjs → slot-5dba6213.cjs} +1 -1
- package/lib/edge/{symbol-f488bea0.js → symbol-9f247918.js} +2 -2
- package/lib/edge/{symbol-ee314d5a.cjs → symbol-f4b09828.cjs} +1 -1
- package/lib/edge/{tabs-edb82022.cjs → tabs-02960a8c.cjs} +1 -1
- package/lib/edge/{tabs-244d53fa.js → tabs-a0b38dde.js} +3 -3
- package/lib/node/blocks-exports.cjs +30 -30
- package/lib/node/blocks-exports.mjs +673 -664
- 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-2a2cad4a.cjs +2 -0
- package/lib/node/{server-entry-4df60fc5.js → server-entry-702b1a29.js} +9 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-0edfc727.js → setIvm-0a6b0788.js} +1 -1
- package/lib/node/{setIvm-6405aa63.cjs → setIvm-9cddfc1a.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-6d4dbff9.cjs → should-force-browser-runtime-in-node-d6c9e985.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-7a39b073.js → should-force-browser-runtime-in-node-dfff7f8f.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +2 -0
- package/lib/browser/server-entry-916191b4.cjs +0 -2
- package/lib/edge/content-variants-c6cab1c3.cjs +0 -134
- package/lib/edge/server-entry-77166102.cjs +0 -2
- package/lib/node/server-entry-8ab8c78b.cjs +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
import { TARGET as O, isBrowser as U, logger as ce, checkIsDefined as le, isPreviewing as Y, isEditing as $, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, getCookieSync as Xe, _track as pe, fetchOneEntry as Pe, createEditorListener as Ze, serializeIncludingFunctions as ye, handleABTestingSync as et } from "./server-entry-702b1a29.js";
|
|
3
|
+
import { setClientUserAttributes as Ei } from "./server-entry-702b1a29.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
|
+
import * as tt from "react";
|
|
6
|
+
import { createContext as Be, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ae } from "react";
|
|
7
|
+
import { getFunctionArguments as nt, flattenState as it, runInNode as at, parseCode as ot, getBuilderGlobals as rt, set as Ne, fastClone as ue } from "./setIvm-0a6b0788.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as lt } from "./should-force-browser-runtime-in-node-dfff7f8f.js";
|
|
9
|
+
const st = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ct = (e) => typeof e == "string" && st.has(e.toLowerCase());
|
|
10
|
+
function de(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: ct(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { 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 }) }) });
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
switch (
|
|
13
|
+
const j = () => {
|
|
14
|
+
switch (O) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -24,11 +24,11 @@ const M = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function ut(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
31
|
-
[
|
|
31
|
+
[j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function rt(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
de,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function rt(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const me = Be({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,10 +63,10 @@ const ce = Re({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}),
|
|
66
|
+
}), We = Be({ registeredComponents: {} }), $e = (e, t, n) => {
|
|
67
67
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
|
-
},
|
|
69
|
+
}, dt = ({
|
|
70
70
|
code: e,
|
|
71
71
|
builder: t,
|
|
72
72
|
context: n,
|
|
@@ -75,24 +75,24 @@ const ce = Re({
|
|
|
75
75
|
rootSetState: r,
|
|
76
76
|
rootState: o
|
|
77
77
|
}) => {
|
|
78
|
-
const l =
|
|
78
|
+
const l = nt({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
|
-
state:
|
|
82
|
+
state: it({
|
|
83
83
|
rootState: o,
|
|
84
84
|
localState: a,
|
|
85
85
|
rootSetState: r
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
89
|
-
},
|
|
89
|
+
}, mt = (e) => U() || lt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ?
|
|
91
|
+
}) ? dt(e) : at(e), ft = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ht = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gt = (e) => {
|
|
92
92
|
var t, n, i, a, r, o;
|
|
93
|
-
return ((i = (n = (t =
|
|
93
|
+
return ((i = (n = (t = ft.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ht.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function _({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
@@ -103,17 +103,17 @@ function O({
|
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
106
|
-
const l =
|
|
106
|
+
const l = gt(e.trim());
|
|
107
107
|
if (l)
|
|
108
|
-
return
|
|
108
|
+
return $e({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
112
|
const d = {
|
|
113
|
-
code:
|
|
113
|
+
code: ot(e, {
|
|
114
114
|
isExpression: o
|
|
115
115
|
}),
|
|
116
|
-
builder:
|
|
116
|
+
builder: rt(),
|
|
117
117
|
context: t,
|
|
118
118
|
event: r,
|
|
119
119
|
rootSetState: a,
|
|
@@ -121,28 +121,28 @@ function O({
|
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
124
|
+
return mt(d);
|
|
125
125
|
} catch (c) {
|
|
126
|
-
|
|
126
|
+
ce.error("Failed code evaluation: " + c.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function bt(e, t) {
|
|
133
133
|
var n;
|
|
134
134
|
return {
|
|
135
135
|
...(n = e.component) == null ? void 0 : n.options,
|
|
136
136
|
...e.options,
|
|
137
|
-
...
|
|
137
|
+
...pt(e, t)
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const pt = (e, t) => {
|
|
141
141
|
var n, i;
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) =>
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => _({
|
|
146
146
|
code: r,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
@@ -151,13 +151,13 @@ const ft = (e, t) => {
|
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function yt(e, ...t) {
|
|
155
155
|
const n = Object.assign({}, e);
|
|
156
156
|
for (const i of t)
|
|
157
157
|
delete n[i];
|
|
158
158
|
return n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function G(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
162
|
t(e, (r) => {
|
|
163
163
|
n !== null && i !== null && (n[i] = r);
|
|
@@ -167,52 +167,52 @@ function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
167
167
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
168
|
t(r, (d) => {
|
|
169
169
|
e[o] = d;
|
|
170
|
-
}),
|
|
170
|
+
}), G(r, t, e, o, a);
|
|
171
171
|
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
172
|
t(o, (d) => {
|
|
173
173
|
e[r] = d;
|
|
174
|
-
}),
|
|
174
|
+
}), G(o, t, e, r, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function De(e) {
|
|
178
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function vt(e) {
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
|
-
return
|
|
185
|
-
if (
|
|
184
|
+
return G(e, (n) => {
|
|
185
|
+
if (De(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
191
|
+
function xt(e, t) {
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (G(e, (n, i) => {
|
|
193
193
|
var a;
|
|
194
|
-
|
|
194
|
+
De(n) && i((a = n[t]) != null ? a : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function St(e, t) {
|
|
198
198
|
var n, i;
|
|
199
|
-
return (n = e.component) != null && n.options &&
|
|
199
|
+
return (n = e.component) != null && n.options && vt((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 = xt(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function se(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => se(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = se(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const t =
|
|
213
|
+
const kt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Ct = (e) => {
|
|
214
|
+
if (kt) {
|
|
215
|
+
const t = ue(e);
|
|
216
216
|
return {
|
|
217
217
|
...t,
|
|
218
218
|
properties: {
|
|
@@ -223,7 +223,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = se(yt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -236,7 +236,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
|
|
|
236
236
|
meta: e.meta
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, Tt = ({
|
|
240
240
|
block: e,
|
|
241
241
|
context: t,
|
|
242
242
|
localState: n,
|
|
@@ -245,28 +245,28 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) =
|
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const r =
|
|
248
|
+
const r = Ct(e);
|
|
249
249
|
for (const o in e.bindings) {
|
|
250
|
-
const l = e.bindings[o], d =
|
|
250
|
+
const l = e.bindings[o], d = _({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
254
|
rootSetState: a,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
Ne(r, o, d);
|
|
258
258
|
}
|
|
259
259
|
return r;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function wt({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
266
|
rootSetState: a
|
|
267
267
|
}) {
|
|
268
|
-
let r =
|
|
269
|
-
return r = r,
|
|
268
|
+
let r = St(e, i.locale);
|
|
269
|
+
return r = r, Tt({
|
|
270
270
|
block: r,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
@@ -274,8 +274,8 @@ function St({
|
|
|
274
274
|
context: t
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
277
|
+
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
+
function It(e, t, n = {}) {
|
|
279
279
|
let i, a, r, o = null, l = 0;
|
|
280
280
|
const d = function() {
|
|
281
281
|
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
@@ -287,7 +287,7 @@ function kt(e, t, n = {}) {
|
|
|
287
287
|
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function H(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
293
|
const a = arguments[i];
|
|
@@ -297,64 +297,64 @@ function q(e, ...t) {
|
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Et(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
304
|
-
|
|
304
|
+
Oe(t);
|
|
305
305
|
break;
|
|
306
306
|
case "scrollInView":
|
|
307
|
-
|
|
307
|
+
Vt(t);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Fe(e) {
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
const n =
|
|
314
|
+
function Le(e, t) {
|
|
315
|
+
const n = Rt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
|
|
316
316
|
for (const l of o)
|
|
317
317
|
for (const d of n)
|
|
318
318
|
d in l || (l[d] = i[d]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Rt(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
324
324
|
t.indexOf(i) === -1 && t.push(i);
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Oe(e) {
|
|
328
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
329
|
if (!t.length) {
|
|
330
|
-
|
|
330
|
+
Fe(e.elementId || e.id || "");
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${
|
|
334
|
+
Le(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Vt(e) {
|
|
342
342
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
343
343
|
if (!t.length) {
|
|
344
|
-
|
|
344
|
+
Fe(e.elementId || e.id || "");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
|
-
|
|
348
|
+
Le(e, n);
|
|
349
349
|
let i = !1, a = !1;
|
|
350
350
|
function r() {
|
|
351
351
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
|
-
|
|
352
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
353
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const o =
|
|
357
|
+
const o = It(r, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
360
|
function l(h) {
|
|
@@ -363,52 +363,52 @@ function wt(e) {
|
|
|
363
363
|
}
|
|
364
364
|
const d = e.steps[0].styles;
|
|
365
365
|
function c() {
|
|
366
|
-
|
|
366
|
+
H(n.style, d);
|
|
367
367
|
}
|
|
368
368
|
c(), setTimeout(() => {
|
|
369
|
-
n.style.transition = `all ${e.duration}s ${
|
|
369
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
370
|
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
373
|
}), r();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Ue = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
|
-
return `${
|
|
379
|
-
}).filter(
|
|
380
|
-
`),
|
|
378
|
+
return `${X(n)}: ${i};`;
|
|
379
|
+
}).filter(le), Pt = (e) => Ue(e).join(`
|
|
380
|
+
`), q = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
384
384
|
}) => {
|
|
385
385
|
const i = `.${t} {
|
|
386
|
-
${
|
|
386
|
+
${Pt(n)}
|
|
387
387
|
}`;
|
|
388
388
|
return e ? `${e} {
|
|
389
389
|
${i}
|
|
390
390
|
}` : i;
|
|
391
391
|
};
|
|
392
|
-
function
|
|
392
|
+
function Bt({
|
|
393
393
|
style: e
|
|
394
394
|
}) {
|
|
395
395
|
return e;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const At = ({
|
|
398
398
|
block: e,
|
|
399
399
|
context: t
|
|
400
|
-
}) =>
|
|
400
|
+
}) => _e(Bt({
|
|
401
401
|
style: e.style || {},
|
|
402
402
|
context: t,
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
|
-
function
|
|
406
|
-
switch (
|
|
405
|
+
function _e(e) {
|
|
406
|
+
switch (O) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
410
410
|
case "angular":
|
|
411
|
-
return
|
|
411
|
+
return Ue(e).join(" ");
|
|
412
412
|
case "qwik":
|
|
413
413
|
case "reactNative":
|
|
414
414
|
case "react":
|
|
@@ -416,7 +416,7 @@ function Le(e) {
|
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Nt = ({
|
|
420
420
|
block: e,
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
@@ -426,14 +426,14 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
428
|
const a = t[i];
|
|
429
|
-
if (!a ||
|
|
429
|
+
if (!a || qe(a, n)) {
|
|
430
430
|
console.warn(`
|
|
431
431
|
Could not find a registered component named "${i}".
|
|
432
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
433
433
|
return;
|
|
434
434
|
} else
|
|
435
435
|
return a;
|
|
436
|
-
},
|
|
436
|
+
}, Wt = ({
|
|
437
437
|
block: e,
|
|
438
438
|
context: t
|
|
439
439
|
}) => {
|
|
@@ -443,7 +443,7 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const a =
|
|
446
|
+
const a = _({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
@@ -466,27 +466,27 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
468
468
|
}));
|
|
469
|
-
},
|
|
469
|
+
}, $t = (e, t) => {
|
|
470
470
|
var n;
|
|
471
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
472
472
|
builderLinkComponent: t
|
|
473
473
|
} : {};
|
|
474
|
-
},
|
|
474
|
+
}, Dt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !qe(o, n)))
|
|
478
478
|
} : {};
|
|
479
|
-
},
|
|
479
|
+
}, Ft = (e, t) => {
|
|
480
480
|
var n;
|
|
481
481
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
482
482
|
builderBlock: t
|
|
483
483
|
} : {};
|
|
484
|
-
},
|
|
484
|
+
}, Lt = (e, t) => {
|
|
485
485
|
var n;
|
|
486
486
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
487
487
|
builderContext: t
|
|
488
488
|
} : {};
|
|
489
|
-
},
|
|
489
|
+
}, He = {
|
|
490
490
|
xsmall: {
|
|
491
491
|
min: 0,
|
|
492
492
|
default: 160,
|
|
@@ -507,8 +507,8 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
507
507
|
default: 991,
|
|
508
508
|
max: 1200
|
|
509
509
|
}
|
|
510
|
-
},
|
|
511
|
-
const t =
|
|
510
|
+
}, te = (e, t = He) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
|
|
511
|
+
const t = ue(He);
|
|
512
512
|
if (!e)
|
|
513
513
|
return t;
|
|
514
514
|
const {
|
|
@@ -546,7 +546,7 @@ const Oe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
546
546
|
default: l + 1
|
|
547
547
|
}, t;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function z(e) {
|
|
550
550
|
return /* @__PURE__ */ s(
|
|
551
551
|
"style",
|
|
552
552
|
{
|
|
@@ -556,51 +556,51 @@ function j(e) {
|
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Ot(e) {
|
|
560
560
|
function t() {
|
|
561
561
|
const i = e.block;
|
|
562
|
-
return
|
|
562
|
+
return le(i.hide) ? !i.hide : le(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var C, V, w,
|
|
566
|
-
const i = e.block, a = i.responsiveStyles, r = e.context.content, o =
|
|
565
|
+
var C, V, w, x, m;
|
|
566
|
+
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Me(
|
|
567
567
|
((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
|
|
568
568
|
), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
|
|
569
569
|
if (!u)
|
|
570
570
|
return "";
|
|
571
|
-
const v = d ?
|
|
571
|
+
const v = d ? q({
|
|
572
572
|
className: u,
|
|
573
573
|
styles: d
|
|
574
|
-
}) : "", f = c ?
|
|
574
|
+
}) : "", f = c ? q({
|
|
575
575
|
className: u,
|
|
576
576
|
styles: c,
|
|
577
|
-
mediaQuery:
|
|
577
|
+
mediaQuery: te(
|
|
578
578
|
"medium",
|
|
579
579
|
o
|
|
580
580
|
)
|
|
581
|
-
}) : "", g = h ?
|
|
581
|
+
}) : "", g = h ? q({
|
|
582
582
|
className: u,
|
|
583
583
|
styles: h,
|
|
584
|
-
mediaQuery:
|
|
584
|
+
mediaQuery: te(
|
|
585
585
|
"small",
|
|
586
586
|
o
|
|
587
587
|
)
|
|
588
|
-
}) : "",
|
|
588
|
+
}) : "", S = y && l ? q({
|
|
589
589
|
className: u,
|
|
590
590
|
styles: y,
|
|
591
|
-
mediaQuery:
|
|
591
|
+
mediaQuery: te(
|
|
592
592
|
"xsmall",
|
|
593
593
|
o
|
|
594
594
|
)
|
|
595
595
|
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
596
|
-
let
|
|
596
|
+
let k = "";
|
|
597
597
|
if (b) {
|
|
598
|
-
const p = ((m = (
|
|
599
|
-
|
|
598
|
+
const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
599
|
+
k = q({
|
|
600
600
|
className: `${u}:hover`,
|
|
601
601
|
styles: {
|
|
602
602
|
...p,
|
|
603
|
-
transition: `all ${b.duration}s ${
|
|
603
|
+
transition: `all ${b.duration}s ${X(
|
|
604
604
|
b.easing
|
|
605
605
|
)}`,
|
|
606
606
|
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
@@ -611,12 +611,12 @@ function $t(e) {
|
|
|
611
611
|
v,
|
|
612
612
|
f,
|
|
613
613
|
g,
|
|
614
|
-
|
|
615
|
-
|
|
614
|
+
S,
|
|
615
|
+
k
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
618
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
619
|
-
|
|
619
|
+
z,
|
|
620
620
|
{
|
|
621
621
|
id: "builderio-block",
|
|
622
622
|
styles: n(),
|
|
@@ -624,10 +624,10 @@ function $t(e) {
|
|
|
624
624
|
}
|
|
625
625
|
) }) : null });
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Ut(e) {
|
|
628
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const _t = (e) => `on${Ut(e)}`, qt = (e, t) => (n) => _({
|
|
631
631
|
code: e,
|
|
632
632
|
context: t.context,
|
|
633
633
|
localState: t.localState,
|
|
@@ -636,16 +636,16 @@ const Ft = (e) => `on${Dt(e)}`, Lt = (e, t) => (n) => O({
|
|
|
636
636
|
event: n,
|
|
637
637
|
isExpression: !1
|
|
638
638
|
});
|
|
639
|
-
function
|
|
639
|
+
function je(e) {
|
|
640
640
|
var i;
|
|
641
641
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
642
|
for (const a in n) {
|
|
643
643
|
if (!n.hasOwnProperty(a))
|
|
644
644
|
continue;
|
|
645
645
|
const r = n[a];
|
|
646
|
-
let o =
|
|
646
|
+
let o = _t(a);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
|
-
switch (
|
|
648
|
+
switch (O) {
|
|
649
649
|
case "vue":
|
|
650
650
|
o = o.replace("v-on:", "");
|
|
651
651
|
break;
|
|
@@ -653,49 +653,49 @@ function qe(e) {
|
|
|
653
653
|
o = o.replace("on:", "");
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
t[o] =
|
|
656
|
+
t[o] = qt(r, e);
|
|
657
657
|
}
|
|
658
658
|
return t;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function Ht({
|
|
661
661
|
properties: e
|
|
662
662
|
}) {
|
|
663
663
|
return e;
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const Mt = (e) => ({
|
|
666
666
|
href: e.href
|
|
667
667
|
});
|
|
668
|
-
function
|
|
668
|
+
function fe({
|
|
669
669
|
block: e,
|
|
670
670
|
context: t
|
|
671
671
|
}) {
|
|
672
672
|
var i;
|
|
673
673
|
const n = {
|
|
674
|
-
...
|
|
674
|
+
...Mt(e),
|
|
675
675
|
...e.properties,
|
|
676
676
|
"builder-id": e.id,
|
|
677
|
-
style:
|
|
677
|
+
style: At({
|
|
678
678
|
block: e,
|
|
679
679
|
context: t
|
|
680
680
|
}),
|
|
681
|
-
[
|
|
681
|
+
[j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
682
|
};
|
|
683
|
-
return
|
|
683
|
+
return Ht({
|
|
684
684
|
properties: n,
|
|
685
685
|
context: t,
|
|
686
686
|
block: e
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function jt(e) {
|
|
690
690
|
return /* @__PURE__ */ s(
|
|
691
|
-
|
|
691
|
+
de,
|
|
692
692
|
{
|
|
693
693
|
TagName: e.Wrapper,
|
|
694
|
-
attributes:
|
|
694
|
+
attributes: fe({
|
|
695
695
|
block: e.block,
|
|
696
696
|
context: e.context
|
|
697
697
|
}),
|
|
698
|
-
actionAttributes:
|
|
698
|
+
actionAttributes: je({
|
|
699
699
|
block: e.block,
|
|
700
700
|
rootState: e.context.rootState,
|
|
701
701
|
rootSetState: e.context.rootSetState,
|
|
@@ -707,18 +707,18 @@ function _t(e) {
|
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
710
|
+
function zt(e) {
|
|
711
|
+
return P(() => {
|
|
712
712
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Kt(e) {
|
|
715
715
|
function t() {
|
|
716
716
|
return e.includeBlockProps ? {
|
|
717
|
-
...
|
|
717
|
+
...fe({
|
|
718
718
|
block: e.block,
|
|
719
719
|
context: e.context
|
|
720
720
|
}),
|
|
721
|
-
...
|
|
721
|
+
...je({
|
|
722
722
|
block: e.block,
|
|
723
723
|
rootState: e.context.rootState,
|
|
724
724
|
rootSetState: e.context.rootSetState,
|
|
@@ -728,7 +728,7 @@ function Ht(e) {
|
|
|
728
728
|
} : {};
|
|
729
729
|
}
|
|
730
730
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
731
|
-
|
|
731
|
+
zt,
|
|
732
732
|
{
|
|
733
733
|
load: e.Wrapper.load,
|
|
734
734
|
fallback: e.Wrapper.fallback,
|
|
@@ -738,7 +738,7 @@ function Ht(e) {
|
|
|
738
738
|
}
|
|
739
739
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
740
740
|
}
|
|
741
|
-
const
|
|
741
|
+
const Jt = ({
|
|
742
742
|
componentOptions: e,
|
|
743
743
|
builderBlock: t,
|
|
744
744
|
context: n,
|
|
@@ -754,7 +754,7 @@ const Mt = ({
|
|
|
754
754
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
755
755
|
*/
|
|
756
756
|
...a ? {
|
|
757
|
-
attributes:
|
|
757
|
+
attributes: fe({
|
|
758
758
|
block: t,
|
|
759
759
|
context: o
|
|
760
760
|
})
|
|
@@ -768,15 +768,15 @@ const Mt = ({
|
|
|
768
768
|
includeBlockProps: a
|
|
769
769
|
} : l;
|
|
770
770
|
};
|
|
771
|
-
function
|
|
771
|
+
function xe(e) {
|
|
772
772
|
var i;
|
|
773
|
-
const [t, n] =
|
|
774
|
-
() => e.isInteractive ?
|
|
773
|
+
const [t, n] = I(
|
|
774
|
+
() => e.isInteractive ? Kt : e.componentRef
|
|
775
775
|
);
|
|
776
776
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
777
777
|
t,
|
|
778
778
|
{
|
|
779
|
-
...
|
|
779
|
+
...Jt({
|
|
780
780
|
componentOptions: e.componentOptions,
|
|
781
781
|
builderBlock: e.builderBlock,
|
|
782
782
|
context: e.context,
|
|
@@ -787,7 +787,7 @@ function pe(e) {
|
|
|
787
787
|
contextValue: e.context
|
|
788
788
|
}),
|
|
789
789
|
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
790
|
-
|
|
790
|
+
Z,
|
|
791
791
|
{
|
|
792
792
|
block: a,
|
|
793
793
|
context: e.context,
|
|
@@ -799,10 +799,10 @@ function pe(e) {
|
|
|
799
799
|
}
|
|
800
800
|
) }) : null });
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
const [t, n] =
|
|
804
|
-
return /* @__PURE__ */ s(
|
|
805
|
-
|
|
802
|
+
function Se(e) {
|
|
803
|
+
const [t, n] = I(() => e.repeatContext);
|
|
804
|
+
return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
805
|
+
Z,
|
|
806
806
|
{
|
|
807
807
|
block: e.block,
|
|
808
808
|
context: t,
|
|
@@ -811,23 +811,23 @@ function ye(e) {
|
|
|
811
811
|
}
|
|
812
812
|
) });
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function Z(e) {
|
|
815
815
|
var h, y, u, v;
|
|
816
816
|
function t() {
|
|
817
|
-
return
|
|
817
|
+
return Wt({
|
|
818
818
|
block: e.block,
|
|
819
819
|
context: e.context
|
|
820
820
|
});
|
|
821
821
|
}
|
|
822
|
-
const [n, i] =
|
|
822
|
+
const [n, i] = I(() => ({
|
|
823
823
|
value: null,
|
|
824
824
|
update: !1
|
|
825
825
|
}));
|
|
826
826
|
function a() {
|
|
827
827
|
var g;
|
|
828
|
-
if (n.value && !n.update && !
|
|
828
|
+
if (n.value && !n.update && !Y())
|
|
829
829
|
return n.value;
|
|
830
|
-
const f = (g = e.block.repeat) != null && g.collection ? e.block :
|
|
830
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : wt({
|
|
831
831
|
block: e.block,
|
|
832
832
|
localState: e.context.localState,
|
|
833
833
|
rootState: e.context.rootState,
|
|
@@ -837,7 +837,7 @@ function Y(e) {
|
|
|
837
837
|
return n.value = f, n.update = !1, f;
|
|
838
838
|
}
|
|
839
839
|
function r() {
|
|
840
|
-
return
|
|
840
|
+
return Nt({
|
|
841
841
|
block: a(),
|
|
842
842
|
registeredComponents: e.registeredComponents,
|
|
843
843
|
model: e.context.model
|
|
@@ -848,27 +848,27 @@ function Y(e) {
|
|
|
848
848
|
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
849
849
|
}
|
|
850
850
|
function l() {
|
|
851
|
-
var
|
|
852
|
-
if ((
|
|
851
|
+
var S, b;
|
|
852
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
853
853
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
854
854
|
const f = "hide" in a() ? a().hide : !1;
|
|
855
855
|
return ("show" in a() ? a().show : !0) && !f;
|
|
856
856
|
}
|
|
857
857
|
function d() {
|
|
858
|
-
var g,
|
|
859
|
-
return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (
|
|
858
|
+
var g, S;
|
|
859
|
+
return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
860
860
|
}
|
|
861
861
|
function c() {
|
|
862
|
-
var f, g,
|
|
862
|
+
var f, g, S, b;
|
|
863
863
|
return {
|
|
864
864
|
blockChildren: (f = a().children) != null ? f : [],
|
|
865
865
|
componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
|
|
866
866
|
componentOptions: {
|
|
867
|
-
...
|
|
868
|
-
...
|
|
869
|
-
...
|
|
870
|
-
|
|
871
|
-
...
|
|
867
|
+
...bt(a(), e.context),
|
|
868
|
+
...Ft(r(), a()),
|
|
869
|
+
...Lt(r(), e.context),
|
|
870
|
+
...$t(r(), e.linkComponent),
|
|
871
|
+
...Dt(
|
|
872
872
|
r(),
|
|
873
873
|
e.registeredComponents,
|
|
874
874
|
e.context.model
|
|
@@ -878,24 +878,24 @@ function Y(e) {
|
|
|
878
878
|
linkComponent: e.linkComponent,
|
|
879
879
|
registeredComponents: e.registeredComponents,
|
|
880
880
|
builderBlock: a(),
|
|
881
|
-
includeBlockProps: ((
|
|
882
|
-
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC &&
|
|
881
|
+
includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
|
|
882
|
+
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && O === "rsc")
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
return
|
|
885
|
+
return P(() => {
|
|
886
886
|
const f = a().id, g = a().animations;
|
|
887
|
-
g && f &&
|
|
888
|
-
g.map((
|
|
889
|
-
...
|
|
887
|
+
g && f && Et(
|
|
888
|
+
g.map((S) => ({
|
|
889
|
+
...S,
|
|
890
890
|
elementId: f
|
|
891
891
|
}))
|
|
892
892
|
);
|
|
893
|
-
}, []),
|
|
893
|
+
}, []), P(() => {
|
|
894
894
|
n.update = !0;
|
|
895
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
896
|
-
/* @__PURE__ */ s(
|
|
895
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
896
|
+
/* @__PURE__ */ s(Ot, { block: a(), context: e.context }),
|
|
897
897
|
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
898
|
-
|
|
898
|
+
Se,
|
|
899
899
|
{
|
|
900
900
|
repeatContext: f.context,
|
|
901
901
|
block: f.block,
|
|
@@ -904,7 +904,7 @@ function Y(e) {
|
|
|
904
904
|
},
|
|
905
905
|
g
|
|
906
906
|
)) }) : /* @__PURE__ */ s(
|
|
907
|
-
|
|
907
|
+
xe,
|
|
908
908
|
{
|
|
909
909
|
componentRef: c().componentRef,
|
|
910
910
|
componentOptions: c().componentOptions,
|
|
@@ -917,7 +917,7 @@ function Y(e) {
|
|
|
917
917
|
isInteractive: c().isInteractive
|
|
918
918
|
}
|
|
919
919
|
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
920
|
-
|
|
920
|
+
Se,
|
|
921
921
|
{
|
|
922
922
|
repeatContext: f.context,
|
|
923
923
|
block: f.block,
|
|
@@ -925,15 +925,15 @@ function Y(e) {
|
|
|
925
925
|
linkComponent: e.linkComponent
|
|
926
926
|
},
|
|
927
927
|
g
|
|
928
|
-
)) }) : /* @__PURE__ */
|
|
929
|
-
|
|
928
|
+
)) }) : /* @__PURE__ */ B(
|
|
929
|
+
jt,
|
|
930
930
|
{
|
|
931
931
|
Wrapper: o(),
|
|
932
932
|
block: a(),
|
|
933
933
|
context: e.context,
|
|
934
934
|
children: [
|
|
935
935
|
/* @__PURE__ */ s(
|
|
936
|
-
|
|
936
|
+
xe,
|
|
937
937
|
{
|
|
938
938
|
componentRef: c().componentRef,
|
|
939
939
|
componentOptions: c().componentOptions,
|
|
@@ -947,7 +947,7 @@ function Y(e) {
|
|
|
947
947
|
}
|
|
948
948
|
),
|
|
949
949
|
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
950
|
-
|
|
950
|
+
Z,
|
|
951
951
|
{
|
|
952
952
|
block: f,
|
|
953
953
|
registeredComponents: e.registeredComponents,
|
|
@@ -961,8 +961,8 @@ function Y(e) {
|
|
|
961
961
|
) })
|
|
962
962
|
] }) : null });
|
|
963
963
|
}
|
|
964
|
-
function
|
|
965
|
-
const t =
|
|
964
|
+
function Gt(e) {
|
|
965
|
+
const t = L(null);
|
|
966
966
|
function n() {
|
|
967
967
|
var o;
|
|
968
968
|
return [
|
|
@@ -979,7 +979,7 @@ function jt(e) {
|
|
|
979
979
|
}
|
|
980
980
|
function a() {
|
|
981
981
|
var o, l;
|
|
982
|
-
|
|
982
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
983
983
|
{
|
|
984
984
|
type: "builder.clickEmptyBlocks",
|
|
985
985
|
data: {
|
|
@@ -992,7 +992,7 @@ function jt(e) {
|
|
|
992
992
|
}
|
|
993
993
|
function r() {
|
|
994
994
|
var o, l;
|
|
995
|
-
|
|
995
|
+
$() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
996
996
|
{
|
|
997
997
|
type: "builder.hoverEmptyBlocks",
|
|
998
998
|
data: {
|
|
@@ -1003,8 +1003,8 @@ function jt(e) {
|
|
|
1003
1003
|
"*"
|
|
1004
1004
|
));
|
|
1005
1005
|
}
|
|
1006
|
-
return
|
|
1007
|
-
}, []), /* @__PURE__ */
|
|
1006
|
+
return P(() => {
|
|
1007
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
1008
1008
|
/* @__PURE__ */ s(
|
|
1009
1009
|
e.BlocksWrapper,
|
|
1010
1010
|
{
|
|
@@ -1027,11 +1027,11 @@ function jt(e) {
|
|
|
1027
1027
|
}` })
|
|
1028
1028
|
] });
|
|
1029
1029
|
}
|
|
1030
|
-
function
|
|
1030
|
+
function D(e) {
|
|
1031
1031
|
var i, a, r;
|
|
1032
|
-
const t =
|
|
1032
|
+
const t = ve(me), n = ve(We);
|
|
1033
1033
|
return /* @__PURE__ */ s(
|
|
1034
|
-
|
|
1034
|
+
Gt,
|
|
1035
1035
|
{
|
|
1036
1036
|
blocks: e.blocks,
|
|
1037
1037
|
parent: e.parent,
|
|
@@ -1041,7 +1041,7 @@ function $(e) {
|
|
|
1041
1041
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1042
1042
|
BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1043
1043
|
children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
|
|
1044
|
-
|
|
1044
|
+
Z,
|
|
1045
1045
|
{
|
|
1046
1046
|
block: o,
|
|
1047
1047
|
linkComponent: e.linkComponent,
|
|
@@ -1053,9 +1053,9 @@ function $(e) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
);
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1058
|
-
var g,
|
|
1056
|
+
const Qt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1057
|
+
function Yt(e) {
|
|
1058
|
+
var g, S;
|
|
1059
1059
|
function t() {
|
|
1060
1060
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1061
1061
|
}
|
|
@@ -1069,24 +1069,24 @@ function Kt(e) {
|
|
|
1069
1069
|
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1070
1070
|
}
|
|
1071
1071
|
function r(b) {
|
|
1072
|
-
var
|
|
1073
|
-
return ((
|
|
1072
|
+
var k;
|
|
1073
|
+
return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1074
1074
|
}
|
|
1075
1075
|
function o(b) {
|
|
1076
|
-
const
|
|
1077
|
-
return `calc(${
|
|
1076
|
+
const k = r(b), C = t() * (n().length - 1) * (k / 100);
|
|
1077
|
+
return `calc(${k}% - ${C}px)`;
|
|
1078
1078
|
}
|
|
1079
1079
|
function l({
|
|
1080
1080
|
stackedStyle: b,
|
|
1081
|
-
desktopStyle:
|
|
1081
|
+
desktopStyle: k
|
|
1082
1082
|
}) {
|
|
1083
|
-
return i() === "tablet" ? b :
|
|
1083
|
+
return i() === "tablet" ? b : k;
|
|
1084
1084
|
}
|
|
1085
1085
|
function d({
|
|
1086
1086
|
stackedStyle: b,
|
|
1087
|
-
desktopStyle:
|
|
1087
|
+
desktopStyle: k
|
|
1088
1088
|
}) {
|
|
1089
|
-
return i() === "never" ?
|
|
1089
|
+
return i() === "never" ? k : b;
|
|
1090
1090
|
}
|
|
1091
1091
|
function c() {
|
|
1092
1092
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1101,7 +1101,7 @@ function Kt(e) {
|
|
|
1101
1101
|
};
|
|
1102
1102
|
}
|
|
1103
1103
|
function y(b) {
|
|
1104
|
-
const
|
|
1104
|
+
const k = b === 0 ? 0 : t(), C = o(b), V = `${k}px`, w = "100%", x = 0;
|
|
1105
1105
|
return {
|
|
1106
1106
|
...{
|
|
1107
1107
|
display: "flex",
|
|
@@ -1115,7 +1115,7 @@ function Kt(e) {
|
|
|
1115
1115
|
desktopStyle: C
|
|
1116
1116
|
}),
|
|
1117
1117
|
"--column-margin-left-mobile": d({
|
|
1118
|
-
stackedStyle:
|
|
1118
|
+
stackedStyle: x,
|
|
1119
1119
|
desktopStyle: V
|
|
1120
1120
|
}),
|
|
1121
1121
|
"--column-width-tablet": l({
|
|
@@ -1123,14 +1123,14 @@ function Kt(e) {
|
|
|
1123
1123
|
desktopStyle: C
|
|
1124
1124
|
}),
|
|
1125
1125
|
"--column-margin-left-tablet": l({
|
|
1126
|
-
stackedStyle:
|
|
1126
|
+
stackedStyle: x,
|
|
1127
1127
|
desktopStyle: V
|
|
1128
1128
|
})
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
function u(b) {
|
|
1132
1132
|
var C, V;
|
|
1133
|
-
return
|
|
1133
|
+
return Me(
|
|
1134
1134
|
((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
|
|
1135
1135
|
)[b].max;
|
|
1136
1136
|
}
|
|
@@ -1162,40 +1162,40 @@ function Kt(e) {
|
|
|
1162
1162
|
},
|
|
1163
1163
|
`;
|
|
1164
1164
|
}
|
|
1165
|
-
function f(b,
|
|
1165
|
+
function f(b, k) {
|
|
1166
1166
|
return {
|
|
1167
1167
|
...b.link ? {
|
|
1168
1168
|
href: b.link
|
|
1169
1169
|
} : {},
|
|
1170
|
-
[
|
|
1171
|
-
style:
|
|
1170
|
+
[j()]: "builder-column",
|
|
1171
|
+
style: _e(y(k))
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
|
-
return /* @__PURE__ */
|
|
1175
|
-
/* @__PURE__ */
|
|
1174
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1175
|
+
/* @__PURE__ */ B(
|
|
1176
1176
|
"div",
|
|
1177
1177
|
{
|
|
1178
|
-
className:
|
|
1178
|
+
className: Qt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1179
1179
|
style: h(),
|
|
1180
1180
|
children: [
|
|
1181
1181
|
/* @__PURE__ */ s(
|
|
1182
|
-
|
|
1182
|
+
z,
|
|
1183
1183
|
{
|
|
1184
1184
|
id: "builderio-columns",
|
|
1185
1185
|
styles: v(),
|
|
1186
1186
|
nonce: e.builderContext.nonce
|
|
1187
1187
|
}
|
|
1188
1188
|
),
|
|
1189
|
-
(
|
|
1190
|
-
|
|
1189
|
+
(S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
|
|
1190
|
+
de,
|
|
1191
1191
|
{
|
|
1192
1192
|
TagName: a(b),
|
|
1193
1193
|
actionAttributes: {},
|
|
1194
|
-
attributes: f(b,
|
|
1194
|
+
attributes: f(b, k),
|
|
1195
1195
|
children: /* @__PURE__ */ s(
|
|
1196
|
-
|
|
1196
|
+
D,
|
|
1197
1197
|
{
|
|
1198
|
-
path: `columns.${
|
|
1198
|
+
path: `columns.${k}.blocks`,
|
|
1199
1199
|
parent: e.builderBlock.id,
|
|
1200
1200
|
context: e.builderContext,
|
|
1201
1201
|
registeredComponents: e.builderComponents,
|
|
@@ -1207,7 +1207,7 @@ function Kt(e) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
)
|
|
1209
1209
|
},
|
|
1210
|
-
|
|
1210
|
+
k
|
|
1211
1211
|
))
|
|
1212
1212
|
]
|
|
1213
1213
|
}
|
|
@@ -1218,40 +1218,40 @@ function Kt(e) {
|
|
|
1218
1218
|
}` })
|
|
1219
1219
|
] });
|
|
1220
1220
|
}
|
|
1221
|
-
function
|
|
1221
|
+
function Xt(e) {
|
|
1222
1222
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1224
|
+
function ke(e) {
|
|
1225
1225
|
return e.replace(/http(s)?:/, "");
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function Zt(e = "", t, n) {
|
|
1228
1228
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1229
1229
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function en(e, t) {
|
|
1232
1232
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1233
1233
|
return e;
|
|
1234
1234
|
if (t === "master")
|
|
1235
|
-
return
|
|
1235
|
+
return ke(e);
|
|
1236
1236
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1237
1237
|
if (n) {
|
|
1238
1238
|
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1239
|
-
return
|
|
1239
|
+
return ke(`${i[0]}_${r}${a}`);
|
|
1240
1240
|
}
|
|
1241
1241
|
return null;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ne(e) {
|
|
1244
1244
|
if (!e)
|
|
1245
1245
|
return e;
|
|
1246
1246
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1247
1247
|
if (e.match(/builder\.io/)) {
|
|
1248
1248
|
let n = e;
|
|
1249
1249
|
const i = Number(e.split("?width=")[1]);
|
|
1250
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1250
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Zt(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1251
1251
|
}
|
|
1252
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1252
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [en(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function tn(e) {
|
|
1255
1255
|
var a, r, o, l, d, c;
|
|
1256
1256
|
function t() {
|
|
1257
1257
|
var u;
|
|
@@ -1263,10 +1263,10 @@ function Yt(e) {
|
|
|
1263
1263
|
if (!e.noWebp) {
|
|
1264
1264
|
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1265
1265
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1266
|
-
return console.debug("Removed given srcset"),
|
|
1266
|
+
return console.debug("Removed given srcset"), ne(y);
|
|
1267
1267
|
} else if (e.image && !e.srcset)
|
|
1268
|
-
return
|
|
1269
|
-
return
|
|
1268
|
+
return ne(y);
|
|
1269
|
+
return ne(y);
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
1272
|
function n() {
|
|
@@ -1283,9 +1283,9 @@ function Yt(e) {
|
|
|
1283
1283
|
};
|
|
1284
1284
|
return e.aspectRatio ? h : void 0;
|
|
1285
1285
|
}
|
|
1286
|
-
return /* @__PURE__ */
|
|
1287
|
-
/* @__PURE__ */
|
|
1288
|
-
/* @__PURE__ */
|
|
1286
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1287
|
+
/* @__PURE__ */ B(R, { children: [
|
|
1288
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1289
1289
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1290
1290
|
/* @__PURE__ */ s(
|
|
1291
1291
|
"img",
|
|
@@ -1337,7 +1337,7 @@ function Yt(e) {
|
|
|
1337
1337
|
}` })
|
|
1338
1338
|
] });
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1340
|
+
function nn(e) {
|
|
1341
1341
|
return /* @__PURE__ */ s(
|
|
1342
1342
|
"section",
|
|
1343
1343
|
{
|
|
@@ -1358,7 +1358,7 @@ function Xt(e) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
|
-
const
|
|
1361
|
+
const ie = {
|
|
1362
1362
|
"@type": "@builder.io/sdk:Element",
|
|
1363
1363
|
layerName: "Accordion item title",
|
|
1364
1364
|
responsiveStyles: {
|
|
@@ -1387,7 +1387,7 @@ const ee = {
|
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
1389
|
}]
|
|
1390
|
-
},
|
|
1390
|
+
}, ae = {
|
|
1391
1391
|
"@type": "@builder.io/sdk:Element",
|
|
1392
1392
|
layerName: "Accordion item detail",
|
|
1393
1393
|
responsiveStyles: {
|
|
@@ -1418,7 +1418,7 @@ const ee = {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
}]
|
|
1421
|
-
},
|
|
1421
|
+
}, an = {
|
|
1422
1422
|
name: "Builder:Accordion",
|
|
1423
1423
|
canHaveChildren: !0,
|
|
1424
1424
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1435,19 +1435,19 @@ const ee = {
|
|
|
1435
1435
|
name: "title",
|
|
1436
1436
|
type: "uiBlocks",
|
|
1437
1437
|
hideFromUI: !0,
|
|
1438
|
-
defaultValue: [
|
|
1438
|
+
defaultValue: [ie]
|
|
1439
1439
|
}, {
|
|
1440
1440
|
name: "detail",
|
|
1441
1441
|
type: "uiBlocks",
|
|
1442
1442
|
hideFromUI: !0,
|
|
1443
|
-
defaultValue: [
|
|
1443
|
+
defaultValue: [ae]
|
|
1444
1444
|
}],
|
|
1445
1445
|
defaultValue: [{
|
|
1446
|
-
title: [
|
|
1447
|
-
detail: [
|
|
1446
|
+
title: [ie],
|
|
1447
|
+
detail: [ae]
|
|
1448
1448
|
}, {
|
|
1449
|
-
title: [
|
|
1450
|
-
detail: [
|
|
1449
|
+
title: [ie],
|
|
1450
|
+
detail: [ae]
|
|
1451
1451
|
}],
|
|
1452
1452
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1453
1453
|
}, {
|
|
@@ -1482,10 +1482,10 @@ const ee = {
|
|
|
1482
1482
|
builderComponents: !0,
|
|
1483
1483
|
builderLinkComponent: !0
|
|
1484
1484
|
}
|
|
1485
|
-
},
|
|
1486
|
-
function
|
|
1485
|
+
}, Ce = (e) => e.toString();
|
|
1486
|
+
function on(e) {
|
|
1487
1487
|
var y;
|
|
1488
|
-
const [t, n] =
|
|
1488
|
+
const [t, n] = I(() => []);
|
|
1489
1489
|
function i() {
|
|
1490
1490
|
return !!(e.grid || e.oneAtATime);
|
|
1491
1491
|
}
|
|
@@ -1524,22 +1524,22 @@ function en(e) {
|
|
|
1524
1524
|
let u = null;
|
|
1525
1525
|
if (e.grid && t.length && document) {
|
|
1526
1526
|
const f = t[0];
|
|
1527
|
-
let
|
|
1527
|
+
let S = document.querySelector(
|
|
1528
1528
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1529
1529
|
);
|
|
1530
|
-
if (u = f,
|
|
1531
|
-
let b =
|
|
1532
|
-
for (;
|
|
1533
|
-
if (
|
|
1534
|
-
if (
|
|
1530
|
+
if (u = f, S) {
|
|
1531
|
+
let b = S.getBoundingClientRect();
|
|
1532
|
+
for (; S = S && S.nextElementSibling; )
|
|
1533
|
+
if (S) {
|
|
1534
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1535
1535
|
continue;
|
|
1536
|
-
const
|
|
1537
|
-
if (
|
|
1536
|
+
const k = S.getBoundingClientRect();
|
|
1537
|
+
if (k.left > b.left) {
|
|
1538
1538
|
const C = parseInt(
|
|
1539
|
-
|
|
1539
|
+
S.getAttribute("data-index") || "",
|
|
1540
1540
|
10
|
|
1541
1541
|
);
|
|
1542
|
-
isNaN(C) || (b =
|
|
1542
|
+
isNaN(C) || (b = k, u = C);
|
|
1543
1543
|
} else
|
|
1544
1544
|
break;
|
|
1545
1545
|
}
|
|
@@ -1561,7 +1561,7 @@ function en(e) {
|
|
|
1561
1561
|
function h(u) {
|
|
1562
1562
|
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1563
1563
|
}
|
|
1564
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */
|
|
1564
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(tt.Fragment, { children: [
|
|
1565
1565
|
/* @__PURE__ */ s(
|
|
1566
1566
|
"div",
|
|
1567
1567
|
{
|
|
@@ -1570,13 +1570,13 @@ function en(e) {
|
|
|
1570
1570
|
...r(),
|
|
1571
1571
|
...e.grid && {
|
|
1572
1572
|
width: e.gridRowWidth,
|
|
1573
|
-
order: d() !== null ?
|
|
1573
|
+
order: d() !== null ? Ce(v) : Ce(v + 1)
|
|
1574
1574
|
}
|
|
1575
1575
|
},
|
|
1576
1576
|
"data-index": v,
|
|
1577
1577
|
onClick: (f) => h(v),
|
|
1578
1578
|
children: /* @__PURE__ */ s(
|
|
1579
|
-
|
|
1579
|
+
D,
|
|
1580
1580
|
{
|
|
1581
1581
|
blocks: u.title,
|
|
1582
1582
|
path: `items.${v}.title`,
|
|
@@ -1594,7 +1594,7 @@ function en(e) {
|
|
|
1594
1594
|
className: l(v),
|
|
1595
1595
|
style: c(),
|
|
1596
1596
|
children: /* @__PURE__ */ s(
|
|
1597
|
-
|
|
1597
|
+
D,
|
|
1598
1598
|
{
|
|
1599
1599
|
blocks: u.detail,
|
|
1600
1600
|
path: `items.${v}.detail`,
|
|
@@ -1608,7 +1608,7 @@ function en(e) {
|
|
|
1608
1608
|
) : null
|
|
1609
1609
|
] }, v)) });
|
|
1610
1610
|
}
|
|
1611
|
-
const
|
|
1611
|
+
const rn = {
|
|
1612
1612
|
name: "Core:Button",
|
|
1613
1613
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1614
1614
|
defaultStyles: {
|
|
@@ -1644,7 +1644,7 @@ const tn = {
|
|
|
1644
1644
|
shouldReceiveBuilderProps: {
|
|
1645
1645
|
builderLinkComponent: !0
|
|
1646
1646
|
}
|
|
1647
|
-
},
|
|
1647
|
+
}, ln = {
|
|
1648
1648
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1649
1649
|
name: "Columns",
|
|
1650
1650
|
isRSC: !0,
|
|
@@ -1851,13 +1851,13 @@ const tn = {
|
|
|
1851
1851
|
builderComponents: !0,
|
|
1852
1852
|
builderLinkComponent: !0
|
|
1853
1853
|
}
|
|
1854
|
-
},
|
|
1854
|
+
}, sn = {
|
|
1855
1855
|
name: "Fragment",
|
|
1856
1856
|
static: !0,
|
|
1857
1857
|
hidden: !0,
|
|
1858
1858
|
canHaveChildren: !0,
|
|
1859
1859
|
noWrap: !0
|
|
1860
|
-
},
|
|
1860
|
+
}, he = ["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"], cn = ["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"], un = {
|
|
1861
1861
|
name: "Image",
|
|
1862
1862
|
static: !0,
|
|
1863
1863
|
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",
|
|
@@ -1872,7 +1872,7 @@ const tn = {
|
|
|
1872
1872
|
name: "image",
|
|
1873
1873
|
type: "file",
|
|
1874
1874
|
bubble: !0,
|
|
1875
|
-
allowedFileTypes:
|
|
1875
|
+
allowedFileTypes: he,
|
|
1876
1876
|
required: !0,
|
|
1877
1877
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1878
1878
|
onChange: (e) => {
|
|
@@ -1965,7 +1965,7 @@ const tn = {
|
|
|
1965
1965
|
shouldReceiveBuilderProps: {
|
|
1966
1966
|
builderBlock: !0
|
|
1967
1967
|
}
|
|
1968
|
-
},
|
|
1968
|
+
}, dn = {
|
|
1969
1969
|
name: "PersonalizationContainer",
|
|
1970
1970
|
shouldReceiveBuilderProps: {
|
|
1971
1971
|
builderBlock: !0,
|
|
@@ -2001,7 +2001,7 @@ const tn = {
|
|
|
2001
2001
|
}]
|
|
2002
2002
|
}]
|
|
2003
2003
|
};
|
|
2004
|
-
function
|
|
2004
|
+
function Q(e) {
|
|
2005
2005
|
return /* @__PURE__ */ s(
|
|
2006
2006
|
"script",
|
|
2007
2007
|
{
|
|
@@ -2011,7 +2011,7 @@ function J(e) {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function mn(e, t, n, i) {
|
|
2015
2015
|
function a(c) {
|
|
2016
2016
|
return typeof c == "string";
|
|
2017
2017
|
}
|
|
@@ -2025,14 +2025,14 @@ function sn(e, t, n, i) {
|
|
|
2025
2025
|
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
|
|
2026
2026
|
return !0;
|
|
2027
2027
|
if (Array.isArray(f))
|
|
2028
|
-
return v === "isNot" ? f.every((
|
|
2028
|
+
return v === "isNot" ? f.every((S) => o(c, {
|
|
2029
2029
|
property: u,
|
|
2030
2030
|
operator: v,
|
|
2031
|
-
value:
|
|
2032
|
-
})) : !!f.find((
|
|
2031
|
+
value: S
|
|
2032
|
+
})) : !!f.find((S) => o(c, {
|
|
2033
2033
|
property: u,
|
|
2034
2034
|
operator: v,
|
|
2035
|
-
value:
|
|
2035
|
+
value: S
|
|
2036
2036
|
}));
|
|
2037
2037
|
const g = c[u];
|
|
2038
2038
|
if (Array.isArray(g))
|
|
@@ -2068,7 +2068,7 @@ function sn(e, t, n, i) {
|
|
|
2068
2068
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2069
2069
|
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
|
|
2070
2070
|
}
|
|
2071
|
-
const
|
|
2071
|
+
const fn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2072
2072
|
if (!navigator.cookieEnabled) {
|
|
2073
2073
|
return;
|
|
2074
2074
|
}
|
|
@@ -2121,7 +2121,7 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2121
2121
|
} else if (variants && variants.length > 0) {
|
|
2122
2122
|
removeVariants();
|
|
2123
2123
|
}
|
|
2124
|
-
}`,
|
|
2124
|
+
}`, hn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2125
2125
|
function isString(val) {
|
|
2126
2126
|
return typeof val === 'string';
|
|
2127
2127
|
}
|
|
@@ -2200,10 +2200,10 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2200
2200
|
return objectMatchesQuery(userAttributes, filter);
|
|
2201
2201
|
});
|
|
2202
2202
|
}`;
|
|
2203
|
-
function
|
|
2204
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2203
|
+
function gn(e, t) {
|
|
2204
|
+
return !(!(e && e.length > 0) || !t || U());
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function bn({
|
|
2207
2207
|
variants: e,
|
|
2208
2208
|
previewingIndex: t,
|
|
2209
2209
|
isHydrated: n,
|
|
@@ -2215,12 +2215,12 @@ function mn({
|
|
|
2215
2215
|
blocks: a != null ? a : [],
|
|
2216
2216
|
path: "this.children"
|
|
2217
2217
|
};
|
|
2218
|
-
if (n &&
|
|
2218
|
+
if (n && $())
|
|
2219
2219
|
return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
|
|
2220
2220
|
blocks: e[t].blocks,
|
|
2221
2221
|
path: `component.options.variants.${t}.blocks`
|
|
2222
2222
|
} : r;
|
|
2223
|
-
if (
|
|
2223
|
+
if (U()) {
|
|
2224
2224
|
const l = i == null ? void 0 : i[0];
|
|
2225
2225
|
if (l)
|
|
2226
2226
|
return {
|
|
@@ -2230,56 +2230,56 @@ function mn({
|
|
|
2230
2230
|
}
|
|
2231
2231
|
return r;
|
|
2232
2232
|
}
|
|
2233
|
-
const
|
|
2233
|
+
const pn = (e, t, n) => `
|
|
2234
2234
|
(function() {
|
|
2235
|
-
${
|
|
2236
|
-
${
|
|
2235
|
+
${hn}
|
|
2236
|
+
${fn}
|
|
2237
2237
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2238
2238
|
})();
|
|
2239
2239
|
`;
|
|
2240
|
-
function
|
|
2241
|
-
var g,
|
|
2242
|
-
const t =
|
|
2243
|
-
() =>
|
|
2244
|
-
), [a, r] =
|
|
2240
|
+
function yn(e) {
|
|
2241
|
+
var g, S, b, k, C, V, w;
|
|
2242
|
+
const t = L(null), [n, i] = I(
|
|
2243
|
+
() => be.getUserAttributes()
|
|
2244
|
+
), [a, r] = I(
|
|
2245
2245
|
() => {
|
|
2246
|
-
var
|
|
2247
|
-
return
|
|
2246
|
+
var x, m, p;
|
|
2247
|
+
return pn(
|
|
2248
2248
|
e.variants,
|
|
2249
|
-
((
|
|
2249
|
+
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2250
2250
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2251
2251
|
);
|
|
2252
2252
|
}
|
|
2253
|
-
), [o, l] =
|
|
2253
|
+
), [o, l] = I(() => []), [d, c] = I(
|
|
2254
2254
|
() => {
|
|
2255
|
-
var
|
|
2256
|
-
return
|
|
2255
|
+
var x;
|
|
2256
|
+
return gn(
|
|
2257
2257
|
e.variants,
|
|
2258
|
-
|
|
2258
|
+
M((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2259
2259
|
);
|
|
2260
2260
|
}
|
|
2261
|
-
), [h, y] =
|
|
2261
|
+
), [h, y] = I(() => !1);
|
|
2262
2262
|
function u() {
|
|
2263
|
-
return (e.variants || []).filter((
|
|
2264
|
-
var m, p,
|
|
2265
|
-
return
|
|
2263
|
+
return (e.variants || []).filter((x) => {
|
|
2264
|
+
var m, p, T, E;
|
|
2265
|
+
return mn(
|
|
2266
2266
|
{
|
|
2267
2267
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2268
|
-
locale: (
|
|
2268
|
+
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
2269
2269
|
} : {},
|
|
2270
2270
|
...n
|
|
2271
2271
|
},
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2272
|
+
x.query,
|
|
2273
|
+
x.startDate,
|
|
2274
|
+
x.endDate
|
|
2275
2275
|
);
|
|
2276
2276
|
});
|
|
2277
2277
|
}
|
|
2278
2278
|
function v() {
|
|
2279
|
-
var
|
|
2280
|
-
return
|
|
2279
|
+
var x;
|
|
2280
|
+
return bn({
|
|
2281
2281
|
variants: e.variants,
|
|
2282
|
-
fallbackBlocks: (
|
|
2282
|
+
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2283
2283
|
isHydrated: h,
|
|
2284
2284
|
filteredVariants: u(),
|
|
2285
2285
|
previewingIndex: e.previewingIndex
|
|
@@ -2287,21 +2287,21 @@ function hn(e) {
|
|
|
2287
2287
|
}
|
|
2288
2288
|
function f() {
|
|
2289
2289
|
return (e.variants || []).map(
|
|
2290
|
-
(
|
|
2290
|
+
(x, m) => {
|
|
2291
2291
|
var p;
|
|
2292
2292
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2293
2293
|
}
|
|
2294
2294
|
).join("");
|
|
2295
2295
|
}
|
|
2296
|
-
return
|
|
2296
|
+
return P(() => {
|
|
2297
2297
|
var m;
|
|
2298
2298
|
y(!0);
|
|
2299
|
-
const
|
|
2299
|
+
const x = be.subscribeOnUserAttributesChange(
|
|
2300
2300
|
(p) => {
|
|
2301
2301
|
i(p);
|
|
2302
2302
|
}
|
|
2303
2303
|
);
|
|
2304
|
-
if (!(
|
|
2304
|
+
if (!($() || Y())) {
|
|
2305
2305
|
const p = u()[0];
|
|
2306
2306
|
t.current && (t.current.dispatchEvent(
|
|
2307
2307
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -2311,14 +2311,14 @@ function hn(e) {
|
|
|
2311
2311
|
},
|
|
2312
2312
|
bubbles: !0
|
|
2313
2313
|
})
|
|
2314
|
-
), new IntersectionObserver((
|
|
2315
|
-
|
|
2316
|
-
var
|
|
2317
|
-
|
|
2314
|
+
), new IntersectionObserver((E) => {
|
|
2315
|
+
E.forEach((A) => {
|
|
2316
|
+
var N;
|
|
2317
|
+
A.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2318
2318
|
new CustomEvent("builder.variantDisplayed", {
|
|
2319
2319
|
detail: {
|
|
2320
2320
|
variant: p || "default",
|
|
2321
|
-
content: (
|
|
2321
|
+
content: (N = e.builderContext) == null ? void 0 : N.content
|
|
2322
2322
|
},
|
|
2323
2323
|
bubbles: !0
|
|
2324
2324
|
})
|
|
@@ -2326,28 +2326,28 @@ function hn(e) {
|
|
|
2326
2326
|
});
|
|
2327
2327
|
}).observe(t.current));
|
|
2328
2328
|
}
|
|
2329
|
-
o.push(
|
|
2330
|
-
}, []),
|
|
2331
|
-
o.forEach((
|
|
2332
|
-
}, []), /* @__PURE__ */
|
|
2329
|
+
o.push(x);
|
|
2330
|
+
}, []), P(() => () => {
|
|
2331
|
+
o.forEach((x) => x());
|
|
2332
|
+
}, []), /* @__PURE__ */ B(
|
|
2333
2333
|
"div",
|
|
2334
2334
|
{
|
|
2335
2335
|
ref: t,
|
|
2336
2336
|
...e.attributes,
|
|
2337
2337
|
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2338
2338
|
children: [
|
|
2339
|
-
d ? /* @__PURE__ */
|
|
2340
|
-
(
|
|
2341
|
-
var p,
|
|
2339
|
+
d ? /* @__PURE__ */ B(R, { children: [
|
|
2340
|
+
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2341
|
+
var p, T;
|
|
2342
2342
|
return /* @__PURE__ */ s(
|
|
2343
2343
|
"template",
|
|
2344
2344
|
{
|
|
2345
2345
|
"data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
|
|
2346
2346
|
children: /* @__PURE__ */ s(
|
|
2347
|
-
|
|
2347
|
+
D,
|
|
2348
2348
|
{
|
|
2349
|
-
blocks:
|
|
2350
|
-
parent: (
|
|
2349
|
+
blocks: x.blocks,
|
|
2350
|
+
parent: (T = e.builderBlock) == null ? void 0 : T.id,
|
|
2351
2351
|
path: `component.options.variants.${m}.blocks`
|
|
2352
2352
|
}
|
|
2353
2353
|
)
|
|
@@ -2356,15 +2356,15 @@ function hn(e) {
|
|
|
2356
2356
|
);
|
|
2357
2357
|
}),
|
|
2358
2358
|
/* @__PURE__ */ s(
|
|
2359
|
-
|
|
2359
|
+
z,
|
|
2360
2360
|
{
|
|
2361
2361
|
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2362
2362
|
styles: f(),
|
|
2363
|
-
id: `variants-styles-${(
|
|
2363
|
+
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2364
2364
|
}
|
|
2365
2365
|
),
|
|
2366
2366
|
/* @__PURE__ */ s(
|
|
2367
|
-
|
|
2367
|
+
Q,
|
|
2368
2368
|
{
|
|
2369
2369
|
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2370
2370
|
scriptStr: a,
|
|
@@ -2373,7 +2373,7 @@ function hn(e) {
|
|
|
2373
2373
|
)
|
|
2374
2374
|
] }) : null,
|
|
2375
2375
|
/* @__PURE__ */ s(
|
|
2376
|
-
|
|
2376
|
+
D,
|
|
2377
2377
|
{
|
|
2378
2378
|
blocks: v().blocks,
|
|
2379
2379
|
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
@@ -2384,7 +2384,7 @@ function hn(e) {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
);
|
|
2386
2386
|
}
|
|
2387
|
-
const
|
|
2387
|
+
const vn = {
|
|
2388
2388
|
name: "Core:Section",
|
|
2389
2389
|
static: !0,
|
|
2390
2390
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2423,7 +2423,7 @@ const gn = {
|
|
|
2423
2423
|
}
|
|
2424
2424
|
}
|
|
2425
2425
|
}]
|
|
2426
|
-
},
|
|
2426
|
+
}, xn = {
|
|
2427
2427
|
name: "Slot",
|
|
2428
2428
|
isRSC: !0,
|
|
2429
2429
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2441,7 +2441,7 @@ const gn = {
|
|
|
2441
2441
|
builderComponents: !0
|
|
2442
2442
|
}
|
|
2443
2443
|
};
|
|
2444
|
-
function
|
|
2444
|
+
function Sn(e) {
|
|
2445
2445
|
var t, n, i;
|
|
2446
2446
|
return /* @__PURE__ */ s(
|
|
2447
2447
|
"div",
|
|
@@ -2453,7 +2453,7 @@ function pn(e) {
|
|
|
2453
2453
|
"builder-slot": e.name
|
|
2454
2454
|
},
|
|
2455
2455
|
children: /* @__PURE__ */ s(
|
|
2456
|
-
|
|
2456
|
+
D,
|
|
2457
2457
|
{
|
|
2458
2458
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2459
2459
|
path: `symbol.data.${e.name}`,
|
|
@@ -2465,7 +2465,7 @@ function pn(e) {
|
|
|
2465
2465
|
}
|
|
2466
2466
|
);
|
|
2467
2467
|
}
|
|
2468
|
-
const
|
|
2468
|
+
const kn = {
|
|
2469
2469
|
name: "Symbol",
|
|
2470
2470
|
noWrap: !0,
|
|
2471
2471
|
static: !0,
|
|
@@ -2504,7 +2504,7 @@ const yn = {
|
|
|
2504
2504
|
builderComponents: !0,
|
|
2505
2505
|
builderLinkComponent: !0
|
|
2506
2506
|
}
|
|
2507
|
-
},
|
|
2507
|
+
}, oe = {
|
|
2508
2508
|
"@type": "@builder.io/sdk:Element",
|
|
2509
2509
|
responsiveStyles: {
|
|
2510
2510
|
large: {
|
|
@@ -2526,7 +2526,7 @@ const yn = {
|
|
|
2526
2526
|
text: "New tab"
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
},
|
|
2529
|
+
}, re = {
|
|
2530
2530
|
"@type": "@builder.io/sdk:Element",
|
|
2531
2531
|
responsiveStyles: {
|
|
2532
2532
|
large: {
|
|
@@ -2542,7 +2542,7 @@ const yn = {
|
|
|
2542
2542
|
text: "New tab content "
|
|
2543
2543
|
}
|
|
2544
2544
|
}
|
|
2545
|
-
},
|
|
2545
|
+
}, Cn = {
|
|
2546
2546
|
name: "Builder: Tabs",
|
|
2547
2547
|
inputs: [{
|
|
2548
2548
|
name: "tabs",
|
|
@@ -2552,16 +2552,16 @@ const yn = {
|
|
|
2552
2552
|
name: "label",
|
|
2553
2553
|
type: "uiBlocks",
|
|
2554
2554
|
hideFromUI: !0,
|
|
2555
|
-
defaultValue: [
|
|
2555
|
+
defaultValue: [oe]
|
|
2556
2556
|
}, {
|
|
2557
2557
|
name: "content",
|
|
2558
2558
|
type: "uiBlocks",
|
|
2559
2559
|
hideFromUI: !0,
|
|
2560
|
-
defaultValue: [
|
|
2560
|
+
defaultValue: [re]
|
|
2561
2561
|
}],
|
|
2562
2562
|
defaultValue: [{
|
|
2563
2563
|
label: [{
|
|
2564
|
-
...
|
|
2564
|
+
...oe,
|
|
2565
2565
|
component: {
|
|
2566
2566
|
name: "Text",
|
|
2567
2567
|
options: {
|
|
@@ -2570,7 +2570,7 @@ const yn = {
|
|
|
2570
2570
|
}
|
|
2571
2571
|
}],
|
|
2572
2572
|
content: [{
|
|
2573
|
-
...
|
|
2573
|
+
...re,
|
|
2574
2574
|
component: {
|
|
2575
2575
|
name: "Text",
|
|
2576
2576
|
options: {
|
|
@@ -2580,7 +2580,7 @@ const yn = {
|
|
|
2580
2580
|
}]
|
|
2581
2581
|
}, {
|
|
2582
2582
|
label: [{
|
|
2583
|
-
...
|
|
2583
|
+
...oe,
|
|
2584
2584
|
component: {
|
|
2585
2585
|
name: "Text",
|
|
2586
2586
|
options: {
|
|
@@ -2589,7 +2589,7 @@ const yn = {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
}],
|
|
2591
2591
|
content: [{
|
|
2592
|
-
...
|
|
2592
|
+
...re,
|
|
2593
2593
|
component: {
|
|
2594
2594
|
name: "Text",
|
|
2595
2595
|
options: {
|
|
@@ -2646,9 +2646,9 @@ const yn = {
|
|
|
2646
2646
|
builderLinkComponent: !0
|
|
2647
2647
|
}
|
|
2648
2648
|
};
|
|
2649
|
-
function
|
|
2649
|
+
function Tn(e) {
|
|
2650
2650
|
var r;
|
|
2651
|
-
const [t, n] =
|
|
2651
|
+
const [t, n] = I(
|
|
2652
2652
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2653
2653
|
);
|
|
2654
2654
|
function i(o) {
|
|
@@ -2657,7 +2657,7 @@ function xn(e) {
|
|
|
2657
2657
|
function a(o) {
|
|
2658
2658
|
o === t && e.collapsible ? n(-1) : n(o);
|
|
2659
2659
|
}
|
|
2660
|
-
return /* @__PURE__ */
|
|
2660
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2661
2661
|
/* @__PURE__ */ s(
|
|
2662
2662
|
"div",
|
|
2663
2663
|
{
|
|
@@ -2677,7 +2677,7 @@ function xn(e) {
|
|
|
2677
2677
|
},
|
|
2678
2678
|
onClick: (d) => a(l),
|
|
2679
2679
|
children: /* @__PURE__ */ s(
|
|
2680
|
-
|
|
2680
|
+
D,
|
|
2681
2681
|
{
|
|
2682
2682
|
parent: e.builderBlock.id,
|
|
2683
2683
|
path: `tabs.${l}.label`,
|
|
@@ -2693,7 +2693,7 @@ function xn(e) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
),
|
|
2695
2695
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2696
|
-
|
|
2696
|
+
D,
|
|
2697
2697
|
{
|
|
2698
2698
|
parent: e.builderBlock.id,
|
|
2699
2699
|
path: `tabs.${t}.content`,
|
|
@@ -2705,7 +2705,7 @@ function xn(e) {
|
|
|
2705
2705
|
) }) : null
|
|
2706
2706
|
] });
|
|
2707
2707
|
}
|
|
2708
|
-
const
|
|
2708
|
+
const wn = {
|
|
2709
2709
|
shouldReceiveBuilderProps: {
|
|
2710
2710
|
builderBlock: !1,
|
|
2711
2711
|
builderContext: !0
|
|
@@ -2728,7 +2728,7 @@ const Sn = {
|
|
|
2728
2728
|
textAlign: "center"
|
|
2729
2729
|
}
|
|
2730
2730
|
};
|
|
2731
|
-
function
|
|
2731
|
+
function In(e) {
|
|
2732
2732
|
var t;
|
|
2733
2733
|
return /* @__PURE__ */ s(
|
|
2734
2734
|
"div",
|
|
@@ -2741,7 +2741,7 @@ function kn(e) {
|
|
|
2741
2741
|
}
|
|
2742
2742
|
);
|
|
2743
2743
|
}
|
|
2744
|
-
const
|
|
2744
|
+
const En = {
|
|
2745
2745
|
name: "Custom Code",
|
|
2746
2746
|
static: !0,
|
|
2747
2747
|
requiredPermissions: ["editCode"],
|
|
@@ -2764,9 +2764,9 @@ const Cn = {
|
|
|
2764
2764
|
advanced: !0
|
|
2765
2765
|
}]
|
|
2766
2766
|
};
|
|
2767
|
-
function
|
|
2768
|
-
const t =
|
|
2769
|
-
return
|
|
2767
|
+
function Rn(e) {
|
|
2768
|
+
const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
|
|
2769
|
+
return P(() => {
|
|
2770
2770
|
var l;
|
|
2771
2771
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2772
2772
|
return;
|
|
@@ -2802,7 +2802,7 @@ function Tn(e) {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
);
|
|
2804
2804
|
}
|
|
2805
|
-
const
|
|
2805
|
+
const Vn = {
|
|
2806
2806
|
name: "Embed",
|
|
2807
2807
|
static: !0,
|
|
2808
2808
|
inputs: [{
|
|
@@ -2817,9 +2817,9 @@ const wn = {
|
|
|
2817
2817
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2818
2818
|
hideFromUI: !0
|
|
2819
2819
|
}]
|
|
2820
|
-
},
|
|
2821
|
-
function
|
|
2822
|
-
const t =
|
|
2820
|
+
}, Pn = ["text/javascript", "application/javascript", "application/ecmascript"], Bn = (e) => Pn.includes(e.type);
|
|
2821
|
+
function An(e) {
|
|
2822
|
+
const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []), [o, l] = I(() => !1);
|
|
2823
2823
|
function d() {
|
|
2824
2824
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2825
2825
|
return;
|
|
@@ -2830,7 +2830,7 @@ function Rn(e) {
|
|
|
2830
2830
|
n.push(y.src);
|
|
2831
2831
|
const u = document.createElement("script");
|
|
2832
2832
|
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2833
|
-
} else if (
|
|
2833
|
+
} else if (Bn(y) && !a.includes(y.innerText))
|
|
2834
2834
|
try {
|
|
2835
2835
|
a.push(y.innerText), new Function(y.innerText)();
|
|
2836
2836
|
} catch (u) {
|
|
@@ -2838,7 +2838,7 @@ function Rn(e) {
|
|
|
2838
2838
|
}
|
|
2839
2839
|
}
|
|
2840
2840
|
}
|
|
2841
|
-
return
|
|
2841
|
+
return P(() => {
|
|
2842
2842
|
t.current && !o && (l(!0), d());
|
|
2843
2843
|
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2844
2844
|
"div",
|
|
@@ -2849,7 +2849,7 @@ function Rn(e) {
|
|
|
2849
2849
|
}
|
|
2850
2850
|
);
|
|
2851
2851
|
}
|
|
2852
|
-
const
|
|
2852
|
+
const Nn = {
|
|
2853
2853
|
name: "Form:Form",
|
|
2854
2854
|
// editableTags: ['builder-form-error']
|
|
2855
2855
|
defaults: {
|
|
@@ -3086,12 +3086,12 @@ const Vn = {
|
|
|
3086
3086
|
builderComponents: !0,
|
|
3087
3087
|
builderLinkComponent: !0
|
|
3088
3088
|
}
|
|
3089
|
-
},
|
|
3089
|
+
}, Wn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], $n = () => {
|
|
3090
3090
|
const e = process.env.NODE_ENV || "production";
|
|
3091
|
-
return
|
|
3091
|
+
return Wn.includes(e) ? e : "production";
|
|
3092
3092
|
};
|
|
3093
|
-
function
|
|
3094
|
-
const t =
|
|
3093
|
+
function Dn(e) {
|
|
3094
|
+
const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
|
|
3095
3095
|
function d(y) {
|
|
3096
3096
|
var v, f;
|
|
3097
3097
|
const u = {
|
|
@@ -3101,7 +3101,7 @@ function An(e) {
|
|
|
3101
3101
|
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3102
3102
|
}
|
|
3103
3103
|
function c() {
|
|
3104
|
-
return
|
|
3104
|
+
return $() && e.previewState || n;
|
|
3105
3105
|
}
|
|
3106
3106
|
function h(y) {
|
|
3107
3107
|
var v;
|
|
@@ -3115,73 +3115,73 @@ function An(e) {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
y.preventDefault();
|
|
3117
3117
|
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3118
|
-
let
|
|
3119
|
-
const b = new FormData(f),
|
|
3118
|
+
let S;
|
|
3119
|
+
const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3120
3120
|
let p;
|
|
3121
|
-
const
|
|
3121
|
+
const T = m.name;
|
|
3122
3122
|
if (m instanceof HTMLInputElement)
|
|
3123
3123
|
if (m.type === "radio") {
|
|
3124
3124
|
if (m.checked)
|
|
3125
3125
|
return p = m.name, {
|
|
3126
|
-
key:
|
|
3126
|
+
key: T,
|
|
3127
3127
|
value: p
|
|
3128
3128
|
};
|
|
3129
3129
|
} else if (m.type === "checkbox")
|
|
3130
3130
|
p = m.checked;
|
|
3131
3131
|
else if (m.type === "number" || m.type === "range") {
|
|
3132
|
-
const
|
|
3133
|
-
isNaN(
|
|
3132
|
+
const E = m.valueAsNumber;
|
|
3133
|
+
isNaN(E) || (p = E);
|
|
3134
3134
|
} else
|
|
3135
3135
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3136
3136
|
else
|
|
3137
3137
|
p = m.value;
|
|
3138
3138
|
return {
|
|
3139
|
-
key:
|
|
3139
|
+
key: T,
|
|
3140
3140
|
value: p
|
|
3141
3141
|
};
|
|
3142
3142
|
});
|
|
3143
3143
|
let C = e.contentType;
|
|
3144
|
-
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(
|
|
3144
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3145
3145
|
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3146
3146
|
}), C !== "application/json")
|
|
3147
|
-
|
|
3147
|
+
S = b;
|
|
3148
3148
|
else {
|
|
3149
3149
|
const m = {};
|
|
3150
|
-
Array.from(
|
|
3151
|
-
|
|
3152
|
-
}),
|
|
3150
|
+
Array.from(k).forEach(({ value: p, key: T }) => {
|
|
3151
|
+
Ne(m, T, p);
|
|
3152
|
+
}), S = JSON.stringify(m);
|
|
3153
3153
|
}
|
|
3154
3154
|
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3155
|
-
const V = new CustomEvent("presubmit", { detail: { body:
|
|
3155
|
+
const V = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3156
3156
|
if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
|
|
3157
3157
|
return;
|
|
3158
3158
|
i("sending");
|
|
3159
|
-
const w = `${
|
|
3159
|
+
const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3160
3160
|
e.sendSubmissionsToEmail || ""
|
|
3161
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3162
|
-
|
|
3161
|
+
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3162
|
+
Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
|
|
3163
3163
|
async (m) => {
|
|
3164
3164
|
let p;
|
|
3165
|
-
const
|
|
3166
|
-
if (
|
|
3167
|
-
let
|
|
3168
|
-
|
|
3165
|
+
const T = m.headers.get("content-type");
|
|
3166
|
+
if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3167
|
+
let E = $e(p, e.errorMessagePath);
|
|
3168
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3169
3169
|
}
|
|
3170
3170
|
if (r(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3171
|
-
const
|
|
3171
|
+
const E = new CustomEvent("submit:success", {
|
|
3172
3172
|
detail: { res: m, body: p }
|
|
3173
3173
|
});
|
|
3174
3174
|
if (t.current) {
|
|
3175
|
-
if (t.current.dispatchEvent(
|
|
3175
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
3176
3176
|
return;
|
|
3177
3177
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3178
3178
|
}
|
|
3179
3179
|
if (e.successUrl)
|
|
3180
3180
|
if (t.current) {
|
|
3181
|
-
const
|
|
3181
|
+
const A = new CustomEvent("route", {
|
|
3182
3182
|
detail: { url: e.successUrl }
|
|
3183
3183
|
});
|
|
3184
|
-
t.current.dispatchEvent(
|
|
3184
|
+
t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
|
|
3185
3185
|
} else
|
|
3186
3186
|
location.href = e.successUrl;
|
|
3187
3187
|
}
|
|
@@ -3195,9 +3195,9 @@ function An(e) {
|
|
|
3195
3195
|
);
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
3198
|
-
return /* @__PURE__ */
|
|
3198
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
3199
3199
|
" ",
|
|
3200
|
-
/* @__PURE__ */
|
|
3200
|
+
/* @__PURE__ */ B(
|
|
3201
3201
|
"form",
|
|
3202
3202
|
{
|
|
3203
3203
|
validate: e.validate,
|
|
@@ -3210,7 +3210,7 @@ function An(e) {
|
|
|
3210
3210
|
children: [
|
|
3211
3211
|
e.children,
|
|
3212
3212
|
c() === "error" ? /* @__PURE__ */ s(
|
|
3213
|
-
|
|
3213
|
+
D,
|
|
3214
3214
|
{
|
|
3215
3215
|
path: "errorMessage",
|
|
3216
3216
|
blocks: e.errorMessage,
|
|
@@ -3218,7 +3218,7 @@ function An(e) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
) : null,
|
|
3220
3220
|
c() === "sending" ? /* @__PURE__ */ s(
|
|
3221
|
-
|
|
3221
|
+
D,
|
|
3222
3222
|
{
|
|
3223
3223
|
path: "sendingMessage",
|
|
3224
3224
|
blocks: e.sendingMessage,
|
|
@@ -3227,7 +3227,7 @@ function An(e) {
|
|
|
3227
3227
|
) : null,
|
|
3228
3228
|
c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3229
3229
|
c() === "success" ? /* @__PURE__ */ s(
|
|
3230
|
-
|
|
3230
|
+
D,
|
|
3231
3231
|
{
|
|
3232
3232
|
path: "successMessage",
|
|
3233
3233
|
blocks: e.successMessage,
|
|
@@ -3242,7 +3242,7 @@ function An(e) {
|
|
|
3242
3242
|
" "
|
|
3243
3243
|
] });
|
|
3244
3244
|
}
|
|
3245
|
-
const
|
|
3245
|
+
const Fn = {
|
|
3246
3246
|
name: "Form:Input",
|
|
3247
3247
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3248
3248
|
inputs: [
|
|
@@ -3294,12 +3294,12 @@ const Nn = {
|
|
|
3294
3294
|
borderColor: "#ccc"
|
|
3295
3295
|
}
|
|
3296
3296
|
};
|
|
3297
|
-
function
|
|
3298
|
-
return /* @__PURE__ */
|
|
3297
|
+
function Ln(e) {
|
|
3298
|
+
return /* @__PURE__ */ Ae(
|
|
3299
3299
|
"input",
|
|
3300
3300
|
{
|
|
3301
3301
|
...e.attributes,
|
|
3302
|
-
key:
|
|
3302
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3303
3303
|
placeholder: e.placeholder,
|
|
3304
3304
|
type: e.type,
|
|
3305
3305
|
name: e.name,
|
|
@@ -3309,7 +3309,7 @@ function Wn(e) {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
);
|
|
3311
3311
|
}
|
|
3312
|
-
const
|
|
3312
|
+
const On = {
|
|
3313
3313
|
name: "Form:Select",
|
|
3314
3314
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3315
3315
|
defaultStyles: {
|
|
@@ -3352,14 +3352,14 @@ const $n = {
|
|
|
3352
3352
|
static: !0,
|
|
3353
3353
|
noWrap: !0
|
|
3354
3354
|
};
|
|
3355
|
-
function
|
|
3355
|
+
function Un(e) {
|
|
3356
3356
|
var t;
|
|
3357
|
-
return /* @__PURE__ */
|
|
3357
|
+
return /* @__PURE__ */ Ae(
|
|
3358
3358
|
"select",
|
|
3359
3359
|
{
|
|
3360
3360
|
...e.attributes,
|
|
3361
3361
|
value: e.value,
|
|
3362
|
-
key:
|
|
3362
|
+
key: $() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3363
3363
|
defaultValue: e.defaultValue,
|
|
3364
3364
|
name: e.name,
|
|
3365
3365
|
required: e.required
|
|
@@ -3367,7 +3367,7 @@ function Dn(e) {
|
|
|
3367
3367
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3368
3368
|
);
|
|
3369
3369
|
}
|
|
3370
|
-
const
|
|
3370
|
+
const _n = {
|
|
3371
3371
|
name: "Form:SubmitButton",
|
|
3372
3372
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3373
3373
|
defaultStyles: {
|
|
@@ -3393,10 +3393,10 @@ const Fn = {
|
|
|
3393
3393
|
// TODO: defaultChildren
|
|
3394
3394
|
// canHaveChildren: true,
|
|
3395
3395
|
};
|
|
3396
|
-
function
|
|
3396
|
+
function qn(e) {
|
|
3397
3397
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3398
3398
|
}
|
|
3399
|
-
const
|
|
3399
|
+
const Hn = {
|
|
3400
3400
|
name: "Form:TextArea",
|
|
3401
3401
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3402
3402
|
inputs: [{
|
|
@@ -3433,7 +3433,7 @@ const On = {
|
|
|
3433
3433
|
static: !0,
|
|
3434
3434
|
noWrap: !0
|
|
3435
3435
|
};
|
|
3436
|
-
function
|
|
3436
|
+
function Mn(e) {
|
|
3437
3437
|
return /* @__PURE__ */ s(
|
|
3438
3438
|
"textarea",
|
|
3439
3439
|
{
|
|
@@ -3446,7 +3446,7 @@ function Un(e) {
|
|
|
3446
3446
|
}
|
|
3447
3447
|
);
|
|
3448
3448
|
}
|
|
3449
|
-
const
|
|
3449
|
+
const jn = {
|
|
3450
3450
|
// friendlyName?
|
|
3451
3451
|
name: "Raw:Img",
|
|
3452
3452
|
hideFromInsertMenu: !0,
|
|
@@ -3455,13 +3455,13 @@ const _n = {
|
|
|
3455
3455
|
name: "image",
|
|
3456
3456
|
bubble: !0,
|
|
3457
3457
|
type: "file",
|
|
3458
|
-
allowedFileTypes:
|
|
3458
|
+
allowedFileTypes: he,
|
|
3459
3459
|
required: !0
|
|
3460
3460
|
}],
|
|
3461
3461
|
noWrap: !0,
|
|
3462
3462
|
static: !0
|
|
3463
3463
|
};
|
|
3464
|
-
function
|
|
3464
|
+
function zn(e) {
|
|
3465
3465
|
return /* @__PURE__ */ s(
|
|
3466
3466
|
"img",
|
|
3467
3467
|
{
|
|
@@ -3473,10 +3473,10 @@ function qn(e) {
|
|
|
3473
3473
|
src: e.imgSrc || e.image,
|
|
3474
3474
|
...e.attributes
|
|
3475
3475
|
},
|
|
3476
|
-
|
|
3476
|
+
$() && e.imgSrc || "default-key"
|
|
3477
3477
|
);
|
|
3478
3478
|
}
|
|
3479
|
-
const
|
|
3479
|
+
const Kn = {
|
|
3480
3480
|
name: "Video",
|
|
3481
3481
|
canHaveChildren: !0,
|
|
3482
3482
|
defaultStyles: {
|
|
@@ -3487,14 +3487,14 @@ const Hn = {
|
|
|
3487
3487
|
inputs: [{
|
|
3488
3488
|
name: "video",
|
|
3489
3489
|
type: "file",
|
|
3490
|
-
allowedFileTypes:
|
|
3490
|
+
allowedFileTypes: cn,
|
|
3491
3491
|
bubble: !0,
|
|
3492
3492
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3493
3493
|
required: !0
|
|
3494
3494
|
}, {
|
|
3495
3495
|
name: "posterImage",
|
|
3496
3496
|
type: "file",
|
|
3497
|
-
allowedFileTypes:
|
|
3497
|
+
allowedFileTypes: he,
|
|
3498
3498
|
helperText: "Image to show before the video plays"
|
|
3499
3499
|
}, {
|
|
3500
3500
|
name: "autoPlay",
|
|
@@ -3561,9 +3561,9 @@ const Hn = {
|
|
|
3561
3561
|
builderBlock: !0
|
|
3562
3562
|
}
|
|
3563
3563
|
};
|
|
3564
|
-
function
|
|
3564
|
+
function Jn(e) {
|
|
3565
3565
|
var o, l, d, c, h, y, u;
|
|
3566
|
-
const t =
|
|
3566
|
+
const t = L(null);
|
|
3567
3567
|
function n() {
|
|
3568
3568
|
return {
|
|
3569
3569
|
...e.autoPlay === !0 ? {
|
|
@@ -3588,22 +3588,22 @@ function Mn(e) {
|
|
|
3588
3588
|
...n()
|
|
3589
3589
|
};
|
|
3590
3590
|
}
|
|
3591
|
-
const [a, r] =
|
|
3591
|
+
const [a, r] = I(() => {
|
|
3592
3592
|
});
|
|
3593
|
-
return
|
|
3593
|
+
return P(() => {
|
|
3594
3594
|
if (e.lazyLoad) {
|
|
3595
3595
|
const v = new IntersectionObserver(function(f) {
|
|
3596
3596
|
f.forEach(function(g) {
|
|
3597
3597
|
if (!g.isIntersecting)
|
|
3598
3598
|
return;
|
|
3599
|
-
const
|
|
3599
|
+
const S = g.target;
|
|
3600
3600
|
try {
|
|
3601
|
-
Array.from(
|
|
3601
|
+
Array.from(S.children).filter(
|
|
3602
3602
|
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3603
3603
|
).forEach((b) => {
|
|
3604
|
-
const
|
|
3605
|
-
|
|
3606
|
-
}),
|
|
3604
|
+
const k = b.dataset.src;
|
|
3605
|
+
k && (b.src = k);
|
|
3606
|
+
}), S.load(), v.unobserve(S);
|
|
3607
3607
|
} catch (b) {
|
|
3608
3608
|
console.error("Error loading lazy video:", b);
|
|
3609
3609
|
}
|
|
@@ -3611,9 +3611,9 @@ function Mn(e) {
|
|
|
3611
3611
|
});
|
|
3612
3612
|
t.current && v.observe(t.current), r(v);
|
|
3613
3613
|
}
|
|
3614
|
-
}, []),
|
|
3614
|
+
}, []), P(() => () => {
|
|
3615
3615
|
a && a.disconnect();
|
|
3616
|
-
}, []), /* @__PURE__ */
|
|
3616
|
+
}, []), /* @__PURE__ */ B(
|
|
3617
3617
|
"div",
|
|
3618
3618
|
{
|
|
3619
3619
|
style: {
|
|
@@ -3697,67 +3697,67 @@ function Mn(e) {
|
|
|
3697
3697
|
}
|
|
3698
3698
|
);
|
|
3699
3699
|
}
|
|
3700
|
-
const
|
|
3701
|
-
component: Tn,
|
|
3702
|
-
...Cn
|
|
3703
|
-
}, {
|
|
3700
|
+
const Gn = () => [{
|
|
3704
3701
|
component: Rn,
|
|
3705
|
-
...
|
|
3702
|
+
...En
|
|
3706
3703
|
}, {
|
|
3707
3704
|
component: An,
|
|
3708
3705
|
...Vn
|
|
3709
3706
|
}, {
|
|
3710
|
-
component:
|
|
3707
|
+
component: Dn,
|
|
3711
3708
|
...Nn
|
|
3712
3709
|
}, {
|
|
3713
3710
|
component: Ln,
|
|
3714
3711
|
...Fn
|
|
3715
3712
|
}, {
|
|
3716
|
-
component:
|
|
3717
|
-
|
|
3713
|
+
component: qn,
|
|
3714
|
+
..._n
|
|
3718
3715
|
}, {
|
|
3719
3716
|
component: Un,
|
|
3720
3717
|
...On
|
|
3721
|
-
}, {
|
|
3722
|
-
component: qn,
|
|
3723
|
-
..._n
|
|
3724
3718
|
}, {
|
|
3725
3719
|
component: Mn,
|
|
3726
3720
|
...Hn
|
|
3727
|
-
}], Se = () => [{
|
|
3728
|
-
component: rt,
|
|
3729
|
-
...tn
|
|
3730
3721
|
}, {
|
|
3731
|
-
component:
|
|
3732
|
-
...
|
|
3722
|
+
component: zn,
|
|
3723
|
+
...jn
|
|
3733
3724
|
}, {
|
|
3734
|
-
component:
|
|
3735
|
-
...
|
|
3725
|
+
component: Jn,
|
|
3726
|
+
...Kn
|
|
3727
|
+
}], Te = () => [{
|
|
3728
|
+
component: ut,
|
|
3729
|
+
...rn
|
|
3736
3730
|
}, {
|
|
3737
3731
|
component: Yt,
|
|
3738
|
-
...
|
|
3732
|
+
...ln
|
|
3739
3733
|
}, {
|
|
3740
3734
|
component: Xt,
|
|
3741
|
-
...
|
|
3735
|
+
...sn
|
|
3742
3736
|
}, {
|
|
3743
|
-
component:
|
|
3744
|
-
...
|
|
3737
|
+
component: tn,
|
|
3738
|
+
...un
|
|
3745
3739
|
}, {
|
|
3746
|
-
component:
|
|
3747
|
-
...
|
|
3740
|
+
component: nn,
|
|
3741
|
+
...vn
|
|
3748
3742
|
}, {
|
|
3749
|
-
component:
|
|
3750
|
-
...
|
|
3743
|
+
component: Sn,
|
|
3744
|
+
...xn
|
|
3751
3745
|
}, {
|
|
3752
|
-
component:
|
|
3753
|
-
...
|
|
3746
|
+
component: vi,
|
|
3747
|
+
...kn
|
|
3754
3748
|
}, {
|
|
3755
|
-
component:
|
|
3756
|
-
...
|
|
3749
|
+
component: In,
|
|
3750
|
+
...wn
|
|
3751
|
+
}, {
|
|
3752
|
+
component: yn,
|
|
3753
|
+
...dn
|
|
3754
|
+
}, {
|
|
3755
|
+
component: Tn,
|
|
3756
|
+
...Cn
|
|
3757
3757
|
}, {
|
|
3758
|
-
component:
|
|
3759
|
-
...
|
|
3760
|
-
}, ...
|
|
3758
|
+
component: on,
|
|
3759
|
+
...an
|
|
3760
|
+
}, ...Gn()], Qn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3761
3761
|
function getAndSetVariantId() {
|
|
3762
3762
|
function setCookie(name, value, days) {
|
|
3763
3763
|
let expires = '';
|
|
@@ -3813,7 +3813,7 @@ const jn = () => [{
|
|
|
3813
3813
|
}).join('');
|
|
3814
3814
|
styleEl.innerHTML = newStyleStr;
|
|
3815
3815
|
}
|
|
3816
|
-
}`,
|
|
3816
|
+
}`, Yn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3817
3817
|
if (!navigator.cookieEnabled) {
|
|
3818
3818
|
return;
|
|
3819
3819
|
}
|
|
@@ -3847,29 +3847,29 @@ const jn = () => [{
|
|
|
3847
3847
|
thisScriptEl?.remove();
|
|
3848
3848
|
}
|
|
3849
3849
|
return;
|
|
3850
|
-
}`,
|
|
3850
|
+
}`, ze = "builderIoAbTest", Ke = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3851
3851
|
...t,
|
|
3852
3852
|
testVariationId: t.id,
|
|
3853
3853
|
id: e == null ? void 0 : e.id
|
|
3854
|
-
})),
|
|
3854
|
+
})), Xn = ({
|
|
3855
3855
|
canTrack: e,
|
|
3856
3856
|
content: t
|
|
3857
|
-
}) => !(!(
|
|
3858
|
-
window.${
|
|
3859
|
-
window.${
|
|
3860
|
-
`,
|
|
3861
|
-
window.${
|
|
3862
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3863
|
-
)`,
|
|
3857
|
+
}) => !(!(J(t).length > 0) || !e || U()), Zn = (e) => e === "react" || e === "reactNative", Je = Zn(O), ei = () => `
|
|
3858
|
+
window.${ze} = ${Qn}
|
|
3859
|
+
window.${Ke} = ${Yn}
|
|
3860
|
+
`, ti = (e, t) => `
|
|
3861
|
+
window.${ze}(
|
|
3862
|
+
"${t}",${JSON.stringify(e)}, ${Je}
|
|
3863
|
+
)`, ni = ({
|
|
3864
3864
|
contentId: e,
|
|
3865
3865
|
variationId: t
|
|
3866
|
-
}) => `window.${
|
|
3867
|
-
"${t}", "${e}", ${
|
|
3866
|
+
}) => `window.${Ke}(
|
|
3867
|
+
"${t}", "${e}", ${Je}
|
|
3868
3868
|
)`;
|
|
3869
|
-
function
|
|
3869
|
+
function we(e) {
|
|
3870
3870
|
return Math.round(e * 1e3) / 1e3;
|
|
3871
3871
|
}
|
|
3872
|
-
const
|
|
3872
|
+
const ii = (e, t, n = !0) => {
|
|
3873
3873
|
if (!(e instanceof HTMLElement))
|
|
3874
3874
|
return null;
|
|
3875
3875
|
let i = n ? e : e.parentElement;
|
|
@@ -3880,35 +3880,35 @@ const Zn = (e, t, n = !0) => {
|
|
|
3880
3880
|
return i;
|
|
3881
3881
|
} while (i = i.parentElement);
|
|
3882
3882
|
return null;
|
|
3883
|
-
},
|
|
3883
|
+
}, ai = (e) => ii(e, (t) => {
|
|
3884
3884
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3885
3885
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3886
|
-
}),
|
|
3886
|
+
}), Ie = ({
|
|
3887
3887
|
event: e,
|
|
3888
3888
|
target: t
|
|
3889
3889
|
}) => {
|
|
3890
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r =
|
|
3890
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = we(i / n.width), o = we(a / n.height);
|
|
3891
3891
|
return {
|
|
3892
3892
|
x: r,
|
|
3893
3893
|
y: o
|
|
3894
3894
|
};
|
|
3895
|
-
},
|
|
3896
|
-
const t = e.target, n = t &&
|
|
3895
|
+
}, oi = (e) => {
|
|
3896
|
+
const t = e.target, n = t && ai(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3897
3897
|
return {
|
|
3898
3898
|
targetBuilderElement: i || void 0,
|
|
3899
3899
|
metadata: {
|
|
3900
|
-
targetOffset: t ?
|
|
3900
|
+
targetOffset: t ? Ie({
|
|
3901
3901
|
event: e,
|
|
3902
3902
|
target: t
|
|
3903
3903
|
}) : void 0,
|
|
3904
|
-
builderTargetOffset: n ?
|
|
3904
|
+
builderTargetOffset: n ? Ie({
|
|
3905
3905
|
event: e,
|
|
3906
3906
|
target: n
|
|
3907
3907
|
}) : void 0,
|
|
3908
3908
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3909
3909
|
}
|
|
3910
3910
|
};
|
|
3911
|
-
},
|
|
3911
|
+
}, ri = ["svelte", "qwik", "vue"], Ee = () => ri.includes(O) && ($() || Y()), li = (e) => {
|
|
3912
3912
|
var r, o;
|
|
3913
3913
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3914
3914
|
let a = "";
|
|
@@ -3934,15 +3934,15 @@ font-weight: ${l};
|
|
|
3934
3934
|
`.trim());
|
|
3935
3935
|
}
|
|
3936
3936
|
return a;
|
|
3937
|
-
},
|
|
3937
|
+
}, si = ({
|
|
3938
3938
|
customFonts: e
|
|
3939
3939
|
}) => {
|
|
3940
3940
|
var t;
|
|
3941
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3942
|
-
},
|
|
3941
|
+
return ((t = e == null ? void 0 : e.map((n) => li(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3942
|
+
}, ci = ({
|
|
3943
3943
|
cssCode: e,
|
|
3944
3944
|
contentId: t
|
|
3945
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3945
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ui = `
|
|
3946
3946
|
.builder-button {
|
|
3947
3947
|
all: unset;
|
|
3948
3948
|
}
|
|
@@ -3959,24 +3959,25 @@ font-weight: ${l};
|
|
|
3959
3959
|
text-align: inherit;
|
|
3960
3960
|
font-family: inherit;
|
|
3961
3961
|
}
|
|
3962
|
-
`,
|
|
3963
|
-
function
|
|
3964
|
-
var
|
|
3965
|
-
const t =
|
|
3962
|
+
`, di = (e) => e ? "" : ui, mi = (e) => `variant-${e}`;
|
|
3963
|
+
function fi(e) {
|
|
3964
|
+
var k, C, V;
|
|
3965
|
+
const t = L(null);
|
|
3966
|
+
I(() => !1);
|
|
3966
3967
|
function n(w) {
|
|
3967
3968
|
var m, p;
|
|
3968
|
-
const
|
|
3969
|
+
const x = {
|
|
3969
3970
|
...e.builderContextSignal.rootState,
|
|
3970
3971
|
...w
|
|
3971
3972
|
};
|
|
3972
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
3973
|
-
...
|
|
3974
|
-
rootState:
|
|
3973
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
|
|
3974
|
+
...T,
|
|
3975
|
+
rootState: x
|
|
3975
3976
|
}));
|
|
3976
3977
|
}
|
|
3977
3978
|
function i(w) {
|
|
3978
|
-
var m, p,
|
|
3979
|
-
const
|
|
3979
|
+
var m, p, T, E, A;
|
|
3980
|
+
const x = {
|
|
3980
3981
|
...e.builderContextSignal.content,
|
|
3981
3982
|
...w,
|
|
3982
3983
|
data: {
|
|
@@ -3986,12 +3987,12 @@ function ci(e) {
|
|
|
3986
3987
|
meta: {
|
|
3987
3988
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3988
3989
|
...w == null ? void 0 : w.meta,
|
|
3989
|
-
breakpoints: ((
|
|
3990
|
+
breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((A = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : A.breakpoints)
|
|
3990
3991
|
}
|
|
3991
3992
|
};
|
|
3992
|
-
e.setBuilderContextSignal((
|
|
3993
|
-
...
|
|
3994
|
-
content:
|
|
3993
|
+
e.setBuilderContextSignal((N) => ({
|
|
3994
|
+
...N,
|
|
3995
|
+
content: x
|
|
3995
3996
|
}));
|
|
3996
3997
|
}
|
|
3997
3998
|
function a() {
|
|
@@ -4000,62 +4001,65 @@ function ci(e) {
|
|
|
4000
4001
|
"aria-hidden": !0
|
|
4001
4002
|
};
|
|
4002
4003
|
}
|
|
4003
|
-
const [r, o] =
|
|
4004
|
+
const [r, o] = I(
|
|
4004
4005
|
() => e.contentWrapper || "div"
|
|
4005
4006
|
);
|
|
4006
4007
|
function l(w) {
|
|
4007
|
-
return
|
|
4008
|
+
return Ze({
|
|
4008
4009
|
model: e.model,
|
|
4009
4010
|
trustedHosts: e.trustedHosts,
|
|
4010
4011
|
callbacks: {
|
|
4011
|
-
configureSdk: (
|
|
4012
|
-
var
|
|
4013
|
-
const { breakpoints: m, contentId: p } =
|
|
4014
|
-
!p || p !== ((
|
|
4012
|
+
configureSdk: (x) => {
|
|
4013
|
+
var T;
|
|
4014
|
+
const { breakpoints: m, contentId: p } = x;
|
|
4015
|
+
!p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
|
|
4015
4016
|
meta: {
|
|
4016
4017
|
breakpoints: m
|
|
4017
4018
|
}
|
|
4018
4019
|
});
|
|
4019
4020
|
},
|
|
4020
|
-
animation: (
|
|
4021
|
-
|
|
4021
|
+
animation: (x) => {
|
|
4022
|
+
Oe(x);
|
|
4023
|
+
},
|
|
4024
|
+
contentUpdate: (x) => {
|
|
4025
|
+
i(x);
|
|
4022
4026
|
},
|
|
4023
|
-
|
|
4024
|
-
|
|
4027
|
+
stateUpdate: (x) => {
|
|
4028
|
+
n(x);
|
|
4025
4029
|
}
|
|
4026
4030
|
}
|
|
4027
4031
|
})(w);
|
|
4028
4032
|
}
|
|
4029
|
-
const [d, c] =
|
|
4033
|
+
const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
|
|
4030
4034
|
function f(w) {
|
|
4031
|
-
var
|
|
4035
|
+
var x, m;
|
|
4032
4036
|
if (e.builderContextSignal.content) {
|
|
4033
|
-
const p = (
|
|
4034
|
-
|
|
4037
|
+
const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4038
|
+
pe({
|
|
4035
4039
|
apiHost: e.apiHost,
|
|
4036
4040
|
type: "click",
|
|
4037
|
-
canTrack:
|
|
4038
|
-
contentId:
|
|
4041
|
+
canTrack: M(e.canTrack),
|
|
4042
|
+
contentId: T,
|
|
4039
4043
|
apiKey: e.apiKey,
|
|
4040
|
-
variationId: p !==
|
|
4041
|
-
...
|
|
4044
|
+
variationId: p !== T ? p : void 0,
|
|
4045
|
+
...oi(w),
|
|
4042
4046
|
unique: !u
|
|
4043
4047
|
});
|
|
4044
4048
|
}
|
|
4045
4049
|
u || v(!0);
|
|
4046
4050
|
}
|
|
4047
4051
|
function g() {
|
|
4048
|
-
var
|
|
4049
|
-
const w = (p = (m = (
|
|
4050
|
-
Object.entries(w).forEach(([
|
|
4051
|
-
if (!
|
|
4052
|
+
var x, m, p;
|
|
4053
|
+
const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4054
|
+
Object.entries(w).forEach(([T, E]) => {
|
|
4055
|
+
if (!E || h[T] || d[T] && !$())
|
|
4052
4056
|
return;
|
|
4053
|
-
h[
|
|
4054
|
-
const
|
|
4057
|
+
h[T] = !0;
|
|
4058
|
+
const A = E.replace(
|
|
4055
4059
|
/{{([^}]+)}}/g,
|
|
4056
|
-
(
|
|
4057
|
-
|
|
4058
|
-
code:
|
|
4060
|
+
(N, W) => String(
|
|
4061
|
+
_({
|
|
4062
|
+
code: W,
|
|
4059
4063
|
context: e.context || {},
|
|
4060
4064
|
localState: void 0,
|
|
4061
4065
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4063,24 +4067,24 @@ function ci(e) {
|
|
|
4063
4067
|
})
|
|
4064
4068
|
)
|
|
4065
4069
|
);
|
|
4066
|
-
|
|
4070
|
+
Ve(A), fetch(A).then((N) => N.json()).then((N) => {
|
|
4067
4071
|
n({
|
|
4068
|
-
[
|
|
4069
|
-
}), d[
|
|
4070
|
-
}).catch((
|
|
4071
|
-
console.error("error fetching dynamic data",
|
|
4072
|
+
[T]: N
|
|
4073
|
+
}), d[T] = !0;
|
|
4074
|
+
}).catch((N) => {
|
|
4075
|
+
console.error("error fetching dynamic data", E, N);
|
|
4072
4076
|
}).finally(() => {
|
|
4073
|
-
h[
|
|
4077
|
+
h[T] = !1;
|
|
4074
4078
|
});
|
|
4075
4079
|
});
|
|
4076
4080
|
}
|
|
4077
|
-
function
|
|
4078
|
-
|
|
4081
|
+
function S() {
|
|
4082
|
+
$() && window.dispatchEvent(
|
|
4079
4083
|
new CustomEvent(
|
|
4080
4084
|
"builder:component:stateChange",
|
|
4081
4085
|
{
|
|
4082
4086
|
detail: {
|
|
4083
|
-
state:
|
|
4087
|
+
state: ue(e.builderContextSignal.rootState),
|
|
4084
4088
|
ref: {
|
|
4085
4089
|
name: e.model
|
|
4086
4090
|
}
|
|
@@ -4089,11 +4093,11 @@ function ci(e) {
|
|
|
4089
4093
|
)
|
|
4090
4094
|
);
|
|
4091
4095
|
}
|
|
4092
|
-
const b =
|
|
4093
|
-
return b.current || (g(),
|
|
4094
|
-
var w,
|
|
4095
|
-
if (
|
|
4096
|
-
|
|
4096
|
+
const b = L(!1);
|
|
4097
|
+
return b.current || (g(), S(), b.current = !0), P(() => {
|
|
4098
|
+
var w, x, m, p, T;
|
|
4099
|
+
if (U()) {
|
|
4100
|
+
$() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
|
|
4097
4101
|
...e.locale ? {
|
|
4098
4102
|
locale: e.locale
|
|
4099
4103
|
} : {},
|
|
@@ -4107,71 +4111,76 @@ function ci(e) {
|
|
|
4107
4111
|
apiKey: e.apiKey
|
|
4108
4112
|
}), Object.values(
|
|
4109
4113
|
e.builderContextSignal.componentInfos
|
|
4110
|
-
).forEach((
|
|
4111
|
-
var
|
|
4112
|
-
if (!((
|
|
4113
|
-
const
|
|
4114
|
-
(
|
|
4114
|
+
).forEach((W) => {
|
|
4115
|
+
var F, K;
|
|
4116
|
+
if (!((F = W.models) != null && F.length) || W.models.includes(e.model)) {
|
|
4117
|
+
const ee = Ye(W);
|
|
4118
|
+
(K = window.parent) == null || K.postMessage(ee, "*");
|
|
4115
4119
|
}
|
|
4116
4120
|
}), window.addEventListener(
|
|
4117
4121
|
"builder:component:stateChangeListenerActivated",
|
|
4118
|
-
|
|
4119
|
-
))
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
+
S
|
|
4123
|
+
));
|
|
4124
|
+
const E = e.builderContextSignal.content && M(e.canTrack), A = Xe({
|
|
4125
|
+
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4126
|
+
canTrack: !0
|
|
4127
|
+
}), N = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
4128
|
+
if (E && N === A) {
|
|
4129
|
+
const W = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
|
|
4130
|
+
pe({
|
|
4122
4131
|
apiHost: e.apiHost,
|
|
4123
4132
|
type: "impression",
|
|
4124
4133
|
canTrack: !0,
|
|
4125
|
-
contentId:
|
|
4126
|
-
apiKey:
|
|
4127
|
-
variationId:
|
|
4134
|
+
contentId: W,
|
|
4135
|
+
apiKey: F,
|
|
4136
|
+
variationId: A !== W ? A : void 0
|
|
4128
4137
|
});
|
|
4129
4138
|
}
|
|
4130
|
-
if (
|
|
4131
|
-
const
|
|
4132
|
-
`builder.overrides.${
|
|
4133
|
-
),
|
|
4134
|
-
(
|
|
4139
|
+
if (Y() && !$()) {
|
|
4140
|
+
const W = new URL(location.href).searchParams, F = W.get("builder.preview"), K = W.get(
|
|
4141
|
+
`builder.overrides.${F}`
|
|
4142
|
+
), ee = W.get("apiKey") || W.get("builder.space");
|
|
4143
|
+
(F === "BUILDER_STUDIO" || F === e.model && ee === e.apiKey && (!e.content || K === e.content.id)) && Pe({
|
|
4135
4144
|
model: e.model,
|
|
4136
4145
|
apiKey: e.apiKey,
|
|
4137
4146
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4138
|
-
...
|
|
4147
|
+
...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
|
|
4139
4148
|
query: {
|
|
4140
4149
|
id: e.context.symbolId
|
|
4141
4150
|
}
|
|
4142
4151
|
} : {}
|
|
4143
|
-
}).then((
|
|
4144
|
-
|
|
4152
|
+
}).then((ge) => {
|
|
4153
|
+
ge && i(ge);
|
|
4145
4154
|
});
|
|
4146
4155
|
}
|
|
4147
4156
|
}
|
|
4148
|
-
}, []),
|
|
4157
|
+
}, []), P(() => {
|
|
4149
4158
|
e.content && i(e.content);
|
|
4150
|
-
}, [e.content]),
|
|
4151
|
-
|
|
4152
|
-
}, [e.builderContextSignal.rootState]),
|
|
4159
|
+
}, [e.content]), P(() => {
|
|
4160
|
+
S();
|
|
4161
|
+
}, [e.builderContextSignal.rootState]), P(() => {
|
|
4153
4162
|
e.data && n(e.data);
|
|
4154
|
-
}, [e.data]),
|
|
4163
|
+
}, [e.data]), P(() => {
|
|
4155
4164
|
e.locale && n({
|
|
4156
4165
|
locale: e.locale
|
|
4157
4166
|
});
|
|
4158
|
-
}, [e.locale]),
|
|
4159
|
-
|
|
4167
|
+
}, [e.locale]), P(() => () => {
|
|
4168
|
+
U() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4160
4169
|
"builder:component:stateChangeListenerActivated",
|
|
4161
|
-
|
|
4170
|
+
S
|
|
4162
4171
|
));
|
|
4163
|
-
}, []), /* @__PURE__ */ s(
|
|
4172
|
+
}, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ee() ? /* @__PURE__ */ s(
|
|
4164
4173
|
r,
|
|
4165
4174
|
{
|
|
4166
4175
|
ref: t,
|
|
4167
4176
|
onClick: (w) => f(w),
|
|
4168
|
-
"builder-content-id": (
|
|
4177
|
+
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4169
4178
|
"builder-model": e.model,
|
|
4170
|
-
className:
|
|
4179
|
+
className: mi(
|
|
4171
4180
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((V = e.content) == null ? void 0 : V.id)
|
|
4172
4181
|
),
|
|
4173
4182
|
style: {
|
|
4174
|
-
display: !e.builderContextSignal.content &&
|
|
4183
|
+
display: !e.builderContextSignal.content && Ee() ? "none" : void 0
|
|
4175
4184
|
},
|
|
4176
4185
|
...a(),
|
|
4177
4186
|
...e.contentWrapperProps,
|
|
@@ -4179,21 +4188,21 @@ function ci(e) {
|
|
|
4179
4188
|
}
|
|
4180
4189
|
) : null });
|
|
4181
4190
|
}
|
|
4182
|
-
function
|
|
4183
|
-
const [t, n] =
|
|
4191
|
+
function hi(e) {
|
|
4192
|
+
const [t, n] = I(
|
|
4184
4193
|
() => `
|
|
4185
|
-
${
|
|
4194
|
+
${ci({
|
|
4186
4195
|
cssCode: e.cssCode,
|
|
4187
4196
|
contentId: e.contentId
|
|
4188
4197
|
})}
|
|
4189
|
-
${
|
|
4198
|
+
${si({
|
|
4190
4199
|
customFonts: e.customFonts
|
|
4191
4200
|
})}
|
|
4192
|
-
${
|
|
4201
|
+
${di(e.isNestedRender)}
|
|
4193
4202
|
`.trim()
|
|
4194
4203
|
);
|
|
4195
4204
|
return /* @__PURE__ */ s(
|
|
4196
|
-
|
|
4205
|
+
z,
|
|
4197
4206
|
{
|
|
4198
4207
|
id: "builderio-content",
|
|
4199
4208
|
styles: t,
|
|
@@ -4201,7 +4210,7 @@ ${li(e.isNestedRender)}
|
|
|
4201
4210
|
}
|
|
4202
4211
|
);
|
|
4203
4212
|
}
|
|
4204
|
-
const
|
|
4213
|
+
const gi = ({
|
|
4205
4214
|
content: e,
|
|
4206
4215
|
data: t,
|
|
4207
4216
|
locale: n
|
|
@@ -4218,7 +4227,7 @@ const di = ({
|
|
|
4218
4227
|
locale: n
|
|
4219
4228
|
} : {}
|
|
4220
4229
|
};
|
|
4221
|
-
},
|
|
4230
|
+
}, bi = ({
|
|
4222
4231
|
content: e,
|
|
4223
4232
|
data: t
|
|
4224
4233
|
}) => e ? {
|
|
@@ -4229,46 +4238,46 @@ const di = ({
|
|
|
4229
4238
|
},
|
|
4230
4239
|
meta: e == null ? void 0 : e.meta
|
|
4231
4240
|
} : void 0;
|
|
4232
|
-
function
|
|
4233
|
-
var c, h, y, u, v, f, g,
|
|
4234
|
-
const [t, n] =
|
|
4241
|
+
function Re(e) {
|
|
4242
|
+
var c, h, y, u, v, f, g, S, b;
|
|
4243
|
+
const [t, n] = I(
|
|
4235
4244
|
() => {
|
|
4236
|
-
var
|
|
4237
|
-
return
|
|
4245
|
+
var k, C;
|
|
4246
|
+
return ni({
|
|
4238
4247
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4239
|
-
variationId: (
|
|
4248
|
+
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4240
4249
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4241
4250
|
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4242
4251
|
});
|
|
4243
4252
|
}
|
|
4244
4253
|
);
|
|
4245
|
-
function i(
|
|
4254
|
+
function i(k) {
|
|
4246
4255
|
l((C) => ({
|
|
4247
4256
|
...C,
|
|
4248
|
-
rootState:
|
|
4257
|
+
rootState: k
|
|
4249
4258
|
}));
|
|
4250
4259
|
}
|
|
4251
|
-
const [a, r] =
|
|
4260
|
+
const [a, r] = I(
|
|
4252
4261
|
() => [
|
|
4253
|
-
...
|
|
4262
|
+
...Te(),
|
|
4254
4263
|
...e.customComponents || []
|
|
4255
4264
|
].reduce(
|
|
4256
|
-
(
|
|
4257
|
-
...
|
|
4265
|
+
(k, { component: C, ...V }) => ({
|
|
4266
|
+
...k,
|
|
4258
4267
|
[V.name]: {
|
|
4259
4268
|
component: C,
|
|
4260
|
-
...
|
|
4269
|
+
...ye(V)
|
|
4261
4270
|
}
|
|
4262
4271
|
}),
|
|
4263
4272
|
{}
|
|
4264
4273
|
)
|
|
4265
|
-
), [o, l] =
|
|
4266
|
-
content:
|
|
4274
|
+
), [o, l] = I(() => ({
|
|
4275
|
+
content: bi({
|
|
4267
4276
|
content: e.content,
|
|
4268
4277
|
data: e.data
|
|
4269
4278
|
}),
|
|
4270
4279
|
localState: void 0,
|
|
4271
|
-
rootState:
|
|
4280
|
+
rootState: gi({
|
|
4272
4281
|
content: e.content,
|
|
4273
4282
|
data: e.data,
|
|
4274
4283
|
locale: e.locale
|
|
@@ -4279,12 +4288,12 @@ function we(e) {
|
|
|
4279
4288
|
apiKey: e.apiKey,
|
|
4280
4289
|
apiVersion: e.apiVersion,
|
|
4281
4290
|
componentInfos: [
|
|
4282
|
-
...
|
|
4291
|
+
...Te(),
|
|
4283
4292
|
...e.customComponents || []
|
|
4284
4293
|
].reduce(
|
|
4285
|
-
(
|
|
4286
|
-
...
|
|
4287
|
-
[V.name]:
|
|
4294
|
+
(k, { component: C, ...V }) => ({
|
|
4295
|
+
...k,
|
|
4296
|
+
[V.name]: ye(V)
|
|
4288
4297
|
}),
|
|
4289
4298
|
{}
|
|
4290
4299
|
),
|
|
@@ -4293,14 +4302,14 @@ function we(e) {
|
|
|
4293
4302
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4294
4303
|
nonce: e.nonce || "",
|
|
4295
4304
|
model: e.model
|
|
4296
|
-
})), d =
|
|
4305
|
+
})), d = L(!1);
|
|
4297
4306
|
if (!d.current) {
|
|
4298
|
-
e.apiKey ||
|
|
4307
|
+
e.apiKey || ce.error(
|
|
4299
4308
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4300
4309
|
);
|
|
4301
|
-
const
|
|
4302
|
-
|
|
4303
|
-
code:
|
|
4310
|
+
const k = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4311
|
+
k && _({
|
|
4312
|
+
code: k,
|
|
4304
4313
|
context: e.context || {},
|
|
4305
4314
|
localState: void 0,
|
|
4306
4315
|
rootState: o.rootState,
|
|
@@ -4311,13 +4320,13 @@ function we(e) {
|
|
|
4311
4320
|
}), d.current = !0;
|
|
4312
4321
|
}
|
|
4313
4322
|
return /* @__PURE__ */ s(
|
|
4314
|
-
|
|
4323
|
+
We.Provider,
|
|
4315
4324
|
{
|
|
4316
4325
|
value: {
|
|
4317
4326
|
registeredComponents: a
|
|
4318
4327
|
},
|
|
4319
|
-
children: /* @__PURE__ */
|
|
4320
|
-
|
|
4328
|
+
children: /* @__PURE__ */ B(
|
|
4329
|
+
fi,
|
|
4321
4330
|
{
|
|
4322
4331
|
apiHost: e.apiHost,
|
|
4323
4332
|
nonce: e.nonce,
|
|
@@ -4338,7 +4347,7 @@ function we(e) {
|
|
|
4338
4347
|
setBuilderContextSignal: l,
|
|
4339
4348
|
children: [
|
|
4340
4349
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4341
|
-
|
|
4350
|
+
Q,
|
|
4342
4351
|
{
|
|
4343
4352
|
id: "builderio-variant-visibility",
|
|
4344
4353
|
scriptStr: t,
|
|
@@ -4346,7 +4355,7 @@ function we(e) {
|
|
|
4346
4355
|
}
|
|
4347
4356
|
) : null,
|
|
4348
4357
|
/* @__PURE__ */ s(
|
|
4349
|
-
|
|
4358
|
+
hi,
|
|
4350
4359
|
{
|
|
4351
4360
|
nonce: e.nonce || "",
|
|
4352
4361
|
isNestedRender: e.isNestedRender,
|
|
@@ -4356,9 +4365,9 @@ function we(e) {
|
|
|
4356
4365
|
}
|
|
4357
4366
|
),
|
|
4358
4367
|
/* @__PURE__ */ s(
|
|
4359
|
-
|
|
4368
|
+
D,
|
|
4360
4369
|
{
|
|
4361
|
-
blocks: (b = (
|
|
4370
|
+
blocks: (b = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
|
|
4362
4371
|
context: o,
|
|
4363
4372
|
registeredComponents: a,
|
|
4364
4373
|
linkComponent: e.linkComponent
|
|
@@ -4370,18 +4379,18 @@ function we(e) {
|
|
|
4370
4379
|
}
|
|
4371
4380
|
);
|
|
4372
4381
|
}
|
|
4373
|
-
function
|
|
4382
|
+
function pi(e) {
|
|
4374
4383
|
var o;
|
|
4375
|
-
const [t, n] =
|
|
4376
|
-
() =>
|
|
4377
|
-
canTrack:
|
|
4384
|
+
const [t, n] = I(
|
|
4385
|
+
() => Xn({
|
|
4386
|
+
canTrack: M(e.canTrack),
|
|
4378
4387
|
content: e.content
|
|
4379
4388
|
})
|
|
4380
4389
|
);
|
|
4381
4390
|
function i() {
|
|
4382
4391
|
var l;
|
|
4383
|
-
return
|
|
4384
|
-
|
|
4392
|
+
return ti(
|
|
4393
|
+
J(e.content).map((d) => ({
|
|
4385
4394
|
id: d.testVariationId,
|
|
4386
4395
|
testRatio: d.testRatio
|
|
4387
4396
|
})),
|
|
@@ -4389,31 +4398,31 @@ function fi(e) {
|
|
|
4389
4398
|
);
|
|
4390
4399
|
}
|
|
4391
4400
|
function a() {
|
|
4392
|
-
return
|
|
4401
|
+
return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4393
4402
|
}
|
|
4394
4403
|
function r() {
|
|
4395
4404
|
var l;
|
|
4396
4405
|
return t ? {
|
|
4397
4406
|
...e.content,
|
|
4398
4407
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4399
|
-
} :
|
|
4408
|
+
} : et({
|
|
4400
4409
|
item: e.content,
|
|
4401
|
-
canTrack:
|
|
4410
|
+
canTrack: M(e.canTrack)
|
|
4402
4411
|
});
|
|
4403
4412
|
}
|
|
4404
|
-
return
|
|
4405
|
-
}, []), /* @__PURE__ */
|
|
4406
|
-
!e.isNestedRender &&
|
|
4407
|
-
|
|
4413
|
+
return P(() => {
|
|
4414
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
4415
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4416
|
+
Q,
|
|
4408
4417
|
{
|
|
4409
4418
|
id: "builderio-init-variants-fns",
|
|
4410
|
-
scriptStr:
|
|
4419
|
+
scriptStr: ei(),
|
|
4411
4420
|
nonce: e.nonce || ""
|
|
4412
4421
|
}
|
|
4413
4422
|
) : null,
|
|
4414
|
-
t ? /* @__PURE__ */
|
|
4423
|
+
t ? /* @__PURE__ */ B(R, { children: [
|
|
4415
4424
|
/* @__PURE__ */ s(
|
|
4416
|
-
|
|
4425
|
+
z,
|
|
4417
4426
|
{
|
|
4418
4427
|
id: "builderio-variants",
|
|
4419
4428
|
styles: a(),
|
|
@@ -4421,15 +4430,15 @@ function fi(e) {
|
|
|
4421
4430
|
}
|
|
4422
4431
|
),
|
|
4423
4432
|
/* @__PURE__ */ s(
|
|
4424
|
-
|
|
4433
|
+
Q,
|
|
4425
4434
|
{
|
|
4426
4435
|
id: "builderio-variants-visibility",
|
|
4427
4436
|
scriptStr: i(),
|
|
4428
4437
|
nonce: e.nonce || ""
|
|
4429
4438
|
}
|
|
4430
4439
|
),
|
|
4431
|
-
(o =
|
|
4432
|
-
|
|
4440
|
+
(o = J(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4441
|
+
Re,
|
|
4433
4442
|
{
|
|
4434
4443
|
apiHost: e.apiHost,
|
|
4435
4444
|
isNestedRender: e.isNestedRender,
|
|
@@ -4457,7 +4466,7 @@ function fi(e) {
|
|
|
4457
4466
|
))
|
|
4458
4467
|
] }) : null,
|
|
4459
4468
|
/* @__PURE__ */ s(
|
|
4460
|
-
|
|
4469
|
+
Re,
|
|
4461
4470
|
{
|
|
4462
4471
|
apiHost: e.apiHost,
|
|
4463
4472
|
nonce: e.nonce,
|
|
@@ -4484,13 +4493,13 @@ function fi(e) {
|
|
|
4484
4493
|
)
|
|
4485
4494
|
] });
|
|
4486
4495
|
}
|
|
4487
|
-
const
|
|
4496
|
+
const yi = async ({
|
|
4488
4497
|
builderContextValue: e,
|
|
4489
4498
|
symbol: t
|
|
4490
4499
|
}) => {
|
|
4491
4500
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4492
4501
|
(e != null && e.apiKey))
|
|
4493
|
-
return
|
|
4502
|
+
return Pe({
|
|
4494
4503
|
model: t.model,
|
|
4495
4504
|
apiKey: e.apiKey,
|
|
4496
4505
|
apiVersion: e.apiVersion,
|
|
@@ -4500,10 +4509,10 @@ const hi = async ({
|
|
|
4500
4509
|
}
|
|
4501
4510
|
}
|
|
4502
4511
|
}).catch((n) => {
|
|
4503
|
-
|
|
4512
|
+
ce.error("Could not fetch symbol content: ", n);
|
|
4504
4513
|
});
|
|
4505
4514
|
};
|
|
4506
|
-
function
|
|
4515
|
+
function vi(e) {
|
|
4507
4516
|
var l, d, c, h, y;
|
|
4508
4517
|
function t() {
|
|
4509
4518
|
return "div";
|
|
@@ -4514,29 +4523,29 @@ function gi(e) {
|
|
|
4514
4523
|
function i() {
|
|
4515
4524
|
var u, v;
|
|
4516
4525
|
return [
|
|
4517
|
-
e.attributes[
|
|
4526
|
+
e.attributes[j()],
|
|
4518
4527
|
"builder-symbol",
|
|
4519
4528
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4520
4529
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4521
4530
|
].filter(Boolean).join(" ");
|
|
4522
4531
|
}
|
|
4523
|
-
const [a, r] =
|
|
4532
|
+
const [a, r] = I(() => {
|
|
4524
4533
|
var u;
|
|
4525
4534
|
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4526
4535
|
});
|
|
4527
4536
|
function o() {
|
|
4528
|
-
a ||
|
|
4537
|
+
a || yi({
|
|
4529
4538
|
symbol: e.symbol,
|
|
4530
4539
|
builderContextValue: e.builderContext
|
|
4531
4540
|
}).then((u) => {
|
|
4532
4541
|
u && r(u);
|
|
4533
4542
|
});
|
|
4534
4543
|
}
|
|
4535
|
-
return
|
|
4536
|
-
}, []),
|
|
4544
|
+
return P(() => {
|
|
4545
|
+
}, []), P(() => {
|
|
4537
4546
|
o();
|
|
4538
4547
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4539
|
-
|
|
4548
|
+
pi,
|
|
4540
4549
|
{
|
|
4541
4550
|
nonce: e.builderContext.nonce,
|
|
4542
4551
|
isNestedRender: !0,
|
|
@@ -4562,16 +4571,16 @@ function gi(e) {
|
|
|
4562
4571
|
) });
|
|
4563
4572
|
}
|
|
4564
4573
|
export {
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
|
|
4574
|
+
D as Blocks,
|
|
4575
|
+
me as BuilderContext,
|
|
4576
|
+
ut as Button,
|
|
4577
|
+
Yt as Columns,
|
|
4578
|
+
pi as Content,
|
|
4579
|
+
Xt as Fragment,
|
|
4580
|
+
tn as Image,
|
|
4581
|
+
nn as Section,
|
|
4582
|
+
vi as Symbol,
|
|
4583
|
+
In as Text,
|
|
4584
|
+
Jn as Video,
|
|
4585
|
+
Ei as setClientUserAttributes
|
|
4577
4586
|
};
|