@builder.io/sdk-react 3.0.1 → 3.0.3-0
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 +169 -32
- package/lib/browser/blocks-exports.mjs +1331 -922
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -16
- package/lib/browser/server-entry-c7bda8b5.cjs +2 -0
- package/lib/browser/server-entry-da1754bd.js +790 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/accordion-388f5e60.cjs +1 -0
- package/lib/edge/{accordion-1572cb0d.js → accordion-50de133c.js} +17 -16
- package/lib/edge/blocks-5e476ddc.js +3534 -0
- package/lib/edge/blocks-a5193d52.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +13 -12
- package/lib/edge/{button-0709893d.js → button-4261ae64.js} +2 -2
- package/lib/edge/{button-cf66cf8d.cjs → button-c6ec3aea.cjs} +1 -1
- package/lib/edge/{columns-e234acc6.js → columns-28e9fb0a.js} +14 -15
- package/lib/edge/columns-8c831c02.cjs +28 -0
- package/lib/edge/{content-variants-3ab9230f.js → content-variants-36ca4fe5.js} +297 -252
- package/lib/edge/content-variants-81713434.cjs +134 -0
- package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
- package/lib/edge/dynamic-blocks-exports.cjs +3 -1
- package/lib/edge/dynamic-blocks-exports.mjs +5 -2
- package/lib/edge/{form-27bcc23a.js → form-039fb5ff.js} +7 -8
- package/lib/edge/form-e7a1dec9.cjs +1 -0
- package/lib/edge/{get-class-prop-name-a3bd113c.js → get-class-prop-name-65d6824c.js} +1 -1
- package/lib/edge/{get-class-prop-name-0b3d48a4.cjs → get-class-prop-name-a86a3e60.cjs} +1 -1
- package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
- package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
- package/lib/edge/{img-80be6914.js → img-61d29fb3.js} +1 -1
- package/lib/edge/{img-e0c8f7f9.cjs → img-7de3a3de.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +18 -17
- package/lib/edge/{input-f5ba6b1e.cjs → input-bd5387a6.cjs} +1 -1
- package/lib/edge/{input-920922d5.js → input-c8539054.js} +1 -1
- package/lib/edge/personalization-container-3fda6014.cjs +138 -0
- package/lib/edge/personalization-container-c76e4fef.js +379 -0
- package/lib/edge/{select-673864b7.js → select-6b5cda00.js} +1 -1
- package/lib/edge/{select-2ced1aca.cjs → select-73accaf4.cjs} +1 -1
- package/lib/edge/server-entry-838c1f06.js +788 -0
- package/lib/edge/server-entry-ea2a8b0e.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/slot-099112f1.cjs +1 -0
- package/lib/edge/{slot-68f2b177.js → slot-403c77da.js} +5 -6
- package/lib/edge/{symbol-7e260a70.js → symbol-97f456f4.js} +2 -2
- package/lib/edge/{symbol-ded9dba9.cjs → symbol-ffa6e6cd.cjs} +1 -1
- package/lib/edge/{tabs-5156494d.js → tabs-a7c94ead.js} +15 -16
- package/lib/edge/tabs-ad55c6a7.cjs +1 -0
- package/lib/edge/text-5915f038.js +17 -0
- package/lib/edge/text-e6dbb721.cjs +1 -0
- package/lib/node/blocks-exports.cjs +169 -32
- package/lib/node/blocks-exports.mjs +1359 -950
- 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-51bc0b1d.js +791 -0
- package/lib/node/server-entry-d7316893.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-8b303d4e.js → setIvm-575cf1f1.js} +1 -1
- package/lib/node/{setIvm-aba1bed8.cjs → setIvm-d912cf4d.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-491a9b55.cjs → should-force-browser-runtime-in-node-23225980.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-0a037bde.js → should-force-browser-runtime-in-node-66df4856.js} +1 -1
- package/package.json +1 -1
- package/types/blocks/index.d.ts +4 -0
- package/types/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/blocks/personalization-container/helpers/index.d.ts +15 -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/blocks/textarea/component-info.d.ts +2 -0
- package/types/blocks/textarea/index.d.ts +1 -0
- package/types/blocks/textarea/textarea.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/filter-with-custom-targeting.d.ts +15 -0
- package/types/functions/get-block-component-options.d.ts +2 -1
- package/types/functions/get-processed-block.d.ts +1 -6
- package/types/helpers/flatten.d.ts +6 -0
- package/types/helpers/user-attributes.d.ts +17 -0
- package/types/index-helpers/blocks-exports.d.ts +1 -0
- package/types/server-index.d.ts +1 -1
- package/types/types/builder-content.d.ts +1 -0
- package/types/types/input.d.ts +11 -0
- package/lib/browser/server-entry-017b8439.js +0 -717
- package/lib/browser/server-entry-9f80066e.cjs +0 -2
- package/lib/edge/accordion-decb24cf.cjs +0 -1
- package/lib/edge/blocks-9c35be74.js +0 -916
- package/lib/edge/blocks-d3823063.cjs +0 -12
- package/lib/edge/columns-2fdf0656.cjs +0 -28
- package/lib/edge/content-variants-616a6c0f.cjs +0 -134
- package/lib/edge/evaluate-ccf1ad96.cjs +0 -19
- package/lib/edge/evaluate-f0b82ede.js +0 -2612
- package/lib/edge/form-7c61693d.cjs +0 -1
- package/lib/edge/server-entry-6c0047ea.js +0 -715
- package/lib/edge/server-entry-de142ee8.cjs +0 -2
- package/lib/edge/slot-cc8b4e5b.cjs +0 -1
- package/lib/edge/tabs-d422921f.cjs +0 -1
- package/lib/edge/text-27a917c0.js +0 -37
- package/lib/edge/text-5796f488.cjs +0 -1
- package/lib/node/server-entry-e91e06a3.cjs +0 -2
- package/lib/node/server-entry-fdedc1aa.js +0 -718
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { TARGET as F, isEditing as W, isBrowser as L, getUserAttributes as Ke, checkIsDefined as J, logger as Y, isPreviewing as X, userAttributesService as de, getDefaultCanTrack as q, logFetch as Ie, registerInsertMenu as Je, setupBrowserForEditing as Ge, createRegisterComponentMessage as Qe, _track as me, fetchOneEntry as Ee, createEditorListener as Ye, serializeIncludingFunctions as fe, handleABTestingSync as Xe } from "./server-entry-da1754bd.js";
|
|
3
|
+
import { setClientUserAttributes as Si } from "./server-entry-da1754bd.js";
|
|
4
|
+
import { jsx as s, Fragment as P, jsxs as N } from "react/jsx-runtime";
|
|
5
|
+
import * as Ze from "react";
|
|
6
|
+
import { createContext as Re, useEffect as A, useState as R, useRef as D, useContext as he, 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());
|
|
6
8
|
function re(e) {
|
|
7
|
-
return /* @__PURE__ */ s(
|
|
9
|
+
return /* @__PURE__ */ s(P, { children: tt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { 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 }) }) });
|
|
8
10
|
}
|
|
9
11
|
const H = () => {
|
|
10
|
-
switch (
|
|
12
|
+
switch (F) {
|
|
11
13
|
case "react":
|
|
12
14
|
case "reactNative":
|
|
13
15
|
case "rsc":
|
|
@@ -20,7 +22,7 @@ const H = () => {
|
|
|
20
22
|
return "class";
|
|
21
23
|
}
|
|
22
24
|
};
|
|
23
|
-
function
|
|
25
|
+
function nt(e) {
|
|
24
26
|
function t() {
|
|
25
27
|
return {
|
|
26
28
|
...e.attributes,
|
|
@@ -44,7 +46,7 @@ function et(e) {
|
|
|
44
46
|
}
|
|
45
47
|
);
|
|
46
48
|
}
|
|
47
|
-
const le =
|
|
49
|
+
const le = Re({
|
|
48
50
|
content: null,
|
|
49
51
|
context: {},
|
|
50
52
|
localState: void 0,
|
|
@@ -59,22 +61,8 @@ const le = Ee({
|
|
|
59
61
|
BlocksWrapperProps: {},
|
|
60
62
|
nonce: "",
|
|
61
63
|
model: ""
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
var t;
|
|
65
|
-
return {
|
|
66
|
-
...(t = e.component) == null ? void 0 : t.options,
|
|
67
|
-
...e.options
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function nt(e, ...t) {
|
|
71
|
-
const n = Object.assign({}, e);
|
|
72
|
-
for (const i of t)
|
|
73
|
-
delete n[i];
|
|
74
|
-
return n;
|
|
75
|
-
}
|
|
76
|
-
const Be = (e, t, n) => {
|
|
77
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
64
|
+
}), Ve = Re({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
65
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
|
|
78
66
|
return i === void 0 || i === e ? n : i;
|
|
79
67
|
}, it = ({
|
|
80
68
|
builder: e,
|
|
@@ -90,13 +78,13 @@ const Be = (e, t, n) => {
|
|
|
90
78
|
event: n
|
|
91
79
|
}), ot = () => ({
|
|
92
80
|
isEditing: W(),
|
|
93
|
-
isBrowser:
|
|
94
|
-
isServer: !
|
|
95
|
-
getUserAttributes: () =>
|
|
81
|
+
isBrowser: L(),
|
|
82
|
+
isServer: !L(),
|
|
83
|
+
getUserAttributes: () => Ke()
|
|
96
84
|
}), at = (e, {
|
|
97
85
|
isExpression: t = !0
|
|
98
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;
|
|
99
|
-
function
|
|
87
|
+
function Ae({
|
|
100
88
|
rootState: e,
|
|
101
89
|
localState: t,
|
|
102
90
|
rootSetState: n
|
|
@@ -105,46 +93,46 @@ function Ve({
|
|
|
105
93
|
get: (i, o) => {
|
|
106
94
|
if (t && o in t)
|
|
107
95
|
return t[o];
|
|
108
|
-
const
|
|
109
|
-
return typeof
|
|
110
|
-
rootState:
|
|
96
|
+
const a = i[o];
|
|
97
|
+
return typeof a == "object" && a !== null ? Ae({
|
|
98
|
+
rootState: a,
|
|
111
99
|
localState: void 0,
|
|
112
|
-
rootSetState: n ? (
|
|
113
|
-
i[o] =
|
|
100
|
+
rootSetState: n ? (r) => {
|
|
101
|
+
i[o] = r, n(i);
|
|
114
102
|
} : void 0
|
|
115
|
-
}) :
|
|
103
|
+
}) : a;
|
|
116
104
|
},
|
|
117
|
-
set: (i, o,
|
|
105
|
+
set: (i, o, a) => {
|
|
118
106
|
if (t && o in t)
|
|
119
107
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
120
|
-
return i[o] =
|
|
108
|
+
return i[o] = a, n == null || n(i), !0;
|
|
121
109
|
}
|
|
122
110
|
});
|
|
123
111
|
}
|
|
124
|
-
const
|
|
112
|
+
const ge = ({
|
|
125
113
|
code: e,
|
|
126
114
|
builder: t,
|
|
127
115
|
context: n,
|
|
128
116
|
event: i,
|
|
129
117
|
localState: o,
|
|
130
|
-
rootSetState:
|
|
131
|
-
rootState:
|
|
118
|
+
rootSetState: a,
|
|
119
|
+
rootState: r
|
|
132
120
|
}) => {
|
|
133
121
|
const l = it({
|
|
134
122
|
builder: t,
|
|
135
123
|
context: n,
|
|
136
124
|
event: i,
|
|
137
|
-
state:
|
|
138
|
-
rootState:
|
|
125
|
+
state: Ae({
|
|
126
|
+
rootState: r,
|
|
139
127
|
localState: o,
|
|
140
|
-
rootSetState:
|
|
128
|
+
rootSetState: a
|
|
141
129
|
})
|
|
142
130
|
});
|
|
143
|
-
return new Function(...l.map(([
|
|
131
|
+
return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
|
|
144
132
|
};
|
|
145
133
|
function rt() {
|
|
146
134
|
var e;
|
|
147
|
-
return typeof process != "undefined" &&
|
|
135
|
+
return typeof process != "undefined" && J((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
148
136
|
}
|
|
149
137
|
const lt = ({
|
|
150
138
|
shouldLogWarning: e
|
|
@@ -153,111 +141,139 @@ const lt = ({
|
|
|
153
141
|
if (!rt())
|
|
154
142
|
return !1;
|
|
155
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
|
|
156
|
-
return t && n && !i ? (e &&
|
|
157
|
-
}, st = (e) => (
|
|
144
|
+
return t && n && !i ? (e && Y.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) => (L() || lt({
|
|
158
146
|
shouldLogWarning: !0
|
|
159
|
-
}),
|
|
160
|
-
var t, n, i, o,
|
|
161
|
-
return ((i = (n = (t = ct.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
147
|
+
}), ge(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, o, a, 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 = (a = (o = ut.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : a.getPath) == null ? void 0 : r.slice(1));
|
|
162
150
|
};
|
|
163
|
-
function
|
|
151
|
+
function U({
|
|
164
152
|
code: e,
|
|
165
153
|
context: t,
|
|
166
154
|
localState: n,
|
|
167
155
|
rootState: i,
|
|
168
156
|
rootSetState: o,
|
|
169
|
-
event:
|
|
170
|
-
isExpression:
|
|
157
|
+
event: a,
|
|
158
|
+
isExpression: r = !0
|
|
171
159
|
}) {
|
|
172
160
|
if (e.trim() === "")
|
|
173
161
|
return;
|
|
174
|
-
const l =
|
|
162
|
+
const l = dt(e.trim());
|
|
175
163
|
if (l)
|
|
176
164
|
return Be({
|
|
177
165
|
...i,
|
|
178
166
|
...n
|
|
179
167
|
}, l);
|
|
180
|
-
const
|
|
168
|
+
const u = {
|
|
181
169
|
code: at(e, {
|
|
182
|
-
isExpression:
|
|
170
|
+
isExpression: r
|
|
183
171
|
}),
|
|
184
172
|
builder: ot(),
|
|
185
173
|
context: t,
|
|
186
|
-
event:
|
|
174
|
+
event: a,
|
|
187
175
|
rootSetState: o,
|
|
188
176
|
rootState: i,
|
|
189
177
|
localState: n
|
|
190
178
|
};
|
|
191
179
|
try {
|
|
192
|
-
return st(
|
|
180
|
+
return st(u);
|
|
193
181
|
} catch (c) {
|
|
194
|
-
|
|
182
|
+
Y.error("Failed code evaluation: " + c.message, {
|
|
195
183
|
code: e
|
|
196
184
|
});
|
|
197
185
|
return;
|
|
198
186
|
}
|
|
199
187
|
}
|
|
200
|
-
function
|
|
188
|
+
function mt(e, t) {
|
|
189
|
+
var n;
|
|
190
|
+
return {
|
|
191
|
+
...(n = e.component) == null ? void 0 : n.options,
|
|
192
|
+
...e.options,
|
|
193
|
+
...ft(e, t)
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
const ft = (e, t) => {
|
|
197
|
+
var n, i;
|
|
198
|
+
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
|
+
return {
|
|
200
|
+
...e.component.options,
|
|
201
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (o, a) => U({
|
|
202
|
+
code: a,
|
|
203
|
+
context: t,
|
|
204
|
+
localState: t.localState,
|
|
205
|
+
rootState: t.rootState,
|
|
206
|
+
rootSetState: t.rootSetState
|
|
207
|
+
}))
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
function ht(e, ...t) {
|
|
211
|
+
const n = Object.assign({}, e);
|
|
212
|
+
for (const i of t)
|
|
213
|
+
delete n[i];
|
|
214
|
+
return n;
|
|
215
|
+
}
|
|
216
|
+
function G(e, t, n = null, i = null, o = /* @__PURE__ */ new WeakSet()) {
|
|
201
217
|
if (e == null || typeof e != "object") {
|
|
202
|
-
t(e, (
|
|
203
|
-
n !== null && i !== null && (n[i] =
|
|
218
|
+
t(e, (a) => {
|
|
219
|
+
n !== null && i !== null && (n[i] = a);
|
|
204
220
|
});
|
|
205
221
|
return;
|
|
206
222
|
}
|
|
207
|
-
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((
|
|
208
|
-
t(
|
|
209
|
-
e[
|
|
210
|
-
}),
|
|
211
|
-
}) : Object.entries(e).forEach(([
|
|
212
|
-
t(
|
|
213
|
-
e[
|
|
214
|
-
}),
|
|
223
|
+
o.has(e) || (o.add(e), Array.isArray(e) ? e.forEach((a, r) => {
|
|
224
|
+
t(a, (u) => {
|
|
225
|
+
e[r] = u;
|
|
226
|
+
}), G(a, t, e, r, o);
|
|
227
|
+
}) : Object.entries(e).forEach(([a, r]) => {
|
|
228
|
+
t(r, (u) => {
|
|
229
|
+
e[a] = u;
|
|
230
|
+
}), G(r, t, e, a, o);
|
|
215
231
|
}));
|
|
216
232
|
}
|
|
217
|
-
function
|
|
233
|
+
function Ne(e) {
|
|
218
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
219
235
|
}
|
|
220
|
-
function
|
|
236
|
+
function gt(e) {
|
|
221
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
222
238
|
return !1;
|
|
223
239
|
let t = !1;
|
|
224
|
-
return
|
|
225
|
-
if (
|
|
240
|
+
return G(e, (n) => {
|
|
241
|
+
if (Ne(n)) {
|
|
226
242
|
t = !0;
|
|
227
243
|
return;
|
|
228
244
|
}
|
|
229
245
|
}), t;
|
|
230
246
|
}
|
|
231
|
-
function
|
|
232
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
247
|
+
function bt(e, t) {
|
|
248
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (G(e, (n, i) => {
|
|
233
249
|
var o;
|
|
234
|
-
|
|
250
|
+
Ne(n) && i((o = n[t]) != null ? o : void 0);
|
|
235
251
|
}), e);
|
|
236
252
|
}
|
|
237
|
-
function
|
|
253
|
+
function pt(e, t) {
|
|
238
254
|
var n, i;
|
|
239
|
-
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;
|
|
240
256
|
}
|
|
241
|
-
const se = (e) => JSON.parse(JSON.stringify(e)),
|
|
257
|
+
const se = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
|
|
242
258
|
if (Object(e) !== e)
|
|
243
259
|
return e;
|
|
244
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
245
|
-
return i.slice(0, -1).reduce((o,
|
|
261
|
+
return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
246
262
|
};
|
|
247
|
-
function
|
|
263
|
+
function ae(e) {
|
|
248
264
|
if (e === null || typeof e != "object")
|
|
249
265
|
return e;
|
|
250
266
|
if (Array.isArray(e))
|
|
251
|
-
return e.map((n) =>
|
|
267
|
+
return e.map((n) => ae(n));
|
|
252
268
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
253
269
|
return e;
|
|
254
270
|
const t = {};
|
|
255
271
|
for (const n in e)
|
|
256
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
272
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
257
273
|
return t;
|
|
258
274
|
}
|
|
259
|
-
const
|
|
260
|
-
if (
|
|
275
|
+
const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), vt = (e) => {
|
|
276
|
+
if (yt) {
|
|
261
277
|
const t = se(e);
|
|
262
278
|
return {
|
|
263
279
|
...t,
|
|
@@ -269,7 +285,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
269
285
|
}
|
|
270
286
|
};
|
|
271
287
|
} else {
|
|
272
|
-
const t =
|
|
288
|
+
const t = ae(ht(e, "children", "meta"));
|
|
273
289
|
return {
|
|
274
290
|
...t,
|
|
275
291
|
properties: {
|
|
@@ -282,7 +298,7 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
282
298
|
meta: e.meta
|
|
283
299
|
};
|
|
284
300
|
}
|
|
285
|
-
},
|
|
301
|
+
}, xt = ({
|
|
286
302
|
block: e,
|
|
287
303
|
context: t,
|
|
288
304
|
localState: n,
|
|
@@ -291,171 +307,170 @@ const gt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), bt = (e) =
|
|
|
291
307
|
}) => {
|
|
292
308
|
if (!e.bindings)
|
|
293
309
|
return e;
|
|
294
|
-
const
|
|
295
|
-
for (const
|
|
296
|
-
const l = e.bindings[
|
|
310
|
+
const a = vt(e);
|
|
311
|
+
for (const r in e.bindings) {
|
|
312
|
+
const l = e.bindings[r], u = U({
|
|
297
313
|
code: l,
|
|
298
314
|
localState: n,
|
|
299
315
|
rootState: i,
|
|
300
316
|
rootSetState: o,
|
|
301
317
|
context: t
|
|
302
318
|
});
|
|
303
|
-
|
|
319
|
+
We(a, r, u);
|
|
304
320
|
}
|
|
305
|
-
return
|
|
321
|
+
return a;
|
|
306
322
|
};
|
|
307
|
-
function
|
|
323
|
+
function St({
|
|
308
324
|
block: e,
|
|
309
325
|
context: t,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
rootSetState: r
|
|
326
|
+
localState: n,
|
|
327
|
+
rootState: i,
|
|
328
|
+
rootSetState: o
|
|
314
329
|
}) {
|
|
315
|
-
let a =
|
|
316
|
-
return a = a,
|
|
330
|
+
let a = pt(e, i.locale);
|
|
331
|
+
return a = a, xt({
|
|
317
332
|
block: a,
|
|
318
|
-
localState:
|
|
319
|
-
rootState:
|
|
320
|
-
rootSetState:
|
|
333
|
+
localState: n,
|
|
334
|
+
rootState: i,
|
|
335
|
+
rootSetState: o,
|
|
321
336
|
context: t
|
|
322
|
-
})
|
|
337
|
+
});
|
|
323
338
|
}
|
|
324
|
-
const
|
|
325
|
-
function
|
|
326
|
-
let i, o,
|
|
327
|
-
const
|
|
328
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
339
|
+
const Z = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
+
function kt(e, t, n = {}) {
|
|
341
|
+
let i, o, a, r = null, l = 0;
|
|
342
|
+
const u = function() {
|
|
343
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, a = e.apply(i, o), r || (i = o = null);
|
|
329
344
|
};
|
|
330
345
|
return function() {
|
|
331
346
|
const c = Date.now();
|
|
332
347
|
!l && n.leading === !1 && (l = c);
|
|
333
348
|
const h = t - (c - l);
|
|
334
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
349
|
+
return i = this, o = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(u, h)), a;
|
|
335
350
|
};
|
|
336
351
|
}
|
|
337
|
-
function
|
|
352
|
+
function _(e, ...t) {
|
|
338
353
|
const n = Object(e);
|
|
339
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
340
355
|
const o = arguments[i];
|
|
341
356
|
if (o != null)
|
|
342
|
-
for (const
|
|
343
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
357
|
+
for (const a in o)
|
|
358
|
+
Object.prototype.hasOwnProperty.call(o, a) && (n[a] = o[a]);
|
|
344
359
|
}
|
|
345
360
|
return n;
|
|
346
361
|
}
|
|
347
|
-
function
|
|
362
|
+
function Ct(e) {
|
|
348
363
|
for (const t of e)
|
|
349
364
|
switch (t.trigger) {
|
|
350
365
|
case "pageLoad":
|
|
351
|
-
|
|
366
|
+
Fe(t);
|
|
352
367
|
break;
|
|
353
368
|
case "scrollInView":
|
|
354
|
-
|
|
369
|
+
Tt(t);
|
|
355
370
|
break;
|
|
356
371
|
}
|
|
357
372
|
}
|
|
358
|
-
function
|
|
373
|
+
function $e(e) {
|
|
359
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
360
375
|
}
|
|
361
|
-
function
|
|
362
|
-
const n =
|
|
363
|
-
for (const l of
|
|
364
|
-
for (const
|
|
365
|
-
|
|
376
|
+
function De(e, t) {
|
|
377
|
+
const n = wt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
|
|
378
|
+
for (const l of r)
|
|
379
|
+
for (const u of n)
|
|
380
|
+
u in l || (l[u] = i[u]);
|
|
366
381
|
}
|
|
367
|
-
function
|
|
382
|
+
function wt(e) {
|
|
368
383
|
const t = [];
|
|
369
384
|
for (const n of e.steps)
|
|
370
385
|
for (const i in n.styles)
|
|
371
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
372
387
|
return t;
|
|
373
388
|
}
|
|
374
|
-
function
|
|
389
|
+
function Fe(e) {
|
|
375
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
376
391
|
if (!t.length) {
|
|
377
|
-
|
|
392
|
+
$e(e.elementId || e.id || "");
|
|
378
393
|
return;
|
|
379
394
|
}
|
|
380
395
|
Array.from(t).forEach((n) => {
|
|
381
|
-
|
|
382
|
-
n.style.transition = `all ${e.duration}s ${
|
|
396
|
+
De(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 ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
383
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
384
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
385
400
|
});
|
|
386
401
|
});
|
|
387
402
|
}
|
|
388
|
-
function
|
|
403
|
+
function Tt(e) {
|
|
389
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
390
405
|
if (!t.length) {
|
|
391
|
-
|
|
406
|
+
$e(e.elementId || e.id || "");
|
|
392
407
|
return;
|
|
393
408
|
}
|
|
394
409
|
Array.from(t).forEach((n) => {
|
|
395
|
-
|
|
410
|
+
De(e, n);
|
|
396
411
|
let i = !1, o = !1;
|
|
397
|
-
function
|
|
412
|
+
function a() {
|
|
398
413
|
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
399
|
-
|
|
414
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
400
415
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
401
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
402
|
-
})) : e.repeat && i && !o && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, _(n.style, e.steps[0].styles));
|
|
403
418
|
}
|
|
404
|
-
const
|
|
419
|
+
const r = kt(a, 200, {
|
|
405
420
|
leading: !1
|
|
406
421
|
});
|
|
407
422
|
function l(h) {
|
|
408
|
-
const
|
|
409
|
-
return
|
|
423
|
+
const b = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
|
|
424
|
+
return b.bottom > d && b.top < f - d;
|
|
410
425
|
}
|
|
411
|
-
const
|
|
426
|
+
const u = e.steps[0].styles;
|
|
412
427
|
function c() {
|
|
413
|
-
|
|
428
|
+
_(n.style, u);
|
|
414
429
|
}
|
|
415
430
|
c(), setTimeout(() => {
|
|
416
|
-
n.style.transition = `all ${e.duration}s ${
|
|
417
|
-
}), document.addEventListener("scroll",
|
|
431
|
+
n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
432
|
+
}), document.addEventListener("scroll", r, {
|
|
418
433
|
capture: !0,
|
|
419
434
|
passive: !0
|
|
420
|
-
}),
|
|
435
|
+
}), a();
|
|
421
436
|
});
|
|
422
437
|
}
|
|
423
|
-
const
|
|
438
|
+
const Oe = (e) => Object.entries(e).map(([n, i]) => {
|
|
424
439
|
if (typeof i == "string")
|
|
425
|
-
return `${
|
|
426
|
-
}).filter(
|
|
427
|
-
`),
|
|
440
|
+
return `${Z(n)}: ${i};`;
|
|
441
|
+
}).filter(J), It = (e) => Oe(e).join(`
|
|
442
|
+
`), z = ({
|
|
428
443
|
mediaQuery: e,
|
|
429
444
|
className: t,
|
|
430
445
|
styles: n
|
|
431
446
|
}) => {
|
|
432
447
|
const i = `.${t} {
|
|
433
|
-
${
|
|
448
|
+
${It(n)}
|
|
434
449
|
}`;
|
|
435
450
|
return e ? `${e} {
|
|
436
451
|
${i}
|
|
437
452
|
}` : i;
|
|
438
453
|
};
|
|
439
|
-
function
|
|
454
|
+
function Et({
|
|
440
455
|
style: e
|
|
441
456
|
}) {
|
|
442
457
|
return e;
|
|
443
458
|
}
|
|
444
|
-
const
|
|
459
|
+
const Rt = ({
|
|
445
460
|
block: e,
|
|
446
461
|
context: t
|
|
447
|
-
}) =>
|
|
462
|
+
}) => Le(Et({
|
|
448
463
|
style: e.style || {},
|
|
449
464
|
context: t,
|
|
450
465
|
block: e
|
|
451
466
|
}));
|
|
452
|
-
function
|
|
453
|
-
switch (
|
|
467
|
+
function Le(e) {
|
|
468
|
+
switch (F) {
|
|
454
469
|
case "svelte":
|
|
455
470
|
case "vue":
|
|
456
471
|
case "solid":
|
|
457
472
|
case "angular":
|
|
458
|
-
return
|
|
473
|
+
return Oe(e).join(" ");
|
|
459
474
|
case "qwik":
|
|
460
475
|
case "reactNative":
|
|
461
476
|
case "react":
|
|
@@ -463,24 +478,24 @@ function Oe(e) {
|
|
|
463
478
|
return e;
|
|
464
479
|
}
|
|
465
480
|
}
|
|
466
|
-
const
|
|
481
|
+
const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Pt = ({
|
|
467
482
|
block: e,
|
|
468
483
|
registeredComponents: t,
|
|
469
484
|
model: n
|
|
470
485
|
}) => {
|
|
471
|
-
var
|
|
472
|
-
const i = (
|
|
486
|
+
var a;
|
|
487
|
+
const i = (a = e.component) == null ? void 0 : a.name;
|
|
473
488
|
if (!i)
|
|
474
489
|
return null;
|
|
475
490
|
const o = t[i];
|
|
476
|
-
if (!o ||
|
|
491
|
+
if (!o || Ue(o, n)) {
|
|
477
492
|
console.warn(`
|
|
478
493
|
Could not find a registered component named "${i}".
|
|
479
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
480
495
|
return;
|
|
481
496
|
} else
|
|
482
497
|
return o;
|
|
483
|
-
},
|
|
498
|
+
}, Vt = ({
|
|
484
499
|
block: e,
|
|
485
500
|
context: t
|
|
486
501
|
}) => {
|
|
@@ -490,7 +505,7 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
490
505
|
} = e;
|
|
491
506
|
if (!(n != null && n.collection))
|
|
492
507
|
return;
|
|
493
|
-
const o =
|
|
508
|
+
const o = U({
|
|
494
509
|
code: n.collection,
|
|
495
510
|
localState: t.localState,
|
|
496
511
|
rootState: t.rootState,
|
|
@@ -499,41 +514,41 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
499
514
|
});
|
|
500
515
|
if (!Array.isArray(o))
|
|
501
516
|
return;
|
|
502
|
-
const
|
|
503
|
-
return o.map((
|
|
517
|
+
const a = n.collection.split(".").pop(), r = n.itemName || (a ? a + "Item" : "item");
|
|
518
|
+
return o.map((u, c) => ({
|
|
504
519
|
context: {
|
|
505
520
|
...t,
|
|
506
521
|
localState: {
|
|
507
522
|
...t.localState,
|
|
508
523
|
$index: c,
|
|
509
|
-
$item:
|
|
510
|
-
[
|
|
511
|
-
[`$${
|
|
524
|
+
$item: u,
|
|
525
|
+
[r]: u,
|
|
526
|
+
[`$${r}Index`]: c
|
|
512
527
|
}
|
|
513
528
|
},
|
|
514
529
|
block: i
|
|
515
530
|
}));
|
|
516
|
-
},
|
|
531
|
+
}, Bt = (e, t) => {
|
|
517
532
|
var n;
|
|
518
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
519
534
|
builderLinkComponent: t
|
|
520
535
|
} : {};
|
|
521
|
-
},
|
|
536
|
+
}, At = (e, t, n) => {
|
|
522
537
|
var i;
|
|
523
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
524
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([a, r]) => !Ue(r, n)))
|
|
525
540
|
} : {};
|
|
526
|
-
},
|
|
541
|
+
}, Nt = (e, t) => {
|
|
527
542
|
var n;
|
|
528
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
529
544
|
builderBlock: t
|
|
530
545
|
} : {};
|
|
531
|
-
},
|
|
546
|
+
}, Wt = (e, t) => {
|
|
532
547
|
var n;
|
|
533
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
534
549
|
builderContext: t
|
|
535
550
|
} : {};
|
|
536
|
-
},
|
|
551
|
+
}, _e = {
|
|
537
552
|
small: {
|
|
538
553
|
min: 320,
|
|
539
554
|
default: 321,
|
|
@@ -549,11 +564,11 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
549
564
|
default: 991,
|
|
550
565
|
max: 1200
|
|
551
566
|
}
|
|
552
|
-
},
|
|
567
|
+
}, be = (e, t = _e) => `@media (max-width: ${t[e].max}px)`, qe = ({
|
|
553
568
|
small: e,
|
|
554
569
|
medium: t
|
|
555
570
|
}) => {
|
|
556
|
-
const n = se(
|
|
571
|
+
const n = se(_e);
|
|
557
572
|
if (!e || !t)
|
|
558
573
|
return n;
|
|
559
574
|
const i = Math.floor(e / 2);
|
|
@@ -568,15 +583,15 @@ const De = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
568
583
|
min: o,
|
|
569
584
|
default: o + 1
|
|
570
585
|
};
|
|
571
|
-
const
|
|
586
|
+
const a = n.medium.max + 1;
|
|
572
587
|
return n.large = {
|
|
573
588
|
max: 2e3,
|
|
574
589
|
// TODO: decide upper limit
|
|
575
|
-
min:
|
|
576
|
-
default:
|
|
590
|
+
min: a,
|
|
591
|
+
default: a + 1
|
|
577
592
|
}, n;
|
|
578
593
|
};
|
|
579
|
-
function
|
|
594
|
+
function M(e) {
|
|
580
595
|
return /* @__PURE__ */ s(
|
|
581
596
|
"style",
|
|
582
597
|
{
|
|
@@ -586,59 +601,59 @@ function Q(e) {
|
|
|
586
601
|
}
|
|
587
602
|
);
|
|
588
603
|
}
|
|
589
|
-
function
|
|
604
|
+
function $t(e) {
|
|
590
605
|
function t() {
|
|
591
606
|
const i = e.block;
|
|
592
|
-
return
|
|
607
|
+
return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
|
|
593
608
|
}
|
|
594
609
|
function n() {
|
|
595
|
-
var
|
|
596
|
-
const i = e.block, o = i.responsiveStyles,
|
|
597
|
-
((
|
|
598
|
-
), l = o == null ? void 0 : o.large,
|
|
610
|
+
var v, y, x;
|
|
611
|
+
const i = e.block, o = i.responsiveStyles, a = e.context.content, r = qe(
|
|
612
|
+
((v = a == null ? void 0 : a.meta) == null ? void 0 : v.breakpoints) || {}
|
|
613
|
+
), l = o == null ? void 0 : o.large, u = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
599
614
|
if (!h)
|
|
600
615
|
return "";
|
|
601
|
-
const
|
|
616
|
+
const b = l ? z({
|
|
602
617
|
className: h,
|
|
603
618
|
styles: l
|
|
604
|
-
}) : "",
|
|
619
|
+
}) : "", f = u ? z({
|
|
605
620
|
className: h,
|
|
606
|
-
styles:
|
|
607
|
-
mediaQuery:
|
|
621
|
+
styles: u,
|
|
622
|
+
mediaQuery: be(
|
|
608
623
|
"medium",
|
|
609
|
-
|
|
624
|
+
r
|
|
610
625
|
)
|
|
611
|
-
}) : "",
|
|
626
|
+
}) : "", p = c ? z({
|
|
612
627
|
className: h,
|
|
613
628
|
styles: c,
|
|
614
|
-
mediaQuery:
|
|
629
|
+
mediaQuery: be(
|
|
615
630
|
"small",
|
|
616
|
-
|
|
631
|
+
r
|
|
617
632
|
)
|
|
618
|
-
}) : "",
|
|
619
|
-
let
|
|
620
|
-
if (
|
|
621
|
-
const
|
|
622
|
-
|
|
633
|
+
}) : "", d = i.animations && i.animations.find((I) => I.trigger === "hover");
|
|
634
|
+
let g = "";
|
|
635
|
+
if (d) {
|
|
636
|
+
const I = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
|
|
637
|
+
g = z({
|
|
623
638
|
className: `${h}:hover`,
|
|
624
639
|
styles: {
|
|
625
|
-
...
|
|
626
|
-
transition: `all ${
|
|
627
|
-
|
|
640
|
+
...I,
|
|
641
|
+
transition: `all ${d.duration}s ${Z(
|
|
642
|
+
d.easing
|
|
628
643
|
)}`,
|
|
629
|
-
transitionDelay:
|
|
644
|
+
transitionDelay: d.delay ? `${d.delay}s` : "0s"
|
|
630
645
|
}
|
|
631
646
|
}) || "";
|
|
632
647
|
}
|
|
633
648
|
return [
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
649
|
+
b,
|
|
650
|
+
f,
|
|
651
|
+
p,
|
|
652
|
+
g
|
|
638
653
|
].join(" ");
|
|
639
654
|
}
|
|
640
|
-
return /* @__PURE__ */ s(
|
|
641
|
-
|
|
655
|
+
return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
656
|
+
M,
|
|
642
657
|
{
|
|
643
658
|
id: "builderio-block",
|
|
644
659
|
styles: n(),
|
|
@@ -646,10 +661,10 @@ function At(e) {
|
|
|
646
661
|
}
|
|
647
662
|
) }) : null });
|
|
648
663
|
}
|
|
649
|
-
function
|
|
664
|
+
function Dt(e) {
|
|
650
665
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
651
666
|
}
|
|
652
|
-
const
|
|
667
|
+
const Ft = (e) => `on${Dt(e)}`, Ot = (e, t) => (n) => U({
|
|
653
668
|
code: e,
|
|
654
669
|
context: t.context,
|
|
655
670
|
localState: t.localState,
|
|
@@ -658,33 +673,33 @@ const Wt = (e) => `on${Nt(e)}`, Ft = (e, t) => (n) => D({
|
|
|
658
673
|
event: n,
|
|
659
674
|
isExpression: !1
|
|
660
675
|
});
|
|
661
|
-
function
|
|
676
|
+
function He(e) {
|
|
662
677
|
var i;
|
|
663
678
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
664
679
|
for (const o in n) {
|
|
665
680
|
if (!n.hasOwnProperty(o))
|
|
666
681
|
continue;
|
|
667
|
-
const
|
|
668
|
-
let
|
|
682
|
+
const a = n[o];
|
|
683
|
+
let r = Ft(o);
|
|
669
684
|
if (e.stripPrefix)
|
|
670
|
-
switch (
|
|
685
|
+
switch (F) {
|
|
671
686
|
case "vue":
|
|
672
|
-
|
|
687
|
+
r = r.replace("v-on:", "");
|
|
673
688
|
break;
|
|
674
689
|
case "svelte":
|
|
675
|
-
|
|
690
|
+
r = r.replace("on:", "");
|
|
676
691
|
break;
|
|
677
692
|
}
|
|
678
|
-
t[
|
|
693
|
+
t[r] = Ot(a, e);
|
|
679
694
|
}
|
|
680
695
|
return t;
|
|
681
696
|
}
|
|
682
|
-
function
|
|
697
|
+
function Lt({
|
|
683
698
|
properties: e
|
|
684
699
|
}) {
|
|
685
700
|
return e;
|
|
686
701
|
}
|
|
687
|
-
const
|
|
702
|
+
const Ut = (e) => ({
|
|
688
703
|
href: e.href
|
|
689
704
|
});
|
|
690
705
|
function ce({
|
|
@@ -693,22 +708,22 @@ function ce({
|
|
|
693
708
|
}) {
|
|
694
709
|
var i;
|
|
695
710
|
const n = {
|
|
696
|
-
...
|
|
711
|
+
...Ut(e),
|
|
697
712
|
...e.properties,
|
|
698
713
|
"builder-id": e.id,
|
|
699
|
-
style:
|
|
714
|
+
style: Rt({
|
|
700
715
|
block: e,
|
|
701
716
|
context: t
|
|
702
717
|
}),
|
|
703
718
|
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
704
719
|
};
|
|
705
|
-
return
|
|
720
|
+
return Lt({
|
|
706
721
|
properties: n,
|
|
707
722
|
context: t,
|
|
708
723
|
block: e
|
|
709
724
|
});
|
|
710
725
|
}
|
|
711
|
-
function
|
|
726
|
+
function _t(e) {
|
|
712
727
|
return /* @__PURE__ */ s(
|
|
713
728
|
re,
|
|
714
729
|
{
|
|
@@ -717,7 +732,7 @@ function Ot(e) {
|
|
|
717
732
|
block: e.block,
|
|
718
733
|
context: e.context
|
|
719
734
|
}),
|
|
720
|
-
actionAttributes:
|
|
735
|
+
actionAttributes: He({
|
|
721
736
|
block: e.block,
|
|
722
737
|
rootState: e.context.rootState,
|
|
723
738
|
rootSetState: e.context.rootSetState,
|
|
@@ -729,18 +744,18 @@ function Ot(e) {
|
|
|
729
744
|
}
|
|
730
745
|
);
|
|
731
746
|
}
|
|
732
|
-
function
|
|
747
|
+
function qt(e) {
|
|
733
748
|
return A(() => {
|
|
734
|
-
}, []), /* @__PURE__ */ s(
|
|
749
|
+
}, []), /* @__PURE__ */ s(P, { children: e.children });
|
|
735
750
|
}
|
|
736
|
-
function
|
|
751
|
+
function Ht(e) {
|
|
737
752
|
function t() {
|
|
738
753
|
return e.includeBlockProps ? {
|
|
739
754
|
...ce({
|
|
740
755
|
block: e.block,
|
|
741
756
|
context: e.context
|
|
742
757
|
}),
|
|
743
|
-
...
|
|
758
|
+
...He({
|
|
744
759
|
block: e.block,
|
|
745
760
|
rootState: e.context.rootState,
|
|
746
761
|
rootSetState: e.context.rootSetState,
|
|
@@ -749,8 +764,8 @@ function Ut(e) {
|
|
|
749
764
|
})
|
|
750
765
|
} : {};
|
|
751
766
|
}
|
|
752
|
-
return /* @__PURE__ */ s(
|
|
753
|
-
|
|
767
|
+
return /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
768
|
+
qt,
|
|
754
769
|
{
|
|
755
770
|
load: e.Wrapper.load,
|
|
756
771
|
fallback: e.Wrapper.fallback,
|
|
@@ -760,14 +775,14 @@ function Ut(e) {
|
|
|
760
775
|
}
|
|
761
776
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
762
777
|
}
|
|
763
|
-
const
|
|
778
|
+
const Mt = ({
|
|
764
779
|
componentOptions: e,
|
|
765
780
|
builderBlock: t,
|
|
766
781
|
context: n,
|
|
767
782
|
componentRef: i,
|
|
768
783
|
includeBlockProps: o,
|
|
769
|
-
isInteractive:
|
|
770
|
-
contextValue:
|
|
784
|
+
isInteractive: a,
|
|
785
|
+
contextValue: r
|
|
771
786
|
}) => {
|
|
772
787
|
const l = {
|
|
773
788
|
...e,
|
|
@@ -778,11 +793,11 @@ const Ht = ({
|
|
|
778
793
|
...o ? {
|
|
779
794
|
attributes: ce({
|
|
780
795
|
block: t,
|
|
781
|
-
context:
|
|
796
|
+
context: r
|
|
782
797
|
})
|
|
783
798
|
} : {}
|
|
784
799
|
};
|
|
785
|
-
return
|
|
800
|
+
return a ? {
|
|
786
801
|
Wrapper: i,
|
|
787
802
|
block: t,
|
|
788
803
|
context: n,
|
|
@@ -790,15 +805,15 @@ const Ht = ({
|
|
|
790
805
|
includeBlockProps: o
|
|
791
806
|
} : l;
|
|
792
807
|
};
|
|
793
|
-
function
|
|
808
|
+
function pe(e) {
|
|
794
809
|
var i;
|
|
795
810
|
const [t, n] = R(
|
|
796
|
-
() => e.isInteractive ?
|
|
811
|
+
() => e.isInteractive ? Ht : e.componentRef
|
|
797
812
|
);
|
|
798
|
-
return /* @__PURE__ */ s(
|
|
813
|
+
return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
|
|
799
814
|
t,
|
|
800
815
|
{
|
|
801
|
-
...
|
|
816
|
+
...Mt({
|
|
802
817
|
componentOptions: e.componentOptions,
|
|
803
818
|
builderBlock: e.builderBlock,
|
|
804
819
|
context: e.context,
|
|
@@ -809,7 +824,7 @@ function be(e) {
|
|
|
809
824
|
contextValue: e.context
|
|
810
825
|
}),
|
|
811
826
|
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
812
|
-
|
|
827
|
+
j,
|
|
813
828
|
{
|
|
814
829
|
block: o,
|
|
815
830
|
context: e.context,
|
|
@@ -821,10 +836,10 @@ function be(e) {
|
|
|
821
836
|
}
|
|
822
837
|
) }) : null });
|
|
823
838
|
}
|
|
824
|
-
function
|
|
839
|
+
function ye(e) {
|
|
825
840
|
const [t, n] = R(() => e.repeatContext);
|
|
826
841
|
return /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
827
|
-
|
|
842
|
+
j,
|
|
828
843
|
{
|
|
829
844
|
block: e.block,
|
|
830
845
|
context: t,
|
|
@@ -833,10 +848,10 @@ function pe(e) {
|
|
|
833
848
|
}
|
|
834
849
|
) });
|
|
835
850
|
}
|
|
836
|
-
function
|
|
837
|
-
var h,
|
|
851
|
+
function j(e) {
|
|
852
|
+
var h, b, f, p;
|
|
838
853
|
function t() {
|
|
839
|
-
return
|
|
854
|
+
return Vt({
|
|
840
855
|
block: e.block,
|
|
841
856
|
context: e.context
|
|
842
857
|
});
|
|
@@ -846,53 +861,52 @@ function _(e) {
|
|
|
846
861
|
update: !1
|
|
847
862
|
}));
|
|
848
863
|
function o() {
|
|
849
|
-
var
|
|
850
|
-
if (n.value && !n.update && !
|
|
864
|
+
var g;
|
|
865
|
+
if (n.value && !n.update && !X())
|
|
851
866
|
return n.value;
|
|
852
|
-
const
|
|
867
|
+
const d = (g = e.block.repeat) != null && g.collection ? e.block : St({
|
|
853
868
|
block: e.block,
|
|
854
869
|
localState: e.context.localState,
|
|
855
870
|
rootState: e.context.rootState,
|
|
856
871
|
rootSetState: e.context.rootSetState,
|
|
857
|
-
context: e.context.context
|
|
858
|
-
shouldEvaluateBindings: !0
|
|
872
|
+
context: e.context.context
|
|
859
873
|
});
|
|
860
|
-
return n.value =
|
|
874
|
+
return n.value = d, n.update = !1, d;
|
|
861
875
|
}
|
|
862
|
-
function
|
|
863
|
-
return
|
|
876
|
+
function a() {
|
|
877
|
+
return Pt({
|
|
864
878
|
block: o(),
|
|
865
879
|
registeredComponents: e.registeredComponents,
|
|
866
880
|
model: e.context.model
|
|
867
881
|
});
|
|
868
882
|
}
|
|
869
|
-
function
|
|
870
|
-
var
|
|
871
|
-
return e.block.tagName === "a" || ((
|
|
883
|
+
function r() {
|
|
884
|
+
var g;
|
|
885
|
+
return e.block.tagName === "a" || ((g = o().properties) == null ? void 0 : g.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
872
886
|
}
|
|
873
887
|
function l() {
|
|
874
|
-
var
|
|
875
|
-
if ((
|
|
876
|
-
return !!((
|
|
877
|
-
const
|
|
878
|
-
return ("show" in o() ? o().show : !0) && !
|
|
888
|
+
var v, y;
|
|
889
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
890
|
+
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
891
|
+
const d = "hide" in o() ? o().hide : !1;
|
|
892
|
+
return ("show" in o() ? o().show : !0) && !d;
|
|
879
893
|
}
|
|
880
|
-
function
|
|
881
|
-
var
|
|
882
|
-
return !((
|
|
894
|
+
function u() {
|
|
895
|
+
var g, v;
|
|
896
|
+
return !((g = a == null ? void 0 : a()) != null && g.component) && !t() ? (v = o().children) != null ? v : [] : [];
|
|
883
897
|
}
|
|
884
898
|
function c() {
|
|
885
|
-
var
|
|
899
|
+
var d, g, v, y;
|
|
886
900
|
return {
|
|
887
|
-
blockChildren: (
|
|
888
|
-
componentRef: (
|
|
901
|
+
blockChildren: (d = o().children) != null ? d : [],
|
|
902
|
+
componentRef: (g = a == null ? void 0 : a()) == null ? void 0 : g.component,
|
|
889
903
|
componentOptions: {
|
|
890
|
-
...
|
|
891
|
-
...
|
|
892
|
-
...
|
|
893
|
-
...
|
|
894
|
-
...
|
|
895
|
-
|
|
904
|
+
...mt(o(), e.context),
|
|
905
|
+
...Nt(a(), o()),
|
|
906
|
+
...Wt(a(), e.context),
|
|
907
|
+
...Bt(a(), e.linkComponent),
|
|
908
|
+
...At(
|
|
909
|
+
a(),
|
|
896
910
|
e.registeredComponents,
|
|
897
911
|
e.context.model
|
|
898
912
|
)
|
|
@@ -901,33 +915,33 @@ function _(e) {
|
|
|
901
915
|
linkComponent: e.linkComponent,
|
|
902
916
|
registeredComponents: e.registeredComponents,
|
|
903
917
|
builderBlock: o(),
|
|
904
|
-
includeBlockProps: ((
|
|
905
|
-
isInteractive: !((
|
|
918
|
+
includeBlockProps: ((v = a == null ? void 0 : a()) == null ? void 0 : v.noWrap) === !0,
|
|
919
|
+
isInteractive: !((y = a == null ? void 0 : a()) != null && y.isRSC && F === "rsc")
|
|
906
920
|
};
|
|
907
921
|
}
|
|
908
922
|
return A(() => {
|
|
909
|
-
const
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
...
|
|
913
|
-
elementId:
|
|
923
|
+
const d = o().id, g = o().animations;
|
|
924
|
+
g && d && Ct(
|
|
925
|
+
g.map((v) => ({
|
|
926
|
+
...v,
|
|
927
|
+
elementId: d
|
|
914
928
|
}))
|
|
915
929
|
);
|
|
916
930
|
}, []), A(() => {
|
|
917
931
|
n.update = !0;
|
|
918
|
-
}), /* @__PURE__ */ s(
|
|
919
|
-
/* @__PURE__ */ s(
|
|
920
|
-
(h =
|
|
921
|
-
|
|
932
|
+
}), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ N(P, { children: [
|
|
933
|
+
/* @__PURE__ */ s($t, { block: o(), context: e.context }),
|
|
934
|
+
(h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (p = t()) == null ? void 0 : p.map((d, g) => /* @__PURE__ */ s(
|
|
935
|
+
ye,
|
|
922
936
|
{
|
|
923
|
-
repeatContext:
|
|
924
|
-
block:
|
|
937
|
+
repeatContext: d.context,
|
|
938
|
+
block: d.block,
|
|
925
939
|
registeredComponents: e.registeredComponents,
|
|
926
940
|
linkComponent: e.linkComponent
|
|
927
941
|
},
|
|
928
|
-
|
|
942
|
+
g
|
|
929
943
|
)) }) : /* @__PURE__ */ s(
|
|
930
|
-
|
|
944
|
+
pe,
|
|
931
945
|
{
|
|
932
946
|
componentRef: c().componentRef,
|
|
933
947
|
componentOptions: c().componentOptions,
|
|
@@ -939,24 +953,24 @@ function _(e) {
|
|
|
939
953
|
includeBlockProps: c().includeBlockProps,
|
|
940
954
|
isInteractive: c().isInteractive
|
|
941
955
|
}
|
|
942
|
-
) : /* @__PURE__ */ s(
|
|
943
|
-
|
|
956
|
+
) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (f = t()) == null ? void 0 : f.map((d, g) => /* @__PURE__ */ s(
|
|
957
|
+
ye,
|
|
944
958
|
{
|
|
945
|
-
repeatContext:
|
|
946
|
-
block:
|
|
959
|
+
repeatContext: d.context,
|
|
960
|
+
block: d.block,
|
|
947
961
|
registeredComponents: e.registeredComponents,
|
|
948
962
|
linkComponent: e.linkComponent
|
|
949
963
|
},
|
|
950
|
-
|
|
964
|
+
g
|
|
951
965
|
)) }) : /* @__PURE__ */ N(
|
|
952
|
-
|
|
966
|
+
_t,
|
|
953
967
|
{
|
|
954
|
-
Wrapper:
|
|
968
|
+
Wrapper: r(),
|
|
955
969
|
block: o(),
|
|
956
970
|
context: e.context,
|
|
957
971
|
children: [
|
|
958
972
|
/* @__PURE__ */ s(
|
|
959
|
-
|
|
973
|
+
pe,
|
|
960
974
|
{
|
|
961
975
|
componentRef: c().componentRef,
|
|
962
976
|
componentOptions: c().componentOptions,
|
|
@@ -969,40 +983,40 @@ function _(e) {
|
|
|
969
983
|
isInteractive: c().isInteractive
|
|
970
984
|
}
|
|
971
985
|
),
|
|
972
|
-
(
|
|
973
|
-
|
|
986
|
+
(b = u()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
|
|
987
|
+
j,
|
|
974
988
|
{
|
|
975
|
-
block:
|
|
989
|
+
block: d,
|
|
976
990
|
registeredComponents: e.registeredComponents,
|
|
977
991
|
linkComponent: e.linkComponent,
|
|
978
992
|
context: e.context
|
|
979
993
|
},
|
|
980
|
-
|
|
994
|
+
d.id
|
|
981
995
|
))
|
|
982
996
|
]
|
|
983
997
|
}
|
|
984
998
|
) })
|
|
985
999
|
] }) : null });
|
|
986
1000
|
}
|
|
987
|
-
function
|
|
988
|
-
const t =
|
|
1001
|
+
function jt(e) {
|
|
1002
|
+
const t = D(null);
|
|
989
1003
|
function n() {
|
|
990
|
-
var
|
|
1004
|
+
var r;
|
|
991
1005
|
return [
|
|
992
1006
|
"builder-blocks",
|
|
993
|
-
(
|
|
1007
|
+
(r = e.blocks) != null && r.length ? "" : "no-blocks",
|
|
994
1008
|
e.classNameProp
|
|
995
1009
|
].filter(Boolean).join(" ");
|
|
996
1010
|
}
|
|
997
1011
|
function i() {
|
|
998
1012
|
if (!e.path)
|
|
999
1013
|
return;
|
|
1000
|
-
const
|
|
1001
|
-
return e.path.startsWith(
|
|
1014
|
+
const r = "component.options.";
|
|
1015
|
+
return e.path.startsWith(r) ? e.path : `${r}${e.path || ""}`;
|
|
1002
1016
|
}
|
|
1003
1017
|
function o() {
|
|
1004
|
-
var
|
|
1005
|
-
W() && !((
|
|
1018
|
+
var r, l;
|
|
1019
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1006
1020
|
{
|
|
1007
1021
|
type: "builder.clickEmptyBlocks",
|
|
1008
1022
|
data: {
|
|
@@ -1013,9 +1027,9 @@ function _t(e) {
|
|
|
1013
1027
|
"*"
|
|
1014
1028
|
));
|
|
1015
1029
|
}
|
|
1016
|
-
function
|
|
1017
|
-
var
|
|
1018
|
-
W() && !((
|
|
1030
|
+
function a() {
|
|
1031
|
+
var r, l;
|
|
1032
|
+
W() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1019
1033
|
{
|
|
1020
1034
|
type: "builder.hoverEmptyBlocks",
|
|
1021
1035
|
data: {
|
|
@@ -1027,34 +1041,34 @@ function _t(e) {
|
|
|
1027
1041
|
));
|
|
1028
1042
|
}
|
|
1029
1043
|
return A(() => {
|
|
1030
|
-
}, []), /* @__PURE__ */ N(
|
|
1044
|
+
}, []), /* @__PURE__ */ N(P, { children: [
|
|
1031
1045
|
/* @__PURE__ */ s(
|
|
1032
1046
|
e.BlocksWrapper,
|
|
1033
1047
|
{
|
|
1034
1048
|
ref: t,
|
|
1035
|
-
className: n() + " props-blocks-wrapper-
|
|
1049
|
+
className: n() + " props-blocks-wrapper-2c6a6d88",
|
|
1036
1050
|
"builder-path": i(),
|
|
1037
1051
|
"builder-parent-id": e.parent,
|
|
1038
1052
|
style: e.styleProp,
|
|
1039
|
-
onClick: (
|
|
1040
|
-
onMouseEnter: (
|
|
1041
|
-
onKeyPress: (
|
|
1053
|
+
onClick: (r) => o(),
|
|
1054
|
+
onMouseEnter: (r) => a(),
|
|
1055
|
+
onKeyPress: (r) => o(),
|
|
1042
1056
|
...e.BlocksWrapperProps,
|
|
1043
1057
|
children: e.children
|
|
1044
1058
|
}
|
|
1045
1059
|
),
|
|
1046
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1060
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2c6a6d88 {
|
|
1047
1061
|
display: flex;
|
|
1048
1062
|
flex-direction: column;
|
|
1049
1063
|
align-items: stretch;
|
|
1050
1064
|
}` })
|
|
1051
1065
|
] });
|
|
1052
1066
|
}
|
|
1053
|
-
function
|
|
1054
|
-
var i, o,
|
|
1055
|
-
const t =
|
|
1067
|
+
function $(e) {
|
|
1068
|
+
var i, o, a;
|
|
1069
|
+
const t = he(le), n = he(Ve);
|
|
1056
1070
|
return /* @__PURE__ */ s(
|
|
1057
|
-
|
|
1071
|
+
jt,
|
|
1058
1072
|
{
|
|
1059
1073
|
blocks: e.blocks,
|
|
1060
1074
|
parent: e.parent,
|
|
@@ -1063,22 +1077,22 @@ function F(e) {
|
|
|
1063
1077
|
classNameProp: e.className,
|
|
1064
1078
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1065
1079
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1066
|
-
children: e.blocks ? /* @__PURE__ */ s(
|
|
1067
|
-
|
|
1080
|
+
children: e.blocks ? /* @__PURE__ */ s(P, { children: (a = e.blocks) == null ? void 0 : a.map((r) => /* @__PURE__ */ s(
|
|
1081
|
+
j,
|
|
1068
1082
|
{
|
|
1069
|
-
block:
|
|
1083
|
+
block: r,
|
|
1070
1084
|
linkComponent: e.linkComponent,
|
|
1071
1085
|
context: e.context || t,
|
|
1072
1086
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1073
1087
|
},
|
|
1074
|
-
|
|
1088
|
+
r.id
|
|
1075
1089
|
)) }) : null
|
|
1076
1090
|
}
|
|
1077
1091
|
);
|
|
1078
1092
|
}
|
|
1079
|
-
const
|
|
1080
|
-
function
|
|
1081
|
-
var
|
|
1093
|
+
const zt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1094
|
+
function Kt(e) {
|
|
1095
|
+
var g, v;
|
|
1082
1096
|
function t() {
|
|
1083
1097
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1084
1098
|
}
|
|
@@ -1088,28 +1102,28 @@ function jt(e) {
|
|
|
1088
1102
|
function i() {
|
|
1089
1103
|
return e.stackColumnsAt || "tablet";
|
|
1090
1104
|
}
|
|
1091
|
-
function o(
|
|
1092
|
-
return
|
|
1105
|
+
function o(y) {
|
|
1106
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1093
1107
|
}
|
|
1094
|
-
function
|
|
1095
|
-
var
|
|
1096
|
-
return ((
|
|
1108
|
+
function a(y) {
|
|
1109
|
+
var x;
|
|
1110
|
+
return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
|
|
1097
1111
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const
|
|
1100
|
-
return `calc(${
|
|
1112
|
+
function r(y) {
|
|
1113
|
+
const x = a(y), I = t() * (n().length - 1) * (x / 100);
|
|
1114
|
+
return `calc(${x}% - ${I}px)`;
|
|
1101
1115
|
}
|
|
1102
1116
|
function l({
|
|
1103
|
-
stackedStyle:
|
|
1104
|
-
desktopStyle:
|
|
1117
|
+
stackedStyle: y,
|
|
1118
|
+
desktopStyle: x
|
|
1105
1119
|
}) {
|
|
1106
|
-
return i() === "tablet" ?
|
|
1120
|
+
return i() === "tablet" ? y : x;
|
|
1107
1121
|
}
|
|
1108
|
-
function
|
|
1109
|
-
stackedStyle:
|
|
1110
|
-
desktopStyle:
|
|
1122
|
+
function u({
|
|
1123
|
+
stackedStyle: y,
|
|
1124
|
+
desktopStyle: x
|
|
1111
1125
|
}) {
|
|
1112
|
-
return i() === "never" ?
|
|
1126
|
+
return i() === "never" ? x : y;
|
|
1113
1127
|
}
|
|
1114
1128
|
function c() {
|
|
1115
1129
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1123,102 +1137,102 @@ function jt(e) {
|
|
|
1123
1137
|
})
|
|
1124
1138
|
};
|
|
1125
1139
|
}
|
|
1126
|
-
function
|
|
1127
|
-
const
|
|
1140
|
+
function b(y) {
|
|
1141
|
+
const x = y === 0 ? 0 : t(), I = r(y), B = `${x}px`, C = "100%", S = 0;
|
|
1128
1142
|
return {
|
|
1129
1143
|
...{
|
|
1130
1144
|
display: "flex",
|
|
1131
1145
|
flexDirection: "column",
|
|
1132
1146
|
alignItems: "stretch"
|
|
1133
1147
|
},
|
|
1134
|
-
width:
|
|
1135
|
-
["marginLeft"]:
|
|
1136
|
-
"--column-width-mobile":
|
|
1137
|
-
stackedStyle:
|
|
1138
|
-
desktopStyle:
|
|
1148
|
+
width: I,
|
|
1149
|
+
["marginLeft"]: B,
|
|
1150
|
+
"--column-width-mobile": u({
|
|
1151
|
+
stackedStyle: C,
|
|
1152
|
+
desktopStyle: I
|
|
1139
1153
|
}),
|
|
1140
|
-
"--column-margin-left-mobile":
|
|
1141
|
-
stackedStyle:
|
|
1142
|
-
desktopStyle:
|
|
1154
|
+
"--column-margin-left-mobile": u({
|
|
1155
|
+
stackedStyle: S,
|
|
1156
|
+
desktopStyle: B
|
|
1143
1157
|
}),
|
|
1144
1158
|
"--column-width-tablet": l({
|
|
1145
|
-
stackedStyle:
|
|
1146
|
-
desktopStyle:
|
|
1159
|
+
stackedStyle: C,
|
|
1160
|
+
desktopStyle: I
|
|
1147
1161
|
}),
|
|
1148
1162
|
"--column-margin-left-tablet": l({
|
|
1149
|
-
stackedStyle:
|
|
1150
|
-
desktopStyle:
|
|
1163
|
+
stackedStyle: S,
|
|
1164
|
+
desktopStyle: B
|
|
1151
1165
|
})
|
|
1152
1166
|
};
|
|
1153
1167
|
}
|
|
1154
|
-
function
|
|
1155
|
-
var
|
|
1156
|
-
return
|
|
1157
|
-
((
|
|
1158
|
-
)[
|
|
1168
|
+
function f(y) {
|
|
1169
|
+
var I, B;
|
|
1170
|
+
return qe(
|
|
1171
|
+
((B = (I = e.builderContext.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints) || {}
|
|
1172
|
+
)[y].max;
|
|
1159
1173
|
}
|
|
1160
|
-
function
|
|
1161
|
-
const
|
|
1174
|
+
function p() {
|
|
1175
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1162
1176
|
return `
|
|
1163
|
-
@media (max-width: ${
|
|
1177
|
+
@media (max-width: ${f("medium")}px) {
|
|
1164
1178
|
.${e.builderBlock.id}-breakpoints {
|
|
1165
1179
|
flex-direction: var(--flex-dir-tablet);
|
|
1166
1180
|
align-items: stretch;
|
|
1167
1181
|
}
|
|
1168
1182
|
|
|
1169
|
-
${
|
|
1183
|
+
${y} {
|
|
1170
1184
|
width: var(--column-width-tablet) !important;
|
|
1171
1185
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1172
1186
|
}
|
|
1173
1187
|
}
|
|
1174
1188
|
|
|
1175
|
-
@media (max-width: ${
|
|
1189
|
+
@media (max-width: ${f("small")}px) {
|
|
1176
1190
|
.${e.builderBlock.id}-breakpoints {
|
|
1177
1191
|
flex-direction: var(--flex-dir);
|
|
1178
1192
|
align-items: stretch;
|
|
1179
1193
|
}
|
|
1180
1194
|
|
|
1181
|
-
${
|
|
1195
|
+
${y} {
|
|
1182
1196
|
width: var(--column-width-mobile) !important;
|
|
1183
1197
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1184
1198
|
}
|
|
1185
1199
|
},
|
|
1186
1200
|
`;
|
|
1187
1201
|
}
|
|
1188
|
-
function
|
|
1202
|
+
function d(y, x) {
|
|
1189
1203
|
return {
|
|
1190
|
-
...
|
|
1191
|
-
href:
|
|
1204
|
+
...y.link ? {
|
|
1205
|
+
href: y.link
|
|
1192
1206
|
} : {},
|
|
1193
1207
|
[H()]: "builder-column",
|
|
1194
|
-
style:
|
|
1208
|
+
style: Le(b(x))
|
|
1195
1209
|
};
|
|
1196
1210
|
}
|
|
1197
|
-
return /* @__PURE__ */ N(
|
|
1211
|
+
return /* @__PURE__ */ N(P, { children: [
|
|
1198
1212
|
/* @__PURE__ */ N(
|
|
1199
1213
|
"div",
|
|
1200
1214
|
{
|
|
1201
|
-
className:
|
|
1215
|
+
className: zt((g = e.builderBlock) == null ? void 0 : g.id) + " div-d55bdf5c",
|
|
1202
1216
|
style: h(),
|
|
1203
1217
|
children: [
|
|
1204
1218
|
/* @__PURE__ */ s(
|
|
1205
|
-
|
|
1219
|
+
M,
|
|
1206
1220
|
{
|
|
1207
1221
|
id: "builderio-columns",
|
|
1208
|
-
styles:
|
|
1222
|
+
styles: p(),
|
|
1209
1223
|
nonce: e.builderContext.nonce
|
|
1210
1224
|
}
|
|
1211
1225
|
),
|
|
1212
|
-
(
|
|
1226
|
+
(v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
|
|
1213
1227
|
re,
|
|
1214
1228
|
{
|
|
1215
|
-
TagName: o(
|
|
1229
|
+
TagName: o(y),
|
|
1216
1230
|
actionAttributes: {},
|
|
1217
|
-
attributes:
|
|
1231
|
+
attributes: d(y, x),
|
|
1218
1232
|
children: /* @__PURE__ */ s(
|
|
1219
|
-
|
|
1233
|
+
$,
|
|
1220
1234
|
{
|
|
1221
|
-
path: `columns.${
|
|
1235
|
+
path: `columns.${x}.blocks`,
|
|
1222
1236
|
parent: e.builderBlock.id,
|
|
1223
1237
|
styleProp: {
|
|
1224
1238
|
flexGrow: "1"
|
|
@@ -1226,70 +1240,70 @@ function jt(e) {
|
|
|
1226
1240
|
context: e.builderContext,
|
|
1227
1241
|
registeredComponents: e.builderComponents,
|
|
1228
1242
|
linkComponent: e.builderLinkComponent,
|
|
1229
|
-
blocks:
|
|
1243
|
+
blocks: y.blocks
|
|
1230
1244
|
}
|
|
1231
1245
|
)
|
|
1232
1246
|
},
|
|
1233
|
-
|
|
1247
|
+
x
|
|
1234
1248
|
))
|
|
1235
1249
|
]
|
|
1236
1250
|
}
|
|
1237
1251
|
),
|
|
1238
|
-
/* @__PURE__ */ s("style", { children: `.div-
|
|
1252
|
+
/* @__PURE__ */ s("style", { children: `.div-d55bdf5c {
|
|
1239
1253
|
display: flex;
|
|
1240
1254
|
line-height: normal;
|
|
1241
1255
|
}` })
|
|
1242
1256
|
] });
|
|
1243
1257
|
}
|
|
1244
|
-
function
|
|
1258
|
+
function Jt(e) {
|
|
1245
1259
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1246
1260
|
}
|
|
1247
|
-
function
|
|
1261
|
+
function ve(e) {
|
|
1248
1262
|
return e.replace(/http(s)?:/, "");
|
|
1249
1263
|
}
|
|
1250
|
-
function
|
|
1264
|
+
function Gt(e = "", t, n) {
|
|
1251
1265
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1252
1266
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
1253
1267
|
}
|
|
1254
|
-
function
|
|
1268
|
+
function Qt(e, t) {
|
|
1255
1269
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1256
1270
|
return e;
|
|
1257
1271
|
if (t === "master")
|
|
1258
|
-
return
|
|
1272
|
+
return ve(e);
|
|
1259
1273
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1260
1274
|
if (n) {
|
|
1261
|
-
const i = e.split(n[0]), o = n[3],
|
|
1262
|
-
return
|
|
1275
|
+
const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
|
|
1276
|
+
return ve(`${i[0]}_${a}${o}`);
|
|
1263
1277
|
}
|
|
1264
1278
|
return null;
|
|
1265
1279
|
}
|
|
1266
|
-
function
|
|
1280
|
+
function ee(e) {
|
|
1267
1281
|
if (!e)
|
|
1268
1282
|
return e;
|
|
1269
1283
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1270
1284
|
if (e.match(/builder\.io/)) {
|
|
1271
1285
|
let n = e;
|
|
1272
1286
|
const i = Number(e.split("?width=")[1]);
|
|
1273
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${
|
|
1287
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Gt(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
1274
1288
|
}
|
|
1275
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1289
|
+
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;
|
|
1276
1290
|
}
|
|
1277
|
-
function
|
|
1278
|
-
var o,
|
|
1291
|
+
function Yt(e) {
|
|
1292
|
+
var o, a, r, l, u, c;
|
|
1279
1293
|
function t() {
|
|
1280
|
-
var
|
|
1281
|
-
const
|
|
1282
|
-
if (!
|
|
1294
|
+
var f;
|
|
1295
|
+
const b = e.image || e.src;
|
|
1296
|
+
if (!b || // We can auto add srcset for cdn.builder.io and shopify
|
|
1283
1297
|
// images, otherwise you can supply this prop manually
|
|
1284
|
-
!(typeof
|
|
1298
|
+
!(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
|
|
1285
1299
|
return e.srcset;
|
|
1286
1300
|
if (!e.noWebp) {
|
|
1287
|
-
if (e.srcset && ((
|
|
1301
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1288
1302
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1289
|
-
return console.debug("Removed given srcset"),
|
|
1303
|
+
return console.debug("Removed given srcset"), ee(b);
|
|
1290
1304
|
} else if (e.image && !e.srcset)
|
|
1291
|
-
return
|
|
1292
|
-
return
|
|
1305
|
+
return ee(b);
|
|
1306
|
+
return ee(b);
|
|
1293
1307
|
}
|
|
1294
1308
|
}
|
|
1295
1309
|
function n() {
|
|
@@ -1307,8 +1321,8 @@ function Jt(e) {
|
|
|
1307
1321
|
return e.aspectRatio ? h : void 0;
|
|
1308
1322
|
}
|
|
1309
1323
|
return A(() => {
|
|
1310
|
-
}, []), /* @__PURE__ */ N(
|
|
1311
|
-
/* @__PURE__ */ N(
|
|
1324
|
+
}, []), /* @__PURE__ */ N(P, { children: [
|
|
1325
|
+
/* @__PURE__ */ N(P, { children: [
|
|
1312
1326
|
/* @__PURE__ */ N("picture", { children: [
|
|
1313
1327
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1314
1328
|
/* @__PURE__ */ s(
|
|
@@ -1323,33 +1337,33 @@ function Jt(e) {
|
|
|
1323
1337
|
objectFit: e.backgroundSize || "cover",
|
|
1324
1338
|
...i()
|
|
1325
1339
|
},
|
|
1326
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1340
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-11a47ef4",
|
|
1327
1341
|
src: e.image,
|
|
1328
1342
|
srcSet: t(),
|
|
1329
1343
|
sizes: e.sizes
|
|
1330
1344
|
}
|
|
1331
1345
|
)
|
|
1332
1346
|
] }),
|
|
1333
|
-
e.aspectRatio && !((
|
|
1347
|
+
e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1334
1348
|
"div",
|
|
1335
1349
|
{
|
|
1336
|
-
className: "builder-image-sizer div-
|
|
1350
|
+
className: "builder-image-sizer div-11a47ef4",
|
|
1337
1351
|
style: {
|
|
1338
1352
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1339
1353
|
}
|
|
1340
1354
|
}
|
|
1341
1355
|
) : null,
|
|
1342
|
-
(l = (
|
|
1343
|
-
!e.fitContent && ((c = (
|
|
1356
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
|
|
1357
|
+
!e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-11a47ef4-2", children: e.children }) : null
|
|
1344
1358
|
] }),
|
|
1345
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1359
|
+
/* @__PURE__ */ s("style", { children: `.img-11a47ef4 {
|
|
1346
1360
|
opacity: 1;
|
|
1347
1361
|
transition: opacity 0.2s ease-in-out;
|
|
1348
|
-
}.div-
|
|
1362
|
+
}.div-11a47ef4 {
|
|
1349
1363
|
width: 100%;
|
|
1350
1364
|
pointer-events: none;
|
|
1351
1365
|
font-size: 0;
|
|
1352
|
-
}.div-
|
|
1366
|
+
}.div-11a47ef4-2 {
|
|
1353
1367
|
display: flex;
|
|
1354
1368
|
flex-direction: column;
|
|
1355
1369
|
align-items: stretch;
|
|
@@ -1361,7 +1375,7 @@ function Jt(e) {
|
|
|
1361
1375
|
}` })
|
|
1362
1376
|
] });
|
|
1363
1377
|
}
|
|
1364
|
-
function
|
|
1378
|
+
function Xt(e) {
|
|
1365
1379
|
return /* @__PURE__ */ s(
|
|
1366
1380
|
"section",
|
|
1367
1381
|
{
|
|
@@ -1382,7 +1396,7 @@ function Gt(e) {
|
|
|
1382
1396
|
}
|
|
1383
1397
|
);
|
|
1384
1398
|
}
|
|
1385
|
-
const
|
|
1399
|
+
const te = {
|
|
1386
1400
|
"@type": "@builder.io/sdk:Element",
|
|
1387
1401
|
layerName: "Accordion item title",
|
|
1388
1402
|
responsiveStyles: {
|
|
@@ -1411,7 +1425,7 @@ const Z = {
|
|
|
1411
1425
|
}
|
|
1412
1426
|
}
|
|
1413
1427
|
}]
|
|
1414
|
-
},
|
|
1428
|
+
}, ne = {
|
|
1415
1429
|
"@type": "@builder.io/sdk:Element",
|
|
1416
1430
|
layerName: "Accordion item detail",
|
|
1417
1431
|
responsiveStyles: {
|
|
@@ -1442,7 +1456,7 @@ const Z = {
|
|
|
1442
1456
|
}
|
|
1443
1457
|
}
|
|
1444
1458
|
}]
|
|
1445
|
-
},
|
|
1459
|
+
}, Zt = {
|
|
1446
1460
|
name: "Builder:Accordion",
|
|
1447
1461
|
canHaveChildren: !0,
|
|
1448
1462
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1459,19 +1473,19 @@ const Z = {
|
|
|
1459
1473
|
name: "title",
|
|
1460
1474
|
type: "uiBlocks",
|
|
1461
1475
|
hideFromUI: !0,
|
|
1462
|
-
defaultValue: [
|
|
1476
|
+
defaultValue: [te]
|
|
1463
1477
|
}, {
|
|
1464
1478
|
name: "detail",
|
|
1465
1479
|
type: "uiBlocks",
|
|
1466
1480
|
hideFromUI: !0,
|
|
1467
|
-
defaultValue: [
|
|
1481
|
+
defaultValue: [ne]
|
|
1468
1482
|
}],
|
|
1469
1483
|
defaultValue: [{
|
|
1470
|
-
title: [
|
|
1471
|
-
detail: [
|
|
1484
|
+
title: [te],
|
|
1485
|
+
detail: [ne]
|
|
1472
1486
|
}, {
|
|
1473
|
-
title: [
|
|
1474
|
-
detail: [
|
|
1487
|
+
title: [te],
|
|
1488
|
+
detail: [ne]
|
|
1475
1489
|
}],
|
|
1476
1490
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1477
1491
|
}, {
|
|
@@ -1507,8 +1521,8 @@ const Z = {
|
|
|
1507
1521
|
builderLinkComponent: !0
|
|
1508
1522
|
}
|
|
1509
1523
|
}, xe = (e) => e.toString();
|
|
1510
|
-
function
|
|
1511
|
-
var
|
|
1524
|
+
function en(e) {
|
|
1525
|
+
var b;
|
|
1512
1526
|
const [t, n] = R(() => []);
|
|
1513
1527
|
function i() {
|
|
1514
1528
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1525,8 +1539,8 @@ function Qt(e) {
|
|
|
1525
1539
|
}
|
|
1526
1540
|
};
|
|
1527
1541
|
}
|
|
1528
|
-
function
|
|
1529
|
-
const
|
|
1542
|
+
function a() {
|
|
1543
|
+
const p = {
|
|
1530
1544
|
...{
|
|
1531
1545
|
display: "flex",
|
|
1532
1546
|
flexDirection: "column"
|
|
@@ -1535,75 +1549,75 @@ function Qt(e) {
|
|
|
1535
1549
|
cursor: "pointer"
|
|
1536
1550
|
};
|
|
1537
1551
|
return Object.fromEntries(
|
|
1538
|
-
Object.entries(
|
|
1552
|
+
Object.entries(p).filter(([d, g]) => g !== void 0)
|
|
1539
1553
|
);
|
|
1540
1554
|
}
|
|
1541
|
-
function
|
|
1542
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1555
|
+
function r(f) {
|
|
1556
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1543
1557
|
}
|
|
1544
|
-
function l(
|
|
1545
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1558
|
+
function l(f) {
|
|
1559
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1546
1560
|
}
|
|
1547
|
-
function
|
|
1548
|
-
let
|
|
1561
|
+
function u() {
|
|
1562
|
+
let f = null;
|
|
1549
1563
|
if (e.grid && t.length && document) {
|
|
1550
|
-
const
|
|
1551
|
-
let
|
|
1552
|
-
`.builder-accordion-title[data-index="${
|
|
1564
|
+
const d = t[0];
|
|
1565
|
+
let v = document.querySelector(
|
|
1566
|
+
`.builder-accordion-title[data-index="${d}"]`
|
|
1553
1567
|
);
|
|
1554
|
-
if (
|
|
1555
|
-
let
|
|
1556
|
-
for (;
|
|
1557
|
-
if (
|
|
1558
|
-
if (
|
|
1568
|
+
if (f = d, v) {
|
|
1569
|
+
let y = v.getBoundingClientRect();
|
|
1570
|
+
for (; v = v && v.nextElementSibling; )
|
|
1571
|
+
if (v) {
|
|
1572
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1559
1573
|
continue;
|
|
1560
|
-
const
|
|
1561
|
-
if (
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1574
|
+
const x = v.getBoundingClientRect();
|
|
1575
|
+
if (x.left > y.left) {
|
|
1576
|
+
const I = parseInt(
|
|
1577
|
+
v.getAttribute("data-index") || "",
|
|
1564
1578
|
10
|
|
1565
1579
|
);
|
|
1566
|
-
isNaN(
|
|
1580
|
+
isNaN(I) || (y = x, f = I);
|
|
1567
1581
|
} else
|
|
1568
1582
|
break;
|
|
1569
1583
|
}
|
|
1570
1584
|
}
|
|
1571
1585
|
}
|
|
1572
|
-
return typeof
|
|
1586
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1573
1587
|
}
|
|
1574
1588
|
function c() {
|
|
1575
|
-
const
|
|
1576
|
-
order: typeof
|
|
1589
|
+
const f = {
|
|
1590
|
+
order: typeof u() == "number" ? u() : void 0,
|
|
1577
1591
|
...e.grid && {
|
|
1578
1592
|
width: "100%"
|
|
1579
1593
|
}
|
|
1580
1594
|
};
|
|
1581
1595
|
return Object.fromEntries(
|
|
1582
|
-
Object.entries(
|
|
1596
|
+
Object.entries(f).filter(([p, d]) => d !== void 0)
|
|
1583
1597
|
);
|
|
1584
1598
|
}
|
|
1585
|
-
function h(
|
|
1586
|
-
t.includes(
|
|
1599
|
+
function h(f) {
|
|
1600
|
+
t.includes(f) ? n(i() ? [] : t.filter((p) => p !== f)) : n(i() ? [f] : t.concat(f));
|
|
1587
1601
|
}
|
|
1588
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (
|
|
1602
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (b = e.items) == null ? void 0 : b.map((f, p) => /* @__PURE__ */ N(Ze.Fragment, { children: [
|
|
1589
1603
|
/* @__PURE__ */ s(
|
|
1590
1604
|
"div",
|
|
1591
1605
|
{
|
|
1592
|
-
className:
|
|
1606
|
+
className: r(p),
|
|
1593
1607
|
style: {
|
|
1594
|
-
...
|
|
1608
|
+
...a(),
|
|
1595
1609
|
...e.grid && {
|
|
1596
1610
|
width: e.gridRowWidth,
|
|
1597
|
-
order:
|
|
1611
|
+
order: u() !== null ? xe(p) : xe(p + 1)
|
|
1598
1612
|
}
|
|
1599
1613
|
},
|
|
1600
|
-
"data-index":
|
|
1601
|
-
onClick: (
|
|
1614
|
+
"data-index": p,
|
|
1615
|
+
onClick: (d) => h(p),
|
|
1602
1616
|
children: /* @__PURE__ */ s(
|
|
1603
|
-
|
|
1617
|
+
$,
|
|
1604
1618
|
{
|
|
1605
|
-
blocks:
|
|
1606
|
-
path: `items.${
|
|
1619
|
+
blocks: f.title,
|
|
1620
|
+
path: `items.${p}.title`,
|
|
1607
1621
|
parent: e.builderBlock.id,
|
|
1608
1622
|
context: e.builderContext,
|
|
1609
1623
|
registeredComponents: e.builderComponents,
|
|
@@ -1612,16 +1626,16 @@ function Qt(e) {
|
|
|
1612
1626
|
)
|
|
1613
1627
|
}
|
|
1614
1628
|
),
|
|
1615
|
-
t.includes(
|
|
1629
|
+
t.includes(p) ? /* @__PURE__ */ s(
|
|
1616
1630
|
"div",
|
|
1617
1631
|
{
|
|
1618
|
-
className: l(
|
|
1632
|
+
className: l(p),
|
|
1619
1633
|
style: c(),
|
|
1620
1634
|
children: /* @__PURE__ */ s(
|
|
1621
|
-
|
|
1635
|
+
$,
|
|
1622
1636
|
{
|
|
1623
|
-
blocks:
|
|
1624
|
-
path: `items.${
|
|
1637
|
+
blocks: f.detail,
|
|
1638
|
+
path: `items.${p}.detail`,
|
|
1625
1639
|
parent: e.builderBlock.id,
|
|
1626
1640
|
context: e.builderContext,
|
|
1627
1641
|
registeredComponents: e.builderComponents,
|
|
@@ -1630,9 +1644,9 @@ function Qt(e) {
|
|
|
1630
1644
|
)
|
|
1631
1645
|
}
|
|
1632
1646
|
) : null
|
|
1633
|
-
] })) });
|
|
1647
|
+
] }, p)) });
|
|
1634
1648
|
}
|
|
1635
|
-
const
|
|
1649
|
+
const tn = {
|
|
1636
1650
|
name: "Core:Button",
|
|
1637
1651
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1638
1652
|
defaultStyles: {
|
|
@@ -1668,7 +1682,7 @@ const Xt = {
|
|
|
1668
1682
|
shouldReceiveBuilderProps: {
|
|
1669
1683
|
builderLinkComponent: !0
|
|
1670
1684
|
}
|
|
1671
|
-
},
|
|
1685
|
+
}, nn = {
|
|
1672
1686
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1673
1687
|
name: "Columns",
|
|
1674
1688
|
isRSC: !0,
|
|
@@ -1847,7 +1861,7 @@ const Xt = {
|
|
|
1847
1861
|
});
|
|
1848
1862
|
}
|
|
1849
1863
|
const n = e.get("columns");
|
|
1850
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1864
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
|
|
1851
1865
|
}
|
|
1852
1866
|
}, {
|
|
1853
1867
|
name: "space",
|
|
@@ -1875,13 +1889,13 @@ const Xt = {
|
|
|
1875
1889
|
builderComponents: !0,
|
|
1876
1890
|
builderLinkComponent: !0
|
|
1877
1891
|
}
|
|
1878
|
-
},
|
|
1892
|
+
}, on = {
|
|
1879
1893
|
name: "Fragment",
|
|
1880
1894
|
static: !0,
|
|
1881
1895
|
hidden: !0,
|
|
1882
1896
|
canHaveChildren: !0,
|
|
1883
1897
|
noWrap: !0
|
|
1884
|
-
},
|
|
1898
|
+
}, ue = ["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"], an = ["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 = {
|
|
1885
1899
|
name: "Image",
|
|
1886
1900
|
static: !0,
|
|
1887
1901
|
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",
|
|
@@ -1896,34 +1910,34 @@ const Xt = {
|
|
|
1896
1910
|
name: "image",
|
|
1897
1911
|
type: "file",
|
|
1898
1912
|
bubble: !0,
|
|
1899
|
-
allowedFileTypes:
|
|
1913
|
+
allowedFileTypes: ue,
|
|
1900
1914
|
required: !0,
|
|
1901
1915
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1902
1916
|
onChange: (e) => {
|
|
1903
1917
|
e.delete("srcset"), e.delete("noWebp");
|
|
1904
|
-
function n(
|
|
1905
|
-
return new Promise((
|
|
1918
|
+
function n(r, l = 6e4) {
|
|
1919
|
+
return new Promise((u, c) => {
|
|
1906
1920
|
const h = document.createElement("img");
|
|
1907
|
-
let
|
|
1921
|
+
let b = !1;
|
|
1908
1922
|
h.onload = () => {
|
|
1909
|
-
|
|
1910
|
-
}, h.addEventListener("error", (
|
|
1911
|
-
console.warn("Image load failed",
|
|
1912
|
-
}), h.src =
|
|
1913
|
-
|
|
1923
|
+
b = !0, u(h);
|
|
1924
|
+
}, h.addEventListener("error", (f) => {
|
|
1925
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1926
|
+
}), h.src = r, setTimeout(() => {
|
|
1927
|
+
b || c(new Error("Image load timed out"));
|
|
1914
1928
|
}, l);
|
|
1915
1929
|
});
|
|
1916
1930
|
}
|
|
1917
|
-
function i(
|
|
1918
|
-
return Math.round(
|
|
1931
|
+
function i(r) {
|
|
1932
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1919
1933
|
}
|
|
1920
|
-
const o = e.get("image"),
|
|
1921
|
-
if (fetch(o).then((
|
|
1922
|
-
|
|
1923
|
-
}), o && (!
|
|
1924
|
-
return n(o).then((
|
|
1934
|
+
const o = e.get("image"), a = e.get("aspectRatio");
|
|
1935
|
+
if (fetch(o).then((r) => r.blob()).then((r) => {
|
|
1936
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
1937
|
+
}), o && (!a || a === 0.7041))
|
|
1938
|
+
return n(o).then((r) => {
|
|
1925
1939
|
const l = e.get("aspectRatio");
|
|
1926
|
-
e.get("image") === o && (!l || l === 0.7041) &&
|
|
1940
|
+
e.get("image") === o && (!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));
|
|
1927
1941
|
});
|
|
1928
1942
|
}
|
|
1929
1943
|
}, {
|
|
@@ -1989,7 +2003,421 @@ const Xt = {
|
|
|
1989
2003
|
shouldReceiveBuilderProps: {
|
|
1990
2004
|
builderBlock: !0
|
|
1991
2005
|
}
|
|
1992
|
-
},
|
|
2006
|
+
}, ln = {
|
|
2007
|
+
name: "PersonalizationContainer",
|
|
2008
|
+
shouldReceiveBuilderProps: {
|
|
2009
|
+
builderBlock: !0,
|
|
2010
|
+
builderContext: !0
|
|
2011
|
+
},
|
|
2012
|
+
noWrap: !0,
|
|
2013
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
2014
|
+
canHaveChildren: !0,
|
|
2015
|
+
inputs: [{
|
|
2016
|
+
name: "variants",
|
|
2017
|
+
defaultValue: [],
|
|
2018
|
+
behavior: "personalizationVariantList",
|
|
2019
|
+
type: "list",
|
|
2020
|
+
subFields: [{
|
|
2021
|
+
name: "name",
|
|
2022
|
+
type: "text"
|
|
2023
|
+
}, {
|
|
2024
|
+
name: "query",
|
|
2025
|
+
friendlyName: "Targeting rules",
|
|
2026
|
+
type: "BuilderQuery",
|
|
2027
|
+
defaultValue: []
|
|
2028
|
+
}, {
|
|
2029
|
+
name: "startDate",
|
|
2030
|
+
type: "date"
|
|
2031
|
+
}, {
|
|
2032
|
+
name: "endDate",
|
|
2033
|
+
type: "date"
|
|
2034
|
+
}, {
|
|
2035
|
+
name: "blocks",
|
|
2036
|
+
type: "uiBlocks",
|
|
2037
|
+
hideFromUI: !0,
|
|
2038
|
+
defaultValue: []
|
|
2039
|
+
}]
|
|
2040
|
+
}]
|
|
2041
|
+
};
|
|
2042
|
+
function Q(e) {
|
|
2043
|
+
return /* @__PURE__ */ s(
|
|
2044
|
+
"script",
|
|
2045
|
+
{
|
|
2046
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2047
|
+
"data-id": e.id,
|
|
2048
|
+
nonce: e.nonce || ""
|
|
2049
|
+
}
|
|
2050
|
+
);
|
|
2051
|
+
}
|
|
2052
|
+
function sn(e, t, n, i) {
|
|
2053
|
+
function o(c) {
|
|
2054
|
+
return typeof c == "string";
|
|
2055
|
+
}
|
|
2056
|
+
function a(c) {
|
|
2057
|
+
return typeof c == "number";
|
|
2058
|
+
}
|
|
2059
|
+
function r(c, h) {
|
|
2060
|
+
return (() => {
|
|
2061
|
+
const f = h.property, p = h.operator;
|
|
2062
|
+
let d = h.value;
|
|
2063
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && p))
|
|
2064
|
+
return !0;
|
|
2065
|
+
if (Array.isArray(d))
|
|
2066
|
+
return p === "isNot" ? d.every((v) => r(c, {
|
|
2067
|
+
property: f,
|
|
2068
|
+
operator: p,
|
|
2069
|
+
value: v
|
|
2070
|
+
})) : !!d.find((v) => r(c, {
|
|
2071
|
+
property: f,
|
|
2072
|
+
operator: p,
|
|
2073
|
+
value: v
|
|
2074
|
+
}));
|
|
2075
|
+
const g = c[f];
|
|
2076
|
+
if (Array.isArray(g))
|
|
2077
|
+
return g.includes(d);
|
|
2078
|
+
switch (p) {
|
|
2079
|
+
case "is":
|
|
2080
|
+
return g === d;
|
|
2081
|
+
case "isNot":
|
|
2082
|
+
return g !== d;
|
|
2083
|
+
case "contains":
|
|
2084
|
+
return (o(g) || Array.isArray(g)) && g.includes(String(d));
|
|
2085
|
+
case "startsWith":
|
|
2086
|
+
return o(g) && g.startsWith(String(d));
|
|
2087
|
+
case "endsWith":
|
|
2088
|
+
return o(g) && g.endsWith(String(d));
|
|
2089
|
+
case "greaterThan":
|
|
2090
|
+
return a(g) && a(d) && g > d;
|
|
2091
|
+
case "lessThan":
|
|
2092
|
+
return a(g) && a(d) && g < d;
|
|
2093
|
+
case "greaterThanOrEqualTo":
|
|
2094
|
+
return a(g) && a(d) && g >= d;
|
|
2095
|
+
case "lessThanOrEqualTo":
|
|
2096
|
+
return a(g) && a(d) && g <= d;
|
|
2097
|
+
default:
|
|
2098
|
+
return !1;
|
|
2099
|
+
}
|
|
2100
|
+
})();
|
|
2101
|
+
}
|
|
2102
|
+
const l = {
|
|
2103
|
+
query: t,
|
|
2104
|
+
startDate: n,
|
|
2105
|
+
endDate: i
|
|
2106
|
+
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2107
|
+
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));
|
|
2108
|
+
}
|
|
2109
|
+
const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2110
|
+
if (!navigator.cookieEnabled) {
|
|
2111
|
+
return;
|
|
2112
|
+
}
|
|
2113
|
+
function getCookie(name) {
|
|
2114
|
+
const nameEQ = name + '=';
|
|
2115
|
+
const ca = document.cookie.split(';');
|
|
2116
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2117
|
+
let c = ca[i];
|
|
2118
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2119
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2120
|
+
}
|
|
2121
|
+
return null;
|
|
2122
|
+
}
|
|
2123
|
+
function removeVariants() {
|
|
2124
|
+
variants?.forEach(function (_, index) {
|
|
2125
|
+
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2126
|
+
});
|
|
2127
|
+
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2128
|
+
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2129
|
+
}
|
|
2130
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2131
|
+
if (locale) {
|
|
2132
|
+
attributes.locale = locale;
|
|
2133
|
+
}
|
|
2134
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2135
|
+
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2136
|
+
});
|
|
2137
|
+
const isDebug = location.href.includes('builder.debug=true');
|
|
2138
|
+
if (isDebug) {
|
|
2139
|
+
console.debug('PersonalizationContainer', {
|
|
2140
|
+
attributes,
|
|
2141
|
+
variants,
|
|
2142
|
+
winningVariantIndex
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
2145
|
+
if (winningVariantIndex !== -1) {
|
|
2146
|
+
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2147
|
+
if (winningVariant) {
|
|
2148
|
+
const parentNode = winningVariant.parentNode;
|
|
2149
|
+
if (parentNode) {
|
|
2150
|
+
const newParent = parentNode.cloneNode(false);
|
|
2151
|
+
newParent.appendChild(winningVariant.content.firstChild);
|
|
2152
|
+
newParent.appendChild(winningVariant.content.lastChild);
|
|
2153
|
+
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2154
|
+
}
|
|
2155
|
+
if (isDebug) {
|
|
2156
|
+
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
} else if (variants && variants.length > 0) {
|
|
2160
|
+
removeVariants();
|
|
2161
|
+
}
|
|
2162
|
+
}`, un = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2163
|
+
function isString(val) {
|
|
2164
|
+
return typeof val === 'string';
|
|
2165
|
+
}
|
|
2166
|
+
function isNumber(val) {
|
|
2167
|
+
return typeof val === 'number';
|
|
2168
|
+
}
|
|
2169
|
+
function objectMatchesQuery(userattr, query) {
|
|
2170
|
+
const result = (() => {
|
|
2171
|
+
const property = query.property;
|
|
2172
|
+
const operator = query.operator;
|
|
2173
|
+
let testValue = query.value;
|
|
2174
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2175
|
+
testValue = query.value.slice(0, -1);
|
|
2176
|
+
}
|
|
2177
|
+
if (!(property && operator)) {
|
|
2178
|
+
return true;
|
|
2179
|
+
}
|
|
2180
|
+
if (Array.isArray(testValue)) {
|
|
2181
|
+
if (operator === 'isNot') {
|
|
2182
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2183
|
+
property,
|
|
2184
|
+
operator,
|
|
2185
|
+
value: val
|
|
2186
|
+
}));
|
|
2187
|
+
}
|
|
2188
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2189
|
+
property,
|
|
2190
|
+
operator,
|
|
2191
|
+
value: val
|
|
2192
|
+
}));
|
|
2193
|
+
}
|
|
2194
|
+
const value = userattr[property];
|
|
2195
|
+
if (Array.isArray(value)) {
|
|
2196
|
+
return value.includes(testValue);
|
|
2197
|
+
}
|
|
2198
|
+
switch (operator) {
|
|
2199
|
+
case 'is':
|
|
2200
|
+
return value === testValue;
|
|
2201
|
+
case 'isNot':
|
|
2202
|
+
return value !== testValue;
|
|
2203
|
+
case 'contains':
|
|
2204
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2205
|
+
case 'startsWith':
|
|
2206
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
2207
|
+
case 'endsWith':
|
|
2208
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
2209
|
+
case 'greaterThan':
|
|
2210
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2211
|
+
case 'lessThan':
|
|
2212
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2213
|
+
case 'greaterThanOrEqualTo':
|
|
2214
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2215
|
+
case 'lessThanOrEqualTo':
|
|
2216
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2217
|
+
default:
|
|
2218
|
+
return false;
|
|
2219
|
+
}
|
|
2220
|
+
})();
|
|
2221
|
+
return result;
|
|
2222
|
+
}
|
|
2223
|
+
const item = {
|
|
2224
|
+
query,
|
|
2225
|
+
startDate,
|
|
2226
|
+
endDate
|
|
2227
|
+
};
|
|
2228
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2229
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
2230
|
+
return false;
|
|
2231
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2232
|
+
return false;
|
|
2233
|
+
}
|
|
2234
|
+
if (!item.query || !item.query.length) {
|
|
2235
|
+
return true;
|
|
2236
|
+
}
|
|
2237
|
+
return item.query.every(filter => {
|
|
2238
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
2239
|
+
});
|
|
2240
|
+
}`;
|
|
2241
|
+
function dn(e, t) {
|
|
2242
|
+
return !(!(e && e.length > 0) || !t || L());
|
|
2243
|
+
}
|
|
2244
|
+
function mn(e) {
|
|
2245
|
+
const {
|
|
2246
|
+
variants: t,
|
|
2247
|
+
previewingIndex: n,
|
|
2248
|
+
isHydrated: i,
|
|
2249
|
+
filteredVariants: o,
|
|
2250
|
+
fallbackBlocks: a
|
|
2251
|
+
} = e;
|
|
2252
|
+
if (i && W() && typeof n == "number" && n < ((t == null ? void 0 : t.length) || 0) && !(o != null && o.length))
|
|
2253
|
+
return {
|
|
2254
|
+
blocks: t[n].blocks,
|
|
2255
|
+
path: `component.options.variants.${n}.blocks`
|
|
2256
|
+
};
|
|
2257
|
+
const l = o == null ? void 0 : o[0];
|
|
2258
|
+
return l ? {
|
|
2259
|
+
blocks: l.blocks,
|
|
2260
|
+
path: `component.options.variants.${t == null ? void 0 : t.indexOf(l)}.blocks`
|
|
2261
|
+
} : {
|
|
2262
|
+
blocks: a || [],
|
|
2263
|
+
path: void 0
|
|
2264
|
+
};
|
|
2265
|
+
}
|
|
2266
|
+
const fn = (e, t, n) => `
|
|
2267
|
+
(function() {
|
|
2268
|
+
${un}
|
|
2269
|
+
${cn}
|
|
2270
|
+
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2271
|
+
})();
|
|
2272
|
+
`;
|
|
2273
|
+
function hn(e) {
|
|
2274
|
+
var g, v, y, x, I, B, C;
|
|
2275
|
+
const t = D(null), [n, i] = R(
|
|
2276
|
+
() => de.getUserAttributes()
|
|
2277
|
+
), [o, a] = R(
|
|
2278
|
+
() => {
|
|
2279
|
+
var S, T, w;
|
|
2280
|
+
return fn(
|
|
2281
|
+
e.variants,
|
|
2282
|
+
((S = e.builderBlock) == null ? void 0 : S.id) || "none",
|
|
2283
|
+
(w = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : w.locale
|
|
2284
|
+
);
|
|
2285
|
+
}
|
|
2286
|
+
), [r, l] = R(() => []), [u, c] = R(
|
|
2287
|
+
() => {
|
|
2288
|
+
var S;
|
|
2289
|
+
return dn(
|
|
2290
|
+
e.variants,
|
|
2291
|
+
q((S = e.builderContext) == null ? void 0 : S.canTrack)
|
|
2292
|
+
);
|
|
2293
|
+
}
|
|
2294
|
+
), [h, b] = R(() => !1);
|
|
2295
|
+
function f() {
|
|
2296
|
+
return (e.variants || []).filter((S) => {
|
|
2297
|
+
var T, w, m, k;
|
|
2298
|
+
return sn(
|
|
2299
|
+
{
|
|
2300
|
+
...(w = (T = e.builderContext) == null ? void 0 : T.rootState) != null && w.locale ? {
|
|
2301
|
+
locale: (k = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : k.locale
|
|
2302
|
+
} : {},
|
|
2303
|
+
...n
|
|
2304
|
+
},
|
|
2305
|
+
S.query,
|
|
2306
|
+
S.startDate,
|
|
2307
|
+
S.endDate
|
|
2308
|
+
);
|
|
2309
|
+
});
|
|
2310
|
+
}
|
|
2311
|
+
function p() {
|
|
2312
|
+
var S;
|
|
2313
|
+
return mn({
|
|
2314
|
+
variants: e.variants,
|
|
2315
|
+
fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
|
|
2316
|
+
isHydrated: h,
|
|
2317
|
+
filteredVariants: f(),
|
|
2318
|
+
previewingIndex: e.previewingIndex
|
|
2319
|
+
});
|
|
2320
|
+
}
|
|
2321
|
+
function d() {
|
|
2322
|
+
return (e.variants || []).map(
|
|
2323
|
+
(S, T) => {
|
|
2324
|
+
var w;
|
|
2325
|
+
return `[data-variant-id="${(w = e.builderBlock) == null ? void 0 : w.id}-${T}"] { display: none; } `;
|
|
2326
|
+
}
|
|
2327
|
+
).join("");
|
|
2328
|
+
}
|
|
2329
|
+
return A(() => {
|
|
2330
|
+
var T;
|
|
2331
|
+
b(!0);
|
|
2332
|
+
const S = de.subscribeOnUserAttributesChange(
|
|
2333
|
+
(w) => {
|
|
2334
|
+
i(w);
|
|
2335
|
+
}
|
|
2336
|
+
);
|
|
2337
|
+
if (!(W() || X())) {
|
|
2338
|
+
const w = f()[0];
|
|
2339
|
+
t.current && (t.current.dispatchEvent(
|
|
2340
|
+
new CustomEvent("builder.variantLoaded", {
|
|
2341
|
+
detail: {
|
|
2342
|
+
variant: w || "default",
|
|
2343
|
+
content: (T = e.builderContext) == null ? void 0 : T.content
|
|
2344
|
+
},
|
|
2345
|
+
bubbles: !0
|
|
2346
|
+
})
|
|
2347
|
+
), new IntersectionObserver((k) => {
|
|
2348
|
+
k.forEach((V) => {
|
|
2349
|
+
var E;
|
|
2350
|
+
V.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2351
|
+
new CustomEvent("builder.variantDisplayed", {
|
|
2352
|
+
detail: {
|
|
2353
|
+
variant: w || "default",
|
|
2354
|
+
content: (E = e.builderContext) == null ? void 0 : E.content
|
|
2355
|
+
},
|
|
2356
|
+
bubbles: !0
|
|
2357
|
+
})
|
|
2358
|
+
);
|
|
2359
|
+
});
|
|
2360
|
+
}).observe(t.current));
|
|
2361
|
+
}
|
|
2362
|
+
r.push(S);
|
|
2363
|
+
}, []), A(() => () => {
|
|
2364
|
+
r.forEach((S) => S());
|
|
2365
|
+
}, []), /* @__PURE__ */ N(
|
|
2366
|
+
"div",
|
|
2367
|
+
{
|
|
2368
|
+
ref: t,
|
|
2369
|
+
...e.attributes,
|
|
2370
|
+
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.class) || ""}`,
|
|
2371
|
+
children: [
|
|
2372
|
+
u ? /* @__PURE__ */ N(P, { children: [
|
|
2373
|
+
(v = e.variants) == null ? void 0 : v.map((S, T) => {
|
|
2374
|
+
var w, m;
|
|
2375
|
+
return /* @__PURE__ */ s(
|
|
2376
|
+
"template",
|
|
2377
|
+
{
|
|
2378
|
+
"data-variant-id": `${(w = e.builderBlock) == null ? void 0 : w.id}-${T}`,
|
|
2379
|
+
children: /* @__PURE__ */ s(
|
|
2380
|
+
$,
|
|
2381
|
+
{
|
|
2382
|
+
blocks: S.blocks,
|
|
2383
|
+
parent: (m = e.builderBlock) == null ? void 0 : m.id,
|
|
2384
|
+
path: `component.options.variants.${T}.blocks`
|
|
2385
|
+
}
|
|
2386
|
+
)
|
|
2387
|
+
},
|
|
2388
|
+
T
|
|
2389
|
+
);
|
|
2390
|
+
}),
|
|
2391
|
+
/* @__PURE__ */ s(
|
|
2392
|
+
M,
|
|
2393
|
+
{
|
|
2394
|
+
nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
|
|
2395
|
+
styles: d(),
|
|
2396
|
+
id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2397
|
+
}
|
|
2398
|
+
),
|
|
2399
|
+
/* @__PURE__ */ s(
|
|
2400
|
+
Q,
|
|
2401
|
+
{
|
|
2402
|
+
nonce: ((I = e.builderContext) == null ? void 0 : I.nonce) || "",
|
|
2403
|
+
scriptStr: o,
|
|
2404
|
+
id: `variants-script-${(B = e.builderBlock) == null ? void 0 : B.id}`
|
|
2405
|
+
}
|
|
2406
|
+
)
|
|
2407
|
+
] }) : null,
|
|
2408
|
+
/* @__PURE__ */ s(
|
|
2409
|
+
$,
|
|
2410
|
+
{
|
|
2411
|
+
blocks: p().blocks,
|
|
2412
|
+
parent: (C = e.builderBlock) == null ? void 0 : C.id,
|
|
2413
|
+
path: p().path
|
|
2414
|
+
}
|
|
2415
|
+
)
|
|
2416
|
+
]
|
|
2417
|
+
}
|
|
2418
|
+
);
|
|
2419
|
+
}
|
|
2420
|
+
const gn = {
|
|
1993
2421
|
name: "Core:Section",
|
|
1994
2422
|
static: !0,
|
|
1995
2423
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2028,7 +2456,7 @@ const Xt = {
|
|
|
2028
2456
|
}
|
|
2029
2457
|
}
|
|
2030
2458
|
}]
|
|
2031
|
-
},
|
|
2459
|
+
}, bn = {
|
|
2032
2460
|
name: "Slot",
|
|
2033
2461
|
isRSC: !0,
|
|
2034
2462
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2046,7 +2474,7 @@ const Xt = {
|
|
|
2046
2474
|
builderComponents: !0
|
|
2047
2475
|
}
|
|
2048
2476
|
};
|
|
2049
|
-
function
|
|
2477
|
+
function pn(e) {
|
|
2050
2478
|
var t, n, i;
|
|
2051
2479
|
return /* @__PURE__ */ s(
|
|
2052
2480
|
"div",
|
|
@@ -2058,7 +2486,7 @@ function rn(e) {
|
|
|
2058
2486
|
"builder-slot": e.name
|
|
2059
2487
|
},
|
|
2060
2488
|
children: /* @__PURE__ */ s(
|
|
2061
|
-
|
|
2489
|
+
$,
|
|
2062
2490
|
{
|
|
2063
2491
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2064
2492
|
path: `symbol.data.${e.name}`,
|
|
@@ -2070,7 +2498,7 @@ function rn(e) {
|
|
|
2070
2498
|
}
|
|
2071
2499
|
);
|
|
2072
2500
|
}
|
|
2073
|
-
const
|
|
2501
|
+
const yn = {
|
|
2074
2502
|
name: "Symbol",
|
|
2075
2503
|
noWrap: !0,
|
|
2076
2504
|
static: !0,
|
|
@@ -2109,7 +2537,7 @@ const ln = {
|
|
|
2109
2537
|
builderComponents: !0,
|
|
2110
2538
|
builderLinkComponent: !0
|
|
2111
2539
|
}
|
|
2112
|
-
},
|
|
2540
|
+
}, ie = {
|
|
2113
2541
|
"@type": "@builder.io/sdk:Element",
|
|
2114
2542
|
responsiveStyles: {
|
|
2115
2543
|
large: {
|
|
@@ -2131,7 +2559,7 @@ const ln = {
|
|
|
2131
2559
|
text: "New tab"
|
|
2132
2560
|
}
|
|
2133
2561
|
}
|
|
2134
|
-
},
|
|
2562
|
+
}, oe = {
|
|
2135
2563
|
"@type": "@builder.io/sdk:Element",
|
|
2136
2564
|
responsiveStyles: {
|
|
2137
2565
|
large: {
|
|
@@ -2147,7 +2575,7 @@ const ln = {
|
|
|
2147
2575
|
text: "New tab content "
|
|
2148
2576
|
}
|
|
2149
2577
|
}
|
|
2150
|
-
},
|
|
2578
|
+
}, vn = {
|
|
2151
2579
|
name: "Builder: Tabs",
|
|
2152
2580
|
inputs: [{
|
|
2153
2581
|
name: "tabs",
|
|
@@ -2157,16 +2585,16 @@ const ln = {
|
|
|
2157
2585
|
name: "label",
|
|
2158
2586
|
type: "uiBlocks",
|
|
2159
2587
|
hideFromUI: !0,
|
|
2160
|
-
defaultValue: [
|
|
2588
|
+
defaultValue: [ie]
|
|
2161
2589
|
}, {
|
|
2162
2590
|
name: "content",
|
|
2163
2591
|
type: "uiBlocks",
|
|
2164
2592
|
hideFromUI: !0,
|
|
2165
|
-
defaultValue: [
|
|
2593
|
+
defaultValue: [oe]
|
|
2166
2594
|
}],
|
|
2167
2595
|
defaultValue: [{
|
|
2168
2596
|
label: [{
|
|
2169
|
-
...
|
|
2597
|
+
...ie,
|
|
2170
2598
|
component: {
|
|
2171
2599
|
name: "Text",
|
|
2172
2600
|
options: {
|
|
@@ -2175,7 +2603,7 @@ const ln = {
|
|
|
2175
2603
|
}
|
|
2176
2604
|
}],
|
|
2177
2605
|
content: [{
|
|
2178
|
-
...
|
|
2606
|
+
...oe,
|
|
2179
2607
|
component: {
|
|
2180
2608
|
name: "Text",
|
|
2181
2609
|
options: {
|
|
@@ -2185,7 +2613,7 @@ const ln = {
|
|
|
2185
2613
|
}]
|
|
2186
2614
|
}, {
|
|
2187
2615
|
label: [{
|
|
2188
|
-
...
|
|
2616
|
+
...ie,
|
|
2189
2617
|
component: {
|
|
2190
2618
|
name: "Text",
|
|
2191
2619
|
options: {
|
|
@@ -2194,7 +2622,7 @@ const ln = {
|
|
|
2194
2622
|
}
|
|
2195
2623
|
}],
|
|
2196
2624
|
content: [{
|
|
2197
|
-
...
|
|
2625
|
+
...oe,
|
|
2198
2626
|
component: {
|
|
2199
2627
|
name: "Text",
|
|
2200
2628
|
options: {
|
|
@@ -2251,16 +2679,16 @@ const ln = {
|
|
|
2251
2679
|
builderLinkComponent: !0
|
|
2252
2680
|
}
|
|
2253
2681
|
};
|
|
2254
|
-
function
|
|
2255
|
-
var
|
|
2682
|
+
function xn(e) {
|
|
2683
|
+
var a;
|
|
2256
2684
|
const [t, n] = R(
|
|
2257
2685
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2258
2686
|
);
|
|
2259
|
-
function i(
|
|
2260
|
-
return e.tabs && e.tabs[
|
|
2687
|
+
function i(r) {
|
|
2688
|
+
return e.tabs && e.tabs[r].content;
|
|
2261
2689
|
}
|
|
2262
|
-
function o(
|
|
2263
|
-
|
|
2690
|
+
function o(r) {
|
|
2691
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2264
2692
|
}
|
|
2265
2693
|
return /* @__PURE__ */ N("div", { children: [
|
|
2266
2694
|
/* @__PURE__ */ s(
|
|
@@ -2273,20 +2701,20 @@ function cn(e) {
|
|
|
2273
2701
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2274
2702
|
overflow: "auto"
|
|
2275
2703
|
},
|
|
2276
|
-
children: (
|
|
2704
|
+
children: (a = e.tabs) == null ? void 0 : a.map((r, l) => /* @__PURE__ */ s(
|
|
2277
2705
|
"span",
|
|
2278
2706
|
{
|
|
2279
2707
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2280
2708
|
style: {
|
|
2281
2709
|
...t === l ? e.activeTabStyle : {}
|
|
2282
2710
|
},
|
|
2283
|
-
onClick: (
|
|
2711
|
+
onClick: (u) => o(l),
|
|
2284
2712
|
children: /* @__PURE__ */ s(
|
|
2285
|
-
|
|
2713
|
+
$,
|
|
2286
2714
|
{
|
|
2287
2715
|
parent: e.builderBlock.id,
|
|
2288
2716
|
path: `tabs.${l}.label`,
|
|
2289
|
-
blocks:
|
|
2717
|
+
blocks: r.label,
|
|
2290
2718
|
context: e.builderContext,
|
|
2291
2719
|
registeredComponents: e.builderComponents,
|
|
2292
2720
|
linkComponent: e.builderLinkComponent
|
|
@@ -2298,7 +2726,7 @@ function cn(e) {
|
|
|
2298
2726
|
}
|
|
2299
2727
|
),
|
|
2300
2728
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2301
|
-
|
|
2729
|
+
$,
|
|
2302
2730
|
{
|
|
2303
2731
|
parent: e.builderBlock.id,
|
|
2304
2732
|
path: `tabs.${t}.content`,
|
|
@@ -2310,7 +2738,7 @@ function cn(e) {
|
|
|
2310
2738
|
) }) : null
|
|
2311
2739
|
] });
|
|
2312
2740
|
}
|
|
2313
|
-
const
|
|
2741
|
+
const Sn = {
|
|
2314
2742
|
shouldReceiveBuilderProps: {
|
|
2315
2743
|
builderBlock: !1,
|
|
2316
2744
|
builderContext: !0
|
|
@@ -2333,38 +2761,20 @@ const dn = {
|
|
|
2333
2761
|
textAlign: "center"
|
|
2334
2762
|
}
|
|
2335
2763
|
};
|
|
2336
|
-
function
|
|
2337
|
-
|
|
2338
|
-
var l;
|
|
2339
|
-
const n = e.builderContext, {
|
|
2340
|
-
context: i,
|
|
2341
|
-
localState: o,
|
|
2342
|
-
rootState: r,
|
|
2343
|
-
rootSetState: a
|
|
2344
|
-
} = n;
|
|
2345
|
-
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2346
|
-
/{{([^}]+)}}/g,
|
|
2347
|
-
(d, c) => D({
|
|
2348
|
-
code: c,
|
|
2349
|
-
context: i,
|
|
2350
|
-
localState: o,
|
|
2351
|
-
rootState: r,
|
|
2352
|
-
rootSetState: a
|
|
2353
|
-
})
|
|
2354
|
-
);
|
|
2355
|
-
}
|
|
2764
|
+
function kn(e) {
|
|
2765
|
+
var t;
|
|
2356
2766
|
return /* @__PURE__ */ s(
|
|
2357
2767
|
"div",
|
|
2358
2768
|
{
|
|
2359
2769
|
className: "builder-text",
|
|
2360
|
-
dangerouslySetInnerHTML: { __html: t() },
|
|
2770
|
+
dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
|
|
2361
2771
|
style: {
|
|
2362
2772
|
outline: "none"
|
|
2363
2773
|
}
|
|
2364
2774
|
}
|
|
2365
2775
|
);
|
|
2366
2776
|
}
|
|
2367
|
-
const
|
|
2777
|
+
const Cn = {
|
|
2368
2778
|
name: "Custom Code",
|
|
2369
2779
|
static: !0,
|
|
2370
2780
|
requiredPermissions: ["editCode"],
|
|
@@ -2387,15 +2797,15 @@ const mn = {
|
|
|
2387
2797
|
advanced: !0
|
|
2388
2798
|
}]
|
|
2389
2799
|
};
|
|
2390
|
-
function
|
|
2391
|
-
const t =
|
|
2800
|
+
function wn(e) {
|
|
2801
|
+
const t = D(null), [n, i] = R(() => []), [o, a] = R(() => []);
|
|
2392
2802
|
return A(() => {
|
|
2393
2803
|
var l;
|
|
2394
2804
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2395
2805
|
return;
|
|
2396
|
-
const
|
|
2397
|
-
for (let
|
|
2398
|
-
const c =
|
|
2806
|
+
const r = t.current.getElementsByTagName("script");
|
|
2807
|
+
for (let u = 0; u < r.length; u++) {
|
|
2808
|
+
const c = r[u];
|
|
2399
2809
|
if (c.src) {
|
|
2400
2810
|
if (n.includes(c.src))
|
|
2401
2811
|
continue;
|
|
@@ -2425,7 +2835,7 @@ function fn(e) {
|
|
|
2425
2835
|
}
|
|
2426
2836
|
);
|
|
2427
2837
|
}
|
|
2428
|
-
const
|
|
2838
|
+
const Tn = {
|
|
2429
2839
|
name: "Embed",
|
|
2430
2840
|
static: !0,
|
|
2431
2841
|
inputs: [{
|
|
@@ -2440,30 +2850,30 @@ const hn = {
|
|
|
2440
2850
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2441
2851
|
hideFromUI: !0
|
|
2442
2852
|
}]
|
|
2443
|
-
},
|
|
2444
|
-
function
|
|
2445
|
-
const t =
|
|
2446
|
-
function
|
|
2853
|
+
}, In = ["text/javascript", "application/javascript", "application/ecmascript"], En = (e) => In.includes(e.type);
|
|
2854
|
+
function Rn(e) {
|
|
2855
|
+
const t = D(null), [n, i] = R(() => []), [o, a] = R(() => []), [r, l] = R(() => !1);
|
|
2856
|
+
function u() {
|
|
2447
2857
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2448
2858
|
return;
|
|
2449
2859
|
const c = t.current.getElementsByTagName("script");
|
|
2450
2860
|
for (let h = 0; h < c.length; h++) {
|
|
2451
|
-
const
|
|
2452
|
-
if (
|
|
2453
|
-
n.push(
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2456
|
-
} else if (
|
|
2861
|
+
const b = c[h];
|
|
2862
|
+
if (b.src && !n.includes(b.src)) {
|
|
2863
|
+
n.push(b.src);
|
|
2864
|
+
const f = document.createElement("script");
|
|
2865
|
+
f.async = !0, f.src = b.src, document.head.appendChild(f);
|
|
2866
|
+
} else if (En(b) && !o.includes(b.innerText))
|
|
2457
2867
|
try {
|
|
2458
|
-
o.push(
|
|
2459
|
-
} catch (
|
|
2460
|
-
console.warn("`Embed`: Error running script:",
|
|
2868
|
+
o.push(b.innerText), new Function(b.innerText)();
|
|
2869
|
+
} catch (f) {
|
|
2870
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2461
2871
|
}
|
|
2462
2872
|
}
|
|
2463
2873
|
}
|
|
2464
2874
|
return A(() => {
|
|
2465
|
-
t.current && !
|
|
2466
|
-
}, [t.current,
|
|
2875
|
+
t.current && !r && (l(!0), u());
|
|
2876
|
+
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2467
2877
|
"div",
|
|
2468
2878
|
{
|
|
2469
2879
|
className: "builder-embed",
|
|
@@ -2472,7 +2882,7 @@ function pn(e) {
|
|
|
2472
2882
|
}
|
|
2473
2883
|
);
|
|
2474
2884
|
}
|
|
2475
|
-
const
|
|
2885
|
+
const Pn = {
|
|
2476
2886
|
name: "Form:Form",
|
|
2477
2887
|
// editableTags: ['builder-form-error']
|
|
2478
2888
|
defaults: {
|
|
@@ -2709,91 +3119,91 @@ const yn = {
|
|
|
2709
3119
|
builderComponents: !0,
|
|
2710
3120
|
builderLinkComponent: !0
|
|
2711
3121
|
}
|
|
2712
|
-
},
|
|
3122
|
+
}, Vn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Bn = () => {
|
|
2713
3123
|
const e = process.env.NODE_ENV || "production";
|
|
2714
|
-
return
|
|
3124
|
+
return Vn.includes(e) ? e : "production";
|
|
2715
3125
|
};
|
|
2716
|
-
function
|
|
2717
|
-
var
|
|
2718
|
-
const t =
|
|
2719
|
-
function
|
|
2720
|
-
var
|
|
2721
|
-
const
|
|
3126
|
+
function An(e) {
|
|
3127
|
+
var b, f;
|
|
3128
|
+
const t = D(null), [n, i] = R(() => "unsubmitted"), [o, a] = R(() => null), [r, l] = R(() => "");
|
|
3129
|
+
function u(p) {
|
|
3130
|
+
var g, v;
|
|
3131
|
+
const d = {
|
|
2722
3132
|
...e.builderContext.rootState,
|
|
2723
|
-
...
|
|
3133
|
+
...p
|
|
2724
3134
|
};
|
|
2725
|
-
e.builderContext.rootSetState ? (
|
|
3135
|
+
e.builderContext.rootSetState ? (v = (g = e.builderContext).rootSetState) == null || v.call(g, d) : e.builderContext.rootState = d;
|
|
2726
3136
|
}
|
|
2727
3137
|
function c() {
|
|
2728
3138
|
return W() && e.previewState || n;
|
|
2729
3139
|
}
|
|
2730
|
-
function h(
|
|
2731
|
-
var
|
|
2732
|
-
const
|
|
3140
|
+
function h(p) {
|
|
3141
|
+
var g;
|
|
3142
|
+
const d = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2733
3143
|
if (e.sendSubmissionsTo === "zapier")
|
|
2734
|
-
|
|
2735
|
-
else if (
|
|
3144
|
+
p.preventDefault();
|
|
3145
|
+
else if (d) {
|
|
2736
3146
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2737
|
-
|
|
3147
|
+
p.preventDefault();
|
|
2738
3148
|
return;
|
|
2739
3149
|
}
|
|
2740
|
-
|
|
2741
|
-
const
|
|
2742
|
-
let
|
|
2743
|
-
const
|
|
3150
|
+
p.preventDefault();
|
|
3151
|
+
const v = p.currentTarget || p.target, y = e.customHeaders || {};
|
|
3152
|
+
let x;
|
|
3153
|
+
const I = new FormData(v), B = Array.from(v.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
2744
3154
|
let k;
|
|
2745
|
-
const V =
|
|
2746
|
-
if (
|
|
2747
|
-
if (
|
|
2748
|
-
if (
|
|
2749
|
-
return k =
|
|
3155
|
+
const V = m.name;
|
|
3156
|
+
if (m instanceof HTMLInputElement)
|
|
3157
|
+
if (m.type === "radio") {
|
|
3158
|
+
if (m.checked)
|
|
3159
|
+
return k = m.name, {
|
|
2750
3160
|
key: V,
|
|
2751
3161
|
value: k
|
|
2752
3162
|
};
|
|
2753
|
-
} else if (
|
|
2754
|
-
k =
|
|
2755
|
-
else if (
|
|
2756
|
-
const E =
|
|
3163
|
+
} else if (m.type === "checkbox")
|
|
3164
|
+
k = m.checked;
|
|
3165
|
+
else if (m.type === "number" || m.type === "range") {
|
|
3166
|
+
const E = m.valueAsNumber;
|
|
2757
3167
|
isNaN(E) || (k = E);
|
|
2758
3168
|
} else
|
|
2759
|
-
|
|
3169
|
+
m.type === "file" ? k = m.files : k = m.value;
|
|
2760
3170
|
else
|
|
2761
|
-
k =
|
|
3171
|
+
k = m.value;
|
|
2762
3172
|
return {
|
|
2763
3173
|
key: V,
|
|
2764
3174
|
value: k
|
|
2765
3175
|
};
|
|
2766
3176
|
});
|
|
2767
|
-
let
|
|
2768
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2769
|
-
(
|
|
2770
|
-
}),
|
|
2771
|
-
|
|
3177
|
+
let C = e.contentType;
|
|
3178
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(B).forEach(({ value: m }) => {
|
|
3179
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3180
|
+
}), C !== "application/json")
|
|
3181
|
+
x = I;
|
|
2772
3182
|
else {
|
|
2773
|
-
const
|
|
2774
|
-
Array.from(
|
|
2775
|
-
|
|
2776
|
-
}),
|
|
3183
|
+
const m = {};
|
|
3184
|
+
Array.from(B).forEach(({ value: k, key: V }) => {
|
|
3185
|
+
We(m, V, k);
|
|
3186
|
+
}), x = JSON.stringify(m);
|
|
2777
3187
|
}
|
|
2778
|
-
|
|
2779
|
-
const
|
|
2780
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3188
|
+
C && C !== "multipart/form-data" && (d && ((g = e.action) != null && g.includes("zapier.com")) || (y["content-type"] = C));
|
|
3189
|
+
const S = new CustomEvent("presubmit", { detail: { body: x } });
|
|
3190
|
+
if (t.current && (t.current.dispatchEvent(S), S.defaultPrevented))
|
|
2781
3191
|
return;
|
|
2782
3192
|
i("sending");
|
|
2783
|
-
const
|
|
3193
|
+
const T = `${Bn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2784
3194
|
e.sendSubmissionsToEmail || ""
|
|
2785
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2786
|
-
|
|
2787
|
-
async (
|
|
3195
|
+
)}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3196
|
+
Ie(w), fetch(w, { body: x, headers: y, method: e.method || "post" }).then(
|
|
3197
|
+
async (m) => {
|
|
2788
3198
|
let k;
|
|
2789
|
-
const V =
|
|
2790
|
-
if (V && V.indexOf("application/json") !== -1 ? k = await
|
|
3199
|
+
const V = m.headers.get("content-type");
|
|
3200
|
+
if (V && V.indexOf("application/json") !== -1 ? k = await m.json() : k = await m.text(), !m.ok && e.errorMessagePath) {
|
|
2791
3201
|
let E = Be(k, e.errorMessagePath);
|
|
2792
|
-
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E),
|
|
3202
|
+
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), u({ formErrorMessage: E }));
|
|
2793
3203
|
}
|
|
2794
|
-
if (
|
|
3204
|
+
if (a(k), i(m.ok ? "success" : "error"), m.ok) {
|
|
2795
3205
|
const E = new CustomEvent("submit:success", {
|
|
2796
|
-
detail: { res:
|
|
3206
|
+
detail: { res: m, body: k }
|
|
2797
3207
|
});
|
|
2798
3208
|
if (t.current) {
|
|
2799
3209
|
if (t.current.dispatchEvent(E), E.defaultPrevented)
|
|
@@ -2802,24 +3212,24 @@ function Sn(e) {
|
|
|
2802
3212
|
}
|
|
2803
3213
|
if (e.successUrl)
|
|
2804
3214
|
if (t.current) {
|
|
2805
|
-
const
|
|
3215
|
+
const O = new CustomEvent("route", {
|
|
2806
3216
|
detail: { url: e.successUrl }
|
|
2807
3217
|
});
|
|
2808
|
-
t.current.dispatchEvent(
|
|
3218
|
+
t.current.dispatchEvent(O), O.defaultPrevented || (location.href = e.successUrl);
|
|
2809
3219
|
} else
|
|
2810
3220
|
location.href = e.successUrl;
|
|
2811
3221
|
}
|
|
2812
3222
|
},
|
|
2813
|
-
(
|
|
3223
|
+
(m) => {
|
|
2814
3224
|
const k = new CustomEvent("submit:error", {
|
|
2815
|
-
detail: { error:
|
|
3225
|
+
detail: { error: m }
|
|
2816
3226
|
});
|
|
2817
|
-
t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (
|
|
3227
|
+
t.current && (t.current.dispatchEvent(k), k.defaultPrevented) || (a(m), i("error"));
|
|
2818
3228
|
}
|
|
2819
3229
|
);
|
|
2820
3230
|
}
|
|
2821
3231
|
}
|
|
2822
|
-
return /* @__PURE__ */ N(
|
|
3232
|
+
return /* @__PURE__ */ N(P, { children: [
|
|
2823
3233
|
" ",
|
|
2824
3234
|
/* @__PURE__ */ N(
|
|
2825
3235
|
"form",
|
|
@@ -2829,21 +3239,21 @@ function Sn(e) {
|
|
|
2829
3239
|
action: !e.sendWithJs && e.action,
|
|
2830
3240
|
method: e.method,
|
|
2831
3241
|
name: e.name,
|
|
2832
|
-
onSubmit: (
|
|
3242
|
+
onSubmit: (p) => h(p),
|
|
2833
3243
|
...e.attributes,
|
|
2834
3244
|
children: [
|
|
2835
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(
|
|
2836
|
-
|
|
3245
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(P, { children: (f = (b = e.builderBlock) == null ? void 0 : b.children) == null ? void 0 : f.map((p, d) => /* @__PURE__ */ s(
|
|
3246
|
+
j,
|
|
2837
3247
|
{
|
|
2838
|
-
block:
|
|
3248
|
+
block: p,
|
|
2839
3249
|
context: e.builderContext,
|
|
2840
3250
|
registeredComponents: e.builderComponents,
|
|
2841
3251
|
linkComponent: e.builderLinkComponent
|
|
2842
3252
|
},
|
|
2843
|
-
`form-block-${
|
|
3253
|
+
`form-block-${d}`
|
|
2844
3254
|
)) }) : null,
|
|
2845
3255
|
c() === "error" ? /* @__PURE__ */ s(
|
|
2846
|
-
|
|
3256
|
+
$,
|
|
2847
3257
|
{
|
|
2848
3258
|
path: "errorMessage",
|
|
2849
3259
|
blocks: e.errorMessage,
|
|
@@ -2851,16 +3261,16 @@ function Sn(e) {
|
|
|
2851
3261
|
}
|
|
2852
3262
|
) : null,
|
|
2853
3263
|
c() === "sending" ? /* @__PURE__ */ s(
|
|
2854
|
-
|
|
3264
|
+
$,
|
|
2855
3265
|
{
|
|
2856
3266
|
path: "sendingMessage",
|
|
2857
3267
|
blocks: e.sendingMessage,
|
|
2858
3268
|
context: e.builderContext
|
|
2859
3269
|
}
|
|
2860
3270
|
) : null,
|
|
2861
|
-
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-
|
|
3271
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3f9754fe", children: JSON.stringify(o, null, 2) }) : null,
|
|
2862
3272
|
c() === "success" ? /* @__PURE__ */ s(
|
|
2863
|
-
|
|
3273
|
+
$,
|
|
2864
3274
|
{
|
|
2865
3275
|
path: "successMessage",
|
|
2866
3276
|
blocks: e.successMessage,
|
|
@@ -2871,11 +3281,11 @@ function Sn(e) {
|
|
|
2871
3281
|
}
|
|
2872
3282
|
),
|
|
2873
3283
|
" ",
|
|
2874
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3284
|
+
/* @__PURE__ */ s("style", { children: ".pre-3f9754fe { padding: 10px; color: red; text-align: center; }" }),
|
|
2875
3285
|
" "
|
|
2876
3286
|
] });
|
|
2877
3287
|
}
|
|
2878
|
-
const
|
|
3288
|
+
const Nn = {
|
|
2879
3289
|
name: "Form:Input",
|
|
2880
3290
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2881
3291
|
inputs: [
|
|
@@ -2927,8 +3337,8 @@ const kn = {
|
|
|
2927
3337
|
borderColor: "#ccc"
|
|
2928
3338
|
}
|
|
2929
3339
|
};
|
|
2930
|
-
function
|
|
2931
|
-
return /* @__PURE__ */
|
|
3340
|
+
function Wn(e) {
|
|
3341
|
+
return /* @__PURE__ */ Pe(
|
|
2932
3342
|
"input",
|
|
2933
3343
|
{
|
|
2934
3344
|
...e.attributes,
|
|
@@ -2942,7 +3352,7 @@ function Cn(e) {
|
|
|
2942
3352
|
}
|
|
2943
3353
|
);
|
|
2944
3354
|
}
|
|
2945
|
-
const
|
|
3355
|
+
const $n = {
|
|
2946
3356
|
name: "Form:Select",
|
|
2947
3357
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2948
3358
|
defaultStyles: {
|
|
@@ -2985,9 +3395,9 @@ const Tn = {
|
|
|
2985
3395
|
static: !0,
|
|
2986
3396
|
noWrap: !0
|
|
2987
3397
|
};
|
|
2988
|
-
function
|
|
3398
|
+
function Dn(e) {
|
|
2989
3399
|
var t;
|
|
2990
|
-
return /* @__PURE__ */
|
|
3400
|
+
return /* @__PURE__ */ Pe(
|
|
2991
3401
|
"select",
|
|
2992
3402
|
{
|
|
2993
3403
|
...e.attributes,
|
|
@@ -3000,7 +3410,7 @@ function wn(e) {
|
|
|
3000
3410
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3001
3411
|
);
|
|
3002
3412
|
}
|
|
3003
|
-
const
|
|
3413
|
+
const Fn = {
|
|
3004
3414
|
name: "Form:SubmitButton",
|
|
3005
3415
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3006
3416
|
defaultStyles: {
|
|
@@ -3026,10 +3436,10 @@ const In = {
|
|
|
3026
3436
|
// TODO: defaultChildren
|
|
3027
3437
|
// canHaveChildren: true,
|
|
3028
3438
|
};
|
|
3029
|
-
function
|
|
3439
|
+
function On(e) {
|
|
3030
3440
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3031
3441
|
}
|
|
3032
|
-
const
|
|
3442
|
+
const Ln = {
|
|
3033
3443
|
name: "Form:TextArea",
|
|
3034
3444
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3035
3445
|
inputs: [{
|
|
@@ -3066,7 +3476,7 @@ const Rn = {
|
|
|
3066
3476
|
static: !0,
|
|
3067
3477
|
noWrap: !0
|
|
3068
3478
|
};
|
|
3069
|
-
function
|
|
3479
|
+
function Un(e) {
|
|
3070
3480
|
return /* @__PURE__ */ s(
|
|
3071
3481
|
"textarea",
|
|
3072
3482
|
{
|
|
@@ -3079,7 +3489,7 @@ function Pn(e) {
|
|
|
3079
3489
|
}
|
|
3080
3490
|
);
|
|
3081
3491
|
}
|
|
3082
|
-
const
|
|
3492
|
+
const _n = {
|
|
3083
3493
|
// friendlyName?
|
|
3084
3494
|
name: "Raw:Img",
|
|
3085
3495
|
hideFromInsertMenu: !0,
|
|
@@ -3088,13 +3498,13 @@ const Bn = {
|
|
|
3088
3498
|
name: "image",
|
|
3089
3499
|
bubble: !0,
|
|
3090
3500
|
type: "file",
|
|
3091
|
-
allowedFileTypes:
|
|
3501
|
+
allowedFileTypes: ue,
|
|
3092
3502
|
required: !0
|
|
3093
3503
|
}],
|
|
3094
3504
|
noWrap: !0,
|
|
3095
3505
|
static: !0
|
|
3096
3506
|
};
|
|
3097
|
-
function
|
|
3507
|
+
function qn(e) {
|
|
3098
3508
|
return /* @__PURE__ */ s(
|
|
3099
3509
|
"img",
|
|
3100
3510
|
{
|
|
@@ -3109,7 +3519,7 @@ function Vn(e) {
|
|
|
3109
3519
|
W() && e.imgSrc || "default-key"
|
|
3110
3520
|
);
|
|
3111
3521
|
}
|
|
3112
|
-
const
|
|
3522
|
+
const Hn = {
|
|
3113
3523
|
name: "Video",
|
|
3114
3524
|
canHaveChildren: !0,
|
|
3115
3525
|
defaultStyles: {
|
|
@@ -3120,14 +3530,14 @@ const An = {
|
|
|
3120
3530
|
inputs: [{
|
|
3121
3531
|
name: "video",
|
|
3122
3532
|
type: "file",
|
|
3123
|
-
allowedFileTypes:
|
|
3533
|
+
allowedFileTypes: an,
|
|
3124
3534
|
bubble: !0,
|
|
3125
3535
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3126
3536
|
required: !0
|
|
3127
3537
|
}, {
|
|
3128
3538
|
name: "posterImage",
|
|
3129
3539
|
type: "file",
|
|
3130
|
-
allowedFileTypes:
|
|
3540
|
+
allowedFileTypes: ue,
|
|
3131
3541
|
helperText: "Image to show before the video plays"
|
|
3132
3542
|
}, {
|
|
3133
3543
|
name: "autoPlay",
|
|
@@ -3194,8 +3604,8 @@ const An = {
|
|
|
3194
3604
|
builderBlock: !0
|
|
3195
3605
|
}
|
|
3196
3606
|
};
|
|
3197
|
-
function
|
|
3198
|
-
var i, o,
|
|
3607
|
+
function Mn(e) {
|
|
3608
|
+
var i, o, a, r, l, u, c;
|
|
3199
3609
|
function t() {
|
|
3200
3610
|
return {
|
|
3201
3611
|
...e.autoPlay === !0 ? {
|
|
@@ -3252,7 +3662,7 @@ function Nn(e) {
|
|
|
3252
3662
|
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3253
3663
|
}
|
|
3254
3664
|
),
|
|
3255
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3665
|
+
e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ s(
|
|
3256
3666
|
"div",
|
|
3257
3667
|
{
|
|
3258
3668
|
style: {
|
|
@@ -3263,7 +3673,7 @@ function Nn(e) {
|
|
|
3263
3673
|
}
|
|
3264
3674
|
}
|
|
3265
3675
|
) : null,
|
|
3266
|
-
(l = (
|
|
3676
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3267
3677
|
"div",
|
|
3268
3678
|
{
|
|
3269
3679
|
style: {
|
|
@@ -3274,7 +3684,7 @@ function Nn(e) {
|
|
|
3274
3684
|
children: e.children
|
|
3275
3685
|
}
|
|
3276
3686
|
) : null,
|
|
3277
|
-
(c = (
|
|
3687
|
+
(c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3278
3688
|
"div",
|
|
3279
3689
|
{
|
|
3280
3690
|
style: {
|
|
@@ -3295,64 +3705,67 @@ function Nn(e) {
|
|
|
3295
3705
|
}
|
|
3296
3706
|
);
|
|
3297
3707
|
}
|
|
3298
|
-
const
|
|
3299
|
-
component:
|
|
3300
|
-
...
|
|
3301
|
-
}, {
|
|
3302
|
-
component: pn,
|
|
3303
|
-
...hn
|
|
3304
|
-
}, {
|
|
3305
|
-
component: Sn,
|
|
3306
|
-
...yn
|
|
3708
|
+
const jn = () => [{
|
|
3709
|
+
component: wn,
|
|
3710
|
+
...Cn
|
|
3307
3711
|
}, {
|
|
3308
|
-
component:
|
|
3309
|
-
...
|
|
3712
|
+
component: Rn,
|
|
3713
|
+
...Tn
|
|
3310
3714
|
}, {
|
|
3311
|
-
component:
|
|
3312
|
-
...
|
|
3715
|
+
component: An,
|
|
3716
|
+
...Pn
|
|
3313
3717
|
}, {
|
|
3314
|
-
component:
|
|
3315
|
-
...
|
|
3718
|
+
component: Wn,
|
|
3719
|
+
...Nn
|
|
3316
3720
|
}, {
|
|
3317
|
-
component:
|
|
3318
|
-
...
|
|
3721
|
+
component: On,
|
|
3722
|
+
...Fn
|
|
3319
3723
|
}, {
|
|
3320
|
-
component:
|
|
3321
|
-
|
|
3724
|
+
component: Dn,
|
|
3725
|
+
...$n
|
|
3322
3726
|
}, {
|
|
3323
|
-
component:
|
|
3324
|
-
...
|
|
3325
|
-
}], ve = () => [{
|
|
3326
|
-
component: et,
|
|
3327
|
-
...Xt
|
|
3727
|
+
component: Un,
|
|
3728
|
+
...Ln
|
|
3328
3729
|
}, {
|
|
3329
|
-
component:
|
|
3330
|
-
...
|
|
3730
|
+
component: qn,
|
|
3731
|
+
..._n
|
|
3331
3732
|
}, {
|
|
3332
|
-
component:
|
|
3333
|
-
...
|
|
3733
|
+
component: Mn,
|
|
3734
|
+
...Hn
|
|
3735
|
+
}], Se = () => [{
|
|
3736
|
+
component: nt,
|
|
3737
|
+
...tn
|
|
3334
3738
|
}, {
|
|
3335
|
-
component:
|
|
3739
|
+
component: Kt,
|
|
3336
3740
|
...nn
|
|
3337
3741
|
}, {
|
|
3338
|
-
component:
|
|
3742
|
+
component: Jt,
|
|
3339
3743
|
...on
|
|
3340
3744
|
}, {
|
|
3341
|
-
component:
|
|
3342
|
-
...
|
|
3745
|
+
component: Yt,
|
|
3746
|
+
...rn
|
|
3343
3747
|
}, {
|
|
3344
|
-
component:
|
|
3345
|
-
...
|
|
3748
|
+
component: Xt,
|
|
3749
|
+
...gn
|
|
3346
3750
|
}, {
|
|
3347
|
-
component:
|
|
3348
|
-
...
|
|
3751
|
+
component: pn,
|
|
3752
|
+
...bn
|
|
3753
|
+
}, {
|
|
3754
|
+
component: gi,
|
|
3755
|
+
...yn
|
|
3349
3756
|
}, {
|
|
3350
|
-
component:
|
|
3351
|
-
...
|
|
3757
|
+
component: kn,
|
|
3758
|
+
...Sn
|
|
3759
|
+
}, {
|
|
3760
|
+
component: hn,
|
|
3761
|
+
...ln
|
|
3352
3762
|
}, {
|
|
3353
|
-
component:
|
|
3354
|
-
...
|
|
3355
|
-
},
|
|
3763
|
+
component: xn,
|
|
3764
|
+
...vn
|
|
3765
|
+
}, {
|
|
3766
|
+
component: en,
|
|
3767
|
+
...Zt
|
|
3768
|
+
}, ...jn()], zn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3356
3769
|
function getAndSetVariantId() {
|
|
3357
3770
|
function setCookie(name, value, days) {
|
|
3358
3771
|
let expires = '';
|
|
@@ -3408,7 +3821,7 @@ const Wn = () => [{
|
|
|
3408
3821
|
}).join('');
|
|
3409
3822
|
styleEl.innerHTML = newStyleStr;
|
|
3410
3823
|
}
|
|
3411
|
-
}`,
|
|
3824
|
+
}`, Kn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3412
3825
|
if (!navigator.cookieEnabled) {
|
|
3413
3826
|
return;
|
|
3414
3827
|
}
|
|
@@ -3442,39 +3855,29 @@ const Wn = () => [{
|
|
|
3442
3855
|
thisScriptEl?.remove();
|
|
3443
3856
|
}
|
|
3444
3857
|
return;
|
|
3445
|
-
}`, Me = "builderIoAbTest", je = "builderIoRenderContent",
|
|
3858
|
+
}`, Me = "builderIoAbTest", je = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3446
3859
|
...t,
|
|
3447
3860
|
testVariationId: t.id,
|
|
3448
3861
|
id: e == null ? void 0 : e.id
|
|
3449
|
-
})),
|
|
3862
|
+
})), Jn = ({
|
|
3450
3863
|
canTrack: e,
|
|
3451
3864
|
content: t
|
|
3452
|
-
}) => !(!(
|
|
3453
|
-
window.${Me} = ${
|
|
3454
|
-
window.${je} = ${
|
|
3455
|
-
`,
|
|
3865
|
+
}) => !(!(K(t).length > 0) || !e || L()), Gn = (e) => e === "react" || e === "reactNative", ze = Gn(F), Qn = () => `
|
|
3866
|
+
window.${Me} = ${zn}
|
|
3867
|
+
window.${je} = ${Kn}
|
|
3868
|
+
`, Yn = (e, t) => `
|
|
3456
3869
|
window.${Me}(
|
|
3457
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3458
|
-
)`,
|
|
3870
|
+
"${t}",${JSON.stringify(e)}, ${ze}
|
|
3871
|
+
)`, Xn = ({
|
|
3459
3872
|
contentId: e,
|
|
3460
3873
|
variationId: t
|
|
3461
3874
|
}) => `window.${je}(
|
|
3462
|
-
"${t}", "${e}", ${
|
|
3875
|
+
"${t}", "${e}", ${ze}
|
|
3463
3876
|
)`;
|
|
3464
|
-
function
|
|
3465
|
-
return /* @__PURE__ */ s(
|
|
3466
|
-
"script",
|
|
3467
|
-
{
|
|
3468
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3469
|
-
"data-id": e.id,
|
|
3470
|
-
nonce: e.nonce || ""
|
|
3471
|
-
}
|
|
3472
|
-
);
|
|
3473
|
-
}
|
|
3474
|
-
function Se(e) {
|
|
3877
|
+
function ke(e) {
|
|
3475
3878
|
return Math.round(e * 1e3) / 1e3;
|
|
3476
3879
|
}
|
|
3477
|
-
const
|
|
3880
|
+
const Zn = (e, t, n = !0) => {
|
|
3478
3881
|
if (!(e instanceof HTMLElement))
|
|
3479
3882
|
return null;
|
|
3480
3883
|
let i = n ? e : e.parentElement;
|
|
@@ -3485,37 +3888,37 @@ const _n = (e, t, n = !0) => {
|
|
|
3485
3888
|
return i;
|
|
3486
3889
|
} while (i = i.parentElement);
|
|
3487
3890
|
return null;
|
|
3488
|
-
},
|
|
3891
|
+
}, ei = (e) => Zn(e, (t) => {
|
|
3489
3892
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3490
3893
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3491
|
-
}),
|
|
3894
|
+
}), Ce = ({
|
|
3492
3895
|
event: e,
|
|
3493
3896
|
target: t
|
|
3494
3897
|
}) => {
|
|
3495
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3898
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ke(i / n.width), r = ke(o / n.height);
|
|
3496
3899
|
return {
|
|
3497
|
-
x:
|
|
3498
|
-
y:
|
|
3900
|
+
x: a,
|
|
3901
|
+
y: r
|
|
3499
3902
|
};
|
|
3500
|
-
},
|
|
3501
|
-
const t = e.target, n = t &&
|
|
3903
|
+
}, ti = (e) => {
|
|
3904
|
+
const t = e.target, n = t && ei(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3502
3905
|
return {
|
|
3503
3906
|
targetBuilderElement: i || void 0,
|
|
3504
3907
|
metadata: {
|
|
3505
|
-
targetOffset: t ?
|
|
3908
|
+
targetOffset: t ? Ce({
|
|
3506
3909
|
event: e,
|
|
3507
3910
|
target: t
|
|
3508
3911
|
}) : void 0,
|
|
3509
|
-
builderTargetOffset: n ?
|
|
3912
|
+
builderTargetOffset: n ? Ce({
|
|
3510
3913
|
event: e,
|
|
3511
3914
|
target: n
|
|
3512
3915
|
}) : void 0,
|
|
3513
3916
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3514
3917
|
}
|
|
3515
3918
|
};
|
|
3516
|
-
},
|
|
3517
|
-
var
|
|
3518
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3919
|
+
}, ni = ["svelte", "qwik", "vue"], we = () => ni.includes(F) && (W() || X()), ii = (e) => {
|
|
3920
|
+
var a, r;
|
|
3921
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
3519
3922
|
let o = "";
|
|
3520
3923
|
if (i && t && n && (o += `
|
|
3521
3924
|
@font-face {
|
|
@@ -3539,15 +3942,15 @@ font-weight: ${l};
|
|
|
3539
3942
|
`.trim());
|
|
3540
3943
|
}
|
|
3541
3944
|
return o;
|
|
3542
|
-
},
|
|
3945
|
+
}, oi = ({
|
|
3543
3946
|
customFonts: e
|
|
3544
3947
|
}) => {
|
|
3545
3948
|
var t;
|
|
3546
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3547
|
-
},
|
|
3949
|
+
return ((t = e == null ? void 0 : e.map((n) => ii(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3950
|
+
}, ai = ({
|
|
3548
3951
|
cssCode: e,
|
|
3549
3952
|
contentId: t
|
|
3550
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3953
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
|
|
3551
3954
|
.builder-button {
|
|
3552
3955
|
all: unset;
|
|
3553
3956
|
}
|
|
@@ -3564,39 +3967,39 @@ font-weight: ${l};
|
|
|
3564
3967
|
text-align: inherit;
|
|
3565
3968
|
font-family: inherit;
|
|
3566
3969
|
}
|
|
3567
|
-
`,
|
|
3568
|
-
function
|
|
3569
|
-
var
|
|
3570
|
-
const t =
|
|
3571
|
-
function n(
|
|
3572
|
-
var
|
|
3573
|
-
const
|
|
3970
|
+
`, li = (e) => e ? "" : ri, si = (e) => `variant-${e}`;
|
|
3971
|
+
function ci(e) {
|
|
3972
|
+
var x, I, B;
|
|
3973
|
+
const t = D(null);
|
|
3974
|
+
function n(C) {
|
|
3975
|
+
var T, w;
|
|
3976
|
+
const S = {
|
|
3574
3977
|
...e.builderContextSignal.rootState,
|
|
3575
|
-
...
|
|
3978
|
+
...C
|
|
3576
3979
|
};
|
|
3577
|
-
e.builderContextSignal.rootSetState ? (
|
|
3578
|
-
...
|
|
3579
|
-
rootState:
|
|
3980
|
+
e.builderContextSignal.rootSetState ? (w = (T = e.builderContextSignal).rootSetState) == null || w.call(T, S) : e.setBuilderContextSignal((m) => ({
|
|
3981
|
+
...m,
|
|
3982
|
+
rootState: S
|
|
3580
3983
|
}));
|
|
3581
3984
|
}
|
|
3582
|
-
function i(
|
|
3583
|
-
var
|
|
3584
|
-
const
|
|
3985
|
+
function i(C) {
|
|
3986
|
+
var T, w, m, k, V;
|
|
3987
|
+
const S = {
|
|
3585
3988
|
...e.builderContextSignal.content,
|
|
3586
|
-
...
|
|
3989
|
+
...C,
|
|
3587
3990
|
data: {
|
|
3588
|
-
...(
|
|
3589
|
-
...
|
|
3991
|
+
...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
|
|
3992
|
+
...C == null ? void 0 : C.data
|
|
3590
3993
|
},
|
|
3591
3994
|
meta: {
|
|
3592
|
-
...(
|
|
3593
|
-
...
|
|
3594
|
-
breakpoints: ((
|
|
3995
|
+
...(w = e.builderContextSignal.content) == null ? void 0 : w.meta,
|
|
3996
|
+
...C == null ? void 0 : C.meta,
|
|
3997
|
+
breakpoints: ((m = C == null ? void 0 : C.meta) == null ? void 0 : m.breakpoints) || ((V = (k = e.builderContextSignal.content) == null ? void 0 : k.meta) == null ? void 0 : V.breakpoints)
|
|
3595
3998
|
}
|
|
3596
3999
|
};
|
|
3597
4000
|
e.setBuilderContextSignal((E) => ({
|
|
3598
4001
|
...E,
|
|
3599
|
-
content:
|
|
4002
|
+
content: S
|
|
3600
4003
|
}));
|
|
3601
4004
|
}
|
|
3602
4005
|
function o() {
|
|
@@ -3605,62 +4008,62 @@ function Xn(e) {
|
|
|
3605
4008
|
"aria-hidden": !0
|
|
3606
4009
|
};
|
|
3607
4010
|
}
|
|
3608
|
-
const [
|
|
4011
|
+
const [a, r] = R(
|
|
3609
4012
|
() => e.contentWrapper || "div"
|
|
3610
4013
|
);
|
|
3611
|
-
function l(
|
|
4014
|
+
function l(C) {
|
|
3612
4015
|
return Ye({
|
|
3613
4016
|
model: e.model,
|
|
3614
4017
|
trustedHosts: e.trustedHosts,
|
|
3615
4018
|
callbacks: {
|
|
3616
|
-
configureSdk: (
|
|
3617
|
-
var
|
|
3618
|
-
const { breakpoints:
|
|
3619
|
-
!
|
|
4019
|
+
configureSdk: (S) => {
|
|
4020
|
+
var m;
|
|
4021
|
+
const { breakpoints: T, contentId: w } = S;
|
|
4022
|
+
!w || w !== ((m = e.builderContextSignal.content) == null ? void 0 : m.id) || T && i({
|
|
3620
4023
|
meta: {
|
|
3621
|
-
breakpoints:
|
|
4024
|
+
breakpoints: T
|
|
3622
4025
|
}
|
|
3623
4026
|
});
|
|
3624
4027
|
},
|
|
3625
|
-
animation: (
|
|
3626
|
-
|
|
4028
|
+
animation: (S) => {
|
|
4029
|
+
Fe(S);
|
|
3627
4030
|
},
|
|
3628
|
-
contentUpdate: (
|
|
3629
|
-
i(
|
|
4031
|
+
contentUpdate: (S) => {
|
|
4032
|
+
i(S);
|
|
3630
4033
|
}
|
|
3631
4034
|
}
|
|
3632
|
-
})(
|
|
4035
|
+
})(C);
|
|
3633
4036
|
}
|
|
3634
|
-
const [
|
|
3635
|
-
function
|
|
3636
|
-
var
|
|
4037
|
+
const [u, c] = R(() => ({})), [h, b] = R(() => ({})), [f, p] = R(() => !1);
|
|
4038
|
+
function d(C) {
|
|
4039
|
+
var S, T;
|
|
3637
4040
|
if (e.builderContextSignal.content) {
|
|
3638
|
-
const
|
|
3639
|
-
|
|
4041
|
+
const w = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, m = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
|
|
4042
|
+
me({
|
|
3640
4043
|
apiHost: e.apiHost,
|
|
3641
4044
|
type: "click",
|
|
3642
|
-
canTrack:
|
|
3643
|
-
contentId:
|
|
4045
|
+
canTrack: q(e.canTrack),
|
|
4046
|
+
contentId: m,
|
|
3644
4047
|
apiKey: e.apiKey,
|
|
3645
|
-
variationId:
|
|
3646
|
-
...
|
|
3647
|
-
unique: !
|
|
4048
|
+
variationId: w !== m ? w : void 0,
|
|
4049
|
+
...ti(C),
|
|
4050
|
+
unique: !f
|
|
3648
4051
|
});
|
|
3649
4052
|
}
|
|
3650
|
-
|
|
4053
|
+
f || p(!0);
|
|
3651
4054
|
}
|
|
3652
|
-
function
|
|
3653
|
-
var
|
|
3654
|
-
const
|
|
3655
|
-
Object.entries(
|
|
3656
|
-
if (!k || h[
|
|
4055
|
+
function g() {
|
|
4056
|
+
var S, T, w;
|
|
4057
|
+
const C = (w = (T = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : T.httpRequests) != null ? w : {};
|
|
4058
|
+
Object.entries(C).forEach(([m, k]) => {
|
|
4059
|
+
if (!k || h[m] || u[m] && !W())
|
|
3657
4060
|
return;
|
|
3658
|
-
h[
|
|
4061
|
+
h[m] = !0;
|
|
3659
4062
|
const V = k.replace(
|
|
3660
4063
|
/{{([^}]+)}}/g,
|
|
3661
|
-
(E,
|
|
3662
|
-
|
|
3663
|
-
code:
|
|
4064
|
+
(E, O) => String(
|
|
4065
|
+
U({
|
|
4066
|
+
code: O,
|
|
3664
4067
|
context: e.context || {},
|
|
3665
4068
|
localState: void 0,
|
|
3666
4069
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3668,18 +4071,18 @@ function Xn(e) {
|
|
|
3668
4071
|
})
|
|
3669
4072
|
)
|
|
3670
4073
|
);
|
|
3671
|
-
|
|
4074
|
+
Ie(V), fetch(V).then((E) => E.json()).then((E) => {
|
|
3672
4075
|
n({
|
|
3673
|
-
[
|
|
3674
|
-
}),
|
|
4076
|
+
[m]: E
|
|
4077
|
+
}), u[m] = !0;
|
|
3675
4078
|
}).catch((E) => {
|
|
3676
4079
|
console.error("error fetching dynamic data", k, E);
|
|
3677
4080
|
}).finally(() => {
|
|
3678
|
-
h[
|
|
4081
|
+
h[m] = !1;
|
|
3679
4082
|
});
|
|
3680
4083
|
});
|
|
3681
4084
|
}
|
|
3682
|
-
function
|
|
4085
|
+
function v() {
|
|
3683
4086
|
W() && window.dispatchEvent(
|
|
3684
4087
|
new CustomEvent(
|
|
3685
4088
|
"builder:component:stateChange",
|
|
@@ -3694,11 +4097,11 @@ function Xn(e) {
|
|
|
3694
4097
|
)
|
|
3695
4098
|
);
|
|
3696
4099
|
}
|
|
3697
|
-
const
|
|
3698
|
-
return
|
|
3699
|
-
var S,
|
|
3700
|
-
if (
|
|
3701
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4100
|
+
const y = D(!1);
|
|
4101
|
+
return y.current || (g(), v(), y.current = !0), A(() => {
|
|
4102
|
+
var C, S, T;
|
|
4103
|
+
if (L()) {
|
|
4104
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Je(), Ge({
|
|
3702
4105
|
...e.locale ? {
|
|
3703
4106
|
locale: e.locale
|
|
3704
4107
|
} : {},
|
|
@@ -3710,43 +4113,48 @@ function Xn(e) {
|
|
|
3710
4113
|
} : {}
|
|
3711
4114
|
}), Object.values(
|
|
3712
4115
|
e.builderContextSignal.componentInfos
|
|
3713
|
-
).forEach((
|
|
3714
|
-
var
|
|
3715
|
-
if (!e.model || !((
|
|
3716
|
-
const
|
|
3717
|
-
(
|
|
4116
|
+
).forEach((m) => {
|
|
4117
|
+
var k, V;
|
|
4118
|
+
if (!e.model || !((k = m.models) != null && k.length) || m.models.includes(e.model)) {
|
|
4119
|
+
const E = Qe(m);
|
|
4120
|
+
(V = window.parent) == null || V.postMessage(E, "*");
|
|
3718
4121
|
}
|
|
3719
4122
|
}), window.addEventListener(
|
|
3720
4123
|
"builder:component:stateChangeListenerActivated",
|
|
3721
|
-
|
|
3722
|
-
)), e.builderContextSignal.content &&
|
|
3723
|
-
const
|
|
3724
|
-
|
|
4124
|
+
v
|
|
4125
|
+
)), e.builderContextSignal.content && q(e.canTrack)) {
|
|
4126
|
+
const m = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, k = (S = e.builderContextSignal.content) == null ? void 0 : S.id, V = e.apiKey;
|
|
4127
|
+
me({
|
|
3725
4128
|
apiHost: e.apiHost,
|
|
3726
4129
|
type: "impression",
|
|
3727
4130
|
canTrack: !0,
|
|
3728
|
-
contentId:
|
|
3729
|
-
apiKey:
|
|
3730
|
-
variationId:
|
|
4131
|
+
contentId: k,
|
|
4132
|
+
apiKey: V,
|
|
4133
|
+
variationId: m !== k ? m : void 0
|
|
3731
4134
|
});
|
|
3732
4135
|
}
|
|
3733
|
-
if (
|
|
3734
|
-
const
|
|
3735
|
-
`builder.overrides.${
|
|
3736
|
-
),
|
|
3737
|
-
|
|
3738
|
-
model: e.model,
|
|
4136
|
+
if (X() && !W()) {
|
|
4137
|
+
const m = new URL(location.href).searchParams, k = m.get("builder.preview"), V = m.get(
|
|
4138
|
+
`builder.overrides.${k}`
|
|
4139
|
+
), E = m.get("apiKey") || m.get("builder.space");
|
|
4140
|
+
(k === "BUILDER_STUDIO" || k === e.model && E === e.apiKey && (!e.content || V === e.content.id)) && Ee({
|
|
4141
|
+
model: e.model || "",
|
|
3739
4142
|
apiKey: e.apiKey,
|
|
3740
|
-
apiVersion: e.builderContextSignal.apiVersion
|
|
3741
|
-
|
|
3742
|
-
|
|
4143
|
+
apiVersion: e.builderContextSignal.apiVersion,
|
|
4144
|
+
...k === "BUILDER_STUDIO" && ((T = e.context) != null && T.symbolId) ? {
|
|
4145
|
+
query: {
|
|
4146
|
+
id: e.context.symbolId
|
|
4147
|
+
}
|
|
4148
|
+
} : {}
|
|
4149
|
+
}).then((O) => {
|
|
4150
|
+
O && i(O);
|
|
3743
4151
|
});
|
|
3744
4152
|
}
|
|
3745
4153
|
}
|
|
3746
4154
|
}, []), A(() => {
|
|
3747
4155
|
e.content && i(e.content);
|
|
3748
4156
|
}, [e.content]), A(() => {
|
|
3749
|
-
|
|
4157
|
+
v();
|
|
3750
4158
|
}, [e.builderContextSignal.rootState]), A(() => {
|
|
3751
4159
|
e.data && n(e.data);
|
|
3752
4160
|
}, [e.data]), A(() => {
|
|
@@ -3754,22 +4162,22 @@ function Xn(e) {
|
|
|
3754
4162
|
locale: e.locale
|
|
3755
4163
|
});
|
|
3756
4164
|
}, [e.locale]), A(() => () => {
|
|
3757
|
-
|
|
4165
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3758
4166
|
"builder:component:stateChangeListenerActivated",
|
|
3759
|
-
|
|
4167
|
+
v
|
|
3760
4168
|
));
|
|
3761
|
-
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
3762
|
-
|
|
4169
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
|
|
4170
|
+
a,
|
|
3763
4171
|
{
|
|
3764
4172
|
ref: t,
|
|
3765
|
-
onClick: (
|
|
3766
|
-
"builder-content-id": (
|
|
4173
|
+
onClick: (C) => d(C),
|
|
4174
|
+
"builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
|
|
3767
4175
|
"builder-model": e.model,
|
|
3768
|
-
className:
|
|
3769
|
-
((
|
|
4176
|
+
className: si(
|
|
4177
|
+
((I = e.content) == null ? void 0 : I.testVariationId) || ((B = e.content) == null ? void 0 : B.id)
|
|
3770
4178
|
),
|
|
3771
4179
|
style: {
|
|
3772
|
-
display: !e.builderContextSignal.content &&
|
|
4180
|
+
display: !e.builderContextSignal.content && we() ? "none" : void 0
|
|
3773
4181
|
},
|
|
3774
4182
|
...o(),
|
|
3775
4183
|
...e.contentWrapperProps,
|
|
@@ -3777,21 +4185,21 @@ function Xn(e) {
|
|
|
3777
4185
|
}
|
|
3778
4186
|
) : null });
|
|
3779
4187
|
}
|
|
3780
|
-
function
|
|
4188
|
+
function ui(e) {
|
|
3781
4189
|
const [t, n] = R(
|
|
3782
4190
|
() => `
|
|
3783
|
-
${
|
|
4191
|
+
${ai({
|
|
3784
4192
|
cssCode: e.cssCode,
|
|
3785
4193
|
contentId: e.contentId
|
|
3786
4194
|
})}
|
|
3787
|
-
${
|
|
4195
|
+
${oi({
|
|
3788
4196
|
customFonts: e.customFonts
|
|
3789
4197
|
})}
|
|
3790
|
-
${
|
|
4198
|
+
${li(e.isNestedRender)}
|
|
3791
4199
|
`.trim()
|
|
3792
4200
|
);
|
|
3793
4201
|
return /* @__PURE__ */ s(
|
|
3794
|
-
|
|
4202
|
+
M,
|
|
3795
4203
|
{
|
|
3796
4204
|
id: "builderio-content",
|
|
3797
4205
|
styles: t,
|
|
@@ -3799,15 +4207,15 @@ ${Yn(e.isNestedRender)}
|
|
|
3799
4207
|
}
|
|
3800
4208
|
);
|
|
3801
4209
|
}
|
|
3802
|
-
const
|
|
4210
|
+
const di = ({
|
|
3803
4211
|
content: e,
|
|
3804
4212
|
data: t,
|
|
3805
4213
|
locale: n
|
|
3806
4214
|
}) => {
|
|
3807
|
-
var
|
|
3808
|
-
const i = {}, o = ((
|
|
3809
|
-
return (l = (
|
|
3810
|
-
|
|
4215
|
+
var a, r, l;
|
|
4216
|
+
const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
4217
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((u) => {
|
|
4218
|
+
u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
|
|
3811
4219
|
}), {
|
|
3812
4220
|
...i,
|
|
3813
4221
|
...o,
|
|
@@ -3816,7 +4224,7 @@ const ei = ({
|
|
|
3816
4224
|
locale: n
|
|
3817
4225
|
} : {}
|
|
3818
4226
|
};
|
|
3819
|
-
},
|
|
4227
|
+
}, mi = ({
|
|
3820
4228
|
content: e,
|
|
3821
4229
|
data: t
|
|
3822
4230
|
}) => e ? {
|
|
@@ -3828,45 +4236,45 @@ const ei = ({
|
|
|
3828
4236
|
meta: e == null ? void 0 : e.meta
|
|
3829
4237
|
} : void 0;
|
|
3830
4238
|
function Te(e) {
|
|
3831
|
-
var c, h,
|
|
4239
|
+
var c, h, b, f, p, d, g, v, y;
|
|
3832
4240
|
const [t, n] = R(
|
|
3833
4241
|
() => {
|
|
3834
|
-
var
|
|
3835
|
-
return
|
|
4242
|
+
var x, I;
|
|
4243
|
+
return Xn({
|
|
3836
4244
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3837
|
-
variationId: (
|
|
4245
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3838
4246
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3839
|
-
contentId: (
|
|
4247
|
+
contentId: (I = e.content) == null ? void 0 : I.id
|
|
3840
4248
|
});
|
|
3841
4249
|
}
|
|
3842
4250
|
);
|
|
3843
|
-
function i(
|
|
3844
|
-
l((
|
|
3845
|
-
...
|
|
3846
|
-
rootState:
|
|
4251
|
+
function i(x) {
|
|
4252
|
+
l((I) => ({
|
|
4253
|
+
...I,
|
|
4254
|
+
rootState: x
|
|
3847
4255
|
}));
|
|
3848
4256
|
}
|
|
3849
|
-
const [o,
|
|
4257
|
+
const [o, a] = R(
|
|
3850
4258
|
() => [
|
|
3851
|
-
...
|
|
4259
|
+
...Se(),
|
|
3852
4260
|
...e.customComponents || []
|
|
3853
4261
|
].reduce(
|
|
3854
|
-
(
|
|
3855
|
-
...
|
|
3856
|
-
[
|
|
3857
|
-
component:
|
|
3858
|
-
...
|
|
4262
|
+
(x, { component: I, ...B }) => ({
|
|
4263
|
+
...x,
|
|
4264
|
+
[B.name]: {
|
|
4265
|
+
component: I,
|
|
4266
|
+
...fe(B)
|
|
3859
4267
|
}
|
|
3860
4268
|
}),
|
|
3861
4269
|
{}
|
|
3862
4270
|
)
|
|
3863
|
-
), [
|
|
3864
|
-
content:
|
|
4271
|
+
), [r, l] = R(() => ({
|
|
4272
|
+
content: mi({
|
|
3865
4273
|
content: e.content,
|
|
3866
4274
|
data: e.data
|
|
3867
4275
|
}),
|
|
3868
4276
|
localState: void 0,
|
|
3869
|
-
rootState:
|
|
4277
|
+
rootState: di({
|
|
3870
4278
|
content: e.content,
|
|
3871
4279
|
data: e.data,
|
|
3872
4280
|
locale: e.locale
|
|
@@ -3877,12 +4285,12 @@ function Te(e) {
|
|
|
3877
4285
|
apiKey: e.apiKey,
|
|
3878
4286
|
apiVersion: e.apiVersion,
|
|
3879
4287
|
componentInfos: [
|
|
3880
|
-
...
|
|
4288
|
+
...Se(),
|
|
3881
4289
|
...e.customComponents || []
|
|
3882
4290
|
].reduce(
|
|
3883
|
-
(
|
|
3884
|
-
...
|
|
3885
|
-
[
|
|
4291
|
+
(x, { component: I, ...B }) => ({
|
|
4292
|
+
...x,
|
|
4293
|
+
[B.name]: fe(B)
|
|
3886
4294
|
}),
|
|
3887
4295
|
{}
|
|
3888
4296
|
),
|
|
@@ -3891,31 +4299,31 @@ function Te(e) {
|
|
|
3891
4299
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3892
4300
|
nonce: e.nonce || "",
|
|
3893
4301
|
model: e.model || ""
|
|
3894
|
-
})),
|
|
3895
|
-
if (!
|
|
3896
|
-
e.apiKey ||
|
|
4302
|
+
})), u = D(!1);
|
|
4303
|
+
if (!u.current) {
|
|
4304
|
+
e.apiKey || Y.error(
|
|
3897
4305
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3898
4306
|
);
|
|
3899
|
-
const
|
|
3900
|
-
|
|
3901
|
-
code:
|
|
4307
|
+
const x = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4308
|
+
x && U({
|
|
4309
|
+
code: x,
|
|
3902
4310
|
context: e.context || {},
|
|
3903
4311
|
localState: void 0,
|
|
3904
|
-
rootState:
|
|
3905
|
-
rootSetState: (
|
|
3906
|
-
Object.assign(
|
|
4312
|
+
rootState: r.rootState,
|
|
4313
|
+
rootSetState: (I) => {
|
|
4314
|
+
Object.assign(r.rootState, I);
|
|
3907
4315
|
},
|
|
3908
4316
|
isExpression: !1
|
|
3909
|
-
}),
|
|
4317
|
+
}), u.current = !0;
|
|
3910
4318
|
}
|
|
3911
4319
|
return /* @__PURE__ */ s(
|
|
3912
|
-
|
|
4320
|
+
Ve.Provider,
|
|
3913
4321
|
{
|
|
3914
4322
|
value: {
|
|
3915
4323
|
registeredComponents: o
|
|
3916
4324
|
},
|
|
3917
4325
|
children: /* @__PURE__ */ N(
|
|
3918
|
-
|
|
4326
|
+
ci,
|
|
3919
4327
|
{
|
|
3920
4328
|
apiHost: e.apiHost,
|
|
3921
4329
|
nonce: e.nonce,
|
|
@@ -3928,7 +4336,7 @@ function Te(e) {
|
|
|
3928
4336
|
locale: e.locale,
|
|
3929
4337
|
enrich: e.enrich,
|
|
3930
4338
|
showContent: e.showContent,
|
|
3931
|
-
builderContextSignal:
|
|
4339
|
+
builderContextSignal: r,
|
|
3932
4340
|
contentWrapper: e.contentWrapper,
|
|
3933
4341
|
contentWrapperProps: e.contentWrapperProps,
|
|
3934
4342
|
trustedHosts: e.trustedHosts,
|
|
@@ -3936,7 +4344,7 @@ function Te(e) {
|
|
|
3936
4344
|
setBuilderContextSignal: l,
|
|
3937
4345
|
children: [
|
|
3938
4346
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3939
|
-
|
|
4347
|
+
Q,
|
|
3940
4348
|
{
|
|
3941
4349
|
id: "builderio-variant-visibility",
|
|
3942
4350
|
scriptStr: t,
|
|
@@ -3944,20 +4352,20 @@ function Te(e) {
|
|
|
3944
4352
|
}
|
|
3945
4353
|
) : null,
|
|
3946
4354
|
/* @__PURE__ */ s(
|
|
3947
|
-
|
|
4355
|
+
ui,
|
|
3948
4356
|
{
|
|
3949
4357
|
nonce: e.nonce || "",
|
|
3950
4358
|
isNestedRender: e.isNestedRender,
|
|
3951
|
-
contentId: (
|
|
3952
|
-
cssCode: (
|
|
3953
|
-
customFonts: (
|
|
4359
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
4360
|
+
cssCode: (p = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : p.cssCode,
|
|
4361
|
+
customFonts: (g = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
|
|
3954
4362
|
}
|
|
3955
4363
|
),
|
|
3956
4364
|
/* @__PURE__ */ s(
|
|
3957
|
-
|
|
4365
|
+
$,
|
|
3958
4366
|
{
|
|
3959
|
-
blocks: (
|
|
3960
|
-
context:
|
|
4367
|
+
blocks: (y = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
|
|
4368
|
+
context: r,
|
|
3961
4369
|
registeredComponents: o,
|
|
3962
4370
|
linkComponent: e.linkComponent
|
|
3963
4371
|
}
|
|
@@ -3968,50 +4376,50 @@ function Te(e) {
|
|
|
3968
4376
|
}
|
|
3969
4377
|
);
|
|
3970
4378
|
}
|
|
3971
|
-
function
|
|
3972
|
-
var
|
|
4379
|
+
function fi(e) {
|
|
4380
|
+
var r;
|
|
3973
4381
|
const [t, n] = R(
|
|
3974
|
-
() =>
|
|
3975
|
-
canTrack:
|
|
4382
|
+
() => Jn({
|
|
4383
|
+
canTrack: q(e.canTrack),
|
|
3976
4384
|
content: e.content
|
|
3977
4385
|
})
|
|
3978
4386
|
);
|
|
3979
4387
|
function i() {
|
|
3980
4388
|
var l;
|
|
3981
|
-
return
|
|
3982
|
-
|
|
3983
|
-
id:
|
|
3984
|
-
testRatio:
|
|
4389
|
+
return Yn(
|
|
4390
|
+
K(e.content).map((u) => ({
|
|
4391
|
+
id: u.testVariationId,
|
|
4392
|
+
testRatio: u.testRatio
|
|
3985
4393
|
})),
|
|
3986
4394
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3987
4395
|
);
|
|
3988
4396
|
}
|
|
3989
4397
|
function o() {
|
|
3990
|
-
return
|
|
4398
|
+
return K(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3991
4399
|
}
|
|
3992
|
-
function
|
|
4400
|
+
function a() {
|
|
3993
4401
|
var l;
|
|
3994
4402
|
return t ? {
|
|
3995
4403
|
...e.content,
|
|
3996
4404
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3997
|
-
} :
|
|
4405
|
+
} : Xe({
|
|
3998
4406
|
item: e.content,
|
|
3999
|
-
canTrack:
|
|
4407
|
+
canTrack: q(e.canTrack)
|
|
4000
4408
|
});
|
|
4001
4409
|
}
|
|
4002
4410
|
return A(() => {
|
|
4003
|
-
}, []), /* @__PURE__ */ N(
|
|
4004
|
-
!e.isNestedRender &&
|
|
4005
|
-
|
|
4411
|
+
}, []), /* @__PURE__ */ N(P, { children: [
|
|
4412
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
|
|
4413
|
+
Q,
|
|
4006
4414
|
{
|
|
4007
4415
|
id: "builderio-init-variants-fns",
|
|
4008
|
-
scriptStr:
|
|
4416
|
+
scriptStr: Qn(),
|
|
4009
4417
|
nonce: e.nonce || ""
|
|
4010
4418
|
}
|
|
4011
4419
|
) : null,
|
|
4012
|
-
t ? /* @__PURE__ */ N(
|
|
4420
|
+
t ? /* @__PURE__ */ N(P, { children: [
|
|
4013
4421
|
/* @__PURE__ */ s(
|
|
4014
|
-
|
|
4422
|
+
M,
|
|
4015
4423
|
{
|
|
4016
4424
|
id: "builderio-variants",
|
|
4017
4425
|
styles: o(),
|
|
@@ -4019,14 +4427,14 @@ function ni(e) {
|
|
|
4019
4427
|
}
|
|
4020
4428
|
),
|
|
4021
4429
|
/* @__PURE__ */ s(
|
|
4022
|
-
|
|
4430
|
+
Q,
|
|
4023
4431
|
{
|
|
4024
4432
|
id: "builderio-variants-visibility",
|
|
4025
4433
|
scriptStr: i(),
|
|
4026
4434
|
nonce: e.nonce || ""
|
|
4027
4435
|
}
|
|
4028
4436
|
),
|
|
4029
|
-
(
|
|
4437
|
+
(r = K(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4030
4438
|
Te,
|
|
4031
4439
|
{
|
|
4032
4440
|
apiHost: e.apiHost,
|
|
@@ -4060,7 +4468,7 @@ function ni(e) {
|
|
|
4060
4468
|
apiHost: e.apiHost,
|
|
4061
4469
|
nonce: e.nonce,
|
|
4062
4470
|
isNestedRender: e.isNestedRender,
|
|
4063
|
-
content:
|
|
4471
|
+
content: a(),
|
|
4064
4472
|
showContent: !0,
|
|
4065
4473
|
model: e.model,
|
|
4066
4474
|
data: e.data,
|
|
@@ -4082,13 +4490,13 @@ function ni(e) {
|
|
|
4082
4490
|
)
|
|
4083
4491
|
] });
|
|
4084
4492
|
}
|
|
4085
|
-
const
|
|
4493
|
+
const hi = async ({
|
|
4086
4494
|
builderContextValue: e,
|
|
4087
4495
|
symbol: t
|
|
4088
4496
|
}) => {
|
|
4089
4497
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4090
4498
|
(e != null && e.apiKey))
|
|
4091
|
-
return
|
|
4499
|
+
return Ee({
|
|
4092
4500
|
model: t.model,
|
|
4093
4501
|
apiKey: e.apiKey,
|
|
4094
4502
|
apiVersion: e.apiVersion,
|
|
@@ -4098,11 +4506,11 @@ const ii = async ({
|
|
|
4098
4506
|
}
|
|
4099
4507
|
}
|
|
4100
4508
|
}).catch((n) => {
|
|
4101
|
-
|
|
4509
|
+
Y.error("Could not fetch symbol content: ", n);
|
|
4102
4510
|
});
|
|
4103
4511
|
};
|
|
4104
|
-
function
|
|
4105
|
-
var l,
|
|
4512
|
+
function gi(e) {
|
|
4513
|
+
var l, u, c, h;
|
|
4106
4514
|
function t() {
|
|
4107
4515
|
return "div";
|
|
4108
4516
|
}
|
|
@@ -4110,31 +4518,31 @@ function oi(e) {
|
|
|
4110
4518
|
return "div";
|
|
4111
4519
|
}
|
|
4112
4520
|
function i() {
|
|
4113
|
-
var
|
|
4521
|
+
var b, f;
|
|
4114
4522
|
return [
|
|
4115
4523
|
e.attributes[H()],
|
|
4116
4524
|
"builder-symbol",
|
|
4117
|
-
(
|
|
4118
|
-
(
|
|
4525
|
+
(b = e.symbol) != null && b.inline ? "builder-inline-symbol" : void 0,
|
|
4526
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4119
4527
|
].filter(Boolean).join(" ");
|
|
4120
4528
|
}
|
|
4121
|
-
const [o,
|
|
4122
|
-
var
|
|
4123
|
-
return (
|
|
4529
|
+
const [o, a] = R(() => {
|
|
4530
|
+
var b;
|
|
4531
|
+
return (b = e.symbol) == null ? void 0 : b.content;
|
|
4124
4532
|
});
|
|
4125
|
-
function
|
|
4126
|
-
o ||
|
|
4533
|
+
function r() {
|
|
4534
|
+
o || hi({
|
|
4127
4535
|
symbol: e.symbol,
|
|
4128
4536
|
builderContextValue: e.builderContext
|
|
4129
|
-
}).then((
|
|
4130
|
-
|
|
4537
|
+
}).then((b) => {
|
|
4538
|
+
b && a(b);
|
|
4131
4539
|
});
|
|
4132
4540
|
}
|
|
4133
4541
|
return A(() => {
|
|
4134
4542
|
}, []), A(() => {
|
|
4135
|
-
|
|
4543
|
+
r();
|
|
4136
4544
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4137
|
-
|
|
4545
|
+
fi,
|
|
4138
4546
|
{
|
|
4139
4547
|
nonce: e.builderContext.nonce,
|
|
4140
4548
|
isNestedRender: !0,
|
|
@@ -4146,7 +4554,7 @@ function oi(e) {
|
|
|
4146
4554
|
},
|
|
4147
4555
|
customComponents: Object.values(e.builderComponents),
|
|
4148
4556
|
data: {
|
|
4149
|
-
...(
|
|
4557
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
4150
4558
|
...e.builderContext.localState,
|
|
4151
4559
|
...(c = o == null ? void 0 : o.data) == null ? void 0 : c.state
|
|
4152
4560
|
},
|
|
@@ -4160,15 +4568,16 @@ function oi(e) {
|
|
|
4160
4568
|
) });
|
|
4161
4569
|
}
|
|
4162
4570
|
export {
|
|
4163
|
-
|
|
4571
|
+
$ as Blocks,
|
|
4164
4572
|
le as BuilderContext,
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4573
|
+
nt as Button,
|
|
4574
|
+
Kt as Columns,
|
|
4575
|
+
fi as Content,
|
|
4576
|
+
Jt as Fragment,
|
|
4577
|
+
Yt as Image,
|
|
4578
|
+
Xt as Section,
|
|
4579
|
+
gi as Symbol,
|
|
4580
|
+
kn as Text,
|
|
4581
|
+
Mn as Video,
|
|
4582
|
+
Si as setClientUserAttributes
|
|
4174
4583
|
};
|