@builder.io/sdk-react 3.0.3 → 3.0.6
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 +1286 -884
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +17 -16
- package/lib/browser/server-entry-a1c64831.cjs +2 -0
- package/lib/browser/{server-entry-c904f136.js → server-entry-df5e89e5.js} +279 -237
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-c786f197.js → accordion-289f3464.js} +1 -1
- package/lib/edge/{accordion-032726a7.cjs → accordion-fbfb71f4.cjs} +1 -1
- package/lib/edge/{blocks-827b0a87.cjs → blocks-459a090b.cjs} +11 -11
- package/lib/edge/{blocks-105e50e5.js → blocks-582a7fd7.js} +87 -88
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +13 -12
- package/lib/edge/{button-f0e0ea72.js → button-9b112da6.js} +2 -2
- package/lib/edge/{button-5cbfe22c.cjs → button-da357144.cjs} +1 -1
- package/lib/edge/{columns-d07da61d.cjs → columns-a211113f.cjs} +2 -2
- package/lib/edge/{columns-9e187314.js → columns-aba58dda.js} +18 -18
- package/lib/edge/{content-variants-59dc0824.js → content-variants-08f4371c.js} +165 -124
- package/lib/edge/content-variants-4b5899b5.cjs +134 -0
- package/lib/edge/dynamic-blocks-exports.cjs +3 -1
- package/lib/edge/dynamic-blocks-exports.mjs +5 -2
- package/lib/edge/form-4d4553c2.js +166 -0
- package/lib/edge/form-e3a3afd4.cjs +1 -0
- package/lib/edge/{get-class-prop-name-6b143ec7.js → get-class-prop-name-38c2baca.js} +1 -1
- package/lib/edge/{get-class-prop-name-8fb0e5ad.cjs → get-class-prop-name-fbe244e3.cjs} +1 -1
- package/lib/edge/{image-2a2b26d2.js → image-38917f45.js} +22 -24
- package/lib/edge/image-590e36ae.cjs +17 -0
- package/lib/edge/{img-72bf9d21.cjs → img-8d549af8.cjs} +1 -1
- package/lib/edge/{img-2c4c6b78.js → img-c49066fa.js} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +18 -17
- package/lib/edge/{input-6eca8427.cjs → input-1ae3842f.cjs} +1 -1
- package/lib/edge/{input-752f3ce9.js → input-e7301f4e.js} +1 -1
- package/lib/edge/personalization-container-035be6ba.js +384 -0
- package/lib/edge/personalization-container-25cd8b5e.cjs +138 -0
- package/lib/edge/{select-a1d6e80e.js → select-4187b229.js} +1 -1
- package/lib/edge/{select-49a73a0b.cjs → select-64fdaa79.cjs} +1 -1
- package/lib/edge/server-entry-2ef4e66a.cjs +2 -0
- package/lib/edge/{server-entry-35f12729.js → server-entry-61fca4f7.js} +322 -280
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-2327e009.cjs → slot-995f63c2.cjs} +1 -1
- package/lib/edge/{slot-b9bcbd41.js → slot-d6c46a42.js} +3 -3
- package/lib/edge/{symbol-3527699b.cjs → symbol-498daa97.cjs} +1 -1
- package/lib/edge/{symbol-33e7736f.js → symbol-623dc717.js} +2 -2
- package/lib/edge/{tabs-bc422e4c.js → tabs-12ba41b1.js} +3 -3
- package/lib/edge/{tabs-2df0eaa2.cjs → tabs-d39499cd.cjs} +1 -1
- package/lib/edge/video-4ecfd08b.cjs +1 -0
- package/lib/edge/{video-58c2cc8d.js → video-a3f10439.js} +0 -1
- package/lib/node/blocks-exports.cjs +170 -33
- package/lib/node/blocks-exports.mjs +1372 -970
- 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-d1ed35c5.js → server-entry-27d9d31e.js} +279 -237
- package/lib/node/server-entry-98ebff74.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-6675714a.js → setIvm-2dde9074.js} +1 -1
- package/lib/node/{setIvm-e4deba11.cjs → setIvm-784fe19f.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-75b2b3a0.js → should-force-browser-runtime-in-node-80f081c8.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-03adae17.cjs → should-force-browser-runtime-in-node-cd6baa94.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/form/form/form.d.ts +1 -0
- package/types/blocks/personalization-container/component-info.d.ts +2 -0
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
- package/types/blocks/personalization-container/helpers.d.ts +27 -0
- package/types/blocks/personalization-container/index.d.ts +1 -0
- package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
- package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/user-attributes.d.ts +17 -0
- package/types/index-helpers/blocks-exports.d.ts +1 -0
- package/types/types/components.d.ts +2 -2
- package/types/types/input.d.ts +1 -0
- package/lib/browser/server-entry-5eafc5bd.cjs +0 -2
- package/lib/edge/content-variants-0db90715.cjs +0 -134
- package/lib/edge/form-79639135.cjs +0 -1
- package/lib/edge/form-7a7b98cf.js +0 -176
- package/lib/edge/image-4db81d72.cjs +0 -17
- package/lib/edge/server-entry-6b2058e2.cjs +0 -2
- package/lib/edge/video-e20dcbbc.cjs +0 -1
- package/lib/node/server-entry-606ce65a.cjs +0 -2
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
2
|
+
import { TARGET as F, isBrowser as L, logger as oe, checkIsDefined as ie, isPreviewing as G, isEditing as W, userAttributesService as de, getDefaultCanTrack as _, logFetch as we, registerInsertMenu as Me, setupBrowserForEditing as ze, createRegisterComponentMessage as Ke, _track as me, fetchOneEntry as Ie, createEditorListener as Je, serializeIncludingFunctions as fe, handleABTestingSync as Ge } from "./server-entry-27d9d31e.js";
|
|
3
|
+
import { setClientUserAttributes as ki } from "./server-entry-27d9d31e.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
|
|
5
|
+
import * as Qe from "react";
|
|
6
|
+
import { createContext as Ee, useEffect as A, useState as E, useRef as D, useContext as he, createElement as Re } from "react";
|
|
7
|
+
import { getFunctionArguments as Ye, flattenState as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe, fastClone as re } from "./setIvm-2dde9074.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as nt } from "./should-force-browser-runtime-in-node-80f081c8.js";
|
|
9
|
+
const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && it.has(e.toLowerCase());
|
|
9
10
|
function le(e) {
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: at(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
11
12
|
}
|
|
12
|
-
const
|
|
13
|
-
switch (
|
|
13
|
+
const q = () => {
|
|
14
|
+
switch (F) {
|
|
14
15
|
case "react":
|
|
15
16
|
case "reactNative":
|
|
16
17
|
case "rsc":
|
|
@@ -27,7 +28,7 @@ function ot(e) {
|
|
|
27
28
|
function t() {
|
|
28
29
|
return {
|
|
29
30
|
...e.attributes,
|
|
30
|
-
[
|
|
31
|
+
[q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
|
|
31
32
|
...e.link ? {
|
|
32
33
|
href: e.link,
|
|
33
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -37,7 +38,7 @@ function ot(e) {
|
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
40
|
}
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ s(
|
|
41
42
|
le,
|
|
42
43
|
{
|
|
43
44
|
attributes: t(),
|
|
@@ -47,7 +48,7 @@ function ot(e) {
|
|
|
47
48
|
}
|
|
48
49
|
);
|
|
49
50
|
}
|
|
50
|
-
const se =
|
|
51
|
+
const se = Ee({
|
|
51
52
|
content: null,
|
|
52
53
|
context: {},
|
|
53
54
|
localState: void 0,
|
|
@@ -62,65 +63,65 @@ const se = we({
|
|
|
62
63
|
BlocksWrapperProps: {},
|
|
63
64
|
nonce: "",
|
|
64
65
|
model: ""
|
|
65
|
-
}),
|
|
66
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
66
|
+
}), Ve = Ee({ registeredComponents: {} }), Be = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
|
|
67
68
|
return i === void 0 || i === e ? n : i;
|
|
68
|
-
},
|
|
69
|
+
}, rt = ({
|
|
69
70
|
code: e,
|
|
70
71
|
builder: t,
|
|
71
72
|
context: n,
|
|
72
73
|
event: i,
|
|
73
|
-
localState:
|
|
74
|
+
localState: a,
|
|
74
75
|
rootSetState: r,
|
|
75
|
-
rootState:
|
|
76
|
+
rootState: o
|
|
76
77
|
}) => {
|
|
77
|
-
const
|
|
78
|
+
const l = Ye({
|
|
78
79
|
builder: t,
|
|
79
80
|
context: n,
|
|
80
81
|
event: i,
|
|
81
|
-
state:
|
|
82
|
-
rootState:
|
|
83
|
-
localState:
|
|
82
|
+
state: Xe({
|
|
83
|
+
rootState: o,
|
|
84
|
+
localState: a,
|
|
84
85
|
rootSetState: r
|
|
85
86
|
})
|
|
86
87
|
});
|
|
87
|
-
return new Function(...
|
|
88
|
-
},
|
|
88
|
+
return new Function(...l.map(([u]) => u), e)(...l.map(([, u]) => u));
|
|
89
|
+
}, lt = (e) => L() || nt({
|
|
89
90
|
shouldLogWarning: !0
|
|
90
|
-
}) ?
|
|
91
|
-
var t, n, i,
|
|
92
|
-
return ((i = (n = (t =
|
|
91
|
+
}) ? rt(e) : Ze(e), st = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ct = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, ut = (e) => {
|
|
92
|
+
var t, n, i, a, r, o;
|
|
93
|
+
return ((i = (n = (t = st.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = ct.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
|
|
93
94
|
};
|
|
94
95
|
function O({
|
|
95
96
|
code: e,
|
|
96
97
|
context: t,
|
|
97
98
|
localState: n,
|
|
98
99
|
rootState: i,
|
|
99
|
-
rootSetState:
|
|
100
|
+
rootSetState: a,
|
|
100
101
|
event: r,
|
|
101
|
-
isExpression:
|
|
102
|
+
isExpression: o = !0
|
|
102
103
|
}) {
|
|
103
104
|
if (e.trim() === "")
|
|
104
105
|
return;
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
106
|
+
const l = ut(e.trim());
|
|
107
|
+
if (l)
|
|
107
108
|
return Be({
|
|
108
109
|
...i,
|
|
109
110
|
...n
|
|
110
|
-
},
|
|
111
|
-
const
|
|
112
|
-
code:
|
|
113
|
-
isExpression:
|
|
111
|
+
}, l);
|
|
112
|
+
const u = {
|
|
113
|
+
code: et(e, {
|
|
114
|
+
isExpression: o
|
|
114
115
|
}),
|
|
115
|
-
builder:
|
|
116
|
+
builder: tt(),
|
|
116
117
|
context: t,
|
|
117
118
|
event: r,
|
|
118
|
-
rootSetState:
|
|
119
|
+
rootSetState: a,
|
|
119
120
|
rootState: i,
|
|
120
121
|
localState: n
|
|
121
122
|
};
|
|
122
123
|
try {
|
|
123
|
-
return
|
|
124
|
+
return lt(u);
|
|
124
125
|
} catch (c) {
|
|
125
126
|
oe.error("Failed code evaluation: " + c.message, {
|
|
126
127
|
code: e
|
|
@@ -133,15 +134,15 @@ function dt(e, t) {
|
|
|
133
134
|
return {
|
|
134
135
|
...(n = e.component) == null ? void 0 : n.options,
|
|
135
136
|
...e.options,
|
|
136
|
-
...
|
|
137
|
+
...mt(e, t)
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
|
-
const
|
|
140
|
+
const mt = (e, t) => {
|
|
140
141
|
var n, i;
|
|
141
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
142
143
|
return {
|
|
143
144
|
...e.component.options,
|
|
144
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => O({
|
|
145
146
|
code: r,
|
|
146
147
|
context: t,
|
|
147
148
|
localState: t.localState,
|
|
@@ -150,67 +151,67 @@ const ut = (e, t) => {
|
|
|
150
151
|
}))
|
|
151
152
|
};
|
|
152
153
|
};
|
|
153
|
-
function
|
|
154
|
+
function ft(e, ...t) {
|
|
154
155
|
const n = Object.assign({}, e);
|
|
155
156
|
for (const i of t)
|
|
156
157
|
delete n[i];
|
|
157
158
|
return n;
|
|
158
159
|
}
|
|
159
|
-
function K(e, t, n = null, i = null,
|
|
160
|
+
function K(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
160
161
|
if (e == null || typeof e != "object") {
|
|
161
162
|
t(e, (r) => {
|
|
162
163
|
n !== null && i !== null && (n[i] = r);
|
|
163
164
|
});
|
|
164
165
|
return;
|
|
165
166
|
}
|
|
166
|
-
|
|
167
|
-
t(r, (
|
|
168
|
-
e[
|
|
169
|
-
}), K(r, t, e,
|
|
170
|
-
}) : Object.entries(e).forEach(([r,
|
|
171
|
-
t(
|
|
172
|
-
e[r] =
|
|
173
|
-
}), K(
|
|
167
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
|
+
t(r, (u) => {
|
|
169
|
+
e[o] = u;
|
|
170
|
+
}), K(r, t, e, o, a);
|
|
171
|
+
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
|
+
t(o, (u) => {
|
|
173
|
+
e[r] = u;
|
|
174
|
+
}), K(o, t, e, r, a);
|
|
174
175
|
}));
|
|
175
176
|
}
|
|
176
|
-
function
|
|
177
|
+
function Ae(e) {
|
|
177
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
178
179
|
}
|
|
179
|
-
function
|
|
180
|
+
function ht(e) {
|
|
180
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
181
182
|
return !1;
|
|
182
183
|
let t = !1;
|
|
183
184
|
return K(e, (n) => {
|
|
184
|
-
if (
|
|
185
|
+
if (Ae(n)) {
|
|
185
186
|
t = !0;
|
|
186
187
|
return;
|
|
187
188
|
}
|
|
188
189
|
}), t;
|
|
189
190
|
}
|
|
190
|
-
function
|
|
191
|
+
function gt(e, t) {
|
|
191
192
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (K(e, (n, i) => {
|
|
192
|
-
var
|
|
193
|
-
|
|
193
|
+
var a;
|
|
194
|
+
Ae(n) && i((a = n[t]) != null ? a : void 0);
|
|
194
195
|
}), e);
|
|
195
196
|
}
|
|
196
|
-
function
|
|
197
|
+
function bt(e, t) {
|
|
197
198
|
var n, i;
|
|
198
|
-
return (n = e.component) != null && n.options &&
|
|
199
|
+
return (n = e.component) != null && n.options && ht((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 = gt(e.component.options, t != null ? t : "Default")), e;
|
|
199
200
|
}
|
|
200
|
-
function
|
|
201
|
+
function ae(e) {
|
|
201
202
|
if (e === null || typeof e != "object")
|
|
202
203
|
return e;
|
|
203
204
|
if (Array.isArray(e))
|
|
204
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => ae(n));
|
|
205
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
206
207
|
return e;
|
|
207
208
|
const t = {};
|
|
208
209
|
for (const n in e)
|
|
209
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
210
211
|
return t;
|
|
211
212
|
}
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
213
|
+
const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) => {
|
|
214
|
+
if (pt) {
|
|
214
215
|
const t = re(e);
|
|
215
216
|
return {
|
|
216
217
|
...t,
|
|
@@ -222,7 +223,7 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
222
223
|
}
|
|
223
224
|
};
|
|
224
225
|
} else {
|
|
225
|
-
const t =
|
|
226
|
+
const t = ae(ft(e, "children", "meta"));
|
|
226
227
|
return {
|
|
227
228
|
...t,
|
|
228
229
|
properties: {
|
|
@@ -235,25 +236,25 @@ const bt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), pt = (e) =
|
|
|
235
236
|
meta: e.meta
|
|
236
237
|
};
|
|
237
238
|
}
|
|
238
|
-
},
|
|
239
|
+
}, vt = ({
|
|
239
240
|
block: e,
|
|
240
241
|
context: t,
|
|
241
242
|
localState: n,
|
|
242
243
|
rootState: i,
|
|
243
|
-
rootSetState:
|
|
244
|
+
rootSetState: a
|
|
244
245
|
}) => {
|
|
245
246
|
if (!e.bindings)
|
|
246
247
|
return e;
|
|
247
|
-
const r =
|
|
248
|
-
for (const
|
|
249
|
-
const
|
|
250
|
-
code:
|
|
248
|
+
const r = yt(e);
|
|
249
|
+
for (const o in e.bindings) {
|
|
250
|
+
const l = e.bindings[o], u = O({
|
|
251
|
+
code: l,
|
|
251
252
|
localState: n,
|
|
252
253
|
rootState: i,
|
|
253
|
-
rootSetState:
|
|
254
|
+
rootSetState: a,
|
|
254
255
|
context: t
|
|
255
256
|
});
|
|
256
|
-
|
|
257
|
+
Pe(r, o, u);
|
|
257
258
|
}
|
|
258
259
|
return r;
|
|
259
260
|
};
|
|
@@ -262,127 +263,127 @@ function xt({
|
|
|
262
263
|
context: t,
|
|
263
264
|
localState: n,
|
|
264
265
|
rootState: i,
|
|
265
|
-
rootSetState:
|
|
266
|
+
rootSetState: a
|
|
266
267
|
}) {
|
|
267
|
-
let r =
|
|
268
|
-
return r = r,
|
|
268
|
+
let r = bt(e, i.locale);
|
|
269
|
+
return r = r, vt({
|
|
269
270
|
block: r,
|
|
270
271
|
localState: n,
|
|
271
272
|
rootState: i,
|
|
272
|
-
rootSetState:
|
|
273
|
+
rootSetState: a,
|
|
273
274
|
context: t
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
|
-
const
|
|
277
|
-
function
|
|
278
|
-
let i,
|
|
279
|
-
const
|
|
280
|
-
|
|
277
|
+
const Q = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
+
function St(e, t, n = {}) {
|
|
279
|
+
let i, a, r, o = null, l = 0;
|
|
280
|
+
const u = function() {
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
281
282
|
};
|
|
282
283
|
return function() {
|
|
283
284
|
const c = Date.now();
|
|
284
|
-
!
|
|
285
|
-
const h = t - (c -
|
|
286
|
-
return i = this,
|
|
285
|
+
!l && n.leading === !1 && (l = c);
|
|
286
|
+
const h = t - (c - l);
|
|
287
|
+
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(u, h)), r;
|
|
287
288
|
};
|
|
288
289
|
}
|
|
289
290
|
function U(e, ...t) {
|
|
290
291
|
const n = Object(e);
|
|
291
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
292
|
-
const
|
|
293
|
-
if (
|
|
294
|
-
for (const r in
|
|
295
|
-
Object.prototype.hasOwnProperty.call(
|
|
293
|
+
const a = arguments[i];
|
|
294
|
+
if (a != null)
|
|
295
|
+
for (const r in a)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
|
|
296
297
|
}
|
|
297
298
|
return n;
|
|
298
299
|
}
|
|
299
|
-
function
|
|
300
|
+
function kt(e) {
|
|
300
301
|
for (const t of e)
|
|
301
302
|
switch (t.trigger) {
|
|
302
303
|
case "pageLoad":
|
|
303
|
-
|
|
304
|
+
$e(t);
|
|
304
305
|
break;
|
|
305
306
|
case "scrollInView":
|
|
306
|
-
|
|
307
|
+
Tt(t);
|
|
307
308
|
break;
|
|
308
309
|
}
|
|
309
310
|
}
|
|
310
|
-
function
|
|
311
|
+
function Ne(e) {
|
|
311
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
312
313
|
}
|
|
313
314
|
function We(e, t) {
|
|
314
|
-
const n =
|
|
315
|
-
for (const
|
|
316
|
-
for (const
|
|
317
|
-
|
|
315
|
+
const n = Ct(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
|
|
316
|
+
for (const l of o)
|
|
317
|
+
for (const u of n)
|
|
318
|
+
u in l || (l[u] = i[u]);
|
|
318
319
|
}
|
|
319
|
-
function
|
|
320
|
+
function Ct(e) {
|
|
320
321
|
const t = [];
|
|
321
322
|
for (const n of e.steps)
|
|
322
323
|
for (const i in n.styles)
|
|
323
324
|
t.indexOf(i) === -1 && t.push(i);
|
|
324
325
|
return t;
|
|
325
326
|
}
|
|
326
|
-
function
|
|
327
|
+
function $e(e) {
|
|
327
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
328
329
|
if (!t.length) {
|
|
329
|
-
|
|
330
|
+
Ne(e.elementId || e.id || "");
|
|
330
331
|
return;
|
|
331
332
|
}
|
|
332
333
|
Array.from(t).forEach((n) => {
|
|
333
334
|
We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
|
|
334
|
-
n.style.transition = `all ${e.duration}s ${
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
|
|
335
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
336
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
337
338
|
});
|
|
338
339
|
});
|
|
339
340
|
}
|
|
340
|
-
function
|
|
341
|
+
function Tt(e) {
|
|
341
342
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
342
343
|
if (!t.length) {
|
|
343
|
-
|
|
344
|
+
Ne(e.elementId || e.id || "");
|
|
344
345
|
return;
|
|
345
346
|
}
|
|
346
347
|
Array.from(t).forEach((n) => {
|
|
347
348
|
We(e, n);
|
|
348
|
-
let i = !1,
|
|
349
|
+
let i = !1, a = !1;
|
|
349
350
|
function r() {
|
|
350
|
-
!i &&
|
|
351
|
-
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
352
|
-
|
|
351
|
+
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
|
+
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
353
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
354
|
-
})) : e.repeat && i && !
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
+
const o = St(r, 200, {
|
|
357
358
|
leading: !1
|
|
358
359
|
});
|
|
359
|
-
function
|
|
360
|
-
const g = h.getBoundingClientRect(),
|
|
361
|
-
return g.bottom >
|
|
360
|
+
function l(h) {
|
|
361
|
+
const g = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
|
|
362
|
+
return g.bottom > d && g.top < f - d;
|
|
362
363
|
}
|
|
363
|
-
const
|
|
364
|
+
const u = e.steps[0].styles;
|
|
364
365
|
function c() {
|
|
365
|
-
U(n.style,
|
|
366
|
+
U(n.style, u);
|
|
366
367
|
}
|
|
367
368
|
c(), setTimeout(() => {
|
|
368
|
-
n.style.transition = `all ${e.duration}s ${
|
|
369
|
-
}), document.addEventListener("scroll",
|
|
369
|
+
n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
+
}), document.addEventListener("scroll", o, {
|
|
370
371
|
capture: !0,
|
|
371
372
|
passive: !0
|
|
372
373
|
}), r();
|
|
373
374
|
});
|
|
374
375
|
}
|
|
375
|
-
const
|
|
376
|
+
const De = (e) => Object.entries(e).map(([n, i]) => {
|
|
376
377
|
if (typeof i == "string")
|
|
377
|
-
return `${
|
|
378
|
-
}).filter(
|
|
378
|
+
return `${Q(n)}: ${i};`;
|
|
379
|
+
}).filter(ie), wt = (e) => De(e).join(`
|
|
379
380
|
`), M = ({
|
|
380
381
|
mediaQuery: e,
|
|
381
382
|
className: t,
|
|
382
383
|
styles: n
|
|
383
384
|
}) => {
|
|
384
385
|
const i = `.${t} {
|
|
385
|
-
${
|
|
386
|
+
${wt(n)}
|
|
386
387
|
}`;
|
|
387
388
|
return e ? `${e} {
|
|
388
389
|
${i}
|
|
@@ -393,21 +394,21 @@ function It({
|
|
|
393
394
|
}) {
|
|
394
395
|
return e;
|
|
395
396
|
}
|
|
396
|
-
const
|
|
397
|
+
const Et = ({
|
|
397
398
|
block: e,
|
|
398
399
|
context: t
|
|
399
|
-
}) =>
|
|
400
|
+
}) => Fe(It({
|
|
400
401
|
style: e.style || {},
|
|
401
402
|
context: t,
|
|
402
403
|
block: e
|
|
403
404
|
}));
|
|
404
|
-
function
|
|
405
|
-
switch (
|
|
405
|
+
function Fe(e) {
|
|
406
|
+
switch (F) {
|
|
406
407
|
case "svelte":
|
|
407
408
|
case "vue":
|
|
408
409
|
case "solid":
|
|
409
410
|
case "angular":
|
|
410
|
-
return
|
|
411
|
+
return De(e).join(" ");
|
|
411
412
|
case "qwik":
|
|
412
413
|
case "reactNative":
|
|
413
414
|
case "react":
|
|
@@ -415,7 +416,7 @@ function $e(e) {
|
|
|
415
416
|
return e;
|
|
416
417
|
}
|
|
417
418
|
}
|
|
418
|
-
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0,
|
|
419
|
+
const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Rt = ({
|
|
419
420
|
block: e,
|
|
420
421
|
registeredComponents: t,
|
|
421
422
|
model: n
|
|
@@ -424,15 +425,15 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
424
425
|
const i = (r = e.component) == null ? void 0 : r.name;
|
|
425
426
|
if (!i)
|
|
426
427
|
return null;
|
|
427
|
-
const
|
|
428
|
-
if (!
|
|
428
|
+
const a = t[i];
|
|
429
|
+
if (!a || Le(a, n)) {
|
|
429
430
|
console.warn(`
|
|
430
431
|
Could not find a registered component named "${i}".
|
|
431
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
432
433
|
return;
|
|
433
434
|
} else
|
|
434
|
-
return
|
|
435
|
-
},
|
|
435
|
+
return a;
|
|
436
|
+
}, Pt = ({
|
|
436
437
|
block: e,
|
|
437
438
|
context: t
|
|
438
439
|
}) => {
|
|
@@ -442,30 +443,30 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
442
443
|
} = e;
|
|
443
444
|
if (!(n != null && n.collection))
|
|
444
445
|
return;
|
|
445
|
-
const
|
|
446
|
+
const a = O({
|
|
446
447
|
code: n.collection,
|
|
447
448
|
localState: t.localState,
|
|
448
449
|
rootState: t.rootState,
|
|
449
450
|
rootSetState: t.rootSetState,
|
|
450
451
|
context: t.context
|
|
451
452
|
});
|
|
452
|
-
if (!Array.isArray(
|
|
453
|
+
if (!Array.isArray(a))
|
|
453
454
|
return;
|
|
454
|
-
const r = n.collection.split(".").pop(),
|
|
455
|
-
return
|
|
455
|
+
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
456
|
+
return a.map((u, c) => ({
|
|
456
457
|
context: {
|
|
457
458
|
...t,
|
|
458
459
|
localState: {
|
|
459
460
|
...t.localState,
|
|
460
461
|
$index: c,
|
|
461
|
-
$item:
|
|
462
|
-
[
|
|
463
|
-
[`$${
|
|
462
|
+
$item: u,
|
|
463
|
+
[o]: u,
|
|
464
|
+
[`$${o}Index`]: c
|
|
464
465
|
}
|
|
465
466
|
},
|
|
466
467
|
block: i
|
|
467
468
|
}));
|
|
468
|
-
},
|
|
469
|
+
}, Vt = (e, t) => {
|
|
469
470
|
var n;
|
|
470
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
471
472
|
builderLinkComponent: t
|
|
@@ -473,19 +474,19 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
473
474
|
}, Bt = (e, t, n) => {
|
|
474
475
|
var i;
|
|
475
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
476
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([r,
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Le(o, n)))
|
|
477
478
|
} : {};
|
|
478
|
-
},
|
|
479
|
+
}, At = (e, t) => {
|
|
479
480
|
var n;
|
|
480
481
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
481
482
|
builderBlock: t
|
|
482
483
|
} : {};
|
|
483
|
-
},
|
|
484
|
+
}, Nt = (e, t) => {
|
|
484
485
|
var n;
|
|
485
486
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
486
487
|
builderContext: t
|
|
487
488
|
} : {};
|
|
488
|
-
},
|
|
489
|
+
}, Oe = {
|
|
489
490
|
small: {
|
|
490
491
|
min: 320,
|
|
491
492
|
default: 321,
|
|
@@ -501,11 +502,11 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
501
502
|
default: 991,
|
|
502
503
|
max: 1200
|
|
503
504
|
}
|
|
504
|
-
},
|
|
505
|
+
}, ge = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = ({
|
|
505
506
|
small: e,
|
|
506
507
|
medium: t
|
|
507
508
|
}) => {
|
|
508
|
-
const n = re(
|
|
509
|
+
const n = re(Oe);
|
|
509
510
|
if (!e || !t)
|
|
510
511
|
return n;
|
|
511
512
|
const i = Math.floor(e / 2);
|
|
@@ -514,11 +515,11 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
514
515
|
min: i,
|
|
515
516
|
default: i + 1
|
|
516
517
|
};
|
|
517
|
-
const
|
|
518
|
+
const a = n.small.max + 1;
|
|
518
519
|
n.medium = {
|
|
519
520
|
max: t,
|
|
520
|
-
min:
|
|
521
|
-
default:
|
|
521
|
+
min: a,
|
|
522
|
+
default: a + 1
|
|
522
523
|
};
|
|
523
524
|
const r = n.medium.max + 1;
|
|
524
525
|
return n.large = {
|
|
@@ -528,8 +529,8 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
528
529
|
default: r + 1
|
|
529
530
|
}, n;
|
|
530
531
|
};
|
|
531
|
-
function
|
|
532
|
-
return /* @__PURE__ */
|
|
532
|
+
function H(e) {
|
|
533
|
+
return /* @__PURE__ */ s(
|
|
533
534
|
"style",
|
|
534
535
|
{
|
|
535
536
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -541,56 +542,56 @@ function G(e) {
|
|
|
541
542
|
function Wt(e) {
|
|
542
543
|
function t() {
|
|
543
544
|
const i = e.block;
|
|
544
|
-
return
|
|
545
|
+
return ie(i.hide) ? !i.hide : ie(i.show) ? i.show : !0;
|
|
545
546
|
}
|
|
546
547
|
function n() {
|
|
547
|
-
var
|
|
548
|
-
const i = e.block,
|
|
549
|
-
((
|
|
550
|
-
),
|
|
548
|
+
var v, y, x;
|
|
549
|
+
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Ue(
|
|
550
|
+
((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
|
|
551
|
+
), l = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, c = a == null ? void 0 : a.small, h = i.id;
|
|
551
552
|
if (!h)
|
|
552
553
|
return "";
|
|
553
|
-
const g =
|
|
554
|
+
const g = l ? M({
|
|
554
555
|
className: h,
|
|
555
|
-
styles:
|
|
556
|
-
}) : "",
|
|
556
|
+
styles: l
|
|
557
|
+
}) : "", f = u ? M({
|
|
557
558
|
className: h,
|
|
558
|
-
styles:
|
|
559
|
-
mediaQuery:
|
|
559
|
+
styles: u,
|
|
560
|
+
mediaQuery: ge(
|
|
560
561
|
"medium",
|
|
561
|
-
|
|
562
|
+
o
|
|
562
563
|
)
|
|
563
|
-
}) : "",
|
|
564
|
+
}) : "", k = c ? M({
|
|
564
565
|
className: h,
|
|
565
566
|
styles: c,
|
|
566
|
-
mediaQuery:
|
|
567
|
+
mediaQuery: ge(
|
|
567
568
|
"small",
|
|
568
|
-
|
|
569
|
+
o
|
|
569
570
|
)
|
|
570
|
-
}) : "",
|
|
571
|
-
let
|
|
572
|
-
if (
|
|
573
|
-
const
|
|
574
|
-
|
|
571
|
+
}) : "", d = i.animations && i.animations.find((T) => T.trigger === "hover");
|
|
572
|
+
let b = "";
|
|
573
|
+
if (d) {
|
|
574
|
+
const T = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
|
|
575
|
+
b = M({
|
|
575
576
|
className: `${h}:hover`,
|
|
576
577
|
styles: {
|
|
577
|
-
...
|
|
578
|
-
transition: `all ${
|
|
579
|
-
|
|
578
|
+
...T,
|
|
579
|
+
transition: `all ${d.duration}s ${Q(
|
|
580
|
+
d.easing
|
|
580
581
|
)}`,
|
|
581
|
-
transitionDelay:
|
|
582
|
+
transitionDelay: d.delay ? `${d.delay}s` : "0s"
|
|
582
583
|
}
|
|
583
584
|
}) || "";
|
|
584
585
|
}
|
|
585
586
|
return [
|
|
586
587
|
g,
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
f,
|
|
589
|
+
k,
|
|
590
|
+
b
|
|
590
591
|
].join(" ");
|
|
591
592
|
}
|
|
592
|
-
return /* @__PURE__ */
|
|
593
|
-
|
|
593
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
594
|
+
H,
|
|
594
595
|
{
|
|
595
596
|
id: "builderio-block",
|
|
596
597
|
styles: n(),
|
|
@@ -598,10 +599,10 @@ function Wt(e) {
|
|
|
598
599
|
}
|
|
599
600
|
) }) : null });
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function $t(e) {
|
|
602
603
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
603
604
|
}
|
|
604
|
-
const
|
|
605
|
+
const Dt = (e) => `on${$t(e)}`, Ft = (e, t) => (n) => O({
|
|
605
606
|
code: e,
|
|
606
607
|
context: t.context,
|
|
607
608
|
localState: t.localState,
|
|
@@ -610,24 +611,24 @@ const Ft = (e) => `on${Nt(e)}`, $t = (e, t) => (n) => O({
|
|
|
610
611
|
event: n,
|
|
611
612
|
isExpression: !1
|
|
612
613
|
});
|
|
613
|
-
function
|
|
614
|
+
function _e(e) {
|
|
614
615
|
var i;
|
|
615
616
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
616
|
-
for (const
|
|
617
|
-
if (!n.hasOwnProperty(
|
|
617
|
+
for (const a in n) {
|
|
618
|
+
if (!n.hasOwnProperty(a))
|
|
618
619
|
continue;
|
|
619
|
-
const r = n[
|
|
620
|
-
let
|
|
620
|
+
const r = n[a];
|
|
621
|
+
let o = Dt(a);
|
|
621
622
|
if (e.stripPrefix)
|
|
622
|
-
switch (
|
|
623
|
+
switch (F) {
|
|
623
624
|
case "vue":
|
|
624
|
-
|
|
625
|
+
o = o.replace("v-on:", "");
|
|
625
626
|
break;
|
|
626
627
|
case "svelte":
|
|
627
|
-
|
|
628
|
+
o = o.replace("on:", "");
|
|
628
629
|
break;
|
|
629
630
|
}
|
|
630
|
-
t[
|
|
631
|
+
t[o] = Ft(r, e);
|
|
631
632
|
}
|
|
632
633
|
return t;
|
|
633
634
|
}
|
|
@@ -636,7 +637,7 @@ function Lt({
|
|
|
636
637
|
}) {
|
|
637
638
|
return e;
|
|
638
639
|
}
|
|
639
|
-
const
|
|
640
|
+
const Ot = (e) => ({
|
|
640
641
|
href: e.href
|
|
641
642
|
});
|
|
642
643
|
function ce({
|
|
@@ -645,14 +646,14 @@ function ce({
|
|
|
645
646
|
}) {
|
|
646
647
|
var i;
|
|
647
648
|
const n = {
|
|
648
|
-
...
|
|
649
|
+
...Ot(e),
|
|
649
650
|
...e.properties,
|
|
650
651
|
"builder-id": e.id,
|
|
651
|
-
style:
|
|
652
|
+
style: Et({
|
|
652
653
|
block: e,
|
|
653
654
|
context: t
|
|
654
655
|
}),
|
|
655
|
-
[
|
|
656
|
+
[q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
656
657
|
};
|
|
657
658
|
return Lt({
|
|
658
659
|
properties: n,
|
|
@@ -660,8 +661,8 @@ function ce({
|
|
|
660
661
|
block: e
|
|
661
662
|
});
|
|
662
663
|
}
|
|
663
|
-
function
|
|
664
|
-
return /* @__PURE__ */
|
|
664
|
+
function Ut(e) {
|
|
665
|
+
return /* @__PURE__ */ s(
|
|
665
666
|
le,
|
|
666
667
|
{
|
|
667
668
|
TagName: e.Wrapper,
|
|
@@ -669,7 +670,7 @@ function Ot(e) {
|
|
|
669
670
|
block: e.block,
|
|
670
671
|
context: e.context
|
|
671
672
|
}),
|
|
672
|
-
actionAttributes:
|
|
673
|
+
actionAttributes: _e({
|
|
673
674
|
block: e.block,
|
|
674
675
|
rootState: e.context.rootState,
|
|
675
676
|
rootSetState: e.context.rootSetState,
|
|
@@ -681,18 +682,18 @@ function Ot(e) {
|
|
|
681
682
|
}
|
|
682
683
|
);
|
|
683
684
|
}
|
|
684
|
-
function
|
|
685
|
+
function _t(e) {
|
|
685
686
|
return A(() => {
|
|
686
|
-
}, []), /* @__PURE__ */
|
|
687
|
+
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
687
688
|
}
|
|
688
|
-
function
|
|
689
|
+
function qt(e) {
|
|
689
690
|
function t() {
|
|
690
691
|
return e.includeBlockProps ? {
|
|
691
692
|
...ce({
|
|
692
693
|
block: e.block,
|
|
693
694
|
context: e.context
|
|
694
695
|
}),
|
|
695
|
-
...
|
|
696
|
+
..._e({
|
|
696
697
|
block: e.block,
|
|
697
698
|
rootState: e.context.rootState,
|
|
698
699
|
rootSetState: e.context.rootSetState,
|
|
@@ -701,8 +702,8 @@ function _t(e) {
|
|
|
701
702
|
})
|
|
702
703
|
} : {};
|
|
703
704
|
}
|
|
704
|
-
return /* @__PURE__ */
|
|
705
|
-
|
|
705
|
+
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
706
|
+
_t,
|
|
706
707
|
{
|
|
707
708
|
load: e.Wrapper.load,
|
|
708
709
|
fallback: e.Wrapper.fallback,
|
|
@@ -710,27 +711,27 @@ function _t(e) {
|
|
|
710
711
|
attributes: t(),
|
|
711
712
|
children: e.children
|
|
712
713
|
}
|
|
713
|
-
) }) : /* @__PURE__ */
|
|
714
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
714
715
|
}
|
|
715
716
|
const Ht = ({
|
|
716
717
|
componentOptions: e,
|
|
717
718
|
builderBlock: t,
|
|
718
719
|
context: n,
|
|
719
720
|
componentRef: i,
|
|
720
|
-
includeBlockProps:
|
|
721
|
+
includeBlockProps: a,
|
|
721
722
|
isInteractive: r,
|
|
722
|
-
contextValue:
|
|
723
|
+
contextValue: o
|
|
723
724
|
}) => {
|
|
724
|
-
const
|
|
725
|
+
const l = {
|
|
725
726
|
...e,
|
|
726
727
|
/**
|
|
727
728
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
728
729
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
729
730
|
*/
|
|
730
|
-
...
|
|
731
|
+
...a ? {
|
|
731
732
|
attributes: ce({
|
|
732
733
|
block: t,
|
|
733
|
-
context:
|
|
734
|
+
context: o
|
|
734
735
|
})
|
|
735
736
|
} : {}
|
|
736
737
|
};
|
|
@@ -739,15 +740,15 @@ const Ht = ({
|
|
|
739
740
|
block: t,
|
|
740
741
|
context: n,
|
|
741
742
|
wrapperProps: e,
|
|
742
|
-
includeBlockProps:
|
|
743
|
-
} :
|
|
743
|
+
includeBlockProps: a
|
|
744
|
+
} : l;
|
|
744
745
|
};
|
|
745
|
-
function
|
|
746
|
+
function be(e) {
|
|
746
747
|
var i;
|
|
747
748
|
const [t, n] = E(
|
|
748
|
-
() => e.isInteractive ?
|
|
749
|
+
() => e.isInteractive ? qt : e.componentRef
|
|
749
750
|
);
|
|
750
|
-
return /* @__PURE__ */
|
|
751
|
+
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
751
752
|
t,
|
|
752
753
|
{
|
|
753
754
|
...Ht({
|
|
@@ -760,23 +761,23 @@ function ge(e) {
|
|
|
760
761
|
isInteractive: e.isInteractive,
|
|
761
762
|
contextValue: e.context
|
|
762
763
|
}),
|
|
763
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
764
|
-
|
|
764
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
765
|
+
Y,
|
|
765
766
|
{
|
|
766
|
-
block:
|
|
767
|
+
block: a,
|
|
767
768
|
context: e.context,
|
|
768
769
|
registeredComponents: e.registeredComponents,
|
|
769
770
|
linkComponent: e.linkComponent
|
|
770
771
|
},
|
|
771
|
-
|
|
772
|
+
a.id
|
|
772
773
|
))
|
|
773
774
|
}
|
|
774
775
|
) }) : null });
|
|
775
776
|
}
|
|
776
|
-
function
|
|
777
|
+
function pe(e) {
|
|
777
778
|
const [t, n] = E(() => e.repeatContext);
|
|
778
|
-
return /* @__PURE__ */
|
|
779
|
-
|
|
779
|
+
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
780
|
+
Y,
|
|
780
781
|
{
|
|
781
782
|
block: e.block,
|
|
782
783
|
context: t,
|
|
@@ -785,10 +786,10 @@ function be(e) {
|
|
|
785
786
|
}
|
|
786
787
|
) });
|
|
787
788
|
}
|
|
788
|
-
function
|
|
789
|
-
var h, g,
|
|
789
|
+
function Y(e) {
|
|
790
|
+
var h, g, f, k;
|
|
790
791
|
function t() {
|
|
791
|
-
return
|
|
792
|
+
return Pt({
|
|
792
793
|
block: e.block,
|
|
793
794
|
context: e.context
|
|
794
795
|
});
|
|
@@ -797,51 +798,51 @@ function H(e) {
|
|
|
797
798
|
value: null,
|
|
798
799
|
update: !1
|
|
799
800
|
}));
|
|
800
|
-
function
|
|
801
|
-
var
|
|
802
|
-
if (n.value && !n.update && !
|
|
801
|
+
function a() {
|
|
802
|
+
var b;
|
|
803
|
+
if (n.value && !n.update && !G())
|
|
803
804
|
return n.value;
|
|
804
|
-
const
|
|
805
|
+
const d = (b = e.block.repeat) != null && b.collection ? e.block : xt({
|
|
805
806
|
block: e.block,
|
|
806
807
|
localState: e.context.localState,
|
|
807
808
|
rootState: e.context.rootState,
|
|
808
809
|
rootSetState: e.context.rootSetState,
|
|
809
810
|
context: e.context.context
|
|
810
811
|
});
|
|
811
|
-
return n.value =
|
|
812
|
+
return n.value = d, n.update = !1, d;
|
|
812
813
|
}
|
|
813
814
|
function r() {
|
|
814
|
-
return
|
|
815
|
-
block:
|
|
815
|
+
return Rt({
|
|
816
|
+
block: a(),
|
|
816
817
|
registeredComponents: e.registeredComponents,
|
|
817
818
|
model: e.context.model
|
|
818
819
|
});
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
-
var
|
|
822
|
-
return e.block.tagName === "a" || ((
|
|
821
|
+
function o() {
|
|
822
|
+
var b;
|
|
823
|
+
return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
-
var
|
|
826
|
-
if ((
|
|
827
|
-
return !!((
|
|
828
|
-
const
|
|
829
|
-
return ("show" in
|
|
825
|
+
function l() {
|
|
826
|
+
var v, y;
|
|
827
|
+
if ((v = e.block.repeat) != null && v.collection)
|
|
828
|
+
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
829
|
+
const d = "hide" in a() ? a().hide : !1;
|
|
830
|
+
return ("show" in a() ? a().show : !0) && !d;
|
|
830
831
|
}
|
|
831
|
-
function
|
|
832
|
-
var
|
|
833
|
-
return !((
|
|
832
|
+
function u() {
|
|
833
|
+
var b, v;
|
|
834
|
+
return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (v = a().children) != null ? v : [] : [];
|
|
834
835
|
}
|
|
835
836
|
function c() {
|
|
836
|
-
var
|
|
837
|
+
var d, b, v, y;
|
|
837
838
|
return {
|
|
838
|
-
blockChildren: (
|
|
839
|
-
componentRef: (
|
|
839
|
+
blockChildren: (d = a().children) != null ? d : [],
|
|
840
|
+
componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
|
|
840
841
|
componentOptions: {
|
|
841
|
-
...dt(
|
|
842
|
-
...
|
|
843
|
-
...
|
|
844
|
-
...
|
|
842
|
+
...dt(a(), e.context),
|
|
843
|
+
...At(r(), a()),
|
|
844
|
+
...Nt(r(), e.context),
|
|
845
|
+
...Vt(r(), e.linkComponent),
|
|
845
846
|
...Bt(
|
|
846
847
|
r(),
|
|
847
848
|
e.registeredComponents,
|
|
@@ -851,34 +852,34 @@ function H(e) {
|
|
|
851
852
|
context: e.context,
|
|
852
853
|
linkComponent: e.linkComponent,
|
|
853
854
|
registeredComponents: e.registeredComponents,
|
|
854
|
-
builderBlock:
|
|
855
|
-
includeBlockProps: ((
|
|
856
|
-
isInteractive: !((
|
|
855
|
+
builderBlock: a(),
|
|
856
|
+
includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
|
|
857
|
+
isInteractive: !((y = r == null ? void 0 : r()) != null && y.isRSC && F === "rsc")
|
|
857
858
|
};
|
|
858
859
|
}
|
|
859
860
|
return A(() => {
|
|
860
|
-
const
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
...
|
|
864
|
-
elementId:
|
|
861
|
+
const d = a().id, b = a().animations;
|
|
862
|
+
b && d && kt(
|
|
863
|
+
b.map((v) => ({
|
|
864
|
+
...v,
|
|
865
|
+
elementId: d
|
|
865
866
|
}))
|
|
866
867
|
);
|
|
867
868
|
}, []), A(() => {
|
|
868
869
|
n.update = !0;
|
|
869
|
-
}), /* @__PURE__ */
|
|
870
|
-
/* @__PURE__ */
|
|
871
|
-
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */
|
|
872
|
-
|
|
870
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
|
|
871
|
+
/* @__PURE__ */ s(Wt, { block: a(), context: e.context }),
|
|
872
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((d, b) => /* @__PURE__ */ s(
|
|
873
|
+
pe,
|
|
873
874
|
{
|
|
874
|
-
repeatContext:
|
|
875
|
-
block:
|
|
875
|
+
repeatContext: d.context,
|
|
876
|
+
block: d.block,
|
|
876
877
|
registeredComponents: e.registeredComponents,
|
|
877
878
|
linkComponent: e.linkComponent
|
|
878
879
|
},
|
|
879
|
-
|
|
880
|
-
)) }) : /* @__PURE__ */
|
|
881
|
-
|
|
880
|
+
b
|
|
881
|
+
)) }) : /* @__PURE__ */ s(
|
|
882
|
+
be,
|
|
882
883
|
{
|
|
883
884
|
componentRef: c().componentRef,
|
|
884
885
|
componentOptions: c().componentOptions,
|
|
@@ -890,24 +891,24 @@ function H(e) {
|
|
|
890
891
|
includeBlockProps: c().includeBlockProps,
|
|
891
892
|
isInteractive: c().isInteractive
|
|
892
893
|
}
|
|
893
|
-
) : /* @__PURE__ */
|
|
894
|
-
|
|
894
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (f = t()) == null ? void 0 : f.map((d, b) => /* @__PURE__ */ s(
|
|
895
|
+
pe,
|
|
895
896
|
{
|
|
896
|
-
repeatContext:
|
|
897
|
-
block:
|
|
897
|
+
repeatContext: d.context,
|
|
898
|
+
block: d.block,
|
|
898
899
|
registeredComponents: e.registeredComponents,
|
|
899
900
|
linkComponent: e.linkComponent
|
|
900
901
|
},
|
|
901
|
-
|
|
902
|
-
)) }) : /* @__PURE__ */
|
|
903
|
-
|
|
902
|
+
b
|
|
903
|
+
)) }) : /* @__PURE__ */ V(
|
|
904
|
+
Ut,
|
|
904
905
|
{
|
|
905
|
-
Wrapper:
|
|
906
|
-
block:
|
|
906
|
+
Wrapper: o(),
|
|
907
|
+
block: a(),
|
|
907
908
|
context: e.context,
|
|
908
909
|
children: [
|
|
909
|
-
/* @__PURE__ */
|
|
910
|
-
|
|
910
|
+
/* @__PURE__ */ s(
|
|
911
|
+
be,
|
|
911
912
|
{
|
|
912
913
|
componentRef: c().componentRef,
|
|
913
914
|
componentOptions: c().componentOptions,
|
|
@@ -920,40 +921,40 @@ function H(e) {
|
|
|
920
921
|
isInteractive: c().isInteractive
|
|
921
922
|
}
|
|
922
923
|
),
|
|
923
|
-
(g =
|
|
924
|
-
|
|
924
|
+
(g = u()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
|
|
925
|
+
Y,
|
|
925
926
|
{
|
|
926
|
-
block:
|
|
927
|
+
block: d,
|
|
927
928
|
registeredComponents: e.registeredComponents,
|
|
928
929
|
linkComponent: e.linkComponent,
|
|
929
930
|
context: e.context
|
|
930
931
|
},
|
|
931
|
-
|
|
932
|
+
d.id
|
|
932
933
|
))
|
|
933
934
|
]
|
|
934
935
|
}
|
|
935
936
|
) })
|
|
936
937
|
] }) : null });
|
|
937
938
|
}
|
|
938
|
-
function
|
|
939
|
+
function jt(e) {
|
|
939
940
|
const t = D(null);
|
|
940
941
|
function n() {
|
|
941
|
-
var
|
|
942
|
+
var o;
|
|
942
943
|
return [
|
|
943
944
|
"builder-blocks",
|
|
944
|
-
(
|
|
945
|
+
(o = e.blocks) != null && o.length ? "" : "no-blocks",
|
|
945
946
|
e.classNameProp
|
|
946
947
|
].filter(Boolean).join(" ");
|
|
947
948
|
}
|
|
948
949
|
function i() {
|
|
949
950
|
if (!e.path)
|
|
950
951
|
return;
|
|
951
|
-
const
|
|
952
|
-
return e.path.startsWith(
|
|
952
|
+
const o = "this.", l = "component.options.";
|
|
953
|
+
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
953
954
|
}
|
|
954
|
-
function
|
|
955
|
-
var
|
|
956
|
-
|
|
955
|
+
function a() {
|
|
956
|
+
var o, l;
|
|
957
|
+
W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
957
958
|
{
|
|
958
959
|
type: "builder.clickEmptyBlocks",
|
|
959
960
|
data: {
|
|
@@ -965,8 +966,8 @@ function Mt(e) {
|
|
|
965
966
|
));
|
|
966
967
|
}
|
|
967
968
|
function r() {
|
|
968
|
-
var
|
|
969
|
-
|
|
969
|
+
var o, l;
|
|
970
|
+
W() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
970
971
|
{
|
|
971
972
|
type: "builder.hoverEmptyBlocks",
|
|
972
973
|
data: {
|
|
@@ -978,34 +979,34 @@ function Mt(e) {
|
|
|
978
979
|
));
|
|
979
980
|
}
|
|
980
981
|
return A(() => {
|
|
981
|
-
}, []), /* @__PURE__ */
|
|
982
|
-
/* @__PURE__ */
|
|
982
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
983
|
+
/* @__PURE__ */ s(
|
|
983
984
|
e.BlocksWrapper,
|
|
984
985
|
{
|
|
985
986
|
ref: t,
|
|
986
|
-
className: n() + " props-blocks-wrapper-
|
|
987
|
+
className: n() + " props-blocks-wrapper-2936bbfc",
|
|
987
988
|
"builder-path": i(),
|
|
988
989
|
"builder-parent-id": e.parent,
|
|
989
990
|
style: e.styleProp,
|
|
990
|
-
onClick: (
|
|
991
|
-
onMouseEnter: (
|
|
992
|
-
onKeyPress: (
|
|
991
|
+
onClick: (o) => a(),
|
|
992
|
+
onMouseEnter: (o) => r(),
|
|
993
|
+
onKeyPress: (o) => a(),
|
|
993
994
|
...e.BlocksWrapperProps,
|
|
994
995
|
children: e.children
|
|
995
996
|
}
|
|
996
997
|
),
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-2936bbfc {
|
|
998
999
|
display: flex;
|
|
999
1000
|
flex-direction: column;
|
|
1000
1001
|
align-items: stretch;
|
|
1001
1002
|
}` })
|
|
1002
1003
|
] });
|
|
1003
1004
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var i,
|
|
1006
|
-
const t =
|
|
1007
|
-
return /* @__PURE__ */
|
|
1008
|
-
|
|
1005
|
+
function $(e) {
|
|
1006
|
+
var i, a, r;
|
|
1007
|
+
const t = he(se), n = he(Ve);
|
|
1008
|
+
return /* @__PURE__ */ s(
|
|
1009
|
+
jt,
|
|
1009
1010
|
{
|
|
1010
1011
|
blocks: e.blocks,
|
|
1011
1012
|
parent: e.parent,
|
|
@@ -1013,23 +1014,23 @@ function F(e) {
|
|
|
1013
1014
|
styleProp: e.styleProp,
|
|
1014
1015
|
classNameProp: e.className,
|
|
1015
1016
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1016
|
-
BlocksWrapperProps: ((
|
|
1017
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1018
|
-
|
|
1017
|
+
BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1018
|
+
children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
|
|
1019
|
+
Y,
|
|
1019
1020
|
{
|
|
1020
|
-
block:
|
|
1021
|
+
block: o,
|
|
1021
1022
|
linkComponent: e.linkComponent,
|
|
1022
1023
|
context: e.context || t,
|
|
1023
1024
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1024
1025
|
},
|
|
1025
|
-
|
|
1026
|
+
o.id
|
|
1026
1027
|
)) }) : null
|
|
1027
1028
|
}
|
|
1028
1029
|
);
|
|
1029
1030
|
}
|
|
1030
|
-
const
|
|
1031
|
-
function
|
|
1032
|
-
var
|
|
1031
|
+
const Mt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1032
|
+
function zt(e) {
|
|
1033
|
+
var b, v;
|
|
1033
1034
|
function t() {
|
|
1034
1035
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1035
1036
|
}
|
|
@@ -1039,28 +1040,28 @@ function qt(e) {
|
|
|
1039
1040
|
function i() {
|
|
1040
1041
|
return e.stackColumnsAt || "tablet";
|
|
1041
1042
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return
|
|
1043
|
+
function a(y) {
|
|
1044
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1044
1045
|
}
|
|
1045
|
-
function r(
|
|
1046
|
-
var
|
|
1047
|
-
return ((
|
|
1046
|
+
function r(y) {
|
|
1047
|
+
var x;
|
|
1048
|
+
return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
|
|
1048
1049
|
}
|
|
1049
|
-
function
|
|
1050
|
-
const
|
|
1051
|
-
return `calc(${
|
|
1050
|
+
function o(y) {
|
|
1051
|
+
const x = r(y), T = t() * (n().length - 1) * (x / 100);
|
|
1052
|
+
return `calc(${x}% - ${T}px)`;
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
-
stackedStyle:
|
|
1055
|
-
desktopStyle:
|
|
1054
|
+
function l({
|
|
1055
|
+
stackedStyle: y,
|
|
1056
|
+
desktopStyle: x
|
|
1056
1057
|
}) {
|
|
1057
|
-
return i() === "tablet" ?
|
|
1058
|
+
return i() === "tablet" ? y : x;
|
|
1058
1059
|
}
|
|
1059
|
-
function
|
|
1060
|
-
stackedStyle:
|
|
1061
|
-
desktopStyle:
|
|
1060
|
+
function u({
|
|
1061
|
+
stackedStyle: y,
|
|
1062
|
+
desktopStyle: x
|
|
1062
1063
|
}) {
|
|
1063
|
-
return i() === "never" ?
|
|
1064
|
+
return i() === "never" ? x : y;
|
|
1064
1065
|
}
|
|
1065
1066
|
function c() {
|
|
1066
1067
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1068,179 +1069,179 @@ function qt(e) {
|
|
|
1068
1069
|
function h() {
|
|
1069
1070
|
return {
|
|
1070
1071
|
"--flex-dir": c(),
|
|
1071
|
-
"--flex-dir-tablet":
|
|
1072
|
+
"--flex-dir-tablet": l({
|
|
1072
1073
|
stackedStyle: c(),
|
|
1073
1074
|
desktopStyle: "row"
|
|
1074
1075
|
})
|
|
1075
1076
|
};
|
|
1076
1077
|
}
|
|
1077
|
-
function g(
|
|
1078
|
-
const
|
|
1078
|
+
function g(y) {
|
|
1079
|
+
const x = y === 0 ? 0 : t(), T = o(y), P = `${x}px`, I = "100%", S = 0;
|
|
1079
1080
|
return {
|
|
1080
1081
|
...{
|
|
1081
1082
|
display: "flex",
|
|
1082
1083
|
flexDirection: "column",
|
|
1083
1084
|
alignItems: "stretch"
|
|
1084
1085
|
},
|
|
1085
|
-
width:
|
|
1086
|
-
["marginLeft"]:
|
|
1087
|
-
"--column-width-mobile":
|
|
1088
|
-
stackedStyle:
|
|
1089
|
-
desktopStyle:
|
|
1086
|
+
width: T,
|
|
1087
|
+
["marginLeft"]: P,
|
|
1088
|
+
"--column-width-mobile": u({
|
|
1089
|
+
stackedStyle: I,
|
|
1090
|
+
desktopStyle: T
|
|
1090
1091
|
}),
|
|
1091
|
-
"--column-margin-left-mobile":
|
|
1092
|
-
stackedStyle:
|
|
1093
|
-
desktopStyle:
|
|
1092
|
+
"--column-margin-left-mobile": u({
|
|
1093
|
+
stackedStyle: S,
|
|
1094
|
+
desktopStyle: P
|
|
1094
1095
|
}),
|
|
1095
|
-
"--column-width-tablet":
|
|
1096
|
-
stackedStyle:
|
|
1097
|
-
desktopStyle:
|
|
1096
|
+
"--column-width-tablet": l({
|
|
1097
|
+
stackedStyle: I,
|
|
1098
|
+
desktopStyle: T
|
|
1098
1099
|
}),
|
|
1099
|
-
"--column-margin-left-tablet":
|
|
1100
|
-
stackedStyle:
|
|
1101
|
-
desktopStyle:
|
|
1100
|
+
"--column-margin-left-tablet": l({
|
|
1101
|
+
stackedStyle: S,
|
|
1102
|
+
desktopStyle: P
|
|
1102
1103
|
})
|
|
1103
1104
|
};
|
|
1104
1105
|
}
|
|
1105
|
-
function
|
|
1106
|
-
var
|
|
1107
|
-
return
|
|
1108
|
-
((
|
|
1109
|
-
)[
|
|
1106
|
+
function f(y) {
|
|
1107
|
+
var T, P;
|
|
1108
|
+
return Ue(
|
|
1109
|
+
((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1110
|
+
)[y].max;
|
|
1110
1111
|
}
|
|
1111
|
-
function
|
|
1112
|
-
const
|
|
1112
|
+
function k() {
|
|
1113
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1113
1114
|
return `
|
|
1114
|
-
@media (max-width: ${
|
|
1115
|
+
@media (max-width: ${f("medium")}px) {
|
|
1115
1116
|
.${e.builderBlock.id}-breakpoints {
|
|
1116
1117
|
flex-direction: var(--flex-dir-tablet);
|
|
1117
1118
|
align-items: stretch;
|
|
1118
1119
|
}
|
|
1119
1120
|
|
|
1120
|
-
${
|
|
1121
|
+
${y} {
|
|
1121
1122
|
width: var(--column-width-tablet) !important;
|
|
1122
1123
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1123
1124
|
}
|
|
1124
1125
|
}
|
|
1125
1126
|
|
|
1126
|
-
@media (max-width: ${
|
|
1127
|
+
@media (max-width: ${f("small")}px) {
|
|
1127
1128
|
.${e.builderBlock.id}-breakpoints {
|
|
1128
1129
|
flex-direction: var(--flex-dir);
|
|
1129
1130
|
align-items: stretch;
|
|
1130
1131
|
}
|
|
1131
1132
|
|
|
1132
|
-
${
|
|
1133
|
+
${y} {
|
|
1133
1134
|
width: var(--column-width-mobile) !important;
|
|
1134
1135
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1135
1136
|
}
|
|
1136
1137
|
},
|
|
1137
1138
|
`;
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function d(y, x) {
|
|
1140
1141
|
return {
|
|
1141
|
-
...
|
|
1142
|
-
href:
|
|
1142
|
+
...y.link ? {
|
|
1143
|
+
href: y.link
|
|
1143
1144
|
} : {},
|
|
1144
|
-
[
|
|
1145
|
-
style:
|
|
1145
|
+
[q()]: "builder-column",
|
|
1146
|
+
style: Fe(g(x))
|
|
1146
1147
|
};
|
|
1147
1148
|
}
|
|
1148
|
-
return /* @__PURE__ */
|
|
1149
|
-
/* @__PURE__ */
|
|
1149
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1150
|
+
/* @__PURE__ */ V(
|
|
1150
1151
|
"div",
|
|
1151
1152
|
{
|
|
1152
|
-
className:
|
|
1153
|
+
className: Mt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
|
|
1153
1154
|
style: h(),
|
|
1154
1155
|
children: [
|
|
1155
|
-
/* @__PURE__ */
|
|
1156
|
-
|
|
1156
|
+
/* @__PURE__ */ s(
|
|
1157
|
+
H,
|
|
1157
1158
|
{
|
|
1158
1159
|
id: "builderio-columns",
|
|
1159
|
-
styles:
|
|
1160
|
+
styles: k(),
|
|
1160
1161
|
nonce: e.builderContext.nonce
|
|
1161
1162
|
}
|
|
1162
1163
|
),
|
|
1163
|
-
(
|
|
1164
|
+
(v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
|
|
1164
1165
|
le,
|
|
1165
1166
|
{
|
|
1166
|
-
TagName:
|
|
1167
|
+
TagName: a(y),
|
|
1167
1168
|
actionAttributes: {},
|
|
1168
|
-
attributes:
|
|
1169
|
-
children: /* @__PURE__ */
|
|
1170
|
-
|
|
1169
|
+
attributes: d(y, x),
|
|
1170
|
+
children: /* @__PURE__ */ s(
|
|
1171
|
+
$,
|
|
1171
1172
|
{
|
|
1172
|
-
path: `columns.${
|
|
1173
|
+
path: `columns.${x}.blocks`,
|
|
1173
1174
|
parent: e.builderBlock.id,
|
|
1174
|
-
styleProp: {
|
|
1175
|
-
flexGrow: "1"
|
|
1176
|
-
},
|
|
1177
1175
|
context: e.builderContext,
|
|
1178
1176
|
registeredComponents: e.builderComponents,
|
|
1179
1177
|
linkComponent: e.builderLinkComponent,
|
|
1180
|
-
blocks:
|
|
1178
|
+
blocks: y.blocks,
|
|
1179
|
+
styleProp: {
|
|
1180
|
+
flexGrow: "1"
|
|
1181
|
+
}
|
|
1181
1182
|
}
|
|
1182
1183
|
)
|
|
1183
1184
|
},
|
|
1184
|
-
|
|
1185
|
+
x
|
|
1185
1186
|
))
|
|
1186
1187
|
]
|
|
1187
1188
|
}
|
|
1188
1189
|
),
|
|
1189
|
-
/* @__PURE__ */
|
|
1190
|
+
/* @__PURE__ */ s("style", { children: `.div-a6f3faac {
|
|
1190
1191
|
display: flex;
|
|
1191
1192
|
line-height: normal;
|
|
1192
1193
|
}` })
|
|
1193
1194
|
] });
|
|
1194
1195
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return /* @__PURE__ */
|
|
1196
|
+
function Kt(e) {
|
|
1197
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1197
1198
|
}
|
|
1198
|
-
function
|
|
1199
|
+
function ye(e) {
|
|
1199
1200
|
return e.replace(/http(s)?:/, "");
|
|
1200
1201
|
}
|
|
1201
|
-
function
|
|
1202
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1203
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1202
|
+
function Jt(e = "", t, n) {
|
|
1203
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1204
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1204
1205
|
}
|
|
1205
|
-
function
|
|
1206
|
+
function Gt(e, t) {
|
|
1206
1207
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1207
1208
|
return e;
|
|
1208
1209
|
if (t === "master")
|
|
1209
|
-
return
|
|
1210
|
+
return ye(e);
|
|
1210
1211
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1211
1212
|
if (n) {
|
|
1212
|
-
const i = e.split(n[0]),
|
|
1213
|
-
return
|
|
1213
|
+
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1214
|
+
return ye(`${i[0]}_${r}${a}`);
|
|
1214
1215
|
}
|
|
1215
1216
|
return null;
|
|
1216
1217
|
}
|
|
1217
|
-
function
|
|
1218
|
+
function X(e) {
|
|
1218
1219
|
if (!e)
|
|
1219
1220
|
return e;
|
|
1220
1221
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1221
1222
|
if (e.match(/builder\.io/)) {
|
|
1222
1223
|
let n = e;
|
|
1223
1224
|
const i = Number(e.split("?width=")[1]);
|
|
1224
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1225
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Jt(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1225
1226
|
}
|
|
1226
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1227
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1227
1228
|
}
|
|
1228
|
-
function
|
|
1229
|
-
var
|
|
1229
|
+
function Qt(e) {
|
|
1230
|
+
var a, r, o, l, u, c;
|
|
1230
1231
|
function t() {
|
|
1231
|
-
var
|
|
1232
|
+
var f;
|
|
1232
1233
|
const g = e.image || e.src;
|
|
1233
1234
|
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1234
1235
|
// images, otherwise you can supply this prop manually
|
|
1235
1236
|
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1236
1237
|
return e.srcset;
|
|
1237
1238
|
if (!e.noWebp) {
|
|
1238
|
-
if (e.srcset && ((
|
|
1239
|
+
if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
|
|
1239
1240
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1240
|
-
return console.debug("Removed given srcset"),
|
|
1241
|
+
return console.debug("Removed given srcset"), X(g);
|
|
1241
1242
|
} else if (e.image && !e.srcset)
|
|
1242
|
-
return
|
|
1243
|
-
return
|
|
1243
|
+
return X(g);
|
|
1244
|
+
return X(g);
|
|
1244
1245
|
}
|
|
1245
1246
|
}
|
|
1246
1247
|
function n() {
|
|
@@ -1257,12 +1258,11 @@ function Gt(e) {
|
|
|
1257
1258
|
};
|
|
1258
1259
|
return e.aspectRatio ? h : void 0;
|
|
1259
1260
|
}
|
|
1260
|
-
return
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
/* @__PURE__ */ l(
|
|
1261
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
1262
|
+
/* @__PURE__ */ V(R, { children: [
|
|
1263
|
+
/* @__PURE__ */ V("picture", { children: [
|
|
1264
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1265
|
+
/* @__PURE__ */ s(
|
|
1266
1266
|
"img",
|
|
1267
1267
|
{
|
|
1268
1268
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1274,33 +1274,33 @@ function Gt(e) {
|
|
|
1274
1274
|
objectFit: e.backgroundSize || "cover",
|
|
1275
1275
|
...i()
|
|
1276
1276
|
},
|
|
1277
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1277
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-9dac2184",
|
|
1278
1278
|
src: e.image,
|
|
1279
1279
|
srcSet: t(),
|
|
1280
1280
|
sizes: e.sizes
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] }),
|
|
1284
|
-
e.aspectRatio && !((r = (
|
|
1284
|
+
e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1285
1285
|
"div",
|
|
1286
1286
|
{
|
|
1287
|
-
className: "builder-image-sizer div-
|
|
1287
|
+
className: "builder-image-sizer div-9dac2184",
|
|
1288
1288
|
style: {
|
|
1289
1289
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1290
1290
|
}
|
|
1291
1291
|
}
|
|
1292
1292
|
) : null,
|
|
1293
|
-
(
|
|
1294
|
-
!e.fitContent && ((c = (
|
|
1293
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1294
|
+
!e.fitContent && ((c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1295
1295
|
] }),
|
|
1296
|
-
/* @__PURE__ */
|
|
1296
|
+
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1297
1297
|
opacity: 1;
|
|
1298
1298
|
transition: opacity 0.2s ease-in-out;
|
|
1299
|
-
}.div-
|
|
1299
|
+
}.div-9dac2184 {
|
|
1300
1300
|
width: 100%;
|
|
1301
1301
|
pointer-events: none;
|
|
1302
1302
|
font-size: 0;
|
|
1303
|
-
}.div-
|
|
1303
|
+
}.div-9dac2184-2 {
|
|
1304
1304
|
display: flex;
|
|
1305
1305
|
flex-direction: column;
|
|
1306
1306
|
align-items: stretch;
|
|
@@ -1313,7 +1313,7 @@ function Gt(e) {
|
|
|
1313
1313
|
] });
|
|
1314
1314
|
}
|
|
1315
1315
|
function Yt(e) {
|
|
1316
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ s(
|
|
1317
1317
|
"section",
|
|
1318
1318
|
{
|
|
1319
1319
|
...e.attributes,
|
|
@@ -1333,7 +1333,7 @@ function Yt(e) {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
);
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1336
|
+
const Z = {
|
|
1337
1337
|
"@type": "@builder.io/sdk:Element",
|
|
1338
1338
|
layerName: "Accordion item title",
|
|
1339
1339
|
responsiveStyles: {
|
|
@@ -1362,7 +1362,7 @@ const Q = {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
1364
|
}]
|
|
1365
|
-
},
|
|
1365
|
+
}, ee = {
|
|
1366
1366
|
"@type": "@builder.io/sdk:Element",
|
|
1367
1367
|
layerName: "Accordion item detail",
|
|
1368
1368
|
responsiveStyles: {
|
|
@@ -1393,7 +1393,7 @@ const Q = {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
1395
|
}]
|
|
1396
|
-
},
|
|
1396
|
+
}, Xt = {
|
|
1397
1397
|
name: "Builder:Accordion",
|
|
1398
1398
|
canHaveChildren: !0,
|
|
1399
1399
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1410,19 +1410,19 @@ const Q = {
|
|
|
1410
1410
|
name: "title",
|
|
1411
1411
|
type: "uiBlocks",
|
|
1412
1412
|
hideFromUI: !0,
|
|
1413
|
-
defaultValue: [
|
|
1413
|
+
defaultValue: [Z]
|
|
1414
1414
|
}, {
|
|
1415
1415
|
name: "detail",
|
|
1416
1416
|
type: "uiBlocks",
|
|
1417
1417
|
hideFromUI: !0,
|
|
1418
|
-
defaultValue: [
|
|
1418
|
+
defaultValue: [ee]
|
|
1419
1419
|
}],
|
|
1420
1420
|
defaultValue: [{
|
|
1421
|
-
title: [
|
|
1422
|
-
detail: [
|
|
1421
|
+
title: [Z],
|
|
1422
|
+
detail: [ee]
|
|
1423
1423
|
}, {
|
|
1424
|
-
title: [
|
|
1425
|
-
detail: [
|
|
1424
|
+
title: [Z],
|
|
1425
|
+
detail: [ee]
|
|
1426
1426
|
}],
|
|
1427
1427
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1428
1428
|
}, {
|
|
@@ -1457,14 +1457,14 @@ const Q = {
|
|
|
1457
1457
|
builderComponents: !0,
|
|
1458
1458
|
builderLinkComponent: !0
|
|
1459
1459
|
}
|
|
1460
|
-
},
|
|
1461
|
-
function
|
|
1460
|
+
}, ve = (e) => e.toString();
|
|
1461
|
+
function Zt(e) {
|
|
1462
1462
|
var g;
|
|
1463
1463
|
const [t, n] = E(() => []);
|
|
1464
1464
|
function i() {
|
|
1465
1465
|
return !!(e.grid || e.oneAtATime);
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function a() {
|
|
1468
1468
|
return {
|
|
1469
1469
|
display: "flex",
|
|
1470
1470
|
alignItems: "stretch",
|
|
@@ -1477,7 +1477,7 @@ function Xt(e) {
|
|
|
1477
1477
|
};
|
|
1478
1478
|
}
|
|
1479
1479
|
function r() {
|
|
1480
|
-
const
|
|
1480
|
+
const k = {
|
|
1481
1481
|
...{
|
|
1482
1482
|
display: "flex",
|
|
1483
1483
|
flexDirection: "column"
|
|
@@ -1486,75 +1486,75 @@ function Xt(e) {
|
|
|
1486
1486
|
cursor: "pointer"
|
|
1487
1487
|
};
|
|
1488
1488
|
return Object.fromEntries(
|
|
1489
|
-
Object.entries(
|
|
1489
|
+
Object.entries(k).filter(([d, b]) => b !== void 0)
|
|
1490
1490
|
);
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1493
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1492
|
+
function o(f) {
|
|
1493
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1496
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1495
|
+
function l(f) {
|
|
1496
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1499
|
-
let
|
|
1498
|
+
function u() {
|
|
1499
|
+
let f = null;
|
|
1500
1500
|
if (e.grid && t.length && document) {
|
|
1501
|
-
const
|
|
1502
|
-
let
|
|
1503
|
-
`.builder-accordion-title[data-index="${
|
|
1501
|
+
const d = t[0];
|
|
1502
|
+
let v = document.querySelector(
|
|
1503
|
+
`.builder-accordion-title[data-index="${d}"]`
|
|
1504
1504
|
);
|
|
1505
|
-
if (
|
|
1506
|
-
let
|
|
1507
|
-
for (;
|
|
1508
|
-
if (
|
|
1509
|
-
if (
|
|
1505
|
+
if (f = d, v) {
|
|
1506
|
+
let y = v.getBoundingClientRect();
|
|
1507
|
+
for (; v = v && v.nextElementSibling; )
|
|
1508
|
+
if (v) {
|
|
1509
|
+
if (v.classList.contains("builder-accordion-detail"))
|
|
1510
1510
|
continue;
|
|
1511
|
-
const
|
|
1512
|
-
if (
|
|
1513
|
-
const
|
|
1514
|
-
|
|
1511
|
+
const x = v.getBoundingClientRect();
|
|
1512
|
+
if (x.left > y.left) {
|
|
1513
|
+
const T = parseInt(
|
|
1514
|
+
v.getAttribute("data-index") || "",
|
|
1515
1515
|
10
|
|
1516
1516
|
);
|
|
1517
|
-
isNaN(
|
|
1517
|
+
isNaN(T) || (y = x, f = T);
|
|
1518
1518
|
} else
|
|
1519
1519
|
break;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
|
-
return typeof
|
|
1523
|
+
return typeof f == "number" && (f = f + 1), f;
|
|
1524
1524
|
}
|
|
1525
1525
|
function c() {
|
|
1526
|
-
const
|
|
1527
|
-
order: typeof
|
|
1526
|
+
const f = {
|
|
1527
|
+
order: typeof u() == "number" ? u() : void 0,
|
|
1528
1528
|
...e.grid && {
|
|
1529
1529
|
width: "100%"
|
|
1530
1530
|
}
|
|
1531
1531
|
};
|
|
1532
1532
|
return Object.fromEntries(
|
|
1533
|
-
Object.entries(
|
|
1533
|
+
Object.entries(f).filter(([k, d]) => d !== void 0)
|
|
1534
1534
|
);
|
|
1535
1535
|
}
|
|
1536
|
-
function h(
|
|
1537
|
-
t.includes(
|
|
1536
|
+
function h(f) {
|
|
1537
|
+
t.includes(f) ? n(i() ? [] : t.filter((k) => k !== f)) : n(i() ? [f] : t.concat(f));
|
|
1538
1538
|
}
|
|
1539
|
-
return /* @__PURE__ */
|
|
1540
|
-
/* @__PURE__ */
|
|
1539
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((f, k) => /* @__PURE__ */ V(Qe.Fragment, { children: [
|
|
1540
|
+
/* @__PURE__ */ s(
|
|
1541
1541
|
"div",
|
|
1542
1542
|
{
|
|
1543
|
-
className:
|
|
1543
|
+
className: o(k),
|
|
1544
1544
|
style: {
|
|
1545
1545
|
...r(),
|
|
1546
1546
|
...e.grid && {
|
|
1547
1547
|
width: e.gridRowWidth,
|
|
1548
|
-
order:
|
|
1548
|
+
order: u() !== null ? ve(k) : ve(k + 1)
|
|
1549
1549
|
}
|
|
1550
1550
|
},
|
|
1551
|
-
"data-index":
|
|
1552
|
-
onClick: (
|
|
1553
|
-
children: /* @__PURE__ */
|
|
1554
|
-
|
|
1551
|
+
"data-index": k,
|
|
1552
|
+
onClick: (d) => h(k),
|
|
1553
|
+
children: /* @__PURE__ */ s(
|
|
1554
|
+
$,
|
|
1555
1555
|
{
|
|
1556
|
-
blocks:
|
|
1557
|
-
path: `items.${
|
|
1556
|
+
blocks: f.title,
|
|
1557
|
+
path: `items.${k}.title`,
|
|
1558
1558
|
parent: e.builderBlock.id,
|
|
1559
1559
|
context: e.builderContext,
|
|
1560
1560
|
registeredComponents: e.builderComponents,
|
|
@@ -1563,16 +1563,16 @@ function Xt(e) {
|
|
|
1563
1563
|
)
|
|
1564
1564
|
}
|
|
1565
1565
|
),
|
|
1566
|
-
t.includes(
|
|
1566
|
+
t.includes(k) ? /* @__PURE__ */ s(
|
|
1567
1567
|
"div",
|
|
1568
1568
|
{
|
|
1569
|
-
className:
|
|
1569
|
+
className: l(k),
|
|
1570
1570
|
style: c(),
|
|
1571
|
-
children: /* @__PURE__ */
|
|
1572
|
-
|
|
1571
|
+
children: /* @__PURE__ */ s(
|
|
1572
|
+
$,
|
|
1573
1573
|
{
|
|
1574
|
-
blocks:
|
|
1575
|
-
path: `items.${
|
|
1574
|
+
blocks: f.detail,
|
|
1575
|
+
path: `items.${k}.detail`,
|
|
1576
1576
|
parent: e.builderBlock.id,
|
|
1577
1577
|
context: e.builderContext,
|
|
1578
1578
|
registeredComponents: e.builderComponents,
|
|
@@ -1581,9 +1581,9 @@ function Xt(e) {
|
|
|
1581
1581
|
)
|
|
1582
1582
|
}
|
|
1583
1583
|
) : null
|
|
1584
|
-
] },
|
|
1584
|
+
] }, k)) });
|
|
1585
1585
|
}
|
|
1586
|
-
const
|
|
1586
|
+
const en = {
|
|
1587
1587
|
name: "Core:Button",
|
|
1588
1588
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1589
1589
|
defaultStyles: {
|
|
@@ -1619,7 +1619,7 @@ const Zt = {
|
|
|
1619
1619
|
shouldReceiveBuilderProps: {
|
|
1620
1620
|
builderLinkComponent: !0
|
|
1621
1621
|
}
|
|
1622
|
-
},
|
|
1622
|
+
}, tn = {
|
|
1623
1623
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1624
1624
|
name: "Columns",
|
|
1625
1625
|
isRSC: !0,
|
|
@@ -1798,7 +1798,7 @@ const Zt = {
|
|
|
1798
1798
|
});
|
|
1799
1799
|
}
|
|
1800
1800
|
const n = e.get("columns");
|
|
1801
|
-
Array.isArray(n) && n.find((
|
|
1801
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, u) => l + u.get("width"), 0) !== 100) && t();
|
|
1802
1802
|
}
|
|
1803
1803
|
}, {
|
|
1804
1804
|
name: "space",
|
|
@@ -1826,13 +1826,13 @@ const Zt = {
|
|
|
1826
1826
|
builderComponents: !0,
|
|
1827
1827
|
builderLinkComponent: !0
|
|
1828
1828
|
}
|
|
1829
|
-
},
|
|
1829
|
+
}, nn = {
|
|
1830
1830
|
name: "Fragment",
|
|
1831
1831
|
static: !0,
|
|
1832
1832
|
hidden: !0,
|
|
1833
1833
|
canHaveChildren: !0,
|
|
1834
1834
|
noWrap: !0
|
|
1835
|
-
},
|
|
1835
|
+
}, 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"], on = {
|
|
1836
1836
|
name: "Image",
|
|
1837
1837
|
static: !0,
|
|
1838
1838
|
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",
|
|
@@ -1847,34 +1847,34 @@ const Zt = {
|
|
|
1847
1847
|
name: "image",
|
|
1848
1848
|
type: "file",
|
|
1849
1849
|
bubble: !0,
|
|
1850
|
-
allowedFileTypes:
|
|
1850
|
+
allowedFileTypes: ue,
|
|
1851
1851
|
required: !0,
|
|
1852
1852
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1853
1853
|
onChange: (e) => {
|
|
1854
1854
|
e.delete("srcset"), e.delete("noWebp");
|
|
1855
|
-
function n(
|
|
1856
|
-
return new Promise((
|
|
1855
|
+
function n(o, l = 6e4) {
|
|
1856
|
+
return new Promise((u, c) => {
|
|
1857
1857
|
const h = document.createElement("img");
|
|
1858
1858
|
let g = !1;
|
|
1859
1859
|
h.onload = () => {
|
|
1860
|
-
g = !0,
|
|
1861
|
-
}, h.addEventListener("error", (
|
|
1862
|
-
console.warn("Image load failed",
|
|
1863
|
-
}), h.src =
|
|
1860
|
+
g = !0, u(h);
|
|
1861
|
+
}, h.addEventListener("error", (f) => {
|
|
1862
|
+
console.warn("Image load failed", f.error), c(f.error);
|
|
1863
|
+
}), h.src = o, setTimeout(() => {
|
|
1864
1864
|
g || c(new Error("Image load timed out"));
|
|
1865
|
-
},
|
|
1865
|
+
}, l);
|
|
1866
1866
|
});
|
|
1867
1867
|
}
|
|
1868
|
-
function i(
|
|
1869
|
-
return Math.round(
|
|
1868
|
+
function i(o) {
|
|
1869
|
+
return Math.round(o * 1e3) / 1e3;
|
|
1870
1870
|
}
|
|
1871
|
-
const
|
|
1872
|
-
if (fetch(
|
|
1873
|
-
|
|
1874
|
-
}),
|
|
1875
|
-
return n(
|
|
1876
|
-
const
|
|
1877
|
-
e.get("image") ===
|
|
1871
|
+
const a = e.get("image"), r = e.get("aspectRatio");
|
|
1872
|
+
if (fetch(a).then((o) => o.blob()).then((o) => {
|
|
1873
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
1874
|
+
}), a && (!r || r === 0.7041))
|
|
1875
|
+
return n(a).then((o) => {
|
|
1876
|
+
const l = e.get("aspectRatio");
|
|
1877
|
+
e.get("image") === a && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
1878
1878
|
});
|
|
1879
1879
|
}
|
|
1880
1880
|
}, {
|
|
@@ -1940,7 +1940,426 @@ const Zt = {
|
|
|
1940
1940
|
shouldReceiveBuilderProps: {
|
|
1941
1941
|
builderBlock: !0
|
|
1942
1942
|
}
|
|
1943
|
-
},
|
|
1943
|
+
}, rn = {
|
|
1944
|
+
name: "PersonalizationContainer",
|
|
1945
|
+
shouldReceiveBuilderProps: {
|
|
1946
|
+
builderBlock: !0,
|
|
1947
|
+
builderContext: !0
|
|
1948
|
+
},
|
|
1949
|
+
noWrap: !0,
|
|
1950
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
1951
|
+
canHaveChildren: !0,
|
|
1952
|
+
inputs: [{
|
|
1953
|
+
name: "variants",
|
|
1954
|
+
defaultValue: [],
|
|
1955
|
+
behavior: "personalizationVariantList",
|
|
1956
|
+
type: "list",
|
|
1957
|
+
subFields: [{
|
|
1958
|
+
name: "name",
|
|
1959
|
+
type: "text"
|
|
1960
|
+
}, {
|
|
1961
|
+
name: "query",
|
|
1962
|
+
friendlyName: "Targeting rules",
|
|
1963
|
+
type: "BuilderQuery",
|
|
1964
|
+
defaultValue: []
|
|
1965
|
+
}, {
|
|
1966
|
+
name: "startDate",
|
|
1967
|
+
type: "date"
|
|
1968
|
+
}, {
|
|
1969
|
+
name: "endDate",
|
|
1970
|
+
type: "date"
|
|
1971
|
+
}, {
|
|
1972
|
+
name: "blocks",
|
|
1973
|
+
type: "uiBlocks",
|
|
1974
|
+
hideFromUI: !0,
|
|
1975
|
+
defaultValue: []
|
|
1976
|
+
}]
|
|
1977
|
+
}]
|
|
1978
|
+
};
|
|
1979
|
+
function J(e) {
|
|
1980
|
+
return /* @__PURE__ */ s(
|
|
1981
|
+
"script",
|
|
1982
|
+
{
|
|
1983
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
1984
|
+
"data-id": e.id,
|
|
1985
|
+
nonce: e.nonce || ""
|
|
1986
|
+
}
|
|
1987
|
+
);
|
|
1988
|
+
}
|
|
1989
|
+
function ln(e, t, n, i) {
|
|
1990
|
+
function a(c) {
|
|
1991
|
+
return typeof c == "string";
|
|
1992
|
+
}
|
|
1993
|
+
function r(c) {
|
|
1994
|
+
return typeof c == "number";
|
|
1995
|
+
}
|
|
1996
|
+
function o(c, h) {
|
|
1997
|
+
return (() => {
|
|
1998
|
+
const f = h.property, k = h.operator;
|
|
1999
|
+
let d = h.value;
|
|
2000
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && k))
|
|
2001
|
+
return !0;
|
|
2002
|
+
if (Array.isArray(d))
|
|
2003
|
+
return k === "isNot" ? d.every((v) => o(c, {
|
|
2004
|
+
property: f,
|
|
2005
|
+
operator: k,
|
|
2006
|
+
value: v
|
|
2007
|
+
})) : !!d.find((v) => o(c, {
|
|
2008
|
+
property: f,
|
|
2009
|
+
operator: k,
|
|
2010
|
+
value: v
|
|
2011
|
+
}));
|
|
2012
|
+
const b = c[f];
|
|
2013
|
+
if (Array.isArray(b))
|
|
2014
|
+
return b.includes(d);
|
|
2015
|
+
switch (k) {
|
|
2016
|
+
case "is":
|
|
2017
|
+
return b === d;
|
|
2018
|
+
case "isNot":
|
|
2019
|
+
return b !== d;
|
|
2020
|
+
case "contains":
|
|
2021
|
+
return (a(b) || Array.isArray(b)) && b.includes(String(d));
|
|
2022
|
+
case "startsWith":
|
|
2023
|
+
return a(b) && b.startsWith(String(d));
|
|
2024
|
+
case "endsWith":
|
|
2025
|
+
return a(b) && b.endsWith(String(d));
|
|
2026
|
+
case "greaterThan":
|
|
2027
|
+
return r(b) && r(d) && b > d;
|
|
2028
|
+
case "lessThan":
|
|
2029
|
+
return r(b) && r(d) && b < d;
|
|
2030
|
+
case "greaterThanOrEqualTo":
|
|
2031
|
+
return r(b) && r(d) && b >= d;
|
|
2032
|
+
case "lessThanOrEqualTo":
|
|
2033
|
+
return r(b) && r(d) && b <= d;
|
|
2034
|
+
default:
|
|
2035
|
+
return !1;
|
|
2036
|
+
}
|
|
2037
|
+
})();
|
|
2038
|
+
}
|
|
2039
|
+
const l = {
|
|
2040
|
+
query: t,
|
|
2041
|
+
startDate: n,
|
|
2042
|
+
endDate: i
|
|
2043
|
+
}, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2044
|
+
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) => o(e, c));
|
|
2045
|
+
}
|
|
2046
|
+
const sn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2047
|
+
if (!navigator.cookieEnabled) {
|
|
2048
|
+
return;
|
|
2049
|
+
}
|
|
2050
|
+
function getCookie(name) {
|
|
2051
|
+
const nameEQ = name + '=';
|
|
2052
|
+
const ca = document.cookie.split(';');
|
|
2053
|
+
for (let i = 0; i < ca.length; i++) {
|
|
2054
|
+
let c = ca[i];
|
|
2055
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2056
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2057
|
+
}
|
|
2058
|
+
return null;
|
|
2059
|
+
}
|
|
2060
|
+
function removeVariants() {
|
|
2061
|
+
variants?.forEach(function (_, index) {
|
|
2062
|
+
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2063
|
+
});
|
|
2064
|
+
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2065
|
+
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2066
|
+
}
|
|
2067
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2068
|
+
if (locale) {
|
|
2069
|
+
attributes.locale = locale;
|
|
2070
|
+
}
|
|
2071
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2072
|
+
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2073
|
+
});
|
|
2074
|
+
const isDebug = location.href.includes('builder.debug=true');
|
|
2075
|
+
if (isDebug) {
|
|
2076
|
+
console.debug('PersonalizationContainer', {
|
|
2077
|
+
attributes,
|
|
2078
|
+
variants,
|
|
2079
|
+
winningVariantIndex
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
if (winningVariantIndex !== -1) {
|
|
2083
|
+
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2084
|
+
if (winningVariant) {
|
|
2085
|
+
const parentNode = winningVariant.parentNode;
|
|
2086
|
+
if (parentNode) {
|
|
2087
|
+
const newParent = parentNode.cloneNode(false);
|
|
2088
|
+
newParent.appendChild(winningVariant.content.firstChild);
|
|
2089
|
+
newParent.appendChild(winningVariant.content.lastChild);
|
|
2090
|
+
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2091
|
+
}
|
|
2092
|
+
if (isDebug) {
|
|
2093
|
+
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2094
|
+
}
|
|
2095
|
+
}
|
|
2096
|
+
} else if (variants && variants.length > 0) {
|
|
2097
|
+
removeVariants();
|
|
2098
|
+
}
|
|
2099
|
+
}`, cn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2100
|
+
function isString(val) {
|
|
2101
|
+
return typeof val === 'string';
|
|
2102
|
+
}
|
|
2103
|
+
function isNumber(val) {
|
|
2104
|
+
return typeof val === 'number';
|
|
2105
|
+
}
|
|
2106
|
+
function objectMatchesQuery(userattr, query) {
|
|
2107
|
+
const result = (() => {
|
|
2108
|
+
const property = query.property;
|
|
2109
|
+
const operator = query.operator;
|
|
2110
|
+
let testValue = query.value;
|
|
2111
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2112
|
+
testValue = query.value.slice(0, -1);
|
|
2113
|
+
}
|
|
2114
|
+
if (!(property && operator)) {
|
|
2115
|
+
return true;
|
|
2116
|
+
}
|
|
2117
|
+
if (Array.isArray(testValue)) {
|
|
2118
|
+
if (operator === 'isNot') {
|
|
2119
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2120
|
+
property,
|
|
2121
|
+
operator,
|
|
2122
|
+
value: val
|
|
2123
|
+
}));
|
|
2124
|
+
}
|
|
2125
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2126
|
+
property,
|
|
2127
|
+
operator,
|
|
2128
|
+
value: val
|
|
2129
|
+
}));
|
|
2130
|
+
}
|
|
2131
|
+
const value = userattr[property];
|
|
2132
|
+
if (Array.isArray(value)) {
|
|
2133
|
+
return value.includes(testValue);
|
|
2134
|
+
}
|
|
2135
|
+
switch (operator) {
|
|
2136
|
+
case 'is':
|
|
2137
|
+
return value === testValue;
|
|
2138
|
+
case 'isNot':
|
|
2139
|
+
return value !== testValue;
|
|
2140
|
+
case 'contains':
|
|
2141
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2142
|
+
case 'startsWith':
|
|
2143
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
2144
|
+
case 'endsWith':
|
|
2145
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
2146
|
+
case 'greaterThan':
|
|
2147
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2148
|
+
case 'lessThan':
|
|
2149
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2150
|
+
case 'greaterThanOrEqualTo':
|
|
2151
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2152
|
+
case 'lessThanOrEqualTo':
|
|
2153
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2154
|
+
default:
|
|
2155
|
+
return false;
|
|
2156
|
+
}
|
|
2157
|
+
})();
|
|
2158
|
+
return result;
|
|
2159
|
+
}
|
|
2160
|
+
const item = {
|
|
2161
|
+
query,
|
|
2162
|
+
startDate,
|
|
2163
|
+
endDate
|
|
2164
|
+
};
|
|
2165
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2166
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
2167
|
+
return false;
|
|
2168
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2169
|
+
return false;
|
|
2170
|
+
}
|
|
2171
|
+
if (!item.query || !item.query.length) {
|
|
2172
|
+
return true;
|
|
2173
|
+
}
|
|
2174
|
+
return item.query.every(filter => {
|
|
2175
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
2176
|
+
});
|
|
2177
|
+
}`;
|
|
2178
|
+
function un(e, t) {
|
|
2179
|
+
return !(!(e && e.length > 0) || !t || L());
|
|
2180
|
+
}
|
|
2181
|
+
function dn({
|
|
2182
|
+
variants: e,
|
|
2183
|
+
previewingIndex: t,
|
|
2184
|
+
isHydrated: n,
|
|
2185
|
+
filteredVariants: i,
|
|
2186
|
+
fallbackBlocks: a
|
|
2187
|
+
}) {
|
|
2188
|
+
var o;
|
|
2189
|
+
const r = {
|
|
2190
|
+
blocks: a != null ? a : [],
|
|
2191
|
+
path: "this.children"
|
|
2192
|
+
};
|
|
2193
|
+
if (n && W())
|
|
2194
|
+
return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
|
|
2195
|
+
blocks: e[t].blocks,
|
|
2196
|
+
path: `component.options.variants.${t}.blocks`
|
|
2197
|
+
} : r;
|
|
2198
|
+
if (L()) {
|
|
2199
|
+
const l = i == null ? void 0 : i[0];
|
|
2200
|
+
if (l)
|
|
2201
|
+
return {
|
|
2202
|
+
blocks: l.blocks,
|
|
2203
|
+
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2204
|
+
};
|
|
2205
|
+
}
|
|
2206
|
+
return r;
|
|
2207
|
+
}
|
|
2208
|
+
const mn = (e, t, n) => `
|
|
2209
|
+
(function() {
|
|
2210
|
+
${cn}
|
|
2211
|
+
${sn}
|
|
2212
|
+
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2213
|
+
})();
|
|
2214
|
+
`;
|
|
2215
|
+
function fn(e) {
|
|
2216
|
+
var b, v, y, x, T, P, I;
|
|
2217
|
+
const t = D(null), [n, i] = E(
|
|
2218
|
+
() => de.getUserAttributes()
|
|
2219
|
+
), [a, r] = E(
|
|
2220
|
+
() => {
|
|
2221
|
+
var S, m, p;
|
|
2222
|
+
return mn(
|
|
2223
|
+
e.variants,
|
|
2224
|
+
((S = e.builderBlock) == null ? void 0 : S.id) || "none",
|
|
2225
|
+
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2226
|
+
);
|
|
2227
|
+
}
|
|
2228
|
+
), [o, l] = E(() => []), [u, c] = E(
|
|
2229
|
+
() => {
|
|
2230
|
+
var S;
|
|
2231
|
+
return un(
|
|
2232
|
+
e.variants,
|
|
2233
|
+
_((S = e.builderContext) == null ? void 0 : S.canTrack)
|
|
2234
|
+
);
|
|
2235
|
+
}
|
|
2236
|
+
), [h, g] = E(() => !1);
|
|
2237
|
+
function f() {
|
|
2238
|
+
return (e.variants || []).filter((S) => {
|
|
2239
|
+
var m, p, C, w;
|
|
2240
|
+
return ln(
|
|
2241
|
+
{
|
|
2242
|
+
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2243
|
+
locale: (w = (C = e.builderContext) == null ? void 0 : C.rootState) == null ? void 0 : w.locale
|
|
2244
|
+
} : {},
|
|
2245
|
+
...n
|
|
2246
|
+
},
|
|
2247
|
+
S.query,
|
|
2248
|
+
S.startDate,
|
|
2249
|
+
S.endDate
|
|
2250
|
+
);
|
|
2251
|
+
});
|
|
2252
|
+
}
|
|
2253
|
+
function k() {
|
|
2254
|
+
var S;
|
|
2255
|
+
return dn({
|
|
2256
|
+
variants: e.variants,
|
|
2257
|
+
fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
|
|
2258
|
+
isHydrated: h,
|
|
2259
|
+
filteredVariants: f(),
|
|
2260
|
+
previewingIndex: e.previewingIndex
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2263
|
+
function d() {
|
|
2264
|
+
return (e.variants || []).map(
|
|
2265
|
+
(S, m) => {
|
|
2266
|
+
var p;
|
|
2267
|
+
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2268
|
+
}
|
|
2269
|
+
).join("");
|
|
2270
|
+
}
|
|
2271
|
+
return A(() => {
|
|
2272
|
+
var m;
|
|
2273
|
+
g(!0);
|
|
2274
|
+
const S = de.subscribeOnUserAttributesChange(
|
|
2275
|
+
(p) => {
|
|
2276
|
+
i(p);
|
|
2277
|
+
}
|
|
2278
|
+
);
|
|
2279
|
+
if (!(W() || G())) {
|
|
2280
|
+
const p = f()[0];
|
|
2281
|
+
t.current && (t.current.dispatchEvent(
|
|
2282
|
+
new CustomEvent("builder.variantLoaded", {
|
|
2283
|
+
detail: {
|
|
2284
|
+
variant: p || "default",
|
|
2285
|
+
content: (m = e.builderContext) == null ? void 0 : m.content
|
|
2286
|
+
},
|
|
2287
|
+
bubbles: !0
|
|
2288
|
+
})
|
|
2289
|
+
), new IntersectionObserver((w) => {
|
|
2290
|
+
w.forEach((B) => {
|
|
2291
|
+
var N;
|
|
2292
|
+
B.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2293
|
+
new CustomEvent("builder.variantDisplayed", {
|
|
2294
|
+
detail: {
|
|
2295
|
+
variant: p || "default",
|
|
2296
|
+
content: (N = e.builderContext) == null ? void 0 : N.content
|
|
2297
|
+
},
|
|
2298
|
+
bubbles: !0
|
|
2299
|
+
})
|
|
2300
|
+
);
|
|
2301
|
+
});
|
|
2302
|
+
}).observe(t.current));
|
|
2303
|
+
}
|
|
2304
|
+
o.push(S);
|
|
2305
|
+
}, []), A(() => () => {
|
|
2306
|
+
o.forEach((S) => S());
|
|
2307
|
+
}, []), /* @__PURE__ */ V(
|
|
2308
|
+
"div",
|
|
2309
|
+
{
|
|
2310
|
+
ref: t,
|
|
2311
|
+
...e.attributes,
|
|
2312
|
+
className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
|
|
2313
|
+
children: [
|
|
2314
|
+
u ? /* @__PURE__ */ V(R, { children: [
|
|
2315
|
+
(v = e.variants) == null ? void 0 : v.map((S, m) => {
|
|
2316
|
+
var p, C;
|
|
2317
|
+
return /* @__PURE__ */ s(
|
|
2318
|
+
"template",
|
|
2319
|
+
{
|
|
2320
|
+
"data-variant-id": `${(p = e.builderBlock) == null ? void 0 : p.id}-${m}`,
|
|
2321
|
+
children: /* @__PURE__ */ s(
|
|
2322
|
+
$,
|
|
2323
|
+
{
|
|
2324
|
+
blocks: S.blocks,
|
|
2325
|
+
parent: (C = e.builderBlock) == null ? void 0 : C.id,
|
|
2326
|
+
path: `component.options.variants.${m}.blocks`
|
|
2327
|
+
}
|
|
2328
|
+
)
|
|
2329
|
+
},
|
|
2330
|
+
m
|
|
2331
|
+
);
|
|
2332
|
+
}),
|
|
2333
|
+
/* @__PURE__ */ s(
|
|
2334
|
+
H,
|
|
2335
|
+
{
|
|
2336
|
+
nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
|
|
2337
|
+
styles: d(),
|
|
2338
|
+
id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2339
|
+
}
|
|
2340
|
+
),
|
|
2341
|
+
/* @__PURE__ */ s(
|
|
2342
|
+
J,
|
|
2343
|
+
{
|
|
2344
|
+
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2345
|
+
scriptStr: a,
|
|
2346
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2347
|
+
}
|
|
2348
|
+
)
|
|
2349
|
+
] }) : null,
|
|
2350
|
+
/* @__PURE__ */ s(
|
|
2351
|
+
$,
|
|
2352
|
+
{
|
|
2353
|
+
blocks: k().blocks,
|
|
2354
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2355
|
+
path: k().path
|
|
2356
|
+
}
|
|
2357
|
+
)
|
|
2358
|
+
]
|
|
2359
|
+
}
|
|
2360
|
+
);
|
|
2361
|
+
}
|
|
2362
|
+
const hn = {
|
|
1944
2363
|
name: "Core:Section",
|
|
1945
2364
|
static: !0,
|
|
1946
2365
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -1979,7 +2398,7 @@ const Zt = {
|
|
|
1979
2398
|
}
|
|
1980
2399
|
}
|
|
1981
2400
|
}]
|
|
1982
|
-
},
|
|
2401
|
+
}, gn = {
|
|
1983
2402
|
name: "Slot",
|
|
1984
2403
|
isRSC: !0,
|
|
1985
2404
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -1997,9 +2416,9 @@ const Zt = {
|
|
|
1997
2416
|
builderComponents: !0
|
|
1998
2417
|
}
|
|
1999
2418
|
};
|
|
2000
|
-
function
|
|
2419
|
+
function bn(e) {
|
|
2001
2420
|
var t, n, i;
|
|
2002
|
-
return /* @__PURE__ */
|
|
2421
|
+
return /* @__PURE__ */ s(
|
|
2003
2422
|
"div",
|
|
2004
2423
|
{
|
|
2005
2424
|
style: {
|
|
@@ -2008,8 +2427,8 @@ function ln(e) {
|
|
|
2008
2427
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
2009
2428
|
"builder-slot": e.name
|
|
2010
2429
|
},
|
|
2011
|
-
children: /* @__PURE__ */
|
|
2012
|
-
|
|
2430
|
+
children: /* @__PURE__ */ s(
|
|
2431
|
+
$,
|
|
2013
2432
|
{
|
|
2014
2433
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2015
2434
|
path: `symbol.data.${e.name}`,
|
|
@@ -2021,7 +2440,7 @@ function ln(e) {
|
|
|
2021
2440
|
}
|
|
2022
2441
|
);
|
|
2023
2442
|
}
|
|
2024
|
-
const
|
|
2443
|
+
const pn = {
|
|
2025
2444
|
name: "Symbol",
|
|
2026
2445
|
noWrap: !0,
|
|
2027
2446
|
static: !0,
|
|
@@ -2060,7 +2479,7 @@ const sn = {
|
|
|
2060
2479
|
builderComponents: !0,
|
|
2061
2480
|
builderLinkComponent: !0
|
|
2062
2481
|
}
|
|
2063
|
-
},
|
|
2482
|
+
}, te = {
|
|
2064
2483
|
"@type": "@builder.io/sdk:Element",
|
|
2065
2484
|
responsiveStyles: {
|
|
2066
2485
|
large: {
|
|
@@ -2082,7 +2501,7 @@ const sn = {
|
|
|
2082
2501
|
text: "New tab"
|
|
2083
2502
|
}
|
|
2084
2503
|
}
|
|
2085
|
-
},
|
|
2504
|
+
}, ne = {
|
|
2086
2505
|
"@type": "@builder.io/sdk:Element",
|
|
2087
2506
|
responsiveStyles: {
|
|
2088
2507
|
large: {
|
|
@@ -2098,7 +2517,7 @@ const sn = {
|
|
|
2098
2517
|
text: "New tab content "
|
|
2099
2518
|
}
|
|
2100
2519
|
}
|
|
2101
|
-
},
|
|
2520
|
+
}, yn = {
|
|
2102
2521
|
name: "Builder: Tabs",
|
|
2103
2522
|
inputs: [{
|
|
2104
2523
|
name: "tabs",
|
|
@@ -2108,16 +2527,16 @@ const sn = {
|
|
|
2108
2527
|
name: "label",
|
|
2109
2528
|
type: "uiBlocks",
|
|
2110
2529
|
hideFromUI: !0,
|
|
2111
|
-
defaultValue: [
|
|
2530
|
+
defaultValue: [te]
|
|
2112
2531
|
}, {
|
|
2113
2532
|
name: "content",
|
|
2114
2533
|
type: "uiBlocks",
|
|
2115
2534
|
hideFromUI: !0,
|
|
2116
|
-
defaultValue: [
|
|
2535
|
+
defaultValue: [ne]
|
|
2117
2536
|
}],
|
|
2118
2537
|
defaultValue: [{
|
|
2119
2538
|
label: [{
|
|
2120
|
-
...
|
|
2539
|
+
...te,
|
|
2121
2540
|
component: {
|
|
2122
2541
|
name: "Text",
|
|
2123
2542
|
options: {
|
|
@@ -2126,7 +2545,7 @@ const sn = {
|
|
|
2126
2545
|
}
|
|
2127
2546
|
}],
|
|
2128
2547
|
content: [{
|
|
2129
|
-
...
|
|
2548
|
+
...ne,
|
|
2130
2549
|
component: {
|
|
2131
2550
|
name: "Text",
|
|
2132
2551
|
options: {
|
|
@@ -2136,7 +2555,7 @@ const sn = {
|
|
|
2136
2555
|
}]
|
|
2137
2556
|
}, {
|
|
2138
2557
|
label: [{
|
|
2139
|
-
...
|
|
2558
|
+
...te,
|
|
2140
2559
|
component: {
|
|
2141
2560
|
name: "Text",
|
|
2142
2561
|
options: {
|
|
@@ -2145,7 +2564,7 @@ const sn = {
|
|
|
2145
2564
|
}
|
|
2146
2565
|
}],
|
|
2147
2566
|
content: [{
|
|
2148
|
-
...
|
|
2567
|
+
...ne,
|
|
2149
2568
|
component: {
|
|
2150
2569
|
name: "Text",
|
|
2151
2570
|
options: {
|
|
@@ -2202,19 +2621,19 @@ const sn = {
|
|
|
2202
2621
|
builderLinkComponent: !0
|
|
2203
2622
|
}
|
|
2204
2623
|
};
|
|
2205
|
-
function
|
|
2624
|
+
function vn(e) {
|
|
2206
2625
|
var r;
|
|
2207
2626
|
const [t, n] = E(
|
|
2208
2627
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2209
2628
|
);
|
|
2210
|
-
function i(
|
|
2211
|
-
return e.tabs && e.tabs[
|
|
2629
|
+
function i(o) {
|
|
2630
|
+
return e.tabs && e.tabs[o].content;
|
|
2212
2631
|
}
|
|
2213
|
-
function o
|
|
2214
|
-
|
|
2632
|
+
function a(o) {
|
|
2633
|
+
o === t && e.collapsible ? n(-1) : n(o);
|
|
2215
2634
|
}
|
|
2216
|
-
return /* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2635
|
+
return /* @__PURE__ */ V("div", { children: [
|
|
2636
|
+
/* @__PURE__ */ s(
|
|
2218
2637
|
"div",
|
|
2219
2638
|
{
|
|
2220
2639
|
className: "builder-tabs-wrap",
|
|
@@ -2224,32 +2643,32 @@ function dn(e) {
|
|
|
2224
2643
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2225
2644
|
overflow: "auto"
|
|
2226
2645
|
},
|
|
2227
|
-
children: (r = e.tabs) == null ? void 0 : r.map((
|
|
2646
|
+
children: (r = e.tabs) == null ? void 0 : r.map((o, l) => /* @__PURE__ */ s(
|
|
2228
2647
|
"span",
|
|
2229
2648
|
{
|
|
2230
|
-
className: `builder-tab-wrap ${t ===
|
|
2649
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2231
2650
|
style: {
|
|
2232
|
-
...t ===
|
|
2651
|
+
...t === l ? e.activeTabStyle : {}
|
|
2233
2652
|
},
|
|
2234
|
-
onClick: (
|
|
2235
|
-
children: /* @__PURE__ */
|
|
2236
|
-
|
|
2653
|
+
onClick: (u) => a(l),
|
|
2654
|
+
children: /* @__PURE__ */ s(
|
|
2655
|
+
$,
|
|
2237
2656
|
{
|
|
2238
2657
|
parent: e.builderBlock.id,
|
|
2239
|
-
path: `tabs.${
|
|
2240
|
-
blocks:
|
|
2658
|
+
path: `tabs.${l}.label`,
|
|
2659
|
+
blocks: o.label,
|
|
2241
2660
|
context: e.builderContext,
|
|
2242
2661
|
registeredComponents: e.builderComponents,
|
|
2243
2662
|
linkComponent: e.builderLinkComponent
|
|
2244
2663
|
}
|
|
2245
2664
|
)
|
|
2246
2665
|
},
|
|
2247
|
-
|
|
2666
|
+
l
|
|
2248
2667
|
))
|
|
2249
2668
|
}
|
|
2250
2669
|
),
|
|
2251
|
-
i(t) ? /* @__PURE__ */
|
|
2252
|
-
|
|
2670
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2671
|
+
$,
|
|
2253
2672
|
{
|
|
2254
2673
|
parent: e.builderBlock.id,
|
|
2255
2674
|
path: `tabs.${t}.content`,
|
|
@@ -2261,7 +2680,7 @@ function dn(e) {
|
|
|
2261
2680
|
) }) : null
|
|
2262
2681
|
] });
|
|
2263
2682
|
}
|
|
2264
|
-
const
|
|
2683
|
+
const xn = {
|
|
2265
2684
|
shouldReceiveBuilderProps: {
|
|
2266
2685
|
builderBlock: !1,
|
|
2267
2686
|
builderContext: !0
|
|
@@ -2284,9 +2703,9 @@ const un = {
|
|
|
2284
2703
|
textAlign: "center"
|
|
2285
2704
|
}
|
|
2286
2705
|
};
|
|
2287
|
-
function
|
|
2706
|
+
function Sn(e) {
|
|
2288
2707
|
var t;
|
|
2289
|
-
return /* @__PURE__ */
|
|
2708
|
+
return /* @__PURE__ */ s(
|
|
2290
2709
|
"div",
|
|
2291
2710
|
{
|
|
2292
2711
|
className: "builder-text",
|
|
@@ -2297,7 +2716,7 @@ function mn(e) {
|
|
|
2297
2716
|
}
|
|
2298
2717
|
);
|
|
2299
2718
|
}
|
|
2300
|
-
const
|
|
2719
|
+
const kn = {
|
|
2301
2720
|
name: "Custom Code",
|
|
2302
2721
|
static: !0,
|
|
2303
2722
|
requiredPermissions: ["editCode"],
|
|
@@ -2320,15 +2739,15 @@ const fn = {
|
|
|
2320
2739
|
advanced: !0
|
|
2321
2740
|
}]
|
|
2322
2741
|
};
|
|
2323
|
-
function
|
|
2324
|
-
const t = D(null), [n, i] = E(() => []), [
|
|
2742
|
+
function Cn(e) {
|
|
2743
|
+
const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []);
|
|
2325
2744
|
return A(() => {
|
|
2326
|
-
var
|
|
2327
|
-
if (!((
|
|
2745
|
+
var l;
|
|
2746
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2328
2747
|
return;
|
|
2329
|
-
const
|
|
2330
|
-
for (let
|
|
2331
|
-
const c =
|
|
2748
|
+
const o = t.current.getElementsByTagName("script");
|
|
2749
|
+
for (let u = 0; u < o.length; u++) {
|
|
2750
|
+
const c = o[u];
|
|
2332
2751
|
if (c.src) {
|
|
2333
2752
|
if (n.includes(c.src))
|
|
2334
2753
|
continue;
|
|
@@ -2340,16 +2759,16 @@ function hn(e) {
|
|
|
2340
2759
|
"application/javascript",
|
|
2341
2760
|
"application/ecmascript"
|
|
2342
2761
|
].includes(c.type)) {
|
|
2343
|
-
if (
|
|
2762
|
+
if (a.includes(c.innerText))
|
|
2344
2763
|
continue;
|
|
2345
2764
|
try {
|
|
2346
|
-
|
|
2765
|
+
a.push(c.innerText), new Function(c.innerText)();
|
|
2347
2766
|
} catch (h) {
|
|
2348
2767
|
console.warn("`CustomCode`: Error running script:", h);
|
|
2349
2768
|
}
|
|
2350
2769
|
}
|
|
2351
2770
|
}
|
|
2352
|
-
}, []), /* @__PURE__ */
|
|
2771
|
+
}, []), /* @__PURE__ */ s(
|
|
2353
2772
|
"div",
|
|
2354
2773
|
{
|
|
2355
2774
|
ref: t,
|
|
@@ -2358,7 +2777,7 @@ function hn(e) {
|
|
|
2358
2777
|
}
|
|
2359
2778
|
);
|
|
2360
2779
|
}
|
|
2361
|
-
const
|
|
2780
|
+
const Tn = {
|
|
2362
2781
|
name: "Embed",
|
|
2363
2782
|
static: !0,
|
|
2364
2783
|
inputs: [{
|
|
@@ -2373,10 +2792,10 @@ const gn = {
|
|
|
2373
2792
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2374
2793
|
hideFromUI: !0
|
|
2375
2794
|
}]
|
|
2376
|
-
},
|
|
2377
|
-
function
|
|
2378
|
-
const t = D(null), [n, i] = E(() => []), [
|
|
2379
|
-
function
|
|
2795
|
+
}, wn = ["text/javascript", "application/javascript", "application/ecmascript"], In = (e) => wn.includes(e.type);
|
|
2796
|
+
function En(e) {
|
|
2797
|
+
const t = D(null), [n, i] = E(() => []), [a, r] = E(() => []), [o, l] = E(() => !1);
|
|
2798
|
+
function u() {
|
|
2380
2799
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2381
2800
|
return;
|
|
2382
2801
|
const c = t.current.getElementsByTagName("script");
|
|
@@ -2384,19 +2803,19 @@ function yn(e) {
|
|
|
2384
2803
|
const g = c[h];
|
|
2385
2804
|
if (g.src && !n.includes(g.src)) {
|
|
2386
2805
|
n.push(g.src);
|
|
2387
|
-
const
|
|
2388
|
-
|
|
2389
|
-
} else if (
|
|
2806
|
+
const f = document.createElement("script");
|
|
2807
|
+
f.async = !0, f.src = g.src, document.head.appendChild(f);
|
|
2808
|
+
} else if (In(g) && !a.includes(g.innerText))
|
|
2390
2809
|
try {
|
|
2391
|
-
|
|
2392
|
-
} catch (
|
|
2393
|
-
console.warn("`Embed`: Error running script:",
|
|
2810
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2811
|
+
} catch (f) {
|
|
2812
|
+
console.warn("`Embed`: Error running script:", f);
|
|
2394
2813
|
}
|
|
2395
2814
|
}
|
|
2396
2815
|
}
|
|
2397
2816
|
return A(() => {
|
|
2398
|
-
t.current && !
|
|
2399
|
-
}, [t.current,
|
|
2817
|
+
t.current && !o && (l(!0), u());
|
|
2818
|
+
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2400
2819
|
"div",
|
|
2401
2820
|
{
|
|
2402
2821
|
className: "builder-embed",
|
|
@@ -2405,7 +2824,7 @@ function yn(e) {
|
|
|
2405
2824
|
}
|
|
2406
2825
|
);
|
|
2407
2826
|
}
|
|
2408
|
-
const
|
|
2827
|
+
const Rn = {
|
|
2409
2828
|
name: "Form:Form",
|
|
2410
2829
|
// editableTags: ['builder-form-error']
|
|
2411
2830
|
defaults: {
|
|
@@ -2642,119 +3061,118 @@ const xn = {
|
|
|
2642
3061
|
builderComponents: !0,
|
|
2643
3062
|
builderLinkComponent: !0
|
|
2644
3063
|
}
|
|
2645
|
-
},
|
|
3064
|
+
}, Pn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Vn = () => {
|
|
2646
3065
|
const e = process.env.NODE_ENV || "production";
|
|
2647
|
-
return
|
|
3066
|
+
return Pn.includes(e) ? e : "production";
|
|
2648
3067
|
};
|
|
2649
|
-
function
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
var v, x;
|
|
3068
|
+
function Bn(e) {
|
|
3069
|
+
const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
|
|
3070
|
+
function u(g) {
|
|
3071
|
+
var k, d;
|
|
2654
3072
|
const f = {
|
|
2655
3073
|
...e.builderContext.rootState,
|
|
2656
|
-
...
|
|
3074
|
+
...g
|
|
2657
3075
|
};
|
|
2658
|
-
e.builderContext.rootSetState ? (
|
|
3076
|
+
e.builderContext.rootSetState ? (d = (k = e.builderContext).rootSetState) == null || d.call(k, f) : e.builderContext.rootState = f;
|
|
2659
3077
|
}
|
|
2660
3078
|
function c() {
|
|
2661
|
-
return
|
|
3079
|
+
return W() && e.previewState || n;
|
|
2662
3080
|
}
|
|
2663
|
-
function h(
|
|
2664
|
-
var
|
|
3081
|
+
function h(g) {
|
|
3082
|
+
var k;
|
|
2665
3083
|
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2666
3084
|
if (e.sendSubmissionsTo === "zapier")
|
|
2667
|
-
|
|
3085
|
+
g.preventDefault();
|
|
2668
3086
|
else if (f) {
|
|
2669
3087
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2670
|
-
|
|
3088
|
+
g.preventDefault();
|
|
2671
3089
|
return;
|
|
2672
3090
|
}
|
|
2673
|
-
|
|
2674
|
-
const
|
|
2675
|
-
let
|
|
2676
|
-
const
|
|
2677
|
-
let
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
if (
|
|
2681
|
-
if (
|
|
2682
|
-
return
|
|
2683
|
-
key:
|
|
2684
|
-
value:
|
|
3091
|
+
g.preventDefault();
|
|
3092
|
+
const d = g.currentTarget || g.target, b = e.customHeaders || {};
|
|
3093
|
+
let v;
|
|
3094
|
+
const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3095
|
+
let p;
|
|
3096
|
+
const C = m.name;
|
|
3097
|
+
if (m instanceof HTMLInputElement)
|
|
3098
|
+
if (m.type === "radio") {
|
|
3099
|
+
if (m.checked)
|
|
3100
|
+
return p = m.name, {
|
|
3101
|
+
key: C,
|
|
3102
|
+
value: p
|
|
2685
3103
|
};
|
|
2686
|
-
} else if (
|
|
2687
|
-
|
|
2688
|
-
else if (
|
|
2689
|
-
const
|
|
2690
|
-
isNaN(
|
|
3104
|
+
} else if (m.type === "checkbox")
|
|
3105
|
+
p = m.checked;
|
|
3106
|
+
else if (m.type === "number" || m.type === "range") {
|
|
3107
|
+
const w = m.valueAsNumber;
|
|
3108
|
+
isNaN(w) || (p = w);
|
|
2691
3109
|
} else
|
|
2692
|
-
|
|
3110
|
+
m.type === "file" ? p = m.files : p = m.value;
|
|
2693
3111
|
else
|
|
2694
|
-
|
|
3112
|
+
p = m.value;
|
|
2695
3113
|
return {
|
|
2696
|
-
key:
|
|
2697
|
-
value:
|
|
3114
|
+
key: C,
|
|
3115
|
+
value: p
|
|
2698
3116
|
};
|
|
2699
3117
|
});
|
|
2700
|
-
let
|
|
2701
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2702
|
-
(
|
|
2703
|
-
}),
|
|
2704
|
-
|
|
3118
|
+
let T = e.contentType;
|
|
3119
|
+
if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(x).forEach(({ value: m }) => {
|
|
3120
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
|
|
3121
|
+
}), T !== "application/json")
|
|
3122
|
+
v = y;
|
|
2705
3123
|
else {
|
|
2706
|
-
const
|
|
2707
|
-
Array.from(
|
|
2708
|
-
|
|
2709
|
-
}),
|
|
3124
|
+
const m = {};
|
|
3125
|
+
Array.from(x).forEach(({ value: p, key: C }) => {
|
|
3126
|
+
Pe(m, C, p);
|
|
3127
|
+
}), v = JSON.stringify(m);
|
|
2710
3128
|
}
|
|
2711
|
-
|
|
2712
|
-
const
|
|
2713
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3129
|
+
T && T !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
|
|
3130
|
+
const P = new CustomEvent("presubmit", { detail: { body: v } });
|
|
3131
|
+
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
2714
3132
|
return;
|
|
2715
3133
|
i("sending");
|
|
2716
|
-
const
|
|
3134
|
+
const I = `${Vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2717
3135
|
e.sendSubmissionsToEmail || ""
|
|
2718
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
2719
|
-
|
|
2720
|
-
async (
|
|
2721
|
-
let
|
|
2722
|
-
const
|
|
2723
|
-
if (
|
|
2724
|
-
let
|
|
2725
|
-
|
|
3136
|
+
)}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? I : e.action;
|
|
3137
|
+
we(S), fetch(S, { body: v, headers: b, method: e.method || "post" }).then(
|
|
3138
|
+
async (m) => {
|
|
3139
|
+
let p;
|
|
3140
|
+
const C = m.headers.get("content-type");
|
|
3141
|
+
if (C && C.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3142
|
+
let w = Be(p, e.errorMessagePath);
|
|
3143
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), l(w), u({ formErrorMessage: w }));
|
|
2726
3144
|
}
|
|
2727
|
-
if (r(
|
|
2728
|
-
const
|
|
2729
|
-
detail: { res:
|
|
3145
|
+
if (r(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3146
|
+
const w = new CustomEvent("submit:success", {
|
|
3147
|
+
detail: { res: m, body: p }
|
|
2730
3148
|
});
|
|
2731
3149
|
if (t.current) {
|
|
2732
|
-
if (t.current.dispatchEvent(
|
|
3150
|
+
if (t.current.dispatchEvent(w), w.defaultPrevented)
|
|
2733
3151
|
return;
|
|
2734
3152
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2735
3153
|
}
|
|
2736
3154
|
if (e.successUrl)
|
|
2737
3155
|
if (t.current) {
|
|
2738
|
-
const
|
|
3156
|
+
const B = new CustomEvent("route", {
|
|
2739
3157
|
detail: { url: e.successUrl }
|
|
2740
3158
|
});
|
|
2741
|
-
t.current.dispatchEvent(
|
|
3159
|
+
t.current.dispatchEvent(B), B.defaultPrevented || (location.href = e.successUrl);
|
|
2742
3160
|
} else
|
|
2743
3161
|
location.href = e.successUrl;
|
|
2744
3162
|
}
|
|
2745
3163
|
},
|
|
2746
|
-
(
|
|
2747
|
-
const
|
|
2748
|
-
detail: { error:
|
|
3164
|
+
(m) => {
|
|
3165
|
+
const p = new CustomEvent("submit:error", {
|
|
3166
|
+
detail: { error: m }
|
|
2749
3167
|
});
|
|
2750
|
-
t.current && (t.current.dispatchEvent(
|
|
3168
|
+
t.current && (t.current.dispatchEvent(p), p.defaultPrevented) || (r(m), i("error"));
|
|
2751
3169
|
}
|
|
2752
3170
|
);
|
|
2753
3171
|
}
|
|
2754
3172
|
}
|
|
2755
|
-
return /* @__PURE__ */
|
|
3173
|
+
return /* @__PURE__ */ V(R, { children: [
|
|
2756
3174
|
" ",
|
|
2757
|
-
/* @__PURE__ */
|
|
3175
|
+
/* @__PURE__ */ V(
|
|
2758
3176
|
"form",
|
|
2759
3177
|
{
|
|
2760
3178
|
validate: e.validate,
|
|
@@ -2762,38 +3180,29 @@ function kn(e) {
|
|
|
2762
3180
|
action: !e.sendWithJs && e.action,
|
|
2763
3181
|
method: e.method,
|
|
2764
3182
|
name: e.name,
|
|
2765
|
-
onSubmit: (
|
|
3183
|
+
onSubmit: (g) => h(g),
|
|
2766
3184
|
...e.attributes,
|
|
2767
3185
|
children: [
|
|
2768
|
-
e.
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
block: y,
|
|
2772
|
-
context: e.builderContext,
|
|
2773
|
-
registeredComponents: e.builderComponents,
|
|
2774
|
-
linkComponent: e.builderLinkComponent
|
|
2775
|
-
},
|
|
2776
|
-
`form-block-${f}`
|
|
2777
|
-
)) }) : null,
|
|
2778
|
-
c() === "error" ? /* @__PURE__ */ l(
|
|
2779
|
-
F,
|
|
3186
|
+
e.children,
|
|
3187
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
3188
|
+
$,
|
|
2780
3189
|
{
|
|
2781
3190
|
path: "errorMessage",
|
|
2782
3191
|
blocks: e.errorMessage,
|
|
2783
3192
|
context: e.builderContext
|
|
2784
3193
|
}
|
|
2785
3194
|
) : null,
|
|
2786
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2787
|
-
|
|
3195
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
3196
|
+
$,
|
|
2788
3197
|
{
|
|
2789
3198
|
path: "sendingMessage",
|
|
2790
3199
|
blocks: e.sendingMessage,
|
|
2791
3200
|
context: e.builderContext
|
|
2792
3201
|
}
|
|
2793
3202
|
) : null,
|
|
2794
|
-
c() === "error" &&
|
|
2795
|
-
c() === "success" ? /* @__PURE__ */
|
|
2796
|
-
|
|
3203
|
+
c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
|
|
3204
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
3205
|
+
$,
|
|
2797
3206
|
{
|
|
2798
3207
|
path: "successMessage",
|
|
2799
3208
|
blocks: e.successMessage,
|
|
@@ -2804,11 +3213,11 @@ function kn(e) {
|
|
|
2804
3213
|
}
|
|
2805
3214
|
),
|
|
2806
3215
|
" ",
|
|
2807
|
-
/* @__PURE__ */
|
|
3216
|
+
/* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
|
|
2808
3217
|
" "
|
|
2809
3218
|
] });
|
|
2810
3219
|
}
|
|
2811
|
-
const
|
|
3220
|
+
const An = {
|
|
2812
3221
|
name: "Form:Input",
|
|
2813
3222
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
2814
3223
|
inputs: [
|
|
@@ -2860,12 +3269,12 @@ const Cn = {
|
|
|
2860
3269
|
borderColor: "#ccc"
|
|
2861
3270
|
}
|
|
2862
3271
|
};
|
|
2863
|
-
function
|
|
2864
|
-
return /* @__PURE__ */
|
|
3272
|
+
function Nn(e) {
|
|
3273
|
+
return /* @__PURE__ */ Re(
|
|
2865
3274
|
"input",
|
|
2866
3275
|
{
|
|
2867
3276
|
...e.attributes,
|
|
2868
|
-
key:
|
|
3277
|
+
key: W() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2869
3278
|
placeholder: e.placeholder,
|
|
2870
3279
|
type: e.type,
|
|
2871
3280
|
name: e.name,
|
|
@@ -2875,7 +3284,7 @@ function Tn(e) {
|
|
|
2875
3284
|
}
|
|
2876
3285
|
);
|
|
2877
3286
|
}
|
|
2878
|
-
const
|
|
3287
|
+
const Wn = {
|
|
2879
3288
|
name: "Form:Select",
|
|
2880
3289
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
2881
3290
|
defaultStyles: {
|
|
@@ -2918,22 +3327,22 @@ const In = {
|
|
|
2918
3327
|
static: !0,
|
|
2919
3328
|
noWrap: !0
|
|
2920
3329
|
};
|
|
2921
|
-
function
|
|
3330
|
+
function $n(e) {
|
|
2922
3331
|
var t;
|
|
2923
|
-
return /* @__PURE__ */
|
|
3332
|
+
return /* @__PURE__ */ Re(
|
|
2924
3333
|
"select",
|
|
2925
3334
|
{
|
|
2926
3335
|
...e.attributes,
|
|
2927
3336
|
value: e.value,
|
|
2928
|
-
key:
|
|
3337
|
+
key: W() && e.defaultValue ? e.defaultValue : "default-key",
|
|
2929
3338
|
defaultValue: e.defaultValue,
|
|
2930
3339
|
name: e.name,
|
|
2931
3340
|
required: e.required
|
|
2932
3341
|
},
|
|
2933
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
3342
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2934
3343
|
);
|
|
2935
3344
|
}
|
|
2936
|
-
const
|
|
3345
|
+
const Dn = {
|
|
2937
3346
|
name: "Form:SubmitButton",
|
|
2938
3347
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
2939
3348
|
defaultStyles: {
|
|
@@ -2959,10 +3368,10 @@ const En = {
|
|
|
2959
3368
|
// TODO: defaultChildren
|
|
2960
3369
|
// canHaveChildren: true,
|
|
2961
3370
|
};
|
|
2962
|
-
function
|
|
2963
|
-
return /* @__PURE__ */
|
|
3371
|
+
function Fn(e) {
|
|
3372
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2964
3373
|
}
|
|
2965
|
-
const
|
|
3374
|
+
const Ln = {
|
|
2966
3375
|
name: "Form:TextArea",
|
|
2967
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
2968
3377
|
inputs: [{
|
|
@@ -2999,8 +3408,8 @@ const Pn = {
|
|
|
2999
3408
|
static: !0,
|
|
3000
3409
|
noWrap: !0
|
|
3001
3410
|
};
|
|
3002
|
-
function
|
|
3003
|
-
return /* @__PURE__ */
|
|
3411
|
+
function On(e) {
|
|
3412
|
+
return /* @__PURE__ */ s(
|
|
3004
3413
|
"textarea",
|
|
3005
3414
|
{
|
|
3006
3415
|
...e.attributes,
|
|
@@ -3012,7 +3421,7 @@ function Bn(e) {
|
|
|
3012
3421
|
}
|
|
3013
3422
|
);
|
|
3014
3423
|
}
|
|
3015
|
-
const
|
|
3424
|
+
const Un = {
|
|
3016
3425
|
// friendlyName?
|
|
3017
3426
|
name: "Raw:Img",
|
|
3018
3427
|
hideFromInsertMenu: !0,
|
|
@@ -3021,14 +3430,14 @@ const Vn = {
|
|
|
3021
3430
|
name: "image",
|
|
3022
3431
|
bubble: !0,
|
|
3023
3432
|
type: "file",
|
|
3024
|
-
allowedFileTypes:
|
|
3433
|
+
allowedFileTypes: ue,
|
|
3025
3434
|
required: !0
|
|
3026
3435
|
}],
|
|
3027
3436
|
noWrap: !0,
|
|
3028
3437
|
static: !0
|
|
3029
3438
|
};
|
|
3030
|
-
function
|
|
3031
|
-
return /* @__PURE__ */
|
|
3439
|
+
function _n(e) {
|
|
3440
|
+
return /* @__PURE__ */ s(
|
|
3032
3441
|
"img",
|
|
3033
3442
|
{
|
|
3034
3443
|
style: {
|
|
@@ -3039,10 +3448,10 @@ function An(e) {
|
|
|
3039
3448
|
src: e.imgSrc || e.image,
|
|
3040
3449
|
...e.attributes
|
|
3041
3450
|
},
|
|
3042
|
-
|
|
3451
|
+
W() && e.imgSrc || "default-key"
|
|
3043
3452
|
);
|
|
3044
3453
|
}
|
|
3045
|
-
const
|
|
3454
|
+
const qn = {
|
|
3046
3455
|
name: "Video",
|
|
3047
3456
|
canHaveChildren: !0,
|
|
3048
3457
|
defaultStyles: {
|
|
@@ -3053,14 +3462,14 @@ const Wn = {
|
|
|
3053
3462
|
inputs: [{
|
|
3054
3463
|
name: "video",
|
|
3055
3464
|
type: "file",
|
|
3056
|
-
allowedFileTypes:
|
|
3465
|
+
allowedFileTypes: an,
|
|
3057
3466
|
bubble: !0,
|
|
3058
3467
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3059
3468
|
required: !0
|
|
3060
3469
|
}, {
|
|
3061
3470
|
name: "posterImage",
|
|
3062
3471
|
type: "file",
|
|
3063
|
-
allowedFileTypes:
|
|
3472
|
+
allowedFileTypes: ue,
|
|
3064
3473
|
helperText: "Image to show before the video plays"
|
|
3065
3474
|
}, {
|
|
3066
3475
|
name: "autoPlay",
|
|
@@ -3127,8 +3536,8 @@ const Wn = {
|
|
|
3127
3536
|
builderBlock: !0
|
|
3128
3537
|
}
|
|
3129
3538
|
};
|
|
3130
|
-
function
|
|
3131
|
-
var i,
|
|
3539
|
+
function Hn(e) {
|
|
3540
|
+
var i, a, r, o, l, u, c;
|
|
3132
3541
|
function t() {
|
|
3133
3542
|
return {
|
|
3134
3543
|
...e.autoPlay === !0 ? {
|
|
@@ -3153,14 +3562,14 @@ function Nn(e) {
|
|
|
3153
3562
|
...t()
|
|
3154
3563
|
};
|
|
3155
3564
|
}
|
|
3156
|
-
return /* @__PURE__ */
|
|
3565
|
+
return /* @__PURE__ */ V(
|
|
3157
3566
|
"div",
|
|
3158
3567
|
{
|
|
3159
3568
|
style: {
|
|
3160
3569
|
position: "relative"
|
|
3161
3570
|
},
|
|
3162
3571
|
children: [
|
|
3163
|
-
/* @__PURE__ */
|
|
3572
|
+
/* @__PURE__ */ s(
|
|
3164
3573
|
"video",
|
|
3165
3574
|
{
|
|
3166
3575
|
className: "builder-video",
|
|
@@ -3174,7 +3583,6 @@ function Nn(e) {
|
|
|
3174
3583
|
objectPosition: e.position,
|
|
3175
3584
|
// Hack to get object fit to work as expected and
|
|
3176
3585
|
// not have the video overflow
|
|
3177
|
-
zIndex: 2,
|
|
3178
3586
|
borderRadius: "1px",
|
|
3179
3587
|
...e.aspectRatio ? {
|
|
3180
3588
|
position: "absolute"
|
|
@@ -3182,10 +3590,10 @@ function Nn(e) {
|
|
|
3182
3590
|
},
|
|
3183
3591
|
src: e.video || "no-src",
|
|
3184
3592
|
poster: e.posterImage,
|
|
3185
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3593
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3186
3594
|
}
|
|
3187
3595
|
),
|
|
3188
|
-
e.aspectRatio && !(e.fitContent && ((r = (
|
|
3596
|
+
e.aspectRatio && !(e.fitContent && ((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3189
3597
|
"div",
|
|
3190
3598
|
{
|
|
3191
3599
|
style: {
|
|
@@ -3196,7 +3604,7 @@ function Nn(e) {
|
|
|
3196
3604
|
}
|
|
3197
3605
|
}
|
|
3198
3606
|
) : null,
|
|
3199
|
-
(
|
|
3607
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3200
3608
|
"div",
|
|
3201
3609
|
{
|
|
3202
3610
|
style: {
|
|
@@ -3207,7 +3615,7 @@ function Nn(e) {
|
|
|
3207
3615
|
children: e.children
|
|
3208
3616
|
}
|
|
3209
3617
|
) : null,
|
|
3210
|
-
(c = (
|
|
3618
|
+
(c = (u = e.builderBlock) == null ? void 0 : u.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3211
3619
|
"div",
|
|
3212
3620
|
{
|
|
3213
3621
|
style: {
|
|
@@ -3228,64 +3636,67 @@ function Nn(e) {
|
|
|
3228
3636
|
}
|
|
3229
3637
|
);
|
|
3230
3638
|
}
|
|
3231
|
-
const
|
|
3232
|
-
component:
|
|
3233
|
-
...
|
|
3639
|
+
const jn = () => [{
|
|
3640
|
+
component: Cn,
|
|
3641
|
+
...kn
|
|
3234
3642
|
}, {
|
|
3235
|
-
component:
|
|
3236
|
-
...
|
|
3643
|
+
component: En,
|
|
3644
|
+
...Tn
|
|
3237
3645
|
}, {
|
|
3238
|
-
component:
|
|
3239
|
-
...
|
|
3646
|
+
component: Bn,
|
|
3647
|
+
...Rn
|
|
3240
3648
|
}, {
|
|
3241
|
-
component:
|
|
3242
|
-
...
|
|
3649
|
+
component: Nn,
|
|
3650
|
+
...An
|
|
3243
3651
|
}, {
|
|
3244
|
-
component:
|
|
3245
|
-
...
|
|
3652
|
+
component: Fn,
|
|
3653
|
+
...Dn
|
|
3246
3654
|
}, {
|
|
3247
|
-
component:
|
|
3248
|
-
...
|
|
3655
|
+
component: $n,
|
|
3656
|
+
...Wn
|
|
3249
3657
|
}, {
|
|
3250
|
-
component:
|
|
3251
|
-
...
|
|
3658
|
+
component: On,
|
|
3659
|
+
...Ln
|
|
3252
3660
|
}, {
|
|
3253
|
-
component:
|
|
3254
|
-
...
|
|
3661
|
+
component: _n,
|
|
3662
|
+
...Un
|
|
3255
3663
|
}, {
|
|
3256
|
-
component:
|
|
3257
|
-
...
|
|
3664
|
+
component: Hn,
|
|
3665
|
+
...qn
|
|
3258
3666
|
}], xe = () => [{
|
|
3259
3667
|
component: ot,
|
|
3260
|
-
...Zt
|
|
3261
|
-
}, {
|
|
3262
|
-
component: qt,
|
|
3263
3668
|
...en
|
|
3264
3669
|
}, {
|
|
3265
3670
|
component: zt,
|
|
3266
3671
|
...tn
|
|
3267
3672
|
}, {
|
|
3268
|
-
component:
|
|
3673
|
+
component: Kt,
|
|
3674
|
+
...nn
|
|
3675
|
+
}, {
|
|
3676
|
+
component: Qt,
|
|
3269
3677
|
...on
|
|
3270
3678
|
}, {
|
|
3271
3679
|
component: Yt,
|
|
3272
|
-
...
|
|
3680
|
+
...hn
|
|
3273
3681
|
}, {
|
|
3274
|
-
component:
|
|
3275
|
-
...
|
|
3682
|
+
component: bn,
|
|
3683
|
+
...gn
|
|
3684
|
+
}, {
|
|
3685
|
+
component: hi,
|
|
3686
|
+
...pn
|
|
3276
3687
|
}, {
|
|
3277
|
-
component:
|
|
3278
|
-
...
|
|
3688
|
+
component: Sn,
|
|
3689
|
+
...xn
|
|
3279
3690
|
}, {
|
|
3280
|
-
component:
|
|
3281
|
-
...
|
|
3691
|
+
component: fn,
|
|
3692
|
+
...rn
|
|
3282
3693
|
}, {
|
|
3283
|
-
component:
|
|
3284
|
-
...
|
|
3694
|
+
component: vn,
|
|
3695
|
+
...yn
|
|
3285
3696
|
}, {
|
|
3286
|
-
component:
|
|
3287
|
-
...
|
|
3288
|
-
}, ...
|
|
3697
|
+
component: Zt,
|
|
3698
|
+
...Xt
|
|
3699
|
+
}, ...jn()], Mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3289
3700
|
function getAndSetVariantId() {
|
|
3290
3701
|
function setCookie(name, value, days) {
|
|
3291
3702
|
let expires = '';
|
|
@@ -3341,7 +3752,7 @@ const Fn = () => [{
|
|
|
3341
3752
|
}).join('');
|
|
3342
3753
|
styleEl.innerHTML = newStyleStr;
|
|
3343
3754
|
}
|
|
3344
|
-
}`,
|
|
3755
|
+
}`, zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3345
3756
|
if (!navigator.cookieEnabled) {
|
|
3346
3757
|
return;
|
|
3347
3758
|
}
|
|
@@ -3375,39 +3786,29 @@ const Fn = () => [{
|
|
|
3375
3786
|
thisScriptEl?.remove();
|
|
3376
3787
|
}
|
|
3377
3788
|
return;
|
|
3378
|
-
}`,
|
|
3789
|
+
}`, qe = "builderIoAbTest", He = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3379
3790
|
...t,
|
|
3380
3791
|
testVariationId: t.id,
|
|
3381
3792
|
id: e == null ? void 0 : e.id
|
|
3382
|
-
})),
|
|
3793
|
+
})), Kn = ({
|
|
3383
3794
|
canTrack: e,
|
|
3384
3795
|
content: t
|
|
3385
|
-
}) => !(!(
|
|
3386
|
-
window.${
|
|
3387
|
-
window.${He} = ${
|
|
3388
|
-
`,
|
|
3389
|
-
window.${
|
|
3390
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3391
|
-
)`,
|
|
3796
|
+
}) => !(!(z(t).length > 0) || !e || L()), Jn = (e) => e === "react" || e === "reactNative", je = Jn(F), Gn = () => `
|
|
3797
|
+
window.${qe} = ${Mn}
|
|
3798
|
+
window.${He} = ${zn}
|
|
3799
|
+
`, Qn = (e, t) => `
|
|
3800
|
+
window.${qe}(
|
|
3801
|
+
"${t}",${JSON.stringify(e)}, ${je}
|
|
3802
|
+
)`, Yn = ({
|
|
3392
3803
|
contentId: e,
|
|
3393
3804
|
variationId: t
|
|
3394
3805
|
}) => `window.${He}(
|
|
3395
|
-
"${t}", "${e}", ${
|
|
3806
|
+
"${t}", "${e}", ${je}
|
|
3396
3807
|
)`;
|
|
3397
|
-
function
|
|
3398
|
-
return /* @__PURE__ */ l(
|
|
3399
|
-
"script",
|
|
3400
|
-
{
|
|
3401
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
3402
|
-
"data-id": e.id,
|
|
3403
|
-
nonce: e.nonce || ""
|
|
3404
|
-
}
|
|
3405
|
-
);
|
|
3406
|
-
}
|
|
3407
|
-
function ve(e) {
|
|
3808
|
+
function Se(e) {
|
|
3408
3809
|
return Math.round(e * 1e3) / 1e3;
|
|
3409
3810
|
}
|
|
3410
|
-
const
|
|
3811
|
+
const Xn = (e, t, n = !0) => {
|
|
3411
3812
|
if (!(e instanceof HTMLElement))
|
|
3412
3813
|
return null;
|
|
3413
3814
|
let i = n ? e : e.parentElement;
|
|
@@ -3418,39 +3819,39 @@ const Mn = (e, t, n = !0) => {
|
|
|
3418
3819
|
return i;
|
|
3419
3820
|
} while (i = i.parentElement);
|
|
3420
3821
|
return null;
|
|
3421
|
-
},
|
|
3822
|
+
}, Zn = (e) => Xn(e, (t) => {
|
|
3422
3823
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3423
3824
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3424
|
-
}),
|
|
3825
|
+
}), ke = ({
|
|
3425
3826
|
event: e,
|
|
3426
3827
|
target: t
|
|
3427
3828
|
}) => {
|
|
3428
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
3829
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Se(i / n.width), o = Se(a / n.height);
|
|
3429
3830
|
return {
|
|
3430
3831
|
x: r,
|
|
3431
|
-
y:
|
|
3832
|
+
y: o
|
|
3432
3833
|
};
|
|
3433
|
-
},
|
|
3434
|
-
const t = e.target, n = t &&
|
|
3834
|
+
}, ei = (e) => {
|
|
3835
|
+
const t = e.target, n = t && Zn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3435
3836
|
return {
|
|
3436
3837
|
targetBuilderElement: i || void 0,
|
|
3437
3838
|
metadata: {
|
|
3438
|
-
targetOffset: t ?
|
|
3839
|
+
targetOffset: t ? ke({
|
|
3439
3840
|
event: e,
|
|
3440
3841
|
target: t
|
|
3441
3842
|
}) : void 0,
|
|
3442
|
-
builderTargetOffset: n ?
|
|
3843
|
+
builderTargetOffset: n ? ke({
|
|
3443
3844
|
event: e,
|
|
3444
3845
|
target: n
|
|
3445
3846
|
}) : void 0,
|
|
3446
3847
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3447
3848
|
}
|
|
3448
3849
|
};
|
|
3449
|
-
},
|
|
3450
|
-
var r,
|
|
3451
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3452
|
-
let
|
|
3453
|
-
if (i && t && n && (
|
|
3850
|
+
}, ti = ["svelte", "qwik", "vue"], Ce = () => ti.includes(F) && (W() || G()), ni = (e) => {
|
|
3851
|
+
var r, o;
|
|
3852
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3853
|
+
let a = "";
|
|
3854
|
+
if (i && t && n && (a += `
|
|
3454
3855
|
@font-face {
|
|
3455
3856
|
font-family: "${t}";
|
|
3456
3857
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -3458,29 +3859,29 @@ font-display: fallback;
|
|
|
3458
3859
|
font-weight: 400;
|
|
3459
3860
|
}
|
|
3460
3861
|
`.trim()), e.files)
|
|
3461
|
-
for (const
|
|
3462
|
-
if (!(String(Number(
|
|
3862
|
+
for (const l in e.files) {
|
|
3863
|
+
if (!(String(Number(l)) === l))
|
|
3463
3864
|
continue;
|
|
3464
|
-
const c = e.files[
|
|
3465
|
-
c && c !== i && (
|
|
3865
|
+
const c = e.files[l];
|
|
3866
|
+
c && c !== i && (a += `
|
|
3466
3867
|
@font-face {
|
|
3467
3868
|
font-family: "${t}";
|
|
3468
3869
|
src: url('${c}') format('woff2');
|
|
3469
3870
|
font-display: fallback;
|
|
3470
|
-
font-weight: ${
|
|
3871
|
+
font-weight: ${l};
|
|
3471
3872
|
}
|
|
3472
3873
|
`.trim());
|
|
3473
3874
|
}
|
|
3474
|
-
return
|
|
3475
|
-
},
|
|
3875
|
+
return a;
|
|
3876
|
+
}, ii = ({
|
|
3476
3877
|
customFonts: e
|
|
3477
3878
|
}) => {
|
|
3478
3879
|
var t;
|
|
3479
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3480
|
-
},
|
|
3880
|
+
return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
|
|
3881
|
+
}, ai = ({
|
|
3481
3882
|
cssCode: e,
|
|
3482
3883
|
contentId: t
|
|
3483
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
3884
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
|
|
3484
3885
|
.builder-button {
|
|
3485
3886
|
all: unset;
|
|
3486
3887
|
}
|
|
@@ -3497,103 +3898,103 @@ font-weight: ${s};
|
|
|
3497
3898
|
text-align: inherit;
|
|
3498
3899
|
font-family: inherit;
|
|
3499
3900
|
}
|
|
3500
|
-
`,
|
|
3501
|
-
function
|
|
3502
|
-
var
|
|
3901
|
+
`, ri = (e) => e ? "" : oi, li = (e) => `variant-${e}`;
|
|
3902
|
+
function si(e) {
|
|
3903
|
+
var x, T, P;
|
|
3503
3904
|
const t = D(null);
|
|
3504
|
-
function n(
|
|
3505
|
-
var
|
|
3506
|
-
const
|
|
3905
|
+
function n(I) {
|
|
3906
|
+
var m, p;
|
|
3907
|
+
const S = {
|
|
3507
3908
|
...e.builderContextSignal.rootState,
|
|
3508
|
-
...
|
|
3909
|
+
...I
|
|
3509
3910
|
};
|
|
3510
|
-
e.builderContextSignal.rootSetState ? (
|
|
3511
|
-
...
|
|
3512
|
-
rootState:
|
|
3911
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, S) : e.setBuilderContextSignal((C) => ({
|
|
3912
|
+
...C,
|
|
3913
|
+
rootState: S
|
|
3513
3914
|
}));
|
|
3514
3915
|
}
|
|
3515
|
-
function i(
|
|
3516
|
-
var
|
|
3517
|
-
const
|
|
3916
|
+
function i(I) {
|
|
3917
|
+
var m, p, C, w, B;
|
|
3918
|
+
const S = {
|
|
3518
3919
|
...e.builderContextSignal.content,
|
|
3519
|
-
...
|
|
3920
|
+
...I,
|
|
3520
3921
|
data: {
|
|
3521
|
-
...(
|
|
3522
|
-
...
|
|
3922
|
+
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
3923
|
+
...I == null ? void 0 : I.data
|
|
3523
3924
|
},
|
|
3524
3925
|
meta: {
|
|
3525
|
-
...(
|
|
3526
|
-
...
|
|
3527
|
-
breakpoints: ((
|
|
3926
|
+
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
3927
|
+
...I == null ? void 0 : I.meta,
|
|
3928
|
+
breakpoints: ((C = I == null ? void 0 : I.meta) == null ? void 0 : C.breakpoints) || ((B = (w = e.builderContextSignal.content) == null ? void 0 : w.meta) == null ? void 0 : B.breakpoints)
|
|
3528
3929
|
}
|
|
3529
3930
|
};
|
|
3530
|
-
e.setBuilderContextSignal((
|
|
3531
|
-
...
|
|
3532
|
-
content:
|
|
3931
|
+
e.setBuilderContextSignal((N) => ({
|
|
3932
|
+
...N,
|
|
3933
|
+
content: S
|
|
3533
3934
|
}));
|
|
3534
3935
|
}
|
|
3535
|
-
function
|
|
3936
|
+
function a() {
|
|
3536
3937
|
return e.showContent ? {} : {
|
|
3537
3938
|
hidden: !0,
|
|
3538
3939
|
"aria-hidden": !0
|
|
3539
3940
|
};
|
|
3540
3941
|
}
|
|
3541
|
-
const [r,
|
|
3942
|
+
const [r, o] = E(
|
|
3542
3943
|
() => e.contentWrapper || "div"
|
|
3543
3944
|
);
|
|
3544
|
-
function
|
|
3545
|
-
return
|
|
3945
|
+
function l(I) {
|
|
3946
|
+
return Je({
|
|
3546
3947
|
model: e.model,
|
|
3547
3948
|
trustedHosts: e.trustedHosts,
|
|
3548
3949
|
callbacks: {
|
|
3549
|
-
configureSdk: (
|
|
3550
|
-
var
|
|
3551
|
-
const { breakpoints:
|
|
3552
|
-
!
|
|
3950
|
+
configureSdk: (S) => {
|
|
3951
|
+
var C;
|
|
3952
|
+
const { breakpoints: m, contentId: p } = S;
|
|
3953
|
+
!p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
|
|
3553
3954
|
meta: {
|
|
3554
|
-
breakpoints:
|
|
3955
|
+
breakpoints: m
|
|
3555
3956
|
}
|
|
3556
3957
|
});
|
|
3557
3958
|
},
|
|
3558
|
-
animation: (
|
|
3559
|
-
|
|
3959
|
+
animation: (S) => {
|
|
3960
|
+
$e(S);
|
|
3560
3961
|
},
|
|
3561
|
-
contentUpdate: (
|
|
3562
|
-
i(
|
|
3962
|
+
contentUpdate: (S) => {
|
|
3963
|
+
i(S);
|
|
3563
3964
|
}
|
|
3564
3965
|
}
|
|
3565
|
-
})(
|
|
3966
|
+
})(I);
|
|
3566
3967
|
}
|
|
3567
|
-
const [
|
|
3568
|
-
function
|
|
3569
|
-
var
|
|
3968
|
+
const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [f, k] = E(() => !1);
|
|
3969
|
+
function d(I) {
|
|
3970
|
+
var S, m;
|
|
3570
3971
|
if (e.builderContextSignal.content) {
|
|
3571
|
-
const
|
|
3572
|
-
|
|
3972
|
+
const p = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
3973
|
+
me({
|
|
3573
3974
|
apiHost: e.apiHost,
|
|
3574
3975
|
type: "click",
|
|
3575
|
-
canTrack:
|
|
3576
|
-
contentId:
|
|
3976
|
+
canTrack: _(e.canTrack),
|
|
3977
|
+
contentId: C,
|
|
3577
3978
|
apiKey: e.apiKey,
|
|
3578
|
-
variationId:
|
|
3579
|
-
...
|
|
3580
|
-
unique: !
|
|
3979
|
+
variationId: p !== C ? p : void 0,
|
|
3980
|
+
...ei(I),
|
|
3981
|
+
unique: !f
|
|
3581
3982
|
});
|
|
3582
3983
|
}
|
|
3583
|
-
|
|
3984
|
+
f || k(!0);
|
|
3584
3985
|
}
|
|
3585
|
-
function
|
|
3586
|
-
var
|
|
3587
|
-
const
|
|
3588
|
-
Object.entries(
|
|
3589
|
-
if (!
|
|
3986
|
+
function b() {
|
|
3987
|
+
var S, m, p;
|
|
3988
|
+
const I = (p = (m = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
3989
|
+
Object.entries(I).forEach(([C, w]) => {
|
|
3990
|
+
if (!w || h[C] || u[C] && !W())
|
|
3590
3991
|
return;
|
|
3591
|
-
h[
|
|
3592
|
-
const
|
|
3992
|
+
h[C] = !0;
|
|
3993
|
+
const B = w.replace(
|
|
3593
3994
|
/{{([^}]+)}}/g,
|
|
3594
|
-
(
|
|
3995
|
+
(N, j) => String(
|
|
3595
3996
|
O({
|
|
3596
|
-
code:
|
|
3997
|
+
code: j,
|
|
3597
3998
|
context: e.context || {},
|
|
3598
3999
|
localState: void 0,
|
|
3599
4000
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -3601,19 +4002,19 @@ function Zn(e) {
|
|
|
3601
4002
|
})
|
|
3602
4003
|
)
|
|
3603
4004
|
);
|
|
3604
|
-
|
|
4005
|
+
we(B), fetch(B).then((N) => N.json()).then((N) => {
|
|
3605
4006
|
n({
|
|
3606
|
-
[
|
|
3607
|
-
}),
|
|
3608
|
-
}).catch((
|
|
3609
|
-
console.error("error fetching dynamic data",
|
|
4007
|
+
[C]: N
|
|
4008
|
+
}), u[C] = !0;
|
|
4009
|
+
}).catch((N) => {
|
|
4010
|
+
console.error("error fetching dynamic data", w, N);
|
|
3610
4011
|
}).finally(() => {
|
|
3611
|
-
h[
|
|
4012
|
+
h[C] = !1;
|
|
3612
4013
|
});
|
|
3613
4014
|
});
|
|
3614
4015
|
}
|
|
3615
|
-
function
|
|
3616
|
-
|
|
4016
|
+
function v() {
|
|
4017
|
+
W() && window.dispatchEvent(
|
|
3617
4018
|
new CustomEvent(
|
|
3618
4019
|
"builder:component:stateChange",
|
|
3619
4020
|
{
|
|
@@ -3627,11 +4028,11 @@ function Zn(e) {
|
|
|
3627
4028
|
)
|
|
3628
4029
|
);
|
|
3629
4030
|
}
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3632
|
-
var
|
|
3633
|
-
if (
|
|
3634
|
-
if (
|
|
4031
|
+
const y = D(!1);
|
|
4032
|
+
return y.current || (b(), v(), y.current = !0), A(() => {
|
|
4033
|
+
var I, S, m;
|
|
4034
|
+
if (L()) {
|
|
4035
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Me(), ze({
|
|
3635
4036
|
...e.locale ? {
|
|
3636
4037
|
locale: e.locale
|
|
3637
4038
|
} : {},
|
|
@@ -3643,48 +4044,48 @@ function Zn(e) {
|
|
|
3643
4044
|
} : {}
|
|
3644
4045
|
}), Object.values(
|
|
3645
4046
|
e.builderContextSignal.componentInfos
|
|
3646
|
-
).forEach((
|
|
3647
|
-
var
|
|
3648
|
-
if (!e.model || !((
|
|
3649
|
-
const
|
|
3650
|
-
(
|
|
4047
|
+
).forEach((C) => {
|
|
4048
|
+
var w, B;
|
|
4049
|
+
if (!e.model || !((w = C.models) != null && w.length) || C.models.includes(e.model)) {
|
|
4050
|
+
const N = Ke(C);
|
|
4051
|
+
(B = window.parent) == null || B.postMessage(N, "*");
|
|
3651
4052
|
}
|
|
3652
4053
|
}), window.addEventListener(
|
|
3653
4054
|
"builder:component:stateChangeListenerActivated",
|
|
3654
|
-
|
|
3655
|
-
)), e.builderContextSignal.content &&
|
|
3656
|
-
const
|
|
3657
|
-
|
|
4055
|
+
v
|
|
4056
|
+
)), e.builderContextSignal.content && _(e.canTrack)) {
|
|
4057
|
+
const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, B = e.apiKey;
|
|
4058
|
+
me({
|
|
3658
4059
|
apiHost: e.apiHost,
|
|
3659
4060
|
type: "impression",
|
|
3660
4061
|
canTrack: !0,
|
|
3661
|
-
contentId:
|
|
3662
|
-
apiKey:
|
|
3663
|
-
variationId:
|
|
4062
|
+
contentId: w,
|
|
4063
|
+
apiKey: B,
|
|
4064
|
+
variationId: C !== w ? C : void 0
|
|
3664
4065
|
});
|
|
3665
4066
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
const
|
|
3668
|
-
`builder.overrides.${
|
|
3669
|
-
),
|
|
3670
|
-
(
|
|
4067
|
+
if (G() && !W()) {
|
|
4068
|
+
const C = new URL(location.href).searchParams, w = C.get("builder.preview"), B = C.get(
|
|
4069
|
+
`builder.overrides.${w}`
|
|
4070
|
+
), N = C.get("apiKey") || C.get("builder.space");
|
|
4071
|
+
(w === "BUILDER_STUDIO" || w === e.model && N === e.apiKey && (!e.content || B === e.content.id)) && Ie({
|
|
3671
4072
|
model: e.model || "",
|
|
3672
4073
|
apiKey: e.apiKey,
|
|
3673
4074
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
3674
|
-
...
|
|
4075
|
+
...w === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
|
|
3675
4076
|
query: {
|
|
3676
4077
|
id: e.context.symbolId
|
|
3677
4078
|
}
|
|
3678
4079
|
} : {}
|
|
3679
|
-
}).then((
|
|
3680
|
-
|
|
4080
|
+
}).then((j) => {
|
|
4081
|
+
j && i(j);
|
|
3681
4082
|
});
|
|
3682
4083
|
}
|
|
3683
4084
|
}
|
|
3684
4085
|
}, []), A(() => {
|
|
3685
4086
|
e.content && i(e.content);
|
|
3686
4087
|
}, [e.content]), A(() => {
|
|
3687
|
-
|
|
4088
|
+
v();
|
|
3688
4089
|
}, [e.builderContextSignal.rootState]), A(() => {
|
|
3689
4090
|
e.data && n(e.data);
|
|
3690
4091
|
}, [e.data]), A(() => {
|
|
@@ -3692,44 +4093,44 @@ function Zn(e) {
|
|
|
3692
4093
|
locale: e.locale
|
|
3693
4094
|
});
|
|
3694
4095
|
}, [e.locale]), A(() => () => {
|
|
3695
|
-
|
|
4096
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3696
4097
|
"builder:component:stateChangeListenerActivated",
|
|
3697
|
-
|
|
4098
|
+
v
|
|
3698
4099
|
));
|
|
3699
|
-
}, []), /* @__PURE__ */
|
|
4100
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
|
|
3700
4101
|
r,
|
|
3701
4102
|
{
|
|
3702
4103
|
ref: t,
|
|
3703
|
-
onClick: (
|
|
3704
|
-
"builder-content-id": (
|
|
4104
|
+
onClick: (I) => d(I),
|
|
4105
|
+
"builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
|
|
3705
4106
|
"builder-model": e.model,
|
|
3706
|
-
className:
|
|
3707
|
-
((
|
|
4107
|
+
className: li(
|
|
4108
|
+
((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
3708
4109
|
),
|
|
3709
4110
|
style: {
|
|
3710
|
-
display: !e.builderContextSignal.content &&
|
|
4111
|
+
display: !e.builderContextSignal.content && Ce() ? "none" : void 0
|
|
3711
4112
|
},
|
|
3712
|
-
...
|
|
4113
|
+
...a(),
|
|
3713
4114
|
...e.contentWrapperProps,
|
|
3714
4115
|
children: e.children
|
|
3715
4116
|
}
|
|
3716
4117
|
) : null });
|
|
3717
4118
|
}
|
|
3718
|
-
function
|
|
4119
|
+
function ci(e) {
|
|
3719
4120
|
const [t, n] = E(
|
|
3720
4121
|
() => `
|
|
3721
|
-
${
|
|
4122
|
+
${ai({
|
|
3722
4123
|
cssCode: e.cssCode,
|
|
3723
4124
|
contentId: e.contentId
|
|
3724
4125
|
})}
|
|
3725
|
-
${
|
|
4126
|
+
${ii({
|
|
3726
4127
|
customFonts: e.customFonts
|
|
3727
4128
|
})}
|
|
3728
|
-
${
|
|
4129
|
+
${ri(e.isNestedRender)}
|
|
3729
4130
|
`.trim()
|
|
3730
4131
|
);
|
|
3731
|
-
return /* @__PURE__ */
|
|
3732
|
-
|
|
4132
|
+
return /* @__PURE__ */ s(
|
|
4133
|
+
H,
|
|
3733
4134
|
{
|
|
3734
4135
|
id: "builderio-content",
|
|
3735
4136
|
styles: t,
|
|
@@ -3737,24 +4138,24 @@ ${Qn(e.isNestedRender)}
|
|
|
3737
4138
|
}
|
|
3738
4139
|
);
|
|
3739
4140
|
}
|
|
3740
|
-
const
|
|
4141
|
+
const ui = ({
|
|
3741
4142
|
content: e,
|
|
3742
4143
|
data: t,
|
|
3743
4144
|
locale: n
|
|
3744
4145
|
}) => {
|
|
3745
|
-
var r,
|
|
3746
|
-
const i = {},
|
|
3747
|
-
return (
|
|
3748
|
-
|
|
4146
|
+
var r, o, l;
|
|
4147
|
+
const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
4148
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((u) => {
|
|
4149
|
+
u.name && u.defaultValue !== void 0 && (i[u.name] = u.defaultValue);
|
|
3749
4150
|
}), {
|
|
3750
4151
|
...i,
|
|
3751
|
-
...
|
|
4152
|
+
...a,
|
|
3752
4153
|
...t,
|
|
3753
4154
|
...n ? {
|
|
3754
4155
|
locale: n
|
|
3755
4156
|
} : {}
|
|
3756
4157
|
};
|
|
3757
|
-
},
|
|
4158
|
+
}, di = ({
|
|
3758
4159
|
content: e,
|
|
3759
4160
|
data: t
|
|
3760
4161
|
}) => e ? {
|
|
@@ -3765,46 +4166,46 @@ const ti = ({
|
|
|
3765
4166
|
},
|
|
3766
4167
|
meta: e == null ? void 0 : e.meta
|
|
3767
4168
|
} : void 0;
|
|
3768
|
-
function
|
|
3769
|
-
var c, h, g,
|
|
4169
|
+
function Te(e) {
|
|
4170
|
+
var c, h, g, f, k, d, b, v, y;
|
|
3770
4171
|
const [t, n] = E(
|
|
3771
4172
|
() => {
|
|
3772
|
-
var
|
|
3773
|
-
return
|
|
4173
|
+
var x, T;
|
|
4174
|
+
return Yn({
|
|
3774
4175
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3775
|
-
variationId: (
|
|
4176
|
+
variationId: (x = e.content) == null ? void 0 : x.testVariationId,
|
|
3776
4177
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3777
|
-
contentId: (
|
|
4178
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
3778
4179
|
});
|
|
3779
4180
|
}
|
|
3780
4181
|
);
|
|
3781
|
-
function i(
|
|
3782
|
-
|
|
3783
|
-
...
|
|
3784
|
-
rootState:
|
|
4182
|
+
function i(x) {
|
|
4183
|
+
l((T) => ({
|
|
4184
|
+
...T,
|
|
4185
|
+
rootState: x
|
|
3785
4186
|
}));
|
|
3786
4187
|
}
|
|
3787
|
-
const [
|
|
4188
|
+
const [a, r] = E(
|
|
3788
4189
|
() => [
|
|
3789
4190
|
...xe(),
|
|
3790
4191
|
...e.customComponents || []
|
|
3791
4192
|
].reduce(
|
|
3792
|
-
(
|
|
3793
|
-
...
|
|
3794
|
-
[
|
|
3795
|
-
component:
|
|
3796
|
-
...
|
|
4193
|
+
(x, { component: T, ...P }) => ({
|
|
4194
|
+
...x,
|
|
4195
|
+
[P.name]: {
|
|
4196
|
+
component: T,
|
|
4197
|
+
...fe(P)
|
|
3797
4198
|
}
|
|
3798
4199
|
}),
|
|
3799
4200
|
{}
|
|
3800
4201
|
)
|
|
3801
|
-
), [
|
|
3802
|
-
content:
|
|
4202
|
+
), [o, l] = E(() => ({
|
|
4203
|
+
content: di({
|
|
3803
4204
|
content: e.content,
|
|
3804
4205
|
data: e.data
|
|
3805
4206
|
}),
|
|
3806
4207
|
localState: void 0,
|
|
3807
|
-
rootState:
|
|
4208
|
+
rootState: ui({
|
|
3808
4209
|
content: e.content,
|
|
3809
4210
|
data: e.data,
|
|
3810
4211
|
locale: e.locale
|
|
@@ -3818,9 +4219,9 @@ function Ce(e) {
|
|
|
3818
4219
|
...xe(),
|
|
3819
4220
|
...e.customComponents || []
|
|
3820
4221
|
].reduce(
|
|
3821
|
-
(
|
|
3822
|
-
...
|
|
3823
|
-
[
|
|
4222
|
+
(x, { component: T, ...P }) => ({
|
|
4223
|
+
...x,
|
|
4224
|
+
[P.name]: fe(P)
|
|
3824
4225
|
}),
|
|
3825
4226
|
{}
|
|
3826
4227
|
),
|
|
@@ -3829,31 +4230,31 @@ function Ce(e) {
|
|
|
3829
4230
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
3830
4231
|
nonce: e.nonce || "",
|
|
3831
4232
|
model: e.model || ""
|
|
3832
|
-
})),
|
|
3833
|
-
if (!
|
|
4233
|
+
})), u = D(!1);
|
|
4234
|
+
if (!u.current) {
|
|
3834
4235
|
e.apiKey || oe.error(
|
|
3835
4236
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3836
4237
|
);
|
|
3837
|
-
const
|
|
3838
|
-
|
|
3839
|
-
code:
|
|
4238
|
+
const x = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4239
|
+
x && O({
|
|
4240
|
+
code: x,
|
|
3840
4241
|
context: e.context || {},
|
|
3841
4242
|
localState: void 0,
|
|
3842
|
-
rootState:
|
|
3843
|
-
rootSetState: (
|
|
3844
|
-
Object.assign(
|
|
4243
|
+
rootState: o.rootState,
|
|
4244
|
+
rootSetState: (T) => {
|
|
4245
|
+
Object.assign(o.rootState, T);
|
|
3845
4246
|
},
|
|
3846
4247
|
isExpression: !1
|
|
3847
|
-
}),
|
|
4248
|
+
}), u.current = !0;
|
|
3848
4249
|
}
|
|
3849
|
-
return /* @__PURE__ */
|
|
3850
|
-
|
|
4250
|
+
return /* @__PURE__ */ s(
|
|
4251
|
+
Ve.Provider,
|
|
3851
4252
|
{
|
|
3852
4253
|
value: {
|
|
3853
|
-
registeredComponents:
|
|
4254
|
+
registeredComponents: a
|
|
3854
4255
|
},
|
|
3855
|
-
children: /* @__PURE__ */
|
|
3856
|
-
|
|
4256
|
+
children: /* @__PURE__ */ V(
|
|
4257
|
+
si,
|
|
3857
4258
|
{
|
|
3858
4259
|
apiHost: e.apiHost,
|
|
3859
4260
|
nonce: e.nonce,
|
|
@@ -3866,37 +4267,37 @@ function Ce(e) {
|
|
|
3866
4267
|
locale: e.locale,
|
|
3867
4268
|
enrich: e.enrich,
|
|
3868
4269
|
showContent: e.showContent,
|
|
3869
|
-
builderContextSignal:
|
|
4270
|
+
builderContextSignal: o,
|
|
3870
4271
|
contentWrapper: e.contentWrapper,
|
|
3871
4272
|
contentWrapperProps: e.contentWrapperProps,
|
|
3872
4273
|
trustedHosts: e.trustedHosts,
|
|
3873
4274
|
isNestedRender: e.isNestedRender,
|
|
3874
|
-
setBuilderContextSignal:
|
|
4275
|
+
setBuilderContextSignal: l,
|
|
3875
4276
|
children: [
|
|
3876
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3877
|
-
|
|
4277
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4278
|
+
J,
|
|
3878
4279
|
{
|
|
3879
4280
|
id: "builderio-variant-visibility",
|
|
3880
4281
|
scriptStr: t,
|
|
3881
4282
|
nonce: e.nonce || ""
|
|
3882
4283
|
}
|
|
3883
4284
|
) : null,
|
|
3884
|
-
/* @__PURE__ */
|
|
3885
|
-
|
|
4285
|
+
/* @__PURE__ */ s(
|
|
4286
|
+
ci,
|
|
3886
4287
|
{
|
|
3887
4288
|
nonce: e.nonce || "",
|
|
3888
4289
|
isNestedRender: e.isNestedRender,
|
|
3889
|
-
contentId: (g =
|
|
3890
|
-
cssCode: (
|
|
3891
|
-
customFonts: (
|
|
4290
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4291
|
+
cssCode: (k = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : k.cssCode,
|
|
4292
|
+
customFonts: (b = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : b.customFonts
|
|
3892
4293
|
}
|
|
3893
4294
|
),
|
|
3894
|
-
/* @__PURE__ */
|
|
3895
|
-
|
|
4295
|
+
/* @__PURE__ */ s(
|
|
4296
|
+
$,
|
|
3896
4297
|
{
|
|
3897
|
-
blocks: (
|
|
3898
|
-
context:
|
|
3899
|
-
registeredComponents:
|
|
4298
|
+
blocks: (y = (v = o.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
|
|
4299
|
+
context: o,
|
|
4300
|
+
registeredComponents: a,
|
|
3900
4301
|
linkComponent: e.linkComponent
|
|
3901
4302
|
}
|
|
3902
4303
|
)
|
|
@@ -3906,71 +4307,71 @@ function Ce(e) {
|
|
|
3906
4307
|
}
|
|
3907
4308
|
);
|
|
3908
4309
|
}
|
|
3909
|
-
function
|
|
3910
|
-
var
|
|
4310
|
+
function mi(e) {
|
|
4311
|
+
var o;
|
|
3911
4312
|
const [t, n] = E(
|
|
3912
|
-
() =>
|
|
3913
|
-
canTrack:
|
|
4313
|
+
() => Kn({
|
|
4314
|
+
canTrack: _(e.canTrack),
|
|
3914
4315
|
content: e.content
|
|
3915
4316
|
})
|
|
3916
4317
|
);
|
|
3917
4318
|
function i() {
|
|
3918
|
-
var
|
|
3919
|
-
return
|
|
3920
|
-
|
|
3921
|
-
id:
|
|
3922
|
-
testRatio:
|
|
4319
|
+
var l;
|
|
4320
|
+
return Qn(
|
|
4321
|
+
z(e.content).map((u) => ({
|
|
4322
|
+
id: u.testVariationId,
|
|
4323
|
+
testRatio: u.testRatio
|
|
3923
4324
|
})),
|
|
3924
|
-
((
|
|
4325
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3925
4326
|
);
|
|
3926
4327
|
}
|
|
3927
|
-
function
|
|
3928
|
-
return
|
|
4328
|
+
function a() {
|
|
4329
|
+
return z(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3929
4330
|
}
|
|
3930
4331
|
function r() {
|
|
3931
|
-
var
|
|
4332
|
+
var l;
|
|
3932
4333
|
return t ? {
|
|
3933
4334
|
...e.content,
|
|
3934
|
-
testVariationId: (
|
|
3935
|
-
} :
|
|
4335
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4336
|
+
} : Ge({
|
|
3936
4337
|
item: e.content,
|
|
3937
|
-
canTrack:
|
|
4338
|
+
canTrack: _(e.canTrack)
|
|
3938
4339
|
});
|
|
3939
4340
|
}
|
|
3940
4341
|
return A(() => {
|
|
3941
|
-
}, []), /* @__PURE__ */
|
|
3942
|
-
!e.isNestedRender &&
|
|
3943
|
-
|
|
4342
|
+
}, []), /* @__PURE__ */ V(R, { children: [
|
|
4343
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(
|
|
4344
|
+
J,
|
|
3944
4345
|
{
|
|
3945
4346
|
id: "builderio-init-variants-fns",
|
|
3946
|
-
scriptStr:
|
|
4347
|
+
scriptStr: Gn(),
|
|
3947
4348
|
nonce: e.nonce || ""
|
|
3948
4349
|
}
|
|
3949
4350
|
) : null,
|
|
3950
|
-
t ? /* @__PURE__ */
|
|
3951
|
-
/* @__PURE__ */
|
|
3952
|
-
|
|
4351
|
+
t ? /* @__PURE__ */ V(R, { children: [
|
|
4352
|
+
/* @__PURE__ */ s(
|
|
4353
|
+
H,
|
|
3953
4354
|
{
|
|
3954
4355
|
id: "builderio-variants",
|
|
3955
|
-
styles:
|
|
4356
|
+
styles: a(),
|
|
3956
4357
|
nonce: e.nonce || ""
|
|
3957
4358
|
}
|
|
3958
4359
|
),
|
|
3959
|
-
/* @__PURE__ */
|
|
3960
|
-
|
|
4360
|
+
/* @__PURE__ */ s(
|
|
4361
|
+
J,
|
|
3961
4362
|
{
|
|
3962
4363
|
id: "builderio-variants-visibility",
|
|
3963
4364
|
scriptStr: i(),
|
|
3964
4365
|
nonce: e.nonce || ""
|
|
3965
4366
|
}
|
|
3966
4367
|
),
|
|
3967
|
-
(
|
|
3968
|
-
|
|
4368
|
+
(o = z(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4369
|
+
Te,
|
|
3969
4370
|
{
|
|
3970
4371
|
apiHost: e.apiHost,
|
|
3971
4372
|
isNestedRender: e.isNestedRender,
|
|
3972
4373
|
nonce: e.nonce,
|
|
3973
|
-
content:
|
|
4374
|
+
content: l,
|
|
3974
4375
|
showContent: !1,
|
|
3975
4376
|
model: e.model,
|
|
3976
4377
|
data: e.data,
|
|
@@ -3989,11 +4390,11 @@ function ii(e) {
|
|
|
3989
4390
|
contentWrapperProps: e.contentWrapperProps,
|
|
3990
4391
|
trustedHosts: e.trustedHosts
|
|
3991
4392
|
},
|
|
3992
|
-
|
|
4393
|
+
l.testVariationId
|
|
3993
4394
|
))
|
|
3994
4395
|
] }) : null,
|
|
3995
|
-
/* @__PURE__ */
|
|
3996
|
-
|
|
4396
|
+
/* @__PURE__ */ s(
|
|
4397
|
+
Te,
|
|
3997
4398
|
{
|
|
3998
4399
|
apiHost: e.apiHost,
|
|
3999
4400
|
nonce: e.nonce,
|
|
@@ -4020,7 +4421,7 @@ function ii(e) {
|
|
|
4020
4421
|
)
|
|
4021
4422
|
] });
|
|
4022
4423
|
}
|
|
4023
|
-
const
|
|
4424
|
+
const fi = async ({
|
|
4024
4425
|
builderContextValue: e,
|
|
4025
4426
|
symbol: t
|
|
4026
4427
|
}) => {
|
|
@@ -4039,8 +4440,8 @@ const oi = async ({
|
|
|
4039
4440
|
oe.error("Could not fetch symbol content: ", n);
|
|
4040
4441
|
});
|
|
4041
4442
|
};
|
|
4042
|
-
function
|
|
4043
|
-
var
|
|
4443
|
+
function hi(e) {
|
|
4444
|
+
var l, u, c, h;
|
|
4044
4445
|
function t() {
|
|
4045
4446
|
return "div";
|
|
4046
4447
|
}
|
|
@@ -4048,20 +4449,20 @@ function ai(e) {
|
|
|
4048
4449
|
return "div";
|
|
4049
4450
|
}
|
|
4050
4451
|
function i() {
|
|
4051
|
-
var g,
|
|
4452
|
+
var g, f;
|
|
4052
4453
|
return [
|
|
4053
|
-
e.attributes[
|
|
4454
|
+
e.attributes[q()],
|
|
4054
4455
|
"builder-symbol",
|
|
4055
4456
|
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4056
|
-
(
|
|
4457
|
+
(f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4057
4458
|
].filter(Boolean).join(" ");
|
|
4058
4459
|
}
|
|
4059
|
-
const [
|
|
4460
|
+
const [a, r] = E(() => {
|
|
4060
4461
|
var g;
|
|
4061
4462
|
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4062
4463
|
});
|
|
4063
|
-
function
|
|
4064
|
-
|
|
4464
|
+
function o() {
|
|
4465
|
+
a || fi({
|
|
4065
4466
|
symbol: e.symbol,
|
|
4066
4467
|
builderContextValue: e.builderContext
|
|
4067
4468
|
}).then((g) => {
|
|
@@ -4070,9 +4471,9 @@ function ai(e) {
|
|
|
4070
4471
|
}
|
|
4071
4472
|
return A(() => {
|
|
4072
4473
|
}, []), A(() => {
|
|
4073
|
-
|
|
4074
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4075
|
-
|
|
4474
|
+
o();
|
|
4475
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4476
|
+
mi,
|
|
4076
4477
|
{
|
|
4077
4478
|
nonce: e.builderContext.nonce,
|
|
4078
4479
|
isNestedRender: !0,
|
|
@@ -4080,17 +4481,17 @@ function ai(e) {
|
|
|
4080
4481
|
apiKey: e.builderContext.apiKey,
|
|
4081
4482
|
context: {
|
|
4082
4483
|
...e.builderContext.context,
|
|
4083
|
-
symbolId: (
|
|
4484
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4084
4485
|
},
|
|
4085
4486
|
customComponents: Object.values(e.builderComponents),
|
|
4086
4487
|
data: {
|
|
4087
|
-
...(
|
|
4488
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
4088
4489
|
...e.builderContext.localState,
|
|
4089
|
-
...(c =
|
|
4490
|
+
...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
|
|
4090
4491
|
},
|
|
4091
4492
|
canTrack: e.builderContext.canTrack,
|
|
4092
4493
|
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4093
|
-
content:
|
|
4494
|
+
content: a,
|
|
4094
4495
|
linkComponent: e.builderLinkComponent,
|
|
4095
4496
|
blocksWrapper: t(),
|
|
4096
4497
|
contentWrapper: n()
|
|
@@ -4098,15 +4499,16 @@ function ai(e) {
|
|
|
4098
4499
|
) });
|
|
4099
4500
|
}
|
|
4100
4501
|
export {
|
|
4101
|
-
|
|
4502
|
+
$ as Blocks,
|
|
4102
4503
|
se as BuilderContext,
|
|
4103
4504
|
ot as Button,
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4505
|
+
zt as Columns,
|
|
4506
|
+
mi as Content,
|
|
4507
|
+
Kt as Fragment,
|
|
4508
|
+
Qt as Image,
|
|
4108
4509
|
Yt as Section,
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4510
|
+
hi as Symbol,
|
|
4511
|
+
Sn as Text,
|
|
4512
|
+
Hn as Video,
|
|
4513
|
+
ki as setClientUserAttributes
|
|
4112
4514
|
};
|