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