@builder.io/sdk-react 4.0.0 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +30 -30
- package/lib/browser/blocks-exports.mjs +834 -825
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-422fad84.js → server-entry-25e49efc.js} +9 -1
- package/lib/browser/server-entry-9e5daeda.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-e1b77652.js → accordion-5063d748.js} +1 -1
- package/lib/edge/{accordion-2f83fc75.cjs → accordion-f5e5687b.cjs} +1 -1
- package/lib/edge/{blocks-5165c164.cjs → blocks-d690074d.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-0885e182.js → blocks-f3b2fbd5.js} +2 -2
- package/lib/edge/{button-d878f35c.js → button-0d0430e9.js} +2 -2
- package/lib/edge/{button-d7197e96.cjs → button-7cac2c65.cjs} +1 -1
- package/lib/edge/{columns-b365c86a.js → columns-19b22772.js} +3 -3
- package/lib/edge/{columns-46729516.cjs → columns-87b82f2f.cjs} +1 -1
- package/lib/edge/{content-variants-1594c868.js → content-variants-0f0a71cb.js} +316 -307
- package/lib/edge/content-variants-80fc28d8.cjs +134 -0
- package/lib/edge/{form-9844766c.cjs → form-0b5bd2e3.cjs} +1 -1
- package/lib/edge/{form-b66c20a3.js → form-b8f74b68.js} +3 -3
- package/lib/edge/{get-class-prop-name-0b992cfb.cjs → get-class-prop-name-6ef08339.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-dac81472.js → get-class-prop-name-f3ce6ca4.js} +1 -1
- package/lib/edge/{img-fb35350a.cjs → img-20126279.cjs} +1 -1
- package/lib/edge/{img-c4a772a8.js → img-4becc0d4.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-122768ac.cjs → input-6884ec2d.cjs} +1 -1
- package/lib/edge/{input-57c5b097.js → input-768a5984.js} +1 -1
- package/lib/edge/{personalization-container-a17ae615.cjs → personalization-container-8b32ce9d.cjs} +1 -1
- package/lib/edge/{personalization-container-7e63edce.js → personalization-container-b581d0f6.js} +4 -4
- package/lib/edge/{select-7f750b70.cjs → select-ac5b39d8.cjs} +1 -1
- package/lib/edge/{select-3d4324ef.js → select-e54dc6bc.js} +1 -1
- package/lib/edge/{server-entry-c1673af2.js → server-entry-818ae9c6.js} +9 -1
- package/lib/edge/server-entry-a60fb569.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-05ef18a0.js → slot-05218273.js} +3 -3
- package/lib/edge/{slot-123c0993.cjs → slot-5dba6213.cjs} +1 -1
- package/lib/edge/{symbol-f488bea0.js → symbol-9f247918.js} +2 -2
- package/lib/edge/{symbol-ee314d5a.cjs → symbol-f4b09828.cjs} +1 -1
- package/lib/edge/{tabs-edb82022.cjs → tabs-02960a8c.cjs} +1 -1
- package/lib/edge/{tabs-244d53fa.js → tabs-a0b38dde.js} +3 -3
- package/lib/node/blocks-exports.cjs +30 -30
- package/lib/node/blocks-exports.mjs +673 -664
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-2a2cad4a.cjs +2 -0
- package/lib/node/{server-entry-4df60fc5.js → server-entry-702b1a29.js} +9 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-0edfc727.js → setIvm-0a6b0788.js} +1 -1
- package/lib/node/{setIvm-6405aa63.cjs → setIvm-9cddfc1a.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-6d4dbff9.cjs → should-force-browser-runtime-in-node-d6c9e985.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-7a39b073.js → should-force-browser-runtime-in-node-dfff7f8f.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +2 -0
- package/lib/browser/server-entry-916191b4.cjs +0 -2
- package/lib/edge/content-variants-c6cab1c3.cjs +0 -134
- package/lib/edge/server-entry-77166102.cjs +0 -2
- package/lib/node/server-entry-8ab8c78b.cjs +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ s(R, { children:
|
|
2
|
+
import { TARGET as U, isEditing as A, isBrowser as L, getUserAttributes as Ye, checkIsDefined as G, logger as X, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as H, logFetch as Ve, registerInsertMenu as Xe, setupBrowserForEditing as Ze, createRegisterComponentMessage as et, getCookieSync as tt, _track as pe, fetchOneEntry as Be, createEditorListener as nt, serializeIncludingFunctions as ye, handleABTestingSync as it } from "./server-entry-25e49efc.js";
|
|
3
|
+
import { setClientUserAttributes as Ii } from "./server-entry-25e49efc.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
|
+
import * as at from "react";
|
|
6
|
+
import { createContext as Ne, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as Ae } from "react";
|
|
7
|
+
const ot = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), rt = (e) => typeof e == "string" && ot.has(e.toLowerCase());
|
|
8
|
+
function ue(e) {
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: rt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
switch (
|
|
11
|
+
const j = () => {
|
|
12
|
+
switch (U) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
15
15
|
case "rsc":
|
|
@@ -22,11 +22,11 @@ const H = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function lt(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[j()]: `${e.link ? "" : "builder-button"} ${e.attributes[j()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +37,7 @@ function it(e) {
|
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
return /* @__PURE__ */ s(
|
|
40
|
-
|
|
40
|
+
ue,
|
|
41
41
|
{
|
|
42
42
|
attributes: t(),
|
|
43
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -46,7 +46,7 @@ function it(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const de = Ne({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = Pe({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
65
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
64
|
+
}), We = Ne({ registeredComponents: {} }), $e = (e, t, n) => {
|
|
65
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, st = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,130 +76,130 @@ const se = Pe({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
80
|
-
isEditing:
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer: !
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
79
|
+
}), ct = () => ({
|
|
80
|
+
isEditing: A(),
|
|
81
|
+
isBrowser: L(),
|
|
82
|
+
isServer: !L(),
|
|
83
|
+
getUserAttributes: () => Ye()
|
|
84
|
+
}), ut = (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 De({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
91
91
|
}) {
|
|
92
92
|
return new Proxy(e, {
|
|
93
|
-
get: (i,
|
|
94
|
-
if (t &&
|
|
95
|
-
return t[
|
|
96
|
-
const
|
|
97
|
-
return typeof
|
|
98
|
-
rootState:
|
|
93
|
+
get: (i, a) => {
|
|
94
|
+
if (t && a in t)
|
|
95
|
+
return t[a];
|
|
96
|
+
const o = i[a];
|
|
97
|
+
return typeof o == "object" && o !== null ? De({
|
|
98
|
+
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
101
|
-
i[
|
|
101
|
+
i[a] = r, n(i);
|
|
102
102
|
} : void 0
|
|
103
|
-
}) :
|
|
103
|
+
}) : o;
|
|
104
104
|
},
|
|
105
|
-
set: (i,
|
|
106
|
-
if (t &&
|
|
105
|
+
set: (i, a, o) => {
|
|
106
|
+
if (t && a in t)
|
|
107
107
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
108
|
-
return i[
|
|
108
|
+
return i[a] = o, n == null || n(i), !0;
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const xe = ({
|
|
113
113
|
code: e,
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
116
116
|
event: i,
|
|
117
|
-
localState:
|
|
118
|
-
rootSetState:
|
|
117
|
+
localState: a,
|
|
118
|
+
rootSetState: o,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = st({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: De({
|
|
126
126
|
rootState: r,
|
|
127
|
-
localState:
|
|
128
|
-
rootSetState:
|
|
127
|
+
localState: a,
|
|
128
|
+
rootSetState: o
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
131
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function dt() {
|
|
134
134
|
var e;
|
|
135
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const mt = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
|
-
var
|
|
141
|
-
if (!
|
|
140
|
+
var a;
|
|
141
|
+
if (!dt())
|
|
142
142
|
return !1;
|
|
143
|
-
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (
|
|
144
|
-
return t && n && !i ? (e &&
|
|
145
|
-
},
|
|
143
|
+
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
|
|
144
|
+
return t && n && !i ? (e && X.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
|
+
}, ft = (e) => (L() || mt({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
148
|
-
var t, n, i,
|
|
149
|
-
return ((i = (n = (t =
|
|
147
|
+
}), xe(e)), ht = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, gt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, bt = (e) => {
|
|
148
|
+
var t, n, i, a, o, r;
|
|
149
|
+
return ((i = (n = (t = ht.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = gt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function _({
|
|
152
152
|
code: e,
|
|
153
153
|
context: t,
|
|
154
154
|
localState: n,
|
|
155
155
|
rootState: i,
|
|
156
|
-
rootSetState:
|
|
157
|
-
event:
|
|
156
|
+
rootSetState: a,
|
|
157
|
+
event: o,
|
|
158
158
|
isExpression: r = !0
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = bt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return $e({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
168
|
const d = {
|
|
169
|
-
code:
|
|
169
|
+
code: ut(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: ct(),
|
|
173
173
|
context: t,
|
|
174
|
-
event:
|
|
175
|
-
rootSetState:
|
|
174
|
+
event: o,
|
|
175
|
+
rootSetState: a,
|
|
176
176
|
rootState: i,
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ft(d);
|
|
181
181
|
} catch (c) {
|
|
182
|
-
|
|
182
|
+
X.error("Failed code evaluation: " + c.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
|
+
...yt(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const yt = (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, (
|
|
202
|
-
code:
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => _({
|
|
202
|
+
code: o,
|
|
203
203
|
context: t,
|
|
204
204
|
localState: t.localState,
|
|
205
205
|
rootState: t.rootState,
|
|
@@ -207,74 +207,74 @@ const ht = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function vt(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 Q(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
217
217
|
if (e == null || typeof e != "object") {
|
|
218
|
-
t(e, (
|
|
219
|
-
n !== null && i !== null && (n[i] =
|
|
218
|
+
t(e, (o) => {
|
|
219
|
+
n !== null && i !== null && (n[i] = o);
|
|
220
220
|
});
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
|
|
224
|
-
t(
|
|
223
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
224
|
+
t(o, (d) => {
|
|
225
225
|
e[r] = d;
|
|
226
|
-
}),
|
|
227
|
-
}) : Object.entries(e).forEach(([
|
|
226
|
+
}), Q(o, t, e, r, a);
|
|
227
|
+
}) : Object.entries(e).forEach(([o, r]) => {
|
|
228
228
|
t(r, (d) => {
|
|
229
|
-
e[
|
|
230
|
-
}),
|
|
229
|
+
e[o] = d;
|
|
230
|
+
}), Q(r, t, e, o, a);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Fe(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function xt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
|
-
return
|
|
241
|
-
if (
|
|
240
|
+
return Q(e, (n) => {
|
|
241
|
+
if (Fe(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
248
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
249
|
-
var
|
|
250
|
-
|
|
247
|
+
function St(e, t) {
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Q(e, (n, i) => {
|
|
249
|
+
var a;
|
|
250
|
+
Fe(n) && i((a = n[t]) != null ? a : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function kt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && xt((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 = St(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Oe = (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
|
-
return i.slice(0, -1).reduce((
|
|
261
|
+
return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
262
262
|
};
|
|
263
|
-
function
|
|
263
|
+
function ce(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) => ce(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] = ce(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
277
|
-
const t =
|
|
275
|
+
const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(U), Tt = (e) => {
|
|
276
|
+
if (Ct) {
|
|
277
|
+
const t = me(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
280
280
|
properties: {
|
|
@@ -285,7 +285,7 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t =
|
|
288
|
+
const t = ce(vt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,125 +298,125 @@ const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, wt = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
305
305
|
rootState: i,
|
|
306
|
-
rootSetState:
|
|
306
|
+
rootSetState: a
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const
|
|
310
|
+
const o = Tt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r], d =
|
|
312
|
+
const l = e.bindings[r], d = _({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
|
-
rootSetState:
|
|
316
|
+
rootSetState: a,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
Oe(o, r, d);
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function It({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
327
327
|
rootState: i,
|
|
328
|
-
rootSetState:
|
|
328
|
+
rootSetState: a
|
|
329
329
|
}) {
|
|
330
|
-
let
|
|
331
|
-
return
|
|
332
|
-
block:
|
|
330
|
+
let o = kt(e, i.locale);
|
|
331
|
+
return o = o, wt({
|
|
332
|
+
block: o,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
335
|
-
rootSetState:
|
|
335
|
+
rootSetState: a,
|
|
336
336
|
context: t
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
const
|
|
340
|
-
function
|
|
341
|
-
let i,
|
|
339
|
+
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
+
function Et(e, t, n = {}) {
|
|
341
|
+
let i, a, o, r = null, l = 0;
|
|
342
342
|
const d = function() {
|
|
343
|
-
l = n.leading === !1 ? 0 : Date.now(), r = null,
|
|
343
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
346
|
const c = Date.now();
|
|
347
347
|
!l && n.leading === !1 && (l = c);
|
|
348
348
|
const h = t - (c - l);
|
|
349
|
-
return i = this,
|
|
349
|
+
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function M(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
|
-
const
|
|
356
|
-
if (
|
|
357
|
-
for (const
|
|
358
|
-
Object.prototype.hasOwnProperty.call(
|
|
355
|
+
const a = arguments[i];
|
|
356
|
+
if (a != null)
|
|
357
|
+
for (const o in a)
|
|
358
|
+
Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Rt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
_e(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
Vt(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Le(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Ue(e, t) {
|
|
377
|
+
const n = Pt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
|
|
378
378
|
for (const l of r)
|
|
379
379
|
for (const d of n)
|
|
380
380
|
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Pt(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 _e(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
Le(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 ${
|
|
396
|
+
Ue(e, n), n.style.transition = "none", n.style.transitionDelay = "0", M(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), M(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 Vt(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
Le(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
411
|
-
let i = !1,
|
|
412
|
-
function
|
|
413
|
-
!i && l(n) ? (i = !0,
|
|
414
|
-
|
|
415
|
-
|
|
410
|
+
Ue(e, n);
|
|
411
|
+
let i = !1, a = !1;
|
|
412
|
+
function o() {
|
|
413
|
+
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
414
|
+
M(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
|
+
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !
|
|
417
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, M(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Et(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
@@ -425,52 +425,52 @@ function It(e) {
|
|
|
425
425
|
}
|
|
426
426
|
const d = e.steps[0].styles;
|
|
427
427
|
function c() {
|
|
428
|
-
|
|
428
|
+
M(n.style, d);
|
|
429
429
|
}
|
|
430
430
|
c(), setTimeout(() => {
|
|
431
|
-
n.style.transition = `all ${e.duration}s ${
|
|
431
|
+
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
432
|
}), document.addEventListener("scroll", r, {
|
|
433
433
|
capture: !0,
|
|
434
434
|
passive: !0
|
|
435
|
-
}),
|
|
435
|
+
}), o();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const qe = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
|
-
return `${
|
|
441
|
-
}).filter(
|
|
442
|
-
`),
|
|
440
|
+
return `${ee(n)}: ${i};`;
|
|
441
|
+
}).filter(G), Bt = (e) => qe(e).join(`
|
|
442
|
+
`), q = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Bt(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Nt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const At = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Me(Nt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
468
|
-
switch (
|
|
467
|
+
function Me(e) {
|
|
468
|
+
switch (U) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return qe(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,24 +478,24 @@ function Ue(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
485
485
|
}) => {
|
|
486
|
-
var
|
|
487
|
-
const i = (
|
|
486
|
+
var o;
|
|
487
|
+
const i = (o = e.component) == null ? void 0 : o.name;
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
|
-
const
|
|
491
|
-
if (!
|
|
490
|
+
const a = t[i];
|
|
491
|
+
if (!a || He(a, 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
|
-
return
|
|
498
|
-
},
|
|
497
|
+
return a;
|
|
498
|
+
}, $t = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -505,17 +505,17 @@ const _e = (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
|
|
508
|
+
const a = _({
|
|
509
509
|
code: n.collection,
|
|
510
510
|
localState: t.localState,
|
|
511
511
|
rootState: t.rootState,
|
|
512
512
|
rootSetState: t.rootSetState,
|
|
513
513
|
context: t.context
|
|
514
514
|
});
|
|
515
|
-
if (!Array.isArray(
|
|
515
|
+
if (!Array.isArray(a))
|
|
516
516
|
return;
|
|
517
|
-
const
|
|
518
|
-
return
|
|
517
|
+
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
+
return a.map((d, c) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
@@ -528,27 +528,27 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Dt = (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
|
+
}, Ft = (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(([
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !He(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Ot = (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
|
+
}, Lt = (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
|
-
},
|
|
551
|
+
}, je = {
|
|
552
552
|
xsmall: {
|
|
553
553
|
min: 0,
|
|
554
554
|
default: 160,
|
|
@@ -569,14 +569,14 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
569
569
|
default: 991,
|
|
570
570
|
max: 1200
|
|
571
571
|
}
|
|
572
|
-
},
|
|
573
|
-
const t =
|
|
572
|
+
}, ie = (e, t = je) => `@media (max-width: ${t[e].max}px)`, ze = (e) => {
|
|
573
|
+
const t = me(je);
|
|
574
574
|
if (!e)
|
|
575
575
|
return t;
|
|
576
576
|
const {
|
|
577
577
|
xsmall: n,
|
|
578
578
|
small: i,
|
|
579
|
-
medium:
|
|
579
|
+
medium: a
|
|
580
580
|
} = e;
|
|
581
581
|
if (n) {
|
|
582
582
|
const d = Math.floor(n / 2);
|
|
@@ -586,17 +586,17 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
586
586
|
default: d + 1
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
if (!i || !
|
|
589
|
+
if (!i || !a)
|
|
590
590
|
return t;
|
|
591
|
-
const
|
|
591
|
+
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
592
592
|
t.small = {
|
|
593
593
|
max: i,
|
|
594
|
-
min:
|
|
595
|
-
default:
|
|
594
|
+
min: o,
|
|
595
|
+
default: o + 1
|
|
596
596
|
};
|
|
597
597
|
const r = t.small.max + 1;
|
|
598
598
|
t.medium = {
|
|
599
|
-
max:
|
|
599
|
+
max: a,
|
|
600
600
|
min: r,
|
|
601
601
|
default: r + 1
|
|
602
602
|
};
|
|
@@ -608,7 +608,7 @@ const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function z(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -618,51 +618,51 @@ function j(e) {
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function Ut(e) {
|
|
622
622
|
function t() {
|
|
623
623
|
const i = e.block;
|
|
624
|
-
return
|
|
624
|
+
return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
|
-
var C, P, w,
|
|
628
|
-
const i = e.block,
|
|
629
|
-
((C =
|
|
630
|
-
), l = !!((w = (P =
|
|
627
|
+
var C, P, w, x, m;
|
|
628
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = ze(
|
|
629
|
+
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
+
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
|
|
631
631
|
if (!u)
|
|
632
632
|
return "";
|
|
633
|
-
const v = d ?
|
|
633
|
+
const v = d ? q({
|
|
634
634
|
className: u,
|
|
635
635
|
styles: d
|
|
636
|
-
}) : "", f = c ?
|
|
636
|
+
}) : "", f = c ? q({
|
|
637
637
|
className: u,
|
|
638
638
|
styles: c,
|
|
639
|
-
mediaQuery:
|
|
639
|
+
mediaQuery: ie(
|
|
640
640
|
"medium",
|
|
641
641
|
r
|
|
642
642
|
)
|
|
643
|
-
}) : "", g = h ?
|
|
643
|
+
}) : "", g = h ? q({
|
|
644
644
|
className: u,
|
|
645
645
|
styles: h,
|
|
646
|
-
mediaQuery:
|
|
646
|
+
mediaQuery: ie(
|
|
647
647
|
"small",
|
|
648
648
|
r
|
|
649
649
|
)
|
|
650
|
-
}) : "",
|
|
650
|
+
}) : "", S = y && l ? q({
|
|
651
651
|
className: u,
|
|
652
652
|
styles: y,
|
|
653
|
-
mediaQuery:
|
|
653
|
+
mediaQuery: ie(
|
|
654
654
|
"xsmall",
|
|
655
655
|
r
|
|
656
656
|
)
|
|
657
657
|
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
|
-
let
|
|
658
|
+
let k = "";
|
|
659
659
|
if (b) {
|
|
660
|
-
const p = ((m = (
|
|
661
|
-
|
|
660
|
+
const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
k = q({
|
|
662
662
|
className: `${u}:hover`,
|
|
663
663
|
styles: {
|
|
664
664
|
...p,
|
|
665
|
-
transition: `all ${b.duration}s ${
|
|
665
|
+
transition: `all ${b.duration}s ${ee(
|
|
666
666
|
b.easing
|
|
667
667
|
)}`,
|
|
668
668
|
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
@@ -673,12 +673,12 @@ function $t(e) {
|
|
|
673
673
|
v,
|
|
674
674
|
f,
|
|
675
675
|
g,
|
|
676
|
-
|
|
677
|
-
|
|
676
|
+
S,
|
|
677
|
+
k
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
|
|
681
|
+
z,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -686,10 +686,10 @@ function $t(e) {
|
|
|
686
686
|
}
|
|
687
687
|
) }) : null });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function _t(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => _({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -698,16 +698,16 @@ const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
|
|
|
698
698
|
event: n,
|
|
699
699
|
isExpression: !1
|
|
700
700
|
});
|
|
701
|
-
function
|
|
701
|
+
function Ke(e) {
|
|
702
702
|
var i;
|
|
703
703
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
704
|
-
for (const
|
|
705
|
-
if (!n.hasOwnProperty(
|
|
704
|
+
for (const a in n) {
|
|
705
|
+
if (!n.hasOwnProperty(a))
|
|
706
706
|
continue;
|
|
707
|
-
const
|
|
708
|
-
let r =
|
|
707
|
+
const o = n[a];
|
|
708
|
+
let r = qt(a);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
|
-
switch (
|
|
710
|
+
switch (U) {
|
|
711
711
|
case "vue":
|
|
712
712
|
r = r.replace("v-on:", "");
|
|
713
713
|
break;
|
|
@@ -715,49 +715,49 @@ function He(e) {
|
|
|
715
715
|
r = r.replace("on:", "");
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
t[r] =
|
|
718
|
+
t[r] = Mt(o, e);
|
|
719
719
|
}
|
|
720
720
|
return t;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Ht({
|
|
723
723
|
properties: e
|
|
724
724
|
}) {
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const jt = (e) => ({
|
|
728
728
|
href: e.href
|
|
729
729
|
});
|
|
730
|
-
function
|
|
730
|
+
function fe({
|
|
731
731
|
block: e,
|
|
732
732
|
context: t
|
|
733
733
|
}) {
|
|
734
734
|
var i;
|
|
735
735
|
const n = {
|
|
736
|
-
...
|
|
736
|
+
...jt(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: At({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Ht({
|
|
746
746
|
properties: n,
|
|
747
747
|
context: t,
|
|
748
748
|
block: e
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function zt(e) {
|
|
752
752
|
return /* @__PURE__ */ s(
|
|
753
|
-
|
|
753
|
+
ue,
|
|
754
754
|
{
|
|
755
755
|
TagName: e.Wrapper,
|
|
756
|
-
attributes:
|
|
756
|
+
attributes: fe({
|
|
757
757
|
block: e.block,
|
|
758
758
|
context: e.context
|
|
759
759
|
}),
|
|
760
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: Ke({
|
|
761
761
|
block: e.block,
|
|
762
762
|
rootState: e.context.rootState,
|
|
763
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -769,18 +769,18 @@ function qt(e) {
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
return
|
|
772
|
+
function Kt(e) {
|
|
773
|
+
return V(() => {
|
|
774
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Jt(e) {
|
|
777
777
|
function t() {
|
|
778
778
|
return e.includeBlockProps ? {
|
|
779
|
-
...
|
|
779
|
+
...fe({
|
|
780
780
|
block: e.block,
|
|
781
781
|
context: e.context
|
|
782
782
|
}),
|
|
783
|
-
...
|
|
783
|
+
...Ke({
|
|
784
784
|
block: e.block,
|
|
785
785
|
rootState: e.context.rootState,
|
|
786
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -790,7 +790,7 @@ function Ht(e) {
|
|
|
790
790
|
} : {};
|
|
791
791
|
}
|
|
792
792
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
-
|
|
793
|
+
Kt,
|
|
794
794
|
{
|
|
795
795
|
load: e.Wrapper.load,
|
|
796
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -800,13 +800,13 @@ function Ht(e) {
|
|
|
800
800
|
}
|
|
801
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const Gt = ({
|
|
804
804
|
componentOptions: e,
|
|
805
805
|
builderBlock: t,
|
|
806
806
|
context: n,
|
|
807
807
|
componentRef: i,
|
|
808
|
-
includeBlockProps:
|
|
809
|
-
isInteractive:
|
|
808
|
+
includeBlockProps: a,
|
|
809
|
+
isInteractive: o,
|
|
810
810
|
contextValue: r
|
|
811
811
|
}) => {
|
|
812
812
|
const l = {
|
|
@@ -815,30 +815,30 @@ const jt = ({
|
|
|
815
815
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
816
816
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
817
817
|
*/
|
|
818
|
-
...
|
|
819
|
-
attributes:
|
|
818
|
+
...a ? {
|
|
819
|
+
attributes: fe({
|
|
820
820
|
block: t,
|
|
821
821
|
context: r
|
|
822
822
|
})
|
|
823
823
|
} : {}
|
|
824
824
|
};
|
|
825
|
-
return
|
|
825
|
+
return o ? {
|
|
826
826
|
Wrapper: i,
|
|
827
827
|
block: t,
|
|
828
828
|
context: n,
|
|
829
829
|
wrapperProps: e,
|
|
830
|
-
includeBlockProps:
|
|
830
|
+
includeBlockProps: a
|
|
831
831
|
} : l;
|
|
832
832
|
};
|
|
833
|
-
function
|
|
833
|
+
function Se(e) {
|
|
834
834
|
var i;
|
|
835
|
-
const [t, n] =
|
|
836
|
-
() => e.isInteractive ?
|
|
835
|
+
const [t, n] = I(
|
|
836
|
+
() => e.isInteractive ? Jt : e.componentRef
|
|
837
837
|
);
|
|
838
838
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
839
839
|
t,
|
|
840
840
|
{
|
|
841
|
-
...
|
|
841
|
+
...Gt({
|
|
842
842
|
componentOptions: e.componentOptions,
|
|
843
843
|
builderBlock: e.builderBlock,
|
|
844
844
|
context: e.context,
|
|
@@ -848,23 +848,23 @@ function ye(e) {
|
|
|
848
848
|
isInteractive: e.isInteractive,
|
|
849
849
|
contextValue: e.context
|
|
850
850
|
}),
|
|
851
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
852
|
-
|
|
851
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
852
|
+
te,
|
|
853
853
|
{
|
|
854
|
-
block:
|
|
854
|
+
block: a,
|
|
855
855
|
context: e.context,
|
|
856
856
|
registeredComponents: e.registeredComponents,
|
|
857
857
|
linkComponent: e.linkComponent
|
|
858
858
|
},
|
|
859
|
-
|
|
859
|
+
a.id
|
|
860
860
|
))
|
|
861
861
|
}
|
|
862
862
|
) }) : null });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
865
|
-
const [t, n] =
|
|
866
|
-
return /* @__PURE__ */ s(
|
|
867
|
-
|
|
864
|
+
function ke(e) {
|
|
865
|
+
const [t, n] = I(() => e.repeatContext);
|
|
866
|
+
return /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
867
|
+
te,
|
|
868
868
|
{
|
|
869
869
|
block: e.block,
|
|
870
870
|
context: t,
|
|
@@ -873,23 +873,23 @@ function ve(e) {
|
|
|
873
873
|
}
|
|
874
874
|
) });
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function te(e) {
|
|
877
877
|
var h, y, u, v;
|
|
878
878
|
function t() {
|
|
879
|
-
return
|
|
879
|
+
return $t({
|
|
880
880
|
block: e.block,
|
|
881
881
|
context: e.context
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
const [n, i] =
|
|
884
|
+
const [n, i] = I(() => ({
|
|
885
885
|
value: null,
|
|
886
886
|
update: !1
|
|
887
887
|
}));
|
|
888
|
-
function
|
|
888
|
+
function a() {
|
|
889
889
|
var g;
|
|
890
|
-
if (n.value && !n.update && !
|
|
890
|
+
if (n.value && !n.update && !Z())
|
|
891
891
|
return n.value;
|
|
892
|
-
const f = (g = e.block.repeat) != null && g.collection ? e.block :
|
|
892
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : It({
|
|
893
893
|
block: e.block,
|
|
894
894
|
localState: e.context.localState,
|
|
895
895
|
rootState: e.context.rootState,
|
|
@@ -898,40 +898,40 @@ function Z(e) {
|
|
|
898
898
|
});
|
|
899
899
|
return n.value = f, n.update = !1, f;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
902
|
-
return
|
|
903
|
-
block:
|
|
901
|
+
function o() {
|
|
902
|
+
return Wt({
|
|
903
|
+
block: a(),
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
model: e.context.model
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
function r() {
|
|
909
909
|
var g;
|
|
910
|
-
return e.block.tagName === "a" || ((g =
|
|
910
|
+
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
911
911
|
}
|
|
912
912
|
function l() {
|
|
913
|
-
var
|
|
914
|
-
if ((
|
|
913
|
+
var S, b;
|
|
914
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
915
915
|
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
916
|
-
const f = "hide" in
|
|
917
|
-
return ("show" in
|
|
916
|
+
const f = "hide" in a() ? a().hide : !1;
|
|
917
|
+
return ("show" in a() ? a().show : !0) && !f;
|
|
918
918
|
}
|
|
919
919
|
function d() {
|
|
920
|
-
var g,
|
|
921
|
-
return !((g =
|
|
920
|
+
var g, S;
|
|
921
|
+
return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
922
922
|
}
|
|
923
923
|
function c() {
|
|
924
|
-
var f, g,
|
|
924
|
+
var f, g, S, b;
|
|
925
925
|
return {
|
|
926
|
-
blockChildren: (f =
|
|
927
|
-
componentRef: (g =
|
|
926
|
+
blockChildren: (f = a().children) != null ? f : [],
|
|
927
|
+
componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
|
|
928
928
|
componentOptions: {
|
|
929
|
-
...
|
|
930
|
-
...
|
|
931
|
-
...
|
|
932
|
-
...
|
|
933
|
-
...
|
|
934
|
-
|
|
929
|
+
...pt(a(), e.context),
|
|
930
|
+
...Ot(o(), a()),
|
|
931
|
+
...Lt(o(), e.context),
|
|
932
|
+
...Dt(o(), e.linkComponent),
|
|
933
|
+
...Ft(
|
|
934
|
+
o(),
|
|
935
935
|
e.registeredComponents,
|
|
936
936
|
e.context.model
|
|
937
937
|
)
|
|
@@ -939,25 +939,25 @@ function Z(e) {
|
|
|
939
939
|
context: e.context,
|
|
940
940
|
linkComponent: e.linkComponent,
|
|
941
941
|
registeredComponents: e.registeredComponents,
|
|
942
|
-
builderBlock:
|
|
943
|
-
includeBlockProps: ((
|
|
944
|
-
isInteractive: !((b =
|
|
942
|
+
builderBlock: a(),
|
|
943
|
+
includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
|
|
944
|
+
isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && U === "rsc")
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
return
|
|
948
|
-
const f =
|
|
949
|
-
g && f &&
|
|
950
|
-
g.map((
|
|
951
|
-
...
|
|
947
|
+
return V(() => {
|
|
948
|
+
const f = a().id, g = a().animations;
|
|
949
|
+
g && f && Rt(
|
|
950
|
+
g.map((S) => ({
|
|
951
|
+
...S,
|
|
952
952
|
elementId: f
|
|
953
953
|
}))
|
|
954
954
|
);
|
|
955
|
-
}, []),
|
|
955
|
+
}, []), V(() => {
|
|
956
956
|
n.update = !0;
|
|
957
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */ s(
|
|
959
|
-
(h =
|
|
960
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
|
|
959
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
960
|
+
ke,
|
|
961
961
|
{
|
|
962
962
|
repeatContext: f.context,
|
|
963
963
|
block: f.block,
|
|
@@ -966,7 +966,7 @@ function Z(e) {
|
|
|
966
966
|
},
|
|
967
967
|
g
|
|
968
968
|
)) }) : /* @__PURE__ */ s(
|
|
969
|
-
|
|
969
|
+
Se,
|
|
970
970
|
{
|
|
971
971
|
componentRef: c().componentRef,
|
|
972
972
|
componentOptions: c().componentOptions,
|
|
@@ -979,7 +979,7 @@ function Z(e) {
|
|
|
979
979
|
isInteractive: c().isInteractive
|
|
980
980
|
}
|
|
981
981
|
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
982
|
-
|
|
982
|
+
ke,
|
|
983
983
|
{
|
|
984
984
|
repeatContext: f.context,
|
|
985
985
|
block: f.block,
|
|
@@ -987,15 +987,15 @@ function Z(e) {
|
|
|
987
987
|
linkComponent: e.linkComponent
|
|
988
988
|
},
|
|
989
989
|
g
|
|
990
|
-
)) }) : /* @__PURE__ */
|
|
991
|
-
|
|
990
|
+
)) }) : /* @__PURE__ */ B(
|
|
991
|
+
zt,
|
|
992
992
|
{
|
|
993
993
|
Wrapper: r(),
|
|
994
|
-
block:
|
|
994
|
+
block: a(),
|
|
995
995
|
context: e.context,
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ s(
|
|
998
|
-
|
|
998
|
+
Se,
|
|
999
999
|
{
|
|
1000
1000
|
componentRef: c().componentRef,
|
|
1001
1001
|
componentOptions: c().componentOptions,
|
|
@@ -1009,7 +1009,7 @@ function Z(e) {
|
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
1011
|
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
1012
|
-
|
|
1012
|
+
te,
|
|
1013
1013
|
{
|
|
1014
1014
|
block: f,
|
|
1015
1015
|
registeredComponents: e.registeredComponents,
|
|
@@ -1023,8 +1023,8 @@ function Z(e) {
|
|
|
1023
1023
|
) })
|
|
1024
1024
|
] }) : null });
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const t =
|
|
1026
|
+
function Qt(e) {
|
|
1027
|
+
const t = O(null);
|
|
1028
1028
|
function n() {
|
|
1029
1029
|
var r;
|
|
1030
1030
|
return [
|
|
@@ -1039,9 +1039,9 @@ function zt(e) {
|
|
|
1039
1039
|
const r = "this.", l = "component.options.";
|
|
1040
1040
|
return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function a() {
|
|
1043
1043
|
var r, l;
|
|
1044
|
-
|
|
1044
|
+
A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1045
1045
|
{
|
|
1046
1046
|
type: "builder.clickEmptyBlocks",
|
|
1047
1047
|
data: {
|
|
@@ -1052,9 +1052,9 @@ function zt(e) {
|
|
|
1052
1052
|
"*"
|
|
1053
1053
|
));
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function o() {
|
|
1056
1056
|
var r, l;
|
|
1057
|
-
|
|
1057
|
+
A() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1058
1058
|
{
|
|
1059
1059
|
type: "builder.hoverEmptyBlocks",
|
|
1060
1060
|
data: {
|
|
@@ -1065,8 +1065,8 @@ function zt(e) {
|
|
|
1065
1065
|
"*"
|
|
1066
1066
|
));
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1069
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return V(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
1070
1070
|
/* @__PURE__ */ s(
|
|
1071
1071
|
e.BlocksWrapper,
|
|
1072
1072
|
{
|
|
@@ -1075,9 +1075,9 @@ function zt(e) {
|
|
|
1075
1075
|
"builder-path": i(),
|
|
1076
1076
|
"builder-parent-id": e.parent,
|
|
1077
1077
|
style: e.styleProp,
|
|
1078
|
-
onClick: (r) =>
|
|
1079
|
-
onMouseEnter: (r) =>
|
|
1080
|
-
onKeyPress: (r) =>
|
|
1078
|
+
onClick: (r) => a(),
|
|
1079
|
+
onMouseEnter: (r) => o(),
|
|
1080
|
+
onKeyPress: (r) => a(),
|
|
1081
1081
|
...e.BlocksWrapperProps,
|
|
1082
1082
|
children: e.children
|
|
1083
1083
|
}
|
|
@@ -1090,10 +1090,10 @@ function zt(e) {
|
|
|
1090
1090
|
] });
|
|
1091
1091
|
}
|
|
1092
1092
|
function D(e) {
|
|
1093
|
-
var i,
|
|
1094
|
-
const t =
|
|
1093
|
+
var i, a, o;
|
|
1094
|
+
const t = ve(de), n = ve(We);
|
|
1095
1095
|
return /* @__PURE__ */ s(
|
|
1096
|
-
|
|
1096
|
+
Qt,
|
|
1097
1097
|
{
|
|
1098
1098
|
blocks: e.blocks,
|
|
1099
1099
|
parent: e.parent,
|
|
@@ -1101,9 +1101,9 @@ function D(e) {
|
|
|
1101
1101
|
styleProp: e.styleProp,
|
|
1102
1102
|
classNameProp: e.className,
|
|
1103
1103
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1104
|
-
BlocksWrapperProps: ((
|
|
1105
|
-
children: e.blocks ? /* @__PURE__ */ s(R, { children: (
|
|
1106
|
-
|
|
1104
|
+
BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1105
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
|
|
1106
|
+
te,
|
|
1107
1107
|
{
|
|
1108
1108
|
block: r,
|
|
1109
1109
|
linkComponent: e.linkComponent,
|
|
@@ -1115,9 +1115,9 @@ function D(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
var g,
|
|
1118
|
+
const Yt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Xt(e) {
|
|
1120
|
+
var g, S;
|
|
1121
1121
|
function t() {
|
|
1122
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1123
1123
|
}
|
|
@@ -1127,28 +1127,28 @@ function Jt(e) {
|
|
|
1127
1127
|
function i() {
|
|
1128
1128
|
return e.stackColumnsAt || "tablet";
|
|
1129
1129
|
}
|
|
1130
|
-
function
|
|
1130
|
+
function a(b) {
|
|
1131
1131
|
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1134
|
-
var
|
|
1135
|
-
return ((
|
|
1133
|
+
function o(b) {
|
|
1134
|
+
var k;
|
|
1135
|
+
return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1136
1136
|
}
|
|
1137
1137
|
function r(b) {
|
|
1138
|
-
const
|
|
1139
|
-
return `calc(${
|
|
1138
|
+
const k = o(b), C = t() * (n().length - 1) * (k / 100);
|
|
1139
|
+
return `calc(${k}% - ${C}px)`;
|
|
1140
1140
|
}
|
|
1141
1141
|
function l({
|
|
1142
1142
|
stackedStyle: b,
|
|
1143
|
-
desktopStyle:
|
|
1143
|
+
desktopStyle: k
|
|
1144
1144
|
}) {
|
|
1145
|
-
return i() === "tablet" ? b :
|
|
1145
|
+
return i() === "tablet" ? b : k;
|
|
1146
1146
|
}
|
|
1147
1147
|
function d({
|
|
1148
1148
|
stackedStyle: b,
|
|
1149
|
-
desktopStyle:
|
|
1149
|
+
desktopStyle: k
|
|
1150
1150
|
}) {
|
|
1151
|
-
return i() === "never" ?
|
|
1151
|
+
return i() === "never" ? k : b;
|
|
1152
1152
|
}
|
|
1153
1153
|
function c() {
|
|
1154
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1163,7 +1163,7 @@ function Jt(e) {
|
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
1165
|
function y(b) {
|
|
1166
|
-
const
|
|
1166
|
+
const k = b === 0 ? 0 : t(), C = r(b), P = `${k}px`, w = "100%", x = 0;
|
|
1167
1167
|
return {
|
|
1168
1168
|
...{
|
|
1169
1169
|
display: "flex",
|
|
@@ -1177,7 +1177,7 @@ function Jt(e) {
|
|
|
1177
1177
|
desktopStyle: C
|
|
1178
1178
|
}),
|
|
1179
1179
|
"--column-margin-left-mobile": d({
|
|
1180
|
-
stackedStyle:
|
|
1180
|
+
stackedStyle: x,
|
|
1181
1181
|
desktopStyle: P
|
|
1182
1182
|
}),
|
|
1183
1183
|
"--column-width-tablet": l({
|
|
@@ -1185,14 +1185,14 @@ function Jt(e) {
|
|
|
1185
1185
|
desktopStyle: C
|
|
1186
1186
|
}),
|
|
1187
1187
|
"--column-margin-left-tablet": l({
|
|
1188
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: x,
|
|
1189
1189
|
desktopStyle: P
|
|
1190
1190
|
})
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
1193
|
function u(b) {
|
|
1194
1194
|
var C, P;
|
|
1195
|
-
return
|
|
1195
|
+
return ze(
|
|
1196
1196
|
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
1197
|
)[b].max;
|
|
1198
1198
|
}
|
|
@@ -1224,40 +1224,40 @@ function Jt(e) {
|
|
|
1224
1224
|
},
|
|
1225
1225
|
`;
|
|
1226
1226
|
}
|
|
1227
|
-
function f(b,
|
|
1227
|
+
function f(b, k) {
|
|
1228
1228
|
return {
|
|
1229
1229
|
...b.link ? {
|
|
1230
1230
|
href: b.link
|
|
1231
1231
|
} : {},
|
|
1232
|
-
[
|
|
1233
|
-
style:
|
|
1232
|
+
[j()]: "builder-column",
|
|
1233
|
+
style: Me(y(k))
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ B(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className:
|
|
1240
|
+
className: Yt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1241
1241
|
style: h(),
|
|
1242
1242
|
children: [
|
|
1243
1243
|
/* @__PURE__ */ s(
|
|
1244
|
-
|
|
1244
|
+
z,
|
|
1245
1245
|
{
|
|
1246
1246
|
id: "builderio-columns",
|
|
1247
1247
|
styles: v(),
|
|
1248
1248
|
nonce: e.builderContext.nonce
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
(
|
|
1252
|
-
|
|
1251
|
+
(S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
|
|
1252
|
+
ue,
|
|
1253
1253
|
{
|
|
1254
|
-
TagName:
|
|
1254
|
+
TagName: a(b),
|
|
1255
1255
|
actionAttributes: {},
|
|
1256
|
-
attributes: f(b,
|
|
1256
|
+
attributes: f(b, k),
|
|
1257
1257
|
children: /* @__PURE__ */ s(
|
|
1258
1258
|
D,
|
|
1259
1259
|
{
|
|
1260
|
-
path: `columns.${
|
|
1260
|
+
path: `columns.${k}.blocks`,
|
|
1261
1261
|
parent: e.builderBlock.id,
|
|
1262
1262
|
context: e.builderContext,
|
|
1263
1263
|
registeredComponents: e.builderComponents,
|
|
@@ -1269,7 +1269,7 @@ function Jt(e) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
)
|
|
1271
1271
|
},
|
|
1272
|
-
|
|
1272
|
+
k
|
|
1273
1273
|
))
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
@@ -1280,41 +1280,41 @@ function Jt(e) {
|
|
|
1280
1280
|
}` })
|
|
1281
1281
|
] });
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Zt(e) {
|
|
1284
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function Ce(e) {
|
|
1287
1287
|
return e.replace(/http(s)?:/, "");
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1291
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1289
|
+
function en(e = "", t, n) {
|
|
1290
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1291
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function tn(e, t) {
|
|
1294
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1295
1295
|
return e;
|
|
1296
1296
|
if (t === "master")
|
|
1297
|
-
return
|
|
1297
|
+
return Ce(e);
|
|
1298
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1299
1299
|
if (n) {
|
|
1300
|
-
const i = e.split(n[0]),
|
|
1301
|
-
return
|
|
1300
|
+
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1301
|
+
return Ce(`${i[0]}_${o}${a}`);
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function ae(e) {
|
|
1306
1306
|
if (!e)
|
|
1307
1307
|
return e;
|
|
1308
1308
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1309
1309
|
if (e.match(/builder\.io/)) {
|
|
1310
1310
|
let n = e;
|
|
1311
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1312
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${en(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1313
1313
|
}
|
|
1314
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var
|
|
1316
|
+
function nn(e) {
|
|
1317
|
+
var a, o, r, l, d, c;
|
|
1318
1318
|
function t() {
|
|
1319
1319
|
var u;
|
|
1320
1320
|
const y = e.image || e.src;
|
|
@@ -1325,10 +1325,10 @@ function Xt(e) {
|
|
|
1325
1325
|
if (!e.noWebp) {
|
|
1326
1326
|
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1327
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1328
|
-
return console.debug("Removed given srcset"),
|
|
1328
|
+
return console.debug("Removed given srcset"), ae(y);
|
|
1329
1329
|
} else if (e.image && !e.srcset)
|
|
1330
|
-
return
|
|
1331
|
-
return
|
|
1330
|
+
return ae(y);
|
|
1331
|
+
return ae(y);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function n() {
|
|
@@ -1345,9 +1345,9 @@ function Xt(e) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
return e.aspectRatio ? h : void 0;
|
|
1347
1347
|
}
|
|
1348
|
-
return /* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ B(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ B("picture", { children: [
|
|
1351
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1352
1352
|
/* @__PURE__ */ s(
|
|
1353
1353
|
"img",
|
|
@@ -1368,7 +1368,7 @@ function Xt(e) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
)
|
|
1370
1370
|
] }),
|
|
1371
|
-
e.aspectRatio && !((
|
|
1371
|
+
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1372
1372
|
"div",
|
|
1373
1373
|
{
|
|
1374
1374
|
className: "builder-image-sizer div-9dac2184",
|
|
@@ -1399,7 +1399,7 @@ function Xt(e) {
|
|
|
1399
1399
|
}` })
|
|
1400
1400
|
] });
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function an(e) {
|
|
1403
1403
|
return /* @__PURE__ */ s(
|
|
1404
1404
|
"section",
|
|
1405
1405
|
{
|
|
@@ -1420,7 +1420,7 @@ function Zt(e) {
|
|
|
1420
1420
|
}
|
|
1421
1421
|
);
|
|
1422
1422
|
}
|
|
1423
|
-
const
|
|
1423
|
+
const oe = {
|
|
1424
1424
|
"@type": "@builder.io/sdk:Element",
|
|
1425
1425
|
layerName: "Accordion item title",
|
|
1426
1426
|
responsiveStyles: {
|
|
@@ -1449,7 +1449,7 @@ const ne = {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
}]
|
|
1452
|
-
},
|
|
1452
|
+
}, re = {
|
|
1453
1453
|
"@type": "@builder.io/sdk:Element",
|
|
1454
1454
|
layerName: "Accordion item detail",
|
|
1455
1455
|
responsiveStyles: {
|
|
@@ -1480,7 +1480,7 @@ const ne = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}]
|
|
1483
|
-
},
|
|
1483
|
+
}, on = {
|
|
1484
1484
|
name: "Builder:Accordion",
|
|
1485
1485
|
canHaveChildren: !0,
|
|
1486
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1497,19 +1497,19 @@ const ne = {
|
|
|
1497
1497
|
name: "title",
|
|
1498
1498
|
type: "uiBlocks",
|
|
1499
1499
|
hideFromUI: !0,
|
|
1500
|
-
defaultValue: [
|
|
1500
|
+
defaultValue: [oe]
|
|
1501
1501
|
}, {
|
|
1502
1502
|
name: "detail",
|
|
1503
1503
|
type: "uiBlocks",
|
|
1504
1504
|
hideFromUI: !0,
|
|
1505
|
-
defaultValue: [
|
|
1505
|
+
defaultValue: [re]
|
|
1506
1506
|
}],
|
|
1507
1507
|
defaultValue: [{
|
|
1508
|
-
title: [
|
|
1509
|
-
detail: [
|
|
1508
|
+
title: [oe],
|
|
1509
|
+
detail: [re]
|
|
1510
1510
|
}, {
|
|
1511
|
-
title: [
|
|
1512
|
-
detail: [
|
|
1511
|
+
title: [oe],
|
|
1512
|
+
detail: [re]
|
|
1513
1513
|
}],
|
|
1514
1514
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1515
1515
|
}, {
|
|
@@ -1544,14 +1544,14 @@ const ne = {
|
|
|
1544
1544
|
builderComponents: !0,
|
|
1545
1545
|
builderLinkComponent: !0
|
|
1546
1546
|
}
|
|
1547
|
-
},
|
|
1548
|
-
function
|
|
1547
|
+
}, Te = (e) => e.toString();
|
|
1548
|
+
function rn(e) {
|
|
1549
1549
|
var y;
|
|
1550
|
-
const [t, n] =
|
|
1550
|
+
const [t, n] = I(() => []);
|
|
1551
1551
|
function i() {
|
|
1552
1552
|
return !!(e.grid || e.oneAtATime);
|
|
1553
1553
|
}
|
|
1554
|
-
function
|
|
1554
|
+
function a() {
|
|
1555
1555
|
return {
|
|
1556
1556
|
display: "flex",
|
|
1557
1557
|
alignItems: "stretch",
|
|
@@ -1563,7 +1563,7 @@ function tn(e) {
|
|
|
1563
1563
|
}
|
|
1564
1564
|
};
|
|
1565
1565
|
}
|
|
1566
|
-
function
|
|
1566
|
+
function o() {
|
|
1567
1567
|
const v = {
|
|
1568
1568
|
...{
|
|
1569
1569
|
display: "flex",
|
|
@@ -1586,22 +1586,22 @@ function tn(e) {
|
|
|
1586
1586
|
let u = null;
|
|
1587
1587
|
if (e.grid && t.length && document) {
|
|
1588
1588
|
const f = t[0];
|
|
1589
|
-
let
|
|
1589
|
+
let S = document.querySelector(
|
|
1590
1590
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1591
1591
|
);
|
|
1592
|
-
if (u = f,
|
|
1593
|
-
let b =
|
|
1594
|
-
for (;
|
|
1595
|
-
if (
|
|
1596
|
-
if (
|
|
1592
|
+
if (u = f, S) {
|
|
1593
|
+
let b = S.getBoundingClientRect();
|
|
1594
|
+
for (; S = S && S.nextElementSibling; )
|
|
1595
|
+
if (S) {
|
|
1596
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1597
1597
|
continue;
|
|
1598
|
-
const
|
|
1599
|
-
if (
|
|
1598
|
+
const k = S.getBoundingClientRect();
|
|
1599
|
+
if (k.left > b.left) {
|
|
1600
1600
|
const C = parseInt(
|
|
1601
|
-
|
|
1601
|
+
S.getAttribute("data-index") || "",
|
|
1602
1602
|
10
|
|
1603
1603
|
);
|
|
1604
|
-
isNaN(C) || (b =
|
|
1604
|
+
isNaN(C) || (b = k, u = C);
|
|
1605
1605
|
} else
|
|
1606
1606
|
break;
|
|
1607
1607
|
}
|
|
@@ -1623,16 +1623,16 @@ function tn(e) {
|
|
|
1623
1623
|
function h(u) {
|
|
1624
1624
|
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1625
1625
|
}
|
|
1626
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ B(at.Fragment, { children: [
|
|
1627
1627
|
/* @__PURE__ */ s(
|
|
1628
1628
|
"div",
|
|
1629
1629
|
{
|
|
1630
1630
|
className: r(v),
|
|
1631
1631
|
style: {
|
|
1632
|
-
...
|
|
1632
|
+
...o(),
|
|
1633
1633
|
...e.grid && {
|
|
1634
1634
|
width: e.gridRowWidth,
|
|
1635
|
-
order: d() !== null ?
|
|
1635
|
+
order: d() !== null ? Te(v) : Te(v + 1)
|
|
1636
1636
|
}
|
|
1637
1637
|
},
|
|
1638
1638
|
"data-index": v,
|
|
@@ -1670,7 +1670,7 @@ function tn(e) {
|
|
|
1670
1670
|
) : null
|
|
1671
1671
|
] }, v)) });
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const ln = {
|
|
1674
1674
|
name: "Core:Button",
|
|
1675
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1676
1676
|
defaultStyles: {
|
|
@@ -1706,7 +1706,7 @@ const nn = {
|
|
|
1706
1706
|
shouldReceiveBuilderProps: {
|
|
1707
1707
|
builderLinkComponent: !0
|
|
1708
1708
|
}
|
|
1709
|
-
},
|
|
1709
|
+
}, sn = {
|
|
1710
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1711
1711
|
name: "Columns",
|
|
1712
1712
|
isRSC: !0,
|
|
@@ -1885,7 +1885,7 @@ const nn = {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
const n = e.get("columns");
|
|
1888
|
-
Array.isArray(n) && n.find((
|
|
1888
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1889
1889
|
}
|
|
1890
1890
|
}, {
|
|
1891
1891
|
name: "space",
|
|
@@ -1913,13 +1913,13 @@ const nn = {
|
|
|
1913
1913
|
builderComponents: !0,
|
|
1914
1914
|
builderLinkComponent: !0
|
|
1915
1915
|
}
|
|
1916
|
-
},
|
|
1916
|
+
}, cn = {
|
|
1917
1917
|
name: "Fragment",
|
|
1918
1918
|
static: !0,
|
|
1919
1919
|
hidden: !0,
|
|
1920
1920
|
canHaveChildren: !0,
|
|
1921
1921
|
noWrap: !0
|
|
1922
|
-
},
|
|
1922
|
+
}, he = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], un = ["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"], dn = {
|
|
1923
1923
|
name: "Image",
|
|
1924
1924
|
static: !0,
|
|
1925
1925
|
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",
|
|
@@ -1934,7 +1934,7 @@ const nn = {
|
|
|
1934
1934
|
name: "image",
|
|
1935
1935
|
type: "file",
|
|
1936
1936
|
bubble: !0,
|
|
1937
|
-
allowedFileTypes:
|
|
1937
|
+
allowedFileTypes: he,
|
|
1938
1938
|
required: !0,
|
|
1939
1939
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1940
1940
|
onChange: (e) => {
|
|
@@ -1955,13 +1955,13 @@ const nn = {
|
|
|
1955
1955
|
function i(r) {
|
|
1956
1956
|
return Math.round(r * 1e3) / 1e3;
|
|
1957
1957
|
}
|
|
1958
|
-
const
|
|
1959
|
-
if (fetch(
|
|
1958
|
+
const a = e.get("image"), o = e.get("aspectRatio");
|
|
1959
|
+
if (fetch(a).then((r) => r.blob()).then((r) => {
|
|
1960
1960
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1961
|
-
}),
|
|
1962
|
-
return n(
|
|
1961
|
+
}), a && (!o || o === 0.7041))
|
|
1962
|
+
return n(a).then((r) => {
|
|
1963
1963
|
const l = e.get("aspectRatio");
|
|
1964
|
-
e.get("image") ===
|
|
1964
|
+
e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1965
1965
|
});
|
|
1966
1966
|
}
|
|
1967
1967
|
}, {
|
|
@@ -2027,7 +2027,7 @@ const nn = {
|
|
|
2027
2027
|
shouldReceiveBuilderProps: {
|
|
2028
2028
|
builderBlock: !0
|
|
2029
2029
|
}
|
|
2030
|
-
},
|
|
2030
|
+
}, mn = {
|
|
2031
2031
|
name: "PersonalizationContainer",
|
|
2032
2032
|
shouldReceiveBuilderProps: {
|
|
2033
2033
|
builderBlock: !0,
|
|
@@ -2063,7 +2063,7 @@ const nn = {
|
|
|
2063
2063
|
}]
|
|
2064
2064
|
}]
|
|
2065
2065
|
};
|
|
2066
|
-
function
|
|
2066
|
+
function Y(e) {
|
|
2067
2067
|
return /* @__PURE__ */ s(
|
|
2068
2068
|
"script",
|
|
2069
2069
|
{
|
|
@@ -2073,11 +2073,11 @@ function G(e) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
function
|
|
2076
|
+
function fn(e, t, n, i) {
|
|
2077
|
+
function a(c) {
|
|
2078
2078
|
return typeof c == "string";
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function o(c) {
|
|
2081
2081
|
return typeof c == "number";
|
|
2082
2082
|
}
|
|
2083
2083
|
function r(c, h) {
|
|
@@ -2087,14 +2087,14 @@ function cn(e, t, n, i) {
|
|
|
2087
2087
|
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
|
|
2088
2088
|
return !0;
|
|
2089
2089
|
if (Array.isArray(f))
|
|
2090
|
-
return v === "isNot" ? f.every((
|
|
2090
|
+
return v === "isNot" ? f.every((S) => r(c, {
|
|
2091
2091
|
property: u,
|
|
2092
2092
|
operator: v,
|
|
2093
|
-
value:
|
|
2094
|
-
})) : !!f.find((
|
|
2093
|
+
value: S
|
|
2094
|
+
})) : !!f.find((S) => r(c, {
|
|
2095
2095
|
property: u,
|
|
2096
2096
|
operator: v,
|
|
2097
|
-
value:
|
|
2097
|
+
value: S
|
|
2098
2098
|
}));
|
|
2099
2099
|
const g = c[u];
|
|
2100
2100
|
if (Array.isArray(g))
|
|
@@ -2105,19 +2105,19 @@ function cn(e, t, n, i) {
|
|
|
2105
2105
|
case "isNot":
|
|
2106
2106
|
return g !== f;
|
|
2107
2107
|
case "contains":
|
|
2108
|
-
return (
|
|
2108
|
+
return (a(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2109
2109
|
case "startsWith":
|
|
2110
|
-
return
|
|
2110
|
+
return a(g) && g.startsWith(String(f));
|
|
2111
2111
|
case "endsWith":
|
|
2112
|
-
return
|
|
2112
|
+
return a(g) && g.endsWith(String(f));
|
|
2113
2113
|
case "greaterThan":
|
|
2114
|
-
return
|
|
2114
|
+
return o(g) && o(f) && g > f;
|
|
2115
2115
|
case "lessThan":
|
|
2116
|
-
return
|
|
2116
|
+
return o(g) && o(f) && g < f;
|
|
2117
2117
|
case "greaterThanOrEqualTo":
|
|
2118
|
-
return
|
|
2118
|
+
return o(g) && o(f) && g >= f;
|
|
2119
2119
|
case "lessThanOrEqualTo":
|
|
2120
|
-
return
|
|
2120
|
+
return o(g) && o(f) && g <= f;
|
|
2121
2121
|
default:
|
|
2122
2122
|
return !1;
|
|
2123
2123
|
}
|
|
@@ -2130,7 +2130,7 @@ function cn(e, t, n, i) {
|
|
|
2130
2130
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
2131
|
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2132
2132
|
}
|
|
2133
|
-
const
|
|
2133
|
+
const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
2134
|
if (!navigator.cookieEnabled) {
|
|
2135
2135
|
return;
|
|
2136
2136
|
}
|
|
@@ -2183,7 +2183,7 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2183
2183
|
} else if (variants && variants.length > 0) {
|
|
2184
2184
|
removeVariants();
|
|
2185
2185
|
}
|
|
2186
|
-
}`,
|
|
2186
|
+
}`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2187
2187
|
function isString(val) {
|
|
2188
2188
|
return typeof val === 'string';
|
|
2189
2189
|
}
|
|
@@ -2262,27 +2262,27 @@ const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2262
2262
|
return objectMatchesQuery(userAttributes, filter);
|
|
2263
2263
|
});
|
|
2264
2264
|
}`;
|
|
2265
|
-
function
|
|
2266
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2265
|
+
function bn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || L());
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function pn({
|
|
2269
2269
|
variants: e,
|
|
2270
2270
|
previewingIndex: t,
|
|
2271
2271
|
isHydrated: n,
|
|
2272
2272
|
filteredVariants: i,
|
|
2273
|
-
fallbackBlocks:
|
|
2273
|
+
fallbackBlocks: a
|
|
2274
2274
|
}) {
|
|
2275
2275
|
var r;
|
|
2276
|
-
const
|
|
2277
|
-
blocks:
|
|
2276
|
+
const o = {
|
|
2277
|
+
blocks: a != null ? a : [],
|
|
2278
2278
|
path: "this.children"
|
|
2279
2279
|
};
|
|
2280
|
-
if (n &&
|
|
2280
|
+
if (n && A())
|
|
2281
2281
|
return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
|
|
2282
2282
|
blocks: e[t].blocks,
|
|
2283
2283
|
path: `component.options.variants.${t}.blocks`
|
|
2284
|
-
} :
|
|
2285
|
-
if (
|
|
2284
|
+
} : o;
|
|
2285
|
+
if (L()) {
|
|
2286
2286
|
const l = i == null ? void 0 : i[0];
|
|
2287
2287
|
if (l)
|
|
2288
2288
|
return {
|
|
@@ -2290,58 +2290,58 @@ function fn({
|
|
|
2290
2290
|
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
|
-
return
|
|
2293
|
+
return o;
|
|
2294
2294
|
}
|
|
2295
|
-
const
|
|
2295
|
+
const yn = (e, t, n) => `
|
|
2296
2296
|
(function() {
|
|
2297
|
-
${
|
|
2298
|
-
${
|
|
2297
|
+
${gn}
|
|
2298
|
+
${hn}
|
|
2299
2299
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2300
2300
|
})();
|
|
2301
2301
|
`;
|
|
2302
|
-
function
|
|
2303
|
-
var g,
|
|
2304
|
-
const t =
|
|
2305
|
-
() =>
|
|
2306
|
-
), [
|
|
2302
|
+
function vn(e) {
|
|
2303
|
+
var g, S, b, k, C, P, w;
|
|
2304
|
+
const t = O(null), [n, i] = I(
|
|
2305
|
+
() => be.getUserAttributes()
|
|
2306
|
+
), [a, o] = I(
|
|
2307
2307
|
() => {
|
|
2308
|
-
var
|
|
2309
|
-
return
|
|
2308
|
+
var x, m, p;
|
|
2309
|
+
return yn(
|
|
2310
2310
|
e.variants,
|
|
2311
|
-
((
|
|
2311
|
+
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2312
2312
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
|
-
), [r, l] =
|
|
2315
|
+
), [r, l] = I(() => []), [d, c] = I(
|
|
2316
2316
|
() => {
|
|
2317
|
-
var
|
|
2318
|
-
return
|
|
2317
|
+
var x;
|
|
2318
|
+
return bn(
|
|
2319
2319
|
e.variants,
|
|
2320
|
-
|
|
2320
|
+
H((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
), [h, y] =
|
|
2323
|
+
), [h, y] = I(() => !1);
|
|
2324
2324
|
function u() {
|
|
2325
|
-
return (e.variants || []).filter((
|
|
2326
|
-
var m, p,
|
|
2327
|
-
return
|
|
2325
|
+
return (e.variants || []).filter((x) => {
|
|
2326
|
+
var m, p, T, E;
|
|
2327
|
+
return fn(
|
|
2328
2328
|
{
|
|
2329
2329
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2330
|
-
locale: (
|
|
2330
|
+
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
2331
2331
|
} : {},
|
|
2332
2332
|
...n
|
|
2333
2333
|
},
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2334
|
+
x.query,
|
|
2335
|
+
x.startDate,
|
|
2336
|
+
x.endDate
|
|
2337
2337
|
);
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
2340
|
function v() {
|
|
2341
|
-
var
|
|
2342
|
-
return
|
|
2341
|
+
var x;
|
|
2342
|
+
return pn({
|
|
2343
2343
|
variants: e.variants,
|
|
2344
|
-
fallbackBlocks: (
|
|
2344
|
+
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2345
2345
|
isHydrated: h,
|
|
2346
2346
|
filteredVariants: u(),
|
|
2347
2347
|
previewingIndex: e.previewingIndex
|
|
@@ -2349,21 +2349,21 @@ function gn(e) {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
function f() {
|
|
2351
2351
|
return (e.variants || []).map(
|
|
2352
|
-
(
|
|
2352
|
+
(x, m) => {
|
|
2353
2353
|
var p;
|
|
2354
2354
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2355
2355
|
}
|
|
2356
2356
|
).join("");
|
|
2357
2357
|
}
|
|
2358
|
-
return
|
|
2358
|
+
return V(() => {
|
|
2359
2359
|
var m;
|
|
2360
2360
|
y(!0);
|
|
2361
|
-
const
|
|
2361
|
+
const x = be.subscribeOnUserAttributesChange(
|
|
2362
2362
|
(p) => {
|
|
2363
2363
|
i(p);
|
|
2364
2364
|
}
|
|
2365
2365
|
);
|
|
2366
|
-
if (!(
|
|
2366
|
+
if (!(A() || Z())) {
|
|
2367
2367
|
const p = u()[0];
|
|
2368
2368
|
t.current && (t.current.dispatchEvent(
|
|
2369
2369
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -2373,14 +2373,14 @@ function gn(e) {
|
|
|
2373
2373
|
},
|
|
2374
2374
|
bubbles: !0
|
|
2375
2375
|
})
|
|
2376
|
-
), new IntersectionObserver((
|
|
2377
|
-
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2376
|
+
), new IntersectionObserver((E) => {
|
|
2377
|
+
E.forEach((N) => {
|
|
2378
|
+
var W;
|
|
2379
|
+
N.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
2380
|
new CustomEvent("builder.variantDisplayed", {
|
|
2381
2381
|
detail: {
|
|
2382
2382
|
variant: p || "default",
|
|
2383
|
-
content: (
|
|
2383
|
+
content: (W = e.builderContext) == null ? void 0 : W.content
|
|
2384
2384
|
},
|
|
2385
2385
|
bubbles: !0
|
|
2386
2386
|
})
|
|
@@ -2388,19 +2388,19 @@ function gn(e) {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
}).observe(t.current));
|
|
2390
2390
|
}
|
|
2391
|
-
r.push(
|
|
2392
|
-
}, []),
|
|
2393
|
-
r.forEach((
|
|
2394
|
-
}, []), /* @__PURE__ */
|
|
2391
|
+
r.push(x);
|
|
2392
|
+
}, []), V(() => () => {
|
|
2393
|
+
r.forEach((x) => x());
|
|
2394
|
+
}, []), /* @__PURE__ */ B(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
ref: t,
|
|
2398
2398
|
...e.attributes,
|
|
2399
2399
|
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2400
2400
|
children: [
|
|
2401
|
-
d ? /* @__PURE__ */
|
|
2402
|
-
(
|
|
2403
|
-
var p,
|
|
2401
|
+
d ? /* @__PURE__ */ B(R, { children: [
|
|
2402
|
+
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2403
|
+
var p, T;
|
|
2404
2404
|
return /* @__PURE__ */ s(
|
|
2405
2405
|
"template",
|
|
2406
2406
|
{
|
|
@@ -2408,8 +2408,8 @@ function gn(e) {
|
|
|
2408
2408
|
children: /* @__PURE__ */ s(
|
|
2409
2409
|
D,
|
|
2410
2410
|
{
|
|
2411
|
-
blocks:
|
|
2412
|
-
parent: (
|
|
2411
|
+
blocks: x.blocks,
|
|
2412
|
+
parent: (T = e.builderBlock) == null ? void 0 : T.id,
|
|
2413
2413
|
path: `component.options.variants.${m}.blocks`
|
|
2414
2414
|
}
|
|
2415
2415
|
)
|
|
@@ -2418,18 +2418,18 @@ function gn(e) {
|
|
|
2418
2418
|
);
|
|
2419
2419
|
}),
|
|
2420
2420
|
/* @__PURE__ */ s(
|
|
2421
|
-
|
|
2421
|
+
z,
|
|
2422
2422
|
{
|
|
2423
2423
|
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2424
2424
|
styles: f(),
|
|
2425
|
-
id: `variants-styles-${(
|
|
2425
|
+
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2426
2426
|
}
|
|
2427
2427
|
),
|
|
2428
2428
|
/* @__PURE__ */ s(
|
|
2429
|
-
|
|
2429
|
+
Y,
|
|
2430
2430
|
{
|
|
2431
2431
|
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2432
|
-
scriptStr:
|
|
2432
|
+
scriptStr: a,
|
|
2433
2433
|
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2434
2434
|
}
|
|
2435
2435
|
)
|
|
@@ -2446,7 +2446,7 @@ function gn(e) {
|
|
|
2446
2446
|
}
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
|
-
const
|
|
2449
|
+
const xn = {
|
|
2450
2450
|
name: "Core:Section",
|
|
2451
2451
|
static: !0,
|
|
2452
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2485,7 +2485,7 @@ const bn = {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
}]
|
|
2488
|
-
},
|
|
2488
|
+
}, Sn = {
|
|
2489
2489
|
name: "Slot",
|
|
2490
2490
|
isRSC: !0,
|
|
2491
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2503,7 +2503,7 @@ const bn = {
|
|
|
2503
2503
|
builderComponents: !0
|
|
2504
2504
|
}
|
|
2505
2505
|
};
|
|
2506
|
-
function
|
|
2506
|
+
function kn(e) {
|
|
2507
2507
|
var t, n, i;
|
|
2508
2508
|
return /* @__PURE__ */ s(
|
|
2509
2509
|
"div",
|
|
@@ -2527,7 +2527,7 @@ function yn(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
2530
|
-
const
|
|
2530
|
+
const Cn = {
|
|
2531
2531
|
name: "Symbol",
|
|
2532
2532
|
noWrap: !0,
|
|
2533
2533
|
static: !0,
|
|
@@ -2566,7 +2566,7 @@ const vn = {
|
|
|
2566
2566
|
builderComponents: !0,
|
|
2567
2567
|
builderLinkComponent: !0
|
|
2568
2568
|
}
|
|
2569
|
-
},
|
|
2569
|
+
}, le = {
|
|
2570
2570
|
"@type": "@builder.io/sdk:Element",
|
|
2571
2571
|
responsiveStyles: {
|
|
2572
2572
|
large: {
|
|
@@ -2588,7 +2588,7 @@ const vn = {
|
|
|
2588
2588
|
text: "New tab"
|
|
2589
2589
|
}
|
|
2590
2590
|
}
|
|
2591
|
-
},
|
|
2591
|
+
}, se = {
|
|
2592
2592
|
"@type": "@builder.io/sdk:Element",
|
|
2593
2593
|
responsiveStyles: {
|
|
2594
2594
|
large: {
|
|
@@ -2604,7 +2604,7 @@ const vn = {
|
|
|
2604
2604
|
text: "New tab content "
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
},
|
|
2607
|
+
}, Tn = {
|
|
2608
2608
|
name: "Builder: Tabs",
|
|
2609
2609
|
inputs: [{
|
|
2610
2610
|
name: "tabs",
|
|
@@ -2614,16 +2614,16 @@ const vn = {
|
|
|
2614
2614
|
name: "label",
|
|
2615
2615
|
type: "uiBlocks",
|
|
2616
2616
|
hideFromUI: !0,
|
|
2617
|
-
defaultValue: [
|
|
2617
|
+
defaultValue: [le]
|
|
2618
2618
|
}, {
|
|
2619
2619
|
name: "content",
|
|
2620
2620
|
type: "uiBlocks",
|
|
2621
2621
|
hideFromUI: !0,
|
|
2622
|
-
defaultValue: [
|
|
2622
|
+
defaultValue: [se]
|
|
2623
2623
|
}],
|
|
2624
2624
|
defaultValue: [{
|
|
2625
2625
|
label: [{
|
|
2626
|
-
...
|
|
2626
|
+
...le,
|
|
2627
2627
|
component: {
|
|
2628
2628
|
name: "Text",
|
|
2629
2629
|
options: {
|
|
@@ -2632,7 +2632,7 @@ const vn = {
|
|
|
2632
2632
|
}
|
|
2633
2633
|
}],
|
|
2634
2634
|
content: [{
|
|
2635
|
-
...
|
|
2635
|
+
...se,
|
|
2636
2636
|
component: {
|
|
2637
2637
|
name: "Text",
|
|
2638
2638
|
options: {
|
|
@@ -2642,7 +2642,7 @@ const vn = {
|
|
|
2642
2642
|
}]
|
|
2643
2643
|
}, {
|
|
2644
2644
|
label: [{
|
|
2645
|
-
...
|
|
2645
|
+
...le,
|
|
2646
2646
|
component: {
|
|
2647
2647
|
name: "Text",
|
|
2648
2648
|
options: {
|
|
@@ -2651,7 +2651,7 @@ const vn = {
|
|
|
2651
2651
|
}
|
|
2652
2652
|
}],
|
|
2653
2653
|
content: [{
|
|
2654
|
-
...
|
|
2654
|
+
...se,
|
|
2655
2655
|
component: {
|
|
2656
2656
|
name: "Text",
|
|
2657
2657
|
options: {
|
|
@@ -2708,18 +2708,18 @@ const vn = {
|
|
|
2708
2708
|
builderLinkComponent: !0
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
|
-
function
|
|
2712
|
-
var
|
|
2713
|
-
const [t, n] =
|
|
2711
|
+
function wn(e) {
|
|
2712
|
+
var o;
|
|
2713
|
+
const [t, n] = I(
|
|
2714
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2715
2715
|
);
|
|
2716
2716
|
function i(r) {
|
|
2717
2717
|
return e.tabs && e.tabs[r].content;
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function a(r) {
|
|
2720
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2721
2721
|
}
|
|
2722
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ B("div", { children: [
|
|
2723
2723
|
/* @__PURE__ */ s(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
@@ -2730,14 +2730,14 @@ function Sn(e) {
|
|
|
2730
2730
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2731
2731
|
overflow: "auto"
|
|
2732
2732
|
},
|
|
2733
|
-
children: (
|
|
2733
|
+
children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
|
|
2734
2734
|
"span",
|
|
2735
2735
|
{
|
|
2736
2736
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2737
2737
|
style: {
|
|
2738
2738
|
...t === l ? e.activeTabStyle : {}
|
|
2739
2739
|
},
|
|
2740
|
-
onClick: (d) =>
|
|
2740
|
+
onClick: (d) => a(l),
|
|
2741
2741
|
children: /* @__PURE__ */ s(
|
|
2742
2742
|
D,
|
|
2743
2743
|
{
|
|
@@ -2767,7 +2767,7 @@ function Sn(e) {
|
|
|
2767
2767
|
) }) : null
|
|
2768
2768
|
] });
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2770
|
+
const In = {
|
|
2771
2771
|
shouldReceiveBuilderProps: {
|
|
2772
2772
|
builderBlock: !1,
|
|
2773
2773
|
builderContext: !0
|
|
@@ -2790,7 +2790,7 @@ const kn = {
|
|
|
2790
2790
|
textAlign: "center"
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
|
-
function
|
|
2793
|
+
function En(e) {
|
|
2794
2794
|
var t;
|
|
2795
2795
|
return /* @__PURE__ */ s(
|
|
2796
2796
|
"div",
|
|
@@ -2803,7 +2803,7 @@ function Cn(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const Rn = {
|
|
2807
2807
|
name: "Custom Code",
|
|
2808
2808
|
static: !0,
|
|
2809
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2826,9 +2826,9 @@ const Tn = {
|
|
|
2826
2826
|
advanced: !0
|
|
2827
2827
|
}]
|
|
2828
2828
|
};
|
|
2829
|
-
function
|
|
2830
|
-
const t =
|
|
2831
|
-
return
|
|
2829
|
+
function Pn(e) {
|
|
2830
|
+
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
|
|
2831
|
+
return V(() => {
|
|
2832
2832
|
var l;
|
|
2833
2833
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2834
2834
|
return;
|
|
@@ -2846,10 +2846,10 @@ function wn(e) {
|
|
|
2846
2846
|
"application/javascript",
|
|
2847
2847
|
"application/ecmascript"
|
|
2848
2848
|
].includes(c.type)) {
|
|
2849
|
-
if (
|
|
2849
|
+
if (a.includes(c.innerText))
|
|
2850
2850
|
continue;
|
|
2851
2851
|
try {
|
|
2852
|
-
|
|
2852
|
+
a.push(c.innerText), new Function(c.innerText)();
|
|
2853
2853
|
} catch (h) {
|
|
2854
2854
|
console.warn("`CustomCode`: Error running script:", h);
|
|
2855
2855
|
}
|
|
@@ -2864,7 +2864,7 @@ function wn(e) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
}
|
|
2867
|
-
const
|
|
2867
|
+
const Vn = {
|
|
2868
2868
|
name: "Embed",
|
|
2869
2869
|
static: !0,
|
|
2870
2870
|
inputs: [{
|
|
@@ -2879,9 +2879,9 @@ const In = {
|
|
|
2879
2879
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2880
|
hideFromUI: !0
|
|
2881
2881
|
}]
|
|
2882
|
-
},
|
|
2883
|
-
function
|
|
2884
|
-
const t =
|
|
2882
|
+
}, Bn = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => Bn.includes(e.type);
|
|
2883
|
+
function An(e) {
|
|
2884
|
+
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
|
|
2885
2885
|
function d() {
|
|
2886
2886
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2887
2887
|
return;
|
|
@@ -2892,15 +2892,15 @@ function Pn(e) {
|
|
|
2892
2892
|
n.push(y.src);
|
|
2893
2893
|
const u = document.createElement("script");
|
|
2894
2894
|
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2895
|
-
} else if (
|
|
2895
|
+
} else if (Nn(y) && !a.includes(y.innerText))
|
|
2896
2896
|
try {
|
|
2897
|
-
|
|
2897
|
+
a.push(y.innerText), new Function(y.innerText)();
|
|
2898
2898
|
} catch (u) {
|
|
2899
2899
|
console.warn("`Embed`: Error running script:", u);
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
return
|
|
2903
|
+
return V(() => {
|
|
2904
2904
|
t.current && !r && (l(!0), d());
|
|
2905
2905
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2906
2906
|
"div",
|
|
@@ -2911,7 +2911,7 @@ function Pn(e) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
|
-
const
|
|
2914
|
+
const Wn = {
|
|
2915
2915
|
name: "Form:Form",
|
|
2916
2916
|
// editableTags: ['builder-form-error']
|
|
2917
2917
|
defaults: {
|
|
@@ -3148,12 +3148,12 @@ const Vn = {
|
|
|
3148
3148
|
builderComponents: !0,
|
|
3149
3149
|
builderLinkComponent: !0
|
|
3150
3150
|
}
|
|
3151
|
-
},
|
|
3151
|
+
}, $n = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Dn = () => {
|
|
3152
3152
|
const e = process.env.NODE_ENV || "production";
|
|
3153
|
-
return
|
|
3153
|
+
return $n.includes(e) ? e : "production";
|
|
3154
3154
|
};
|
|
3155
|
-
function
|
|
3156
|
-
const t =
|
|
3155
|
+
function Fn(e) {
|
|
3156
|
+
const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
|
|
3157
3157
|
function d(y) {
|
|
3158
3158
|
var v, f;
|
|
3159
3159
|
const u = {
|
|
@@ -3163,7 +3163,7 @@ function An(e) {
|
|
|
3163
3163
|
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3164
3164
|
}
|
|
3165
3165
|
function c() {
|
|
3166
|
-
return
|
|
3166
|
+
return A() && e.previewState || n;
|
|
3167
3167
|
}
|
|
3168
3168
|
function h(y) {
|
|
3169
3169
|
var v;
|
|
@@ -3177,73 +3177,73 @@ function An(e) {
|
|
|
3177
3177
|
}
|
|
3178
3178
|
y.preventDefault();
|
|
3179
3179
|
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3180
|
-
let
|
|
3181
|
-
const b = new FormData(f),
|
|
3180
|
+
let S;
|
|
3181
|
+
const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3182
3182
|
let p;
|
|
3183
|
-
const
|
|
3183
|
+
const T = m.name;
|
|
3184
3184
|
if (m instanceof HTMLInputElement)
|
|
3185
3185
|
if (m.type === "radio") {
|
|
3186
3186
|
if (m.checked)
|
|
3187
3187
|
return p = m.name, {
|
|
3188
|
-
key:
|
|
3188
|
+
key: T,
|
|
3189
3189
|
value: p
|
|
3190
3190
|
};
|
|
3191
3191
|
} else if (m.type === "checkbox")
|
|
3192
3192
|
p = m.checked;
|
|
3193
3193
|
else if (m.type === "number" || m.type === "range") {
|
|
3194
|
-
const
|
|
3195
|
-
isNaN(
|
|
3194
|
+
const E = m.valueAsNumber;
|
|
3195
|
+
isNaN(E) || (p = E);
|
|
3196
3196
|
} else
|
|
3197
3197
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3198
3198
|
else
|
|
3199
3199
|
p = m.value;
|
|
3200
3200
|
return {
|
|
3201
|
-
key:
|
|
3201
|
+
key: T,
|
|
3202
3202
|
value: p
|
|
3203
3203
|
};
|
|
3204
3204
|
});
|
|
3205
3205
|
let C = e.contentType;
|
|
3206
|
-
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(
|
|
3206
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3207
3207
|
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
3208
|
}), C !== "application/json")
|
|
3209
|
-
|
|
3209
|
+
S = b;
|
|
3210
3210
|
else {
|
|
3211
3211
|
const m = {};
|
|
3212
|
-
Array.from(
|
|
3213
|
-
|
|
3214
|
-
}),
|
|
3212
|
+
Array.from(k).forEach(({ value: p, key: T }) => {
|
|
3213
|
+
Oe(m, T, p);
|
|
3214
|
+
}), S = JSON.stringify(m);
|
|
3215
3215
|
}
|
|
3216
3216
|
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3217
|
-
const P = new CustomEvent("presubmit", { detail: { body:
|
|
3217
|
+
const P = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3218
3218
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3219
3219
|
return;
|
|
3220
3220
|
i("sending");
|
|
3221
|
-
const w = `${
|
|
3221
|
+
const w = `${Dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3222
3222
|
e.sendSubmissionsToEmail || ""
|
|
3223
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3224
|
-
|
|
3223
|
+
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
+
Ve(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
|
|
3225
3225
|
async (m) => {
|
|
3226
3226
|
let p;
|
|
3227
|
-
const
|
|
3228
|
-
if (
|
|
3229
|
-
let
|
|
3230
|
-
|
|
3227
|
+
const T = m.headers.get("content-type");
|
|
3228
|
+
if (T && T.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3229
|
+
let E = $e(p, e.errorMessagePath);
|
|
3230
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3231
3231
|
}
|
|
3232
|
-
if (
|
|
3233
|
-
const
|
|
3232
|
+
if (o(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3233
|
+
const E = new CustomEvent("submit:success", {
|
|
3234
3234
|
detail: { res: m, body: p }
|
|
3235
3235
|
});
|
|
3236
3236
|
if (t.current) {
|
|
3237
|
-
if (t.current.dispatchEvent(
|
|
3237
|
+
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
3238
3238
|
return;
|
|
3239
3239
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3240
3240
|
}
|
|
3241
3241
|
if (e.successUrl)
|
|
3242
3242
|
if (t.current) {
|
|
3243
|
-
const
|
|
3243
|
+
const N = new CustomEvent("route", {
|
|
3244
3244
|
detail: { url: e.successUrl }
|
|
3245
3245
|
});
|
|
3246
|
-
t.current.dispatchEvent(
|
|
3246
|
+
t.current.dispatchEvent(N), N.defaultPrevented || (location.href = e.successUrl);
|
|
3247
3247
|
} else
|
|
3248
3248
|
location.href = e.successUrl;
|
|
3249
3249
|
}
|
|
@@ -3252,14 +3252,14 @@ function An(e) {
|
|
|
3252
3252
|
const p = new CustomEvent("submit:error", {
|
|
3253
3253
|
detail: { error: m }
|
|
3254
3254
|
});
|
|
3255
|
-
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (
|
|
3255
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (o(m), i("error"));
|
|
3256
3256
|
}
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ B(R, { children: [
|
|
3261
3261
|
" ",
|
|
3262
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ B(
|
|
3263
3263
|
"form",
|
|
3264
3264
|
{
|
|
3265
3265
|
validate: e.validate,
|
|
@@ -3287,7 +3287,7 @@ function An(e) {
|
|
|
3287
3287
|
context: e.builderContext
|
|
3288
3288
|
}
|
|
3289
3289
|
) : null,
|
|
3290
|
-
c() === "error" &&
|
|
3290
|
+
c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3291
3291
|
c() === "success" ? /* @__PURE__ */ s(
|
|
3292
3292
|
D,
|
|
3293
3293
|
{
|
|
@@ -3304,7 +3304,7 @@ function An(e) {
|
|
|
3304
3304
|
" "
|
|
3305
3305
|
] });
|
|
3306
3306
|
}
|
|
3307
|
-
const
|
|
3307
|
+
const On = {
|
|
3308
3308
|
name: "Form:Input",
|
|
3309
3309
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3310
3310
|
inputs: [
|
|
@@ -3356,12 +3356,12 @@ const Wn = {
|
|
|
3356
3356
|
borderColor: "#ccc"
|
|
3357
3357
|
}
|
|
3358
3358
|
};
|
|
3359
|
-
function
|
|
3360
|
-
return /* @__PURE__ */
|
|
3359
|
+
function Ln(e) {
|
|
3360
|
+
return /* @__PURE__ */ Ae(
|
|
3361
3361
|
"input",
|
|
3362
3362
|
{
|
|
3363
3363
|
...e.attributes,
|
|
3364
|
-
key:
|
|
3364
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3365
3365
|
placeholder: e.placeholder,
|
|
3366
3366
|
type: e.type,
|
|
3367
3367
|
name: e.name,
|
|
@@ -3371,7 +3371,7 @@ function Dn(e) {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
);
|
|
3373
3373
|
}
|
|
3374
|
-
const
|
|
3374
|
+
const Un = {
|
|
3375
3375
|
name: "Form:Select",
|
|
3376
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3377
3377
|
defaultStyles: {
|
|
@@ -3414,14 +3414,14 @@ const $n = {
|
|
|
3414
3414
|
static: !0,
|
|
3415
3415
|
noWrap: !0
|
|
3416
3416
|
};
|
|
3417
|
-
function
|
|
3417
|
+
function _n(e) {
|
|
3418
3418
|
var t;
|
|
3419
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ Ae(
|
|
3420
3420
|
"select",
|
|
3421
3421
|
{
|
|
3422
3422
|
...e.attributes,
|
|
3423
3423
|
value: e.value,
|
|
3424
|
-
key:
|
|
3424
|
+
key: A() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3425
3425
|
defaultValue: e.defaultValue,
|
|
3426
3426
|
name: e.name,
|
|
3427
3427
|
required: e.required
|
|
@@ -3429,7 +3429,7 @@ function Fn(e) {
|
|
|
3429
3429
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
|
-
const
|
|
3432
|
+
const qn = {
|
|
3433
3433
|
name: "Form:SubmitButton",
|
|
3434
3434
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3435
3435
|
defaultStyles: {
|
|
@@ -3455,10 +3455,10 @@ const On = {
|
|
|
3455
3455
|
// TODO: defaultChildren
|
|
3456
3456
|
// canHaveChildren: true,
|
|
3457
3457
|
};
|
|
3458
|
-
function
|
|
3458
|
+
function Mn(e) {
|
|
3459
3459
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3460
3460
|
}
|
|
3461
|
-
const
|
|
3461
|
+
const Hn = {
|
|
3462
3462
|
name: "Form:TextArea",
|
|
3463
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3464
3464
|
inputs: [{
|
|
@@ -3495,7 +3495,7 @@ const Un = {
|
|
|
3495
3495
|
static: !0,
|
|
3496
3496
|
noWrap: !0
|
|
3497
3497
|
};
|
|
3498
|
-
function
|
|
3498
|
+
function jn(e) {
|
|
3499
3499
|
return /* @__PURE__ */ s(
|
|
3500
3500
|
"textarea",
|
|
3501
3501
|
{
|
|
@@ -3508,7 +3508,7 @@ function _n(e) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
);
|
|
3510
3510
|
}
|
|
3511
|
-
const
|
|
3511
|
+
const zn = {
|
|
3512
3512
|
// friendlyName?
|
|
3513
3513
|
name: "Raw:Img",
|
|
3514
3514
|
hideFromInsertMenu: !0,
|
|
@@ -3517,13 +3517,13 @@ const qn = {
|
|
|
3517
3517
|
name: "image",
|
|
3518
3518
|
bubble: !0,
|
|
3519
3519
|
type: "file",
|
|
3520
|
-
allowedFileTypes:
|
|
3520
|
+
allowedFileTypes: he,
|
|
3521
3521
|
required: !0
|
|
3522
3522
|
}],
|
|
3523
3523
|
noWrap: !0,
|
|
3524
3524
|
static: !0
|
|
3525
3525
|
};
|
|
3526
|
-
function
|
|
3526
|
+
function Kn(e) {
|
|
3527
3527
|
return /* @__PURE__ */ s(
|
|
3528
3528
|
"img",
|
|
3529
3529
|
{
|
|
@@ -3535,10 +3535,10 @@ function Mn(e) {
|
|
|
3535
3535
|
src: e.imgSrc || e.image,
|
|
3536
3536
|
...e.attributes
|
|
3537
3537
|
},
|
|
3538
|
-
|
|
3538
|
+
A() && e.imgSrc || "default-key"
|
|
3539
3539
|
);
|
|
3540
3540
|
}
|
|
3541
|
-
const
|
|
3541
|
+
const Jn = {
|
|
3542
3542
|
name: "Video",
|
|
3543
3543
|
canHaveChildren: !0,
|
|
3544
3544
|
defaultStyles: {
|
|
@@ -3549,14 +3549,14 @@ const Hn = {
|
|
|
3549
3549
|
inputs: [{
|
|
3550
3550
|
name: "video",
|
|
3551
3551
|
type: "file",
|
|
3552
|
-
allowedFileTypes:
|
|
3552
|
+
allowedFileTypes: un,
|
|
3553
3553
|
bubble: !0,
|
|
3554
3554
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3555
3555
|
required: !0
|
|
3556
3556
|
}, {
|
|
3557
3557
|
name: "posterImage",
|
|
3558
3558
|
type: "file",
|
|
3559
|
-
allowedFileTypes:
|
|
3559
|
+
allowedFileTypes: he,
|
|
3560
3560
|
helperText: "Image to show before the video plays"
|
|
3561
3561
|
}, {
|
|
3562
3562
|
name: "autoPlay",
|
|
@@ -3623,9 +3623,9 @@ const Hn = {
|
|
|
3623
3623
|
builderBlock: !0
|
|
3624
3624
|
}
|
|
3625
3625
|
};
|
|
3626
|
-
function
|
|
3626
|
+
function Gn(e) {
|
|
3627
3627
|
var r, l, d, c, h, y, u;
|
|
3628
|
-
const t =
|
|
3628
|
+
const t = O(null);
|
|
3629
3629
|
function n() {
|
|
3630
3630
|
return {
|
|
3631
3631
|
...e.autoPlay === !0 ? {
|
|
@@ -3650,32 +3650,32 @@ function jn(e) {
|
|
|
3650
3650
|
...n()
|
|
3651
3651
|
};
|
|
3652
3652
|
}
|
|
3653
|
-
const [
|
|
3653
|
+
const [a, o] = I(() => {
|
|
3654
3654
|
});
|
|
3655
|
-
return
|
|
3655
|
+
return V(() => {
|
|
3656
3656
|
if (e.lazyLoad) {
|
|
3657
3657
|
const v = new IntersectionObserver(function(f) {
|
|
3658
3658
|
f.forEach(function(g) {
|
|
3659
3659
|
if (!g.isIntersecting)
|
|
3660
3660
|
return;
|
|
3661
|
-
const
|
|
3661
|
+
const S = g.target;
|
|
3662
3662
|
try {
|
|
3663
|
-
Array.from(
|
|
3663
|
+
Array.from(S.children).filter(
|
|
3664
3664
|
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3665
3665
|
).forEach((b) => {
|
|
3666
|
-
const
|
|
3667
|
-
|
|
3668
|
-
}),
|
|
3666
|
+
const k = b.dataset.src;
|
|
3667
|
+
k && (b.src = k);
|
|
3668
|
+
}), S.load(), v.unobserve(S);
|
|
3669
3669
|
} catch (b) {
|
|
3670
3670
|
console.error("Error loading lazy video:", b);
|
|
3671
3671
|
}
|
|
3672
3672
|
});
|
|
3673
3673
|
});
|
|
3674
|
-
t.current && v.observe(t.current),
|
|
3674
|
+
t.current && v.observe(t.current), o(v);
|
|
3675
3675
|
}
|
|
3676
|
-
}, []),
|
|
3677
|
-
|
|
3678
|
-
}, []), /* @__PURE__ */
|
|
3676
|
+
}, []), V(() => () => {
|
|
3677
|
+
a && a.disconnect();
|
|
3678
|
+
}, []), /* @__PURE__ */ B(
|
|
3679
3679
|
"div",
|
|
3680
3680
|
{
|
|
3681
3681
|
style: {
|
|
@@ -3759,67 +3759,67 @@ function jn(e) {
|
|
|
3759
3759
|
}
|
|
3760
3760
|
);
|
|
3761
3761
|
}
|
|
3762
|
-
const
|
|
3763
|
-
component: wn,
|
|
3764
|
-
...Tn
|
|
3765
|
-
}, {
|
|
3762
|
+
const Qn = () => [{
|
|
3766
3763
|
component: Pn,
|
|
3767
|
-
...
|
|
3764
|
+
...Rn
|
|
3768
3765
|
}, {
|
|
3769
3766
|
component: An,
|
|
3770
3767
|
...Vn
|
|
3771
3768
|
}, {
|
|
3772
|
-
component:
|
|
3769
|
+
component: Fn,
|
|
3773
3770
|
...Wn
|
|
3774
3771
|
}, {
|
|
3775
3772
|
component: Ln,
|
|
3776
3773
|
...On
|
|
3777
3774
|
}, {
|
|
3778
|
-
component:
|
|
3779
|
-
|
|
3775
|
+
component: Mn,
|
|
3776
|
+
...qn
|
|
3780
3777
|
}, {
|
|
3781
3778
|
component: _n,
|
|
3782
3779
|
...Un
|
|
3783
|
-
}, {
|
|
3784
|
-
component: Mn,
|
|
3785
|
-
...qn
|
|
3786
3780
|
}, {
|
|
3787
3781
|
component: jn,
|
|
3788
3782
|
...Hn
|
|
3789
|
-
}], ke = () => [{
|
|
3790
|
-
component: it,
|
|
3791
|
-
...nn
|
|
3792
3783
|
}, {
|
|
3793
|
-
component:
|
|
3794
|
-
...
|
|
3784
|
+
component: Kn,
|
|
3785
|
+
...zn
|
|
3795
3786
|
}, {
|
|
3796
|
-
component:
|
|
3797
|
-
...
|
|
3787
|
+
component: Gn,
|
|
3788
|
+
...Jn
|
|
3789
|
+
}], we = () => [{
|
|
3790
|
+
component: lt,
|
|
3791
|
+
...ln
|
|
3798
3792
|
}, {
|
|
3799
3793
|
component: Xt,
|
|
3800
|
-
...
|
|
3794
|
+
...sn
|
|
3801
3795
|
}, {
|
|
3802
3796
|
component: Zt,
|
|
3803
|
-
...
|
|
3797
|
+
...cn
|
|
3804
3798
|
}, {
|
|
3805
|
-
component:
|
|
3806
|
-
...
|
|
3799
|
+
component: nn,
|
|
3800
|
+
...dn
|
|
3807
3801
|
}, {
|
|
3808
|
-
component:
|
|
3809
|
-
...
|
|
3802
|
+
component: an,
|
|
3803
|
+
...xn
|
|
3810
3804
|
}, {
|
|
3811
|
-
component:
|
|
3812
|
-
...
|
|
3805
|
+
component: kn,
|
|
3806
|
+
...Sn
|
|
3813
3807
|
}, {
|
|
3814
|
-
component:
|
|
3815
|
-
...
|
|
3808
|
+
component: xi,
|
|
3809
|
+
...Cn
|
|
3816
3810
|
}, {
|
|
3817
|
-
component:
|
|
3818
|
-
...
|
|
3811
|
+
component: En,
|
|
3812
|
+
...In
|
|
3819
3813
|
}, {
|
|
3820
|
-
component:
|
|
3821
|
-
...
|
|
3822
|
-
},
|
|
3814
|
+
component: vn,
|
|
3815
|
+
...mn
|
|
3816
|
+
}, {
|
|
3817
|
+
component: wn,
|
|
3818
|
+
...Tn
|
|
3819
|
+
}, {
|
|
3820
|
+
component: rn,
|
|
3821
|
+
...on
|
|
3822
|
+
}, ...Qn()], Yn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3823
3823
|
function getAndSetVariantId() {
|
|
3824
3824
|
function setCookie(name, value, days) {
|
|
3825
3825
|
let expires = '';
|
|
@@ -3875,7 +3875,7 @@ const zn = () => [{
|
|
|
3875
3875
|
}).join('');
|
|
3876
3876
|
styleEl.innerHTML = newStyleStr;
|
|
3877
3877
|
}
|
|
3878
|
-
}`,
|
|
3878
|
+
}`, Xn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3879
3879
|
if (!navigator.cookieEnabled) {
|
|
3880
3880
|
return;
|
|
3881
3881
|
}
|
|
@@ -3909,29 +3909,29 @@ const zn = () => [{
|
|
|
3909
3909
|
thisScriptEl?.remove();
|
|
3910
3910
|
}
|
|
3911
3911
|
return;
|
|
3912
|
-
}`,
|
|
3912
|
+
}`, Je = "builderIoAbTest", Ge = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3913
3913
|
...t,
|
|
3914
3914
|
testVariationId: t.id,
|
|
3915
3915
|
id: e == null ? void 0 : e.id
|
|
3916
|
-
})),
|
|
3916
|
+
})), Zn = ({
|
|
3917
3917
|
canTrack: e,
|
|
3918
3918
|
content: t
|
|
3919
|
-
}) => !(!(
|
|
3920
|
-
window.${
|
|
3921
|
-
window.${
|
|
3922
|
-
`,
|
|
3923
|
-
window.${
|
|
3924
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3925
|
-
)`,
|
|
3919
|
+
}) => !(!(J(t).length > 0) || !e || L()), ei = (e) => e === "react" || e === "reactNative", Qe = ei(U), ti = () => `
|
|
3920
|
+
window.${Je} = ${Yn}
|
|
3921
|
+
window.${Ge} = ${Xn}
|
|
3922
|
+
`, ni = (e, t) => `
|
|
3923
|
+
window.${Je}(
|
|
3924
|
+
"${t}",${JSON.stringify(e)}, ${Qe}
|
|
3925
|
+
)`, ii = ({
|
|
3926
3926
|
contentId: e,
|
|
3927
3927
|
variationId: t
|
|
3928
|
-
}) => `window.${
|
|
3929
|
-
"${t}", "${e}", ${
|
|
3928
|
+
}) => `window.${Ge}(
|
|
3929
|
+
"${t}", "${e}", ${Qe}
|
|
3930
3930
|
)`;
|
|
3931
|
-
function
|
|
3931
|
+
function Ie(e) {
|
|
3932
3932
|
return Math.round(e * 1e3) / 1e3;
|
|
3933
3933
|
}
|
|
3934
|
-
const
|
|
3934
|
+
const ai = (e, t, n = !0) => {
|
|
3935
3935
|
if (!(e instanceof HTMLElement))
|
|
3936
3936
|
return null;
|
|
3937
3937
|
let i = n ? e : e.parentElement;
|
|
@@ -3942,39 +3942,39 @@ const ei = (e, t, n = !0) => {
|
|
|
3942
3942
|
return i;
|
|
3943
3943
|
} while (i = i.parentElement);
|
|
3944
3944
|
return null;
|
|
3945
|
-
},
|
|
3945
|
+
}, oi = (e) => ai(e, (t) => {
|
|
3946
3946
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3947
3947
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3948
|
-
}),
|
|
3948
|
+
}), Ee = ({
|
|
3949
3949
|
event: e,
|
|
3950
3950
|
target: t
|
|
3951
3951
|
}) => {
|
|
3952
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
3952
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ie(i / n.width), r = Ie(a / n.height);
|
|
3953
3953
|
return {
|
|
3954
|
-
x:
|
|
3954
|
+
x: o,
|
|
3955
3955
|
y: r
|
|
3956
3956
|
};
|
|
3957
|
-
},
|
|
3958
|
-
const t = e.target, n = t &&
|
|
3957
|
+
}, ri = (e) => {
|
|
3958
|
+
const t = e.target, n = t && oi(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3959
3959
|
return {
|
|
3960
3960
|
targetBuilderElement: i || void 0,
|
|
3961
3961
|
metadata: {
|
|
3962
|
-
targetOffset: t ?
|
|
3962
|
+
targetOffset: t ? Ee({
|
|
3963
3963
|
event: e,
|
|
3964
3964
|
target: t
|
|
3965
3965
|
}) : void 0,
|
|
3966
|
-
builderTargetOffset: n ?
|
|
3966
|
+
builderTargetOffset: n ? Ee({
|
|
3967
3967
|
event: e,
|
|
3968
3968
|
target: n
|
|
3969
3969
|
}) : void 0,
|
|
3970
3970
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3971
3971
|
}
|
|
3972
3972
|
};
|
|
3973
|
-
},
|
|
3974
|
-
var
|
|
3975
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (
|
|
3976
|
-
let
|
|
3977
|
-
if (i && t && n && (
|
|
3973
|
+
}, li = ["svelte", "qwik", "vue"], Re = () => li.includes(U) && (A() || Z()), si = (e) => {
|
|
3974
|
+
var o, r;
|
|
3975
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
3976
|
+
let a = "";
|
|
3977
|
+
if (i && t && n && (a += `
|
|
3978
3978
|
@font-face {
|
|
3979
3979
|
font-family: "${t}";
|
|
3980
3980
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -3986,7 +3986,7 @@ font-weight: 400;
|
|
|
3986
3986
|
if (!(String(Number(l)) === l))
|
|
3987
3987
|
continue;
|
|
3988
3988
|
const c = e.files[l];
|
|
3989
|
-
c && c !== i && (
|
|
3989
|
+
c && c !== i && (a += `
|
|
3990
3990
|
@font-face {
|
|
3991
3991
|
font-family: "${t}";
|
|
3992
3992
|
src: url('${c}') format('woff2');
|
|
@@ -3995,16 +3995,16 @@ font-weight: ${l};
|
|
|
3995
3995
|
}
|
|
3996
3996
|
`.trim());
|
|
3997
3997
|
}
|
|
3998
|
-
return
|
|
3999
|
-
},
|
|
3998
|
+
return a;
|
|
3999
|
+
}, ci = ({
|
|
4000
4000
|
customFonts: e
|
|
4001
4001
|
}) => {
|
|
4002
4002
|
var t;
|
|
4003
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4004
|
-
},
|
|
4003
|
+
return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4004
|
+
}, ui = ({
|
|
4005
4005
|
cssCode: e,
|
|
4006
4006
|
contentId: t
|
|
4007
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4007
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", di = `
|
|
4008
4008
|
.builder-button {
|
|
4009
4009
|
all: unset;
|
|
4010
4010
|
}
|
|
@@ -4021,24 +4021,25 @@ font-weight: ${l};
|
|
|
4021
4021
|
text-align: inherit;
|
|
4022
4022
|
font-family: inherit;
|
|
4023
4023
|
}
|
|
4024
|
-
`,
|
|
4025
|
-
function
|
|
4026
|
-
var
|
|
4027
|
-
const t =
|
|
4024
|
+
`, mi = (e) => e ? "" : di, fi = (e) => `variant-${e}`;
|
|
4025
|
+
function hi(e) {
|
|
4026
|
+
var k, C, P;
|
|
4027
|
+
const t = O(null);
|
|
4028
|
+
I(() => !1);
|
|
4028
4029
|
function n(w) {
|
|
4029
4030
|
var m, p;
|
|
4030
|
-
const
|
|
4031
|
+
const x = {
|
|
4031
4032
|
...e.builderContextSignal.rootState,
|
|
4032
4033
|
...w
|
|
4033
4034
|
};
|
|
4034
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
4035
|
-
...
|
|
4036
|
-
rootState:
|
|
4035
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((T) => ({
|
|
4036
|
+
...T,
|
|
4037
|
+
rootState: x
|
|
4037
4038
|
}));
|
|
4038
4039
|
}
|
|
4039
4040
|
function i(w) {
|
|
4040
|
-
var m, p,
|
|
4041
|
-
const
|
|
4041
|
+
var m, p, T, E, N;
|
|
4042
|
+
const x = {
|
|
4042
4043
|
...e.builderContextSignal.content,
|
|
4043
4044
|
...w,
|
|
4044
4045
|
data: {
|
|
@@ -4048,76 +4049,79 @@ function ui(e) {
|
|
|
4048
4049
|
meta: {
|
|
4049
4050
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
4050
4051
|
...w == null ? void 0 : w.meta,
|
|
4051
|
-
breakpoints: ((
|
|
4052
|
+
breakpoints: ((T = w == null ? void 0 : w.meta) == null ? void 0 : T.breakpoints) || ((N = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : N.breakpoints)
|
|
4052
4053
|
}
|
|
4053
4054
|
};
|
|
4054
|
-
e.setBuilderContextSignal((
|
|
4055
|
-
...
|
|
4056
|
-
content:
|
|
4055
|
+
e.setBuilderContextSignal((W) => ({
|
|
4056
|
+
...W,
|
|
4057
|
+
content: x
|
|
4057
4058
|
}));
|
|
4058
4059
|
}
|
|
4059
|
-
function
|
|
4060
|
+
function a() {
|
|
4060
4061
|
return e.showContent ? {} : {
|
|
4061
4062
|
hidden: !0,
|
|
4062
4063
|
"aria-hidden": !0
|
|
4063
4064
|
};
|
|
4064
4065
|
}
|
|
4065
|
-
const [
|
|
4066
|
+
const [o, r] = I(
|
|
4066
4067
|
() => e.contentWrapper || "div"
|
|
4067
4068
|
);
|
|
4068
4069
|
function l(w) {
|
|
4069
|
-
return
|
|
4070
|
+
return nt({
|
|
4070
4071
|
model: e.model,
|
|
4071
4072
|
trustedHosts: e.trustedHosts,
|
|
4072
4073
|
callbacks: {
|
|
4073
|
-
configureSdk: (
|
|
4074
|
-
var
|
|
4075
|
-
const { breakpoints: m, contentId: p } =
|
|
4076
|
-
!p || p !== ((
|
|
4074
|
+
configureSdk: (x) => {
|
|
4075
|
+
var T;
|
|
4076
|
+
const { breakpoints: m, contentId: p } = x;
|
|
4077
|
+
!p || p !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
|
|
4077
4078
|
meta: {
|
|
4078
4079
|
breakpoints: m
|
|
4079
4080
|
}
|
|
4080
4081
|
});
|
|
4081
4082
|
},
|
|
4082
|
-
animation: (
|
|
4083
|
-
|
|
4083
|
+
animation: (x) => {
|
|
4084
|
+
_e(x);
|
|
4085
|
+
},
|
|
4086
|
+
contentUpdate: (x) => {
|
|
4087
|
+
i(x);
|
|
4084
4088
|
},
|
|
4085
|
-
|
|
4086
|
-
|
|
4089
|
+
stateUpdate: (x) => {
|
|
4090
|
+
n(x);
|
|
4087
4091
|
}
|
|
4088
4092
|
}
|
|
4089
4093
|
})(w);
|
|
4090
4094
|
}
|
|
4091
|
-
const [d, c] =
|
|
4095
|
+
const [d, c] = I(() => ({})), [h, y] = I(() => ({})), [u, v] = I(() => !1);
|
|
4092
4096
|
function f(w) {
|
|
4093
|
-
var
|
|
4097
|
+
var x, m;
|
|
4094
4098
|
if (e.builderContextSignal.content) {
|
|
4095
|
-
const p = (
|
|
4096
|
-
|
|
4099
|
+
const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4100
|
+
pe({
|
|
4097
4101
|
apiHost: e.apiHost,
|
|
4098
4102
|
type: "click",
|
|
4099
|
-
canTrack:
|
|
4100
|
-
contentId:
|
|
4103
|
+
canTrack: H(e.canTrack),
|
|
4104
|
+
contentId: T,
|
|
4101
4105
|
apiKey: e.apiKey,
|
|
4102
|
-
variationId: p !==
|
|
4103
|
-
...
|
|
4106
|
+
variationId: p !== T ? p : void 0,
|
|
4107
|
+
...ri(w),
|
|
4104
4108
|
unique: !u
|
|
4105
4109
|
});
|
|
4106
4110
|
}
|
|
4107
4111
|
u || v(!0);
|
|
4108
4112
|
}
|
|
4109
4113
|
function g() {
|
|
4110
|
-
var
|
|
4111
|
-
const w = (p = (m = (
|
|
4112
|
-
Object.entries(w).forEach(([
|
|
4113
|
-
if (!
|
|
4114
|
+
var x, m, p;
|
|
4115
|
+
const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4116
|
+
Object.entries(w).forEach(([T, E]) => {
|
|
4117
|
+
if (!E || h[T] || d[T] && !A())
|
|
4114
4118
|
return;
|
|
4115
|
-
h[
|
|
4116
|
-
const
|
|
4119
|
+
h[T] = !0;
|
|
4120
|
+
const N = E.replace(
|
|
4117
4121
|
/{{([^}]+)}}/g,
|
|
4118
|
-
(
|
|
4119
|
-
|
|
4120
|
-
code:
|
|
4122
|
+
(W, $) => String(
|
|
4123
|
+
_({
|
|
4124
|
+
code: $,
|
|
4121
4125
|
context: e.context || {},
|
|
4122
4126
|
localState: void 0,
|
|
4123
4127
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4125,24 +4129,24 @@ function ui(e) {
|
|
|
4125
4129
|
})
|
|
4126
4130
|
)
|
|
4127
4131
|
);
|
|
4128
|
-
|
|
4132
|
+
Ve(N), fetch(N).then((W) => W.json()).then((W) => {
|
|
4129
4133
|
n({
|
|
4130
|
-
[
|
|
4131
|
-
}), d[
|
|
4132
|
-
}).catch((
|
|
4133
|
-
console.error("error fetching dynamic data",
|
|
4134
|
+
[T]: W
|
|
4135
|
+
}), d[T] = !0;
|
|
4136
|
+
}).catch((W) => {
|
|
4137
|
+
console.error("error fetching dynamic data", E, W);
|
|
4134
4138
|
}).finally(() => {
|
|
4135
|
-
h[
|
|
4139
|
+
h[T] = !1;
|
|
4136
4140
|
});
|
|
4137
4141
|
});
|
|
4138
4142
|
}
|
|
4139
|
-
function
|
|
4140
|
-
|
|
4143
|
+
function S() {
|
|
4144
|
+
A() && window.dispatchEvent(
|
|
4141
4145
|
new CustomEvent(
|
|
4142
4146
|
"builder:component:stateChange",
|
|
4143
4147
|
{
|
|
4144
4148
|
detail: {
|
|
4145
|
-
state:
|
|
4149
|
+
state: me(e.builderContextSignal.rootState),
|
|
4146
4150
|
ref: {
|
|
4147
4151
|
name: e.model
|
|
4148
4152
|
}
|
|
@@ -4151,11 +4155,11 @@ function ui(e) {
|
|
|
4151
4155
|
)
|
|
4152
4156
|
);
|
|
4153
4157
|
}
|
|
4154
|
-
const b =
|
|
4155
|
-
return b.current || (g(),
|
|
4156
|
-
var w,
|
|
4157
|
-
if (
|
|
4158
|
-
|
|
4158
|
+
const b = O(!1);
|
|
4159
|
+
return b.current || (g(), S(), b.current = !0), V(() => {
|
|
4160
|
+
var w, x, m, p, T;
|
|
4161
|
+
if (L()) {
|
|
4162
|
+
A() && !e.isNestedRender && (window.addEventListener("message", l), Xe(), Ze({
|
|
4159
4163
|
...e.locale ? {
|
|
4160
4164
|
locale: e.locale
|
|
4161
4165
|
} : {},
|
|
@@ -4169,93 +4173,98 @@ function ui(e) {
|
|
|
4169
4173
|
apiKey: e.apiKey
|
|
4170
4174
|
}), Object.values(
|
|
4171
4175
|
e.builderContextSignal.componentInfos
|
|
4172
|
-
).forEach((
|
|
4173
|
-
var
|
|
4174
|
-
if (!((
|
|
4175
|
-
const
|
|
4176
|
-
(
|
|
4176
|
+
).forEach(($) => {
|
|
4177
|
+
var F, K;
|
|
4178
|
+
if (!((F = $.models) != null && F.length) || $.models.includes(e.model)) {
|
|
4179
|
+
const ne = et($);
|
|
4180
|
+
(K = window.parent) == null || K.postMessage(ne, "*");
|
|
4177
4181
|
}
|
|
4178
4182
|
}), window.addEventListener(
|
|
4179
4183
|
"builder:component:stateChangeListenerActivated",
|
|
4180
|
-
|
|
4181
|
-
))
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
+
S
|
|
4185
|
+
));
|
|
4186
|
+
const E = e.builderContextSignal.content && H(e.canTrack), N = tt({
|
|
4187
|
+
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4188
|
+
canTrack: !0
|
|
4189
|
+
}), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
4190
|
+
if (E && W === N) {
|
|
4191
|
+
const $ = (p = e.builderContextSignal.content) == null ? void 0 : p.id, F = e.apiKey;
|
|
4192
|
+
pe({
|
|
4184
4193
|
apiHost: e.apiHost,
|
|
4185
4194
|
type: "impression",
|
|
4186
4195
|
canTrack: !0,
|
|
4187
|
-
contentId:
|
|
4188
|
-
apiKey:
|
|
4189
|
-
variationId:
|
|
4196
|
+
contentId: $,
|
|
4197
|
+
apiKey: F,
|
|
4198
|
+
variationId: N !== $ ? N : void 0
|
|
4190
4199
|
});
|
|
4191
4200
|
}
|
|
4192
|
-
if (
|
|
4193
|
-
const
|
|
4194
|
-
`builder.overrides.${
|
|
4195
|
-
),
|
|
4196
|
-
(
|
|
4201
|
+
if (Z() && !A()) {
|
|
4202
|
+
const $ = new URL(location.href).searchParams, F = $.get("builder.preview"), K = $.get(
|
|
4203
|
+
`builder.overrides.${F}`
|
|
4204
|
+
), ne = $.get("apiKey") || $.get("builder.space");
|
|
4205
|
+
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || K === e.content.id)) && Be({
|
|
4197
4206
|
model: e.model,
|
|
4198
4207
|
apiKey: e.apiKey,
|
|
4199
4208
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4200
|
-
...
|
|
4209
|
+
...F === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
|
|
4201
4210
|
query: {
|
|
4202
4211
|
id: e.context.symbolId
|
|
4203
4212
|
}
|
|
4204
4213
|
} : {}
|
|
4205
|
-
}).then((
|
|
4206
|
-
|
|
4214
|
+
}).then((ge) => {
|
|
4215
|
+
ge && i(ge);
|
|
4207
4216
|
});
|
|
4208
4217
|
}
|
|
4209
4218
|
}
|
|
4210
|
-
}, []),
|
|
4219
|
+
}, []), V(() => {
|
|
4211
4220
|
e.content && i(e.content);
|
|
4212
|
-
}, [e.content]),
|
|
4213
|
-
|
|
4214
|
-
}, [e.builderContextSignal.rootState]),
|
|
4221
|
+
}, [e.content]), V(() => {
|
|
4222
|
+
S();
|
|
4223
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
4215
4224
|
e.data && n(e.data);
|
|
4216
|
-
}, [e.data]),
|
|
4225
|
+
}, [e.data]), V(() => {
|
|
4217
4226
|
e.locale && n({
|
|
4218
4227
|
locale: e.locale
|
|
4219
4228
|
});
|
|
4220
|
-
}, [e.locale]),
|
|
4221
|
-
|
|
4229
|
+
}, [e.locale]), V(() => () => {
|
|
4230
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4222
4231
|
"builder:component:stateChangeListenerActivated",
|
|
4223
|
-
|
|
4232
|
+
S
|
|
4224
4233
|
));
|
|
4225
|
-
}, []), /* @__PURE__ */ s(
|
|
4226
|
-
|
|
4234
|
+
}, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
|
|
4235
|
+
o,
|
|
4227
4236
|
{
|
|
4228
4237
|
ref: t,
|
|
4229
4238
|
onClick: (w) => f(w),
|
|
4230
|
-
"builder-content-id": (
|
|
4239
|
+
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4231
4240
|
"builder-model": e.model,
|
|
4232
|
-
className:
|
|
4241
|
+
className: fi(
|
|
4233
4242
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4234
4243
|
),
|
|
4235
4244
|
style: {
|
|
4236
|
-
display: !e.builderContextSignal.content &&
|
|
4245
|
+
display: !e.builderContextSignal.content && Re() ? "none" : void 0
|
|
4237
4246
|
},
|
|
4238
|
-
...
|
|
4247
|
+
...a(),
|
|
4239
4248
|
...e.contentWrapperProps,
|
|
4240
4249
|
children: e.children
|
|
4241
4250
|
}
|
|
4242
4251
|
) : null });
|
|
4243
4252
|
}
|
|
4244
|
-
function
|
|
4245
|
-
const [t, n] =
|
|
4253
|
+
function gi(e) {
|
|
4254
|
+
const [t, n] = I(
|
|
4246
4255
|
() => `
|
|
4247
|
-
${
|
|
4256
|
+
${ui({
|
|
4248
4257
|
cssCode: e.cssCode,
|
|
4249
4258
|
contentId: e.contentId
|
|
4250
4259
|
})}
|
|
4251
|
-
${
|
|
4260
|
+
${ci({
|
|
4252
4261
|
customFonts: e.customFonts
|
|
4253
4262
|
})}
|
|
4254
|
-
${
|
|
4263
|
+
${mi(e.isNestedRender)}
|
|
4255
4264
|
`.trim()
|
|
4256
4265
|
);
|
|
4257
4266
|
return /* @__PURE__ */ s(
|
|
4258
|
-
|
|
4267
|
+
z,
|
|
4259
4268
|
{
|
|
4260
4269
|
id: "builderio-content",
|
|
4261
4270
|
styles: t,
|
|
@@ -4263,24 +4272,24 @@ ${si(e.isNestedRender)}
|
|
|
4263
4272
|
}
|
|
4264
4273
|
);
|
|
4265
4274
|
}
|
|
4266
|
-
const
|
|
4275
|
+
const bi = ({
|
|
4267
4276
|
content: e,
|
|
4268
4277
|
data: t,
|
|
4269
4278
|
locale: n
|
|
4270
4279
|
}) => {
|
|
4271
|
-
var
|
|
4272
|
-
const i = {},
|
|
4280
|
+
var o, r, l;
|
|
4281
|
+
const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
4273
4282
|
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
4274
4283
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4275
4284
|
}), {
|
|
4276
4285
|
...i,
|
|
4277
|
-
...
|
|
4286
|
+
...a,
|
|
4278
4287
|
...t,
|
|
4279
4288
|
...n ? {
|
|
4280
4289
|
locale: n
|
|
4281
4290
|
} : {}
|
|
4282
4291
|
};
|
|
4283
|
-
},
|
|
4292
|
+
}, pi = ({
|
|
4284
4293
|
content: e,
|
|
4285
4294
|
data: t
|
|
4286
4295
|
}) => e ? {
|
|
@@ -4291,46 +4300,46 @@ const mi = ({
|
|
|
4291
4300
|
},
|
|
4292
4301
|
meta: e == null ? void 0 : e.meta
|
|
4293
4302
|
} : void 0;
|
|
4294
|
-
function
|
|
4295
|
-
var c, h, y, u, v, f, g,
|
|
4296
|
-
const [t, n] =
|
|
4303
|
+
function Pe(e) {
|
|
4304
|
+
var c, h, y, u, v, f, g, S, b;
|
|
4305
|
+
const [t, n] = I(
|
|
4297
4306
|
() => {
|
|
4298
|
-
var
|
|
4299
|
-
return
|
|
4307
|
+
var k, C;
|
|
4308
|
+
return ii({
|
|
4300
4309
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4301
|
-
variationId: (
|
|
4310
|
+
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4302
4311
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4303
4312
|
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4304
4313
|
});
|
|
4305
4314
|
}
|
|
4306
4315
|
);
|
|
4307
|
-
function i(
|
|
4316
|
+
function i(k) {
|
|
4308
4317
|
l((C) => ({
|
|
4309
4318
|
...C,
|
|
4310
|
-
rootState:
|
|
4319
|
+
rootState: k
|
|
4311
4320
|
}));
|
|
4312
4321
|
}
|
|
4313
|
-
const [
|
|
4322
|
+
const [a, o] = I(
|
|
4314
4323
|
() => [
|
|
4315
|
-
...
|
|
4324
|
+
...we(),
|
|
4316
4325
|
...e.customComponents || []
|
|
4317
4326
|
].reduce(
|
|
4318
|
-
(
|
|
4319
|
-
...
|
|
4327
|
+
(k, { component: C, ...P }) => ({
|
|
4328
|
+
...k,
|
|
4320
4329
|
[P.name]: {
|
|
4321
4330
|
component: C,
|
|
4322
|
-
...
|
|
4331
|
+
...ye(P)
|
|
4323
4332
|
}
|
|
4324
4333
|
}),
|
|
4325
4334
|
{}
|
|
4326
4335
|
)
|
|
4327
|
-
), [r, l] =
|
|
4328
|
-
content:
|
|
4336
|
+
), [r, l] = I(() => ({
|
|
4337
|
+
content: pi({
|
|
4329
4338
|
content: e.content,
|
|
4330
4339
|
data: e.data
|
|
4331
4340
|
}),
|
|
4332
4341
|
localState: void 0,
|
|
4333
|
-
rootState:
|
|
4342
|
+
rootState: bi({
|
|
4334
4343
|
content: e.content,
|
|
4335
4344
|
data: e.data,
|
|
4336
4345
|
locale: e.locale
|
|
@@ -4341,12 +4350,12 @@ function Ie(e) {
|
|
|
4341
4350
|
apiKey: e.apiKey,
|
|
4342
4351
|
apiVersion: e.apiVersion,
|
|
4343
4352
|
componentInfos: [
|
|
4344
|
-
...
|
|
4353
|
+
...we(),
|
|
4345
4354
|
...e.customComponents || []
|
|
4346
4355
|
].reduce(
|
|
4347
|
-
(
|
|
4348
|
-
...
|
|
4349
|
-
[P.name]:
|
|
4356
|
+
(k, { component: C, ...P }) => ({
|
|
4357
|
+
...k,
|
|
4358
|
+
[P.name]: ye(P)
|
|
4350
4359
|
}),
|
|
4351
4360
|
{}
|
|
4352
4361
|
),
|
|
@@ -4355,14 +4364,14 @@ function Ie(e) {
|
|
|
4355
4364
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4356
4365
|
nonce: e.nonce || "",
|
|
4357
4366
|
model: e.model
|
|
4358
|
-
})), d =
|
|
4367
|
+
})), d = O(!1);
|
|
4359
4368
|
if (!d.current) {
|
|
4360
|
-
e.apiKey ||
|
|
4369
|
+
e.apiKey || X.error(
|
|
4361
4370
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4362
4371
|
);
|
|
4363
|
-
const
|
|
4364
|
-
|
|
4365
|
-
code:
|
|
4372
|
+
const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4373
|
+
k && _({
|
|
4374
|
+
code: k,
|
|
4366
4375
|
context: e.context || {},
|
|
4367
4376
|
localState: void 0,
|
|
4368
4377
|
rootState: r.rootState,
|
|
@@ -4373,13 +4382,13 @@ function Ie(e) {
|
|
|
4373
4382
|
}), d.current = !0;
|
|
4374
4383
|
}
|
|
4375
4384
|
return /* @__PURE__ */ s(
|
|
4376
|
-
|
|
4385
|
+
We.Provider,
|
|
4377
4386
|
{
|
|
4378
4387
|
value: {
|
|
4379
|
-
registeredComponents:
|
|
4388
|
+
registeredComponents: a
|
|
4380
4389
|
},
|
|
4381
|
-
children: /* @__PURE__ */
|
|
4382
|
-
|
|
4390
|
+
children: /* @__PURE__ */ B(
|
|
4391
|
+
hi,
|
|
4383
4392
|
{
|
|
4384
4393
|
apiHost: e.apiHost,
|
|
4385
4394
|
nonce: e.nonce,
|
|
@@ -4400,7 +4409,7 @@ function Ie(e) {
|
|
|
4400
4409
|
setBuilderContextSignal: l,
|
|
4401
4410
|
children: [
|
|
4402
4411
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4403
|
-
|
|
4412
|
+
Y,
|
|
4404
4413
|
{
|
|
4405
4414
|
id: "builderio-variant-visibility",
|
|
4406
4415
|
scriptStr: t,
|
|
@@ -4408,7 +4417,7 @@ function Ie(e) {
|
|
|
4408
4417
|
}
|
|
4409
4418
|
) : null,
|
|
4410
4419
|
/* @__PURE__ */ s(
|
|
4411
|
-
|
|
4420
|
+
gi,
|
|
4412
4421
|
{
|
|
4413
4422
|
nonce: e.nonce || "",
|
|
4414
4423
|
isNestedRender: e.isNestedRender,
|
|
@@ -4420,9 +4429,9 @@ function Ie(e) {
|
|
|
4420
4429
|
/* @__PURE__ */ s(
|
|
4421
4430
|
D,
|
|
4422
4431
|
{
|
|
4423
|
-
blocks: (b = (
|
|
4432
|
+
blocks: (b = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
|
|
4424
4433
|
context: r,
|
|
4425
|
-
registeredComponents:
|
|
4434
|
+
registeredComponents: a,
|
|
4426
4435
|
linkComponent: e.linkComponent
|
|
4427
4436
|
}
|
|
4428
4437
|
)
|
|
@@ -4432,66 +4441,66 @@ function Ie(e) {
|
|
|
4432
4441
|
}
|
|
4433
4442
|
);
|
|
4434
4443
|
}
|
|
4435
|
-
function
|
|
4444
|
+
function yi(e) {
|
|
4436
4445
|
var r;
|
|
4437
|
-
const [t, n] =
|
|
4438
|
-
() =>
|
|
4439
|
-
canTrack:
|
|
4446
|
+
const [t, n] = I(
|
|
4447
|
+
() => Zn({
|
|
4448
|
+
canTrack: H(e.canTrack),
|
|
4440
4449
|
content: e.content
|
|
4441
4450
|
})
|
|
4442
4451
|
);
|
|
4443
4452
|
function i() {
|
|
4444
4453
|
var l;
|
|
4445
|
-
return
|
|
4446
|
-
|
|
4454
|
+
return ni(
|
|
4455
|
+
J(e.content).map((d) => ({
|
|
4447
4456
|
id: d.testVariationId,
|
|
4448
4457
|
testRatio: d.testRatio
|
|
4449
4458
|
})),
|
|
4450
4459
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4451
4460
|
);
|
|
4452
4461
|
}
|
|
4453
|
-
function o() {
|
|
4454
|
-
return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4455
|
-
}
|
|
4456
4462
|
function a() {
|
|
4463
|
+
return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4464
|
+
}
|
|
4465
|
+
function o() {
|
|
4457
4466
|
var l;
|
|
4458
4467
|
return t ? {
|
|
4459
4468
|
...e.content,
|
|
4460
4469
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4461
|
-
} :
|
|
4470
|
+
} : it({
|
|
4462
4471
|
item: e.content,
|
|
4463
|
-
canTrack:
|
|
4472
|
+
canTrack: H(e.canTrack)
|
|
4464
4473
|
});
|
|
4465
4474
|
}
|
|
4466
|
-
return
|
|
4467
|
-
}, []), /* @__PURE__ */
|
|
4468
|
-
!e.isNestedRender &&
|
|
4469
|
-
|
|
4475
|
+
return V(() => {
|
|
4476
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
4477
|
+
!e.isNestedRender && U !== "reactNative" ? /* @__PURE__ */ s(
|
|
4478
|
+
Y,
|
|
4470
4479
|
{
|
|
4471
4480
|
id: "builderio-init-variants-fns",
|
|
4472
|
-
scriptStr:
|
|
4481
|
+
scriptStr: ti(),
|
|
4473
4482
|
nonce: e.nonce || ""
|
|
4474
4483
|
}
|
|
4475
4484
|
) : null,
|
|
4476
|
-
t ? /* @__PURE__ */
|
|
4485
|
+
t ? /* @__PURE__ */ B(R, { children: [
|
|
4477
4486
|
/* @__PURE__ */ s(
|
|
4478
|
-
|
|
4487
|
+
z,
|
|
4479
4488
|
{
|
|
4480
4489
|
id: "builderio-variants",
|
|
4481
|
-
styles:
|
|
4490
|
+
styles: a(),
|
|
4482
4491
|
nonce: e.nonce || ""
|
|
4483
4492
|
}
|
|
4484
4493
|
),
|
|
4485
4494
|
/* @__PURE__ */ s(
|
|
4486
|
-
|
|
4495
|
+
Y,
|
|
4487
4496
|
{
|
|
4488
4497
|
id: "builderio-variants-visibility",
|
|
4489
4498
|
scriptStr: i(),
|
|
4490
4499
|
nonce: e.nonce || ""
|
|
4491
4500
|
}
|
|
4492
4501
|
),
|
|
4493
|
-
(r =
|
|
4494
|
-
|
|
4502
|
+
(r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4503
|
+
Pe,
|
|
4495
4504
|
{
|
|
4496
4505
|
apiHost: e.apiHost,
|
|
4497
4506
|
isNestedRender: e.isNestedRender,
|
|
@@ -4519,12 +4528,12 @@ function hi(e) {
|
|
|
4519
4528
|
))
|
|
4520
4529
|
] }) : null,
|
|
4521
4530
|
/* @__PURE__ */ s(
|
|
4522
|
-
|
|
4531
|
+
Pe,
|
|
4523
4532
|
{
|
|
4524
4533
|
apiHost: e.apiHost,
|
|
4525
4534
|
nonce: e.nonce,
|
|
4526
4535
|
isNestedRender: e.isNestedRender,
|
|
4527
|
-
content:
|
|
4536
|
+
content: o(),
|
|
4528
4537
|
showContent: !0,
|
|
4529
4538
|
model: e.model,
|
|
4530
4539
|
data: e.data,
|
|
@@ -4546,13 +4555,13 @@ function hi(e) {
|
|
|
4546
4555
|
)
|
|
4547
4556
|
] });
|
|
4548
4557
|
}
|
|
4549
|
-
const
|
|
4558
|
+
const vi = async ({
|
|
4550
4559
|
builderContextValue: e,
|
|
4551
4560
|
symbol: t
|
|
4552
4561
|
}) => {
|
|
4553
4562
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4554
4563
|
(e != null && e.apiKey))
|
|
4555
|
-
return
|
|
4564
|
+
return Be({
|
|
4556
4565
|
model: t.model,
|
|
4557
4566
|
apiKey: e.apiKey,
|
|
4558
4567
|
apiVersion: e.apiVersion,
|
|
@@ -4562,10 +4571,10 @@ const gi = async ({
|
|
|
4562
4571
|
}
|
|
4563
4572
|
}
|
|
4564
4573
|
}).catch((n) => {
|
|
4565
|
-
|
|
4574
|
+
X.error("Could not fetch symbol content: ", n);
|
|
4566
4575
|
});
|
|
4567
4576
|
};
|
|
4568
|
-
function
|
|
4577
|
+
function xi(e) {
|
|
4569
4578
|
var l, d, c, h, y;
|
|
4570
4579
|
function t() {
|
|
4571
4580
|
return "div";
|
|
@@ -4576,29 +4585,29 @@ function bi(e) {
|
|
|
4576
4585
|
function i() {
|
|
4577
4586
|
var u, v;
|
|
4578
4587
|
return [
|
|
4579
|
-
e.attributes[
|
|
4588
|
+
e.attributes[j()],
|
|
4580
4589
|
"builder-symbol",
|
|
4581
4590
|
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4582
4591
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4583
4592
|
].filter(Boolean).join(" ");
|
|
4584
4593
|
}
|
|
4585
|
-
const [
|
|
4594
|
+
const [a, o] = I(() => {
|
|
4586
4595
|
var u;
|
|
4587
4596
|
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4588
4597
|
});
|
|
4589
4598
|
function r() {
|
|
4590
|
-
|
|
4599
|
+
a || vi({
|
|
4591
4600
|
symbol: e.symbol,
|
|
4592
4601
|
builderContextValue: e.builderContext
|
|
4593
4602
|
}).then((u) => {
|
|
4594
|
-
u &&
|
|
4603
|
+
u && o(u);
|
|
4595
4604
|
});
|
|
4596
4605
|
}
|
|
4597
|
-
return
|
|
4598
|
-
}, []),
|
|
4606
|
+
return V(() => {
|
|
4607
|
+
}, []), V(() => {
|
|
4599
4608
|
r();
|
|
4600
4609
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4601
|
-
|
|
4610
|
+
yi,
|
|
4602
4611
|
{
|
|
4603
4612
|
nonce: e.builderContext.nonce,
|
|
4604
4613
|
isNestedRender: !0,
|
|
@@ -4612,11 +4621,11 @@ function bi(e) {
|
|
|
4612
4621
|
data: {
|
|
4613
4622
|
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4614
4623
|
...e.builderContext.localState,
|
|
4615
|
-
...(c =
|
|
4624
|
+
...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
|
|
4616
4625
|
},
|
|
4617
4626
|
canTrack: e.builderContext.canTrack,
|
|
4618
4627
|
model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
|
|
4619
|
-
content:
|
|
4628
|
+
content: a,
|
|
4620
4629
|
linkComponent: e.builderLinkComponent,
|
|
4621
4630
|
blocksWrapper: t(),
|
|
4622
4631
|
contentWrapper: n()
|
|
@@ -4625,15 +4634,15 @@ function bi(e) {
|
|
|
4625
4634
|
}
|
|
4626
4635
|
export {
|
|
4627
4636
|
D as Blocks,
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4637
|
+
de as BuilderContext,
|
|
4638
|
+
lt as Button,
|
|
4639
|
+
Xt as Columns,
|
|
4640
|
+
yi as Content,
|
|
4641
|
+
Zt as Fragment,
|
|
4642
|
+
nn as Image,
|
|
4643
|
+
an as Section,
|
|
4644
|
+
xi as Symbol,
|
|
4645
|
+
En as Text,
|
|
4646
|
+
Gn as Video,
|
|
4647
|
+
Ii as setClientUserAttributes
|
|
4639
4648
|
};
|