@builder.io/sdk-react 4.2.1 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +37 -37
- package/lib/browser/blocks-exports.mjs +1238 -1168
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-0817de95.cjs +2 -0
- package/lib/browser/{server-entry-5e98a993.js → server-entry-331e2fd4.js} +248 -246
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4bab42b1.cjs → accordion-1559ca68.cjs} +1 -1
- package/lib/edge/{accordion-a8a363e4.js → accordion-3e9ee224.js} +1 -1
- package/lib/edge/{blocks-d07d0261.cjs → blocks-4f20c19a.cjs} +14 -14
- package/lib/edge/{blocks-e1f5b0d0.js → blocks-b9be7dc1.js} +749 -736
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6734c0bb.cjs → button-0a632d4f.cjs} +1 -1
- package/lib/edge/{button-bbcadacf.js → button-ba852235.js} +2 -2
- package/lib/edge/{columns-821cba14.cjs → columns-66170ac9.cjs} +1 -1
- package/lib/edge/{columns-cf3081c6.js → columns-ee2fba7b.js} +3 -3
- package/lib/edge/content-variants-4f54d98a.cjs +302 -0
- package/lib/edge/{content-variants-a704e35c.js → content-variants-c013569a.js} +489 -444
- package/lib/edge/{custom-code-f6c30129.js → custom-code-38e2c9d5.js} +1 -1
- package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-48579935.cjs} +1 -1
- package/lib/edge/{embed-3c0b5564.js → embed-1ce0435c.js} +1 -1
- package/lib/edge/{embed-666d3cc4.cjs → embed-9a7f29ff.cjs} +1 -1
- package/lib/edge/form-d9b6dea6.cjs +1 -0
- package/lib/edge/{form-8b068721.js → form-f558f5d4.js} +24 -21
- package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-35ccd32a.js} +1 -1
- package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-d2be9a48.cjs} +1 -1
- package/lib/edge/image-cce92f6c.cjs +17 -0
- package/lib/edge/image-d87761af.js +123 -0
- package/lib/edge/img-a1e0f10e.js +33 -0
- package/lib/edge/img-b21eb075.cjs +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-665ef328.js → input-5c0d3350.js} +1 -1
- package/lib/edge/{input-d31d6451.cjs → input-6854bc85.cjs} +1 -1
- package/lib/edge/{personalization-container-e784836e.js → personalization-container-adf9e0bd.js} +4 -4
- package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7fdc090.cjs} +1 -1
- package/lib/edge/{select-c3085265.cjs → select-6c4637ae.cjs} +1 -1
- package/lib/edge/{select-5fe49bd4.js → select-713e73f6.js} +1 -1
- package/lib/edge/server-entry-0bef3cb1.cjs +2 -0
- package/lib/{node/server-entry-48724189.js → edge/server-entry-71badd34.js} +307 -307
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-cbbbb02e.cjs → slot-59a86f46.cjs} +1 -1
- package/lib/edge/{slot-a17ee2d7.js → slot-a3c27352.js} +3 -3
- package/lib/edge/symbol-3d81a9de.cjs +1 -0
- package/lib/edge/{symbol-9f960685.js → symbol-86e5a3f0.js} +26 -23
- package/lib/edge/tabs-0d914e5c.cjs +1 -0
- package/lib/edge/{tabs-26ac5b2f.js → tabs-60f8bb61.js} +24 -23
- package/lib/node/blocks-exports.cjs +38 -38
- package/lib/node/blocks-exports.mjs +1375 -1305
- 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-05b0f263.cjs +2 -0
- package/lib/{edge/server-entry-c9d5300f.js → node/server-entry-68823bb0.js} +346 -342
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-a7aba6d2.js → setIvm-bb3d0e32.js} +1 -1
- package/lib/node/{setIvm-3b6199a0.cjs → setIvm-bec8f1ed.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-fdc70f22.js → should-force-browser-runtime-in-node-a4c71d14.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-bbbdf124.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/img/img.d.ts +2 -0
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/components/block/components/live-edit-block-styles.d.ts +8 -0
- package/types/components/block/components/style-wrapper.d.ts +9 -0
- package/types/components/live-edit.d.ts +9 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/find-block.d.ts +18 -0
- package/types/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/server-entry-4cf669a1.cjs +0 -2
- package/lib/edge/content-variants-ec180883.cjs +0 -302
- package/lib/edge/form-51f639ab.cjs +0 -1
- package/lib/edge/image-209835f4.js +0 -94
- package/lib/edge/image-87a4e006.cjs +0 -17
- package/lib/edge/image.helpers-3e926d47.js +0 -33
- package/lib/edge/image.helpers-dba8a869.cjs +0 -1
- package/lib/edge/img-b04b9b6d.cjs +0 -1
- package/lib/edge/img-dfbd4080.js +0 -28
- package/lib/edge/server-entry-acf5ce7d.cjs +0 -2
- package/lib/edge/symbol-b56b5675.cjs +0 -1
- package/lib/edge/tabs-bf6643d7.cjs +0 -1
- package/lib/node/server-entry-562c0663.cjs +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, checkIsDefined as oe, logger as Q, isPreviewing as le, userAttributesService as Te, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, _track as Ie, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as gt } from "./server-entry-331e2fd4.js";
|
|
3
|
+
import { setClientUserAttributes as Mi } from "./server-entry-331e2fd4.js";
|
|
4
|
+
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
|
+
import * as bt from "react";
|
|
6
|
+
import { createContext as Ue, useEffect as N, useState as k, useContext as ye, useRef as z, createElement as He } from "react";
|
|
7
|
+
const yt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && yt.has(e.toLowerCase());
|
|
8
|
+
function ve(e) {
|
|
9
|
+
return /* @__PURE__ */ s(w, { children: pt(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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
|
-
const
|
|
11
|
+
const K = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const z = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function vt(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +37,7 @@ function pt(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
ve,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function pt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const se = Ue({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const pe = _e({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), Me = Ue({ registeredComponents: {} }), qe = (e, t, n) => {
|
|
65
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, o) => r != null ? r[o] : r, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, xt = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,15 +76,15 @@ const pe = _e({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
80
|
-
isEditing:
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
79
|
+
}), St = () => ({
|
|
80
|
+
isEditing: _(),
|
|
81
|
+
isBrowser: J(),
|
|
82
|
+
isServer: !J(),
|
|
83
|
+
getUserAttributes: () => ut()
|
|
84
|
+
}), kt = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
86
86
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
87
|
-
function
|
|
87
|
+
function je({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function qe({
|
|
|
94
94
|
if (t && r in t)
|
|
95
95
|
return t[r];
|
|
96
96
|
const o = i[r];
|
|
97
|
-
return typeof o == "object" && o !== null ?
|
|
97
|
+
return typeof o == "object" && o !== null ? je({
|
|
98
98
|
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (a) => {
|
|
@@ -118,11 +118,11 @@ const Ee = ({
|
|
|
118
118
|
rootSetState: o,
|
|
119
119
|
rootState: a
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = xt({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: je({
|
|
126
126
|
rootState: a,
|
|
127
127
|
localState: r,
|
|
128
128
|
rootSetState: o
|
|
@@ -130,25 +130,25 @@ const Ee = ({
|
|
|
130
130
|
});
|
|
131
131
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function Ct() {
|
|
134
134
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const Tt = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
140
|
var r;
|
|
141
|
-
if (!
|
|
141
|
+
if (!Ct())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
},
|
|
144
|
+
return t && n && !i ? (e && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
+
}, It = (e) => (J() || Tt({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}), Ee(e)),
|
|
147
|
+
}), Ee(e)), wt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Et = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Rt = (e) => {
|
|
148
148
|
var t, n, i, r, o, a;
|
|
149
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = wt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = Et.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function Y({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
@@ -159,17 +159,17 @@ function G({
|
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = Rt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return qe({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
168
|
const c = {
|
|
169
|
-
code:
|
|
169
|
+
code: kt(e, {
|
|
170
170
|
isExpression: a
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: St(),
|
|
173
173
|
context: t,
|
|
174
174
|
event: o,
|
|
175
175
|
rootSetState: r,
|
|
@@ -177,28 +177,28 @@ function G({
|
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
181
|
-
} catch (
|
|
182
|
-
|
|
180
|
+
return It(c);
|
|
181
|
+
} catch (d) {
|
|
182
|
+
Q.error("Failed code evaluation: " + d.message, {
|
|
183
183
|
code: e
|
|
184
184
|
});
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function Pt(e, t) {
|
|
189
189
|
var n;
|
|
190
190
|
return {
|
|
191
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
192
192
|
...e.options,
|
|
193
|
-
...
|
|
193
|
+
...Vt(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const Vt = (e, t) => {
|
|
197
197
|
var n, i;
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
200
200
|
...e.component.options,
|
|
201
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) =>
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => Y({
|
|
202
202
|
code: o,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
@@ -207,13 +207,13 @@ const Pt = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function At(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
214
214
|
return n;
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function ae(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
217
217
|
if (e == null || typeof e != "object") {
|
|
218
218
|
t(e, (o) => {
|
|
219
219
|
n !== null && i !== null && (n[i] = o);
|
|
@@ -223,58 +223,58 @@ function le(e, t, n = null, i = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
223
223
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((o, a) => {
|
|
224
224
|
t(o, (c) => {
|
|
225
225
|
e[a] = c;
|
|
226
|
-
}),
|
|
226
|
+
}), ae(o, t, e, a, r);
|
|
227
227
|
}) : Object.entries(e).forEach(([o, a]) => {
|
|
228
228
|
t(a, (c) => {
|
|
229
229
|
e[o] = c;
|
|
230
|
-
}),
|
|
230
|
+
}), ae(a, t, e, o, r);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function ze(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Bt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
|
-
return
|
|
241
|
-
if (
|
|
240
|
+
return ae(e, (n) => {
|
|
241
|
+
if (ze(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
247
|
+
function Nt(e, t) {
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, i) => {
|
|
249
249
|
var r;
|
|
250
|
-
|
|
250
|
+
ze(n) && i((r = n[t]) != null ? r : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Wt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && Bt((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Nt(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const xe = (e) => JSON.parse(JSON.stringify(e)), Ke = (e, t, n) => {
|
|
258
258
|
if (Object(e) !== e)
|
|
259
259
|
return e;
|
|
260
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
261
261
|
return i.slice(0, -1).reduce((r, o, a) => Object(r[o]) === r[o] ? r[o] : r[o] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function pe(e) {
|
|
264
264
|
if (e === null || typeof e != "object")
|
|
265
265
|
return e;
|
|
266
266
|
if (Array.isArray(e))
|
|
267
|
-
return e.map((n) =>
|
|
267
|
+
return e.map((n) => pe(n));
|
|
268
268
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
269
269
|
return e;
|
|
270
270
|
const t = {};
|
|
271
271
|
for (const n in e)
|
|
272
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
272
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = pe(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const t =
|
|
275
|
+
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Dt = (e) => {
|
|
276
|
+
if ($t) {
|
|
277
|
+
const t = xe(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
280
280
|
properties: {
|
|
@@ -285,7 +285,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t =
|
|
288
|
+
const t = pe(At(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,7 +298,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, Ot = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
@@ -307,20 +307,20 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
|
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const o =
|
|
310
|
+
const o = Dt(e);
|
|
311
311
|
for (const a in e.bindings) {
|
|
312
|
-
const l = e.bindings[a], c =
|
|
312
|
+
const l = e.bindings[a], c = Y({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
316
|
rootSetState: r,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
Ke(o, a, c);
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function Ft({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
@@ -328,28 +328,28 @@ function Ot({
|
|
|
328
328
|
rootSetState: r
|
|
329
329
|
}) {
|
|
330
330
|
let o = e;
|
|
331
|
-
return o =
|
|
331
|
+
return o = Ot({
|
|
332
332
|
block: o,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
335
335
|
rootSetState: r,
|
|
336
336
|
context: t
|
|
337
|
-
}), o =
|
|
337
|
+
}), o = Wt(o, i.locale), o;
|
|
338
338
|
}
|
|
339
339
|
const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
340
|
+
function Lt(e, t, n = {}) {
|
|
341
341
|
let i, r, o, a = null, l = 0;
|
|
342
342
|
const c = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
|
-
const
|
|
347
|
-
!l && n.leading === !1 && (l =
|
|
348
|
-
const
|
|
349
|
-
return i = this, r = arguments,
|
|
346
|
+
const d = Date.now();
|
|
347
|
+
!l && n.leading === !1 && (l = d);
|
|
348
|
+
const h = t - (d - l);
|
|
349
|
+
return i = this, r = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = d, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Z(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const r = arguments[i];
|
|
@@ -359,75 +359,75 @@ function X(e, ...t) {
|
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function _t(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
Qe(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
Ht(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Je(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Ge(e, t) {
|
|
377
|
+
const n = Ut(e), i = getComputedStyle(t), r = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, a = [r, o];
|
|
378
378
|
for (const l of a)
|
|
379
379
|
for (const c of n)
|
|
380
380
|
c in l || (l[c] = i[c]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ut(e) {
|
|
383
383
|
const t = [];
|
|
384
384
|
for (const n of e.steps)
|
|
385
385
|
for (const i in n.styles)
|
|
386
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
387
387
|
return t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Qe(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
Je(e.elementId || e.id || "");
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Ge(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function Ht(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
Je(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
410
|
+
Ge(e, n);
|
|
411
411
|
let i = !1, r = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, r = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
415
415
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !r && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const a =
|
|
419
|
+
const a = Lt(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
|
-
function l(
|
|
423
|
-
const b =
|
|
424
|
-
return b.bottom >
|
|
422
|
+
function l(h) {
|
|
423
|
+
const b = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
424
|
+
return b.bottom > f && b.top < u - f;
|
|
425
425
|
}
|
|
426
426
|
const c = e.steps[0].styles;
|
|
427
|
-
function
|
|
428
|
-
|
|
427
|
+
function d() {
|
|
428
|
+
Z(n.style, c);
|
|
429
429
|
}
|
|
430
|
-
|
|
430
|
+
d(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", a, {
|
|
433
433
|
capture: !0,
|
|
@@ -435,42 +435,42 @@ function Ut(e) {
|
|
|
435
435
|
}), o();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Ye = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${ce(n)}: ${i};`;
|
|
441
|
-
}).filter(
|
|
442
|
-
`),
|
|
441
|
+
}).filter(oe), Mt = (e) => Ye(e).join(`
|
|
442
|
+
`), X = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Mt(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function qt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const jt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Xe(qt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
467
|
+
function Xe(e) {
|
|
468
468
|
switch (O) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return Ye(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,7 +478,7 @@ function Ye(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const Ze = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, zt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
@@ -488,14 +488,14 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
490
|
const r = t[i];
|
|
491
|
-
if (!r ||
|
|
491
|
+
if (!r || Ze(r, n)) {
|
|
492
492
|
console.warn(`
|
|
493
493
|
Could not find a registered component named "${i}".
|
|
494
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
495
495
|
return;
|
|
496
496
|
} else
|
|
497
497
|
return r;
|
|
498
|
-
},
|
|
498
|
+
}, Kt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -505,7 +505,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
505
505
|
} = e;
|
|
506
506
|
if (!(n != null && n.collection))
|
|
507
507
|
return;
|
|
508
|
-
const r =
|
|
508
|
+
const r = Y({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
@@ -515,181 +515,44 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(r))
|
|
516
516
|
return;
|
|
517
517
|
const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
-
return r.map((c,
|
|
518
|
+
return r.map((c, d) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
|
-
$index:
|
|
523
|
+
$index: d,
|
|
524
524
|
$item: c,
|
|
525
525
|
[a]: c,
|
|
526
|
-
[`$${a}Index`]:
|
|
526
|
+
[`$${a}Index`]: d
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Jt = (e, t) => {
|
|
532
532
|
var n;
|
|
533
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
534
|
builderLinkComponent: t
|
|
535
535
|
} : {};
|
|
536
|
-
},
|
|
536
|
+
}, Gt = (e, t, n) => {
|
|
537
537
|
var i;
|
|
538
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, a]) => !Ze(a, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Qt = (e, t) => {
|
|
542
542
|
var n;
|
|
543
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
544
544
|
builderBlock: t
|
|
545
545
|
} : {};
|
|
546
|
-
},
|
|
546
|
+
}, Yt = (e, t) => {
|
|
547
547
|
var n;
|
|
548
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
549
549
|
builderContext: t
|
|
550
550
|
} : {};
|
|
551
|
-
}, Re = (e) => e.toString()
|
|
552
|
-
xsmall: {
|
|
553
|
-
min: 0,
|
|
554
|
-
default: 160,
|
|
555
|
-
max: 320
|
|
556
|
-
},
|
|
557
|
-
small: {
|
|
558
|
-
min: 321,
|
|
559
|
-
default: 321,
|
|
560
|
-
max: 640
|
|
561
|
-
},
|
|
562
|
-
medium: {
|
|
563
|
-
min: 641,
|
|
564
|
-
default: 642,
|
|
565
|
-
max: 991
|
|
566
|
-
},
|
|
567
|
-
large: {
|
|
568
|
-
min: 990,
|
|
569
|
-
default: 991,
|
|
570
|
-
max: 1200
|
|
571
|
-
}
|
|
572
|
-
}, de = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, et = (e) => {
|
|
573
|
-
const t = ve(Ze);
|
|
574
|
-
if (!e)
|
|
575
|
-
return t;
|
|
576
|
-
const {
|
|
577
|
-
xsmall: n,
|
|
578
|
-
small: i,
|
|
579
|
-
medium: r
|
|
580
|
-
} = e;
|
|
581
|
-
if (n) {
|
|
582
|
-
const c = Math.floor(n / 2);
|
|
583
|
-
t.xsmall = {
|
|
584
|
-
max: n,
|
|
585
|
-
min: c,
|
|
586
|
-
default: c + 1
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
if (!i || !r)
|
|
590
|
-
return t;
|
|
591
|
-
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
592
|
-
t.small = {
|
|
593
|
-
max: i,
|
|
594
|
-
min: o,
|
|
595
|
-
default: o + 1
|
|
596
|
-
};
|
|
597
|
-
const a = t.small.max + 1;
|
|
598
|
-
t.medium = {
|
|
599
|
-
max: r,
|
|
600
|
-
min: a,
|
|
601
|
-
default: a + 1
|
|
602
|
-
};
|
|
603
|
-
const l = t.medium.max + 1;
|
|
604
|
-
return t.large = {
|
|
605
|
-
max: 2e3,
|
|
606
|
-
// TODO: decide upper limit
|
|
607
|
-
min: l,
|
|
608
|
-
default: l + 1
|
|
609
|
-
}, t;
|
|
610
|
-
};
|
|
611
|
-
function ee(e) {
|
|
612
|
-
return /* @__PURE__ */ s(
|
|
613
|
-
"style",
|
|
614
|
-
{
|
|
615
|
-
dangerouslySetInnerHTML: { __html: e.styles },
|
|
616
|
-
"data-id": e.id,
|
|
617
|
-
nonce: e.nonce
|
|
618
|
-
}
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
function Yt(e) {
|
|
622
|
-
function t() {
|
|
623
|
-
const i = e.block;
|
|
624
|
-
return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
|
|
625
|
-
}
|
|
626
|
-
function n() {
|
|
627
|
-
var k, A, T, w, h;
|
|
628
|
-
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
|
|
629
|
-
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
630
|
-
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
|
|
631
|
-
if (!m)
|
|
632
|
-
return "";
|
|
633
|
-
const v = c ? Y({
|
|
634
|
-
className: m,
|
|
635
|
-
styles: c
|
|
636
|
-
}) : "", d = u ? Y({
|
|
637
|
-
className: m,
|
|
638
|
-
styles: u,
|
|
639
|
-
mediaQuery: de(
|
|
640
|
-
"medium",
|
|
641
|
-
a
|
|
642
|
-
)
|
|
643
|
-
}) : "", g = f ? Y({
|
|
644
|
-
className: m,
|
|
645
|
-
styles: f,
|
|
646
|
-
mediaQuery: de(
|
|
647
|
-
"small",
|
|
648
|
-
a
|
|
649
|
-
)
|
|
650
|
-
}) : "", p = b && l ? Y({
|
|
651
|
-
className: m,
|
|
652
|
-
styles: b,
|
|
653
|
-
mediaQuery: de(
|
|
654
|
-
"xsmall",
|
|
655
|
-
a
|
|
656
|
-
)
|
|
657
|
-
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
658
|
-
let S = "";
|
|
659
|
-
if (y) {
|
|
660
|
-
const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
|
|
661
|
-
S = Y({
|
|
662
|
-
className: `${m}:hover`,
|
|
663
|
-
styles: {
|
|
664
|
-
...x,
|
|
665
|
-
transition: `all ${y.duration}s ${ce(
|
|
666
|
-
y.easing
|
|
667
|
-
)}`,
|
|
668
|
-
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
669
|
-
}
|
|
670
|
-
}) || "";
|
|
671
|
-
}
|
|
672
|
-
return [
|
|
673
|
-
v,
|
|
674
|
-
d,
|
|
675
|
-
g,
|
|
676
|
-
p,
|
|
677
|
-
S
|
|
678
|
-
].join(" ");
|
|
679
|
-
}
|
|
680
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
ee,
|
|
682
|
-
{
|
|
683
|
-
id: "builderio-block",
|
|
684
|
-
styles: n(),
|
|
685
|
-
nonce: e.context.nonce
|
|
686
|
-
}
|
|
687
|
-
) }) : null });
|
|
688
|
-
}
|
|
551
|
+
}, Re = (e) => e.toString();
|
|
689
552
|
function Xt(e) {
|
|
690
553
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
554
|
}
|
|
692
|
-
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) =>
|
|
555
|
+
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
|
|
693
556
|
code: e,
|
|
694
557
|
context: t.context,
|
|
695
558
|
localState: t.localState,
|
|
@@ -698,7 +561,7 @@ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => G({
|
|
|
698
561
|
event: n,
|
|
699
562
|
isExpression: !1
|
|
700
563
|
});
|
|
701
|
-
function
|
|
564
|
+
function et(e) {
|
|
702
565
|
var i;
|
|
703
566
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
704
567
|
for (const r in n) {
|
|
@@ -727,7 +590,7 @@ function tn({
|
|
|
727
590
|
const nn = (e) => ({
|
|
728
591
|
href: e.href
|
|
729
592
|
});
|
|
730
|
-
function
|
|
593
|
+
function Se({
|
|
731
594
|
block: e,
|
|
732
595
|
context: t
|
|
733
596
|
}) {
|
|
@@ -736,11 +599,11 @@ function xe({
|
|
|
736
599
|
...nn(e),
|
|
737
600
|
...e.properties,
|
|
738
601
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
602
|
+
style: jt({
|
|
740
603
|
block: e,
|
|
741
604
|
context: t
|
|
742
605
|
}),
|
|
743
|
-
[
|
|
606
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
607
|
};
|
|
745
608
|
return tn({
|
|
746
609
|
properties: n,
|
|
@@ -750,14 +613,14 @@ function xe({
|
|
|
750
613
|
}
|
|
751
614
|
function rn(e) {
|
|
752
615
|
return /* @__PURE__ */ s(
|
|
753
|
-
|
|
616
|
+
ve,
|
|
754
617
|
{
|
|
755
618
|
TagName: e.Wrapper,
|
|
756
|
-
attributes:
|
|
619
|
+
attributes: Se({
|
|
757
620
|
block: e.block,
|
|
758
621
|
context: e.context
|
|
759
622
|
}),
|
|
760
|
-
actionAttributes:
|
|
623
|
+
actionAttributes: et({
|
|
761
624
|
block: e.block,
|
|
762
625
|
rootState: e.context.rootState,
|
|
763
626
|
rootSetState: e.context.rootSetState,
|
|
@@ -770,19 +633,19 @@ function rn(e) {
|
|
|
770
633
|
);
|
|
771
634
|
}
|
|
772
635
|
function on(e) {
|
|
773
|
-
return
|
|
774
|
-
}, []), /* @__PURE__ */ s(
|
|
636
|
+
return N(() => {
|
|
637
|
+
}, []), /* @__PURE__ */ s(w, { children: e.children });
|
|
775
638
|
}
|
|
776
639
|
function an(e) {
|
|
777
640
|
var i, r;
|
|
778
|
-
|
|
641
|
+
k(() => 0);
|
|
779
642
|
function t() {
|
|
780
643
|
return e.includeBlockProps ? {
|
|
781
|
-
...
|
|
644
|
+
...Se({
|
|
782
645
|
block: e.block,
|
|
783
646
|
context: e.context
|
|
784
647
|
}),
|
|
785
|
-
...
|
|
648
|
+
...et({
|
|
786
649
|
block: e.block,
|
|
787
650
|
rootState: e.context.rootState,
|
|
788
651
|
rootSetState: e.context.rootSetState,
|
|
@@ -794,8 +657,8 @@ function an(e) {
|
|
|
794
657
|
function n() {
|
|
795
658
|
return e.wrapperProps;
|
|
796
659
|
}
|
|
797
|
-
return
|
|
798
|
-
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(
|
|
660
|
+
return N(() => {
|
|
661
|
+
}, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
799
662
|
on,
|
|
800
663
|
{
|
|
801
664
|
load: e.Wrapper.load,
|
|
@@ -822,7 +685,7 @@ const ln = ({
|
|
|
822
685
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
823
686
|
*/
|
|
824
687
|
...r ? {
|
|
825
|
-
attributes:
|
|
688
|
+
attributes: Se({
|
|
826
689
|
block: t,
|
|
827
690
|
context: a
|
|
828
691
|
})
|
|
@@ -838,12 +701,11 @@ const ln = ({
|
|
|
838
701
|
};
|
|
839
702
|
function Pe(e) {
|
|
840
703
|
var i;
|
|
841
|
-
|
|
842
|
-
const [t, n] =
|
|
704
|
+
k(() => !1);
|
|
705
|
+
const [t, n] = k(
|
|
843
706
|
() => e.isInteractive ? an : e.componentRef
|
|
844
707
|
);
|
|
845
|
-
return
|
|
846
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
708
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
847
709
|
t,
|
|
848
710
|
{
|
|
849
711
|
...ln({
|
|
@@ -856,7 +718,7 @@ function Pe(e) {
|
|
|
856
718
|
isInteractive: e.isInteractive,
|
|
857
719
|
contextValue: e.context
|
|
858
720
|
}),
|
|
859
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
721
|
+
children: e.componentRef ? /* @__PURE__ */ s(w, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
|
|
860
722
|
ue,
|
|
861
723
|
{
|
|
862
724
|
block: r,
|
|
@@ -865,15 +727,15 @@ function Pe(e) {
|
|
|
865
727
|
linkComponent: e.linkComponent
|
|
866
728
|
},
|
|
867
729
|
r.id
|
|
868
|
-
))
|
|
730
|
+
)) }) : null
|
|
869
731
|
}
|
|
870
732
|
) }) : null });
|
|
871
733
|
}
|
|
872
734
|
function Ve(e) {
|
|
873
|
-
const [t, n] =
|
|
874
|
-
return
|
|
735
|
+
const [t, n] = k(() => e.repeatContext);
|
|
736
|
+
return N(() => {
|
|
875
737
|
n(e.repeatContext);
|
|
876
|
-
}, [e.repeatContext]), /* @__PURE__ */ s(
|
|
738
|
+
}, [e.repeatContext]), /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
877
739
|
ue,
|
|
878
740
|
{
|
|
879
741
|
block: e.block,
|
|
@@ -883,64 +745,208 @@ function Ve(e) {
|
|
|
883
745
|
}
|
|
884
746
|
) });
|
|
885
747
|
}
|
|
748
|
+
const tt = {
|
|
749
|
+
xsmall: {
|
|
750
|
+
min: 0,
|
|
751
|
+
default: 160,
|
|
752
|
+
max: 320
|
|
753
|
+
},
|
|
754
|
+
small: {
|
|
755
|
+
min: 321,
|
|
756
|
+
default: 321,
|
|
757
|
+
max: 640
|
|
758
|
+
},
|
|
759
|
+
medium: {
|
|
760
|
+
min: 641,
|
|
761
|
+
default: 642,
|
|
762
|
+
max: 991
|
|
763
|
+
},
|
|
764
|
+
large: {
|
|
765
|
+
min: 990,
|
|
766
|
+
default: 991,
|
|
767
|
+
max: 1200
|
|
768
|
+
}
|
|
769
|
+
}, de = (e, t = tt) => `@media (max-width: ${t[e].max}px)`, nt = (e) => {
|
|
770
|
+
const t = xe(tt);
|
|
771
|
+
if (!e)
|
|
772
|
+
return t;
|
|
773
|
+
const {
|
|
774
|
+
xsmall: n,
|
|
775
|
+
small: i,
|
|
776
|
+
medium: r
|
|
777
|
+
} = e;
|
|
778
|
+
if (n) {
|
|
779
|
+
const c = Math.floor(n / 2);
|
|
780
|
+
t.xsmall = {
|
|
781
|
+
max: n,
|
|
782
|
+
min: c,
|
|
783
|
+
default: c + 1
|
|
784
|
+
};
|
|
785
|
+
}
|
|
786
|
+
if (!i || !r)
|
|
787
|
+
return t;
|
|
788
|
+
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
789
|
+
t.small = {
|
|
790
|
+
max: i,
|
|
791
|
+
min: o,
|
|
792
|
+
default: o + 1
|
|
793
|
+
};
|
|
794
|
+
const a = t.small.max + 1;
|
|
795
|
+
t.medium = {
|
|
796
|
+
max: r,
|
|
797
|
+
min: a,
|
|
798
|
+
default: a + 1
|
|
799
|
+
};
|
|
800
|
+
const l = t.medium.max + 1;
|
|
801
|
+
return t.large = {
|
|
802
|
+
max: 2e3,
|
|
803
|
+
// TODO: decide upper limit
|
|
804
|
+
min: l,
|
|
805
|
+
default: l + 1
|
|
806
|
+
}, t;
|
|
807
|
+
};
|
|
808
|
+
function te(e) {
|
|
809
|
+
return /* @__PURE__ */ s(
|
|
810
|
+
"style",
|
|
811
|
+
{
|
|
812
|
+
dangerouslySetInnerHTML: { __html: e.styles },
|
|
813
|
+
"data-id": e.id,
|
|
814
|
+
nonce: e.nonce
|
|
815
|
+
}
|
|
816
|
+
);
|
|
817
|
+
}
|
|
818
|
+
function Ae(e) {
|
|
819
|
+
function t() {
|
|
820
|
+
const i = e.block;
|
|
821
|
+
return oe(i.hide) ? !i.hide : oe(i.show) ? i.show : !0;
|
|
822
|
+
}
|
|
823
|
+
function n() {
|
|
824
|
+
var T, E, U, H, q;
|
|
825
|
+
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = nt(
|
|
826
|
+
((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
|
|
827
|
+
), l = !!((U = (E = o == null ? void 0 : o.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, u = i.id;
|
|
828
|
+
if (!u)
|
|
829
|
+
return "";
|
|
830
|
+
const x = c ? X({
|
|
831
|
+
className: u,
|
|
832
|
+
styles: c
|
|
833
|
+
}) : "", f = d ? X({
|
|
834
|
+
className: u,
|
|
835
|
+
styles: d,
|
|
836
|
+
mediaQuery: de(
|
|
837
|
+
"medium",
|
|
838
|
+
a
|
|
839
|
+
)
|
|
840
|
+
}) : "", m = h ? X({
|
|
841
|
+
className: u,
|
|
842
|
+
styles: h,
|
|
843
|
+
mediaQuery: de(
|
|
844
|
+
"small",
|
|
845
|
+
a
|
|
846
|
+
)
|
|
847
|
+
}) : "", y = b && l ? X({
|
|
848
|
+
className: u,
|
|
849
|
+
styles: b,
|
|
850
|
+
mediaQuery: de(
|
|
851
|
+
"xsmall",
|
|
852
|
+
a
|
|
853
|
+
)
|
|
854
|
+
}) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
855
|
+
let S = "";
|
|
856
|
+
if (g) {
|
|
857
|
+
const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
858
|
+
S = X({
|
|
859
|
+
className: `${u}:hover`,
|
|
860
|
+
styles: {
|
|
861
|
+
...p,
|
|
862
|
+
transition: `all ${g.duration}s ${ce(
|
|
863
|
+
g.easing
|
|
864
|
+
)}`,
|
|
865
|
+
transitionDelay: g.delay ? `${g.delay}s` : "0s"
|
|
866
|
+
}
|
|
867
|
+
}) || "";
|
|
868
|
+
}
|
|
869
|
+
return [
|
|
870
|
+
x,
|
|
871
|
+
f,
|
|
872
|
+
m,
|
|
873
|
+
y,
|
|
874
|
+
S
|
|
875
|
+
].join(" ");
|
|
876
|
+
}
|
|
877
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
878
|
+
te,
|
|
879
|
+
{
|
|
880
|
+
id: "builderio-block",
|
|
881
|
+
styles: n(),
|
|
882
|
+
nonce: e.context.nonce
|
|
883
|
+
}
|
|
884
|
+
) }) : null });
|
|
885
|
+
}
|
|
886
|
+
function sn(e) {
|
|
887
|
+
k(() => !1);
|
|
888
|
+
const [t, n] = k(() => !1);
|
|
889
|
+
return ye(se), N(() => {
|
|
890
|
+
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
|
|
891
|
+
}
|
|
886
892
|
function ue(e) {
|
|
887
|
-
var
|
|
893
|
+
var h, b, u, x;
|
|
888
894
|
function t() {
|
|
889
|
-
return
|
|
895
|
+
return Kt({
|
|
890
896
|
block: e.block,
|
|
891
897
|
context: e.context
|
|
892
898
|
});
|
|
893
899
|
}
|
|
894
|
-
const [n, i] =
|
|
900
|
+
const [n, i] = k(() => ({
|
|
895
901
|
value: null,
|
|
896
902
|
update: !1
|
|
897
903
|
}));
|
|
898
904
|
function r() {
|
|
899
|
-
var
|
|
900
|
-
if (n.value && !n.update && !
|
|
905
|
+
var m;
|
|
906
|
+
if (n.value && !n.update && !le())
|
|
901
907
|
return n.value;
|
|
902
|
-
const
|
|
908
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
|
|
903
909
|
block: e.block,
|
|
904
910
|
localState: e.context.localState,
|
|
905
911
|
rootState: e.context.rootState,
|
|
906
912
|
rootSetState: e.context.rootSetState,
|
|
907
913
|
context: e.context.context
|
|
908
914
|
});
|
|
909
|
-
return n.value =
|
|
915
|
+
return n.value = f, n.update = !1, f;
|
|
910
916
|
}
|
|
911
917
|
function o() {
|
|
912
|
-
return
|
|
918
|
+
return zt({
|
|
913
919
|
block: r(),
|
|
914
920
|
registeredComponents: e.registeredComponents,
|
|
915
921
|
model: e.context.model
|
|
916
922
|
});
|
|
917
923
|
}
|
|
918
924
|
function a() {
|
|
919
|
-
var
|
|
920
|
-
return e.block.tagName === "a" || ((
|
|
925
|
+
var m;
|
|
926
|
+
return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
921
927
|
}
|
|
922
928
|
function l() {
|
|
923
|
-
var
|
|
924
|
-
if ((
|
|
925
|
-
return !!((
|
|
926
|
-
const
|
|
927
|
-
return ("show" in r() ? r().show : !0) && !
|
|
929
|
+
var y, g;
|
|
930
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
931
|
+
return !!((g = t == null ? void 0 : t()) != null && g.length);
|
|
932
|
+
const f = "hide" in r() ? r().hide : !1;
|
|
933
|
+
return ("show" in r() ? r().show : !0) && !f;
|
|
928
934
|
}
|
|
929
935
|
function c() {
|
|
930
|
-
var
|
|
931
|
-
return !((
|
|
936
|
+
var m, y;
|
|
937
|
+
return !((m = o == null ? void 0 : o()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
|
|
932
938
|
}
|
|
933
|
-
function
|
|
934
|
-
var
|
|
939
|
+
function d() {
|
|
940
|
+
var f, m, y, g;
|
|
935
941
|
return {
|
|
936
|
-
blockChildren: (
|
|
937
|
-
componentRef: (
|
|
942
|
+
blockChildren: (f = r().children) != null ? f : [],
|
|
943
|
+
componentRef: (m = o == null ? void 0 : o()) == null ? void 0 : m.component,
|
|
938
944
|
componentOptions: {
|
|
939
|
-
...
|
|
940
|
-
...
|
|
941
|
-
...
|
|
942
|
-
...
|
|
943
|
-
...
|
|
945
|
+
...Pt(r(), e.context),
|
|
946
|
+
...Qt(o(), r()),
|
|
947
|
+
...Yt(o(), e.context),
|
|
948
|
+
...Jt(o(), e.linkComponent),
|
|
949
|
+
...Gt(
|
|
944
950
|
o(),
|
|
945
951
|
e.registeredComponents,
|
|
946
952
|
e.context.model
|
|
@@ -950,54 +956,61 @@ function ue(e) {
|
|
|
950
956
|
linkComponent: e.linkComponent,
|
|
951
957
|
registeredComponents: e.registeredComponents,
|
|
952
958
|
builderBlock: r(),
|
|
953
|
-
includeBlockProps: ((
|
|
954
|
-
isInteractive: !((
|
|
959
|
+
includeBlockProps: ((y = o == null ? void 0 : o()) == null ? void 0 : y.noWrap) === !0,
|
|
960
|
+
isInteractive: !((g = o == null ? void 0 : o()) != null && g.isRSC && O === "rsc")
|
|
955
961
|
};
|
|
956
962
|
}
|
|
957
|
-
return
|
|
958
|
-
const
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
...
|
|
962
|
-
elementId:
|
|
963
|
+
return N(() => {
|
|
964
|
+
const f = r().id, m = r().animations;
|
|
965
|
+
m && f && _t(
|
|
966
|
+
m.map((y) => ({
|
|
967
|
+
...y,
|
|
968
|
+
elementId: f
|
|
963
969
|
}))
|
|
964
970
|
);
|
|
965
|
-
}, []),
|
|
971
|
+
}, []), N(() => {
|
|
966
972
|
n.update = !0;
|
|
967
|
-
}), /* @__PURE__ */ s(
|
|
968
|
-
/* @__PURE__ */ s(
|
|
969
|
-
|
|
973
|
+
}), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
|
|
974
|
+
/* @__PURE__ */ s(
|
|
975
|
+
sn,
|
|
976
|
+
{
|
|
977
|
+
block: r(),
|
|
978
|
+
context: e.context,
|
|
979
|
+
id: e.block.id
|
|
980
|
+
}
|
|
981
|
+
),
|
|
982
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
970
983
|
Ve,
|
|
971
984
|
{
|
|
972
|
-
repeatContext:
|
|
973
|
-
block:
|
|
985
|
+
repeatContext: f.context,
|
|
986
|
+
block: f.block,
|
|
974
987
|
registeredComponents: e.registeredComponents,
|
|
975
988
|
linkComponent: e.linkComponent
|
|
976
989
|
},
|
|
977
|
-
Re(
|
|
990
|
+
Re(m)
|
|
978
991
|
)) }) : /* @__PURE__ */ s(
|
|
979
992
|
Pe,
|
|
980
993
|
{
|
|
981
|
-
componentRef:
|
|
982
|
-
componentOptions:
|
|
983
|
-
blockChildren:
|
|
984
|
-
context:
|
|
985
|
-
registeredComponents:
|
|
986
|
-
linkComponent:
|
|
987
|
-
builderBlock:
|
|
988
|
-
includeBlockProps:
|
|
989
|
-
isInteractive:
|
|
994
|
+
componentRef: d().componentRef,
|
|
995
|
+
componentOptions: d().componentOptions,
|
|
996
|
+
blockChildren: d().blockChildren,
|
|
997
|
+
context: d().context,
|
|
998
|
+
registeredComponents: d().registeredComponents,
|
|
999
|
+
linkComponent: d().linkComponent,
|
|
1000
|
+
builderBlock: d().builderBlock,
|
|
1001
|
+
includeBlockProps: d().includeBlockProps,
|
|
1002
|
+
isInteractive: d().isInteractive
|
|
990
1003
|
}
|
|
991
|
-
) : /* @__PURE__ */ s(
|
|
1004
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
992
1005
|
Ve,
|
|
993
1006
|
{
|
|
994
|
-
repeatContext:
|
|
995
|
-
block:
|
|
1007
|
+
repeatContext: f.context,
|
|
1008
|
+
block: f.block,
|
|
996
1009
|
registeredComponents: e.registeredComponents,
|
|
997
1010
|
linkComponent: e.linkComponent
|
|
998
1011
|
},
|
|
999
|
-
Re(
|
|
1000
|
-
)) }) : /* @__PURE__ */
|
|
1012
|
+
Re(m)
|
|
1013
|
+
)) }) : /* @__PURE__ */ D(
|
|
1001
1014
|
rn,
|
|
1002
1015
|
{
|
|
1003
1016
|
Wrapper: a(),
|
|
@@ -1007,35 +1020,35 @@ function ue(e) {
|
|
|
1007
1020
|
/* @__PURE__ */ s(
|
|
1008
1021
|
Pe,
|
|
1009
1022
|
{
|
|
1010
|
-
componentRef:
|
|
1011
|
-
componentOptions:
|
|
1012
|
-
blockChildren:
|
|
1013
|
-
context:
|
|
1014
|
-
registeredComponents:
|
|
1015
|
-
linkComponent:
|
|
1016
|
-
builderBlock:
|
|
1017
|
-
includeBlockProps:
|
|
1018
|
-
isInteractive:
|
|
1023
|
+
componentRef: d().componentRef,
|
|
1024
|
+
componentOptions: d().componentOptions,
|
|
1025
|
+
blockChildren: d().blockChildren,
|
|
1026
|
+
context: d().context,
|
|
1027
|
+
registeredComponents: d().registeredComponents,
|
|
1028
|
+
linkComponent: d().linkComponent,
|
|
1029
|
+
builderBlock: d().builderBlock,
|
|
1030
|
+
includeBlockProps: d().includeBlockProps,
|
|
1031
|
+
isInteractive: d().isInteractive
|
|
1019
1032
|
}
|
|
1020
1033
|
),
|
|
1021
|
-
(b = c()) == null ? void 0 : b.map((
|
|
1034
|
+
(b = c()) == null ? void 0 : b.map((f) => /* @__PURE__ */ s(
|
|
1022
1035
|
ue,
|
|
1023
1036
|
{
|
|
1024
|
-
block:
|
|
1037
|
+
block: f,
|
|
1025
1038
|
registeredComponents: e.registeredComponents,
|
|
1026
1039
|
linkComponent: e.linkComponent,
|
|
1027
1040
|
context: e.context
|
|
1028
1041
|
},
|
|
1029
|
-
|
|
1042
|
+
f.id
|
|
1030
1043
|
))
|
|
1031
1044
|
]
|
|
1032
1045
|
}
|
|
1033
1046
|
) })
|
|
1034
1047
|
] }) : null });
|
|
1035
1048
|
}
|
|
1036
|
-
function
|
|
1037
|
-
const t =
|
|
1038
|
-
|
|
1049
|
+
function cn(e) {
|
|
1050
|
+
const t = z(null);
|
|
1051
|
+
k(() => !1);
|
|
1039
1052
|
function n() {
|
|
1040
1053
|
var a;
|
|
1041
1054
|
return [
|
|
@@ -1052,7 +1065,7 @@ function sn(e) {
|
|
|
1052
1065
|
}
|
|
1053
1066
|
function r() {
|
|
1054
1067
|
var a, l;
|
|
1055
|
-
|
|
1068
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1056
1069
|
{
|
|
1057
1070
|
type: "builder.clickEmptyBlocks",
|
|
1058
1071
|
data: {
|
|
@@ -1065,7 +1078,7 @@ function sn(e) {
|
|
|
1065
1078
|
}
|
|
1066
1079
|
function o() {
|
|
1067
1080
|
var a, l;
|
|
1068
|
-
|
|
1081
|
+
_() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
1069
1082
|
{
|
|
1070
1083
|
type: "builder.hoverEmptyBlocks",
|
|
1071
1084
|
data: {
|
|
@@ -1076,10 +1089,10 @@ function sn(e) {
|
|
|
1076
1089
|
"*"
|
|
1077
1090
|
));
|
|
1078
1091
|
}
|
|
1079
|
-
return
|
|
1080
|
-
}, []),
|
|
1081
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1082
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1092
|
+
return N(() => {
|
|
1093
|
+
}, []), N(() => {
|
|
1094
|
+
}, [e.blocks]), /* @__PURE__ */ D(w, { children: [
|
|
1095
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1083
1096
|
display: flex;
|
|
1084
1097
|
flex-direction: column;
|
|
1085
1098
|
align-items: stretch;
|
|
@@ -1088,7 +1101,7 @@ function sn(e) {
|
|
|
1088
1101
|
e.BlocksWrapper,
|
|
1089
1102
|
{
|
|
1090
1103
|
ref: t,
|
|
1091
|
-
className: n() + " props-blocks-wrapper-
|
|
1104
|
+
className: n() + " props-blocks-wrapper-b46bf284",
|
|
1092
1105
|
"builder-path": i(),
|
|
1093
1106
|
"builder-parent-id": e.parent,
|
|
1094
1107
|
style: e.styleProp,
|
|
@@ -1101,11 +1114,11 @@ function sn(e) {
|
|
|
1101
1114
|
)
|
|
1102
1115
|
] });
|
|
1103
1116
|
}
|
|
1104
|
-
function
|
|
1117
|
+
function M(e) {
|
|
1105
1118
|
var i, r, o;
|
|
1106
|
-
const t =
|
|
1107
|
-
return /* @__PURE__ */
|
|
1108
|
-
|
|
1119
|
+
const t = ye(se), n = ye(Me);
|
|
1120
|
+
return /* @__PURE__ */ D(
|
|
1121
|
+
cn,
|
|
1109
1122
|
{
|
|
1110
1123
|
blocks: e.blocks,
|
|
1111
1124
|
parent: e.parent,
|
|
@@ -1116,7 +1129,7 @@ function U(e) {
|
|
|
1116
1129
|
BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1117
1130
|
children: [
|
|
1118
1131
|
e.children,
|
|
1119
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1132
|
+
e.blocks ? /* @__PURE__ */ s(w, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
|
|
1120
1133
|
ue,
|
|
1121
1134
|
{
|
|
1122
1135
|
block: a,
|
|
@@ -1130,9 +1143,9 @@ function U(e) {
|
|
|
1130
1143
|
}
|
|
1131
1144
|
);
|
|
1132
1145
|
}
|
|
1133
|
-
const
|
|
1134
|
-
function
|
|
1135
|
-
var
|
|
1146
|
+
const un = (e) => `builder-columns ${e}-breakpoints`;
|
|
1147
|
+
function dn(e) {
|
|
1148
|
+
var m, y;
|
|
1136
1149
|
function t() {
|
|
1137
1150
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1138
1151
|
}
|
|
@@ -1142,147 +1155,147 @@ function un(e) {
|
|
|
1142
1155
|
function i() {
|
|
1143
1156
|
return e.stackColumnsAt || "tablet";
|
|
1144
1157
|
}
|
|
1145
|
-
function r(
|
|
1146
|
-
return
|
|
1158
|
+
function r(g) {
|
|
1159
|
+
return g.link ? e.builderLinkComponent || "a" : "div";
|
|
1147
1160
|
}
|
|
1148
|
-
function o(
|
|
1161
|
+
function o(g) {
|
|
1149
1162
|
var S;
|
|
1150
|
-
return ((S = n()[
|
|
1163
|
+
return ((S = n()[g]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1151
1164
|
}
|
|
1152
|
-
function a(
|
|
1153
|
-
const S = o(
|
|
1154
|
-
return `calc(${S}% - ${
|
|
1165
|
+
function a(g) {
|
|
1166
|
+
const S = o(g), T = t() * (n().length - 1) * (S / 100);
|
|
1167
|
+
return `calc(${S}% - ${T}px)`;
|
|
1155
1168
|
}
|
|
1156
1169
|
function l({
|
|
1157
|
-
stackedStyle:
|
|
1170
|
+
stackedStyle: g,
|
|
1158
1171
|
desktopStyle: S
|
|
1159
1172
|
}) {
|
|
1160
|
-
return i() === "tablet" ?
|
|
1173
|
+
return i() === "tablet" ? g : S;
|
|
1161
1174
|
}
|
|
1162
1175
|
function c({
|
|
1163
|
-
stackedStyle:
|
|
1176
|
+
stackedStyle: g,
|
|
1164
1177
|
desktopStyle: S
|
|
1165
1178
|
}) {
|
|
1166
|
-
return i() === "never" ? S :
|
|
1179
|
+
return i() === "never" ? S : g;
|
|
1167
1180
|
}
|
|
1168
|
-
function
|
|
1181
|
+
function d() {
|
|
1169
1182
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1170
1183
|
}
|
|
1171
|
-
function
|
|
1184
|
+
function h() {
|
|
1172
1185
|
return {
|
|
1173
|
-
"--flex-dir":
|
|
1186
|
+
"--flex-dir": d(),
|
|
1174
1187
|
"--flex-dir-tablet": l({
|
|
1175
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: d(),
|
|
1176
1189
|
desktopStyle: "row"
|
|
1177
1190
|
})
|
|
1178
1191
|
};
|
|
1179
1192
|
}
|
|
1180
|
-
function b(
|
|
1181
|
-
const S =
|
|
1193
|
+
function b(g) {
|
|
1194
|
+
const S = g === 0 ? 0 : t(), T = a(g), E = `${S}px`, U = "100%", H = 0;
|
|
1182
1195
|
return {
|
|
1183
1196
|
...{
|
|
1184
1197
|
display: "flex",
|
|
1185
1198
|
flexDirection: "column",
|
|
1186
1199
|
alignItems: "stretch"
|
|
1187
1200
|
},
|
|
1188
|
-
width:
|
|
1189
|
-
["marginLeft"]:
|
|
1201
|
+
width: T,
|
|
1202
|
+
["marginLeft"]: E,
|
|
1190
1203
|
"--column-width-mobile": c({
|
|
1191
|
-
stackedStyle:
|
|
1192
|
-
desktopStyle:
|
|
1204
|
+
stackedStyle: U,
|
|
1205
|
+
desktopStyle: T
|
|
1193
1206
|
}),
|
|
1194
1207
|
"--column-margin-left-mobile": c({
|
|
1195
|
-
stackedStyle:
|
|
1196
|
-
desktopStyle:
|
|
1208
|
+
stackedStyle: H,
|
|
1209
|
+
desktopStyle: E
|
|
1197
1210
|
}),
|
|
1198
1211
|
"--column-width-tablet": l({
|
|
1199
|
-
stackedStyle:
|
|
1200
|
-
desktopStyle:
|
|
1212
|
+
stackedStyle: U,
|
|
1213
|
+
desktopStyle: T
|
|
1201
1214
|
}),
|
|
1202
1215
|
"--column-margin-left-tablet": l({
|
|
1203
|
-
stackedStyle:
|
|
1204
|
-
desktopStyle:
|
|
1216
|
+
stackedStyle: H,
|
|
1217
|
+
desktopStyle: E
|
|
1205
1218
|
})
|
|
1206
1219
|
};
|
|
1207
1220
|
}
|
|
1208
|
-
function
|
|
1209
|
-
var
|
|
1210
|
-
return
|
|
1211
|
-
((
|
|
1212
|
-
)[
|
|
1221
|
+
function u(g) {
|
|
1222
|
+
var T, E;
|
|
1223
|
+
return nt(
|
|
1224
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1225
|
+
)[g].max;
|
|
1213
1226
|
}
|
|
1214
|
-
function
|
|
1215
|
-
const
|
|
1227
|
+
function x() {
|
|
1228
|
+
const g = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1216
1229
|
return `
|
|
1217
|
-
@media (max-width: ${
|
|
1230
|
+
@media (max-width: ${u("medium")}px) {
|
|
1218
1231
|
.${e.builderBlock.id}-breakpoints {
|
|
1219
1232
|
flex-direction: var(--flex-dir-tablet);
|
|
1220
1233
|
align-items: stretch;
|
|
1221
1234
|
}
|
|
1222
1235
|
|
|
1223
|
-
${
|
|
1236
|
+
${g} {
|
|
1224
1237
|
width: var(--column-width-tablet) !important;
|
|
1225
1238
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1226
1239
|
}
|
|
1227
1240
|
}
|
|
1228
1241
|
|
|
1229
|
-
@media (max-width: ${
|
|
1242
|
+
@media (max-width: ${u("small")}px) {
|
|
1230
1243
|
.${e.builderBlock.id}-breakpoints {
|
|
1231
1244
|
flex-direction: var(--flex-dir);
|
|
1232
1245
|
align-items: stretch;
|
|
1233
1246
|
}
|
|
1234
1247
|
|
|
1235
|
-
${
|
|
1248
|
+
${g} {
|
|
1236
1249
|
width: var(--column-width-mobile) !important;
|
|
1237
1250
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1238
1251
|
}
|
|
1239
1252
|
},
|
|
1240
1253
|
`;
|
|
1241
1254
|
}
|
|
1242
|
-
function
|
|
1255
|
+
function f(g, S) {
|
|
1243
1256
|
return {
|
|
1244
|
-
...
|
|
1245
|
-
href:
|
|
1257
|
+
...g.link ? {
|
|
1258
|
+
href: g.link
|
|
1246
1259
|
} : {},
|
|
1247
|
-
[
|
|
1248
|
-
style:
|
|
1260
|
+
[K()]: "builder-column",
|
|
1261
|
+
style: Xe(b(S))
|
|
1249
1262
|
};
|
|
1250
1263
|
}
|
|
1251
|
-
return /* @__PURE__ */
|
|
1264
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
1252
1265
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1253
1266
|
display: flex;
|
|
1254
1267
|
line-height: normal;
|
|
1255
1268
|
height: 100%;
|
|
1256
1269
|
}` }),
|
|
1257
|
-
/* @__PURE__ */
|
|
1270
|
+
/* @__PURE__ */ D(
|
|
1258
1271
|
"div",
|
|
1259
1272
|
{
|
|
1260
|
-
className:
|
|
1261
|
-
style:
|
|
1273
|
+
className: un((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1274
|
+
style: h(),
|
|
1262
1275
|
children: [
|
|
1263
1276
|
/* @__PURE__ */ s(
|
|
1264
|
-
|
|
1277
|
+
te,
|
|
1265
1278
|
{
|
|
1266
1279
|
id: "builderio-columns",
|
|
1267
|
-
styles:
|
|
1280
|
+
styles: x(),
|
|
1268
1281
|
nonce: e.builderContext.nonce
|
|
1269
1282
|
}
|
|
1270
1283
|
),
|
|
1271
|
-
(
|
|
1272
|
-
|
|
1284
|
+
(y = e.columns) == null ? void 0 : y.map((g, S) => /* @__PURE__ */ s(
|
|
1285
|
+
ve,
|
|
1273
1286
|
{
|
|
1274
|
-
TagName: r(
|
|
1287
|
+
TagName: r(g),
|
|
1275
1288
|
actionAttributes: {},
|
|
1276
|
-
attributes:
|
|
1289
|
+
attributes: f(g, S),
|
|
1277
1290
|
children: /* @__PURE__ */ s(
|
|
1278
|
-
|
|
1291
|
+
M,
|
|
1279
1292
|
{
|
|
1280
1293
|
path: `columns.${S}.blocks`,
|
|
1281
1294
|
parent: e.builderBlock.id,
|
|
1282
1295
|
context: e.builderContext,
|
|
1283
1296
|
registeredComponents: e.builderComponents,
|
|
1284
1297
|
linkComponent: e.builderLinkComponent,
|
|
1285
|
-
blocks:
|
|
1298
|
+
blocks: g.blocks,
|
|
1286
1299
|
styleProp: {
|
|
1287
1300
|
flexGrow: "1"
|
|
1288
1301
|
}
|
|
@@ -1296,73 +1309,73 @@ function un(e) {
|
|
|
1296
1309
|
)
|
|
1297
1310
|
] });
|
|
1298
1311
|
}
|
|
1299
|
-
function
|
|
1312
|
+
function mn(e) {
|
|
1300
1313
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1301
1314
|
}
|
|
1302
|
-
function
|
|
1315
|
+
function Be(e) {
|
|
1303
1316
|
return e.replace(/http(s)?:/, "");
|
|
1304
1317
|
}
|
|
1305
|
-
function
|
|
1318
|
+
function fn(e = "", t, n) {
|
|
1306
1319
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1307
1320
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1308
1321
|
}
|
|
1309
|
-
function
|
|
1322
|
+
function hn(e, t) {
|
|
1310
1323
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1311
1324
|
return e;
|
|
1312
1325
|
if (t === "master")
|
|
1313
|
-
return
|
|
1326
|
+
return Be(e);
|
|
1314
1327
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1315
1328
|
if (n) {
|
|
1316
1329
|
const i = e.split(n[0]), r = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1317
|
-
return
|
|
1330
|
+
return Be(`${i[0]}_${o}${r}`);
|
|
1318
1331
|
}
|
|
1319
1332
|
return null;
|
|
1320
1333
|
}
|
|
1321
|
-
function
|
|
1334
|
+
function me(e) {
|
|
1322
1335
|
if (!e)
|
|
1323
1336
|
return e;
|
|
1324
1337
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1325
1338
|
if (e.match(/builder\.io/)) {
|
|
1326
1339
|
let n = e;
|
|
1327
1340
|
const i = Number(e.split("?width=")[1]);
|
|
1328
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${
|
|
1341
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((r) => r !== i).map((r) => `${fn(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1329
1342
|
}
|
|
1330
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1343
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [hn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1331
1344
|
}
|
|
1332
|
-
function
|
|
1333
|
-
var r, o, a, l, c,
|
|
1345
|
+
function gn(e) {
|
|
1346
|
+
var r, o, a, l, c, d;
|
|
1334
1347
|
function t() {
|
|
1335
|
-
var
|
|
1348
|
+
var u;
|
|
1336
1349
|
const b = e.image || e.src;
|
|
1337
1350
|
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1338
1351
|
// images, otherwise you can supply this prop manually
|
|
1339
1352
|
!(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
|
|
1340
1353
|
return e.srcset;
|
|
1341
1354
|
if (!e.noWebp) {
|
|
1342
|
-
if (e.srcset && ((
|
|
1355
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1343
1356
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1344
|
-
return console.debug("Removed given srcset"),
|
|
1357
|
+
return console.debug("Removed given srcset"), me(b);
|
|
1345
1358
|
} else if (e.image && !e.srcset)
|
|
1346
|
-
return
|
|
1347
|
-
return
|
|
1359
|
+
return me(b);
|
|
1360
|
+
return me(b);
|
|
1348
1361
|
}
|
|
1349
1362
|
}
|
|
1350
1363
|
function n() {
|
|
1351
|
-
var
|
|
1352
|
-
return (
|
|
1364
|
+
var h;
|
|
1365
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1353
1366
|
}
|
|
1354
1367
|
function i() {
|
|
1355
|
-
const
|
|
1368
|
+
const h = {
|
|
1356
1369
|
position: "absolute",
|
|
1357
1370
|
height: "100%",
|
|
1358
1371
|
width: "100%",
|
|
1359
1372
|
left: "0px",
|
|
1360
1373
|
top: "0px"
|
|
1361
1374
|
};
|
|
1362
|
-
return e.aspectRatio ?
|
|
1375
|
+
return e.aspectRatio ? h : void 0;
|
|
1363
1376
|
}
|
|
1364
|
-
return
|
|
1365
|
-
}, []), /* @__PURE__ */
|
|
1377
|
+
return N(() => {
|
|
1378
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
1366
1379
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1367
1380
|
opacity: 1;
|
|
1368
1381
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1380,8 +1393,8 @@ function hn(e) {
|
|
|
1380
1393
|
width: 100%;
|
|
1381
1394
|
height: 100%;
|
|
1382
1395
|
}` }),
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
/* @__PURE__ */
|
|
1396
|
+
/* @__PURE__ */ D(w, { children: [
|
|
1397
|
+
/* @__PURE__ */ D("picture", { children: [
|
|
1385
1398
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1386
1399
|
/* @__PURE__ */ s(
|
|
1387
1400
|
"img",
|
|
@@ -1412,12 +1425,12 @@ function hn(e) {
|
|
|
1412
1425
|
}
|
|
1413
1426
|
}
|
|
1414
1427
|
) : null,
|
|
1415
|
-
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1416
|
-
!e.fitContent && ((
|
|
1428
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1429
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1417
1430
|
] })
|
|
1418
1431
|
] });
|
|
1419
1432
|
}
|
|
1420
|
-
function
|
|
1433
|
+
function bn(e) {
|
|
1421
1434
|
return /* @__PURE__ */ s(
|
|
1422
1435
|
"section",
|
|
1423
1436
|
{
|
|
@@ -1438,51 +1451,51 @@ function gn(e) {
|
|
|
1438
1451
|
}
|
|
1439
1452
|
);
|
|
1440
1453
|
}
|
|
1441
|
-
function
|
|
1442
|
-
function r(
|
|
1443
|
-
return typeof
|
|
1454
|
+
function yn(e, t, n, i) {
|
|
1455
|
+
function r(d) {
|
|
1456
|
+
return typeof d == "string";
|
|
1444
1457
|
}
|
|
1445
|
-
function o(
|
|
1446
|
-
return typeof
|
|
1458
|
+
function o(d) {
|
|
1459
|
+
return typeof d == "number";
|
|
1447
1460
|
}
|
|
1448
|
-
function a(
|
|
1461
|
+
function a(d, h) {
|
|
1449
1462
|
return (() => {
|
|
1450
|
-
const
|
|
1451
|
-
let
|
|
1452
|
-
if (
|
|
1463
|
+
const u = h.property, x = h.operator;
|
|
1464
|
+
let f = h.value;
|
|
1465
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1453
1466
|
return !0;
|
|
1454
|
-
if (Array.isArray(
|
|
1455
|
-
return
|
|
1456
|
-
property:
|
|
1457
|
-
operator:
|
|
1458
|
-
value:
|
|
1459
|
-
})) : !!
|
|
1460
|
-
property:
|
|
1461
|
-
operator:
|
|
1462
|
-
value:
|
|
1467
|
+
if (Array.isArray(f))
|
|
1468
|
+
return x === "isNot" ? f.every((y) => a(d, {
|
|
1469
|
+
property: u,
|
|
1470
|
+
operator: x,
|
|
1471
|
+
value: y
|
|
1472
|
+
})) : !!f.find((y) => a(d, {
|
|
1473
|
+
property: u,
|
|
1474
|
+
operator: x,
|
|
1475
|
+
value: y
|
|
1463
1476
|
}));
|
|
1464
|
-
const
|
|
1465
|
-
if (Array.isArray(
|
|
1466
|
-
return
|
|
1467
|
-
switch (
|
|
1477
|
+
const m = d[u];
|
|
1478
|
+
if (Array.isArray(m))
|
|
1479
|
+
return m.includes(f);
|
|
1480
|
+
switch (x) {
|
|
1468
1481
|
case "is":
|
|
1469
|
-
return
|
|
1482
|
+
return m === f;
|
|
1470
1483
|
case "isNot":
|
|
1471
|
-
return
|
|
1484
|
+
return m !== f;
|
|
1472
1485
|
case "contains":
|
|
1473
|
-
return (r(
|
|
1486
|
+
return (r(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1474
1487
|
case "startsWith":
|
|
1475
|
-
return r(
|
|
1488
|
+
return r(m) && m.startsWith(String(f));
|
|
1476
1489
|
case "endsWith":
|
|
1477
|
-
return r(
|
|
1490
|
+
return r(m) && m.endsWith(String(f));
|
|
1478
1491
|
case "greaterThan":
|
|
1479
|
-
return o(
|
|
1492
|
+
return o(m) && o(f) && m > f;
|
|
1480
1493
|
case "lessThan":
|
|
1481
|
-
return o(
|
|
1494
|
+
return o(m) && o(f) && m < f;
|
|
1482
1495
|
case "greaterThanOrEqualTo":
|
|
1483
|
-
return o(
|
|
1496
|
+
return o(m) && o(f) && m >= f;
|
|
1484
1497
|
case "lessThanOrEqualTo":
|
|
1485
|
-
return o(
|
|
1498
|
+
return o(m) && o(f) && m <= f;
|
|
1486
1499
|
default:
|
|
1487
1500
|
return !1;
|
|
1488
1501
|
}
|
|
@@ -1493,9 +1506,9 @@ function bn(e, t, n, i) {
|
|
|
1493
1506
|
startDate: n,
|
|
1494
1507
|
endDate: i
|
|
1495
1508
|
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1496
|
-
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((
|
|
1509
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => a(e, d));
|
|
1497
1510
|
}
|
|
1498
|
-
const
|
|
1511
|
+
const pn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1499
1512
|
if (!navigator.cookieEnabled) {
|
|
1500
1513
|
return;
|
|
1501
1514
|
}
|
|
@@ -1540,7 +1553,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1540
1553
|
thisScript.remove();
|
|
1541
1554
|
}
|
|
1542
1555
|
}
|
|
1543
|
-
}`,
|
|
1556
|
+
}`, vn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1544
1557
|
function isString(val) {
|
|
1545
1558
|
return typeof val === 'string';
|
|
1546
1559
|
}
|
|
@@ -1618,7 +1631,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1618
1631
|
return item.query.every(filter => {
|
|
1619
1632
|
return objectMatchesQuery(userAttributes, filter);
|
|
1620
1633
|
});
|
|
1621
|
-
}`,
|
|
1634
|
+
}`, xn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1622
1635
|
function getCookie(name) {
|
|
1623
1636
|
const nameEQ = name + '=';
|
|
1624
1637
|
const ca = document.cookie.split(';');
|
|
@@ -1656,11 +1669,11 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1656
1669
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1657
1670
|
}
|
|
1658
1671
|
}
|
|
1659
|
-
}`,
|
|
1660
|
-
function
|
|
1661
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
1672
|
+
}`, ne = "default", Sn = "filterWithCustomTargeting", it = "builderIoPersonalization", rt = "updateVisibilityStylesScript", ot = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1673
|
+
function kn(e, t) {
|
|
1674
|
+
return !(e && e.length > 0) || !t ? !1 : ie.includes(O) ? !0 : !J();
|
|
1662
1675
|
}
|
|
1663
|
-
function
|
|
1676
|
+
function Cn({
|
|
1664
1677
|
variants: e,
|
|
1665
1678
|
previewingIndex: t,
|
|
1666
1679
|
isHydrated: n,
|
|
@@ -1671,9 +1684,9 @@ function kn({
|
|
|
1671
1684
|
const o = {
|
|
1672
1685
|
blocks: r != null ? r : [],
|
|
1673
1686
|
path: "this.children",
|
|
1674
|
-
index:
|
|
1687
|
+
index: ne
|
|
1675
1688
|
};
|
|
1676
|
-
if (n &&
|
|
1689
|
+
if (n && _()) {
|
|
1677
1690
|
if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
|
|
1678
1691
|
const l = e == null ? void 0 : e[t];
|
|
1679
1692
|
if (l)
|
|
@@ -1685,7 +1698,7 @@ function kn({
|
|
|
1685
1698
|
}
|
|
1686
1699
|
return o;
|
|
1687
1700
|
}
|
|
1688
|
-
if (
|
|
1701
|
+
if (J()) {
|
|
1689
1702
|
const l = i == null ? void 0 : i[0];
|
|
1690
1703
|
if (l && e) {
|
|
1691
1704
|
const c = e.indexOf(l);
|
|
@@ -1699,11 +1712,11 @@ function kn({
|
|
|
1699
1712
|
}
|
|
1700
1713
|
return o;
|
|
1701
1714
|
}
|
|
1702
|
-
const
|
|
1703
|
-
window.${
|
|
1704
|
-
window.${
|
|
1705
|
-
window.${
|
|
1706
|
-
`,
|
|
1715
|
+
const Tn = () => `
|
|
1716
|
+
window.${Sn} = ${vn}
|
|
1717
|
+
window.${it} = ${pn}
|
|
1718
|
+
window.${rt} = ${xn}
|
|
1719
|
+
`, at = O === "react", In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, wn = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, fe = {
|
|
1707
1720
|
"@type": "@builder.io/sdk:Element",
|
|
1708
1721
|
layerName: "Accordion item title",
|
|
1709
1722
|
responsiveStyles: {
|
|
@@ -1732,7 +1745,7 @@ const Cn = () => `
|
|
|
1732
1745
|
}
|
|
1733
1746
|
}
|
|
1734
1747
|
}]
|
|
1735
|
-
},
|
|
1748
|
+
}, he = {
|
|
1736
1749
|
"@type": "@builder.io/sdk:Element",
|
|
1737
1750
|
layerName: "Accordion item detail",
|
|
1738
1751
|
responsiveStyles: {
|
|
@@ -1763,7 +1776,7 @@ const Cn = () => `
|
|
|
1763
1776
|
}
|
|
1764
1777
|
}
|
|
1765
1778
|
}]
|
|
1766
|
-
},
|
|
1779
|
+
}, En = {
|
|
1767
1780
|
name: "Builder:Accordion",
|
|
1768
1781
|
canHaveChildren: !0,
|
|
1769
1782
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1780,19 +1793,19 @@ const Cn = () => `
|
|
|
1780
1793
|
name: "title",
|
|
1781
1794
|
type: "uiBlocks",
|
|
1782
1795
|
hideFromUI: !0,
|
|
1783
|
-
defaultValue: [
|
|
1796
|
+
defaultValue: [fe]
|
|
1784
1797
|
}, {
|
|
1785
1798
|
name: "detail",
|
|
1786
1799
|
type: "uiBlocks",
|
|
1787
1800
|
hideFromUI: !0,
|
|
1788
|
-
defaultValue: [
|
|
1801
|
+
defaultValue: [he]
|
|
1789
1802
|
}],
|
|
1790
1803
|
defaultValue: [{
|
|
1791
|
-
title: [
|
|
1792
|
-
detail: [
|
|
1804
|
+
title: [fe],
|
|
1805
|
+
detail: [he]
|
|
1793
1806
|
}, {
|
|
1794
|
-
title: [
|
|
1795
|
-
detail: [
|
|
1807
|
+
title: [fe],
|
|
1808
|
+
detail: [he]
|
|
1796
1809
|
}],
|
|
1797
1810
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1798
1811
|
}, {
|
|
@@ -1827,10 +1840,10 @@ const Cn = () => `
|
|
|
1827
1840
|
builderComponents: !0,
|
|
1828
1841
|
builderLinkComponent: !0
|
|
1829
1842
|
}
|
|
1830
|
-
},
|
|
1831
|
-
function
|
|
1843
|
+
}, Ne = (e) => e.toString();
|
|
1844
|
+
function Rn(e) {
|
|
1832
1845
|
var b;
|
|
1833
|
-
const [t, n] =
|
|
1846
|
+
const [t, n] = k(() => []);
|
|
1834
1847
|
function i() {
|
|
1835
1848
|
return !!(e.grid || e.oneAtATime);
|
|
1836
1849
|
}
|
|
@@ -1847,7 +1860,7 @@ function En(e) {
|
|
|
1847
1860
|
};
|
|
1848
1861
|
}
|
|
1849
1862
|
function o() {
|
|
1850
|
-
const
|
|
1863
|
+
const x = {
|
|
1851
1864
|
...{
|
|
1852
1865
|
display: "flex",
|
|
1853
1866
|
flexDirection: "column"
|
|
@@ -1856,75 +1869,75 @@ function En(e) {
|
|
|
1856
1869
|
cursor: "pointer"
|
|
1857
1870
|
};
|
|
1858
1871
|
return Object.fromEntries(
|
|
1859
|
-
Object.entries(
|
|
1872
|
+
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1860
1873
|
);
|
|
1861
1874
|
}
|
|
1862
|
-
function a(
|
|
1863
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1875
|
+
function a(u) {
|
|
1876
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1864
1877
|
}
|
|
1865
|
-
function l(
|
|
1866
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1878
|
+
function l(u) {
|
|
1879
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1867
1880
|
}
|
|
1868
1881
|
function c() {
|
|
1869
|
-
let
|
|
1882
|
+
let u = null;
|
|
1870
1883
|
if (e.grid && t.length && document) {
|
|
1871
|
-
const
|
|
1872
|
-
let
|
|
1873
|
-
`.builder-accordion-title[data-index="${
|
|
1884
|
+
const f = t[0];
|
|
1885
|
+
let y = document.querySelector(
|
|
1886
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1874
1887
|
);
|
|
1875
|
-
if (
|
|
1876
|
-
let
|
|
1877
|
-
for (;
|
|
1878
|
-
if (
|
|
1879
|
-
if (
|
|
1888
|
+
if (u = f, y) {
|
|
1889
|
+
let g = y.getBoundingClientRect();
|
|
1890
|
+
for (; y = y && y.nextElementSibling; )
|
|
1891
|
+
if (y) {
|
|
1892
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1880
1893
|
continue;
|
|
1881
|
-
const S =
|
|
1882
|
-
if (S.left >
|
|
1883
|
-
const
|
|
1884
|
-
|
|
1894
|
+
const S = y.getBoundingClientRect();
|
|
1895
|
+
if (S.left > g.left) {
|
|
1896
|
+
const T = parseInt(
|
|
1897
|
+
y.getAttribute("data-index") || "",
|
|
1885
1898
|
10
|
|
1886
1899
|
);
|
|
1887
|
-
isNaN(
|
|
1900
|
+
isNaN(T) || (g = S, u = T);
|
|
1888
1901
|
} else
|
|
1889
1902
|
break;
|
|
1890
1903
|
}
|
|
1891
1904
|
}
|
|
1892
1905
|
}
|
|
1893
|
-
return typeof
|
|
1906
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1894
1907
|
}
|
|
1895
|
-
function
|
|
1896
|
-
const
|
|
1908
|
+
function d() {
|
|
1909
|
+
const u = {
|
|
1897
1910
|
order: typeof c() == "number" ? c() : void 0,
|
|
1898
1911
|
...e.grid && {
|
|
1899
1912
|
width: "100%"
|
|
1900
1913
|
}
|
|
1901
1914
|
};
|
|
1902
1915
|
return Object.fromEntries(
|
|
1903
|
-
Object.entries(
|
|
1916
|
+
Object.entries(u).filter(([x, f]) => f !== void 0)
|
|
1904
1917
|
);
|
|
1905
1918
|
}
|
|
1906
|
-
function
|
|
1907
|
-
t.includes(
|
|
1919
|
+
function h(u) {
|
|
1920
|
+
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1908
1921
|
}
|
|
1909
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((
|
|
1922
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(bt.Fragment, { children: [
|
|
1910
1923
|
/* @__PURE__ */ s(
|
|
1911
1924
|
"div",
|
|
1912
1925
|
{
|
|
1913
|
-
className: a(
|
|
1926
|
+
className: a(x),
|
|
1914
1927
|
style: {
|
|
1915
1928
|
...o(),
|
|
1916
1929
|
...e.grid && {
|
|
1917
1930
|
width: e.gridRowWidth,
|
|
1918
|
-
order: c() !== null ?
|
|
1931
|
+
order: c() !== null ? Ne(x) : Ne(x + 1)
|
|
1919
1932
|
}
|
|
1920
1933
|
},
|
|
1921
|
-
"data-index":
|
|
1922
|
-
onClick: (
|
|
1934
|
+
"data-index": x,
|
|
1935
|
+
onClick: (f) => h(x),
|
|
1923
1936
|
children: /* @__PURE__ */ s(
|
|
1924
|
-
|
|
1937
|
+
M,
|
|
1925
1938
|
{
|
|
1926
|
-
blocks:
|
|
1927
|
-
path: `items.${
|
|
1939
|
+
blocks: u.title,
|
|
1940
|
+
path: `items.${x}.title`,
|
|
1928
1941
|
parent: e.builderBlock.id,
|
|
1929
1942
|
context: e.builderContext,
|
|
1930
1943
|
registeredComponents: e.builderComponents,
|
|
@@ -1933,16 +1946,16 @@ function En(e) {
|
|
|
1933
1946
|
)
|
|
1934
1947
|
}
|
|
1935
1948
|
),
|
|
1936
|
-
t.includes(
|
|
1949
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1937
1950
|
"div",
|
|
1938
1951
|
{
|
|
1939
|
-
className: l(
|
|
1940
|
-
style:
|
|
1952
|
+
className: l(x),
|
|
1953
|
+
style: d(),
|
|
1941
1954
|
children: /* @__PURE__ */ s(
|
|
1942
|
-
|
|
1955
|
+
M,
|
|
1943
1956
|
{
|
|
1944
|
-
blocks:
|
|
1945
|
-
path: `items.${
|
|
1957
|
+
blocks: u.detail,
|
|
1958
|
+
path: `items.${x}.detail`,
|
|
1946
1959
|
parent: e.builderBlock.id,
|
|
1947
1960
|
context: e.builderContext,
|
|
1948
1961
|
registeredComponents: e.builderComponents,
|
|
@@ -1951,9 +1964,9 @@ function En(e) {
|
|
|
1951
1964
|
)
|
|
1952
1965
|
}
|
|
1953
1966
|
) : null
|
|
1954
|
-
] },
|
|
1967
|
+
] }, x)) });
|
|
1955
1968
|
}
|
|
1956
|
-
const
|
|
1969
|
+
const Pn = {
|
|
1957
1970
|
name: "Core:Button",
|
|
1958
1971
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1959
1972
|
defaultStyles: {
|
|
@@ -1989,7 +2002,7 @@ const Rn = {
|
|
|
1989
2002
|
shouldReceiveBuilderProps: {
|
|
1990
2003
|
builderLinkComponent: !0
|
|
1991
2004
|
}
|
|
1992
|
-
},
|
|
2005
|
+
}, Vn = {
|
|
1993
2006
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1994
2007
|
name: "Columns",
|
|
1995
2008
|
isRSC: !0,
|
|
@@ -2196,13 +2209,13 @@ const Rn = {
|
|
|
2196
2209
|
builderComponents: !0,
|
|
2197
2210
|
builderLinkComponent: !0
|
|
2198
2211
|
}
|
|
2199
|
-
},
|
|
2212
|
+
}, An = {
|
|
2200
2213
|
name: "Fragment",
|
|
2201
2214
|
static: !0,
|
|
2202
2215
|
hidden: !0,
|
|
2203
2216
|
canHaveChildren: !0,
|
|
2204
2217
|
noWrap: !0
|
|
2205
|
-
},
|
|
2218
|
+
}, ke = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Bn = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Nn = {
|
|
2206
2219
|
name: "Image",
|
|
2207
2220
|
static: !0,
|
|
2208
2221
|
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",
|
|
@@ -2217,21 +2230,21 @@ const Rn = {
|
|
|
2217
2230
|
name: "image",
|
|
2218
2231
|
type: "file",
|
|
2219
2232
|
bubble: !0,
|
|
2220
|
-
allowedFileTypes:
|
|
2233
|
+
allowedFileTypes: ke,
|
|
2221
2234
|
required: !0,
|
|
2222
2235
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2223
2236
|
onChange: (e) => {
|
|
2224
2237
|
e.delete("srcset"), e.delete("noWebp");
|
|
2225
2238
|
function n(a, l = 6e4) {
|
|
2226
|
-
return new Promise((c,
|
|
2227
|
-
const
|
|
2239
|
+
return new Promise((c, d) => {
|
|
2240
|
+
const h = document.createElement("img");
|
|
2228
2241
|
let b = !1;
|
|
2229
|
-
|
|
2230
|
-
b = !0, c(
|
|
2231
|
-
},
|
|
2232
|
-
console.warn("Image load failed",
|
|
2233
|
-
}),
|
|
2234
|
-
b ||
|
|
2242
|
+
h.onload = () => {
|
|
2243
|
+
b = !0, c(h);
|
|
2244
|
+
}, h.addEventListener("error", (u) => {
|
|
2245
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
2246
|
+
}), h.src = a, setTimeout(() => {
|
|
2247
|
+
b || d(new Error("Image load timed out"));
|
|
2235
2248
|
}, l);
|
|
2236
2249
|
});
|
|
2237
2250
|
}
|
|
@@ -2314,7 +2327,7 @@ const Rn = {
|
|
|
2314
2327
|
shouldReceiveBuilderProps: {
|
|
2315
2328
|
builderBlock: !0
|
|
2316
2329
|
}
|
|
2317
|
-
},
|
|
2330
|
+
}, Wn = {
|
|
2318
2331
|
name: "PersonalizationContainer",
|
|
2319
2332
|
shouldReceiveBuilderProps: {
|
|
2320
2333
|
builderBlock: !0,
|
|
@@ -2351,7 +2364,7 @@ const Rn = {
|
|
|
2351
2364
|
}]
|
|
2352
2365
|
}]
|
|
2353
2366
|
};
|
|
2354
|
-
function
|
|
2367
|
+
function G(e) {
|
|
2355
2368
|
return /* @__PURE__ */ s(
|
|
2356
2369
|
"script",
|
|
2357
2370
|
{
|
|
@@ -2361,50 +2374,50 @@ function j(e) {
|
|
|
2361
2374
|
}
|
|
2362
2375
|
);
|
|
2363
2376
|
}
|
|
2364
|
-
function
|
|
2365
|
-
var S,
|
|
2366
|
-
const t =
|
|
2367
|
-
() =>
|
|
2368
|
-
), [r, o] =
|
|
2377
|
+
function $n(e) {
|
|
2378
|
+
var S, T, E, U, H, q, p, v, V, A, W, R, P;
|
|
2379
|
+
const t = z(null), [n, i] = k(
|
|
2380
|
+
() => Te.getUserAttributes()
|
|
2381
|
+
), [r, o] = k(
|
|
2369
2382
|
() => {
|
|
2370
|
-
var I, B,
|
|
2371
|
-
return
|
|
2383
|
+
var I, B, C;
|
|
2384
|
+
return In(
|
|
2372
2385
|
e.variants,
|
|
2373
2386
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2374
|
-
(
|
|
2387
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2375
2388
|
);
|
|
2376
2389
|
}
|
|
2377
|
-
), [a, l] =
|
|
2390
|
+
), [a, l] = k(
|
|
2378
2391
|
() => {
|
|
2379
|
-
var I, B,
|
|
2380
|
-
return
|
|
2392
|
+
var I, B, C;
|
|
2393
|
+
return wn(
|
|
2381
2394
|
e.variants,
|
|
2382
2395
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2383
|
-
(
|
|
2396
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2384
2397
|
);
|
|
2385
2398
|
}
|
|
2386
|
-
), [c,
|
|
2399
|
+
), [c, d] = k(() => []), [h, b] = k(
|
|
2387
2400
|
() => {
|
|
2388
2401
|
var I;
|
|
2389
|
-
return
|
|
2402
|
+
return kn(
|
|
2390
2403
|
e.variants,
|
|
2391
|
-
|
|
2404
|
+
ee((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2392
2405
|
);
|
|
2393
2406
|
}
|
|
2394
|
-
), [
|
|
2395
|
-
function
|
|
2407
|
+
), [u, x] = k(() => !1);
|
|
2408
|
+
function f() {
|
|
2396
2409
|
return {
|
|
2397
2410
|
...e.attributes,
|
|
2398
|
-
[
|
|
2411
|
+
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2399
2412
|
};
|
|
2400
2413
|
}
|
|
2401
|
-
function
|
|
2414
|
+
function m() {
|
|
2402
2415
|
return (e.variants || []).filter((I) => {
|
|
2403
|
-
var B,
|
|
2404
|
-
return
|
|
2416
|
+
var B, C, $, F;
|
|
2417
|
+
return yn(
|
|
2405
2418
|
{
|
|
2406
|
-
...(
|
|
2407
|
-
locale: (
|
|
2419
|
+
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2420
|
+
locale: (F = ($ = e.builderContext) == null ? void 0 : $.rootState) == null ? void 0 : F.locale
|
|
2408
2421
|
} : {},
|
|
2409
2422
|
...n
|
|
2410
2423
|
},
|
|
@@ -2414,53 +2427,53 @@ function Wn(e) {
|
|
|
2414
2427
|
);
|
|
2415
2428
|
});
|
|
2416
2429
|
}
|
|
2417
|
-
function
|
|
2430
|
+
function y() {
|
|
2418
2431
|
var I;
|
|
2419
|
-
return
|
|
2432
|
+
return Cn({
|
|
2420
2433
|
variants: e.variants,
|
|
2421
2434
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2422
|
-
isHydrated:
|
|
2423
|
-
filteredVariants:
|
|
2435
|
+
isHydrated: u,
|
|
2436
|
+
filteredVariants: m(),
|
|
2424
2437
|
previewingIndex: e.previewingIndex
|
|
2425
2438
|
});
|
|
2426
2439
|
}
|
|
2427
|
-
function
|
|
2440
|
+
function g() {
|
|
2428
2441
|
return (e.variants || []).map(
|
|
2429
2442
|
(I, B) => {
|
|
2430
|
-
var
|
|
2431
|
-
return `div[data-variant-id="${(
|
|
2443
|
+
var C;
|
|
2444
|
+
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2432
2445
|
}
|
|
2433
2446
|
).join("");
|
|
2434
2447
|
}
|
|
2435
|
-
return
|
|
2448
|
+
return N(() => {
|
|
2436
2449
|
var B;
|
|
2437
|
-
|
|
2438
|
-
const I =
|
|
2439
|
-
(
|
|
2440
|
-
i(
|
|
2450
|
+
x(!0);
|
|
2451
|
+
const I = Te.subscribeOnUserAttributesChange(
|
|
2452
|
+
(C) => {
|
|
2453
|
+
i(C);
|
|
2441
2454
|
},
|
|
2442
2455
|
{
|
|
2443
2456
|
fireImmediately: O === "qwik"
|
|
2444
2457
|
}
|
|
2445
2458
|
);
|
|
2446
|
-
if (!(
|
|
2447
|
-
const
|
|
2459
|
+
if (!(_() || le())) {
|
|
2460
|
+
const C = m()[0];
|
|
2448
2461
|
t.current && (t.current.dispatchEvent(
|
|
2449
2462
|
new CustomEvent("builder.variantLoaded", {
|
|
2450
2463
|
detail: {
|
|
2451
|
-
variant:
|
|
2464
|
+
variant: C || ne,
|
|
2452
2465
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2453
2466
|
},
|
|
2454
2467
|
bubbles: !0
|
|
2455
2468
|
})
|
|
2456
|
-
), new IntersectionObserver((
|
|
2457
|
-
|
|
2458
|
-
var
|
|
2459
|
-
|
|
2469
|
+
), new IntersectionObserver((F) => {
|
|
2470
|
+
F.forEach((L) => {
|
|
2471
|
+
var j;
|
|
2472
|
+
L.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2460
2473
|
new CustomEvent("builder.variantDisplayed", {
|
|
2461
2474
|
detail: {
|
|
2462
|
-
variant:
|
|
2463
|
-
content: (
|
|
2475
|
+
variant: C || ne,
|
|
2476
|
+
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2464
2477
|
},
|
|
2465
2478
|
bubbles: !0
|
|
2466
2479
|
})
|
|
@@ -2469,88 +2482,88 @@ function Wn(e) {
|
|
|
2469
2482
|
}).observe(t.current));
|
|
2470
2483
|
}
|
|
2471
2484
|
c.push(I);
|
|
2472
|
-
}, []),
|
|
2485
|
+
}, []), N(() => () => {
|
|
2473
2486
|
c.forEach((I) => I());
|
|
2474
|
-
}, []), /* @__PURE__ */
|
|
2475
|
-
|
|
2476
|
-
|
|
2487
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2488
|
+
u && ie.includes(O) ? /* @__PURE__ */ s(
|
|
2489
|
+
M,
|
|
2477
2490
|
{
|
|
2478
|
-
blocks:
|
|
2491
|
+
blocks: y().blocks,
|
|
2479
2492
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2480
|
-
path:
|
|
2493
|
+
path: y().path,
|
|
2481
2494
|
context: e.builderContext,
|
|
2482
2495
|
registeredComponents: e.builderComponents,
|
|
2483
2496
|
BlocksWrapperProps: {
|
|
2484
|
-
...(
|
|
2485
|
-
"data-variant-id": `${(
|
|
2497
|
+
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2498
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
|
|
2486
2499
|
}
|
|
2487
2500
|
}
|
|
2488
2501
|
) : null,
|
|
2489
|
-
!
|
|
2490
|
-
|
|
2502
|
+
!u && ie.includes(O) || !ie.includes(O) ? /* @__PURE__ */ D(w, { children: [
|
|
2503
|
+
h ? /* @__PURE__ */ D(w, { children: [
|
|
2491
2504
|
/* @__PURE__ */ s(
|
|
2492
|
-
|
|
2505
|
+
te,
|
|
2493
2506
|
{
|
|
2494
|
-
nonce: ((
|
|
2495
|
-
styles:
|
|
2496
|
-
id: `variants-styles-${(
|
|
2507
|
+
nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
|
|
2508
|
+
styles: g(),
|
|
2509
|
+
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2497
2510
|
}
|
|
2498
2511
|
),
|
|
2499
2512
|
/* @__PURE__ */ s(
|
|
2500
|
-
|
|
2513
|
+
G,
|
|
2501
2514
|
{
|
|
2502
|
-
nonce: ((
|
|
2515
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2503
2516
|
scriptStr: a,
|
|
2504
|
-
id: `variants-visibility-script-${(
|
|
2517
|
+
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2505
2518
|
}
|
|
2506
2519
|
),
|
|
2507
|
-
(
|
|
2508
|
-
var
|
|
2520
|
+
(v = e.variants) == null ? void 0 : v.map((I, B) => {
|
|
2521
|
+
var C, $, F, L, j, Ce;
|
|
2509
2522
|
return /* @__PURE__ */ s(
|
|
2510
|
-
|
|
2523
|
+
M,
|
|
2511
2524
|
{
|
|
2512
2525
|
BlocksWrapperProps: {
|
|
2513
|
-
...(
|
|
2526
|
+
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2514
2527
|
"aria-hidden": !0,
|
|
2515
2528
|
hidden: !0,
|
|
2516
|
-
"data-variant-id": `${(
|
|
2529
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${B}`
|
|
2517
2530
|
},
|
|
2518
2531
|
blocks: I.blocks,
|
|
2519
|
-
parent: (
|
|
2532
|
+
parent: (F = e.builderBlock) == null ? void 0 : F.id,
|
|
2520
2533
|
path: `component.options.variants.${B}.blocks`,
|
|
2521
2534
|
context: e.builderContext,
|
|
2522
2535
|
registeredComponents: e.builderComponents,
|
|
2523
2536
|
children: /* @__PURE__ */ s(
|
|
2524
|
-
|
|
2537
|
+
G,
|
|
2525
2538
|
{
|
|
2526
|
-
nonce: ((
|
|
2539
|
+
nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
|
|
2527
2540
|
scriptStr: r,
|
|
2528
|
-
id: `variants-script-${(
|
|
2541
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2529
2542
|
}
|
|
2530
2543
|
)
|
|
2531
2544
|
},
|
|
2532
|
-
`${(
|
|
2545
|
+
`${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${B}`
|
|
2533
2546
|
);
|
|
2534
2547
|
})
|
|
2535
2548
|
] }) : null,
|
|
2536
2549
|
/* @__PURE__ */ s(
|
|
2537
|
-
|
|
2550
|
+
M,
|
|
2538
2551
|
{
|
|
2539
|
-
blocks:
|
|
2540
|
-
parent: (
|
|
2541
|
-
path:
|
|
2552
|
+
blocks: y().blocks,
|
|
2553
|
+
parent: (V = e.builderBlock) == null ? void 0 : V.id,
|
|
2554
|
+
path: y().path,
|
|
2542
2555
|
context: e.builderContext,
|
|
2543
2556
|
registeredComponents: e.builderComponents,
|
|
2544
2557
|
BlocksWrapperProps: {
|
|
2545
|
-
...(
|
|
2546
|
-
"data-variant-id": `${(
|
|
2558
|
+
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2559
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
|
|
2547
2560
|
},
|
|
2548
|
-
children:
|
|
2549
|
-
|
|
2561
|
+
children: h ? /* @__PURE__ */ s(
|
|
2562
|
+
G,
|
|
2550
2563
|
{
|
|
2551
|
-
nonce: ((
|
|
2564
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2552
2565
|
scriptStr: r,
|
|
2553
|
-
id: `variants-script-${(
|
|
2566
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
|
|
2554
2567
|
}
|
|
2555
2568
|
) : null
|
|
2556
2569
|
}
|
|
@@ -2558,7 +2571,7 @@ function Wn(e) {
|
|
|
2558
2571
|
] }) : null
|
|
2559
2572
|
] });
|
|
2560
2573
|
}
|
|
2561
|
-
const
|
|
2574
|
+
const Dn = {
|
|
2562
2575
|
name: "Core:Section",
|
|
2563
2576
|
static: !0,
|
|
2564
2577
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2597,7 +2610,7 @@ const $n = {
|
|
|
2597
2610
|
}
|
|
2598
2611
|
}
|
|
2599
2612
|
}]
|
|
2600
|
-
},
|
|
2613
|
+
}, On = {
|
|
2601
2614
|
name: "Slot",
|
|
2602
2615
|
isRSC: !0,
|
|
2603
2616
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2615,7 +2628,7 @@ const $n = {
|
|
|
2615
2628
|
builderComponents: !0
|
|
2616
2629
|
}
|
|
2617
2630
|
};
|
|
2618
|
-
function
|
|
2631
|
+
function Fn(e) {
|
|
2619
2632
|
var t, n, i;
|
|
2620
2633
|
return /* @__PURE__ */ s(
|
|
2621
2634
|
"div",
|
|
@@ -2627,7 +2640,7 @@ function On(e) {
|
|
|
2627
2640
|
"builder-slot": e.name
|
|
2628
2641
|
},
|
|
2629
2642
|
children: /* @__PURE__ */ s(
|
|
2630
|
-
|
|
2643
|
+
M,
|
|
2631
2644
|
{
|
|
2632
2645
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2633
2646
|
path: `symbol.data.${e.name}`,
|
|
@@ -2639,7 +2652,7 @@ function On(e) {
|
|
|
2639
2652
|
}
|
|
2640
2653
|
);
|
|
2641
2654
|
}
|
|
2642
|
-
const
|
|
2655
|
+
const Ln = {
|
|
2643
2656
|
name: "Symbol",
|
|
2644
2657
|
noWrap: !0,
|
|
2645
2658
|
static: !0,
|
|
@@ -2678,7 +2691,7 @@ const Fn = {
|
|
|
2678
2691
|
builderComponents: !0,
|
|
2679
2692
|
builderLinkComponent: !0
|
|
2680
2693
|
}
|
|
2681
|
-
},
|
|
2694
|
+
}, ge = {
|
|
2682
2695
|
"@type": "@builder.io/sdk:Element",
|
|
2683
2696
|
responsiveStyles: {
|
|
2684
2697
|
large: {
|
|
@@ -2700,7 +2713,7 @@ const Fn = {
|
|
|
2700
2713
|
text: "New tab"
|
|
2701
2714
|
}
|
|
2702
2715
|
}
|
|
2703
|
-
},
|
|
2716
|
+
}, be = {
|
|
2704
2717
|
"@type": "@builder.io/sdk:Element",
|
|
2705
2718
|
responsiveStyles: {
|
|
2706
2719
|
large: {
|
|
@@ -2716,7 +2729,7 @@ const Fn = {
|
|
|
2716
2729
|
text: "New tab content "
|
|
2717
2730
|
}
|
|
2718
2731
|
}
|
|
2719
|
-
},
|
|
2732
|
+
}, _n = {
|
|
2720
2733
|
name: "Builder: Tabs",
|
|
2721
2734
|
inputs: [{
|
|
2722
2735
|
name: "tabs",
|
|
@@ -2726,16 +2739,16 @@ const Fn = {
|
|
|
2726
2739
|
name: "label",
|
|
2727
2740
|
type: "uiBlocks",
|
|
2728
2741
|
hideFromUI: !0,
|
|
2729
|
-
defaultValue: [
|
|
2742
|
+
defaultValue: [ge]
|
|
2730
2743
|
}, {
|
|
2731
2744
|
name: "content",
|
|
2732
2745
|
type: "uiBlocks",
|
|
2733
2746
|
hideFromUI: !0,
|
|
2734
|
-
defaultValue: [
|
|
2747
|
+
defaultValue: [be]
|
|
2735
2748
|
}],
|
|
2736
2749
|
defaultValue: [{
|
|
2737
2750
|
label: [{
|
|
2738
|
-
...
|
|
2751
|
+
...ge,
|
|
2739
2752
|
component: {
|
|
2740
2753
|
name: "Text",
|
|
2741
2754
|
options: {
|
|
@@ -2744,7 +2757,7 @@ const Fn = {
|
|
|
2744
2757
|
}
|
|
2745
2758
|
}],
|
|
2746
2759
|
content: [{
|
|
2747
|
-
...
|
|
2760
|
+
...be,
|
|
2748
2761
|
component: {
|
|
2749
2762
|
name: "Text",
|
|
2750
2763
|
options: {
|
|
@@ -2754,7 +2767,7 @@ const Fn = {
|
|
|
2754
2767
|
}]
|
|
2755
2768
|
}, {
|
|
2756
2769
|
label: [{
|
|
2757
|
-
...
|
|
2770
|
+
...ge,
|
|
2758
2771
|
component: {
|
|
2759
2772
|
name: "Text",
|
|
2760
2773
|
options: {
|
|
@@ -2763,7 +2776,7 @@ const Fn = {
|
|
|
2763
2776
|
}
|
|
2764
2777
|
}],
|
|
2765
2778
|
content: [{
|
|
2766
|
-
...
|
|
2779
|
+
...be,
|
|
2767
2780
|
component: {
|
|
2768
2781
|
name: "Text",
|
|
2769
2782
|
options: {
|
|
@@ -2820,18 +2833,21 @@ const Fn = {
|
|
|
2820
2833
|
builderLinkComponent: !0
|
|
2821
2834
|
}
|
|
2822
2835
|
};
|
|
2823
|
-
function
|
|
2824
|
-
var
|
|
2825
|
-
const [t, n] =
|
|
2836
|
+
function Un(e) {
|
|
2837
|
+
var a;
|
|
2838
|
+
const [t, n] = k(
|
|
2826
2839
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2827
2840
|
);
|
|
2828
|
-
function i(
|
|
2829
|
-
return e.tabs && e.tabs[
|
|
2841
|
+
function i(l) {
|
|
2842
|
+
return e.tabs && e.tabs[l].content;
|
|
2843
|
+
}
|
|
2844
|
+
function r(l) {
|
|
2845
|
+
return l === t ? e.activeTabStyle : {};
|
|
2830
2846
|
}
|
|
2831
|
-
function
|
|
2832
|
-
|
|
2847
|
+
function o(l) {
|
|
2848
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
2833
2849
|
}
|
|
2834
|
-
return /* @__PURE__ */
|
|
2850
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
2835
2851
|
/* @__PURE__ */ s(
|
|
2836
2852
|
"div",
|
|
2837
2853
|
{
|
|
@@ -2842,32 +2858,30 @@ function _n(e) {
|
|
|
2842
2858
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2843
2859
|
overflow: "auto"
|
|
2844
2860
|
},
|
|
2845
|
-
children: (
|
|
2861
|
+
children: (a = e.tabs) == null ? void 0 : a.map((l, c) => /* @__PURE__ */ s(
|
|
2846
2862
|
"span",
|
|
2847
2863
|
{
|
|
2848
|
-
className: `builder-tab-wrap ${t ===
|
|
2849
|
-
style:
|
|
2850
|
-
|
|
2851
|
-
},
|
|
2852
|
-
onClick: (c) => r(l),
|
|
2864
|
+
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2865
|
+
style: r(c),
|
|
2866
|
+
onClick: (d) => o(c),
|
|
2853
2867
|
children: /* @__PURE__ */ s(
|
|
2854
|
-
|
|
2868
|
+
M,
|
|
2855
2869
|
{
|
|
2856
2870
|
parent: e.builderBlock.id,
|
|
2857
|
-
path: `tabs.${
|
|
2858
|
-
blocks:
|
|
2871
|
+
path: `tabs.${c}.label`,
|
|
2872
|
+
blocks: l.label,
|
|
2859
2873
|
context: e.builderContext,
|
|
2860
2874
|
registeredComponents: e.builderComponents,
|
|
2861
2875
|
linkComponent: e.builderLinkComponent
|
|
2862
2876
|
}
|
|
2863
2877
|
)
|
|
2864
2878
|
},
|
|
2865
|
-
|
|
2879
|
+
c
|
|
2866
2880
|
))
|
|
2867
2881
|
}
|
|
2868
2882
|
),
|
|
2869
2883
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2870
|
-
|
|
2884
|
+
M,
|
|
2871
2885
|
{
|
|
2872
2886
|
parent: e.builderBlock.id,
|
|
2873
2887
|
path: `tabs.${t}.content`,
|
|
@@ -2879,11 +2893,10 @@ function _n(e) {
|
|
|
2879
2893
|
) }) : null
|
|
2880
2894
|
] });
|
|
2881
2895
|
}
|
|
2882
|
-
const
|
|
2896
|
+
const Hn = {
|
|
2883
2897
|
shouldReceiveBuilderProps: {},
|
|
2884
2898
|
name: "Text",
|
|
2885
2899
|
static: !0,
|
|
2886
|
-
isRSC: !0,
|
|
2887
2900
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
2888
2901
|
inputs: [{
|
|
2889
2902
|
name: "text",
|
|
@@ -2899,7 +2912,7 @@ const Un = {
|
|
|
2899
2912
|
textAlign: "center"
|
|
2900
2913
|
}
|
|
2901
2914
|
};
|
|
2902
|
-
function
|
|
2915
|
+
function Mn(e) {
|
|
2903
2916
|
var t;
|
|
2904
2917
|
return /* @__PURE__ */ s(
|
|
2905
2918
|
"div",
|
|
@@ -2912,7 +2925,7 @@ function Hn(e) {
|
|
|
2912
2925
|
}
|
|
2913
2926
|
);
|
|
2914
2927
|
}
|
|
2915
|
-
const
|
|
2928
|
+
const qn = {
|
|
2916
2929
|
name: "Custom Code",
|
|
2917
2930
|
static: !0,
|
|
2918
2931
|
requiredPermissions: ["editCode"],
|
|
@@ -2935,32 +2948,32 @@ const Mn = {
|
|
|
2935
2948
|
advanced: !0
|
|
2936
2949
|
}]
|
|
2937
2950
|
};
|
|
2938
|
-
function
|
|
2939
|
-
const t =
|
|
2951
|
+
function jn(e) {
|
|
2952
|
+
const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []);
|
|
2940
2953
|
function a() {
|
|
2941
2954
|
var c;
|
|
2942
2955
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2943
2956
|
return;
|
|
2944
2957
|
const l = t.current.getElementsByTagName("script");
|
|
2945
|
-
for (let
|
|
2946
|
-
const
|
|
2947
|
-
if (
|
|
2948
|
-
if (n.includes(
|
|
2958
|
+
for (let d = 0; d < l.length; d++) {
|
|
2959
|
+
const h = l[d];
|
|
2960
|
+
if (h.src) {
|
|
2961
|
+
if (n.includes(h.src))
|
|
2949
2962
|
continue;
|
|
2950
|
-
n.push(
|
|
2963
|
+
n.push(h.src);
|
|
2951
2964
|
const b = document.createElement("script");
|
|
2952
|
-
b.async = !0, b.src =
|
|
2953
|
-
} else if (!
|
|
2965
|
+
b.async = !0, b.src = h.src, document.head.appendChild(b);
|
|
2966
|
+
} else if (!h.type || [
|
|
2954
2967
|
"text/javascript",
|
|
2955
2968
|
"application/javascript",
|
|
2956
2969
|
"application/ecmascript"
|
|
2957
|
-
].includes(
|
|
2958
|
-
if (r.includes(
|
|
2970
|
+
].includes(h.type)) {
|
|
2971
|
+
if (r.includes(h.innerText))
|
|
2959
2972
|
continue;
|
|
2960
2973
|
try {
|
|
2961
|
-
r.push(
|
|
2974
|
+
r.push(h.innerText), new Function(h.innerText)();
|
|
2962
2975
|
} catch (b) {
|
|
2963
|
-
|
|
2976
|
+
Q.warn(
|
|
2964
2977
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2965
2978
|
b
|
|
2966
2979
|
);
|
|
@@ -2968,10 +2981,10 @@ function qn(e) {
|
|
|
2968
2981
|
}
|
|
2969
2982
|
}
|
|
2970
2983
|
}
|
|
2971
|
-
return
|
|
2984
|
+
return N(() => {
|
|
2972
2985
|
a();
|
|
2973
|
-
}, []),
|
|
2974
|
-
|
|
2986
|
+
}, []), N(() => {
|
|
2987
|
+
_() && a();
|
|
2975
2988
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2976
2989
|
"div",
|
|
2977
2990
|
{
|
|
@@ -2981,7 +2994,7 @@ function qn(e) {
|
|
|
2981
2994
|
}
|
|
2982
2995
|
);
|
|
2983
2996
|
}
|
|
2984
|
-
const
|
|
2997
|
+
const zn = {
|
|
2985
2998
|
name: "Embed",
|
|
2986
2999
|
static: !0,
|
|
2987
3000
|
inputs: [{
|
|
@@ -2996,28 +3009,28 @@ const jn = {
|
|
|
2996
3009
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2997
3010
|
hideFromUI: !0
|
|
2998
3011
|
}]
|
|
2999
|
-
},
|
|
3000
|
-
function
|
|
3001
|
-
const t =
|
|
3012
|
+
}, Kn = ["text/javascript", "application/javascript", "application/ecmascript"], Jn = (e) => Kn.includes(e.type);
|
|
3013
|
+
function Gn(e) {
|
|
3014
|
+
const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []), [a, l] = k(() => !1);
|
|
3002
3015
|
function c() {
|
|
3003
3016
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3004
3017
|
return;
|
|
3005
|
-
const
|
|
3006
|
-
for (let
|
|
3007
|
-
const b =
|
|
3018
|
+
const d = t.current.getElementsByTagName("script");
|
|
3019
|
+
for (let h = 0; h < d.length; h++) {
|
|
3020
|
+
const b = d[h];
|
|
3008
3021
|
if (b.src && !n.includes(b.src)) {
|
|
3009
3022
|
n.push(b.src);
|
|
3010
|
-
const
|
|
3011
|
-
|
|
3012
|
-
} else if (
|
|
3023
|
+
const u = document.createElement("script");
|
|
3024
|
+
u.async = !0, u.src = b.src, document.head.appendChild(u);
|
|
3025
|
+
} else if (Jn(b) && !r.includes(b.innerText))
|
|
3013
3026
|
try {
|
|
3014
3027
|
r.push(b.innerText), new Function(b.innerText)();
|
|
3015
|
-
} catch (
|
|
3016
|
-
|
|
3028
|
+
} catch (u) {
|
|
3029
|
+
Q.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
3017
3030
|
}
|
|
3018
3031
|
}
|
|
3019
3032
|
}
|
|
3020
|
-
return
|
|
3033
|
+
return N(() => {
|
|
3021
3034
|
t.current && !a && (l(!0), c());
|
|
3022
3035
|
}, [t.current, a]), /* @__PURE__ */ s(
|
|
3023
3036
|
"div",
|
|
@@ -3028,7 +3041,7 @@ function Jn(e) {
|
|
|
3028
3041
|
}
|
|
3029
3042
|
);
|
|
3030
3043
|
}
|
|
3031
|
-
const
|
|
3044
|
+
const Qn = {
|
|
3032
3045
|
name: "Form:Form",
|
|
3033
3046
|
// editableTags: ['builder-form-error']
|
|
3034
3047
|
defaults: {
|
|
@@ -3265,107 +3278,110 @@ const Gn = {
|
|
|
3265
3278
|
builderComponents: !0,
|
|
3266
3279
|
builderLinkComponent: !0
|
|
3267
3280
|
}
|
|
3268
|
-
},
|
|
3281
|
+
}, Yn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Xn = () => {
|
|
3269
3282
|
const e = process.env.NODE_ENV || "production";
|
|
3270
|
-
return
|
|
3283
|
+
return Yn.includes(e) ? e : "production";
|
|
3271
3284
|
};
|
|
3272
|
-
function
|
|
3273
|
-
const t =
|
|
3274
|
-
function c(
|
|
3275
|
-
var
|
|
3276
|
-
const
|
|
3285
|
+
function Zn(e) {
|
|
3286
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [r, o] = k(() => null), [a, l] = k(() => "");
|
|
3287
|
+
function c(u) {
|
|
3288
|
+
var f, m;
|
|
3289
|
+
const x = {
|
|
3277
3290
|
...e.builderContext.rootState,
|
|
3278
|
-
...
|
|
3291
|
+
...u
|
|
3279
3292
|
};
|
|
3280
|
-
e.builderContext.rootSetState ? (
|
|
3293
|
+
e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
|
|
3281
3294
|
}
|
|
3282
|
-
function
|
|
3283
|
-
return
|
|
3295
|
+
function d() {
|
|
3296
|
+
return _() && e.previewState || n;
|
|
3284
3297
|
}
|
|
3285
|
-
function
|
|
3286
|
-
|
|
3287
|
-
|
|
3298
|
+
function h(u) {
|
|
3299
|
+
return JSON.stringify(u, null, 2);
|
|
3300
|
+
}
|
|
3301
|
+
function b(u) {
|
|
3302
|
+
var f;
|
|
3303
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3288
3304
|
if (e.sendSubmissionsTo === "zapier")
|
|
3289
|
-
|
|
3290
|
-
else if (
|
|
3305
|
+
u.preventDefault();
|
|
3306
|
+
else if (x) {
|
|
3291
3307
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3292
|
-
|
|
3308
|
+
u.preventDefault();
|
|
3293
3309
|
return;
|
|
3294
3310
|
}
|
|
3295
|
-
|
|
3296
|
-
const
|
|
3297
|
-
let
|
|
3298
|
-
const
|
|
3299
|
-
(
|
|
3300
|
-
).map((
|
|
3301
|
-
let
|
|
3302
|
-
const
|
|
3303
|
-
if (
|
|
3304
|
-
if (
|
|
3305
|
-
if (
|
|
3306
|
-
return
|
|
3307
|
-
key:
|
|
3308
|
-
value:
|
|
3311
|
+
u.preventDefault();
|
|
3312
|
+
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3313
|
+
let g;
|
|
3314
|
+
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3315
|
+
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3316
|
+
).map((p) => {
|
|
3317
|
+
let v;
|
|
3318
|
+
const V = p.name;
|
|
3319
|
+
if (p instanceof HTMLInputElement)
|
|
3320
|
+
if (p.type === "radio") {
|
|
3321
|
+
if (p.checked)
|
|
3322
|
+
return v = p.value, {
|
|
3323
|
+
key: V,
|
|
3324
|
+
value: v
|
|
3309
3325
|
};
|
|
3310
|
-
} else if (
|
|
3311
|
-
|
|
3312
|
-
else if (
|
|
3313
|
-
const
|
|
3314
|
-
isNaN(
|
|
3326
|
+
} else if (p.type === "checkbox")
|
|
3327
|
+
v = p.checked;
|
|
3328
|
+
else if (p.type === "number" || p.type === "range") {
|
|
3329
|
+
const A = p.valueAsNumber;
|
|
3330
|
+
isNaN(A) || (v = A);
|
|
3315
3331
|
} else
|
|
3316
|
-
|
|
3332
|
+
p.type === "file" ? v = p.files : v = p.value;
|
|
3317
3333
|
else
|
|
3318
|
-
|
|
3334
|
+
v = p.value;
|
|
3319
3335
|
return {
|
|
3320
|
-
key:
|
|
3321
|
-
value:
|
|
3336
|
+
key: V,
|
|
3337
|
+
value: v
|
|
3322
3338
|
};
|
|
3323
3339
|
});
|
|
3324
|
-
let
|
|
3325
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3326
|
-
(
|
|
3327
|
-
}),
|
|
3328
|
-
|
|
3340
|
+
let E = e.contentType;
|
|
3341
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3342
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3343
|
+
}), E !== "application/json")
|
|
3344
|
+
g = S;
|
|
3329
3345
|
else {
|
|
3330
|
-
const
|
|
3331
|
-
Array.from(
|
|
3332
|
-
|
|
3333
|
-
}),
|
|
3346
|
+
const p = {};
|
|
3347
|
+
Array.from(T).forEach(({ value: v, key: V }) => {
|
|
3348
|
+
Ke(p, V, v);
|
|
3349
|
+
}), g = JSON.stringify(p);
|
|
3334
3350
|
}
|
|
3335
|
-
|
|
3336
|
-
const
|
|
3337
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3351
|
+
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3352
|
+
const U = new CustomEvent("presubmit", { detail: { body: g } });
|
|
3353
|
+
if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
|
|
3338
3354
|
return;
|
|
3339
3355
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3340
|
-
const
|
|
3341
|
-
console.error(
|
|
3356
|
+
const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3357
|
+
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3342
3358
|
return;
|
|
3343
3359
|
}
|
|
3344
|
-
const
|
|
3360
|
+
const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3345
3361
|
e.sendSubmissionsToEmail || ""
|
|
3346
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3347
|
-
|
|
3348
|
-
async (
|
|
3349
|
-
var
|
|
3350
|
-
let
|
|
3351
|
-
const
|
|
3352
|
-
if (
|
|
3353
|
-
const
|
|
3354
|
-
detail: { error:
|
|
3362
|
+
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3363
|
+
Le(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
|
|
3364
|
+
async (p) => {
|
|
3365
|
+
var A, W;
|
|
3366
|
+
let v;
|
|
3367
|
+
const V = p.headers.get("content-type");
|
|
3368
|
+
if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3369
|
+
const R = new CustomEvent("submit:error", {
|
|
3370
|
+
detail: { error: v, status: p.status }
|
|
3355
3371
|
});
|
|
3356
|
-
if ((
|
|
3372
|
+
if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3357
3373
|
return;
|
|
3358
|
-
o(
|
|
3359
|
-
let P = e.errorMessagePath ?
|
|
3374
|
+
o(v), i("error");
|
|
3375
|
+
let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3360
3376
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3361
3377
|
return;
|
|
3362
3378
|
}
|
|
3363
|
-
if (o(
|
|
3364
|
-
const
|
|
3365
|
-
detail: { res:
|
|
3379
|
+
if (o(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3380
|
+
const R = new CustomEvent("submit:success", {
|
|
3381
|
+
detail: { res: p, body: v }
|
|
3366
3382
|
});
|
|
3367
3383
|
if (t.current) {
|
|
3368
|
-
if (t.current.dispatchEvent(
|
|
3384
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3369
3385
|
return;
|
|
3370
3386
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3371
3387
|
}
|
|
@@ -3379,20 +3395,20 @@ function Xn(e) {
|
|
|
3379
3395
|
location.href = e.successUrl;
|
|
3380
3396
|
}
|
|
3381
3397
|
},
|
|
3382
|
-
(
|
|
3383
|
-
const
|
|
3384
|
-
detail: { error:
|
|
3398
|
+
(p) => {
|
|
3399
|
+
const v = new CustomEvent("submit:error", {
|
|
3400
|
+
detail: { error: p }
|
|
3385
3401
|
});
|
|
3386
|
-
t.current && (t.current.dispatchEvent(
|
|
3402
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (o(p), i("error"));
|
|
3387
3403
|
}
|
|
3388
3404
|
);
|
|
3389
3405
|
}
|
|
3390
3406
|
}
|
|
3391
|
-
return /* @__PURE__ */
|
|
3407
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
3392
3408
|
" ",
|
|
3393
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3409
|
+
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3394
3410
|
" ",
|
|
3395
|
-
/* @__PURE__ */
|
|
3411
|
+
/* @__PURE__ */ D(
|
|
3396
3412
|
"form",
|
|
3397
3413
|
{
|
|
3398
3414
|
validate: e.validate,
|
|
@@ -3400,29 +3416,29 @@ function Xn(e) {
|
|
|
3400
3416
|
action: !e.sendWithJs && e.action,
|
|
3401
3417
|
method: e.method,
|
|
3402
3418
|
name: e.name,
|
|
3403
|
-
onSubmit: (
|
|
3419
|
+
onSubmit: (u) => b(u),
|
|
3404
3420
|
...e.attributes,
|
|
3405
3421
|
children: [
|
|
3406
3422
|
e.children,
|
|
3407
|
-
|
|
3408
|
-
|
|
3423
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
3424
|
+
M,
|
|
3409
3425
|
{
|
|
3410
3426
|
path: "errorMessage",
|
|
3411
3427
|
blocks: e.errorMessage,
|
|
3412
3428
|
context: e.builderContext
|
|
3413
3429
|
}
|
|
3414
3430
|
) : null,
|
|
3415
|
-
|
|
3416
|
-
|
|
3431
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
3432
|
+
M,
|
|
3417
3433
|
{
|
|
3418
3434
|
path: "sendingMessage",
|
|
3419
3435
|
blocks: e.sendingMessage,
|
|
3420
3436
|
context: e.builderContext
|
|
3421
3437
|
}
|
|
3422
3438
|
) : null,
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3439
|
+
d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
|
|
3440
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
3441
|
+
M,
|
|
3426
3442
|
{
|
|
3427
3443
|
path: "successMessage",
|
|
3428
3444
|
blocks: e.successMessage,
|
|
@@ -3435,7 +3451,7 @@ function Xn(e) {
|
|
|
3435
3451
|
" "
|
|
3436
3452
|
] });
|
|
3437
3453
|
}
|
|
3438
|
-
const
|
|
3454
|
+
const ei = {
|
|
3439
3455
|
name: "Form:Input",
|
|
3440
3456
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3441
3457
|
inputs: [
|
|
@@ -3487,12 +3503,12 @@ const Zn = {
|
|
|
3487
3503
|
borderColor: "#ccc"
|
|
3488
3504
|
}
|
|
3489
3505
|
};
|
|
3490
|
-
function
|
|
3491
|
-
return /* @__PURE__ */
|
|
3506
|
+
function ti(e) {
|
|
3507
|
+
return /* @__PURE__ */ He(
|
|
3492
3508
|
"input",
|
|
3493
3509
|
{
|
|
3494
3510
|
...e.attributes,
|
|
3495
|
-
key:
|
|
3511
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3496
3512
|
placeholder: e.placeholder,
|
|
3497
3513
|
type: e.type,
|
|
3498
3514
|
name: e.name,
|
|
@@ -3502,7 +3518,7 @@ function ei(e) {
|
|
|
3502
3518
|
}
|
|
3503
3519
|
);
|
|
3504
3520
|
}
|
|
3505
|
-
const
|
|
3521
|
+
const ni = {
|
|
3506
3522
|
name: "Form:Select",
|
|
3507
3523
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3508
3524
|
defaultStyles: {
|
|
@@ -3545,14 +3561,14 @@ const ti = {
|
|
|
3545
3561
|
static: !0,
|
|
3546
3562
|
noWrap: !0
|
|
3547
3563
|
};
|
|
3548
|
-
function
|
|
3564
|
+
function ii(e) {
|
|
3549
3565
|
var t;
|
|
3550
|
-
return /* @__PURE__ */
|
|
3566
|
+
return /* @__PURE__ */ He(
|
|
3551
3567
|
"select",
|
|
3552
3568
|
{
|
|
3553
3569
|
...e.attributes,
|
|
3554
3570
|
value: e.value,
|
|
3555
|
-
key:
|
|
3571
|
+
key: _() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3556
3572
|
defaultValue: e.defaultValue,
|
|
3557
3573
|
name: e.name,
|
|
3558
3574
|
required: e.required
|
|
@@ -3560,7 +3576,7 @@ function ni(e) {
|
|
|
3560
3576
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3561
3577
|
);
|
|
3562
3578
|
}
|
|
3563
|
-
const
|
|
3579
|
+
const ri = {
|
|
3564
3580
|
name: "Form:SubmitButton",
|
|
3565
3581
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3566
3582
|
defaultStyles: {
|
|
@@ -3586,10 +3602,10 @@ const ii = {
|
|
|
3586
3602
|
// TODO: defaultChildren
|
|
3587
3603
|
// canHaveChildren: true,
|
|
3588
3604
|
};
|
|
3589
|
-
function
|
|
3605
|
+
function oi(e) {
|
|
3590
3606
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3591
3607
|
}
|
|
3592
|
-
const
|
|
3608
|
+
const ai = {
|
|
3593
3609
|
name: "Form:TextArea",
|
|
3594
3610
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3595
3611
|
inputs: [{
|
|
@@ -3626,7 +3642,7 @@ const oi = {
|
|
|
3626
3642
|
static: !0,
|
|
3627
3643
|
noWrap: !0
|
|
3628
3644
|
};
|
|
3629
|
-
function
|
|
3645
|
+
function li(e) {
|
|
3630
3646
|
return /* @__PURE__ */ s(
|
|
3631
3647
|
"textarea",
|
|
3632
3648
|
{
|
|
@@ -3639,8 +3655,7 @@ function ai(e) {
|
|
|
3639
3655
|
}
|
|
3640
3656
|
);
|
|
3641
3657
|
}
|
|
3642
|
-
const
|
|
3643
|
-
// friendlyName?
|
|
3658
|
+
const si = {
|
|
3644
3659
|
name: "Raw:Img",
|
|
3645
3660
|
hideFromInsertMenu: !0,
|
|
3646
3661
|
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",
|
|
@@ -3648,35 +3663,71 @@ const li = {
|
|
|
3648
3663
|
name: "image",
|
|
3649
3664
|
bubble: !0,
|
|
3650
3665
|
type: "file",
|
|
3651
|
-
allowedFileTypes:
|
|
3666
|
+
allowedFileTypes: ke,
|
|
3652
3667
|
required: !0
|
|
3668
|
+
}, {
|
|
3669
|
+
name: "backgroundSize",
|
|
3670
|
+
type: "text",
|
|
3671
|
+
defaultValue: "cover",
|
|
3672
|
+
enum: [{
|
|
3673
|
+
label: "contain",
|
|
3674
|
+
value: "contain",
|
|
3675
|
+
helperText: "The image should never get cropped"
|
|
3676
|
+
}, {
|
|
3677
|
+
label: "cover",
|
|
3678
|
+
value: "cover",
|
|
3679
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
3680
|
+
}]
|
|
3681
|
+
}, {
|
|
3682
|
+
name: "backgroundPosition",
|
|
3683
|
+
type: "text",
|
|
3684
|
+
defaultValue: "center",
|
|
3685
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
3686
|
+
}, {
|
|
3687
|
+
name: "altText",
|
|
3688
|
+
type: "string",
|
|
3689
|
+
helperText: "Text to display when the user has images off"
|
|
3690
|
+
}, {
|
|
3691
|
+
name: "title",
|
|
3692
|
+
type: "string",
|
|
3693
|
+
helperText: "Text to display when hovering over the asset"
|
|
3694
|
+
}, {
|
|
3695
|
+
name: "aspectRatio",
|
|
3696
|
+
type: "number",
|
|
3697
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
3698
|
+
advanced: !0,
|
|
3699
|
+
defaultValue: 0.7041
|
|
3653
3700
|
}],
|
|
3654
|
-
noWrap: !0
|
|
3655
|
-
static: !0
|
|
3701
|
+
noWrap: !0
|
|
3656
3702
|
};
|
|
3657
|
-
function
|
|
3703
|
+
function ci(e) {
|
|
3704
|
+
var n;
|
|
3658
3705
|
function t() {
|
|
3659
|
-
const
|
|
3660
|
-
|
|
3661
|
-
|
|
3706
|
+
const i = {
|
|
3707
|
+
...e.attributes,
|
|
3708
|
+
[K()]: `builder-raw-img ${e.attributes[K()] || ""}`
|
|
3709
|
+
};
|
|
3710
|
+
return delete i.style, i;
|
|
3662
3711
|
}
|
|
3663
3712
|
return /* @__PURE__ */ s(
|
|
3664
3713
|
"img",
|
|
3665
3714
|
{
|
|
3666
3715
|
loading: "lazy",
|
|
3667
|
-
style: {
|
|
3668
|
-
objectFit: e.backgroundSize || "cover",
|
|
3669
|
-
objectPosition: e.backgroundPosition || "center"
|
|
3670
|
-
},
|
|
3671
3716
|
alt: e.altText,
|
|
3717
|
+
title: e.title,
|
|
3672
3718
|
src: e.imgSrc || e.image,
|
|
3673
|
-
|
|
3674
|
-
|
|
3719
|
+
...t(),
|
|
3720
|
+
style: {
|
|
3721
|
+
objectFit: e.backgroundSize || "cover",
|
|
3722
|
+
objectPosition: e.backgroundPosition || "center",
|
|
3723
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
3724
|
+
...((n = e.attributes) == null ? void 0 : n.style) || {}
|
|
3725
|
+
}
|
|
3675
3726
|
},
|
|
3676
|
-
|
|
3727
|
+
_() && e.imgSrc || "default-key"
|
|
3677
3728
|
);
|
|
3678
3729
|
}
|
|
3679
|
-
const
|
|
3730
|
+
const ui = {
|
|
3680
3731
|
name: "Video",
|
|
3681
3732
|
canHaveChildren: !0,
|
|
3682
3733
|
defaultStyles: {
|
|
@@ -3687,14 +3738,14 @@ const ci = {
|
|
|
3687
3738
|
inputs: [{
|
|
3688
3739
|
name: "video",
|
|
3689
3740
|
type: "file",
|
|
3690
|
-
allowedFileTypes:
|
|
3741
|
+
allowedFileTypes: Bn,
|
|
3691
3742
|
bubble: !0,
|
|
3692
3743
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3693
3744
|
required: !0
|
|
3694
3745
|
}, {
|
|
3695
3746
|
name: "posterImage",
|
|
3696
3747
|
type: "file",
|
|
3697
|
-
allowedFileTypes:
|
|
3748
|
+
allowedFileTypes: ke,
|
|
3698
3749
|
helperText: "Image to show before the video plays"
|
|
3699
3750
|
}, {
|
|
3700
3751
|
name: "autoPlay",
|
|
@@ -3761,9 +3812,9 @@ const ci = {
|
|
|
3761
3812
|
builderBlock: !0
|
|
3762
3813
|
}
|
|
3763
3814
|
};
|
|
3764
|
-
function
|
|
3765
|
-
var a, l, c,
|
|
3766
|
-
const t =
|
|
3815
|
+
function di(e) {
|
|
3816
|
+
var a, l, c, d, h, b, u;
|
|
3817
|
+
const t = z(null);
|
|
3767
3818
|
function n() {
|
|
3768
3819
|
return {
|
|
3769
3820
|
...e.autoPlay === !0 ? {
|
|
@@ -3788,32 +3839,32 @@ function ui(e) {
|
|
|
3788
3839
|
...n()
|
|
3789
3840
|
};
|
|
3790
3841
|
}
|
|
3791
|
-
const [r, o] =
|
|
3842
|
+
const [r, o] = k(() => {
|
|
3792
3843
|
});
|
|
3793
|
-
return
|
|
3844
|
+
return N(() => {
|
|
3794
3845
|
if (e.lazyLoad) {
|
|
3795
|
-
const
|
|
3796
|
-
|
|
3797
|
-
if (!
|
|
3846
|
+
const x = new IntersectionObserver(function(f) {
|
|
3847
|
+
f.forEach(function(m) {
|
|
3848
|
+
if (!m.isIntersecting)
|
|
3798
3849
|
return;
|
|
3799
|
-
const
|
|
3850
|
+
const y = m.target;
|
|
3800
3851
|
try {
|
|
3801
|
-
Array.from(
|
|
3802
|
-
(
|
|
3803
|
-
).forEach((
|
|
3804
|
-
const S =
|
|
3805
|
-
S && (
|
|
3806
|
-
}),
|
|
3807
|
-
} catch (
|
|
3808
|
-
console.error("Error loading lazy video:",
|
|
3852
|
+
Array.from(y.children).filter(
|
|
3853
|
+
(g) => g instanceof HTMLElement && g.tagName === "SOURCE"
|
|
3854
|
+
).forEach((g) => {
|
|
3855
|
+
const S = g.dataset.src;
|
|
3856
|
+
S && (g.src = S);
|
|
3857
|
+
}), y.load(), x.unobserve(y);
|
|
3858
|
+
} catch (g) {
|
|
3859
|
+
console.error("Error loading lazy video:", g);
|
|
3809
3860
|
}
|
|
3810
3861
|
});
|
|
3811
3862
|
});
|
|
3812
|
-
t.current &&
|
|
3863
|
+
t.current && x.observe(t.current), o(x);
|
|
3813
3864
|
}
|
|
3814
|
-
}, []),
|
|
3865
|
+
}, []), N(() => () => {
|
|
3815
3866
|
r && r.disconnect();
|
|
3816
|
-
}, []), /* @__PURE__ */
|
|
3867
|
+
}, []), /* @__PURE__ */ D(
|
|
3817
3868
|
"div",
|
|
3818
3869
|
{
|
|
3819
3870
|
style: {
|
|
@@ -3865,7 +3916,7 @@ function ui(e) {
|
|
|
3865
3916
|
}
|
|
3866
3917
|
}
|
|
3867
3918
|
) : null,
|
|
3868
|
-
(
|
|
3919
|
+
(h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3869
3920
|
"div",
|
|
3870
3921
|
{
|
|
3871
3922
|
style: {
|
|
@@ -3876,7 +3927,7 @@ function ui(e) {
|
|
|
3876
3927
|
children: e.children
|
|
3877
3928
|
}
|
|
3878
3929
|
) : null,
|
|
3879
|
-
(
|
|
3930
|
+
(u = (b = e.builderBlock) == null ? void 0 : b.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3880
3931
|
"div",
|
|
3881
3932
|
{
|
|
3882
3933
|
style: {
|
|
@@ -3897,67 +3948,67 @@ function ui(e) {
|
|
|
3897
3948
|
}
|
|
3898
3949
|
);
|
|
3899
3950
|
}
|
|
3900
|
-
const
|
|
3901
|
-
component:
|
|
3902
|
-
...
|
|
3951
|
+
const mi = () => [{
|
|
3952
|
+
component: jn,
|
|
3953
|
+
...qn
|
|
3903
3954
|
}, {
|
|
3904
|
-
component:
|
|
3905
|
-
...
|
|
3955
|
+
component: Gn,
|
|
3956
|
+
...zn
|
|
3906
3957
|
}, {
|
|
3907
|
-
component:
|
|
3908
|
-
...
|
|
3958
|
+
component: Zn,
|
|
3959
|
+
...Qn
|
|
3909
3960
|
}, {
|
|
3910
|
-
component:
|
|
3911
|
-
...
|
|
3961
|
+
component: ti,
|
|
3962
|
+
...ei
|
|
3912
3963
|
}, {
|
|
3913
|
-
component:
|
|
3914
|
-
...
|
|
3964
|
+
component: oi,
|
|
3965
|
+
...ri
|
|
3915
3966
|
}, {
|
|
3916
|
-
component:
|
|
3917
|
-
...
|
|
3967
|
+
component: ii,
|
|
3968
|
+
...ni
|
|
3918
3969
|
}, {
|
|
3919
|
-
component:
|
|
3920
|
-
...
|
|
3970
|
+
component: li,
|
|
3971
|
+
...ai
|
|
3921
3972
|
}, {
|
|
3922
|
-
component:
|
|
3923
|
-
...
|
|
3973
|
+
component: ci,
|
|
3974
|
+
...si
|
|
3924
3975
|
}, {
|
|
3925
|
-
component:
|
|
3926
|
-
...
|
|
3927
|
-
}],
|
|
3928
|
-
component:
|
|
3929
|
-
...Rn
|
|
3930
|
-
}, {
|
|
3931
|
-
component: un,
|
|
3976
|
+
component: di,
|
|
3977
|
+
...ui
|
|
3978
|
+
}], We = () => [{
|
|
3979
|
+
component: vt,
|
|
3932
3980
|
...Pn
|
|
3933
3981
|
}, {
|
|
3934
3982
|
component: dn,
|
|
3935
3983
|
...Vn
|
|
3936
3984
|
}, {
|
|
3937
|
-
component:
|
|
3938
|
-
...
|
|
3985
|
+
component: mn,
|
|
3986
|
+
...An
|
|
3939
3987
|
}, {
|
|
3940
3988
|
component: gn,
|
|
3941
|
-
|
|
3989
|
+
...Nn
|
|
3942
3990
|
}, {
|
|
3943
|
-
component:
|
|
3991
|
+
component: bn,
|
|
3944
3992
|
...Dn
|
|
3945
3993
|
}, {
|
|
3946
|
-
component:
|
|
3947
|
-
...
|
|
3994
|
+
component: Fn,
|
|
3995
|
+
...On
|
|
3948
3996
|
}, {
|
|
3949
|
-
component:
|
|
3950
|
-
...Un
|
|
3951
|
-
}, ...rt.includes(O) ? [{
|
|
3952
|
-
component: Wn,
|
|
3953
|
-
...Nn
|
|
3954
|
-
}] : [], {
|
|
3955
|
-
component: _n,
|
|
3997
|
+
component: Oi,
|
|
3956
3998
|
...Ln
|
|
3957
3999
|
}, {
|
|
3958
|
-
component:
|
|
3959
|
-
...
|
|
3960
|
-
}, ...
|
|
4000
|
+
component: Mn,
|
|
4001
|
+
...Hn
|
|
4002
|
+
}, ...ot.includes(O) ? [{
|
|
4003
|
+
component: $n,
|
|
4004
|
+
...Wn
|
|
4005
|
+
}] : [], {
|
|
4006
|
+
component: Un,
|
|
4007
|
+
..._n
|
|
4008
|
+
}, {
|
|
4009
|
+
component: Rn,
|
|
4010
|
+
...En
|
|
4011
|
+
}, ...mi()], fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3961
4012
|
function getAndSetVariantId() {
|
|
3962
4013
|
function setCookie(name, value, days) {
|
|
3963
4014
|
let expires = '';
|
|
@@ -4016,7 +4067,7 @@ const di = () => [{
|
|
|
4016
4067
|
}).join('');
|
|
4017
4068
|
styleEl.innerHTML = newStyleStr;
|
|
4018
4069
|
}
|
|
4019
|
-
}`,
|
|
4070
|
+
}`, hi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4020
4071
|
if (!navigator.cookieEnabled) {
|
|
4021
4072
|
return;
|
|
4022
4073
|
}
|
|
@@ -4050,29 +4101,29 @@ const di = () => [{
|
|
|
4050
4101
|
thisScriptEl?.remove();
|
|
4051
4102
|
}
|
|
4052
4103
|
return;
|
|
4053
|
-
}`,
|
|
4104
|
+
}`, lt = "builderIoAbTest", st = "builderIoRenderContent", re = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4054
4105
|
...t,
|
|
4055
4106
|
testVariationId: t.id,
|
|
4056
4107
|
id: e == null ? void 0 : e.id
|
|
4057
|
-
})),
|
|
4108
|
+
})), gi = ({
|
|
4058
4109
|
canTrack: e,
|
|
4059
4110
|
content: t
|
|
4060
|
-
}) => !(!(
|
|
4061
|
-
window.${at} = ${mi}
|
|
4111
|
+
}) => !(!(re(t).length > 0) || !e || J()), bi = (e) => e === "react" || e === "reactNative", yi = O === "angular", ct = bi(O), pi = () => `
|
|
4062
4112
|
window.${lt} = ${fi}
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4113
|
+
window.${st} = ${hi}
|
|
4114
|
+
`, vi = (e, t) => `
|
|
4115
|
+
window.${lt}(
|
|
4116
|
+
"${t}",${JSON.stringify(e)}, ${ct}, ${yi}
|
|
4117
|
+
)`, xi = ({
|
|
4067
4118
|
contentId: e,
|
|
4068
4119
|
variationId: t
|
|
4069
|
-
}) => `window.${
|
|
4070
|
-
"${t}", "${e}", ${
|
|
4120
|
+
}) => `window.${st}(
|
|
4121
|
+
"${t}", "${e}", ${ct}
|
|
4071
4122
|
)`;
|
|
4072
|
-
function
|
|
4123
|
+
function $e(e) {
|
|
4073
4124
|
return Math.round(e * 1e3) / 1e3;
|
|
4074
4125
|
}
|
|
4075
|
-
const
|
|
4126
|
+
const Si = (e, t, n = !0) => {
|
|
4076
4127
|
if (!(e instanceof HTMLElement))
|
|
4077
4128
|
return null;
|
|
4078
4129
|
let i = n ? e : e.parentElement;
|
|
@@ -4083,35 +4134,35 @@ const xi = (e, t, n = !0) => {
|
|
|
4083
4134
|
return i;
|
|
4084
4135
|
} while (i = i.parentElement);
|
|
4085
4136
|
return null;
|
|
4086
|
-
},
|
|
4137
|
+
}, ki = (e) => Si(e, (t) => {
|
|
4087
4138
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4088
4139
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4089
|
-
}),
|
|
4140
|
+
}), De = ({
|
|
4090
4141
|
event: e,
|
|
4091
4142
|
target: t
|
|
4092
4143
|
}) => {
|
|
4093
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o =
|
|
4144
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, r = e.clientY - n.top, o = $e(i / n.width), a = $e(r / n.height);
|
|
4094
4145
|
return {
|
|
4095
4146
|
x: o,
|
|
4096
4147
|
y: a
|
|
4097
4148
|
};
|
|
4098
|
-
},
|
|
4099
|
-
const t = e.target, n = t &&
|
|
4149
|
+
}, Ci = (e) => {
|
|
4150
|
+
const t = e.target, n = t && ki(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4100
4151
|
return {
|
|
4101
4152
|
targetBuilderElement: i || void 0,
|
|
4102
4153
|
metadata: {
|
|
4103
|
-
targetOffset: t ?
|
|
4154
|
+
targetOffset: t ? De({
|
|
4104
4155
|
event: e,
|
|
4105
4156
|
target: t
|
|
4106
4157
|
}) : void 0,
|
|
4107
|
-
builderTargetOffset: n ?
|
|
4158
|
+
builderTargetOffset: n ? De({
|
|
4108
4159
|
event: e,
|
|
4109
4160
|
target: n
|
|
4110
4161
|
}) : void 0,
|
|
4111
4162
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4112
4163
|
}
|
|
4113
4164
|
};
|
|
4114
|
-
},
|
|
4165
|
+
}, Ti = ["svelte", "qwik", "vue"], Oe = () => Ti.includes(O) && (_() || le()), Ii = (e) => {
|
|
4115
4166
|
var o, a;
|
|
4116
4167
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
4117
4168
|
let r = "";
|
|
@@ -4126,26 +4177,26 @@ font-weight: 400;
|
|
|
4126
4177
|
for (const l in e.files) {
|
|
4127
4178
|
if (!(String(Number(l)) === l))
|
|
4128
4179
|
continue;
|
|
4129
|
-
const
|
|
4130
|
-
|
|
4180
|
+
const d = e.files[l];
|
|
4181
|
+
d && d !== i && (r += `
|
|
4131
4182
|
@font-face {
|
|
4132
4183
|
font-family: "${t}";
|
|
4133
|
-
src: url('${
|
|
4184
|
+
src: url('${d}') format('woff2');
|
|
4134
4185
|
font-display: fallback;
|
|
4135
4186
|
font-weight: ${l};
|
|
4136
4187
|
}
|
|
4137
4188
|
`.trim());
|
|
4138
4189
|
}
|
|
4139
4190
|
return r;
|
|
4140
|
-
},
|
|
4191
|
+
}, wi = ({
|
|
4141
4192
|
customFonts: e
|
|
4142
4193
|
}) => {
|
|
4143
4194
|
var t;
|
|
4144
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4145
|
-
},
|
|
4195
|
+
return ((t = e == null ? void 0 : e.map((n) => Ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4196
|
+
}, Ei = ({
|
|
4146
4197
|
cssCode: e,
|
|
4147
4198
|
contentId: t
|
|
4148
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4199
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
|
|
4149
4200
|
.builder-button {
|
|
4150
4201
|
all: unset;
|
|
4151
4202
|
}
|
|
@@ -4162,154 +4213,162 @@ font-weight: ${l};
|
|
|
4162
4213
|
text-align: inherit;
|
|
4163
4214
|
font-family: inherit;
|
|
4164
4215
|
}
|
|
4165
|
-
`,
|
|
4166
|
-
function
|
|
4167
|
-
var
|
|
4168
|
-
const t =
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4216
|
+
`, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
|
|
4217
|
+
function Ai(e) {
|
|
4218
|
+
var H, q, p;
|
|
4219
|
+
const t = z(null);
|
|
4220
|
+
k(() => !1), k(
|
|
4221
|
+
() => e.builderContextSignal
|
|
4222
|
+
);
|
|
4223
|
+
const [n, i] = k(() => null), [r, o] = k(() => "");
|
|
4224
|
+
function a(v, V) {
|
|
4225
|
+
var W, R;
|
|
4226
|
+
const A = {
|
|
4173
4227
|
...e.builderContextSignal.rootState,
|
|
4174
|
-
...
|
|
4228
|
+
...v
|
|
4175
4229
|
};
|
|
4176
|
-
e.builderContextSignal.rootSetState ? (
|
|
4177
|
-
...
|
|
4178
|
-
rootState:
|
|
4230
|
+
e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
|
|
4231
|
+
...P,
|
|
4232
|
+
rootState: A
|
|
4233
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
|
|
4234
|
+
...P,
|
|
4235
|
+
rootState: A
|
|
4179
4236
|
}));
|
|
4180
4237
|
}
|
|
4181
|
-
function
|
|
4182
|
-
var
|
|
4183
|
-
const
|
|
4238
|
+
function l(v, V) {
|
|
4239
|
+
var W, R, P, I, B;
|
|
4240
|
+
const A = {
|
|
4184
4241
|
...e.builderContextSignal.content,
|
|
4185
|
-
...
|
|
4242
|
+
...v,
|
|
4186
4243
|
data: {
|
|
4187
|
-
...(
|
|
4188
|
-
...
|
|
4244
|
+
...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
|
|
4245
|
+
...v == null ? void 0 : v.data
|
|
4189
4246
|
},
|
|
4190
4247
|
meta: {
|
|
4191
|
-
...(
|
|
4192
|
-
...
|
|
4193
|
-
breakpoints: ((
|
|
4248
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4249
|
+
...v == null ? void 0 : v.meta,
|
|
4250
|
+
breakpoints: ((P = v == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints) || ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints)
|
|
4194
4251
|
}
|
|
4195
4252
|
};
|
|
4196
|
-
e.setBuilderContextSignal((
|
|
4197
|
-
...
|
|
4198
|
-
content:
|
|
4253
|
+
e.setBuilderContextSignal((C) => ({
|
|
4254
|
+
...C,
|
|
4255
|
+
content: A
|
|
4199
4256
|
}));
|
|
4200
4257
|
}
|
|
4201
|
-
function
|
|
4258
|
+
function c() {
|
|
4202
4259
|
return e.showContent ? {} : {
|
|
4203
4260
|
hidden: !0,
|
|
4204
4261
|
"aria-hidden": !0
|
|
4205
4262
|
};
|
|
4206
4263
|
}
|
|
4207
|
-
const [
|
|
4264
|
+
const [d, h] = k(
|
|
4208
4265
|
() => e.contentWrapper || "div"
|
|
4209
4266
|
);
|
|
4210
|
-
function
|
|
4211
|
-
return
|
|
4267
|
+
function b(v) {
|
|
4268
|
+
return ht({
|
|
4212
4269
|
model: e.model,
|
|
4213
4270
|
trustedHosts: e.trustedHosts,
|
|
4214
4271
|
callbacks: {
|
|
4215
|
-
configureSdk: (
|
|
4216
|
-
var
|
|
4217
|
-
const { breakpoints:
|
|
4218
|
-
!
|
|
4272
|
+
configureSdk: (V) => {
|
|
4273
|
+
var R;
|
|
4274
|
+
const { breakpoints: A, contentId: W } = V;
|
|
4275
|
+
!W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
|
|
4219
4276
|
meta: {
|
|
4220
|
-
breakpoints:
|
|
4277
|
+
breakpoints: A
|
|
4221
4278
|
}
|
|
4222
4279
|
});
|
|
4223
4280
|
},
|
|
4224
|
-
animation: (
|
|
4225
|
-
|
|
4281
|
+
animation: (V) => {
|
|
4282
|
+
Qe(V);
|
|
4226
4283
|
},
|
|
4227
|
-
contentUpdate: (
|
|
4228
|
-
|
|
4284
|
+
contentUpdate: (V, A) => {
|
|
4285
|
+
l(V);
|
|
4229
4286
|
},
|
|
4230
|
-
stateUpdate: (
|
|
4231
|
-
|
|
4287
|
+
stateUpdate: (V, A) => {
|
|
4288
|
+
a(V);
|
|
4232
4289
|
}
|
|
4233
4290
|
}
|
|
4234
|
-
})(
|
|
4291
|
+
})(v);
|
|
4235
4292
|
}
|
|
4236
|
-
const [
|
|
4237
|
-
function
|
|
4238
|
-
var
|
|
4293
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
|
|
4294
|
+
function S(v) {
|
|
4295
|
+
var V, A;
|
|
4239
4296
|
if (e.builderContextSignal.content) {
|
|
4240
|
-
const
|
|
4241
|
-
|
|
4297
|
+
const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4298
|
+
Ie({
|
|
4242
4299
|
apiHost: e.apiHost,
|
|
4243
4300
|
type: "click",
|
|
4244
|
-
canTrack:
|
|
4245
|
-
contentId:
|
|
4301
|
+
canTrack: ee(e.canTrack),
|
|
4302
|
+
contentId: R,
|
|
4246
4303
|
apiKey: e.apiKey,
|
|
4247
|
-
variationId:
|
|
4248
|
-
...
|
|
4249
|
-
unique: !
|
|
4304
|
+
variationId: W !== R ? W : void 0,
|
|
4305
|
+
...Ci(v),
|
|
4306
|
+
unique: !y
|
|
4250
4307
|
});
|
|
4251
4308
|
}
|
|
4252
|
-
|
|
4309
|
+
y || g(!0);
|
|
4253
4310
|
}
|
|
4254
|
-
function
|
|
4255
|
-
var
|
|
4256
|
-
const
|
|
4257
|
-
Object.entries(
|
|
4258
|
-
([
|
|
4259
|
-
if (!
|
|
4311
|
+
function T() {
|
|
4312
|
+
var V, A, W;
|
|
4313
|
+
const v = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
|
|
4314
|
+
Object.entries(v).forEach(
|
|
4315
|
+
([R, P]) => {
|
|
4316
|
+
if (!P)
|
|
4260
4317
|
return;
|
|
4261
|
-
const
|
|
4262
|
-
if (f[
|
|
4318
|
+
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4319
|
+
if (f[R] || u[R] && !_())
|
|
4263
4320
|
return;
|
|
4264
|
-
const
|
|
4265
|
-
f[
|
|
4266
|
-
const
|
|
4321
|
+
const B = I ? P.request.url : P;
|
|
4322
|
+
f[R] = !0;
|
|
4323
|
+
const C = B.replace(
|
|
4267
4324
|
/{{([^}]+)}}/g,
|
|
4268
|
-
(
|
|
4269
|
-
|
|
4270
|
-
code:
|
|
4325
|
+
(L, j) => String(
|
|
4326
|
+
Y({
|
|
4327
|
+
code: j,
|
|
4271
4328
|
context: e.context || {},
|
|
4272
4329
|
localState: void 0,
|
|
4273
4330
|
rootState: e.builderContextSignal.rootState,
|
|
4274
4331
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4275
4332
|
})
|
|
4276
4333
|
)
|
|
4277
|
-
),
|
|
4278
|
-
url:
|
|
4279
|
-
method:
|
|
4280
|
-
headers:
|
|
4281
|
-
body:
|
|
4334
|
+
), $ = I ? {
|
|
4335
|
+
url: C,
|
|
4336
|
+
method: P.request.method,
|
|
4337
|
+
headers: P.request.headers,
|
|
4338
|
+
body: P.request.body
|
|
4282
4339
|
} : {
|
|
4283
|
-
url:
|
|
4340
|
+
url: C,
|
|
4284
4341
|
method: "GET"
|
|
4285
4342
|
};
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4343
|
+
Le(JSON.stringify($));
|
|
4344
|
+
const F = {
|
|
4345
|
+
method: $.method,
|
|
4346
|
+
headers: $.headers,
|
|
4347
|
+
body: $.body
|
|
4348
|
+
};
|
|
4349
|
+
$.method === "GET" && delete F.body, fetch($.url, F).then((L) => L.json()).then((L) => {
|
|
4350
|
+
a({
|
|
4351
|
+
[R]: L
|
|
4352
|
+
}), u[R] = !0;
|
|
4353
|
+
}).catch((L) => {
|
|
4295
4354
|
console.error(
|
|
4296
4355
|
"error fetching dynamic data",
|
|
4297
|
-
JSON.stringify(
|
|
4298
|
-
|
|
4356
|
+
JSON.stringify(P),
|
|
4357
|
+
L
|
|
4299
4358
|
);
|
|
4300
4359
|
}).finally(() => {
|
|
4301
|
-
f[
|
|
4360
|
+
f[R] = !1;
|
|
4302
4361
|
});
|
|
4303
4362
|
}
|
|
4304
4363
|
);
|
|
4305
4364
|
}
|
|
4306
|
-
function
|
|
4307
|
-
|
|
4365
|
+
function E() {
|
|
4366
|
+
_() && window.dispatchEvent(
|
|
4308
4367
|
new CustomEvent(
|
|
4309
4368
|
"builder:component:stateChange",
|
|
4310
4369
|
{
|
|
4311
4370
|
detail: {
|
|
4312
|
-
state:
|
|
4371
|
+
state: xe(e.builderContextSignal.rootState),
|
|
4313
4372
|
ref: {
|
|
4314
4373
|
name: e.model
|
|
4315
4374
|
}
|
|
@@ -4318,11 +4377,11 @@ function Vi(e) {
|
|
|
4318
4377
|
)
|
|
4319
4378
|
);
|
|
4320
4379
|
}
|
|
4321
|
-
const
|
|
4322
|
-
return
|
|
4323
|
-
var
|
|
4324
|
-
if (
|
|
4325
|
-
|
|
4380
|
+
const U = z(!1);
|
|
4381
|
+
return U.current || (T(), E(), U.current = !0), N(() => {
|
|
4382
|
+
var v, V, A, W, R;
|
|
4383
|
+
if (J()) {
|
|
4384
|
+
_() && !e.isNestedRender && (window.addEventListener("message", b), dt({
|
|
4326
4385
|
...e.locale ? {
|
|
4327
4386
|
locale: e.locale
|
|
4328
4387
|
} : {},
|
|
@@ -4332,102 +4391,110 @@ function Vi(e) {
|
|
|
4332
4391
|
...e.trustedHosts ? {
|
|
4333
4392
|
trustedHosts: e.trustedHosts
|
|
4334
4393
|
} : {},
|
|
4335
|
-
modelName: (
|
|
4394
|
+
modelName: (v = e.model) != null ? v : "",
|
|
4336
4395
|
apiKey: e.apiKey
|
|
4337
4396
|
}), Object.values(
|
|
4338
4397
|
e.builderContextSignal.componentInfos
|
|
4339
|
-
).forEach((
|
|
4340
|
-
var
|
|
4341
|
-
if (!((
|
|
4342
|
-
const
|
|
4343
|
-
(
|
|
4398
|
+
).forEach((C) => {
|
|
4399
|
+
var $, F;
|
|
4400
|
+
if (!(($ = C.models) != null && $.length) || C.models.includes(e.model)) {
|
|
4401
|
+
const L = mt(C);
|
|
4402
|
+
(F = window.parent) == null || F.postMessage(L, "*");
|
|
4344
4403
|
}
|
|
4345
4404
|
}), window.addEventListener(
|
|
4346
4405
|
"builder:component:stateChangeListenerActivated",
|
|
4347
|
-
|
|
4406
|
+
E
|
|
4348
4407
|
));
|
|
4349
|
-
const
|
|
4350
|
-
name: `builder.tests.${(
|
|
4408
|
+
const P = e.builderContextSignal.content && ee(e.canTrack), I = ft({
|
|
4409
|
+
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4351
4410
|
canTrack: !0
|
|
4352
|
-
}),
|
|
4353
|
-
if (
|
|
4354
|
-
const
|
|
4355
|
-
|
|
4411
|
+
}), B = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4412
|
+
if (P && B === I) {
|
|
4413
|
+
const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
|
|
4414
|
+
Ie({
|
|
4356
4415
|
apiHost: e.apiHost,
|
|
4357
4416
|
type: "impression",
|
|
4358
4417
|
canTrack: !0,
|
|
4359
|
-
contentId:
|
|
4360
|
-
apiKey:
|
|
4361
|
-
variationId:
|
|
4418
|
+
contentId: C,
|
|
4419
|
+
apiKey: $,
|
|
4420
|
+
variationId: I !== C ? I : void 0
|
|
4362
4421
|
});
|
|
4363
4422
|
}
|
|
4364
|
-
if (
|
|
4365
|
-
const
|
|
4366
|
-
`builder.overrides.${
|
|
4367
|
-
),
|
|
4368
|
-
(
|
|
4423
|
+
if (le() && !_()) {
|
|
4424
|
+
const C = new URL(location.href).searchParams, $ = C.get("builder.preview"), F = C.get(
|
|
4425
|
+
`builder.overrides.${$}`
|
|
4426
|
+
), L = C.get("apiKey") || C.get("builder.space");
|
|
4427
|
+
($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && _e({
|
|
4369
4428
|
model: e.model,
|
|
4370
4429
|
apiKey: e.apiKey,
|
|
4371
4430
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4372
|
-
|
|
4431
|
+
...$ === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4373
4432
|
query: {
|
|
4374
4433
|
id: e.context.symbolId
|
|
4375
4434
|
}
|
|
4376
4435
|
} : {}
|
|
4377
|
-
}).then((
|
|
4378
|
-
|
|
4436
|
+
}).then((j) => {
|
|
4437
|
+
j && l(j);
|
|
4379
4438
|
});
|
|
4380
4439
|
}
|
|
4381
4440
|
}
|
|
4382
|
-
}, []),
|
|
4383
|
-
e.content &&
|
|
4384
|
-
}, [e.content]),
|
|
4385
|
-
|
|
4386
|
-
}, [e.builderContextSignal.rootState]),
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
}
|
|
4392
|
-
}, [e.
|
|
4393
|
-
|
|
4441
|
+
}, []), N(() => {
|
|
4442
|
+
e.content && l(e.content);
|
|
4443
|
+
}, [e.content]), N(() => {
|
|
4444
|
+
E();
|
|
4445
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
4446
|
+
if (e.data) {
|
|
4447
|
+
if (n === e.data)
|
|
4448
|
+
return;
|
|
4449
|
+
a(e.data), i(e.data);
|
|
4450
|
+
}
|
|
4451
|
+
}, [e.data]), N(() => {
|
|
4452
|
+
if (e.locale) {
|
|
4453
|
+
if (r === e.locale)
|
|
4454
|
+
return;
|
|
4455
|
+
a({
|
|
4456
|
+
locale: e.locale
|
|
4457
|
+
}), o(e.locale);
|
|
4458
|
+
}
|
|
4459
|
+
}, [e.locale]), N(() => () => {
|
|
4460
|
+
J() && (window.removeEventListener("message", b), window.removeEventListener(
|
|
4394
4461
|
"builder:component:stateChangeListenerActivated",
|
|
4395
|
-
|
|
4462
|
+
E
|
|
4396
4463
|
));
|
|
4397
|
-
}, []), /* @__PURE__ */ s(
|
|
4398
|
-
|
|
4464
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Oe() ? /* @__PURE__ */ s(
|
|
4465
|
+
d,
|
|
4399
4466
|
{
|
|
4400
4467
|
ref: t,
|
|
4401
|
-
onClick: (
|
|
4402
|
-
"builder-content-id": (
|
|
4468
|
+
onClick: (v) => S(v),
|
|
4469
|
+
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4403
4470
|
"builder-model": e.model,
|
|
4404
|
-
className:
|
|
4405
|
-
((
|
|
4471
|
+
className: Vi(
|
|
4472
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4406
4473
|
),
|
|
4407
4474
|
style: {
|
|
4408
|
-
display: !e.builderContextSignal.content &&
|
|
4475
|
+
display: !e.builderContextSignal.content && Oe() ? "none" : void 0
|
|
4409
4476
|
},
|
|
4410
|
-
...
|
|
4477
|
+
...c(),
|
|
4411
4478
|
...e.contentWrapperProps,
|
|
4412
4479
|
children: e.children
|
|
4413
4480
|
}
|
|
4414
4481
|
) : null });
|
|
4415
4482
|
}
|
|
4416
|
-
function
|
|
4417
|
-
const [t, n] =
|
|
4483
|
+
function Bi(e) {
|
|
4484
|
+
const [t, n] = k(
|
|
4418
4485
|
() => `
|
|
4419
|
-
${
|
|
4486
|
+
${Ei({
|
|
4420
4487
|
cssCode: e.cssCode,
|
|
4421
4488
|
contentId: e.contentId
|
|
4422
4489
|
})}
|
|
4423
|
-
${
|
|
4490
|
+
${wi({
|
|
4424
4491
|
customFonts: e.customFonts
|
|
4425
4492
|
})}
|
|
4426
|
-
${
|
|
4493
|
+
${Pi(e.isNestedRender)}
|
|
4427
4494
|
`.trim()
|
|
4428
4495
|
);
|
|
4429
4496
|
return /* @__PURE__ */ s(
|
|
4430
|
-
|
|
4497
|
+
te,
|
|
4431
4498
|
{
|
|
4432
4499
|
id: "builderio-content",
|
|
4433
4500
|
styles: t,
|
|
@@ -4435,7 +4502,7 @@ ${Ri(e.isNestedRender)}
|
|
|
4435
4502
|
}
|
|
4436
4503
|
);
|
|
4437
4504
|
}
|
|
4438
|
-
const
|
|
4505
|
+
const Ni = ({
|
|
4439
4506
|
content: e,
|
|
4440
4507
|
data: t,
|
|
4441
4508
|
locale: n
|
|
@@ -4452,7 +4519,7 @@ const Bi = ({
|
|
|
4452
4519
|
locale: n
|
|
4453
4520
|
} : {}
|
|
4454
4521
|
};
|
|
4455
|
-
},
|
|
4522
|
+
}, Wi = ({
|
|
4456
4523
|
content: e,
|
|
4457
4524
|
data: t
|
|
4458
4525
|
}) => e ? {
|
|
@@ -4463,46 +4530,46 @@ const Bi = ({
|
|
|
4463
4530
|
},
|
|
4464
4531
|
meta: e == null ? void 0 : e.meta
|
|
4465
4532
|
} : void 0;
|
|
4466
|
-
function
|
|
4467
|
-
var
|
|
4468
|
-
const [t, n] =
|
|
4533
|
+
function Fe(e) {
|
|
4534
|
+
var d, h, b, u, x, f, m, y, g;
|
|
4535
|
+
const [t, n] = k(
|
|
4469
4536
|
() => {
|
|
4470
|
-
var S,
|
|
4471
|
-
return
|
|
4537
|
+
var S, T;
|
|
4538
|
+
return xi({
|
|
4472
4539
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4473
4540
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4474
4541
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4475
|
-
contentId: (
|
|
4542
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4476
4543
|
});
|
|
4477
4544
|
}
|
|
4478
4545
|
);
|
|
4479
4546
|
function i(S) {
|
|
4480
|
-
l((
|
|
4481
|
-
...
|
|
4547
|
+
l((T) => ({
|
|
4548
|
+
...T,
|
|
4482
4549
|
rootState: S
|
|
4483
4550
|
}));
|
|
4484
4551
|
}
|
|
4485
|
-
const [r, o] =
|
|
4552
|
+
const [r, o] = k(
|
|
4486
4553
|
() => [
|
|
4487
|
-
...
|
|
4554
|
+
...We(),
|
|
4488
4555
|
...e.customComponents || []
|
|
4489
4556
|
].reduce(
|
|
4490
|
-
(S, { component:
|
|
4557
|
+
(S, { component: T, ...E }) => ({
|
|
4491
4558
|
...S,
|
|
4492
|
-
[
|
|
4493
|
-
component:
|
|
4494
|
-
...
|
|
4559
|
+
[E.name]: {
|
|
4560
|
+
component: T,
|
|
4561
|
+
...we(E)
|
|
4495
4562
|
}
|
|
4496
4563
|
}),
|
|
4497
4564
|
{}
|
|
4498
4565
|
)
|
|
4499
|
-
), [a, l] =
|
|
4500
|
-
content:
|
|
4566
|
+
), [a, l] = k(() => ({
|
|
4567
|
+
content: Wi({
|
|
4501
4568
|
content: e.content,
|
|
4502
4569
|
data: e.data
|
|
4503
4570
|
}),
|
|
4504
4571
|
localState: void 0,
|
|
4505
|
-
rootState:
|
|
4572
|
+
rootState: Ni({
|
|
4506
4573
|
content: e.content,
|
|
4507
4574
|
data: e.data,
|
|
4508
4575
|
locale: e.locale
|
|
@@ -4513,12 +4580,12 @@ function Oe(e) {
|
|
|
4513
4580
|
apiKey: e.apiKey,
|
|
4514
4581
|
apiVersion: e.apiVersion,
|
|
4515
4582
|
componentInfos: [
|
|
4516
|
-
...
|
|
4583
|
+
...We(),
|
|
4517
4584
|
...e.customComponents || []
|
|
4518
4585
|
].reduce(
|
|
4519
|
-
(S, { component:
|
|
4586
|
+
(S, { component: T, ...E }) => ({
|
|
4520
4587
|
...S,
|
|
4521
|
-
[
|
|
4588
|
+
[E.name]: we(E)
|
|
4522
4589
|
}),
|
|
4523
4590
|
{}
|
|
4524
4591
|
),
|
|
@@ -4527,31 +4594,31 @@ function Oe(e) {
|
|
|
4527
4594
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4528
4595
|
nonce: e.nonce || "",
|
|
4529
4596
|
model: e.model
|
|
4530
|
-
})), c =
|
|
4597
|
+
})), c = z(!1);
|
|
4531
4598
|
if (!c.current) {
|
|
4532
|
-
e.apiKey ||
|
|
4599
|
+
e.apiKey || Q.error(
|
|
4533
4600
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4534
4601
|
);
|
|
4535
|
-
const S = (
|
|
4536
|
-
S &&
|
|
4602
|
+
const S = (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4603
|
+
S && Y({
|
|
4537
4604
|
code: S,
|
|
4538
4605
|
context: e.context || {},
|
|
4539
4606
|
localState: void 0,
|
|
4540
4607
|
rootState: a.rootState,
|
|
4541
|
-
rootSetState: (
|
|
4542
|
-
Object.assign(a.rootState,
|
|
4608
|
+
rootSetState: (T) => {
|
|
4609
|
+
Object.assign(a.rootState, T);
|
|
4543
4610
|
},
|
|
4544
4611
|
isExpression: !1
|
|
4545
4612
|
}), c.current = !0;
|
|
4546
4613
|
}
|
|
4547
4614
|
return /* @__PURE__ */ s(
|
|
4548
|
-
|
|
4615
|
+
Me.Provider,
|
|
4549
4616
|
{
|
|
4550
4617
|
value: {
|
|
4551
4618
|
registeredComponents: r
|
|
4552
4619
|
},
|
|
4553
|
-
children: /* @__PURE__ */
|
|
4554
|
-
|
|
4620
|
+
children: /* @__PURE__ */ D(
|
|
4621
|
+
Ai,
|
|
4555
4622
|
{
|
|
4556
4623
|
apiHost: e.apiHost,
|
|
4557
4624
|
nonce: e.nonce,
|
|
@@ -4572,7 +4639,7 @@ function Oe(e) {
|
|
|
4572
4639
|
setBuilderContextSignal: l,
|
|
4573
4640
|
children: [
|
|
4574
4641
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4575
|
-
|
|
4642
|
+
G,
|
|
4576
4643
|
{
|
|
4577
4644
|
id: "builderio-variant-visibility",
|
|
4578
4645
|
scriptStr: t,
|
|
@@ -4580,19 +4647,19 @@ function Oe(e) {
|
|
|
4580
4647
|
}
|
|
4581
4648
|
) : null,
|
|
4582
4649
|
/* @__PURE__ */ s(
|
|
4583
|
-
|
|
4650
|
+
Bi,
|
|
4584
4651
|
{
|
|
4585
4652
|
nonce: e.nonce || "",
|
|
4586
4653
|
isNestedRender: e.isNestedRender,
|
|
4587
4654
|
contentId: (b = a.content) == null ? void 0 : b.id,
|
|
4588
|
-
cssCode: (
|
|
4589
|
-
customFonts: (
|
|
4655
|
+
cssCode: (x = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4656
|
+
customFonts: (m = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4590
4657
|
}
|
|
4591
4658
|
),
|
|
4592
4659
|
/* @__PURE__ */ s(
|
|
4593
|
-
|
|
4660
|
+
M,
|
|
4594
4661
|
{
|
|
4595
|
-
blocks: (
|
|
4662
|
+
blocks: (g = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : g.blocks,
|
|
4596
4663
|
context: a,
|
|
4597
4664
|
registeredComponents: r,
|
|
4598
4665
|
linkComponent: e.linkComponent
|
|
@@ -4604,18 +4671,18 @@ function Oe(e) {
|
|
|
4604
4671
|
}
|
|
4605
4672
|
);
|
|
4606
4673
|
}
|
|
4607
|
-
function
|
|
4674
|
+
function $i(e) {
|
|
4608
4675
|
var a;
|
|
4609
|
-
const [t, n] =
|
|
4610
|
-
() =>
|
|
4611
|
-
canTrack:
|
|
4676
|
+
const [t, n] = k(
|
|
4677
|
+
() => gi({
|
|
4678
|
+
canTrack: ee(e.canTrack),
|
|
4612
4679
|
content: e.content
|
|
4613
4680
|
})
|
|
4614
4681
|
);
|
|
4615
4682
|
function i() {
|
|
4616
4683
|
var l;
|
|
4617
|
-
return
|
|
4618
|
-
|
|
4684
|
+
return vi(
|
|
4685
|
+
re(e.content).map((c) => ({
|
|
4619
4686
|
id: c.testVariationId,
|
|
4620
4687
|
testRatio: c.testRatio
|
|
4621
4688
|
})),
|
|
@@ -4623,41 +4690,41 @@ function Wi(e) {
|
|
|
4623
4690
|
);
|
|
4624
4691
|
}
|
|
4625
4692
|
function r() {
|
|
4626
|
-
return
|
|
4693
|
+
return re(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4627
4694
|
}
|
|
4628
4695
|
function o() {
|
|
4629
4696
|
var l;
|
|
4630
4697
|
return t ? {
|
|
4631
4698
|
...e.content,
|
|
4632
4699
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4633
|
-
} :
|
|
4700
|
+
} : gt({
|
|
4634
4701
|
item: e.content,
|
|
4635
|
-
canTrack:
|
|
4702
|
+
canTrack: ee(e.canTrack)
|
|
4636
4703
|
});
|
|
4637
4704
|
}
|
|
4638
|
-
return
|
|
4639
|
-
}, []), /* @__PURE__ */
|
|
4640
|
-
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */
|
|
4705
|
+
return N(() => {
|
|
4706
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
4707
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
|
|
4641
4708
|
/* @__PURE__ */ s(
|
|
4642
|
-
|
|
4709
|
+
G,
|
|
4643
4710
|
{
|
|
4644
4711
|
id: "builderio-init-variants-fns",
|
|
4645
|
-
scriptStr:
|
|
4712
|
+
scriptStr: pi(),
|
|
4646
4713
|
nonce: e.nonce || ""
|
|
4647
4714
|
}
|
|
4648
4715
|
),
|
|
4649
|
-
|
|
4650
|
-
|
|
4716
|
+
ot.includes(O) ? /* @__PURE__ */ s(
|
|
4717
|
+
G,
|
|
4651
4718
|
{
|
|
4652
4719
|
id: "builderio-init-personalization-variants-fns",
|
|
4653
4720
|
nonce: e.nonce || "",
|
|
4654
|
-
scriptStr:
|
|
4721
|
+
scriptStr: Tn()
|
|
4655
4722
|
}
|
|
4656
4723
|
) : null
|
|
4657
4724
|
] }) : null,
|
|
4658
|
-
t ? /* @__PURE__ */
|
|
4725
|
+
t ? /* @__PURE__ */ D(w, { children: [
|
|
4659
4726
|
/* @__PURE__ */ s(
|
|
4660
|
-
|
|
4727
|
+
te,
|
|
4661
4728
|
{
|
|
4662
4729
|
id: "builderio-variants",
|
|
4663
4730
|
styles: r(),
|
|
@@ -4665,15 +4732,15 @@ function Wi(e) {
|
|
|
4665
4732
|
}
|
|
4666
4733
|
),
|
|
4667
4734
|
/* @__PURE__ */ s(
|
|
4668
|
-
|
|
4735
|
+
G,
|
|
4669
4736
|
{
|
|
4670
4737
|
id: "builderio-variants-visibility",
|
|
4671
4738
|
scriptStr: i(),
|
|
4672
4739
|
nonce: e.nonce || ""
|
|
4673
4740
|
}
|
|
4674
4741
|
),
|
|
4675
|
-
(a =
|
|
4676
|
-
|
|
4742
|
+
(a = re(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
4743
|
+
Fe,
|
|
4677
4744
|
{
|
|
4678
4745
|
apiHost: e.apiHost,
|
|
4679
4746
|
isNestedRender: e.isNestedRender,
|
|
@@ -4701,7 +4768,7 @@ function Wi(e) {
|
|
|
4701
4768
|
))
|
|
4702
4769
|
] }) : null,
|
|
4703
4770
|
/* @__PURE__ */ s(
|
|
4704
|
-
|
|
4771
|
+
Fe,
|
|
4705
4772
|
{
|
|
4706
4773
|
apiHost: e.apiHost,
|
|
4707
4774
|
nonce: e.nonce,
|
|
@@ -4728,13 +4795,13 @@ function Wi(e) {
|
|
|
4728
4795
|
)
|
|
4729
4796
|
] });
|
|
4730
4797
|
}
|
|
4731
|
-
const
|
|
4798
|
+
const Di = async ({
|
|
4732
4799
|
builderContextValue: e,
|
|
4733
4800
|
symbol: t
|
|
4734
4801
|
}) => {
|
|
4735
4802
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4736
4803
|
(e != null && e.apiKey))
|
|
4737
|
-
return
|
|
4804
|
+
return _e({
|
|
4738
4805
|
model: t.model,
|
|
4739
4806
|
apiKey: e.apiKey,
|
|
4740
4807
|
apiVersion: e.apiVersion,
|
|
@@ -4744,11 +4811,11 @@ const $i = async ({
|
|
|
4744
4811
|
}
|
|
4745
4812
|
}
|
|
4746
4813
|
}).catch((n) => {
|
|
4747
|
-
|
|
4814
|
+
Q.error("Could not fetch symbol content: ", n);
|
|
4748
4815
|
});
|
|
4749
4816
|
};
|
|
4750
|
-
function
|
|
4751
|
-
var
|
|
4817
|
+
function Oi(e) {
|
|
4818
|
+
var h, b, u, x, f;
|
|
4752
4819
|
function t() {
|
|
4753
4820
|
return "div";
|
|
4754
4821
|
}
|
|
@@ -4756,36 +4823,39 @@ function Di(e) {
|
|
|
4756
4823
|
return "div";
|
|
4757
4824
|
}
|
|
4758
4825
|
function i() {
|
|
4759
|
-
|
|
4826
|
+
return Object.values(e.builderComponents);
|
|
4827
|
+
}
|
|
4828
|
+
function r() {
|
|
4829
|
+
var m, y;
|
|
4760
4830
|
return [
|
|
4761
|
-
e.attributes[
|
|
4831
|
+
e.attributes[K()],
|
|
4762
4832
|
"builder-symbol",
|
|
4763
|
-
(
|
|
4764
|
-
(
|
|
4833
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4834
|
+
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4765
4835
|
].filter(Boolean).join(" ");
|
|
4766
4836
|
}
|
|
4767
|
-
const [
|
|
4768
|
-
var
|
|
4769
|
-
return (
|
|
4770
|
-
}), [
|
|
4771
|
-
var
|
|
4772
|
-
return (
|
|
4837
|
+
const [o, a] = k(() => {
|
|
4838
|
+
var m;
|
|
4839
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4840
|
+
}), [l, c] = k(() => {
|
|
4841
|
+
var m;
|
|
4842
|
+
return (m = e.symbol) == null ? void 0 : m.entry;
|
|
4773
4843
|
});
|
|
4774
|
-
function
|
|
4775
|
-
var
|
|
4776
|
-
|
|
4844
|
+
function d() {
|
|
4845
|
+
var m;
|
|
4846
|
+
o && l === ((m = e.symbol) == null ? void 0 : m.entry) || Di({
|
|
4777
4847
|
symbol: e.symbol,
|
|
4778
4848
|
builderContextValue: e.builderContext
|
|
4779
|
-
}).then((
|
|
4780
|
-
var
|
|
4781
|
-
|
|
4849
|
+
}).then((y) => {
|
|
4850
|
+
var g;
|
|
4851
|
+
y && (a(y), c((g = e.symbol) == null ? void 0 : g.entry));
|
|
4782
4852
|
});
|
|
4783
4853
|
}
|
|
4784
|
-
return
|
|
4785
|
-
}, []),
|
|
4786
|
-
|
|
4787
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4788
|
-
|
|
4854
|
+
return N(() => {
|
|
4855
|
+
}, []), N(() => {
|
|
4856
|
+
d();
|
|
4857
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
|
|
4858
|
+
$i,
|
|
4789
4859
|
{
|
|
4790
4860
|
nonce: e.builderContext.nonce,
|
|
4791
4861
|
isNestedRender: !0,
|
|
@@ -4793,17 +4863,17 @@ function Di(e) {
|
|
|
4793
4863
|
apiKey: e.builderContext.apiKey,
|
|
4794
4864
|
context: {
|
|
4795
4865
|
...e.builderContext.context,
|
|
4796
|
-
symbolId: (
|
|
4866
|
+
symbolId: (h = e.builderBlock) == null ? void 0 : h.id
|
|
4797
4867
|
},
|
|
4798
|
-
customComponents:
|
|
4868
|
+
customComponents: i(),
|
|
4799
4869
|
data: {
|
|
4800
|
-
...(
|
|
4870
|
+
...(b = e.symbol) == null ? void 0 : b.data,
|
|
4801
4871
|
...e.builderContext.localState,
|
|
4802
|
-
...(
|
|
4872
|
+
...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
|
|
4803
4873
|
},
|
|
4804
4874
|
canTrack: e.builderContext.canTrack,
|
|
4805
|
-
model: (
|
|
4806
|
-
content:
|
|
4875
|
+
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4876
|
+
content: o,
|
|
4807
4877
|
linkComponent: e.builderLinkComponent,
|
|
4808
4878
|
blocksWrapper: t(),
|
|
4809
4879
|
contentWrapper: n()
|
|
@@ -4811,16 +4881,16 @@ function Di(e) {
|
|
|
4811
4881
|
) });
|
|
4812
4882
|
}
|
|
4813
4883
|
export {
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4884
|
+
M as Blocks,
|
|
4885
|
+
se as BuilderContext,
|
|
4886
|
+
vt as Button,
|
|
4887
|
+
dn as Columns,
|
|
4888
|
+
$i as Content,
|
|
4889
|
+
mn as Fragment,
|
|
4890
|
+
gn as Image,
|
|
4891
|
+
bn as Section,
|
|
4892
|
+
Oi as Symbol,
|
|
4893
|
+
Mn as Text,
|
|
4894
|
+
di as Video,
|
|
4895
|
+
Mi as setClientUserAttributes
|
|
4826
4896
|
};
|