@builder.io/sdk-react 3.0.5 → 3.0.7
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 +167 -30
- package/lib/browser/blocks-exports.mjs +1370 -931
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -16
- package/lib/{edge/server-entry-67bfc740.js → browser/server-entry-20c79b90.js} +319 -274
- package/lib/browser/server-entry-762e29e0.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-190c4426.cjs → accordion-071aa4f9.cjs} +1 -1
- package/lib/edge/{accordion-cd6e0363.js → accordion-22c2c037.js} +1 -1
- package/lib/edge/{blocks-fe2d7c1a.js → blocks-2989e629.js} +1343 -1318
- package/lib/edge/blocks-d3f37507.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +13 -12
- package/lib/edge/{button-6a27481c.js → button-2b5270c4.js} +2 -2
- package/lib/edge/{button-694fcd4f.cjs → button-a2cc6565.cjs} +1 -1
- package/lib/edge/{columns-90e6407e.js → columns-21b9be25.js} +3 -3
- package/lib/edge/{columns-b38bf0f7.cjs → columns-b7240242.cjs} +1 -1
- package/lib/edge/{content-variants-cbb89349.js → content-variants-88f4dc64.js} +165 -124
- package/lib/edge/content-variants-fdd5ee50.cjs +134 -0
- package/lib/edge/dynamic-blocks-exports.cjs +3 -1
- package/lib/edge/dynamic-blocks-exports.mjs +5 -2
- package/lib/edge/{form-547645eb.cjs → form-77687883.cjs} +1 -1
- package/lib/edge/{form-16bbf874.js → form-d29f3cc0.js} +3 -3
- package/lib/edge/{get-class-prop-name-8b719c6b.js → get-class-prop-name-dbc5d99c.js} +1 -1
- package/lib/edge/{get-class-prop-name-58770197.cjs → get-class-prop-name-f597545d.cjs} +1 -1
- package/lib/edge/{img-8859c851.cjs → img-03f9002b.cjs} +1 -1
- package/lib/edge/{img-d3351743.js → img-fed70928.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +18 -17
- package/lib/edge/{input-24c601b4.js → input-083c3c35.js} +1 -1
- package/lib/edge/{input-4fe0fc6d.cjs → input-1e548fd0.cjs} +1 -1
- package/lib/edge/personalization-container-bcff3433.js +384 -0
- package/lib/edge/personalization-container-dde10a09.cjs +138 -0
- package/lib/edge/{select-c73bd418.cjs → select-21e33225.cjs} +1 -1
- package/lib/edge/{select-af05377b.js → select-9f22c2ba.js} +1 -1
- package/lib/{browser/server-entry-785c0408.js → edge/server-entry-43a6f5be.js} +339 -298
- package/lib/edge/server-entry-ac35a5c8.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-759c8dd9.cjs → slot-a9f5d6c0.cjs} +1 -1
- package/lib/edge/{slot-32a4df0c.js → slot-ca171e8c.js} +3 -3
- package/lib/edge/{symbol-50360a37.js → symbol-8f6ff028.js} +2 -2
- package/lib/edge/{symbol-8d63aa7d.cjs → symbol-a2015c7e.cjs} +1 -1
- package/lib/edge/{tabs-6535c934.js → tabs-6b67fca2.js} +3 -3
- package/lib/edge/{tabs-fc6c1700.cjs → tabs-880c9088.cjs} +1 -1
- package/lib/node/blocks-exports.cjs +168 -31
- package/lib/node/blocks-exports.mjs +1343 -904
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +17 -16
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/node/server-entry-0b433783.cjs +2 -0
- package/lib/node/{server-entry-ffc70868.js → server-entry-6626257d.js} +280 -237
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-4ce0db03.cjs → setIvm-49abbae6.cjs} +1 -1
- package/lib/node/{setIvm-2cea7252.js → setIvm-5cb298bf.js} +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-d3e6df07.cjs → should-force-browser-runtime-in-node-11e8399e.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-c0d50009.js → should-force-browser-runtime-in-node-94f1a5b3.js} +1 -1
- package/package.json +1 -1
- package/types/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/types/blocks/personalization-container/helpers.d.ts +27 -0
- package/types/blocks/personalization-container/index.d.ts +1 -0
- package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
- package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/types/constants/device-sizes.d.ts +3 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/user-attributes.d.ts +17 -0
- package/types/index-helpers/blocks-exports.d.ts +1 -0
- package/types/types/builder-block.d.ts +0 -1
- package/types/types/builder-content.d.ts +1 -0
- package/types/types/input.d.ts +1 -0
- package/lib/browser/server-entry-101d66b8.cjs +0 -2
- package/lib/edge/blocks-766e8d45.cjs +0 -30
- package/lib/edge/content-variants-4e385c19.cjs +0 -134
- package/lib/edge/server-entry-3c7fa63a.cjs +0 -2
- package/lib/node/server-entry-95273908.cjs +0 -2
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
import { TARGET as O, isEditing as W, isBrowser as $, getUserAttributes as Ke, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as me, getDefaultCanTrack as q, logFetch as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, _track as fe, fetchOneEntry as Ee, createEditorListener as Ye, serializeIncludingFunctions as he, handleABTestingSync as Xe } from "./server-entry-20c79b90.js";
|
|
3
|
+
import { setClientUserAttributes as Si } from "./server-entry-20c79b90.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
5
|
+
import * as Ze from "react";
|
|
6
|
+
import { createContext as Re, useEffect as N, useState as E, useRef as F, useContext as ge, createElement as Pe } from "react";
|
|
7
|
+
const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
|
|
8
|
+
function le(e) {
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: tt(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 }) }) });
|
|
9
10
|
}
|
|
10
|
-
const
|
|
11
|
-
switch (
|
|
11
|
+
const M = () => {
|
|
12
|
+
switch (O) {
|
|
12
13
|
case "react":
|
|
13
14
|
case "reactNative":
|
|
14
15
|
case "rsc":
|
|
@@ -21,11 +22,11 @@ const _ = () => {
|
|
|
21
22
|
return "class";
|
|
22
23
|
}
|
|
23
24
|
};
|
|
24
|
-
function
|
|
25
|
+
function nt(e) {
|
|
25
26
|
function t() {
|
|
26
27
|
return {
|
|
27
28
|
...e.attributes,
|
|
28
|
-
[
|
|
29
|
+
[M()]: `${e.link ? "" : "builder-button"} ${e.attributes[M()] || ""}`,
|
|
29
30
|
...e.link ? {
|
|
30
31
|
href: e.link,
|
|
31
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -36,7 +37,7 @@ function tt(e) {
|
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
39
|
return /* @__PURE__ */ s(
|
|
39
|
-
|
|
40
|
+
le,
|
|
40
41
|
{
|
|
41
42
|
attributes: t(),
|
|
42
43
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -45,7 +46,7 @@ function tt(e) {
|
|
|
45
46
|
}
|
|
46
47
|
);
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const se = Re({
|
|
49
50
|
content: null,
|
|
50
51
|
context: {},
|
|
51
52
|
localState: void 0,
|
|
@@ -60,10 +61,10 @@ const le = Ee({
|
|
|
60
61
|
BlocksWrapperProps: {},
|
|
61
62
|
nonce: "",
|
|
62
63
|
model: ""
|
|
63
|
-
}),
|
|
64
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
64
|
+
}), Ve = Re({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
65
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
65
66
|
return i === void 0 || i === e ? n : i;
|
|
66
|
-
},
|
|
67
|
+
}, it = ({
|
|
67
68
|
builder: e,
|
|
68
69
|
context: t,
|
|
69
70
|
event: n,
|
|
@@ -75,85 +76,85 @@ const le = Ee({
|
|
|
75
76
|
builder: e,
|
|
76
77
|
context: t,
|
|
77
78
|
event: n
|
|
78
|
-
}),
|
|
79
|
+
}), at = () => ({
|
|
79
80
|
isEditing: W(),
|
|
80
|
-
isBrowser:
|
|
81
|
-
isServer:
|
|
82
|
-
getUserAttributes: () =>
|
|
81
|
+
isBrowser: $(),
|
|
82
|
+
isServer: !$(),
|
|
83
|
+
getUserAttributes: () => Ke()
|
|
83
84
|
}), ot = (e, {
|
|
84
85
|
isExpression: t = !0
|
|
85
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;
|
|
86
|
-
function
|
|
87
|
+
function Ne({
|
|
87
88
|
rootState: e,
|
|
88
89
|
localState: t,
|
|
89
90
|
rootSetState: n
|
|
90
91
|
}) {
|
|
91
92
|
return new Proxy(e, {
|
|
92
|
-
get: (i,
|
|
93
|
-
if (t &&
|
|
94
|
-
return t[
|
|
95
|
-
const
|
|
96
|
-
return typeof
|
|
97
|
-
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 ? Ne({
|
|
98
|
+
rootState: o,
|
|
98
99
|
localState: void 0,
|
|
99
100
|
rootSetState: n ? (r) => {
|
|
100
|
-
i[
|
|
101
|
+
i[a] = r, n(i);
|
|
101
102
|
} : void 0
|
|
102
|
-
}) :
|
|
103
|
+
}) : o;
|
|
103
104
|
},
|
|
104
|
-
set: (i,
|
|
105
|
-
if (t &&
|
|
105
|
+
set: (i, a, o) => {
|
|
106
|
+
if (t && a in t)
|
|
106
107
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
107
|
-
return i[
|
|
108
|
+
return i[a] = o, n == null || n(i), !0;
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
+
const be = ({
|
|
112
113
|
code: e,
|
|
113
114
|
builder: t,
|
|
114
115
|
context: n,
|
|
115
116
|
event: i,
|
|
116
|
-
localState:
|
|
117
|
-
rootSetState:
|
|
117
|
+
localState: a,
|
|
118
|
+
rootSetState: o,
|
|
118
119
|
rootState: r
|
|
119
120
|
}) => {
|
|
120
|
-
const l =
|
|
121
|
+
const l = it({
|
|
121
122
|
builder: t,
|
|
122
123
|
context: n,
|
|
123
124
|
event: i,
|
|
124
|
-
state:
|
|
125
|
+
state: Ne({
|
|
125
126
|
rootState: r,
|
|
126
|
-
localState:
|
|
127
|
-
rootSetState:
|
|
127
|
+
localState: a,
|
|
128
|
+
rootSetState: o
|
|
128
129
|
})
|
|
129
130
|
});
|
|
130
|
-
return new Function(...l.map(([
|
|
131
|
+
return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
|
|
131
132
|
};
|
|
132
|
-
function
|
|
133
|
+
function rt() {
|
|
133
134
|
var e;
|
|
134
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
+
const lt = ({
|
|
137
138
|
shouldLogWarning: e
|
|
138
139
|
}) => {
|
|
139
|
-
var
|
|
140
|
-
if (!
|
|
140
|
+
var a;
|
|
141
|
+
if (!rt())
|
|
141
142
|
return !1;
|
|
142
|
-
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (
|
|
143
|
-
return t && n && !i ? (e &&
|
|
144
|
-
},
|
|
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 && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
+
}, st = (e) => ($() || lt({
|
|
145
146
|
shouldLogWarning: !0
|
|
146
|
-
}),
|
|
147
|
-
var t, n, i,
|
|
148
|
-
return ((i = (n = (t =
|
|
147
|
+
}), be(e)), ct = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ut = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, dt = (e) => {
|
|
148
|
+
var t, n, i, a, o, r;
|
|
149
|
+
return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = ut.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
149
150
|
};
|
|
150
151
|
function L({
|
|
151
152
|
code: e,
|
|
152
153
|
context: t,
|
|
153
154
|
localState: n,
|
|
154
155
|
rootState: i,
|
|
155
|
-
rootSetState:
|
|
156
|
-
event:
|
|
156
|
+
rootSetState: a,
|
|
157
|
+
event: o,
|
|
157
158
|
isExpression: r = !0
|
|
158
159
|
}) {
|
|
159
160
|
if (e.trim() === "")
|
|
@@ -164,41 +165,41 @@ function L({
|
|
|
164
165
|
...i,
|
|
165
166
|
...n
|
|
166
167
|
}, l);
|
|
167
|
-
const
|
|
168
|
+
const u = {
|
|
168
169
|
code: ot(e, {
|
|
169
170
|
isExpression: r
|
|
170
171
|
}),
|
|
171
|
-
builder:
|
|
172
|
+
builder: at(),
|
|
172
173
|
context: t,
|
|
173
|
-
event:
|
|
174
|
-
rootSetState:
|
|
174
|
+
event: o,
|
|
175
|
+
rootSetState: a,
|
|
175
176
|
rootState: i,
|
|
176
177
|
localState: n
|
|
177
178
|
};
|
|
178
179
|
try {
|
|
179
|
-
return
|
|
180
|
+
return st(u);
|
|
180
181
|
} catch (c) {
|
|
181
|
-
|
|
182
|
+
Q.error("Failed code evaluation: " + c.message, {
|
|
182
183
|
code: e
|
|
183
184
|
});
|
|
184
185
|
return;
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function mt(e, t) {
|
|
188
189
|
var n;
|
|
189
190
|
return {
|
|
190
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
192
|
...e.options,
|
|
192
|
-
...
|
|
193
|
+
...ft(e, t)
|
|
193
194
|
};
|
|
194
195
|
}
|
|
195
|
-
const
|
|
196
|
+
const ft = (e, t) => {
|
|
196
197
|
var n, i;
|
|
197
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
198
199
|
return {
|
|
199
200
|
...e.component.options,
|
|
200
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (
|
|
201
|
-
code:
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => L({
|
|
202
|
+
code: o,
|
|
202
203
|
context: t,
|
|
203
204
|
localState: t.localState,
|
|
204
205
|
rootState: t.rootState,
|
|
@@ -206,74 +207,74 @@ const mt = (e, t) => {
|
|
|
206
207
|
}))
|
|
207
208
|
};
|
|
208
209
|
};
|
|
209
|
-
function
|
|
210
|
+
function ht(e, ...t) {
|
|
210
211
|
const n = Object.assign({}, e);
|
|
211
212
|
for (const i of t)
|
|
212
213
|
delete n[i];
|
|
213
214
|
return n;
|
|
214
215
|
}
|
|
215
|
-
function
|
|
216
|
+
function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
216
217
|
if (e == null || typeof e != "object") {
|
|
217
|
-
t(e, (
|
|
218
|
-
n !== null && i !== null && (n[i] =
|
|
218
|
+
t(e, (o) => {
|
|
219
|
+
n !== null && i !== null && (n[i] = o);
|
|
219
220
|
});
|
|
220
221
|
return;
|
|
221
222
|
}
|
|
222
|
-
|
|
223
|
-
t(
|
|
224
|
-
e[r] =
|
|
225
|
-
}),
|
|
226
|
-
}) : Object.entries(e).forEach(([
|
|
227
|
-
t(r, (
|
|
228
|
-
e[
|
|
229
|
-
}),
|
|
223
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
224
|
+
t(o, (u) => {
|
|
225
|
+
e[r] = u;
|
|
226
|
+
}), J(o, t, e, r, a);
|
|
227
|
+
}) : Object.entries(e).forEach(([o, r]) => {
|
|
228
|
+
t(r, (u) => {
|
|
229
|
+
e[o] = u;
|
|
230
|
+
}), J(r, t, e, o, a);
|
|
230
231
|
}));
|
|
231
232
|
}
|
|
232
233
|
function Ae(e) {
|
|
233
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
235
|
}
|
|
235
|
-
function
|
|
236
|
+
function gt(e) {
|
|
236
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
237
238
|
return !1;
|
|
238
239
|
let t = !1;
|
|
239
|
-
return
|
|
240
|
+
return J(e, (n) => {
|
|
240
241
|
if (Ae(n)) {
|
|
241
242
|
t = !0;
|
|
242
243
|
return;
|
|
243
244
|
}
|
|
244
245
|
}), t;
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
248
|
-
var
|
|
249
|
-
Ae(n) && i((
|
|
247
|
+
function bt(e, t) {
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
249
|
+
var a;
|
|
250
|
+
Ae(n) && i((a = n[t]) != null ? a : void 0);
|
|
250
251
|
}), e);
|
|
251
252
|
}
|
|
252
|
-
function
|
|
253
|
+
function pt(e, t) {
|
|
253
254
|
var n, i;
|
|
254
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && gt((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 = bt(e.component.options, t != null ? t : "Default")), e;
|
|
255
256
|
}
|
|
256
|
-
const
|
|
257
|
+
const ce = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
257
258
|
if (Object(e) !== e)
|
|
258
259
|
return e;
|
|
259
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
260
|
-
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;
|
|
261
262
|
};
|
|
262
|
-
function
|
|
263
|
+
function re(e) {
|
|
263
264
|
if (e === null || typeof e != "object")
|
|
264
265
|
return e;
|
|
265
266
|
if (Array.isArray(e))
|
|
266
|
-
return e.map((n) =>
|
|
267
|
+
return e.map((n) => re(n));
|
|
267
268
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
268
269
|
return e;
|
|
269
270
|
const t = {};
|
|
270
271
|
for (const n in e)
|
|
271
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
272
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = re(e[n]));
|
|
272
273
|
return t;
|
|
273
274
|
}
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
276
|
-
const t =
|
|
275
|
+
const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) => {
|
|
276
|
+
if (yt) {
|
|
277
|
+
const t = ce(e);
|
|
277
278
|
return {
|
|
278
279
|
...t,
|
|
279
280
|
properties: {
|
|
@@ -284,7 +285,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) =
|
|
|
284
285
|
}
|
|
285
286
|
};
|
|
286
287
|
} else {
|
|
287
|
-
const t =
|
|
288
|
+
const t = re(ht(e, "children", "meta"));
|
|
288
289
|
return {
|
|
289
290
|
...t,
|
|
290
291
|
properties: {
|
|
@@ -302,143 +303,143 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), yt = (e) =
|
|
|
302
303
|
context: t,
|
|
303
304
|
localState: n,
|
|
304
305
|
rootState: i,
|
|
305
|
-
rootSetState:
|
|
306
|
+
rootSetState: a
|
|
306
307
|
}) => {
|
|
307
308
|
if (!e.bindings)
|
|
308
309
|
return e;
|
|
309
|
-
const
|
|
310
|
+
const o = vt(e);
|
|
310
311
|
for (const r in e.bindings) {
|
|
311
|
-
const l = e.bindings[r],
|
|
312
|
+
const l = e.bindings[r], u = L({
|
|
312
313
|
code: l,
|
|
313
314
|
localState: n,
|
|
314
315
|
rootState: i,
|
|
315
|
-
rootSetState:
|
|
316
|
+
rootSetState: a,
|
|
316
317
|
context: t
|
|
317
318
|
});
|
|
318
|
-
|
|
319
|
+
We(o, r, u);
|
|
319
320
|
}
|
|
320
|
-
return
|
|
321
|
+
return o;
|
|
321
322
|
};
|
|
322
|
-
function
|
|
323
|
+
function St({
|
|
323
324
|
block: e,
|
|
324
325
|
context: t,
|
|
325
326
|
localState: n,
|
|
326
327
|
rootState: i,
|
|
327
|
-
rootSetState:
|
|
328
|
+
rootSetState: a
|
|
328
329
|
}) {
|
|
329
|
-
let
|
|
330
|
-
return
|
|
331
|
-
block:
|
|
330
|
+
let o = pt(e, i.locale);
|
|
331
|
+
return o = o, xt({
|
|
332
|
+
block: o,
|
|
332
333
|
localState: n,
|
|
333
334
|
rootState: i,
|
|
334
|
-
rootSetState:
|
|
335
|
+
rootSetState: a,
|
|
335
336
|
context: t
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
|
-
const
|
|
339
|
-
function
|
|
340
|
-
let i,
|
|
341
|
-
const
|
|
342
|
-
l = n.leading === !1 ? 0 : Date.now(), r = null,
|
|
339
|
+
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
+
function kt(e, t, n = {}) {
|
|
341
|
+
let i, a, o, r = null, l = 0;
|
|
342
|
+
const u = function() {
|
|
343
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
343
344
|
};
|
|
344
345
|
return function() {
|
|
345
346
|
const c = Date.now();
|
|
346
347
|
!l && n.leading === !1 && (l = c);
|
|
347
348
|
const h = t - (c - l);
|
|
348
|
-
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(u, h)), o;
|
|
349
350
|
};
|
|
350
351
|
}
|
|
351
|
-
function
|
|
352
|
+
function _(e, ...t) {
|
|
352
353
|
const n = Object(e);
|
|
353
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
354
|
-
const
|
|
355
|
-
if (
|
|
356
|
-
for (const
|
|
357
|
-
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]);
|
|
358
359
|
}
|
|
359
360
|
return n;
|
|
360
361
|
}
|
|
361
|
-
function
|
|
362
|
+
function Ct(e) {
|
|
362
363
|
for (const t of e)
|
|
363
364
|
switch (t.trigger) {
|
|
364
365
|
case "pageLoad":
|
|
365
|
-
|
|
366
|
+
Fe(t);
|
|
366
367
|
break;
|
|
367
368
|
case "scrollInView":
|
|
368
|
-
|
|
369
|
+
wt(t);
|
|
369
370
|
break;
|
|
370
371
|
}
|
|
371
372
|
}
|
|
372
|
-
function
|
|
373
|
+
function De(e) {
|
|
373
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
374
375
|
}
|
|
375
|
-
function
|
|
376
|
-
const n =
|
|
376
|
+
function $e(e, t) {
|
|
377
|
+
const n = Tt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
|
|
377
378
|
for (const l of r)
|
|
378
|
-
for (const
|
|
379
|
-
|
|
379
|
+
for (const u of n)
|
|
380
|
+
u in l || (l[u] = i[u]);
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
+
function Tt(e) {
|
|
382
383
|
const t = [];
|
|
383
384
|
for (const n of e.steps)
|
|
384
385
|
for (const i in n.styles)
|
|
385
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
386
387
|
return t;
|
|
387
388
|
}
|
|
388
|
-
function
|
|
389
|
+
function Fe(e) {
|
|
389
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
390
391
|
if (!t.length) {
|
|
391
|
-
|
|
392
|
+
De(e.elementId || e.id || "");
|
|
392
393
|
return;
|
|
393
394
|
}
|
|
394
395
|
Array.from(t).forEach((n) => {
|
|
395
|
-
|
|
396
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
$e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
397
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
398
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
399
400
|
});
|
|
400
401
|
});
|
|
401
402
|
}
|
|
402
|
-
function
|
|
403
|
+
function wt(e) {
|
|
403
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
404
405
|
if (!t.length) {
|
|
405
|
-
|
|
406
|
+
De(e.elementId || e.id || "");
|
|
406
407
|
return;
|
|
407
408
|
}
|
|
408
409
|
Array.from(t).forEach((n) => {
|
|
409
|
-
|
|
410
|
-
let i = !1,
|
|
411
|
-
function
|
|
412
|
-
!i && l(n) ? (i = !0,
|
|
413
|
-
|
|
414
|
-
|
|
410
|
+
$e(e, n);
|
|
411
|
+
let i = !1, a = !1;
|
|
412
|
+
function o() {
|
|
413
|
+
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
414
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
|
+
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
415
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
416
|
-
})) : e.repeat && i && !
|
|
417
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, _(n.style, e.steps[0].styles));
|
|
417
418
|
}
|
|
418
|
-
const r =
|
|
419
|
+
const r = kt(o, 200, {
|
|
419
420
|
leading: !1
|
|
420
421
|
});
|
|
421
422
|
function l(h) {
|
|
422
|
-
const
|
|
423
|
-
return
|
|
423
|
+
const g = h.getBoundingClientRect(), d = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * d;
|
|
424
|
+
return g.bottom > f && g.top < d - f;
|
|
424
425
|
}
|
|
425
|
-
const
|
|
426
|
+
const u = e.steps[0].styles;
|
|
426
427
|
function c() {
|
|
427
|
-
|
|
428
|
+
_(n.style, u);
|
|
428
429
|
}
|
|
429
430
|
c(), setTimeout(() => {
|
|
430
|
-
n.style.transition = `all ${e.duration}s ${
|
|
431
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
431
432
|
}), document.addEventListener("scroll", r, {
|
|
432
433
|
capture: !0,
|
|
433
434
|
passive: !0
|
|
434
|
-
}),
|
|
435
|
+
}), o();
|
|
435
436
|
});
|
|
436
437
|
}
|
|
437
438
|
const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
438
439
|
if (typeof i == "string")
|
|
439
|
-
return `${
|
|
440
|
-
}).filter(
|
|
441
|
-
`),
|
|
440
|
+
return `${X(n)}: ${i};`;
|
|
441
|
+
}).filter(K), It = (e) => Oe(e).join(`
|
|
442
|
+
`), U = ({
|
|
442
443
|
mediaQuery: e,
|
|
443
444
|
className: t,
|
|
444
445
|
styles: n
|
|
@@ -450,21 +451,21 @@ const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
|
450
451
|
${i}
|
|
451
452
|
}` : i;
|
|
452
453
|
};
|
|
453
|
-
function
|
|
454
|
+
function Et({
|
|
454
455
|
style: e
|
|
455
456
|
}) {
|
|
456
457
|
return e;
|
|
457
458
|
}
|
|
458
|
-
const
|
|
459
|
+
const Rt = ({
|
|
459
460
|
block: e,
|
|
460
461
|
context: t
|
|
461
|
-
}) =>
|
|
462
|
+
}) => Le(Et({
|
|
462
463
|
style: e.style || {},
|
|
463
464
|
context: t,
|
|
464
465
|
block: e
|
|
465
466
|
}));
|
|
466
|
-
function
|
|
467
|
-
switch (
|
|
467
|
+
function Le(e) {
|
|
468
|
+
switch (O) {
|
|
468
469
|
case "svelte":
|
|
469
470
|
case "vue":
|
|
470
471
|
case "solid":
|
|
@@ -477,24 +478,24 @@ function De(e) {
|
|
|
477
478
|
return e;
|
|
478
479
|
}
|
|
479
480
|
}
|
|
480
|
-
const
|
|
481
|
+
const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Pt = ({
|
|
481
482
|
block: e,
|
|
482
483
|
registeredComponents: t,
|
|
483
484
|
model: n
|
|
484
485
|
}) => {
|
|
485
|
-
var
|
|
486
|
-
const i = (
|
|
486
|
+
var o;
|
|
487
|
+
const i = (o = e.component) == null ? void 0 : o.name;
|
|
487
488
|
if (!i)
|
|
488
489
|
return null;
|
|
489
|
-
const
|
|
490
|
-
if (!
|
|
490
|
+
const a = t[i];
|
|
491
|
+
if (!a || Ue(a, n)) {
|
|
491
492
|
console.warn(`
|
|
492
493
|
Could not find a registered component named "${i}".
|
|
493
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
494
495
|
return;
|
|
495
496
|
} else
|
|
496
|
-
return
|
|
497
|
-
},
|
|
497
|
+
return a;
|
|
498
|
+
}, Vt = ({
|
|
498
499
|
block: e,
|
|
499
500
|
context: t
|
|
500
501
|
}) => {
|
|
@@ -504,24 +505,24 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
504
505
|
} = e;
|
|
505
506
|
if (!(n != null && n.collection))
|
|
506
507
|
return;
|
|
507
|
-
const
|
|
508
|
+
const a = L({
|
|
508
509
|
code: n.collection,
|
|
509
510
|
localState: t.localState,
|
|
510
511
|
rootState: t.rootState,
|
|
511
512
|
rootSetState: t.rootSetState,
|
|
512
513
|
context: t.context
|
|
513
514
|
});
|
|
514
|
-
if (!Array.isArray(
|
|
515
|
+
if (!Array.isArray(a))
|
|
515
516
|
return;
|
|
516
|
-
const
|
|
517
|
-
return
|
|
517
|
+
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
+
return a.map((u, c) => ({
|
|
518
519
|
context: {
|
|
519
520
|
...t,
|
|
520
521
|
localState: {
|
|
521
522
|
...t.localState,
|
|
522
523
|
$index: c,
|
|
523
|
-
$item:
|
|
524
|
-
[r]:
|
|
524
|
+
$item: u,
|
|
525
|
+
[r]: u,
|
|
525
526
|
[`$${r}Index`]: c
|
|
526
527
|
}
|
|
527
528
|
},
|
|
@@ -532,24 +533,29 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
532
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
533
534
|
builderLinkComponent: t
|
|
534
535
|
} : {};
|
|
535
|
-
},
|
|
536
|
+
}, Nt = (e, t, n) => {
|
|
536
537
|
var i;
|
|
537
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
538
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !Ue(r, n)))
|
|
539
540
|
} : {};
|
|
540
541
|
}, At = (e, t) => {
|
|
541
542
|
var n;
|
|
542
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
543
544
|
builderBlock: t
|
|
544
545
|
} : {};
|
|
545
|
-
},
|
|
546
|
+
}, Wt = (e, t) => {
|
|
546
547
|
var n;
|
|
547
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
548
549
|
builderContext: t
|
|
549
550
|
} : {};
|
|
550
|
-
},
|
|
551
|
+
}, _e = {
|
|
552
|
+
xsmall: {
|
|
553
|
+
min: 0,
|
|
554
|
+
default: 160,
|
|
555
|
+
max: 320
|
|
556
|
+
},
|
|
551
557
|
small: {
|
|
552
|
-
min:
|
|
558
|
+
min: 321,
|
|
553
559
|
default: 321,
|
|
554
560
|
max: 640
|
|
555
561
|
},
|
|
@@ -563,34 +569,46 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
563
569
|
default: 991,
|
|
564
570
|
max: 1200
|
|
565
571
|
}
|
|
566
|
-
},
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
572
|
+
}, ee = (e, t = _e) => `@media (max-width: ${t[e].max}px)`, qe = (e) => {
|
|
573
|
+
const t = ce(_e);
|
|
574
|
+
if (!e)
|
|
575
|
+
return t;
|
|
576
|
+
const {
|
|
577
|
+
xsmall: n,
|
|
578
|
+
small: i,
|
|
579
|
+
medium: a
|
|
580
|
+
} = e;
|
|
581
|
+
if (n) {
|
|
582
|
+
const u = Math.floor(n / 2);
|
|
583
|
+
t.xsmall = {
|
|
584
|
+
max: n,
|
|
585
|
+
min: u,
|
|
586
|
+
default: u + 1
|
|
587
|
+
};
|
|
588
|
+
}
|
|
589
|
+
if (!i || !a)
|
|
590
|
+
return t;
|
|
591
|
+
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
592
|
+
t.small = {
|
|
593
|
+
max: i,
|
|
582
594
|
min: o,
|
|
583
595
|
default: o + 1
|
|
584
596
|
};
|
|
585
|
-
const
|
|
586
|
-
|
|
597
|
+
const r = t.small.max + 1;
|
|
598
|
+
t.medium = {
|
|
599
|
+
max: a,
|
|
600
|
+
min: r,
|
|
601
|
+
default: r + 1
|
|
602
|
+
};
|
|
603
|
+
const l = t.medium.max + 1;
|
|
604
|
+
return t.large = {
|
|
587
605
|
max: 2e3,
|
|
588
606
|
// TODO: decide upper limit
|
|
589
|
-
min:
|
|
590
|
-
default:
|
|
591
|
-
},
|
|
607
|
+
min: l,
|
|
608
|
+
default: l + 1
|
|
609
|
+
}, t;
|
|
592
610
|
};
|
|
593
|
-
function
|
|
611
|
+
function H(e) {
|
|
594
612
|
return /* @__PURE__ */ s(
|
|
595
613
|
"style",
|
|
596
614
|
{
|
|
@@ -600,59 +618,67 @@ function Y(e) {
|
|
|
600
618
|
}
|
|
601
619
|
);
|
|
602
620
|
}
|
|
603
|
-
function
|
|
621
|
+
function Dt(e) {
|
|
604
622
|
function t() {
|
|
605
623
|
const i = e.block;
|
|
606
|
-
return
|
|
624
|
+
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
607
625
|
}
|
|
608
626
|
function n() {
|
|
609
|
-
var
|
|
610
|
-
const i = e.block,
|
|
611
|
-
((
|
|
612
|
-
), l = o == null ? void 0 : o.large,
|
|
613
|
-
if (!
|
|
627
|
+
var T, P, I, v, m;
|
|
628
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = qe(
|
|
629
|
+
((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
|
|
630
|
+
), l = !!((I = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && I.xsmall), u = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, d = i.id;
|
|
631
|
+
if (!d)
|
|
614
632
|
return "";
|
|
615
|
-
const
|
|
616
|
-
className:
|
|
617
|
-
styles:
|
|
618
|
-
}) : "",
|
|
619
|
-
className:
|
|
620
|
-
styles:
|
|
621
|
-
mediaQuery:
|
|
633
|
+
const k = u ? U({
|
|
634
|
+
className: d,
|
|
635
|
+
styles: u
|
|
636
|
+
}) : "", f = c ? U({
|
|
637
|
+
className: d,
|
|
638
|
+
styles: c,
|
|
639
|
+
mediaQuery: ee(
|
|
622
640
|
"medium",
|
|
623
641
|
r
|
|
624
642
|
)
|
|
625
|
-
}) : "",
|
|
626
|
-
className:
|
|
627
|
-
styles:
|
|
628
|
-
mediaQuery:
|
|
643
|
+
}) : "", b = h ? U({
|
|
644
|
+
className: d,
|
|
645
|
+
styles: h,
|
|
646
|
+
mediaQuery: ee(
|
|
629
647
|
"small",
|
|
630
648
|
r
|
|
631
649
|
)
|
|
632
|
-
}) : "",
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
650
|
+
}) : "", x = g && l ? U({
|
|
651
|
+
className: d,
|
|
652
|
+
styles: g,
|
|
653
|
+
mediaQuery: ee(
|
|
654
|
+
"xsmall",
|
|
655
|
+
r
|
|
656
|
+
)
|
|
657
|
+
}) : "", y = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
|
+
let S = "";
|
|
659
|
+
if (y) {
|
|
660
|
+
const p = ((m = (v = y.steps) == null ? void 0 : v[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
S = U({
|
|
662
|
+
className: `${d}:hover`,
|
|
638
663
|
styles: {
|
|
639
|
-
...
|
|
640
|
-
transition: `all ${
|
|
641
|
-
|
|
664
|
+
...p,
|
|
665
|
+
transition: `all ${y.duration}s ${X(
|
|
666
|
+
y.easing
|
|
642
667
|
)}`,
|
|
643
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
644
669
|
}
|
|
645
670
|
}) || "";
|
|
646
671
|
}
|
|
647
672
|
return [
|
|
648
|
-
m,
|
|
649
|
-
u,
|
|
650
673
|
k,
|
|
651
|
-
|
|
674
|
+
f,
|
|
675
|
+
b,
|
|
676
|
+
x,
|
|
677
|
+
S
|
|
652
678
|
].join(" ");
|
|
653
679
|
}
|
|
654
|
-
return /* @__PURE__ */ s(
|
|
655
|
-
|
|
680
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
+
H,
|
|
656
682
|
{
|
|
657
683
|
id: "builderio-block",
|
|
658
684
|
styles: n(),
|
|
@@ -660,10 +686,10 @@ function Wt(e) {
|
|
|
660
686
|
}
|
|
661
687
|
) }) : null });
|
|
662
688
|
}
|
|
663
|
-
function
|
|
689
|
+
function $t(e) {
|
|
664
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
665
691
|
}
|
|
666
|
-
const
|
|
692
|
+
const Ft = (e) => `on${$t(e)}`, Ot = (e, t) => (n) => L({
|
|
667
693
|
code: e,
|
|
668
694
|
context: t.context,
|
|
669
695
|
localState: t.localState,
|
|
@@ -672,16 +698,16 @@ const $t = (e) => `on${Ft(e)}`, Ot = (e, t) => (n) => L({
|
|
|
672
698
|
event: n,
|
|
673
699
|
isExpression: !1
|
|
674
700
|
});
|
|
675
|
-
function
|
|
701
|
+
function Me(e) {
|
|
676
702
|
var i;
|
|
677
703
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
678
|
-
for (const
|
|
679
|
-
if (!n.hasOwnProperty(
|
|
704
|
+
for (const a in n) {
|
|
705
|
+
if (!n.hasOwnProperty(a))
|
|
680
706
|
continue;
|
|
681
|
-
const
|
|
682
|
-
let r =
|
|
707
|
+
const o = n[a];
|
|
708
|
+
let r = Ft(a);
|
|
683
709
|
if (e.stripPrefix)
|
|
684
|
-
switch (
|
|
710
|
+
switch (O) {
|
|
685
711
|
case "vue":
|
|
686
712
|
r = r.replace("v-on:", "");
|
|
687
713
|
break;
|
|
@@ -689,49 +715,49 @@ function He(e) {
|
|
|
689
715
|
r = r.replace("on:", "");
|
|
690
716
|
break;
|
|
691
717
|
}
|
|
692
|
-
t[r] = Ot(
|
|
718
|
+
t[r] = Ot(o, e);
|
|
693
719
|
}
|
|
694
720
|
return t;
|
|
695
721
|
}
|
|
696
|
-
function
|
|
722
|
+
function Lt({
|
|
697
723
|
properties: e
|
|
698
724
|
}) {
|
|
699
725
|
return e;
|
|
700
726
|
}
|
|
701
|
-
const
|
|
727
|
+
const Ut = (e) => ({
|
|
702
728
|
href: e.href
|
|
703
729
|
});
|
|
704
|
-
function
|
|
730
|
+
function ue({
|
|
705
731
|
block: e,
|
|
706
732
|
context: t
|
|
707
733
|
}) {
|
|
708
734
|
var i;
|
|
709
735
|
const n = {
|
|
710
|
-
...
|
|
736
|
+
...Ut(e),
|
|
711
737
|
...e.properties,
|
|
712
738
|
"builder-id": e.id,
|
|
713
|
-
style:
|
|
739
|
+
style: Rt({
|
|
714
740
|
block: e,
|
|
715
741
|
context: t
|
|
716
742
|
}),
|
|
717
|
-
[
|
|
743
|
+
[M()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
718
744
|
};
|
|
719
|
-
return
|
|
745
|
+
return Lt({
|
|
720
746
|
properties: n,
|
|
721
747
|
context: t,
|
|
722
748
|
block: e
|
|
723
749
|
});
|
|
724
750
|
}
|
|
725
|
-
function
|
|
751
|
+
function _t(e) {
|
|
726
752
|
return /* @__PURE__ */ s(
|
|
727
|
-
|
|
753
|
+
le,
|
|
728
754
|
{
|
|
729
755
|
TagName: e.Wrapper,
|
|
730
|
-
attributes:
|
|
756
|
+
attributes: ue({
|
|
731
757
|
block: e.block,
|
|
732
758
|
context: e.context
|
|
733
759
|
}),
|
|
734
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: Me({
|
|
735
761
|
block: e.block,
|
|
736
762
|
rootState: e.context.rootState,
|
|
737
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -743,18 +769,18 @@ function Ut(e) {
|
|
|
743
769
|
}
|
|
744
770
|
);
|
|
745
771
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
748
|
-
}, []), /* @__PURE__ */ s(
|
|
772
|
+
function qt(e) {
|
|
773
|
+
return N(() => {
|
|
774
|
+
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
749
775
|
}
|
|
750
|
-
function
|
|
776
|
+
function Mt(e) {
|
|
751
777
|
function t() {
|
|
752
778
|
return e.includeBlockProps ? {
|
|
753
|
-
...
|
|
779
|
+
...ue({
|
|
754
780
|
block: e.block,
|
|
755
781
|
context: e.context
|
|
756
782
|
}),
|
|
757
|
-
...
|
|
783
|
+
...Me({
|
|
758
784
|
block: e.block,
|
|
759
785
|
rootState: e.context.rootState,
|
|
760
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -763,8 +789,8 @@ function Ht(e) {
|
|
|
763
789
|
})
|
|
764
790
|
} : {};
|
|
765
791
|
}
|
|
766
|
-
return /* @__PURE__ */ s(
|
|
767
|
-
|
|
792
|
+
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
+
qt,
|
|
768
794
|
{
|
|
769
795
|
load: e.Wrapper.load,
|
|
770
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -774,13 +800,13 @@ function Ht(e) {
|
|
|
774
800
|
}
|
|
775
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
776
802
|
}
|
|
777
|
-
const
|
|
803
|
+
const Ht = ({
|
|
778
804
|
componentOptions: e,
|
|
779
805
|
builderBlock: t,
|
|
780
806
|
context: n,
|
|
781
807
|
componentRef: i,
|
|
782
|
-
includeBlockProps:
|
|
783
|
-
isInteractive:
|
|
808
|
+
includeBlockProps: a,
|
|
809
|
+
isInteractive: o,
|
|
784
810
|
contextValue: r
|
|
785
811
|
}) => {
|
|
786
812
|
const l = {
|
|
@@ -789,30 +815,30 @@ const Mt = ({
|
|
|
789
815
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
790
816
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
791
817
|
*/
|
|
792
|
-
...
|
|
793
|
-
attributes:
|
|
818
|
+
...a ? {
|
|
819
|
+
attributes: ue({
|
|
794
820
|
block: t,
|
|
795
821
|
context: r
|
|
796
822
|
})
|
|
797
823
|
} : {}
|
|
798
824
|
};
|
|
799
|
-
return
|
|
825
|
+
return o ? {
|
|
800
826
|
Wrapper: i,
|
|
801
827
|
block: t,
|
|
802
828
|
context: n,
|
|
803
829
|
wrapperProps: e,
|
|
804
|
-
includeBlockProps:
|
|
830
|
+
includeBlockProps: a
|
|
805
831
|
} : l;
|
|
806
832
|
};
|
|
807
|
-
function
|
|
833
|
+
function pe(e) {
|
|
808
834
|
var i;
|
|
809
|
-
const [t, n] =
|
|
810
|
-
() => e.isInteractive ?
|
|
835
|
+
const [t, n] = E(
|
|
836
|
+
() => e.isInteractive ? Mt : e.componentRef
|
|
811
837
|
);
|
|
812
|
-
return /* @__PURE__ */ s(
|
|
838
|
+
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
813
839
|
t,
|
|
814
840
|
{
|
|
815
|
-
...
|
|
841
|
+
...Ht({
|
|
816
842
|
componentOptions: e.componentOptions,
|
|
817
843
|
builderBlock: e.builderBlock,
|
|
818
844
|
context: e.context,
|
|
@@ -822,23 +848,23 @@ function be(e) {
|
|
|
822
848
|
isInteractive: e.isInteractive,
|
|
823
849
|
contextValue: e.context
|
|
824
850
|
}),
|
|
825
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
826
|
-
|
|
851
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
852
|
+
Z,
|
|
827
853
|
{
|
|
828
|
-
block:
|
|
854
|
+
block: a,
|
|
829
855
|
context: e.context,
|
|
830
856
|
registeredComponents: e.registeredComponents,
|
|
831
857
|
linkComponent: e.linkComponent
|
|
832
858
|
},
|
|
833
|
-
|
|
859
|
+
a.id
|
|
834
860
|
))
|
|
835
861
|
}
|
|
836
862
|
) }) : null });
|
|
837
863
|
}
|
|
838
|
-
function
|
|
839
|
-
const [t, n] =
|
|
840
|
-
return /* @__PURE__ */ s(
|
|
841
|
-
|
|
864
|
+
function ye(e) {
|
|
865
|
+
const [t, n] = E(() => e.repeatContext);
|
|
866
|
+
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
867
|
+
Z,
|
|
842
868
|
{
|
|
843
869
|
block: e.block,
|
|
844
870
|
context: t,
|
|
@@ -847,65 +873,65 @@ function pe(e) {
|
|
|
847
873
|
}
|
|
848
874
|
) });
|
|
849
875
|
}
|
|
850
|
-
function
|
|
851
|
-
var h,
|
|
876
|
+
function Z(e) {
|
|
877
|
+
var h, g, d, k;
|
|
852
878
|
function t() {
|
|
853
|
-
return
|
|
879
|
+
return Vt({
|
|
854
880
|
block: e.block,
|
|
855
881
|
context: e.context
|
|
856
882
|
});
|
|
857
883
|
}
|
|
858
|
-
const [n, i] =
|
|
884
|
+
const [n, i] = E(() => ({
|
|
859
885
|
value: null,
|
|
860
886
|
update: !1
|
|
861
887
|
}));
|
|
862
|
-
function
|
|
863
|
-
var
|
|
864
|
-
if (n.value && !n.update && !
|
|
888
|
+
function a() {
|
|
889
|
+
var b;
|
|
890
|
+
if (n.value && !n.update && !Y())
|
|
865
891
|
return n.value;
|
|
866
|
-
const
|
|
892
|
+
const f = (b = e.block.repeat) != null && b.collection ? e.block : St({
|
|
867
893
|
block: e.block,
|
|
868
894
|
localState: e.context.localState,
|
|
869
895
|
rootState: e.context.rootState,
|
|
870
896
|
rootSetState: e.context.rootSetState,
|
|
871
897
|
context: e.context.context
|
|
872
898
|
});
|
|
873
|
-
return n.value =
|
|
899
|
+
return n.value = f, n.update = !1, f;
|
|
874
900
|
}
|
|
875
|
-
function
|
|
876
|
-
return
|
|
877
|
-
block:
|
|
901
|
+
function o() {
|
|
902
|
+
return Pt({
|
|
903
|
+
block: a(),
|
|
878
904
|
registeredComponents: e.registeredComponents,
|
|
879
905
|
model: e.context.model
|
|
880
906
|
});
|
|
881
907
|
}
|
|
882
908
|
function r() {
|
|
883
|
-
var
|
|
884
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var b;
|
|
910
|
+
return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
885
911
|
}
|
|
886
912
|
function l() {
|
|
887
|
-
var
|
|
888
|
-
if ((
|
|
889
|
-
return !!((
|
|
890
|
-
const
|
|
891
|
-
return ("show" in
|
|
913
|
+
var x, y;
|
|
914
|
+
if ((x = e.block.repeat) != null && x.collection)
|
|
915
|
+
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
916
|
+
const f = "hide" in a() ? a().hide : !1;
|
|
917
|
+
return ("show" in a() ? a().show : !0) && !f;
|
|
892
918
|
}
|
|
893
|
-
function
|
|
894
|
-
var
|
|
895
|
-
return !((
|
|
919
|
+
function u() {
|
|
920
|
+
var b, x;
|
|
921
|
+
return !((b = o == null ? void 0 : o()) != null && b.component) && !t() ? (x = a().children) != null ? x : [] : [];
|
|
896
922
|
}
|
|
897
923
|
function c() {
|
|
898
|
-
var
|
|
924
|
+
var f, b, x, y;
|
|
899
925
|
return {
|
|
900
|
-
blockChildren: (
|
|
901
|
-
componentRef: (
|
|
926
|
+
blockChildren: (f = a().children) != null ? f : [],
|
|
927
|
+
componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
|
|
902
928
|
componentOptions: {
|
|
903
|
-
...
|
|
904
|
-
...At(
|
|
905
|
-
...
|
|
906
|
-
...Bt(
|
|
907
|
-
...
|
|
908
|
-
|
|
929
|
+
...mt(a(), e.context),
|
|
930
|
+
...At(o(), a()),
|
|
931
|
+
...Wt(o(), e.context),
|
|
932
|
+
...Bt(o(), e.linkComponent),
|
|
933
|
+
...Nt(
|
|
934
|
+
o(),
|
|
909
935
|
e.registeredComponents,
|
|
910
936
|
e.context.model
|
|
911
937
|
)
|
|
@@ -913,34 +939,34 @@ function Q(e) {
|
|
|
913
939
|
context: e.context,
|
|
914
940
|
linkComponent: e.linkComponent,
|
|
915
941
|
registeredComponents: e.registeredComponents,
|
|
916
|
-
builderBlock:
|
|
917
|
-
includeBlockProps: ((
|
|
918
|
-
isInteractive: !((
|
|
942
|
+
builderBlock: a(),
|
|
943
|
+
includeBlockProps: ((x = o == null ? void 0 : o()) == null ? void 0 : x.noWrap) === !0,
|
|
944
|
+
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && O === "rsc")
|
|
919
945
|
};
|
|
920
946
|
}
|
|
921
|
-
return
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
...
|
|
926
|
-
elementId:
|
|
947
|
+
return N(() => {
|
|
948
|
+
const f = a().id, b = a().animations;
|
|
949
|
+
b && f && Ct(
|
|
950
|
+
b.map((x) => ({
|
|
951
|
+
...x,
|
|
952
|
+
elementId: f
|
|
927
953
|
}))
|
|
928
954
|
);
|
|
929
|
-
}, []),
|
|
955
|
+
}, []), N(() => {
|
|
930
956
|
n.update = !0;
|
|
931
|
-
}), /* @__PURE__ */ s(
|
|
932
|
-
/* @__PURE__ */ s(
|
|
933
|
-
(h =
|
|
934
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s(Dt, { block: a(), context: e.context }),
|
|
959
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((f, b) => /* @__PURE__ */ s(
|
|
960
|
+
ye,
|
|
935
961
|
{
|
|
936
|
-
repeatContext:
|
|
937
|
-
block:
|
|
962
|
+
repeatContext: f.context,
|
|
963
|
+
block: f.block,
|
|
938
964
|
registeredComponents: e.registeredComponents,
|
|
939
965
|
linkComponent: e.linkComponent
|
|
940
966
|
},
|
|
941
|
-
|
|
967
|
+
b
|
|
942
968
|
)) }) : /* @__PURE__ */ s(
|
|
943
|
-
|
|
969
|
+
pe,
|
|
944
970
|
{
|
|
945
971
|
componentRef: c().componentRef,
|
|
946
972
|
componentOptions: c().componentOptions,
|
|
@@ -952,24 +978,24 @@ function Q(e) {
|
|
|
952
978
|
includeBlockProps: c().includeBlockProps,
|
|
953
979
|
isInteractive: c().isInteractive
|
|
954
980
|
}
|
|
955
|
-
) : /* @__PURE__ */ s(
|
|
956
|
-
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (d = t()) == null ? void 0 : d.map((f, b) => /* @__PURE__ */ s(
|
|
982
|
+
ye,
|
|
957
983
|
{
|
|
958
|
-
repeatContext:
|
|
959
|
-
block:
|
|
984
|
+
repeatContext: f.context,
|
|
985
|
+
block: f.block,
|
|
960
986
|
registeredComponents: e.registeredComponents,
|
|
961
987
|
linkComponent: e.linkComponent
|
|
962
988
|
},
|
|
963
|
-
|
|
964
|
-
)) }) : /* @__PURE__ */
|
|
965
|
-
|
|
989
|
+
b
|
|
990
|
+
)) }) : /* @__PURE__ */ V(
|
|
991
|
+
_t,
|
|
966
992
|
{
|
|
967
993
|
Wrapper: r(),
|
|
968
|
-
block:
|
|
994
|
+
block: a(),
|
|
969
995
|
context: e.context,
|
|
970
996
|
children: [
|
|
971
997
|
/* @__PURE__ */ s(
|
|
972
|
-
|
|
998
|
+
pe,
|
|
973
999
|
{
|
|
974
1000
|
componentRef: c().componentRef,
|
|
975
1001
|
componentOptions: c().componentOptions,
|
|
@@ -982,15 +1008,15 @@ function Q(e) {
|
|
|
982
1008
|
isInteractive: c().isInteractive
|
|
983
1009
|
}
|
|
984
1010
|
),
|
|
985
|
-
(
|
|
986
|
-
|
|
1011
|
+
(g = u()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
1012
|
+
Z,
|
|
987
1013
|
{
|
|
988
|
-
block:
|
|
1014
|
+
block: f,
|
|
989
1015
|
registeredComponents: e.registeredComponents,
|
|
990
1016
|
linkComponent: e.linkComponent,
|
|
991
1017
|
context: e.context
|
|
992
1018
|
},
|
|
993
|
-
|
|
1019
|
+
f.id
|
|
994
1020
|
))
|
|
995
1021
|
]
|
|
996
1022
|
}
|
|
@@ -998,7 +1024,7 @@ function Q(e) {
|
|
|
998
1024
|
] }) : null });
|
|
999
1025
|
}
|
|
1000
1026
|
function jt(e) {
|
|
1001
|
-
const t =
|
|
1027
|
+
const t = F(null);
|
|
1002
1028
|
function n() {
|
|
1003
1029
|
var r;
|
|
1004
1030
|
return [
|
|
@@ -1010,10 +1036,10 @@ function jt(e) {
|
|
|
1010
1036
|
function i() {
|
|
1011
1037
|
if (!e.path)
|
|
1012
1038
|
return;
|
|
1013
|
-
const r = "component.options.";
|
|
1014
|
-
return e.path.startsWith(r) ? e.path : `${
|
|
1039
|
+
const r = "this.", l = "component.options.";
|
|
1040
|
+
return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
1015
1041
|
}
|
|
1016
|
-
function
|
|
1042
|
+
function a() {
|
|
1017
1043
|
var r, l;
|
|
1018
1044
|
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1019
1045
|
{
|
|
@@ -1026,7 +1052,7 @@ function jt(e) {
|
|
|
1026
1052
|
"*"
|
|
1027
1053
|
));
|
|
1028
1054
|
}
|
|
1029
|
-
function
|
|
1055
|
+
function o() {
|
|
1030
1056
|
var r, l;
|
|
1031
1057
|
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1032
1058
|
{
|
|
@@ -1039,33 +1065,33 @@ function jt(e) {
|
|
|
1039
1065
|
"*"
|
|
1040
1066
|
));
|
|
1041
1067
|
}
|
|
1042
|
-
return
|
|
1043
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return N(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
1044
1070
|
/* @__PURE__ */ s(
|
|
1045
1071
|
e.BlocksWrapper,
|
|
1046
1072
|
{
|
|
1047
1073
|
ref: t,
|
|
1048
|
-
className: n() + " props-blocks-wrapper-
|
|
1074
|
+
className: n() + " props-blocks-wrapper-2936bbfc",
|
|
1049
1075
|
"builder-path": i(),
|
|
1050
1076
|
"builder-parent-id": e.parent,
|
|
1051
1077
|
style: e.styleProp,
|
|
1052
|
-
onClick: (r) =>
|
|
1053
|
-
onMouseEnter: (r) =>
|
|
1054
|
-
onKeyPress: (r) =>
|
|
1078
|
+
onClick: (r) => a(),
|
|
1079
|
+
onMouseEnter: (r) => o(),
|
|
1080
|
+
onKeyPress: (r) => a(),
|
|
1055
1081
|
...e.BlocksWrapperProps,
|
|
1056
1082
|
children: e.children
|
|
1057
1083
|
}
|
|
1058
1084
|
),
|
|
1059
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1085
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2936bbfc {
|
|
1060
1086
|
display: flex;
|
|
1061
1087
|
flex-direction: column;
|
|
1062
1088
|
align-items: stretch;
|
|
1063
1089
|
}` })
|
|
1064
1090
|
] });
|
|
1065
1091
|
}
|
|
1066
|
-
function
|
|
1067
|
-
var i,
|
|
1068
|
-
const t =
|
|
1092
|
+
function D(e) {
|
|
1093
|
+
var i, a, o;
|
|
1094
|
+
const t = ge(se), n = ge(Ve);
|
|
1069
1095
|
return /* @__PURE__ */ s(
|
|
1070
1096
|
jt,
|
|
1071
1097
|
{
|
|
@@ -1075,9 +1101,9 @@ function F(e) {
|
|
|
1075
1101
|
styleProp: e.styleProp,
|
|
1076
1102
|
classNameProp: e.className,
|
|
1077
1103
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1078
|
-
BlocksWrapperProps: ((
|
|
1079
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
1080
|
-
|
|
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
|
+
Z,
|
|
1081
1107
|
{
|
|
1082
1108
|
block: r,
|
|
1083
1109
|
linkComponent: e.linkComponent,
|
|
@@ -1089,9 +1115,9 @@ function F(e) {
|
|
|
1089
1115
|
}
|
|
1090
1116
|
);
|
|
1091
1117
|
}
|
|
1092
|
-
const
|
|
1093
|
-
function
|
|
1094
|
-
var
|
|
1118
|
+
const zt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Kt(e) {
|
|
1120
|
+
var b, x;
|
|
1095
1121
|
function t() {
|
|
1096
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1097
1123
|
}
|
|
@@ -1101,28 +1127,28 @@ function zt(e) {
|
|
|
1101
1127
|
function i() {
|
|
1102
1128
|
return e.stackColumnsAt || "tablet";
|
|
1103
1129
|
}
|
|
1104
|
-
function
|
|
1105
|
-
return
|
|
1130
|
+
function a(y) {
|
|
1131
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1106
1132
|
}
|
|
1107
|
-
function
|
|
1108
|
-
var
|
|
1109
|
-
return ((
|
|
1133
|
+
function o(y) {
|
|
1134
|
+
var S;
|
|
1135
|
+
return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1110
1136
|
}
|
|
1111
|
-
function r(
|
|
1112
|
-
const
|
|
1113
|
-
return `calc(${
|
|
1137
|
+
function r(y) {
|
|
1138
|
+
const S = o(y), T = t() * (n().length - 1) * (S / 100);
|
|
1139
|
+
return `calc(${S}% - ${T}px)`;
|
|
1114
1140
|
}
|
|
1115
1141
|
function l({
|
|
1116
|
-
stackedStyle:
|
|
1117
|
-
desktopStyle:
|
|
1142
|
+
stackedStyle: y,
|
|
1143
|
+
desktopStyle: S
|
|
1118
1144
|
}) {
|
|
1119
|
-
return i() === "tablet" ?
|
|
1145
|
+
return i() === "tablet" ? y : S;
|
|
1120
1146
|
}
|
|
1121
|
-
function
|
|
1122
|
-
stackedStyle:
|
|
1123
|
-
desktopStyle:
|
|
1147
|
+
function u({
|
|
1148
|
+
stackedStyle: y,
|
|
1149
|
+
desktopStyle: S
|
|
1124
1150
|
}) {
|
|
1125
|
-
return i() === "never" ?
|
|
1151
|
+
return i() === "never" ? S : y;
|
|
1126
1152
|
}
|
|
1127
1153
|
function c() {
|
|
1128
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1136,114 +1162,114 @@ function zt(e) {
|
|
|
1136
1162
|
})
|
|
1137
1163
|
};
|
|
1138
1164
|
}
|
|
1139
|
-
function
|
|
1140
|
-
const
|
|
1165
|
+
function g(y) {
|
|
1166
|
+
const S = y === 0 ? 0 : t(), T = r(y), P = `${S}px`, I = "100%", v = 0;
|
|
1141
1167
|
return {
|
|
1142
1168
|
...{
|
|
1143
1169
|
display: "flex",
|
|
1144
1170
|
flexDirection: "column",
|
|
1145
1171
|
alignItems: "stretch"
|
|
1146
1172
|
},
|
|
1147
|
-
width:
|
|
1173
|
+
width: T,
|
|
1148
1174
|
["marginLeft"]: P,
|
|
1149
|
-
"--column-width-mobile":
|
|
1175
|
+
"--column-width-mobile": u({
|
|
1150
1176
|
stackedStyle: I,
|
|
1151
|
-
desktopStyle:
|
|
1177
|
+
desktopStyle: T
|
|
1152
1178
|
}),
|
|
1153
|
-
"--column-margin-left-mobile":
|
|
1154
|
-
stackedStyle:
|
|
1179
|
+
"--column-margin-left-mobile": u({
|
|
1180
|
+
stackedStyle: v,
|
|
1155
1181
|
desktopStyle: P
|
|
1156
1182
|
}),
|
|
1157
1183
|
"--column-width-tablet": l({
|
|
1158
1184
|
stackedStyle: I,
|
|
1159
|
-
desktopStyle:
|
|
1185
|
+
desktopStyle: T
|
|
1160
1186
|
}),
|
|
1161
1187
|
"--column-margin-left-tablet": l({
|
|
1162
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: v,
|
|
1163
1189
|
desktopStyle: P
|
|
1164
1190
|
})
|
|
1165
1191
|
};
|
|
1166
1192
|
}
|
|
1167
|
-
function
|
|
1168
|
-
var
|
|
1169
|
-
return
|
|
1170
|
-
((P = (
|
|
1171
|
-
)[
|
|
1193
|
+
function d(y) {
|
|
1194
|
+
var T, P;
|
|
1195
|
+
return qe(
|
|
1196
|
+
((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
+
)[y].max;
|
|
1172
1198
|
}
|
|
1173
1199
|
function k() {
|
|
1174
|
-
const
|
|
1200
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1175
1201
|
return `
|
|
1176
|
-
@media (max-width: ${
|
|
1202
|
+
@media (max-width: ${d("medium")}px) {
|
|
1177
1203
|
.${e.builderBlock.id}-breakpoints {
|
|
1178
1204
|
flex-direction: var(--flex-dir-tablet);
|
|
1179
1205
|
align-items: stretch;
|
|
1180
1206
|
}
|
|
1181
1207
|
|
|
1182
|
-
${
|
|
1208
|
+
${y} {
|
|
1183
1209
|
width: var(--column-width-tablet) !important;
|
|
1184
1210
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1185
1211
|
}
|
|
1186
1212
|
}
|
|
1187
1213
|
|
|
1188
|
-
@media (max-width: ${
|
|
1214
|
+
@media (max-width: ${d("small")}px) {
|
|
1189
1215
|
.${e.builderBlock.id}-breakpoints {
|
|
1190
1216
|
flex-direction: var(--flex-dir);
|
|
1191
1217
|
align-items: stretch;
|
|
1192
1218
|
}
|
|
1193
1219
|
|
|
1194
|
-
${
|
|
1220
|
+
${y} {
|
|
1195
1221
|
width: var(--column-width-mobile) !important;
|
|
1196
1222
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1197
1223
|
}
|
|
1198
1224
|
},
|
|
1199
1225
|
`;
|
|
1200
1226
|
}
|
|
1201
|
-
function
|
|
1227
|
+
function f(y, S) {
|
|
1202
1228
|
return {
|
|
1203
|
-
...
|
|
1204
|
-
href:
|
|
1229
|
+
...y.link ? {
|
|
1230
|
+
href: y.link
|
|
1205
1231
|
} : {},
|
|
1206
|
-
[
|
|
1207
|
-
style:
|
|
1232
|
+
[M()]: "builder-column",
|
|
1233
|
+
style: Le(g(S))
|
|
1208
1234
|
};
|
|
1209
1235
|
}
|
|
1210
|
-
return /* @__PURE__ */
|
|
1211
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ V(
|
|
1212
1238
|
"div",
|
|
1213
1239
|
{
|
|
1214
|
-
className:
|
|
1240
|
+
className: zt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1215
1241
|
style: h(),
|
|
1216
1242
|
children: [
|
|
1217
1243
|
/* @__PURE__ */ s(
|
|
1218
|
-
|
|
1244
|
+
H,
|
|
1219
1245
|
{
|
|
1220
1246
|
id: "builderio-columns",
|
|
1221
1247
|
styles: k(),
|
|
1222
1248
|
nonce: e.builderContext.nonce
|
|
1223
1249
|
}
|
|
1224
1250
|
),
|
|
1225
|
-
(
|
|
1226
|
-
|
|
1251
|
+
(x = e.columns) == null ? void 0 : x.map((y, S) => /* @__PURE__ */ s(
|
|
1252
|
+
le,
|
|
1227
1253
|
{
|
|
1228
|
-
TagName:
|
|
1254
|
+
TagName: a(y),
|
|
1229
1255
|
actionAttributes: {},
|
|
1230
|
-
attributes:
|
|
1256
|
+
attributes: f(y, S),
|
|
1231
1257
|
children: /* @__PURE__ */ s(
|
|
1232
|
-
|
|
1258
|
+
D,
|
|
1233
1259
|
{
|
|
1234
|
-
path: `columns.${
|
|
1260
|
+
path: `columns.${S}.blocks`,
|
|
1235
1261
|
parent: e.builderBlock.id,
|
|
1236
1262
|
context: e.builderContext,
|
|
1237
1263
|
registeredComponents: e.builderComponents,
|
|
1238
1264
|
linkComponent: e.builderLinkComponent,
|
|
1239
|
-
blocks:
|
|
1265
|
+
blocks: y.blocks,
|
|
1240
1266
|
styleProp: {
|
|
1241
1267
|
flexGrow: "1"
|
|
1242
1268
|
}
|
|
1243
1269
|
}
|
|
1244
1270
|
)
|
|
1245
1271
|
},
|
|
1246
|
-
|
|
1272
|
+
S
|
|
1247
1273
|
))
|
|
1248
1274
|
]
|
|
1249
1275
|
}
|
|
@@ -1254,55 +1280,55 @@ function zt(e) {
|
|
|
1254
1280
|
}` })
|
|
1255
1281
|
] });
|
|
1256
1282
|
}
|
|
1257
|
-
function
|
|
1283
|
+
function Jt(e) {
|
|
1258
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1259
1285
|
}
|
|
1260
|
-
function
|
|
1286
|
+
function ve(e) {
|
|
1261
1287
|
return e.replace(/http(s)?:/, "");
|
|
1262
1288
|
}
|
|
1263
|
-
function
|
|
1264
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1265
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1289
|
+
function Gt(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);
|
|
1266
1292
|
}
|
|
1267
|
-
function
|
|
1293
|
+
function Qt(e, t) {
|
|
1268
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1269
1295
|
return e;
|
|
1270
1296
|
if (t === "master")
|
|
1271
|
-
return
|
|
1297
|
+
return ve(e);
|
|
1272
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1273
1299
|
if (n) {
|
|
1274
|
-
const i = e.split(n[0]),
|
|
1275
|
-
return
|
|
1300
|
+
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1301
|
+
return ve(`${i[0]}_${o}${a}`);
|
|
1276
1302
|
}
|
|
1277
1303
|
return null;
|
|
1278
1304
|
}
|
|
1279
|
-
function
|
|
1305
|
+
function te(e) {
|
|
1280
1306
|
if (!e)
|
|
1281
1307
|
return e;
|
|
1282
1308
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1283
1309
|
if (e.match(/builder\.io/)) {
|
|
1284
1310
|
let n = e;
|
|
1285
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1286
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Gt(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1287
1313
|
}
|
|
1288
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Qt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1289
1315
|
}
|
|
1290
1316
|
function Yt(e) {
|
|
1291
|
-
var
|
|
1317
|
+
var a, o, r, l, u, c;
|
|
1292
1318
|
function t() {
|
|
1293
|
-
var
|
|
1294
|
-
const
|
|
1295
|
-
if (!
|
|
1319
|
+
var d;
|
|
1320
|
+
const g = e.image || e.src;
|
|
1321
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1296
1322
|
// images, otherwise you can supply this prop manually
|
|
1297
|
-
!(typeof
|
|
1323
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1298
1324
|
return e.srcset;
|
|
1299
1325
|
if (!e.noWebp) {
|
|
1300
|
-
if (e.srcset && ((
|
|
1326
|
+
if (e.srcset && ((d = e.image) != null && d.includes("builder.io/api/v1/image"))) {
|
|
1301
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1302
|
-
return console.debug("Removed given srcset"),
|
|
1328
|
+
return console.debug("Removed given srcset"), te(g);
|
|
1303
1329
|
} else if (e.image && !e.srcset)
|
|
1304
|
-
return
|
|
1305
|
-
return
|
|
1330
|
+
return te(g);
|
|
1331
|
+
return te(g);
|
|
1306
1332
|
}
|
|
1307
1333
|
}
|
|
1308
1334
|
function n() {
|
|
@@ -1319,9 +1345,9 @@ function Yt(e) {
|
|
|
1319
1345
|
};
|
|
1320
1346
|
return e.aspectRatio ? h : void 0;
|
|
1321
1347
|
}
|
|
1322
|
-
return /* @__PURE__ */
|
|
1323
|
-
/* @__PURE__ */
|
|
1324
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ V(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1325
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1326
1352
|
/* @__PURE__ */ s(
|
|
1327
1353
|
"img",
|
|
@@ -1342,7 +1368,7 @@ function Yt(e) {
|
|
|
1342
1368
|
}
|
|
1343
1369
|
)
|
|
1344
1370
|
] }),
|
|
1345
|
-
e.aspectRatio && !((
|
|
1371
|
+
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1346
1372
|
"div",
|
|
1347
1373
|
{
|
|
1348
1374
|
className: "builder-image-sizer div-9dac2184",
|
|
@@ -1351,8 +1377,8 @@ function Yt(e) {
|
|
|
1351
1377
|
}
|
|
1352
1378
|
}
|
|
1353
1379
|
) : null,
|
|
1354
|
-
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
1355
|
-
!e.fitContent && ((c = (
|
|
1380
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1381
|
+
!e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1356
1382
|
] }),
|
|
1357
1383
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1358
1384
|
opacity: 1;
|
|
@@ -1373,7 +1399,7 @@ function Yt(e) {
|
|
|
1373
1399
|
}` })
|
|
1374
1400
|
] });
|
|
1375
1401
|
}
|
|
1376
|
-
function
|
|
1402
|
+
function Xt(e) {
|
|
1377
1403
|
return /* @__PURE__ */ s(
|
|
1378
1404
|
"section",
|
|
1379
1405
|
{
|
|
@@ -1394,7 +1420,7 @@ function Qt(e) {
|
|
|
1394
1420
|
}
|
|
1395
1421
|
);
|
|
1396
1422
|
}
|
|
1397
|
-
const
|
|
1423
|
+
const ne = {
|
|
1398
1424
|
"@type": "@builder.io/sdk:Element",
|
|
1399
1425
|
layerName: "Accordion item title",
|
|
1400
1426
|
responsiveStyles: {
|
|
@@ -1423,7 +1449,7 @@ const Z = {
|
|
|
1423
1449
|
}
|
|
1424
1450
|
}
|
|
1425
1451
|
}]
|
|
1426
|
-
},
|
|
1452
|
+
}, ie = {
|
|
1427
1453
|
"@type": "@builder.io/sdk:Element",
|
|
1428
1454
|
layerName: "Accordion item detail",
|
|
1429
1455
|
responsiveStyles: {
|
|
@@ -1454,7 +1480,7 @@ const Z = {
|
|
|
1454
1480
|
}
|
|
1455
1481
|
}
|
|
1456
1482
|
}]
|
|
1457
|
-
},
|
|
1483
|
+
}, Zt = {
|
|
1458
1484
|
name: "Builder:Accordion",
|
|
1459
1485
|
canHaveChildren: !0,
|
|
1460
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1471,19 +1497,19 @@ const Z = {
|
|
|
1471
1497
|
name: "title",
|
|
1472
1498
|
type: "uiBlocks",
|
|
1473
1499
|
hideFromUI: !0,
|
|
1474
|
-
defaultValue: [
|
|
1500
|
+
defaultValue: [ne]
|
|
1475
1501
|
}, {
|
|
1476
1502
|
name: "detail",
|
|
1477
1503
|
type: "uiBlocks",
|
|
1478
1504
|
hideFromUI: !0,
|
|
1479
|
-
defaultValue: [
|
|
1505
|
+
defaultValue: [ie]
|
|
1480
1506
|
}],
|
|
1481
1507
|
defaultValue: [{
|
|
1482
|
-
title: [
|
|
1483
|
-
detail: [
|
|
1508
|
+
title: [ne],
|
|
1509
|
+
detail: [ie]
|
|
1484
1510
|
}, {
|
|
1485
|
-
title: [
|
|
1486
|
-
detail: [
|
|
1511
|
+
title: [ne],
|
|
1512
|
+
detail: [ie]
|
|
1487
1513
|
}],
|
|
1488
1514
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1489
1515
|
}, {
|
|
@@ -1519,13 +1545,13 @@ const Z = {
|
|
|
1519
1545
|
builderLinkComponent: !0
|
|
1520
1546
|
}
|
|
1521
1547
|
}, xe = (e) => e.toString();
|
|
1522
|
-
function
|
|
1523
|
-
var
|
|
1524
|
-
const [t, n] =
|
|
1548
|
+
function en(e) {
|
|
1549
|
+
var g;
|
|
1550
|
+
const [t, n] = E(() => []);
|
|
1525
1551
|
function i() {
|
|
1526
1552
|
return !!(e.grid || e.oneAtATime);
|
|
1527
1553
|
}
|
|
1528
|
-
function
|
|
1554
|
+
function a() {
|
|
1529
1555
|
return {
|
|
1530
1556
|
display: "flex",
|
|
1531
1557
|
alignItems: "stretch",
|
|
@@ -1537,7 +1563,7 @@ function Zt(e) {
|
|
|
1537
1563
|
}
|
|
1538
1564
|
};
|
|
1539
1565
|
}
|
|
1540
|
-
function
|
|
1566
|
+
function o() {
|
|
1541
1567
|
const k = {
|
|
1542
1568
|
...{
|
|
1543
1569
|
display: "flex",
|
|
@@ -1547,74 +1573,74 @@ function Zt(e) {
|
|
|
1547
1573
|
cursor: "pointer"
|
|
1548
1574
|
};
|
|
1549
1575
|
return Object.fromEntries(
|
|
1550
|
-
Object.entries(k).filter(([
|
|
1576
|
+
Object.entries(k).filter(([f, b]) => b !== void 0)
|
|
1551
1577
|
);
|
|
1552
1578
|
}
|
|
1553
|
-
function r(
|
|
1554
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1579
|
+
function r(d) {
|
|
1580
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(d) ? "open" : "closed"}`;
|
|
1555
1581
|
}
|
|
1556
|
-
function l(
|
|
1557
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1582
|
+
function l(d) {
|
|
1583
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(d) ? "open" : "closed"}`;
|
|
1558
1584
|
}
|
|
1559
|
-
function
|
|
1560
|
-
let
|
|
1585
|
+
function u() {
|
|
1586
|
+
let d = null;
|
|
1561
1587
|
if (e.grid && t.length && document) {
|
|
1562
|
-
const
|
|
1563
|
-
let
|
|
1564
|
-
`.builder-accordion-title[data-index="${
|
|
1588
|
+
const f = t[0];
|
|
1589
|
+
let x = document.querySelector(
|
|
1590
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1565
1591
|
);
|
|
1566
|
-
if (
|
|
1567
|
-
let
|
|
1568
|
-
for (;
|
|
1569
|
-
if (
|
|
1570
|
-
if (
|
|
1592
|
+
if (d = f, x) {
|
|
1593
|
+
let y = x.getBoundingClientRect();
|
|
1594
|
+
for (; x = x && x.nextElementSibling; )
|
|
1595
|
+
if (x) {
|
|
1596
|
+
if (x.classList.contains("builder-accordion-detail"))
|
|
1571
1597
|
continue;
|
|
1572
|
-
const
|
|
1573
|
-
if (
|
|
1574
|
-
const
|
|
1575
|
-
|
|
1598
|
+
const S = x.getBoundingClientRect();
|
|
1599
|
+
if (S.left > y.left) {
|
|
1600
|
+
const T = parseInt(
|
|
1601
|
+
x.getAttribute("data-index") || "",
|
|
1576
1602
|
10
|
|
1577
1603
|
);
|
|
1578
|
-
isNaN(
|
|
1604
|
+
isNaN(T) || (y = S, d = T);
|
|
1579
1605
|
} else
|
|
1580
1606
|
break;
|
|
1581
1607
|
}
|
|
1582
1608
|
}
|
|
1583
1609
|
}
|
|
1584
|
-
return typeof
|
|
1610
|
+
return typeof d == "number" && (d = d + 1), d;
|
|
1585
1611
|
}
|
|
1586
1612
|
function c() {
|
|
1587
|
-
const
|
|
1588
|
-
order: typeof
|
|
1613
|
+
const d = {
|
|
1614
|
+
order: typeof u() == "number" ? u() : void 0,
|
|
1589
1615
|
...e.grid && {
|
|
1590
1616
|
width: "100%"
|
|
1591
1617
|
}
|
|
1592
1618
|
};
|
|
1593
1619
|
return Object.fromEntries(
|
|
1594
|
-
Object.entries(
|
|
1620
|
+
Object.entries(d).filter(([k, f]) => f !== void 0)
|
|
1595
1621
|
);
|
|
1596
1622
|
}
|
|
1597
|
-
function h(
|
|
1598
|
-
t.includes(
|
|
1623
|
+
function h(d) {
|
|
1624
|
+
t.includes(d) ? n(i() ? [] : t.filter((k) => k !== d)) : n(i() ? [d] : t.concat(d));
|
|
1599
1625
|
}
|
|
1600
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((d, k) => /* @__PURE__ */ V(Ze.Fragment, { children: [
|
|
1601
1627
|
/* @__PURE__ */ s(
|
|
1602
1628
|
"div",
|
|
1603
1629
|
{
|
|
1604
1630
|
className: r(k),
|
|
1605
1631
|
style: {
|
|
1606
|
-
...
|
|
1632
|
+
...o(),
|
|
1607
1633
|
...e.grid && {
|
|
1608
1634
|
width: e.gridRowWidth,
|
|
1609
|
-
order:
|
|
1635
|
+
order: u() !== null ? xe(k) : xe(k + 1)
|
|
1610
1636
|
}
|
|
1611
1637
|
},
|
|
1612
1638
|
"data-index": k,
|
|
1613
|
-
onClick: (
|
|
1639
|
+
onClick: (f) => h(k),
|
|
1614
1640
|
children: /* @__PURE__ */ s(
|
|
1615
|
-
|
|
1641
|
+
D,
|
|
1616
1642
|
{
|
|
1617
|
-
blocks:
|
|
1643
|
+
blocks: d.title,
|
|
1618
1644
|
path: `items.${k}.title`,
|
|
1619
1645
|
parent: e.builderBlock.id,
|
|
1620
1646
|
context: e.builderContext,
|
|
@@ -1630,9 +1656,9 @@ function Zt(e) {
|
|
|
1630
1656
|
className: l(k),
|
|
1631
1657
|
style: c(),
|
|
1632
1658
|
children: /* @__PURE__ */ s(
|
|
1633
|
-
|
|
1659
|
+
D,
|
|
1634
1660
|
{
|
|
1635
|
-
blocks:
|
|
1661
|
+
blocks: d.detail,
|
|
1636
1662
|
path: `items.${k}.detail`,
|
|
1637
1663
|
parent: e.builderBlock.id,
|
|
1638
1664
|
context: e.builderContext,
|
|
@@ -1644,7 +1670,7 @@ function Zt(e) {
|
|
|
1644
1670
|
) : null
|
|
1645
1671
|
] }, k)) });
|
|
1646
1672
|
}
|
|
1647
|
-
const
|
|
1673
|
+
const tn = {
|
|
1648
1674
|
name: "Core:Button",
|
|
1649
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1650
1676
|
defaultStyles: {
|
|
@@ -1680,7 +1706,7 @@ const en = {
|
|
|
1680
1706
|
shouldReceiveBuilderProps: {
|
|
1681
1707
|
builderLinkComponent: !0
|
|
1682
1708
|
}
|
|
1683
|
-
},
|
|
1709
|
+
}, nn = {
|
|
1684
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1685
1711
|
name: "Columns",
|
|
1686
1712
|
isRSC: !0,
|
|
@@ -1859,7 +1885,7 @@ const en = {
|
|
|
1859
1885
|
});
|
|
1860
1886
|
}
|
|
1861
1887
|
const n = e.get("columns");
|
|
1862
|
-
Array.isArray(n) && n.find((
|
|
1888
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
|
|
1863
1889
|
}
|
|
1864
1890
|
}, {
|
|
1865
1891
|
name: "space",
|
|
@@ -1887,13 +1913,13 @@ const en = {
|
|
|
1887
1913
|
builderComponents: !0,
|
|
1888
1914
|
builderLinkComponent: !0
|
|
1889
1915
|
}
|
|
1890
|
-
},
|
|
1916
|
+
}, an = {
|
|
1891
1917
|
name: "Fragment",
|
|
1892
1918
|
static: !0,
|
|
1893
1919
|
hidden: !0,
|
|
1894
1920
|
canHaveChildren: !0,
|
|
1895
1921
|
noWrap: !0
|
|
1896
|
-
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], on = ["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"],
|
|
1922
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], on = ["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"], rn = {
|
|
1897
1923
|
name: "Image",
|
|
1898
1924
|
static: !0,
|
|
1899
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",
|
|
@@ -1914,28 +1940,28 @@ const en = {
|
|
|
1914
1940
|
onChange: (e) => {
|
|
1915
1941
|
e.delete("srcset"), e.delete("noWebp");
|
|
1916
1942
|
function n(r, l = 6e4) {
|
|
1917
|
-
return new Promise((
|
|
1943
|
+
return new Promise((u, c) => {
|
|
1918
1944
|
const h = document.createElement("img");
|
|
1919
|
-
let
|
|
1945
|
+
let g = !1;
|
|
1920
1946
|
h.onload = () => {
|
|
1921
|
-
|
|
1922
|
-
}, h.addEventListener("error", (
|
|
1923
|
-
console.warn("Image load failed",
|
|
1947
|
+
g = !0, u(h);
|
|
1948
|
+
}, h.addEventListener("error", (d) => {
|
|
1949
|
+
console.warn("Image load failed", d.error), c(d.error);
|
|
1924
1950
|
}), h.src = r, setTimeout(() => {
|
|
1925
|
-
|
|
1951
|
+
g || c(new Error("Image load timed out"));
|
|
1926
1952
|
}, l);
|
|
1927
1953
|
});
|
|
1928
1954
|
}
|
|
1929
1955
|
function i(r) {
|
|
1930
1956
|
return Math.round(r * 1e3) / 1e3;
|
|
1931
1957
|
}
|
|
1932
|
-
const
|
|
1933
|
-
if (fetch(
|
|
1958
|
+
const a = e.get("image"), o = e.get("aspectRatio");
|
|
1959
|
+
if (fetch(a).then((r) => r.blob()).then((r) => {
|
|
1934
1960
|
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1935
|
-
}),
|
|
1936
|
-
return n(
|
|
1961
|
+
}), a && (!o || o === 0.7041))
|
|
1962
|
+
return n(a).then((r) => {
|
|
1937
1963
|
const l = e.get("aspectRatio");
|
|
1938
|
-
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));
|
|
1939
1965
|
});
|
|
1940
1966
|
}
|
|
1941
1967
|
}, {
|
|
@@ -2001,7 +2027,426 @@ const en = {
|
|
|
2001
2027
|
shouldReceiveBuilderProps: {
|
|
2002
2028
|
builderBlock: !0
|
|
2003
2029
|
}
|
|
2004
|
-
},
|
|
2030
|
+
}, ln = {
|
|
2031
|
+
name: "PersonalizationContainer",
|
|
2032
|
+
shouldReceiveBuilderProps: {
|
|
2033
|
+
builderBlock: !0,
|
|
2034
|
+
builderContext: !0
|
|
2035
|
+
},
|
|
2036
|
+
noWrap: !0,
|
|
2037
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
2038
|
+
canHaveChildren: !0,
|
|
2039
|
+
inputs: [{
|
|
2040
|
+
name: "variants",
|
|
2041
|
+
defaultValue: [],
|
|
2042
|
+
behavior: "personalizationVariantList",
|
|
2043
|
+
type: "list",
|
|
2044
|
+
subFields: [{
|
|
2045
|
+
name: "name",
|
|
2046
|
+
type: "text"
|
|
2047
|
+
}, {
|
|
2048
|
+
name: "query",
|
|
2049
|
+
friendlyName: "Targeting rules",
|
|
2050
|
+
type: "BuilderQuery",
|
|
2051
|
+
defaultValue: []
|
|
2052
|
+
}, {
|
|
2053
|
+
name: "startDate",
|
|
2054
|
+
type: "date"
|
|
2055
|
+
}, {
|
|
2056
|
+
name: "endDate",
|
|
2057
|
+
type: "date"
|
|
2058
|
+
}, {
|
|
2059
|
+
name: "blocks",
|
|
2060
|
+
type: "uiBlocks",
|
|
2061
|
+
hideFromUI: !0,
|
|
2062
|
+
defaultValue: []
|
|
2063
|
+
}]
|
|
2064
|
+
}]
|
|
2065
|
+
};
|
|
2066
|
+
function G(e) {
|
|
2067
|
+
return /* @__PURE__ */ s(
|
|
2068
|
+
"script",
|
|
2069
|
+
{
|
|
2070
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2071
|
+
"data-id": e.id,
|
|
2072
|
+
nonce: e.nonce || ""
|
|
2073
|
+
}
|
|
2074
|
+
);
|
|
2075
|
+
}
|
|
2076
|
+
function sn(e, t, n, i) {
|
|
2077
|
+
function a(c) {
|
|
2078
|
+
return typeof c == "string";
|
|
2079
|
+
}
|
|
2080
|
+
function o(c) {
|
|
2081
|
+
return typeof c == "number";
|
|
2082
|
+
}
|
|
2083
|
+
function r(c, h) {
|
|
2084
|
+
return (() => {
|
|
2085
|
+
const d = h.property, k = h.operator;
|
|
2086
|
+
let f = h.value;
|
|
2087
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(d && k))
|
|
2088
|
+
return !0;
|
|
2089
|
+
if (Array.isArray(f))
|
|
2090
|
+
return k === "isNot" ? f.every((x) => r(c, {
|
|
2091
|
+
property: d,
|
|
2092
|
+
operator: k,
|
|
2093
|
+
value: x
|
|
2094
|
+
})) : !!f.find((x) => r(c, {
|
|
2095
|
+
property: d,
|
|
2096
|
+
operator: k,
|
|
2097
|
+
value: x
|
|
2098
|
+
}));
|
|
2099
|
+
const b = c[d];
|
|
2100
|
+
if (Array.isArray(b))
|
|
2101
|
+
return b.includes(f);
|
|
2102
|
+
switch (k) {
|
|
2103
|
+
case "is":
|
|
2104
|
+
return b === f;
|
|
2105
|
+
case "isNot":
|
|
2106
|
+
return b !== f;
|
|
2107
|
+
case "contains":
|
|
2108
|
+
return (a(b) || Array.isArray(b)) && b.includes(String(f));
|
|
2109
|
+
case "startsWith":
|
|
2110
|
+
return a(b) && b.startsWith(String(f));
|
|
2111
|
+
case "endsWith":
|
|
2112
|
+
return a(b) && b.endsWith(String(f));
|
|
2113
|
+
case "greaterThan":
|
|
2114
|
+
return o(b) && o(f) && b > f;
|
|
2115
|
+
case "lessThan":
|
|
2116
|
+
return o(b) && o(f) && b < f;
|
|
2117
|
+
case "greaterThanOrEqualTo":
|
|
2118
|
+
return o(b) && o(f) && b >= f;
|
|
2119
|
+
case "lessThanOrEqualTo":
|
|
2120
|
+
return o(b) && o(f) && b <= f;
|
|
2121
|
+
default:
|
|
2122
|
+
return !1;
|
|
2123
|
+
}
|
|
2124
|
+
})();
|
|
2125
|
+
}
|
|
2126
|
+
const l = {
|
|
2127
|
+
query: t,
|
|
2128
|
+
startDate: n,
|
|
2129
|
+
endDate: i
|
|
2130
|
+
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
|
+
return l.startDate && new Date(l.startDate) > u || l.endDate && new Date(l.endDate) < u ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2132
|
+
}
|
|
2133
|
+
const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
|
+
if (!navigator.cookieEnabled) {
|
|
2135
|
+
return;
|
|
2136
|
+
}
|
|
2137
|
+
function getCookie(name) {
|
|
2138
|
+
const nameEQ = name + '=';
|
|
2139
|
+
const ca = document.cookie.split(';');
|
|
2140
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2141
|
+
let c = ca[i];
|
|
2142
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2143
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2144
|
+
}
|
|
2145
|
+
return null;
|
|
2146
|
+
}
|
|
2147
|
+
function removeVariants() {
|
|
2148
|
+
variants?.forEach(function (_, index) {
|
|
2149
|
+
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2150
|
+
});
|
|
2151
|
+
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2152
|
+
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2153
|
+
}
|
|
2154
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2155
|
+
if (locale) {
|
|
2156
|
+
attributes.locale = locale;
|
|
2157
|
+
}
|
|
2158
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2159
|
+
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2160
|
+
});
|
|
2161
|
+
const isDebug = location.href.includes('builder.debug=true');
|
|
2162
|
+
if (isDebug) {
|
|
2163
|
+
console.debug('PersonalizationContainer', {
|
|
2164
|
+
attributes,
|
|
2165
|
+
variants,
|
|
2166
|
+
winningVariantIndex
|
|
2167
|
+
});
|
|
2168
|
+
}
|
|
2169
|
+
if (winningVariantIndex !== -1) {
|
|
2170
|
+
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2171
|
+
if (winningVariant) {
|
|
2172
|
+
const parentNode = winningVariant.parentNode;
|
|
2173
|
+
if (parentNode) {
|
|
2174
|
+
const newParent = parentNode.cloneNode(false);
|
|
2175
|
+
newParent.appendChild(winningVariant.content.firstChild);
|
|
2176
|
+
newParent.appendChild(winningVariant.content.lastChild);
|
|
2177
|
+
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2178
|
+
}
|
|
2179
|
+
if (isDebug) {
|
|
2180
|
+
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
} else if (variants && variants.length > 0) {
|
|
2184
|
+
removeVariants();
|
|
2185
|
+
}
|
|
2186
|
+
}`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2187
|
+
function isString(val) {
|
|
2188
|
+
return typeof val === 'string';
|
|
2189
|
+
}
|
|
2190
|
+
function isNumber(val) {
|
|
2191
|
+
return typeof val === 'number';
|
|
2192
|
+
}
|
|
2193
|
+
function objectMatchesQuery(userattr, query) {
|
|
2194
|
+
const result = (() => {
|
|
2195
|
+
const property = query.property;
|
|
2196
|
+
const operator = query.operator;
|
|
2197
|
+
let testValue = query.value;
|
|
2198
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2199
|
+
testValue = query.value.slice(0, -1);
|
|
2200
|
+
}
|
|
2201
|
+
if (!(property && operator)) {
|
|
2202
|
+
return true;
|
|
2203
|
+
}
|
|
2204
|
+
if (Array.isArray(testValue)) {
|
|
2205
|
+
if (operator === 'isNot') {
|
|
2206
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2207
|
+
property,
|
|
2208
|
+
operator,
|
|
2209
|
+
value: val
|
|
2210
|
+
}));
|
|
2211
|
+
}
|
|
2212
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2213
|
+
property,
|
|
2214
|
+
operator,
|
|
2215
|
+
value: val
|
|
2216
|
+
}));
|
|
2217
|
+
}
|
|
2218
|
+
const value = userattr[property];
|
|
2219
|
+
if (Array.isArray(value)) {
|
|
2220
|
+
return value.includes(testValue);
|
|
2221
|
+
}
|
|
2222
|
+
switch (operator) {
|
|
2223
|
+
case 'is':
|
|
2224
|
+
return value === testValue;
|
|
2225
|
+
case 'isNot':
|
|
2226
|
+
return value !== testValue;
|
|
2227
|
+
case 'contains':
|
|
2228
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2229
|
+
case 'startsWith':
|
|
2230
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
2231
|
+
case 'endsWith':
|
|
2232
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
2233
|
+
case 'greaterThan':
|
|
2234
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2235
|
+
case 'lessThan':
|
|
2236
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2237
|
+
case 'greaterThanOrEqualTo':
|
|
2238
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2239
|
+
case 'lessThanOrEqualTo':
|
|
2240
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2241
|
+
default:
|
|
2242
|
+
return false;
|
|
2243
|
+
}
|
|
2244
|
+
})();
|
|
2245
|
+
return result;
|
|
2246
|
+
}
|
|
2247
|
+
const item = {
|
|
2248
|
+
query,
|
|
2249
|
+
startDate,
|
|
2250
|
+
endDate
|
|
2251
|
+
};
|
|
2252
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2253
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
2254
|
+
return false;
|
|
2255
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2256
|
+
return false;
|
|
2257
|
+
}
|
|
2258
|
+
if (!item.query || !item.query.length) {
|
|
2259
|
+
return true;
|
|
2260
|
+
}
|
|
2261
|
+
return item.query.every(filter => {
|
|
2262
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
2263
|
+
});
|
|
2264
|
+
}`;
|
|
2265
|
+
function dn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || $());
|
|
2267
|
+
}
|
|
2268
|
+
function mn({
|
|
2269
|
+
variants: e,
|
|
2270
|
+
previewingIndex: t,
|
|
2271
|
+
isHydrated: n,
|
|
2272
|
+
filteredVariants: i,
|
|
2273
|
+
fallbackBlocks: a
|
|
2274
|
+
}) {
|
|
2275
|
+
var r;
|
|
2276
|
+
const o = {
|
|
2277
|
+
blocks: a != null ? a : [],
|
|
2278
|
+
path: "this.children"
|
|
2279
|
+
};
|
|
2280
|
+
if (n && W())
|
|
2281
|
+
return typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0) ? {
|
|
2282
|
+
blocks: e[t].blocks,
|
|
2283
|
+
path: `component.options.variants.${t}.blocks`
|
|
2284
|
+
} : o;
|
|
2285
|
+
if ($()) {
|
|
2286
|
+
const l = i == null ? void 0 : i[0];
|
|
2287
|
+
if (l)
|
|
2288
|
+
return {
|
|
2289
|
+
blocks: l.blocks,
|
|
2290
|
+
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2291
|
+
};
|
|
2292
|
+
}
|
|
2293
|
+
return o;
|
|
2294
|
+
}
|
|
2295
|
+
const fn = (e, t, n) => `
|
|
2296
|
+
(function() {
|
|
2297
|
+
${un}
|
|
2298
|
+
${cn}
|
|
2299
|
+
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2300
|
+
})();
|
|
2301
|
+
`;
|
|
2302
|
+
function hn(e) {
|
|
2303
|
+
var b, x, y, S, T, P, I;
|
|
2304
|
+
const t = F(null), [n, i] = E(
|
|
2305
|
+
() => me.getUserAttributes()
|
|
2306
|
+
), [a, o] = E(
|
|
2307
|
+
() => {
|
|
2308
|
+
var v, m, p;
|
|
2309
|
+
return fn(
|
|
2310
|
+
e.variants,
|
|
2311
|
+
((v = e.builderBlock) == null ? void 0 : v.id) || "none",
|
|
2312
|
+
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2313
|
+
);
|
|
2314
|
+
}
|
|
2315
|
+
), [r, l] = E(() => []), [u, c] = E(
|
|
2316
|
+
() => {
|
|
2317
|
+
var v;
|
|
2318
|
+
return dn(
|
|
2319
|
+
e.variants,
|
|
2320
|
+
q((v = e.builderContext) == null ? void 0 : v.canTrack)
|
|
2321
|
+
);
|
|
2322
|
+
}
|
|
2323
|
+
), [h, g] = E(() => !1);
|
|
2324
|
+
function d() {
|
|
2325
|
+
return (e.variants || []).filter((v) => {
|
|
2326
|
+
var m, p, C, w;
|
|
2327
|
+
return sn(
|
|
2328
|
+
{
|
|
2329
|
+
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2330
|
+
locale: (w = (C = e.builderContext) == null ? void 0 : C.rootState) == null ? void 0 : w.locale
|
|
2331
|
+
} : {},
|
|
2332
|
+
...n
|
|
2333
|
+
},
|
|
2334
|
+
v.query,
|
|
2335
|
+
v.startDate,
|
|
2336
|
+
v.endDate
|
|
2337
|
+
);
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
function k() {
|
|
2341
|
+
var v;
|
|
2342
|
+
return mn({
|
|
2343
|
+
variants: e.variants,
|
|
2344
|
+
fallbackBlocks: (v = e.builderBlock) == null ? void 0 : v.children,
|
|
2345
|
+
isHydrated: h,
|
|
2346
|
+
filteredVariants: d(),
|
|
2347
|
+
previewingIndex: e.previewingIndex
|
|
2348
|
+
});
|
|
2349
|
+
}
|
|
2350
|
+
function f() {
|
|
2351
|
+
return (e.variants || []).map(
|
|
2352
|
+
(v, m) => {
|
|
2353
|
+
var p;
|
|
2354
|
+
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2355
|
+
}
|
|
2356
|
+
).join("");
|
|
2357
|
+
}
|
|
2358
|
+
return N(() => {
|
|
2359
|
+
var m;
|
|
2360
|
+
g(!0);
|
|
2361
|
+
const v = me.subscribeOnUserAttributesChange(
|
|
2362
|
+
(p) => {
|
|
2363
|
+
i(p);
|
|
2364
|
+
}
|
|
2365
|
+
);
|
|
2366
|
+
if (!(W() || Y())) {
|
|
2367
|
+
const p = d()[0];
|
|
2368
|
+
t.current && (t.current.dispatchEvent(
|
|
2369
|
+
new CustomEvent("builder.variantLoaded", {
|
|
2370
|
+
detail: {
|
|
2371
|
+
variant: p || "default",
|
|
2372
|
+
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2373
|
+
},
|
|
2374
|
+
bubbles: !0
|
|
2375
|
+
})
|
|
2376
|
+
), new IntersectionObserver((w) => {
|
|
2377
|
+
w.forEach((B) => {
|
|
2378
|
+
var A;
|
|
2379
|
+
B.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
|
+
new CustomEvent("builder.variantDisplayed", {
|
|
2381
|
+
detail: {
|
|
2382
|
+
variant: p || "default",
|
|
2383
|
+
content: (A = e.builderContext) == null ? void 0 : A.content
|
|
2384
|
+
},
|
|
2385
|
+
bubbles: !0
|
|
2386
|
+
})
|
|
2387
|
+
);
|
|
2388
|
+
});
|
|
2389
|
+
}).observe(t.current));
|
|
2390
|
+
}
|
|
2391
|
+
r.push(v);
|
|
2392
|
+
}, []), N(() => () => {
|
|
2393
|
+
r.forEach((v) => v());
|
|
2394
|
+
}, []), /* @__PURE__ */ V(
|
|
2395
|
+
"div",
|
|
2396
|
+
{
|
|
2397
|
+
ref: t,
|
|
2398
|
+
...e.attributes,
|
|
2399
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2400
|
+
children: [
|
|
2401
|
+
u ? /* @__PURE__ */ V(R, { children: [
|
|
2402
|
+
(x = e.variants) == null ? void 0 : x.map((v, m) => {
|
|
2403
|
+
var p, C;
|
|
2404
|
+
return /* @__PURE__ */ s(
|
|
2405
|
+
"template",
|
|
2406
|
+
{
|
|
2407
|
+
"data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
|
|
2408
|
+
children: /* @__PURE__ */ s(
|
|
2409
|
+
D,
|
|
2410
|
+
{
|
|
2411
|
+
blocks: v.blocks,
|
|
2412
|
+
parent: (C = e.builderBlock) == null ? void 0 : C.id,
|
|
2413
|
+
path: `component.options.variants.${m}.blocks`
|
|
2414
|
+
}
|
|
2415
|
+
)
|
|
2416
|
+
},
|
|
2417
|
+
m
|
|
2418
|
+
);
|
|
2419
|
+
}),
|
|
2420
|
+
/* @__PURE__ */ s(
|
|
2421
|
+
H,
|
|
2422
|
+
{
|
|
2423
|
+
nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
|
|
2424
|
+
styles: f(),
|
|
2425
|
+
id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
|
|
2426
|
+
}
|
|
2427
|
+
),
|
|
2428
|
+
/* @__PURE__ */ s(
|
|
2429
|
+
G,
|
|
2430
|
+
{
|
|
2431
|
+
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2432
|
+
scriptStr: a,
|
|
2433
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2434
|
+
}
|
|
2435
|
+
)
|
|
2436
|
+
] }) : null,
|
|
2437
|
+
/* @__PURE__ */ s(
|
|
2438
|
+
D,
|
|
2439
|
+
{
|
|
2440
|
+
blocks: k().blocks,
|
|
2441
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2442
|
+
path: k().path
|
|
2443
|
+
}
|
|
2444
|
+
)
|
|
2445
|
+
]
|
|
2446
|
+
}
|
|
2447
|
+
);
|
|
2448
|
+
}
|
|
2449
|
+
const gn = {
|
|
2005
2450
|
name: "Core:Section",
|
|
2006
2451
|
static: !0,
|
|
2007
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2040,7 +2485,7 @@ const en = {
|
|
|
2040
2485
|
}
|
|
2041
2486
|
}
|
|
2042
2487
|
}]
|
|
2043
|
-
},
|
|
2488
|
+
}, bn = {
|
|
2044
2489
|
name: "Slot",
|
|
2045
2490
|
isRSC: !0,
|
|
2046
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2058,7 +2503,7 @@ const en = {
|
|
|
2058
2503
|
builderComponents: !0
|
|
2059
2504
|
}
|
|
2060
2505
|
};
|
|
2061
|
-
function
|
|
2506
|
+
function pn(e) {
|
|
2062
2507
|
var t, n, i;
|
|
2063
2508
|
return /* @__PURE__ */ s(
|
|
2064
2509
|
"div",
|
|
@@ -2070,7 +2515,7 @@ function sn(e) {
|
|
|
2070
2515
|
"builder-slot": e.name
|
|
2071
2516
|
},
|
|
2072
2517
|
children: /* @__PURE__ */ s(
|
|
2073
|
-
|
|
2518
|
+
D,
|
|
2074
2519
|
{
|
|
2075
2520
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2076
2521
|
path: `symbol.data.${e.name}`,
|
|
@@ -2082,7 +2527,7 @@ function sn(e) {
|
|
|
2082
2527
|
}
|
|
2083
2528
|
);
|
|
2084
2529
|
}
|
|
2085
|
-
const
|
|
2530
|
+
const yn = {
|
|
2086
2531
|
name: "Symbol",
|
|
2087
2532
|
noWrap: !0,
|
|
2088
2533
|
static: !0,
|
|
@@ -2121,7 +2566,7 @@ const cn = {
|
|
|
2121
2566
|
builderComponents: !0,
|
|
2122
2567
|
builderLinkComponent: !0
|
|
2123
2568
|
}
|
|
2124
|
-
},
|
|
2569
|
+
}, ae = {
|
|
2125
2570
|
"@type": "@builder.io/sdk:Element",
|
|
2126
2571
|
responsiveStyles: {
|
|
2127
2572
|
large: {
|
|
@@ -2143,7 +2588,7 @@ const cn = {
|
|
|
2143
2588
|
text: "New tab"
|
|
2144
2589
|
}
|
|
2145
2590
|
}
|
|
2146
|
-
},
|
|
2591
|
+
}, oe = {
|
|
2147
2592
|
"@type": "@builder.io/sdk:Element",
|
|
2148
2593
|
responsiveStyles: {
|
|
2149
2594
|
large: {
|
|
@@ -2159,7 +2604,7 @@ const cn = {
|
|
|
2159
2604
|
text: "New tab content "
|
|
2160
2605
|
}
|
|
2161
2606
|
}
|
|
2162
|
-
},
|
|
2607
|
+
}, vn = {
|
|
2163
2608
|
name: "Builder: Tabs",
|
|
2164
2609
|
inputs: [{
|
|
2165
2610
|
name: "tabs",
|
|
@@ -2169,16 +2614,16 @@ const cn = {
|
|
|
2169
2614
|
name: "label",
|
|
2170
2615
|
type: "uiBlocks",
|
|
2171
2616
|
hideFromUI: !0,
|
|
2172
|
-
defaultValue: [
|
|
2617
|
+
defaultValue: [ae]
|
|
2173
2618
|
}, {
|
|
2174
2619
|
name: "content",
|
|
2175
2620
|
type: "uiBlocks",
|
|
2176
2621
|
hideFromUI: !0,
|
|
2177
|
-
defaultValue: [
|
|
2622
|
+
defaultValue: [oe]
|
|
2178
2623
|
}],
|
|
2179
2624
|
defaultValue: [{
|
|
2180
2625
|
label: [{
|
|
2181
|
-
...
|
|
2626
|
+
...ae,
|
|
2182
2627
|
component: {
|
|
2183
2628
|
name: "Text",
|
|
2184
2629
|
options: {
|
|
@@ -2187,7 +2632,7 @@ const cn = {
|
|
|
2187
2632
|
}
|
|
2188
2633
|
}],
|
|
2189
2634
|
content: [{
|
|
2190
|
-
...
|
|
2635
|
+
...oe,
|
|
2191
2636
|
component: {
|
|
2192
2637
|
name: "Text",
|
|
2193
2638
|
options: {
|
|
@@ -2197,7 +2642,7 @@ const cn = {
|
|
|
2197
2642
|
}]
|
|
2198
2643
|
}, {
|
|
2199
2644
|
label: [{
|
|
2200
|
-
...
|
|
2645
|
+
...ae,
|
|
2201
2646
|
component: {
|
|
2202
2647
|
name: "Text",
|
|
2203
2648
|
options: {
|
|
@@ -2206,7 +2651,7 @@ const cn = {
|
|
|
2206
2651
|
}
|
|
2207
2652
|
}],
|
|
2208
2653
|
content: [{
|
|
2209
|
-
...
|
|
2654
|
+
...oe,
|
|
2210
2655
|
component: {
|
|
2211
2656
|
name: "Text",
|
|
2212
2657
|
options: {
|
|
@@ -2263,18 +2708,18 @@ const cn = {
|
|
|
2263
2708
|
builderLinkComponent: !0
|
|
2264
2709
|
}
|
|
2265
2710
|
};
|
|
2266
|
-
function
|
|
2267
|
-
var
|
|
2268
|
-
const [t, n] =
|
|
2711
|
+
function xn(e) {
|
|
2712
|
+
var o;
|
|
2713
|
+
const [t, n] = E(
|
|
2269
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2270
2715
|
);
|
|
2271
2716
|
function i(r) {
|
|
2272
2717
|
return e.tabs && e.tabs[r].content;
|
|
2273
2718
|
}
|
|
2274
|
-
function
|
|
2719
|
+
function a(r) {
|
|
2275
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2276
2721
|
}
|
|
2277
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
2278
2723
|
/* @__PURE__ */ s(
|
|
2279
2724
|
"div",
|
|
2280
2725
|
{
|
|
@@ -2285,16 +2730,16 @@ function un(e) {
|
|
|
2285
2730
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2286
2731
|
overflow: "auto"
|
|
2287
2732
|
},
|
|
2288
|
-
children: (
|
|
2733
|
+
children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
|
|
2289
2734
|
"span",
|
|
2290
2735
|
{
|
|
2291
2736
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2292
2737
|
style: {
|
|
2293
2738
|
...t === l ? e.activeTabStyle : {}
|
|
2294
2739
|
},
|
|
2295
|
-
onClick: (
|
|
2740
|
+
onClick: (u) => a(l),
|
|
2296
2741
|
children: /* @__PURE__ */ s(
|
|
2297
|
-
|
|
2742
|
+
D,
|
|
2298
2743
|
{
|
|
2299
2744
|
parent: e.builderBlock.id,
|
|
2300
2745
|
path: `tabs.${l}.label`,
|
|
@@ -2310,7 +2755,7 @@ function un(e) {
|
|
|
2310
2755
|
}
|
|
2311
2756
|
),
|
|
2312
2757
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2313
|
-
|
|
2758
|
+
D,
|
|
2314
2759
|
{
|
|
2315
2760
|
parent: e.builderBlock.id,
|
|
2316
2761
|
path: `tabs.${t}.content`,
|
|
@@ -2322,7 +2767,7 @@ function un(e) {
|
|
|
2322
2767
|
) }) : null
|
|
2323
2768
|
] });
|
|
2324
2769
|
}
|
|
2325
|
-
const
|
|
2770
|
+
const Sn = {
|
|
2326
2771
|
shouldReceiveBuilderProps: {
|
|
2327
2772
|
builderBlock: !1,
|
|
2328
2773
|
builderContext: !0
|
|
@@ -2345,7 +2790,7 @@ const mn = {
|
|
|
2345
2790
|
textAlign: "center"
|
|
2346
2791
|
}
|
|
2347
2792
|
};
|
|
2348
|
-
function
|
|
2793
|
+
function kn(e) {
|
|
2349
2794
|
var t;
|
|
2350
2795
|
return /* @__PURE__ */ s(
|
|
2351
2796
|
"div",
|
|
@@ -2358,7 +2803,7 @@ function fn(e) {
|
|
|
2358
2803
|
}
|
|
2359
2804
|
);
|
|
2360
2805
|
}
|
|
2361
|
-
const
|
|
2806
|
+
const Cn = {
|
|
2362
2807
|
name: "Custom Code",
|
|
2363
2808
|
static: !0,
|
|
2364
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2381,15 +2826,15 @@ const hn = {
|
|
|
2381
2826
|
advanced: !0
|
|
2382
2827
|
}]
|
|
2383
2828
|
};
|
|
2384
|
-
function
|
|
2385
|
-
const t =
|
|
2386
|
-
return
|
|
2829
|
+
function Tn(e) {
|
|
2830
|
+
const t = F(null), [n, i] = E(() => []), [a, o] = E(() => []);
|
|
2831
|
+
return N(() => {
|
|
2387
2832
|
var l;
|
|
2388
2833
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2389
2834
|
return;
|
|
2390
2835
|
const r = t.current.getElementsByTagName("script");
|
|
2391
|
-
for (let
|
|
2392
|
-
const c = r[
|
|
2836
|
+
for (let u = 0; u < r.length; u++) {
|
|
2837
|
+
const c = r[u];
|
|
2393
2838
|
if (c.src) {
|
|
2394
2839
|
if (n.includes(c.src))
|
|
2395
2840
|
continue;
|
|
@@ -2401,10 +2846,10 @@ function gn(e) {
|
|
|
2401
2846
|
"application/javascript",
|
|
2402
2847
|
"application/ecmascript"
|
|
2403
2848
|
].includes(c.type)) {
|
|
2404
|
-
if (
|
|
2849
|
+
if (a.includes(c.innerText))
|
|
2405
2850
|
continue;
|
|
2406
2851
|
try {
|
|
2407
|
-
|
|
2852
|
+
a.push(c.innerText), new Function(c.innerText)();
|
|
2408
2853
|
} catch (h) {
|
|
2409
2854
|
console.warn("`CustomCode`: Error running script:", h);
|
|
2410
2855
|
}
|
|
@@ -2419,7 +2864,7 @@ function gn(e) {
|
|
|
2419
2864
|
}
|
|
2420
2865
|
);
|
|
2421
2866
|
}
|
|
2422
|
-
const
|
|
2867
|
+
const wn = {
|
|
2423
2868
|
name: "Embed",
|
|
2424
2869
|
static: !0,
|
|
2425
2870
|
inputs: [{
|
|
@@ -2434,29 +2879,29 @@ const bn = {
|
|
|
2434
2879
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2435
2880
|
hideFromUI: !0
|
|
2436
2881
|
}]
|
|
2437
|
-
},
|
|
2438
|
-
function
|
|
2439
|
-
const t =
|
|
2440
|
-
function
|
|
2882
|
+
}, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
|
|
2883
|
+
function Rn(e) {
|
|
2884
|
+
const t = F(null), [n, i] = E(() => []), [a, o] = E(() => []), [r, l] = E(() => !1);
|
|
2885
|
+
function u() {
|
|
2441
2886
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2442
2887
|
return;
|
|
2443
2888
|
const c = t.current.getElementsByTagName("script");
|
|
2444
2889
|
for (let h = 0; h < c.length; h++) {
|
|
2445
|
-
const
|
|
2446
|
-
if (
|
|
2447
|
-
n.push(
|
|
2448
|
-
const
|
|
2449
|
-
|
|
2450
|
-
} else if (
|
|
2890
|
+
const g = c[h];
|
|
2891
|
+
if (g.src && !n.includes(g.src)) {
|
|
2892
|
+
n.push(g.src);
|
|
2893
|
+
const d = document.createElement("script");
|
|
2894
|
+
d.async = !0, d.src = g.src, document.head.appendChild(d);
|
|
2895
|
+
} else if (En(g) && !a.includes(g.innerText))
|
|
2451
2896
|
try {
|
|
2452
|
-
|
|
2453
|
-
} catch (
|
|
2454
|
-
console.warn("`Embed`: Error running script:",
|
|
2897
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2898
|
+
} catch (d) {
|
|
2899
|
+
console.warn("`Embed`: Error running script:", d);
|
|
2455
2900
|
}
|
|
2456
2901
|
}
|
|
2457
2902
|
}
|
|
2458
|
-
return
|
|
2459
|
-
t.current && !r && (l(!0),
|
|
2903
|
+
return N(() => {
|
|
2904
|
+
t.current && !r && (l(!0), u());
|
|
2460
2905
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2461
2906
|
"div",
|
|
2462
2907
|
{
|
|
@@ -2466,7 +2911,7 @@ function xn(e) {
|
|
|
2466
2911
|
}
|
|
2467
2912
|
);
|
|
2468
2913
|
}
|
|
2469
|
-
const
|
|
2914
|
+
const Pn = {
|
|
2470
2915
|
name: "Form:Form",
|
|
2471
2916
|
// editableTags: ['builder-form-error']
|
|
2472
2917
|
defaults: {
|
|
@@ -2703,118 +3148,118 @@ const vn = {
|
|
|
2703
3148
|
builderComponents: !0,
|
|
2704
3149
|
builderLinkComponent: !0
|
|
2705
3150
|
}
|
|
2706
|
-
},
|
|
3151
|
+
}, Vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
|
|
2707
3152
|
const e = process.env.NODE_ENV || "production";
|
|
2708
|
-
return
|
|
3153
|
+
return Vn.includes(e) ? e : "production";
|
|
2709
3154
|
};
|
|
2710
|
-
function
|
|
2711
|
-
const t =
|
|
2712
|
-
function
|
|
2713
|
-
var k,
|
|
2714
|
-
const
|
|
3155
|
+
function Nn(e) {
|
|
3156
|
+
const t = F(null), [n, i] = E(() => "unsubmitted"), [a, o] = E(() => null), [r, l] = E(() => "");
|
|
3157
|
+
function u(g) {
|
|
3158
|
+
var k, f;
|
|
3159
|
+
const d = {
|
|
2715
3160
|
...e.builderContext.rootState,
|
|
2716
|
-
...
|
|
3161
|
+
...g
|
|
2717
3162
|
};
|
|
2718
|
-
e.builderContext.rootSetState ? (
|
|
3163
|
+
e.builderContext.rootSetState ? (f = (k = e.builderContext).rootSetState) == null || f.call(k, d) : e.builderContext.rootState = d;
|
|
2719
3164
|
}
|
|
2720
3165
|
function c() {
|
|
2721
3166
|
return W() && e.previewState || n;
|
|
2722
3167
|
}
|
|
2723
|
-
function h(
|
|
3168
|
+
function h(g) {
|
|
2724
3169
|
var k;
|
|
2725
|
-
const
|
|
3170
|
+
const d = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2726
3171
|
if (e.sendSubmissionsTo === "zapier")
|
|
2727
|
-
|
|
2728
|
-
else if (
|
|
3172
|
+
g.preventDefault();
|
|
3173
|
+
else if (d) {
|
|
2729
3174
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2730
|
-
|
|
3175
|
+
g.preventDefault();
|
|
2731
3176
|
return;
|
|
2732
3177
|
}
|
|
2733
|
-
|
|
2734
|
-
const
|
|
2735
|
-
let
|
|
2736
|
-
const
|
|
2737
|
-
let
|
|
2738
|
-
const
|
|
2739
|
-
if (
|
|
2740
|
-
if (
|
|
2741
|
-
if (
|
|
2742
|
-
return
|
|
2743
|
-
key:
|
|
2744
|
-
value:
|
|
3178
|
+
g.preventDefault();
|
|
3179
|
+
const f = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3180
|
+
let x;
|
|
3181
|
+
const y = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3182
|
+
let p;
|
|
3183
|
+
const C = m.name;
|
|
3184
|
+
if (m instanceof HTMLInputElement)
|
|
3185
|
+
if (m.type === "radio") {
|
|
3186
|
+
if (m.checked)
|
|
3187
|
+
return p = m.name, {
|
|
3188
|
+
key: C,
|
|
3189
|
+
value: p
|
|
2745
3190
|
};
|
|
2746
|
-
} else if (
|
|
2747
|
-
|
|
2748
|
-
else if (
|
|
2749
|
-
const
|
|
2750
|
-
isNaN(
|
|
3191
|
+
} else if (m.type === "checkbox")
|
|
3192
|
+
p = m.checked;
|
|
3193
|
+
else if (m.type === "number" || m.type === "range") {
|
|
3194
|
+
const w = m.valueAsNumber;
|
|
3195
|
+
isNaN(w) || (p = w);
|
|
2751
3196
|
} else
|
|
2752
|
-
|
|
3197
|
+
m.type === "file" ? p = m.files : p = m.value;
|
|
2753
3198
|
else
|
|
2754
|
-
|
|
3199
|
+
p = m.value;
|
|
2755
3200
|
return {
|
|
2756
|
-
key:
|
|
2757
|
-
value:
|
|
3201
|
+
key: C,
|
|
3202
|
+
value: p
|
|
2758
3203
|
};
|
|
2759
3204
|
});
|
|
2760
|
-
let
|
|
2761
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2762
|
-
(
|
|
2763
|
-
}),
|
|
2764
|
-
|
|
3205
|
+
let T = e.contentType;
|
|
3206
|
+
if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
|
|
3207
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
|
|
3208
|
+
}), T !== "application/json")
|
|
3209
|
+
x = y;
|
|
2765
3210
|
else {
|
|
2766
|
-
const
|
|
2767
|
-
Array.from(
|
|
2768
|
-
|
|
2769
|
-
}),
|
|
3211
|
+
const m = {};
|
|
3212
|
+
Array.from(S).forEach(({ value: p, key: C }) => {
|
|
3213
|
+
We(m, C, p);
|
|
3214
|
+
}), x = JSON.stringify(m);
|
|
2770
3215
|
}
|
|
2771
|
-
|
|
2772
|
-
const P = new CustomEvent("presubmit", { detail: { body:
|
|
3216
|
+
T && T !== "multipart/form-data" && (d && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
|
|
3217
|
+
const P = new CustomEvent("presubmit", { detail: { body: x } });
|
|
2773
3218
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
2774
3219
|
return;
|
|
2775
3220
|
i("sending");
|
|
2776
|
-
const I = `${
|
|
3221
|
+
const I = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2777
3222
|
e.sendSubmissionsToEmail || ""
|
|
2778
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2779
|
-
Ie(
|
|
2780
|
-
async (
|
|
2781
|
-
let
|
|
2782
|
-
const
|
|
2783
|
-
if (
|
|
2784
|
-
let
|
|
2785
|
-
|
|
3223
|
+
)}&name=${encodeURIComponent(e.name || "")}`, v = e.sendSubmissionsTo === "email" ? I : e.action;
|
|
3224
|
+
Ie(v), fetch(v, { body: x, headers: b, method: e.method || "post" }).then(
|
|
3225
|
+
async (m) => {
|
|
3226
|
+
let p;
|
|
3227
|
+
const C = m.headers.get("content-type");
|
|
3228
|
+
if (C && C.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3229
|
+
let w = Be(p, e.errorMessagePath);
|
|
3230
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), l(w), u({ formErrorMessage: w }));
|
|
2786
3231
|
}
|
|
2787
|
-
if (
|
|
2788
|
-
const
|
|
2789
|
-
detail: { res:
|
|
3232
|
+
if (o(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3233
|
+
const w = new CustomEvent("submit:success", {
|
|
3234
|
+
detail: { res: m, body: p }
|
|
2790
3235
|
});
|
|
2791
3236
|
if (t.current) {
|
|
2792
|
-
if (t.current.dispatchEvent(
|
|
3237
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2793
3238
|
return;
|
|
2794
3239
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2795
3240
|
}
|
|
2796
3241
|
if (e.successUrl)
|
|
2797
3242
|
if (t.current) {
|
|
2798
|
-
const
|
|
3243
|
+
const B = new CustomEvent("route", {
|
|
2799
3244
|
detail: { url: e.successUrl }
|
|
2800
3245
|
});
|
|
2801
|
-
t.current.dispatchEvent(
|
|
3246
|
+
t.current.dispatchEvent(B), B.defaultPrevented || (location.href = e.successUrl);
|
|
2802
3247
|
} else
|
|
2803
3248
|
location.href = e.successUrl;
|
|
2804
3249
|
}
|
|
2805
3250
|
},
|
|
2806
|
-
(
|
|
2807
|
-
const
|
|
2808
|
-
detail: { error:
|
|
3251
|
+
(m) => {
|
|
3252
|
+
const p = new CustomEvent("submit:error", {
|
|
3253
|
+
detail: { error: m }
|
|
2809
3254
|
});
|
|
2810
|
-
t.current && (t.current.dispatchEvent(
|
|
3255
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (o(m), i("error"));
|
|
2811
3256
|
}
|
|
2812
3257
|
);
|
|
2813
3258
|
}
|
|
2814
3259
|
}
|
|
2815
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
2816
3261
|
" ",
|
|
2817
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ V(
|
|
2818
3263
|
"form",
|
|
2819
3264
|
{
|
|
2820
3265
|
validate: e.validate,
|
|
@@ -2822,12 +3267,12 @@ function Cn(e) {
|
|
|
2822
3267
|
action: !e.sendWithJs && e.action,
|
|
2823
3268
|
method: e.method,
|
|
2824
3269
|
name: e.name,
|
|
2825
|
-
onSubmit: (
|
|
3270
|
+
onSubmit: (g) => h(g),
|
|
2826
3271
|
...e.attributes,
|
|
2827
3272
|
children: [
|
|
2828
3273
|
e.children,
|
|
2829
3274
|
c() === "error" ? /* @__PURE__ */ s(
|
|
2830
|
-
|
|
3275
|
+
D,
|
|
2831
3276
|
{
|
|
2832
3277
|
path: "errorMessage",
|
|
2833
3278
|
blocks: e.errorMessage,
|
|
@@ -2835,16 +3280,16 @@ function Cn(e) {
|
|
|
2835
3280
|
}
|
|
2836
3281
|
) : null,
|
|
2837
3282
|
c() === "sending" ? /* @__PURE__ */ s(
|
|
2838
|
-
|
|
3283
|
+
D,
|
|
2839
3284
|
{
|
|
2840
3285
|
path: "sendingMessage",
|
|
2841
3286
|
blocks: e.sendingMessage,
|
|
2842
3287
|
context: e.builderContext
|
|
2843
3288
|
}
|
|
2844
3289
|
) : null,
|
|
2845
|
-
c() === "error" &&
|
|
3290
|
+
c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
2846
3291
|
c() === "success" ? /* @__PURE__ */ s(
|
|
2847
|
-
|
|
3292
|
+
D,
|
|
2848
3293
|
{
|
|
2849
3294
|
path: "successMessage",
|
|
2850
3295
|
blocks: e.successMessage,
|
|
@@ -2859,7 +3304,7 @@ function Cn(e) {
|
|
|
2859
3304
|
" "
|
|
2860
3305
|
] });
|
|
2861
3306
|
}
|
|
2862
|
-
const
|
|
3307
|
+
const An = {
|
|
2863
3308
|
name: "Form:Input",
|
|
2864
3309
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2865
3310
|
inputs: [
|
|
@@ -2911,8 +3356,8 @@ const Tn = {
|
|
|
2911
3356
|
borderColor: "#ccc"
|
|
2912
3357
|
}
|
|
2913
3358
|
};
|
|
2914
|
-
function
|
|
2915
|
-
return /* @__PURE__ */
|
|
3359
|
+
function Wn(e) {
|
|
3360
|
+
return /* @__PURE__ */ Pe(
|
|
2916
3361
|
"input",
|
|
2917
3362
|
{
|
|
2918
3363
|
...e.attributes,
|
|
@@ -2926,7 +3371,7 @@ function In(e) {
|
|
|
2926
3371
|
}
|
|
2927
3372
|
);
|
|
2928
3373
|
}
|
|
2929
|
-
const
|
|
3374
|
+
const Dn = {
|
|
2930
3375
|
name: "Form:Select",
|
|
2931
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2932
3377
|
defaultStyles: {
|
|
@@ -2969,9 +3414,9 @@ const wn = {
|
|
|
2969
3414
|
static: !0,
|
|
2970
3415
|
noWrap: !0
|
|
2971
3416
|
};
|
|
2972
|
-
function
|
|
3417
|
+
function $n(e) {
|
|
2973
3418
|
var t;
|
|
2974
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ Pe(
|
|
2975
3420
|
"select",
|
|
2976
3421
|
{
|
|
2977
3422
|
...e.attributes,
|
|
@@ -2984,7 +3429,7 @@ function En(e) {
|
|
|
2984
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}`))
|
|
2985
3430
|
);
|
|
2986
3431
|
}
|
|
2987
|
-
const
|
|
3432
|
+
const Fn = {
|
|
2988
3433
|
name: "Form:SubmitButton",
|
|
2989
3434
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2990
3435
|
defaultStyles: {
|
|
@@ -3010,10 +3455,10 @@ const Rn = {
|
|
|
3010
3455
|
// TODO: defaultChildren
|
|
3011
3456
|
// canHaveChildren: true,
|
|
3012
3457
|
};
|
|
3013
|
-
function
|
|
3458
|
+
function On(e) {
|
|
3014
3459
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3015
3460
|
}
|
|
3016
|
-
const
|
|
3461
|
+
const Ln = {
|
|
3017
3462
|
name: "Form:TextArea",
|
|
3018
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3019
3464
|
inputs: [{
|
|
@@ -3050,7 +3495,7 @@ const Bn = {
|
|
|
3050
3495
|
static: !0,
|
|
3051
3496
|
noWrap: !0
|
|
3052
3497
|
};
|
|
3053
|
-
function
|
|
3498
|
+
function Un(e) {
|
|
3054
3499
|
return /* @__PURE__ */ s(
|
|
3055
3500
|
"textarea",
|
|
3056
3501
|
{
|
|
@@ -3063,7 +3508,7 @@ function Vn(e) {
|
|
|
3063
3508
|
}
|
|
3064
3509
|
);
|
|
3065
3510
|
}
|
|
3066
|
-
const
|
|
3511
|
+
const _n = {
|
|
3067
3512
|
// friendlyName?
|
|
3068
3513
|
name: "Raw:Img",
|
|
3069
3514
|
hideFromInsertMenu: !0,
|
|
@@ -3078,7 +3523,7 @@ const An = {
|
|
|
3078
3523
|
noWrap: !0,
|
|
3079
3524
|
static: !0
|
|
3080
3525
|
};
|
|
3081
|
-
function
|
|
3526
|
+
function qn(e) {
|
|
3082
3527
|
return /* @__PURE__ */ s(
|
|
3083
3528
|
"img",
|
|
3084
3529
|
{
|
|
@@ -3093,7 +3538,7 @@ function Nn(e) {
|
|
|
3093
3538
|
W() && e.imgSrc || "default-key"
|
|
3094
3539
|
);
|
|
3095
3540
|
}
|
|
3096
|
-
const
|
|
3541
|
+
const Mn = {
|
|
3097
3542
|
name: "Video",
|
|
3098
3543
|
canHaveChildren: !0,
|
|
3099
3544
|
defaultStyles: {
|
|
@@ -3178,8 +3623,8 @@ const Wn = {
|
|
|
3178
3623
|
builderBlock: !0
|
|
3179
3624
|
}
|
|
3180
3625
|
};
|
|
3181
|
-
function
|
|
3182
|
-
var i,
|
|
3626
|
+
function Hn(e) {
|
|
3627
|
+
var i, a, o, r, l, u, c;
|
|
3183
3628
|
function t() {
|
|
3184
3629
|
return {
|
|
3185
3630
|
...e.autoPlay === !0 ? {
|
|
@@ -3204,7 +3649,7 @@ function Fn(e) {
|
|
|
3204
3649
|
...t()
|
|
3205
3650
|
};
|
|
3206
3651
|
}
|
|
3207
|
-
return /* @__PURE__ */
|
|
3652
|
+
return /* @__PURE__ */ V(
|
|
3208
3653
|
"div",
|
|
3209
3654
|
{
|
|
3210
3655
|
style: {
|
|
@@ -3235,7 +3680,7 @@ function Fn(e) {
|
|
|
3235
3680
|
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3236
3681
|
}
|
|
3237
3682
|
),
|
|
3238
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3683
|
+
e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ s(
|
|
3239
3684
|
"div",
|
|
3240
3685
|
{
|
|
3241
3686
|
style: {
|
|
@@ -3257,7 +3702,7 @@ function Fn(e) {
|
|
|
3257
3702
|
children: e.children
|
|
3258
3703
|
}
|
|
3259
3704
|
) : null,
|
|
3260
|
-
(c = (
|
|
3705
|
+
(c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3261
3706
|
"div",
|
|
3262
3707
|
{
|
|
3263
3708
|
style: {
|
|
@@ -3278,64 +3723,67 @@ function Fn(e) {
|
|
|
3278
3723
|
}
|
|
3279
3724
|
);
|
|
3280
3725
|
}
|
|
3281
|
-
const
|
|
3282
|
-
component:
|
|
3283
|
-
...
|
|
3726
|
+
const jn = () => [{
|
|
3727
|
+
component: Tn,
|
|
3728
|
+
...Cn
|
|
3284
3729
|
}, {
|
|
3285
|
-
component:
|
|
3286
|
-
...
|
|
3287
|
-
}, {
|
|
3288
|
-
component: Cn,
|
|
3289
|
-
...vn
|
|
3730
|
+
component: Rn,
|
|
3731
|
+
...wn
|
|
3290
3732
|
}, {
|
|
3291
|
-
component:
|
|
3292
|
-
...
|
|
3733
|
+
component: Nn,
|
|
3734
|
+
...Pn
|
|
3293
3735
|
}, {
|
|
3294
|
-
component:
|
|
3295
|
-
...
|
|
3736
|
+
component: Wn,
|
|
3737
|
+
...An
|
|
3296
3738
|
}, {
|
|
3297
|
-
component:
|
|
3298
|
-
...
|
|
3739
|
+
component: On,
|
|
3740
|
+
...Fn
|
|
3299
3741
|
}, {
|
|
3300
|
-
component:
|
|
3301
|
-
...
|
|
3742
|
+
component: $n,
|
|
3743
|
+
...Dn
|
|
3302
3744
|
}, {
|
|
3303
|
-
component:
|
|
3304
|
-
...
|
|
3745
|
+
component: Un,
|
|
3746
|
+
...Ln
|
|
3305
3747
|
}, {
|
|
3306
|
-
component:
|
|
3307
|
-
...
|
|
3308
|
-
}], ve = () => [{
|
|
3309
|
-
component: tt,
|
|
3310
|
-
...en
|
|
3748
|
+
component: qn,
|
|
3749
|
+
..._n
|
|
3311
3750
|
}, {
|
|
3312
|
-
component:
|
|
3751
|
+
component: Hn,
|
|
3752
|
+
...Mn
|
|
3753
|
+
}], Se = () => [{
|
|
3754
|
+
component: nt,
|
|
3313
3755
|
...tn
|
|
3314
3756
|
}, {
|
|
3315
3757
|
component: Kt,
|
|
3316
3758
|
...nn
|
|
3317
3759
|
}, {
|
|
3318
|
-
component:
|
|
3760
|
+
component: Jt,
|
|
3319
3761
|
...an
|
|
3320
3762
|
}, {
|
|
3321
|
-
component:
|
|
3763
|
+
component: Yt,
|
|
3322
3764
|
...rn
|
|
3323
3765
|
}, {
|
|
3324
|
-
component:
|
|
3325
|
-
...
|
|
3766
|
+
component: Xt,
|
|
3767
|
+
...gn
|
|
3326
3768
|
}, {
|
|
3327
|
-
component:
|
|
3328
|
-
...
|
|
3769
|
+
component: pn,
|
|
3770
|
+
...bn
|
|
3771
|
+
}, {
|
|
3772
|
+
component: gi,
|
|
3773
|
+
...yn
|
|
3329
3774
|
}, {
|
|
3330
|
-
component:
|
|
3331
|
-
...
|
|
3775
|
+
component: kn,
|
|
3776
|
+
...Sn
|
|
3332
3777
|
}, {
|
|
3333
|
-
component:
|
|
3334
|
-
...
|
|
3778
|
+
component: hn,
|
|
3779
|
+
...ln
|
|
3335
3780
|
}, {
|
|
3336
|
-
component:
|
|
3337
|
-
...
|
|
3338
|
-
},
|
|
3781
|
+
component: xn,
|
|
3782
|
+
...vn
|
|
3783
|
+
}, {
|
|
3784
|
+
component: en,
|
|
3785
|
+
...Zt
|
|
3786
|
+
}, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3339
3787
|
function getAndSetVariantId() {
|
|
3340
3788
|
function setCookie(name, value, days) {
|
|
3341
3789
|
let expires = '';
|
|
@@ -3391,7 +3839,7 @@ const $n = () => [{
|
|
|
3391
3839
|
}).join('');
|
|
3392
3840
|
styleEl.innerHTML = newStyleStr;
|
|
3393
3841
|
}
|
|
3394
|
-
}`,
|
|
3842
|
+
}`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3395
3843
|
if (!navigator.cookieEnabled) {
|
|
3396
3844
|
return;
|
|
3397
3845
|
}
|
|
@@ -3425,39 +3873,29 @@ const $n = () => [{
|
|
|
3425
3873
|
thisScriptEl?.remove();
|
|
3426
3874
|
}
|
|
3427
3875
|
return;
|
|
3428
|
-
}`,
|
|
3876
|
+
}`, He = "builderIoAbTest", je = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3429
3877
|
...t,
|
|
3430
3878
|
testVariationId: t.id,
|
|
3431
3879
|
id: e == null ? void 0 : e.id
|
|
3432
|
-
})),
|
|
3880
|
+
})), Jn = ({
|
|
3433
3881
|
canTrack: e,
|
|
3434
3882
|
content: t
|
|
3435
|
-
}) => !(!(
|
|
3436
|
-
window.${
|
|
3437
|
-
window.${je} = ${
|
|
3438
|
-
`,
|
|
3439
|
-
window.${
|
|
3440
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3441
|
-
)`,
|
|
3883
|
+
}) => !(!(z(t).length > 0) || !e || $()), Gn = (e) => e === "react" || e === "reactNative", ze = Gn(O), Qn = () => `
|
|
3884
|
+
window.${He} = ${zn}
|
|
3885
|
+
window.${je} = ${Kn}
|
|
3886
|
+
`, Yn = (e, t) => `
|
|
3887
|
+
window.${He}(
|
|
3888
|
+
"${t}",${JSON.stringify(e)}, ${ze}
|
|
3889
|
+
)`, Xn = ({
|
|
3442
3890
|
contentId: e,
|
|
3443
3891
|
variationId: t
|
|
3444
3892
|
}) => `window.${je}(
|
|
3445
|
-
"${t}", "${e}", ${
|
|
3893
|
+
"${t}", "${e}", ${ze}
|
|
3446
3894
|
)`;
|
|
3447
|
-
function
|
|
3448
|
-
return /* @__PURE__ */ s(
|
|
3449
|
-
"script",
|
|
3450
|
-
{
|
|
3451
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3452
|
-
"data-id": e.id,
|
|
3453
|
-
nonce: e.nonce || ""
|
|
3454
|
-
}
|
|
3455
|
-
);
|
|
3456
|
-
}
|
|
3457
|
-
function Se(e) {
|
|
3895
|
+
function ke(e) {
|
|
3458
3896
|
return Math.round(e * 1e3) / 1e3;
|
|
3459
3897
|
}
|
|
3460
|
-
const
|
|
3898
|
+
const Zn = (e, t, n = !0) => {
|
|
3461
3899
|
if (!(e instanceof HTMLElement))
|
|
3462
3900
|
return null;
|
|
3463
3901
|
let i = n ? e : e.parentElement;
|
|
@@ -3468,39 +3906,39 @@ const jn = (e, t, n = !0) => {
|
|
|
3468
3906
|
return i;
|
|
3469
3907
|
} while (i = i.parentElement);
|
|
3470
3908
|
return null;
|
|
3471
|
-
},
|
|
3909
|
+
}, ei = (e) => Zn(e, (t) => {
|
|
3472
3910
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3473
3911
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3474
|
-
}),
|
|
3912
|
+
}), Ce = ({
|
|
3475
3913
|
event: e,
|
|
3476
3914
|
target: t
|
|
3477
3915
|
}) => {
|
|
3478
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
3916
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = ke(i / n.width), r = ke(a / n.height);
|
|
3479
3917
|
return {
|
|
3480
|
-
x:
|
|
3918
|
+
x: o,
|
|
3481
3919
|
y: r
|
|
3482
3920
|
};
|
|
3483
|
-
},
|
|
3484
|
-
const t = e.target, n = t &&
|
|
3921
|
+
}, ti = (e) => {
|
|
3922
|
+
const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3485
3923
|
return {
|
|
3486
3924
|
targetBuilderElement: i || void 0,
|
|
3487
3925
|
metadata: {
|
|
3488
|
-
targetOffset: t ?
|
|
3926
|
+
targetOffset: t ? Ce({
|
|
3489
3927
|
event: e,
|
|
3490
3928
|
target: t
|
|
3491
3929
|
}) : void 0,
|
|
3492
|
-
builderTargetOffset: n ?
|
|
3930
|
+
builderTargetOffset: n ? Ce({
|
|
3493
3931
|
event: e,
|
|
3494
3932
|
target: n
|
|
3495
3933
|
}) : void 0,
|
|
3496
3934
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3497
3935
|
}
|
|
3498
3936
|
};
|
|
3499
|
-
},
|
|
3500
|
-
var
|
|
3501
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (
|
|
3502
|
-
let
|
|
3503
|
-
if (i && t && n && (
|
|
3937
|
+
}, ni = ["svelte", "qwik", "vue"], Te = () => ni.includes(O) && (W() || Y()), ii = (e) => {
|
|
3938
|
+
var o, r;
|
|
3939
|
+
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;
|
|
3940
|
+
let a = "";
|
|
3941
|
+
if (i && t && n && (a += `
|
|
3504
3942
|
@font-face {
|
|
3505
3943
|
font-family: "${t}";
|
|
3506
3944
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -3512,7 +3950,7 @@ font-weight: 400;
|
|
|
3512
3950
|
if (!(String(Number(l)) === l))
|
|
3513
3951
|
continue;
|
|
3514
3952
|
const c = e.files[l];
|
|
3515
|
-
c && c !== i && (
|
|
3953
|
+
c && c !== i && (a += `
|
|
3516
3954
|
@font-face {
|
|
3517
3955
|
font-family: "${t}";
|
|
3518
3956
|
src: url('${c}') format('woff2');
|
|
@@ -3521,16 +3959,16 @@ font-weight: ${l};
|
|
|
3521
3959
|
}
|
|
3522
3960
|
`.trim());
|
|
3523
3961
|
}
|
|
3524
|
-
return
|
|
3525
|
-
},
|
|
3962
|
+
return a;
|
|
3963
|
+
}, ai = ({
|
|
3526
3964
|
customFonts: e
|
|
3527
3965
|
}) => {
|
|
3528
3966
|
var t;
|
|
3529
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3530
|
-
},
|
|
3967
|
+
return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3968
|
+
}, oi = ({
|
|
3531
3969
|
cssCode: e,
|
|
3532
3970
|
contentId: t
|
|
3533
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3971
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
|
|
3534
3972
|
.builder-button {
|
|
3535
3973
|
all: unset;
|
|
3536
3974
|
}
|
|
@@ -3547,48 +3985,48 @@ font-weight: ${l};
|
|
|
3547
3985
|
text-align: inherit;
|
|
3548
3986
|
font-family: inherit;
|
|
3549
3987
|
}
|
|
3550
|
-
`,
|
|
3551
|
-
function
|
|
3552
|
-
var
|
|
3553
|
-
const t =
|
|
3988
|
+
`, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
|
|
3989
|
+
function ci(e) {
|
|
3990
|
+
var S, T, P;
|
|
3991
|
+
const t = F(null);
|
|
3554
3992
|
function n(I) {
|
|
3555
|
-
var
|
|
3556
|
-
const
|
|
3993
|
+
var m, p;
|
|
3994
|
+
const v = {
|
|
3557
3995
|
...e.builderContextSignal.rootState,
|
|
3558
3996
|
...I
|
|
3559
3997
|
};
|
|
3560
|
-
e.builderContextSignal.rootSetState ? (
|
|
3561
|
-
...
|
|
3562
|
-
rootState:
|
|
3998
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, v) : e.setBuilderContextSignal((C) => ({
|
|
3999
|
+
...C,
|
|
4000
|
+
rootState: v
|
|
3563
4001
|
}));
|
|
3564
4002
|
}
|
|
3565
4003
|
function i(I) {
|
|
3566
|
-
var
|
|
3567
|
-
const
|
|
4004
|
+
var m, p, C, w, B;
|
|
4005
|
+
const v = {
|
|
3568
4006
|
...e.builderContextSignal.content,
|
|
3569
4007
|
...I,
|
|
3570
4008
|
data: {
|
|
3571
|
-
...(
|
|
4009
|
+
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
3572
4010
|
...I == null ? void 0 : I.data
|
|
3573
4011
|
},
|
|
3574
4012
|
meta: {
|
|
3575
|
-
...(
|
|
4013
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3576
4014
|
...I == null ? void 0 : I.meta,
|
|
3577
|
-
breakpoints: ((
|
|
4015
|
+
breakpoints: ((C = I == null ? void 0 : I.meta) == null ? void 0 : C.breakpoints) || ((B = (w = e.builderContextSignal.content) == null ? void 0 : w.meta) == null ? void 0 : B.breakpoints)
|
|
3578
4016
|
}
|
|
3579
4017
|
};
|
|
3580
|
-
e.setBuilderContextSignal((
|
|
3581
|
-
...
|
|
3582
|
-
content:
|
|
4018
|
+
e.setBuilderContextSignal((A) => ({
|
|
4019
|
+
...A,
|
|
4020
|
+
content: v
|
|
3583
4021
|
}));
|
|
3584
4022
|
}
|
|
3585
|
-
function
|
|
4023
|
+
function a() {
|
|
3586
4024
|
return e.showContent ? {} : {
|
|
3587
4025
|
hidden: !0,
|
|
3588
4026
|
"aria-hidden": !0
|
|
3589
4027
|
};
|
|
3590
4028
|
}
|
|
3591
|
-
const [
|
|
4029
|
+
const [o, r] = E(
|
|
3592
4030
|
() => e.contentWrapper || "div"
|
|
3593
4031
|
);
|
|
3594
4032
|
function l(I) {
|
|
@@ -3596,54 +4034,54 @@ function ei(e) {
|
|
|
3596
4034
|
model: e.model,
|
|
3597
4035
|
trustedHosts: e.trustedHosts,
|
|
3598
4036
|
callbacks: {
|
|
3599
|
-
configureSdk: (
|
|
3600
|
-
var
|
|
3601
|
-
const { breakpoints:
|
|
3602
|
-
!
|
|
4037
|
+
configureSdk: (v) => {
|
|
4038
|
+
var C;
|
|
4039
|
+
const { breakpoints: m, contentId: p } = v;
|
|
4040
|
+
!p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
|
|
3603
4041
|
meta: {
|
|
3604
|
-
breakpoints:
|
|
4042
|
+
breakpoints: m
|
|
3605
4043
|
}
|
|
3606
4044
|
});
|
|
3607
4045
|
},
|
|
3608
|
-
animation: (
|
|
3609
|
-
|
|
4046
|
+
animation: (v) => {
|
|
4047
|
+
Fe(v);
|
|
3610
4048
|
},
|
|
3611
|
-
contentUpdate: (
|
|
3612
|
-
i(
|
|
4049
|
+
contentUpdate: (v) => {
|
|
4050
|
+
i(v);
|
|
3613
4051
|
}
|
|
3614
4052
|
}
|
|
3615
4053
|
})(I);
|
|
3616
4054
|
}
|
|
3617
|
-
const [
|
|
3618
|
-
function
|
|
3619
|
-
var
|
|
4055
|
+
const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [d, k] = E(() => !1);
|
|
4056
|
+
function f(I) {
|
|
4057
|
+
var v, m;
|
|
3620
4058
|
if (e.builderContextSignal.content) {
|
|
3621
|
-
const
|
|
3622
|
-
|
|
4059
|
+
const p = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4060
|
+
fe({
|
|
3623
4061
|
apiHost: e.apiHost,
|
|
3624
4062
|
type: "click",
|
|
3625
|
-
canTrack:
|
|
3626
|
-
contentId:
|
|
4063
|
+
canTrack: q(e.canTrack),
|
|
4064
|
+
contentId: C,
|
|
3627
4065
|
apiKey: e.apiKey,
|
|
3628
|
-
variationId:
|
|
3629
|
-
...
|
|
3630
|
-
unique: !
|
|
4066
|
+
variationId: p !== C ? p : void 0,
|
|
4067
|
+
...ti(I),
|
|
4068
|
+
unique: !d
|
|
3631
4069
|
});
|
|
3632
4070
|
}
|
|
3633
|
-
|
|
4071
|
+
d || k(!0);
|
|
3634
4072
|
}
|
|
3635
|
-
function
|
|
3636
|
-
var
|
|
3637
|
-
const I = (
|
|
3638
|
-
Object.entries(I).forEach(([
|
|
3639
|
-
if (!
|
|
4073
|
+
function b() {
|
|
4074
|
+
var v, m, p;
|
|
4075
|
+
const I = (p = (m = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4076
|
+
Object.entries(I).forEach(([C, w]) => {
|
|
4077
|
+
if (!w || h[C] || u[C] && !W())
|
|
3640
4078
|
return;
|
|
3641
|
-
h[
|
|
3642
|
-
const
|
|
4079
|
+
h[C] = !0;
|
|
4080
|
+
const B = w.replace(
|
|
3643
4081
|
/{{([^}]+)}}/g,
|
|
3644
|
-
(
|
|
4082
|
+
(A, j) => String(
|
|
3645
4083
|
L({
|
|
3646
|
-
code:
|
|
4084
|
+
code: j,
|
|
3647
4085
|
context: e.context || {},
|
|
3648
4086
|
localState: void 0,
|
|
3649
4087
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3651,24 +4089,24 @@ function ei(e) {
|
|
|
3651
4089
|
})
|
|
3652
4090
|
)
|
|
3653
4091
|
);
|
|
3654
|
-
Ie(
|
|
4092
|
+
Ie(B), fetch(B).then((A) => A.json()).then((A) => {
|
|
3655
4093
|
n({
|
|
3656
|
-
[
|
|
3657
|
-
}),
|
|
3658
|
-
}).catch((
|
|
3659
|
-
console.error("error fetching dynamic data",
|
|
4094
|
+
[C]: A
|
|
4095
|
+
}), u[C] = !0;
|
|
4096
|
+
}).catch((A) => {
|
|
4097
|
+
console.error("error fetching dynamic data", w, A);
|
|
3660
4098
|
}).finally(() => {
|
|
3661
|
-
h[
|
|
4099
|
+
h[C] = !1;
|
|
3662
4100
|
});
|
|
3663
4101
|
});
|
|
3664
4102
|
}
|
|
3665
|
-
function
|
|
4103
|
+
function x() {
|
|
3666
4104
|
W() && window.dispatchEvent(
|
|
3667
4105
|
new CustomEvent(
|
|
3668
4106
|
"builder:component:stateChange",
|
|
3669
4107
|
{
|
|
3670
4108
|
detail: {
|
|
3671
|
-
state:
|
|
4109
|
+
state: ce(e.builderContextSignal.rootState),
|
|
3672
4110
|
ref: {
|
|
3673
4111
|
name: e.model
|
|
3674
4112
|
}
|
|
@@ -3677,11 +4115,11 @@ function ei(e) {
|
|
|
3677
4115
|
)
|
|
3678
4116
|
);
|
|
3679
4117
|
}
|
|
3680
|
-
const
|
|
3681
|
-
return
|
|
3682
|
-
var I,
|
|
3683
|
-
if (
|
|
3684
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4118
|
+
const y = F(!1);
|
|
4119
|
+
return y.current || (b(), x(), y.current = !0), N(() => {
|
|
4120
|
+
var I, v, m;
|
|
4121
|
+
if ($()) {
|
|
4122
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Je(), Ge({
|
|
3685
4123
|
...e.locale ? {
|
|
3686
4124
|
locale: e.locale
|
|
3687
4125
|
} : {},
|
|
@@ -3693,93 +4131,93 @@ function ei(e) {
|
|
|
3693
4131
|
} : {}
|
|
3694
4132
|
}), Object.values(
|
|
3695
4133
|
e.builderContextSignal.componentInfos
|
|
3696
|
-
).forEach((
|
|
3697
|
-
var
|
|
3698
|
-
if (!e.model || !((
|
|
3699
|
-
const
|
|
3700
|
-
(
|
|
4134
|
+
).forEach((C) => {
|
|
4135
|
+
var w, B;
|
|
4136
|
+
if (!e.model || !((w = C.models) != null && w.length) || C.models.includes(e.model)) {
|
|
4137
|
+
const A = Qe(C);
|
|
4138
|
+
(B = window.parent) == null || B.postMessage(A, "*");
|
|
3701
4139
|
}
|
|
3702
4140
|
}), window.addEventListener(
|
|
3703
4141
|
"builder:component:stateChangeListenerActivated",
|
|
3704
|
-
|
|
3705
|
-
)), e.builderContextSignal.content &&
|
|
3706
|
-
const
|
|
3707
|
-
|
|
4142
|
+
x
|
|
4143
|
+
)), e.builderContextSignal.content && q(e.canTrack)) {
|
|
4144
|
+
const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id, B = e.apiKey;
|
|
4145
|
+
fe({
|
|
3708
4146
|
apiHost: e.apiHost,
|
|
3709
4147
|
type: "impression",
|
|
3710
4148
|
canTrack: !0,
|
|
3711
|
-
contentId:
|
|
3712
|
-
apiKey:
|
|
3713
|
-
variationId:
|
|
4149
|
+
contentId: w,
|
|
4150
|
+
apiKey: B,
|
|
4151
|
+
variationId: C !== w ? C : void 0
|
|
3714
4152
|
});
|
|
3715
4153
|
}
|
|
3716
|
-
if (
|
|
3717
|
-
const
|
|
3718
|
-
`builder.overrides.${
|
|
3719
|
-
),
|
|
3720
|
-
(
|
|
4154
|
+
if (Y() && !W()) {
|
|
4155
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), B = C.get(
|
|
4156
|
+
`builder.overrides.${w}`
|
|
4157
|
+
), A = C.get("apiKey") || C.get("builder.space");
|
|
4158
|
+
(w === "BUILDER_STUDIO" || w === e.model && A === e.apiKey && (!e.content || B === e.content.id)) && Ee({
|
|
3721
4159
|
model: e.model || "",
|
|
3722
4160
|
apiKey: e.apiKey,
|
|
3723
4161
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
3724
|
-
...
|
|
4162
|
+
...w === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
|
|
3725
4163
|
query: {
|
|
3726
4164
|
id: e.context.symbolId
|
|
3727
4165
|
}
|
|
3728
4166
|
} : {}
|
|
3729
|
-
}).then((
|
|
3730
|
-
|
|
4167
|
+
}).then((j) => {
|
|
4168
|
+
j && i(j);
|
|
3731
4169
|
});
|
|
3732
4170
|
}
|
|
3733
4171
|
}
|
|
3734
|
-
}, []),
|
|
4172
|
+
}, []), N(() => {
|
|
3735
4173
|
e.content && i(e.content);
|
|
3736
|
-
}, [e.content]),
|
|
3737
|
-
|
|
3738
|
-
}, [e.builderContextSignal.rootState]),
|
|
4174
|
+
}, [e.content]), N(() => {
|
|
4175
|
+
x();
|
|
4176
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
3739
4177
|
e.data && n(e.data);
|
|
3740
|
-
}, [e.data]),
|
|
4178
|
+
}, [e.data]), N(() => {
|
|
3741
4179
|
e.locale && n({
|
|
3742
4180
|
locale: e.locale
|
|
3743
4181
|
});
|
|
3744
|
-
}, [e.locale]),
|
|
3745
|
-
|
|
4182
|
+
}, [e.locale]), N(() => () => {
|
|
4183
|
+
$() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3746
4184
|
"builder:component:stateChangeListenerActivated",
|
|
3747
|
-
|
|
4185
|
+
x
|
|
3748
4186
|
));
|
|
3749
|
-
}, []), /* @__PURE__ */ s(
|
|
3750
|
-
|
|
4187
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Te() ? /* @__PURE__ */ s(
|
|
4188
|
+
o,
|
|
3751
4189
|
{
|
|
3752
4190
|
ref: t,
|
|
3753
|
-
onClick: (I) =>
|
|
3754
|
-
"builder-content-id": (
|
|
4191
|
+
onClick: (I) => f(I),
|
|
4192
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
3755
4193
|
"builder-model": e.model,
|
|
3756
|
-
className:
|
|
3757
|
-
((
|
|
4194
|
+
className: si(
|
|
4195
|
+
((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
3758
4196
|
),
|
|
3759
4197
|
style: {
|
|
3760
|
-
display: !e.builderContextSignal.content &&
|
|
4198
|
+
display: !e.builderContextSignal.content && Te() ? "none" : void 0
|
|
3761
4199
|
},
|
|
3762
|
-
...
|
|
4200
|
+
...a(),
|
|
3763
4201
|
...e.contentWrapperProps,
|
|
3764
4202
|
children: e.children
|
|
3765
4203
|
}
|
|
3766
4204
|
) : null });
|
|
3767
4205
|
}
|
|
3768
|
-
function
|
|
3769
|
-
const [t, n] =
|
|
4206
|
+
function ui(e) {
|
|
4207
|
+
const [t, n] = E(
|
|
3770
4208
|
() => `
|
|
3771
|
-
${
|
|
4209
|
+
${oi({
|
|
3772
4210
|
cssCode: e.cssCode,
|
|
3773
4211
|
contentId: e.contentId
|
|
3774
4212
|
})}
|
|
3775
|
-
${
|
|
4213
|
+
${ai({
|
|
3776
4214
|
customFonts: e.customFonts
|
|
3777
4215
|
})}
|
|
3778
|
-
${
|
|
4216
|
+
${li(e.isNestedRender)}
|
|
3779
4217
|
`.trim()
|
|
3780
4218
|
);
|
|
3781
4219
|
return /* @__PURE__ */ s(
|
|
3782
|
-
|
|
4220
|
+
H,
|
|
3783
4221
|
{
|
|
3784
4222
|
id: "builderio-content",
|
|
3785
4223
|
styles: t,
|
|
@@ -3787,24 +4225,24 @@ ${Xn(e.isNestedRender)}
|
|
|
3787
4225
|
}
|
|
3788
4226
|
);
|
|
3789
4227
|
}
|
|
3790
|
-
const
|
|
4228
|
+
const di = ({
|
|
3791
4229
|
content: e,
|
|
3792
4230
|
data: t,
|
|
3793
4231
|
locale: n
|
|
3794
4232
|
}) => {
|
|
3795
|
-
var
|
|
3796
|
-
const i = {},
|
|
3797
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
3798
|
-
|
|
4233
|
+
var o, r, l;
|
|
4234
|
+
const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
4235
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((u) => {
|
|
4236
|
+
u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
|
|
3799
4237
|
}), {
|
|
3800
4238
|
...i,
|
|
3801
|
-
...
|
|
4239
|
+
...a,
|
|
3802
4240
|
...t,
|
|
3803
4241
|
...n ? {
|
|
3804
4242
|
locale: n
|
|
3805
4243
|
} : {}
|
|
3806
4244
|
};
|
|
3807
|
-
},
|
|
4245
|
+
}, mi = ({
|
|
3808
4246
|
content: e,
|
|
3809
4247
|
data: t
|
|
3810
4248
|
}) => e ? {
|
|
@@ -3815,46 +4253,46 @@ const ni = ({
|
|
|
3815
4253
|
},
|
|
3816
4254
|
meta: e == null ? void 0 : e.meta
|
|
3817
4255
|
} : void 0;
|
|
3818
|
-
function
|
|
3819
|
-
var c, h,
|
|
3820
|
-
const [t, n] =
|
|
4256
|
+
function we(e) {
|
|
4257
|
+
var c, h, g, d, k, f, b, x, y;
|
|
4258
|
+
const [t, n] = E(
|
|
3821
4259
|
() => {
|
|
3822
|
-
var
|
|
3823
|
-
return
|
|
4260
|
+
var S, T;
|
|
4261
|
+
return Xn({
|
|
3824
4262
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3825
|
-
variationId: (
|
|
4263
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
3826
4264
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3827
|
-
contentId: (
|
|
4265
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
3828
4266
|
});
|
|
3829
4267
|
}
|
|
3830
4268
|
);
|
|
3831
|
-
function i(
|
|
3832
|
-
l((
|
|
3833
|
-
...
|
|
3834
|
-
rootState:
|
|
4269
|
+
function i(S) {
|
|
4270
|
+
l((T) => ({
|
|
4271
|
+
...T,
|
|
4272
|
+
rootState: S
|
|
3835
4273
|
}));
|
|
3836
4274
|
}
|
|
3837
|
-
const [
|
|
4275
|
+
const [a, o] = E(
|
|
3838
4276
|
() => [
|
|
3839
|
-
...
|
|
4277
|
+
...Se(),
|
|
3840
4278
|
...e.customComponents || []
|
|
3841
4279
|
].reduce(
|
|
3842
|
-
(
|
|
3843
|
-
...
|
|
4280
|
+
(S, { component: T, ...P }) => ({
|
|
4281
|
+
...S,
|
|
3844
4282
|
[P.name]: {
|
|
3845
|
-
component:
|
|
3846
|
-
...
|
|
4283
|
+
component: T,
|
|
4284
|
+
...he(P)
|
|
3847
4285
|
}
|
|
3848
4286
|
}),
|
|
3849
4287
|
{}
|
|
3850
4288
|
)
|
|
3851
|
-
), [r, l] =
|
|
3852
|
-
content:
|
|
4289
|
+
), [r, l] = E(() => ({
|
|
4290
|
+
content: mi({
|
|
3853
4291
|
content: e.content,
|
|
3854
4292
|
data: e.data
|
|
3855
4293
|
}),
|
|
3856
4294
|
localState: void 0,
|
|
3857
|
-
rootState:
|
|
4295
|
+
rootState: di({
|
|
3858
4296
|
content: e.content,
|
|
3859
4297
|
data: e.data,
|
|
3860
4298
|
locale: e.locale
|
|
@@ -3865,12 +4303,12 @@ function Te(e) {
|
|
|
3865
4303
|
apiKey: e.apiKey,
|
|
3866
4304
|
apiVersion: e.apiVersion,
|
|
3867
4305
|
componentInfos: [
|
|
3868
|
-
...
|
|
4306
|
+
...Se(),
|
|
3869
4307
|
...e.customComponents || []
|
|
3870
4308
|
].reduce(
|
|
3871
|
-
(
|
|
3872
|
-
...
|
|
3873
|
-
[P.name]:
|
|
4309
|
+
(S, { component: T, ...P }) => ({
|
|
4310
|
+
...S,
|
|
4311
|
+
[P.name]: he(P)
|
|
3874
4312
|
}),
|
|
3875
4313
|
{}
|
|
3876
4314
|
),
|
|
@@ -3879,31 +4317,31 @@ function Te(e) {
|
|
|
3879
4317
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3880
4318
|
nonce: e.nonce || "",
|
|
3881
4319
|
model: e.model || ""
|
|
3882
|
-
})),
|
|
3883
|
-
if (!
|
|
3884
|
-
e.apiKey ||
|
|
4320
|
+
})), u = F(!1);
|
|
4321
|
+
if (!u.current) {
|
|
4322
|
+
e.apiKey || Q.error(
|
|
3885
4323
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3886
4324
|
);
|
|
3887
|
-
const
|
|
3888
|
-
|
|
3889
|
-
code:
|
|
4325
|
+
const S = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4326
|
+
S && L({
|
|
4327
|
+
code: S,
|
|
3890
4328
|
context: e.context || {},
|
|
3891
4329
|
localState: void 0,
|
|
3892
4330
|
rootState: r.rootState,
|
|
3893
|
-
rootSetState: (
|
|
3894
|
-
Object.assign(r.rootState,
|
|
4331
|
+
rootSetState: (T) => {
|
|
4332
|
+
Object.assign(r.rootState, T);
|
|
3895
4333
|
},
|
|
3896
4334
|
isExpression: !1
|
|
3897
|
-
}),
|
|
4335
|
+
}), u.current = !0;
|
|
3898
4336
|
}
|
|
3899
4337
|
return /* @__PURE__ */ s(
|
|
3900
|
-
|
|
4338
|
+
Ve.Provider,
|
|
3901
4339
|
{
|
|
3902
4340
|
value: {
|
|
3903
|
-
registeredComponents:
|
|
4341
|
+
registeredComponents: a
|
|
3904
4342
|
},
|
|
3905
|
-
children: /* @__PURE__ */
|
|
3906
|
-
|
|
4343
|
+
children: /* @__PURE__ */ V(
|
|
4344
|
+
ci,
|
|
3907
4345
|
{
|
|
3908
4346
|
apiHost: e.apiHost,
|
|
3909
4347
|
nonce: e.nonce,
|
|
@@ -3924,7 +4362,7 @@ function Te(e) {
|
|
|
3924
4362
|
setBuilderContextSignal: l,
|
|
3925
4363
|
children: [
|
|
3926
4364
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3927
|
-
|
|
4365
|
+
G,
|
|
3928
4366
|
{
|
|
3929
4367
|
id: "builderio-variant-visibility",
|
|
3930
4368
|
scriptStr: t,
|
|
@@ -3932,21 +4370,21 @@ function Te(e) {
|
|
|
3932
4370
|
}
|
|
3933
4371
|
) : null,
|
|
3934
4372
|
/* @__PURE__ */ s(
|
|
3935
|
-
|
|
4373
|
+
ui,
|
|
3936
4374
|
{
|
|
3937
4375
|
nonce: e.nonce || "",
|
|
3938
4376
|
isNestedRender: e.isNestedRender,
|
|
3939
|
-
contentId: (
|
|
3940
|
-
cssCode: (k = (
|
|
3941
|
-
customFonts: (
|
|
4377
|
+
contentId: (g = r.content) == null ? void 0 : g.id,
|
|
4378
|
+
cssCode: (k = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : k.cssCode,
|
|
4379
|
+
customFonts: (b = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
|
|
3942
4380
|
}
|
|
3943
4381
|
),
|
|
3944
4382
|
/* @__PURE__ */ s(
|
|
3945
|
-
|
|
4383
|
+
D,
|
|
3946
4384
|
{
|
|
3947
|
-
blocks: (
|
|
4385
|
+
blocks: (y = (x = r.content) == null ? void 0 : x.data) == null ? void 0 : y.blocks,
|
|
3948
4386
|
context: r,
|
|
3949
|
-
registeredComponents:
|
|
4387
|
+
registeredComponents: a,
|
|
3950
4388
|
linkComponent: e.linkComponent
|
|
3951
4389
|
}
|
|
3952
4390
|
)
|
|
@@ -3956,66 +4394,66 @@ function Te(e) {
|
|
|
3956
4394
|
}
|
|
3957
4395
|
);
|
|
3958
4396
|
}
|
|
3959
|
-
function
|
|
4397
|
+
function fi(e) {
|
|
3960
4398
|
var r;
|
|
3961
|
-
const [t, n] =
|
|
3962
|
-
() =>
|
|
3963
|
-
canTrack:
|
|
4399
|
+
const [t, n] = E(
|
|
4400
|
+
() => Jn({
|
|
4401
|
+
canTrack: q(e.canTrack),
|
|
3964
4402
|
content: e.content
|
|
3965
4403
|
})
|
|
3966
4404
|
);
|
|
3967
4405
|
function i() {
|
|
3968
4406
|
var l;
|
|
3969
|
-
return
|
|
3970
|
-
|
|
3971
|
-
id:
|
|
3972
|
-
testRatio:
|
|
4407
|
+
return Yn(
|
|
4408
|
+
z(e.content).map((u) => ({
|
|
4409
|
+
id: u.testVariationId,
|
|
4410
|
+
testRatio: u.testRatio
|
|
3973
4411
|
})),
|
|
3974
4412
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3975
4413
|
);
|
|
3976
4414
|
}
|
|
3977
|
-
function o() {
|
|
3978
|
-
return j(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3979
|
-
}
|
|
3980
4415
|
function a() {
|
|
4416
|
+
return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4417
|
+
}
|
|
4418
|
+
function o() {
|
|
3981
4419
|
var l;
|
|
3982
4420
|
return t ? {
|
|
3983
4421
|
...e.content,
|
|
3984
4422
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3985
|
-
} :
|
|
4423
|
+
} : Xe({
|
|
3986
4424
|
item: e.content,
|
|
3987
|
-
canTrack:
|
|
4425
|
+
canTrack: q(e.canTrack)
|
|
3988
4426
|
});
|
|
3989
4427
|
}
|
|
3990
|
-
return
|
|
3991
|
-
}, []), /* @__PURE__ */
|
|
3992
|
-
!e.isNestedRender &&
|
|
3993
|
-
|
|
4428
|
+
return N(() => {
|
|
4429
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
4430
|
+
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4431
|
+
G,
|
|
3994
4432
|
{
|
|
3995
4433
|
id: "builderio-init-variants-fns",
|
|
3996
|
-
scriptStr:
|
|
4434
|
+
scriptStr: Qn(),
|
|
3997
4435
|
nonce: e.nonce || ""
|
|
3998
4436
|
}
|
|
3999
4437
|
) : null,
|
|
4000
|
-
t ? /* @__PURE__ */
|
|
4438
|
+
t ? /* @__PURE__ */ V(R, { children: [
|
|
4001
4439
|
/* @__PURE__ */ s(
|
|
4002
|
-
|
|
4440
|
+
H,
|
|
4003
4441
|
{
|
|
4004
4442
|
id: "builderio-variants",
|
|
4005
|
-
styles:
|
|
4443
|
+
styles: a(),
|
|
4006
4444
|
nonce: e.nonce || ""
|
|
4007
4445
|
}
|
|
4008
4446
|
),
|
|
4009
4447
|
/* @__PURE__ */ s(
|
|
4010
|
-
|
|
4448
|
+
G,
|
|
4011
4449
|
{
|
|
4012
4450
|
id: "builderio-variants-visibility",
|
|
4013
4451
|
scriptStr: i(),
|
|
4014
4452
|
nonce: e.nonce || ""
|
|
4015
4453
|
}
|
|
4016
4454
|
),
|
|
4017
|
-
(r =
|
|
4018
|
-
|
|
4455
|
+
(r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4456
|
+
we,
|
|
4019
4457
|
{
|
|
4020
4458
|
apiHost: e.apiHost,
|
|
4021
4459
|
isNestedRender: e.isNestedRender,
|
|
@@ -4043,12 +4481,12 @@ function oi(e) {
|
|
|
4043
4481
|
))
|
|
4044
4482
|
] }) : null,
|
|
4045
4483
|
/* @__PURE__ */ s(
|
|
4046
|
-
|
|
4484
|
+
we,
|
|
4047
4485
|
{
|
|
4048
4486
|
apiHost: e.apiHost,
|
|
4049
4487
|
nonce: e.nonce,
|
|
4050
4488
|
isNestedRender: e.isNestedRender,
|
|
4051
|
-
content:
|
|
4489
|
+
content: o(),
|
|
4052
4490
|
showContent: !0,
|
|
4053
4491
|
model: e.model,
|
|
4054
4492
|
data: e.data,
|
|
@@ -4070,13 +4508,13 @@ function oi(e) {
|
|
|
4070
4508
|
)
|
|
4071
4509
|
] });
|
|
4072
4510
|
}
|
|
4073
|
-
const
|
|
4511
|
+
const hi = async ({
|
|
4074
4512
|
builderContextValue: e,
|
|
4075
4513
|
symbol: t
|
|
4076
4514
|
}) => {
|
|
4077
4515
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4078
4516
|
(e != null && e.apiKey))
|
|
4079
|
-
return
|
|
4517
|
+
return Ee({
|
|
4080
4518
|
model: t.model,
|
|
4081
4519
|
apiKey: e.apiKey,
|
|
4082
4520
|
apiVersion: e.apiVersion,
|
|
@@ -4086,11 +4524,11 @@ const ai = async ({
|
|
|
4086
4524
|
}
|
|
4087
4525
|
}
|
|
4088
4526
|
}).catch((n) => {
|
|
4089
|
-
|
|
4527
|
+
Q.error("Could not fetch symbol content: ", n);
|
|
4090
4528
|
});
|
|
4091
4529
|
};
|
|
4092
|
-
function
|
|
4093
|
-
var l,
|
|
4530
|
+
function gi(e) {
|
|
4531
|
+
var l, u, c, h;
|
|
4094
4532
|
function t() {
|
|
4095
4533
|
return "div";
|
|
4096
4534
|
}
|
|
@@ -4098,31 +4536,31 @@ function ri(e) {
|
|
|
4098
4536
|
return "div";
|
|
4099
4537
|
}
|
|
4100
4538
|
function i() {
|
|
4101
|
-
var
|
|
4539
|
+
var g, d;
|
|
4102
4540
|
return [
|
|
4103
|
-
e.attributes[
|
|
4541
|
+
e.attributes[M()],
|
|
4104
4542
|
"builder-symbol",
|
|
4105
|
-
(
|
|
4106
|
-
(
|
|
4543
|
+
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4544
|
+
(d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4107
4545
|
].filter(Boolean).join(" ");
|
|
4108
4546
|
}
|
|
4109
|
-
const [
|
|
4110
|
-
var
|
|
4111
|
-
return (
|
|
4547
|
+
const [a, o] = E(() => {
|
|
4548
|
+
var g;
|
|
4549
|
+
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4112
4550
|
});
|
|
4113
4551
|
function r() {
|
|
4114
|
-
|
|
4552
|
+
a || hi({
|
|
4115
4553
|
symbol: e.symbol,
|
|
4116
4554
|
builderContextValue: e.builderContext
|
|
4117
|
-
}).then((
|
|
4118
|
-
|
|
4555
|
+
}).then((g) => {
|
|
4556
|
+
g && o(g);
|
|
4119
4557
|
});
|
|
4120
4558
|
}
|
|
4121
|
-
return
|
|
4122
|
-
}, []),
|
|
4559
|
+
return N(() => {
|
|
4560
|
+
}, []), N(() => {
|
|
4123
4561
|
r();
|
|
4124
4562
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4125
|
-
|
|
4563
|
+
fi,
|
|
4126
4564
|
{
|
|
4127
4565
|
nonce: e.builderContext.nonce,
|
|
4128
4566
|
isNestedRender: !0,
|
|
@@ -4134,13 +4572,13 @@ function ri(e) {
|
|
|
4134
4572
|
},
|
|
4135
4573
|
customComponents: Object.values(e.builderComponents),
|
|
4136
4574
|
data: {
|
|
4137
|
-
...(
|
|
4575
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
4138
4576
|
...e.builderContext.localState,
|
|
4139
|
-
...(c =
|
|
4577
|
+
...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
|
|
4140
4578
|
},
|
|
4141
4579
|
canTrack: e.builderContext.canTrack,
|
|
4142
4580
|
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4143
|
-
content:
|
|
4581
|
+
content: a,
|
|
4144
4582
|
linkComponent: e.builderLinkComponent,
|
|
4145
4583
|
blocksWrapper: t(),
|
|
4146
4584
|
contentWrapper: n()
|
|
@@ -4148,15 +4586,16 @@ function ri(e) {
|
|
|
4148
4586
|
) });
|
|
4149
4587
|
}
|
|
4150
4588
|
export {
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4589
|
+
D as Blocks,
|
|
4590
|
+
se as BuilderContext,
|
|
4591
|
+
nt as Button,
|
|
4592
|
+
Kt as Columns,
|
|
4593
|
+
fi as Content,
|
|
4594
|
+
Jt as Fragment,
|
|
4157
4595
|
Yt as Image,
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4596
|
+
Xt as Section,
|
|
4597
|
+
gi as Symbol,
|
|
4598
|
+
kn as Text,
|
|
4599
|
+
Hn as Video,
|
|
4600
|
+
Si as setClientUserAttributes
|
|
4162
4601
|
};
|