@builder.io/sdk-react 3.0.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +32 -32
- package/lib/browser/blocks-exports.mjs +837 -796
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-762e29e0.cjs → server-entry-0e0758cb.cjs} +2 -2
- package/lib/browser/{server-entry-20c79b90.js → server-entry-403d3877.js} +33 -16
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-071aa4f9.cjs → accordion-02a74a7b.cjs} +1 -1
- package/lib/edge/{accordion-22c2c037.js → accordion-46e5b47a.js} +1 -1
- package/lib/edge/{blocks-2989e629.js → blocks-27f4c960.js} +2 -2
- package/lib/edge/{blocks-d3f37507.cjs → blocks-43b7cd64.cjs} +1 -1
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-a2cc6565.cjs → button-b1f2e20e.cjs} +1 -1
- package/lib/edge/{button-2b5270c4.js → button-c26a8cc8.js} +2 -2
- package/lib/edge/{columns-b7240242.cjs → columns-5a3e9ac8.cjs} +1 -1
- package/lib/edge/{columns-21b9be25.js → columns-9a6cd1b4.js} +3 -3
- package/lib/edge/{content-variants-88f4dc64.js → content-variants-3085ec74.js} +291 -286
- package/lib/edge/content-variants-eff73ca9.cjs +134 -0
- package/lib/edge/{form-77687883.cjs → form-bf3ca65d.cjs} +1 -1
- package/lib/edge/{form-d29f3cc0.js → form-f2aa1c12.js} +3 -3
- package/lib/edge/{get-class-prop-name-f597545d.cjs → get-class-prop-name-7cdcaf94.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-dbc5d99c.js → get-class-prop-name-e41a3976.js} +1 -1
- package/lib/edge/{img-fed70928.js → img-2a060e61.js} +1 -1
- package/lib/edge/{img-03f9002b.cjs → img-2c718c5f.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-1e548fd0.cjs → input-213f973c.cjs} +1 -1
- package/lib/edge/{input-083c3c35.js → input-f270ae3b.js} +1 -1
- package/lib/edge/{personalization-container-dde10a09.cjs → personalization-container-b03bc073.cjs} +1 -1
- package/lib/edge/{personalization-container-bcff3433.js → personalization-container-b85b14c3.js} +4 -4
- package/lib/edge/{select-21e33225.cjs → select-d6ff55b2.cjs} +1 -1
- package/lib/edge/{select-9f22c2ba.js → select-e12e1a87.js} +1 -1
- package/lib/edge/{server-entry-43a6f5be.js → server-entry-b94c45af.js} +35 -18
- package/lib/edge/{server-entry-ac35a5c8.cjs → server-entry-d0313f00.cjs} +2 -2
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-ca171e8c.js → slot-2670ac48.js} +3 -3
- package/lib/edge/{slot-a9f5d6c0.cjs → slot-5ee0ac5d.cjs} +1 -1
- package/lib/edge/symbol-7e58faf5.cjs +1 -0
- package/lib/edge/{symbol-8f6ff028.js → symbol-a0b2e083.js} +25 -25
- package/lib/edge/{tabs-880c9088.cjs → tabs-1f475bd4.cjs} +1 -1
- package/lib/edge/{tabs-6b67fca2.js → tabs-931291c4.js} +3 -3
- package/lib/edge/{video-a3f10439.js → video-52df64e2.js} +54 -17
- package/lib/edge/video-cc58dd83.cjs +1 -0
- package/lib/node/blocks-exports.cjs +32 -32
- package/lib/node/blocks-exports.mjs +820 -779
- 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-0b433783.cjs → server-entry-24943b12.cjs} +2 -2
- package/lib/node/{server-entry-6626257d.js → server-entry-a017e97a.js} +33 -16
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-5cb298bf.js → setIvm-0a7e7bf0.js} +1 -1
- package/lib/node/{setIvm-49abbae6.cjs → setIvm-dcd69a69.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-11e8399e.cjs → should-force-browser-runtime-in-node-0ca8d8b1.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-94f1a5b3.js → should-force-browser-runtime-in-node-c51ac820.js} +1 -1
- package/package.json +1 -1
- package/types/components/content-variants/content-variants.types.d.ts +2 -2
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/helpers/subscribe-to-editor.d.ts +15 -13
- package/types/scripts/init-editing.d.ts +3 -1
- package/lib/edge/content-variants-fdd5ee50.cjs +0 -134
- package/lib/edge/symbol-a2015c7e.cjs +0 -1
- package/lib/edge/video-4ecfd08b.cjs +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as O, isEditing as W, isBrowser as
|
|
3
|
-
import { setClientUserAttributes as
|
|
4
|
-
import { jsx as s, Fragment as R, jsxs as
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
2
|
+
import { TARGET as O, isEditing as W, isBrowser as F, getUserAttributes as Je, checkIsDefined as K, logger as Q, isPreviewing as Y, userAttributesService as fe, getDefaultCanTrack as M, logFetch as Ee, registerInsertMenu as Ge, setupBrowserForEditing as Qe, createRegisterComponentMessage as Ye, _track as he, fetchOneEntry as Re, createEditorListener as Xe, serializeIncludingFunctions as ge, handleABTestingSync as Ze } from "./server-entry-403d3877.js";
|
|
3
|
+
import { setClientUserAttributes as ki } from "./server-entry-403d3877.js";
|
|
4
|
+
import { jsx as s, Fragment as R, jsxs as A } from "react/jsx-runtime";
|
|
5
|
+
import * as et from "react";
|
|
6
|
+
import { createContext as Pe, useEffect as B, useState as E, useRef as $, useContext as be, createElement as Ve } from "react";
|
|
7
|
+
const tt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), nt = (e) => typeof e == "string" && tt.has(e.toLowerCase());
|
|
8
8
|
function le(e) {
|
|
9
|
-
return /* @__PURE__ */ s(R, { children:
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: nt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const H = () => {
|
|
12
12
|
switch (O) {
|
|
13
13
|
case "react":
|
|
14
14
|
case "reactNative":
|
|
@@ -22,11 +22,11 @@ const M = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function it(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
29
|
-
[
|
|
29
|
+
[H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
|
|
30
30
|
...e.link ? {
|
|
31
31
|
href: e.link,
|
|
32
32
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -46,7 +46,7 @@ function nt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const se =
|
|
49
|
+
const se = Pe({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const se = Re({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), Be = Pe({ registeredComponents: {} }), Ne = (e, t, n) => {
|
|
65
65
|
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, o) => a != null ? a[o] : a, e);
|
|
66
66
|
return i === void 0 || i === e ? n : i;
|
|
67
|
-
},
|
|
67
|
+
}, at = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,15 +76,15 @@ const se = Re({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
79
|
+
}), ot = () => ({
|
|
80
80
|
isEditing: W(),
|
|
81
|
-
isBrowser:
|
|
82
|
-
isServer:
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
81
|
+
isBrowser: F(),
|
|
82
|
+
isServer: !F(),
|
|
83
|
+
getUserAttributes: () => Je()
|
|
84
|
+
}), rt = (e, {
|
|
85
85
|
isExpression: t = !0
|
|
86
86
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
87
|
-
function
|
|
87
|
+
function Ae({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function Ne({
|
|
|
94
94
|
if (t && a in t)
|
|
95
95
|
return t[a];
|
|
96
96
|
const o = i[a];
|
|
97
|
-
return typeof o == "object" && o !== null ?
|
|
97
|
+
return typeof o == "object" && o !== null ? Ae({
|
|
98
98
|
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -109,7 +109,7 @@ function Ne({
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const pe = ({
|
|
113
113
|
code: e,
|
|
114
114
|
builder: t,
|
|
115
115
|
context: n,
|
|
@@ -118,35 +118,35 @@ const be = ({
|
|
|
118
118
|
rootSetState: o,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = at({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: Ae({
|
|
126
126
|
rootState: r,
|
|
127
127
|
localState: a,
|
|
128
128
|
rootSetState: o
|
|
129
129
|
})
|
|
130
130
|
});
|
|
131
|
-
return new Function(...l.map(([
|
|
131
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function lt() {
|
|
134
134
|
var e;
|
|
135
135
|
return typeof process != "undefined" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const st = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
140
|
var a;
|
|
141
|
-
if (!
|
|
141
|
+
if (!lt())
|
|
142
142
|
return !1;
|
|
143
143
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (a = process.env.NODE_OPTIONS) == null ? void 0 : a.includes("--no-node-snapshot");
|
|
144
144
|
return t && n && !i ? (e && Q.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
145
|
-
},
|
|
145
|
+
}, ct = (e) => (F() || st({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}),
|
|
147
|
+
}), pe(e)), ut = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, mt = (e) => {
|
|
148
148
|
var t, n, i, a, o, r;
|
|
149
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = ut.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = dt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
151
|
function L({
|
|
152
152
|
code: e,
|
|
@@ -159,17 +159,17 @@ function L({
|
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = mt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return Ne({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
|
-
const
|
|
169
|
-
code:
|
|
168
|
+
const d = {
|
|
169
|
+
code: rt(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: ot(),
|
|
173
173
|
context: t,
|
|
174
174
|
event: o,
|
|
175
175
|
rootSetState: a,
|
|
@@ -177,7 +177,7 @@ function L({
|
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ct(d);
|
|
181
181
|
} catch (c) {
|
|
182
182
|
Q.error("Failed code evaluation: " + c.message, {
|
|
183
183
|
code: e
|
|
@@ -185,15 +185,15 @@ function L({
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ft(e, t) {
|
|
189
189
|
var n;
|
|
190
190
|
return {
|
|
191
191
|
...(n = e.component) == null ? void 0 : n.options,
|
|
192
192
|
...e.options,
|
|
193
|
-
...
|
|
193
|
+
...ht(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const ht = (e, t) => {
|
|
197
197
|
var n, i;
|
|
198
198
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
|
|
199
199
|
return {
|
|
@@ -207,7 +207,7 @@ const ft = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function gt(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
@@ -221,40 +221,40 @@ function J(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
223
|
a.has(e) || (a.add(e), Array.isArray(e) ? e.forEach((o, r) => {
|
|
224
|
-
t(o, (
|
|
225
|
-
e[r] =
|
|
224
|
+
t(o, (d) => {
|
|
225
|
+
e[r] = d;
|
|
226
226
|
}), J(o, t, e, r, a);
|
|
227
227
|
}) : Object.entries(e).forEach(([o, r]) => {
|
|
228
|
-
t(r, (
|
|
229
|
-
e[o] =
|
|
228
|
+
t(r, (d) => {
|
|
229
|
+
e[o] = d;
|
|
230
230
|
}), J(r, t, e, o, a);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function We(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function bt(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
240
|
return J(e, (n) => {
|
|
241
|
-
if (
|
|
241
|
+
if (We(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function pt(e, t) {
|
|
248
248
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (J(e, (n, i) => {
|
|
249
249
|
var a;
|
|
250
|
-
|
|
250
|
+
We(n) && i((a = n[t]) != null ? a : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function yt(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && bt((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 = pt(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const ce = (e) => JSON.parse(JSON.stringify(e)),
|
|
257
|
+
const ce = (e) => JSON.parse(JSON.stringify(e)), De = (e, t, n) => {
|
|
258
258
|
if (Object(e) !== e)
|
|
259
259
|
return e;
|
|
260
260
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -272,8 +272,8 @@ function re(e) {
|
|
|
272
272
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = re(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
275
|
+
const vt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), xt = (e) => {
|
|
276
|
+
if (vt) {
|
|
277
277
|
const t = ce(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
@@ -285,7 +285,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t = re(
|
|
288
|
+
const t = re(gt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,7 +298,7 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, St = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
@@ -307,28 +307,28 @@ const yt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), vt = (e) =
|
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const o =
|
|
310
|
+
const o = xt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
|
-
const l = e.bindings[r],
|
|
312
|
+
const l = e.bindings[r], d = L({
|
|
313
313
|
code: l,
|
|
314
314
|
localState: n,
|
|
315
315
|
rootState: i,
|
|
316
316
|
rootSetState: a,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
De(o, r, d);
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function kt({
|
|
324
324
|
block: e,
|
|
325
325
|
context: t,
|
|
326
326
|
localState: n,
|
|
327
327
|
rootState: i,
|
|
328
328
|
rootSetState: a
|
|
329
329
|
}) {
|
|
330
|
-
let o =
|
|
331
|
-
return o = o,
|
|
330
|
+
let o = yt(e, i.locale);
|
|
331
|
+
return o = o, St({
|
|
332
332
|
block: o,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
@@ -337,19 +337,19 @@ function St({
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
const X = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
340
|
+
function Ct(e, t, n = {}) {
|
|
341
341
|
let i, a, o, r = null, l = 0;
|
|
342
|
-
const
|
|
342
|
+
const d = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
344
344
|
};
|
|
345
345
|
return function() {
|
|
346
346
|
const c = Date.now();
|
|
347
347
|
!l && n.leading === !1 && (l = c);
|
|
348
348
|
const h = t - (c - l);
|
|
349
|
-
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(
|
|
349
|
+
return i = this, a = arguments, h <= 0 || h > t ? (r && (clearTimeout(r), r = null), l = c, o = e.apply(i, a), r || (i = a = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, h)), o;
|
|
350
350
|
};
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function q(e, ...t) {
|
|
353
353
|
const n = Object(e);
|
|
354
354
|
for (let i = 1; i < arguments.length; i++) {
|
|
355
355
|
const a = arguments[i];
|
|
@@ -359,73 +359,73 @@ function _(e, ...t) {
|
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Tt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
Oe(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
It(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function $e(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function Fe(e, t) {
|
|
377
|
+
const n = wt(e), i = getComputedStyle(t), a = e.steps[0].styles, o = e.steps[e.steps.length - 1].styles, r = [a, o];
|
|
378
378
|
for (const l of r)
|
|
379
|
-
for (const
|
|
380
|
-
|
|
379
|
+
for (const d of n)
|
|
380
|
+
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function wt(e) {
|
|
383
383
|
const t = [];
|
|
384
384
|
for (const n of e.steps)
|
|
385
385
|
for (const i in n.styles)
|
|
386
386
|
t.indexOf(i) === -1 && t.push(i);
|
|
387
387
|
return t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Oe(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
$e(e.elementId || e.id || "");
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
397
|
-
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
396
|
+
Fe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", q(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
|
+
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), q(n.style, e.steps[1].styles), setTimeout(() => {
|
|
398
398
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
399
399
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
400
400
|
});
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
function
|
|
403
|
+
function It(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
$e(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
410
|
+
Fe(e, n);
|
|
411
411
|
let i = !1, a = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
414
|
-
|
|
414
|
+
q(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
|
|
415
415
|
a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
|
-
})) : e.repeat && i && !a && !l(n) && (i = !1,
|
|
417
|
+
})) : e.repeat && i && !a && !l(n) && (i = !1, q(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Ct(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
423
|
-
const
|
|
424
|
-
return
|
|
423
|
+
const y = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
|
|
424
|
+
return y.bottom > f && y.top < u - f;
|
|
425
425
|
}
|
|
426
|
-
const
|
|
426
|
+
const d = e.steps[0].styles;
|
|
427
427
|
function c() {
|
|
428
|
-
|
|
428
|
+
q(n.style, d);
|
|
429
429
|
}
|
|
430
430
|
c(), setTimeout(() => {
|
|
431
431
|
n.style.transition = `all ${e.duration}s ${X(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -435,42 +435,42 @@ function wt(e) {
|
|
|
435
435
|
}), o();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Le = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${X(n)}: ${i};`;
|
|
441
|
-
}).filter(K),
|
|
442
|
-
`),
|
|
441
|
+
}).filter(K), Et = (e) => Le(e).join(`
|
|
442
|
+
`), _ = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${Et(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Rt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Pt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => Ue(Rt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
467
|
+
function Ue(e) {
|
|
468
468
|
switch (O) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return Le(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,7 +478,7 @@ function Le(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const _e = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Vt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
@@ -488,14 +488,14 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
488
488
|
if (!i)
|
|
489
489
|
return null;
|
|
490
490
|
const a = t[i];
|
|
491
|
-
if (!a ||
|
|
491
|
+
if (!a || _e(a, n)) {
|
|
492
492
|
console.warn(`
|
|
493
493
|
Could not find a registered component named "${i}".
|
|
494
494
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
495
495
|
return;
|
|
496
496
|
} else
|
|
497
497
|
return a;
|
|
498
|
-
},
|
|
498
|
+
}, Bt = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -515,40 +515,40 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
515
515
|
if (!Array.isArray(a))
|
|
516
516
|
return;
|
|
517
517
|
const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
|
|
518
|
-
return a.map((
|
|
518
|
+
return a.map((d, c) => ({
|
|
519
519
|
context: {
|
|
520
520
|
...t,
|
|
521
521
|
localState: {
|
|
522
522
|
...t.localState,
|
|
523
523
|
$index: c,
|
|
524
|
-
$item:
|
|
525
|
-
[r]:
|
|
524
|
+
$item: d,
|
|
525
|
+
[r]: d,
|
|
526
526
|
[`$${r}Index`]: c
|
|
527
527
|
}
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Nt = (e, t) => {
|
|
532
532
|
var n;
|
|
533
533
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
534
534
|
builderLinkComponent: t
|
|
535
535
|
} : {};
|
|
536
|
-
},
|
|
536
|
+
}, At = (e, t, n) => {
|
|
537
537
|
var i;
|
|
538
538
|
return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
|
|
539
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !
|
|
539
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([o, r]) => !_e(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Wt = (e, t) => {
|
|
542
542
|
var n;
|
|
543
543
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
544
544
|
builderBlock: t
|
|
545
545
|
} : {};
|
|
546
|
-
},
|
|
546
|
+
}, Dt = (e, t) => {
|
|
547
547
|
var n;
|
|
548
548
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
549
549
|
builderContext: t
|
|
550
550
|
} : {};
|
|
551
|
-
},
|
|
551
|
+
}, qe = {
|
|
552
552
|
xsmall: {
|
|
553
553
|
min: 0,
|
|
554
554
|
default: 160,
|
|
@@ -569,8 +569,8 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
569
569
|
default: 991,
|
|
570
570
|
max: 1200
|
|
571
571
|
}
|
|
572
|
-
}, ee = (e, t =
|
|
573
|
-
const t = ce(
|
|
572
|
+
}, ee = (e, t = qe) => `@media (max-width: ${t[e].max}px)`, Me = (e) => {
|
|
573
|
+
const t = ce(qe);
|
|
574
574
|
if (!e)
|
|
575
575
|
return t;
|
|
576
576
|
const {
|
|
@@ -579,11 +579,11 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
579
579
|
medium: a
|
|
580
580
|
} = e;
|
|
581
581
|
if (n) {
|
|
582
|
-
const
|
|
582
|
+
const d = Math.floor(n / 2);
|
|
583
583
|
t.xsmall = {
|
|
584
584
|
max: n,
|
|
585
|
-
min:
|
|
586
|
-
default:
|
|
585
|
+
min: d,
|
|
586
|
+
default: d + 1
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
if (!i || !a)
|
|
@@ -608,7 +608,7 @@ const Ue = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
608
608
|
default: l + 1
|
|
609
609
|
}, t;
|
|
610
610
|
};
|
|
611
|
-
function
|
|
611
|
+
function j(e) {
|
|
612
612
|
return /* @__PURE__ */ s(
|
|
613
613
|
"style",
|
|
614
614
|
{
|
|
@@ -618,67 +618,67 @@ function H(e) {
|
|
|
618
618
|
}
|
|
619
619
|
);
|
|
620
620
|
}
|
|
621
|
-
function
|
|
621
|
+
function $t(e) {
|
|
622
622
|
function t() {
|
|
623
623
|
const i = e.block;
|
|
624
624
|
return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
|
-
var
|
|
628
|
-
const i = e.block, a = i.responsiveStyles, o = e.context.content, r =
|
|
629
|
-
((
|
|
630
|
-
), l = !!((
|
|
631
|
-
if (!
|
|
627
|
+
var C, P, w, x, m;
|
|
628
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Me(
|
|
629
|
+
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
|
+
), l = !!((w = (P = o == null ? void 0 : o.meta) == null ? void 0 : P.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, y = a == null ? void 0 : a.xsmall, u = i.id;
|
|
631
|
+
if (!u)
|
|
632
632
|
return "";
|
|
633
|
-
const
|
|
634
|
-
className:
|
|
635
|
-
styles:
|
|
636
|
-
}) : "", f = c ?
|
|
637
|
-
className:
|
|
633
|
+
const v = d ? _({
|
|
634
|
+
className: u,
|
|
635
|
+
styles: d
|
|
636
|
+
}) : "", f = c ? _({
|
|
637
|
+
className: u,
|
|
638
638
|
styles: c,
|
|
639
639
|
mediaQuery: ee(
|
|
640
640
|
"medium",
|
|
641
641
|
r
|
|
642
642
|
)
|
|
643
|
-
}) : "",
|
|
644
|
-
className:
|
|
643
|
+
}) : "", g = h ? _({
|
|
644
|
+
className: u,
|
|
645
645
|
styles: h,
|
|
646
646
|
mediaQuery: ee(
|
|
647
647
|
"small",
|
|
648
648
|
r
|
|
649
649
|
)
|
|
650
|
-
}) : "",
|
|
651
|
-
className:
|
|
652
|
-
styles:
|
|
650
|
+
}) : "", S = y && l ? _({
|
|
651
|
+
className: u,
|
|
652
|
+
styles: y,
|
|
653
653
|
mediaQuery: ee(
|
|
654
654
|
"xsmall",
|
|
655
655
|
r
|
|
656
656
|
)
|
|
657
|
-
}) : "",
|
|
658
|
-
let
|
|
659
|
-
if (
|
|
660
|
-
const p = ((m = (
|
|
661
|
-
|
|
662
|
-
className: `${
|
|
657
|
+
}) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
|
|
658
|
+
let k = "";
|
|
659
|
+
if (b) {
|
|
660
|
+
const p = ((m = (x = b.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
|
|
661
|
+
k = _({
|
|
662
|
+
className: `${u}:hover`,
|
|
663
663
|
styles: {
|
|
664
664
|
...p,
|
|
665
|
-
transition: `all ${
|
|
666
|
-
|
|
665
|
+
transition: `all ${b.duration}s ${X(
|
|
666
|
+
b.easing
|
|
667
667
|
)}`,
|
|
668
|
-
transitionDelay:
|
|
668
|
+
transitionDelay: b.delay ? `${b.delay}s` : "0s"
|
|
669
669
|
}
|
|
670
670
|
}) || "";
|
|
671
671
|
}
|
|
672
672
|
return [
|
|
673
|
-
|
|
673
|
+
v,
|
|
674
674
|
f,
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
675
|
+
g,
|
|
676
|
+
S,
|
|
677
|
+
k
|
|
678
678
|
].join(" ");
|
|
679
679
|
}
|
|
680
680
|
return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
681
|
-
|
|
681
|
+
j,
|
|
682
682
|
{
|
|
683
683
|
id: "builderio-block",
|
|
684
684
|
styles: n(),
|
|
@@ -686,10 +686,10 @@ function Dt(e) {
|
|
|
686
686
|
}
|
|
687
687
|
) }) : null });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Ft(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Ot = (e) => `on${Ft(e)}`, Lt = (e, t) => (n) => L({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -698,14 +698,14 @@ const Ft = (e) => `on${$t(e)}`, Ot = (e, t) => (n) => L({
|
|
|
698
698
|
event: n,
|
|
699
699
|
isExpression: !1
|
|
700
700
|
});
|
|
701
|
-
function
|
|
701
|
+
function He(e) {
|
|
702
702
|
var i;
|
|
703
703
|
const t = {}, n = (i = e.block.actions) != null ? i : {};
|
|
704
704
|
for (const a in n) {
|
|
705
705
|
if (!n.hasOwnProperty(a))
|
|
706
706
|
continue;
|
|
707
707
|
const o = n[a];
|
|
708
|
-
let r =
|
|
708
|
+
let r = Ot(a);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
710
|
switch (O) {
|
|
711
711
|
case "vue":
|
|
@@ -715,16 +715,16 @@ function Me(e) {
|
|
|
715
715
|
r = r.replace("on:", "");
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
t[r] =
|
|
718
|
+
t[r] = Lt(o, e);
|
|
719
719
|
}
|
|
720
720
|
return t;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Ut({
|
|
723
723
|
properties: e
|
|
724
724
|
}) {
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const _t = (e) => ({
|
|
728
728
|
href: e.href
|
|
729
729
|
});
|
|
730
730
|
function ue({
|
|
@@ -733,22 +733,22 @@ function ue({
|
|
|
733
733
|
}) {
|
|
734
734
|
var i;
|
|
735
735
|
const n = {
|
|
736
|
-
...
|
|
736
|
+
..._t(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: Pt({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
|
-
[
|
|
743
|
+
[H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return Ut({
|
|
746
746
|
properties: n,
|
|
747
747
|
context: t,
|
|
748
748
|
block: e
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function qt(e) {
|
|
752
752
|
return /* @__PURE__ */ s(
|
|
753
753
|
le,
|
|
754
754
|
{
|
|
@@ -757,7 +757,7 @@ function _t(e) {
|
|
|
757
757
|
block: e.block,
|
|
758
758
|
context: e.context
|
|
759
759
|
}),
|
|
760
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: He({
|
|
761
761
|
block: e.block,
|
|
762
762
|
rootState: e.context.rootState,
|
|
763
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -769,18 +769,18 @@ function _t(e) {
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
return
|
|
772
|
+
function Mt(e) {
|
|
773
|
+
return B(() => {
|
|
774
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Ht(e) {
|
|
777
777
|
function t() {
|
|
778
778
|
return e.includeBlockProps ? {
|
|
779
779
|
...ue({
|
|
780
780
|
block: e.block,
|
|
781
781
|
context: e.context
|
|
782
782
|
}),
|
|
783
|
-
...
|
|
783
|
+
...He({
|
|
784
784
|
block: e.block,
|
|
785
785
|
rootState: e.context.rootState,
|
|
786
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -790,7 +790,7 @@ function Mt(e) {
|
|
|
790
790
|
} : {};
|
|
791
791
|
}
|
|
792
792
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
-
|
|
793
|
+
Mt,
|
|
794
794
|
{
|
|
795
795
|
load: e.Wrapper.load,
|
|
796
796
|
fallback: e.Wrapper.fallback,
|
|
@@ -800,7 +800,7 @@ function Mt(e) {
|
|
|
800
800
|
}
|
|
801
801
|
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
802
802
|
}
|
|
803
|
-
const
|
|
803
|
+
const jt = ({
|
|
804
804
|
componentOptions: e,
|
|
805
805
|
builderBlock: t,
|
|
806
806
|
context: n,
|
|
@@ -830,15 +830,15 @@ const Ht = ({
|
|
|
830
830
|
includeBlockProps: a
|
|
831
831
|
} : l;
|
|
832
832
|
};
|
|
833
|
-
function
|
|
833
|
+
function ye(e) {
|
|
834
834
|
var i;
|
|
835
835
|
const [t, n] = E(
|
|
836
|
-
() => e.isInteractive ?
|
|
836
|
+
() => e.isInteractive ? Ht : e.componentRef
|
|
837
837
|
);
|
|
838
838
|
return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
839
839
|
t,
|
|
840
840
|
{
|
|
841
|
-
...
|
|
841
|
+
...jt({
|
|
842
842
|
componentOptions: e.componentOptions,
|
|
843
843
|
builderBlock: e.builderBlock,
|
|
844
844
|
context: e.context,
|
|
@@ -861,7 +861,7 @@ function pe(e) {
|
|
|
861
861
|
}
|
|
862
862
|
) }) : null });
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function ve(e) {
|
|
865
865
|
const [t, n] = E(() => e.repeatContext);
|
|
866
866
|
return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
867
867
|
Z,
|
|
@@ -874,9 +874,9 @@ function ye(e) {
|
|
|
874
874
|
) });
|
|
875
875
|
}
|
|
876
876
|
function Z(e) {
|
|
877
|
-
var h,
|
|
877
|
+
var h, y, u, v;
|
|
878
878
|
function t() {
|
|
879
|
-
return
|
|
879
|
+
return Bt({
|
|
880
880
|
block: e.block,
|
|
881
881
|
context: e.context
|
|
882
882
|
});
|
|
@@ -886,10 +886,10 @@ function Z(e) {
|
|
|
886
886
|
update: !1
|
|
887
887
|
}));
|
|
888
888
|
function a() {
|
|
889
|
-
var
|
|
889
|
+
var g;
|
|
890
890
|
if (n.value && !n.update && !Y())
|
|
891
891
|
return n.value;
|
|
892
|
-
const f = (
|
|
892
|
+
const f = (g = e.block.repeat) != null && g.collection ? e.block : kt({
|
|
893
893
|
block: e.block,
|
|
894
894
|
localState: e.context.localState,
|
|
895
895
|
rootState: e.context.rootState,
|
|
@@ -899,38 +899,38 @@ function Z(e) {
|
|
|
899
899
|
return n.value = f, n.update = !1, f;
|
|
900
900
|
}
|
|
901
901
|
function o() {
|
|
902
|
-
return
|
|
902
|
+
return Vt({
|
|
903
903
|
block: a(),
|
|
904
904
|
registeredComponents: e.registeredComponents,
|
|
905
905
|
model: e.context.model
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
function r() {
|
|
909
|
-
var
|
|
910
|
-
return e.block.tagName === "a" || ((
|
|
909
|
+
var g;
|
|
910
|
+
return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
911
911
|
}
|
|
912
912
|
function l() {
|
|
913
|
-
var
|
|
914
|
-
if ((
|
|
915
|
-
return !!((
|
|
913
|
+
var S, b;
|
|
914
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
915
|
+
return !!((b = t == null ? void 0 : t()) != null && b.length);
|
|
916
916
|
const f = "hide" in a() ? a().hide : !1;
|
|
917
917
|
return ("show" in a() ? a().show : !0) && !f;
|
|
918
918
|
}
|
|
919
|
-
function
|
|
920
|
-
var
|
|
921
|
-
return !((
|
|
919
|
+
function d() {
|
|
920
|
+
var g, S;
|
|
921
|
+
return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (S = a().children) != null ? S : [] : [];
|
|
922
922
|
}
|
|
923
923
|
function c() {
|
|
924
|
-
var f,
|
|
924
|
+
var f, g, S, b;
|
|
925
925
|
return {
|
|
926
926
|
blockChildren: (f = a().children) != null ? f : [],
|
|
927
|
-
componentRef: (
|
|
927
|
+
componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
|
|
928
928
|
componentOptions: {
|
|
929
|
-
...
|
|
930
|
-
...
|
|
931
|
-
...
|
|
932
|
-
...
|
|
933
|
-
...
|
|
929
|
+
...ft(a(), e.context),
|
|
930
|
+
...Wt(o(), a()),
|
|
931
|
+
...Dt(o(), e.context),
|
|
932
|
+
...Nt(o(), e.linkComponent),
|
|
933
|
+
...At(
|
|
934
934
|
o(),
|
|
935
935
|
e.registeredComponents,
|
|
936
936
|
e.context.model
|
|
@@ -940,33 +940,33 @@ function Z(e) {
|
|
|
940
940
|
linkComponent: e.linkComponent,
|
|
941
941
|
registeredComponents: e.registeredComponents,
|
|
942
942
|
builderBlock: a(),
|
|
943
|
-
includeBlockProps: ((
|
|
944
|
-
isInteractive: !((
|
|
943
|
+
includeBlockProps: ((S = o == null ? void 0 : o()) == null ? void 0 : S.noWrap) === !0,
|
|
944
|
+
isInteractive: !((b = o == null ? void 0 : o()) != null && b.isRSC && O === "rsc")
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
return
|
|
948
|
-
const f = a().id,
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
...
|
|
947
|
+
return B(() => {
|
|
948
|
+
const f = a().id, g = a().animations;
|
|
949
|
+
g && f && Tt(
|
|
950
|
+
g.map((S) => ({
|
|
951
|
+
...S,
|
|
952
952
|
elementId: f
|
|
953
953
|
}))
|
|
954
954
|
);
|
|
955
|
-
}, []),
|
|
955
|
+
}, []), B(() => {
|
|
956
956
|
n.update = !0;
|
|
957
|
-
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */
|
|
958
|
-
/* @__PURE__ */ s(
|
|
959
|
-
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (
|
|
960
|
-
|
|
957
|
+
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ A(R, { children: [
|
|
958
|
+
/* @__PURE__ */ s($t, { block: a(), context: e.context }),
|
|
959
|
+
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, g) => /* @__PURE__ */ s(
|
|
960
|
+
ve,
|
|
961
961
|
{
|
|
962
962
|
repeatContext: f.context,
|
|
963
963
|
block: f.block,
|
|
964
964
|
registeredComponents: e.registeredComponents,
|
|
965
965
|
linkComponent: e.linkComponent
|
|
966
966
|
},
|
|
967
|
-
|
|
967
|
+
g
|
|
968
968
|
)) }) : /* @__PURE__ */ s(
|
|
969
|
-
|
|
969
|
+
ye,
|
|
970
970
|
{
|
|
971
971
|
componentRef: c().componentRef,
|
|
972
972
|
componentOptions: c().componentOptions,
|
|
@@ -978,24 +978,24 @@ function Z(e) {
|
|
|
978
978
|
includeBlockProps: c().includeBlockProps,
|
|
979
979
|
isInteractive: c().isInteractive
|
|
980
980
|
}
|
|
981
|
-
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (
|
|
982
|
-
|
|
981
|
+
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (u = t()) == null ? void 0 : u.map((f, g) => /* @__PURE__ */ s(
|
|
982
|
+
ve,
|
|
983
983
|
{
|
|
984
984
|
repeatContext: f.context,
|
|
985
985
|
block: f.block,
|
|
986
986
|
registeredComponents: e.registeredComponents,
|
|
987
987
|
linkComponent: e.linkComponent
|
|
988
988
|
},
|
|
989
|
-
|
|
990
|
-
)) }) : /* @__PURE__ */
|
|
991
|
-
|
|
989
|
+
g
|
|
990
|
+
)) }) : /* @__PURE__ */ A(
|
|
991
|
+
qt,
|
|
992
992
|
{
|
|
993
993
|
Wrapper: r(),
|
|
994
994
|
block: a(),
|
|
995
995
|
context: e.context,
|
|
996
996
|
children: [
|
|
997
997
|
/* @__PURE__ */ s(
|
|
998
|
-
|
|
998
|
+
ye,
|
|
999
999
|
{
|
|
1000
1000
|
componentRef: c().componentRef,
|
|
1001
1001
|
componentOptions: c().componentOptions,
|
|
@@ -1008,7 +1008,7 @@ function Z(e) {
|
|
|
1008
1008
|
isInteractive: c().isInteractive
|
|
1009
1009
|
}
|
|
1010
1010
|
),
|
|
1011
|
-
(
|
|
1011
|
+
(y = d()) == null ? void 0 : y.map((f) => /* @__PURE__ */ s(
|
|
1012
1012
|
Z,
|
|
1013
1013
|
{
|
|
1014
1014
|
block: f,
|
|
@@ -1023,8 +1023,8 @@ function Z(e) {
|
|
|
1023
1023
|
) })
|
|
1024
1024
|
] }) : null });
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1027
|
-
const t =
|
|
1026
|
+
function zt(e) {
|
|
1027
|
+
const t = $(null);
|
|
1028
1028
|
function n() {
|
|
1029
1029
|
var r;
|
|
1030
1030
|
return [
|
|
@@ -1065,8 +1065,8 @@ function jt(e) {
|
|
|
1065
1065
|
"*"
|
|
1066
1066
|
));
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1069
|
-
}, []), /* @__PURE__ */
|
|
1068
|
+
return B(() => {
|
|
1069
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
1070
1070
|
/* @__PURE__ */ s(
|
|
1071
1071
|
e.BlocksWrapper,
|
|
1072
1072
|
{
|
|
@@ -1091,9 +1091,9 @@ function jt(e) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function D(e) {
|
|
1093
1093
|
var i, a, o;
|
|
1094
|
-
const t =
|
|
1094
|
+
const t = be(se), n = be(Be);
|
|
1095
1095
|
return /* @__PURE__ */ s(
|
|
1096
|
-
|
|
1096
|
+
zt,
|
|
1097
1097
|
{
|
|
1098
1098
|
blocks: e.blocks,
|
|
1099
1099
|
parent: e.parent,
|
|
@@ -1115,9 +1115,9 @@ function D(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
);
|
|
1117
1117
|
}
|
|
1118
|
-
const
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1118
|
+
const Kt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1119
|
+
function Jt(e) {
|
|
1120
|
+
var g, S;
|
|
1121
1121
|
function t() {
|
|
1122
1122
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1123
1123
|
}
|
|
@@ -1127,28 +1127,28 @@ function Kt(e) {
|
|
|
1127
1127
|
function i() {
|
|
1128
1128
|
return e.stackColumnsAt || "tablet";
|
|
1129
1129
|
}
|
|
1130
|
-
function a(
|
|
1131
|
-
return
|
|
1130
|
+
function a(b) {
|
|
1131
|
+
return b.link ? e.builderLinkComponent || "a" : "div";
|
|
1132
1132
|
}
|
|
1133
|
-
function o(
|
|
1134
|
-
var
|
|
1135
|
-
return ((
|
|
1133
|
+
function o(b) {
|
|
1134
|
+
var k;
|
|
1135
|
+
return ((k = n()[b]) == null ? void 0 : k.width) || 100 / n().length;
|
|
1136
1136
|
}
|
|
1137
|
-
function r(
|
|
1138
|
-
const
|
|
1139
|
-
return `calc(${
|
|
1137
|
+
function r(b) {
|
|
1138
|
+
const k = o(b), C = t() * (n().length - 1) * (k / 100);
|
|
1139
|
+
return `calc(${k}% - ${C}px)`;
|
|
1140
1140
|
}
|
|
1141
1141
|
function l({
|
|
1142
|
-
stackedStyle:
|
|
1143
|
-
desktopStyle:
|
|
1142
|
+
stackedStyle: b,
|
|
1143
|
+
desktopStyle: k
|
|
1144
1144
|
}) {
|
|
1145
|
-
return i() === "tablet" ?
|
|
1145
|
+
return i() === "tablet" ? b : k;
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
stackedStyle:
|
|
1149
|
-
desktopStyle:
|
|
1147
|
+
function d({
|
|
1148
|
+
stackedStyle: b,
|
|
1149
|
+
desktopStyle: k
|
|
1150
1150
|
}) {
|
|
1151
|
-
return i() === "never" ?
|
|
1151
|
+
return i() === "never" ? k : b;
|
|
1152
1152
|
}
|
|
1153
1153
|
function c() {
|
|
1154
1154
|
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -1162,114 +1162,114 @@ function Kt(e) {
|
|
|
1162
1162
|
})
|
|
1163
1163
|
};
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
const
|
|
1165
|
+
function y(b) {
|
|
1166
|
+
const k = b === 0 ? 0 : t(), C = r(b), P = `${k}px`, w = "100%", x = 0;
|
|
1167
1167
|
return {
|
|
1168
1168
|
...{
|
|
1169
1169
|
display: "flex",
|
|
1170
1170
|
flexDirection: "column",
|
|
1171
1171
|
alignItems: "stretch"
|
|
1172
1172
|
},
|
|
1173
|
-
width:
|
|
1173
|
+
width: C,
|
|
1174
1174
|
["marginLeft"]: P,
|
|
1175
|
-
"--column-width-mobile":
|
|
1176
|
-
stackedStyle:
|
|
1177
|
-
desktopStyle:
|
|
1175
|
+
"--column-width-mobile": d({
|
|
1176
|
+
stackedStyle: w,
|
|
1177
|
+
desktopStyle: C
|
|
1178
1178
|
}),
|
|
1179
|
-
"--column-margin-left-mobile":
|
|
1180
|
-
stackedStyle:
|
|
1179
|
+
"--column-margin-left-mobile": d({
|
|
1180
|
+
stackedStyle: x,
|
|
1181
1181
|
desktopStyle: P
|
|
1182
1182
|
}),
|
|
1183
1183
|
"--column-width-tablet": l({
|
|
1184
|
-
stackedStyle:
|
|
1185
|
-
desktopStyle:
|
|
1184
|
+
stackedStyle: w,
|
|
1185
|
+
desktopStyle: C
|
|
1186
1186
|
}),
|
|
1187
1187
|
"--column-margin-left-tablet": l({
|
|
1188
|
-
stackedStyle:
|
|
1188
|
+
stackedStyle: x,
|
|
1189
1189
|
desktopStyle: P
|
|
1190
1190
|
})
|
|
1191
1191
|
};
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
var
|
|
1195
|
-
return
|
|
1196
|
-
((P = (
|
|
1197
|
-
)[
|
|
1193
|
+
function u(b) {
|
|
1194
|
+
var C, P;
|
|
1195
|
+
return Me(
|
|
1196
|
+
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1197
|
+
)[b].max;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1200
|
-
const
|
|
1199
|
+
function v() {
|
|
1200
|
+
const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1201
1201
|
return `
|
|
1202
|
-
@media (max-width: ${
|
|
1202
|
+
@media (max-width: ${u("medium")}px) {
|
|
1203
1203
|
.${e.builderBlock.id}-breakpoints {
|
|
1204
1204
|
flex-direction: var(--flex-dir-tablet);
|
|
1205
1205
|
align-items: stretch;
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
|
-
${
|
|
1208
|
+
${b} {
|
|
1209
1209
|
width: var(--column-width-tablet) !important;
|
|
1210
1210
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1211
1211
|
}
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
@media (max-width: ${
|
|
1214
|
+
@media (max-width: ${u("small")}px) {
|
|
1215
1215
|
.${e.builderBlock.id}-breakpoints {
|
|
1216
1216
|
flex-direction: var(--flex-dir);
|
|
1217
1217
|
align-items: stretch;
|
|
1218
1218
|
}
|
|
1219
1219
|
|
|
1220
|
-
${
|
|
1220
|
+
${b} {
|
|
1221
1221
|
width: var(--column-width-mobile) !important;
|
|
1222
1222
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1223
1223
|
}
|
|
1224
1224
|
},
|
|
1225
1225
|
`;
|
|
1226
1226
|
}
|
|
1227
|
-
function f(
|
|
1227
|
+
function f(b, k) {
|
|
1228
1228
|
return {
|
|
1229
|
-
...
|
|
1230
|
-
href:
|
|
1229
|
+
...b.link ? {
|
|
1230
|
+
href: b.link
|
|
1231
1231
|
} : {},
|
|
1232
|
-
[
|
|
1233
|
-
style:
|
|
1232
|
+
[H()]: "builder-column",
|
|
1233
|
+
style: Ue(y(k))
|
|
1234
1234
|
};
|
|
1235
1235
|
}
|
|
1236
|
-
return /* @__PURE__ */
|
|
1237
|
-
/* @__PURE__ */
|
|
1236
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1237
|
+
/* @__PURE__ */ A(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
|
-
className:
|
|
1240
|
+
className: Kt((g = e.builderBlock) == null ? void 0 : g.id) + " div-a6f3faac",
|
|
1241
1241
|
style: h(),
|
|
1242
1242
|
children: [
|
|
1243
1243
|
/* @__PURE__ */ s(
|
|
1244
|
-
|
|
1244
|
+
j,
|
|
1245
1245
|
{
|
|
1246
1246
|
id: "builderio-columns",
|
|
1247
|
-
styles:
|
|
1247
|
+
styles: v(),
|
|
1248
1248
|
nonce: e.builderContext.nonce
|
|
1249
1249
|
}
|
|
1250
1250
|
),
|
|
1251
|
-
(
|
|
1251
|
+
(S = e.columns) == null ? void 0 : S.map((b, k) => /* @__PURE__ */ s(
|
|
1252
1252
|
le,
|
|
1253
1253
|
{
|
|
1254
|
-
TagName: a(
|
|
1254
|
+
TagName: a(b),
|
|
1255
1255
|
actionAttributes: {},
|
|
1256
|
-
attributes: f(
|
|
1256
|
+
attributes: f(b, k),
|
|
1257
1257
|
children: /* @__PURE__ */ s(
|
|
1258
1258
|
D,
|
|
1259
1259
|
{
|
|
1260
|
-
path: `columns.${
|
|
1260
|
+
path: `columns.${k}.blocks`,
|
|
1261
1261
|
parent: e.builderBlock.id,
|
|
1262
1262
|
context: e.builderContext,
|
|
1263
1263
|
registeredComponents: e.builderComponents,
|
|
1264
1264
|
linkComponent: e.builderLinkComponent,
|
|
1265
|
-
blocks:
|
|
1265
|
+
blocks: b.blocks,
|
|
1266
1266
|
styleProp: {
|
|
1267
1267
|
flexGrow: "1"
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
)
|
|
1271
1271
|
},
|
|
1272
|
-
|
|
1272
|
+
k
|
|
1273
1273
|
))
|
|
1274
1274
|
]
|
|
1275
1275
|
}
|
|
@@ -1280,25 +1280,25 @@ function Kt(e) {
|
|
|
1280
1280
|
}` })
|
|
1281
1281
|
] });
|
|
1282
1282
|
}
|
|
1283
|
-
function
|
|
1283
|
+
function Gt(e) {
|
|
1284
1284
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1285
1285
|
}
|
|
1286
|
-
function
|
|
1286
|
+
function xe(e) {
|
|
1287
1287
|
return e.replace(/http(s)?:/, "");
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1289
|
+
function Qt(e = "", t, n) {
|
|
1290
1290
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1291
1291
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function Yt(e, t) {
|
|
1294
1294
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1295
1295
|
return e;
|
|
1296
1296
|
if (t === "master")
|
|
1297
|
-
return
|
|
1297
|
+
return xe(e);
|
|
1298
1298
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1299
1299
|
if (n) {
|
|
1300
1300
|
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1301
|
-
return
|
|
1301
|
+
return xe(`${i[0]}_${o}${a}`);
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
@@ -1309,26 +1309,26 @@ function te(e) {
|
|
|
1309
1309
|
if (e.match(/builder\.io/)) {
|
|
1310
1310
|
let n = e;
|
|
1311
1311
|
const i = Number(e.split("?width=")[1]);
|
|
1312
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1312
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${Qt(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1313
1313
|
}
|
|
1314
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1314
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Yt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var a, o, r, l,
|
|
1316
|
+
function Xt(e) {
|
|
1317
|
+
var a, o, r, l, d, c;
|
|
1318
1318
|
function t() {
|
|
1319
|
-
var
|
|
1320
|
-
const
|
|
1321
|
-
if (!
|
|
1319
|
+
var u;
|
|
1320
|
+
const y = e.image || e.src;
|
|
1321
|
+
if (!y || // We can auto add srcset for cdn.builder.io and shopify
|
|
1322
1322
|
// images, otherwise you can supply this prop manually
|
|
1323
|
-
!(typeof
|
|
1323
|
+
!(typeof y == "string" && (y.match(/builder\.io/) || y.match(/cdn\.shopify\.com/))))
|
|
1324
1324
|
return e.srcset;
|
|
1325
1325
|
if (!e.noWebp) {
|
|
1326
|
-
if (e.srcset && ((
|
|
1326
|
+
if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
|
|
1327
1327
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1328
|
-
return console.debug("Removed given srcset"), te(
|
|
1328
|
+
return console.debug("Removed given srcset"), te(y);
|
|
1329
1329
|
} else if (e.image && !e.srcset)
|
|
1330
|
-
return te(
|
|
1331
|
-
return te(
|
|
1330
|
+
return te(y);
|
|
1331
|
+
return te(y);
|
|
1332
1332
|
}
|
|
1333
1333
|
}
|
|
1334
1334
|
function n() {
|
|
@@ -1345,9 +1345,9 @@ function Yt(e) {
|
|
|
1345
1345
|
};
|
|
1346
1346
|
return e.aspectRatio ? h : void 0;
|
|
1347
1347
|
}
|
|
1348
|
-
return /* @__PURE__ */
|
|
1349
|
-
/* @__PURE__ */
|
|
1350
|
-
/* @__PURE__ */
|
|
1348
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
1349
|
+
/* @__PURE__ */ A(R, { children: [
|
|
1350
|
+
/* @__PURE__ */ A("picture", { children: [
|
|
1351
1351
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1352
1352
|
/* @__PURE__ */ s(
|
|
1353
1353
|
"img",
|
|
@@ -1378,7 +1378,7 @@ function Yt(e) {
|
|
|
1378
1378
|
}
|
|
1379
1379
|
) : null,
|
|
1380
1380
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1381
|
-
!e.fitContent && ((c = (
|
|
1381
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-9dac2184-2", children: e.children }) : null
|
|
1382
1382
|
] }),
|
|
1383
1383
|
/* @__PURE__ */ s("style", { children: `.img-9dac2184 {
|
|
1384
1384
|
opacity: 1;
|
|
@@ -1399,7 +1399,7 @@ function Yt(e) {
|
|
|
1399
1399
|
}` })
|
|
1400
1400
|
] });
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function Zt(e) {
|
|
1403
1403
|
return /* @__PURE__ */ s(
|
|
1404
1404
|
"section",
|
|
1405
1405
|
{
|
|
@@ -1480,7 +1480,7 @@ const ne = {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
}]
|
|
1483
|
-
},
|
|
1483
|
+
}, en = {
|
|
1484
1484
|
name: "Builder:Accordion",
|
|
1485
1485
|
canHaveChildren: !0,
|
|
1486
1486
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1544,9 +1544,9 @@ const ne = {
|
|
|
1544
1544
|
builderComponents: !0,
|
|
1545
1545
|
builderLinkComponent: !0
|
|
1546
1546
|
}
|
|
1547
|
-
},
|
|
1548
|
-
function
|
|
1549
|
-
var
|
|
1547
|
+
}, Se = (e) => e.toString();
|
|
1548
|
+
function tn(e) {
|
|
1549
|
+
var y;
|
|
1550
1550
|
const [t, n] = E(() => []);
|
|
1551
1551
|
function i() {
|
|
1552
1552
|
return !!(e.grid || e.oneAtATime);
|
|
@@ -1564,7 +1564,7 @@ function en(e) {
|
|
|
1564
1564
|
};
|
|
1565
1565
|
}
|
|
1566
1566
|
function o() {
|
|
1567
|
-
const
|
|
1567
|
+
const v = {
|
|
1568
1568
|
...{
|
|
1569
1569
|
display: "flex",
|
|
1570
1570
|
flexDirection: "column"
|
|
@@ -1573,75 +1573,75 @@ function en(e) {
|
|
|
1573
1573
|
cursor: "pointer"
|
|
1574
1574
|
};
|
|
1575
1575
|
return Object.fromEntries(
|
|
1576
|
-
Object.entries(
|
|
1576
|
+
Object.entries(v).filter(([f, g]) => g !== void 0)
|
|
1577
1577
|
);
|
|
1578
1578
|
}
|
|
1579
|
-
function r(
|
|
1580
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1579
|
+
function r(u) {
|
|
1580
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
|
|
1581
1581
|
}
|
|
1582
|
-
function l(
|
|
1583
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1582
|
+
function l(u) {
|
|
1583
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1586
|
-
let
|
|
1585
|
+
function d() {
|
|
1586
|
+
let u = null;
|
|
1587
1587
|
if (e.grid && t.length && document) {
|
|
1588
1588
|
const f = t[0];
|
|
1589
|
-
let
|
|
1589
|
+
let S = document.querySelector(
|
|
1590
1590
|
`.builder-accordion-title[data-index="${f}"]`
|
|
1591
1591
|
);
|
|
1592
|
-
if (
|
|
1593
|
-
let
|
|
1594
|
-
for (;
|
|
1595
|
-
if (
|
|
1596
|
-
if (
|
|
1592
|
+
if (u = f, S) {
|
|
1593
|
+
let b = S.getBoundingClientRect();
|
|
1594
|
+
for (; S = S && S.nextElementSibling; )
|
|
1595
|
+
if (S) {
|
|
1596
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1597
1597
|
continue;
|
|
1598
|
-
const
|
|
1599
|
-
if (
|
|
1600
|
-
const
|
|
1601
|
-
|
|
1598
|
+
const k = S.getBoundingClientRect();
|
|
1599
|
+
if (k.left > b.left) {
|
|
1600
|
+
const C = parseInt(
|
|
1601
|
+
S.getAttribute("data-index") || "",
|
|
1602
1602
|
10
|
|
1603
1603
|
);
|
|
1604
|
-
isNaN(
|
|
1604
|
+
isNaN(C) || (b = k, u = C);
|
|
1605
1605
|
} else
|
|
1606
1606
|
break;
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
|
-
return typeof
|
|
1610
|
+
return typeof u == "number" && (u = u + 1), u;
|
|
1611
1611
|
}
|
|
1612
1612
|
function c() {
|
|
1613
|
-
const
|
|
1614
|
-
order: typeof
|
|
1613
|
+
const u = {
|
|
1614
|
+
order: typeof d() == "number" ? d() : void 0,
|
|
1615
1615
|
...e.grid && {
|
|
1616
1616
|
width: "100%"
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
return Object.fromEntries(
|
|
1620
|
-
Object.entries(
|
|
1620
|
+
Object.entries(u).filter(([v, f]) => f !== void 0)
|
|
1621
1621
|
);
|
|
1622
1622
|
}
|
|
1623
|
-
function h(
|
|
1624
|
-
t.includes(
|
|
1623
|
+
function h(u) {
|
|
1624
|
+
t.includes(u) ? n(i() ? [] : t.filter((v) => v !== u)) : n(i() ? [u] : t.concat(u));
|
|
1625
1625
|
}
|
|
1626
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (
|
|
1626
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (y = e.items) == null ? void 0 : y.map((u, v) => /* @__PURE__ */ A(et.Fragment, { children: [
|
|
1627
1627
|
/* @__PURE__ */ s(
|
|
1628
1628
|
"div",
|
|
1629
1629
|
{
|
|
1630
|
-
className: r(
|
|
1630
|
+
className: r(v),
|
|
1631
1631
|
style: {
|
|
1632
1632
|
...o(),
|
|
1633
1633
|
...e.grid && {
|
|
1634
1634
|
width: e.gridRowWidth,
|
|
1635
|
-
order:
|
|
1635
|
+
order: d() !== null ? Se(v) : Se(v + 1)
|
|
1636
1636
|
}
|
|
1637
1637
|
},
|
|
1638
|
-
"data-index":
|
|
1639
|
-
onClick: (f) => h(
|
|
1638
|
+
"data-index": v,
|
|
1639
|
+
onClick: (f) => h(v),
|
|
1640
1640
|
children: /* @__PURE__ */ s(
|
|
1641
1641
|
D,
|
|
1642
1642
|
{
|
|
1643
|
-
blocks:
|
|
1644
|
-
path: `items.${
|
|
1643
|
+
blocks: u.title,
|
|
1644
|
+
path: `items.${v}.title`,
|
|
1645
1645
|
parent: e.builderBlock.id,
|
|
1646
1646
|
context: e.builderContext,
|
|
1647
1647
|
registeredComponents: e.builderComponents,
|
|
@@ -1650,16 +1650,16 @@ function en(e) {
|
|
|
1650
1650
|
)
|
|
1651
1651
|
}
|
|
1652
1652
|
),
|
|
1653
|
-
t.includes(
|
|
1653
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1654
1654
|
"div",
|
|
1655
1655
|
{
|
|
1656
|
-
className: l(
|
|
1656
|
+
className: l(v),
|
|
1657
1657
|
style: c(),
|
|
1658
1658
|
children: /* @__PURE__ */ s(
|
|
1659
1659
|
D,
|
|
1660
1660
|
{
|
|
1661
|
-
blocks:
|
|
1662
|
-
path: `items.${
|
|
1661
|
+
blocks: u.detail,
|
|
1662
|
+
path: `items.${v}.detail`,
|
|
1663
1663
|
parent: e.builderBlock.id,
|
|
1664
1664
|
context: e.builderContext,
|
|
1665
1665
|
registeredComponents: e.builderComponents,
|
|
@@ -1668,9 +1668,9 @@ function en(e) {
|
|
|
1668
1668
|
)
|
|
1669
1669
|
}
|
|
1670
1670
|
) : null
|
|
1671
|
-
] },
|
|
1671
|
+
] }, v)) });
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1673
|
+
const nn = {
|
|
1674
1674
|
name: "Core:Button",
|
|
1675
1675
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1676
1676
|
defaultStyles: {
|
|
@@ -1706,7 +1706,7 @@ const tn = {
|
|
|
1706
1706
|
shouldReceiveBuilderProps: {
|
|
1707
1707
|
builderLinkComponent: !0
|
|
1708
1708
|
}
|
|
1709
|
-
},
|
|
1709
|
+
}, an = {
|
|
1710
1710
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1711
1711
|
name: "Columns",
|
|
1712
1712
|
isRSC: !0,
|
|
@@ -1885,7 +1885,7 @@ const tn = {
|
|
|
1885
1885
|
});
|
|
1886
1886
|
}
|
|
1887
1887
|
const n = e.get("columns");
|
|
1888
|
-
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l,
|
|
1888
|
+
Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1889
1889
|
}
|
|
1890
1890
|
}, {
|
|
1891
1891
|
name: "space",
|
|
@@ -1913,13 +1913,13 @@ const tn = {
|
|
|
1913
1913
|
builderComponents: !0,
|
|
1914
1914
|
builderLinkComponent: !0
|
|
1915
1915
|
}
|
|
1916
|
-
},
|
|
1916
|
+
}, on = {
|
|
1917
1917
|
name: "Fragment",
|
|
1918
1918
|
static: !0,
|
|
1919
1919
|
hidden: !0,
|
|
1920
1920
|
canHaveChildren: !0,
|
|
1921
1921
|
noWrap: !0
|
|
1922
|
-
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"],
|
|
1922
|
+
}, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], rn = ["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"], ln = {
|
|
1923
1923
|
name: "Image",
|
|
1924
1924
|
static: !0,
|
|
1925
1925
|
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",
|
|
@@ -1940,15 +1940,15 @@ const tn = {
|
|
|
1940
1940
|
onChange: (e) => {
|
|
1941
1941
|
e.delete("srcset"), e.delete("noWebp");
|
|
1942
1942
|
function n(r, l = 6e4) {
|
|
1943
|
-
return new Promise((
|
|
1943
|
+
return new Promise((d, c) => {
|
|
1944
1944
|
const h = document.createElement("img");
|
|
1945
|
-
let
|
|
1945
|
+
let y = !1;
|
|
1946
1946
|
h.onload = () => {
|
|
1947
|
-
|
|
1948
|
-
}, h.addEventListener("error", (
|
|
1949
|
-
console.warn("Image load failed",
|
|
1947
|
+
y = !0, d(h);
|
|
1948
|
+
}, h.addEventListener("error", (u) => {
|
|
1949
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
1950
1950
|
}), h.src = r, setTimeout(() => {
|
|
1951
|
-
|
|
1951
|
+
y || c(new Error("Image load timed out"));
|
|
1952
1952
|
}, l);
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
@@ -2027,7 +2027,7 @@ const tn = {
|
|
|
2027
2027
|
shouldReceiveBuilderProps: {
|
|
2028
2028
|
builderBlock: !0
|
|
2029
2029
|
}
|
|
2030
|
-
},
|
|
2030
|
+
}, sn = {
|
|
2031
2031
|
name: "PersonalizationContainer",
|
|
2032
2032
|
shouldReceiveBuilderProps: {
|
|
2033
2033
|
builderBlock: !0,
|
|
@@ -2073,7 +2073,7 @@ function G(e) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function cn(e, t, n, i) {
|
|
2077
2077
|
function a(c) {
|
|
2078
2078
|
return typeof c == "string";
|
|
2079
2079
|
}
|
|
@@ -2082,42 +2082,42 @@ function sn(e, t, n, i) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
function r(c, h) {
|
|
2084
2084
|
return (() => {
|
|
2085
|
-
const
|
|
2085
|
+
const u = h.property, v = h.operator;
|
|
2086
2086
|
let f = h.value;
|
|
2087
|
-
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(
|
|
2087
|
+
if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && v))
|
|
2088
2088
|
return !0;
|
|
2089
2089
|
if (Array.isArray(f))
|
|
2090
|
-
return
|
|
2091
|
-
property:
|
|
2092
|
-
operator:
|
|
2093
|
-
value:
|
|
2094
|
-
})) : !!f.find((
|
|
2095
|
-
property:
|
|
2096
|
-
operator:
|
|
2097
|
-
value:
|
|
2090
|
+
return v === "isNot" ? f.every((S) => r(c, {
|
|
2091
|
+
property: u,
|
|
2092
|
+
operator: v,
|
|
2093
|
+
value: S
|
|
2094
|
+
})) : !!f.find((S) => r(c, {
|
|
2095
|
+
property: u,
|
|
2096
|
+
operator: v,
|
|
2097
|
+
value: S
|
|
2098
2098
|
}));
|
|
2099
|
-
const
|
|
2100
|
-
if (Array.isArray(
|
|
2101
|
-
return
|
|
2102
|
-
switch (
|
|
2099
|
+
const g = c[u];
|
|
2100
|
+
if (Array.isArray(g))
|
|
2101
|
+
return g.includes(f);
|
|
2102
|
+
switch (v) {
|
|
2103
2103
|
case "is":
|
|
2104
|
-
return
|
|
2104
|
+
return g === f;
|
|
2105
2105
|
case "isNot":
|
|
2106
|
-
return
|
|
2106
|
+
return g !== f;
|
|
2107
2107
|
case "contains":
|
|
2108
|
-
return (a(
|
|
2108
|
+
return (a(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2109
2109
|
case "startsWith":
|
|
2110
|
-
return a(
|
|
2110
|
+
return a(g) && g.startsWith(String(f));
|
|
2111
2111
|
case "endsWith":
|
|
2112
|
-
return a(
|
|
2112
|
+
return a(g) && g.endsWith(String(f));
|
|
2113
2113
|
case "greaterThan":
|
|
2114
|
-
return o(
|
|
2114
|
+
return o(g) && o(f) && g > f;
|
|
2115
2115
|
case "lessThan":
|
|
2116
|
-
return o(
|
|
2116
|
+
return o(g) && o(f) && g < f;
|
|
2117
2117
|
case "greaterThanOrEqualTo":
|
|
2118
|
-
return o(
|
|
2118
|
+
return o(g) && o(f) && g >= f;
|
|
2119
2119
|
case "lessThanOrEqualTo":
|
|
2120
|
-
return o(
|
|
2120
|
+
return o(g) && o(f) && g <= f;
|
|
2121
2121
|
default:
|
|
2122
2122
|
return !1;
|
|
2123
2123
|
}
|
|
@@ -2127,10 +2127,10 @@ function sn(e, t, n, i) {
|
|
|
2127
2127
|
query: t,
|
|
2128
2128
|
startDate: n,
|
|
2129
2129
|
endDate: i
|
|
2130
|
-
},
|
|
2131
|
-
return l.startDate && new Date(l.startDate) >
|
|
2130
|
+
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2131
|
+
return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => r(e, c));
|
|
2132
2132
|
}
|
|
2133
|
-
const
|
|
2133
|
+
const un = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2134
2134
|
if (!navigator.cookieEnabled) {
|
|
2135
2135
|
return;
|
|
2136
2136
|
}
|
|
@@ -2183,7 +2183,7 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2183
2183
|
} else if (variants && variants.length > 0) {
|
|
2184
2184
|
removeVariants();
|
|
2185
2185
|
}
|
|
2186
|
-
}`,
|
|
2186
|
+
}`, dn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2187
2187
|
function isString(val) {
|
|
2188
2188
|
return typeof val === 'string';
|
|
2189
2189
|
}
|
|
@@ -2262,10 +2262,10 @@ const cn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2262
2262
|
return objectMatchesQuery(userAttributes, filter);
|
|
2263
2263
|
});
|
|
2264
2264
|
}`;
|
|
2265
|
-
function
|
|
2266
|
-
return !(!(e && e.length > 0) || !t ||
|
|
2265
|
+
function mn(e, t) {
|
|
2266
|
+
return !(!(e && e.length > 0) || !t || F());
|
|
2267
2267
|
}
|
|
2268
|
-
function
|
|
2268
|
+
function fn({
|
|
2269
2269
|
variants: e,
|
|
2270
2270
|
previewingIndex: t,
|
|
2271
2271
|
isHydrated: n,
|
|
@@ -2282,7 +2282,7 @@ function mn({
|
|
|
2282
2282
|
blocks: e[t].blocks,
|
|
2283
2283
|
path: `component.options.variants.${t}.blocks`
|
|
2284
2284
|
} : o;
|
|
2285
|
-
if (
|
|
2285
|
+
if (F()) {
|
|
2286
2286
|
const l = i == null ? void 0 : i[0];
|
|
2287
2287
|
if (l)
|
|
2288
2288
|
return {
|
|
@@ -2292,79 +2292,79 @@ function mn({
|
|
|
2292
2292
|
}
|
|
2293
2293
|
return o;
|
|
2294
2294
|
}
|
|
2295
|
-
const
|
|
2295
|
+
const hn = (e, t, n) => `
|
|
2296
2296
|
(function() {
|
|
2297
|
+
${dn}
|
|
2297
2298
|
${un}
|
|
2298
|
-
${cn}
|
|
2299
2299
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2300
2300
|
})();
|
|
2301
2301
|
`;
|
|
2302
|
-
function
|
|
2303
|
-
var
|
|
2304
|
-
const t =
|
|
2305
|
-
() =>
|
|
2302
|
+
function gn(e) {
|
|
2303
|
+
var g, S, b, k, C, P, w;
|
|
2304
|
+
const t = $(null), [n, i] = E(
|
|
2305
|
+
() => fe.getUserAttributes()
|
|
2306
2306
|
), [a, o] = E(
|
|
2307
2307
|
() => {
|
|
2308
|
-
var
|
|
2309
|
-
return
|
|
2308
|
+
var x, m, p;
|
|
2309
|
+
return hn(
|
|
2310
2310
|
e.variants,
|
|
2311
|
-
((
|
|
2311
|
+
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2312
2312
|
(p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
|
|
2313
2313
|
);
|
|
2314
2314
|
}
|
|
2315
|
-
), [r, l] = E(() => []), [
|
|
2315
|
+
), [r, l] = E(() => []), [d, c] = E(
|
|
2316
2316
|
() => {
|
|
2317
|
-
var
|
|
2318
|
-
return
|
|
2317
|
+
var x;
|
|
2318
|
+
return mn(
|
|
2319
2319
|
e.variants,
|
|
2320
|
-
|
|
2320
|
+
M((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2321
2321
|
);
|
|
2322
2322
|
}
|
|
2323
|
-
), [h,
|
|
2324
|
-
function
|
|
2325
|
-
return (e.variants || []).filter((
|
|
2326
|
-
var m, p,
|
|
2327
|
-
return
|
|
2323
|
+
), [h, y] = E(() => !1);
|
|
2324
|
+
function u() {
|
|
2325
|
+
return (e.variants || []).filter((x) => {
|
|
2326
|
+
var m, p, I, T;
|
|
2327
|
+
return cn(
|
|
2328
2328
|
{
|
|
2329
2329
|
...(p = (m = e.builderContext) == null ? void 0 : m.rootState) != null && p.locale ? {
|
|
2330
|
-
locale: (
|
|
2330
|
+
locale: (T = (I = e.builderContext) == null ? void 0 : I.rootState) == null ? void 0 : T.locale
|
|
2331
2331
|
} : {},
|
|
2332
2332
|
...n
|
|
2333
2333
|
},
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2334
|
+
x.query,
|
|
2335
|
+
x.startDate,
|
|
2336
|
+
x.endDate
|
|
2337
2337
|
);
|
|
2338
2338
|
});
|
|
2339
2339
|
}
|
|
2340
|
-
function
|
|
2341
|
-
var
|
|
2342
|
-
return
|
|
2340
|
+
function v() {
|
|
2341
|
+
var x;
|
|
2342
|
+
return fn({
|
|
2343
2343
|
variants: e.variants,
|
|
2344
|
-
fallbackBlocks: (
|
|
2344
|
+
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2345
2345
|
isHydrated: h,
|
|
2346
|
-
filteredVariants:
|
|
2346
|
+
filteredVariants: u(),
|
|
2347
2347
|
previewingIndex: e.previewingIndex
|
|
2348
2348
|
});
|
|
2349
2349
|
}
|
|
2350
2350
|
function f() {
|
|
2351
2351
|
return (e.variants || []).map(
|
|
2352
|
-
(
|
|
2352
|
+
(x, m) => {
|
|
2353
2353
|
var p;
|
|
2354
2354
|
return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
|
|
2355
2355
|
}
|
|
2356
2356
|
).join("");
|
|
2357
2357
|
}
|
|
2358
|
-
return
|
|
2358
|
+
return B(() => {
|
|
2359
2359
|
var m;
|
|
2360
|
-
|
|
2361
|
-
const
|
|
2360
|
+
y(!0);
|
|
2361
|
+
const x = fe.subscribeOnUserAttributesChange(
|
|
2362
2362
|
(p) => {
|
|
2363
2363
|
i(p);
|
|
2364
2364
|
}
|
|
2365
2365
|
);
|
|
2366
2366
|
if (!(W() || Y())) {
|
|
2367
|
-
const p =
|
|
2367
|
+
const p = u()[0];
|
|
2368
2368
|
t.current && (t.current.dispatchEvent(
|
|
2369
2369
|
new CustomEvent("builder.variantLoaded", {
|
|
2370
2370
|
detail: {
|
|
@@ -2373,14 +2373,14 @@ function hn(e) {
|
|
|
2373
2373
|
},
|
|
2374
2374
|
bubbles: !0
|
|
2375
2375
|
})
|
|
2376
|
-
), new IntersectionObserver((
|
|
2377
|
-
|
|
2378
|
-
var
|
|
2379
|
-
|
|
2376
|
+
), new IntersectionObserver((T) => {
|
|
2377
|
+
T.forEach((V) => {
|
|
2378
|
+
var N;
|
|
2379
|
+
V.isIntersecting && t.current && t.current.dispatchEvent(
|
|
2380
2380
|
new CustomEvent("builder.variantDisplayed", {
|
|
2381
2381
|
detail: {
|
|
2382
2382
|
variant: p || "default",
|
|
2383
|
-
content: (
|
|
2383
|
+
content: (N = e.builderContext) == null ? void 0 : N.content
|
|
2384
2384
|
},
|
|
2385
2385
|
bubbles: !0
|
|
2386
2386
|
})
|
|
@@ -2388,19 +2388,19 @@ function hn(e) {
|
|
|
2388
2388
|
});
|
|
2389
2389
|
}).observe(t.current));
|
|
2390
2390
|
}
|
|
2391
|
-
r.push(
|
|
2392
|
-
}, []),
|
|
2393
|
-
r.forEach((
|
|
2394
|
-
}, []), /* @__PURE__ */
|
|
2391
|
+
r.push(x);
|
|
2392
|
+
}, []), B(() => () => {
|
|
2393
|
+
r.forEach((x) => x());
|
|
2394
|
+
}, []), /* @__PURE__ */ A(
|
|
2395
2395
|
"div",
|
|
2396
2396
|
{
|
|
2397
2397
|
ref: t,
|
|
2398
2398
|
...e.attributes,
|
|
2399
|
-
className: `builder-personalization-container ${((
|
|
2399
|
+
className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
|
|
2400
2400
|
children: [
|
|
2401
|
-
|
|
2402
|
-
(
|
|
2403
|
-
var p,
|
|
2401
|
+
d ? /* @__PURE__ */ A(R, { children: [
|
|
2402
|
+
(S = e.variants) == null ? void 0 : S.map((x, m) => {
|
|
2403
|
+
var p, I;
|
|
2404
2404
|
return /* @__PURE__ */ s(
|
|
2405
2405
|
"template",
|
|
2406
2406
|
{
|
|
@@ -2408,8 +2408,8 @@ function hn(e) {
|
|
|
2408
2408
|
children: /* @__PURE__ */ s(
|
|
2409
2409
|
D,
|
|
2410
2410
|
{
|
|
2411
|
-
blocks:
|
|
2412
|
-
parent: (
|
|
2411
|
+
blocks: x.blocks,
|
|
2412
|
+
parent: (I = e.builderBlock) == null ? void 0 : I.id,
|
|
2413
2413
|
path: `component.options.variants.${m}.blocks`
|
|
2414
2414
|
}
|
|
2415
2415
|
)
|
|
@@ -2418,17 +2418,17 @@ function hn(e) {
|
|
|
2418
2418
|
);
|
|
2419
2419
|
}),
|
|
2420
2420
|
/* @__PURE__ */ s(
|
|
2421
|
-
|
|
2421
|
+
j,
|
|
2422
2422
|
{
|
|
2423
|
-
nonce: ((
|
|
2423
|
+
nonce: ((b = e.builderContext) == null ? void 0 : b.nonce) || "",
|
|
2424
2424
|
styles: f(),
|
|
2425
|
-
id: `variants-styles-${(
|
|
2425
|
+
id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
|
|
2426
2426
|
}
|
|
2427
2427
|
),
|
|
2428
2428
|
/* @__PURE__ */ s(
|
|
2429
2429
|
G,
|
|
2430
2430
|
{
|
|
2431
|
-
nonce: ((
|
|
2431
|
+
nonce: ((C = e.builderContext) == null ? void 0 : C.nonce) || "",
|
|
2432
2432
|
scriptStr: a,
|
|
2433
2433
|
id: `variants-script-${(P = e.builderBlock) == null ? void 0 : P.id}`
|
|
2434
2434
|
}
|
|
@@ -2437,16 +2437,16 @@ function hn(e) {
|
|
|
2437
2437
|
/* @__PURE__ */ s(
|
|
2438
2438
|
D,
|
|
2439
2439
|
{
|
|
2440
|
-
blocks:
|
|
2441
|
-
parent: (
|
|
2442
|
-
path:
|
|
2440
|
+
blocks: v().blocks,
|
|
2441
|
+
parent: (w = e.builderBlock) == null ? void 0 : w.id,
|
|
2442
|
+
path: v().path
|
|
2443
2443
|
}
|
|
2444
2444
|
)
|
|
2445
2445
|
]
|
|
2446
2446
|
}
|
|
2447
2447
|
);
|
|
2448
2448
|
}
|
|
2449
|
-
const
|
|
2449
|
+
const bn = {
|
|
2450
2450
|
name: "Core:Section",
|
|
2451
2451
|
static: !0,
|
|
2452
2452
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2485,7 +2485,7 @@ const gn = {
|
|
|
2485
2485
|
}
|
|
2486
2486
|
}
|
|
2487
2487
|
}]
|
|
2488
|
-
},
|
|
2488
|
+
}, pn = {
|
|
2489
2489
|
name: "Slot",
|
|
2490
2490
|
isRSC: !0,
|
|
2491
2491
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2503,7 +2503,7 @@ const gn = {
|
|
|
2503
2503
|
builderComponents: !0
|
|
2504
2504
|
}
|
|
2505
2505
|
};
|
|
2506
|
-
function
|
|
2506
|
+
function yn(e) {
|
|
2507
2507
|
var t, n, i;
|
|
2508
2508
|
return /* @__PURE__ */ s(
|
|
2509
2509
|
"div",
|
|
@@ -2527,7 +2527,7 @@ function pn(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
2530
|
-
const
|
|
2530
|
+
const vn = {
|
|
2531
2531
|
name: "Symbol",
|
|
2532
2532
|
noWrap: !0,
|
|
2533
2533
|
static: !0,
|
|
@@ -2604,7 +2604,7 @@ const yn = {
|
|
|
2604
2604
|
text: "New tab content "
|
|
2605
2605
|
}
|
|
2606
2606
|
}
|
|
2607
|
-
},
|
|
2607
|
+
}, xn = {
|
|
2608
2608
|
name: "Builder: Tabs",
|
|
2609
2609
|
inputs: [{
|
|
2610
2610
|
name: "tabs",
|
|
@@ -2708,7 +2708,7 @@ const yn = {
|
|
|
2708
2708
|
builderLinkComponent: !0
|
|
2709
2709
|
}
|
|
2710
2710
|
};
|
|
2711
|
-
function
|
|
2711
|
+
function Sn(e) {
|
|
2712
2712
|
var o;
|
|
2713
2713
|
const [t, n] = E(
|
|
2714
2714
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2719,7 +2719,7 @@ function xn(e) {
|
|
|
2719
2719
|
function a(r) {
|
|
2720
2720
|
r === t && e.collapsible ? n(-1) : n(r);
|
|
2721
2721
|
}
|
|
2722
|
-
return /* @__PURE__ */
|
|
2722
|
+
return /* @__PURE__ */ A("div", { children: [
|
|
2723
2723
|
/* @__PURE__ */ s(
|
|
2724
2724
|
"div",
|
|
2725
2725
|
{
|
|
@@ -2737,7 +2737,7 @@ function xn(e) {
|
|
|
2737
2737
|
style: {
|
|
2738
2738
|
...t === l ? e.activeTabStyle : {}
|
|
2739
2739
|
},
|
|
2740
|
-
onClick: (
|
|
2740
|
+
onClick: (d) => a(l),
|
|
2741
2741
|
children: /* @__PURE__ */ s(
|
|
2742
2742
|
D,
|
|
2743
2743
|
{
|
|
@@ -2767,7 +2767,7 @@ function xn(e) {
|
|
|
2767
2767
|
) }) : null
|
|
2768
2768
|
] });
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2770
|
+
const kn = {
|
|
2771
2771
|
shouldReceiveBuilderProps: {
|
|
2772
2772
|
builderBlock: !1,
|
|
2773
2773
|
builderContext: !0
|
|
@@ -2790,7 +2790,7 @@ const Sn = {
|
|
|
2790
2790
|
textAlign: "center"
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
|
-
function
|
|
2793
|
+
function Cn(e) {
|
|
2794
2794
|
var t;
|
|
2795
2795
|
return /* @__PURE__ */ s(
|
|
2796
2796
|
"div",
|
|
@@ -2803,7 +2803,7 @@ function kn(e) {
|
|
|
2803
2803
|
}
|
|
2804
2804
|
);
|
|
2805
2805
|
}
|
|
2806
|
-
const
|
|
2806
|
+
const Tn = {
|
|
2807
2807
|
name: "Custom Code",
|
|
2808
2808
|
static: !0,
|
|
2809
2809
|
requiredPermissions: ["editCode"],
|
|
@@ -2826,15 +2826,15 @@ const Cn = {
|
|
|
2826
2826
|
advanced: !0
|
|
2827
2827
|
}]
|
|
2828
2828
|
};
|
|
2829
|
-
function
|
|
2830
|
-
const t =
|
|
2831
|
-
return
|
|
2829
|
+
function wn(e) {
|
|
2830
|
+
const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []);
|
|
2831
|
+
return B(() => {
|
|
2832
2832
|
var l;
|
|
2833
2833
|
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2834
2834
|
return;
|
|
2835
2835
|
const r = t.current.getElementsByTagName("script");
|
|
2836
|
-
for (let
|
|
2837
|
-
const c = r[
|
|
2836
|
+
for (let d = 0; d < r.length; d++) {
|
|
2837
|
+
const c = r[d];
|
|
2838
2838
|
if (c.src) {
|
|
2839
2839
|
if (n.includes(c.src))
|
|
2840
2840
|
continue;
|
|
@@ -2864,7 +2864,7 @@ function Tn(e) {
|
|
|
2864
2864
|
}
|
|
2865
2865
|
);
|
|
2866
2866
|
}
|
|
2867
|
-
const
|
|
2867
|
+
const In = {
|
|
2868
2868
|
name: "Embed",
|
|
2869
2869
|
static: !0,
|
|
2870
2870
|
inputs: [{
|
|
@@ -2879,29 +2879,29 @@ const wn = {
|
|
|
2879
2879
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2880
2880
|
hideFromUI: !0
|
|
2881
2881
|
}]
|
|
2882
|
-
},
|
|
2883
|
-
function
|
|
2884
|
-
const t =
|
|
2885
|
-
function
|
|
2882
|
+
}, En = ["text/javascript", "application/javascript", "application/ecmascript"], Rn = (e) => En.includes(e.type);
|
|
2883
|
+
function Pn(e) {
|
|
2884
|
+
const t = $(null), [n, i] = E(() => []), [a, o] = E(() => []), [r, l] = E(() => !1);
|
|
2885
|
+
function d() {
|
|
2886
2886
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2887
2887
|
return;
|
|
2888
2888
|
const c = t.current.getElementsByTagName("script");
|
|
2889
2889
|
for (let h = 0; h < c.length; h++) {
|
|
2890
|
-
const
|
|
2891
|
-
if (
|
|
2892
|
-
n.push(
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2895
|
-
} else if (
|
|
2890
|
+
const y = c[h];
|
|
2891
|
+
if (y.src && !n.includes(y.src)) {
|
|
2892
|
+
n.push(y.src);
|
|
2893
|
+
const u = document.createElement("script");
|
|
2894
|
+
u.async = !0, u.src = y.src, document.head.appendChild(u);
|
|
2895
|
+
} else if (Rn(y) && !a.includes(y.innerText))
|
|
2896
2896
|
try {
|
|
2897
|
-
a.push(
|
|
2898
|
-
} catch (
|
|
2899
|
-
console.warn("`Embed`: Error running script:",
|
|
2897
|
+
a.push(y.innerText), new Function(y.innerText)();
|
|
2898
|
+
} catch (u) {
|
|
2899
|
+
console.warn("`Embed`: Error running script:", u);
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
2902
|
}
|
|
2903
|
-
return
|
|
2904
|
-
t.current && !r && (l(!0),
|
|
2903
|
+
return B(() => {
|
|
2904
|
+
t.current && !r && (l(!0), d());
|
|
2905
2905
|
}, [t.current, r]), /* @__PURE__ */ s(
|
|
2906
2906
|
"div",
|
|
2907
2907
|
{
|
|
@@ -2911,7 +2911,7 @@ function Rn(e) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
|
-
const
|
|
2914
|
+
const Vn = {
|
|
2915
2915
|
name: "Form:Form",
|
|
2916
2916
|
// editableTags: ['builder-form-error']
|
|
2917
2917
|
defaults: {
|
|
@@ -3148,102 +3148,102 @@ const Pn = {
|
|
|
3148
3148
|
builderComponents: !0,
|
|
3149
3149
|
builderLinkComponent: !0
|
|
3150
3150
|
}
|
|
3151
|
-
},
|
|
3151
|
+
}, Bn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Nn = () => {
|
|
3152
3152
|
const e = process.env.NODE_ENV || "production";
|
|
3153
|
-
return
|
|
3153
|
+
return Bn.includes(e) ? e : "production";
|
|
3154
3154
|
};
|
|
3155
|
-
function
|
|
3156
|
-
const t =
|
|
3157
|
-
function
|
|
3158
|
-
var
|
|
3159
|
-
const
|
|
3155
|
+
function An(e) {
|
|
3156
|
+
const t = $(null), [n, i] = E(() => "unsubmitted"), [a, o] = E(() => null), [r, l] = E(() => "");
|
|
3157
|
+
function d(y) {
|
|
3158
|
+
var v, f;
|
|
3159
|
+
const u = {
|
|
3160
3160
|
...e.builderContext.rootState,
|
|
3161
|
-
...
|
|
3161
|
+
...y
|
|
3162
3162
|
};
|
|
3163
|
-
e.builderContext.rootSetState ? (f = (
|
|
3163
|
+
e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, u) : e.builderContext.rootState = u;
|
|
3164
3164
|
}
|
|
3165
3165
|
function c() {
|
|
3166
3166
|
return W() && e.previewState || n;
|
|
3167
3167
|
}
|
|
3168
|
-
function h(
|
|
3169
|
-
var
|
|
3170
|
-
const
|
|
3168
|
+
function h(y) {
|
|
3169
|
+
var v;
|
|
3170
|
+
const u = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
3171
3171
|
if (e.sendSubmissionsTo === "zapier")
|
|
3172
|
-
|
|
3173
|
-
else if (
|
|
3172
|
+
y.preventDefault();
|
|
3173
|
+
else if (u) {
|
|
3174
3174
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
3175
|
-
|
|
3175
|
+
y.preventDefault();
|
|
3176
3176
|
return;
|
|
3177
3177
|
}
|
|
3178
|
-
|
|
3179
|
-
const f =
|
|
3180
|
-
let
|
|
3181
|
-
const
|
|
3178
|
+
y.preventDefault();
|
|
3179
|
+
const f = y.currentTarget || y.target, g = e.customHeaders || {};
|
|
3180
|
+
let S;
|
|
3181
|
+
const b = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
|
|
3182
3182
|
let p;
|
|
3183
|
-
const
|
|
3183
|
+
const I = m.name;
|
|
3184
3184
|
if (m instanceof HTMLInputElement)
|
|
3185
3185
|
if (m.type === "radio") {
|
|
3186
3186
|
if (m.checked)
|
|
3187
3187
|
return p = m.name, {
|
|
3188
|
-
key:
|
|
3188
|
+
key: I,
|
|
3189
3189
|
value: p
|
|
3190
3190
|
};
|
|
3191
3191
|
} else if (m.type === "checkbox")
|
|
3192
3192
|
p = m.checked;
|
|
3193
3193
|
else if (m.type === "number" || m.type === "range") {
|
|
3194
|
-
const
|
|
3195
|
-
isNaN(
|
|
3194
|
+
const T = m.valueAsNumber;
|
|
3195
|
+
isNaN(T) || (p = T);
|
|
3196
3196
|
} else
|
|
3197
3197
|
m.type === "file" ? p = m.files : p = m.value;
|
|
3198
3198
|
else
|
|
3199
3199
|
p = m.value;
|
|
3200
3200
|
return {
|
|
3201
|
-
key:
|
|
3201
|
+
key: I,
|
|
3202
3202
|
value: p
|
|
3203
3203
|
};
|
|
3204
3204
|
});
|
|
3205
|
-
let
|
|
3206
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
3207
|
-
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (
|
|
3208
|
-
}),
|
|
3209
|
-
|
|
3205
|
+
let C = e.contentType;
|
|
3206
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
|
|
3207
|
+
(m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
|
|
3208
|
+
}), C !== "application/json")
|
|
3209
|
+
S = b;
|
|
3210
3210
|
else {
|
|
3211
3211
|
const m = {};
|
|
3212
|
-
Array.from(
|
|
3213
|
-
|
|
3214
|
-
}),
|
|
3212
|
+
Array.from(k).forEach(({ value: p, key: I }) => {
|
|
3213
|
+
De(m, I, p);
|
|
3214
|
+
}), S = JSON.stringify(m);
|
|
3215
3215
|
}
|
|
3216
|
-
|
|
3217
|
-
const P = new CustomEvent("presubmit", { detail: { body:
|
|
3216
|
+
C && C !== "multipart/form-data" && (u && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = C));
|
|
3217
|
+
const P = new CustomEvent("presubmit", { detail: { body: S } });
|
|
3218
3218
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3219
3219
|
return;
|
|
3220
3220
|
i("sending");
|
|
3221
|
-
const
|
|
3221
|
+
const w = `${Nn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3222
3222
|
e.sendSubmissionsToEmail || ""
|
|
3223
|
-
)}&name=${encodeURIComponent(e.name || "")}`,
|
|
3224
|
-
|
|
3223
|
+
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3224
|
+
Ee(x), fetch(x, { body: S, headers: g, method: e.method || "post" }).then(
|
|
3225
3225
|
async (m) => {
|
|
3226
3226
|
let p;
|
|
3227
|
-
const
|
|
3228
|
-
if (
|
|
3229
|
-
let
|
|
3230
|
-
|
|
3227
|
+
const I = m.headers.get("content-type");
|
|
3228
|
+
if (I && I.indexOf("application/json") !== -1 ? p = await m.json() : p = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3229
|
+
let T = Ne(p, e.errorMessagePath);
|
|
3230
|
+
T && (typeof T != "string" && (T = JSON.stringify(T)), l(T), d({ formErrorMessage: T }));
|
|
3231
3231
|
}
|
|
3232
3232
|
if (o(p), i(m.ok ? "success" : "error"), m.ok) {
|
|
3233
|
-
const
|
|
3233
|
+
const T = new CustomEvent("submit:success", {
|
|
3234
3234
|
detail: { res: m, body: p }
|
|
3235
3235
|
});
|
|
3236
3236
|
if (t.current) {
|
|
3237
|
-
if (t.current.dispatchEvent(
|
|
3237
|
+
if (t.current.dispatchEvent(T), T.defaultPrevented)
|
|
3238
3238
|
return;
|
|
3239
3239
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
3240
3240
|
}
|
|
3241
3241
|
if (e.successUrl)
|
|
3242
3242
|
if (t.current) {
|
|
3243
|
-
const
|
|
3243
|
+
const V = new CustomEvent("route", {
|
|
3244
3244
|
detail: { url: e.successUrl }
|
|
3245
3245
|
});
|
|
3246
|
-
t.current.dispatchEvent(
|
|
3246
|
+
t.current.dispatchEvent(V), V.defaultPrevented || (location.href = e.successUrl);
|
|
3247
3247
|
} else
|
|
3248
3248
|
location.href = e.successUrl;
|
|
3249
3249
|
}
|
|
@@ -3257,9 +3257,9 @@ function Nn(e) {
|
|
|
3257
3257
|
);
|
|
3258
3258
|
}
|
|
3259
3259
|
}
|
|
3260
|
-
return /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ A(R, { children: [
|
|
3261
3261
|
" ",
|
|
3262
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ A(
|
|
3263
3263
|
"form",
|
|
3264
3264
|
{
|
|
3265
3265
|
validate: e.validate,
|
|
@@ -3267,7 +3267,7 @@ function Nn(e) {
|
|
|
3267
3267
|
action: !e.sendWithJs && e.action,
|
|
3268
3268
|
method: e.method,
|
|
3269
3269
|
name: e.name,
|
|
3270
|
-
onSubmit: (
|
|
3270
|
+
onSubmit: (y) => h(y),
|
|
3271
3271
|
...e.attributes,
|
|
3272
3272
|
children: [
|
|
3273
3273
|
e.children,
|
|
@@ -3304,7 +3304,7 @@ function Nn(e) {
|
|
|
3304
3304
|
" "
|
|
3305
3305
|
] });
|
|
3306
3306
|
}
|
|
3307
|
-
const
|
|
3307
|
+
const Wn = {
|
|
3308
3308
|
name: "Form:Input",
|
|
3309
3309
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3310
3310
|
inputs: [
|
|
@@ -3356,8 +3356,8 @@ const An = {
|
|
|
3356
3356
|
borderColor: "#ccc"
|
|
3357
3357
|
}
|
|
3358
3358
|
};
|
|
3359
|
-
function
|
|
3360
|
-
return /* @__PURE__ */
|
|
3359
|
+
function Dn(e) {
|
|
3360
|
+
return /* @__PURE__ */ Ve(
|
|
3361
3361
|
"input",
|
|
3362
3362
|
{
|
|
3363
3363
|
...e.attributes,
|
|
@@ -3371,7 +3371,7 @@ function Wn(e) {
|
|
|
3371
3371
|
}
|
|
3372
3372
|
);
|
|
3373
3373
|
}
|
|
3374
|
-
const
|
|
3374
|
+
const $n = {
|
|
3375
3375
|
name: "Form:Select",
|
|
3376
3376
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3377
3377
|
defaultStyles: {
|
|
@@ -3414,9 +3414,9 @@ const Dn = {
|
|
|
3414
3414
|
static: !0,
|
|
3415
3415
|
noWrap: !0
|
|
3416
3416
|
};
|
|
3417
|
-
function
|
|
3417
|
+
function Fn(e) {
|
|
3418
3418
|
var t;
|
|
3419
|
-
return /* @__PURE__ */
|
|
3419
|
+
return /* @__PURE__ */ Ve(
|
|
3420
3420
|
"select",
|
|
3421
3421
|
{
|
|
3422
3422
|
...e.attributes,
|
|
@@ -3429,7 +3429,7 @@ function $n(e) {
|
|
|
3429
3429
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3430
3430
|
);
|
|
3431
3431
|
}
|
|
3432
|
-
const
|
|
3432
|
+
const On = {
|
|
3433
3433
|
name: "Form:SubmitButton",
|
|
3434
3434
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3435
3435
|
defaultStyles: {
|
|
@@ -3455,10 +3455,10 @@ const Fn = {
|
|
|
3455
3455
|
// TODO: defaultChildren
|
|
3456
3456
|
// canHaveChildren: true,
|
|
3457
3457
|
};
|
|
3458
|
-
function
|
|
3458
|
+
function Ln(e) {
|
|
3459
3459
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3460
3460
|
}
|
|
3461
|
-
const
|
|
3461
|
+
const Un = {
|
|
3462
3462
|
name: "Form:TextArea",
|
|
3463
3463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3464
3464
|
inputs: [{
|
|
@@ -3495,7 +3495,7 @@ const Ln = {
|
|
|
3495
3495
|
static: !0,
|
|
3496
3496
|
noWrap: !0
|
|
3497
3497
|
};
|
|
3498
|
-
function
|
|
3498
|
+
function _n(e) {
|
|
3499
3499
|
return /* @__PURE__ */ s(
|
|
3500
3500
|
"textarea",
|
|
3501
3501
|
{
|
|
@@ -3508,7 +3508,7 @@ function Un(e) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
);
|
|
3510
3510
|
}
|
|
3511
|
-
const
|
|
3511
|
+
const qn = {
|
|
3512
3512
|
// friendlyName?
|
|
3513
3513
|
name: "Raw:Img",
|
|
3514
3514
|
hideFromInsertMenu: !0,
|
|
@@ -3523,7 +3523,7 @@ const _n = {
|
|
|
3523
3523
|
noWrap: !0,
|
|
3524
3524
|
static: !0
|
|
3525
3525
|
};
|
|
3526
|
-
function
|
|
3526
|
+
function Mn(e) {
|
|
3527
3527
|
return /* @__PURE__ */ s(
|
|
3528
3528
|
"img",
|
|
3529
3529
|
{
|
|
@@ -3538,7 +3538,7 @@ function qn(e) {
|
|
|
3538
3538
|
W() && e.imgSrc || "default-key"
|
|
3539
3539
|
);
|
|
3540
3540
|
}
|
|
3541
|
-
const
|
|
3541
|
+
const Hn = {
|
|
3542
3542
|
name: "Video",
|
|
3543
3543
|
canHaveChildren: !0,
|
|
3544
3544
|
defaultStyles: {
|
|
@@ -3549,7 +3549,7 @@ const Mn = {
|
|
|
3549
3549
|
inputs: [{
|
|
3550
3550
|
name: "video",
|
|
3551
3551
|
type: "file",
|
|
3552
|
-
allowedFileTypes:
|
|
3552
|
+
allowedFileTypes: rn,
|
|
3553
3553
|
bubble: !0,
|
|
3554
3554
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3555
3555
|
required: !0
|
|
@@ -3623,9 +3623,10 @@ const Mn = {
|
|
|
3623
3623
|
builderBlock: !0
|
|
3624
3624
|
}
|
|
3625
3625
|
};
|
|
3626
|
-
function
|
|
3627
|
-
var
|
|
3628
|
-
|
|
3626
|
+
function jn(e) {
|
|
3627
|
+
var r, l, d, c, h, y, u;
|
|
3628
|
+
const t = $(null);
|
|
3629
|
+
function n() {
|
|
3629
3630
|
return {
|
|
3630
3631
|
...e.autoPlay === !0 ? {
|
|
3631
3632
|
autoPlay: !0
|
|
@@ -3644,12 +3645,37 @@ function Hn(e) {
|
|
|
3644
3645
|
} : {}
|
|
3645
3646
|
};
|
|
3646
3647
|
}
|
|
3647
|
-
function
|
|
3648
|
+
function i() {
|
|
3648
3649
|
return {
|
|
3649
|
-
...
|
|
3650
|
+
...n()
|
|
3650
3651
|
};
|
|
3651
3652
|
}
|
|
3652
|
-
|
|
3653
|
+
const [a, o] = E(() => {
|
|
3654
|
+
});
|
|
3655
|
+
return B(() => {
|
|
3656
|
+
if (e.lazyLoad) {
|
|
3657
|
+
const v = new IntersectionObserver(function(f) {
|
|
3658
|
+
f.forEach(function(g) {
|
|
3659
|
+
if (!g.isIntersecting)
|
|
3660
|
+
return;
|
|
3661
|
+
const S = g.target;
|
|
3662
|
+
try {
|
|
3663
|
+
Array.from(S.children).filter(
|
|
3664
|
+
(b) => b instanceof HTMLElement && b.tagName === "SOURCE"
|
|
3665
|
+
).forEach((b) => {
|
|
3666
|
+
const k = b.dataset.src;
|
|
3667
|
+
k && (b.src = k);
|
|
3668
|
+
}), S.load(), v.unobserve(S);
|
|
3669
|
+
} catch (b) {
|
|
3670
|
+
console.error("Error loading lazy video:", b);
|
|
3671
|
+
}
|
|
3672
|
+
});
|
|
3673
|
+
});
|
|
3674
|
+
t.current && v.observe(t.current), o(v);
|
|
3675
|
+
}
|
|
3676
|
+
}, []), B(() => () => {
|
|
3677
|
+
a && a.disconnect();
|
|
3678
|
+
}, []), /* @__PURE__ */ A(
|
|
3653
3679
|
"div",
|
|
3654
3680
|
{
|
|
3655
3681
|
style: {
|
|
@@ -3660,12 +3686,13 @@ function Hn(e) {
|
|
|
3660
3686
|
"video",
|
|
3661
3687
|
{
|
|
3662
3688
|
className: "builder-video",
|
|
3663
|
-
...
|
|
3664
|
-
|
|
3689
|
+
...i(),
|
|
3690
|
+
ref: t,
|
|
3691
|
+
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
3665
3692
|
style: {
|
|
3666
3693
|
width: "100%",
|
|
3667
3694
|
height: "100%",
|
|
3668
|
-
...(
|
|
3695
|
+
...(r = e.attributes) == null ? void 0 : r.style,
|
|
3669
3696
|
objectFit: e.fit,
|
|
3670
3697
|
objectPosition: e.position,
|
|
3671
3698
|
// Hack to get object fit to work as expected and
|
|
@@ -3675,12 +3702,21 @@ function Hn(e) {
|
|
|
3675
3702
|
position: "absolute"
|
|
3676
3703
|
} : null
|
|
3677
3704
|
},
|
|
3678
|
-
src: e.video || "no-src",
|
|
3679
3705
|
poster: e.posterImage,
|
|
3680
|
-
children:
|
|
3706
|
+
children: /* @__PURE__ */ s(
|
|
3707
|
+
"source",
|
|
3708
|
+
{
|
|
3709
|
+
type: "video/mp4",
|
|
3710
|
+
...e.lazyLoad ? {
|
|
3711
|
+
"data-src": e.video
|
|
3712
|
+
} : {
|
|
3713
|
+
src: e.video
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
)
|
|
3681
3717
|
}
|
|
3682
3718
|
),
|
|
3683
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3719
|
+
e.aspectRatio && !(e.fitContent && ((d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length)) ? /* @__PURE__ */ s(
|
|
3684
3720
|
"div",
|
|
3685
3721
|
{
|
|
3686
3722
|
style: {
|
|
@@ -3691,7 +3727,7 @@ function Hn(e) {
|
|
|
3691
3727
|
}
|
|
3692
3728
|
}
|
|
3693
3729
|
) : null,
|
|
3694
|
-
(
|
|
3730
|
+
(h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3695
3731
|
"div",
|
|
3696
3732
|
{
|
|
3697
3733
|
style: {
|
|
@@ -3702,7 +3738,7 @@ function Hn(e) {
|
|
|
3702
3738
|
children: e.children
|
|
3703
3739
|
}
|
|
3704
3740
|
) : null,
|
|
3705
|
-
(
|
|
3741
|
+
(u = (y = e.builderBlock) == null ? void 0 : y.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3706
3742
|
"div",
|
|
3707
3743
|
{
|
|
3708
3744
|
style: {
|
|
@@ -3723,67 +3759,67 @@ function Hn(e) {
|
|
|
3723
3759
|
}
|
|
3724
3760
|
);
|
|
3725
3761
|
}
|
|
3726
|
-
const
|
|
3727
|
-
component:
|
|
3728
|
-
...
|
|
3729
|
-
}, {
|
|
3730
|
-
component: Rn,
|
|
3731
|
-
...wn
|
|
3762
|
+
const zn = () => [{
|
|
3763
|
+
component: wn,
|
|
3764
|
+
...Tn
|
|
3732
3765
|
}, {
|
|
3733
|
-
component:
|
|
3734
|
-
...
|
|
3766
|
+
component: Pn,
|
|
3767
|
+
...In
|
|
3735
3768
|
}, {
|
|
3736
|
-
component:
|
|
3737
|
-
...
|
|
3769
|
+
component: An,
|
|
3770
|
+
...Vn
|
|
3738
3771
|
}, {
|
|
3739
|
-
component:
|
|
3740
|
-
...
|
|
3772
|
+
component: Dn,
|
|
3773
|
+
...Wn
|
|
3741
3774
|
}, {
|
|
3742
|
-
component:
|
|
3743
|
-
...
|
|
3775
|
+
component: Ln,
|
|
3776
|
+
...On
|
|
3744
3777
|
}, {
|
|
3745
|
-
component:
|
|
3746
|
-
|
|
3778
|
+
component: Fn,
|
|
3779
|
+
...$n
|
|
3747
3780
|
}, {
|
|
3748
|
-
component:
|
|
3749
|
-
...
|
|
3781
|
+
component: _n,
|
|
3782
|
+
...Un
|
|
3750
3783
|
}, {
|
|
3751
|
-
component:
|
|
3752
|
-
...
|
|
3753
|
-
}], Se = () => [{
|
|
3754
|
-
component: nt,
|
|
3755
|
-
...tn
|
|
3784
|
+
component: Mn,
|
|
3785
|
+
...qn
|
|
3756
3786
|
}, {
|
|
3757
|
-
component:
|
|
3787
|
+
component: jn,
|
|
3788
|
+
...Hn
|
|
3789
|
+
}], ke = () => [{
|
|
3790
|
+
component: it,
|
|
3758
3791
|
...nn
|
|
3759
3792
|
}, {
|
|
3760
3793
|
component: Jt,
|
|
3761
3794
|
...an
|
|
3762
3795
|
}, {
|
|
3763
|
-
component:
|
|
3764
|
-
...
|
|
3796
|
+
component: Gt,
|
|
3797
|
+
...on
|
|
3765
3798
|
}, {
|
|
3766
3799
|
component: Xt,
|
|
3767
|
-
...
|
|
3800
|
+
...ln
|
|
3768
3801
|
}, {
|
|
3769
|
-
component:
|
|
3802
|
+
component: Zt,
|
|
3770
3803
|
...bn
|
|
3771
3804
|
}, {
|
|
3772
|
-
component:
|
|
3773
|
-
...
|
|
3805
|
+
component: yn,
|
|
3806
|
+
...pn
|
|
3807
|
+
}, {
|
|
3808
|
+
component: bi,
|
|
3809
|
+
...vn
|
|
3774
3810
|
}, {
|
|
3775
|
-
component:
|
|
3776
|
-
...
|
|
3811
|
+
component: Cn,
|
|
3812
|
+
...kn
|
|
3777
3813
|
}, {
|
|
3778
|
-
component:
|
|
3779
|
-
...
|
|
3814
|
+
component: gn,
|
|
3815
|
+
...sn
|
|
3780
3816
|
}, {
|
|
3781
|
-
component:
|
|
3782
|
-
...
|
|
3817
|
+
component: Sn,
|
|
3818
|
+
...xn
|
|
3783
3819
|
}, {
|
|
3784
|
-
component:
|
|
3785
|
-
...
|
|
3786
|
-
}, ...
|
|
3820
|
+
component: tn,
|
|
3821
|
+
...en
|
|
3822
|
+
}, ...zn()], Kn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3787
3823
|
function getAndSetVariantId() {
|
|
3788
3824
|
function setCookie(name, value, days) {
|
|
3789
3825
|
let expires = '';
|
|
@@ -3839,7 +3875,7 @@ const jn = () => [{
|
|
|
3839
3875
|
}).join('');
|
|
3840
3876
|
styleEl.innerHTML = newStyleStr;
|
|
3841
3877
|
}
|
|
3842
|
-
}`,
|
|
3878
|
+
}`, Jn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3843
3879
|
if (!navigator.cookieEnabled) {
|
|
3844
3880
|
return;
|
|
3845
3881
|
}
|
|
@@ -3873,29 +3909,29 @@ const jn = () => [{
|
|
|
3873
3909
|
thisScriptEl?.remove();
|
|
3874
3910
|
}
|
|
3875
3911
|
return;
|
|
3876
|
-
}`,
|
|
3912
|
+
}`, je = "builderIoAbTest", ze = "builderIoRenderContent", z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3877
3913
|
...t,
|
|
3878
3914
|
testVariationId: t.id,
|
|
3879
3915
|
id: e == null ? void 0 : e.id
|
|
3880
|
-
})),
|
|
3916
|
+
})), Gn = ({
|
|
3881
3917
|
canTrack: e,
|
|
3882
3918
|
content: t
|
|
3883
|
-
}) => !(!(z(t).length > 0) || !e ||
|
|
3884
|
-
window.${He} = ${zn}
|
|
3919
|
+
}) => !(!(z(t).length > 0) || !e || F()), Qn = (e) => e === "react" || e === "reactNative", Ke = Qn(O), Yn = () => `
|
|
3885
3920
|
window.${je} = ${Kn}
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3921
|
+
window.${ze} = ${Jn}
|
|
3922
|
+
`, Xn = (e, t) => `
|
|
3923
|
+
window.${je}(
|
|
3924
|
+
"${t}",${JSON.stringify(e)}, ${Ke}
|
|
3925
|
+
)`, Zn = ({
|
|
3890
3926
|
contentId: e,
|
|
3891
3927
|
variationId: t
|
|
3892
|
-
}) => `window.${
|
|
3893
|
-
"${t}", "${e}", ${
|
|
3928
|
+
}) => `window.${ze}(
|
|
3929
|
+
"${t}", "${e}", ${Ke}
|
|
3894
3930
|
)`;
|
|
3895
|
-
function
|
|
3931
|
+
function Ce(e) {
|
|
3896
3932
|
return Math.round(e * 1e3) / 1e3;
|
|
3897
3933
|
}
|
|
3898
|
-
const
|
|
3934
|
+
const ei = (e, t, n = !0) => {
|
|
3899
3935
|
if (!(e instanceof HTMLElement))
|
|
3900
3936
|
return null;
|
|
3901
3937
|
let i = n ? e : e.parentElement;
|
|
@@ -3906,35 +3942,35 @@ const Zn = (e, t, n = !0) => {
|
|
|
3906
3942
|
return i;
|
|
3907
3943
|
} while (i = i.parentElement);
|
|
3908
3944
|
return null;
|
|
3909
|
-
},
|
|
3945
|
+
}, ti = (e) => ei(e, (t) => {
|
|
3910
3946
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3911
3947
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3912
|
-
}),
|
|
3948
|
+
}), Te = ({
|
|
3913
3949
|
event: e,
|
|
3914
3950
|
target: t
|
|
3915
3951
|
}) => {
|
|
3916
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o =
|
|
3952
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ce(i / n.width), r = Ce(a / n.height);
|
|
3917
3953
|
return {
|
|
3918
3954
|
x: o,
|
|
3919
3955
|
y: r
|
|
3920
3956
|
};
|
|
3921
|
-
},
|
|
3922
|
-
const t = e.target, n = t &&
|
|
3957
|
+
}, ni = (e) => {
|
|
3958
|
+
const t = e.target, n = t && ti(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3923
3959
|
return {
|
|
3924
3960
|
targetBuilderElement: i || void 0,
|
|
3925
3961
|
metadata: {
|
|
3926
|
-
targetOffset: t ?
|
|
3962
|
+
targetOffset: t ? Te({
|
|
3927
3963
|
event: e,
|
|
3928
3964
|
target: t
|
|
3929
3965
|
}) : void 0,
|
|
3930
|
-
builderTargetOffset: n ?
|
|
3966
|
+
builderTargetOffset: n ? Te({
|
|
3931
3967
|
event: e,
|
|
3932
3968
|
target: n
|
|
3933
3969
|
}) : void 0,
|
|
3934
3970
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3935
3971
|
}
|
|
3936
3972
|
};
|
|
3937
|
-
},
|
|
3973
|
+
}, ii = ["svelte", "qwik", "vue"], we = () => ii.includes(O) && (W() || Y()), ai = (e) => {
|
|
3938
3974
|
var o, r;
|
|
3939
3975
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
|
|
3940
3976
|
let a = "";
|
|
@@ -3960,15 +3996,15 @@ font-weight: ${l};
|
|
|
3960
3996
|
`.trim());
|
|
3961
3997
|
}
|
|
3962
3998
|
return a;
|
|
3963
|
-
},
|
|
3999
|
+
}, oi = ({
|
|
3964
4000
|
customFonts: e
|
|
3965
4001
|
}) => {
|
|
3966
4002
|
var t;
|
|
3967
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
3968
|
-
},
|
|
4003
|
+
return ((t = e == null ? void 0 : e.map((n) => ai(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4004
|
+
}, ri = ({
|
|
3969
4005
|
cssCode: e,
|
|
3970
4006
|
contentId: t
|
|
3971
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4007
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", li = `
|
|
3972
4008
|
.builder-button {
|
|
3973
4009
|
all: unset;
|
|
3974
4010
|
}
|
|
@@ -3985,39 +4021,39 @@ font-weight: ${l};
|
|
|
3985
4021
|
text-align: inherit;
|
|
3986
4022
|
font-family: inherit;
|
|
3987
4023
|
}
|
|
3988
|
-
`,
|
|
3989
|
-
function
|
|
3990
|
-
var
|
|
3991
|
-
const t =
|
|
3992
|
-
function n(
|
|
4024
|
+
`, si = (e) => e ? "" : li, ci = (e) => `variant-${e}`;
|
|
4025
|
+
function ui(e) {
|
|
4026
|
+
var k, C, P;
|
|
4027
|
+
const t = $(null);
|
|
4028
|
+
function n(w) {
|
|
3993
4029
|
var m, p;
|
|
3994
|
-
const
|
|
4030
|
+
const x = {
|
|
3995
4031
|
...e.builderContextSignal.rootState,
|
|
3996
|
-
...
|
|
4032
|
+
...w
|
|
3997
4033
|
};
|
|
3998
|
-
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m,
|
|
3999
|
-
...
|
|
4000
|
-
rootState:
|
|
4034
|
+
e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, x) : e.setBuilderContextSignal((I) => ({
|
|
4035
|
+
...I,
|
|
4036
|
+
rootState: x
|
|
4001
4037
|
}));
|
|
4002
4038
|
}
|
|
4003
|
-
function i(
|
|
4004
|
-
var m, p,
|
|
4005
|
-
const
|
|
4039
|
+
function i(w) {
|
|
4040
|
+
var m, p, I, T, V;
|
|
4041
|
+
const x = {
|
|
4006
4042
|
...e.builderContextSignal.content,
|
|
4007
|
-
...
|
|
4043
|
+
...w,
|
|
4008
4044
|
data: {
|
|
4009
4045
|
...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
|
|
4010
|
-
...
|
|
4046
|
+
...w == null ? void 0 : w.data
|
|
4011
4047
|
},
|
|
4012
4048
|
meta: {
|
|
4013
4049
|
...(p = e.builderContextSignal.content) == null ? void 0 : p.meta,
|
|
4014
|
-
...
|
|
4015
|
-
breakpoints: ((
|
|
4050
|
+
...w == null ? void 0 : w.meta,
|
|
4051
|
+
breakpoints: ((I = w == null ? void 0 : w.meta) == null ? void 0 : I.breakpoints) || ((V = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : V.breakpoints)
|
|
4016
4052
|
}
|
|
4017
4053
|
};
|
|
4018
|
-
e.setBuilderContextSignal((
|
|
4019
|
-
...
|
|
4020
|
-
content:
|
|
4054
|
+
e.setBuilderContextSignal((N) => ({
|
|
4055
|
+
...N,
|
|
4056
|
+
content: x
|
|
4021
4057
|
}));
|
|
4022
4058
|
}
|
|
4023
4059
|
function a() {
|
|
@@ -4029,59 +4065,62 @@ function ci(e) {
|
|
|
4029
4065
|
const [o, r] = E(
|
|
4030
4066
|
() => e.contentWrapper || "div"
|
|
4031
4067
|
);
|
|
4032
|
-
function l(
|
|
4033
|
-
return
|
|
4068
|
+
function l(w) {
|
|
4069
|
+
return Xe({
|
|
4034
4070
|
model: e.model,
|
|
4035
4071
|
trustedHosts: e.trustedHosts,
|
|
4036
4072
|
callbacks: {
|
|
4037
|
-
configureSdk: (
|
|
4038
|
-
var
|
|
4039
|
-
const { breakpoints: m, contentId: p } =
|
|
4040
|
-
!p || p !== ((
|
|
4073
|
+
configureSdk: (x) => {
|
|
4074
|
+
var I;
|
|
4075
|
+
const { breakpoints: m, contentId: p } = x;
|
|
4076
|
+
!p || p !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || m && i({
|
|
4041
4077
|
meta: {
|
|
4042
4078
|
breakpoints: m
|
|
4043
4079
|
}
|
|
4044
4080
|
});
|
|
4045
4081
|
},
|
|
4046
|
-
animation: (
|
|
4047
|
-
|
|
4082
|
+
animation: (x) => {
|
|
4083
|
+
Oe(x);
|
|
4048
4084
|
},
|
|
4049
|
-
contentUpdate: (
|
|
4050
|
-
i(
|
|
4085
|
+
contentUpdate: (x) => {
|
|
4086
|
+
i(x);
|
|
4087
|
+
},
|
|
4088
|
+
stateUpdate: (x) => {
|
|
4089
|
+
n(x);
|
|
4051
4090
|
}
|
|
4052
4091
|
}
|
|
4053
|
-
})(
|
|
4092
|
+
})(w);
|
|
4054
4093
|
}
|
|
4055
|
-
const [
|
|
4056
|
-
function f(
|
|
4057
|
-
var
|
|
4094
|
+
const [d, c] = E(() => ({})), [h, y] = E(() => ({})), [u, v] = E(() => !1);
|
|
4095
|
+
function f(w) {
|
|
4096
|
+
var x, m;
|
|
4058
4097
|
if (e.builderContextSignal.content) {
|
|
4059
|
-
const p = (
|
|
4060
|
-
|
|
4098
|
+
const p = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
|
|
4099
|
+
he({
|
|
4061
4100
|
apiHost: e.apiHost,
|
|
4062
4101
|
type: "click",
|
|
4063
|
-
canTrack:
|
|
4064
|
-
contentId:
|
|
4102
|
+
canTrack: M(e.canTrack),
|
|
4103
|
+
contentId: I,
|
|
4065
4104
|
apiKey: e.apiKey,
|
|
4066
|
-
variationId: p !==
|
|
4067
|
-
...
|
|
4068
|
-
unique: !
|
|
4105
|
+
variationId: p !== I ? p : void 0,
|
|
4106
|
+
...ni(w),
|
|
4107
|
+
unique: !u
|
|
4069
4108
|
});
|
|
4070
4109
|
}
|
|
4071
|
-
|
|
4110
|
+
u || v(!0);
|
|
4072
4111
|
}
|
|
4073
|
-
function
|
|
4074
|
-
var
|
|
4075
|
-
const
|
|
4076
|
-
Object.entries(
|
|
4077
|
-
if (!
|
|
4112
|
+
function g() {
|
|
4113
|
+
var x, m, p;
|
|
4114
|
+
const w = (p = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? p : {};
|
|
4115
|
+
Object.entries(w).forEach(([I, T]) => {
|
|
4116
|
+
if (!T || h[I] || d[I] && !W())
|
|
4078
4117
|
return;
|
|
4079
|
-
h[
|
|
4080
|
-
const
|
|
4118
|
+
h[I] = !0;
|
|
4119
|
+
const V = T.replace(
|
|
4081
4120
|
/{{([^}]+)}}/g,
|
|
4082
|
-
(
|
|
4121
|
+
(N, U) => String(
|
|
4083
4122
|
L({
|
|
4084
|
-
code:
|
|
4123
|
+
code: U,
|
|
4085
4124
|
context: e.context || {},
|
|
4086
4125
|
localState: void 0,
|
|
4087
4126
|
rootState: e.builderContextSignal.rootState,
|
|
@@ -4089,18 +4128,18 @@ function ci(e) {
|
|
|
4089
4128
|
})
|
|
4090
4129
|
)
|
|
4091
4130
|
);
|
|
4092
|
-
|
|
4131
|
+
Ee(V), fetch(V).then((N) => N.json()).then((N) => {
|
|
4093
4132
|
n({
|
|
4094
|
-
[
|
|
4095
|
-
}),
|
|
4096
|
-
}).catch((
|
|
4097
|
-
console.error("error fetching dynamic data",
|
|
4133
|
+
[I]: N
|
|
4134
|
+
}), d[I] = !0;
|
|
4135
|
+
}).catch((N) => {
|
|
4136
|
+
console.error("error fetching dynamic data", T, N);
|
|
4098
4137
|
}).finally(() => {
|
|
4099
|
-
h[
|
|
4138
|
+
h[I] = !1;
|
|
4100
4139
|
});
|
|
4101
4140
|
});
|
|
4102
4141
|
}
|
|
4103
|
-
function
|
|
4142
|
+
function S() {
|
|
4104
4143
|
W() && window.dispatchEvent(
|
|
4105
4144
|
new CustomEvent(
|
|
4106
4145
|
"builder:component:stateChange",
|
|
@@ -4115,11 +4154,11 @@ function ci(e) {
|
|
|
4115
4154
|
)
|
|
4116
4155
|
);
|
|
4117
4156
|
}
|
|
4118
|
-
const
|
|
4119
|
-
return
|
|
4120
|
-
var
|
|
4121
|
-
if (
|
|
4122
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4157
|
+
const b = $(!1);
|
|
4158
|
+
return b.current || (g(), S(), b.current = !0), B(() => {
|
|
4159
|
+
var w, x, m, p;
|
|
4160
|
+
if (F()) {
|
|
4161
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), Ge(), Qe({
|
|
4123
4162
|
...e.locale ? {
|
|
4124
4163
|
locale: e.locale
|
|
4125
4164
|
} : {},
|
|
@@ -4128,74 +4167,76 @@ function ci(e) {
|
|
|
4128
4167
|
} : {},
|
|
4129
4168
|
...e.trustedHosts ? {
|
|
4130
4169
|
trustedHosts: e.trustedHosts
|
|
4131
|
-
} : {}
|
|
4170
|
+
} : {},
|
|
4171
|
+
modelName: (w = e.model) != null ? w : "",
|
|
4172
|
+
apiKey: e.apiKey
|
|
4132
4173
|
}), Object.values(
|
|
4133
4174
|
e.builderContextSignal.componentInfos
|
|
4134
|
-
).forEach((
|
|
4135
|
-
var
|
|
4136
|
-
if (!
|
|
4137
|
-
const
|
|
4138
|
-
(
|
|
4175
|
+
).forEach((T) => {
|
|
4176
|
+
var V, N;
|
|
4177
|
+
if (!((V = T.models) != null && V.length) || T.models.includes(e.model)) {
|
|
4178
|
+
const U = Ye(T);
|
|
4179
|
+
(N = window.parent) == null || N.postMessage(U, "*");
|
|
4139
4180
|
}
|
|
4140
4181
|
}), window.addEventListener(
|
|
4141
4182
|
"builder:component:stateChangeListenerActivated",
|
|
4142
|
-
|
|
4143
|
-
)), e.builderContextSignal.content &&
|
|
4144
|
-
const
|
|
4145
|
-
|
|
4183
|
+
S
|
|
4184
|
+
)), e.builderContextSignal.content && M(e.canTrack)) {
|
|
4185
|
+
const T = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, V = (m = e.builderContextSignal.content) == null ? void 0 : m.id, N = e.apiKey;
|
|
4186
|
+
he({
|
|
4146
4187
|
apiHost: e.apiHost,
|
|
4147
4188
|
type: "impression",
|
|
4148
4189
|
canTrack: !0,
|
|
4149
|
-
contentId:
|
|
4150
|
-
apiKey:
|
|
4151
|
-
variationId:
|
|
4190
|
+
contentId: V,
|
|
4191
|
+
apiKey: N,
|
|
4192
|
+
variationId: T !== V ? T : void 0
|
|
4152
4193
|
});
|
|
4153
4194
|
}
|
|
4154
4195
|
if (Y() && !W()) {
|
|
4155
|
-
const
|
|
4156
|
-
`builder.overrides.${
|
|
4157
|
-
),
|
|
4158
|
-
(
|
|
4159
|
-
model: e.model
|
|
4196
|
+
const T = new URL(location.href).searchParams, V = T.get("builder.preview"), N = T.get(
|
|
4197
|
+
`builder.overrides.${V}`
|
|
4198
|
+
), U = T.get("apiKey") || T.get("builder.space");
|
|
4199
|
+
(V === "BUILDER_STUDIO" || V === e.model && U === e.apiKey && (!e.content || N === e.content.id)) && Re({
|
|
4200
|
+
model: e.model,
|
|
4160
4201
|
apiKey: e.apiKey,
|
|
4161
4202
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
4162
|
-
...
|
|
4203
|
+
...V === "BUILDER_STUDIO" && ((p = e.context) != null && p.symbolId) ? {
|
|
4163
4204
|
query: {
|
|
4164
4205
|
id: e.context.symbolId
|
|
4165
4206
|
}
|
|
4166
4207
|
} : {}
|
|
4167
|
-
}).then((
|
|
4168
|
-
|
|
4208
|
+
}).then((me) => {
|
|
4209
|
+
me && i(me);
|
|
4169
4210
|
});
|
|
4170
4211
|
}
|
|
4171
4212
|
}
|
|
4172
|
-
}, []),
|
|
4213
|
+
}, []), B(() => {
|
|
4173
4214
|
e.content && i(e.content);
|
|
4174
|
-
}, [e.content]),
|
|
4175
|
-
|
|
4176
|
-
}, [e.builderContextSignal.rootState]),
|
|
4215
|
+
}, [e.content]), B(() => {
|
|
4216
|
+
S();
|
|
4217
|
+
}, [e.builderContextSignal.rootState]), B(() => {
|
|
4177
4218
|
e.data && n(e.data);
|
|
4178
|
-
}, [e.data]),
|
|
4219
|
+
}, [e.data]), B(() => {
|
|
4179
4220
|
e.locale && n({
|
|
4180
4221
|
locale: e.locale
|
|
4181
4222
|
});
|
|
4182
|
-
}, [e.locale]),
|
|
4183
|
-
|
|
4223
|
+
}, [e.locale]), B(() => () => {
|
|
4224
|
+
F() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
4184
4225
|
"builder:component:stateChangeListenerActivated",
|
|
4185
|
-
|
|
4226
|
+
S
|
|
4186
4227
|
));
|
|
4187
|
-
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4228
|
+
}, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || we() ? /* @__PURE__ */ s(
|
|
4188
4229
|
o,
|
|
4189
4230
|
{
|
|
4190
4231
|
ref: t,
|
|
4191
|
-
onClick: (
|
|
4192
|
-
"builder-content-id": (
|
|
4232
|
+
onClick: (w) => f(w),
|
|
4233
|
+
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4193
4234
|
"builder-model": e.model,
|
|
4194
|
-
className:
|
|
4195
|
-
((
|
|
4235
|
+
className: ci(
|
|
4236
|
+
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4196
4237
|
),
|
|
4197
4238
|
style: {
|
|
4198
|
-
display: !e.builderContextSignal.content &&
|
|
4239
|
+
display: !e.builderContextSignal.content && we() ? "none" : void 0
|
|
4199
4240
|
},
|
|
4200
4241
|
...a(),
|
|
4201
4242
|
...e.contentWrapperProps,
|
|
@@ -4203,21 +4244,21 @@ function ci(e) {
|
|
|
4203
4244
|
}
|
|
4204
4245
|
) : null });
|
|
4205
4246
|
}
|
|
4206
|
-
function
|
|
4247
|
+
function di(e) {
|
|
4207
4248
|
const [t, n] = E(
|
|
4208
4249
|
() => `
|
|
4209
|
-
${
|
|
4250
|
+
${ri({
|
|
4210
4251
|
cssCode: e.cssCode,
|
|
4211
4252
|
contentId: e.contentId
|
|
4212
4253
|
})}
|
|
4213
|
-
${
|
|
4254
|
+
${oi({
|
|
4214
4255
|
customFonts: e.customFonts
|
|
4215
4256
|
})}
|
|
4216
|
-
${
|
|
4257
|
+
${si(e.isNestedRender)}
|
|
4217
4258
|
`.trim()
|
|
4218
4259
|
);
|
|
4219
4260
|
return /* @__PURE__ */ s(
|
|
4220
|
-
|
|
4261
|
+
j,
|
|
4221
4262
|
{
|
|
4222
4263
|
id: "builderio-content",
|
|
4223
4264
|
styles: t,
|
|
@@ -4225,15 +4266,15 @@ ${li(e.isNestedRender)}
|
|
|
4225
4266
|
}
|
|
4226
4267
|
);
|
|
4227
4268
|
}
|
|
4228
|
-
const
|
|
4269
|
+
const mi = ({
|
|
4229
4270
|
content: e,
|
|
4230
4271
|
data: t,
|
|
4231
4272
|
locale: n
|
|
4232
4273
|
}) => {
|
|
4233
4274
|
var o, r, l;
|
|
4234
4275
|
const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
|
|
4235
|
-
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((
|
|
4236
|
-
|
|
4276
|
+
return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((d) => {
|
|
4277
|
+
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
4237
4278
|
}), {
|
|
4238
4279
|
...i,
|
|
4239
4280
|
...a,
|
|
@@ -4242,7 +4283,7 @@ const di = ({
|
|
|
4242
4283
|
locale: n
|
|
4243
4284
|
} : {}
|
|
4244
4285
|
};
|
|
4245
|
-
},
|
|
4286
|
+
}, fi = ({
|
|
4246
4287
|
content: e,
|
|
4247
4288
|
data: t
|
|
4248
4289
|
}) => e ? {
|
|
@@ -4253,46 +4294,46 @@ const di = ({
|
|
|
4253
4294
|
},
|
|
4254
4295
|
meta: e == null ? void 0 : e.meta
|
|
4255
4296
|
} : void 0;
|
|
4256
|
-
function
|
|
4257
|
-
var c, h,
|
|
4297
|
+
function Ie(e) {
|
|
4298
|
+
var c, h, y, u, v, f, g, S, b;
|
|
4258
4299
|
const [t, n] = E(
|
|
4259
4300
|
() => {
|
|
4260
|
-
var
|
|
4261
|
-
return
|
|
4301
|
+
var k, C;
|
|
4302
|
+
return Zn({
|
|
4262
4303
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4263
|
-
variationId: (
|
|
4304
|
+
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4264
4305
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4265
|
-
contentId: (
|
|
4306
|
+
contentId: (C = e.content) == null ? void 0 : C.id
|
|
4266
4307
|
});
|
|
4267
4308
|
}
|
|
4268
4309
|
);
|
|
4269
|
-
function i(
|
|
4270
|
-
l((
|
|
4271
|
-
...
|
|
4272
|
-
rootState:
|
|
4310
|
+
function i(k) {
|
|
4311
|
+
l((C) => ({
|
|
4312
|
+
...C,
|
|
4313
|
+
rootState: k
|
|
4273
4314
|
}));
|
|
4274
4315
|
}
|
|
4275
4316
|
const [a, o] = E(
|
|
4276
4317
|
() => [
|
|
4277
|
-
...
|
|
4318
|
+
...ke(),
|
|
4278
4319
|
...e.customComponents || []
|
|
4279
4320
|
].reduce(
|
|
4280
|
-
(
|
|
4281
|
-
...
|
|
4321
|
+
(k, { component: C, ...P }) => ({
|
|
4322
|
+
...k,
|
|
4282
4323
|
[P.name]: {
|
|
4283
|
-
component:
|
|
4284
|
-
...
|
|
4324
|
+
component: C,
|
|
4325
|
+
...ge(P)
|
|
4285
4326
|
}
|
|
4286
4327
|
}),
|
|
4287
4328
|
{}
|
|
4288
4329
|
)
|
|
4289
4330
|
), [r, l] = E(() => ({
|
|
4290
|
-
content:
|
|
4331
|
+
content: fi({
|
|
4291
4332
|
content: e.content,
|
|
4292
4333
|
data: e.data
|
|
4293
4334
|
}),
|
|
4294
4335
|
localState: void 0,
|
|
4295
|
-
rootState:
|
|
4336
|
+
rootState: mi({
|
|
4296
4337
|
content: e.content,
|
|
4297
4338
|
data: e.data,
|
|
4298
4339
|
locale: e.locale
|
|
@@ -4303,12 +4344,12 @@ function we(e) {
|
|
|
4303
4344
|
apiKey: e.apiKey,
|
|
4304
4345
|
apiVersion: e.apiVersion,
|
|
4305
4346
|
componentInfos: [
|
|
4306
|
-
...
|
|
4347
|
+
...ke(),
|
|
4307
4348
|
...e.customComponents || []
|
|
4308
4349
|
].reduce(
|
|
4309
|
-
(
|
|
4310
|
-
...
|
|
4311
|
-
[P.name]:
|
|
4350
|
+
(k, { component: C, ...P }) => ({
|
|
4351
|
+
...k,
|
|
4352
|
+
[P.name]: ge(P)
|
|
4312
4353
|
}),
|
|
4313
4354
|
{}
|
|
4314
4355
|
),
|
|
@@ -4316,32 +4357,32 @@ function we(e) {
|
|
|
4316
4357
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
4317
4358
|
BlocksWrapperProps: e.blocksWrapperProps || {},
|
|
4318
4359
|
nonce: e.nonce || "",
|
|
4319
|
-
model: e.model
|
|
4320
|
-
})),
|
|
4321
|
-
if (!
|
|
4360
|
+
model: e.model
|
|
4361
|
+
})), d = $(!1);
|
|
4362
|
+
if (!d.current) {
|
|
4322
4363
|
e.apiKey || Q.error(
|
|
4323
4364
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4324
4365
|
);
|
|
4325
|
-
const
|
|
4326
|
-
|
|
4327
|
-
code:
|
|
4366
|
+
const k = (h = (c = r.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
4367
|
+
k && L({
|
|
4368
|
+
code: k,
|
|
4328
4369
|
context: e.context || {},
|
|
4329
4370
|
localState: void 0,
|
|
4330
4371
|
rootState: r.rootState,
|
|
4331
|
-
rootSetState: (
|
|
4332
|
-
Object.assign(r.rootState,
|
|
4372
|
+
rootSetState: (C) => {
|
|
4373
|
+
Object.assign(r.rootState, C);
|
|
4333
4374
|
},
|
|
4334
4375
|
isExpression: !1
|
|
4335
|
-
}),
|
|
4376
|
+
}), d.current = !0;
|
|
4336
4377
|
}
|
|
4337
4378
|
return /* @__PURE__ */ s(
|
|
4338
|
-
|
|
4379
|
+
Be.Provider,
|
|
4339
4380
|
{
|
|
4340
4381
|
value: {
|
|
4341
4382
|
registeredComponents: a
|
|
4342
4383
|
},
|
|
4343
|
-
children: /* @__PURE__ */
|
|
4344
|
-
|
|
4384
|
+
children: /* @__PURE__ */ A(
|
|
4385
|
+
ui,
|
|
4345
4386
|
{
|
|
4346
4387
|
apiHost: e.apiHost,
|
|
4347
4388
|
nonce: e.nonce,
|
|
@@ -4370,19 +4411,19 @@ function we(e) {
|
|
|
4370
4411
|
}
|
|
4371
4412
|
) : null,
|
|
4372
4413
|
/* @__PURE__ */ s(
|
|
4373
|
-
|
|
4414
|
+
di,
|
|
4374
4415
|
{
|
|
4375
4416
|
nonce: e.nonce || "",
|
|
4376
4417
|
isNestedRender: e.isNestedRender,
|
|
4377
|
-
contentId: (
|
|
4378
|
-
cssCode: (
|
|
4379
|
-
customFonts: (
|
|
4418
|
+
contentId: (y = r.content) == null ? void 0 : y.id,
|
|
4419
|
+
cssCode: (v = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : v.cssCode,
|
|
4420
|
+
customFonts: (g = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : g.customFonts
|
|
4380
4421
|
}
|
|
4381
4422
|
),
|
|
4382
4423
|
/* @__PURE__ */ s(
|
|
4383
4424
|
D,
|
|
4384
4425
|
{
|
|
4385
|
-
blocks: (
|
|
4426
|
+
blocks: (b = (S = r.content) == null ? void 0 : S.data) == null ? void 0 : b.blocks,
|
|
4386
4427
|
context: r,
|
|
4387
4428
|
registeredComponents: a,
|
|
4388
4429
|
linkComponent: e.linkComponent
|
|
@@ -4394,20 +4435,20 @@ function we(e) {
|
|
|
4394
4435
|
}
|
|
4395
4436
|
);
|
|
4396
4437
|
}
|
|
4397
|
-
function
|
|
4438
|
+
function hi(e) {
|
|
4398
4439
|
var r;
|
|
4399
4440
|
const [t, n] = E(
|
|
4400
|
-
() =>
|
|
4401
|
-
canTrack:
|
|
4441
|
+
() => Gn({
|
|
4442
|
+
canTrack: M(e.canTrack),
|
|
4402
4443
|
content: e.content
|
|
4403
4444
|
})
|
|
4404
4445
|
);
|
|
4405
4446
|
function i() {
|
|
4406
4447
|
var l;
|
|
4407
|
-
return
|
|
4408
|
-
z(e.content).map((
|
|
4409
|
-
id:
|
|
4410
|
-
testRatio:
|
|
4448
|
+
return Xn(
|
|
4449
|
+
z(e.content).map((d) => ({
|
|
4450
|
+
id: d.testVariationId,
|
|
4451
|
+
testRatio: d.testRatio
|
|
4411
4452
|
})),
|
|
4412
4453
|
((l = e.content) == null ? void 0 : l.id) || ""
|
|
4413
4454
|
);
|
|
@@ -4420,24 +4461,24 @@ function fi(e) {
|
|
|
4420
4461
|
return t ? {
|
|
4421
4462
|
...e.content,
|
|
4422
4463
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4423
|
-
} :
|
|
4464
|
+
} : Ze({
|
|
4424
4465
|
item: e.content,
|
|
4425
|
-
canTrack:
|
|
4466
|
+
canTrack: M(e.canTrack)
|
|
4426
4467
|
});
|
|
4427
4468
|
}
|
|
4428
|
-
return
|
|
4429
|
-
}, []), /* @__PURE__ */
|
|
4469
|
+
return B(() => {
|
|
4470
|
+
}, []), /* @__PURE__ */ A(R, { children: [
|
|
4430
4471
|
!e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
|
|
4431
4472
|
G,
|
|
4432
4473
|
{
|
|
4433
4474
|
id: "builderio-init-variants-fns",
|
|
4434
|
-
scriptStr:
|
|
4475
|
+
scriptStr: Yn(),
|
|
4435
4476
|
nonce: e.nonce || ""
|
|
4436
4477
|
}
|
|
4437
4478
|
) : null,
|
|
4438
|
-
t ? /* @__PURE__ */
|
|
4479
|
+
t ? /* @__PURE__ */ A(R, { children: [
|
|
4439
4480
|
/* @__PURE__ */ s(
|
|
4440
|
-
|
|
4481
|
+
j,
|
|
4441
4482
|
{
|
|
4442
4483
|
id: "builderio-variants",
|
|
4443
4484
|
styles: a(),
|
|
@@ -4453,7 +4494,7 @@ function fi(e) {
|
|
|
4453
4494
|
}
|
|
4454
4495
|
),
|
|
4455
4496
|
(r = z(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4456
|
-
|
|
4497
|
+
Ie,
|
|
4457
4498
|
{
|
|
4458
4499
|
apiHost: e.apiHost,
|
|
4459
4500
|
isNestedRender: e.isNestedRender,
|
|
@@ -4481,7 +4522,7 @@ function fi(e) {
|
|
|
4481
4522
|
))
|
|
4482
4523
|
] }) : null,
|
|
4483
4524
|
/* @__PURE__ */ s(
|
|
4484
|
-
|
|
4525
|
+
Ie,
|
|
4485
4526
|
{
|
|
4486
4527
|
apiHost: e.apiHost,
|
|
4487
4528
|
nonce: e.nonce,
|
|
@@ -4508,13 +4549,13 @@ function fi(e) {
|
|
|
4508
4549
|
)
|
|
4509
4550
|
] });
|
|
4510
4551
|
}
|
|
4511
|
-
const
|
|
4552
|
+
const gi = async ({
|
|
4512
4553
|
builderContextValue: e,
|
|
4513
4554
|
symbol: t
|
|
4514
4555
|
}) => {
|
|
4515
4556
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4516
4557
|
(e != null && e.apiKey))
|
|
4517
|
-
return
|
|
4558
|
+
return Re({
|
|
4518
4559
|
model: t.model,
|
|
4519
4560
|
apiKey: e.apiKey,
|
|
4520
4561
|
apiVersion: e.apiVersion,
|
|
@@ -4527,8 +4568,8 @@ const hi = async ({
|
|
|
4527
4568
|
Q.error("Could not fetch symbol content: ", n);
|
|
4528
4569
|
});
|
|
4529
4570
|
};
|
|
4530
|
-
function
|
|
4531
|
-
var l,
|
|
4571
|
+
function bi(e) {
|
|
4572
|
+
var l, d, c, h, y;
|
|
4532
4573
|
function t() {
|
|
4533
4574
|
return "div";
|
|
4534
4575
|
}
|
|
@@ -4536,31 +4577,31 @@ function gi(e) {
|
|
|
4536
4577
|
return "div";
|
|
4537
4578
|
}
|
|
4538
4579
|
function i() {
|
|
4539
|
-
var
|
|
4580
|
+
var u, v;
|
|
4540
4581
|
return [
|
|
4541
|
-
e.attributes[
|
|
4582
|
+
e.attributes[H()],
|
|
4542
4583
|
"builder-symbol",
|
|
4543
|
-
(
|
|
4544
|
-
(
|
|
4584
|
+
(u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
|
|
4585
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4545
4586
|
].filter(Boolean).join(" ");
|
|
4546
4587
|
}
|
|
4547
4588
|
const [a, o] = E(() => {
|
|
4548
|
-
var
|
|
4549
|
-
return (
|
|
4589
|
+
var u;
|
|
4590
|
+
return (u = e.symbol) == null ? void 0 : u.content;
|
|
4550
4591
|
});
|
|
4551
4592
|
function r() {
|
|
4552
|
-
a ||
|
|
4593
|
+
a || gi({
|
|
4553
4594
|
symbol: e.symbol,
|
|
4554
4595
|
builderContextValue: e.builderContext
|
|
4555
|
-
}).then((
|
|
4556
|
-
|
|
4596
|
+
}).then((u) => {
|
|
4597
|
+
u && o(u);
|
|
4557
4598
|
});
|
|
4558
4599
|
}
|
|
4559
|
-
return
|
|
4560
|
-
}, []),
|
|
4600
|
+
return B(() => {
|
|
4601
|
+
}, []), B(() => {
|
|
4561
4602
|
r();
|
|
4562
4603
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4563
|
-
|
|
4604
|
+
hi,
|
|
4564
4605
|
{
|
|
4565
4606
|
nonce: e.builderContext.nonce,
|
|
4566
4607
|
isNestedRender: !0,
|
|
@@ -4572,12 +4613,12 @@ function gi(e) {
|
|
|
4572
4613
|
},
|
|
4573
4614
|
customComponents: Object.values(e.builderComponents),
|
|
4574
4615
|
data: {
|
|
4575
|
-
...(
|
|
4616
|
+
...(d = e.symbol) == null ? void 0 : d.data,
|
|
4576
4617
|
...e.builderContext.localState,
|
|
4577
4618
|
...(c = a == null ? void 0 : a.data) == null ? void 0 : c.state
|
|
4578
4619
|
},
|
|
4579
4620
|
canTrack: e.builderContext.canTrack,
|
|
4580
|
-
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4621
|
+
model: (y = (h = e.symbol) == null ? void 0 : h.model) != null ? y : "",
|
|
4581
4622
|
content: a,
|
|
4582
4623
|
linkComponent: e.builderLinkComponent,
|
|
4583
4624
|
blocksWrapper: t(),
|
|
@@ -4588,14 +4629,14 @@ function gi(e) {
|
|
|
4588
4629
|
export {
|
|
4589
4630
|
D as Blocks,
|
|
4590
4631
|
se as BuilderContext,
|
|
4591
|
-
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4632
|
+
it as Button,
|
|
4633
|
+
Jt as Columns,
|
|
4634
|
+
hi as Content,
|
|
4635
|
+
Gt as Fragment,
|
|
4636
|
+
Xt as Image,
|
|
4637
|
+
Zt as Section,
|
|
4638
|
+
bi as Symbol,
|
|
4639
|
+
Cn as Text,
|
|
4640
|
+
jn as Video,
|
|
4641
|
+
ki as setClientUserAttributes
|
|
4601
4642
|
};
|