@builder.io/sdk-react 4.2.1 → 4.2.3
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 +37 -37
- package/lib/browser/blocks-exports.mjs +1238 -1168
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/server-entry-0817de95.cjs +2 -0
- package/lib/browser/{server-entry-5e98a993.js → server-entry-331e2fd4.js} +248 -246
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-4bab42b1.cjs → accordion-1559ca68.cjs} +1 -1
- package/lib/edge/{accordion-a8a363e4.js → accordion-3e9ee224.js} +1 -1
- package/lib/edge/{blocks-d07d0261.cjs → blocks-4f20c19a.cjs} +14 -14
- package/lib/edge/{blocks-e1f5b0d0.js → blocks-b9be7dc1.js} +749 -736
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-6734c0bb.cjs → button-0a632d4f.cjs} +1 -1
- package/lib/edge/{button-bbcadacf.js → button-ba852235.js} +2 -2
- package/lib/edge/{columns-821cba14.cjs → columns-66170ac9.cjs} +1 -1
- package/lib/edge/{columns-cf3081c6.js → columns-ee2fba7b.js} +3 -3
- package/lib/edge/content-variants-4f54d98a.cjs +302 -0
- package/lib/edge/{content-variants-a704e35c.js → content-variants-c013569a.js} +489 -444
- package/lib/edge/{custom-code-f6c30129.js → custom-code-38e2c9d5.js} +1 -1
- package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-48579935.cjs} +1 -1
- package/lib/edge/{embed-3c0b5564.js → embed-1ce0435c.js} +1 -1
- package/lib/edge/{embed-666d3cc4.cjs → embed-9a7f29ff.cjs} +1 -1
- package/lib/edge/form-d9b6dea6.cjs +1 -0
- package/lib/edge/{form-8b068721.js → form-f558f5d4.js} +24 -21
- package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-35ccd32a.js} +1 -1
- package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-d2be9a48.cjs} +1 -1
- package/lib/edge/image-cce92f6c.cjs +17 -0
- package/lib/edge/image-d87761af.js +123 -0
- package/lib/edge/img-a1e0f10e.js +33 -0
- package/lib/edge/img-b21eb075.cjs +1 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-665ef328.js → input-5c0d3350.js} +1 -1
- package/lib/edge/{input-d31d6451.cjs → input-6854bc85.cjs} +1 -1
- package/lib/edge/{personalization-container-e784836e.js → personalization-container-adf9e0bd.js} +4 -4
- package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7fdc090.cjs} +1 -1
- package/lib/edge/{select-c3085265.cjs → select-6c4637ae.cjs} +1 -1
- package/lib/edge/{select-5fe49bd4.js → select-713e73f6.js} +1 -1
- package/lib/edge/server-entry-0bef3cb1.cjs +2 -0
- package/lib/{node/server-entry-48724189.js → edge/server-entry-71badd34.js} +307 -307
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-cbbbb02e.cjs → slot-59a86f46.cjs} +1 -1
- package/lib/edge/{slot-a17ee2d7.js → slot-a3c27352.js} +3 -3
- package/lib/edge/symbol-3d81a9de.cjs +1 -0
- package/lib/edge/{symbol-9f960685.js → symbol-86e5a3f0.js} +26 -23
- package/lib/edge/tabs-0d914e5c.cjs +1 -0
- package/lib/edge/{tabs-26ac5b2f.js → tabs-60f8bb61.js} +24 -23
- package/lib/node/blocks-exports.cjs +38 -38
- package/lib/node/blocks-exports.mjs +1375 -1305
- 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/node/server-entry-05b0f263.cjs +2 -0
- package/lib/{edge/server-entry-c9d5300f.js → node/server-entry-68823bb0.js} +346 -342
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-a7aba6d2.js → setIvm-bb3d0e32.js} +1 -1
- package/lib/node/{setIvm-3b6199a0.cjs → setIvm-bec8f1ed.cjs} +1 -1
- package/lib/node/setIvm.cjs +1 -1
- package/lib/node/setIvm.mjs +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-fdc70f22.js → should-force-browser-runtime-in-node-a4c71d14.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-bbbdf124.cjs} +1 -1
- package/package.json +1 -1
- package/types/blocks/img/img.d.ts +2 -0
- package/types/blocks/symbol/symbol.types.d.ts +1 -2
- package/types/components/awaiter.d.ts +1 -11
- package/types/components/awaiter.types.d.ts +7 -0
- package/types/components/block/components/live-edit-block-styles.d.ts +8 -0
- package/types/components/block/components/style-wrapper.d.ts +9 -0
- package/types/components/live-edit.d.ts +9 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/find-block.d.ts +18 -0
- package/types/helpers/subscribe-to-editor.d.ts +3 -2
- package/lib/browser/server-entry-4cf669a1.cjs +0 -2
- package/lib/edge/content-variants-ec180883.cjs +0 -302
- package/lib/edge/form-51f639ab.cjs +0 -1
- package/lib/edge/image-209835f4.js +0 -94
- package/lib/edge/image-87a4e006.cjs +0 -17
- package/lib/edge/image.helpers-3e926d47.js +0 -33
- package/lib/edge/image.helpers-dba8a869.cjs +0 -1
- package/lib/edge/img-b04b9b6d.cjs +0 -1
- package/lib/edge/img-dfbd4080.js +0 -28
- package/lib/edge/server-entry-acf5ce7d.cjs +0 -2
- package/lib/edge/symbol-b56b5675.cjs +0 -1
- package/lib/edge/tabs-bf6643d7.cjs +0 -1
- package/lib/node/server-entry-562c0663.cjs +0 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as F, isBrowser 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 G, logger as ee, checkIsDefined as ge, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Ie, fetchOneEntry as Oe, createEditorListener as dt, serializeIncludingFunctions as we, handleABTestingSync as mt } from "./server-entry-68823bb0.js";
|
|
3
|
+
import { setClientUserAttributes as qi } from "./server-entry-68823bb0.js";
|
|
4
|
+
import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
|
|
5
|
+
import * as ft from "react";
|
|
6
|
+
import { createContext as _e, useEffect as N, useState as k, useContext as ye, useRef as z, createElement as Ue } from "react";
|
|
7
|
+
import { getFunctionArguments as ht, flattenState as bt, runInNode as gt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-bb3d0e32.js";
|
|
8
|
+
import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-a4c71d14.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 xe(e) {
|
|
11
|
+
return /* @__PURE__ */ s(w, { children: St(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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
|
-
const
|
|
13
|
+
const K = () => {
|
|
14
14
|
switch (F) {
|
|
15
15
|
case "react":
|
|
16
16
|
case "reactNative":
|
|
@@ -24,11 +24,11 @@ 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,
|
|
31
|
-
[
|
|
31
|
+
[K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
|
|
32
32
|
...e.link ? {
|
|
33
33
|
href: e.link,
|
|
34
34
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -39,7 +39,7 @@ function St(e) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
return /* @__PURE__ */ s(
|
|
42
|
-
|
|
42
|
+
xe,
|
|
43
43
|
{
|
|
44
44
|
attributes: t(),
|
|
45
45
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
@@ -48,7 +48,7 @@ function St(e) {
|
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
51
|
+
const le = _e({
|
|
52
52
|
content: null,
|
|
53
53
|
context: {},
|
|
54
54
|
localState: void 0,
|
|
@@ -63,87 +63,87 @@ const ve = Le({
|
|
|
63
63
|
BlocksWrapperProps: {},
|
|
64
64
|
nonce: "",
|
|
65
65
|
model: ""
|
|
66
|
-
}),
|
|
67
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((
|
|
66
|
+
}), Me = _e({ registeredComponents: {} }), qe = (e, t, n) => {
|
|
67
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : 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
|
-
localState:
|
|
75
|
-
rootSetState:
|
|
76
|
-
rootState:
|
|
74
|
+
localState: a,
|
|
75
|
+
rootSetState: r,
|
|
76
|
+
rootState: o
|
|
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:
|
|
84
|
-
localState:
|
|
85
|
-
rootSetState:
|
|
82
|
+
state: bt({
|
|
83
|
+
rootState: o,
|
|
84
|
+
localState: a,
|
|
85
|
+
rootSetState: r
|
|
86
86
|
})
|
|
87
87
|
});
|
|
88
88
|
return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
|
|
89
|
-
},
|
|
89
|
+
}, Tt = (e) => G() || vt({
|
|
90
90
|
shouldLogWarning: !0
|
|
91
|
-
}) ?
|
|
92
|
-
var t, n, i, r, o
|
|
93
|
-
return ((i = (n = (t =
|
|
91
|
+
}) ? Ct(e) : gt(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, r, o;
|
|
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)) || ((o = (r = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
|
|
94
94
|
};
|
|
95
|
-
function
|
|
95
|
+
function Q({
|
|
96
96
|
code: e,
|
|
97
97
|
context: t,
|
|
98
98
|
localState: n,
|
|
99
99
|
rootState: i,
|
|
100
|
-
rootSetState:
|
|
101
|
-
event:
|
|
102
|
-
isExpression:
|
|
100
|
+
rootSetState: a,
|
|
101
|
+
event: r,
|
|
102
|
+
isExpression: o = !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 qe({
|
|
109
109
|
...i,
|
|
110
110
|
...n
|
|
111
111
|
}, l);
|
|
112
112
|
const c = {
|
|
113
|
-
code:
|
|
114
|
-
isExpression:
|
|
113
|
+
code: yt(e, {
|
|
114
|
+
isExpression: o
|
|
115
115
|
}),
|
|
116
|
-
builder:
|
|
116
|
+
builder: pt(),
|
|
117
117
|
context: t,
|
|
118
|
-
event:
|
|
119
|
-
rootSetState:
|
|
118
|
+
event: r,
|
|
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 (d) {
|
|
126
|
+
ee.error("Failed code evaluation: " + d.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, (
|
|
146
|
-
code:
|
|
145
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (a, r) => Q({
|
|
146
|
+
code: r,
|
|
147
147
|
context: t,
|
|
148
148
|
localState: t.localState,
|
|
149
149
|
rootState: t.rootState,
|
|
@@ -151,68 +151,68 @@ const Rt = (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, (r) => {
|
|
163
|
+
n !== null && i !== null && (n[i] = r);
|
|
164
164
|
});
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
|
-
|
|
168
|
-
t(
|
|
169
|
-
e[a] = c;
|
|
170
|
-
}), oe(o, t, e, a, r);
|
|
171
|
-
}) : Object.entries(e).forEach(([o, a]) => {
|
|
172
|
-
t(a, (c) => {
|
|
167
|
+
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((r, o) => {
|
|
168
|
+
t(r, (c) => {
|
|
173
169
|
e[o] = c;
|
|
174
|
-
}),
|
|
170
|
+
}), re(r, t, e, o, a);
|
|
171
|
+
}) : Object.entries(e).forEach(([r, o]) => {
|
|
172
|
+
t(o, (c) => {
|
|
173
|
+
e[r] = c;
|
|
174
|
+
}), re(o, t, e, r, a);
|
|
175
175
|
}));
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function je(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 (je(n)) {
|
|
186
186
|
t = !0;
|
|
187
187
|
return;
|
|
188
188
|
}
|
|
189
189
|
}), t;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
193
|
-
var
|
|
194
|
-
|
|
191
|
+
function Bt(e, t) {
|
|
192
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
|
|
193
|
+
var a;
|
|
194
|
+
je(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 pe(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) => pe(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] = pe(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 = ve(e);
|
|
216
216
|
return {
|
|
217
217
|
...t,
|
|
218
218
|
properties: {
|
|
@@ -223,7 +223,7 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
} else {
|
|
226
|
-
const t =
|
|
226
|
+
const t = pe(Vt(e, "children", "meta"));
|
|
227
227
|
return {
|
|
228
228
|
...t,
|
|
229
229
|
properties: {
|
|
@@ -236,64 +236,64 @@ const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (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,
|
|
243
243
|
rootState: i,
|
|
244
|
-
rootSetState:
|
|
244
|
+
rootSetState: a
|
|
245
245
|
}) => {
|
|
246
246
|
if (!e.bindings)
|
|
247
247
|
return e;
|
|
248
|
-
const
|
|
249
|
-
for (const
|
|
250
|
-
const l = e.bindings[
|
|
248
|
+
const r = Wt(e);
|
|
249
|
+
for (const o in e.bindings) {
|
|
250
|
+
const l = e.bindings[o], c = Q({
|
|
251
251
|
code: l,
|
|
252
252
|
localState: n,
|
|
253
253
|
rootState: i,
|
|
254
|
-
rootSetState:
|
|
254
|
+
rootSetState: a,
|
|
255
255
|
context: t
|
|
256
256
|
});
|
|
257
|
-
|
|
257
|
+
He(r, o, c);
|
|
258
258
|
}
|
|
259
|
-
return
|
|
259
|
+
return r;
|
|
260
260
|
};
|
|
261
|
-
function
|
|
261
|
+
function Ft({
|
|
262
262
|
block: e,
|
|
263
263
|
context: t,
|
|
264
264
|
localState: n,
|
|
265
265
|
rootState: i,
|
|
266
|
-
rootSetState:
|
|
266
|
+
rootSetState: a
|
|
267
267
|
}) {
|
|
268
|
-
let
|
|
269
|
-
return
|
|
270
|
-
block:
|
|
268
|
+
let r = e;
|
|
269
|
+
return r = Dt({
|
|
270
|
+
block: r,
|
|
271
271
|
localState: n,
|
|
272
272
|
rootState: i,
|
|
273
|
-
rootSetState:
|
|
273
|
+
rootSetState: a,
|
|
274
274
|
context: t
|
|
275
|
-
}),
|
|
275
|
+
}), r = Nt(r, i.locale), r;
|
|
276
276
|
}
|
|
277
277
|
const se = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
278
|
-
function
|
|
279
|
-
let i, r, o
|
|
278
|
+
function Lt(e, t, n = {}) {
|
|
279
|
+
let i, a, r, o = null, l = 0;
|
|
280
280
|
const c = function() {
|
|
281
|
-
l = n.leading === !1 ? 0 : Date.now(),
|
|
281
|
+
l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
|
|
282
282
|
};
|
|
283
283
|
return function() {
|
|
284
|
-
const
|
|
285
|
-
!l && n.leading === !1 && (l =
|
|
286
|
-
const
|
|
287
|
-
return i = this,
|
|
284
|
+
const d = Date.now();
|
|
285
|
+
!l && n.leading === !1 && (l = d);
|
|
286
|
+
const h = t - (d - l);
|
|
287
|
+
return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = d, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(c, h)), r;
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function X(e, ...t) {
|
|
291
291
|
const n = Object(e);
|
|
292
292
|
for (let i = 1; i < arguments.length; i++) {
|
|
293
|
-
const
|
|
294
|
-
if (
|
|
295
|
-
for (const
|
|
296
|
-
Object.prototype.hasOwnProperty.call(
|
|
293
|
+
const a = arguments[i];
|
|
294
|
+
if (a != null)
|
|
295
|
+
for (const r in a)
|
|
296
|
+
Object.prototype.hasOwnProperty.call(a, r) && (n[r] = a[r]);
|
|
297
297
|
}
|
|
298
298
|
return n;
|
|
299
299
|
}
|
|
@@ -301,114 +301,114 @@ function Ot(e) {
|
|
|
301
301
|
for (const t of e)
|
|
302
302
|
switch (t.trigger) {
|
|
303
303
|
case "pageLoad":
|
|
304
|
-
|
|
304
|
+
Je(t);
|
|
305
305
|
break;
|
|
306
306
|
case "scrollInView":
|
|
307
|
-
|
|
307
|
+
Ut(t);
|
|
308
308
|
break;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function ze(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
|
|
314
|
+
function Ke(e, t) {
|
|
315
|
+
const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
|
|
316
|
+
for (const l of o)
|
|
317
317
|
for (const c of n)
|
|
318
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 Je(e) {
|
|
328
328
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
329
329
|
if (!t.length) {
|
|
330
|
-
|
|
330
|
+
ze(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 ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
334
|
+
Ke(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
335
|
+
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(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
|
+
ze(e.elementId || e.id || "");
|
|
345
345
|
return;
|
|
346
346
|
}
|
|
347
347
|
Array.from(t).forEach((n) => {
|
|
348
|
-
|
|
349
|
-
let i = !1,
|
|
350
|
-
function
|
|
351
|
-
!i && l(n) ? (i = !0,
|
|
352
|
-
|
|
353
|
-
|
|
348
|
+
Ke(e, n);
|
|
349
|
+
let i = !1, a = !1;
|
|
350
|
+
function r() {
|
|
351
|
+
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
352
|
+
X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
|
|
353
|
+
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
354
354
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
355
|
-
})) : e.repeat && i && !
|
|
355
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
|
|
356
356
|
}
|
|
357
|
-
const
|
|
357
|
+
const o = Lt(r, 200, {
|
|
358
358
|
leading: !1
|
|
359
359
|
});
|
|
360
|
-
function l(
|
|
361
|
-
const
|
|
362
|
-
return
|
|
360
|
+
function l(h) {
|
|
361
|
+
const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
362
|
+
return g.bottom > f && g.top < u - f;
|
|
363
363
|
}
|
|
364
364
|
const c = e.steps[0].styles;
|
|
365
|
-
function
|
|
366
|
-
|
|
365
|
+
function d() {
|
|
366
|
+
X(n.style, c);
|
|
367
367
|
}
|
|
368
|
-
|
|
368
|
+
d(), setTimeout(() => {
|
|
369
369
|
n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
370
|
-
}), document.addEventListener("scroll",
|
|
370
|
+
}), document.addEventListener("scroll", o, {
|
|
371
371
|
capture: !0,
|
|
372
372
|
passive: !0
|
|
373
|
-
}),
|
|
373
|
+
}), r();
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
const
|
|
376
|
+
const Ge = (e) => Object.entries(e).map(([n, i]) => {
|
|
377
377
|
if (typeof i == "string")
|
|
378
378
|
return `${se(n)}: ${i};`;
|
|
379
|
-
}).filter(ge),
|
|
380
|
-
`),
|
|
379
|
+
}).filter(ge), Ht = (e) => Ge(e).join(`
|
|
380
|
+
`), Y = ({
|
|
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
|
+
}) => Qe(Mt({
|
|
401
401
|
style: e.style || {},
|
|
402
402
|
context: t,
|
|
403
403
|
block: e
|
|
404
404
|
}));
|
|
405
|
-
function
|
|
405
|
+
function Qe(e) {
|
|
406
406
|
switch (F) {
|
|
407
407
|
case "svelte":
|
|
408
408
|
case "vue":
|
|
409
409
|
case "solid":
|
|
410
410
|
case "angular":
|
|
411
|
-
return
|
|
411
|
+
return Ge(e).join(" ");
|
|
412
412
|
case "qwik":
|
|
413
413
|
case "reactNative":
|
|
414
414
|
case "react":
|
|
@@ -416,24 +416,24 @@ function Ge(e) {
|
|
|
416
416
|
return e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const Ye = (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 r;
|
|
425
|
+
const i = (r = e.component) == null ? void 0 : r.name;
|
|
426
426
|
if (!i)
|
|
427
427
|
return null;
|
|
428
|
-
const
|
|
429
|
-
if (!
|
|
428
|
+
const a = t[i];
|
|
429
|
+
if (!a || Ye(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
|
-
return
|
|
436
|
-
},
|
|
435
|
+
return a;
|
|
436
|
+
}, zt = ({
|
|
437
437
|
block: e,
|
|
438
438
|
context: t
|
|
439
439
|
}) => {
|
|
@@ -443,191 +443,54 @@ const Qe = (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
|
|
446
|
+
const a = Q({
|
|
447
447
|
code: n.collection,
|
|
448
448
|
localState: t.localState,
|
|
449
449
|
rootState: t.rootState,
|
|
450
450
|
rootSetState: t.rootSetState,
|
|
451
451
|
context: t.context
|
|
452
452
|
});
|
|
453
|
-
if (!Array.isArray(
|
|
453
|
+
if (!Array.isArray(a))
|
|
454
454
|
return;
|
|
455
|
-
const
|
|
456
|
-
return
|
|
455
|
+
const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
|
|
456
|
+
return a.map((c, d) => ({
|
|
457
457
|
context: {
|
|
458
458
|
...t,
|
|
459
459
|
localState: {
|
|
460
460
|
...t.localState,
|
|
461
|
-
$index:
|
|
461
|
+
$index: d,
|
|
462
462
|
$item: c,
|
|
463
|
-
[
|
|
464
|
-
[`$${
|
|
463
|
+
[o]: c,
|
|
464
|
+
[`$${o}Index`]: d
|
|
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(([r, o]) => !Ye(o, 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
|
-
}, Ee = (e) => e.toString()
|
|
490
|
-
xsmall: {
|
|
491
|
-
min: 0,
|
|
492
|
-
default: 160,
|
|
493
|
-
max: 320
|
|
494
|
-
},
|
|
495
|
-
small: {
|
|
496
|
-
min: 321,
|
|
497
|
-
default: 321,
|
|
498
|
-
max: 640
|
|
499
|
-
},
|
|
500
|
-
medium: {
|
|
501
|
-
min: 641,
|
|
502
|
-
default: 642,
|
|
503
|
-
max: 991
|
|
504
|
-
},
|
|
505
|
-
large: {
|
|
506
|
-
min: 990,
|
|
507
|
-
default: 991,
|
|
508
|
-
max: 1200
|
|
509
|
-
}
|
|
510
|
-
}, ue = (e, t = Ye) => `@media (max-width: ${t[e].max}px)`, Xe = (e) => {
|
|
511
|
-
const t = ye(Ye);
|
|
512
|
-
if (!e)
|
|
513
|
-
return t;
|
|
514
|
-
const {
|
|
515
|
-
xsmall: n,
|
|
516
|
-
small: i,
|
|
517
|
-
medium: r
|
|
518
|
-
} = e;
|
|
519
|
-
if (n) {
|
|
520
|
-
const c = Math.floor(n / 2);
|
|
521
|
-
t.xsmall = {
|
|
522
|
-
max: n,
|
|
523
|
-
min: c,
|
|
524
|
-
default: c + 1
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
if (!i || !r)
|
|
528
|
-
return t;
|
|
529
|
-
const o = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
530
|
-
t.small = {
|
|
531
|
-
max: i,
|
|
532
|
-
min: o,
|
|
533
|
-
default: o + 1
|
|
534
|
-
};
|
|
535
|
-
const a = t.small.max + 1;
|
|
536
|
-
t.medium = {
|
|
537
|
-
max: r,
|
|
538
|
-
min: a,
|
|
539
|
-
default: a + 1
|
|
540
|
-
};
|
|
541
|
-
const l = t.medium.max + 1;
|
|
542
|
-
return t.large = {
|
|
543
|
-
max: 2e3,
|
|
544
|
-
// TODO: decide upper limit
|
|
545
|
-
min: l,
|
|
546
|
-
default: l + 1
|
|
547
|
-
}, t;
|
|
548
|
-
};
|
|
549
|
-
function ee(e) {
|
|
550
|
-
return /* @__PURE__ */ s(
|
|
551
|
-
"style",
|
|
552
|
-
{
|
|
553
|
-
dangerouslySetInnerHTML: { __html: e.styles },
|
|
554
|
-
"data-id": e.id,
|
|
555
|
-
nonce: e.nonce
|
|
556
|
-
}
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
function Qt(e) {
|
|
560
|
-
function t() {
|
|
561
|
-
const i = e.block;
|
|
562
|
-
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
563
|
-
}
|
|
564
|
-
function n() {
|
|
565
|
-
var k, A, T, w, h;
|
|
566
|
-
const i = e.block, r = i.responsiveStyles, o = e.context.content, a = 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 = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
|
|
569
|
-
if (!m)
|
|
570
|
-
return "";
|
|
571
|
-
const v = c ? Q({
|
|
572
|
-
className: m,
|
|
573
|
-
styles: c
|
|
574
|
-
}) : "", d = u ? Q({
|
|
575
|
-
className: m,
|
|
576
|
-
styles: u,
|
|
577
|
-
mediaQuery: ue(
|
|
578
|
-
"medium",
|
|
579
|
-
a
|
|
580
|
-
)
|
|
581
|
-
}) : "", g = f ? Q({
|
|
582
|
-
className: m,
|
|
583
|
-
styles: f,
|
|
584
|
-
mediaQuery: ue(
|
|
585
|
-
"small",
|
|
586
|
-
a
|
|
587
|
-
)
|
|
588
|
-
}) : "", p = b && l ? Q({
|
|
589
|
-
className: m,
|
|
590
|
-
styles: b,
|
|
591
|
-
mediaQuery: ue(
|
|
592
|
-
"xsmall",
|
|
593
|
-
a
|
|
594
|
-
)
|
|
595
|
-
}) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
596
|
-
let S = "";
|
|
597
|
-
if (y) {
|
|
598
|
-
const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
|
|
599
|
-
S = Q({
|
|
600
|
-
className: `${m}:hover`,
|
|
601
|
-
styles: {
|
|
602
|
-
...x,
|
|
603
|
-
transition: `all ${y.duration}s ${se(
|
|
604
|
-
y.easing
|
|
605
|
-
)}`,
|
|
606
|
-
transitionDelay: y.delay ? `${y.delay}s` : "0s"
|
|
607
|
-
}
|
|
608
|
-
}) || "";
|
|
609
|
-
}
|
|
610
|
-
return [
|
|
611
|
-
v,
|
|
612
|
-
d,
|
|
613
|
-
g,
|
|
614
|
-
p,
|
|
615
|
-
S
|
|
616
|
-
].join(" ");
|
|
617
|
-
}
|
|
618
|
-
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
619
|
-
ee,
|
|
620
|
-
{
|
|
621
|
-
id: "builderio-block",
|
|
622
|
-
styles: n(),
|
|
623
|
-
nonce: e.context.nonce
|
|
624
|
-
}
|
|
625
|
-
) }) : null });
|
|
626
|
-
}
|
|
489
|
+
}, Ee = (e) => e.toString();
|
|
627
490
|
function Yt(e) {
|
|
628
491
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
629
492
|
}
|
|
630
|
-
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) =>
|
|
493
|
+
const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
|
|
631
494
|
code: e,
|
|
632
495
|
context: t.context,
|
|
633
496
|
localState: t.localState,
|
|
@@ -636,24 +499,24 @@ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => J({
|
|
|
636
499
|
event: n,
|
|
637
500
|
isExpression: !1
|
|
638
501
|
});
|
|
639
|
-
function
|
|
502
|
+
function Xe(e) {
|
|
640
503
|
var i;
|
|
641
504
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
642
|
-
for (const
|
|
643
|
-
if (!n.hasOwnProperty(
|
|
505
|
+
for (const a in n) {
|
|
506
|
+
if (!n.hasOwnProperty(a))
|
|
644
507
|
continue;
|
|
645
|
-
const
|
|
646
|
-
let
|
|
508
|
+
const r = n[a];
|
|
509
|
+
let o = Xt(a);
|
|
647
510
|
if (e.stripPrefix)
|
|
648
511
|
switch (F) {
|
|
649
512
|
case "vue":
|
|
650
|
-
|
|
513
|
+
o = o.replace("v-on:", "");
|
|
651
514
|
break;
|
|
652
515
|
case "svelte":
|
|
653
|
-
|
|
516
|
+
o = o.replace("on:", "");
|
|
654
517
|
break;
|
|
655
518
|
}
|
|
656
|
-
t[
|
|
519
|
+
t[o] = Zt(r, e);
|
|
657
520
|
}
|
|
658
521
|
return t;
|
|
659
522
|
}
|
|
@@ -665,7 +528,7 @@ function en({
|
|
|
665
528
|
const tn = (e) => ({
|
|
666
529
|
href: e.href
|
|
667
530
|
});
|
|
668
|
-
function
|
|
531
|
+
function Se({
|
|
669
532
|
block: e,
|
|
670
533
|
context: t
|
|
671
534
|
}) {
|
|
@@ -674,11 +537,11 @@ function xe({
|
|
|
674
537
|
...tn(e),
|
|
675
538
|
...e.properties,
|
|
676
539
|
"builder-id": e.id,
|
|
677
|
-
style:
|
|
540
|
+
style: qt({
|
|
678
541
|
block: e,
|
|
679
542
|
context: t
|
|
680
543
|
}),
|
|
681
|
-
[
|
|
544
|
+
[K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
682
545
|
};
|
|
683
546
|
return en({
|
|
684
547
|
properties: n,
|
|
@@ -688,14 +551,14 @@ function xe({
|
|
|
688
551
|
}
|
|
689
552
|
function nn(e) {
|
|
690
553
|
return /* @__PURE__ */ s(
|
|
691
|
-
|
|
554
|
+
xe,
|
|
692
555
|
{
|
|
693
556
|
TagName: e.Wrapper,
|
|
694
|
-
attributes:
|
|
557
|
+
attributes: Se({
|
|
695
558
|
block: e.block,
|
|
696
559
|
context: e.context
|
|
697
560
|
}),
|
|
698
|
-
actionAttributes:
|
|
561
|
+
actionAttributes: Xe({
|
|
699
562
|
block: e.block,
|
|
700
563
|
rootState: e.context.rootState,
|
|
701
564
|
rootSetState: e.context.rootSetState,
|
|
@@ -707,20 +570,20 @@ function nn(e) {
|
|
|
707
570
|
}
|
|
708
571
|
);
|
|
709
572
|
}
|
|
710
|
-
function rn(e) {
|
|
711
|
-
return V(() => {
|
|
712
|
-
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
713
|
-
}
|
|
714
573
|
function an(e) {
|
|
715
|
-
|
|
716
|
-
|
|
574
|
+
return N(() => {
|
|
575
|
+
}, []), /* @__PURE__ */ s(w, { children: e.children });
|
|
576
|
+
}
|
|
577
|
+
function rn(e) {
|
|
578
|
+
var i, a;
|
|
579
|
+
k(() => 0);
|
|
717
580
|
function t() {
|
|
718
581
|
return e.includeBlockProps ? {
|
|
719
|
-
...
|
|
582
|
+
...Se({
|
|
720
583
|
block: e.block,
|
|
721
584
|
context: e.context
|
|
722
585
|
}),
|
|
723
|
-
...
|
|
586
|
+
...Xe({
|
|
724
587
|
block: e.block,
|
|
725
588
|
rootState: e.context.rootState,
|
|
726
589
|
rootSetState: e.context.rootSetState,
|
|
@@ -732,9 +595,9 @@ function an(e) {
|
|
|
732
595
|
function n() {
|
|
733
596
|
return e.wrapperProps;
|
|
734
597
|
}
|
|
735
|
-
return
|
|
736
|
-
}, [e.wrapperProps, (
|
|
737
|
-
|
|
598
|
+
return N(() => {
|
|
599
|
+
}, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(w, { children: e.Wrapper.load ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
600
|
+
an,
|
|
738
601
|
{
|
|
739
602
|
load: e.Wrapper.load,
|
|
740
603
|
fallback: e.Wrapper.fallback,
|
|
@@ -749,9 +612,9 @@ const on = ({
|
|
|
749
612
|
builderBlock: t,
|
|
750
613
|
context: n,
|
|
751
614
|
componentRef: i,
|
|
752
|
-
includeBlockProps:
|
|
753
|
-
isInteractive:
|
|
754
|
-
contextValue:
|
|
615
|
+
includeBlockProps: a,
|
|
616
|
+
isInteractive: r,
|
|
617
|
+
contextValue: o
|
|
755
618
|
}) => {
|
|
756
619
|
const l = {
|
|
757
620
|
...e,
|
|
@@ -759,29 +622,28 @@ const on = ({
|
|
|
759
622
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
760
623
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
761
624
|
*/
|
|
762
|
-
...
|
|
763
|
-
attributes:
|
|
625
|
+
...a ? {
|
|
626
|
+
attributes: Se({
|
|
764
627
|
block: t,
|
|
765
|
-
context:
|
|
628
|
+
context: o
|
|
766
629
|
})
|
|
767
630
|
} : {}
|
|
768
631
|
};
|
|
769
|
-
return
|
|
632
|
+
return r ? {
|
|
770
633
|
Wrapper: i,
|
|
771
634
|
block: t,
|
|
772
635
|
context: n,
|
|
773
636
|
wrapperProps: e,
|
|
774
|
-
includeBlockProps:
|
|
637
|
+
includeBlockProps: a
|
|
775
638
|
} : l;
|
|
776
639
|
};
|
|
777
640
|
function Re(e) {
|
|
778
641
|
var i;
|
|
779
|
-
|
|
780
|
-
const [t, n] =
|
|
781
|
-
() => e.isInteractive ?
|
|
642
|
+
k(() => !1);
|
|
643
|
+
const [t, n] = k(
|
|
644
|
+
() => e.isInteractive ? rn : e.componentRef
|
|
782
645
|
);
|
|
783
|
-
return
|
|
784
|
-
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
646
|
+
return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
785
647
|
t,
|
|
786
648
|
{
|
|
787
649
|
...on({
|
|
@@ -794,24 +656,24 @@ function Re(e) {
|
|
|
794
656
|
isInteractive: e.isInteractive,
|
|
795
657
|
contextValue: e.context
|
|
796
658
|
}),
|
|
797
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((
|
|
659
|
+
children: e.componentRef ? /* @__PURE__ */ s(w, { children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ s(
|
|
798
660
|
ce,
|
|
799
661
|
{
|
|
800
|
-
block:
|
|
662
|
+
block: a,
|
|
801
663
|
context: e.context,
|
|
802
664
|
registeredComponents: e.registeredComponents,
|
|
803
665
|
linkComponent: e.linkComponent
|
|
804
666
|
},
|
|
805
|
-
|
|
806
|
-
))
|
|
667
|
+
a.id
|
|
668
|
+
)) }) : null
|
|
807
669
|
}
|
|
808
670
|
) }) : null });
|
|
809
671
|
}
|
|
810
672
|
function Pe(e) {
|
|
811
|
-
const [t, n] =
|
|
812
|
-
return
|
|
673
|
+
const [t, n] = k(() => e.repeatContext);
|
|
674
|
+
return N(() => {
|
|
813
675
|
n(e.repeatContext);
|
|
814
|
-
}, [e.repeatContext]), /* @__PURE__ */ s(
|
|
676
|
+
}, [e.repeatContext]), /* @__PURE__ */ s(le.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
815
677
|
ce,
|
|
816
678
|
{
|
|
817
679
|
block: e.block,
|
|
@@ -821,65 +683,209 @@ function Pe(e) {
|
|
|
821
683
|
}
|
|
822
684
|
) });
|
|
823
685
|
}
|
|
686
|
+
const Ze = {
|
|
687
|
+
xsmall: {
|
|
688
|
+
min: 0,
|
|
689
|
+
default: 160,
|
|
690
|
+
max: 320
|
|
691
|
+
},
|
|
692
|
+
small: {
|
|
693
|
+
min: 321,
|
|
694
|
+
default: 321,
|
|
695
|
+
max: 640
|
|
696
|
+
},
|
|
697
|
+
medium: {
|
|
698
|
+
min: 641,
|
|
699
|
+
default: 642,
|
|
700
|
+
max: 991
|
|
701
|
+
},
|
|
702
|
+
large: {
|
|
703
|
+
min: 990,
|
|
704
|
+
default: 991,
|
|
705
|
+
max: 1200
|
|
706
|
+
}
|
|
707
|
+
}, ue = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, et = (e) => {
|
|
708
|
+
const t = ve(Ze);
|
|
709
|
+
if (!e)
|
|
710
|
+
return t;
|
|
711
|
+
const {
|
|
712
|
+
xsmall: n,
|
|
713
|
+
small: i,
|
|
714
|
+
medium: a
|
|
715
|
+
} = e;
|
|
716
|
+
if (n) {
|
|
717
|
+
const c = Math.floor(n / 2);
|
|
718
|
+
t.xsmall = {
|
|
719
|
+
max: n,
|
|
720
|
+
min: c,
|
|
721
|
+
default: c + 1
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
if (!i || !a)
|
|
725
|
+
return t;
|
|
726
|
+
const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
|
|
727
|
+
t.small = {
|
|
728
|
+
max: i,
|
|
729
|
+
min: r,
|
|
730
|
+
default: r + 1
|
|
731
|
+
};
|
|
732
|
+
const o = t.small.max + 1;
|
|
733
|
+
t.medium = {
|
|
734
|
+
max: a,
|
|
735
|
+
min: o,
|
|
736
|
+
default: o + 1
|
|
737
|
+
};
|
|
738
|
+
const l = t.medium.max + 1;
|
|
739
|
+
return t.large = {
|
|
740
|
+
max: 2e3,
|
|
741
|
+
// TODO: decide upper limit
|
|
742
|
+
min: l,
|
|
743
|
+
default: l + 1
|
|
744
|
+
}, t;
|
|
745
|
+
};
|
|
746
|
+
function te(e) {
|
|
747
|
+
return /* @__PURE__ */ s(
|
|
748
|
+
"style",
|
|
749
|
+
{
|
|
750
|
+
dangerouslySetInnerHTML: { __html: e.styles },
|
|
751
|
+
"data-id": e.id,
|
|
752
|
+
nonce: e.nonce
|
|
753
|
+
}
|
|
754
|
+
);
|
|
755
|
+
}
|
|
756
|
+
function Ve(e) {
|
|
757
|
+
function t() {
|
|
758
|
+
const i = e.block;
|
|
759
|
+
return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
|
|
760
|
+
}
|
|
761
|
+
function n() {
|
|
762
|
+
var T, E, _, H, q;
|
|
763
|
+
const i = e.block, a = i.responsiveStyles, r = e.context.content, o = et(
|
|
764
|
+
((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
|
|
765
|
+
), l = !!((_ = (E = r == null ? void 0 : r.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, u = i.id;
|
|
766
|
+
if (!u)
|
|
767
|
+
return "";
|
|
768
|
+
const x = c ? Y({
|
|
769
|
+
className: u,
|
|
770
|
+
styles: c
|
|
771
|
+
}) : "", f = d ? Y({
|
|
772
|
+
className: u,
|
|
773
|
+
styles: d,
|
|
774
|
+
mediaQuery: ue(
|
|
775
|
+
"medium",
|
|
776
|
+
o
|
|
777
|
+
)
|
|
778
|
+
}) : "", m = h ? Y({
|
|
779
|
+
className: u,
|
|
780
|
+
styles: h,
|
|
781
|
+
mediaQuery: ue(
|
|
782
|
+
"small",
|
|
783
|
+
o
|
|
784
|
+
)
|
|
785
|
+
}) : "", y = g && l ? Y({
|
|
786
|
+
className: u,
|
|
787
|
+
styles: g,
|
|
788
|
+
mediaQuery: ue(
|
|
789
|
+
"xsmall",
|
|
790
|
+
o
|
|
791
|
+
)
|
|
792
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
793
|
+
let S = "";
|
|
794
|
+
if (b) {
|
|
795
|
+
const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
|
|
796
|
+
S = Y({
|
|
797
|
+
className: `${u}:hover`,
|
|
798
|
+
styles: {
|
|
799
|
+
...p,
|
|
800
|
+
transition: `all ${b.duration}s ${se(
|
|
801
|
+
b.easing
|
|
802
|
+
)}`,
|
|
803
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
804
|
+
}
|
|
805
|
+
}) || "";
|
|
806
|
+
}
|
|
807
|
+
return [
|
|
808
|
+
x,
|
|
809
|
+
f,
|
|
810
|
+
m,
|
|
811
|
+
y,
|
|
812
|
+
S
|
|
813
|
+
].join(" ");
|
|
814
|
+
}
|
|
815
|
+
return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
|
|
816
|
+
te,
|
|
817
|
+
{
|
|
818
|
+
id: "builderio-block",
|
|
819
|
+
styles: n(),
|
|
820
|
+
nonce: e.context.nonce
|
|
821
|
+
}
|
|
822
|
+
) }) : null });
|
|
823
|
+
}
|
|
824
|
+
function ln(e) {
|
|
825
|
+
k(() => !1);
|
|
826
|
+
const [t, n] = k(() => !1);
|
|
827
|
+
return ye(le), N(() => {
|
|
828
|
+
}, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) });
|
|
829
|
+
}
|
|
824
830
|
function ce(e) {
|
|
825
|
-
var
|
|
831
|
+
var h, g, u, x;
|
|
826
832
|
function t() {
|
|
827
|
-
return
|
|
833
|
+
return zt({
|
|
828
834
|
block: e.block,
|
|
829
835
|
context: e.context
|
|
830
836
|
});
|
|
831
837
|
}
|
|
832
|
-
const [n, i] =
|
|
838
|
+
const [n, i] = k(() => ({
|
|
833
839
|
value: null,
|
|
834
840
|
update: !1
|
|
835
841
|
}));
|
|
836
|
-
function
|
|
837
|
-
var
|
|
838
|
-
if (n.value && !n.update && !
|
|
842
|
+
function a() {
|
|
843
|
+
var m;
|
|
844
|
+
if (n.value && !n.update && !oe())
|
|
839
845
|
return n.value;
|
|
840
|
-
const
|
|
846
|
+
const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
|
|
841
847
|
block: e.block,
|
|
842
848
|
localState: e.context.localState,
|
|
843
849
|
rootState: e.context.rootState,
|
|
844
850
|
rootSetState: e.context.rootSetState,
|
|
845
851
|
context: e.context.context
|
|
846
852
|
});
|
|
847
|
-
return n.value =
|
|
853
|
+
return n.value = f, n.update = !1, f;
|
|
848
854
|
}
|
|
849
|
-
function
|
|
850
|
-
return
|
|
851
|
-
block:
|
|
855
|
+
function r() {
|
|
856
|
+
return jt({
|
|
857
|
+
block: a(),
|
|
852
858
|
registeredComponents: e.registeredComponents,
|
|
853
859
|
model: e.context.model
|
|
854
860
|
});
|
|
855
861
|
}
|
|
856
|
-
function
|
|
857
|
-
var
|
|
858
|
-
return e.block.tagName === "a" || ((
|
|
862
|
+
function o() {
|
|
863
|
+
var m;
|
|
864
|
+
return e.block.tagName === "a" || ((m = a().properties) == null ? void 0 : m.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
859
865
|
}
|
|
860
866
|
function l() {
|
|
861
|
-
var
|
|
862
|
-
if ((
|
|
863
|
-
return !!((
|
|
864
|
-
const
|
|
865
|
-
return ("show" in
|
|
867
|
+
var y, b;
|
|
868
|
+
if ((y = e.block.repeat) != null && y.collection)
|
|
869
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
870
|
+
const f = "hide" in a() ? a().hide : !1;
|
|
871
|
+
return ("show" in a() ? a().show : !0) && !f;
|
|
866
872
|
}
|
|
867
873
|
function c() {
|
|
868
|
-
var
|
|
869
|
-
return !((
|
|
874
|
+
var m, y;
|
|
875
|
+
return !((m = r == null ? void 0 : r()) != null && m.component) && !t() ? (y = a().children) != null ? y : [] : [];
|
|
870
876
|
}
|
|
871
|
-
function
|
|
872
|
-
var
|
|
877
|
+
function d() {
|
|
878
|
+
var f, m, y, b;
|
|
873
879
|
return {
|
|
874
|
-
blockChildren: (
|
|
875
|
-
componentRef: (
|
|
880
|
+
blockChildren: (f = a().children) != null ? f : [],
|
|
881
|
+
componentRef: (m = r == null ? void 0 : r()) == null ? void 0 : m.component,
|
|
876
882
|
componentOptions: {
|
|
877
|
-
...
|
|
878
|
-
...
|
|
879
|
-
...
|
|
880
|
-
...
|
|
881
|
-
...
|
|
882
|
-
|
|
883
|
+
...Rt(a(), e.context),
|
|
884
|
+
...Gt(r(), a()),
|
|
885
|
+
...Qt(r(), e.context),
|
|
886
|
+
...Kt(r(), e.linkComponent),
|
|
887
|
+
...Jt(
|
|
888
|
+
r(),
|
|
883
889
|
e.registeredComponents,
|
|
884
890
|
e.context.model
|
|
885
891
|
)
|
|
@@ -887,110 +893,117 @@ function ce(e) {
|
|
|
887
893
|
context: e.context,
|
|
888
894
|
linkComponent: e.linkComponent,
|
|
889
895
|
registeredComponents: e.registeredComponents,
|
|
890
|
-
builderBlock:
|
|
891
|
-
includeBlockProps: ((
|
|
892
|
-
isInteractive: !((
|
|
896
|
+
builderBlock: a(),
|
|
897
|
+
includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
|
|
898
|
+
isInteractive: !((b = r == null ? void 0 : r()) != null && b.isRSC && F === "rsc")
|
|
893
899
|
};
|
|
894
900
|
}
|
|
895
|
-
return
|
|
896
|
-
const
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
...
|
|
900
|
-
elementId:
|
|
901
|
+
return N(() => {
|
|
902
|
+
const f = a().id, m = a().animations;
|
|
903
|
+
m && f && Ot(
|
|
904
|
+
m.map((y) => ({
|
|
905
|
+
...y,
|
|
906
|
+
elementId: f
|
|
901
907
|
}))
|
|
902
908
|
);
|
|
903
|
-
}, []),
|
|
909
|
+
}, []), N(() => {
|
|
904
910
|
n.update = !0;
|
|
905
|
-
}), /* @__PURE__ */ s(
|
|
906
|
-
/* @__PURE__ */ s(
|
|
907
|
-
|
|
911
|
+
}), /* @__PURE__ */ s(w, { children: l() ? /* @__PURE__ */ D(w, { children: [
|
|
912
|
+
/* @__PURE__ */ s(
|
|
913
|
+
ln,
|
|
914
|
+
{
|
|
915
|
+
block: a(),
|
|
916
|
+
context: e.context,
|
|
917
|
+
id: e.block.id
|
|
918
|
+
}
|
|
919
|
+
),
|
|
920
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
|
|
908
921
|
Pe,
|
|
909
922
|
{
|
|
910
|
-
repeatContext:
|
|
911
|
-
block:
|
|
923
|
+
repeatContext: f.context,
|
|
924
|
+
block: f.block,
|
|
912
925
|
registeredComponents: e.registeredComponents,
|
|
913
926
|
linkComponent: e.linkComponent
|
|
914
927
|
},
|
|
915
|
-
Ee(
|
|
928
|
+
Ee(m)
|
|
916
929
|
)) }) : /* @__PURE__ */ s(
|
|
917
930
|
Re,
|
|
918
931
|
{
|
|
919
|
-
componentRef:
|
|
920
|
-
componentOptions:
|
|
921
|
-
blockChildren:
|
|
922
|
-
context:
|
|
923
|
-
registeredComponents:
|
|
924
|
-
linkComponent:
|
|
925
|
-
builderBlock:
|
|
926
|
-
includeBlockProps:
|
|
927
|
-
isInteractive:
|
|
932
|
+
componentRef: d().componentRef,
|
|
933
|
+
componentOptions: d().componentOptions,
|
|
934
|
+
blockChildren: d().blockChildren,
|
|
935
|
+
context: d().context,
|
|
936
|
+
registeredComponents: d().registeredComponents,
|
|
937
|
+
linkComponent: d().linkComponent,
|
|
938
|
+
builderBlock: d().builderBlock,
|
|
939
|
+
includeBlockProps: d().includeBlockProps,
|
|
940
|
+
isInteractive: d().isInteractive
|
|
928
941
|
}
|
|
929
|
-
) : /* @__PURE__ */ s(
|
|
942
|
+
) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
|
|
930
943
|
Pe,
|
|
931
944
|
{
|
|
932
|
-
repeatContext:
|
|
933
|
-
block:
|
|
945
|
+
repeatContext: f.context,
|
|
946
|
+
block: f.block,
|
|
934
947
|
registeredComponents: e.registeredComponents,
|
|
935
948
|
linkComponent: e.linkComponent
|
|
936
949
|
},
|
|
937
|
-
Ee(
|
|
938
|
-
)) }) : /* @__PURE__ */
|
|
950
|
+
Ee(m)
|
|
951
|
+
)) }) : /* @__PURE__ */ D(
|
|
939
952
|
nn,
|
|
940
953
|
{
|
|
941
|
-
Wrapper:
|
|
942
|
-
block:
|
|
954
|
+
Wrapper: o(),
|
|
955
|
+
block: a(),
|
|
943
956
|
context: e.context,
|
|
944
957
|
children: [
|
|
945
958
|
/* @__PURE__ */ s(
|
|
946
959
|
Re,
|
|
947
960
|
{
|
|
948
|
-
componentRef:
|
|
949
|
-
componentOptions:
|
|
950
|
-
blockChildren:
|
|
951
|
-
context:
|
|
952
|
-
registeredComponents:
|
|
953
|
-
linkComponent:
|
|
954
|
-
builderBlock:
|
|
955
|
-
includeBlockProps:
|
|
956
|
-
isInteractive:
|
|
961
|
+
componentRef: d().componentRef,
|
|
962
|
+
componentOptions: d().componentOptions,
|
|
963
|
+
blockChildren: d().blockChildren,
|
|
964
|
+
context: d().context,
|
|
965
|
+
registeredComponents: d().registeredComponents,
|
|
966
|
+
linkComponent: d().linkComponent,
|
|
967
|
+
builderBlock: d().builderBlock,
|
|
968
|
+
includeBlockProps: d().includeBlockProps,
|
|
969
|
+
isInteractive: d().isInteractive
|
|
957
970
|
}
|
|
958
971
|
),
|
|
959
|
-
(
|
|
972
|
+
(g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
960
973
|
ce,
|
|
961
974
|
{
|
|
962
|
-
block:
|
|
975
|
+
block: f,
|
|
963
976
|
registeredComponents: e.registeredComponents,
|
|
964
977
|
linkComponent: e.linkComponent,
|
|
965
978
|
context: e.context
|
|
966
979
|
},
|
|
967
|
-
|
|
980
|
+
f.id
|
|
968
981
|
))
|
|
969
982
|
]
|
|
970
983
|
}
|
|
971
984
|
) })
|
|
972
985
|
] }) : null });
|
|
973
986
|
}
|
|
974
|
-
function
|
|
975
|
-
const t =
|
|
976
|
-
|
|
987
|
+
function sn(e) {
|
|
988
|
+
const t = z(null);
|
|
989
|
+
k(() => !1);
|
|
977
990
|
function n() {
|
|
978
|
-
var
|
|
991
|
+
var o;
|
|
979
992
|
return [
|
|
980
993
|
"builder-blocks",
|
|
981
|
-
(
|
|
994
|
+
(o = e.blocks) != null && o.length ? "" : "no-blocks",
|
|
982
995
|
e.classNameProp
|
|
983
996
|
].filter(Boolean).join(" ");
|
|
984
997
|
}
|
|
985
998
|
function i() {
|
|
986
999
|
if (!e.path)
|
|
987
1000
|
return;
|
|
988
|
-
const
|
|
989
|
-
return e.path.startsWith(
|
|
1001
|
+
const o = "this.", l = "component.options.";
|
|
1002
|
+
return e.path.startsWith(o) ? e.path.replace(o, "") : e.path.startsWith(l) ? e.path : `${l}${e.path || ""}`;
|
|
990
1003
|
}
|
|
991
|
-
function
|
|
992
|
-
var
|
|
993
|
-
|
|
1004
|
+
function a() {
|
|
1005
|
+
var o, l;
|
|
1006
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
994
1007
|
{
|
|
995
1008
|
type: "builder.clickEmptyBlocks",
|
|
996
1009
|
data: {
|
|
@@ -1001,9 +1014,9 @@ function ln(e) {
|
|
|
1001
1014
|
"*"
|
|
1002
1015
|
));
|
|
1003
1016
|
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
|
|
1017
|
+
function r() {
|
|
1018
|
+
var o, l;
|
|
1019
|
+
U() && !((o = e.blocks) != null && o.length) && ((l = window.parent) == null || l.postMessage(
|
|
1007
1020
|
{
|
|
1008
1021
|
type: "builder.hoverEmptyBlocks",
|
|
1009
1022
|
data: {
|
|
@@ -1014,10 +1027,10 @@ function ln(e) {
|
|
|
1014
1027
|
"*"
|
|
1015
1028
|
));
|
|
1016
1029
|
}
|
|
1017
|
-
return
|
|
1018
|
-
}, []),
|
|
1019
|
-
}, [e.blocks]), /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-
|
|
1030
|
+
return N(() => {
|
|
1031
|
+
}, []), N(() => {
|
|
1032
|
+
}, [e.blocks]), /* @__PURE__ */ D(w, { children: [
|
|
1033
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
|
|
1021
1034
|
display: flex;
|
|
1022
1035
|
flex-direction: column;
|
|
1023
1036
|
align-items: stretch;
|
|
@@ -1026,24 +1039,24 @@ function ln(e) {
|
|
|
1026
1039
|
e.BlocksWrapper,
|
|
1027
1040
|
{
|
|
1028
1041
|
ref: t,
|
|
1029
|
-
className: n() + " props-blocks-wrapper-
|
|
1042
|
+
className: n() + " props-blocks-wrapper-b46bf284",
|
|
1030
1043
|
"builder-path": i(),
|
|
1031
1044
|
"builder-parent-id": e.parent,
|
|
1032
1045
|
style: e.styleProp,
|
|
1033
|
-
onClick: (
|
|
1034
|
-
onMouseEnter: (
|
|
1035
|
-
onKeyPress: (
|
|
1046
|
+
onClick: (o) => a(),
|
|
1047
|
+
onMouseEnter: (o) => r(),
|
|
1048
|
+
onKeyPress: (o) => a(),
|
|
1036
1049
|
...e.BlocksWrapperProps,
|
|
1037
1050
|
children: e.children
|
|
1038
1051
|
}
|
|
1039
1052
|
)
|
|
1040
1053
|
] });
|
|
1041
1054
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var i,
|
|
1044
|
-
const t =
|
|
1045
|
-
return /* @__PURE__ */
|
|
1046
|
-
|
|
1055
|
+
function M(e) {
|
|
1056
|
+
var i, a, r;
|
|
1057
|
+
const t = ye(le), n = ye(Me);
|
|
1058
|
+
return /* @__PURE__ */ D(
|
|
1059
|
+
sn,
|
|
1047
1060
|
{
|
|
1048
1061
|
blocks: e.blocks,
|
|
1049
1062
|
parent: e.parent,
|
|
@@ -1051,26 +1064,26 @@ function U(e) {
|
|
|
1051
1064
|
styleProp: e.styleProp,
|
|
1052
1065
|
BlocksWrapperProps: e.BlocksWrapperProps || ((i = e.context) == null ? void 0 : i.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1053
1066
|
classNameProp: e.className,
|
|
1054
|
-
BlocksWrapper: ((
|
|
1067
|
+
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1055
1068
|
children: [
|
|
1056
1069
|
e.children,
|
|
1057
|
-
e.blocks ? /* @__PURE__ */ s(
|
|
1070
|
+
e.blocks ? /* @__PURE__ */ s(w, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
|
|
1058
1071
|
ce,
|
|
1059
1072
|
{
|
|
1060
|
-
block:
|
|
1073
|
+
block: o,
|
|
1061
1074
|
linkComponent: e.linkComponent,
|
|
1062
1075
|
context: e.context || t,
|
|
1063
1076
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1064
1077
|
},
|
|
1065
|
-
|
|
1078
|
+
o.id
|
|
1066
1079
|
)) }) : null
|
|
1067
1080
|
]
|
|
1068
1081
|
}
|
|
1069
1082
|
);
|
|
1070
1083
|
}
|
|
1071
|
-
const
|
|
1072
|
-
function
|
|
1073
|
-
var
|
|
1084
|
+
const cn = (e) => `builder-columns ${e}-breakpoints`;
|
|
1085
|
+
function un(e) {
|
|
1086
|
+
var m, y;
|
|
1074
1087
|
function t() {
|
|
1075
1088
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1076
1089
|
}
|
|
@@ -1080,147 +1093,147 @@ function cn(e) {
|
|
|
1080
1093
|
function i() {
|
|
1081
1094
|
return e.stackColumnsAt || "tablet";
|
|
1082
1095
|
}
|
|
1083
|
-
function
|
|
1084
|
-
return
|
|
1096
|
+
function a(b) {
|
|
1097
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1085
1098
|
}
|
|
1086
|
-
function
|
|
1099
|
+
function r(b) {
|
|
1087
1100
|
var S;
|
|
1088
|
-
return ((S = n()[
|
|
1101
|
+
return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
|
|
1089
1102
|
}
|
|
1090
|
-
function
|
|
1091
|
-
const S =
|
|
1092
|
-
return `calc(${S}% - ${
|
|
1103
|
+
function o(b) {
|
|
1104
|
+
const S = r(b), T = t() * (n().length - 1) * (S / 100);
|
|
1105
|
+
return `calc(${S}% - ${T}px)`;
|
|
1093
1106
|
}
|
|
1094
1107
|
function l({
|
|
1095
|
-
stackedStyle:
|
|
1108
|
+
stackedStyle: b,
|
|
1096
1109
|
desktopStyle: S
|
|
1097
1110
|
}) {
|
|
1098
|
-
return i() === "tablet" ?
|
|
1111
|
+
return i() === "tablet" ? b : S;
|
|
1099
1112
|
}
|
|
1100
1113
|
function c({
|
|
1101
|
-
stackedStyle:
|
|
1114
|
+
stackedStyle: b,
|
|
1102
1115
|
desktopStyle: S
|
|
1103
1116
|
}) {
|
|
1104
|
-
return i() === "never" ? S :
|
|
1117
|
+
return i() === "never" ? S : b;
|
|
1105
1118
|
}
|
|
1106
|
-
function
|
|
1119
|
+
function d() {
|
|
1107
1120
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1108
1121
|
}
|
|
1109
|
-
function
|
|
1122
|
+
function h() {
|
|
1110
1123
|
return {
|
|
1111
|
-
"--flex-dir":
|
|
1124
|
+
"--flex-dir": d(),
|
|
1112
1125
|
"--flex-dir-tablet": l({
|
|
1113
|
-
stackedStyle:
|
|
1126
|
+
stackedStyle: d(),
|
|
1114
1127
|
desktopStyle: "row"
|
|
1115
1128
|
})
|
|
1116
1129
|
};
|
|
1117
1130
|
}
|
|
1118
|
-
function b
|
|
1119
|
-
const S =
|
|
1131
|
+
function g(b) {
|
|
1132
|
+
const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, _ = "100%", H = 0;
|
|
1120
1133
|
return {
|
|
1121
1134
|
...{
|
|
1122
1135
|
display: "flex",
|
|
1123
1136
|
flexDirection: "column",
|
|
1124
1137
|
alignItems: "stretch"
|
|
1125
1138
|
},
|
|
1126
|
-
width:
|
|
1127
|
-
["marginLeft"]:
|
|
1139
|
+
width: T,
|
|
1140
|
+
["marginLeft"]: E,
|
|
1128
1141
|
"--column-width-mobile": c({
|
|
1129
|
-
stackedStyle:
|
|
1130
|
-
desktopStyle:
|
|
1142
|
+
stackedStyle: _,
|
|
1143
|
+
desktopStyle: T
|
|
1131
1144
|
}),
|
|
1132
1145
|
"--column-margin-left-mobile": c({
|
|
1133
|
-
stackedStyle:
|
|
1134
|
-
desktopStyle:
|
|
1146
|
+
stackedStyle: H,
|
|
1147
|
+
desktopStyle: E
|
|
1135
1148
|
}),
|
|
1136
1149
|
"--column-width-tablet": l({
|
|
1137
|
-
stackedStyle:
|
|
1138
|
-
desktopStyle:
|
|
1150
|
+
stackedStyle: _,
|
|
1151
|
+
desktopStyle: T
|
|
1139
1152
|
}),
|
|
1140
1153
|
"--column-margin-left-tablet": l({
|
|
1141
|
-
stackedStyle:
|
|
1142
|
-
desktopStyle:
|
|
1154
|
+
stackedStyle: H,
|
|
1155
|
+
desktopStyle: E
|
|
1143
1156
|
})
|
|
1144
1157
|
};
|
|
1145
1158
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var
|
|
1148
|
-
return
|
|
1149
|
-
((
|
|
1150
|
-
)[
|
|
1159
|
+
function u(b) {
|
|
1160
|
+
var T, E;
|
|
1161
|
+
return et(
|
|
1162
|
+
((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
|
|
1163
|
+
)[b].max;
|
|
1151
1164
|
}
|
|
1152
|
-
function
|
|
1153
|
-
const
|
|
1165
|
+
function x() {
|
|
1166
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1154
1167
|
return `
|
|
1155
|
-
@media (max-width: ${
|
|
1168
|
+
@media (max-width: ${u("medium")}px) {
|
|
1156
1169
|
.${e.builderBlock.id}-breakpoints {
|
|
1157
1170
|
flex-direction: var(--flex-dir-tablet);
|
|
1158
1171
|
align-items: stretch;
|
|
1159
1172
|
}
|
|
1160
1173
|
|
|
1161
|
-
${
|
|
1174
|
+
${b} {
|
|
1162
1175
|
width: var(--column-width-tablet) !important;
|
|
1163
1176
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1164
1177
|
}
|
|
1165
1178
|
}
|
|
1166
1179
|
|
|
1167
|
-
@media (max-width: ${
|
|
1180
|
+
@media (max-width: ${u("small")}px) {
|
|
1168
1181
|
.${e.builderBlock.id}-breakpoints {
|
|
1169
1182
|
flex-direction: var(--flex-dir);
|
|
1170
1183
|
align-items: stretch;
|
|
1171
1184
|
}
|
|
1172
1185
|
|
|
1173
|
-
${
|
|
1186
|
+
${b} {
|
|
1174
1187
|
width: var(--column-width-mobile) !important;
|
|
1175
1188
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1176
1189
|
}
|
|
1177
1190
|
},
|
|
1178
1191
|
`;
|
|
1179
1192
|
}
|
|
1180
|
-
function
|
|
1193
|
+
function f(b, S) {
|
|
1181
1194
|
return {
|
|
1182
|
-
...
|
|
1183
|
-
href:
|
|
1195
|
+
...b.link ? {
|
|
1196
|
+
href: b.link
|
|
1184
1197
|
} : {},
|
|
1185
|
-
[
|
|
1186
|
-
style:
|
|
1198
|
+
[K()]: "builder-column",
|
|
1199
|
+
style: Qe(g(S))
|
|
1187
1200
|
};
|
|
1188
1201
|
}
|
|
1189
|
-
return /* @__PURE__ */
|
|
1202
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
1190
1203
|
/* @__PURE__ */ s("style", { children: `.div-0369db37 {
|
|
1191
1204
|
display: flex;
|
|
1192
1205
|
line-height: normal;
|
|
1193
1206
|
height: 100%;
|
|
1194
1207
|
}` }),
|
|
1195
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ D(
|
|
1196
1209
|
"div",
|
|
1197
1210
|
{
|
|
1198
|
-
className:
|
|
1199
|
-
style:
|
|
1211
|
+
className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
|
|
1212
|
+
style: h(),
|
|
1200
1213
|
children: [
|
|
1201
1214
|
/* @__PURE__ */ s(
|
|
1202
|
-
|
|
1215
|
+
te,
|
|
1203
1216
|
{
|
|
1204
1217
|
id: "builderio-columns",
|
|
1205
|
-
styles:
|
|
1218
|
+
styles: x(),
|
|
1206
1219
|
nonce: e.builderContext.nonce
|
|
1207
1220
|
}
|
|
1208
1221
|
),
|
|
1209
|
-
(
|
|
1210
|
-
|
|
1222
|
+
(y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
|
|
1223
|
+
xe,
|
|
1211
1224
|
{
|
|
1212
|
-
TagName:
|
|
1225
|
+
TagName: a(b),
|
|
1213
1226
|
actionAttributes: {},
|
|
1214
|
-
attributes:
|
|
1227
|
+
attributes: f(b, S),
|
|
1215
1228
|
children: /* @__PURE__ */ s(
|
|
1216
|
-
|
|
1229
|
+
M,
|
|
1217
1230
|
{
|
|
1218
1231
|
path: `columns.${S}.blocks`,
|
|
1219
1232
|
parent: e.builderBlock.id,
|
|
1220
1233
|
context: e.builderContext,
|
|
1221
1234
|
registeredComponents: e.builderComponents,
|
|
1222
1235
|
linkComponent: e.builderLinkComponent,
|
|
1223
|
-
blocks:
|
|
1236
|
+
blocks: b.blocks,
|
|
1224
1237
|
styleProp: {
|
|
1225
1238
|
flexGrow: "1"
|
|
1226
1239
|
}
|
|
@@ -1234,73 +1247,73 @@ function cn(e) {
|
|
|
1234
1247
|
)
|
|
1235
1248
|
] });
|
|
1236
1249
|
}
|
|
1237
|
-
function
|
|
1250
|
+
function dn(e) {
|
|
1238
1251
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1239
1252
|
}
|
|
1240
|
-
function
|
|
1253
|
+
function Ae(e) {
|
|
1241
1254
|
return e.replace(/http(s)?:/, "");
|
|
1242
1255
|
}
|
|
1243
|
-
function
|
|
1244
|
-
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
1245
|
-
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
1256
|
+
function mn(e = "", t, n) {
|
|
1257
|
+
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1258
|
+
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1246
1259
|
}
|
|
1247
|
-
function
|
|
1260
|
+
function fn(e, t) {
|
|
1248
1261
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1249
1262
|
return e;
|
|
1250
1263
|
if (t === "master")
|
|
1251
|
-
return
|
|
1264
|
+
return Ae(e);
|
|
1252
1265
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1253
1266
|
if (n) {
|
|
1254
|
-
const i = e.split(n[0]),
|
|
1255
|
-
return
|
|
1267
|
+
const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1268
|
+
return Ae(`${i[0]}_${r}${a}`);
|
|
1256
1269
|
}
|
|
1257
1270
|
return null;
|
|
1258
1271
|
}
|
|
1259
|
-
function
|
|
1272
|
+
function de(e) {
|
|
1260
1273
|
if (!e)
|
|
1261
1274
|
return e;
|
|
1262
1275
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1263
1276
|
if (e.match(/builder\.io/)) {
|
|
1264
1277
|
let n = e;
|
|
1265
1278
|
const i = Number(e.split("?width=")[1]);
|
|
1266
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((
|
|
1279
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${mn(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1267
1280
|
}
|
|
1268
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1281
|
+
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;
|
|
1269
1282
|
}
|
|
1270
|
-
function
|
|
1271
|
-
var r, o,
|
|
1283
|
+
function hn(e) {
|
|
1284
|
+
var a, r, o, l, c, d;
|
|
1272
1285
|
function t() {
|
|
1273
|
-
var
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1286
|
+
var u;
|
|
1287
|
+
const g = e.image || e.src;
|
|
1288
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1276
1289
|
// images, otherwise you can supply this prop manually
|
|
1277
|
-
!(typeof
|
|
1290
|
+
!(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
|
|
1278
1291
|
return e.srcset;
|
|
1279
1292
|
if (!e.noWebp) {
|
|
1280
|
-
if (e.srcset && ((
|
|
1293
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1281
1294
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1282
|
-
return console.debug("Removed given srcset"),
|
|
1295
|
+
return console.debug("Removed given srcset"), de(g);
|
|
1283
1296
|
} else if (e.image && !e.srcset)
|
|
1284
|
-
return
|
|
1285
|
-
return
|
|
1297
|
+
return de(g);
|
|
1298
|
+
return de(g);
|
|
1286
1299
|
}
|
|
1287
1300
|
}
|
|
1288
1301
|
function n() {
|
|
1289
|
-
var
|
|
1290
|
-
return (
|
|
1302
|
+
var h;
|
|
1303
|
+
return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
|
|
1291
1304
|
}
|
|
1292
1305
|
function i() {
|
|
1293
|
-
const
|
|
1306
|
+
const h = {
|
|
1294
1307
|
position: "absolute",
|
|
1295
1308
|
height: "100%",
|
|
1296
1309
|
width: "100%",
|
|
1297
1310
|
left: "0px",
|
|
1298
1311
|
top: "0px"
|
|
1299
1312
|
};
|
|
1300
|
-
return e.aspectRatio ?
|
|
1313
|
+
return e.aspectRatio ? h : void 0;
|
|
1301
1314
|
}
|
|
1302
|
-
return
|
|
1303
|
-
}, []), /* @__PURE__ */
|
|
1315
|
+
return N(() => {
|
|
1316
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
1304
1317
|
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1305
1318
|
opacity: 1;
|
|
1306
1319
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -1318,8 +1331,8 @@ function fn(e) {
|
|
|
1318
1331
|
width: 100%;
|
|
1319
1332
|
height: 100%;
|
|
1320
1333
|
}` }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
1334
|
+
/* @__PURE__ */ D(w, { children: [
|
|
1335
|
+
/* @__PURE__ */ D("picture", { children: [
|
|
1323
1336
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1324
1337
|
/* @__PURE__ */ s(
|
|
1325
1338
|
"img",
|
|
@@ -1341,7 +1354,7 @@ function fn(e) {
|
|
|
1341
1354
|
}
|
|
1342
1355
|
)
|
|
1343
1356
|
] }),
|
|
1344
|
-
e.aspectRatio && !((
|
|
1357
|
+
e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1345
1358
|
"div",
|
|
1346
1359
|
{
|
|
1347
1360
|
className: "builder-image-sizer div-3cc22d08",
|
|
@@ -1350,12 +1363,12 @@ function fn(e) {
|
|
|
1350
1363
|
}
|
|
1351
1364
|
}
|
|
1352
1365
|
) : null,
|
|
1353
|
-
(l = (
|
|
1354
|
-
!e.fitContent && ((
|
|
1366
|
+
(l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(w, { children: e.children }) : null,
|
|
1367
|
+
!e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1355
1368
|
] })
|
|
1356
1369
|
] });
|
|
1357
1370
|
}
|
|
1358
|
-
function
|
|
1371
|
+
function bn(e) {
|
|
1359
1372
|
return /* @__PURE__ */ s(
|
|
1360
1373
|
"section",
|
|
1361
1374
|
{
|
|
@@ -1377,50 +1390,50 @@ function hn(e) {
|
|
|
1377
1390
|
);
|
|
1378
1391
|
}
|
|
1379
1392
|
function gn(e, t, n, i) {
|
|
1380
|
-
function
|
|
1381
|
-
return typeof
|
|
1393
|
+
function a(d) {
|
|
1394
|
+
return typeof d == "string";
|
|
1382
1395
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return typeof
|
|
1396
|
+
function r(d) {
|
|
1397
|
+
return typeof d == "number";
|
|
1385
1398
|
}
|
|
1386
|
-
function
|
|
1399
|
+
function o(d, h) {
|
|
1387
1400
|
return (() => {
|
|
1388
|
-
const
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1401
|
+
const u = h.property, x = h.operator;
|
|
1402
|
+
let f = h.value;
|
|
1403
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
|
|
1391
1404
|
return !0;
|
|
1392
|
-
if (Array.isArray(
|
|
1393
|
-
return
|
|
1394
|
-
property:
|
|
1395
|
-
operator:
|
|
1396
|
-
value:
|
|
1397
|
-
})) : !!
|
|
1398
|
-
property:
|
|
1399
|
-
operator:
|
|
1400
|
-
value:
|
|
1405
|
+
if (Array.isArray(f))
|
|
1406
|
+
return x === "isNot" ? f.every((y) => o(d, {
|
|
1407
|
+
property: u,
|
|
1408
|
+
operator: x,
|
|
1409
|
+
value: y
|
|
1410
|
+
})) : !!f.find((y) => o(d, {
|
|
1411
|
+
property: u,
|
|
1412
|
+
operator: x,
|
|
1413
|
+
value: y
|
|
1401
1414
|
}));
|
|
1402
|
-
const
|
|
1403
|
-
if (Array.isArray(
|
|
1404
|
-
return
|
|
1405
|
-
switch (
|
|
1415
|
+
const m = d[u];
|
|
1416
|
+
if (Array.isArray(m))
|
|
1417
|
+
return m.includes(f);
|
|
1418
|
+
switch (x) {
|
|
1406
1419
|
case "is":
|
|
1407
|
-
return
|
|
1420
|
+
return m === f;
|
|
1408
1421
|
case "isNot":
|
|
1409
|
-
return
|
|
1422
|
+
return m !== f;
|
|
1410
1423
|
case "contains":
|
|
1411
|
-
return (
|
|
1424
|
+
return (a(m) || Array.isArray(m)) && m.includes(String(f));
|
|
1412
1425
|
case "startsWith":
|
|
1413
|
-
return
|
|
1426
|
+
return a(m) && m.startsWith(String(f));
|
|
1414
1427
|
case "endsWith":
|
|
1415
|
-
return
|
|
1428
|
+
return a(m) && m.endsWith(String(f));
|
|
1416
1429
|
case "greaterThan":
|
|
1417
|
-
return
|
|
1430
|
+
return r(m) && r(f) && m > f;
|
|
1418
1431
|
case "lessThan":
|
|
1419
|
-
return
|
|
1432
|
+
return r(m) && r(f) && m < f;
|
|
1420
1433
|
case "greaterThanOrEqualTo":
|
|
1421
|
-
return
|
|
1434
|
+
return r(m) && r(f) && m >= f;
|
|
1422
1435
|
case "lessThanOrEqualTo":
|
|
1423
|
-
return
|
|
1436
|
+
return r(m) && r(f) && m <= f;
|
|
1424
1437
|
default:
|
|
1425
1438
|
return !1;
|
|
1426
1439
|
}
|
|
@@ -1431,9 +1444,9 @@ function gn(e, t, n, i) {
|
|
|
1431
1444
|
startDate: n,
|
|
1432
1445
|
endDate: i
|
|
1433
1446
|
}, 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((
|
|
1447
|
+
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((d) => o(e, d));
|
|
1435
1448
|
}
|
|
1436
|
-
const
|
|
1449
|
+
const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1437
1450
|
if (!navigator.cookieEnabled) {
|
|
1438
1451
|
return;
|
|
1439
1452
|
}
|
|
@@ -1478,7 +1491,7 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1478
1491
|
thisScript.remove();
|
|
1479
1492
|
}
|
|
1480
1493
|
}
|
|
1481
|
-
}`,
|
|
1494
|
+
}`, pn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1482
1495
|
function isString(val) {
|
|
1483
1496
|
return typeof val === 'string';
|
|
1484
1497
|
}
|
|
@@ -1556,7 +1569,7 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1556
1569
|
return item.query.every(filter => {
|
|
1557
1570
|
return objectMatchesQuery(userAttributes, filter);
|
|
1558
1571
|
});
|
|
1559
|
-
}`,
|
|
1572
|
+
}`, vn = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1560
1573
|
function getCookie(name) {
|
|
1561
1574
|
const nameEQ = name + '=';
|
|
1562
1575
|
const ca = document.cookie.split(';');
|
|
@@ -1594,25 +1607,25 @@ const bn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1594
1607
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
1595
1608
|
}
|
|
1596
1609
|
}
|
|
1597
|
-
}`,
|
|
1598
|
-
function
|
|
1599
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
1610
|
+
}`, ne = "default", xn = "filterWithCustomTargeting", tt = "builderIoPersonalization", nt = "updateVisibilityStylesScript", it = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
|
|
1611
|
+
function Sn(e, t) {
|
|
1612
|
+
return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !G();
|
|
1600
1613
|
}
|
|
1601
|
-
function
|
|
1614
|
+
function kn({
|
|
1602
1615
|
variants: e,
|
|
1603
1616
|
previewingIndex: t,
|
|
1604
1617
|
isHydrated: n,
|
|
1605
1618
|
filteredVariants: i,
|
|
1606
|
-
fallbackBlocks:
|
|
1619
|
+
fallbackBlocks: a
|
|
1607
1620
|
}) {
|
|
1608
|
-
var
|
|
1609
|
-
const
|
|
1610
|
-
blocks:
|
|
1621
|
+
var o;
|
|
1622
|
+
const r = {
|
|
1623
|
+
blocks: a != null ? a : [],
|
|
1611
1624
|
path: "this.children",
|
|
1612
|
-
index:
|
|
1625
|
+
index: ne
|
|
1613
1626
|
};
|
|
1614
|
-
if (n &&
|
|
1615
|
-
if (typeof t == "number" && t < ((
|
|
1627
|
+
if (n && U()) {
|
|
1628
|
+
if (typeof t == "number" && t < ((o = e == null ? void 0 : e.length) != null ? o : 0)) {
|
|
1616
1629
|
const l = e == null ? void 0 : e[t];
|
|
1617
1630
|
if (l)
|
|
1618
1631
|
return {
|
|
@@ -1621,9 +1634,9 @@ function Sn({
|
|
|
1621
1634
|
index: t
|
|
1622
1635
|
};
|
|
1623
1636
|
}
|
|
1624
|
-
return
|
|
1637
|
+
return r;
|
|
1625
1638
|
}
|
|
1626
|
-
if (
|
|
1639
|
+
if (G()) {
|
|
1627
1640
|
const l = i == null ? void 0 : i[0];
|
|
1628
1641
|
if (l && e) {
|
|
1629
1642
|
const c = e.indexOf(l);
|
|
@@ -1635,13 +1648,13 @@ function Sn({
|
|
|
1635
1648
|
};
|
|
1636
1649
|
}
|
|
1637
1650
|
}
|
|
1638
|
-
return
|
|
1651
|
+
return r;
|
|
1639
1652
|
}
|
|
1640
|
-
const
|
|
1641
|
-
window.${
|
|
1642
|
-
window.${
|
|
1643
|
-
window.${
|
|
1644
|
-
`,
|
|
1653
|
+
const Cn = () => `
|
|
1654
|
+
window.${xn} = ${pn}
|
|
1655
|
+
window.${tt} = ${yn}
|
|
1656
|
+
window.${nt} = ${vn}
|
|
1657
|
+
`, at = F === "react", Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, me = {
|
|
1645
1658
|
"@type": "@builder.io/sdk:Element",
|
|
1646
1659
|
layerName: "Accordion item title",
|
|
1647
1660
|
responsiveStyles: {
|
|
@@ -1670,7 +1683,7 @@ const kn = () => `
|
|
|
1670
1683
|
}
|
|
1671
1684
|
}
|
|
1672
1685
|
}]
|
|
1673
|
-
},
|
|
1686
|
+
}, fe = {
|
|
1674
1687
|
"@type": "@builder.io/sdk:Element",
|
|
1675
1688
|
layerName: "Accordion item detail",
|
|
1676
1689
|
responsiveStyles: {
|
|
@@ -1701,7 +1714,7 @@ const kn = () => `
|
|
|
1701
1714
|
}
|
|
1702
1715
|
}
|
|
1703
1716
|
}]
|
|
1704
|
-
},
|
|
1717
|
+
}, wn = {
|
|
1705
1718
|
name: "Builder:Accordion",
|
|
1706
1719
|
canHaveChildren: !0,
|
|
1707
1720
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1718,19 +1731,19 @@ const kn = () => `
|
|
|
1718
1731
|
name: "title",
|
|
1719
1732
|
type: "uiBlocks",
|
|
1720
1733
|
hideFromUI: !0,
|
|
1721
|
-
defaultValue: [
|
|
1734
|
+
defaultValue: [me]
|
|
1722
1735
|
}, {
|
|
1723
1736
|
name: "detail",
|
|
1724
1737
|
type: "uiBlocks",
|
|
1725
1738
|
hideFromUI: !0,
|
|
1726
|
-
defaultValue: [
|
|
1739
|
+
defaultValue: [fe]
|
|
1727
1740
|
}],
|
|
1728
1741
|
defaultValue: [{
|
|
1729
|
-
title: [
|
|
1730
|
-
detail: [
|
|
1742
|
+
title: [me],
|
|
1743
|
+
detail: [fe]
|
|
1731
1744
|
}, {
|
|
1732
|
-
title: [
|
|
1733
|
-
detail: [
|
|
1745
|
+
title: [me],
|
|
1746
|
+
detail: [fe]
|
|
1734
1747
|
}],
|
|
1735
1748
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
1736
1749
|
}, {
|
|
@@ -1765,14 +1778,14 @@ const kn = () => `
|
|
|
1765
1778
|
builderComponents: !0,
|
|
1766
1779
|
builderLinkComponent: !0
|
|
1767
1780
|
}
|
|
1768
|
-
},
|
|
1769
|
-
function
|
|
1770
|
-
var
|
|
1771
|
-
const [t, n] =
|
|
1781
|
+
}, Be = (e) => e.toString();
|
|
1782
|
+
function En(e) {
|
|
1783
|
+
var g;
|
|
1784
|
+
const [t, n] = k(() => []);
|
|
1772
1785
|
function i() {
|
|
1773
1786
|
return !!(e.grid || e.oneAtATime);
|
|
1774
1787
|
}
|
|
1775
|
-
function
|
|
1788
|
+
function a() {
|
|
1776
1789
|
return {
|
|
1777
1790
|
display: "flex",
|
|
1778
1791
|
alignItems: "stretch",
|
|
@@ -1784,8 +1797,8 @@ function wn(e) {
|
|
|
1784
1797
|
}
|
|
1785
1798
|
};
|
|
1786
1799
|
}
|
|
1787
|
-
function
|
|
1788
|
-
const
|
|
1800
|
+
function r() {
|
|
1801
|
+
const x = {
|
|
1789
1802
|
...{
|
|
1790
1803
|
display: "flex",
|
|
1791
1804
|
flexDirection: "column"
|
|
@@ -1794,75 +1807,75 @@ function wn(e) {
|
|
|
1794
1807
|
cursor: "pointer"
|
|
1795
1808
|
};
|
|
1796
1809
|
return Object.fromEntries(
|
|
1797
|
-
Object.entries(
|
|
1810
|
+
Object.entries(x).filter(([f, m]) => m !== void 0)
|
|
1798
1811
|
);
|
|
1799
1812
|
}
|
|
1800
|
-
function
|
|
1801
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1813
|
+
function o(u) {
|
|
1814
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1802
1815
|
}
|
|
1803
|
-
function l(
|
|
1804
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1816
|
+
function l(u) {
|
|
1817
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1805
1818
|
}
|
|
1806
1819
|
function c() {
|
|
1807
|
-
let
|
|
1820
|
+
let u = null;
|
|
1808
1821
|
if (e.grid && t.length && document) {
|
|
1809
|
-
const
|
|
1810
|
-
let
|
|
1811
|
-
`.builder-accordion-title[data-index="${
|
|
1822
|
+
const f = t[0];
|
|
1823
|
+
let y = document.querySelector(
|
|
1824
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1812
1825
|
);
|
|
1813
|
-
if (
|
|
1814
|
-
let
|
|
1815
|
-
for (;
|
|
1816
|
-
if (
|
|
1817
|
-
if (
|
|
1826
|
+
if (u = f, y) {
|
|
1827
|
+
let b = y.getBoundingClientRect();
|
|
1828
|
+
for (; y = y && y.nextElementSibling; )
|
|
1829
|
+
if (y) {
|
|
1830
|
+
if (y.classList.contains("builder-accordion-detail"))
|
|
1818
1831
|
continue;
|
|
1819
|
-
const S =
|
|
1820
|
-
if (S.left >
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1832
|
+
const S = y.getBoundingClientRect();
|
|
1833
|
+
if (S.left > b.left) {
|
|
1834
|
+
const T = parseInt(
|
|
1835
|
+
y.getAttribute("data-index") || "",
|
|
1823
1836
|
10
|
|
1824
1837
|
);
|
|
1825
|
-
isNaN(
|
|
1838
|
+
isNaN(T) || (b = S, u = T);
|
|
1826
1839
|
} else
|
|
1827
1840
|
break;
|
|
1828
1841
|
}
|
|
1829
1842
|
}
|
|
1830
1843
|
}
|
|
1831
|
-
return typeof
|
|
1844
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1832
1845
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const
|
|
1846
|
+
function d() {
|
|
1847
|
+
const u = {
|
|
1835
1848
|
order: typeof c() == "number" ? c() : void 0,
|
|
1836
1849
|
...e.grid && {
|
|
1837
1850
|
width: "100%"
|
|
1838
1851
|
}
|
|
1839
1852
|
};
|
|
1840
1853
|
return Object.fromEntries(
|
|
1841
|
-
Object.entries(
|
|
1854
|
+
Object.entries(u).filter(([x, f]) => f !== void 0)
|
|
1842
1855
|
);
|
|
1843
1856
|
}
|
|
1844
|
-
function
|
|
1845
|
-
t.includes(
|
|
1857
|
+
function h(u) {
|
|
1858
|
+
t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
|
|
1846
1859
|
}
|
|
1847
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style:
|
|
1860
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(ft.Fragment, { children: [
|
|
1848
1861
|
/* @__PURE__ */ s(
|
|
1849
1862
|
"div",
|
|
1850
1863
|
{
|
|
1851
|
-
className:
|
|
1864
|
+
className: o(x),
|
|
1852
1865
|
style: {
|
|
1853
|
-
...
|
|
1866
|
+
...r(),
|
|
1854
1867
|
...e.grid && {
|
|
1855
1868
|
width: e.gridRowWidth,
|
|
1856
|
-
order: c() !== null ?
|
|
1869
|
+
order: c() !== null ? Be(x) : Be(x + 1)
|
|
1857
1870
|
}
|
|
1858
1871
|
},
|
|
1859
|
-
"data-index":
|
|
1860
|
-
onClick: (
|
|
1872
|
+
"data-index": x,
|
|
1873
|
+
onClick: (f) => h(x),
|
|
1861
1874
|
children: /* @__PURE__ */ s(
|
|
1862
|
-
|
|
1875
|
+
M,
|
|
1863
1876
|
{
|
|
1864
|
-
blocks:
|
|
1865
|
-
path: `items.${
|
|
1877
|
+
blocks: u.title,
|
|
1878
|
+
path: `items.${x}.title`,
|
|
1866
1879
|
parent: e.builderBlock.id,
|
|
1867
1880
|
context: e.builderContext,
|
|
1868
1881
|
registeredComponents: e.builderComponents,
|
|
@@ -1871,16 +1884,16 @@ function wn(e) {
|
|
|
1871
1884
|
)
|
|
1872
1885
|
}
|
|
1873
1886
|
),
|
|
1874
|
-
t.includes(
|
|
1887
|
+
t.includes(x) ? /* @__PURE__ */ s(
|
|
1875
1888
|
"div",
|
|
1876
1889
|
{
|
|
1877
|
-
className: l(
|
|
1878
|
-
style:
|
|
1890
|
+
className: l(x),
|
|
1891
|
+
style: d(),
|
|
1879
1892
|
children: /* @__PURE__ */ s(
|
|
1880
|
-
|
|
1893
|
+
M,
|
|
1881
1894
|
{
|
|
1882
|
-
blocks:
|
|
1883
|
-
path: `items.${
|
|
1895
|
+
blocks: u.detail,
|
|
1896
|
+
path: `items.${x}.detail`,
|
|
1884
1897
|
parent: e.builderBlock.id,
|
|
1885
1898
|
context: e.builderContext,
|
|
1886
1899
|
registeredComponents: e.builderComponents,
|
|
@@ -1889,9 +1902,9 @@ function wn(e) {
|
|
|
1889
1902
|
)
|
|
1890
1903
|
}
|
|
1891
1904
|
) : null
|
|
1892
|
-
] },
|
|
1905
|
+
] }, x)) });
|
|
1893
1906
|
}
|
|
1894
|
-
const
|
|
1907
|
+
const Rn = {
|
|
1895
1908
|
name: "Core:Button",
|
|
1896
1909
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1897
1910
|
defaultStyles: {
|
|
@@ -1927,7 +1940,7 @@ const En = {
|
|
|
1927
1940
|
shouldReceiveBuilderProps: {
|
|
1928
1941
|
builderLinkComponent: !0
|
|
1929
1942
|
}
|
|
1930
|
-
},
|
|
1943
|
+
}, Pn = {
|
|
1931
1944
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1932
1945
|
name: "Columns",
|
|
1933
1946
|
isRSC: !0,
|
|
@@ -2106,7 +2119,7 @@ const En = {
|
|
|
2106
2119
|
});
|
|
2107
2120
|
}
|
|
2108
2121
|
const n = e.get("columns");
|
|
2109
|
-
Array.isArray(n) && n.find((
|
|
2122
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, c) => l + c.get("width"), 0) !== 100) && t();
|
|
2110
2123
|
}
|
|
2111
2124
|
}, {
|
|
2112
2125
|
name: "space",
|
|
@@ -2134,13 +2147,13 @@ const En = {
|
|
|
2134
2147
|
builderComponents: !0,
|
|
2135
2148
|
builderLinkComponent: !0
|
|
2136
2149
|
}
|
|
2137
|
-
},
|
|
2150
|
+
}, Vn = {
|
|
2138
2151
|
name: "Fragment",
|
|
2139
2152
|
static: !0,
|
|
2140
2153
|
hidden: !0,
|
|
2141
2154
|
canHaveChildren: !0,
|
|
2142
2155
|
noWrap: !0
|
|
2143
|
-
},
|
|
2156
|
+
}, ke = ["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 = {
|
|
2144
2157
|
name: "Image",
|
|
2145
2158
|
static: !0,
|
|
2146
2159
|
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",
|
|
@@ -2155,34 +2168,34 @@ const En = {
|
|
|
2155
2168
|
name: "image",
|
|
2156
2169
|
type: "file",
|
|
2157
2170
|
bubble: !0,
|
|
2158
|
-
allowedFileTypes:
|
|
2171
|
+
allowedFileTypes: ke,
|
|
2159
2172
|
required: !0,
|
|
2160
2173
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2161
2174
|
onChange: (e) => {
|
|
2162
2175
|
e.delete("srcset"), e.delete("noWebp");
|
|
2163
|
-
function n(
|
|
2164
|
-
return new Promise((c,
|
|
2165
|
-
const
|
|
2166
|
-
let
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
},
|
|
2170
|
-
console.warn("Image load failed",
|
|
2171
|
-
}),
|
|
2172
|
-
|
|
2176
|
+
function n(o, l = 6e4) {
|
|
2177
|
+
return new Promise((c, d) => {
|
|
2178
|
+
const h = document.createElement("img");
|
|
2179
|
+
let g = !1;
|
|
2180
|
+
h.onload = () => {
|
|
2181
|
+
g = !0, c(h);
|
|
2182
|
+
}, h.addEventListener("error", (u) => {
|
|
2183
|
+
console.warn("Image load failed", u.error), d(u.error);
|
|
2184
|
+
}), h.src = o, setTimeout(() => {
|
|
2185
|
+
g || d(new Error("Image load timed out"));
|
|
2173
2186
|
}, l);
|
|
2174
2187
|
});
|
|
2175
2188
|
}
|
|
2176
|
-
function i(
|
|
2177
|
-
return Math.round(
|
|
2189
|
+
function i(o) {
|
|
2190
|
+
return Math.round(o * 1e3) / 1e3;
|
|
2178
2191
|
}
|
|
2179
|
-
const
|
|
2180
|
-
if (fetch(
|
|
2181
|
-
|
|
2182
|
-
}),
|
|
2183
|
-
return n(
|
|
2192
|
+
const a = e.get("image"), r = e.get("aspectRatio");
|
|
2193
|
+
if (fetch(a).then((o) => o.blob()).then((o) => {
|
|
2194
|
+
o.type.includes("svg") && e.set("noWebp", !0);
|
|
2195
|
+
}), a && (!r || r === 0.7041))
|
|
2196
|
+
return n(a).then((o) => {
|
|
2184
2197
|
const l = e.get("aspectRatio");
|
|
2185
|
-
e.get("image") ===
|
|
2198
|
+
e.get("image") === a && (!l || l === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
|
|
2186
2199
|
});
|
|
2187
2200
|
}
|
|
2188
2201
|
}, {
|
|
@@ -2252,7 +2265,7 @@ const En = {
|
|
|
2252
2265
|
shouldReceiveBuilderProps: {
|
|
2253
2266
|
builderBlock: !0
|
|
2254
2267
|
}
|
|
2255
|
-
},
|
|
2268
|
+
}, Nn = {
|
|
2256
2269
|
name: "PersonalizationContainer",
|
|
2257
2270
|
shouldReceiveBuilderProps: {
|
|
2258
2271
|
builderBlock: !0,
|
|
@@ -2289,7 +2302,7 @@ const En = {
|
|
|
2289
2302
|
}]
|
|
2290
2303
|
}]
|
|
2291
2304
|
};
|
|
2292
|
-
function
|
|
2305
|
+
function J(e) {
|
|
2293
2306
|
return /* @__PURE__ */ s(
|
|
2294
2307
|
"script",
|
|
2295
2308
|
{
|
|
@@ -2299,50 +2312,50 @@ function q(e) {
|
|
|
2299
2312
|
}
|
|
2300
2313
|
);
|
|
2301
2314
|
}
|
|
2302
|
-
function
|
|
2303
|
-
var S,
|
|
2304
|
-
const t =
|
|
2305
|
-
() =>
|
|
2306
|
-
), [
|
|
2315
|
+
function $n(e) {
|
|
2316
|
+
var S, T, E, _, H, q, p, v, V, A, $, R, P;
|
|
2317
|
+
const t = z(null), [n, i] = k(
|
|
2318
|
+
() => Te.getUserAttributes()
|
|
2319
|
+
), [a, r] = k(
|
|
2307
2320
|
() => {
|
|
2308
|
-
var I, B,
|
|
2309
|
-
return
|
|
2321
|
+
var I, B, C;
|
|
2322
|
+
return Tn(
|
|
2310
2323
|
e.variants,
|
|
2311
2324
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2312
|
-
(
|
|
2325
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2313
2326
|
);
|
|
2314
2327
|
}
|
|
2315
|
-
), [
|
|
2328
|
+
), [o, l] = k(
|
|
2316
2329
|
() => {
|
|
2317
|
-
var I, B,
|
|
2318
|
-
return
|
|
2330
|
+
var I, B, C;
|
|
2331
|
+
return In(
|
|
2319
2332
|
e.variants,
|
|
2320
2333
|
((I = e.builderBlock) == null ? void 0 : I.id) || "none",
|
|
2321
|
-
(
|
|
2334
|
+
(C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
|
|
2322
2335
|
);
|
|
2323
2336
|
}
|
|
2324
|
-
), [c,
|
|
2337
|
+
), [c, d] = k(() => []), [h, g] = k(
|
|
2325
2338
|
() => {
|
|
2326
2339
|
var I;
|
|
2327
|
-
return
|
|
2340
|
+
return Sn(
|
|
2328
2341
|
e.variants,
|
|
2329
|
-
|
|
2342
|
+
Z((I = e.builderContext) == null ? void 0 : I.canTrack)
|
|
2330
2343
|
);
|
|
2331
2344
|
}
|
|
2332
|
-
), [
|
|
2333
|
-
function
|
|
2345
|
+
), [u, x] = k(() => !1);
|
|
2346
|
+
function f() {
|
|
2334
2347
|
return {
|
|
2335
2348
|
...e.attributes,
|
|
2336
|
-
[
|
|
2349
|
+
[K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
|
|
2337
2350
|
};
|
|
2338
2351
|
}
|
|
2339
|
-
function
|
|
2352
|
+
function m() {
|
|
2340
2353
|
return (e.variants || []).filter((I) => {
|
|
2341
|
-
var B,
|
|
2354
|
+
var B, C, W, L;
|
|
2342
2355
|
return gn(
|
|
2343
2356
|
{
|
|
2344
|
-
...(
|
|
2345
|
-
locale: (
|
|
2357
|
+
...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
|
|
2358
|
+
locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
|
|
2346
2359
|
} : {},
|
|
2347
2360
|
...n
|
|
2348
2361
|
},
|
|
@@ -2352,53 +2365,53 @@ function Nn(e) {
|
|
|
2352
2365
|
);
|
|
2353
2366
|
});
|
|
2354
2367
|
}
|
|
2355
|
-
function
|
|
2368
|
+
function y() {
|
|
2356
2369
|
var I;
|
|
2357
|
-
return
|
|
2370
|
+
return kn({
|
|
2358
2371
|
variants: e.variants,
|
|
2359
2372
|
fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
|
|
2360
|
-
isHydrated:
|
|
2361
|
-
filteredVariants:
|
|
2373
|
+
isHydrated: u,
|
|
2374
|
+
filteredVariants: m(),
|
|
2362
2375
|
previewingIndex: e.previewingIndex
|
|
2363
2376
|
});
|
|
2364
2377
|
}
|
|
2365
|
-
function
|
|
2378
|
+
function b() {
|
|
2366
2379
|
return (e.variants || []).map(
|
|
2367
2380
|
(I, B) => {
|
|
2368
|
-
var
|
|
2369
|
-
return `div[data-variant-id="${(
|
|
2381
|
+
var C;
|
|
2382
|
+
return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
|
|
2370
2383
|
}
|
|
2371
2384
|
).join("");
|
|
2372
2385
|
}
|
|
2373
|
-
return
|
|
2386
|
+
return N(() => {
|
|
2374
2387
|
var B;
|
|
2375
|
-
|
|
2376
|
-
const I =
|
|
2377
|
-
(
|
|
2378
|
-
i(
|
|
2388
|
+
x(!0);
|
|
2389
|
+
const I = Te.subscribeOnUserAttributesChange(
|
|
2390
|
+
(C) => {
|
|
2391
|
+
i(C);
|
|
2379
2392
|
},
|
|
2380
2393
|
{
|
|
2381
2394
|
fireImmediately: F === "qwik"
|
|
2382
2395
|
}
|
|
2383
2396
|
);
|
|
2384
|
-
if (!(
|
|
2385
|
-
const
|
|
2397
|
+
if (!(U() || oe())) {
|
|
2398
|
+
const C = m()[0];
|
|
2386
2399
|
t.current && (t.current.dispatchEvent(
|
|
2387
2400
|
new CustomEvent("builder.variantLoaded", {
|
|
2388
2401
|
detail: {
|
|
2389
|
-
variant:
|
|
2402
|
+
variant: C || ne,
|
|
2390
2403
|
content: (B = e.builderContext) == null ? void 0 : B.content
|
|
2391
2404
|
},
|
|
2392
2405
|
bubbles: !0
|
|
2393
2406
|
})
|
|
2394
|
-
), new IntersectionObserver((
|
|
2395
|
-
|
|
2396
|
-
var
|
|
2397
|
-
|
|
2407
|
+
), new IntersectionObserver((L) => {
|
|
2408
|
+
L.forEach((O) => {
|
|
2409
|
+
var j;
|
|
2410
|
+
O.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2398
2411
|
new CustomEvent("builder.variantDisplayed", {
|
|
2399
2412
|
detail: {
|
|
2400
|
-
variant:
|
|
2401
|
-
content: (
|
|
2413
|
+
variant: C || ne,
|
|
2414
|
+
content: (j = e.builderContext) == null ? void 0 : j.content
|
|
2402
2415
|
},
|
|
2403
2416
|
bubbles: !0
|
|
2404
2417
|
})
|
|
@@ -2407,88 +2420,88 @@ function Nn(e) {
|
|
|
2407
2420
|
}).observe(t.current));
|
|
2408
2421
|
}
|
|
2409
2422
|
c.push(I);
|
|
2410
|
-
}, []),
|
|
2423
|
+
}, []), N(() => () => {
|
|
2411
2424
|
c.forEach((I) => I());
|
|
2412
|
-
}, []), /* @__PURE__ */
|
|
2413
|
-
|
|
2414
|
-
|
|
2425
|
+
}, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
|
|
2426
|
+
u && ie.includes(F) ? /* @__PURE__ */ s(
|
|
2427
|
+
M,
|
|
2415
2428
|
{
|
|
2416
|
-
blocks:
|
|
2429
|
+
blocks: y().blocks,
|
|
2417
2430
|
parent: (S = e.builderBlock) == null ? void 0 : S.id,
|
|
2418
|
-
path:
|
|
2431
|
+
path: y().path,
|
|
2419
2432
|
context: e.builderContext,
|
|
2420
2433
|
registeredComponents: e.builderComponents,
|
|
2421
2434
|
BlocksWrapperProps: {
|
|
2422
|
-
...(
|
|
2423
|
-
"data-variant-id": `${(
|
|
2435
|
+
...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
|
|
2436
|
+
"data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
|
|
2424
2437
|
}
|
|
2425
2438
|
}
|
|
2426
2439
|
) : null,
|
|
2427
|
-
!
|
|
2428
|
-
|
|
2440
|
+
!u && ie.includes(F) || !ie.includes(F) ? /* @__PURE__ */ D(w, { children: [
|
|
2441
|
+
h ? /* @__PURE__ */ D(w, { children: [
|
|
2429
2442
|
/* @__PURE__ */ s(
|
|
2430
|
-
|
|
2443
|
+
te,
|
|
2431
2444
|
{
|
|
2432
|
-
nonce: ((
|
|
2433
|
-
styles:
|
|
2434
|
-
id: `variants-styles-${(
|
|
2445
|
+
nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
|
|
2446
|
+
styles: b(),
|
|
2447
|
+
id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
|
|
2435
2448
|
}
|
|
2436
2449
|
),
|
|
2437
2450
|
/* @__PURE__ */ s(
|
|
2438
|
-
|
|
2451
|
+
J,
|
|
2439
2452
|
{
|
|
2440
|
-
nonce: ((
|
|
2441
|
-
scriptStr:
|
|
2442
|
-
id: `variants-visibility-script-${(
|
|
2453
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
2454
|
+
scriptStr: o,
|
|
2455
|
+
id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
|
|
2443
2456
|
}
|
|
2444
2457
|
),
|
|
2445
|
-
(
|
|
2446
|
-
var
|
|
2458
|
+
(v = e.variants) == null ? void 0 : v.map((I, B) => {
|
|
2459
|
+
var C, W, L, O, j, Ce;
|
|
2447
2460
|
return /* @__PURE__ */ s(
|
|
2448
|
-
|
|
2461
|
+
M,
|
|
2449
2462
|
{
|
|
2450
2463
|
BlocksWrapperProps: {
|
|
2451
|
-
...(
|
|
2464
|
+
...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
|
|
2452
2465
|
"aria-hidden": !0,
|
|
2453
2466
|
hidden: !0,
|
|
2454
|
-
"data-variant-id": `${(
|
|
2467
|
+
"data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${B}`
|
|
2455
2468
|
},
|
|
2456
2469
|
blocks: I.blocks,
|
|
2457
|
-
parent: (
|
|
2470
|
+
parent: (L = e.builderBlock) == null ? void 0 : L.id,
|
|
2458
2471
|
path: `component.options.variants.${B}.blocks`,
|
|
2459
2472
|
context: e.builderContext,
|
|
2460
2473
|
registeredComponents: e.builderComponents,
|
|
2461
2474
|
children: /* @__PURE__ */ s(
|
|
2462
|
-
|
|
2475
|
+
J,
|
|
2463
2476
|
{
|
|
2464
|
-
nonce: ((
|
|
2465
|
-
scriptStr:
|
|
2466
|
-
id: `variants-script-${(
|
|
2477
|
+
nonce: ((O = e.builderContext) == null ? void 0 : O.nonce) || "",
|
|
2478
|
+
scriptStr: a,
|
|
2479
|
+
id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
|
|
2467
2480
|
}
|
|
2468
2481
|
)
|
|
2469
2482
|
},
|
|
2470
|
-
`${(
|
|
2483
|
+
`${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${B}`
|
|
2471
2484
|
);
|
|
2472
2485
|
})
|
|
2473
2486
|
] }) : null,
|
|
2474
2487
|
/* @__PURE__ */ s(
|
|
2475
|
-
|
|
2488
|
+
M,
|
|
2476
2489
|
{
|
|
2477
|
-
blocks:
|
|
2478
|
-
parent: (
|
|
2479
|
-
path:
|
|
2490
|
+
blocks: y().blocks,
|
|
2491
|
+
parent: (V = e.builderBlock) == null ? void 0 : V.id,
|
|
2492
|
+
path: y().path,
|
|
2480
2493
|
context: e.builderContext,
|
|
2481
2494
|
registeredComponents: e.builderComponents,
|
|
2482
2495
|
BlocksWrapperProps: {
|
|
2483
|
-
...(
|
|
2484
|
-
"data-variant-id": `${(
|
|
2496
|
+
...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
|
|
2497
|
+
"data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
|
|
2485
2498
|
},
|
|
2486
|
-
children:
|
|
2487
|
-
|
|
2499
|
+
children: h ? /* @__PURE__ */ s(
|
|
2500
|
+
J,
|
|
2488
2501
|
{
|
|
2489
|
-
nonce: ((
|
|
2490
|
-
scriptStr:
|
|
2491
|
-
id: `variants-script-${(
|
|
2502
|
+
nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
|
|
2503
|
+
scriptStr: a,
|
|
2504
|
+
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}-${ne}`
|
|
2492
2505
|
}
|
|
2493
2506
|
) : null
|
|
2494
2507
|
}
|
|
@@ -2496,7 +2509,7 @@ function Nn(e) {
|
|
|
2496
2509
|
] }) : null
|
|
2497
2510
|
] });
|
|
2498
2511
|
}
|
|
2499
|
-
const
|
|
2512
|
+
const Wn = {
|
|
2500
2513
|
name: "Core:Section",
|
|
2501
2514
|
static: !0,
|
|
2502
2515
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2535,7 +2548,7 @@ const $n = {
|
|
|
2535
2548
|
}
|
|
2536
2549
|
}
|
|
2537
2550
|
}]
|
|
2538
|
-
},
|
|
2551
|
+
}, Dn = {
|
|
2539
2552
|
name: "Slot",
|
|
2540
2553
|
isRSC: !0,
|
|
2541
2554
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2553,7 +2566,7 @@ const $n = {
|
|
|
2553
2566
|
builderComponents: !0
|
|
2554
2567
|
}
|
|
2555
2568
|
};
|
|
2556
|
-
function
|
|
2569
|
+
function Fn(e) {
|
|
2557
2570
|
var t, n, i;
|
|
2558
2571
|
return /* @__PURE__ */ s(
|
|
2559
2572
|
"div",
|
|
@@ -2565,7 +2578,7 @@ function Dn(e) {
|
|
|
2565
2578
|
"builder-slot": e.name
|
|
2566
2579
|
},
|
|
2567
2580
|
children: /* @__PURE__ */ s(
|
|
2568
|
-
|
|
2581
|
+
M,
|
|
2569
2582
|
{
|
|
2570
2583
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
2571
2584
|
path: `symbol.data.${e.name}`,
|
|
@@ -2577,7 +2590,7 @@ function Dn(e) {
|
|
|
2577
2590
|
}
|
|
2578
2591
|
);
|
|
2579
2592
|
}
|
|
2580
|
-
const
|
|
2593
|
+
const Ln = {
|
|
2581
2594
|
name: "Symbol",
|
|
2582
2595
|
noWrap: !0,
|
|
2583
2596
|
static: !0,
|
|
@@ -2616,7 +2629,7 @@ const Fn = {
|
|
|
2616
2629
|
builderComponents: !0,
|
|
2617
2630
|
builderLinkComponent: !0
|
|
2618
2631
|
}
|
|
2619
|
-
},
|
|
2632
|
+
}, he = {
|
|
2620
2633
|
"@type": "@builder.io/sdk:Element",
|
|
2621
2634
|
responsiveStyles: {
|
|
2622
2635
|
large: {
|
|
@@ -2638,7 +2651,7 @@ const Fn = {
|
|
|
2638
2651
|
text: "New tab"
|
|
2639
2652
|
}
|
|
2640
2653
|
}
|
|
2641
|
-
},
|
|
2654
|
+
}, be = {
|
|
2642
2655
|
"@type": "@builder.io/sdk:Element",
|
|
2643
2656
|
responsiveStyles: {
|
|
2644
2657
|
large: {
|
|
@@ -2664,16 +2677,16 @@ const Fn = {
|
|
|
2664
2677
|
name: "label",
|
|
2665
2678
|
type: "uiBlocks",
|
|
2666
2679
|
hideFromUI: !0,
|
|
2667
|
-
defaultValue: [
|
|
2680
|
+
defaultValue: [he]
|
|
2668
2681
|
}, {
|
|
2669
2682
|
name: "content",
|
|
2670
2683
|
type: "uiBlocks",
|
|
2671
2684
|
hideFromUI: !0,
|
|
2672
|
-
defaultValue: [
|
|
2685
|
+
defaultValue: [be]
|
|
2673
2686
|
}],
|
|
2674
2687
|
defaultValue: [{
|
|
2675
2688
|
label: [{
|
|
2676
|
-
...
|
|
2689
|
+
...he,
|
|
2677
2690
|
component: {
|
|
2678
2691
|
name: "Text",
|
|
2679
2692
|
options: {
|
|
@@ -2682,7 +2695,7 @@ const Fn = {
|
|
|
2682
2695
|
}
|
|
2683
2696
|
}],
|
|
2684
2697
|
content: [{
|
|
2685
|
-
...
|
|
2698
|
+
...be,
|
|
2686
2699
|
component: {
|
|
2687
2700
|
name: "Text",
|
|
2688
2701
|
options: {
|
|
@@ -2692,7 +2705,7 @@ const Fn = {
|
|
|
2692
2705
|
}]
|
|
2693
2706
|
}, {
|
|
2694
2707
|
label: [{
|
|
2695
|
-
...
|
|
2708
|
+
...he,
|
|
2696
2709
|
component: {
|
|
2697
2710
|
name: "Text",
|
|
2698
2711
|
options: {
|
|
@@ -2701,7 +2714,7 @@ const Fn = {
|
|
|
2701
2714
|
}
|
|
2702
2715
|
}],
|
|
2703
2716
|
content: [{
|
|
2704
|
-
...
|
|
2717
|
+
...be,
|
|
2705
2718
|
component: {
|
|
2706
2719
|
name: "Text",
|
|
2707
2720
|
options: {
|
|
@@ -2758,18 +2771,21 @@ const Fn = {
|
|
|
2758
2771
|
builderLinkComponent: !0
|
|
2759
2772
|
}
|
|
2760
2773
|
};
|
|
2761
|
-
function
|
|
2774
|
+
function _n(e) {
|
|
2762
2775
|
var o;
|
|
2763
|
-
const [t, n] =
|
|
2776
|
+
const [t, n] = k(
|
|
2764
2777
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2765
2778
|
);
|
|
2766
|
-
function i(
|
|
2767
|
-
return e.tabs && e.tabs[
|
|
2779
|
+
function i(l) {
|
|
2780
|
+
return e.tabs && e.tabs[l].content;
|
|
2768
2781
|
}
|
|
2769
|
-
function
|
|
2770
|
-
|
|
2782
|
+
function a(l) {
|
|
2783
|
+
return l === t ? e.activeTabStyle : {};
|
|
2771
2784
|
}
|
|
2772
|
-
|
|
2785
|
+
function r(l) {
|
|
2786
|
+
l === t && e.collapsible ? n(-1) : n(l);
|
|
2787
|
+
}
|
|
2788
|
+
return /* @__PURE__ */ D("div", { children: [
|
|
2773
2789
|
/* @__PURE__ */ s(
|
|
2774
2790
|
"div",
|
|
2775
2791
|
{
|
|
@@ -2780,32 +2796,30 @@ function Ln(e) {
|
|
|
2780
2796
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2781
2797
|
overflow: "auto"
|
|
2782
2798
|
},
|
|
2783
|
-
children: (o = e.tabs) == null ? void 0 : o.map((
|
|
2799
|
+
children: (o = e.tabs) == null ? void 0 : o.map((l, c) => /* @__PURE__ */ s(
|
|
2784
2800
|
"span",
|
|
2785
2801
|
{
|
|
2786
|
-
className: `builder-tab-wrap ${t ===
|
|
2787
|
-
style:
|
|
2788
|
-
|
|
2789
|
-
},
|
|
2790
|
-
onClick: (c) => r(l),
|
|
2802
|
+
className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
|
|
2803
|
+
style: a(c),
|
|
2804
|
+
onClick: (d) => r(c),
|
|
2791
2805
|
children: /* @__PURE__ */ s(
|
|
2792
|
-
|
|
2806
|
+
M,
|
|
2793
2807
|
{
|
|
2794
2808
|
parent: e.builderBlock.id,
|
|
2795
|
-
path: `tabs.${
|
|
2796
|
-
blocks:
|
|
2809
|
+
path: `tabs.${c}.label`,
|
|
2810
|
+
blocks: l.label,
|
|
2797
2811
|
context: e.builderContext,
|
|
2798
2812
|
registeredComponents: e.builderComponents,
|
|
2799
2813
|
linkComponent: e.builderLinkComponent
|
|
2800
2814
|
}
|
|
2801
2815
|
)
|
|
2802
2816
|
},
|
|
2803
|
-
|
|
2817
|
+
c
|
|
2804
2818
|
))
|
|
2805
2819
|
}
|
|
2806
2820
|
),
|
|
2807
2821
|
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2808
|
-
|
|
2822
|
+
M,
|
|
2809
2823
|
{
|
|
2810
2824
|
parent: e.builderBlock.id,
|
|
2811
2825
|
path: `tabs.${t}.content`,
|
|
@@ -2817,11 +2831,10 @@ function Ln(e) {
|
|
|
2817
2831
|
) }) : null
|
|
2818
2832
|
] });
|
|
2819
2833
|
}
|
|
2820
|
-
const
|
|
2834
|
+
const Un = {
|
|
2821
2835
|
shouldReceiveBuilderProps: {},
|
|
2822
2836
|
name: "Text",
|
|
2823
2837
|
static: !0,
|
|
2824
|
-
isRSC: !0,
|
|
2825
2838
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
2826
2839
|
inputs: [{
|
|
2827
2840
|
name: "text",
|
|
@@ -2837,7 +2850,7 @@ const _n = {
|
|
|
2837
2850
|
textAlign: "center"
|
|
2838
2851
|
}
|
|
2839
2852
|
};
|
|
2840
|
-
function
|
|
2853
|
+
function Hn(e) {
|
|
2841
2854
|
var t;
|
|
2842
2855
|
return /* @__PURE__ */ s(
|
|
2843
2856
|
"div",
|
|
@@ -2850,7 +2863,7 @@ function Un(e) {
|
|
|
2850
2863
|
}
|
|
2851
2864
|
);
|
|
2852
2865
|
}
|
|
2853
|
-
const
|
|
2866
|
+
const Mn = {
|
|
2854
2867
|
name: "Custom Code",
|
|
2855
2868
|
static: !0,
|
|
2856
2869
|
requiredPermissions: ["editCode"],
|
|
@@ -2873,43 +2886,43 @@ const Hn = {
|
|
|
2873
2886
|
advanced: !0
|
|
2874
2887
|
}]
|
|
2875
2888
|
};
|
|
2876
|
-
function
|
|
2877
|
-
const t =
|
|
2878
|
-
function
|
|
2889
|
+
function qn(e) {
|
|
2890
|
+
const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []);
|
|
2891
|
+
function o() {
|
|
2879
2892
|
var c;
|
|
2880
2893
|
if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
2881
2894
|
return;
|
|
2882
2895
|
const l = t.current.getElementsByTagName("script");
|
|
2883
|
-
for (let
|
|
2884
|
-
const
|
|
2885
|
-
if (
|
|
2886
|
-
if (n.includes(
|
|
2896
|
+
for (let d = 0; d < l.length; d++) {
|
|
2897
|
+
const h = l[d];
|
|
2898
|
+
if (h.src) {
|
|
2899
|
+
if (n.includes(h.src))
|
|
2887
2900
|
continue;
|
|
2888
|
-
n.push(
|
|
2889
|
-
const
|
|
2890
|
-
|
|
2891
|
-
} else if (!
|
|
2901
|
+
n.push(h.src);
|
|
2902
|
+
const g = document.createElement("script");
|
|
2903
|
+
g.async = !0, g.src = h.src, document.head.appendChild(g);
|
|
2904
|
+
} else if (!h.type || [
|
|
2892
2905
|
"text/javascript",
|
|
2893
2906
|
"application/javascript",
|
|
2894
2907
|
"application/ecmascript"
|
|
2895
|
-
].includes(
|
|
2896
|
-
if (
|
|
2908
|
+
].includes(h.type)) {
|
|
2909
|
+
if (a.includes(h.innerText))
|
|
2897
2910
|
continue;
|
|
2898
2911
|
try {
|
|
2899
|
-
|
|
2900
|
-
} catch (
|
|
2901
|
-
|
|
2912
|
+
a.push(h.innerText), new Function(h.innerText)();
|
|
2913
|
+
} catch (g) {
|
|
2914
|
+
ee.warn(
|
|
2902
2915
|
"[BUILDER.IO] `CustomCode`: Error running script:",
|
|
2903
|
-
|
|
2916
|
+
g
|
|
2904
2917
|
);
|
|
2905
2918
|
}
|
|
2906
2919
|
}
|
|
2907
2920
|
}
|
|
2908
2921
|
}
|
|
2909
|
-
return
|
|
2910
|
-
|
|
2911
|
-
}, []),
|
|
2912
|
-
|
|
2922
|
+
return N(() => {
|
|
2923
|
+
o();
|
|
2924
|
+
}, []), N(() => {
|
|
2925
|
+
U() && o();
|
|
2913
2926
|
}, [e.code]), /* @__PURE__ */ s(
|
|
2914
2927
|
"div",
|
|
2915
2928
|
{
|
|
@@ -2919,7 +2932,7 @@ function Mn(e) {
|
|
|
2919
2932
|
}
|
|
2920
2933
|
);
|
|
2921
2934
|
}
|
|
2922
|
-
const
|
|
2935
|
+
const jn = {
|
|
2923
2936
|
name: "Embed",
|
|
2924
2937
|
static: !0,
|
|
2925
2938
|
inputs: [{
|
|
@@ -2934,30 +2947,30 @@ const qn = {
|
|
|
2934
2947
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2935
2948
|
hideFromUI: !0
|
|
2936
2949
|
}]
|
|
2937
|
-
},
|
|
2938
|
-
function
|
|
2939
|
-
const t =
|
|
2950
|
+
}, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
|
|
2951
|
+
function Jn(e) {
|
|
2952
|
+
const t = z(null), [n, i] = k(() => []), [a, r] = k(() => []), [o, l] = k(() => !1);
|
|
2940
2953
|
function c() {
|
|
2941
2954
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2942
2955
|
return;
|
|
2943
|
-
const
|
|
2944
|
-
for (let
|
|
2945
|
-
const
|
|
2946
|
-
if (
|
|
2947
|
-
n.push(
|
|
2948
|
-
const
|
|
2949
|
-
|
|
2950
|
-
} else if (
|
|
2956
|
+
const d = t.current.getElementsByTagName("script");
|
|
2957
|
+
for (let h = 0; h < d.length; h++) {
|
|
2958
|
+
const g = d[h];
|
|
2959
|
+
if (g.src && !n.includes(g.src)) {
|
|
2960
|
+
n.push(g.src);
|
|
2961
|
+
const u = document.createElement("script");
|
|
2962
|
+
u.async = !0, u.src = g.src, document.head.appendChild(u);
|
|
2963
|
+
} else if (Kn(g) && !a.includes(g.innerText))
|
|
2951
2964
|
try {
|
|
2952
|
-
|
|
2953
|
-
} catch (
|
|
2954
|
-
|
|
2965
|
+
a.push(g.innerText), new Function(g.innerText)();
|
|
2966
|
+
} catch (u) {
|
|
2967
|
+
ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
|
|
2955
2968
|
}
|
|
2956
2969
|
}
|
|
2957
2970
|
}
|
|
2958
|
-
return
|
|
2959
|
-
t.current && !
|
|
2960
|
-
}, [t.current,
|
|
2971
|
+
return N(() => {
|
|
2972
|
+
t.current && !o && (l(!0), c());
|
|
2973
|
+
}, [t.current, o]), /* @__PURE__ */ s(
|
|
2961
2974
|
"div",
|
|
2962
2975
|
{
|
|
2963
2976
|
className: "builder-embed",
|
|
@@ -2966,7 +2979,7 @@ function Kn(e) {
|
|
|
2966
2979
|
}
|
|
2967
2980
|
);
|
|
2968
2981
|
}
|
|
2969
|
-
const
|
|
2982
|
+
const Gn = {
|
|
2970
2983
|
name: "Form:Form",
|
|
2971
2984
|
// editableTags: ['builder-form-error']
|
|
2972
2985
|
defaults: {
|
|
@@ -3203,107 +3216,110 @@ const Jn = {
|
|
|
3203
3216
|
builderComponents: !0,
|
|
3204
3217
|
builderLinkComponent: !0
|
|
3205
3218
|
}
|
|
3206
|
-
},
|
|
3219
|
+
}, Qn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Yn = () => {
|
|
3207
3220
|
const e = process.env.NODE_ENV || "production";
|
|
3208
|
-
return
|
|
3221
|
+
return Qn.includes(e) ? e : "production";
|
|
3209
3222
|
};
|
|
3210
|
-
function
|
|
3211
|
-
const t =
|
|
3212
|
-
function c(
|
|
3213
|
-
var
|
|
3214
|
-
const
|
|
3223
|
+
function Xn(e) {
|
|
3224
|
+
const t = z(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
|
|
3225
|
+
function c(u) {
|
|
3226
|
+
var f, m;
|
|
3227
|
+
const x = {
|
|
3215
3228
|
...e.builderContext.rootState,
|
|
3216
|
-
...
|
|
3229
|
+
...u
|
|
3217
3230
|
};
|
|
3218
|
-
e.builderContext.rootSetState ? (
|
|
3231
|
+
e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
|
|
3219
3232
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3233
|
+
function d() {
|
|
3234
|
+
return U() && e.previewState || n;
|
|
3235
|
+
}
|
|
3236
|
+
function h(u) {
|
|
3237
|
+
return JSON.stringify(u, null, 2);
|
|
3222
3238
|
}
|
|
3223
|
-
function
|
|
3224
|
-
var
|
|
3225
|
-
const
|
|
3239
|
+
function g(u) {
|
|
3240
|
+
var f;
|
|
3241
|
+
const x = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3226
3242
|
if (e.sendSubmissionsTo === "zapier")
|
|
3227
|
-
|
|
3228
|
-
else if (
|
|
3243
|
+
u.preventDefault();
|
|
3244
|
+
else if (x) {
|
|
3229
3245
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3230
|
-
|
|
3246
|
+
u.preventDefault();
|
|
3231
3247
|
return;
|
|
3232
3248
|
}
|
|
3233
|
-
|
|
3234
|
-
const
|
|
3235
|
-
let
|
|
3236
|
-
const
|
|
3237
|
-
(
|
|
3238
|
-
).map((
|
|
3239
|
-
let
|
|
3240
|
-
const
|
|
3241
|
-
if (
|
|
3242
|
-
if (
|
|
3243
|
-
if (
|
|
3244
|
-
return
|
|
3245
|
-
key:
|
|
3246
|
-
value:
|
|
3249
|
+
u.preventDefault();
|
|
3250
|
+
const m = u.currentTarget || u.target, y = e.customHeaders || {};
|
|
3251
|
+
let b;
|
|
3252
|
+
const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
|
|
3253
|
+
(p) => !!p.name && (p.type !== "radio" || p.checked)
|
|
3254
|
+
).map((p) => {
|
|
3255
|
+
let v;
|
|
3256
|
+
const V = p.name;
|
|
3257
|
+
if (p instanceof HTMLInputElement)
|
|
3258
|
+
if (p.type === "radio") {
|
|
3259
|
+
if (p.checked)
|
|
3260
|
+
return v = p.value, {
|
|
3261
|
+
key: V,
|
|
3262
|
+
value: v
|
|
3247
3263
|
};
|
|
3248
|
-
} else if (
|
|
3249
|
-
|
|
3250
|
-
else if (
|
|
3251
|
-
const
|
|
3252
|
-
isNaN(
|
|
3264
|
+
} else if (p.type === "checkbox")
|
|
3265
|
+
v = p.checked;
|
|
3266
|
+
else if (p.type === "number" || p.type === "range") {
|
|
3267
|
+
const A = p.valueAsNumber;
|
|
3268
|
+
isNaN(A) || (v = A);
|
|
3253
3269
|
} else
|
|
3254
|
-
|
|
3270
|
+
p.type === "file" ? v = p.files : v = p.value;
|
|
3255
3271
|
else
|
|
3256
|
-
|
|
3272
|
+
v = p.value;
|
|
3257
3273
|
return {
|
|
3258
|
-
key:
|
|
3259
|
-
value:
|
|
3274
|
+
key: V,
|
|
3275
|
+
value: v
|
|
3260
3276
|
};
|
|
3261
3277
|
});
|
|
3262
|
-
let
|
|
3263
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3264
|
-
(
|
|
3265
|
-
}),
|
|
3266
|
-
|
|
3278
|
+
let E = e.contentType;
|
|
3279
|
+
if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
|
|
3280
|
+
(p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
|
|
3281
|
+
}), E !== "application/json")
|
|
3282
|
+
b = S;
|
|
3267
3283
|
else {
|
|
3268
|
-
const
|
|
3269
|
-
Array.from(
|
|
3270
|
-
|
|
3271
|
-
}),
|
|
3284
|
+
const p = {};
|
|
3285
|
+
Array.from(T).forEach(({ value: v, key: V }) => {
|
|
3286
|
+
He(p, V, v);
|
|
3287
|
+
}), b = JSON.stringify(p);
|
|
3272
3288
|
}
|
|
3273
|
-
|
|
3274
|
-
const
|
|
3275
|
-
if (t.current && (t.current.dispatchEvent(
|
|
3289
|
+
E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
|
|
3290
|
+
const _ = new CustomEvent("presubmit", { detail: { body: b } });
|
|
3291
|
+
if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
|
|
3276
3292
|
return;
|
|
3277
3293
|
if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
|
|
3278
|
-
const
|
|
3279
|
-
console.error(
|
|
3294
|
+
const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
|
|
3295
|
+
console.error(p), i("error"), c({ formErrorMessage: p });
|
|
3280
3296
|
return;
|
|
3281
3297
|
}
|
|
3282
|
-
const
|
|
3298
|
+
const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3283
3299
|
e.sendSubmissionsToEmail || ""
|
|
3284
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3285
|
-
|
|
3286
|
-
async (
|
|
3287
|
-
var
|
|
3288
|
-
let
|
|
3289
|
-
const
|
|
3290
|
-
if (
|
|
3291
|
-
const
|
|
3292
|
-
detail: { error:
|
|
3300
|
+
)}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
|
|
3301
|
+
Le(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
|
|
3302
|
+
async (p) => {
|
|
3303
|
+
var A, $;
|
|
3304
|
+
let v;
|
|
3305
|
+
const V = p.headers.get("content-type");
|
|
3306
|
+
if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
|
|
3307
|
+
const R = new CustomEvent("submit:error", {
|
|
3308
|
+
detail: { error: v, status: p.status }
|
|
3293
3309
|
});
|
|
3294
|
-
if ((
|
|
3310
|
+
if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
|
|
3295
3311
|
return;
|
|
3296
|
-
|
|
3297
|
-
let P = e.errorMessagePath ?
|
|
3312
|
+
r(v), i("error");
|
|
3313
|
+
let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
|
|
3298
3314
|
typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
|
|
3299
3315
|
return;
|
|
3300
3316
|
}
|
|
3301
|
-
if (
|
|
3302
|
-
const
|
|
3303
|
-
detail: { res:
|
|
3317
|
+
if (r(v), i(p.ok ? "success" : "error"), p.ok) {
|
|
3318
|
+
const R = new CustomEvent("submit:success", {
|
|
3319
|
+
detail: { res: p, body: v }
|
|
3304
3320
|
});
|
|
3305
3321
|
if (t.current) {
|
|
3306
|
-
if (t.current.dispatchEvent(
|
|
3322
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
3307
3323
|
return;
|
|
3308
3324
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3309
3325
|
}
|
|
@@ -3317,20 +3333,20 @@ function Yn(e) {
|
|
|
3317
3333
|
location.href = e.successUrl;
|
|
3318
3334
|
}
|
|
3319
3335
|
},
|
|
3320
|
-
(
|
|
3321
|
-
const
|
|
3322
|
-
detail: { error:
|
|
3336
|
+
(p) => {
|
|
3337
|
+
const v = new CustomEvent("submit:error", {
|
|
3338
|
+
detail: { error: p }
|
|
3323
3339
|
});
|
|
3324
|
-
t.current && (t.current.dispatchEvent(
|
|
3340
|
+
t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (r(p), i("error"));
|
|
3325
3341
|
}
|
|
3326
3342
|
);
|
|
3327
3343
|
}
|
|
3328
3344
|
}
|
|
3329
|
-
return /* @__PURE__ */
|
|
3345
|
+
return /* @__PURE__ */ D(w, { children: [
|
|
3330
3346
|
" ",
|
|
3331
|
-
/* @__PURE__ */ s("style", { children: ".pre-
|
|
3347
|
+
/* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
|
|
3332
3348
|
" ",
|
|
3333
|
-
/* @__PURE__ */
|
|
3349
|
+
/* @__PURE__ */ D(
|
|
3334
3350
|
"form",
|
|
3335
3351
|
{
|
|
3336
3352
|
validate: e.validate,
|
|
@@ -3338,29 +3354,29 @@ function Yn(e) {
|
|
|
3338
3354
|
action: !e.sendWithJs && e.action,
|
|
3339
3355
|
method: e.method,
|
|
3340
3356
|
name: e.name,
|
|
3341
|
-
onSubmit: (
|
|
3357
|
+
onSubmit: (u) => g(u),
|
|
3342
3358
|
...e.attributes,
|
|
3343
3359
|
children: [
|
|
3344
3360
|
e.children,
|
|
3345
|
-
|
|
3346
|
-
|
|
3361
|
+
d() === "error" ? /* @__PURE__ */ s(
|
|
3362
|
+
M,
|
|
3347
3363
|
{
|
|
3348
3364
|
path: "errorMessage",
|
|
3349
3365
|
blocks: e.errorMessage,
|
|
3350
3366
|
context: e.builderContext
|
|
3351
3367
|
}
|
|
3352
3368
|
) : null,
|
|
3353
|
-
|
|
3354
|
-
|
|
3369
|
+
d() === "sending" ? /* @__PURE__ */ s(
|
|
3370
|
+
M,
|
|
3355
3371
|
{
|
|
3356
3372
|
path: "sendingMessage",
|
|
3357
3373
|
blocks: e.sendingMessage,
|
|
3358
3374
|
context: e.builderContext
|
|
3359
3375
|
}
|
|
3360
3376
|
) : null,
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3377
|
+
d() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(a) }) : null,
|
|
3378
|
+
d() === "success" ? /* @__PURE__ */ s(
|
|
3379
|
+
M,
|
|
3364
3380
|
{
|
|
3365
3381
|
path: "successMessage",
|
|
3366
3382
|
blocks: e.successMessage,
|
|
@@ -3373,7 +3389,7 @@ function Yn(e) {
|
|
|
3373
3389
|
" "
|
|
3374
3390
|
] });
|
|
3375
3391
|
}
|
|
3376
|
-
const
|
|
3392
|
+
const Zn = {
|
|
3377
3393
|
name: "Form:Input",
|
|
3378
3394
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3379
3395
|
inputs: [
|
|
@@ -3425,12 +3441,12 @@ const Xn = {
|
|
|
3425
3441
|
borderColor: "#ccc"
|
|
3426
3442
|
}
|
|
3427
3443
|
};
|
|
3428
|
-
function
|
|
3429
|
-
return /* @__PURE__ */
|
|
3444
|
+
function ei(e) {
|
|
3445
|
+
return /* @__PURE__ */ Ue(
|
|
3430
3446
|
"input",
|
|
3431
3447
|
{
|
|
3432
3448
|
...e.attributes,
|
|
3433
|
-
key:
|
|
3449
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3434
3450
|
placeholder: e.placeholder,
|
|
3435
3451
|
type: e.type,
|
|
3436
3452
|
name: e.name,
|
|
@@ -3440,7 +3456,7 @@ function Zn(e) {
|
|
|
3440
3456
|
}
|
|
3441
3457
|
);
|
|
3442
3458
|
}
|
|
3443
|
-
const
|
|
3459
|
+
const ti = {
|
|
3444
3460
|
name: "Form:Select",
|
|
3445
3461
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3446
3462
|
defaultStyles: {
|
|
@@ -3483,14 +3499,14 @@ const ei = {
|
|
|
3483
3499
|
static: !0,
|
|
3484
3500
|
noWrap: !0
|
|
3485
3501
|
};
|
|
3486
|
-
function
|
|
3502
|
+
function ni(e) {
|
|
3487
3503
|
var t;
|
|
3488
|
-
return /* @__PURE__ */
|
|
3504
|
+
return /* @__PURE__ */ Ue(
|
|
3489
3505
|
"select",
|
|
3490
3506
|
{
|
|
3491
3507
|
...e.attributes,
|
|
3492
3508
|
value: e.value,
|
|
3493
|
-
key:
|
|
3509
|
+
key: U() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3494
3510
|
defaultValue: e.defaultValue,
|
|
3495
3511
|
name: e.name,
|
|
3496
3512
|
required: e.required
|
|
@@ -3498,7 +3514,7 @@ function ti(e) {
|
|
|
3498
3514
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3499
3515
|
);
|
|
3500
3516
|
}
|
|
3501
|
-
const
|
|
3517
|
+
const ii = {
|
|
3502
3518
|
name: "Form:SubmitButton",
|
|
3503
3519
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3504
3520
|
defaultStyles: {
|
|
@@ -3524,7 +3540,7 @@ const ni = {
|
|
|
3524
3540
|
// TODO: defaultChildren
|
|
3525
3541
|
// canHaveChildren: true,
|
|
3526
3542
|
};
|
|
3527
|
-
function
|
|
3543
|
+
function ai(e) {
|
|
3528
3544
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3529
3545
|
}
|
|
3530
3546
|
const ri = {
|
|
@@ -3564,7 +3580,7 @@ const ri = {
|
|
|
3564
3580
|
static: !0,
|
|
3565
3581
|
noWrap: !0
|
|
3566
3582
|
};
|
|
3567
|
-
function
|
|
3583
|
+
function oi(e) {
|
|
3568
3584
|
return /* @__PURE__ */ s(
|
|
3569
3585
|
"textarea",
|
|
3570
3586
|
{
|
|
@@ -3577,8 +3593,7 @@ function ai(e) {
|
|
|
3577
3593
|
}
|
|
3578
3594
|
);
|
|
3579
3595
|
}
|
|
3580
|
-
const
|
|
3581
|
-
// friendlyName?
|
|
3596
|
+
const li = {
|
|
3582
3597
|
name: "Raw:Img",
|
|
3583
3598
|
hideFromInsertMenu: !0,
|
|
3584
3599
|
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",
|
|
@@ -3586,35 +3601,71 @@ const oi = {
|
|
|
3586
3601
|
name: "image",
|
|
3587
3602
|
bubble: !0,
|
|
3588
3603
|
type: "file",
|
|
3589
|
-
allowedFileTypes:
|
|
3604
|
+
allowedFileTypes: ke,
|
|
3590
3605
|
required: !0
|
|
3606
|
+
}, {
|
|
3607
|
+
name: "backgroundSize",
|
|
3608
|
+
type: "text",
|
|
3609
|
+
defaultValue: "cover",
|
|
3610
|
+
enum: [{
|
|
3611
|
+
label: "contain",
|
|
3612
|
+
value: "contain",
|
|
3613
|
+
helperText: "The image should never get cropped"
|
|
3614
|
+
}, {
|
|
3615
|
+
label: "cover",
|
|
3616
|
+
value: "cover",
|
|
3617
|
+
helperText: "The image should fill it's box, cropping when needed"
|
|
3618
|
+
}]
|
|
3619
|
+
}, {
|
|
3620
|
+
name: "backgroundPosition",
|
|
3621
|
+
type: "text",
|
|
3622
|
+
defaultValue: "center",
|
|
3623
|
+
enum: ["center", "top", "left", "right", "bottom", "top left", "top right", "bottom left", "bottom right"]
|
|
3624
|
+
}, {
|
|
3625
|
+
name: "altText",
|
|
3626
|
+
type: "string",
|
|
3627
|
+
helperText: "Text to display when the user has images off"
|
|
3628
|
+
}, {
|
|
3629
|
+
name: "title",
|
|
3630
|
+
type: "string",
|
|
3631
|
+
helperText: "Text to display when hovering over the asset"
|
|
3632
|
+
}, {
|
|
3633
|
+
name: "aspectRatio",
|
|
3634
|
+
type: "number",
|
|
3635
|
+
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",
|
|
3636
|
+
advanced: !0,
|
|
3637
|
+
defaultValue: 0.7041
|
|
3591
3638
|
}],
|
|
3592
|
-
noWrap: !0
|
|
3593
|
-
static: !0
|
|
3639
|
+
noWrap: !0
|
|
3594
3640
|
};
|
|
3595
|
-
function
|
|
3641
|
+
function si(e) {
|
|
3642
|
+
var n;
|
|
3596
3643
|
function t() {
|
|
3597
|
-
const
|
|
3598
|
-
|
|
3599
|
-
|
|
3644
|
+
const i = {
|
|
3645
|
+
...e.attributes,
|
|
3646
|
+
[K()]: `builder-raw-img ${e.attributes[K()] || ""}`
|
|
3647
|
+
};
|
|
3648
|
+
return delete i.style, i;
|
|
3600
3649
|
}
|
|
3601
3650
|
return /* @__PURE__ */ s(
|
|
3602
3651
|
"img",
|
|
3603
3652
|
{
|
|
3604
3653
|
loading: "lazy",
|
|
3605
|
-
style: {
|
|
3606
|
-
objectFit: e.backgroundSize || "cover",
|
|
3607
|
-
objectPosition: e.backgroundPosition || "center"
|
|
3608
|
-
},
|
|
3609
3654
|
alt: e.altText,
|
|
3655
|
+
title: e.title,
|
|
3610
3656
|
src: e.imgSrc || e.image,
|
|
3611
|
-
|
|
3612
|
-
|
|
3657
|
+
...t(),
|
|
3658
|
+
style: {
|
|
3659
|
+
objectFit: e.backgroundSize || "cover",
|
|
3660
|
+
objectPosition: e.backgroundPosition || "center",
|
|
3661
|
+
aspectRatio: e.aspectRatio || void 0,
|
|
3662
|
+
...((n = e.attributes) == null ? void 0 : n.style) || {}
|
|
3663
|
+
}
|
|
3613
3664
|
},
|
|
3614
|
-
|
|
3665
|
+
U() && e.imgSrc || "default-key"
|
|
3615
3666
|
);
|
|
3616
3667
|
}
|
|
3617
|
-
const
|
|
3668
|
+
const ci = {
|
|
3618
3669
|
name: "Video",
|
|
3619
3670
|
canHaveChildren: !0,
|
|
3620
3671
|
defaultStyles: {
|
|
@@ -3625,14 +3676,14 @@ const si = {
|
|
|
3625
3676
|
inputs: [{
|
|
3626
3677
|
name: "video",
|
|
3627
3678
|
type: "file",
|
|
3628
|
-
allowedFileTypes:
|
|
3679
|
+
allowedFileTypes: An,
|
|
3629
3680
|
bubble: !0,
|
|
3630
3681
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3631
3682
|
required: !0
|
|
3632
3683
|
}, {
|
|
3633
3684
|
name: "posterImage",
|
|
3634
3685
|
type: "file",
|
|
3635
|
-
allowedFileTypes:
|
|
3686
|
+
allowedFileTypes: ke,
|
|
3636
3687
|
helperText: "Image to show before the video plays"
|
|
3637
3688
|
}, {
|
|
3638
3689
|
name: "autoPlay",
|
|
@@ -3699,9 +3750,9 @@ const si = {
|
|
|
3699
3750
|
builderBlock: !0
|
|
3700
3751
|
}
|
|
3701
3752
|
};
|
|
3702
|
-
function
|
|
3703
|
-
var
|
|
3704
|
-
const t =
|
|
3753
|
+
function ui(e) {
|
|
3754
|
+
var o, l, c, d, h, g, u;
|
|
3755
|
+
const t = z(null);
|
|
3705
3756
|
function n() {
|
|
3706
3757
|
return {
|
|
3707
3758
|
...e.autoPlay === !0 ? {
|
|
@@ -3726,32 +3777,32 @@ function ci(e) {
|
|
|
3726
3777
|
...n()
|
|
3727
3778
|
};
|
|
3728
3779
|
}
|
|
3729
|
-
const [
|
|
3780
|
+
const [a, r] = k(() => {
|
|
3730
3781
|
});
|
|
3731
|
-
return
|
|
3782
|
+
return N(() => {
|
|
3732
3783
|
if (e.lazyLoad) {
|
|
3733
|
-
const
|
|
3734
|
-
|
|
3735
|
-
if (!
|
|
3784
|
+
const x = new IntersectionObserver(function(f) {
|
|
3785
|
+
f.forEach(function(m) {
|
|
3786
|
+
if (!m.isIntersecting)
|
|
3736
3787
|
return;
|
|
3737
|
-
const
|
|
3788
|
+
const y = m.target;
|
|
3738
3789
|
try {
|
|
3739
|
-
Array.from(
|
|
3740
|
-
(
|
|
3741
|
-
).forEach((
|
|
3742
|
-
const S =
|
|
3743
|
-
S && (
|
|
3744
|
-
}),
|
|
3745
|
-
} catch (
|
|
3746
|
-
console.error("Error loading lazy video:",
|
|
3790
|
+
Array.from(y.children).filter(
|
|
3791
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3792
|
+
).forEach((b) => {
|
|
3793
|
+
const S = b.dataset.src;
|
|
3794
|
+
S && (b.src = S);
|
|
3795
|
+
}), y.load(), x.unobserve(y);
|
|
3796
|
+
} catch (b) {
|
|
3797
|
+
console.error("Error loading lazy video:", b);
|
|
3747
3798
|
}
|
|
3748
3799
|
});
|
|
3749
3800
|
});
|
|
3750
|
-
t.current &&
|
|
3801
|
+
t.current && x.observe(t.current), r(x);
|
|
3751
3802
|
}
|
|
3752
|
-
}, []),
|
|
3753
|
-
|
|
3754
|
-
}, []), /* @__PURE__ */
|
|
3803
|
+
}, []), N(() => () => {
|
|
3804
|
+
a && a.disconnect();
|
|
3805
|
+
}, []), /* @__PURE__ */ D(
|
|
3755
3806
|
"div",
|
|
3756
3807
|
{
|
|
3757
3808
|
style: {
|
|
@@ -3768,7 +3819,7 @@ function ci(e) {
|
|
|
3768
3819
|
style: {
|
|
3769
3820
|
width: "100%",
|
|
3770
3821
|
height: "100%",
|
|
3771
|
-
...(
|
|
3822
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
3772
3823
|
objectFit: e.fit,
|
|
3773
3824
|
objectPosition: e.position,
|
|
3774
3825
|
// Hack to get object fit to work as expected and
|
|
@@ -3803,7 +3854,7 @@ function ci(e) {
|
|
|
3803
3854
|
}
|
|
3804
3855
|
}
|
|
3805
3856
|
) : null,
|
|
3806
|
-
(
|
|
3857
|
+
(h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3807
3858
|
"div",
|
|
3808
3859
|
{
|
|
3809
3860
|
style: {
|
|
@@ -3814,7 +3865,7 @@ function ci(e) {
|
|
|
3814
3865
|
children: e.children
|
|
3815
3866
|
}
|
|
3816
3867
|
) : null,
|
|
3817
|
-
(
|
|
3868
|
+
(u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3818
3869
|
"div",
|
|
3819
3870
|
{
|
|
3820
3871
|
style: {
|
|
@@ -3835,67 +3886,67 @@ function ci(e) {
|
|
|
3835
3886
|
}
|
|
3836
3887
|
);
|
|
3837
3888
|
}
|
|
3838
|
-
const
|
|
3839
|
-
component:
|
|
3840
|
-
...
|
|
3889
|
+
const di = () => [{
|
|
3890
|
+
component: qn,
|
|
3891
|
+
...Mn
|
|
3841
3892
|
}, {
|
|
3842
|
-
component:
|
|
3843
|
-
...
|
|
3893
|
+
component: Jn,
|
|
3894
|
+
...jn
|
|
3844
3895
|
}, {
|
|
3845
|
-
component:
|
|
3846
|
-
...
|
|
3896
|
+
component: Xn,
|
|
3897
|
+
...Gn
|
|
3847
3898
|
}, {
|
|
3848
|
-
component:
|
|
3849
|
-
...
|
|
3899
|
+
component: ei,
|
|
3900
|
+
...Zn
|
|
3850
3901
|
}, {
|
|
3851
|
-
component:
|
|
3852
|
-
...
|
|
3902
|
+
component: ai,
|
|
3903
|
+
...ii
|
|
3853
3904
|
}, {
|
|
3854
|
-
component:
|
|
3855
|
-
...
|
|
3905
|
+
component: ni,
|
|
3906
|
+
...ti
|
|
3856
3907
|
}, {
|
|
3857
|
-
component:
|
|
3908
|
+
component: oi,
|
|
3858
3909
|
...ri
|
|
3859
3910
|
}, {
|
|
3860
|
-
component:
|
|
3861
|
-
...
|
|
3862
|
-
}, {
|
|
3863
|
-
component: ci,
|
|
3864
|
-
...si
|
|
3865
|
-
}], Be = () => [{
|
|
3866
|
-
component: St,
|
|
3867
|
-
...En
|
|
3911
|
+
component: si,
|
|
3912
|
+
...li
|
|
3868
3913
|
}, {
|
|
3869
|
-
component:
|
|
3914
|
+
component: ui,
|
|
3915
|
+
...ci
|
|
3916
|
+
}], Ne = () => [{
|
|
3917
|
+
component: kt,
|
|
3870
3918
|
...Rn
|
|
3871
3919
|
}, {
|
|
3872
3920
|
component: un,
|
|
3873
3921
|
...Pn
|
|
3874
3922
|
}, {
|
|
3875
|
-
component:
|
|
3876
|
-
...
|
|
3923
|
+
component: dn,
|
|
3924
|
+
...Vn
|
|
3877
3925
|
}, {
|
|
3878
3926
|
component: hn,
|
|
3879
|
-
|
|
3927
|
+
...Bn
|
|
3880
3928
|
}, {
|
|
3881
|
-
component:
|
|
3929
|
+
component: bn,
|
|
3882
3930
|
...Wn
|
|
3883
3931
|
}, {
|
|
3884
|
-
component:
|
|
3885
|
-
...
|
|
3932
|
+
component: Fn,
|
|
3933
|
+
...Dn
|
|
3886
3934
|
}, {
|
|
3887
|
-
component:
|
|
3888
|
-
...
|
|
3889
|
-
},
|
|
3890
|
-
component:
|
|
3891
|
-
...
|
|
3935
|
+
component: Di,
|
|
3936
|
+
...Ln
|
|
3937
|
+
}, {
|
|
3938
|
+
component: Hn,
|
|
3939
|
+
...Un
|
|
3940
|
+
}, ...it.includes(F) ? [{
|
|
3941
|
+
component: $n,
|
|
3942
|
+
...Nn
|
|
3892
3943
|
}] : [], {
|
|
3893
|
-
component:
|
|
3944
|
+
component: _n,
|
|
3894
3945
|
...On
|
|
3895
3946
|
}, {
|
|
3896
|
-
component:
|
|
3897
|
-
...
|
|
3898
|
-
}, ...
|
|
3947
|
+
component: En,
|
|
3948
|
+
...wn
|
|
3949
|
+
}, ...di()], mi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3899
3950
|
function getAndSetVariantId() {
|
|
3900
3951
|
function setCookie(name, value, days) {
|
|
3901
3952
|
let expires = '';
|
|
@@ -3954,7 +4005,7 @@ const ui = () => [{
|
|
|
3954
4005
|
}).join('');
|
|
3955
4006
|
styleEl.innerHTML = newStyleStr;
|
|
3956
4007
|
}
|
|
3957
|
-
}`,
|
|
4008
|
+
}`, fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3958
4009
|
if (!navigator.cookieEnabled) {
|
|
3959
4010
|
return;
|
|
3960
4011
|
}
|
|
@@ -3988,29 +4039,29 @@ const ui = () => [{
|
|
|
3988
4039
|
thisScriptEl?.remove();
|
|
3989
4040
|
}
|
|
3990
4041
|
return;
|
|
3991
|
-
}`, rt = "builderIoAbTest",
|
|
4042
|
+
}`, rt = "builderIoAbTest", ot = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3992
4043
|
...t,
|
|
3993
4044
|
testVariationId: t.id,
|
|
3994
4045
|
id: e == null ? void 0 : e.id
|
|
3995
|
-
})),
|
|
4046
|
+
})), hi = ({
|
|
3996
4047
|
canTrack: e,
|
|
3997
4048
|
content: t
|
|
3998
|
-
}) => !(!(ae(t).length > 0) || !e ||
|
|
3999
|
-
window.${rt} = ${
|
|
4000
|
-
window.${
|
|
4001
|
-
`,
|
|
4049
|
+
}) => !(!(ae(t).length > 0) || !e || G()), bi = (e) => e === "react" || e === "reactNative", gi = F === "angular", lt = bi(F), yi = () => `
|
|
4050
|
+
window.${rt} = ${mi}
|
|
4051
|
+
window.${ot} = ${fi}
|
|
4052
|
+
`, pi = (e, t) => `
|
|
4002
4053
|
window.${rt}(
|
|
4003
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4004
|
-
)`,
|
|
4054
|
+
"${t}",${JSON.stringify(e)}, ${lt}, ${gi}
|
|
4055
|
+
)`, vi = ({
|
|
4005
4056
|
contentId: e,
|
|
4006
4057
|
variationId: t
|
|
4007
|
-
}) => `window.${
|
|
4008
|
-
"${t}", "${e}", ${
|
|
4058
|
+
}) => `window.${ot}(
|
|
4059
|
+
"${t}", "${e}", ${lt}
|
|
4009
4060
|
)`;
|
|
4010
|
-
function
|
|
4061
|
+
function $e(e) {
|
|
4011
4062
|
return Math.round(e * 1e3) / 1e3;
|
|
4012
4063
|
}
|
|
4013
|
-
const
|
|
4064
|
+
const xi = (e, t, n = !0) => {
|
|
4014
4065
|
if (!(e instanceof HTMLElement))
|
|
4015
4066
|
return null;
|
|
4016
4067
|
let i = n ? e : e.parentElement;
|
|
@@ -4021,39 +4072,39 @@ const vi = (e, t, n = !0) => {
|
|
|
4021
4072
|
return i;
|
|
4022
4073
|
} while (i = i.parentElement);
|
|
4023
4074
|
return null;
|
|
4024
|
-
},
|
|
4075
|
+
}, Si = (e) => xi(e, (t) => {
|
|
4025
4076
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4026
4077
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4027
|
-
}),
|
|
4078
|
+
}), We = ({
|
|
4028
4079
|
event: e,
|
|
4029
4080
|
target: t
|
|
4030
4081
|
}) => {
|
|
4031
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left,
|
|
4082
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = $e(i / n.width), o = $e(a / n.height);
|
|
4032
4083
|
return {
|
|
4033
|
-
x:
|
|
4034
|
-
y:
|
|
4084
|
+
x: r,
|
|
4085
|
+
y: o
|
|
4035
4086
|
};
|
|
4036
|
-
},
|
|
4037
|
-
const t = e.target, n = t &&
|
|
4087
|
+
}, ki = (e) => {
|
|
4088
|
+
const t = e.target, n = t && Si(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4038
4089
|
return {
|
|
4039
4090
|
targetBuilderElement: i || void 0,
|
|
4040
4091
|
metadata: {
|
|
4041
|
-
targetOffset: t ?
|
|
4092
|
+
targetOffset: t ? We({
|
|
4042
4093
|
event: e,
|
|
4043
4094
|
target: t
|
|
4044
4095
|
}) : void 0,
|
|
4045
|
-
builderTargetOffset: n ?
|
|
4096
|
+
builderTargetOffset: n ? We({
|
|
4046
4097
|
event: e,
|
|
4047
4098
|
target: n
|
|
4048
4099
|
}) : void 0,
|
|
4049
4100
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
4050
4101
|
}
|
|
4051
4102
|
};
|
|
4052
|
-
},
|
|
4053
|
-
var
|
|
4054
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
4055
|
-
let
|
|
4056
|
-
if (i && t && n && (
|
|
4103
|
+
}, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(F) && (U() || oe()), Ti = (e) => {
|
|
4104
|
+
var r, o;
|
|
4105
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
4106
|
+
let a = "";
|
|
4107
|
+
if (i && t && n && (a += `
|
|
4057
4108
|
@font-face {
|
|
4058
4109
|
font-family: "${t}";
|
|
4059
4110
|
src: local("${n}"), url('${i}') format('woff2');
|
|
@@ -4064,26 +4115,26 @@ font-weight: 400;
|
|
|
4064
4115
|
for (const l in e.files) {
|
|
4065
4116
|
if (!(String(Number(l)) === l))
|
|
4066
4117
|
continue;
|
|
4067
|
-
const
|
|
4068
|
-
|
|
4118
|
+
const d = e.files[l];
|
|
4119
|
+
d && d !== i && (a += `
|
|
4069
4120
|
@font-face {
|
|
4070
4121
|
font-family: "${t}";
|
|
4071
|
-
src: url('${
|
|
4122
|
+
src: url('${d}') format('woff2');
|
|
4072
4123
|
font-display: fallback;
|
|
4073
4124
|
font-weight: ${l};
|
|
4074
4125
|
}
|
|
4075
4126
|
`.trim());
|
|
4076
4127
|
}
|
|
4077
|
-
return
|
|
4078
|
-
},
|
|
4128
|
+
return a;
|
|
4129
|
+
}, Ii = ({
|
|
4079
4130
|
customFonts: e
|
|
4080
4131
|
}) => {
|
|
4081
4132
|
var t;
|
|
4082
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4083
|
-
},
|
|
4133
|
+
return ((t = e == null ? void 0 : e.map((n) => Ti(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4134
|
+
}, wi = ({
|
|
4084
4135
|
cssCode: e,
|
|
4085
4136
|
contentId: t
|
|
4086
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4137
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ei = `
|
|
4087
4138
|
.builder-button {
|
|
4088
4139
|
all: unset;
|
|
4089
4140
|
}
|
|
@@ -4100,154 +4151,162 @@ font-weight: ${l};
|
|
|
4100
4151
|
text-align: inherit;
|
|
4101
4152
|
font-family: inherit;
|
|
4102
4153
|
}
|
|
4103
|
-
`,
|
|
4104
|
-
function
|
|
4105
|
-
var
|
|
4106
|
-
const t =
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4154
|
+
`, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
|
|
4155
|
+
function Vi(e) {
|
|
4156
|
+
var H, q, p;
|
|
4157
|
+
const t = z(null);
|
|
4158
|
+
k(() => !1), k(
|
|
4159
|
+
() => e.builderContextSignal
|
|
4160
|
+
);
|
|
4161
|
+
const [n, i] = k(() => null), [a, r] = k(() => "");
|
|
4162
|
+
function o(v, V) {
|
|
4163
|
+
var $, R;
|
|
4164
|
+
const A = {
|
|
4111
4165
|
...e.builderContextSignal.rootState,
|
|
4112
|
-
...
|
|
4166
|
+
...v
|
|
4113
4167
|
};
|
|
4114
|
-
e.builderContextSignal.rootSetState ? (
|
|
4115
|
-
...
|
|
4116
|
-
rootState:
|
|
4168
|
+
e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
|
|
4169
|
+
...P,
|
|
4170
|
+
rootState: A
|
|
4171
|
+
})), e.builderContextSignal.rootSetState ? e.builderContextSignal.rootSetState(A) : e.setBuilderContextSignal((P) => ({
|
|
4172
|
+
...P,
|
|
4173
|
+
rootState: A
|
|
4117
4174
|
}));
|
|
4118
4175
|
}
|
|
4119
|
-
function
|
|
4120
|
-
var
|
|
4121
|
-
const
|
|
4176
|
+
function l(v, V) {
|
|
4177
|
+
var $, R, P, I, B;
|
|
4178
|
+
const A = {
|
|
4122
4179
|
...e.builderContextSignal.content,
|
|
4123
|
-
...
|
|
4180
|
+
...v,
|
|
4124
4181
|
data: {
|
|
4125
|
-
...(
|
|
4126
|
-
...
|
|
4182
|
+
...($ = e.builderContextSignal.content) == null ? void 0 : $.data,
|
|
4183
|
+
...v == null ? void 0 : v.data
|
|
4127
4184
|
},
|
|
4128
4185
|
meta: {
|
|
4129
|
-
...(
|
|
4130
|
-
...
|
|
4131
|
-
breakpoints: ((
|
|
4186
|
+
...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
|
|
4187
|
+
...v == null ? void 0 : v.meta,
|
|
4188
|
+
breakpoints: ((P = v == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints) || ((B = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : B.breakpoints)
|
|
4132
4189
|
}
|
|
4133
4190
|
};
|
|
4134
|
-
e.setBuilderContextSignal((
|
|
4135
|
-
...
|
|
4136
|
-
content:
|
|
4191
|
+
e.setBuilderContextSignal((C) => ({
|
|
4192
|
+
...C,
|
|
4193
|
+
content: A
|
|
4137
4194
|
}));
|
|
4138
4195
|
}
|
|
4139
|
-
function
|
|
4196
|
+
function c() {
|
|
4140
4197
|
return e.showContent ? {} : {
|
|
4141
4198
|
hidden: !0,
|
|
4142
4199
|
"aria-hidden": !0
|
|
4143
4200
|
};
|
|
4144
4201
|
}
|
|
4145
|
-
const [
|
|
4202
|
+
const [d, h] = k(
|
|
4146
4203
|
() => e.contentWrapper || "div"
|
|
4147
4204
|
);
|
|
4148
|
-
function
|
|
4149
|
-
return
|
|
4205
|
+
function g(v) {
|
|
4206
|
+
return dt({
|
|
4150
4207
|
model: e.model,
|
|
4151
4208
|
trustedHosts: e.trustedHosts,
|
|
4152
4209
|
callbacks: {
|
|
4153
|
-
configureSdk: (
|
|
4154
|
-
var
|
|
4155
|
-
const { breakpoints:
|
|
4156
|
-
|
|
4210
|
+
configureSdk: (V) => {
|
|
4211
|
+
var R;
|
|
4212
|
+
const { breakpoints: A, contentId: $ } = V;
|
|
4213
|
+
!$ || $ !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || A && l({
|
|
4157
4214
|
meta: {
|
|
4158
|
-
breakpoints:
|
|
4215
|
+
breakpoints: A
|
|
4159
4216
|
}
|
|
4160
4217
|
});
|
|
4161
4218
|
},
|
|
4162
|
-
animation: (
|
|
4163
|
-
|
|
4219
|
+
animation: (V) => {
|
|
4220
|
+
Je(V);
|
|
4164
4221
|
},
|
|
4165
|
-
contentUpdate: (
|
|
4166
|
-
|
|
4222
|
+
contentUpdate: (V, A) => {
|
|
4223
|
+
l(V);
|
|
4167
4224
|
},
|
|
4168
|
-
stateUpdate: (
|
|
4169
|
-
|
|
4225
|
+
stateUpdate: (V, A) => {
|
|
4226
|
+
o(V);
|
|
4170
4227
|
}
|
|
4171
4228
|
}
|
|
4172
|
-
})(
|
|
4229
|
+
})(v);
|
|
4173
4230
|
}
|
|
4174
|
-
const [
|
|
4175
|
-
function
|
|
4176
|
-
var
|
|
4231
|
+
const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
|
|
4232
|
+
function S(v) {
|
|
4233
|
+
var V, A;
|
|
4177
4234
|
if (e.builderContextSignal.content) {
|
|
4178
|
-
const
|
|
4179
|
-
|
|
4235
|
+
const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4236
|
+
Ie({
|
|
4180
4237
|
apiHost: e.apiHost,
|
|
4181
4238
|
type: "click",
|
|
4182
|
-
canTrack:
|
|
4183
|
-
contentId:
|
|
4239
|
+
canTrack: Z(e.canTrack),
|
|
4240
|
+
contentId: R,
|
|
4184
4241
|
apiKey: e.apiKey,
|
|
4185
|
-
variationId:
|
|
4186
|
-
...
|
|
4187
|
-
unique: !
|
|
4242
|
+
variationId: $ !== R ? $ : void 0,
|
|
4243
|
+
...ki(v),
|
|
4244
|
+
unique: !y
|
|
4188
4245
|
});
|
|
4189
4246
|
}
|
|
4190
|
-
|
|
4247
|
+
y || b(!0);
|
|
4191
4248
|
}
|
|
4192
|
-
function
|
|
4193
|
-
var
|
|
4194
|
-
const
|
|
4195
|
-
Object.entries(
|
|
4196
|
-
([
|
|
4197
|
-
if (!
|
|
4249
|
+
function T() {
|
|
4250
|
+
var V, A, $;
|
|
4251
|
+
const v = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
|
|
4252
|
+
Object.entries(v).forEach(
|
|
4253
|
+
([R, P]) => {
|
|
4254
|
+
if (!P)
|
|
4198
4255
|
return;
|
|
4199
|
-
const
|
|
4200
|
-
if (f[
|
|
4256
|
+
const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
|
|
4257
|
+
if (f[R] || u[R] && !U())
|
|
4201
4258
|
return;
|
|
4202
|
-
const
|
|
4203
|
-
f[
|
|
4204
|
-
const
|
|
4259
|
+
const B = I ? P.request.url : P;
|
|
4260
|
+
f[R] = !0;
|
|
4261
|
+
const C = B.replace(
|
|
4205
4262
|
/{{([^}]+)}}/g,
|
|
4206
|
-
(
|
|
4207
|
-
|
|
4208
|
-
code:
|
|
4263
|
+
(O, j) => String(
|
|
4264
|
+
Q({
|
|
4265
|
+
code: j,
|
|
4209
4266
|
context: e.context || {},
|
|
4210
4267
|
localState: void 0,
|
|
4211
4268
|
rootState: e.builderContextSignal.rootState,
|
|
4212
4269
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4213
4270
|
})
|
|
4214
4271
|
)
|
|
4215
|
-
),
|
|
4216
|
-
url:
|
|
4217
|
-
method:
|
|
4218
|
-
headers:
|
|
4219
|
-
body:
|
|
4272
|
+
), W = I ? {
|
|
4273
|
+
url: C,
|
|
4274
|
+
method: P.request.method,
|
|
4275
|
+
headers: P.request.headers,
|
|
4276
|
+
body: P.request.body
|
|
4220
4277
|
} : {
|
|
4221
|
-
url:
|
|
4278
|
+
url: C,
|
|
4222
4279
|
method: "GET"
|
|
4223
4280
|
};
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4281
|
+
Le(JSON.stringify(W));
|
|
4282
|
+
const L = {
|
|
4283
|
+
method: W.method,
|
|
4284
|
+
headers: W.headers,
|
|
4285
|
+
body: W.body
|
|
4286
|
+
};
|
|
4287
|
+
W.method === "GET" && delete L.body, fetch(W.url, L).then((O) => O.json()).then((O) => {
|
|
4288
|
+
o({
|
|
4289
|
+
[R]: O
|
|
4290
|
+
}), u[R] = !0;
|
|
4291
|
+
}).catch((O) => {
|
|
4233
4292
|
console.error(
|
|
4234
4293
|
"error fetching dynamic data",
|
|
4235
|
-
JSON.stringify(
|
|
4236
|
-
|
|
4294
|
+
JSON.stringify(P),
|
|
4295
|
+
O
|
|
4237
4296
|
);
|
|
4238
4297
|
}).finally(() => {
|
|
4239
|
-
f[
|
|
4298
|
+
f[R] = !1;
|
|
4240
4299
|
});
|
|
4241
4300
|
}
|
|
4242
4301
|
);
|
|
4243
4302
|
}
|
|
4244
|
-
function
|
|
4245
|
-
|
|
4303
|
+
function E() {
|
|
4304
|
+
U() && window.dispatchEvent(
|
|
4246
4305
|
new CustomEvent(
|
|
4247
4306
|
"builder:component:stateChange",
|
|
4248
4307
|
{
|
|
4249
4308
|
detail: {
|
|
4250
|
-
state:
|
|
4309
|
+
state: ve(e.builderContextSignal.rootState),
|
|
4251
4310
|
ref: {
|
|
4252
4311
|
name: e.model
|
|
4253
4312
|
}
|
|
@@ -4256,11 +4315,11 @@ function Pi(e) {
|
|
|
4256
4315
|
)
|
|
4257
4316
|
);
|
|
4258
4317
|
}
|
|
4259
|
-
const
|
|
4260
|
-
return
|
|
4261
|
-
var
|
|
4262
|
-
if (
|
|
4263
|
-
|
|
4318
|
+
const _ = z(!1);
|
|
4319
|
+
return _.current || (T(), E(), _.current = !0), N(() => {
|
|
4320
|
+
var v, V, A, $, R;
|
|
4321
|
+
if (G()) {
|
|
4322
|
+
U() && !e.isNestedRender && (window.addEventListener("message", g), st({
|
|
4264
4323
|
...e.locale ? {
|
|
4265
4324
|
locale: e.locale
|
|
4266
4325
|
} : {},
|
|
@@ -4270,102 +4329,110 @@ function Pi(e) {
|
|
|
4270
4329
|
...e.trustedHosts ? {
|
|
4271
4330
|
trustedHosts: e.trustedHosts
|
|
4272
4331
|
} : {},
|
|
4273
|
-
modelName: (
|
|
4332
|
+
modelName: (v = e.model) != null ? v : "",
|
|
4274
4333
|
apiKey: e.apiKey
|
|
4275
4334
|
}), Object.values(
|
|
4276
4335
|
e.builderContextSignal.componentInfos
|
|
4277
|
-
).forEach((
|
|
4278
|
-
var
|
|
4279
|
-
if (!((
|
|
4280
|
-
const
|
|
4281
|
-
(
|
|
4336
|
+
).forEach((C) => {
|
|
4337
|
+
var W, L;
|
|
4338
|
+
if (!((W = C.models) != null && W.length) || C.models.includes(e.model)) {
|
|
4339
|
+
const O = ct(C);
|
|
4340
|
+
(L = window.parent) == null || L.postMessage(O, "*");
|
|
4282
4341
|
}
|
|
4283
4342
|
}), window.addEventListener(
|
|
4284
4343
|
"builder:component:stateChangeListenerActivated",
|
|
4285
|
-
|
|
4344
|
+
E
|
|
4286
4345
|
));
|
|
4287
|
-
const
|
|
4288
|
-
name: `builder.tests.${(
|
|
4346
|
+
const P = e.builderContextSignal.content && Z(e.canTrack), I = ut({
|
|
4347
|
+
name: `builder.tests.${(V = e.builderContextSignal.content) == null ? void 0 : V.id}`,
|
|
4289
4348
|
canTrack: !0
|
|
4290
|
-
}),
|
|
4291
|
-
if (
|
|
4292
|
-
const
|
|
4293
|
-
|
|
4349
|
+
}), B = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
|
|
4350
|
+
if (P && B === I) {
|
|
4351
|
+
const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
|
|
4352
|
+
Ie({
|
|
4294
4353
|
apiHost: e.apiHost,
|
|
4295
4354
|
type: "impression",
|
|
4296
4355
|
canTrack: !0,
|
|
4297
|
-
contentId:
|
|
4298
|
-
apiKey:
|
|
4299
|
-
variationId:
|
|
4356
|
+
contentId: C,
|
|
4357
|
+
apiKey: W,
|
|
4358
|
+
variationId: I !== C ? I : void 0
|
|
4300
4359
|
});
|
|
4301
4360
|
}
|
|
4302
|
-
if (
|
|
4303
|
-
const
|
|
4304
|
-
`builder.overrides.${
|
|
4305
|
-
),
|
|
4306
|
-
(
|
|
4361
|
+
if (oe() && !U()) {
|
|
4362
|
+
const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
|
|
4363
|
+
`builder.overrides.${W}`
|
|
4364
|
+
), O = C.get("apiKey") || C.get("builder.space");
|
|
4365
|
+
(W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Oe({
|
|
4307
4366
|
model: e.model,
|
|
4308
4367
|
apiKey: e.apiKey,
|
|
4309
4368
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4310
|
-
...
|
|
4369
|
+
...W === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
|
|
4311
4370
|
query: {
|
|
4312
4371
|
id: e.context.symbolId
|
|
4313
4372
|
}
|
|
4314
4373
|
} : {}
|
|
4315
|
-
}).then((
|
|
4316
|
-
|
|
4374
|
+
}).then((j) => {
|
|
4375
|
+
j && l(j);
|
|
4317
4376
|
});
|
|
4318
4377
|
}
|
|
4319
4378
|
}
|
|
4320
|
-
}, []),
|
|
4321
|
-
e.content &&
|
|
4322
|
-
}, [e.content]),
|
|
4323
|
-
|
|
4324
|
-
}, [e.builderContextSignal.rootState]),
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
}
|
|
4330
|
-
}, [e.
|
|
4331
|
-
|
|
4379
|
+
}, []), N(() => {
|
|
4380
|
+
e.content && l(e.content);
|
|
4381
|
+
}, [e.content]), N(() => {
|
|
4382
|
+
E();
|
|
4383
|
+
}, [e.builderContextSignal.rootState]), N(() => {
|
|
4384
|
+
if (e.data) {
|
|
4385
|
+
if (n === e.data)
|
|
4386
|
+
return;
|
|
4387
|
+
o(e.data), i(e.data);
|
|
4388
|
+
}
|
|
4389
|
+
}, [e.data]), N(() => {
|
|
4390
|
+
if (e.locale) {
|
|
4391
|
+
if (a === e.locale)
|
|
4392
|
+
return;
|
|
4393
|
+
o({
|
|
4394
|
+
locale: e.locale
|
|
4395
|
+
}), r(e.locale);
|
|
4396
|
+
}
|
|
4397
|
+
}, [e.locale]), N(() => () => {
|
|
4398
|
+
G() && (window.removeEventListener("message", g), window.removeEventListener(
|
|
4332
4399
|
"builder:component:stateChangeListenerActivated",
|
|
4333
|
-
|
|
4400
|
+
E
|
|
4334
4401
|
));
|
|
4335
|
-
}, []), /* @__PURE__ */ s(
|
|
4336
|
-
|
|
4402
|
+
}, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
|
|
4403
|
+
d,
|
|
4337
4404
|
{
|
|
4338
4405
|
ref: t,
|
|
4339
|
-
onClick: (
|
|
4340
|
-
"builder-content-id": (
|
|
4406
|
+
onClick: (v) => S(v),
|
|
4407
|
+
"builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
|
|
4341
4408
|
"builder-model": e.model,
|
|
4342
|
-
className:
|
|
4343
|
-
((
|
|
4409
|
+
className: Pi(
|
|
4410
|
+
((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
|
|
4344
4411
|
),
|
|
4345
4412
|
style: {
|
|
4346
|
-
display: !e.builderContextSignal.content &&
|
|
4413
|
+
display: !e.builderContextSignal.content && De() ? "none" : void 0
|
|
4347
4414
|
},
|
|
4348
|
-
...
|
|
4415
|
+
...c(),
|
|
4349
4416
|
...e.contentWrapperProps,
|
|
4350
4417
|
children: e.children
|
|
4351
4418
|
}
|
|
4352
4419
|
) : null });
|
|
4353
4420
|
}
|
|
4354
|
-
function
|
|
4355
|
-
const [t, n] =
|
|
4421
|
+
function Ai(e) {
|
|
4422
|
+
const [t, n] = k(
|
|
4356
4423
|
() => `
|
|
4357
|
-
${
|
|
4424
|
+
${wi({
|
|
4358
4425
|
cssCode: e.cssCode,
|
|
4359
4426
|
contentId: e.contentId
|
|
4360
4427
|
})}
|
|
4361
|
-
${
|
|
4428
|
+
${Ii({
|
|
4362
4429
|
customFonts: e.customFonts
|
|
4363
4430
|
})}
|
|
4364
|
-
${
|
|
4431
|
+
${Ri(e.isNestedRender)}
|
|
4365
4432
|
`.trim()
|
|
4366
4433
|
);
|
|
4367
4434
|
return /* @__PURE__ */ s(
|
|
4368
|
-
|
|
4435
|
+
te,
|
|
4369
4436
|
{
|
|
4370
4437
|
id: "builderio-content",
|
|
4371
4438
|
styles: t,
|
|
@@ -4373,24 +4440,24 @@ ${Ei(e.isNestedRender)}
|
|
|
4373
4440
|
}
|
|
4374
4441
|
);
|
|
4375
4442
|
}
|
|
4376
|
-
const
|
|
4443
|
+
const Bi = ({
|
|
4377
4444
|
content: e,
|
|
4378
4445
|
data: t,
|
|
4379
4446
|
locale: n
|
|
4380
4447
|
}) => {
|
|
4381
|
-
var
|
|
4382
|
-
const i = {},
|
|
4383
|
-
return (l = (
|
|
4448
|
+
var r, o, l;
|
|
4449
|
+
const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
4450
|
+
return (l = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || l.forEach((c) => {
|
|
4384
4451
|
c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
|
|
4385
4452
|
}), {
|
|
4386
4453
|
...i,
|
|
4387
|
-
...
|
|
4454
|
+
...a,
|
|
4388
4455
|
...t,
|
|
4389
4456
|
...n ? {
|
|
4390
4457
|
locale: n
|
|
4391
4458
|
} : {}
|
|
4392
4459
|
};
|
|
4393
|
-
},
|
|
4460
|
+
}, Ni = ({
|
|
4394
4461
|
content: e,
|
|
4395
4462
|
data: t
|
|
4396
4463
|
}) => e ? {
|
|
@@ -4401,46 +4468,46 @@ const Ai = ({
|
|
|
4401
4468
|
},
|
|
4402
4469
|
meta: e == null ? void 0 : e.meta
|
|
4403
4470
|
} : void 0;
|
|
4404
|
-
function
|
|
4405
|
-
var
|
|
4406
|
-
const [t, n] =
|
|
4471
|
+
function Fe(e) {
|
|
4472
|
+
var d, h, g, u, x, f, m, y, b;
|
|
4473
|
+
const [t, n] = k(
|
|
4407
4474
|
() => {
|
|
4408
|
-
var S,
|
|
4409
|
-
return
|
|
4475
|
+
var S, T;
|
|
4476
|
+
return vi({
|
|
4410
4477
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4411
4478
|
variationId: (S = e.content) == null ? void 0 : S.testVariationId,
|
|
4412
4479
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4413
|
-
contentId: (
|
|
4480
|
+
contentId: (T = e.content) == null ? void 0 : T.id
|
|
4414
4481
|
});
|
|
4415
4482
|
}
|
|
4416
4483
|
);
|
|
4417
4484
|
function i(S) {
|
|
4418
|
-
l((
|
|
4419
|
-
...
|
|
4485
|
+
l((T) => ({
|
|
4486
|
+
...T,
|
|
4420
4487
|
rootState: S
|
|
4421
4488
|
}));
|
|
4422
4489
|
}
|
|
4423
|
-
const [
|
|
4490
|
+
const [a, r] = k(
|
|
4424
4491
|
() => [
|
|
4425
|
-
...
|
|
4492
|
+
...Ne(),
|
|
4426
4493
|
...e.customComponents || []
|
|
4427
4494
|
].reduce(
|
|
4428
|
-
(S, { component:
|
|
4495
|
+
(S, { component: T, ...E }) => ({
|
|
4429
4496
|
...S,
|
|
4430
|
-
[
|
|
4431
|
-
component:
|
|
4432
|
-
...
|
|
4497
|
+
[E.name]: {
|
|
4498
|
+
component: T,
|
|
4499
|
+
...we(E)
|
|
4433
4500
|
}
|
|
4434
4501
|
}),
|
|
4435
4502
|
{}
|
|
4436
4503
|
)
|
|
4437
|
-
), [
|
|
4438
|
-
content:
|
|
4504
|
+
), [o, l] = k(() => ({
|
|
4505
|
+
content: Ni({
|
|
4439
4506
|
content: e.content,
|
|
4440
4507
|
data: e.data
|
|
4441
4508
|
}),
|
|
4442
4509
|
localState: void 0,
|
|
4443
|
-
rootState:
|
|
4510
|
+
rootState: Bi({
|
|
4444
4511
|
content: e.content,
|
|
4445
4512
|
data: e.data,
|
|
4446
4513
|
locale: e.locale
|
|
@@ -4451,12 +4518,12 @@ function De(e) {
|
|
|
4451
4518
|
apiKey: e.apiKey,
|
|
4452
4519
|
apiVersion: e.apiVersion,
|
|
4453
4520
|
componentInfos: [
|
|
4454
|
-
...
|
|
4521
|
+
...Ne(),
|
|
4455
4522
|
...e.customComponents || []
|
|
4456
4523
|
].reduce(
|
|
4457
|
-
(S, { component:
|
|
4524
|
+
(S, { component: T, ...E }) => ({
|
|
4458
4525
|
...S,
|
|
4459
|
-
[
|
|
4526
|
+
[E.name]: we(E)
|
|
4460
4527
|
}),
|
|
4461
4528
|
{}
|
|
4462
4529
|
),
|
|
@@ -4465,31 +4532,31 @@ function De(e) {
|
|
|
4465
4532
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4466
4533
|
nonce: e.nonce || "",
|
|
4467
4534
|
model: e.model
|
|
4468
|
-
})), c =
|
|
4535
|
+
})), c = z(!1);
|
|
4469
4536
|
if (!c.current) {
|
|
4470
|
-
e.apiKey ||
|
|
4537
|
+
e.apiKey || ee.error(
|
|
4471
4538
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4472
4539
|
);
|
|
4473
|
-
const S = (
|
|
4474
|
-
S &&
|
|
4540
|
+
const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
|
|
4541
|
+
S && Q({
|
|
4475
4542
|
code: S,
|
|
4476
4543
|
context: e.context || {},
|
|
4477
4544
|
localState: void 0,
|
|
4478
|
-
rootState:
|
|
4479
|
-
rootSetState: (
|
|
4480
|
-
Object.assign(
|
|
4545
|
+
rootState: o.rootState,
|
|
4546
|
+
rootSetState: (T) => {
|
|
4547
|
+
Object.assign(o.rootState, T);
|
|
4481
4548
|
},
|
|
4482
4549
|
isExpression: !1
|
|
4483
4550
|
}), c.current = !0;
|
|
4484
4551
|
}
|
|
4485
4552
|
return /* @__PURE__ */ s(
|
|
4486
|
-
|
|
4553
|
+
Me.Provider,
|
|
4487
4554
|
{
|
|
4488
4555
|
value: {
|
|
4489
|
-
registeredComponents:
|
|
4556
|
+
registeredComponents: a
|
|
4490
4557
|
},
|
|
4491
|
-
children: /* @__PURE__ */
|
|
4492
|
-
|
|
4558
|
+
children: /* @__PURE__ */ D(
|
|
4559
|
+
Vi,
|
|
4493
4560
|
{
|
|
4494
4561
|
apiHost: e.apiHost,
|
|
4495
4562
|
nonce: e.nonce,
|
|
@@ -4502,7 +4569,7 @@ function De(e) {
|
|
|
4502
4569
|
locale: e.locale,
|
|
4503
4570
|
enrich: e.enrich,
|
|
4504
4571
|
showContent: e.showContent,
|
|
4505
|
-
builderContextSignal:
|
|
4572
|
+
builderContextSignal: o,
|
|
4506
4573
|
contentWrapper: e.contentWrapper,
|
|
4507
4574
|
contentWrapperProps: e.contentWrapperProps,
|
|
4508
4575
|
trustedHosts: e.trustedHosts,
|
|
@@ -4510,7 +4577,7 @@ function De(e) {
|
|
|
4510
4577
|
setBuilderContextSignal: l,
|
|
4511
4578
|
children: [
|
|
4512
4579
|
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
4513
|
-
|
|
4580
|
+
J,
|
|
4514
4581
|
{
|
|
4515
4582
|
id: "builderio-variant-visibility",
|
|
4516
4583
|
scriptStr: t,
|
|
@@ -4518,21 +4585,21 @@ function De(e) {
|
|
|
4518
4585
|
}
|
|
4519
4586
|
) : null,
|
|
4520
4587
|
/* @__PURE__ */ s(
|
|
4521
|
-
|
|
4588
|
+
Ai,
|
|
4522
4589
|
{
|
|
4523
4590
|
nonce: e.nonce || "",
|
|
4524
4591
|
isNestedRender: e.isNestedRender,
|
|
4525
|
-
contentId: (
|
|
4526
|
-
cssCode: (
|
|
4527
|
-
customFonts: (
|
|
4592
|
+
contentId: (g = o.content) == null ? void 0 : g.id,
|
|
4593
|
+
cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
|
|
4594
|
+
customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
|
|
4528
4595
|
}
|
|
4529
4596
|
),
|
|
4530
4597
|
/* @__PURE__ */ s(
|
|
4531
|
-
|
|
4598
|
+
M,
|
|
4532
4599
|
{
|
|
4533
|
-
blocks: (
|
|
4534
|
-
context:
|
|
4535
|
-
registeredComponents:
|
|
4600
|
+
blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
|
|
4601
|
+
context: o,
|
|
4602
|
+
registeredComponents: a,
|
|
4536
4603
|
linkComponent: e.linkComponent
|
|
4537
4604
|
}
|
|
4538
4605
|
)
|
|
@@ -4542,17 +4609,17 @@ function De(e) {
|
|
|
4542
4609
|
}
|
|
4543
4610
|
);
|
|
4544
4611
|
}
|
|
4545
|
-
function
|
|
4546
|
-
var
|
|
4547
|
-
const [t, n] =
|
|
4548
|
-
() =>
|
|
4549
|
-
canTrack:
|
|
4612
|
+
function $i(e) {
|
|
4613
|
+
var o;
|
|
4614
|
+
const [t, n] = k(
|
|
4615
|
+
() => hi({
|
|
4616
|
+
canTrack: Z(e.canTrack),
|
|
4550
4617
|
content: e.content
|
|
4551
4618
|
})
|
|
4552
4619
|
);
|
|
4553
4620
|
function i() {
|
|
4554
4621
|
var l;
|
|
4555
|
-
return
|
|
4622
|
+
return pi(
|
|
4556
4623
|
ae(e.content).map((c) => ({
|
|
4557
4624
|
id: c.testVariationId,
|
|
4558
4625
|
testRatio: c.testRatio
|
|
@@ -4560,58 +4627,58 @@ function Ni(e) {
|
|
|
4560
4627
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4561
4628
|
);
|
|
4562
4629
|
}
|
|
4563
|
-
function
|
|
4630
|
+
function a() {
|
|
4564
4631
|
return ae(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
4565
4632
|
}
|
|
4566
|
-
function
|
|
4633
|
+
function r() {
|
|
4567
4634
|
var l;
|
|
4568
4635
|
return t ? {
|
|
4569
4636
|
...e.content,
|
|
4570
4637
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4571
|
-
} :
|
|
4638
|
+
} : mt({
|
|
4572
4639
|
item: e.content,
|
|
4573
|
-
canTrack:
|
|
4640
|
+
canTrack: Z(e.canTrack)
|
|
4574
4641
|
});
|
|
4575
4642
|
}
|
|
4576
|
-
return
|
|
4577
|
-
}, []), /* @__PURE__ */
|
|
4578
|
-
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */
|
|
4643
|
+
return N(() => {
|
|
4644
|
+
}, []), /* @__PURE__ */ D(w, { children: [
|
|
4645
|
+
!e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
|
|
4579
4646
|
/* @__PURE__ */ s(
|
|
4580
|
-
|
|
4647
|
+
J,
|
|
4581
4648
|
{
|
|
4582
4649
|
id: "builderio-init-variants-fns",
|
|
4583
|
-
scriptStr:
|
|
4650
|
+
scriptStr: yi(),
|
|
4584
4651
|
nonce: e.nonce || ""
|
|
4585
4652
|
}
|
|
4586
4653
|
),
|
|
4587
|
-
|
|
4588
|
-
|
|
4654
|
+
it.includes(F) ? /* @__PURE__ */ s(
|
|
4655
|
+
J,
|
|
4589
4656
|
{
|
|
4590
4657
|
id: "builderio-init-personalization-variants-fns",
|
|
4591
4658
|
nonce: e.nonce || "",
|
|
4592
|
-
scriptStr:
|
|
4659
|
+
scriptStr: Cn()
|
|
4593
4660
|
}
|
|
4594
4661
|
) : null
|
|
4595
4662
|
] }) : null,
|
|
4596
|
-
t ? /* @__PURE__ */
|
|
4663
|
+
t ? /* @__PURE__ */ D(w, { children: [
|
|
4597
4664
|
/* @__PURE__ */ s(
|
|
4598
|
-
|
|
4665
|
+
te,
|
|
4599
4666
|
{
|
|
4600
4667
|
id: "builderio-variants",
|
|
4601
|
-
styles:
|
|
4668
|
+
styles: a(),
|
|
4602
4669
|
nonce: e.nonce || ""
|
|
4603
4670
|
}
|
|
4604
4671
|
),
|
|
4605
4672
|
/* @__PURE__ */ s(
|
|
4606
|
-
|
|
4673
|
+
J,
|
|
4607
4674
|
{
|
|
4608
4675
|
id: "builderio-variants-visibility",
|
|
4609
4676
|
scriptStr: i(),
|
|
4610
4677
|
nonce: e.nonce || ""
|
|
4611
4678
|
}
|
|
4612
4679
|
),
|
|
4613
|
-
(
|
|
4614
|
-
|
|
4680
|
+
(o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
|
|
4681
|
+
Fe,
|
|
4615
4682
|
{
|
|
4616
4683
|
apiHost: e.apiHost,
|
|
4617
4684
|
isNestedRender: e.isNestedRender,
|
|
@@ -4639,12 +4706,12 @@ function Ni(e) {
|
|
|
4639
4706
|
))
|
|
4640
4707
|
] }) : null,
|
|
4641
4708
|
/* @__PURE__ */ s(
|
|
4642
|
-
|
|
4709
|
+
Fe,
|
|
4643
4710
|
{
|
|
4644
4711
|
apiHost: e.apiHost,
|
|
4645
4712
|
nonce: e.nonce,
|
|
4646
4713
|
isNestedRender: e.isNestedRender,
|
|
4647
|
-
content:
|
|
4714
|
+
content: r(),
|
|
4648
4715
|
showContent: !0,
|
|
4649
4716
|
model: e.model,
|
|
4650
4717
|
data: e.data,
|
|
@@ -4666,7 +4733,7 @@ function Ni(e) {
|
|
|
4666
4733
|
)
|
|
4667
4734
|
] });
|
|
4668
4735
|
}
|
|
4669
|
-
const
|
|
4736
|
+
const Wi = async ({
|
|
4670
4737
|
builderContextValue: e,
|
|
4671
4738
|
symbol: t
|
|
4672
4739
|
}) => {
|
|
@@ -4682,11 +4749,11 @@ const $i = async ({
|
|
|
4682
4749
|
}
|
|
4683
4750
|
}
|
|
4684
4751
|
}).catch((n) => {
|
|
4685
|
-
|
|
4752
|
+
ee.error("Could not fetch symbol content: ", n);
|
|
4686
4753
|
});
|
|
4687
4754
|
};
|
|
4688
|
-
function
|
|
4689
|
-
var
|
|
4755
|
+
function Di(e) {
|
|
4756
|
+
var h, g, u, x, f;
|
|
4690
4757
|
function t() {
|
|
4691
4758
|
return "div";
|
|
4692
4759
|
}
|
|
@@ -4694,36 +4761,39 @@ function Wi(e) {
|
|
|
4694
4761
|
return "div";
|
|
4695
4762
|
}
|
|
4696
4763
|
function i() {
|
|
4697
|
-
|
|
4764
|
+
return Object.values(e.builderComponents);
|
|
4765
|
+
}
|
|
4766
|
+
function a() {
|
|
4767
|
+
var m, y;
|
|
4698
4768
|
return [
|
|
4699
|
-
e.attributes[
|
|
4769
|
+
e.attributes[K()],
|
|
4700
4770
|
"builder-symbol",
|
|
4701
|
-
(
|
|
4702
|
-
(
|
|
4771
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
4772
|
+
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4703
4773
|
].filter(Boolean).join(" ");
|
|
4704
4774
|
}
|
|
4705
|
-
const [r, o] =
|
|
4706
|
-
var
|
|
4707
|
-
return (
|
|
4708
|
-
}), [
|
|
4709
|
-
var
|
|
4710
|
-
return (
|
|
4775
|
+
const [r, o] = k(() => {
|
|
4776
|
+
var m;
|
|
4777
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
4778
|
+
}), [l, c] = k(() => {
|
|
4779
|
+
var m;
|
|
4780
|
+
return (m = e.symbol) == null ? void 0 : m.entry;
|
|
4711
4781
|
});
|
|
4712
|
-
function
|
|
4713
|
-
var
|
|
4714
|
-
r &&
|
|
4782
|
+
function d() {
|
|
4783
|
+
var m;
|
|
4784
|
+
r && l === ((m = e.symbol) == null ? void 0 : m.entry) || Wi({
|
|
4715
4785
|
symbol: e.symbol,
|
|
4716
4786
|
builderContextValue: e.builderContext
|
|
4717
|
-
}).then((
|
|
4718
|
-
var
|
|
4719
|
-
|
|
4787
|
+
}).then((y) => {
|
|
4788
|
+
var b;
|
|
4789
|
+
y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
|
|
4720
4790
|
});
|
|
4721
4791
|
}
|
|
4722
|
-
return
|
|
4723
|
-
}, []),
|
|
4724
|
-
|
|
4725
|
-
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className:
|
|
4726
|
-
|
|
4792
|
+
return N(() => {
|
|
4793
|
+
}, []), N(() => {
|
|
4794
|
+
d();
|
|
4795
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: a(), children: /* @__PURE__ */ s(
|
|
4796
|
+
$i,
|
|
4727
4797
|
{
|
|
4728
4798
|
nonce: e.builderContext.nonce,
|
|
4729
4799
|
isNestedRender: !0,
|
|
@@ -4731,16 +4801,16 @@ function Wi(e) {
|
|
|
4731
4801
|
apiKey: e.builderContext.apiKey,
|
|
4732
4802
|
context: {
|
|
4733
4803
|
...e.builderContext.context,
|
|
4734
|
-
symbolId: (
|
|
4804
|
+
symbolId: (h = e.builderBlock) == null ? void 0 : h.id
|
|
4735
4805
|
},
|
|
4736
|
-
customComponents:
|
|
4806
|
+
customComponents: i(),
|
|
4737
4807
|
data: {
|
|
4738
|
-
...(
|
|
4808
|
+
...(g = e.symbol) == null ? void 0 : g.data,
|
|
4739
4809
|
...e.builderContext.localState,
|
|
4740
|
-
...(
|
|
4810
|
+
...(u = r == null ? void 0 : r.data) == null ? void 0 : u.state
|
|
4741
4811
|
},
|
|
4742
4812
|
canTrack: e.builderContext.canTrack,
|
|
4743
|
-
model: (
|
|
4813
|
+
model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
|
|
4744
4814
|
content: r,
|
|
4745
4815
|
linkComponent: e.builderLinkComponent,
|
|
4746
4816
|
blocksWrapper: t(),
|
|
@@ -4749,16 +4819,16 @@ function Wi(e) {
|
|
|
4749
4819
|
) });
|
|
4750
4820
|
}
|
|
4751
4821
|
export {
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4822
|
+
M as Blocks,
|
|
4823
|
+
le as BuilderContext,
|
|
4824
|
+
kt as Button,
|
|
4825
|
+
un as Columns,
|
|
4826
|
+
$i as Content,
|
|
4827
|
+
dn as Fragment,
|
|
4828
|
+
hn as Image,
|
|
4829
|
+
bn as Section,
|
|
4830
|
+
Di as Symbol,
|
|
4831
|
+
Hn as Text,
|
|
4832
|
+
ui as Video,
|
|
4833
|
+
qi as setClientUserAttributes
|
|
4764
4834
|
};
|