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