@builder.io/sdk-react 4.0.6 → 4.0.7
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 +29 -29
- package/lib/browser/blocks-exports.mjs +330 -327
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-5449a575.cjs → server-entry-4c650ff5.cjs} +1 -1
- package/lib/browser/{server-entry-79285592.js → server-entry-e70c12ff.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-87ad8263.js → accordion-742ca147.js} +1 -1
- package/lib/edge/{accordion-f7e030d5.cjs → accordion-c97e6506.cjs} +1 -1
- package/lib/edge/{blocks-a066bb29.js → blocks-2a015bd6.js} +995 -990
- package/lib/edge/blocks-70894a53.cjs +30 -0
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{button-45c9b994.cjs → button-6a072716.cjs} +1 -1
- package/lib/edge/{button-1d265b68.js → button-deecd9b5.js} +2 -2
- package/lib/edge/{columns-2282e71d.cjs → columns-02352a9f.cjs} +1 -1
- package/lib/edge/{columns-6f323a60.js → columns-0e9b2bf4.js} +3 -3
- package/lib/edge/{content-variants-ea56e041.cjs → content-variants-41781d1f.cjs} +1 -1
- package/lib/edge/{content-variants-ddc4462d.js → content-variants-6948115a.js} +13 -16
- package/lib/edge/{custom-code-27f3a9d0.js → custom-code-73f76f76.js} +1 -1
- package/lib/edge/{custom-code-046c9e54.cjs → custom-code-77f98605.cjs} +1 -1
- package/lib/edge/{embed-962809ed.js → embed-26470ea1.js} +1 -1
- package/lib/edge/{embed-a90e1ebf.cjs → embed-9aaf87f9.cjs} +1 -1
- package/lib/edge/{form-2112cb80.cjs → form-0213200e.cjs} +1 -1
- package/lib/edge/{form-4fc6f70a.js → form-652ef8a9.js} +3 -3
- package/lib/edge/{get-class-prop-name-03e66a61.js → get-class-prop-name-1a003fac.js} +1 -1
- package/lib/edge/{get-class-prop-name-77a0b81b.cjs → get-class-prop-name-8647a440.cjs} +1 -1
- package/lib/edge/{image-1729f079.js → image-acc1c00c.js} +29 -27
- package/lib/edge/image-e38bd9e0.cjs +17 -0
- package/lib/edge/{img-95c678b5.js → img-2d35513d.js} +1 -1
- package/lib/edge/{img-5850d9d8.cjs → img-f0b9e982.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-7d147e6f.js → input-cdd96bc7.js} +1 -1
- package/lib/edge/{input-3937aa23.cjs → input-e61cf32f.cjs} +1 -1
- package/lib/edge/{personalization-container-aff166ba.cjs → personalization-container-4f73fbdf.cjs} +1 -1
- package/lib/edge/{personalization-container-d687ea13.js → personalization-container-e1f03976.js} +4 -4
- package/lib/edge/{select-bfca657e.js → select-de96bdc0.js} +1 -1
- package/lib/edge/{select-5bdfe568.cjs → select-f1165866.cjs} +1 -1
- package/lib/edge/{server-entry-e8854034.cjs → server-entry-10ca8502.cjs} +1 -1
- package/lib/edge/{server-entry-1d157602.js → server-entry-637ed5ff.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-a4c97369.cjs → slot-3ecf31d9.cjs} +1 -1
- package/lib/edge/{slot-acb2aa8e.js → slot-72846242.js} +3 -3
- package/lib/edge/{symbol-33b65252.cjs → symbol-49ed2192.cjs} +1 -1
- package/lib/edge/{symbol-cc7e6b66.js → symbol-61a3651b.js} +2 -2
- package/lib/edge/{tabs-900d88a9.cjs → tabs-788974d9.cjs} +1 -1
- package/lib/edge/{tabs-9cbb5615.js → tabs-ea0258b8.js} +3 -3
- package/lib/node/blocks-exports.cjs +29 -29
- package/lib/node/blocks-exports.mjs +323 -320
- 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-ee54171f.js → server-entry-7167da7c.js} +1 -1
- package/lib/node/{server-entry-0dcb0303.cjs → server-entry-e76904a8.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-b773f3ba.js → setIvm-72c91afa.js} +1 -1
- package/lib/node/{setIvm-d479356f.cjs → setIvm-e89d1a08.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-bdb5bf58.js → should-force-browser-runtime-in-node-09a401d5.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-364ee049.cjs → should-force-browser-runtime-in-node-b3e23348.cjs} +1 -1
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/blocks-31199191.cjs +0 -30
- package/lib/edge/image-a6fbd15b.cjs +0 -17
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as
|
|
3
|
-
import { setClientUserAttributes as
|
|
2
|
+
import { TARGET as L, isEditing as A, isBrowser as U, getUserAttributes as Xe, checkIsDefined as Q, logger as _, isPreviewing as Z, userAttributesService as be, getDefaultCanTrack as j, logFetch as Be, registerInsertMenu as Ze, setupBrowserForEditing as et, createRegisterComponentMessage as tt, getCookieSync as nt, _track as pe, fetchOneEntry as Ae, createEditorListener as it, serializeIncludingFunctions as ye, handleABTestingSync as at } from "./server-entry-e70c12ff.js";
|
|
3
|
+
import { setClientUserAttributes as Ri } from "./server-entry-e70c12ff.js";
|
|
4
4
|
import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
|
|
5
|
-
import * as
|
|
6
|
-
import { createContext as
|
|
7
|
-
const
|
|
5
|
+
import * as ot from "react";
|
|
6
|
+
import { createContext as Ne, useEffect as V, useState as I, useRef as O, useContext as ve, createElement as We } from "react";
|
|
7
|
+
const rt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), lt = (e) => typeof e == "string" && rt.has(e.toLowerCase());
|
|
8
8
|
function ue(e) {
|
|
9
|
-
return /* @__PURE__ */ s(R, { children:
|
|
9
|
+
return /* @__PURE__ */ s(R, { children: lt(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
11
|
const z = () => {
|
|
12
12
|
switch (L) {
|
|
@@ -22,7 +22,7 @@ const z = () => {
|
|
|
22
22
|
return "class";
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function
|
|
25
|
+
function st(e) {
|
|
26
26
|
function t() {
|
|
27
27
|
return {
|
|
28
28
|
...e.attributes,
|
|
@@ -46,7 +46,7 @@ function lt(e) {
|
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
|
-
const de =
|
|
49
|
+
const de = Ne({
|
|
50
50
|
content: null,
|
|
51
51
|
context: {},
|
|
52
52
|
localState: void 0,
|
|
@@ -61,10 +61,10 @@ const de = Ae({
|
|
|
61
61
|
BlocksWrapperProps: {},
|
|
62
62
|
nonce: "",
|
|
63
63
|
model: ""
|
|
64
|
-
}),
|
|
64
|
+
}), De = Ne({ registeredComponents: {} }), $e = (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
|
+
}, ct = ({
|
|
68
68
|
builder: e,
|
|
69
69
|
context: t,
|
|
70
70
|
event: n,
|
|
@@ -76,15 +76,15 @@ const de = Ae({
|
|
|
76
76
|
builder: e,
|
|
77
77
|
context: t,
|
|
78
78
|
event: n
|
|
79
|
-
}),
|
|
79
|
+
}), ut = () => ({
|
|
80
80
|
isEditing: A(),
|
|
81
81
|
isBrowser: U(),
|
|
82
82
|
isServer: !U(),
|
|
83
|
-
getUserAttributes: () =>
|
|
84
|
-
}),
|
|
83
|
+
getUserAttributes: () => Xe()
|
|
84
|
+
}), dt = (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 Fe({
|
|
88
88
|
rootState: e,
|
|
89
89
|
localState: t,
|
|
90
90
|
rootSetState: n
|
|
@@ -94,7 +94,7 @@ function $e({
|
|
|
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 ? Fe({
|
|
98
98
|
rootState: o,
|
|
99
99
|
localState: void 0,
|
|
100
100
|
rootSetState: n ? (r) => {
|
|
@@ -118,11 +118,11 @@ const xe = ({
|
|
|
118
118
|
rootSetState: o,
|
|
119
119
|
rootState: r
|
|
120
120
|
}) => {
|
|
121
|
-
const l =
|
|
121
|
+
const l = ct({
|
|
122
122
|
builder: t,
|
|
123
123
|
context: n,
|
|
124
124
|
event: i,
|
|
125
|
-
state:
|
|
125
|
+
state: Fe({
|
|
126
126
|
rootState: r,
|
|
127
127
|
localState: a,
|
|
128
128
|
rootSetState: o
|
|
@@ -130,23 +130,23 @@ const xe = ({
|
|
|
130
130
|
});
|
|
131
131
|
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
132
132
|
};
|
|
133
|
-
function
|
|
133
|
+
function mt() {
|
|
134
134
|
var e;
|
|
135
135
|
return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
137
|
+
const ft = ({
|
|
138
138
|
shouldLogWarning: e
|
|
139
139
|
}) => {
|
|
140
140
|
var a;
|
|
141
|
-
if (!
|
|
141
|
+
if (!mt())
|
|
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 && _.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
|
+
}, ht = (e) => (U() || ft({
|
|
146
146
|
shouldLogWarning: !0
|
|
147
|
-
}), xe(e)),
|
|
147
|
+
}), xe(e)), gt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, pt = (e) => {
|
|
148
148
|
var t, n, i, a, o, r;
|
|
149
|
-
return ((i = (n = (t =
|
|
149
|
+
return ((i = (n = (t = gt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((r = (o = (a = bt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : o.getPath) == null ? void 0 : r.slice(1));
|
|
150
150
|
};
|
|
151
151
|
function q({
|
|
152
152
|
code: e,
|
|
@@ -159,17 +159,17 @@ function q({
|
|
|
159
159
|
}) {
|
|
160
160
|
if (e.trim() === "")
|
|
161
161
|
return;
|
|
162
|
-
const l =
|
|
162
|
+
const l = pt(e.trim());
|
|
163
163
|
if (l)
|
|
164
|
-
return
|
|
164
|
+
return $e({
|
|
165
165
|
...i,
|
|
166
166
|
...n
|
|
167
167
|
}, l);
|
|
168
168
|
const d = {
|
|
169
|
-
code:
|
|
169
|
+
code: dt(e, {
|
|
170
170
|
isExpression: r
|
|
171
171
|
}),
|
|
172
|
-
builder:
|
|
172
|
+
builder: ut(),
|
|
173
173
|
context: t,
|
|
174
174
|
event: o,
|
|
175
175
|
rootSetState: a,
|
|
@@ -177,7 +177,7 @@ function q({
|
|
|
177
177
|
localState: n
|
|
178
178
|
};
|
|
179
179
|
try {
|
|
180
|
-
return
|
|
180
|
+
return ht(d);
|
|
181
181
|
} catch (u) {
|
|
182
182
|
_.error("Failed code evaluation: " + u.message, {
|
|
183
183
|
code: e
|
|
@@ -185,15 +185,15 @@ function q({
|
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function yt(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
|
+
...vt(e, t)
|
|
194
194
|
};
|
|
195
195
|
}
|
|
196
|
-
const
|
|
196
|
+
const vt = (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 yt = (e, t) => {
|
|
|
207
207
|
}))
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function
|
|
210
|
+
function xt(e, ...t) {
|
|
211
211
|
const n = Object.assign({}, e);
|
|
212
212
|
for (const i of t)
|
|
213
213
|
delete n[i];
|
|
@@ -230,31 +230,31 @@ function Y(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
|
|
|
230
230
|
}), Y(r, t, e, o, a);
|
|
231
231
|
}));
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Oe(e) {
|
|
234
234
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function St(e) {
|
|
237
237
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
238
238
|
return !1;
|
|
239
239
|
let t = !1;
|
|
240
240
|
return Y(e, (n) => {
|
|
241
|
-
if (
|
|
241
|
+
if (Oe(n)) {
|
|
242
242
|
t = !0;
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
245
|
}), t;
|
|
246
246
|
}
|
|
247
|
-
function
|
|
247
|
+
function kt(e, t) {
|
|
248
248
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (Y(e, (n, i) => {
|
|
249
249
|
var a;
|
|
250
|
-
|
|
250
|
+
Oe(n) && i((a = n[t]) != null ? a : void 0);
|
|
251
251
|
}), e);
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function Ct(e, t) {
|
|
254
254
|
var n, i;
|
|
255
|
-
return (n = e.component) != null && n.options &&
|
|
255
|
+
return (n = e.component) != null && n.options && St((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 = kt(e.component.options, t != null ? t : "Default")), e;
|
|
256
256
|
}
|
|
257
|
-
const me = (e) => JSON.parse(JSON.stringify(e)),
|
|
257
|
+
const me = (e) => JSON.parse(JSON.stringify(e)), Le = (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 ce(e) {
|
|
|
272
272
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ce(e[n]));
|
|
273
273
|
return t;
|
|
274
274
|
}
|
|
275
|
-
const
|
|
276
|
-
if (
|
|
275
|
+
const Tt = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), wt = (e) => {
|
|
276
|
+
if (Tt) {
|
|
277
277
|
const t = me(e);
|
|
278
278
|
return {
|
|
279
279
|
...t,
|
|
@@ -285,7 +285,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
} else {
|
|
288
|
-
const t = ce(
|
|
288
|
+
const t = ce(xt(e, "children", "meta"));
|
|
289
289
|
return {
|
|
290
290
|
...t,
|
|
291
291
|
properties: {
|
|
@@ -298,7 +298,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
|
|
|
298
298
|
meta: e.meta
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, It = ({
|
|
302
302
|
block: e,
|
|
303
303
|
context: t,
|
|
304
304
|
localState: n,
|
|
@@ -307,7 +307,7 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
|
|
|
307
307
|
}) => {
|
|
308
308
|
if (!e.bindings)
|
|
309
309
|
return e;
|
|
310
|
-
const o =
|
|
310
|
+
const o = wt(e);
|
|
311
311
|
for (const r in e.bindings) {
|
|
312
312
|
const l = e.bindings[r], d = q({
|
|
313
313
|
code: l,
|
|
@@ -316,19 +316,19 @@ const Ct = ["svelte", "vue", "angular", "qwik", "solid"].includes(L), Tt = (e) =
|
|
|
316
316
|
rootSetState: a,
|
|
317
317
|
context: t
|
|
318
318
|
});
|
|
319
|
-
|
|
319
|
+
Le(o, r, d);
|
|
320
320
|
}
|
|
321
321
|
return o;
|
|
322
322
|
};
|
|
323
|
-
function
|
|
323
|
+
function Et({
|
|
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 = Ct(e, i.locale);
|
|
331
|
+
return o = o, It({
|
|
332
332
|
block: o,
|
|
333
333
|
localState: n,
|
|
334
334
|
rootState: i,
|
|
@@ -337,7 +337,7 @@ function It({
|
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
339
|
const ee = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
340
|
-
function
|
|
340
|
+
function Rt(e, t, n = {}) {
|
|
341
341
|
let i, a, o, r = null, l = 0;
|
|
342
342
|
const d = function() {
|
|
343
343
|
l = n.leading === !1 ? 0 : Date.now(), r = null, o = e.apply(i, a), r || (i = a = null);
|
|
@@ -359,55 +359,55 @@ function H(e, ...t) {
|
|
|
359
359
|
}
|
|
360
360
|
return n;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Pt(e) {
|
|
363
363
|
for (const t of e)
|
|
364
364
|
switch (t.trigger) {
|
|
365
365
|
case "pageLoad":
|
|
366
|
-
|
|
366
|
+
qe(t);
|
|
367
367
|
break;
|
|
368
368
|
case "scrollInView":
|
|
369
|
-
|
|
369
|
+
Bt(t);
|
|
370
370
|
break;
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function Ue(e) {
|
|
374
374
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
const n =
|
|
376
|
+
function _e(e, t) {
|
|
377
|
+
const n = Vt(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
379
|
for (const d of n)
|
|
380
380
|
d in l || (l[d] = i[d]);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Vt(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 qe(e) {
|
|
390
390
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
391
391
|
if (!t.length) {
|
|
392
|
-
|
|
392
|
+
Ue(e.elementId || e.id || "");
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
Array.from(t).forEach((n) => {
|
|
396
|
-
|
|
396
|
+
_e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
397
397
|
n.style.transition = `all ${e.duration}s ${ee(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(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 Bt(e) {
|
|
404
404
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
405
405
|
if (!t.length) {
|
|
406
|
-
|
|
406
|
+
Ue(e.elementId || e.id || "");
|
|
407
407
|
return;
|
|
408
408
|
}
|
|
409
409
|
Array.from(t).forEach((n) => {
|
|
410
|
-
|
|
410
|
+
_e(e, n);
|
|
411
411
|
let i = !1, a = !1;
|
|
412
412
|
function o() {
|
|
413
413
|
!i && l(n) ? (i = !0, a = !0, setTimeout(() => {
|
|
@@ -416,7 +416,7 @@ function Vt(e) {
|
|
|
416
416
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
417
417
|
})) : e.repeat && i && !a && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
|
|
418
418
|
}
|
|
419
|
-
const r =
|
|
419
|
+
const r = Rt(o, 200, {
|
|
420
420
|
leading: !1
|
|
421
421
|
});
|
|
422
422
|
function l(h) {
|
|
@@ -435,42 +435,42 @@ function Vt(e) {
|
|
|
435
435
|
}), o();
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const Me = (e) => Object.entries(e).map(([n, i]) => {
|
|
439
439
|
if (typeof i == "string")
|
|
440
440
|
return `${ee(n)}: ${i};`;
|
|
441
|
-
}).filter(Q),
|
|
441
|
+
}).filter(Q), At = (e) => Me(e).join(`
|
|
442
442
|
`), M = ({
|
|
443
443
|
mediaQuery: e,
|
|
444
444
|
className: t,
|
|
445
445
|
styles: n
|
|
446
446
|
}) => {
|
|
447
447
|
const i = `.${t} {
|
|
448
|
-
${
|
|
448
|
+
${At(n)}
|
|
449
449
|
}`;
|
|
450
450
|
return e ? `${e} {
|
|
451
451
|
${i}
|
|
452
452
|
}` : i;
|
|
453
453
|
};
|
|
454
|
-
function
|
|
454
|
+
function Nt({
|
|
455
455
|
style: e
|
|
456
456
|
}) {
|
|
457
457
|
return e;
|
|
458
458
|
}
|
|
459
|
-
const
|
|
459
|
+
const Wt = ({
|
|
460
460
|
block: e,
|
|
461
461
|
context: t
|
|
462
|
-
}) =>
|
|
462
|
+
}) => He(Nt({
|
|
463
463
|
style: e.style || {},
|
|
464
464
|
context: t,
|
|
465
465
|
block: e
|
|
466
466
|
}));
|
|
467
|
-
function
|
|
467
|
+
function He(e) {
|
|
468
468
|
switch (L) {
|
|
469
469
|
case "svelte":
|
|
470
470
|
case "vue":
|
|
471
471
|
case "solid":
|
|
472
472
|
case "angular":
|
|
473
|
-
return
|
|
473
|
+
return Me(e).join(" ");
|
|
474
474
|
case "qwik":
|
|
475
475
|
case "reactNative":
|
|
476
476
|
case "react":
|
|
@@ -478,7 +478,7 @@ function Me(e) {
|
|
|
478
478
|
return e;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const je = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Dt = ({
|
|
482
482
|
block: e,
|
|
483
483
|
registeredComponents: t,
|
|
484
484
|
model: n
|
|
@@ -488,14 +488,14 @@ const He = (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 || je(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
|
+
}, $t = ({
|
|
499
499
|
block: e,
|
|
500
500
|
context: t
|
|
501
501
|
}) => {
|
|
@@ -528,27 +528,27 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
528
528
|
},
|
|
529
529
|
block: i
|
|
530
530
|
}));
|
|
531
|
-
},
|
|
531
|
+
}, Ft = (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
|
+
}, Ot = (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]) => !je(r, n)))
|
|
540
540
|
} : {};
|
|
541
|
-
},
|
|
541
|
+
}, Lt = (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
|
+
}, Ut = (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
|
+
}, Se = (e) => e.toString(), ze = {
|
|
552
552
|
xsmall: {
|
|
553
553
|
min: 0,
|
|
554
554
|
default: 160,
|
|
@@ -569,8 +569,8 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
569
569
|
default: 991,
|
|
570
570
|
max: 1200
|
|
571
571
|
}
|
|
572
|
-
}, ie = (e, t =
|
|
573
|
-
const t = me(
|
|
572
|
+
}, ie = (e, t = ze) => `@media (max-width: ${t[e].max}px)`, Ke = (e) => {
|
|
573
|
+
const t = me(ze);
|
|
574
574
|
if (!e)
|
|
575
575
|
return t;
|
|
576
576
|
const {
|
|
@@ -618,14 +618,14 @@ function K(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 Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
|
|
625
625
|
}
|
|
626
626
|
function n() {
|
|
627
627
|
var C, P, w, x, m;
|
|
628
|
-
const i = e.block, a = i.responsiveStyles, o = e.context.content, r =
|
|
628
|
+
const i = e.block, a = i.responsiveStyles, o = e.context.content, r = Ke(
|
|
629
629
|
((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
|
|
630
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, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
|
|
631
631
|
if (!c)
|
|
@@ -686,10 +686,10 @@ function Ut(e) {
|
|
|
686
686
|
}
|
|
687
687
|
) }) : null });
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function qt(e) {
|
|
690
690
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
691
691
|
}
|
|
692
|
-
const
|
|
692
|
+
const Mt = (e) => `on${qt(e)}`, Ht = (e, t) => (n) => q({
|
|
693
693
|
code: e,
|
|
694
694
|
context: t.context,
|
|
695
695
|
localState: t.localState,
|
|
@@ -698,14 +698,14 @@ const qt = (e) => `on${_t(e)}`, Mt = (e, t) => (n) => q({
|
|
|
698
698
|
event: n,
|
|
699
699
|
isExpression: !1
|
|
700
700
|
});
|
|
701
|
-
function
|
|
701
|
+
function Je(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 = Mt(a);
|
|
709
709
|
if (e.stripPrefix)
|
|
710
710
|
switch (L) {
|
|
711
711
|
case "vue":
|
|
@@ -715,16 +715,16 @@ function Ke(e) {
|
|
|
715
715
|
r = r.replace("on:", "");
|
|
716
716
|
break;
|
|
717
717
|
}
|
|
718
|
-
t[r] =
|
|
718
|
+
t[r] = Ht(o, e);
|
|
719
719
|
}
|
|
720
720
|
return t;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function jt({
|
|
723
723
|
properties: e
|
|
724
724
|
}) {
|
|
725
725
|
return e;
|
|
726
726
|
}
|
|
727
|
-
const
|
|
727
|
+
const zt = (e) => ({
|
|
728
728
|
href: e.href
|
|
729
729
|
});
|
|
730
730
|
function fe({
|
|
@@ -733,22 +733,22 @@ function fe({
|
|
|
733
733
|
}) {
|
|
734
734
|
var i;
|
|
735
735
|
const n = {
|
|
736
|
-
...
|
|
736
|
+
...zt(e),
|
|
737
737
|
...e.properties,
|
|
738
738
|
"builder-id": e.id,
|
|
739
|
-
style:
|
|
739
|
+
style: Wt({
|
|
740
740
|
block: e,
|
|
741
741
|
context: t
|
|
742
742
|
}),
|
|
743
743
|
[z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
|
|
744
744
|
};
|
|
745
|
-
return
|
|
745
|
+
return jt({
|
|
746
746
|
properties: n,
|
|
747
747
|
context: t,
|
|
748
748
|
block: e
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Kt(e) {
|
|
752
752
|
return /* @__PURE__ */ s(
|
|
753
753
|
ue,
|
|
754
754
|
{
|
|
@@ -757,7 +757,7 @@ function zt(e) {
|
|
|
757
757
|
block: e.block,
|
|
758
758
|
context: e.context
|
|
759
759
|
}),
|
|
760
|
-
actionAttributes:
|
|
760
|
+
actionAttributes: Je({
|
|
761
761
|
block: e.block,
|
|
762
762
|
rootState: e.context.rootState,
|
|
763
763
|
rootSetState: e.context.rootSetState,
|
|
@@ -769,18 +769,18 @@ function zt(e) {
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Jt(e) {
|
|
773
773
|
return V(() => {
|
|
774
774
|
}, []), /* @__PURE__ */ s(R, { children: e.children });
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Gt(e) {
|
|
777
777
|
function t() {
|
|
778
778
|
return e.includeBlockProps ? {
|
|
779
779
|
...fe({
|
|
780
780
|
block: e.block,
|
|
781
781
|
context: e.context
|
|
782
782
|
}),
|
|
783
|
-
...
|
|
783
|
+
...Je({
|
|
784
784
|
block: e.block,
|
|
785
785
|
rootState: e.context.rootState,
|
|
786
786
|
rootSetState: e.context.rootSetState,
|
|
@@ -789,8 +789,11 @@ function Jt(e) {
|
|
|
789
789
|
})
|
|
790
790
|
} : {};
|
|
791
791
|
}
|
|
792
|
+
function n() {
|
|
793
|
+
return e.wrapperProps;
|
|
794
|
+
}
|
|
792
795
|
return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
793
|
-
|
|
796
|
+
Jt,
|
|
794
797
|
{
|
|
795
798
|
load: e.Wrapper.load,
|
|
796
799
|
fallback: e.Wrapper.fallback,
|
|
@@ -798,9 +801,9 @@ function Jt(e) {
|
|
|
798
801
|
attributes: t(),
|
|
799
802
|
children: e.children
|
|
800
803
|
}
|
|
801
|
-
) }) : /* @__PURE__ */ s(e.Wrapper, { ...
|
|
804
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...n(), attributes: t(), children: e.children }) });
|
|
802
805
|
}
|
|
803
|
-
const
|
|
806
|
+
const Qt = ({
|
|
804
807
|
componentOptions: e,
|
|
805
808
|
builderBlock: t,
|
|
806
809
|
context: n,
|
|
@@ -830,17 +833,17 @@ const Gt = ({
|
|
|
830
833
|
includeBlockProps: a
|
|
831
834
|
} : l;
|
|
832
835
|
};
|
|
833
|
-
function
|
|
836
|
+
function ke(e) {
|
|
834
837
|
var i;
|
|
835
838
|
I(() => !1);
|
|
836
839
|
const [t, n] = I(
|
|
837
|
-
() => e.isInteractive ?
|
|
840
|
+
() => e.isInteractive ? Gt : e.componentRef
|
|
838
841
|
);
|
|
839
842
|
return V(() => {
|
|
840
843
|
}, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
|
|
841
844
|
t,
|
|
842
845
|
{
|
|
843
|
-
...
|
|
846
|
+
...Qt({
|
|
844
847
|
componentOptions: e.componentOptions,
|
|
845
848
|
builderBlock: e.builderBlock,
|
|
846
849
|
context: e.context,
|
|
@@ -863,9 +866,11 @@ function Se(e) {
|
|
|
863
866
|
}
|
|
864
867
|
) }) : null });
|
|
865
868
|
}
|
|
866
|
-
function
|
|
869
|
+
function Ce(e) {
|
|
867
870
|
const [t, n] = I(() => e.repeatContext);
|
|
868
|
-
return
|
|
871
|
+
return V(() => {
|
|
872
|
+
n(e.repeatContext);
|
|
873
|
+
}, [e.repeatContext]), /* @__PURE__ */ s(de.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
869
874
|
te,
|
|
870
875
|
{
|
|
871
876
|
block: e.block,
|
|
@@ -878,7 +883,7 @@ function ke(e) {
|
|
|
878
883
|
function te(e) {
|
|
879
884
|
var h, g, c, v;
|
|
880
885
|
function t() {
|
|
881
|
-
return
|
|
886
|
+
return $t({
|
|
882
887
|
block: e.block,
|
|
883
888
|
context: e.context
|
|
884
889
|
});
|
|
@@ -891,7 +896,7 @@ function te(e) {
|
|
|
891
896
|
var b;
|
|
892
897
|
if (n.value && !n.update && !Z())
|
|
893
898
|
return n.value;
|
|
894
|
-
const f = (b = e.block.repeat) != null && b.collection ? e.block :
|
|
899
|
+
const f = (b = e.block.repeat) != null && b.collection ? e.block : Et({
|
|
895
900
|
block: e.block,
|
|
896
901
|
localState: e.context.localState,
|
|
897
902
|
rootState: e.context.rootState,
|
|
@@ -901,7 +906,7 @@ function te(e) {
|
|
|
901
906
|
return n.value = f, n.update = !1, f;
|
|
902
907
|
}
|
|
903
908
|
function o() {
|
|
904
|
-
return
|
|
909
|
+
return Dt({
|
|
905
910
|
block: a(),
|
|
906
911
|
registeredComponents: e.registeredComponents,
|
|
907
912
|
model: e.context.model
|
|
@@ -928,11 +933,11 @@ function te(e) {
|
|
|
928
933
|
blockChildren: (f = a().children) != null ? f : [],
|
|
929
934
|
componentRef: (b = o == null ? void 0 : o()) == null ? void 0 : b.component,
|
|
930
935
|
componentOptions: {
|
|
931
|
-
...
|
|
932
|
-
...
|
|
933
|
-
...
|
|
934
|
-
|
|
935
|
-
...
|
|
936
|
+
...yt(a(), e.context),
|
|
937
|
+
...Lt(o(), a()),
|
|
938
|
+
...Ut(o(), e.context),
|
|
939
|
+
...Ft(o(), e.linkComponent),
|
|
940
|
+
...Ot(
|
|
936
941
|
o(),
|
|
937
942
|
e.registeredComponents,
|
|
938
943
|
e.context.model
|
|
@@ -948,7 +953,7 @@ function te(e) {
|
|
|
948
953
|
}
|
|
949
954
|
return V(() => {
|
|
950
955
|
const f = a().id, b = a().animations;
|
|
951
|
-
b && f &&
|
|
956
|
+
b && f && Pt(
|
|
952
957
|
b.map((S) => ({
|
|
953
958
|
...S,
|
|
954
959
|
elementId: f
|
|
@@ -957,18 +962,18 @@ function te(e) {
|
|
|
957
962
|
}, []), V(() => {
|
|
958
963
|
n.update = !0;
|
|
959
964
|
}), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
|
|
960
|
-
/* @__PURE__ */ s(
|
|
965
|
+
/* @__PURE__ */ s(_t, { block: a(), context: e.context }),
|
|
961
966
|
(h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
|
|
962
|
-
|
|
967
|
+
Ce,
|
|
963
968
|
{
|
|
964
969
|
repeatContext: f.context,
|
|
965
970
|
block: f.block,
|
|
966
971
|
registeredComponents: e.registeredComponents,
|
|
967
972
|
linkComponent: e.linkComponent
|
|
968
973
|
},
|
|
969
|
-
b
|
|
974
|
+
Se(b)
|
|
970
975
|
)) }) : /* @__PURE__ */ s(
|
|
971
|
-
|
|
976
|
+
ke,
|
|
972
977
|
{
|
|
973
978
|
componentRef: u().componentRef,
|
|
974
979
|
componentOptions: u().componentOptions,
|
|
@@ -981,23 +986,23 @@ function te(e) {
|
|
|
981
986
|
isInteractive: u().isInteractive
|
|
982
987
|
}
|
|
983
988
|
) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
|
|
984
|
-
|
|
989
|
+
Ce,
|
|
985
990
|
{
|
|
986
991
|
repeatContext: f.context,
|
|
987
992
|
block: f.block,
|
|
988
993
|
registeredComponents: e.registeredComponents,
|
|
989
994
|
linkComponent: e.linkComponent
|
|
990
995
|
},
|
|
991
|
-
b
|
|
996
|
+
Se(b)
|
|
992
997
|
)) }) : /* @__PURE__ */ B(
|
|
993
|
-
|
|
998
|
+
Kt,
|
|
994
999
|
{
|
|
995
1000
|
Wrapper: r(),
|
|
996
1001
|
block: a(),
|
|
997
1002
|
context: e.context,
|
|
998
1003
|
children: [
|
|
999
1004
|
/* @__PURE__ */ s(
|
|
1000
|
-
|
|
1005
|
+
ke,
|
|
1001
1006
|
{
|
|
1002
1007
|
componentRef: u().componentRef,
|
|
1003
1008
|
componentOptions: u().componentOptions,
|
|
@@ -1025,7 +1030,7 @@ function te(e) {
|
|
|
1025
1030
|
) })
|
|
1026
1031
|
] }) : null });
|
|
1027
1032
|
}
|
|
1028
|
-
function
|
|
1033
|
+
function Yt(e) {
|
|
1029
1034
|
const t = O(null);
|
|
1030
1035
|
I(() => !1);
|
|
1031
1036
|
function n() {
|
|
@@ -1095,9 +1100,9 @@ function Qt(e) {
|
|
|
1095
1100
|
}
|
|
1096
1101
|
function $(e) {
|
|
1097
1102
|
var i, a, o;
|
|
1098
|
-
const t = ve(de), n = ve(
|
|
1103
|
+
const t = ve(de), n = ve(De);
|
|
1099
1104
|
return /* @__PURE__ */ s(
|
|
1100
|
-
|
|
1105
|
+
Yt,
|
|
1101
1106
|
{
|
|
1102
1107
|
blocks: e.blocks,
|
|
1103
1108
|
parent: e.parent,
|
|
@@ -1119,8 +1124,8 @@ function $(e) {
|
|
|
1119
1124
|
}
|
|
1120
1125
|
);
|
|
1121
1126
|
}
|
|
1122
|
-
const
|
|
1123
|
-
function
|
|
1127
|
+
const Xt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1128
|
+
function Zt(e) {
|
|
1124
1129
|
var b, S;
|
|
1125
1130
|
function t() {
|
|
1126
1131
|
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
@@ -1196,7 +1201,7 @@ function Xt(e) {
|
|
|
1196
1201
|
}
|
|
1197
1202
|
function c(p) {
|
|
1198
1203
|
var C, P;
|
|
1199
|
-
return
|
|
1204
|
+
return Ke(
|
|
1200
1205
|
((P = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : P.breakpoints) || {}
|
|
1201
1206
|
)[p].max;
|
|
1202
1207
|
}
|
|
@@ -1234,14 +1239,14 @@ function Xt(e) {
|
|
|
1234
1239
|
href: p.link
|
|
1235
1240
|
} : {},
|
|
1236
1241
|
[z()]: "builder-column",
|
|
1237
|
-
style:
|
|
1242
|
+
style: He(g(k))
|
|
1238
1243
|
};
|
|
1239
1244
|
}
|
|
1240
1245
|
return /* @__PURE__ */ B(R, { children: [
|
|
1241
1246
|
/* @__PURE__ */ B(
|
|
1242
1247
|
"div",
|
|
1243
1248
|
{
|
|
1244
|
-
className:
|
|
1249
|
+
className: Xt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
|
|
1245
1250
|
style: h(),
|
|
1246
1251
|
children: [
|
|
1247
1252
|
/* @__PURE__ */ s(
|
|
@@ -1285,25 +1290,25 @@ function Xt(e) {
|
|
|
1285
1290
|
}` })
|
|
1286
1291
|
] });
|
|
1287
1292
|
}
|
|
1288
|
-
function
|
|
1293
|
+
function en(e) {
|
|
1289
1294
|
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1290
1295
|
}
|
|
1291
|
-
function
|
|
1296
|
+
function Te(e) {
|
|
1292
1297
|
return e.replace(/http(s)?:/, "");
|
|
1293
1298
|
}
|
|
1294
|
-
function
|
|
1299
|
+
function tn(e = "", t, n) {
|
|
1295
1300
|
const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1296
1301
|
return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
|
|
1297
1302
|
}
|
|
1298
|
-
function
|
|
1303
|
+
function nn(e, t) {
|
|
1299
1304
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1300
1305
|
return e;
|
|
1301
1306
|
if (t === "master")
|
|
1302
|
-
return
|
|
1307
|
+
return Te(e);
|
|
1303
1308
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1304
1309
|
if (n) {
|
|
1305
1310
|
const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
|
|
1306
|
-
return
|
|
1311
|
+
return Te(`${i[0]}_${o}${a}`);
|
|
1307
1312
|
}
|
|
1308
1313
|
return null;
|
|
1309
1314
|
}
|
|
@@ -1314,11 +1319,11 @@ function ae(e) {
|
|
|
1314
1319
|
if (e.match(/builder\.io/)) {
|
|
1315
1320
|
let n = e;
|
|
1316
1321
|
const i = Number(e.split("?width=")[1]);
|
|
1317
|
-
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${
|
|
1322
|
+
return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${tn(e, "width", a)} ${a}w`).concat([n]).join(", ");
|
|
1318
1323
|
}
|
|
1319
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1324
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [nn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1320
1325
|
}
|
|
1321
|
-
function
|
|
1326
|
+
function an(e) {
|
|
1322
1327
|
var a, o, r, l, d, u;
|
|
1323
1328
|
function t() {
|
|
1324
1329
|
var c;
|
|
@@ -1350,7 +1355,8 @@ function nn(e) {
|
|
|
1350
1355
|
};
|
|
1351
1356
|
return e.aspectRatio ? h : void 0;
|
|
1352
1357
|
}
|
|
1353
|
-
return
|
|
1358
|
+
return V(() => {
|
|
1359
|
+
}, []), /* @__PURE__ */ B(R, { children: [
|
|
1354
1360
|
/* @__PURE__ */ B(R, { children: [
|
|
1355
1361
|
/* @__PURE__ */ B("picture", { children: [
|
|
1356
1362
|
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
@@ -1367,7 +1373,7 @@ function nn(e) {
|
|
|
1367
1373
|
objectFit: e.backgroundSize || "cover",
|
|
1368
1374
|
...i()
|
|
1369
1375
|
},
|
|
1370
|
-
className: "builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
1376
|
+
className: "builder-image" + (e.className ? " " + e.className : "") + " img-3cc22d08",
|
|
1371
1377
|
src: e.image,
|
|
1372
1378
|
srcSet: t(),
|
|
1373
1379
|
sizes: e.sizes
|
|
@@ -1377,23 +1383,23 @@ function nn(e) {
|
|
|
1377
1383
|
e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1378
1384
|
"div",
|
|
1379
1385
|
{
|
|
1380
|
-
className: "builder-image-sizer div-
|
|
1386
|
+
className: "builder-image-sizer div-3cc22d08",
|
|
1381
1387
|
style: {
|
|
1382
1388
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1383
1389
|
}
|
|
1384
1390
|
}
|
|
1385
1391
|
) : null,
|
|
1386
1392
|
(l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
|
|
1387
|
-
!e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-
|
|
1393
|
+
!e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
|
|
1388
1394
|
] }),
|
|
1389
|
-
/* @__PURE__ */ s("style", { children: `.img-
|
|
1395
|
+
/* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
|
|
1390
1396
|
opacity: 1;
|
|
1391
1397
|
transition: opacity 0.2s ease-in-out;
|
|
1392
|
-
}.div-
|
|
1398
|
+
}.div-3cc22d08 {
|
|
1393
1399
|
width: 100%;
|
|
1394
1400
|
pointer-events: none;
|
|
1395
1401
|
font-size: 0;
|
|
1396
|
-
}.div-
|
|
1402
|
+
}.div-3cc22d08-2 {
|
|
1397
1403
|
display: flex;
|
|
1398
1404
|
flex-direction: column;
|
|
1399
1405
|
align-items: stretch;
|
|
@@ -1405,7 +1411,7 @@ function nn(e) {
|
|
|
1405
1411
|
}` })
|
|
1406
1412
|
] });
|
|
1407
1413
|
}
|
|
1408
|
-
function
|
|
1414
|
+
function on(e) {
|
|
1409
1415
|
return /* @__PURE__ */ s(
|
|
1410
1416
|
"section",
|
|
1411
1417
|
{
|
|
@@ -1486,7 +1492,7 @@ const oe = {
|
|
|
1486
1492
|
}
|
|
1487
1493
|
}
|
|
1488
1494
|
}]
|
|
1489
|
-
},
|
|
1495
|
+
}, rn = {
|
|
1490
1496
|
name: "Builder:Accordion",
|
|
1491
1497
|
canHaveChildren: !0,
|
|
1492
1498
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1550,8 +1556,8 @@ const oe = {
|
|
|
1550
1556
|
builderComponents: !0,
|
|
1551
1557
|
builderLinkComponent: !0
|
|
1552
1558
|
}
|
|
1553
|
-
},
|
|
1554
|
-
function
|
|
1559
|
+
}, we = (e) => e.toString();
|
|
1560
|
+
function ln(e) {
|
|
1555
1561
|
var g;
|
|
1556
1562
|
const [t, n] = I(() => []);
|
|
1557
1563
|
function i() {
|
|
@@ -1629,7 +1635,7 @@ function rn(e) {
|
|
|
1629
1635
|
function h(c) {
|
|
1630
1636
|
t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
|
|
1631
1637
|
}
|
|
1632
|
-
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(
|
|
1638
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(ot.Fragment, { children: [
|
|
1633
1639
|
/* @__PURE__ */ s(
|
|
1634
1640
|
"div",
|
|
1635
1641
|
{
|
|
@@ -1638,7 +1644,7 @@ function rn(e) {
|
|
|
1638
1644
|
...o(),
|
|
1639
1645
|
...e.grid && {
|
|
1640
1646
|
width: e.gridRowWidth,
|
|
1641
|
-
order: d() !== null ?
|
|
1647
|
+
order: d() !== null ? we(v) : we(v + 1)
|
|
1642
1648
|
}
|
|
1643
1649
|
},
|
|
1644
1650
|
"data-index": v,
|
|
@@ -1676,7 +1682,7 @@ function rn(e) {
|
|
|
1676
1682
|
) : null
|
|
1677
1683
|
] }, v)) });
|
|
1678
1684
|
}
|
|
1679
|
-
const
|
|
1685
|
+
const sn = {
|
|
1680
1686
|
name: "Core:Button",
|
|
1681
1687
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
1682
1688
|
defaultStyles: {
|
|
@@ -1712,7 +1718,7 @@ const ln = {
|
|
|
1712
1718
|
shouldReceiveBuilderProps: {
|
|
1713
1719
|
builderLinkComponent: !0
|
|
1714
1720
|
}
|
|
1715
|
-
},
|
|
1721
|
+
}, cn = {
|
|
1716
1722
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
1717
1723
|
name: "Columns",
|
|
1718
1724
|
isRSC: !0,
|
|
@@ -1919,13 +1925,13 @@ const ln = {
|
|
|
1919
1925
|
builderComponents: !0,
|
|
1920
1926
|
builderLinkComponent: !0
|
|
1921
1927
|
}
|
|
1922
|
-
},
|
|
1928
|
+
}, un = {
|
|
1923
1929
|
name: "Fragment",
|
|
1924
1930
|
static: !0,
|
|
1925
1931
|
hidden: !0,
|
|
1926
1932
|
canHaveChildren: !0,
|
|
1927
1933
|
noWrap: !0
|
|
1928
|
-
}, he = ["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"],
|
|
1934
|
+
}, he = ["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"], dn = ["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"], mn = {
|
|
1929
1935
|
name: "Image",
|
|
1930
1936
|
static: !0,
|
|
1931
1937
|
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",
|
|
@@ -2037,7 +2043,7 @@ const ln = {
|
|
|
2037
2043
|
shouldReceiveBuilderProps: {
|
|
2038
2044
|
builderBlock: !0
|
|
2039
2045
|
}
|
|
2040
|
-
},
|
|
2046
|
+
}, fn = {
|
|
2041
2047
|
name: "PersonalizationContainer",
|
|
2042
2048
|
shouldReceiveBuilderProps: {
|
|
2043
2049
|
builderBlock: !0,
|
|
@@ -2083,7 +2089,7 @@ function X(e) {
|
|
|
2083
2089
|
}
|
|
2084
2090
|
);
|
|
2085
2091
|
}
|
|
2086
|
-
function
|
|
2092
|
+
function hn(e, t, n, i) {
|
|
2087
2093
|
function a(u) {
|
|
2088
2094
|
return typeof u == "string";
|
|
2089
2095
|
}
|
|
@@ -2140,7 +2146,7 @@ function fn(e, t, n, i) {
|
|
|
2140
2146
|
}, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2141
2147
|
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((u) => r(e, u));
|
|
2142
2148
|
}
|
|
2143
|
-
const
|
|
2149
|
+
const gn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
2144
2150
|
if (!navigator.cookieEnabled) {
|
|
2145
2151
|
return;
|
|
2146
2152
|
}
|
|
@@ -2193,7 +2199,7 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2193
2199
|
} else if (variants && variants.length > 0) {
|
|
2194
2200
|
removeVariants();
|
|
2195
2201
|
}
|
|
2196
|
-
}`,
|
|
2202
|
+
}`, bn = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2197
2203
|
function isString(val) {
|
|
2198
2204
|
return typeof val === 'string';
|
|
2199
2205
|
}
|
|
@@ -2272,10 +2278,10 @@ const hn = `function getPersonalizedVariant(variants, blockId, locale) {
|
|
|
2272
2278
|
return objectMatchesQuery(userAttributes, filter);
|
|
2273
2279
|
});
|
|
2274
2280
|
}`;
|
|
2275
|
-
function
|
|
2281
|
+
function pn(e, t) {
|
|
2276
2282
|
return !(!(e && e.length > 0) || !t || U());
|
|
2277
2283
|
}
|
|
2278
|
-
function
|
|
2284
|
+
function yn({
|
|
2279
2285
|
variants: e,
|
|
2280
2286
|
previewingIndex: t,
|
|
2281
2287
|
isHydrated: n,
|
|
@@ -2302,21 +2308,21 @@ function pn({
|
|
|
2302
2308
|
}
|
|
2303
2309
|
return o;
|
|
2304
2310
|
}
|
|
2305
|
-
const
|
|
2311
|
+
const vn = (e, t, n) => `
|
|
2306
2312
|
(function() {
|
|
2313
|
+
${bn}
|
|
2307
2314
|
${gn}
|
|
2308
|
-
${hn}
|
|
2309
2315
|
getPersonalizedVariant(${JSON.stringify(e)}, "${t}"${n ? `, "${n}"` : ""})
|
|
2310
2316
|
})();
|
|
2311
2317
|
`;
|
|
2312
|
-
function
|
|
2318
|
+
function xn(e) {
|
|
2313
2319
|
var b, S, p, k, C, P, w;
|
|
2314
2320
|
const t = O(null), [n, i] = I(
|
|
2315
2321
|
() => be.getUserAttributes()
|
|
2316
2322
|
), [a, o] = I(
|
|
2317
2323
|
() => {
|
|
2318
2324
|
var x, m, y;
|
|
2319
|
-
return
|
|
2325
|
+
return vn(
|
|
2320
2326
|
e.variants,
|
|
2321
2327
|
((x = e.builderBlock) == null ? void 0 : x.id) || "none",
|
|
2322
2328
|
(y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
|
|
@@ -2325,7 +2331,7 @@ function vn(e) {
|
|
|
2325
2331
|
), [r, l] = I(() => []), [d, u] = I(
|
|
2326
2332
|
() => {
|
|
2327
2333
|
var x;
|
|
2328
|
-
return
|
|
2334
|
+
return pn(
|
|
2329
2335
|
e.variants,
|
|
2330
2336
|
j((x = e.builderContext) == null ? void 0 : x.canTrack)
|
|
2331
2337
|
);
|
|
@@ -2334,7 +2340,7 @@ function vn(e) {
|
|
|
2334
2340
|
function c() {
|
|
2335
2341
|
return (e.variants || []).filter((x) => {
|
|
2336
2342
|
var m, y, T, E;
|
|
2337
|
-
return
|
|
2343
|
+
return hn(
|
|
2338
2344
|
{
|
|
2339
2345
|
...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
|
|
2340
2346
|
locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
|
|
@@ -2349,7 +2355,7 @@ function vn(e) {
|
|
|
2349
2355
|
}
|
|
2350
2356
|
function v() {
|
|
2351
2357
|
var x;
|
|
2352
|
-
return
|
|
2358
|
+
return yn({
|
|
2353
2359
|
variants: e.variants,
|
|
2354
2360
|
fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
|
|
2355
2361
|
isHydrated: h,
|
|
@@ -2456,7 +2462,7 @@ function vn(e) {
|
|
|
2456
2462
|
}
|
|
2457
2463
|
);
|
|
2458
2464
|
}
|
|
2459
|
-
const
|
|
2465
|
+
const Sn = {
|
|
2460
2466
|
name: "Core:Section",
|
|
2461
2467
|
static: !0,
|
|
2462
2468
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2495,7 +2501,7 @@ const xn = {
|
|
|
2495
2501
|
}
|
|
2496
2502
|
}
|
|
2497
2503
|
}]
|
|
2498
|
-
},
|
|
2504
|
+
}, kn = {
|
|
2499
2505
|
name: "Slot",
|
|
2500
2506
|
isRSC: !0,
|
|
2501
2507
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2513,7 +2519,7 @@ const xn = {
|
|
|
2513
2519
|
builderComponents: !0
|
|
2514
2520
|
}
|
|
2515
2521
|
};
|
|
2516
|
-
function
|
|
2522
|
+
function Cn(e) {
|
|
2517
2523
|
var t, n, i;
|
|
2518
2524
|
return /* @__PURE__ */ s(
|
|
2519
2525
|
"div",
|
|
@@ -2537,7 +2543,7 @@ function kn(e) {
|
|
|
2537
2543
|
}
|
|
2538
2544
|
);
|
|
2539
2545
|
}
|
|
2540
|
-
const
|
|
2546
|
+
const Tn = {
|
|
2541
2547
|
name: "Symbol",
|
|
2542
2548
|
noWrap: !0,
|
|
2543
2549
|
static: !0,
|
|
@@ -2614,7 +2620,7 @@ const Cn = {
|
|
|
2614
2620
|
text: "New tab content "
|
|
2615
2621
|
}
|
|
2616
2622
|
}
|
|
2617
|
-
},
|
|
2623
|
+
}, wn = {
|
|
2618
2624
|
name: "Builder: Tabs",
|
|
2619
2625
|
inputs: [{
|
|
2620
2626
|
name: "tabs",
|
|
@@ -2718,7 +2724,7 @@ const Cn = {
|
|
|
2718
2724
|
builderLinkComponent: !0
|
|
2719
2725
|
}
|
|
2720
2726
|
};
|
|
2721
|
-
function
|
|
2727
|
+
function In(e) {
|
|
2722
2728
|
var o;
|
|
2723
2729
|
const [t, n] = I(
|
|
2724
2730
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
@@ -2777,11 +2783,8 @@ function wn(e) {
|
|
|
2777
2783
|
) }) : null
|
|
2778
2784
|
] });
|
|
2779
2785
|
}
|
|
2780
|
-
const
|
|
2781
|
-
shouldReceiveBuilderProps: {
|
|
2782
|
-
builderBlock: !1,
|
|
2783
|
-
builderContext: !0
|
|
2784
|
-
},
|
|
2786
|
+
const En = {
|
|
2787
|
+
shouldReceiveBuilderProps: {},
|
|
2785
2788
|
name: "Text",
|
|
2786
2789
|
static: !0,
|
|
2787
2790
|
isRSC: !0,
|
|
@@ -2800,7 +2803,7 @@ const In = {
|
|
|
2800
2803
|
textAlign: "center"
|
|
2801
2804
|
}
|
|
2802
2805
|
};
|
|
2803
|
-
function
|
|
2806
|
+
function Rn(e) {
|
|
2804
2807
|
var t;
|
|
2805
2808
|
return /* @__PURE__ */ s(
|
|
2806
2809
|
"div",
|
|
@@ -2813,7 +2816,7 @@ function En(e) {
|
|
|
2813
2816
|
}
|
|
2814
2817
|
);
|
|
2815
2818
|
}
|
|
2816
|
-
const
|
|
2819
|
+
const Pn = {
|
|
2817
2820
|
name: "Custom Code",
|
|
2818
2821
|
static: !0,
|
|
2819
2822
|
requiredPermissions: ["editCode"],
|
|
@@ -2836,7 +2839,7 @@ const Rn = {
|
|
|
2836
2839
|
advanced: !0
|
|
2837
2840
|
}]
|
|
2838
2841
|
};
|
|
2839
|
-
function
|
|
2842
|
+
function Vn(e) {
|
|
2840
2843
|
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []);
|
|
2841
2844
|
function r() {
|
|
2842
2845
|
var d;
|
|
@@ -2882,7 +2885,7 @@ function Pn(e) {
|
|
|
2882
2885
|
}
|
|
2883
2886
|
);
|
|
2884
2887
|
}
|
|
2885
|
-
const
|
|
2888
|
+
const Bn = {
|
|
2886
2889
|
name: "Embed",
|
|
2887
2890
|
static: !0,
|
|
2888
2891
|
inputs: [{
|
|
@@ -2897,8 +2900,8 @@ const Vn = {
|
|
|
2897
2900
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
2898
2901
|
hideFromUI: !0
|
|
2899
2902
|
}]
|
|
2900
|
-
},
|
|
2901
|
-
function
|
|
2903
|
+
}, An = ["text/javascript", "application/javascript", "application/ecmascript"], Nn = (e) => An.includes(e.type);
|
|
2904
|
+
function Wn(e) {
|
|
2902
2905
|
const t = O(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, l] = I(() => !1);
|
|
2903
2906
|
function d() {
|
|
2904
2907
|
if (!t.current || !t.current.getElementsByTagName)
|
|
@@ -2910,7 +2913,7 @@ function Nn(e) {
|
|
|
2910
2913
|
n.push(g.src);
|
|
2911
2914
|
const c = document.createElement("script");
|
|
2912
2915
|
c.async = !0, c.src = g.src, document.head.appendChild(c);
|
|
2913
|
-
} else if (
|
|
2916
|
+
} else if (Nn(g) && !a.includes(g.innerText))
|
|
2914
2917
|
try {
|
|
2915
2918
|
a.push(g.innerText), new Function(g.innerText)();
|
|
2916
2919
|
} catch (c) {
|
|
@@ -2929,7 +2932,7 @@ function Nn(e) {
|
|
|
2929
2932
|
}
|
|
2930
2933
|
);
|
|
2931
2934
|
}
|
|
2932
|
-
const
|
|
2935
|
+
const Dn = {
|
|
2933
2936
|
name: "Form:Form",
|
|
2934
2937
|
// editableTags: ['builder-form-error']
|
|
2935
2938
|
defaults: {
|
|
@@ -3166,11 +3169,11 @@ const Wn = {
|
|
|
3166
3169
|
builderComponents: !0,
|
|
3167
3170
|
builderLinkComponent: !0
|
|
3168
3171
|
}
|
|
3169
|
-
},
|
|
3172
|
+
}, $n = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Fn = () => {
|
|
3170
3173
|
const e = process.env.NODE_ENV || "production";
|
|
3171
|
-
return
|
|
3174
|
+
return $n.includes(e) ? e : "production";
|
|
3172
3175
|
};
|
|
3173
|
-
function
|
|
3176
|
+
function On(e) {
|
|
3174
3177
|
const t = O(null), [n, i] = I(() => "unsubmitted"), [a, o] = I(() => null), [r, l] = I(() => "");
|
|
3175
3178
|
function d(g) {
|
|
3176
3179
|
var v, f;
|
|
@@ -3228,7 +3231,7 @@ function Fn(e) {
|
|
|
3228
3231
|
else {
|
|
3229
3232
|
const m = {};
|
|
3230
3233
|
Array.from(k).forEach(({ value: y, key: T }) => {
|
|
3231
|
-
|
|
3234
|
+
Le(m, T, y);
|
|
3232
3235
|
}), S = JSON.stringify(m);
|
|
3233
3236
|
}
|
|
3234
3237
|
C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
|
|
@@ -3236,15 +3239,15 @@ function Fn(e) {
|
|
|
3236
3239
|
if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
|
|
3237
3240
|
return;
|
|
3238
3241
|
i("sending");
|
|
3239
|
-
const w = `${
|
|
3242
|
+
const w = `${Fn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
3240
3243
|
e.sendSubmissionsToEmail || ""
|
|
3241
3244
|
)}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
|
|
3242
|
-
|
|
3245
|
+
Be(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
|
|
3243
3246
|
async (m) => {
|
|
3244
3247
|
let y;
|
|
3245
3248
|
const T = m.headers.get("content-type");
|
|
3246
3249
|
if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
|
|
3247
|
-
let E =
|
|
3250
|
+
let E = $e(y, e.errorMessagePath);
|
|
3248
3251
|
E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
|
|
3249
3252
|
}
|
|
3250
3253
|
if (o(y), i(m.ok ? "success" : "error"), m.ok) {
|
|
@@ -3322,7 +3325,7 @@ function Fn(e) {
|
|
|
3322
3325
|
" "
|
|
3323
3326
|
] });
|
|
3324
3327
|
}
|
|
3325
|
-
const
|
|
3328
|
+
const Ln = {
|
|
3326
3329
|
name: "Form:Input",
|
|
3327
3330
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3328
3331
|
inputs: [
|
|
@@ -3374,8 +3377,8 @@ const On = {
|
|
|
3374
3377
|
borderColor: "#ccc"
|
|
3375
3378
|
}
|
|
3376
3379
|
};
|
|
3377
|
-
function
|
|
3378
|
-
return /* @__PURE__ */
|
|
3380
|
+
function Un(e) {
|
|
3381
|
+
return /* @__PURE__ */ We(
|
|
3379
3382
|
"input",
|
|
3380
3383
|
{
|
|
3381
3384
|
...e.attributes,
|
|
@@ -3389,7 +3392,7 @@ function Ln(e) {
|
|
|
3389
3392
|
}
|
|
3390
3393
|
);
|
|
3391
3394
|
}
|
|
3392
|
-
const
|
|
3395
|
+
const _n = {
|
|
3393
3396
|
name: "Form:Select",
|
|
3394
3397
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3395
3398
|
defaultStyles: {
|
|
@@ -3432,9 +3435,9 @@ const Un = {
|
|
|
3432
3435
|
static: !0,
|
|
3433
3436
|
noWrap: !0
|
|
3434
3437
|
};
|
|
3435
|
-
function
|
|
3438
|
+
function qn(e) {
|
|
3436
3439
|
var t;
|
|
3437
|
-
return /* @__PURE__ */
|
|
3440
|
+
return /* @__PURE__ */ We(
|
|
3438
3441
|
"select",
|
|
3439
3442
|
{
|
|
3440
3443
|
...e.attributes,
|
|
@@ -3447,7 +3450,7 @@ function _n(e) {
|
|
|
3447
3450
|
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
3448
3451
|
);
|
|
3449
3452
|
}
|
|
3450
|
-
const
|
|
3453
|
+
const Mn = {
|
|
3451
3454
|
name: "Form:SubmitButton",
|
|
3452
3455
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3453
3456
|
defaultStyles: {
|
|
@@ -3473,10 +3476,10 @@ const qn = {
|
|
|
3473
3476
|
// TODO: defaultChildren
|
|
3474
3477
|
// canHaveChildren: true,
|
|
3475
3478
|
};
|
|
3476
|
-
function
|
|
3479
|
+
function Hn(e) {
|
|
3477
3480
|
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
3478
3481
|
}
|
|
3479
|
-
const
|
|
3482
|
+
const jn = {
|
|
3480
3483
|
name: "Form:TextArea",
|
|
3481
3484
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3482
3485
|
inputs: [{
|
|
@@ -3513,7 +3516,7 @@ const Hn = {
|
|
|
3513
3516
|
static: !0,
|
|
3514
3517
|
noWrap: !0
|
|
3515
3518
|
};
|
|
3516
|
-
function
|
|
3519
|
+
function zn(e) {
|
|
3517
3520
|
return /* @__PURE__ */ s(
|
|
3518
3521
|
"textarea",
|
|
3519
3522
|
{
|
|
@@ -3526,7 +3529,7 @@ function jn(e) {
|
|
|
3526
3529
|
}
|
|
3527
3530
|
);
|
|
3528
3531
|
}
|
|
3529
|
-
const
|
|
3532
|
+
const Kn = {
|
|
3530
3533
|
// friendlyName?
|
|
3531
3534
|
name: "Raw:Img",
|
|
3532
3535
|
hideFromInsertMenu: !0,
|
|
@@ -3541,7 +3544,7 @@ const zn = {
|
|
|
3541
3544
|
noWrap: !0,
|
|
3542
3545
|
static: !0
|
|
3543
3546
|
};
|
|
3544
|
-
function
|
|
3547
|
+
function Jn(e) {
|
|
3545
3548
|
return /* @__PURE__ */ s(
|
|
3546
3549
|
"img",
|
|
3547
3550
|
{
|
|
@@ -3556,7 +3559,7 @@ function Kn(e) {
|
|
|
3556
3559
|
A() && e.imgSrc || "default-key"
|
|
3557
3560
|
);
|
|
3558
3561
|
}
|
|
3559
|
-
const
|
|
3562
|
+
const Gn = {
|
|
3560
3563
|
name: "Video",
|
|
3561
3564
|
canHaveChildren: !0,
|
|
3562
3565
|
defaultStyles: {
|
|
@@ -3567,7 +3570,7 @@ const Jn = {
|
|
|
3567
3570
|
inputs: [{
|
|
3568
3571
|
name: "video",
|
|
3569
3572
|
type: "file",
|
|
3570
|
-
allowedFileTypes:
|
|
3573
|
+
allowedFileTypes: dn,
|
|
3571
3574
|
bubble: !0,
|
|
3572
3575
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
3573
3576
|
required: !0
|
|
@@ -3641,7 +3644,7 @@ const Jn = {
|
|
|
3641
3644
|
builderBlock: !0
|
|
3642
3645
|
}
|
|
3643
3646
|
};
|
|
3644
|
-
function
|
|
3647
|
+
function Qn(e) {
|
|
3645
3648
|
var r, l, d, u, h, g, c;
|
|
3646
3649
|
const t = O(null);
|
|
3647
3650
|
function n() {
|
|
@@ -3777,67 +3780,67 @@ function Gn(e) {
|
|
|
3777
3780
|
}
|
|
3778
3781
|
);
|
|
3779
3782
|
}
|
|
3780
|
-
const
|
|
3781
|
-
component:
|
|
3782
|
-
...
|
|
3783
|
+
const Yn = () => [{
|
|
3784
|
+
component: Vn,
|
|
3785
|
+
...Pn
|
|
3783
3786
|
}, {
|
|
3784
|
-
component:
|
|
3785
|
-
...
|
|
3787
|
+
component: Wn,
|
|
3788
|
+
...Bn
|
|
3786
3789
|
}, {
|
|
3787
|
-
component:
|
|
3788
|
-
...
|
|
3790
|
+
component: On,
|
|
3791
|
+
...Dn
|
|
3789
3792
|
}, {
|
|
3790
|
-
component:
|
|
3791
|
-
...
|
|
3793
|
+
component: Un,
|
|
3794
|
+
...Ln
|
|
3792
3795
|
}, {
|
|
3793
|
-
component:
|
|
3794
|
-
...
|
|
3796
|
+
component: Hn,
|
|
3797
|
+
...Mn
|
|
3795
3798
|
}, {
|
|
3796
|
-
component:
|
|
3797
|
-
...
|
|
3799
|
+
component: qn,
|
|
3800
|
+
..._n
|
|
3798
3801
|
}, {
|
|
3799
|
-
component:
|
|
3800
|
-
...
|
|
3802
|
+
component: zn,
|
|
3803
|
+
...jn
|
|
3801
3804
|
}, {
|
|
3802
|
-
component:
|
|
3803
|
-
...
|
|
3805
|
+
component: Jn,
|
|
3806
|
+
...Kn
|
|
3804
3807
|
}, {
|
|
3805
|
-
component:
|
|
3806
|
-
...
|
|
3807
|
-
}],
|
|
3808
|
-
component:
|
|
3809
|
-
...ln
|
|
3810
|
-
}, {
|
|
3811
|
-
component: Xt,
|
|
3808
|
+
component: Qn,
|
|
3809
|
+
...Gn
|
|
3810
|
+
}], Ie = () => [{
|
|
3811
|
+
component: st,
|
|
3812
3812
|
...sn
|
|
3813
3813
|
}, {
|
|
3814
3814
|
component: Zt,
|
|
3815
3815
|
...cn
|
|
3816
3816
|
}, {
|
|
3817
|
-
component:
|
|
3818
|
-
...
|
|
3817
|
+
component: en,
|
|
3818
|
+
...un
|
|
3819
3819
|
}, {
|
|
3820
3820
|
component: an,
|
|
3821
|
-
...
|
|
3821
|
+
...mn
|
|
3822
3822
|
}, {
|
|
3823
|
-
component:
|
|
3823
|
+
component: on,
|
|
3824
3824
|
...Sn
|
|
3825
3825
|
}, {
|
|
3826
|
-
component:
|
|
3827
|
-
...
|
|
3826
|
+
component: Cn,
|
|
3827
|
+
...kn
|
|
3828
|
+
}, {
|
|
3829
|
+
component: ki,
|
|
3830
|
+
...Tn
|
|
3828
3831
|
}, {
|
|
3829
|
-
component:
|
|
3830
|
-
...
|
|
3832
|
+
component: Rn,
|
|
3833
|
+
...En
|
|
3831
3834
|
}, {
|
|
3832
|
-
component:
|
|
3833
|
-
...
|
|
3835
|
+
component: xn,
|
|
3836
|
+
...fn
|
|
3834
3837
|
}, {
|
|
3835
|
-
component:
|
|
3836
|
-
...
|
|
3838
|
+
component: In,
|
|
3839
|
+
...wn
|
|
3837
3840
|
}, {
|
|
3838
|
-
component:
|
|
3839
|
-
...
|
|
3840
|
-
}, ...
|
|
3841
|
+
component: ln,
|
|
3842
|
+
...rn
|
|
3843
|
+
}, ...Yn()], Xn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
3841
3844
|
function getAndSetVariantId() {
|
|
3842
3845
|
function setCookie(name, value, days) {
|
|
3843
3846
|
let expires = '';
|
|
@@ -3896,7 +3899,7 @@ const Qn = () => [{
|
|
|
3896
3899
|
}).join('');
|
|
3897
3900
|
styleEl.innerHTML = newStyleStr;
|
|
3898
3901
|
}
|
|
3899
|
-
}`,
|
|
3902
|
+
}`, Zn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
3900
3903
|
if (!navigator.cookieEnabled) {
|
|
3901
3904
|
return;
|
|
3902
3905
|
}
|
|
@@ -3930,29 +3933,29 @@ const Qn = () => [{
|
|
|
3930
3933
|
thisScriptEl?.remove();
|
|
3931
3934
|
}
|
|
3932
3935
|
return;
|
|
3933
|
-
}`,
|
|
3936
|
+
}`, Ge = "builderIoAbTest", Qe = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
3934
3937
|
...t,
|
|
3935
3938
|
testVariationId: t.id,
|
|
3936
3939
|
id: e == null ? void 0 : e.id
|
|
3937
|
-
})),
|
|
3940
|
+
})), ei = ({
|
|
3938
3941
|
canTrack: e,
|
|
3939
3942
|
content: t
|
|
3940
|
-
}) => !(!(G(t).length > 0) || !e || U()),
|
|
3941
|
-
window.${Je} = ${Yn}
|
|
3943
|
+
}) => !(!(G(t).length > 0) || !e || U()), ti = (e) => e === "react" || e === "reactNative", ni = L === "angular", Ye = ti(L), ii = () => `
|
|
3942
3944
|
window.${Ge} = ${Xn}
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3945
|
+
window.${Qe} = ${Zn}
|
|
3946
|
+
`, ai = (e, t) => `
|
|
3947
|
+
window.${Ge}(
|
|
3948
|
+
"${t}",${JSON.stringify(e)}, ${Ye}, ${ni}
|
|
3949
|
+
)`, oi = ({
|
|
3947
3950
|
contentId: e,
|
|
3948
3951
|
variationId: t
|
|
3949
|
-
}) => `window.${
|
|
3950
|
-
"${t}", "${e}", ${
|
|
3952
|
+
}) => `window.${Qe}(
|
|
3953
|
+
"${t}", "${e}", ${Ye}
|
|
3951
3954
|
)`;
|
|
3952
|
-
function
|
|
3955
|
+
function Ee(e) {
|
|
3953
3956
|
return Math.round(e * 1e3) / 1e3;
|
|
3954
3957
|
}
|
|
3955
|
-
const
|
|
3958
|
+
const ri = (e, t, n = !0) => {
|
|
3956
3959
|
if (!(e instanceof HTMLElement))
|
|
3957
3960
|
return null;
|
|
3958
3961
|
let i = n ? e : e.parentElement;
|
|
@@ -3963,35 +3966,35 @@ const oi = (e, t, n = !0) => {
|
|
|
3963
3966
|
return i;
|
|
3964
3967
|
} while (i = i.parentElement);
|
|
3965
3968
|
return null;
|
|
3966
|
-
},
|
|
3969
|
+
}, li = (e) => ri(e, (t) => {
|
|
3967
3970
|
const n = t.getAttribute("builder-id") || t.id;
|
|
3968
3971
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
3969
|
-
}),
|
|
3972
|
+
}), Re = ({
|
|
3970
3973
|
event: e,
|
|
3971
3974
|
target: t
|
|
3972
3975
|
}) => {
|
|
3973
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o =
|
|
3976
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Ee(i / n.width), r = Ee(a / n.height);
|
|
3974
3977
|
return {
|
|
3975
3978
|
x: o,
|
|
3976
3979
|
y: r
|
|
3977
3980
|
};
|
|
3978
|
-
},
|
|
3979
|
-
const t = e.target, n = t &&
|
|
3981
|
+
}, si = (e) => {
|
|
3982
|
+
const t = e.target, n = t && li(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
3980
3983
|
return {
|
|
3981
3984
|
targetBuilderElement: i || void 0,
|
|
3982
3985
|
metadata: {
|
|
3983
|
-
targetOffset: t ?
|
|
3986
|
+
targetOffset: t ? Re({
|
|
3984
3987
|
event: e,
|
|
3985
3988
|
target: t
|
|
3986
3989
|
}) : void 0,
|
|
3987
|
-
builderTargetOffset: n ?
|
|
3990
|
+
builderTargetOffset: n ? Re({
|
|
3988
3991
|
event: e,
|
|
3989
3992
|
target: n
|
|
3990
3993
|
}) : void 0,
|
|
3991
3994
|
builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
|
|
3992
3995
|
}
|
|
3993
3996
|
};
|
|
3994
|
-
},
|
|
3997
|
+
}, ci = ["svelte", "qwik", "vue"], Pe = () => ci.includes(L) && (A() || Z()), ui = (e) => {
|
|
3995
3998
|
var o, r;
|
|
3996
3999
|
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;
|
|
3997
4000
|
let a = "";
|
|
@@ -4017,15 +4020,15 @@ font-weight: ${l};
|
|
|
4017
4020
|
`.trim());
|
|
4018
4021
|
}
|
|
4019
4022
|
return a;
|
|
4020
|
-
},
|
|
4023
|
+
}, di = ({
|
|
4021
4024
|
customFonts: e
|
|
4022
4025
|
}) => {
|
|
4023
4026
|
var t;
|
|
4024
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4025
|
-
},
|
|
4027
|
+
return ((t = e == null ? void 0 : e.map((n) => ui(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4028
|
+
}, mi = ({
|
|
4026
4029
|
cssCode: e,
|
|
4027
4030
|
contentId: t
|
|
4028
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4031
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", fi = `
|
|
4029
4032
|
.builder-button {
|
|
4030
4033
|
all: unset;
|
|
4031
4034
|
}
|
|
@@ -4042,8 +4045,8 @@ font-weight: ${l};
|
|
|
4042
4045
|
text-align: inherit;
|
|
4043
4046
|
font-family: inherit;
|
|
4044
4047
|
}
|
|
4045
|
-
`,
|
|
4046
|
-
function
|
|
4048
|
+
`, hi = (e) => e ? "" : fi, gi = (e) => `variant-${e}`;
|
|
4049
|
+
function bi(e) {
|
|
4047
4050
|
var k, C, P;
|
|
4048
4051
|
const t = O(null);
|
|
4049
4052
|
I(() => !1);
|
|
@@ -4088,7 +4091,7 @@ function gi(e) {
|
|
|
4088
4091
|
() => e.contentWrapper || "div"
|
|
4089
4092
|
);
|
|
4090
4093
|
function l(w) {
|
|
4091
|
-
return
|
|
4094
|
+
return it({
|
|
4092
4095
|
model: e.model,
|
|
4093
4096
|
trustedHosts: e.trustedHosts,
|
|
4094
4097
|
callbacks: {
|
|
@@ -4102,7 +4105,7 @@ function gi(e) {
|
|
|
4102
4105
|
});
|
|
4103
4106
|
},
|
|
4104
4107
|
animation: (x) => {
|
|
4105
|
-
|
|
4108
|
+
qe(x);
|
|
4106
4109
|
},
|
|
4107
4110
|
contentUpdate: (x) => {
|
|
4108
4111
|
i(x);
|
|
@@ -4125,7 +4128,7 @@ function gi(e) {
|
|
|
4125
4128
|
contentId: T,
|
|
4126
4129
|
apiKey: e.apiKey,
|
|
4127
4130
|
variationId: y !== T ? y : void 0,
|
|
4128
|
-
...
|
|
4131
|
+
...si(w),
|
|
4129
4132
|
unique: !c
|
|
4130
4133
|
});
|
|
4131
4134
|
}
|
|
@@ -4150,7 +4153,7 @@ function gi(e) {
|
|
|
4150
4153
|
})
|
|
4151
4154
|
)
|
|
4152
4155
|
);
|
|
4153
|
-
|
|
4156
|
+
Be(N), fetch(N).then((W) => W.json()).then((W) => {
|
|
4154
4157
|
n({
|
|
4155
4158
|
[T]: W
|
|
4156
4159
|
}), d[T] = !0;
|
|
@@ -4180,7 +4183,7 @@ function gi(e) {
|
|
|
4180
4183
|
return p.current || (b(), S(), p.current = !0), V(() => {
|
|
4181
4184
|
var w, x, m, y, T;
|
|
4182
4185
|
if (U()) {
|
|
4183
|
-
A() && !e.isNestedRender && (window.addEventListener("message", l),
|
|
4186
|
+
A() && !e.isNestedRender && (window.addEventListener("message", l), Ze(), et({
|
|
4184
4187
|
...e.locale ? {
|
|
4185
4188
|
locale: e.locale
|
|
4186
4189
|
} : {},
|
|
@@ -4197,14 +4200,14 @@ function gi(e) {
|
|
|
4197
4200
|
).forEach((D) => {
|
|
4198
4201
|
var F, J;
|
|
4199
4202
|
if (!((F = D.models) != null && F.length) || D.models.includes(e.model)) {
|
|
4200
|
-
const ne =
|
|
4203
|
+
const ne = tt(D);
|
|
4201
4204
|
(J = window.parent) == null || J.postMessage(ne, "*");
|
|
4202
4205
|
}
|
|
4203
4206
|
}), window.addEventListener(
|
|
4204
4207
|
"builder:component:stateChangeListenerActivated",
|
|
4205
4208
|
S
|
|
4206
4209
|
));
|
|
4207
|
-
const E = e.builderContextSignal.content && j(e.canTrack), N =
|
|
4210
|
+
const E = e.builderContextSignal.content && j(e.canTrack), N = nt({
|
|
4208
4211
|
name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
|
|
4209
4212
|
canTrack: !0
|
|
4210
4213
|
}), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
|
|
@@ -4223,7 +4226,7 @@ function gi(e) {
|
|
|
4223
4226
|
const D = new URL(location.href).searchParams, F = D.get("builder.preview"), J = D.get(
|
|
4224
4227
|
`builder.overrides.${F}`
|
|
4225
4228
|
), ne = D.get("apiKey") || D.get("builder.space");
|
|
4226
|
-
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) &&
|
|
4229
|
+
(F === "BUILDER_STUDIO" || F === e.model && ne === e.apiKey && (!e.content || J === e.content.id)) && Ae({
|
|
4227
4230
|
model: e.model,
|
|
4228
4231
|
apiKey: e.apiKey,
|
|
4229
4232
|
apiVersion: e.builderContextSignal.apiVersion,
|
|
@@ -4252,18 +4255,18 @@ function gi(e) {
|
|
|
4252
4255
|
"builder:component:stateChangeListenerActivated",
|
|
4253
4256
|
S
|
|
4254
4257
|
));
|
|
4255
|
-
}, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ||
|
|
4258
|
+
}, []), /* @__PURE__ */ s(de.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Pe() ? /* @__PURE__ */ s(
|
|
4256
4259
|
o,
|
|
4257
4260
|
{
|
|
4258
4261
|
ref: t,
|
|
4259
4262
|
onClick: (w) => f(w),
|
|
4260
4263
|
"builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
|
|
4261
4264
|
"builder-model": e.model,
|
|
4262
|
-
className:
|
|
4265
|
+
className: gi(
|
|
4263
4266
|
((C = e.content) == null ? void 0 : C.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
|
|
4264
4267
|
),
|
|
4265
4268
|
style: {
|
|
4266
|
-
display: !e.builderContextSignal.content &&
|
|
4269
|
+
display: !e.builderContextSignal.content && Pe() ? "none" : void 0
|
|
4267
4270
|
},
|
|
4268
4271
|
...a(),
|
|
4269
4272
|
...e.contentWrapperProps,
|
|
@@ -4271,17 +4274,17 @@ function gi(e) {
|
|
|
4271
4274
|
}
|
|
4272
4275
|
) : null });
|
|
4273
4276
|
}
|
|
4274
|
-
function
|
|
4277
|
+
function pi(e) {
|
|
4275
4278
|
const [t, n] = I(
|
|
4276
4279
|
() => `
|
|
4277
|
-
${
|
|
4280
|
+
${mi({
|
|
4278
4281
|
cssCode: e.cssCode,
|
|
4279
4282
|
contentId: e.contentId
|
|
4280
4283
|
})}
|
|
4281
|
-
${
|
|
4284
|
+
${di({
|
|
4282
4285
|
customFonts: e.customFonts
|
|
4283
4286
|
})}
|
|
4284
|
-
${
|
|
4287
|
+
${hi(e.isNestedRender)}
|
|
4285
4288
|
`.trim()
|
|
4286
4289
|
);
|
|
4287
4290
|
return /* @__PURE__ */ s(
|
|
@@ -4293,7 +4296,7 @@ ${fi(e.isNestedRender)}
|
|
|
4293
4296
|
}
|
|
4294
4297
|
);
|
|
4295
4298
|
}
|
|
4296
|
-
const
|
|
4299
|
+
const yi = ({
|
|
4297
4300
|
content: e,
|
|
4298
4301
|
data: t,
|
|
4299
4302
|
locale: n
|
|
@@ -4310,7 +4313,7 @@ const pi = ({
|
|
|
4310
4313
|
locale: n
|
|
4311
4314
|
} : {}
|
|
4312
4315
|
};
|
|
4313
|
-
},
|
|
4316
|
+
}, vi = ({
|
|
4314
4317
|
content: e,
|
|
4315
4318
|
data: t
|
|
4316
4319
|
}) => e ? {
|
|
@@ -4321,12 +4324,12 @@ const pi = ({
|
|
|
4321
4324
|
},
|
|
4322
4325
|
meta: e == null ? void 0 : e.meta
|
|
4323
4326
|
} : void 0;
|
|
4324
|
-
function
|
|
4327
|
+
function Ve(e) {
|
|
4325
4328
|
var u, h, g, c, v, f, b, S, p;
|
|
4326
4329
|
const [t, n] = I(
|
|
4327
4330
|
() => {
|
|
4328
4331
|
var k, C;
|
|
4329
|
-
return
|
|
4332
|
+
return oi({
|
|
4330
4333
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4331
4334
|
variationId: (k = e.content) == null ? void 0 : k.testVariationId,
|
|
4332
4335
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4342,7 +4345,7 @@ function Pe(e) {
|
|
|
4342
4345
|
}
|
|
4343
4346
|
const [a, o] = I(
|
|
4344
4347
|
() => [
|
|
4345
|
-
...
|
|
4348
|
+
...Ie(),
|
|
4346
4349
|
...e.customComponents || []
|
|
4347
4350
|
].reduce(
|
|
4348
4351
|
(k, { component: C, ...P }) => ({
|
|
@@ -4355,12 +4358,12 @@ function Pe(e) {
|
|
|
4355
4358
|
{}
|
|
4356
4359
|
)
|
|
4357
4360
|
), [r, l] = I(() => ({
|
|
4358
|
-
content:
|
|
4361
|
+
content: vi({
|
|
4359
4362
|
content: e.content,
|
|
4360
4363
|
data: e.data
|
|
4361
4364
|
}),
|
|
4362
4365
|
localState: void 0,
|
|
4363
|
-
rootState:
|
|
4366
|
+
rootState: yi({
|
|
4364
4367
|
content: e.content,
|
|
4365
4368
|
data: e.data,
|
|
4366
4369
|
locale: e.locale
|
|
@@ -4371,7 +4374,7 @@ function Pe(e) {
|
|
|
4371
4374
|
apiKey: e.apiKey,
|
|
4372
4375
|
apiVersion: e.apiVersion,
|
|
4373
4376
|
componentInfos: [
|
|
4374
|
-
...
|
|
4377
|
+
...Ie(),
|
|
4375
4378
|
...e.customComponents || []
|
|
4376
4379
|
].reduce(
|
|
4377
4380
|
(k, { component: C, ...P }) => ({
|
|
@@ -4403,13 +4406,13 @@ function Pe(e) {
|
|
|
4403
4406
|
}), d.current = !0;
|
|
4404
4407
|
}
|
|
4405
4408
|
return /* @__PURE__ */ s(
|
|
4406
|
-
|
|
4409
|
+
De.Provider,
|
|
4407
4410
|
{
|
|
4408
4411
|
value: {
|
|
4409
4412
|
registeredComponents: a
|
|
4410
4413
|
},
|
|
4411
4414
|
children: /* @__PURE__ */ B(
|
|
4412
|
-
|
|
4415
|
+
bi,
|
|
4413
4416
|
{
|
|
4414
4417
|
apiHost: e.apiHost,
|
|
4415
4418
|
nonce: e.nonce,
|
|
@@ -4438,7 +4441,7 @@ function Pe(e) {
|
|
|
4438
4441
|
}
|
|
4439
4442
|
) : null,
|
|
4440
4443
|
/* @__PURE__ */ s(
|
|
4441
|
-
|
|
4444
|
+
pi,
|
|
4442
4445
|
{
|
|
4443
4446
|
nonce: e.nonce || "",
|
|
4444
4447
|
isNestedRender: e.isNestedRender,
|
|
@@ -4462,17 +4465,17 @@ function Pe(e) {
|
|
|
4462
4465
|
}
|
|
4463
4466
|
);
|
|
4464
4467
|
}
|
|
4465
|
-
function
|
|
4468
|
+
function xi(e) {
|
|
4466
4469
|
var r;
|
|
4467
4470
|
const [t, n] = I(
|
|
4468
|
-
() =>
|
|
4471
|
+
() => ei({
|
|
4469
4472
|
canTrack: j(e.canTrack),
|
|
4470
4473
|
content: e.content
|
|
4471
4474
|
})
|
|
4472
4475
|
);
|
|
4473
4476
|
function i() {
|
|
4474
4477
|
var l;
|
|
4475
|
-
return
|
|
4478
|
+
return ai(
|
|
4476
4479
|
G(e.content).map((d) => ({
|
|
4477
4480
|
id: d.testVariationId,
|
|
4478
4481
|
testRatio: d.testRatio
|
|
@@ -4488,7 +4491,7 @@ function vi(e) {
|
|
|
4488
4491
|
return t ? {
|
|
4489
4492
|
...e.content,
|
|
4490
4493
|
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
4491
|
-
} :
|
|
4494
|
+
} : at({
|
|
4492
4495
|
item: e.content,
|
|
4493
4496
|
canTrack: j(e.canTrack)
|
|
4494
4497
|
});
|
|
@@ -4499,7 +4502,7 @@ function vi(e) {
|
|
|
4499
4502
|
X,
|
|
4500
4503
|
{
|
|
4501
4504
|
id: "builderio-init-variants-fns",
|
|
4502
|
-
scriptStr:
|
|
4505
|
+
scriptStr: ii(),
|
|
4503
4506
|
nonce: e.nonce || ""
|
|
4504
4507
|
}
|
|
4505
4508
|
) : null,
|
|
@@ -4521,7 +4524,7 @@ function vi(e) {
|
|
|
4521
4524
|
}
|
|
4522
4525
|
),
|
|
4523
4526
|
(r = G(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
|
|
4524
|
-
|
|
4527
|
+
Ve,
|
|
4525
4528
|
{
|
|
4526
4529
|
apiHost: e.apiHost,
|
|
4527
4530
|
isNestedRender: e.isNestedRender,
|
|
@@ -4549,7 +4552,7 @@ function vi(e) {
|
|
|
4549
4552
|
))
|
|
4550
4553
|
] }) : null,
|
|
4551
4554
|
/* @__PURE__ */ s(
|
|
4552
|
-
|
|
4555
|
+
Ve,
|
|
4553
4556
|
{
|
|
4554
4557
|
apiHost: e.apiHost,
|
|
4555
4558
|
nonce: e.nonce,
|
|
@@ -4576,13 +4579,13 @@ function vi(e) {
|
|
|
4576
4579
|
)
|
|
4577
4580
|
] });
|
|
4578
4581
|
}
|
|
4579
|
-
const
|
|
4582
|
+
const Si = async ({
|
|
4580
4583
|
builderContextValue: e,
|
|
4581
4584
|
symbol: t
|
|
4582
4585
|
}) => {
|
|
4583
4586
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4584
4587
|
(e != null && e.apiKey))
|
|
4585
|
-
return
|
|
4588
|
+
return Ae({
|
|
4586
4589
|
model: t.model,
|
|
4587
4590
|
apiKey: e.apiKey,
|
|
4588
4591
|
apiVersion: e.apiVersion,
|
|
@@ -4595,7 +4598,7 @@ const xi = async ({
|
|
|
4595
4598
|
_.error("Could not fetch symbol content: ", n);
|
|
4596
4599
|
});
|
|
4597
4600
|
};
|
|
4598
|
-
function
|
|
4601
|
+
function ki(e) {
|
|
4599
4602
|
var l, d, u, h, g;
|
|
4600
4603
|
function t() {
|
|
4601
4604
|
return "div";
|
|
@@ -4617,7 +4620,7 @@ function Si(e) {
|
|
|
4617
4620
|
return (c = e.symbol) == null ? void 0 : c.content;
|
|
4618
4621
|
});
|
|
4619
4622
|
function r() {
|
|
4620
|
-
a ||
|
|
4623
|
+
a || Si({
|
|
4621
4624
|
symbol: e.symbol,
|
|
4622
4625
|
builderContextValue: e.builderContext
|
|
4623
4626
|
}).then((c) => {
|
|
@@ -4628,7 +4631,7 @@ function Si(e) {
|
|
|
4628
4631
|
}, []), V(() => {
|
|
4629
4632
|
r();
|
|
4630
4633
|
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4631
|
-
|
|
4634
|
+
xi,
|
|
4632
4635
|
{
|
|
4633
4636
|
nonce: e.builderContext.nonce,
|
|
4634
4637
|
isNestedRender: !0,
|
|
@@ -4656,14 +4659,14 @@ function Si(e) {
|
|
|
4656
4659
|
export {
|
|
4657
4660
|
$ as Blocks,
|
|
4658
4661
|
de as BuilderContext,
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4662
|
+
st as Button,
|
|
4663
|
+
Zt as Columns,
|
|
4664
|
+
xi as Content,
|
|
4665
|
+
en as Fragment,
|
|
4666
|
+
an as Image,
|
|
4667
|
+
on as Section,
|
|
4668
|
+
ki as Symbol,
|
|
4669
|
+
Rn as Text,
|
|
4670
|
+
Qn as Video,
|
|
4671
|
+
Ri as setClientUserAttributes
|
|
4669
4672
|
};
|