@builder.io/sdk-react 4.0.8 → 4.0.10
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 +92 -64
- package/lib/browser/blocks-exports.mjs +1765 -1650
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-6a0d3985.cjs +2 -0
- package/lib/{edge/server-entry-e9974799.js → browser/server-entry-a97b474c.js} +272 -265
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-8ef468e5.js → accordion-39aaa10f.js} +1 -1
- package/lib/edge/{accordion-94839d7d.cjs → accordion-f19408f1.cjs} +1 -1
- package/lib/edge/{blocks-548ec8c2.js → blocks-204bcb03.js} +179 -176
- package/lib/edge/{blocks-7e8837dc.cjs → blocks-bd4d19a4.cjs} +3 -3
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-66c37b9c.cjs → button-39adadab.cjs} +1 -1
- package/lib/edge/{button-09f38c2e.js → button-eb4a1fce.js} +2 -2
- package/lib/edge/{columns-67ded4b4.cjs → columns-3954e4e2.cjs} +3 -3
- package/lib/edge/{columns-42cbe467.js → columns-d3cef236.js} +9 -9
- package/lib/edge/content-variants-0c41aa3b.cjs +302 -0
- package/lib/edge/{content-variants-5a4eecaf.js → content-variants-68bbb30c.js} +650 -367
- package/lib/edge/{custom-code-ea534e98.cjs → custom-code-eded3b35.cjs} +1 -1
- package/lib/edge/{custom-code-cf216b27.js → custom-code-f8374f7b.js} +1 -1
- package/lib/edge/{embed-12b85639.js → embed-2b4ce9d5.js} +1 -1
- package/lib/edge/{embed-7ca4af6e.cjs → embed-44dee332.cjs} +1 -1
- package/lib/edge/form-1493caf1.cjs +1 -0
- package/lib/edge/form-9faf63c9.js +178 -0
- package/lib/edge/{get-class-prop-name-316a93c9.cjs → get-class-prop-name-a9265175.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-90df5962.js → get-class-prop-name-cc48fc17.js} +1 -1
- package/lib/edge/{image-e38bd9e0.cjs → image-cce92f6c.cjs} +2 -2
- package/lib/edge/{image-acc1c00c.js → image-d87761af.js} +18 -18
- package/lib/edge/{img-ee2838af.js → img-58c08dd4.js} +1 -1
- package/lib/edge/{img-81a7f4d7.cjs → img-b8d85bad.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-b8907c7d.js → input-a7c01b3a.js} +1 -1
- package/lib/edge/{input-231ec63f.cjs → input-d988f887.cjs} +1 -1
- package/lib/edge/personalization-container-2f2bfa1b.cjs +1 -0
- package/lib/edge/personalization-container-9ae00624.js +208 -0
- package/lib/edge/{select-b1650a75.cjs → select-03b307f2.cjs} +1 -1
- package/lib/edge/{select-ffee7a69.js → select-4f03decc.js} +1 -1
- package/lib/{node/server-entry-2b91f2d9.js → edge/server-entry-0fe1fd76.js} +306 -303
- package/lib/edge/server-entry-e13b9b35.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-ddddba8d.cjs → slot-125b0593.cjs} +1 -1
- package/lib/edge/{slot-fe93ec42.js → slot-ff90c844.js} +3 -3
- package/lib/edge/{symbol-c266ba83.js → symbol-7558aa24.js} +2 -2
- package/lib/edge/{symbol-d9175a66.cjs → symbol-da3ec542.cjs} +1 -1
- package/lib/edge/{tabs-f76f757a.cjs → tabs-3cf7cfd3.cjs} +1 -1
- package/lib/edge/{tabs-3481a6f6.js → tabs-a9e56d82.js} +3 -3
- package/lib/node/blocks-exports.cjs +92 -64
- package/lib/node/blocks-exports.mjs +1675 -1560
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +3 -3
- package/lib/{browser/server-entry-d0b98fb0.js → node/server-entry-23f9b44b.js} +205 -199
- package/lib/node/server-entry-ceef853b.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-26e766c5.cjs → setIvm-71bce8c3.cjs} +1 -1
- package/lib/node/{setIvm-419a94e0.js → setIvm-b29cbc40.js} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-67506521.js → should-force-browser-runtime-in-node-5a2ea9eb.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-fe3d9cb0.cjs → should-force-browser-runtime-in-node-e0147364.cjs} +1 -1
- package/package.json +2 -2
- package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +4 -1
- package/types/blocks/personalization-container/helpers.d.ts +24 -4
- package/types/blocks/personalization-container/personalization-container.types.d.ts +2 -2
- package/types/components/blocks/blocks-wrapper.d.ts +13 -1
- package/types/components/blocks/blocks.types.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/no-serialize-wrapper.d.ts +1 -0
- package/types/helpers/user-attributes.d.ts +6 -2
- package/lib/browser/server-entry-8ea5d047.cjs +0 -2
- package/lib/edge/content-variants-cf107f82.cjs +0 -137
- package/lib/edge/form-85ea06df.cjs +0 -1
- package/lib/edge/form-f1188ad2.js +0 -166
- package/lib/edge/personalization-container-896a298a.js +0 -384
- package/lib/edge/personalization-container-95cba946.cjs +0 -138
- package/lib/edge/server-entry-1b560ddb.cjs +0 -2
- package/lib/node/server-entry-03fc1c6d.cjs +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
import { getFunctionArguments as
|
|
8
|
-
import { shouldForceBrowserRuntimeInNode as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return /* @__PURE__ */ s(
|
|
2
|
+
import { TARGET as F, isBrowser as K, logger as Z, checkIsDefined as ge, isPreviewing as oe, isEditing as O, userAttributesService as Ce, getDefaultCanTrack as X, logFetch as Fe, registerInsertMenu as lt, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Te, fetchOneEntry as Le, createEditorListener as dt, serializeIncludingFunctions as Ie, handleABTestingSync as mt } from "./server-entry-23f9b44b.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-23f9b44b.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
|
|
5
|
+
import * as ft from "react";
|
|
6
|
+
import { createContext as Oe, useEffect as V, useState as C, useRef as H, useContext as we, createElement as _e } from "react";
|
|
7
|
+
import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as Ue, fastClone as ye } from "./setIvm-b29cbc40.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-5a2ea9eb.js";
|
|
9
|
+
const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
|
|
10
|
+
function pe(e) {
|
|
11
|
+
return /* @__PURE__ */ s(R, { children: St(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
12
12
|
}
|
|
13
13
|
const j = () => {
|
|
14
|
-
switch (
|
|
14
|
+
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
17
17
|
case "rsc":
|
|
@@ -24,7 +24,7 @@ const j = () => {
|
|
|
24
24
|
return "class";
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
function
|
|
27
|
+
function kt(e) {
|
|
28
28
|
function t() {
|
|
29
29
|
return {
|
|
30
30
|
...e.attributes,
|
|
@@ -39,7 +39,7 @@ function dt(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
pe,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function dt(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const ve = Oe({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,87 +63,87 @@ const me = Ae({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}),
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a,
|
|
66
|
+
}), He = Oe({ registeredComponents: {} }), Me = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
68
68
|
return i === void 0 || i === e ? n : i;
|
|
69
|
-
},
|
|
69
|
+
}, Ct = ({
|
|
70
70
|
code: e,
|
|
71
71
|
builder: t,
|
|
72
72
|
context: n,
|
|
73
73
|
event: i,
|
|
74
74
|
localState: a,
|
|
75
|
-
rootSetState:
|
|
76
|
-
rootState:
|
|
75
|
+
rootSetState: o,
|
|
76
|
+
rootState: r
|
|
77
77
|
}) => {
|
|
78
|
-
const l =
|
|
78
|
+
const l = ht({
|
|
79
79
|
builder: t,
|
|
80
80
|
context: n,
|
|
81
81
|
event: i,
|
|
82
|
-
state:
|
|
83
|
-
rootState:
|
|
82
|
+
state: gt({
|
|
83
|
+
rootState: r,
|
|
84
84
|
localState: a,
|
|
85
|
-
rootSetState:
|
|
85
|
+
rootSetState: o
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
|
-
return new Function(...l.map(([
|
|
89
|
-
},
|
|
88
|
+
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
89
|
+
}, Tt = (e) => K() || vt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ?
|
|
92
|
-
var t, n, i, a,
|
|
93
|
-
return ((i = (n = (t =
|
|
91
|
+
}) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
|
|
92
|
+
var t, n, i, a, o, r;
|
|
93
|
+
return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function J({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
100
|
rootSetState: a,
|
|
101
|
-
event:
|
|
102
|
-
isExpression:
|
|
101
|
+
event: o,
|
|
102
|
+
isExpression: r = !0
|
|
103
103
|
}) {
|
|
104
104
|
if (e.trim() === "")
|
|
105
105
|
return;
|
|
106
|
-
const l =
|
|
106
|
+
const l = Et(e.trim());
|
|
107
107
|
if (l)
|
|
108
|
-
return
|
|
108
|
+
return Me({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
|
-
const
|
|
113
|
-
code:
|
|
114
|
-
isExpression:
|
|
112
|
+
const c = {
|
|
113
|
+
code: yt(e, {
|
|
114
|
+
isExpression: r
|
|
115
115
|
}),
|
|
116
|
-
builder:
|
|
116
|
+
builder: pt(),
|
|
117
117
|
context: t,
|
|
118
|
-
event:
|
|
118
|
+
event: o,
|
|
119
119
|
rootSetState: a,
|
|
120
120
|
rootState: i,
|
|
121
121
|
localState: n
|
|
122
122
|
};
|
|
123
123
|
try {
|
|
124
|
-
return
|
|
125
|
-
} catch (
|
|
126
|
-
|
|
124
|
+
return Tt(c);
|
|
125
|
+
} catch (u) {
|
|
126
|
+
Z.error("Failed code evaluation: " + u.message, {
|
|
127
127
|
code: e
|
|
128
128
|
});
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Rt(e, t) {
|
|
133
133
|
var n;
|
|
134
134
|
return {
|
|
135
135
|
...(n = e.component) == null ? void 0 : n.options,
|
|
136
136
|
...e.options,
|
|
137
|
-
...
|
|
137
|
+
...Pt(e, t)
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
const
|
|
140
|
+
const Pt = (e, t) => {
|
|
141
141
|
var n, i;
|
|
142
142
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
143
143
|
return {
|
|
144
144
|
...e.component.options,
|
|
145
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a,
|
|
146
|
-
code:
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, o) => J({
|
|
146
|
+
code: o,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
149
149
|
rootState: t.rootState,
|
|
@@ -151,68 +151,68 @@ const yt = (e, t) => {
|
|
|
151
151
|
}))
|
|
152
152
|
};
|
|
153
153
|
};
|
|
154
|
-
function
|
|
154
|
+
function Vt(e, ...t) {
|
|
155
155
|
const n = Object.assign({}, e);
|
|
156
156
|
for (const i of t)
|
|
157
157
|
delete n[i];
|
|
158
158
|
return n;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
161
161
|
if (e == null || typeof e != "object") {
|
|
162
|
-
t(e, (
|
|
163
|
-
n !== null && i !== null && (n[i] =
|
|
162
|
+
t(e, (o) => {
|
|
163
|
+
n !== null && i !== null && (n[i] = o);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((
|
|
168
|
-
t(
|
|
169
|
-
e[
|
|
170
|
-
}),
|
|
171
|
-
}) : Object.entries(e).forEach(([
|
|
172
|
-
t(
|
|
173
|
-
e[
|
|
174
|
-
}),
|
|
167
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
168
|
+
t(o, (c) => {
|
|
169
|
+
e[r] = c;
|
|
170
|
+
}), re(o, t, e, r, a);
|
|
171
|
+
}) : Object.entries(e).forEach(([o, r]) => {
|
|
172
|
+
t(r, (c) => {
|
|
173
|
+
e[o] = c;
|
|
174
|
+
}), re(r, t, e, o, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function qe(e) {
|
|
178
178
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function At(e) {
|
|
181
181
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
182
182
|
return !1;
|
|
183
183
|
let t = !1;
|
|
184
|
-
return
|
|
185
|
-
if (
|
|
184
|
+
return re(e, (n) => {
|
|
185
|
+
if (qe(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
191
|
+
function Bt(e, t) {
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
|
|
193
193
|
var a;
|
|
194
|
-
|
|
194
|
+
qe(n) && i((a = n[t]) != null ? a : void 0);
|
|
195
195
|
}), e);
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Nt(e, t) {
|
|
198
198
|
var n, i;
|
|
199
|
-
return (n = e.component) != null && n.options &&
|
|
199
|
+
return (n = e.component) != null && n.options && At((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Bt(e.component.options, t != null ? t : "Default")), e;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function be(e) {
|
|
202
202
|
if (e === null || typeof e != "object")
|
|
203
203
|
return e;
|
|
204
204
|
if (Array.isArray(e))
|
|
205
|
-
return e.map((n) =>
|
|
205
|
+
return e.map((n) => be(n));
|
|
206
206
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
207
207
|
return e;
|
|
208
208
|
const t = {};
|
|
209
209
|
for (const n in e)
|
|
210
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
210
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
|
|
211
211
|
return t;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
if (
|
|
215
|
-
const t =
|
|
213
|
+
const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
|
|
214
|
+
if ($t) {
|
|
215
|
+
const t = ye(e);
|
|
216
216
|
return {
|
|
217
217
|
...t,
|
|
218
218
|
properties: {
|
|
@@ -223,7 +223,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = be(Vt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -236,7 +236,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
|
|
|
236
236
|
meta: e.meta
|
|
237
237
|
};
|
|
238
238
|
}
|
|
239
|
-
},
|
|
239
|
+
}, Dt = ({
|
|
240
240
|
block: e,
|
|
241
241
|
context: t,
|
|
242
242
|
localState: n,
|
|
@@ -245,170 +245,170 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), Tt = (e) =
|
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const
|
|
249
|
-
for (const
|
|
250
|
-
const l = e.bindings[
|
|
248
|
+
const o = Wt(e);
|
|
249
|
+
for (const r in e.bindings) {
|
|
250
|
+
const l = e.bindings[r], c = J({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
254
|
rootSetState: a,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
Ue(o, r, c);
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return o;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function Ft({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
266
|
rootSetState: a
|
|
267
267
|
}) {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
block:
|
|
268
|
+
let o = Nt(e, i.locale);
|
|
269
|
+
return o = o, Dt({
|
|
270
|
+
block: o,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
273
|
rootSetState: a,
|
|
274
274
|
context: t
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
function
|
|
279
|
-
let i, a,
|
|
280
|
-
const
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
277
|
+
const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
+
function Lt(e, t, n = {}) {
|
|
279
|
+
let i, a, o, r = null, l = 0;
|
|
280
|
+
const c = function() {
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
|
-
const
|
|
285
|
-
!l && n.leading === !1 && (l =
|
|
286
|
-
const
|
|
287
|
-
return i = this, a = arguments,
|
|
284
|
+
const u = Date.now();
|
|
285
|
+
!l && n.leading === !1 && (l = u);
|
|
286
|
+
const f = t - (u - l);
|
|
287
|
+
return i = this, a = arguments, f <= 0 || f > t ? (r && (clearTimeout(r), r = null), l = u, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(c, f)), o;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Y(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
293
|
const a = arguments[i];
|
|
294
294
|
if (a != null)
|
|
295
|
-
for (const
|
|
296
|
-
Object.prototype.hasOwnProperty.call(a,
|
|
295
|
+
for (const o in a)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(a, o) && (n[o] = a[o]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
300
|
-
function
|
|
300
|
+
function Ot(e) {
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
304
|
-
|
|
304
|
+
Ke(t);
|
|
305
305
|
break;
|
|
306
306
|
case "scrollInView":
|
|
307
|
-
|
|
307
|
+
Ut(t);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function je(e) {
|
|
312
312
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
315
|
-
const n =
|
|
316
|
-
for (const l of
|
|
317
|
-
for (const
|
|
318
|
-
|
|
314
|
+
function ze(e, t) {
|
|
315
|
+
const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
|
|
316
|
+
for (const l of r)
|
|
317
|
+
for (const c of n)
|
|
318
|
+
c in l || (l[c] = i[c]);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function _t(e) {
|
|
321
321
|
const t = [];
|
|
322
322
|
for (const n of e.steps)
|
|
323
323
|
for (const i in n.styles)
|
|
324
324
|
t.indexOf(i) === -1 && t.push(i);
|
|
325
325
|
return t;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Ke(e) {
|
|
328
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
329
|
if (!t.length) {
|
|
330
|
-
|
|
330
|
+
je(e.elementId || e.id || "");
|
|
331
331
|
return;
|
|
332
332
|
}
|
|
333
333
|
Array.from(t).forEach((n) => {
|
|
334
|
-
|
|
335
|
-
n.style.transition = `all ${e.duration}s ${
|
|
334
|
+
ze(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Y(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Y(n.style, e.steps[1].styles), setTimeout(() => {
|
|
336
336
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
337
337
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function Ut(e) {
|
|
342
342
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
343
343
|
if (!t.length) {
|
|
344
|
-
|
|
344
|
+
je(e.elementId || e.id || "");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
|
-
|
|
348
|
+
ze(e, n);
|
|
349
349
|
let i = !1, a = !1;
|
|
350
|
-
function
|
|
350
|
+
function o() {
|
|
351
351
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
|
-
|
|
352
|
+
Y(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
353
353
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, Y(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const r = Lt(o, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
|
-
function l(
|
|
361
|
-
const b =
|
|
362
|
-
return b.bottom >
|
|
360
|
+
function l(f) {
|
|
361
|
+
const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
|
|
362
|
+
return b.bottom > d && b.top < m - d;
|
|
363
363
|
}
|
|
364
|
-
const
|
|
365
|
-
function
|
|
366
|
-
|
|
364
|
+
const c = e.steps[0].styles;
|
|
365
|
+
function u() {
|
|
366
|
+
Y(n.style, c);
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
n.style.transition = `all ${e.duration}s ${
|
|
370
|
-
}), document.addEventListener("scroll",
|
|
368
|
+
u(), setTimeout(() => {
|
|
369
|
+
n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
+
}), document.addEventListener("scroll", r, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
|
-
}),
|
|
373
|
+
}), o();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Je = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
|
-
return `${
|
|
379
|
-
}).filter(
|
|
380
|
-
`),
|
|
378
|
+
return `${le(n)}: ${i};`;
|
|
379
|
+
}).filter(ge), Ht = (e) => Je(e).join(`
|
|
380
|
+
`), Q = ({
|
|
381
381
|
mediaQuery: e,
|
|
382
382
|
className: t,
|
|
383
383
|
styles: n
|
|
384
384
|
}) => {
|
|
385
385
|
const i = `.${t} {
|
|
386
|
-
${
|
|
386
|
+
${Ht(n)}
|
|
387
387
|
}`;
|
|
388
388
|
return e ? `${e} {
|
|
389
389
|
${i}
|
|
390
390
|
}` : i;
|
|
391
391
|
};
|
|
392
|
-
function
|
|
392
|
+
function Mt({
|
|
393
393
|
style: e
|
|
394
394
|
}) {
|
|
395
395
|
return e;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const qt = ({
|
|
398
398
|
block: e,
|
|
399
399
|
context: t
|
|
400
|
-
}) =>
|
|
400
|
+
}) => Ge(Mt({
|
|
401
401
|
style: e.style || {},
|
|
402
402
|
context: t,
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
|
-
function
|
|
406
|
-
switch (
|
|
405
|
+
function Ge(e) {
|
|
406
|
+
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
410
410
|
case "angular":
|
|
411
|
-
return
|
|
411
|
+
return Je(e).join(" ");
|
|
412
412
|
case "qwik":
|
|
413
413
|
case "reactNative":
|
|
414
414
|
case "react":
|
|
@@ -416,24 +416,24 @@ function qe(e) {
|
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const Qe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
|
|
420
420
|
block: e,
|
|
421
421
|
registeredComponents: t,
|
|
422
422
|
model: n
|
|
423
423
|
}) => {
|
|
424
|
-
var
|
|
425
|
-
const i = (
|
|
424
|
+
var o;
|
|
425
|
+
const i = (o = e.component) == null ? void 0 : o.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
428
|
const a = t[i];
|
|
429
|
-
if (!a ||
|
|
429
|
+
if (!a || Qe(a, n)) {
|
|
430
430
|
console.warn(`
|
|
431
431
|
Could not find a registered component named "${i}".
|
|
432
432
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
433
433
|
return;
|
|
434
434
|
} else
|
|
435
435
|
return a;
|
|
436
|
-
},
|
|
436
|
+
}, zt = ({
|
|
437
437
|
block: e,
|
|
438
438
|
context: t
|
|
439
439
|
}) => {
|
|
@@ -443,7 +443,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
443
443
|
} = e;
|
|
444
444
|
if (!(n != null && n.collection))
|
|
445
445
|
return;
|
|
446
|
-
const a =
|
|
446
|
+
const a = J({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
@@ -452,41 +452,41 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
452
452
|
});
|
|
453
453
|
if (!Array.isArray(a))
|
|
454
454
|
return;
|
|
455
|
-
const
|
|
456
|
-
return a.map((
|
|
455
|
+
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
456
|
+
return a.map((c, u) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
|
-
$index:
|
|
462
|
-
$item:
|
|
463
|
-
[
|
|
464
|
-
[`$${
|
|
461
|
+
$index: u,
|
|
462
|
+
$item: c,
|
|
463
|
+
[r]: c,
|
|
464
|
+
[`$${r}Index`]: u
|
|
465
465
|
}
|
|
466
466
|
},
|
|
467
467
|
block: i
|
|
468
468
|
}));
|
|
469
|
-
},
|
|
469
|
+
}, Kt = (e, t) => {
|
|
470
470
|
var n;
|
|
471
471
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
472
472
|
builderLinkComponent: t
|
|
473
473
|
} : {};
|
|
474
|
-
},
|
|
474
|
+
}, Jt = (e, t, n) => {
|
|
475
475
|
var i;
|
|
476
476
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
477
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([
|
|
477
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !Qe(r, n)))
|
|
478
478
|
} : {};
|
|
479
|
-
},
|
|
479
|
+
}, Gt = (e, t) => {
|
|
480
480
|
var n;
|
|
481
481
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
482
482
|
builderBlock: t
|
|
483
483
|
} : {};
|
|
484
|
-
},
|
|
484
|
+
}, Qt = (e, t) => {
|
|
485
485
|
var n;
|
|
486
486
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
487
487
|
builderContext: t
|
|
488
488
|
} : {};
|
|
489
|
-
},
|
|
489
|
+
}, Ee = (e) => e.toString(), Ye = {
|
|
490
490
|
xsmall: {
|
|
491
491
|
min: 0,
|
|
492
492
|
default: 160,
|
|
@@ -507,8 +507,8 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
507
507
|
default: 991,
|
|
508
508
|
max: 1200
|
|
509
509
|
}
|
|
510
|
-
},
|
|
511
|
-
const t =
|
|
510
|
+
}, ce = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
|
|
511
|
+
const t = ye(Ye);
|
|
512
512
|
if (!e)
|
|
513
513
|
return t;
|
|
514
514
|
const {
|
|
@@ -517,26 +517,26 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
517
517
|
medium: a
|
|
518
518
|
} = e;
|
|
519
519
|
if (n) {
|
|
520
|
-
const
|
|
520
|
+
const c = Math.floor(n / 2);
|
|
521
521
|
t.xsmall = {
|
|
522
522
|
max: n,
|
|
523
|
-
min:
|
|
524
|
-
default:
|
|
523
|
+
min: c,
|
|
524
|
+
default: c + 1
|
|
525
525
|
};
|
|
526
526
|
}
|
|
527
527
|
if (!i || !a)
|
|
528
528
|
return t;
|
|
529
|
-
const
|
|
529
|
+
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
530
|
t.small = {
|
|
531
531
|
max: i,
|
|
532
|
-
min:
|
|
533
|
-
default:
|
|
532
|
+
min: o,
|
|
533
|
+
default: o + 1
|
|
534
534
|
};
|
|
535
|
-
const
|
|
535
|
+
const r = t.small.max + 1;
|
|
536
536
|
t.medium = {
|
|
537
537
|
max: a,
|
|
538
|
-
min:
|
|
539
|
-
default:
|
|
538
|
+
min: r,
|
|
539
|
+
default: r + 1
|
|
540
540
|
};
|
|
541
541
|
const l = t.medium.max + 1;
|
|
542
542
|
return t.large = {
|
|
@@ -546,7 +546,7 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
546
546
|
default: l + 1
|
|
547
547
|
}, t;
|
|
548
548
|
};
|
|
549
|
-
function
|
|
549
|
+
function ee(e) {
|
|
550
550
|
return /* @__PURE__ */ s(
|
|
551
551
|
"style",
|
|
552
552
|
{
|
|
@@ -556,67 +556,67 @@ function K(e) {
|
|
|
556
556
|
}
|
|
557
557
|
);
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Yt(e) {
|
|
560
560
|
function t() {
|
|
561
561
|
const i = e.block;
|
|
562
|
-
return
|
|
562
|
+
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
563
563
|
}
|
|
564
564
|
function n() {
|
|
565
|
-
var
|
|
566
|
-
const i = e.block, a = i.responsiveStyles,
|
|
567
|
-
((
|
|
568
|
-
), l = !!((
|
|
565
|
+
var k, A, T, I, g;
|
|
566
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Xe(
|
|
567
|
+
((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
|
|
568
|
+
), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, f = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, m = i.id;
|
|
569
569
|
if (!m)
|
|
570
570
|
return "";
|
|
571
|
-
const
|
|
571
|
+
const v = c ? Q({
|
|
572
572
|
className: m,
|
|
573
|
-
styles:
|
|
574
|
-
}) : "",
|
|
573
|
+
styles: c
|
|
574
|
+
}) : "", d = u ? Q({
|
|
575
575
|
className: m,
|
|
576
|
-
styles:
|
|
577
|
-
mediaQuery:
|
|
576
|
+
styles: u,
|
|
577
|
+
mediaQuery: ce(
|
|
578
578
|
"medium",
|
|
579
|
-
|
|
579
|
+
r
|
|
580
580
|
)
|
|
581
|
-
}) : "",
|
|
581
|
+
}) : "", h = f ? Q({
|
|
582
582
|
className: m,
|
|
583
|
-
styles:
|
|
584
|
-
mediaQuery:
|
|
583
|
+
styles: f,
|
|
584
|
+
mediaQuery: ce(
|
|
585
585
|
"small",
|
|
586
|
-
|
|
586
|
+
r
|
|
587
587
|
)
|
|
588
|
-
}) : "",
|
|
588
|
+
}) : "", p = b && l ? Q({
|
|
589
589
|
className: m,
|
|
590
590
|
styles: b,
|
|
591
|
-
mediaQuery:
|
|
591
|
+
mediaQuery: ce(
|
|
592
592
|
"xsmall",
|
|
593
|
-
|
|
593
|
+
r
|
|
594
594
|
)
|
|
595
|
-
}) : "",
|
|
596
|
-
let
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
|
|
595
|
+
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
596
|
+
let S = "";
|
|
597
|
+
if (y) {
|
|
598
|
+
const x = ((g = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : g.styles) || {};
|
|
599
|
+
S = Q({
|
|
600
600
|
className: `${m}:hover`,
|
|
601
601
|
styles: {
|
|
602
|
-
...
|
|
603
|
-
transition: `all ${
|
|
604
|
-
|
|
602
|
+
...x,
|
|
603
|
+
transition: `all ${y.duration}s ${le(
|
|
604
|
+
y.easing
|
|
605
605
|
)}`,
|
|
606
|
-
transitionDelay:
|
|
606
|
+
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
607
607
|
}
|
|
608
608
|
}) || "";
|
|
609
609
|
}
|
|
610
610
|
return [
|
|
611
|
-
x,
|
|
612
|
-
u,
|
|
613
|
-
g,
|
|
614
611
|
v,
|
|
615
|
-
|
|
612
|
+
d,
|
|
613
|
+
h,
|
|
614
|
+
p,
|
|
615
|
+
S
|
|
616
616
|
].join(" ");
|
|
617
617
|
}
|
|
618
|
-
return /* @__PURE__ */ s(
|
|
619
|
-
|
|
618
|
+
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
619
|
+
ee,
|
|
620
620
|
{
|
|
621
621
|
id: "builderio-block",
|
|
622
622
|
styles: n(),
|
|
@@ -624,10 +624,10 @@ function Ut(e) {
|
|
|
624
624
|
}
|
|
625
625
|
) }) : null });
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Xt(e) {
|
|
628
628
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
629
|
}
|
|
630
|
-
const
|
|
630
|
+
const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => J({
|
|
631
631
|
code: e,
|
|
632
632
|
context: t.context,
|
|
633
633
|
localState: t.localState,
|
|
@@ -636,66 +636,66 @@ const qt = (e) => `on${_t(e)}`, Ht = (e, t) => (n) => _({
|
|
|
636
636
|
event: n,
|
|
637
637
|
isExpression: !1
|
|
638
638
|
});
|
|
639
|
-
function
|
|
639
|
+
function Ze(e) {
|
|
640
640
|
var i;
|
|
641
641
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
642
|
for (const a in n) {
|
|
643
643
|
if (!n.hasOwnProperty(a))
|
|
644
644
|
continue;
|
|
645
|
-
const
|
|
646
|
-
let
|
|
645
|
+
const o = n[a];
|
|
646
|
+
let r = Zt(a);
|
|
647
647
|
if (e.stripPrefix)
|
|
648
|
-
switch (
|
|
648
|
+
switch (F) {
|
|
649
649
|
case "vue":
|
|
650
|
-
|
|
650
|
+
r = r.replace("v-on:", "");
|
|
651
651
|
break;
|
|
652
652
|
case "svelte":
|
|
653
|
-
|
|
653
|
+
r = r.replace("on:", "");
|
|
654
654
|
break;
|
|
655
655
|
}
|
|
656
|
-
t[
|
|
656
|
+
t[r] = en(o, e);
|
|
657
657
|
}
|
|
658
658
|
return t;
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function tn({
|
|
661
661
|
properties: e
|
|
662
662
|
}) {
|
|
663
663
|
return e;
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const nn = (e) => ({
|
|
666
666
|
href: e.href
|
|
667
667
|
});
|
|
668
|
-
function
|
|
668
|
+
function xe({
|
|
669
669
|
block: e,
|
|
670
670
|
context: t
|
|
671
671
|
}) {
|
|
672
672
|
var i;
|
|
673
673
|
const n = {
|
|
674
|
-
...
|
|
674
|
+
...nn(e),
|
|
675
675
|
...e.properties,
|
|
676
676
|
"builder-id": e.id,
|
|
677
|
-
style:
|
|
677
|
+
style: qt({
|
|
678
678
|
block: e,
|
|
679
679
|
context: t
|
|
680
680
|
}),
|
|
681
681
|
[j()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
682
|
};
|
|
683
|
-
return
|
|
683
|
+
return tn({
|
|
684
684
|
properties: n,
|
|
685
685
|
context: t,
|
|
686
686
|
block: e
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function an(e) {
|
|
690
690
|
return /* @__PURE__ */ s(
|
|
691
|
-
|
|
691
|
+
pe,
|
|
692
692
|
{
|
|
693
693
|
TagName: e.Wrapper,
|
|
694
|
-
attributes:
|
|
694
|
+
attributes: xe({
|
|
695
695
|
block: e.block,
|
|
696
696
|
context: e.context
|
|
697
697
|
}),
|
|
698
|
-
actionAttributes:
|
|
698
|
+
actionAttributes: Ze({
|
|
699
699
|
block: e.block,
|
|
700
700
|
rootState: e.context.rootState,
|
|
701
701
|
rootSetState: e.context.rootSetState,
|
|
@@ -707,20 +707,20 @@ function zt(e) {
|
|
|
707
707
|
}
|
|
708
708
|
);
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
return
|
|
712
|
-
}, []), /* @__PURE__ */ s(
|
|
710
|
+
function rn(e) {
|
|
711
|
+
return V(() => {
|
|
712
|
+
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function on(e) {
|
|
715
715
|
var i, a;
|
|
716
|
-
|
|
716
|
+
C(() => 0);
|
|
717
717
|
function t() {
|
|
718
718
|
return e.includeBlockProps ? {
|
|
719
|
-
...
|
|
719
|
+
...xe({
|
|
720
720
|
block: e.block,
|
|
721
721
|
context: e.context
|
|
722
722
|
}),
|
|
723
|
-
...
|
|
723
|
+
...Ze({
|
|
724
724
|
block: e.block,
|
|
725
725
|
rootState: e.context.rootState,
|
|
726
726
|
rootSetState: e.context.rootSetState,
|
|
@@ -732,9 +732,9 @@ function Jt(e) {
|
|
|
732
732
|
function n() {
|
|
733
733
|
return e.wrapperProps;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
736
|
-
}, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(
|
|
737
|
-
|
|
735
|
+
return V(() => {
|
|
736
|
+
}, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
737
|
+
rn,
|
|
738
738
|
{
|
|
739
739
|
load: e.Wrapper.load,
|
|
740
740
|
fallback: e.Wrapper.fallback,
|
|
@@ -744,14 +744,14 @@ function Jt(e) {
|
|
|
744
744
|
}
|
|
745
745
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
746
746
|
}
|
|
747
|
-
const
|
|
747
|
+
const ln = ({
|
|
748
748
|
componentOptions: e,
|
|
749
749
|
builderBlock: t,
|
|
750
750
|
context: n,
|
|
751
751
|
componentRef: i,
|
|
752
752
|
includeBlockProps: a,
|
|
753
|
-
isInteractive:
|
|
754
|
-
contextValue:
|
|
753
|
+
isInteractive: o,
|
|
754
|
+
contextValue: r
|
|
755
755
|
}) => {
|
|
756
756
|
const l = {
|
|
757
757
|
...e,
|
|
@@ -760,13 +760,13 @@ const Gt = ({
|
|
|
760
760
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
761
761
|
*/
|
|
762
762
|
...a ? {
|
|
763
|
-
attributes:
|
|
763
|
+
attributes: xe({
|
|
764
764
|
block: t,
|
|
765
|
-
context:
|
|
765
|
+
context: r
|
|
766
766
|
})
|
|
767
767
|
} : {}
|
|
768
768
|
};
|
|
769
|
-
return
|
|
769
|
+
return o ? {
|
|
770
770
|
Wrapper: i,
|
|
771
771
|
block: t,
|
|
772
772
|
context: n,
|
|
@@ -774,17 +774,17 @@ const Gt = ({
|
|
|
774
774
|
includeBlockProps: a
|
|
775
775
|
} : l;
|
|
776
776
|
};
|
|
777
|
-
function
|
|
777
|
+
function Re(e) {
|
|
778
778
|
var i;
|
|
779
|
-
|
|
780
|
-
const [t, n] =
|
|
781
|
-
() => e.isInteractive ?
|
|
779
|
+
C(() => !1);
|
|
780
|
+
const [t, n] = C(
|
|
781
|
+
() => e.isInteractive ? on : e.componentRef
|
|
782
782
|
);
|
|
783
|
-
return
|
|
784
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(
|
|
783
|
+
return V(() => {
|
|
784
|
+
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
785
785
|
t,
|
|
786
786
|
{
|
|
787
|
-
...
|
|
787
|
+
...ln({
|
|
788
788
|
componentOptions: e.componentOptions,
|
|
789
789
|
builderBlock: e.builderBlock,
|
|
790
790
|
context: e.context,
|
|
@@ -795,7 +795,7 @@ function Se(e) {
|
|
|
795
795
|
contextValue: e.context
|
|
796
796
|
}),
|
|
797
797
|
children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
798
|
-
|
|
798
|
+
se,
|
|
799
799
|
{
|
|
800
800
|
block: a,
|
|
801
801
|
context: e.context,
|
|
@@ -807,12 +807,12 @@ function Se(e) {
|
|
|
807
807
|
}
|
|
808
808
|
) }) : null });
|
|
809
809
|
}
|
|
810
|
-
function
|
|
811
|
-
const [t, n] =
|
|
812
|
-
return
|
|
810
|
+
function Pe(e) {
|
|
811
|
+
const [t, n] = C(() => e.repeatContext);
|
|
812
|
+
return V(() => {
|
|
813
813
|
n(e.repeatContext);
|
|
814
|
-
}, [e.repeatContext]), /* @__PURE__ */ s(
|
|
815
|
-
|
|
814
|
+
}, [e.repeatContext]), /* @__PURE__ */ s(ve.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
|
+
se,
|
|
816
816
|
{
|
|
817
817
|
block: e.block,
|
|
818
818
|
context: t,
|
|
@@ -821,65 +821,65 @@ function ke(e) {
|
|
|
821
821
|
}
|
|
822
822
|
) });
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
var
|
|
824
|
+
function se(e) {
|
|
825
|
+
var f, b, m, v;
|
|
826
826
|
function t() {
|
|
827
|
-
return
|
|
827
|
+
return zt({
|
|
828
828
|
block: e.block,
|
|
829
829
|
context: e.context
|
|
830
830
|
});
|
|
831
831
|
}
|
|
832
|
-
const [n, i] =
|
|
832
|
+
const [n, i] = C(() => ({
|
|
833
833
|
value: null,
|
|
834
834
|
update: !1
|
|
835
835
|
}));
|
|
836
836
|
function a() {
|
|
837
|
-
var
|
|
838
|
-
if (n.value && !n.update && !
|
|
837
|
+
var h;
|
|
838
|
+
if (n.value && !n.update && !oe())
|
|
839
839
|
return n.value;
|
|
840
|
-
const
|
|
840
|
+
const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
|
|
841
841
|
block: e.block,
|
|
842
842
|
localState: e.context.localState,
|
|
843
843
|
rootState: e.context.rootState,
|
|
844
844
|
rootSetState: e.context.rootSetState,
|
|
845
845
|
context: e.context.context
|
|
846
846
|
});
|
|
847
|
-
return n.value =
|
|
847
|
+
return n.value = d, n.update = !1, d;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
return
|
|
849
|
+
function o() {
|
|
850
|
+
return jt({
|
|
851
851
|
block: a(),
|
|
852
852
|
registeredComponents: e.registeredComponents,
|
|
853
853
|
model: e.context.model
|
|
854
854
|
});
|
|
855
855
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
return e.block.tagName === "a" || ((
|
|
856
|
+
function r() {
|
|
857
|
+
var h;
|
|
858
|
+
return e.block.tagName === "a" || ((h = a().properties) == null ? void 0 : h.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
859
|
}
|
|
860
860
|
function l() {
|
|
861
|
-
var
|
|
862
|
-
if ((
|
|
863
|
-
return !!((
|
|
864
|
-
const
|
|
865
|
-
return ("show" in a() ? a().show : !0) && !
|
|
866
|
-
}
|
|
867
|
-
function d() {
|
|
868
|
-
var g, v;
|
|
869
|
-
return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (v = a().children) != null ? v : [] : [];
|
|
861
|
+
var p, y;
|
|
862
|
+
if ((p = e.block.repeat) != null && p.collection)
|
|
863
|
+
return !!((y = t == null ? void 0 : t()) != null && y.length);
|
|
864
|
+
const d = "hide" in a() ? a().hide : !1;
|
|
865
|
+
return ("show" in a() ? a().show : !0) && !d;
|
|
870
866
|
}
|
|
871
867
|
function c() {
|
|
872
|
-
var
|
|
868
|
+
var h, p;
|
|
869
|
+
return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = a().children) != null ? p : [] : [];
|
|
870
|
+
}
|
|
871
|
+
function u() {
|
|
872
|
+
var d, h, p, y;
|
|
873
873
|
return {
|
|
874
|
-
blockChildren: (
|
|
875
|
-
componentRef: (
|
|
874
|
+
blockChildren: (d = a().children) != null ? d : [],
|
|
875
|
+
componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
|
|
876
876
|
componentOptions: {
|
|
877
|
-
...
|
|
878
|
-
...
|
|
879
|
-
...
|
|
880
|
-
|
|
881
|
-
...
|
|
882
|
-
|
|
877
|
+
...Rt(a(), e.context),
|
|
878
|
+
...Gt(o(), a()),
|
|
879
|
+
...Qt(o(), e.context),
|
|
880
|
+
...Kt(o(), e.linkComponent),
|
|
881
|
+
...Jt(
|
|
882
|
+
o(),
|
|
883
883
|
e.registeredComponents,
|
|
884
884
|
e.context.model
|
|
885
885
|
)
|
|
@@ -888,109 +888,109 @@ function ee(e) {
|
|
|
888
888
|
linkComponent: e.linkComponent,
|
|
889
889
|
registeredComponents: e.registeredComponents,
|
|
890
890
|
builderBlock: a(),
|
|
891
|
-
includeBlockProps: ((
|
|
892
|
-
isInteractive: !((
|
|
891
|
+
includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
|
|
892
|
+
isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
|
-
return
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...
|
|
900
|
-
elementId:
|
|
895
|
+
return V(() => {
|
|
896
|
+
const d = a().id, h = a().animations;
|
|
897
|
+
h && d && Ot(
|
|
898
|
+
h.map((p) => ({
|
|
899
|
+
...p,
|
|
900
|
+
elementId: d
|
|
901
901
|
}))
|
|
902
902
|
);
|
|
903
|
-
}, []),
|
|
903
|
+
}, []), V(() => {
|
|
904
904
|
n.update = !0;
|
|
905
|
-
}), /* @__PURE__ */ s(
|
|
906
|
-
/* @__PURE__ */ s(
|
|
907
|
-
(
|
|
908
|
-
|
|
905
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
|
|
906
|
+
/* @__PURE__ */ s(Yt, { block: a(), context: e.context }),
|
|
907
|
+
(f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
|
|
908
|
+
Pe,
|
|
909
909
|
{
|
|
910
|
-
repeatContext:
|
|
911
|
-
block:
|
|
910
|
+
repeatContext: d.context,
|
|
911
|
+
block: d.block,
|
|
912
912
|
registeredComponents: e.registeredComponents,
|
|
913
913
|
linkComponent: e.linkComponent
|
|
914
914
|
},
|
|
915
|
-
|
|
915
|
+
Ee(h)
|
|
916
916
|
)) }) : /* @__PURE__ */ s(
|
|
917
|
-
|
|
917
|
+
Re,
|
|
918
918
|
{
|
|
919
|
-
componentRef:
|
|
920
|
-
componentOptions:
|
|
921
|
-
blockChildren:
|
|
922
|
-
context:
|
|
923
|
-
registeredComponents:
|
|
924
|
-
linkComponent:
|
|
925
|
-
builderBlock:
|
|
926
|
-
includeBlockProps:
|
|
927
|
-
isInteractive:
|
|
919
|
+
componentRef: u().componentRef,
|
|
920
|
+
componentOptions: u().componentOptions,
|
|
921
|
+
blockChildren: u().blockChildren,
|
|
922
|
+
context: u().context,
|
|
923
|
+
registeredComponents: u().registeredComponents,
|
|
924
|
+
linkComponent: u().linkComponent,
|
|
925
|
+
builderBlock: u().builderBlock,
|
|
926
|
+
includeBlockProps: u().includeBlockProps,
|
|
927
|
+
isInteractive: u().isInteractive
|
|
928
928
|
}
|
|
929
|
-
) : /* @__PURE__ */ s(
|
|
930
|
-
|
|
929
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, h) => /* @__PURE__ */ s(
|
|
930
|
+
Pe,
|
|
931
931
|
{
|
|
932
|
-
repeatContext:
|
|
933
|
-
block:
|
|
932
|
+
repeatContext: d.context,
|
|
933
|
+
block: d.block,
|
|
934
934
|
registeredComponents: e.registeredComponents,
|
|
935
935
|
linkComponent: e.linkComponent
|
|
936
936
|
},
|
|
937
|
-
|
|
938
|
-
)) }) : /* @__PURE__ */
|
|
939
|
-
|
|
937
|
+
Ee(h)
|
|
938
|
+
)) }) : /* @__PURE__ */ $(
|
|
939
|
+
an,
|
|
940
940
|
{
|
|
941
|
-
Wrapper:
|
|
941
|
+
Wrapper: r(),
|
|
942
942
|
block: a(),
|
|
943
943
|
context: e.context,
|
|
944
944
|
children: [
|
|
945
945
|
/* @__PURE__ */ s(
|
|
946
|
-
|
|
946
|
+
Re,
|
|
947
947
|
{
|
|
948
|
-
componentRef:
|
|
949
|
-
componentOptions:
|
|
950
|
-
blockChildren:
|
|
951
|
-
context:
|
|
952
|
-
registeredComponents:
|
|
953
|
-
linkComponent:
|
|
954
|
-
builderBlock:
|
|
955
|
-
includeBlockProps:
|
|
956
|
-
isInteractive:
|
|
948
|
+
componentRef: u().componentRef,
|
|
949
|
+
componentOptions: u().componentOptions,
|
|
950
|
+
blockChildren: u().blockChildren,
|
|
951
|
+
context: u().context,
|
|
952
|
+
registeredComponents: u().registeredComponents,
|
|
953
|
+
linkComponent: u().linkComponent,
|
|
954
|
+
builderBlock: u().builderBlock,
|
|
955
|
+
includeBlockProps: u().includeBlockProps,
|
|
956
|
+
isInteractive: u().isInteractive
|
|
957
957
|
}
|
|
958
958
|
),
|
|
959
|
-
(b =
|
|
960
|
-
|
|
959
|
+
(b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
|
|
960
|
+
se,
|
|
961
961
|
{
|
|
962
|
-
block:
|
|
962
|
+
block: d,
|
|
963
963
|
registeredComponents: e.registeredComponents,
|
|
964
964
|
linkComponent: e.linkComponent,
|
|
965
965
|
context: e.context
|
|
966
966
|
},
|
|
967
|
-
|
|
967
|
+
d.id
|
|
968
968
|
))
|
|
969
969
|
]
|
|
970
970
|
}
|
|
971
971
|
) })
|
|
972
972
|
] }) : null });
|
|
973
973
|
}
|
|
974
|
-
function
|
|
975
|
-
const t =
|
|
976
|
-
|
|
974
|
+
function sn(e) {
|
|
975
|
+
const t = H(null);
|
|
976
|
+
C(() => !1);
|
|
977
977
|
function n() {
|
|
978
|
-
var
|
|
978
|
+
var r;
|
|
979
979
|
return [
|
|
980
980
|
"builder-blocks",
|
|
981
|
-
(
|
|
981
|
+
(r = e.blocks) != null && r.length ? "" : "no-blocks",
|
|
982
982
|
e.classNameProp
|
|
983
983
|
].filter(Boolean).join(" ");
|
|
984
984
|
}
|
|
985
985
|
function i() {
|
|
986
986
|
if (!e.path)
|
|
987
987
|
return;
|
|
988
|
-
const
|
|
989
|
-
return e.path.startsWith(
|
|
988
|
+
const r = "this.", l = "component.options.";
|
|
989
|
+
return e.path.startsWith(r) ? e.path.replace(r, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
990
990
|
}
|
|
991
991
|
function a() {
|
|
992
|
-
var
|
|
993
|
-
|
|
992
|
+
var r, l;
|
|
993
|
+
O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
994
|
{
|
|
995
995
|
type: "builder.clickEmptyBlocks",
|
|
996
996
|
data: {
|
|
@@ -1001,9 +1001,9 @@ function Qt(e) {
|
|
|
1001
1001
|
"*"
|
|
1002
1002
|
));
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1004
|
+
function o() {
|
|
1005
|
+
var r, l;
|
|
1006
|
+
O() && !((r = e.blocks) != null && r.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1007
|
{
|
|
1008
1008
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1009
|
data: {
|
|
@@ -1014,60 +1014,63 @@ function Qt(e) {
|
|
|
1014
1014
|
"*"
|
|
1015
1015
|
));
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1019
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1017
|
+
return V(() => {
|
|
1018
|
+
}, []), V(() => {
|
|
1019
|
+
}, [e.blocks]), /* @__PURE__ */ $(R, { children: [
|
|
1020
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
|
|
1021
|
+
display: flex;
|
|
1022
|
+
flex-direction: column;
|
|
1023
|
+
align-items: stretch;
|
|
1024
|
+
}` }),
|
|
1020
1025
|
/* @__PURE__ */ s(
|
|
1021
1026
|
e.BlocksWrapper,
|
|
1022
1027
|
{
|
|
1023
1028
|
ref: t,
|
|
1024
|
-
className: n() + " props-blocks-wrapper-
|
|
1029
|
+
className: n() + " props-blocks-wrapper-8834791c",
|
|
1025
1030
|
"builder-path": i(),
|
|
1026
1031
|
"builder-parent-id": e.parent,
|
|
1027
1032
|
style: e.styleProp,
|
|
1028
|
-
onClick: (
|
|
1029
|
-
onMouseEnter: (
|
|
1030
|
-
onKeyPress: (
|
|
1033
|
+
onClick: (r) => a(),
|
|
1034
|
+
onMouseEnter: (r) => o(),
|
|
1035
|
+
onKeyPress: (r) => a(),
|
|
1031
1036
|
...e.BlocksWrapperProps,
|
|
1032
1037
|
children: e.children
|
|
1033
1038
|
}
|
|
1034
|
-
)
|
|
1035
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-14802cff {
|
|
1036
|
-
display: flex;
|
|
1037
|
-
flex-direction: column;
|
|
1038
|
-
align-items: stretch;
|
|
1039
|
-
}` })
|
|
1039
|
+
)
|
|
1040
1040
|
] });
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var i, a,
|
|
1044
|
-
const t = ve
|
|
1045
|
-
return /* @__PURE__ */
|
|
1046
|
-
|
|
1042
|
+
function _(e) {
|
|
1043
|
+
var i, a, o;
|
|
1044
|
+
const t = we(ve), n = we(He);
|
|
1045
|
+
return /* @__PURE__ */ $(
|
|
1046
|
+
sn,
|
|
1047
1047
|
{
|
|
1048
1048
|
blocks: e.blocks,
|
|
1049
1049
|
parent: e.parent,
|
|
1050
1050
|
path: e.path,
|
|
1051
1051
|
styleProp: e.styleProp,
|
|
1052
|
+
BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1052
1053
|
classNameProp: e.className,
|
|
1053
|
-
BlocksWrapper: ((
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1054
|
+
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1055
|
+
children: [
|
|
1056
|
+
e.children,
|
|
1057
|
+
e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ s(
|
|
1058
|
+
se,
|
|
1059
|
+
{
|
|
1060
|
+
block: r,
|
|
1061
|
+
linkComponent: e.linkComponent,
|
|
1062
|
+
context: e.context || t,
|
|
1063
|
+
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1064
|
+
},
|
|
1065
|
+
r.id
|
|
1066
|
+
)) }) : null
|
|
1067
|
+
]
|
|
1065
1068
|
}
|
|
1066
1069
|
);
|
|
1067
1070
|
}
|
|
1068
|
-
const
|
|
1069
|
-
function
|
|
1070
|
-
var
|
|
1071
|
+
const cn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1072
|
+
function un(e) {
|
|
1073
|
+
var h, p;
|
|
1071
1074
|
function t() {
|
|
1072
1075
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1073
1076
|
}
|
|
@@ -1077,77 +1080,77 @@ function Xt(e) {
|
|
|
1077
1080
|
function i() {
|
|
1078
1081
|
return e.stackColumnsAt || "tablet";
|
|
1079
1082
|
}
|
|
1080
|
-
function a(
|
|
1081
|
-
return
|
|
1083
|
+
function a(y) {
|
|
1084
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
1082
1085
|
}
|
|
1083
|
-
function
|
|
1084
|
-
var
|
|
1085
|
-
return ((
|
|
1086
|
+
function o(y) {
|
|
1087
|
+
var S;
|
|
1088
|
+
return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1086
1089
|
}
|
|
1087
|
-
function
|
|
1088
|
-
const
|
|
1089
|
-
return `calc(${
|
|
1090
|
+
function r(y) {
|
|
1091
|
+
const S = o(y), k = t() * (n().length - 1) * (S / 100);
|
|
1092
|
+
return `calc(${S}% - ${k}px)`;
|
|
1090
1093
|
}
|
|
1091
1094
|
function l({
|
|
1092
|
-
stackedStyle:
|
|
1093
|
-
desktopStyle:
|
|
1095
|
+
stackedStyle: y,
|
|
1096
|
+
desktopStyle: S
|
|
1094
1097
|
}) {
|
|
1095
|
-
return i() === "tablet" ?
|
|
1098
|
+
return i() === "tablet" ? y : S;
|
|
1096
1099
|
}
|
|
1097
|
-
function
|
|
1098
|
-
stackedStyle:
|
|
1099
|
-
desktopStyle:
|
|
1100
|
+
function c({
|
|
1101
|
+
stackedStyle: y,
|
|
1102
|
+
desktopStyle: S
|
|
1100
1103
|
}) {
|
|
1101
|
-
return i() === "never" ?
|
|
1104
|
+
return i() === "never" ? S : y;
|
|
1102
1105
|
}
|
|
1103
|
-
function
|
|
1106
|
+
function u() {
|
|
1104
1107
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1105
1108
|
}
|
|
1106
|
-
function
|
|
1109
|
+
function f() {
|
|
1107
1110
|
return {
|
|
1108
|
-
"--flex-dir":
|
|
1111
|
+
"--flex-dir": u(),
|
|
1109
1112
|
"--flex-dir-tablet": l({
|
|
1110
|
-
stackedStyle:
|
|
1113
|
+
stackedStyle: u(),
|
|
1111
1114
|
desktopStyle: "row"
|
|
1112
1115
|
})
|
|
1113
1116
|
};
|
|
1114
1117
|
}
|
|
1115
|
-
function b(
|
|
1116
|
-
const
|
|
1118
|
+
function b(y) {
|
|
1119
|
+
const S = y === 0 ? 0 : t(), k = r(y), A = `${S}px`, T = "100%", I = 0;
|
|
1117
1120
|
return {
|
|
1118
1121
|
...{
|
|
1119
1122
|
display: "flex",
|
|
1120
1123
|
flexDirection: "column",
|
|
1121
1124
|
alignItems: "stretch"
|
|
1122
1125
|
},
|
|
1123
|
-
width:
|
|
1124
|
-
["marginLeft"]:
|
|
1125
|
-
"--column-width-mobile":
|
|
1126
|
-
stackedStyle:
|
|
1127
|
-
desktopStyle:
|
|
1126
|
+
width: k,
|
|
1127
|
+
["marginLeft"]: A,
|
|
1128
|
+
"--column-width-mobile": c({
|
|
1129
|
+
stackedStyle: T,
|
|
1130
|
+
desktopStyle: k
|
|
1128
1131
|
}),
|
|
1129
|
-
"--column-margin-left-mobile":
|
|
1130
|
-
stackedStyle:
|
|
1131
|
-
desktopStyle:
|
|
1132
|
+
"--column-margin-left-mobile": c({
|
|
1133
|
+
stackedStyle: I,
|
|
1134
|
+
desktopStyle: A
|
|
1132
1135
|
}),
|
|
1133
1136
|
"--column-width-tablet": l({
|
|
1134
|
-
stackedStyle:
|
|
1135
|
-
desktopStyle:
|
|
1137
|
+
stackedStyle: T,
|
|
1138
|
+
desktopStyle: k
|
|
1136
1139
|
}),
|
|
1137
1140
|
"--column-margin-left-tablet": l({
|
|
1138
|
-
stackedStyle:
|
|
1139
|
-
desktopStyle:
|
|
1141
|
+
stackedStyle: I,
|
|
1142
|
+
desktopStyle: A
|
|
1140
1143
|
})
|
|
1141
1144
|
};
|
|
1142
1145
|
}
|
|
1143
|
-
function m(
|
|
1144
|
-
var
|
|
1145
|
-
return
|
|
1146
|
-
((
|
|
1147
|
-
)[
|
|
1146
|
+
function m(y) {
|
|
1147
|
+
var k, A;
|
|
1148
|
+
return Xe(
|
|
1149
|
+
((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1150
|
+
)[y].max;
|
|
1148
1151
|
}
|
|
1149
|
-
function
|
|
1150
|
-
const
|
|
1152
|
+
function v() {
|
|
1153
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1151
1154
|
return `
|
|
1152
1155
|
@media (max-width: ${m("medium")}px) {
|
|
1153
1156
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -1155,7 +1158,7 @@ function Xt(e) {
|
|
|
1155
1158
|
align-items: stretch;
|
|
1156
1159
|
}
|
|
1157
1160
|
|
|
1158
|
-
${
|
|
1161
|
+
${y} {
|
|
1159
1162
|
width: var(--column-width-tablet) !important;
|
|
1160
1163
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1161
1164
|
}
|
|
@@ -1167,105 +1170,105 @@ function Xt(e) {
|
|
|
1167
1170
|
align-items: stretch;
|
|
1168
1171
|
}
|
|
1169
1172
|
|
|
1170
|
-
${
|
|
1173
|
+
${y} {
|
|
1171
1174
|
width: var(--column-width-mobile) !important;
|
|
1172
1175
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1173
1176
|
}
|
|
1174
1177
|
},
|
|
1175
1178
|
`;
|
|
1176
1179
|
}
|
|
1177
|
-
function
|
|
1180
|
+
function d(y, S) {
|
|
1178
1181
|
return {
|
|
1179
|
-
...
|
|
1180
|
-
href:
|
|
1182
|
+
...y.link ? {
|
|
1183
|
+
href: y.link
|
|
1181
1184
|
} : {},
|
|
1182
1185
|
[j()]: "builder-column",
|
|
1183
|
-
style:
|
|
1186
|
+
style: Ge(b(S))
|
|
1184
1187
|
};
|
|
1185
1188
|
}
|
|
1186
|
-
return /* @__PURE__ */
|
|
1187
|
-
/* @__PURE__ */
|
|
1189
|
+
return /* @__PURE__ */ $(R, { children: [
|
|
1190
|
+
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1191
|
+
display: flex;
|
|
1192
|
+
line-height: normal;
|
|
1193
|
+
height: 100%;
|
|
1194
|
+
}` }),
|
|
1195
|
+
/* @__PURE__ */ $(
|
|
1188
1196
|
"div",
|
|
1189
1197
|
{
|
|
1190
|
-
className:
|
|
1191
|
-
style:
|
|
1198
|
+
className: cn((h = e.builderBlock) == null ? void 0 : h.id) + " div-0369db37",
|
|
1199
|
+
style: f(),
|
|
1192
1200
|
children: [
|
|
1193
1201
|
/* @__PURE__ */ s(
|
|
1194
|
-
|
|
1202
|
+
ee,
|
|
1195
1203
|
{
|
|
1196
1204
|
id: "builderio-columns",
|
|
1197
|
-
styles:
|
|
1205
|
+
styles: v(),
|
|
1198
1206
|
nonce: e.builderContext.nonce
|
|
1199
1207
|
}
|
|
1200
1208
|
),
|
|
1201
|
-
(
|
|
1202
|
-
|
|
1209
|
+
(p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
|
|
1210
|
+
pe,
|
|
1203
1211
|
{
|
|
1204
|
-
TagName: a(
|
|
1212
|
+
TagName: a(y),
|
|
1205
1213
|
actionAttributes: {},
|
|
1206
|
-
attributes:
|
|
1214
|
+
attributes: d(y, S),
|
|
1207
1215
|
children: /* @__PURE__ */ s(
|
|
1208
|
-
|
|
1216
|
+
_,
|
|
1209
1217
|
{
|
|
1210
|
-
path: `columns.${
|
|
1218
|
+
path: `columns.${S}.blocks`,
|
|
1211
1219
|
parent: e.builderBlock.id,
|
|
1212
1220
|
context: e.builderContext,
|
|
1213
1221
|
registeredComponents: e.builderComponents,
|
|
1214
1222
|
linkComponent: e.builderLinkComponent,
|
|
1215
|
-
blocks:
|
|
1223
|
+
blocks: y.blocks,
|
|
1216
1224
|
styleProp: {
|
|
1217
1225
|
flexGrow: "1"
|
|
1218
1226
|
}
|
|
1219
1227
|
}
|
|
1220
1228
|
)
|
|
1221
1229
|
},
|
|
1222
|
-
|
|
1230
|
+
S
|
|
1223
1231
|
))
|
|
1224
1232
|
]
|
|
1225
1233
|
}
|
|
1226
|
-
)
|
|
1227
|
-
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1228
|
-
display: flex;
|
|
1229
|
-
line-height: normal;
|
|
1230
|
-
height: 100%;
|
|
1231
|
-
}` })
|
|
1234
|
+
)
|
|
1232
1235
|
] });
|
|
1233
1236
|
}
|
|
1234
|
-
function
|
|
1237
|
+
function dn(e) {
|
|
1235
1238
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1236
1239
|
}
|
|
1237
|
-
function
|
|
1240
|
+
function Ve(e) {
|
|
1238
1241
|
return e.replace(/http(s)?:/, "");
|
|
1239
1242
|
}
|
|
1240
|
-
function
|
|
1243
|
+
function mn(e = "", t, n) {
|
|
1241
1244
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1242
1245
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1243
1246
|
}
|
|
1244
|
-
function
|
|
1247
|
+
function fn(e, t) {
|
|
1245
1248
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1246
1249
|
return e;
|
|
1247
1250
|
if (t === "master")
|
|
1248
|
-
return
|
|
1251
|
+
return Ve(e);
|
|
1249
1252
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1250
1253
|
if (n) {
|
|
1251
|
-
const i = e.split(n[0]), a = n[3],
|
|
1252
|
-
return
|
|
1254
|
+
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1255
|
+
return Ve(`${i[0]}_${o}${a}`);
|
|
1253
1256
|
}
|
|
1254
1257
|
return null;
|
|
1255
1258
|
}
|
|
1256
|
-
function
|
|
1259
|
+
function ue(e) {
|
|
1257
1260
|
if (!e)
|
|
1258
1261
|
return e;
|
|
1259
1262
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1260
1263
|
if (e.match(/builder\.io/)) {
|
|
1261
1264
|
let n = e;
|
|
1262
1265
|
const i = Number(e.split("?width=")[1]);
|
|
1263
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1266
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1264
1267
|
}
|
|
1265
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1268
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1266
1269
|
}
|
|
1267
|
-
function
|
|
1268
|
-
var a,
|
|
1270
|
+
function hn(e) {
|
|
1271
|
+
var a, o, r, l, c, u;
|
|
1269
1272
|
function t() {
|
|
1270
1273
|
var m;
|
|
1271
1274
|
const b = e.image || e.src;
|
|
@@ -1276,30 +1279,47 @@ function nn(e) {
|
|
|
1276
1279
|
if (!e.noWebp) {
|
|
1277
1280
|
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1278
1281
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1279
|
-
return console.debug("Removed given srcset"),
|
|
1282
|
+
return console.debug("Removed given srcset"), ue(b);
|
|
1280
1283
|
} else if (e.image && !e.srcset)
|
|
1281
|
-
return
|
|
1282
|
-
return
|
|
1284
|
+
return ue(b);
|
|
1285
|
+
return ue(b);
|
|
1283
1286
|
}
|
|
1284
1287
|
}
|
|
1285
1288
|
function n() {
|
|
1286
|
-
var
|
|
1287
|
-
return (
|
|
1289
|
+
var f;
|
|
1290
|
+
return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1288
1291
|
}
|
|
1289
1292
|
function i() {
|
|
1290
|
-
const
|
|
1293
|
+
const f = {
|
|
1291
1294
|
position: "absolute",
|
|
1292
1295
|
height: "100%",
|
|
1293
1296
|
width: "100%",
|
|
1294
1297
|
left: "0px",
|
|
1295
1298
|
top: "0px"
|
|
1296
1299
|
};
|
|
1297
|
-
return e.aspectRatio ?
|
|
1300
|
+
return e.aspectRatio ? f : void 0;
|
|
1298
1301
|
}
|
|
1299
|
-
return
|
|
1300
|
-
}, []), /* @__PURE__ */
|
|
1301
|
-
/* @__PURE__ */
|
|
1302
|
-
|
|
1302
|
+
return V(() => {
|
|
1303
|
+
}, []), /* @__PURE__ */ $(R, { children: [
|
|
1304
|
+
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
|
+
opacity: 1;
|
|
1306
|
+
transition: opacity 0.2s ease-in-out;
|
|
1307
|
+
}.div-3cc22d08 {
|
|
1308
|
+
width: 100%;
|
|
1309
|
+
pointer-events: none;
|
|
1310
|
+
font-size: 0;
|
|
1311
|
+
}.div-3cc22d08-2 {
|
|
1312
|
+
display: flex;
|
|
1313
|
+
flex-direction: column;
|
|
1314
|
+
align-items: stretch;
|
|
1315
|
+
position: absolute;
|
|
1316
|
+
top: 0;
|
|
1317
|
+
left: 0;
|
|
1318
|
+
width: 100%;
|
|
1319
|
+
height: 100%;
|
|
1320
|
+
}` }),
|
|
1321
|
+
/* @__PURE__ */ $(R, { children: [
|
|
1322
|
+
/* @__PURE__ */ $("picture", { children: [
|
|
1303
1323
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1304
1324
|
/* @__PURE__ */ s(
|
|
1305
1325
|
"img",
|
|
@@ -1321,7 +1341,7 @@ function nn(e) {
|
|
|
1321
1341
|
}
|
|
1322
1342
|
)
|
|
1323
1343
|
] }),
|
|
1324
|
-
e.aspectRatio && !((
|
|
1344
|
+
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1325
1345
|
"div",
|
|
1326
1346
|
{
|
|
1327
1347
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1330,29 +1350,12 @@ function nn(e) {
|
|
|
1330
1350
|
}
|
|
1331
1351
|
}
|
|
1332
1352
|
) : null,
|
|
1333
|
-
(l = (
|
|
1334
|
-
!e.fitContent && ((
|
|
1335
|
-
] })
|
|
1336
|
-
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1337
|
-
opacity: 1;
|
|
1338
|
-
transition: opacity 0.2s ease-in-out;
|
|
1339
|
-
}.div-3cc22d08 {
|
|
1340
|
-
width: 100%;
|
|
1341
|
-
pointer-events: none;
|
|
1342
|
-
font-size: 0;
|
|
1343
|
-
}.div-3cc22d08-2 {
|
|
1344
|
-
display: flex;
|
|
1345
|
-
flex-direction: column;
|
|
1346
|
-
align-items: stretch;
|
|
1347
|
-
position: absolute;
|
|
1348
|
-
top: 0;
|
|
1349
|
-
left: 0;
|
|
1350
|
-
width: 100%;
|
|
1351
|
-
height: 100%;
|
|
1352
|
-
}` })
|
|
1353
|
+
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1354
|
+
!e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1355
|
+
] })
|
|
1353
1356
|
] });
|
|
1354
1357
|
}
|
|
1355
|
-
function
|
|
1358
|
+
function gn(e) {
|
|
1356
1359
|
return /* @__PURE__ */ s(
|
|
1357
1360
|
"section",
|
|
1358
1361
|
{
|
|
@@ -1373,96 +1376,361 @@ function an(e) {
|
|
|
1373
1376
|
}
|
|
1374
1377
|
);
|
|
1375
1378
|
}
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1379
|
+
function bn(e, t, n, i) {
|
|
1380
|
+
function a(u) {
|
|
1381
|
+
return typeof u == "string";
|
|
1382
|
+
}
|
|
1383
|
+
function o(u) {
|
|
1384
|
+
return typeof u == "number";
|
|
1385
|
+
}
|
|
1386
|
+
function r(u, f) {
|
|
1387
|
+
return (() => {
|
|
1388
|
+
const m = f.property, v = f.operator;
|
|
1389
|
+
let d = f.value;
|
|
1390
|
+
if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
|
|
1391
|
+
return !0;
|
|
1392
|
+
if (Array.isArray(d))
|
|
1393
|
+
return v === "isNot" ? d.every((p) => r(u, {
|
|
1394
|
+
property: m,
|
|
1395
|
+
operator: v,
|
|
1396
|
+
value: p
|
|
1397
|
+
})) : !!d.find((p) => r(u, {
|
|
1398
|
+
property: m,
|
|
1399
|
+
operator: v,
|
|
1400
|
+
value: p
|
|
1401
|
+
}));
|
|
1402
|
+
const h = u[m];
|
|
1403
|
+
if (Array.isArray(h))
|
|
1404
|
+
return h.includes(d);
|
|
1405
|
+
switch (v) {
|
|
1406
|
+
case "is":
|
|
1407
|
+
return h === d;
|
|
1408
|
+
case "isNot":
|
|
1409
|
+
return h !== d;
|
|
1410
|
+
case "contains":
|
|
1411
|
+
return (a(h) || Array.isArray(h)) && h.includes(String(d));
|
|
1412
|
+
case "startsWith":
|
|
1413
|
+
return a(h) && h.startsWith(String(d));
|
|
1414
|
+
case "endsWith":
|
|
1415
|
+
return a(h) && h.endsWith(String(d));
|
|
1416
|
+
case "greaterThan":
|
|
1417
|
+
return o(h) && o(d) && h > d;
|
|
1418
|
+
case "lessThan":
|
|
1419
|
+
return o(h) && o(d) && h < d;
|
|
1420
|
+
case "greaterThanOrEqualTo":
|
|
1421
|
+
return o(h) && o(d) && h >= d;
|
|
1422
|
+
case "lessThanOrEqualTo":
|
|
1423
|
+
return o(h) && o(d) && h <= d;
|
|
1424
|
+
default:
|
|
1425
|
+
return !1;
|
|
1396
1426
|
}
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1427
|
+
})();
|
|
1428
|
+
}
|
|
1429
|
+
const l = {
|
|
1430
|
+
query: t,
|
|
1431
|
+
startDate: n,
|
|
1432
|
+
endDate: i
|
|
1433
|
+
}, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1434
|
+
return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => r(e, u));
|
|
1435
|
+
}
|
|
1436
|
+
const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1437
|
+
if (!navigator.cookieEnabled) {
|
|
1438
|
+
return;
|
|
1439
|
+
}
|
|
1440
|
+
function getCookie(name) {
|
|
1441
|
+
const nameEQ = name + '=';
|
|
1442
|
+
const ca = document.cookie.split(';');
|
|
1443
|
+
for (let i = 0; i < ca.length; i++) {
|
|
1444
|
+
let c = ca[i];
|
|
1445
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
1446
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
1447
|
+
}
|
|
1448
|
+
return null;
|
|
1449
|
+
}
|
|
1450
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
1451
|
+
if (locale) {
|
|
1452
|
+
attributes.locale = locale;
|
|
1453
|
+
}
|
|
1454
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
1455
|
+
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
1456
|
+
});
|
|
1457
|
+
const parentDiv = document.currentScript?.parentElement;
|
|
1458
|
+
const variantId = parentDiv?.getAttribute('data-variant-id');
|
|
1459
|
+
const isDefaultVariant = variantId === \`\${blockId}-default\`;
|
|
1460
|
+
const isWinningVariant = winningVariantIndex !== -1 && variantId === \`\${blockId}-\${winningVariantIndex}\` || winningVariantIndex === -1 && isDefaultVariant;
|
|
1461
|
+
if (isWinningVariant && !isDefaultVariant) {
|
|
1462
|
+
parentDiv?.removeAttribute('hidden');
|
|
1463
|
+
parentDiv?.removeAttribute('aria-hidden');
|
|
1464
|
+
} else if (!isWinningVariant && isDefaultVariant) {
|
|
1465
|
+
parentDiv?.setAttribute('hidden', 'true');
|
|
1466
|
+
parentDiv?.setAttribute('aria-hidden', 'true');
|
|
1467
|
+
}
|
|
1468
|
+
if (isHydrationTarget) {
|
|
1469
|
+
if (!isWinningVariant) {
|
|
1470
|
+
const itsStyleEl = parentDiv?.previousElementSibling;
|
|
1471
|
+
if (itsStyleEl) {
|
|
1472
|
+
itsStyleEl.remove();
|
|
1402
1473
|
}
|
|
1474
|
+
parentDiv?.remove();
|
|
1403
1475
|
}
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
layerName: "Accordion item detail",
|
|
1408
|
-
responsiveStyles: {
|
|
1409
|
-
large: {
|
|
1410
|
-
position: "relative",
|
|
1411
|
-
display: "flex",
|
|
1412
|
-
alignItems: "stretch",
|
|
1413
|
-
flexDirection: "column",
|
|
1414
|
-
marginTop: "10px",
|
|
1415
|
-
paddingBottom: "10px"
|
|
1476
|
+
const thisScript = document.currentScript;
|
|
1477
|
+
if (thisScript) {
|
|
1478
|
+
thisScript.remove();
|
|
1416
1479
|
}
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1480
|
+
}
|
|
1481
|
+
}`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1482
|
+
function isString(val) {
|
|
1483
|
+
return typeof val === 'string';
|
|
1484
|
+
}
|
|
1485
|
+
function isNumber(val) {
|
|
1486
|
+
return typeof val === 'number';
|
|
1487
|
+
}
|
|
1488
|
+
function objectMatchesQuery(userattr, query) {
|
|
1489
|
+
const result = (() => {
|
|
1490
|
+
const property = query.property;
|
|
1491
|
+
const operator = query.operator;
|
|
1492
|
+
let testValue = query.value;
|
|
1493
|
+
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
1494
|
+
testValue = query.value.slice(0, -1);
|
|
1427
1495
|
}
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
name: "Text",
|
|
1431
|
-
options: {
|
|
1432
|
-
text: "I am an accordion detail, hello!"
|
|
1496
|
+
if (!(property && operator)) {
|
|
1497
|
+
return true;
|
|
1433
1498
|
}
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1499
|
+
if (Array.isArray(testValue)) {
|
|
1500
|
+
if (operator === 'isNot') {
|
|
1501
|
+
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
1502
|
+
property,
|
|
1503
|
+
operator,
|
|
1504
|
+
value: val
|
|
1505
|
+
}));
|
|
1506
|
+
}
|
|
1507
|
+
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
1508
|
+
property,
|
|
1509
|
+
operator,
|
|
1510
|
+
value: val
|
|
1511
|
+
}));
|
|
1512
|
+
}
|
|
1513
|
+
const value = userattr[property];
|
|
1514
|
+
if (Array.isArray(value)) {
|
|
1515
|
+
return value.includes(testValue);
|
|
1516
|
+
}
|
|
1517
|
+
switch (operator) {
|
|
1518
|
+
case 'is':
|
|
1519
|
+
return value === testValue;
|
|
1520
|
+
case 'isNot':
|
|
1521
|
+
return value !== testValue;
|
|
1522
|
+
case 'contains':
|
|
1523
|
+
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
1524
|
+
case 'startsWith':
|
|
1525
|
+
return isString(value) && value.startsWith(String(testValue));
|
|
1526
|
+
case 'endsWith':
|
|
1527
|
+
return isString(value) && value.endsWith(String(testValue));
|
|
1528
|
+
case 'greaterThan':
|
|
1529
|
+
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
1530
|
+
case 'lessThan':
|
|
1531
|
+
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
1532
|
+
case 'greaterThanOrEqualTo':
|
|
1533
|
+
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
1534
|
+
case 'lessThanOrEqualTo':
|
|
1535
|
+
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
1536
|
+
default:
|
|
1537
|
+
return false;
|
|
1538
|
+
}
|
|
1539
|
+
})();
|
|
1540
|
+
return result;
|
|
1541
|
+
}
|
|
1542
|
+
const item = {
|
|
1543
|
+
query,
|
|
1544
|
+
startDate,
|
|
1545
|
+
endDate
|
|
1546
|
+
};
|
|
1547
|
+
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
1548
|
+
if (item.startDate && new Date(item.startDate) > now) {
|
|
1549
|
+
return false;
|
|
1550
|
+
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
1551
|
+
return false;
|
|
1552
|
+
}
|
|
1553
|
+
if (!item.query || !item.query.length) {
|
|
1554
|
+
return true;
|
|
1555
|
+
}
|
|
1556
|
+
return item.query.every(filter => {
|
|
1557
|
+
return objectMatchesQuery(userAttributes, filter);
|
|
1558
|
+
});
|
|
1559
|
+
}`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1560
|
+
function getCookie(name) {
|
|
1561
|
+
const nameEQ = name + '=';
|
|
1562
|
+
const ca = document.cookie.split(';');
|
|
1563
|
+
for (let i = 0; i < ca.length; i++) {
|
|
1564
|
+
let c = ca[i];
|
|
1565
|
+
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
1566
|
+
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
1567
|
+
}
|
|
1568
|
+
return null;
|
|
1569
|
+
}
|
|
1570
|
+
const visibilityStylesEl = document.currentScript?.previousElementSibling;
|
|
1571
|
+
if (!visibilityStylesEl) {
|
|
1572
|
+
return;
|
|
1573
|
+
}
|
|
1574
|
+
if (isHydrationTarget) {
|
|
1575
|
+
visibilityStylesEl.remove();
|
|
1576
|
+
const currentScript = document.currentScript;
|
|
1577
|
+
if (currentScript) {
|
|
1578
|
+
currentScript.remove();
|
|
1579
|
+
}
|
|
1580
|
+
} else {
|
|
1581
|
+
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
1582
|
+
if (locale) {
|
|
1583
|
+
attributes.locale = locale;
|
|
1584
|
+
}
|
|
1585
|
+
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
1586
|
+
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
1587
|
+
});
|
|
1588
|
+
if (winningVariantIndex !== -1) {
|
|
1589
|
+
let newStyleStr = variants?.map((_, index) => {
|
|
1590
|
+
if (index === winningVariantIndex) return '';
|
|
1591
|
+
return \`div[data-variant-id="\${blockId}-\${index}"] { display: none !important; } \`;
|
|
1592
|
+
}).join('') || '';
|
|
1593
|
+
newStyleStr += \`div[data-variant-id="\${blockId}-default"] { display: none !important; } \`;
|
|
1594
|
+
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}`, ne = "default", xn = "filterWithCustomTargeting", et = "builderIoPersonalization", tt = "updateVisibilityStylesScript", nt = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1598
|
+
function Sn(e, t) {
|
|
1599
|
+
return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !K();
|
|
1600
|
+
}
|
|
1601
|
+
function kn({
|
|
1602
|
+
variants: e,
|
|
1603
|
+
previewingIndex: t,
|
|
1604
|
+
isHydrated: n,
|
|
1605
|
+
filteredVariants: i,
|
|
1606
|
+
fallbackBlocks: a
|
|
1607
|
+
}) {
|
|
1608
|
+
var r;
|
|
1609
|
+
const o = {
|
|
1610
|
+
blocks: a != null ? a : [],
|
|
1611
|
+
path: "this.children",
|
|
1612
|
+
index: ne
|
|
1613
|
+
};
|
|
1614
|
+
if (n && O()) {
|
|
1615
|
+
if (typeof t == "number" && t < ((r = e == null ? void 0 : e.length) != null ? r : 0)) {
|
|
1616
|
+
const l = e == null ? void 0 : e[t];
|
|
1617
|
+
if (l)
|
|
1618
|
+
return {
|
|
1619
|
+
blocks: l.blocks,
|
|
1620
|
+
path: `variants.${t}.blocks`,
|
|
1621
|
+
index: t
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
return o;
|
|
1625
|
+
}
|
|
1626
|
+
if (K()) {
|
|
1627
|
+
const l = i == null ? void 0 : i[0];
|
|
1628
|
+
if (l && e) {
|
|
1629
|
+
const c = e.indexOf(l);
|
|
1630
|
+
if (c !== -1)
|
|
1631
|
+
return {
|
|
1632
|
+
blocks: l.blocks,
|
|
1633
|
+
path: `variants.${c}.blocks`,
|
|
1634
|
+
index: c
|
|
1635
|
+
};
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
return o;
|
|
1639
|
+
}
|
|
1640
|
+
const Cn = () => `
|
|
1641
|
+
window.${xn} = ${pn}
|
|
1642
|
+
window.${et} = ${yn}
|
|
1643
|
+
window.${tt} = ${vn}
|
|
1644
|
+
`, it = F === "react", Tn = (e, t, n) => `window.${et}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${it}${n ? `, "${n}"` : ""})`, de = {
|
|
1645
|
+
"@type": "@builder.io/sdk:Element",
|
|
1646
|
+
layerName: "Accordion item title",
|
|
1647
|
+
responsiveStyles: {
|
|
1648
|
+
large: {
|
|
1649
|
+
marginTop: "10px",
|
|
1650
|
+
position: "relative",
|
|
1651
|
+
display: "flex",
|
|
1652
|
+
alignItems: "stretch",
|
|
1653
|
+
flexDirection: "column",
|
|
1654
|
+
paddingBottom: "10px"
|
|
1655
|
+
}
|
|
1656
|
+
},
|
|
1657
|
+
children: [{
|
|
1658
|
+
"@type": "@builder.io/sdk:Element",
|
|
1659
|
+
responsiveStyles: {
|
|
1660
|
+
large: {
|
|
1661
|
+
textAlign: "left",
|
|
1662
|
+
display: "flex",
|
|
1663
|
+
flexDirection: "column"
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
component: {
|
|
1667
|
+
name: "Text",
|
|
1668
|
+
options: {
|
|
1669
|
+
text: "I am an accordion title. Click me!"
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}]
|
|
1673
|
+
}, me = {
|
|
1674
|
+
"@type": "@builder.io/sdk:Element",
|
|
1675
|
+
layerName: "Accordion item detail",
|
|
1676
|
+
responsiveStyles: {
|
|
1677
|
+
large: {
|
|
1678
|
+
position: "relative",
|
|
1679
|
+
display: "flex",
|
|
1680
|
+
alignItems: "stretch",
|
|
1681
|
+
flexDirection: "column",
|
|
1682
|
+
marginTop: "10px",
|
|
1683
|
+
paddingBottom: "10px"
|
|
1684
|
+
}
|
|
1685
|
+
},
|
|
1686
|
+
children: [{
|
|
1687
|
+
"@type": "@builder.io/sdk:Element",
|
|
1688
|
+
responsiveStyles: {
|
|
1689
|
+
large: {
|
|
1690
|
+
paddingTop: "50px",
|
|
1691
|
+
textAlign: "left",
|
|
1692
|
+
display: "flex",
|
|
1693
|
+
flexDirection: "column",
|
|
1694
|
+
paddingBottom: "50px"
|
|
1695
|
+
}
|
|
1696
|
+
},
|
|
1697
|
+
component: {
|
|
1698
|
+
name: "Text",
|
|
1699
|
+
options: {
|
|
1700
|
+
text: "I am an accordion detail, hello!"
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
}]
|
|
1704
|
+
}, wn = {
|
|
1705
|
+
name: "Builder:Accordion",
|
|
1706
|
+
canHaveChildren: !0,
|
|
1707
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
1708
|
+
defaultStyles: {
|
|
1709
|
+
display: "flex",
|
|
1710
|
+
flexDirection: "column",
|
|
1711
|
+
alignItems: "stretch"
|
|
1712
|
+
},
|
|
1713
|
+
inputs: [{
|
|
1714
|
+
name: "items",
|
|
1715
|
+
type: "list",
|
|
1716
|
+
broadcast: !0,
|
|
1717
|
+
subFields: [{
|
|
1718
|
+
name: "title",
|
|
1719
|
+
type: "uiBlocks",
|
|
1720
|
+
hideFromUI: !0,
|
|
1721
|
+
defaultValue: [de]
|
|
1463
1722
|
}, {
|
|
1464
|
-
|
|
1465
|
-
|
|
1723
|
+
name: "detail",
|
|
1724
|
+
type: "uiBlocks",
|
|
1725
|
+
hideFromUI: !0,
|
|
1726
|
+
defaultValue: [me]
|
|
1727
|
+
}],
|
|
1728
|
+
defaultValue: [{
|
|
1729
|
+
title: [de],
|
|
1730
|
+
detail: [me]
|
|
1731
|
+
}, {
|
|
1732
|
+
title: [de],
|
|
1733
|
+
detail: [me]
|
|
1466
1734
|
}],
|
|
1467
1735
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1468
1736
|
}, {
|
|
@@ -1497,10 +1765,10 @@ const ae = {
|
|
|
1497
1765
|
builderComponents: !0,
|
|
1498
1766
|
builderLinkComponent: !0
|
|
1499
1767
|
}
|
|
1500
|
-
},
|
|
1501
|
-
function
|
|
1768
|
+
}, Ae = (e) => e.toString();
|
|
1769
|
+
function En(e) {
|
|
1502
1770
|
var b;
|
|
1503
|
-
const [t, n] =
|
|
1771
|
+
const [t, n] = C(() => []);
|
|
1504
1772
|
function i() {
|
|
1505
1773
|
return !!(e.grid || e.oneAtATime);
|
|
1506
1774
|
}
|
|
@@ -1516,8 +1784,8 @@ function rn(e) {
|
|
|
1516
1784
|
}
|
|
1517
1785
|
};
|
|
1518
1786
|
}
|
|
1519
|
-
function
|
|
1520
|
-
const
|
|
1787
|
+
function o() {
|
|
1788
|
+
const v = {
|
|
1521
1789
|
...{
|
|
1522
1790
|
display: "flex",
|
|
1523
1791
|
flexDirection: "column"
|
|
@@ -1526,35 +1794,35 @@ function rn(e) {
|
|
|
1526
1794
|
cursor: "pointer"
|
|
1527
1795
|
};
|
|
1528
1796
|
return Object.fromEntries(
|
|
1529
|
-
Object.entries(
|
|
1797
|
+
Object.entries(v).filter(([d, h]) => h !== void 0)
|
|
1530
1798
|
);
|
|
1531
1799
|
}
|
|
1532
|
-
function
|
|
1800
|
+
function r(m) {
|
|
1533
1801
|
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1534
1802
|
}
|
|
1535
1803
|
function l(m) {
|
|
1536
1804
|
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1537
1805
|
}
|
|
1538
|
-
function
|
|
1806
|
+
function c() {
|
|
1539
1807
|
let m = null;
|
|
1540
1808
|
if (e.grid && t.length && document) {
|
|
1541
|
-
const
|
|
1542
|
-
let
|
|
1543
|
-
`.builder-accordion-title[data-index="${
|
|
1809
|
+
const d = t[0];
|
|
1810
|
+
let p = document.querySelector(
|
|
1811
|
+
`.builder-accordion-title[data-index="${d}"]`
|
|
1544
1812
|
);
|
|
1545
|
-
if (m =
|
|
1546
|
-
let
|
|
1547
|
-
for (;
|
|
1548
|
-
if (
|
|
1549
|
-
if (
|
|
1813
|
+
if (m = d, p) {
|
|
1814
|
+
let y = p.getBoundingClientRect();
|
|
1815
|
+
for (; p = p && p.nextElementSibling; )
|
|
1816
|
+
if (p) {
|
|
1817
|
+
if (p.classList.contains("builder-accordion-detail"))
|
|
1550
1818
|
continue;
|
|
1551
|
-
const
|
|
1552
|
-
if (
|
|
1553
|
-
const
|
|
1554
|
-
|
|
1819
|
+
const S = p.getBoundingClientRect();
|
|
1820
|
+
if (S.left > y.left) {
|
|
1821
|
+
const k = parseInt(
|
|
1822
|
+
p.getAttribute("data-index") || "",
|
|
1555
1823
|
10
|
|
1556
1824
|
);
|
|
1557
|
-
isNaN(
|
|
1825
|
+
isNaN(k) || (y = S, m = k);
|
|
1558
1826
|
} else
|
|
1559
1827
|
break;
|
|
1560
1828
|
}
|
|
@@ -1562,39 +1830,39 @@ function rn(e) {
|
|
|
1562
1830
|
}
|
|
1563
1831
|
return typeof m == "number" && (m = m + 1), m;
|
|
1564
1832
|
}
|
|
1565
|
-
function
|
|
1833
|
+
function u() {
|
|
1566
1834
|
const m = {
|
|
1567
|
-
order: typeof
|
|
1835
|
+
order: typeof c() == "number" ? c() : void 0,
|
|
1568
1836
|
...e.grid && {
|
|
1569
1837
|
width: "100%"
|
|
1570
1838
|
}
|
|
1571
1839
|
};
|
|
1572
1840
|
return Object.fromEntries(
|
|
1573
|
-
Object.entries(m).filter(([
|
|
1841
|
+
Object.entries(m).filter(([v, d]) => d !== void 0)
|
|
1574
1842
|
);
|
|
1575
1843
|
}
|
|
1576
|
-
function
|
|
1577
|
-
t.includes(m) ? n(i() ? [] : t.filter((
|
|
1844
|
+
function f(m) {
|
|
1845
|
+
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1578
1846
|
}
|
|
1579
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m,
|
|
1847
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(ft.Fragment, { children: [
|
|
1580
1848
|
/* @__PURE__ */ s(
|
|
1581
1849
|
"div",
|
|
1582
1850
|
{
|
|
1583
|
-
className:
|
|
1851
|
+
className: r(v),
|
|
1584
1852
|
style: {
|
|
1585
|
-
...
|
|
1853
|
+
...o(),
|
|
1586
1854
|
...e.grid && {
|
|
1587
1855
|
width: e.gridRowWidth,
|
|
1588
|
-
order:
|
|
1856
|
+
order: c() !== null ? Ae(v) : Ae(v + 1)
|
|
1589
1857
|
}
|
|
1590
1858
|
},
|
|
1591
|
-
"data-index":
|
|
1592
|
-
onClick: (
|
|
1859
|
+
"data-index": v,
|
|
1860
|
+
onClick: (d) => f(v),
|
|
1593
1861
|
children: /* @__PURE__ */ s(
|
|
1594
|
-
|
|
1862
|
+
_,
|
|
1595
1863
|
{
|
|
1596
1864
|
blocks: m.title,
|
|
1597
|
-
path: `items.${
|
|
1865
|
+
path: `items.${v}.title`,
|
|
1598
1866
|
parent: e.builderBlock.id,
|
|
1599
1867
|
context: e.builderContext,
|
|
1600
1868
|
registeredComponents: e.builderComponents,
|
|
@@ -1603,16 +1871,16 @@ function rn(e) {
|
|
|
1603
1871
|
)
|
|
1604
1872
|
}
|
|
1605
1873
|
),
|
|
1606
|
-
t.includes(
|
|
1874
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1607
1875
|
"div",
|
|
1608
1876
|
{
|
|
1609
|
-
className: l(
|
|
1610
|
-
style:
|
|
1877
|
+
className: l(v),
|
|
1878
|
+
style: u(),
|
|
1611
1879
|
children: /* @__PURE__ */ s(
|
|
1612
|
-
|
|
1880
|
+
_,
|
|
1613
1881
|
{
|
|
1614
1882
|
blocks: m.detail,
|
|
1615
|
-
path: `items.${
|
|
1883
|
+
path: `items.${v}.detail`,
|
|
1616
1884
|
parent: e.builderBlock.id,
|
|
1617
1885
|
context: e.builderContext,
|
|
1618
1886
|
registeredComponents: e.builderComponents,
|
|
@@ -1621,9 +1889,9 @@ function rn(e) {
|
|
|
1621
1889
|
)
|
|
1622
1890
|
}
|
|
1623
1891
|
) : null
|
|
1624
|
-
] },
|
|
1892
|
+
] }, v)) });
|
|
1625
1893
|
}
|
|
1626
|
-
const
|
|
1894
|
+
const Rn = {
|
|
1627
1895
|
name: "Core:Button",
|
|
1628
1896
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1629
1897
|
defaultStyles: {
|
|
@@ -1659,7 +1927,7 @@ const ln = {
|
|
|
1659
1927
|
shouldReceiveBuilderProps: {
|
|
1660
1928
|
builderLinkComponent: !0
|
|
1661
1929
|
}
|
|
1662
|
-
},
|
|
1930
|
+
}, Pn = {
|
|
1663
1931
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1664
1932
|
name: "Columns",
|
|
1665
1933
|
isRSC: !0,
|
|
@@ -1838,7 +2106,7 @@ const ln = {
|
|
|
1838
2106
|
});
|
|
1839
2107
|
}
|
|
1840
2108
|
const n = e.get("columns");
|
|
1841
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((
|
|
2109
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
1842
2110
|
}
|
|
1843
2111
|
}, {
|
|
1844
2112
|
name: "space",
|
|
@@ -1866,13 +2134,13 @@ const ln = {
|
|
|
1866
2134
|
builderComponents: !0,
|
|
1867
2135
|
builderLinkComponent: !0
|
|
1868
2136
|
}
|
|
1869
|
-
},
|
|
2137
|
+
}, Vn = {
|
|
1870
2138
|
name: "Fragment",
|
|
1871
2139
|
static: !0,
|
|
1872
2140
|
hidden: !0,
|
|
1873
2141
|
canHaveChildren: !0,
|
|
1874
2142
|
noWrap: !0
|
|
1875
|
-
},
|
|
2143
|
+
}, Se = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
|
|
1876
2144
|
name: "Image",
|
|
1877
2145
|
static: !0,
|
|
1878
2146
|
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",
|
|
@@ -1887,34 +2155,34 @@ const ln = {
|
|
|
1887
2155
|
name: "image",
|
|
1888
2156
|
type: "file",
|
|
1889
2157
|
bubble: !0,
|
|
1890
|
-
allowedFileTypes:
|
|
2158
|
+
allowedFileTypes: Se,
|
|
1891
2159
|
required: !0,
|
|
1892
2160
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1893
2161
|
onChange: (e) => {
|
|
1894
2162
|
e.delete("srcset"), e.delete("noWebp");
|
|
1895
|
-
function n(
|
|
1896
|
-
return new Promise((
|
|
1897
|
-
const
|
|
2163
|
+
function n(r, l = 6e4) {
|
|
2164
|
+
return new Promise((c, u) => {
|
|
2165
|
+
const f = document.createElement("img");
|
|
1898
2166
|
let b = !1;
|
|
1899
|
-
|
|
1900
|
-
b = !0,
|
|
1901
|
-
},
|
|
1902
|
-
console.warn("Image load failed", m.error),
|
|
1903
|
-
}),
|
|
1904
|
-
b ||
|
|
2167
|
+
f.onload = () => {
|
|
2168
|
+
b = !0, c(f);
|
|
2169
|
+
}, f.addEventListener("error", (m) => {
|
|
2170
|
+
console.warn("Image load failed", m.error), u(m.error);
|
|
2171
|
+
}), f.src = r, setTimeout(() => {
|
|
2172
|
+
b || u(new Error("Image load timed out"));
|
|
1905
2173
|
}, l);
|
|
1906
2174
|
});
|
|
1907
2175
|
}
|
|
1908
|
-
function i(
|
|
1909
|
-
return Math.round(
|
|
2176
|
+
function i(r) {
|
|
2177
|
+
return Math.round(r * 1e3) / 1e3;
|
|
1910
2178
|
}
|
|
1911
|
-
const a = e.get("image"),
|
|
1912
|
-
if (fetch(a).then((
|
|
1913
|
-
|
|
1914
|
-
}), a && (!
|
|
1915
|
-
return n(a).then((
|
|
2179
|
+
const a = e.get("image"), o = e.get("aspectRatio");
|
|
2180
|
+
if (fetch(a).then((r) => r.blob()).then((r) => {
|
|
2181
|
+
r.type.includes("svg") && e.set("noWebp", !0);
|
|
2182
|
+
}), a && (!o || o === 0.7041))
|
|
2183
|
+
return n(a).then((r) => {
|
|
1916
2184
|
const l = e.get("aspectRatio");
|
|
1917
|
-
e.get("image") === a && (!l || l === 0.7041) &&
|
|
2185
|
+
e.get("image") === a && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
|
|
1918
2186
|
});
|
|
1919
2187
|
}
|
|
1920
2188
|
}, {
|
|
@@ -1923,421 +2191,214 @@ const ln = {
|
|
|
1923
2191
|
defaultValue: "cover",
|
|
1924
2192
|
enum: [{
|
|
1925
2193
|
label: "contain",
|
|
1926
|
-
value: "contain",
|
|
1927
|
-
helperText: "The image should never get cropped"
|
|
1928
|
-
}, {
|
|
1929
|
-
label: "cover",
|
|
1930
|
-
value: "cover",
|
|
1931
|
-
helperText: "The image should fill it's box, cropping when needed"
|
|
1932
|
-
}]
|
|
1933
|
-
}, {
|
|
1934
|
-
name: "backgroundPosition",
|
|
1935
|
-
type: "text",
|
|
1936
|
-
defaultValue: "center",
|
|
1937
|
-
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
1938
|
-
}, {
|
|
1939
|
-
name: "altText",
|
|
1940
|
-
type: "string",
|
|
1941
|
-
helperText: "Text to display when the user has images off"
|
|
1942
|
-
}, {
|
|
1943
|
-
name: "title",
|
|
1944
|
-
type: "string",
|
|
1945
|
-
helperText: "Text to display when hovering over the asset"
|
|
1946
|
-
}, {
|
|
1947
|
-
name: "height",
|
|
1948
|
-
type: "number",
|
|
1949
|
-
hideFromUI: !0
|
|
1950
|
-
}, {
|
|
1951
|
-
name: "width",
|
|
1952
|
-
type: "number",
|
|
1953
|
-
hideFromUI: !0
|
|
1954
|
-
}, {
|
|
1955
|
-
name: "sizes",
|
|
1956
|
-
type: "string",
|
|
1957
|
-
hideFromUI: !0
|
|
1958
|
-
}, {
|
|
1959
|
-
name: "srcset",
|
|
1960
|
-
type: "string",
|
|
1961
|
-
hideFromUI: !0
|
|
1962
|
-
}, {
|
|
1963
|
-
name: "lazy",
|
|
1964
|
-
type: "boolean",
|
|
1965
|
-
defaultValue: !0,
|
|
1966
|
-
hideFromUI: !0
|
|
1967
|
-
}, {
|
|
1968
|
-
name: "fitContent",
|
|
1969
|
-
type: "boolean",
|
|
1970
|
-
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
1971
|
-
defaultValue: !0
|
|
1972
|
-
}, {
|
|
1973
|
-
name: "highPriority",
|
|
1974
|
-
type: "boolean",
|
|
1975
|
-
advanced: !0,
|
|
1976
|
-
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
1977
|
-
}, {
|
|
1978
|
-
name: "aspectRatio",
|
|
1979
|
-
type: "number",
|
|
1980
|
-
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
1981
|
-
advanced: !0,
|
|
1982
|
-
defaultValue: 0.7041
|
|
1983
|
-
}],
|
|
1984
|
-
shouldReceiveBuilderProps: {
|
|
1985
|
-
builderBlock: !0
|
|
1986
|
-
}
|
|
1987
|
-
}, mn = {
|
|
1988
|
-
name: "PersonalizationContainer",
|
|
1989
|
-
shouldReceiveBuilderProps: {
|
|
1990
|
-
builderBlock: !0,
|
|
1991
|
-
builderContext: !0
|
|
1992
|
-
},
|
|
1993
|
-
noWrap: !0,
|
|
1994
|
-
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
1995
|
-
canHaveChildren: !0,
|
|
1996
|
-
inputs: [{
|
|
1997
|
-
name: "variants",
|
|
1998
|
-
defaultValue: [],
|
|
1999
|
-
behavior: "personalizationVariantList",
|
|
2000
|
-
type: "list",
|
|
2001
|
-
subFields: [{
|
|
2002
|
-
name: "name",
|
|
2003
|
-
type: "text"
|
|
2004
|
-
}, {
|
|
2005
|
-
name: "query",
|
|
2006
|
-
friendlyName: "Targeting rules",
|
|
2007
|
-
type: "BuilderQuery",
|
|
2008
|
-
defaultValue: []
|
|
2009
|
-
}, {
|
|
2010
|
-
name: "startDate",
|
|
2011
|
-
type: "date"
|
|
2012
|
-
}, {
|
|
2013
|
-
name: "endDate",
|
|
2014
|
-
type: "date"
|
|
2015
|
-
}, {
|
|
2016
|
-
name: "blocks",
|
|
2017
|
-
type: "uiBlocks",
|
|
2018
|
-
hideFromUI: !0,
|
|
2019
|
-
defaultValue: []
|
|
2020
|
-
}]
|
|
2021
|
-
}]
|
|
2022
|
-
};
|
|
2023
|
-
function Y(e) {
|
|
2024
|
-
return /* @__PURE__ */ s(
|
|
2025
|
-
"script",
|
|
2026
|
-
{
|
|
2027
|
-
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2028
|
-
"data-id": e.id,
|
|
2029
|
-
nonce: e.nonce || ""
|
|
2030
|
-
}
|
|
2031
|
-
);
|
|
2032
|
-
}
|
|
2033
|
-
function fn(e, t, n, i) {
|
|
2034
|
-
function a(c) {
|
|
2035
|
-
return typeof c == "string";
|
|
2036
|
-
}
|
|
2037
|
-
function r(c) {
|
|
2038
|
-
return typeof c == "number";
|
|
2039
|
-
}
|
|
2040
|
-
function o(c, h) {
|
|
2041
|
-
return (() => {
|
|
2042
|
-
const m = h.property, x = h.operator;
|
|
2043
|
-
let u = h.value;
|
|
2044
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (u = h.value.slice(0, -1)), !(m && x))
|
|
2045
|
-
return !0;
|
|
2046
|
-
if (Array.isArray(u))
|
|
2047
|
-
return x === "isNot" ? u.every((v) => o(c, {
|
|
2048
|
-
property: m,
|
|
2049
|
-
operator: x,
|
|
2050
|
-
value: v
|
|
2051
|
-
})) : !!u.find((v) => o(c, {
|
|
2052
|
-
property: m,
|
|
2053
|
-
operator: x,
|
|
2054
|
-
value: v
|
|
2055
|
-
}));
|
|
2056
|
-
const g = c[m];
|
|
2057
|
-
if (Array.isArray(g))
|
|
2058
|
-
return g.includes(u);
|
|
2059
|
-
switch (x) {
|
|
2060
|
-
case "is":
|
|
2061
|
-
return g === u;
|
|
2062
|
-
case "isNot":
|
|
2063
|
-
return g !== u;
|
|
2064
|
-
case "contains":
|
|
2065
|
-
return (a(g) || Array.isArray(g)) && g.includes(String(u));
|
|
2066
|
-
case "startsWith":
|
|
2067
|
-
return a(g) && g.startsWith(String(u));
|
|
2068
|
-
case "endsWith":
|
|
2069
|
-
return a(g) && g.endsWith(String(u));
|
|
2070
|
-
case "greaterThan":
|
|
2071
|
-
return r(g) && r(u) && g > u;
|
|
2072
|
-
case "lessThan":
|
|
2073
|
-
return r(g) && r(u) && g < u;
|
|
2074
|
-
case "greaterThanOrEqualTo":
|
|
2075
|
-
return r(g) && r(u) && g >= u;
|
|
2076
|
-
case "lessThanOrEqualTo":
|
|
2077
|
-
return r(g) && r(u) && g <= u;
|
|
2078
|
-
default:
|
|
2079
|
-
return !1;
|
|
2080
|
-
}
|
|
2081
|
-
})();
|
|
2082
|
-
}
|
|
2083
|
-
const l = {
|
|
2084
|
-
query: t,
|
|
2085
|
-
startDate: n,
|
|
2086
|
-
endDate: i
|
|
2087
|
-
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2088
|
-
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
|
|
2089
|
-
}
|
|
2090
|
-
const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2091
|
-
if (!navigator.cookieEnabled) {
|
|
2092
|
-
return;
|
|
2093
|
-
}
|
|
2094
|
-
function getCookie(name) {
|
|
2095
|
-
const nameEQ = name + '=';
|
|
2096
|
-
const ca = document.cookie.split(';');
|
|
2097
|
-
for (let i = 0; i < ca.length; i++) {
|
|
2098
|
-
let c = ca[i];
|
|
2099
|
-
while (c.charAt(0) == ' ') c = c.substring(1, c.length);
|
|
2100
|
-
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
|
|
2101
|
-
}
|
|
2102
|
-
return null;
|
|
2103
|
-
}
|
|
2104
|
-
function removeVariants() {
|
|
2105
|
-
variants?.forEach(function (_, index) {
|
|
2106
|
-
document.querySelector('template[data-variant-id="' + blockId + '-' + index + '"]')?.remove();
|
|
2107
|
-
});
|
|
2108
|
-
document.querySelector('script[data-id="variants-script-' + blockId + '"]')?.remove();
|
|
2109
|
-
document.querySelector('style[data-id="variants-styles-' + blockId + '"]')?.remove();
|
|
2110
|
-
}
|
|
2111
|
-
const attributes = JSON.parse(getCookie('builder.userAttributes') || '{}');
|
|
2112
|
-
if (locale) {
|
|
2113
|
-
attributes.locale = locale;
|
|
2114
|
-
}
|
|
2115
|
-
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2116
|
-
return filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2117
|
-
});
|
|
2118
|
-
const isDebug = location.href.includes('builder.debug=true');
|
|
2119
|
-
if (isDebug) {
|
|
2120
|
-
console.debug('PersonalizationContainer', {
|
|
2121
|
-
attributes,
|
|
2122
|
-
variants,
|
|
2123
|
-
winningVariantIndex
|
|
2124
|
-
});
|
|
2125
|
-
}
|
|
2126
|
-
if (winningVariantIndex !== -1) {
|
|
2127
|
-
const winningVariant = document.querySelector('template[data-variant-id="' + blockId + '-' + winningVariantIndex + '"]');
|
|
2128
|
-
if (winningVariant) {
|
|
2129
|
-
const parentNode = winningVariant.parentNode;
|
|
2130
|
-
if (parentNode) {
|
|
2131
|
-
const newParent = parentNode.cloneNode(false);
|
|
2132
|
-
newParent.appendChild(winningVariant.content.firstChild);
|
|
2133
|
-
newParent.appendChild(winningVariant.content.lastChild);
|
|
2134
|
-
parentNode.parentNode?.replaceChild(newParent, parentNode);
|
|
2135
|
-
}
|
|
2136
|
-
if (isDebug) {
|
|
2137
|
-
console.debug('PersonalizationContainer', 'Winning variant Replaced:', winningVariant);
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
} else if (variants && variants.length > 0) {
|
|
2141
|
-
removeVariants();
|
|
2142
|
-
}
|
|
2143
|
-
}`, gn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2144
|
-
function isString(val) {
|
|
2145
|
-
return typeof val === 'string';
|
|
2146
|
-
}
|
|
2147
|
-
function isNumber(val) {
|
|
2148
|
-
return typeof val === 'number';
|
|
2149
|
-
}
|
|
2150
|
-
function objectMatchesQuery(userattr, query) {
|
|
2151
|
-
const result = (() => {
|
|
2152
|
-
const property = query.property;
|
|
2153
|
-
const operator = query.operator;
|
|
2154
|
-
let testValue = query.value;
|
|
2155
|
-
if (query && query.property === 'urlPath' && query.value && typeof query.value === 'string' && query.value !== '/' && query.value.endsWith('/')) {
|
|
2156
|
-
testValue = query.value.slice(0, -1);
|
|
2157
|
-
}
|
|
2158
|
-
if (!(property && operator)) {
|
|
2159
|
-
return true;
|
|
2160
|
-
}
|
|
2161
|
-
if (Array.isArray(testValue)) {
|
|
2162
|
-
if (operator === 'isNot') {
|
|
2163
|
-
return testValue.every(val => objectMatchesQuery(userattr, {
|
|
2164
|
-
property,
|
|
2165
|
-
operator,
|
|
2166
|
-
value: val
|
|
2167
|
-
}));
|
|
2168
|
-
}
|
|
2169
|
-
return !!testValue.find(val => objectMatchesQuery(userattr, {
|
|
2170
|
-
property,
|
|
2171
|
-
operator,
|
|
2172
|
-
value: val
|
|
2173
|
-
}));
|
|
2174
|
-
}
|
|
2175
|
-
const value = userattr[property];
|
|
2176
|
-
if (Array.isArray(value)) {
|
|
2177
|
-
return value.includes(testValue);
|
|
2178
|
-
}
|
|
2179
|
-
switch (operator) {
|
|
2180
|
-
case 'is':
|
|
2181
|
-
return value === testValue;
|
|
2182
|
-
case 'isNot':
|
|
2183
|
-
return value !== testValue;
|
|
2184
|
-
case 'contains':
|
|
2185
|
-
return (isString(value) || Array.isArray(value)) && value.includes(String(testValue));
|
|
2186
|
-
case 'startsWith':
|
|
2187
|
-
return isString(value) && value.startsWith(String(testValue));
|
|
2188
|
-
case 'endsWith':
|
|
2189
|
-
return isString(value) && value.endsWith(String(testValue));
|
|
2190
|
-
case 'greaterThan':
|
|
2191
|
-
return isNumber(value) && isNumber(testValue) && value > testValue;
|
|
2192
|
-
case 'lessThan':
|
|
2193
|
-
return isNumber(value) && isNumber(testValue) && value < testValue;
|
|
2194
|
-
case 'greaterThanOrEqualTo':
|
|
2195
|
-
return isNumber(value) && isNumber(testValue) && value >= testValue;
|
|
2196
|
-
case 'lessThanOrEqualTo':
|
|
2197
|
-
return isNumber(value) && isNumber(testValue) && value <= testValue;
|
|
2198
|
-
default:
|
|
2199
|
-
return false;
|
|
2200
|
-
}
|
|
2201
|
-
})();
|
|
2202
|
-
return result;
|
|
2203
|
-
}
|
|
2204
|
-
const item = {
|
|
2205
|
-
query,
|
|
2206
|
-
startDate,
|
|
2207
|
-
endDate
|
|
2208
|
-
};
|
|
2209
|
-
const now = userAttributes.date && new Date(userAttributes.date) || new Date();
|
|
2210
|
-
if (item.startDate && new Date(item.startDate) > now) {
|
|
2211
|
-
return false;
|
|
2212
|
-
} else if (item.endDate && new Date(item.endDate) < now) {
|
|
2213
|
-
return false;
|
|
2214
|
-
}
|
|
2215
|
-
if (!item.query || !item.query.length) {
|
|
2216
|
-
return true;
|
|
2217
|
-
}
|
|
2218
|
-
return item.query.every(filter => {
|
|
2219
|
-
return objectMatchesQuery(userAttributes, filter);
|
|
2220
|
-
});
|
|
2221
|
-
}`;
|
|
2222
|
-
function bn(e, t) {
|
|
2223
|
-
return !(!(e && e.length > 0) || !t || U());
|
|
2224
|
-
}
|
|
2225
|
-
function pn({
|
|
2226
|
-
variants: e,
|
|
2227
|
-
previewingIndex: t,
|
|
2228
|
-
isHydrated: n,
|
|
2229
|
-
filteredVariants: i,
|
|
2230
|
-
fallbackBlocks: a
|
|
2231
|
-
}) {
|
|
2232
|
-
var o;
|
|
2233
|
-
const r = {
|
|
2234
|
-
blocks: a != null ? a : [],
|
|
2235
|
-
path: "this.children"
|
|
2236
|
-
};
|
|
2237
|
-
if (n && N())
|
|
2238
|
-
return typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0) ? {
|
|
2239
|
-
blocks: e[t].blocks,
|
|
2240
|
-
path: `component.options.variants.${t}.blocks`
|
|
2241
|
-
} : r;
|
|
2242
|
-
if (U()) {
|
|
2243
|
-
const l = i == null ? void 0 : i[0];
|
|
2244
|
-
if (l)
|
|
2245
|
-
return {
|
|
2246
|
-
blocks: l.blocks,
|
|
2247
|
-
path: `component.options.variants.${e == null ? void 0 : e.indexOf(l)}.blocks`
|
|
2248
|
-
};
|
|
2194
|
+
value: "contain",
|
|
2195
|
+
helperText: "The image should never get cropped"
|
|
2196
|
+
}, {
|
|
2197
|
+
label: "cover",
|
|
2198
|
+
value: "cover",
|
|
2199
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
2200
|
+
}]
|
|
2201
|
+
}, {
|
|
2202
|
+
name: "backgroundPosition",
|
|
2203
|
+
type: "text",
|
|
2204
|
+
defaultValue: "center",
|
|
2205
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
2206
|
+
}, {
|
|
2207
|
+
name: "altText",
|
|
2208
|
+
type: "string",
|
|
2209
|
+
helperText: "Text to display when the user has images off"
|
|
2210
|
+
}, {
|
|
2211
|
+
name: "title",
|
|
2212
|
+
type: "string",
|
|
2213
|
+
helperText: "Text to display when hovering over the asset"
|
|
2214
|
+
}, {
|
|
2215
|
+
name: "height",
|
|
2216
|
+
type: "number",
|
|
2217
|
+
hideFromUI: !0
|
|
2218
|
+
}, {
|
|
2219
|
+
name: "width",
|
|
2220
|
+
type: "number",
|
|
2221
|
+
hideFromUI: !0
|
|
2222
|
+
}, {
|
|
2223
|
+
name: "sizes",
|
|
2224
|
+
type: "string",
|
|
2225
|
+
hideFromUI: !0
|
|
2226
|
+
}, {
|
|
2227
|
+
name: "srcset",
|
|
2228
|
+
type: "string",
|
|
2229
|
+
hideFromUI: !0
|
|
2230
|
+
}, {
|
|
2231
|
+
name: "lazy",
|
|
2232
|
+
type: "boolean",
|
|
2233
|
+
defaultValue: !0,
|
|
2234
|
+
hideFromUI: !0
|
|
2235
|
+
}, {
|
|
2236
|
+
name: "fitContent",
|
|
2237
|
+
type: "boolean",
|
|
2238
|
+
helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
|
|
2239
|
+
defaultValue: !0
|
|
2240
|
+
}, {
|
|
2241
|
+
name: "highPriority",
|
|
2242
|
+
type: "boolean",
|
|
2243
|
+
advanced: !0,
|
|
2244
|
+
helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
|
|
2245
|
+
}, {
|
|
2246
|
+
name: "aspectRatio",
|
|
2247
|
+
type: "number",
|
|
2248
|
+
helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
|
|
2249
|
+
advanced: !0,
|
|
2250
|
+
defaultValue: 0.7041
|
|
2251
|
+
}],
|
|
2252
|
+
shouldReceiveBuilderProps: {
|
|
2253
|
+
builderBlock: !0
|
|
2249
2254
|
}
|
|
2250
|
-
|
|
2255
|
+
}, Nn = {
|
|
2256
|
+
name: "PersonalizationContainer",
|
|
2257
|
+
shouldReceiveBuilderProps: {
|
|
2258
|
+
builderBlock: !0,
|
|
2259
|
+
builderContext: !0,
|
|
2260
|
+
builderComponents: !0
|
|
2261
|
+
},
|
|
2262
|
+
noWrap: !0,
|
|
2263
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
|
|
2264
|
+
canHaveChildren: !0,
|
|
2265
|
+
inputs: [{
|
|
2266
|
+
name: "variants",
|
|
2267
|
+
defaultValue: [],
|
|
2268
|
+
behavior: "personalizationVariantList",
|
|
2269
|
+
type: "list",
|
|
2270
|
+
subFields: [{
|
|
2271
|
+
name: "name",
|
|
2272
|
+
type: "text"
|
|
2273
|
+
}, {
|
|
2274
|
+
name: "query",
|
|
2275
|
+
friendlyName: "Targeting rules",
|
|
2276
|
+
type: "BuilderQuery",
|
|
2277
|
+
defaultValue: []
|
|
2278
|
+
}, {
|
|
2279
|
+
name: "startDate",
|
|
2280
|
+
type: "date"
|
|
2281
|
+
}, {
|
|
2282
|
+
name: "endDate",
|
|
2283
|
+
type: "date"
|
|
2284
|
+
}, {
|
|
2285
|
+
name: "blocks",
|
|
2286
|
+
type: "uiBlocks",
|
|
2287
|
+
hideFromUI: !0,
|
|
2288
|
+
defaultValue: []
|
|
2289
|
+
}]
|
|
2290
|
+
}]
|
|
2291
|
+
};
|
|
2292
|
+
function q(e) {
|
|
2293
|
+
return /* @__PURE__ */ s(
|
|
2294
|
+
"script",
|
|
2295
|
+
{
|
|
2296
|
+
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
2297
|
+
"data-id": e.id,
|
|
2298
|
+
nonce: e.nonce || ""
|
|
2299
|
+
}
|
|
2300
|
+
);
|
|
2251
2301
|
}
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
})();
|
|
2258
|
-
`;
|
|
2259
|
-
function vn(e) {
|
|
2260
|
-
var g, v, p, k, C, V, w;
|
|
2261
|
-
const t = L(null), [n, i] = I(
|
|
2262
|
-
() => be.getUserAttributes()
|
|
2263
|
-
), [a, r] = I(
|
|
2302
|
+
function $n(e) {
|
|
2303
|
+
var S, k, A, T, I, g, x, w, D, L, W, P, U;
|
|
2304
|
+
const t = H(null), [n, i] = C(
|
|
2305
|
+
() => Ce.getUserAttributes()
|
|
2306
|
+
), [a, o] = C(
|
|
2264
2307
|
() => {
|
|
2265
|
-
var
|
|
2266
|
-
return
|
|
2308
|
+
var E, B, N;
|
|
2309
|
+
return Tn(
|
|
2267
2310
|
e.variants,
|
|
2268
|
-
((
|
|
2269
|
-
(
|
|
2311
|
+
((E = e.builderBlock) == null ? void 0 : E.id) || "none",
|
|
2312
|
+
(N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
|
|
2270
2313
|
);
|
|
2271
2314
|
}
|
|
2272
|
-
), [
|
|
2315
|
+
), [r, l] = C(
|
|
2273
2316
|
() => {
|
|
2274
|
-
var
|
|
2275
|
-
return
|
|
2317
|
+
var E, B, N;
|
|
2318
|
+
return In(
|
|
2319
|
+
e.variants,
|
|
2320
|
+
((E = e.builderBlock) == null ? void 0 : E.id) || "none",
|
|
2321
|
+
(N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
|
|
2322
|
+
);
|
|
2323
|
+
}
|
|
2324
|
+
), [c, u] = C(() => []), [f, b] = C(
|
|
2325
|
+
() => {
|
|
2326
|
+
var E;
|
|
2327
|
+
return Sn(
|
|
2276
2328
|
e.variants,
|
|
2277
|
-
|
|
2329
|
+
X((E = e.builderContext) == null ? void 0 : E.canTrack)
|
|
2278
2330
|
);
|
|
2279
2331
|
}
|
|
2280
|
-
), [
|
|
2281
|
-
function
|
|
2282
|
-
return
|
|
2283
|
-
|
|
2284
|
-
|
|
2332
|
+
), [m, v] = C(() => !1);
|
|
2333
|
+
function d() {
|
|
2334
|
+
return {
|
|
2335
|
+
...e.attributes,
|
|
2336
|
+
[j()]: `builder-personalization-container ${e.attributes[j()] || ""}`
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
function h() {
|
|
2340
|
+
return (e.variants || []).filter((E) => {
|
|
2341
|
+
var B, N, z, M;
|
|
2342
|
+
return bn(
|
|
2285
2343
|
{
|
|
2286
|
-
...(
|
|
2287
|
-
locale: (
|
|
2344
|
+
...(N = (B = e.builderContext) == null ? void 0 : B.rootState) != null && N.locale ? {
|
|
2345
|
+
locale: (M = (z = e.builderContext) == null ? void 0 : z.rootState) == null ? void 0 : M.locale
|
|
2288
2346
|
} : {},
|
|
2289
2347
|
...n
|
|
2290
2348
|
},
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2349
|
+
E.query,
|
|
2350
|
+
E.startDate,
|
|
2351
|
+
E.endDate
|
|
2294
2352
|
);
|
|
2295
2353
|
});
|
|
2296
2354
|
}
|
|
2297
|
-
function
|
|
2298
|
-
var
|
|
2299
|
-
return
|
|
2355
|
+
function p() {
|
|
2356
|
+
var E;
|
|
2357
|
+
return kn({
|
|
2300
2358
|
variants: e.variants,
|
|
2301
|
-
fallbackBlocks: (
|
|
2302
|
-
isHydrated:
|
|
2303
|
-
filteredVariants:
|
|
2359
|
+
fallbackBlocks: (E = e.builderBlock) == null ? void 0 : E.children,
|
|
2360
|
+
isHydrated: m,
|
|
2361
|
+
filteredVariants: h(),
|
|
2304
2362
|
previewingIndex: e.previewingIndex
|
|
2305
2363
|
});
|
|
2306
2364
|
}
|
|
2307
|
-
function
|
|
2365
|
+
function y() {
|
|
2308
2366
|
return (e.variants || []).map(
|
|
2309
|
-
(
|
|
2310
|
-
var
|
|
2311
|
-
return `[data-variant-id="${(
|
|
2367
|
+
(E, B) => {
|
|
2368
|
+
var N;
|
|
2369
|
+
return `div[data-variant-id="${(N = e.builderBlock) == null ? void 0 : N.id}-${B}"] { display: none !important; } `;
|
|
2312
2370
|
}
|
|
2313
2371
|
).join("");
|
|
2314
2372
|
}
|
|
2315
|
-
return
|
|
2316
|
-
var
|
|
2317
|
-
|
|
2318
|
-
const
|
|
2319
|
-
(
|
|
2320
|
-
i(
|
|
2373
|
+
return V(() => {
|
|
2374
|
+
var B;
|
|
2375
|
+
v(!0);
|
|
2376
|
+
const E = Ce.subscribeOnUserAttributesChange(
|
|
2377
|
+
(N) => {
|
|
2378
|
+
i(N);
|
|
2379
|
+
},
|
|
2380
|
+
{
|
|
2381
|
+
fireImmediately: F === "qwik"
|
|
2321
2382
|
}
|
|
2322
2383
|
);
|
|
2323
|
-
if (!(
|
|
2324
|
-
const
|
|
2384
|
+
if (!(O() || oe())) {
|
|
2385
|
+
const N = h()[0];
|
|
2325
2386
|
t.current && (t.current.dispatchEvent(
|
|
2326
2387
|
new CustomEvent("builder.variantLoaded", {
|
|
2327
2388
|
detail: {
|
|
2328
|
-
variant:
|
|
2329
|
-
content: (
|
|
2389
|
+
variant: N || ne,
|
|
2390
|
+
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2330
2391
|
},
|
|
2331
2392
|
bubbles: !0
|
|
2332
2393
|
})
|
|
2333
|
-
), new IntersectionObserver((
|
|
2334
|
-
|
|
2335
|
-
var
|
|
2336
|
-
|
|
2394
|
+
), new IntersectionObserver((M) => {
|
|
2395
|
+
M.forEach((te) => {
|
|
2396
|
+
var G;
|
|
2397
|
+
te.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2337
2398
|
new CustomEvent("builder.variantDisplayed", {
|
|
2338
2399
|
detail: {
|
|
2339
|
-
variant:
|
|
2340
|
-
content: (
|
|
2400
|
+
variant: N || ne,
|
|
2401
|
+
content: (G = e.builderContext) == null ? void 0 : G.content
|
|
2341
2402
|
},
|
|
2342
2403
|
bubbles: !0
|
|
2343
2404
|
})
|
|
@@ -2345,65 +2406,97 @@ function vn(e) {
|
|
|
2345
2406
|
});
|
|
2346
2407
|
}).observe(t.current));
|
|
2347
2408
|
}
|
|
2348
|
-
|
|
2349
|
-
}, []),
|
|
2350
|
-
|
|
2351
|
-
}, []), /* @__PURE__ */
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2409
|
+
c.push(E);
|
|
2410
|
+
}, []), V(() => () => {
|
|
2411
|
+
c.forEach((E) => E());
|
|
2412
|
+
}, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
|
|
2413
|
+
m && ie.includes(F) ? /* @__PURE__ */ s(
|
|
2414
|
+
_,
|
|
2415
|
+
{
|
|
2416
|
+
blocks: p().blocks,
|
|
2417
|
+
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2418
|
+
path: p().path,
|
|
2419
|
+
context: e.builderContext,
|
|
2420
|
+
registeredComponents: e.builderComponents,
|
|
2421
|
+
BlocksWrapperProps: {
|
|
2422
|
+
...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
|
|
2423
|
+
"data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
) : null,
|
|
2427
|
+
!m && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ $(R, { children: [
|
|
2428
|
+
f ? /* @__PURE__ */ $(R, { children: [
|
|
2429
|
+
/* @__PURE__ */ s(
|
|
2430
|
+
ee,
|
|
2431
|
+
{
|
|
2432
|
+
nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
|
|
2433
|
+
styles: y(),
|
|
2434
|
+
id: `variants-styles-${(I = e.builderBlock) == null ? void 0 : I.id}`
|
|
2435
|
+
}
|
|
2436
|
+
),
|
|
2437
|
+
/* @__PURE__ */ s(
|
|
2438
|
+
q,
|
|
2439
|
+
{
|
|
2440
|
+
nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
|
|
2441
|
+
scriptStr: r,
|
|
2442
|
+
id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
|
|
2443
|
+
}
|
|
2444
|
+
),
|
|
2445
|
+
(w = e.variants) == null ? void 0 : w.map((E, B) => {
|
|
2446
|
+
var N, z, M, te, G, ke;
|
|
2447
|
+
return /* @__PURE__ */ s(
|
|
2448
|
+
_,
|
|
2379
2449
|
{
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2450
|
+
BlocksWrapperProps: {
|
|
2451
|
+
...(N = e.builderContext) == null ? void 0 : N.BlocksWrapperProps,
|
|
2452
|
+
"aria-hidden": !0,
|
|
2453
|
+
hidden: !0,
|
|
2454
|
+
"data-variant-id": `${(z = e.builderBlock) == null ? void 0 : z.id}-${B}`
|
|
2455
|
+
},
|
|
2456
|
+
blocks: E.blocks,
|
|
2457
|
+
parent: (M = e.builderBlock) == null ? void 0 : M.id,
|
|
2458
|
+
path: `component.options.variants.${B}.blocks`,
|
|
2459
|
+
context: e.builderContext,
|
|
2460
|
+
registeredComponents: e.builderComponents,
|
|
2461
|
+
children: /* @__PURE__ */ s(
|
|
2462
|
+
q,
|
|
2463
|
+
{
|
|
2464
|
+
nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
|
|
2465
|
+
scriptStr: a,
|
|
2466
|
+
id: `variants-script-${(G = e.builderBlock) == null ? void 0 : G.id}-${B}`
|
|
2467
|
+
}
|
|
2468
|
+
)
|
|
2469
|
+
},
|
|
2470
|
+
`${(ke = e.builderBlock) == null ? void 0 : ke.id}-${B}`
|
|
2471
|
+
);
|
|
2472
|
+
})
|
|
2473
|
+
] }) : null,
|
|
2474
|
+
/* @__PURE__ */ s(
|
|
2475
|
+
_,
|
|
2476
|
+
{
|
|
2477
|
+
blocks: p().blocks,
|
|
2478
|
+
parent: (D = e.builderBlock) == null ? void 0 : D.id,
|
|
2479
|
+
path: p().path,
|
|
2480
|
+
context: e.builderContext,
|
|
2481
|
+
registeredComponents: e.builderComponents,
|
|
2482
|
+
BlocksWrapperProps: {
|
|
2483
|
+
...(L = e.builderContext) == null ? void 0 : L.BlocksWrapperProps,
|
|
2484
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
|
|
2485
|
+
},
|
|
2486
|
+
children: f ? /* @__PURE__ */ s(
|
|
2487
|
+
q,
|
|
2387
2488
|
{
|
|
2388
|
-
nonce: ((
|
|
2489
|
+
nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
|
|
2389
2490
|
scriptStr: a,
|
|
2390
|
-
id: `variants-script-${(
|
|
2491
|
+
id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ne}`
|
|
2391
2492
|
}
|
|
2392
|
-
)
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
blocks: x().blocks,
|
|
2398
|
-
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
2399
|
-
path: x().path
|
|
2400
|
-
}
|
|
2401
|
-
)
|
|
2402
|
-
]
|
|
2403
|
-
}
|
|
2404
|
-
);
|
|
2493
|
+
) : null
|
|
2494
|
+
}
|
|
2495
|
+
)
|
|
2496
|
+
] }) : null
|
|
2497
|
+
] });
|
|
2405
2498
|
}
|
|
2406
|
-
const
|
|
2499
|
+
const Wn = {
|
|
2407
2500
|
name: "Core:Section",
|
|
2408
2501
|
static: !0,
|
|
2409
2502
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2442,7 +2535,7 @@ const xn = {
|
|
|
2442
2535
|
}
|
|
2443
2536
|
}
|
|
2444
2537
|
}]
|
|
2445
|
-
},
|
|
2538
|
+
}, Dn = {
|
|
2446
2539
|
name: "Slot",
|
|
2447
2540
|
isRSC: !0,
|
|
2448
2541
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2460,7 +2553,7 @@ const xn = {
|
|
|
2460
2553
|
builderComponents: !0
|
|
2461
2554
|
}
|
|
2462
2555
|
};
|
|
2463
|
-
function
|
|
2556
|
+
function Fn(e) {
|
|
2464
2557
|
var t, n, i;
|
|
2465
2558
|
return /* @__PURE__ */ s(
|
|
2466
2559
|
"div",
|
|
@@ -2472,7 +2565,7 @@ function kn(e) {
|
|
|
2472
2565
|
"builder-slot": e.name
|
|
2473
2566
|
},
|
|
2474
2567
|
children: /* @__PURE__ */ s(
|
|
2475
|
-
|
|
2568
|
+
_,
|
|
2476
2569
|
{
|
|
2477
2570
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2478
2571
|
path: `symbol.data.${e.name}`,
|
|
@@ -2484,7 +2577,7 @@ function kn(e) {
|
|
|
2484
2577
|
}
|
|
2485
2578
|
);
|
|
2486
2579
|
}
|
|
2487
|
-
const
|
|
2580
|
+
const Ln = {
|
|
2488
2581
|
name: "Symbol",
|
|
2489
2582
|
noWrap: !0,
|
|
2490
2583
|
static: !0,
|
|
@@ -2523,7 +2616,7 @@ const Cn = {
|
|
|
2523
2616
|
builderComponents: !0,
|
|
2524
2617
|
builderLinkComponent: !0
|
|
2525
2618
|
}
|
|
2526
|
-
},
|
|
2619
|
+
}, fe = {
|
|
2527
2620
|
"@type": "@builder.io/sdk:Element",
|
|
2528
2621
|
responsiveStyles: {
|
|
2529
2622
|
large: {
|
|
@@ -2545,7 +2638,7 @@ const Cn = {
|
|
|
2545
2638
|
text: "New tab"
|
|
2546
2639
|
}
|
|
2547
2640
|
}
|
|
2548
|
-
},
|
|
2641
|
+
}, he = {
|
|
2549
2642
|
"@type": "@builder.io/sdk:Element",
|
|
2550
2643
|
responsiveStyles: {
|
|
2551
2644
|
large: {
|
|
@@ -2561,7 +2654,7 @@ const Cn = {
|
|
|
2561
2654
|
text: "New tab content "
|
|
2562
2655
|
}
|
|
2563
2656
|
}
|
|
2564
|
-
},
|
|
2657
|
+
}, On = {
|
|
2565
2658
|
name: "Builder: Tabs",
|
|
2566
2659
|
inputs: [{
|
|
2567
2660
|
name: "tabs",
|
|
@@ -2571,16 +2664,16 @@ const Cn = {
|
|
|
2571
2664
|
name: "label",
|
|
2572
2665
|
type: "uiBlocks",
|
|
2573
2666
|
hideFromUI: !0,
|
|
2574
|
-
defaultValue: [
|
|
2667
|
+
defaultValue: [fe]
|
|
2575
2668
|
}, {
|
|
2576
2669
|
name: "content",
|
|
2577
2670
|
type: "uiBlocks",
|
|
2578
2671
|
hideFromUI: !0,
|
|
2579
|
-
defaultValue: [
|
|
2672
|
+
defaultValue: [he]
|
|
2580
2673
|
}],
|
|
2581
2674
|
defaultValue: [{
|
|
2582
2675
|
label: [{
|
|
2583
|
-
...
|
|
2676
|
+
...fe,
|
|
2584
2677
|
component: {
|
|
2585
2678
|
name: "Text",
|
|
2586
2679
|
options: {
|
|
@@ -2589,7 +2682,7 @@ const Cn = {
|
|
|
2589
2682
|
}
|
|
2590
2683
|
}],
|
|
2591
2684
|
content: [{
|
|
2592
|
-
...
|
|
2685
|
+
...he,
|
|
2593
2686
|
component: {
|
|
2594
2687
|
name: "Text",
|
|
2595
2688
|
options: {
|
|
@@ -2599,7 +2692,7 @@ const Cn = {
|
|
|
2599
2692
|
}]
|
|
2600
2693
|
}, {
|
|
2601
2694
|
label: [{
|
|
2602
|
-
...
|
|
2695
|
+
...fe,
|
|
2603
2696
|
component: {
|
|
2604
2697
|
name: "Text",
|
|
2605
2698
|
options: {
|
|
@@ -2608,7 +2701,7 @@ const Cn = {
|
|
|
2608
2701
|
}
|
|
2609
2702
|
}],
|
|
2610
2703
|
content: [{
|
|
2611
|
-
...
|
|
2704
|
+
...he,
|
|
2612
2705
|
component: {
|
|
2613
2706
|
name: "Text",
|
|
2614
2707
|
options: {
|
|
@@ -2665,18 +2758,18 @@ const Cn = {
|
|
|
2665
2758
|
builderLinkComponent: !0
|
|
2666
2759
|
}
|
|
2667
2760
|
};
|
|
2668
|
-
function
|
|
2669
|
-
var
|
|
2670
|
-
const [t, n] =
|
|
2761
|
+
function _n(e) {
|
|
2762
|
+
var o;
|
|
2763
|
+
const [t, n] = C(
|
|
2671
2764
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2672
2765
|
);
|
|
2673
|
-
function i(
|
|
2674
|
-
return e.tabs && e.tabs[
|
|
2766
|
+
function i(r) {
|
|
2767
|
+
return e.tabs && e.tabs[r].content;
|
|
2675
2768
|
}
|
|
2676
|
-
function a(
|
|
2677
|
-
|
|
2769
|
+
function a(r) {
|
|
2770
|
+
r === t && e.collapsible ? n(-1) : n(r);
|
|
2678
2771
|
}
|
|
2679
|
-
return /* @__PURE__ */
|
|
2772
|
+
return /* @__PURE__ */ $("div", { children: [
|
|
2680
2773
|
/* @__PURE__ */ s(
|
|
2681
2774
|
"div",
|
|
2682
2775
|
{
|
|
@@ -2687,20 +2780,20 @@ function wn(e) {
|
|
|
2687
2780
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2688
2781
|
overflow: "auto"
|
|
2689
2782
|
},
|
|
2690
|
-
children: (
|
|
2783
|
+
children: (o = e.tabs) == null ? void 0 : o.map((r, l) => /* @__PURE__ */ s(
|
|
2691
2784
|
"span",
|
|
2692
2785
|
{
|
|
2693
2786
|
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2694
2787
|
style: {
|
|
2695
2788
|
...t === l ? e.activeTabStyle : {}
|
|
2696
2789
|
},
|
|
2697
|
-
onClick: (
|
|
2790
|
+
onClick: (c) => a(l),
|
|
2698
2791
|
children: /* @__PURE__ */ s(
|
|
2699
|
-
|
|
2792
|
+
_,
|
|
2700
2793
|
{
|
|
2701
2794
|
parent: e.builderBlock.id,
|
|
2702
2795
|
path: `tabs.${l}.label`,
|
|
2703
|
-
blocks:
|
|
2796
|
+
blocks: r.label,
|
|
2704
2797
|
context: e.builderContext,
|
|
2705
2798
|
registeredComponents: e.builderComponents,
|
|
2706
2799
|
linkComponent: e.builderLinkComponent
|
|
@@ -2712,7 +2805,7 @@ function wn(e) {
|
|
|
2712
2805
|
}
|
|
2713
2806
|
),
|
|
2714
2807
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2715
|
-
|
|
2808
|
+
_,
|
|
2716
2809
|
{
|
|
2717
2810
|
parent: e.builderBlock.id,
|
|
2718
2811
|
path: `tabs.${t}.content`,
|
|
@@ -2724,7 +2817,7 @@ function wn(e) {
|
|
|
2724
2817
|
) }) : null
|
|
2725
2818
|
] });
|
|
2726
2819
|
}
|
|
2727
|
-
const
|
|
2820
|
+
const Un = {
|
|
2728
2821
|
shouldReceiveBuilderProps: {},
|
|
2729
2822
|
name: "Text",
|
|
2730
2823
|
static: !0,
|
|
@@ -2744,7 +2837,7 @@ const In = {
|
|
|
2744
2837
|
textAlign: "center"
|
|
2745
2838
|
}
|
|
2746
2839
|
};
|
|
2747
|
-
function
|
|
2840
|
+
function Hn(e) {
|
|
2748
2841
|
var t;
|
|
2749
2842
|
return /* @__PURE__ */ s(
|
|
2750
2843
|
"div",
|
|
@@ -2757,7 +2850,7 @@ function En(e) {
|
|
|
2757
2850
|
}
|
|
2758
2851
|
);
|
|
2759
2852
|
}
|
|
2760
|
-
const
|
|
2853
|
+
const Mn = {
|
|
2761
2854
|
name: "Custom Code",
|
|
2762
2855
|
static: !0,
|
|
2763
2856
|
requiredPermissions: ["editCode"],
|
|
@@ -2780,32 +2873,32 @@ const Rn = {
|
|
|
2780
2873
|
advanced: !0
|
|
2781
2874
|
}]
|
|
2782
2875
|
};
|
|
2783
|
-
function
|
|
2784
|
-
const t =
|
|
2785
|
-
function
|
|
2786
|
-
var
|
|
2787
|
-
if (!t.current || !((
|
|
2876
|
+
function qn(e) {
|
|
2877
|
+
const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []);
|
|
2878
|
+
function r() {
|
|
2879
|
+
var c;
|
|
2880
|
+
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2788
2881
|
return;
|
|
2789
2882
|
const l = t.current.getElementsByTagName("script");
|
|
2790
|
-
for (let
|
|
2791
|
-
const
|
|
2792
|
-
if (
|
|
2793
|
-
if (n.includes(
|
|
2883
|
+
for (let u = 0; u < l.length; u++) {
|
|
2884
|
+
const f = l[u];
|
|
2885
|
+
if (f.src) {
|
|
2886
|
+
if (n.includes(f.src))
|
|
2794
2887
|
continue;
|
|
2795
|
-
n.push(
|
|
2888
|
+
n.push(f.src);
|
|
2796
2889
|
const b = document.createElement("script");
|
|
2797
|
-
b.async = !0, b.src =
|
|
2798
|
-
} else if (!
|
|
2890
|
+
b.async = !0, b.src = f.src, document.head.appendChild(b);
|
|
2891
|
+
} else if (!f.type || [
|
|
2799
2892
|
"text/javascript",
|
|
2800
2893
|
"application/javascript",
|
|
2801
2894
|
"application/ecmascript"
|
|
2802
|
-
].includes(
|
|
2803
|
-
if (a.includes(
|
|
2895
|
+
].includes(f.type)) {
|
|
2896
|
+
if (a.includes(f.innerText))
|
|
2804
2897
|
continue;
|
|
2805
2898
|
try {
|
|
2806
|
-
a.push(
|
|
2899
|
+
a.push(f.innerText), new Function(f.innerText)();
|
|
2807
2900
|
} catch (b) {
|
|
2808
|
-
|
|
2901
|
+
Z.warn(
|
|
2809
2902
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2810
2903
|
b
|
|
2811
2904
|
);
|
|
@@ -2813,10 +2906,10 @@ function Pn(e) {
|
|
|
2813
2906
|
}
|
|
2814
2907
|
}
|
|
2815
2908
|
}
|
|
2816
|
-
return
|
|
2817
|
-
|
|
2818
|
-
}, []),
|
|
2819
|
-
|
|
2909
|
+
return V(() => {
|
|
2910
|
+
r();
|
|
2911
|
+
}, []), V(() => {
|
|
2912
|
+
O() && r();
|
|
2820
2913
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2821
2914
|
"div",
|
|
2822
2915
|
{
|
|
@@ -2826,7 +2919,7 @@ function Pn(e) {
|
|
|
2826
2919
|
}
|
|
2827
2920
|
);
|
|
2828
2921
|
}
|
|
2829
|
-
const
|
|
2922
|
+
const jn = {
|
|
2830
2923
|
name: "Embed",
|
|
2831
2924
|
static: !0,
|
|
2832
2925
|
inputs: [{
|
|
@@ -2841,30 +2934,30 @@ const Vn = {
|
|
|
2841
2934
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2842
2935
|
hideFromUI: !0
|
|
2843
2936
|
}]
|
|
2844
|
-
},
|
|
2845
|
-
function
|
|
2846
|
-
const t =
|
|
2847
|
-
function
|
|
2937
|
+
}, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
|
|
2938
|
+
function Jn(e) {
|
|
2939
|
+
const t = H(null), [n, i] = C(() => []), [a, o] = C(() => []), [r, l] = C(() => !1);
|
|
2940
|
+
function c() {
|
|
2848
2941
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2849
2942
|
return;
|
|
2850
|
-
const
|
|
2851
|
-
for (let
|
|
2852
|
-
const b =
|
|
2943
|
+
const u = t.current.getElementsByTagName("script");
|
|
2944
|
+
for (let f = 0; f < u.length; f++) {
|
|
2945
|
+
const b = u[f];
|
|
2853
2946
|
if (b.src && !n.includes(b.src)) {
|
|
2854
2947
|
n.push(b.src);
|
|
2855
2948
|
const m = document.createElement("script");
|
|
2856
2949
|
m.async = !0, m.src = b.src, document.head.appendChild(m);
|
|
2857
|
-
} else if (
|
|
2950
|
+
} else if (Kn(b) && !a.includes(b.innerText))
|
|
2858
2951
|
try {
|
|
2859
2952
|
a.push(b.innerText), new Function(b.innerText)();
|
|
2860
2953
|
} catch (m) {
|
|
2861
|
-
|
|
2954
|
+
Z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
|
|
2862
2955
|
}
|
|
2863
2956
|
}
|
|
2864
2957
|
}
|
|
2865
|
-
return
|
|
2866
|
-
t.current && !
|
|
2867
|
-
}, [t.current,
|
|
2958
|
+
return V(() => {
|
|
2959
|
+
t.current && !r && (l(!0), c());
|
|
2960
|
+
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2868
2961
|
"div",
|
|
2869
2962
|
{
|
|
2870
2963
|
className: "builder-embed",
|
|
@@ -2873,7 +2966,7 @@ function Nn(e) {
|
|
|
2873
2966
|
}
|
|
2874
2967
|
);
|
|
2875
2968
|
}
|
|
2876
|
-
const
|
|
2969
|
+
const Gn = {
|
|
2877
2970
|
name: "Form:Form",
|
|
2878
2971
|
// editableTags: ['builder-form-error']
|
|
2879
2972
|
defaults: {
|
|
@@ -3110,25 +3203,25 @@ const Wn = {
|
|
|
3110
3203
|
builderComponents: !0,
|
|
3111
3204
|
builderLinkComponent: !0
|
|
3112
3205
|
}
|
|
3113
|
-
},
|
|
3206
|
+
}, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
|
|
3114
3207
|
const e = process.env.NODE_ENV || "production";
|
|
3115
|
-
return
|
|
3208
|
+
return Qn.includes(e) ? e : "production";
|
|
3116
3209
|
};
|
|
3117
|
-
function
|
|
3118
|
-
const t =
|
|
3119
|
-
function
|
|
3120
|
-
var
|
|
3210
|
+
function Xn(e) {
|
|
3211
|
+
const t = H(null), [n, i] = C(() => "unsubmitted"), [a, o] = C(() => null), [r, l] = C(() => "");
|
|
3212
|
+
function c(b) {
|
|
3213
|
+
var v, d;
|
|
3121
3214
|
const m = {
|
|
3122
3215
|
...e.builderContext.rootState,
|
|
3123
3216
|
...b
|
|
3124
3217
|
};
|
|
3125
|
-
e.builderContext.rootSetState ? (
|
|
3218
|
+
e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
|
|
3126
3219
|
}
|
|
3127
|
-
function
|
|
3128
|
-
return
|
|
3220
|
+
function u() {
|
|
3221
|
+
return O() && e.previewState || n;
|
|
3129
3222
|
}
|
|
3130
|
-
function
|
|
3131
|
-
var
|
|
3223
|
+
function f(b) {
|
|
3224
|
+
var v;
|
|
3132
3225
|
const m = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3133
3226
|
if (e.sendSubmissionsTo === "zapier")
|
|
3134
3227
|
b.preventDefault();
|
|
@@ -3138,90 +3231,104 @@ function Fn(e) {
|
|
|
3138
3231
|
return;
|
|
3139
3232
|
}
|
|
3140
3233
|
b.preventDefault();
|
|
3141
|
-
const
|
|
3142
|
-
let
|
|
3143
|
-
const
|
|
3144
|
-
let
|
|
3145
|
-
const
|
|
3146
|
-
if (
|
|
3147
|
-
if (
|
|
3148
|
-
if (
|
|
3149
|
-
return
|
|
3150
|
-
key:
|
|
3151
|
-
value:
|
|
3234
|
+
const d = b.currentTarget || b.target, h = e.customHeaders || {};
|
|
3235
|
+
let p;
|
|
3236
|
+
const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
|
|
3237
|
+
let x;
|
|
3238
|
+
const w = g.name;
|
|
3239
|
+
if (g instanceof HTMLInputElement)
|
|
3240
|
+
if (g.type === "radio") {
|
|
3241
|
+
if (g.checked)
|
|
3242
|
+
return x = g.name, {
|
|
3243
|
+
key: w,
|
|
3244
|
+
value: x
|
|
3152
3245
|
};
|
|
3153
|
-
} else if (
|
|
3154
|
-
|
|
3155
|
-
else if (
|
|
3156
|
-
const
|
|
3157
|
-
isNaN(
|
|
3246
|
+
} else if (g.type === "checkbox")
|
|
3247
|
+
x = g.checked;
|
|
3248
|
+
else if (g.type === "number" || g.type === "range") {
|
|
3249
|
+
const D = g.valueAsNumber;
|
|
3250
|
+
isNaN(D) || (x = D);
|
|
3158
3251
|
} else
|
|
3159
|
-
|
|
3252
|
+
g.type === "file" ? x = g.files : x = g.value;
|
|
3160
3253
|
else
|
|
3161
|
-
|
|
3254
|
+
x = g.value;
|
|
3162
3255
|
return {
|
|
3163
|
-
key:
|
|
3164
|
-
value:
|
|
3256
|
+
key: w,
|
|
3257
|
+
value: x
|
|
3165
3258
|
};
|
|
3166
3259
|
});
|
|
3167
|
-
let
|
|
3168
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3169
|
-
(
|
|
3170
|
-
}),
|
|
3171
|
-
|
|
3260
|
+
let k = e.contentType;
|
|
3261
|
+
if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
|
|
3262
|
+
(g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
|
|
3263
|
+
}), k !== "application/json")
|
|
3264
|
+
p = y;
|
|
3172
3265
|
else {
|
|
3173
|
-
const
|
|
3174
|
-
Array.from(
|
|
3175
|
-
|
|
3176
|
-
}),
|
|
3266
|
+
const g = {};
|
|
3267
|
+
Array.from(S).forEach(({ value: x, key: w }) => {
|
|
3268
|
+
Ue(g, w, x);
|
|
3269
|
+
}), p = JSON.stringify(g);
|
|
3177
3270
|
}
|
|
3178
|
-
|
|
3179
|
-
const
|
|
3180
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3271
|
+
k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
|
|
3272
|
+
const A = new CustomEvent("presubmit", { detail: { body: p } });
|
|
3273
|
+
if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
|
|
3274
|
+
return;
|
|
3275
|
+
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3276
|
+
const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3277
|
+
console.error(g), i("error"), c({ formErrorMessage: g });
|
|
3181
3278
|
return;
|
|
3182
|
-
|
|
3183
|
-
const
|
|
3279
|
+
}
|
|
3280
|
+
const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3184
3281
|
e.sendSubmissionsToEmail || ""
|
|
3185
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3186
|
-
|
|
3187
|
-
async (
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3282
|
+
)}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
|
|
3283
|
+
Fe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
|
|
3284
|
+
async (g) => {
|
|
3285
|
+
var D, L;
|
|
3286
|
+
let x;
|
|
3287
|
+
const w = g.headers.get("content-type");
|
|
3288
|
+
if (w && w.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
|
|
3289
|
+
const W = new CustomEvent("submit:error", {
|
|
3290
|
+
detail: { error: x, status: g.status }
|
|
3291
|
+
});
|
|
3292
|
+
if ((D = t.current) != null && D.nativeElement && ((L = t.current) == null || L.nativeElement.dispatchEvent(W), W.defaultPrevented))
|
|
3293
|
+
return;
|
|
3294
|
+
o(x), i("error");
|
|
3295
|
+
let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
|
|
3296
|
+
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3297
|
+
return;
|
|
3193
3298
|
}
|
|
3194
|
-
if (
|
|
3195
|
-
const
|
|
3196
|
-
detail: { res:
|
|
3299
|
+
if (o(x), i(g.ok ? "success" : "error"), g.ok) {
|
|
3300
|
+
const W = new CustomEvent("submit:success", {
|
|
3301
|
+
detail: { res: g, body: x }
|
|
3197
3302
|
});
|
|
3198
3303
|
if (t.current) {
|
|
3199
|
-
if (t.current.dispatchEvent(
|
|
3304
|
+
if (t.current.dispatchEvent(W), W.defaultPrevented)
|
|
3200
3305
|
return;
|
|
3201
3306
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3202
3307
|
}
|
|
3203
3308
|
if (e.successUrl)
|
|
3204
3309
|
if (t.current) {
|
|
3205
|
-
const
|
|
3310
|
+
const P = new CustomEvent("route", {
|
|
3206
3311
|
detail: { url: e.successUrl }
|
|
3207
3312
|
});
|
|
3208
|
-
t.current.dispatchEvent(
|
|
3313
|
+
t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
|
|
3209
3314
|
} else
|
|
3210
3315
|
location.href = e.successUrl;
|
|
3211
3316
|
}
|
|
3212
3317
|
},
|
|
3213
|
-
(
|
|
3214
|
-
const
|
|
3215
|
-
detail: { error:
|
|
3318
|
+
(g) => {
|
|
3319
|
+
const x = new CustomEvent("submit:error", {
|
|
3320
|
+
detail: { error: g }
|
|
3216
3321
|
});
|
|
3217
|
-
t.current && (t.current.dispatchEvent(
|
|
3322
|
+
t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
|
|
3218
3323
|
}
|
|
3219
3324
|
);
|
|
3220
3325
|
}
|
|
3221
3326
|
}
|
|
3222
|
-
return /* @__PURE__ */
|
|
3327
|
+
return /* @__PURE__ */ $(R, { children: [
|
|
3328
|
+
" ",
|
|
3329
|
+
/* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
|
|
3223
3330
|
" ",
|
|
3224
|
-
/* @__PURE__ */
|
|
3331
|
+
/* @__PURE__ */ $(
|
|
3225
3332
|
"form",
|
|
3226
3333
|
{
|
|
3227
3334
|
validate: e.validate,
|
|
@@ -3229,29 +3336,29 @@ function Fn(e) {
|
|
|
3229
3336
|
action: !e.sendWithJs && e.action,
|
|
3230
3337
|
method: e.method,
|
|
3231
3338
|
name: e.name,
|
|
3232
|
-
onSubmit: (b) =>
|
|
3339
|
+
onSubmit: (b) => f(b),
|
|
3233
3340
|
...e.attributes,
|
|
3234
3341
|
children: [
|
|
3235
3342
|
e.children,
|
|
3236
|
-
|
|
3237
|
-
|
|
3343
|
+
u() === "error" ? /* @__PURE__ */ s(
|
|
3344
|
+
_,
|
|
3238
3345
|
{
|
|
3239
3346
|
path: "errorMessage",
|
|
3240
3347
|
blocks: e.errorMessage,
|
|
3241
3348
|
context: e.builderContext
|
|
3242
3349
|
}
|
|
3243
3350
|
) : null,
|
|
3244
|
-
|
|
3245
|
-
|
|
3351
|
+
u() === "sending" ? /* @__PURE__ */ s(
|
|
3352
|
+
_,
|
|
3246
3353
|
{
|
|
3247
3354
|
path: "sendingMessage",
|
|
3248
3355
|
blocks: e.sendingMessage,
|
|
3249
3356
|
context: e.builderContext
|
|
3250
3357
|
}
|
|
3251
3358
|
) : null,
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3359
|
+
u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(a, null, 2) }) : null,
|
|
3360
|
+
u() === "success" ? /* @__PURE__ */ s(
|
|
3361
|
+
_,
|
|
3255
3362
|
{
|
|
3256
3363
|
path: "successMessage",
|
|
3257
3364
|
blocks: e.successMessage,
|
|
@@ -3261,12 +3368,10 @@ function Fn(e) {
|
|
|
3261
3368
|
]
|
|
3262
3369
|
}
|
|
3263
3370
|
),
|
|
3264
|
-
" ",
|
|
3265
|
-
/* @__PURE__ */ s("style", { children: ".pre-7acc3b46 { padding: 10px; color: red; text-align: center; }" }),
|
|
3266
3371
|
" "
|
|
3267
3372
|
] });
|
|
3268
3373
|
}
|
|
3269
|
-
const
|
|
3374
|
+
const Zn = {
|
|
3270
3375
|
name: "Form:Input",
|
|
3271
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3272
3377
|
inputs: [
|
|
@@ -3318,12 +3423,12 @@ const Ln = {
|
|
|
3318
3423
|
borderColor: "#ccc"
|
|
3319
3424
|
}
|
|
3320
3425
|
};
|
|
3321
|
-
function
|
|
3322
|
-
return /* @__PURE__ */
|
|
3426
|
+
function ei(e) {
|
|
3427
|
+
return /* @__PURE__ */ _e(
|
|
3323
3428
|
"input",
|
|
3324
3429
|
{
|
|
3325
3430
|
...e.attributes,
|
|
3326
|
-
key:
|
|
3431
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3327
3432
|
placeholder: e.placeholder,
|
|
3328
3433
|
type: e.type,
|
|
3329
3434
|
name: e.name,
|
|
@@ -3333,7 +3438,7 @@ function On(e) {
|
|
|
3333
3438
|
}
|
|
3334
3439
|
);
|
|
3335
3440
|
}
|
|
3336
|
-
const
|
|
3441
|
+
const ti = {
|
|
3337
3442
|
name: "Form:Select",
|
|
3338
3443
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3339
3444
|
defaultStyles: {
|
|
@@ -3376,14 +3481,14 @@ const Un = {
|
|
|
3376
3481
|
static: !0,
|
|
3377
3482
|
noWrap: !0
|
|
3378
3483
|
};
|
|
3379
|
-
function
|
|
3484
|
+
function ni(e) {
|
|
3380
3485
|
var t;
|
|
3381
|
-
return /* @__PURE__ */
|
|
3486
|
+
return /* @__PURE__ */ _e(
|
|
3382
3487
|
"select",
|
|
3383
3488
|
{
|
|
3384
3489
|
...e.attributes,
|
|
3385
3490
|
value: e.value,
|
|
3386
|
-
key:
|
|
3491
|
+
key: O() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3387
3492
|
defaultValue: e.defaultValue,
|
|
3388
3493
|
name: e.name,
|
|
3389
3494
|
required: e.required
|
|
@@ -3391,7 +3496,7 @@ function _n(e) {
|
|
|
3391
3496
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3392
3497
|
);
|
|
3393
3498
|
}
|
|
3394
|
-
const
|
|
3499
|
+
const ii = {
|
|
3395
3500
|
name: "Form:SubmitButton",
|
|
3396
3501
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3397
3502
|
defaultStyles: {
|
|
@@ -3417,10 +3522,10 @@ const qn = {
|
|
|
3417
3522
|
// TODO: defaultChildren
|
|
3418
3523
|
// canHaveChildren: true,
|
|
3419
3524
|
};
|
|
3420
|
-
function
|
|
3525
|
+
function ai(e) {
|
|
3421
3526
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3422
3527
|
}
|
|
3423
|
-
const
|
|
3528
|
+
const ri = {
|
|
3424
3529
|
name: "Form:TextArea",
|
|
3425
3530
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3426
3531
|
inputs: [{
|
|
@@ -3457,7 +3562,7 @@ const Mn = {
|
|
|
3457
3562
|
static: !0,
|
|
3458
3563
|
noWrap: !0
|
|
3459
3564
|
};
|
|
3460
|
-
function
|
|
3565
|
+
function oi(e) {
|
|
3461
3566
|
return /* @__PURE__ */ s(
|
|
3462
3567
|
"textarea",
|
|
3463
3568
|
{
|
|
@@ -3470,7 +3575,7 @@ function jn(e) {
|
|
|
3470
3575
|
}
|
|
3471
3576
|
);
|
|
3472
3577
|
}
|
|
3473
|
-
const
|
|
3578
|
+
const li = {
|
|
3474
3579
|
// friendlyName?
|
|
3475
3580
|
name: "Raw:Img",
|
|
3476
3581
|
hideFromInsertMenu: !0,
|
|
@@ -3479,13 +3584,13 @@ const zn = {
|
|
|
3479
3584
|
name: "image",
|
|
3480
3585
|
bubble: !0,
|
|
3481
3586
|
type: "file",
|
|
3482
|
-
allowedFileTypes:
|
|
3587
|
+
allowedFileTypes: Se,
|
|
3483
3588
|
required: !0
|
|
3484
3589
|
}],
|
|
3485
3590
|
noWrap: !0,
|
|
3486
3591
|
static: !0
|
|
3487
3592
|
};
|
|
3488
|
-
function
|
|
3593
|
+
function si(e) {
|
|
3489
3594
|
return /* @__PURE__ */ s(
|
|
3490
3595
|
"img",
|
|
3491
3596
|
{
|
|
@@ -3497,10 +3602,10 @@ function Kn(e) {
|
|
|
3497
3602
|
src: e.imgSrc || e.image,
|
|
3498
3603
|
...e.attributes
|
|
3499
3604
|
},
|
|
3500
|
-
|
|
3605
|
+
O() && e.imgSrc || "default-key"
|
|
3501
3606
|
);
|
|
3502
3607
|
}
|
|
3503
|
-
const
|
|
3608
|
+
const ci = {
|
|
3504
3609
|
name: "Video",
|
|
3505
3610
|
canHaveChildren: !0,
|
|
3506
3611
|
defaultStyles: {
|
|
@@ -3511,14 +3616,14 @@ const Jn = {
|
|
|
3511
3616
|
inputs: [{
|
|
3512
3617
|
name: "video",
|
|
3513
3618
|
type: "file",
|
|
3514
|
-
allowedFileTypes:
|
|
3619
|
+
allowedFileTypes: An,
|
|
3515
3620
|
bubble: !0,
|
|
3516
3621
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3517
3622
|
required: !0
|
|
3518
3623
|
}, {
|
|
3519
3624
|
name: "posterImage",
|
|
3520
3625
|
type: "file",
|
|
3521
|
-
allowedFileTypes:
|
|
3626
|
+
allowedFileTypes: Se,
|
|
3522
3627
|
helperText: "Image to show before the video plays"
|
|
3523
3628
|
}, {
|
|
3524
3629
|
name: "autoPlay",
|
|
@@ -3585,9 +3690,9 @@ const Jn = {
|
|
|
3585
3690
|
builderBlock: !0
|
|
3586
3691
|
}
|
|
3587
3692
|
};
|
|
3588
|
-
function
|
|
3589
|
-
var
|
|
3590
|
-
const t =
|
|
3693
|
+
function ui(e) {
|
|
3694
|
+
var r, l, c, u, f, b, m;
|
|
3695
|
+
const t = H(null);
|
|
3591
3696
|
function n() {
|
|
3592
3697
|
return {
|
|
3593
3698
|
...e.autoPlay === !0 ? {
|
|
@@ -3612,32 +3717,32 @@ function Gn(e) {
|
|
|
3612
3717
|
...n()
|
|
3613
3718
|
};
|
|
3614
3719
|
}
|
|
3615
|
-
const [a,
|
|
3720
|
+
const [a, o] = C(() => {
|
|
3616
3721
|
});
|
|
3617
|
-
return
|
|
3722
|
+
return V(() => {
|
|
3618
3723
|
if (e.lazyLoad) {
|
|
3619
|
-
const
|
|
3620
|
-
|
|
3621
|
-
if (!
|
|
3724
|
+
const v = new IntersectionObserver(function(d) {
|
|
3725
|
+
d.forEach(function(h) {
|
|
3726
|
+
if (!h.isIntersecting)
|
|
3622
3727
|
return;
|
|
3623
|
-
const
|
|
3728
|
+
const p = h.target;
|
|
3624
3729
|
try {
|
|
3625
|
-
Array.from(
|
|
3626
|
-
(
|
|
3627
|
-
).forEach((
|
|
3628
|
-
const
|
|
3629
|
-
|
|
3630
|
-
}),
|
|
3631
|
-
} catch (
|
|
3632
|
-
console.error("Error loading lazy video:",
|
|
3730
|
+
Array.from(p.children).filter(
|
|
3731
|
+
(y) => y instanceof HTMLElement && y.tagName === "SOURCE"
|
|
3732
|
+
).forEach((y) => {
|
|
3733
|
+
const S = y.dataset.src;
|
|
3734
|
+
S && (y.src = S);
|
|
3735
|
+
}), p.load(), v.unobserve(p);
|
|
3736
|
+
} catch (y) {
|
|
3737
|
+
console.error("Error loading lazy video:", y);
|
|
3633
3738
|
}
|
|
3634
3739
|
});
|
|
3635
3740
|
});
|
|
3636
|
-
t.current &&
|
|
3741
|
+
t.current && v.observe(t.current), o(v);
|
|
3637
3742
|
}
|
|
3638
|
-
}, []),
|
|
3743
|
+
}, []), V(() => () => {
|
|
3639
3744
|
a && a.disconnect();
|
|
3640
|
-
}, []), /* @__PURE__ */
|
|
3745
|
+
}, []), /* @__PURE__ */ $(
|
|
3641
3746
|
"div",
|
|
3642
3747
|
{
|
|
3643
3748
|
style: {
|
|
@@ -3654,7 +3759,7 @@ function Gn(e) {
|
|
|
3654
3759
|
style: {
|
|
3655
3760
|
width: "100%",
|
|
3656
3761
|
height: "100%",
|
|
3657
|
-
...(
|
|
3762
|
+
...(r = e.attributes) == null ? void 0 : r.style,
|
|
3658
3763
|
objectFit: e.fit,
|
|
3659
3764
|
objectPosition: e.position,
|
|
3660
3765
|
// Hack to get object fit to work as expected and
|
|
@@ -3678,7 +3783,7 @@ function Gn(e) {
|
|
|
3678
3783
|
)
|
|
3679
3784
|
}
|
|
3680
3785
|
),
|
|
3681
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3786
|
+
e.aspectRatio && !(e.fitContent && ((c = (l = e.builderBlock) == null ? void 0 : l.children) != null && c.length)) ? /* @__PURE__ */ s(
|
|
3682
3787
|
"div",
|
|
3683
3788
|
{
|
|
3684
3789
|
style: {
|
|
@@ -3689,7 +3794,7 @@ function Gn(e) {
|
|
|
3689
3794
|
}
|
|
3690
3795
|
}
|
|
3691
3796
|
) : null,
|
|
3692
|
-
(
|
|
3797
|
+
(f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3693
3798
|
"div",
|
|
3694
3799
|
{
|
|
3695
3800
|
style: {
|
|
@@ -3721,67 +3826,67 @@ function Gn(e) {
|
|
|
3721
3826
|
}
|
|
3722
3827
|
);
|
|
3723
3828
|
}
|
|
3724
|
-
const
|
|
3725
|
-
component:
|
|
3726
|
-
...
|
|
3727
|
-
}, {
|
|
3728
|
-
component: Nn,
|
|
3729
|
-
...Vn
|
|
3730
|
-
}, {
|
|
3731
|
-
component: Fn,
|
|
3732
|
-
...Wn
|
|
3829
|
+
const di = () => [{
|
|
3830
|
+
component: qn,
|
|
3831
|
+
...Mn
|
|
3733
3832
|
}, {
|
|
3734
|
-
component:
|
|
3735
|
-
...
|
|
3833
|
+
component: Jn,
|
|
3834
|
+
...jn
|
|
3736
3835
|
}, {
|
|
3737
|
-
component:
|
|
3738
|
-
...
|
|
3836
|
+
component: Xn,
|
|
3837
|
+
...Gn
|
|
3739
3838
|
}, {
|
|
3740
|
-
component:
|
|
3741
|
-
...
|
|
3839
|
+
component: ei,
|
|
3840
|
+
...Zn
|
|
3742
3841
|
}, {
|
|
3743
|
-
component:
|
|
3744
|
-
...
|
|
3842
|
+
component: ai,
|
|
3843
|
+
...ii
|
|
3745
3844
|
}, {
|
|
3746
|
-
component:
|
|
3747
|
-
...
|
|
3845
|
+
component: ni,
|
|
3846
|
+
...ti
|
|
3748
3847
|
}, {
|
|
3749
|
-
component:
|
|
3750
|
-
...
|
|
3751
|
-
}], we = () => [{
|
|
3752
|
-
component: dt,
|
|
3753
|
-
...ln
|
|
3848
|
+
component: oi,
|
|
3849
|
+
...ri
|
|
3754
3850
|
}, {
|
|
3755
|
-
component:
|
|
3756
|
-
...
|
|
3851
|
+
component: si,
|
|
3852
|
+
...li
|
|
3757
3853
|
}, {
|
|
3758
|
-
component:
|
|
3759
|
-
...
|
|
3854
|
+
component: ui,
|
|
3855
|
+
...ci
|
|
3856
|
+
}], Be = () => [{
|
|
3857
|
+
component: kt,
|
|
3858
|
+
...Rn
|
|
3760
3859
|
}, {
|
|
3761
|
-
component:
|
|
3762
|
-
...
|
|
3860
|
+
component: un,
|
|
3861
|
+
...Pn
|
|
3763
3862
|
}, {
|
|
3764
|
-
component:
|
|
3765
|
-
...
|
|
3863
|
+
component: dn,
|
|
3864
|
+
...Vn
|
|
3766
3865
|
}, {
|
|
3767
|
-
component:
|
|
3768
|
-
...
|
|
3866
|
+
component: hn,
|
|
3867
|
+
...Bn
|
|
3769
3868
|
}, {
|
|
3770
|
-
component:
|
|
3771
|
-
...
|
|
3869
|
+
component: gn,
|
|
3870
|
+
...Wn
|
|
3772
3871
|
}, {
|
|
3773
|
-
component:
|
|
3774
|
-
...
|
|
3872
|
+
component: Fn,
|
|
3873
|
+
...Dn
|
|
3775
3874
|
}, {
|
|
3776
|
-
component:
|
|
3777
|
-
...
|
|
3875
|
+
component: Di,
|
|
3876
|
+
...Ln
|
|
3778
3877
|
}, {
|
|
3779
|
-
component:
|
|
3780
|
-
...
|
|
3878
|
+
component: Hn,
|
|
3879
|
+
...Un
|
|
3880
|
+
}, ...nt.includes(F) ? [{
|
|
3881
|
+
component: $n,
|
|
3882
|
+
...Nn
|
|
3883
|
+
}] : [], {
|
|
3884
|
+
component: _n,
|
|
3885
|
+
...On
|
|
3781
3886
|
}, {
|
|
3782
|
-
component:
|
|
3783
|
-
...
|
|
3784
|
-
}, ...
|
|
3887
|
+
component: En,
|
|
3888
|
+
...wn
|
|
3889
|
+
}, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3785
3890
|
function getAndSetVariantId() {
|
|
3786
3891
|
function setCookie(name, value, days) {
|
|
3787
3892
|
let expires = '';
|
|
@@ -3840,7 +3945,7 @@ const Qn = () => [{
|
|
|
3840
3945
|
}).join('');
|
|
3841
3946
|
styleEl.innerHTML = newStyleStr;
|
|
3842
3947
|
}
|
|
3843
|
-
}`,
|
|
3948
|
+
}`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3844
3949
|
if (!navigator.cookieEnabled) {
|
|
3845
3950
|
return;
|
|
3846
3951
|
}
|
|
@@ -3874,29 +3979,29 @@ const Qn = () => [{
|
|
|
3874
3979
|
thisScriptEl?.remove();
|
|
3875
3980
|
}
|
|
3876
3981
|
return;
|
|
3877
|
-
}`,
|
|
3982
|
+
}`, at = "builderIoAbTest", rt = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3878
3983
|
...t,
|
|
3879
3984
|
testVariationId: t.id,
|
|
3880
3985
|
id: e == null ? void 0 : e.id
|
|
3881
|
-
})),
|
|
3986
|
+
})), hi = ({
|
|
3882
3987
|
canTrack: e,
|
|
3883
3988
|
content: t
|
|
3884
|
-
}) => !(!(
|
|
3885
|
-
window.${
|
|
3886
|
-
window.${
|
|
3887
|
-
`,
|
|
3888
|
-
window.${
|
|
3889
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
3890
|
-
)`,
|
|
3989
|
+
}) => !(!(ae(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", ot = gi(F), yi = () => `
|
|
3990
|
+
window.${at} = ${mi}
|
|
3991
|
+
window.${rt} = ${fi}
|
|
3992
|
+
`, pi = (e, t) => `
|
|
3993
|
+
window.${at}(
|
|
3994
|
+
"${t}",${JSON.stringify(e)}, ${ot}, ${bi}
|
|
3995
|
+
)`, vi = ({
|
|
3891
3996
|
contentId: e,
|
|
3892
3997
|
variationId: t
|
|
3893
|
-
}) => `window.${
|
|
3894
|
-
"${t}", "${e}", ${
|
|
3998
|
+
}) => `window.${rt}(
|
|
3999
|
+
"${t}", "${e}", ${ot}
|
|
3895
4000
|
)`;
|
|
3896
|
-
function
|
|
4001
|
+
function Ne(e) {
|
|
3897
4002
|
return Math.round(e * 1e3) / 1e3;
|
|
3898
4003
|
}
|
|
3899
|
-
const
|
|
4004
|
+
const xi = (e, t, n = !0) => {
|
|
3900
4005
|
if (!(e instanceof HTMLElement))
|
|
3901
4006
|
return null;
|
|
3902
4007
|
let i = n ? e : e.parentElement;
|
|
@@ -3907,37 +4012,37 @@ const oi = (e, t, n = !0) => {
|
|
|
3907
4012
|
return i;
|
|
3908
4013
|
} while (i = i.parentElement);
|
|
3909
4014
|
return null;
|
|
3910
|
-
},
|
|
4015
|
+
}, Si = (e) => xi(e, (t) => {
|
|
3911
4016
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3912
4017
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3913
|
-
}),
|
|
4018
|
+
}), $e = ({
|
|
3914
4019
|
event: e,
|
|
3915
4020
|
target: t
|
|
3916
4021
|
}) => {
|
|
3917
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top,
|
|
4022
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ne(i / n.width), r = Ne(a / n.height);
|
|
3918
4023
|
return {
|
|
3919
|
-
x:
|
|
3920
|
-
y:
|
|
4024
|
+
x: o,
|
|
4025
|
+
y: r
|
|
3921
4026
|
};
|
|
3922
|
-
},
|
|
3923
|
-
const t = e.target, n = t &&
|
|
4027
|
+
}, ki = (e) => {
|
|
4028
|
+
const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3924
4029
|
return {
|
|
3925
4030
|
targetBuilderElement: i || void 0,
|
|
3926
4031
|
metadata: {
|
|
3927
|
-
targetOffset: t ?
|
|
4032
|
+
targetOffset: t ? $e({
|
|
3928
4033
|
event: e,
|
|
3929
4034
|
target: t
|
|
3930
4035
|
}) : void 0,
|
|
3931
|
-
builderTargetOffset: n ?
|
|
4036
|
+
builderTargetOffset: n ? $e({
|
|
3932
4037
|
event: e,
|
|
3933
4038
|
target: n
|
|
3934
4039
|
}) : void 0,
|
|
3935
4040
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3936
4041
|
}
|
|
3937
4042
|
};
|
|
3938
|
-
},
|
|
3939
|
-
var
|
|
3940
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4043
|
+
}, Ci = ["svelte", "qwik", "vue"], We = () => Ci.includes(F) && (O() || oe()), Ti = (e) => {
|
|
4044
|
+
var o, r;
|
|
4045
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
3941
4046
|
let a = "";
|
|
3942
4047
|
if (i && t && n && (a += `
|
|
3943
4048
|
@font-face {
|
|
@@ -3950,26 +4055,26 @@ font-weight: 400;
|
|
|
3950
4055
|
for (const l in e.files) {
|
|
3951
4056
|
if (!(String(Number(l)) === l))
|
|
3952
4057
|
continue;
|
|
3953
|
-
const
|
|
3954
|
-
|
|
4058
|
+
const u = e.files[l];
|
|
4059
|
+
u && u !== i && (a += `
|
|
3955
4060
|
@font-face {
|
|
3956
4061
|
font-family: "${t}";
|
|
3957
|
-
src: url('${
|
|
4062
|
+
src: url('${u}') format('woff2');
|
|
3958
4063
|
font-display: fallback;
|
|
3959
4064
|
font-weight: ${l};
|
|
3960
4065
|
}
|
|
3961
4066
|
`.trim());
|
|
3962
4067
|
}
|
|
3963
4068
|
return a;
|
|
3964
|
-
},
|
|
4069
|
+
}, Ii = ({
|
|
3965
4070
|
customFonts: e
|
|
3966
4071
|
}) => {
|
|
3967
4072
|
var t;
|
|
3968
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3969
|
-
},
|
|
4073
|
+
return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4074
|
+
}, wi = ({
|
|
3970
4075
|
cssCode: e,
|
|
3971
4076
|
contentId: t
|
|
3972
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4077
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
|
|
3973
4078
|
.builder-button {
|
|
3974
4079
|
all: unset;
|
|
3975
4080
|
}
|
|
@@ -3986,40 +4091,40 @@ font-weight: ${l};
|
|
|
3986
4091
|
text-align: inherit;
|
|
3987
4092
|
font-family: inherit;
|
|
3988
4093
|
}
|
|
3989
|
-
`,
|
|
3990
|
-
function
|
|
3991
|
-
var
|
|
3992
|
-
const t =
|
|
3993
|
-
|
|
3994
|
-
function n(
|
|
3995
|
-
var
|
|
3996
|
-
const
|
|
4094
|
+
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4095
|
+
function Vi(e) {
|
|
4096
|
+
var S, k, A;
|
|
4097
|
+
const t = H(null);
|
|
4098
|
+
C(() => !1);
|
|
4099
|
+
function n(T) {
|
|
4100
|
+
var g, x;
|
|
4101
|
+
const I = {
|
|
3997
4102
|
...e.builderContextSignal.rootState,
|
|
3998
|
-
...
|
|
4103
|
+
...T
|
|
3999
4104
|
};
|
|
4000
|
-
e.builderContextSignal.rootSetState ? (
|
|
4001
|
-
...
|
|
4002
|
-
rootState:
|
|
4105
|
+
e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, I) : e.setBuilderContextSignal((w) => ({
|
|
4106
|
+
...w,
|
|
4107
|
+
rootState: I
|
|
4003
4108
|
}));
|
|
4004
4109
|
}
|
|
4005
|
-
function i(
|
|
4006
|
-
var
|
|
4007
|
-
const
|
|
4110
|
+
function i(T) {
|
|
4111
|
+
var g, x, w, D, L;
|
|
4112
|
+
const I = {
|
|
4008
4113
|
...e.builderContextSignal.content,
|
|
4009
|
-
...
|
|
4114
|
+
...T,
|
|
4010
4115
|
data: {
|
|
4011
|
-
...(
|
|
4012
|
-
...
|
|
4116
|
+
...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
|
|
4117
|
+
...T == null ? void 0 : T.data
|
|
4013
4118
|
},
|
|
4014
4119
|
meta: {
|
|
4015
|
-
...(
|
|
4016
|
-
...
|
|
4017
|
-
breakpoints: ((
|
|
4120
|
+
...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
|
|
4121
|
+
...T == null ? void 0 : T.meta,
|
|
4122
|
+
breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((L = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : L.breakpoints)
|
|
4018
4123
|
}
|
|
4019
4124
|
};
|
|
4020
4125
|
e.setBuilderContextSignal((W) => ({
|
|
4021
4126
|
...W,
|
|
4022
|
-
content:
|
|
4127
|
+
content: I
|
|
4023
4128
|
}));
|
|
4024
4129
|
}
|
|
4025
4130
|
function a() {
|
|
@@ -4028,65 +4133,65 @@ function gi(e) {
|
|
|
4028
4133
|
"aria-hidden": !0
|
|
4029
4134
|
};
|
|
4030
4135
|
}
|
|
4031
|
-
const [
|
|
4136
|
+
const [o, r] = C(
|
|
4032
4137
|
() => e.contentWrapper || "div"
|
|
4033
4138
|
);
|
|
4034
|
-
function l(
|
|
4035
|
-
return
|
|
4139
|
+
function l(T) {
|
|
4140
|
+
return dt({
|
|
4036
4141
|
model: e.model,
|
|
4037
4142
|
trustedHosts: e.trustedHosts,
|
|
4038
4143
|
callbacks: {
|
|
4039
|
-
configureSdk: (
|
|
4040
|
-
var
|
|
4041
|
-
const { breakpoints:
|
|
4042
|
-
!
|
|
4144
|
+
configureSdk: (I) => {
|
|
4145
|
+
var w;
|
|
4146
|
+
const { breakpoints: g, contentId: x } = I;
|
|
4147
|
+
!x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || g && i({
|
|
4043
4148
|
meta: {
|
|
4044
|
-
breakpoints:
|
|
4149
|
+
breakpoints: g
|
|
4045
4150
|
}
|
|
4046
4151
|
});
|
|
4047
4152
|
},
|
|
4048
|
-
animation: (
|
|
4049
|
-
|
|
4153
|
+
animation: (I) => {
|
|
4154
|
+
Ke(I);
|
|
4050
4155
|
},
|
|
4051
|
-
contentUpdate: (
|
|
4052
|
-
i(
|
|
4156
|
+
contentUpdate: (I) => {
|
|
4157
|
+
i(I);
|
|
4053
4158
|
},
|
|
4054
|
-
stateUpdate: (
|
|
4055
|
-
n(
|
|
4159
|
+
stateUpdate: (I) => {
|
|
4160
|
+
n(I);
|
|
4056
4161
|
}
|
|
4057
4162
|
}
|
|
4058
|
-
})(
|
|
4163
|
+
})(T);
|
|
4059
4164
|
}
|
|
4060
|
-
const [
|
|
4061
|
-
function
|
|
4062
|
-
var
|
|
4165
|
+
const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
|
|
4166
|
+
function d(T) {
|
|
4167
|
+
var I, g;
|
|
4063
4168
|
if (e.builderContextSignal.content) {
|
|
4064
|
-
const
|
|
4065
|
-
|
|
4169
|
+
const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
|
|
4170
|
+
Te({
|
|
4066
4171
|
apiHost: e.apiHost,
|
|
4067
4172
|
type: "click",
|
|
4068
|
-
canTrack:
|
|
4069
|
-
contentId:
|
|
4173
|
+
canTrack: X(e.canTrack),
|
|
4174
|
+
contentId: w,
|
|
4070
4175
|
apiKey: e.apiKey,
|
|
4071
|
-
variationId:
|
|
4072
|
-
...
|
|
4176
|
+
variationId: x !== w ? x : void 0,
|
|
4177
|
+
...ki(T),
|
|
4073
4178
|
unique: !m
|
|
4074
4179
|
});
|
|
4075
4180
|
}
|
|
4076
|
-
m ||
|
|
4181
|
+
m || v(!0);
|
|
4077
4182
|
}
|
|
4078
|
-
function
|
|
4079
|
-
var
|
|
4080
|
-
const
|
|
4081
|
-
Object.entries(
|
|
4082
|
-
if (!
|
|
4183
|
+
function h() {
|
|
4184
|
+
var I, g, x;
|
|
4185
|
+
const T = (x = (g = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : g.httpRequests) != null ? x : {};
|
|
4186
|
+
Object.entries(T).forEach(([w, D]) => {
|
|
4187
|
+
if (!D || f[w] || c[w] && !O())
|
|
4083
4188
|
return;
|
|
4084
|
-
|
|
4085
|
-
const
|
|
4189
|
+
f[w] = !0;
|
|
4190
|
+
const L = D.replace(
|
|
4086
4191
|
/{{([^}]+)}}/g,
|
|
4087
|
-
(W,
|
|
4088
|
-
|
|
4089
|
-
code:
|
|
4192
|
+
(W, P) => String(
|
|
4193
|
+
J({
|
|
4194
|
+
code: P,
|
|
4090
4195
|
context: e.context || {},
|
|
4091
4196
|
localState: void 0,
|
|
4092
4197
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4094,24 +4199,24 @@ function gi(e) {
|
|
|
4094
4199
|
})
|
|
4095
4200
|
)
|
|
4096
4201
|
);
|
|
4097
|
-
|
|
4202
|
+
Fe(L), fetch(L).then((W) => W.json()).then((W) => {
|
|
4098
4203
|
n({
|
|
4099
|
-
[
|
|
4100
|
-
}),
|
|
4204
|
+
[w]: W
|
|
4205
|
+
}), c[w] = !0;
|
|
4101
4206
|
}).catch((W) => {
|
|
4102
|
-
console.error("error fetching dynamic data",
|
|
4207
|
+
console.error("error fetching dynamic data", D, W);
|
|
4103
4208
|
}).finally(() => {
|
|
4104
|
-
|
|
4209
|
+
f[w] = !1;
|
|
4105
4210
|
});
|
|
4106
4211
|
});
|
|
4107
4212
|
}
|
|
4108
|
-
function
|
|
4109
|
-
|
|
4213
|
+
function p() {
|
|
4214
|
+
O() && window.dispatchEvent(
|
|
4110
4215
|
new CustomEvent(
|
|
4111
4216
|
"builder:component:stateChange",
|
|
4112
4217
|
{
|
|
4113
4218
|
detail: {
|
|
4114
|
-
state:
|
|
4219
|
+
state: ye(e.builderContextSignal.rootState),
|
|
4115
4220
|
ref: {
|
|
4116
4221
|
name: e.model
|
|
4117
4222
|
}
|
|
@@ -4120,11 +4225,11 @@ function gi(e) {
|
|
|
4120
4225
|
)
|
|
4121
4226
|
);
|
|
4122
4227
|
}
|
|
4123
|
-
const
|
|
4124
|
-
return
|
|
4125
|
-
var
|
|
4126
|
-
if (
|
|
4127
|
-
|
|
4228
|
+
const y = H(!1);
|
|
4229
|
+
return y.current || (h(), p(), y.current = !0), V(() => {
|
|
4230
|
+
var T, I, g, x, w;
|
|
4231
|
+
if (K()) {
|
|
4232
|
+
O() && !e.isNestedRender && (window.addEventListener("message", l), lt(), st({
|
|
4128
4233
|
...e.locale ? {
|
|
4129
4234
|
locale: e.locale
|
|
4130
4235
|
} : {},
|
|
@@ -4134,80 +4239,80 @@ function gi(e) {
|
|
|
4134
4239
|
...e.trustedHosts ? {
|
|
4135
4240
|
trustedHosts: e.trustedHosts
|
|
4136
4241
|
} : {},
|
|
4137
|
-
modelName: (
|
|
4242
|
+
modelName: (T = e.model) != null ? T : "",
|
|
4138
4243
|
apiKey: e.apiKey
|
|
4139
4244
|
}), Object.values(
|
|
4140
4245
|
e.builderContextSignal.componentInfos
|
|
4141
|
-
).forEach((
|
|
4142
|
-
var
|
|
4143
|
-
if (!((
|
|
4144
|
-
const
|
|
4145
|
-
(
|
|
4246
|
+
).forEach((P) => {
|
|
4247
|
+
var U, E;
|
|
4248
|
+
if (!((U = P.models) != null && U.length) || P.models.includes(e.model)) {
|
|
4249
|
+
const B = ct(P);
|
|
4250
|
+
(E = window.parent) == null || E.postMessage(B, "*");
|
|
4146
4251
|
}
|
|
4147
4252
|
}), window.addEventListener(
|
|
4148
4253
|
"builder:component:stateChangeListenerActivated",
|
|
4149
|
-
|
|
4254
|
+
p
|
|
4150
4255
|
));
|
|
4151
|
-
const
|
|
4152
|
-
name: `builder.tests.${(
|
|
4256
|
+
const D = e.builderContextSignal.content && X(e.canTrack), L = ut({
|
|
4257
|
+
name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
|
|
4153
4258
|
canTrack: !0
|
|
4154
|
-
}), W = (
|
|
4155
|
-
if (
|
|
4156
|
-
const
|
|
4157
|
-
|
|
4259
|
+
}), W = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
|
|
4260
|
+
if (D && W === L) {
|
|
4261
|
+
const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, U = e.apiKey;
|
|
4262
|
+
Te({
|
|
4158
4263
|
apiHost: e.apiHost,
|
|
4159
4264
|
type: "impression",
|
|
4160
4265
|
canTrack: !0,
|
|
4161
|
-
contentId:
|
|
4162
|
-
apiKey:
|
|
4163
|
-
variationId:
|
|
4266
|
+
contentId: P,
|
|
4267
|
+
apiKey: U,
|
|
4268
|
+
variationId: L !== P ? L : void 0
|
|
4164
4269
|
});
|
|
4165
4270
|
}
|
|
4166
|
-
if (
|
|
4167
|
-
const
|
|
4168
|
-
`builder.overrides.${
|
|
4169
|
-
),
|
|
4170
|
-
(
|
|
4271
|
+
if (oe() && !O()) {
|
|
4272
|
+
const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
|
|
4273
|
+
`builder.overrides.${U}`
|
|
4274
|
+
), B = P.get("apiKey") || P.get("builder.space");
|
|
4275
|
+
(U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
|
|
4171
4276
|
model: e.model,
|
|
4172
4277
|
apiKey: e.apiKey,
|
|
4173
4278
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4174
|
-
...
|
|
4279
|
+
...U === "BUILDER_STUDIO" && ((w = e.context) != null && w.symbolId) ? {
|
|
4175
4280
|
query: {
|
|
4176
4281
|
id: e.context.symbolId
|
|
4177
4282
|
}
|
|
4178
4283
|
} : {}
|
|
4179
|
-
}).then((
|
|
4180
|
-
|
|
4284
|
+
}).then((N) => {
|
|
4285
|
+
N && i(N);
|
|
4181
4286
|
});
|
|
4182
4287
|
}
|
|
4183
4288
|
}
|
|
4184
|
-
}, []),
|
|
4289
|
+
}, []), V(() => {
|
|
4185
4290
|
e.content && i(e.content);
|
|
4186
|
-
}, [e.content]),
|
|
4187
|
-
|
|
4188
|
-
}, [e.builderContextSignal.rootState]),
|
|
4291
|
+
}, [e.content]), V(() => {
|
|
4292
|
+
p();
|
|
4293
|
+
}, [e.builderContextSignal.rootState]), V(() => {
|
|
4189
4294
|
e.data && n(e.data);
|
|
4190
|
-
}, [e.data]),
|
|
4295
|
+
}, [e.data]), V(() => {
|
|
4191
4296
|
e.locale && n({
|
|
4192
4297
|
locale: e.locale
|
|
4193
4298
|
});
|
|
4194
|
-
}, [e.locale]),
|
|
4195
|
-
|
|
4299
|
+
}, [e.locale]), V(() => () => {
|
|
4300
|
+
K() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4196
4301
|
"builder:component:stateChangeListenerActivated",
|
|
4197
|
-
|
|
4302
|
+
p
|
|
4198
4303
|
));
|
|
4199
|
-
}, []), /* @__PURE__ */ s(
|
|
4200
|
-
|
|
4304
|
+
}, []), /* @__PURE__ */ s(ve.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || We() ? /* @__PURE__ */ s(
|
|
4305
|
+
o,
|
|
4201
4306
|
{
|
|
4202
4307
|
ref: t,
|
|
4203
|
-
onClick: (
|
|
4204
|
-
"builder-content-id": (
|
|
4308
|
+
onClick: (T) => d(T),
|
|
4309
|
+
"builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
|
|
4205
4310
|
"builder-model": e.model,
|
|
4206
|
-
className:
|
|
4207
|
-
((
|
|
4311
|
+
className: Pi(
|
|
4312
|
+
((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
4208
4313
|
),
|
|
4209
4314
|
style: {
|
|
4210
|
-
display: !e.builderContextSignal.content &&
|
|
4315
|
+
display: !e.builderContextSignal.content && We() ? "none" : void 0
|
|
4211
4316
|
},
|
|
4212
4317
|
...a(),
|
|
4213
4318
|
...e.contentWrapperProps,
|
|
@@ -4215,21 +4320,21 @@ function gi(e) {
|
|
|
4215
4320
|
}
|
|
4216
4321
|
) : null });
|
|
4217
4322
|
}
|
|
4218
|
-
function
|
|
4219
|
-
const [t, n] =
|
|
4323
|
+
function Ai(e) {
|
|
4324
|
+
const [t, n] = C(
|
|
4220
4325
|
() => `
|
|
4221
|
-
${
|
|
4326
|
+
${wi({
|
|
4222
4327
|
cssCode: e.cssCode,
|
|
4223
4328
|
contentId: e.contentId
|
|
4224
4329
|
})}
|
|
4225
|
-
${
|
|
4330
|
+
${Ii({
|
|
4226
4331
|
customFonts: e.customFonts
|
|
4227
4332
|
})}
|
|
4228
|
-
${
|
|
4333
|
+
${Ri(e.isNestedRender)}
|
|
4229
4334
|
`.trim()
|
|
4230
4335
|
);
|
|
4231
4336
|
return /* @__PURE__ */ s(
|
|
4232
|
-
|
|
4337
|
+
ee,
|
|
4233
4338
|
{
|
|
4234
4339
|
id: "builderio-content",
|
|
4235
4340
|
styles: t,
|
|
@@ -4237,15 +4342,15 @@ ${fi(e.isNestedRender)}
|
|
|
4237
4342
|
}
|
|
4238
4343
|
);
|
|
4239
4344
|
}
|
|
4240
|
-
const
|
|
4345
|
+
const Bi = ({
|
|
4241
4346
|
content: e,
|
|
4242
4347
|
data: t,
|
|
4243
4348
|
locale: n
|
|
4244
4349
|
}) => {
|
|
4245
|
-
var
|
|
4246
|
-
const i = {}, a = ((
|
|
4247
|
-
return (l = (
|
|
4248
|
-
|
|
4350
|
+
var o, r, l;
|
|
4351
|
+
const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
4352
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((c) => {
|
|
4353
|
+
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4249
4354
|
}), {
|
|
4250
4355
|
...i,
|
|
4251
4356
|
...a,
|
|
@@ -4254,7 +4359,7 @@ const pi = ({
|
|
|
4254
4359
|
locale: n
|
|
4255
4360
|
} : {}
|
|
4256
4361
|
};
|
|
4257
|
-
},
|
|
4362
|
+
}, Ni = ({
|
|
4258
4363
|
content: e,
|
|
4259
4364
|
data: t
|
|
4260
4365
|
}) => e ? {
|
|
@@ -4265,46 +4370,46 @@ const pi = ({
|
|
|
4265
4370
|
},
|
|
4266
4371
|
meta: e == null ? void 0 : e.meta
|
|
4267
4372
|
} : void 0;
|
|
4268
|
-
function
|
|
4269
|
-
var
|
|
4270
|
-
const [t, n] =
|
|
4373
|
+
function De(e) {
|
|
4374
|
+
var u, f, b, m, v, d, h, p, y;
|
|
4375
|
+
const [t, n] = C(
|
|
4271
4376
|
() => {
|
|
4272
|
-
var
|
|
4273
|
-
return
|
|
4377
|
+
var S, k;
|
|
4378
|
+
return vi({
|
|
4274
4379
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4275
|
-
variationId: (
|
|
4380
|
+
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4276
4381
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4277
|
-
contentId: (
|
|
4382
|
+
contentId: (k = e.content) == null ? void 0 : k.id
|
|
4278
4383
|
});
|
|
4279
4384
|
}
|
|
4280
4385
|
);
|
|
4281
|
-
function i(
|
|
4282
|
-
l((
|
|
4283
|
-
...
|
|
4284
|
-
rootState:
|
|
4386
|
+
function i(S) {
|
|
4387
|
+
l((k) => ({
|
|
4388
|
+
...k,
|
|
4389
|
+
rootState: S
|
|
4285
4390
|
}));
|
|
4286
4391
|
}
|
|
4287
|
-
const [a,
|
|
4392
|
+
const [a, o] = C(
|
|
4288
4393
|
() => [
|
|
4289
|
-
...
|
|
4394
|
+
...Be(),
|
|
4290
4395
|
...e.customComponents || []
|
|
4291
4396
|
].reduce(
|
|
4292
|
-
(
|
|
4293
|
-
...
|
|
4294
|
-
[
|
|
4295
|
-
component:
|
|
4296
|
-
...
|
|
4397
|
+
(S, { component: k, ...A }) => ({
|
|
4398
|
+
...S,
|
|
4399
|
+
[A.name]: {
|
|
4400
|
+
component: k,
|
|
4401
|
+
...Ie(A)
|
|
4297
4402
|
}
|
|
4298
4403
|
}),
|
|
4299
4404
|
{}
|
|
4300
4405
|
)
|
|
4301
|
-
), [
|
|
4302
|
-
content:
|
|
4406
|
+
), [r, l] = C(() => ({
|
|
4407
|
+
content: Ni({
|
|
4303
4408
|
content: e.content,
|
|
4304
4409
|
data: e.data
|
|
4305
4410
|
}),
|
|
4306
4411
|
localState: void 0,
|
|
4307
|
-
rootState:
|
|
4412
|
+
rootState: Bi({
|
|
4308
4413
|
content: e.content,
|
|
4309
4414
|
data: e.data,
|
|
4310
4415
|
locale: e.locale
|
|
@@ -4315,12 +4420,12 @@ function Pe(e) {
|
|
|
4315
4420
|
apiKey: e.apiKey,
|
|
4316
4421
|
apiVersion: e.apiVersion,
|
|
4317
4422
|
componentInfos: [
|
|
4318
|
-
...
|
|
4423
|
+
...Be(),
|
|
4319
4424
|
...e.customComponents || []
|
|
4320
4425
|
].reduce(
|
|
4321
|
-
(
|
|
4322
|
-
...
|
|
4323
|
-
[
|
|
4426
|
+
(S, { component: k, ...A }) => ({
|
|
4427
|
+
...S,
|
|
4428
|
+
[A.name]: Ie(A)
|
|
4324
4429
|
}),
|
|
4325
4430
|
{}
|
|
4326
4431
|
),
|
|
@@ -4329,31 +4434,31 @@ function Pe(e) {
|
|
|
4329
4434
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4330
4435
|
nonce: e.nonce || "",
|
|
4331
4436
|
model: e.model
|
|
4332
|
-
})),
|
|
4333
|
-
if (!
|
|
4334
|
-
e.apiKey ||
|
|
4437
|
+
})), c = H(!1);
|
|
4438
|
+
if (!c.current) {
|
|
4439
|
+
e.apiKey || Z.error(
|
|
4335
4440
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4336
4441
|
);
|
|
4337
|
-
const
|
|
4338
|
-
|
|
4339
|
-
code:
|
|
4442
|
+
const S = (f = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
|
|
4443
|
+
S && J({
|
|
4444
|
+
code: S,
|
|
4340
4445
|
context: e.context || {},
|
|
4341
4446
|
localState: void 0,
|
|
4342
|
-
rootState:
|
|
4343
|
-
rootSetState: (
|
|
4344
|
-
Object.assign(
|
|
4447
|
+
rootState: r.rootState,
|
|
4448
|
+
rootSetState: (k) => {
|
|
4449
|
+
Object.assign(r.rootState, k);
|
|
4345
4450
|
},
|
|
4346
4451
|
isExpression: !1
|
|
4347
|
-
}),
|
|
4452
|
+
}), c.current = !0;
|
|
4348
4453
|
}
|
|
4349
4454
|
return /* @__PURE__ */ s(
|
|
4350
|
-
|
|
4455
|
+
He.Provider,
|
|
4351
4456
|
{
|
|
4352
4457
|
value: {
|
|
4353
4458
|
registeredComponents: a
|
|
4354
4459
|
},
|
|
4355
|
-
children: /* @__PURE__ */
|
|
4356
|
-
|
|
4460
|
+
children: /* @__PURE__ */ $(
|
|
4461
|
+
Vi,
|
|
4357
4462
|
{
|
|
4358
4463
|
apiHost: e.apiHost,
|
|
4359
4464
|
nonce: e.nonce,
|
|
@@ -4366,7 +4471,7 @@ function Pe(e) {
|
|
|
4366
4471
|
locale: e.locale,
|
|
4367
4472
|
enrich: e.enrich,
|
|
4368
4473
|
showContent: e.showContent,
|
|
4369
|
-
builderContextSignal:
|
|
4474
|
+
builderContextSignal: r,
|
|
4370
4475
|
contentWrapper: e.contentWrapper,
|
|
4371
4476
|
contentWrapperProps: e.contentWrapperProps,
|
|
4372
4477
|
trustedHosts: e.trustedHosts,
|
|
@@ -4374,7 +4479,7 @@ function Pe(e) {
|
|
|
4374
4479
|
setBuilderContextSignal: l,
|
|
4375
4480
|
children: [
|
|
4376
4481
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4377
|
-
|
|
4482
|
+
q,
|
|
4378
4483
|
{
|
|
4379
4484
|
id: "builderio-variant-visibility",
|
|
4380
4485
|
scriptStr: t,
|
|
@@ -4382,20 +4487,20 @@ function Pe(e) {
|
|
|
4382
4487
|
}
|
|
4383
4488
|
) : null,
|
|
4384
4489
|
/* @__PURE__ */ s(
|
|
4385
|
-
|
|
4490
|
+
Ai,
|
|
4386
4491
|
{
|
|
4387
4492
|
nonce: e.nonce || "",
|
|
4388
4493
|
isNestedRender: e.isNestedRender,
|
|
4389
|
-
contentId: (b =
|
|
4390
|
-
cssCode: (
|
|
4391
|
-
customFonts: (
|
|
4494
|
+
contentId: (b = r.content) == null ? void 0 : b.id,
|
|
4495
|
+
cssCode: (v = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
4496
|
+
customFonts: (h = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
|
|
4392
4497
|
}
|
|
4393
4498
|
),
|
|
4394
4499
|
/* @__PURE__ */ s(
|
|
4395
|
-
|
|
4500
|
+
_,
|
|
4396
4501
|
{
|
|
4397
|
-
blocks: (
|
|
4398
|
-
context:
|
|
4502
|
+
blocks: (y = (p = r.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
|
|
4503
|
+
context: r,
|
|
4399
4504
|
registeredComponents: a,
|
|
4400
4505
|
linkComponent: e.linkComponent
|
|
4401
4506
|
}
|
|
@@ -4406,50 +4511,60 @@ function Pe(e) {
|
|
|
4406
4511
|
}
|
|
4407
4512
|
);
|
|
4408
4513
|
}
|
|
4409
|
-
function
|
|
4410
|
-
var
|
|
4411
|
-
const [t, n] =
|
|
4412
|
-
() =>
|
|
4413
|
-
canTrack:
|
|
4514
|
+
function $i(e) {
|
|
4515
|
+
var r;
|
|
4516
|
+
const [t, n] = C(
|
|
4517
|
+
() => hi({
|
|
4518
|
+
canTrack: X(e.canTrack),
|
|
4414
4519
|
content: e.content
|
|
4415
4520
|
})
|
|
4416
4521
|
);
|
|
4417
4522
|
function i() {
|
|
4418
4523
|
var l;
|
|
4419
|
-
return
|
|
4420
|
-
|
|
4421
|
-
id:
|
|
4422
|
-
testRatio:
|
|
4524
|
+
return pi(
|
|
4525
|
+
ae(e.content).map((c) => ({
|
|
4526
|
+
id: c.testVariationId,
|
|
4527
|
+
testRatio: c.testRatio
|
|
4423
4528
|
})),
|
|
4424
4529
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4425
4530
|
);
|
|
4426
4531
|
}
|
|
4427
4532
|
function a() {
|
|
4428
|
-
return
|
|
4533
|
+
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4429
4534
|
}
|
|
4430
|
-
function
|
|
4535
|
+
function o() {
|
|
4431
4536
|
var l;
|
|
4432
4537
|
return t ? {
|
|
4433
4538
|
...e.content,
|
|
4434
4539
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4435
|
-
} :
|
|
4540
|
+
} : mt({
|
|
4436
4541
|
item: e.content,
|
|
4437
|
-
canTrack:
|
|
4542
|
+
canTrack: X(e.canTrack)
|
|
4438
4543
|
});
|
|
4439
4544
|
}
|
|
4440
|
-
return
|
|
4441
|
-
}, []), /* @__PURE__ */
|
|
4442
|
-
!e.isNestedRender &&
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4545
|
+
return V(() => {
|
|
4546
|
+
}, []), /* @__PURE__ */ $(R, { children: [
|
|
4547
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
|
|
4548
|
+
/* @__PURE__ */ s(
|
|
4549
|
+
q,
|
|
4550
|
+
{
|
|
4551
|
+
id: "builderio-init-variants-fns",
|
|
4552
|
+
scriptStr: yi(),
|
|
4553
|
+
nonce: e.nonce || ""
|
|
4554
|
+
}
|
|
4555
|
+
),
|
|
4556
|
+
nt.includes(F) ? /* @__PURE__ */ s(
|
|
4557
|
+
q,
|
|
4558
|
+
{
|
|
4559
|
+
id: "builderio-init-personalization-variants-fns",
|
|
4560
|
+
nonce: e.nonce || "",
|
|
4561
|
+
scriptStr: Cn()
|
|
4562
|
+
}
|
|
4563
|
+
) : null
|
|
4564
|
+
] }) : null,
|
|
4565
|
+
t ? /* @__PURE__ */ $(R, { children: [
|
|
4451
4566
|
/* @__PURE__ */ s(
|
|
4452
|
-
|
|
4567
|
+
ee,
|
|
4453
4568
|
{
|
|
4454
4569
|
id: "builderio-variants",
|
|
4455
4570
|
styles: a(),
|
|
@@ -4457,15 +4572,15 @@ function vi(e) {
|
|
|
4457
4572
|
}
|
|
4458
4573
|
),
|
|
4459
4574
|
/* @__PURE__ */ s(
|
|
4460
|
-
|
|
4575
|
+
q,
|
|
4461
4576
|
{
|
|
4462
4577
|
id: "builderio-variants-visibility",
|
|
4463
4578
|
scriptStr: i(),
|
|
4464
4579
|
nonce: e.nonce || ""
|
|
4465
4580
|
}
|
|
4466
4581
|
),
|
|
4467
|
-
(
|
|
4468
|
-
|
|
4582
|
+
(r = ae(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4583
|
+
De,
|
|
4469
4584
|
{
|
|
4470
4585
|
apiHost: e.apiHost,
|
|
4471
4586
|
isNestedRender: e.isNestedRender,
|
|
@@ -4493,12 +4608,12 @@ function vi(e) {
|
|
|
4493
4608
|
))
|
|
4494
4609
|
] }) : null,
|
|
4495
4610
|
/* @__PURE__ */ s(
|
|
4496
|
-
|
|
4611
|
+
De,
|
|
4497
4612
|
{
|
|
4498
4613
|
apiHost: e.apiHost,
|
|
4499
4614
|
nonce: e.nonce,
|
|
4500
4615
|
isNestedRender: e.isNestedRender,
|
|
4501
|
-
content:
|
|
4616
|
+
content: o(),
|
|
4502
4617
|
showContent: !0,
|
|
4503
4618
|
model: e.model,
|
|
4504
4619
|
data: e.data,
|
|
@@ -4520,13 +4635,13 @@ function vi(e) {
|
|
|
4520
4635
|
)
|
|
4521
4636
|
] });
|
|
4522
4637
|
}
|
|
4523
|
-
const
|
|
4638
|
+
const Wi = async ({
|
|
4524
4639
|
builderContextValue: e,
|
|
4525
4640
|
symbol: t
|
|
4526
4641
|
}) => {
|
|
4527
4642
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4528
4643
|
(e != null && e.apiKey))
|
|
4529
|
-
return
|
|
4644
|
+
return Le({
|
|
4530
4645
|
model: t.model,
|
|
4531
4646
|
apiKey: e.apiKey,
|
|
4532
4647
|
apiVersion: e.apiVersion,
|
|
@@ -4536,11 +4651,11 @@ const xi = async ({
|
|
|
4536
4651
|
}
|
|
4537
4652
|
}
|
|
4538
4653
|
}).catch((n) => {
|
|
4539
|
-
|
|
4654
|
+
Z.error("Could not fetch symbol content: ", n);
|
|
4540
4655
|
});
|
|
4541
4656
|
};
|
|
4542
|
-
function
|
|
4543
|
-
var
|
|
4657
|
+
function Di(e) {
|
|
4658
|
+
var u, f, b, m, v;
|
|
4544
4659
|
function t() {
|
|
4545
4660
|
return "div";
|
|
4546
4661
|
}
|
|
@@ -4548,36 +4663,36 @@ function Si(e) {
|
|
|
4548
4663
|
return "div";
|
|
4549
4664
|
}
|
|
4550
4665
|
function i() {
|
|
4551
|
-
var
|
|
4666
|
+
var d, h;
|
|
4552
4667
|
return [
|
|
4553
4668
|
e.attributes[j()],
|
|
4554
4669
|
"builder-symbol",
|
|
4555
|
-
(
|
|
4556
|
-
(
|
|
4670
|
+
(d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
|
|
4671
|
+
(h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4557
4672
|
].filter(Boolean).join(" ");
|
|
4558
4673
|
}
|
|
4559
|
-
const [a,
|
|
4560
|
-
var
|
|
4561
|
-
return (
|
|
4562
|
-
}), [
|
|
4563
|
-
var
|
|
4564
|
-
return (
|
|
4674
|
+
const [a, o] = C(() => {
|
|
4675
|
+
var d;
|
|
4676
|
+
return (d = e.symbol) == null ? void 0 : d.content;
|
|
4677
|
+
}), [r, l] = C(() => {
|
|
4678
|
+
var d;
|
|
4679
|
+
return (d = e.symbol) == null ? void 0 : d.entry;
|
|
4565
4680
|
});
|
|
4566
|
-
function
|
|
4567
|
-
var
|
|
4568
|
-
a &&
|
|
4681
|
+
function c() {
|
|
4682
|
+
var d;
|
|
4683
|
+
a && r === ((d = e.symbol) == null ? void 0 : d.entry) || Wi({
|
|
4569
4684
|
symbol: e.symbol,
|
|
4570
4685
|
builderContextValue: e.builderContext
|
|
4571
|
-
}).then((
|
|
4572
|
-
var
|
|
4573
|
-
|
|
4686
|
+
}).then((h) => {
|
|
4687
|
+
var p;
|
|
4688
|
+
h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
|
|
4574
4689
|
});
|
|
4575
4690
|
}
|
|
4576
|
-
return
|
|
4577
|
-
}, []),
|
|
4578
|
-
|
|
4691
|
+
return V(() => {
|
|
4692
|
+
}, []), V(() => {
|
|
4693
|
+
c();
|
|
4579
4694
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4580
|
-
|
|
4695
|
+
$i,
|
|
4581
4696
|
{
|
|
4582
4697
|
nonce: e.builderContext.nonce,
|
|
4583
4698
|
isNestedRender: !0,
|
|
@@ -4585,16 +4700,16 @@ function Si(e) {
|
|
|
4585
4700
|
apiKey: e.builderContext.apiKey,
|
|
4586
4701
|
context: {
|
|
4587
4702
|
...e.builderContext.context,
|
|
4588
|
-
symbolId: (
|
|
4703
|
+
symbolId: (u = e.builderBlock) == null ? void 0 : u.id
|
|
4589
4704
|
},
|
|
4590
4705
|
customComponents: Object.values(e.builderComponents),
|
|
4591
4706
|
data: {
|
|
4592
|
-
...(
|
|
4707
|
+
...(f = e.symbol) == null ? void 0 : f.data,
|
|
4593
4708
|
...e.builderContext.localState,
|
|
4594
4709
|
...(b = a == null ? void 0 : a.data) == null ? void 0 : b.state
|
|
4595
4710
|
},
|
|
4596
4711
|
canTrack: e.builderContext.canTrack,
|
|
4597
|
-
model: (
|
|
4712
|
+
model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
|
|
4598
4713
|
content: a,
|
|
4599
4714
|
linkComponent: e.builderLinkComponent,
|
|
4600
4715
|
blocksWrapper: t(),
|
|
@@ -4603,16 +4718,16 @@ function Si(e) {
|
|
|
4603
4718
|
) });
|
|
4604
4719
|
}
|
|
4605
4720
|
export {
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4721
|
+
_ as Blocks,
|
|
4722
|
+
ve as BuilderContext,
|
|
4723
|
+
kt as Button,
|
|
4724
|
+
un as Columns,
|
|
4725
|
+
$i as Content,
|
|
4726
|
+
dn as Fragment,
|
|
4727
|
+
hn as Image,
|
|
4728
|
+
gn as Section,
|
|
4729
|
+
Di as Symbol,
|
|
4730
|
+
Hn as Text,
|
|
4731
|
+
ui as Video,
|
|
4732
|
+
qi as setClientUserAttributes
|
|
4618
4733
|
};
|