@builder.io/sdk-react 2.0.27 → 2.0.29
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 +15 -15
- package/lib/browser/blocks-exports.mjs +614 -602
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{server-entry-b2eed856.cjs → server-entry-3e3279b7.cjs} +1 -1
- package/lib/browser/{server-entry-fea90db1.js → server-entry-712b1faa.js} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/{accordion-6557fd47.js → accordion-1fae9bd5.js} +5 -3
- package/lib/edge/{accordion-c7ebd14b.cjs → accordion-200ac141.cjs} +1 -1
- package/lib/edge/{blocks-b7b78f6f.js → blocks-b47cd3fc.js} +63 -57
- package/lib/edge/blocks-exports.cjs +1 -1
- package/lib/edge/blocks-exports.mjs +2 -2
- package/lib/edge/{blocks-00d9b985.cjs → blocks-fd9e445c.cjs} +3 -3
- package/lib/edge/{button-07555543.js → button-5cc9a94f.js} +2 -2
- package/lib/edge/{button-ca865fd7.cjs → button-ffe70d17.cjs} +1 -1
- package/lib/edge/columns-7651ba21.cjs +28 -0
- package/lib/edge/{columns-a8fb6e6e.js → columns-9ad996bb.js} +61 -57
- package/lib/edge/{content-variants-f7aadfcc.js → content-variants-0ece6057.js} +11 -11
- package/lib/edge/{content-variants-5de0e605.cjs → content-variants-a9017964.cjs} +1 -1
- package/lib/edge/{evaluate-3fbf8291.js → evaluate-5cfe10b0.js} +1 -1
- package/lib/edge/{evaluate-2596ffe5.cjs → evaluate-73e0df40.cjs} +1 -1
- package/lib/edge/{form-be8d48c0.js → form-186bf59f.js} +4 -4
- package/lib/edge/{form-7f214547.cjs → form-c98c7fc1.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-00a9606b.cjs → get-class-prop-name-11734dbc.cjs} +1 -1
- package/lib/edge/{get-class-prop-name-35810f43.js → get-class-prop-name-7d6a77a4.js} +1 -1
- package/lib/edge/{img-1c578e3b.js → img-6c1f4ea4.js} +1 -1
- package/lib/edge/{img-3eab09f2.cjs → img-ef160d2b.cjs} +1 -1
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{input-0d7c1c27.cjs → input-97dc199a.cjs} +1 -1
- package/lib/edge/{input-9c1e8a98.js → input-b4ee4339.js} +1 -1
- package/lib/edge/{select-c58218b7.cjs → select-2cdf2c8f.cjs} +1 -1
- package/lib/edge/{select-fd1e4221.js → select-e79d6e1b.js} +1 -1
- package/lib/edge/{server-entry-f03cbcfe.cjs → server-entry-0224e0bb.cjs} +1 -1
- package/lib/edge/{server-entry-72a543d1.js → server-entry-05dd3f4b.js} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/edge/{slot-864f8ee7.cjs → slot-66ba436b.cjs} +1 -1
- package/lib/edge/{slot-ec9f4a5e.js → slot-680234a8.js} +4 -4
- package/lib/edge/{symbol-68340c52.cjs → symbol-4d0b1228.cjs} +1 -1
- package/lib/edge/{symbol-78fe0b05.js → symbol-e920f028.js} +2 -2
- package/lib/edge/{tabs-c847b763.js → tabs-1bea88d1.js} +15 -15
- package/lib/edge/tabs-1f3f45cf.cjs +1 -0
- package/lib/edge/{text-ff0134a1.cjs → text-9533b278.cjs} +1 -1
- package/lib/edge/{text-5ed7f583.js → text-fd78274f.js} +2 -2
- package/lib/node/blocks-exports.cjs +15 -15
- package/lib/node/blocks-exports.mjs +607 -595
- 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-bac0a183.js → server-entry-00c52924.js} +1 -1
- package/lib/node/{server-entry-b19b6f07.cjs → server-entry-0b1fe826.cjs} +1 -1
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/lib/node/{setIvm-22947995.js → setIvm-156def75.js} +1 -1
- package/lib/node/{setIvm-e38cb38e.cjs → setIvm-ca4d1590.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-0d7217c7.cjs → should-force-browser-runtime-in-node-bc24fcdd.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-5458ba48.js → should-force-browser-runtime-in-node-eb3eac6a.js} +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/lib/edge/columns-1d6d0f14.cjs +0 -28
- package/lib/edge/tabs-b0f30ed3.cjs +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as He, setupBrowserForEditing as je, createRegisterComponentMessage as Me, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as _e, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-
|
|
4
|
-
import { createContext as ke, useEffect as B, useState as
|
|
2
|
+
import { jsx as s, Fragment as T, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { TARGET as D, isEditing as W, isBrowser as L, getUserAttributes as Ue, checkIsDefined as q, logger as z, isPreviewing as ve, registerInsertMenu as He, setupBrowserForEditing as je, createRegisterComponentMessage as Me, getDefaultCanTrack as K, _track as le, fetchOneEntry as Se, createEditorListener as _e, serializeIncludingFunctions as se, handleABTestingSync as qe } from "./server-entry-712b1faa.js";
|
|
4
|
+
import { createContext as ke, useEffect as B, useState as w, useRef as $, useContext as ce, createElement as Ce } from "react";
|
|
5
5
|
const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ze = (e) => typeof e == "string" && Ke.has(e.toLowerCase());
|
|
6
6
|
function ie(e) {
|
|
7
|
-
return /* @__PURE__ */
|
|
7
|
+
return /* @__PURE__ */ s(T, { children: ze(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { 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 }) }) });
|
|
8
8
|
}
|
|
9
9
|
const H = () => {
|
|
10
10
|
switch (D) {
|
|
@@ -34,7 +34,7 @@ function Je(e) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
return /* @__PURE__ */ s(
|
|
38
38
|
ie,
|
|
39
39
|
{
|
|
40
40
|
attributes: t(),
|
|
@@ -73,7 +73,7 @@ function Ye(e, ...t) {
|
|
|
73
73
|
return n;
|
|
74
74
|
}
|
|
75
75
|
const Ie = (e, t, n) => {
|
|
76
|
-
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o,
|
|
76
|
+
const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
|
|
77
77
|
return i === void 0 || i === e ? n : i;
|
|
78
78
|
}, Qe = ({
|
|
79
79
|
builder: e,
|
|
@@ -104,19 +104,19 @@ function we({
|
|
|
104
104
|
get: (i, o) => {
|
|
105
105
|
if (t && o in t)
|
|
106
106
|
return t[o];
|
|
107
|
-
const
|
|
108
|
-
return typeof
|
|
109
|
-
rootState:
|
|
107
|
+
const r = i[o];
|
|
108
|
+
return typeof r == "object" && r !== null ? we({
|
|
109
|
+
rootState: r,
|
|
110
110
|
localState: void 0,
|
|
111
|
-
rootSetState: n ? (
|
|
112
|
-
i[o] =
|
|
111
|
+
rootSetState: n ? (a) => {
|
|
112
|
+
i[o] = a, n(i);
|
|
113
113
|
} : void 0
|
|
114
|
-
}) :
|
|
114
|
+
}) : r;
|
|
115
115
|
},
|
|
116
|
-
set: (i, o,
|
|
116
|
+
set: (i, o, r) => {
|
|
117
117
|
if (t && o in t)
|
|
118
118
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
119
|
-
return i[o] =
|
|
119
|
+
return i[o] = r, n == null || n(i), !0;
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
}
|
|
@@ -126,20 +126,20 @@ const de = ({
|
|
|
126
126
|
context: n,
|
|
127
127
|
event: i,
|
|
128
128
|
localState: o,
|
|
129
|
-
rootSetState:
|
|
130
|
-
rootState:
|
|
129
|
+
rootSetState: r,
|
|
130
|
+
rootState: a
|
|
131
131
|
}) => {
|
|
132
|
-
const
|
|
132
|
+
const l = Qe({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: i,
|
|
136
136
|
state: we({
|
|
137
|
-
rootState:
|
|
137
|
+
rootState: a,
|
|
138
138
|
localState: o,
|
|
139
|
-
rootSetState:
|
|
139
|
+
rootSetState: r
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
|
-
return new Function(...
|
|
142
|
+
return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
|
|
143
143
|
};
|
|
144
144
|
function et() {
|
|
145
145
|
var e;
|
|
@@ -156,8 +156,8 @@ const tt = ({
|
|
|
156
156
|
}, nt = (e) => (L() || tt({
|
|
157
157
|
shouldLogWarning: !0
|
|
158
158
|
}), de(e)), it = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, ot = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, at = (e) => {
|
|
159
|
-
var t, n, i, o,
|
|
160
|
-
return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((
|
|
159
|
+
var t, n, i, o, r, a;
|
|
160
|
+
return ((i = (n = (t = it.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (r = (o = ot.exec(e.trim())) == null ? void 0 : o.groups) == null ? void 0 : r.getPath) == null ? void 0 : a.slice(1));
|
|
161
161
|
};
|
|
162
162
|
function O({
|
|
163
163
|
code: e,
|
|
@@ -165,24 +165,24 @@ function O({
|
|
|
165
165
|
localState: n,
|
|
166
166
|
rootState: i,
|
|
167
167
|
rootSetState: o,
|
|
168
|
-
event:
|
|
169
|
-
isExpression:
|
|
168
|
+
event: r,
|
|
169
|
+
isExpression: a = !0
|
|
170
170
|
}) {
|
|
171
171
|
if (e.trim() === "")
|
|
172
172
|
return;
|
|
173
|
-
const
|
|
174
|
-
if (
|
|
173
|
+
const l = at(e.trim());
|
|
174
|
+
if (l)
|
|
175
175
|
return Ie({
|
|
176
176
|
...i,
|
|
177
177
|
...n
|
|
178
|
-
},
|
|
178
|
+
}, l);
|
|
179
179
|
const d = {
|
|
180
180
|
code: Ze(e, {
|
|
181
|
-
isExpression:
|
|
181
|
+
isExpression: a
|
|
182
182
|
}),
|
|
183
183
|
builder: Xe(),
|
|
184
184
|
context: t,
|
|
185
|
-
event:
|
|
185
|
+
event: r,
|
|
186
186
|
rootSetState: o,
|
|
187
187
|
rootState: i,
|
|
188
188
|
localState: n
|
|
@@ -200,7 +200,7 @@ const ae = (e) => JSON.parse(JSON.stringify(e)), Ee = (e, t, n) => {
|
|
|
200
200
|
if (Object(e) !== e)
|
|
201
201
|
return e;
|
|
202
202
|
const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
203
|
-
return i.slice(0, -1).reduce((o,
|
|
203
|
+
return i.slice(0, -1).reduce((o, r, a) => Object(o[r]) === o[r] ? o[r] : o[r] = Math.abs(Number(i[a + 1])) >> 0 === +i[a + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
|
|
204
204
|
};
|
|
205
205
|
function te(e) {
|
|
206
206
|
if (e === null || typeof e != "object")
|
|
@@ -249,18 +249,18 @@ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes(D), lt = (e) =
|
|
|
249
249
|
}) => {
|
|
250
250
|
if (!e.bindings)
|
|
251
251
|
return e;
|
|
252
|
-
const
|
|
253
|
-
for (const
|
|
254
|
-
const
|
|
255
|
-
code:
|
|
252
|
+
const r = lt(e);
|
|
253
|
+
for (const a in e.bindings) {
|
|
254
|
+
const l = e.bindings[a], d = O({
|
|
255
|
+
code: l,
|
|
256
256
|
localState: n,
|
|
257
257
|
rootState: i,
|
|
258
258
|
rootSetState: o,
|
|
259
259
|
context: t
|
|
260
260
|
});
|
|
261
|
-
Ee(
|
|
261
|
+
Ee(r, a, d);
|
|
262
262
|
}
|
|
263
|
-
return
|
|
263
|
+
return r;
|
|
264
264
|
};
|
|
265
265
|
function ct({
|
|
266
266
|
block: e,
|
|
@@ -268,28 +268,28 @@ function ct({
|
|
|
268
268
|
shouldEvaluateBindings: n,
|
|
269
269
|
localState: i,
|
|
270
270
|
rootState: o,
|
|
271
|
-
rootSetState:
|
|
271
|
+
rootSetState: r
|
|
272
272
|
}) {
|
|
273
|
-
const
|
|
273
|
+
const a = e;
|
|
274
274
|
return n ? st({
|
|
275
|
-
block:
|
|
275
|
+
block: a,
|
|
276
276
|
localState: i,
|
|
277
277
|
rootState: o,
|
|
278
|
-
rootSetState:
|
|
278
|
+
rootSetState: r,
|
|
279
279
|
context: t
|
|
280
|
-
}) :
|
|
280
|
+
}) : a;
|
|
281
281
|
}
|
|
282
282
|
const J = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
283
283
|
function dt(e, t, n = {}) {
|
|
284
|
-
let i, o,
|
|
284
|
+
let i, o, r, a = null, l = 0;
|
|
285
285
|
const d = function() {
|
|
286
|
-
|
|
286
|
+
l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
|
|
287
287
|
};
|
|
288
288
|
return function() {
|
|
289
289
|
const c = Date.now();
|
|
290
|
-
!
|
|
291
|
-
const h = t - (c -
|
|
292
|
-
return i = this, o = arguments, h <= 0 || h > t ? (
|
|
290
|
+
!l && n.leading === !1 && (l = c);
|
|
291
|
+
const h = t - (c - l);
|
|
292
|
+
return i = this, o = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = c, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(d, h)), r;
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
295
|
function U(e, ...t) {
|
|
@@ -297,8 +297,8 @@ function U(e, ...t) {
|
|
|
297
297
|
for (let i = 1; i < arguments.length; i++) {
|
|
298
298
|
const o = arguments[i];
|
|
299
299
|
if (o != null)
|
|
300
|
-
for (const
|
|
301
|
-
Object.prototype.hasOwnProperty.call(o,
|
|
300
|
+
for (const r in o)
|
|
301
|
+
Object.prototype.hasOwnProperty.call(o, r) && (n[r] = o[r]);
|
|
302
302
|
}
|
|
303
303
|
return n;
|
|
304
304
|
}
|
|
@@ -317,10 +317,10 @@ function Re(e) {
|
|
|
317
317
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
318
318
|
}
|
|
319
319
|
function Pe(e, t) {
|
|
320
|
-
const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles,
|
|
321
|
-
for (const
|
|
320
|
+
const n = mt(e), i = getComputedStyle(t), o = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [o, r];
|
|
321
|
+
for (const l of a)
|
|
322
322
|
for (const d of n)
|
|
323
|
-
d in
|
|
323
|
+
d in l || (l[d] = i[d]);
|
|
324
324
|
}
|
|
325
325
|
function mt(e) {
|
|
326
326
|
const t = [];
|
|
@@ -352,19 +352,19 @@ function ft(e) {
|
|
|
352
352
|
Array.from(t).forEach((n) => {
|
|
353
353
|
Pe(e, n);
|
|
354
354
|
let i = !1, o = !1;
|
|
355
|
-
function
|
|
356
|
-
!i &&
|
|
357
|
-
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll",
|
|
355
|
+
function r() {
|
|
356
|
+
!i && l(n) ? (i = !0, o = !0, setTimeout(() => {
|
|
357
|
+
U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
|
|
358
358
|
o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
359
359
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
360
|
-
})) : e.repeat && i && !o && !
|
|
360
|
+
})) : e.repeat && i && !o && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const a = dt(r, 200, {
|
|
363
363
|
leading: !1
|
|
364
364
|
});
|
|
365
|
-
function
|
|
366
|
-
const
|
|
367
|
-
return
|
|
365
|
+
function l(h) {
|
|
366
|
+
const g = h.getBoundingClientRect(), m = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * m;
|
|
367
|
+
return g.bottom > f && g.top < m - f;
|
|
368
368
|
}
|
|
369
369
|
const d = e.steps[0].styles;
|
|
370
370
|
function c() {
|
|
@@ -372,10 +372,10 @@ function ft(e) {
|
|
|
372
372
|
}
|
|
373
373
|
c(), setTimeout(() => {
|
|
374
374
|
n.style.transition = `all ${e.duration}s ${J(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
375
|
-
}), document.addEventListener("scroll",
|
|
375
|
+
}), document.addEventListener("scroll", a, {
|
|
376
376
|
capture: !0,
|
|
377
377
|
passive: !0
|
|
378
|
-
}),
|
|
378
|
+
}), r();
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
const Ve = (e) => Object.entries(e).map(([n, i]) => {
|
|
@@ -454,7 +454,7 @@ const pt = ({
|
|
|
454
454
|
});
|
|
455
455
|
if (!Array.isArray(o))
|
|
456
456
|
return;
|
|
457
|
-
const
|
|
457
|
+
const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
|
|
458
458
|
return o.map((d, c) => ({
|
|
459
459
|
context: {
|
|
460
460
|
...t,
|
|
@@ -462,8 +462,8 @@ const pt = ({
|
|
|
462
462
|
...t.localState,
|
|
463
463
|
$index: c,
|
|
464
464
|
$item: d,
|
|
465
|
-
[
|
|
466
|
-
[`$${
|
|
465
|
+
[a]: d,
|
|
466
|
+
[`$${a}Index`]: c
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
469
|
block: i
|
|
@@ -523,16 +523,16 @@ const pt = ({
|
|
|
523
523
|
min: o,
|
|
524
524
|
default: o + 1
|
|
525
525
|
};
|
|
526
|
-
const
|
|
526
|
+
const r = n.medium.max + 1;
|
|
527
527
|
return n.large = {
|
|
528
528
|
max: 2e3,
|
|
529
529
|
// TODO: decide upper limit
|
|
530
|
-
min:
|
|
531
|
-
default:
|
|
530
|
+
min: r,
|
|
531
|
+
default: r + 1
|
|
532
532
|
}, n;
|
|
533
533
|
};
|
|
534
534
|
function G(e) {
|
|
535
|
-
return /* @__PURE__ */
|
|
535
|
+
return /* @__PURE__ */ s(
|
|
536
536
|
"style",
|
|
537
537
|
{
|
|
538
538
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -547,52 +547,52 @@ function Ct(e) {
|
|
|
547
547
|
return q(i.hide) ? !i.hide : q(i.show) ? i.show : !0;
|
|
548
548
|
}
|
|
549
549
|
function n() {
|
|
550
|
-
var
|
|
551
|
-
const i = e.block, o = i.responsiveStyles,
|
|
552
|
-
((
|
|
553
|
-
),
|
|
550
|
+
var S, p, b;
|
|
551
|
+
const i = e.block, o = i.responsiveStyles, r = e.context.content, a = We(
|
|
552
|
+
((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
|
|
553
|
+
), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, h = i.id;
|
|
554
554
|
if (!h)
|
|
555
555
|
return "";
|
|
556
|
-
const
|
|
556
|
+
const g = l ? M({
|
|
557
557
|
className: h,
|
|
558
|
-
styles:
|
|
559
|
-
}) : "",
|
|
558
|
+
styles: l
|
|
559
|
+
}) : "", m = d ? M({
|
|
560
560
|
className: h,
|
|
561
561
|
styles: d,
|
|
562
562
|
mediaQuery: ue(
|
|
563
563
|
"medium",
|
|
564
|
-
|
|
564
|
+
a
|
|
565
565
|
)
|
|
566
566
|
}) : "", v = c ? M({
|
|
567
567
|
className: h,
|
|
568
568
|
styles: c,
|
|
569
569
|
mediaQuery: ue(
|
|
570
570
|
"small",
|
|
571
|
-
|
|
571
|
+
a
|
|
572
572
|
)
|
|
573
|
-
}) : "",
|
|
574
|
-
let
|
|
575
|
-
if (
|
|
576
|
-
const
|
|
577
|
-
|
|
573
|
+
}) : "", f = i.animations && i.animations.find((x) => x.trigger === "hover");
|
|
574
|
+
let k = "";
|
|
575
|
+
if (f) {
|
|
576
|
+
const x = ((b = (p = f.steps) == null ? void 0 : p[1]) == null ? void 0 : b.styles) || {};
|
|
577
|
+
k = M({
|
|
578
578
|
className: `${h}:hover`,
|
|
579
579
|
styles: {
|
|
580
|
-
...
|
|
581
|
-
transition: `all ${
|
|
582
|
-
|
|
580
|
+
...x,
|
|
581
|
+
transition: `all ${f.duration}s ${J(
|
|
582
|
+
f.easing
|
|
583
583
|
)}`,
|
|
584
|
-
transitionDelay:
|
|
584
|
+
transitionDelay: f.delay ? `${f.delay}s` : "0s"
|
|
585
585
|
}
|
|
586
586
|
}) || "";
|
|
587
587
|
}
|
|
588
588
|
return [
|
|
589
|
-
|
|
590
|
-
|
|
589
|
+
g,
|
|
590
|
+
m,
|
|
591
591
|
v,
|
|
592
|
-
|
|
592
|
+
k
|
|
593
593
|
].join(" ");
|
|
594
594
|
}
|
|
595
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
596
596
|
G,
|
|
597
597
|
{
|
|
598
598
|
id: "builderio-block",
|
|
@@ -619,18 +619,18 @@ function Fe(e) {
|
|
|
619
619
|
for (const o in n) {
|
|
620
620
|
if (!n.hasOwnProperty(o))
|
|
621
621
|
continue;
|
|
622
|
-
const
|
|
623
|
-
let
|
|
622
|
+
const r = n[o];
|
|
623
|
+
let a = It(o);
|
|
624
624
|
if (e.stripPrefix)
|
|
625
625
|
switch (D) {
|
|
626
626
|
case "vue":
|
|
627
|
-
|
|
627
|
+
a = a.replace("v-on:", "");
|
|
628
628
|
break;
|
|
629
629
|
case "svelte":
|
|
630
|
-
|
|
630
|
+
a = a.replace("on:", "");
|
|
631
631
|
break;
|
|
632
632
|
}
|
|
633
|
-
t[
|
|
633
|
+
t[a] = wt(r, e);
|
|
634
634
|
}
|
|
635
635
|
return t;
|
|
636
636
|
}
|
|
@@ -664,7 +664,7 @@ function re({
|
|
|
664
664
|
});
|
|
665
665
|
}
|
|
666
666
|
function Pt(e) {
|
|
667
|
-
return /* @__PURE__ */
|
|
667
|
+
return /* @__PURE__ */ s(
|
|
668
668
|
ie,
|
|
669
669
|
{
|
|
670
670
|
TagName: e.Wrapper,
|
|
@@ -686,7 +686,7 @@ function Pt(e) {
|
|
|
686
686
|
}
|
|
687
687
|
function Bt(e) {
|
|
688
688
|
return B(() => {
|
|
689
|
-
}, []), /* @__PURE__ */
|
|
689
|
+
}, []), /* @__PURE__ */ s(T, { children: e.children });
|
|
690
690
|
}
|
|
691
691
|
function Vt(e) {
|
|
692
692
|
function t() {
|
|
@@ -704,7 +704,7 @@ function Vt(e) {
|
|
|
704
704
|
})
|
|
705
705
|
} : {};
|
|
706
706
|
}
|
|
707
|
-
return /* @__PURE__ */
|
|
707
|
+
return /* @__PURE__ */ s(T, { children: e.Wrapper.load ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
708
708
|
Bt,
|
|
709
709
|
{
|
|
710
710
|
load: e.Wrapper.load,
|
|
@@ -713,7 +713,7 @@ function Vt(e) {
|
|
|
713
713
|
attributes: t(),
|
|
714
714
|
children: e.children
|
|
715
715
|
}
|
|
716
|
-
) }) : /* @__PURE__ */
|
|
716
|
+
) }) : /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children }) });
|
|
717
717
|
}
|
|
718
718
|
const At = ({
|
|
719
719
|
componentOptions: e,
|
|
@@ -721,10 +721,10 @@ const At = ({
|
|
|
721
721
|
context: n,
|
|
722
722
|
componentRef: i,
|
|
723
723
|
includeBlockProps: o,
|
|
724
|
-
isInteractive:
|
|
725
|
-
contextValue:
|
|
724
|
+
isInteractive: r,
|
|
725
|
+
contextValue: a
|
|
726
726
|
}) => {
|
|
727
|
-
const
|
|
727
|
+
const l = {
|
|
728
728
|
...e,
|
|
729
729
|
/**
|
|
730
730
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -733,24 +733,24 @@ const At = ({
|
|
|
733
733
|
...o ? {
|
|
734
734
|
attributes: re({
|
|
735
735
|
block: t,
|
|
736
|
-
context:
|
|
736
|
+
context: a
|
|
737
737
|
})
|
|
738
738
|
} : {}
|
|
739
739
|
};
|
|
740
|
-
return
|
|
740
|
+
return r ? {
|
|
741
741
|
Wrapper: i,
|
|
742
742
|
block: t,
|
|
743
743
|
context: n,
|
|
744
744
|
wrapperProps: e,
|
|
745
745
|
includeBlockProps: o
|
|
746
|
-
} :
|
|
746
|
+
} : l;
|
|
747
747
|
};
|
|
748
748
|
function me(e) {
|
|
749
749
|
var i;
|
|
750
|
-
const [t, n] =
|
|
750
|
+
const [t, n] = w(
|
|
751
751
|
() => e.isInteractive ? Vt : e.componentRef
|
|
752
752
|
);
|
|
753
|
-
return /* @__PURE__ */
|
|
753
|
+
return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
|
|
754
754
|
t,
|
|
755
755
|
{
|
|
756
756
|
...At({
|
|
@@ -763,7 +763,7 @@ function me(e) {
|
|
|
763
763
|
isInteractive: e.isInteractive,
|
|
764
764
|
contextValue: e.context
|
|
765
765
|
}),
|
|
766
|
-
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */
|
|
766
|
+
children: (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ s(
|
|
767
767
|
j,
|
|
768
768
|
{
|
|
769
769
|
block: o,
|
|
@@ -777,8 +777,8 @@ function me(e) {
|
|
|
777
777
|
) }) : null });
|
|
778
778
|
}
|
|
779
779
|
function fe(e) {
|
|
780
|
-
const [t, n] =
|
|
781
|
-
return /* @__PURE__ */
|
|
780
|
+
const [t, n] = w(() => e.repeatContext);
|
|
781
|
+
return /* @__PURE__ */ s(oe.Provider, { value: t, children: /* @__PURE__ */ s(
|
|
782
782
|
j,
|
|
783
783
|
{
|
|
784
784
|
block: e.block,
|
|
@@ -789,22 +789,22 @@ function fe(e) {
|
|
|
789
789
|
) });
|
|
790
790
|
}
|
|
791
791
|
function j(e) {
|
|
792
|
-
var h,
|
|
792
|
+
var h, g, m, v;
|
|
793
793
|
function t() {
|
|
794
794
|
return yt({
|
|
795
795
|
block: e.block,
|
|
796
796
|
context: e.context
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
|
-
const [n, i] =
|
|
799
|
+
const [n, i] = w(() => ({
|
|
800
800
|
value: null,
|
|
801
801
|
update: !1
|
|
802
802
|
}));
|
|
803
803
|
function o() {
|
|
804
|
-
var
|
|
804
|
+
var k;
|
|
805
805
|
if (n.value && !n.update && !ve())
|
|
806
806
|
return n.value;
|
|
807
|
-
const
|
|
807
|
+
const f = (k = e.block.repeat) != null && k.collection ? e.block : ct({
|
|
808
808
|
block: e.block,
|
|
809
809
|
localState: e.context.localState,
|
|
810
810
|
rootState: e.context.rootState,
|
|
@@ -812,41 +812,41 @@ function j(e) {
|
|
|
812
812
|
context: e.context.context,
|
|
813
813
|
shouldEvaluateBindings: !0
|
|
814
814
|
});
|
|
815
|
-
return n.value =
|
|
815
|
+
return n.value = f, n.update = !1, f;
|
|
816
816
|
}
|
|
817
|
-
function
|
|
817
|
+
function r() {
|
|
818
818
|
return pt({
|
|
819
819
|
block: o(),
|
|
820
820
|
registeredComponents: e.registeredComponents
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
var
|
|
825
|
-
return e.block.tagName === "a" || ((
|
|
823
|
+
function a() {
|
|
824
|
+
var k;
|
|
825
|
+
return e.block.tagName === "a" || ((k = o().properties) == null ? void 0 : k.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
var
|
|
829
|
-
if ((
|
|
830
|
-
return !!((
|
|
831
|
-
const
|
|
832
|
-
return ("show" in o() ? o().show : !0) && !
|
|
827
|
+
function l() {
|
|
828
|
+
var S, p;
|
|
829
|
+
if ((S = e.block.repeat) != null && S.collection)
|
|
830
|
+
return !!((p = t == null ? void 0 : t()) != null && p.length);
|
|
831
|
+
const f = "hide" in o() ? o().hide : !1;
|
|
832
|
+
return ("show" in o() ? o().show : !0) && !f;
|
|
833
833
|
}
|
|
834
834
|
function d() {
|
|
835
|
-
var
|
|
836
|
-
return !((
|
|
835
|
+
var k, S;
|
|
836
|
+
return !((k = r == null ? void 0 : r()) != null && k.component) && !t() ? (S = o().children) != null ? S : [] : [];
|
|
837
837
|
}
|
|
838
838
|
function c() {
|
|
839
|
-
var
|
|
839
|
+
var f, k, S, p;
|
|
840
840
|
return {
|
|
841
|
-
blockChildren: (
|
|
842
|
-
componentRef: (
|
|
841
|
+
blockChildren: (f = o().children) != null ? f : [],
|
|
842
|
+
componentRef: (k = r == null ? void 0 : r()) == null ? void 0 : k.component,
|
|
843
843
|
componentOptions: {
|
|
844
844
|
...Ge(o()),
|
|
845
|
-
...St(
|
|
846
|
-
...kt(
|
|
847
|
-
...xt(
|
|
845
|
+
...St(r(), o()),
|
|
846
|
+
...kt(r(), e.context),
|
|
847
|
+
...xt(r(), e.linkComponent),
|
|
848
848
|
...vt(
|
|
849
|
-
|
|
849
|
+
r(),
|
|
850
850
|
e.registeredComponents
|
|
851
851
|
)
|
|
852
852
|
},
|
|
@@ -854,32 +854,32 @@ function j(e) {
|
|
|
854
854
|
linkComponent: e.linkComponent,
|
|
855
855
|
registeredComponents: e.registeredComponents,
|
|
856
856
|
builderBlock: o(),
|
|
857
|
-
includeBlockProps: ((
|
|
858
|
-
isInteractive: !((
|
|
857
|
+
includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
|
|
858
|
+
isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && D === "rsc")
|
|
859
859
|
};
|
|
860
860
|
}
|
|
861
861
|
return B(() => {
|
|
862
|
-
const
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
...
|
|
866
|
-
elementId:
|
|
862
|
+
const f = o().id, k = o().animations;
|
|
863
|
+
k && f && ut(
|
|
864
|
+
k.map((S) => ({
|
|
865
|
+
...S,
|
|
866
|
+
elementId: f
|
|
867
867
|
}))
|
|
868
868
|
);
|
|
869
869
|
}, []), B(() => {
|
|
870
870
|
n.update = !0;
|
|
871
|
-
}), /* @__PURE__ */
|
|
872
|
-
/* @__PURE__ */
|
|
873
|
-
(h =
|
|
871
|
+
}), /* @__PURE__ */ s(T, { children: l() ? /* @__PURE__ */ V(T, { children: [
|
|
872
|
+
/* @__PURE__ */ s(Ct, { block: o(), context: e.context }),
|
|
873
|
+
(h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(T, { children: (v = t()) == null ? void 0 : v.map((f, k) => /* @__PURE__ */ s(
|
|
874
874
|
fe,
|
|
875
875
|
{
|
|
876
|
-
repeatContext:
|
|
877
|
-
block:
|
|
876
|
+
repeatContext: f.context,
|
|
877
|
+
block: f.block,
|
|
878
878
|
registeredComponents: e.registeredComponents,
|
|
879
879
|
linkComponent: e.linkComponent
|
|
880
880
|
},
|
|
881
|
-
|
|
882
|
-
)) }) : /* @__PURE__ */
|
|
881
|
+
k
|
|
882
|
+
)) }) : /* @__PURE__ */ s(
|
|
883
883
|
me,
|
|
884
884
|
{
|
|
885
885
|
componentRef: c().componentRef,
|
|
@@ -892,23 +892,23 @@ function j(e) {
|
|
|
892
892
|
includeBlockProps: c().includeBlockProps,
|
|
893
893
|
isInteractive: c().isInteractive
|
|
894
894
|
}
|
|
895
|
-
) : /* @__PURE__ */
|
|
895
|
+
) : /* @__PURE__ */ s(T, { children: t() ? /* @__PURE__ */ s(T, { children: (m = t()) == null ? void 0 : m.map((f, k) => /* @__PURE__ */ s(
|
|
896
896
|
fe,
|
|
897
897
|
{
|
|
898
|
-
repeatContext:
|
|
899
|
-
block:
|
|
898
|
+
repeatContext: f.context,
|
|
899
|
+
block: f.block,
|
|
900
900
|
registeredComponents: e.registeredComponents,
|
|
901
901
|
linkComponent: e.linkComponent
|
|
902
902
|
},
|
|
903
|
-
|
|
903
|
+
k
|
|
904
904
|
)) }) : /* @__PURE__ */ V(
|
|
905
905
|
Pt,
|
|
906
906
|
{
|
|
907
|
-
Wrapper:
|
|
907
|
+
Wrapper: a(),
|
|
908
908
|
block: o(),
|
|
909
909
|
context: e.context,
|
|
910
910
|
children: [
|
|
911
|
-
/* @__PURE__ */
|
|
911
|
+
/* @__PURE__ */ s(
|
|
912
912
|
me,
|
|
913
913
|
{
|
|
914
914
|
componentRef: c().componentRef,
|
|
@@ -922,15 +922,15 @@ function j(e) {
|
|
|
922
922
|
isInteractive: c().isInteractive
|
|
923
923
|
}
|
|
924
924
|
),
|
|
925
|
-
(
|
|
925
|
+
(g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
|
|
926
926
|
j,
|
|
927
927
|
{
|
|
928
|
-
block:
|
|
928
|
+
block: f,
|
|
929
929
|
registeredComponents: e.registeredComponents,
|
|
930
930
|
linkComponent: e.linkComponent,
|
|
931
931
|
context: e.context
|
|
932
932
|
},
|
|
933
|
-
|
|
933
|
+
f.id
|
|
934
934
|
))
|
|
935
935
|
]
|
|
936
936
|
}
|
|
@@ -948,49 +948,55 @@ function Nt(e) {
|
|
|
948
948
|
].filter(Boolean).join(" ");
|
|
949
949
|
}
|
|
950
950
|
function i() {
|
|
951
|
-
|
|
952
|
-
|
|
951
|
+
if (!e.path)
|
|
952
|
+
return;
|
|
953
|
+
const a = "component.options.";
|
|
954
|
+
return e.path.startsWith(a) ? e.path : `${a}${e.path || ""}`;
|
|
955
|
+
}
|
|
956
|
+
function o() {
|
|
957
|
+
var a, l;
|
|
958
|
+
W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
953
959
|
{
|
|
954
960
|
type: "builder.clickEmptyBlocks",
|
|
955
961
|
data: {
|
|
956
962
|
parentElementId: e.parent,
|
|
957
|
-
dataPath:
|
|
963
|
+
dataPath: i()
|
|
958
964
|
}
|
|
959
965
|
},
|
|
960
966
|
"*"
|
|
961
967
|
));
|
|
962
968
|
}
|
|
963
|
-
function
|
|
964
|
-
var a,
|
|
965
|
-
W() && !((a = e.blocks) != null && a.length) && ((
|
|
969
|
+
function r() {
|
|
970
|
+
var a, l;
|
|
971
|
+
W() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
|
|
966
972
|
{
|
|
967
973
|
type: "builder.hoverEmptyBlocks",
|
|
968
974
|
data: {
|
|
969
975
|
parentElementId: e.parent,
|
|
970
|
-
dataPath:
|
|
976
|
+
dataPath: i()
|
|
971
977
|
}
|
|
972
978
|
},
|
|
973
979
|
"*"
|
|
974
980
|
));
|
|
975
981
|
}
|
|
976
982
|
return B(() => {
|
|
977
|
-
}, []), /* @__PURE__ */ V(
|
|
978
|
-
/* @__PURE__ */
|
|
983
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
984
|
+
/* @__PURE__ */ s(
|
|
979
985
|
e.BlocksWrapper,
|
|
980
986
|
{
|
|
981
987
|
ref: t,
|
|
982
|
-
className: n() + " props-blocks-wrapper-
|
|
983
|
-
"builder-path":
|
|
988
|
+
className: n() + " props-blocks-wrapper-215a41e0",
|
|
989
|
+
"builder-path": i(),
|
|
984
990
|
"builder-parent-id": e.parent,
|
|
985
991
|
style: e.styleProp,
|
|
986
|
-
onClick: (a) =>
|
|
987
|
-
onMouseEnter: (a) =>
|
|
988
|
-
onKeyPress: (a) =>
|
|
992
|
+
onClick: (a) => o(),
|
|
993
|
+
onMouseEnter: (a) => r(),
|
|
994
|
+
onKeyPress: (a) => o(),
|
|
989
995
|
...e.BlocksWrapperProps,
|
|
990
996
|
children: e.children
|
|
991
997
|
}
|
|
992
998
|
),
|
|
993
|
-
/* @__PURE__ */
|
|
999
|
+
/* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-215a41e0 {
|
|
994
1000
|
display: flex;
|
|
995
1001
|
flex-direction: column;
|
|
996
1002
|
align-items: stretch;
|
|
@@ -998,9 +1004,9 @@ function Nt(e) {
|
|
|
998
1004
|
] });
|
|
999
1005
|
}
|
|
1000
1006
|
function F(e) {
|
|
1001
|
-
var i, o,
|
|
1007
|
+
var i, o, r;
|
|
1002
1008
|
const t = ce(oe), n = ce(Te);
|
|
1003
|
-
return /* @__PURE__ */
|
|
1009
|
+
return /* @__PURE__ */ s(
|
|
1004
1010
|
Nt,
|
|
1005
1011
|
{
|
|
1006
1012
|
blocks: e.blocks,
|
|
@@ -1010,158 +1016,162 @@ function F(e) {
|
|
|
1010
1016
|
classNameProp: e.className,
|
|
1011
1017
|
BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
|
|
1012
1018
|
BlocksWrapperProps: ((o = e.context) == null ? void 0 : o.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
|
|
1013
|
-
children: e.blocks ? /* @__PURE__ */
|
|
1019
|
+
children: e.blocks ? /* @__PURE__ */ s(T, { children: (r = e.blocks) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
|
|
1014
1020
|
j,
|
|
1015
1021
|
{
|
|
1016
|
-
block:
|
|
1022
|
+
block: a,
|
|
1017
1023
|
linkComponent: e.linkComponent,
|
|
1018
1024
|
context: e.context || t,
|
|
1019
1025
|
registeredComponents: e.registeredComponents || (n == null ? void 0 : n.registeredComponents)
|
|
1020
1026
|
},
|
|
1021
|
-
|
|
1027
|
+
a.id
|
|
1022
1028
|
)) }) : null
|
|
1023
1029
|
}
|
|
1024
1030
|
);
|
|
1025
1031
|
}
|
|
1026
1032
|
const Wt = (e) => `builder-columns ${e}-breakpoints`;
|
|
1027
1033
|
function Ft(e) {
|
|
1028
|
-
var k,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
), [i, o] = T(() => e.columns || []), [a, r] = T(
|
|
1032
|
-
() => e.stackColumnsAt || "tablet"
|
|
1033
|
-
);
|
|
1034
|
-
function s(m) {
|
|
1035
|
-
return m.link ? e.builderLinkComponent || "a" : "div";
|
|
1034
|
+
var k, S;
|
|
1035
|
+
function t() {
|
|
1036
|
+
return typeof e.space == "number" ? e.space || 0 : 20;
|
|
1036
1037
|
}
|
|
1037
|
-
function
|
|
1038
|
-
|
|
1039
|
-
return ((y = i[m]) == null ? void 0 : y.width) || 100 / i.length;
|
|
1038
|
+
function n() {
|
|
1039
|
+
return e.columns || [];
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1042
|
-
|
|
1043
|
-
return `calc(${y}% - ${I}px)`;
|
|
1041
|
+
function i() {
|
|
1042
|
+
return e.stackColumnsAt || "tablet";
|
|
1044
1043
|
}
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1047
|
-
|
|
1044
|
+
function o(p) {
|
|
1045
|
+
return p.link ? e.builderLinkComponent || "a" : "div";
|
|
1046
|
+
}
|
|
1047
|
+
function r(p) {
|
|
1048
|
+
var b;
|
|
1049
|
+
return ((b = n()[p]) == null ? void 0 : b.width) || 100 / n().length;
|
|
1050
|
+
}
|
|
1051
|
+
function a(p) {
|
|
1052
|
+
const b = r(p), x = t() * (n().length - 1) * (b / 100);
|
|
1053
|
+
return `calc(${b}% - ${x}px)`;
|
|
1054
|
+
}
|
|
1055
|
+
function l({
|
|
1056
|
+
stackedStyle: p,
|
|
1057
|
+
desktopStyle: b
|
|
1048
1058
|
}) {
|
|
1049
|
-
return
|
|
1059
|
+
return i() === "tablet" ? p : b;
|
|
1050
1060
|
}
|
|
1051
|
-
function
|
|
1052
|
-
stackedStyle:
|
|
1053
|
-
desktopStyle:
|
|
1061
|
+
function d({
|
|
1062
|
+
stackedStyle: p,
|
|
1063
|
+
desktopStyle: b
|
|
1054
1064
|
}) {
|
|
1055
|
-
return
|
|
1065
|
+
return i() === "never" ? b : p;
|
|
1056
1066
|
}
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
function
|
|
1067
|
+
function c() {
|
|
1068
|
+
return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
1069
|
+
}
|
|
1070
|
+
function h() {
|
|
1061
1071
|
return {
|
|
1062
|
-
"--flex-dir":
|
|
1063
|
-
"--flex-dir-tablet":
|
|
1064
|
-
stackedStyle:
|
|
1072
|
+
"--flex-dir": c(),
|
|
1073
|
+
"--flex-dir-tablet": l({
|
|
1074
|
+
stackedStyle: c(),
|
|
1065
1075
|
desktopStyle: "row"
|
|
1066
1076
|
})
|
|
1067
1077
|
};
|
|
1068
1078
|
}
|
|
1069
|
-
function
|
|
1070
|
-
const
|
|
1079
|
+
function g(p) {
|
|
1080
|
+
const b = p === 0 ? 0 : t(), x = a(p), A = `${b}px`, C = "100%", I = 0;
|
|
1071
1081
|
return {
|
|
1072
1082
|
...{
|
|
1073
1083
|
display: "flex",
|
|
1074
1084
|
flexDirection: "column",
|
|
1075
1085
|
alignItems: "stretch"
|
|
1076
1086
|
},
|
|
1077
|
-
width:
|
|
1078
|
-
["marginLeft"]:
|
|
1079
|
-
"--column-width-mobile":
|
|
1080
|
-
stackedStyle:
|
|
1081
|
-
desktopStyle:
|
|
1087
|
+
width: x,
|
|
1088
|
+
["marginLeft"]: A,
|
|
1089
|
+
"--column-width-mobile": d({
|
|
1090
|
+
stackedStyle: C,
|
|
1091
|
+
desktopStyle: x
|
|
1082
1092
|
}),
|
|
1083
|
-
"--column-margin-left-mobile":
|
|
1084
|
-
stackedStyle:
|
|
1085
|
-
desktopStyle:
|
|
1093
|
+
"--column-margin-left-mobile": d({
|
|
1094
|
+
stackedStyle: I,
|
|
1095
|
+
desktopStyle: A
|
|
1086
1096
|
}),
|
|
1087
|
-
"--column-width-tablet":
|
|
1088
|
-
stackedStyle:
|
|
1089
|
-
desktopStyle:
|
|
1097
|
+
"--column-width-tablet": l({
|
|
1098
|
+
stackedStyle: C,
|
|
1099
|
+
desktopStyle: x
|
|
1090
1100
|
}),
|
|
1091
|
-
"--column-margin-left-tablet":
|
|
1092
|
-
stackedStyle:
|
|
1093
|
-
desktopStyle:
|
|
1101
|
+
"--column-margin-left-tablet": l({
|
|
1102
|
+
stackedStyle: I,
|
|
1103
|
+
desktopStyle: A
|
|
1094
1104
|
})
|
|
1095
1105
|
};
|
|
1096
1106
|
}
|
|
1097
|
-
function
|
|
1098
|
-
var
|
|
1107
|
+
function m(p) {
|
|
1108
|
+
var x, A;
|
|
1099
1109
|
return We(
|
|
1100
|
-
((
|
|
1101
|
-
)[
|
|
1110
|
+
((A = (x = e.builderContext.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints) || {}
|
|
1111
|
+
)[p].max;
|
|
1102
1112
|
}
|
|
1103
|
-
function
|
|
1104
|
-
const
|
|
1113
|
+
function v() {
|
|
1114
|
+
const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
1105
1115
|
return `
|
|
1106
|
-
@media (max-width: ${
|
|
1116
|
+
@media (max-width: ${m("medium")}px) {
|
|
1107
1117
|
.${e.builderBlock.id}-breakpoints {
|
|
1108
1118
|
flex-direction: var(--flex-dir-tablet);
|
|
1109
1119
|
align-items: stretch;
|
|
1110
1120
|
}
|
|
1111
1121
|
|
|
1112
|
-
${
|
|
1122
|
+
${p} {
|
|
1113
1123
|
width: var(--column-width-tablet) !important;
|
|
1114
1124
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
1115
1125
|
}
|
|
1116
1126
|
}
|
|
1117
1127
|
|
|
1118
|
-
@media (max-width: ${
|
|
1128
|
+
@media (max-width: ${m("small")}px) {
|
|
1119
1129
|
.${e.builderBlock.id}-breakpoints {
|
|
1120
1130
|
flex-direction: var(--flex-dir);
|
|
1121
1131
|
align-items: stretch;
|
|
1122
1132
|
}
|
|
1123
1133
|
|
|
1124
|
-
${
|
|
1134
|
+
${p} {
|
|
1125
1135
|
width: var(--column-width-mobile) !important;
|
|
1126
1136
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
1127
1137
|
}
|
|
1128
1138
|
},
|
|
1129
1139
|
`;
|
|
1130
1140
|
}
|
|
1131
|
-
function
|
|
1141
|
+
function f(p, b) {
|
|
1132
1142
|
return {
|
|
1133
|
-
...
|
|
1134
|
-
href:
|
|
1143
|
+
...p.link ? {
|
|
1144
|
+
href: p.link
|
|
1135
1145
|
} : {},
|
|
1136
1146
|
[H()]: "builder-column",
|
|
1137
|
-
style: Ae(
|
|
1147
|
+
style: Ae(g(b))
|
|
1138
1148
|
};
|
|
1139
1149
|
}
|
|
1140
|
-
return /* @__PURE__ */ V(
|
|
1150
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
1141
1151
|
/* @__PURE__ */ V(
|
|
1142
1152
|
"div",
|
|
1143
1153
|
{
|
|
1144
|
-
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-
|
|
1145
|
-
style:
|
|
1154
|
+
className: Wt((k = e.builderBlock) == null ? void 0 : k.id) + " div-49f40bae",
|
|
1155
|
+
style: h(),
|
|
1146
1156
|
children: [
|
|
1147
|
-
/* @__PURE__ */
|
|
1157
|
+
/* @__PURE__ */ s(
|
|
1148
1158
|
G,
|
|
1149
1159
|
{
|
|
1150
1160
|
id: "builderio-columns",
|
|
1151
|
-
styles:
|
|
1161
|
+
styles: v(),
|
|
1152
1162
|
nonce: e.builderContext.nonce
|
|
1153
1163
|
}
|
|
1154
1164
|
),
|
|
1155
|
-
(
|
|
1165
|
+
(S = e.columns) == null ? void 0 : S.map((p, b) => /* @__PURE__ */ s(
|
|
1156
1166
|
ie,
|
|
1157
1167
|
{
|
|
1158
|
-
TagName:
|
|
1168
|
+
TagName: o(p),
|
|
1159
1169
|
actionAttributes: {},
|
|
1160
|
-
attributes:
|
|
1161
|
-
children: /* @__PURE__ */
|
|
1170
|
+
attributes: f(p, b),
|
|
1171
|
+
children: /* @__PURE__ */ s(
|
|
1162
1172
|
F,
|
|
1163
1173
|
{
|
|
1164
|
-
path: `
|
|
1174
|
+
path: `columns.${b}.blocks`,
|
|
1165
1175
|
parent: e.builderBlock.id,
|
|
1166
1176
|
styleProp: {
|
|
1167
1177
|
flexGrow: "1"
|
|
@@ -1169,23 +1179,23 @@ function Ft(e) {
|
|
|
1169
1179
|
context: e.builderContext,
|
|
1170
1180
|
registeredComponents: e.builderComponents,
|
|
1171
1181
|
linkComponent: e.builderLinkComponent,
|
|
1172
|
-
blocks:
|
|
1182
|
+
blocks: p.blocks
|
|
1173
1183
|
}
|
|
1174
1184
|
)
|
|
1175
1185
|
},
|
|
1176
|
-
|
|
1186
|
+
b
|
|
1177
1187
|
))
|
|
1178
1188
|
]
|
|
1179
1189
|
}
|
|
1180
1190
|
),
|
|
1181
|
-
/* @__PURE__ */
|
|
1191
|
+
/* @__PURE__ */ s("style", { children: `.div-49f40bae {
|
|
1182
1192
|
display: flex;
|
|
1183
1193
|
line-height: normal;
|
|
1184
1194
|
}` })
|
|
1185
1195
|
] });
|
|
1186
1196
|
}
|
|
1187
1197
|
function $t(e) {
|
|
1188
|
-
return /* @__PURE__ */
|
|
1198
|
+
return /* @__PURE__ */ s("span", { children: e.children });
|
|
1189
1199
|
}
|
|
1190
1200
|
function he(e) {
|
|
1191
1201
|
return e.replace(/http(s)?:/, "");
|
|
@@ -1201,8 +1211,8 @@ function Lt(e, t) {
|
|
|
1201
1211
|
return he(e);
|
|
1202
1212
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1203
1213
|
if (n) {
|
|
1204
|
-
const i = e.split(n[0]), o = n[3],
|
|
1205
|
-
return he(`${i[0]}_${
|
|
1214
|
+
const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
|
|
1215
|
+
return he(`${i[0]}_${r}${o}`);
|
|
1206
1216
|
}
|
|
1207
1217
|
return null;
|
|
1208
1218
|
}
|
|
@@ -1218,21 +1228,21 @@ function Y(e) {
|
|
|
1218
1228
|
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
|
|
1219
1229
|
}
|
|
1220
1230
|
function Ot(e) {
|
|
1221
|
-
var o,
|
|
1231
|
+
var o, r, a, l, d, c;
|
|
1222
1232
|
function t() {
|
|
1223
|
-
var
|
|
1224
|
-
const
|
|
1225
|
-
if (!
|
|
1233
|
+
var m;
|
|
1234
|
+
const g = e.image || e.src;
|
|
1235
|
+
if (!g || // We can auto add srcset for cdn.builder.io and shopify
|
|
1226
1236
|
// images, otherwise you can supply this prop manually
|
|
1227
|
-
!(
|
|
1237
|
+
!(g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/)))
|
|
1228
1238
|
return e.srcset;
|
|
1229
1239
|
if (!e.noWebp) {
|
|
1230
|
-
if (e.srcset && ((
|
|
1240
|
+
if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
|
|
1231
1241
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
1232
|
-
return console.debug("Removed given srcset"), Y(
|
|
1242
|
+
return console.debug("Removed given srcset"), Y(g);
|
|
1233
1243
|
} else if (e.image && !e.srcset)
|
|
1234
|
-
return Y(
|
|
1235
|
-
return Y(
|
|
1244
|
+
return Y(g);
|
|
1245
|
+
return Y(g);
|
|
1236
1246
|
}
|
|
1237
1247
|
}
|
|
1238
1248
|
function n() {
|
|
@@ -1250,11 +1260,11 @@ function Ot(e) {
|
|
|
1250
1260
|
return e.aspectRatio ? h : void 0;
|
|
1251
1261
|
}
|
|
1252
1262
|
return B(() => {
|
|
1253
|
-
}, []), /* @__PURE__ */ V(
|
|
1254
|
-
/* @__PURE__ */ V(
|
|
1263
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
1264
|
+
/* @__PURE__ */ V(T, { children: [
|
|
1255
1265
|
/* @__PURE__ */ V("picture", { children: [
|
|
1256
|
-
n() ? /* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1266
|
+
n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
|
|
1267
|
+
/* @__PURE__ */ s(
|
|
1258
1268
|
"img",
|
|
1259
1269
|
{
|
|
1260
1270
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -1273,7 +1283,7 @@ function Ot(e) {
|
|
|
1273
1283
|
}
|
|
1274
1284
|
)
|
|
1275
1285
|
] }),
|
|
1276
|
-
e.aspectRatio && !((
|
|
1286
|
+
e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
|
|
1277
1287
|
"div",
|
|
1278
1288
|
{
|
|
1279
1289
|
className: "builder-image-sizer div-7a292ab8",
|
|
@@ -1282,10 +1292,10 @@ function Ot(e) {
|
|
|
1282
1292
|
}
|
|
1283
1293
|
}
|
|
1284
1294
|
) : null,
|
|
1285
|
-
(
|
|
1286
|
-
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */
|
|
1295
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(T, { children: e.children }) : null,
|
|
1296
|
+
!e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-7a292ab8-2", children: e.children }) : null
|
|
1287
1297
|
] }),
|
|
1288
|
-
/* @__PURE__ */
|
|
1298
|
+
/* @__PURE__ */ s("style", { children: `.img-7a292ab8 {
|
|
1289
1299
|
opacity: 1;
|
|
1290
1300
|
transition: opacity 0.2s ease-in-out;
|
|
1291
1301
|
}.div-7a292ab8 {
|
|
@@ -1305,7 +1315,7 @@ function Ot(e) {
|
|
|
1305
1315
|
] });
|
|
1306
1316
|
}
|
|
1307
1317
|
function Ut(e) {
|
|
1308
|
-
return /* @__PURE__ */
|
|
1318
|
+
return /* @__PURE__ */ s(
|
|
1309
1319
|
"section",
|
|
1310
1320
|
{
|
|
1311
1321
|
...e.attributes,
|
|
@@ -1451,8 +1461,8 @@ const Q = {
|
|
|
1451
1461
|
}
|
|
1452
1462
|
}, ge = (e) => e.toString();
|
|
1453
1463
|
function jt(e) {
|
|
1454
|
-
var
|
|
1455
|
-
const [t, n] =
|
|
1464
|
+
var g;
|
|
1465
|
+
const [t, n] = w(() => []);
|
|
1456
1466
|
function i() {
|
|
1457
1467
|
return !!(e.grid || e.oneAtATime);
|
|
1458
1468
|
}
|
|
@@ -1468,7 +1478,7 @@ function jt(e) {
|
|
|
1468
1478
|
}
|
|
1469
1479
|
};
|
|
1470
1480
|
}
|
|
1471
|
-
function
|
|
1481
|
+
function r() {
|
|
1472
1482
|
const v = {
|
|
1473
1483
|
...{
|
|
1474
1484
|
display: "flex",
|
|
@@ -1478,72 +1488,74 @@ function jt(e) {
|
|
|
1478
1488
|
cursor: "pointer"
|
|
1479
1489
|
};
|
|
1480
1490
|
return Object.fromEntries(
|
|
1481
|
-
Object.entries(v).filter(([
|
|
1491
|
+
Object.entries(v).filter(([f, k]) => k !== void 0)
|
|
1482
1492
|
);
|
|
1483
1493
|
}
|
|
1484
|
-
function
|
|
1485
|
-
return `builder-accordion-title builder-accordion-title-${t.includes(
|
|
1494
|
+
function a(m) {
|
|
1495
|
+
return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
|
|
1486
1496
|
}
|
|
1487
|
-
function
|
|
1488
|
-
return `builder-accordion-detail builder-accordion-detail-${t.includes(
|
|
1497
|
+
function l(m) {
|
|
1498
|
+
return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
|
|
1489
1499
|
}
|
|
1490
1500
|
function d() {
|
|
1491
|
-
let
|
|
1501
|
+
let m = null;
|
|
1492
1502
|
if (e.grid && t.length && document) {
|
|
1493
|
-
const
|
|
1494
|
-
let
|
|
1495
|
-
`.builder-accordion-title[data-index="${
|
|
1503
|
+
const f = t[0];
|
|
1504
|
+
let S = document.querySelector(
|
|
1505
|
+
`.builder-accordion-title[data-index="${f}"]`
|
|
1496
1506
|
);
|
|
1497
|
-
if (
|
|
1498
|
-
let
|
|
1499
|
-
for (;
|
|
1500
|
-
if (
|
|
1501
|
-
if (
|
|
1507
|
+
if (m = f, S) {
|
|
1508
|
+
let p = S.getBoundingClientRect();
|
|
1509
|
+
for (; S = S && S.nextElementSibling; )
|
|
1510
|
+
if (S) {
|
|
1511
|
+
if (S.classList.contains("builder-accordion-detail"))
|
|
1502
1512
|
continue;
|
|
1503
|
-
const
|
|
1504
|
-
if (
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1513
|
+
const b = S.getBoundingClientRect();
|
|
1514
|
+
if (b.left > p.left) {
|
|
1515
|
+
const x = parseInt(
|
|
1516
|
+
S.getAttribute("data-index") || "",
|
|
1507
1517
|
10
|
|
1508
1518
|
);
|
|
1509
|
-
isNaN(
|
|
1519
|
+
isNaN(x) || (p = b, m = x);
|
|
1510
1520
|
} else
|
|
1511
1521
|
break;
|
|
1512
1522
|
}
|
|
1513
1523
|
}
|
|
1514
1524
|
}
|
|
1515
|
-
return typeof
|
|
1525
|
+
return typeof m == "number" && (m = m + 1), m;
|
|
1516
1526
|
}
|
|
1517
1527
|
function c() {
|
|
1518
|
-
const
|
|
1528
|
+
const m = {
|
|
1519
1529
|
order: typeof d() == "number" ? d() : void 0,
|
|
1520
1530
|
...e.grid && {
|
|
1521
1531
|
width: "100%"
|
|
1522
1532
|
}
|
|
1523
1533
|
};
|
|
1524
1534
|
return Object.fromEntries(
|
|
1525
|
-
Object.entries(
|
|
1535
|
+
Object.entries(m).filter(([v, f]) => f !== void 0)
|
|
1526
1536
|
);
|
|
1527
1537
|
}
|
|
1528
|
-
function h(
|
|
1529
|
-
t.includes(
|
|
1538
|
+
function h(m) {
|
|
1539
|
+
t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
|
|
1530
1540
|
}
|
|
1531
|
-
return /* @__PURE__ */
|
|
1532
|
-
/* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (g = e.items) == null ? void 0 : g.map((m, v) => /* @__PURE__ */ V(T, { children: [
|
|
1542
|
+
/* @__PURE__ */ s(
|
|
1533
1543
|
"div",
|
|
1534
1544
|
{
|
|
1535
|
-
className:
|
|
1545
|
+
className: a(v),
|
|
1536
1546
|
style: {
|
|
1537
|
-
...
|
|
1538
|
-
|
|
1539
|
-
|
|
1547
|
+
...r(),
|
|
1548
|
+
...e.grid && {
|
|
1549
|
+
width: e.gridRowWidth,
|
|
1550
|
+
order: d() !== null ? ge(v) : ge(v + 1)
|
|
1551
|
+
}
|
|
1540
1552
|
},
|
|
1541
1553
|
"data-index": v,
|
|
1542
|
-
onClick: (
|
|
1543
|
-
children: /* @__PURE__ */
|
|
1554
|
+
onClick: (f) => h(v),
|
|
1555
|
+
children: /* @__PURE__ */ s(
|
|
1544
1556
|
F,
|
|
1545
1557
|
{
|
|
1546
|
-
blocks:
|
|
1558
|
+
blocks: m.title,
|
|
1547
1559
|
path: `items.${v}.title`,
|
|
1548
1560
|
parent: e.builderBlock.id,
|
|
1549
1561
|
context: e.builderContext,
|
|
@@ -1553,15 +1565,15 @@ function jt(e) {
|
|
|
1553
1565
|
)
|
|
1554
1566
|
}
|
|
1555
1567
|
),
|
|
1556
|
-
t.includes(v) ? /* @__PURE__ */
|
|
1568
|
+
t.includes(v) ? /* @__PURE__ */ s(
|
|
1557
1569
|
"div",
|
|
1558
1570
|
{
|
|
1559
|
-
className:
|
|
1571
|
+
className: l(v),
|
|
1560
1572
|
style: c(),
|
|
1561
|
-
children: /* @__PURE__ */
|
|
1573
|
+
children: /* @__PURE__ */ s(
|
|
1562
1574
|
F,
|
|
1563
1575
|
{
|
|
1564
|
-
blocks:
|
|
1576
|
+
blocks: m.detail,
|
|
1565
1577
|
path: `items.${v}.detail`,
|
|
1566
1578
|
parent: e.builderBlock.id,
|
|
1567
1579
|
context: e.builderContext,
|
|
@@ -1788,7 +1800,7 @@ const Mt = {
|
|
|
1788
1800
|
});
|
|
1789
1801
|
}
|
|
1790
1802
|
const n = e.get("columns");
|
|
1791
|
-
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((
|
|
1803
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((l, d) => l + d.get("width"), 0) !== 100) && t();
|
|
1792
1804
|
}
|
|
1793
1805
|
}, {
|
|
1794
1806
|
name: "space",
|
|
@@ -1842,29 +1854,29 @@ const Mt = {
|
|
|
1842
1854
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
1843
1855
|
onChange: (e) => {
|
|
1844
1856
|
e.delete("srcset"), e.delete("noWebp");
|
|
1845
|
-
function n(
|
|
1857
|
+
function n(a, l = 6e4) {
|
|
1846
1858
|
return new Promise((d, c) => {
|
|
1847
1859
|
const h = document.createElement("img");
|
|
1848
|
-
let
|
|
1860
|
+
let g = !1;
|
|
1849
1861
|
h.onload = () => {
|
|
1850
|
-
|
|
1851
|
-
}, h.addEventListener("error", (
|
|
1852
|
-
console.warn("Image load failed",
|
|
1853
|
-
}), h.src =
|
|
1854
|
-
|
|
1855
|
-
},
|
|
1862
|
+
g = !0, d(h);
|
|
1863
|
+
}, h.addEventListener("error", (m) => {
|
|
1864
|
+
console.warn("Image load failed", m.error), c(m.error);
|
|
1865
|
+
}), h.src = a, setTimeout(() => {
|
|
1866
|
+
g || c(new Error("Image load timed out"));
|
|
1867
|
+
}, l);
|
|
1856
1868
|
});
|
|
1857
1869
|
}
|
|
1858
|
-
function i(
|
|
1859
|
-
return Math.round(
|
|
1870
|
+
function i(a) {
|
|
1871
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1860
1872
|
}
|
|
1861
|
-
const o = e.get("image"),
|
|
1862
|
-
if (fetch(o).then((
|
|
1863
|
-
|
|
1864
|
-
}), o && (!
|
|
1865
|
-
return n(o).then((
|
|
1866
|
-
const
|
|
1867
|
-
e.get("image") === o && (!
|
|
1873
|
+
const o = e.get("image"), r = e.get("aspectRatio");
|
|
1874
|
+
if (fetch(o).then((a) => a.blob()).then((a) => {
|
|
1875
|
+
a.type.includes("svg") && e.set("noWebp", !0);
|
|
1876
|
+
}), o && (!r || r === 0.7041))
|
|
1877
|
+
return n(o).then((a) => {
|
|
1878
|
+
const l = e.get("aspectRatio");
|
|
1879
|
+
e.get("image") === o && (!l || l === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
|
|
1868
1880
|
});
|
|
1869
1881
|
}
|
|
1870
1882
|
}, {
|
|
@@ -1989,7 +2001,7 @@ const Mt = {
|
|
|
1989
2001
|
};
|
|
1990
2002
|
function Gt(e) {
|
|
1991
2003
|
var t, n, i;
|
|
1992
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ s(
|
|
1993
2005
|
"div",
|
|
1994
2006
|
{
|
|
1995
2007
|
style: {
|
|
@@ -1998,7 +2010,7 @@ function Gt(e) {
|
|
|
1998
2010
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
1999
2011
|
"builder-slot": e.name
|
|
2000
2012
|
},
|
|
2001
|
-
children: /* @__PURE__ */
|
|
2013
|
+
children: /* @__PURE__ */ s(
|
|
2002
2014
|
F,
|
|
2003
2015
|
{
|
|
2004
2016
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -2193,18 +2205,18 @@ const Yt = {
|
|
|
2193
2205
|
}
|
|
2194
2206
|
};
|
|
2195
2207
|
function Xt(e) {
|
|
2196
|
-
var
|
|
2197
|
-
const [t, n] =
|
|
2208
|
+
var r;
|
|
2209
|
+
const [t, n] = w(
|
|
2198
2210
|
() => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
|
|
2199
2211
|
);
|
|
2200
|
-
function i(
|
|
2201
|
-
return e.tabs && e.tabs[
|
|
2212
|
+
function i(a) {
|
|
2213
|
+
return e.tabs && e.tabs[a].content;
|
|
2202
2214
|
}
|
|
2203
|
-
function o(
|
|
2204
|
-
|
|
2215
|
+
function o(a) {
|
|
2216
|
+
a === t && e.collapsible ? n(-1) : n(a);
|
|
2205
2217
|
}
|
|
2206
2218
|
return /* @__PURE__ */ V("div", { children: [
|
|
2207
|
-
/* @__PURE__ */
|
|
2219
|
+
/* @__PURE__ */ s(
|
|
2208
2220
|
"div",
|
|
2209
2221
|
{
|
|
2210
2222
|
className: "builder-tabs-wrap",
|
|
@@ -2214,35 +2226,35 @@ function Xt(e) {
|
|
|
2214
2226
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
2215
2227
|
overflow: "auto"
|
|
2216
2228
|
},
|
|
2217
|
-
children: (
|
|
2229
|
+
children: (r = e.tabs) == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
2218
2230
|
"span",
|
|
2219
2231
|
{
|
|
2220
|
-
className: `builder-tab-wrap ${t ===
|
|
2232
|
+
className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
|
|
2221
2233
|
style: {
|
|
2222
|
-
...t ===
|
|
2234
|
+
...t === l ? e.activeTabStyle : {}
|
|
2223
2235
|
},
|
|
2224
|
-
onClick: (d) => o(
|
|
2225
|
-
children: /* @__PURE__ */
|
|
2236
|
+
onClick: (d) => o(l),
|
|
2237
|
+
children: /* @__PURE__ */ s(
|
|
2226
2238
|
F,
|
|
2227
2239
|
{
|
|
2228
2240
|
parent: e.builderBlock.id,
|
|
2229
|
-
path: `
|
|
2230
|
-
blocks:
|
|
2241
|
+
path: `tabs.${l}.label`,
|
|
2242
|
+
blocks: a.label,
|
|
2231
2243
|
context: e.builderContext,
|
|
2232
2244
|
registeredComponents: e.builderComponents,
|
|
2233
2245
|
linkComponent: e.builderLinkComponent
|
|
2234
2246
|
}
|
|
2235
2247
|
)
|
|
2236
2248
|
},
|
|
2237
|
-
|
|
2249
|
+
l
|
|
2238
2250
|
))
|
|
2239
2251
|
}
|
|
2240
2252
|
),
|
|
2241
|
-
i(t) ? /* @__PURE__ */
|
|
2253
|
+
i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
2242
2254
|
F,
|
|
2243
2255
|
{
|
|
2244
2256
|
parent: e.builderBlock.id,
|
|
2245
|
-
path: `
|
|
2257
|
+
path: `tabs.${t}.content`,
|
|
2246
2258
|
blocks: i(t),
|
|
2247
2259
|
context: e.builderContext,
|
|
2248
2260
|
registeredComponents: e.builderComponents,
|
|
@@ -2276,25 +2288,25 @@ const Zt = {
|
|
|
2276
2288
|
};
|
|
2277
2289
|
function en(e) {
|
|
2278
2290
|
function t() {
|
|
2279
|
-
var
|
|
2291
|
+
var l;
|
|
2280
2292
|
const n = e.builderContext, {
|
|
2281
2293
|
context: i,
|
|
2282
2294
|
localState: o,
|
|
2283
|
-
rootState:
|
|
2284
|
-
rootSetState:
|
|
2295
|
+
rootState: r,
|
|
2296
|
+
rootSetState: a
|
|
2285
2297
|
} = n;
|
|
2286
|
-
return String(((
|
|
2298
|
+
return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
|
|
2287
2299
|
/{{([^}]+)}}/g,
|
|
2288
2300
|
(d, c) => O({
|
|
2289
2301
|
code: c,
|
|
2290
2302
|
context: i,
|
|
2291
2303
|
localState: o,
|
|
2292
|
-
rootState:
|
|
2293
|
-
rootSetState:
|
|
2304
|
+
rootState: r,
|
|
2305
|
+
rootSetState: a
|
|
2294
2306
|
})
|
|
2295
2307
|
);
|
|
2296
2308
|
}
|
|
2297
|
-
return /* @__PURE__ */
|
|
2309
|
+
return /* @__PURE__ */ s(
|
|
2298
2310
|
"div",
|
|
2299
2311
|
{
|
|
2300
2312
|
className: "builder-text",
|
|
@@ -2329,14 +2341,14 @@ const tn = {
|
|
|
2329
2341
|
}]
|
|
2330
2342
|
};
|
|
2331
2343
|
function nn(e) {
|
|
2332
|
-
const t = $(null), [n, i] =
|
|
2344
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []);
|
|
2333
2345
|
return B(() => {
|
|
2334
|
-
var
|
|
2335
|
-
if (!((
|
|
2346
|
+
var l;
|
|
2347
|
+
if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
|
|
2336
2348
|
return;
|
|
2337
|
-
const
|
|
2338
|
-
for (let d = 0; d <
|
|
2339
|
-
const c =
|
|
2349
|
+
const a = t.current.getElementsByTagName("script");
|
|
2350
|
+
for (let d = 0; d < a.length; d++) {
|
|
2351
|
+
const c = a[d];
|
|
2340
2352
|
if (c.src) {
|
|
2341
2353
|
if (n.includes(c.src))
|
|
2342
2354
|
continue;
|
|
@@ -2357,7 +2369,7 @@ function nn(e) {
|
|
|
2357
2369
|
}
|
|
2358
2370
|
}
|
|
2359
2371
|
}
|
|
2360
|
-
}, []), /* @__PURE__ */
|
|
2372
|
+
}, []), /* @__PURE__ */ s(
|
|
2361
2373
|
"div",
|
|
2362
2374
|
{
|
|
2363
2375
|
ref: t,
|
|
@@ -2383,28 +2395,28 @@ const on = {
|
|
|
2383
2395
|
}]
|
|
2384
2396
|
}, an = ["text/javascript", "application/javascript", "application/ecmascript"], rn = (e) => an.includes(e.type);
|
|
2385
2397
|
function ln(e) {
|
|
2386
|
-
const t = $(null), [n, i] =
|
|
2398
|
+
const t = $(null), [n, i] = w(() => []), [o, r] = w(() => []), [a, l] = w(() => !1);
|
|
2387
2399
|
function d() {
|
|
2388
2400
|
if (!t.current || !t.current.getElementsByTagName)
|
|
2389
2401
|
return;
|
|
2390
2402
|
const c = t.current.getElementsByTagName("script");
|
|
2391
2403
|
for (let h = 0; h < c.length; h++) {
|
|
2392
|
-
const
|
|
2393
|
-
if (
|
|
2394
|
-
n.push(
|
|
2395
|
-
const
|
|
2396
|
-
|
|
2397
|
-
} else if (rn(
|
|
2404
|
+
const g = c[h];
|
|
2405
|
+
if (g.src && !n.includes(g.src)) {
|
|
2406
|
+
n.push(g.src);
|
|
2407
|
+
const m = document.createElement("script");
|
|
2408
|
+
m.async = !0, m.src = g.src, document.head.appendChild(m);
|
|
2409
|
+
} else if (rn(g) && !o.includes(g.innerText))
|
|
2398
2410
|
try {
|
|
2399
|
-
o.push(
|
|
2400
|
-
} catch (
|
|
2401
|
-
console.warn("`Embed`: Error running script:",
|
|
2411
|
+
o.push(g.innerText), new Function(g.innerText)();
|
|
2412
|
+
} catch (m) {
|
|
2413
|
+
console.warn("`Embed`: Error running script:", m);
|
|
2402
2414
|
}
|
|
2403
2415
|
}
|
|
2404
2416
|
}
|
|
2405
2417
|
return B(() => {
|
|
2406
|
-
t.current && !
|
|
2407
|
-
}, [t.current,
|
|
2418
|
+
t.current && !a && (l(!0), d());
|
|
2419
|
+
}, [t.current, a]), /* @__PURE__ */ s(
|
|
2408
2420
|
"div",
|
|
2409
2421
|
{
|
|
2410
2422
|
className: "builder-embed",
|
|
@@ -2655,115 +2667,115 @@ const sn = {
|
|
|
2655
2667
|
return cn.includes(e) ? e : "production";
|
|
2656
2668
|
};
|
|
2657
2669
|
function un(e) {
|
|
2658
|
-
var
|
|
2659
|
-
const t = $(null), [n, i] =
|
|
2670
|
+
var g, m;
|
|
2671
|
+
const t = $(null), [n, i] = w(() => "unsubmitted"), [o, r] = w(() => null), [a, l] = w(() => "");
|
|
2660
2672
|
function d(v) {
|
|
2661
|
-
var
|
|
2662
|
-
const
|
|
2673
|
+
var k, S;
|
|
2674
|
+
const f = {
|
|
2663
2675
|
...e.builderContext.rootState,
|
|
2664
2676
|
...v
|
|
2665
2677
|
};
|
|
2666
|
-
e.builderContext.rootSetState ? (
|
|
2678
|
+
e.builderContext.rootSetState ? (S = (k = e.builderContext).rootSetState) == null || S.call(k, f) : e.builderContext.rootState = f;
|
|
2667
2679
|
}
|
|
2668
2680
|
function c() {
|
|
2669
2681
|
return W() && e.previewState || n;
|
|
2670
2682
|
}
|
|
2671
2683
|
function h(v) {
|
|
2672
|
-
var
|
|
2673
|
-
const
|
|
2684
|
+
var k;
|
|
2685
|
+
const f = e.sendWithJs || e.sendSubmissionsTo === "email";
|
|
2674
2686
|
if (e.sendSubmissionsTo === "zapier")
|
|
2675
2687
|
v.preventDefault();
|
|
2676
|
-
else if (
|
|
2688
|
+
else if (f) {
|
|
2677
2689
|
if (!(e.action || e.sendSubmissionsTo === "email")) {
|
|
2678
2690
|
v.preventDefault();
|
|
2679
2691
|
return;
|
|
2680
2692
|
}
|
|
2681
2693
|
v.preventDefault();
|
|
2682
|
-
const
|
|
2683
|
-
let
|
|
2684
|
-
const
|
|
2685
|
-
let
|
|
2694
|
+
const S = v.currentTarget || v.target, p = e.customHeaders || {};
|
|
2695
|
+
let b;
|
|
2696
|
+
const x = new FormData(S), A = Array.from(S.querySelectorAll("input,select,textarea")).filter((u) => !!u.name).map((u) => {
|
|
2697
|
+
let y;
|
|
2686
2698
|
const E = u.name;
|
|
2687
2699
|
if (u instanceof HTMLInputElement)
|
|
2688
2700
|
if (u.type === "radio") {
|
|
2689
2701
|
if (u.checked)
|
|
2690
|
-
return
|
|
2702
|
+
return y = u.name, {
|
|
2691
2703
|
key: E,
|
|
2692
|
-
value:
|
|
2704
|
+
value: y
|
|
2693
2705
|
};
|
|
2694
2706
|
} else if (u.type === "checkbox")
|
|
2695
|
-
|
|
2707
|
+
y = u.checked;
|
|
2696
2708
|
else if (u.type === "number" || u.type === "range") {
|
|
2697
|
-
const
|
|
2698
|
-
isNaN(
|
|
2709
|
+
const R = u.valueAsNumber;
|
|
2710
|
+
isNaN(R) || (y = R);
|
|
2699
2711
|
} else
|
|
2700
|
-
u.type === "file" ?
|
|
2712
|
+
u.type === "file" ? y = u.files : y = u.value;
|
|
2701
2713
|
else
|
|
2702
|
-
|
|
2714
|
+
y = u.value;
|
|
2703
2715
|
return {
|
|
2704
2716
|
key: E,
|
|
2705
|
-
value:
|
|
2717
|
+
value: y
|
|
2706
2718
|
};
|
|
2707
2719
|
});
|
|
2708
|
-
let
|
|
2709
|
-
if (e.sendSubmissionsTo === "email" && (
|
|
2710
|
-
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (
|
|
2711
|
-
}),
|
|
2712
|
-
|
|
2720
|
+
let C = e.contentType;
|
|
2721
|
+
if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(A).forEach(({ value: u }) => {
|
|
2722
|
+
(u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (C = "multipart/form-data");
|
|
2723
|
+
}), C !== "application/json")
|
|
2724
|
+
b = x;
|
|
2713
2725
|
else {
|
|
2714
2726
|
const u = {};
|
|
2715
|
-
Array.from(
|
|
2716
|
-
Ee(u, E,
|
|
2717
|
-
}),
|
|
2727
|
+
Array.from(A).forEach(({ value: y, key: E }) => {
|
|
2728
|
+
Ee(u, E, y);
|
|
2729
|
+
}), b = JSON.stringify(u);
|
|
2718
2730
|
}
|
|
2719
|
-
|
|
2720
|
-
const
|
|
2721
|
-
if (t.current && (t.current.dispatchEvent(
|
|
2731
|
+
C && C !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (p["content-type"] = C));
|
|
2732
|
+
const I = new CustomEvent("presubmit", { detail: { body: b } });
|
|
2733
|
+
if (t.current && (t.current.dispatchEvent(I), I.defaultPrevented))
|
|
2722
2734
|
return;
|
|
2723
2735
|
i("sending");
|
|
2724
|
-
const
|
|
2736
|
+
const P = `${dn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
|
|
2725
2737
|
e.sendSubmissionsToEmail || ""
|
|
2726
2738
|
)}&name=${encodeURIComponent(e.name || "")}`;
|
|
2727
2739
|
fetch(
|
|
2728
|
-
e.sendSubmissionsTo === "email" ?
|
|
2729
|
-
{ body:
|
|
2740
|
+
e.sendSubmissionsTo === "email" ? P : e.action,
|
|
2741
|
+
{ body: b, headers: p, method: e.method || "post" }
|
|
2730
2742
|
).then(
|
|
2731
2743
|
async (u) => {
|
|
2732
|
-
let
|
|
2744
|
+
let y;
|
|
2733
2745
|
const E = u.headers.get("content-type");
|
|
2734
|
-
if (E && E.indexOf("application/json") !== -1 ?
|
|
2735
|
-
let
|
|
2736
|
-
|
|
2746
|
+
if (E && E.indexOf("application/json") !== -1 ? y = await u.json() : y = await u.text(), !u.ok && e.errorMessagePath) {
|
|
2747
|
+
let R = Ie(y, e.errorMessagePath);
|
|
2748
|
+
R && (typeof R != "string" && (R = JSON.stringify(R)), l(R), d({ formErrorMessage: R }));
|
|
2737
2749
|
}
|
|
2738
|
-
if (
|
|
2739
|
-
const
|
|
2740
|
-
detail: { res: u, body:
|
|
2750
|
+
if (r(y), i(u.ok ? "success" : "error"), u.ok) {
|
|
2751
|
+
const R = new CustomEvent("submit:success", {
|
|
2752
|
+
detail: { res: u, body: y }
|
|
2741
2753
|
});
|
|
2742
2754
|
if (t.current) {
|
|
2743
|
-
if (t.current.dispatchEvent(
|
|
2755
|
+
if (t.current.dispatchEvent(R), R.defaultPrevented)
|
|
2744
2756
|
return;
|
|
2745
2757
|
e.resetFormOnSubmit !== !1 && t.current.reset();
|
|
2746
2758
|
}
|
|
2747
2759
|
if (e.successUrl)
|
|
2748
2760
|
if (t.current) {
|
|
2749
|
-
const
|
|
2761
|
+
const N = new CustomEvent("route", {
|
|
2750
2762
|
detail: { url: e.successUrl }
|
|
2751
2763
|
});
|
|
2752
|
-
t.current.dispatchEvent(
|
|
2764
|
+
t.current.dispatchEvent(N), N.defaultPrevented || (location.href = e.successUrl);
|
|
2753
2765
|
} else
|
|
2754
2766
|
location.href = e.successUrl;
|
|
2755
2767
|
}
|
|
2756
2768
|
},
|
|
2757
2769
|
(u) => {
|
|
2758
|
-
const
|
|
2770
|
+
const y = new CustomEvent("submit:error", {
|
|
2759
2771
|
detail: { error: u }
|
|
2760
2772
|
});
|
|
2761
|
-
t.current && (t.current.dispatchEvent(
|
|
2773
|
+
t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(u), i("error"));
|
|
2762
2774
|
}
|
|
2763
2775
|
);
|
|
2764
2776
|
}
|
|
2765
2777
|
}
|
|
2766
|
-
return /* @__PURE__ */ V(
|
|
2778
|
+
return /* @__PURE__ */ V(T, { children: [
|
|
2767
2779
|
" ",
|
|
2768
2780
|
/* @__PURE__ */ V(
|
|
2769
2781
|
"form",
|
|
@@ -2776,7 +2788,7 @@ function un(e) {
|
|
|
2776
2788
|
onSubmit: (v) => h(v),
|
|
2777
2789
|
...e.attributes,
|
|
2778
2790
|
children: [
|
|
2779
|
-
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */
|
|
2791
|
+
e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (m = (g = e.builderBlock) == null ? void 0 : g.children) == null ? void 0 : m.map((v, f) => /* @__PURE__ */ s(
|
|
2780
2792
|
j,
|
|
2781
2793
|
{
|
|
2782
2794
|
block: v,
|
|
@@ -2784,9 +2796,9 @@ function un(e) {
|
|
|
2784
2796
|
registeredComponents: e.builderComponents,
|
|
2785
2797
|
linkComponent: e.builderLinkComponent
|
|
2786
2798
|
},
|
|
2787
|
-
`form-block-${
|
|
2799
|
+
`form-block-${f}`
|
|
2788
2800
|
)) }) : null,
|
|
2789
|
-
c() === "error" ? /* @__PURE__ */
|
|
2801
|
+
c() === "error" ? /* @__PURE__ */ s(
|
|
2790
2802
|
F,
|
|
2791
2803
|
{
|
|
2792
2804
|
path: "errorMessage",
|
|
@@ -2794,7 +2806,7 @@ function un(e) {
|
|
|
2794
2806
|
context: e.builderContext
|
|
2795
2807
|
}
|
|
2796
2808
|
) : null,
|
|
2797
|
-
c() === "sending" ? /* @__PURE__ */
|
|
2809
|
+
c() === "sending" ? /* @__PURE__ */ s(
|
|
2798
2810
|
F,
|
|
2799
2811
|
{
|
|
2800
2812
|
path: "sendingMessage",
|
|
@@ -2802,8 +2814,8 @@ function un(e) {
|
|
|
2802
2814
|
context: e.builderContext
|
|
2803
2815
|
}
|
|
2804
2816
|
) : null,
|
|
2805
|
-
c() === "error" && o ? /* @__PURE__ */
|
|
2806
|
-
c() === "success" ? /* @__PURE__ */
|
|
2817
|
+
c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
|
|
2818
|
+
c() === "success" ? /* @__PURE__ */ s(
|
|
2807
2819
|
F,
|
|
2808
2820
|
{
|
|
2809
2821
|
path: "successMessage",
|
|
@@ -2815,7 +2827,7 @@ function un(e) {
|
|
|
2815
2827
|
}
|
|
2816
2828
|
),
|
|
2817
2829
|
" ",
|
|
2818
|
-
/* @__PURE__ */
|
|
2830
|
+
/* @__PURE__ */ s("style", { children: ".pre-3a20f614 { padding: 10px; color: red; text-align: center; }" }),
|
|
2819
2831
|
" "
|
|
2820
2832
|
] });
|
|
2821
2833
|
}
|
|
@@ -2941,7 +2953,7 @@ function gn(e) {
|
|
|
2941
2953
|
name: e.name,
|
|
2942
2954
|
required: e.required
|
|
2943
2955
|
},
|
|
2944
|
-
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */
|
|
2956
|
+
(t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
|
|
2945
2957
|
);
|
|
2946
2958
|
}
|
|
2947
2959
|
const bn = {
|
|
@@ -2971,7 +2983,7 @@ const bn = {
|
|
|
2971
2983
|
// canHaveChildren: true,
|
|
2972
2984
|
};
|
|
2973
2985
|
function pn(e) {
|
|
2974
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
|
|
2975
2987
|
}
|
|
2976
2988
|
const yn = {
|
|
2977
2989
|
name: "Form:TextArea",
|
|
@@ -3011,7 +3023,7 @@ const yn = {
|
|
|
3011
3023
|
noWrap: !0
|
|
3012
3024
|
};
|
|
3013
3025
|
function xn(e) {
|
|
3014
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ s(
|
|
3015
3027
|
"textarea",
|
|
3016
3028
|
{
|
|
3017
3029
|
...e.attributes,
|
|
@@ -3039,7 +3051,7 @@ const vn = {
|
|
|
3039
3051
|
static: !0
|
|
3040
3052
|
};
|
|
3041
3053
|
function Sn(e) {
|
|
3042
|
-
return /* @__PURE__ */
|
|
3054
|
+
return /* @__PURE__ */ s(
|
|
3043
3055
|
"img",
|
|
3044
3056
|
{
|
|
3045
3057
|
style: {
|
|
@@ -3139,7 +3151,7 @@ const kn = {
|
|
|
3139
3151
|
}
|
|
3140
3152
|
};
|
|
3141
3153
|
function Cn(e) {
|
|
3142
|
-
var i, o,
|
|
3154
|
+
var i, o, r, a, l, d, c;
|
|
3143
3155
|
function t() {
|
|
3144
3156
|
return {
|
|
3145
3157
|
...e.autoPlay === !0 ? {
|
|
@@ -3171,7 +3183,7 @@ function Cn(e) {
|
|
|
3171
3183
|
position: "relative"
|
|
3172
3184
|
},
|
|
3173
3185
|
children: [
|
|
3174
|
-
/* @__PURE__ */
|
|
3186
|
+
/* @__PURE__ */ s(
|
|
3175
3187
|
"video",
|
|
3176
3188
|
{
|
|
3177
3189
|
className: "builder-video",
|
|
@@ -3193,10 +3205,10 @@ function Cn(e) {
|
|
|
3193
3205
|
},
|
|
3194
3206
|
src: e.video || "no-src",
|
|
3195
3207
|
poster: e.posterImage,
|
|
3196
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
3208
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ s("source", { type: "video/mp4", src: e.video })
|
|
3197
3209
|
}
|
|
3198
3210
|
),
|
|
3199
|
-
e.aspectRatio && !(e.fitContent && ((
|
|
3211
|
+
e.aspectRatio && !(e.fitContent && ((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length)) ? /* @__PURE__ */ s(
|
|
3200
3212
|
"div",
|
|
3201
3213
|
{
|
|
3202
3214
|
style: {
|
|
@@ -3207,7 +3219,7 @@ function Cn(e) {
|
|
|
3207
3219
|
}
|
|
3208
3220
|
}
|
|
3209
3221
|
) : null,
|
|
3210
|
-
(
|
|
3222
|
+
(l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(
|
|
3211
3223
|
"div",
|
|
3212
3224
|
{
|
|
3213
3225
|
style: {
|
|
@@ -3218,7 +3230,7 @@ function Cn(e) {
|
|
|
3218
3230
|
children: e.children
|
|
3219
3231
|
}
|
|
3220
3232
|
) : null,
|
|
3221
|
-
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */
|
|
3233
|
+
(c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
|
|
3222
3234
|
"div",
|
|
3223
3235
|
{
|
|
3224
3236
|
style: {
|
|
@@ -3406,7 +3418,7 @@ const Tn = () => [{
|
|
|
3406
3418
|
"${t}", "${e}", ${Le}
|
|
3407
3419
|
)`;
|
|
3408
3420
|
function ne(e) {
|
|
3409
|
-
return /* @__PURE__ */
|
|
3421
|
+
return /* @__PURE__ */ s(
|
|
3410
3422
|
"script",
|
|
3411
3423
|
{
|
|
3412
3424
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -3436,10 +3448,10 @@ const An = (e, t, n = !0) => {
|
|
|
3436
3448
|
event: e,
|
|
3437
3449
|
target: t
|
|
3438
3450
|
}) => {
|
|
3439
|
-
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top,
|
|
3451
|
+
const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, r = pe(i / n.width), a = pe(o / n.height);
|
|
3440
3452
|
return {
|
|
3441
|
-
x:
|
|
3442
|
-
y:
|
|
3453
|
+
x: r,
|
|
3454
|
+
y: a
|
|
3443
3455
|
};
|
|
3444
3456
|
}, Wn = (e) => {
|
|
3445
3457
|
const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
@@ -3458,8 +3470,8 @@ const An = (e, t, n = !0) => {
|
|
|
3458
3470
|
}
|
|
3459
3471
|
};
|
|
3460
3472
|
}, Fn = (e) => {
|
|
3461
|
-
var
|
|
3462
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (
|
|
3473
|
+
var r, a;
|
|
3474
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
|
|
3463
3475
|
let o = "";
|
|
3464
3476
|
if (i && t && n && (o += `
|
|
3465
3477
|
@font-face {
|
|
@@ -3469,16 +3481,16 @@ font-display: fallback;
|
|
|
3469
3481
|
font-weight: 400;
|
|
3470
3482
|
}
|
|
3471
3483
|
`.trim()), e.files)
|
|
3472
|
-
for (const
|
|
3473
|
-
if (!(String(Number(
|
|
3484
|
+
for (const l in e.files) {
|
|
3485
|
+
if (!(String(Number(l)) === l))
|
|
3474
3486
|
continue;
|
|
3475
|
-
const c = e.files[
|
|
3487
|
+
const c = e.files[l];
|
|
3476
3488
|
c && c !== i && (o += `
|
|
3477
3489
|
@font-face {
|
|
3478
3490
|
font-family: "${t}";
|
|
3479
3491
|
src: url('${c}') format('woff2');
|
|
3480
3492
|
font-display: fallback;
|
|
3481
|
-
font-weight: ${
|
|
3493
|
+
font-weight: ${l};
|
|
3482
3494
|
}
|
|
3483
3495
|
`.trim());
|
|
3484
3496
|
}
|
|
@@ -3510,37 +3522,37 @@ font-weight: ${s};
|
|
|
3510
3522
|
}
|
|
3511
3523
|
`, On = (e) => e ? "" : Ln, Un = (e) => `variant-${e}`;
|
|
3512
3524
|
function Hn(e) {
|
|
3513
|
-
var
|
|
3525
|
+
var b, x, A;
|
|
3514
3526
|
const t = $(null);
|
|
3515
|
-
function n(
|
|
3516
|
-
var
|
|
3517
|
-
const
|
|
3527
|
+
function n(C) {
|
|
3528
|
+
var P, u;
|
|
3529
|
+
const I = {
|
|
3518
3530
|
...e.builderContextSignal.rootState,
|
|
3519
|
-
...
|
|
3531
|
+
...C
|
|
3520
3532
|
};
|
|
3521
|
-
e.builderContextSignal.rootSetState ? (u = (
|
|
3522
|
-
...
|
|
3523
|
-
rootState:
|
|
3533
|
+
e.builderContextSignal.rootSetState ? (u = (P = e.builderContextSignal).rootSetState) == null || u.call(P, I) : e.setBuilderContextSignal((y) => ({
|
|
3534
|
+
...y,
|
|
3535
|
+
rootState: I
|
|
3524
3536
|
}));
|
|
3525
3537
|
}
|
|
3526
|
-
function i(
|
|
3527
|
-
var
|
|
3528
|
-
const
|
|
3538
|
+
function i(C) {
|
|
3539
|
+
var P, u, y, E, R;
|
|
3540
|
+
const I = {
|
|
3529
3541
|
...e.builderContextSignal.content,
|
|
3530
|
-
...
|
|
3542
|
+
...C,
|
|
3531
3543
|
data: {
|
|
3532
|
-
...(
|
|
3533
|
-
...
|
|
3544
|
+
...(P = e.builderContextSignal.content) == null ? void 0 : P.data,
|
|
3545
|
+
...C == null ? void 0 : C.data
|
|
3534
3546
|
},
|
|
3535
3547
|
meta: {
|
|
3536
3548
|
...(u = e.builderContextSignal.content) == null ? void 0 : u.meta,
|
|
3537
|
-
...
|
|
3538
|
-
breakpoints: ((
|
|
3549
|
+
...C == null ? void 0 : C.meta,
|
|
3550
|
+
breakpoints: ((y = C == null ? void 0 : C.meta) == null ? void 0 : y.breakpoints) || ((R = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : R.breakpoints)
|
|
3539
3551
|
}
|
|
3540
3552
|
};
|
|
3541
|
-
e.setBuilderContextSignal((
|
|
3542
|
-
...
|
|
3543
|
-
content:
|
|
3553
|
+
e.setBuilderContextSignal((N) => ({
|
|
3554
|
+
...N,
|
|
3555
|
+
content: I
|
|
3544
3556
|
}));
|
|
3545
3557
|
}
|
|
3546
3558
|
function o() {
|
|
@@ -3549,60 +3561,60 @@ function Hn(e) {
|
|
|
3549
3561
|
"aria-hidden": !0
|
|
3550
3562
|
};
|
|
3551
3563
|
}
|
|
3552
|
-
const [
|
|
3564
|
+
const [r, a] = w(
|
|
3553
3565
|
() => e.contentWrapper || "div"
|
|
3554
3566
|
);
|
|
3555
|
-
function
|
|
3567
|
+
function l(C) {
|
|
3556
3568
|
return _e({
|
|
3557
3569
|
model: e.model,
|
|
3558
3570
|
trustedHosts: e.trustedHosts,
|
|
3559
3571
|
callbacks: {
|
|
3560
|
-
configureSdk: (
|
|
3561
|
-
var
|
|
3562
|
-
const { breakpoints:
|
|
3563
|
-
!u || u !== ((
|
|
3572
|
+
configureSdk: (I) => {
|
|
3573
|
+
var y;
|
|
3574
|
+
const { breakpoints: P, contentId: u } = I;
|
|
3575
|
+
!u || u !== ((y = e.builderContextSignal.content) == null ? void 0 : y.id) || P && i({
|
|
3564
3576
|
meta: {
|
|
3565
|
-
breakpoints:
|
|
3577
|
+
breakpoints: P
|
|
3566
3578
|
}
|
|
3567
3579
|
});
|
|
3568
3580
|
},
|
|
3569
|
-
animation: (
|
|
3570
|
-
Be(
|
|
3581
|
+
animation: (I) => {
|
|
3582
|
+
Be(I);
|
|
3571
3583
|
},
|
|
3572
|
-
contentUpdate: (
|
|
3573
|
-
i(
|
|
3584
|
+
contentUpdate: (I) => {
|
|
3585
|
+
i(I);
|
|
3574
3586
|
}
|
|
3575
3587
|
}
|
|
3576
|
-
})(
|
|
3588
|
+
})(C);
|
|
3577
3589
|
}
|
|
3578
|
-
const [d, c] =
|
|
3579
|
-
function
|
|
3580
|
-
var
|
|
3590
|
+
const [d, c] = w(() => ({})), [h, g] = w(() => ({})), [m, v] = w(() => !1);
|
|
3591
|
+
function f(C) {
|
|
3592
|
+
var I, P;
|
|
3581
3593
|
if (e.builderContextSignal.content) {
|
|
3582
|
-
const u = (
|
|
3594
|
+
const u = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, y = (P = e.builderContextSignal.content) == null ? void 0 : P.id;
|
|
3583
3595
|
le({
|
|
3584
3596
|
apiHost: e.apiHost,
|
|
3585
3597
|
type: "click",
|
|
3586
3598
|
canTrack: K(e.canTrack),
|
|
3587
|
-
contentId:
|
|
3599
|
+
contentId: y,
|
|
3588
3600
|
apiKey: e.apiKey,
|
|
3589
|
-
variationId: u !==
|
|
3590
|
-
...Wn(
|
|
3591
|
-
unique: !
|
|
3601
|
+
variationId: u !== y ? u : void 0,
|
|
3602
|
+
...Wn(C),
|
|
3603
|
+
unique: !m
|
|
3592
3604
|
});
|
|
3593
3605
|
}
|
|
3594
|
-
|
|
3606
|
+
m || v(!0);
|
|
3595
3607
|
}
|
|
3596
|
-
function
|
|
3597
|
-
var
|
|
3598
|
-
const
|
|
3599
|
-
Object.entries(
|
|
3600
|
-
if (!E || h[
|
|
3608
|
+
function k() {
|
|
3609
|
+
var I, P, u;
|
|
3610
|
+
const C = (u = (P = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : P.httpRequests) != null ? u : {};
|
|
3611
|
+
Object.entries(C).forEach(([y, E]) => {
|
|
3612
|
+
if (!E || h[y] || d[y] && !W())
|
|
3601
3613
|
return;
|
|
3602
|
-
h[
|
|
3603
|
-
const
|
|
3614
|
+
h[y] = !0;
|
|
3615
|
+
const R = E.replace(
|
|
3604
3616
|
/{{([^}]+)}}/g,
|
|
3605
|
-
(
|
|
3617
|
+
(N, Oe) => String(
|
|
3606
3618
|
O({
|
|
3607
3619
|
code: Oe,
|
|
3608
3620
|
context: e.context || {},
|
|
@@ -3612,18 +3624,18 @@ function Hn(e) {
|
|
|
3612
3624
|
})
|
|
3613
3625
|
)
|
|
3614
3626
|
);
|
|
3615
|
-
fetch(
|
|
3627
|
+
fetch(R).then((N) => N.json()).then((N) => {
|
|
3616
3628
|
n({
|
|
3617
|
-
[
|
|
3618
|
-
}), d[
|
|
3619
|
-
}).catch((
|
|
3620
|
-
console.error("error fetching dynamic data", E,
|
|
3629
|
+
[y]: N
|
|
3630
|
+
}), d[y] = !0;
|
|
3631
|
+
}).catch((N) => {
|
|
3632
|
+
console.error("error fetching dynamic data", E, N);
|
|
3621
3633
|
}).finally(() => {
|
|
3622
|
-
h[
|
|
3634
|
+
h[y] = !1;
|
|
3623
3635
|
});
|
|
3624
3636
|
});
|
|
3625
3637
|
}
|
|
3626
|
-
function
|
|
3638
|
+
function S() {
|
|
3627
3639
|
W() && window.dispatchEvent(
|
|
3628
3640
|
new CustomEvent(
|
|
3629
3641
|
"builder:component:stateChange",
|
|
@@ -3638,11 +3650,11 @@ function Hn(e) {
|
|
|
3638
3650
|
)
|
|
3639
3651
|
);
|
|
3640
3652
|
}
|
|
3641
|
-
const
|
|
3642
|
-
return
|
|
3643
|
-
var
|
|
3653
|
+
const p = $(!1);
|
|
3654
|
+
return p.current || (k(), S(), p.current = !0), B(() => {
|
|
3655
|
+
var C, I;
|
|
3644
3656
|
if (L()) {
|
|
3645
|
-
if (W() && !e.isNestedRender && (window.addEventListener("message",
|
|
3657
|
+
if (W() && !e.isNestedRender && (window.addEventListener("message", l), He(), je({
|
|
3646
3658
|
...e.locale ? {
|
|
3647
3659
|
locale: e.locale
|
|
3648
3660
|
} : {},
|
|
@@ -3656,39 +3668,39 @@ function Hn(e) {
|
|
|
3656
3668
|
e.builderContextSignal.componentInfos
|
|
3657
3669
|
).forEach((u) => {
|
|
3658
3670
|
var E;
|
|
3659
|
-
const
|
|
3660
|
-
(E = window.parent) == null || E.postMessage(
|
|
3671
|
+
const y = Me(u);
|
|
3672
|
+
(E = window.parent) == null || E.postMessage(y, "*");
|
|
3661
3673
|
}), window.addEventListener(
|
|
3662
3674
|
"builder:component:stateChangeListenerActivated",
|
|
3663
|
-
|
|
3675
|
+
S
|
|
3664
3676
|
)), e.builderContextSignal.content && K(e.canTrack)) {
|
|
3665
|
-
const u = (
|
|
3677
|
+
const u = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, y = (I = e.builderContextSignal.content) == null ? void 0 : I.id, E = e.apiKey;
|
|
3666
3678
|
le({
|
|
3667
3679
|
apiHost: e.apiHost,
|
|
3668
3680
|
type: "impression",
|
|
3669
3681
|
canTrack: !0,
|
|
3670
|
-
contentId:
|
|
3682
|
+
contentId: y,
|
|
3671
3683
|
apiKey: E,
|
|
3672
|
-
variationId: u !==
|
|
3684
|
+
variationId: u !== y ? u : void 0
|
|
3673
3685
|
});
|
|
3674
3686
|
}
|
|
3675
3687
|
if (ve() && !W()) {
|
|
3676
|
-
const u = new URL(location.href).searchParams,
|
|
3677
|
-
`builder.overrides.${
|
|
3678
|
-
),
|
|
3679
|
-
|
|
3688
|
+
const u = new URL(location.href).searchParams, y = u.get("builder.preview"), E = u.get(
|
|
3689
|
+
`builder.overrides.${y}`
|
|
3690
|
+
), R = u.get("apiKey") || u.get("builder.space");
|
|
3691
|
+
y === e.model && R === e.apiKey && (!e.content || E === e.content.id) && Se({
|
|
3680
3692
|
model: e.model,
|
|
3681
3693
|
apiKey: e.apiKey,
|
|
3682
3694
|
apiVersion: e.builderContextSignal.apiVersion
|
|
3683
|
-
}).then((
|
|
3684
|
-
|
|
3695
|
+
}).then((N) => {
|
|
3696
|
+
N && i(N);
|
|
3685
3697
|
});
|
|
3686
3698
|
}
|
|
3687
3699
|
}
|
|
3688
3700
|
}, []), B(() => {
|
|
3689
3701
|
e.content && i(e.content);
|
|
3690
3702
|
}, [e.content]), B(() => {
|
|
3691
|
-
|
|
3703
|
+
S();
|
|
3692
3704
|
}, [e.builderContextSignal.rootState]), B(() => {
|
|
3693
3705
|
e.data && n(e.data);
|
|
3694
3706
|
}, [e.data]), B(() => {
|
|
@@ -3696,19 +3708,19 @@ function Hn(e) {
|
|
|
3696
3708
|
locale: e.locale
|
|
3697
3709
|
});
|
|
3698
3710
|
}, [e.locale]), B(() => () => {
|
|
3699
|
-
L() && (window.removeEventListener("message",
|
|
3711
|
+
L() && (window.removeEventListener("message", l), window.removeEventListener(
|
|
3700
3712
|
"builder:component:stateChangeListenerActivated",
|
|
3701
|
-
|
|
3713
|
+
S
|
|
3702
3714
|
));
|
|
3703
|
-
}, []), /* @__PURE__ */
|
|
3704
|
-
|
|
3715
|
+
}, []), /* @__PURE__ */ s(oe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
|
|
3716
|
+
r,
|
|
3705
3717
|
{
|
|
3706
3718
|
ref: t,
|
|
3707
|
-
onClick: (
|
|
3708
|
-
"builder-content-id": (
|
|
3719
|
+
onClick: (C) => f(C),
|
|
3720
|
+
"builder-content-id": (b = e.builderContextSignal.content) == null ? void 0 : b.id,
|
|
3709
3721
|
"builder-model": e.model,
|
|
3710
3722
|
className: Un(
|
|
3711
|
-
((
|
|
3723
|
+
((x = e.content) == null ? void 0 : x.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
|
|
3712
3724
|
),
|
|
3713
3725
|
...o(),
|
|
3714
3726
|
...e.contentWrapperProps,
|
|
@@ -3717,7 +3729,7 @@ function Hn(e) {
|
|
|
3717
3729
|
) : null });
|
|
3718
3730
|
}
|
|
3719
3731
|
function jn(e) {
|
|
3720
|
-
const [t, n] =
|
|
3732
|
+
const [t, n] = w(
|
|
3721
3733
|
() => `
|
|
3722
3734
|
${Dn({
|
|
3723
3735
|
cssCode: e.cssCode,
|
|
@@ -3729,7 +3741,7 @@ ${$n({
|
|
|
3729
3741
|
${On(e.isNestedRender)}
|
|
3730
3742
|
`.trim()
|
|
3731
3743
|
);
|
|
3732
|
-
return /* @__PURE__ */
|
|
3744
|
+
return /* @__PURE__ */ s(
|
|
3733
3745
|
G,
|
|
3734
3746
|
{
|
|
3735
3747
|
id: "builderio-content",
|
|
@@ -3743,9 +3755,9 @@ const Mn = ({
|
|
|
3743
3755
|
data: t,
|
|
3744
3756
|
locale: n
|
|
3745
3757
|
}) => {
|
|
3746
|
-
var
|
|
3747
|
-
const i = {}, o = ((
|
|
3748
|
-
return (
|
|
3758
|
+
var r, a, l;
|
|
3759
|
+
const i = {}, o = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
|
|
3760
|
+
return (l = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || l.forEach((d) => {
|
|
3749
3761
|
d.name && d.defaultValue !== void 0 && (i[d.name] = d.defaultValue);
|
|
3750
3762
|
}), {
|
|
3751
3763
|
...i,
|
|
@@ -3767,43 +3779,43 @@ const Mn = ({
|
|
|
3767
3779
|
meta: e == null ? void 0 : e.meta
|
|
3768
3780
|
} : void 0;
|
|
3769
3781
|
function xe(e) {
|
|
3770
|
-
var c, h,
|
|
3771
|
-
const [t, n] =
|
|
3782
|
+
var c, h, g, m, v, f, k, S, p;
|
|
3783
|
+
const [t, n] = w(
|
|
3772
3784
|
() => {
|
|
3773
|
-
var
|
|
3785
|
+
var b, x;
|
|
3774
3786
|
return Vn({
|
|
3775
3787
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3776
|
-
variationId: (
|
|
3788
|
+
variationId: (b = e.content) == null ? void 0 : b.testVariationId,
|
|
3777
3789
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
3778
|
-
contentId: (
|
|
3790
|
+
contentId: (x = e.content) == null ? void 0 : x.id
|
|
3779
3791
|
});
|
|
3780
3792
|
}
|
|
3781
3793
|
);
|
|
3782
|
-
function i(
|
|
3783
|
-
|
|
3784
|
-
...
|
|
3785
|
-
rootState:
|
|
3794
|
+
function i(b) {
|
|
3795
|
+
l((x) => ({
|
|
3796
|
+
...x,
|
|
3797
|
+
rootState: b
|
|
3786
3798
|
}));
|
|
3787
3799
|
}
|
|
3788
|
-
const [o,
|
|
3800
|
+
const [o, r] = w(
|
|
3789
3801
|
() => {
|
|
3790
|
-
var
|
|
3802
|
+
var b;
|
|
3791
3803
|
return [
|
|
3792
3804
|
...be(),
|
|
3793
|
-
...((
|
|
3805
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3794
3806
|
].reduce(
|
|
3795
|
-
(
|
|
3796
|
-
...
|
|
3797
|
-
[
|
|
3798
|
-
component:
|
|
3799
|
-
...se(
|
|
3807
|
+
(x, { component: A, ...C }) => ({
|
|
3808
|
+
...x,
|
|
3809
|
+
[C.name]: {
|
|
3810
|
+
component: A,
|
|
3811
|
+
...se(C)
|
|
3800
3812
|
}
|
|
3801
3813
|
}),
|
|
3802
3814
|
{}
|
|
3803
3815
|
);
|
|
3804
3816
|
}
|
|
3805
|
-
), [
|
|
3806
|
-
var
|
|
3817
|
+
), [a, l] = w(() => {
|
|
3818
|
+
var b;
|
|
3807
3819
|
return {
|
|
3808
3820
|
content: _n({
|
|
3809
3821
|
content: e.content,
|
|
@@ -3822,11 +3834,11 @@ function xe(e) {
|
|
|
3822
3834
|
apiVersion: e.apiVersion,
|
|
3823
3835
|
componentInfos: [
|
|
3824
3836
|
...be(),
|
|
3825
|
-
...((
|
|
3837
|
+
...((b = e.customComponents) == null ? void 0 : b.filter(({ models: x }) => !(x != null && x.length) || !e.model ? !0 : x.includes(e.model))) || []
|
|
3826
3838
|
].reduce(
|
|
3827
|
-
(
|
|
3828
|
-
...
|
|
3829
|
-
[
|
|
3839
|
+
(x, { component: A, ...C }) => ({
|
|
3840
|
+
...x,
|
|
3841
|
+
[C.name]: se(C)
|
|
3830
3842
|
}),
|
|
3831
3843
|
{}
|
|
3832
3844
|
),
|
|
@@ -3840,19 +3852,19 @@ function xe(e) {
|
|
|
3840
3852
|
e.apiKey || z.error(
|
|
3841
3853
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
3842
3854
|
);
|
|
3843
|
-
const
|
|
3844
|
-
|
|
3845
|
-
code:
|
|
3855
|
+
const b = (h = (c = a.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
|
|
3856
|
+
b && O({
|
|
3857
|
+
code: b,
|
|
3846
3858
|
context: e.context || {},
|
|
3847
3859
|
localState: void 0,
|
|
3848
|
-
rootState:
|
|
3849
|
-
rootSetState: (
|
|
3850
|
-
Object.assign(
|
|
3860
|
+
rootState: a.rootState,
|
|
3861
|
+
rootSetState: (x) => {
|
|
3862
|
+
Object.assign(a.rootState, x);
|
|
3851
3863
|
},
|
|
3852
3864
|
isExpression: !1
|
|
3853
3865
|
}), d.current = !0;
|
|
3854
3866
|
}
|
|
3855
|
-
return /* @__PURE__ */
|
|
3867
|
+
return /* @__PURE__ */ s(
|
|
3856
3868
|
Te.Provider,
|
|
3857
3869
|
{
|
|
3858
3870
|
value: {
|
|
@@ -3872,14 +3884,14 @@ function xe(e) {
|
|
|
3872
3884
|
locale: e.locale,
|
|
3873
3885
|
enrich: e.enrich,
|
|
3874
3886
|
showContent: e.showContent,
|
|
3875
|
-
builderContextSignal:
|
|
3887
|
+
builderContextSignal: a,
|
|
3876
3888
|
contentWrapper: e.contentWrapper,
|
|
3877
3889
|
contentWrapperProps: e.contentWrapperProps,
|
|
3878
3890
|
trustedHosts: e.trustedHosts,
|
|
3879
3891
|
isNestedRender: e.isNestedRender,
|
|
3880
|
-
setBuilderContextSignal:
|
|
3892
|
+
setBuilderContextSignal: l,
|
|
3881
3893
|
children: [
|
|
3882
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
3894
|
+
e.isSsrAbTest ? /* @__PURE__ */ s(
|
|
3883
3895
|
ne,
|
|
3884
3896
|
{
|
|
3885
3897
|
id: "builderio-variant-visibility",
|
|
@@ -3887,21 +3899,21 @@ function xe(e) {
|
|
|
3887
3899
|
nonce: e.nonce || ""
|
|
3888
3900
|
}
|
|
3889
3901
|
) : null,
|
|
3890
|
-
/* @__PURE__ */
|
|
3902
|
+
/* @__PURE__ */ s(
|
|
3891
3903
|
jn,
|
|
3892
3904
|
{
|
|
3893
3905
|
nonce: e.nonce || "",
|
|
3894
3906
|
isNestedRender: e.isNestedRender,
|
|
3895
|
-
contentId: (
|
|
3896
|
-
cssCode: (v = (
|
|
3897
|
-
customFonts: (
|
|
3907
|
+
contentId: (g = a.content) == null ? void 0 : g.id,
|
|
3908
|
+
cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
3909
|
+
customFonts: (k = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : k.customFonts
|
|
3898
3910
|
}
|
|
3899
3911
|
),
|
|
3900
|
-
/* @__PURE__ */
|
|
3912
|
+
/* @__PURE__ */ s(
|
|
3901
3913
|
F,
|
|
3902
3914
|
{
|
|
3903
|
-
blocks: (
|
|
3904
|
-
context:
|
|
3915
|
+
blocks: (p = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
|
|
3916
|
+
context: a,
|
|
3905
3917
|
registeredComponents: o,
|
|
3906
3918
|
linkComponent: e.linkComponent
|
|
3907
3919
|
}
|
|
@@ -3913,39 +3925,39 @@ function xe(e) {
|
|
|
3913
3925
|
);
|
|
3914
3926
|
}
|
|
3915
3927
|
function qn(e) {
|
|
3916
|
-
var
|
|
3917
|
-
const [t, n] =
|
|
3928
|
+
var a;
|
|
3929
|
+
const [t, n] = w(
|
|
3918
3930
|
() => En({
|
|
3919
3931
|
canTrack: K(e.canTrack),
|
|
3920
3932
|
content: e.content
|
|
3921
3933
|
})
|
|
3922
3934
|
);
|
|
3923
3935
|
function i() {
|
|
3924
|
-
var
|
|
3936
|
+
var l;
|
|
3925
3937
|
return Bn(
|
|
3926
3938
|
_(e.content).map((d) => ({
|
|
3927
3939
|
id: d.testVariationId,
|
|
3928
3940
|
testRatio: d.testRatio
|
|
3929
3941
|
})),
|
|
3930
|
-
((
|
|
3942
|
+
((l = e.content) == null ? void 0 : l.id) || ""
|
|
3931
3943
|
);
|
|
3932
3944
|
}
|
|
3933
3945
|
function o() {
|
|
3934
|
-
return _(e.content).map((
|
|
3946
|
+
return _(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
|
|
3935
3947
|
}
|
|
3936
|
-
function
|
|
3937
|
-
var
|
|
3948
|
+
function r() {
|
|
3949
|
+
var l;
|
|
3938
3950
|
return t ? {
|
|
3939
3951
|
...e.content,
|
|
3940
|
-
testVariationId: (
|
|
3952
|
+
testVariationId: (l = e.content) == null ? void 0 : l.id
|
|
3941
3953
|
} : qe({
|
|
3942
3954
|
item: e.content,
|
|
3943
3955
|
canTrack: K(e.canTrack)
|
|
3944
3956
|
});
|
|
3945
3957
|
}
|
|
3946
3958
|
return B(() => {
|
|
3947
|
-
}, []), /* @__PURE__ */ V(
|
|
3948
|
-
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */
|
|
3959
|
+
}, []), /* @__PURE__ */ V(T, { children: [
|
|
3960
|
+
!e.isNestedRender && D !== "reactNative" ? /* @__PURE__ */ s(
|
|
3949
3961
|
ne,
|
|
3950
3962
|
{
|
|
3951
3963
|
id: "builderio-init-variants-fns",
|
|
@@ -3953,8 +3965,8 @@ function qn(e) {
|
|
|
3953
3965
|
nonce: e.nonce || ""
|
|
3954
3966
|
}
|
|
3955
3967
|
) : null,
|
|
3956
|
-
t ? /* @__PURE__ */ V(
|
|
3957
|
-
/* @__PURE__ */
|
|
3968
|
+
t ? /* @__PURE__ */ V(T, { children: [
|
|
3969
|
+
/* @__PURE__ */ s(
|
|
3958
3970
|
G,
|
|
3959
3971
|
{
|
|
3960
3972
|
id: "builderio-variants",
|
|
@@ -3962,7 +3974,7 @@ function qn(e) {
|
|
|
3962
3974
|
nonce: e.nonce || ""
|
|
3963
3975
|
}
|
|
3964
3976
|
),
|
|
3965
|
-
/* @__PURE__ */
|
|
3977
|
+
/* @__PURE__ */ s(
|
|
3966
3978
|
ne,
|
|
3967
3979
|
{
|
|
3968
3980
|
id: "builderio-variants-visibility",
|
|
@@ -3970,13 +3982,13 @@ function qn(e) {
|
|
|
3970
3982
|
nonce: e.nonce || ""
|
|
3971
3983
|
}
|
|
3972
3984
|
),
|
|
3973
|
-
(
|
|
3985
|
+
(a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
|
|
3974
3986
|
xe,
|
|
3975
3987
|
{
|
|
3976
3988
|
apiHost: e.apiHost,
|
|
3977
3989
|
isNestedRender: e.isNestedRender,
|
|
3978
3990
|
nonce: e.nonce,
|
|
3979
|
-
content:
|
|
3991
|
+
content: l,
|
|
3980
3992
|
showContent: !1,
|
|
3981
3993
|
model: e.model,
|
|
3982
3994
|
data: e.data,
|
|
@@ -3995,16 +4007,16 @@ function qn(e) {
|
|
|
3995
4007
|
contentWrapperProps: e.contentWrapperProps,
|
|
3996
4008
|
trustedHosts: e.trustedHosts
|
|
3997
4009
|
},
|
|
3998
|
-
|
|
4010
|
+
l.testVariationId
|
|
3999
4011
|
))
|
|
4000
4012
|
] }) : null,
|
|
4001
|
-
/* @__PURE__ */
|
|
4013
|
+
/* @__PURE__ */ s(
|
|
4002
4014
|
xe,
|
|
4003
4015
|
{
|
|
4004
4016
|
apiHost: e.apiHost,
|
|
4005
4017
|
nonce: e.nonce,
|
|
4006
4018
|
isNestedRender: e.isNestedRender,
|
|
4007
|
-
content:
|
|
4019
|
+
content: r(),
|
|
4008
4020
|
showContent: !0,
|
|
4009
4021
|
model: e.model,
|
|
4010
4022
|
data: e.data,
|
|
@@ -4046,7 +4058,7 @@ const Kn = async ({
|
|
|
4046
4058
|
});
|
|
4047
4059
|
};
|
|
4048
4060
|
function zn(e) {
|
|
4049
|
-
var
|
|
4061
|
+
var l, d, c, h;
|
|
4050
4062
|
function t() {
|
|
4051
4063
|
return "div";
|
|
4052
4064
|
}
|
|
@@ -4054,30 +4066,30 @@ function zn(e) {
|
|
|
4054
4066
|
return "div";
|
|
4055
4067
|
}
|
|
4056
4068
|
function i() {
|
|
4057
|
-
var
|
|
4069
|
+
var g, m;
|
|
4058
4070
|
return [
|
|
4059
4071
|
e.attributes[H()],
|
|
4060
4072
|
"builder-symbol",
|
|
4061
|
-
(
|
|
4062
|
-
(
|
|
4073
|
+
(g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
|
|
4074
|
+
(m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4063
4075
|
].filter(Boolean).join(" ");
|
|
4064
4076
|
}
|
|
4065
|
-
const [o,
|
|
4066
|
-
var
|
|
4067
|
-
return (
|
|
4077
|
+
const [o, r] = w(() => {
|
|
4078
|
+
var g;
|
|
4079
|
+
return (g = e.symbol) == null ? void 0 : g.content;
|
|
4068
4080
|
});
|
|
4069
|
-
function
|
|
4081
|
+
function a() {
|
|
4070
4082
|
o || Kn({
|
|
4071
4083
|
symbol: e.symbol,
|
|
4072
4084
|
builderContextValue: e.builderContext
|
|
4073
|
-
}).then((
|
|
4074
|
-
|
|
4085
|
+
}).then((g) => {
|
|
4086
|
+
g && r(g);
|
|
4075
4087
|
});
|
|
4076
4088
|
}
|
|
4077
4089
|
return B(() => {
|
|
4078
4090
|
}, []), B(() => {
|
|
4079
|
-
|
|
4080
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
4091
|
+
a();
|
|
4092
|
+
}, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
|
|
4081
4093
|
qn,
|
|
4082
4094
|
{
|
|
4083
4095
|
nonce: e.builderContext.nonce,
|
|
@@ -4086,7 +4098,7 @@ function zn(e) {
|
|
|
4086
4098
|
apiKey: e.builderContext.apiKey,
|
|
4087
4099
|
context: {
|
|
4088
4100
|
...e.builderContext.context,
|
|
4089
|
-
symbolId: (
|
|
4101
|
+
symbolId: (l = e.builderBlock) == null ? void 0 : l.id
|
|
4090
4102
|
},
|
|
4091
4103
|
customComponents: Object.values(e.builderComponents),
|
|
4092
4104
|
data: {
|