@builder.io/sdk-react 2.0.28 → 2.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +18 -18
- package/lib/browser/blocks-exports.mjs +819 -814
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-ffd47885.js → server-entry-d133a206.js} +104 -95
- package/lib/browser/server-entry-d4ea1a12.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-616460c1.js → accordion-359367e6.js} +5 -3
- package/lib/edge/{accordion-7ef6a928.cjs → accordion-93512a19.cjs} +1 -1
- package/lib/edge/{blocks-896a56b0.cjs → blocks-44a0617b.cjs} +3 -3
- package/lib/edge/{blocks-dd91ae28.js → blocks-d7ba8f6a.js} +63 -57
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-1fa8b647.cjs → button-0ae65c1d.cjs} +1 -1
- package/lib/edge/{button-f917a1c0.js → button-ae26a553.js} +2 -2
- package/lib/edge/{columns-dacb342b.js → columns-957c0468.js} +20 -20
- package/lib/edge/{columns-5756d7b8.cjs → columns-f7da8908.cjs} +3 -3
- package/lib/edge/{content-variants-afc4a718.cjs → content-variants-9bb0b7e9.cjs} +4 -4
- package/lib/edge/{content-variants-cd80b703.js → content-variants-d8a859a2.js} +118 -118
- package/lib/edge/{evaluate-2fcda9ec.cjs → evaluate-21c48a1d.cjs} +1 -1
- package/lib/edge/{evaluate-17c2cadd.js → evaluate-8e8c9fec.js} +1 -1
- package/lib/edge/form-0b09120c.cjs +1 -0
- package/lib/edge/{form-dc7f56c9.js → form-68fc4d5a.js} +30 -33
- package/lib/edge/{get-class-prop-name-5437ca23.js → get-class-prop-name-a6f0f92d.js} +1 -1
- package/lib/edge/{get-class-prop-name-2ce20e98.cjs → get-class-prop-name-ffeda28e.cjs} +1 -1
- package/lib/edge/{img-35a1343f.cjs → img-89e32a84.cjs} +1 -1
- package/lib/edge/{img-d187da14.js → img-912b190b.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-9a6498fd.cjs → input-5ff8ae2e.cjs} +1 -1
- package/lib/edge/{input-38f565ce.js → input-96ba83eb.js} +1 -1
- package/lib/edge/{select-135b7397.cjs → select-5f5fed1c.cjs} +1 -1
- package/lib/edge/{select-6cb0b4b7.js → select-f66026e1.js} +1 -1
- package/lib/edge/{server-entry-216eb1bf.js → server-entry-e26008c1.js} +110 -101
- package/lib/edge/server-entry-f09ee4f4.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-d692126c.js → slot-d09faa0a.js} +4 -4
- package/lib/edge/{slot-b0728030.cjs → slot-d3473421.cjs} +1 -1
- package/lib/edge/{symbol-df30241a.js → symbol-285d196c.js} +2 -2
- package/lib/edge/{symbol-0ac2655e.cjs → symbol-ebccca9b.cjs} +1 -1
- package/lib/edge/{tabs-b925777d.js → tabs-39d86f86.js} +15 -15
- package/lib/edge/tabs-61c59e0f.cjs +1 -0
- package/lib/edge/{text-0f85a76c.cjs → text-40a616f5.cjs} +1 -1
- package/lib/edge/{text-337389ba.js → text-dce27428.js} +2 -2
- package/lib/node/blocks-exports.cjs +20 -20
- package/lib/node/blocks-exports.mjs +802 -797
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-8e901e75.cjs +2 -0
- package/lib/node/{server-entry-ca0dcb45.js → server-entry-c7147616.js} +104 -95
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-2100f4f5.js → setIvm-5ab140ad.js} +1 -1
- package/lib/node/{setIvm-2d47478e.cjs → setIvm-a85e255e.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-fd3ca2a8.cjs → should-force-browser-runtime-in-node-16ceec99.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-a77d7cfc.js → should-force-browser-runtime-in-node-1d3a044a.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/log-fetch.d.ts +1 -0
- package/lib/browser/server-entry-7260e494.cjs +0 -2
- package/lib/edge/form-efce5c78.cjs +0 -1
- package/lib/edge/server-entry-3e6518b6.cjs +0 -2
- package/lib/edge/tabs-47ed7dde.cjs +0 -1
- package/lib/node/server-entry-3e017173.cjs +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as D, isBrowser as
|
|
4
|
-
import { createContext as
|
|
5
|
-
import { getFunctionArguments as
|
|
6
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
2
|
+
import { jsx as s, Fragment as I, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isBrowser as q, logger as ie, checkIsDefined as ee, isPreviewing as ve, isEditing as N, logFetch as Se, registerInsertMenu as Oe, setupBrowserForEditing as Ue, createRegisterComponentMessage as He, getDefaultCanTrack as K, _track as se, fetchOneEntry as ke, createEditorListener as je, serializeIncludingFunctions as ce, handleABTestingSync as Me } from "./server-entry-c7147616.js";
|
|
4
|
+
import { createContext as Ce, useEffect as B, useState as R, useRef as $, useContext as de, createElement as Te } from "react";
|
|
5
|
+
import { getFunctionArguments as _e, flattenState as qe, runInNode as Ke, parseCode as ze, getBuilderGlobals as Je, set as Ie, fastClone as oe } from "./setIvm-5ab140ad.js";
|
|
6
|
+
import { shouldForceBrowserRuntimeInNode as Ge } from "./should-force-browser-runtime-in-node-1d3a044a.js";
|
|
7
|
+
const Ye = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ye.has(e.toLowerCase());
|
|
8
|
+
function ae(e) {
|
|
9
|
+
return /* @__PURE__ */ s(I, { children: Qe(e.TagName) ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(I, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
11
|
const U = () => {
|
|
12
12
|
switch (D) {
|
|
@@ -22,7 +22,7 @@ const U = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function Xe(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
@@ -36,8 +36,8 @@ function Qe(e) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
return /* @__PURE__ */
|
|
40
|
-
|
|
39
|
+
return /* @__PURE__ */ s(
|
|
40
|
+
ae,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function Qe(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const re = Ce({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -60,48 +60,48 @@ const ae = Se({
|
|
|
60
60
|
BlocksWrapper: "div",
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: ""
|
|
63
|
-
}),
|
|
64
|
-
function
|
|
63
|
+
}), we = Ce({ registeredComponents: {} });
|
|
64
|
+
function Ze(e) {
|
|
65
65
|
var t;
|
|
66
66
|
return {
|
|
67
67
|
...(t = e.component) == null ? void 0 : t.options,
|
|
68
68
|
...e.options
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function et(e, ...t) {
|
|
72
72
|
const n = Object.assign({}, e);
|
|
73
73
|
for (const i of t)
|
|
74
74
|
delete n[i];
|
|
75
75
|
return n;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
77
|
+
const Ee = (e, t, n) => {
|
|
78
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
79
79
|
return i === void 0 || i === e ? n : i;
|
|
80
|
-
},
|
|
80
|
+
}, tt = ({
|
|
81
81
|
code: e,
|
|
82
82
|
builder: t,
|
|
83
83
|
context: n,
|
|
84
84
|
event: i,
|
|
85
85
|
localState: o,
|
|
86
|
-
rootSetState:
|
|
87
|
-
rootState:
|
|
86
|
+
rootSetState: r,
|
|
87
|
+
rootState: a
|
|
88
88
|
}) => {
|
|
89
|
-
const
|
|
89
|
+
const l = _e({
|
|
90
90
|
builder: t,
|
|
91
91
|
context: n,
|
|
92
92
|
event: i,
|
|
93
|
-
state:
|
|
94
|
-
rootState:
|
|
93
|
+
state: qe({
|
|
94
|
+
rootState: a,
|
|
95
95
|
localState: o,
|
|
96
|
-
rootSetState:
|
|
96
|
+
rootSetState: r
|
|
97
97
|
})
|
|
98
98
|
});
|
|
99
|
-
return new Function(...
|
|
100
|
-
},
|
|
99
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
100
|
+
}, nt = (e) => q() || Ge({
|
|
101
101
|
shouldLogWarning: !0
|
|
102
|
-
}) ?
|
|
103
|
-
var t, n, i, o,
|
|
104
|
-
return ((i = (n = (t =
|
|
102
|
+
}) ? tt(e) : Ke(e), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
|
|
103
|
+
var t, n, i, o, r, a;
|
|
104
|
+
return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
105
105
|
};
|
|
106
106
|
function L({
|
|
107
107
|
code: e,
|
|
@@ -109,52 +109,52 @@ function L({
|
|
|
109
109
|
localState: n,
|
|
110
110
|
rootState: i,
|
|
111
111
|
rootSetState: o,
|
|
112
|
-
event:
|
|
113
|
-
isExpression:
|
|
112
|
+
event: r,
|
|
113
|
+
isExpression: a = !0
|
|
114
114
|
}) {
|
|
115
115
|
if (e.trim() === "")
|
|
116
116
|
return;
|
|
117
|
-
const
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
117
|
+
const l = at(e.trim());
|
|
118
|
+
if (l)
|
|
119
|
+
return Ee({
|
|
120
120
|
...i,
|
|
121
121
|
...n
|
|
122
|
-
},
|
|
122
|
+
}, l);
|
|
123
123
|
const d = {
|
|
124
|
-
code:
|
|
125
|
-
isExpression:
|
|
124
|
+
code: ze(e, {
|
|
125
|
+
isExpression: a
|
|
126
126
|
}),
|
|
127
|
-
builder:
|
|
127
|
+
builder: Je(),
|
|
128
128
|
context: t,
|
|
129
|
-
event:
|
|
129
|
+
event: r,
|
|
130
130
|
rootSetState: o,
|
|
131
131
|
rootState: i,
|
|
132
132
|
localState: n
|
|
133
133
|
};
|
|
134
134
|
try {
|
|
135
|
-
return
|
|
135
|
+
return nt(d);
|
|
136
136
|
} catch (c) {
|
|
137
|
-
|
|
137
|
+
ie.error("Failed code evaluation: " + c.message, {
|
|
138
138
|
code: e
|
|
139
139
|
});
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function te(e) {
|
|
144
144
|
if (e === null || typeof e != "object")
|
|
145
145
|
return e;
|
|
146
146
|
if (Array.isArray(e))
|
|
147
|
-
return e.map((n) =>
|
|
147
|
+
return e.map((n) => te(n));
|
|
148
148
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
149
149
|
return e;
|
|
150
150
|
const t = {};
|
|
151
151
|
for (const n in e)
|
|
152
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
152
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = te(e[n]));
|
|
153
153
|
return t;
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
if (
|
|
157
|
-
const t =
|
|
155
|
+
const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) => {
|
|
156
|
+
if (rt) {
|
|
157
|
+
const t = oe(e);
|
|
158
158
|
return {
|
|
159
159
|
...t,
|
|
160
160
|
properties: {
|
|
@@ -165,7 +165,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
} else {
|
|
168
|
-
const t =
|
|
168
|
+
const t = te(et(e, "children", "meta"));
|
|
169
169
|
return {
|
|
170
170
|
...t,
|
|
171
171
|
properties: {
|
|
@@ -178,7 +178,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
178
178
|
meta: e.meta
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
},
|
|
181
|
+
}, st = ({
|
|
182
182
|
block: e,
|
|
183
183
|
context: t,
|
|
184
184
|
localState: n,
|
|
@@ -187,47 +187,47 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), rt = (e) =
|
|
|
187
187
|
}) => {
|
|
188
188
|
if (!e.bindings)
|
|
189
189
|
return e;
|
|
190
|
-
const
|
|
191
|
-
for (const
|
|
192
|
-
const
|
|
193
|
-
code:
|
|
190
|
+
const r = lt(e);
|
|
191
|
+
for (const a in e.bindings) {
|
|
192
|
+
const l = e.bindings[a], d = L({
|
|
193
|
+
code: l,
|
|
194
194
|
localState: n,
|
|
195
195
|
rootState: i,
|
|
196
196
|
rootSetState: o,
|
|
197
197
|
context: t
|
|
198
198
|
});
|
|
199
|
-
|
|
199
|
+
Ie(r, a, d);
|
|
200
200
|
}
|
|
201
|
-
return
|
|
201
|
+
return r;
|
|
202
202
|
};
|
|
203
|
-
function
|
|
203
|
+
function ct({
|
|
204
204
|
block: e,
|
|
205
205
|
context: t,
|
|
206
206
|
shouldEvaluateBindings: n,
|
|
207
207
|
localState: i,
|
|
208
208
|
rootState: o,
|
|
209
|
-
rootSetState:
|
|
209
|
+
rootSetState: r
|
|
210
210
|
}) {
|
|
211
|
-
const
|
|
212
|
-
return n ?
|
|
213
|
-
block:
|
|
211
|
+
const a = e;
|
|
212
|
+
return n ? st({
|
|
213
|
+
block: a,
|
|
214
214
|
localState: i,
|
|
215
215
|
rootState: o,
|
|
216
|
-
rootSetState:
|
|
216
|
+
rootSetState: r,
|
|
217
217
|
context: t
|
|
218
|
-
}) :
|
|
218
|
+
}) : a;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
221
|
-
function
|
|
222
|
-
let i, o,
|
|
220
|
+
const z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
221
|
+
function dt(e, t, n = {}) {
|
|
222
|
+
let i, o, r, a = null, l = 0;
|
|
223
223
|
const d = function() {
|
|
224
|
-
|
|
224
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
225
225
|
};
|
|
226
226
|
return function() {
|
|
227
227
|
const c = Date.now();
|
|
228
|
-
!
|
|
229
|
-
const h = t - (c -
|
|
230
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
228
|
+
!l && n.leading === !1 && (l = c);
|
|
229
|
+
const h = t - (c - l);
|
|
230
|
+
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
function O(e, ...t) {
|
|
@@ -235,72 +235,72 @@ function O(e, ...t) {
|
|
|
235
235
|
for (let i = 1; i < arguments.length; i++) {
|
|
236
236
|
const o = arguments[i];
|
|
237
237
|
if (o != null)
|
|
238
|
-
for (const
|
|
239
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
238
|
+
for (const r in o)
|
|
239
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
240
240
|
}
|
|
241
241
|
return n;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function ut(e) {
|
|
244
244
|
for (const t of e)
|
|
245
245
|
switch (t.trigger) {
|
|
246
246
|
case "pageLoad":
|
|
247
|
-
|
|
247
|
+
Be(t);
|
|
248
248
|
break;
|
|
249
249
|
case "scrollInView":
|
|
250
|
-
|
|
250
|
+
ft(t);
|
|
251
251
|
break;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Re(e) {
|
|
255
255
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const n =
|
|
259
|
-
for (const
|
|
257
|
+
function Pe(e, t) {
|
|
258
|
+
const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
259
|
+
for (const l of a)
|
|
260
260
|
for (const d of n)
|
|
261
|
-
d in
|
|
261
|
+
d in l || (l[d] = i[d]);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function mt(e) {
|
|
264
264
|
const t = [];
|
|
265
265
|
for (const n of e.steps)
|
|
266
266
|
for (const i in n.styles)
|
|
267
267
|
t.indexOf(i) === -1 && t.push(i);
|
|
268
268
|
return t;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
270
|
+
function Be(e) {
|
|
271
271
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
272
272
|
if (!t.length) {
|
|
273
|
-
|
|
273
|
+
Re(e.elementId || e.id || "");
|
|
274
274
|
return;
|
|
275
275
|
}
|
|
276
276
|
Array.from(t).forEach((n) => {
|
|
277
|
-
|
|
278
|
-
n.style.transition = `all ${e.duration}s ${
|
|
277
|
+
Pe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", O(n.style, e.steps[0].styles), setTimeout(() => {
|
|
278
|
+
n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), O(n.style, e.steps[1].styles), setTimeout(() => {
|
|
279
279
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
280
280
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
281
281
|
});
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function ft(e) {
|
|
285
285
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
286
286
|
if (!t.length) {
|
|
287
|
-
|
|
287
|
+
Re(e.elementId || e.id || "");
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
Array.from(t).forEach((n) => {
|
|
291
|
-
|
|
291
|
+
Pe(e, n);
|
|
292
292
|
let i = !1, o = !1;
|
|
293
|
-
function
|
|
294
|
-
!i &&
|
|
295
|
-
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
293
|
+
function r() {
|
|
294
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
295
|
+
O(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
296
296
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
297
297
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
298
|
-
})) : e.repeat && i && !o && !
|
|
298
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, O(n.style, e.steps[0].styles));
|
|
299
299
|
}
|
|
300
|
-
const
|
|
300
|
+
const a = dt(r, 200, {
|
|
301
301
|
leading: !1
|
|
302
302
|
});
|
|
303
|
-
function
|
|
303
|
+
function l(h) {
|
|
304
304
|
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
305
305
|
return g.bottom > f && g.top < m - f;
|
|
306
306
|
}
|
|
@@ -309,49 +309,49 @@ function mt(e) {
|
|
|
309
309
|
O(n.style, d);
|
|
310
310
|
}
|
|
311
311
|
c(), setTimeout(() => {
|
|
312
|
-
n.style.transition = `all ${e.duration}s ${
|
|
313
|
-
}), document.addEventListener("scroll",
|
|
312
|
+
n.style.transition = `all ${e.duration}s ${z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
313
|
+
}), document.addEventListener("scroll", a, {
|
|
314
314
|
capture: !0,
|
|
315
315
|
passive: !0
|
|
316
|
-
}),
|
|
316
|
+
}), r();
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
const
|
|
319
|
+
const Ve = (e) => Object.entries(e).map(([n, i]) => {
|
|
320
320
|
if (typeof i == "string")
|
|
321
|
-
return `${
|
|
322
|
-
}).filter(
|
|
323
|
-
`),
|
|
321
|
+
return `${z(n)}: ${i};`;
|
|
322
|
+
}).filter(ee), ht = (e) => Ve(e).join(`
|
|
323
|
+
`), M = ({
|
|
324
324
|
mediaQuery: e,
|
|
325
325
|
className: t,
|
|
326
326
|
styles: n
|
|
327
327
|
}) => {
|
|
328
328
|
const i = `.${t} {
|
|
329
|
-
${
|
|
329
|
+
${ht(n)}
|
|
330
330
|
}`;
|
|
331
331
|
return e ? `${e} {
|
|
332
332
|
${i}
|
|
333
333
|
}` : i;
|
|
334
334
|
};
|
|
335
|
-
function
|
|
335
|
+
function gt({
|
|
336
336
|
style: e
|
|
337
337
|
}) {
|
|
338
338
|
return e;
|
|
339
339
|
}
|
|
340
|
-
const
|
|
340
|
+
const bt = ({
|
|
341
341
|
block: e,
|
|
342
342
|
context: t
|
|
343
|
-
}) =>
|
|
343
|
+
}) => Ae(gt({
|
|
344
344
|
style: e.style || {},
|
|
345
345
|
context: t,
|
|
346
346
|
block: e
|
|
347
347
|
}));
|
|
348
|
-
function
|
|
348
|
+
function Ae(e) {
|
|
349
349
|
switch (D) {
|
|
350
350
|
case "svelte":
|
|
351
351
|
case "vue":
|
|
352
352
|
case "solid":
|
|
353
353
|
case "angular":
|
|
354
|
-
return
|
|
354
|
+
return Ve(e).join(" ");
|
|
355
355
|
case "qwik":
|
|
356
356
|
case "reactNative":
|
|
357
357
|
case "react":
|
|
@@ -359,7 +359,7 @@ function Be(e) {
|
|
|
359
359
|
return e;
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const pt = ({
|
|
363
363
|
block: e,
|
|
364
364
|
registeredComponents: t
|
|
365
365
|
}) => {
|
|
@@ -373,7 +373,7 @@ const bt = ({
|
|
|
373
373
|
console.warn(`
|
|
374
374
|
Could not find a registered component named "${n}".
|
|
375
375
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
376
|
-
},
|
|
376
|
+
}, yt = ({
|
|
377
377
|
block: e,
|
|
378
378
|
context: t
|
|
379
379
|
}) => {
|
|
@@ -392,7 +392,7 @@ const bt = ({
|
|
|
392
392
|
});
|
|
393
393
|
if (!Array.isArray(o))
|
|
394
394
|
return;
|
|
395
|
-
const
|
|
395
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
396
396
|
return o.map((d, c) => ({
|
|
397
397
|
context: {
|
|
398
398
|
...t,
|
|
@@ -400,33 +400,33 @@ const bt = ({
|
|
|
400
400
|
...t.localState,
|
|
401
401
|
$index: c,
|
|
402
402
|
$item: d,
|
|
403
|
-
[
|
|
404
|
-
[`$${
|
|
403
|
+
[a]: d,
|
|
404
|
+
[`$${a}Index`]: c
|
|
405
405
|
}
|
|
406
406
|
},
|
|
407
407
|
block: i
|
|
408
408
|
}));
|
|
409
|
-
},
|
|
409
|
+
}, xt = (e, t) => {
|
|
410
410
|
var n;
|
|
411
411
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
412
412
|
builderLinkComponent: t
|
|
413
413
|
} : {};
|
|
414
|
-
},
|
|
414
|
+
}, vt = (e, t) => {
|
|
415
415
|
var n;
|
|
416
416
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
417
417
|
builderComponents: t
|
|
418
418
|
} : {};
|
|
419
|
-
},
|
|
419
|
+
}, St = (e, t) => {
|
|
420
420
|
var n;
|
|
421
421
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
422
422
|
builderBlock: t
|
|
423
423
|
} : {};
|
|
424
|
-
},
|
|
424
|
+
}, kt = (e, t) => {
|
|
425
425
|
var n;
|
|
426
426
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
427
427
|
builderContext: t
|
|
428
428
|
} : {};
|
|
429
|
-
},
|
|
429
|
+
}, We = {
|
|
430
430
|
small: {
|
|
431
431
|
min: 320,
|
|
432
432
|
default: 321,
|
|
@@ -442,11 +442,11 @@ const bt = ({
|
|
|
442
442
|
default: 991,
|
|
443
443
|
max: 1200
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, ue = (e, t = We) => `@media (max-width: ${t[e].max}px)`, Ne = ({
|
|
446
446
|
small: e,
|
|
447
447
|
medium: t
|
|
448
448
|
}) => {
|
|
449
|
-
const n =
|
|
449
|
+
const n = oe(We);
|
|
450
450
|
if (!e || !t)
|
|
451
451
|
return n;
|
|
452
452
|
const i = Math.floor(e / 2);
|
|
@@ -461,16 +461,16 @@ const bt = ({
|
|
|
461
461
|
min: o,
|
|
462
462
|
default: o + 1
|
|
463
463
|
};
|
|
464
|
-
const
|
|
464
|
+
const r = n.medium.max + 1;
|
|
465
465
|
return n.large = {
|
|
466
466
|
max: 2e3,
|
|
467
467
|
// TODO: decide upper limit
|
|
468
|
-
min:
|
|
469
|
-
default:
|
|
468
|
+
min: r,
|
|
469
|
+
default: r + 1
|
|
470
470
|
}, n;
|
|
471
471
|
};
|
|
472
|
-
function
|
|
473
|
-
return /* @__PURE__ */
|
|
472
|
+
function J(e) {
|
|
473
|
+
return /* @__PURE__ */ s(
|
|
474
474
|
"style",
|
|
475
475
|
{
|
|
476
476
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -479,44 +479,44 @@ function z(e) {
|
|
|
479
479
|
}
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ct(e) {
|
|
483
483
|
function t() {
|
|
484
484
|
const i = e.block;
|
|
485
|
-
return
|
|
485
|
+
return ee(i.hide) ? !i.hide : ee(i.show) ? i.show : !0;
|
|
486
486
|
}
|
|
487
487
|
function n() {
|
|
488
|
-
var
|
|
489
|
-
const i = e.block, o = i.responsiveStyles,
|
|
490
|
-
((
|
|
491
|
-
),
|
|
488
|
+
var v, p, b;
|
|
489
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = Ne(
|
|
490
|
+
((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
|
|
491
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
492
492
|
if (!h)
|
|
493
493
|
return "";
|
|
494
|
-
const g =
|
|
494
|
+
const g = l ? M({
|
|
495
495
|
className: h,
|
|
496
|
-
styles:
|
|
497
|
-
}) : "", m = d ?
|
|
496
|
+
styles: l
|
|
497
|
+
}) : "", m = d ? M({
|
|
498
498
|
className: h,
|
|
499
499
|
styles: d,
|
|
500
|
-
mediaQuery:
|
|
500
|
+
mediaQuery: ue(
|
|
501
501
|
"medium",
|
|
502
|
-
|
|
502
|
+
a
|
|
503
503
|
)
|
|
504
|
-
}) : "",
|
|
504
|
+
}) : "", x = c ? M({
|
|
505
505
|
className: h,
|
|
506
506
|
styles: c,
|
|
507
|
-
mediaQuery:
|
|
507
|
+
mediaQuery: ue(
|
|
508
508
|
"small",
|
|
509
|
-
|
|
509
|
+
a
|
|
510
510
|
)
|
|
511
|
-
}) : "", f = i.animations && i.animations.find((
|
|
512
|
-
let
|
|
511
|
+
}) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
|
|
512
|
+
let S = "";
|
|
513
513
|
if (f) {
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const y = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
515
|
+
S = M({
|
|
516
516
|
className: `${h}:hover`,
|
|
517
517
|
styles: {
|
|
518
|
-
...
|
|
519
|
-
transition: `all ${f.duration}s ${
|
|
518
|
+
...y,
|
|
519
|
+
transition: `all ${f.duration}s ${z(
|
|
520
520
|
f.easing
|
|
521
521
|
)}`,
|
|
522
522
|
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
@@ -526,12 +526,12 @@ function kt(e) {
|
|
|
526
526
|
return [
|
|
527
527
|
g,
|
|
528
528
|
m,
|
|
529
|
-
|
|
530
|
-
|
|
529
|
+
x,
|
|
530
|
+
S
|
|
531
531
|
].join(" ");
|
|
532
532
|
}
|
|
533
|
-
return /* @__PURE__ */
|
|
534
|
-
|
|
533
|
+
return /* @__PURE__ */ s(I, { children: n() && t() ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
534
|
+
J,
|
|
535
535
|
{
|
|
536
536
|
id: "builderio-block",
|
|
537
537
|
styles: n(),
|
|
@@ -539,10 +539,10 @@ function kt(e) {
|
|
|
539
539
|
}
|
|
540
540
|
) }) : null });
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Tt(e) {
|
|
543
543
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
544
544
|
}
|
|
545
|
-
const
|
|
545
|
+
const It = (e) => `on${Tt(e)}`, wt = (e, t) => (n) => L({
|
|
546
546
|
code: e,
|
|
547
547
|
context: t.context,
|
|
548
548
|
localState: t.localState,
|
|
@@ -551,66 +551,66 @@ const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => L({
|
|
|
551
551
|
event: n,
|
|
552
552
|
isExpression: !1
|
|
553
553
|
});
|
|
554
|
-
function
|
|
554
|
+
function Fe(e) {
|
|
555
555
|
var i;
|
|
556
556
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
557
557
|
for (const o in n) {
|
|
558
558
|
if (!n.hasOwnProperty(o))
|
|
559
559
|
continue;
|
|
560
|
-
const
|
|
561
|
-
let
|
|
560
|
+
const r = n[o];
|
|
561
|
+
let a = It(o);
|
|
562
562
|
if (e.stripPrefix)
|
|
563
563
|
switch (D) {
|
|
564
564
|
case "vue":
|
|
565
|
-
|
|
565
|
+
a = a.replace("v-on:", "");
|
|
566
566
|
break;
|
|
567
567
|
case "svelte":
|
|
568
|
-
|
|
568
|
+
a = a.replace("on:", "");
|
|
569
569
|
break;
|
|
570
570
|
}
|
|
571
|
-
t[
|
|
571
|
+
t[a] = wt(r, e);
|
|
572
572
|
}
|
|
573
573
|
return t;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Et({
|
|
576
576
|
properties: e
|
|
577
577
|
}) {
|
|
578
578
|
return e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const Rt = (e) => ({
|
|
581
581
|
href: e.href
|
|
582
582
|
});
|
|
583
|
-
function
|
|
583
|
+
function le({
|
|
584
584
|
block: e,
|
|
585
585
|
context: t
|
|
586
586
|
}) {
|
|
587
587
|
var i;
|
|
588
588
|
const n = {
|
|
589
|
-
...
|
|
589
|
+
...Rt(e),
|
|
590
590
|
...e.properties,
|
|
591
591
|
"builder-id": e.id,
|
|
592
|
-
style:
|
|
592
|
+
style: bt({
|
|
593
593
|
block: e,
|
|
594
594
|
context: t
|
|
595
595
|
}),
|
|
596
596
|
[U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
597
597
|
};
|
|
598
|
-
return
|
|
598
|
+
return Et({
|
|
599
599
|
properties: n,
|
|
600
600
|
context: t,
|
|
601
601
|
block: e
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
function
|
|
605
|
-
return /* @__PURE__ */
|
|
606
|
-
|
|
604
|
+
function Pt(e) {
|
|
605
|
+
return /* @__PURE__ */ s(
|
|
606
|
+
ae,
|
|
607
607
|
{
|
|
608
608
|
TagName: e.Wrapper,
|
|
609
|
-
attributes:
|
|
609
|
+
attributes: le({
|
|
610
610
|
block: e.block,
|
|
611
611
|
context: e.context
|
|
612
612
|
}),
|
|
613
|
-
actionAttributes:
|
|
613
|
+
actionAttributes: Fe({
|
|
614
614
|
block: e.block,
|
|
615
615
|
rootState: e.context.rootState,
|
|
616
616
|
rootSetState: e.context.rootSetState,
|
|
@@ -622,18 +622,18 @@ function Rt(e) {
|
|
|
622
622
|
}
|
|
623
623
|
);
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Bt(e) {
|
|
626
626
|
return B(() => {
|
|
627
|
-
}, []), /* @__PURE__ */
|
|
627
|
+
}, []), /* @__PURE__ */ s(I, { children: e.children });
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Vt(e) {
|
|
630
630
|
function t() {
|
|
631
631
|
return e.includeBlockProps ? {
|
|
632
|
-
...
|
|
632
|
+
...le({
|
|
633
633
|
block: e.block,
|
|
634
634
|
context: e.context
|
|
635
635
|
}),
|
|
636
|
-
...
|
|
636
|
+
...Fe({
|
|
637
637
|
block: e.block,
|
|
638
638
|
rootState: e.context.rootState,
|
|
639
639
|
rootSetState: e.context.rootSetState,
|
|
@@ -642,8 +642,8 @@ function Bt(e) {
|
|
|
642
642
|
})
|
|
643
643
|
} : {};
|
|
644
644
|
}
|
|
645
|
-
return /* @__PURE__ */
|
|
646
|
-
|
|
645
|
+
return /* @__PURE__ */ s(I, { children: e.Wrapper.load ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
646
|
+
Bt,
|
|
647
647
|
{
|
|
648
648
|
load: e.Wrapper.load,
|
|
649
649
|
fallback: e.Wrapper.fallback,
|
|
@@ -651,47 +651,47 @@ function Bt(e) {
|
|
|
651
651
|
attributes: t(),
|
|
652
652
|
children: e.children
|
|
653
653
|
}
|
|
654
|
-
) }) : /* @__PURE__ */
|
|
654
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
655
655
|
}
|
|
656
|
-
const
|
|
656
|
+
const At = ({
|
|
657
657
|
componentOptions: e,
|
|
658
658
|
builderBlock: t,
|
|
659
659
|
context: n,
|
|
660
660
|
componentRef: i,
|
|
661
661
|
includeBlockProps: o,
|
|
662
|
-
isInteractive:
|
|
663
|
-
contextValue:
|
|
662
|
+
isInteractive: r,
|
|
663
|
+
contextValue: a
|
|
664
664
|
}) => {
|
|
665
|
-
const
|
|
665
|
+
const l = {
|
|
666
666
|
...e,
|
|
667
667
|
/**
|
|
668
668
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
669
669
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
670
670
|
*/
|
|
671
671
|
...o ? {
|
|
672
|
-
attributes:
|
|
672
|
+
attributes: le({
|
|
673
673
|
block: t,
|
|
674
|
-
context:
|
|
674
|
+
context: a
|
|
675
675
|
})
|
|
676
676
|
} : {}
|
|
677
677
|
};
|
|
678
|
-
return
|
|
678
|
+
return r ? {
|
|
679
679
|
Wrapper: i,
|
|
680
680
|
block: t,
|
|
681
681
|
context: n,
|
|
682
682
|
wrapperProps: e,
|
|
683
683
|
includeBlockProps: o
|
|
684
|
-
} :
|
|
684
|
+
} : l;
|
|
685
685
|
};
|
|
686
|
-
function
|
|
686
|
+
function me(e) {
|
|
687
687
|
var i;
|
|
688
|
-
const [t, n] =
|
|
689
|
-
() => e.isInteractive ?
|
|
688
|
+
const [t, n] = R(
|
|
689
|
+
() => e.isInteractive ? Vt : e.componentRef
|
|
690
690
|
);
|
|
691
|
-
return /* @__PURE__ */
|
|
691
|
+
return /* @__PURE__ */ s(I, { children: e.componentRef ? /* @__PURE__ */ s(I, { children: /* @__PURE__ */ s(
|
|
692
692
|
t,
|
|
693
693
|
{
|
|
694
|
-
...
|
|
694
|
+
...At({
|
|
695
695
|
componentOptions: e.componentOptions,
|
|
696
696
|
builderBlock: e.builderBlock,
|
|
697
697
|
context: e.context,
|
|
@@ -701,7 +701,7 @@ function ue(e) {
|
|
|
701
701
|
isInteractive: e.isInteractive,
|
|
702
702
|
contextValue: e.context
|
|
703
703
|
}),
|
|
704
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
704
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
705
705
|
H,
|
|
706
706
|
{
|
|
707
707
|
block: o,
|
|
@@ -714,9 +714,9 @@ function ue(e) {
|
|
|
714
714
|
}
|
|
715
715
|
) }) : null });
|
|
716
716
|
}
|
|
717
|
-
function
|
|
718
|
-
const [t, n] =
|
|
719
|
-
return /* @__PURE__ */
|
|
717
|
+
function fe(e) {
|
|
718
|
+
const [t, n] = R(() => e.repeatContext);
|
|
719
|
+
return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
720
720
|
H,
|
|
721
721
|
{
|
|
722
722
|
block: e.block,
|
|
@@ -727,22 +727,22 @@ function me(e) {
|
|
|
727
727
|
) });
|
|
728
728
|
}
|
|
729
729
|
function H(e) {
|
|
730
|
-
var h, g, m,
|
|
730
|
+
var h, g, m, x;
|
|
731
731
|
function t() {
|
|
732
|
-
return
|
|
732
|
+
return yt({
|
|
733
733
|
block: e.block,
|
|
734
734
|
context: e.context
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
const [n, i] =
|
|
737
|
+
const [n, i] = R(() => ({
|
|
738
738
|
value: null,
|
|
739
739
|
update: !1
|
|
740
740
|
}));
|
|
741
741
|
function o() {
|
|
742
|
-
var
|
|
743
|
-
if (n.value && !n.update && !
|
|
742
|
+
var S;
|
|
743
|
+
if (n.value && !n.update && !ve())
|
|
744
744
|
return n.value;
|
|
745
|
-
const f = (
|
|
745
|
+
const f = (S = e.block.repeat) != null && S.collection ? e.block : ct({
|
|
746
746
|
block: e.block,
|
|
747
747
|
localState: e.context.localState,
|
|
748
748
|
rootState: e.context.rootState,
|
|
@@ -752,39 +752,39 @@ function H(e) {
|
|
|
752
752
|
});
|
|
753
753
|
return n.value = f, n.update = !1, f;
|
|
754
754
|
}
|
|
755
|
-
function
|
|
756
|
-
return
|
|
755
|
+
function r() {
|
|
756
|
+
return pt({
|
|
757
757
|
block: o(),
|
|
758
758
|
registeredComponents: e.registeredComponents
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
var
|
|
763
|
-
return e.block.tagName === "a" || ((
|
|
761
|
+
function a() {
|
|
762
|
+
var S;
|
|
763
|
+
return e.block.tagName === "a" || ((S = o().properties) == null ? void 0 : S.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
764
764
|
}
|
|
765
|
-
function
|
|
766
|
-
var
|
|
767
|
-
if ((
|
|
765
|
+
function l() {
|
|
766
|
+
var v, p;
|
|
767
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
768
768
|
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
769
769
|
const f = "hide" in o() ? o().hide : !1;
|
|
770
770
|
return ("show" in o() ? o().show : !0) && !f;
|
|
771
771
|
}
|
|
772
772
|
function d() {
|
|
773
|
-
var
|
|
774
|
-
return !((
|
|
773
|
+
var S, v;
|
|
774
|
+
return !((S = r == null ? void 0 : r()) != null && S.component) && !t() ? (v = o().children) != null ? v : [] : [];
|
|
775
775
|
}
|
|
776
776
|
function c() {
|
|
777
|
-
var f,
|
|
777
|
+
var f, S, v, p;
|
|
778
778
|
return {
|
|
779
779
|
blockChildren: (f = o().children) != null ? f : [],
|
|
780
|
-
componentRef: (
|
|
780
|
+
componentRef: (S = r == null ? void 0 : r()) == null ? void 0 : S.component,
|
|
781
781
|
componentOptions: {
|
|
782
|
-
...
|
|
783
|
-
...
|
|
784
|
-
...
|
|
785
|
-
...
|
|
786
|
-
...
|
|
787
|
-
|
|
782
|
+
...Ze(o()),
|
|
783
|
+
...St(r(), o()),
|
|
784
|
+
...kt(r(), e.context),
|
|
785
|
+
...xt(r(), e.linkComponent),
|
|
786
|
+
...vt(
|
|
787
|
+
r(),
|
|
788
788
|
e.registeredComponents
|
|
789
789
|
)
|
|
790
790
|
},
|
|
@@ -792,33 +792,33 @@ function H(e) {
|
|
|
792
792
|
linkComponent: e.linkComponent,
|
|
793
793
|
registeredComponents: e.registeredComponents,
|
|
794
794
|
builderBlock: o(),
|
|
795
|
-
includeBlockProps: ((
|
|
796
|
-
isInteractive: !((p =
|
|
795
|
+
includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
|
|
796
|
+
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
799
|
return B(() => {
|
|
800
|
-
const f = o().id,
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
...
|
|
800
|
+
const f = o().id, S = o().animations;
|
|
801
|
+
S && f && ut(
|
|
802
|
+
S.map((v) => ({
|
|
803
|
+
...v,
|
|
804
804
|
elementId: f
|
|
805
805
|
}))
|
|
806
806
|
);
|
|
807
807
|
}, []), B(() => {
|
|
808
808
|
n.update = !0;
|
|
809
|
-
}), /* @__PURE__ */
|
|
810
|
-
/* @__PURE__ */
|
|
811
|
-
(h =
|
|
812
|
-
|
|
809
|
+
}), /* @__PURE__ */ s(I, { children: l() ? /* @__PURE__ */ V(I, { children: [
|
|
810
|
+
/* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
|
|
811
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(I, { children: (x = t()) == null ? void 0 : x.map((f, S) => /* @__PURE__ */ s(
|
|
812
|
+
fe,
|
|
813
813
|
{
|
|
814
814
|
repeatContext: f.context,
|
|
815
815
|
block: f.block,
|
|
816
816
|
registeredComponents: e.registeredComponents,
|
|
817
817
|
linkComponent: e.linkComponent
|
|
818
818
|
},
|
|
819
|
-
|
|
820
|
-
)) }) : /* @__PURE__ */
|
|
821
|
-
|
|
819
|
+
S
|
|
820
|
+
)) }) : /* @__PURE__ */ s(
|
|
821
|
+
me,
|
|
822
822
|
{
|
|
823
823
|
componentRef: c().componentRef,
|
|
824
824
|
componentOptions: c().componentOptions,
|
|
@@ -830,24 +830,24 @@ function H(e) {
|
|
|
830
830
|
includeBlockProps: c().includeBlockProps,
|
|
831
831
|
isInteractive: c().isInteractive
|
|
832
832
|
}
|
|
833
|
-
) : /* @__PURE__ */
|
|
834
|
-
|
|
833
|
+
) : /* @__PURE__ */ s(I, { children: t() ? /* @__PURE__ */ s(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ s(
|
|
834
|
+
fe,
|
|
835
835
|
{
|
|
836
836
|
repeatContext: f.context,
|
|
837
837
|
block: f.block,
|
|
838
838
|
registeredComponents: e.registeredComponents,
|
|
839
839
|
linkComponent: e.linkComponent
|
|
840
840
|
},
|
|
841
|
-
|
|
841
|
+
S
|
|
842
842
|
)) }) : /* @__PURE__ */ V(
|
|
843
|
-
|
|
843
|
+
Pt,
|
|
844
844
|
{
|
|
845
|
-
Wrapper:
|
|
845
|
+
Wrapper: a(),
|
|
846
846
|
block: o(),
|
|
847
847
|
context: e.context,
|
|
848
848
|
children: [
|
|
849
|
-
/* @__PURE__ */
|
|
850
|
-
|
|
849
|
+
/* @__PURE__ */ s(
|
|
850
|
+
me,
|
|
851
851
|
{
|
|
852
852
|
componentRef: c().componentRef,
|
|
853
853
|
componentOptions: c().componentOptions,
|
|
@@ -860,7 +860,7 @@ function H(e) {
|
|
|
860
860
|
isInteractive: c().isInteractive
|
|
861
861
|
}
|
|
862
862
|
),
|
|
863
|
-
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */
|
|
863
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
864
864
|
H,
|
|
865
865
|
{
|
|
866
866
|
block: f,
|
|
@@ -875,7 +875,7 @@ function H(e) {
|
|
|
875
875
|
) })
|
|
876
876
|
] }) : null });
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Wt(e) {
|
|
879
879
|
const t = $(null);
|
|
880
880
|
function n() {
|
|
881
881
|
var a;
|
|
@@ -886,49 +886,55 @@ function At(e) {
|
|
|
886
886
|
].filter(Boolean).join(" ");
|
|
887
887
|
}
|
|
888
888
|
function i() {
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
if (!e.path)
|
|
890
|
+
return;
|
|
891
|
+
const a = "component.options.";
|
|
892
|
+
return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
|
|
893
|
+
}
|
|
894
|
+
function o() {
|
|
895
|
+
var a, l;
|
|
896
|
+
N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
891
897
|
{
|
|
892
898
|
type: "builder.clickEmptyBlocks",
|
|
893
899
|
data: {
|
|
894
900
|
parentElementId: e.parent,
|
|
895
|
-
dataPath:
|
|
901
|
+
dataPath: i()
|
|
896
902
|
}
|
|
897
903
|
},
|
|
898
904
|
"*"
|
|
899
905
|
));
|
|
900
906
|
}
|
|
901
|
-
function
|
|
902
|
-
var a,
|
|
903
|
-
N() && !((a = e.blocks) != null && a.length) && ((
|
|
907
|
+
function r() {
|
|
908
|
+
var a, l;
|
|
909
|
+
N() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
904
910
|
{
|
|
905
911
|
type: "builder.hoverEmptyBlocks",
|
|
906
912
|
data: {
|
|
907
913
|
parentElementId: e.parent,
|
|
908
|
-
dataPath:
|
|
914
|
+
dataPath: i()
|
|
909
915
|
}
|
|
910
916
|
},
|
|
911
917
|
"*"
|
|
912
918
|
));
|
|
913
919
|
}
|
|
914
920
|
return B(() => {
|
|
915
|
-
}, []), /* @__PURE__ */ V(
|
|
916
|
-
/* @__PURE__ */
|
|
921
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
922
|
+
/* @__PURE__ */ s(
|
|
917
923
|
e.BlocksWrapper,
|
|
918
924
|
{
|
|
919
925
|
ref: t,
|
|
920
|
-
className: n() + " props-blocks-wrapper-
|
|
921
|
-
"builder-path":
|
|
926
|
+
className: n() + " props-blocks-wrapper-215a41e0",
|
|
927
|
+
"builder-path": i(),
|
|
922
928
|
"builder-parent-id": e.parent,
|
|
923
929
|
style: e.styleProp,
|
|
924
|
-
onClick: (a) =>
|
|
925
|
-
onMouseEnter: (a) =>
|
|
926
|
-
onKeyPress: (a) =>
|
|
930
|
+
onClick: (a) => o(),
|
|
931
|
+
onMouseEnter: (a) => r(),
|
|
932
|
+
onKeyPress: (a) => o(),
|
|
927
933
|
...e.BlocksWrapperProps,
|
|
928
934
|
children: e.children
|
|
929
935
|
}
|
|
930
936
|
),
|
|
931
|
-
/* @__PURE__ */
|
|
937
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
932
938
|
display: flex;
|
|
933
939
|
flex-direction: column;
|
|
934
940
|
align-items: stretch;
|
|
@@ -936,10 +942,10 @@ function At(e) {
|
|
|
936
942
|
] });
|
|
937
943
|
}
|
|
938
944
|
function F(e) {
|
|
939
|
-
var i, o,
|
|
940
|
-
const t =
|
|
941
|
-
return /* @__PURE__ */
|
|
942
|
-
|
|
945
|
+
var i, o, r;
|
|
946
|
+
const t = de(re), n = de(we);
|
|
947
|
+
return /* @__PURE__ */ s(
|
|
948
|
+
Wt,
|
|
943
949
|
{
|
|
944
950
|
blocks: e.blocks,
|
|
945
951
|
parent: e.parent,
|
|
@@ -948,22 +954,22 @@ function F(e) {
|
|
|
948
954
|
classNameProp: e.className,
|
|
949
955
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
950
956
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
951
|
-
children: e.blocks ? /* @__PURE__ */
|
|
957
|
+
children: e.blocks ? /* @__PURE__ */ s(I, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
952
958
|
H,
|
|
953
959
|
{
|
|
954
|
-
block:
|
|
960
|
+
block: a,
|
|
955
961
|
linkComponent: e.linkComponent,
|
|
956
962
|
context: e.context || t,
|
|
957
963
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
958
964
|
},
|
|
959
|
-
|
|
965
|
+
a.id
|
|
960
966
|
)) }) : null
|
|
961
967
|
}
|
|
962
968
|
);
|
|
963
969
|
}
|
|
964
|
-
const
|
|
965
|
-
function
|
|
966
|
-
var
|
|
970
|
+
const Nt = (e) => `builder-columns ${e}-breakpoints`;
|
|
971
|
+
function Ft(e) {
|
|
972
|
+
var S, v;
|
|
967
973
|
function t() {
|
|
968
974
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
969
975
|
}
|
|
@@ -976,15 +982,15 @@ function Nt(e) {
|
|
|
976
982
|
function o(p) {
|
|
977
983
|
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
978
984
|
}
|
|
979
|
-
function
|
|
985
|
+
function r(p) {
|
|
980
986
|
var b;
|
|
981
987
|
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
982
988
|
}
|
|
983
|
-
function
|
|
984
|
-
const b =
|
|
985
|
-
return `calc(${b}% - ${
|
|
989
|
+
function a(p) {
|
|
990
|
+
const b = r(p), y = t() * (n().length - 1) * (b / 100);
|
|
991
|
+
return `calc(${b}% - ${y}px)`;
|
|
986
992
|
}
|
|
987
|
-
function
|
|
993
|
+
function l({
|
|
988
994
|
stackedStyle: p,
|
|
989
995
|
desktopStyle: b
|
|
990
996
|
}) {
|
|
@@ -1002,47 +1008,47 @@ function Nt(e) {
|
|
|
1002
1008
|
function h() {
|
|
1003
1009
|
return {
|
|
1004
1010
|
"--flex-dir": c(),
|
|
1005
|
-
"--flex-dir-tablet":
|
|
1011
|
+
"--flex-dir-tablet": l({
|
|
1006
1012
|
stackedStyle: c(),
|
|
1007
1013
|
desktopStyle: "row"
|
|
1008
1014
|
})
|
|
1009
1015
|
};
|
|
1010
1016
|
}
|
|
1011
1017
|
function g(p) {
|
|
1012
|
-
const b = p === 0 ? 0 : t(),
|
|
1018
|
+
const b = p === 0 ? 0 : t(), y = a(p), A = `${b}px`, k = "100%", w = 0;
|
|
1013
1019
|
return {
|
|
1014
1020
|
...{
|
|
1015
1021
|
display: "flex",
|
|
1016
1022
|
flexDirection: "column",
|
|
1017
1023
|
alignItems: "stretch"
|
|
1018
1024
|
},
|
|
1019
|
-
width:
|
|
1025
|
+
width: y,
|
|
1020
1026
|
["marginLeft"]: A,
|
|
1021
1027
|
"--column-width-mobile": d({
|
|
1022
|
-
stackedStyle:
|
|
1023
|
-
desktopStyle:
|
|
1028
|
+
stackedStyle: k,
|
|
1029
|
+
desktopStyle: y
|
|
1024
1030
|
}),
|
|
1025
1031
|
"--column-margin-left-mobile": d({
|
|
1026
|
-
stackedStyle:
|
|
1032
|
+
stackedStyle: w,
|
|
1027
1033
|
desktopStyle: A
|
|
1028
1034
|
}),
|
|
1029
|
-
"--column-width-tablet":
|
|
1030
|
-
stackedStyle:
|
|
1031
|
-
desktopStyle:
|
|
1035
|
+
"--column-width-tablet": l({
|
|
1036
|
+
stackedStyle: k,
|
|
1037
|
+
desktopStyle: y
|
|
1032
1038
|
}),
|
|
1033
|
-
"--column-margin-left-tablet":
|
|
1034
|
-
stackedStyle:
|
|
1039
|
+
"--column-margin-left-tablet": l({
|
|
1040
|
+
stackedStyle: w,
|
|
1035
1041
|
desktopStyle: A
|
|
1036
1042
|
})
|
|
1037
1043
|
};
|
|
1038
1044
|
}
|
|
1039
1045
|
function m(p) {
|
|
1040
|
-
var
|
|
1041
|
-
return
|
|
1042
|
-
((A = (
|
|
1046
|
+
var y, A;
|
|
1047
|
+
return Ne(
|
|
1048
|
+
((A = (y = e.builderContext.content) == null ? void 0 : y.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1043
1049
|
)[p].max;
|
|
1044
1050
|
}
|
|
1045
|
-
function
|
|
1051
|
+
function x() {
|
|
1046
1052
|
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1047
1053
|
return `
|
|
1048
1054
|
@media (max-width: ${m("medium")}px) {
|
|
@@ -1076,34 +1082,34 @@ function Nt(e) {
|
|
|
1076
1082
|
href: p.link
|
|
1077
1083
|
} : {},
|
|
1078
1084
|
[U()]: "builder-column",
|
|
1079
|
-
style:
|
|
1085
|
+
style: Ae(g(b))
|
|
1080
1086
|
};
|
|
1081
1087
|
}
|
|
1082
|
-
return /* @__PURE__ */ V(
|
|
1088
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
1083
1089
|
/* @__PURE__ */ V(
|
|
1084
1090
|
"div",
|
|
1085
1091
|
{
|
|
1086
|
-
className:
|
|
1092
|
+
className: Nt((S = e.builderBlock) == null ? void 0 : S.id) + " div-49f40bae",
|
|
1087
1093
|
style: h(),
|
|
1088
1094
|
children: [
|
|
1089
|
-
/* @__PURE__ */
|
|
1090
|
-
|
|
1095
|
+
/* @__PURE__ */ s(
|
|
1096
|
+
J,
|
|
1091
1097
|
{
|
|
1092
1098
|
id: "builderio-columns",
|
|
1093
|
-
styles:
|
|
1099
|
+
styles: x(),
|
|
1094
1100
|
nonce: e.builderContext.nonce
|
|
1095
1101
|
}
|
|
1096
1102
|
),
|
|
1097
|
-
(
|
|
1098
|
-
|
|
1103
|
+
(v = e.columns) == null ? void 0 : v.map((p, b) => /* @__PURE__ */ s(
|
|
1104
|
+
ae,
|
|
1099
1105
|
{
|
|
1100
1106
|
TagName: o(p),
|
|
1101
1107
|
actionAttributes: {},
|
|
1102
1108
|
attributes: f(p, b),
|
|
1103
|
-
children: /* @__PURE__ */
|
|
1109
|
+
children: /* @__PURE__ */ s(
|
|
1104
1110
|
F,
|
|
1105
1111
|
{
|
|
1106
|
-
path: `
|
|
1112
|
+
path: `columns.${b}.blocks`,
|
|
1107
1113
|
parent: e.builderBlock.id,
|
|
1108
1114
|
styleProp: {
|
|
1109
1115
|
flexGrow: "1"
|
|
@@ -1120,47 +1126,47 @@ function Nt(e) {
|
|
|
1120
1126
|
]
|
|
1121
1127
|
}
|
|
1122
1128
|
),
|
|
1123
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ s("style", { children: `.div-49f40bae {
|
|
1124
1130
|
display: flex;
|
|
1125
1131
|
line-height: normal;
|
|
1126
1132
|
}` })
|
|
1127
1133
|
] });
|
|
1128
1134
|
}
|
|
1129
|
-
function
|
|
1130
|
-
return /* @__PURE__ */
|
|
1135
|
+
function $t(e) {
|
|
1136
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1131
1137
|
}
|
|
1132
|
-
function
|
|
1138
|
+
function he(e) {
|
|
1133
1139
|
return e.replace(/http(s)?:/, "");
|
|
1134
1140
|
}
|
|
1135
|
-
function
|
|
1141
|
+
function Dt(e = "", t, n) {
|
|
1136
1142
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1137
1143
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1138
1144
|
}
|
|
1139
|
-
function
|
|
1145
|
+
function Lt(e, t) {
|
|
1140
1146
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1141
1147
|
return e;
|
|
1142
1148
|
if (t === "master")
|
|
1143
|
-
return
|
|
1149
|
+
return he(e);
|
|
1144
1150
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1145
1151
|
if (n) {
|
|
1146
|
-
const i = e.split(n[0]), o = n[3],
|
|
1147
|
-
return
|
|
1152
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1153
|
+
return he(`${i[0]}_${r}${o}`);
|
|
1148
1154
|
}
|
|
1149
1155
|
return null;
|
|
1150
1156
|
}
|
|
1151
|
-
function
|
|
1157
|
+
function G(e) {
|
|
1152
1158
|
if (!e)
|
|
1153
1159
|
return e;
|
|
1154
1160
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1155
1161
|
if (e.match(/builder\.io/)) {
|
|
1156
1162
|
let n = e;
|
|
1157
1163
|
const i = Number(e.split("?width=")[1]);
|
|
1158
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1164
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Dt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1159
1165
|
}
|
|
1160
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1166
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1161
1167
|
}
|
|
1162
|
-
function
|
|
1163
|
-
var o,
|
|
1168
|
+
function Ot(e) {
|
|
1169
|
+
var o, r, a, l, d, c;
|
|
1164
1170
|
function t() {
|
|
1165
1171
|
var m;
|
|
1166
1172
|
const g = e.image || e.src;
|
|
@@ -1171,10 +1177,10 @@ function Lt(e) {
|
|
|
1171
1177
|
if (!e.noWebp) {
|
|
1172
1178
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1173
1179
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1174
|
-
return console.debug("Removed given srcset"),
|
|
1180
|
+
return console.debug("Removed given srcset"), G(g);
|
|
1175
1181
|
} else if (e.image && !e.srcset)
|
|
1176
|
-
return
|
|
1177
|
-
return
|
|
1182
|
+
return G(g);
|
|
1183
|
+
return G(g);
|
|
1178
1184
|
}
|
|
1179
1185
|
}
|
|
1180
1186
|
function n() {
|
|
@@ -1192,11 +1198,11 @@ function Lt(e) {
|
|
|
1192
1198
|
return e.aspectRatio ? h : void 0;
|
|
1193
1199
|
}
|
|
1194
1200
|
return B(() => {
|
|
1195
|
-
}, []), /* @__PURE__ */ V(
|
|
1196
|
-
/* @__PURE__ */ V(
|
|
1201
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
1202
|
+
/* @__PURE__ */ V(I, { children: [
|
|
1197
1203
|
/* @__PURE__ */ V("picture", { children: [
|
|
1198
|
-
n() ? /* @__PURE__ */
|
|
1199
|
-
/* @__PURE__ */
|
|
1204
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1205
|
+
/* @__PURE__ */ s(
|
|
1200
1206
|
"img",
|
|
1201
1207
|
{
|
|
1202
1208
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1215,7 +1221,7 @@ function Lt(e) {
|
|
|
1215
1221
|
}
|
|
1216
1222
|
)
|
|
1217
1223
|
] }),
|
|
1218
|
-
e.aspectRatio && !((
|
|
1224
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1219
1225
|
"div",
|
|
1220
1226
|
{
|
|
1221
1227
|
className: "builder-image-sizer div-7a292ab8",
|
|
@@ -1224,10 +1230,10 @@ function Lt(e) {
|
|
|
1224
1230
|
}
|
|
1225
1231
|
}
|
|
1226
1232
|
) : null,
|
|
1227
|
-
(
|
|
1228
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1233
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(I, { children: e.children }) : null,
|
|
1234
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1229
1235
|
] }),
|
|
1230
|
-
/* @__PURE__ */
|
|
1236
|
+
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
1231
1237
|
opacity: 1;
|
|
1232
1238
|
transition: opacity 0.2s ease-in-out;
|
|
1233
1239
|
}.div-7a292ab8 {
|
|
@@ -1246,8 +1252,8 @@ function Lt(e) {
|
|
|
1246
1252
|
}` })
|
|
1247
1253
|
] });
|
|
1248
1254
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return /* @__PURE__ */
|
|
1255
|
+
function Ut(e) {
|
|
1256
|
+
return /* @__PURE__ */ s(
|
|
1251
1257
|
"section",
|
|
1252
1258
|
{
|
|
1253
1259
|
...e.attributes,
|
|
@@ -1267,7 +1273,7 @@ function Ot(e) {
|
|
|
1267
1273
|
}
|
|
1268
1274
|
);
|
|
1269
1275
|
}
|
|
1270
|
-
const
|
|
1276
|
+
const Y = {
|
|
1271
1277
|
"@type": "@builder.io/sdk:Element",
|
|
1272
1278
|
layerName: "Accordion item title",
|
|
1273
1279
|
responsiveStyles: {
|
|
@@ -1296,7 +1302,7 @@ const G = {
|
|
|
1296
1302
|
}
|
|
1297
1303
|
}
|
|
1298
1304
|
}]
|
|
1299
|
-
},
|
|
1305
|
+
}, Q = {
|
|
1300
1306
|
"@type": "@builder.io/sdk:Element",
|
|
1301
1307
|
layerName: "Accordion item detail",
|
|
1302
1308
|
responsiveStyles: {
|
|
@@ -1327,7 +1333,7 @@ const G = {
|
|
|
1327
1333
|
}
|
|
1328
1334
|
}
|
|
1329
1335
|
}]
|
|
1330
|
-
},
|
|
1336
|
+
}, Ht = {
|
|
1331
1337
|
name: "Builder:Accordion",
|
|
1332
1338
|
canHaveChildren: !0,
|
|
1333
1339
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1344,19 +1350,19 @@ const G = {
|
|
|
1344
1350
|
name: "title",
|
|
1345
1351
|
type: "uiBlocks",
|
|
1346
1352
|
hideFromUI: !0,
|
|
1347
|
-
defaultValue: [
|
|
1353
|
+
defaultValue: [Y]
|
|
1348
1354
|
}, {
|
|
1349
1355
|
name: "detail",
|
|
1350
1356
|
type: "uiBlocks",
|
|
1351
1357
|
hideFromUI: !0,
|
|
1352
|
-
defaultValue: [
|
|
1358
|
+
defaultValue: [Q]
|
|
1353
1359
|
}],
|
|
1354
1360
|
defaultValue: [{
|
|
1355
|
-
title: [
|
|
1356
|
-
detail: [
|
|
1361
|
+
title: [Y],
|
|
1362
|
+
detail: [Q]
|
|
1357
1363
|
}, {
|
|
1358
|
-
title: [
|
|
1359
|
-
detail: [
|
|
1364
|
+
title: [Y],
|
|
1365
|
+
detail: [Q]
|
|
1360
1366
|
}],
|
|
1361
1367
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1362
1368
|
}, {
|
|
@@ -1391,10 +1397,10 @@ const G = {
|
|
|
1391
1397
|
builderComponents: !0,
|
|
1392
1398
|
builderLinkComponent: !0
|
|
1393
1399
|
}
|
|
1394
|
-
},
|
|
1395
|
-
function
|
|
1400
|
+
}, ge = (e) => e.toString();
|
|
1401
|
+
function jt(e) {
|
|
1396
1402
|
var g;
|
|
1397
|
-
const [t, n] =
|
|
1403
|
+
const [t, n] = R(() => []);
|
|
1398
1404
|
function i() {
|
|
1399
1405
|
return !!(e.grid || e.oneAtATime);
|
|
1400
1406
|
}
|
|
@@ -1410,8 +1416,8 @@ function Ht(e) {
|
|
|
1410
1416
|
}
|
|
1411
1417
|
};
|
|
1412
1418
|
}
|
|
1413
|
-
function
|
|
1414
|
-
const
|
|
1419
|
+
function r() {
|
|
1420
|
+
const x = {
|
|
1415
1421
|
...{
|
|
1416
1422
|
display: "flex",
|
|
1417
1423
|
flexDirection: "column"
|
|
@@ -1420,35 +1426,35 @@ function Ht(e) {
|
|
|
1420
1426
|
cursor: "pointer"
|
|
1421
1427
|
};
|
|
1422
1428
|
return Object.fromEntries(
|
|
1423
|
-
Object.entries(
|
|
1429
|
+
Object.entries(x).filter(([f, S]) => S !== void 0)
|
|
1424
1430
|
);
|
|
1425
1431
|
}
|
|
1426
|
-
function
|
|
1432
|
+
function a(m) {
|
|
1427
1433
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1428
1434
|
}
|
|
1429
|
-
function
|
|
1435
|
+
function l(m) {
|
|
1430
1436
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1431
1437
|
}
|
|
1432
1438
|
function d() {
|
|
1433
1439
|
let m = null;
|
|
1434
1440
|
if (e.grid && t.length && document) {
|
|
1435
1441
|
const f = t[0];
|
|
1436
|
-
let
|
|
1442
|
+
let v = document.querySelector(
|
|
1437
1443
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1438
1444
|
);
|
|
1439
|
-
if (m = f,
|
|
1440
|
-
let p =
|
|
1441
|
-
for (;
|
|
1442
|
-
if (
|
|
1443
|
-
if (
|
|
1445
|
+
if (m = f, v) {
|
|
1446
|
+
let p = v.getBoundingClientRect();
|
|
1447
|
+
for (; v = v && v.nextElementSibling; )
|
|
1448
|
+
if (v) {
|
|
1449
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1444
1450
|
continue;
|
|
1445
|
-
const b =
|
|
1451
|
+
const b = v.getBoundingClientRect();
|
|
1446
1452
|
if (b.left > p.left) {
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1453
|
+
const y = parseInt(
|
|
1454
|
+
v.getAttribute("data-index") || "",
|
|
1449
1455
|
10
|
|
1450
1456
|
);
|
|
1451
|
-
isNaN(
|
|
1457
|
+
isNaN(y) || (p = b, m = y);
|
|
1452
1458
|
} else
|
|
1453
1459
|
break;
|
|
1454
1460
|
}
|
|
@@ -1464,29 +1470,31 @@ function Ht(e) {
|
|
|
1464
1470
|
}
|
|
1465
1471
|
};
|
|
1466
1472
|
return Object.fromEntries(
|
|
1467
|
-
Object.entries(m).filter(([
|
|
1473
|
+
Object.entries(m).filter(([x, f]) => f !== void 0)
|
|
1468
1474
|
);
|
|
1469
1475
|
}
|
|
1470
1476
|
function h(m) {
|
|
1471
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1477
|
+
t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
|
|
1472
1478
|
}
|
|
1473
|
-
return /* @__PURE__ */
|
|
1474
|
-
/* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, x) => /* @__PURE__ */ V(I, { children: [
|
|
1480
|
+
/* @__PURE__ */ s(
|
|
1475
1481
|
"div",
|
|
1476
1482
|
{
|
|
1477
|
-
className:
|
|
1483
|
+
className: a(x),
|
|
1478
1484
|
style: {
|
|
1479
|
-
...
|
|
1480
|
-
|
|
1481
|
-
|
|
1485
|
+
...r(),
|
|
1486
|
+
...e.grid && {
|
|
1487
|
+
width: e.gridRowWidth,
|
|
1488
|
+
order: d() !== null ? ge(x) : ge(x + 1)
|
|
1489
|
+
}
|
|
1482
1490
|
},
|
|
1483
|
-
"data-index":
|
|
1484
|
-
onClick: (f) => h(
|
|
1485
|
-
children: /* @__PURE__ */
|
|
1491
|
+
"data-index": x,
|
|
1492
|
+
onClick: (f) => h(x),
|
|
1493
|
+
children: /* @__PURE__ */ s(
|
|
1486
1494
|
F,
|
|
1487
1495
|
{
|
|
1488
1496
|
blocks: m.title,
|
|
1489
|
-
path: `items.${
|
|
1497
|
+
path: `items.${x}.title`,
|
|
1490
1498
|
parent: e.builderBlock.id,
|
|
1491
1499
|
context: e.builderContext,
|
|
1492
1500
|
registeredComponents: e.builderComponents,
|
|
@@ -1495,16 +1503,16 @@ function Ht(e) {
|
|
|
1495
1503
|
)
|
|
1496
1504
|
}
|
|
1497
1505
|
),
|
|
1498
|
-
t.includes(
|
|
1506
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1499
1507
|
"div",
|
|
1500
1508
|
{
|
|
1501
|
-
className:
|
|
1509
|
+
className: l(x),
|
|
1502
1510
|
style: c(),
|
|
1503
|
-
children: /* @__PURE__ */
|
|
1511
|
+
children: /* @__PURE__ */ s(
|
|
1504
1512
|
F,
|
|
1505
1513
|
{
|
|
1506
1514
|
blocks: m.detail,
|
|
1507
|
-
path: `items.${
|
|
1515
|
+
path: `items.${x}.detail`,
|
|
1508
1516
|
parent: e.builderBlock.id,
|
|
1509
1517
|
context: e.builderContext,
|
|
1510
1518
|
registeredComponents: e.builderComponents,
|
|
@@ -1515,7 +1523,7 @@ function Ht(e) {
|
|
|
1515
1523
|
) : null
|
|
1516
1524
|
] })) });
|
|
1517
1525
|
}
|
|
1518
|
-
const
|
|
1526
|
+
const Mt = {
|
|
1519
1527
|
name: "Core:Button",
|
|
1520
1528
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1521
1529
|
defaultStyles: {
|
|
@@ -1551,7 +1559,7 @@ const jt = {
|
|
|
1551
1559
|
shouldReceiveBuilderProps: {
|
|
1552
1560
|
builderLinkComponent: !0
|
|
1553
1561
|
}
|
|
1554
|
-
},
|
|
1562
|
+
}, _t = {
|
|
1555
1563
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1556
1564
|
name: "Columns",
|
|
1557
1565
|
isRSC: !0,
|
|
@@ -1730,7 +1738,7 @@ const jt = {
|
|
|
1730
1738
|
});
|
|
1731
1739
|
}
|
|
1732
1740
|
const n = e.get("columns");
|
|
1733
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1741
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1734
1742
|
}
|
|
1735
1743
|
}, {
|
|
1736
1744
|
name: "space",
|
|
@@ -1758,13 +1766,13 @@ const jt = {
|
|
|
1758
1766
|
builderComponents: !0,
|
|
1759
1767
|
builderLinkComponent: !0
|
|
1760
1768
|
}
|
|
1761
|
-
},
|
|
1769
|
+
}, qt = {
|
|
1762
1770
|
name: "Fragment",
|
|
1763
1771
|
static: !0,
|
|
1764
1772
|
hidden: !0,
|
|
1765
1773
|
canHaveChildren: !0,
|
|
1766
1774
|
noWrap: !0
|
|
1767
|
-
},
|
|
1775
|
+
}, Kt = {
|
|
1768
1776
|
name: "Image",
|
|
1769
1777
|
static: !0,
|
|
1770
1778
|
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",
|
|
@@ -1784,7 +1792,7 @@ const jt = {
|
|
|
1784
1792
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1785
1793
|
onChange: (e) => {
|
|
1786
1794
|
e.delete("srcset"), e.delete("noWebp");
|
|
1787
|
-
function n(
|
|
1795
|
+
function n(a, l = 6e4) {
|
|
1788
1796
|
return new Promise((d, c) => {
|
|
1789
1797
|
const h = document.createElement("img");
|
|
1790
1798
|
let g = !1;
|
|
@@ -1792,21 +1800,21 @@ const jt = {
|
|
|
1792
1800
|
g = !0, d(h);
|
|
1793
1801
|
}, h.addEventListener("error", (m) => {
|
|
1794
1802
|
console.warn("Image load failed", m.error), c(m.error);
|
|
1795
|
-
}), h.src =
|
|
1803
|
+
}), h.src = a, setTimeout(() => {
|
|
1796
1804
|
g || c(new Error("Image load timed out"));
|
|
1797
|
-
},
|
|
1805
|
+
}, l);
|
|
1798
1806
|
});
|
|
1799
1807
|
}
|
|
1800
|
-
function i(
|
|
1801
|
-
return Math.round(
|
|
1808
|
+
function i(a) {
|
|
1809
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1802
1810
|
}
|
|
1803
|
-
const o = e.get("image"),
|
|
1804
|
-
if (fetch(o).then((
|
|
1805
|
-
|
|
1806
|
-
}), o && (!
|
|
1807
|
-
return n(o).then((
|
|
1808
|
-
const
|
|
1809
|
-
e.get("image") === o && (!
|
|
1811
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1812
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1813
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1814
|
+
}), o && (!r || r === 0.7041))
|
|
1815
|
+
return n(o).then((a) => {
|
|
1816
|
+
const l = e.get("aspectRatio");
|
|
1817
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1810
1818
|
});
|
|
1811
1819
|
}
|
|
1812
1820
|
}, {
|
|
@@ -1872,7 +1880,7 @@ const jt = {
|
|
|
1872
1880
|
shouldReceiveBuilderProps: {
|
|
1873
1881
|
builderBlock: !0
|
|
1874
1882
|
}
|
|
1875
|
-
},
|
|
1883
|
+
}, zt = {
|
|
1876
1884
|
name: "Core:Section",
|
|
1877
1885
|
static: !0,
|
|
1878
1886
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1911,7 +1919,7 @@ const jt = {
|
|
|
1911
1919
|
}
|
|
1912
1920
|
}
|
|
1913
1921
|
}]
|
|
1914
|
-
},
|
|
1922
|
+
}, Jt = {
|
|
1915
1923
|
name: "Slot",
|
|
1916
1924
|
isRSC: !0,
|
|
1917
1925
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1929,9 +1937,9 @@ const jt = {
|
|
|
1929
1937
|
builderComponents: !0
|
|
1930
1938
|
}
|
|
1931
1939
|
};
|
|
1932
|
-
function
|
|
1940
|
+
function Gt(e) {
|
|
1933
1941
|
var t, n, i;
|
|
1934
|
-
return /* @__PURE__ */
|
|
1942
|
+
return /* @__PURE__ */ s(
|
|
1935
1943
|
"div",
|
|
1936
1944
|
{
|
|
1937
1945
|
style: {
|
|
@@ -1940,7 +1948,7 @@ function Jt(e) {
|
|
|
1940
1948
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1941
1949
|
"builder-slot": e.name
|
|
1942
1950
|
},
|
|
1943
|
-
children: /* @__PURE__ */
|
|
1951
|
+
children: /* @__PURE__ */ s(
|
|
1944
1952
|
F,
|
|
1945
1953
|
{
|
|
1946
1954
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -1953,7 +1961,7 @@ function Jt(e) {
|
|
|
1953
1961
|
}
|
|
1954
1962
|
);
|
|
1955
1963
|
}
|
|
1956
|
-
const
|
|
1964
|
+
const Yt = {
|
|
1957
1965
|
name: "Symbol",
|
|
1958
1966
|
noWrap: !0,
|
|
1959
1967
|
static: !0,
|
|
@@ -1992,7 +2000,7 @@ const Gt = {
|
|
|
1992
2000
|
builderComponents: !0,
|
|
1993
2001
|
builderLinkComponent: !0
|
|
1994
2002
|
}
|
|
1995
|
-
},
|
|
2003
|
+
}, X = {
|
|
1996
2004
|
"@type": "@builder.io/sdk:Element",
|
|
1997
2005
|
responsiveStyles: {
|
|
1998
2006
|
large: {
|
|
@@ -2014,7 +2022,7 @@ const Gt = {
|
|
|
2014
2022
|
text: "New tab"
|
|
2015
2023
|
}
|
|
2016
2024
|
}
|
|
2017
|
-
},
|
|
2025
|
+
}, Z = {
|
|
2018
2026
|
"@type": "@builder.io/sdk:Element",
|
|
2019
2027
|
responsiveStyles: {
|
|
2020
2028
|
large: {
|
|
@@ -2030,7 +2038,7 @@ const Gt = {
|
|
|
2030
2038
|
text: "New tab content "
|
|
2031
2039
|
}
|
|
2032
2040
|
}
|
|
2033
|
-
},
|
|
2041
|
+
}, Qt = {
|
|
2034
2042
|
name: "Builder: Tabs",
|
|
2035
2043
|
inputs: [{
|
|
2036
2044
|
name: "tabs",
|
|
@@ -2040,16 +2048,16 @@ const Gt = {
|
|
|
2040
2048
|
name: "label",
|
|
2041
2049
|
type: "uiBlocks",
|
|
2042
2050
|
hideFromUI: !0,
|
|
2043
|
-
defaultValue: [
|
|
2051
|
+
defaultValue: [X]
|
|
2044
2052
|
}, {
|
|
2045
2053
|
name: "content",
|
|
2046
2054
|
type: "uiBlocks",
|
|
2047
2055
|
hideFromUI: !0,
|
|
2048
|
-
defaultValue: [
|
|
2056
|
+
defaultValue: [Z]
|
|
2049
2057
|
}],
|
|
2050
2058
|
defaultValue: [{
|
|
2051
2059
|
label: [{
|
|
2052
|
-
...
|
|
2060
|
+
...X,
|
|
2053
2061
|
component: {
|
|
2054
2062
|
name: "Text",
|
|
2055
2063
|
options: {
|
|
@@ -2058,7 +2066,7 @@ const Gt = {
|
|
|
2058
2066
|
}
|
|
2059
2067
|
}],
|
|
2060
2068
|
content: [{
|
|
2061
|
-
...
|
|
2069
|
+
...Z,
|
|
2062
2070
|
component: {
|
|
2063
2071
|
name: "Text",
|
|
2064
2072
|
options: {
|
|
@@ -2068,7 +2076,7 @@ const Gt = {
|
|
|
2068
2076
|
}]
|
|
2069
2077
|
}, {
|
|
2070
2078
|
label: [{
|
|
2071
|
-
...
|
|
2079
|
+
...X,
|
|
2072
2080
|
component: {
|
|
2073
2081
|
name: "Text",
|
|
2074
2082
|
options: {
|
|
@@ -2077,7 +2085,7 @@ const Gt = {
|
|
|
2077
2085
|
}
|
|
2078
2086
|
}],
|
|
2079
2087
|
content: [{
|
|
2080
|
-
...
|
|
2088
|
+
...Z,
|
|
2081
2089
|
component: {
|
|
2082
2090
|
name: "Text",
|
|
2083
2091
|
options: {
|
|
@@ -2134,19 +2142,19 @@ const Gt = {
|
|
|
2134
2142
|
builderLinkComponent: !0
|
|
2135
2143
|
}
|
|
2136
2144
|
};
|
|
2137
|
-
function
|
|
2138
|
-
var
|
|
2139
|
-
const [t, n] =
|
|
2145
|
+
function Xt(e) {
|
|
2146
|
+
var r;
|
|
2147
|
+
const [t, n] = R(
|
|
2140
2148
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2141
2149
|
);
|
|
2142
|
-
function i(
|
|
2143
|
-
return e.tabs && e.tabs[
|
|
2150
|
+
function i(a) {
|
|
2151
|
+
return e.tabs && e.tabs[a].content;
|
|
2144
2152
|
}
|
|
2145
|
-
function o(
|
|
2146
|
-
|
|
2153
|
+
function o(a) {
|
|
2154
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2147
2155
|
}
|
|
2148
2156
|
return /* @__PURE__ */ V("div", { children: [
|
|
2149
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ s(
|
|
2150
2158
|
"div",
|
|
2151
2159
|
{
|
|
2152
2160
|
className: "builder-tabs-wrap",
|
|
@@ -2156,35 +2164,35 @@ function Qt(e) {
|
|
|
2156
2164
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2157
2165
|
overflow: "auto"
|
|
2158
2166
|
},
|
|
2159
|
-
children: (
|
|
2167
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
2160
2168
|
"span",
|
|
2161
2169
|
{
|
|
2162
|
-
className: `builder-tab-wrap ${t ===
|
|
2170
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2163
2171
|
style: {
|
|
2164
|
-
...t ===
|
|
2172
|
+
...t === l ? e.activeTabStyle : {}
|
|
2165
2173
|
},
|
|
2166
|
-
onClick: (d) => o(
|
|
2167
|
-
children: /* @__PURE__ */
|
|
2174
|
+
onClick: (d) => o(l),
|
|
2175
|
+
children: /* @__PURE__ */ s(
|
|
2168
2176
|
F,
|
|
2169
2177
|
{
|
|
2170
2178
|
parent: e.builderBlock.id,
|
|
2171
|
-
path: `
|
|
2172
|
-
blocks:
|
|
2179
|
+
path: `tabs.${l}.label`,
|
|
2180
|
+
blocks: a.label,
|
|
2173
2181
|
context: e.builderContext,
|
|
2174
2182
|
registeredComponents: e.builderComponents,
|
|
2175
2183
|
linkComponent: e.builderLinkComponent
|
|
2176
2184
|
}
|
|
2177
2185
|
)
|
|
2178
2186
|
},
|
|
2179
|
-
|
|
2187
|
+
l
|
|
2180
2188
|
))
|
|
2181
2189
|
}
|
|
2182
2190
|
),
|
|
2183
|
-
i(t) ? /* @__PURE__ */
|
|
2191
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2184
2192
|
F,
|
|
2185
2193
|
{
|
|
2186
2194
|
parent: e.builderBlock.id,
|
|
2187
|
-
path: `
|
|
2195
|
+
path: `tabs.${t}.content`,
|
|
2188
2196
|
blocks: i(t),
|
|
2189
2197
|
context: e.builderContext,
|
|
2190
2198
|
registeredComponents: e.builderComponents,
|
|
@@ -2193,7 +2201,7 @@ function Qt(e) {
|
|
|
2193
2201
|
) }) : null
|
|
2194
2202
|
] });
|
|
2195
2203
|
}
|
|
2196
|
-
const
|
|
2204
|
+
const Zt = {
|
|
2197
2205
|
shouldReceiveBuilderProps: {
|
|
2198
2206
|
builderBlock: !1,
|
|
2199
2207
|
builderContext: !0
|
|
@@ -2216,27 +2224,27 @@ const Xt = {
|
|
|
2216
2224
|
textAlign: "center"
|
|
2217
2225
|
}
|
|
2218
2226
|
};
|
|
2219
|
-
function
|
|
2227
|
+
function en(e) {
|
|
2220
2228
|
function t() {
|
|
2221
|
-
var
|
|
2229
|
+
var l;
|
|
2222
2230
|
const n = e.builderContext, {
|
|
2223
2231
|
context: i,
|
|
2224
2232
|
localState: o,
|
|
2225
|
-
rootState:
|
|
2226
|
-
rootSetState:
|
|
2233
|
+
rootState: r,
|
|
2234
|
+
rootSetState: a
|
|
2227
2235
|
} = n;
|
|
2228
|
-
return String(((
|
|
2236
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2229
2237
|
/{{([^}]+)}}/g,
|
|
2230
2238
|
(d, c) => L({
|
|
2231
2239
|
code: c,
|
|
2232
2240
|
context: i,
|
|
2233
2241
|
localState: o,
|
|
2234
|
-
rootState:
|
|
2235
|
-
rootSetState:
|
|
2242
|
+
rootState: r,
|
|
2243
|
+
rootSetState: a
|
|
2236
2244
|
})
|
|
2237
2245
|
);
|
|
2238
2246
|
}
|
|
2239
|
-
return /* @__PURE__ */
|
|
2247
|
+
return /* @__PURE__ */ s(
|
|
2240
2248
|
"div",
|
|
2241
2249
|
{
|
|
2242
2250
|
className: "builder-text",
|
|
@@ -2247,7 +2255,7 @@ function Zt(e) {
|
|
|
2247
2255
|
}
|
|
2248
2256
|
);
|
|
2249
2257
|
}
|
|
2250
|
-
const
|
|
2258
|
+
const tn = {
|
|
2251
2259
|
name: "Custom Code",
|
|
2252
2260
|
static: !0,
|
|
2253
2261
|
requiredPermissions: ["editCode"],
|
|
@@ -2270,15 +2278,15 @@ const en = {
|
|
|
2270
2278
|
advanced: !0
|
|
2271
2279
|
}]
|
|
2272
2280
|
};
|
|
2273
|
-
function
|
|
2274
|
-
const t = $(null), [n, i] =
|
|
2281
|
+
function nn(e) {
|
|
2282
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []);
|
|
2275
2283
|
return B(() => {
|
|
2276
|
-
var
|
|
2277
|
-
if (!((
|
|
2284
|
+
var l;
|
|
2285
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2278
2286
|
return;
|
|
2279
|
-
const
|
|
2280
|
-
for (let d = 0; d <
|
|
2281
|
-
const c =
|
|
2287
|
+
const a = t.current.getElementsByTagName("script");
|
|
2288
|
+
for (let d = 0; d < a.length; d++) {
|
|
2289
|
+
const c = a[d];
|
|
2282
2290
|
if (c.src) {
|
|
2283
2291
|
if (n.includes(c.src))
|
|
2284
2292
|
continue;
|
|
@@ -2299,7 +2307,7 @@ function tn(e) {
|
|
|
2299
2307
|
}
|
|
2300
2308
|
}
|
|
2301
2309
|
}
|
|
2302
|
-
}, []), /* @__PURE__ */
|
|
2310
|
+
}, []), /* @__PURE__ */ s(
|
|
2303
2311
|
"div",
|
|
2304
2312
|
{
|
|
2305
2313
|
ref: t,
|
|
@@ -2308,7 +2316,7 @@ function tn(e) {
|
|
|
2308
2316
|
}
|
|
2309
2317
|
);
|
|
2310
2318
|
}
|
|
2311
|
-
const
|
|
2319
|
+
const on = {
|
|
2312
2320
|
name: "Embed",
|
|
2313
2321
|
static: !0,
|
|
2314
2322
|
inputs: [{
|
|
@@ -2323,9 +2331,9 @@ const nn = {
|
|
|
2323
2331
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2324
2332
|
hideFromUI: !0
|
|
2325
2333
|
}]
|
|
2326
|
-
},
|
|
2327
|
-
function
|
|
2328
|
-
const t = $(null), [n, i] =
|
|
2334
|
+
}, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
|
|
2335
|
+
function ln(e) {
|
|
2336
|
+
const t = $(null), [n, i] = R(() => []), [o, r] = R(() => []), [a, l] = R(() => !1);
|
|
2329
2337
|
function d() {
|
|
2330
2338
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2331
2339
|
return;
|
|
@@ -2336,7 +2344,7 @@ function rn(e) {
|
|
|
2336
2344
|
n.push(g.src);
|
|
2337
2345
|
const m = document.createElement("script");
|
|
2338
2346
|
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2339
|
-
} else if (
|
|
2347
|
+
} else if (rn(g) && !o.includes(g.innerText))
|
|
2340
2348
|
try {
|
|
2341
2349
|
o.push(g.innerText), new Function(g.innerText)();
|
|
2342
2350
|
} catch (m) {
|
|
@@ -2345,8 +2353,8 @@ function rn(e) {
|
|
|
2345
2353
|
}
|
|
2346
2354
|
}
|
|
2347
2355
|
return B(() => {
|
|
2348
|
-
t.current && !
|
|
2349
|
-
}, [t.current,
|
|
2356
|
+
t.current && !a && (l(!0), d());
|
|
2357
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2350
2358
|
"div",
|
|
2351
2359
|
{
|
|
2352
2360
|
className: "builder-embed",
|
|
@@ -2355,7 +2363,7 @@ function rn(e) {
|
|
|
2355
2363
|
}
|
|
2356
2364
|
);
|
|
2357
2365
|
}
|
|
2358
|
-
const
|
|
2366
|
+
const sn = {
|
|
2359
2367
|
name: "Form:Form",
|
|
2360
2368
|
// editableTags: ['builder-form-error']
|
|
2361
2369
|
defaults: {
|
|
@@ -2592,120 +2600,117 @@ const ln = {
|
|
|
2592
2600
|
builderComponents: !0,
|
|
2593
2601
|
builderLinkComponent: !0
|
|
2594
2602
|
}
|
|
2595
|
-
},
|
|
2603
|
+
}, cn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], dn = () => {
|
|
2596
2604
|
const e = process.env.NODE_ENV || "production";
|
|
2597
|
-
return
|
|
2605
|
+
return cn.includes(e) ? e : "production";
|
|
2598
2606
|
};
|
|
2599
|
-
function
|
|
2607
|
+
function un(e) {
|
|
2600
2608
|
var g, m;
|
|
2601
|
-
const t = $(null), [n, i] =
|
|
2602
|
-
function d(
|
|
2603
|
-
var
|
|
2609
|
+
const t = $(null), [n, i] = R(() => "unsubmitted"), [o, r] = R(() => null), [a, l] = R(() => "");
|
|
2610
|
+
function d(x) {
|
|
2611
|
+
var S, v;
|
|
2604
2612
|
const f = {
|
|
2605
2613
|
...e.builderContext.rootState,
|
|
2606
|
-
...
|
|
2614
|
+
...x
|
|
2607
2615
|
};
|
|
2608
|
-
e.builderContext.rootSetState ? (
|
|
2616
|
+
e.builderContext.rootSetState ? (v = (S = e.builderContext).rootSetState) == null || v.call(S, f) : e.builderContext.rootState = f;
|
|
2609
2617
|
}
|
|
2610
2618
|
function c() {
|
|
2611
2619
|
return N() && e.previewState || n;
|
|
2612
2620
|
}
|
|
2613
|
-
function h(
|
|
2614
|
-
var
|
|
2621
|
+
function h(x) {
|
|
2622
|
+
var S;
|
|
2615
2623
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2616
2624
|
if (e.sendSubmissionsTo === "zapier")
|
|
2617
|
-
|
|
2625
|
+
x.preventDefault();
|
|
2618
2626
|
else if (f) {
|
|
2619
2627
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2620
|
-
|
|
2628
|
+
x.preventDefault();
|
|
2621
2629
|
return;
|
|
2622
2630
|
}
|
|
2623
|
-
|
|
2624
|
-
const
|
|
2631
|
+
x.preventDefault();
|
|
2632
|
+
const v = x.currentTarget || x.target, p = e.customHeaders || {};
|
|
2625
2633
|
let b;
|
|
2626
|
-
const
|
|
2627
|
-
let
|
|
2628
|
-
const
|
|
2634
|
+
const y = new FormData(v), A = Array.from(v.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2635
|
+
let C;
|
|
2636
|
+
const W = u.name;
|
|
2629
2637
|
if (u instanceof HTMLInputElement)
|
|
2630
2638
|
if (u.type === "radio") {
|
|
2631
2639
|
if (u.checked)
|
|
2632
|
-
return
|
|
2633
|
-
key:
|
|
2634
|
-
value:
|
|
2640
|
+
return C = u.name, {
|
|
2641
|
+
key: W,
|
|
2642
|
+
value: C
|
|
2635
2643
|
};
|
|
2636
2644
|
} else if (u.type === "checkbox")
|
|
2637
|
-
|
|
2645
|
+
C = u.checked;
|
|
2638
2646
|
else if (u.type === "number" || u.type === "range") {
|
|
2639
|
-
const
|
|
2640
|
-
isNaN(
|
|
2647
|
+
const E = u.valueAsNumber;
|
|
2648
|
+
isNaN(E) || (C = E);
|
|
2641
2649
|
} else
|
|
2642
|
-
u.type === "file" ?
|
|
2650
|
+
u.type === "file" ? C = u.files : C = u.value;
|
|
2643
2651
|
else
|
|
2644
|
-
|
|
2652
|
+
C = u.value;
|
|
2645
2653
|
return {
|
|
2646
|
-
key:
|
|
2647
|
-
value:
|
|
2654
|
+
key: W,
|
|
2655
|
+
value: C
|
|
2648
2656
|
};
|
|
2649
2657
|
});
|
|
2650
|
-
let
|
|
2651
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2652
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2653
|
-
}),
|
|
2654
|
-
b =
|
|
2658
|
+
let k = e.contentType;
|
|
2659
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2660
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (k = "multipart/form-data");
|
|
2661
|
+
}), k !== "application/json")
|
|
2662
|
+
b = y;
|
|
2655
2663
|
else {
|
|
2656
2664
|
const u = {};
|
|
2657
|
-
Array.from(A).forEach(({ value:
|
|
2658
|
-
|
|
2665
|
+
Array.from(A).forEach(({ value: C, key: W }) => {
|
|
2666
|
+
Ie(u, W, C);
|
|
2659
2667
|
}), b = JSON.stringify(u);
|
|
2660
2668
|
}
|
|
2661
|
-
|
|
2662
|
-
const
|
|
2663
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2669
|
+
k && k !== "multipart/form-data" && (f && ((S = e.action) != null && S.includes("zapier.com")) || (p["content-type"] = k));
|
|
2670
|
+
const w = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2671
|
+
if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
|
|
2664
2672
|
return;
|
|
2665
2673
|
i("sending");
|
|
2666
|
-
const P = `${
|
|
2674
|
+
const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2667
2675
|
e.sendSubmissionsToEmail || ""
|
|
2668
|
-
)}&name=${encodeURIComponent(e.name || "")}
|
|
2669
|
-
fetch(
|
|
2670
|
-
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2671
|
-
{ body: b, headers: p, method: e.method || "post" }
|
|
2672
|
-
).then(
|
|
2676
|
+
)}&name=${encodeURIComponent(e.name || "")}`, T = e.sendSubmissionsTo === "email" ? P : e.action;
|
|
2677
|
+
Se(T), fetch(T, { body: b, headers: p, method: e.method || "post" }).then(
|
|
2673
2678
|
async (u) => {
|
|
2674
|
-
let
|
|
2675
|
-
const
|
|
2676
|
-
if (
|
|
2677
|
-
let
|
|
2678
|
-
|
|
2679
|
+
let C;
|
|
2680
|
+
const W = u.headers.get("content-type");
|
|
2681
|
+
if (W && W.indexOf("application/json") !== -1 ? C = await u.json() : C = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2682
|
+
let E = Ee(C, e.errorMessagePath);
|
|
2683
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
2679
2684
|
}
|
|
2680
|
-
if (
|
|
2681
|
-
const
|
|
2682
|
-
detail: { res: u, body:
|
|
2685
|
+
if (r(C), i(u.ok ? "success" : "error"), u.ok) {
|
|
2686
|
+
const E = new CustomEvent("submit:success", {
|
|
2687
|
+
detail: { res: u, body: C }
|
|
2683
2688
|
});
|
|
2684
2689
|
if (t.current) {
|
|
2685
|
-
if (t.current.dispatchEvent(
|
|
2690
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
2686
2691
|
return;
|
|
2687
2692
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2688
2693
|
}
|
|
2689
2694
|
if (e.successUrl)
|
|
2690
2695
|
if (t.current) {
|
|
2691
|
-
const
|
|
2696
|
+
const j = new CustomEvent("route", {
|
|
2692
2697
|
detail: { url: e.successUrl }
|
|
2693
2698
|
});
|
|
2694
|
-
t.current.dispatchEvent(
|
|
2699
|
+
t.current.dispatchEvent(j), j.defaultPrevented || (location.href = e.successUrl);
|
|
2695
2700
|
} else
|
|
2696
2701
|
location.href = e.successUrl;
|
|
2697
2702
|
}
|
|
2698
2703
|
},
|
|
2699
2704
|
(u) => {
|
|
2700
|
-
const
|
|
2705
|
+
const C = new CustomEvent("submit:error", {
|
|
2701
2706
|
detail: { error: u }
|
|
2702
2707
|
});
|
|
2703
|
-
t.current && (t.current.dispatchEvent(
|
|
2708
|
+
t.current && (t.current.dispatchEvent(C), C.defaultPrevented) || (r(u), i("error"));
|
|
2704
2709
|
}
|
|
2705
2710
|
);
|
|
2706
2711
|
}
|
|
2707
2712
|
}
|
|
2708
|
-
return /* @__PURE__ */ V(
|
|
2713
|
+
return /* @__PURE__ */ V(I, { children: [
|
|
2709
2714
|
" ",
|
|
2710
2715
|
/* @__PURE__ */ V(
|
|
2711
2716
|
"form",
|
|
@@ -2715,20 +2720,20 @@ function dn(e) {
|
|
|
2715
2720
|
action: !e.sendWithJs && e.action,
|
|
2716
2721
|
method: e.method,
|
|
2717
2722
|
name: e.name,
|
|
2718
|
-
onSubmit: (
|
|
2723
|
+
onSubmit: (x) => h(x),
|
|
2719
2724
|
...e.attributes,
|
|
2720
2725
|
children: [
|
|
2721
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2726
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(I, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((x, f) => /* @__PURE__ */ s(
|
|
2722
2727
|
H,
|
|
2723
2728
|
{
|
|
2724
|
-
block:
|
|
2729
|
+
block: x,
|
|
2725
2730
|
context: e.builderContext,
|
|
2726
2731
|
registeredComponents: e.builderComponents,
|
|
2727
2732
|
linkComponent: e.builderLinkComponent
|
|
2728
2733
|
},
|
|
2729
2734
|
`form-block-${f}`
|
|
2730
2735
|
)) }) : null,
|
|
2731
|
-
c() === "error" ? /* @__PURE__ */
|
|
2736
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2732
2737
|
F,
|
|
2733
2738
|
{
|
|
2734
2739
|
path: "errorMessage",
|
|
@@ -2736,7 +2741,7 @@ function dn(e) {
|
|
|
2736
2741
|
context: e.builderContext
|
|
2737
2742
|
}
|
|
2738
2743
|
) : null,
|
|
2739
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2744
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2740
2745
|
F,
|
|
2741
2746
|
{
|
|
2742
2747
|
path: "sendingMessage",
|
|
@@ -2744,8 +2749,8 @@ function dn(e) {
|
|
|
2744
2749
|
context: e.builderContext
|
|
2745
2750
|
}
|
|
2746
2751
|
) : null,
|
|
2747
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2748
|
-
c() === "success" ? /* @__PURE__ */
|
|
2752
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-135d4696", children: JSON.stringify(o, null, 2) }) : null,
|
|
2753
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2749
2754
|
F,
|
|
2750
2755
|
{
|
|
2751
2756
|
path: "successMessage",
|
|
@@ -2757,11 +2762,11 @@ function dn(e) {
|
|
|
2757
2762
|
}
|
|
2758
2763
|
),
|
|
2759
2764
|
" ",
|
|
2760
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ s("style", { children: ".pre-135d4696 { padding: 10px; color: red; text-align: center; }" }),
|
|
2761
2766
|
" "
|
|
2762
2767
|
] });
|
|
2763
2768
|
}
|
|
2764
|
-
const
|
|
2769
|
+
const mn = {
|
|
2765
2770
|
name: "Form:Input",
|
|
2766
2771
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2767
2772
|
inputs: [
|
|
@@ -2813,8 +2818,8 @@ const un = {
|
|
|
2813
2818
|
borderColor: "#ccc"
|
|
2814
2819
|
}
|
|
2815
2820
|
};
|
|
2816
|
-
function
|
|
2817
|
-
return /* @__PURE__ */
|
|
2821
|
+
function fn(e) {
|
|
2822
|
+
return /* @__PURE__ */ Te(
|
|
2818
2823
|
"input",
|
|
2819
2824
|
{
|
|
2820
2825
|
...e.attributes,
|
|
@@ -2828,7 +2833,7 @@ function mn(e) {
|
|
|
2828
2833
|
}
|
|
2829
2834
|
);
|
|
2830
2835
|
}
|
|
2831
|
-
const
|
|
2836
|
+
const hn = {
|
|
2832
2837
|
name: "Form:Select",
|
|
2833
2838
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2834
2839
|
defaultStyles: {
|
|
@@ -2871,9 +2876,9 @@ const fn = {
|
|
|
2871
2876
|
static: !0,
|
|
2872
2877
|
noWrap: !0
|
|
2873
2878
|
};
|
|
2874
|
-
function
|
|
2879
|
+
function gn(e) {
|
|
2875
2880
|
var t;
|
|
2876
|
-
return /* @__PURE__ */
|
|
2881
|
+
return /* @__PURE__ */ Te(
|
|
2877
2882
|
"select",
|
|
2878
2883
|
{
|
|
2879
2884
|
...e.attributes,
|
|
@@ -2883,10 +2888,10 @@ function hn(e) {
|
|
|
2883
2888
|
name: e.name,
|
|
2884
2889
|
required: e.required
|
|
2885
2890
|
},
|
|
2886
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2891
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2887
2892
|
);
|
|
2888
2893
|
}
|
|
2889
|
-
const
|
|
2894
|
+
const bn = {
|
|
2890
2895
|
name: "Form:SubmitButton",
|
|
2891
2896
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2892
2897
|
defaultStyles: {
|
|
@@ -2912,10 +2917,10 @@ const gn = {
|
|
|
2912
2917
|
// TODO: defaultChildren
|
|
2913
2918
|
// canHaveChildren: true,
|
|
2914
2919
|
};
|
|
2915
|
-
function
|
|
2916
|
-
return /* @__PURE__ */
|
|
2920
|
+
function pn(e) {
|
|
2921
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2917
2922
|
}
|
|
2918
|
-
const
|
|
2923
|
+
const yn = {
|
|
2919
2924
|
name: "Form:TextArea",
|
|
2920
2925
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2921
2926
|
inputs: [{
|
|
@@ -2952,8 +2957,8 @@ const pn = {
|
|
|
2952
2957
|
static: !0,
|
|
2953
2958
|
noWrap: !0
|
|
2954
2959
|
};
|
|
2955
|
-
function
|
|
2956
|
-
return /* @__PURE__ */
|
|
2960
|
+
function xn(e) {
|
|
2961
|
+
return /* @__PURE__ */ s(
|
|
2957
2962
|
"textarea",
|
|
2958
2963
|
{
|
|
2959
2964
|
...e.attributes,
|
|
@@ -2965,7 +2970,7 @@ function yn(e) {
|
|
|
2965
2970
|
}
|
|
2966
2971
|
);
|
|
2967
2972
|
}
|
|
2968
|
-
const
|
|
2973
|
+
const vn = {
|
|
2969
2974
|
// friendlyName?
|
|
2970
2975
|
name: "Raw:Img",
|
|
2971
2976
|
hideFromInsertMenu: !0,
|
|
@@ -2980,8 +2985,8 @@ const xn = {
|
|
|
2980
2985
|
noWrap: !0,
|
|
2981
2986
|
static: !0
|
|
2982
2987
|
};
|
|
2983
|
-
function
|
|
2984
|
-
return /* @__PURE__ */
|
|
2988
|
+
function Sn(e) {
|
|
2989
|
+
return /* @__PURE__ */ s(
|
|
2985
2990
|
"img",
|
|
2986
2991
|
{
|
|
2987
2992
|
style: {
|
|
@@ -2995,7 +3000,7 @@ function vn(e) {
|
|
|
2995
3000
|
N() && e.imgSrc || "default-key"
|
|
2996
3001
|
);
|
|
2997
3002
|
}
|
|
2998
|
-
const
|
|
3003
|
+
const kn = {
|
|
2999
3004
|
name: "Video",
|
|
3000
3005
|
canHaveChildren: !0,
|
|
3001
3006
|
defaultStyles: {
|
|
@@ -3080,8 +3085,8 @@ const Sn = {
|
|
|
3080
3085
|
builderBlock: !0
|
|
3081
3086
|
}
|
|
3082
3087
|
};
|
|
3083
|
-
function
|
|
3084
|
-
var i, o,
|
|
3088
|
+
function Cn(e) {
|
|
3089
|
+
var i, o, r, a, l, d, c;
|
|
3085
3090
|
function t() {
|
|
3086
3091
|
return {
|
|
3087
3092
|
...e.autoPlay === !0 ? {
|
|
@@ -3113,7 +3118,7 @@ function kn(e) {
|
|
|
3113
3118
|
position: "relative"
|
|
3114
3119
|
},
|
|
3115
3120
|
children: [
|
|
3116
|
-
/* @__PURE__ */
|
|
3121
|
+
/* @__PURE__ */ s(
|
|
3117
3122
|
"video",
|
|
3118
3123
|
{
|
|
3119
3124
|
className: "builder-video",
|
|
@@ -3135,10 +3140,10 @@ function kn(e) {
|
|
|
3135
3140
|
},
|
|
3136
3141
|
src: e.video || "no-src",
|
|
3137
3142
|
poster: e.posterImage,
|
|
3138
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3143
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3139
3144
|
}
|
|
3140
3145
|
),
|
|
3141
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3146
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3142
3147
|
"div",
|
|
3143
3148
|
{
|
|
3144
3149
|
style: {
|
|
@@ -3149,7 +3154,7 @@ function kn(e) {
|
|
|
3149
3154
|
}
|
|
3150
3155
|
}
|
|
3151
3156
|
) : null,
|
|
3152
|
-
(
|
|
3157
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3153
3158
|
"div",
|
|
3154
3159
|
{
|
|
3155
3160
|
style: {
|
|
@@ -3160,7 +3165,7 @@ function kn(e) {
|
|
|
3160
3165
|
children: e.children
|
|
3161
3166
|
}
|
|
3162
3167
|
) : null,
|
|
3163
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3168
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3164
3169
|
"div",
|
|
3165
3170
|
{
|
|
3166
3171
|
style: {
|
|
@@ -3181,64 +3186,64 @@ function kn(e) {
|
|
|
3181
3186
|
}
|
|
3182
3187
|
);
|
|
3183
3188
|
}
|
|
3184
|
-
const
|
|
3185
|
-
component:
|
|
3186
|
-
...
|
|
3189
|
+
const Tn = () => [{
|
|
3190
|
+
component: nn,
|
|
3191
|
+
...tn
|
|
3187
3192
|
}, {
|
|
3188
|
-
component:
|
|
3189
|
-
...
|
|
3193
|
+
component: ln,
|
|
3194
|
+
...on
|
|
3190
3195
|
}, {
|
|
3191
|
-
component:
|
|
3192
|
-
...
|
|
3196
|
+
component: un,
|
|
3197
|
+
...sn
|
|
3193
3198
|
}, {
|
|
3194
|
-
component:
|
|
3195
|
-
...
|
|
3199
|
+
component: fn,
|
|
3200
|
+
...mn
|
|
3196
3201
|
}, {
|
|
3197
|
-
component:
|
|
3198
|
-
...
|
|
3202
|
+
component: pn,
|
|
3203
|
+
...bn
|
|
3199
3204
|
}, {
|
|
3200
|
-
component:
|
|
3201
|
-
...
|
|
3205
|
+
component: gn,
|
|
3206
|
+
...hn
|
|
3202
3207
|
}, {
|
|
3203
|
-
component:
|
|
3204
|
-
...
|
|
3208
|
+
component: xn,
|
|
3209
|
+
...yn
|
|
3205
3210
|
}, {
|
|
3206
|
-
component:
|
|
3207
|
-
...
|
|
3211
|
+
component: Sn,
|
|
3212
|
+
...vn
|
|
3208
3213
|
}, {
|
|
3209
|
-
component:
|
|
3210
|
-
...
|
|
3211
|
-
}],
|
|
3212
|
-
component:
|
|
3213
|
-
...jt
|
|
3214
|
-
}, {
|
|
3215
|
-
component: Nt,
|
|
3214
|
+
component: Cn,
|
|
3215
|
+
...kn
|
|
3216
|
+
}], be = () => [{
|
|
3217
|
+
component: Xe,
|
|
3216
3218
|
...Mt
|
|
3217
3219
|
}, {
|
|
3218
3220
|
component: Ft,
|
|
3219
3221
|
..._t
|
|
3220
3222
|
}, {
|
|
3221
|
-
component:
|
|
3223
|
+
component: $t,
|
|
3222
3224
|
...qt
|
|
3223
3225
|
}, {
|
|
3224
3226
|
component: Ot,
|
|
3225
3227
|
...Kt
|
|
3226
3228
|
}, {
|
|
3227
|
-
component:
|
|
3229
|
+
component: Ut,
|
|
3228
3230
|
...zt
|
|
3229
3231
|
}, {
|
|
3230
|
-
component:
|
|
3231
|
-
...
|
|
3232
|
-
}, {
|
|
3233
|
-
component: Zt,
|
|
3234
|
-
...Xt
|
|
3232
|
+
component: Gt,
|
|
3233
|
+
...Jt
|
|
3235
3234
|
}, {
|
|
3236
|
-
component:
|
|
3235
|
+
component: zn,
|
|
3237
3236
|
...Yt
|
|
3238
3237
|
}, {
|
|
3239
|
-
component:
|
|
3240
|
-
...
|
|
3241
|
-
},
|
|
3238
|
+
component: en,
|
|
3239
|
+
...Zt
|
|
3240
|
+
}, {
|
|
3241
|
+
component: Xt,
|
|
3242
|
+
...Qt
|
|
3243
|
+
}, {
|
|
3244
|
+
component: jt,
|
|
3245
|
+
...Ht
|
|
3246
|
+
}, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3242
3247
|
function getAndSetVariantId() {
|
|
3243
3248
|
function setCookie(name, value, days) {
|
|
3244
3249
|
let expires = '';
|
|
@@ -3294,7 +3299,7 @@ const Cn = () => [{
|
|
|
3294
3299
|
}).join('');
|
|
3295
3300
|
styleEl.innerHTML = newStyleStr;
|
|
3296
3301
|
}
|
|
3297
|
-
}`,
|
|
3302
|
+
}`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3298
3303
|
if (!navigator.cookieEnabled) {
|
|
3299
3304
|
return;
|
|
3300
3305
|
}
|
|
@@ -3328,27 +3333,27 @@ const Cn = () => [{
|
|
|
3328
3333
|
thisScriptEl?.remove();
|
|
3329
3334
|
}
|
|
3330
3335
|
return;
|
|
3331
|
-
}`,
|
|
3336
|
+
}`, $e = "builderIoAbTest", De = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3332
3337
|
...t,
|
|
3333
3338
|
testVariationId: t.id,
|
|
3334
3339
|
id: e == null ? void 0 : e.id
|
|
3335
|
-
})),
|
|
3340
|
+
})), En = ({
|
|
3336
3341
|
canTrack: e,
|
|
3337
3342
|
content: t
|
|
3338
|
-
}) => !(!(
|
|
3339
|
-
window.${
|
|
3340
|
-
window.${
|
|
3341
|
-
`,
|
|
3342
|
-
window.${
|
|
3343
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3344
|
-
)`,
|
|
3343
|
+
}) => !(!(_(t).length > 0) || !e || q()), Rn = (e) => e === "react" || e === "reactNative", Le = Rn(D), Pn = () => `
|
|
3344
|
+
window.${$e} = ${In}
|
|
3345
|
+
window.${De} = ${wn}
|
|
3346
|
+
`, Bn = (e, t) => `
|
|
3347
|
+
window.${$e}(
|
|
3348
|
+
"${t}",${JSON.stringify(e)}, ${Le}
|
|
3349
|
+
)`, Vn = ({
|
|
3345
3350
|
contentId: e,
|
|
3346
3351
|
variationId: t
|
|
3347
|
-
}) => `window.${
|
|
3348
|
-
"${t}", "${e}", ${
|
|
3352
|
+
}) => `window.${De}(
|
|
3353
|
+
"${t}", "${e}", ${Le}
|
|
3349
3354
|
)`;
|
|
3350
|
-
function
|
|
3351
|
-
return /* @__PURE__ */
|
|
3355
|
+
function ne(e) {
|
|
3356
|
+
return /* @__PURE__ */ s(
|
|
3352
3357
|
"script",
|
|
3353
3358
|
{
|
|
3354
3359
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3357,10 +3362,10 @@ function te(e) {
|
|
|
3357
3362
|
}
|
|
3358
3363
|
);
|
|
3359
3364
|
}
|
|
3360
|
-
function
|
|
3365
|
+
function pe(e) {
|
|
3361
3366
|
return Math.round(e * 1e3) / 1e3;
|
|
3362
3367
|
}
|
|
3363
|
-
const
|
|
3368
|
+
const An = (e, t, n = !0) => {
|
|
3364
3369
|
if (!(e instanceof HTMLElement))
|
|
3365
3370
|
return null;
|
|
3366
3371
|
let i = n ? e : e.parentElement;
|
|
@@ -3371,37 +3376,37 @@ const Vn = (e, t, n = !0) => {
|
|
|
3371
3376
|
return i;
|
|
3372
3377
|
} while (i = i.parentElement);
|
|
3373
3378
|
return null;
|
|
3374
|
-
},
|
|
3379
|
+
}, Wn = (e) => An(e, (t) => {
|
|
3375
3380
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3376
3381
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3377
|
-
}),
|
|
3382
|
+
}), ye = ({
|
|
3378
3383
|
event: e,
|
|
3379
3384
|
target: t
|
|
3380
3385
|
}) => {
|
|
3381
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3386
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
|
|
3382
3387
|
return {
|
|
3383
|
-
x:
|
|
3384
|
-
y:
|
|
3388
|
+
x: r,
|
|
3389
|
+
y: a
|
|
3385
3390
|
};
|
|
3386
|
-
},
|
|
3387
|
-
const t = e.target, n = t &&
|
|
3391
|
+
}, Nn = (e) => {
|
|
3392
|
+
const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3388
3393
|
return {
|
|
3389
3394
|
targetBuilderElement: i || void 0,
|
|
3390
3395
|
metadata: {
|
|
3391
|
-
targetOffset: t ?
|
|
3396
|
+
targetOffset: t ? ye({
|
|
3392
3397
|
event: e,
|
|
3393
3398
|
target: t
|
|
3394
3399
|
}) : void 0,
|
|
3395
|
-
builderTargetOffset: n ?
|
|
3400
|
+
builderTargetOffset: n ? ye({
|
|
3396
3401
|
event: e,
|
|
3397
3402
|
target: n
|
|
3398
3403
|
}) : void 0,
|
|
3399
3404
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3400
3405
|
}
|
|
3401
3406
|
};
|
|
3402
|
-
},
|
|
3403
|
-
var
|
|
3404
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3407
|
+
}, Fn = (e) => {
|
|
3408
|
+
var r, a;
|
|
3409
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3405
3410
|
let o = "";
|
|
3406
3411
|
if (i && t && n && (o += `
|
|
3407
3412
|
@font-face {
|
|
@@ -3411,29 +3416,29 @@ font-display: fallback;
|
|
|
3411
3416
|
font-weight: 400;
|
|
3412
3417
|
}
|
|
3413
3418
|
`.trim()), e.files)
|
|
3414
|
-
for (const
|
|
3415
|
-
if (!(String(Number(
|
|
3419
|
+
for (const l in e.files) {
|
|
3420
|
+
if (!(String(Number(l)) === l))
|
|
3416
3421
|
continue;
|
|
3417
|
-
const c = e.files[
|
|
3422
|
+
const c = e.files[l];
|
|
3418
3423
|
c && c !== i && (o += `
|
|
3419
3424
|
@font-face {
|
|
3420
3425
|
font-family: "${t}";
|
|
3421
3426
|
src: url('${c}') format('woff2');
|
|
3422
3427
|
font-display: fallback;
|
|
3423
|
-
font-weight: ${
|
|
3428
|
+
font-weight: ${l};
|
|
3424
3429
|
}
|
|
3425
3430
|
`.trim());
|
|
3426
3431
|
}
|
|
3427
3432
|
return o;
|
|
3428
|
-
},
|
|
3433
|
+
}, $n = ({
|
|
3429
3434
|
customFonts: e
|
|
3430
3435
|
}) => {
|
|
3431
3436
|
var t;
|
|
3432
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3433
|
-
},
|
|
3437
|
+
return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3438
|
+
}, Dn = ({
|
|
3434
3439
|
cssCode: e,
|
|
3435
3440
|
contentId: t
|
|
3436
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3441
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
|
|
3437
3442
|
.builder-button {
|
|
3438
3443
|
all: unset;
|
|
3439
3444
|
}
|
|
@@ -3450,39 +3455,39 @@ font-weight: ${s};
|
|
|
3450
3455
|
text-align: inherit;
|
|
3451
3456
|
font-family: inherit;
|
|
3452
3457
|
}
|
|
3453
|
-
`,
|
|
3454
|
-
function
|
|
3455
|
-
var b,
|
|
3458
|
+
`, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
|
|
3459
|
+
function Hn(e) {
|
|
3460
|
+
var b, y, A;
|
|
3456
3461
|
const t = $(null);
|
|
3457
|
-
function n(
|
|
3458
|
-
var P,
|
|
3459
|
-
const
|
|
3462
|
+
function n(k) {
|
|
3463
|
+
var P, T;
|
|
3464
|
+
const w = {
|
|
3460
3465
|
...e.builderContextSignal.rootState,
|
|
3461
|
-
...
|
|
3466
|
+
...k
|
|
3462
3467
|
};
|
|
3463
|
-
e.builderContextSignal.rootSetState ? (
|
|
3464
|
-
...
|
|
3465
|
-
rootState:
|
|
3468
|
+
e.builderContextSignal.rootSetState ? (T = (P = e.builderContextSignal).rootSetState) == null || T.call(P, w) : e.setBuilderContextSignal((u) => ({
|
|
3469
|
+
...u,
|
|
3470
|
+
rootState: w
|
|
3466
3471
|
}));
|
|
3467
3472
|
}
|
|
3468
|
-
function i(
|
|
3469
|
-
var P,
|
|
3470
|
-
const
|
|
3473
|
+
function i(k) {
|
|
3474
|
+
var P, T, u, C, W;
|
|
3475
|
+
const w = {
|
|
3471
3476
|
...e.builderContextSignal.content,
|
|
3472
|
-
...
|
|
3477
|
+
...k,
|
|
3473
3478
|
data: {
|
|
3474
3479
|
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3475
|
-
...
|
|
3480
|
+
...k == null ? void 0 : k.data
|
|
3476
3481
|
},
|
|
3477
3482
|
meta: {
|
|
3478
|
-
...(
|
|
3479
|
-
...
|
|
3480
|
-
breakpoints: ((
|
|
3483
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.meta,
|
|
3484
|
+
...k == null ? void 0 : k.meta,
|
|
3485
|
+
breakpoints: ((u = k == null ? void 0 : k.meta) == null ? void 0 : u.breakpoints) || ((W = (C = e.builderContextSignal.content) == null ? void 0 : C.meta) == null ? void 0 : W.breakpoints)
|
|
3481
3486
|
}
|
|
3482
3487
|
};
|
|
3483
|
-
e.setBuilderContextSignal((
|
|
3484
|
-
...
|
|
3485
|
-
content:
|
|
3488
|
+
e.setBuilderContextSignal((E) => ({
|
|
3489
|
+
...E,
|
|
3490
|
+
content: w
|
|
3486
3491
|
}));
|
|
3487
3492
|
}
|
|
3488
3493
|
function o() {
|
|
@@ -3491,62 +3496,62 @@ function Un(e) {
|
|
|
3491
3496
|
"aria-hidden": !0
|
|
3492
3497
|
};
|
|
3493
3498
|
}
|
|
3494
|
-
const [
|
|
3499
|
+
const [r, a] = R(
|
|
3495
3500
|
() => e.contentWrapper || "div"
|
|
3496
3501
|
);
|
|
3497
|
-
function
|
|
3498
|
-
return
|
|
3502
|
+
function l(k) {
|
|
3503
|
+
return je({
|
|
3499
3504
|
model: e.model,
|
|
3500
3505
|
trustedHosts: e.trustedHosts,
|
|
3501
3506
|
callbacks: {
|
|
3502
|
-
configureSdk: (
|
|
3503
|
-
var
|
|
3504
|
-
const { breakpoints: P, contentId:
|
|
3505
|
-
!
|
|
3507
|
+
configureSdk: (w) => {
|
|
3508
|
+
var u;
|
|
3509
|
+
const { breakpoints: P, contentId: T } = w;
|
|
3510
|
+
!T || T !== ((u = e.builderContextSignal.content) == null ? void 0 : u.id) || P && i({
|
|
3506
3511
|
meta: {
|
|
3507
3512
|
breakpoints: P
|
|
3508
3513
|
}
|
|
3509
3514
|
});
|
|
3510
3515
|
},
|
|
3511
|
-
animation: (
|
|
3512
|
-
|
|
3516
|
+
animation: (w) => {
|
|
3517
|
+
Be(w);
|
|
3513
3518
|
},
|
|
3514
|
-
contentUpdate: (
|
|
3515
|
-
i(
|
|
3519
|
+
contentUpdate: (w) => {
|
|
3520
|
+
i(w);
|
|
3516
3521
|
}
|
|
3517
3522
|
}
|
|
3518
|
-
})(
|
|
3523
|
+
})(k);
|
|
3519
3524
|
}
|
|
3520
|
-
const [d, c] =
|
|
3521
|
-
function f(
|
|
3522
|
-
var
|
|
3525
|
+
const [d, c] = R(() => ({})), [h, g] = R(() => ({})), [m, x] = R(() => !1);
|
|
3526
|
+
function f(k) {
|
|
3527
|
+
var w, P;
|
|
3523
3528
|
if (e.builderContextSignal.content) {
|
|
3524
|
-
const
|
|
3525
|
-
|
|
3529
|
+
const T = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, u = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3530
|
+
se({
|
|
3526
3531
|
apiHost: e.apiHost,
|
|
3527
3532
|
type: "click",
|
|
3528
|
-
canTrack:
|
|
3529
|
-
contentId:
|
|
3533
|
+
canTrack: K(e.canTrack),
|
|
3534
|
+
contentId: u,
|
|
3530
3535
|
apiKey: e.apiKey,
|
|
3531
|
-
variationId:
|
|
3532
|
-
...
|
|
3536
|
+
variationId: T !== u ? T : void 0,
|
|
3537
|
+
...Nn(k),
|
|
3533
3538
|
unique: !m
|
|
3534
3539
|
});
|
|
3535
3540
|
}
|
|
3536
|
-
m ||
|
|
3541
|
+
m || x(!0);
|
|
3537
3542
|
}
|
|
3538
|
-
function
|
|
3539
|
-
var
|
|
3540
|
-
const
|
|
3541
|
-
Object.entries(
|
|
3542
|
-
if (!
|
|
3543
|
+
function S() {
|
|
3544
|
+
var w, P, T;
|
|
3545
|
+
const k = (T = (P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests) != null ? T : {};
|
|
3546
|
+
Object.entries(k).forEach(([u, C]) => {
|
|
3547
|
+
if (!C || h[u] || d[u] && !N())
|
|
3543
3548
|
return;
|
|
3544
|
-
h[
|
|
3545
|
-
const
|
|
3549
|
+
h[u] = !0;
|
|
3550
|
+
const W = C.replace(
|
|
3546
3551
|
/{{([^}]+)}}/g,
|
|
3547
|
-
(
|
|
3552
|
+
(E, j) => String(
|
|
3548
3553
|
L({
|
|
3549
|
-
code:
|
|
3554
|
+
code: j,
|
|
3550
3555
|
context: e.context || {},
|
|
3551
3556
|
localState: void 0,
|
|
3552
3557
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3554,24 +3559,24 @@ function Un(e) {
|
|
|
3554
3559
|
})
|
|
3555
3560
|
)
|
|
3556
3561
|
);
|
|
3557
|
-
fetch(
|
|
3562
|
+
Se(W), fetch(W).then((E) => E.json()).then((E) => {
|
|
3558
3563
|
n({
|
|
3559
|
-
[
|
|
3560
|
-
}), d[
|
|
3561
|
-
}).catch((
|
|
3562
|
-
console.error("error fetching dynamic data",
|
|
3564
|
+
[u]: E
|
|
3565
|
+
}), d[u] = !0;
|
|
3566
|
+
}).catch((E) => {
|
|
3567
|
+
console.error("error fetching dynamic data", C, E);
|
|
3563
3568
|
}).finally(() => {
|
|
3564
|
-
h[
|
|
3569
|
+
h[u] = !1;
|
|
3565
3570
|
});
|
|
3566
3571
|
});
|
|
3567
3572
|
}
|
|
3568
|
-
function
|
|
3573
|
+
function v() {
|
|
3569
3574
|
N() && window.dispatchEvent(
|
|
3570
3575
|
new CustomEvent(
|
|
3571
3576
|
"builder:component:stateChange",
|
|
3572
3577
|
{
|
|
3573
3578
|
detail: {
|
|
3574
|
-
state:
|
|
3579
|
+
state: oe(e.builderContextSignal.rootState),
|
|
3575
3580
|
ref: {
|
|
3576
3581
|
name: e.model
|
|
3577
3582
|
}
|
|
@@ -3581,10 +3586,10 @@ function Un(e) {
|
|
|
3581
3586
|
);
|
|
3582
3587
|
}
|
|
3583
3588
|
const p = $(!1);
|
|
3584
|
-
return p.current || (
|
|
3585
|
-
var
|
|
3586
|
-
if (
|
|
3587
|
-
if (N() && !e.isNestedRender && (window.addEventListener("message",
|
|
3589
|
+
return p.current || (S(), v(), p.current = !0), B(() => {
|
|
3590
|
+
var k, w;
|
|
3591
|
+
if (q()) {
|
|
3592
|
+
if (N() && !e.isNestedRender && (window.addEventListener("message", l), Oe(), Ue({
|
|
3588
3593
|
...e.locale ? {
|
|
3589
3594
|
locale: e.locale
|
|
3590
3595
|
} : {},
|
|
@@ -3596,41 +3601,41 @@ function Un(e) {
|
|
|
3596
3601
|
} : {}
|
|
3597
3602
|
}), Object.values(
|
|
3598
3603
|
e.builderContextSignal.componentInfos
|
|
3599
|
-
).forEach((
|
|
3600
|
-
var
|
|
3601
|
-
const
|
|
3602
|
-
(
|
|
3604
|
+
).forEach((T) => {
|
|
3605
|
+
var C;
|
|
3606
|
+
const u = He(T);
|
|
3607
|
+
(C = window.parent) == null || C.postMessage(u, "*");
|
|
3603
3608
|
}), window.addEventListener(
|
|
3604
3609
|
"builder:component:stateChangeListenerActivated",
|
|
3605
|
-
|
|
3606
|
-
)), e.builderContextSignal.content &&
|
|
3607
|
-
const
|
|
3608
|
-
|
|
3610
|
+
v
|
|
3611
|
+
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3612
|
+
const T = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, u = (w = e.builderContextSignal.content) == null ? void 0 : w.id, C = e.apiKey;
|
|
3613
|
+
se({
|
|
3609
3614
|
apiHost: e.apiHost,
|
|
3610
3615
|
type: "impression",
|
|
3611
3616
|
canTrack: !0,
|
|
3612
|
-
contentId:
|
|
3613
|
-
apiKey:
|
|
3614
|
-
variationId:
|
|
3617
|
+
contentId: u,
|
|
3618
|
+
apiKey: C,
|
|
3619
|
+
variationId: T !== u ? T : void 0
|
|
3615
3620
|
});
|
|
3616
3621
|
}
|
|
3617
|
-
if (
|
|
3618
|
-
const
|
|
3619
|
-
`builder.overrides.${
|
|
3620
|
-
),
|
|
3621
|
-
|
|
3622
|
+
if (ve() && !N()) {
|
|
3623
|
+
const T = new URL(location.href).searchParams, u = T.get("builder.preview"), C = T.get(
|
|
3624
|
+
`builder.overrides.${u}`
|
|
3625
|
+
), W = T.get("apiKey") || T.get("builder.space");
|
|
3626
|
+
u === e.model && W === e.apiKey && (!e.content || C === e.content.id) && ke({
|
|
3622
3627
|
model: e.model,
|
|
3623
3628
|
apiKey: e.apiKey,
|
|
3624
3629
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3625
|
-
}).then((
|
|
3626
|
-
|
|
3630
|
+
}).then((E) => {
|
|
3631
|
+
E && i(E);
|
|
3627
3632
|
});
|
|
3628
3633
|
}
|
|
3629
3634
|
}
|
|
3630
3635
|
}, []), B(() => {
|
|
3631
3636
|
e.content && i(e.content);
|
|
3632
3637
|
}, [e.content]), B(() => {
|
|
3633
|
-
|
|
3638
|
+
v();
|
|
3634
3639
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3635
3640
|
e.data && n(e.data);
|
|
3636
3641
|
}, [e.data]), B(() => {
|
|
@@ -3638,19 +3643,19 @@ function Un(e) {
|
|
|
3638
3643
|
locale: e.locale
|
|
3639
3644
|
});
|
|
3640
3645
|
}, [e.locale]), B(() => () => {
|
|
3641
|
-
|
|
3646
|
+
q() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3642
3647
|
"builder:component:stateChangeListenerActivated",
|
|
3643
|
-
|
|
3648
|
+
v
|
|
3644
3649
|
));
|
|
3645
|
-
}, []), /* @__PURE__ */
|
|
3646
|
-
|
|
3650
|
+
}, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3651
|
+
r,
|
|
3647
3652
|
{
|
|
3648
3653
|
ref: t,
|
|
3649
|
-
onClick: (
|
|
3654
|
+
onClick: (k) => f(k),
|
|
3650
3655
|
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3651
3656
|
"builder-model": e.model,
|
|
3652
|
-
className:
|
|
3653
|
-
((
|
|
3657
|
+
className: Un(
|
|
3658
|
+
((y = e.content) == null ? void 0 : y.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3654
3659
|
),
|
|
3655
3660
|
...o(),
|
|
3656
3661
|
...e.contentWrapperProps,
|
|
@@ -3658,21 +3663,21 @@ function Un(e) {
|
|
|
3658
3663
|
}
|
|
3659
3664
|
) : null });
|
|
3660
3665
|
}
|
|
3661
|
-
function
|
|
3662
|
-
const [t, n] =
|
|
3666
|
+
function jn(e) {
|
|
3667
|
+
const [t, n] = R(
|
|
3663
3668
|
() => `
|
|
3664
|
-
${
|
|
3669
|
+
${Dn({
|
|
3665
3670
|
cssCode: e.cssCode,
|
|
3666
3671
|
contentId: e.contentId
|
|
3667
3672
|
})}
|
|
3668
|
-
${
|
|
3673
|
+
${$n({
|
|
3669
3674
|
customFonts: e.customFonts
|
|
3670
3675
|
})}
|
|
3671
|
-
${
|
|
3676
|
+
${On(e.isNestedRender)}
|
|
3672
3677
|
`.trim()
|
|
3673
3678
|
);
|
|
3674
|
-
return /* @__PURE__ */
|
|
3675
|
-
|
|
3679
|
+
return /* @__PURE__ */ s(
|
|
3680
|
+
J,
|
|
3676
3681
|
{
|
|
3677
3682
|
id: "builderio-content",
|
|
3678
3683
|
styles: t,
|
|
@@ -3680,14 +3685,14 @@ ${Ln(e.isNestedRender)}
|
|
|
3680
3685
|
}
|
|
3681
3686
|
);
|
|
3682
3687
|
}
|
|
3683
|
-
const
|
|
3688
|
+
const Mn = ({
|
|
3684
3689
|
content: e,
|
|
3685
3690
|
data: t,
|
|
3686
3691
|
locale: n
|
|
3687
3692
|
}) => {
|
|
3688
|
-
var
|
|
3689
|
-
const i = {}, o = ((
|
|
3690
|
-
return (
|
|
3693
|
+
var r, a, l;
|
|
3694
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3695
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
3691
3696
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3692
3697
|
}), {
|
|
3693
3698
|
...i,
|
|
@@ -3697,7 +3702,7 @@ const jn = ({
|
|
|
3697
3702
|
locale: n
|
|
3698
3703
|
} : {}
|
|
3699
3704
|
};
|
|
3700
|
-
},
|
|
3705
|
+
}, _n = ({
|
|
3701
3706
|
content: e,
|
|
3702
3707
|
data: t
|
|
3703
3708
|
}) => e ? {
|
|
@@ -3708,51 +3713,51 @@ const jn = ({
|
|
|
3708
3713
|
},
|
|
3709
3714
|
meta: e == null ? void 0 : e.meta
|
|
3710
3715
|
} : void 0;
|
|
3711
|
-
function
|
|
3712
|
-
var c, h, g, m,
|
|
3713
|
-
const [t, n] =
|
|
3716
|
+
function xe(e) {
|
|
3717
|
+
var c, h, g, m, x, f, S, v, p;
|
|
3718
|
+
const [t, n] = R(
|
|
3714
3719
|
() => {
|
|
3715
|
-
var b,
|
|
3716
|
-
return
|
|
3720
|
+
var b, y;
|
|
3721
|
+
return Vn({
|
|
3717
3722
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3718
3723
|
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3719
3724
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3720
|
-
contentId: (
|
|
3725
|
+
contentId: (y = e.content) == null ? void 0 : y.id
|
|
3721
3726
|
});
|
|
3722
3727
|
}
|
|
3723
3728
|
);
|
|
3724
3729
|
function i(b) {
|
|
3725
|
-
|
|
3726
|
-
...
|
|
3730
|
+
l((y) => ({
|
|
3731
|
+
...y,
|
|
3727
3732
|
rootState: b
|
|
3728
3733
|
}));
|
|
3729
3734
|
}
|
|
3730
|
-
const [o,
|
|
3735
|
+
const [o, r] = R(
|
|
3731
3736
|
() => {
|
|
3732
3737
|
var b;
|
|
3733
3738
|
return [
|
|
3734
|
-
...
|
|
3735
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3739
|
+
...be(),
|
|
3740
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3736
3741
|
].reduce(
|
|
3737
|
-
(
|
|
3738
|
-
...
|
|
3739
|
-
[
|
|
3742
|
+
(y, { component: A, ...k }) => ({
|
|
3743
|
+
...y,
|
|
3744
|
+
[k.name]: {
|
|
3740
3745
|
component: A,
|
|
3741
|
-
...
|
|
3746
|
+
...ce(k)
|
|
3742
3747
|
}
|
|
3743
3748
|
}),
|
|
3744
3749
|
{}
|
|
3745
3750
|
);
|
|
3746
3751
|
}
|
|
3747
|
-
), [
|
|
3752
|
+
), [a, l] = R(() => {
|
|
3748
3753
|
var b;
|
|
3749
3754
|
return {
|
|
3750
|
-
content:
|
|
3755
|
+
content: _n({
|
|
3751
3756
|
content: e.content,
|
|
3752
3757
|
data: e.data
|
|
3753
3758
|
}),
|
|
3754
3759
|
localState: void 0,
|
|
3755
|
-
rootState:
|
|
3760
|
+
rootState: Mn({
|
|
3756
3761
|
content: e.content,
|
|
3757
3762
|
data: e.data,
|
|
3758
3763
|
locale: e.locale
|
|
@@ -3763,12 +3768,12 @@ function ye(e) {
|
|
|
3763
3768
|
apiKey: e.apiKey,
|
|
3764
3769
|
apiVersion: e.apiVersion,
|
|
3765
3770
|
componentInfos: [
|
|
3766
|
-
...
|
|
3767
|
-
...((b = e.customComponents) == null ? void 0 : b.filter(({ models:
|
|
3771
|
+
...be(),
|
|
3772
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: y }) => !(y != null && y.length) || !e.model ? !0 : y.includes(e.model))) || []
|
|
3768
3773
|
].reduce(
|
|
3769
|
-
(
|
|
3770
|
-
...
|
|
3771
|
-
[
|
|
3774
|
+
(y, { component: A, ...k }) => ({
|
|
3775
|
+
...y,
|
|
3776
|
+
[k.name]: ce(k)
|
|
3772
3777
|
}),
|
|
3773
3778
|
{}
|
|
3774
3779
|
),
|
|
@@ -3779,29 +3784,29 @@ function ye(e) {
|
|
|
3779
3784
|
};
|
|
3780
3785
|
}), d = $(!1);
|
|
3781
3786
|
if (!d.current) {
|
|
3782
|
-
e.apiKey ||
|
|
3787
|
+
e.apiKey || ie.error(
|
|
3783
3788
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3784
3789
|
);
|
|
3785
|
-
const b = (h = (c =
|
|
3790
|
+
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3786
3791
|
b && L({
|
|
3787
3792
|
code: b,
|
|
3788
3793
|
context: e.context || {},
|
|
3789
3794
|
localState: void 0,
|
|
3790
|
-
rootState:
|
|
3791
|
-
rootSetState: (
|
|
3792
|
-
Object.assign(
|
|
3795
|
+
rootState: a.rootState,
|
|
3796
|
+
rootSetState: (y) => {
|
|
3797
|
+
Object.assign(a.rootState, y);
|
|
3793
3798
|
},
|
|
3794
3799
|
isExpression: !1
|
|
3795
3800
|
}), d.current = !0;
|
|
3796
3801
|
}
|
|
3797
|
-
return /* @__PURE__ */
|
|
3798
|
-
|
|
3802
|
+
return /* @__PURE__ */ s(
|
|
3803
|
+
we.Provider,
|
|
3799
3804
|
{
|
|
3800
3805
|
value: {
|
|
3801
3806
|
registeredComponents: o
|
|
3802
3807
|
},
|
|
3803
3808
|
children: /* @__PURE__ */ V(
|
|
3804
|
-
|
|
3809
|
+
Hn,
|
|
3805
3810
|
{
|
|
3806
3811
|
apiHost: e.apiHost,
|
|
3807
3812
|
nonce: e.nonce,
|
|
@@ -3814,36 +3819,36 @@ function ye(e) {
|
|
|
3814
3819
|
locale: e.locale,
|
|
3815
3820
|
enrich: e.enrich,
|
|
3816
3821
|
showContent: e.showContent,
|
|
3817
|
-
builderContextSignal:
|
|
3822
|
+
builderContextSignal: a,
|
|
3818
3823
|
contentWrapper: e.contentWrapper,
|
|
3819
3824
|
contentWrapperProps: e.contentWrapperProps,
|
|
3820
3825
|
trustedHosts: e.trustedHosts,
|
|
3821
3826
|
isNestedRender: e.isNestedRender,
|
|
3822
|
-
setBuilderContextSignal:
|
|
3827
|
+
setBuilderContextSignal: l,
|
|
3823
3828
|
children: [
|
|
3824
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3825
|
-
|
|
3829
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3830
|
+
ne,
|
|
3826
3831
|
{
|
|
3827
3832
|
id: "builderio-variant-visibility",
|
|
3828
3833
|
scriptStr: t,
|
|
3829
3834
|
nonce: e.nonce || ""
|
|
3830
3835
|
}
|
|
3831
3836
|
) : null,
|
|
3832
|
-
/* @__PURE__ */
|
|
3833
|
-
|
|
3837
|
+
/* @__PURE__ */ s(
|
|
3838
|
+
jn,
|
|
3834
3839
|
{
|
|
3835
3840
|
nonce: e.nonce || "",
|
|
3836
3841
|
isNestedRender: e.isNestedRender,
|
|
3837
|
-
contentId: (g =
|
|
3838
|
-
cssCode: (
|
|
3839
|
-
customFonts: (
|
|
3842
|
+
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3843
|
+
cssCode: (x = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
|
|
3844
|
+
customFonts: (S = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
|
|
3840
3845
|
}
|
|
3841
3846
|
),
|
|
3842
|
-
/* @__PURE__ */
|
|
3847
|
+
/* @__PURE__ */ s(
|
|
3843
3848
|
F,
|
|
3844
3849
|
{
|
|
3845
|
-
blocks: (p = (
|
|
3846
|
-
context:
|
|
3850
|
+
blocks: (p = (v = a.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
|
|
3851
|
+
context: a,
|
|
3847
3852
|
registeredComponents: o,
|
|
3848
3853
|
linkComponent: e.linkComponent
|
|
3849
3854
|
}
|
|
@@ -3854,71 +3859,71 @@ function ye(e) {
|
|
|
3854
3859
|
}
|
|
3855
3860
|
);
|
|
3856
3861
|
}
|
|
3857
|
-
function
|
|
3858
|
-
var
|
|
3859
|
-
const [t, n] =
|
|
3860
|
-
() =>
|
|
3861
|
-
canTrack:
|
|
3862
|
+
function qn(e) {
|
|
3863
|
+
var a;
|
|
3864
|
+
const [t, n] = R(
|
|
3865
|
+
() => En({
|
|
3866
|
+
canTrack: K(e.canTrack),
|
|
3862
3867
|
content: e.content
|
|
3863
3868
|
})
|
|
3864
3869
|
);
|
|
3865
3870
|
function i() {
|
|
3866
|
-
var
|
|
3867
|
-
return
|
|
3868
|
-
|
|
3871
|
+
var l;
|
|
3872
|
+
return Bn(
|
|
3873
|
+
_(e.content).map((d) => ({
|
|
3869
3874
|
id: d.testVariationId,
|
|
3870
3875
|
testRatio: d.testRatio
|
|
3871
3876
|
})),
|
|
3872
|
-
((
|
|
3877
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3873
3878
|
);
|
|
3874
3879
|
}
|
|
3875
3880
|
function o() {
|
|
3876
|
-
return
|
|
3881
|
+
return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3877
3882
|
}
|
|
3878
|
-
function
|
|
3879
|
-
var
|
|
3883
|
+
function r() {
|
|
3884
|
+
var l;
|
|
3880
3885
|
return t ? {
|
|
3881
3886
|
...e.content,
|
|
3882
|
-
testVariationId: (
|
|
3883
|
-
} :
|
|
3887
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3888
|
+
} : Me({
|
|
3884
3889
|
item: e.content,
|
|
3885
|
-
canTrack:
|
|
3890
|
+
canTrack: K(e.canTrack)
|
|
3886
3891
|
});
|
|
3887
3892
|
}
|
|
3888
3893
|
return B(() => {
|
|
3889
|
-
}, []), /* @__PURE__ */ V(
|
|
3890
|
-
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */
|
|
3891
|
-
|
|
3894
|
+
}, []), /* @__PURE__ */ V(I, { children: [
|
|
3895
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3896
|
+
ne,
|
|
3892
3897
|
{
|
|
3893
3898
|
id: "builderio-init-variants-fns",
|
|
3894
|
-
scriptStr:
|
|
3899
|
+
scriptStr: Pn(),
|
|
3895
3900
|
nonce: e.nonce || ""
|
|
3896
3901
|
}
|
|
3897
3902
|
) : null,
|
|
3898
|
-
t ? /* @__PURE__ */ V(
|
|
3899
|
-
/* @__PURE__ */
|
|
3900
|
-
|
|
3903
|
+
t ? /* @__PURE__ */ V(I, { children: [
|
|
3904
|
+
/* @__PURE__ */ s(
|
|
3905
|
+
J,
|
|
3901
3906
|
{
|
|
3902
3907
|
id: "builderio-variants",
|
|
3903
3908
|
styles: o(),
|
|
3904
3909
|
nonce: e.nonce || ""
|
|
3905
3910
|
}
|
|
3906
3911
|
),
|
|
3907
|
-
/* @__PURE__ */
|
|
3908
|
-
|
|
3912
|
+
/* @__PURE__ */ s(
|
|
3913
|
+
ne,
|
|
3909
3914
|
{
|
|
3910
3915
|
id: "builderio-variants-visibility",
|
|
3911
3916
|
scriptStr: i(),
|
|
3912
3917
|
nonce: e.nonce || ""
|
|
3913
3918
|
}
|
|
3914
3919
|
),
|
|
3915
|
-
(
|
|
3916
|
-
|
|
3920
|
+
(a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3921
|
+
xe,
|
|
3917
3922
|
{
|
|
3918
3923
|
apiHost: e.apiHost,
|
|
3919
3924
|
isNestedRender: e.isNestedRender,
|
|
3920
3925
|
nonce: e.nonce,
|
|
3921
|
-
content:
|
|
3926
|
+
content: l,
|
|
3922
3927
|
showContent: !1,
|
|
3923
3928
|
model: e.model,
|
|
3924
3929
|
data: e.data,
|
|
@@ -3937,16 +3942,16 @@ function _n(e) {
|
|
|
3937
3942
|
contentWrapperProps: e.contentWrapperProps,
|
|
3938
3943
|
trustedHosts: e.trustedHosts
|
|
3939
3944
|
},
|
|
3940
|
-
|
|
3945
|
+
l.testVariationId
|
|
3941
3946
|
))
|
|
3942
3947
|
] }) : null,
|
|
3943
|
-
/* @__PURE__ */
|
|
3944
|
-
|
|
3948
|
+
/* @__PURE__ */ s(
|
|
3949
|
+
xe,
|
|
3945
3950
|
{
|
|
3946
3951
|
apiHost: e.apiHost,
|
|
3947
3952
|
nonce: e.nonce,
|
|
3948
3953
|
isNestedRender: e.isNestedRender,
|
|
3949
|
-
content:
|
|
3954
|
+
content: r(),
|
|
3950
3955
|
showContent: !0,
|
|
3951
3956
|
model: e.model,
|
|
3952
3957
|
data: e.data,
|
|
@@ -3968,13 +3973,13 @@ function _n(e) {
|
|
|
3968
3973
|
)
|
|
3969
3974
|
] });
|
|
3970
3975
|
}
|
|
3971
|
-
const
|
|
3976
|
+
const Kn = async ({
|
|
3972
3977
|
builderContextValue: e,
|
|
3973
3978
|
symbol: t
|
|
3974
3979
|
}) => {
|
|
3975
3980
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
3976
3981
|
(e != null && e.apiKey))
|
|
3977
|
-
return
|
|
3982
|
+
return ke({
|
|
3978
3983
|
model: t.model,
|
|
3979
3984
|
apiKey: e.apiKey,
|
|
3980
3985
|
apiVersion: e.apiVersion,
|
|
@@ -3984,11 +3989,11 @@ const qn = async ({
|
|
|
3984
3989
|
}
|
|
3985
3990
|
}
|
|
3986
3991
|
}).catch((n) => {
|
|
3987
|
-
|
|
3992
|
+
ie.error("Could not fetch symbol content: ", n);
|
|
3988
3993
|
});
|
|
3989
3994
|
};
|
|
3990
|
-
function
|
|
3991
|
-
var
|
|
3995
|
+
function zn(e) {
|
|
3996
|
+
var l, d, c, h;
|
|
3992
3997
|
function t() {
|
|
3993
3998
|
return "div";
|
|
3994
3999
|
}
|
|
@@ -4004,23 +4009,23 @@ function Kn(e) {
|
|
|
4004
4009
|
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4005
4010
|
].filter(Boolean).join(" ");
|
|
4006
4011
|
}
|
|
4007
|
-
const [o,
|
|
4012
|
+
const [o, r] = R(() => {
|
|
4008
4013
|
var g;
|
|
4009
4014
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4010
4015
|
});
|
|
4011
|
-
function
|
|
4012
|
-
o ||
|
|
4016
|
+
function a() {
|
|
4017
|
+
o || Kn({
|
|
4013
4018
|
symbol: e.symbol,
|
|
4014
4019
|
builderContextValue: e.builderContext
|
|
4015
4020
|
}).then((g) => {
|
|
4016
|
-
g &&
|
|
4021
|
+
g && r(g);
|
|
4017
4022
|
});
|
|
4018
4023
|
}
|
|
4019
4024
|
return B(() => {
|
|
4020
4025
|
}, []), B(() => {
|
|
4021
|
-
|
|
4022
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4023
|
-
|
|
4026
|
+
a();
|
|
4027
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4028
|
+
qn,
|
|
4024
4029
|
{
|
|
4025
4030
|
nonce: e.builderContext.nonce,
|
|
4026
4031
|
isNestedRender: !0,
|
|
@@ -4028,7 +4033,7 @@ function Kn(e) {
|
|
|
4028
4033
|
apiKey: e.builderContext.apiKey,
|
|
4029
4034
|
context: {
|
|
4030
4035
|
...e.builderContext.context,
|
|
4031
|
-
symbolId: (
|
|
4036
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4032
4037
|
},
|
|
4033
4038
|
customComponents: Object.values(e.builderComponents),
|
|
4034
4039
|
data: {
|
|
@@ -4047,14 +4052,14 @@ function Kn(e) {
|
|
|
4047
4052
|
}
|
|
4048
4053
|
export {
|
|
4049
4054
|
F as Blocks,
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4055
|
+
re as BuilderContext,
|
|
4056
|
+
Xe as Button,
|
|
4057
|
+
Ft as Columns,
|
|
4058
|
+
qn as Content,
|
|
4059
|
+
$t as Fragment,
|
|
4060
|
+
Ot as Image,
|
|
4061
|
+
Ut as Section,
|
|
4062
|
+
zn as Symbol,
|
|
4063
|
+
en as Text,
|
|
4064
|
+
Cn as Video
|
|
4060
4065
|
};
|